@ckeditor/ckeditor5-revision-history 44.2.0-alpha.5 → 44.2.0-alpha.6
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 +10 -10
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0xca3c0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5640e7){super(),this['id']=_0x5640e7['id']||_0x14fde0(),this['creator']=_0x5640e7['creator']||null,this['authors']=_0x5640e7['authors']||[],this['diffData']=_0x5640e7['diffData']||null,this['toVersion']=_0x5640e7['toVersion']||0x0,this['fromVersion']=_0x5640e7['fromVersion']||0x0,this['set']('name',_0x5640e7['name']||''),this['set']('createdAt',_0x5640e7['createdAt']||new Date()),this['set']('attributes',_0x5640e7['attributes']||{});}['setName'](_0x511e90){this['_update']({'name':_0x511e90});}['setAttribute'](_0x20fa22,_0x5a2596){const _0x180caf=_0x402cfd(this['attributes']);_0x1667af(_0x180caf,_0x20fa22,_0x5a2596),this['_update']({'attributes':_0x180caf});}['removeAttribute'](_0x5c2ff3){const _0x4f7254=_0x402cfd(this['attributes']);_0x65be2(_0x4f7254,_0x5c2ff3),this['_update']({'attributes':_0x4f7254});}['_update'](_0x2d04c0,_0x2c67b6=!0x1){let _0x5b8b2c=!0x1;const _0x4ffbd0={'id':this['id']},_0x4200e9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1957b3 of _0x4200e9){const _0x3a11b9=_0x2d04c0[_0x1957b3];void 0x0!==_0x3a11b9&&_0x3a11b9!==this[_0x1957b3]&&(this[_0x1957b3]=_0x3a11b9,_0x4ffbd0[_0x1957b3]=_0x3a11b9,_0x5b8b2c=!0x0);}_0x5b8b2c&&(_0x4ffbd0['authors']&&(_0x4ffbd0['authorsIds']=_0x4ffbd0['authors']['map'](_0x9067ef=>_0x9067ef['id']),delete _0x4ffbd0['authors']),this['fire']('_update',_0x4ffbd0,_0x2c67b6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x44d371=>_0x44d371['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3f9988{['_revisions'];static get['requires'](){return[_0x4e5665];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x258a0f){super(_0x258a0f),this['_revisions']=new _0x3c75d5();}['afterInit'](){!async function(_0x318fdb){const _0x15ae78=_0xca34e4([0x69,0x63,0x61,0x32,0x67,0x37,0x4a,0x48,0x31,0x5a,0x45,0x6c,0x59,0x6d,0x54,0x74,0x79,0x34,0x70,0x53,0x64,0x7a,0x57,0x36,0x41,0x58,0x42,0x44,0x4d,0x68,0x38,0x33,0x51,0x62,0x6f,0x6a,0x46,0x49,0x76,0x78,0x4c,0x35,0x30,0x73,0x47,0x50,0x71,0x4e,0x77,0x65,0x6b,0x56,0x55,0x52,0x4b,0x43,0x39,0x6e,0x75,0x4f,0x66,0x72]),_0x299b3b=0xeb829,_0x239e9c=0x7cf7c95e,_0x4cb042=0x7cf09706^_0x239e9c,_0x19b3d1=window[_0xca34e4([0x44,0x61,0x74,0x65])][_0xca34e4([0x6e,0x6f,0x77])](),_0x50dd66=_0x318fdb[_0xca34e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fd9b4=new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486550=>{_0x50dd66[_0xca34e4([0x6f,0x6e,0x63,0x65])](_0xca34e4([0x72,0x65,0x61,0x64,0x79]),_0x486550);}),_0x7bcf8={[_0xca34e4([0x6b,0x74,0x79])]:_0xca34e4([0x45,0x43]),[_0xca34e4([0x75,0x73,0x65])]:_0xca34e4([0x73,0x69,0x67]),[_0xca34e4([0x63,0x72,0x76])]:_0xca34e4([0x50,0x2d,0x32,0x35,0x36]),[_0xca34e4([0x78])]:_0xca34e4([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]),[_0xca34e4([0x79])]:_0xca34e4([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]),[_0xca34e4([0x61,0x6c,0x67])]:_0xca34e4([0x45,0x53,0x32,0x35,0x36])},_0xa7c81b=_0x50dd66[_0xca34e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xca34e4([0x67,0x65,0x74])](_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x76ebaa(){let _0x3bc472,_0x2b0864=null,_0x12a00b=null;try{if(_0xa7c81b==_0xca34e4([0x47,0x50,0x4c]))return _0xca34e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3bc472=_0x46c133(),!_0x3bc472)return _0xca34e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3bc472[_0xca34e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12a00b=_0x51b152(_0x3bc472[_0xca34e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3bc472[_0xca34e4([0x6a,0x74,0x69])])),await _0x566c54()?_0x2c2ca1()?_0x6594c()?_0xca34e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51649a()?(_0x3bc472[_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xca34e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b0864=_0x5ba36c(_0xca34e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3bc472[_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xca34e4([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b0864=_0x5ba36c(_0xca34e4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54ea7d()):_0xca34e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xca34e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xca34e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b9e3e){return _0xca34e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6594c(){const _0x448024=[_0xca34e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xca34e4([0x74,0x72,0x69,0x61,0x6c])][_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc472[_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19b3d1/0x3e8:0xe10*_0x4cb042;return _0x3bc472[_0xca34e4([0x65,0x78,0x70])]<_0x448024;}function _0x2c2ca1(){const _0x5bb8c1=_0x3bc472[_0xca34e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5bb8c1)return!0x1;if(_0x5bb8c1[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca34e4([0x2a])))return!0x0;if(_0x5bb8c1[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca34e4([0x52,0x48])))return!0x0;if(_0x5bb8c1[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca34e4([0x52,0x52,0x48]))){if(_0x1ff81d())return!0x0;if(_0x463d05()||_0x43bf57())return!0x0;}return!0x1;}function _0x51649a(){const _0x546d82=_0x3bc472[_0xca34e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x546d82||0x0==_0x546d82[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e4329}=new URL(window[_0xca34e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x546d82[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e4329))return!0x0;const _0x428918=_0x4e4329[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])](_0xca34e4([0x2e]));return _0x546d82[_0xca34e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bcead=>_0x5bcead[_0xca34e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca34e4([0x2a])))[_0xca34e4([0x6d,0x61,0x70])](_0x318968=>_0x318968[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])](_0xca34e4([0x2e])))[_0xca34e4([0x73,0x6f,0x6d,0x65])](_0x2724f4=>_0x428918[_0xca34e4([0x65,0x76,0x65,0x72,0x79])]((_0x89843a,_0x4799ac)=>_0x2724f4[_0x4799ac]===_0x89843a||_0x2724f4[_0x4799ac]===_0xca34e4([0x2a])));}function _0x54ea7d(){return _0x2b0864&&_0x12a00b?new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35c13e,_0x417ef2)=>{_0x2b0864[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x35c13e,_0x417ef2),_0x12a00b[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x58d0f4=>{_0x58d0f4!=_0xca34e4([0x56,0x61,0x6c,0x69,0x64])&&_0x35c13e(_0x58d0f4);},_0x417ef2);}):_0x2b0864||_0x12a00b||_0xca34e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51b152(_0x505b30,_0x3132e2){return new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x588be8=>{if(_0x488111())return _0x588be8(_0xca34e4([0x56,0x61,0x6c,0x69,0x64]));_0x388111(),_0x50dd66[_0xca34e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xca34e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd79465=!0x1;const _0x54a56c=_0x14fde0();function _0x25d2c3(_0x5a9f16){return!!_0x5a9f16&&(typeof _0x5a9f16===_0xca34e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a9f16===_0xca34e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a9f16[_0xca34e4([0x74,0x68,0x65,0x6e])]===_0xca34e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a9f16[_0xca34e4([0x63,0x61,0x74,0x63,0x68])]===_0xca34e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x322fe1(_0x4eb4d4){_0x2fccf6(_0x4eb4d4)[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x328fa7=>{if(!_0x328fa7||_0x328fa7[_0xca34e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xca34e4([0x6f,0x6b]))return _0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd11f50(_0x150f99(_0x54a56c+_0x3132e2))!=_0x328fa7[_0xca34e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xca34e4([0x56,0x61,0x6c,0x69,0x64]);})[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x2cebcb=>(_0x4c510e(),_0x2cebcb),()=>{const _0x371954=_0x24e4c5();return null==_0x371954?(_0x4c510e(),_0xca34e4([0x56,0x61,0x6c,0x69,0x64])):_0xca34e4(_0x19b3d1-_0x371954>(0x58fb4d5e^_0x239e9c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x588be8)[_0xca34e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x588be8(_0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d5d5f=0x7cc127de^_0x239e9c;function _0x4c510e(){const _0x226a61=_0xca34e4([0x6c,0x6c,0x63,0x74,0x2d])+_0xd11f50(_0x150f99(_0x505b30)),_0x553171=_0x4f3f8b(_0xd11f50(window[_0xca34e4([0x4d,0x61,0x74,0x68])][_0xca34e4([0x63,0x65,0x69,0x6c])](_0x19b3d1/_0x2d5d5f)));window[_0xca34e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xca34e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x226a61,_0x553171);}function _0x24e4c5(){const _0x437a59=_0xca34e4([0x6c,0x6c,0x63,0x74,0x2d])+_0xd11f50(_0x150f99(_0x505b30)),_0x4db891=window[_0xca34e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xca34e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x437a59);return _0x4db891?window[_0xca34e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f3f8b(_0x4db891),0x10)*_0x2d5d5f:null;}function _0x2fccf6(_0x3a4b65){return new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x590c8f,_0x432f38)=>{_0x3a4b65[_0xca34e4([0x74,0x68,0x65,0x6e])](_0x590c8f,_0x432f38),window[_0xca34e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x432f38,0x7cf61d9e^_0x239e9c);});}}_0x50dd66[_0xca34e4([0x6f,0x6e])](_0xca34e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x970556,_0xd9e4c0)=>{if(_0xd9e4c0[0x0]!=_0x505b30)return _0x588be8(_0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd9e4c0[0x1]={..._0xd9e4c0[0x1],[_0xca34e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54a56c};},{[_0xca34e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xca34e4([0x68,0x69,0x67,0x68])}),_0x50dd66[_0xca34e4([0x6f,0x6e])](_0xca34e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7773d2=>{_0x25d2c3(_0x7773d2[_0xca34e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd79465=!0x0,_0x322fe1(_0x7773d2[_0xca34e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xca34e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xca34e4([0x6c,0x6f,0x77])}),_0x1fd9b4[_0xca34e4([0x74,0x68,0x65,0x6e])](()=>{_0xd79465||_0x588be8(_0xca34e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x488111(){return _0x50dd66[_0xca34e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xca34e4([0x76,0x69,0x65,0x77])][_0xca34e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xca34e4([0x61,0x75,0x74,0x6f]);}function _0x388111(){_0x50dd66[_0xca34e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xca34e4([0x76,0x69,0x65,0x77])][_0xca34e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xca34e4([0x61,0x75,0x74,0x6f]);}}function _0x5ba36c(_0x14981c){const _0x17a19c=[new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54efa4=>setTimeout(_0x54efa4,0x7cfef792^_0x239e9c)),_0x1fd9b4[_0xca34e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x538e14=>{const _0x29ebd7=0x7cf7c959^_0x239e9c,_0x550be5=_0x318fdb[_0xca34e4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3d6168(){_0x550be5[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x29ebd7&&_0x538e14();}_0x3d6168(),_0x550be5[_0xca34e4([0x6f,0x6e])](_0xca34e4([0x61,0x64,0x64]),_0x3d6168);})),new window[(_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x148a23=>{function _0x4cb332(){for(const _0x329a28 in window)if(window[_0xca34e4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xca34e4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x329a28))&&window[_0x329a28]==_0x299b3b)return _0x148a23();_0x50dd66[_0xca34e4([0x73,0x74,0x61,0x74,0x65])]!=_0xca34e4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xca34e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cb332,0x7cf7dad6^_0x239e9c);}_0x2d6d3c(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4cb332();})];return window[_0xca34e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xca34e4([0x72,0x61,0x63,0x65])](_0x17a19c)[_0xca34e4([0x74,0x68,0x65,0x6e])](()=>_0x14981c);}async function _0x4c30db(){if(await _0x1fd9b4,_0x2d6d3c(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2d97a9=_0x318fdb[_0xca34e4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2f2311=_0x318fdb[_0xca34e4([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])](_0x2d97a9[_0xca34e4([0x69,0x64])]),_0xdf771b=_0x17f9c3(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xdf771b[_0xca34e4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2d97a9['id'],_0x2f2311?_0x2f2311['id']:null,!0x0),_0xdf771b[_0xca34e4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xca34e4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xdf771b[_0xca34e4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xdf771b[_0xca34e4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x158c74,void(_0xdf771b[_0xca34e4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x158c74);}if(_0x2d6d3c(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2a0a9b=_0x17f9c3(_0xca34e4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2a0a9b[_0xca34e4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xca34e4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2a0a9b[_0xca34e4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2a0a9b[_0xca34e4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x158c74,_0x2a0a9b[_0xca34e4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x158c74;}_0x50dd66[_0xca34e4([0x6d,0x6f,0x64,0x65,0x6c])][_0xca34e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x158c74,_0x50dd66[_0xca34e4([0x6d,0x6f,0x64,0x65,0x6c])][_0xca34e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x158c74,_0x50dd66[_0xca34e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xca34e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ff81d(){return _0x2d6d3c(_0xca34e4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x17f9c3(_0xca34e4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xca34e4([0x73,0x74,0x61,0x74,0x65])]==_0xca34e4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x463d05(){return _0x2d6d3c(_0xca34e4([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 _0x43bf57(){return _0x2d6d3c(_0xca34e4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xbad8b8(_0x5c6c8a){const _0x5b4133=_0x16793c();_0x50dd66[_0x5b4133]=_0xca34e4([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])+_0x5c6c8a,_0x5c6c8a[_0xca34e4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xca34e4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x16793c()]=_0x299b3b),_0x5c6c8a!=_0xca34e4([0x56,0x61,0x6c,0x69,0x64])&&_0x4c30db();}function _0x16793c(){const _0x4a189c=window[_0xca34e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xca34e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xca34e4([0x6e,0x6f,0x77])]())[_0xca34e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xca34e4([0x2e]),'');let _0x409a4e=_0xca34e4([0x69]);for(let _0x1596c1=0x0;_0x1596c1<_0x4a189c[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1596c1+=0x2){let _0x4ecda8=window[_0xca34e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a189c[_0xca34e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1596c1,_0x1596c1+0x2));_0x4ecda8>=_0x15ae78[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ecda8-=_0x15ae78[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x409a4e+=_0x15ae78[_0x4ecda8];}return _0x409a4e;}function _0x46c133(){const _0x33ee5b=_0xa7c81b[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])](_0xca34e4([0x2e]));if(0x3!=_0x33ee5b[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4da786(_0x33ee5b[0x1]);function _0x4da786(_0x2d40cd){const _0x3dca10=_0x2bf7fc(_0x2d40cd);return _0x3dca10&&_0x2a271f()?_0x3dca10:null;function _0x2a271f(){const _0x146812=_0x3dca10[_0xca34e4([0x6a,0x74,0x69])],_0xac9c=window[_0xca34e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x146812[_0xca34e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x146812[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xde7edb={..._0x3dca10,[_0xca34e4([0x6a,0x74,0x69])]:_0x146812[_0xca34e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x146812[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xde7edb[_0xca34e4([0x76,0x63])],_0x150f99(_0xde7edb)==_0xac9c;}}}async function _0x566c54(){let _0x1c60f8=!0x0;try{const _0x5d1b3f=_0xa7c81b[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])](_0xca34e4([0x2e])),[_0x432033,_0x17467f,_0x9bf7d9]=_0x5d1b3f;return _0x43aeb6(_0x432033),await _0x223648(_0x432033,_0x17467f,_0x9bf7d9),_0x1c60f8;}catch(_0x172cdf){return!0x1;}function _0x43aeb6(_0x200052){const _0x423f71=_0x2bf7fc(_0x200052);_0x423f71&&_0x423f71[_0xca34e4([0x61,0x6c,0x67])]==_0xca34e4([0x45,0x53,0x32,0x35,0x36])||(_0x1c60f8=!0x1);}async function _0x223648(_0x1fe93c,_0x30609c,_0xb5e34e){const _0x335030=window[_0xca34e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xca34e4([0x66,0x72,0x6f,0x6d])](_0x5d4384(_0xb5e34e),_0x3c4a91=>_0x3c4a91[_0xca34e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2000b0=new window[(_0xca34e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xca34e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1fe93c+_0xca34e4([0x2e])+_0x30609c),_0x24e8e9=window[_0xca34e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xca34e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24e8e9)return;const _0x31b979=await _0x24e8e9[_0xca34e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xca34e4([0x6a,0x77,0x6b]),_0x7bcf8,{[_0xca34e4([0x6e,0x61,0x6d,0x65])]:_0xca34e4([0x45,0x43,0x44,0x53,0x41]),[_0xca34e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xca34e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xca34e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24e8e9[_0xca34e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xca34e4([0x6e,0x61,0x6d,0x65])]:_0xca34e4([0x45,0x43,0x44,0x53,0x41]),[_0xca34e4([0x68,0x61,0x73,0x68])]:{[_0xca34e4([0x6e,0x61,0x6d,0x65])]:_0xca34e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31b979,_0x335030,_0x2000b0)||(_0x1c60f8=!0x1);}}function _0x2bf7fc(_0x3021e1){return _0x3021e1[_0xca34e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xca34e4([0x65,0x79]))?JSON[_0xca34e4([0x70,0x61,0x72,0x73,0x65])](_0x5d4384(_0x3021e1)):null;}function _0x5d4384(_0x29d354){return window[_0xca34e4([0x61,0x74,0x6f,0x62])](_0x29d354[_0xca34e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xca34e4([0x2b]))[_0xca34e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xca34e4([0x2f])));}function _0x150f99(_0x1f9883){let _0x959596=0x1505;function _0xb4f976(_0x3f8cf5){for(let _0x3f1d45=0x0;_0x3f1d45<_0x3f8cf5[_0xca34e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f1d45++){const _0x5a9040=_0x3f8cf5[_0xca34e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f1d45);_0x959596=(_0x959596<<0x5)+_0x959596+_0x5a9040,_0x959596&=_0x959596;}}function _0x3d73ee(_0x163142){Array[_0xca34e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x163142)?_0x163142[_0xca34e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d73ee):_0x163142&&typeof _0x163142==_0xca34e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xca34e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x163142)[_0xca34e4([0x73,0x6f,0x72,0x74])]()[_0xca34e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3478cf,_0x3684b4])=>{_0xb4f976(_0x3478cf),_0x3d73ee(_0x3684b4);}):_0xb4f976(window[_0xca34e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x163142));}return _0x3d73ee(_0x1f9883),_0x959596>>>0x0;}function _0xd11f50(_0xd389f9){return _0xd389f9[_0xca34e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xca34e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xca34e4([0x30]));}function _0x4f3f8b(_0x29edad){return _0x29edad[_0xca34e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0xca34e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xca34e4([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d6d3c(_0x4780e6){return _0x50dd66[_0xca34e4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xca34e4([0x68,0x61,0x73])](_0x4780e6);}function _0x17f9c3(_0x1f7670){return _0x50dd66[_0xca34e4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xca34e4([0x67,0x65,0x74])](_0x1f7670);}function _0x158c74(){}function _0xca34e4(_0x564d98){return _0x564d98['map'](_0x1e00bd=>String['fromCharCode'](_0x1e00bd))['join']('');}_0xbad8b8(await _0x76ebaa());}(this);}['createRevision'](_0x189f81){const _0x745352=this['editor']['plugins']['get']('Users');return new a({'id':_0x189f81['id'],'name':_0x189f81['name'],'creator':_0x189f81['creatorId']?_0x745352['getUser'](_0x189f81['creatorId']):null,'diffData':_0x189f81['diffData']||_0x189f81['data'],'authors':_0x189f81['authorsIds']['map'](_0x2fd519=>_0x745352['getUser'](_0x2fd519)),'createdAt':new Date(_0x189f81['createdAt']),'attributes':_0x189f81['attributes'],'fromVersion':_0x189f81['fromVersion'],'toVersion':_0x189f81['toVersion']});}['addRevision'](_0x504881,_0x101204=0x0){this['_revisions']['add'](_0x504881,_0x101204);}['getRevision'](_0x48aa87){return this['_revisions']['get'](_0x48aa87);}['getRevisions'](_0x235358={'toJSON':!0x1}){const _0x1887c8=Array['from'](this['_revisions']);return _0x1887c8['reverse'](),_0x235358['toJSON']?_0x1887c8['map'](_0x194533=>_0x194533['toJSON']()):_0x1887c8;}['getIndex'](_0x4f6345){return this['_revisions']['getIndex'](_0x4f6345);}['getEarlierVisibleRevision'](_0x5cc632){const [,_0x1c84da]=this['getRevisionsIterator'](_0x5cc632,{'direction':'earlier'});return _0x1c84da;}['getLaterVisibleRevision'](_0x6acd21){const [,_0x39b02]=this['getRevisionsIterator'](_0x6acd21,{'direction':'later'});return _0x39b02;}['getRevisionsInDiff'](_0x5ce754){const _0x813d09=[];for(const _0xc7d01c of this['getRevisionsIterator'](_0x5ce754['newRevisionId']))if(_0x813d09['push'](_0xc7d01c),_0xc7d01c['id']===_0x5ce754['oldRevisionId'])break;return _0x813d09;}*['getRevisionsIterator'](_0xb46fb5,{direction:_0x52b6a6='earlier',filter:_0x3788ca=()=>!0x0}={}){const _0x878cdb='earlier'===_0x52b6a6?0x1:-0x1;let _0x8b3b87=this['_revisions']['get'](_0xb46fb5),_0x117bbd=this['getIndex'](_0x8b3b87);for(yield _0x8b3b87;_0x8b3b87;){if(_0x117bbd+=_0x878cdb,_0x8b3b87=this['getRevision'](_0x117bbd),!_0x8b3b87)return;_0x3788ca(_0x8b3b87)&&(yield _0x8b3b87);}}}function m(_0x32129f,_0x27797c,_0x55b341){const t=_0x32129f['t'];switch(_0x27797c){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'},_0x55b341);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x55b341);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x37fdec,'a':_0x1afc78,'e':_0x494f2d,'r':_0x3132b0,'u':_0x1f07d6};class l extends _0x3f9988{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4e5665,j,_0x3175aa];}constructor(_0x3139aa){super(_0x3139aa),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x18b148=_0x14fde0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18b148},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3454b9=this['repository']['getRevision'](0x0),_0x4fae59=_0x3454b9&&null===_0x3454b9['creator']?_0x3454b9:null;if(this['_continueCurrentRevision']=!!_0x4fae59&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1d1938=this['_source']['getCurrentRevisionId'](),_0x589178=this['repository']['getRevision'](_0x1d1938);if(_0x589178)this['_startingVersion']=_0x589178['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xee5b3c=this['_source']['history']['_operations']['find'](_0x29bf73=>!_0x29bf73['_isInit']),_0x2ecab3=_0xee5b3c?_0xee5b3c['baseVersion']:this['_source']['history']['version'];_0x3454b9?(_0x3454b9['toVersion']<_0x2ecab3&&_0x3454b9['_update']({'toVersion':_0x2ecab3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4fae59['id'],this['_startingVersion']=_0x4fae59['fromVersion']):(this['_startingVersion']=_0x3454b9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ecab3,this['_continueCurrentRevision']=!0x1);}}else _0x4fae59&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4fae59['toVersion'],this['editor']['model']['document']['history']['version']),_0x4fae59['fromVersion']===_0x4fae59['toVersion']?(0x0!==_0x4fae59['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fae59['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fae59['id'],this['_startingVersion']=_0x4fae59['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',_0x1d3589=>!_0x1d3589),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x199cf6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x114270;for(const _0x17fd48 in _0x199cf6){const _0x52dccb=_0x17fd48,_0x58a8e1=_0x199cf6[_0x52dccb];if('revisionHistoryLicenseKeyValid'==_0x58a8e1||'revisionHistoryLicenseKeyInvalid'==_0x58a8e1||'revisionHistoryLicenseKeyExpired'==_0x58a8e1||'revisionHistoryLicenseKeyDomainLimit'==_0x58a8e1||'revisionHistoryLicenseKeyNotAllowed'==_0x58a8e1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x58a8e1||'revisionHistoryLicenseKeyTrialLimit'==_0x58a8e1||'revisionHistoryLicenseKeyUsageLimit'==_0x58a8e1){delete _0x199cf6[_0x52dccb],_0x114270=_0x58a8e1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x114270&&_0x199cf6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x114270&&_0x199cf6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x114270&&_0x199cf6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x114270&&_0x199cf6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x114270&&_0x199cf6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x114270&&_0x199cf6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x114270&&_0x199cf6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4635de=this['repository']['getRevision'](0x0),_0x50fb9b=await this['getRevisionDocumentData'](_0x4635de),_0x2e0b40=await this['getRevisionRootsAttributes'](_0x4635de);this['_replaceEditorDataWithRevisionData'](_0x50fb9b,_0x2e0b40);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x612cf3){this['_source']=_0x612cf3;}async['update'](){const _0x23aca7=await this['_source']['getLatestVersion']();if(_0x23aca7>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1e1fa1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x23aca7});_0x1e1fa1['authors']=_0x1e1fa1['authorsIds']['map'](_0x3f2b27=>this['editor']['plugins']['get']('Users')['getUser'](_0x3f2b27)),this['currentRevision']['_update'](_0x1e1fa1);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x499dda={},_0x2c5f6d=null){const _0x49790a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2c5f6d>this['currentRevision']['toVersion']&&(_0x2c5f6d=null),null===_0x2c5f6d&&(_0x2c5f6d=await this['_source']['getLatestVersion']());const _0x51f5b1=this['_getFromVersion'](_0x2c5f6d),_0x204559=this['buildRevisionData']({'from':_0x51f5b1,'to':_0x2c5f6d});if(this['currentRevision']['toVersion']<_0x2c5f6d){const _0x26b84a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2c5f6d,'to':_0x2c5f6d});_0x26b84a['authors']=[],_0x26b84a['authorsIds']=[],_0x26b84a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x26b84a,!0x0),delete _0x26b84a['authors'],_0x49790a['push'](_0x26b84a);}_0x499dda['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x499dda['name']=_0x499dda['name']||null,_0x499dda['id']=_0x499dda['id']||_0x14fde0(),_0x499dda={..._0x499dda,..._0x204559};const _0x110922=this['addRevisionData'](_0x499dda);_0x49790a['push'](_0x499dda);const _0x12a9d6=this['repository']['getIndex'](_0x110922);if(0x0!==_0x12a9d6){const _0x12b052=this['repository']['getRevision'](_0x12a9d6-0x1);if(_0x12b052['fromVersion']!==_0x2c5f6d){const _0x554e7d=this['_revisionDataBuilder']['getData'](_0x2c5f6d,_0x12b052['toVersion']),_0x2c613e={'id':_0x12b052['id'],'diffData':_0x554e7d['diffData'],'authorsIds':_0x554e7d['authorsIds'],'authors':_0x554e7d['authorsIds']['map'](_0x3b38df=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b38df)),'fromVersion':_0x2c5f6d};_0x12b052===this['currentRevision']&&(_0x2c613e['createdAt']=new Date(_0x499dda['createdAt']['getTime']()+0xa)),_0x12b052['_update'](_0x2c613e,!0x0),delete _0x2c613e['authors'],_0x49790a['push'](_0x2c613e);}}if(this['adapter']){for(const _0x45a514 of _0x49790a)this['_bufferUpdate'](_0x45a514['id'],_0x45a514,!0x0);this['sendBufferedUpdates']();}return _0x110922;}['addRevisionData'](_0x832ae1){const _0xee9f6d=this['repository']['createRevision'](_0x832ae1);return this['adapter']&&_0xee9f6d['on']('_update',(_0x3f24b1,_0x23843a,_0x26421b)=>{_0x26421b||(this['_bufferUpdate'](_0x23843a['id'],_0x23843a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xee9f6d,this['_findInsertionIndex'](_0xee9f6d)),_0xee9f6d;}async['getRevisionDocumentData'](_0x58dd24){await this['_loadRevisionData'](_0x58dd24);const _0x15abad={};for(const _0x5273b9 in _0x58dd24['diffData']){if(_0x58dd24['diffData'][_0x5273b9]['attachChange']&&!_0x58dd24['diffData'][_0x5273b9]['attachChange']['isAttached'])continue;const _0x49e1a9=this['_removeRevisionMarkers'](JSON['parse'](_0x58dd24['diffData'][_0x5273b9]['insertions'])),_0x6e2b85=this['editor']['editing']['view']['document'],_0x5c94d6=new _0x46b162(_0x6e2b85,_0x49e1a9['map'](_0x2540de=>C(_0x2540de,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x15abad[_0x5273b9]=this['editor']['data']['processor']['toData'](_0x5c94d6),this['editor']['data']['processor']['useFillerType']('default');}return _0x15abad;}async['getRevisionRootsAttributes'](_0x2f39d3){await this['_loadRevisionData'](_0x2f39d3);const _0x5422ec={};for(const _0x1bdbb8 in _0x2f39d3['diffData'])_0x2f39d3['diffData'][_0x1bdbb8]['attachChange']&&!_0x2f39d3['diffData'][_0x1bdbb8]['attachChange']['isAttached']||(_0x5422ec[_0x1bdbb8]=_0x2f39d3['diffData'][_0x1bdbb8]['attributesAfter']||{});return _0x5422ec;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x51c888=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1b1e13=0x0;_0x1b1e13<_0x51c888['length'];_0x1b1e13++){const _0x58882e=_0x51c888[_0x1b1e13];let _0x4272d0=!0x1;for(const _0xa1a7ca of Object['keys'](_0x58882e))void 0x0===_0x58882e[_0xa1a7ca]?delete _0x58882e[_0xa1a7ca]:'id'!==_0xa1a7ca&&(_0x4272d0=!0x0);_0x4272d0||(_0x51c888[_0x1b1e13]=null);}if(_0x51c888=_0x51c888['filter'](_0x275d10=>null!==_0x275d10),!_0x51c888['length'])return;for(let _0x25a6eb=0x0;_0x25a6eb<_0x51c888['length'];_0x25a6eb++){const _0x352f30=_0x51c888[_0x25a6eb];void 0x0!==_0x352f30['fromVersion']&&void 0x0===_0x352f30['toVersion']&&(_0x352f30['toVersion']=this['repository']['getRevision'](_0x352f30['id'])['toVersion']),void 0x0!==_0x352f30['toVersion']&&void 0x0===_0x352f30['fromVersion']&&(_0x352f30['fromVersion']=this['repository']['getRevision'](_0x352f30['id'])['fromVersion']);}const _0x2cd37d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x51c888,_0x2cd37d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1a4efd=>{if(_0x1a4efd){for(const _0x45c1c0 of _0x1a4efd)this['setRevisionData']({'id':_0x45c1c0['id'],'createdAt':_0x45c1c0['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5044e0,_0x3d2723){let _0x1e4e80=this['editor']['config']['get']('initialData'),_0x1a2f04=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1e4e80){_0x1e4e80={};for(const _0x3403b1 of this['editor']['model']['document']['getRootNames']())_0x1e4e80[_0x3403b1]='';}if('string'==typeof _0x1e4e80&&(_0x1e4e80={'main':_0x1e4e80}),void 0x0===_0x1a2f04){_0x1a2f04={};for(const _0x55bcb8 of this['editor']['model']['document']['getRootNames']())_0x1a2f04[_0x55bcb8]={};}let _0x267f53=!0x1;const _0x199bc1=Object['keys'](_0x1e4e80),_0x55f917=Object['keys'](_0x5044e0);for(const _0x17d5c3 of _0x199bc1){if(_0x1e4e80[_0x17d5c3]!==_0x5044e0[_0x17d5c3]&&''!==_0x1e4e80[_0x17d5c3]['trim']()){_0x267f53=!0x0;break;}if(!_0x2a70bd(_0x1a2f04[_0x17d5c3],_0x3d2723[_0x17d5c3])&&Object['keys'](_0x1a2f04[_0x17d5c3])['length']>0x0){_0x267f53=!0x0;break;}}_0x267f53||(_0x267f53=_0x55f917['some'](_0x18e749=>!this['editor']['model']['document']['getRoot'](_0x18e749))),_0x267f53&&_0x7a06ec('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1e4e80,'editorRootsAttributes':_0x1a2f04,'revisionData':_0x5044e0,'revisionRootsAttributes':_0x3d2723}),this['editor']['config']['set']('initialData',_0x5044e0),this['editor']['config']['set']('rootsAttributes',_0x3d2723);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2eed74=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2eed74['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2de48c){const _0x31e100=this['repository']['getRevisions']();_0x31e100['reverse']();let _0x3e8988=0x0;for(;_0x3e8988<_0x31e100['length'];){const _0x1d5116=_0x31e100[_0x3e8988];if(_0x1d5116===this['currentRevision']){_0x3e8988++;continue;}if(_0x1d5116['id']===this['_initialRevisionId'])break;const _0x2ad423=_0x2de48c['toVersion']-_0x1d5116['toVersion']||_0x2de48c['fromVersion']-_0x1d5116['fromVersion'];if(_0x2ad423>0x0)break;if(_0x2ad423<0x0)_0x3e8988++;else{if(!_0x2de48c['creator']&&_0x1d5116['creator'])break;if(_0x1d5116['creator']||!_0x2de48c['creator']){if(_0x2de48c['createdAt']>_0x1d5116['createdAt'])break;_0x3e8988++;}else _0x3e8988++;}}return _0x3e8988;}['setRevisionData'](_0x465f85){const _0x4d60be=this['repository']['getRevision'](_0x465f85['id']);if(_0x465f85['createdAt']&&(_0x465f85['createdAt']=new Date(_0x465f85['createdAt'])),_0x465f85['authorsIds']){const _0x225cb1=this['editor']['plugins']['get']('Users');_0x465f85['authors']=_0x465f85['authorsIds']['map'](_0x45dbdb=>_0x225cb1['getUser'](_0x45dbdb));}_0x4d60be['_update'](_0x465f85,!0x0);}['buildRevisionData']({revision:_0x3ace70=null,from:_0xb9454f=null,to:_0x544053=null}){_0xb9454f=null!==_0xb9454f?_0xb9454f:_0x3ace70['fromVersion'],_0x544053=null!==_0x544053?_0x544053:_0x3ace70['toVersion'];const _0x2d3fa0=this['_revisionDataBuilder']['getData'](_0xb9454f,_0x544053),_0x5651ef={'diffData':_0x2d3fa0['diffData'],'authorsIds':_0x2d3fa0['authorsIds'],'fromVersion':_0xb9454f,'toVersion':_0x544053};if(!_0x3ace70||_0x544053!==_0x3ace70['toVersion']){const _0x503306=_0x544053-0x1,_0x3bfd0a=this['_source']['history']['getOperation'](_0x503306);_0x5651ef['createdAt']=_0x3bfd0a&&_0x3bfd0a['createdAt']||new Date();}if(this['_loadedStateData']&&_0xb9454f===this['_loadedStateData']['fromVersion']){for(const _0x26dd44 of this['_loadedStateData']['authors'])_0x5651ef['authorsIds']['includes'](_0x26dd44['id'])||_0x5651ef['authorsIds']['push'](_0x26dd44['id']);}return _0x5651ef;}['_loadRevisionData'](_0x36799e){if(!_0x36799e||_0x36799e['diffData'])return Promise['resolve']();{const _0x4af8a3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4af8a3,'revisionId':_0x36799e['id']})['then'](_0x3a133b=>{_0x36799e['diffData']=_0x3a133b['diffData'];});}}['_bufferUpdate'](_0x3ec32f,_0x1fc9af,_0x4d6a07){if(this['_bufferedUpdates']['has'](_0x3ec32f)){const _0x47f0bd=this['_bufferedUpdates']['get'](_0x3ec32f);_0x1fc9af=_0x4d6a07?{..._0x47f0bd,..._0x1fc9af}:{..._0x1fc9af,..._0x47f0bd};}this['_bufferedUpdates']['set'](_0x3ec32f,_0x1fc9af);}['_getFromVersion'](_0xc4d666){const _0x3393ca=this['repository']['getRevisions']();_0x3393ca['reverse'](),_0x3393ca['shift']();const _0xfd5e87=_0x3393ca['find'](_0x171450=>_0x171450['toVersion']<=_0xc4d666)['toVersion'];return _0xfd5e87<this['_startingVersion']?this['_startingVersion']:_0xfd5e87;}['_createInitialRevision'](_0x2cf69d){const _0x203f76=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x203f76)this['_initialRevisionId']=_0x203f76['id'];else{const _0x287c3a=!this['editor']['model']['document']['roots']['find'](_0x36bd76=>this['editor']['model']['hasContent'](_0x36bd76)),_0x46ea8a=this['editor']['plugins']['get']('Users')['me']['id'],_0x19af69=m(this['editor']['locale'],_0x287c3a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2cf69d,'to':_0x2cf69d,'id':this['_initialRevisionId'],'name':_0x19af69,'creatorId':_0x46ea8a});}}['_createCurrentRevision'](_0x147fea){const _0x2559aa=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2559aa),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x147fea,'to':_0x147fea,'id':_0x2559aa,'name':'','creatorId':null}));}['_makeRevision']({name:_0x31d562,from:_0x218d10,to:_0x140652,creatorId:_0x5da265,id:_0x157d59}){const _0x5f095a=this['buildRevisionData']({'from':_0x218d10,'to':_0x140652});_0x5f095a['name']=_0x31d562,_0x5f095a['creatorId']=_0x5da265,_0x5f095a['id']=_0x157d59;const _0x57b2e1=this['addRevisionData'](_0x5f095a);return this['adapter']&&this['_bufferUpdate'](_0x5f095a['id'],_0x5f095a,!0x0),_0x57b2e1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5d6956){return(_0x5d6956=_0x5d6956['filter'](_0x24a753=>!_0x24a753['name']||'revision-start'!==_0x24a753['name']&&'revision-end'!==_0x24a753['name']))['forEach'](_0x160245=>{'string'!=typeof _0x160245&&(_0x160245['children']=this['_removeRevisionMarkers'](_0x160245['children']),_0x160245['attributes']=_0x160245['attributes']['filter'](_0x3dbbda=>!_0x3dbbda[0x0]['startsWith']('data-revision-')));}),_0x5d6956;}}function C(_0x3ad26b,_0x3748a8){const _0x121170=_0x3748a8['editing']['view']['document'];if('string'==typeof _0x3ad26b)return new _0x297344(_0x121170,_0x3ad26b);{const _0x24ced9=_0x3ad26b['children']['map'](_0x423270=>C(_0x423270,_0x3748a8));return new(P[_0x3ad26b['type']]||_0x45205b)(_0x121170,_0x3ad26b['name'],_0x3ad26b['attributes'],_0x24ced9);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x327a57){this['editor']=_0x327a57,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'](_0x5d4cbf){this['source']=_0x5d4cbf;const _0x3f6c76=new Map(),_0x3bb749=new Map(),_0x48ad58=this['editor']['model']['document']['roots']['map'](_0x1979e6=>_0x1979e6['rootName']);for(const _0x6594b of _0x48ad58){const _0x58080d=this['editor']['model']['document']['getRoot'](_0x6594b),_0x17d9f7=T(_0x58080d);_0x3f6c76['set'](_0x6594b,_0x17d9f7),_0x3bb749['set'](_0x6594b,Object['fromEntries'](_0x58080d['getAttributes']()));}const _0x103fe8=Array['from'](this['editor']['model']['markers'])['map'](_0x13d142=>[_0x13d142['name'],_0x13d142['getRange']()]),_0x3f91b2=this['source']['version'];this['_saveMetaData'](_0x3f91b2,_0x3f6c76,_0x103fe8,_0x3bb749),this['_startingRevisionId']=this['_revisionId'];const _0x35cec9=new Map(),_0x266ac5=new Map();for(const _0x19817d of _0x48ad58){const _0x5a2aa0=F(_0x19817d);_0x35cec9['set'](_0x19817d,_0x5a2aa0),_0x266ac5['set'](_0x19817d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x35cec9,[],_0x266ac5);}['getData'](_0x5aeb99,_0xa0bc80){if(this['_lastFrom']===_0x5aeb99&&this['_lastTo']<=_0xa0bc80)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xa0bc80,!0x0);else{if(!this['_savedMetaData']['has'](_0x5aeb99)){const _0x532a4b=this['_getPreviousFrom'](_0x5aeb99);this['_calculateMetaData'](_0x532a4b,_0x5aeb99,!0x1);}this['_calculateMetaData'](_0x5aeb99,_0xa0bc80,!0x0);}return this['_lastFrom']=_0x5aeb99,this['_lastTo']=_0xa0bc80,this['_getState']();}['loadState'](_0x2f7a04){this['_reset'](),this['_lastFrom']=_0x2f7a04['fromVersion'],this['_lastTo']=_0x2f7a04['toVersion'];for(const _0x1b2778 in _0x2f7a04['diffData']){const _0x4b1b3c=_0x2f7a04['diffData'][_0x1b2778]['attachChange'],_0x55db48=_0x402cfd(_0x2f7a04['diffData'][_0x1b2778]['attributesBefore'])||{},_0x4f8da5=this['_makeModelFromViewString'](_0x2f7a04['diffData'][_0x1b2778]['deletions']);_0x4f8da5['rootName']=_0x1b2778,_0x4f8da5['_isAttached']=!_0x4b1b3c||!_0x4b1b3c['isAttached'],_0x4f8da5['isAttached']=()=>_0x4f8da5['_isAttached'],this['_baseRoots']['set'](_0x1b2778,_0x4f8da5),this['_baseRootsAttributes']['set'](_0x1b2778,_0x55db48),_0x4b1b3c&&this['_touchedRoots']['set'](_0x1b2778,_0x4b1b3c);const _0x3ba483=this['_makeIdsRoot'](_0x4f8da5);this['_baseIdsRoots']['set'](_0x1b2778,_0x3ba483);for(const [_0x3f828b,_0xc40aad]of _0x4f8da5['markers']){if(!_0x3f828b['startsWith']('revision:'))continue;const _0x4a935c=_0x3f828b['split'](':')[0x2];for(const _0x51aea5 of _0xc40aad['getWalker']({'singleCharacters':!0x0})){const _0x7a9083=this['_getVidAttributeName'](_0x51aea5),_0x2ea210='elementEnd'==_0x51aea5['type']?_0x51aea5['previousPosition']['path']['slice'](0x0,-0x1):_0x51aea5['previousPosition']['path'],_0x57c582=_0x3ba483['getNodeByPath'](_0x2ea210)['getAttribute'](_0x7a9083);this['_touched']['set'](_0x57c582,{'userId':_0x4a935c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x59f440=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x471c77=>!this['_touched']['has'](_0x471c77));let _0x3f0668=0x0;const _0x3b61b6=new Map();for(const _0x52836f in _0x2f7a04['diffData']){const _0x3776c4=_0x2f7a04['diffData'][_0x52836f]['attachChange'],_0x479bad=_0x402cfd(_0x2f7a04['diffData'][_0x52836f]['attributesAfter'])||{},_0x33be7e=this['_makeModelFromViewString'](_0x2f7a04['diffData'][_0x52836f]['insertions']);_0x33be7e['rootName']=_0x52836f,_0x33be7e['_isAttached']=!_0x3776c4||_0x3776c4['isAttached'],_0x33be7e['isAttached']=()=>_0x33be7e['_isAttached'],this['_diffRoots']['set'](_0x52836f,_0x33be7e),this['_diffRootsAttributes']['set'](_0x52836f,_0x479bad);const _0x18015e=this['_makeIdsRoot'](_0x33be7e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x52836f,_0x18015e),_0x3b61b6['set'](_0x52836f,_0x33be7e['isAttached']()?_0x479bad:{});for(const [_0x518b09,_0x526a9f]of _0x33be7e['markers']){if(!_0x518b09['startsWith']('revision:'))continue;const _0xb6c471=_0x518b09['split'](':')[0x2];for(const _0x3937c4 of _0x526a9f['getWalker']({'singleCharacters':!0x0})){const _0x3375dd=this['_getVidAttributeName'](_0x3937c4),_0x1a5ae7=this['_revisionId']++,_0x17e6f6='elementEnd'==_0x3937c4['type']?_0x3937c4['previousPosition']['path']['slice'](0x0,-0x1):_0x3937c4['previousPosition']['path'];_0x18015e['getNodeByPath'](_0x17e6f6)['_setAttribute'](_0x3375dd,_0x1a5ae7),this['_touched']['set'](_0x1a5ae7,{'userId':_0xb6c471});}}for(const _0x3ab5ee of this['editor']['model']['createRangeIn'](_0x33be7e)['getWalker']({'singleCharacters':!0x0})){const _0x45fb75=this['_getVidAttributeName'](_0x3ab5ee),_0x4e652a='elementEnd'==_0x3ab5ee['type']?_0x3ab5ee['previousPosition']['path']['slice'](0x0,-0x1):_0x3ab5ee['previousPosition']['path'],_0x46fe34=_0x18015e['getNodeByPath'](_0x4e652a);_0x46fe34['getAttribute'](_0x45fb75)>0x0||_0x46fe34['_setAttribute'](_0x45fb75,_0x59f440[_0x3f0668++]);}for(const [_0x209b19,_0x46eac4]of _0x33be7e['markers'])_0x209b19['startsWith']('revision:')||this['_markers']['set'](_0x209b19,_0x46eac4);}const _0x2cfd09=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2cfd09),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2cfd09,0x1));const _0x1c5614=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1c5614),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1c5614,0x1));const _0x5a3734=Array['from'](this['_diffRoots'])['map'](([_0x31e51e,_0x3fe2f8])=>[_0x31e51e,T(_0x3fe2f8)]);this['_saveMetaData'](this['_lastTo'],_0x5a3734,this['_markers'],_0x3b61b6);}['_makeModelFromViewString'](_0x489fc9){const _0x264819=JSON['parse'](_0x489fc9),_0x4ac13d=this['editor']['editing']['view']['document'],_0x641d32=new _0x46b162(_0x4ac13d,_0x264819['map'](_0x4bf31d=>C(_0x4bf31d,this['editor'])));return this['editor']['data']['toModel'](_0x641d32);}['_saveMetaData'](_0x51e790,_0x150dd7,_0x5b7d07,_0x4e8e83){const _0xf68591=new Map(_0x150dd7),_0x1bb6ac=new Map(_0x402cfd(_0x4e8e83)),_0x5c43fd=new Map();for(const [_0x4ea0ba,_0x2edcbb]of _0x5b7d07)_0x5c43fd['set'](_0x4ea0ba,{'start':_0x2edcbb['start']['clone'](),'end':_0x2edcbb['end']['clone'](),'rootName':_0x2edcbb['root']['rootName']});this['_savedMetaData']['set'](_0x51e790,{'roots':_0xf68591,'markers':_0x5c43fd,'rootsAttributes':_0x1bb6ac});}['_removeMetaData'](_0x31f171){this['_savedMetaData']['delete'](_0x31f171);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1cc73b,_0x1a011d=null){let _0x566f5e=null;_0x1cc73b['is']('documentFragment')||(_0x566f5e=new ft(_0x1cc73b['name'],{'vid_start':null===_0x1a011d?this['_revisionId']++:_0x1a011d++}));const _0x44e204=[];for(const _0x3e0a28 of _0x1cc73b['getChildren']())if(_0x3e0a28['is']('element')){_0x44e204['push'](this['_makeIdsRoot'](_0x3e0a28,_0x1a011d));const _0x58f79f=_0x44e204[_0x44e204['length']-0x1];null!==_0x1a011d&&(_0x1a011d=_0x58f79f['is']('element','$text')?_0x58f79f['getAttribute']('vid')+0x1:_0x58f79f['getAttribute']('vid_end')+0x1);}else{for(let _0xe1274d=0x0;_0xe1274d<_0x3e0a28['offsetSize'];_0xe1274d++)_0x44e204['push'](new ft('$text',{'vid':null===_0x1a011d?this['_revisionId']++:_0x1a011d++}));}if(_0x1cc73b['is']('documentFragment')){const _0x54f665=F(_0x1cc73b['rootName']);return _0x54f665['_insertChild'](0x0,_0x44e204),_0x54f665;}return _0x566f5e['_setAttribute']('vid_end',null===_0x1a011d?this['_revisionId']++:_0x1a011d++),_0x566f5e['_insertChild'](0x0,_0x44e204),_0x566f5e;}['_calculateMetaData'](_0x1bd321,_0x1ec33d,_0x4a840f){this['_reset']();const {roots:_0x408505,markers:_0x4679af,rootsAttributes:_0x5c9ab9}=this['_savedMetaData']['get'](_0x1bd321);this['_baseRoots']=new Map(_0x408505),this['_baseRootsAttributes']=new Map(_0x402cfd(_0x5c9ab9));for(const [_0x294bd7,_0x45459e]of this['_baseRoots'])if('$graveyard'!==_0x294bd7&&(this['_diffRoots']['set'](_0x294bd7,T(_0x45459e)),this['_diffRootsAttributes']=new Map(_0x402cfd(_0x5c9ab9)),_0x4a840f)){const _0x3de806=this['_revisionId'];this['_idsRoots']['set'](_0x294bd7,this['_makeIdsRoot'](_0x45459e)),this['_baseIdsRoots']['set'](_0x294bd7,this['_makeIdsRoot'](_0x45459e,_0x3de806));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4a840f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x345663,_0x1e3e61]of _0x4679af){const _0x54711=this['_baseRoots']['get'](_0x1e3e61['rootName']),_0x1f9430=this['_diffRoots']['get'](_0x1e3e61['rootName']),_0x40d7ec=new vt(this['_fixPosition'](_0x1e3e61['start'],_0x54711),this['_fixPosition'](_0x1e3e61['end'],_0x54711)),_0x31b1b9=this['_fixRange'](_0x40d7ec,_0x1f9430);_0x54711['markers']['set'](_0x345663,_0x40d7ec),this['_markers']['set'](_0x345663,_0x31b1b9);}this['_applyOperations'](_0x1bd321,_0x1ec33d,_0x4a840f);}['_applyOperations'](_0x141654,_0x8e5b21,_0x5938d3){for(const _0x332410 of this['source']['getOperations'](_0x141654,_0x8e5b21))this['_handleOperation'](_0x332410,_0x5938d3);for(const _0x239986 of this['_diffRoots']['values']())_0x239986['markers']['clear']();for(const [_0xc4a5b1,_0x2c3120]of this['_markers']){this['_diffRoots']['get'](_0x2c3120['root']['rootName'])['markers']['set'](_0xc4a5b1,_0x2c3120['clone']());}const _0x408825=new Map(),_0x50e5ad=new Map();for(const [_0x4e2da9,_0x29c1e3]of this['_diffRoots'])_0x408825['set'](_0x4e2da9,T(_0x29c1e3)),_0x50e5ad['set'](_0x4e2da9,this['_diffRootsAttributes']['get'](_0x4e2da9));this['_saveMetaData'](_0x8e5b21,_0x408825,this['_markers'],_0x50e5ad);}['_getPreviousFrom'](_0x2f56a8){const _0x5e1419=Array['from'](this['_savedMetaData']['keys']());_0x5e1419['sort']((_0x155a4b,_0x54ee94)=>_0x155a4b-_0x54ee94),_0x5e1419['reverse']();for(const _0x57524b of _0x5e1419)if(_0x57524b<_0x2f56a8)return _0x57524b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x439804,_0x3fd0fe){const _0x368cda=Array['from'](_0x3fd0fe['markers'])['map'](([_0x2ea92d,_0x4aea70])=>[_0x2ea92d,this['_fixRange'](_0x4aea70,_0x439804)]);_0x439804['markers']=new Map(_0x368cda);}['_transformMarkers'](_0x3be75c){for(const _0x20292f of this['_markers']['values']()){const _0xa769b0=_0x20292f['getTransformedByOperation'](_0x3be75c),_0x4c53a=vt['_createFromRanges'](_0xa769b0);_0x20292f['start']=_0x4c53a['start'],_0x20292f['end']=_0x4c53a['end'];}}['_handleOperation'](_0x1dc568,_0x4d48bf){if('addRoot'!=_0x1dc568['type']&&'detachRoot'!=_0x1dc568['type']){if('insert'==_0x1dc568['type']){const _0x23dc9f=_0x1dc568['position']['root']['rootName'];this['_diffRoots']['has'](_0x23dc9f)||(this['_diffRoots']['set'](_0x23dc9f,F(_0x23dc9f,!0x0)),this['_diffRootsAttributes']['set'](_0x23dc9f,{}),_0x4d48bf&&this['_idsRoots']['set'](_0x23dc9f,F(_0x23dc9f,!0x0)));}else{if('addRootAttribute'==_0x1dc568['type']||'removeRootAttribute'==_0x1dc568['type']||'changeRootAttribute'==_0x1dc568['type'])return void this['_handleRootAttributeOperation'](_0x1dc568);'marker'==_0x1dc568['type']&&this['_handleMarkerOperation'](_0x1dc568);}if('marker'!==_0x1dc568['type']){const _0x4f063f=this['_cloneOperation'](_0x1dc568,this['_diffRoots']);_0x4f063f['_execute'](),this['_transformMarkers'](_0x4f063f);}if(_0x4d48bf)switch(_0x1dc568['type']){case'insert':this['_handleInsertOperation'](_0x1dc568);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1dc568);break;case'merge':this['_handleMergeOperation'](_0x1dc568);break;case'split':this['_handleSplitOperation'](_0x1dc568);}}else this['_handleRootOperation'](_0x1dc568,_0x4d48bf);}['_cloneOperation'](_0xe48bc7,_0x1a69a2){const _0x3adad4=_0xe48bc7['clone']();return _0x3adad4['_authorId']=_0xe48bc7['_authorId'],this['_fixOperation'](_0x3adad4,_0x1a69a2),_0x3adad4;}['_getBaseVids'](_0x24bba0){return _0x24bba0['map'](_0x2397f1=>{const _0x30044d=this['_getVidAttributeName'](_0x2397f1);return Number(_0x2397f1['item']['getAttribute'](_0x30044d));});}['_generateTape'](_0xad1002,_0x13a874){if(_0xad1002['is']('element','$text'))_0x13a874['push']({'item':_0xad1002,'type':'text'});else{_0xad1002['is']('element')&&_0x13a874['push']({'item':_0xad1002,'type':'elementStart'});for(const _0x4a37aa of _0xad1002['getChildren']())this['_generateTape'](_0x4a37aa,_0x13a874);_0xad1002['is']('element')&&_0x13a874['push']({'item':_0xad1002,'type':'elementEnd'});}return _0x13a874;}['_getState'](){const _0x53c528=new Map(this['_touched']),_0x1a00f3=new Map(_0x53c528),_0x4e3ef2=new Map(),_0xcd3d7f={'insertions':{},'deletions':{}},_0x52f361={'insertions':{},'deletions':{}},_0x9ef0d0=new Map(),_0xcd7d29=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xcd7d29['delete']('$graveyard');for(const _0x138122 of _0xcd7d29){const _0x50aa86=this['_diffRoots']['get'](_0x138122)||F(_0x138122,!0x1),_0x10d554=this['_baseRoots']['get'](_0x138122)||F(_0x138122,!0x1);_0x50aa86['isAttached']()||_0x10d554['isAttached']()?(_0xcd3d7f['insertions'][_0x138122]=T(_0x50aa86),_0xcd3d7f['deletions'][_0x138122]=T(_0x10d554),this['_copyMarkers'](_0xcd3d7f['deletions'][_0x138122],_0x10d554),this['_copyMarkers'](_0xcd3d7f['insertions'][_0x138122],_0x50aa86),_0x52f361['insertions'][_0x138122]=this['_generateTape'](this['_idsRoots']['get'](_0x138122),[]),_0x52f361['deletions'][_0x138122]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x138122)||F(_0x138122,!0x1),[])):_0xcd7d29['delete'](_0x138122);}for(const _0x38500b of _0xcd7d29){const _0x48223c=_0x52f361['insertions'][_0x38500b];for(const _0xa0733c of _0x48223c){const _0x4c835a=this['_getVidAttributeName'](_0xa0733c),_0x5d2c8f=_0xa0733c['item']['getAttribute'](_0x4c835a);_0x1a00f3['delete'](_0x5d2c8f),_0x5d2c8f>=this['_startingRevisionId']&&_0x4e3ef2['set'](_0x5d2c8f,_0x53c528['get'](_0x5d2c8f));}}for(const _0x3d113c of _0xcd7d29){const _0x4cedbb=_0x52f361['insertions'][_0x3d113c],_0x2b745b=this['_getBaseVids'](_0x52f361['deletions'][_0x3d113c]);let _0x1700b3=0x0;for(const _0x8080cd of _0x4cedbb){const _0xb5b2=this['_getVidAttributeName'](_0x8080cd),_0x1ca1b7=_0x8080cd['item']['getAttribute'](_0xb5b2);if(!_0x4e3ef2['has'](_0x1ca1b7)&&!_0x9ef0d0['has'](_0x1ca1b7)){if(_0x1a00f3['has'](_0x1ca1b7))_0x1700b3++;else{if(_0x1ca1b7!=_0x2b745b[_0x1700b3]){const _0x503765=_0x53c528['get'](_0x1ca1b7)||_0x53c528['get'](_0x2b745b[_0x1700b3]);for(;_0x1ca1b7!=_0x2b745b[_0x1700b3];)_0x1a00f3['has'](_0x2b745b[_0x1700b3])||(_0x9ef0d0['set'](_0x2b745b[_0x1700b3],_0x503765),_0x53c528['set'](_0x2b745b[_0x1700b3],_0x503765)),_0x1700b3++;}_0x1700b3++;}}}}for(const _0x150dfc of _0xcd7d29){const _0x5127d6=_0x52f361['insertions'][_0x150dfc];for(const _0x200be0 of _0x5127d6){const _0x19f71c=this['_getVidAttributeName'](_0x200be0),_0x4572ec=_0x200be0['item']['getAttribute'](_0x19f71c);if(_0x9ef0d0['has'](_0x4572ec)){const _0x1f64d8=_0x9ef0d0['get'](_0x4572ec);_0x1a00f3['has'](_0x4572ec)||_0x1a00f3['set'](_0x4572ec,{..._0x1f64d8}),_0x4e3ef2['set'](_0x4572ec,{..._0x1f64d8});}}}for(const _0x18773a of _0x1a00f3['keys']())_0x18773a>=this['_startingRevisionId']&&_0x1a00f3['delete'](_0x18773a);const _0x35b611=new Map();for(const _0x3d016a of _0xcd7d29){let _0x37bdb7=_0x52f361['insertions'][_0x3d016a];for(const _0xbbe88c of _0x37bdb7)if(_0xbbe88c['item']['is']('element','tableCell')){const _0x161828=this['_getVidAttributeName'](_0xbbe88c),_0x22ae5b=_0xbbe88c['item']['getAttribute'](_0x161828);if(_0x4e3ef2['has'](_0x22ae5b)){const _0x949d68=_0xbbe88c['item']['parent']['parent']['getAttribute']('vid_start'),_0x1fce52=_0x35b611['get'](_0x949d68)||new Set();_0x1fce52['add'](_0x4e3ef2['get'](_0x22ae5b)['userId']),_0x35b611['set'](_0x949d68,_0x1fce52);}}_0x37bdb7=_0x52f361['deletions'][_0x3d016a];for(const _0x6424d1 of _0x37bdb7)if(_0x6424d1['item']['is']('element','tableCell')){const _0x1b29df=this['_getVidAttributeName'](_0x6424d1),_0x5b897f=_0x6424d1['item']['getAttribute'](_0x1b29df);if(_0x1a00f3['has'](_0x5b897f)){const _0x3f7777=_0x6424d1['item']['parent']['parent']['getAttribute']('vid_start'),_0x1bc038=_0x35b611['get'](_0x3f7777)||new Set();_0x1bc038['add'](_0x1a00f3['get'](_0x5b897f)['userId']),_0x35b611['set'](_0x3f7777,_0x1bc038);}}for(const _0x455735 of _0x35b611['keys']())(_0x4e3ef2['has'](_0x455735)||_0x1a00f3['has'](_0x455735))&&_0x35b611['delete'](_0x455735);}for(const _0x29815d of _0xcd7d29){const _0xa68fea=_0x52f361['insertions'][_0x29815d];let _0x1f82c0=null,_0x5922d0=null;for(const _0x469979 of _0xa68fea){const _0x30e3b5=this['_getVidAttributeName'](_0x469979),_0x51290a=_0x469979['item']['getAttribute'](_0x30e3b5),_0x5ec2ab=_0x35b611['get'](_0x51290a);_0x5ec2ab&&'elementStart'==_0x469979['type']&&(_0x1f82c0=Array['from'](_0x5ec2ab)[0x0],_0x5922d0=_0x469979['item']['getAttribute']('vid_end')),_0x1f82c0&&(_0x1a00f3['set'](_0x51290a,{'userId':_0x1f82c0}),_0x4e3ef2['set'](_0x51290a,{'userId':_0x1f82c0})),_0x51290a==_0x5922d0&&(_0x1f82c0=null,_0x5922d0=null);}}const _0x5634e9={},_0x44161d=new Set();for(const _0x350777 of _0xcd7d29){const _0x839fe0=_0xcd3d7f['deletions'][_0x350777],_0x4f5634=_0xcd3d7f['insertions'][_0x350777];for(const {userId:_0x451265}of this['_touchedMarkers']['values']())null!==_0x451265&&_0x44161d['add'](_0x451265);for(const {userId:_0x3daf31}of this['_touchedRoots']['values']())null!==_0x3daf31&&_0x44161d['add'](_0x3daf31);this['_markChanges'](_0x4f5634,_0x52f361['insertions'][_0x350777],_0x4e3ef2,'insertion',_0x44161d),this['_markChanges'](_0x839fe0,_0x52f361['deletions'][_0x350777],_0x1a00f3,'deletion',_0x44161d),_0x5634e9[_0x350777]={'insertions':this['_prepareViewToSave'](_0x4f5634),'deletions':this['_prepareViewToSave'](_0x839fe0),'attachChange':this['_touchedRoots']['get'](_0x350777)||null,'attributesBefore':_0x402cfd(this['_baseRootsAttributes']['get'](_0x350777))||{},'attributesAfter':_0x402cfd(this['_diffRootsAttributes']['get'](_0x350777))};}return{'diffData':_0x5634e9,'authorsIds':Array['from'](_0x44161d)};}['_processRootBeforeSave'](_0x265fc0){for(const [,_0x5054db]of _0x265fc0['markers']){const _0x53207d=_0x5054db['start']['getAncestors']()['filter'](_0x3d271c=>'tableCell'==_0x3d271c['name']);for(const _0x298d09 of _0x53207d)0x1==_0x298d09['childCount']&&_0x298d09['getChild'](0x0)['is']('element','paragraph')&&_0x298d09['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2abcf7){this['_processRootBeforeSave'](_0x2abcf7);const _0xd094ad=this['editor']['data']['toView'](_0x2abcf7,{}),_0x5f36b5=Array['from'](_0xd094ad['getChildren']())['map'](_0x5c8e1=>this['_getViewJson'](_0x5c8e1));return JSON['stringify'](_0x5f36b5);}['_getViewJson'](_0x379d95){if(_0x379d95['is']('$text'))return _0x379d95['data'];{const _0x26c006=_0x379d95;return{'type':Object['keys'](P)['find'](_0x1663d0=>_0x379d95 instanceof P[_0x1663d0]),'name':_0x26c006['name'],'attributes':Array['from'](_0x26c006['getAttributes']()),'children':Array['from'](_0x26c006['getChildren']())['map'](_0x25f919=>this['_getViewJson'](_0x25f919))};}}['_markChanges'](_0x1d5ebf,_0x564108,_0x3e6e29,_0x1713a9,_0x4fc3b2){let _0x5ba2cf=null,_0x37267e=null,_0x7cdedc=0x0;const _0x27e78c=this['editor']['model'];for(let _0x22c458=0x0;_0x22c458<_0x564108['length'];_0x22c458++){const _0x296780=this['_getVidAttributeName'](_0x564108[_0x22c458]),_0x274d34=_0x564108[_0x22c458]['item']['getAttribute'](_0x296780),_0x5503e4=_0x3e6e29['get'](_0x274d34),_0xd79f3a=_0x22c458==_0x564108['length']-0x1;(!_0x5ba2cf&&_0x5503e4&&(_0x5ba2cf=_0x5503e4,_0x37267e=_0x564108[_0x22c458]),_0x5ba2cf&&(!_0x5503e4||_0x5503e4['userId']!=_0x5ba2cf['userId']))&&(_0x425eb8(_0x5503e4,B(_0x37267e,_0x1d5ebf,_0x27e78c),B(_0x564108[_0x22c458],_0x1d5ebf,_0x27e78c)),_0x5ba2cf=_0x5503e4||null,_0x37267e=_0x5503e4?_0x564108[_0x22c458]:null),_0x5ba2cf&&_0xd79f3a&&_0x425eb8(_0x5503e4,B(_0x37267e,_0x1d5ebf,_0x27e78c),J(_0x564108[_0x22c458],_0x1d5ebf,_0x27e78c));}function _0x425eb8(_0x804110,_0xd29f97,_0x5393a2){const _0x1f6440=_0x5ba2cf['userId'],_0x1abd58='revision:'+_0x1713a9+':'+_0x1f6440+':'+_0x7cdedc++,_0x1c4f1b=_0x27e78c['createRange'](_0xd29f97,_0x5393a2);_0x1d5ebf['markers']['set'](_0x1abd58,_0x1c4f1b),null!==_0x1f6440&&_0x4fc3b2['add'](_0x1f6440);}}['_getVidAttributeName'](_0x8ee66d){switch(_0x8ee66d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5a8838,_0x4fdae9){_0x5a8838['baseVersion']=null;for(const _0xe4ed4 in _0x5a8838){const _0x36d973=_0x5a8838[_0xe4ed4];if(_0x36d973 instanceof gt){const _0x3f4d3d=_0x4fdae9['get'](_0x36d973['root']['rootName']);_0x5a8838[_0xe4ed4]=this['_fixPosition'](_0x36d973,_0x3f4d3d);}if(_0x36d973 instanceof vt){const _0x33a2b7=_0x4fdae9['get'](_0x36d973['root']['rootName']);_0x5a8838[_0xe4ed4]=this['_fixRange'](_0x36d973,_0x33a2b7);}'root'===_0xe4ed4&&(_0x5a8838['root']=_0x4fdae9['get'](_0x5a8838['root']['rootName']));}}['_fixRange'](_0x4ef0ba,_0x243315){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4ef0ba['start'],_0x243315),this['_fixPosition'](_0x4ef0ba['end'],_0x243315));}['_fixPosition'](_0x30a527,_0x5d8b99){return this['editor']['model']['createPositionFromPath'](_0x5d8b99,_0x30a527['path'],_0x30a527['stickiness']);}['_handleInsertOperation'](_0x188e07){const _0x2a2b75=this['_idsRoots']['get'](_0x188e07['position']['root']['rootName']),_0x169a13=this['_fixPosition'](_0x188e07['position'],_0x2a2b75),_0x183ce6=null===_0x188e07['_authorId']?null:_0x188e07['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xdbae80=_0x169a13['parent'],_0xa6273=this['_revisionId'],_0x1ea04a=[];for(const _0x10f738 of _0x188e07['nodes'])if(_0x10f738['is']('element'))_0x1ea04a['push'](this['_makeIdsRoot'](_0x10f738));else{for(let _0x28319b=0x0;_0x28319b<_0x10f738['offsetSize'];_0x28319b++)_0x1ea04a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x295648=this['_revisionId'];for(let _0x2bf618=_0xa6273;_0x2bf618<_0x295648;_0x2bf618++)this['_touched']['set'](_0x2bf618,{'userId':_0x183ce6});_0xdbae80['_insertChild'](_0x169a13['offset'],_0x1ea04a);}['_handleMoveOperation'](_0x3a80ad){(_0x3a80ad=this['_cloneOperation'](_0x3a80ad,this['_idsRoots']))['_execute']();const _0x32db39=null===_0x3a80ad['_authorId']?null:_0x3a80ad['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2484b4=_0x3a80ad['getMovedRangeStart'](),_0x42abda=_0x2484b4['parent'],_0xe1c0b=_0x2484b4['offset'];!function _0x5b0dc5(_0x593bc,_0x4ae25a,_0x5b3af8,_0x3ee295){for(let _0x22745c=_0x5b3af8;_0x22745c<_0x3ee295;_0x22745c++){const _0x4b90e9=_0x4ae25a['getChild'](_0x22745c);_0x4b90e9['is']('element','$text')?_0x593bc['set'](_0x4b90e9['getAttribute']('vid'),{'userId':_0x32db39}):(_0x593bc['set'](_0x4b90e9['getAttribute']('vid_start'),{'userId':_0x32db39}),_0x5b0dc5(_0x593bc,_0x4b90e9,0x0,_0x4b90e9['childCount']),_0x593bc['set'](_0x4b90e9['getAttribute']('vid_end'),{'userId':_0x32db39}));}}(this['_touched'],_0x42abda,_0xe1c0b,_0xe1c0b+_0x3a80ad['howMany']);}['_handleMergeOperation'](_0x27a2a0){const _0x49eb0e=null===(_0x27a2a0=this['_cloneOperation'](_0x27a2a0,this['_idsRoots']))['_authorId']?null:_0x27a2a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f5842=_0x27a2a0['targetPosition']['parent'],_0x2d727f=_0x27a2a0['sourcePosition']['parent'],_0x4afa2b=_0x1f5842['getAttribute']('vid_end'),_0xe9c072=_0x2d727f['getAttribute']('vid_start');_0x1f5842['_setAttribute']('vid_end',_0x2d727f['getAttribute']('vid_end')),_0x2d727f['_setAttribute']('vid_end',_0x4afa2b),this['_touched']['set'](_0xe9c072,{'userId':_0x49eb0e}),this['_touched']['set'](_0x4afa2b,{'userId':_0x49eb0e}),_0x27a2a0['_execute']();}['_handleSplitOperation'](_0x312994){const _0x389240=null===(_0x312994=this['_cloneOperation'](_0x312994,this['_idsRoots']))['_authorId']?null:_0x312994['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52844c=_0x312994['graveyardPosition'],_0xa2c13f=_0x312994['splitPosition']['parent'];_0x312994['_execute']();const _0x2206c0=_0xa2c13f['getAttribute']('vid_end'),_0x1c4489=_0x312994['insertionPosition']['nodeAfter'];if(_0x52844c){const _0x4acdf3=_0x1c4489['getAttribute']('vid_end'),_0x42f5cb=_0xa2c13f['getAttribute']('vid_end');_0xa2c13f['_setAttribute']('vid_end',_0x4acdf3),_0x1c4489['_setAttribute']('vid_end',_0x42f5cb),this['_touched']['set'](_0xa2c13f['getAttribute']('vid_end'),{'userId':_0x389240}),this['_touched']['set'](_0x1c4489['getAttribute']('vid_start'),{'userId':_0x389240});}else{const _0x58d6af=this['_revisionId']++,_0x127557=this['_revisionId']++;_0xa2c13f['_setAttribute']('vid_end',_0x58d6af),_0x1c4489['_setAttribute']('vid_start',_0x127557),_0x1c4489['_setAttribute']('vid_end',_0x2206c0),this['_touched']['set'](_0x58d6af,{'userId':_0x389240}),this['_touched']['set'](_0x127557,{'userId':_0x389240});}}['_handleMarkerOperation'](_0x2de7cf){if(!_0x2de7cf['affectsData'])return;const _0x270056=(_0x2de7cf=this['_cloneOperation'](_0x2de7cf,this['_diffRoots']))['oldRange']?_0x2de7cf['oldRange']['root']:null,_0x154bcd=_0x2de7cf['newRange']?_0x2de7cf['newRange']['root']:null;_0x270056&&this['_markers']['delete'](_0x2de7cf['name']),_0x154bcd&&this['_markers']['set'](_0x2de7cf['name'],_0x2de7cf['newRange']['clone']());const _0x2455de=null===_0x2de7cf['_authorId']?null:_0x2de7cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55e95a=_0x2de7cf['name'];if(!this['_touchedMarkers']['has'](_0x55e95a))return void this['_touchedMarkers']['set'](_0x55e95a,{'range':_0x2de7cf['oldRange'],'userId':_0x2455de});const _0x5b91b5=this['_touchedMarkers']['get'](_0x55e95a),_0x2b3e85=_0x5b91b5['range'],_0x5792f0=_0x2de7cf['newRange'];null==_0x2b3e85&&null==_0x5792f0||_0x2b3e85&&_0x5792f0&&_0x2b3e85['isEqual'](_0x5792f0)?this['_touchedMarkers']['delete'](_0x2de7cf['name']):_0x5b91b5['userId']=_0x2455de;}['_handleRootOperation'](_0x43322a,_0x40e23e){this['_diffRoots']['has'](_0x43322a['rootName'])?this['_diffRoots']['get'](_0x43322a['rootName'])['_isAttached']=_0x43322a['isAdd']:(this['_diffRoots']['set'](_0x43322a['rootName'],F(_0x43322a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x43322a['rootName'],{}),_0x40e23e&&this['_idsRoots']['set'](_0x43322a['rootName'],F(_0x43322a['rootName'],!0x0)));const _0x264a12=null===_0x43322a['_authorId']?null:_0x43322a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e5dc9=this['_touchedRoots']['get'](_0x43322a['rootName']);_0x5e5dc9&&_0x5e5dc9['userId']===_0x264a12?this['_touchedRoots']['delete'](_0x43322a['rootName']):this['_touchedRoots']['set'](_0x43322a['rootName'],{'userId':_0x264a12,'isAttached':_0x43322a['isAdd']});}['_handleRootAttributeOperation'](_0x11988b){const _0x24a434=this['_diffRootsAttributes']['get'](_0x11988b['root']['rootName']);null===_0x11988b['newValue']?delete _0x24a434[_0x11988b['key']]:_0x24a434[_0x11988b['key']]=_0x11988b['newValue'];}}function T(_0x20daf0){const _0x4f053e=F(_0x20daf0['rootName'],_0x20daf0['isAttached']());for(const _0x1ac233 of _0x20daf0['getChildren']()){const _0x20a4db=_0x1ac233['_clone'](!0x0);_0x4f053e['_appendChild'](_0x20a4db);}return _0x4f053e;}function F(_0x361379,_0x329d29=!0x0){const _0x3230ca=new mt();return _0x3230ca['rootName']=_0x361379,_0x3230ca['_isAttached']=_0x329d29,_0x3230ca['isAttached']=()=>_0x3230ca['_isAttached'],_0x3230ca;}function B(_0x14d6ac,_0x2d967b,_0x211cc0){const _0x321468='elementEnd'==_0x14d6ac['type']?_0x211cc0['createPositionAt'](_0x14d6ac['item'],'end'):_0x211cc0['createPositionBefore'](_0x14d6ac['item']);return _0x211cc0['createPositionFromPath'](_0x2d967b,_0x321468['path'],_0x321468['stickiness']);}function J(_0x47d17e,_0x4a2ed9,_0x22b568){const _0x454273='elementStart'==_0x47d17e['type']?_0x22b568['createPositionAt'](_0x47d17e['item'],0x0):_0x22b568['createPositionAfter'](_0x47d17e['item']);return _0x22b568['createPositionFromPath'](_0x4a2ed9,_0x454273['path'],_0x454273['stickiness']);}class hs extends _0x472d28{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x33371b,_0x131f6c){super(_0x33371b),this['focusTracker']=new _0x509ae8(),this['keystrokes']=new _0x1ad405(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x131f6c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x189732({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2345e9=_0x285b5d=>_0x285b5d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2345e9),this['keystrokes']['set']('arrowleft',_0x2345e9),this['keystrokes']['set']('arrowup',_0x2345e9),this['keystrokes']['set']('arrowdown',_0x2345e9);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2fe769){this['revisionNameInputView']['fieldView']['element']['value']=_0x2fe769['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x19dd24){const _0x190caa=new nt(this['locale'],_0x5256ca),_0x2fb1c2=_0x190caa['fieldView'];_0x2fb1c2['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2e8ba3=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x19dd24&&(_0x2e8ba3+='\x20('+m(this['locale'],'optional')+')'),(_0x190caa['label']=_0x2e8ba3,_0x2fb1c2['on']('input',()=>{this['revisionNameInputValue']=_0x2fb1c2['element']['value']['trim']();}),_0x190caa);}}class u extends _0x3f9988{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x24910a=this['editor'],_0x31881b=_0x24910a['plugins']['get']('RevisionTracker');_0x24910a['ui']['componentFactory']['add']('revisionHistory',_0x2f39e0=>{const _0x153b8b=_0x5d3262(_0x2f39e0),_0x266d04=_0x153b8b['panelView']['children'],_0x53b92b=new _0x32fb44(_0x2f39e0),_0x91f015=new _0x315835(_0x2f39e0),_0x2ab000=new _0x41e0b7(_0x2f39e0),_0x591b2a=new _0x315835(_0x2f39e0),_0x2c9c4e=new _0x41e0b7(_0x2f39e0);return _0x153b8b['bind']('isEnabled')['to'](_0x31881b,'isReady',_0x31881b,'isEnabled',_0x24910a,'isReadOnly',(_0x3d4b92,_0x549105,_0xda4563)=>_0x3d4b92&&_0x549105&&!_0xda4563),_0x153b8b['buttonView']['set']({'icon':_0x24ec60['history'],'label':m(_0x2f39e0,'Revision\x20history'),'tooltip':!0x0}),_0x2ab000['set']({'label':m(_0x2f39e0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2ab000['bind']('isEnabled')['to'](_0x31881b,'isReady',_0x31881b,'isEnabled',_0x24910a,'isReadOnly',(_0x35be46,_0x33183a,_0x5a5eb8)=>_0x35be46&&_0x33183a&&!_0x5a5eb8),_0x2ab000['on']('execute',()=>this['_showDialog']()),_0x2c9c4e['set']({'label':m(_0x2f39e0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2c9c4e['bind']('isEnabled')['to'](_0x31881b,'isReady',_0x24910a,'isReadOnly',(_0x33f355,_0x3bdd00)=>_0x33f355&&!_0x3bdd00),_0x2c9c4e['on']('execute',()=>{_0x24910a['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x153b8b['isOpen']=!0x1,_0x24910a['editing']['view']['focus']();}),_0x91f015['children']['add'](_0x2ab000),_0x591b2a['children']['add'](_0x2c9c4e),_0x53b92b['role']='menu',_0x53b92b['items']['addMany']([_0x91f015,_0x591b2a]),_0x266d04['add'](_0x53b92b),_0x153b8b;}),_0x24910a['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x12163f=this['editor'],_0xe4ec10=_0x12163f['locale'],_0x3d8522=new _0x5a2e0b(_0xe4ec10),_0x32ec85=new _0x398387(_0xe4ec10);_0x3d8522['buttonView']['set']({'icon':_0x24ec60['history'],'label':m(_0xe4ec10,'Revision\x20history')});const _0x57a414=new _0x38bd01(_0xe4ec10,_0x3d8522),_0x45956f=new _0x30c1b2(_0xe4ec10);_0x45956f['set']({'label':m(_0xe4ec10,'Save\x20current\x20revision')}),_0x45956f['delegate']('execute')['to'](_0x3d8522),_0x45956f['on']('execute',()=>{this['_showDialog']();}),_0x57a414['children']['add'](_0x45956f),_0x32ec85['items']['add'](_0x57a414);const _0x121ecf=new _0x38bd01(_0xe4ec10,_0x3d8522),_0x4fb9e6=new _0x30c1b2(_0xe4ec10);return _0x4fb9e6['set']({'label':m(_0xe4ec10,'Open\x20revision\x20history')}),_0x4fb9e6['delegate']('execute')['to'](_0x3d8522),_0x4fb9e6['on']('execute',()=>{_0x12163f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x121ecf['children']['add'](_0x4fb9e6),_0x32ec85['items']['add'](_0x121ecf),_0x3d8522['panelView']['children']['add'](_0x32ec85),_0x3d8522;}['_showDialog'](){const _0x5cf065=this['editor'],_0x29e3ff=_0x5cf065['locale'],_0x4c3d85=_0x5cf065['plugins']['get']('Dialog'),_0x25d4e3=_0x5cf065['plugins']['get']('RevisionTracker');function _0x208c21(_0x105f45){_0x5cf065['config']['get']('revisionHistory.requireRevisionName')&&''===_0x105f45['revisionName']?_0x105f45['revisionNameInputView']['errorText']=m(_0x29e3ff,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5cf065['plugins']['get'](l)['saveRevision']({'name':_0x105f45['revisionName']}),_0x4c3d85['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x208c21(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4c3d85['show']({'id':'revisionSave','title':m(_0x29e3ff,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5cf065['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4c3d85['hide']()},{'label':m(_0x5cf065['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2f4eef){_0x2f4eef['bind']('isEnabled')['to'](_0x25d4e3,'isReady',_0x25d4e3,'isEnabled',_0x5cf065,'isReadOnly',(_0xa33fc3,_0x17effa,_0x9b6ec6)=>_0xa33fc3&&_0x17effa&&!_0x9b6ec6);},'onExecute':()=>_0x208c21(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x25c312=this['editor'],_0x221a57=_0x25c312['locale'];this['_saveRevisionFormView']=new hs(_0x221a57,_0x25c312['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x472d28{['changeId'];['_model'];constructor(_0x5621e3,_0xaf6eb2){super(_0x5621e3),this['_model']=_0xaf6eb2,this['changeId']=_0xaf6eb2['id'];const _0x4f6648=this['bindTemplate'],_0x391e90=m(_0x5621e3,_0xaf6eb2['data']['isSuggestion']?'Suggested\x20by':'add'==_0xaf6eb2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xaf6eb2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4f6648['to']('type',_0x1f4a43=>'ck-revision-change__'+_0x1f4a43)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x391e90}]},{'text':'\x20'+_0xaf6eb2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xca3c0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x41fa6a){super(),this['id']=_0x41fa6a['id']||_0x14fde0(),this['author']=_0x41fa6a['author'],this['type']=_0x41fa6a['type'],this['data']=_0x41fa6a['data']||{},this['rootName']=_0x41fa6a['rootName'],this['set']('createdAt',_0x41fa6a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x435b51,_0x506df7){this['newRevisionId']=_0x435b51,this['oldRevisionId']=_0x506df7,this['changes']=new _0x3c75d5();}['_setChanges'](_0x5ec269){for(const _0x7ff8c9 of _0x5ec269)this['changes']['add'](_0x7ff8c9);}}const Y={'c':_0x37fdec,'a':_0x1afc78,'e':_0x494f2d,'r':_0x3132b0,'u':_0x1f07d6};class d extends _0x3f9988{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4e5665,_0x674e75,j];}constructor(_0x232a2b){super(_0x232a2b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2388f6,_0x349ea2,_0x1c647f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x108002=>{for(const _0x531f67 of this['editor']['editing']['view']['document']['roots'])_0x1c647f?_0x108002['removeClass']('ck-editor__editable__overlay',_0x531f67):_0x108002['addClass']('ck-editor__editable__overlay',_0x531f67);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x443737=>null!==_0x443737),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2f30c8,_0x29584c,_0x34f99b)=>_0x2f30c8&&_0x34f99b?_0x29584c['changes']['getIndex'](_0x34f99b):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x13ead9,_0x2118e8)=>_0x13ead9?_0x2118e8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x674e75);}['init'](){const _0x517d25=this['editor'],_0x9f8189=new yt(_0x517d25,{'direction':'backward'}),_0x3c93b7=new yt(_0x517d25,{'direction':'forward'});(_0x517d25['commands']['add']('showPreviousChange',_0x9f8189),_0x517d25['commands']['add']('showNextChange',_0x3c93b7),_0x517d25['commands']['add']('restoreRevision',new _t(_0x517d25)),this['on']('change:numberOfChanges',()=>{_0x9f8189['refresh'](),_0x3c93b7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x517d25['enableReadOnlyMode']('revision-viewer'),_0x517d25['plugins']['has']('WidgetToolbarRepository'))&&_0x517d25['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2c73d7){await this['loadRevisionData'](_0x2c73d7);const _0x1ea8f5={};for(const _0x4aa5e9 in _0x2c73d7['diffData']){if(_0x2c73d7['diffData'][_0x4aa5e9]['attachChange']&&!_0x2c73d7['diffData'][_0x4aa5e9]['attachChange']['isAttached'])continue;const _0x5495e7=this['_removeRevisionMarkers'](JSON['parse'](_0x2c73d7['diffData'][_0x4aa5e9]['insertions'])),_0x1efdd8=this['editor']['editing']['view']['document'],_0x2239e1=new _0x46b162(_0x1efdd8,_0x5495e7['map'](_0x1dc6ca=>this['_getViewObj'](_0x1dc6ca)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1ea8f5[_0x4aa5e9]=this['editor']['data']['processor']['toData'](_0x2239e1),this['editor']['data']['processor']['useFillerType']('default');}return _0x1ea8f5;}async['getRevisionRootsAttributes'](_0x49363c){await this['loadRevisionData'](_0x49363c);const _0x4bd21d={};for(const _0x1e9d8c in _0x49363c['diffData'])_0x49363c['diffData'][_0x1e9d8c]['attachChange']&&!_0x49363c['diffData'][_0x1e9d8c]['attachChange']['isAttached']||(_0x4bd21d[_0x1e9d8c]=_0x49363c['diffData'][_0x1e9d8c]['attributesAfter']||{});return _0x4bd21d;}['_removeRevisionMarkers'](_0x94ccd){return(_0x94ccd=_0x94ccd['filter'](_0x5d6043=>!_0x5d6043['name']||'revision-start'!==_0x5d6043['name']&&'revision-end'!==_0x5d6043['name']))['forEach'](_0x2611ef=>{'string'!=typeof _0x2611ef&&(_0x2611ef['children']=this['_removeRevisionMarkers'](_0x2611ef['children']),_0x2611ef['attributes']=_0x2611ef['attributes']['filter'](_0x37185e=>!_0x37185e[0x0]['startsWith']('data-revision-')));}),_0x94ccd;}async['compare'](_0x2248e9,_0x34e648,_0x373665=!0x1){if(!this['isEnabled'])return;const _0x2ced34=this['diff'],_0x4d0c0f=this['repository'],_0x47fe46='string'==typeof _0x2248e9?_0x4d0c0f['getRevision'](_0x2248e9):_0x2248e9,_0x490bc7='string'==typeof _0x34e648?_0x4d0c0f['getRevision'](_0x34e648):_0x34e648,_0x118429=_0x47fe46['id'],_0x4f8c0d=_0x490bc7?_0x490bc7['id']:null;if(!_0x373665&&this['diff']&&this['diff']['newRevisionId']===_0x118429&&this['diff']['oldRevisionId']===_0x4f8c0d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x118429,_0x4f8c0d);const _0x1a8e31=this['_getRevisionsRange'](_0x47fe46,_0x490bc7,!0x0)['map'](_0x5b225a=>this['loadRevisionData'](_0x5b225a));return _0x1a8e31['push'](new Promise(_0x565e60=>{setTimeout(_0x565e60,0x14);})),Promise['all'](_0x1a8e31)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x398cb6=this['_getDiff'](_0x118429,_0x4f8c0d);for(const _0x1b30c3 of _0x398cb6['changes'])this['_changeIdToChange']['set'](_0x1b30c3['id'],_0x1b30c3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x11168c=>{for(const _0xe0aa2e of this['editor']['model']['document']['getRootNames']())_0x11168c['detachRoot'](_0xe0aa2e);for(const _0x492ab1 of Object['keys'](_0x398cb6['model'])){const _0x245846=_0x11168c['addRoot'](_0x492ab1);for(const _0xe93054 of Object['keys'](_0x398cb6['attributes'][_0x492ab1]))_0x11168c['setAttribute'](_0xe93054,_0x398cb6['attributes'][_0x492ab1][_0xe93054],_0x245846);_0x11168c['insert'](_0x398cb6['model'][_0x492ab1],_0x245846,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x398cb6['changes'])),this['isReady']=!0x0;})['catch'](_0x22db2a=>{console['error'](_0x22db2a),this['_cleanUp'](),_0x2ced34&&(this['diff']=_0x2ced34),this['isReady']=!0x0;});}['addRevisionData'](_0x44a4d4,_0x5bf2b8){const _0x49649d=this['repository']['createRevision'](_0x44a4d4);return _0x49649d['on']('_update',(_0xc5b0ca,_0x46b973,_0x2b44ac)=>_0x5bf2b8(_0x46b973,_0x2b44ac,_0x49649d)),this['repository']['addRevision'](_0x49649d),_0x49649d;}['loadRevisionData'](_0x431b6c){if(!_0x431b6c||_0x431b6c['diffData'])return Promise['resolve']();{const _0x2c9999=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2c9999,'revisionId':_0x431b6c['id']})['then'](_0x1fc10b=>{_0x431b6c['_update']({'diffData':_0x1fc10b['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3dbee3=>{for(const _0x51bdd9 of this['editor']['model']['document']['getRootNames']())_0x3dbee3['detachRoot'](_0x51bdd9);});}['_sortAndFilterDiffChanges'](_0x333138){const _0x3a4f32=[],_0x423001=new Map();for(const _0x2125b7 of this['editor']['model']['document']['getRootNames']()){const _0x10058a=this['editor']['editing']['view']['getDomRoot'](_0x2125b7);if(!_0x10058a)continue;const _0x150abd=_0x10058a['getClientRects']()['item'](0x0);_0x150abd&&(_0x3a4f32['push'](_0x2125b7),_0x423001['set'](_0x2125b7,_0x150abd));}return _0x3a4f32['sort']((_0x390dab,_0x792a33)=>{const _0x4386a7=_0x423001['get'](_0x390dab),_0x6e4edf=_0x423001['get'](_0x792a33);return _0x4386a7['y']-_0x6e4edf['y']||_0x4386a7['x']-_0x6e4edf['x'];}),(_0x333138=_0x333138['filter'](_0x25ef42=>_0x3a4f32['includes'](_0x25ef42['rootName'])))['sort']((_0x10f8e2,_0x2a0666)=>_0x3a4f32['indexOf'](_0x10f8e2['rootName'])-_0x3a4f32['indexOf'](_0x2a0666['rootName'])),_0x333138;}['_makeTape'](_0x33416f){const _0xb8f474=Array['from'](_0x33416f['markers'])['filter'](([_0x187fe7,_0x3b14d4])=>_0x187fe7['startsWith']('revision:')&&!_0x3b14d4['isCollapsed']),_0xfcb081=Array['from'](this['editor']['model']['createRangeIn'](_0x33416f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xb8f474['length'])for(const _0x21b462 of _0xfcb081){const [_0x20aad6,_0x4d5fdd]=_0xb8f474[0x0],[,_0x76789a,_0x17e083]=_0x20aad6['split'](':');if(_0x4d5fdd['end']['isEqual'](_0x21b462['nextPosition'])&&_0xb8f474['shift'](),(_0x21b462['previousPosition']['isEqual'](_0x4d5fdd['start'])||_0x21b462['previousPosition']['isAfter'](_0x4d5fdd['start']))&&('insertion'==_0x76789a?_0x21b462['isAdded']={'userId':_0x17e083}:'deletion'==_0x76789a&&(_0x21b462['isRemoved']={'userId':_0x17e083})),0x0==_0xb8f474['length'])break;}return _0xfcb081;}['_refreshStartEndIndex'](_0x47fc2e){const _0x329c4b=new Map();for(let _0x3305ba=0x0;_0x3305ba<_0x47fc2e['length'];_0x3305ba++)'text'===_0x47fc2e[_0x3305ba]['type']?(_0x47fc2e[_0x3305ba]['item']['startIndex']=_0x3305ba,_0x47fc2e[_0x3305ba]['item']['endIndex']=_0x3305ba):('elementStart'===_0x47fc2e[_0x3305ba]['type']?_0x47fc2e[_0x3305ba]['item']['startIndex']=_0x3305ba:'elementEnd'===_0x47fc2e[_0x3305ba]['type']&&(_0x47fc2e[_0x3305ba]['item']['endIndex']=_0x3305ba),_0x329c4b['set'](_0x47fc2e[_0x3305ba]['id'],_0x3305ba));for(const _0x49eaf0 of _0x329c4b['values']())'elementStart'===_0x47fc2e[_0x49eaf0]['type']?_0x47fc2e[_0x49eaf0]['item']['endIndex']=_0x329c4b['get'](_0x47fc2e[_0x49eaf0]['pairId']):'elementEnd'===_0x47fc2e[_0x49eaf0]['type']&&(_0x47fc2e[_0x49eaf0]['item']['startIndex']=_0x329c4b['get'](_0x47fc2e[_0x49eaf0]['pairId']));}['_processTape'](_0x40eab3){for(let _0x33bc1b=0x0;_0x33bc1b<_0x40eab3['length'];_0x33bc1b++){if('elementStart'===_0x40eab3[_0x33bc1b]['type'])_0x40eab3[_0x33bc1b]['item']['startIndex']=_0x33bc1b;else{if('elementEnd'===_0x40eab3[_0x33bc1b]['type']){_0x40eab3[_0x33bc1b]['item']['endIndex']=_0x33bc1b;const _0x244757=_0x40eab3[_0x33bc1b]['item']['startIndex'];_0x40eab3[_0x244757]['pairId']=_0x40eab3[_0x33bc1b]['id'],_0x40eab3[_0x33bc1b]['pairId']=_0x40eab3[_0x244757]['id'];}else _0x40eab3[_0x33bc1b]['item']['startIndex']=_0x33bc1b,_0x40eab3[_0x33bc1b]['item']['endIndex']=_0x33bc1b,_0x40eab3[_0x33bc1b]['pairId']=null;}_0x40eab3[_0x33bc1b]['markersStart']||(_0x40eab3[_0x33bc1b]['markersStart']=[],_0x40eab3[_0x33bc1b]['markersEnd']=[]);}}['_markInsertions'](_0x104bce,_0x4be6e2){const _0x378610=_0x104bce['filter'](_0x57ecb6=>!_0x57ecb6['isAdded']);for(let _0x3c3db1=0x0;_0x3c3db1<_0x4be6e2['length'];_0x3c3db1++)_0x4be6e2[_0x3c3db1]['isAdded']&&(_0x378610[_0x3c3db1]['isAdded']=_0x4be6e2[_0x3c3db1]['isAdded']);}['_makeModelFromViewString'](_0x3da61f){const _0x48ac5e=JSON['parse'](_0x3da61f),_0x138ad4=this['editor']['editing']['view']['document'],_0x110e0d=new _0x46b162(_0x138ad4,_0x48ac5e['map'](_0x5d4c17=>this['_getViewObj'](_0x5d4c17)));return this['editor']['data']['toModel'](_0x110e0d);}['_getViewObj'](_0x10c862){const _0x20c67c=this['editor']['editing']['view']['document'];if('string'==typeof _0x10c862)return new _0x297344(_0x20c67c,_0x10c862);{const _0x5cdb92=_0x10c862['children']['map'](_0x19979d=>this['_getViewObj'](_0x19979d));return new(Y[_0x10c862['type']]||_0x45205b)(_0x20c67c,_0x10c862['name'],_0x10c862['attributes'],_0x5cdb92);}}['_getDiff'](_0x277c48,_0x19a018=null){const _0x5527e7=this['repository']['getRevision'](_0x277c48),_0x19dcc8=_0x19a018?this['repository']['getRevision'](_0x19a018):null,_0x7de1d9=this['_getRevisionsRange'](_0x5527e7,_0x19dcc8),_0x572b0d=_0x7de1d9[_0x7de1d9['length']-0x1],_0x1d4f37=new Map(),_0x141b77={'model':{},'attributes':{},'changes':[]},_0x57abed=new Set(),_0x5c31de=new Map();for(let _0x6f948b=_0x7de1d9['length']-0x1;_0x6f948b>=0x0;_0x6f948b--){const _0x551002=_0x7de1d9[_0x6f948b];for(const _0x48828c of Object['keys'](_0x551002['diffData']))if(_0x551002['diffData'][_0x48828c]['attachChange']){const _0x5797d4=_0x551002['diffData'][_0x48828c]['attachChange'];_0x5797d4['isAttached']?(_0x57abed['add'](_0x48828c),_0x5c31de['has'](_0x48828c)&&_0x5c31de['get'](_0x48828c)['userId']==_0x5797d4['userId']?_0x5c31de['delete'](_0x48828c):_0x5c31de['set'](_0x48828c,_0x5797d4)):_0x5c31de['has'](_0x48828c)?(_0x57abed['delete'](_0x48828c),_0x5c31de['delete'](_0x48828c)):(_0x57abed['add'](_0x48828c),_0x5c31de['set'](_0x48828c,_0x5797d4));}else _0x57abed['add'](_0x48828c);}for(const _0x4958ab of _0x57abed){const _0x82ae9b=_0x5c31de['has'](_0x4958ab)&&!_0x5c31de['get'](_0x4958ab)['isAttached'];let _0x5d21ef=_0x82ae9b?_0x7de1d9['length']-0x1:0x0;const _0x467b09=_0x82ae9b?-0x1:0x1;for(;_0x7de1d9[_0x5d21ef];){const _0x2b18ae=_0x7de1d9[_0x5d21ef];if(_0x2b18ae['diffData'][_0x4958ab]){const _0x2c6801=_0x82ae9b?_0x2b18ae['diffData'][_0x4958ab]['attributesBefore']:_0x2b18ae['diffData'][_0x4958ab]['attributesAfter'];_0x141b77['attributes'][_0x4958ab]=_0x2c6801?_0x402cfd(_0x2c6801):{};break;}_0x5d21ef+=_0x467b09;}}for(const _0x8b0726 of _0x7de1d9){_0x8b0726['model']={};for(const _0x3a2db8 of _0x8b0726['authors'])_0x1d4f37['set'](_0x3a2db8['id'],_0x3a2db8);for(const _0xe1b3bc of _0x57abed){const _0x367347=_0x8b0726['diffData'][_0xe1b3bc]?_0x8b0726['diffData'][_0xe1b3bc]['insertions']:'[]',_0x5284d3=_0x8b0726['diffData'][_0xe1b3bc]?_0x8b0726['diffData'][_0xe1b3bc]['deletions']:'[]';_0x8b0726['model'][_0xe1b3bc]={'insertions':this['_makeModelFromViewString'](_0x367347),'deletions':this['_makeModelFromViewString'](_0x5284d3)};}}for(const _0x4b4330 of _0x57abed){let _0x118e39=null,_0x1c1bee=0x0;const _0x4cf180=new Map(Array['from'](_0x5527e7['model'][_0x4b4330]['insertions']['markers'])['filter'](([_0x24dd61])=>!_0x24dd61['startsWith']('revision:')));let _0x16644d=0x0;for(const _0x545eec of _0x7de1d9){const _0x236582=this['_makeTape'](_0x545eec['model'][_0x4b4330]['insertions']);_0x545eec==_0x5527e7?(_0x118e39=_0x236582,_0x1c1bee=_0x118e39['length'],_0x118e39['forEach'](_0x5ed6a5=>{_0x5ed6a5['id']=_0x16644d++;}),this['_processTape'](_0x118e39)):this['_markInsertions'](_0x118e39,_0x236582);const _0x4801ad=_0x118e39['filter'](_0x2c11ab=>!_0x2c11ab['isAdded'])['map'](_0x1ab00e=>_0x1ab00e['id']);let _0x159443=0x0;const _0x1892e2=this['_makeTape'](_0x545eec['model'][_0x4b4330]['deletions']);_0x1892e2['forEach'](_0x3e019d=>{_0x3e019d['isRemoved']?_0x3e019d['id']=_0x1c1bee++:_0x3e019d['id']=_0x4801ad[_0x159443++];}),this['_processTape'](_0x1892e2),this['_setDistance'](_0x118e39,'isAdded'),this['_setDistance'](_0x1892e2,'isRemoved'),_0x545eec==_0x5527e7&&this['_markMarkers'](_0x118e39,_0x4cf180),_0x118e39=this['_joinTapes'](_0x118e39,_0x1892e2),this['_refreshStartEndIndex'](_0x118e39),this['_setDistance'](_0x118e39,'isRemoved');}_0x118e39=_0x118e39['filter'](_0x45dfd2=>!(_0x45dfd2['isAdded']&&_0x45dfd2['isRemoved']));const _0x349a03=new Map(_0x572b0d['model'][_0x4b4330]['deletions']['markers']),_0x25744e=new Set(_0x4cf180['keys']());for(const _0x3b4bf4 of _0x349a03['keys']())_0x25744e['delete'](_0x3b4bf4);this['_markSuggestions'](_0x118e39,_0x25744e),this['_fixObsoleteTags'](_0x118e39),_0x118e39=this['_removeMissingPairs'](_0x118e39),_0x118e39=this['_markMismatchedRemovedTags'](_0x118e39),_0x118e39=this['_removeUnsupportedChanges'](_0x118e39);const {root:_0x51e274,changes:_0x57dae4}=this['_makeModelFromTape'](_0x118e39,_0x1d4f37,_0x4b4330);_0x141b77['model'][_0x4b4330]=_0x51e274;const _0x53eec6=_0x5c31de['get'](_0x4b4330);if(_0x53eec6){const _0x5892a5=_0x1d4f37['get'](_0x53eec6['userId']),_0x3e02f1=new r({'author':_0x5892a5,'type':_0x53eec6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b4330});_0x57dae4['unshift'](_0x3e02f1),_0x141b77['attributes'][_0x4b4330]['revisionHistoryAttachChange']=_0x3e02f1['id'];}_0x141b77['changes']=_0x141b77['changes']['concat'](_0x57dae4);}return _0x141b77;}['_markMarkers'](_0x243bcf,_0x5703fa){for(let _0x22a961=0x0;_0x22a961<_0x243bcf['length'];_0x22a961++)for(const [_0x2f227b,_0xcb9b63]of _0x5703fa)_0xcb9b63['start']['isEqual'](_0x243bcf[_0x22a961]['previousPosition'])&&_0x243bcf[_0x22a961]['markersStart']['push'](_0x2f227b),_0xcb9b63['end']['isEqual'](_0x243bcf[_0x22a961]['nextPosition'])&&_0x243bcf[_0x22a961]['markersEnd']['push'](_0x2f227b);}['_joinTapes'](_0x53b207,_0x2d5933){let _0x1ba169=[],_0x51f7d4=0x0,_0x412fda=0x0;for(;_0x51f7d4<_0x53b207['length']||_0x412fda<_0x2d5933['length'];){const _0xa2d069=_0x53b207[_0x51f7d4]||{},_0x2b69d2=_0x2d5933[_0x412fda]||{};if(_0xa2d069['id']==_0x2b69d2['id'])_0x51f7d4++,_0x412fda++,_0x1ba169['push'](_0xa2d069);else{if(_0x2b69d2['isRemoved']&&_0xa2d069['isAdded']){const {commonTape:_0xab048b,iEnd:_0x4dc80a,jEnd:_0x16db5f}=this['_threeWayMerge'](_0x53b207,_0x51f7d4,_0x2d5933,_0x412fda);_0x1ba169=_0x1ba169['concat'](_0xab048b),_0x51f7d4=_0x4dc80a,_0x412fda=_0x16db5f;}else _0x2b69d2['isRemoved']?(_0x412fda++,_0x1ba169['push'](_0x2b69d2)):(_0x51f7d4++,_0x1ba169['push'](_0xa2d069));}}return _0x1ba169;}['_markSuggestions'](_0x5a8dc5,_0x5b100b){const _0x47fa3d=[];for(let _0x3c554f=0x0;_0x3c554f<_0x5a8dc5['length'];_0x3c554f++){for(let _0x3634c5=0x0;_0x3634c5<_0x5a8dc5[_0x3c554f]['markersStart']['length'];_0x3634c5++){const _0x3c7e37=_0x5a8dc5[_0x3c554f]['markersStart'][_0x3634c5];if(!_0x5b100b['has'](_0x3c7e37))continue;const {group:_0xbb430,type:_0x320257,authorId:_0x4db513}=_0x582866(_0x3c7e37);'revision-suggestion'!=_0xbb430||'insertion'!=_0x320257&&'deletion'!=_0x320257||(_0x47fa3d['unshift']({'type':_0x320257,'name':_0x3c7e37,'userId':_0x4db513}),_0x5a8dc5[_0x3c554f]['markersStart']['splice'](_0x3634c5,0x1),_0x3634c5--);}_0x2788ff(_0x5a8dc5[_0x3c554f]);for(let _0x4c4953=0x0;_0x4c4953<_0x5a8dc5[_0x3c554f]['markersEnd']['length'];_0x4c4953++){const _0x1c789f=_0x5a8dc5[_0x3c554f]['markersEnd'][_0x4c4953];if(!_0x5b100b['has'](_0x1c789f))continue;const {group:_0x419dd1,type:_0x10e2b1}=_0x582866(_0x1c789f);if('revision-suggestion'!=_0x419dd1||'insertion'!=_0x10e2b1&&'deletion'!=_0x10e2b1)continue;_0x5a8dc5[_0x3c554f]['markersEnd']['splice'](_0x4c4953,0x1),_0x4c4953--;const _0x1e2a2a=_0x47fa3d['findIndex'](_0x3bd3c6=>_0x3bd3c6['name']==_0x1c789f);_0x1e2a2a>-0x1&&_0x47fa3d['splice'](_0x1e2a2a,0x1);}}function _0x582866(_0x4c6903){const _0x5bd958=_0x4c6903['split'](':');return{'group':_0x5bd958[0x0],'type':_0x5bd958[0x1],'subType':_0x5bd958['length']>=0x5?_0x5bd958[0x2]:null,'id':_0x5bd958['length']<0x5?_0x5bd958[0x2]:_0x5bd958[0x3],'authorId':_0x5bd958['length']<0x5?_0x5bd958[0x3]:_0x5bd958[0x4],'markerCount':0x6==_0x5bd958['length']?_0x5bd958[0x5]:null};}function _0x2788ff(_0xfdfafa){for(let _0x5b1c80=0x0;_0x5b1c80<_0x47fa3d['length'];_0x5b1c80++){if(_0xfdfafa['isAdded']&&'insertion'==_0x47fa3d[_0x5b1c80]['type'])return _0xfdfafa['isAddSuggestion']=_0x47fa3d[_0x5b1c80],void delete _0xfdfafa['isAdded'];if(!_0xfdfafa['isAdded']&&!_0xfdfafa['isRemoved']&&'deletion'==_0x47fa3d[_0x5b1c80]['type'])return void(_0xfdfafa['isRemoveSuggestion']=_0x47fa3d[_0x5b1c80]);}}}['_setDistance'](_0x14efe8,_0x37cf96){let _0x1ecd31=0x0,_0x30f04a=!0x1;const _0x541c71=new Map();for(const _0x1c3a4a of _0x14efe8)_0x1c3a4a[_0x37cf96]?_0x30f04a&&(_0x1ecd31++,_0x30f04a=!0x1):(_0x1ecd31++,_0x30f04a=!0x0),_0x541c71['set'](_0x1c3a4a['id'],_0x1ecd31);for(let _0x3c4068=0x0;_0x3c4068<_0x14efe8['length'];_0x3c4068++){if('isRemoved'==_0x37cf96&&_0x14efe8[_0x3c4068]['isAdded']||'isAdded'==_0x37cf96&&_0x14efe8[_0x3c4068]['isRemoved'])continue;if('text'==_0x14efe8[_0x3c4068]['type']){_0x14efe8[_0x3c4068]['distance']=0x0;continue;}const _0x4e2be8=_0x541c71['get'](_0x14efe8[_0x3c4068]['pairId']),_0x527d4f=_0x541c71['get'](_0x14efe8[_0x3c4068]['id']);_0x14efe8[_0x3c4068]['distance']=_0x4e2be8-_0x527d4f;}}['_getRevisionsRange'](_0x42dcc3,_0x1e26f9,_0x3cf6ef=!0x1){const _0x43ca65=[];let _0x337ce4=this['repository']['getIndex'](_0x42dcc3),_0x447dd3=this['repository']['getIndex'](_0x1e26f9);for(-0x1==_0x447dd3&&(_0x447dd3=this['repository']['_revisions']['length'],_0x3cf6ef=!0x1);_0x337ce4<_0x447dd3;)_0x43ca65['push'](this['repository']['getRevision'](_0x337ce4)),_0x337ce4++;return _0x3cf6ef&&_0x43ca65['push'](this['repository']['getRevision'](_0x337ce4)),_0x43ca65;}['_threeWayMerge'](_0x5b2191,_0x30f6bc,_0x294f86,_0x1333ea){const _0x4414f9=this['editor']['model']['schema'];let _0x4ad4f8=_0x30f6bc;for(;_0x5b2191[_0x4ad4f8]&&_0x5b2191[_0x4ad4f8]['isAdded'];)_0x4ad4f8++;let _0x365255=_0x1333ea;for(;_0x294f86[_0x365255]&&_0x294f86[_0x365255]['isRemoved'];)_0x365255++;_0x59f248(_0x5b2191,_0x30f6bc,_0x4ad4f8),_0x59f248(_0x294f86,_0x1333ea,_0x365255);const _0x1a79bb=_0x294f86['slice'](_0x1333ea,_0x365255)['concat'](_0x5b2191['slice'](_0x30f6bc,_0x4ad4f8));return _0x1a79bb['sort']((_0x58fa05,_0x4ae0a8)=>_0x58fa05['side']!=_0x4ae0a8['side']?_0x58fa05['side']-_0x4ae0a8['side']:_0x58fa05['level']!=_0x4ae0a8['level']?_0x58fa05['level']-_0x4ae0a8['level']:_0x58fa05['distance']!=_0x4ae0a8['distance']?_0x4ae0a8['distance']-_0x58fa05['distance']:!!_0x58fa05['isAdded']!=!!_0x4ae0a8['isAdded']?-0x1==_0x58fa05['side']||0x0==_0x58fa05['side']?_0x58fa05['isAdded']?-0x1:0x1:_0x58fa05['isAdded']?0x1:-0x1:_0x58fa05['index']-_0x4ae0a8['index']),{'commonTape':_0x1a79bb,'iEnd':_0x4ad4f8,'jEnd':_0x365255};function _0x59f248(_0x10c899,_0x23c333,_0x42d818){let _0x2f63d9=-0x1,_0x1596d7=Number['POSITIVE_INFINITY'],_0x5a9888=!0x0;for(let _0x79e756=_0x23c333;_0x79e756<_0x42d818;_0x79e756++)if(_0x4414f9['isInline'](_0x10c899[_0x79e756]['item'])||(_0x5a9888=!0x1),_0x10c899[_0x79e756]['item']['startIndex']<_0x23c333&&(_0x2f63d9=_0x79e756),_0x10c899[_0x79e756]['item']['endIndex']>=_0x42d818){_0x1596d7=_0x79e756;break;}_0x5a9888&&(_0x2f63d9=_0x42d818-0x1);for(let _0x6bc6e8=_0x23c333;_0x6bc6e8<_0x42d818;_0x6bc6e8++)_0x10c899[_0x6bc6e8]['side']=_0x6bc6e8<=_0x2f63d9?-0x1:_0x6bc6e8<_0x1596d7?0x0:0x1,_0x10c899[_0x6bc6e8]['index']=_0x6bc6e8;let _0x3d7baf=0x0;for(let _0x5a670b=_0x23c333;_0x5a670b<=_0x2f63d9;_0x5a670b++)0x0==_0x10c899[_0x5a670b]['distance']?_0x10c899[_0x5a670b]['level']=_0x3d7baf:(_0x3d7baf++,_0x10c899[_0x5a670b]['level']=_0x3d7baf,_0x3d7baf++);for(let _0x4c06e7=_0x23c333;_0x4c06e7<_0x42d818;_0x4c06e7++)0x0==_0x10c899[_0x4c06e7]['side']&&(_0x10c899[_0x4c06e7]['level']=_0x3d7baf);_0x3d7baf=0x0;for(let _0x3d8bde=_0x42d818-0x1;_0x3d8bde>=_0x1596d7;_0x3d8bde--)0x0==_0x10c899[_0x3d8bde]['distance']?_0x10c899[_0x3d8bde]['level']=_0x3d7baf:(_0x3d7baf--,_0x10c899[_0x3d8bde]['level']=_0x3d7baf,_0x3d7baf--);}}['_fixObsoleteTags'](_0x52307d){const _0x4a7bb8=new Map(),_0x487434=this['editor']['model']['schema'];for(let _0x2f75dc=0x1;_0x2f75dc<_0x52307d['length'];_0x2f75dc++){let _0x161c5f,_0x417d50,_0x5b4002;const _0x5b2e84=_0x52307d[_0x2f75dc],_0x5428c3=_0x52307d[_0x2f75dc-0x1];if('text'==_0x5b2e84['type'])continue;if(_0x5b2e84['type']!=_0x5428c3['type'])continue;if(!_0x487434['isBlock'](_0x5428c3['item'])||_0x487434['isLimit'](_0x5428c3['item']))continue;if(!_0x487434['isBlock'](_0x5b2e84['item'])||_0x487434['isLimit'](_0x5b2e84['item']))continue;if((_0x52307d[_0x2f75dc]['isAdded']||_0x52307d[_0x2f75dc]['isAddSuggestion'])&&_0x52307d[_0x2f75dc-0x1]['isRemoved'])_0x161c5f=_0x52307d[_0x2f75dc],_0x417d50=_0x52307d[_0x2f75dc-0x1],_0x5b4002=_0x2f75dc-0x1;else{if(!_0x52307d[_0x2f75dc]['isRemoved']||!_0x52307d[_0x2f75dc-0x1]['isAdded']&&!_0x52307d[_0x2f75dc-0x1]['isAddSuggestion'])continue;_0x161c5f=_0x52307d[_0x2f75dc-0x1],_0x417d50=_0x52307d[_0x2f75dc],_0x5b4002=_0x2f75dc;}const _0x4490ed=_0x161c5f['level']==_0x417d50['level'],_0x3848c1=Math['abs'](_0x161c5f['level'])<Math['abs'](_0x417d50['level'])&&0x0==_0x417d50['distance'];(_0x4490ed||_0x3848c1)&&(_0x4a7bb8['set'](_0x417d50['id'],_0x161c5f['id']),_0x52307d['splice'](_0x5b4002,0x1),_0x2f75dc--,_0x161c5f['isAdded']=!0x1);}for(let _0x3357bb=0x0;_0x3357bb<_0x52307d['length'];_0x3357bb++)_0x4a7bb8['has'](_0x52307d[_0x3357bb]['pairId'])&&(_0x52307d[_0x3357bb]['pairId']=_0x4a7bb8['get'](_0x52307d[_0x3357bb]['pairId']));}['_removeMissingPairs'](_0x4684a0){const _0x3daef5=new Set(_0x4684a0['map'](_0x1f9c1a=>_0x1f9c1a['id']));for(let _0xe3f220=0x0;_0xe3f220<_0x4684a0['length'];_0xe3f220++)_0x3daef5['has'](_0x4684a0[_0xe3f220]['pairId'])||0x0==_0x4684a0[_0xe3f220]['distance']||(_0x4684a0[_0xe3f220]['isIncorrect']=!0x0);return _0x4684a0['filter'](_0x1be62c=>!_0x1be62c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1b89f2){const _0x4475ad=new Set();for(let _0x239570=0x0;_0x239570<_0x1b89f2['length'];_0x239570++){if(_0x4475ad['has'](_0x1b89f2[_0x239570]['id'])&&_0x1b89f2[_0x239570]['isRemoved']&&(_0x1b89f2[_0x239570]['isIncorrect']=!0x0),_0x1b89f2[_0x239570]['isIncorrect'])continue;if(0x0==_0x1b89f2[_0x239570]['distance'])continue;if('elementStart'!=_0x1b89f2[_0x239570]['type'])continue;if(null==_0x1b89f2[_0x239570]['pairId'])continue;let _0xf664cb=_0x239570+0x1,_0x2af6a2=0x0;for(;_0x1b89f2[_0xf664cb]['id']!=_0x1b89f2[_0x239570]['pairId'];)'elementStart'==_0x1b89f2[_0xf664cb]['type']?_0x2af6a2++:'elementEnd'==_0x1b89f2[_0xf664cb]['type']&&_0x2af6a2--,_0xf664cb++;if(0x0!=_0x2af6a2){if(_0x1b89f2[_0x239570]['isRemoved'])_0x1b89f2[_0x239570]['isIncorrect']=!0x0;else{for(;_0xf664cb!=_0x239570;)_0x1b89f2[_0xf664cb]['isRemoved']&&0x0!=_0x1b89f2[_0xf664cb]['distance']&&(_0x1b89f2[_0xf664cb]['isIncorrect']=!0x0,_0x4475ad['add'](_0x1b89f2[_0xf664cb]['pairId'])),_0xf664cb--;}}}return _0x1b89f2['filter'](_0x23720e=>!_0x23720e['isIncorrect']);}['_removeUnsupportedChanges'](_0x13ed5f){const _0x31db7c=this['editor']['model']['schema'];for(let _0x4027f1=0x0;_0x4027f1<_0x13ed5f['length'];_0x4027f1++){if(!(_0x13ed5f[_0x4027f1]['isAdded']||_0x13ed5f[_0x4027f1]['isAddSuggestion']||_0x13ed5f[_0x4027f1]['isRemoved']||_0x13ed5f[_0x4027f1]['isRemoveSuggestion']))continue;if(0x0==_0x13ed5f[_0x4027f1]['distance'])continue;const _0x18db43=_0x13ed5f[_0x4027f1]['item'];_0x31db7c['isBlock'](_0x18db43)||_0x31db7c['isLimit'](_0x18db43)||(_0x13ed5f[_0x4027f1]['isAdded']&&delete _0x13ed5f[_0x4027f1]['isAdded'],_0x13ed5f[_0x4027f1]['isAddSuggestion']&&delete _0x13ed5f[_0x4027f1]['isAddSuggestion'],_0x13ed5f[_0x4027f1]['isRemoveSuggestion']&&delete _0x13ed5f[_0x4027f1]['isRemoveSuggestion'],_0x13ed5f[_0x4027f1]['isRemoved']&&(_0x13ed5f[_0x4027f1]['isIncorrect']=!0x0));}return _0x13ed5f['filter'](_0xcee696=>!_0xcee696['isIncorrect']);}['_makeModelFromTape'](_0x2baabb,_0x4cd01f,_0x146b57){const _0x278e15=new mt(),_0x5e9f84=[],_0x7eeba2=new Map(),_0x4e8f56=this['editor']['model'],_0x25984b=_0x4e8f56['schema'],_0x2a77f6=[_0x278e15],_0x27e21c={},_0x28e11f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4384dd=null;const _0x2245d7=[0x0];for(let _0x44d264=0x0;_0x44d264<_0x2baabb['length'];_0x44d264++)if('elementStart'===_0x2baabb[_0x44d264]['type']){_0x2baabb[_0x44d264]['previousPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7);const _0x4c8ae9=new ft(_0x2baabb[_0x44d264]['item']['name'],_0x2baabb[_0x44d264]['item']['getAttributes']());_0x2a77f6[0x0]['_appendChild'](_0x4c8ae9),_0x2245d7['push'](0x0),_0x2a77f6['unshift'](_0x4c8ae9),_0x2baabb[_0x44d264]['nextPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7);}else'elementEnd'===_0x2baabb[_0x44d264]['type']?(_0x2a77f6['shift'](),_0x2baabb[_0x44d264]['previousPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7),_0x2245d7['pop'](),_0x2245d7[_0x2245d7['length']-0x1]++,_0x2baabb[_0x44d264]['nextPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7)):(_0x2baabb[_0x44d264]['previousPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7),_0x4384dd?_0x4384dd['_data']+=_0x2baabb[_0x44d264]['item']['data']:_0x4384dd=new wt(_0x2baabb[_0x44d264]['item']['data'],_0x2baabb[_0x44d264]['item']['getAttributes']()),_0x2baabb[_0x44d264+0x1]&&'text'===_0x2baabb[_0x44d264+0x1]['type']&&_0x4af95d(_0x4384dd,_0x2baabb[_0x44d264+0x1]['item'])||(_0x2a77f6[0x0]['_appendChild'](_0x4384dd),_0x4384dd=null),_0x2245d7[_0x2245d7['length']-0x1]+=_0x2baabb[_0x44d264]['item']['offsetSize'],_0x2baabb[_0x44d264]['nextPosition']=_0x4e8f56['createPositionFromPath'](_0x278e15,_0x2245d7));for(let _0x390956=0x0;_0x390956<_0x2baabb['length'];_0x390956++){const _0x560c30=_0x2baabb[_0x390956]['previousPosition'],_0x5dbe95=_0x2baabb[_0x390956]['nextPosition'];for(const _0x5ad357 of _0x2baabb[_0x390956]['markersStart'])_0x7eeba2['set'](_0x5ad357,{'start':_0x560c30,'end':null});_0x1743d2('isRemoveSuggestion',_0x390956,_0x560c30,_0x5dbe95),_0x1743d2('isAddSuggestion',_0x390956,_0x560c30,_0x5dbe95),_0x1743d2('isRemoved',_0x390956,_0x560c30,_0x5dbe95),_0x1743d2('isAdded',_0x390956,_0x560c30,_0x5dbe95);for(const _0x23a420 of _0x2baabb[_0x390956]['markersEnd']){_0x7eeba2['get'](_0x23a420)['end']=_0x5dbe95;}}for(const [_0x17de01,_0x15dc29]of _0x7eeba2){const _0x3be541=this['editor']['model']['createRange'](_0x15dc29['start'],_0x15dc29['end']);_0x278e15['markers']['set'](_0x17de01,_0x3be541);}return _0x5e9f84['sort']((_0x6e4a0d,_0x59f9bc)=>{const _0x57e69d=_0x278e15['markers']['get']('revision:'+_0x6e4a0d['id']),_0x796392=_0x278e15['markers']['get']('revision:'+_0x59f9bc['id']);return _0x57e69d['start']['isBefore'](_0x796392['start'])?-0x1:_0x57e69d['start']['isAfter'](_0x796392['start'])?0x1:_0x57e69d['end']['isBefore'](_0x796392['end'])?-0x1:_0x57e69d['end']['isAfter'](_0x796392['end'])?0x1:'add'===_0x6e4a0d['type']?-0x1:0x1;}),{'root':_0x278e15,'changes':_0x5e9f84};function _0x1743d2(_0x45ba7d,_0x185219,_0x567461,_0x523531){const _0xee7372=!!_0x2baabb[_0x185219][_0x45ba7d],_0x134448=_0xee7372?_0x2baabb[_0x185219][_0x45ba7d]['userId']:null,_0x2f41b6=_0x185219===_0x2baabb['length']-0x1,_0x4fab14=_0x28e11f[_0x45ba7d][0x0],_0x511140=_0x25984b['isObject'](_0x2baabb[_0x185219]['item']);!_0x27e21c[_0x45ba7d]&&_0xee7372?_0x27e21c[_0x45ba7d]={'start':_0x567461,'tapeItem':_0x2baabb[_0x185219],'userId':_0x134448,'type':_0x45ba7d}:_0x27e21c[_0x45ba7d]&&!_0xee7372?(_0x27e21c[_0x45ba7d]['end']=_0x567461,_0x294248(_0x27e21c[_0x45ba7d]),_0x27e21c[_0x45ba7d]=null):_0x27e21c[_0x45ba7d]&&_0xee7372&&_0x27e21c[_0x45ba7d]['userId']!==_0x134448&&(_0x27e21c[_0x45ba7d]['end']=_0x567461,_0x4fab14&&_0x4fab14['userId']===_0x27e21c[_0x45ba7d]['userId']||_0x294248(_0x27e21c[_0x45ba7d]),_0x27e21c[_0x45ba7d]={'start':_0x567461,'tapeItem':_0x2baabb[_0x185219],'userId':_0x134448,'type':_0x45ba7d}),_0x27e21c[_0x45ba7d]&&_0x511140&&('elementStart'!==_0x2baabb[_0x185219]['type']||_0x4fab14&&_0x4fab14['userId']===_0x134448||_0x28e11f[_0x45ba7d]['unshift']({'userId':_0x134448,'object':_0x2baabb[_0x185219]['item'],'change':_0x27e21c[_0x45ba7d]}),'elementEnd'===_0x2baabb[_0x185219]['type']&&_0x4fab14&&_0x4fab14['object']===_0x2baabb[_0x185219]['item']&&(_0x28e11f[_0x45ba7d]['shift'](),_0x27e21c[_0x45ba7d]=_0x4fab14['change'])),_0x27e21c[_0x45ba7d]&&_0x2f41b6&&(_0x27e21c[_0x45ba7d]['end']=_0x523531,_0x294248(_0x27e21c[_0x45ba7d]),_0x27e21c[_0x45ba7d]=null);}function _0x294248({start:_0x15c4b6,end:_0xf1883c,tapeItem:_0x10626e,userId:_0x3af56d,type:_0x56e52c}){const _0x5b27fd=_0x10626e['item'],_0x27176a=_0x4e8f56['schema']['isBlock'](_0x5b27fd)&&!_0x4e8f56['schema']['isLimit'](_0x5b27fd),_0x5070ca=_0x15c4b6['nodeAfter']==_0xf1883c['parent']&&_0xf1883c['isAtStart'];if(_0x27176a&&_0x5070ca)return;const _0x347e86=_0x4e8f56['createRange'](_0x15c4b6,_0xf1883c),_0x8e7f5c=_0x4cd01f['get'](_0x3af56d),_0x13bf2d=new r({'author':_0x8e7f5c,'type':'isAdded'==_0x56e52c||'isAddSuggestion'==_0x56e52c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x56e52c||'isRemoveSuggestion'==_0x56e52c},'createdAt':new Date(),'rootName':_0x146b57});_0x5e9f84['push'](_0x13bf2d),_0x278e15['markers']['set']('revision:'+_0x13bf2d['id'],_0x347e86);}function _0x4af95d(_0x43badb,_0x2c8467){const _0x18d209=_0x43badb['getAttributes'](),_0xdc4adf=_0x2c8467['getAttributes']();for(const _0x2d84f6 of _0x18d209){if(_0x2d84f6[0x1]!==_0x2c8467['getAttribute'](_0x2d84f6[0x0]))return!0x1;_0xdc4adf['next']();}return _0xdc4adf['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x45a546=>{const _0x53cf04=_0x45a546['markerName']['split'](':')[0x1],_0x5453dd=this['_getChangeFromId'](_0x53cf04);if(!_0x5453dd)return null;const _0xf32c80='add'==_0x5453dd['type']?'insertion':'deletion',_0xab7eba=['ck-suggestion-marker','ck-suggestion-marker-'+_0xf32c80];return _0x5453dd['data']['isSuggestion']&&_0xab7eba['push']('ck-suggestion-marker-'+_0xf32c80+'-new'),this['activeChange']==_0x5453dd&&_0xab7eba['push']('ck-suggestion-marker--active'),{'classes':_0xab7eba,'attributes':{'data-change-id':_0x53cf04}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x6096d=>{_0x6096d['on']('element:pre',(_0x47eae3,_0x200bf8,_0x169cff)=>{const _0xe7509a=_0x200bf8['viewItem']['getChild'](0x0);if(!_0xe7509a||!_0xe7509a['is']('element','code'))return;if(!_0x169cff['consumable']['consume'](_0xe7509a,{'attributes':['vid_start','vid_end']}))return;const _0x51eafa=_0x200bf8['modelRange']['start']['nodeAfter'];_0x169cff['writer']['setAttribute']('vid_start',_0xe7509a['getAttribute']('vid_start'),_0x51eafa),_0x169cff['writer']['setAttribute']('vid_end',_0xe7509a['getAttribute']('vid_end'),_0x51eafa);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4b908d=>{_0x4b908d['on']('element',(_0x32e20f,_0x59d1a6,_0x225486)=>{if(!_0x225486['consumable']['consume'](_0x59d1a6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x59d1a6['modelRange']['isCollapsed'])return;const _0x976cfd=_0x59d1a6['modelRange']['start']['nodeAfter'];_0x976cfd['hasAttribute']('vid_start')||_0x976cfd['hasAttribute']('vid')||(_0x225486['writer']['setAttribute']('vid_start',_0x59d1a6['viewItem']['getAttribute']('vid_start'),_0x976cfd),_0x225486['writer']['setAttribute']('vid_end',_0x59d1a6['viewItem']['getAttribute']('vid_end'),_0x976cfd));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x48032e=>_0x48032e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3a03d4,[,_0x36ac66])=>{['vid_start','vid_end','vid']['includes'](_0x36ac66)&&(_0x3a03d4['return']=!0x0,_0x3a03d4['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x198477=>{_0x198477['on']('attribute:vid',(_0x4efbe7,_0x54195b,_0x5bb8f5)=>{if('\x20'!=_0x54195b['item']['data']||_0x54195b['item']['parent']['maxOffset']>0x1)return;if(!_0x5bb8f5['consumable']['consume'](_0x54195b['item'],_0x4efbe7['name']))return;const _0x1405e0=_0x5bb8f5['writer'],_0x4f3edb=_0x5bb8f5['mapper']['toViewRange'](_0x54195b['range']);_0x1405e0['wrap'](_0x4f3edb,_0x1405e0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x25ab4a){const _0x2a4a7d=_0x25ab4a['plugins']['get']('RevisionViewer');return(_0x85a679,_0x3ce8c8,_0x1089f9)=>{const _0x374804=_0x3ce8c8['markerName']['split'](':')[0x1],_0x209f83=_0x2a4a7d['_getChangeFromId'](_0x374804);if(!_0x209f83)return null;const _0x405593='add'==_0x209f83['type']?'split':'merge';if(!_0x1089f9['consumable']['test'](_0x3ce8c8['markerRange'],_0x85a679['name']))return;const _0x3ebc1e=_0x3ce8c8['markerRange']['getWalker'](),_0xcde775=_0x3ce8c8['markerRange']['start'],_0x733461=_0x25ab4a['model']['schema'];let _0x176c5c=null,_0x466e2f=null,_0x37248e=!0x1,_0x2a3e40=!0x1;for(const _0x48ee13 of _0x3ebc1e){const _0x300bd9=_0x48ee13['item'];_0x37248e=_0x37248e||_0x733461['isContent'](_0x300bd9);const _0x2276de=_0x1089f9['mapper']['toViewElement'](_0x300bd9);if(_0x2276de&&_0x2276de['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x48ee13['type']&&(_0x733461['isBlock'](_0x300bd9)&&!_0x733461['isLimit'](_0x300bd9)&&(_0x300bd9['nextSibling']||_0xcde775['isAtEnd']?_0x176c5c&&_0x176c5c['parent']==_0x300bd9||(_0x176c5c=_0x300bd9,_0x377d68(_0x48ee13['previousPosition']),_0x2a3e40=!0x0):_0x466e2f=_0x466e2f||_0x48ee13['previousPosition']));}function _0x377d68(_0x18d06d){const _0x309ff5=_0x1089f9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x405593}),_0x148fb4=_0x1089f9['mapper']['toViewPosition'](_0x18d06d);_0x209f83['data']['isSuggestion']&&_0x1089f9['writer']['addClass']('ck-suggestion-marker-'+_0x405593+'-new',_0x309ff5),_0x2a4a7d['activeChange']==_0x209f83&&_0x1089f9['writer']['addClass']('ck-suggestion-marker--active',_0x309ff5),_0x1089f9['writer']['insert'](_0x148fb4,_0x309ff5),_0x1089f9['mapper']['bindElementToMarker'](_0x309ff5,_0x3ce8c8['markerName']);}_0x37248e||_0x2a3e40||!_0x466e2f||_0x377d68(_0x466e2f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x252a95,_0x3b613b,_0x475052)=>{const _0x2b1a27=_0x475052['mapper']['markerNameToElements'](_0x3b613b['markerName']);if(_0x2b1a27){for(const _0x1bc902 of _0x2b1a27)(_0x1bc902['hasClass']('ck-suggestion-marker-split')||_0x1bc902['hasClass']('ck-suggestion-marker-merge'))&&(_0x475052['mapper']['unbindElementFromMarkerName'](_0x1bc902,_0x3b613b['markerName']),_0x475052['writer']['remove'](_0x1bc902));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5bff58,_0x3be3e6,_0x376b45)=>{const _0x29331e=_0x3be3e6['markerName']['split'](':')[0x1],_0x5616ac=this['_getChangeFromId'](_0x29331e);if(!_0x5616ac)return null;const _0x436e6c='add'==_0x5616ac['type']?'split':'merge';if(_0x376b45['consumable']['test'](_0x3be3e6['markerRange'],_0x5bff58['name']))for(const _0x2b14a1 of _0x3be3e6['markerRange']['getItems']()){if(!_0x2b14a1['is']('element','softBreak'))continue;const _0xd974be=_0x376b45['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x436e6c}),_0x28d50f=_0x376b45['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2b14a1));_0x5616ac['data']['isSuggestion']&&_0x376b45['writer']['addClass']('ck-suggestion-marker-'+_0x436e6c+'-new',_0xd974be),this['activeChange']==_0x5616ac&&_0x376b45['writer']['addClass']('ck-suggestion-marker--active',_0xd974be),_0x376b45['writer']['insert'](_0x28d50f,_0xd974be),_0x376b45['mapper']['bindElementToMarker'](_0xd974be,_0x3be3e6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x10769e=>{for(const _0x13d08a of this['editor']['model']['document']['getRootNames']()){const _0x3d518a=this['editor']['model']['document']['getRoot'](_0x13d08a),_0x3485dd=this['editor']['editing']['view']['document']['getRoot'](_0x13d08a);if(_0x3485dd){const _0x3d357f=_0x3d518a['getAttribute']('revisionHistoryAttachChange');if(_0x10769e['removeAttribute']('data-change-id',_0x3485dd),_0x10769e['removeClass']('ck-revision-history-root-add',_0x3485dd),_0x10769e['removeClass']('ck-revision-history-root-remove',_0x3485dd),_0x10769e['removeClass']('ck-revision-history-root--active',_0x3485dd),_0x3d357f){const _0x1c5bed=this['_getChangeFromId'](_0x3d357f);if(!_0x1c5bed)return null;_0x10769e['setAttribute']('data-change-id',_0x3d357f,_0x3485dd),_0x10769e['addClass']('ck-revision-history-root-'+_0x1c5bed['type'],_0x3485dd),this['activeChange']==_0x1c5bed&&_0x10769e['addClass']('ck-revision-history-root--active',_0x3485dd);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x49862c=>'revision-comment:'+_0x49862c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2be183=>'revision-suggestion:'+_0x2be183,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x112c8e=>({'name':'suggestion:'+_0x112c8e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4e976f=>{const _0x145999=_0x4e976f['markerName']['split'](':')[0x1];return'insertion'!=_0x145999&&'deletion'!=_0x145999?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x145999]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2d4f8e,_0x504f96,_0x165f01)=>{const _0x34d82a=_0x165f01['mapper']['markerNameToElements'](_0x504f96['markerName']);if(_0x34d82a){for(const _0x25ca2e of _0x34d82a)_0x25ca2e['is']('uiElement')&&(_0x165f01['mapper']['unbindElementFromMarkerName'](_0x25ca2e,_0x504f96['markerName']),_0x165f01['writer']['remove'](_0x25ca2e));}},{'priority':'high'});}['_getChangeFromId'](_0x5ebd08){return this['_changeIdToChange']['get'](_0x5ebd08);}['_getViewForChange'](_0x3f5e81){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3f5e81),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x196b08,_0x128e2e,_0x185b2e,_0x16a388)=>{_0x16a388&&this['_balloon']['remove'](_0x16a388),_0x185b2e&&(this['_balloon']['add']({'view':_0x185b2e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5c35dc=this['editor']['editing'],_0x3cc951=this['_getChangeFromId'](_0x185b2e['changeId']);let _0x2bc8c6;if(_0x3cc951['data']['isOnRoot']){const _0x2a90d1=_0x5c35dc['view']['getDomRoot'](_0x3cc951['rootName']);_0x2bc8c6=Array['from'](_0x2a90d1['getClientRects']());}else{const _0x5e6069=this['editor']['model']['markers']['get']('revision:'+_0x185b2e['changeId']);_0x2bc8c6=Array['from'](_0x5c35dc['mapper']['markerNameToElements'](_0x5e6069['name']))['map'](_0x535d91=>_0x5c35dc['view']['domConverter']['mapViewToDom'](_0x535d91))['map'](_0x4be924=>Array['from'](_0x4be924['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2bc8c6[0x0];return _0x2bc8c6['find'](_0xebb776=>_0xebb776['top']-0x3<=this['_activeViewTarget']['y']&&_0xebb776['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xebb776['left']-0x3<=this['_activeViewTarget']['x']&&_0xebb776['right']+0x3>=this['_activeViewTarget']['x'])||_0x2bc8c6[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x424827,_0x37a3cf,_0x7d695e,_0x122a9a)=>{this['activeView']=_0x7d695e?this['_getViewForChange'](_0x7d695e):null,this['editor']['model']['change'](()=>{const _0x5d7b4d=this['editor']['editing'];_0x122a9a&&(_0x122a9a['data']['isOnRoot']?_0x5d7b4d['view']['change'](_0x125b15=>{_0x125b15['removeClass']('ck-revision-history-root--active',_0x5d7b4d['view']['document']['getRoot'](_0x122a9a['rootName']));}):_0x5d7b4d['reconvertMarker']('revision:'+_0x122a9a['id'])),_0x7d695e&&(_0x7d695e['data']['isOnRoot']?_0x5d7b4d['view']['change'](_0x35ae34=>{_0x35ae34['addClass']('ck-revision-history-root--active',_0x5d7b4d['view']['document']['getRoot'](_0x7d695e['rootName']));}):_0x5d7b4d['reconvertMarker']('revision:'+_0x7d695e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4651b0,_0x124571)=>{if(this['activeChange'])return;const _0x3e6cbd=this['_findChangeIdFromDomTarget'](_0x124571['target']),_0x1f8c1e=this['_changeIdToChange']['get'](_0x3e6cbd);_0x1f8c1e?(this['_activeViewTarget']={'x':_0x124571['domEvent']['x'],'y':_0x124571['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1f8c1e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x484dd0,_0x16856c)=>{const _0x4bb729=this['_findChangeIdFromDomTarget'](_0x16856c['target']),_0x2b0044=this['_changeIdToChange']['get'](_0x4bb729);_0x2b0044?(this['_activeViewTarget']={'x':_0x16856c['domEvent']['x'],'y':_0x16856c['domEvent']['y']},_0x2b0044===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2b0044):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3c6d64){do{const _0x3f8853=_0x3c6d64['getAttribute']('data-change-id');if(_0x3f8853)return _0x3f8853;_0x3c6d64=_0x3c6d64['parent'];}while(_0x3c6d64);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5b731f=>{for(const _0xf92232 of this['editor']['model']['markers'])_0x5b731f['removeMarker'](_0xf92232);});}}function Z(_0x342fcd,_0x6bc946){return(_0x3caf33,_0x299004,_0x81fcce)=>{if(!_0x81fcce['consumable']['test'](_0x299004['markerRange'],_0x3caf33['name']))return;const _0x41e52e=_0x299004['markerRange']['getWalker'](),_0x3396e1=_0x299004['markerRange']['start'],_0x208e62=_0x342fcd['model']['schema'];let _0x463014=null,_0x150ab6=null,_0x16d58c=!0x1,_0x40000f=!0x1;for(const _0x5e8451 of _0x41e52e){const _0x140300=_0x5e8451['item'];_0x16d58c=_0x16d58c||_0x208e62['isContent'](_0x140300);const _0x4456ac=_0x81fcce['mapper']['toViewElement'](_0x140300);if(_0x4456ac&&_0x4456ac['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5e8451['type']&&(_0x208e62['isBlock'](_0x140300)&&!_0x208e62['isLimit'](_0x140300)&&(_0x140300['nextSibling']||_0x3396e1['isAtEnd']?_0x463014&&_0x463014['parent']==_0x140300||(_0x463014=_0x140300,_0x13236b(_0x5e8451['previousPosition']),_0x40000f=!0x0):_0x150ab6=_0x150ab6||_0x5e8451['previousPosition']));}function _0x13236b(_0x14bfae){const _0x44680d=_0x81fcce['mapper']['toViewPosition'](_0x14bfae),_0x48db45=_0x81fcce['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x6bc946});_0x81fcce['writer']['insert'](_0x44680d,_0x48db45),_0x81fcce['mapper']['bindElementToMarker'](_0x48db45,_0x299004['markerName']);}_0x16d58c||_0x40000f||!_0x150ab6||_0x13236b(_0x150ab6);};}class _t extends _0x1104bf{constructor(_0x16df02){super(_0x16df02);const _0x618a77=_0x16df02['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x618a77,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x618a77,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x245bb9=this['editor'],_0x15f1c3=_0x245bb9['plugins']['get'](d),_0x312d4c=_0x15f1c3['isReady']?_0x15f1c3['diff']['newRevisionId']:null;_0x245bb9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x312d4c);}['refresh'](){const {isReady:_0x178cd7,isEnabled:_0xfb0c56,repository:_0x3fe88c,diff:_0x338472}=this['editor']['plugins']['get'](d),_0x20d7d9=_0x338472&&_0x3fe88c['getLaterVisibleRevision'](_0x338472['newRevisionId']);this['isEnabled']=_0x178cd7&&_0xfb0c56&&Boolean(_0x20d7d9);}}class yt extends _0x1104bf{['_step'];constructor(_0x409e82,{direction:_0x3ee14e}){super(_0x409e82);const _0x25ed4d=_0x409e82['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3ee14e?0x1:-0x1,this['listenTo'](_0x25ed4d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25ed4d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x25ed4d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x29bf66=this['editor'],_0xe43344=_0x29bf66['plugins']['get'](d),{isNavigationMode:_0x32bd5c,currentChangeNumber:_0xf28c4}=_0xe43344;let _0x36cf13;if(_0xe43344['activeChange']=_0x32bd5c?_0xe43344['diff']['changes']['get'](_0xf28c4+this['_step']):_0xe43344['diff']['changes']['first'],_0xe43344['activeChange']['data']['isOnRoot'])_0x36cf13=_0x29bf66['editing']['view']['getDomRoot'](_0xe43344['activeChange']['rootName']);else{const _0x29af9d=_0x29bf66['model']['markers']['get']('revision:'+_0xe43344['activeChange']['id']);_0x36cf13=_0xffab5d(_0x29bf66['editing'],_0x29af9d);}_0x30b8fc({'target':_0x36cf13,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2d9891,currentChangeNumber:_0x182fc5,numberOfChanges:_0x8b7e3,isReady:_0x188ded,isEnabled:_0x18de4e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x18de4e&&_0x188ded&&_0x8b7e3)&&(!_0x2d9891||(0x1===this['_step']?_0x182fc5<_0x8b7e3-0x1:_0x182fc5>0x0));}}class bi extends _0x472d28{constructor(_0x13aff2){super(_0x13aff2);const _0x178841=this['bindTemplate'],_0x3ba011=new _0x41e0b7(_0x13aff2),_0x294877=new _0x41e0b7(_0x13aff2);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',(_0x2a05f8,_0x468e8c)=>_0x2a05f8&&_0x468e8c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xf171a3,_0x36fb48,_0x1a58b0,_0xfb9b27)=>{if(!_0xf171a3)return m(_0x13aff2,'Loading...');if(!_0x1a58b0)return m(_0x13aff2,'No\x20changes');const _0x544de6=m(_0x13aff2,'NUMBER_OF_CHANGES',_0x1a58b0);return _0xfb9b27?m(_0x13aff2,'X_OF_Y_CHANGES',[_0x36fb48+0x1,_0x1a58b0]):_0x544de6;}),_0x3ba011['set']({'label':m(_0x13aff2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x294877['set']({'label':m(_0x13aff2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3ba011['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x294877['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3ba011['on']('execute',()=>this['fire']('execute','backward')),_0x294877['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',_0x178841['if']('_isStatusLabelVisible','ck-hidden',_0x2f42b9=>!_0x2f42b9)]},'children':[{'text':_0x178841['to']('isNavigationMode',_0x46680a=>_0x46680a?m(_0x13aff2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x13aff2,'Total')+':\x20')}]},{'text':_0x178841['to']('_statusText')}]},new _0x4ec210(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3ba011,_0x294877]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x3f9988{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xe64b5d=this['editor']['editing']['view'];_0xe64b5d['change'](_0x1ff4ef=>{for(const _0x1706ad of _0xe64b5d['document']['roots'])_0x1ff4ef['addClass'](ie,_0x1706ad);});}['hide'](){const _0xc3d36d=this['editor']['editing']['view'];_0xc3d36d['change'](_0x548fe4=>{for(const _0x3c2a08 of _0xc3d36d['document']['roots'])_0x548fe4['removeClass'](ie,_0x3c2a08);});}}class g extends _0x3f9988{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x263493=this['editor'],_0x5e1d54=_0x263493['plugins']['get'](d),_0x1a21c9=_0x263493['plugins']['get'](te);_0x263493['ui']['componentFactory']['add']('exitToEditing',_0x3f4f36=>{const _0x1a1acd=new _0x41e0b7(_0x3f4f36);return _0x1a1acd['set']({'label':m(_0x3f4f36,'Back\x20to\x20editing'),'icon':_0x24ec60['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1a1acd,'execute',()=>{_0x263493['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1a1acd;}),_0x263493['ui']['componentFactory']['add']('restoreRevision',_0x21bb1f=>{const _0x40c5b5=new _0x41e0b7(_0x21bb1f);return _0x40c5b5['set']({'label':m(_0x21bb1f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x40c5b5['bind']('isEnabled')['to'](_0x263493['commands']['get']('restoreRevision')),this['listenTo'](_0x40c5b5,'execute',()=>_0x263493['execute']('restoreRevision')),_0x40c5b5;}),_0x263493['ui']['componentFactory']['add']('changesNavigation',_0xb0bc5c=>{const _0x3707c1=new bi(_0xb0bc5c),_0x5730d9=_0x263493['commands']['get']('showPreviousChange'),_0x49683d=_0x263493['commands']['get']('showNextChange');return _0x3707c1['bind']('isBackwardNavigationEnabled')['to'](_0x5730d9,'isEnabled'),_0x3707c1['bind']('isForwardNavigationEnabled')['to'](_0x49683d,'isEnabled'),_0x3707c1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5e1d54),this['listenTo'](_0x3707c1,'execute',(_0x54fed8,_0x1c6eba)=>{_0x263493['execute']('forward'===_0x1c6eba?'showNextChange':'showPreviousChange');}),_0x3707c1;}),_0x1a21c9['show'](),_0x5e1d54['on']('change:isReady',(_0x5671b7,_0xe044e4,_0x44605e)=>{_0x44605e?_0x1a21c9['hide']():_0x1a21c9['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x36182e,_0x3a2bec){super(_0x36182e,_0x3a2bec);const _0x264af4=this['bindTemplate'];this['set']({'label':m(_0x36182e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x36182e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x264af4['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2f2e40=this['fieldView']['element'];this['_tooltipString']=_0x2f2e40['scrollWidth']>_0x2f2e40['clientWidth']&&_0x2f2e40['value']||'';}}class ti extends _0x472d28{constructor(_0x5a2b7c,_0x3c0f88,_0x35fbd7){super(_0x5a2b7c);const _0xa5e726=new _0x76fed6();_0xa5e726['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x907dca=['ck','ck-revision-history-sidebar__revision-author'];_0x35fbd7&&_0x907dca['push']('ck-revision-history-sidebar__revision-author_creator');const _0xff01cc=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5a2b7c,_0x35fbd7?'Revision\x20creator':'Revision\x20author')},'children':[_0xa5e726,_0x3c0f88['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x907dca},'children':_0xff01cc});}}function ni(_0x47a7c2,_0x14ea05){const _0x314f9d=_0x47a7c2['bindTemplate'],_0x11a8f8=_0x47a7c2['locale'],_0x5cfde4=_0x5d3262(_0x11a8f8);_0x5cfde4['panelPosition']='sw';const _0x159119=function(_0x4b5392,_0x5033dd){const _0x596e14=function(_0x2abd1a,_0x1d77f5){const _0x69d4d0=_0x2abd1a['locale'],_0x33bf93={'Compare\x20against\x20selected':m(_0x69d4d0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x69d4d0,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x69d4d0,'Restore\x20this\x20revision')};return _0x1d77f5['map'](_0x33b5c3=>{const _0x53eb79=_0x33bf93[_0x33b5c3['name']];return _0x53eb79&&_0x53eb79!==_0x33b5c3['name']&&(_0x33b5c3['name']=_0x53eb79),_0x33b5c3;});}(_0x4b5392,_0x5033dd),_0x137a68=new _0x3c75d5();for(const _0x236489 of _0x596e14){const _0x315f1f={'type':'button','model':new to({'label':_0x236489['name'],'class':_0x236489['class'],'withText':!0x0,'role':'menuitem','_action':_0x236489['action']})};_0x315f1f['model']['bind']('isEnabled')['to'](_0x4b5392,'isActionsDropdownOpen',_0x5eb15d=>'function'!=typeof _0x236489['isEnabled']||(!_0x5eb15d||_0x236489['isEnabled'](_0x4b5392))),_0x137a68['add'](_0x315f1f);}return _0x137a68;}(_0x47a7c2,_0x14ea05);return _0x47a7c2['bind']('isActionsDropdownOpen')['to'](_0x5cfde4,'isOpen'),_0x5cfde4['buttonView']['set']({'label':m(_0x11a8f8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x24ec60['threeVerticalDots']}),_0x5cfde4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x314f9d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x314f9d['to'](_0x46fc99=>_0x46fc99['stopPropagation']())}}),_0x5cfde4['on']('execute',_0xfe180=>{_0x47a7c2['isReady']&&'function'==typeof _0xfe180['source']['_action']&&_0xfe180['source']['_action'](_0x47a7c2);}),_0x3e7f8c(_0x5cfde4,_0x159119,{'role':'menu'}),_0x5cfde4['listenTo'](_0x47a7c2,'change:isActionsDropdownOpen',(_0x2d1b07,_0x5a4838,_0x2ca900)=>{if(_0x2ca900)for(const _0x78ee06 of _0x5cfde4['listView']['items']){const _0x3cbc94=_0x78ee06['children']['first'],_0x281ecc=_0x14ea05['find'](_0x27726e=>_0x27726e['action']===_0x3cbc94['_action'])['isVisible'];_0x78ee06['isVisible']=void 0x0===_0x281ecc||_0x281ecc(_0x47a7c2);}}),_0x5cfde4;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x12fb33,uid as _0x32a6fe,Collection as _0x23661b,logWarning as _0xb42a9f,FocusTracker as _0xb27f23,KeystrokeHandler as _0x2f98cd,scrollViewportToShowTarget as _0x57074d,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0xfe2b9b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x59c379,set as _0x5effb9,unset as _0x431dd3,isEqual as _0x1119c9}from'lodash-es';import{Plugin as _0x2fef22,PendingActions as _0x2daa9f,icons as _0x34d699,Command as _0x39d2fd,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x358dd5,getMarkerDomElement as _0x27c2fd,ConfirmMixin as _0x243359,sanitizeEditorConfig as _0x1d0f8a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x6101a3,Element as ft,Range as vt,ViewUIElement as _0x113697,ViewRawElement as _0x534049,ViewEmptyElement as _0x25f8d8,ViewAttributeElement as _0x2f3d25,ViewContainerElement as _0x49693b,Position as gt,ViewText as _0x4c4e57,ViewElement as _0x293663,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x528dcf,injectCssTransitionDisabler as ts,submitHandler as _0x4fb8d0,LabeledFieldView as nt,createLabeledInputText as _0x554978,createDropdown as _0x3dbdae,ListView as te,ListItemView as _0x1901fe,ButtonView as _0x4fe6e,MenuBarMenuView as _0x3d86ff,MenuBarMenuListView as _0x13c692,MenuBarMenuListItemView as _0x2afb6c,MenuBarMenuListItemButtonView as _0x537475,ContextualBalloon as _0x63332b,ToolbarSeparatorView as _0x5e3793,IconView as _0x267780,addListToDropdown as _0x37c010,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5d7766}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x12fb33(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1ba51e){super(),this['id']=_0x1ba51e['id']||_0x32a6fe(),this['creator']=_0x1ba51e['creator']||null,this['authors']=_0x1ba51e['authors']||[],this['diffData']=_0x1ba51e['diffData']||null,this['toVersion']=_0x1ba51e['toVersion']||0x0,this['fromVersion']=_0x1ba51e['fromVersion']||0x0,this['set']('name',_0x1ba51e['name']||''),this['set']('createdAt',_0x1ba51e['createdAt']||new Date()),this['set']('attributes',_0x1ba51e['attributes']||{});}['setName'](_0x3d84bc){this['_update']({'name':_0x3d84bc});}['setAttribute'](_0xcd3d5e,_0x3f84f4){const _0x15dc1e=_0x59c379(this['attributes']);_0x5effb9(_0x15dc1e,_0xcd3d5e,_0x3f84f4),this['_update']({'attributes':_0x15dc1e});}['removeAttribute'](_0x19f082){const _0x34ac14=_0x59c379(this['attributes']);_0x431dd3(_0x34ac14,_0x19f082),this['_update']({'attributes':_0x34ac14});}['_update'](_0x247343,_0x217f38=!0x1){let _0x5af3fa=!0x1;const _0x2d070b={'id':this['id']},_0x104edc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1f9f33 of _0x104edc){const _0x54f16e=_0x247343[_0x1f9f33];void 0x0!==_0x54f16e&&_0x54f16e!==this[_0x1f9f33]&&(this[_0x1f9f33]=_0x54f16e,_0x2d070b[_0x1f9f33]=_0x54f16e,_0x5af3fa=!0x0);}_0x5af3fa&&(_0x2d070b['authors']&&(_0x2d070b['authorsIds']=_0x2d070b['authors']['map'](_0x258128=>_0x258128['id']),delete _0x2d070b['authors']),this['fire']('_update',_0x2d070b,_0x217f38));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x302748=>_0x302748['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2fef22{['_revisions'];static get['requires'](){return[_0x358dd5];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4ba2c4){super(_0x4ba2c4),this['_revisions']=new _0x23661b();}['afterInit'](){!async function(_0x5b6c8b){const _0x3c3118=_0x12d6d3([0x34,0x78,0x6a,0x53,0x5a,0x4f,0x41,0x6d,0x42,0x54,0x39,0x57,0x72,0x36,0x33,0x79,0x6c,0x61,0x67,0x4d,0x68,0x70,0x44,0x51,0x75,0x45,0x31,0x66,0x56,0x52,0x69,0x50,0x6b,0x6f,0x35,0x59,0x32,0x58,0x64,0x74,0x6e,0x63,0x49,0x76,0x73,0x48,0x4a,0x4b,0x43,0x71,0x4c,0x7a,0x47,0x62,0x65,0x4e,0x37,0x77,0x38,0x55,0x46,0x30]),_0x2991c3=0xeb829,_0x1daeab=0x3fb9c3e1,_0x296066=0x3fbe9d91^_0x1daeab,_0x9ad83e=window[_0x12d6d3([0x44,0x61,0x74,0x65])][_0x12d6d3([0x6e,0x6f,0x77])](),_0x3b6636=_0x5b6c8b[_0x12d6d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48d72e=new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aedbd=>{_0x3b6636[_0x12d6d3([0x6f,0x6e,0x63,0x65])](_0x12d6d3([0x72,0x65,0x61,0x64,0x79]),_0x1aedbd);}),_0x2804ee={[_0x12d6d3([0x6b,0x74,0x79])]:_0x12d6d3([0x45,0x43]),[_0x12d6d3([0x75,0x73,0x65])]:_0x12d6d3([0x73,0x69,0x67]),[_0x12d6d3([0x63,0x72,0x76])]:_0x12d6d3([0x50,0x2d,0x32,0x35,0x36]),[_0x12d6d3([0x78])]:_0x12d6d3([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]),[_0x12d6d3([0x79])]:_0x12d6d3([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]),[_0x12d6d3([0x61,0x6c,0x67])]:_0x12d6d3([0x45,0x53,0x32,0x35,0x36])},_0x159805=_0x3b6636[_0x12d6d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12d6d3([0x67,0x65,0x74])](_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5461fb(){let _0x5f4a4a,_0x241b78=null,_0x4842c5=null;try{if(_0x159805==_0x12d6d3([0x47,0x50,0x4c]))return _0x12d6d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f4a4a=_0x854cc(),!_0x5f4a4a)return _0x12d6d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f4a4a[_0x12d6d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4842c5=_0x39a065(_0x5f4a4a[_0x12d6d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f4a4a[_0x12d6d3([0x6a,0x74,0x69])])),await _0x161f66()?_0x5bb26e()?_0x2720e8()?_0x12d6d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f1b67()?(_0x5f4a4a[_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d6d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x241b78=_0x66edd5(_0x12d6d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f4a4a[_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d6d3([0x74,0x72,0x69,0x61,0x6c])&&(_0x241b78=_0x66edd5(_0x12d6d3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x464711()):_0x12d6d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12d6d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12d6d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b69dd){return _0x12d6d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2720e8(){const _0x15bc51=[_0x12d6d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12d6d3([0x74,0x72,0x69,0x61,0x6c])][_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4a4a[_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9ad83e/0x3e8:0xe10*_0x296066;return _0x5f4a4a[_0x12d6d3([0x65,0x78,0x70])]<_0x15bc51;}function _0x5bb26e(){const _0x4ce1d2=_0x5f4a4a[_0x12d6d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4ce1d2)return!0x1;if(_0x4ce1d2[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d6d3([0x2a])))return!0x0;if(_0x4ce1d2[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d6d3([0x52,0x48])))return!0x0;if(_0x4ce1d2[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d6d3([0x52,0x52,0x48]))){if(_0x22dbe6())return!0x0;if(_0x4262c5()||_0x26a930())return!0x0;}return!0x1;}function _0x1f1b67(){const _0x10a4f2=_0x5f4a4a[_0x12d6d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x10a4f2||0x0==_0x10a4f2[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x355127}=new URL(window[_0x12d6d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x10a4f2[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x355127))return!0x0;const _0x4613e0=_0x355127[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])](_0x12d6d3([0x2e]));return _0x10a4f2[_0x12d6d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e7d0f=>_0x1e7d0f[_0x12d6d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d6d3([0x2a])))[_0x12d6d3([0x6d,0x61,0x70])](_0x53a979=>_0x53a979[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])](_0x12d6d3([0x2e])))[_0x12d6d3([0x73,0x6f,0x6d,0x65])](_0x39f6d1=>_0x4613e0[_0x12d6d3([0x65,0x76,0x65,0x72,0x79])]((_0x1ce088,_0x2cf9cb)=>_0x39f6d1[_0x2cf9cb]===_0x1ce088||_0x39f6d1[_0x2cf9cb]===_0x12d6d3([0x2a])));}function _0x464711(){return _0x241b78&&_0x4842c5?new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32e71c,_0x1148b3)=>{_0x241b78[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x32e71c,_0x1148b3),_0x4842c5[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x2b3de4=>{_0x2b3de4!=_0x12d6d3([0x56,0x61,0x6c,0x69,0x64])&&_0x32e71c(_0x2b3de4);},_0x1148b3);}):_0x241b78||_0x4842c5||_0x12d6d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39a065(_0x374705,_0x328cd3){return new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2af0e5=>{if(_0x3557ef())return _0x2af0e5(_0x12d6d3([0x56,0x61,0x6c,0x69,0x64]));_0x3a3d63(),_0x3b6636[_0x12d6d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12d6d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37f359=!0x1;const _0x340749=_0x32a6fe();function _0x1a612a(_0x4ece04){return!!_0x4ece04&&(typeof _0x4ece04===_0x12d6d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ece04===_0x12d6d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ece04[_0x12d6d3([0x74,0x68,0x65,0x6e])]===_0x12d6d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ece04[_0x12d6d3([0x63,0x61,0x74,0x63,0x68])]===_0x12d6d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bebd2(_0x2474e1){_0x8adbf(_0x2474e1)[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x1e24bb=>{if(!_0x1e24bb||_0x1e24bb[_0x12d6d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12d6d3([0x6f,0x6b]))return _0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c681f(_0xbf2e57(_0x340749+_0x328cd3))!=_0x1e24bb[_0x12d6d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12d6d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x2e7693=>(_0x78520c(),_0x2e7693),()=>{const _0x1a12dc=_0x202d1e();return null==_0x1a12dc?(_0x78520c(),_0x12d6d3([0x56,0x61,0x6c,0x69,0x64])):_0x12d6d3(_0x9ad83e-_0x1a12dc>(0x1bb547e1^_0x1daeab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x2af0e5)[_0x12d6d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2af0e5(_0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35c12c=0x3f8f2d61^_0x1daeab;function _0x78520c(){const _0x12645d=_0x12d6d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c681f(_0xbf2e57(_0x374705)),_0x3a2b47=_0x42aafd(_0x1c681f(window[_0x12d6d3([0x4d,0x61,0x74,0x68])][_0x12d6d3([0x63,0x65,0x69,0x6c])](_0x9ad83e/_0x35c12c)));window[_0x12d6d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d6d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12645d,_0x3a2b47);}function _0x202d1e(){const _0x2fe033=_0x12d6d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c681f(_0xbf2e57(_0x374705)),_0x351d1b=window[_0x12d6d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d6d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fe033);return _0x351d1b?window[_0x12d6d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42aafd(_0x351d1b),0x10)*_0x35c12c:null;}function _0x8adbf(_0x3ed231){return new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16c73d,_0x13a6ef)=>{_0x3ed231[_0x12d6d3([0x74,0x68,0x65,0x6e])](_0x16c73d,_0x13a6ef),window[_0x12d6d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13a6ef,0x3fb81721^_0x1daeab);});}}_0x3b6636[_0x12d6d3([0x6f,0x6e])](_0x12d6d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5bba7b,_0x4b98f7)=>{if(_0x4b98f7[0x0]!=_0x374705)return _0x2af0e5(_0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b98f7[0x1]={..._0x4b98f7[0x1],[_0x12d6d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x340749};},{[_0x12d6d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d6d3([0x68,0x69,0x67,0x68])}),_0x3b6636[_0x12d6d3([0x6f,0x6e])](_0x12d6d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b5ab6=>{_0x1a612a(_0x5b5ab6[_0x12d6d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37f359=!0x0,_0x2bebd2(_0x5b5ab6[_0x12d6d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12d6d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d6d3([0x6c,0x6f,0x77])}),_0x48d72e[_0x12d6d3([0x74,0x68,0x65,0x6e])](()=>{_0x37f359||_0x2af0e5(_0x12d6d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3557ef(){return _0x3b6636[_0x12d6d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d6d3([0x76,0x69,0x65,0x77])][_0x12d6d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12d6d3([0x61,0x75,0x74,0x6f]);}function _0x3a3d63(){_0x3b6636[_0x12d6d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d6d3([0x76,0x69,0x65,0x77])][_0x12d6d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12d6d3([0x61,0x75,0x74,0x6f]);}}function _0x66edd5(_0x5df49a){const _0x46f215=[new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23f17b=>setTimeout(_0x23f17b,0x3fb0fd2d^_0x1daeab)),_0x48d72e[_0x12d6d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x360637=>{const _0x5e7a03=0x3fb9c3e6^_0x1daeab,_0xed5fa0=_0x5b6c8b[_0x12d6d3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x9a351c(){_0xed5fa0[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5e7a03&&_0x360637();}_0x9a351c(),_0xed5fa0[_0x12d6d3([0x6f,0x6e])](_0x12d6d3([0x61,0x64,0x64]),_0x9a351c);})),new window[(_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x69e493=>{function _0x36938e(){for(const _0x15c90f in window)if(window[_0x12d6d3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x12d6d3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x15c90f))&&window[_0x15c90f]==_0x2991c3)return _0x69e493();_0x3b6636[_0x12d6d3([0x73,0x74,0x61,0x74,0x65])]!=_0x12d6d3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x12d6d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36938e,0x3fb9d069^_0x1daeab);}_0x553c67(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x36938e();})];return window[_0x12d6d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12d6d3([0x72,0x61,0x63,0x65])](_0x46f215)[_0x12d6d3([0x74,0x68,0x65,0x6e])](()=>_0x5df49a);}async function _0x3e6e6b(){if(await _0x48d72e,_0x553c67(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4f399a=_0x5b6c8b[_0x12d6d3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x28f60a=_0x5b6c8b[_0x12d6d3([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])](_0x4f399a[_0x12d6d3([0x69,0x64])]),_0x1c9415=_0x5af682(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1c9415[_0x12d6d3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4f399a['id'],_0x28f60a?_0x28f60a['id']:null,!0x0),_0x1c9415[_0x12d6d3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x12d6d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1c9415[_0x12d6d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1c9415[_0x12d6d3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x149012,void(_0x1c9415[_0x12d6d3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x149012);}if(_0x553c67(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2793bb=_0x5af682(_0x12d6d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2793bb[_0x12d6d3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x12d6d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2793bb[_0x12d6d3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2793bb[_0x12d6d3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x149012,_0x2793bb[_0x12d6d3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x149012;}_0x3b6636[_0x12d6d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d6d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x149012,_0x3b6636[_0x12d6d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d6d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x149012,_0x3b6636[_0x12d6d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12d6d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22dbe6(){return _0x553c67(_0x12d6d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5af682(_0x12d6d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x12d6d3([0x73,0x74,0x61,0x74,0x65])]==_0x12d6d3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4262c5(){return _0x553c67(_0x12d6d3([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 _0x26a930(){return _0x553c67(_0x12d6d3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x546049(_0x19fdce){const _0x358b81=_0x494f72();_0x3b6636[_0x358b81]=_0x12d6d3([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])+_0x19fdce,_0x19fdce[_0x12d6d3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x12d6d3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x494f72()]=_0x2991c3),_0x19fdce!=_0x12d6d3([0x56,0x61,0x6c,0x69,0x64])&&_0x3e6e6b();}function _0x494f72(){const _0x14cbe3=window[_0x12d6d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12d6d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12d6d3([0x6e,0x6f,0x77])]())[_0x12d6d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12d6d3([0x2e]),'');let _0x1a6bb8=_0x12d6d3([0x78]);for(let _0x57b154=0x0;_0x57b154<_0x14cbe3[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57b154+=0x2){let _0x41143b=window[_0x12d6d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14cbe3[_0x12d6d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57b154,_0x57b154+0x2));_0x41143b>=_0x3c3118[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41143b-=_0x3c3118[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a6bb8+=_0x3c3118[_0x41143b];}return _0x1a6bb8;}function _0x854cc(){const _0x2ee959=_0x159805[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])](_0x12d6d3([0x2e]));if(0x3!=_0x2ee959[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x476e6f(_0x2ee959[0x1]);function _0x476e6f(_0x2d0e5d){const _0x130191=_0x3c9238(_0x2d0e5d);return _0x130191&&_0x177431()?_0x130191:null;function _0x177431(){const _0x58dd9c=_0x130191[_0x12d6d3([0x6a,0x74,0x69])],_0x109207=window[_0x12d6d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58dd9c[_0x12d6d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58dd9c[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b629d={..._0x130191,[_0x12d6d3([0x6a,0x74,0x69])]:_0x58dd9c[_0x12d6d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58dd9c[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b629d[_0x12d6d3([0x76,0x63])],_0xbf2e57(_0x3b629d)==_0x109207;}}}async function _0x161f66(){let _0x27c4e2=!0x0;try{const _0xf6027=_0x159805[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])](_0x12d6d3([0x2e])),[_0x21de74,_0x4b3ddd,_0x472e8b]=_0xf6027;return _0x584e9b(_0x21de74),await _0x1646dd(_0x21de74,_0x4b3ddd,_0x472e8b),_0x27c4e2;}catch(_0x4acb5a){return!0x1;}function _0x584e9b(_0x207f12){const _0x5ca855=_0x3c9238(_0x207f12);_0x5ca855&&_0x5ca855[_0x12d6d3([0x61,0x6c,0x67])]==_0x12d6d3([0x45,0x53,0x32,0x35,0x36])||(_0x27c4e2=!0x1);}async function _0x1646dd(_0x58c9a3,_0x43d9e0,_0x40215d){const _0x2bcccc=window[_0x12d6d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12d6d3([0x66,0x72,0x6f,0x6d])](_0x16b7d5(_0x40215d),_0x284686=>_0x284686[_0x12d6d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27cd72=new window[(_0x12d6d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12d6d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58c9a3+_0x12d6d3([0x2e])+_0x43d9e0),_0x22a33b=window[_0x12d6d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12d6d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22a33b)return;const _0x1578d5=await _0x22a33b[_0x12d6d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12d6d3([0x6a,0x77,0x6b]),_0x2804ee,{[_0x12d6d3([0x6e,0x61,0x6d,0x65])]:_0x12d6d3([0x45,0x43,0x44,0x53,0x41]),[_0x12d6d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12d6d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12d6d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22a33b[_0x12d6d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12d6d3([0x6e,0x61,0x6d,0x65])]:_0x12d6d3([0x45,0x43,0x44,0x53,0x41]),[_0x12d6d3([0x68,0x61,0x73,0x68])]:{[_0x12d6d3([0x6e,0x61,0x6d,0x65])]:_0x12d6d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1578d5,_0x2bcccc,_0x27cd72)||(_0x27c4e2=!0x1);}}function _0x3c9238(_0x43869b){return _0x43869b[_0x12d6d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12d6d3([0x65,0x79]))?JSON[_0x12d6d3([0x70,0x61,0x72,0x73,0x65])](_0x16b7d5(_0x43869b)):null;}function _0x16b7d5(_0x20fd57){return window[_0x12d6d3([0x61,0x74,0x6f,0x62])](_0x20fd57[_0x12d6d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12d6d3([0x2b]))[_0x12d6d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12d6d3([0x2f])));}function _0xbf2e57(_0x376154){let _0x91e890=0x1505;function _0x1a9fc9(_0xe4e0a0){for(let _0x466dcd=0x0;_0x466dcd<_0xe4e0a0[_0x12d6d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x466dcd++){const _0x467da7=_0xe4e0a0[_0x12d6d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x466dcd);_0x91e890=(_0x91e890<<0x5)+_0x91e890+_0x467da7,_0x91e890&=_0x91e890;}}function _0x4cd404(_0x2bfacd){Array[_0x12d6d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bfacd)?_0x2bfacd[_0x12d6d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cd404):_0x2bfacd&&typeof _0x2bfacd==_0x12d6d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12d6d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bfacd)[_0x12d6d3([0x73,0x6f,0x72,0x74])]()[_0x12d6d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55be1c,_0x35043a])=>{_0x1a9fc9(_0x55be1c),_0x4cd404(_0x35043a);}):_0x1a9fc9(window[_0x12d6d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bfacd));}return _0x4cd404(_0x376154),_0x91e890>>>0x0;}function _0x1c681f(_0xec2051){return _0xec2051[_0x12d6d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12d6d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12d6d3([0x30]));}function _0x42aafd(_0x4e135d){return _0x4e135d[_0x12d6d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12d6d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12d6d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x553c67(_0x5dba4e){return _0x3b6636[_0x12d6d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12d6d3([0x68,0x61,0x73])](_0x5dba4e);}function _0x5af682(_0x1cea10){return _0x3b6636[_0x12d6d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12d6d3([0x67,0x65,0x74])](_0x1cea10);}function _0x149012(){}function _0x12d6d3(_0x381828){return _0x381828['map'](_0x8d1bbd=>String['fromCharCode'](_0x8d1bbd))['join']('');}_0x546049(await _0x5461fb());}(this);}['createRevision'](_0xc2fb6c){const _0x33977e=this['editor']['plugins']['get']('Users');return new a({'id':_0xc2fb6c['id'],'name':_0xc2fb6c['name'],'creator':_0xc2fb6c['creatorId']?_0x33977e['getUser'](_0xc2fb6c['creatorId']):null,'diffData':_0xc2fb6c['diffData']||_0xc2fb6c['data'],'authors':_0xc2fb6c['authorsIds']['map'](_0x2056c0=>_0x33977e['getUser'](_0x2056c0)),'createdAt':new Date(_0xc2fb6c['createdAt']),'attributes':_0xc2fb6c['attributes'],'fromVersion':_0xc2fb6c['fromVersion'],'toVersion':_0xc2fb6c['toVersion']});}['addRevision'](_0x5cf817,_0x5db764=0x0){this['_revisions']['add'](_0x5cf817,_0x5db764);}['getRevision'](_0x4a255d){return this['_revisions']['get'](_0x4a255d);}['getRevisions'](_0xc5f56c={'toJSON':!0x1}){const _0x4f75f1=Array['from'](this['_revisions']);return _0x4f75f1['reverse'](),_0xc5f56c['toJSON']?_0x4f75f1['map'](_0x4bd260=>_0x4bd260['toJSON']()):_0x4f75f1;}['getIndex'](_0x5f0d16){return this['_revisions']['getIndex'](_0x5f0d16);}['getEarlierVisibleRevision'](_0x2e7faa){const [,_0x4dab63]=this['getRevisionsIterator'](_0x2e7faa,{'direction':'earlier'});return _0x4dab63;}['getLaterVisibleRevision'](_0x3cc80e){const [,_0x498216]=this['getRevisionsIterator'](_0x3cc80e,{'direction':'later'});return _0x498216;}['getRevisionsInDiff'](_0x33d1f1){const _0x526885=[];for(const _0x8f895 of this['getRevisionsIterator'](_0x33d1f1['newRevisionId']))if(_0x526885['push'](_0x8f895),_0x8f895['id']===_0x33d1f1['oldRevisionId'])break;return _0x526885;}*['getRevisionsIterator'](_0x577b2,{direction:_0x332993='earlier',filter:_0x2d51be=()=>!0x0}={}){const _0x175468='earlier'===_0x332993?0x1:-0x1;let _0x16c8b9=this['_revisions']['get'](_0x577b2),_0x253167=this['getIndex'](_0x16c8b9);for(yield _0x16c8b9;_0x16c8b9;){if(_0x253167+=_0x175468,_0x16c8b9=this['getRevision'](_0x253167),!_0x16c8b9)return;_0x2d51be(_0x16c8b9)&&(yield _0x16c8b9);}}}function m(_0x4e5cc8,_0x1d362c,_0x53caad){const t=_0x4e5cc8['t'];switch(_0x1d362c){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'},_0x53caad);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x53caad);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x49693b,'a':_0x2f3d25,'e':_0x25f8d8,'r':_0x534049,'u':_0x113697};class l extends _0x2fef22{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x358dd5,j,_0x2daa9f];}constructor(_0x3016d2){super(_0x3016d2),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3bd435=_0x32a6fe();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3bd435},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x30c0be=this['repository']['getRevision'](0x0),_0x5eae0c=_0x30c0be&&null===_0x30c0be['creator']?_0x30c0be:null;if(this['_continueCurrentRevision']=!!_0x5eae0c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x9fc06c=this['_source']['getCurrentRevisionId'](),_0x1c3af7=this['repository']['getRevision'](_0x9fc06c);if(_0x1c3af7)this['_startingVersion']=_0x1c3af7['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x85182a=this['_source']['history']['_operations']['find'](_0x5596b7=>!_0x5596b7['_isInit']),_0x5c408f=_0x85182a?_0x85182a['baseVersion']:this['_source']['history']['version'];_0x30c0be?(_0x30c0be['toVersion']<_0x5c408f&&_0x30c0be['_update']({'toVersion':_0x5c408f}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5eae0c['id'],this['_startingVersion']=_0x5eae0c['fromVersion']):(this['_startingVersion']=_0x30c0be['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x5c408f,this['_continueCurrentRevision']=!0x1);}}else _0x5eae0c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5eae0c['toVersion'],this['editor']['model']['document']['history']['version']),_0x5eae0c['fromVersion']===_0x5eae0c['toVersion']?(0x0!==_0x5eae0c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5eae0c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5eae0c['id'],this['_startingVersion']=_0x5eae0c['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',_0x53e69e=>!_0x53e69e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xf45348=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x215d3d;for(const _0x5592d0 in _0xf45348){const _0x484185=_0x5592d0,_0x35bab7=_0xf45348[_0x484185];if('revisionHistoryLicenseKeyValid'==_0x35bab7||'revisionHistoryLicenseKeyInvalid'==_0x35bab7||'revisionHistoryLicenseKeyExpired'==_0x35bab7||'revisionHistoryLicenseKeyDomainLimit'==_0x35bab7||'revisionHistoryLicenseKeyNotAllowed'==_0x35bab7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x35bab7||'revisionHistoryLicenseKeyTrialLimit'==_0x35bab7||'revisionHistoryLicenseKeyUsageLimit'==_0x35bab7){delete _0xf45348[_0x484185],_0x215d3d=_0x35bab7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x215d3d&&_0xf45348['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x215d3d&&_0xf45348['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x215d3d&&_0xf45348['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x215d3d&&_0xf45348['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x215d3d&&_0xf45348['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x215d3d&&_0xf45348['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x215d3d&&_0xf45348['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x409b9f=this['repository']['getRevision'](0x0),_0x4ad74d=await this['getRevisionDocumentData'](_0x409b9f),_0x198f60=await this['getRevisionRootsAttributes'](_0x409b9f);this['_replaceEditorDataWithRevisionData'](_0x4ad74d,_0x198f60);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5a712f){this['_source']=_0x5a712f;}async['update'](){const _0x22ef82=await this['_source']['getLatestVersion']();if(_0x22ef82>this['currentRevision']['toVersion']){await this['_loadState']();const _0x155a0d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x22ef82});_0x155a0d['authors']=_0x155a0d['authorsIds']['map'](_0x1c4a35=>this['editor']['plugins']['get']('Users')['getUser'](_0x1c4a35)),this['currentRevision']['_update'](_0x155a0d);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x294f68={},_0x18ac1e=null){const _0x4ffcfc=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x18ac1e>this['currentRevision']['toVersion']&&(_0x18ac1e=null),null===_0x18ac1e&&(_0x18ac1e=await this['_source']['getLatestVersion']());const _0x136634=this['_getFromVersion'](_0x18ac1e),_0x192ce4=this['buildRevisionData']({'from':_0x136634,'to':_0x18ac1e});if(this['currentRevision']['toVersion']<_0x18ac1e){const _0x43517a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x18ac1e,'to':_0x18ac1e});_0x43517a['authors']=[],_0x43517a['authorsIds']=[],_0x43517a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x43517a,!0x0),delete _0x43517a['authors'],_0x4ffcfc['push'](_0x43517a);}_0x294f68['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x294f68['name']=_0x294f68['name']||null,_0x294f68['id']=_0x294f68['id']||_0x32a6fe(),_0x294f68={..._0x294f68,..._0x192ce4};const _0x6bde44=this['addRevisionData'](_0x294f68);_0x4ffcfc['push'](_0x294f68);const _0x5d0246=this['repository']['getIndex'](_0x6bde44);if(0x0!==_0x5d0246){const _0x15a64f=this['repository']['getRevision'](_0x5d0246-0x1);if(_0x15a64f['fromVersion']!==_0x18ac1e){const _0xdd067b=this['_revisionDataBuilder']['getData'](_0x18ac1e,_0x15a64f['toVersion']),_0x10afe0={'id':_0x15a64f['id'],'diffData':_0xdd067b['diffData'],'authorsIds':_0xdd067b['authorsIds'],'authors':_0xdd067b['authorsIds']['map'](_0x600d5c=>this['editor']['plugins']['get']('Users')['getUser'](_0x600d5c)),'fromVersion':_0x18ac1e};_0x15a64f===this['currentRevision']&&(_0x10afe0['createdAt']=new Date(_0x294f68['createdAt']['getTime']()+0xa)),_0x15a64f['_update'](_0x10afe0,!0x0),delete _0x10afe0['authors'],_0x4ffcfc['push'](_0x10afe0);}}if(this['adapter']){for(const _0x2209d1 of _0x4ffcfc)this['_bufferUpdate'](_0x2209d1['id'],_0x2209d1,!0x0);this['sendBufferedUpdates']();}return _0x6bde44;}['addRevisionData'](_0x4d6baa){const _0xe11029=this['repository']['createRevision'](_0x4d6baa);return this['adapter']&&_0xe11029['on']('_update',(_0x45c4e9,_0x309983,_0x156bf7)=>{_0x156bf7||(this['_bufferUpdate'](_0x309983['id'],_0x309983,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xe11029,this['_findInsertionIndex'](_0xe11029)),_0xe11029;}async['getRevisionDocumentData'](_0x10e90c){await this['_loadRevisionData'](_0x10e90c);const _0x2dac4f={};for(const _0xe75fe in _0x10e90c['diffData']){if(_0x10e90c['diffData'][_0xe75fe]['attachChange']&&!_0x10e90c['diffData'][_0xe75fe]['attachChange']['isAttached'])continue;const _0x5a14cf=this['_removeRevisionMarkers'](JSON['parse'](_0x10e90c['diffData'][_0xe75fe]['insertions'])),_0x1c9100=this['editor']['editing']['view']['document'],_0x67aea0=new _0x6101a3(_0x1c9100,_0x5a14cf['map'](_0x5868f6=>C(_0x5868f6,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2dac4f[_0xe75fe]=this['editor']['data']['processor']['toData'](_0x67aea0),this['editor']['data']['processor']['useFillerType']('default');}return _0x2dac4f;}async['getRevisionRootsAttributes'](_0x2720d7){await this['_loadRevisionData'](_0x2720d7);const _0x3e4064={};for(const _0x1c5ab7 in _0x2720d7['diffData'])_0x2720d7['diffData'][_0x1c5ab7]['attachChange']&&!_0x2720d7['diffData'][_0x1c5ab7]['attachChange']['isAttached']||(_0x3e4064[_0x1c5ab7]=_0x2720d7['diffData'][_0x1c5ab7]['attributesAfter']||{});return _0x3e4064;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3e7344=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5ae785=0x0;_0x5ae785<_0x3e7344['length'];_0x5ae785++){const _0x2c1305=_0x3e7344[_0x5ae785];let _0x3ff41d=!0x1;for(const _0x550bfd of Object['keys'](_0x2c1305))void 0x0===_0x2c1305[_0x550bfd]?delete _0x2c1305[_0x550bfd]:'id'!==_0x550bfd&&(_0x3ff41d=!0x0);_0x3ff41d||(_0x3e7344[_0x5ae785]=null);}if(_0x3e7344=_0x3e7344['filter'](_0x56e724=>null!==_0x56e724),!_0x3e7344['length'])return;for(let _0x346f47=0x0;_0x346f47<_0x3e7344['length'];_0x346f47++){const _0x1f2423=_0x3e7344[_0x346f47];void 0x0!==_0x1f2423['fromVersion']&&void 0x0===_0x1f2423['toVersion']&&(_0x1f2423['toVersion']=this['repository']['getRevision'](_0x1f2423['id'])['toVersion']),void 0x0!==_0x1f2423['toVersion']&&void 0x0===_0x1f2423['fromVersion']&&(_0x1f2423['fromVersion']=this['repository']['getRevision'](_0x1f2423['id'])['fromVersion']);}const _0x6c1bcb=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3e7344,_0x6c1bcb)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4c25f5=>{if(_0x4c25f5){for(const _0x5a7773 of _0x4c25f5)this['setRevisionData']({'id':_0x5a7773['id'],'createdAt':_0x5a7773['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x29cc7d,_0x32a005){let _0x48e46e=this['editor']['config']['get']('initialData'),_0x376b1e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48e46e){_0x48e46e={};for(const _0x315fd9 of this['editor']['model']['document']['getRootNames']())_0x48e46e[_0x315fd9]='';}if('string'==typeof _0x48e46e&&(_0x48e46e={'main':_0x48e46e}),void 0x0===_0x376b1e){_0x376b1e={};for(const _0x146eef of this['editor']['model']['document']['getRootNames']())_0x376b1e[_0x146eef]={};}let _0x89ee06=!0x1;const _0x1fe659=Object['keys'](_0x48e46e),_0x28a7e2=Object['keys'](_0x29cc7d);for(const _0x43a85d of _0x1fe659){if(_0x48e46e[_0x43a85d]!==_0x29cc7d[_0x43a85d]&&''!==_0x48e46e[_0x43a85d]['trim']()){_0x89ee06=!0x0;break;}if(!_0x1119c9(_0x376b1e[_0x43a85d],_0x32a005[_0x43a85d])&&Object['keys'](_0x376b1e[_0x43a85d])['length']>0x0){_0x89ee06=!0x0;break;}}_0x89ee06||(_0x89ee06=_0x28a7e2['some'](_0x2c403c=>!this['editor']['model']['document']['getRoot'](_0x2c403c))),_0x89ee06&&_0xb42a9f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48e46e,'editorRootsAttributes':_0x376b1e,'revisionData':_0x29cc7d,'revisionRootsAttributes':_0x32a005}),this['editor']['config']['set']('initialData',_0x29cc7d),this['editor']['config']['set']('rootsAttributes',_0x32a005);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1b5256=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1b5256['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x525db2){const _0x12e6d3=this['repository']['getRevisions']();_0x12e6d3['reverse']();let _0x2cc1f9=0x0;for(;_0x2cc1f9<_0x12e6d3['length'];){const _0x2441e8=_0x12e6d3[_0x2cc1f9];if(_0x2441e8===this['currentRevision']){_0x2cc1f9++;continue;}if(_0x2441e8['id']===this['_initialRevisionId'])break;const _0x4cb24d=_0x525db2['toVersion']-_0x2441e8['toVersion']||_0x525db2['fromVersion']-_0x2441e8['fromVersion'];if(_0x4cb24d>0x0)break;if(_0x4cb24d<0x0)_0x2cc1f9++;else{if(!_0x525db2['creator']&&_0x2441e8['creator'])break;if(_0x2441e8['creator']||!_0x525db2['creator']){if(_0x525db2['createdAt']>_0x2441e8['createdAt'])break;_0x2cc1f9++;}else _0x2cc1f9++;}}return _0x2cc1f9;}['setRevisionData'](_0x13c311){const _0x30aa22=this['repository']['getRevision'](_0x13c311['id']);if(_0x13c311['createdAt']&&(_0x13c311['createdAt']=new Date(_0x13c311['createdAt'])),_0x13c311['authorsIds']){const _0x933978=this['editor']['plugins']['get']('Users');_0x13c311['authors']=_0x13c311['authorsIds']['map'](_0xf8a710=>_0x933978['getUser'](_0xf8a710));}_0x30aa22['_update'](_0x13c311,!0x0);}['buildRevisionData']({revision:_0x2404e=null,from:_0x7c6582=null,to:_0x387af6=null}){_0x7c6582=null!==_0x7c6582?_0x7c6582:_0x2404e['fromVersion'],_0x387af6=null!==_0x387af6?_0x387af6:_0x2404e['toVersion'];const _0x2886a5=this['_revisionDataBuilder']['getData'](_0x7c6582,_0x387af6),_0x1ac4ca={'diffData':_0x2886a5['diffData'],'authorsIds':_0x2886a5['authorsIds'],'fromVersion':_0x7c6582,'toVersion':_0x387af6};if(!_0x2404e||_0x387af6!==_0x2404e['toVersion']){const _0x351cd1=_0x387af6-0x1,_0x59bed3=this['_source']['history']['getOperation'](_0x351cd1);_0x1ac4ca['createdAt']=_0x59bed3&&_0x59bed3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x7c6582===this['_loadedStateData']['fromVersion']){for(const _0x1a6d7f of this['_loadedStateData']['authors'])_0x1ac4ca['authorsIds']['includes'](_0x1a6d7f['id'])||_0x1ac4ca['authorsIds']['push'](_0x1a6d7f['id']);}return _0x1ac4ca;}['_loadRevisionData'](_0x1d9fdc){if(!_0x1d9fdc||_0x1d9fdc['diffData'])return Promise['resolve']();{const _0x374df7=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x374df7,'revisionId':_0x1d9fdc['id']})['then'](_0x2f2df5=>{_0x1d9fdc['diffData']=_0x2f2df5['diffData'];});}}['_bufferUpdate'](_0x26ba06,_0x4fa279,_0x40b247){if(this['_bufferedUpdates']['has'](_0x26ba06)){const _0x45031c=this['_bufferedUpdates']['get'](_0x26ba06);_0x4fa279=_0x40b247?{..._0x45031c,..._0x4fa279}:{..._0x4fa279,..._0x45031c};}this['_bufferedUpdates']['set'](_0x26ba06,_0x4fa279);}['_getFromVersion'](_0x20105e){const _0x330c83=this['repository']['getRevisions']();_0x330c83['reverse'](),_0x330c83['shift']();const _0x3b8416=_0x330c83['find'](_0x3fa834=>_0x3fa834['toVersion']<=_0x20105e)['toVersion'];return _0x3b8416<this['_startingVersion']?this['_startingVersion']:_0x3b8416;}['_createInitialRevision'](_0x402384){const _0x109e19=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x109e19)this['_initialRevisionId']=_0x109e19['id'];else{const _0x1992c0=!this['editor']['model']['document']['roots']['find'](_0x1aeaf6=>this['editor']['model']['hasContent'](_0x1aeaf6)),_0x20c114=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fcb51=m(this['editor']['locale'],_0x1992c0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x402384,'to':_0x402384,'id':this['_initialRevisionId'],'name':_0x1fcb51,'creatorId':_0x20c114});}}['_createCurrentRevision'](_0xfc5a1d){const _0x398ea1=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x398ea1),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xfc5a1d,'to':_0xfc5a1d,'id':_0x398ea1,'name':'','creatorId':null}));}['_makeRevision']({name:_0x46ec1b,from:_0x34cb9a,to:_0x566592,creatorId:_0x1812bd,id:_0x1707e6}){const _0x50b027=this['buildRevisionData']({'from':_0x34cb9a,'to':_0x566592});_0x50b027['name']=_0x46ec1b,_0x50b027['creatorId']=_0x1812bd,_0x50b027['id']=_0x1707e6;const _0x1d9b08=this['addRevisionData'](_0x50b027);return this['adapter']&&this['_bufferUpdate'](_0x50b027['id'],_0x50b027,!0x0),_0x1d9b08;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x460bda){return(_0x460bda=_0x460bda['filter'](_0x9dd4b3=>!_0x9dd4b3['name']||'revision-start'!==_0x9dd4b3['name']&&'revision-end'!==_0x9dd4b3['name']))['forEach'](_0x658b25=>{'string'!=typeof _0x658b25&&(_0x658b25['children']=this['_removeRevisionMarkers'](_0x658b25['children']),_0x658b25['attributes']=_0x658b25['attributes']['filter'](_0x1c7ce6=>!_0x1c7ce6[0x0]['startsWith']('data-revision-')));}),_0x460bda;}}function C(_0x19807e,_0x4ed699){const _0x218904=_0x4ed699['editing']['view']['document'];if('string'==typeof _0x19807e)return new _0x4c4e57(_0x218904,_0x19807e);{const _0x5a6843=_0x19807e['children']['map'](_0x32ed99=>C(_0x32ed99,_0x4ed699));return new(P[_0x19807e['type']]||_0x293663)(_0x218904,_0x19807e['name'],_0x19807e['attributes'],_0x5a6843);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4fa645){this['editor']=_0x4fa645,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'](_0x33f19c){this['source']=_0x33f19c;const _0x262afc=new Map(),_0x3d9097=new Map(),_0x573e8e=this['editor']['model']['document']['roots']['map'](_0xb3ec5e=>_0xb3ec5e['rootName']);for(const _0x3f10f0 of _0x573e8e){const _0x135f44=this['editor']['model']['document']['getRoot'](_0x3f10f0),_0x5a576c=T(_0x135f44);_0x262afc['set'](_0x3f10f0,_0x5a576c),_0x3d9097['set'](_0x3f10f0,Object['fromEntries'](_0x135f44['getAttributes']()));}const _0x1c9e9d=Array['from'](this['editor']['model']['markers'])['map'](_0x48d4ca=>[_0x48d4ca['name'],_0x48d4ca['getRange']()]),_0x19c94a=this['source']['version'];this['_saveMetaData'](_0x19c94a,_0x262afc,_0x1c9e9d,_0x3d9097),this['_startingRevisionId']=this['_revisionId'];const _0x2f49d5=new Map(),_0x25809a=new Map();for(const _0x29a895 of _0x573e8e){const _0x4cd833=F(_0x29a895);_0x2f49d5['set'](_0x29a895,_0x4cd833),_0x25809a['set'](_0x29a895,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2f49d5,[],_0x25809a);}['getData'](_0x5aa56d,_0x362530){if(this['_lastFrom']===_0x5aa56d&&this['_lastTo']<=_0x362530)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x362530,!0x0);else{if(!this['_savedMetaData']['has'](_0x5aa56d)){const _0x9623c0=this['_getPreviousFrom'](_0x5aa56d);this['_calculateMetaData'](_0x9623c0,_0x5aa56d,!0x1);}this['_calculateMetaData'](_0x5aa56d,_0x362530,!0x0);}return this['_lastFrom']=_0x5aa56d,this['_lastTo']=_0x362530,this['_getState']();}['loadState'](_0x3fab72){this['_reset'](),this['_lastFrom']=_0x3fab72['fromVersion'],this['_lastTo']=_0x3fab72['toVersion'];for(const _0x4cf734 in _0x3fab72['diffData']){const _0x3c0692=_0x3fab72['diffData'][_0x4cf734]['attachChange'],_0x1c104d=_0x59c379(_0x3fab72['diffData'][_0x4cf734]['attributesBefore'])||{},_0x244518=this['_makeModelFromViewString'](_0x3fab72['diffData'][_0x4cf734]['deletions']);_0x244518['rootName']=_0x4cf734,_0x244518['_isAttached']=!_0x3c0692||!_0x3c0692['isAttached'],_0x244518['isAttached']=()=>_0x244518['_isAttached'],this['_baseRoots']['set'](_0x4cf734,_0x244518),this['_baseRootsAttributes']['set'](_0x4cf734,_0x1c104d),_0x3c0692&&this['_touchedRoots']['set'](_0x4cf734,_0x3c0692);const _0x4f996f=this['_makeIdsRoot'](_0x244518);this['_baseIdsRoots']['set'](_0x4cf734,_0x4f996f);for(const [_0x24561f,_0x3f6940]of _0x244518['markers']){if(!_0x24561f['startsWith']('revision:'))continue;const _0x323df1=_0x24561f['split'](':')[0x2];for(const _0x2a8fb0 of _0x3f6940['getWalker']({'singleCharacters':!0x0})){const _0x50efef=this['_getVidAttributeName'](_0x2a8fb0),_0x130381='elementEnd'==_0x2a8fb0['type']?_0x2a8fb0['previousPosition']['path']['slice'](0x0,-0x1):_0x2a8fb0['previousPosition']['path'],_0x3d088e=_0x4f996f['getNodeByPath'](_0x130381)['getAttribute'](_0x50efef);this['_touched']['set'](_0x3d088e,{'userId':_0x323df1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x588450=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2804dd=>!this['_touched']['has'](_0x2804dd));let _0x4e8bd3=0x0;const _0x115056=new Map();for(const _0x5840ca in _0x3fab72['diffData']){const _0x21812a=_0x3fab72['diffData'][_0x5840ca]['attachChange'],_0x31a382=_0x59c379(_0x3fab72['diffData'][_0x5840ca]['attributesAfter'])||{},_0x1c21d0=this['_makeModelFromViewString'](_0x3fab72['diffData'][_0x5840ca]['insertions']);_0x1c21d0['rootName']=_0x5840ca,_0x1c21d0['_isAttached']=!_0x21812a||_0x21812a['isAttached'],_0x1c21d0['isAttached']=()=>_0x1c21d0['_isAttached'],this['_diffRoots']['set'](_0x5840ca,_0x1c21d0),this['_diffRootsAttributes']['set'](_0x5840ca,_0x31a382);const _0x72a126=this['_makeIdsRoot'](_0x1c21d0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5840ca,_0x72a126),_0x115056['set'](_0x5840ca,_0x1c21d0['isAttached']()?_0x31a382:{});for(const [_0x2925ba,_0x5895b1]of _0x1c21d0['markers']){if(!_0x2925ba['startsWith']('revision:'))continue;const _0x2f0ad7=_0x2925ba['split'](':')[0x2];for(const _0x2c6c4f of _0x5895b1['getWalker']({'singleCharacters':!0x0})){const _0x1d0e04=this['_getVidAttributeName'](_0x2c6c4f),_0x34e43c=this['_revisionId']++,_0x371cde='elementEnd'==_0x2c6c4f['type']?_0x2c6c4f['previousPosition']['path']['slice'](0x0,-0x1):_0x2c6c4f['previousPosition']['path'];_0x72a126['getNodeByPath'](_0x371cde)['_setAttribute'](_0x1d0e04,_0x34e43c),this['_touched']['set'](_0x34e43c,{'userId':_0x2f0ad7});}}for(const _0x3ec8d9 of this['editor']['model']['createRangeIn'](_0x1c21d0)['getWalker']({'singleCharacters':!0x0})){const _0x56f070=this['_getVidAttributeName'](_0x3ec8d9),_0x46944e='elementEnd'==_0x3ec8d9['type']?_0x3ec8d9['previousPosition']['path']['slice'](0x0,-0x1):_0x3ec8d9['previousPosition']['path'],_0x117379=_0x72a126['getNodeByPath'](_0x46944e);_0x117379['getAttribute'](_0x56f070)>0x0||_0x117379['_setAttribute'](_0x56f070,_0x588450[_0x4e8bd3++]);}for(const [_0x460b2b,_0x24a2e7]of _0x1c21d0['markers'])_0x460b2b['startsWith']('revision:')||this['_markers']['set'](_0x460b2b,_0x24a2e7);}const _0x184abc=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x184abc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x184abc,0x1));const _0x3a5b7e=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3a5b7e),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3a5b7e,0x1));const _0x530f39=Array['from'](this['_diffRoots'])['map'](([_0x55ad41,_0x53ea9f])=>[_0x55ad41,T(_0x53ea9f)]);this['_saveMetaData'](this['_lastTo'],_0x530f39,this['_markers'],_0x115056);}['_makeModelFromViewString'](_0x571bea){const _0x594c67=JSON['parse'](_0x571bea),_0x285414=this['editor']['editing']['view']['document'],_0x24a6db=new _0x6101a3(_0x285414,_0x594c67['map'](_0x6ca511=>C(_0x6ca511,this['editor'])));return this['editor']['data']['toModel'](_0x24a6db);}['_saveMetaData'](_0x309194,_0x2a1000,_0xab6652,_0x2d83ab){const _0x5acb21=new Map(_0x2a1000),_0x2cafde=new Map(_0x59c379(_0x2d83ab)),_0x13bcb6=new Map();for(const [_0x552ff7,_0x330ca0]of _0xab6652)_0x13bcb6['set'](_0x552ff7,{'start':_0x330ca0['start']['clone'](),'end':_0x330ca0['end']['clone'](),'rootName':_0x330ca0['root']['rootName']});this['_savedMetaData']['set'](_0x309194,{'roots':_0x5acb21,'markers':_0x13bcb6,'rootsAttributes':_0x2cafde});}['_removeMetaData'](_0x320d66){this['_savedMetaData']['delete'](_0x320d66);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4242b3,_0x54ca72=null){let _0x52d74c=null;_0x4242b3['is']('documentFragment')||(_0x52d74c=new ft(_0x4242b3['name'],{'vid_start':null===_0x54ca72?this['_revisionId']++:_0x54ca72++}));const _0x4c9835=[];for(const _0x4171c0 of _0x4242b3['getChildren']())if(_0x4171c0['is']('element')){_0x4c9835['push'](this['_makeIdsRoot'](_0x4171c0,_0x54ca72));const _0x5340b8=_0x4c9835[_0x4c9835['length']-0x1];null!==_0x54ca72&&(_0x54ca72=_0x5340b8['is']('element','$text')?_0x5340b8['getAttribute']('vid')+0x1:_0x5340b8['getAttribute']('vid_end')+0x1);}else{for(let _0x1c5ac4=0x0;_0x1c5ac4<_0x4171c0['offsetSize'];_0x1c5ac4++)_0x4c9835['push'](new ft('$text',{'vid':null===_0x54ca72?this['_revisionId']++:_0x54ca72++}));}if(_0x4242b3['is']('documentFragment')){const _0x52bda1=F(_0x4242b3['rootName']);return _0x52bda1['_insertChild'](0x0,_0x4c9835),_0x52bda1;}return _0x52d74c['_setAttribute']('vid_end',null===_0x54ca72?this['_revisionId']++:_0x54ca72++),_0x52d74c['_insertChild'](0x0,_0x4c9835),_0x52d74c;}['_calculateMetaData'](_0x4809be,_0x128cf2,_0x29d6a4){this['_reset']();const {roots:_0x16d4c9,markers:_0x308277,rootsAttributes:_0x584a58}=this['_savedMetaData']['get'](_0x4809be);this['_baseRoots']=new Map(_0x16d4c9),this['_baseRootsAttributes']=new Map(_0x59c379(_0x584a58));for(const [_0x510297,_0xc0333a]of this['_baseRoots'])if('$graveyard'!==_0x510297&&(this['_diffRoots']['set'](_0x510297,T(_0xc0333a)),this['_diffRootsAttributes']=new Map(_0x59c379(_0x584a58)),_0x29d6a4)){const _0x61d726=this['_revisionId'];this['_idsRoots']['set'](_0x510297,this['_makeIdsRoot'](_0xc0333a)),this['_baseIdsRoots']['set'](_0x510297,this['_makeIdsRoot'](_0xc0333a,_0x61d726));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x29d6a4&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x194a0f,_0x2e0b29]of _0x308277){const _0x9375af=this['_baseRoots']['get'](_0x2e0b29['rootName']),_0xfd4e67=this['_diffRoots']['get'](_0x2e0b29['rootName']),_0x2b5182=new vt(this['_fixPosition'](_0x2e0b29['start'],_0x9375af),this['_fixPosition'](_0x2e0b29['end'],_0x9375af)),_0x2b903d=this['_fixRange'](_0x2b5182,_0xfd4e67);_0x9375af['markers']['set'](_0x194a0f,_0x2b5182),this['_markers']['set'](_0x194a0f,_0x2b903d);}this['_applyOperations'](_0x4809be,_0x128cf2,_0x29d6a4);}['_applyOperations'](_0x1ff04c,_0x2d003c,_0x15fe00){for(const _0x193b34 of this['source']['getOperations'](_0x1ff04c,_0x2d003c))this['_handleOperation'](_0x193b34,_0x15fe00);for(const _0x3c039c of this['_diffRoots']['values']())_0x3c039c['markers']['clear']();for(const [_0x5be86b,_0x2df787]of this['_markers']){this['_diffRoots']['get'](_0x2df787['root']['rootName'])['markers']['set'](_0x5be86b,_0x2df787['clone']());}const _0x145f18=new Map(),_0x259f28=new Map();for(const [_0x5f227a,_0x59e89a]of this['_diffRoots'])_0x145f18['set'](_0x5f227a,T(_0x59e89a)),_0x259f28['set'](_0x5f227a,this['_diffRootsAttributes']['get'](_0x5f227a));this['_saveMetaData'](_0x2d003c,_0x145f18,this['_markers'],_0x259f28);}['_getPreviousFrom'](_0x5ad655){const _0x2cae19=Array['from'](this['_savedMetaData']['keys']());_0x2cae19['sort']((_0x4282c7,_0x5547ae)=>_0x4282c7-_0x5547ae),_0x2cae19['reverse']();for(const _0x15b600 of _0x2cae19)if(_0x15b600<_0x5ad655)return _0x15b600;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xde60bf,_0x597cf2){const _0x70c025=Array['from'](_0x597cf2['markers'])['map'](([_0xd0d4e8,_0xf8a494])=>[_0xd0d4e8,this['_fixRange'](_0xf8a494,_0xde60bf)]);_0xde60bf['markers']=new Map(_0x70c025);}['_transformMarkers'](_0x340f04){for(const _0x4b3cd8 of this['_markers']['values']()){const _0x2ef40b=_0x4b3cd8['getTransformedByOperation'](_0x340f04),_0x1b14ad=vt['_createFromRanges'](_0x2ef40b);_0x4b3cd8['start']=_0x1b14ad['start'],_0x4b3cd8['end']=_0x1b14ad['end'];}}['_handleOperation'](_0x5e9a0a,_0x4a3793){if('addRoot'!=_0x5e9a0a['type']&&'detachRoot'!=_0x5e9a0a['type']){if('insert'==_0x5e9a0a['type']){const _0x386f2d=_0x5e9a0a['position']['root']['rootName'];this['_diffRoots']['has'](_0x386f2d)||(this['_diffRoots']['set'](_0x386f2d,F(_0x386f2d,!0x0)),this['_diffRootsAttributes']['set'](_0x386f2d,{}),_0x4a3793&&this['_idsRoots']['set'](_0x386f2d,F(_0x386f2d,!0x0)));}else{if('addRootAttribute'==_0x5e9a0a['type']||'removeRootAttribute'==_0x5e9a0a['type']||'changeRootAttribute'==_0x5e9a0a['type'])return void this['_handleRootAttributeOperation'](_0x5e9a0a);'marker'==_0x5e9a0a['type']&&this['_handleMarkerOperation'](_0x5e9a0a);}if('marker'!==_0x5e9a0a['type']){const _0x27b4fd=this['_cloneOperation'](_0x5e9a0a,this['_diffRoots']);_0x27b4fd['_execute'](),this['_transformMarkers'](_0x27b4fd);}if(_0x4a3793)switch(_0x5e9a0a['type']){case'insert':this['_handleInsertOperation'](_0x5e9a0a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5e9a0a);break;case'merge':this['_handleMergeOperation'](_0x5e9a0a);break;case'split':this['_handleSplitOperation'](_0x5e9a0a);}}else this['_handleRootOperation'](_0x5e9a0a,_0x4a3793);}['_cloneOperation'](_0xbf6266,_0x5b548e){const _0x59462e=_0xbf6266['clone']();return _0x59462e['_authorId']=_0xbf6266['_authorId'],this['_fixOperation'](_0x59462e,_0x5b548e),_0x59462e;}['_getBaseVids'](_0x51d019){return _0x51d019['map'](_0x303ba6=>{const _0x4b298b=this['_getVidAttributeName'](_0x303ba6);return Number(_0x303ba6['item']['getAttribute'](_0x4b298b));});}['_generateTape'](_0x390faa,_0x13376d){if(_0x390faa['is']('element','$text'))_0x13376d['push']({'item':_0x390faa,'type':'text'});else{_0x390faa['is']('element')&&_0x13376d['push']({'item':_0x390faa,'type':'elementStart'});for(const _0x6f6274 of _0x390faa['getChildren']())this['_generateTape'](_0x6f6274,_0x13376d);_0x390faa['is']('element')&&_0x13376d['push']({'item':_0x390faa,'type':'elementEnd'});}return _0x13376d;}['_getState'](){const _0xe3b1ee=new Map(this['_touched']),_0x3d0161=new Map(_0xe3b1ee),_0x698a12=new Map(),_0x2d0183={'insertions':{},'deletions':{}},_0xb68ce4={'insertions':{},'deletions':{}},_0x3ee962=new Map(),_0x16690a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x16690a['delete']('$graveyard');for(const _0x76f09b of _0x16690a){const _0x2b966c=this['_diffRoots']['get'](_0x76f09b)||F(_0x76f09b,!0x1),_0x3da6de=this['_baseRoots']['get'](_0x76f09b)||F(_0x76f09b,!0x1);_0x2b966c['isAttached']()||_0x3da6de['isAttached']()?(_0x2d0183['insertions'][_0x76f09b]=T(_0x2b966c),_0x2d0183['deletions'][_0x76f09b]=T(_0x3da6de),this['_copyMarkers'](_0x2d0183['deletions'][_0x76f09b],_0x3da6de),this['_copyMarkers'](_0x2d0183['insertions'][_0x76f09b],_0x2b966c),_0xb68ce4['insertions'][_0x76f09b]=this['_generateTape'](this['_idsRoots']['get'](_0x76f09b),[]),_0xb68ce4['deletions'][_0x76f09b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x76f09b)||F(_0x76f09b,!0x1),[])):_0x16690a['delete'](_0x76f09b);}for(const _0x159822 of _0x16690a){const _0xd38e07=_0xb68ce4['insertions'][_0x159822];for(const _0x3100df of _0xd38e07){const _0x2c7d2e=this['_getVidAttributeName'](_0x3100df),_0x3575e4=_0x3100df['item']['getAttribute'](_0x2c7d2e);_0x3d0161['delete'](_0x3575e4),_0x3575e4>=this['_startingRevisionId']&&_0x698a12['set'](_0x3575e4,_0xe3b1ee['get'](_0x3575e4));}}for(const _0x223bf6 of _0x16690a){const _0x51bd86=_0xb68ce4['insertions'][_0x223bf6],_0x38d09c=this['_getBaseVids'](_0xb68ce4['deletions'][_0x223bf6]);let _0x115395=0x0;for(const _0x50f5a5 of _0x51bd86){const _0x1d1ae6=this['_getVidAttributeName'](_0x50f5a5),_0x3b2787=_0x50f5a5['item']['getAttribute'](_0x1d1ae6);if(!_0x698a12['has'](_0x3b2787)&&!_0x3ee962['has'](_0x3b2787)){if(_0x3d0161['has'](_0x3b2787))_0x115395++;else{if(_0x3b2787!=_0x38d09c[_0x115395]){const _0x5f442b=_0xe3b1ee['get'](_0x3b2787)||_0xe3b1ee['get'](_0x38d09c[_0x115395]);for(;_0x3b2787!=_0x38d09c[_0x115395];)_0x3d0161['has'](_0x38d09c[_0x115395])||(_0x3ee962['set'](_0x38d09c[_0x115395],_0x5f442b),_0xe3b1ee['set'](_0x38d09c[_0x115395],_0x5f442b)),_0x115395++;}_0x115395++;}}}}for(const _0x58429d of _0x16690a){const _0x23f501=_0xb68ce4['insertions'][_0x58429d];for(const _0x3e2776 of _0x23f501){const _0x285793=this['_getVidAttributeName'](_0x3e2776),_0x5f0449=_0x3e2776['item']['getAttribute'](_0x285793);if(_0x3ee962['has'](_0x5f0449)){const _0x2c44ce=_0x3ee962['get'](_0x5f0449);_0x3d0161['has'](_0x5f0449)||_0x3d0161['set'](_0x5f0449,{..._0x2c44ce}),_0x698a12['set'](_0x5f0449,{..._0x2c44ce});}}}for(const _0x2b5c35 of _0x3d0161['keys']())_0x2b5c35>=this['_startingRevisionId']&&_0x3d0161['delete'](_0x2b5c35);const _0x29751d=new Map();for(const _0x155846 of _0x16690a){let _0x4f431d=_0xb68ce4['insertions'][_0x155846];for(const _0x36837b of _0x4f431d)if(_0x36837b['item']['is']('element','tableCell')){const _0x174b73=this['_getVidAttributeName'](_0x36837b),_0x553187=_0x36837b['item']['getAttribute'](_0x174b73);if(_0x698a12['has'](_0x553187)){const _0x36329b=_0x36837b['item']['parent']['parent']['getAttribute']('vid_start'),_0x96e8e0=_0x29751d['get'](_0x36329b)||new Set();_0x96e8e0['add'](_0x698a12['get'](_0x553187)['userId']),_0x29751d['set'](_0x36329b,_0x96e8e0);}}_0x4f431d=_0xb68ce4['deletions'][_0x155846];for(const _0x376ba8 of _0x4f431d)if(_0x376ba8['item']['is']('element','tableCell')){const _0x54a692=this['_getVidAttributeName'](_0x376ba8),_0x59a83c=_0x376ba8['item']['getAttribute'](_0x54a692);if(_0x3d0161['has'](_0x59a83c)){const _0x231e34=_0x376ba8['item']['parent']['parent']['getAttribute']('vid_start'),_0x1f0258=_0x29751d['get'](_0x231e34)||new Set();_0x1f0258['add'](_0x3d0161['get'](_0x59a83c)['userId']),_0x29751d['set'](_0x231e34,_0x1f0258);}}for(const _0x3d4021 of _0x29751d['keys']())(_0x698a12['has'](_0x3d4021)||_0x3d0161['has'](_0x3d4021))&&_0x29751d['delete'](_0x3d4021);}for(const _0x3977ed of _0x16690a){const _0x310e42=_0xb68ce4['insertions'][_0x3977ed];let _0x460065=null,_0x1036eb=null;for(const _0x36148f of _0x310e42){const _0x16f28f=this['_getVidAttributeName'](_0x36148f),_0x2537e1=_0x36148f['item']['getAttribute'](_0x16f28f),_0x1fcc6a=_0x29751d['get'](_0x2537e1);_0x1fcc6a&&'elementStart'==_0x36148f['type']&&(_0x460065=Array['from'](_0x1fcc6a)[0x0],_0x1036eb=_0x36148f['item']['getAttribute']('vid_end')),_0x460065&&(_0x3d0161['set'](_0x2537e1,{'userId':_0x460065}),_0x698a12['set'](_0x2537e1,{'userId':_0x460065})),_0x2537e1==_0x1036eb&&(_0x460065=null,_0x1036eb=null);}}const _0x472444={},_0x19748c=new Set();for(const _0x3f3d93 of _0x16690a){const _0x4ccb12=_0x2d0183['deletions'][_0x3f3d93],_0x579e48=_0x2d0183['insertions'][_0x3f3d93];for(const {userId:_0x4c9483}of this['_touchedMarkers']['values']())null!==_0x4c9483&&_0x19748c['add'](_0x4c9483);for(const {userId:_0x2f78e3}of this['_touchedRoots']['values']())null!==_0x2f78e3&&_0x19748c['add'](_0x2f78e3);this['_markChanges'](_0x579e48,_0xb68ce4['insertions'][_0x3f3d93],_0x698a12,'insertion',_0x19748c),this['_markChanges'](_0x4ccb12,_0xb68ce4['deletions'][_0x3f3d93],_0x3d0161,'deletion',_0x19748c),_0x472444[_0x3f3d93]={'insertions':this['_prepareViewToSave'](_0x579e48),'deletions':this['_prepareViewToSave'](_0x4ccb12),'attachChange':this['_touchedRoots']['get'](_0x3f3d93)||null,'attributesBefore':_0x59c379(this['_baseRootsAttributes']['get'](_0x3f3d93))||{},'attributesAfter':_0x59c379(this['_diffRootsAttributes']['get'](_0x3f3d93))};}return{'diffData':_0x472444,'authorsIds':Array['from'](_0x19748c)};}['_processRootBeforeSave'](_0x28b051){for(const [,_0x36b629]of _0x28b051['markers']){const _0x2e44d7=_0x36b629['start']['getAncestors']()['filter'](_0x251496=>'tableCell'==_0x251496['name']);for(const _0x5aa0ce of _0x2e44d7)0x1==_0x5aa0ce['childCount']&&_0x5aa0ce['getChild'](0x0)['is']('element','paragraph')&&_0x5aa0ce['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4c2ffe){this['_processRootBeforeSave'](_0x4c2ffe);const _0xe451cf=this['editor']['data']['toView'](_0x4c2ffe,{}),_0x1f6deb=Array['from'](_0xe451cf['getChildren']())['map'](_0x36844b=>this['_getViewJson'](_0x36844b));return JSON['stringify'](_0x1f6deb);}['_getViewJson'](_0x1b6439){if(_0x1b6439['is']('$text'))return _0x1b6439['data'];{const _0x3f9f96=_0x1b6439;return{'type':Object['keys'](P)['find'](_0x45359f=>_0x1b6439 instanceof P[_0x45359f]),'name':_0x3f9f96['name'],'attributes':Array['from'](_0x3f9f96['getAttributes']()),'children':Array['from'](_0x3f9f96['getChildren']())['map'](_0x574a48=>this['_getViewJson'](_0x574a48))};}}['_markChanges'](_0x64d034,_0x36e0cd,_0x522712,_0x494cf6,_0x3ce0b2){let _0x2ce10c=null,_0x57fbfa=null,_0x27e7fa=0x0;const _0x201fef=this['editor']['model'];for(let _0x4ea10e=0x0;_0x4ea10e<_0x36e0cd['length'];_0x4ea10e++){const _0x3c11cf=this['_getVidAttributeName'](_0x36e0cd[_0x4ea10e]),_0x19a8d2=_0x36e0cd[_0x4ea10e]['item']['getAttribute'](_0x3c11cf),_0x1ed6a=_0x522712['get'](_0x19a8d2),_0x9117ac=_0x4ea10e==_0x36e0cd['length']-0x1;(!_0x2ce10c&&_0x1ed6a&&(_0x2ce10c=_0x1ed6a,_0x57fbfa=_0x36e0cd[_0x4ea10e]),_0x2ce10c&&(!_0x1ed6a||_0x1ed6a['userId']!=_0x2ce10c['userId']))&&(_0x1b3813(_0x1ed6a,B(_0x57fbfa,_0x64d034,_0x201fef),B(_0x36e0cd[_0x4ea10e],_0x64d034,_0x201fef)),_0x2ce10c=_0x1ed6a||null,_0x57fbfa=_0x1ed6a?_0x36e0cd[_0x4ea10e]:null),_0x2ce10c&&_0x9117ac&&_0x1b3813(_0x1ed6a,B(_0x57fbfa,_0x64d034,_0x201fef),J(_0x36e0cd[_0x4ea10e],_0x64d034,_0x201fef));}function _0x1b3813(_0x1e4245,_0x4c033d,_0x3646df){const _0x1c3777=_0x2ce10c['userId'],_0x3fce18='revision:'+_0x494cf6+':'+_0x1c3777+':'+_0x27e7fa++,_0x357dab=_0x201fef['createRange'](_0x4c033d,_0x3646df);_0x64d034['markers']['set'](_0x3fce18,_0x357dab),null!==_0x1c3777&&_0x3ce0b2['add'](_0x1c3777);}}['_getVidAttributeName'](_0x1df6e3){switch(_0x1df6e3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1137c3,_0x45d239){_0x1137c3['baseVersion']=null;for(const _0x33c52d in _0x1137c3){const _0x12fdf7=_0x1137c3[_0x33c52d];if(_0x12fdf7 instanceof gt){const _0x3035e3=_0x45d239['get'](_0x12fdf7['root']['rootName']);_0x1137c3[_0x33c52d]=this['_fixPosition'](_0x12fdf7,_0x3035e3);}if(_0x12fdf7 instanceof vt){const _0x3587f4=_0x45d239['get'](_0x12fdf7['root']['rootName']);_0x1137c3[_0x33c52d]=this['_fixRange'](_0x12fdf7,_0x3587f4);}'root'===_0x33c52d&&(_0x1137c3['root']=_0x45d239['get'](_0x1137c3['root']['rootName']));}}['_fixRange'](_0x145e1a,_0x296df7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x145e1a['start'],_0x296df7),this['_fixPosition'](_0x145e1a['end'],_0x296df7));}['_fixPosition'](_0x1817a7,_0x16006c){return this['editor']['model']['createPositionFromPath'](_0x16006c,_0x1817a7['path'],_0x1817a7['stickiness']);}['_handleInsertOperation'](_0x3ef307){const _0x27880d=this['_idsRoots']['get'](_0x3ef307['position']['root']['rootName']),_0x37aa94=this['_fixPosition'](_0x3ef307['position'],_0x27880d),_0xe85de=null===_0x3ef307['_authorId']?null:_0x3ef307['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x42a56c=_0x37aa94['parent'],_0xb60b0b=this['_revisionId'],_0x3f7bd0=[];for(const _0x238acb of _0x3ef307['nodes'])if(_0x238acb['is']('element'))_0x3f7bd0['push'](this['_makeIdsRoot'](_0x238acb));else{for(let _0xb9c613=0x0;_0xb9c613<_0x238acb['offsetSize'];_0xb9c613++)_0x3f7bd0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2e37f9=this['_revisionId'];for(let _0x55f388=_0xb60b0b;_0x55f388<_0x2e37f9;_0x55f388++)this['_touched']['set'](_0x55f388,{'userId':_0xe85de});_0x42a56c['_insertChild'](_0x37aa94['offset'],_0x3f7bd0);}['_handleMoveOperation'](_0xfa6be1){(_0xfa6be1=this['_cloneOperation'](_0xfa6be1,this['_idsRoots']))['_execute']();const _0x343251=null===_0xfa6be1['_authorId']?null:_0xfa6be1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58b679=_0xfa6be1['getMovedRangeStart'](),_0x22fe9b=_0x58b679['parent'],_0x2672a1=_0x58b679['offset'];!function _0x58a5b0(_0x561eef,_0x1b00ce,_0x43516,_0x517fcc){for(let _0x3861e7=_0x43516;_0x3861e7<_0x517fcc;_0x3861e7++){const _0x552f0b=_0x1b00ce['getChild'](_0x3861e7);_0x552f0b['is']('element','$text')?_0x561eef['set'](_0x552f0b['getAttribute']('vid'),{'userId':_0x343251}):(_0x561eef['set'](_0x552f0b['getAttribute']('vid_start'),{'userId':_0x343251}),_0x58a5b0(_0x561eef,_0x552f0b,0x0,_0x552f0b['childCount']),_0x561eef['set'](_0x552f0b['getAttribute']('vid_end'),{'userId':_0x343251}));}}(this['_touched'],_0x22fe9b,_0x2672a1,_0x2672a1+_0xfa6be1['howMany']);}['_handleMergeOperation'](_0x464139){const _0x1f38d7=null===(_0x464139=this['_cloneOperation'](_0x464139,this['_idsRoots']))['_authorId']?null:_0x464139['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23a54c=_0x464139['targetPosition']['parent'],_0x2a1ae3=_0x464139['sourcePosition']['parent'],_0x470fd9=_0x23a54c['getAttribute']('vid_end'),_0x228033=_0x2a1ae3['getAttribute']('vid_start');_0x23a54c['_setAttribute']('vid_end',_0x2a1ae3['getAttribute']('vid_end')),_0x2a1ae3['_setAttribute']('vid_end',_0x470fd9),this['_touched']['set'](_0x228033,{'userId':_0x1f38d7}),this['_touched']['set'](_0x470fd9,{'userId':_0x1f38d7}),_0x464139['_execute']();}['_handleSplitOperation'](_0xf8442a){const _0x13aa47=null===(_0xf8442a=this['_cloneOperation'](_0xf8442a,this['_idsRoots']))['_authorId']?null:_0xf8442a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f55d9=_0xf8442a['graveyardPosition'],_0x30048f=_0xf8442a['splitPosition']['parent'];_0xf8442a['_execute']();const _0x1017ac=_0x30048f['getAttribute']('vid_end'),_0xd972c7=_0xf8442a['insertionPosition']['nodeAfter'];if(_0x1f55d9){const _0x29e3fd=_0xd972c7['getAttribute']('vid_end'),_0x3325b9=_0x30048f['getAttribute']('vid_end');_0x30048f['_setAttribute']('vid_end',_0x29e3fd),_0xd972c7['_setAttribute']('vid_end',_0x3325b9),this['_touched']['set'](_0x30048f['getAttribute']('vid_end'),{'userId':_0x13aa47}),this['_touched']['set'](_0xd972c7['getAttribute']('vid_start'),{'userId':_0x13aa47});}else{const _0x144022=this['_revisionId']++,_0x29a670=this['_revisionId']++;_0x30048f['_setAttribute']('vid_end',_0x144022),_0xd972c7['_setAttribute']('vid_start',_0x29a670),_0xd972c7['_setAttribute']('vid_end',_0x1017ac),this['_touched']['set'](_0x144022,{'userId':_0x13aa47}),this['_touched']['set'](_0x29a670,{'userId':_0x13aa47});}}['_handleMarkerOperation'](_0x14f200){if(!_0x14f200['affectsData'])return;const _0x6123a9=(_0x14f200=this['_cloneOperation'](_0x14f200,this['_diffRoots']))['oldRange']?_0x14f200['oldRange']['root']:null,_0x116ae8=_0x14f200['newRange']?_0x14f200['newRange']['root']:null;_0x6123a9&&this['_markers']['delete'](_0x14f200['name']),_0x116ae8&&this['_markers']['set'](_0x14f200['name'],_0x14f200['newRange']['clone']());const _0x4127ab=null===_0x14f200['_authorId']?null:_0x14f200['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x412671=_0x14f200['name'];if(!this['_touchedMarkers']['has'](_0x412671))return void this['_touchedMarkers']['set'](_0x412671,{'range':_0x14f200['oldRange'],'userId':_0x4127ab});const _0x316759=this['_touchedMarkers']['get'](_0x412671),_0x3d0107=_0x316759['range'],_0x1d7f8c=_0x14f200['newRange'];null==_0x3d0107&&null==_0x1d7f8c||_0x3d0107&&_0x1d7f8c&&_0x3d0107['isEqual'](_0x1d7f8c)?this['_touchedMarkers']['delete'](_0x14f200['name']):_0x316759['userId']=_0x4127ab;}['_handleRootOperation'](_0x135c0c,_0x5dc68e){this['_diffRoots']['has'](_0x135c0c['rootName'])?this['_diffRoots']['get'](_0x135c0c['rootName'])['_isAttached']=_0x135c0c['isAdd']:(this['_diffRoots']['set'](_0x135c0c['rootName'],F(_0x135c0c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x135c0c['rootName'],{}),_0x5dc68e&&this['_idsRoots']['set'](_0x135c0c['rootName'],F(_0x135c0c['rootName'],!0x0)));const _0x147279=null===_0x135c0c['_authorId']?null:_0x135c0c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58bc8d=this['_touchedRoots']['get'](_0x135c0c['rootName']);_0x58bc8d&&_0x58bc8d['userId']===_0x147279?this['_touchedRoots']['delete'](_0x135c0c['rootName']):this['_touchedRoots']['set'](_0x135c0c['rootName'],{'userId':_0x147279,'isAttached':_0x135c0c['isAdd']});}['_handleRootAttributeOperation'](_0xbf57cd){const _0x3fcbad=this['_diffRootsAttributes']['get'](_0xbf57cd['root']['rootName']);null===_0xbf57cd['newValue']?delete _0x3fcbad[_0xbf57cd['key']]:_0x3fcbad[_0xbf57cd['key']]=_0xbf57cd['newValue'];}}function T(_0x4d5012){const _0x59337f=F(_0x4d5012['rootName'],_0x4d5012['isAttached']());for(const _0x33f4a9 of _0x4d5012['getChildren']()){const _0x2b9e1b=_0x33f4a9['_clone'](!0x0);_0x59337f['_appendChild'](_0x2b9e1b);}return _0x59337f;}function F(_0x1e1bfc,_0x751b8b=!0x0){const _0x572b3a=new mt();return _0x572b3a['rootName']=_0x1e1bfc,_0x572b3a['_isAttached']=_0x751b8b,_0x572b3a['isAttached']=()=>_0x572b3a['_isAttached'],_0x572b3a;}function B(_0x5b24f6,_0x38d1fb,_0x309dac){const _0x13e7c6='elementEnd'==_0x5b24f6['type']?_0x309dac['createPositionAt'](_0x5b24f6['item'],'end'):_0x309dac['createPositionBefore'](_0x5b24f6['item']);return _0x309dac['createPositionFromPath'](_0x38d1fb,_0x13e7c6['path'],_0x13e7c6['stickiness']);}function J(_0x2643ac,_0x4db6ca,_0x4a8e50){const _0x52dfbb='elementStart'==_0x2643ac['type']?_0x4a8e50['createPositionAt'](_0x2643ac['item'],0x0):_0x4a8e50['createPositionAfter'](_0x2643ac['item']);return _0x4a8e50['createPositionFromPath'](_0x4db6ca,_0x52dfbb['path'],_0x52dfbb['stickiness']);}class ns extends _0x528dcf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x31ef8c,_0x56b5aa){super(_0x31ef8c),this['focusTracker']=new _0xb27f23(),this['keystrokes']=new _0x2f98cd(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x56b5aa),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x4fb8d0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x467afb=_0x10e4d5=>_0x10e4d5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x467afb),this['keystrokes']['set']('arrowleft',_0x467afb),this['keystrokes']['set']('arrowup',_0x467afb),this['keystrokes']['set']('arrowdown',_0x467afb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x16b312){this['revisionNameInputView']['fieldView']['element']['value']=_0x16b312['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4accaa){const _0x488db0=new nt(this['locale'],_0x554978),_0x3d3771=_0x488db0['fieldView'];_0x3d3771['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2feb44=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4accaa&&(_0x2feb44+='\x20('+m(this['locale'],'optional')+')'),(_0x488db0['label']=_0x2feb44,_0x3d3771['on']('input',()=>{this['revisionNameInputValue']=_0x3d3771['element']['value']['trim']();}),_0x488db0);}}class u extends _0x2fef22{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x397ad1=this['editor'],_0x3b46c7=_0x397ad1['plugins']['get']('RevisionTracker');_0x397ad1['ui']['componentFactory']['add']('revisionHistory',_0x5852e6=>{const _0x451d7b=_0x3dbdae(_0x5852e6),_0xe5678d=_0x451d7b['panelView']['children'],_0x45c9e8=new te(_0x5852e6),_0x4c3d0f=new _0x1901fe(_0x5852e6),_0x301b29=new _0x4fe6e(_0x5852e6),_0x15b4d4=new _0x1901fe(_0x5852e6),_0x4c5d5f=new _0x4fe6e(_0x5852e6);return _0x451d7b['bind']('isEnabled')['to'](_0x3b46c7,'isReady',_0x3b46c7,'isEnabled',_0x397ad1,'isReadOnly',(_0x2722ca,_0x3f2ffa,_0x29e546)=>_0x2722ca&&_0x3f2ffa&&!_0x29e546),_0x451d7b['buttonView']['set']({'icon':_0x34d699['history'],'label':m(_0x5852e6,'Revision\x20history'),'tooltip':!0x0}),_0x301b29['set']({'label':m(_0x5852e6,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x301b29['bind']('isEnabled')['to'](_0x3b46c7,'isReady',_0x3b46c7,'isEnabled',_0x397ad1,'isReadOnly',(_0xf8d9e4,_0x47c56b,_0x365053)=>_0xf8d9e4&&_0x47c56b&&!_0x365053),_0x301b29['on']('execute',()=>this['_showDialog']()),_0x4c5d5f['set']({'label':m(_0x5852e6,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4c5d5f['bind']('isEnabled')['to'](_0x3b46c7,'isReady',_0x397ad1,'isReadOnly',(_0xf7b827,_0x3cd54b)=>_0xf7b827&&!_0x3cd54b),_0x4c5d5f['on']('execute',()=>{_0x397ad1['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x451d7b['isOpen']=!0x1,_0x397ad1['editing']['view']['focus']();}),_0x4c3d0f['children']['add'](_0x301b29),_0x15b4d4['children']['add'](_0x4c5d5f),_0x45c9e8['role']='menu',_0x45c9e8['items']['addMany']([_0x4c3d0f,_0x15b4d4]),_0xe5678d['add'](_0x45c9e8),_0x451d7b;}),_0x397ad1['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2cb96b=this['editor'],_0x435488=_0x2cb96b['locale'],_0x317a8d=new _0x3d86ff(_0x435488),_0x4929e5=new _0x13c692(_0x435488);_0x317a8d['buttonView']['set']({'icon':_0x34d699['history'],'label':m(_0x435488,'Revision\x20history')});const _0x4b11af=new _0x2afb6c(_0x435488,_0x317a8d),_0x5c51ed=new _0x537475(_0x435488);_0x5c51ed['set']({'label':m(_0x435488,'Save\x20current\x20revision')}),_0x5c51ed['delegate']('execute')['to'](_0x317a8d),_0x5c51ed['on']('execute',()=>{this['_showDialog']();}),_0x4b11af['children']['add'](_0x5c51ed),_0x4929e5['items']['add'](_0x4b11af);const _0x1194ad=new _0x2afb6c(_0x435488,_0x317a8d),_0x25e108=new _0x537475(_0x435488);return _0x25e108['set']({'label':m(_0x435488,'Open\x20revision\x20history')}),_0x25e108['delegate']('execute')['to'](_0x317a8d),_0x25e108['on']('execute',()=>{_0x2cb96b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1194ad['children']['add'](_0x25e108),_0x4929e5['items']['add'](_0x1194ad),_0x317a8d['panelView']['children']['add'](_0x4929e5),_0x317a8d;}['_showDialog'](){const _0x5de9be=this['editor'],_0x2e2a2e=_0x5de9be['locale'],_0x43a2d2=_0x5de9be['plugins']['get']('Dialog'),_0x5f27d4=_0x5de9be['plugins']['get']('RevisionTracker');function _0x5045e7(_0x48432c){_0x5de9be['config']['get']('revisionHistory.requireRevisionName')&&''===_0x48432c['revisionName']?_0x48432c['revisionNameInputView']['errorText']=m(_0x2e2a2e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5de9be['plugins']['get'](l)['saveRevision']({'name':_0x48432c['revisionName']}),_0x43a2d2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5045e7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x43a2d2['show']({'id':'revisionSave','title':m(_0x2e2a2e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5de9be['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x43a2d2['hide']()},{'label':m(_0x5de9be['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x57d916){_0x57d916['bind']('isEnabled')['to'](_0x5f27d4,'isReady',_0x5f27d4,'isEnabled',_0x5de9be,'isReadOnly',(_0x5925d8,_0xa6e0a1,_0x984873)=>_0x5925d8&&_0xa6e0a1&&!_0x984873);},'onExecute':()=>_0x5045e7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1a0c02=this['editor'],_0x4d9160=_0x1a0c02['locale'];this['_saveRevisionFormView']=new ns(_0x4d9160,_0x1a0c02['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x528dcf{['changeId'];['_model'];constructor(_0x4a1085,_0x3c920c){super(_0x4a1085),this['_model']=_0x3c920c,this['changeId']=_0x3c920c['id'];const _0x52d318=this['bindTemplate'],_0x5d472e=m(_0x4a1085,_0x3c920c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3c920c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3c920c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x52d318['to']('type',_0x3bcd11=>'ck-revision-change__'+_0x3bcd11)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5d472e}]},{'text':'\x20'+_0x3c920c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x12fb33(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x565808){super(),this['id']=_0x565808['id']||_0x32a6fe(),this['author']=_0x565808['author'],this['type']=_0x565808['type'],this['data']=_0x565808['data']||{},this['rootName']=_0x565808['rootName'],this['set']('createdAt',_0x565808['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2f2aac,_0x74f5f2){this['newRevisionId']=_0x2f2aac,this['oldRevisionId']=_0x74f5f2,this['changes']=new _0x23661b();}['_setChanges'](_0x4bd5dc){for(const _0x994878 of _0x4bd5dc)this['changes']['add'](_0x994878);}}const Y={'c':_0x49693b,'a':_0x2f3d25,'e':_0x25f8d8,'r':_0x534049,'u':_0x113697};class d extends _0x2fef22{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x358dd5,_0x63332b,j];}constructor(_0x34e44d){super(_0x34e44d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x163478,_0x2f5220,_0x304cd5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3d3c2c=>{for(const _0x33a945 of this['editor']['editing']['view']['document']['roots'])_0x304cd5?_0x3d3c2c['removeClass']('ck-editor__editable__overlay',_0x33a945):_0x3d3c2c['addClass']('ck-editor__editable__overlay',_0x33a945);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2a0f25=>null!==_0x2a0f25),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3ce9d8,_0x115b91,_0x164583)=>_0x3ce9d8&&_0x164583?_0x115b91['changes']['getIndex'](_0x164583):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x23c38e,_0x4a01b6)=>_0x23c38e?_0x4a01b6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x63332b);}['init'](){const _0x4e666d=this['editor'],_0xb35628=new yt(_0x4e666d,{'direction':'backward'}),_0x9528d6=new yt(_0x4e666d,{'direction':'forward'});(_0x4e666d['commands']['add']('showPreviousChange',_0xb35628),_0x4e666d['commands']['add']('showNextChange',_0x9528d6),_0x4e666d['commands']['add']('restoreRevision',new _t(_0x4e666d)),this['on']('change:numberOfChanges',()=>{_0xb35628['refresh'](),_0x9528d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4e666d['enableReadOnlyMode']('revision-viewer'),_0x4e666d['plugins']['has']('WidgetToolbarRepository'))&&_0x4e666d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x58dace){await this['loadRevisionData'](_0x58dace);const _0x337ac7={};for(const _0x53a24e in _0x58dace['diffData']){if(_0x58dace['diffData'][_0x53a24e]['attachChange']&&!_0x58dace['diffData'][_0x53a24e]['attachChange']['isAttached'])continue;const _0x4f02bb=this['_removeRevisionMarkers'](JSON['parse'](_0x58dace['diffData'][_0x53a24e]['insertions'])),_0x3afe41=this['editor']['editing']['view']['document'],_0x145e81=new _0x6101a3(_0x3afe41,_0x4f02bb['map'](_0x57635c=>this['_getViewObj'](_0x57635c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x337ac7[_0x53a24e]=this['editor']['data']['processor']['toData'](_0x145e81),this['editor']['data']['processor']['useFillerType']('default');}return _0x337ac7;}async['getRevisionRootsAttributes'](_0x216f19){await this['loadRevisionData'](_0x216f19);const _0x41da84={};for(const _0x530679 in _0x216f19['diffData'])_0x216f19['diffData'][_0x530679]['attachChange']&&!_0x216f19['diffData'][_0x530679]['attachChange']['isAttached']||(_0x41da84[_0x530679]=_0x216f19['diffData'][_0x530679]['attributesAfter']||{});return _0x41da84;}['_removeRevisionMarkers'](_0x46538f){return(_0x46538f=_0x46538f['filter'](_0x4a2144=>!_0x4a2144['name']||'revision-start'!==_0x4a2144['name']&&'revision-end'!==_0x4a2144['name']))['forEach'](_0x121dbd=>{'string'!=typeof _0x121dbd&&(_0x121dbd['children']=this['_removeRevisionMarkers'](_0x121dbd['children']),_0x121dbd['attributes']=_0x121dbd['attributes']['filter'](_0xc41118=>!_0xc41118[0x0]['startsWith']('data-revision-')));}),_0x46538f;}async['compare'](_0x1d416f,_0x5f3561,_0x58bbff=!0x1){if(!this['isEnabled'])return;const _0x425685=this['diff'],_0x1e76e1=this['repository'],_0x95293f='string'==typeof _0x1d416f?_0x1e76e1['getRevision'](_0x1d416f):_0x1d416f,_0x55f6c1='string'==typeof _0x5f3561?_0x1e76e1['getRevision'](_0x5f3561):_0x5f3561,_0x6ae1a4=_0x95293f['id'],_0x336943=_0x55f6c1?_0x55f6c1['id']:null;if(!_0x58bbff&&this['diff']&&this['diff']['newRevisionId']===_0x6ae1a4&&this['diff']['oldRevisionId']===_0x336943)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x6ae1a4,_0x336943);const _0x2e8a40=this['_getRevisionsRange'](_0x95293f,_0x55f6c1,!0x0)['map'](_0x5b4f4c=>this['loadRevisionData'](_0x5b4f4c));return _0x2e8a40['push'](new Promise(_0x1dcca8=>{setTimeout(_0x1dcca8,0x14);})),Promise['all'](_0x2e8a40)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xdd865b=this['_getDiff'](_0x6ae1a4,_0x336943);for(const _0x10cd2e of _0xdd865b['changes'])this['_changeIdToChange']['set'](_0x10cd2e['id'],_0x10cd2e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x395a19=>{for(const _0x7f3cd5 of this['editor']['model']['document']['getRootNames']())_0x395a19['detachRoot'](_0x7f3cd5);for(const _0x377d4b of Object['keys'](_0xdd865b['model'])){const _0x64d489=_0x395a19['addRoot'](_0x377d4b);for(const _0x1118da of Object['keys'](_0xdd865b['attributes'][_0x377d4b]))_0x395a19['setAttribute'](_0x1118da,_0xdd865b['attributes'][_0x377d4b][_0x1118da],_0x64d489);_0x395a19['insert'](_0xdd865b['model'][_0x377d4b],_0x64d489,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xdd865b['changes'])),this['isReady']=!0x0;})['catch'](_0x4ccaef=>{console['error'](_0x4ccaef),this['_cleanUp'](),_0x425685&&(this['diff']=_0x425685),this['isReady']=!0x0;});}['addRevisionData'](_0x397f82,_0x334a54){const _0x686e10=this['repository']['createRevision'](_0x397f82);return _0x686e10['on']('_update',(_0x235e4c,_0xf85c86,_0x349f3f)=>_0x334a54(_0xf85c86,_0x349f3f,_0x686e10)),this['repository']['addRevision'](_0x686e10),_0x686e10;}['loadRevisionData'](_0x2ec58d){if(!_0x2ec58d||_0x2ec58d['diffData'])return Promise['resolve']();{const _0x39aa29=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x39aa29,'revisionId':_0x2ec58d['id']})['then'](_0x5a42dc=>{_0x2ec58d['_update']({'diffData':_0x5a42dc['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x209207=>{for(const _0x419507 of this['editor']['model']['document']['getRootNames']())_0x209207['detachRoot'](_0x419507);});}['_sortAndFilterDiffChanges'](_0x54cf5a){const _0x46e1fb=[],_0x23b005=new Map();for(const _0x11c59f of this['editor']['model']['document']['getRootNames']()){const _0x2bc8df=this['editor']['editing']['view']['getDomRoot'](_0x11c59f);if(!_0x2bc8df)continue;const _0x3aefd4=_0x2bc8df['getClientRects']()['item'](0x0);_0x3aefd4&&(_0x46e1fb['push'](_0x11c59f),_0x23b005['set'](_0x11c59f,_0x3aefd4));}return _0x46e1fb['sort']((_0x234871,_0x203d3b)=>{const _0x53b6fa=_0x23b005['get'](_0x234871),_0x1880fe=_0x23b005['get'](_0x203d3b);return _0x53b6fa['y']-_0x1880fe['y']||_0x53b6fa['x']-_0x1880fe['x'];}),(_0x54cf5a=_0x54cf5a['filter'](_0x51f47f=>_0x46e1fb['includes'](_0x51f47f['rootName'])))['sort']((_0x44c63c,_0x5befd6)=>_0x46e1fb['indexOf'](_0x44c63c['rootName'])-_0x46e1fb['indexOf'](_0x5befd6['rootName'])),_0x54cf5a;}['_makeTape'](_0x58debc){const _0x2861e1=Array['from'](_0x58debc['markers'])['filter'](([_0xdef413,_0x585130])=>_0xdef413['startsWith']('revision:')&&!_0x585130['isCollapsed']),_0x20c12b=Array['from'](this['editor']['model']['createRangeIn'](_0x58debc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2861e1['length'])for(const _0x1fcc7a of _0x20c12b){const [_0x5d9641,_0x177129]=_0x2861e1[0x0],[,_0x42808f,_0x21e298]=_0x5d9641['split'](':');if(_0x177129['end']['isEqual'](_0x1fcc7a['nextPosition'])&&_0x2861e1['shift'](),(_0x1fcc7a['previousPosition']['isEqual'](_0x177129['start'])||_0x1fcc7a['previousPosition']['isAfter'](_0x177129['start']))&&('insertion'==_0x42808f?_0x1fcc7a['isAdded']={'userId':_0x21e298}:'deletion'==_0x42808f&&(_0x1fcc7a['isRemoved']={'userId':_0x21e298})),0x0==_0x2861e1['length'])break;}return _0x20c12b;}['_refreshStartEndIndex'](_0x2c3043){const _0x55bc6f=new Map();for(let _0x502916=0x0;_0x502916<_0x2c3043['length'];_0x502916++)'text'===_0x2c3043[_0x502916]['type']?(_0x2c3043[_0x502916]['item']['startIndex']=_0x502916,_0x2c3043[_0x502916]['item']['endIndex']=_0x502916):('elementStart'===_0x2c3043[_0x502916]['type']?_0x2c3043[_0x502916]['item']['startIndex']=_0x502916:'elementEnd'===_0x2c3043[_0x502916]['type']&&(_0x2c3043[_0x502916]['item']['endIndex']=_0x502916),_0x55bc6f['set'](_0x2c3043[_0x502916]['id'],_0x502916));for(const _0x2037b8 of _0x55bc6f['values']())'elementStart'===_0x2c3043[_0x2037b8]['type']?_0x2c3043[_0x2037b8]['item']['endIndex']=_0x55bc6f['get'](_0x2c3043[_0x2037b8]['pairId']):'elementEnd'===_0x2c3043[_0x2037b8]['type']&&(_0x2c3043[_0x2037b8]['item']['startIndex']=_0x55bc6f['get'](_0x2c3043[_0x2037b8]['pairId']));}['_processTape'](_0x2ee9bb){for(let _0x4eed7e=0x0;_0x4eed7e<_0x2ee9bb['length'];_0x4eed7e++){if('elementStart'===_0x2ee9bb[_0x4eed7e]['type'])_0x2ee9bb[_0x4eed7e]['item']['startIndex']=_0x4eed7e;else{if('elementEnd'===_0x2ee9bb[_0x4eed7e]['type']){_0x2ee9bb[_0x4eed7e]['item']['endIndex']=_0x4eed7e;const _0x17f42a=_0x2ee9bb[_0x4eed7e]['item']['startIndex'];_0x2ee9bb[_0x17f42a]['pairId']=_0x2ee9bb[_0x4eed7e]['id'],_0x2ee9bb[_0x4eed7e]['pairId']=_0x2ee9bb[_0x17f42a]['id'];}else _0x2ee9bb[_0x4eed7e]['item']['startIndex']=_0x4eed7e,_0x2ee9bb[_0x4eed7e]['item']['endIndex']=_0x4eed7e,_0x2ee9bb[_0x4eed7e]['pairId']=null;}_0x2ee9bb[_0x4eed7e]['markersStart']||(_0x2ee9bb[_0x4eed7e]['markersStart']=[],_0x2ee9bb[_0x4eed7e]['markersEnd']=[]);}}['_markInsertions'](_0x265deb,_0x325f0f){const _0x4e5215=_0x265deb['filter'](_0x36b13d=>!_0x36b13d['isAdded']);for(let _0x4740c8=0x0;_0x4740c8<_0x325f0f['length'];_0x4740c8++)_0x325f0f[_0x4740c8]['isAdded']&&(_0x4e5215[_0x4740c8]['isAdded']=_0x325f0f[_0x4740c8]['isAdded']);}['_makeModelFromViewString'](_0x1c612f){const _0x44eb71=JSON['parse'](_0x1c612f),_0x4b09a7=this['editor']['editing']['view']['document'],_0x11e0f5=new _0x6101a3(_0x4b09a7,_0x44eb71['map'](_0x6bb1f0=>this['_getViewObj'](_0x6bb1f0)));return this['editor']['data']['toModel'](_0x11e0f5);}['_getViewObj'](_0x109fda){const _0x312d18=this['editor']['editing']['view']['document'];if('string'==typeof _0x109fda)return new _0x4c4e57(_0x312d18,_0x109fda);{const _0x56123f=_0x109fda['children']['map'](_0x46344e=>this['_getViewObj'](_0x46344e));return new(Y[_0x109fda['type']]||_0x293663)(_0x312d18,_0x109fda['name'],_0x109fda['attributes'],_0x56123f);}}['_getDiff'](_0x4958d2,_0xa42dd1=null){const _0x9d1417=this['repository']['getRevision'](_0x4958d2),_0x1156c3=_0xa42dd1?this['repository']['getRevision'](_0xa42dd1):null,_0xcd389=this['_getRevisionsRange'](_0x9d1417,_0x1156c3),_0x1e0957=_0xcd389[_0xcd389['length']-0x1],_0xa2be27=new Map(),_0x4c6680={'model':{},'attributes':{},'changes':[]},_0x314f35=new Set(),_0x197d28=new Map();for(let _0x46e555=_0xcd389['length']-0x1;_0x46e555>=0x0;_0x46e555--){const _0x2dcc9b=_0xcd389[_0x46e555];for(const _0x28aa40 of Object['keys'](_0x2dcc9b['diffData']))if(_0x2dcc9b['diffData'][_0x28aa40]['attachChange']){const _0x405f1a=_0x2dcc9b['diffData'][_0x28aa40]['attachChange'];_0x405f1a['isAttached']?(_0x314f35['add'](_0x28aa40),_0x197d28['has'](_0x28aa40)&&_0x197d28['get'](_0x28aa40)['userId']==_0x405f1a['userId']?_0x197d28['delete'](_0x28aa40):_0x197d28['set'](_0x28aa40,_0x405f1a)):_0x197d28['has'](_0x28aa40)?(_0x314f35['delete'](_0x28aa40),_0x197d28['delete'](_0x28aa40)):(_0x314f35['add'](_0x28aa40),_0x197d28['set'](_0x28aa40,_0x405f1a));}else _0x314f35['add'](_0x28aa40);}for(const _0x159bfb of _0x314f35){const _0x1247e0=_0x197d28['has'](_0x159bfb)&&!_0x197d28['get'](_0x159bfb)['isAttached'];let _0x235e04=_0x1247e0?_0xcd389['length']-0x1:0x0;const _0x39350c=_0x1247e0?-0x1:0x1;for(;_0xcd389[_0x235e04];){const _0x431283=_0xcd389[_0x235e04];if(_0x431283['diffData'][_0x159bfb]){const _0xb8f4d8=_0x1247e0?_0x431283['diffData'][_0x159bfb]['attributesBefore']:_0x431283['diffData'][_0x159bfb]['attributesAfter'];_0x4c6680['attributes'][_0x159bfb]=_0xb8f4d8?_0x59c379(_0xb8f4d8):{};break;}_0x235e04+=_0x39350c;}}for(const _0x597585 of _0xcd389){_0x597585['model']={};for(const _0x11d21a of _0x597585['authors'])_0xa2be27['set'](_0x11d21a['id'],_0x11d21a);for(const _0x35402d of _0x314f35){const _0x58364a=_0x597585['diffData'][_0x35402d]?_0x597585['diffData'][_0x35402d]['insertions']:'[]',_0x895787=_0x597585['diffData'][_0x35402d]?_0x597585['diffData'][_0x35402d]['deletions']:'[]';_0x597585['model'][_0x35402d]={'insertions':this['_makeModelFromViewString'](_0x58364a),'deletions':this['_makeModelFromViewString'](_0x895787)};}}for(const _0x4626a6 of _0x314f35){let _0x7777fa=null,_0x5474fc=0x0;const _0x223c5b=new Map(Array['from'](_0x9d1417['model'][_0x4626a6]['insertions']['markers'])['filter'](([_0x590101])=>!_0x590101['startsWith']('revision:')));let _0x40b7be=0x0;for(const _0x1ac827 of _0xcd389){const _0x35de3a=this['_makeTape'](_0x1ac827['model'][_0x4626a6]['insertions']);_0x1ac827==_0x9d1417?(_0x7777fa=_0x35de3a,_0x5474fc=_0x7777fa['length'],_0x7777fa['forEach'](_0x2d97bd=>{_0x2d97bd['id']=_0x40b7be++;}),this['_processTape'](_0x7777fa)):this['_markInsertions'](_0x7777fa,_0x35de3a);const _0x18ec24=_0x7777fa['filter'](_0x3c3472=>!_0x3c3472['isAdded'])['map'](_0x4691b8=>_0x4691b8['id']);let _0xdacb7=0x0;const _0x5db8af=this['_makeTape'](_0x1ac827['model'][_0x4626a6]['deletions']);_0x5db8af['forEach'](_0x5c7d2d=>{_0x5c7d2d['isRemoved']?_0x5c7d2d['id']=_0x5474fc++:_0x5c7d2d['id']=_0x18ec24[_0xdacb7++];}),this['_processTape'](_0x5db8af),this['_setDistance'](_0x7777fa,'isAdded'),this['_setDistance'](_0x5db8af,'isRemoved'),_0x1ac827==_0x9d1417&&this['_markMarkers'](_0x7777fa,_0x223c5b),_0x7777fa=this['_joinTapes'](_0x7777fa,_0x5db8af),this['_refreshStartEndIndex'](_0x7777fa),this['_setDistance'](_0x7777fa,'isRemoved');}_0x7777fa=_0x7777fa['filter'](_0x436a97=>!(_0x436a97['isAdded']&&_0x436a97['isRemoved']));const _0x4f3b0d=new Map(_0x1e0957['model'][_0x4626a6]['deletions']['markers']),_0x4e5d3f=new Set(_0x223c5b['keys']());for(const _0x1e6d8c of _0x4f3b0d['keys']())_0x4e5d3f['delete'](_0x1e6d8c);this['_markSuggestions'](_0x7777fa,_0x4e5d3f),this['_fixObsoleteTags'](_0x7777fa),_0x7777fa=this['_removeMissingPairs'](_0x7777fa),_0x7777fa=this['_markMismatchedRemovedTags'](_0x7777fa),_0x7777fa=this['_removeUnsupportedChanges'](_0x7777fa);const {root:_0x3636ae,changes:_0x29aecb}=this['_makeModelFromTape'](_0x7777fa,_0xa2be27,_0x4626a6);_0x4c6680['model'][_0x4626a6]=_0x3636ae;const _0x37a463=_0x197d28['get'](_0x4626a6);if(_0x37a463){const _0xfdaea5=_0xa2be27['get'](_0x37a463['userId']),_0x4b2c9f=new r({'author':_0xfdaea5,'type':_0x37a463['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4626a6});_0x29aecb['unshift'](_0x4b2c9f),_0x4c6680['attributes'][_0x4626a6]['revisionHistoryAttachChange']=_0x4b2c9f['id'];}_0x4c6680['changes']=_0x4c6680['changes']['concat'](_0x29aecb);}return _0x4c6680;}['_markMarkers'](_0x30f8bb,_0x220175){for(let _0x3e35c1=0x0;_0x3e35c1<_0x30f8bb['length'];_0x3e35c1++)for(const [_0x281c9e,_0x552905]of _0x220175)_0x552905['start']['isEqual'](_0x30f8bb[_0x3e35c1]['previousPosition'])&&_0x30f8bb[_0x3e35c1]['markersStart']['push'](_0x281c9e),_0x552905['end']['isEqual'](_0x30f8bb[_0x3e35c1]['nextPosition'])&&_0x30f8bb[_0x3e35c1]['markersEnd']['push'](_0x281c9e);}['_joinTapes'](_0x18a48c,_0xf9530c){let _0x45c6fd=[],_0x344531=0x0,_0x15046c=0x0;for(;_0x344531<_0x18a48c['length']||_0x15046c<_0xf9530c['length'];){const _0x44c629=_0x18a48c[_0x344531]||{},_0x5130d0=_0xf9530c[_0x15046c]||{};if(_0x44c629['id']==_0x5130d0['id'])_0x344531++,_0x15046c++,_0x45c6fd['push'](_0x44c629);else{if(_0x5130d0['isRemoved']&&_0x44c629['isAdded']){const {commonTape:_0x24677a,iEnd:_0x280327,jEnd:_0x27bf3c}=this['_threeWayMerge'](_0x18a48c,_0x344531,_0xf9530c,_0x15046c);_0x45c6fd=_0x45c6fd['concat'](_0x24677a),_0x344531=_0x280327,_0x15046c=_0x27bf3c;}else _0x5130d0['isRemoved']?(_0x15046c++,_0x45c6fd['push'](_0x5130d0)):(_0x344531++,_0x45c6fd['push'](_0x44c629));}}return _0x45c6fd;}['_markSuggestions'](_0x15fcb2,_0x5da078){const _0x4d3a78=[];for(let _0x55c58a=0x0;_0x55c58a<_0x15fcb2['length'];_0x55c58a++){for(let _0x7d6a31=0x0;_0x7d6a31<_0x15fcb2[_0x55c58a]['markersStart']['length'];_0x7d6a31++){const _0x44697e=_0x15fcb2[_0x55c58a]['markersStart'][_0x7d6a31];if(!_0x5da078['has'](_0x44697e))continue;const {group:_0x5542a7,type:_0x46be09,authorId:_0x42a32b}=_0x13a77c(_0x44697e);'revision-suggestion'!=_0x5542a7||'insertion'!=_0x46be09&&'deletion'!=_0x46be09||(_0x4d3a78['unshift']({'type':_0x46be09,'name':_0x44697e,'userId':_0x42a32b}),_0x15fcb2[_0x55c58a]['markersStart']['splice'](_0x7d6a31,0x1),_0x7d6a31--);}_0x4ffc38(_0x15fcb2[_0x55c58a]);for(let _0x4d2a4e=0x0;_0x4d2a4e<_0x15fcb2[_0x55c58a]['markersEnd']['length'];_0x4d2a4e++){const _0x2cd81d=_0x15fcb2[_0x55c58a]['markersEnd'][_0x4d2a4e];if(!_0x5da078['has'](_0x2cd81d))continue;const {group:_0xafb5e4,type:_0x6fb968}=_0x13a77c(_0x2cd81d);if('revision-suggestion'!=_0xafb5e4||'insertion'!=_0x6fb968&&'deletion'!=_0x6fb968)continue;_0x15fcb2[_0x55c58a]['markersEnd']['splice'](_0x4d2a4e,0x1),_0x4d2a4e--;const _0x324a30=_0x4d3a78['findIndex'](_0x315f64=>_0x315f64['name']==_0x2cd81d);_0x324a30>-0x1&&_0x4d3a78['splice'](_0x324a30,0x1);}}function _0x13a77c(_0x34e93b){const _0x1045bc=_0x34e93b['split'](':');return{'group':_0x1045bc[0x0],'type':_0x1045bc[0x1],'subType':_0x1045bc['length']>=0x5?_0x1045bc[0x2]:null,'id':_0x1045bc['length']<0x5?_0x1045bc[0x2]:_0x1045bc[0x3],'authorId':_0x1045bc['length']<0x5?_0x1045bc[0x3]:_0x1045bc[0x4],'markerCount':0x6==_0x1045bc['length']?_0x1045bc[0x5]:null};}function _0x4ffc38(_0x2688eb){for(let _0x519554=0x0;_0x519554<_0x4d3a78['length'];_0x519554++){if(_0x2688eb['isAdded']&&'insertion'==_0x4d3a78[_0x519554]['type'])return _0x2688eb['isAddSuggestion']=_0x4d3a78[_0x519554],void delete _0x2688eb['isAdded'];if(!_0x2688eb['isAdded']&&!_0x2688eb['isRemoved']&&'deletion'==_0x4d3a78[_0x519554]['type'])return void(_0x2688eb['isRemoveSuggestion']=_0x4d3a78[_0x519554]);}}}['_setDistance'](_0x4402a0,_0x551bc9){let _0x1840af=0x0,_0x4c37dc=!0x1;const _0x5bb6fa=new Map();for(const _0x306eb8 of _0x4402a0)_0x306eb8[_0x551bc9]?_0x4c37dc&&(_0x1840af++,_0x4c37dc=!0x1):(_0x1840af++,_0x4c37dc=!0x0),_0x5bb6fa['set'](_0x306eb8['id'],_0x1840af);for(let _0x56ca72=0x0;_0x56ca72<_0x4402a0['length'];_0x56ca72++){if('isRemoved'==_0x551bc9&&_0x4402a0[_0x56ca72]['isAdded']||'isAdded'==_0x551bc9&&_0x4402a0[_0x56ca72]['isRemoved'])continue;if('text'==_0x4402a0[_0x56ca72]['type']){_0x4402a0[_0x56ca72]['distance']=0x0;continue;}const _0xc2d667=_0x5bb6fa['get'](_0x4402a0[_0x56ca72]['pairId']),_0x14f93a=_0x5bb6fa['get'](_0x4402a0[_0x56ca72]['id']);_0x4402a0[_0x56ca72]['distance']=_0xc2d667-_0x14f93a;}}['_getRevisionsRange'](_0x285a24,_0x12bff4,_0x4b7c50=!0x1){const _0x2616a9=[];let _0x3c986d=this['repository']['getIndex'](_0x285a24),_0xeb408c=this['repository']['getIndex'](_0x12bff4);for(-0x1==_0xeb408c&&(_0xeb408c=this['repository']['_revisions']['length'],_0x4b7c50=!0x1);_0x3c986d<_0xeb408c;)_0x2616a9['push'](this['repository']['getRevision'](_0x3c986d)),_0x3c986d++;return _0x4b7c50&&_0x2616a9['push'](this['repository']['getRevision'](_0x3c986d)),_0x2616a9;}['_threeWayMerge'](_0x58b54e,_0xcda3e2,_0x1d5bbc,_0x266353){const _0x7e9e20=this['editor']['model']['schema'];let _0x230e8e=_0xcda3e2;for(;_0x58b54e[_0x230e8e]&&_0x58b54e[_0x230e8e]['isAdded'];)_0x230e8e++;let _0x2cd7e0=_0x266353;for(;_0x1d5bbc[_0x2cd7e0]&&_0x1d5bbc[_0x2cd7e0]['isRemoved'];)_0x2cd7e0++;_0xb8d056(_0x58b54e,_0xcda3e2,_0x230e8e),_0xb8d056(_0x1d5bbc,_0x266353,_0x2cd7e0);const _0x7691ff=_0x1d5bbc['slice'](_0x266353,_0x2cd7e0)['concat'](_0x58b54e['slice'](_0xcda3e2,_0x230e8e));return _0x7691ff['sort']((_0x572c27,_0x43cead)=>_0x572c27['side']!=_0x43cead['side']?_0x572c27['side']-_0x43cead['side']:_0x572c27['level']!=_0x43cead['level']?_0x572c27['level']-_0x43cead['level']:_0x572c27['distance']!=_0x43cead['distance']?_0x43cead['distance']-_0x572c27['distance']:!!_0x572c27['isAdded']!=!!_0x43cead['isAdded']?-0x1==_0x572c27['side']||0x0==_0x572c27['side']?_0x572c27['isAdded']?-0x1:0x1:_0x572c27['isAdded']?0x1:-0x1:_0x572c27['index']-_0x43cead['index']),{'commonTape':_0x7691ff,'iEnd':_0x230e8e,'jEnd':_0x2cd7e0};function _0xb8d056(_0x38a9c8,_0x229bf6,_0x1ce475){let _0x4c463e=-0x1,_0x575da6=Number['POSITIVE_INFINITY'],_0x3ce0e8=!0x0;for(let _0x1ea3b9=_0x229bf6;_0x1ea3b9<_0x1ce475;_0x1ea3b9++)if(_0x7e9e20['isInline'](_0x38a9c8[_0x1ea3b9]['item'])||(_0x3ce0e8=!0x1),_0x38a9c8[_0x1ea3b9]['item']['startIndex']<_0x229bf6&&(_0x4c463e=_0x1ea3b9),_0x38a9c8[_0x1ea3b9]['item']['endIndex']>=_0x1ce475){_0x575da6=_0x1ea3b9;break;}_0x3ce0e8&&(_0x4c463e=_0x1ce475-0x1);for(let _0x15fe43=_0x229bf6;_0x15fe43<_0x1ce475;_0x15fe43++)_0x38a9c8[_0x15fe43]['side']=_0x15fe43<=_0x4c463e?-0x1:_0x15fe43<_0x575da6?0x0:0x1,_0x38a9c8[_0x15fe43]['index']=_0x15fe43;let _0x3feddf=0x0;for(let _0x3d1e4d=_0x229bf6;_0x3d1e4d<=_0x4c463e;_0x3d1e4d++)0x0==_0x38a9c8[_0x3d1e4d]['distance']?_0x38a9c8[_0x3d1e4d]['level']=_0x3feddf:(_0x3feddf++,_0x38a9c8[_0x3d1e4d]['level']=_0x3feddf,_0x3feddf++);for(let _0x14de90=_0x229bf6;_0x14de90<_0x1ce475;_0x14de90++)0x0==_0x38a9c8[_0x14de90]['side']&&(_0x38a9c8[_0x14de90]['level']=_0x3feddf);_0x3feddf=0x0;for(let _0x1055ce=_0x1ce475-0x1;_0x1055ce>=_0x575da6;_0x1055ce--)0x0==_0x38a9c8[_0x1055ce]['distance']?_0x38a9c8[_0x1055ce]['level']=_0x3feddf:(_0x3feddf--,_0x38a9c8[_0x1055ce]['level']=_0x3feddf,_0x3feddf--);}}['_fixObsoleteTags'](_0x554905){const _0x3ca903=new Map(),_0x26266c=this['editor']['model']['schema'];for(let _0x546546=0x1;_0x546546<_0x554905['length'];_0x546546++){let _0x783b3d,_0x1b975b,_0x24f0d2;const _0x54b43c=_0x554905[_0x546546],_0x1c9d04=_0x554905[_0x546546-0x1];if('text'==_0x54b43c['type'])continue;if(_0x54b43c['type']!=_0x1c9d04['type'])continue;if(!_0x26266c['isBlock'](_0x1c9d04['item'])||_0x26266c['isLimit'](_0x1c9d04['item']))continue;if(!_0x26266c['isBlock'](_0x54b43c['item'])||_0x26266c['isLimit'](_0x54b43c['item']))continue;if((_0x554905[_0x546546]['isAdded']||_0x554905[_0x546546]['isAddSuggestion'])&&_0x554905[_0x546546-0x1]['isRemoved'])_0x783b3d=_0x554905[_0x546546],_0x1b975b=_0x554905[_0x546546-0x1],_0x24f0d2=_0x546546-0x1;else{if(!_0x554905[_0x546546]['isRemoved']||!_0x554905[_0x546546-0x1]['isAdded']&&!_0x554905[_0x546546-0x1]['isAddSuggestion'])continue;_0x783b3d=_0x554905[_0x546546-0x1],_0x1b975b=_0x554905[_0x546546],_0x24f0d2=_0x546546;}const _0x4f7db3=_0x783b3d['level']==_0x1b975b['level'],_0x3a5bdd=Math['abs'](_0x783b3d['level'])<Math['abs'](_0x1b975b['level'])&&0x0==_0x1b975b['distance'];(_0x4f7db3||_0x3a5bdd)&&(_0x3ca903['set'](_0x1b975b['id'],_0x783b3d['id']),_0x554905['splice'](_0x24f0d2,0x1),_0x546546--,_0x783b3d['isAdded']=!0x1);}for(let _0x38aa75=0x0;_0x38aa75<_0x554905['length'];_0x38aa75++)_0x3ca903['has'](_0x554905[_0x38aa75]['pairId'])&&(_0x554905[_0x38aa75]['pairId']=_0x3ca903['get'](_0x554905[_0x38aa75]['pairId']));}['_removeMissingPairs'](_0x50a59a){const _0x29d800=new Set(_0x50a59a['map'](_0x44bbc4=>_0x44bbc4['id']));for(let _0xb489a6=0x0;_0xb489a6<_0x50a59a['length'];_0xb489a6++)_0x29d800['has'](_0x50a59a[_0xb489a6]['pairId'])||0x0==_0x50a59a[_0xb489a6]['distance']||(_0x50a59a[_0xb489a6]['isIncorrect']=!0x0);return _0x50a59a['filter'](_0x45f0d9=>!_0x45f0d9['isIncorrect']);}['_markMismatchedRemovedTags'](_0x30bc1b){const _0x1878cc=new Set();for(let _0x100e31=0x0;_0x100e31<_0x30bc1b['length'];_0x100e31++){if(_0x1878cc['has'](_0x30bc1b[_0x100e31]['id'])&&_0x30bc1b[_0x100e31]['isRemoved']&&(_0x30bc1b[_0x100e31]['isIncorrect']=!0x0),_0x30bc1b[_0x100e31]['isIncorrect'])continue;if(0x0==_0x30bc1b[_0x100e31]['distance'])continue;if('elementStart'!=_0x30bc1b[_0x100e31]['type'])continue;if(null==_0x30bc1b[_0x100e31]['pairId'])continue;let _0x2e1d41=_0x100e31+0x1,_0x577fe5=0x0;for(;_0x30bc1b[_0x2e1d41]['id']!=_0x30bc1b[_0x100e31]['pairId'];)'elementStart'==_0x30bc1b[_0x2e1d41]['type']?_0x577fe5++:'elementEnd'==_0x30bc1b[_0x2e1d41]['type']&&_0x577fe5--,_0x2e1d41++;if(0x0!=_0x577fe5){if(_0x30bc1b[_0x100e31]['isRemoved'])_0x30bc1b[_0x100e31]['isIncorrect']=!0x0;else{for(;_0x2e1d41!=_0x100e31;)_0x30bc1b[_0x2e1d41]['isRemoved']&&0x0!=_0x30bc1b[_0x2e1d41]['distance']&&(_0x30bc1b[_0x2e1d41]['isIncorrect']=!0x0,_0x1878cc['add'](_0x30bc1b[_0x2e1d41]['pairId'])),_0x2e1d41--;}}}return _0x30bc1b['filter'](_0x54249b=>!_0x54249b['isIncorrect']);}['_removeUnsupportedChanges'](_0x48a0fd){const _0x49a630=this['editor']['model']['schema'];for(let _0x3f33ff=0x0;_0x3f33ff<_0x48a0fd['length'];_0x3f33ff++){if(!(_0x48a0fd[_0x3f33ff]['isAdded']||_0x48a0fd[_0x3f33ff]['isAddSuggestion']||_0x48a0fd[_0x3f33ff]['isRemoved']||_0x48a0fd[_0x3f33ff]['isRemoveSuggestion']))continue;if(0x0==_0x48a0fd[_0x3f33ff]['distance'])continue;const _0xa25197=_0x48a0fd[_0x3f33ff]['item'];_0x49a630['isBlock'](_0xa25197)||_0x49a630['isLimit'](_0xa25197)||(_0x48a0fd[_0x3f33ff]['isAdded']&&delete _0x48a0fd[_0x3f33ff]['isAdded'],_0x48a0fd[_0x3f33ff]['isAddSuggestion']&&delete _0x48a0fd[_0x3f33ff]['isAddSuggestion'],_0x48a0fd[_0x3f33ff]['isRemoveSuggestion']&&delete _0x48a0fd[_0x3f33ff]['isRemoveSuggestion'],_0x48a0fd[_0x3f33ff]['isRemoved']&&(_0x48a0fd[_0x3f33ff]['isIncorrect']=!0x0));}return _0x48a0fd['filter'](_0x9b9eba=>!_0x9b9eba['isIncorrect']);}['_makeModelFromTape'](_0x39f41e,_0x434db2,_0x48c866){const _0x59c869=new mt(),_0x372503=[],_0x49cbde=new Map(),_0x2c6835=this['editor']['model'],_0x57ed89=_0x2c6835['schema'],_0x52f19a=[_0x59c869],_0x3c52d5={},_0x2c0cf2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b1f26=null;const _0x36c8aa=[0x0];for(let _0x544ce8=0x0;_0x544ce8<_0x39f41e['length'];_0x544ce8++)if('elementStart'===_0x39f41e[_0x544ce8]['type']){_0x39f41e[_0x544ce8]['previousPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa);const _0x380727=new ft(_0x39f41e[_0x544ce8]['item']['name'],_0x39f41e[_0x544ce8]['item']['getAttributes']());_0x52f19a[0x0]['_appendChild'](_0x380727),_0x36c8aa['push'](0x0),_0x52f19a['unshift'](_0x380727),_0x39f41e[_0x544ce8]['nextPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa);}else'elementEnd'===_0x39f41e[_0x544ce8]['type']?(_0x52f19a['shift'](),_0x39f41e[_0x544ce8]['previousPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa),_0x36c8aa['pop'](),_0x36c8aa[_0x36c8aa['length']-0x1]++,_0x39f41e[_0x544ce8]['nextPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa)):(_0x39f41e[_0x544ce8]['previousPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa),_0x5b1f26?_0x5b1f26['_data']+=_0x39f41e[_0x544ce8]['item']['data']:_0x5b1f26=new wt(_0x39f41e[_0x544ce8]['item']['data'],_0x39f41e[_0x544ce8]['item']['getAttributes']()),_0x39f41e[_0x544ce8+0x1]&&'text'===_0x39f41e[_0x544ce8+0x1]['type']&&_0x2ba697(_0x5b1f26,_0x39f41e[_0x544ce8+0x1]['item'])||(_0x52f19a[0x0]['_appendChild'](_0x5b1f26),_0x5b1f26=null),_0x36c8aa[_0x36c8aa['length']-0x1]+=_0x39f41e[_0x544ce8]['item']['offsetSize'],_0x39f41e[_0x544ce8]['nextPosition']=_0x2c6835['createPositionFromPath'](_0x59c869,_0x36c8aa));for(let _0x3832fa=0x0;_0x3832fa<_0x39f41e['length'];_0x3832fa++){const _0x29495f=_0x39f41e[_0x3832fa]['previousPosition'],_0x4dfda1=_0x39f41e[_0x3832fa]['nextPosition'];for(const _0x125e83 of _0x39f41e[_0x3832fa]['markersStart'])_0x49cbde['set'](_0x125e83,{'start':_0x29495f,'end':null});_0x173b12('isRemoveSuggestion',_0x3832fa,_0x29495f,_0x4dfda1),_0x173b12('isAddSuggestion',_0x3832fa,_0x29495f,_0x4dfda1),_0x173b12('isRemoved',_0x3832fa,_0x29495f,_0x4dfda1),_0x173b12('isAdded',_0x3832fa,_0x29495f,_0x4dfda1);for(const _0x4d4d36 of _0x39f41e[_0x3832fa]['markersEnd']){_0x49cbde['get'](_0x4d4d36)['end']=_0x4dfda1;}}for(const [_0x10930f,_0x2028c8]of _0x49cbde){const _0x37f057=this['editor']['model']['createRange'](_0x2028c8['start'],_0x2028c8['end']);_0x59c869['markers']['set'](_0x10930f,_0x37f057);}return _0x372503['sort']((_0x23027c,_0x3a0e0c)=>{const _0x3ec32c=_0x59c869['markers']['get']('revision:'+_0x23027c['id']),_0x25ca5f=_0x59c869['markers']['get']('revision:'+_0x3a0e0c['id']);return _0x3ec32c['start']['isBefore'](_0x25ca5f['start'])?-0x1:_0x3ec32c['start']['isAfter'](_0x25ca5f['start'])?0x1:_0x3ec32c['end']['isBefore'](_0x25ca5f['end'])?-0x1:_0x3ec32c['end']['isAfter'](_0x25ca5f['end'])?0x1:'add'===_0x23027c['type']?-0x1:0x1;}),{'root':_0x59c869,'changes':_0x372503};function _0x173b12(_0x1b2e42,_0x6a3306,_0xf8e1c7,_0x45d3e3){const _0xe079bf=!!_0x39f41e[_0x6a3306][_0x1b2e42],_0x15212f=_0xe079bf?_0x39f41e[_0x6a3306][_0x1b2e42]['userId']:null,_0x1e41da=_0x6a3306===_0x39f41e['length']-0x1,_0xf34f58=_0x2c0cf2[_0x1b2e42][0x0],_0x52945e=_0x57ed89['isObject'](_0x39f41e[_0x6a3306]['item']);!_0x3c52d5[_0x1b2e42]&&_0xe079bf?_0x3c52d5[_0x1b2e42]={'start':_0xf8e1c7,'tapeItem':_0x39f41e[_0x6a3306],'userId':_0x15212f,'type':_0x1b2e42}:_0x3c52d5[_0x1b2e42]&&!_0xe079bf?(_0x3c52d5[_0x1b2e42]['end']=_0xf8e1c7,_0x2dba11(_0x3c52d5[_0x1b2e42]),_0x3c52d5[_0x1b2e42]=null):_0x3c52d5[_0x1b2e42]&&_0xe079bf&&_0x3c52d5[_0x1b2e42]['userId']!==_0x15212f&&(_0x3c52d5[_0x1b2e42]['end']=_0xf8e1c7,_0xf34f58&&_0xf34f58['userId']===_0x3c52d5[_0x1b2e42]['userId']||_0x2dba11(_0x3c52d5[_0x1b2e42]),_0x3c52d5[_0x1b2e42]={'start':_0xf8e1c7,'tapeItem':_0x39f41e[_0x6a3306],'userId':_0x15212f,'type':_0x1b2e42}),_0x3c52d5[_0x1b2e42]&&_0x52945e&&('elementStart'!==_0x39f41e[_0x6a3306]['type']||_0xf34f58&&_0xf34f58['userId']===_0x15212f||_0x2c0cf2[_0x1b2e42]['unshift']({'userId':_0x15212f,'object':_0x39f41e[_0x6a3306]['item'],'change':_0x3c52d5[_0x1b2e42]}),'elementEnd'===_0x39f41e[_0x6a3306]['type']&&_0xf34f58&&_0xf34f58['object']===_0x39f41e[_0x6a3306]['item']&&(_0x2c0cf2[_0x1b2e42]['shift'](),_0x3c52d5[_0x1b2e42]=_0xf34f58['change'])),_0x3c52d5[_0x1b2e42]&&_0x1e41da&&(_0x3c52d5[_0x1b2e42]['end']=_0x45d3e3,_0x2dba11(_0x3c52d5[_0x1b2e42]),_0x3c52d5[_0x1b2e42]=null);}function _0x2dba11({start:_0x445620,end:_0x354b5b,tapeItem:_0x38238c,userId:_0x44acec,type:_0xce0c8e}){const _0x5afab0=_0x38238c['item'],_0x381160=_0x2c6835['schema']['isBlock'](_0x5afab0)&&!_0x2c6835['schema']['isLimit'](_0x5afab0),_0x1edee2=_0x445620['nodeAfter']==_0x354b5b['parent']&&_0x354b5b['isAtStart'];if(_0x381160&&_0x1edee2)return;const _0x473a6c=_0x2c6835['createRange'](_0x445620,_0x354b5b),_0x2c12a6=_0x434db2['get'](_0x44acec),_0x5ef1d7=new r({'author':_0x2c12a6,'type':'isAdded'==_0xce0c8e||'isAddSuggestion'==_0xce0c8e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xce0c8e||'isRemoveSuggestion'==_0xce0c8e},'createdAt':new Date(),'rootName':_0x48c866});_0x372503['push'](_0x5ef1d7),_0x59c869['markers']['set']('revision:'+_0x5ef1d7['id'],_0x473a6c);}function _0x2ba697(_0x19c84a,_0x2a1b5b){const _0x35732f=_0x19c84a['getAttributes'](),_0x42ae57=_0x2a1b5b['getAttributes']();for(const _0x51539c of _0x35732f){if(_0x51539c[0x1]!==_0x2a1b5b['getAttribute'](_0x51539c[0x0]))return!0x1;_0x42ae57['next']();}return _0x42ae57['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xf827e2=>{const _0x2af1f9=_0xf827e2['markerName']['split'](':')[0x1],_0x1913e3=this['_getChangeFromId'](_0x2af1f9);if(!_0x1913e3)return null;const _0x121d84='add'==_0x1913e3['type']?'insertion':'deletion',_0x13db88=['ck-suggestion-marker','ck-suggestion-marker-'+_0x121d84];return _0x1913e3['data']['isSuggestion']&&_0x13db88['push']('ck-suggestion-marker-'+_0x121d84+'-new'),this['activeChange']==_0x1913e3&&_0x13db88['push']('ck-suggestion-marker--active'),{'classes':_0x13db88,'attributes':{'data-change-id':_0x2af1f9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1c3301=>{_0x1c3301['on']('element:pre',(_0x2c7803,_0x3c4d98,_0x3e3ac1)=>{const _0x21043f=_0x3c4d98['viewItem']['getChild'](0x0);if(!_0x21043f||!_0x21043f['is']('element','code'))return;if(!_0x3e3ac1['consumable']['consume'](_0x21043f,{'attributes':['vid_start','vid_end']}))return;const _0x17f6e1=_0x3c4d98['modelRange']['start']['nodeAfter'];_0x3e3ac1['writer']['setAttribute']('vid_start',_0x21043f['getAttribute']('vid_start'),_0x17f6e1),_0x3e3ac1['writer']['setAttribute']('vid_end',_0x21043f['getAttribute']('vid_end'),_0x17f6e1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x34b4ea=>{_0x34b4ea['on']('element',(_0x2430c2,_0x149728,_0xb14838)=>{if(!_0xb14838['consumable']['consume'](_0x149728['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x149728['modelRange']['isCollapsed'])return;const _0x19179b=_0x149728['modelRange']['start']['nodeAfter'];_0x19179b['hasAttribute']('vid_start')||_0x19179b['hasAttribute']('vid')||(_0xb14838['writer']['setAttribute']('vid_start',_0x149728['viewItem']['getAttribute']('vid_start'),_0x19179b),_0xb14838['writer']['setAttribute']('vid_end',_0x149728['viewItem']['getAttribute']('vid_end'),_0x19179b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x483b8b=>_0x483b8b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1e6490,[,_0x201f93])=>{['vid_start','vid_end','vid']['includes'](_0x201f93)&&(_0x1e6490['return']=!0x0,_0x1e6490['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2ec096=>{_0x2ec096['on']('attribute:vid',(_0x11a824,_0x2f71f0,_0x1b0f06)=>{if('\x20'!=_0x2f71f0['item']['data']||_0x2f71f0['item']['parent']['maxOffset']>0x1)return;if(!_0x1b0f06['consumable']['consume'](_0x2f71f0['item'],_0x11a824['name']))return;const _0xd68407=_0x1b0f06['writer'],_0x4d28a8=_0x1b0f06['mapper']['toViewRange'](_0x2f71f0['range']);_0xd68407['wrap'](_0x4d28a8,_0xd68407['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2c860a){const _0x542ff2=_0x2c860a['plugins']['get']('RevisionViewer');return(_0x22977c,_0x36b319,_0x251da8)=>{const _0x33c00f=_0x36b319['markerName']['split'](':')[0x1],_0x26a36d=_0x542ff2['_getChangeFromId'](_0x33c00f);if(!_0x26a36d)return null;const _0x50dada='add'==_0x26a36d['type']?'split':'merge';if(!_0x251da8['consumable']['test'](_0x36b319['markerRange'],_0x22977c['name']))return;const _0x95f1eb=_0x36b319['markerRange']['getWalker'](),_0x9c0347=_0x36b319['markerRange']['start'],_0x1ad9e4=_0x2c860a['model']['schema'];let _0x4fbb8b=null,_0x366c91=null,_0x56f025=!0x1,_0x472c3a=!0x1;for(const _0x4d1a94 of _0x95f1eb){const _0x3cde0c=_0x4d1a94['item'];_0x56f025=_0x56f025||_0x1ad9e4['isContent'](_0x3cde0c);const _0x274592=_0x251da8['mapper']['toViewElement'](_0x3cde0c);if(_0x274592&&_0x274592['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4d1a94['type']&&(_0x1ad9e4['isBlock'](_0x3cde0c)&&!_0x1ad9e4['isLimit'](_0x3cde0c)&&(_0x3cde0c['nextSibling']||_0x9c0347['isAtEnd']?_0x4fbb8b&&_0x4fbb8b['parent']==_0x3cde0c||(_0x4fbb8b=_0x3cde0c,_0x5402f4(_0x4d1a94['previousPosition']),_0x472c3a=!0x0):_0x366c91=_0x366c91||_0x4d1a94['previousPosition']));}function _0x5402f4(_0x529680){const _0xcbfa7=_0x251da8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50dada}),_0x2de14b=_0x251da8['mapper']['toViewPosition'](_0x529680);_0x26a36d['data']['isSuggestion']&&_0x251da8['writer']['addClass']('ck-suggestion-marker-'+_0x50dada+'-new',_0xcbfa7),_0x542ff2['activeChange']==_0x26a36d&&_0x251da8['writer']['addClass']('ck-suggestion-marker--active',_0xcbfa7),_0x251da8['writer']['insert'](_0x2de14b,_0xcbfa7),_0x251da8['mapper']['bindElementToMarker'](_0xcbfa7,_0x36b319['markerName']);}_0x56f025||_0x472c3a||!_0x366c91||_0x5402f4(_0x366c91);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2fecca,_0x4c4327,_0x3b34d7)=>{const _0x3d12eb=_0x3b34d7['mapper']['markerNameToElements'](_0x4c4327['markerName']);if(_0x3d12eb){for(const _0x27dc17 of _0x3d12eb)(_0x27dc17['hasClass']('ck-suggestion-marker-split')||_0x27dc17['hasClass']('ck-suggestion-marker-merge'))&&(_0x3b34d7['mapper']['unbindElementFromMarkerName'](_0x27dc17,_0x4c4327['markerName']),_0x3b34d7['writer']['remove'](_0x27dc17));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xfee2db,_0x4eba55,_0x354539)=>{const _0x5b0855=_0x4eba55['markerName']['split'](':')[0x1],_0x2fd6ce=this['_getChangeFromId'](_0x5b0855);if(!_0x2fd6ce)return null;const _0x461452='add'==_0x2fd6ce['type']?'split':'merge';if(_0x354539['consumable']['test'](_0x4eba55['markerRange'],_0xfee2db['name']))for(const _0x19405b of _0x4eba55['markerRange']['getItems']()){if(!_0x19405b['is']('element','softBreak'))continue;const _0x1f63b4=_0x354539['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x461452}),_0x18892d=_0x354539['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x19405b));_0x2fd6ce['data']['isSuggestion']&&_0x354539['writer']['addClass']('ck-suggestion-marker-'+_0x461452+'-new',_0x1f63b4),this['activeChange']==_0x2fd6ce&&_0x354539['writer']['addClass']('ck-suggestion-marker--active',_0x1f63b4),_0x354539['writer']['insert'](_0x18892d,_0x1f63b4),_0x354539['mapper']['bindElementToMarker'](_0x1f63b4,_0x4eba55['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x49ee6d=>{for(const _0x49c7b5 of this['editor']['model']['document']['getRootNames']()){const _0x2c4324=this['editor']['model']['document']['getRoot'](_0x49c7b5),_0x48c9c9=this['editor']['editing']['view']['document']['getRoot'](_0x49c7b5);if(_0x48c9c9){const _0x147fa1=_0x2c4324['getAttribute']('revisionHistoryAttachChange');if(_0x49ee6d['removeAttribute']('data-change-id',_0x48c9c9),_0x49ee6d['removeClass']('ck-revision-history-root-add',_0x48c9c9),_0x49ee6d['removeClass']('ck-revision-history-root-remove',_0x48c9c9),_0x49ee6d['removeClass']('ck-revision-history-root--active',_0x48c9c9),_0x147fa1){const _0x190228=this['_getChangeFromId'](_0x147fa1);if(!_0x190228)return null;_0x49ee6d['setAttribute']('data-change-id',_0x147fa1,_0x48c9c9),_0x49ee6d['addClass']('ck-revision-history-root-'+_0x190228['type'],_0x48c9c9),this['activeChange']==_0x190228&&_0x49ee6d['addClass']('ck-revision-history-root--active',_0x48c9c9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x7fe74e=>'revision-comment:'+_0x7fe74e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x34c221=>'revision-suggestion:'+_0x34c221,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x233cc5=>({'name':'suggestion:'+_0x233cc5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x258e85=>{const _0x5a9fd1=_0x258e85['markerName']['split'](':')[0x1];return'insertion'!=_0x5a9fd1&&'deletion'!=_0x5a9fd1?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5a9fd1]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4f9940,_0x243916,_0x4228c2)=>{const _0xaeb12f=_0x4228c2['mapper']['markerNameToElements'](_0x243916['markerName']);if(_0xaeb12f){for(const _0x595ff5 of _0xaeb12f)_0x595ff5['is']('uiElement')&&(_0x4228c2['mapper']['unbindElementFromMarkerName'](_0x595ff5,_0x243916['markerName']),_0x4228c2['writer']['remove'](_0x595ff5));}},{'priority':'high'});}['_getChangeFromId'](_0x576d3f){return this['_changeIdToChange']['get'](_0x576d3f);}['_getViewForChange'](_0x411730){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x411730),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x7880cb,_0xe28e2,_0xe003ae,_0x345529)=>{_0x345529&&this['_balloon']['remove'](_0x345529),_0xe003ae&&(this['_balloon']['add']({'view':_0xe003ae,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x321a81=this['editor']['editing'],_0x535092=this['_getChangeFromId'](_0xe003ae['changeId']);let _0x34bf17;if(_0x535092['data']['isOnRoot']){const _0x48cfa9=_0x321a81['view']['getDomRoot'](_0x535092['rootName']);_0x34bf17=Array['from'](_0x48cfa9['getClientRects']());}else{const _0x1332ee=this['editor']['model']['markers']['get']('revision:'+_0xe003ae['changeId']);_0x34bf17=Array['from'](_0x321a81['mapper']['markerNameToElements'](_0x1332ee['name']))['map'](_0x63db47=>_0x321a81['view']['domConverter']['mapViewToDom'](_0x63db47))['map'](_0x1fbb94=>Array['from'](_0x1fbb94['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x34bf17[0x0];return _0x34bf17['find'](_0x3f25de=>_0x3f25de['top']-0x3<=this['_activeViewTarget']['y']&&_0x3f25de['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3f25de['left']-0x3<=this['_activeViewTarget']['x']&&_0x3f25de['right']+0x3>=this['_activeViewTarget']['x'])||_0x34bf17[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3f1710,_0x5b33c8,_0xc0ab21,_0x32cdb9)=>{this['activeView']=_0xc0ab21?this['_getViewForChange'](_0xc0ab21):null,this['editor']['model']['change'](()=>{const _0x4b62e9=this['editor']['editing'];_0x32cdb9&&(_0x32cdb9['data']['isOnRoot']?_0x4b62e9['view']['change'](_0x42dc11=>{_0x42dc11['removeClass']('ck-revision-history-root--active',_0x4b62e9['view']['document']['getRoot'](_0x32cdb9['rootName']));}):_0x4b62e9['reconvertMarker']('revision:'+_0x32cdb9['id'])),_0xc0ab21&&(_0xc0ab21['data']['isOnRoot']?_0x4b62e9['view']['change'](_0xfb7f13=>{_0xfb7f13['addClass']('ck-revision-history-root--active',_0x4b62e9['view']['document']['getRoot'](_0xc0ab21['rootName']));}):_0x4b62e9['reconvertMarker']('revision:'+_0xc0ab21['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x442e9a,_0x4e15ce)=>{if(this['activeChange'])return;const _0xb7e660=this['_findChangeIdFromDomTarget'](_0x4e15ce['target']),_0x3225f9=this['_changeIdToChange']['get'](_0xb7e660);_0x3225f9?(this['_activeViewTarget']={'x':_0x4e15ce['domEvent']['x'],'y':_0x4e15ce['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3225f9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2ec9a6,_0x8afac1)=>{const _0x1ef5e0=this['_findChangeIdFromDomTarget'](_0x8afac1['target']),_0x380502=this['_changeIdToChange']['get'](_0x1ef5e0);_0x380502?(this['_activeViewTarget']={'x':_0x8afac1['domEvent']['x'],'y':_0x8afac1['domEvent']['y']},_0x380502===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x380502):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x35eb55){do{const _0x33ea82=_0x35eb55['getAttribute']('data-change-id');if(_0x33ea82)return _0x33ea82;_0x35eb55=_0x35eb55['parent'];}while(_0x35eb55);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x211c2b=>{for(const _0x2cbc05 of this['editor']['model']['markers'])_0x211c2b['removeMarker'](_0x2cbc05);});}}function Z(_0x52710f,_0x439218){return(_0x34a468,_0x41e489,_0xa29487)=>{if(!_0xa29487['consumable']['test'](_0x41e489['markerRange'],_0x34a468['name']))return;const _0x25789b=_0x41e489['markerRange']['getWalker'](),_0x3f2a0a=_0x41e489['markerRange']['start'],_0x1d0379=_0x52710f['model']['schema'];let _0x798648=null,_0x2738bc=null,_0x493960=!0x1,_0x522f8c=!0x1;for(const _0x3e83a4 of _0x25789b){const _0xb9c21e=_0x3e83a4['item'];_0x493960=_0x493960||_0x1d0379['isContent'](_0xb9c21e);const _0x4d4503=_0xa29487['mapper']['toViewElement'](_0xb9c21e);if(_0x4d4503&&_0x4d4503['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3e83a4['type']&&(_0x1d0379['isBlock'](_0xb9c21e)&&!_0x1d0379['isLimit'](_0xb9c21e)&&(_0xb9c21e['nextSibling']||_0x3f2a0a['isAtEnd']?_0x798648&&_0x798648['parent']==_0xb9c21e||(_0x798648=_0xb9c21e,_0x5600f5(_0x3e83a4['previousPosition']),_0x522f8c=!0x0):_0x2738bc=_0x2738bc||_0x3e83a4['previousPosition']));}function _0x5600f5(_0x4334d2){const _0x41ebf3=_0xa29487['mapper']['toViewPosition'](_0x4334d2),_0x2145d4=_0xa29487['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x439218});_0xa29487['writer']['insert'](_0x41ebf3,_0x2145d4),_0xa29487['mapper']['bindElementToMarker'](_0x2145d4,_0x41e489['markerName']);}_0x493960||_0x522f8c||!_0x2738bc||_0x5600f5(_0x2738bc);};}class _t extends _0x39d2fd{constructor(_0x1b8678){super(_0x1b8678);const _0x276a13=_0x1b8678['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x276a13,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x276a13,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x42dbea=this['editor'],_0x4ead64=_0x42dbea['plugins']['get'](d),_0x2d7cbe=_0x4ead64['isReady']?_0x4ead64['diff']['newRevisionId']:null;_0x42dbea['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2d7cbe);}['refresh'](){const {isReady:_0x465d08,isEnabled:_0x301d19,repository:_0x2fe6c7,diff:_0xf4da90}=this['editor']['plugins']['get'](d),_0x260899=_0xf4da90&&_0x2fe6c7['getLaterVisibleRevision'](_0xf4da90['newRevisionId']);this['isEnabled']=_0x465d08&&_0x301d19&&Boolean(_0x260899);}}class yt extends _0x39d2fd{['_step'];constructor(_0x5da875,{direction:_0x2c56c5}){super(_0x5da875);const _0x414455=_0x5da875['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2c56c5?0x1:-0x1,this['listenTo'](_0x414455,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x414455,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x414455,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4acc92=this['editor'],_0x42d39d=_0x4acc92['plugins']['get'](d),{isNavigationMode:_0x766d02,currentChangeNumber:_0x954ccc}=_0x42d39d;let _0x53aec1;if(_0x42d39d['activeChange']=_0x766d02?_0x42d39d['diff']['changes']['get'](_0x954ccc+this['_step']):_0x42d39d['diff']['changes']['first'],_0x42d39d['activeChange']['data']['isOnRoot'])_0x53aec1=_0x4acc92['editing']['view']['getDomRoot'](_0x42d39d['activeChange']['rootName']);else{const _0xb40ed0=_0x4acc92['model']['markers']['get']('revision:'+_0x42d39d['activeChange']['id']);_0x53aec1=_0x27c2fd(_0x4acc92['editing'],_0xb40ed0);}_0x57074d({'target':_0x53aec1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x542ea1,currentChangeNumber:_0x3aa9db,numberOfChanges:_0x5a511b,isReady:_0x3a4b20,isEnabled:_0x568c46}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x568c46&&_0x3a4b20&&_0x5a511b)&&(!_0x542ea1||(0x1===this['_step']?_0x3aa9db<_0x5a511b-0x1:_0x3aa9db>0x0));}}class di extends _0x528dcf{constructor(_0x58b631){super(_0x58b631);const _0x4d82b9=this['bindTemplate'],_0x199c8f=new _0x4fe6e(_0x58b631),_0x5cb16d=new _0x4fe6e(_0x58b631);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',(_0x15a927,_0xd4d47b)=>_0x15a927&&_0xd4d47b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x464e00,_0x213a27,_0x193b45,_0xa33169)=>{if(!_0x464e00)return m(_0x58b631,'Loading...');if(!_0x193b45)return m(_0x58b631,'No\x20changes');const _0x56e9eb=m(_0x58b631,'NUMBER_OF_CHANGES',_0x193b45);return _0xa33169?m(_0x58b631,'X_OF_Y_CHANGES',[_0x213a27+0x1,_0x193b45]):_0x56e9eb;}),_0x199c8f['set']({'label':m(_0x58b631,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5cb16d['set']({'label':m(_0x58b631,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x199c8f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5cb16d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x199c8f['on']('execute',()=>this['fire']('execute','backward')),_0x5cb16d['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',_0x4d82b9['if']('_isStatusLabelVisible','ck-hidden',_0x4da62a=>!_0x4da62a)]},'children':[{'text':_0x4d82b9['to']('isNavigationMode',_0x1cffa1=>_0x1cffa1?m(_0x58b631,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x58b631,'Total')+':\x20')}]},{'text':_0x4d82b9['to']('_statusText')}]},new _0x5e3793(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x199c8f,_0x5cb16d]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x2fef22{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x49b60b=this['editor']['editing']['view'];_0x49b60b['change'](_0x176e0c=>{for(const _0x558971 of _0x49b60b['document']['roots'])_0x176e0c['addClass'](ce,_0x558971);});}['hide'](){const _0x151216=this['editor']['editing']['view'];_0x151216['change'](_0x1539f7=>{for(const _0x536ddc of _0x151216['document']['roots'])_0x1539f7['removeClass'](ce,_0x536ddc);});}}class g extends _0x2fef22{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x424527=this['editor'],_0x151dfa=_0x424527['plugins']['get'](d),_0x1cf465=_0x424527['plugins']['get'](ae);_0x424527['ui']['componentFactory']['add']('exitToEditing',_0x4a6646=>{const _0x48f1ae=new _0x4fe6e(_0x4a6646);return _0x48f1ae['set']({'label':m(_0x4a6646,'Back\x20to\x20editing'),'icon':_0x34d699['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x48f1ae,'execute',()=>{_0x424527['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x48f1ae;}),_0x424527['ui']['componentFactory']['add']('restoreRevision',_0x3cb70c=>{const _0x4e812e=new _0x4fe6e(_0x3cb70c);return _0x4e812e['set']({'label':m(_0x3cb70c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e812e['bind']('isEnabled')['to'](_0x424527['commands']['get']('restoreRevision')),this['listenTo'](_0x4e812e,'execute',()=>_0x424527['execute']('restoreRevision')),_0x4e812e;}),_0x424527['ui']['componentFactory']['add']('changesNavigation',_0x38bf6a=>{const _0xa7c461=new di(_0x38bf6a),_0x56e2bd=_0x424527['commands']['get']('showPreviousChange'),_0x3673f3=_0x424527['commands']['get']('showNextChange');return _0xa7c461['bind']('isBackwardNavigationEnabled')['to'](_0x56e2bd,'isEnabled'),_0xa7c461['bind']('isForwardNavigationEnabled')['to'](_0x3673f3,'isEnabled'),_0xa7c461['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x151dfa),this['listenTo'](_0xa7c461,'execute',(_0x49d903,_0x38520c)=>{_0x424527['execute']('forward'===_0x38520c?'showNextChange':'showPreviousChange');}),_0xa7c461;}),_0x1cf465['show'](),_0x151dfa['on']('change:isReady',(_0x4c4ae1,_0x586102,_0x5aab0c)=>{_0x5aab0c?_0x1cf465['hide']():_0x1cf465['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x286200,_0x135e76){super(_0x286200,_0x135e76);const _0x55a5d3=this['bindTemplate'];this['set']({'label':m(_0x286200,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x286200,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x55a5d3['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x1140dd=this['fieldView']['element'];this['_tooltipString']=_0x1140dd['scrollWidth']>_0x1140dd['clientWidth']&&_0x1140dd['value']||'';}}class ti extends _0x528dcf{constructor(_0x158d94,_0x8d2024,_0x4afe4d){super(_0x158d94);const _0x3678f4=new _0x267780();_0x3678f4['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x41a551=['ck','ck-revision-history-sidebar__revision-author'];_0x4afe4d&&_0x41a551['push']('ck-revision-history-sidebar__revision-author_creator');const _0x672bee=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x158d94,_0x4afe4d?'Revision\x20creator':'Revision\x20author')},'children':[_0x3678f4,_0x8d2024['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x41a551},'children':_0x672bee});}}function ni(_0x2fee14,_0x3f7f45){const _0x49800c=_0x2fee14['bindTemplate'],_0x3aa37c=_0x2fee14['locale'],_0x422bc9=_0x3dbdae(_0x3aa37c);_0x422bc9['panelPosition']='sw';const _0x4d898b=function(_0x4d6ccf,_0x3c3e59){const _0x470143=function(_0x2f7cfe,_0x4022bb){const _0x5df616=_0x2f7cfe['locale'],_0x4b311b={'Compare\x20against\x20selected':m(_0x5df616,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5df616,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5df616,'Restore\x20this\x20revision')};return _0x4022bb['map'](_0x1fa549=>{const _0x1e31c8=_0x4b311b[_0x1fa549['name']];return _0x1e31c8&&_0x1e31c8!==_0x1fa549['name']&&(_0x1fa549['name']=_0x1e31c8),_0x1fa549;});}(_0x4d6ccf,_0x3c3e59),_0x51492f=new _0x23661b();for(const _0x402324 of _0x470143){const _0x20311b={'type':'button','model':new to({'label':_0x402324['name'],'class':_0x402324['class'],'withText':!0x0,'role':'menuitem','_action':_0x402324['action']})};_0x20311b['model']['bind']('isEnabled')['to'](_0x4d6ccf,'isActionsDropdownOpen',_0x25cb55=>'function'!=typeof _0x402324['isEnabled']||(!_0x25cb55||_0x402324['isEnabled'](_0x4d6ccf))),_0x51492f['add'](_0x20311b);}return _0x51492f;}(_0x2fee14,_0x3f7f45);return _0x2fee14['bind']('isActionsDropdownOpen')['to'](_0x422bc9,'isOpen'),_0x422bc9['buttonView']['set']({'label':m(_0x3aa37c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x34d699['threeVerticalDots']}),_0x422bc9['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x49800c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x49800c['to'](_0x5ef102=>_0x5ef102['stopPropagation']())}}),_0x422bc9['on']('execute',_0x189749=>{_0x2fee14['isReady']&&'function'==typeof _0x189749['source']['_action']&&_0x189749['source']['_action'](_0x2fee14);}),_0x37c010(_0x422bc9,_0x4d898b,{'role':'menu'}),_0x422bc9['listenTo'](_0x2fee14,'change:isActionsDropdownOpen',(_0x166f05,_0x456ae4,_0x1d52b3)=>{if(_0x1d52b3)for(const _0x2b1707 of _0x422bc9['listView']['items']){const _0x5ed166=_0x2b1707['children']['first'],_0x57e6fd=_0x3f7f45['find'](_0x13d1d6=>_0x13d1d6['action']===_0x5ed166['_action'])['isVisible'];_0x2b1707['isVisible']=void 0x0===_0x57e6fd||_0x57e6fd(_0x2fee14);}}),_0x422bc9;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x243359(_0x528dcf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x29b004,_0x4c86d7,_0x409a0d,_0x4fa1cd){super(_0x29b004);const _0x389906=this['bindTemplate'],_0x3faaa6=function(_0x9b5af8,_0x4de048){const _0x428dc1=Array['from'](_0x4de048['authors'])['filter'](_0x17741b=>_0x17741b!=_0x4de048['creator']);return _0x4de048['creator']&&_0x428dc1['unshift'](_0x4de048['creator']),_0x428dc1['map'](_0x1fb1ec=>new ti(_0x9b5af8,_0x1fb1ec,_0x1fb1ec==_0x4de048['creator']));}(_0x29b004,_0x4c86d7);this['id']=_0x4c86d7['id'],this['_revision']=_0x4c86d7,this['_requireRevisionName']=_0x4fa1cd,this['bind']('name','createdAt')['to'](_0x4c86d7),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3370e3=>{return _0x12f83f=_0x29b004['uiLanguage'],(_0x1c3f74=_0x3370e3)['toLocaleDateString'](_0x12f83f,{'month':'long','day':'numeric'})+',\x20'+_0x1c3f74['toLocaleTimeString'](_0x12f83f,{'hour':'numeric','minute':'numeric'});var _0x12f83f,_0x1c3f74;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x29b004,_0x554978),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x38bbec=>_0x38bbec||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x46ba7d,_0x4fae79)=>_0x46ba7d&&_0x4fae79),this['revisionActionsView']=_0x409a0d&&_0x409a0d['length']?ni(this,_0x409a0d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x389906['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x389906['if']('isEnabled','ck-disabled',_0x491eb7=>!_0x491eb7),_0x389906['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x389906['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x389906['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':_0x389906['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':_0x3faaa6}]},this['revisionActionsView']],'on':{'click':_0x389906['to'](_0x877c5c=>{_0x877c5c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x509d7b=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x509d7b,'change',()=>{this['_requireRevisionName']&&!_0x509d7b['value']||this['fire']('setName',{'id':this['id'],'name':_0x509d7b['value']}),_0x509d7b['value']||(_0x509d7b['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x1306b1,_0x3a0a47){const _0x56f939=_0x5d7766['fromJSDate'](_0x1306b1)['setLocale'](_0x3a0a47),_0x2647a1=_0x5d7766['local'](),_0x59bd45=_0x2647a1['minus']({'days':0x1})['startOf']('day');let _0x4375a7,_0x568a9d;return _0x56f939['hasSame'](_0x2647a1,'day')?(_0x4375a7=_0x56f939['startOf']('day')['toJSDate'](),_0x568a9d=_0x56f939['toRelativeCalendar']()):_0x56f939['hasSame'](_0x59bd45,'day')?(_0x4375a7=_0x59bd45['toJSDate'](),_0x568a9d=_0x56f939['toRelativeCalendar']()):_0x56f939['hasSame'](_0x2647a1,'week')?(_0x4375a7=_0x56f939['startOf']('week')['toJSDate'](),_0x568a9d=_0x56f939['weekdayLong']||''):_0x56f939['hasSame'](_0x2647a1,'year')?(_0x4375a7=_0x56f939['startOf']('month')['toJSDate'](),_0x568a9d=_0x56f939['monthLong']||''):(_0x4375a7=_0x56f939['startOf']('year')['toJSDate'](),_0x568a9d=String(_0x56f939['year'])),{'startDate':_0x4375a7,'localizedPeriodName':_0x568a9d};}class vi extends _0x528dcf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4f8d35,_0x59fb54,_0x43c77e,_0x59782){super(_0x4f8d35);const _0x2445d0=mi(_0x59fb54,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x59fb54,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x43c77e,this['_requireRevisionName']=_0x59782,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':_0x2445d0}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2da7b8){const _0x4e0f72=new ai(this['locale'],_0x2da7b8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4e0f72);}['removeRevision'](_0x5c0ac1){const _0x6f7609=this['revisionViews']['find'](_0x53b32f=>_0x53b32f['id']===_0x5c0ac1['id']);this['revisionViews']['remove'](_0x6f7609);}}class as extends _0x528dcf{constructor(_0x40f942){super(_0x40f942);const _0x5f2204=new _0x267780();_0x5f2204['content']=_0x34d699['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5f2204,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x40f942,'Revision\x20history')]}]});}}class li extends _0x528dcf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x45901a,_0x1fd1ee,_0x1b90b8,_0x4190c4){super(_0x45901a);const _0x32c413=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1fd1ee,this['_revisionActions']=_0x1b90b8,this['_requireRevisionName']=_0x4190c4,this['on']('select',(_0x1d1b8e,_0x1bef40)=>{this['fire']('revisionSelected',_0x1bef40);}),this['on']('setName',(_0x96718b,_0x3ada4e)=>{this['fire']('revisionSetName',_0x3ada4e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x45901a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x32c413['if']('isEnabled','ck-disabled',_0xb85c2c=>!_0xb85c2c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x48ae79 of this['_revisions'])this['_addRevision'](_0x48ae79);this['_revisions']['on']('add',(_0x126d0a,_0x5e50ec)=>{this['_addRevision'](_0x5e50ec);}),this['_revisions']['on']('remove',(_0x4f945c,_0x866a4)=>{this['_removeRevision'](_0x866a4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x351d82=>_0x351d82['revisionViews']['map'](_0x4a044b=>_0x4a044b))['flat']();}['selectRevision'](_0x19e2c0){for(const _0xbcf3a9 of this['revisionViews'])_0x19e2c0&&_0x19e2c0['id']===_0xbcf3a9['id']?_0xbcf3a9['select']():_0xbcf3a9['deselect']();}['highlightRevisions'](_0x53175f){for(const _0x409fe2 of this['revisionViews'])_0x53175f['some'](({id:_0x347e09})=>_0x347e09===_0x409fe2['id'])?_0x409fe2['highlight']():_0x409fe2['unhighlight']();}['_addRevision'](_0x13bfd7){const _0x1cab2e=mi(_0x13bfd7['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5001aa=this['timePeriodViews']['get'](0x0);_0x5001aa&&_0x5001aa['startDate']['getTime']()===_0x1cab2e['getTime']()||(_0x5001aa=new vi(this['locale'],_0x1cab2e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5001aa)),_0x5001aa['addRevision'](_0x13bfd7);}['_removeRevision'](_0x5d965c){const _0x3962b8=mi(_0x5d965c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3962b8)['removeRevision'](_0x5d965c);}['_getTimePeriodViewByStartDate'](_0x107929){return this['timePeriodViews']['find'](_0xc531b=>_0xc531b['startDate']['getTime']()===_0x107929['getTime']());}}class w extends _0x2fef22{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2d2e26,_0x310a13){super(_0x310a13),this['sourceElement']=_0x2d2e26,this['model']['document']['createRoot']();const _0x1f1737=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1f1737);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x367a0e,_0x2068de){const _0x28d808=new this(_0x367a0e,_0x2068de);return await _0x28d808['initPlugins'](),await _0x28d808['ui']['init'](_0x367a0e),await _0x28d808['data']['init'](_0x28d808['config']['get']('initialData')||''),_0x28d808['fire']('ready'),_0x28d808;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3f9988{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x516356){function _0x421f27(_0x1bb6c0){return _0x1bb6c0['map'](_0x4d591a=>String['fromCharCode'](_0x4d591a))['join']('');}super(_0x516356),this['result']='end',_0x516356[_0x421f27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x421f27([0x76,0x69,0x65,0x77])][_0x421f27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x421f27([0x61,0x75,0x74,0x6f]),_0x516356[_0x421f27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x421f27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x421f27([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x421f27([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x421f27([0x6f,0x6b])});}}class k extends _0x3f9988{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x52f79e){if(super(_0x52f79e),!this['editor']['config']['get']('revisionHistory'))throw new _0x50d770('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x53b14f=>this['_showRevisionViewer']({..._0x53b14f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4ac7a8=>this['_closeRevisionViewer'](_0x4ac7a8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3e777d=>this['_restoreRevision'](_0x3e777d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x29092c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x29092c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x391bed){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x391bed);}['getRevision'](_0x6a121){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6a121);}['getRevisions'](_0x404cdf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x404cdf||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4919e6=this['editor'],_0x320b39=_0x2faac4(_0x4919e6,p),_0x1f22c9=_0x4919e6['plugins']['get']('RevisionTracker'),_0x343147=_0x4919e6['plugins']['get']('Users')['users'];return _0x320b39['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x320b39['lazyRoots'],(_0x320b39['plugins']['push'](Rt,d,g,class extends _0x3f9988{static get['requires'](){return[d,'Users'];}['init'](){const _0x5e7de6=this['editor']['plugins']['get']('Users');for(const _0x46813e of _0x343147)_0x46813e['isAnonymous']||_0x5e7de6['getUser'](_0x46813e['id'])||_0x5e7de6['addUser'](_0x46813e);const _0x4fe7cd=_0x1f22c9['repository']['getRevisions']();let _0x5c63e9=null;const _0x2ecaf3=this['editor']['plugins']['get']('RevisionViewer');_0x2ecaf3['adapter']=_0x1f22c9['adapter'],_0x2ecaf3['bind']('isEnabled')['to'](_0x1f22c9),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4919e6,'isReadOnly',_0x354f1b=>!_0x354f1b);for(const _0x2e557b of _0x4fe7cd){const _0x3999c1=null===_0x2e557b['creator'];if(_0x3999c1&&_0x2e557b['toVersion']===_0x2e557b['fromVersion'])continue;const _0x111c20=_0x2e557b['toJSON']();_0x2ecaf3['addRevisionData'](_0x111c20,(_0x1276bc,_0x3a7769,_0x431bca)=>{if(_0x3999c1){if(_0x5c63e9)_0x5c63e9['_update'](_0x1276bc,_0x3a7769);else{if(!_0x3a7769){const _0x5f1df1=_0x431bca['toJSON']();_0x5f1df1['id']=_0x14fde0(),_0x1f22c9['saveRevision'](_0x5f1df1,_0x431bca['toVersion'])['then'](_0x13ffd3=>{_0x5c63e9=_0x13ffd3;});}}}else _0x2e557b['_update'](_0x1276bc,_0x3a7769);});}}},w),_0x320b39);}['_enhanceShowRevisionViewerCallback'](){const _0x3ebfab=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x314f5e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3080a7=this['editor']['plugins']['get']('Autosave');await _0x3080a7['save']();}else await _0x314f5e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x43b2aa=this['editor']['plugins']['get']('Dialog');_0x43b2aa['isOpen']&&_0x43b2aa['hide']();}const _0x1e0d14=this['_getRevisionViewerEditorConfig']();return _0x3ebfab(_0x1e0d14)['then'](_0x329524=>{return(this['_viewerEditor']=_0x329524,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x329524;})['catch'](_0x49184c=>(console['error'](_0x49184c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x455453=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x455453(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x193fc3=this['editor']['plugins']['get']('Annotations');_0x193fc3['refreshVisibility'](),_0x193fc3['refreshPositioning']();}})));}['_showRevisionViewer'](_0x169d5b){const _0x5307a0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4d9b79=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2b30bf=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2b30bf,_0x169d5b)['then'](_0x223855=>(_0x4d9b79['style']['display']='block',_0x5307a0['style']['display']='none',_0x223855));}['_closeRevisionViewer'](_0x4dee38){const _0x1161bb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1161bb['style']['display']='',_0x4dee38['destroy']();}async['_restoreRevision'](_0x1cd2fb){const _0x4c6541=this['editor'],_0x554e44=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x35911b=_0x4c6541['plugins']['get']('RevisionTracker'),_0xea798c=_0x554e44['repository']['getRevision'](_0x1cd2fb);let _0x5adc2,_0xce5680,_0x4fb09d;try{_0x5adc2=await _0x554e44['getRevisionData'](_0xea798c),_0xce5680=await _0x554e44['getRevisionRootsAttributes'](_0xea798c);}catch(_0x316788){return void console['error'](_0x316788);}_0x4c6541['model']['change'](_0x54bd6b=>{for(const _0x4f416d of Array['from'](_0x4c6541['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x54bd6b['removeMarker'](_0x4f416d);}),_0x554e44['isReady']=!0x1,_0x4c6541['model']['enqueueChange'](_0x462687=>{_0x462687['setSelection'](null),_0x462687['removeSelectionAttribute'](_0x4c6541['model']['document']['selection']['getAttributeKeys']());const _0xf19f6e=Object['keys'](_0x5adc2);for(const _0x2d3ea2 of _0x4c6541['model']['document']['roots'])'$graveyard'!=_0x2d3ea2['rootName']&&_0x2d3ea2['isAttached']()&&!_0xf19f6e['includes'](_0x2d3ea2['rootName'])&&_0x462687['detachRoot'](_0x2d3ea2);for(const _0x2caf62 of _0xf19f6e){let _0x52799d=_0x4c6541['model']['document']['getRoot'](_0x2caf62);_0x52799d&&_0x52799d['isAttached']()||(_0x52799d=_0x462687['addRoot'](_0x2caf62));const _0x308c49=_0xce5680[_0x2caf62],_0x140df8=Object['keys'](_0x308c49),_0xc465f5=_0x5adc2[_0x2caf62];for(const _0x452ff9 of _0x52799d['getAttributeKeys']())_0x140df8['includes'](_0x452ff9)||_0x462687['removeAttribute'](_0x452ff9,_0x52799d);for(const _0x2853b0 of _0x140df8)_0x462687['setAttribute'](_0x2853b0,_0xce5680[_0x2caf62][_0x2853b0],_0x52799d);_0x462687['remove'](_0x462687['createRangeIn'](_0x52799d)),_0x462687['insert'](_0x4c6541['data']['parse'](_0xc465f5,_0x52799d),_0x52799d,0x0);}});const _0x280879=m(_0x4c6541['locale'],'Restored');if(_0xea798c['name'])_0x4fb09d=-0x1==_0xea798c['name']['indexOf'](_0x280879)?_0x280879+':\x20'+_0xea798c['name']:_0xea798c['name'];else _0x4fb09d=_0x280879+':\x20'+(_0xea798c['createdAt']['toLocaleDateString'](_0x4c6541['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xea798c['createdAt']['toLocaleTimeString'](_0x4c6541['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x35911b['saveRevision']({'name':_0x4fb09d}),_0x554e44['isReady']=!0x0,_0x4c6541['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5edfe4){super(_0x5edfe4),this['_revisionViewer']=_0x5edfe4['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2afad4=this['_revisionsRepository']['_revisions'],_0x18e2b4=this['_createRevisionActions'](),_0x460907=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x2afad4,_0x18e2b4,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',(_0x1e26b,_0xebd192)=>{_0xebd192['revisionViews']['on']('add',(_0x3012a3,_0x957727)=>{_0x957727['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)),_0x460907['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1ee0da=this['_revisionsRepository']['getRevision'](0x0);if(_0x1ee0da){const _0x2d0570=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1ee0da['id']);this['_revisionViewer']['compare'](_0x1ee0da,_0x2d0570);}}['_handleRevisionSelected'](_0x160511,_0xa6b137){const _0x387d81=this['_revisionsRepository']['getRevision'](_0xa6b137['id']),_0x4a9b6c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x387d81['id']);this['_revisionViewer']['compare'](_0x387d81,_0x4a9b6c);}['_handleRevisionSetName'](_0x1eb030,_0x3b3768){this['_revisionsRepository']['getRevision'](_0x3b3768['id'])['setName'](_0x3b3768['name']);}['_handleDiffChange'](_0x384d07,_0x1aa79a,_0x123c53){const _0x443d59=this['_revisionsRepository']['getRevisionsInDiff'](_0x123c53);_0x443d59['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x443d59),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x443d59[0x0]));}['_createRevisionActions'](){const _0x2ad255=this['editor'],_0x4c1029=w['availableRevisionActions'],_0x27c063=_0x2ad255['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x27c063['length'])return _0x27c063['map'](_0x54bbbc=>{const _0x25ea0c='string'==typeof _0x54bbbc?Object['assign']({},_0x4c1029[_0x54bbbc]):_0x54bbbc;return _0x25ea0c['action']=_0x25ea0c['action']['bind'](this,_0x2ad255),_0x25ea0c['isVisible']&&(_0x25ea0c['isVisible']=_0x25ea0c['isVisible']['bind'](this,_0x2ad255)),_0x25ea0c;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x508d4c},_0x56272c)=>{const _0x426402=_0x508d4c['get'](d),_0x280b90=_0x426402['repository'];let _0x16235a=_0x426402['diff']['newRevisionId'],_0x4fb071=_0x56272c['id'];_0x280b90['getIndex'](_0x16235a)>_0x280b90['getIndex'](_0x4fb071)&&([_0x16235a,_0x4fb071]=[_0x4fb071,_0x16235a]),_0x426402['compare'](_0x16235a,_0x4fb071);},'isVisible':({plugins:_0x3aa623},_0x298495)=>{const _0x422449=_0x3aa623['get'](d);return!(_0x422449['repository']['getRevisionsInDiff'](_0x422449['diff'])['length']>0x2)&&!_0x298495['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x40505a,{id:_0x1bfedb})=>{_0x40505a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1bfedb);},'isVisible':({plugins:_0x105c5a},_0x35e5da)=>!!_0x105c5a['get'](d)['repository']['getLaterVisibleRevision'](_0x35e5da['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x598cef},{id:_0xd4bbd,revisionNameView:_0x1df0a1})=>{const _0x3cd19a=_0x598cef['get'](d),_0xba2786=_0x3cd19a['repository']['getEarlierVisibleRevision'](_0xd4bbd);_0x3cd19a['compare'](_0xd4bbd,_0xba2786),_0x1df0a1['focus'](),_0x1df0a1['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x32ee65,_0x37f207){super(_0x32ee65),this['_view']=_0x37f207,this['_toolbarConfig']=ot(_0x32ee65['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2531da){const _0x57d90a=this['editor'],_0xb01e30=this['view'],_0x578580=_0x57d90a['editing']['view'],_0x33ebec=_0xb01e30['editable'],_0x3f3d75=_0x578580['document']['getRoot']();_0x33ebec['name']=_0x3f3d75['rootName'],_0xb01e30['render']();const _0x9649b0=_0x33ebec['element'];this['setEditableElement'](_0x33ebec['name'],_0x9649b0),_0xb01e30['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x578580['attachDomRoot'](_0x9649b0),this['_elementReplacer']['replace'](_0x2531da,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xedd734=this['view'],_0x2b5a5=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2b5a5['detachDomRoot'](_0xedd734['editable']['name']),_0xedd734['destroy']();}['_initToolbar'](){const _0x44b8d0=this['view'];_0x44b8d0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x44b8d0['stickyPanel']['limiterElement']=_0x44b8d0['element'],_0x44b8d0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xb31db8})=>_0xb31db8),_0x44b8d0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x44b8d0['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x13954a,_0x161a1c,_0x49cfe4={}){super(_0x13954a),this['stickyPanel']=new ut(_0x13954a),this['toolbar']=new lt(_0x13954a,{'shouldGroupWhenFull':_0x49cfe4['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x13954a,_0x161a1c);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xa7d56c,_0x477ef2){super(_0x477ef2),this['sourceElement']=_0xa7d56c,this['model']['document']['createRoot']();const _0x542ee9=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x542ee9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x26ee62,_0x261377){const _0x4042c8=new this(_0x26ee62,_0x261377);return await _0x4042c8['initPlugins'](),await _0x4042c8['ui']['init'](_0x26ee62),await _0x4042c8['data']['init'](_0x4042c8['config']['get']('initialData')||''),_0x4042c8['fire']('ready'),_0x4042c8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x2fef22{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7babaa){function _0xc85fff(_0x42d815){return _0x42d815['map'](_0x165fdb=>String['fromCharCode'](_0x165fdb))['join']('');}super(_0x7babaa),this['result']='end',_0x7babaa[_0xc85fff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc85fff([0x76,0x69,0x65,0x77])][_0xc85fff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc85fff([0x61,0x75,0x74,0x6f]),_0x7babaa[_0xc85fff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xc85fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc85fff([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xc85fff([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xc85fff([0x6f,0x6b])});}}class k extends _0x2fef22{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3aea2a){if(super(_0x3aea2a),!this['editor']['config']['get']('revisionHistory'))throw new _0xfe2b9b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5af4da=>this['_showRevisionViewer']({..._0x5af4da,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x7490bf=>this['_closeRevisionViewer'](_0x7490bf)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x513303=>this['_restoreRevision'](_0x513303)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xaa2ee0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xaa2ee0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x163a3b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x163a3b);}['getRevision'](_0x4f9011){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4f9011);}['getRevisions'](_0x11b500){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x11b500||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4549f4=this['editor'],_0x4a454d=_0x1d0f8a(_0x4549f4,p),_0x208e15=_0x4549f4['plugins']['get']('RevisionTracker'),_0x564b47=_0x4549f4['plugins']['get']('Users')['users'];return _0x4a454d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a454d['lazyRoots'],(_0x4a454d['plugins']['push'](Rt,d,g,class extends _0x2fef22{static get['requires'](){return[d,'Users'];}['init'](){const _0x7cf77d=this['editor']['plugins']['get']('Users');for(const _0x149b96 of _0x564b47)_0x149b96['isAnonymous']||_0x7cf77d['getUser'](_0x149b96['id'])||_0x7cf77d['addUser'](_0x149b96);const _0x527c15=_0x208e15['repository']['getRevisions']();let _0x261f03=null;const _0x54f417=this['editor']['plugins']['get']('RevisionViewer');_0x54f417['adapter']=_0x208e15['adapter'],_0x54f417['bind']('isEnabled')['to'](_0x208e15),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4549f4,'isReadOnly',_0x2a7f44=>!_0x2a7f44);for(const _0x332995 of _0x527c15){const _0x112891=null===_0x332995['creator'];if(_0x112891&&_0x332995['toVersion']===_0x332995['fromVersion'])continue;const _0x1e941f=_0x332995['toJSON']();_0x54f417['addRevisionData'](_0x1e941f,(_0x41cdc3,_0x1ba30e,_0x3a8f84)=>{if(_0x112891){if(_0x261f03)_0x261f03['_update'](_0x41cdc3,_0x1ba30e);else{if(!_0x1ba30e){const _0x533bd1=_0x3a8f84['toJSON']();_0x533bd1['id']=_0x32a6fe(),_0x208e15['saveRevision'](_0x533bd1,_0x3a8f84['toVersion'])['then'](_0x504d2a=>{_0x261f03=_0x504d2a;});}}}else _0x332995['_update'](_0x41cdc3,_0x1ba30e);});}}},w),_0x4a454d);}['_enhanceShowRevisionViewerCallback'](){const _0x16897a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3c393d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2edaae=this['editor']['plugins']['get']('Autosave');await _0x2edaae['save']();}else await _0x3c393d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2908b7=this['editor']['plugins']['get']('Dialog');_0x2908b7['isOpen']&&_0x2908b7['hide']();}const _0x23f983=this['_getRevisionViewerEditorConfig']();return _0x16897a(_0x23f983)['then'](_0x888c77=>{return(this['_viewerEditor']=_0x888c77,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x888c77;})['catch'](_0x5267dc=>(console['error'](_0x5267dc),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x44487d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x44487d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x478118=this['editor']['plugins']['get']('Annotations');_0x478118['refreshVisibility'](),_0x478118['refreshPositioning']();}})));}['_showRevisionViewer'](_0x199dc4){const _0x211dda=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x248392=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x8a0707=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x8a0707,_0x199dc4)['then'](_0x332e48=>(_0x248392['style']['display']='block',_0x211dda['style']['display']='none',_0x332e48));}['_closeRevisionViewer'](_0x1db955){const _0x259550=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x259550['style']['display']='',_0x1db955['destroy']();}async['_restoreRevision'](_0x2d2240){const _0x5279ac=this['editor'],_0x41e006=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5849d4=_0x5279ac['plugins']['get']('RevisionTracker'),_0xd538c5=_0x41e006['repository']['getRevision'](_0x2d2240);let _0x92a888,_0xa3633,_0x192e63;try{_0x92a888=await _0x41e006['getRevisionData'](_0xd538c5),_0xa3633=await _0x41e006['getRevisionRootsAttributes'](_0xd538c5);}catch(_0x4aea5b){return void console['error'](_0x4aea5b);}_0x5279ac['model']['change'](_0x33bf23=>{for(const _0x559a2f of Array['from'](_0x5279ac['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x33bf23['removeMarker'](_0x559a2f);}),_0x41e006['isReady']=!0x1,_0x5279ac['model']['enqueueChange'](_0x4e1bc0=>{_0x4e1bc0['setSelection'](null),_0x4e1bc0['removeSelectionAttribute'](_0x5279ac['model']['document']['selection']['getAttributeKeys']());const _0x5a950f=Object['keys'](_0x92a888);for(const _0x27a80c of _0x5279ac['model']['document']['roots'])'$graveyard'!=_0x27a80c['rootName']&&_0x27a80c['isAttached']()&&!_0x5a950f['includes'](_0x27a80c['rootName'])&&_0x4e1bc0['detachRoot'](_0x27a80c);for(const _0xf0a644 of _0x5a950f){let _0x264e2d=_0x5279ac['model']['document']['getRoot'](_0xf0a644);_0x264e2d&&_0x264e2d['isAttached']()||(_0x264e2d=_0x4e1bc0['addRoot'](_0xf0a644));const _0xf152e3=_0xa3633[_0xf0a644],_0x43a560=Object['keys'](_0xf152e3),_0x16be95=_0x92a888[_0xf0a644];for(const _0x48949c of _0x264e2d['getAttributeKeys']())_0x43a560['includes'](_0x48949c)||_0x4e1bc0['removeAttribute'](_0x48949c,_0x264e2d);for(const _0x495c92 of _0x43a560)_0x4e1bc0['setAttribute'](_0x495c92,_0xa3633[_0xf0a644][_0x495c92],_0x264e2d);_0x4e1bc0['remove'](_0x4e1bc0['createRangeIn'](_0x264e2d)),_0x4e1bc0['insert'](_0x5279ac['data']['parse'](_0x16be95,_0x264e2d),_0x264e2d,0x0);}});const _0x595523=m(_0x5279ac['locale'],'Restored');if(_0xd538c5['name'])_0x192e63=-0x1==_0xd538c5['name']['indexOf'](_0x595523)?_0x595523+':\x20'+_0xd538c5['name']:_0xd538c5['name'];else _0x192e63=_0x595523+':\x20'+(_0xd538c5['createdAt']['toLocaleDateString'](_0x5279ac['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xd538c5['createdAt']['toLocaleTimeString'](_0x5279ac['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5849d4['saveRevision']({'name':_0x192e63}),_0x41e006['isReady']=!0x0,_0x5279ac['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|