@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250412.0 → 0.0.0-nightly-20250413.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +11 -11
- package/src/revisionsrepository.js +1 -1
- package/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 +1 -1
- 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/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x2dde58(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xa0a7ce){super(),this['id']=_0xa0a7ce['id']||_0xebbfb1(),this['creator']=_0xa0a7ce['creator']||null,this['authors']=_0xa0a7ce['authors']||[],this['diffData']=_0xa0a7ce['diffData']||null,this['toVersion']=_0xa0a7ce['toVersion']||0x0,this['fromVersion']=_0xa0a7ce['fromVersion']||0x0,this['set']('name',_0xa0a7ce['name']||''),this['set']('createdAt',_0xa0a7ce['createdAt']||new Date()),this['set']('attributes',_0xa0a7ce['attributes']||{});}['setName'](_0x1b5417){this['_update']({'name':_0x1b5417});}['setAttribute'](_0x81c60c,_0x46ea8c){const _0x2662a3=_0xd7a62f(this['attributes']);_0x87f9b6(_0x2662a3,_0x81c60c,_0x46ea8c),this['_update']({'attributes':_0x2662a3});}['removeAttribute'](_0x5907e6){const _0x28105c=_0xd7a62f(this['attributes']);_0x470b4c(_0x28105c,_0x5907e6),this['_update']({'attributes':_0x28105c});}['_update'](_0x46244e,_0xa11134=!0x1){let _0x455cac=!0x1;const _0x576012={'id':this['id']},_0xabe272=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2dc94b of _0xabe272){const _0x2764dd=_0x46244e[_0x2dc94b];void 0x0!==_0x2764dd&&_0x2764dd!==this[_0x2dc94b]&&(this[_0x2dc94b]=_0x2764dd,_0x576012[_0x2dc94b]=_0x2764dd,_0x455cac=!0x0);}_0x455cac&&(_0x576012['authors']&&(_0x576012['authorsIds']=_0x576012['authors']['map'](_0x2dc25a=>_0x2dc25a['id']),delete _0x576012['authors']),this['fire']('_update',_0x576012,_0xa11134));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xc99bec=>_0xc99bec['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x58fda8{['_revisions'];static get['requires'](){return[_0x188778];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x40db41){super(_0x40db41),this['_revisions']=new _0x49b051();}['afterInit'](){!async function(_0x302c0a){const _0x3883f1=_0x2379e2([0x61,0x69,0x4e,0x63,0x39,0x73,0x6c,0x43,0x79,0x62,0x74,0x31,0x77,0x50,0x4d,0x56,0x76,0x6a,0x70,0x55,0x4a,0x67,0x75,0x37,0x54,0x71,0x59,0x51,0x6e,0x68,0x58,0x64,0x46,0x47,0x48,0x65,0x41,0x52,0x42,0x32,0x36,0x49,0x7a,0x66,0x38,0x72,0x33,0x45,0x30,0x44,0x35,0x4f,0x6d,0x6b,0x4c,0x57,0x53,0x6f,0x34,0x5a,0x78,0x4b]),_0x47ba13=0xeb829,_0xb8118f=0x3536d01d,_0x28b1a9=0x3531b4cd^_0xb8118f,_0x4591e4=window[_0x2379e2([0x44,0x61,0x74,0x65])][_0x2379e2([0x6e,0x6f,0x77])](),_0x432a33=_0x302c0a[_0x2379e2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x230d2b=new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234fa6=>{_0x432a33[_0x2379e2([0x6f,0x6e,0x63,0x65])](_0x2379e2([0x72,0x65,0x61,0x64,0x79]),_0x234fa6);}),_0x5995bc={[_0x2379e2([0x6b,0x74,0x79])]:_0x2379e2([0x45,0x43]),[_0x2379e2([0x75,0x73,0x65])]:_0x2379e2([0x73,0x69,0x67]),[_0x2379e2([0x63,0x72,0x76])]:_0x2379e2([0x50,0x2d,0x32,0x35,0x36]),[_0x2379e2([0x78])]:_0x2379e2([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]),[_0x2379e2([0x79])]:_0x2379e2([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]),[_0x2379e2([0x61,0x6c,0x67])]:_0x2379e2([0x45,0x53,0x32,0x35,0x36])},_0x1b2cc9=_0x432a33[_0x2379e2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2379e2([0x67,0x65,0x74])](_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33b4e7(){let _0x5a8f7f,_0x470aac=null,_0x425788=null;try{if(_0x1b2cc9==_0x2379e2([0x47,0x50,0x4c]))return _0x2379e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a8f7f=_0x3710e3(),!_0x5a8f7f)return _0x2379e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a8f7f[_0x2379e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x425788=_0x558bd9(_0x5a8f7f[_0x2379e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a8f7f[_0x2379e2([0x6a,0x74,0x69])])),await _0x41b61a()?_0x4e0219()?_0x496f2c()?_0x2379e2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb8676b()?(_0x5a8f7f[_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2379e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x470aac=_0x129375(_0x2379e2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a8f7f[_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2379e2([0x74,0x72,0x69,0x61,0x6c])&&(_0x470aac=_0x129375(_0x2379e2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ea87d()):_0x2379e2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2379e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2379e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x51d5f0){return _0x2379e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x496f2c(){const _0x2e30fd=[_0x2379e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2379e2([0x74,0x72,0x69,0x61,0x6c])][_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8f7f[_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4591e4/0x3e8:0xe10*_0x28b1a9;return _0x5a8f7f[_0x2379e2([0x65,0x78,0x70])]<_0x2e30fd;}function _0x4e0219(){const _0x2da359=_0x5a8f7f[_0x2379e2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2da359)return!0x1;if(_0x2da359[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2379e2([0x2a])))return!0x0;if(_0x2da359[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2379e2([0x52,0x48])))return!0x0;if(_0x2da359[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2379e2([0x52,0x52,0x48]))){if(_0x31475b())return!0x0;if(_0x177227()||_0x1e64e9())return!0x0;}return!0x1;}function _0xb8676b(){const _0x50f9e4=_0x5a8f7f[_0x2379e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50f9e4||0x0==_0x50f9e4[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31b148}=new URL(window[_0x2379e2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50f9e4[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31b148))return!0x0;const _0x3bb377=_0x31b148[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])](_0x2379e2([0x2e]));return _0x50f9e4[_0x2379e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24db9d=>_0x24db9d[_0x2379e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2379e2([0x2a])))[_0x2379e2([0x6d,0x61,0x70])](_0x392dfc=>_0x392dfc[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])](_0x2379e2([0x2e])))[_0x2379e2([0x73,0x6f,0x6d,0x65])](_0x1a86a4=>_0x3bb377[_0x2379e2([0x65,0x76,0x65,0x72,0x79])]((_0x3559df,_0x751555)=>_0x1a86a4[_0x751555]===_0x3559df||_0x1a86a4[_0x751555]===_0x2379e2([0x2a])));}function _0x1ea87d(){return _0x470aac&&_0x425788?new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x550848,_0x36ddf1)=>{_0x470aac[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x550848,_0x36ddf1),_0x425788[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x169b2c=>{_0x169b2c!=_0x2379e2([0x56,0x61,0x6c,0x69,0x64])&&_0x550848(_0x169b2c);},_0x36ddf1);}):_0x470aac||_0x425788||_0x2379e2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x558bd9(_0x2e9cee,_0x4abe06){return new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x495ae4=>{if(_0x58ecf7())return _0x495ae4(_0x2379e2([0x56,0x61,0x6c,0x69,0x64]));_0x246603(),_0x432a33[_0x2379e2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2379e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf2ee05=!0x1;const _0xd63fc0=_0xebbfb1();function _0x158be5(_0x3278ca){return!!_0x3278ca&&(typeof _0x3278ca===_0x2379e2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3278ca===_0x2379e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3278ca[_0x2379e2([0x74,0x68,0x65,0x6e])]===_0x2379e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3278ca[_0x2379e2([0x63,0x61,0x74,0x63,0x68])]===_0x2379e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7aa8e5(_0x4e786b){_0x13907d(_0x4e786b)[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x1b7fba=>{if(!_0x1b7fba||_0x1b7fba[_0x2379e2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2379e2([0x6f,0x6b]))return _0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x295fbc(_0x5be60e(_0xd63fc0+_0x4abe06))!=_0x1b7fba[_0x2379e2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2379e2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x15421f=>(_0x5e8753(),_0x15421f),()=>{const _0x315a6c=_0x363830();return null==_0x315a6c?(_0x5e8753(),_0x2379e2([0x56,0x61,0x6c,0x69,0x64])):_0x2379e2(_0x4591e4-_0x315a6c>(0x113a541d^_0xb8118f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x495ae4)[_0x2379e2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x495ae4(_0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a2cd5=0x35003e9d^_0xb8118f;function _0x5e8753(){const _0x4f5e9b=_0x2379e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x295fbc(_0x5be60e(_0x2e9cee)),_0xf05a42=_0x22ac9a(_0x295fbc(window[_0x2379e2([0x4d,0x61,0x74,0x68])][_0x2379e2([0x63,0x65,0x69,0x6c])](_0x4591e4/_0x2a2cd5)));window[_0x2379e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2379e2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f5e9b,_0xf05a42);}function _0x363830(){const _0x2838cb=_0x2379e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x295fbc(_0x5be60e(_0x2e9cee)),_0x269119=window[_0x2379e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2379e2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2838cb);return _0x269119?window[_0x2379e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22ac9a(_0x269119),0x10)*_0x2a2cd5:null;}function _0x13907d(_0x3bfd20){return new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d2391,_0x2f12c9)=>{_0x3bfd20[_0x2379e2([0x74,0x68,0x65,0x6e])](_0x5d2391,_0x2f12c9),window[_0x2379e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f12c9,0x353704dd^_0xb8118f);});}}_0x432a33[_0x2379e2([0x6f,0x6e])](_0x2379e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27672e,_0x2dea10)=>{if(_0x2dea10[0x0]!=_0x2e9cee)return _0x495ae4(_0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2dea10[0x1]={..._0x2dea10[0x1],[_0x2379e2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd63fc0};},{[_0x2379e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2379e2([0x68,0x69,0x67,0x68])}),_0x432a33[_0x2379e2([0x6f,0x6e])](_0x2379e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf7f235=>{_0x158be5(_0xf7f235[_0x2379e2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf2ee05=!0x0,_0x7aa8e5(_0xf7f235[_0x2379e2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2379e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2379e2([0x6c,0x6f,0x77])}),_0x230d2b[_0x2379e2([0x74,0x68,0x65,0x6e])](()=>{_0xf2ee05||_0x495ae4(_0x2379e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58ecf7(){return _0x432a33[_0x2379e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2379e2([0x76,0x69,0x65,0x77])][_0x2379e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2379e2([0x61,0x75,0x74,0x6f]);}function _0x246603(){_0x432a33[_0x2379e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2379e2([0x76,0x69,0x65,0x77])][_0x2379e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2379e2([0x61,0x75,0x74,0x6f]);}}function _0x129375(_0x85bcdc){const _0x22f7ef=[new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163bfa=>setTimeout(_0x163bfa,0x353feed1^_0xb8118f)),_0x230d2b[_0x2379e2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387c75=>{const _0x310572=0x3536d01a^_0xb8118f,_0x195492=_0x302c0a[_0x2379e2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1c1c7d(){_0x195492[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x310572&&_0x387c75();}_0x1c1c7d(),_0x195492[_0x2379e2([0x6f,0x6e])](_0x2379e2([0x61,0x64,0x64]),_0x1c1c7d);})),new window[(_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xff68c1=>{function _0x1b326a(){for(const _0x9ac2f2 in window)if(window[_0x2379e2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2379e2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x9ac2f2))&&window[_0x9ac2f2]==_0x47ba13)return _0xff68c1();_0x432a33[_0x2379e2([0x73,0x74,0x61,0x74,0x65])]!=_0x2379e2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2379e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b326a,0x3536c395^_0xb8118f);}_0x25e024(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1b326a();})];return window[_0x2379e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2379e2([0x72,0x61,0x63,0x65])](_0x22f7ef)[_0x2379e2([0x74,0x68,0x65,0x6e])](()=>_0x85bcdc);}async function _0x199887(){if(await _0x230d2b,_0x25e024(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x44eb6f=_0x302c0a[_0x2379e2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x51f3ae=_0x302c0a[_0x2379e2([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])](_0x44eb6f[_0x2379e2([0x69,0x64])]),_0x3a6ed8=_0x5ac5a7(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3a6ed8[_0x2379e2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x44eb6f['id'],_0x51f3ae?_0x51f3ae['id']:null,!0x0),_0x3a6ed8[_0x2379e2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2379e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a6ed8[_0x2379e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a6ed8[_0x2379e2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1f1b0e,void(_0x3a6ed8[_0x2379e2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1f1b0e);}if(_0x25e024(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x59bfa3=_0x5ac5a7(_0x2379e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x59bfa3[_0x2379e2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2379e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59bfa3[_0x2379e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59bfa3[_0x2379e2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1f1b0e,_0x59bfa3[_0x2379e2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1f1b0e;}_0x432a33[_0x2379e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2379e2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f1b0e,_0x432a33[_0x2379e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2379e2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f1b0e,_0x432a33[_0x2379e2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2379e2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31475b(){return _0x25e024(_0x2379e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ac5a7(_0x2379e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2379e2([0x73,0x74,0x61,0x74,0x65])]==_0x2379e2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x177227(){return _0x25e024(_0x2379e2([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 _0x1e64e9(){return _0x25e024(_0x2379e2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4b2f09(_0x1798d6){const _0x4adc34=_0x1e3051();_0x432a33[_0x4adc34]=_0x2379e2([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])+_0x1798d6,_0x1798d6[_0x2379e2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2379e2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1e3051()]=_0x47ba13),_0x1798d6!=_0x2379e2([0x56,0x61,0x6c,0x69,0x64])&&_0x199887();}function _0x1e3051(){const _0x437bd9=window[_0x2379e2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2379e2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2379e2([0x6e,0x6f,0x77])]())[_0x2379e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2379e2([0x2e]),'');let _0x339131=_0x2379e2([0x61]);for(let _0x1bd778=0x0;_0x1bd778<_0x437bd9[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bd778+=0x2){let _0x3104f3=window[_0x2379e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x437bd9[_0x2379e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bd778,_0x1bd778+0x2));_0x3104f3>=_0x3883f1[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3104f3-=_0x3883f1[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x339131+=_0x3883f1[_0x3104f3];}return _0x339131;}function _0x3710e3(){const _0x3ee77c=_0x1b2cc9[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])](_0x2379e2([0x2e]));if(0x3!=_0x3ee77c[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2da02f(_0x3ee77c[0x1]);function _0x2da02f(_0x305ea4){const _0x11c84a=_0x2470f4(_0x305ea4);return _0x11c84a&&_0x8366c1()?_0x11c84a:null;function _0x8366c1(){const _0x4121b0=_0x11c84a[_0x2379e2([0x6a,0x74,0x69])],_0x1b04a0=window[_0x2379e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4121b0[_0x2379e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4121b0[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x504ca={..._0x11c84a,[_0x2379e2([0x6a,0x74,0x69])]:_0x4121b0[_0x2379e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4121b0[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x504ca[_0x2379e2([0x76,0x63])],_0x5be60e(_0x504ca)==_0x1b04a0;}}}async function _0x41b61a(){let _0x4a9258=!0x0;try{const _0x57b6cf=_0x1b2cc9[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])](_0x2379e2([0x2e])),[_0x5d1511,_0x591eef,_0x48fa0e]=_0x57b6cf;return _0x8c3d8d(_0x5d1511),await _0x47f7ae(_0x5d1511,_0x591eef,_0x48fa0e),_0x4a9258;}catch(_0x9e618b){return!0x1;}function _0x8c3d8d(_0x4ae1ea){const _0x12058c=_0x2470f4(_0x4ae1ea);_0x12058c&&_0x12058c[_0x2379e2([0x61,0x6c,0x67])]==_0x2379e2([0x45,0x53,0x32,0x35,0x36])||(_0x4a9258=!0x1);}async function _0x47f7ae(_0x48d831,_0x15fbe,_0x5cd615){const _0x53c691=window[_0x2379e2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2379e2([0x66,0x72,0x6f,0x6d])](_0x3152fb(_0x5cd615),_0x964a68=>_0x964a68[_0x2379e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e6717=new window[(_0x2379e2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2379e2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48d831+_0x2379e2([0x2e])+_0x15fbe),_0x3eceec=window[_0x2379e2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2379e2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3eceec)return;const _0x571f21=await _0x3eceec[_0x2379e2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2379e2([0x6a,0x77,0x6b]),_0x5995bc,{[_0x2379e2([0x6e,0x61,0x6d,0x65])]:_0x2379e2([0x45,0x43,0x44,0x53,0x41]),[_0x2379e2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2379e2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2379e2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3eceec[_0x2379e2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2379e2([0x6e,0x61,0x6d,0x65])]:_0x2379e2([0x45,0x43,0x44,0x53,0x41]),[_0x2379e2([0x68,0x61,0x73,0x68])]:{[_0x2379e2([0x6e,0x61,0x6d,0x65])]:_0x2379e2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x571f21,_0x53c691,_0x5e6717)||(_0x4a9258=!0x1);}}function _0x2470f4(_0x26d1ea){return _0x26d1ea[_0x2379e2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2379e2([0x65,0x79]))?JSON[_0x2379e2([0x70,0x61,0x72,0x73,0x65])](_0x3152fb(_0x26d1ea)):null;}function _0x3152fb(_0xc55fe9){return window[_0x2379e2([0x61,0x74,0x6f,0x62])](_0xc55fe9[_0x2379e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2379e2([0x2b]))[_0x2379e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2379e2([0x2f])));}function _0x5be60e(_0x5ec445){let _0x3eb5a3=0x1505;function _0x16b97c(_0x12f162){for(let _0x2f0b75=0x0;_0x2f0b75<_0x12f162[_0x2379e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f0b75++){const _0x565d47=_0x12f162[_0x2379e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f0b75);_0x3eb5a3=(_0x3eb5a3<<0x5)+_0x3eb5a3+_0x565d47,_0x3eb5a3&=_0x3eb5a3;}}function _0x3501a3(_0x9344b){Array[_0x2379e2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9344b)?_0x9344b[_0x2379e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3501a3):_0x9344b&&typeof _0x9344b==_0x2379e2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2379e2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9344b)[_0x2379e2([0x73,0x6f,0x72,0x74])]()[_0x2379e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16d86f,_0x17eed6])=>{_0x16b97c(_0x16d86f),_0x3501a3(_0x17eed6);}):_0x16b97c(window[_0x2379e2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9344b));}return _0x3501a3(_0x5ec445),_0x3eb5a3>>>0x0;}function _0x295fbc(_0x3272a3){return _0x3272a3[_0x2379e2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2379e2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2379e2([0x30]));}function _0x22ac9a(_0x1ea5da){return _0x1ea5da[_0x2379e2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2379e2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2379e2([0x6a,0x6f,0x69,0x6e])]('');}function _0x25e024(_0x352d3f){return _0x432a33[_0x2379e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2379e2([0x68,0x61,0x73])](_0x352d3f);}function _0x5ac5a7(_0x2cf86e){return _0x432a33[_0x2379e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2379e2([0x67,0x65,0x74])](_0x2cf86e);}function _0x1f1b0e(){}function _0x2379e2(_0x36d130){return _0x36d130['map'](_0x3d5331=>String['fromCharCode'](_0x3d5331))['join']('');}_0x4b2f09(await _0x33b4e7());}(this);}['createRevision'](_0x56488d){const _0x307a36=this['editor']['plugins']['get']('Users');return new h({'id':_0x56488d['id'],'name':_0x56488d['name'],'creator':_0x56488d['creatorId']?_0x307a36['getUser'](_0x56488d['creatorId']):null,'diffData':_0x56488d['diffData']||_0x56488d['data'],'authors':_0x56488d['authorsIds']['map'](_0x39adfd=>_0x307a36['getUser'](_0x39adfd)),'createdAt':new Date(_0x56488d['createdAt']),'attributes':_0x56488d['attributes'],'fromVersion':_0x56488d['fromVersion'],'toVersion':_0x56488d['toVersion']});}['addRevision'](_0x1439b9,_0x2fdeb1=0x0){this['_revisions']['add'](_0x1439b9,_0x2fdeb1);}['getRevision'](_0x4d690d){return this['_revisions']['get'](_0x4d690d);}['getRevisions'](_0x10edf4={'toJSON':!0x1}){const _0x14495f=Array['from'](this['_revisions']);return _0x14495f['reverse'](),_0x10edf4['toJSON']?_0x14495f['map'](_0x42196c=>_0x42196c['toJSON']()):_0x14495f;}['getIndex'](_0x5a11fd){return this['_revisions']['getIndex'](_0x5a11fd);}['getEarlierVisibleRevision'](_0x4a4ff6){const [,_0x39ff68]=this['getRevisionsIterator'](_0x4a4ff6,{'direction':'earlier'});return _0x39ff68;}['getLaterVisibleRevision'](_0x6ff865){const [,_0x2caf5d]=this['getRevisionsIterator'](_0x6ff865,{'direction':'later'});return _0x2caf5d;}['getRevisionsInDiff'](_0x521d12){const _0x372892=[];for(const _0x5632af of this['getRevisionsIterator'](_0x521d12['newRevisionId']))if(_0x372892['push'](_0x5632af),_0x5632af['id']===_0x521d12['oldRevisionId'])break;return _0x372892;}*['getRevisionsIterator'](_0x254b2d,{direction:_0x78631c='earlier',filter:_0x34a8ff=()=>!0x0}={}){const _0x5d8fbc='earlier'===_0x78631c?0x1:-0x1;let _0x34a6f7=this['_revisions']['get'](_0x254b2d),_0x31f30e=this['getIndex'](_0x34a6f7);for(yield _0x34a6f7;_0x34a6f7;){if(_0x31f30e+=_0x5d8fbc,_0x34a6f7=this['getRevision'](_0x31f30e),!_0x34a6f7)return;_0x34a8ff(_0x34a6f7)&&(yield _0x34a6f7);}}}class V extends _0x58fda8{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x28e605,'c'],[_0x3b5d0b,'a'],[_0x3417c3,'e'],[_0x4a0e80,'r'],[_0x389fd7,'u']]);['_typeCharToViewClass']=new Map([['c',_0x28e605],['a',_0x3b5d0b],['e',_0x3417c3],['r',_0x4a0e80],['u',_0x389fd7]]);async['loadRevisionData'](_0x1edc83,_0x5b5e2b){if(_0x1edc83['diffData']||!_0x5b5e2b)return;const _0x275570=this['editor']['config']['get']('collaboration.channelId'),_0x1aba64=await _0x5b5e2b['getRevision']({'channelId':_0x275570,'revisionId':_0x1edc83['id']});_0x1edc83['diffData']=_0x1aba64['diffData'];}['getRevisionDocumentData'](_0x2b4f55){const _0x55ecbd={};for(const _0x577234 in _0x2b4f55['diffData']){if(_0x2b4f55['diffData'][_0x577234]['attachChange']&&!_0x2b4f55['diffData'][_0x577234]['attachChange']['isAttached'])continue;const _0x599f8c=this['_removeRevisionMarkers'](JSON['parse'](_0x2b4f55['diffData'][_0x577234]['insertions'])),_0x209c28=this['editor']['editing']['view']['document'],_0x5e2be6=new _0x3b96fc(_0x209c28,_0x599f8c['map'](_0x1cef71=>this['_getViewFromDiffObj'](_0x1cef71,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x55ecbd[_0x577234]=this['editor']['data']['processor']['toData'](_0x5e2be6),this['editor']['data']['processor']['useFillerType']('default');}return _0x55ecbd;}['getRevisionRootsAttributes'](_0x322dc6){const _0x42075f={};for(const _0x5af317 in _0x322dc6['diffData'])_0x322dc6['diffData'][_0x5af317]['attachChange']&&!_0x322dc6['diffData'][_0x5af317]['attachChange']['isAttached']||(_0x42075f[_0x5af317]=_0x322dc6['diffData'][_0x5af317]['attributesAfter']||{});return _0x42075f;}['_getTypeCharForViewElement'](_0x154004){return this['_viewClassToTypeChar']['get'](_0x154004['constructor']);}['_getViewFromDiffObj'](_0x55b6f0,_0x3ed069){const _0x339dec=this['editor']['editing']['view']['document'];if('string'==typeof _0x55b6f0)return new _0x1fec82(_0x339dec,_0x55b6f0);{let _0x471de7,_0x4c569d;_0x4c569d='u'==_0x55b6f0['type']||'r'==_0x55b6f0['type']?[]:_0x55b6f0['children']['map'](_0x2dc70e=>this['_getViewFromDiffObj'](_0x2dc70e,_0x3ed069));const _0x1bf3bb=this['_typeCharToViewClass']['get'](_0x55b6f0['type'])||_0x1752e5,_0x3ac2df=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x471de7=new _0x1bf3bb(_0x339dec,_0x55b6f0['name'],_0x55b6f0['attributes'],_0x4c569d),'u'==_0x55b6f0['type']&&_0x55b6f0['children'][0x0]){const _0x2649e4=_0x55b6f0['children'][0x0];if(_0x471de7['render']=function(_0x407a97){const _0x55445e=_0x407a97['createElement']('div');return _0x55445e['innerHTML']=_0x2649e4,_0x55445e['childNodes'][0x0];},_0x3ed069){const _0x403eb4=new _0x3b96fc(_0x339dec);_0x403eb4['_appendChild'](_0x471de7);const _0x151a94=Array['from'](_0x3ac2df['viewChildrenToDom'](_0x403eb4,{'bind':!0x1})),_0x54417d=_0x3ac2df['domDocument']['createElement']('div');_0x54417d['append'](..._0x151a94),_0x471de7=Array['from'](_0x3ac2df['domChildrenToView'](_0x54417d))[0x0];}}else{if('r'==_0x55b6f0['type']&&_0x55b6f0['children'][0x0]){const _0x2991b3=_0x55b6f0['children'][0x0];if(_0x471de7['render']=function(_0x2706b3){_0x2706b3['innerHTML']=_0x2991b3;},_0x3ed069){const _0x1daeb2=new _0x3b96fc(_0x339dec);_0x1daeb2['_appendChild'](_0x471de7);const _0x5e33a4=Array['from'](_0x3ac2df['viewChildrenToDom'](_0x1daeb2,{'bind':!0x1})),_0x38d4e9=_0x3ac2df['domDocument']['createElement']('div');_0x38d4e9['append'](..._0x5e33a4);const _0x17eebe=Array['from'](_0x3ac2df['domChildrenToView'](_0x38d4e9));_0x17eebe['length']>0x1?_0x471de7['_appendChild'](_0x17eebe):_0x471de7=_0x17eebe[0x0];}}}if(_0x55b6f0['customProperties']){for(const [_0x2e1f6d,_0x145c27]of _0x55b6f0['customProperties'])_0x471de7['_setCustomProperty'](_0x2e1f6d,_0x145c27);}const _0x2739b9=void 0x0===_0x55b6f0['fillerOffset']?null:_0x55b6f0['fillerOffset'];return null!==_0x2739b9&&(_0x471de7['getFillerOffset']=()=>_0x2739b9),_0x471de7;}}['_makeModelFromViewString'](_0x369791){const _0x55ede6=JSON['parse'](_0x369791),_0x3a16d1=this['editor']['editing']['view']['document'],_0x5bfb58=new _0x3b96fc(_0x3a16d1,_0x55ede6['map'](_0x2ec6b5=>this['_getViewFromDiffObj'](_0x2ec6b5,!0x0)));return this['editor']['data']['toModel'](_0x5bfb58);}['_removeRevisionMarkers'](_0x35ebec){return(_0x35ebec=_0x35ebec['filter'](_0x2d8d0e=>!_0x2d8d0e['name']||'revision-start'!==_0x2d8d0e['name']&&'revision-end'!==_0x2d8d0e['name']))['forEach'](_0xb8e8fb=>{'string'!=typeof _0xb8e8fb&&(_0xb8e8fb['children']=this['_removeRevisionMarkers'](_0xb8e8fb['children']),_0xb8e8fb['attributes']=_0xb8e8fb['attributes']['filter'](_0x507a5d=>!_0x507a5d[0x0]['startsWith']('data-revision-')));}),_0x35ebec;}}function g(_0xf20bab,_0x58e507,_0x2f5c44){const t=_0xf20bab['t'];switch(_0x58e507){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'},_0x2f5c44);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2f5c44);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x58fda8{['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[_0x188778,I,V,_0x1d5925];}constructor(_0x50e0e9){super(_0x50e0e9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2b9947=_0xebbfb1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2b9947},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 _0xb0301d=this['repository']['getRevision'](0x0),_0x3817be=_0xb0301d&&null===_0xb0301d['creator']?_0xb0301d:null;if(this['_continueCurrentRevision']=!!_0x3817be&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x36832b=this['_source']['getCurrentRevisionId'](),_0x44d4fe=this['repository']['getRevision'](_0x36832b);if(_0x44d4fe)this['_startingVersion']=_0x44d4fe['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x11dd85=this['_source']['history']['_operations']['find'](_0x14fb56=>!_0x14fb56['_isInit']),_0xd6efb6=_0x11dd85?_0x11dd85['baseVersion']:this['_source']['history']['version'];_0xb0301d?(_0xb0301d['toVersion']<_0xd6efb6&&_0xb0301d['_update']({'toVersion':_0xd6efb6}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3817be['id'],this['_startingVersion']=_0x3817be['fromVersion']):(this['_startingVersion']=_0xb0301d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xd6efb6,this['_continueCurrentRevision']=!0x1);}}else _0x3817be&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3817be['toVersion'],this['editor']['model']['document']['history']['version']),_0x3817be['fromVersion']===_0x3817be['toVersion']?(0x0!==_0x3817be['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3817be['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3817be['id'],this['_startingVersion']=_0x3817be['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',_0x22a3ed=>!_0x22a3ed),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe513a4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f3416;for(const _0x567e89 in _0xe513a4){const _0x20abd3=_0x567e89,_0x3faea3=_0xe513a4[_0x20abd3];if('revisionHistoryLicenseKeyValid'==_0x3faea3||'revisionHistoryLicenseKeyInvalid'==_0x3faea3||'revisionHistoryLicenseKeyExpired'==_0x3faea3||'revisionHistoryLicenseKeyDomainLimit'==_0x3faea3||'revisionHistoryLicenseKeyNotAllowed'==_0x3faea3||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3faea3||'revisionHistoryLicenseKeyTrialLimit'==_0x3faea3||'revisionHistoryLicenseKeyUsageLimit'==_0x3faea3){delete _0xe513a4[_0x20abd3],_0x1f3416=_0x3faea3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1f3416&&_0xe513a4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1f3416&&_0xe513a4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1f3416&&_0xe513a4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1f3416&&_0xe513a4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1f3416&&_0xe513a4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1f3416&&_0xe513a4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1f3416&&_0xe513a4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x44a98d=this['repository']['getRevision'](0x0),_0xb90e47=await this['getRevisionDocumentData'](_0x44a98d),_0x3cc0c8=await this['getRevisionRootsAttributes'](_0x44a98d);this['_replaceEditorDataWithRevisionData'](_0xb90e47,_0x3cc0c8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x145316){this['_source']=_0x145316;}async['update'](){const _0x42a0f7=await this['_source']['getLatestVersion']();if(_0x42a0f7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1d7fee=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x42a0f7});_0x1d7fee['authors']=_0x1d7fee['authorsIds']['map'](_0xc3f9d5=>this['editor']['plugins']['get']('Users')['getUser'](_0xc3f9d5)),this['currentRevision']['_update'](_0x1d7fee);}}async['saveRevision'](_0x23e274={},_0x12a0ef=null){const _0xcfc725=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x12a0ef>this['currentRevision']['toVersion']&&(_0x12a0ef=null),null===_0x12a0ef&&(_0x12a0ef=await this['_source']['getLatestVersion']());const _0x54267d=this['_getFromVersion'](_0x12a0ef),_0x50a06a=this['buildRevisionData']({'from':_0x54267d,'to':_0x12a0ef});if(this['currentRevision']['toVersion']<_0x12a0ef){const _0x5832ae=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x12a0ef,'to':_0x12a0ef});_0x5832ae['authors']=[],_0x5832ae['authorsIds']=[],_0x5832ae['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5832ae,!0x0),delete _0x5832ae['authors'],_0xcfc725['push'](_0x5832ae);}_0x23e274['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x23e274['name']=_0x23e274['name']||null,_0x23e274['id']=_0x23e274['id']||_0xebbfb1(),_0x23e274={..._0x23e274,..._0x50a06a};const _0x3bcb16=this['addRevisionData'](_0x23e274);_0xcfc725['push'](_0x23e274);const _0x4152be=this['repository']['getIndex'](_0x3bcb16);if(0x0!==_0x4152be){const _0x11fd36=this['repository']['getRevision'](_0x4152be-0x1);if(_0x11fd36['fromVersion']!==_0x12a0ef){const _0x431fe1=this['_revisionDataBuilder']['getData'](_0x12a0ef,_0x11fd36['toVersion']),_0x4cda73={'id':_0x11fd36['id'],'diffData':_0x431fe1['diffData'],'authorsIds':_0x431fe1['authorsIds'],'authors':_0x431fe1['authorsIds']['map'](_0x36c2b6=>this['editor']['plugins']['get']('Users')['getUser'](_0x36c2b6)),'fromVersion':_0x12a0ef};_0x11fd36===this['currentRevision']&&(_0x4cda73['createdAt']=new Date(_0x23e274['createdAt']['getTime']()+0xa)),_0x11fd36['_update'](_0x4cda73,!0x0),delete _0x4cda73['authors'],_0xcfc725['push'](_0x4cda73);}}if(this['adapter']){for(const _0x714b39 of _0xcfc725)this['_bufferUpdate'](_0x714b39['id'],_0x714b39,!0x0);this['sendBufferedUpdates']();}return _0x3bcb16;}['addRevisionData'](_0x2a762d){const _0x2d6178=this['repository']['createRevision'](_0x2a762d);return this['adapter']&&_0x2d6178['on']('_update',(_0x4bf112,_0x472ac1,_0x26cea3)=>{_0x26cea3||(this['_bufferUpdate'](_0x472ac1['id'],_0x472ac1,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2d6178,this['_findInsertionIndex'](_0x2d6178)),_0x2d6178;}async['getRevisionDocumentData'](_0x4adbbc){return await this['_utils']['loadRevisionData'](_0x4adbbc,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4adbbc);}async['getRevisionRootsAttributes'](_0xccc7b1){return await this['_utils']['loadRevisionData'](_0xccc7b1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xccc7b1);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x21ff6d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1e5723=0x0;_0x1e5723<_0x21ff6d['length'];_0x1e5723++){const _0x302ea4=_0x21ff6d[_0x1e5723];let _0xa86889=!0x1;for(const _0x483cc4 of Object['keys'](_0x302ea4))void 0x0===_0x302ea4[_0x483cc4]?delete _0x302ea4[_0x483cc4]:'id'!==_0x483cc4&&(_0xa86889=!0x0);_0xa86889||(_0x21ff6d[_0x1e5723]=null);}if(_0x21ff6d=_0x21ff6d['filter'](_0x26469d=>null!==_0x26469d),!_0x21ff6d['length'])return;for(let _0x2ea69e=0x0;_0x2ea69e<_0x21ff6d['length'];_0x2ea69e++){const _0xe0618d=_0x21ff6d[_0x2ea69e];void 0x0!==_0xe0618d['fromVersion']&&void 0x0===_0xe0618d['toVersion']&&(_0xe0618d['toVersion']=this['repository']['getRevision'](_0xe0618d['id'])['toVersion']),void 0x0!==_0xe0618d['toVersion']&&void 0x0===_0xe0618d['fromVersion']&&(_0xe0618d['fromVersion']=this['repository']['getRevision'](_0xe0618d['id'])['fromVersion']);}const _0x337d8d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x21ff6d,_0x337d8d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5999f9=>{if(_0x5999f9){for(const _0x29f2e3 of _0x5999f9)this['setRevisionData']({'id':_0x29f2e3['id'],'createdAt':_0x29f2e3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x17d983=null,from:_0x1898ba=null,to:_0x25e0c9=null}){_0x1898ba=null!==_0x1898ba?_0x1898ba:_0x17d983['fromVersion'],_0x25e0c9=null!==_0x25e0c9?_0x25e0c9:_0x17d983['toVersion'];const _0x42be22=this['_revisionDataBuilder']['getData'](_0x1898ba,_0x25e0c9),_0x27c3e5={'diffData':_0x42be22['diffData'],'authorsIds':_0x42be22['authorsIds'],'fromVersion':_0x1898ba,'toVersion':_0x25e0c9};if(!_0x17d983||_0x25e0c9!==_0x17d983['toVersion']){const _0x5901b0=_0x25e0c9-0x1,_0x4449fd=this['_source']['history']['getOperation'](_0x5901b0);_0x27c3e5['createdAt']=_0x4449fd&&_0x4449fd['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1898ba===this['_loadedStateData']['fromVersion']){for(const _0x486013 of this['_loadedStateData']['authors'])_0x27c3e5['authorsIds']['includes'](_0x486013['id'])||_0x27c3e5['authorsIds']['push'](_0x486013['id']);}return _0x27c3e5;}['_bufferUpdate'](_0x14afa2,_0x3aca8e,_0x272a8a){if(this['_bufferedUpdates']['has'](_0x14afa2)){const _0x1d1b86=this['_bufferedUpdates']['get'](_0x14afa2);_0x3aca8e=_0x272a8a?{..._0x1d1b86,..._0x3aca8e}:{..._0x3aca8e,..._0x1d1b86};}this['_bufferedUpdates']['set'](_0x14afa2,_0x3aca8e);}['setRevisionData'](_0x10714a){const _0x7119a1=this['repository']['getRevision'](_0x10714a['id']);if(_0x10714a['createdAt']&&(_0x10714a['createdAt']=new Date(_0x10714a['createdAt'])),_0x10714a['authorsIds']){const _0x54b804=this['editor']['plugins']['get']('Users');_0x10714a['authors']=_0x10714a['authorsIds']['map'](_0x4a70dd=>_0x54b804['getUser'](_0x4a70dd));}_0x7119a1['_update'](_0x10714a,!0x0);}['_createInitialRevision'](_0x170ca6){const _0x43f5b3=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x43f5b3)this['_initialRevisionId']=_0x43f5b3['id'];else{const _0x5b0481=!this['editor']['model']['document']['roots']['find'](_0x13ce88=>this['editor']['model']['hasContent'](_0x13ce88)),_0x18848e=this['editor']['plugins']['get']('Users')['me']['id'],_0x575075=g(this['editor']['locale'],_0x5b0481?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x170ca6,'to':_0x170ca6,'id':this['_initialRevisionId'],'name':_0x575075,'creatorId':_0x18848e});}}['_createCurrentRevision'](_0x2d7490){const _0x5510af=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5510af),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2d7490,'to':_0x2d7490,'id':_0x5510af,'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'](_0x56dad8,_0x95c194){let _0x4ce22d=this['editor']['config']['get']('initialData'),_0x3ea557=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4ce22d){_0x4ce22d={};for(const _0x2eb655 of this['editor']['model']['document']['getRootNames']())_0x4ce22d[_0x2eb655]='';}if('string'==typeof _0x4ce22d&&(_0x4ce22d={'main':_0x4ce22d}),void 0x0===_0x3ea557){_0x3ea557={};for(const _0x7fe03a of this['editor']['model']['document']['getRootNames']())_0x3ea557[_0x7fe03a]={};}let _0x55143f=!0x1;const _0x4f3f60=Object['keys'](_0x4ce22d),_0x3f0982=Object['keys'](_0x56dad8);for(const _0x41ce2e of _0x4f3f60){if(_0x4ce22d[_0x41ce2e]!==_0x56dad8[_0x41ce2e]&&''!==_0x4ce22d[_0x41ce2e]['trim']()){_0x55143f=!0x0;break;}if(!_0x5a58ba(_0x3ea557[_0x41ce2e],_0x95c194[_0x41ce2e])&&Object['keys'](_0x3ea557[_0x41ce2e])['length']>0x0){_0x55143f=!0x0;break;}}_0x55143f||(_0x55143f=_0x3f0982['some'](_0x4c5a3c=>!this['editor']['model']['document']['getRoot'](_0x4c5a3c))),_0x55143f&&_0x466f46('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4ce22d,'editorRootsAttributes':_0x3ea557,'revisionData':_0x56dad8,'revisionRootsAttributes':_0x95c194}),this['editor']['config']['set']('initialData',_0x56dad8),this['editor']['config']['set']('rootsAttributes',_0x95c194);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x495389=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x495389['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x50b114){const _0x53e513=this['repository']['getRevisions']();_0x53e513['reverse']();let _0x320f5d=0x0;for(;_0x320f5d<_0x53e513['length'];){const _0x414d8=_0x53e513[_0x320f5d];if(_0x414d8===this['currentRevision']){_0x320f5d++;continue;}if(_0x414d8['id']===this['_initialRevisionId'])break;const _0x3efca1=_0x50b114['toVersion']-_0x414d8['toVersion']||_0x50b114['fromVersion']-_0x414d8['fromVersion'];if(_0x3efca1>0x0)break;if(_0x3efca1<0x0)_0x320f5d++;else{if(!_0x50b114['creator']&&_0x414d8['creator'])break;if(_0x414d8['creator']||!_0x50b114['creator']){if(_0x50b114['createdAt']>_0x414d8['createdAt'])break;_0x320f5d++;}else _0x320f5d++;}}return _0x320f5d;}['_getFromVersion'](_0x5935dc){const _0x994ca2=this['repository']['getRevisions']();_0x994ca2['reverse'](),_0x994ca2['shift']();const _0x55a175=_0x994ca2['find'](_0x2468dd=>_0x2468dd['toVersion']<=_0x5935dc)['toVersion'];return _0x55a175<this['_startingVersion']?this['_startingVersion']:_0x55a175;}['_makeRevision']({name:_0x31876f,from:_0x32c391,to:_0x35ad09,creatorId:_0x4f8052,id:_0x412e7c}){const _0x2443c7=this['buildRevisionData']({'from':_0x32c391,'to':_0x35ad09});_0x2443c7['name']=_0x31876f,_0x2443c7['creatorId']=_0x4f8052,_0x2443c7['id']=_0x412e7c;const _0x5799eb=this['addRevisionData'](_0x2443c7);return this['adapter']&&this['_bufferUpdate'](_0x2443c7['id'],_0x2443c7,!0x0),_0x5799eb;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x50f508){this['editor']=_0x50f508,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'](_0x3daaed){this['source']=_0x3daaed;const _0x20603b=new Map(),_0xd767a5=new Map(),_0x1abe97=this['editor']['model']['document']['roots']['map'](_0x22237b=>_0x22237b['rootName']);for(const _0x27884f of _0x1abe97){const _0x20f8f1=this['editor']['model']['document']['getRoot'](_0x27884f),_0x4e16e9=N(_0x20f8f1);_0x20603b['set'](_0x27884f,_0x4e16e9),_0xd767a5['set'](_0x27884f,Object['fromEntries'](_0x20f8f1['getAttributes']()));}const _0x32f91f=Array['from'](this['editor']['model']['markers'])['map'](_0x1f9de7=>[_0x1f9de7['name'],_0x1f9de7['getRange']()]),_0x9d21c6=this['source']['version'];this['_saveMetaData'](_0x9d21c6,_0x20603b,_0x32f91f,_0xd767a5),this['_startingRevisionId']=this['_revisionId'];const _0xc9fb8a=new Map(),_0x53bf57=new Map();for(const _0x26aaef of _0x1abe97){const _0x443074=P(_0x26aaef);_0xc9fb8a['set'](_0x26aaef,_0x443074),_0x53bf57['set'](_0x26aaef,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xc9fb8a,[],_0x53bf57);}['getData'](_0x476a41,_0xff0112){if(this['_lastFrom']===_0x476a41&&this['_lastTo']<=_0xff0112)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xff0112,!0x0);else{if(!this['_savedMetaData']['has'](_0x476a41)){const _0x2a822b=this['_getPreviousFrom'](_0x476a41);this['_calculateMetaData'](_0x2a822b,_0x476a41,!0x1);}this['_calculateMetaData'](_0x476a41,_0xff0112,!0x0);}return this['_lastFrom']=_0x476a41,this['_lastTo']=_0xff0112,this['_getState']();}['loadState'](_0x36b4f3){const _0x3cabe8=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x36b4f3['fromVersion'],this['_lastTo']=_0x36b4f3['toVersion'];for(const _0xc29c1 in _0x36b4f3['diffData']){const _0x5a8eca=_0x36b4f3['diffData'][_0xc29c1]['attachChange'],_0x159554=_0xd7a62f(_0x36b4f3['diffData'][_0xc29c1]['attributesBefore'])||{},_0x412f81=_0x3cabe8['_makeModelFromViewString'](_0x36b4f3['diffData'][_0xc29c1]['deletions']);_0x412f81['rootName']=_0xc29c1,_0x412f81['_isAttached']=!_0x5a8eca||!_0x5a8eca['isAttached'],_0x412f81['isAttached']=()=>_0x412f81['_isAttached'],this['_baseRoots']['set'](_0xc29c1,_0x412f81),this['_baseRootsAttributes']['set'](_0xc29c1,_0x159554),_0x5a8eca&&this['_touchedRoots']['set'](_0xc29c1,_0x5a8eca);const _0x598123=this['_makeIdsRoot'](_0x412f81);this['_baseIdsRoots']['set'](_0xc29c1,_0x598123);for(const [_0x4b4cc3,_0x22c564]of _0x412f81['markers']){if(!_0x4b4cc3['startsWith']('revision:'))continue;const _0x3eb11f=_0x4b4cc3['split'](':')[0x2];for(const _0x46f517 of _0x22c564['getWalker']({'singleCharacters':!0x0})){const _0x5bea3d=this['_getVidAttributeName'](_0x46f517),_0x1a444c='elementEnd'==_0x46f517['type']?_0x46f517['previousPosition']['path']['slice'](0x0,-0x1):_0x46f517['previousPosition']['path'],_0x17cceb=_0x598123['getNodeByPath'](_0x1a444c)['getAttribute'](_0x5bea3d);this['_touched']['set'](_0x17cceb,{'userId':_0x3eb11f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x290ad=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x29114c=>!this['_touched']['has'](_0x29114c));let _0x1a8b10=0x0;const _0x32f9a7=new Map();for(const _0x1aac3e in _0x36b4f3['diffData']){const _0x3edbd1=_0x36b4f3['diffData'][_0x1aac3e]['attachChange'],_0x387ea9=_0xd7a62f(_0x36b4f3['diffData'][_0x1aac3e]['attributesAfter'])||{},_0x42d0c3=_0x3cabe8['_makeModelFromViewString'](_0x36b4f3['diffData'][_0x1aac3e]['insertions']);_0x42d0c3['rootName']=_0x1aac3e,_0x42d0c3['_isAttached']=!_0x3edbd1||_0x3edbd1['isAttached'],_0x42d0c3['isAttached']=()=>_0x42d0c3['_isAttached'],this['_diffRoots']['set'](_0x1aac3e,_0x42d0c3),this['_diffRootsAttributes']['set'](_0x1aac3e,_0x387ea9);const _0x360f32=this['_makeIdsRoot'](_0x42d0c3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1aac3e,_0x360f32),_0x32f9a7['set'](_0x1aac3e,_0x42d0c3['isAttached']()?_0x387ea9:{});for(const [_0x28265a,_0x493375]of _0x42d0c3['markers']){if(!_0x28265a['startsWith']('revision:'))continue;const _0x55fe99=_0x28265a['split'](':')[0x2];for(const _0x13a70d of _0x493375['getWalker']({'singleCharacters':!0x0})){const _0x30ee38=this['_getVidAttributeName'](_0x13a70d),_0x2d3299=this['_revisionId']++,_0xf8dff6='elementEnd'==_0x13a70d['type']?_0x13a70d['previousPosition']['path']['slice'](0x0,-0x1):_0x13a70d['previousPosition']['path'];_0x360f32['getNodeByPath'](_0xf8dff6)['_setAttribute'](_0x30ee38,_0x2d3299),this['_touched']['set'](_0x2d3299,{'userId':_0x55fe99});}}for(const _0x55f391 of this['editor']['model']['createRangeIn'](_0x42d0c3)['getWalker']({'singleCharacters':!0x0})){const _0x36cccf=this['_getVidAttributeName'](_0x55f391),_0x3402f7='elementEnd'==_0x55f391['type']?_0x55f391['previousPosition']['path']['slice'](0x0,-0x1):_0x55f391['previousPosition']['path'],_0x374197=_0x360f32['getNodeByPath'](_0x3402f7);_0x374197['getAttribute'](_0x36cccf)>0x0||_0x374197['_setAttribute'](_0x36cccf,_0x290ad[_0x1a8b10++]);}for(const [_0x5a35b3,_0x366f1b]of _0x42d0c3['markers'])_0x5a35b3['startsWith']('revision:')||this['_markers']['set'](_0x5a35b3,_0x366f1b);}const _0x5f406f=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5f406f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5f406f,0x1));const _0x3347c3=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3347c3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3347c3,0x1));const _0x4535fd=Array['from'](this['_diffRoots'])['map'](([_0xce9d7e,_0x39b73f])=>[_0xce9d7e,N(_0x39b73f)]);this['_saveMetaData'](this['_lastTo'],_0x4535fd,this['_markers'],_0x32f9a7);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xf7b2c3,_0xbf9c72,_0x2bca8b,_0x2b5008){const _0x142d80=new Map(_0xbf9c72),_0x10f496=new Map(_0xd7a62f(_0x2b5008)),_0x1ebce3=new Map();for(const [_0x411f34,_0x153fe4]of _0x2bca8b)_0x1ebce3['set'](_0x411f34,{'start':_0x153fe4['start']['clone'](),'end':_0x153fe4['end']['clone'](),'rootName':_0x153fe4['root']['rootName']});this['_savedMetaData']['set'](_0xf7b2c3,{'roots':_0x142d80,'markers':_0x1ebce3,'rootsAttributes':_0x10f496});}['_removeMetaData'](_0x5cd35a){this['_savedMetaData']['delete'](_0x5cd35a);}['_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'](_0x339d2c,_0x4f7613=null){let _0x1da7a6=null;_0x339d2c['is']('documentFragment')||(_0x1da7a6=new ut(_0x339d2c['name'],{'vid_start':null===_0x4f7613?this['_revisionId']++:_0x4f7613++}));const _0x3234c4=[];for(const _0xfb203f of _0x339d2c['getChildren']())if(_0xfb203f['is']('element')){_0x3234c4['push'](this['_makeIdsRoot'](_0xfb203f,_0x4f7613));const _0x4464b1=_0x3234c4[_0x3234c4['length']-0x1];null!==_0x4f7613&&(_0x4f7613=_0x4464b1['is']('element','$text')?_0x4464b1['getAttribute']('vid')+0x1:_0x4464b1['getAttribute']('vid_end')+0x1);}else{for(let _0xdf24ae=0x0;_0xdf24ae<_0xfb203f['offsetSize'];_0xdf24ae++)_0x3234c4['push'](new ut('$text',{'vid':null===_0x4f7613?this['_revisionId']++:_0x4f7613++}));}if(_0x339d2c['is']('documentFragment')){const _0x464763=P(_0x339d2c['rootName']);return _0x464763['_insertChild'](0x0,_0x3234c4),_0x464763;}return _0x1da7a6['_setAttribute']('vid_end',null===_0x4f7613?this['_revisionId']++:_0x4f7613++),_0x1da7a6['_insertChild'](0x0,_0x3234c4),_0x1da7a6;}['_calculateMetaData'](_0x20a2f9,_0x4d6bd2,_0x39351c){this['_reset']();const {roots:_0x4f1557,markers:_0x31d408,rootsAttributes:_0xeed911}=this['_savedMetaData']['get'](_0x20a2f9);this['_baseRoots']=new Map(_0x4f1557),this['_baseRootsAttributes']=new Map(_0xd7a62f(_0xeed911));for(const [_0x2ea5a1,_0xc83ec3]of this['_baseRoots'])if('$graveyard'!==_0x2ea5a1&&(this['_diffRoots']['set'](_0x2ea5a1,N(_0xc83ec3)),this['_diffRootsAttributes']=new Map(_0xd7a62f(_0xeed911)),_0x39351c)){const _0x19b8e1=this['_revisionId'];this['_idsRoots']['set'](_0x2ea5a1,this['_makeIdsRoot'](_0xc83ec3)),this['_baseIdsRoots']['set'](_0x2ea5a1,this['_makeIdsRoot'](_0xc83ec3,_0x19b8e1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x39351c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2d637d,_0xb3ab3]of _0x31d408){const _0x34ac28=this['_baseRoots']['get'](_0xb3ab3['rootName']),_0x5e08fd=this['_diffRoots']['get'](_0xb3ab3['rootName']),_0x452445=new lt(this['_fixPosition'](_0xb3ab3['start'],_0x34ac28),this['_fixPosition'](_0xb3ab3['end'],_0x34ac28)),_0x522dd9=this['_fixRange'](_0x452445,_0x5e08fd);_0x34ac28['markers']['set'](_0x2d637d,_0x452445),this['_markers']['set'](_0x2d637d,_0x522dd9);}this['_applyOperations'](_0x20a2f9,_0x4d6bd2,_0x39351c);}['_applyOperations'](_0x322b5a,_0x32fdc6,_0x8cfe33){for(const _0x15137f of this['source']['getOperations'](_0x322b5a,_0x32fdc6))this['_handleOperation'](_0x15137f,_0x8cfe33);for(const _0x2bfa1c of this['_diffRoots']['values']())_0x2bfa1c['markers']['clear']();for(const [_0x1feb67,_0x2af1fe]of this['_markers']){this['_diffRoots']['get'](_0x2af1fe['root']['rootName'])['markers']['set'](_0x1feb67,_0x2af1fe['clone']());}const _0x52ce7c=new Map(),_0x2bd074=new Map();for(const [_0x11a5eb,_0x2f02bd]of this['_diffRoots'])_0x52ce7c['set'](_0x11a5eb,N(_0x2f02bd)),_0x2bd074['set'](_0x11a5eb,this['_diffRootsAttributes']['get'](_0x11a5eb));this['_saveMetaData'](_0x32fdc6,_0x52ce7c,this['_markers'],_0x2bd074);}['_getPreviousFrom'](_0xce5f42){const _0x193d14=Array['from'](this['_savedMetaData']['keys']());_0x193d14['sort']((_0x2b0545,_0x4f68be)=>_0x2b0545-_0x4f68be),_0x193d14['reverse']();for(const _0x5c3f6a of _0x193d14)if(_0x5c3f6a<_0xce5f42)return _0x5c3f6a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x22e7f1,_0x359a8c){const _0x36a374=Array['from'](_0x359a8c['markers'])['map'](([_0x3a8f80,_0x183cae])=>[_0x3a8f80,this['_fixRange'](_0x183cae,_0x22e7f1)]);_0x22e7f1['markers']=new Map(_0x36a374);}['_transformMarkers'](_0x53b0b3){for(const _0x1ab21f of this['_markers']['values']()){const _0x3649dd=_0x1ab21f['getTransformedByOperation'](_0x53b0b3),_0x3abe3d=lt['_createFromRanges'](_0x3649dd);_0x1ab21f['start']=_0x3abe3d['start'],_0x1ab21f['end']=_0x3abe3d['end'];}}['_handleOperation'](_0x2946d1,_0x2ee249){if('addRoot'!=_0x2946d1['type']&&'detachRoot'!=_0x2946d1['type']){if('insert'==_0x2946d1['type']){const _0x33e143=_0x2946d1['position']['root']['rootName'];this['_diffRoots']['has'](_0x33e143)||(this['_diffRoots']['set'](_0x33e143,P(_0x33e143,!0x0)),this['_diffRootsAttributes']['set'](_0x33e143,{}),_0x2ee249&&this['_idsRoots']['set'](_0x33e143,P(_0x33e143,!0x0)));}else{if('addRootAttribute'==_0x2946d1['type']||'removeRootAttribute'==_0x2946d1['type']||'changeRootAttribute'==_0x2946d1['type'])return void this['_handleRootAttributeOperation'](_0x2946d1);'marker'==_0x2946d1['type']&&this['_handleMarkerOperation'](_0x2946d1);}if('marker'!==_0x2946d1['type']){const _0x2fb481=this['_cloneOperation'](_0x2946d1,this['_diffRoots']);_0x2fb481['_execute'](),this['_transformMarkers'](_0x2fb481);}if(_0x2ee249)switch(_0x2946d1['type']){case'insert':this['_handleInsertOperation'](_0x2946d1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2946d1);break;case'merge':this['_handleMergeOperation'](_0x2946d1);break;case'split':this['_handleSplitOperation'](_0x2946d1);}}else this['_handleRootOperation'](_0x2946d1,_0x2ee249);}['_cloneOperation'](_0x1a9e39,_0x556147){const _0x49ebec=_0x1a9e39['clone']();return _0x49ebec['_authorId']=_0x1a9e39['_authorId'],this['_fixOperation'](_0x49ebec,_0x556147),_0x49ebec;}['_getBaseVids'](_0x3ed5d3){return _0x3ed5d3['map'](_0xdc6ac8=>{const _0x1f0792=this['_getVidAttributeName'](_0xdc6ac8);return Number(_0xdc6ac8['item']['getAttribute'](_0x1f0792));});}['_generateTape'](_0x14d895,_0x194ad0){if(_0x14d895['is']('element','$text'))_0x194ad0['push']({'item':_0x14d895,'type':'text'});else{_0x14d895['is']('element')&&_0x194ad0['push']({'item':_0x14d895,'type':'elementStart'});for(const _0x150391 of _0x14d895['getChildren']())this['_generateTape'](_0x150391,_0x194ad0);_0x14d895['is']('element')&&_0x194ad0['push']({'item':_0x14d895,'type':'elementEnd'});}return _0x194ad0;}['_getState'](){const _0xda2f10=new Map(this['_touched']),_0x1c7ec6=new Map(_0xda2f10),_0x57953d=new Map(),_0xa1903b={'insertions':{},'deletions':{}},_0x1aa911={'insertions':{},'deletions':{}},_0x51679a=new Map(),_0x4fd42e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4fd42e['delete']('$graveyard');for(const _0x5652fc of _0x4fd42e){const _0x39889a=this['_diffRoots']['get'](_0x5652fc)||P(_0x5652fc,!0x1),_0x3d5d79=this['_baseRoots']['get'](_0x5652fc)||P(_0x5652fc,!0x1);_0x39889a['isAttached']()||_0x3d5d79['isAttached']()?(_0xa1903b['insertions'][_0x5652fc]=N(_0x39889a),_0xa1903b['deletions'][_0x5652fc]=N(_0x3d5d79),this['_copyMarkers'](_0xa1903b['deletions'][_0x5652fc],_0x3d5d79),this['_copyMarkers'](_0xa1903b['insertions'][_0x5652fc],_0x39889a),_0x1aa911['insertions'][_0x5652fc]=this['_generateTape'](this['_idsRoots']['get'](_0x5652fc),[]),_0x1aa911['deletions'][_0x5652fc]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5652fc)||P(_0x5652fc,!0x1),[])):_0x4fd42e['delete'](_0x5652fc);}for(const _0x2b74ac of _0x4fd42e){const _0xd18361=_0x1aa911['insertions'][_0x2b74ac];for(const _0xd418a1 of _0xd18361){const _0x28c58c=this['_getVidAttributeName'](_0xd418a1),_0x103d06=_0xd418a1['item']['getAttribute'](_0x28c58c);_0x1c7ec6['delete'](_0x103d06),_0x103d06>=this['_startingRevisionId']&&_0x57953d['set'](_0x103d06,_0xda2f10['get'](_0x103d06));}}for(const _0xb28fce of _0x4fd42e){const _0x593b40=_0x1aa911['insertions'][_0xb28fce],_0x368c27=this['_getBaseVids'](_0x1aa911['deletions'][_0xb28fce]);let _0x4ad4fd=0x0;for(const _0x4f5ea3 of _0x593b40){const _0x35ab1b=this['_getVidAttributeName'](_0x4f5ea3),_0x2e0e88=_0x4f5ea3['item']['getAttribute'](_0x35ab1b);if(!_0x57953d['has'](_0x2e0e88)&&!_0x51679a['has'](_0x2e0e88)){if(_0x1c7ec6['has'](_0x2e0e88))_0x4ad4fd++;else{if(_0x2e0e88!=_0x368c27[_0x4ad4fd]){const _0x491b3e=_0xda2f10['get'](_0x2e0e88)||_0xda2f10['get'](_0x368c27[_0x4ad4fd]);for(;_0x2e0e88!=_0x368c27[_0x4ad4fd];)_0x1c7ec6['has'](_0x368c27[_0x4ad4fd])||(_0x51679a['set'](_0x368c27[_0x4ad4fd],_0x491b3e),_0xda2f10['set'](_0x368c27[_0x4ad4fd],_0x491b3e)),_0x4ad4fd++;}_0x4ad4fd++;}}}}for(const _0x4d8f90 of _0x4fd42e){const _0x202e71=_0x1aa911['insertions'][_0x4d8f90];for(const _0x3f515b of _0x202e71){const _0x4a0cbc=this['_getVidAttributeName'](_0x3f515b),_0x3538f1=_0x3f515b['item']['getAttribute'](_0x4a0cbc);if(_0x51679a['has'](_0x3538f1)){const _0x4613d0=_0x51679a['get'](_0x3538f1);_0x1c7ec6['has'](_0x3538f1)||_0x1c7ec6['set'](_0x3538f1,{..._0x4613d0}),_0x57953d['set'](_0x3538f1,{..._0x4613d0});}}}for(const _0xe689b3 of _0x1c7ec6['keys']())_0xe689b3>=this['_startingRevisionId']&&_0x1c7ec6['delete'](_0xe689b3);const _0x1885fc=new Map();for(const _0x5141d1 of _0x4fd42e){let _0x4d4d1c=_0x1aa911['insertions'][_0x5141d1];for(const _0x18ad15 of _0x4d4d1c)if(_0x18ad15['item']['is']('element','tableCell')){const _0x587796=this['_getVidAttributeName'](_0x18ad15),_0x210eba=_0x18ad15['item']['getAttribute'](_0x587796);if(_0x57953d['has'](_0x210eba)){const _0x55b823=_0x18ad15['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ca800=_0x1885fc['get'](_0x55b823)||new Set();_0x4ca800['add'](_0x57953d['get'](_0x210eba)['userId']),_0x1885fc['set'](_0x55b823,_0x4ca800);}}_0x4d4d1c=_0x1aa911['deletions'][_0x5141d1];for(const _0x57756a of _0x4d4d1c)if(_0x57756a['item']['is']('element','tableCell')){const _0x256ab1=this['_getVidAttributeName'](_0x57756a),_0x13ba99=_0x57756a['item']['getAttribute'](_0x256ab1);if(_0x1c7ec6['has'](_0x13ba99)){const _0x22de76=_0x57756a['item']['parent']['parent']['getAttribute']('vid_start'),_0x16366e=_0x1885fc['get'](_0x22de76)||new Set();_0x16366e['add'](_0x1c7ec6['get'](_0x13ba99)['userId']),_0x1885fc['set'](_0x22de76,_0x16366e);}}for(const _0x259f71 of _0x1885fc['keys']())(_0x57953d['has'](_0x259f71)||_0x1c7ec6['has'](_0x259f71))&&_0x1885fc['delete'](_0x259f71);}for(const _0x2ac8e4 of _0x4fd42e){const _0x2c05cb=_0x1aa911['insertions'][_0x2ac8e4];let _0x25d7e1=null,_0x240957=null;for(const _0x2f9fd2 of _0x2c05cb){const _0x1c823a=this['_getVidAttributeName'](_0x2f9fd2),_0x13ca20=_0x2f9fd2['item']['getAttribute'](_0x1c823a),_0x1329d2=_0x1885fc['get'](_0x13ca20);_0x1329d2&&'elementStart'==_0x2f9fd2['type']&&(_0x25d7e1=Array['from'](_0x1329d2)[0x0],_0x240957=_0x2f9fd2['item']['getAttribute']('vid_end')),_0x25d7e1&&(_0x1c7ec6['set'](_0x13ca20,{'userId':_0x25d7e1}),_0x57953d['set'](_0x13ca20,{'userId':_0x25d7e1})),_0x13ca20==_0x240957&&(_0x25d7e1=null,_0x240957=null);}}const _0x1b018e={},_0x1bbd12=new Set();for(const _0x168790 of _0x4fd42e){const _0x17c0f4=_0xa1903b['deletions'][_0x168790],_0x10a91e=_0xa1903b['insertions'][_0x168790];for(const {userId:_0x97a8ca}of this['_touchedMarkers']['values']())null!==_0x97a8ca&&_0x1bbd12['add'](_0x97a8ca);for(const {userId:_0x5d60f8}of this['_touchedRoots']['values']())null!==_0x5d60f8&&_0x1bbd12['add'](_0x5d60f8);this['_markChanges'](_0x10a91e,_0x1aa911['insertions'][_0x168790],_0x57953d,'insertion',_0x1bbd12),this['_markChanges'](_0x17c0f4,_0x1aa911['deletions'][_0x168790],_0x1c7ec6,'deletion',_0x1bbd12),_0x1b018e[_0x168790]={'insertions':this['_prepareViewToSave'](_0x10a91e),'deletions':this['_prepareViewToSave'](_0x17c0f4),'attachChange':this['_touchedRoots']['get'](_0x168790)||null,'attributesBefore':_0xd7a62f(this['_baseRootsAttributes']['get'](_0x168790))||{},'attributesAfter':_0xd7a62f(this['_diffRootsAttributes']['get'](_0x168790))};}return{'diffData':_0x1b018e,'authorsIds':Array['from'](_0x1bbd12)};}['_processRootBeforeSave'](_0x7cc5d2){for(const [,_0x120806]of _0x7cc5d2['markers']){const _0x9ef4f1=_0x120806['start']['getAncestors']()['filter'](_0x13f5b9=>'tableCell'==_0x13f5b9['name']);for(const _0x37a9ab of _0x9ef4f1)0x1==_0x37a9ab['childCount']&&_0x37a9ab['getChild'](0x0)['is']('element','paragraph')&&_0x37a9ab['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5decb5){this['_processRootBeforeSave'](_0x5decb5);const _0x1a2b01=this['editor']['data']['toView'](_0x5decb5,{}),_0xf18ab3=Array['from'](_0x1a2b01['getChildren']())['map'](_0x1010da=>this['_getViewJson'](_0x1010da));return JSON['stringify'](_0xf18ab3);}['_getViewJson'](_0x44489b){if(_0x44489b['is']('$text'))return _0x44489b['data'];{const _0x2a45ff=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x50d42c=_0x44489b,_0x17ebaf=this['editor']['data']['htmlProcessor']['domConverter'],_0x66bfaf={'type':_0x2a45ff['_getTypeCharForViewElement'](_0x50d42c),'name':_0x50d42c['name'],'attributes':Array['from'](_0x50d42c['getAttributes']()),'children':Array['from'](_0x50d42c['getChildren']())['map'](_0xece97c=>this['_getViewJson'](_0xece97c))};if(_0x44489b['is']('uiElement')&&'$comment'!=_0x44489b['name']){const _0x25faa3=_0x44489b['render'](_0x17ebaf['domDocument'],_0x17ebaf);_0x66bfaf['children']['push'](_0x25faa3['outerHTML']);}else{if(_0x44489b['is']('rawElement')){const _0x4cdc19=_0x17ebaf['domDocument']['createElement'](_0x50d42c['name']);_0x44489b['render'](_0x4cdc19,_0x17ebaf),_0x66bfaf['children']['push'](_0x4cdc19['innerHTML']);}}const _0x4c5187=Array['from'](_0x50d42c['getCustomProperties']());_0x4c5187['length']>0x0&&(_0x66bfaf['customProperties']=_0x4c5187);const _0x48b361=_0x50d42c['getFillerOffset']();return null!==_0x48b361&&(_0x66bfaf['fillerOffset']=_0x48b361),_0x66bfaf;}}['_markChanges'](_0xe37204,_0x5877ed,_0x5ee2b6,_0x25da94,_0x2d85ed){let _0x493305=null,_0x1f6dca=null,_0x2dc4bf=0x0;const _0x25639a=this['editor']['model'];for(let _0x5a666a=0x0;_0x5a666a<_0x5877ed['length'];_0x5a666a++){const _0x25e3ad=this['_getVidAttributeName'](_0x5877ed[_0x5a666a]),_0x4408a7=_0x5877ed[_0x5a666a]['item']['getAttribute'](_0x25e3ad),_0x3fc383=_0x5ee2b6['get'](_0x4408a7),_0x11c5f8=_0x5a666a==_0x5877ed['length']-0x1;(!_0x493305&&_0x3fc383&&(_0x493305=_0x3fc383,_0x1f6dca=_0x5877ed[_0x5a666a]),_0x493305&&(!_0x3fc383||_0x3fc383['userId']!=_0x493305['userId']))&&(_0x5786c2(_0x3fc383,F(_0x1f6dca,_0xe37204,_0x25639a),F(_0x5877ed[_0x5a666a],_0xe37204,_0x25639a)),_0x493305=_0x3fc383||null,_0x1f6dca=_0x3fc383?_0x5877ed[_0x5a666a]:null),_0x493305&&_0x11c5f8&&_0x5786c2(_0x3fc383,F(_0x1f6dca,_0xe37204,_0x25639a),B(_0x5877ed[_0x5a666a],_0xe37204,_0x25639a));}function _0x5786c2(_0x70d883,_0x1bc77f,_0x58394f){const _0x50c883=_0x493305['userId'],_0x24bc0a='revision:'+_0x25da94+':'+_0x50c883+':'+_0x2dc4bf++,_0x166d4e=_0x25639a['createRange'](_0x1bc77f,_0x58394f);_0xe37204['markers']['set'](_0x24bc0a,_0x166d4e),null!==_0x50c883&&_0x2d85ed['add'](_0x50c883);}}['_getVidAttributeName'](_0x21874e){switch(_0x21874e['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x207449,_0x36d80b){_0x207449['baseVersion']=null;for(const _0x24d0c1 in _0x207449){const _0xb7c32=_0x207449[_0x24d0c1];if(_0xb7c32 instanceof ft){const _0x455bda=_0x36d80b['get'](_0xb7c32['root']['rootName']);_0x207449[_0x24d0c1]=this['_fixPosition'](_0xb7c32,_0x455bda);}if(_0xb7c32 instanceof lt){const _0x251f39=_0x36d80b['get'](_0xb7c32['root']['rootName']);_0x207449[_0x24d0c1]=this['_fixRange'](_0xb7c32,_0x251f39);}'root'===_0x24d0c1&&(_0x207449['root']=_0x36d80b['get'](_0x207449['root']['rootName']));}}['_fixRange'](_0x481eb1,_0x156d71){return this['editor']['model']['createRange'](this['_fixPosition'](_0x481eb1['start'],_0x156d71),this['_fixPosition'](_0x481eb1['end'],_0x156d71));}['_fixPosition'](_0x3860fb,_0x585a42){return this['editor']['model']['createPositionFromPath'](_0x585a42,_0x3860fb['path'],_0x3860fb['stickiness']);}['_handleInsertOperation'](_0x27a50a){const _0x5d137e=this['_idsRoots']['get'](_0x27a50a['position']['root']['rootName']),_0x2f1cb7=this['_fixPosition'](_0x27a50a['position'],_0x5d137e),_0x16a0df=null===_0x27a50a['_authorId']?null:_0x27a50a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17ef5a=_0x2f1cb7['parent'],_0x4feb01=this['_revisionId'],_0x557744=[];for(const _0x5a46bb of _0x27a50a['nodes'])if(_0x5a46bb['is']('element'))_0x557744['push'](this['_makeIdsRoot'](_0x5a46bb));else{for(let _0x57c887=0x0;_0x57c887<_0x5a46bb['offsetSize'];_0x57c887++)_0x557744['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x155f97=this['_revisionId'];for(let _0xb72e4a=_0x4feb01;_0xb72e4a<_0x155f97;_0xb72e4a++)this['_touched']['set'](_0xb72e4a,{'userId':_0x16a0df});_0x17ef5a['_insertChild'](_0x2f1cb7['offset'],_0x557744);}['_handleMoveOperation'](_0x3e051d){(_0x3e051d=this['_cloneOperation'](_0x3e051d,this['_idsRoots']))['_execute']();const _0x4ff37c=null===_0x3e051d['_authorId']?null:_0x3e051d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc5b3b5=_0x3e051d['getMovedRangeStart'](),_0x5d620e=_0xc5b3b5['parent'],_0x71b38a=_0xc5b3b5['offset'];!function _0x47341e(_0x11d22b,_0x15ca27,_0x1dbfc6,_0x16a5a6){for(let _0x13cd0b=_0x1dbfc6;_0x13cd0b<_0x16a5a6;_0x13cd0b++){const _0x4c5f24=_0x15ca27['getChild'](_0x13cd0b);_0x4c5f24['is']('element','$text')?_0x11d22b['set'](_0x4c5f24['getAttribute']('vid'),{'userId':_0x4ff37c}):(_0x11d22b['set'](_0x4c5f24['getAttribute']('vid_start'),{'userId':_0x4ff37c}),_0x47341e(_0x11d22b,_0x4c5f24,0x0,_0x4c5f24['childCount']),_0x11d22b['set'](_0x4c5f24['getAttribute']('vid_end'),{'userId':_0x4ff37c}));}}(this['_touched'],_0x5d620e,_0x71b38a,_0x71b38a+_0x3e051d['howMany']);}['_handleMergeOperation'](_0x1080a6){const _0x51e83b=null===(_0x1080a6=this['_cloneOperation'](_0x1080a6,this['_idsRoots']))['_authorId']?null:_0x1080a6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a713b=_0x1080a6['targetPosition']['parent'],_0x2047f4=_0x1080a6['sourcePosition']['parent'],_0x493b3d=_0x4a713b['getAttribute']('vid_end'),_0x4deda0=_0x2047f4['getAttribute']('vid_start');_0x4a713b['_setAttribute']('vid_end',_0x2047f4['getAttribute']('vid_end')),_0x2047f4['_setAttribute']('vid_end',_0x493b3d),this['_touched']['set'](_0x4deda0,{'userId':_0x51e83b}),this['_touched']['set'](_0x493b3d,{'userId':_0x51e83b}),_0x1080a6['_execute']();}['_handleSplitOperation'](_0x8cb720){const _0x49785a=null===(_0x8cb720=this['_cloneOperation'](_0x8cb720,this['_idsRoots']))['_authorId']?null:_0x8cb720['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5255b5=_0x8cb720['graveyardPosition'],_0x4acc85=_0x8cb720['splitPosition']['parent'];_0x8cb720['_execute']();const _0x24a73c=_0x4acc85['getAttribute']('vid_end'),_0x868014=_0x8cb720['insertionPosition']['nodeAfter'];if(_0x5255b5){const _0x4b03e2=_0x868014['getAttribute']('vid_end'),_0x57205e=_0x4acc85['getAttribute']('vid_end');_0x4acc85['_setAttribute']('vid_end',_0x4b03e2),_0x868014['_setAttribute']('vid_end',_0x57205e),this['_touched']['set'](_0x4acc85['getAttribute']('vid_end'),{'userId':_0x49785a}),this['_touched']['set'](_0x868014['getAttribute']('vid_start'),{'userId':_0x49785a});}else{const _0x8ea0c8=this['_revisionId']++,_0x35ae37=this['_revisionId']++;_0x4acc85['_setAttribute']('vid_end',_0x8ea0c8),_0x868014['_setAttribute']('vid_start',_0x35ae37),_0x868014['_setAttribute']('vid_end',_0x24a73c),this['_touched']['set'](_0x8ea0c8,{'userId':_0x49785a}),this['_touched']['set'](_0x35ae37,{'userId':_0x49785a});}}['_handleMarkerOperation'](_0x4c6642){if(!_0x4c6642['affectsData'])return;const _0x1db495=(_0x4c6642=this['_cloneOperation'](_0x4c6642,this['_diffRoots']))['oldRange']?_0x4c6642['oldRange']['root']:null,_0x17162f=_0x4c6642['newRange']?_0x4c6642['newRange']['root']:null;_0x1db495&&this['_markers']['delete'](_0x4c6642['name']),_0x17162f&&this['_markers']['set'](_0x4c6642['name'],_0x4c6642['newRange']['clone']());const _0x361135=null===_0x4c6642['_authorId']?null:_0x4c6642['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5da808=_0x4c6642['name'];if(!this['_touchedMarkers']['has'](_0x5da808))return void this['_touchedMarkers']['set'](_0x5da808,{'range':_0x4c6642['oldRange'],'userId':_0x361135});const _0x492d5b=this['_touchedMarkers']['get'](_0x5da808),_0xf29efb=_0x492d5b['range'],_0x1e1884=_0x4c6642['newRange'];null==_0xf29efb&&null==_0x1e1884||_0xf29efb&&_0x1e1884&&_0xf29efb['isEqual'](_0x1e1884)?this['_touchedMarkers']['delete'](_0x4c6642['name']):_0x492d5b['userId']=_0x361135;}['_handleRootOperation'](_0x37b081,_0x3a1675){this['_diffRoots']['has'](_0x37b081['rootName'])?this['_diffRoots']['get'](_0x37b081['rootName'])['_isAttached']=_0x37b081['isAdd']:(this['_diffRoots']['set'](_0x37b081['rootName'],P(_0x37b081['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x37b081['rootName'],{}),_0x3a1675&&this['_idsRoots']['set'](_0x37b081['rootName'],P(_0x37b081['rootName'],!0x0)));const _0x156621=null===_0x37b081['_authorId']?null:_0x37b081['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3bbfbf=this['_touchedRoots']['get'](_0x37b081['rootName']);_0x3bbfbf&&_0x3bbfbf['userId']===_0x156621?this['_touchedRoots']['delete'](_0x37b081['rootName']):this['_touchedRoots']['set'](_0x37b081['rootName'],{'userId':_0x156621,'isAttached':_0x37b081['isAdd']});}['_handleRootAttributeOperation'](_0x4f905c){const _0x355b34=this['_diffRootsAttributes']['get'](_0x4f905c['root']['rootName']);null===_0x4f905c['newValue']?delete _0x355b34[_0x4f905c['key']]:_0x355b34[_0x4f905c['key']]=_0x4f905c['newValue'];}}function N(_0x13b2ac){const _0x5f143c=P(_0x13b2ac['rootName'],_0x13b2ac['isAttached']());for(const _0x156801 of _0x13b2ac['getChildren']()){const _0x110dd7=_0x156801['_clone'](!0x0);_0x5f143c['_appendChild'](_0x110dd7);}return _0x5f143c;}function P(_0x2129dd,_0x2a43f5=!0x0){const _0xb76972=new vt();return _0xb76972['rootName']=_0x2129dd,_0xb76972['_isAttached']=_0x2a43f5,_0xb76972['isAttached']=()=>_0xb76972['_isAttached'],_0xb76972;}function F(_0xeac08b,_0x317647,_0x2780bd){const _0x4d4098='elementEnd'==_0xeac08b['type']?_0x2780bd['createPositionAt'](_0xeac08b['item'],'end'):_0x2780bd['createPositionBefore'](_0xeac08b['item']);return _0x2780bd['createPositionFromPath'](_0x317647,_0x4d4098['path'],_0x4d4098['stickiness']);}function B(_0x2c94ff,_0x52e0f7,_0x356d2e){const _0x20f039='elementStart'==_0x2c94ff['type']?_0x356d2e['createPositionAt'](_0x2c94ff['item'],0x0):_0x356d2e['createPositionAfter'](_0x2c94ff['item']);return _0x356d2e['createPositionFromPath'](_0x52e0f7,_0x20f039['path'],_0x20f039['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3c0e57,_0x29de62){super(_0x3c0e57),this['focusTracker']=new _0x56a114(),this['keystrokes']=new _0x4bff5f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x29de62),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5e8693(this);}['render'](){super['render'](),_0x265629({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2d9cc7=_0x19c9a2=>_0x19c9a2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2d9cc7),this['keystrokes']['set']('arrowleft',_0x2d9cc7),this['keystrokes']['set']('arrowup',_0x2d9cc7),this['keystrokes']['set']('arrowdown',_0x2d9cc7);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x9a2a23){this['revisionNameInputView']['fieldView']['element']['value']=_0x9a2a23['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2e6a5e){const _0x4caa3f=new _0x2ad300(this['locale'],_0x25e8fe),_0x4998e4=_0x4caa3f['fieldView'];_0x4998e4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x259238=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2e6a5e&&(_0x259238+='\x20('+g(this['locale'],'optional')+')'),(_0x4caa3f['label']=_0x259238,_0x4998e4['on']('input',()=>{this['revisionNameInputValue']=_0x4998e4['element']['value']['trim']();}),_0x4caa3f);}}class f extends _0x58fda8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1af984=this['editor'],_0x187179=_0x1af984['plugins']['get']('RevisionTracker');_0x1af984['ui']['componentFactory']['add']('revisionHistory',_0x26e599=>{const _0x3b68fa=_0x4da7ef(_0x26e599),_0x21d909=_0x3b68fa['panelView']['children'],_0x1e8f74=new _0x58148e(_0x26e599),_0x462296=new _0x5f1e94(_0x26e599),_0x153df9=new te(_0x26e599),_0x5b4f10=new _0x5f1e94(_0x26e599),_0x20b587=new te(_0x26e599);return _0x3b68fa['bind']('isEnabled')['to'](_0x187179,'isReady',_0x187179,'isEnabled',_0x1af984,'isReadOnly',(_0x4eb8b,_0x4b6a71,_0x33e606)=>_0x4eb8b&&_0x4b6a71&&!_0x33e606),_0x3b68fa['buttonView']['set']({'icon':_0x3c02f1,'label':g(_0x26e599,'Revision\x20history'),'tooltip':!0x0}),_0x153df9['set']({'label':g(_0x26e599,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x153df9['bind']('isEnabled')['to'](_0x187179,'isReady',_0x187179,'isEnabled',_0x1af984,'isReadOnly',(_0x5da953,_0x1b4a04,_0x13a755)=>_0x5da953&&_0x1b4a04&&!_0x13a755),_0x153df9['on']('execute',()=>this['_showDialog']()),_0x20b587['set']({'label':g(_0x26e599,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x20b587['bind']('isEnabled')['to'](_0x187179,'isReady',_0x1af984,'isReadOnly',(_0xf40976,_0x38b3f3)=>_0xf40976&&!_0x38b3f3),_0x20b587['on']('execute',()=>{_0x1af984['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3b68fa['isOpen']=!0x1,_0x1af984['editing']['view']['focus']();}),_0x462296['children']['add'](_0x153df9),_0x5b4f10['children']['add'](_0x20b587),_0x1e8f74['role']='menu',_0x1e8f74['items']['addMany']([_0x462296,_0x5b4f10]),_0x21d909['add'](_0x1e8f74),_0x3b68fa;}),_0x1af984['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x31fd5c=this['editor'],_0x43e0fd=_0x31fd5c['locale'],_0x5b3de6=new _0x4a49cf(_0x43e0fd),_0x75c7c5=new _0x5616fd(_0x43e0fd);_0x5b3de6['buttonView']['set']({'icon':_0x3c02f1,'label':g(_0x43e0fd,'Revision\x20history')});const _0x26af20=new _0x4baf0b(_0x43e0fd,_0x5b3de6),_0x57455d=new _0x33ec5d(_0x43e0fd);_0x57455d['set']({'label':g(_0x43e0fd,'Save\x20current\x20revision')}),_0x57455d['delegate']('execute')['to'](_0x5b3de6),_0x57455d['on']('execute',()=>{this['_showDialog']();}),_0x26af20['children']['add'](_0x57455d),_0x75c7c5['items']['add'](_0x26af20);const _0x1191a9=new _0x4baf0b(_0x43e0fd,_0x5b3de6),_0x26f644=new _0x33ec5d(_0x43e0fd);return _0x26f644['set']({'label':g(_0x43e0fd,'Open\x20revision\x20history')}),_0x26f644['delegate']('execute')['to'](_0x5b3de6),_0x26f644['on']('execute',()=>{_0x31fd5c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1191a9['children']['add'](_0x26f644),_0x75c7c5['items']['add'](_0x1191a9),_0x5b3de6['panelView']['children']['add'](_0x75c7c5),_0x5b3de6;}['_showDialog'](){const _0x30442d=this['editor'],_0x2ed6d6=_0x30442d['locale'],_0x55abe0=_0x30442d['plugins']['get']('Dialog'),_0x304bd9=_0x30442d['plugins']['get']('RevisionTracker');function _0x10fa8f(_0x3c5d79){_0x30442d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3c5d79['revisionName']?_0x3c5d79['revisionNameInputView']['errorText']=g(_0x2ed6d6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x30442d['plugins']['get'](u)['saveRevision']({'name':_0x3c5d79['revisionName']}),_0x55abe0['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x10fa8f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x55abe0['show']({'id':'revisionSave','title':g(_0x2ed6d6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x30442d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x55abe0['hide']()},{'label':g(_0x30442d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x51659d){_0x51659d['bind']('isEnabled')['to'](_0x304bd9,'isReady',_0x304bd9,'isEnabled',_0x30442d,'isReadOnly',(_0x101bc5,_0x5a39d9,_0x1a90ec)=>_0x101bc5&&_0x5a39d9&&!_0x1a90ec);},'onExecute':()=>_0x10fa8f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3f2ee8=this['editor'],_0x40dd5f=_0x3f2ee8['locale'];this['_saveRevisionFormView']=new hs(_0x40dd5f,_0x3f2ee8['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2867c9,_0x5ce049){super(_0x2867c9),this['_model']=_0x5ce049,this['changeId']=_0x5ce049['id'];const _0x32c508=this['bindTemplate'],_0x3b8503=g(_0x2867c9,_0x5ce049['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5ce049['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5ce049['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x32c508['to']('type',_0x184808=>'ck-revision-change__'+_0x184808)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3b8503}]},{'text':'\x20'+_0x5ce049['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2dde58(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x51e0c6){super(),this['id']=_0x51e0c6['id']||_0xebbfb1(),this['author']=_0x51e0c6['author'],this['type']=_0x51e0c6['type'],this['data']=_0x51e0c6['data']||{},this['rootName']=_0x51e0c6['rootName'],this['set']('createdAt',_0x51e0c6['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1e8581,_0x18f570){this['newRevisionId']=_0x1e8581,this['oldRevisionId']=_0x18f570,this['changes']=new _0x49b051();}['_setChanges'](_0x1adcb8){for(const _0x15b4c2 of _0x1adcb8)this['changes']['add'](_0x15b4c2);}}class m extends _0x58fda8{['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[_0x188778,_0x7d8f21,I,V];}constructor(_0xd962aa){super(_0xd962aa),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',(_0x3e908f,_0x348564,_0x41c0ad)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x40b0fa=>{for(const _0x1fe662 of this['editor']['editing']['view']['document']['roots'])_0x41c0ad?_0x40b0fa['removeClass']('ck-editor__editable__overlay',_0x1fe662):_0x40b0fa['addClass']('ck-editor__editable__overlay',_0x1fe662);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x18d278=>null!==_0x18d278),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xf5d512,_0x1edba5,_0x2391e1)=>_0xf5d512&&_0x2391e1?_0x1edba5['changes']['getIndex'](_0x2391e1):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1f8e1b,_0x1bbf2b)=>_0x1f8e1b?_0x1bbf2b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x7d8f21);}['init'](){const _0x205a62=this['editor'],_0x37cfe4=new wt(_0x205a62,{'direction':'backward'}),_0x1095d0=new wt(_0x205a62,{'direction':'forward'});(_0x205a62['commands']['add']('showPreviousChange',_0x37cfe4),_0x205a62['commands']['add']('showNextChange',_0x1095d0),_0x205a62['commands']['add']('restoreRevision',new mt(_0x205a62)),this['on']('change:numberOfChanges',()=>{_0x37cfe4['refresh'](),_0x1095d0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x205a62['enableReadOnlyMode']('revision-viewer'),_0x205a62['plugins']['has']('WidgetToolbarRepository'))&&_0x205a62['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xb79f95){return await this['_utils']['loadRevisionData'](_0xb79f95,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xb79f95);}async['getRevisionRootsAttributes'](_0x20b497){return await this['_utils']['loadRevisionData'](_0x20b497,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x20b497);}async['compare'](_0x278eac,_0xfdd0c2,_0x2925ef=!0x1){if(!this['isEnabled'])return;const _0xc6efbb=this['diff'],_0x35fcf0=this['repository'],_0x3ea970='string'==typeof _0x278eac?_0x35fcf0['getRevision'](_0x278eac):_0x278eac,_0x135fcc='string'==typeof _0xfdd0c2?_0x35fcf0['getRevision'](_0xfdd0c2):_0xfdd0c2,_0x8946cb=_0x3ea970['id'],_0xca261d=_0x135fcc?_0x135fcc['id']:null;if(!_0x2925ef&&this['diff']&&this['diff']['newRevisionId']===_0x8946cb&&this['diff']['oldRevisionId']===_0xca261d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x8946cb,_0xca261d);const _0xf1303e=this['_getRevisionsRange'](_0x3ea970,_0x135fcc,!0x0)['map'](_0x2f5d92=>this['_utils']['loadRevisionData'](_0x2f5d92,this['adapter']));return _0xf1303e['push'](new Promise(_0x316e65=>{setTimeout(_0x316e65,0x14);})),Promise['all'](_0xf1303e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x7fbdd1=this['_getDiff'](_0x8946cb,_0xca261d);for(const _0x514e85 of _0x7fbdd1['changes'])this['_changeIdToChange']['set'](_0x514e85['id'],_0x514e85);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2bc019=>{for(const _0x3939f5 of this['editor']['model']['document']['getRootNames']())_0x2bc019['detachRoot'](_0x3939f5);for(const _0x187212 of Object['keys'](_0x7fbdd1['model'])){const _0x3a7e3b=_0x2bc019['addRoot'](_0x187212);for(const _0x583fc1 of Object['keys'](_0x7fbdd1['attributes'][_0x187212]))_0x2bc019['setAttribute'](_0x583fc1,_0x7fbdd1['attributes'][_0x187212][_0x583fc1],_0x3a7e3b);_0x2bc019['insert'](_0x7fbdd1['model'][_0x187212],_0x3a7e3b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x7fbdd1['changes'])),this['isReady']=!0x0;})['catch'](_0x6c0bbe=>{console['error'](_0x6c0bbe),this['_cleanUp'](),_0xc6efbb&&(this['diff']=_0xc6efbb),this['isReady']=!0x0;});}['addRevisionData'](_0x2db8d6,_0xde93e4){const _0x25388a=this['repository']['createRevision'](_0x2db8d6);return _0x25388a['on']('_update',(_0x4d40f0,_0x353b2b,_0x4b81f8)=>_0xde93e4(_0x353b2b,_0x4b81f8,_0x25388a)),this['repository']['addRevision'](_0x25388a),_0x25388a;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x38d0a7=>{for(const _0x39d149 of this['editor']['model']['document']['getRootNames']())_0x38d0a7['detachRoot'](_0x39d149);});}['_sortAndFilterDiffChanges'](_0x1d78ea){const _0x57481d=[],_0x33c804=new Map();for(const _0x3ad338 of this['editor']['model']['document']['getRootNames']()){const _0x2fafc0=this['editor']['editing']['view']['getDomRoot'](_0x3ad338);if(!_0x2fafc0)continue;const _0x50eee3=_0x2fafc0['getClientRects']()['item'](0x0);_0x50eee3&&(_0x57481d['push'](_0x3ad338),_0x33c804['set'](_0x3ad338,_0x50eee3));}return _0x57481d['sort']((_0x3fa648,_0x2e217b)=>{const _0x8ca61c=_0x33c804['get'](_0x3fa648),_0x4480cd=_0x33c804['get'](_0x2e217b);return _0x8ca61c['y']-_0x4480cd['y']||_0x8ca61c['x']-_0x4480cd['x'];}),(_0x1d78ea=_0x1d78ea['filter'](_0xf0d2b1=>_0x57481d['includes'](_0xf0d2b1['rootName'])))['sort']((_0x5c28ed,_0x43aefa)=>_0x57481d['indexOf'](_0x5c28ed['rootName'])-_0x57481d['indexOf'](_0x43aefa['rootName'])),_0x1d78ea;}['_makeTape'](_0x2e22a3){const _0x36e837=Array['from'](_0x2e22a3['markers'])['filter'](([_0x4f1bcf,_0x5c810b])=>_0x4f1bcf['startsWith']('revision:')&&!_0x5c810b['isCollapsed']),_0xe258e3=Array['from'](this['editor']['model']['createRangeIn'](_0x2e22a3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x36e837['length'])for(const _0x286440 of _0xe258e3){const [_0xcff5e8,_0xc1f13c]=_0x36e837[0x0],[,_0x32073b,_0x22c557]=_0xcff5e8['split'](':');if(_0xc1f13c['end']['isEqual'](_0x286440['nextPosition'])&&_0x36e837['shift'](),(_0x286440['previousPosition']['isEqual'](_0xc1f13c['start'])||_0x286440['previousPosition']['isAfter'](_0xc1f13c['start']))&&('insertion'==_0x32073b?_0x286440['isAdded']={'userId':_0x22c557}:'deletion'==_0x32073b&&(_0x286440['isRemoved']={'userId':_0x22c557})),0x0==_0x36e837['length'])break;}return _0xe258e3;}['_refreshStartEndIndex'](_0x253ce5){const _0x228af5=new Map();for(let _0x1ad5e6=0x0;_0x1ad5e6<_0x253ce5['length'];_0x1ad5e6++)'text'===_0x253ce5[_0x1ad5e6]['type']?(_0x253ce5[_0x1ad5e6]['item']['startIndex']=_0x1ad5e6,_0x253ce5[_0x1ad5e6]['item']['endIndex']=_0x1ad5e6):('elementStart'===_0x253ce5[_0x1ad5e6]['type']?_0x253ce5[_0x1ad5e6]['item']['startIndex']=_0x1ad5e6:'elementEnd'===_0x253ce5[_0x1ad5e6]['type']&&(_0x253ce5[_0x1ad5e6]['item']['endIndex']=_0x1ad5e6),_0x228af5['set'](_0x253ce5[_0x1ad5e6]['id'],_0x1ad5e6));for(const _0x3e2801 of _0x228af5['values']())'elementStart'===_0x253ce5[_0x3e2801]['type']?_0x253ce5[_0x3e2801]['item']['endIndex']=_0x228af5['get'](_0x253ce5[_0x3e2801]['pairId']):'elementEnd'===_0x253ce5[_0x3e2801]['type']&&(_0x253ce5[_0x3e2801]['item']['startIndex']=_0x228af5['get'](_0x253ce5[_0x3e2801]['pairId']));}['_processTape'](_0x123564){for(let _0x954822=0x0;_0x954822<_0x123564['length'];_0x954822++){if('elementStart'===_0x123564[_0x954822]['type'])_0x123564[_0x954822]['item']['startIndex']=_0x954822;else{if('elementEnd'===_0x123564[_0x954822]['type']){_0x123564[_0x954822]['item']['endIndex']=_0x954822;const _0x347256=_0x123564[_0x954822]['item']['startIndex'];_0x123564[_0x347256]['pairId']=_0x123564[_0x954822]['id'],_0x123564[_0x954822]['pairId']=_0x123564[_0x347256]['id'];}else _0x123564[_0x954822]['item']['startIndex']=_0x954822,_0x123564[_0x954822]['item']['endIndex']=_0x954822,_0x123564[_0x954822]['pairId']=null;}_0x123564[_0x954822]['markersStart']||(_0x123564[_0x954822]['markersStart']=[],_0x123564[_0x954822]['markersEnd']=[]);}}['_markInsertions'](_0x1746ca,_0x56a6ac){const _0x564599=_0x1746ca['filter'](_0x2fcc11=>!_0x2fcc11['isAdded']);for(let _0x189b0d=0x0;_0x189b0d<_0x56a6ac['length'];_0x189b0d++)_0x56a6ac[_0x189b0d]['isAdded']&&(_0x564599[_0x189b0d]['isAdded']=_0x56a6ac[_0x189b0d]['isAdded']);}['_getDiff'](_0x2e599c,_0x566b1f=null){const _0x44e72c=this['repository']['getRevision'](_0x2e599c),_0x35bb43=_0x566b1f?this['repository']['getRevision'](_0x566b1f):null,_0x72974b=this['_getRevisionsRange'](_0x44e72c,_0x35bb43),_0x56ca59=_0x72974b[_0x72974b['length']-0x1],_0x57f40f=new Map(),_0x1ce082={'model':{},'attributes':{},'changes':[]},_0x99ce9f=new Set(),_0x4e30cb=new Map();for(let _0x505eeb=_0x72974b['length']-0x1;_0x505eeb>=0x0;_0x505eeb--){const _0xe8e16a=_0x72974b[_0x505eeb];for(const _0x495e6a of Object['keys'](_0xe8e16a['diffData']))if(_0xe8e16a['diffData'][_0x495e6a]['attachChange']){const _0x39fb69=_0xe8e16a['diffData'][_0x495e6a]['attachChange'];_0x39fb69['isAttached']?(_0x99ce9f['add'](_0x495e6a),_0x4e30cb['has'](_0x495e6a)&&_0x4e30cb['get'](_0x495e6a)['userId']==_0x39fb69['userId']?_0x4e30cb['delete'](_0x495e6a):_0x4e30cb['set'](_0x495e6a,_0x39fb69)):_0x4e30cb['has'](_0x495e6a)?(_0x99ce9f['delete'](_0x495e6a),_0x4e30cb['delete'](_0x495e6a)):(_0x99ce9f['add'](_0x495e6a),_0x4e30cb['set'](_0x495e6a,_0x39fb69));}else _0x99ce9f['add'](_0x495e6a);}for(const _0x5b5d59 of _0x99ce9f){const _0x8d1be0=_0x4e30cb['has'](_0x5b5d59)&&!_0x4e30cb['get'](_0x5b5d59)['isAttached'];let _0x55fe74=_0x8d1be0?_0x72974b['length']-0x1:0x0;const _0x2a0d06=_0x8d1be0?-0x1:0x1;for(;_0x72974b[_0x55fe74];){const _0x13113f=_0x72974b[_0x55fe74];if(_0x13113f['diffData'][_0x5b5d59]){const _0x3d291e=_0x8d1be0?_0x13113f['diffData'][_0x5b5d59]['attributesBefore']:_0x13113f['diffData'][_0x5b5d59]['attributesAfter'];_0x1ce082['attributes'][_0x5b5d59]=_0x3d291e?_0xd7a62f(_0x3d291e):{};break;}_0x55fe74+=_0x2a0d06;}}for(const _0x469258 of _0x72974b){_0x469258['model']={};for(const _0x19e744 of _0x469258['authors'])_0x57f40f['set'](_0x19e744['id'],_0x19e744);for(const _0x2a1758 of _0x99ce9f){const _0x235a36=_0x469258['diffData'][_0x2a1758]?_0x469258['diffData'][_0x2a1758]['insertions']:'[]',_0x1cdf27=_0x469258['diffData'][_0x2a1758]?_0x469258['diffData'][_0x2a1758]['deletions']:'[]';_0x469258['model'][_0x2a1758]={'insertions':this['_utils']['_makeModelFromViewString'](_0x235a36),'deletions':this['_utils']['_makeModelFromViewString'](_0x1cdf27)};}}for(const _0x586665 of _0x99ce9f){let _0x19e80d=null,_0x5bc60e=0x0;const _0x5c4a6f=new Map(Array['from'](_0x44e72c['model'][_0x586665]['insertions']['markers'])['filter'](([_0x2128ac])=>!_0x2128ac['startsWith']('revision:')));let _0x467e47=0x0;for(const _0x1e6fb1 of _0x72974b){const _0x1ebd0f=this['_makeTape'](_0x1e6fb1['model'][_0x586665]['insertions']);_0x1e6fb1==_0x44e72c?(_0x19e80d=_0x1ebd0f,_0x5bc60e=_0x19e80d['length'],_0x19e80d['forEach'](_0x3b0b13=>{_0x3b0b13['id']=_0x467e47++;}),this['_processTape'](_0x19e80d)):this['_markInsertions'](_0x19e80d,_0x1ebd0f);const _0x1d21e6=_0x19e80d['filter'](_0x1df9cc=>!_0x1df9cc['isAdded'])['map'](_0x3fc5f7=>_0x3fc5f7['id']);let _0x19d965=0x0;const _0x21367b=this['_makeTape'](_0x1e6fb1['model'][_0x586665]['deletions']);_0x21367b['forEach'](_0x5961d5=>{_0x5961d5['isRemoved']?_0x5961d5['id']=_0x5bc60e++:_0x5961d5['id']=_0x1d21e6[_0x19d965++];}),this['_processTape'](_0x21367b),this['_setDistance'](_0x19e80d,'isAdded'),this['_setDistance'](_0x21367b,'isRemoved'),_0x1e6fb1==_0x44e72c&&this['_markMarkers'](_0x19e80d,_0x5c4a6f),_0x19e80d=this['_joinTapes'](_0x19e80d,_0x21367b),this['_refreshStartEndIndex'](_0x19e80d),this['_setDistance'](_0x19e80d,'isRemoved');}_0x19e80d=_0x19e80d['filter'](_0x3f85cb=>!(_0x3f85cb['isAdded']&&_0x3f85cb['isRemoved']));const _0x194b12=new Map(_0x56ca59['model'][_0x586665]['deletions']['markers']),_0x5b2e27=new Set(_0x5c4a6f['keys']());for(const _0xf6581a of _0x194b12['keys']())_0x5b2e27['delete'](_0xf6581a);this['_markSuggestions'](_0x19e80d,_0x5b2e27),this['_fixObsoleteTags'](_0x19e80d),_0x19e80d=this['_removeMissingPairs'](_0x19e80d),_0x19e80d=this['_markMismatchedRemovedTags'](_0x19e80d),_0x19e80d=this['_removeUnsupportedChanges'](_0x19e80d);const {root:_0x30d19f,changes:_0x3f648c}=this['_makeModelFromTape'](_0x19e80d,_0x57f40f,_0x586665);_0x1ce082['model'][_0x586665]=_0x30d19f;const _0x47c275=_0x4e30cb['get'](_0x586665);if(_0x47c275){const _0x561ebd=_0x57f40f['get'](_0x47c275['userId']),_0x1b4b96=new r({'author':_0x561ebd,'type':_0x47c275['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x586665});_0x3f648c['unshift'](_0x1b4b96),_0x1ce082['attributes'][_0x586665]['revisionHistoryAttachChange']=_0x1b4b96['id'];}_0x1ce082['changes']=_0x1ce082['changes']['concat'](_0x3f648c);}return _0x1ce082;}['_markMarkers'](_0x926994,_0x138cbc){for(let _0x25131f=0x0;_0x25131f<_0x926994['length'];_0x25131f++)for(const [_0x5ba265,_0x31ee21]of _0x138cbc)!_0x31ee21['isCollapsed']&&_0x31ee21['start']['isEqual'](_0x926994[_0x25131f]['previousPosition'])&&_0x926994[_0x25131f]['markersStart']['push'](_0x5ba265),_0x31ee21['end']['isEqual'](_0x926994[_0x25131f]['nextPosition'])&&_0x926994[_0x25131f]['markersEnd']['push'](_0x5ba265);}['_joinTapes'](_0x445856,_0x5df544){let _0x3234e0=[],_0x3c6dcc=0x0,_0x16c63c=0x0;for(;_0x3c6dcc<_0x445856['length']||_0x16c63c<_0x5df544['length'];){const _0x5af184=_0x445856[_0x3c6dcc]||{},_0x265f6a=_0x5df544[_0x16c63c]||{};if(_0x5af184['id']==_0x265f6a['id'])_0x3c6dcc++,_0x16c63c++,_0x3234e0['push'](_0x5af184);else{if(_0x265f6a['isRemoved']&&_0x5af184['isAdded']){const {commonTape:_0x5e8f0f,iEnd:_0x2541f5,jEnd:_0x12255f}=this['_threeWayMerge'](_0x445856,_0x3c6dcc,_0x5df544,_0x16c63c);_0x3234e0=_0x3234e0['concat'](_0x5e8f0f),_0x3c6dcc=_0x2541f5,_0x16c63c=_0x12255f;}else _0x265f6a['isRemoved']?(_0x16c63c++,_0x3234e0['push'](_0x265f6a)):(_0x3c6dcc++,_0x3234e0['push'](_0x5af184));}}return _0x3234e0;}['_markSuggestions'](_0x309659,_0x550ce8){const _0x36a0b5=[];for(let _0x5588f9=0x0;_0x5588f9<_0x309659['length'];_0x5588f9++){for(let _0x475e8e=0x0;_0x475e8e<_0x309659[_0x5588f9]['markersStart']['length'];_0x475e8e++){const _0x488236=_0x309659[_0x5588f9]['markersStart'][_0x475e8e];if(!_0x550ce8['has'](_0x488236))continue;const {group:_0x69eec,type:_0x678013,authorId:_0x1efcbe}=_0x130747(_0x488236);'revision-suggestion'!=_0x69eec||'insertion'!=_0x678013&&'deletion'!=_0x678013||(_0x36a0b5['unshift']({'type':_0x678013,'name':_0x488236,'userId':_0x1efcbe}),_0x309659[_0x5588f9]['markersStart']['splice'](_0x475e8e,0x1),_0x475e8e--);}_0x2047f2(_0x309659[_0x5588f9]);for(let _0x41911d=0x0;_0x41911d<_0x309659[_0x5588f9]['markersEnd']['length'];_0x41911d++){const _0x16bd00=_0x309659[_0x5588f9]['markersEnd'][_0x41911d];if(!_0x550ce8['has'](_0x16bd00))continue;const {group:_0x2843c8,type:_0x50fd8e}=_0x130747(_0x16bd00);if('revision-suggestion'!=_0x2843c8||'insertion'!=_0x50fd8e&&'deletion'!=_0x50fd8e)continue;_0x309659[_0x5588f9]['markersEnd']['splice'](_0x41911d,0x1),_0x41911d--;const _0x26aecb=_0x36a0b5['findIndex'](_0x430984=>_0x430984['name']==_0x16bd00);_0x26aecb>-0x1&&_0x36a0b5['splice'](_0x26aecb,0x1);}}function _0x130747(_0x46032e){const _0x14fd3d=_0x46032e['split'](':');return{'group':_0x14fd3d[0x0],'type':_0x14fd3d[0x1],'subType':_0x14fd3d['length']>=0x5?_0x14fd3d[0x2]:null,'id':_0x14fd3d['length']<0x5?_0x14fd3d[0x2]:_0x14fd3d[0x3],'authorId':_0x14fd3d['length']<0x5?_0x14fd3d[0x3]:_0x14fd3d[0x4],'markerCount':0x6==_0x14fd3d['length']?_0x14fd3d[0x5]:null};}function _0x2047f2(_0x392522){for(let _0xd3e5fe=0x0;_0xd3e5fe<_0x36a0b5['length'];_0xd3e5fe++){if(_0x392522['isAdded']&&'insertion'==_0x36a0b5[_0xd3e5fe]['type'])return _0x392522['isAddSuggestion']=_0x36a0b5[_0xd3e5fe],void delete _0x392522['isAdded'];if(!_0x392522['isAdded']&&!_0x392522['isRemoved']&&'deletion'==_0x36a0b5[_0xd3e5fe]['type'])return void(_0x392522['isRemoveSuggestion']=_0x36a0b5[_0xd3e5fe]);}}}['_setDistance'](_0x5b98f8,_0x1dbafc){let _0x569fd9=0x0,_0x2bbef0=!0x1;const _0xb8d130=new Map();for(const _0x1e6579 of _0x5b98f8)_0x1e6579[_0x1dbafc]?_0x2bbef0&&(_0x569fd9++,_0x2bbef0=!0x1):(_0x569fd9++,_0x2bbef0=!0x0),_0xb8d130['set'](_0x1e6579['id'],_0x569fd9);for(let _0x26e0cd=0x0;_0x26e0cd<_0x5b98f8['length'];_0x26e0cd++){if('isRemoved'==_0x1dbafc&&_0x5b98f8[_0x26e0cd]['isAdded']||'isAdded'==_0x1dbafc&&_0x5b98f8[_0x26e0cd]['isRemoved'])continue;if('text'==_0x5b98f8[_0x26e0cd]['type']){_0x5b98f8[_0x26e0cd]['distance']=0x0;continue;}const _0x177e2e=_0xb8d130['get'](_0x5b98f8[_0x26e0cd]['pairId']),_0x7e0f8b=_0xb8d130['get'](_0x5b98f8[_0x26e0cd]['id']);_0x5b98f8[_0x26e0cd]['distance']=_0x177e2e-_0x7e0f8b;}}['_getRevisionsRange'](_0x5ee092,_0x591141,_0xf2c59a=!0x1){const _0x4bfd4a=[];let _0xaa258=this['repository']['getIndex'](_0x5ee092),_0x4dfadb=this['repository']['getIndex'](_0x591141);for(-0x1==_0x4dfadb&&(_0x4dfadb=this['repository']['_revisions']['length'],_0xf2c59a=!0x1);_0xaa258<_0x4dfadb;)_0x4bfd4a['push'](this['repository']['getRevision'](_0xaa258)),_0xaa258++;return _0xf2c59a&&_0x4bfd4a['push'](this['repository']['getRevision'](_0xaa258)),_0x4bfd4a;}['_threeWayMerge'](_0x4e1fd9,_0x46cb04,_0x17c790,_0xd516c2){const _0x51e4c2=this['editor']['model']['schema'];let _0x27383f=_0x46cb04;for(;_0x4e1fd9[_0x27383f]&&_0x4e1fd9[_0x27383f]['isAdded'];)_0x27383f++;let _0x376b87=_0xd516c2;for(;_0x17c790[_0x376b87]&&_0x17c790[_0x376b87]['isRemoved'];)_0x376b87++;_0xbb4c8c(_0x4e1fd9,_0x46cb04,_0x27383f),_0xbb4c8c(_0x17c790,_0xd516c2,_0x376b87);const _0x4ff085=_0x17c790['slice'](_0xd516c2,_0x376b87)['concat'](_0x4e1fd9['slice'](_0x46cb04,_0x27383f));return _0x4ff085['sort']((_0x545a1c,_0x203860)=>_0x545a1c['side']!=_0x203860['side']?_0x545a1c['side']-_0x203860['side']:_0x545a1c['level']!=_0x203860['level']?_0x545a1c['level']-_0x203860['level']:_0x545a1c['distance']!=_0x203860['distance']?_0x203860['distance']-_0x545a1c['distance']:!!_0x545a1c['isAdded']!=!!_0x203860['isAdded']?-0x1==_0x545a1c['side']||0x0==_0x545a1c['side']?_0x545a1c['isAdded']?-0x1:0x1:_0x545a1c['isAdded']?0x1:-0x1:_0x545a1c['index']-_0x203860['index']),{'commonTape':_0x4ff085,'iEnd':_0x27383f,'jEnd':_0x376b87};function _0xbb4c8c(_0x3dc23d,_0x5ee800,_0x52a9e3){let _0x567a36=-0x1,_0x117895=Number['POSITIVE_INFINITY'],_0x547874=!0x0;for(let _0x562e8e=_0x5ee800;_0x562e8e<_0x52a9e3;_0x562e8e++)if(_0x51e4c2['isInline'](_0x3dc23d[_0x562e8e]['item'])||(_0x547874=!0x1),_0x3dc23d[_0x562e8e]['item']['startIndex']<_0x5ee800&&(_0x567a36=_0x562e8e),_0x3dc23d[_0x562e8e]['item']['endIndex']>=_0x52a9e3){_0x117895=_0x562e8e;break;}_0x547874&&(_0x567a36=_0x52a9e3-0x1);for(let _0x520b7e=_0x5ee800;_0x520b7e<_0x52a9e3;_0x520b7e++)_0x3dc23d[_0x520b7e]['side']=_0x520b7e<=_0x567a36?-0x1:_0x520b7e<_0x117895?0x0:0x1,_0x3dc23d[_0x520b7e]['index']=_0x520b7e;let _0x2883d7=0x0;for(let _0x194061=_0x5ee800;_0x194061<=_0x567a36;_0x194061++)0x0==_0x3dc23d[_0x194061]['distance']?_0x3dc23d[_0x194061]['level']=_0x2883d7:(_0x2883d7++,_0x3dc23d[_0x194061]['level']=_0x2883d7,_0x2883d7++);for(let _0x5d4792=_0x5ee800;_0x5d4792<_0x52a9e3;_0x5d4792++)0x0==_0x3dc23d[_0x5d4792]['side']&&(_0x3dc23d[_0x5d4792]['level']=_0x2883d7);_0x2883d7=0x0;for(let _0x476292=_0x52a9e3-0x1;_0x476292>=_0x117895;_0x476292--)0x0==_0x3dc23d[_0x476292]['distance']?_0x3dc23d[_0x476292]['level']=_0x2883d7:(_0x2883d7--,_0x3dc23d[_0x476292]['level']=_0x2883d7,_0x2883d7--);}}['_fixObsoleteTags'](_0x8dd588){const _0x2fb7a2=new Map(),_0x43846e=this['editor']['model']['schema'];for(let _0x40aa12=0x1;_0x40aa12<_0x8dd588['length'];_0x40aa12++){let _0x2f0d16,_0x3d9408,_0x5bd542;const _0x1a9546=_0x8dd588[_0x40aa12],_0x27962b=_0x8dd588[_0x40aa12-0x1];if('text'==_0x1a9546['type'])continue;if(_0x1a9546['type']!=_0x27962b['type'])continue;if(!_0x43846e['isBlock'](_0x27962b['item'])||_0x43846e['isLimit'](_0x27962b['item']))continue;if(!_0x43846e['isBlock'](_0x1a9546['item'])||_0x43846e['isLimit'](_0x1a9546['item']))continue;if((_0x8dd588[_0x40aa12]['isAdded']||_0x8dd588[_0x40aa12]['isAddSuggestion'])&&_0x8dd588[_0x40aa12-0x1]['isRemoved'])_0x2f0d16=_0x8dd588[_0x40aa12],_0x3d9408=_0x8dd588[_0x40aa12-0x1],_0x5bd542=_0x40aa12-0x1;else{if(!_0x8dd588[_0x40aa12]['isRemoved']||!_0x8dd588[_0x40aa12-0x1]['isAdded']&&!_0x8dd588[_0x40aa12-0x1]['isAddSuggestion'])continue;_0x2f0d16=_0x8dd588[_0x40aa12-0x1],_0x3d9408=_0x8dd588[_0x40aa12],_0x5bd542=_0x40aa12;}const _0x3333a8=_0x2f0d16['level']==_0x3d9408['level'],_0x1d63ab=Math['abs'](_0x2f0d16['level'])<Math['abs'](_0x3d9408['level'])&&0x0==_0x3d9408['distance'];(_0x3333a8||_0x1d63ab)&&(_0x2fb7a2['set'](_0x3d9408['id'],_0x2f0d16['id']),_0x8dd588['splice'](_0x5bd542,0x1),_0x40aa12--,_0x2f0d16['isAdded']=!0x1);}for(let _0x2068e8=0x0;_0x2068e8<_0x8dd588['length'];_0x2068e8++)_0x2fb7a2['has'](_0x8dd588[_0x2068e8]['pairId'])&&(_0x8dd588[_0x2068e8]['pairId']=_0x2fb7a2['get'](_0x8dd588[_0x2068e8]['pairId']));}['_removeMissingPairs'](_0x45f34f){const _0x3a3224=new Set(_0x45f34f['map'](_0x5c3796=>_0x5c3796['id']));for(let _0x54a6ec=0x0;_0x54a6ec<_0x45f34f['length'];_0x54a6ec++)_0x3a3224['has'](_0x45f34f[_0x54a6ec]['pairId'])||0x0==_0x45f34f[_0x54a6ec]['distance']||(_0x45f34f[_0x54a6ec]['isIncorrect']=!0x0);return _0x45f34f['filter'](_0x30a033=>!_0x30a033['isIncorrect']);}['_markMismatchedRemovedTags'](_0xa0599a){const _0x211fcc=new Set();for(let _0x5761d9=0x0;_0x5761d9<_0xa0599a['length'];_0x5761d9++){if(_0x211fcc['has'](_0xa0599a[_0x5761d9]['id'])&&_0xa0599a[_0x5761d9]['isRemoved']&&(_0xa0599a[_0x5761d9]['isIncorrect']=!0x0),_0xa0599a[_0x5761d9]['isIncorrect'])continue;if(0x0==_0xa0599a[_0x5761d9]['distance'])continue;if('elementStart'!=_0xa0599a[_0x5761d9]['type'])continue;if(null==_0xa0599a[_0x5761d9]['pairId'])continue;let _0x5e9c02=_0x5761d9+0x1,_0x1c9abc=0x0;for(;_0xa0599a[_0x5e9c02]['id']!=_0xa0599a[_0x5761d9]['pairId'];)'elementStart'==_0xa0599a[_0x5e9c02]['type']?_0x1c9abc++:'elementEnd'==_0xa0599a[_0x5e9c02]['type']&&_0x1c9abc--,_0x5e9c02++;if(0x0!=_0x1c9abc){if(_0xa0599a[_0x5761d9]['isRemoved'])_0xa0599a[_0x5761d9]['isIncorrect']=!0x0;else{for(;_0x5e9c02!=_0x5761d9;)_0xa0599a[_0x5e9c02]['isRemoved']&&0x0!=_0xa0599a[_0x5e9c02]['distance']&&(_0xa0599a[_0x5e9c02]['isIncorrect']=!0x0,_0x211fcc['add'](_0xa0599a[_0x5e9c02]['pairId'])),_0x5e9c02--;}}}return _0xa0599a['filter'](_0x348913=>!_0x348913['isIncorrect']);}['_removeUnsupportedChanges'](_0x1da93d){const _0x112211=this['editor']['model']['schema'];for(let _0x11b8b1=0x0;_0x11b8b1<_0x1da93d['length'];_0x11b8b1++){if(!(_0x1da93d[_0x11b8b1]['isAdded']||_0x1da93d[_0x11b8b1]['isAddSuggestion']||_0x1da93d[_0x11b8b1]['isRemoved']||_0x1da93d[_0x11b8b1]['isRemoveSuggestion']))continue;if(0x0==_0x1da93d[_0x11b8b1]['distance'])continue;const _0x2125bf=_0x1da93d[_0x11b8b1]['item'];_0x112211['isBlock'](_0x2125bf)||_0x112211['isLimit'](_0x2125bf)||(_0x1da93d[_0x11b8b1]['isAdded']&&delete _0x1da93d[_0x11b8b1]['isAdded'],_0x1da93d[_0x11b8b1]['isAddSuggestion']&&delete _0x1da93d[_0x11b8b1]['isAddSuggestion'],_0x1da93d[_0x11b8b1]['isRemoveSuggestion']&&delete _0x1da93d[_0x11b8b1]['isRemoveSuggestion'],_0x1da93d[_0x11b8b1]['isRemoved']&&(_0x1da93d[_0x11b8b1]['isIncorrect']=!0x0));}return _0x1da93d['filter'](_0x283a35=>!_0x283a35['isIncorrect']);}['_makeModelFromTape'](_0x50bd79,_0x23f669,_0x47db64){const _0x5c6fdf=new vt(),_0x5a53dc=[],_0x54f5f5=new Map(),_0x2a362a=this['editor']['model'],_0x161ac9=_0x2a362a['schema'],_0x455ffa=[_0x5c6fdf],_0x359311={},_0x2dbb3b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x44b47e=null;const _0x5dae8c=[0x0];for(let _0x10d8cc=0x0;_0x10d8cc<_0x50bd79['length'];_0x10d8cc++)if('elementStart'===_0x50bd79[_0x10d8cc]['type']){_0x50bd79[_0x10d8cc]['previousPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c);const _0x1d35d4=new ut(_0x50bd79[_0x10d8cc]['item']['name'],_0x50bd79[_0x10d8cc]['item']['getAttributes']());_0x455ffa[0x0]['_appendChild'](_0x1d35d4),_0x5dae8c['push'](0x0),_0x455ffa['unshift'](_0x1d35d4),_0x50bd79[_0x10d8cc]['nextPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c);}else'elementEnd'===_0x50bd79[_0x10d8cc]['type']?(_0x455ffa['shift'](),_0x50bd79[_0x10d8cc]['previousPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c),_0x5dae8c['pop'](),_0x5dae8c[_0x5dae8c['length']-0x1]++,_0x50bd79[_0x10d8cc]['nextPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c)):(_0x50bd79[_0x10d8cc]['previousPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c),_0x44b47e?_0x44b47e['_data']+=_0x50bd79[_0x10d8cc]['item']['data']:_0x44b47e=new gt(_0x50bd79[_0x10d8cc]['item']['data'],_0x50bd79[_0x10d8cc]['item']['getAttributes']()),_0x50bd79[_0x10d8cc+0x1]&&'text'===_0x50bd79[_0x10d8cc+0x1]['type']&&_0x249e4c(_0x44b47e,_0x50bd79[_0x10d8cc+0x1]['item'])||(_0x455ffa[0x0]['_appendChild'](_0x44b47e),_0x44b47e=null),_0x5dae8c[_0x5dae8c['length']-0x1]+=_0x50bd79[_0x10d8cc]['item']['offsetSize'],_0x50bd79[_0x10d8cc]['nextPosition']=_0x2a362a['createPositionFromPath'](_0x5c6fdf,_0x5dae8c));for(let _0x9fc742=0x0;_0x9fc742<_0x50bd79['length'];_0x9fc742++){const _0x43d1d2=_0x50bd79[_0x9fc742]['previousPosition'],_0x21a075=_0x50bd79[_0x9fc742]['nextPosition'];for(const _0x32fddb of _0x50bd79[_0x9fc742]['markersStart'])_0x54f5f5['set'](_0x32fddb,{'start':_0x43d1d2,'end':null});_0x1c3a3f('isRemoveSuggestion',_0x9fc742,_0x43d1d2,_0x21a075),_0x1c3a3f('isAddSuggestion',_0x9fc742,_0x43d1d2,_0x21a075),_0x1c3a3f('isRemoved',_0x9fc742,_0x43d1d2,_0x21a075),_0x1c3a3f('isAdded',_0x9fc742,_0x43d1d2,_0x21a075);for(const _0x5e7d9d of _0x50bd79[_0x9fc742]['markersEnd']){const _0x588057=_0x54f5f5['get'](_0x5e7d9d);_0x588057?_0x588057['end']=_0x21a075:_0x54f5f5['set'](_0x5e7d9d,{'start':_0x21a075,'end':_0x21a075});}}for(const [_0x445b73,_0x4e26a9]of _0x54f5f5){const _0x59c31c=this['editor']['model']['createRange'](_0x4e26a9['start'],_0x4e26a9['end']);_0x5c6fdf['markers']['set'](_0x445b73,_0x59c31c);}return _0x5a53dc['sort']((_0x55ed25,_0x4bf936)=>{const _0x1709b0=_0x5c6fdf['markers']['get']('revision:'+_0x55ed25['id']),_0x38117d=_0x5c6fdf['markers']['get']('revision:'+_0x4bf936['id']);return _0x1709b0['start']['isBefore'](_0x38117d['start'])?-0x1:_0x1709b0['start']['isAfter'](_0x38117d['start'])?0x1:_0x1709b0['end']['isBefore'](_0x38117d['end'])?-0x1:_0x1709b0['end']['isAfter'](_0x38117d['end'])?0x1:'add'===_0x55ed25['type']?-0x1:0x1;}),{'root':_0x5c6fdf,'changes':_0x5a53dc};function _0x1c3a3f(_0x57d29b,_0x11a794,_0x80a849,_0x3157bc){const _0x45b704=!!_0x50bd79[_0x11a794][_0x57d29b],_0x222c3f=_0x45b704?_0x50bd79[_0x11a794][_0x57d29b]['userId']:null,_0x323896=_0x11a794===_0x50bd79['length']-0x1,_0x4ee7b0=_0x2dbb3b[_0x57d29b][0x0],_0x588fc6=_0x161ac9['isObject'](_0x50bd79[_0x11a794]['item']);!_0x359311[_0x57d29b]&&_0x45b704?_0x359311[_0x57d29b]={'start':_0x80a849,'tapeItem':_0x50bd79[_0x11a794],'userId':_0x222c3f,'type':_0x57d29b}:_0x359311[_0x57d29b]&&!_0x45b704?(_0x359311[_0x57d29b]['end']=_0x80a849,_0x47b695(_0x359311[_0x57d29b]),_0x359311[_0x57d29b]=null):_0x359311[_0x57d29b]&&_0x45b704&&_0x359311[_0x57d29b]['userId']!==_0x222c3f&&(_0x359311[_0x57d29b]['end']=_0x80a849,_0x4ee7b0&&_0x4ee7b0['userId']===_0x359311[_0x57d29b]['userId']||_0x47b695(_0x359311[_0x57d29b]),_0x359311[_0x57d29b]={'start':_0x80a849,'tapeItem':_0x50bd79[_0x11a794],'userId':_0x222c3f,'type':_0x57d29b}),_0x359311[_0x57d29b]&&_0x588fc6&&('elementStart'!==_0x50bd79[_0x11a794]['type']||_0x4ee7b0&&_0x4ee7b0['userId']===_0x222c3f||_0x2dbb3b[_0x57d29b]['unshift']({'userId':_0x222c3f,'object':_0x50bd79[_0x11a794]['item'],'change':_0x359311[_0x57d29b]}),'elementEnd'===_0x50bd79[_0x11a794]['type']&&_0x4ee7b0&&_0x4ee7b0['object']===_0x50bd79[_0x11a794]['item']&&(_0x2dbb3b[_0x57d29b]['shift'](),_0x359311[_0x57d29b]=_0x4ee7b0['change'])),_0x359311[_0x57d29b]&&_0x323896&&(_0x359311[_0x57d29b]['end']=_0x3157bc,_0x47b695(_0x359311[_0x57d29b]),_0x359311[_0x57d29b]=null);}function _0x47b695({start:_0x44d271,end:_0x2361c3,tapeItem:_0x557265,userId:_0xa5a32e,type:_0x32cf01}){const _0x1715fe=_0x557265['item'],_0x78575f=_0x2a362a['schema']['isBlock'](_0x1715fe)&&!_0x2a362a['schema']['isLimit'](_0x1715fe),_0x7f851e=_0x44d271['nodeAfter']==_0x2361c3['parent']&&_0x2361c3['isAtStart'];if(_0x78575f&&_0x7f851e)return;const _0x3b1aa7=_0x2a362a['createRange'](_0x44d271,_0x2361c3),_0x20cc5a=_0x23f669['get'](_0xa5a32e),_0x47cd5f=new r({'author':_0x20cc5a,'type':'isAdded'==_0x32cf01||'isAddSuggestion'==_0x32cf01?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x32cf01||'isRemoveSuggestion'==_0x32cf01},'createdAt':new Date(),'rootName':_0x47db64});_0x5a53dc['push'](_0x47cd5f),_0x5c6fdf['markers']['set']('revision:'+_0x47cd5f['id'],_0x3b1aa7);}function _0x249e4c(_0xa5061b,_0x4632cb){const _0x2e21c9=_0xa5061b['getAttributes'](),_0xf0115a=_0x4632cb['getAttributes']();for(const _0x5153ac of _0x2e21c9){if(_0x5153ac[0x1]!==_0x4632cb['getAttribute'](_0x5153ac[0x0]))return!0x1;_0xf0115a['next']();}return _0xf0115a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x341a73=>{const _0x16e80b=_0x341a73['markerName']['split'](':')[0x1],_0x5841f9=this['_getChangeFromId'](_0x16e80b);if(!_0x5841f9)return null;const _0x203c45='add'==_0x5841f9['type']?'insertion':'deletion',_0x37b19f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x203c45];return _0x5841f9['data']['isSuggestion']&&_0x37b19f['push']('ck-suggestion-marker-'+_0x203c45+'-new'),this['activeChange']==_0x5841f9&&_0x37b19f['push']('ck-suggestion-marker--active'),{'classes':_0x37b19f,'attributes':{'data-change-id':_0x16e80b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x94fd4b=>{_0x94fd4b['on']('element:pre',(_0x5875ef,_0x287f1b,_0x27ff5c)=>{const _0xe1c1e3=_0x287f1b['viewItem']['getChild'](0x0);if(!_0xe1c1e3||!_0xe1c1e3['is']('element','code'))return;if(!_0x27ff5c['consumable']['consume'](_0xe1c1e3,{'attributes':['vid_start','vid_end']}))return;const _0x9e3e47=_0x287f1b['modelRange']['start']['nodeAfter'];_0x27ff5c['writer']['setAttribute']('vid_start',_0xe1c1e3['getAttribute']('vid_start'),_0x9e3e47),_0x27ff5c['writer']['setAttribute']('vid_end',_0xe1c1e3['getAttribute']('vid_end'),_0x9e3e47);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2c845b=>{_0x2c845b['on']('element',(_0x294469,_0x5af5bd,_0xb1a5d9)=>{if(!_0xb1a5d9['consumable']['consume'](_0x5af5bd['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5af5bd['modelRange']['isCollapsed'])return;const _0x3c7e64=_0x5af5bd['modelRange']['start']['nodeAfter'];_0x3c7e64['hasAttribute']('vid_start')||_0x3c7e64['hasAttribute']('vid')||(_0xb1a5d9['writer']['setAttribute']('vid_start',_0x5af5bd['viewItem']['getAttribute']('vid_start'),_0x3c7e64),_0xb1a5d9['writer']['setAttribute']('vid_end',_0x5af5bd['viewItem']['getAttribute']('vid_end'),_0x3c7e64));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x71033=>_0x71033['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x50087d,[,_0x578bce])=>{['vid_start','vid_end','vid']['includes'](_0x578bce)&&(_0x50087d['return']=!0x0,_0x50087d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x29e91c=>{_0x29e91c['on']('attribute:vid',(_0x5cd0b4,_0x5a50b8,_0x43e701)=>{if('\x20'!=_0x5a50b8['item']['data']||_0x5a50b8['item']['parent']['maxOffset']>0x1)return;if(!_0x43e701['consumable']['consume'](_0x5a50b8['item'],_0x5cd0b4['name']))return;const _0x228ce4=_0x43e701['writer'],_0x4eab5c=_0x43e701['mapper']['toViewRange'](_0x5a50b8['range']);_0x228ce4['wrap'](_0x4eab5c,_0x228ce4['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x19f373){const _0x177019=_0x19f373['plugins']['get']('RevisionViewer');return(_0x43578a,_0x1c15e9,_0x538183)=>{const _0x3ca7ec=_0x1c15e9['markerName']['split'](':')[0x1],_0x5e5171=_0x177019['_getChangeFromId'](_0x3ca7ec);if(!_0x5e5171)return null;const _0x2efb26='add'==_0x5e5171['type']?'split':'merge';if(!_0x538183['consumable']['test'](_0x1c15e9['markerRange'],_0x43578a['name']))return;const _0x3d6295=_0x1c15e9['markerRange']['getWalker'](),_0x281d03=_0x1c15e9['markerRange']['start'],_0x667745=_0x19f373['model']['schema'];let _0x1541c1=null,_0xf250bb=null,_0x5e99cd=!0x1,_0x819a16=!0x1;for(const _0x3de470 of _0x3d6295){const _0x2fa8ec=_0x3de470['item'];_0x5e99cd=_0x5e99cd||_0x667745['isContent'](_0x2fa8ec);const _0x1906f9=_0x538183['mapper']['toViewElement'](_0x2fa8ec);if(_0x1906f9&&_0x1906f9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3de470['type']&&(_0x667745['isBlock'](_0x2fa8ec)&&!_0x667745['isLimit'](_0x2fa8ec)&&(_0x2fa8ec['nextSibling']||_0x281d03['isAtEnd']?_0x1541c1&&_0x1541c1['parent']==_0x2fa8ec||(_0x1541c1=_0x2fa8ec,_0x3d0009(_0x3de470['previousPosition']),_0x819a16=!0x0):_0xf250bb=_0xf250bb||_0x3de470['previousPosition']));}function _0x3d0009(_0x351acb){const _0x499ac0=_0x538183['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2efb26}),_0x305728=_0x538183['mapper']['toViewPosition'](_0x351acb);_0x5e5171['data']['isSuggestion']&&_0x538183['writer']['addClass']('ck-suggestion-marker-'+_0x2efb26+'-new',_0x499ac0),_0x177019['activeChange']==_0x5e5171&&_0x538183['writer']['addClass']('ck-suggestion-marker--active',_0x499ac0),_0x538183['writer']['insert'](_0x305728,_0x499ac0),_0x538183['mapper']['bindElementToMarker'](_0x499ac0,_0x1c15e9['markerName']);}_0x5e99cd||_0x819a16||!_0xf250bb||_0x3d0009(_0xf250bb);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x440d62,_0x4b4534,_0x190f98)=>{const _0x5f1657=_0x190f98['mapper']['markerNameToElements'](_0x4b4534['markerName']);if(_0x5f1657){for(const _0x44e799 of _0x5f1657)(_0x44e799['hasClass']('ck-suggestion-marker-split')||_0x44e799['hasClass']('ck-suggestion-marker-merge'))&&(_0x190f98['mapper']['unbindElementFromMarkerName'](_0x44e799,_0x4b4534['markerName']),_0x190f98['writer']['remove'](_0x44e799));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x412232,_0x5b7ad5,_0x1ab7f8)=>{const _0x42e554=_0x5b7ad5['markerName']['split'](':')[0x1],_0x2951bc=this['_getChangeFromId'](_0x42e554);if(!_0x2951bc)return null;const _0x4d12ec='add'==_0x2951bc['type']?'split':'merge';if(_0x1ab7f8['consumable']['test'](_0x5b7ad5['markerRange'],_0x412232['name']))for(const _0x465368 of _0x5b7ad5['markerRange']['getItems']()){if(!_0x465368['is']('element','softBreak'))continue;const _0x33e322=_0x1ab7f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d12ec}),_0x2dc420=_0x1ab7f8['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x465368));_0x2951bc['data']['isSuggestion']&&_0x1ab7f8['writer']['addClass']('ck-suggestion-marker-'+_0x4d12ec+'-new',_0x33e322),this['activeChange']==_0x2951bc&&_0x1ab7f8['writer']['addClass']('ck-suggestion-marker--active',_0x33e322),_0x1ab7f8['writer']['insert'](_0x2dc420,_0x33e322),_0x1ab7f8['mapper']['bindElementToMarker'](_0x33e322,_0x5b7ad5['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x32fb0e=>{for(const _0x363e23 of this['editor']['model']['document']['getRootNames']()){const _0x5bad10=this['editor']['model']['document']['getRoot'](_0x363e23),_0x195d5f=this['editor']['editing']['view']['document']['getRoot'](_0x363e23);if(_0x195d5f){const _0x2d3517=_0x5bad10['getAttribute']('revisionHistoryAttachChange');if(_0x32fb0e['removeAttribute']('data-change-id',_0x195d5f),_0x32fb0e['removeClass']('ck-revision-history-root-add',_0x195d5f),_0x32fb0e['removeClass']('ck-revision-history-root-remove',_0x195d5f),_0x32fb0e['removeClass']('ck-revision-history-root--active',_0x195d5f),_0x2d3517){const _0x5da7df=this['_getChangeFromId'](_0x2d3517);if(!_0x5da7df)return null;_0x32fb0e['setAttribute']('data-change-id',_0x2d3517,_0x195d5f),_0x32fb0e['addClass']('ck-revision-history-root-'+_0x5da7df['type'],_0x195d5f),this['activeChange']==_0x5da7df&&_0x32fb0e['addClass']('ck-revision-history-root--active',_0x195d5f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x152bb7=>'revision-comment:'+_0x152bb7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2fa93b=>'revision-suggestion:'+_0x2fa93b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xcf9b35=>({'name':'suggestion:'+_0xcf9b35,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5b2561=>{const _0x50b95e=_0x5b2561['markerName']['split'](':')[0x1];return'insertion'!=_0x50b95e&&'deletion'!=_0x50b95e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x50b95e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x25342d,_0x3194fb,_0x9f801e)=>{const _0x5ec418=_0x9f801e['mapper']['markerNameToElements'](_0x3194fb['markerName']);if(_0x5ec418){for(const _0x3917ec of _0x5ec418)_0x3917ec['is']('uiElement')&&(_0x9f801e['mapper']['unbindElementFromMarkerName'](_0x3917ec,_0x3194fb['markerName']),_0x9f801e['writer']['remove'](_0x3917ec));}},{'priority':'high'});}['_getChangeFromId'](_0x4ee10a){return this['_changeIdToChange']['get'](_0x4ee10a);}['_getViewForChange'](_0x33c225){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x33c225),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xbcf913,_0xf3eb51,_0x4b9a57,_0x1f158a)=>{_0x1f158a&&this['_balloon']['remove'](_0x1f158a),_0x4b9a57&&(this['_balloon']['add']({'view':_0x4b9a57,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x139512=this['editor']['editing'],_0x15f5e9=this['_getChangeFromId'](_0x4b9a57['changeId']);let _0x53cdf0;if(_0x15f5e9['data']['isOnRoot']){const _0x2eb3da=_0x139512['view']['getDomRoot'](_0x15f5e9['rootName']);_0x53cdf0=Array['from'](_0x2eb3da['getClientRects']());}else{const _0x360944=this['editor']['model']['markers']['get']('revision:'+_0x4b9a57['changeId']);_0x53cdf0=Array['from'](_0x139512['mapper']['markerNameToElements'](_0x360944['name']))['map'](_0x1cbd76=>_0x139512['view']['domConverter']['mapViewToDom'](_0x1cbd76))['map'](_0x3b6c17=>Array['from'](_0x3b6c17['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x53cdf0[0x0];return _0x53cdf0['find'](_0x2ac2f8=>_0x2ac2f8['top']-0x3<=this['_activeViewTarget']['y']&&_0x2ac2f8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2ac2f8['left']-0x3<=this['_activeViewTarget']['x']&&_0x2ac2f8['right']+0x3>=this['_activeViewTarget']['x'])||_0x53cdf0[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4454d7,_0x3f75cd,_0x42d13d,_0x14aae4)=>{this['activeView']=_0x42d13d?this['_getViewForChange'](_0x42d13d):null,this['editor']['model']['change'](()=>{const _0x4f038b=this['editor']['editing'];_0x14aae4&&(_0x14aae4['data']['isOnRoot']?_0x4f038b['view']['change'](_0x2461dc=>{_0x2461dc['removeClass']('ck-revision-history-root--active',_0x4f038b['view']['document']['getRoot'](_0x14aae4['rootName']));}):_0x4f038b['reconvertMarker']('revision:'+_0x14aae4['id'])),_0x42d13d&&(_0x42d13d['data']['isOnRoot']?_0x4f038b['view']['change'](_0x1893fd=>{_0x1893fd['addClass']('ck-revision-history-root--active',_0x4f038b['view']['document']['getRoot'](_0x42d13d['rootName']));}):_0x4f038b['reconvertMarker']('revision:'+_0x42d13d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x37e891,_0x5c0f49)=>{if(this['activeChange'])return;const _0x1fd93e=this['_findChangeIdFromDomTarget'](_0x5c0f49['target']),_0x1c4006=this['_changeIdToChange']['get'](_0x1fd93e);_0x1c4006?(this['_activeViewTarget']={'x':_0x5c0f49['domEvent']['x'],'y':_0x5c0f49['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1c4006)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3b1e05,_0xda1ef9)=>{const _0x48435a=this['_findChangeIdFromDomTarget'](_0xda1ef9['target']),_0x5195dd=this['_changeIdToChange']['get'](_0x48435a);_0x5195dd?(this['_activeViewTarget']={'x':_0xda1ef9['domEvent']['x'],'y':_0xda1ef9['domEvent']['y']},_0x5195dd===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5195dd):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x538c4c){do{const _0x1148ee=_0x538c4c['getAttribute']('data-change-id');if(_0x1148ee)return _0x1148ee;_0x538c4c=_0x538c4c['parent'];}while(_0x538c4c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xd54774=>{for(const _0x590d8f of this['editor']['model']['markers'])_0xd54774['removeMarker'](_0x590d8f);});}}function X(_0x37acbf,_0xfb63a0){return(_0x61d3d6,_0x3bc7ae,_0x4c844b)=>{if(!_0x4c844b['consumable']['test'](_0x3bc7ae['markerRange'],_0x61d3d6['name']))return;const _0x9c4331=_0x3bc7ae['markerRange']['getWalker'](),_0x44370c=_0x3bc7ae['markerRange']['start'],_0x17c8a4=_0x37acbf['model']['schema'];let _0x59106a=null,_0x2c2bb6=null,_0x14eaef=!0x1,_0x5da15f=!0x1;for(const _0x197249 of _0x9c4331){const _0x13e53b=_0x197249['item'];_0x14eaef=_0x14eaef||_0x17c8a4['isContent'](_0x13e53b);const _0x13ae99=_0x4c844b['mapper']['toViewElement'](_0x13e53b);if(_0x13ae99&&_0x13ae99['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x197249['type']&&(_0x17c8a4['isBlock'](_0x13e53b)&&!_0x17c8a4['isLimit'](_0x13e53b)&&(_0x13e53b['nextSibling']||_0x44370c['isAtEnd']?_0x59106a&&_0x59106a['parent']==_0x13e53b||(_0x59106a=_0x13e53b,_0xd15681(_0x197249['previousPosition']),_0x5da15f=!0x0):_0x2c2bb6=_0x2c2bb6||_0x197249['previousPosition']));}function _0xd15681(_0x46757c){const _0x1193d1=_0x4c844b['mapper']['toViewPosition'](_0x46757c),_0x2e1def=_0x4c844b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xfb63a0});_0x4c844b['writer']['insert'](_0x1193d1,_0x2e1def),_0x4c844b['mapper']['bindElementToMarker'](_0x2e1def,_0x3bc7ae['markerName']);}_0x14eaef||_0x5da15f||!_0x2c2bb6||_0xd15681(_0x2c2bb6);};}class mt extends _0x584ec5{constructor(_0xf298d0){super(_0xf298d0);const _0x1bf350=_0xf298d0['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1bf350,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1bf350,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4d8397=this['editor'],_0x35669d=_0x4d8397['plugins']['get'](m),_0x41b2d4=_0x35669d['isReady']?_0x35669d['diff']['newRevisionId']:null;_0x4d8397['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x41b2d4);}['refresh'](){const {isReady:_0x2fd732,isEnabled:_0x472f20,repository:_0x59c9f8,diff:_0xd35c9b}=this['editor']['plugins']['get'](m),_0x2c5efe=_0xd35c9b&&_0x59c9f8['getLaterVisibleRevision'](_0xd35c9b['newRevisionId']);this['isEnabled']=_0x2fd732&&_0x472f20&&Boolean(_0x2c5efe);}}class wt extends _0x584ec5{['_step'];constructor(_0x16feac,{direction:_0x2e9f3}){super(_0x16feac);const _0x37f302=_0x16feac['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2e9f3?0x1:-0x1,this['listenTo'](_0x37f302,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37f302,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x37f302,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x49a496=this['editor'],_0xf114df=_0x49a496['plugins']['get'](m),{isNavigationMode:_0x2704a0,currentChangeNumber:_0x373035}=_0xf114df;let _0x476cc2;if(_0xf114df['activeChange']=_0x2704a0?_0xf114df['diff']['changes']['get'](_0x373035+this['_step']):_0xf114df['diff']['changes']['first'],_0xf114df['activeChange']['data']['isOnRoot'])_0x476cc2=_0x49a496['editing']['view']['getDomRoot'](_0xf114df['activeChange']['rootName']);else{const _0x3853cb=_0x49a496['model']['markers']['get']('revision:'+_0xf114df['activeChange']['id']);_0x476cc2=_0x1c65ec(_0x49a496['editing'],_0x3853cb);}_0x26d94d({'target':_0x476cc2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x510de6,currentChangeNumber:_0x4788b9,numberOfChanges:_0x31a04c,isReady:_0x91ba63,isEnabled:_0x1ba429}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x1ba429&&_0x91ba63&&_0x31a04c)&&(!_0x510de6||(0x1===this['_step']?_0x4788b9<_0x31a04c-0x1:_0x4788b9>0x0));}}class li extends ts{constructor(_0x4ecc37){super(_0x4ecc37);const _0x1a4deb=this['bindTemplate'],_0x28aaf8=new te(_0x4ecc37),_0x4baa98=new te(_0x4ecc37);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',(_0x97ca6,_0x5ef497)=>_0x97ca6&&_0x5ef497>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1df17b,_0xcf434,_0x30bc35,_0x387d13)=>{if(!_0x1df17b)return g(_0x4ecc37,'Loading...');if(!_0x30bc35)return g(_0x4ecc37,'No\x20changes');const _0x1b8cea=g(_0x4ecc37,'NUMBER_OF_CHANGES',_0x30bc35);return _0x387d13?g(_0x4ecc37,'X_OF_Y_CHANGES',[_0xcf434+0x1,_0x30bc35]):_0x1b8cea;}),_0x28aaf8['set']({'label':g(_0x4ecc37,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x42210d}),_0x4baa98['set']({'label':g(_0x4ecc37,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x28927a}),_0x28aaf8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4baa98['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x28aaf8['on']('execute',()=>this['fire']('execute','backward')),_0x4baa98['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',_0x1a4deb['if']('_isStatusLabelVisible','ck-hidden',_0x3d4bc4=>!_0x3d4bc4)]},'children':[{'text':_0x1a4deb['to']('isNavigationMode',_0x5e5002=>_0x5e5002?g(_0x4ecc37,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x4ecc37,'Total')+':\x20')}]},{'text':_0x1a4deb['to']('_statusText')}]},new _0x108164(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x28aaf8,_0x4baa98]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x58fda8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x46a0dc=this['editor']['editing']['view'];_0x46a0dc['change'](_0x4a6450=>{for(const _0x464408 of _0x46a0dc['document']['roots'])_0x4a6450['addClass'](le,_0x464408);});}['hide'](){const _0x245d97=this['editor']['editing']['view'];_0x245d97['change'](_0x2c4071=>{for(const _0x16fe17 of _0x245d97['document']['roots'])_0x2c4071['removeClass'](le,_0x16fe17);});}}class R extends _0x58fda8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x25c8e0=this['editor'],_0xd4fc8a=_0x25c8e0['plugins']['get'](m),_0x355dca=_0x25c8e0['plugins']['get'](ge);_0x25c8e0['ui']['componentFactory']['add']('exitToEditing',_0x2b5103=>{const _0x409399=new te(_0x2b5103);return _0x409399['set']({'label':g(_0x2b5103,'Back\x20to\x20editing'),'icon':_0x4b2128,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x409399,'execute',()=>{_0x25c8e0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x409399;}),_0x25c8e0['ui']['componentFactory']['add']('restoreRevision',_0x2c80ef=>{const _0x585ffb=new te(_0x2c80ef);return _0x585ffb['set']({'label':g(_0x2c80ef,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x585ffb['bind']('isEnabled')['to'](_0x25c8e0['commands']['get']('restoreRevision')),this['listenTo'](_0x585ffb,'execute',()=>_0x25c8e0['execute']('restoreRevision')),_0x585ffb;}),_0x25c8e0['ui']['componentFactory']['add']('changesNavigation',_0x160e95=>{const _0x1f6aef=new li(_0x160e95),_0x5451dc=_0x25c8e0['commands']['get']('showPreviousChange'),_0xac2497=_0x25c8e0['commands']['get']('showNextChange');return _0x1f6aef['bind']('isBackwardNavigationEnabled')['to'](_0x5451dc,'isEnabled'),_0x1f6aef['bind']('isForwardNavigationEnabled')['to'](_0xac2497,'isEnabled'),_0x1f6aef['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xd4fc8a),this['listenTo'](_0x1f6aef,'execute',(_0x57ab6b,_0x4186c6)=>{_0x25c8e0['execute']('forward'===_0x4186c6?'showNextChange':'showPreviousChange');}),_0x1f6aef;}),_0x355dca['show'](),_0xd4fc8a['on']('change:isReady',(_0x40efbc,_0x271794,_0x814470)=>{_0x814470?_0x355dca['hide']():_0x355dca['show']();});}}class at extends _0x2ad300{['_resizeObserver']=null;constructor(_0x35aa19,_0x2b4ee5){super(_0x35aa19,_0x2b4ee5);const _0x33e42c=this['bindTemplate'];this['set']({'label':g(_0x35aa19,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x35aa19,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x33e42c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x49543a=this['fieldView']['element'];this['_tooltipString']=_0x49543a['scrollWidth']>_0x49543a['clientWidth']&&_0x49543a['value']||'';}}class oi extends ts{constructor(_0x76471e,_0x441d3a,_0x722cd9){super(_0x76471e);const _0x352dfe=new _0x4d0aac();_0x352dfe['set']({'content':_0x30d279,'viewBox':'0\x200\x2011\x2010'});const _0x591dec=['ck','ck-revision-history-sidebar__revision-author'];_0x722cd9&&_0x591dec['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5074bc=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x76471e,_0x722cd9?'Revision\x20creator':'Revision\x20author')},'children':[_0x352dfe,_0x441d3a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x591dec},'children':_0x5074bc});}}function ai(_0x3f0411,_0x4de298){const _0x10c63b=_0x3f0411['bindTemplate'],_0x1cf763=_0x3f0411['locale'],_0x50eebd=_0x4da7ef(_0x1cf763);_0x50eebd['panelPosition']='sw';const _0x355b6e=function(_0x30d865,_0x390e82){const _0x17782a=function(_0x5ab534,_0x478c62){const _0x5ae690=_0x5ab534['locale'],_0x4ce7b6={'Compare\x20against\x20selected':g(_0x5ae690,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x5ae690,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x5ae690,'Restore\x20this\x20revision')};return _0x478c62['map'](_0x25df7a=>{const _0x38713c=_0x4ce7b6[_0x25df7a['name']];return _0x38713c&&_0x38713c!==_0x25df7a['name']&&(_0x25df7a['name']=_0x38713c),_0x25df7a;});}(_0x30d865,_0x390e82),_0x512f18=new _0x49b051();for(const _0x1b8c13 of _0x17782a){const _0x528269={'type':'button','model':new to({'label':_0x1b8c13['name'],'class':_0x1b8c13['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b8c13['action']})};_0x528269['model']['bind']('isEnabled')['to'](_0x30d865,'isActionsDropdownOpen',_0x1a19db=>'function'!=typeof _0x1b8c13['isEnabled']||(!_0x1a19db||_0x1b8c13['isEnabled'](_0x30d865))),_0x512f18['add'](_0x528269);}return _0x512f18;}(_0x3f0411,_0x4de298);return _0x3f0411['bind']('isActionsDropdownOpen')['to'](_0x50eebd,'isOpen'),_0x50eebd['buttonView']['set']({'label':g(_0x1cf763,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ea0ad}),_0x50eebd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x10c63b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x10c63b['to'](_0x713411=>_0x713411['stopPropagation']())}}),_0x50eebd['on']('execute',_0xd7a29e=>{_0x3f0411['isReady']&&'function'==typeof _0xd7a29e['source']['_action']&&_0xd7a29e['source']['_action'](_0x3f0411);}),_0x3c3382(_0x50eebd,_0x355b6e,{'role':'menu'}),_0x50eebd['listenTo'](_0x3f0411,'change:isActionsDropdownOpen',(_0x3ddfdc,_0x38b963,_0x1efd7c)=>{if(_0x1efd7c)for(const _0x50dd53 of _0x50eebd['listView']['items']){const _0x35b309=_0x50dd53['children']['first'],_0x53ff8f=_0x4de298['find'](_0x47962e=>_0x47962e['action']===_0x35b309['_action'])['isVisible'];_0x50dd53['isVisible']=void 0x0===_0x53ff8f||_0x53ff8f(_0x3f0411);}}),_0x50eebd;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x4f88f4,uid as _0x1d84e2,Collection as _0x2fd429,logWarning as _0xfa5d81,FocusTracker as _0x3b9032,KeystrokeHandler as _0x41e372,scrollViewportToShowTarget as _0x423959,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x3e64cf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x27af60,set as _0xc7b2c,unset as _0x4bcce3,isEqual as _0x3e4e9d}from'es-toolkit/compat';import{Plugin as _0x21e419,PendingActions as _0x801699,Command as _0x3eb960,ElementApiMixin as _0x390138,Editor as _0x24867e}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x503f1b,getMarkerDomElement as _0x56a327,ConfirmMixin as _0x2d89b1,sanitizeEditorConfig as _0x55119b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x1f0dff,ViewAttributeElement as _0x1b4d9e,ViewEmptyElement as _0x434e33,ViewRawElement as _0x21b8c3,ViewUIElement as _0xf08920,ViewDocumentFragment as _0x323909,ViewText as _0x9cfa44,ViewElement as _0x3c4d4d,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x29f79f,IconChevronUp as _0x189df2,IconChevronDown as _0xc173ec,IconUndo as _0x5a8abd,IconUser as _0x1dfb1c,IconThreeVerticalDots as _0x374c16}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4ce9da,injectCssTransitionDisabler as ts,submitHandler as _0x4ee0b1,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x1ad742,ListView as _0x5ae3c8,ListItemView as te,ButtonView as _0x4448cb,MenuBarMenuView as _0x1a973d,MenuBarMenuListView as _0x25669f,MenuBarMenuListItemView as _0x51e070,MenuBarMenuListItemButtonView as _0x1d25ba,ContextualBalloon as _0x43a709,ToolbarSeparatorView as _0x1314b5,IconView as _0x48381e,addListToDropdown as _0x1c6be0,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2b1c40}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4f88f4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x19031e){super(),this['id']=_0x19031e['id']||_0x1d84e2(),this['creator']=_0x19031e['creator']||null,this['authors']=_0x19031e['authors']||[],this['diffData']=_0x19031e['diffData']||null,this['toVersion']=_0x19031e['toVersion']||0x0,this['fromVersion']=_0x19031e['fromVersion']||0x0,this['set']('name',_0x19031e['name']||''),this['set']('createdAt',_0x19031e['createdAt']||new Date()),this['set']('attributes',_0x19031e['attributes']||{});}['setName'](_0x27fd3f){this['_update']({'name':_0x27fd3f});}['setAttribute'](_0x41b65a,_0x141d5d){const _0x2494de=_0x27af60(this['attributes']);_0xc7b2c(_0x2494de,_0x41b65a,_0x141d5d),this['_update']({'attributes':_0x2494de});}['removeAttribute'](_0x1ed42f){const _0x225138=_0x27af60(this['attributes']);_0x4bcce3(_0x225138,_0x1ed42f),this['_update']({'attributes':_0x225138});}['_update'](_0xf90cee,_0x41b2e5=!0x1){let _0x42b7ba=!0x1;const _0x84e7d8={'id':this['id']},_0x3ca44b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4122e4 of _0x3ca44b){const _0x4068ce=_0xf90cee[_0x4122e4];void 0x0!==_0x4068ce&&_0x4068ce!==this[_0x4122e4]&&(this[_0x4122e4]=_0x4068ce,_0x84e7d8[_0x4122e4]=_0x4068ce,_0x42b7ba=!0x0);}_0x42b7ba&&(_0x84e7d8['authors']&&(_0x84e7d8['authorsIds']=_0x84e7d8['authors']['map'](_0x1079f5=>_0x1079f5['id']),delete _0x84e7d8['authors']),this['fire']('_update',_0x84e7d8,_0x41b2e5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x14da6a=>_0x14da6a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x21e419{['_revisions'];static get['requires'](){return[_0x503f1b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d4ef2){super(_0x4d4ef2),this['_revisions']=new _0x2fd429();}['afterInit'](){!async function(_0x10bacc){const _0x209304=_0x429e1b([0x76,0x42,0x30,0x34,0x68,0x49,0x61,0x47,0x46,0x5a,0x71,0x7a,0x4d,0x32,0x53,0x64,0x4c,0x63,0x4b,0x62,0x55,0x77,0x41,0x39,0x72,0x35,0x43,0x65,0x36,0x58,0x51,0x75,0x70,0x6c,0x38,0x31,0x59,0x69,0x67,0x74,0x6f,0x78,0x56,0x37,0x6a,0x6b,0x44,0x54,0x4a,0x52,0x6d,0x45,0x4f,0x4e,0x79,0x73,0x57,0x33,0x66,0x6e,0x50,0x48]),_0x4aa22b=0xeb829,_0x2e8b30=0x39a998a1,_0x36d11f=0x39aefc49^_0x2e8b30,_0x4c828a=window[_0x429e1b([0x44,0x61,0x74,0x65])][_0x429e1b([0x6e,0x6f,0x77])](),_0x5752d7=_0x10bacc[_0x429e1b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x426ccb=new window[(_0x429e1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1360=>{_0x5752d7[_0x429e1b([0x6f,0x6e,0x63,0x65])](_0x429e1b([0x72,0x65,0x61,0x64,0x79]),_0x4e1360);}),_0x2d310d={[_0x429e1b([0x6b,0x74,0x79])]:_0x429e1b([0x45,0x43]),[_0x429e1b([0x75,0x73,0x65])]:_0x429e1b([0x73,0x69,0x67]),[_0x429e1b([0x63,0x72,0x76])]:_0x429e1b([0x50,0x2d,0x32,0x35,0x36]),[_0x429e1b([0x78])]:_0x429e1b([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]),[_0x429e1b([0x79])]:_0x429e1b([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]),[_0x429e1b([0x61,0x6c,0x67])]:_0x429e1b([0x45,0x53,0x32,0x35,0x36])},_0x5dcefd=_0x5752d7[_0x429e1b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x429e1b([0x67,0x65,0x74])](_0x429e1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x76d86a(){let _0x375297,_0x4b1c25=null,_0x1b38ed=null;try{if(_0x5dcefd==_0x429e1b([0x47,0x50,0x4c]))return _0x429e1b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x375297=_0x413254(),!_0x375297)return _0x429e1b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x375297[_0x429e1b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b38ed=_0x36354b(_0x375297[_0x429e1b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x375297[_0x429e1b([0x6a,0x74,0x69])])),await _0x10108d()?_0x51a896()?_0x489462()?_0x429e1b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x313ed1()?(_0x375297[_0x429e1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x429e1b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b1c25=_0x33c4a6(_0x429e1b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x375297[_0x429e1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x429e1b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b1c25=_0x33c4a6(_0x429e1b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52275f()):_0x429e1b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x429e1b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x429e1b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x342156){return _0x429e1b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x489462(){const _0x4d697f=[_0x429e1b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x429e1b([0x74,0x72,0x69,0x61,0x6c])][_0x429e1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375297[_0x429e1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c828a/0x3e8:0xe10*_0x36d11f;return _0x375297[_0x429e1b([0x65,0x78,0x70])]<_0x4d697f;}function _0x51a896(){const _0x5e538d=_0x375297[_0x429e1b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5e538d)return!0x1;if(_0x5e538d[_0x429e1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429e1b([0x2a])))return!0x0;if(_0x5e538d[_0x429e1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429e1b([0x52,0x48])))return!0x0;if(_0x5e538d[_0x429e1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429e1b([0x52,0x52,0x48]))){if(_0x974c2f())return!0x0;if(_0x34c48d()||_0x52d753())return!0x0;}return!0x1;}function _0x313ed1(){const _0x5caba8=_0x375297[_0x429e1b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5caba8||0x0==_0x5caba8[_0x429e1b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d9adb}=new URL(window[_0x429e1b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5caba8[_0x429e1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9adb))return!0x0;const _0x4aaef3=_0x2d9adb[_0x429e1b([0x73,0x70,0x6c,0x69,0x74])](_0x429e1b([0x2e]));return _0x5caba8[_0x429e1b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x289a50=>_0x289a50[_0x429e1b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429e1b([0x2a])))[_0x429e1b([0x6d,0x61,0x70])](_0x2d3850=>_0x2d3850[_0x429e1b([0x73,0x70,0x6c,0x69,0x74])](_0x429e1b([0x2e])))[_0x429e1b([0x73,0x6f,0x6d,0x65])](_0x4c5f9d=>_0x4aaef3[_0x429e1b([0x65,0x76,0x65,0x72,0x79])]((_0x3fd02c,_0x3b0f3)=>_0x4c5f9d[_0x3b0f3]===_0x3fd02c||_0x4c5f9d[_0x3b0f3]===_0x429e1b([0x2a])));}function _0x52275f(){return _0x4b1c25&&_0x1b38ed?new window[(_0x429e1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4aaa7f,_0x4699c5)=>{_0x4b1c25[_0x429e1b([0x74,0x68,0x65,0x6e])](_0x4aaa7f,_0x4699c5),_0x1b38ed[_0x429e1b([0x74,0x68,0x65,0x6e])](_0x46a438=>{_0x46a438!=_0x429e1b([0x56,0x61,0x6c,0x69,0x64])&&_0x4aaa7f(_0x46a438);},_0x4699c5);}):_0x4b1c25||_0x1b38ed||_0x429e1b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36354b(_0x3e0314,_0x3ddc79){return new window[(_0x429e1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16841b=>{if(_0x3e7fb4())return _0x16841b(_0x429e1b([0x56,0x61,0x6c,0x69,0x64]));_0x4be02b(),_0x5752d7[_0x429e1b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x429e1b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3df66e=!0x1;const _0x352ae1=_0x1d84e2();function _0x4f28aa(_0x57d0dd){return!!_0x57d0dd&&(typeof _0x57d0dd===_0x429e1b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57d0dd===_0x429e1b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57d0dd[_0x429e1b([0x74,0x68,0x65,0x6e])]===_0x429e1b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57d0dd[_0x429e1b([0x63,0x61,0x74,0x63,0x68])]===_0x429e1b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3837b3(_0x41e680){_0x44f7b3(_0x41e680)[_0x429e1b([0x74,0x68,0x65,0x6e])](_0xec8795=>{if(!_0xec8795||_0xec8795[_0x429e1b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x429e1b([0x6f,0x6b]))return _0x429e1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x417e2b(_0x36dfad(_0x352ae1+_0x3ddc79))!=_0xec8795[_0x429e1b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x429e1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x429e1b([0x56,0x61,0x6c,0x69,0x64]);})[_0x429e1b([0x74,0x68,0x65,0x6e])](_0x3dba5f=>(_0x47e06d(),_0x3dba5f),()=>{const _0x5e78e2=_0x525b93();return null==_0x5e78e2?(_0x47e06d(),_0x429e1b([0x56,0x61,0x6c,0x69,0x64])):_0x429e1b(_0x4c828a-_0x5e78e2>(0x1da51ca1^_0x2e8b30)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x429e1b([0x74,0x68,0x65,0x6e])](_0x16841b)[_0x429e1b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16841b(_0x429e1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23c692=0x399f7621^_0x2e8b30;function _0x47e06d(){const _0x2315f8=_0x429e1b([0x6c,0x6c,0x63,0x74,0x2d])+_0x417e2b(_0x36dfad(_0x3e0314)),_0x519925=_0x2952b3(_0x417e2b(window[_0x429e1b([0x4d,0x61,0x74,0x68])][_0x429e1b([0x63,0x65,0x69,0x6c])](_0x4c828a/_0x23c692)));window[_0x429e1b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x429e1b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2315f8,_0x519925);}function _0x525b93(){const _0x30c151=_0x429e1b([0x6c,0x6c,0x63,0x74,0x2d])+_0x417e2b(_0x36dfad(_0x3e0314)),_0x593098=window[_0x429e1b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x429e1b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30c151);return _0x593098?window[_0x429e1b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2952b3(_0x593098),0x10)*_0x23c692:null;}function _0x44f7b3(_0x6b3435){return new window[(_0x429e1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a078b,_0x470ac5)=>{_0x6b3435[_0x429e1b([0x74,0x68,0x65,0x6e])](_0x4a078b,_0x470ac5),window[_0x429e1b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x470ac5,0x39a84c61^_0x2e8b30);});}}_0x5752d7[_0x429e1b([0x6f,0x6e])](_0x429e1b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56ebb9,_0x44f7ce)=>{if(_0x44f7ce[0x0]!=_0x3e0314)return _0x16841b(_0x429e1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44f7ce[0x1]={..._0x44f7ce[0x1],[_0x429e1b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x352ae1};},{[_0x429e1b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x429e1b([0x68,0x69,0x67,0x68])}),_0x5752d7[_0x429e1b([0x6f,0x6e])](_0x429e1b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49db37=>{_0x4f28aa(_0x49db37[_0x429e1b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3df66e=!0x0,_0x3837b3(_0x49db37[_0x429e1b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x429e1b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x429e1b([0x6c,0x6f,0x77])}),_0x426ccb[_0x429e1b([0x74,0x68,0x65,0x6e])](()=>{_0x3df66e||_0x16841b(_0x429e1b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e7fb4(){return _0x5752d7[_0x429e1b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x429e1b([0x76,0x69,0x65,0x77])][_0x429e1b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x429e1b([0x61,0x75,0x74,0x6f]);}function _0x4be02b(){_0x5752d7[_0x429e1b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x429e1b([0x76,0x69,0x65,0x77])][_0x429e1b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x429e1b([0x61,0x75,0x74,0x6f]);}}function _0x33c4a6(_0x10f6f7){const _0x4ef165=[new window[(_0x429e1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42be15=>setTimeout(_0x42be15,0x39a0a66d^_0x2e8b30)),_0x426ccb[_0x429e1b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x429e1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdf97d2=>{const _0x1e7fa3=0x39a998a6^_0x2e8b30,_0xad4192=_0x10bacc[_0x429e1b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1b812d(){_0xad4192[_0x429e1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1e7fa3&&_0xdf97d2();}_0x1b812d(),_0xad4192[_0x429e1b([0x6f,0x6e])](_0x429e1b([0x61,0x64,0x64]),_0x1b812d);})),new window[(_0x429e1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3023e5=>{function _0x109e04(){for(const _0x375164 in window)if(window[_0x429e1b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x429e1b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x375164))&&window[_0x375164]==_0x4aa22b)return _0x3023e5();_0x5752d7[_0x429e1b([0x73,0x74,0x61,0x74,0x65])]!=_0x429e1b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x429e1b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x109e04,0x39a98b29^_0x2e8b30);}_0x564f2b(_0x429e1b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x109e04();})];return window[_0x429e1b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x429e1b([0x72,0x61,0x63,0x65])](_0x4ef165)[_0x429e1b([0x74,0x68,0x65,0x6e])](()=>_0x10f6f7);}async function _0x671ee1(){if(await _0x426ccb,_0x564f2b(_0x429e1b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xc5868f=_0x10bacc[_0x429e1b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x409794=_0x10bacc[_0x429e1b([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])](_0xc5868f[_0x429e1b([0x69,0x64])]),_0x617650=_0x5c9ad4(_0x429e1b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x617650[_0x429e1b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xc5868f['id'],_0x409794?_0x409794['id']:null,!0x0),_0x617650[_0x429e1b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x429e1b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x617650[_0x429e1b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x617650[_0x429e1b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x325e01,void(_0x617650[_0x429e1b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x325e01);}if(_0x564f2b(_0x429e1b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1b0a4a=_0x5c9ad4(_0x429e1b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1b0a4a[_0x429e1b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x429e1b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1b0a4a[_0x429e1b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1b0a4a[_0x429e1b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x325e01,_0x1b0a4a[_0x429e1b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x325e01;}_0x5752d7[_0x429e1b([0x6d,0x6f,0x64,0x65,0x6c])][_0x429e1b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x325e01,_0x5752d7[_0x429e1b([0x6d,0x6f,0x64,0x65,0x6c])][_0x429e1b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x325e01,_0x5752d7[_0x429e1b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x429e1b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x974c2f(){return _0x564f2b(_0x429e1b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c9ad4(_0x429e1b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x429e1b([0x73,0x74,0x61,0x74,0x65])]==_0x429e1b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34c48d(){return _0x564f2b(_0x429e1b([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 _0x52d753(){return _0x564f2b(_0x429e1b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2ed7e6(_0x18ae62){const _0x599322=_0x414f35();_0x5752d7[_0x599322]=_0x429e1b([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])+_0x18ae62,_0x18ae62[_0x429e1b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x429e1b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x414f35()]=_0x4aa22b),_0x18ae62!=_0x429e1b([0x56,0x61,0x6c,0x69,0x64])&&_0x671ee1();}function _0x414f35(){const _0x50cb2b=window[_0x429e1b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x429e1b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x429e1b([0x6e,0x6f,0x77])]())[_0x429e1b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x429e1b([0x2e]),'');let _0x2d4134=_0x429e1b([0x76]);for(let _0x3db357=0x0;_0x3db357<_0x50cb2b[_0x429e1b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3db357+=0x2){let _0x23d8f2=window[_0x429e1b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50cb2b[_0x429e1b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3db357,_0x3db357+0x2));_0x23d8f2>=_0x209304[_0x429e1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23d8f2-=_0x209304[_0x429e1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d4134+=_0x209304[_0x23d8f2];}return _0x2d4134;}function _0x413254(){const _0x59efc0=_0x5dcefd[_0x429e1b([0x73,0x70,0x6c,0x69,0x74])](_0x429e1b([0x2e]));if(0x3!=_0x59efc0[_0x429e1b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2fa805(_0x59efc0[0x1]);function _0x2fa805(_0x47ddb1){const _0x116375=_0x6760e3(_0x47ddb1);return _0x116375&&_0x50eea9()?_0x116375:null;function _0x50eea9(){const _0x21c3bb=_0x116375[_0x429e1b([0x6a,0x74,0x69])],_0x5bdaf0=window[_0x429e1b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c3bb[_0x429e1b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21c3bb[_0x429e1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fdd2c={..._0x116375,[_0x429e1b([0x6a,0x74,0x69])]:_0x21c3bb[_0x429e1b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21c3bb[_0x429e1b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fdd2c[_0x429e1b([0x76,0x63])],_0x36dfad(_0x3fdd2c)==_0x5bdaf0;}}}async function _0x10108d(){let _0x420079=!0x0;try{const _0x5b46c1=_0x5dcefd[_0x429e1b([0x73,0x70,0x6c,0x69,0x74])](_0x429e1b([0x2e])),[_0x136303,_0x2137dd,_0x316e11]=_0x5b46c1;return _0x32306b(_0x136303),await _0x1381eb(_0x136303,_0x2137dd,_0x316e11),_0x420079;}catch(_0x47a844){return!0x1;}function _0x32306b(_0x4fd2ac){const _0xa0664b=_0x6760e3(_0x4fd2ac);_0xa0664b&&_0xa0664b[_0x429e1b([0x61,0x6c,0x67])]==_0x429e1b([0x45,0x53,0x32,0x35,0x36])||(_0x420079=!0x1);}async function _0x1381eb(_0x573629,_0x3fec43,_0x1d4303){const _0x1207dd=window[_0x429e1b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x429e1b([0x66,0x72,0x6f,0x6d])](_0x1246c3(_0x1d4303),_0x419795=>_0x419795[_0x429e1b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x54d239=new window[(_0x429e1b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x429e1b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x573629+_0x429e1b([0x2e])+_0x3fec43),_0x5582b3=window[_0x429e1b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x429e1b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5582b3)return;const _0x2cf0bc=await _0x5582b3[_0x429e1b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x429e1b([0x6a,0x77,0x6b]),_0x2d310d,{[_0x429e1b([0x6e,0x61,0x6d,0x65])]:_0x429e1b([0x45,0x43,0x44,0x53,0x41]),[_0x429e1b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x429e1b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x429e1b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5582b3[_0x429e1b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x429e1b([0x6e,0x61,0x6d,0x65])]:_0x429e1b([0x45,0x43,0x44,0x53,0x41]),[_0x429e1b([0x68,0x61,0x73,0x68])]:{[_0x429e1b([0x6e,0x61,0x6d,0x65])]:_0x429e1b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cf0bc,_0x1207dd,_0x54d239)||(_0x420079=!0x1);}}function _0x6760e3(_0xa75177){return _0xa75177[_0x429e1b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x429e1b([0x65,0x79]))?JSON[_0x429e1b([0x70,0x61,0x72,0x73,0x65])](_0x1246c3(_0xa75177)):null;}function _0x1246c3(_0x468895){return window[_0x429e1b([0x61,0x74,0x6f,0x62])](_0x468895[_0x429e1b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x429e1b([0x2b]))[_0x429e1b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x429e1b([0x2f])));}function _0x36dfad(_0x3cf43c){let _0x1b7492=0x1505;function _0x4f32b4(_0x4f214d){for(let _0xfca64e=0x0;_0xfca64e<_0x4f214d[_0x429e1b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfca64e++){const _0x1d1a77=_0x4f214d[_0x429e1b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfca64e);_0x1b7492=(_0x1b7492<<0x5)+_0x1b7492+_0x1d1a77,_0x1b7492&=_0x1b7492;}}function _0x185cbe(_0x4bf605){Array[_0x429e1b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bf605)?_0x4bf605[_0x429e1b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x185cbe):_0x4bf605&&typeof _0x4bf605==_0x429e1b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x429e1b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bf605)[_0x429e1b([0x73,0x6f,0x72,0x74])]()[_0x429e1b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x557417,_0xc17779])=>{_0x4f32b4(_0x557417),_0x185cbe(_0xc17779);}):_0x4f32b4(window[_0x429e1b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bf605));}return _0x185cbe(_0x3cf43c),_0x1b7492>>>0x0;}function _0x417e2b(_0x3a527d){return _0x3a527d[_0x429e1b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x429e1b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x429e1b([0x30]));}function _0x2952b3(_0xb40a6a){return _0xb40a6a[_0x429e1b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x429e1b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x429e1b([0x6a,0x6f,0x69,0x6e])]('');}function _0x564f2b(_0x1e7bf6){return _0x5752d7[_0x429e1b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x429e1b([0x68,0x61,0x73])](_0x1e7bf6);}function _0x5c9ad4(_0x138d07){return _0x5752d7[_0x429e1b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x429e1b([0x67,0x65,0x74])](_0x138d07);}function _0x325e01(){}function _0x429e1b(_0x3b9e0b){return _0x3b9e0b['map'](_0x2600ea=>String['fromCharCode'](_0x2600ea))['join']('');}_0x2ed7e6(await _0x76d86a());}(this);}['createRevision'](_0x4c0ffe){const _0x1eb521=this['editor']['plugins']['get']('Users');return new h({'id':_0x4c0ffe['id'],'name':_0x4c0ffe['name'],'creator':_0x4c0ffe['creatorId']?_0x1eb521['getUser'](_0x4c0ffe['creatorId']):null,'diffData':_0x4c0ffe['diffData']||_0x4c0ffe['data'],'authors':_0x4c0ffe['authorsIds']['map'](_0xfdb3e6=>_0x1eb521['getUser'](_0xfdb3e6)),'createdAt':new Date(_0x4c0ffe['createdAt']),'attributes':_0x4c0ffe['attributes'],'fromVersion':_0x4c0ffe['fromVersion'],'toVersion':_0x4c0ffe['toVersion']});}['addRevision'](_0x10ea4e,_0x379095=0x0){this['_revisions']['add'](_0x10ea4e,_0x379095);}['getRevision'](_0x5d54a9){return this['_revisions']['get'](_0x5d54a9);}['getRevisions'](_0x27e236={'toJSON':!0x1}){const _0x1708b9=Array['from'](this['_revisions']);return _0x1708b9['reverse'](),_0x27e236['toJSON']?_0x1708b9['map'](_0x82c4c1=>_0x82c4c1['toJSON']()):_0x1708b9;}['getIndex'](_0x1bb70a){return this['_revisions']['getIndex'](_0x1bb70a);}['getEarlierVisibleRevision'](_0x1814f1){const [,_0x22178b]=this['getRevisionsIterator'](_0x1814f1,{'direction':'earlier'});return _0x22178b;}['getLaterVisibleRevision'](_0x2db9e9){const [,_0x22c368]=this['getRevisionsIterator'](_0x2db9e9,{'direction':'later'});return _0x22c368;}['getRevisionsInDiff'](_0x3bc5f9){const _0x25b9a9=[];for(const _0x34f61f of this['getRevisionsIterator'](_0x3bc5f9['newRevisionId']))if(_0x25b9a9['push'](_0x34f61f),_0x34f61f['id']===_0x3bc5f9['oldRevisionId'])break;return _0x25b9a9;}*['getRevisionsIterator'](_0xad226f,{direction:_0x1bd7ca='earlier',filter:_0x2d3de6=()=>!0x0}={}){const _0x2b7b5f='earlier'===_0x1bd7ca?0x1:-0x1;let _0x393f6b=this['_revisions']['get'](_0xad226f),_0x2a5935=this['getIndex'](_0x393f6b);for(yield _0x393f6b;_0x393f6b;){if(_0x2a5935+=_0x2b7b5f,_0x393f6b=this['getRevision'](_0x2a5935),!_0x393f6b)return;_0x2d3de6(_0x393f6b)&&(yield _0x393f6b);}}}class V extends _0x21e419{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1f0dff,'c'],[_0x1b4d9e,'a'],[_0x434e33,'e'],[_0x21b8c3,'r'],[_0xf08920,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1f0dff],['a',_0x1b4d9e],['e',_0x434e33],['r',_0x21b8c3],['u',_0xf08920]]);async['loadRevisionData'](_0x5ed9e1,_0x135cc2){if(_0x5ed9e1['diffData']||!_0x135cc2)return;const _0x183a29=this['editor']['config']['get']('collaboration.channelId'),_0x1c3818=await _0x135cc2['getRevision']({'channelId':_0x183a29,'revisionId':_0x5ed9e1['id']});_0x5ed9e1['diffData']=_0x1c3818['diffData'];}['getRevisionDocumentData'](_0x368b67){const _0x385eb7={};for(const _0x33bc3e in _0x368b67['diffData']){if(_0x368b67['diffData'][_0x33bc3e]['attachChange']&&!_0x368b67['diffData'][_0x33bc3e]['attachChange']['isAttached'])continue;const _0x3b14b8=this['_removeRevisionMarkers'](JSON['parse'](_0x368b67['diffData'][_0x33bc3e]['insertions'])),_0x58a501=this['editor']['editing']['view']['document'],_0x5e07cf=new _0x323909(_0x58a501,_0x3b14b8['map'](_0x28355c=>this['_getViewFromDiffObj'](_0x28355c,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x385eb7[_0x33bc3e]=this['editor']['data']['processor']['toData'](_0x5e07cf),this['editor']['data']['processor']['useFillerType']('default');}return _0x385eb7;}['getRevisionRootsAttributes'](_0x4bb3b8){const _0x1073ad={};for(const _0x3b9901 in _0x4bb3b8['diffData'])_0x4bb3b8['diffData'][_0x3b9901]['attachChange']&&!_0x4bb3b8['diffData'][_0x3b9901]['attachChange']['isAttached']||(_0x1073ad[_0x3b9901]=_0x4bb3b8['diffData'][_0x3b9901]['attributesAfter']||{});return _0x1073ad;}['_getTypeCharForViewElement'](_0x42b73c){return this['_viewClassToTypeChar']['get'](_0x42b73c['constructor']);}['_getViewFromDiffObj'](_0x3b44c9,_0x3b5d81){const _0x4df12b=this['editor']['editing']['view']['document'];if('string'==typeof _0x3b44c9)return new _0x9cfa44(_0x4df12b,_0x3b44c9);{let _0x17f06c,_0x7e4b4c;_0x7e4b4c='u'==_0x3b44c9['type']||'r'==_0x3b44c9['type']?[]:_0x3b44c9['children']['map'](_0x59c4ec=>this['_getViewFromDiffObj'](_0x59c4ec,_0x3b5d81));const _0x4924a2=this['_typeCharToViewClass']['get'](_0x3b44c9['type'])||_0x3c4d4d,_0x4a7378=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x17f06c=new _0x4924a2(_0x4df12b,_0x3b44c9['name'],_0x3b44c9['attributes'],_0x7e4b4c),'u'==_0x3b44c9['type']&&_0x3b44c9['children'][0x0]){const _0x445762=_0x3b44c9['children'][0x0];if(_0x17f06c['render']=function(_0x6021c9){const _0x57e844=_0x6021c9['createElement']('div');return _0x57e844['innerHTML']=_0x445762,_0x57e844['childNodes'][0x0];},_0x3b5d81){const _0x46e52c=new _0x323909(_0x4df12b);_0x46e52c['_appendChild'](_0x17f06c);const _0x3f759a=Array['from'](_0x4a7378['viewChildrenToDom'](_0x46e52c,{'bind':!0x1})),_0x3c9152=_0x4a7378['domDocument']['createElement']('div');_0x3c9152['append'](..._0x3f759a),_0x17f06c=Array['from'](_0x4a7378['domChildrenToView'](_0x3c9152))[0x0];}}else{if('r'==_0x3b44c9['type']&&_0x3b44c9['children'][0x0]){const _0x3b0127=_0x3b44c9['children'][0x0];if(_0x17f06c['render']=function(_0xb81e7a){_0xb81e7a['innerHTML']=_0x3b0127;},_0x3b5d81){const _0x5b6318=new _0x323909(_0x4df12b);_0x5b6318['_appendChild'](_0x17f06c);const _0x467dd0=Array['from'](_0x4a7378['viewChildrenToDom'](_0x5b6318,{'bind':!0x1})),_0x36aeee=_0x4a7378['domDocument']['createElement']('div');_0x36aeee['append'](..._0x467dd0);const _0x568086=Array['from'](_0x4a7378['domChildrenToView'](_0x36aeee));_0x568086['length']>0x1?_0x17f06c['_appendChild'](_0x568086):_0x17f06c=_0x568086[0x0];}}}if(_0x3b44c9['customProperties']){for(const [_0x10de16,_0x915e20]of _0x3b44c9['customProperties'])_0x17f06c['_setCustomProperty'](_0x10de16,_0x915e20);}const _0x41d778=void 0x0===_0x3b44c9['fillerOffset']?null:_0x3b44c9['fillerOffset'];return null!==_0x41d778&&(_0x17f06c['getFillerOffset']=()=>_0x41d778),_0x17f06c;}}['_makeModelFromViewString'](_0x9c7828){const _0x51eafd=JSON['parse'](_0x9c7828),_0x595d29=this['editor']['editing']['view']['document'],_0x26d0fc=new _0x323909(_0x595d29,_0x51eafd['map'](_0x3578bf=>this['_getViewFromDiffObj'](_0x3578bf,!0x0)));return this['editor']['data']['toModel'](_0x26d0fc);}['_removeRevisionMarkers'](_0xbaf4ff){return(_0xbaf4ff=_0xbaf4ff['filter'](_0x39af78=>!_0x39af78['name']||'revision-start'!==_0x39af78['name']&&'revision-end'!==_0x39af78['name']))['forEach'](_0x2549d6=>{'string'!=typeof _0x2549d6&&(_0x2549d6['children']=this['_removeRevisionMarkers'](_0x2549d6['children']),_0x2549d6['attributes']=_0x2549d6['attributes']['filter'](_0x23ffdb=>!_0x23ffdb[0x0]['startsWith']('data-revision-')));}),_0xbaf4ff;}}function g(_0x58f51c,_0x177074,_0x4a6619){const t=_0x58f51c['t'];switch(_0x177074){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'},_0x4a6619);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4a6619);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x21e419{['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[_0x503f1b,I,V,_0x801699];}constructor(_0x5b76bb){super(_0x5b76bb),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x7b7dbd=_0x1d84e2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x7b7dbd},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 _0x3e1169=this['repository']['getRevision'](0x0),_0x55e6dd=_0x3e1169&&null===_0x3e1169['creator']?_0x3e1169:null;if(this['_continueCurrentRevision']=!!_0x55e6dd&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x411ce7=this['_source']['getCurrentRevisionId'](),_0x4361e7=this['repository']['getRevision'](_0x411ce7);if(_0x4361e7)this['_startingVersion']=_0x4361e7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x515231=this['_source']['history']['_operations']['find'](_0x2d6114=>!_0x2d6114['_isInit']),_0x533c15=_0x515231?_0x515231['baseVersion']:this['_source']['history']['version'];_0x3e1169?(_0x3e1169['toVersion']<_0x533c15&&_0x3e1169['_update']({'toVersion':_0x533c15}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x55e6dd['id'],this['_startingVersion']=_0x55e6dd['fromVersion']):(this['_startingVersion']=_0x3e1169['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x533c15,this['_continueCurrentRevision']=!0x1);}}else _0x55e6dd&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x55e6dd['toVersion'],this['editor']['model']['document']['history']['version']),_0x55e6dd['fromVersion']===_0x55e6dd['toVersion']?(0x0!==_0x55e6dd['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x55e6dd['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x55e6dd['id'],this['_startingVersion']=_0x55e6dd['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',_0x1bf71b=>!_0x1bf71b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c2cce=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d1e40;for(const _0x317b0f in _0x3c2cce){const _0x3da01c=_0x317b0f,_0xe4228b=_0x3c2cce[_0x3da01c];if('revisionHistoryLicenseKeyValid'==_0xe4228b||'revisionHistoryLicenseKeyInvalid'==_0xe4228b||'revisionHistoryLicenseKeyExpired'==_0xe4228b||'revisionHistoryLicenseKeyDomainLimit'==_0xe4228b||'revisionHistoryLicenseKeyNotAllowed'==_0xe4228b||'revisionHistoryLicenseKeyEvaluationLimit'==_0xe4228b||'revisionHistoryLicenseKeyTrialLimit'==_0xe4228b||'revisionHistoryLicenseKeyUsageLimit'==_0xe4228b){delete _0x3c2cce[_0x3da01c],_0x5d1e40=_0xe4228b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5d1e40&&_0x3c2cce['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5d1e40&&_0x3c2cce['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5d1e40&&_0x3c2cce['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5d1e40&&_0x3c2cce['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5d1e40&&_0x3c2cce['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5d1e40&&_0x3c2cce['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5d1e40&&_0x3c2cce['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x534096=this['repository']['getRevision'](0x0),_0x2de8eb=await this['getRevisionDocumentData'](_0x534096),_0x1b3189=await this['getRevisionRootsAttributes'](_0x534096);this['_replaceEditorDataWithRevisionData'](_0x2de8eb,_0x1b3189);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4bd969){this['_source']=_0x4bd969;}async['update'](){const _0x2ae8e2=await this['_source']['getLatestVersion']();if(_0x2ae8e2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2f86ad=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2ae8e2});_0x2f86ad['authors']=_0x2f86ad['authorsIds']['map'](_0x265b18=>this['editor']['plugins']['get']('Users')['getUser'](_0x265b18)),this['currentRevision']['_update'](_0x2f86ad);}}async['saveRevision'](_0x250475={},_0xd32e95=null){const _0x28c521=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xd32e95>this['currentRevision']['toVersion']&&(_0xd32e95=null),null===_0xd32e95&&(_0xd32e95=await this['_source']['getLatestVersion']());const _0x40af20=this['_getFromVersion'](_0xd32e95),_0x5040c2=this['buildRevisionData']({'from':_0x40af20,'to':_0xd32e95});if(this['currentRevision']['toVersion']<_0xd32e95){const _0x25de72=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xd32e95,'to':_0xd32e95});_0x25de72['authors']=[],_0x25de72['authorsIds']=[],_0x25de72['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x25de72,!0x0),delete _0x25de72['authors'],_0x28c521['push'](_0x25de72);}_0x250475['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x250475['name']=_0x250475['name']||null,_0x250475['id']=_0x250475['id']||_0x1d84e2(),_0x250475={..._0x250475,..._0x5040c2};const _0x99e8aa=this['addRevisionData'](_0x250475);_0x28c521['push'](_0x250475);const _0x495766=this['repository']['getIndex'](_0x99e8aa);if(0x0!==_0x495766){const _0x2f1977=this['repository']['getRevision'](_0x495766-0x1);if(_0x2f1977['fromVersion']!==_0xd32e95){const _0xd953bb=this['_revisionDataBuilder']['getData'](_0xd32e95,_0x2f1977['toVersion']),_0x229d22={'id':_0x2f1977['id'],'diffData':_0xd953bb['diffData'],'authorsIds':_0xd953bb['authorsIds'],'authors':_0xd953bb['authorsIds']['map'](_0x59e9b9=>this['editor']['plugins']['get']('Users')['getUser'](_0x59e9b9)),'fromVersion':_0xd32e95};_0x2f1977===this['currentRevision']&&(_0x229d22['createdAt']=new Date(_0x250475['createdAt']['getTime']()+0xa)),_0x2f1977['_update'](_0x229d22,!0x0),delete _0x229d22['authors'],_0x28c521['push'](_0x229d22);}}if(this['adapter']){for(const _0xe87d9b of _0x28c521)this['_bufferUpdate'](_0xe87d9b['id'],_0xe87d9b,!0x0);this['sendBufferedUpdates']();}return _0x99e8aa;}['addRevisionData'](_0xe7b2dd){const _0x1a6fac=this['repository']['createRevision'](_0xe7b2dd);return this['adapter']&&_0x1a6fac['on']('_update',(_0x379658,_0x3aa5f1,_0x1e3fbd)=>{_0x1e3fbd||(this['_bufferUpdate'](_0x3aa5f1['id'],_0x3aa5f1,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1a6fac,this['_findInsertionIndex'](_0x1a6fac)),_0x1a6fac;}async['getRevisionDocumentData'](_0x264e8e){return await this['_utils']['loadRevisionData'](_0x264e8e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x264e8e);}async['getRevisionRootsAttributes'](_0x13acfd){return await this['_utils']['loadRevisionData'](_0x13acfd,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x13acfd);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5d8241=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x49ec19=0x0;_0x49ec19<_0x5d8241['length'];_0x49ec19++){const _0x571cd5=_0x5d8241[_0x49ec19];let _0xc1d445=!0x1;for(const _0x4471e6 of Object['keys'](_0x571cd5))void 0x0===_0x571cd5[_0x4471e6]?delete _0x571cd5[_0x4471e6]:'id'!==_0x4471e6&&(_0xc1d445=!0x0);_0xc1d445||(_0x5d8241[_0x49ec19]=null);}if(_0x5d8241=_0x5d8241['filter'](_0x1143dc=>null!==_0x1143dc),!_0x5d8241['length'])return;for(let _0x3ac289=0x0;_0x3ac289<_0x5d8241['length'];_0x3ac289++){const _0x129b7d=_0x5d8241[_0x3ac289];void 0x0!==_0x129b7d['fromVersion']&&void 0x0===_0x129b7d['toVersion']&&(_0x129b7d['toVersion']=this['repository']['getRevision'](_0x129b7d['id'])['toVersion']),void 0x0!==_0x129b7d['toVersion']&&void 0x0===_0x129b7d['fromVersion']&&(_0x129b7d['fromVersion']=this['repository']['getRevision'](_0x129b7d['id'])['fromVersion']);}const _0x1df94c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5d8241,_0x1df94c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2fb8da=>{if(_0x2fb8da){for(const _0xc4c325 of _0x2fb8da)this['setRevisionData']({'id':_0xc4c325['id'],'createdAt':_0xc4c325['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x569116=null,from:_0x2c974e=null,to:_0x40d828=null}){_0x2c974e=null!==_0x2c974e?_0x2c974e:_0x569116['fromVersion'],_0x40d828=null!==_0x40d828?_0x40d828:_0x569116['toVersion'];const _0xa246a4=this['_revisionDataBuilder']['getData'](_0x2c974e,_0x40d828),_0xc38b40={'diffData':_0xa246a4['diffData'],'authorsIds':_0xa246a4['authorsIds'],'fromVersion':_0x2c974e,'toVersion':_0x40d828};if(!_0x569116||_0x40d828!==_0x569116['toVersion']){const _0x164738=_0x40d828-0x1,_0xfd4828=this['_source']['history']['getOperation'](_0x164738);_0xc38b40['createdAt']=_0xfd4828&&_0xfd4828['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2c974e===this['_loadedStateData']['fromVersion']){for(const _0x41f349 of this['_loadedStateData']['authors'])_0xc38b40['authorsIds']['includes'](_0x41f349['id'])||_0xc38b40['authorsIds']['push'](_0x41f349['id']);}return _0xc38b40;}['_bufferUpdate'](_0x233c56,_0x59e2b,_0x334254){if(this['_bufferedUpdates']['has'](_0x233c56)){const _0x3603f7=this['_bufferedUpdates']['get'](_0x233c56);_0x59e2b=_0x334254?{..._0x3603f7,..._0x59e2b}:{..._0x59e2b,..._0x3603f7};}this['_bufferedUpdates']['set'](_0x233c56,_0x59e2b);}['setRevisionData'](_0x4d3d05){const _0x3bd62e=this['repository']['getRevision'](_0x4d3d05['id']);if(_0x4d3d05['createdAt']&&(_0x4d3d05['createdAt']=new Date(_0x4d3d05['createdAt'])),_0x4d3d05['authorsIds']){const _0x289d89=this['editor']['plugins']['get']('Users');_0x4d3d05['authors']=_0x4d3d05['authorsIds']['map'](_0x230033=>_0x289d89['getUser'](_0x230033));}_0x3bd62e['_update'](_0x4d3d05,!0x0);}['_createInitialRevision'](_0x5d4fc5){const _0x1c8989=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1c8989)this['_initialRevisionId']=_0x1c8989['id'];else{const _0x2d8f75=!this['editor']['model']['document']['roots']['find'](_0x1c9661=>this['editor']['model']['hasContent'](_0x1c9661)),_0x422dce=this['editor']['plugins']['get']('Users')['me']['id'],_0x355e77=g(this['editor']['locale'],_0x2d8f75?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5d4fc5,'to':_0x5d4fc5,'id':this['_initialRevisionId'],'name':_0x355e77,'creatorId':_0x422dce});}}['_createCurrentRevision'](_0x4ffdee){const _0x1022e9=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1022e9),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4ffdee,'to':_0x4ffdee,'id':_0x1022e9,'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'](_0x27b140,_0x2f92df){let _0x25fc72=this['editor']['config']['get']('initialData'),_0x3282e0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x25fc72){_0x25fc72={};for(const _0x3c129f of this['editor']['model']['document']['getRootNames']())_0x25fc72[_0x3c129f]='';}if('string'==typeof _0x25fc72&&(_0x25fc72={'main':_0x25fc72}),void 0x0===_0x3282e0){_0x3282e0={};for(const _0x45f72b of this['editor']['model']['document']['getRootNames']())_0x3282e0[_0x45f72b]={};}let _0x485a8e=!0x1;const _0x48b523=Object['keys'](_0x25fc72),_0x2d7662=Object['keys'](_0x27b140);for(const _0x307fd5 of _0x48b523){if(_0x25fc72[_0x307fd5]!==_0x27b140[_0x307fd5]&&''!==_0x25fc72[_0x307fd5]['trim']()){_0x485a8e=!0x0;break;}if(!_0x3e4e9d(_0x3282e0[_0x307fd5],_0x2f92df[_0x307fd5])&&Object['keys'](_0x3282e0[_0x307fd5])['length']>0x0){_0x485a8e=!0x0;break;}}_0x485a8e||(_0x485a8e=_0x2d7662['some'](_0x1cf690=>!this['editor']['model']['document']['getRoot'](_0x1cf690))),_0x485a8e&&_0xfa5d81('editor-initial-data-replaced-with-revision-data',{'editorData':_0x25fc72,'editorRootsAttributes':_0x3282e0,'revisionData':_0x27b140,'revisionRootsAttributes':_0x2f92df}),this['editor']['config']['set']('initialData',_0x27b140),this['editor']['config']['set']('rootsAttributes',_0x2f92df);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x47825c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x47825c['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4f8f23){const _0x48ed0c=this['repository']['getRevisions']();_0x48ed0c['reverse']();let _0x4bba98=0x0;for(;_0x4bba98<_0x48ed0c['length'];){const _0x402162=_0x48ed0c[_0x4bba98];if(_0x402162===this['currentRevision']){_0x4bba98++;continue;}if(_0x402162['id']===this['_initialRevisionId'])break;const _0x58d9e3=_0x4f8f23['toVersion']-_0x402162['toVersion']||_0x4f8f23['fromVersion']-_0x402162['fromVersion'];if(_0x58d9e3>0x0)break;if(_0x58d9e3<0x0)_0x4bba98++;else{if(!_0x4f8f23['creator']&&_0x402162['creator'])break;if(_0x402162['creator']||!_0x4f8f23['creator']){if(_0x4f8f23['createdAt']>_0x402162['createdAt'])break;_0x4bba98++;}else _0x4bba98++;}}return _0x4bba98;}['_getFromVersion'](_0x42eddf){const _0x1bbaa7=this['repository']['getRevisions']();_0x1bbaa7['reverse'](),_0x1bbaa7['shift']();const _0x564461=_0x1bbaa7['find'](_0x3f815b=>_0x3f815b['toVersion']<=_0x42eddf)['toVersion'];return _0x564461<this['_startingVersion']?this['_startingVersion']:_0x564461;}['_makeRevision']({name:_0x14a4e1,from:_0x15dec7,to:_0x2c9ce6,creatorId:_0x2a90d3,id:_0x1baee6}){const _0x29a2c9=this['buildRevisionData']({'from':_0x15dec7,'to':_0x2c9ce6});_0x29a2c9['name']=_0x14a4e1,_0x29a2c9['creatorId']=_0x2a90d3,_0x29a2c9['id']=_0x1baee6;const _0x5d7ff9=this['addRevisionData'](_0x29a2c9);return this['adapter']&&this['_bufferUpdate'](_0x29a2c9['id'],_0x29a2c9,!0x0),_0x5d7ff9;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xe532d2){this['editor']=_0xe532d2,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'](_0x109799){this['source']=_0x109799;const _0x35c720=new Map(),_0x1ae018=new Map(),_0x6e2821=this['editor']['model']['document']['roots']['map'](_0x3558cc=>_0x3558cc['rootName']);for(const _0xc89518 of _0x6e2821){const _0x16b8b6=this['editor']['model']['document']['getRoot'](_0xc89518),_0x15a090=N(_0x16b8b6);_0x35c720['set'](_0xc89518,_0x15a090),_0x1ae018['set'](_0xc89518,Object['fromEntries'](_0x16b8b6['getAttributes']()));}const _0xcf0be3=Array['from'](this['editor']['model']['markers'])['map'](_0x5d4e4a=>[_0x5d4e4a['name'],_0x5d4e4a['getRange']()]),_0x451152=this['source']['version'];this['_saveMetaData'](_0x451152,_0x35c720,_0xcf0be3,_0x1ae018),this['_startingRevisionId']=this['_revisionId'];const _0x298d2a=new Map(),_0x26cccd=new Map();for(const _0x393140 of _0x6e2821){const _0x176a00=P(_0x393140);_0x298d2a['set'](_0x393140,_0x176a00),_0x26cccd['set'](_0x393140,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x298d2a,[],_0x26cccd);}['getData'](_0x5590b9,_0x328e3a){if(this['_lastFrom']===_0x5590b9&&this['_lastTo']<=_0x328e3a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x328e3a,!0x0);else{if(!this['_savedMetaData']['has'](_0x5590b9)){const _0x130e2d=this['_getPreviousFrom'](_0x5590b9);this['_calculateMetaData'](_0x130e2d,_0x5590b9,!0x1);}this['_calculateMetaData'](_0x5590b9,_0x328e3a,!0x0);}return this['_lastFrom']=_0x5590b9,this['_lastTo']=_0x328e3a,this['_getState']();}['loadState'](_0x11620d){const _0x147186=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x11620d['fromVersion'],this['_lastTo']=_0x11620d['toVersion'];for(const _0x20259a in _0x11620d['diffData']){const _0x19b8fc=_0x11620d['diffData'][_0x20259a]['attachChange'],_0x56e5ff=_0x27af60(_0x11620d['diffData'][_0x20259a]['attributesBefore'])||{},_0x3be2b1=_0x147186['_makeModelFromViewString'](_0x11620d['diffData'][_0x20259a]['deletions']);_0x3be2b1['rootName']=_0x20259a,_0x3be2b1['_isAttached']=!_0x19b8fc||!_0x19b8fc['isAttached'],_0x3be2b1['isAttached']=()=>_0x3be2b1['_isAttached'],this['_baseRoots']['set'](_0x20259a,_0x3be2b1),this['_baseRootsAttributes']['set'](_0x20259a,_0x56e5ff),_0x19b8fc&&this['_touchedRoots']['set'](_0x20259a,_0x19b8fc);const _0x58e77b=this['_makeIdsRoot'](_0x3be2b1);this['_baseIdsRoots']['set'](_0x20259a,_0x58e77b);for(const [_0x58b08b,_0x519e0b]of _0x3be2b1['markers']){if(!_0x58b08b['startsWith']('revision:'))continue;const _0x21d354=_0x58b08b['split'](':')[0x2];for(const _0x44e8a5 of _0x519e0b['getWalker']({'singleCharacters':!0x0})){const _0x2e287c=this['_getVidAttributeName'](_0x44e8a5),_0xcbc31e='elementEnd'==_0x44e8a5['type']?_0x44e8a5['previousPosition']['path']['slice'](0x0,-0x1):_0x44e8a5['previousPosition']['path'],_0x382e5f=_0x58e77b['getNodeByPath'](_0xcbc31e)['getAttribute'](_0x2e287c);this['_touched']['set'](_0x382e5f,{'userId':_0x21d354});}}}this['_startingRevisionId']=this['_revisionId'];const _0x481188=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x364a7d=>!this['_touched']['has'](_0x364a7d));let _0xa89f35=0x0;const _0x445f1b=new Map();for(const _0x1de572 in _0x11620d['diffData']){const _0x249a37=_0x11620d['diffData'][_0x1de572]['attachChange'],_0x50ec19=_0x27af60(_0x11620d['diffData'][_0x1de572]['attributesAfter'])||{},_0x4dd0a5=_0x147186['_makeModelFromViewString'](_0x11620d['diffData'][_0x1de572]['insertions']);_0x4dd0a5['rootName']=_0x1de572,_0x4dd0a5['_isAttached']=!_0x249a37||_0x249a37['isAttached'],_0x4dd0a5['isAttached']=()=>_0x4dd0a5['_isAttached'],this['_diffRoots']['set'](_0x1de572,_0x4dd0a5),this['_diffRootsAttributes']['set'](_0x1de572,_0x50ec19);const _0x4904a8=this['_makeIdsRoot'](_0x4dd0a5,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1de572,_0x4904a8),_0x445f1b['set'](_0x1de572,_0x4dd0a5['isAttached']()?_0x50ec19:{});for(const [_0x5c6da8,_0x5562e1]of _0x4dd0a5['markers']){if(!_0x5c6da8['startsWith']('revision:'))continue;const _0x52bc72=_0x5c6da8['split'](':')[0x2];for(const _0x2dec9a of _0x5562e1['getWalker']({'singleCharacters':!0x0})){const _0x18713b=this['_getVidAttributeName'](_0x2dec9a),_0x1b1dbd=this['_revisionId']++,_0x1ee93b='elementEnd'==_0x2dec9a['type']?_0x2dec9a['previousPosition']['path']['slice'](0x0,-0x1):_0x2dec9a['previousPosition']['path'];_0x4904a8['getNodeByPath'](_0x1ee93b)['_setAttribute'](_0x18713b,_0x1b1dbd),this['_touched']['set'](_0x1b1dbd,{'userId':_0x52bc72});}}for(const _0x2f3b55 of this['editor']['model']['createRangeIn'](_0x4dd0a5)['getWalker']({'singleCharacters':!0x0})){const _0x8f557=this['_getVidAttributeName'](_0x2f3b55),_0x49fc8d='elementEnd'==_0x2f3b55['type']?_0x2f3b55['previousPosition']['path']['slice'](0x0,-0x1):_0x2f3b55['previousPosition']['path'],_0x2a7db1=_0x4904a8['getNodeByPath'](_0x49fc8d);_0x2a7db1['getAttribute'](_0x8f557)>0x0||_0x2a7db1['_setAttribute'](_0x8f557,_0x481188[_0xa89f35++]);}for(const [_0x378346,_0x49ba34]of _0x4dd0a5['markers'])_0x378346['startsWith']('revision:')||this['_markers']['set'](_0x378346,_0x49ba34);}const _0xdb4358=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xdb4358),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xdb4358,0x1));const _0x3c8692=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3c8692),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c8692,0x1));const _0x40a80a=Array['from'](this['_diffRoots'])['map'](([_0x48b55e,_0x30e615])=>[_0x48b55e,N(_0x30e615)]);this['_saveMetaData'](this['_lastTo'],_0x40a80a,this['_markers'],_0x445f1b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x332e4b,_0x51d625,_0x20f650,_0x426f78){const _0x12a3fb=new Map(_0x51d625),_0x4be967=new Map(_0x27af60(_0x426f78)),_0x10abaa=new Map();for(const [_0x2a0600,_0x4810eb]of _0x20f650)_0x10abaa['set'](_0x2a0600,{'start':_0x4810eb['start']['clone'](),'end':_0x4810eb['end']['clone'](),'rootName':_0x4810eb['root']['rootName']});this['_savedMetaData']['set'](_0x332e4b,{'roots':_0x12a3fb,'markers':_0x10abaa,'rootsAttributes':_0x4be967});}['_removeMetaData'](_0x52f488){this['_savedMetaData']['delete'](_0x52f488);}['_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'](_0x21f0e8,_0x537446=null){let _0x3bc8b9=null;_0x21f0e8['is']('documentFragment')||(_0x3bc8b9=new ut(_0x21f0e8['name'],{'vid_start':null===_0x537446?this['_revisionId']++:_0x537446++}));const _0x50e522=[];for(const _0x51b743 of _0x21f0e8['getChildren']())if(_0x51b743['is']('element')){_0x50e522['push'](this['_makeIdsRoot'](_0x51b743,_0x537446));const _0x205b9d=_0x50e522[_0x50e522['length']-0x1];null!==_0x537446&&(_0x537446=_0x205b9d['is']('element','$text')?_0x205b9d['getAttribute']('vid')+0x1:_0x205b9d['getAttribute']('vid_end')+0x1);}else{for(let _0x24da58=0x0;_0x24da58<_0x51b743['offsetSize'];_0x24da58++)_0x50e522['push'](new ut('$text',{'vid':null===_0x537446?this['_revisionId']++:_0x537446++}));}if(_0x21f0e8['is']('documentFragment')){const _0xc371fc=P(_0x21f0e8['rootName']);return _0xc371fc['_insertChild'](0x0,_0x50e522),_0xc371fc;}return _0x3bc8b9['_setAttribute']('vid_end',null===_0x537446?this['_revisionId']++:_0x537446++),_0x3bc8b9['_insertChild'](0x0,_0x50e522),_0x3bc8b9;}['_calculateMetaData'](_0x250d03,_0x28dcd5,_0x5864cf){this['_reset']();const {roots:_0x150d66,markers:_0xdd0f4a,rootsAttributes:_0x104d79}=this['_savedMetaData']['get'](_0x250d03);this['_baseRoots']=new Map(_0x150d66),this['_baseRootsAttributes']=new Map(_0x27af60(_0x104d79));for(const [_0x26402f,_0x5b6521]of this['_baseRoots'])if('$graveyard'!==_0x26402f&&(this['_diffRoots']['set'](_0x26402f,N(_0x5b6521)),this['_diffRootsAttributes']=new Map(_0x27af60(_0x104d79)),_0x5864cf)){const _0x5e904c=this['_revisionId'];this['_idsRoots']['set'](_0x26402f,this['_makeIdsRoot'](_0x5b6521)),this['_baseIdsRoots']['set'](_0x26402f,this['_makeIdsRoot'](_0x5b6521,_0x5e904c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x5864cf&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x8810fd,_0x2bdde6]of _0xdd0f4a){const _0x4d2fef=this['_baseRoots']['get'](_0x2bdde6['rootName']),_0x57d530=this['_diffRoots']['get'](_0x2bdde6['rootName']),_0xd26278=new ft(this['_fixPosition'](_0x2bdde6['start'],_0x4d2fef),this['_fixPosition'](_0x2bdde6['end'],_0x4d2fef)),_0x652b1c=this['_fixRange'](_0xd26278,_0x57d530);_0x4d2fef['markers']['set'](_0x8810fd,_0xd26278),this['_markers']['set'](_0x8810fd,_0x652b1c);}this['_applyOperations'](_0x250d03,_0x28dcd5,_0x5864cf);}['_applyOperations'](_0x29d952,_0x270421,_0x44c0e4){for(const _0x436790 of this['source']['getOperations'](_0x29d952,_0x270421))this['_handleOperation'](_0x436790,_0x44c0e4);for(const _0x6edbc5 of this['_diffRoots']['values']())_0x6edbc5['markers']['clear']();for(const [_0x4c2a7d,_0x170ad4]of this['_markers']){this['_diffRoots']['get'](_0x170ad4['root']['rootName'])['markers']['set'](_0x4c2a7d,_0x170ad4['clone']());}const _0x4b48dc=new Map(),_0x18d5b5=new Map();for(const [_0x15f068,_0x4e15a6]of this['_diffRoots'])_0x4b48dc['set'](_0x15f068,N(_0x4e15a6)),_0x18d5b5['set'](_0x15f068,this['_diffRootsAttributes']['get'](_0x15f068));this['_saveMetaData'](_0x270421,_0x4b48dc,this['_markers'],_0x18d5b5);}['_getPreviousFrom'](_0x1b58bb){const _0x26289d=Array['from'](this['_savedMetaData']['keys']());_0x26289d['sort']((_0x3e1c2e,_0x33a6fd)=>_0x3e1c2e-_0x33a6fd),_0x26289d['reverse']();for(const _0x37a7f3 of _0x26289d)if(_0x37a7f3<_0x1b58bb)return _0x37a7f3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xf445dd,_0x312e6b){const _0x41b4e8=Array['from'](_0x312e6b['markers'])['map'](([_0x50ea2c,_0x4fd86c])=>[_0x50ea2c,this['_fixRange'](_0x4fd86c,_0xf445dd)]);_0xf445dd['markers']=new Map(_0x41b4e8);}['_transformMarkers'](_0x366d9a){for(const _0x45af68 of this['_markers']['values']()){const _0x3ae1bc=_0x45af68['getTransformedByOperation'](_0x366d9a),_0x24b2b2=ft['_createFromRanges'](_0x3ae1bc);_0x45af68['start']=_0x24b2b2['start'],_0x45af68['end']=_0x24b2b2['end'];}}['_handleOperation'](_0x4c5fb6,_0x44d408){if('addRoot'!=_0x4c5fb6['type']&&'detachRoot'!=_0x4c5fb6['type']){if('insert'==_0x4c5fb6['type']){const _0x179c24=_0x4c5fb6['position']['root']['rootName'];this['_diffRoots']['has'](_0x179c24)||(this['_diffRoots']['set'](_0x179c24,P(_0x179c24,!0x0)),this['_diffRootsAttributes']['set'](_0x179c24,{}),_0x44d408&&this['_idsRoots']['set'](_0x179c24,P(_0x179c24,!0x0)));}else{if('addRootAttribute'==_0x4c5fb6['type']||'removeRootAttribute'==_0x4c5fb6['type']||'changeRootAttribute'==_0x4c5fb6['type'])return void this['_handleRootAttributeOperation'](_0x4c5fb6);'marker'==_0x4c5fb6['type']&&this['_handleMarkerOperation'](_0x4c5fb6);}if('marker'!==_0x4c5fb6['type']){const _0x4ffa97=this['_cloneOperation'](_0x4c5fb6,this['_diffRoots']);_0x4ffa97['_execute'](),this['_transformMarkers'](_0x4ffa97);}if(_0x44d408)switch(_0x4c5fb6['type']){case'insert':this['_handleInsertOperation'](_0x4c5fb6);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4c5fb6);break;case'merge':this['_handleMergeOperation'](_0x4c5fb6);break;case'split':this['_handleSplitOperation'](_0x4c5fb6);}}else this['_handleRootOperation'](_0x4c5fb6,_0x44d408);}['_cloneOperation'](_0x43ae2c,_0x506d40){const _0x2fec8e=_0x43ae2c['clone']();return _0x2fec8e['_authorId']=_0x43ae2c['_authorId'],this['_fixOperation'](_0x2fec8e,_0x506d40),_0x2fec8e;}['_getBaseVids'](_0x9b9d0e){return _0x9b9d0e['map'](_0x264266=>{const _0x221e5a=this['_getVidAttributeName'](_0x264266);return Number(_0x264266['item']['getAttribute'](_0x221e5a));});}['_generateTape'](_0x9d8ff3,_0x17b0f4){if(_0x9d8ff3['is']('element','$text'))_0x17b0f4['push']({'item':_0x9d8ff3,'type':'text'});else{_0x9d8ff3['is']('element')&&_0x17b0f4['push']({'item':_0x9d8ff3,'type':'elementStart'});for(const _0x24f8a1 of _0x9d8ff3['getChildren']())this['_generateTape'](_0x24f8a1,_0x17b0f4);_0x9d8ff3['is']('element')&&_0x17b0f4['push']({'item':_0x9d8ff3,'type':'elementEnd'});}return _0x17b0f4;}['_getState'](){const _0x3ff60f=new Map(this['_touched']),_0x192b08=new Map(_0x3ff60f),_0x100534=new Map(),_0x451c20={'insertions':{},'deletions':{}},_0x403611={'insertions':{},'deletions':{}},_0x25625e=new Map(),_0x3b5389=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3b5389['delete']('$graveyard');for(const _0x175d32 of _0x3b5389){const _0x140435=this['_diffRoots']['get'](_0x175d32)||P(_0x175d32,!0x1),_0x34320c=this['_baseRoots']['get'](_0x175d32)||P(_0x175d32,!0x1);_0x140435['isAttached']()||_0x34320c['isAttached']()?(_0x451c20['insertions'][_0x175d32]=N(_0x140435),_0x451c20['deletions'][_0x175d32]=N(_0x34320c),this['_copyMarkers'](_0x451c20['deletions'][_0x175d32],_0x34320c),this['_copyMarkers'](_0x451c20['insertions'][_0x175d32],_0x140435),_0x403611['insertions'][_0x175d32]=this['_generateTape'](this['_idsRoots']['get'](_0x175d32),[]),_0x403611['deletions'][_0x175d32]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x175d32)||P(_0x175d32,!0x1),[])):_0x3b5389['delete'](_0x175d32);}for(const _0x4968ff of _0x3b5389){const _0x56ee45=_0x403611['insertions'][_0x4968ff];for(const _0x320586 of _0x56ee45){const _0xb09aec=this['_getVidAttributeName'](_0x320586),_0x3ccdf0=_0x320586['item']['getAttribute'](_0xb09aec);_0x192b08['delete'](_0x3ccdf0),_0x3ccdf0>=this['_startingRevisionId']&&_0x100534['set'](_0x3ccdf0,_0x3ff60f['get'](_0x3ccdf0));}}for(const _0x1fc40a of _0x3b5389){const _0x5244bc=_0x403611['insertions'][_0x1fc40a],_0x5837de=this['_getBaseVids'](_0x403611['deletions'][_0x1fc40a]);let _0x5ad44d=0x0;for(const _0x52b906 of _0x5244bc){const _0x4ce148=this['_getVidAttributeName'](_0x52b906),_0x6e8610=_0x52b906['item']['getAttribute'](_0x4ce148);if(!_0x100534['has'](_0x6e8610)&&!_0x25625e['has'](_0x6e8610)){if(_0x192b08['has'](_0x6e8610))_0x5ad44d++;else{if(_0x6e8610!=_0x5837de[_0x5ad44d]){const _0xc62abc=_0x3ff60f['get'](_0x6e8610)||_0x3ff60f['get'](_0x5837de[_0x5ad44d]);for(;_0x6e8610!=_0x5837de[_0x5ad44d];)_0x192b08['has'](_0x5837de[_0x5ad44d])||(_0x25625e['set'](_0x5837de[_0x5ad44d],_0xc62abc),_0x3ff60f['set'](_0x5837de[_0x5ad44d],_0xc62abc)),_0x5ad44d++;}_0x5ad44d++;}}}}for(const _0x51a1aa of _0x3b5389){const _0x447335=_0x403611['insertions'][_0x51a1aa];for(const _0x6229a0 of _0x447335){const _0x2bf064=this['_getVidAttributeName'](_0x6229a0),_0x46c05f=_0x6229a0['item']['getAttribute'](_0x2bf064);if(_0x25625e['has'](_0x46c05f)){const _0x2a1db5=_0x25625e['get'](_0x46c05f);_0x192b08['has'](_0x46c05f)||_0x192b08['set'](_0x46c05f,{..._0x2a1db5}),_0x100534['set'](_0x46c05f,{..._0x2a1db5});}}}for(const _0x114e7e of _0x192b08['keys']())_0x114e7e>=this['_startingRevisionId']&&_0x192b08['delete'](_0x114e7e);const _0x43e02e=new Map();for(const _0x577b89 of _0x3b5389){let _0x5dd0e2=_0x403611['insertions'][_0x577b89];for(const _0x4b39f2 of _0x5dd0e2)if(_0x4b39f2['item']['is']('element','tableCell')){const _0x52edce=this['_getVidAttributeName'](_0x4b39f2),_0x47e717=_0x4b39f2['item']['getAttribute'](_0x52edce);if(_0x100534['has'](_0x47e717)){const _0x122ac9=_0x4b39f2['item']['parent']['parent']['getAttribute']('vid_start'),_0x23ef0a=_0x43e02e['get'](_0x122ac9)||new Set();_0x23ef0a['add'](_0x100534['get'](_0x47e717)['userId']),_0x43e02e['set'](_0x122ac9,_0x23ef0a);}}_0x5dd0e2=_0x403611['deletions'][_0x577b89];for(const _0x2e6600 of _0x5dd0e2)if(_0x2e6600['item']['is']('element','tableCell')){const _0xe9d259=this['_getVidAttributeName'](_0x2e6600),_0x13c175=_0x2e6600['item']['getAttribute'](_0xe9d259);if(_0x192b08['has'](_0x13c175)){const _0x30f793=_0x2e6600['item']['parent']['parent']['getAttribute']('vid_start'),_0x238c94=_0x43e02e['get'](_0x30f793)||new Set();_0x238c94['add'](_0x192b08['get'](_0x13c175)['userId']),_0x43e02e['set'](_0x30f793,_0x238c94);}}for(const _0x444354 of _0x43e02e['keys']())(_0x100534['has'](_0x444354)||_0x192b08['has'](_0x444354))&&_0x43e02e['delete'](_0x444354);}for(const _0x18d9ae of _0x3b5389){const _0x31d5bb=_0x403611['insertions'][_0x18d9ae];let _0x20ecec=null,_0x51e550=null;for(const _0x35f722 of _0x31d5bb){const _0x159960=this['_getVidAttributeName'](_0x35f722),_0x21d94e=_0x35f722['item']['getAttribute'](_0x159960),_0x4d4f57=_0x43e02e['get'](_0x21d94e);_0x4d4f57&&'elementStart'==_0x35f722['type']&&(_0x20ecec=Array['from'](_0x4d4f57)[0x0],_0x51e550=_0x35f722['item']['getAttribute']('vid_end')),_0x20ecec&&(_0x192b08['set'](_0x21d94e,{'userId':_0x20ecec}),_0x100534['set'](_0x21d94e,{'userId':_0x20ecec})),_0x21d94e==_0x51e550&&(_0x20ecec=null,_0x51e550=null);}}const _0x3e6ecf={},_0x395b68=new Set();for(const _0x589080 of _0x3b5389){const _0x226566=_0x451c20['deletions'][_0x589080],_0x142b2d=_0x451c20['insertions'][_0x589080];for(const {userId:_0x28c717}of this['_touchedMarkers']['values']())null!==_0x28c717&&_0x395b68['add'](_0x28c717);for(const {userId:_0x29751c}of this['_touchedRoots']['values']())null!==_0x29751c&&_0x395b68['add'](_0x29751c);this['_markChanges'](_0x142b2d,_0x403611['insertions'][_0x589080],_0x100534,'insertion',_0x395b68),this['_markChanges'](_0x226566,_0x403611['deletions'][_0x589080],_0x192b08,'deletion',_0x395b68),_0x3e6ecf[_0x589080]={'insertions':this['_prepareViewToSave'](_0x142b2d),'deletions':this['_prepareViewToSave'](_0x226566),'attachChange':this['_touchedRoots']['get'](_0x589080)||null,'attributesBefore':_0x27af60(this['_baseRootsAttributes']['get'](_0x589080))||{},'attributesAfter':_0x27af60(this['_diffRootsAttributes']['get'](_0x589080))};}return{'diffData':_0x3e6ecf,'authorsIds':Array['from'](_0x395b68)};}['_processRootBeforeSave'](_0x909c64){for(const [,_0x2fcdfd]of _0x909c64['markers']){const _0xfce39a=_0x2fcdfd['start']['getAncestors']()['filter'](_0x185dc0=>'tableCell'==_0x185dc0['name']);for(const _0x5dadf7 of _0xfce39a)0x1==_0x5dadf7['childCount']&&_0x5dadf7['getChild'](0x0)['is']('element','paragraph')&&_0x5dadf7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x458978){this['_processRootBeforeSave'](_0x458978);const _0x21f2b3=this['editor']['data']['toView'](_0x458978,{}),_0x5c21e7=Array['from'](_0x21f2b3['getChildren']())['map'](_0x5dd80c=>this['_getViewJson'](_0x5dd80c));return JSON['stringify'](_0x5c21e7);}['_getViewJson'](_0x53c3f3){if(_0x53c3f3['is']('$text'))return _0x53c3f3['data'];{const _0x354963=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2cb86f=_0x53c3f3,_0x5550bb=this['editor']['data']['htmlProcessor']['domConverter'],_0x424422={'type':_0x354963['_getTypeCharForViewElement'](_0x2cb86f),'name':_0x2cb86f['name'],'attributes':Array['from'](_0x2cb86f['getAttributes']()),'children':Array['from'](_0x2cb86f['getChildren']())['map'](_0x50add5=>this['_getViewJson'](_0x50add5))};if(_0x53c3f3['is']('uiElement')&&'$comment'!=_0x53c3f3['name']){const _0x597df2=_0x53c3f3['render'](_0x5550bb['domDocument'],_0x5550bb);_0x424422['children']['push'](_0x597df2['outerHTML']);}else{if(_0x53c3f3['is']('rawElement')){const _0xd6c5cf=_0x5550bb['domDocument']['createElement'](_0x2cb86f['name']);_0x53c3f3['render'](_0xd6c5cf,_0x5550bb),_0x424422['children']['push'](_0xd6c5cf['innerHTML']);}}const _0x336286=Array['from'](_0x2cb86f['getCustomProperties']());_0x336286['length']>0x0&&(_0x424422['customProperties']=_0x336286);const _0x337a44=_0x2cb86f['getFillerOffset']();return null!==_0x337a44&&(_0x424422['fillerOffset']=_0x337a44),_0x424422;}}['_markChanges'](_0x362b38,_0x59a5c4,_0x5bcabe,_0x4877da,_0x2ef396){let _0x1082cd=null,_0x4907b6=null,_0x161de4=0x0;const _0x1788da=this['editor']['model'];for(let _0x1598af=0x0;_0x1598af<_0x59a5c4['length'];_0x1598af++){const _0x119a34=this['_getVidAttributeName'](_0x59a5c4[_0x1598af]),_0x423d70=_0x59a5c4[_0x1598af]['item']['getAttribute'](_0x119a34),_0x17eb80=_0x5bcabe['get'](_0x423d70),_0x5ac2da=_0x1598af==_0x59a5c4['length']-0x1;(!_0x1082cd&&_0x17eb80&&(_0x1082cd=_0x17eb80,_0x4907b6=_0x59a5c4[_0x1598af]),_0x1082cd&&(!_0x17eb80||_0x17eb80['userId']!=_0x1082cd['userId']))&&(_0x46fcea(_0x17eb80,F(_0x4907b6,_0x362b38,_0x1788da),F(_0x59a5c4[_0x1598af],_0x362b38,_0x1788da)),_0x1082cd=_0x17eb80||null,_0x4907b6=_0x17eb80?_0x59a5c4[_0x1598af]:null),_0x1082cd&&_0x5ac2da&&_0x46fcea(_0x17eb80,F(_0x4907b6,_0x362b38,_0x1788da),B(_0x59a5c4[_0x1598af],_0x362b38,_0x1788da));}function _0x46fcea(_0x19cacc,_0x369a9c,_0x5253fa){const _0x14285c=_0x1082cd['userId'],_0x5b976b='revision:'+_0x4877da+':'+_0x14285c+':'+_0x161de4++,_0x110c68=_0x1788da['createRange'](_0x369a9c,_0x5253fa);_0x362b38['markers']['set'](_0x5b976b,_0x110c68),null!==_0x14285c&&_0x2ef396['add'](_0x14285c);}}['_getVidAttributeName'](_0x9f5b4b){switch(_0x9f5b4b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5e1bd6,_0x4b4dbb){_0x5e1bd6['baseVersion']=null;for(const _0x5916eb in _0x5e1bd6){const _0x16cd27=_0x5e1bd6[_0x5916eb];if(_0x16cd27 instanceof vt){const _0x81c008=_0x4b4dbb['get'](_0x16cd27['root']['rootName']);_0x5e1bd6[_0x5916eb]=this['_fixPosition'](_0x16cd27,_0x81c008);}if(_0x16cd27 instanceof ft){const _0x103656=_0x4b4dbb['get'](_0x16cd27['root']['rootName']);_0x5e1bd6[_0x5916eb]=this['_fixRange'](_0x16cd27,_0x103656);}'root'===_0x5916eb&&(_0x5e1bd6['root']=_0x4b4dbb['get'](_0x5e1bd6['root']['rootName']));}}['_fixRange'](_0x5359b6,_0x58974f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5359b6['start'],_0x58974f),this['_fixPosition'](_0x5359b6['end'],_0x58974f));}['_fixPosition'](_0x1abbf0,_0x42772a){return this['editor']['model']['createPositionFromPath'](_0x42772a,_0x1abbf0['path'],_0x1abbf0['stickiness']);}['_handleInsertOperation'](_0x4e3d38){const _0x58a2c7=this['_idsRoots']['get'](_0x4e3d38['position']['root']['rootName']),_0x17cdef=this['_fixPosition'](_0x4e3d38['position'],_0x58a2c7),_0x96fd36=null===_0x4e3d38['_authorId']?null:_0x4e3d38['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3654ec=_0x17cdef['parent'],_0x11d360=this['_revisionId'],_0x2c9848=[];for(const _0x31157b of _0x4e3d38['nodes'])if(_0x31157b['is']('element'))_0x2c9848['push'](this['_makeIdsRoot'](_0x31157b));else{for(let _0x541385=0x0;_0x541385<_0x31157b['offsetSize'];_0x541385++)_0x2c9848['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1f841e=this['_revisionId'];for(let _0x1f34a4=_0x11d360;_0x1f34a4<_0x1f841e;_0x1f34a4++)this['_touched']['set'](_0x1f34a4,{'userId':_0x96fd36});_0x3654ec['_insertChild'](_0x17cdef['offset'],_0x2c9848);}['_handleMoveOperation'](_0x46e345){(_0x46e345=this['_cloneOperation'](_0x46e345,this['_idsRoots']))['_execute']();const _0x4ba5a1=null===_0x46e345['_authorId']?null:_0x46e345['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x496380=_0x46e345['getMovedRangeStart'](),_0x41767c=_0x496380['parent'],_0x59e8f5=_0x496380['offset'];!function _0xbd47e4(_0x2f2bd8,_0x3f4ee3,_0x365009,_0x34b14c){for(let _0x108723=_0x365009;_0x108723<_0x34b14c;_0x108723++){const _0x368418=_0x3f4ee3['getChild'](_0x108723);_0x368418['is']('element','$text')?_0x2f2bd8['set'](_0x368418['getAttribute']('vid'),{'userId':_0x4ba5a1}):(_0x2f2bd8['set'](_0x368418['getAttribute']('vid_start'),{'userId':_0x4ba5a1}),_0xbd47e4(_0x2f2bd8,_0x368418,0x0,_0x368418['childCount']),_0x2f2bd8['set'](_0x368418['getAttribute']('vid_end'),{'userId':_0x4ba5a1}));}}(this['_touched'],_0x41767c,_0x59e8f5,_0x59e8f5+_0x46e345['howMany']);}['_handleMergeOperation'](_0x304c18){const _0x1d1f4a=null===(_0x304c18=this['_cloneOperation'](_0x304c18,this['_idsRoots']))['_authorId']?null:_0x304c18['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5bbfd9=_0x304c18['targetPosition']['parent'],_0x2ce657=_0x304c18['sourcePosition']['parent'],_0x4e0cbe=_0x5bbfd9['getAttribute']('vid_end'),_0x24a720=_0x2ce657['getAttribute']('vid_start');_0x5bbfd9['_setAttribute']('vid_end',_0x2ce657['getAttribute']('vid_end')),_0x2ce657['_setAttribute']('vid_end',_0x4e0cbe),this['_touched']['set'](_0x24a720,{'userId':_0x1d1f4a}),this['_touched']['set'](_0x4e0cbe,{'userId':_0x1d1f4a}),_0x304c18['_execute']();}['_handleSplitOperation'](_0xfc8ee4){const _0x4d5c40=null===(_0xfc8ee4=this['_cloneOperation'](_0xfc8ee4,this['_idsRoots']))['_authorId']?null:_0xfc8ee4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ab03f=_0xfc8ee4['graveyardPosition'],_0xa4634d=_0xfc8ee4['splitPosition']['parent'];_0xfc8ee4['_execute']();const _0x190332=_0xa4634d['getAttribute']('vid_end'),_0x5c5929=_0xfc8ee4['insertionPosition']['nodeAfter'];if(_0x4ab03f){const _0x1f4112=_0x5c5929['getAttribute']('vid_end'),_0x16addf=_0xa4634d['getAttribute']('vid_end');_0xa4634d['_setAttribute']('vid_end',_0x1f4112),_0x5c5929['_setAttribute']('vid_end',_0x16addf),this['_touched']['set'](_0xa4634d['getAttribute']('vid_end'),{'userId':_0x4d5c40}),this['_touched']['set'](_0x5c5929['getAttribute']('vid_start'),{'userId':_0x4d5c40});}else{const _0x1f859b=this['_revisionId']++,_0xab070e=this['_revisionId']++;_0xa4634d['_setAttribute']('vid_end',_0x1f859b),_0x5c5929['_setAttribute']('vid_start',_0xab070e),_0x5c5929['_setAttribute']('vid_end',_0x190332),this['_touched']['set'](_0x1f859b,{'userId':_0x4d5c40}),this['_touched']['set'](_0xab070e,{'userId':_0x4d5c40});}}['_handleMarkerOperation'](_0x408f9b){if(!_0x408f9b['affectsData'])return;const _0x406066=(_0x408f9b=this['_cloneOperation'](_0x408f9b,this['_diffRoots']))['oldRange']?_0x408f9b['oldRange']['root']:null,_0x47be46=_0x408f9b['newRange']?_0x408f9b['newRange']['root']:null;_0x406066&&this['_markers']['delete'](_0x408f9b['name']),_0x47be46&&this['_markers']['set'](_0x408f9b['name'],_0x408f9b['newRange']['clone']());const _0x51f373=null===_0x408f9b['_authorId']?null:_0x408f9b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb47b26=_0x408f9b['name'];if(!this['_touchedMarkers']['has'](_0xb47b26))return void this['_touchedMarkers']['set'](_0xb47b26,{'range':_0x408f9b['oldRange'],'userId':_0x51f373});const _0x22ba11=this['_touchedMarkers']['get'](_0xb47b26),_0x150bf7=_0x22ba11['range'],_0x36e8b7=_0x408f9b['newRange'];null==_0x150bf7&&null==_0x36e8b7||_0x150bf7&&_0x36e8b7&&_0x150bf7['isEqual'](_0x36e8b7)?this['_touchedMarkers']['delete'](_0x408f9b['name']):_0x22ba11['userId']=_0x51f373;}['_handleRootOperation'](_0x32c4a6,_0x21b1b6){this['_diffRoots']['has'](_0x32c4a6['rootName'])?this['_diffRoots']['get'](_0x32c4a6['rootName'])['_isAttached']=_0x32c4a6['isAdd']:(this['_diffRoots']['set'](_0x32c4a6['rootName'],P(_0x32c4a6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x32c4a6['rootName'],{}),_0x21b1b6&&this['_idsRoots']['set'](_0x32c4a6['rootName'],P(_0x32c4a6['rootName'],!0x0)));const _0x5bf879=null===_0x32c4a6['_authorId']?null:_0x32c4a6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x558fa1=this['_touchedRoots']['get'](_0x32c4a6['rootName']);_0x558fa1&&_0x558fa1['userId']===_0x5bf879?this['_touchedRoots']['delete'](_0x32c4a6['rootName']):this['_touchedRoots']['set'](_0x32c4a6['rootName'],{'userId':_0x5bf879,'isAttached':_0x32c4a6['isAdd']});}['_handleRootAttributeOperation'](_0x1b723c){const _0xd9c5b0=this['_diffRootsAttributes']['get'](_0x1b723c['root']['rootName']);null===_0x1b723c['newValue']?delete _0xd9c5b0[_0x1b723c['key']]:_0xd9c5b0[_0x1b723c['key']]=_0x1b723c['newValue'];}}function N(_0x50c31f){const _0x197464=P(_0x50c31f['rootName'],_0x50c31f['isAttached']());for(const _0x322418 of _0x50c31f['getChildren']()){const _0x4900f3=_0x322418['_clone'](!0x0);_0x197464['_appendChild'](_0x4900f3);}return _0x197464;}function P(_0xe5f0ce,_0x3bd9a8=!0x0){const _0x1dc95a=new gt();return _0x1dc95a['rootName']=_0xe5f0ce,_0x1dc95a['_isAttached']=_0x3bd9a8,_0x1dc95a['isAttached']=()=>_0x1dc95a['_isAttached'],_0x1dc95a;}function F(_0x59c7f7,_0xe6e3db,_0x550fd7){const _0x52b842='elementEnd'==_0x59c7f7['type']?_0x550fd7['createPositionAt'](_0x59c7f7['item'],'end'):_0x550fd7['createPositionBefore'](_0x59c7f7['item']);return _0x550fd7['createPositionFromPath'](_0xe6e3db,_0x52b842['path'],_0x52b842['stickiness']);}function B(_0x2d17fb,_0x58a844,_0xcedb77){const _0x2dba8c='elementStart'==_0x2d17fb['type']?_0xcedb77['createPositionAt'](_0x2d17fb['item'],0x0):_0xcedb77['createPositionAfter'](_0x2d17fb['item']);return _0xcedb77['createPositionFromPath'](_0x58a844,_0x2dba8c['path'],_0x2dba8c['stickiness']);}class os extends _0x4ce9da{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x400688,_0x487baf){super(_0x400688),this['focusTracker']=new _0x3b9032(),this['keystrokes']=new _0x41e372(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x487baf),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x4ee0b1({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x462cdb=_0x4e7d1c=>_0x4e7d1c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x462cdb),this['keystrokes']['set']('arrowleft',_0x462cdb),this['keystrokes']['set']('arrowup',_0x462cdb),this['keystrokes']['set']('arrowdown',_0x462cdb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1cc731){this['revisionNameInputView']['fieldView']['element']['value']=_0x1cc731['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5cd3e9){const _0x77cc4c=new nt(this['locale'],ti),_0x3d2e78=_0x77cc4c['fieldView'];_0x3d2e78['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x35862d=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5cd3e9&&(_0x35862d+='\x20('+g(this['locale'],'optional')+')'),(_0x77cc4c['label']=_0x35862d,_0x3d2e78['on']('input',()=>{this['revisionNameInputValue']=_0x3d2e78['element']['value']['trim']();}),_0x77cc4c);}}class f extends _0x21e419{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x452a9d=this['editor'],_0xd00359=_0x452a9d['plugins']['get']('RevisionTracker');_0x452a9d['ui']['componentFactory']['add']('revisionHistory',_0x336c15=>{const _0x2e76eb=_0x1ad742(_0x336c15),_0x4b1234=_0x2e76eb['panelView']['children'],_0x2265e6=new _0x5ae3c8(_0x336c15),_0x1d128b=new te(_0x336c15),_0x2797b5=new _0x4448cb(_0x336c15),_0x48db02=new te(_0x336c15),_0x4293ac=new _0x4448cb(_0x336c15);return _0x2e76eb['bind']('isEnabled')['to'](_0xd00359,'isReady',_0xd00359,'isEnabled',_0x452a9d,'isReadOnly',(_0x2467ae,_0xa8a536,_0x5e52d3)=>_0x2467ae&&_0xa8a536&&!_0x5e52d3),_0x2e76eb['buttonView']['set']({'icon':_0x29f79f,'label':g(_0x336c15,'Revision\x20history'),'tooltip':!0x0}),_0x2797b5['set']({'label':g(_0x336c15,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2797b5['bind']('isEnabled')['to'](_0xd00359,'isReady',_0xd00359,'isEnabled',_0x452a9d,'isReadOnly',(_0x4ee730,_0x122990,_0x2bf8dd)=>_0x4ee730&&_0x122990&&!_0x2bf8dd),_0x2797b5['on']('execute',()=>this['_showDialog']()),_0x4293ac['set']({'label':g(_0x336c15,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4293ac['bind']('isEnabled')['to'](_0xd00359,'isReady',_0x452a9d,'isReadOnly',(_0x4a39bd,_0x63cb9d)=>_0x4a39bd&&!_0x63cb9d),_0x4293ac['on']('execute',()=>{_0x452a9d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2e76eb['isOpen']=!0x1,_0x452a9d['editing']['view']['focus']();}),_0x1d128b['children']['add'](_0x2797b5),_0x48db02['children']['add'](_0x4293ac),_0x2265e6['role']='menu',_0x2265e6['items']['addMany']([_0x1d128b,_0x48db02]),_0x4b1234['add'](_0x2265e6),_0x2e76eb;}),_0x452a9d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x546a37=this['editor'],_0x583e3a=_0x546a37['locale'],_0x18d731=new _0x1a973d(_0x583e3a),_0x36915f=new _0x25669f(_0x583e3a);_0x18d731['buttonView']['set']({'icon':_0x29f79f,'label':g(_0x583e3a,'Revision\x20history')});const _0x511e0b=new _0x51e070(_0x583e3a,_0x18d731),_0x530e2a=new _0x1d25ba(_0x583e3a);_0x530e2a['set']({'label':g(_0x583e3a,'Save\x20current\x20revision')}),_0x530e2a['delegate']('execute')['to'](_0x18d731),_0x530e2a['on']('execute',()=>{this['_showDialog']();}),_0x511e0b['children']['add'](_0x530e2a),_0x36915f['items']['add'](_0x511e0b);const _0x1f2c33=new _0x51e070(_0x583e3a,_0x18d731),_0x45589b=new _0x1d25ba(_0x583e3a);return _0x45589b['set']({'label':g(_0x583e3a,'Open\x20revision\x20history')}),_0x45589b['delegate']('execute')['to'](_0x18d731),_0x45589b['on']('execute',()=>{_0x546a37['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1f2c33['children']['add'](_0x45589b),_0x36915f['items']['add'](_0x1f2c33),_0x18d731['panelView']['children']['add'](_0x36915f),_0x18d731;}['_showDialog'](){const _0x517ee7=this['editor'],_0x3d27fd=_0x517ee7['locale'],_0x1d23fe=_0x517ee7['plugins']['get']('Dialog'),_0x1faf71=_0x517ee7['plugins']['get']('RevisionTracker');function _0x46c6a1(_0x3e8f6d){_0x517ee7['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3e8f6d['revisionName']?_0x3e8f6d['revisionNameInputView']['errorText']=g(_0x3d27fd,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x517ee7['plugins']['get'](u)['saveRevision']({'name':_0x3e8f6d['revisionName']}),_0x1d23fe['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x46c6a1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1d23fe['show']({'id':'revisionSave','title':g(_0x3d27fd,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x517ee7['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1d23fe['hide']()},{'label':g(_0x517ee7['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x522db5){_0x522db5['bind']('isEnabled')['to'](_0x1faf71,'isReady',_0x1faf71,'isEnabled',_0x517ee7,'isReadOnly',(_0x11c864,_0x549066,_0x416f97)=>_0x11c864&&_0x549066&&!_0x416f97);},'onExecute':()=>_0x46c6a1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1fb7f3=this['editor'],_0x687736=_0x1fb7f3['locale'];this['_saveRevisionFormView']=new os(_0x687736,_0x1fb7f3['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x4ce9da{['changeId'];['_model'];constructor(_0x18268a,_0x2436dd){super(_0x18268a),this['_model']=_0x2436dd,this['changeId']=_0x2436dd['id'];const _0x15b06d=this['bindTemplate'],_0x178fd7=g(_0x18268a,_0x2436dd['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2436dd['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2436dd['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x15b06d['to']('type',_0x1b25fd=>'ck-revision-change__'+_0x1b25fd)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x178fd7}]},{'text':'\x20'+_0x2436dd['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4f88f4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x53c608){super(),this['id']=_0x53c608['id']||_0x1d84e2(),this['author']=_0x53c608['author'],this['type']=_0x53c608['type'],this['data']=_0x53c608['data']||{},this['rootName']=_0x53c608['rootName'],this['set']('createdAt',_0x53c608['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x579846,_0x5614f1){this['newRevisionId']=_0x579846,this['oldRevisionId']=_0x5614f1,this['changes']=new _0x2fd429();}['_setChanges'](_0x42ce13){for(const _0x11621a of _0x42ce13)this['changes']['add'](_0x11621a);}}class m extends _0x21e419{['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[_0x503f1b,_0x43a709,I,V];}constructor(_0x2e3409){super(_0x2e3409),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',(_0x17448a,_0x3b013f,_0x250eff)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x55fe67=>{for(const _0xe24d0e of this['editor']['editing']['view']['document']['roots'])_0x250eff?_0x55fe67['removeClass']('ck-editor__editable__overlay',_0xe24d0e):_0x55fe67['addClass']('ck-editor__editable__overlay',_0xe24d0e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x424cbd=>null!==_0x424cbd),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x591103,_0x5c2c62,_0xd62387)=>_0x591103&&_0xd62387?_0x5c2c62['changes']['getIndex'](_0xd62387):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x369b1d,_0x25fca5)=>_0x369b1d?_0x25fca5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x43a709);}['init'](){const _0x5b0e6e=this['editor'],_0x1d2740=new pt(_0x5b0e6e,{'direction':'backward'}),_0x4ee045=new pt(_0x5b0e6e,{'direction':'forward'});(_0x5b0e6e['commands']['add']('showPreviousChange',_0x1d2740),_0x5b0e6e['commands']['add']('showNextChange',_0x4ee045),_0x5b0e6e['commands']['add']('restoreRevision',new wt(_0x5b0e6e)),this['on']('change:numberOfChanges',()=>{_0x1d2740['refresh'](),_0x4ee045['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b0e6e['enableReadOnlyMode']('revision-viewer'),_0x5b0e6e['plugins']['has']('WidgetToolbarRepository'))&&_0x5b0e6e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x50e2e3){return await this['_utils']['loadRevisionData'](_0x50e2e3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x50e2e3);}async['getRevisionRootsAttributes'](_0x1bc8f9){return await this['_utils']['loadRevisionData'](_0x1bc8f9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1bc8f9);}async['compare'](_0x28239e,_0x1c49e3,_0xdfb2c5=!0x1){if(!this['isEnabled'])return;const _0x63d62c=this['diff'],_0x2eb4f0=this['repository'],_0x258eb0='string'==typeof _0x28239e?_0x2eb4f0['getRevision'](_0x28239e):_0x28239e,_0x21f4fe='string'==typeof _0x1c49e3?_0x2eb4f0['getRevision'](_0x1c49e3):_0x1c49e3,_0x5134b2=_0x258eb0['id'],_0x9951b1=_0x21f4fe?_0x21f4fe['id']:null;if(!_0xdfb2c5&&this['diff']&&this['diff']['newRevisionId']===_0x5134b2&&this['diff']['oldRevisionId']===_0x9951b1)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5134b2,_0x9951b1);const _0x5911f4=this['_getRevisionsRange'](_0x258eb0,_0x21f4fe,!0x0)['map'](_0xcd2075=>this['_utils']['loadRevisionData'](_0xcd2075,this['adapter']));return _0x5911f4['push'](new Promise(_0x5da770=>{setTimeout(_0x5da770,0x14);})),Promise['all'](_0x5911f4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1da928=this['_getDiff'](_0x5134b2,_0x9951b1);for(const _0x42b6fa of _0x1da928['changes'])this['_changeIdToChange']['set'](_0x42b6fa['id'],_0x42b6fa);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x296319=>{for(const _0x1a7c84 of this['editor']['model']['document']['getRootNames']())_0x296319['detachRoot'](_0x1a7c84);for(const _0xd3e9a3 of Object['keys'](_0x1da928['model'])){const _0x4b06cc=_0x296319['addRoot'](_0xd3e9a3);for(const _0x264a50 of Object['keys'](_0x1da928['attributes'][_0xd3e9a3]))_0x296319['setAttribute'](_0x264a50,_0x1da928['attributes'][_0xd3e9a3][_0x264a50],_0x4b06cc);_0x296319['insert'](_0x1da928['model'][_0xd3e9a3],_0x4b06cc,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1da928['changes'])),this['isReady']=!0x0;})['catch'](_0x257ef1=>{console['error'](_0x257ef1),this['_cleanUp'](),_0x63d62c&&(this['diff']=_0x63d62c),this['isReady']=!0x0;});}['addRevisionData'](_0x4e9afa,_0x5975f3){const _0x440b91=this['repository']['createRevision'](_0x4e9afa);return _0x440b91['on']('_update',(_0x29819e,_0x95f1a8,_0xe45f97)=>_0x5975f3(_0x95f1a8,_0xe45f97,_0x440b91)),this['repository']['addRevision'](_0x440b91),_0x440b91;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x23aed1=>{for(const _0x283fcd of this['editor']['model']['document']['getRootNames']())_0x23aed1['detachRoot'](_0x283fcd);});}['_sortAndFilterDiffChanges'](_0x55f27e){const _0x503437=[],_0x3a19ab=new Map();for(const _0x43ee27 of this['editor']['model']['document']['getRootNames']()){const _0x16f710=this['editor']['editing']['view']['getDomRoot'](_0x43ee27);if(!_0x16f710)continue;const _0x1dff2d=_0x16f710['getClientRects']()['item'](0x0);_0x1dff2d&&(_0x503437['push'](_0x43ee27),_0x3a19ab['set'](_0x43ee27,_0x1dff2d));}return _0x503437['sort']((_0x27c048,_0x3fe25d)=>{const _0x32baae=_0x3a19ab['get'](_0x27c048),_0x19caaf=_0x3a19ab['get'](_0x3fe25d);return _0x32baae['y']-_0x19caaf['y']||_0x32baae['x']-_0x19caaf['x'];}),(_0x55f27e=_0x55f27e['filter'](_0xd7f0fc=>_0x503437['includes'](_0xd7f0fc['rootName'])))['sort']((_0x2d5b87,_0x412bb6)=>_0x503437['indexOf'](_0x2d5b87['rootName'])-_0x503437['indexOf'](_0x412bb6['rootName'])),_0x55f27e;}['_makeTape'](_0x3690f1){const _0x59f05e=Array['from'](_0x3690f1['markers'])['filter'](([_0x1d7c7c,_0x3e39cb])=>_0x1d7c7c['startsWith']('revision:')&&!_0x3e39cb['isCollapsed']),_0x52904e=Array['from'](this['editor']['model']['createRangeIn'](_0x3690f1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x59f05e['length'])for(const _0x625e8e of _0x52904e){const [_0x3ad2e3,_0x66be50]=_0x59f05e[0x0],[,_0x38cd0e,_0x1b6461]=_0x3ad2e3['split'](':');if(_0x66be50['end']['isEqual'](_0x625e8e['nextPosition'])&&_0x59f05e['shift'](),(_0x625e8e['previousPosition']['isEqual'](_0x66be50['start'])||_0x625e8e['previousPosition']['isAfter'](_0x66be50['start']))&&('insertion'==_0x38cd0e?_0x625e8e['isAdded']={'userId':_0x1b6461}:'deletion'==_0x38cd0e&&(_0x625e8e['isRemoved']={'userId':_0x1b6461})),0x0==_0x59f05e['length'])break;}return _0x52904e;}['_refreshStartEndIndex'](_0x1d4497){const _0x27a2c3=new Map();for(let _0x3af691=0x0;_0x3af691<_0x1d4497['length'];_0x3af691++)'text'===_0x1d4497[_0x3af691]['type']?(_0x1d4497[_0x3af691]['item']['startIndex']=_0x3af691,_0x1d4497[_0x3af691]['item']['endIndex']=_0x3af691):('elementStart'===_0x1d4497[_0x3af691]['type']?_0x1d4497[_0x3af691]['item']['startIndex']=_0x3af691:'elementEnd'===_0x1d4497[_0x3af691]['type']&&(_0x1d4497[_0x3af691]['item']['endIndex']=_0x3af691),_0x27a2c3['set'](_0x1d4497[_0x3af691]['id'],_0x3af691));for(const _0x1d4756 of _0x27a2c3['values']())'elementStart'===_0x1d4497[_0x1d4756]['type']?_0x1d4497[_0x1d4756]['item']['endIndex']=_0x27a2c3['get'](_0x1d4497[_0x1d4756]['pairId']):'elementEnd'===_0x1d4497[_0x1d4756]['type']&&(_0x1d4497[_0x1d4756]['item']['startIndex']=_0x27a2c3['get'](_0x1d4497[_0x1d4756]['pairId']));}['_processTape'](_0x468208){for(let _0x31c4f0=0x0;_0x31c4f0<_0x468208['length'];_0x31c4f0++){if('elementStart'===_0x468208[_0x31c4f0]['type'])_0x468208[_0x31c4f0]['item']['startIndex']=_0x31c4f0;else{if('elementEnd'===_0x468208[_0x31c4f0]['type']){_0x468208[_0x31c4f0]['item']['endIndex']=_0x31c4f0;const _0x592a9e=_0x468208[_0x31c4f0]['item']['startIndex'];_0x468208[_0x592a9e]['pairId']=_0x468208[_0x31c4f0]['id'],_0x468208[_0x31c4f0]['pairId']=_0x468208[_0x592a9e]['id'];}else _0x468208[_0x31c4f0]['item']['startIndex']=_0x31c4f0,_0x468208[_0x31c4f0]['item']['endIndex']=_0x31c4f0,_0x468208[_0x31c4f0]['pairId']=null;}_0x468208[_0x31c4f0]['markersStart']||(_0x468208[_0x31c4f0]['markersStart']=[],_0x468208[_0x31c4f0]['markersEnd']=[]);}}['_markInsertions'](_0x89bfe7,_0x37978a){const _0x2c6fc1=_0x89bfe7['filter'](_0x171793=>!_0x171793['isAdded']);for(let _0x5ebdf4=0x0;_0x5ebdf4<_0x37978a['length'];_0x5ebdf4++)_0x37978a[_0x5ebdf4]['isAdded']&&(_0x2c6fc1[_0x5ebdf4]['isAdded']=_0x37978a[_0x5ebdf4]['isAdded']);}['_getDiff'](_0x47e961,_0x3cc912=null){const _0x5a9d35=this['repository']['getRevision'](_0x47e961),_0x5cfb5b=_0x3cc912?this['repository']['getRevision'](_0x3cc912):null,_0x6a46b0=this['_getRevisionsRange'](_0x5a9d35,_0x5cfb5b),_0x1b52b7=_0x6a46b0[_0x6a46b0['length']-0x1],_0x485c8a=new Map(),_0x2deabc={'model':{},'attributes':{},'changes':[]},_0xdef965=new Set(),_0x256c0d=new Map();for(let _0x23f757=_0x6a46b0['length']-0x1;_0x23f757>=0x0;_0x23f757--){const _0x45e079=_0x6a46b0[_0x23f757];for(const _0x1f4f5e of Object['keys'](_0x45e079['diffData']))if(_0x45e079['diffData'][_0x1f4f5e]['attachChange']){const _0x536ced=_0x45e079['diffData'][_0x1f4f5e]['attachChange'];_0x536ced['isAttached']?(_0xdef965['add'](_0x1f4f5e),_0x256c0d['has'](_0x1f4f5e)&&_0x256c0d['get'](_0x1f4f5e)['userId']==_0x536ced['userId']?_0x256c0d['delete'](_0x1f4f5e):_0x256c0d['set'](_0x1f4f5e,_0x536ced)):_0x256c0d['has'](_0x1f4f5e)?(_0xdef965['delete'](_0x1f4f5e),_0x256c0d['delete'](_0x1f4f5e)):(_0xdef965['add'](_0x1f4f5e),_0x256c0d['set'](_0x1f4f5e,_0x536ced));}else _0xdef965['add'](_0x1f4f5e);}for(const _0x4a9be9 of _0xdef965){const _0x2b7f10=_0x256c0d['has'](_0x4a9be9)&&!_0x256c0d['get'](_0x4a9be9)['isAttached'];let _0x5b6540=_0x2b7f10?_0x6a46b0['length']-0x1:0x0;const _0x525890=_0x2b7f10?-0x1:0x1;for(;_0x6a46b0[_0x5b6540];){const _0x383af6=_0x6a46b0[_0x5b6540];if(_0x383af6['diffData'][_0x4a9be9]){const _0x5829d3=_0x2b7f10?_0x383af6['diffData'][_0x4a9be9]['attributesBefore']:_0x383af6['diffData'][_0x4a9be9]['attributesAfter'];_0x2deabc['attributes'][_0x4a9be9]=_0x5829d3?_0x27af60(_0x5829d3):{};break;}_0x5b6540+=_0x525890;}}for(const _0x20bc57 of _0x6a46b0){_0x20bc57['model']={};for(const _0x1d65e7 of _0x20bc57['authors'])_0x485c8a['set'](_0x1d65e7['id'],_0x1d65e7);for(const _0x155065 of _0xdef965){const _0xaa49ee=_0x20bc57['diffData'][_0x155065]?_0x20bc57['diffData'][_0x155065]['insertions']:'[]',_0x2c108c=_0x20bc57['diffData'][_0x155065]?_0x20bc57['diffData'][_0x155065]['deletions']:'[]';_0x20bc57['model'][_0x155065]={'insertions':this['_utils']['_makeModelFromViewString'](_0xaa49ee),'deletions':this['_utils']['_makeModelFromViewString'](_0x2c108c)};}}for(const _0x442050 of _0xdef965){let _0x325f3f=null,_0x79d521=0x0;const _0x262c26=new Map(Array['from'](_0x5a9d35['model'][_0x442050]['insertions']['markers'])['filter'](([_0x188517])=>!_0x188517['startsWith']('revision:')));let _0x4ed725=0x0;for(const _0x545515 of _0x6a46b0){const _0x5afb67=this['_makeTape'](_0x545515['model'][_0x442050]['insertions']);_0x545515==_0x5a9d35?(_0x325f3f=_0x5afb67,_0x79d521=_0x325f3f['length'],_0x325f3f['forEach'](_0x3de79d=>{_0x3de79d['id']=_0x4ed725++;}),this['_processTape'](_0x325f3f)):this['_markInsertions'](_0x325f3f,_0x5afb67);const _0x44b2b4=_0x325f3f['filter'](_0x34e7ed=>!_0x34e7ed['isAdded'])['map'](_0x55077e=>_0x55077e['id']);let _0xbd1963=0x0;const _0x2c2678=this['_makeTape'](_0x545515['model'][_0x442050]['deletions']);_0x2c2678['forEach'](_0x1d8878=>{_0x1d8878['isRemoved']?_0x1d8878['id']=_0x79d521++:_0x1d8878['id']=_0x44b2b4[_0xbd1963++];}),this['_processTape'](_0x2c2678),this['_setDistance'](_0x325f3f,'isAdded'),this['_setDistance'](_0x2c2678,'isRemoved'),_0x545515==_0x5a9d35&&this['_markMarkers'](_0x325f3f,_0x262c26),_0x325f3f=this['_joinTapes'](_0x325f3f,_0x2c2678),this['_refreshStartEndIndex'](_0x325f3f),this['_setDistance'](_0x325f3f,'isRemoved');}_0x325f3f=_0x325f3f['filter'](_0x5f49f8=>!(_0x5f49f8['isAdded']&&_0x5f49f8['isRemoved']));const _0x1018c6=new Map(_0x1b52b7['model'][_0x442050]['deletions']['markers']),_0xad19cb=new Set(_0x262c26['keys']());for(const _0x4162b9 of _0x1018c6['keys']())_0xad19cb['delete'](_0x4162b9);this['_markSuggestions'](_0x325f3f,_0xad19cb),this['_fixObsoleteTags'](_0x325f3f),_0x325f3f=this['_removeMissingPairs'](_0x325f3f),_0x325f3f=this['_markMismatchedRemovedTags'](_0x325f3f),_0x325f3f=this['_removeUnsupportedChanges'](_0x325f3f);const {root:_0x3cb930,changes:_0x48fe16}=this['_makeModelFromTape'](_0x325f3f,_0x485c8a,_0x442050);_0x2deabc['model'][_0x442050]=_0x3cb930;const _0x50f365=_0x256c0d['get'](_0x442050);if(_0x50f365){const _0x59a875=_0x485c8a['get'](_0x50f365['userId']),_0x520caa=new r({'author':_0x59a875,'type':_0x50f365['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x442050});_0x48fe16['unshift'](_0x520caa),_0x2deabc['attributes'][_0x442050]['revisionHistoryAttachChange']=_0x520caa['id'];}_0x2deabc['changes']=_0x2deabc['changes']['concat'](_0x48fe16);}return _0x2deabc;}['_markMarkers'](_0x5b3a0a,_0x385073){for(let _0x3ccdcf=0x0;_0x3ccdcf<_0x5b3a0a['length'];_0x3ccdcf++)for(const [_0x3409e9,_0x17db19]of _0x385073)!_0x17db19['isCollapsed']&&_0x17db19['start']['isEqual'](_0x5b3a0a[_0x3ccdcf]['previousPosition'])&&_0x5b3a0a[_0x3ccdcf]['markersStart']['push'](_0x3409e9),_0x17db19['end']['isEqual'](_0x5b3a0a[_0x3ccdcf]['nextPosition'])&&_0x5b3a0a[_0x3ccdcf]['markersEnd']['push'](_0x3409e9);}['_joinTapes'](_0x15fa5b,_0x26bbc3){let _0x7f664e=[],_0x44f187=0x0,_0x43b245=0x0;for(;_0x44f187<_0x15fa5b['length']||_0x43b245<_0x26bbc3['length'];){const _0x536af9=_0x15fa5b[_0x44f187]||{},_0x4a75d8=_0x26bbc3[_0x43b245]||{};if(_0x536af9['id']==_0x4a75d8['id'])_0x44f187++,_0x43b245++,_0x7f664e['push'](_0x536af9);else{if(_0x4a75d8['isRemoved']&&_0x536af9['isAdded']){const {commonTape:_0xffe90a,iEnd:_0x5f1565,jEnd:_0x3618a1}=this['_threeWayMerge'](_0x15fa5b,_0x44f187,_0x26bbc3,_0x43b245);_0x7f664e=_0x7f664e['concat'](_0xffe90a),_0x44f187=_0x5f1565,_0x43b245=_0x3618a1;}else _0x4a75d8['isRemoved']?(_0x43b245++,_0x7f664e['push'](_0x4a75d8)):(_0x44f187++,_0x7f664e['push'](_0x536af9));}}return _0x7f664e;}['_markSuggestions'](_0x86ee1d,_0x236cf7){const _0x32534a=[];for(let _0x216b12=0x0;_0x216b12<_0x86ee1d['length'];_0x216b12++){for(let _0x3178fa=0x0;_0x3178fa<_0x86ee1d[_0x216b12]['markersStart']['length'];_0x3178fa++){const _0x148ba9=_0x86ee1d[_0x216b12]['markersStart'][_0x3178fa];if(!_0x236cf7['has'](_0x148ba9))continue;const {group:_0x3027a6,type:_0x1815a0,authorId:_0x2ac246}=_0x5b4eb8(_0x148ba9);'revision-suggestion'!=_0x3027a6||'insertion'!=_0x1815a0&&'deletion'!=_0x1815a0||(_0x32534a['unshift']({'type':_0x1815a0,'name':_0x148ba9,'userId':_0x2ac246}),_0x86ee1d[_0x216b12]['markersStart']['splice'](_0x3178fa,0x1),_0x3178fa--);}_0x851b39(_0x86ee1d[_0x216b12]);for(let _0x938ee4=0x0;_0x938ee4<_0x86ee1d[_0x216b12]['markersEnd']['length'];_0x938ee4++){const _0x2d6ee3=_0x86ee1d[_0x216b12]['markersEnd'][_0x938ee4];if(!_0x236cf7['has'](_0x2d6ee3))continue;const {group:_0x30a057,type:_0x5749a8}=_0x5b4eb8(_0x2d6ee3);if('revision-suggestion'!=_0x30a057||'insertion'!=_0x5749a8&&'deletion'!=_0x5749a8)continue;_0x86ee1d[_0x216b12]['markersEnd']['splice'](_0x938ee4,0x1),_0x938ee4--;const _0x13c5a7=_0x32534a['findIndex'](_0x20f4a5=>_0x20f4a5['name']==_0x2d6ee3);_0x13c5a7>-0x1&&_0x32534a['splice'](_0x13c5a7,0x1);}}function _0x5b4eb8(_0x4d1802){const _0x4f345d=_0x4d1802['split'](':');return{'group':_0x4f345d[0x0],'type':_0x4f345d[0x1],'subType':_0x4f345d['length']>=0x5?_0x4f345d[0x2]:null,'id':_0x4f345d['length']<0x5?_0x4f345d[0x2]:_0x4f345d[0x3],'authorId':_0x4f345d['length']<0x5?_0x4f345d[0x3]:_0x4f345d[0x4],'markerCount':0x6==_0x4f345d['length']?_0x4f345d[0x5]:null};}function _0x851b39(_0xb12f18){for(let _0x314cbe=0x0;_0x314cbe<_0x32534a['length'];_0x314cbe++){if(_0xb12f18['isAdded']&&'insertion'==_0x32534a[_0x314cbe]['type'])return _0xb12f18['isAddSuggestion']=_0x32534a[_0x314cbe],void delete _0xb12f18['isAdded'];if(!_0xb12f18['isAdded']&&!_0xb12f18['isRemoved']&&'deletion'==_0x32534a[_0x314cbe]['type'])return void(_0xb12f18['isRemoveSuggestion']=_0x32534a[_0x314cbe]);}}}['_setDistance'](_0x337e91,_0x517925){let _0x2c0d58=0x0,_0x55dcb7=!0x1;const _0x1e6bdc=new Map();for(const _0x23b856 of _0x337e91)_0x23b856[_0x517925]?_0x55dcb7&&(_0x2c0d58++,_0x55dcb7=!0x1):(_0x2c0d58++,_0x55dcb7=!0x0),_0x1e6bdc['set'](_0x23b856['id'],_0x2c0d58);for(let _0x3da182=0x0;_0x3da182<_0x337e91['length'];_0x3da182++){if('isRemoved'==_0x517925&&_0x337e91[_0x3da182]['isAdded']||'isAdded'==_0x517925&&_0x337e91[_0x3da182]['isRemoved'])continue;if('text'==_0x337e91[_0x3da182]['type']){_0x337e91[_0x3da182]['distance']=0x0;continue;}const _0x168b6e=_0x1e6bdc['get'](_0x337e91[_0x3da182]['pairId']),_0x21cfcc=_0x1e6bdc['get'](_0x337e91[_0x3da182]['id']);_0x337e91[_0x3da182]['distance']=_0x168b6e-_0x21cfcc;}}['_getRevisionsRange'](_0x525c11,_0x34f62c,_0x26f4d2=!0x1){const _0x369522=[];let _0x2c23ff=this['repository']['getIndex'](_0x525c11),_0x3b82bd=this['repository']['getIndex'](_0x34f62c);for(-0x1==_0x3b82bd&&(_0x3b82bd=this['repository']['_revisions']['length'],_0x26f4d2=!0x1);_0x2c23ff<_0x3b82bd;)_0x369522['push'](this['repository']['getRevision'](_0x2c23ff)),_0x2c23ff++;return _0x26f4d2&&_0x369522['push'](this['repository']['getRevision'](_0x2c23ff)),_0x369522;}['_threeWayMerge'](_0x237243,_0x3c6097,_0x565b6f,_0x50d61a){const _0x1db264=this['editor']['model']['schema'];let _0x1ddce2=_0x3c6097;for(;_0x237243[_0x1ddce2]&&_0x237243[_0x1ddce2]['isAdded'];)_0x1ddce2++;let _0x5429d3=_0x50d61a;for(;_0x565b6f[_0x5429d3]&&_0x565b6f[_0x5429d3]['isRemoved'];)_0x5429d3++;_0x1df421(_0x237243,_0x3c6097,_0x1ddce2),_0x1df421(_0x565b6f,_0x50d61a,_0x5429d3);const _0x5d6ddf=_0x565b6f['slice'](_0x50d61a,_0x5429d3)['concat'](_0x237243['slice'](_0x3c6097,_0x1ddce2));return _0x5d6ddf['sort']((_0x595c5b,_0x281cae)=>_0x595c5b['side']!=_0x281cae['side']?_0x595c5b['side']-_0x281cae['side']:_0x595c5b['level']!=_0x281cae['level']?_0x595c5b['level']-_0x281cae['level']:_0x595c5b['distance']!=_0x281cae['distance']?_0x281cae['distance']-_0x595c5b['distance']:!!_0x595c5b['isAdded']!=!!_0x281cae['isAdded']?-0x1==_0x595c5b['side']||0x0==_0x595c5b['side']?_0x595c5b['isAdded']?-0x1:0x1:_0x595c5b['isAdded']?0x1:-0x1:_0x595c5b['index']-_0x281cae['index']),{'commonTape':_0x5d6ddf,'iEnd':_0x1ddce2,'jEnd':_0x5429d3};function _0x1df421(_0x53846f,_0x54cce8,_0x3dc92f){let _0x3b366a=-0x1,_0x1b79d2=Number['POSITIVE_INFINITY'],_0x5b5c05=!0x0;for(let _0x7f34d6=_0x54cce8;_0x7f34d6<_0x3dc92f;_0x7f34d6++)if(_0x1db264['isInline'](_0x53846f[_0x7f34d6]['item'])||(_0x5b5c05=!0x1),_0x53846f[_0x7f34d6]['item']['startIndex']<_0x54cce8&&(_0x3b366a=_0x7f34d6),_0x53846f[_0x7f34d6]['item']['endIndex']>=_0x3dc92f){_0x1b79d2=_0x7f34d6;break;}_0x5b5c05&&(_0x3b366a=_0x3dc92f-0x1);for(let _0x3c3a0b=_0x54cce8;_0x3c3a0b<_0x3dc92f;_0x3c3a0b++)_0x53846f[_0x3c3a0b]['side']=_0x3c3a0b<=_0x3b366a?-0x1:_0x3c3a0b<_0x1b79d2?0x0:0x1,_0x53846f[_0x3c3a0b]['index']=_0x3c3a0b;let _0x461b52=0x0;for(let _0x5169fe=_0x54cce8;_0x5169fe<=_0x3b366a;_0x5169fe++)0x0==_0x53846f[_0x5169fe]['distance']?_0x53846f[_0x5169fe]['level']=_0x461b52:(_0x461b52++,_0x53846f[_0x5169fe]['level']=_0x461b52,_0x461b52++);for(let _0xca4c1f=_0x54cce8;_0xca4c1f<_0x3dc92f;_0xca4c1f++)0x0==_0x53846f[_0xca4c1f]['side']&&(_0x53846f[_0xca4c1f]['level']=_0x461b52);_0x461b52=0x0;for(let _0x40b8c5=_0x3dc92f-0x1;_0x40b8c5>=_0x1b79d2;_0x40b8c5--)0x0==_0x53846f[_0x40b8c5]['distance']?_0x53846f[_0x40b8c5]['level']=_0x461b52:(_0x461b52--,_0x53846f[_0x40b8c5]['level']=_0x461b52,_0x461b52--);}}['_fixObsoleteTags'](_0x2da558){const _0x3ebf9a=new Map(),_0x3ce597=this['editor']['model']['schema'];for(let _0x40ba56=0x1;_0x40ba56<_0x2da558['length'];_0x40ba56++){let _0x3f761c,_0x180a11,_0x243d65;const _0x5d8853=_0x2da558[_0x40ba56],_0x7ca693=_0x2da558[_0x40ba56-0x1];if('text'==_0x5d8853['type'])continue;if(_0x5d8853['type']!=_0x7ca693['type'])continue;if(!_0x3ce597['isBlock'](_0x7ca693['item'])||_0x3ce597['isLimit'](_0x7ca693['item']))continue;if(!_0x3ce597['isBlock'](_0x5d8853['item'])||_0x3ce597['isLimit'](_0x5d8853['item']))continue;if((_0x2da558[_0x40ba56]['isAdded']||_0x2da558[_0x40ba56]['isAddSuggestion'])&&_0x2da558[_0x40ba56-0x1]['isRemoved'])_0x3f761c=_0x2da558[_0x40ba56],_0x180a11=_0x2da558[_0x40ba56-0x1],_0x243d65=_0x40ba56-0x1;else{if(!_0x2da558[_0x40ba56]['isRemoved']||!_0x2da558[_0x40ba56-0x1]['isAdded']&&!_0x2da558[_0x40ba56-0x1]['isAddSuggestion'])continue;_0x3f761c=_0x2da558[_0x40ba56-0x1],_0x180a11=_0x2da558[_0x40ba56],_0x243d65=_0x40ba56;}const _0x174054=_0x3f761c['level']==_0x180a11['level'],_0x20c9db=Math['abs'](_0x3f761c['level'])<Math['abs'](_0x180a11['level'])&&0x0==_0x180a11['distance'];(_0x174054||_0x20c9db)&&(_0x3ebf9a['set'](_0x180a11['id'],_0x3f761c['id']),_0x2da558['splice'](_0x243d65,0x1),_0x40ba56--,_0x3f761c['isAdded']=!0x1);}for(let _0x470b69=0x0;_0x470b69<_0x2da558['length'];_0x470b69++)_0x3ebf9a['has'](_0x2da558[_0x470b69]['pairId'])&&(_0x2da558[_0x470b69]['pairId']=_0x3ebf9a['get'](_0x2da558[_0x470b69]['pairId']));}['_removeMissingPairs'](_0x54ce4b){const _0x33b83d=new Set(_0x54ce4b['map'](_0x3a141d=>_0x3a141d['id']));for(let _0x293bd6=0x0;_0x293bd6<_0x54ce4b['length'];_0x293bd6++)_0x33b83d['has'](_0x54ce4b[_0x293bd6]['pairId'])||0x0==_0x54ce4b[_0x293bd6]['distance']||(_0x54ce4b[_0x293bd6]['isIncorrect']=!0x0);return _0x54ce4b['filter'](_0x290c0e=>!_0x290c0e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x45ca2b){const _0x5422ab=new Set();for(let _0x64325c=0x0;_0x64325c<_0x45ca2b['length'];_0x64325c++){if(_0x5422ab['has'](_0x45ca2b[_0x64325c]['id'])&&_0x45ca2b[_0x64325c]['isRemoved']&&(_0x45ca2b[_0x64325c]['isIncorrect']=!0x0),_0x45ca2b[_0x64325c]['isIncorrect'])continue;if(0x0==_0x45ca2b[_0x64325c]['distance'])continue;if('elementStart'!=_0x45ca2b[_0x64325c]['type'])continue;if(null==_0x45ca2b[_0x64325c]['pairId'])continue;let _0x206fff=_0x64325c+0x1,_0xda2e63=0x0;for(;_0x45ca2b[_0x206fff]['id']!=_0x45ca2b[_0x64325c]['pairId'];)'elementStart'==_0x45ca2b[_0x206fff]['type']?_0xda2e63++:'elementEnd'==_0x45ca2b[_0x206fff]['type']&&_0xda2e63--,_0x206fff++;if(0x0!=_0xda2e63){if(_0x45ca2b[_0x64325c]['isRemoved'])_0x45ca2b[_0x64325c]['isIncorrect']=!0x0;else{for(;_0x206fff!=_0x64325c;)_0x45ca2b[_0x206fff]['isRemoved']&&0x0!=_0x45ca2b[_0x206fff]['distance']&&(_0x45ca2b[_0x206fff]['isIncorrect']=!0x0,_0x5422ab['add'](_0x45ca2b[_0x206fff]['pairId'])),_0x206fff--;}}}return _0x45ca2b['filter'](_0x53ecfb=>!_0x53ecfb['isIncorrect']);}['_removeUnsupportedChanges'](_0x4b681d){const _0x15a875=this['editor']['model']['schema'];for(let _0x17f273=0x0;_0x17f273<_0x4b681d['length'];_0x17f273++){if(!(_0x4b681d[_0x17f273]['isAdded']||_0x4b681d[_0x17f273]['isAddSuggestion']||_0x4b681d[_0x17f273]['isRemoved']||_0x4b681d[_0x17f273]['isRemoveSuggestion']))continue;if(0x0==_0x4b681d[_0x17f273]['distance'])continue;const _0x2c6bae=_0x4b681d[_0x17f273]['item'];_0x15a875['isBlock'](_0x2c6bae)||_0x15a875['isLimit'](_0x2c6bae)||(_0x4b681d[_0x17f273]['isAdded']&&delete _0x4b681d[_0x17f273]['isAdded'],_0x4b681d[_0x17f273]['isAddSuggestion']&&delete _0x4b681d[_0x17f273]['isAddSuggestion'],_0x4b681d[_0x17f273]['isRemoveSuggestion']&&delete _0x4b681d[_0x17f273]['isRemoveSuggestion'],_0x4b681d[_0x17f273]['isRemoved']&&(_0x4b681d[_0x17f273]['isIncorrect']=!0x0));}return _0x4b681d['filter'](_0x5b6709=>!_0x5b6709['isIncorrect']);}['_makeModelFromTape'](_0x58e6d1,_0x2bc139,_0x55d715){const _0x1cfc5f=new gt(),_0x46d942=[],_0x11529d=new Map(),_0x4fbbd9=this['editor']['model'],_0x5d29d9=_0x4fbbd9['schema'],_0xe2b9e3=[_0x1cfc5f],_0x28bfcb={},_0x49a560={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x25a29d=null;const _0x14f6b6=[0x0];for(let _0xd322fb=0x0;_0xd322fb<_0x58e6d1['length'];_0xd322fb++)if('elementStart'===_0x58e6d1[_0xd322fb]['type']){_0x58e6d1[_0xd322fb]['previousPosition']=_0x4fbbd9['createPositionFromPath'](_0x1cfc5f,_0x14f6b6);const _0x13f12f=new ut(_0x58e6d1[_0xd322fb]['item']['name'],_0x58e6d1[_0xd322fb]['item']['getAttributes']());_0xe2b9e3[0x0]['_appendChild'](_0x13f12f),_0x14f6b6['push'](0x0),_0xe2b9e3['unshift'](_0x13f12f),_0x58e6d1[_0xd322fb]['nextPosition']=_0x4fbbd9['createPositionFromPath'](_0x1cfc5f,_0x14f6b6);}else'elementEnd'===_0x58e6d1[_0xd322fb]['type']?(_0xe2b9e3['shift'](),_0x58e6d1[_0xd322fb]['previousPosition']=_0x4fbbd9['createPositionFromPath'](_0x1cfc5f,_0x14f6b6),_0x14f6b6['pop'](),_0x14f6b6[_0x14f6b6['length']-0x1]++,_0x58e6d1[_0xd322fb]['nextPosition']=_0x4fbbd9['createPositionFromPath'](_0x1cfc5f,_0x14f6b6)):(_0x58e6d1[_0xd322fb]['previousPosition']=_0x4fbbd9['createPositionFromPath'](_0x1cfc5f,_0x14f6b6),_0x25a29d?_0x25a29d['_data']+=_0x58e6d1[_0xd322fb]['item']['data']:_0x25a29d=new mt(_0x58e6d1[_0xd322fb]['item']['data'],_0x58e6d1[_0xd322fb]['item']['getAttributes']()),_0x58e6d1[_0xd322fb+0x1]&&'text'===_0x58e6d1[_0xd322fb+0x1]['type']&&_0x10af1a(_0x25a29d,_0x58e6d1[_0xd322fb+0x1]['item'])||(_0xe2b9e3[0x0]['_appendChild'](_0x25a29d),_0x25a29d=null),_0x14f6b6[_0x14f6b6['length']-0x1]+=_0x58e6d1[_0xd322fb]['item']['offsetSize'],_0x58e6d1[_0xd322fb]['nextPosition']=_0x4fbbd9['createPositionFromPath'](_0x1cfc5f,_0x14f6b6));for(let _0x3ad68c=0x0;_0x3ad68c<_0x58e6d1['length'];_0x3ad68c++){const _0x55a16e=_0x58e6d1[_0x3ad68c]['previousPosition'],_0x361cc4=_0x58e6d1[_0x3ad68c]['nextPosition'];for(const _0xfcd596 of _0x58e6d1[_0x3ad68c]['markersStart'])_0x11529d['set'](_0xfcd596,{'start':_0x55a16e,'end':null});_0x3f9c06('isRemoveSuggestion',_0x3ad68c,_0x55a16e,_0x361cc4),_0x3f9c06('isAddSuggestion',_0x3ad68c,_0x55a16e,_0x361cc4),_0x3f9c06('isRemoved',_0x3ad68c,_0x55a16e,_0x361cc4),_0x3f9c06('isAdded',_0x3ad68c,_0x55a16e,_0x361cc4);for(const _0x39407b of _0x58e6d1[_0x3ad68c]['markersEnd']){const _0x226e9d=_0x11529d['get'](_0x39407b);_0x226e9d?_0x226e9d['end']=_0x361cc4:_0x11529d['set'](_0x39407b,{'start':_0x361cc4,'end':_0x361cc4});}}for(const [_0x33f6f9,_0x13b9dd]of _0x11529d){const _0x4b9808=this['editor']['model']['createRange'](_0x13b9dd['start'],_0x13b9dd['end']);_0x1cfc5f['markers']['set'](_0x33f6f9,_0x4b9808);}return _0x46d942['sort']((_0x373149,_0xc8d5a3)=>{const _0x2d39c8=_0x1cfc5f['markers']['get']('revision:'+_0x373149['id']),_0x43eefa=_0x1cfc5f['markers']['get']('revision:'+_0xc8d5a3['id']);return _0x2d39c8['start']['isBefore'](_0x43eefa['start'])?-0x1:_0x2d39c8['start']['isAfter'](_0x43eefa['start'])?0x1:_0x2d39c8['end']['isBefore'](_0x43eefa['end'])?-0x1:_0x2d39c8['end']['isAfter'](_0x43eefa['end'])?0x1:'add'===_0x373149['type']?-0x1:0x1;}),{'root':_0x1cfc5f,'changes':_0x46d942};function _0x3f9c06(_0x206c0c,_0x5304a0,_0x40b5c3,_0x5942d8){const _0xe0e9c8=!!_0x58e6d1[_0x5304a0][_0x206c0c],_0x647ded=_0xe0e9c8?_0x58e6d1[_0x5304a0][_0x206c0c]['userId']:null,_0x208d7f=_0x5304a0===_0x58e6d1['length']-0x1,_0x83aa5c=_0x49a560[_0x206c0c][0x0],_0x41a3c7=_0x5d29d9['isObject'](_0x58e6d1[_0x5304a0]['item']);!_0x28bfcb[_0x206c0c]&&_0xe0e9c8?_0x28bfcb[_0x206c0c]={'start':_0x40b5c3,'tapeItem':_0x58e6d1[_0x5304a0],'userId':_0x647ded,'type':_0x206c0c}:_0x28bfcb[_0x206c0c]&&!_0xe0e9c8?(_0x28bfcb[_0x206c0c]['end']=_0x40b5c3,_0x302e2b(_0x28bfcb[_0x206c0c]),_0x28bfcb[_0x206c0c]=null):_0x28bfcb[_0x206c0c]&&_0xe0e9c8&&_0x28bfcb[_0x206c0c]['userId']!==_0x647ded&&(_0x28bfcb[_0x206c0c]['end']=_0x40b5c3,_0x83aa5c&&_0x83aa5c['userId']===_0x28bfcb[_0x206c0c]['userId']||_0x302e2b(_0x28bfcb[_0x206c0c]),_0x28bfcb[_0x206c0c]={'start':_0x40b5c3,'tapeItem':_0x58e6d1[_0x5304a0],'userId':_0x647ded,'type':_0x206c0c}),_0x28bfcb[_0x206c0c]&&_0x41a3c7&&('elementStart'!==_0x58e6d1[_0x5304a0]['type']||_0x83aa5c&&_0x83aa5c['userId']===_0x647ded||_0x49a560[_0x206c0c]['unshift']({'userId':_0x647ded,'object':_0x58e6d1[_0x5304a0]['item'],'change':_0x28bfcb[_0x206c0c]}),'elementEnd'===_0x58e6d1[_0x5304a0]['type']&&_0x83aa5c&&_0x83aa5c['object']===_0x58e6d1[_0x5304a0]['item']&&(_0x49a560[_0x206c0c]['shift'](),_0x28bfcb[_0x206c0c]=_0x83aa5c['change'])),_0x28bfcb[_0x206c0c]&&_0x208d7f&&(_0x28bfcb[_0x206c0c]['end']=_0x5942d8,_0x302e2b(_0x28bfcb[_0x206c0c]),_0x28bfcb[_0x206c0c]=null);}function _0x302e2b({start:_0x197b49,end:_0x3d0763,tapeItem:_0x1c02d2,userId:_0x2097ab,type:_0x78b513}){const _0xe4b443=_0x1c02d2['item'],_0xc1f23e=_0x4fbbd9['schema']['isBlock'](_0xe4b443)&&!_0x4fbbd9['schema']['isLimit'](_0xe4b443),_0x32d702=_0x197b49['nodeAfter']==_0x3d0763['parent']&&_0x3d0763['isAtStart'];if(_0xc1f23e&&_0x32d702)return;const _0x2717fa=_0x4fbbd9['createRange'](_0x197b49,_0x3d0763),_0xfa2425=_0x2bc139['get'](_0x2097ab),_0x3670bc=new r({'author':_0xfa2425,'type':'isAdded'==_0x78b513||'isAddSuggestion'==_0x78b513?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x78b513||'isRemoveSuggestion'==_0x78b513},'createdAt':new Date(),'rootName':_0x55d715});_0x46d942['push'](_0x3670bc),_0x1cfc5f['markers']['set']('revision:'+_0x3670bc['id'],_0x2717fa);}function _0x10af1a(_0x3b0712,_0xb404da){const _0x2631ec=_0x3b0712['getAttributes'](),_0x15a7b7=_0xb404da['getAttributes']();for(const _0x2ebc85 of _0x2631ec){if(_0x2ebc85[0x1]!==_0xb404da['getAttribute'](_0x2ebc85[0x0]))return!0x1;_0x15a7b7['next']();}return _0x15a7b7['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5cf531=>{const _0x3b7bb1=_0x5cf531['markerName']['split'](':')[0x1],_0x11ead6=this['_getChangeFromId'](_0x3b7bb1);if(!_0x11ead6)return null;const _0x1c36bc='add'==_0x11ead6['type']?'insertion':'deletion',_0x421bc7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1c36bc];return _0x11ead6['data']['isSuggestion']&&_0x421bc7['push']('ck-suggestion-marker-'+_0x1c36bc+'-new'),this['activeChange']==_0x11ead6&&_0x421bc7['push']('ck-suggestion-marker--active'),{'classes':_0x421bc7,'attributes':{'data-change-id':_0x3b7bb1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x558b64=>{_0x558b64['on']('element:pre',(_0x5704ed,_0x5db729,_0x49826c)=>{const _0x5d35bf=_0x5db729['viewItem']['getChild'](0x0);if(!_0x5d35bf||!_0x5d35bf['is']('element','code'))return;if(!_0x49826c['consumable']['consume'](_0x5d35bf,{'attributes':['vid_start','vid_end']}))return;const _0x2e7bbc=_0x5db729['modelRange']['start']['nodeAfter'];_0x49826c['writer']['setAttribute']('vid_start',_0x5d35bf['getAttribute']('vid_start'),_0x2e7bbc),_0x49826c['writer']['setAttribute']('vid_end',_0x5d35bf['getAttribute']('vid_end'),_0x2e7bbc);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2460cb=>{_0x2460cb['on']('element',(_0x5d28a5,_0x5c820f,_0x281d56)=>{if(!_0x281d56['consumable']['consume'](_0x5c820f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5c820f['modelRange']['isCollapsed'])return;const _0x451ead=_0x5c820f['modelRange']['start']['nodeAfter'];_0x451ead['hasAttribute']('vid_start')||_0x451ead['hasAttribute']('vid')||(_0x281d56['writer']['setAttribute']('vid_start',_0x5c820f['viewItem']['getAttribute']('vid_start'),_0x451ead),_0x281d56['writer']['setAttribute']('vid_end',_0x5c820f['viewItem']['getAttribute']('vid_end'),_0x451ead));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43469b=>_0x43469b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x12f4c9,[,_0xacdb70])=>{['vid_start','vid_end','vid']['includes'](_0xacdb70)&&(_0x12f4c9['return']=!0x0,_0x12f4c9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4b4fed=>{_0x4b4fed['on']('attribute:vid',(_0x151cf6,_0x3314ac,_0x1c6d0b)=>{if('\x20'!=_0x3314ac['item']['data']||_0x3314ac['item']['parent']['maxOffset']>0x1)return;if(!_0x1c6d0b['consumable']['consume'](_0x3314ac['item'],_0x151cf6['name']))return;const _0x3cf9a3=_0x1c6d0b['writer'],_0x3fe845=_0x1c6d0b['mapper']['toViewRange'](_0x3314ac['range']);_0x3cf9a3['wrap'](_0x3fe845,_0x3cf9a3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x38efe3){const _0x3d9bdb=_0x38efe3['plugins']['get']('RevisionViewer');return(_0x5a0ef2,_0x7fcb6e,_0x20153d)=>{const _0x31708a=_0x7fcb6e['markerName']['split'](':')[0x1],_0x336c77=_0x3d9bdb['_getChangeFromId'](_0x31708a);if(!_0x336c77)return null;const _0x2783db='add'==_0x336c77['type']?'split':'merge';if(!_0x20153d['consumable']['test'](_0x7fcb6e['markerRange'],_0x5a0ef2['name']))return;const _0x27374f=_0x7fcb6e['markerRange']['getWalker'](),_0x39ecf6=_0x7fcb6e['markerRange']['start'],_0x3b617a=_0x38efe3['model']['schema'];let _0x30dd24=null,_0x62f36c=null,_0x27ff7d=!0x1,_0x44259c=!0x1;for(const _0x329160 of _0x27374f){const _0x17342a=_0x329160['item'];_0x27ff7d=_0x27ff7d||_0x3b617a['isContent'](_0x17342a);const _0x39930a=_0x20153d['mapper']['toViewElement'](_0x17342a);if(_0x39930a&&_0x39930a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x329160['type']&&(_0x3b617a['isBlock'](_0x17342a)&&!_0x3b617a['isLimit'](_0x17342a)&&(_0x17342a['nextSibling']||_0x39ecf6['isAtEnd']?_0x30dd24&&_0x30dd24['parent']==_0x17342a||(_0x30dd24=_0x17342a,_0x57235a(_0x329160['previousPosition']),_0x44259c=!0x0):_0x62f36c=_0x62f36c||_0x329160['previousPosition']));}function _0x57235a(_0x1eb548){const _0x20ac43=_0x20153d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2783db}),_0x421c58=_0x20153d['mapper']['toViewPosition'](_0x1eb548);_0x336c77['data']['isSuggestion']&&_0x20153d['writer']['addClass']('ck-suggestion-marker-'+_0x2783db+'-new',_0x20ac43),_0x3d9bdb['activeChange']==_0x336c77&&_0x20153d['writer']['addClass']('ck-suggestion-marker--active',_0x20ac43),_0x20153d['writer']['insert'](_0x421c58,_0x20ac43),_0x20153d['mapper']['bindElementToMarker'](_0x20ac43,_0x7fcb6e['markerName']);}_0x27ff7d||_0x44259c||!_0x62f36c||_0x57235a(_0x62f36c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x522415,_0x5953de,_0x46b7ed)=>{const _0x4df74c=_0x46b7ed['mapper']['markerNameToElements'](_0x5953de['markerName']);if(_0x4df74c){for(const _0x381448 of _0x4df74c)(_0x381448['hasClass']('ck-suggestion-marker-split')||_0x381448['hasClass']('ck-suggestion-marker-merge'))&&(_0x46b7ed['mapper']['unbindElementFromMarkerName'](_0x381448,_0x5953de['markerName']),_0x46b7ed['writer']['remove'](_0x381448));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x26007a,_0x44660d,_0x4197a3)=>{const _0x249078=_0x44660d['markerName']['split'](':')[0x1],_0x4d0fab=this['_getChangeFromId'](_0x249078);if(!_0x4d0fab)return null;const _0x5e276e='add'==_0x4d0fab['type']?'split':'merge';if(_0x4197a3['consumable']['test'](_0x44660d['markerRange'],_0x26007a['name']))for(const _0x188069 of _0x44660d['markerRange']['getItems']()){if(!_0x188069['is']('element','softBreak'))continue;const _0x1cc270=_0x4197a3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e276e}),_0x29a86f=_0x4197a3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x188069));_0x4d0fab['data']['isSuggestion']&&_0x4197a3['writer']['addClass']('ck-suggestion-marker-'+_0x5e276e+'-new',_0x1cc270),this['activeChange']==_0x4d0fab&&_0x4197a3['writer']['addClass']('ck-suggestion-marker--active',_0x1cc270),_0x4197a3['writer']['insert'](_0x29a86f,_0x1cc270),_0x4197a3['mapper']['bindElementToMarker'](_0x1cc270,_0x44660d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x14791b=>{for(const _0x23072c of this['editor']['model']['document']['getRootNames']()){const _0x234efe=this['editor']['model']['document']['getRoot'](_0x23072c),_0x43808c=this['editor']['editing']['view']['document']['getRoot'](_0x23072c);if(_0x43808c){const _0x5a8f60=_0x234efe['getAttribute']('revisionHistoryAttachChange');if(_0x14791b['removeAttribute']('data-change-id',_0x43808c),_0x14791b['removeClass']('ck-revision-history-root-add',_0x43808c),_0x14791b['removeClass']('ck-revision-history-root-remove',_0x43808c),_0x14791b['removeClass']('ck-revision-history-root--active',_0x43808c),_0x5a8f60){const _0x3a3aef=this['_getChangeFromId'](_0x5a8f60);if(!_0x3a3aef)return null;_0x14791b['setAttribute']('data-change-id',_0x5a8f60,_0x43808c),_0x14791b['addClass']('ck-revision-history-root-'+_0x3a3aef['type'],_0x43808c),this['activeChange']==_0x3a3aef&&_0x14791b['addClass']('ck-revision-history-root--active',_0x43808c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x385426=>'revision-comment:'+_0x385426,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1d8b20=>'revision-suggestion:'+_0x1d8b20,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x192414=>({'name':'suggestion:'+_0x192414,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xae69fa=>{const _0x34aba0=_0xae69fa['markerName']['split'](':')[0x1];return'insertion'!=_0x34aba0&&'deletion'!=_0x34aba0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x34aba0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2fe8ca,_0x278e8a,_0x29491f)=>{const _0x29be70=_0x29491f['mapper']['markerNameToElements'](_0x278e8a['markerName']);if(_0x29be70){for(const _0x4bbad6 of _0x29be70)_0x4bbad6['is']('uiElement')&&(_0x29491f['mapper']['unbindElementFromMarkerName'](_0x4bbad6,_0x278e8a['markerName']),_0x29491f['writer']['remove'](_0x4bbad6));}},{'priority':'high'});}['_getChangeFromId'](_0x59730d){return this['_changeIdToChange']['get'](_0x59730d);}['_getViewForChange'](_0x80d633){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x80d633),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x492380,_0x495425,_0x31eb26,_0x16ebf2)=>{_0x16ebf2&&this['_balloon']['remove'](_0x16ebf2),_0x31eb26&&(this['_balloon']['add']({'view':_0x31eb26,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1e397a=this['editor']['editing'],_0xd4f1b=this['_getChangeFromId'](_0x31eb26['changeId']);let _0x691389;if(_0xd4f1b['data']['isOnRoot']){const _0x4310bb=_0x1e397a['view']['getDomRoot'](_0xd4f1b['rootName']);_0x691389=Array['from'](_0x4310bb['getClientRects']());}else{const _0xc583d1=this['editor']['model']['markers']['get']('revision:'+_0x31eb26['changeId']);_0x691389=Array['from'](_0x1e397a['mapper']['markerNameToElements'](_0xc583d1['name']))['map'](_0x1d64ea=>_0x1e397a['view']['domConverter']['mapViewToDom'](_0x1d64ea))['map'](_0x3ff551=>Array['from'](_0x3ff551['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x691389[0x0];return _0x691389['find'](_0x1cc132=>_0x1cc132['top']-0x3<=this['_activeViewTarget']['y']&&_0x1cc132['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1cc132['left']-0x3<=this['_activeViewTarget']['x']&&_0x1cc132['right']+0x3>=this['_activeViewTarget']['x'])||_0x691389[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x53f00c,_0x398793,_0x3cfce6,_0x558e48)=>{this['activeView']=_0x3cfce6?this['_getViewForChange'](_0x3cfce6):null,this['editor']['model']['change'](()=>{const _0xc1e09=this['editor']['editing'];_0x558e48&&(_0x558e48['data']['isOnRoot']?_0xc1e09['view']['change'](_0x3b94b5=>{_0x3b94b5['removeClass']('ck-revision-history-root--active',_0xc1e09['view']['document']['getRoot'](_0x558e48['rootName']));}):_0xc1e09['reconvertMarker']('revision:'+_0x558e48['id'])),_0x3cfce6&&(_0x3cfce6['data']['isOnRoot']?_0xc1e09['view']['change'](_0xe6e30c=>{_0xe6e30c['addClass']('ck-revision-history-root--active',_0xc1e09['view']['document']['getRoot'](_0x3cfce6['rootName']));}):_0xc1e09['reconvertMarker']('revision:'+_0x3cfce6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x293124,_0x485857)=>{if(this['activeChange'])return;const _0x3f3782=this['_findChangeIdFromDomTarget'](_0x485857['target']),_0x111f8d=this['_changeIdToChange']['get'](_0x3f3782);_0x111f8d?(this['_activeViewTarget']={'x':_0x485857['domEvent']['x'],'y':_0x485857['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x111f8d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4b8d6f,_0x5265f4)=>{const _0x4a8e11=this['_findChangeIdFromDomTarget'](_0x5265f4['target']),_0x54a998=this['_changeIdToChange']['get'](_0x4a8e11);_0x54a998?(this['_activeViewTarget']={'x':_0x5265f4['domEvent']['x'],'y':_0x5265f4['domEvent']['y']},_0x54a998===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x54a998):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x312210){do{const _0x187155=_0x312210['getAttribute']('data-change-id');if(_0x187155)return _0x187155;_0x312210=_0x312210['parent'];}while(_0x312210);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x9269d6=>{for(const _0x16e8c7 of this['editor']['model']['markers'])_0x9269d6['removeMarker'](_0x16e8c7);});}}function X(_0x206638,_0x2c06aa){return(_0x55887a,_0x166fbf,_0x6b6baf)=>{if(!_0x6b6baf['consumable']['test'](_0x166fbf['markerRange'],_0x55887a['name']))return;const _0x8fd836=_0x166fbf['markerRange']['getWalker'](),_0x530aac=_0x166fbf['markerRange']['start'],_0x2a16d4=_0x206638['model']['schema'];let _0x2afd21=null,_0x369668=null,_0x59d2bf=!0x1,_0x12f83a=!0x1;for(const _0x531656 of _0x8fd836){const _0x3df7d3=_0x531656['item'];_0x59d2bf=_0x59d2bf||_0x2a16d4['isContent'](_0x3df7d3);const _0x2cee97=_0x6b6baf['mapper']['toViewElement'](_0x3df7d3);if(_0x2cee97&&_0x2cee97['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x531656['type']&&(_0x2a16d4['isBlock'](_0x3df7d3)&&!_0x2a16d4['isLimit'](_0x3df7d3)&&(_0x3df7d3['nextSibling']||_0x530aac['isAtEnd']?_0x2afd21&&_0x2afd21['parent']==_0x3df7d3||(_0x2afd21=_0x3df7d3,_0x539d37(_0x531656['previousPosition']),_0x12f83a=!0x0):_0x369668=_0x369668||_0x531656['previousPosition']));}function _0x539d37(_0x28a9de){const _0x10caba=_0x6b6baf['mapper']['toViewPosition'](_0x28a9de),_0x5ed258=_0x6b6baf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2c06aa});_0x6b6baf['writer']['insert'](_0x10caba,_0x5ed258),_0x6b6baf['mapper']['bindElementToMarker'](_0x5ed258,_0x166fbf['markerName']);}_0x59d2bf||_0x12f83a||!_0x369668||_0x539d37(_0x369668);};}class wt extends _0x3eb960{constructor(_0x3af4b4){super(_0x3af4b4);const _0x244bc1=_0x3af4b4['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x244bc1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x244bc1,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x31fd6c=this['editor'],_0x3e392b=_0x31fd6c['plugins']['get'](m),_0x463bfc=_0x3e392b['isReady']?_0x3e392b['diff']['newRevisionId']:null;_0x31fd6c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x463bfc);}['refresh'](){const {isReady:_0xbbafda,isEnabled:_0x373de0,repository:_0x2e335a,diff:_0x1bd75b}=this['editor']['plugins']['get'](m),_0x2a5968=_0x1bd75b&&_0x2e335a['getLaterVisibleRevision'](_0x1bd75b['newRevisionId']);this['isEnabled']=_0xbbafda&&_0x373de0&&Boolean(_0x2a5968);}}class pt extends _0x3eb960{['_step'];constructor(_0x3e9285,{direction:_0x116ae7}){super(_0x3e9285);const _0x40f061=_0x3e9285['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x116ae7?0x1:-0x1,this['listenTo'](_0x40f061,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x40f061,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x40f061,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x174569=this['editor'],_0x3cebcd=_0x174569['plugins']['get'](m),{isNavigationMode:_0x300e54,currentChangeNumber:_0x5267bc}=_0x3cebcd;let _0x578c1d;if(_0x3cebcd['activeChange']=_0x300e54?_0x3cebcd['diff']['changes']['get'](_0x5267bc+this['_step']):_0x3cebcd['diff']['changes']['first'],_0x3cebcd['activeChange']['data']['isOnRoot'])_0x578c1d=_0x174569['editing']['view']['getDomRoot'](_0x3cebcd['activeChange']['rootName']);else{const _0x5b7e75=_0x174569['model']['markers']['get']('revision:'+_0x3cebcd['activeChange']['id']);_0x578c1d=_0x56a327(_0x174569['editing'],_0x5b7e75);}_0x423959({'target':_0x578c1d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1407a0,currentChangeNumber:_0x2de999,numberOfChanges:_0x32e429,isReady:_0x4236e6,isEnabled:_0x149784}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x149784&&_0x4236e6&&_0x32e429)&&(!_0x1407a0||(0x1===this['_step']?_0x2de999<_0x32e429-0x1:_0x2de999>0x0));}}class _i extends _0x4ce9da{constructor(_0x148b0e){super(_0x148b0e);const _0x2a7d11=this['bindTemplate'],_0x46dbc1=new _0x4448cb(_0x148b0e),_0x3d199d=new _0x4448cb(_0x148b0e);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',(_0x50ec45,_0x473e39)=>_0x50ec45&&_0x473e39>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4c191b,_0x26d651,_0x307a9a,_0x5117a4)=>{if(!_0x4c191b)return g(_0x148b0e,'Loading...');if(!_0x307a9a)return g(_0x148b0e,'No\x20changes');const _0x48776a=g(_0x148b0e,'NUMBER_OF_CHANGES',_0x307a9a);return _0x5117a4?g(_0x148b0e,'X_OF_Y_CHANGES',[_0x26d651+0x1,_0x307a9a]):_0x48776a;}),_0x46dbc1['set']({'label':g(_0x148b0e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x189df2}),_0x3d199d['set']({'label':g(_0x148b0e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xc173ec}),_0x46dbc1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3d199d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x46dbc1['on']('execute',()=>this['fire']('execute','backward')),_0x3d199d['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',_0x2a7d11['if']('_isStatusLabelVisible','ck-hidden',_0x10a628=>!_0x10a628)]},'children':[{'text':_0x2a7d11['to']('isNavigationMode',_0x43ed93=>_0x43ed93?g(_0x148b0e,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x148b0e,'Total')+':\x20')}]},{'text':_0x2a7d11['to']('_statusText')}]},new _0x1314b5(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x46dbc1,_0x3d199d]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x21e419{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x19a3bb=this['editor']['editing']['view'];_0x19a3bb['change'](_0x374f2e=>{for(const _0x15c4f1 of _0x19a3bb['document']['roots'])_0x374f2e['addClass'](ce,_0x15c4f1);});}['hide'](){const _0x129f18=this['editor']['editing']['view'];_0x129f18['change'](_0x108679=>{for(const _0x20e62f of _0x129f18['document']['roots'])_0x108679['removeClass'](ce,_0x20e62f);});}}class R extends _0x21e419{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x55bd59=this['editor'],_0x40a905=_0x55bd59['plugins']['get'](m),_0x34b69b=_0x55bd59['plugins']['get'](le);_0x55bd59['ui']['componentFactory']['add']('exitToEditing',_0x238c58=>{const _0x5b6425=new _0x4448cb(_0x238c58);return _0x5b6425['set']({'label':g(_0x238c58,'Back\x20to\x20editing'),'icon':_0x5a8abd,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5b6425,'execute',()=>{_0x55bd59['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5b6425;}),_0x55bd59['ui']['componentFactory']['add']('restoreRevision',_0x462253=>{const _0x2e8abf=new _0x4448cb(_0x462253);return _0x2e8abf['set']({'label':g(_0x462253,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2e8abf['bind']('isEnabled')['to'](_0x55bd59['commands']['get']('restoreRevision')),this['listenTo'](_0x2e8abf,'execute',()=>_0x55bd59['execute']('restoreRevision')),_0x2e8abf;}),_0x55bd59['ui']['componentFactory']['add']('changesNavigation',_0x3b2a5b=>{const _0x3c914d=new _i(_0x3b2a5b),_0x379e29=_0x55bd59['commands']['get']('showPreviousChange'),_0x3b4488=_0x55bd59['commands']['get']('showNextChange');return _0x3c914d['bind']('isBackwardNavigationEnabled')['to'](_0x379e29,'isEnabled'),_0x3c914d['bind']('isForwardNavigationEnabled')['to'](_0x3b4488,'isEnabled'),_0x3c914d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x40a905),this['listenTo'](_0x3c914d,'execute',(_0xfdfbf1,_0x2af132)=>{_0x55bd59['execute']('forward'===_0x2af132?'showNextChange':'showPreviousChange');}),_0x3c914d;}),_0x34b69b['show'](),_0x40a905['on']('change:isReady',(_0x2a93bb,_0x25a545,_0x3e8c1c)=>{_0x3e8c1c?_0x34b69b['hide']():_0x34b69b['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x857d7a,_0x2dfca6){super(_0x857d7a,_0x2dfca6);const _0x37bd43=this['bindTemplate'];this['set']({'label':g(_0x857d7a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x857d7a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x37bd43['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x44642e=this['fieldView']['element'];this['_tooltipString']=_0x44642e['scrollWidth']>_0x44642e['clientWidth']&&_0x44642e['value']||'';}}class oi extends _0x4ce9da{constructor(_0xb0420f,_0x45a8b5,_0x272c49){super(_0xb0420f);const _0x516752=new _0x48381e();_0x516752['set']({'content':_0x1dfb1c,'viewBox':'0\x200\x2011\x2010'});const _0xd9112d=['ck','ck-revision-history-sidebar__revision-author'];_0x272c49&&_0xd9112d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x470294=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0xb0420f,_0x272c49?'Revision\x20creator':'Revision\x20author')},'children':[_0x516752,_0x45a8b5['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xd9112d},'children':_0x470294});}}function ni(_0x412a41,_0x14db2a){const _0x3124d3=_0x412a41['bindTemplate'],_0x5d44f9=_0x412a41['locale'],_0x56cfd2=_0x1ad742(_0x5d44f9);_0x56cfd2['panelPosition']='sw';const _0x5b43e1=function(_0x361c1f,_0x4be28d){const _0x389004=function(_0x3ff958,_0x42a4fb){const _0x2963b1=_0x3ff958['locale'],_0x209d99={'Compare\x20against\x20selected':g(_0x2963b1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x2963b1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x2963b1,'Restore\x20this\x20revision')};return _0x42a4fb['map'](_0x57e08f=>{const _0x496142=_0x209d99[_0x57e08f['name']];return _0x496142&&_0x496142!==_0x57e08f['name']&&(_0x57e08f['name']=_0x496142),_0x57e08f;});}(_0x361c1f,_0x4be28d),_0x300323=new _0x2fd429();for(const _0x54355c of _0x389004){const _0x630a1b={'type':'button','model':new to({'label':_0x54355c['name'],'class':_0x54355c['class'],'withText':!0x0,'role':'menuitem','_action':_0x54355c['action']})};_0x630a1b['model']['bind']('isEnabled')['to'](_0x361c1f,'isActionsDropdownOpen',_0x1485ba=>'function'!=typeof _0x54355c['isEnabled']||(!_0x1485ba||_0x54355c['isEnabled'](_0x361c1f))),_0x300323['add'](_0x630a1b);}return _0x300323;}(_0x412a41,_0x14db2a);return _0x412a41['bind']('isActionsDropdownOpen')['to'](_0x56cfd2,'isOpen'),_0x56cfd2['buttonView']['set']({'label':g(_0x5d44f9,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x374c16}),_0x56cfd2['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3124d3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3124d3['to'](_0x715d1=>_0x715d1['stopPropagation']())}}),_0x56cfd2['on']('execute',_0x3f768a=>{_0x412a41['isReady']&&'function'==typeof _0x3f768a['source']['_action']&&_0x3f768a['source']['_action'](_0x412a41);}),_0x1c6be0(_0x56cfd2,_0x5b43e1,{'role':'menu'}),_0x56cfd2['listenTo'](_0x412a41,'change:isActionsDropdownOpen',(_0x1e0545,_0x502236,_0x189df9)=>{if(_0x189df9)for(const _0x338f40 of _0x56cfd2['listView']['items']){const _0x5dce0e=_0x338f40['children']['first'],_0x194f97=_0x14db2a['find'](_0x47b058=>_0x47b058['action']===_0x5dce0e['_action'])['isVisible'];_0x338f40['isVisible']=void 0x0===_0x194f97||_0x194f97(_0x412a41);}}),_0x56cfd2;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2d89b1(_0x4ce9da){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3a29b3,_0x49cd4b,_0x5b47b0,_0x56b423){super(_0x3a29b3);const _0x58b1d0=this['bindTemplate'],_0x367785=function(_0x2c23fd,_0x467804){const _0x4bcdad=Array['from'](_0x467804['authors'])['filter'](_0x490b90=>_0x490b90!=_0x467804['creator']);return _0x467804['creator']&&_0x4bcdad['unshift'](_0x467804['creator']),_0x4bcdad['map'](_0x3d9f9e=>new oi(_0x2c23fd,_0x3d9f9e,_0x3d9f9e==_0x467804['creator']));}(_0x3a29b3,_0x49cd4b);this['id']=_0x49cd4b['id'],this['_revision']=_0x49cd4b,this['_requireRevisionName']=_0x56b423,this['bind']('name','createdAt')['to'](_0x49cd4b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1f535e=>{return _0x2ac337=_0x3a29b3['uiLanguage'],(_0x174efb=_0x1f535e)['toLocaleDateString'](_0x2ac337,{'month':'long','day':'numeric'})+',\x20'+_0x174efb['toLocaleTimeString'](_0x2ac337,{'hour':'numeric','minute':'numeric'});var _0x2ac337,_0x174efb;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x3a29b3,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1b2d39=>_0x1b2d39||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x316ca9,_0x6f02a7)=>_0x316ca9&&_0x6f02a7),this['revisionActionsView']=_0x5b47b0&&_0x5b47b0['length']?ni(this,_0x5b47b0):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x58b1d0['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x58b1d0['if']('isEnabled','ck-disabled',_0x485596=>!_0x485596),_0x58b1d0['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x58b1d0['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x58b1d0['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':_0x58b1d0['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':_0x367785}]},this['revisionActionsView']],'on':{'click':_0x58b1d0['to'](_0x1cd5e6=>{_0x1cd5e6['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1b0afe=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1b0afe,'change',()=>{this['_requireRevisionName']&&!_0x1b0afe['value']||this['fire']('setName',{'id':this['id'],'name':_0x1b0afe['value']}),_0x1b0afe['value']||(_0x1b0afe['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x462534,_0x249bac){const _0x5bea46=_0x2b1c40['fromJSDate'](_0x462534)['setLocale'](_0x249bac),_0x1b9fe1=_0x2b1c40['local'](),_0x59cff3=_0x1b9fe1['minus']({'days':0x1})['startOf']('day');let _0x1b3df5,_0x2f10c0;return _0x5bea46['hasSame'](_0x1b9fe1,'day')?(_0x1b3df5=_0x5bea46['startOf']('day')['toJSDate'](),_0x2f10c0=_0x5bea46['toRelativeCalendar']()):_0x5bea46['hasSame'](_0x59cff3,'day')?(_0x1b3df5=_0x59cff3['toJSDate'](),_0x2f10c0=_0x5bea46['toRelativeCalendar']()):_0x5bea46['hasSame'](_0x1b9fe1,'week')?(_0x1b3df5=_0x5bea46['startOf']('week')['toJSDate'](),_0x2f10c0=_0x5bea46['weekdayLong']||''):_0x5bea46['hasSame'](_0x1b9fe1,'year')?(_0x1b3df5=_0x5bea46['startOf']('month')['toJSDate'](),_0x2f10c0=_0x5bea46['monthLong']||''):(_0x1b3df5=_0x5bea46['startOf']('year')['toJSDate'](),_0x2f10c0=String(_0x5bea46['year'])),{'startDate':_0x1b3df5,'localizedPeriodName':_0x2f10c0};}class mi extends _0x4ce9da{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4c4e69,_0xa70119,_0x47efdb,_0x5da1f1){super(_0x4c4e69);const _0x5bc7c1=vi(_0xa70119,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xa70119,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x47efdb,this['_requireRevisionName']=_0x5da1f1,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':_0x5bc7c1}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x38de4c){const _0x179c61=new ai(this['locale'],_0x38de4c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x179c61);}['removeRevision'](_0x1adc47){const _0x11e3b4=this['revisionViews']['find'](_0x1f4db9=>_0x1f4db9['id']===_0x1adc47['id']);this['revisionViews']['remove'](_0x11e3b4);}}class as extends _0x4ce9da{constructor(_0x1cd43f){super(_0x1cd43f);const _0x5c73e4=new _0x48381e();_0x5c73e4['content']=_0x29f79f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5c73e4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x1cd43f,'Revision\x20history')]}]});}}class di extends _0x4ce9da{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3f0f96,_0x2076fa,_0x21048f,_0x503500){super(_0x3f0f96);const _0x2e2128=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2076fa,this['_revisionActions']=_0x21048f,this['_requireRevisionName']=_0x503500,this['on']('select',(_0x3e9a6c,_0x331999)=>{this['fire']('revisionSelected',_0x331999);}),this['on']('setName',(_0x1a4e3e,_0x35df4b)=>{this['fire']('revisionSetName',_0x35df4b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3f0f96),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2e2128['if']('isEnabled','ck-disabled',_0x8bc395=>!_0x8bc395)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x555eb7 of this['_revisions'])this['_addRevision'](_0x555eb7);this['_revisions']['on']('add',(_0x13e5ad,_0x33f076)=>{this['_addRevision'](_0x33f076);}),this['_revisions']['on']('remove',(_0x14e570,_0x51eff7)=>{this['_removeRevision'](_0x51eff7);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2dd479=>_0x2dd479['revisionViews']['map'](_0x4159d2=>_0x4159d2))['flat']();}['selectRevision'](_0x1d77c5){for(const _0x41eb3d of this['revisionViews'])_0x1d77c5&&_0x1d77c5['id']===_0x41eb3d['id']?_0x41eb3d['select']():_0x41eb3d['deselect']();}['highlightRevisions'](_0x5eb889){for(const _0x17e498 of this['revisionViews'])_0x5eb889['some'](({id:_0x531155})=>_0x531155===_0x17e498['id'])?_0x17e498['highlight']():_0x17e498['unhighlight']();}['_addRevision'](_0x2477ff){const _0x5d78d3=vi(_0x2477ff['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4cd470=this['timePeriodViews']['get'](0x0);_0x4cd470&&_0x4cd470['startDate']['getTime']()===_0x5d78d3['getTime']()||(_0x4cd470=new mi(this['locale'],_0x5d78d3,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4cd470)),_0x4cd470['addRevision'](_0x2477ff);}['_removeRevision'](_0x32fbf3){const _0x24a136=vi(_0x32fbf3['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x24a136)['removeRevision'](_0x32fbf3);}['_getTimePeriodViewByStartDate'](_0x257d34){return this['timePeriodViews']['find'](_0x468c7a=>_0x468c7a['startDate']['getTime']()===_0x257d34['getTime']());}}class d extends _0x21e419{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x4d05c2(_0x28d055){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x509df8,_0x3ee243){super(_0x3ee243),this['sourceElement']=_0x509df8,this['model']['document']['createRoot']();const _0x3ef217=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3ef217);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1ff238,_0x4d20e0){const _0x58db82=new this(_0x1ff238,_0x4d20e0);return await _0x58db82['initPlugins'](),await _0x58db82['ui']['init'](_0x1ff238),await _0x58db82['data']['init'](_0x58db82['config']['get']('initialData')||''),_0x58db82['fire']('ready'),_0x58db82;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x58fda8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f19f0){function _0x36f94a(_0x6fdf91){return _0x6fdf91['map'](_0x24ca36=>String['fromCharCode'](_0x24ca36))['join']('');}super(_0x4f19f0),this['result']='end',_0x4f19f0[_0x36f94a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36f94a([0x76,0x69,0x65,0x77])][_0x36f94a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36f94a([0x61,0x75,0x74,0x6f]),_0x4f19f0[_0x36f94a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x36f94a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36f94a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x36f94a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x36f94a([0x6f,0x6b])});}}class k extends _0x58fda8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x490adf){if(super(_0x490adf),!this['editor']['config']['get']('revisionHistory'))throw new _0x58d8ca('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x487735=>this['_showRevisionViewer']({..._0x487735,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x701fbc=>this['_closeRevisionViewer'](_0x701fbc)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4d13a0=>this['_restoreRevision'](_0x4d13a0)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x41a7a7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x41a7a7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2db642){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2db642);}['getRevision'](_0x159c81){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x159c81);}['getRevisions'](_0x2595d7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2595d7||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x27798b=this['editor'],_0x5c4b20=_0xb5ee61(_0x27798b,p),_0x35fdc2=_0x27798b['plugins']['get']('RevisionTracker'),_0x4aa248=_0x27798b['plugins']['get']('Users')['users'];return _0x5c4b20['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5c4b20['lazyRoots'],(_0x5c4b20['plugins']['push'](_t,m,R,class extends _0x58fda8{static get['requires'](){return[m,'Users'];}['init'](){const _0x375b11=this['editor']['plugins']['get']('Users');for(const _0x29e960 of _0x4aa248)_0x29e960['isAnonymous']||_0x375b11['getUser'](_0x29e960['id'])||_0x375b11['addUser'](_0x29e960);const _0x1beb7b=_0x35fdc2['repository']['getRevisions']();let _0x519c49=null;const _0x20edd0=this['editor']['plugins']['get']('RevisionViewer');_0x20edd0['adapter']=_0x35fdc2['adapter'],_0x20edd0['bind']('isEnabled')['to'](_0x35fdc2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x27798b,'isReadOnly',_0x12a109=>!_0x12a109);for(const _0x377c45 of _0x1beb7b){const _0xee83c6=null===_0x377c45['creator'];if(_0xee83c6&&_0x377c45['toVersion']===_0x377c45['fromVersion'])continue;const _0x4c1ce2=_0x377c45['toJSON']();_0x20edd0['addRevisionData'](_0x4c1ce2,(_0x3c864c,_0x43d0c4,_0x4fc2d1)=>{if(_0xee83c6){if(_0x519c49)_0x519c49['_update'](_0x3c864c,_0x43d0c4);else{if(!_0x43d0c4){const _0xe29d2a=_0x4fc2d1['toJSON']();_0xe29d2a['id']=_0xebbfb1(),_0x35fdc2['saveRevision'](_0xe29d2a,_0x4fc2d1['toVersion'])['then'](_0xb66e47=>{_0x519c49=_0xb66e47;});}}}else _0x377c45['_update'](_0x3c864c,_0x43d0c4);});}}},d),_0x5c4b20);}['_enhanceShowRevisionViewerCallback'](){const _0x271a0c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1af18b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x441b69=this['editor']['plugins']['get']('Autosave');await _0x441b69['save']();}else await _0x1af18b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x530c78=this['editor']['plugins']['get']('Dialog');_0x530c78['isOpen']&&_0x530c78['hide']();}const _0x4d79b3=this['_getRevisionViewerEditorConfig']();return _0x271a0c(_0x4d79b3)['then'](_0x228b7d=>{return(this['_viewerEditor']=_0x228b7d,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'),_0x228b7d);})['catch'](_0x558750=>(console['error'](_0x558750),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x195d9d=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'](),_0x195d9d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x43e3cf=this['editor']['plugins']['get']('Annotations');_0x43e3cf['refreshVisibility'](),_0x43e3cf['refreshPositioning']();}})));}['_showRevisionViewer'](_0x340607){const _0x27d73b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3b1694=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x546df2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x546df2,_0x340607)['then'](_0x108092=>(_0x3b1694['style']['display']='block',_0x27d73b['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x108092));}['_closeRevisionViewer'](_0x311ce6){const _0x42c4a1=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x42c4a1['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x311ce6['destroy']();}async['_restoreRevision'](_0xddb30a){const _0x488e36=this['editor'],_0x571f93=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5ad841=_0x488e36['plugins']['get']('RevisionTracker'),_0x355cc0=_0x488e36['plugins']['get']('RevisionHistoryUtils'),_0x5d16f9=_0x571f93['repository']['getRevision'](_0xddb30a);let _0x1bef88,_0x48e6bb,_0x282562;try{await _0x355cc0['loadRevisionData'](_0x5d16f9,this['adapter']),_0x1bef88=_0x355cc0['getRevisionDocumentData'](_0x5d16f9),_0x48e6bb=_0x355cc0['getRevisionRootsAttributes'](_0x5d16f9);}catch(_0x4507ea){return void console['error'](_0x4507ea);}_0x488e36['model']['change'](_0x34fc9f=>{for(const _0x4deea7 of Array['from'](_0x488e36['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x34fc9f['removeMarker'](_0x4deea7);}),_0x571f93['isReady']=!0x1,_0x488e36['model']['enqueueChange'](_0x333897=>{_0x333897['setSelection'](null),_0x333897['removeSelectionAttribute'](_0x488e36['model']['document']['selection']['getAttributeKeys']());const _0x333d45=Object['keys'](_0x1bef88);for(const _0x390d60 of _0x488e36['model']['document']['roots'])'$graveyard'!=_0x390d60['rootName']&&_0x390d60['isAttached']()&&!_0x333d45['includes'](_0x390d60['rootName'])&&_0x333897['detachRoot'](_0x390d60);for(const _0x12b31f of _0x333d45){let _0x116628=_0x488e36['model']['document']['getRoot'](_0x12b31f);_0x116628&&_0x116628['isAttached']()||(_0x116628=_0x333897['addRoot'](_0x12b31f));const _0x12d3e2=_0x48e6bb[_0x12b31f],_0x124710=Object['keys'](_0x12d3e2),_0x4acd2d=_0x1bef88[_0x12b31f];for(const _0x59337f of _0x116628['getAttributeKeys']())_0x124710['includes'](_0x59337f)||_0x333897['removeAttribute'](_0x59337f,_0x116628);for(const _0x574b09 of _0x124710)_0x333897['setAttribute'](_0x574b09,_0x48e6bb[_0x12b31f][_0x574b09],_0x116628);_0x333897['remove'](_0x333897['createRangeIn'](_0x116628)),_0x333897['insert'](_0x488e36['data']['parse'](_0x4acd2d,_0x116628),_0x116628,0x0);}});const _0x539bf7=g(_0x488e36['locale'],'Restored');if(_0x5d16f9['name'])_0x282562=-0x1==_0x5d16f9['name']['indexOf'](_0x539bf7)?_0x539bf7+':\x20'+_0x5d16f9['name']:_0x5d16f9['name'];else _0x282562=_0x539bf7+':\x20'+(_0x5d16f9['createdAt']['toLocaleDateString'](_0x488e36['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5d16f9['createdAt']['toLocaleTimeString'](_0x488e36['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5ad841['saveRevision']({'name':_0x282562}),_0x571f93['isReady']=!0x0,_0x488e36['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x4cbcc0){super(_0x4cbcc0),this['_revisionViewer']=_0x4cbcc0['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x581dc1=this['_revisionsRepository']['_revisions'],_0x2efbb6=this['_createRevisionActions'](),_0x441b30=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x581dc1,_0x2efbb6,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',(_0x206fad,_0x5ee812)=>{_0x5ee812['revisionViews']['on']('add',(_0x229bd4,_0x4786d9)=>{_0x4786d9['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)),_0x441b30['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x267647=this['_revisionsRepository']['getRevision'](0x0);if(_0x267647){const _0x290b86=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x267647['id']);this['_revisionViewer']['compare'](_0x267647,_0x290b86);}}['_handleRevisionSelected'](_0x35bb11,_0x502fcc){const _0x12efe1=this['_revisionsRepository']['getRevision'](_0x502fcc['id']),_0x4e65bb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x12efe1['id']);this['_revisionViewer']['compare'](_0x12efe1,_0x4e65bb);}['_handleRevisionSetName'](_0x90e976,_0xa2efe7){this['_revisionsRepository']['getRevision'](_0xa2efe7['id'])['setName'](_0xa2efe7['name']);}['_handleDiffChange'](_0x1a982c,_0x3fcb43,_0x164abe){const _0x5ae7c6=this['_revisionsRepository']['getRevisionsInDiff'](_0x164abe);_0x5ae7c6['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5ae7c6),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5ae7c6[0x0]));}['_createRevisionActions'](){const _0xbc0f5e=this['editor'],_0x3112fa=d['availableRevisionActions'],_0x42efcb=_0xbc0f5e['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x42efcb['length'])return _0x42efcb['map'](_0x5106a4=>{const _0x15dafa='string'==typeof _0x5106a4?Object['assign']({},_0x3112fa[_0x5106a4]):_0x5106a4;return _0x15dafa['action']=_0x15dafa['action']['bind'](this,_0xbc0f5e),_0x15dafa['isVisible']&&(_0x15dafa['isVisible']=_0x15dafa['isVisible']['bind'](this,_0xbc0f5e)),_0x15dafa;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1959f5},_0x43d005)=>{const _0x1cf8d5=_0x1959f5['get'](m),_0x2954f3=_0x1cf8d5['repository'];let _0x1096ba=_0x1cf8d5['diff']['newRevisionId'],_0x441f8b=_0x43d005['id'];_0x2954f3['getIndex'](_0x1096ba)>_0x2954f3['getIndex'](_0x441f8b)&&([_0x1096ba,_0x441f8b]=[_0x441f8b,_0x1096ba]),_0x1cf8d5['compare'](_0x1096ba,_0x441f8b);},'isVisible':({plugins:_0x33361d},_0x392e03)=>{const _0x173561=_0x33361d['get'](m);return!(_0x173561['repository']['getRevisionsInDiff'](_0x173561['diff'])['length']>0x2)&&!_0x392e03['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xd993e5,{id:_0x5a0b76})=>{_0xd993e5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5a0b76);},'isVisible':({plugins:_0x4a5e61},_0x142b08)=>!!_0x4a5e61['get'](m)['repository']['getLaterVisibleRevision'](_0x142b08['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xc63146},{id:_0x987e9c,revisionNameView:_0x237a88})=>{const _0x11264a=_0xc63146['get'](m),_0xfd3ebc=_0x11264a['repository']['getEarlierVisibleRevision'](_0x987e9c);_0x11264a['compare'](_0x987e9c,_0xfd3ebc),_0x237a88['focus'](),_0x237a88['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x9ef9b0,_0x42ce2d){super(_0x9ef9b0),this['_view']=_0x42ce2d,this['_toolbarConfig']=et(_0x9ef9b0['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x19ed58){const _0x4d6abb=this['editor'],_0x2fe339=this['view'],_0x5c97f8=_0x4d6abb['editing']['view'],_0x41a6b3=_0x2fe339['editable'],_0x1fb74f=_0x5c97f8['document']['getRoot']();_0x41a6b3['name']=_0x1fb74f['rootName'],_0x2fe339['render']();const _0xff4e97=_0x41a6b3['element'];this['setEditableElement'](_0x41a6b3['name'],_0xff4e97),_0x2fe339['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5c97f8['attachDomRoot'](_0xff4e97),this['_elementReplacer']['replace'](_0x19ed58,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x26f9f7=this['view'],_0x59674b=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x59674b['detachDomRoot'](_0x26f9f7['editable']['name']),_0x26f9f7['destroy']();}['_initToolbar'](){const _0x4d8cca=this['view'];_0x4d8cca['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4d8cca['stickyPanel']['limiterElement']=_0x4d8cca['element'],_0x4d8cca['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x576d16})=>_0x576d16),_0x4d8cca['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4d8cca['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x9b825f,_0xce75f2,_0x5af3e3={}){super(_0x9b825f),this['stickyPanel']=new ht(_0x9b825f),this['toolbar']=new dt(_0x9b825f,{'shouldGroupWhenFull':_0x5af3e3['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x9b825f,_0xce75f2);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x390138(_0x24867e){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2699be,_0x5f15d4){super(_0x5f15d4),this['sourceElement']=_0x2699be,this['model']['document']['createRoot']();const _0x4d95de=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4d95de);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x50b0b4,_0xdc90f6){const _0x13d912=new this(_0x50b0b4,_0xdc90f6);return await _0x13d912['initPlugins'](),await _0x13d912['ui']['init'](_0x50b0b4),await _0x13d912['data']['init'](_0x13d912['config']['get']('initialData')||''),_0x13d912['fire']('ready'),_0x13d912;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x21e419{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x254c0e){function _0x368327(_0x3bdf95){return _0x3bdf95['map'](_0x9560fc=>String['fromCharCode'](_0x9560fc))['join']('');}super(_0x254c0e),this['result']='end',_0x254c0e[_0x368327([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x368327([0x76,0x69,0x65,0x77])][_0x368327([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x368327([0x61,0x75,0x74,0x6f]),_0x254c0e[_0x368327([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x368327([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x368327([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x368327([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x368327([0x6f,0x6b])});}}class k extends _0x21e419{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x3a164d){if(super(_0x3a164d),!this['editor']['config']['get']('revisionHistory'))throw new _0x3e64cf('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x48445d=>this['_showRevisionViewer']({..._0x48445d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x56b920=>this['_closeRevisionViewer'](_0x56b920)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2f9add=>this['_restoreRevision'](_0x2f9add)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x290abc){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x290abc;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2b830c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2b830c);}['getRevision'](_0x5d1bd6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5d1bd6);}['getRevisions'](_0x5ccbe2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5ccbe2||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xd1b377=this['editor'],_0x418f8d=_0x55119b(_0xd1b377,p),_0x2f5766=_0xd1b377['plugins']['get']('RevisionTracker'),_0x462dfc=_0xd1b377['plugins']['get']('Users')['users'];return _0x418f8d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x418f8d['lazyRoots'],(_0x418f8d['plugins']['push'](yt,m,R,class extends _0x21e419{static get['requires'](){return[m,'Users'];}['init'](){const _0x24b89d=this['editor']['plugins']['get']('Users');for(const _0x297ee6 of _0x462dfc)_0x297ee6['isAnonymous']||_0x24b89d['getUser'](_0x297ee6['id'])||_0x24b89d['addUser'](_0x297ee6);const _0x5efe58=_0x2f5766['repository']['getRevisions']();let _0x14a01a=null;const _0x5aa8d6=this['editor']['plugins']['get']('RevisionViewer');_0x5aa8d6['adapter']=_0x2f5766['adapter'],_0x5aa8d6['bind']('isEnabled')['to'](_0x2f5766),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xd1b377,'isReadOnly',_0x47a722=>!_0x47a722);for(const _0x5670c1 of _0x5efe58){const _0x176e37=null===_0x5670c1['creator'];if(_0x176e37&&_0x5670c1['toVersion']===_0x5670c1['fromVersion'])continue;const _0x534fbb=_0x5670c1['toJSON']();_0x5aa8d6['addRevisionData'](_0x534fbb,(_0x15914f,_0x5a2d59,_0x23427f)=>{if(_0x176e37){if(_0x14a01a)_0x14a01a['_update'](_0x15914f,_0x5a2d59);else{if(!_0x5a2d59){const _0x16f1c3=_0x23427f['toJSON']();_0x16f1c3['id']=_0x1d84e2(),_0x2f5766['saveRevision'](_0x16f1c3,_0x23427f['toVersion'])['then'](_0x474de=>{_0x14a01a=_0x474de;});}}}else _0x5670c1['_update'](_0x15914f,_0x5a2d59);});}}},d),_0x418f8d);}['_enhanceShowRevisionViewerCallback'](){const _0x304691=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xf18a02=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1495be=this['editor']['plugins']['get']('Autosave');await _0x1495be['save']();}else await _0xf18a02['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3ac1ef=this['editor']['plugins']['get']('Dialog');_0x3ac1ef['isOpen']&&_0x3ac1ef['hide']();}const _0x478010=this['_getRevisionViewerEditorConfig']();return _0x304691(_0x478010)['then'](_0x1d5e84=>{return(this['_viewerEditor']=_0x1d5e84,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'),_0x1d5e84);})['catch'](_0x3e1ec2=>(console['error'](_0x3e1ec2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2e9dce=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'](),_0x2e9dce(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xb32c6e=this['editor']['plugins']['get']('Annotations');_0xb32c6e['refreshVisibility'](),_0xb32c6e['refreshPositioning']();}})));}['_showRevisionViewer'](_0x41b82a){const _0x5b18f0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1e7a9e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3d76f5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3d76f5,_0x41b82a)['then'](_0x1aee25=>(_0x1e7a9e['style']['display']='block',_0x5b18f0['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x1aee25));}['_closeRevisionViewer'](_0x4fd491){const _0x5feeaa=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5feeaa['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4fd491['destroy']();}async['_restoreRevision'](_0x48910d){const _0x1d1772=this['editor'],_0xa2c7d7=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x289d19=_0x1d1772['plugins']['get']('RevisionTracker'),_0x2b8c8d=_0x1d1772['plugins']['get']('RevisionHistoryUtils'),_0x40a687=_0xa2c7d7['repository']['getRevision'](_0x48910d);let _0x2e819e,_0x42afd3,_0x3d3814;try{await _0x2b8c8d['loadRevisionData'](_0x40a687,this['adapter']),_0x2e819e=_0x2b8c8d['getRevisionDocumentData'](_0x40a687),_0x42afd3=_0x2b8c8d['getRevisionRootsAttributes'](_0x40a687);}catch(_0x249026){return void console['error'](_0x249026);}_0x1d1772['model']['change'](_0x1cfc9b=>{for(const _0xed2f06 of Array['from'](_0x1d1772['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1cfc9b['removeMarker'](_0xed2f06);}),_0xa2c7d7['isReady']=!0x1,_0x1d1772['model']['enqueueChange'](_0xac3b04=>{_0xac3b04['setSelection'](null),_0xac3b04['removeSelectionAttribute'](_0x1d1772['model']['document']['selection']['getAttributeKeys']());const _0x2c98b1=Object['keys'](_0x2e819e);for(const _0x2428b6 of _0x1d1772['model']['document']['roots'])'$graveyard'!=_0x2428b6['rootName']&&_0x2428b6['isAttached']()&&!_0x2c98b1['includes'](_0x2428b6['rootName'])&&_0xac3b04['detachRoot'](_0x2428b6);for(const _0x1a1a11 of _0x2c98b1){let _0x1f6085=_0x1d1772['model']['document']['getRoot'](_0x1a1a11);_0x1f6085&&_0x1f6085['isAttached']()||(_0x1f6085=_0xac3b04['addRoot'](_0x1a1a11));const _0x4796ed=_0x42afd3[_0x1a1a11],_0x45068e=Object['keys'](_0x4796ed),_0x3695f2=_0x2e819e[_0x1a1a11];for(const _0x33ae1a of _0x1f6085['getAttributeKeys']())_0x45068e['includes'](_0x33ae1a)||_0xac3b04['removeAttribute'](_0x33ae1a,_0x1f6085);for(const _0x2c96a7 of _0x45068e)_0xac3b04['setAttribute'](_0x2c96a7,_0x42afd3[_0x1a1a11][_0x2c96a7],_0x1f6085);_0xac3b04['remove'](_0xac3b04['createRangeIn'](_0x1f6085)),_0xac3b04['insert'](_0x1d1772['data']['parse'](_0x3695f2,_0x1f6085),_0x1f6085,0x0);}});const _0x43787f=g(_0x1d1772['locale'],'Restored');if(_0x40a687['name'])_0x3d3814=-0x1==_0x40a687['name']['indexOf'](_0x43787f)?_0x43787f+':\x20'+_0x40a687['name']:_0x40a687['name'];else _0x3d3814=_0x43787f+':\x20'+(_0x40a687['createdAt']['toLocaleDateString'](_0x1d1772['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x40a687['createdAt']['toLocaleTimeString'](_0x1d1772['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x289d19['saveRevision']({'name':_0x3d3814}),_0xa2c7d7['isReady']=!0x0,_0x1d1772['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|