@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250501.0 → 0.0.0-nightly-20250503.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +11 -11
- package/src/revisionsrepository.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x191d9e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1db6ae){super(),this['id']=_0x1db6ae['id']||_0x978a72(),this['creator']=_0x1db6ae['creator']||null,this['authors']=_0x1db6ae['authors']||[],this['diffData']=_0x1db6ae['diffData']||null,this['toVersion']=_0x1db6ae['toVersion']||0x0,this['fromVersion']=_0x1db6ae['fromVersion']||0x0,this['set']('name',_0x1db6ae['name']||''),this['set']('createdAt',_0x1db6ae['createdAt']||new Date()),this['set']('attributes',_0x1db6ae['attributes']||{});}['setName'](_0x168afa){this['_update']({'name':_0x168afa});}['setAttribute'](_0x2bb14c,_0x3efeac){const _0x1608ee=_0x22538e(this['attributes']);_0x1bbec6(_0x1608ee,_0x2bb14c,_0x3efeac),this['_update']({'attributes':_0x1608ee});}['removeAttribute'](_0x37df0e){const _0x21d9e3=_0x22538e(this['attributes']);_0x208d55(_0x21d9e3,_0x37df0e),this['_update']({'attributes':_0x21d9e3});}['_update'](_0x4c98dc,_0x174186=!0x1){let _0x12b45b=!0x1;const _0x233251={'id':this['id']},_0x355943=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5821b3 of _0x355943){const _0x546638=_0x4c98dc[_0x5821b3];void 0x0!==_0x546638&&_0x546638!==this[_0x5821b3]&&(this[_0x5821b3]=_0x546638,_0x233251[_0x5821b3]=_0x546638,_0x12b45b=!0x0);}_0x12b45b&&(_0x233251['authors']&&(_0x233251['authorsIds']=_0x233251['authors']['map'](_0x1daa55=>_0x1daa55['id']),delete _0x233251['authors']),this['fire']('_update',_0x233251,_0x174186));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4d5797=>_0x4d5797['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x123d7e{['_revisions'];static get['requires'](){return[_0x202ba3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x127d3d){super(_0x127d3d),this['_revisions']=new _0x44fedb();}['afterInit'](){!async function(_0x5ce630){const _0x4bf5ac=_0x4368e2([0x32,0x65,0x43,0x41,0x54,0x6a,0x78,0x63,0x53,0x57,0x58,0x77,0x39,0x49,0x4a,0x73,0x42,0x6c,0x45,0x5a,0x47,0x70,0x59,0x6d,0x6e,0x61,0x6f,0x62,0x76,0x44,0x35,0x79,0x72,0x51,0x68,0x48,0x74,0x66,0x75,0x37,0x38,0x71,0x4f,0x4e,0x34,0x4b,0x55,0x46,0x67,0x6b,0x36,0x50,0x56,0x64,0x69,0x33,0x52,0x31,0x7a,0x4d,0x4c,0x30]),_0x22008f=0xeb829,_0x22b810=0x459b7a3d,_0x895d4b=0x459c1ca5^_0x22b810,_0x1acb80=window[_0x4368e2([0x44,0x61,0x74,0x65])][_0x4368e2([0x6e,0x6f,0x77])](),_0x333967=_0x5ce630[_0x4368e2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31e261=new window[(_0x4368e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc8dc4=>{_0x333967[_0x4368e2([0x6f,0x6e,0x63,0x65])](_0x4368e2([0x72,0x65,0x61,0x64,0x79]),_0xc8dc4);}),_0x28dd5b={[_0x4368e2([0x6b,0x74,0x79])]:_0x4368e2([0x45,0x43]),[_0x4368e2([0x75,0x73,0x65])]:_0x4368e2([0x73,0x69,0x67]),[_0x4368e2([0x63,0x72,0x76])]:_0x4368e2([0x50,0x2d,0x32,0x35,0x36]),[_0x4368e2([0x78])]:_0x4368e2([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]),[_0x4368e2([0x79])]:_0x4368e2([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]),[_0x4368e2([0x61,0x6c,0x67])]:_0x4368e2([0x45,0x53,0x32,0x35,0x36])},_0x3c8ca5=_0x333967[_0x4368e2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4368e2([0x67,0x65,0x74])](_0x4368e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34021c(){let _0x2eccfd,_0x55ac6b=null,_0x1afd8d=null;try{if(_0x3c8ca5==_0x4368e2([0x47,0x50,0x4c]))return _0x4368e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2eccfd=_0x13b7b1(),!_0x2eccfd)return _0x4368e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2eccfd[_0x4368e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1afd8d=_0x4ffe2a(_0x2eccfd[_0x4368e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2eccfd[_0x4368e2([0x6a,0x74,0x69])])),await _0x2de44a()?_0x589418()?_0x4a38fd()?_0x4368e2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e2d1e()?(_0x2eccfd[_0x4368e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4368e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55ac6b=_0x2004b1(_0x4368e2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2eccfd[_0x4368e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4368e2([0x74,0x72,0x69,0x61,0x6c])&&(_0x55ac6b=_0x2004b1(_0x4368e2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x143ce3()):_0x4368e2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4368e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4368e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x12e657){return _0x4368e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a38fd(){const _0x2ab179=[_0x4368e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4368e2([0x74,0x72,0x69,0x61,0x6c])][_0x4368e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eccfd[_0x4368e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1acb80/0x3e8:0xe10*_0x895d4b;return _0x2eccfd[_0x4368e2([0x65,0x78,0x70])]<_0x2ab179;}function _0x589418(){const _0x40e027=_0x2eccfd[_0x4368e2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x40e027)return!0x1;if(_0x40e027[_0x4368e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4368e2([0x2a])))return!0x0;if(_0x40e027[_0x4368e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4368e2([0x52,0x48])))return!0x0;if(_0x40e027[_0x4368e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4368e2([0x52,0x52,0x48]))){if(_0x27ef6b())return!0x0;if(_0x260fb8()||_0xf10c58())return!0x0;}return!0x1;}function _0x2e2d1e(){const _0x2a7b2=_0x2eccfd[_0x4368e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a7b2||0x0==_0x2a7b2[_0x4368e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x77dad4}=new URL(window[_0x4368e2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2a7b2[_0x4368e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77dad4))return!0x0;const _0x2e4543=_0x77dad4[_0x4368e2([0x73,0x70,0x6c,0x69,0x74])](_0x4368e2([0x2e]));return _0x2a7b2[_0x4368e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b4d81=>_0x1b4d81[_0x4368e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4368e2([0x2a])))[_0x4368e2([0x6d,0x61,0x70])](_0x102f81=>_0x102f81[_0x4368e2([0x73,0x70,0x6c,0x69,0x74])](_0x4368e2([0x2e])))[_0x4368e2([0x73,0x6f,0x6d,0x65])](_0x55e322=>_0x2e4543[_0x4368e2([0x65,0x76,0x65,0x72,0x79])]((_0x262c37,_0x36a0dc)=>_0x55e322[_0x36a0dc]===_0x262c37||_0x55e322[_0x36a0dc]===_0x4368e2([0x2a])));}function _0x143ce3(){return _0x55ac6b&&_0x1afd8d?new window[(_0x4368e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x387edc,_0x3b6d7a)=>{_0x55ac6b[_0x4368e2([0x74,0x68,0x65,0x6e])](_0x387edc,_0x3b6d7a),_0x1afd8d[_0x4368e2([0x74,0x68,0x65,0x6e])](_0xc8a08c=>{_0xc8a08c!=_0x4368e2([0x56,0x61,0x6c,0x69,0x64])&&_0x387edc(_0xc8a08c);},_0x3b6d7a);}):_0x55ac6b||_0x1afd8d||_0x4368e2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ffe2a(_0x575936,_0x3a4136){return new window[(_0x4368e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ea17=>{if(_0x26b384())return _0x34ea17(_0x4368e2([0x56,0x61,0x6c,0x69,0x64]));_0x2acae0(),_0x333967[_0x4368e2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4368e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9ad26c=!0x1;const _0x6080f6=_0x978a72();function _0x1ad03(_0x2b13ba){return!!_0x2b13ba&&(typeof _0x2b13ba===_0x4368e2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b13ba===_0x4368e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b13ba[_0x4368e2([0x74,0x68,0x65,0x6e])]===_0x4368e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b13ba[_0x4368e2([0x63,0x61,0x74,0x63,0x68])]===_0x4368e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3cd221(_0x352f8c){_0xae8c81(_0x352f8c)[_0x4368e2([0x74,0x68,0x65,0x6e])](_0x17e56d=>{if(!_0x17e56d||_0x17e56d[_0x4368e2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4368e2([0x6f,0x6b]))return _0x4368e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xeb9a84(_0x2b1a7b(_0x6080f6+_0x3a4136))!=_0x17e56d[_0x4368e2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4368e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4368e2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4368e2([0x74,0x68,0x65,0x6e])](_0x12a284=>(_0x5e8f98(),_0x12a284),()=>{const _0x38c017=_0x1ed2cf();return null==_0x38c017?(_0x5e8f98(),_0x4368e2([0x56,0x61,0x6c,0x69,0x64])):_0x4368e2(_0x1acb80-_0x38c017>(0x6197fe3d^_0x22b810)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4368e2([0x74,0x68,0x65,0x6e])](_0x34ea17)[_0x4368e2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34ea17(_0x4368e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f7688=0x45ad94bd^_0x22b810;function _0x5e8f98(){const _0x1c01a3=_0x4368e2([0x6c,0x6c,0x63,0x74,0x2d])+_0xeb9a84(_0x2b1a7b(_0x575936)),_0x14df05=_0x2aba9a(_0xeb9a84(window[_0x4368e2([0x4d,0x61,0x74,0x68])][_0x4368e2([0x63,0x65,0x69,0x6c])](_0x1acb80/_0x2f7688)));window[_0x4368e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4368e2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c01a3,_0x14df05);}function _0x1ed2cf(){const _0x2d6676=_0x4368e2([0x6c,0x6c,0x63,0x74,0x2d])+_0xeb9a84(_0x2b1a7b(_0x575936)),_0x518a55=window[_0x4368e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4368e2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d6676);return _0x518a55?window[_0x4368e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2aba9a(_0x518a55),0x10)*_0x2f7688:null;}function _0xae8c81(_0x1d1f7d){return new window[(_0x4368e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5af35e,_0x3b82d6)=>{_0x1d1f7d[_0x4368e2([0x74,0x68,0x65,0x6e])](_0x5af35e,_0x3b82d6),window[_0x4368e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b82d6,0x459aaefd^_0x22b810);});}}_0x333967[_0x4368e2([0x6f,0x6e])](_0x4368e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ce491,_0x3ebc3e)=>{if(_0x3ebc3e[0x0]!=_0x575936)return _0x34ea17(_0x4368e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ebc3e[0x1]={..._0x3ebc3e[0x1],[_0x4368e2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6080f6};},{[_0x4368e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4368e2([0x68,0x69,0x67,0x68])}),_0x333967[_0x4368e2([0x6f,0x6e])](_0x4368e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ff9e6=>{_0x1ad03(_0x3ff9e6[_0x4368e2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9ad26c=!0x0,_0x3cd221(_0x3ff9e6[_0x4368e2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4368e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4368e2([0x6c,0x6f,0x77])}),_0x31e261[_0x4368e2([0x74,0x68,0x65,0x6e])](()=>{_0x9ad26c||_0x34ea17(_0x4368e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26b384(){return _0x333967[_0x4368e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4368e2([0x76,0x69,0x65,0x77])][_0x4368e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4368e2([0x61,0x75,0x74,0x6f]);}function _0x2acae0(){_0x333967[_0x4368e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4368e2([0x76,0x69,0x65,0x77])][_0x4368e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4368e2([0x61,0x75,0x74,0x6f]);}}function _0x2004b1(_0x54239d){const _0x27ac02=[new window[(_0x4368e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20814d=>setTimeout(_0x20814d,0x459244f1^_0x22b810)),_0x31e261[_0x4368e2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4368e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39078e=>{const _0x31d2bc=0x459b7a3a^_0x22b810,_0x1878d2=_0x5ce630[_0x4368e2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x570e4e(){_0x1878d2[_0x4368e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x31d2bc&&_0x39078e();}_0x570e4e(),_0x1878d2[_0x4368e2([0x6f,0x6e])](_0x4368e2([0x61,0x64,0x64]),_0x570e4e);})),new window[(_0x4368e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30f85a=>{function _0x21b82e(){for(const _0x49111e in window)if(window[_0x4368e2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4368e2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x49111e))&&window[_0x49111e]==_0x22008f)return _0x30f85a();_0x333967[_0x4368e2([0x73,0x74,0x61,0x74,0x65])]!=_0x4368e2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4368e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21b82e,0x459b69b5^_0x22b810);}_0x66b580(_0x4368e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x21b82e();})];return window[_0x4368e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4368e2([0x72,0x61,0x63,0x65])](_0x27ac02)[_0x4368e2([0x74,0x68,0x65,0x6e])](()=>_0x54239d);}async function _0x1caaeb(){if(await _0x31e261,_0x66b580(_0x4368e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4d4c12=_0x5ce630[_0x4368e2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5efd84=_0x5ce630[_0x4368e2([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])](_0x4d4c12[_0x4368e2([0x69,0x64])]),_0x798211=_0x1861dd(_0x4368e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x798211[_0x4368e2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4d4c12['id'],_0x5efd84?_0x5efd84['id']:null,!0x0),_0x798211[_0x4368e2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4368e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x798211[_0x4368e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x798211[_0x4368e2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x11c841,void(_0x798211[_0x4368e2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x11c841);}if(_0x66b580(_0x4368e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x201885=_0x1861dd(_0x4368e2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x201885[_0x4368e2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4368e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x201885[_0x4368e2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x201885[_0x4368e2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x11c841,_0x201885[_0x4368e2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x11c841;}_0x333967[_0x4368e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4368e2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x11c841,_0x333967[_0x4368e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4368e2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x11c841,_0x333967[_0x4368e2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4368e2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27ef6b(){return _0x66b580(_0x4368e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1861dd(_0x4368e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4368e2([0x73,0x74,0x61,0x74,0x65])]==_0x4368e2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x260fb8(){return _0x66b580(_0x4368e2([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 _0xf10c58(){return _0x66b580(_0x4368e2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2d94cc(_0x49da85){const _0x24a4b9=_0x5854ba();_0x333967[_0x24a4b9]=_0x4368e2([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])+_0x49da85,_0x49da85[_0x4368e2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4368e2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5854ba()]=_0x22008f),_0x49da85!=_0x4368e2([0x56,0x61,0x6c,0x69,0x64])&&_0x1caaeb();}function _0x5854ba(){const _0x24c14c=window[_0x4368e2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4368e2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4368e2([0x6e,0x6f,0x77])]())[_0x4368e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4368e2([0x2e]),'');let _0x5085b6=_0x4368e2([0x65]);for(let _0x42e4b6=0x0;_0x42e4b6<_0x24c14c[_0x4368e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42e4b6+=0x2){let _0x5ea155=window[_0x4368e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24c14c[_0x4368e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42e4b6,_0x42e4b6+0x2));_0x5ea155>=_0x4bf5ac[_0x4368e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ea155-=_0x4bf5ac[_0x4368e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5085b6+=_0x4bf5ac[_0x5ea155];}return _0x5085b6;}function _0x13b7b1(){const _0x140127=_0x3c8ca5[_0x4368e2([0x73,0x70,0x6c,0x69,0x74])](_0x4368e2([0x2e]));if(0x3!=_0x140127[_0x4368e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55a99d(_0x140127[0x1]);function _0x55a99d(_0x32b40f){const _0x2995ea=_0x306920(_0x32b40f);return _0x2995ea&&_0x2193be()?_0x2995ea:null;function _0x2193be(){const _0x50144f=_0x2995ea[_0x4368e2([0x6a,0x74,0x69])],_0x4a87a9=window[_0x4368e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50144f[_0x4368e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50144f[_0x4368e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa23973={..._0x2995ea,[_0x4368e2([0x6a,0x74,0x69])]:_0x50144f[_0x4368e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50144f[_0x4368e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa23973[_0x4368e2([0x76,0x63])],_0x2b1a7b(_0xa23973)==_0x4a87a9;}}}async function _0x2de44a(){let _0x3c60a2=!0x0;try{const _0x3dc452=_0x3c8ca5[_0x4368e2([0x73,0x70,0x6c,0x69,0x74])](_0x4368e2([0x2e])),[_0x434172,_0x47bd9f,_0x1b4e58]=_0x3dc452;return _0x5ed95c(_0x434172),await _0x129522(_0x434172,_0x47bd9f,_0x1b4e58),_0x3c60a2;}catch(_0x3f4bf2){return!0x1;}function _0x5ed95c(_0x271554){const _0xcd00a1=_0x306920(_0x271554);_0xcd00a1&&_0xcd00a1[_0x4368e2([0x61,0x6c,0x67])]==_0x4368e2([0x45,0x53,0x32,0x35,0x36])||(_0x3c60a2=!0x1);}async function _0x129522(_0x11fb47,_0x211334,_0x1f0de6){const _0x59ae45=window[_0x4368e2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4368e2([0x66,0x72,0x6f,0x6d])](_0x12ec69(_0x1f0de6),_0x456032=>_0x456032[_0x4368e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4abad0=new window[(_0x4368e2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4368e2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11fb47+_0x4368e2([0x2e])+_0x211334),_0xe1e2b8=window[_0x4368e2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4368e2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe1e2b8)return;const _0x2b8770=await _0xe1e2b8[_0x4368e2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4368e2([0x6a,0x77,0x6b]),_0x28dd5b,{[_0x4368e2([0x6e,0x61,0x6d,0x65])]:_0x4368e2([0x45,0x43,0x44,0x53,0x41]),[_0x4368e2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4368e2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4368e2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe1e2b8[_0x4368e2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4368e2([0x6e,0x61,0x6d,0x65])]:_0x4368e2([0x45,0x43,0x44,0x53,0x41]),[_0x4368e2([0x68,0x61,0x73,0x68])]:{[_0x4368e2([0x6e,0x61,0x6d,0x65])]:_0x4368e2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b8770,_0x59ae45,_0x4abad0)||(_0x3c60a2=!0x1);}}function _0x306920(_0x2a7089){return _0x2a7089[_0x4368e2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4368e2([0x65,0x79]))?JSON[_0x4368e2([0x70,0x61,0x72,0x73,0x65])](_0x12ec69(_0x2a7089)):null;}function _0x12ec69(_0x3d505a){return window[_0x4368e2([0x61,0x74,0x6f,0x62])](_0x3d505a[_0x4368e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4368e2([0x2b]))[_0x4368e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4368e2([0x2f])));}function _0x2b1a7b(_0x59f505){let _0x5b1238=0x1505;function _0x49c3d8(_0x144d61){for(let _0x510f16=0x0;_0x510f16<_0x144d61[_0x4368e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x510f16++){const _0x24b2a0=_0x144d61[_0x4368e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x510f16);_0x5b1238=(_0x5b1238<<0x5)+_0x5b1238+_0x24b2a0,_0x5b1238&=_0x5b1238;}}function _0x165633(_0x41c1a7){Array[_0x4368e2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41c1a7)?_0x41c1a7[_0x4368e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x165633):_0x41c1a7&&typeof _0x41c1a7==_0x4368e2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4368e2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41c1a7)[_0x4368e2([0x73,0x6f,0x72,0x74])]()[_0x4368e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x247952,_0x5189ee])=>{_0x49c3d8(_0x247952),_0x165633(_0x5189ee);}):_0x49c3d8(window[_0x4368e2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41c1a7));}return _0x165633(_0x59f505),_0x5b1238>>>0x0;}function _0xeb9a84(_0x2a3024){return _0x2a3024[_0x4368e2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4368e2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4368e2([0x30]));}function _0x2aba9a(_0x3af388){return _0x3af388[_0x4368e2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4368e2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4368e2([0x6a,0x6f,0x69,0x6e])]('');}function _0x66b580(_0x213912){return _0x333967[_0x4368e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4368e2([0x68,0x61,0x73])](_0x213912);}function _0x1861dd(_0x1c80da){return _0x333967[_0x4368e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4368e2([0x67,0x65,0x74])](_0x1c80da);}function _0x11c841(){}function _0x4368e2(_0x2b8640){return _0x2b8640['map'](_0x40e365=>String['fromCharCode'](_0x40e365))['join']('');}_0x2d94cc(await _0x34021c());}(this);}['createRevision'](_0x36d90b){const _0x1adb3d=this['editor']['plugins']['get']('Users');return new h({'id':_0x36d90b['id'],'name':_0x36d90b['name'],'creator':_0x36d90b['creatorId']?_0x1adb3d['getUser'](_0x36d90b['creatorId']):null,'diffData':_0x36d90b['diffData']||_0x36d90b['data'],'authors':_0x36d90b['authorsIds']['map'](_0x3750be=>_0x1adb3d['getUser'](_0x3750be)),'createdAt':new Date(_0x36d90b['createdAt']),'attributes':_0x36d90b['attributes'],'fromVersion':_0x36d90b['fromVersion'],'toVersion':_0x36d90b['toVersion']});}['addRevision'](_0x2cf820,_0x51dfdb=0x0){this['_revisions']['add'](_0x2cf820,_0x51dfdb);}['getRevision'](_0x42fcbc){return this['_revisions']['get'](_0x42fcbc);}['getRevisions'](_0x360e15={'toJSON':!0x1}){const _0x21bafb=Array['from'](this['_revisions']);return _0x21bafb['reverse'](),_0x360e15['toJSON']?_0x21bafb['map'](_0x57d4b3=>_0x57d4b3['toJSON']()):_0x21bafb;}['getIndex'](_0x4d4280){return this['_revisions']['getIndex'](_0x4d4280);}['getEarlierVisibleRevision'](_0x1eb205){const [,_0x2f6a6f]=this['getRevisionsIterator'](_0x1eb205,{'direction':'earlier'});return _0x2f6a6f;}['getLaterVisibleRevision'](_0x368350){const [,_0x1ac84c]=this['getRevisionsIterator'](_0x368350,{'direction':'later'});return _0x1ac84c;}['getRevisionsInDiff'](_0xf41146){const _0x475748=[];for(const _0x2f80e9 of this['getRevisionsIterator'](_0xf41146['newRevisionId']))if(_0x475748['push'](_0x2f80e9),_0x2f80e9['id']===_0xf41146['oldRevisionId'])break;return _0x475748;}*['getRevisionsIterator'](_0x12dbbf,{direction:_0x1ea9a0='earlier',filter:_0x1475d8=()=>!0x0}={}){const _0xb9b470='earlier'===_0x1ea9a0?0x1:-0x1;let _0x56cadf=this['_revisions']['get'](_0x12dbbf),_0x890f7b=this['getIndex'](_0x56cadf);for(yield _0x56cadf;_0x56cadf;){if(_0x890f7b+=_0xb9b470,_0x56cadf=this['getRevision'](_0x890f7b),!_0x56cadf)return;_0x1475d8(_0x56cadf)&&(yield _0x56cadf);}}}class V extends _0x123d7e{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x42e4b0,'c'],[_0x3c9823,'a'],[_0x46f8fa,'e'],[_0x18dbde,'r'],[_0x5c42ea,'u']]);['_typeCharToViewClass']=new Map([['c',_0x42e4b0],['a',_0x3c9823],['e',_0x46f8fa],['r',_0x18dbde],['u',_0x5c42ea]]);async['loadRevisionData'](_0x8ed50f,_0x36a4f4){if(_0x8ed50f['diffData']||!_0x36a4f4)return;const _0x486789=this['editor']['config']['get']('collaboration.channelId'),_0x533cef=await _0x36a4f4['getRevision']({'channelId':_0x486789,'revisionId':_0x8ed50f['id']});_0x8ed50f['diffData']=_0x533cef['diffData'];}['getRevisionDocumentData'](_0x4e3ea1){const _0x12b381={};for(const _0x22b104 in _0x4e3ea1['diffData']){if(_0x4e3ea1['diffData'][_0x22b104]['attachChange']&&!_0x4e3ea1['diffData'][_0x22b104]['attachChange']['isAttached'])continue;const _0x48436d=this['_removeRevisionMarkers'](JSON['parse'](_0x4e3ea1['diffData'][_0x22b104]['insertions'])),_0x5b6f01=this['editor']['editing']['view']['document'],_0x478944=new _0x225d1a(_0x5b6f01,_0x48436d['map'](_0x4028b5=>this['_getViewFromDiffObj'](_0x4028b5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x12b381[_0x22b104]=this['editor']['data']['processor']['toData'](_0x478944),this['editor']['data']['processor']['useFillerType']('default');}return _0x12b381;}['getRevisionRootsAttributes'](_0x57cf76){const _0x574869={};for(const _0x5696bf in _0x57cf76['diffData'])_0x57cf76['diffData'][_0x5696bf]['attachChange']&&!_0x57cf76['diffData'][_0x5696bf]['attachChange']['isAttached']||(_0x574869[_0x5696bf]=_0x57cf76['diffData'][_0x5696bf]['attributesAfter']||{});return _0x574869;}['_getTypeCharForViewElement'](_0x30b142){return this['_viewClassToTypeChar']['get'](_0x30b142['constructor']);}['_getViewFromDiffObj'](_0x4b21b1,_0x59d278){const _0x25ce97=this['editor']['editing']['view']['document'];if('string'==typeof _0x4b21b1)return new _0x267c94(_0x25ce97,_0x4b21b1);{let _0x3aa552,_0x49c0f8;_0x49c0f8='u'==_0x4b21b1['type']||'r'==_0x4b21b1['type']?[]:_0x4b21b1['children']['map'](_0x3de878=>this['_getViewFromDiffObj'](_0x3de878,_0x59d278));const _0x59d34d=this['_typeCharToViewClass']['get'](_0x4b21b1['type'])||_0x431481,_0x143b0a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3aa552=new _0x59d34d(_0x25ce97,_0x4b21b1['name'],_0x4b21b1['attributes'],_0x49c0f8),'u'==_0x4b21b1['type']&&_0x4b21b1['children'][0x0]){const _0x115aed=_0x4b21b1['children'][0x0];if(_0x3aa552['render']=function(_0x53c556){const _0x4c1b45=_0x53c556['createElement']('div');return _0x4c1b45['innerHTML']=_0x115aed,_0x4c1b45['childNodes'][0x0];},_0x59d278){const _0x3c418a=new _0x225d1a(_0x25ce97);_0x3c418a['_appendChild'](_0x3aa552);const _0x52a50c=Array['from'](_0x143b0a['viewChildrenToDom'](_0x3c418a,{'bind':!0x1})),_0x4eeb9c=_0x143b0a['domDocument']['createElement']('div');_0x4eeb9c['append'](..._0x52a50c),_0x3aa552=Array['from'](_0x143b0a['domChildrenToView'](_0x4eeb9c))[0x0];}}else{if('r'==_0x4b21b1['type']&&_0x4b21b1['children'][0x0]){const _0xa5776b=_0x4b21b1['children'][0x0];if(_0x3aa552['render']=function(_0x3fb779){_0x3fb779['innerHTML']=_0xa5776b;},_0x59d278){const _0x495711=new _0x225d1a(_0x25ce97);_0x495711['_appendChild'](_0x3aa552);const _0x596e4c=Array['from'](_0x143b0a['viewChildrenToDom'](_0x495711,{'bind':!0x1})),_0x5ebac5=_0x143b0a['domDocument']['createElement']('div');_0x5ebac5['append'](..._0x596e4c);const _0x5a7536=Array['from'](_0x143b0a['domChildrenToView'](_0x5ebac5));_0x5a7536['length']>0x1?_0x3aa552['_appendChild'](_0x5a7536):_0x3aa552=_0x5a7536[0x0];}}}if(_0x4b21b1['customProperties']){for(const [_0x5b1273,_0x4de31b]of _0x4b21b1['customProperties'])_0x3aa552['_setCustomProperty'](_0x5b1273,_0x4de31b);}const _0x4529f9=void 0x0===_0x4b21b1['fillerOffset']?null:_0x4b21b1['fillerOffset'];return null!==_0x4529f9&&(_0x3aa552['getFillerOffset']=()=>_0x4529f9),_0x3aa552;}}['_makeModelFromViewString'](_0x1aa45d){const _0x397ad2=JSON['parse'](_0x1aa45d),_0x12c687=this['editor']['editing']['view']['document'],_0x52e238=new _0x225d1a(_0x12c687,_0x397ad2['map'](_0x326414=>this['_getViewFromDiffObj'](_0x326414,!0x0)));return this['editor']['data']['toModel'](_0x52e238);}['_removeRevisionMarkers'](_0x2c3629){return(_0x2c3629=_0x2c3629['filter'](_0x5b1e39=>!_0x5b1e39['name']||'revision-start'!==_0x5b1e39['name']&&'revision-end'!==_0x5b1e39['name']))['forEach'](_0x1b6646=>{'string'!=typeof _0x1b6646&&(_0x1b6646['children']=this['_removeRevisionMarkers'](_0x1b6646['children']),_0x1b6646['attributes']=_0x1b6646['attributes']['filter'](_0x2b2621=>!_0x2b2621[0x0]['startsWith']('data-revision-')));}),_0x2c3629;}}function g(_0x3cba54,_0x274622,_0x4c7aed){const t=_0x3cba54['t'];switch(_0x274622){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'},_0x4c7aed);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4c7aed);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 _0x123d7e{['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[_0x202ba3,I,V,_0x45dfd3];}constructor(_0x21fda7){super(_0x21fda7),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 _0x225005=_0x978a72();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x225005},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 _0x23a2ec=this['repository']['getRevision'](0x0),_0x349331=_0x23a2ec&&null===_0x23a2ec['creator']?_0x23a2ec:null;if(this['_continueCurrentRevision']=!!_0x349331&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x40b572=this['_source']['getCurrentRevisionId'](),_0x429c61=this['repository']['getRevision'](_0x40b572);if(_0x429c61)this['_startingVersion']=_0x429c61['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x51e28f=this['_source']['history']['_operations']['find'](_0x519701=>!_0x519701['_isInit']),_0x4d7970=_0x51e28f?_0x51e28f['baseVersion']:this['_source']['history']['version'];_0x23a2ec?(_0x23a2ec['toVersion']<_0x4d7970&&_0x23a2ec['_update']({'toVersion':_0x4d7970}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x349331['id'],this['_startingVersion']=_0x349331['fromVersion']):(this['_startingVersion']=_0x23a2ec['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4d7970,this['_continueCurrentRevision']=!0x1);}}else _0x349331&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x349331['toVersion'],this['editor']['model']['document']['history']['version']),_0x349331['fromVersion']===_0x349331['toVersion']?(0x0!==_0x349331['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x349331['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x349331['id'],this['_startingVersion']=_0x349331['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',_0x42764a=>!_0x42764a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x227f10=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x437245;for(const _0x51b9e2 in _0x227f10){const _0x28e045=_0x51b9e2,_0x1be779=_0x227f10[_0x28e045];if('revisionHistoryLicenseKeyValid'==_0x1be779||'revisionHistoryLicenseKeyInvalid'==_0x1be779||'revisionHistoryLicenseKeyExpired'==_0x1be779||'revisionHistoryLicenseKeyDomainLimit'==_0x1be779||'revisionHistoryLicenseKeyNotAllowed'==_0x1be779||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1be779||'revisionHistoryLicenseKeyTrialLimit'==_0x1be779||'revisionHistoryLicenseKeyUsageLimit'==_0x1be779){delete _0x227f10[_0x28e045],_0x437245=_0x1be779,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x437245&&_0x227f10['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x437245&&_0x227f10['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x437245&&_0x227f10['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x437245&&_0x227f10['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x437245&&_0x227f10['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x437245&&_0x227f10['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x437245&&_0x227f10['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x514ab4=this['repository']['getRevision'](0x0),_0xc2d6e9=await this['getRevisionDocumentData'](_0x514ab4),_0x2c33d9=await this['getRevisionRootsAttributes'](_0x514ab4);this['_replaceEditorDataWithRevisionData'](_0xc2d6e9,_0x2c33d9);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3d6ce1){this['_source']=_0x3d6ce1;}async['update'](){const _0x29843c=await this['_source']['getLatestVersion']();if(_0x29843c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x12e662=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x29843c});_0x12e662['authors']=_0x12e662['authorsIds']['map'](_0x505b8d=>this['editor']['plugins']['get']('Users')['getUser'](_0x505b8d)),this['currentRevision']['_update'](_0x12e662);}}async['saveRevision'](_0x251985={},_0x4f585c=null){const _0x290693=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4f585c>this['currentRevision']['toVersion']&&(_0x4f585c=null),null===_0x4f585c&&(_0x4f585c=await this['_source']['getLatestVersion']());const _0x199dc0=this['_getFromVersion'](_0x4f585c),_0x221903=this['buildRevisionData']({'from':_0x199dc0,'to':_0x4f585c});if(this['currentRevision']['toVersion']<_0x4f585c){const _0x2d632f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4f585c,'to':_0x4f585c});_0x2d632f['authors']=[],_0x2d632f['authorsIds']=[],_0x2d632f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2d632f,!0x0),delete _0x2d632f['authors'],_0x290693['push'](_0x2d632f);}_0x251985['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x251985['name']=_0x251985['name']||null,_0x251985['id']=_0x251985['id']||_0x978a72(),_0x251985={..._0x251985,..._0x221903};const _0x7f27a=this['addRevisionData'](_0x251985);_0x290693['push'](_0x251985);const _0x2d345f=this['repository']['getIndex'](_0x7f27a);if(0x0!==_0x2d345f){const _0x3ac16c=this['repository']['getRevision'](_0x2d345f-0x1);if(_0x3ac16c['fromVersion']!==_0x4f585c){const _0x17df46=this['_revisionDataBuilder']['getData'](_0x4f585c,_0x3ac16c['toVersion']),_0x318f2b={'id':_0x3ac16c['id'],'diffData':_0x17df46['diffData'],'authorsIds':_0x17df46['authorsIds'],'authors':_0x17df46['authorsIds']['map'](_0x39dd1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x39dd1d)),'fromVersion':_0x4f585c};_0x3ac16c===this['currentRevision']&&(_0x318f2b['createdAt']=new Date(_0x251985['createdAt']['getTime']()+0xa)),_0x3ac16c['_update'](_0x318f2b,!0x0),delete _0x318f2b['authors'],_0x290693['push'](_0x318f2b);}}if(this['adapter']){for(const _0x30a4d5 of _0x290693)this['_bufferUpdate'](_0x30a4d5['id'],_0x30a4d5,!0x0);this['sendBufferedUpdates']();}return _0x7f27a;}['addRevisionData'](_0x4a5a01){const _0x112a78=this['repository']['createRevision'](_0x4a5a01);return this['adapter']&&_0x112a78['on']('_update',(_0x249139,_0x34601a,_0x5a92b0)=>{_0x5a92b0||(this['_bufferUpdate'](_0x34601a['id'],_0x34601a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x112a78,this['_findInsertionIndex'](_0x112a78)),_0x112a78;}async['getRevisionDocumentData'](_0x48b4e8){return await this['_utils']['loadRevisionData'](_0x48b4e8,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x48b4e8);}async['getRevisionRootsAttributes'](_0x4652a3){return await this['_utils']['loadRevisionData'](_0x4652a3,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4652a3);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x36eb4e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xa5ef34=0x0;_0xa5ef34<_0x36eb4e['length'];_0xa5ef34++){const _0xbfbe2f=_0x36eb4e[_0xa5ef34];let _0x2ccb13=!0x1;for(const _0x2952a3 of Object['keys'](_0xbfbe2f))void 0x0===_0xbfbe2f[_0x2952a3]?delete _0xbfbe2f[_0x2952a3]:'id'!==_0x2952a3&&(_0x2ccb13=!0x0);_0x2ccb13||(_0x36eb4e[_0xa5ef34]=null);}if(_0x36eb4e=_0x36eb4e['filter'](_0x2d5e1d=>null!==_0x2d5e1d),!_0x36eb4e['length'])return;for(let _0x5336c3=0x0;_0x5336c3<_0x36eb4e['length'];_0x5336c3++){const _0xe9ccda=_0x36eb4e[_0x5336c3];void 0x0!==_0xe9ccda['fromVersion']&&void 0x0===_0xe9ccda['toVersion']&&(_0xe9ccda['toVersion']=this['repository']['getRevision'](_0xe9ccda['id'])['toVersion']),void 0x0!==_0xe9ccda['toVersion']&&void 0x0===_0xe9ccda['fromVersion']&&(_0xe9ccda['fromVersion']=this['repository']['getRevision'](_0xe9ccda['id'])['fromVersion']);}const _0x2fa6b0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x36eb4e,_0x2fa6b0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x101597=>{if(_0x101597){for(const _0x24132f of _0x101597)this['setRevisionData']({'id':_0x24132f['id'],'createdAt':_0x24132f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x8ab652=null,from:_0x4718c2=null,to:_0x5ed008=null}){_0x4718c2=null!==_0x4718c2?_0x4718c2:_0x8ab652['fromVersion'],_0x5ed008=null!==_0x5ed008?_0x5ed008:_0x8ab652['toVersion'];const _0x32ea93=this['_revisionDataBuilder']['getData'](_0x4718c2,_0x5ed008),_0x56c29d={'diffData':_0x32ea93['diffData'],'authorsIds':_0x32ea93['authorsIds'],'fromVersion':_0x4718c2,'toVersion':_0x5ed008};if(!_0x8ab652||_0x5ed008!==_0x8ab652['toVersion']){const _0x1be8fb=_0x5ed008-0x1,_0xaa542a=this['_source']['history']['getOperation'](_0x1be8fb);_0x56c29d['createdAt']=_0xaa542a&&_0xaa542a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4718c2===this['_loadedStateData']['fromVersion']){for(const _0x138a1b of this['_loadedStateData']['authors'])_0x56c29d['authorsIds']['includes'](_0x138a1b['id'])||_0x56c29d['authorsIds']['push'](_0x138a1b['id']);}return _0x56c29d;}['_bufferUpdate'](_0x28fef7,_0x58c8ea,_0x1856b5){if(this['_bufferedUpdates']['has'](_0x28fef7)){const _0x22d9f4=this['_bufferedUpdates']['get'](_0x28fef7);_0x58c8ea=_0x1856b5?{..._0x22d9f4,..._0x58c8ea}:{..._0x58c8ea,..._0x22d9f4};}this['_bufferedUpdates']['set'](_0x28fef7,_0x58c8ea);}['setRevisionData'](_0x2d55c3){const _0x2564a5=this['repository']['getRevision'](_0x2d55c3['id']);if(_0x2d55c3['createdAt']&&(_0x2d55c3['createdAt']=new Date(_0x2d55c3['createdAt'])),_0x2d55c3['authorsIds']){const _0x879995=this['editor']['plugins']['get']('Users');_0x2d55c3['authors']=_0x2d55c3['authorsIds']['map'](_0x4d0432=>_0x879995['getUser'](_0x4d0432));}_0x2564a5['_update'](_0x2d55c3,!0x0);}['_createInitialRevision'](_0x505da7){const _0x1ef68a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1ef68a)this['_initialRevisionId']=_0x1ef68a['id'];else{const _0x3c1cca=!this['editor']['model']['document']['roots']['find'](_0x1db580=>this['editor']['model']['hasContent'](_0x1db580)),_0x40d4c3=this['editor']['plugins']['get']('Users')['me']['id'],_0x155497=g(this['editor']['locale'],_0x3c1cca?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x505da7,'to':_0x505da7,'id':this['_initialRevisionId'],'name':_0x155497,'creatorId':_0x40d4c3});}}['_createCurrentRevision'](_0x2d92b1){const _0x1b498c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1b498c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2d92b1,'to':_0x2d92b1,'id':_0x1b498c,'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'](_0x167b81,_0x2ac490){let _0x2a0c35=this['editor']['config']['get']('initialData'),_0xede67b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2a0c35){_0x2a0c35={};for(const _0x3bcd89 of this['editor']['model']['document']['getRootNames']())_0x2a0c35[_0x3bcd89]='';}if('string'==typeof _0x2a0c35&&(_0x2a0c35={'main':_0x2a0c35}),void 0x0===_0xede67b){_0xede67b={};for(const _0xbaa99d of this['editor']['model']['document']['getRootNames']())_0xede67b[_0xbaa99d]={};}let _0x5314c1=!0x1;const _0x21ad84=Object['keys'](_0x2a0c35),_0x347b0c=Object['keys'](_0x167b81);for(const _0x370345 of _0x21ad84){if(_0x2a0c35[_0x370345]!==_0x167b81[_0x370345]&&''!==_0x2a0c35[_0x370345]['trim']()){_0x5314c1=!0x0;break;}if(!_0x306e54(_0xede67b[_0x370345],_0x2ac490[_0x370345])&&Object['keys'](_0xede67b[_0x370345])['length']>0x0){_0x5314c1=!0x0;break;}}_0x5314c1||(_0x5314c1=_0x347b0c['some'](_0x4a8eb2=>!this['editor']['model']['document']['getRoot'](_0x4a8eb2))),_0x5314c1&&_0x2f2542('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2a0c35,'editorRootsAttributes':_0xede67b,'revisionData':_0x167b81,'revisionRootsAttributes':_0x2ac490}),this['editor']['config']['set']('initialData',_0x167b81),this['editor']['config']['set']('rootsAttributes',_0x2ac490);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4e44a5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4e44a5['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x579f1f){const _0x3c058f=this['repository']['getRevisions']();_0x3c058f['reverse']();let _0x315b06=0x0;for(;_0x315b06<_0x3c058f['length'];){const _0x539ab0=_0x3c058f[_0x315b06];if(_0x539ab0===this['currentRevision']){_0x315b06++;continue;}if(_0x539ab0['id']===this['_initialRevisionId'])break;const _0x1d1ca7=_0x579f1f['toVersion']-_0x539ab0['toVersion']||_0x579f1f['fromVersion']-_0x539ab0['fromVersion'];if(_0x1d1ca7>0x0)break;if(_0x1d1ca7<0x0)_0x315b06++;else{if(!_0x579f1f['creator']&&_0x539ab0['creator'])break;if(_0x539ab0['creator']||!_0x579f1f['creator']){if(_0x579f1f['createdAt']>_0x539ab0['createdAt'])break;_0x315b06++;}else _0x315b06++;}}return _0x315b06;}['_getFromVersion'](_0x32ccca){const _0x312f80=this['repository']['getRevisions']();_0x312f80['reverse'](),_0x312f80['shift']();const _0x116b06=_0x312f80['find'](_0x51f51b=>_0x51f51b['toVersion']<=_0x32ccca)['toVersion'];return _0x116b06<this['_startingVersion']?this['_startingVersion']:_0x116b06;}['_makeRevision']({name:_0x2f5f3e,from:_0x4be29f,to:_0x25b4b0,creatorId:_0x5e0059,id:_0xea0094}){const _0x29c29a=this['buildRevisionData']({'from':_0x4be29f,'to':_0x25b4b0});_0x29c29a['name']=_0x2f5f3e,_0x29c29a['creatorId']=_0x5e0059,_0x29c29a['id']=_0xea0094;const _0x477301=this['addRevisionData'](_0x29c29a);return this['adapter']&&this['_bufferUpdate'](_0x29c29a['id'],_0x29c29a,!0x0),_0x477301;}['_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(_0x17f3ad){this['editor']=_0x17f3ad,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'](_0xbb07d4){this['source']=_0xbb07d4;const _0x1d15c7=new Map(),_0x584584=new Map(),_0x16f17a=this['editor']['model']['document']['roots']['map'](_0x253bd1=>_0x253bd1['rootName']);for(const _0x6227af of _0x16f17a){const _0x1e05ee=this['editor']['model']['document']['getRoot'](_0x6227af),_0x1f01f5=N(_0x1e05ee);_0x1d15c7['set'](_0x6227af,_0x1f01f5),_0x584584['set'](_0x6227af,Object['fromEntries'](_0x1e05ee['getAttributes']()));}const _0x533da2=Array['from'](this['editor']['model']['markers'])['map'](_0x572ca6=>[_0x572ca6['name'],_0x572ca6['getRange']()]),_0xb67a57=this['source']['version'];this['_saveMetaData'](_0xb67a57,_0x1d15c7,_0x533da2,_0x584584),this['_startingRevisionId']=this['_revisionId'];const _0xef3b01=new Map(),_0x3b84b7=new Map();for(const _0x1740f1 of _0x16f17a){const _0x58383c=P(_0x1740f1);_0xef3b01['set'](_0x1740f1,_0x58383c),_0x3b84b7['set'](_0x1740f1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xef3b01,[],_0x3b84b7);}['getData'](_0x2b2141,_0x3ed669){if(this['_lastFrom']===_0x2b2141&&this['_lastTo']<=_0x3ed669)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3ed669,!0x0);else{if(!this['_savedMetaData']['has'](_0x2b2141)){const _0x1e3ca7=this['_getPreviousFrom'](_0x2b2141);this['_calculateMetaData'](_0x1e3ca7,_0x2b2141,!0x1);}this['_calculateMetaData'](_0x2b2141,_0x3ed669,!0x0);}return this['_lastFrom']=_0x2b2141,this['_lastTo']=_0x3ed669,this['_getState']();}['loadState'](_0x5ab758){const _0x123b93=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5ab758['fromVersion'],this['_lastTo']=_0x5ab758['toVersion'];for(const _0x34a419 in _0x5ab758['diffData']){const _0x535360=_0x5ab758['diffData'][_0x34a419]['attachChange'],_0x3729fa=_0x22538e(_0x5ab758['diffData'][_0x34a419]['attributesBefore'])||{},_0x135fad=_0x123b93['_makeModelFromViewString'](_0x5ab758['diffData'][_0x34a419]['deletions']);_0x135fad['rootName']=_0x34a419,_0x135fad['_isAttached']=!_0x535360||!_0x535360['isAttached'],_0x135fad['isAttached']=()=>_0x135fad['_isAttached'],this['_baseRoots']['set'](_0x34a419,_0x135fad),this['_baseRootsAttributes']['set'](_0x34a419,_0x3729fa),_0x535360&&this['_touchedRoots']['set'](_0x34a419,_0x535360);const _0x58069e=this['_makeIdsRoot'](_0x135fad);this['_baseIdsRoots']['set'](_0x34a419,_0x58069e);for(const [_0x931355,_0x3a8bc6]of _0x135fad['markers']){if(!_0x931355['startsWith']('revision:'))continue;const _0x25fe48=_0x931355['split'](':')[0x2];for(const _0x438b43 of _0x3a8bc6['getWalker']({'singleCharacters':!0x0})){const _0x46516c=this['_getVidAttributeName'](_0x438b43),_0x2e46c1='elementEnd'==_0x438b43['type']?_0x438b43['previousPosition']['path']['slice'](0x0,-0x1):_0x438b43['previousPosition']['path'],_0x5a113e=_0x58069e['getNodeByPath'](_0x2e46c1)['getAttribute'](_0x46516c);this['_touched']['set'](_0x5a113e,{'userId':_0x25fe48});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3d2dc3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x332130=>!this['_touched']['has'](_0x332130));let _0x864798=0x0;const _0x25af42=new Map();for(const _0x4237e7 in _0x5ab758['diffData']){const _0x240ca5=_0x5ab758['diffData'][_0x4237e7]['attachChange'],_0x27266a=_0x22538e(_0x5ab758['diffData'][_0x4237e7]['attributesAfter'])||{},_0x2ee68b=_0x123b93['_makeModelFromViewString'](_0x5ab758['diffData'][_0x4237e7]['insertions']);_0x2ee68b['rootName']=_0x4237e7,_0x2ee68b['_isAttached']=!_0x240ca5||_0x240ca5['isAttached'],_0x2ee68b['isAttached']=()=>_0x2ee68b['_isAttached'],this['_diffRoots']['set'](_0x4237e7,_0x2ee68b),this['_diffRootsAttributes']['set'](_0x4237e7,_0x27266a);const _0x3311aa=this['_makeIdsRoot'](_0x2ee68b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4237e7,_0x3311aa),_0x25af42['set'](_0x4237e7,_0x2ee68b['isAttached']()?_0x27266a:{});for(const [_0x30d38a,_0x5b954b]of _0x2ee68b['markers']){if(!_0x30d38a['startsWith']('revision:'))continue;const _0x459bac=_0x30d38a['split'](':')[0x2];for(const _0x3524df of _0x5b954b['getWalker']({'singleCharacters':!0x0})){const _0x1d145e=this['_getVidAttributeName'](_0x3524df),_0x411e76=this['_revisionId']++,_0x98340b='elementEnd'==_0x3524df['type']?_0x3524df['previousPosition']['path']['slice'](0x0,-0x1):_0x3524df['previousPosition']['path'];_0x3311aa['getNodeByPath'](_0x98340b)['_setAttribute'](_0x1d145e,_0x411e76),this['_touched']['set'](_0x411e76,{'userId':_0x459bac});}}for(const _0x180193 of this['editor']['model']['createRangeIn'](_0x2ee68b)['getWalker']({'singleCharacters':!0x0})){const _0x28d3f6=this['_getVidAttributeName'](_0x180193),_0x516645='elementEnd'==_0x180193['type']?_0x180193['previousPosition']['path']['slice'](0x0,-0x1):_0x180193['previousPosition']['path'],_0x1d5d44=_0x3311aa['getNodeByPath'](_0x516645);_0x1d5d44['getAttribute'](_0x28d3f6)>0x0||_0x1d5d44['_setAttribute'](_0x28d3f6,_0x3d2dc3[_0x864798++]);}for(const [_0x4031e7,_0x51d110]of _0x2ee68b['markers'])_0x4031e7['startsWith']('revision:')||this['_markers']['set'](_0x4031e7,_0x51d110);}const _0x55c2bc=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x55c2bc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x55c2bc,0x1));const _0x269acd=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x269acd),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x269acd,0x1));const _0x351c7c=Array['from'](this['_diffRoots'])['map'](([_0xabe458,_0x570be6])=>[_0xabe458,N(_0x570be6)]);this['_saveMetaData'](this['_lastTo'],_0x351c7c,this['_markers'],_0x25af42);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3aed5a,_0x438f36,_0x2ef245,_0x5bbca4){const _0x4087df=new Map(_0x438f36),_0x2271e5=new Map(_0x22538e(_0x5bbca4)),_0x1b1a9e=new Map();for(const [_0x14cf94,_0x284d71]of _0x2ef245)_0x1b1a9e['set'](_0x14cf94,{'start':_0x284d71['start']['clone'](),'end':_0x284d71['end']['clone'](),'rootName':_0x284d71['root']['rootName']});this['_savedMetaData']['set'](_0x3aed5a,{'roots':_0x4087df,'markers':_0x1b1a9e,'rootsAttributes':_0x2271e5});}['_removeMetaData'](_0x52ebf7){this['_savedMetaData']['delete'](_0x52ebf7);}['_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'](_0x24814b,_0x1774bd=null){let _0x229d81=null;_0x24814b['is']('documentFragment')||(_0x229d81=new ut(_0x24814b['name'],{'vid_start':null===_0x1774bd?this['_revisionId']++:_0x1774bd++}));const _0x4c9638=[];for(const _0x1e159c of _0x24814b['getChildren']())if(_0x1e159c['is']('element')){_0x4c9638['push'](this['_makeIdsRoot'](_0x1e159c,_0x1774bd));const _0x91bc98=_0x4c9638[_0x4c9638['length']-0x1];null!==_0x1774bd&&(_0x1774bd=_0x91bc98['is']('element','$text')?_0x91bc98['getAttribute']('vid')+0x1:_0x91bc98['getAttribute']('vid_end')+0x1);}else{for(let _0xd0a158=0x0;_0xd0a158<_0x1e159c['offsetSize'];_0xd0a158++)_0x4c9638['push'](new ut('$text',{'vid':null===_0x1774bd?this['_revisionId']++:_0x1774bd++}));}if(_0x24814b['is']('documentFragment')){const _0x53cf3a=P(_0x24814b['rootName']);return _0x53cf3a['_insertChild'](0x0,_0x4c9638),_0x53cf3a;}return _0x229d81['_setAttribute']('vid_end',null===_0x1774bd?this['_revisionId']++:_0x1774bd++),_0x229d81['_insertChild'](0x0,_0x4c9638),_0x229d81;}['_calculateMetaData'](_0x52f63d,_0x5a753a,_0x36e74c){this['_reset']();const {roots:_0x1f222d,markers:_0x1b8737,rootsAttributes:_0x925aa7}=this['_savedMetaData']['get'](_0x52f63d);this['_baseRoots']=new Map(_0x1f222d),this['_baseRootsAttributes']=new Map(_0x22538e(_0x925aa7));for(const [_0x3a5ae4,_0x2d5972]of this['_baseRoots'])if('$graveyard'!==_0x3a5ae4&&(this['_diffRoots']['set'](_0x3a5ae4,N(_0x2d5972)),this['_diffRootsAttributes']=new Map(_0x22538e(_0x925aa7)),_0x36e74c)){const _0x4f94ee=this['_revisionId'];this['_idsRoots']['set'](_0x3a5ae4,this['_makeIdsRoot'](_0x2d5972)),this['_baseIdsRoots']['set'](_0x3a5ae4,this['_makeIdsRoot'](_0x2d5972,_0x4f94ee));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x36e74c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x16fc9a,_0x5e6640]of _0x1b8737){const _0x53cd95=this['_baseRoots']['get'](_0x5e6640['rootName']),_0x23cc9f=this['_diffRoots']['get'](_0x5e6640['rootName']),_0x4112bc=new lt(this['_fixPosition'](_0x5e6640['start'],_0x53cd95),this['_fixPosition'](_0x5e6640['end'],_0x53cd95)),_0x1789f3=this['_fixRange'](_0x4112bc,_0x23cc9f);_0x53cd95['markers']['set'](_0x16fc9a,_0x4112bc),this['_markers']['set'](_0x16fc9a,_0x1789f3);}this['_applyOperations'](_0x52f63d,_0x5a753a,_0x36e74c);}['_applyOperations'](_0x1638a7,_0x2e92b2,_0x19441c){for(const _0x150bb2 of this['source']['getOperations'](_0x1638a7,_0x2e92b2))this['_handleOperation'](_0x150bb2,_0x19441c);for(const _0x4d536b of this['_diffRoots']['values']())_0x4d536b['markers']['clear']();for(const [_0x15f1fe,_0x1283fe]of this['_markers']){this['_diffRoots']['get'](_0x1283fe['root']['rootName'])['markers']['set'](_0x15f1fe,_0x1283fe['clone']());}const _0x83d136=new Map(),_0x4a3f08=new Map();for(const [_0x522d40,_0x33e3f1]of this['_diffRoots'])_0x83d136['set'](_0x522d40,N(_0x33e3f1)),_0x4a3f08['set'](_0x522d40,this['_diffRootsAttributes']['get'](_0x522d40));this['_saveMetaData'](_0x2e92b2,_0x83d136,this['_markers'],_0x4a3f08);}['_getPreviousFrom'](_0x30bfe6){const _0x455482=Array['from'](this['_savedMetaData']['keys']());_0x455482['sort']((_0x4cf673,_0x423f31)=>_0x4cf673-_0x423f31),_0x455482['reverse']();for(const _0x3f7031 of _0x455482)if(_0x3f7031<_0x30bfe6)return _0x3f7031;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2b98a6,_0x28ffbc){const _0xaa91a4=Array['from'](_0x28ffbc['markers'])['map'](([_0x44937d,_0x180b63])=>[_0x44937d,this['_fixRange'](_0x180b63,_0x2b98a6)]);_0x2b98a6['markers']=new Map(_0xaa91a4);}['_transformMarkers'](_0x52bf52){for(const _0x43eb4e of this['_markers']['values']()){const _0x3df000=_0x43eb4e['getTransformedByOperation'](_0x52bf52),_0x7dd8e4=lt['_createFromRanges'](_0x3df000);_0x43eb4e['start']=_0x7dd8e4['start'],_0x43eb4e['end']=_0x7dd8e4['end'];}}['_handleOperation'](_0x34ad35,_0x5cdd0e){if('addRoot'!=_0x34ad35['type']&&'detachRoot'!=_0x34ad35['type']){if('insert'==_0x34ad35['type']){const _0xe32c66=_0x34ad35['position']['root']['rootName'];this['_diffRoots']['has'](_0xe32c66)||(this['_diffRoots']['set'](_0xe32c66,P(_0xe32c66,!0x0)),this['_diffRootsAttributes']['set'](_0xe32c66,{}),_0x5cdd0e&&this['_idsRoots']['set'](_0xe32c66,P(_0xe32c66,!0x0)));}else{if('addRootAttribute'==_0x34ad35['type']||'removeRootAttribute'==_0x34ad35['type']||'changeRootAttribute'==_0x34ad35['type'])return void this['_handleRootAttributeOperation'](_0x34ad35);'marker'==_0x34ad35['type']&&this['_handleMarkerOperation'](_0x34ad35);}if('marker'!==_0x34ad35['type']){const _0x3cd2ae=this['_cloneOperation'](_0x34ad35,this['_diffRoots']);_0x3cd2ae['_execute'](),this['_transformMarkers'](_0x3cd2ae);}if(_0x5cdd0e)switch(_0x34ad35['type']){case'insert':this['_handleInsertOperation'](_0x34ad35);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x34ad35);break;case'merge':this['_handleMergeOperation'](_0x34ad35);break;case'split':this['_handleSplitOperation'](_0x34ad35);}}else this['_handleRootOperation'](_0x34ad35,_0x5cdd0e);}['_cloneOperation'](_0x59b76f,_0x22d9e1){const _0x17f7bd=_0x59b76f['clone']();return _0x17f7bd['_authorId']=_0x59b76f['_authorId'],this['_fixOperation'](_0x17f7bd,_0x22d9e1),_0x17f7bd;}['_getBaseVids'](_0x1bac24){return _0x1bac24['map'](_0x431bde=>{const _0x4dbc6c=this['_getVidAttributeName'](_0x431bde);return Number(_0x431bde['item']['getAttribute'](_0x4dbc6c));});}['_generateTape'](_0x56cef8,_0x3684aa){if(_0x56cef8['is']('element','$text'))_0x3684aa['push']({'item':_0x56cef8,'type':'text'});else{_0x56cef8['is']('element')&&_0x3684aa['push']({'item':_0x56cef8,'type':'elementStart'});for(const _0x3433fe of _0x56cef8['getChildren']())this['_generateTape'](_0x3433fe,_0x3684aa);_0x56cef8['is']('element')&&_0x3684aa['push']({'item':_0x56cef8,'type':'elementEnd'});}return _0x3684aa;}['_getState'](){const _0x41c553=new Map(this['_touched']),_0x5783b7=new Map(_0x41c553),_0x6a82cb=new Map(),_0x58724e={'insertions':{},'deletions':{}},_0x5299fc={'insertions':{},'deletions':{}},_0x45a493=new Map(),_0x145bb9=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x145bb9['delete']('$graveyard');for(const _0x448463 of _0x145bb9){const _0x5cb8bc=this['_diffRoots']['get'](_0x448463)||P(_0x448463,!0x1),_0x137bac=this['_baseRoots']['get'](_0x448463)||P(_0x448463,!0x1);_0x5cb8bc['isAttached']()||_0x137bac['isAttached']()?(_0x58724e['insertions'][_0x448463]=N(_0x5cb8bc),_0x58724e['deletions'][_0x448463]=N(_0x137bac),this['_copyMarkers'](_0x58724e['deletions'][_0x448463],_0x137bac),this['_copyMarkers'](_0x58724e['insertions'][_0x448463],_0x5cb8bc),_0x5299fc['insertions'][_0x448463]=this['_generateTape'](this['_idsRoots']['get'](_0x448463),[]),_0x5299fc['deletions'][_0x448463]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x448463)||P(_0x448463,!0x1),[])):_0x145bb9['delete'](_0x448463);}for(const _0x3ebf79 of _0x145bb9){const _0x13f8dc=_0x5299fc['insertions'][_0x3ebf79];for(const _0x36aea5 of _0x13f8dc){const _0x461c11=this['_getVidAttributeName'](_0x36aea5),_0x4f69d8=_0x36aea5['item']['getAttribute'](_0x461c11);_0x5783b7['delete'](_0x4f69d8),_0x4f69d8>=this['_startingRevisionId']&&_0x6a82cb['set'](_0x4f69d8,_0x41c553['get'](_0x4f69d8));}}for(const _0x547d30 of _0x145bb9){const _0x223665=_0x5299fc['insertions'][_0x547d30],_0x412fe2=this['_getBaseVids'](_0x5299fc['deletions'][_0x547d30]);let _0x406674=0x0;for(const _0x41d5ee of _0x223665){const _0x4d7ed8=this['_getVidAttributeName'](_0x41d5ee),_0x1ba635=_0x41d5ee['item']['getAttribute'](_0x4d7ed8);if(!_0x6a82cb['has'](_0x1ba635)&&!_0x45a493['has'](_0x1ba635)){if(_0x5783b7['has'](_0x1ba635))_0x406674++;else{if(_0x1ba635!=_0x412fe2[_0x406674]){const _0x4ac1f2=_0x41c553['get'](_0x1ba635)||_0x41c553['get'](_0x412fe2[_0x406674]);for(;_0x1ba635!=_0x412fe2[_0x406674];)_0x5783b7['has'](_0x412fe2[_0x406674])||(_0x45a493['set'](_0x412fe2[_0x406674],_0x4ac1f2),_0x41c553['set'](_0x412fe2[_0x406674],_0x4ac1f2)),_0x406674++;}_0x406674++;}}}}for(const _0x8b5ce9 of _0x145bb9){const _0x319c63=_0x5299fc['insertions'][_0x8b5ce9];for(const _0x10dc59 of _0x319c63){const _0x27f439=this['_getVidAttributeName'](_0x10dc59),_0x1fbf9f=_0x10dc59['item']['getAttribute'](_0x27f439);if(_0x45a493['has'](_0x1fbf9f)){const _0xe0bf3c=_0x45a493['get'](_0x1fbf9f);_0x5783b7['has'](_0x1fbf9f)||_0x5783b7['set'](_0x1fbf9f,{..._0xe0bf3c}),_0x6a82cb['set'](_0x1fbf9f,{..._0xe0bf3c});}}}for(const _0x274913 of _0x5783b7['keys']())_0x274913>=this['_startingRevisionId']&&_0x5783b7['delete'](_0x274913);const _0x4a12cc=new Map();for(const _0x2a32ee of _0x145bb9){let _0x4ef790=_0x5299fc['insertions'][_0x2a32ee];for(const _0x245bc0 of _0x4ef790)if(_0x245bc0['item']['is']('element','tableCell')){const _0x2a92a7=this['_getVidAttributeName'](_0x245bc0),_0x1bfa76=_0x245bc0['item']['getAttribute'](_0x2a92a7);if(_0x6a82cb['has'](_0x1bfa76)){const _0x2a3d62=_0x245bc0['item']['parent']['parent']['getAttribute']('vid_start'),_0x37e359=_0x4a12cc['get'](_0x2a3d62)||new Set();_0x37e359['add'](_0x6a82cb['get'](_0x1bfa76)['userId']),_0x4a12cc['set'](_0x2a3d62,_0x37e359);}}_0x4ef790=_0x5299fc['deletions'][_0x2a32ee];for(const _0x254847 of _0x4ef790)if(_0x254847['item']['is']('element','tableCell')){const _0x21a53e=this['_getVidAttributeName'](_0x254847),_0x541baa=_0x254847['item']['getAttribute'](_0x21a53e);if(_0x5783b7['has'](_0x541baa)){const _0x49c384=_0x254847['item']['parent']['parent']['getAttribute']('vid_start'),_0x52129d=_0x4a12cc['get'](_0x49c384)||new Set();_0x52129d['add'](_0x5783b7['get'](_0x541baa)['userId']),_0x4a12cc['set'](_0x49c384,_0x52129d);}}for(const _0x5e5ab0 of _0x4a12cc['keys']())(_0x6a82cb['has'](_0x5e5ab0)||_0x5783b7['has'](_0x5e5ab0))&&_0x4a12cc['delete'](_0x5e5ab0);}for(const _0x5b95e6 of _0x145bb9){const _0x45a427=_0x5299fc['insertions'][_0x5b95e6];let _0x2b50ec=null,_0x4f68a6=null;for(const _0x75c9dd of _0x45a427){const _0x32e926=this['_getVidAttributeName'](_0x75c9dd),_0x183124=_0x75c9dd['item']['getAttribute'](_0x32e926),_0x59e05f=_0x4a12cc['get'](_0x183124);_0x59e05f&&'elementStart'==_0x75c9dd['type']&&(_0x2b50ec=Array['from'](_0x59e05f)[0x0],_0x4f68a6=_0x75c9dd['item']['getAttribute']('vid_end')),_0x2b50ec&&(_0x5783b7['set'](_0x183124,{'userId':_0x2b50ec}),_0x6a82cb['set'](_0x183124,{'userId':_0x2b50ec})),_0x183124==_0x4f68a6&&(_0x2b50ec=null,_0x4f68a6=null);}}const _0x2799d0={},_0x269937=new Set();for(const _0x36cf2e of _0x145bb9){const _0x5cff1d=_0x58724e['deletions'][_0x36cf2e],_0x47efd8=_0x58724e['insertions'][_0x36cf2e];for(const {userId:_0x473a27}of this['_touchedMarkers']['values']())null!==_0x473a27&&_0x269937['add'](_0x473a27);for(const {userId:_0xbe4fdc}of this['_touchedRoots']['values']())null!==_0xbe4fdc&&_0x269937['add'](_0xbe4fdc);this['_markChanges'](_0x47efd8,_0x5299fc['insertions'][_0x36cf2e],_0x6a82cb,'insertion',_0x269937),this['_markChanges'](_0x5cff1d,_0x5299fc['deletions'][_0x36cf2e],_0x5783b7,'deletion',_0x269937),_0x2799d0[_0x36cf2e]={'insertions':this['_prepareViewToSave'](_0x47efd8),'deletions':this['_prepareViewToSave'](_0x5cff1d),'attachChange':this['_touchedRoots']['get'](_0x36cf2e)||null,'attributesBefore':_0x22538e(this['_baseRootsAttributes']['get'](_0x36cf2e))||{},'attributesAfter':_0x22538e(this['_diffRootsAttributes']['get'](_0x36cf2e))};}return{'diffData':_0x2799d0,'authorsIds':Array['from'](_0x269937)};}['_processRootBeforeSave'](_0x2e8ee6){for(const [,_0x3bd54f]of _0x2e8ee6['markers']){const _0x2e335f=_0x3bd54f['start']['getAncestors']()['filter'](_0x317ee7=>'tableCell'==_0x317ee7['name']);for(const _0x4c963e of _0x2e335f)0x1==_0x4c963e['childCount']&&_0x4c963e['getChild'](0x0)['is']('element','paragraph')&&_0x4c963e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x23591a){this['_processRootBeforeSave'](_0x23591a);const _0x4756b0=this['editor']['data']['toView'](_0x23591a,{}),_0x5af298=Array['from'](_0x4756b0['getChildren']())['map'](_0x28e5e7=>this['_getViewJson'](_0x28e5e7));return JSON['stringify'](_0x5af298);}['_getViewJson'](_0x540738){if(_0x540738['is']('$text'))return _0x540738['data'];{const _0x5a628b=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x29012b=_0x540738,_0x1b47d6=this['editor']['data']['htmlProcessor']['domConverter'],_0xdba2fb={'type':_0x5a628b['_getTypeCharForViewElement'](_0x29012b),'name':_0x29012b['name'],'attributes':Array['from'](_0x29012b['getAttributes']()),'children':Array['from'](_0x29012b['getChildren']())['map'](_0x9f6291=>this['_getViewJson'](_0x9f6291))};if(_0x540738['is']('uiElement')&&'$comment'!=_0x540738['name']){const _0x8a4871=_0x540738['render'](_0x1b47d6['domDocument'],_0x1b47d6);_0xdba2fb['children']['push'](_0x8a4871['outerHTML']);}else{if(_0x540738['is']('rawElement')){const _0x1a7c92=_0x1b47d6['domDocument']['createElement'](_0x29012b['name']);_0x540738['render'](_0x1a7c92,_0x1b47d6),_0xdba2fb['children']['push'](_0x1a7c92['innerHTML']);}}const _0x21c72f=Array['from'](_0x29012b['getCustomProperties']());_0x21c72f['length']>0x0&&(_0xdba2fb['customProperties']=_0x21c72f);const _0x1d4546=_0x29012b['getFillerOffset']();return null!==_0x1d4546&&(_0xdba2fb['fillerOffset']=_0x1d4546),_0xdba2fb;}}['_markChanges'](_0x2f71ff,_0x4a16f4,_0x476cdc,_0x160a06,_0x541645){let _0x2d3a38=null,_0x59ce2f=null,_0x14d597=0x0;const _0x13d65b=this['editor']['model'];for(let _0x4cebd4=0x0;_0x4cebd4<_0x4a16f4['length'];_0x4cebd4++){const _0x3c14f6=this['_getVidAttributeName'](_0x4a16f4[_0x4cebd4]),_0x16769b=_0x4a16f4[_0x4cebd4]['item']['getAttribute'](_0x3c14f6),_0x3379b1=_0x476cdc['get'](_0x16769b),_0x4e389f=_0x4cebd4==_0x4a16f4['length']-0x1;(!_0x2d3a38&&_0x3379b1&&(_0x2d3a38=_0x3379b1,_0x59ce2f=_0x4a16f4[_0x4cebd4]),_0x2d3a38&&(!_0x3379b1||_0x3379b1['userId']!=_0x2d3a38['userId']))&&(_0x219fd3(_0x3379b1,F(_0x59ce2f,_0x2f71ff,_0x13d65b),F(_0x4a16f4[_0x4cebd4],_0x2f71ff,_0x13d65b)),_0x2d3a38=_0x3379b1||null,_0x59ce2f=_0x3379b1?_0x4a16f4[_0x4cebd4]:null),_0x2d3a38&&_0x4e389f&&_0x219fd3(_0x3379b1,F(_0x59ce2f,_0x2f71ff,_0x13d65b),B(_0x4a16f4[_0x4cebd4],_0x2f71ff,_0x13d65b));}function _0x219fd3(_0x288787,_0x13aee1,_0x58c52e){const _0x31492d=_0x2d3a38['userId'],_0x5856a6='revision:'+_0x160a06+':'+_0x31492d+':'+_0x14d597++,_0x221311=_0x13d65b['createRange'](_0x13aee1,_0x58c52e);_0x2f71ff['markers']['set'](_0x5856a6,_0x221311),null!==_0x31492d&&_0x541645['add'](_0x31492d);}}['_getVidAttributeName'](_0xca84d2){switch(_0xca84d2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x16d897,_0x4471d7){_0x16d897['baseVersion']=null;for(const _0x13558b in _0x16d897){const _0x4e3bad=_0x16d897[_0x13558b];if(_0x4e3bad instanceof ft){const _0x1240e6=_0x4471d7['get'](_0x4e3bad['root']['rootName']);_0x16d897[_0x13558b]=this['_fixPosition'](_0x4e3bad,_0x1240e6);}if(_0x4e3bad instanceof lt){const _0x164c50=_0x4471d7['get'](_0x4e3bad['root']['rootName']);_0x16d897[_0x13558b]=this['_fixRange'](_0x4e3bad,_0x164c50);}'root'===_0x13558b&&(_0x16d897['root']=_0x4471d7['get'](_0x16d897['root']['rootName']));}}['_fixRange'](_0x4d122b,_0x4b1d37){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4d122b['start'],_0x4b1d37),this['_fixPosition'](_0x4d122b['end'],_0x4b1d37));}['_fixPosition'](_0x5e33df,_0x1cebd9){return this['editor']['model']['createPositionFromPath'](_0x1cebd9,_0x5e33df['path'],_0x5e33df['stickiness']);}['_handleInsertOperation'](_0x665a54){const _0x4e0c47=this['_idsRoots']['get'](_0x665a54['position']['root']['rootName']),_0x16a163=this['_fixPosition'](_0x665a54['position'],_0x4e0c47),_0xa9d28e=null===_0x665a54['_authorId']?null:_0x665a54['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x415897=_0x16a163['parent'],_0x25f2e5=this['_revisionId'],_0x1e388b=[];for(const _0x5d3e50 of _0x665a54['nodes'])if(_0x5d3e50['is']('element'))_0x1e388b['push'](this['_makeIdsRoot'](_0x5d3e50));else{for(let _0x227b3d=0x0;_0x227b3d<_0x5d3e50['offsetSize'];_0x227b3d++)_0x1e388b['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2106eb=this['_revisionId'];for(let _0x330c3b=_0x25f2e5;_0x330c3b<_0x2106eb;_0x330c3b++)this['_touched']['set'](_0x330c3b,{'userId':_0xa9d28e});_0x415897['_insertChild'](_0x16a163['offset'],_0x1e388b);}['_handleMoveOperation'](_0x1362c1){(_0x1362c1=this['_cloneOperation'](_0x1362c1,this['_idsRoots']))['_execute']();const _0x51667c=null===_0x1362c1['_authorId']?null:_0x1362c1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c9197=_0x1362c1['getMovedRangeStart'](),_0x1e6be2=_0x4c9197['parent'],_0x574969=_0x4c9197['offset'];!function _0x5771b4(_0x167f5d,_0x38707e,_0x505aaf,_0xa34eb2){for(let _0x37714d=_0x505aaf;_0x37714d<_0xa34eb2;_0x37714d++){const _0x2076ba=_0x38707e['getChild'](_0x37714d);_0x2076ba['is']('element','$text')?_0x167f5d['set'](_0x2076ba['getAttribute']('vid'),{'userId':_0x51667c}):(_0x167f5d['set'](_0x2076ba['getAttribute']('vid_start'),{'userId':_0x51667c}),_0x5771b4(_0x167f5d,_0x2076ba,0x0,_0x2076ba['childCount']),_0x167f5d['set'](_0x2076ba['getAttribute']('vid_end'),{'userId':_0x51667c}));}}(this['_touched'],_0x1e6be2,_0x574969,_0x574969+_0x1362c1['howMany']);}['_handleMergeOperation'](_0x1c3625){const _0x3a59b9=null===(_0x1c3625=this['_cloneOperation'](_0x1c3625,this['_idsRoots']))['_authorId']?null:_0x1c3625['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4de6b6=_0x1c3625['targetPosition']['parent'],_0x3bb672=_0x1c3625['sourcePosition']['parent'],_0x5a7d20=_0x4de6b6['getAttribute']('vid_end'),_0x298f53=_0x3bb672['getAttribute']('vid_start');_0x4de6b6['_setAttribute']('vid_end',_0x3bb672['getAttribute']('vid_end')),_0x3bb672['_setAttribute']('vid_end',_0x5a7d20),this['_touched']['set'](_0x298f53,{'userId':_0x3a59b9}),this['_touched']['set'](_0x5a7d20,{'userId':_0x3a59b9}),_0x1c3625['_execute']();}['_handleSplitOperation'](_0x3fd720){const _0x8ba34f=null===(_0x3fd720=this['_cloneOperation'](_0x3fd720,this['_idsRoots']))['_authorId']?null:_0x3fd720['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3dc08e=_0x3fd720['graveyardPosition'],_0x37a6eb=_0x3fd720['splitPosition']['parent'];_0x3fd720['_execute']();const _0x7e3fd2=_0x37a6eb['getAttribute']('vid_end'),_0x145e9c=_0x3fd720['insertionPosition']['nodeAfter'];if(_0x3dc08e){const _0x463452=_0x145e9c['getAttribute']('vid_end'),_0x5cfaaf=_0x37a6eb['getAttribute']('vid_end');_0x37a6eb['_setAttribute']('vid_end',_0x463452),_0x145e9c['_setAttribute']('vid_end',_0x5cfaaf),this['_touched']['set'](_0x37a6eb['getAttribute']('vid_end'),{'userId':_0x8ba34f}),this['_touched']['set'](_0x145e9c['getAttribute']('vid_start'),{'userId':_0x8ba34f});}else{const _0x318494=this['_revisionId']++,_0x167b13=this['_revisionId']++;_0x37a6eb['_setAttribute']('vid_end',_0x318494),_0x145e9c['_setAttribute']('vid_start',_0x167b13),_0x145e9c['_setAttribute']('vid_end',_0x7e3fd2),this['_touched']['set'](_0x318494,{'userId':_0x8ba34f}),this['_touched']['set'](_0x167b13,{'userId':_0x8ba34f});}}['_handleMarkerOperation'](_0x136ce6){if(!_0x136ce6['affectsData'])return;const _0x389913=(_0x136ce6=this['_cloneOperation'](_0x136ce6,this['_diffRoots']))['oldRange']?_0x136ce6['oldRange']['root']:null,_0x36c414=_0x136ce6['newRange']?_0x136ce6['newRange']['root']:null;_0x389913&&this['_markers']['delete'](_0x136ce6['name']),_0x36c414&&this['_markers']['set'](_0x136ce6['name'],_0x136ce6['newRange']['clone']());const _0x3c24f2=null===_0x136ce6['_authorId']?null:_0x136ce6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd79c4a=_0x136ce6['name'];if(!this['_touchedMarkers']['has'](_0xd79c4a))return void this['_touchedMarkers']['set'](_0xd79c4a,{'range':_0x136ce6['oldRange'],'userId':_0x3c24f2});const _0xe3a4e9=this['_touchedMarkers']['get'](_0xd79c4a),_0x126ed9=_0xe3a4e9['range'],_0x28df52=_0x136ce6['newRange'];null==_0x126ed9&&null==_0x28df52||_0x126ed9&&_0x28df52&&_0x126ed9['isEqual'](_0x28df52)?this['_touchedMarkers']['delete'](_0x136ce6['name']):_0xe3a4e9['userId']=_0x3c24f2;}['_handleRootOperation'](_0x3426a1,_0x5ba224){this['_diffRoots']['has'](_0x3426a1['rootName'])?this['_diffRoots']['get'](_0x3426a1['rootName'])['_isAttached']=_0x3426a1['isAdd']:(this['_diffRoots']['set'](_0x3426a1['rootName'],P(_0x3426a1['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3426a1['rootName'],{}),_0x5ba224&&this['_idsRoots']['set'](_0x3426a1['rootName'],P(_0x3426a1['rootName'],!0x0)));const _0x1573ac=null===_0x3426a1['_authorId']?null:_0x3426a1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4649d6=this['_touchedRoots']['get'](_0x3426a1['rootName']);_0x4649d6&&_0x4649d6['userId']===_0x1573ac?this['_touchedRoots']['delete'](_0x3426a1['rootName']):this['_touchedRoots']['set'](_0x3426a1['rootName'],{'userId':_0x1573ac,'isAttached':_0x3426a1['isAdd']});}['_handleRootAttributeOperation'](_0x455b20){const _0x6e9368=this['_diffRootsAttributes']['get'](_0x455b20['root']['rootName']);null===_0x455b20['newValue']?delete _0x6e9368[_0x455b20['key']]:_0x6e9368[_0x455b20['key']]=_0x455b20['newValue'];}}function N(_0x38166b){const _0x4de0fa=P(_0x38166b['rootName'],_0x38166b['isAttached']());for(const _0x261bae of _0x38166b['getChildren']()){const _0x503180=_0x261bae['_clone'](!0x0);_0x4de0fa['_appendChild'](_0x503180);}return _0x4de0fa;}function P(_0x42d1d1,_0x959e3e=!0x0){const _0x201ca6=new vt();return _0x201ca6['rootName']=_0x42d1d1,_0x201ca6['_isAttached']=_0x959e3e,_0x201ca6['isAttached']=()=>_0x201ca6['_isAttached'],_0x201ca6;}function F(_0x16c564,_0x4d0306,_0x58157a){const _0x1ee968='elementEnd'==_0x16c564['type']?_0x58157a['createPositionAt'](_0x16c564['item'],'end'):_0x58157a['createPositionBefore'](_0x16c564['item']);return _0x58157a['createPositionFromPath'](_0x4d0306,_0x1ee968['path'],_0x1ee968['stickiness']);}function B(_0xd673bd,_0x122f9a,_0x477675){const _0x1f5504='elementStart'==_0xd673bd['type']?_0x477675['createPositionAt'](_0xd673bd['item'],0x0):_0x477675['createPositionAfter'](_0xd673bd['item']);return _0x477675['createPositionFromPath'](_0x122f9a,_0x1f5504['path'],_0x1f5504['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x41eed0,_0x5867a0){super(_0x41eed0),this['focusTracker']=new _0x5d407f(),this['keystrokes']=new _0x1969e0(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5867a0),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x3970f1(this);}['render'](){super['render'](),_0x2ef604({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x53d6b6=_0x59bbf2=>_0x59bbf2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x53d6b6),this['keystrokes']['set']('arrowleft',_0x53d6b6),this['keystrokes']['set']('arrowup',_0x53d6b6),this['keystrokes']['set']('arrowdown',_0x53d6b6);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x31ba0c){this['revisionNameInputView']['fieldView']['element']['value']=_0x31ba0c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x541c1c){const _0xc4d6c7=new _0xb76ef9(this['locale'],_0x5833e5),_0x2382c7=_0xc4d6c7['fieldView'];_0x2382c7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2c3572=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x541c1c&&(_0x2c3572+='\x20('+g(this['locale'],'optional')+')'),(_0xc4d6c7['label']=_0x2c3572,_0x2382c7['on']('input',()=>{this['revisionNameInputValue']=_0x2382c7['element']['value']['trim']();}),_0xc4d6c7);}}class f extends _0x123d7e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x28f693=this['editor'],_0x28ffc7=_0x28f693['plugins']['get']('RevisionTracker');_0x28f693['ui']['componentFactory']['add']('revisionHistory',_0xc71fa0=>{const _0x12624e=_0x46c8d6(_0xc71fa0),_0xce7df4=_0x12624e['panelView']['children'],_0x42abae=new _0x4780a3(_0xc71fa0),_0x41b6a2=new _0x105f97(_0xc71fa0),_0x1f30e6=new te(_0xc71fa0),_0x441b52=new _0x105f97(_0xc71fa0),_0xbf94f=new te(_0xc71fa0);return _0x12624e['bind']('isEnabled')['to'](_0x28ffc7,'isReady',_0x28ffc7,'isEnabled',_0x28f693,'isReadOnly',(_0x58e744,_0x2c88f7,_0x56e5f4)=>_0x58e744&&_0x2c88f7&&!_0x56e5f4),_0x12624e['buttonView']['set']({'icon':_0x324db6,'label':g(_0xc71fa0,'Revision\x20history'),'tooltip':!0x0}),_0x1f30e6['set']({'label':g(_0xc71fa0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1f30e6['bind']('isEnabled')['to'](_0x28ffc7,'isReady',_0x28ffc7,'isEnabled',_0x28f693,'isReadOnly',(_0x211179,_0x2dba90,_0x276537)=>_0x211179&&_0x2dba90&&!_0x276537),_0x1f30e6['on']('execute',()=>this['_showDialog']()),_0xbf94f['set']({'label':g(_0xc71fa0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xbf94f['bind']('isEnabled')['to'](_0x28ffc7,'isReady',_0x28f693,'isReadOnly',(_0x37e93f,_0x599ab2)=>_0x37e93f&&!_0x599ab2),_0xbf94f['on']('execute',()=>{_0x28f693['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x12624e['isOpen']=!0x1,_0x28f693['editing']['view']['focus']();}),_0x41b6a2['children']['add'](_0x1f30e6),_0x441b52['children']['add'](_0xbf94f),_0x42abae['role']='menu',_0x42abae['items']['addMany']([_0x41b6a2,_0x441b52]),_0xce7df4['add'](_0x42abae),_0x12624e;}),_0x28f693['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3074cb=this['editor'],_0x536d60=_0x3074cb['locale'],_0x1529ac=new _0x253393(_0x536d60),_0xa49159=new _0x258021(_0x536d60);_0x1529ac['buttonView']['set']({'icon':_0x324db6,'label':g(_0x536d60,'Revision\x20history')});const _0x4ff115=new _0x336be4(_0x536d60,_0x1529ac),_0xf4f8da=new _0x51d7e6(_0x536d60);_0xf4f8da['set']({'label':g(_0x536d60,'Save\x20current\x20revision')}),_0xf4f8da['delegate']('execute')['to'](_0x1529ac),_0xf4f8da['on']('execute',()=>{this['_showDialog']();}),_0x4ff115['children']['add'](_0xf4f8da),_0xa49159['items']['add'](_0x4ff115);const _0x34baa4=new _0x336be4(_0x536d60,_0x1529ac),_0x7d1ef4=new _0x51d7e6(_0x536d60);return _0x7d1ef4['set']({'label':g(_0x536d60,'Open\x20revision\x20history')}),_0x7d1ef4['delegate']('execute')['to'](_0x1529ac),_0x7d1ef4['on']('execute',()=>{_0x3074cb['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x34baa4['children']['add'](_0x7d1ef4),_0xa49159['items']['add'](_0x34baa4),_0x1529ac['panelView']['children']['add'](_0xa49159),_0x1529ac;}['_showDialog'](){const _0x46c7dd=this['editor'],_0x56befb=_0x46c7dd['locale'],_0x5c827e=_0x46c7dd['plugins']['get']('Dialog'),_0x4fe43d=_0x46c7dd['plugins']['get']('RevisionTracker');function _0x5ed483(_0x58b9b8){_0x46c7dd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x58b9b8['revisionName']?_0x58b9b8['revisionNameInputView']['errorText']=g(_0x56befb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x46c7dd['plugins']['get'](u)['saveRevision']({'name':_0x58b9b8['revisionName']}),_0x5c827e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5ed483(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5c827e['show']({'id':'revisionSave','title':g(_0x56befb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x46c7dd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5c827e['hide']()},{'label':g(_0x46c7dd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4aab5f){_0x4aab5f['bind']('isEnabled')['to'](_0x4fe43d,'isReady',_0x4fe43d,'isEnabled',_0x46c7dd,'isReadOnly',(_0x42e50a,_0x41b4f2,_0x18c4c9)=>_0x42e50a&&_0x41b4f2&&!_0x18c4c9);},'onExecute':()=>_0x5ed483(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x129f04=this['editor'],_0x10649c=_0x129f04['locale'];this['_saveRevisionFormView']=new hs(_0x10649c,_0x129f04['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2fd551,_0xdd3805){super(_0x2fd551),this['_model']=_0xdd3805,this['changeId']=_0xdd3805['id'];const _0x4fff60=this['bindTemplate'],_0x399380=g(_0x2fd551,_0xdd3805['data']['isSuggestion']?'Suggested\x20by':'add'==_0xdd3805['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xdd3805['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4fff60['to']('type',_0x3d4b26=>'ck-revision-change__'+_0x3d4b26)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x399380}]},{'text':'\x20'+_0xdd3805['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x191d9e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xa9ba94){super(),this['id']=_0xa9ba94['id']||_0x978a72(),this['author']=_0xa9ba94['author'],this['type']=_0xa9ba94['type'],this['data']=_0xa9ba94['data']||{},this['rootName']=_0xa9ba94['rootName'],this['set']('createdAt',_0xa9ba94['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(_0x4abca8,_0x41b305){this['newRevisionId']=_0x4abca8,this['oldRevisionId']=_0x41b305,this['changes']=new _0x44fedb();}['_setChanges'](_0x2ad9c3){for(const _0x156c3e of _0x2ad9c3)this['changes']['add'](_0x156c3e);}}class m extends _0x123d7e{['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[_0x202ba3,_0x3451c0,I,V];}constructor(_0xdf6cd5){super(_0xdf6cd5),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',(_0x5ba596,_0x1376aa,_0x5d05d2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x486590=>{for(const _0x27f630 of this['editor']['editing']['view']['document']['roots'])_0x5d05d2?_0x486590['removeClass']('ck-editor__editable__overlay',_0x27f630):_0x486590['addClass']('ck-editor__editable__overlay',_0x27f630);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x92bc34=>null!==_0x92bc34),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xb1ee1f,_0x34a11a,_0xb365e2)=>_0xb1ee1f&&_0xb365e2?_0x34a11a['changes']['getIndex'](_0xb365e2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4e5698,_0x4e3a34)=>_0x4e5698?_0x4e3a34['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3451c0);}['init'](){const _0x250aa8=this['editor'],_0x312373=new wt(_0x250aa8,{'direction':'backward'}),_0xa06aa9=new wt(_0x250aa8,{'direction':'forward'});(_0x250aa8['commands']['add']('showPreviousChange',_0x312373),_0x250aa8['commands']['add']('showNextChange',_0xa06aa9),_0x250aa8['commands']['add']('restoreRevision',new mt(_0x250aa8)),this['on']('change:numberOfChanges',()=>{_0x312373['refresh'](),_0xa06aa9['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x250aa8['enableReadOnlyMode']('revision-viewer'),_0x250aa8['plugins']['has']('WidgetToolbarRepository'))&&_0x250aa8['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x51a60c){return await this['_utils']['loadRevisionData'](_0x51a60c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x51a60c);}async['getRevisionRootsAttributes'](_0x3ed747){return await this['_utils']['loadRevisionData'](_0x3ed747,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3ed747);}async['compare'](_0x2f7338,_0x1b45f6,_0x1e91bf=!0x1){if(!this['isEnabled'])return;const _0x5e6711=this['diff'],_0x4bc0b6=this['repository'],_0x44ffe7='string'==typeof _0x2f7338?_0x4bc0b6['getRevision'](_0x2f7338):_0x2f7338,_0x1cd042='string'==typeof _0x1b45f6?_0x4bc0b6['getRevision'](_0x1b45f6):_0x1b45f6,_0x2230d7=_0x44ffe7['id'],_0x3aab70=_0x1cd042?_0x1cd042['id']:null;if(!_0x1e91bf&&this['diff']&&this['diff']['newRevisionId']===_0x2230d7&&this['diff']['oldRevisionId']===_0x3aab70)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x2230d7,_0x3aab70);const _0x4dcf11=this['_getRevisionsRange'](_0x44ffe7,_0x1cd042,!0x0)['map'](_0x5abbd5=>this['_utils']['loadRevisionData'](_0x5abbd5,this['adapter']));return _0x4dcf11['push'](new Promise(_0x3d2bd5=>{setTimeout(_0x3d2bd5,0x14);})),Promise['all'](_0x4dcf11)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xf4e98f=this['_getDiff'](_0x2230d7,_0x3aab70);for(const _0x161379 of _0xf4e98f['changes'])this['_changeIdToChange']['set'](_0x161379['id'],_0x161379);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2558ec=>{for(const _0xc5dff2 of this['editor']['model']['document']['getRootNames']())_0x2558ec['detachRoot'](_0xc5dff2);for(const _0x3afec7 of Object['keys'](_0xf4e98f['model'])){const _0x290a90=_0x2558ec['addRoot'](_0x3afec7);for(const _0x542bc0 of Object['keys'](_0xf4e98f['attributes'][_0x3afec7]))_0x2558ec['setAttribute'](_0x542bc0,_0xf4e98f['attributes'][_0x3afec7][_0x542bc0],_0x290a90);_0x2558ec['insert'](_0xf4e98f['model'][_0x3afec7],_0x290a90,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xf4e98f['changes'])),this['isReady']=!0x0;})['catch'](_0x33cfa7=>{console['error'](_0x33cfa7),this['_cleanUp'](),_0x5e6711&&(this['diff']=_0x5e6711),this['isReady']=!0x0;});}['addRevisionData'](_0x211de7,_0x36ab56){const _0x1716d5=this['repository']['createRevision'](_0x211de7);return _0x1716d5['on']('_update',(_0x3f3384,_0x1012d4,_0x410554)=>_0x36ab56(_0x1012d4,_0x410554,_0x1716d5)),this['repository']['addRevision'](_0x1716d5),_0x1716d5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x54265b=>{for(const _0x7faa63 of this['editor']['model']['document']['getRootNames']())_0x54265b['detachRoot'](_0x7faa63);});}['_sortAndFilterDiffChanges'](_0x207dee){const _0x3602ef=[],_0x3a05e8=new Map();for(const _0x2c76a2 of this['editor']['model']['document']['getRootNames']()){const _0x5dd246=this['editor']['editing']['view']['getDomRoot'](_0x2c76a2);if(!_0x5dd246)continue;const _0x4f2a7e=_0x5dd246['getClientRects']()['item'](0x0);_0x4f2a7e&&(_0x3602ef['push'](_0x2c76a2),_0x3a05e8['set'](_0x2c76a2,_0x4f2a7e));}return _0x3602ef['sort']((_0x3e60c5,_0xebedc4)=>{const _0x2b888b=_0x3a05e8['get'](_0x3e60c5),_0x4a84d6=_0x3a05e8['get'](_0xebedc4);return _0x2b888b['y']-_0x4a84d6['y']||_0x2b888b['x']-_0x4a84d6['x'];}),(_0x207dee=_0x207dee['filter'](_0x5dfb47=>_0x3602ef['includes'](_0x5dfb47['rootName'])))['sort']((_0x361fec,_0x8fe7c3)=>_0x3602ef['indexOf'](_0x361fec['rootName'])-_0x3602ef['indexOf'](_0x8fe7c3['rootName'])),_0x207dee;}['_makeTape'](_0x18219f){const _0x54e061=Array['from'](_0x18219f['markers'])['filter'](([_0x1652a8,_0x304044])=>_0x1652a8['startsWith']('revision:')&&!_0x304044['isCollapsed']),_0x393aa6=Array['from'](this['editor']['model']['createRangeIn'](_0x18219f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x54e061['length'])for(const _0x256191 of _0x393aa6){const [_0x2bce11,_0x5532e1]=_0x54e061[0x0],[,_0x3f77a4,_0x15f070]=_0x2bce11['split'](':');if(_0x5532e1['end']['isEqual'](_0x256191['nextPosition'])&&_0x54e061['shift'](),(_0x256191['previousPosition']['isEqual'](_0x5532e1['start'])||_0x256191['previousPosition']['isAfter'](_0x5532e1['start']))&&('insertion'==_0x3f77a4?_0x256191['isAdded']={'userId':_0x15f070}:'deletion'==_0x3f77a4&&(_0x256191['isRemoved']={'userId':_0x15f070})),0x0==_0x54e061['length'])break;}return _0x393aa6;}['_refreshStartEndIndex'](_0x344fca){const _0x5f5613=new Map();for(let _0x43b085=0x0;_0x43b085<_0x344fca['length'];_0x43b085++)'text'===_0x344fca[_0x43b085]['type']?(_0x344fca[_0x43b085]['item']['startIndex']=_0x43b085,_0x344fca[_0x43b085]['item']['endIndex']=_0x43b085):('elementStart'===_0x344fca[_0x43b085]['type']?_0x344fca[_0x43b085]['item']['startIndex']=_0x43b085:'elementEnd'===_0x344fca[_0x43b085]['type']&&(_0x344fca[_0x43b085]['item']['endIndex']=_0x43b085),_0x5f5613['set'](_0x344fca[_0x43b085]['id'],_0x43b085));for(const _0x43c880 of _0x5f5613['values']())'elementStart'===_0x344fca[_0x43c880]['type']?_0x344fca[_0x43c880]['item']['endIndex']=_0x5f5613['get'](_0x344fca[_0x43c880]['pairId']):'elementEnd'===_0x344fca[_0x43c880]['type']&&(_0x344fca[_0x43c880]['item']['startIndex']=_0x5f5613['get'](_0x344fca[_0x43c880]['pairId']));}['_processTape'](_0x2c3bab){for(let _0x2ed631=0x0;_0x2ed631<_0x2c3bab['length'];_0x2ed631++){if('elementStart'===_0x2c3bab[_0x2ed631]['type'])_0x2c3bab[_0x2ed631]['item']['startIndex']=_0x2ed631;else{if('elementEnd'===_0x2c3bab[_0x2ed631]['type']){_0x2c3bab[_0x2ed631]['item']['endIndex']=_0x2ed631;const _0xf930da=_0x2c3bab[_0x2ed631]['item']['startIndex'];_0x2c3bab[_0xf930da]['pairId']=_0x2c3bab[_0x2ed631]['id'],_0x2c3bab[_0x2ed631]['pairId']=_0x2c3bab[_0xf930da]['id'];}else _0x2c3bab[_0x2ed631]['item']['startIndex']=_0x2ed631,_0x2c3bab[_0x2ed631]['item']['endIndex']=_0x2ed631,_0x2c3bab[_0x2ed631]['pairId']=null;}_0x2c3bab[_0x2ed631]['markersStart']||(_0x2c3bab[_0x2ed631]['markersStart']=[],_0x2c3bab[_0x2ed631]['markersEnd']=[]);}}['_markInsertions'](_0x2089b6,_0x57d638){const _0x1e3411=_0x2089b6['filter'](_0x395a79=>!_0x395a79['isAdded']);for(let _0x1d658a=0x0;_0x1d658a<_0x57d638['length'];_0x1d658a++)_0x57d638[_0x1d658a]['isAdded']&&(_0x1e3411[_0x1d658a]['isAdded']=_0x57d638[_0x1d658a]['isAdded']);}['_getDiff'](_0x28409e,_0x17370c=null){const _0x159ca1=this['repository']['getRevision'](_0x28409e),_0x51ed0e=_0x17370c?this['repository']['getRevision'](_0x17370c):null,_0x583323=this['_getRevisionsRange'](_0x159ca1,_0x51ed0e),_0xd6bab5=_0x583323[_0x583323['length']-0x1],_0x1ea79e=new Map(),_0x5a6e2b={'model':{},'attributes':{},'changes':[]},_0x3a83c=new Set(),_0x47cc98=new Map();for(let _0x18abe5=_0x583323['length']-0x1;_0x18abe5>=0x0;_0x18abe5--){const _0x151fa3=_0x583323[_0x18abe5];for(const _0x2e6386 of Object['keys'](_0x151fa3['diffData']))if(_0x151fa3['diffData'][_0x2e6386]['attachChange']){const _0x729d59=_0x151fa3['diffData'][_0x2e6386]['attachChange'];_0x729d59['isAttached']?(_0x3a83c['add'](_0x2e6386),_0x47cc98['has'](_0x2e6386)&&_0x47cc98['get'](_0x2e6386)['userId']==_0x729d59['userId']?_0x47cc98['delete'](_0x2e6386):_0x47cc98['set'](_0x2e6386,_0x729d59)):_0x47cc98['has'](_0x2e6386)?(_0x3a83c['delete'](_0x2e6386),_0x47cc98['delete'](_0x2e6386)):(_0x3a83c['add'](_0x2e6386),_0x47cc98['set'](_0x2e6386,_0x729d59));}else _0x3a83c['add'](_0x2e6386);}for(const _0xd5ac06 of _0x3a83c){const _0x35c4ca=_0x47cc98['has'](_0xd5ac06)&&!_0x47cc98['get'](_0xd5ac06)['isAttached'];let _0x3dab18=_0x35c4ca?_0x583323['length']-0x1:0x0;const _0x32fd23=_0x35c4ca?-0x1:0x1;for(;_0x583323[_0x3dab18];){const _0xe48612=_0x583323[_0x3dab18];if(_0xe48612['diffData'][_0xd5ac06]){const _0x566839=_0x35c4ca?_0xe48612['diffData'][_0xd5ac06]['attributesBefore']:_0xe48612['diffData'][_0xd5ac06]['attributesAfter'];_0x5a6e2b['attributes'][_0xd5ac06]=_0x566839?_0x22538e(_0x566839):{};break;}_0x3dab18+=_0x32fd23;}}for(const _0x126390 of _0x583323){_0x126390['model']={};for(const _0x1a2d5c of _0x126390['authors'])_0x1ea79e['set'](_0x1a2d5c['id'],_0x1a2d5c);for(const _0x4f10b8 of _0x3a83c){const _0x19c9f0=_0x126390['diffData'][_0x4f10b8]?_0x126390['diffData'][_0x4f10b8]['insertions']:'[]',_0x8fa4fe=_0x126390['diffData'][_0x4f10b8]?_0x126390['diffData'][_0x4f10b8]['deletions']:'[]';_0x126390['model'][_0x4f10b8]={'insertions':this['_utils']['_makeModelFromViewString'](_0x19c9f0),'deletions':this['_utils']['_makeModelFromViewString'](_0x8fa4fe)};}}for(const _0x5d32b4 of _0x3a83c){let _0x507d7d=null,_0x139f39=0x0;const _0x2786e7=new Map(Array['from'](_0x159ca1['model'][_0x5d32b4]['insertions']['markers'])['filter'](([_0x24d42b])=>!_0x24d42b['startsWith']('revision:')));let _0x1e8cf8=0x0;for(const _0x1d3f1b of _0x583323){const _0x500446=this['_makeTape'](_0x1d3f1b['model'][_0x5d32b4]['insertions']);_0x1d3f1b==_0x159ca1?(_0x507d7d=_0x500446,_0x139f39=_0x507d7d['length'],_0x507d7d['forEach'](_0x26d12f=>{_0x26d12f['id']=_0x1e8cf8++;}),this['_processTape'](_0x507d7d)):this['_markInsertions'](_0x507d7d,_0x500446);const _0x295bcd=_0x507d7d['filter'](_0x3a8328=>!_0x3a8328['isAdded'])['map'](_0x4a9575=>_0x4a9575['id']);let _0x122893=0x0;const _0x5087b2=this['_makeTape'](_0x1d3f1b['model'][_0x5d32b4]['deletions']);_0x5087b2['forEach'](_0x5ed140=>{_0x5ed140['isRemoved']?_0x5ed140['id']=_0x139f39++:_0x5ed140['id']=_0x295bcd[_0x122893++];}),this['_processTape'](_0x5087b2),this['_setDistance'](_0x507d7d,'isAdded'),this['_setDistance'](_0x5087b2,'isRemoved'),_0x1d3f1b==_0x159ca1&&this['_markMarkers'](_0x507d7d,_0x2786e7),_0x507d7d=this['_joinTapes'](_0x507d7d,_0x5087b2),this['_refreshStartEndIndex'](_0x507d7d),this['_setDistance'](_0x507d7d,'isRemoved');}_0x507d7d=_0x507d7d['filter'](_0x40c735=>!(_0x40c735['isAdded']&&_0x40c735['isRemoved']));const _0x221f87=new Map(_0xd6bab5['model'][_0x5d32b4]['deletions']['markers']),_0x281d7b=new Set(_0x2786e7['keys']());for(const _0x245b15 of _0x221f87['keys']())_0x281d7b['delete'](_0x245b15);this['_markSuggestions'](_0x507d7d,_0x281d7b),this['_fixObsoleteTags'](_0x507d7d),_0x507d7d=this['_removeMissingPairs'](_0x507d7d),_0x507d7d=this['_markMismatchedRemovedTags'](_0x507d7d),_0x507d7d=this['_removeUnsupportedChanges'](_0x507d7d);const {root:_0x3a248c,changes:_0x325fc4}=this['_makeModelFromTape'](_0x507d7d,_0x1ea79e,_0x5d32b4);_0x5a6e2b['model'][_0x5d32b4]=_0x3a248c;const _0x3678e7=_0x47cc98['get'](_0x5d32b4);if(_0x3678e7){const _0x53c07f=_0x1ea79e['get'](_0x3678e7['userId']),_0x2aab26=new r({'author':_0x53c07f,'type':_0x3678e7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d32b4});_0x325fc4['unshift'](_0x2aab26),_0x5a6e2b['attributes'][_0x5d32b4]['revisionHistoryAttachChange']=_0x2aab26['id'];}_0x5a6e2b['changes']=_0x5a6e2b['changes']['concat'](_0x325fc4);}return _0x5a6e2b;}['_markMarkers'](_0x491319,_0x58cc64){for(let _0x14a533=0x0;_0x14a533<_0x491319['length'];_0x14a533++)for(const [_0x17ba91,_0x32e09f]of _0x58cc64)!_0x32e09f['isCollapsed']&&_0x32e09f['start']['isEqual'](_0x491319[_0x14a533]['previousPosition'])&&_0x491319[_0x14a533]['markersStart']['push'](_0x17ba91),_0x32e09f['end']['isEqual'](_0x491319[_0x14a533]['nextPosition'])&&_0x491319[_0x14a533]['markersEnd']['push'](_0x17ba91);}['_joinTapes'](_0x33331d,_0x161ba8){let _0x3401fa=[],_0x3ec779=0x0,_0xd76f2e=0x0;for(;_0x3ec779<_0x33331d['length']||_0xd76f2e<_0x161ba8['length'];){const _0x8e7ed5=_0x33331d[_0x3ec779]||{},_0x105ad9=_0x161ba8[_0xd76f2e]||{};if(_0x8e7ed5['id']==_0x105ad9['id'])_0x3ec779++,_0xd76f2e++,_0x3401fa['push'](_0x8e7ed5);else{if(_0x105ad9['isRemoved']&&_0x8e7ed5['isAdded']){const {commonTape:_0x3c7f0d,iEnd:_0x39e794,jEnd:_0xb7c445}=this['_threeWayMerge'](_0x33331d,_0x3ec779,_0x161ba8,_0xd76f2e);_0x3401fa=_0x3401fa['concat'](_0x3c7f0d),_0x3ec779=_0x39e794,_0xd76f2e=_0xb7c445;}else _0x105ad9['isRemoved']?(_0xd76f2e++,_0x3401fa['push'](_0x105ad9)):(_0x3ec779++,_0x3401fa['push'](_0x8e7ed5));}}return _0x3401fa;}['_markSuggestions'](_0x3a9a61,_0x44c28b){const _0x20ddad=[];for(let _0x2fa96b=0x0;_0x2fa96b<_0x3a9a61['length'];_0x2fa96b++){for(let _0x2bf789=0x0;_0x2bf789<_0x3a9a61[_0x2fa96b]['markersStart']['length'];_0x2bf789++){const _0x28d068=_0x3a9a61[_0x2fa96b]['markersStart'][_0x2bf789];if(!_0x44c28b['has'](_0x28d068))continue;const {group:_0x350fb1,type:_0x2d573f,authorId:_0x5c7edf}=_0x311f1f(_0x28d068);'revision-suggestion'!=_0x350fb1||'insertion'!=_0x2d573f&&'deletion'!=_0x2d573f||(_0x20ddad['unshift']({'type':_0x2d573f,'name':_0x28d068,'userId':_0x5c7edf}),_0x3a9a61[_0x2fa96b]['markersStart']['splice'](_0x2bf789,0x1),_0x2bf789--);}_0x47a0f3(_0x3a9a61[_0x2fa96b]);for(let _0x288875=0x0;_0x288875<_0x3a9a61[_0x2fa96b]['markersEnd']['length'];_0x288875++){const _0x45d1d8=_0x3a9a61[_0x2fa96b]['markersEnd'][_0x288875];if(!_0x44c28b['has'](_0x45d1d8))continue;const {group:_0x1db810,type:_0x9b599}=_0x311f1f(_0x45d1d8);if('revision-suggestion'!=_0x1db810||'insertion'!=_0x9b599&&'deletion'!=_0x9b599)continue;_0x3a9a61[_0x2fa96b]['markersEnd']['splice'](_0x288875,0x1),_0x288875--;const _0x59cd71=_0x20ddad['findIndex'](_0x3b9c37=>_0x3b9c37['name']==_0x45d1d8);_0x59cd71>-0x1&&_0x20ddad['splice'](_0x59cd71,0x1);}}function _0x311f1f(_0x92cfd7){const _0x35628e=_0x92cfd7['split'](':');return{'group':_0x35628e[0x0],'type':_0x35628e[0x1],'subType':_0x35628e['length']>=0x5?_0x35628e[0x2]:null,'id':_0x35628e['length']<0x5?_0x35628e[0x2]:_0x35628e[0x3],'authorId':_0x35628e['length']<0x5?_0x35628e[0x3]:_0x35628e[0x4],'markerCount':0x6==_0x35628e['length']?_0x35628e[0x5]:null};}function _0x47a0f3(_0x5918ba){for(let _0x13a6fe=0x0;_0x13a6fe<_0x20ddad['length'];_0x13a6fe++){if(_0x5918ba['isAdded']&&'insertion'==_0x20ddad[_0x13a6fe]['type'])return _0x5918ba['isAddSuggestion']=_0x20ddad[_0x13a6fe],void delete _0x5918ba['isAdded'];if(!_0x5918ba['isAdded']&&!_0x5918ba['isRemoved']&&'deletion'==_0x20ddad[_0x13a6fe]['type'])return void(_0x5918ba['isRemoveSuggestion']=_0x20ddad[_0x13a6fe]);}}}['_setDistance'](_0xe0ce5e,_0x3ae84c){let _0x5f10fa=0x0,_0x2c93cc=!0x1;const _0x179a23=new Map();for(const _0x195ddc of _0xe0ce5e)_0x195ddc[_0x3ae84c]?_0x2c93cc&&(_0x5f10fa++,_0x2c93cc=!0x1):(_0x5f10fa++,_0x2c93cc=!0x0),_0x179a23['set'](_0x195ddc['id'],_0x5f10fa);for(let _0x12d21b=0x0;_0x12d21b<_0xe0ce5e['length'];_0x12d21b++){if('isRemoved'==_0x3ae84c&&_0xe0ce5e[_0x12d21b]['isAdded']||'isAdded'==_0x3ae84c&&_0xe0ce5e[_0x12d21b]['isRemoved'])continue;if('text'==_0xe0ce5e[_0x12d21b]['type']){_0xe0ce5e[_0x12d21b]['distance']=0x0;continue;}const _0x1f2118=_0x179a23['get'](_0xe0ce5e[_0x12d21b]['pairId']),_0xd4a56=_0x179a23['get'](_0xe0ce5e[_0x12d21b]['id']);_0xe0ce5e[_0x12d21b]['distance']=_0x1f2118-_0xd4a56;}}['_getRevisionsRange'](_0x351a06,_0x25a3cc,_0x2ab6dd=!0x1){const _0x4d501b=[];let _0x12949d=this['repository']['getIndex'](_0x351a06),_0x23f803=this['repository']['getIndex'](_0x25a3cc);for(-0x1==_0x23f803&&(_0x23f803=this['repository']['_revisions']['length'],_0x2ab6dd=!0x1);_0x12949d<_0x23f803;)_0x4d501b['push'](this['repository']['getRevision'](_0x12949d)),_0x12949d++;return _0x2ab6dd&&_0x4d501b['push'](this['repository']['getRevision'](_0x12949d)),_0x4d501b;}['_threeWayMerge'](_0x78aa14,_0x50125c,_0x5d56c8,_0x312955){const _0x5684be=this['editor']['model']['schema'];let _0x292752=_0x50125c;for(;_0x78aa14[_0x292752]&&_0x78aa14[_0x292752]['isAdded'];)_0x292752++;let _0x10bb09=_0x312955;for(;_0x5d56c8[_0x10bb09]&&_0x5d56c8[_0x10bb09]['isRemoved'];)_0x10bb09++;_0x5b10f4(_0x78aa14,_0x50125c,_0x292752),_0x5b10f4(_0x5d56c8,_0x312955,_0x10bb09);const _0x2dfe87=_0x5d56c8['slice'](_0x312955,_0x10bb09)['concat'](_0x78aa14['slice'](_0x50125c,_0x292752));return _0x2dfe87['sort']((_0x47ae67,_0x2b016c)=>_0x47ae67['side']!=_0x2b016c['side']?_0x47ae67['side']-_0x2b016c['side']:_0x47ae67['level']!=_0x2b016c['level']?_0x47ae67['level']-_0x2b016c['level']:_0x47ae67['distance']!=_0x2b016c['distance']?_0x2b016c['distance']-_0x47ae67['distance']:!!_0x47ae67['isAdded']!=!!_0x2b016c['isAdded']?-0x1==_0x47ae67['side']||0x0==_0x47ae67['side']?_0x47ae67['isAdded']?-0x1:0x1:_0x47ae67['isAdded']?0x1:-0x1:_0x47ae67['index']-_0x2b016c['index']),{'commonTape':_0x2dfe87,'iEnd':_0x292752,'jEnd':_0x10bb09};function _0x5b10f4(_0x2985eb,_0x45d0f8,_0x5e7502){let _0x564dfb=-0x1,_0x3bb33a=Number['POSITIVE_INFINITY'],_0x44abaf=!0x0;for(let _0x4063c0=_0x45d0f8;_0x4063c0<_0x5e7502;_0x4063c0++)if(_0x5684be['isInline'](_0x2985eb[_0x4063c0]['item'])||(_0x44abaf=!0x1),_0x2985eb[_0x4063c0]['item']['startIndex']<_0x45d0f8&&(_0x564dfb=_0x4063c0),_0x2985eb[_0x4063c0]['item']['endIndex']>=_0x5e7502){_0x3bb33a=_0x4063c0;break;}_0x44abaf&&(_0x564dfb=_0x5e7502-0x1);for(let _0x55e054=_0x45d0f8;_0x55e054<_0x5e7502;_0x55e054++)_0x2985eb[_0x55e054]['side']=_0x55e054<=_0x564dfb?-0x1:_0x55e054<_0x3bb33a?0x0:0x1,_0x2985eb[_0x55e054]['index']=_0x55e054;let _0x5d5235=0x0;for(let _0x3939e3=_0x45d0f8;_0x3939e3<=_0x564dfb;_0x3939e3++)0x0==_0x2985eb[_0x3939e3]['distance']?_0x2985eb[_0x3939e3]['level']=_0x5d5235:(_0x5d5235++,_0x2985eb[_0x3939e3]['level']=_0x5d5235,_0x5d5235++);for(let _0x233b0b=_0x45d0f8;_0x233b0b<_0x5e7502;_0x233b0b++)0x0==_0x2985eb[_0x233b0b]['side']&&(_0x2985eb[_0x233b0b]['level']=_0x5d5235);_0x5d5235=0x0;for(let _0x4bc0e1=_0x5e7502-0x1;_0x4bc0e1>=_0x3bb33a;_0x4bc0e1--)0x0==_0x2985eb[_0x4bc0e1]['distance']?_0x2985eb[_0x4bc0e1]['level']=_0x5d5235:(_0x5d5235--,_0x2985eb[_0x4bc0e1]['level']=_0x5d5235,_0x5d5235--);}}['_fixObsoleteTags'](_0x40e2ce){const _0x33c285=new Map(),_0x58489d=this['editor']['model']['schema'];for(let _0x5e2e5a=0x1;_0x5e2e5a<_0x40e2ce['length'];_0x5e2e5a++){let _0x19343d,_0x2b835c,_0x211878;const _0x2bab38=_0x40e2ce[_0x5e2e5a],_0x375e06=_0x40e2ce[_0x5e2e5a-0x1];if('text'==_0x2bab38['type'])continue;if(_0x2bab38['type']!=_0x375e06['type'])continue;if(!_0x58489d['isBlock'](_0x375e06['item'])||_0x58489d['isLimit'](_0x375e06['item']))continue;if(!_0x58489d['isBlock'](_0x2bab38['item'])||_0x58489d['isLimit'](_0x2bab38['item']))continue;if((_0x40e2ce[_0x5e2e5a]['isAdded']||_0x40e2ce[_0x5e2e5a]['isAddSuggestion'])&&_0x40e2ce[_0x5e2e5a-0x1]['isRemoved'])_0x19343d=_0x40e2ce[_0x5e2e5a],_0x2b835c=_0x40e2ce[_0x5e2e5a-0x1],_0x211878=_0x5e2e5a-0x1;else{if(!_0x40e2ce[_0x5e2e5a]['isRemoved']||!_0x40e2ce[_0x5e2e5a-0x1]['isAdded']&&!_0x40e2ce[_0x5e2e5a-0x1]['isAddSuggestion'])continue;_0x19343d=_0x40e2ce[_0x5e2e5a-0x1],_0x2b835c=_0x40e2ce[_0x5e2e5a],_0x211878=_0x5e2e5a;}const _0x4a047e=_0x19343d['level']==_0x2b835c['level'],_0x2ef5a8=Math['abs'](_0x19343d['level'])<Math['abs'](_0x2b835c['level'])&&0x0==_0x2b835c['distance'];(_0x4a047e||_0x2ef5a8)&&(_0x33c285['set'](_0x2b835c['id'],_0x19343d['id']),_0x40e2ce['splice'](_0x211878,0x1),_0x5e2e5a--,_0x19343d['isAdded']=!0x1);}for(let _0x278932=0x0;_0x278932<_0x40e2ce['length'];_0x278932++)_0x33c285['has'](_0x40e2ce[_0x278932]['pairId'])&&(_0x40e2ce[_0x278932]['pairId']=_0x33c285['get'](_0x40e2ce[_0x278932]['pairId']));}['_removeMissingPairs'](_0x34b227){const _0x1f721a=new Set(_0x34b227['map'](_0x20673c=>_0x20673c['id']));for(let _0xb9fe1f=0x0;_0xb9fe1f<_0x34b227['length'];_0xb9fe1f++)_0x1f721a['has'](_0x34b227[_0xb9fe1f]['pairId'])||0x0==_0x34b227[_0xb9fe1f]['distance']||(_0x34b227[_0xb9fe1f]['isIncorrect']=!0x0);return _0x34b227['filter'](_0x52e5fa=>!_0x52e5fa['isIncorrect']);}['_markMismatchedRemovedTags'](_0xd1e08c){const _0x3a4482=new Set();for(let _0x25e994=0x0;_0x25e994<_0xd1e08c['length'];_0x25e994++){if(_0x3a4482['has'](_0xd1e08c[_0x25e994]['id'])&&_0xd1e08c[_0x25e994]['isRemoved']&&(_0xd1e08c[_0x25e994]['isIncorrect']=!0x0),_0xd1e08c[_0x25e994]['isIncorrect'])continue;if(0x0==_0xd1e08c[_0x25e994]['distance'])continue;if('elementStart'!=_0xd1e08c[_0x25e994]['type'])continue;if(null==_0xd1e08c[_0x25e994]['pairId'])continue;let _0x3b40b6=_0x25e994+0x1,_0x3e692d=0x0;for(;_0xd1e08c[_0x3b40b6]['id']!=_0xd1e08c[_0x25e994]['pairId'];)'elementStart'==_0xd1e08c[_0x3b40b6]['type']?_0x3e692d++:'elementEnd'==_0xd1e08c[_0x3b40b6]['type']&&_0x3e692d--,_0x3b40b6++;if(0x0!=_0x3e692d){if(_0xd1e08c[_0x25e994]['isRemoved'])_0xd1e08c[_0x25e994]['isIncorrect']=!0x0;else{for(;_0x3b40b6!=_0x25e994;)_0xd1e08c[_0x3b40b6]['isRemoved']&&0x0!=_0xd1e08c[_0x3b40b6]['distance']&&(_0xd1e08c[_0x3b40b6]['isIncorrect']=!0x0,_0x3a4482['add'](_0xd1e08c[_0x3b40b6]['pairId'])),_0x3b40b6--;}}}return _0xd1e08c['filter'](_0x48d7d1=>!_0x48d7d1['isIncorrect']);}['_removeUnsupportedChanges'](_0x498cff){const _0x3c6b02=this['editor']['model']['schema'];for(let _0x220b1f=0x0;_0x220b1f<_0x498cff['length'];_0x220b1f++){if(!(_0x498cff[_0x220b1f]['isAdded']||_0x498cff[_0x220b1f]['isAddSuggestion']||_0x498cff[_0x220b1f]['isRemoved']||_0x498cff[_0x220b1f]['isRemoveSuggestion']))continue;if(0x0==_0x498cff[_0x220b1f]['distance'])continue;const _0x269e35=_0x498cff[_0x220b1f]['item'];_0x3c6b02['isBlock'](_0x269e35)||_0x3c6b02['isLimit'](_0x269e35)||(_0x498cff[_0x220b1f]['isAdded']&&delete _0x498cff[_0x220b1f]['isAdded'],_0x498cff[_0x220b1f]['isAddSuggestion']&&delete _0x498cff[_0x220b1f]['isAddSuggestion'],_0x498cff[_0x220b1f]['isRemoveSuggestion']&&delete _0x498cff[_0x220b1f]['isRemoveSuggestion'],_0x498cff[_0x220b1f]['isRemoved']&&(_0x498cff[_0x220b1f]['isIncorrect']=!0x0));}return _0x498cff['filter'](_0x2ef893=>!_0x2ef893['isIncorrect']);}['_makeModelFromTape'](_0x179a69,_0x43ee73,_0x130652){const _0x5638fe=new vt(),_0x41d356=[],_0x302aa4=new Map(),_0x3bf048=this['editor']['model'],_0x2abcd4=_0x3bf048['schema'],_0x4f0f47=[_0x5638fe],_0x47933c={},_0x560d74={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x16eba8=null;const _0x35ea36=[0x0];for(let _0x37050f=0x0;_0x37050f<_0x179a69['length'];_0x37050f++)if('elementStart'===_0x179a69[_0x37050f]['type']){_0x179a69[_0x37050f]['previousPosition']=_0x3bf048['createPositionFromPath'](_0x5638fe,_0x35ea36);const _0x20030b=new ut(_0x179a69[_0x37050f]['item']['name'],_0x179a69[_0x37050f]['item']['getAttributes']());_0x4f0f47[0x0]['_appendChild'](_0x20030b),_0x35ea36['push'](0x0),_0x4f0f47['unshift'](_0x20030b),_0x179a69[_0x37050f]['nextPosition']=_0x3bf048['createPositionFromPath'](_0x5638fe,_0x35ea36);}else'elementEnd'===_0x179a69[_0x37050f]['type']?(_0x4f0f47['shift'](),_0x179a69[_0x37050f]['previousPosition']=_0x3bf048['createPositionFromPath'](_0x5638fe,_0x35ea36),_0x35ea36['pop'](),_0x35ea36[_0x35ea36['length']-0x1]++,_0x179a69[_0x37050f]['nextPosition']=_0x3bf048['createPositionFromPath'](_0x5638fe,_0x35ea36)):(_0x179a69[_0x37050f]['previousPosition']=_0x3bf048['createPositionFromPath'](_0x5638fe,_0x35ea36),_0x16eba8?_0x16eba8['_data']+=_0x179a69[_0x37050f]['item']['data']:_0x16eba8=new gt(_0x179a69[_0x37050f]['item']['data'],_0x179a69[_0x37050f]['item']['getAttributes']()),_0x179a69[_0x37050f+0x1]&&'text'===_0x179a69[_0x37050f+0x1]['type']&&_0x3352ef(_0x16eba8,_0x179a69[_0x37050f+0x1]['item'])||(_0x4f0f47[0x0]['_appendChild'](_0x16eba8),_0x16eba8=null),_0x35ea36[_0x35ea36['length']-0x1]+=_0x179a69[_0x37050f]['item']['offsetSize'],_0x179a69[_0x37050f]['nextPosition']=_0x3bf048['createPositionFromPath'](_0x5638fe,_0x35ea36));for(let _0x50037e=0x0;_0x50037e<_0x179a69['length'];_0x50037e++){const _0x473f82=_0x179a69[_0x50037e]['previousPosition'],_0x1f43d2=_0x179a69[_0x50037e]['nextPosition'];for(const _0x258776 of _0x179a69[_0x50037e]['markersStart'])_0x302aa4['set'](_0x258776,{'start':_0x473f82,'end':null});_0x3dfb41('isRemoveSuggestion',_0x50037e,_0x473f82,_0x1f43d2),_0x3dfb41('isAddSuggestion',_0x50037e,_0x473f82,_0x1f43d2),_0x3dfb41('isRemoved',_0x50037e,_0x473f82,_0x1f43d2),_0x3dfb41('isAdded',_0x50037e,_0x473f82,_0x1f43d2);for(const _0x5f206a of _0x179a69[_0x50037e]['markersEnd']){const _0x168add=_0x302aa4['get'](_0x5f206a);_0x168add?_0x168add['end']=_0x1f43d2:_0x302aa4['set'](_0x5f206a,{'start':_0x1f43d2,'end':_0x1f43d2});}}for(const [_0x1b5b65,_0x5bb3c7]of _0x302aa4){const _0x306891=this['editor']['model']['createRange'](_0x5bb3c7['start'],_0x5bb3c7['end']);_0x5638fe['markers']['set'](_0x1b5b65,_0x306891);}return _0x41d356['sort']((_0xff1f73,_0x2f6f9e)=>{const _0x375aa3=_0x5638fe['markers']['get']('revision:'+_0xff1f73['id']),_0x59dc2d=_0x5638fe['markers']['get']('revision:'+_0x2f6f9e['id']);return _0x375aa3['start']['isBefore'](_0x59dc2d['start'])?-0x1:_0x375aa3['start']['isAfter'](_0x59dc2d['start'])?0x1:_0x375aa3['end']['isBefore'](_0x59dc2d['end'])?-0x1:_0x375aa3['end']['isAfter'](_0x59dc2d['end'])?0x1:'add'===_0xff1f73['type']?-0x1:0x1;}),{'root':_0x5638fe,'changes':_0x41d356};function _0x3dfb41(_0x21499d,_0x47a497,_0x40e4a3,_0x2d9c78){const _0x2fb520=!!_0x179a69[_0x47a497][_0x21499d],_0x582e95=_0x2fb520?_0x179a69[_0x47a497][_0x21499d]['userId']:null,_0x51fdca=_0x47a497===_0x179a69['length']-0x1,_0x1dbbc3=_0x560d74[_0x21499d][0x0],_0x4dd40c=_0x2abcd4['isObject'](_0x179a69[_0x47a497]['item']);!_0x47933c[_0x21499d]&&_0x2fb520?_0x47933c[_0x21499d]={'start':_0x40e4a3,'tapeItem':_0x179a69[_0x47a497],'userId':_0x582e95,'type':_0x21499d}:_0x47933c[_0x21499d]&&!_0x2fb520?(_0x47933c[_0x21499d]['end']=_0x40e4a3,_0x1263b2(_0x47933c[_0x21499d]),_0x47933c[_0x21499d]=null):_0x47933c[_0x21499d]&&_0x2fb520&&_0x47933c[_0x21499d]['userId']!==_0x582e95&&(_0x47933c[_0x21499d]['end']=_0x40e4a3,_0x1dbbc3&&_0x1dbbc3['userId']===_0x47933c[_0x21499d]['userId']||_0x1263b2(_0x47933c[_0x21499d]),_0x47933c[_0x21499d]={'start':_0x40e4a3,'tapeItem':_0x179a69[_0x47a497],'userId':_0x582e95,'type':_0x21499d}),_0x47933c[_0x21499d]&&_0x4dd40c&&('elementStart'!==_0x179a69[_0x47a497]['type']||_0x1dbbc3&&_0x1dbbc3['userId']===_0x582e95||_0x560d74[_0x21499d]['unshift']({'userId':_0x582e95,'object':_0x179a69[_0x47a497]['item'],'change':_0x47933c[_0x21499d]}),'elementEnd'===_0x179a69[_0x47a497]['type']&&_0x1dbbc3&&_0x1dbbc3['object']===_0x179a69[_0x47a497]['item']&&(_0x560d74[_0x21499d]['shift'](),_0x47933c[_0x21499d]=_0x1dbbc3['change'])),_0x47933c[_0x21499d]&&_0x51fdca&&(_0x47933c[_0x21499d]['end']=_0x2d9c78,_0x1263b2(_0x47933c[_0x21499d]),_0x47933c[_0x21499d]=null);}function _0x1263b2({start:_0x5089f5,end:_0x1f07f3,tapeItem:_0x439f79,userId:_0x1efc22,type:_0x14c12b}){const _0x538e74=_0x439f79['item'],_0x1fef6f=_0x3bf048['schema']['isBlock'](_0x538e74)&&!_0x3bf048['schema']['isLimit'](_0x538e74),_0xd62c98=_0x5089f5['nodeAfter']==_0x1f07f3['parent']&&_0x1f07f3['isAtStart'];if(_0x1fef6f&&_0xd62c98)return;const _0x27c2b9=_0x3bf048['createRange'](_0x5089f5,_0x1f07f3),_0x6aecda=_0x43ee73['get'](_0x1efc22),_0x1d676a=new r({'author':_0x6aecda,'type':'isAdded'==_0x14c12b||'isAddSuggestion'==_0x14c12b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x14c12b||'isRemoveSuggestion'==_0x14c12b},'createdAt':new Date(),'rootName':_0x130652});_0x41d356['push'](_0x1d676a),_0x5638fe['markers']['set']('revision:'+_0x1d676a['id'],_0x27c2b9);}function _0x3352ef(_0x49d09e,_0x5bdd43){const _0x5bb499=_0x49d09e['getAttributes'](),_0x579609=_0x5bdd43['getAttributes']();for(const _0x594f18 of _0x5bb499){if(_0x594f18[0x1]!==_0x5bdd43['getAttribute'](_0x594f18[0x0]))return!0x1;_0x579609['next']();}return _0x579609['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x70bf53=>{const _0x9e37a3=_0x70bf53['markerName']['split'](':')[0x1],_0x227405=this['_getChangeFromId'](_0x9e37a3);if(!_0x227405)return null;const _0x4f03aa='add'==_0x227405['type']?'insertion':'deletion',_0x488546=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4f03aa];return _0x227405['data']['isSuggestion']&&_0x488546['push']('ck-suggestion-marker-'+_0x4f03aa+'-new'),this['activeChange']==_0x227405&&_0x488546['push']('ck-suggestion-marker--active'),{'classes':_0x488546,'attributes':{'data-change-id':_0x9e37a3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3ac72a=>{_0x3ac72a['on']('element:pre',(_0x5df475,_0x401b8e,_0x4f49e5)=>{const _0x332db4=_0x401b8e['viewItem']['getChild'](0x0);if(!_0x332db4||!_0x332db4['is']('element','code'))return;if(!_0x4f49e5['consumable']['consume'](_0x332db4,{'attributes':['vid_start','vid_end']}))return;const _0x39f899=_0x401b8e['modelRange']['start']['nodeAfter'];_0x4f49e5['writer']['setAttribute']('vid_start',_0x332db4['getAttribute']('vid_start'),_0x39f899),_0x4f49e5['writer']['setAttribute']('vid_end',_0x332db4['getAttribute']('vid_end'),_0x39f899);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x11d9bc=>{_0x11d9bc['on']('element',(_0x5b1ef8,_0x2707ac,_0x413579)=>{if(!_0x413579['consumable']['consume'](_0x2707ac['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2707ac['modelRange']['isCollapsed'])return;const _0x2148c7=_0x2707ac['modelRange']['start']['nodeAfter'];_0x2148c7['hasAttribute']('vid_start')||_0x2148c7['hasAttribute']('vid')||(_0x413579['writer']['setAttribute']('vid_start',_0x2707ac['viewItem']['getAttribute']('vid_start'),_0x2148c7),_0x413579['writer']['setAttribute']('vid_end',_0x2707ac['viewItem']['getAttribute']('vid_end'),_0x2148c7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4d1d71=>_0x4d1d71['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x389b89,[,_0x4347bb])=>{['vid_start','vid_end','vid']['includes'](_0x4347bb)&&(_0x389b89['return']=!0x0,_0x389b89['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3e4c98=>{_0x3e4c98['on']('attribute:vid',(_0x17d23d,_0xc7c833,_0xa57451)=>{if('\x20'!=_0xc7c833['item']['data']||_0xc7c833['item']['parent']['maxOffset']>0x1)return;if(!_0xa57451['consumable']['consume'](_0xc7c833['item'],_0x17d23d['name']))return;const _0x20b8d8=_0xa57451['writer'],_0x2ca001=_0xa57451['mapper']['toViewRange'](_0xc7c833['range']);_0x20b8d8['wrap'](_0x2ca001,_0x20b8d8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5a18e4){const _0x2a92fa=_0x5a18e4['plugins']['get']('RevisionViewer');return(_0x3ee0b8,_0x444ac6,_0x7b3e13)=>{const _0x293f73=_0x444ac6['markerName']['split'](':')[0x1],_0xf24809=_0x2a92fa['_getChangeFromId'](_0x293f73);if(!_0xf24809)return null;const _0x54ca84='add'==_0xf24809['type']?'split':'merge';if(!_0x7b3e13['consumable']['test'](_0x444ac6['markerRange'],_0x3ee0b8['name']))return;const _0x36bf3b=_0x444ac6['markerRange']['getWalker'](),_0x420642=_0x444ac6['markerRange']['start'],_0x3a8d67=_0x5a18e4['model']['schema'];let _0x27581a=null,_0x138b9d=null,_0x2aab7b=!0x1,_0x2e87de=!0x1;for(const _0x1402cd of _0x36bf3b){const _0xe630d=_0x1402cd['item'];_0x2aab7b=_0x2aab7b||_0x3a8d67['isContent'](_0xe630d);const _0x5ceb1c=_0x7b3e13['mapper']['toViewElement'](_0xe630d);if(_0x5ceb1c&&_0x5ceb1c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1402cd['type']&&(_0x3a8d67['isBlock'](_0xe630d)&&!_0x3a8d67['isLimit'](_0xe630d)&&(_0xe630d['nextSibling']||_0x420642['isAtEnd']?_0x27581a&&_0x27581a['parent']==_0xe630d||(_0x27581a=_0xe630d,_0x35f83a(_0x1402cd['previousPosition']),_0x2e87de=!0x0):_0x138b9d=_0x138b9d||_0x1402cd['previousPosition']));}function _0x35f83a(_0x1704ec){const _0x33b3b8=_0x7b3e13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54ca84}),_0x48b3a6=_0x7b3e13['mapper']['toViewPosition'](_0x1704ec);_0xf24809['data']['isSuggestion']&&_0x7b3e13['writer']['addClass']('ck-suggestion-marker-'+_0x54ca84+'-new',_0x33b3b8),_0x2a92fa['activeChange']==_0xf24809&&_0x7b3e13['writer']['addClass']('ck-suggestion-marker--active',_0x33b3b8),_0x7b3e13['writer']['insert'](_0x48b3a6,_0x33b3b8),_0x7b3e13['mapper']['bindElementToMarker'](_0x33b3b8,_0x444ac6['markerName']);}_0x2aab7b||_0x2e87de||!_0x138b9d||_0x35f83a(_0x138b9d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2ddf1a,_0x319fc8,_0x5142b9)=>{const _0x42d021=_0x5142b9['mapper']['markerNameToElements'](_0x319fc8['markerName']);if(_0x42d021){for(const _0x48f0db of _0x42d021)(_0x48f0db['hasClass']('ck-suggestion-marker-split')||_0x48f0db['hasClass']('ck-suggestion-marker-merge'))&&(_0x5142b9['mapper']['unbindElementFromMarkerName'](_0x48f0db,_0x319fc8['markerName']),_0x5142b9['writer']['remove'](_0x48f0db));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x525b58,_0x542d4d,_0x548f55)=>{const _0x116a4e=_0x542d4d['markerName']['split'](':')[0x1],_0x739c2f=this['_getChangeFromId'](_0x116a4e);if(!_0x739c2f)return null;const _0x422c4e='add'==_0x739c2f['type']?'split':'merge';if(_0x548f55['consumable']['test'](_0x542d4d['markerRange'],_0x525b58['name']))for(const _0x3323cc of _0x542d4d['markerRange']['getItems']()){if(!_0x3323cc['is']('element','softBreak'))continue;const _0x421ddb=_0x548f55['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x422c4e}),_0x1e8cea=_0x548f55['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3323cc));_0x739c2f['data']['isSuggestion']&&_0x548f55['writer']['addClass']('ck-suggestion-marker-'+_0x422c4e+'-new',_0x421ddb),this['activeChange']==_0x739c2f&&_0x548f55['writer']['addClass']('ck-suggestion-marker--active',_0x421ddb),_0x548f55['writer']['insert'](_0x1e8cea,_0x421ddb),_0x548f55['mapper']['bindElementToMarker'](_0x421ddb,_0x542d4d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x29a89e=>{for(const _0x28958b of this['editor']['model']['document']['getRootNames']()){const _0x21f6ff=this['editor']['model']['document']['getRoot'](_0x28958b),_0xe76a29=this['editor']['editing']['view']['document']['getRoot'](_0x28958b);if(_0xe76a29){const _0x3bc363=_0x21f6ff['getAttribute']('revisionHistoryAttachChange');if(_0x29a89e['removeAttribute']('data-change-id',_0xe76a29),_0x29a89e['removeClass']('ck-revision-history-root-add',_0xe76a29),_0x29a89e['removeClass']('ck-revision-history-root-remove',_0xe76a29),_0x29a89e['removeClass']('ck-revision-history-root--active',_0xe76a29),_0x3bc363){const _0x15fbd4=this['_getChangeFromId'](_0x3bc363);if(!_0x15fbd4)return null;_0x29a89e['setAttribute']('data-change-id',_0x3bc363,_0xe76a29),_0x29a89e['addClass']('ck-revision-history-root-'+_0x15fbd4['type'],_0xe76a29),this['activeChange']==_0x15fbd4&&_0x29a89e['addClass']('ck-revision-history-root--active',_0xe76a29);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1d0bb7=>'revision-comment:'+_0x1d0bb7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x239762=>'revision-suggestion:'+_0x239762,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x19c942=>({'name':'suggestion:'+_0x19c942,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5a2781=>{const _0x2dc479=_0x5a2781['markerName']['split'](':')[0x1];return'insertion'!=_0x2dc479&&'deletion'!=_0x2dc479?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2dc479]};}}),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',(_0x1b0f47,_0x3d4133,_0x3657ae)=>{const _0x4a46c0=_0x3657ae['mapper']['markerNameToElements'](_0x3d4133['markerName']);if(_0x4a46c0){for(const _0x399071 of _0x4a46c0)_0x399071['is']('uiElement')&&(_0x3657ae['mapper']['unbindElementFromMarkerName'](_0x399071,_0x3d4133['markerName']),_0x3657ae['writer']['remove'](_0x399071));}},{'priority':'high'});}['_getChangeFromId'](_0x518c82){return this['_changeIdToChange']['get'](_0x518c82);}['_getViewForChange'](_0x2d50fc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2d50fc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4a51ff,_0xb8ed64,_0x57c236,_0x7ca5b7)=>{_0x7ca5b7&&this['_balloon']['remove'](_0x7ca5b7),_0x57c236&&(this['_balloon']['add']({'view':_0x57c236,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2bdef9=this['editor']['editing'],_0x38bfa8=this['_getChangeFromId'](_0x57c236['changeId']);let _0xd2df79;if(_0x38bfa8['data']['isOnRoot']){const _0x472db6=_0x2bdef9['view']['getDomRoot'](_0x38bfa8['rootName']);_0xd2df79=Array['from'](_0x472db6['getClientRects']());}else{const _0x5875b3=this['editor']['model']['markers']['get']('revision:'+_0x57c236['changeId']);_0xd2df79=Array['from'](_0x2bdef9['mapper']['markerNameToElements'](_0x5875b3['name']))['map'](_0x2c7748=>_0x2bdef9['view']['domConverter']['mapViewToDom'](_0x2c7748))['map'](_0x2f3938=>Array['from'](_0x2f3938['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xd2df79[0x0];return _0xd2df79['find'](_0x33bfc8=>_0x33bfc8['top']-0x3<=this['_activeViewTarget']['y']&&_0x33bfc8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x33bfc8['left']-0x3<=this['_activeViewTarget']['x']&&_0x33bfc8['right']+0x3>=this['_activeViewTarget']['x'])||_0xd2df79[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x382eb2,_0x397a53,_0x416395,_0x5e6585)=>{this['activeView']=_0x416395?this['_getViewForChange'](_0x416395):null,this['editor']['model']['change'](()=>{const _0x2ae300=this['editor']['editing'];_0x5e6585&&(_0x5e6585['data']['isOnRoot']?_0x2ae300['view']['change'](_0x52c0be=>{_0x52c0be['removeClass']('ck-revision-history-root--active',_0x2ae300['view']['document']['getRoot'](_0x5e6585['rootName']));}):_0x2ae300['reconvertMarker']('revision:'+_0x5e6585['id'])),_0x416395&&(_0x416395['data']['isOnRoot']?_0x2ae300['view']['change'](_0x5c6578=>{_0x5c6578['addClass']('ck-revision-history-root--active',_0x2ae300['view']['document']['getRoot'](_0x416395['rootName']));}):_0x2ae300['reconvertMarker']('revision:'+_0x416395['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x140303,_0x3ea5b7)=>{if(this['activeChange'])return;const _0x32ecd5=this['_findChangeIdFromDomTarget'](_0x3ea5b7['target']),_0x40fff2=this['_changeIdToChange']['get'](_0x32ecd5);_0x40fff2?(this['_activeViewTarget']={'x':_0x3ea5b7['domEvent']['x'],'y':_0x3ea5b7['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x40fff2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x57a9b9,_0x3a6296)=>{const _0x20a3cf=this['_findChangeIdFromDomTarget'](_0x3a6296['target']),_0x130ce9=this['_changeIdToChange']['get'](_0x20a3cf);_0x130ce9?(this['_activeViewTarget']={'x':_0x3a6296['domEvent']['x'],'y':_0x3a6296['domEvent']['y']},_0x130ce9===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x130ce9):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2feb69){do{const _0xebe3c8=_0x2feb69['getAttribute']('data-change-id');if(_0xebe3c8)return _0xebe3c8;_0x2feb69=_0x2feb69['parent'];}while(_0x2feb69);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xb1d14f=>{for(const _0x4abdd7 of this['editor']['model']['markers'])_0xb1d14f['removeMarker'](_0x4abdd7);});}}function X(_0x408be7,_0x5194b6){return(_0x3567ec,_0x1a2130,_0x4afcf7)=>{if(!_0x4afcf7['consumable']['test'](_0x1a2130['markerRange'],_0x3567ec['name']))return;const _0xaf7d55=_0x1a2130['markerRange']['getWalker'](),_0xfd8bb5=_0x1a2130['markerRange']['start'],_0x5d12ac=_0x408be7['model']['schema'];let _0x360689=null,_0x4783ac=null,_0x197d2e=!0x1,_0x2925f3=!0x1;for(const _0x2bbbd0 of _0xaf7d55){const _0x5990cb=_0x2bbbd0['item'];_0x197d2e=_0x197d2e||_0x5d12ac['isContent'](_0x5990cb);const _0x135253=_0x4afcf7['mapper']['toViewElement'](_0x5990cb);if(_0x135253&&_0x135253['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2bbbd0['type']&&(_0x5d12ac['isBlock'](_0x5990cb)&&!_0x5d12ac['isLimit'](_0x5990cb)&&(_0x5990cb['nextSibling']||_0xfd8bb5['isAtEnd']?_0x360689&&_0x360689['parent']==_0x5990cb||(_0x360689=_0x5990cb,_0x3e30a7(_0x2bbbd0['previousPosition']),_0x2925f3=!0x0):_0x4783ac=_0x4783ac||_0x2bbbd0['previousPosition']));}function _0x3e30a7(_0x100b40){const _0x2b14e0=_0x4afcf7['mapper']['toViewPosition'](_0x100b40),_0x8eb3ad=_0x4afcf7['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5194b6});_0x4afcf7['writer']['insert'](_0x2b14e0,_0x8eb3ad),_0x4afcf7['mapper']['bindElementToMarker'](_0x8eb3ad,_0x1a2130['markerName']);}_0x197d2e||_0x2925f3||!_0x4783ac||_0x3e30a7(_0x4783ac);};}class mt extends _0x19df04{constructor(_0x4b15dd){super(_0x4b15dd);const _0x4b6608=_0x4b15dd['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4b6608,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b6608,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3e4c48=this['editor'],_0x526cd8=_0x3e4c48['plugins']['get'](m),_0x453978=_0x526cd8['isReady']?_0x526cd8['diff']['newRevisionId']:null;_0x3e4c48['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x453978);}['refresh'](){const {isReady:_0x42d5fb,isEnabled:_0x55821c,repository:_0x435639,diff:_0x3a8405}=this['editor']['plugins']['get'](m),_0x4ed2dd=_0x3a8405&&_0x435639['getLaterVisibleRevision'](_0x3a8405['newRevisionId']);this['isEnabled']=_0x42d5fb&&_0x55821c&&Boolean(_0x4ed2dd);}}class wt extends _0x19df04{['_step'];constructor(_0x33eedf,{direction:_0x127bd6}){super(_0x33eedf);const _0x6af34a=_0x33eedf['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x127bd6?0x1:-0x1,this['listenTo'](_0x6af34a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x6af34a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x6af34a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5904dd=this['editor'],_0x131a55=_0x5904dd['plugins']['get'](m),{isNavigationMode:_0x1b4428,currentChangeNumber:_0x26e389}=_0x131a55;let _0x5becc3;if(_0x131a55['activeChange']=_0x1b4428?_0x131a55['diff']['changes']['get'](_0x26e389+this['_step']):_0x131a55['diff']['changes']['first'],_0x131a55['activeChange']['data']['isOnRoot'])_0x5becc3=_0x5904dd['editing']['view']['getDomRoot'](_0x131a55['activeChange']['rootName']);else{const _0x1d671e=_0x5904dd['model']['markers']['get']('revision:'+_0x131a55['activeChange']['id']);_0x5becc3=_0x312542(_0x5904dd['editing'],_0x1d671e);}_0x4cc5d8({'target':_0x5becc3,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x47cf12,currentChangeNumber:_0x534bb4,numberOfChanges:_0x2e8b25,isReady:_0x4e57f0,isEnabled:_0x188dfb}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x188dfb&&_0x4e57f0&&_0x2e8b25)&&(!_0x47cf12||(0x1===this['_step']?_0x534bb4<_0x2e8b25-0x1:_0x534bb4>0x0));}}class _i extends ts{constructor(_0x56fd7a){super(_0x56fd7a);const _0x4397af=this['bindTemplate'],_0x58fe78=new te(_0x56fd7a),_0x5201ee=new te(_0x56fd7a);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',(_0x546e18,_0x23645d)=>_0x546e18&&_0x23645d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4d8305,_0x4209ae,_0x592084,_0x35e831)=>{if(!_0x4d8305)return g(_0x56fd7a,'Loading...');if(!_0x592084)return g(_0x56fd7a,'No\x20changes');const _0x589f88=g(_0x56fd7a,'NUMBER_OF_CHANGES',_0x592084);return _0x35e831?g(_0x56fd7a,'X_OF_Y_CHANGES',[_0x4209ae+0x1,_0x592084]):_0x589f88;}),_0x58fe78['set']({'label':g(_0x56fd7a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1b3728}),_0x5201ee['set']({'label':g(_0x56fd7a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x57f286}),_0x58fe78['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5201ee['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x58fe78['on']('execute',()=>this['fire']('execute','backward')),_0x5201ee['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',_0x4397af['if']('_isStatusLabelVisible','ck-hidden',_0x2882f2=>!_0x2882f2)]},'children':[{'text':_0x4397af['to']('isNavigationMode',_0x46163d=>_0x46163d?g(_0x56fd7a,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x56fd7a,'Total')+':\x20')}]},{'text':_0x4397af['to']('_statusText')}]},new _0x4a501d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x58fe78,_0x5201ee]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x123d7e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4fb120=this['editor']['editing']['view'];_0x4fb120['change'](_0x3b736a=>{for(const _0xec48a8 of _0x4fb120['document']['roots'])_0x3b736a['addClass'](le,_0xec48a8);});}['hide'](){const _0x549fdc=this['editor']['editing']['view'];_0x549fdc['change'](_0x38d2d1=>{for(const _0x2b2bc3 of _0x549fdc['document']['roots'])_0x38d2d1['removeClass'](le,_0x2b2bc3);});}}class R extends _0x123d7e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x4a36c=this['editor'],_0x3d7a0d=_0x4a36c['plugins']['get'](m),_0x433b3b=_0x4a36c['plugins']['get'](ge);_0x4a36c['ui']['componentFactory']['add']('exitToEditing',_0x29f1b3=>{const _0x511ec4=new te(_0x29f1b3);return _0x511ec4['set']({'label':g(_0x29f1b3,'Back\x20to\x20editing'),'icon':_0x3cc288,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x511ec4,'execute',()=>{_0x4a36c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x511ec4;}),_0x4a36c['ui']['componentFactory']['add']('restoreRevision',_0x108fc0=>{const _0x672597=new te(_0x108fc0);return _0x672597['set']({'label':g(_0x108fc0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x672597['bind']('isEnabled')['to'](_0x4a36c['commands']['get']('restoreRevision')),this['listenTo'](_0x672597,'execute',()=>_0x4a36c['execute']('restoreRevision')),_0x672597;}),_0x4a36c['ui']['componentFactory']['add']('changesNavigation',_0x40d2ee=>{const _0x17a248=new _i(_0x40d2ee),_0xec3e95=_0x4a36c['commands']['get']('showPreviousChange'),_0x4b9d2a=_0x4a36c['commands']['get']('showNextChange');return _0x17a248['bind']('isBackwardNavigationEnabled')['to'](_0xec3e95,'isEnabled'),_0x17a248['bind']('isForwardNavigationEnabled')['to'](_0x4b9d2a,'isEnabled'),_0x17a248['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3d7a0d),this['listenTo'](_0x17a248,'execute',(_0x4b76ac,_0x17d545)=>{_0x4a36c['execute']('forward'===_0x17d545?'showNextChange':'showPreviousChange');}),_0x17a248;}),_0x433b3b['show'](),_0x3d7a0d['on']('change:isReady',(_0x341d82,_0x589d1b,_0x457d29)=>{_0x457d29?_0x433b3b['hide']():_0x433b3b['show']();});}}class at extends _0xb76ef9{['_resizeObserver']=null;constructor(_0x582ee5,_0x393d0d){super(_0x582ee5,_0x393d0d);const _0x5ede6b=this['bindTemplate'];this['set']({'label':g(_0x582ee5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x582ee5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5ede6b['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 _0x1e4308=this['fieldView']['element'];this['_tooltipString']=_0x1e4308['scrollWidth']>_0x1e4308['clientWidth']&&_0x1e4308['value']||'';}}class si extends ts{constructor(_0x174079,_0x116bfa,_0x31822b){super(_0x174079);const _0x1531b1=new _0x89e6d0();_0x1531b1['set']({'content':_0x33af0d,'viewBox':'0\x200\x2011\x2010'});const _0x4626a0=['ck','ck-revision-history-sidebar__revision-author'];_0x31822b&&_0x4626a0['push']('ck-revision-history-sidebar__revision-author_creator');const _0x401fd3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x174079,_0x31822b?'Revision\x20creator':'Revision\x20author')},'children':[_0x1531b1,_0x116bfa['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4626a0},'children':_0x401fd3});}}function oi(_0x326e22,_0xca3085){const _0x25769b=_0x326e22['bindTemplate'],_0x2c9094=_0x326e22['locale'],_0x3ac1ff=_0x46c8d6(_0x2c9094);_0x3ac1ff['panelPosition']='sw';const _0x441809=function(_0x12a068,_0x616f44){const _0xe0400a=function(_0x22910f,_0x11c03c){const _0x550949=_0x22910f['locale'],_0x2f51fe={'Compare\x20against\x20selected':g(_0x550949,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x550949,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x550949,'Restore\x20this\x20revision')};return _0x11c03c['map'](_0xee4215=>{const _0x9ef0b9=_0x2f51fe[_0xee4215['name']];return _0x9ef0b9&&_0x9ef0b9!==_0xee4215['name']&&(_0xee4215['name']=_0x9ef0b9),_0xee4215;});}(_0x12a068,_0x616f44),_0x1e94c5=new _0x44fedb();for(const _0x1ea980 of _0xe0400a){const _0x2948d7={'type':'button','model':new to({'label':_0x1ea980['name'],'class':_0x1ea980['class'],'withText':!0x0,'role':'menuitem','_action':_0x1ea980['action']})};_0x2948d7['model']['bind']('isEnabled')['to'](_0x12a068,'isActionsDropdownOpen',_0x36effc=>'function'!=typeof _0x1ea980['isEnabled']||(!_0x36effc||_0x1ea980['isEnabled'](_0x12a068))),_0x1e94c5['add'](_0x2948d7);}return _0x1e94c5;}(_0x326e22,_0xca3085);return _0x326e22['bind']('isActionsDropdownOpen')['to'](_0x3ac1ff,'isOpen'),_0x3ac1ff['buttonView']['set']({'label':g(_0x2c9094,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xd1d7da}),_0x3ac1ff['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x25769b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x25769b['to'](_0xd816a6=>_0xd816a6['stopPropagation']())}}),_0x3ac1ff['on']('execute',_0x2906d1=>{_0x326e22['isReady']&&'function'==typeof _0x2906d1['source']['_action']&&_0x2906d1['source']['_action'](_0x326e22);}),_0x3c14c2(_0x3ac1ff,_0x441809,{'role':'menu'}),_0x3ac1ff['listenTo'](_0x326e22,'change:isActionsDropdownOpen',(_0x136bc3,_0x3046d2,_0x490278)=>{if(_0x490278)for(const _0x149df1 of _0x3ac1ff['listView']['items']){const _0xc49a2a=_0x149df1['children']['first'],_0x444266=_0xca3085['find'](_0x2d8cf3=>_0x2d8cf3['action']===_0xc49a2a['_action'])['isVisible'];_0x149df1['isVisible']=void 0x0===_0x444266||_0x444266(_0x326e22);}}),_0x3ac1ff;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x1ee386,uid as _0x4ec44c,Collection as _0x53118a,logWarning as _0x289851,FocusTracker as _0x2f99bb,KeystrokeHandler as _0x3606a4,scrollViewportToShowTarget as _0xe0078a,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x1a8948}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x276882,set as _0xe4fb0a,unset as _0x4f2c35,isEqual as _0x2d62e8}from'es-toolkit/compat';import{Plugin as _0x797c22,PendingActions as _0x405adc,Command as _0x4476d4,ElementApiMixin as _0x5ec076,Editor as _0x4127eb}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3c2f07,getMarkerDomElement as _0x52efab,ConfirmMixin as ti,sanitizeEditorConfig as _0x2737c2}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x25f9d7,ViewAttributeElement as _0x346377,ViewEmptyElement as _0x16214b,ViewRawElement as _0x40c28d,ViewUIElement as _0x4627fe,ViewDocumentFragment as _0x2a87a8,ViewText as _0x1d9e05,ViewElement as _0x2246a5,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4ac70d,IconChevronUp as _0x53b272,IconChevronDown as _0x571741,IconUndo as _0x34b947,IconUser as _0x178995,IconThreeVerticalDots as _0x47c610}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x56cc0e,submitHandler as _0x1b7275,LabeledFieldView as _0x5a4a5c,createLabeledInputText as _0x12e235,createDropdown as _0x4afe27,ListView as _0x23f0b6,ListItemView as _0x5d8250,ButtonView as te,MenuBarMenuView as _0x2703ff,MenuBarMenuListView as _0x2073c5,MenuBarMenuListItemView as _0x493ab2,MenuBarMenuListItemButtonView as _0x10f86b,ContextualBalloon as _0x242a6a,ToolbarSeparatorView as _0x4e1626,IconView as _0x21eeb1,addListToDropdown as _0x24cbc9,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 _0x8ae639}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1ee386(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3b9cd8){super(),this['id']=_0x3b9cd8['id']||_0x4ec44c(),this['creator']=_0x3b9cd8['creator']||null,this['authors']=_0x3b9cd8['authors']||[],this['diffData']=_0x3b9cd8['diffData']||null,this['toVersion']=_0x3b9cd8['toVersion']||0x0,this['fromVersion']=_0x3b9cd8['fromVersion']||0x0,this['set']('name',_0x3b9cd8['name']||''),this['set']('createdAt',_0x3b9cd8['createdAt']||new Date()),this['set']('attributes',_0x3b9cd8['attributes']||{});}['setName'](_0x22c7ee){this['_update']({'name':_0x22c7ee});}['setAttribute'](_0x340f73,_0xf688ea){const _0x5eb85f=_0x276882(this['attributes']);_0xe4fb0a(_0x5eb85f,_0x340f73,_0xf688ea),this['_update']({'attributes':_0x5eb85f});}['removeAttribute'](_0x286ba6){const _0x323a2d=_0x276882(this['attributes']);_0x4f2c35(_0x323a2d,_0x286ba6),this['_update']({'attributes':_0x323a2d});}['_update'](_0x13fc85,_0xf864fd=!0x1){let _0x2e610d=!0x1;const _0xccd9f4={'id':this['id']},_0x56d332=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x29dcd8 of _0x56d332){const _0x2d0795=_0x13fc85[_0x29dcd8];void 0x0!==_0x2d0795&&_0x2d0795!==this[_0x29dcd8]&&(this[_0x29dcd8]=_0x2d0795,_0xccd9f4[_0x29dcd8]=_0x2d0795,_0x2e610d=!0x0);}_0x2e610d&&(_0xccd9f4['authors']&&(_0xccd9f4['authorsIds']=_0xccd9f4['authors']['map'](_0x2da465=>_0x2da465['id']),delete _0xccd9f4['authors']),this['fire']('_update',_0xccd9f4,_0xf864fd));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4d1a54=>_0x4d1a54['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x797c22{['_revisions'];static get['requires'](){return[_0x3c2f07];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4e0e95){super(_0x4e0e95),this['_revisions']=new _0x53118a();}['afterInit'](){!async function(_0x10720a){const _0x166f1b=_0x50a48d([0x32,0x59,0x62,0x35,0x6f,0x41,0x38,0x76,0x53,0x54,0x49,0x6c,0x74,0x79,0x64,0x44,0x6a,0x67,0x45,0x70,0x5a,0x34,0x46,0x6b,0x78,0x47,0x4b,0x4e,0x52,0x65,0x68,0x42,0x66,0x56,0x43,0x69,0x6e,0x31,0x73,0x72,0x57,0x6d,0x39,0x7a,0x55,0x4f,0x50,0x58,0x61,0x36,0x37,0x63,0x77,0x33,0x75,0x30,0x71,0x4c,0x51,0x48,0x4a,0x4d]),_0x167880=0xeb829,_0x326766=0x3125e40c,_0x5bddfd=0x312282c4^_0x326766,_0x16a61d=window[_0x50a48d([0x44,0x61,0x74,0x65])][_0x50a48d([0x6e,0x6f,0x77])](),_0x5cc910=_0x10720a[_0x50a48d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb6407d=new window[(_0x50a48d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a6ec0=>{_0x5cc910[_0x50a48d([0x6f,0x6e,0x63,0x65])](_0x50a48d([0x72,0x65,0x61,0x64,0x79]),_0x2a6ec0);}),_0x5d8bf7={[_0x50a48d([0x6b,0x74,0x79])]:_0x50a48d([0x45,0x43]),[_0x50a48d([0x75,0x73,0x65])]:_0x50a48d([0x73,0x69,0x67]),[_0x50a48d([0x63,0x72,0x76])]:_0x50a48d([0x50,0x2d,0x32,0x35,0x36]),[_0x50a48d([0x78])]:_0x50a48d([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]),[_0x50a48d([0x79])]:_0x50a48d([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]),[_0x50a48d([0x61,0x6c,0x67])]:_0x50a48d([0x45,0x53,0x32,0x35,0x36])},_0x2a79f9=_0x5cc910[_0x50a48d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50a48d([0x67,0x65,0x74])](_0x50a48d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1065b1(){let _0x16daaa,_0x533b12=null,_0x4b3f3a=null;try{if(_0x2a79f9==_0x50a48d([0x47,0x50,0x4c]))return _0x50a48d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16daaa=_0x1eb3f2(),!_0x16daaa)return _0x50a48d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16daaa[_0x50a48d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b3f3a=_0x225302(_0x16daaa[_0x50a48d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16daaa[_0x50a48d([0x6a,0x74,0x69])])),await _0x5899b2()?_0x39d27e()?_0x2d0636()?_0x50a48d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x429ddb()?(_0x16daaa[_0x50a48d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50a48d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x533b12=_0x2a6abd(_0x50a48d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16daaa[_0x50a48d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50a48d([0x74,0x72,0x69,0x61,0x6c])&&(_0x533b12=_0x2a6abd(_0x50a48d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x55f3e4()):_0x50a48d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50a48d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50a48d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3a3ea0){return _0x50a48d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d0636(){const _0x4053be=[_0x50a48d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50a48d([0x74,0x72,0x69,0x61,0x6c])][_0x50a48d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16daaa[_0x50a48d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16a61d/0x3e8:0xe10*_0x5bddfd;return _0x16daaa[_0x50a48d([0x65,0x78,0x70])]<_0x4053be;}function _0x39d27e(){const _0x5df275=_0x16daaa[_0x50a48d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5df275)return!0x1;if(_0x5df275[_0x50a48d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a48d([0x2a])))return!0x0;if(_0x5df275[_0x50a48d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a48d([0x52,0x48])))return!0x0;if(_0x5df275[_0x50a48d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a48d([0x52,0x52,0x48]))){if(_0x41aefa())return!0x0;if(_0x2d579f()||_0x37925a())return!0x0;}return!0x1;}function _0x429ddb(){const _0x3d9d10=_0x16daaa[_0x50a48d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d9d10||0x0==_0x3d9d10[_0x50a48d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5deb96}=new URL(window[_0x50a48d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d9d10[_0x50a48d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5deb96))return!0x0;const _0x1cdc84=_0x5deb96[_0x50a48d([0x73,0x70,0x6c,0x69,0x74])](_0x50a48d([0x2e]));return _0x3d9d10[_0x50a48d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x262aed=>_0x262aed[_0x50a48d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a48d([0x2a])))[_0x50a48d([0x6d,0x61,0x70])](_0x1a183=>_0x1a183[_0x50a48d([0x73,0x70,0x6c,0x69,0x74])](_0x50a48d([0x2e])))[_0x50a48d([0x73,0x6f,0x6d,0x65])](_0x3bbce5=>_0x1cdc84[_0x50a48d([0x65,0x76,0x65,0x72,0x79])]((_0x6adf26,_0x429cb2)=>_0x3bbce5[_0x429cb2]===_0x6adf26||_0x3bbce5[_0x429cb2]===_0x50a48d([0x2a])));}function _0x55f3e4(){return _0x533b12&&_0x4b3f3a?new window[(_0x50a48d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59a96a,_0x281898)=>{_0x533b12[_0x50a48d([0x74,0x68,0x65,0x6e])](_0x59a96a,_0x281898),_0x4b3f3a[_0x50a48d([0x74,0x68,0x65,0x6e])](_0x46288f=>{_0x46288f!=_0x50a48d([0x56,0x61,0x6c,0x69,0x64])&&_0x59a96a(_0x46288f);},_0x281898);}):_0x533b12||_0x4b3f3a||_0x50a48d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x225302(_0x14cb87,_0x12eb79){return new window[(_0x50a48d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3267e2=>{if(_0x26bb66())return _0x3267e2(_0x50a48d([0x56,0x61,0x6c,0x69,0x64]));_0x421df0(),_0x5cc910[_0x50a48d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50a48d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xde7679=!0x1;const _0x3eb2f3=_0x4ec44c();function _0x5203e9(_0x4e7de7){return!!_0x4e7de7&&(typeof _0x4e7de7===_0x50a48d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e7de7===_0x50a48d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e7de7[_0x50a48d([0x74,0x68,0x65,0x6e])]===_0x50a48d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e7de7[_0x50a48d([0x63,0x61,0x74,0x63,0x68])]===_0x50a48d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x342ee7(_0x37413e){_0x185be3(_0x37413e)[_0x50a48d([0x74,0x68,0x65,0x6e])](_0x5f456c=>{if(!_0x5f456c||_0x5f456c[_0x50a48d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50a48d([0x6f,0x6b]))return _0x50a48d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b4184(_0x7faf43(_0x3eb2f3+_0x12eb79))!=_0x5f456c[_0x50a48d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50a48d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50a48d([0x56,0x61,0x6c,0x69,0x64]);})[_0x50a48d([0x74,0x68,0x65,0x6e])](_0x78f6f9=>(_0x4b0269(),_0x78f6f9),()=>{const _0x19c557=_0x306961();return null==_0x19c557?(_0x4b0269(),_0x50a48d([0x56,0x61,0x6c,0x69,0x64])):_0x50a48d(_0x16a61d-_0x19c557>(0x1529600c^_0x326766)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50a48d([0x74,0x68,0x65,0x6e])](_0x3267e2)[_0x50a48d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3267e2(_0x50a48d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59a4be=0x31130a8c^_0x326766;function _0x4b0269(){const _0x39352c=_0x50a48d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b4184(_0x7faf43(_0x14cb87)),_0x37c144=_0xecfa39(_0x2b4184(window[_0x50a48d([0x4d,0x61,0x74,0x68])][_0x50a48d([0x63,0x65,0x69,0x6c])](_0x16a61d/_0x59a4be)));window[_0x50a48d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50a48d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39352c,_0x37c144);}function _0x306961(){const _0x188c56=_0x50a48d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b4184(_0x7faf43(_0x14cb87)),_0x329775=window[_0x50a48d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50a48d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x188c56);return _0x329775?window[_0x50a48d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xecfa39(_0x329775),0x10)*_0x59a4be:null;}function _0x185be3(_0x5da97d){return new window[(_0x50a48d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcad7b1,_0x3b123a)=>{_0x5da97d[_0x50a48d([0x74,0x68,0x65,0x6e])](_0xcad7b1,_0x3b123a),window[_0x50a48d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b123a,0x312430cc^_0x326766);});}}_0x5cc910[_0x50a48d([0x6f,0x6e])](_0x50a48d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28ec0d,_0x3808f0)=>{if(_0x3808f0[0x0]!=_0x14cb87)return _0x3267e2(_0x50a48d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3808f0[0x1]={..._0x3808f0[0x1],[_0x50a48d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3eb2f3};},{[_0x50a48d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50a48d([0x68,0x69,0x67,0x68])}),_0x5cc910[_0x50a48d([0x6f,0x6e])](_0x50a48d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c63f9=>{_0x5203e9(_0x2c63f9[_0x50a48d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xde7679=!0x0,_0x342ee7(_0x2c63f9[_0x50a48d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50a48d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50a48d([0x6c,0x6f,0x77])}),_0xb6407d[_0x50a48d([0x74,0x68,0x65,0x6e])](()=>{_0xde7679||_0x3267e2(_0x50a48d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26bb66(){return _0x5cc910[_0x50a48d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50a48d([0x76,0x69,0x65,0x77])][_0x50a48d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50a48d([0x61,0x75,0x74,0x6f]);}function _0x421df0(){_0x5cc910[_0x50a48d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50a48d([0x76,0x69,0x65,0x77])][_0x50a48d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50a48d([0x61,0x75,0x74,0x6f]);}}function _0x2a6abd(_0x4df93c){const _0x12f106=[new window[(_0x50a48d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f02c1=>setTimeout(_0x4f02c1,0x312cdac0^_0x326766)),_0xb6407d[_0x50a48d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50a48d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x318cfb=>{const _0x144cd4=0x3125e40b^_0x326766,_0x1c47e3=_0x10720a[_0x50a48d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x531bed(){_0x1c47e3[_0x50a48d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x144cd4&&_0x318cfb();}_0x531bed(),_0x1c47e3[_0x50a48d([0x6f,0x6e])](_0x50a48d([0x61,0x64,0x64]),_0x531bed);})),new window[(_0x50a48d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b3b35=>{function _0x517837(){for(const _0x18b9d5 in window)if(window[_0x50a48d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x50a48d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x18b9d5))&&window[_0x18b9d5]==_0x167880)return _0x1b3b35();_0x5cc910[_0x50a48d([0x73,0x74,0x61,0x74,0x65])]!=_0x50a48d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x50a48d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x517837,0x3125f784^_0x326766);}_0xd8662e(_0x50a48d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x517837();})];return window[_0x50a48d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50a48d([0x72,0x61,0x63,0x65])](_0x12f106)[_0x50a48d([0x74,0x68,0x65,0x6e])](()=>_0x4df93c);}async function _0x11b24b(){if(await _0xb6407d,_0xd8662e(_0x50a48d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4f7a6d=_0x10720a[_0x50a48d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x306c7a=_0x10720a[_0x50a48d([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])](_0x4f7a6d[_0x50a48d([0x69,0x64])]),_0x4e55c8=_0x48e9f2(_0x50a48d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4e55c8[_0x50a48d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4f7a6d['id'],_0x306c7a?_0x306c7a['id']:null,!0x0),_0x4e55c8[_0x50a48d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x50a48d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4e55c8[_0x50a48d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4e55c8[_0x50a48d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x24df23,void(_0x4e55c8[_0x50a48d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x24df23);}if(_0xd8662e(_0x50a48d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x25ec5c=_0x48e9f2(_0x50a48d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x25ec5c[_0x50a48d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x50a48d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x25ec5c[_0x50a48d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x25ec5c[_0x50a48d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x24df23,_0x25ec5c[_0x50a48d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x24df23;}_0x5cc910[_0x50a48d([0x6d,0x6f,0x64,0x65,0x6c])][_0x50a48d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24df23,_0x5cc910[_0x50a48d([0x6d,0x6f,0x64,0x65,0x6c])][_0x50a48d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24df23,_0x5cc910[_0x50a48d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50a48d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41aefa(){return _0xd8662e(_0x50a48d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x48e9f2(_0x50a48d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x50a48d([0x73,0x74,0x61,0x74,0x65])]==_0x50a48d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2d579f(){return _0xd8662e(_0x50a48d([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 _0x37925a(){return _0xd8662e(_0x50a48d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3f5cb6(_0x54dc2a){const _0x5283d6=_0x381a61();_0x5cc910[_0x5283d6]=_0x50a48d([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])+_0x54dc2a,_0x54dc2a[_0x50a48d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x50a48d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x381a61()]=_0x167880),_0x54dc2a!=_0x50a48d([0x56,0x61,0x6c,0x69,0x64])&&_0x11b24b();}function _0x381a61(){const _0x4a8aee=window[_0x50a48d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50a48d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50a48d([0x6e,0x6f,0x77])]())[_0x50a48d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50a48d([0x2e]),'');let _0x2b8bae=_0x50a48d([0x59]);for(let _0x517389=0x0;_0x517389<_0x4a8aee[_0x50a48d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x517389+=0x2){let _0xec2d89=window[_0x50a48d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a8aee[_0x50a48d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x517389,_0x517389+0x2));_0xec2d89>=_0x166f1b[_0x50a48d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xec2d89-=_0x166f1b[_0x50a48d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b8bae+=_0x166f1b[_0xec2d89];}return _0x2b8bae;}function _0x1eb3f2(){const _0x129fa6=_0x2a79f9[_0x50a48d([0x73,0x70,0x6c,0x69,0x74])](_0x50a48d([0x2e]));if(0x3!=_0x129fa6[_0x50a48d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51f1f5(_0x129fa6[0x1]);function _0x51f1f5(_0x4e5748){const _0x4cea24=_0x50828f(_0x4e5748);return _0x4cea24&&_0x3ec542()?_0x4cea24:null;function _0x3ec542(){const _0x21415b=_0x4cea24[_0x50a48d([0x6a,0x74,0x69])],_0xec885e=window[_0x50a48d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21415b[_0x50a48d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21415b[_0x50a48d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2532a1={..._0x4cea24,[_0x50a48d([0x6a,0x74,0x69])]:_0x21415b[_0x50a48d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21415b[_0x50a48d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2532a1[_0x50a48d([0x76,0x63])],_0x7faf43(_0x2532a1)==_0xec885e;}}}async function _0x5899b2(){let _0x3d7953=!0x0;try{const _0x3ad513=_0x2a79f9[_0x50a48d([0x73,0x70,0x6c,0x69,0x74])](_0x50a48d([0x2e])),[_0x5bca44,_0x20b163,_0x3f28a9]=_0x3ad513;return _0x295d73(_0x5bca44),await _0x1b37d2(_0x5bca44,_0x20b163,_0x3f28a9),_0x3d7953;}catch(_0x58d755){return!0x1;}function _0x295d73(_0x284ebb){const _0x4dfb90=_0x50828f(_0x284ebb);_0x4dfb90&&_0x4dfb90[_0x50a48d([0x61,0x6c,0x67])]==_0x50a48d([0x45,0x53,0x32,0x35,0x36])||(_0x3d7953=!0x1);}async function _0x1b37d2(_0x6dd4a8,_0x3780f4,_0xa9b43b){const _0x349aae=window[_0x50a48d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50a48d([0x66,0x72,0x6f,0x6d])](_0x5b0b76(_0xa9b43b),_0x2226ce=>_0x2226ce[_0x50a48d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xedde8c=new window[(_0x50a48d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50a48d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6dd4a8+_0x50a48d([0x2e])+_0x3780f4),_0x43dcb5=window[_0x50a48d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50a48d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43dcb5)return;const _0x4ba34d=await _0x43dcb5[_0x50a48d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50a48d([0x6a,0x77,0x6b]),_0x5d8bf7,{[_0x50a48d([0x6e,0x61,0x6d,0x65])]:_0x50a48d([0x45,0x43,0x44,0x53,0x41]),[_0x50a48d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50a48d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50a48d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43dcb5[_0x50a48d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50a48d([0x6e,0x61,0x6d,0x65])]:_0x50a48d([0x45,0x43,0x44,0x53,0x41]),[_0x50a48d([0x68,0x61,0x73,0x68])]:{[_0x50a48d([0x6e,0x61,0x6d,0x65])]:_0x50a48d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ba34d,_0x349aae,_0xedde8c)||(_0x3d7953=!0x1);}}function _0x50828f(_0xbea595){return _0xbea595[_0x50a48d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50a48d([0x65,0x79]))?JSON[_0x50a48d([0x70,0x61,0x72,0x73,0x65])](_0x5b0b76(_0xbea595)):null;}function _0x5b0b76(_0x5d7c6b){return window[_0x50a48d([0x61,0x74,0x6f,0x62])](_0x5d7c6b[_0x50a48d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50a48d([0x2b]))[_0x50a48d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50a48d([0x2f])));}function _0x7faf43(_0x3ab5bc){let _0x18c29e=0x1505;function _0xcd7abc(_0x542f61){for(let _0x2f7b77=0x0;_0x2f7b77<_0x542f61[_0x50a48d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f7b77++){const _0x2f7727=_0x542f61[_0x50a48d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f7b77);_0x18c29e=(_0x18c29e<<0x5)+_0x18c29e+_0x2f7727,_0x18c29e&=_0x18c29e;}}function _0x141ee0(_0xb13b3d){Array[_0x50a48d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb13b3d)?_0xb13b3d[_0x50a48d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x141ee0):_0xb13b3d&&typeof _0xb13b3d==_0x50a48d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50a48d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb13b3d)[_0x50a48d([0x73,0x6f,0x72,0x74])]()[_0x50a48d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb9eed0,_0x3967a2])=>{_0xcd7abc(_0xb9eed0),_0x141ee0(_0x3967a2);}):_0xcd7abc(window[_0x50a48d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb13b3d));}return _0x141ee0(_0x3ab5bc),_0x18c29e>>>0x0;}function _0x2b4184(_0x4d6ff5){return _0x4d6ff5[_0x50a48d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50a48d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50a48d([0x30]));}function _0xecfa39(_0x589dc7){return _0x589dc7[_0x50a48d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50a48d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50a48d([0x6a,0x6f,0x69,0x6e])]('');}function _0xd8662e(_0x341651){return _0x5cc910[_0x50a48d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x50a48d([0x68,0x61,0x73])](_0x341651);}function _0x48e9f2(_0x1be6ce){return _0x5cc910[_0x50a48d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x50a48d([0x67,0x65,0x74])](_0x1be6ce);}function _0x24df23(){}function _0x50a48d(_0x5319c7){return _0x5319c7['map'](_0x56359a=>String['fromCharCode'](_0x56359a))['join']('');}_0x3f5cb6(await _0x1065b1());}(this);}['createRevision'](_0x2aa45c){const _0x48c2e7=this['editor']['plugins']['get']('Users');return new h({'id':_0x2aa45c['id'],'name':_0x2aa45c['name'],'creator':_0x2aa45c['creatorId']?_0x48c2e7['getUser'](_0x2aa45c['creatorId']):null,'diffData':_0x2aa45c['diffData']||_0x2aa45c['data'],'authors':_0x2aa45c['authorsIds']['map'](_0x29045d=>_0x48c2e7['getUser'](_0x29045d)),'createdAt':new Date(_0x2aa45c['createdAt']),'attributes':_0x2aa45c['attributes'],'fromVersion':_0x2aa45c['fromVersion'],'toVersion':_0x2aa45c['toVersion']});}['addRevision'](_0x4b7598,_0x53c682=0x0){this['_revisions']['add'](_0x4b7598,_0x53c682);}['getRevision'](_0xba01b0){return this['_revisions']['get'](_0xba01b0);}['getRevisions'](_0x435328={'toJSON':!0x1}){const _0x53d907=Array['from'](this['_revisions']);return _0x53d907['reverse'](),_0x435328['toJSON']?_0x53d907['map'](_0x48016e=>_0x48016e['toJSON']()):_0x53d907;}['getIndex'](_0x33d44a){return this['_revisions']['getIndex'](_0x33d44a);}['getEarlierVisibleRevision'](_0x67663d){const [,_0x10b977]=this['getRevisionsIterator'](_0x67663d,{'direction':'earlier'});return _0x10b977;}['getLaterVisibleRevision'](_0x2f9526){const [,_0x209150]=this['getRevisionsIterator'](_0x2f9526,{'direction':'later'});return _0x209150;}['getRevisionsInDiff'](_0x3b8fd1){const _0x1252b1=[];for(const _0x5571e8 of this['getRevisionsIterator'](_0x3b8fd1['newRevisionId']))if(_0x1252b1['push'](_0x5571e8),_0x5571e8['id']===_0x3b8fd1['oldRevisionId'])break;return _0x1252b1;}*['getRevisionsIterator'](_0x32517e,{direction:_0x5037b4='earlier',filter:_0x3915b5=()=>!0x0}={}){const _0x55da23='earlier'===_0x5037b4?0x1:-0x1;let _0x115d87=this['_revisions']['get'](_0x32517e),_0x537f22=this['getIndex'](_0x115d87);for(yield _0x115d87;_0x115d87;){if(_0x537f22+=_0x55da23,_0x115d87=this['getRevision'](_0x537f22),!_0x115d87)return;_0x3915b5(_0x115d87)&&(yield _0x115d87);}}}class V extends _0x797c22{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x25f9d7,'c'],[_0x346377,'a'],[_0x16214b,'e'],[_0x40c28d,'r'],[_0x4627fe,'u']]);['_typeCharToViewClass']=new Map([['c',_0x25f9d7],['a',_0x346377],['e',_0x16214b],['r',_0x40c28d],['u',_0x4627fe]]);async['loadRevisionData'](_0x180c94,_0x137579){if(_0x180c94['diffData']||!_0x137579)return;const _0x308519=this['editor']['config']['get']('collaboration.channelId'),_0x39fb44=await _0x137579['getRevision']({'channelId':_0x308519,'revisionId':_0x180c94['id']});_0x180c94['diffData']=_0x39fb44['diffData'];}['getRevisionDocumentData'](_0x42d6b5){const _0x28577d={};for(const _0x1eb6eb in _0x42d6b5['diffData']){if(_0x42d6b5['diffData'][_0x1eb6eb]['attachChange']&&!_0x42d6b5['diffData'][_0x1eb6eb]['attachChange']['isAttached'])continue;const _0x2ce7a7=this['_removeRevisionMarkers'](JSON['parse'](_0x42d6b5['diffData'][_0x1eb6eb]['insertions'])),_0x570999=this['editor']['editing']['view']['document'],_0x147b2f=new _0x2a87a8(_0x570999,_0x2ce7a7['map'](_0x47a304=>this['_getViewFromDiffObj'](_0x47a304,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x28577d[_0x1eb6eb]=this['editor']['data']['processor']['toData'](_0x147b2f),this['editor']['data']['processor']['useFillerType']('default');}return _0x28577d;}['getRevisionRootsAttributes'](_0x35fce1){const _0x4c8c47={};for(const _0x267d7d in _0x35fce1['diffData'])_0x35fce1['diffData'][_0x267d7d]['attachChange']&&!_0x35fce1['diffData'][_0x267d7d]['attachChange']['isAttached']||(_0x4c8c47[_0x267d7d]=_0x35fce1['diffData'][_0x267d7d]['attributesAfter']||{});return _0x4c8c47;}['_getTypeCharForViewElement'](_0x3dbb2a){return this['_viewClassToTypeChar']['get'](_0x3dbb2a['constructor']);}['_getViewFromDiffObj'](_0x521fa2,_0x51b612){const _0x218fe5=this['editor']['editing']['view']['document'];if('string'==typeof _0x521fa2)return new _0x1d9e05(_0x218fe5,_0x521fa2);{let _0x1bdace,_0xabf873;_0xabf873='u'==_0x521fa2['type']||'r'==_0x521fa2['type']?[]:_0x521fa2['children']['map'](_0x3270d8=>this['_getViewFromDiffObj'](_0x3270d8,_0x51b612));const _0x43243b=this['_typeCharToViewClass']['get'](_0x521fa2['type'])||_0x2246a5,_0x30a336=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1bdace=new _0x43243b(_0x218fe5,_0x521fa2['name'],_0x521fa2['attributes'],_0xabf873),'u'==_0x521fa2['type']&&_0x521fa2['children'][0x0]){const _0xf6e994=_0x521fa2['children'][0x0];if(_0x1bdace['render']=function(_0x424a57){const _0x303b5c=_0x424a57['createElement']('div');return _0x303b5c['innerHTML']=_0xf6e994,_0x303b5c['childNodes'][0x0];},_0x51b612){const _0x42469a=new _0x2a87a8(_0x218fe5);_0x42469a['_appendChild'](_0x1bdace);const _0x32d2f6=Array['from'](_0x30a336['viewChildrenToDom'](_0x42469a,{'bind':!0x1})),_0x5162f8=_0x30a336['domDocument']['createElement']('div');_0x5162f8['append'](..._0x32d2f6),_0x1bdace=Array['from'](_0x30a336['domChildrenToView'](_0x5162f8))[0x0];}}else{if('r'==_0x521fa2['type']&&_0x521fa2['children'][0x0]){const _0x17939e=_0x521fa2['children'][0x0];if(_0x1bdace['render']=function(_0x5a6b44){_0x5a6b44['innerHTML']=_0x17939e;},_0x51b612){const _0x3533d8=new _0x2a87a8(_0x218fe5);_0x3533d8['_appendChild'](_0x1bdace);const _0x4c0a7e=Array['from'](_0x30a336['viewChildrenToDom'](_0x3533d8,{'bind':!0x1})),_0x13d80d=_0x30a336['domDocument']['createElement']('div');_0x13d80d['append'](..._0x4c0a7e);const _0x55d858=Array['from'](_0x30a336['domChildrenToView'](_0x13d80d));_0x55d858['length']>0x1?_0x1bdace['_appendChild'](_0x55d858):_0x1bdace=_0x55d858[0x0];}}}if(_0x521fa2['customProperties']){for(const [_0x45f394,_0x3ad445]of _0x521fa2['customProperties'])_0x1bdace['_setCustomProperty'](_0x45f394,_0x3ad445);}const _0x8c785e=void 0x0===_0x521fa2['fillerOffset']?null:_0x521fa2['fillerOffset'];return null!==_0x8c785e&&(_0x1bdace['getFillerOffset']=()=>_0x8c785e),_0x1bdace;}}['_makeModelFromViewString'](_0x54383e){const _0x2a00cf=JSON['parse'](_0x54383e),_0x17c703=this['editor']['editing']['view']['document'],_0x39b496=new _0x2a87a8(_0x17c703,_0x2a00cf['map'](_0xe0452e=>this['_getViewFromDiffObj'](_0xe0452e,!0x0)));return this['editor']['data']['toModel'](_0x39b496);}['_removeRevisionMarkers'](_0x22555c){return(_0x22555c=_0x22555c['filter'](_0x45dac0=>!_0x45dac0['name']||'revision-start'!==_0x45dac0['name']&&'revision-end'!==_0x45dac0['name']))['forEach'](_0x2eed34=>{'string'!=typeof _0x2eed34&&(_0x2eed34['children']=this['_removeRevisionMarkers'](_0x2eed34['children']),_0x2eed34['attributes']=_0x2eed34['attributes']['filter'](_0x1c5575=>!_0x1c5575[0x0]['startsWith']('data-revision-')));}),_0x22555c;}}function g(_0x41507c,_0x4b180b,_0x440322){const t=_0x41507c['t'];switch(_0x4b180b){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'},_0x440322);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x440322);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 _0x797c22{['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[_0x3c2f07,I,V,_0x405adc];}constructor(_0x3320c8){super(_0x3320c8),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 _0x43d745=_0x4ec44c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x43d745},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 _0xa7cd72=this['repository']['getRevision'](0x0),_0xba886c=_0xa7cd72&&null===_0xa7cd72['creator']?_0xa7cd72:null;if(this['_continueCurrentRevision']=!!_0xba886c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2d645b=this['_source']['getCurrentRevisionId'](),_0x2b27ce=this['repository']['getRevision'](_0x2d645b);if(_0x2b27ce)this['_startingVersion']=_0x2b27ce['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x52a80f=this['_source']['history']['_operations']['find'](_0x8e50d9=>!_0x8e50d9['_isInit']),_0x36c40a=_0x52a80f?_0x52a80f['baseVersion']:this['_source']['history']['version'];_0xa7cd72?(_0xa7cd72['toVersion']<_0x36c40a&&_0xa7cd72['_update']({'toVersion':_0x36c40a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xba886c['id'],this['_startingVersion']=_0xba886c['fromVersion']):(this['_startingVersion']=_0xa7cd72['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x36c40a,this['_continueCurrentRevision']=!0x1);}}else _0xba886c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xba886c['toVersion'],this['editor']['model']['document']['history']['version']),_0xba886c['fromVersion']===_0xba886c['toVersion']?(0x0!==_0xba886c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xba886c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xba886c['id'],this['_startingVersion']=_0xba886c['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',_0x30ba29=>!_0x30ba29),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x369476=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55ce92;for(const _0x38d650 in _0x369476){const _0x56ff01=_0x38d650,_0x43c970=_0x369476[_0x56ff01];if('revisionHistoryLicenseKeyValid'==_0x43c970||'revisionHistoryLicenseKeyInvalid'==_0x43c970||'revisionHistoryLicenseKeyExpired'==_0x43c970||'revisionHistoryLicenseKeyDomainLimit'==_0x43c970||'revisionHistoryLicenseKeyNotAllowed'==_0x43c970||'revisionHistoryLicenseKeyEvaluationLimit'==_0x43c970||'revisionHistoryLicenseKeyTrialLimit'==_0x43c970||'revisionHistoryLicenseKeyUsageLimit'==_0x43c970){delete _0x369476[_0x56ff01],_0x55ce92=_0x43c970,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x55ce92&&_0x369476['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x55ce92&&_0x369476['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x55ce92&&_0x369476['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x55ce92&&_0x369476['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x55ce92&&_0x369476['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x55ce92&&_0x369476['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x55ce92&&_0x369476['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x42a074=this['repository']['getRevision'](0x0),_0x27a4dd=await this['getRevisionDocumentData'](_0x42a074),_0x5e7a5e=await this['getRevisionRootsAttributes'](_0x42a074);this['_replaceEditorDataWithRevisionData'](_0x27a4dd,_0x5e7a5e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3f6a33){this['_source']=_0x3f6a33;}async['update'](){const _0x28d958=await this['_source']['getLatestVersion']();if(_0x28d958>this['currentRevision']['toVersion']){await this['_loadState']();const _0x400eb1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x28d958});_0x400eb1['authors']=_0x400eb1['authorsIds']['map'](_0x292440=>this['editor']['plugins']['get']('Users')['getUser'](_0x292440)),this['currentRevision']['_update'](_0x400eb1);}}async['saveRevision'](_0x52c91a={},_0x4a71d8=null){const _0x1afecb=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4a71d8>this['currentRevision']['toVersion']&&(_0x4a71d8=null),null===_0x4a71d8&&(_0x4a71d8=await this['_source']['getLatestVersion']());const _0x14b5f5=this['_getFromVersion'](_0x4a71d8),_0x25f343=this['buildRevisionData']({'from':_0x14b5f5,'to':_0x4a71d8});if(this['currentRevision']['toVersion']<_0x4a71d8){const _0x5d01bd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4a71d8,'to':_0x4a71d8});_0x5d01bd['authors']=[],_0x5d01bd['authorsIds']=[],_0x5d01bd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5d01bd,!0x0),delete _0x5d01bd['authors'],_0x1afecb['push'](_0x5d01bd);}_0x52c91a['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x52c91a['name']=_0x52c91a['name']||null,_0x52c91a['id']=_0x52c91a['id']||_0x4ec44c(),_0x52c91a={..._0x52c91a,..._0x25f343};const _0xe9c94b=this['addRevisionData'](_0x52c91a);_0x1afecb['push'](_0x52c91a);const _0x44cf32=this['repository']['getIndex'](_0xe9c94b);if(0x0!==_0x44cf32){const _0x4037af=this['repository']['getRevision'](_0x44cf32-0x1);if(_0x4037af['fromVersion']!==_0x4a71d8){const _0x38f8c5=this['_revisionDataBuilder']['getData'](_0x4a71d8,_0x4037af['toVersion']),_0x29edc5={'id':_0x4037af['id'],'diffData':_0x38f8c5['diffData'],'authorsIds':_0x38f8c5['authorsIds'],'authors':_0x38f8c5['authorsIds']['map'](_0x2d560f=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d560f)),'fromVersion':_0x4a71d8};_0x4037af===this['currentRevision']&&(_0x29edc5['createdAt']=new Date(_0x52c91a['createdAt']['getTime']()+0xa)),_0x4037af['_update'](_0x29edc5,!0x0),delete _0x29edc5['authors'],_0x1afecb['push'](_0x29edc5);}}if(this['adapter']){for(const _0x410df9 of _0x1afecb)this['_bufferUpdate'](_0x410df9['id'],_0x410df9,!0x0);this['sendBufferedUpdates']();}return _0xe9c94b;}['addRevisionData'](_0x17f7f8){const _0x1c81ab=this['repository']['createRevision'](_0x17f7f8);return this['adapter']&&_0x1c81ab['on']('_update',(_0x4ba72f,_0x61462a,_0x4609e1)=>{_0x4609e1||(this['_bufferUpdate'](_0x61462a['id'],_0x61462a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1c81ab,this['_findInsertionIndex'](_0x1c81ab)),_0x1c81ab;}async['getRevisionDocumentData'](_0x52f92d){return await this['_utils']['loadRevisionData'](_0x52f92d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x52f92d);}async['getRevisionRootsAttributes'](_0x321da2){return await this['_utils']['loadRevisionData'](_0x321da2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x321da2);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1c1de9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5cbef7=0x0;_0x5cbef7<_0x1c1de9['length'];_0x5cbef7++){const _0x59b86f=_0x1c1de9[_0x5cbef7];let _0x2ed7e7=!0x1;for(const _0x506085 of Object['keys'](_0x59b86f))void 0x0===_0x59b86f[_0x506085]?delete _0x59b86f[_0x506085]:'id'!==_0x506085&&(_0x2ed7e7=!0x0);_0x2ed7e7||(_0x1c1de9[_0x5cbef7]=null);}if(_0x1c1de9=_0x1c1de9['filter'](_0x207dac=>null!==_0x207dac),!_0x1c1de9['length'])return;for(let _0x48ba2e=0x0;_0x48ba2e<_0x1c1de9['length'];_0x48ba2e++){const _0x262d09=_0x1c1de9[_0x48ba2e];void 0x0!==_0x262d09['fromVersion']&&void 0x0===_0x262d09['toVersion']&&(_0x262d09['toVersion']=this['repository']['getRevision'](_0x262d09['id'])['toVersion']),void 0x0!==_0x262d09['toVersion']&&void 0x0===_0x262d09['fromVersion']&&(_0x262d09['fromVersion']=this['repository']['getRevision'](_0x262d09['id'])['fromVersion']);}const _0x18a9d0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1c1de9,_0x18a9d0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x590d17=>{if(_0x590d17){for(const _0x17dd5c of _0x590d17)this['setRevisionData']({'id':_0x17dd5c['id'],'createdAt':_0x17dd5c['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2283d2=null,from:_0x36ac86=null,to:_0x472699=null}){_0x36ac86=null!==_0x36ac86?_0x36ac86:_0x2283d2['fromVersion'],_0x472699=null!==_0x472699?_0x472699:_0x2283d2['toVersion'];const _0x31e393=this['_revisionDataBuilder']['getData'](_0x36ac86,_0x472699),_0x20c4b6={'diffData':_0x31e393['diffData'],'authorsIds':_0x31e393['authorsIds'],'fromVersion':_0x36ac86,'toVersion':_0x472699};if(!_0x2283d2||_0x472699!==_0x2283d2['toVersion']){const _0x331f1b=_0x472699-0x1,_0x284fcb=this['_source']['history']['getOperation'](_0x331f1b);_0x20c4b6['createdAt']=_0x284fcb&&_0x284fcb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x36ac86===this['_loadedStateData']['fromVersion']){for(const _0x781e23 of this['_loadedStateData']['authors'])_0x20c4b6['authorsIds']['includes'](_0x781e23['id'])||_0x20c4b6['authorsIds']['push'](_0x781e23['id']);}return _0x20c4b6;}['_bufferUpdate'](_0x4d0787,_0xe14a8d,_0x38f5cc){if(this['_bufferedUpdates']['has'](_0x4d0787)){const _0x11d176=this['_bufferedUpdates']['get'](_0x4d0787);_0xe14a8d=_0x38f5cc?{..._0x11d176,..._0xe14a8d}:{..._0xe14a8d,..._0x11d176};}this['_bufferedUpdates']['set'](_0x4d0787,_0xe14a8d);}['setRevisionData'](_0xebf184){const _0x3d4934=this['repository']['getRevision'](_0xebf184['id']);if(_0xebf184['createdAt']&&(_0xebf184['createdAt']=new Date(_0xebf184['createdAt'])),_0xebf184['authorsIds']){const _0x529921=this['editor']['plugins']['get']('Users');_0xebf184['authors']=_0xebf184['authorsIds']['map'](_0x400b2f=>_0x529921['getUser'](_0x400b2f));}_0x3d4934['_update'](_0xebf184,!0x0);}['_createInitialRevision'](_0x2e9ad8){const _0x804156=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x804156)this['_initialRevisionId']=_0x804156['id'];else{const _0x4dbd6e=!this['editor']['model']['document']['roots']['find'](_0x4796f7=>this['editor']['model']['hasContent'](_0x4796f7)),_0x7f3dd3=this['editor']['plugins']['get']('Users')['me']['id'],_0x4f7ec4=g(this['editor']['locale'],_0x4dbd6e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2e9ad8,'to':_0x2e9ad8,'id':this['_initialRevisionId'],'name':_0x4f7ec4,'creatorId':_0x7f3dd3});}}['_createCurrentRevision'](_0x295d9a){const _0xd53225=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xd53225),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x295d9a,'to':_0x295d9a,'id':_0xd53225,'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'](_0x1b0827,_0x245773){let _0x2b4b8d=this['editor']['config']['get']('initialData'),_0x599b71=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2b4b8d){_0x2b4b8d={};for(const _0x47cd8a of this['editor']['model']['document']['getRootNames']())_0x2b4b8d[_0x47cd8a]='';}if('string'==typeof _0x2b4b8d&&(_0x2b4b8d={'main':_0x2b4b8d}),void 0x0===_0x599b71){_0x599b71={};for(const _0x19a658 of this['editor']['model']['document']['getRootNames']())_0x599b71[_0x19a658]={};}let _0x357262=!0x1;const _0x11bf33=Object['keys'](_0x2b4b8d),_0x85adfd=Object['keys'](_0x1b0827);for(const _0x316be7 of _0x11bf33){if(_0x2b4b8d[_0x316be7]!==_0x1b0827[_0x316be7]&&''!==_0x2b4b8d[_0x316be7]['trim']()){_0x357262=!0x0;break;}if(!_0x2d62e8(_0x599b71[_0x316be7],_0x245773[_0x316be7])&&Object['keys'](_0x599b71[_0x316be7])['length']>0x0){_0x357262=!0x0;break;}}_0x357262||(_0x357262=_0x85adfd['some'](_0x190f7f=>!this['editor']['model']['document']['getRoot'](_0x190f7f))),_0x357262&&_0x289851('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2b4b8d,'editorRootsAttributes':_0x599b71,'revisionData':_0x1b0827,'revisionRootsAttributes':_0x245773}),this['editor']['config']['set']('initialData',_0x1b0827),this['editor']['config']['set']('rootsAttributes',_0x245773);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x216b98=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x216b98['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x88dc25){const _0x483af6=this['repository']['getRevisions']();_0x483af6['reverse']();let _0x304792=0x0;for(;_0x304792<_0x483af6['length'];){const _0x1732f8=_0x483af6[_0x304792];if(_0x1732f8===this['currentRevision']){_0x304792++;continue;}if(_0x1732f8['id']===this['_initialRevisionId'])break;const _0x208d05=_0x88dc25['toVersion']-_0x1732f8['toVersion']||_0x88dc25['fromVersion']-_0x1732f8['fromVersion'];if(_0x208d05>0x0)break;if(_0x208d05<0x0)_0x304792++;else{if(!_0x88dc25['creator']&&_0x1732f8['creator'])break;if(_0x1732f8['creator']||!_0x88dc25['creator']){if(_0x88dc25['createdAt']>_0x1732f8['createdAt'])break;_0x304792++;}else _0x304792++;}}return _0x304792;}['_getFromVersion'](_0x17fc0e){const _0x2653d4=this['repository']['getRevisions']();_0x2653d4['reverse'](),_0x2653d4['shift']();const _0x42b94a=_0x2653d4['find'](_0x1383c8=>_0x1383c8['toVersion']<=_0x17fc0e)['toVersion'];return _0x42b94a<this['_startingVersion']?this['_startingVersion']:_0x42b94a;}['_makeRevision']({name:_0xfb19f2,from:_0x25a1d4,to:_0xde6b17,creatorId:_0xf56478,id:_0x1cca88}){const _0x459dc9=this['buildRevisionData']({'from':_0x25a1d4,'to':_0xde6b17});_0x459dc9['name']=_0xfb19f2,_0x459dc9['creatorId']=_0xf56478,_0x459dc9['id']=_0x1cca88;const _0x3d5c46=this['addRevisionData'](_0x459dc9);return this['adapter']&&this['_bufferUpdate'](_0x459dc9['id'],_0x459dc9,!0x0),_0x3d5c46;}['_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(_0x2b18a4){this['editor']=_0x2b18a4,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'](_0x329a48){this['source']=_0x329a48;const _0x25d214=new Map(),_0x597240=new Map(),_0x92fefc=this['editor']['model']['document']['roots']['map'](_0xb43aca=>_0xb43aca['rootName']);for(const _0x468e7e of _0x92fefc){const _0x2a5460=this['editor']['model']['document']['getRoot'](_0x468e7e),_0x3722d2=N(_0x2a5460);_0x25d214['set'](_0x468e7e,_0x3722d2),_0x597240['set'](_0x468e7e,Object['fromEntries'](_0x2a5460['getAttributes']()));}const _0x2b7c07=Array['from'](this['editor']['model']['markers'])['map'](_0x330e0a=>[_0x330e0a['name'],_0x330e0a['getRange']()]),_0x4f0598=this['source']['version'];this['_saveMetaData'](_0x4f0598,_0x25d214,_0x2b7c07,_0x597240),this['_startingRevisionId']=this['_revisionId'];const _0x3216f1=new Map(),_0x2e156a=new Map();for(const _0x1dacfa of _0x92fefc){const _0x1a68f6=P(_0x1dacfa);_0x3216f1['set'](_0x1dacfa,_0x1a68f6),_0x2e156a['set'](_0x1dacfa,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3216f1,[],_0x2e156a);}['getData'](_0x2f777e,_0x51cae9){if(this['_lastFrom']===_0x2f777e&&this['_lastTo']<=_0x51cae9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x51cae9,!0x0);else{if(!this['_savedMetaData']['has'](_0x2f777e)){const _0x23a94c=this['_getPreviousFrom'](_0x2f777e);this['_calculateMetaData'](_0x23a94c,_0x2f777e,!0x1);}this['_calculateMetaData'](_0x2f777e,_0x51cae9,!0x0);}return this['_lastFrom']=_0x2f777e,this['_lastTo']=_0x51cae9,this['_getState']();}['loadState'](_0x4e339b){const _0x23d4b2=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4e339b['fromVersion'],this['_lastTo']=_0x4e339b['toVersion'];for(const _0x2a2f51 in _0x4e339b['diffData']){const _0x3966f2=_0x4e339b['diffData'][_0x2a2f51]['attachChange'],_0x47d097=_0x276882(_0x4e339b['diffData'][_0x2a2f51]['attributesBefore'])||{},_0x1e7d56=_0x23d4b2['_makeModelFromViewString'](_0x4e339b['diffData'][_0x2a2f51]['deletions']);_0x1e7d56['rootName']=_0x2a2f51,_0x1e7d56['_isAttached']=!_0x3966f2||!_0x3966f2['isAttached'],_0x1e7d56['isAttached']=()=>_0x1e7d56['_isAttached'],this['_baseRoots']['set'](_0x2a2f51,_0x1e7d56),this['_baseRootsAttributes']['set'](_0x2a2f51,_0x47d097),_0x3966f2&&this['_touchedRoots']['set'](_0x2a2f51,_0x3966f2);const _0x1c9896=this['_makeIdsRoot'](_0x1e7d56);this['_baseIdsRoots']['set'](_0x2a2f51,_0x1c9896);for(const [_0x5a270f,_0x4a7b93]of _0x1e7d56['markers']){if(!_0x5a270f['startsWith']('revision:'))continue;const _0x1277c1=_0x5a270f['split'](':')[0x2];for(const _0x23c139 of _0x4a7b93['getWalker']({'singleCharacters':!0x0})){const _0xb7f295=this['_getVidAttributeName'](_0x23c139),_0x389be8='elementEnd'==_0x23c139['type']?_0x23c139['previousPosition']['path']['slice'](0x0,-0x1):_0x23c139['previousPosition']['path'],_0x191d19=_0x1c9896['getNodeByPath'](_0x389be8)['getAttribute'](_0xb7f295);this['_touched']['set'](_0x191d19,{'userId':_0x1277c1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x172e62=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3c1026=>!this['_touched']['has'](_0x3c1026));let _0x3fdd09=0x0;const _0x492779=new Map();for(const _0x2d59f9 in _0x4e339b['diffData']){const _0xf389b8=_0x4e339b['diffData'][_0x2d59f9]['attachChange'],_0x247529=_0x276882(_0x4e339b['diffData'][_0x2d59f9]['attributesAfter'])||{},_0x46cabe=_0x23d4b2['_makeModelFromViewString'](_0x4e339b['diffData'][_0x2d59f9]['insertions']);_0x46cabe['rootName']=_0x2d59f9,_0x46cabe['_isAttached']=!_0xf389b8||_0xf389b8['isAttached'],_0x46cabe['isAttached']=()=>_0x46cabe['_isAttached'],this['_diffRoots']['set'](_0x2d59f9,_0x46cabe),this['_diffRootsAttributes']['set'](_0x2d59f9,_0x247529);const _0x4a69e6=this['_makeIdsRoot'](_0x46cabe,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2d59f9,_0x4a69e6),_0x492779['set'](_0x2d59f9,_0x46cabe['isAttached']()?_0x247529:{});for(const [_0x4bbc54,_0x1ee50a]of _0x46cabe['markers']){if(!_0x4bbc54['startsWith']('revision:'))continue;const _0x474764=_0x4bbc54['split'](':')[0x2];for(const _0x198086 of _0x1ee50a['getWalker']({'singleCharacters':!0x0})){const _0x373b03=this['_getVidAttributeName'](_0x198086),_0x5a6265=this['_revisionId']++,_0x92df2e='elementEnd'==_0x198086['type']?_0x198086['previousPosition']['path']['slice'](0x0,-0x1):_0x198086['previousPosition']['path'];_0x4a69e6['getNodeByPath'](_0x92df2e)['_setAttribute'](_0x373b03,_0x5a6265),this['_touched']['set'](_0x5a6265,{'userId':_0x474764});}}for(const _0x451c3b of this['editor']['model']['createRangeIn'](_0x46cabe)['getWalker']({'singleCharacters':!0x0})){const _0x1d316d=this['_getVidAttributeName'](_0x451c3b),_0x1fe12a='elementEnd'==_0x451c3b['type']?_0x451c3b['previousPosition']['path']['slice'](0x0,-0x1):_0x451c3b['previousPosition']['path'],_0x30c5a3=_0x4a69e6['getNodeByPath'](_0x1fe12a);_0x30c5a3['getAttribute'](_0x1d316d)>0x0||_0x30c5a3['_setAttribute'](_0x1d316d,_0x172e62[_0x3fdd09++]);}for(const [_0x900b30,_0xacf637]of _0x46cabe['markers'])_0x900b30['startsWith']('revision:')||this['_markers']['set'](_0x900b30,_0xacf637);}const _0x50cb81=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x50cb81),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x50cb81,0x1));const _0x3280c4=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3280c4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3280c4,0x1));const _0x3e7683=Array['from'](this['_diffRoots'])['map'](([_0x138556,_0xa86f4b])=>[_0x138556,N(_0xa86f4b)]);this['_saveMetaData'](this['_lastTo'],_0x3e7683,this['_markers'],_0x492779);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3998fb,_0x11eefc,_0x4d1754,_0x8024c8){const _0x243158=new Map(_0x11eefc),_0x5027bc=new Map(_0x276882(_0x8024c8)),_0x4c9bbe=new Map();for(const [_0x27a915,_0x575c65]of _0x4d1754)_0x4c9bbe['set'](_0x27a915,{'start':_0x575c65['start']['clone'](),'end':_0x575c65['end']['clone'](),'rootName':_0x575c65['root']['rootName']});this['_savedMetaData']['set'](_0x3998fb,{'roots':_0x243158,'markers':_0x4c9bbe,'rootsAttributes':_0x5027bc});}['_removeMetaData'](_0x44e532){this['_savedMetaData']['delete'](_0x44e532);}['_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'](_0x5d1b4e,_0x325f07=null){let _0x3c9c4e=null;_0x5d1b4e['is']('documentFragment')||(_0x3c9c4e=new ut(_0x5d1b4e['name'],{'vid_start':null===_0x325f07?this['_revisionId']++:_0x325f07++}));const _0x45020a=[];for(const _0x3a0e64 of _0x5d1b4e['getChildren']())if(_0x3a0e64['is']('element')){_0x45020a['push'](this['_makeIdsRoot'](_0x3a0e64,_0x325f07));const _0x1ef571=_0x45020a[_0x45020a['length']-0x1];null!==_0x325f07&&(_0x325f07=_0x1ef571['is']('element','$text')?_0x1ef571['getAttribute']('vid')+0x1:_0x1ef571['getAttribute']('vid_end')+0x1);}else{for(let _0x4cfedc=0x0;_0x4cfedc<_0x3a0e64['offsetSize'];_0x4cfedc++)_0x45020a['push'](new ut('$text',{'vid':null===_0x325f07?this['_revisionId']++:_0x325f07++}));}if(_0x5d1b4e['is']('documentFragment')){const _0x1e33e3=P(_0x5d1b4e['rootName']);return _0x1e33e3['_insertChild'](0x0,_0x45020a),_0x1e33e3;}return _0x3c9c4e['_setAttribute']('vid_end',null===_0x325f07?this['_revisionId']++:_0x325f07++),_0x3c9c4e['_insertChild'](0x0,_0x45020a),_0x3c9c4e;}['_calculateMetaData'](_0x282607,_0x112251,_0x2095a5){this['_reset']();const {roots:_0x433ebf,markers:_0x40bf89,rootsAttributes:_0x3c43c5}=this['_savedMetaData']['get'](_0x282607);this['_baseRoots']=new Map(_0x433ebf),this['_baseRootsAttributes']=new Map(_0x276882(_0x3c43c5));for(const [_0x1f09c5,_0x5d0685]of this['_baseRoots'])if('$graveyard'!==_0x1f09c5&&(this['_diffRoots']['set'](_0x1f09c5,N(_0x5d0685)),this['_diffRootsAttributes']=new Map(_0x276882(_0x3c43c5)),_0x2095a5)){const _0x4c0ef8=this['_revisionId'];this['_idsRoots']['set'](_0x1f09c5,this['_makeIdsRoot'](_0x5d0685)),this['_baseIdsRoots']['set'](_0x1f09c5,this['_makeIdsRoot'](_0x5d0685,_0x4c0ef8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x2095a5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1340b6,_0x136891]of _0x40bf89){const _0x3ad2eb=this['_baseRoots']['get'](_0x136891['rootName']),_0x86eb9f=this['_diffRoots']['get'](_0x136891['rootName']),_0x51ee1b=new lt(this['_fixPosition'](_0x136891['start'],_0x3ad2eb),this['_fixPosition'](_0x136891['end'],_0x3ad2eb)),_0x24ac59=this['_fixRange'](_0x51ee1b,_0x86eb9f);_0x3ad2eb['markers']['set'](_0x1340b6,_0x51ee1b),this['_markers']['set'](_0x1340b6,_0x24ac59);}this['_applyOperations'](_0x282607,_0x112251,_0x2095a5);}['_applyOperations'](_0x2b18a2,_0x3c4ee5,_0x4fb1a2){for(const _0x4ee4a4 of this['source']['getOperations'](_0x2b18a2,_0x3c4ee5))this['_handleOperation'](_0x4ee4a4,_0x4fb1a2);for(const _0x25502d of this['_diffRoots']['values']())_0x25502d['markers']['clear']();for(const [_0x432151,_0x3a5cac]of this['_markers']){this['_diffRoots']['get'](_0x3a5cac['root']['rootName'])['markers']['set'](_0x432151,_0x3a5cac['clone']());}const _0xb3c98b=new Map(),_0x19d379=new Map();for(const [_0x246f3b,_0x587012]of this['_diffRoots'])_0xb3c98b['set'](_0x246f3b,N(_0x587012)),_0x19d379['set'](_0x246f3b,this['_diffRootsAttributes']['get'](_0x246f3b));this['_saveMetaData'](_0x3c4ee5,_0xb3c98b,this['_markers'],_0x19d379);}['_getPreviousFrom'](_0x1498bf){const _0x1c7186=Array['from'](this['_savedMetaData']['keys']());_0x1c7186['sort']((_0x1e2878,_0x50b4ca)=>_0x1e2878-_0x50b4ca),_0x1c7186['reverse']();for(const _0x33362b of _0x1c7186)if(_0x33362b<_0x1498bf)return _0x33362b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x20f889,_0x1a3969){const _0x159b5c=Array['from'](_0x1a3969['markers'])['map'](([_0x2d23d5,_0xa57b72])=>[_0x2d23d5,this['_fixRange'](_0xa57b72,_0x20f889)]);_0x20f889['markers']=new Map(_0x159b5c);}['_transformMarkers'](_0x4d8c22){for(const _0x2c7dc5 of this['_markers']['values']()){const _0x4377ac=_0x2c7dc5['getTransformedByOperation'](_0x4d8c22),_0x53daa8=lt['_createFromRanges'](_0x4377ac);_0x2c7dc5['start']=_0x53daa8['start'],_0x2c7dc5['end']=_0x53daa8['end'];}}['_handleOperation'](_0x9131ff,_0x8c96a8){if('addRoot'!=_0x9131ff['type']&&'detachRoot'!=_0x9131ff['type']){if('insert'==_0x9131ff['type']){const _0x4fd20=_0x9131ff['position']['root']['rootName'];this['_diffRoots']['has'](_0x4fd20)||(this['_diffRoots']['set'](_0x4fd20,P(_0x4fd20,!0x0)),this['_diffRootsAttributes']['set'](_0x4fd20,{}),_0x8c96a8&&this['_idsRoots']['set'](_0x4fd20,P(_0x4fd20,!0x0)));}else{if('addRootAttribute'==_0x9131ff['type']||'removeRootAttribute'==_0x9131ff['type']||'changeRootAttribute'==_0x9131ff['type'])return void this['_handleRootAttributeOperation'](_0x9131ff);'marker'==_0x9131ff['type']&&this['_handleMarkerOperation'](_0x9131ff);}if('marker'!==_0x9131ff['type']){const _0x4e8961=this['_cloneOperation'](_0x9131ff,this['_diffRoots']);_0x4e8961['_execute'](),this['_transformMarkers'](_0x4e8961);}if(_0x8c96a8)switch(_0x9131ff['type']){case'insert':this['_handleInsertOperation'](_0x9131ff);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x9131ff);break;case'merge':this['_handleMergeOperation'](_0x9131ff);break;case'split':this['_handleSplitOperation'](_0x9131ff);}}else this['_handleRootOperation'](_0x9131ff,_0x8c96a8);}['_cloneOperation'](_0x509d83,_0x42c2d5){const _0x42a476=_0x509d83['clone']();return _0x42a476['_authorId']=_0x509d83['_authorId'],this['_fixOperation'](_0x42a476,_0x42c2d5),_0x42a476;}['_getBaseVids'](_0x29fe61){return _0x29fe61['map'](_0x591059=>{const _0x19765e=this['_getVidAttributeName'](_0x591059);return Number(_0x591059['item']['getAttribute'](_0x19765e));});}['_generateTape'](_0x159778,_0x29e8b8){if(_0x159778['is']('element','$text'))_0x29e8b8['push']({'item':_0x159778,'type':'text'});else{_0x159778['is']('element')&&_0x29e8b8['push']({'item':_0x159778,'type':'elementStart'});for(const _0x4c1b1f of _0x159778['getChildren']())this['_generateTape'](_0x4c1b1f,_0x29e8b8);_0x159778['is']('element')&&_0x29e8b8['push']({'item':_0x159778,'type':'elementEnd'});}return _0x29e8b8;}['_getState'](){const _0x34ac50=new Map(this['_touched']),_0x29e055=new Map(_0x34ac50),_0x4b67f9=new Map(),_0x2f287c={'insertions':{},'deletions':{}},_0x675aa0={'insertions':{},'deletions':{}},_0x2c665f=new Map(),_0x3d0349=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d0349['delete']('$graveyard');for(const _0x50546b of _0x3d0349){const _0x469980=this['_diffRoots']['get'](_0x50546b)||P(_0x50546b,!0x1),_0x23e9ca=this['_baseRoots']['get'](_0x50546b)||P(_0x50546b,!0x1);_0x469980['isAttached']()||_0x23e9ca['isAttached']()?(_0x2f287c['insertions'][_0x50546b]=N(_0x469980),_0x2f287c['deletions'][_0x50546b]=N(_0x23e9ca),this['_copyMarkers'](_0x2f287c['deletions'][_0x50546b],_0x23e9ca),this['_copyMarkers'](_0x2f287c['insertions'][_0x50546b],_0x469980),_0x675aa0['insertions'][_0x50546b]=this['_generateTape'](this['_idsRoots']['get'](_0x50546b),[]),_0x675aa0['deletions'][_0x50546b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x50546b)||P(_0x50546b,!0x1),[])):_0x3d0349['delete'](_0x50546b);}for(const _0x4ace48 of _0x3d0349){const _0x4d563d=_0x675aa0['insertions'][_0x4ace48];for(const _0x410944 of _0x4d563d){const _0x6c19fb=this['_getVidAttributeName'](_0x410944),_0xb4d27=_0x410944['item']['getAttribute'](_0x6c19fb);_0x29e055['delete'](_0xb4d27),_0xb4d27>=this['_startingRevisionId']&&_0x4b67f9['set'](_0xb4d27,_0x34ac50['get'](_0xb4d27));}}for(const _0x489b92 of _0x3d0349){const _0x128a19=_0x675aa0['insertions'][_0x489b92],_0x593cfb=this['_getBaseVids'](_0x675aa0['deletions'][_0x489b92]);let _0x1b85ff=0x0;for(const _0x5a6f2c of _0x128a19){const _0x324191=this['_getVidAttributeName'](_0x5a6f2c),_0x329cf9=_0x5a6f2c['item']['getAttribute'](_0x324191);if(!_0x4b67f9['has'](_0x329cf9)&&!_0x2c665f['has'](_0x329cf9)){if(_0x29e055['has'](_0x329cf9))_0x1b85ff++;else{if(_0x329cf9!=_0x593cfb[_0x1b85ff]){const _0x4942ca=_0x34ac50['get'](_0x329cf9)||_0x34ac50['get'](_0x593cfb[_0x1b85ff]);for(;_0x329cf9!=_0x593cfb[_0x1b85ff];)_0x29e055['has'](_0x593cfb[_0x1b85ff])||(_0x2c665f['set'](_0x593cfb[_0x1b85ff],_0x4942ca),_0x34ac50['set'](_0x593cfb[_0x1b85ff],_0x4942ca)),_0x1b85ff++;}_0x1b85ff++;}}}}for(const _0x12ff3f of _0x3d0349){const _0x56b804=_0x675aa0['insertions'][_0x12ff3f];for(const _0x14522c of _0x56b804){const _0x10fd86=this['_getVidAttributeName'](_0x14522c),_0x649b82=_0x14522c['item']['getAttribute'](_0x10fd86);if(_0x2c665f['has'](_0x649b82)){const _0x3dcdd1=_0x2c665f['get'](_0x649b82);_0x29e055['has'](_0x649b82)||_0x29e055['set'](_0x649b82,{..._0x3dcdd1}),_0x4b67f9['set'](_0x649b82,{..._0x3dcdd1});}}}for(const _0x1a19b6 of _0x29e055['keys']())_0x1a19b6>=this['_startingRevisionId']&&_0x29e055['delete'](_0x1a19b6);const _0x3fc268=new Map();for(const _0x224adc of _0x3d0349){let _0x3eb8c5=_0x675aa0['insertions'][_0x224adc];for(const _0x294e1f of _0x3eb8c5)if(_0x294e1f['item']['is']('element','tableCell')){const _0x55a626=this['_getVidAttributeName'](_0x294e1f),_0xfa5be6=_0x294e1f['item']['getAttribute'](_0x55a626);if(_0x4b67f9['has'](_0xfa5be6)){const _0x54887e=_0x294e1f['item']['parent']['parent']['getAttribute']('vid_start'),_0x41f7cb=_0x3fc268['get'](_0x54887e)||new Set();_0x41f7cb['add'](_0x4b67f9['get'](_0xfa5be6)['userId']),_0x3fc268['set'](_0x54887e,_0x41f7cb);}}_0x3eb8c5=_0x675aa0['deletions'][_0x224adc];for(const _0x3cd823 of _0x3eb8c5)if(_0x3cd823['item']['is']('element','tableCell')){const _0x52149f=this['_getVidAttributeName'](_0x3cd823),_0xc39ab0=_0x3cd823['item']['getAttribute'](_0x52149f);if(_0x29e055['has'](_0xc39ab0)){const _0x2f6df2=_0x3cd823['item']['parent']['parent']['getAttribute']('vid_start'),_0x3060e6=_0x3fc268['get'](_0x2f6df2)||new Set();_0x3060e6['add'](_0x29e055['get'](_0xc39ab0)['userId']),_0x3fc268['set'](_0x2f6df2,_0x3060e6);}}for(const _0x1e491 of _0x3fc268['keys']())(_0x4b67f9['has'](_0x1e491)||_0x29e055['has'](_0x1e491))&&_0x3fc268['delete'](_0x1e491);}for(const _0x4b9f31 of _0x3d0349){const _0x62e6a7=_0x675aa0['insertions'][_0x4b9f31];let _0x31c2df=null,_0x2cb3d1=null;for(const _0xc93eac of _0x62e6a7){const _0x20e3d4=this['_getVidAttributeName'](_0xc93eac),_0x3178f4=_0xc93eac['item']['getAttribute'](_0x20e3d4),_0x2fb96d=_0x3fc268['get'](_0x3178f4);_0x2fb96d&&'elementStart'==_0xc93eac['type']&&(_0x31c2df=Array['from'](_0x2fb96d)[0x0],_0x2cb3d1=_0xc93eac['item']['getAttribute']('vid_end')),_0x31c2df&&(_0x29e055['set'](_0x3178f4,{'userId':_0x31c2df}),_0x4b67f9['set'](_0x3178f4,{'userId':_0x31c2df})),_0x3178f4==_0x2cb3d1&&(_0x31c2df=null,_0x2cb3d1=null);}}const _0x43748e={},_0x413d7d=new Set();for(const _0x5a6938 of _0x3d0349){const _0x5ef2f6=_0x2f287c['deletions'][_0x5a6938],_0xd35695=_0x2f287c['insertions'][_0x5a6938];for(const {userId:_0x45e2ba}of this['_touchedMarkers']['values']())null!==_0x45e2ba&&_0x413d7d['add'](_0x45e2ba);for(const {userId:_0x329301}of this['_touchedRoots']['values']())null!==_0x329301&&_0x413d7d['add'](_0x329301);this['_markChanges'](_0xd35695,_0x675aa0['insertions'][_0x5a6938],_0x4b67f9,'insertion',_0x413d7d),this['_markChanges'](_0x5ef2f6,_0x675aa0['deletions'][_0x5a6938],_0x29e055,'deletion',_0x413d7d),_0x43748e[_0x5a6938]={'insertions':this['_prepareViewToSave'](_0xd35695),'deletions':this['_prepareViewToSave'](_0x5ef2f6),'attachChange':this['_touchedRoots']['get'](_0x5a6938)||null,'attributesBefore':_0x276882(this['_baseRootsAttributes']['get'](_0x5a6938))||{},'attributesAfter':_0x276882(this['_diffRootsAttributes']['get'](_0x5a6938))};}return{'diffData':_0x43748e,'authorsIds':Array['from'](_0x413d7d)};}['_processRootBeforeSave'](_0x4cde9a){for(const [,_0x3b3147]of _0x4cde9a['markers']){const _0x5c59d6=_0x3b3147['start']['getAncestors']()['filter'](_0x65dda3=>'tableCell'==_0x65dda3['name']);for(const _0x13e9bb of _0x5c59d6)0x1==_0x13e9bb['childCount']&&_0x13e9bb['getChild'](0x0)['is']('element','paragraph')&&_0x13e9bb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x48981a){this['_processRootBeforeSave'](_0x48981a);const _0x774475=this['editor']['data']['toView'](_0x48981a,{}),_0x346e3b=Array['from'](_0x774475['getChildren']())['map'](_0x58eaa8=>this['_getViewJson'](_0x58eaa8));return JSON['stringify'](_0x346e3b);}['_getViewJson'](_0xab4b2){if(_0xab4b2['is']('$text'))return _0xab4b2['data'];{const _0x9591b8=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4ded52=_0xab4b2,_0x1cd3eb=this['editor']['data']['htmlProcessor']['domConverter'],_0x181cd3={'type':_0x9591b8['_getTypeCharForViewElement'](_0x4ded52),'name':_0x4ded52['name'],'attributes':Array['from'](_0x4ded52['getAttributes']()),'children':Array['from'](_0x4ded52['getChildren']())['map'](_0x18c12e=>this['_getViewJson'](_0x18c12e))};if(_0xab4b2['is']('uiElement')&&'$comment'!=_0xab4b2['name']){const _0x23b1e0=_0xab4b2['render'](_0x1cd3eb['domDocument'],_0x1cd3eb);_0x181cd3['children']['push'](_0x23b1e0['outerHTML']);}else{if(_0xab4b2['is']('rawElement')){const _0x401346=_0x1cd3eb['domDocument']['createElement'](_0x4ded52['name']);_0xab4b2['render'](_0x401346,_0x1cd3eb),_0x181cd3['children']['push'](_0x401346['innerHTML']);}}const _0x34c9a5=Array['from'](_0x4ded52['getCustomProperties']());_0x34c9a5['length']>0x0&&(_0x181cd3['customProperties']=_0x34c9a5);const _0x1a49fd=_0x4ded52['getFillerOffset']();return null!==_0x1a49fd&&(_0x181cd3['fillerOffset']=_0x1a49fd),_0x181cd3;}}['_markChanges'](_0x842bf3,_0x34f96d,_0x46f7de,_0x1e119f,_0x2f0279){let _0x2fe5ab=null,_0x2f514f=null,_0x2cc89e=0x0;const _0x511868=this['editor']['model'];for(let _0x3bd7eb=0x0;_0x3bd7eb<_0x34f96d['length'];_0x3bd7eb++){const _0x345ca6=this['_getVidAttributeName'](_0x34f96d[_0x3bd7eb]),_0x298654=_0x34f96d[_0x3bd7eb]['item']['getAttribute'](_0x345ca6),_0x448018=_0x46f7de['get'](_0x298654),_0x485fdc=_0x3bd7eb==_0x34f96d['length']-0x1;(!_0x2fe5ab&&_0x448018&&(_0x2fe5ab=_0x448018,_0x2f514f=_0x34f96d[_0x3bd7eb]),_0x2fe5ab&&(!_0x448018||_0x448018['userId']!=_0x2fe5ab['userId']))&&(_0xf83139(_0x448018,F(_0x2f514f,_0x842bf3,_0x511868),F(_0x34f96d[_0x3bd7eb],_0x842bf3,_0x511868)),_0x2fe5ab=_0x448018||null,_0x2f514f=_0x448018?_0x34f96d[_0x3bd7eb]:null),_0x2fe5ab&&_0x485fdc&&_0xf83139(_0x448018,F(_0x2f514f,_0x842bf3,_0x511868),B(_0x34f96d[_0x3bd7eb],_0x842bf3,_0x511868));}function _0xf83139(_0x560684,_0x436228,_0x411060){const _0x149a19=_0x2fe5ab['userId'],_0x4b426a='revision:'+_0x1e119f+':'+_0x149a19+':'+_0x2cc89e++,_0x40eaea=_0x511868['createRange'](_0x436228,_0x411060);_0x842bf3['markers']['set'](_0x4b426a,_0x40eaea),null!==_0x149a19&&_0x2f0279['add'](_0x149a19);}}['_getVidAttributeName'](_0x184c29){switch(_0x184c29['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3aef14,_0x37fd79){_0x3aef14['baseVersion']=null;for(const _0x5d3037 in _0x3aef14){const _0x3889e4=_0x3aef14[_0x5d3037];if(_0x3889e4 instanceof ft){const _0xda1096=_0x37fd79['get'](_0x3889e4['root']['rootName']);_0x3aef14[_0x5d3037]=this['_fixPosition'](_0x3889e4,_0xda1096);}if(_0x3889e4 instanceof lt){const _0x3b86d6=_0x37fd79['get'](_0x3889e4['root']['rootName']);_0x3aef14[_0x5d3037]=this['_fixRange'](_0x3889e4,_0x3b86d6);}'root'===_0x5d3037&&(_0x3aef14['root']=_0x37fd79['get'](_0x3aef14['root']['rootName']));}}['_fixRange'](_0xc1a568,_0x550a33){return this['editor']['model']['createRange'](this['_fixPosition'](_0xc1a568['start'],_0x550a33),this['_fixPosition'](_0xc1a568['end'],_0x550a33));}['_fixPosition'](_0x7af305,_0x3d4b58){return this['editor']['model']['createPositionFromPath'](_0x3d4b58,_0x7af305['path'],_0x7af305['stickiness']);}['_handleInsertOperation'](_0x74c705){const _0x58f482=this['_idsRoots']['get'](_0x74c705['position']['root']['rootName']),_0x3d095e=this['_fixPosition'](_0x74c705['position'],_0x58f482),_0x1efbb6=null===_0x74c705['_authorId']?null:_0x74c705['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x516628=_0x3d095e['parent'],_0x101e56=this['_revisionId'],_0x1947ca=[];for(const _0x234efe of _0x74c705['nodes'])if(_0x234efe['is']('element'))_0x1947ca['push'](this['_makeIdsRoot'](_0x234efe));else{for(let _0x32bd59=0x0;_0x32bd59<_0x234efe['offsetSize'];_0x32bd59++)_0x1947ca['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1207d1=this['_revisionId'];for(let _0x1196da=_0x101e56;_0x1196da<_0x1207d1;_0x1196da++)this['_touched']['set'](_0x1196da,{'userId':_0x1efbb6});_0x516628['_insertChild'](_0x3d095e['offset'],_0x1947ca);}['_handleMoveOperation'](_0x26ca00){(_0x26ca00=this['_cloneOperation'](_0x26ca00,this['_idsRoots']))['_execute']();const _0x4ae41f=null===_0x26ca00['_authorId']?null:_0x26ca00['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24192b=_0x26ca00['getMovedRangeStart'](),_0x412728=_0x24192b['parent'],_0x95048b=_0x24192b['offset'];!function _0xaec643(_0x14c8b5,_0x2c1e6a,_0x3017c4,_0x289b4c){for(let _0xb1fc25=_0x3017c4;_0xb1fc25<_0x289b4c;_0xb1fc25++){const _0x531833=_0x2c1e6a['getChild'](_0xb1fc25);_0x531833['is']('element','$text')?_0x14c8b5['set'](_0x531833['getAttribute']('vid'),{'userId':_0x4ae41f}):(_0x14c8b5['set'](_0x531833['getAttribute']('vid_start'),{'userId':_0x4ae41f}),_0xaec643(_0x14c8b5,_0x531833,0x0,_0x531833['childCount']),_0x14c8b5['set'](_0x531833['getAttribute']('vid_end'),{'userId':_0x4ae41f}));}}(this['_touched'],_0x412728,_0x95048b,_0x95048b+_0x26ca00['howMany']);}['_handleMergeOperation'](_0xf2be49){const _0x2932f7=null===(_0xf2be49=this['_cloneOperation'](_0xf2be49,this['_idsRoots']))['_authorId']?null:_0xf2be49['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x323a4e=_0xf2be49['targetPosition']['parent'],_0xbdc8c9=_0xf2be49['sourcePosition']['parent'],_0x4789ca=_0x323a4e['getAttribute']('vid_end'),_0x5d9528=_0xbdc8c9['getAttribute']('vid_start');_0x323a4e['_setAttribute']('vid_end',_0xbdc8c9['getAttribute']('vid_end')),_0xbdc8c9['_setAttribute']('vid_end',_0x4789ca),this['_touched']['set'](_0x5d9528,{'userId':_0x2932f7}),this['_touched']['set'](_0x4789ca,{'userId':_0x2932f7}),_0xf2be49['_execute']();}['_handleSplitOperation'](_0x205f2b){const _0x35619b=null===(_0x205f2b=this['_cloneOperation'](_0x205f2b,this['_idsRoots']))['_authorId']?null:_0x205f2b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf657a9=_0x205f2b['graveyardPosition'],_0x4a9eb7=_0x205f2b['splitPosition']['parent'];_0x205f2b['_execute']();const _0x1a0f37=_0x4a9eb7['getAttribute']('vid_end'),_0x3cf71f=_0x205f2b['insertionPosition']['nodeAfter'];if(_0xf657a9){const _0x1ae318=_0x3cf71f['getAttribute']('vid_end'),_0xdb8416=_0x4a9eb7['getAttribute']('vid_end');_0x4a9eb7['_setAttribute']('vid_end',_0x1ae318),_0x3cf71f['_setAttribute']('vid_end',_0xdb8416),this['_touched']['set'](_0x4a9eb7['getAttribute']('vid_end'),{'userId':_0x35619b}),this['_touched']['set'](_0x3cf71f['getAttribute']('vid_start'),{'userId':_0x35619b});}else{const _0x1e1097=this['_revisionId']++,_0x2edffa=this['_revisionId']++;_0x4a9eb7['_setAttribute']('vid_end',_0x1e1097),_0x3cf71f['_setAttribute']('vid_start',_0x2edffa),_0x3cf71f['_setAttribute']('vid_end',_0x1a0f37),this['_touched']['set'](_0x1e1097,{'userId':_0x35619b}),this['_touched']['set'](_0x2edffa,{'userId':_0x35619b});}}['_handleMarkerOperation'](_0x1fad6b){if(!_0x1fad6b['affectsData'])return;const _0x4d4382=(_0x1fad6b=this['_cloneOperation'](_0x1fad6b,this['_diffRoots']))['oldRange']?_0x1fad6b['oldRange']['root']:null,_0x70068c=_0x1fad6b['newRange']?_0x1fad6b['newRange']['root']:null;_0x4d4382&&this['_markers']['delete'](_0x1fad6b['name']),_0x70068c&&this['_markers']['set'](_0x1fad6b['name'],_0x1fad6b['newRange']['clone']());const _0x1f081e=null===_0x1fad6b['_authorId']?null:_0x1fad6b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36a33d=_0x1fad6b['name'];if(!this['_touchedMarkers']['has'](_0x36a33d))return void this['_touchedMarkers']['set'](_0x36a33d,{'range':_0x1fad6b['oldRange'],'userId':_0x1f081e});const _0x228c99=this['_touchedMarkers']['get'](_0x36a33d),_0x330f2d=_0x228c99['range'],_0x5294d6=_0x1fad6b['newRange'];null==_0x330f2d&&null==_0x5294d6||_0x330f2d&&_0x5294d6&&_0x330f2d['isEqual'](_0x5294d6)?this['_touchedMarkers']['delete'](_0x1fad6b['name']):_0x228c99['userId']=_0x1f081e;}['_handleRootOperation'](_0x5ea42c,_0x58d753){this['_diffRoots']['has'](_0x5ea42c['rootName'])?this['_diffRoots']['get'](_0x5ea42c['rootName'])['_isAttached']=_0x5ea42c['isAdd']:(this['_diffRoots']['set'](_0x5ea42c['rootName'],P(_0x5ea42c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5ea42c['rootName'],{}),_0x58d753&&this['_idsRoots']['set'](_0x5ea42c['rootName'],P(_0x5ea42c['rootName'],!0x0)));const _0x227107=null===_0x5ea42c['_authorId']?null:_0x5ea42c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36f368=this['_touchedRoots']['get'](_0x5ea42c['rootName']);_0x36f368&&_0x36f368['userId']===_0x227107?this['_touchedRoots']['delete'](_0x5ea42c['rootName']):this['_touchedRoots']['set'](_0x5ea42c['rootName'],{'userId':_0x227107,'isAttached':_0x5ea42c['isAdd']});}['_handleRootAttributeOperation'](_0x50b58a){const _0x26cde2=this['_diffRootsAttributes']['get'](_0x50b58a['root']['rootName']);null===_0x50b58a['newValue']?delete _0x26cde2[_0x50b58a['key']]:_0x26cde2[_0x50b58a['key']]=_0x50b58a['newValue'];}}function N(_0x2a3b66){const _0x3e6e63=P(_0x2a3b66['rootName'],_0x2a3b66['isAttached']());for(const _0x401778 of _0x2a3b66['getChildren']()){const _0x34ac9f=_0x401778['_clone'](!0x0);_0x3e6e63['_appendChild'](_0x34ac9f);}return _0x3e6e63;}function P(_0x38dd71,_0x3e408a=!0x0){const _0x426316=new vt();return _0x426316['rootName']=_0x38dd71,_0x426316['_isAttached']=_0x3e408a,_0x426316['isAttached']=()=>_0x426316['_isAttached'],_0x426316;}function F(_0x3a5519,_0x24782b,_0x480cca){const _0x140226='elementEnd'==_0x3a5519['type']?_0x480cca['createPositionAt'](_0x3a5519['item'],'end'):_0x480cca['createPositionBefore'](_0x3a5519['item']);return _0x480cca['createPositionFromPath'](_0x24782b,_0x140226['path'],_0x140226['stickiness']);}function B(_0xbb2ab3,_0x9690a8,_0x5e8c8b){const _0x2dadf9='elementStart'==_0xbb2ab3['type']?_0x5e8c8b['createPositionAt'](_0xbb2ab3['item'],0x0):_0x5e8c8b['createPositionAfter'](_0xbb2ab3['item']);return _0x5e8c8b['createPositionFromPath'](_0x9690a8,_0x2dadf9['path'],_0x2dadf9['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x34a66f,_0x28dd17){super(_0x34a66f),this['focusTracker']=new _0x2f99bb(),this['keystrokes']=new _0x3606a4(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x28dd17),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x56cc0e(this);}['render'](){super['render'](),_0x1b7275({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5ea060=_0xa68649=>_0xa68649['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5ea060),this['keystrokes']['set']('arrowleft',_0x5ea060),this['keystrokes']['set']('arrowup',_0x5ea060),this['keystrokes']['set']('arrowdown',_0x5ea060);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x59bf8d){this['revisionNameInputView']['fieldView']['element']['value']=_0x59bf8d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x14d604){const _0x540e2e=new _0x5a4a5c(this['locale'],_0x12e235),_0x185024=_0x540e2e['fieldView'];_0x185024['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3682de=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x14d604&&(_0x3682de+='\x20('+g(this['locale'],'optional')+')'),(_0x540e2e['label']=_0x3682de,_0x185024['on']('input',()=>{this['revisionNameInputValue']=_0x185024['element']['value']['trim']();}),_0x540e2e);}}class f extends _0x797c22{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1fc828=this['editor'],_0x128fc0=_0x1fc828['plugins']['get']('RevisionTracker');_0x1fc828['ui']['componentFactory']['add']('revisionHistory',_0x36a8a6=>{const _0x4a4e85=_0x4afe27(_0x36a8a6),_0x5b5880=_0x4a4e85['panelView']['children'],_0x2c3ae9=new _0x23f0b6(_0x36a8a6),_0x5bd67b=new _0x5d8250(_0x36a8a6),_0x20f21b=new te(_0x36a8a6),_0x3bf28c=new _0x5d8250(_0x36a8a6),_0x2149f0=new te(_0x36a8a6);return _0x4a4e85['bind']('isEnabled')['to'](_0x128fc0,'isReady',_0x128fc0,'isEnabled',_0x1fc828,'isReadOnly',(_0xf375c7,_0x25c29d,_0x446369)=>_0xf375c7&&_0x25c29d&&!_0x446369),_0x4a4e85['buttonView']['set']({'icon':_0x4ac70d,'label':g(_0x36a8a6,'Revision\x20history'),'tooltip':!0x0}),_0x20f21b['set']({'label':g(_0x36a8a6,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x20f21b['bind']('isEnabled')['to'](_0x128fc0,'isReady',_0x128fc0,'isEnabled',_0x1fc828,'isReadOnly',(_0xb03456,_0x29fea3,_0x5d8509)=>_0xb03456&&_0x29fea3&&!_0x5d8509),_0x20f21b['on']('execute',()=>this['_showDialog']()),_0x2149f0['set']({'label':g(_0x36a8a6,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2149f0['bind']('isEnabled')['to'](_0x128fc0,'isReady',_0x1fc828,'isReadOnly',(_0x378964,_0x3dfa23)=>_0x378964&&!_0x3dfa23),_0x2149f0['on']('execute',()=>{_0x1fc828['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4a4e85['isOpen']=!0x1,_0x1fc828['editing']['view']['focus']();}),_0x5bd67b['children']['add'](_0x20f21b),_0x3bf28c['children']['add'](_0x2149f0),_0x2c3ae9['role']='menu',_0x2c3ae9['items']['addMany']([_0x5bd67b,_0x3bf28c]),_0x5b5880['add'](_0x2c3ae9),_0x4a4e85;}),_0x1fc828['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x418d5f=this['editor'],_0x1aa1f7=_0x418d5f['locale'],_0x2685a4=new _0x2703ff(_0x1aa1f7),_0x467466=new _0x2073c5(_0x1aa1f7);_0x2685a4['buttonView']['set']({'icon':_0x4ac70d,'label':g(_0x1aa1f7,'Revision\x20history')});const _0x5ec0fb=new _0x493ab2(_0x1aa1f7,_0x2685a4),_0x40b30d=new _0x10f86b(_0x1aa1f7);_0x40b30d['set']({'label':g(_0x1aa1f7,'Save\x20current\x20revision')}),_0x40b30d['delegate']('execute')['to'](_0x2685a4),_0x40b30d['on']('execute',()=>{this['_showDialog']();}),_0x5ec0fb['children']['add'](_0x40b30d),_0x467466['items']['add'](_0x5ec0fb);const _0x7d95d9=new _0x493ab2(_0x1aa1f7,_0x2685a4),_0x593bb5=new _0x10f86b(_0x1aa1f7);return _0x593bb5['set']({'label':g(_0x1aa1f7,'Open\x20revision\x20history')}),_0x593bb5['delegate']('execute')['to'](_0x2685a4),_0x593bb5['on']('execute',()=>{_0x418d5f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x7d95d9['children']['add'](_0x593bb5),_0x467466['items']['add'](_0x7d95d9),_0x2685a4['panelView']['children']['add'](_0x467466),_0x2685a4;}['_showDialog'](){const _0x571128=this['editor'],_0x2db53a=_0x571128['locale'],_0x12aed5=_0x571128['plugins']['get']('Dialog'),_0x164fba=_0x571128['plugins']['get']('RevisionTracker');function _0x1f5e50(_0x564dec){_0x571128['config']['get']('revisionHistory.requireRevisionName')&&''===_0x564dec['revisionName']?_0x564dec['revisionNameInputView']['errorText']=g(_0x2db53a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x571128['plugins']['get'](u)['saveRevision']({'name':_0x564dec['revisionName']}),_0x12aed5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1f5e50(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x12aed5['show']({'id':'revisionSave','title':g(_0x2db53a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x571128['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x12aed5['hide']()},{'label':g(_0x571128['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4977c0){_0x4977c0['bind']('isEnabled')['to'](_0x164fba,'isReady',_0x164fba,'isEnabled',_0x571128,'isReadOnly',(_0x4d90ea,_0x512e36,_0x4cfe4e)=>_0x4d90ea&&_0x512e36&&!_0x4cfe4e);},'onExecute':()=>_0x1f5e50(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x579759=this['editor'],_0x51ada5=_0x579759['locale'];this['_saveRevisionFormView']=new hs(_0x51ada5,_0x579759['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x4573a6,_0x13e0bb){super(_0x4573a6),this['_model']=_0x13e0bb,this['changeId']=_0x13e0bb['id'];const _0x4898f8=this['bindTemplate'],_0x212327=g(_0x4573a6,_0x13e0bb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x13e0bb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x13e0bb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4898f8['to']('type',_0x40be80=>'ck-revision-change__'+_0x40be80)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x212327}]},{'text':'\x20'+_0x13e0bb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1ee386(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2a918a){super(),this['id']=_0x2a918a['id']||_0x4ec44c(),this['author']=_0x2a918a['author'],this['type']=_0x2a918a['type'],this['data']=_0x2a918a['data']||{},this['rootName']=_0x2a918a['rootName'],this['set']('createdAt',_0x2a918a['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(_0x4f8197,_0x295a2f){this['newRevisionId']=_0x4f8197,this['oldRevisionId']=_0x295a2f,this['changes']=new _0x53118a();}['_setChanges'](_0x57b546){for(const _0xa2c00d of _0x57b546)this['changes']['add'](_0xa2c00d);}}class m extends _0x797c22{['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[_0x3c2f07,_0x242a6a,I,V];}constructor(_0x178c9c){super(_0x178c9c),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',(_0x5be8c0,_0x3c901b,_0xb73c41)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4c6f12=>{for(const _0x329446 of this['editor']['editing']['view']['document']['roots'])_0xb73c41?_0x4c6f12['removeClass']('ck-editor__editable__overlay',_0x329446):_0x4c6f12['addClass']('ck-editor__editable__overlay',_0x329446);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x22c251=>null!==_0x22c251),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1b493a,_0x4664d2,_0x533fa0)=>_0x1b493a&&_0x533fa0?_0x4664d2['changes']['getIndex'](_0x533fa0):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x169bef,_0x127a83)=>_0x169bef?_0x127a83['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x242a6a);}['init'](){const _0x529e4a=this['editor'],_0x1a2bc1=new wt(_0x529e4a,{'direction':'backward'}),_0x5eff9e=new wt(_0x529e4a,{'direction':'forward'});(_0x529e4a['commands']['add']('showPreviousChange',_0x1a2bc1),_0x529e4a['commands']['add']('showNextChange',_0x5eff9e),_0x529e4a['commands']['add']('restoreRevision',new mt(_0x529e4a)),this['on']('change:numberOfChanges',()=>{_0x1a2bc1['refresh'](),_0x5eff9e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x529e4a['enableReadOnlyMode']('revision-viewer'),_0x529e4a['plugins']['has']('WidgetToolbarRepository'))&&_0x529e4a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x568452){return await this['_utils']['loadRevisionData'](_0x568452,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x568452);}async['getRevisionRootsAttributes'](_0x44d626){return await this['_utils']['loadRevisionData'](_0x44d626,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x44d626);}async['compare'](_0x57af25,_0x56e5ff,_0x33c7bd=!0x1){if(!this['isEnabled'])return;const _0x523cba=this['diff'],_0x285def=this['repository'],_0x3fbc4f='string'==typeof _0x57af25?_0x285def['getRevision'](_0x57af25):_0x57af25,_0x4fdae3='string'==typeof _0x56e5ff?_0x285def['getRevision'](_0x56e5ff):_0x56e5ff,_0x4969d8=_0x3fbc4f['id'],_0x3e6a54=_0x4fdae3?_0x4fdae3['id']:null;if(!_0x33c7bd&&this['diff']&&this['diff']['newRevisionId']===_0x4969d8&&this['diff']['oldRevisionId']===_0x3e6a54)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x4969d8,_0x3e6a54);const _0x373468=this['_getRevisionsRange'](_0x3fbc4f,_0x4fdae3,!0x0)['map'](_0x51f8dd=>this['_utils']['loadRevisionData'](_0x51f8dd,this['adapter']));return _0x373468['push'](new Promise(_0x5ab7b1=>{setTimeout(_0x5ab7b1,0x14);})),Promise['all'](_0x373468)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40ceca=this['_getDiff'](_0x4969d8,_0x3e6a54);for(const _0x37b35a of _0x40ceca['changes'])this['_changeIdToChange']['set'](_0x37b35a['id'],_0x37b35a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5329d7=>{for(const _0x12e6f5 of this['editor']['model']['document']['getRootNames']())_0x5329d7['detachRoot'](_0x12e6f5);for(const _0x152db0 of Object['keys'](_0x40ceca['model'])){const _0x3c5138=_0x5329d7['addRoot'](_0x152db0);for(const _0x5c6ecc of Object['keys'](_0x40ceca['attributes'][_0x152db0]))_0x5329d7['setAttribute'](_0x5c6ecc,_0x40ceca['attributes'][_0x152db0][_0x5c6ecc],_0x3c5138);_0x5329d7['insert'](_0x40ceca['model'][_0x152db0],_0x3c5138,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40ceca['changes'])),this['isReady']=!0x0;})['catch'](_0x57cf87=>{console['error'](_0x57cf87),this['_cleanUp'](),_0x523cba&&(this['diff']=_0x523cba),this['isReady']=!0x0;});}['addRevisionData'](_0x194d48,_0x200027){const _0x483f36=this['repository']['createRevision'](_0x194d48);return _0x483f36['on']('_update',(_0x6b3efe,_0x73d641,_0x1ce67e)=>_0x200027(_0x73d641,_0x1ce67e,_0x483f36)),this['repository']['addRevision'](_0x483f36),_0x483f36;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x365275=>{for(const _0x12965c of this['editor']['model']['document']['getRootNames']())_0x365275['detachRoot'](_0x12965c);});}['_sortAndFilterDiffChanges'](_0x2cf746){const _0x1c2408=[],_0x8ea57=new Map();for(const _0x385bae of this['editor']['model']['document']['getRootNames']()){const _0xcb015a=this['editor']['editing']['view']['getDomRoot'](_0x385bae);if(!_0xcb015a)continue;const _0x395e60=_0xcb015a['getClientRects']()['item'](0x0);_0x395e60&&(_0x1c2408['push'](_0x385bae),_0x8ea57['set'](_0x385bae,_0x395e60));}return _0x1c2408['sort']((_0x40ae15,_0x279fa1)=>{const _0x17913c=_0x8ea57['get'](_0x40ae15),_0x48c419=_0x8ea57['get'](_0x279fa1);return _0x17913c['y']-_0x48c419['y']||_0x17913c['x']-_0x48c419['x'];}),(_0x2cf746=_0x2cf746['filter'](_0x54ffb8=>_0x1c2408['includes'](_0x54ffb8['rootName'])))['sort']((_0x4d5ea9,_0x38b761)=>_0x1c2408['indexOf'](_0x4d5ea9['rootName'])-_0x1c2408['indexOf'](_0x38b761['rootName'])),_0x2cf746;}['_makeTape'](_0x1d74e0){const _0x9813fb=Array['from'](_0x1d74e0['markers'])['filter'](([_0x6ce06a,_0x301d4e])=>_0x6ce06a['startsWith']('revision:')&&!_0x301d4e['isCollapsed']),_0x39deb9=Array['from'](this['editor']['model']['createRangeIn'](_0x1d74e0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x9813fb['length'])for(const _0x4b057c of _0x39deb9){const [_0x188558,_0x502070]=_0x9813fb[0x0],[,_0x35f28c,_0x5c27a8]=_0x188558['split'](':');if(_0x502070['end']['isEqual'](_0x4b057c['nextPosition'])&&_0x9813fb['shift'](),(_0x4b057c['previousPosition']['isEqual'](_0x502070['start'])||_0x4b057c['previousPosition']['isAfter'](_0x502070['start']))&&('insertion'==_0x35f28c?_0x4b057c['isAdded']={'userId':_0x5c27a8}:'deletion'==_0x35f28c&&(_0x4b057c['isRemoved']={'userId':_0x5c27a8})),0x0==_0x9813fb['length'])break;}return _0x39deb9;}['_refreshStartEndIndex'](_0x354543){const _0x5ec535=new Map();for(let _0x3dddc9=0x0;_0x3dddc9<_0x354543['length'];_0x3dddc9++)'text'===_0x354543[_0x3dddc9]['type']?(_0x354543[_0x3dddc9]['item']['startIndex']=_0x3dddc9,_0x354543[_0x3dddc9]['item']['endIndex']=_0x3dddc9):('elementStart'===_0x354543[_0x3dddc9]['type']?_0x354543[_0x3dddc9]['item']['startIndex']=_0x3dddc9:'elementEnd'===_0x354543[_0x3dddc9]['type']&&(_0x354543[_0x3dddc9]['item']['endIndex']=_0x3dddc9),_0x5ec535['set'](_0x354543[_0x3dddc9]['id'],_0x3dddc9));for(const _0x2ce670 of _0x5ec535['values']())'elementStart'===_0x354543[_0x2ce670]['type']?_0x354543[_0x2ce670]['item']['endIndex']=_0x5ec535['get'](_0x354543[_0x2ce670]['pairId']):'elementEnd'===_0x354543[_0x2ce670]['type']&&(_0x354543[_0x2ce670]['item']['startIndex']=_0x5ec535['get'](_0x354543[_0x2ce670]['pairId']));}['_processTape'](_0x1543a3){for(let _0x65b5df=0x0;_0x65b5df<_0x1543a3['length'];_0x65b5df++){if('elementStart'===_0x1543a3[_0x65b5df]['type'])_0x1543a3[_0x65b5df]['item']['startIndex']=_0x65b5df;else{if('elementEnd'===_0x1543a3[_0x65b5df]['type']){_0x1543a3[_0x65b5df]['item']['endIndex']=_0x65b5df;const _0x59110f=_0x1543a3[_0x65b5df]['item']['startIndex'];_0x1543a3[_0x59110f]['pairId']=_0x1543a3[_0x65b5df]['id'],_0x1543a3[_0x65b5df]['pairId']=_0x1543a3[_0x59110f]['id'];}else _0x1543a3[_0x65b5df]['item']['startIndex']=_0x65b5df,_0x1543a3[_0x65b5df]['item']['endIndex']=_0x65b5df,_0x1543a3[_0x65b5df]['pairId']=null;}_0x1543a3[_0x65b5df]['markersStart']||(_0x1543a3[_0x65b5df]['markersStart']=[],_0x1543a3[_0x65b5df]['markersEnd']=[]);}}['_markInsertions'](_0x5ade34,_0x41d14c){const _0x2ced57=_0x5ade34['filter'](_0xbd266=>!_0xbd266['isAdded']);for(let _0x42cf72=0x0;_0x42cf72<_0x41d14c['length'];_0x42cf72++)_0x41d14c[_0x42cf72]['isAdded']&&(_0x2ced57[_0x42cf72]['isAdded']=_0x41d14c[_0x42cf72]['isAdded']);}['_getDiff'](_0x3e0a93,_0x28ef91=null){const _0x224610=this['repository']['getRevision'](_0x3e0a93),_0x25467d=_0x28ef91?this['repository']['getRevision'](_0x28ef91):null,_0x52e4f9=this['_getRevisionsRange'](_0x224610,_0x25467d),_0x4aa774=_0x52e4f9[_0x52e4f9['length']-0x1],_0x184698=new Map(),_0x598e3d={'model':{},'attributes':{},'changes':[]},_0x524057=new Set(),_0x2c0df8=new Map();for(let _0x32b997=_0x52e4f9['length']-0x1;_0x32b997>=0x0;_0x32b997--){const _0x53c251=_0x52e4f9[_0x32b997];for(const _0x1ebaf3 of Object['keys'](_0x53c251['diffData']))if(_0x53c251['diffData'][_0x1ebaf3]['attachChange']){const _0xe06bc0=_0x53c251['diffData'][_0x1ebaf3]['attachChange'];_0xe06bc0['isAttached']?(_0x524057['add'](_0x1ebaf3),_0x2c0df8['has'](_0x1ebaf3)&&_0x2c0df8['get'](_0x1ebaf3)['userId']==_0xe06bc0['userId']?_0x2c0df8['delete'](_0x1ebaf3):_0x2c0df8['set'](_0x1ebaf3,_0xe06bc0)):_0x2c0df8['has'](_0x1ebaf3)?(_0x524057['delete'](_0x1ebaf3),_0x2c0df8['delete'](_0x1ebaf3)):(_0x524057['add'](_0x1ebaf3),_0x2c0df8['set'](_0x1ebaf3,_0xe06bc0));}else _0x524057['add'](_0x1ebaf3);}for(const _0x4874df of _0x524057){const _0x38a39f=_0x2c0df8['has'](_0x4874df)&&!_0x2c0df8['get'](_0x4874df)['isAttached'];let _0x435940=_0x38a39f?_0x52e4f9['length']-0x1:0x0;const _0x208d15=_0x38a39f?-0x1:0x1;for(;_0x52e4f9[_0x435940];){const _0x57c45c=_0x52e4f9[_0x435940];if(_0x57c45c['diffData'][_0x4874df]){const _0x35249d=_0x38a39f?_0x57c45c['diffData'][_0x4874df]['attributesBefore']:_0x57c45c['diffData'][_0x4874df]['attributesAfter'];_0x598e3d['attributes'][_0x4874df]=_0x35249d?_0x276882(_0x35249d):{};break;}_0x435940+=_0x208d15;}}for(const _0x42b0ba of _0x52e4f9){_0x42b0ba['model']={};for(const _0x5706a9 of _0x42b0ba['authors'])_0x184698['set'](_0x5706a9['id'],_0x5706a9);for(const _0xaddb23 of _0x524057){const _0x303e37=_0x42b0ba['diffData'][_0xaddb23]?_0x42b0ba['diffData'][_0xaddb23]['insertions']:'[]',_0x139ec1=_0x42b0ba['diffData'][_0xaddb23]?_0x42b0ba['diffData'][_0xaddb23]['deletions']:'[]';_0x42b0ba['model'][_0xaddb23]={'insertions':this['_utils']['_makeModelFromViewString'](_0x303e37),'deletions':this['_utils']['_makeModelFromViewString'](_0x139ec1)};}}for(const _0x5a18cf of _0x524057){let _0x486d9c=null,_0x161eba=0x0;const _0x53a97c=new Map(Array['from'](_0x224610['model'][_0x5a18cf]['insertions']['markers'])['filter'](([_0x5e661b])=>!_0x5e661b['startsWith']('revision:')));let _0x2aa26b=0x0;for(const _0x44f0ac of _0x52e4f9){const _0x1b7be4=this['_makeTape'](_0x44f0ac['model'][_0x5a18cf]['insertions']);_0x44f0ac==_0x224610?(_0x486d9c=_0x1b7be4,_0x161eba=_0x486d9c['length'],_0x486d9c['forEach'](_0x5bc7be=>{_0x5bc7be['id']=_0x2aa26b++;}),this['_processTape'](_0x486d9c)):this['_markInsertions'](_0x486d9c,_0x1b7be4);const _0x26249e=_0x486d9c['filter'](_0x18f5f1=>!_0x18f5f1['isAdded'])['map'](_0x317022=>_0x317022['id']);let _0x235662=0x0;const _0x3c1a97=this['_makeTape'](_0x44f0ac['model'][_0x5a18cf]['deletions']);_0x3c1a97['forEach'](_0x34bbd4=>{_0x34bbd4['isRemoved']?_0x34bbd4['id']=_0x161eba++:_0x34bbd4['id']=_0x26249e[_0x235662++];}),this['_processTape'](_0x3c1a97),this['_setDistance'](_0x486d9c,'isAdded'),this['_setDistance'](_0x3c1a97,'isRemoved'),_0x44f0ac==_0x224610&&this['_markMarkers'](_0x486d9c,_0x53a97c),_0x486d9c=this['_joinTapes'](_0x486d9c,_0x3c1a97),this['_refreshStartEndIndex'](_0x486d9c),this['_setDistance'](_0x486d9c,'isRemoved');}_0x486d9c=_0x486d9c['filter'](_0x541fd0=>!(_0x541fd0['isAdded']&&_0x541fd0['isRemoved']));const _0x1b3079=new Map(_0x4aa774['model'][_0x5a18cf]['deletions']['markers']),_0x1379aa=new Set(_0x53a97c['keys']());for(const _0x3022c8 of _0x1b3079['keys']())_0x1379aa['delete'](_0x3022c8);this['_markSuggestions'](_0x486d9c,_0x1379aa),this['_fixObsoleteTags'](_0x486d9c),_0x486d9c=this['_removeMissingPairs'](_0x486d9c),_0x486d9c=this['_markMismatchedRemovedTags'](_0x486d9c),_0x486d9c=this['_removeUnsupportedChanges'](_0x486d9c);const {root:_0x22325b,changes:_0x49fb6e}=this['_makeModelFromTape'](_0x486d9c,_0x184698,_0x5a18cf);_0x598e3d['model'][_0x5a18cf]=_0x22325b;const _0x2150d0=_0x2c0df8['get'](_0x5a18cf);if(_0x2150d0){const _0x140ae7=_0x184698['get'](_0x2150d0['userId']),_0x465622=new r({'author':_0x140ae7,'type':_0x2150d0['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5a18cf});_0x49fb6e['unshift'](_0x465622),_0x598e3d['attributes'][_0x5a18cf]['revisionHistoryAttachChange']=_0x465622['id'];}_0x598e3d['changes']=_0x598e3d['changes']['concat'](_0x49fb6e);}return _0x598e3d;}['_markMarkers'](_0x5629d5,_0x476a85){for(let _0x5ea483=0x0;_0x5ea483<_0x5629d5['length'];_0x5ea483++)for(const [_0x1d4fb8,_0x502800]of _0x476a85)!_0x502800['isCollapsed']&&_0x502800['start']['isEqual'](_0x5629d5[_0x5ea483]['previousPosition'])&&_0x5629d5[_0x5ea483]['markersStart']['push'](_0x1d4fb8),_0x502800['end']['isEqual'](_0x5629d5[_0x5ea483]['nextPosition'])&&_0x5629d5[_0x5ea483]['markersEnd']['push'](_0x1d4fb8);}['_joinTapes'](_0x523624,_0x18dfd6){let _0x4d8c7e=[],_0x291a31=0x0,_0x46dd96=0x0;for(;_0x291a31<_0x523624['length']||_0x46dd96<_0x18dfd6['length'];){const _0x36848d=_0x523624[_0x291a31]||{},_0x2fa950=_0x18dfd6[_0x46dd96]||{};if(_0x36848d['id']==_0x2fa950['id'])_0x291a31++,_0x46dd96++,_0x4d8c7e['push'](_0x36848d);else{if(_0x2fa950['isRemoved']&&_0x36848d['isAdded']){const {commonTape:_0x20745b,iEnd:_0x29f5e0,jEnd:_0x75bb58}=this['_threeWayMerge'](_0x523624,_0x291a31,_0x18dfd6,_0x46dd96);_0x4d8c7e=_0x4d8c7e['concat'](_0x20745b),_0x291a31=_0x29f5e0,_0x46dd96=_0x75bb58;}else _0x2fa950['isRemoved']?(_0x46dd96++,_0x4d8c7e['push'](_0x2fa950)):(_0x291a31++,_0x4d8c7e['push'](_0x36848d));}}return _0x4d8c7e;}['_markSuggestions'](_0x3aba3a,_0x50a580){const _0x499ba9=[];for(let _0x562aa2=0x0;_0x562aa2<_0x3aba3a['length'];_0x562aa2++){for(let _0xdefd6a=0x0;_0xdefd6a<_0x3aba3a[_0x562aa2]['markersStart']['length'];_0xdefd6a++){const _0x2605c6=_0x3aba3a[_0x562aa2]['markersStart'][_0xdefd6a];if(!_0x50a580['has'](_0x2605c6))continue;const {group:_0x271973,type:_0x4d6e2a,authorId:_0x29128e}=_0x3fc988(_0x2605c6);'revision-suggestion'!=_0x271973||'insertion'!=_0x4d6e2a&&'deletion'!=_0x4d6e2a||(_0x499ba9['unshift']({'type':_0x4d6e2a,'name':_0x2605c6,'userId':_0x29128e}),_0x3aba3a[_0x562aa2]['markersStart']['splice'](_0xdefd6a,0x1),_0xdefd6a--);}_0x475f4f(_0x3aba3a[_0x562aa2]);for(let _0x4aae6d=0x0;_0x4aae6d<_0x3aba3a[_0x562aa2]['markersEnd']['length'];_0x4aae6d++){const _0x277899=_0x3aba3a[_0x562aa2]['markersEnd'][_0x4aae6d];if(!_0x50a580['has'](_0x277899))continue;const {group:_0x376a70,type:_0x5a9876}=_0x3fc988(_0x277899);if('revision-suggestion'!=_0x376a70||'insertion'!=_0x5a9876&&'deletion'!=_0x5a9876)continue;_0x3aba3a[_0x562aa2]['markersEnd']['splice'](_0x4aae6d,0x1),_0x4aae6d--;const _0x342849=_0x499ba9['findIndex'](_0xd7f9e5=>_0xd7f9e5['name']==_0x277899);_0x342849>-0x1&&_0x499ba9['splice'](_0x342849,0x1);}}function _0x3fc988(_0x45c70c){const _0x555214=_0x45c70c['split'](':');return{'group':_0x555214[0x0],'type':_0x555214[0x1],'subType':_0x555214['length']>=0x5?_0x555214[0x2]:null,'id':_0x555214['length']<0x5?_0x555214[0x2]:_0x555214[0x3],'authorId':_0x555214['length']<0x5?_0x555214[0x3]:_0x555214[0x4],'markerCount':0x6==_0x555214['length']?_0x555214[0x5]:null};}function _0x475f4f(_0x2eb946){for(let _0x22ee7b=0x0;_0x22ee7b<_0x499ba9['length'];_0x22ee7b++){if(_0x2eb946['isAdded']&&'insertion'==_0x499ba9[_0x22ee7b]['type'])return _0x2eb946['isAddSuggestion']=_0x499ba9[_0x22ee7b],void delete _0x2eb946['isAdded'];if(!_0x2eb946['isAdded']&&!_0x2eb946['isRemoved']&&'deletion'==_0x499ba9[_0x22ee7b]['type'])return void(_0x2eb946['isRemoveSuggestion']=_0x499ba9[_0x22ee7b]);}}}['_setDistance'](_0x108b0a,_0x57e1f7){let _0x4e3db5=0x0,_0x1e0d8c=!0x1;const _0x125e35=new Map();for(const _0x3f4c60 of _0x108b0a)_0x3f4c60[_0x57e1f7]?_0x1e0d8c&&(_0x4e3db5++,_0x1e0d8c=!0x1):(_0x4e3db5++,_0x1e0d8c=!0x0),_0x125e35['set'](_0x3f4c60['id'],_0x4e3db5);for(let _0x3b140f=0x0;_0x3b140f<_0x108b0a['length'];_0x3b140f++){if('isRemoved'==_0x57e1f7&&_0x108b0a[_0x3b140f]['isAdded']||'isAdded'==_0x57e1f7&&_0x108b0a[_0x3b140f]['isRemoved'])continue;if('text'==_0x108b0a[_0x3b140f]['type']){_0x108b0a[_0x3b140f]['distance']=0x0;continue;}const _0x136387=_0x125e35['get'](_0x108b0a[_0x3b140f]['pairId']),_0x50135b=_0x125e35['get'](_0x108b0a[_0x3b140f]['id']);_0x108b0a[_0x3b140f]['distance']=_0x136387-_0x50135b;}}['_getRevisionsRange'](_0x52aa52,_0x507567,_0x5e25b=!0x1){const _0xfe4773=[];let _0x5858a6=this['repository']['getIndex'](_0x52aa52),_0x30bb40=this['repository']['getIndex'](_0x507567);for(-0x1==_0x30bb40&&(_0x30bb40=this['repository']['_revisions']['length'],_0x5e25b=!0x1);_0x5858a6<_0x30bb40;)_0xfe4773['push'](this['repository']['getRevision'](_0x5858a6)),_0x5858a6++;return _0x5e25b&&_0xfe4773['push'](this['repository']['getRevision'](_0x5858a6)),_0xfe4773;}['_threeWayMerge'](_0x2a7551,_0x539573,_0x302640,_0x573350){const _0x131db8=this['editor']['model']['schema'];let _0xf8f8c2=_0x539573;for(;_0x2a7551[_0xf8f8c2]&&_0x2a7551[_0xf8f8c2]['isAdded'];)_0xf8f8c2++;let _0x1abc23=_0x573350;for(;_0x302640[_0x1abc23]&&_0x302640[_0x1abc23]['isRemoved'];)_0x1abc23++;_0x5d79ef(_0x2a7551,_0x539573,_0xf8f8c2),_0x5d79ef(_0x302640,_0x573350,_0x1abc23);const _0x539f6f=_0x302640['slice'](_0x573350,_0x1abc23)['concat'](_0x2a7551['slice'](_0x539573,_0xf8f8c2));return _0x539f6f['sort']((_0x304459,_0x135e96)=>_0x304459['side']!=_0x135e96['side']?_0x304459['side']-_0x135e96['side']:_0x304459['level']!=_0x135e96['level']?_0x304459['level']-_0x135e96['level']:_0x304459['distance']!=_0x135e96['distance']?_0x135e96['distance']-_0x304459['distance']:!!_0x304459['isAdded']!=!!_0x135e96['isAdded']?-0x1==_0x304459['side']||0x0==_0x304459['side']?_0x304459['isAdded']?-0x1:0x1:_0x304459['isAdded']?0x1:-0x1:_0x304459['index']-_0x135e96['index']),{'commonTape':_0x539f6f,'iEnd':_0xf8f8c2,'jEnd':_0x1abc23};function _0x5d79ef(_0x454a0d,_0x28679b,_0x42cc57){let _0x51c7a3=-0x1,_0x481f4c=Number['POSITIVE_INFINITY'],_0x7530b1=!0x0;for(let _0x27c173=_0x28679b;_0x27c173<_0x42cc57;_0x27c173++)if(_0x131db8['isInline'](_0x454a0d[_0x27c173]['item'])||(_0x7530b1=!0x1),_0x454a0d[_0x27c173]['item']['startIndex']<_0x28679b&&(_0x51c7a3=_0x27c173),_0x454a0d[_0x27c173]['item']['endIndex']>=_0x42cc57){_0x481f4c=_0x27c173;break;}_0x7530b1&&(_0x51c7a3=_0x42cc57-0x1);for(let _0x14a296=_0x28679b;_0x14a296<_0x42cc57;_0x14a296++)_0x454a0d[_0x14a296]['side']=_0x14a296<=_0x51c7a3?-0x1:_0x14a296<_0x481f4c?0x0:0x1,_0x454a0d[_0x14a296]['index']=_0x14a296;let _0x10c9f1=0x0;for(let _0x3cb3e1=_0x28679b;_0x3cb3e1<=_0x51c7a3;_0x3cb3e1++)0x0==_0x454a0d[_0x3cb3e1]['distance']?_0x454a0d[_0x3cb3e1]['level']=_0x10c9f1:(_0x10c9f1++,_0x454a0d[_0x3cb3e1]['level']=_0x10c9f1,_0x10c9f1++);for(let _0x3f5c36=_0x28679b;_0x3f5c36<_0x42cc57;_0x3f5c36++)0x0==_0x454a0d[_0x3f5c36]['side']&&(_0x454a0d[_0x3f5c36]['level']=_0x10c9f1);_0x10c9f1=0x0;for(let _0x5a6e89=_0x42cc57-0x1;_0x5a6e89>=_0x481f4c;_0x5a6e89--)0x0==_0x454a0d[_0x5a6e89]['distance']?_0x454a0d[_0x5a6e89]['level']=_0x10c9f1:(_0x10c9f1--,_0x454a0d[_0x5a6e89]['level']=_0x10c9f1,_0x10c9f1--);}}['_fixObsoleteTags'](_0x19aa77){const _0x4eee5a=new Map(),_0x5d0e65=this['editor']['model']['schema'];for(let _0x51e6f6=0x1;_0x51e6f6<_0x19aa77['length'];_0x51e6f6++){let _0x586eb6,_0x580932,_0xc8f9eb;const _0x4ccadc=_0x19aa77[_0x51e6f6],_0x15bb92=_0x19aa77[_0x51e6f6-0x1];if('text'==_0x4ccadc['type'])continue;if(_0x4ccadc['type']!=_0x15bb92['type'])continue;if(!_0x5d0e65['isBlock'](_0x15bb92['item'])||_0x5d0e65['isLimit'](_0x15bb92['item']))continue;if(!_0x5d0e65['isBlock'](_0x4ccadc['item'])||_0x5d0e65['isLimit'](_0x4ccadc['item']))continue;if((_0x19aa77[_0x51e6f6]['isAdded']||_0x19aa77[_0x51e6f6]['isAddSuggestion'])&&_0x19aa77[_0x51e6f6-0x1]['isRemoved'])_0x586eb6=_0x19aa77[_0x51e6f6],_0x580932=_0x19aa77[_0x51e6f6-0x1],_0xc8f9eb=_0x51e6f6-0x1;else{if(!_0x19aa77[_0x51e6f6]['isRemoved']||!_0x19aa77[_0x51e6f6-0x1]['isAdded']&&!_0x19aa77[_0x51e6f6-0x1]['isAddSuggestion'])continue;_0x586eb6=_0x19aa77[_0x51e6f6-0x1],_0x580932=_0x19aa77[_0x51e6f6],_0xc8f9eb=_0x51e6f6;}const _0x5326ba=_0x586eb6['level']==_0x580932['level'],_0x25eeed=Math['abs'](_0x586eb6['level'])<Math['abs'](_0x580932['level'])&&0x0==_0x580932['distance'];(_0x5326ba||_0x25eeed)&&(_0x4eee5a['set'](_0x580932['id'],_0x586eb6['id']),_0x19aa77['splice'](_0xc8f9eb,0x1),_0x51e6f6--,_0x586eb6['isAdded']=!0x1);}for(let _0x150a45=0x0;_0x150a45<_0x19aa77['length'];_0x150a45++)_0x4eee5a['has'](_0x19aa77[_0x150a45]['pairId'])&&(_0x19aa77[_0x150a45]['pairId']=_0x4eee5a['get'](_0x19aa77[_0x150a45]['pairId']));}['_removeMissingPairs'](_0xd3c414){const _0x53c649=new Set(_0xd3c414['map'](_0x473d41=>_0x473d41['id']));for(let _0x1e7e08=0x0;_0x1e7e08<_0xd3c414['length'];_0x1e7e08++)_0x53c649['has'](_0xd3c414[_0x1e7e08]['pairId'])||0x0==_0xd3c414[_0x1e7e08]['distance']||(_0xd3c414[_0x1e7e08]['isIncorrect']=!0x0);return _0xd3c414['filter'](_0x2de036=>!_0x2de036['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4a25dc){const _0x1afa77=new Set();for(let _0x29d9bc=0x0;_0x29d9bc<_0x4a25dc['length'];_0x29d9bc++){if(_0x1afa77['has'](_0x4a25dc[_0x29d9bc]['id'])&&_0x4a25dc[_0x29d9bc]['isRemoved']&&(_0x4a25dc[_0x29d9bc]['isIncorrect']=!0x0),_0x4a25dc[_0x29d9bc]['isIncorrect'])continue;if(0x0==_0x4a25dc[_0x29d9bc]['distance'])continue;if('elementStart'!=_0x4a25dc[_0x29d9bc]['type'])continue;if(null==_0x4a25dc[_0x29d9bc]['pairId'])continue;let _0x45a8e8=_0x29d9bc+0x1,_0x36d528=0x0;for(;_0x4a25dc[_0x45a8e8]['id']!=_0x4a25dc[_0x29d9bc]['pairId'];)'elementStart'==_0x4a25dc[_0x45a8e8]['type']?_0x36d528++:'elementEnd'==_0x4a25dc[_0x45a8e8]['type']&&_0x36d528--,_0x45a8e8++;if(0x0!=_0x36d528){if(_0x4a25dc[_0x29d9bc]['isRemoved'])_0x4a25dc[_0x29d9bc]['isIncorrect']=!0x0;else{for(;_0x45a8e8!=_0x29d9bc;)_0x4a25dc[_0x45a8e8]['isRemoved']&&0x0!=_0x4a25dc[_0x45a8e8]['distance']&&(_0x4a25dc[_0x45a8e8]['isIncorrect']=!0x0,_0x1afa77['add'](_0x4a25dc[_0x45a8e8]['pairId'])),_0x45a8e8--;}}}return _0x4a25dc['filter'](_0x3d3733=>!_0x3d3733['isIncorrect']);}['_removeUnsupportedChanges'](_0x36c9ef){const _0x5d6a16=this['editor']['model']['schema'];for(let _0x5d5544=0x0;_0x5d5544<_0x36c9ef['length'];_0x5d5544++){if(!(_0x36c9ef[_0x5d5544]['isAdded']||_0x36c9ef[_0x5d5544]['isAddSuggestion']||_0x36c9ef[_0x5d5544]['isRemoved']||_0x36c9ef[_0x5d5544]['isRemoveSuggestion']))continue;if(0x0==_0x36c9ef[_0x5d5544]['distance'])continue;const _0x39c3f9=_0x36c9ef[_0x5d5544]['item'];_0x5d6a16['isBlock'](_0x39c3f9)||_0x5d6a16['isLimit'](_0x39c3f9)||(_0x36c9ef[_0x5d5544]['isAdded']&&delete _0x36c9ef[_0x5d5544]['isAdded'],_0x36c9ef[_0x5d5544]['isAddSuggestion']&&delete _0x36c9ef[_0x5d5544]['isAddSuggestion'],_0x36c9ef[_0x5d5544]['isRemoveSuggestion']&&delete _0x36c9ef[_0x5d5544]['isRemoveSuggestion'],_0x36c9ef[_0x5d5544]['isRemoved']&&(_0x36c9ef[_0x5d5544]['isIncorrect']=!0x0));}return _0x36c9ef['filter'](_0x1ff846=>!_0x1ff846['isIncorrect']);}['_makeModelFromTape'](_0x40c685,_0x574b5f,_0x232367){const _0x106e31=new vt(),_0x51b4cd=[],_0x1411b0=new Map(),_0x29501b=this['editor']['model'],_0x1242a5=_0x29501b['schema'],_0x43c0fd=[_0x106e31],_0x174f2d={},_0x951e7d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x21536a=null;const _0x3eb507=[0x0];for(let _0x1da354=0x0;_0x1da354<_0x40c685['length'];_0x1da354++)if('elementStart'===_0x40c685[_0x1da354]['type']){_0x40c685[_0x1da354]['previousPosition']=_0x29501b['createPositionFromPath'](_0x106e31,_0x3eb507);const _0x2b6e2c=new ut(_0x40c685[_0x1da354]['item']['name'],_0x40c685[_0x1da354]['item']['getAttributes']());_0x43c0fd[0x0]['_appendChild'](_0x2b6e2c),_0x3eb507['push'](0x0),_0x43c0fd['unshift'](_0x2b6e2c),_0x40c685[_0x1da354]['nextPosition']=_0x29501b['createPositionFromPath'](_0x106e31,_0x3eb507);}else'elementEnd'===_0x40c685[_0x1da354]['type']?(_0x43c0fd['shift'](),_0x40c685[_0x1da354]['previousPosition']=_0x29501b['createPositionFromPath'](_0x106e31,_0x3eb507),_0x3eb507['pop'](),_0x3eb507[_0x3eb507['length']-0x1]++,_0x40c685[_0x1da354]['nextPosition']=_0x29501b['createPositionFromPath'](_0x106e31,_0x3eb507)):(_0x40c685[_0x1da354]['previousPosition']=_0x29501b['createPositionFromPath'](_0x106e31,_0x3eb507),_0x21536a?_0x21536a['_data']+=_0x40c685[_0x1da354]['item']['data']:_0x21536a=new gt(_0x40c685[_0x1da354]['item']['data'],_0x40c685[_0x1da354]['item']['getAttributes']()),_0x40c685[_0x1da354+0x1]&&'text'===_0x40c685[_0x1da354+0x1]['type']&&_0x522cf6(_0x21536a,_0x40c685[_0x1da354+0x1]['item'])||(_0x43c0fd[0x0]['_appendChild'](_0x21536a),_0x21536a=null),_0x3eb507[_0x3eb507['length']-0x1]+=_0x40c685[_0x1da354]['item']['offsetSize'],_0x40c685[_0x1da354]['nextPosition']=_0x29501b['createPositionFromPath'](_0x106e31,_0x3eb507));for(let _0x5f1bda=0x0;_0x5f1bda<_0x40c685['length'];_0x5f1bda++){const _0x16061e=_0x40c685[_0x5f1bda]['previousPosition'],_0x31c5fe=_0x40c685[_0x5f1bda]['nextPosition'];for(const _0x16e38e of _0x40c685[_0x5f1bda]['markersStart'])_0x1411b0['set'](_0x16e38e,{'start':_0x16061e,'end':null});_0x12b021('isRemoveSuggestion',_0x5f1bda,_0x16061e,_0x31c5fe),_0x12b021('isAddSuggestion',_0x5f1bda,_0x16061e,_0x31c5fe),_0x12b021('isRemoved',_0x5f1bda,_0x16061e,_0x31c5fe),_0x12b021('isAdded',_0x5f1bda,_0x16061e,_0x31c5fe);for(const _0x21eb99 of _0x40c685[_0x5f1bda]['markersEnd']){const _0x4e3e58=_0x1411b0['get'](_0x21eb99);_0x4e3e58?_0x4e3e58['end']=_0x31c5fe:_0x1411b0['set'](_0x21eb99,{'start':_0x31c5fe,'end':_0x31c5fe});}}for(const [_0x381c6b,_0x1ae536]of _0x1411b0){const _0x96ecc8=this['editor']['model']['createRange'](_0x1ae536['start'],_0x1ae536['end']);_0x106e31['markers']['set'](_0x381c6b,_0x96ecc8);}return _0x51b4cd['sort']((_0x1575cd,_0x3f14d0)=>{const _0x19e4af=_0x106e31['markers']['get']('revision:'+_0x1575cd['id']),_0x37bd0a=_0x106e31['markers']['get']('revision:'+_0x3f14d0['id']);return _0x19e4af['start']['isBefore'](_0x37bd0a['start'])?-0x1:_0x19e4af['start']['isAfter'](_0x37bd0a['start'])?0x1:_0x19e4af['end']['isBefore'](_0x37bd0a['end'])?-0x1:_0x19e4af['end']['isAfter'](_0x37bd0a['end'])?0x1:'add'===_0x1575cd['type']?-0x1:0x1;}),{'root':_0x106e31,'changes':_0x51b4cd};function _0x12b021(_0x527b35,_0x6472e7,_0x464675,_0x267814){const _0x33a224=!!_0x40c685[_0x6472e7][_0x527b35],_0x20196a=_0x33a224?_0x40c685[_0x6472e7][_0x527b35]['userId']:null,_0x4d7738=_0x6472e7===_0x40c685['length']-0x1,_0x506141=_0x951e7d[_0x527b35][0x0],_0x2cdbff=_0x1242a5['isObject'](_0x40c685[_0x6472e7]['item']);!_0x174f2d[_0x527b35]&&_0x33a224?_0x174f2d[_0x527b35]={'start':_0x464675,'tapeItem':_0x40c685[_0x6472e7],'userId':_0x20196a,'type':_0x527b35}:_0x174f2d[_0x527b35]&&!_0x33a224?(_0x174f2d[_0x527b35]['end']=_0x464675,_0x15d20c(_0x174f2d[_0x527b35]),_0x174f2d[_0x527b35]=null):_0x174f2d[_0x527b35]&&_0x33a224&&_0x174f2d[_0x527b35]['userId']!==_0x20196a&&(_0x174f2d[_0x527b35]['end']=_0x464675,_0x506141&&_0x506141['userId']===_0x174f2d[_0x527b35]['userId']||_0x15d20c(_0x174f2d[_0x527b35]),_0x174f2d[_0x527b35]={'start':_0x464675,'tapeItem':_0x40c685[_0x6472e7],'userId':_0x20196a,'type':_0x527b35}),_0x174f2d[_0x527b35]&&_0x2cdbff&&('elementStart'!==_0x40c685[_0x6472e7]['type']||_0x506141&&_0x506141['userId']===_0x20196a||_0x951e7d[_0x527b35]['unshift']({'userId':_0x20196a,'object':_0x40c685[_0x6472e7]['item'],'change':_0x174f2d[_0x527b35]}),'elementEnd'===_0x40c685[_0x6472e7]['type']&&_0x506141&&_0x506141['object']===_0x40c685[_0x6472e7]['item']&&(_0x951e7d[_0x527b35]['shift'](),_0x174f2d[_0x527b35]=_0x506141['change'])),_0x174f2d[_0x527b35]&&_0x4d7738&&(_0x174f2d[_0x527b35]['end']=_0x267814,_0x15d20c(_0x174f2d[_0x527b35]),_0x174f2d[_0x527b35]=null);}function _0x15d20c({start:_0x148efb,end:_0x45a987,tapeItem:_0x934f6c,userId:_0x3bf6db,type:_0x537d7b}){const _0x57621d=_0x934f6c['item'],_0x275e58=_0x29501b['schema']['isBlock'](_0x57621d)&&!_0x29501b['schema']['isLimit'](_0x57621d),_0x3b1737=_0x148efb['nodeAfter']==_0x45a987['parent']&&_0x45a987['isAtStart'];if(_0x275e58&&_0x3b1737)return;const _0x2f9297=_0x29501b['createRange'](_0x148efb,_0x45a987),_0x1765bf=_0x574b5f['get'](_0x3bf6db),_0x8341e=new r({'author':_0x1765bf,'type':'isAdded'==_0x537d7b||'isAddSuggestion'==_0x537d7b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x537d7b||'isRemoveSuggestion'==_0x537d7b},'createdAt':new Date(),'rootName':_0x232367});_0x51b4cd['push'](_0x8341e),_0x106e31['markers']['set']('revision:'+_0x8341e['id'],_0x2f9297);}function _0x522cf6(_0x8494a6,_0x5966d3){const _0x487a12=_0x8494a6['getAttributes'](),_0x4ea24a=_0x5966d3['getAttributes']();for(const _0x182cfa of _0x487a12){if(_0x182cfa[0x1]!==_0x5966d3['getAttribute'](_0x182cfa[0x0]))return!0x1;_0x4ea24a['next']();}return _0x4ea24a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2d47cd=>{const _0x485294=_0x2d47cd['markerName']['split'](':')[0x1],_0x285bf3=this['_getChangeFromId'](_0x485294);if(!_0x285bf3)return null;const _0x1758b7='add'==_0x285bf3['type']?'insertion':'deletion',_0x3c509c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1758b7];return _0x285bf3['data']['isSuggestion']&&_0x3c509c['push']('ck-suggestion-marker-'+_0x1758b7+'-new'),this['activeChange']==_0x285bf3&&_0x3c509c['push']('ck-suggestion-marker--active'),{'classes':_0x3c509c,'attributes':{'data-change-id':_0x485294}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x49b788=>{_0x49b788['on']('element:pre',(_0x18f7bf,_0x47ef89,_0x53c331)=>{const _0x531262=_0x47ef89['viewItem']['getChild'](0x0);if(!_0x531262||!_0x531262['is']('element','code'))return;if(!_0x53c331['consumable']['consume'](_0x531262,{'attributes':['vid_start','vid_end']}))return;const _0x584a8c=_0x47ef89['modelRange']['start']['nodeAfter'];_0x53c331['writer']['setAttribute']('vid_start',_0x531262['getAttribute']('vid_start'),_0x584a8c),_0x53c331['writer']['setAttribute']('vid_end',_0x531262['getAttribute']('vid_end'),_0x584a8c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x266dfe=>{_0x266dfe['on']('element',(_0x17c79f,_0x3f850e,_0x1b98f9)=>{if(!_0x1b98f9['consumable']['consume'](_0x3f850e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3f850e['modelRange']['isCollapsed'])return;const _0x39a19f=_0x3f850e['modelRange']['start']['nodeAfter'];_0x39a19f['hasAttribute']('vid_start')||_0x39a19f['hasAttribute']('vid')||(_0x1b98f9['writer']['setAttribute']('vid_start',_0x3f850e['viewItem']['getAttribute']('vid_start'),_0x39a19f),_0x1b98f9['writer']['setAttribute']('vid_end',_0x3f850e['viewItem']['getAttribute']('vid_end'),_0x39a19f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x6225f6=>_0x6225f6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3b103d,[,_0x4e71c1])=>{['vid_start','vid_end','vid']['includes'](_0x4e71c1)&&(_0x3b103d['return']=!0x0,_0x3b103d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c9abd=>{_0x1c9abd['on']('attribute:vid',(_0x406b43,_0x62b8c9,_0x143b75)=>{if('\x20'!=_0x62b8c9['item']['data']||_0x62b8c9['item']['parent']['maxOffset']>0x1)return;if(!_0x143b75['consumable']['consume'](_0x62b8c9['item'],_0x406b43['name']))return;const _0x165ca2=_0x143b75['writer'],_0x96871b=_0x143b75['mapper']['toViewRange'](_0x62b8c9['range']);_0x165ca2['wrap'](_0x96871b,_0x165ca2['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2963de){const _0x2e605e=_0x2963de['plugins']['get']('RevisionViewer');return(_0x3275ff,_0x1bd805,_0x51fe6a)=>{const _0x6494ef=_0x1bd805['markerName']['split'](':')[0x1],_0xb91a0=_0x2e605e['_getChangeFromId'](_0x6494ef);if(!_0xb91a0)return null;const _0x2ea836='add'==_0xb91a0['type']?'split':'merge';if(!_0x51fe6a['consumable']['test'](_0x1bd805['markerRange'],_0x3275ff['name']))return;const _0x506652=_0x1bd805['markerRange']['getWalker'](),_0x1b4148=_0x1bd805['markerRange']['start'],_0x13b116=_0x2963de['model']['schema'];let _0x579f21=null,_0x421694=null,_0x47d399=!0x1,_0xac87c7=!0x1;for(const _0x294268 of _0x506652){const _0x4dc37b=_0x294268['item'];_0x47d399=_0x47d399||_0x13b116['isContent'](_0x4dc37b);const _0xb270e3=_0x51fe6a['mapper']['toViewElement'](_0x4dc37b);if(_0xb270e3&&_0xb270e3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x294268['type']&&(_0x13b116['isBlock'](_0x4dc37b)&&!_0x13b116['isLimit'](_0x4dc37b)&&(_0x4dc37b['nextSibling']||_0x1b4148['isAtEnd']?_0x579f21&&_0x579f21['parent']==_0x4dc37b||(_0x579f21=_0x4dc37b,_0x524bec(_0x294268['previousPosition']),_0xac87c7=!0x0):_0x421694=_0x421694||_0x294268['previousPosition']));}function _0x524bec(_0x4b54a5){const _0x2a584f=_0x51fe6a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ea836}),_0x265982=_0x51fe6a['mapper']['toViewPosition'](_0x4b54a5);_0xb91a0['data']['isSuggestion']&&_0x51fe6a['writer']['addClass']('ck-suggestion-marker-'+_0x2ea836+'-new',_0x2a584f),_0x2e605e['activeChange']==_0xb91a0&&_0x51fe6a['writer']['addClass']('ck-suggestion-marker--active',_0x2a584f),_0x51fe6a['writer']['insert'](_0x265982,_0x2a584f),_0x51fe6a['mapper']['bindElementToMarker'](_0x2a584f,_0x1bd805['markerName']);}_0x47d399||_0xac87c7||!_0x421694||_0x524bec(_0x421694);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x44437f,_0x31742d,_0x11c580)=>{const _0x3d7d8e=_0x11c580['mapper']['markerNameToElements'](_0x31742d['markerName']);if(_0x3d7d8e){for(const _0xdf3c1e of _0x3d7d8e)(_0xdf3c1e['hasClass']('ck-suggestion-marker-split')||_0xdf3c1e['hasClass']('ck-suggestion-marker-merge'))&&(_0x11c580['mapper']['unbindElementFromMarkerName'](_0xdf3c1e,_0x31742d['markerName']),_0x11c580['writer']['remove'](_0xdf3c1e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x7b33d6,_0x3b0926,_0x23d230)=>{const _0x4229a8=_0x3b0926['markerName']['split'](':')[0x1],_0x139250=this['_getChangeFromId'](_0x4229a8);if(!_0x139250)return null;const _0x2cb607='add'==_0x139250['type']?'split':'merge';if(_0x23d230['consumable']['test'](_0x3b0926['markerRange'],_0x7b33d6['name']))for(const _0x3b5be5 of _0x3b0926['markerRange']['getItems']()){if(!_0x3b5be5['is']('element','softBreak'))continue;const _0xfb60e=_0x23d230['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cb607}),_0x4ae25a=_0x23d230['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3b5be5));_0x139250['data']['isSuggestion']&&_0x23d230['writer']['addClass']('ck-suggestion-marker-'+_0x2cb607+'-new',_0xfb60e),this['activeChange']==_0x139250&&_0x23d230['writer']['addClass']('ck-suggestion-marker--active',_0xfb60e),_0x23d230['writer']['insert'](_0x4ae25a,_0xfb60e),_0x23d230['mapper']['bindElementToMarker'](_0xfb60e,_0x3b0926['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x51bbbb=>{for(const _0x649a5d of this['editor']['model']['document']['getRootNames']()){const _0x4e39a6=this['editor']['model']['document']['getRoot'](_0x649a5d),_0xf7ca36=this['editor']['editing']['view']['document']['getRoot'](_0x649a5d);if(_0xf7ca36){const _0x369272=_0x4e39a6['getAttribute']('revisionHistoryAttachChange');if(_0x51bbbb['removeAttribute']('data-change-id',_0xf7ca36),_0x51bbbb['removeClass']('ck-revision-history-root-add',_0xf7ca36),_0x51bbbb['removeClass']('ck-revision-history-root-remove',_0xf7ca36),_0x51bbbb['removeClass']('ck-revision-history-root--active',_0xf7ca36),_0x369272){const _0x72ac5=this['_getChangeFromId'](_0x369272);if(!_0x72ac5)return null;_0x51bbbb['setAttribute']('data-change-id',_0x369272,_0xf7ca36),_0x51bbbb['addClass']('ck-revision-history-root-'+_0x72ac5['type'],_0xf7ca36),this['activeChange']==_0x72ac5&&_0x51bbbb['addClass']('ck-revision-history-root--active',_0xf7ca36);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5b2f6e=>'revision-comment:'+_0x5b2f6e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x14fbc0=>'revision-suggestion:'+_0x14fbc0,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1c96b9=>({'name':'suggestion:'+_0x1c96b9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x13fbfb=>{const _0x424e49=_0x13fbfb['markerName']['split'](':')[0x1];return'insertion'!=_0x424e49&&'deletion'!=_0x424e49?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x424e49]};}}),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',(_0x4296ba,_0x553266,_0x360968)=>{const _0x5bd919=_0x360968['mapper']['markerNameToElements'](_0x553266['markerName']);if(_0x5bd919){for(const _0x19ff4f of _0x5bd919)_0x19ff4f['is']('uiElement')&&(_0x360968['mapper']['unbindElementFromMarkerName'](_0x19ff4f,_0x553266['markerName']),_0x360968['writer']['remove'](_0x19ff4f));}},{'priority':'high'});}['_getChangeFromId'](_0x2e776d){return this['_changeIdToChange']['get'](_0x2e776d);}['_getViewForChange'](_0x554cf3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x554cf3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2e941e,_0x111ea3,_0x28963e,_0x3ae355)=>{_0x3ae355&&this['_balloon']['remove'](_0x3ae355),_0x28963e&&(this['_balloon']['add']({'view':_0x28963e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x13fe57=this['editor']['editing'],_0x2b3995=this['_getChangeFromId'](_0x28963e['changeId']);let _0x57367f;if(_0x2b3995['data']['isOnRoot']){const _0x52c68e=_0x13fe57['view']['getDomRoot'](_0x2b3995['rootName']);_0x57367f=Array['from'](_0x52c68e['getClientRects']());}else{const _0x5de9df=this['editor']['model']['markers']['get']('revision:'+_0x28963e['changeId']);_0x57367f=Array['from'](_0x13fe57['mapper']['markerNameToElements'](_0x5de9df['name']))['map'](_0x1be1cd=>_0x13fe57['view']['domConverter']['mapViewToDom'](_0x1be1cd))['map'](_0x314cb5=>Array['from'](_0x314cb5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x57367f[0x0];return _0x57367f['find'](_0x472c9c=>_0x472c9c['top']-0x3<=this['_activeViewTarget']['y']&&_0x472c9c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x472c9c['left']-0x3<=this['_activeViewTarget']['x']&&_0x472c9c['right']+0x3>=this['_activeViewTarget']['x'])||_0x57367f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2cd982,_0x1e832d,_0x4a641d,_0x3f6e19)=>{this['activeView']=_0x4a641d?this['_getViewForChange'](_0x4a641d):null,this['editor']['model']['change'](()=>{const _0x3f05c8=this['editor']['editing'];_0x3f6e19&&(_0x3f6e19['data']['isOnRoot']?_0x3f05c8['view']['change'](_0x40819e=>{_0x40819e['removeClass']('ck-revision-history-root--active',_0x3f05c8['view']['document']['getRoot'](_0x3f6e19['rootName']));}):_0x3f05c8['reconvertMarker']('revision:'+_0x3f6e19['id'])),_0x4a641d&&(_0x4a641d['data']['isOnRoot']?_0x3f05c8['view']['change'](_0x298bf2=>{_0x298bf2['addClass']('ck-revision-history-root--active',_0x3f05c8['view']['document']['getRoot'](_0x4a641d['rootName']));}):_0x3f05c8['reconvertMarker']('revision:'+_0x4a641d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4a323b,_0xb1113b)=>{if(this['activeChange'])return;const _0x6d44c1=this['_findChangeIdFromDomTarget'](_0xb1113b['target']),_0x34019d=this['_changeIdToChange']['get'](_0x6d44c1);_0x34019d?(this['_activeViewTarget']={'x':_0xb1113b['domEvent']['x'],'y':_0xb1113b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x34019d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x44a1de,_0x38c396)=>{const _0x6b1928=this['_findChangeIdFromDomTarget'](_0x38c396['target']),_0x5eb1fa=this['_changeIdToChange']['get'](_0x6b1928);_0x5eb1fa?(this['_activeViewTarget']={'x':_0x38c396['domEvent']['x'],'y':_0x38c396['domEvent']['y']},_0x5eb1fa===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5eb1fa):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1fc795){do{const _0x58e035=_0x1fc795['getAttribute']('data-change-id');if(_0x58e035)return _0x58e035;_0x1fc795=_0x1fc795['parent'];}while(_0x1fc795);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xa188c1=>{for(const _0x7d3117 of this['editor']['model']['markers'])_0xa188c1['removeMarker'](_0x7d3117);});}}function X(_0x42ca49,_0x2aa8e6){return(_0x45b27a,_0x51d600,_0x3f4bff)=>{if(!_0x3f4bff['consumable']['test'](_0x51d600['markerRange'],_0x45b27a['name']))return;const _0x1b069b=_0x51d600['markerRange']['getWalker'](),_0x276d8f=_0x51d600['markerRange']['start'],_0x138d2e=_0x42ca49['model']['schema'];let _0x2e3678=null,_0x2fef37=null,_0x5ad928=!0x1,_0xed0c65=!0x1;for(const _0x3e9bfa of _0x1b069b){const _0x2c8729=_0x3e9bfa['item'];_0x5ad928=_0x5ad928||_0x138d2e['isContent'](_0x2c8729);const _0x1b76d5=_0x3f4bff['mapper']['toViewElement'](_0x2c8729);if(_0x1b76d5&&_0x1b76d5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3e9bfa['type']&&(_0x138d2e['isBlock'](_0x2c8729)&&!_0x138d2e['isLimit'](_0x2c8729)&&(_0x2c8729['nextSibling']||_0x276d8f['isAtEnd']?_0x2e3678&&_0x2e3678['parent']==_0x2c8729||(_0x2e3678=_0x2c8729,_0x2aaddc(_0x3e9bfa['previousPosition']),_0xed0c65=!0x0):_0x2fef37=_0x2fef37||_0x3e9bfa['previousPosition']));}function _0x2aaddc(_0x1711e2){const _0x31b165=_0x3f4bff['mapper']['toViewPosition'](_0x1711e2),_0x1456e9=_0x3f4bff['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2aa8e6});_0x3f4bff['writer']['insert'](_0x31b165,_0x1456e9),_0x3f4bff['mapper']['bindElementToMarker'](_0x1456e9,_0x51d600['markerName']);}_0x5ad928||_0xed0c65||!_0x2fef37||_0x2aaddc(_0x2fef37);};}class mt extends _0x4476d4{constructor(_0x3d7a73){super(_0x3d7a73);const _0x34d4b6=_0x3d7a73['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x34d4b6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34d4b6,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3f33a8=this['editor'],_0x4c13ad=_0x3f33a8['plugins']['get'](m),_0x208c98=_0x4c13ad['isReady']?_0x4c13ad['diff']['newRevisionId']:null;_0x3f33a8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x208c98);}['refresh'](){const {isReady:_0xcdc200,isEnabled:_0x20270f,repository:_0x524190,diff:_0x586364}=this['editor']['plugins']['get'](m),_0x49a4b9=_0x586364&&_0x524190['getLaterVisibleRevision'](_0x586364['newRevisionId']);this['isEnabled']=_0xcdc200&&_0x20270f&&Boolean(_0x49a4b9);}}class wt extends _0x4476d4{['_step'];constructor(_0x5fc1f9,{direction:_0x46a941}){super(_0x5fc1f9);const _0x4bb4d4=_0x5fc1f9['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x46a941?0x1:-0x1,this['listenTo'](_0x4bb4d4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4bb4d4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4bb4d4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xb82cc=this['editor'],_0x436367=_0xb82cc['plugins']['get'](m),{isNavigationMode:_0x211a5a,currentChangeNumber:_0x4b9952}=_0x436367;let _0x385fdd;if(_0x436367['activeChange']=_0x211a5a?_0x436367['diff']['changes']['get'](_0x4b9952+this['_step']):_0x436367['diff']['changes']['first'],_0x436367['activeChange']['data']['isOnRoot'])_0x385fdd=_0xb82cc['editing']['view']['getDomRoot'](_0x436367['activeChange']['rootName']);else{const _0x1fad45=_0xb82cc['model']['markers']['get']('revision:'+_0x436367['activeChange']['id']);_0x385fdd=_0x52efab(_0xb82cc['editing'],_0x1fad45);}_0xe0078a({'target':_0x385fdd,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x597003,currentChangeNumber:_0x5912c6,numberOfChanges:_0x5e8f19,isReady:_0x39988d,isEnabled:_0x577b16}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x577b16&&_0x39988d&&_0x5e8f19)&&(!_0x597003||(0x1===this['_step']?_0x5912c6<_0x5e8f19-0x1:_0x5912c6>0x0));}}class _i extends ts{constructor(_0x2daa34){super(_0x2daa34);const _0x1f898d=this['bindTemplate'],_0xff4987=new te(_0x2daa34),_0x24a29a=new te(_0x2daa34);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',(_0x1ffc4e,_0x459549)=>_0x1ffc4e&&_0x459549>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x19a3ac,_0x28eb10,_0x229dfa,_0x2ae7d1)=>{if(!_0x19a3ac)return g(_0x2daa34,'Loading...');if(!_0x229dfa)return g(_0x2daa34,'No\x20changes');const _0xf6baa0=g(_0x2daa34,'NUMBER_OF_CHANGES',_0x229dfa);return _0x2ae7d1?g(_0x2daa34,'X_OF_Y_CHANGES',[_0x28eb10+0x1,_0x229dfa]):_0xf6baa0;}),_0xff4987['set']({'label':g(_0x2daa34,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x53b272}),_0x24a29a['set']({'label':g(_0x2daa34,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x571741}),_0xff4987['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x24a29a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xff4987['on']('execute',()=>this['fire']('execute','backward')),_0x24a29a['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',_0x1f898d['if']('_isStatusLabelVisible','ck-hidden',_0x4dd419=>!_0x4dd419)]},'children':[{'text':_0x1f898d['to']('isNavigationMode',_0x82712e=>_0x82712e?g(_0x2daa34,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2daa34,'Total')+':\x20')}]},{'text':_0x1f898d['to']('_statusText')}]},new _0x4e1626(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xff4987,_0x24a29a]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x797c22{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x304a07=this['editor']['editing']['view'];_0x304a07['change'](_0x4e9ada=>{for(const _0x1546be of _0x304a07['document']['roots'])_0x4e9ada['addClass'](le,_0x1546be);});}['hide'](){const _0x11bbe6=this['editor']['editing']['view'];_0x11bbe6['change'](_0x391721=>{for(const _0x1080fe of _0x11bbe6['document']['roots'])_0x391721['removeClass'](le,_0x1080fe);});}}class R extends _0x797c22{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x33ea41=this['editor'],_0x415ec7=_0x33ea41['plugins']['get'](m),_0x584afa=_0x33ea41['plugins']['get'](ge);_0x33ea41['ui']['componentFactory']['add']('exitToEditing',_0x4041fc=>{const _0x207b09=new te(_0x4041fc);return _0x207b09['set']({'label':g(_0x4041fc,'Back\x20to\x20editing'),'icon':_0x34b947,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x207b09,'execute',()=>{_0x33ea41['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x207b09;}),_0x33ea41['ui']['componentFactory']['add']('restoreRevision',_0x3e034a=>{const _0x2e2165=new te(_0x3e034a);return _0x2e2165['set']({'label':g(_0x3e034a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2e2165['bind']('isEnabled')['to'](_0x33ea41['commands']['get']('restoreRevision')),this['listenTo'](_0x2e2165,'execute',()=>_0x33ea41['execute']('restoreRevision')),_0x2e2165;}),_0x33ea41['ui']['componentFactory']['add']('changesNavigation',_0x59a1af=>{const _0x6ba7=new _i(_0x59a1af),_0x2dad13=_0x33ea41['commands']['get']('showPreviousChange'),_0x1ada5e=_0x33ea41['commands']['get']('showNextChange');return _0x6ba7['bind']('isBackwardNavigationEnabled')['to'](_0x2dad13,'isEnabled'),_0x6ba7['bind']('isForwardNavigationEnabled')['to'](_0x1ada5e,'isEnabled'),_0x6ba7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x415ec7),this['listenTo'](_0x6ba7,'execute',(_0x426af3,_0x4dec02)=>{_0x33ea41['execute']('forward'===_0x4dec02?'showNextChange':'showPreviousChange');}),_0x6ba7;}),_0x584afa['show'](),_0x415ec7['on']('change:isReady',(_0x550cc1,_0x23fe08,_0x2c284a)=>{_0x2c284a?_0x584afa['hide']():_0x584afa['show']();});}}class at extends _0x5a4a5c{['_resizeObserver']=null;constructor(_0x5d2f6a,_0x5a060b){super(_0x5d2f6a,_0x5a060b);const _0x490b2a=this['bindTemplate'];this['set']({'label':g(_0x5d2f6a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5d2f6a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x490b2a['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 _0x2cc777=this['fieldView']['element'];this['_tooltipString']=_0x2cc777['scrollWidth']>_0x2cc777['clientWidth']&&_0x2cc777['value']||'';}}class si extends ts{constructor(_0x2a25a6,_0x3be6e8,_0x530764){super(_0x2a25a6);const _0x130a83=new _0x21eeb1();_0x130a83['set']({'content':_0x178995,'viewBox':'0\x200\x2011\x2010'});const _0x1657aa=['ck','ck-revision-history-sidebar__revision-author'];_0x530764&&_0x1657aa['push']('ck-revision-history-sidebar__revision-author_creator');const _0xe2dffe=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x2a25a6,_0x530764?'Revision\x20creator':'Revision\x20author')},'children':[_0x130a83,_0x3be6e8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1657aa},'children':_0xe2dffe});}}function oi(_0x29110a,_0x582271){const _0x4265da=_0x29110a['bindTemplate'],_0x1b43d2=_0x29110a['locale'],_0x155d27=_0x4afe27(_0x1b43d2);_0x155d27['panelPosition']='sw';const _0x1a00a2=function(_0xe230ec,_0x3bb84e){const _0x311742=function(_0x9fcb01,_0x265b85){const _0x3c1e8f=_0x9fcb01['locale'],_0x16e06d={'Compare\x20against\x20selected':g(_0x3c1e8f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3c1e8f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3c1e8f,'Restore\x20this\x20revision')};return _0x265b85['map'](_0x3f9162=>{const _0x24006b=_0x16e06d[_0x3f9162['name']];return _0x24006b&&_0x24006b!==_0x3f9162['name']&&(_0x3f9162['name']=_0x24006b),_0x3f9162;});}(_0xe230ec,_0x3bb84e),_0x4f3741=new _0x53118a();for(const _0x554993 of _0x311742){const _0x591961={'type':'button','model':new to({'label':_0x554993['name'],'class':_0x554993['class'],'withText':!0x0,'role':'menuitem','_action':_0x554993['action']})};_0x591961['model']['bind']('isEnabled')['to'](_0xe230ec,'isActionsDropdownOpen',_0x2b2287=>'function'!=typeof _0x554993['isEnabled']||(!_0x2b2287||_0x554993['isEnabled'](_0xe230ec))),_0x4f3741['add'](_0x591961);}return _0x4f3741;}(_0x29110a,_0x582271);return _0x29110a['bind']('isActionsDropdownOpen')['to'](_0x155d27,'isOpen'),_0x155d27['buttonView']['set']({'label':g(_0x1b43d2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x47c610}),_0x155d27['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4265da['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4265da['to'](_0x46d494=>_0x46d494['stopPropagation']())}}),_0x155d27['on']('execute',_0x4fb368=>{_0x29110a['isReady']&&'function'==typeof _0x4fb368['source']['_action']&&_0x4fb368['source']['_action'](_0x29110a);}),_0x24cbc9(_0x155d27,_0x1a00a2,{'role':'menu'}),_0x155d27['listenTo'](_0x29110a,'change:isActionsDropdownOpen',(_0x384b63,_0x158a81,_0x5c8e64)=>{if(_0x5c8e64)for(const _0xf099e3 of _0x155d27['listView']['items']){const _0x4a6a7d=_0xf099e3['children']['first'],_0x1a5bc0=_0x582271['find'](_0x51236f=>_0x51236f['action']===_0x4a6a7d['_action'])['isVisible'];_0xf099e3['isVisible']=void 0x0===_0x1a5bc0||_0x1a5bc0(_0x29110a);}}),_0x155d27;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x168127,_0x2fa74a,_0x48cd4c,_0xf7b189){super(_0x168127);const _0x25f10e=this['bindTemplate'],_0x167a38=function(_0x573c7f,_0x275c41){const _0x3b18ce=Array['from'](_0x275c41['authors'])['filter'](_0x2f5f59=>_0x2f5f59!=_0x275c41['creator']);return _0x275c41['creator']&&_0x3b18ce['unshift'](_0x275c41['creator']),_0x3b18ce['map'](_0x41e9cf=>new si(_0x573c7f,_0x41e9cf,_0x41e9cf==_0x275c41['creator']));}(_0x168127,_0x2fa74a);this['id']=_0x2fa74a['id'],this['_revision']=_0x2fa74a,this['_requireRevisionName']=_0xf7b189,this['bind']('name','createdAt')['to'](_0x2fa74a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2f2b06=>{return _0x4a3e20=_0x168127['uiLanguage'],(_0x5f1a1a=_0x2f2b06)['toLocaleDateString'](_0x4a3e20,{'month':'long','day':'numeric'})+',\x20'+_0x5f1a1a['toLocaleTimeString'](_0x4a3e20,{'hour':'numeric','minute':'numeric'});var _0x4a3e20,_0x5f1a1a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x168127,_0x12e235),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x51e1aa=>_0x51e1aa||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3b171c,_0x37ced3)=>_0x3b171c&&_0x37ced3),this['revisionActionsView']=_0x48cd4c&&_0x48cd4c['length']?oi(this,_0x48cd4c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x25f10e['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x25f10e['if']('isEnabled','ck-disabled',_0x1a13b6=>!_0x1a13b6),_0x25f10e['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x25f10e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x25f10e['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':_0x25f10e['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':_0x167a38}]},this['revisionActionsView']],'on':{'click':_0x25f10e['to'](_0x1513c7=>{_0x1513c7['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x383627=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x383627,'change',()=>{this['_requireRevisionName']&&!_0x383627['value']||this['fire']('setName',{'id':this['id'],'name':_0x383627['value']}),_0x383627['value']||(_0x383627['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x4b1ffb,_0x1e86a3){const _0x2746e4=_0x8ae639['fromJSDate'](_0x4b1ffb)['setLocale'](_0x1e86a3),_0x3a7e3b=_0x8ae639['local'](),_0x2b8786=_0x3a7e3b['minus']({'days':0x1})['startOf']('day');let _0x1870ca,_0x4c73e7;return _0x2746e4['hasSame'](_0x3a7e3b,'day')?(_0x1870ca=_0x2746e4['startOf']('day')['toJSDate'](),_0x4c73e7=_0x2746e4['toRelativeCalendar']()):_0x2746e4['hasSame'](_0x2b8786,'day')?(_0x1870ca=_0x2b8786['toJSDate'](),_0x4c73e7=_0x2746e4['toRelativeCalendar']()):_0x2746e4['hasSame'](_0x3a7e3b,'week')?(_0x1870ca=_0x2746e4['startOf']('week')['toJSDate'](),_0x4c73e7=_0x2746e4['weekdayLong']||''):_0x2746e4['hasSame'](_0x3a7e3b,'year')?(_0x1870ca=_0x2746e4['startOf']('month')['toJSDate'](),_0x4c73e7=_0x2746e4['monthLong']||''):(_0x1870ca=_0x2746e4['startOf']('year')['toJSDate'](),_0x4c73e7=String(_0x2746e4['year'])),{'startDate':_0x1870ca,'localizedPeriodName':_0x4c73e7};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x37cdc1,_0x106713,_0x33bdd9,_0x1ac536){super(_0x37cdc1);const _0x28bdd7=ai(_0x106713,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x106713,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x33bdd9,this['_requireRevisionName']=_0x1ac536,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':_0x28bdd7}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x305984){const _0x48b53d=new hi(this['locale'],_0x305984,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x48b53d);}['removeRevision'](_0x1da97b){const _0x1afd8b=this['revisionViews']['find'](_0x4bfb5e=>_0x4bfb5e['id']===_0x1da97b['id']);this['revisionViews']['remove'](_0x1afd8b);}}class as extends ts{constructor(_0x3a7f8b){super(_0x3a7f8b);const _0x6e7244=new _0x21eeb1();_0x6e7244['content']=_0x4ac70d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x6e7244,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x3a7f8b,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x43d81a,_0x264c65,_0x392a93,_0xa380bb){super(_0x43d81a);const _0x2fff1b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x264c65,this['_revisionActions']=_0x392a93,this['_requireRevisionName']=_0xa380bb,this['on']('select',(_0x575f70,_0x13f81c)=>{this['fire']('revisionSelected',_0x13f81c);}),this['on']('setName',(_0x5f27ae,_0x2c9ae6)=>{this['fire']('revisionSetName',_0x2c9ae6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x43d81a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2fff1b['if']('isEnabled','ck-disabled',_0x32bf5d=>!_0x32bf5d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5c0beb of this['_revisions'])this['_addRevision'](_0x5c0beb);this['_revisions']['on']('add',(_0x2e32ea,_0x298457)=>{this['_addRevision'](_0x298457);}),this['_revisions']['on']('remove',(_0x5ed7d2,_0x53ea75)=>{this['_removeRevision'](_0x53ea75);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3c2adf=>_0x3c2adf['revisionViews']['map'](_0x3701bb=>_0x3701bb))['flat']();}['selectRevision'](_0x5090d3){for(const _0x1c5877 of this['revisionViews'])_0x5090d3&&_0x5090d3['id']===_0x1c5877['id']?_0x1c5877['select']():_0x1c5877['deselect']();}['highlightRevisions'](_0x4f8f1c){for(const _0x461c57 of this['revisionViews'])_0x4f8f1c['some'](({id:_0x4b522a})=>_0x4b522a===_0x461c57['id'])?_0x461c57['highlight']():_0x461c57['unhighlight']();}['_addRevision'](_0x18f219){const _0x4d7a7d=ai(_0x18f219['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x394088=this['timePeriodViews']['get'](0x0);_0x394088&&_0x394088['startDate']['getTime']()===_0x4d7a7d['getTime']()||(_0x394088=new di(this['locale'],_0x4d7a7d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x394088)),_0x394088['addRevision'](_0x18f219);}['_removeRevision'](_0xa69235){const _0x45c9e5=ai(_0xa69235['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x45c9e5)['removeRevision'](_0xa69235);}['_getTimePeriodViewByStartDate'](_0x3cc450){return this['timePeriodViews']['find'](_0x20242e=>_0x20242e['startDate']['getTime']()===_0x3cc450['getTime']());}}class d extends _0x797c22{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(
|
|
29
|
-
_0x158b74(_0x568e99){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5ad812,_0x583ad2){super(_0x583ad2),this['sourceElement']=_0x5ad812,this['model']['document']['createRoot']();const _0x4ce43c=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4ce43c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5d7df2,_0x144d8a){const _0x4ccdc2=new this(_0x5d7df2,_0x144d8a);return await _0x4ccdc2['initPlugins'](),await _0x4ccdc2['ui']['init'](_0x5d7df2),await _0x4ccdc2['data']['init'](_0x4ccdc2['config']['get']('initialData')||''),_0x4ccdc2['fire']('ready'),_0x4ccdc2;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x123d7e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11bd58){function _0x344db0(_0x349f06){return _0x349f06['map'](_0x4ca492=>String['fromCharCode'](_0x4ca492))['join']('');}super(_0x11bd58),this['result']='end',_0x11bd58[_0x344db0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x344db0([0x76,0x69,0x65,0x77])][_0x344db0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x344db0([0x61,0x75,0x74,0x6f]),_0x11bd58[_0x344db0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x344db0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x344db0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x344db0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x344db0([0x6f,0x6b])});}}class k extends _0x123d7e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x30b807){if(super(_0x30b807),!this['editor']['config']['get']('revisionHistory'))throw new _0x277f88('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1b9534=>this['_showRevisionViewer']({..._0x1b9534,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x149ec0=>this['_closeRevisionViewer'](_0x149ec0)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x221b5f=>this['_restoreRevision'](_0x221b5f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3a9c6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3a9c6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4de4da){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4de4da);}['getRevision'](_0x342f9a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x342f9a);}['getRevisions'](_0x16d0e8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x16d0e8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x426c52=this['editor'],_0xef6b62=_0x2d7a6b(_0x426c52,p),_0x4dd212=_0x426c52['plugins']['get']('RevisionTracker'),_0x278fe1=_0x426c52['plugins']['get']('Users')['users'];return _0xef6b62['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xef6b62['lazyRoots'],(_0xef6b62['plugins']['push'](_t,m,R,class extends _0x123d7e{static get['requires'](){return[m,'Users'];}['init'](){const _0x111489=this['editor']['plugins']['get']('Users');for(const _0x5f3025 of _0x278fe1)_0x5f3025['isAnonymous']||_0x111489['getUser'](_0x5f3025['id'])||_0x111489['addUser'](_0x5f3025);const _0x3f5f27=_0x4dd212['repository']['getRevisions']();let _0x2871da=null;const _0x5ea4fc=this['editor']['plugins']['get']('RevisionViewer');_0x5ea4fc['adapter']=_0x4dd212['adapter'],_0x5ea4fc['bind']('isEnabled')['to'](_0x4dd212),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x426c52,'isReadOnly',_0xc8e519=>!_0xc8e519);for(const _0x221c96 of _0x3f5f27){const _0x4f3f56=null===_0x221c96['creator'];if(_0x4f3f56&&_0x221c96['toVersion']===_0x221c96['fromVersion'])continue;const _0x4813c3=_0x221c96['toJSON']();_0x5ea4fc['addRevisionData'](_0x4813c3,(_0x2f9e30,_0x527b30,_0x1ddb99)=>{if(_0x4f3f56){if(_0x2871da)_0x2871da['_update'](_0x2f9e30,_0x527b30);else{if(!_0x527b30){const _0xebfa07=_0x1ddb99['toJSON']();_0xebfa07['id']=_0x978a72(),_0x4dd212['saveRevision'](_0xebfa07,_0x1ddb99['toVersion'])['then'](_0x30a217=>{_0x2871da=_0x30a217;});}}}else _0x221c96['_update'](_0x2f9e30,_0x527b30);});}}},d),_0xef6b62);}['_enhanceShowRevisionViewerCallback'](){const _0x14cdc8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2f3b40=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1804ab=this['editor']['plugins']['get']('Autosave');await _0x1804ab['save']();}else await _0x2f3b40['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x343220=this['editor']['plugins']['get']('Dialog');_0x343220['isOpen']&&_0x343220['hide']();}const _0x1a8566=this['_getRevisionViewerEditorConfig']();return _0x14cdc8(_0x1a8566)['then'](_0x3801fd=>{return(this['_viewerEditor']=_0x3801fd,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'),_0x3801fd);})['catch'](_0x472114=>(console['error'](_0x472114),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xaa3530=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'](),_0xaa3530(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1ac648=this['editor']['plugins']['get']('Annotations');_0x1ac648['refreshVisibility'](),_0x1ac648['refreshPositioning']();}})));}['_showRevisionViewer'](_0x188a63){const _0x579e02=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x582b58=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3f3e1b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3f3e1b,_0x188a63)['then'](_0x2fd7ac=>(_0x582b58['style']['display']='block',_0x579e02['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2fd7ac));}['_closeRevisionViewer'](_0x2ee613){const _0x4f6a2e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4f6a2e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2ee613['destroy']();}async['_restoreRevision'](_0x55008b){const _0x621c7c=this['editor'],_0x2f3b27=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1d675a=_0x621c7c['plugins']['get']('RevisionTracker'),_0x167236=_0x621c7c['plugins']['get']('RevisionHistoryUtils'),_0x45e8cc=_0x2f3b27['repository']['getRevision'](_0x55008b);let _0x5cacc9,_0x585a63,_0x27f1ef;try{await _0x167236['loadRevisionData'](_0x45e8cc,this['adapter']),_0x5cacc9=_0x167236['getRevisionDocumentData'](_0x45e8cc),_0x585a63=_0x167236['getRevisionRootsAttributes'](_0x45e8cc);}catch(_0x28e1ef){return void console['error'](_0x28e1ef);}_0x621c7c['model']['change'](_0x2d5288=>{for(const _0x22c035 of Array['from'](_0x621c7c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2d5288['removeMarker'](_0x22c035);}),_0x2f3b27['isReady']=!0x1,_0x621c7c['model']['enqueueChange'](_0x2ec454=>{_0x2ec454['setSelection'](null),_0x2ec454['removeSelectionAttribute'](_0x621c7c['model']['document']['selection']['getAttributeKeys']());const _0x5ec7e6=Object['keys'](_0x5cacc9);for(const _0xd97471 of _0x621c7c['model']['document']['roots'])'$graveyard'!=_0xd97471['rootName']&&_0xd97471['isAttached']()&&!_0x5ec7e6['includes'](_0xd97471['rootName'])&&_0x2ec454['detachRoot'](_0xd97471);for(const _0x57def8 of _0x5ec7e6){let _0x278ab9=_0x621c7c['model']['document']['getRoot'](_0x57def8);_0x278ab9&&_0x278ab9['isAttached']()||(_0x278ab9=_0x2ec454['addRoot'](_0x57def8));const _0x2b51ba=_0x585a63[_0x57def8],_0x2c7b57=Object['keys'](_0x2b51ba),_0x33a7b3=_0x5cacc9[_0x57def8];for(const _0x3a8d15 of _0x278ab9['getAttributeKeys']())_0x2c7b57['includes'](_0x3a8d15)||_0x2ec454['removeAttribute'](_0x3a8d15,_0x278ab9);for(const _0x44904c of _0x2c7b57)_0x2ec454['setAttribute'](_0x44904c,_0x585a63[_0x57def8][_0x44904c],_0x278ab9);_0x2ec454['remove'](_0x2ec454['createRangeIn'](_0x278ab9)),_0x2ec454['insert'](_0x621c7c['data']['parse'](_0x33a7b3,_0x278ab9),_0x278ab9,0x0);}});const _0x519713=g(_0x621c7c['locale'],'Restored');if(_0x45e8cc['name'])_0x27f1ef=-0x1==_0x45e8cc['name']['indexOf'](_0x519713)?_0x519713+':\x20'+_0x45e8cc['name']:_0x45e8cc['name'];else _0x27f1ef=_0x519713+':\x20'+(_0x45e8cc['createdAt']['toLocaleDateString'](_0x621c7c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x45e8cc['createdAt']['toLocaleTimeString'](_0x621c7c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1d675a['saveRevision']({'name':_0x27f1ef}),_0x2f3b27['isReady']=!0x0,_0x621c7c['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
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x4f07ac){super(_0x4f07ac),this['_revisionViewer']=_0x4f07ac['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1f3532=this['_revisionsRepository']['_revisions'],_0x2f32a0=this['_createRevisionActions'](),_0x3ad121=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x1f3532,_0x2f32a0,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',(_0x19813b,_0x3c773a)=>{_0x3c773a['revisionViews']['on']('add',(_0x523afa,_0x483000)=>{_0x483000['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)),_0x3ad121['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x40ca73=this['_revisionsRepository']['getRevision'](0x0);if(_0x40ca73){const _0xec52d2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x40ca73['id']);this['_revisionViewer']['compare'](_0x40ca73,_0xec52d2);}}['_handleRevisionSelected'](_0x19f406,_0x5e59af){const _0x458c70=this['_revisionsRepository']['getRevision'](_0x5e59af['id']),_0x16c668=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x458c70['id']);this['_revisionViewer']['compare'](_0x458c70,_0x16c668);}['_handleRevisionSetName'](_0x3004cd,_0x4314eb){this['_revisionsRepository']['getRevision'](_0x4314eb['id'])['setName'](_0x4314eb['name']);}['_handleDiffChange'](_0x7c0d6d,_0x7d9a7,_0xf60da8){const _0x5628bf=this['_revisionsRepository']['getRevisionsInDiff'](_0xf60da8);_0x5628bf['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5628bf),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5628bf[0x0]));}['_createRevisionActions'](){const _0xb711b3=this['editor'],_0x159f9f=d['availableRevisionActions'],_0x3c5ff2=_0xb711b3['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3c5ff2['length'])return _0x3c5ff2['map'](_0x39b33a=>{const _0x315310='string'==typeof _0x39b33a?Object['assign']({},_0x159f9f[_0x39b33a]):_0x39b33a;return _0x315310['action']=_0x315310['action']['bind'](this,_0xb711b3),_0x315310['isVisible']&&(_0x315310['isVisible']=_0x315310['isVisible']['bind'](this,_0xb711b3)),_0x315310;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4acbe6},_0x5c0d69)=>{const _0x40158d=_0x4acbe6['get'](m),_0x12e9e5=_0x40158d['repository'];let _0x4e5b5b=_0x40158d['diff']['newRevisionId'],_0x321602=_0x5c0d69['id'];_0x12e9e5['getIndex'](_0x4e5b5b)>_0x12e9e5['getIndex'](_0x321602)&&([_0x4e5b5b,_0x321602]=[_0x321602,_0x4e5b5b]),_0x40158d['compare'](_0x4e5b5b,_0x321602);},'isVisible':({plugins:_0x96aab},_0x3d5085)=>{const _0x42df24=_0x96aab['get'](m);return!(_0x42df24['repository']['getRevisionsInDiff'](_0x42df24['diff'])['length']>0x2)&&!_0x3d5085['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x19979e,{id:_0x35b878})=>{_0x19979e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x35b878);},'isVisible':({plugins:_0x39ac27},_0xea9275)=>!!_0x39ac27['get'](m)['repository']['getLaterVisibleRevision'](_0xea9275['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5deebb},{id:_0x54bb0e,revisionNameView:_0x191731})=>{const _0x182dcf=_0x5deebb['get'](m),_0x158492=_0x182dcf['repository']['getEarlierVisibleRevision'](_0x54bb0e);_0x182dcf['compare'](_0x54bb0e,_0x158492),_0x191731['focus'](),_0x191731['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1db286,_0x2e349c){super(_0x1db286),this['_view']=_0x2e349c,this['_toolbarConfig']=et(_0x1db286['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x14974c){const _0x26daeb=this['editor'],_0x357b2e=this['view'],_0x41d5ba=_0x26daeb['editing']['view'],_0x3f8771=_0x357b2e['editable'],_0x429eef=_0x41d5ba['document']['getRoot']();_0x3f8771['name']=_0x429eef['rootName'],_0x357b2e['render']();const _0x5c422b=_0x3f8771['element'];this['setEditableElement'](_0x3f8771['name'],_0x5c422b),_0x357b2e['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x41d5ba['attachDomRoot'](_0x5c422b),this['_elementReplacer']['replace'](_0x14974c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1c3343=this['view'],_0x469bd2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x469bd2['detachDomRoot'](_0x1c3343['editable']['name']),_0x1c3343['destroy']();}['_initToolbar'](){const _0x3bcd1e=this['view'];_0x3bcd1e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3bcd1e['stickyPanel']['limiterElement']=_0x3bcd1e['element'],_0x3bcd1e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5c7441})=>_0x5c7441),_0x3bcd1e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3bcd1e['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x98455a,_0x5d4f40,_0x56a2e4={}){super(_0x98455a),this['stickyPanel']=new ht(_0x98455a),this['toolbar']=new dt(_0x98455a,{'shouldGroupWhenFull':_0x56a2e4['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x98455a,_0x5d4f40);}['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
|
+
_0x5ec076(_0x4127eb){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x15f107,_0x1a3f96){super(_0x1a3f96),this['sourceElement']=_0x15f107,this['model']['document']['createRoot']();const _0x5a1125=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x5a1125);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x152cf1,_0x3cff10){const _0x3f67db=new this(_0x152cf1,_0x3cff10);return await _0x3f67db['initPlugins'](),await _0x3f67db['ui']['init'](_0x152cf1),await _0x3f67db['data']['init'](_0x3f67db['config']['get']('initialData')||''),_0x3f67db['fire']('ready'),_0x3f67db;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x797c22{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x407ce8){function _0x3e5d09(_0x3154a){return _0x3154a['map'](_0x55ae42=>String['fromCharCode'](_0x55ae42))['join']('');}super(_0x407ce8),this['result']='end',_0x407ce8[_0x3e5d09([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e5d09([0x76,0x69,0x65,0x77])][_0x3e5d09([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e5d09([0x61,0x75,0x74,0x6f]),_0x407ce8[_0x3e5d09([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3e5d09([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e5d09([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3e5d09([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3e5d09([0x6f,0x6b])});}}class k extends _0x797c22{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x50a590){if(super(_0x50a590),!this['editor']['config']['get']('revisionHistory'))throw new _0x1a8948('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x130bf3=>this['_showRevisionViewer']({..._0x130bf3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x114c12=>this['_closeRevisionViewer'](_0x114c12)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x584c73=>this['_restoreRevision'](_0x584c73)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x42ce85){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x42ce85;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x586391){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x586391);}['getRevision'](_0xf29eb3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xf29eb3);}['getRevisions'](_0x2adfa6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2adfa6||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4940c3=this['editor'],_0x1b9732=_0x2737c2(_0x4940c3,p),_0x40cfd6=_0x4940c3['plugins']['get']('RevisionTracker'),_0x3904ca=_0x4940c3['plugins']['get']('Users')['users'];return _0x1b9732['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1b9732['lazyRoots'],(_0x1b9732['plugins']['push'](_t,m,R,class extends _0x797c22{static get['requires'](){return[m,'Users'];}['init'](){const _0x284ad9=this['editor']['plugins']['get']('Users');for(const _0x5742e3 of _0x3904ca)_0x5742e3['isAnonymous']||_0x284ad9['getUser'](_0x5742e3['id'])||_0x284ad9['addUser'](_0x5742e3);const _0xed99c9=_0x40cfd6['repository']['getRevisions']();let _0x28690b=null;const _0x38dcac=this['editor']['plugins']['get']('RevisionViewer');_0x38dcac['adapter']=_0x40cfd6['adapter'],_0x38dcac['bind']('isEnabled')['to'](_0x40cfd6),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4940c3,'isReadOnly',_0x33a547=>!_0x33a547);for(const _0x102863 of _0xed99c9){const _0x1d62cd=null===_0x102863['creator'];if(_0x1d62cd&&_0x102863['toVersion']===_0x102863['fromVersion'])continue;const _0x5865cc=_0x102863['toJSON']();_0x38dcac['addRevisionData'](_0x5865cc,(_0x4bdae1,_0x379154,_0xa62881)=>{if(_0x1d62cd){if(_0x28690b)_0x28690b['_update'](_0x4bdae1,_0x379154);else{if(!_0x379154){const _0x565387=_0xa62881['toJSON']();_0x565387['id']=_0x4ec44c(),_0x40cfd6['saveRevision'](_0x565387,_0xa62881['toVersion'])['then'](_0x12fc88=>{_0x28690b=_0x12fc88;});}}}else _0x102863['_update'](_0x4bdae1,_0x379154);});}}},d),_0x1b9732);}['_enhanceShowRevisionViewerCallback'](){const _0x33c22b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5485cf=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x56cfb4=this['editor']['plugins']['get']('Autosave');await _0x56cfb4['save']();}else await _0x5485cf['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x509bef=this['editor']['plugins']['get']('Dialog');_0x509bef['isOpen']&&_0x509bef['hide']();}const _0x70e1a=this['_getRevisionViewerEditorConfig']();return _0x33c22b(_0x70e1a)['then'](_0x1b53ff=>{return(this['_viewerEditor']=_0x1b53ff,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'),_0x1b53ff);})['catch'](_0x1e66d0=>(console['error'](_0x1e66d0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x137feb=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'](),_0x137feb(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x75459d=this['editor']['plugins']['get']('Annotations');_0x75459d['refreshVisibility'](),_0x75459d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x670428){const _0x58d6ba=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x183431=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x42da56=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x42da56,_0x670428)['then'](_0x5ad741=>(_0x183431['style']['display']='block',_0x58d6ba['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x5ad741));}['_closeRevisionViewer'](_0x39156a){const _0x43c709=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x43c709['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x39156a['destroy']();}async['_restoreRevision'](_0x2b21e0){const _0x93dd53=this['editor'],_0x175772=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x49bd29=_0x93dd53['plugins']['get']('RevisionTracker'),_0x25d3fa=_0x93dd53['plugins']['get']('RevisionHistoryUtils'),_0x44f854=_0x175772['repository']['getRevision'](_0x2b21e0);let _0x2d087a,_0x13a51a,_0x1424e5;try{await _0x25d3fa['loadRevisionData'](_0x44f854,this['adapter']),_0x2d087a=_0x25d3fa['getRevisionDocumentData'](_0x44f854),_0x13a51a=_0x25d3fa['getRevisionRootsAttributes'](_0x44f854);}catch(_0x2e83ff){return void console['error'](_0x2e83ff);}_0x93dd53['model']['change'](_0x40ee35=>{for(const _0x59d290 of Array['from'](_0x93dd53['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x40ee35['removeMarker'](_0x59d290);}),_0x175772['isReady']=!0x1,_0x93dd53['model']['enqueueChange'](_0x5b93e9=>{_0x5b93e9['setSelection'](null),_0x5b93e9['removeSelectionAttribute'](_0x93dd53['model']['document']['selection']['getAttributeKeys']());const _0x17b825=Object['keys'](_0x2d087a);for(const _0x85f9ab of _0x93dd53['model']['document']['roots'])'$graveyard'!=_0x85f9ab['rootName']&&_0x85f9ab['isAttached']()&&!_0x17b825['includes'](_0x85f9ab['rootName'])&&_0x5b93e9['detachRoot'](_0x85f9ab);for(const _0x5e357b of _0x17b825){let _0x2a82b6=_0x93dd53['model']['document']['getRoot'](_0x5e357b);_0x2a82b6&&_0x2a82b6['isAttached']()||(_0x2a82b6=_0x5b93e9['addRoot'](_0x5e357b));const _0x3714a3=_0x13a51a[_0x5e357b],_0x4f4bd1=Object['keys'](_0x3714a3),_0x188ccb=_0x2d087a[_0x5e357b];for(const _0x52d92e of _0x2a82b6['getAttributeKeys']())_0x4f4bd1['includes'](_0x52d92e)||_0x5b93e9['removeAttribute'](_0x52d92e,_0x2a82b6);for(const _0x138406 of _0x4f4bd1)_0x5b93e9['setAttribute'](_0x138406,_0x13a51a[_0x5e357b][_0x138406],_0x2a82b6);_0x5b93e9['remove'](_0x5b93e9['createRangeIn'](_0x2a82b6)),_0x5b93e9['insert'](_0x93dd53['data']['parse'](_0x188ccb,_0x2a82b6),_0x2a82b6,0x0);}});const _0xb2a195=g(_0x93dd53['locale'],'Restored');if(_0x44f854['name'])_0x1424e5=-0x1==_0x44f854['name']['indexOf'](_0xb2a195)?_0xb2a195+':\x20'+_0x44f854['name']:_0x44f854['name'];else _0x1424e5=_0xb2a195+':\x20'+(_0x44f854['createdAt']['toLocaleDateString'](_0x93dd53['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x44f854['createdAt']['toLocaleTimeString'](_0x93dd53['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x49bd29['saveRevision']({'name':_0x1424e5}),_0x175772['isReady']=!0x0,_0x93dd53['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};
|