@ckeditor/ckeditor5-revision-history 46.1.0 → 46.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.d.ts +1 -1
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x3e54cf(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x57ac44){super(),this['id']=_0x57ac44['id']||_0x515d40(),this['creator']=_0x57ac44['creator']||null,this['authors']=_0x57ac44['authors']||[],this['diffData']=_0x57ac44['diffData']||null,this['toVersion']=_0x57ac44['toVersion']||0x0,this['fromVersion']=_0x57ac44['fromVersion']||0x0,this['set']('name',_0x57ac44['name']||''),this['set']('createdAt',_0x57ac44['createdAt']||new Date()),this['set']('attributes',_0x57ac44['attributes']||{});}['setName'](_0x2d11fe){this['_update']({'name':_0x2d11fe});}['setAttribute'](_0x5d67b8,_0x56995c){const _0xd9d267=_0x1fffc6(this['attributes']);_0x210c0b(_0xd9d267,_0x5d67b8,_0x56995c),this['_update']({'attributes':_0xd9d267});}['removeAttribute'](_0x52116c){const _0x528af7=_0x1fffc6(this['attributes']);_0x530359(_0x528af7,_0x52116c),this['_update']({'attributes':_0x528af7});}['_update'](_0x3232c7,_0x1c417f=!0x1){let _0x3787f3=!0x1;const _0x35b469={'id':this['id']},_0x898efb=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2e9251 of _0x898efb){const _0x29f603=_0x3232c7[_0x2e9251];void 0x0!==_0x29f603&&_0x29f603!==this[_0x2e9251]&&(this[_0x2e9251]=_0x29f603,_0x35b469[_0x2e9251]=_0x29f603,_0x3787f3=!0x0);}_0x3787f3&&(_0x35b469['authors']&&(_0x35b469['authorsIds']=_0x35b469['authors']['map'](_0x79346a=>_0x79346a['id']),delete _0x35b469['authors']),this['fire']('_update',_0x35b469,_0x1c417f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x197a62=>_0x197a62['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x278e34{['_revisions'];static get['requires'](){return[_0x3fef6b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5d24ed){super(_0x5d24ed),this['_revisions']=new _0x42f581();}['afterInit'](){!async function(_0x2bb360){const _0x2a753a=_0x8a3931([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x2395b0=0xeb829,_0x482e6f=0x7374585f,_0x438ea3=0x73732aa7^_0x482e6f,_0x567523=window[_0x8a3931([0x44,0x61,0x74,0x65])][_0x8a3931([0x6e,0x6f,0x77])](),_0x50168b=_0x2bb360[_0x8a3931([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa570=new window[(_0x8a3931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51c118=>{_0x50168b[_0x8a3931([0x6f,0x6e,0x63,0x65])](_0x8a3931([0x72,0x65,0x61,0x64,0x79]),_0x51c118);}),_0x49363d={[_0x8a3931([0x6b,0x74,0x79])]:_0x8a3931([0x45,0x43]),[_0x8a3931([0x75,0x73,0x65])]:_0x8a3931([0x73,0x69,0x67]),[_0x8a3931([0x63,0x72,0x76])]:_0x8a3931([0x50,0x2d,0x32,0x35,0x36]),[_0x8a3931([0x78])]:_0x8a3931([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]),[_0x8a3931([0x79])]:_0x8a3931([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]),[_0x8a3931([0x61,0x6c,0x67])]:_0x8a3931([0x45,0x53,0x32,0x35,0x36])},_0x1749d2=_0x50168b[_0x8a3931([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8a3931([0x67,0x65,0x74])](_0x8a3931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7bccac(){let _0x1679ac,_0x34cb8=null,_0x323189=null;try{if(_0x1749d2==_0x8a3931([0x47,0x50,0x4c]))return _0x8a3931([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1679ac=_0x2ceb31(),!_0x1679ac)return _0x8a3931([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1679ac[_0x8a3931([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x323189=_0x17d7bf(_0x1679ac[_0x8a3931([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1679ac[_0x8a3931([0x6a,0x74,0x69])])),await _0x31ff92()?_0x55f0a7()?_0x38dba3()?_0x8a3931([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x479398()?(_0x1679ac[_0x8a3931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8a3931([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34cb8=_0x3d4018(_0x8a3931([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1679ac[_0x8a3931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8a3931([0x74,0x72,0x69,0x61,0x6c])&&(_0x34cb8=_0x3d4018(_0x8a3931([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40d592()):_0x8a3931([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8a3931([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8a3931([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8a3931([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38dba3(){const _0x1f1719=[_0x8a3931([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8a3931([0x74,0x72,0x69,0x61,0x6c])][_0x8a3931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1679ac[_0x8a3931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x567523/0x3e8:0xe10*_0x438ea3;return _0x1679ac[_0x8a3931([0x65,0x78,0x70])]<_0x1f1719;}function _0x55f0a7(){const _0x399cda=_0x1679ac[_0x8a3931([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x399cda)return!0x1;if(_0x399cda[_0x8a3931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8a3931([0x2a])))return!0x0;if(_0x399cda[_0x8a3931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8a3931([0x52,0x48])))return!0x0;if(_0x399cda[_0x8a3931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8a3931([0x52,0x52,0x48]))){if(_0x377302())return!0x0;if(_0x563cca()||_0x1d7145())return!0x0;}return!0x1;}function _0x479398(){const _0x7ddf36=_0x1679ac[_0x8a3931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7ddf36||0x0==_0x7ddf36[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3393ca}=new URL(window[_0x8a3931([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7ddf36[_0x8a3931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3393ca))return!0x0;const _0x34a9dd=_0x3393ca[_0x8a3931([0x73,0x70,0x6c,0x69,0x74])](_0x8a3931([0x2e]));return _0x7ddf36[_0x8a3931([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21fa44=>_0x21fa44[_0x8a3931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8a3931([0x2a])))[_0x8a3931([0x6d,0x61,0x70])](_0x5cb321=>_0x5cb321[_0x8a3931([0x73,0x70,0x6c,0x69,0x74])](_0x8a3931([0x2e])))[_0x8a3931([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x533a45=>_0x533a45[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34a9dd[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8a3931([0x6d,0x61,0x70])](_0x5793d7=>Array(_0x34a9dd[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5793d7[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8a3931([0x66,0x69,0x6c,0x6c])](_0x5793d7[0x0]===_0x8a3931([0x2a])?_0x8a3931([0x2a]):'')[_0x8a3931([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5793d7))[_0x8a3931([0x73,0x6f,0x6d,0x65])](_0xb3fcee=>_0x34a9dd[_0x8a3931([0x65,0x76,0x65,0x72,0x79])]((_0x2f830f,_0x5c558c)=>_0xb3fcee[_0x5c558c]===_0x2f830f||_0xb3fcee[_0x5c558c]===_0x8a3931([0x2a])));}function _0x40d592(){return _0x34cb8&&_0x323189?new window[(_0x8a3931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4551f6,_0x2ff68b)=>{_0x34cb8[_0x8a3931([0x74,0x68,0x65,0x6e])](_0x4551f6,_0x2ff68b),_0x323189[_0x8a3931([0x74,0x68,0x65,0x6e])](_0x20dd64=>{_0x20dd64!=_0x8a3931([0x56,0x61,0x6c,0x69,0x64])&&_0x4551f6(_0x20dd64);},_0x2ff68b);}):_0x34cb8||_0x323189||_0x8a3931([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17d7bf(_0x3e47af,_0x52ea96){return new window[(_0x8a3931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54869c=>{if(_0x3748bd())return _0x54869c(_0x8a3931([0x56,0x61,0x6c,0x69,0x64]));_0x21bed7(),_0x50168b[_0x8a3931([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8a3931([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36f885=!0x1;const _0x43b926=_0x515d40();function _0x30c5ec(_0x4b80f2){return!!_0x4b80f2&&(typeof _0x4b80f2===_0x8a3931([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b80f2===_0x8a3931([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b80f2[_0x8a3931([0x74,0x68,0x65,0x6e])]===_0x8a3931([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b80f2[_0x8a3931([0x63,0x61,0x74,0x63,0x68])]===_0x8a3931([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ba6e9(_0x242471){_0x59494a(_0x242471)[_0x8a3931([0x74,0x68,0x65,0x6e])](_0x118ba0=>{if(!_0x118ba0||_0x118ba0[_0x8a3931([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8a3931([0x6f,0x6b]))return _0x8a3931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26136a(_0x357803(_0x43b926+_0x52ea96))!=_0x118ba0[_0x8a3931([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8a3931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8a3931([0x56,0x61,0x6c,0x69,0x64]);})[_0x8a3931([0x74,0x68,0x65,0x6e])](_0x577ca0=>(_0x323cee(),_0x577ca0),()=>{const _0x2fe6da=_0x573332();return null==_0x2fe6da?(_0x323cee(),_0x8a3931([0x56,0x61,0x6c,0x69,0x64])):_0x8a3931(_0x567523-_0x2fe6da>(0x5778dc5f^_0x482e6f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8a3931([0x74,0x68,0x65,0x6e])](_0x54869c)[_0x8a3931([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54869c(_0x8a3931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34f165=0x7342b6df^_0x482e6f;function _0x323cee(){const _0x3a6461=_0x8a3931([0x6c,0x6c,0x63,0x74,0x2d])+_0x26136a(_0x357803(_0x3e47af)),_0x5efd54=_0x481a01(_0x26136a(window[_0x8a3931([0x4d,0x61,0x74,0x68])][_0x8a3931([0x63,0x65,0x69,0x6c])](_0x567523/_0x34f165)));window[_0x8a3931([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8a3931([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a6461,_0x5efd54);}function _0x573332(){const _0x5a3be7=_0x8a3931([0x6c,0x6c,0x63,0x74,0x2d])+_0x26136a(_0x357803(_0x3e47af)),_0x4569e6=window[_0x8a3931([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8a3931([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a3be7);return _0x4569e6?window[_0x8a3931([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x481a01(_0x4569e6),0x10)*_0x34f165:null;}function _0x59494a(_0x4e8863){return new window[(_0x8a3931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cbe04,_0x52e813)=>{_0x4e8863[_0x8a3931([0x74,0x68,0x65,0x6e])](_0x1cbe04,_0x52e813),window[_0x8a3931([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52e813,0x73758c9f^_0x482e6f);});}}_0x50168b[_0x8a3931([0x6f,0x6e])](_0x8a3931([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ca058,_0x512d6c)=>{if(_0x512d6c[0x0]!=_0x3e47af)return _0x54869c(_0x8a3931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x512d6c[0x1]={..._0x512d6c[0x1],[_0x8a3931([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43b926};},{[_0x8a3931([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8a3931([0x68,0x69,0x67,0x68])}),_0x50168b[_0x8a3931([0x6f,0x6e])](_0x8a3931([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43f4fe=>{_0x30c5ec(_0x43f4fe[_0x8a3931([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36f885=!0x0,_0x2ba6e9(_0x43f4fe[_0x8a3931([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8a3931([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8a3931([0x6c,0x6f,0x77])}),_0xa570[_0x8a3931([0x74,0x68,0x65,0x6e])](()=>{_0x36f885||_0x54869c(_0x8a3931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3748bd(){return _0x50168b[_0x8a3931([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8a3931([0x76,0x69,0x65,0x77])][_0x8a3931([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8a3931([0x61,0x75,0x74,0x6f]);}function _0x21bed7(){_0x50168b[_0x8a3931([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8a3931([0x76,0x69,0x65,0x77])][_0x8a3931([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8a3931([0x61,0x75,0x74,0x6f]);}}function _0x3d4018(_0x23de4c){const _0x1eb4e8=[new window[(_0x8a3931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c2658=>setTimeout(_0x1c2658,0x737d6693^_0x482e6f)),_0xa570[_0x8a3931([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8a3931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa5ef79=>{const _0x3b2355=0x73745858^_0x482e6f,_0x249925=_0x2bb360[_0x8a3931([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4bef23(){_0x249925[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3b2355&&_0xa5ef79();}_0x4bef23(),_0x249925[_0x8a3931([0x6f,0x6e])](_0x8a3931([0x61,0x64,0x64]),_0x4bef23);})),new window[(_0x8a3931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a6540=>{function _0x3e473a(){for(const _0x3d9534 in window)if(window[_0x8a3931([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x8a3931([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3d9534))&&window[_0x3d9534]==_0x2395b0)return _0x1a6540();_0x50168b[_0x8a3931([0x73,0x74,0x61,0x74,0x65])]!=_0x8a3931([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x8a3931([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e473a,0x73744bd7^_0x482e6f);}_0x63e73f(_0x8a3931([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3e473a();})];return window[_0x8a3931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8a3931([0x72,0x61,0x63,0x65])](_0x1eb4e8)[_0x8a3931([0x74,0x68,0x65,0x6e])](()=>_0x23de4c);}async function _0x5804ec(){if(await _0xa570,_0x63e73f(_0x8a3931([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x53d331=_0x2bb360[_0x8a3931([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5a7cf8=_0x2bb360[_0x8a3931([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])](_0x53d331[_0x8a3931([0x69,0x64])]),_0x231c54=_0x5cf4ad(_0x8a3931([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x231c54[_0x8a3931([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x53d331['id'],_0x5a7cf8?_0x5a7cf8['id']:null,!0x0),_0x231c54[_0x8a3931([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x8a3931([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x231c54[_0x8a3931([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x231c54[_0x8a3931([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5bf147,void(_0x231c54[_0x8a3931([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5bf147);}if(_0x63e73f(_0x8a3931([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2e5f2b=_0x5cf4ad(_0x8a3931([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2e5f2b[_0x8a3931([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x8a3931([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2e5f2b[_0x8a3931([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2e5f2b[_0x8a3931([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5bf147,_0x2e5f2b[_0x8a3931([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5bf147;}_0x50168b[_0x8a3931([0x6d,0x6f,0x64,0x65,0x6c])][_0x8a3931([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bf147,_0x50168b[_0x8a3931([0x6d,0x6f,0x64,0x65,0x6c])][_0x8a3931([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bf147,_0x50168b[_0x8a3931([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8a3931([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x377302(){return _0x63e73f(_0x8a3931([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5cf4ad(_0x8a3931([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x8a3931([0x73,0x74,0x61,0x74,0x65])]==_0x8a3931([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x563cca(){return _0x63e73f(_0x8a3931([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 _0x1d7145(){return _0x63e73f(_0x8a3931([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4dacc0(_0x42670c){const _0x107f32=_0x25902f();_0x50168b[_0x107f32]=_0x8a3931([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])+_0x42670c,_0x42670c[_0x8a3931([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x8a3931([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x25902f()]=_0x2395b0),_0x42670c!=_0x8a3931([0x56,0x61,0x6c,0x69,0x64])&&_0x5804ec();}function _0x25902f(){const _0x147be3=window[_0x8a3931([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8a3931([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8a3931([0x6e,0x6f,0x77])]())[_0x8a3931([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8a3931([0x2e]),'');let _0x104b41=_0x8a3931([0x73]);for(let _0x452b0e=0x0;_0x452b0e<_0x147be3[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x452b0e+=0x2){let _0x8ad3dd=window[_0x8a3931([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x147be3[_0x8a3931([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x452b0e,_0x452b0e+0x2));_0x8ad3dd>=_0x2a753a[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x8ad3dd-=_0x2a753a[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x104b41+=_0x2a753a[_0x8ad3dd];}return _0x104b41;}function _0x2ceb31(){const _0x813d38=_0x1749d2[_0x8a3931([0x73,0x70,0x6c,0x69,0x74])](_0x8a3931([0x2e]));if(0x3!=_0x813d38[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf223a5(_0x813d38[0x1]);function _0xf223a5(_0x42f0ba){const _0x39eb59=_0xe8d374(_0x42f0ba);return _0x39eb59&&_0x9d501c()?_0x39eb59:null;function _0x9d501c(){const _0x200cc6=_0x39eb59[_0x8a3931([0x6a,0x74,0x69])],_0x2dd24c=window[_0x8a3931([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x200cc6[_0x8a3931([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x200cc6[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f7cc2={..._0x39eb59,[_0x8a3931([0x6a,0x74,0x69])]:_0x200cc6[_0x8a3931([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x200cc6[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f7cc2[_0x8a3931([0x76,0x63])],_0x357803(_0x3f7cc2)==_0x2dd24c;}}}async function _0x31ff92(){let _0x346d53=!0x0;try{const _0x1032ff=_0x1749d2[_0x8a3931([0x73,0x70,0x6c,0x69,0x74])](_0x8a3931([0x2e])),[_0x45a68b,_0x4ef059,_0x45ef00]=_0x1032ff;return _0x48b73(_0x45a68b),await _0x14b96c(_0x45a68b,_0x4ef059,_0x45ef00),_0x346d53;}catch{return!0x1;}function _0x48b73(_0x53c46d){const _0x3801bd=_0xe8d374(_0x53c46d);_0x3801bd&&_0x3801bd[_0x8a3931([0x61,0x6c,0x67])]==_0x8a3931([0x45,0x53,0x32,0x35,0x36])||(_0x346d53=!0x1);}async function _0x14b96c(_0x29ffcc,_0x2318fd,_0x286858){const _0x151749=window[_0x8a3931([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8a3931([0x66,0x72,0x6f,0x6d])](_0x236a21(_0x286858),_0x14dd20=>_0x14dd20[_0x8a3931([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ad5b=new window[(_0x8a3931([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8a3931([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29ffcc+_0x8a3931([0x2e])+_0x2318fd),_0x5e6bf1=window[_0x8a3931([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8a3931([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e6bf1)return;const _0x4beeb6=await _0x5e6bf1[_0x8a3931([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8a3931([0x6a,0x77,0x6b]),_0x49363d,{[_0x8a3931([0x6e,0x61,0x6d,0x65])]:_0x8a3931([0x45,0x43,0x44,0x53,0x41]),[_0x8a3931([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8a3931([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8a3931([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e6bf1[_0x8a3931([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8a3931([0x6e,0x61,0x6d,0x65])]:_0x8a3931([0x45,0x43,0x44,0x53,0x41]),[_0x8a3931([0x68,0x61,0x73,0x68])]:{[_0x8a3931([0x6e,0x61,0x6d,0x65])]:_0x8a3931([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4beeb6,_0x151749,_0x34ad5b)||(_0x346d53=!0x1);}}function _0xe8d374(_0x44f5f0){return _0x44f5f0[_0x8a3931([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8a3931([0x65,0x79]))?JSON[_0x8a3931([0x70,0x61,0x72,0x73,0x65])](_0x236a21(_0x44f5f0)):null;}function _0x236a21(_0x3ef11d){return window[_0x8a3931([0x61,0x74,0x6f,0x62])](_0x3ef11d[_0x8a3931([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8a3931([0x2b]))[_0x8a3931([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8a3931([0x2f])));}function _0x357803(_0x66bce9){let _0x526f17=0x1505;function _0x3bdd90(_0x7c40fb){for(let _0x1d0500=0x0;_0x1d0500<_0x7c40fb[_0x8a3931([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d0500++){const _0x2b3af5=_0x7c40fb[_0x8a3931([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d0500);_0x526f17=(_0x526f17<<0x5)+_0x526f17+_0x2b3af5,_0x526f17&=_0x526f17;}}function _0x3067e6(_0x1fba11){Array[_0x8a3931([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1fba11)?_0x1fba11[_0x8a3931([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3067e6):_0x1fba11&&typeof _0x1fba11==_0x8a3931([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8a3931([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1fba11)[_0x8a3931([0x73,0x6f,0x72,0x74])]()[_0x8a3931([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x270ae3,_0x3bdfd6])=>{_0x3bdd90(_0x270ae3),_0x3067e6(_0x3bdfd6);}):_0x3bdd90(window[_0x8a3931([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1fba11));}return _0x3067e6(_0x66bce9),_0x526f17>>>0x0;}function _0x26136a(_0x1adda1){return _0x1adda1[_0x8a3931([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8a3931([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8a3931([0x30]));}function _0x481a01(_0x492b96){return _0x492b96[_0x8a3931([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8a3931([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8a3931([0x6a,0x6f,0x69,0x6e])]('');}function _0x63e73f(_0x143e2f){return _0x50168b[_0x8a3931([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8a3931([0x68,0x61,0x73])](_0x143e2f);}function _0x5cf4ad(_0x4a6d1b){return _0x50168b[_0x8a3931([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8a3931([0x67,0x65,0x74])](_0x4a6d1b);}function _0x5bf147(){}function _0x8a3931(_0x2b0a14){return _0x2b0a14['map'](_0x3ba4dd=>String['fromCharCode'](_0x3ba4dd))['join']('');}_0x4dacc0(await _0x7bccac());}(this);}['createRevision'](_0x4b2747){const _0x4c4a82=this['editor']['plugins']['get']('Users');return new I({'id':_0x4b2747['id'],'name':_0x4b2747['name'],'creator':_0x4b2747['creatorId']?_0x4c4a82['getUser'](_0x4b2747['creatorId']):null,'diffData':_0x4b2747['diffData']||_0x4b2747['data'],'authors':_0x4b2747['authorsIds']['map'](_0x4ef13d=>_0x4c4a82['getUser'](_0x4ef13d)),'createdAt':new Date(_0x4b2747['createdAt']),'attributes':_0x4b2747['attributes'],'fromVersion':_0x4b2747['fromVersion'],'toVersion':_0x4b2747['toVersion']});}['addRevision'](_0x4e25f8,_0x2c557e=0x0){this['_revisions']['add'](_0x4e25f8,_0x2c557e);}['getRevision'](_0x14accb){return this['_revisions']['get'](_0x14accb);}['getRevisions'](_0xd04612={'toJSON':!0x1}){const _0x9c7fa4=Array['from'](this['_revisions']);return _0x9c7fa4['reverse'](),_0xd04612['toJSON']?_0x9c7fa4['map'](_0x3da48c=>_0x3da48c['toJSON']()):_0x9c7fa4;}['getIndex'](_0x3ab1a2){return this['_revisions']['getIndex'](_0x3ab1a2);}['getEarlierVisibleRevision'](_0x17bfa7){const [,_0x583dae]=this['getRevisionsIterator'](_0x17bfa7,{'direction':'earlier'});return _0x583dae;}['getLaterVisibleRevision'](_0xf5b29d){const [,_0x305aa2]=this['getRevisionsIterator'](_0xf5b29d,{'direction':'later'});return _0x305aa2;}['getRevisionsInDiff'](_0x26a021){const _0x3d2eaa=[];for(const _0x1f7a24 of this['getRevisionsIterator'](_0x26a021['newRevisionId']))if(_0x3d2eaa['push'](_0x1f7a24),_0x1f7a24['id']===_0x26a021['oldRevisionId'])break;return _0x3d2eaa;}*['getRevisionsIterator'](_0x76629d,{direction:_0x27c0a2='earlier',filter:_0x162ab4=()=>!0x0}={}){const _0x5b442e='earlier'===_0x27c0a2?0x1:-0x1;let _0x44d351=this['_revisions']['get'](_0x76629d),_0x35d76d=this['getIndex'](_0x44d351);for(yield _0x44d351;_0x44d351;){if(_0x35d76d+=_0x5b442e,_0x44d351=this['getRevision'](_0x35d76d),!_0x44d351)return;_0x162ab4(_0x44d351)&&(yield _0x44d351);}}}class $ extends _0x278e34{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x208ffc,'c'],[_0x493eb1,'a'],[_0x5b4d65,'e'],[_0x397b2a,'r'],[_0x4ef9e2,'u']]);['_typeCharToViewClass']=new Map([['c',_0x208ffc],['a',_0x493eb1],['e',_0x5b4d65],['r',_0x397b2a],['u',_0x4ef9e2]]);async['loadRevisionData'](_0x121dbf,_0x462f43){if(_0x121dbf['diffData']||!_0x462f43)return;const _0x411ab3=this['editor']['config']['get']('collaboration.channelId'),_0xbd17a0=await _0x462f43['getRevision']({'channelId':_0x411ab3,'revisionId':_0x121dbf['id']});_0x121dbf['diffData']=_0xbd17a0['diffData'];}['getRevisionDocumentData'](_0x3e1a81){const _0x3180a0={};for(const _0x269d3e in _0x3e1a81['diffData']){if(_0x3e1a81['diffData'][_0x269d3e]['attachChange']&&!_0x3e1a81['diffData'][_0x269d3e]['attachChange']['isAttached'])continue;const _0x3e7bb9=this['_removeRevisionMarkers'](JSON['parse'](_0x3e1a81['diffData'][_0x269d3e]['insertions'])),_0x2742a9=this['editor']['editing']['view']['document'],_0xc68111=new _0x2691f3(_0x2742a9,_0x3e7bb9['map'](_0x2856b3=>this['_getViewFromDiffObj'](_0x2856b3,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3180a0[_0x269d3e]=this['editor']['data']['processor']['toData'](_0xc68111),this['editor']['data']['processor']['useFillerType']('default');}return _0x3180a0;}['getRevisionRootsAttributes'](_0x115f33){const _0x5f2443={};for(const _0x5cf715 in _0x115f33['diffData'])_0x115f33['diffData'][_0x5cf715]['attachChange']&&!_0x115f33['diffData'][_0x5cf715]['attachChange']['isAttached']||(_0x5f2443[_0x5cf715]=_0x115f33['diffData'][_0x5cf715]['attributesAfter']||{});return _0x5f2443;}['_getTypeCharForViewElement'](_0xdaeea8){return this['_viewClassToTypeChar']['get'](_0xdaeea8['constructor']);}['_getViewFromDiffObj'](_0x4b100d,_0x41d566){const _0x561f49=this['editor']['editing']['view']['document'];if('string'==typeof _0x4b100d)return new _0x1ffa98(_0x561f49,_0x4b100d);{let _0x39b52c,_0x55a8b1;_0x55a8b1='u'==_0x4b100d['type']||'r'==_0x4b100d['type']?[]:_0x4b100d['children']['map'](_0x341e28=>this['_getViewFromDiffObj'](_0x341e28,_0x41d566));const _0xa99c7c=this['_typeCharToViewClass']['get'](_0x4b100d['type'])||_0x1d49d0,_0x537dd3=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x39b52c=new _0xa99c7c(_0x561f49,_0x4b100d['name'],_0x4b100d['attributes'],_0x55a8b1),'u'==_0x4b100d['type']&&_0x4b100d['children'][0x0]){const _0x3d5560=_0x4b100d['children'][0x0];if(_0x39b52c['render']=function(_0x36eacb){const _0x40ae62=_0x36eacb['createElement']('div');return _0x40ae62['innerHTML']=_0x3d5560,_0x40ae62['childNodes'][0x0];},_0x41d566){const _0x4a320d=new _0x2691f3(_0x561f49);_0x4a320d['_appendChild'](_0x39b52c);const _0x3f8190=Array['from'](_0x537dd3['viewChildrenToDom'](_0x4a320d,{'bind':!0x1})),_0x1acd48=_0x537dd3['domDocument']['createElement']('div');_0x1acd48['append'](..._0x3f8190),_0x39b52c=Array['from'](_0x537dd3['domChildrenToView'](_0x1acd48))[0x0];}}else{if('r'==_0x4b100d['type']&&_0x4b100d['children'][0x0]){const _0x448fbd=_0x4b100d['children'][0x0];if(_0x39b52c['render']=function(_0x3fb64a){_0x3fb64a['innerHTML']=_0x448fbd;},_0x41d566){const _0x3e455e=new _0x2691f3(_0x561f49);_0x3e455e['_appendChild'](_0x39b52c);const _0x720588=Array['from'](_0x537dd3['viewChildrenToDom'](_0x3e455e,{'bind':!0x1})),_0x311001=_0x537dd3['domDocument']['createElement']('div');_0x311001['append'](..._0x720588);const _0x493958=Array['from'](_0x537dd3['domChildrenToView'](_0x311001));_0x493958['length']>0x1?_0x39b52c['_appendChild'](_0x493958):_0x39b52c=_0x493958[0x0];}}}if(_0x4b100d['customProperties']){for(const [_0x47cd78,_0x329461]of _0x4b100d['customProperties'])_0x39b52c['_setCustomProperty'](_0x47cd78,_0x329461);}const _0x5b2b02=void 0x0===_0x4b100d['fillerOffset']?null:_0x4b100d['fillerOffset'];return null!==_0x5b2b02&&(_0x39b52c['getFillerOffset']=()=>_0x5b2b02),_0x39b52c;}}['_makeModelFromViewString'](_0x48dfc5){const _0x96f621=JSON['parse'](_0x48dfc5),_0x936f04=this['editor']['editing']['view']['document'],_0x1fac11=new _0x2691f3(_0x936f04,_0x96f621['map'](_0x55c1aa=>this['_getViewFromDiffObj'](_0x55c1aa,!0x0)));return this['editor']['data']['toModel'](_0x1fac11);}['_removeRevisionMarkers'](_0x4ea098){return(_0x4ea098=_0x4ea098['filter'](_0xd746f1=>!_0xd746f1['name']||'revision-start'!==_0xd746f1['name']&&'revision-end'!==_0xd746f1['name']))['forEach'](_0x478831=>{'string'!=typeof _0x478831&&(_0x478831['children']=this['_removeRevisionMarkers'](_0x478831['children']),_0x478831['attributes']=_0x478831['attributes']['filter'](_0x2ba54c=>!_0x2ba54c[0x0]['startsWith']('data-revision-')));}),_0x4ea098;}}function R(_0x58c558,_0x1338e3,_0x3c2f21){const t=_0x58c558['t'];switch(_0x1338e3){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'},_0x3c2f21);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c2f21);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x278e34{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3fef6b,S,$,_0xa1ccf3];}constructor(_0x596300){super(_0x596300),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x19c50a=_0x515d40();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x19c50a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x47a4d2=this['repository']['getRevision'](0x0),_0x3e2c49=_0x47a4d2&&null===_0x47a4d2['creator']?_0x47a4d2:null;if(this['_continueCurrentRevision']=!!_0x3e2c49&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x232315=this['_source']['getCurrentRevisionId'](),_0x8fedbd=this['repository']['getRevision'](_0x232315);if(_0x8fedbd)this['_startingVersion']=_0x8fedbd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x32e91f=this['_source']['history']['_operations']['find'](_0x274ab8=>!_0x274ab8['_isInit']),_0x244d6b=_0x32e91f?_0x32e91f['baseVersion']:this['_source']['history']['version'];_0x47a4d2?(_0x47a4d2['toVersion']<_0x244d6b&&_0x47a4d2['_update']({'toVersion':_0x244d6b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3e2c49['id'],this['_startingVersion']=_0x3e2c49['fromVersion']):(this['_startingVersion']=_0x47a4d2['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x244d6b,this['_continueCurrentRevision']=!0x1);}}else _0x3e2c49&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3e2c49['toVersion'],this['editor']['model']['document']['history']['version']),_0x3e2c49['fromVersion']===_0x3e2c49['toVersion']?(0x0!==_0x3e2c49['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3e2c49['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3e2c49['id'],this['_startingVersion']=_0x3e2c49['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',_0xd7cf3d=>!_0xd7cf3d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x442839=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56ef47;for(const _0x1f5a73 in _0x442839){const _0x2c4ef7=_0x1f5a73,_0x4385e7=_0x442839[_0x2c4ef7];if('revisionHistoryLicenseKeyValid'==_0x4385e7||'revisionHistoryLicenseKeyInvalid'==_0x4385e7||'revisionHistoryLicenseKeyExpired'==_0x4385e7||'revisionHistoryLicenseKeyDomainLimit'==_0x4385e7||'revisionHistoryLicenseKeyNotAllowed'==_0x4385e7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4385e7||'revisionHistoryLicenseKeyTrialLimit'==_0x4385e7||'revisionHistoryLicenseKeyUsageLimit'==_0x4385e7){delete _0x442839[_0x2c4ef7],_0x56ef47=_0x4385e7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x56ef47&&_0x442839['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x56ef47&&_0x442839['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x56ef47&&_0x442839['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x56ef47&&_0x442839['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x56ef47&&_0x442839['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x56ef47&&_0x442839['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x56ef47&&_0x442839['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x119251=this['repository']['getRevision'](0x0),_0x269a8a=await this['getRevisionDocumentData'](_0x119251),_0x3c4a11=await this['getRevisionRootsAttributes'](_0x119251);this['_replaceEditorDataWithRevisionData'](_0x269a8a,_0x3c4a11);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x40bd83){this['_source']=_0x40bd83;}async['update'](){const _0x539f82=await this['_source']['getLatestVersion']();if(_0x539f82>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5dd093=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x539f82});_0x5dd093['authors']=_0x5dd093['authorsIds']['map'](_0x2c93f9=>this['editor']['plugins']['get']('Users')['getUser'](_0x2c93f9)),this['currentRevision']['_update'](_0x5dd093);}}async['saveRevision'](_0x3f4763={},_0x3950dd=null){const _0x140840=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3950dd>this['currentRevision']['toVersion']&&(_0x3950dd=null),null===_0x3950dd&&(_0x3950dd=await this['_source']['getLatestVersion']());const _0x30dc77=this['_getFromVersion'](_0x3950dd),_0x250ca4=this['buildRevisionData']({'from':_0x30dc77,'to':_0x3950dd});if(this['currentRevision']['toVersion']<_0x3950dd){const _0x57e2af=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3950dd,'to':_0x3950dd});_0x57e2af['authors']=[],_0x57e2af['authorsIds']=[],_0x57e2af['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x57e2af,!0x0),delete _0x57e2af['authors'],_0x140840['push'](_0x57e2af);}_0x3f4763['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f4763['name']=_0x3f4763['name']||null,_0x3f4763['id']=_0x3f4763['id']||_0x515d40(),_0x3f4763={..._0x3f4763,..._0x250ca4};const _0x80f118=this['addRevisionData'](_0x3f4763);_0x140840['push'](_0x3f4763);const _0x28bc1b=this['repository']['getIndex'](_0x80f118);if(0x0!==_0x28bc1b){const _0x134aa0=this['repository']['getRevision'](_0x28bc1b-0x1);if(_0x134aa0['fromVersion']!==_0x3950dd){const _0x34f219=this['_revisionDataBuilder']['getData'](_0x3950dd,_0x134aa0['toVersion']),_0x1d3c3f={'id':_0x134aa0['id'],'diffData':_0x34f219['diffData'],'authorsIds':_0x34f219['authorsIds'],'authors':_0x34f219['authorsIds']['map'](_0x474c0a=>this['editor']['plugins']['get']('Users')['getUser'](_0x474c0a)),'fromVersion':_0x3950dd};_0x134aa0===this['currentRevision']&&(_0x1d3c3f['createdAt']=new Date(_0x3f4763['createdAt']['getTime']()+0xa)),_0x134aa0['_update'](_0x1d3c3f,!0x0),delete _0x1d3c3f['authors'],_0x140840['push'](_0x1d3c3f);}}if(this['adapter']){for(const _0x59815b of _0x140840)this['_bufferUpdate'](_0x59815b['id'],_0x59815b,!0x0);this['sendBufferedUpdates']();}return _0x80f118;}['addRevisionData'](_0x3ab346){const _0x21c6d4=this['repository']['createRevision'](_0x3ab346);return this['adapter']&&_0x21c6d4['on']('_update',(_0x1a1d1b,_0x1acf23,_0x3912ad)=>{_0x3912ad||(this['_bufferUpdate'](_0x1acf23['id'],_0x1acf23,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x21c6d4,this['_findInsertionIndex'](_0x21c6d4)),_0x21c6d4;}async['getRevisionDocumentData'](_0x3c06ee){return await this['_utils']['loadRevisionData'](_0x3c06ee,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3c06ee);}async['getRevisionRootsAttributes'](_0x184bcf){return await this['_utils']['loadRevisionData'](_0x184bcf,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x184bcf);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xfa4199=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x414319=0x0;_0x414319<_0xfa4199['length'];_0x414319++){const _0x30cd90=_0xfa4199[_0x414319];let _0x1fc0ce=!0x1;for(const _0x2b4602 of Object['keys'](_0x30cd90))void 0x0===_0x30cd90[_0x2b4602]?delete _0x30cd90[_0x2b4602]:'id'!==_0x2b4602&&(_0x1fc0ce=!0x0);_0x1fc0ce||(_0xfa4199[_0x414319]=null);}if(_0xfa4199=_0xfa4199['filter'](_0xdb77a1=>null!==_0xdb77a1),!_0xfa4199['length'])return;for(let _0x165392=0x0;_0x165392<_0xfa4199['length'];_0x165392++){const _0x2902d1=_0xfa4199[_0x165392];void 0x0!==_0x2902d1['fromVersion']&&void 0x0===_0x2902d1['toVersion']&&(_0x2902d1['toVersion']=this['repository']['getRevision'](_0x2902d1['id'])['toVersion']),void 0x0!==_0x2902d1['toVersion']&&void 0x0===_0x2902d1['fromVersion']&&(_0x2902d1['fromVersion']=this['repository']['getRevision'](_0x2902d1['id'])['fromVersion']);}const _0x1d8b30=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xfa4199,_0x1d8b30)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3fda85=>{if(_0x3fda85){for(const _0x48714a of _0x3fda85)this['setRevisionData']({'id':_0x48714a['id'],'createdAt':_0x48714a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4e5940=null,from:_0x25ccf9=null,to:_0x5f4cf2=null}){_0x25ccf9=null!==_0x25ccf9?_0x25ccf9:_0x4e5940['fromVersion'],_0x5f4cf2=null!==_0x5f4cf2?_0x5f4cf2:_0x4e5940['toVersion'];const _0x3312e7=this['_revisionDataBuilder']['getData'](_0x25ccf9,_0x5f4cf2),_0x2340a1={'diffData':_0x3312e7['diffData'],'authorsIds':_0x3312e7['authorsIds'],'fromVersion':_0x25ccf9,'toVersion':_0x5f4cf2};if(!_0x4e5940||_0x5f4cf2!==_0x4e5940['toVersion']){const _0x1c1b50=_0x5f4cf2-0x1,_0x2ef136=this['_source']['history']['getOperation'](_0x1c1b50);_0x2340a1['createdAt']=_0x2ef136&&_0x2ef136['createdAt']||new Date();}if(this['_loadedStateData']&&_0x25ccf9===this['_loadedStateData']['fromVersion']){for(const _0x2b435a of this['_loadedStateData']['authors'])_0x2340a1['authorsIds']['includes'](_0x2b435a['id'])||_0x2340a1['authorsIds']['push'](_0x2b435a['id']);}return _0x2340a1;}['_bufferUpdate'](_0xc85fb6,_0xa28f9e,_0xa56743){if(this['_bufferedUpdates']['has'](_0xc85fb6)){const _0x388c86=this['_bufferedUpdates']['get'](_0xc85fb6);_0xa28f9e=_0xa56743?{..._0x388c86,..._0xa28f9e}:{..._0xa28f9e,..._0x388c86};}this['_bufferedUpdates']['set'](_0xc85fb6,_0xa28f9e);}['setRevisionData'](_0x50d6c2){const _0x1119a9=this['repository']['getRevision'](_0x50d6c2['id']);if(_0x50d6c2['createdAt']&&(_0x50d6c2['createdAt']=new Date(_0x50d6c2['createdAt'])),_0x50d6c2['authorsIds']){const _0x1583e2=this['editor']['plugins']['get']('Users');_0x50d6c2['authors']=_0x50d6c2['authorsIds']['map'](_0x2b0276=>_0x1583e2['getUser'](_0x2b0276));}_0x1119a9['_update'](_0x50d6c2,!0x0);}['_createInitialRevision'](_0x40fb42){const _0x15d3a1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x15d3a1)this['_initialRevisionId']=_0x15d3a1['id'];else{const _0x1b9ba3=!this['editor']['model']['document']['roots']['find'](_0x1d19d6=>this['editor']['model']['hasContent'](_0x1d19d6)),_0x23412f=this['editor']['plugins']['get']('Users')['me']['id'],_0x1779a3=R(this['editor']['locale'],_0x1b9ba3?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x40fb42,'to':_0x40fb42,'id':this['_initialRevisionId'],'name':_0x1779a3,'creatorId':_0x23412f});}}['_createCurrentRevision'](_0x208d7c){const _0xd72c4c=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xd72c4c),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x208d7c,'to':_0x208d7c,'id':_0xd72c4c,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x47da48,_0x522118){let _0x27f2f5=this['editor']['config']['get']('initialData'),_0x1a14e9=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x27f2f5){_0x27f2f5={};for(const _0x1ca35c of this['editor']['model']['document']['getRootNames']())_0x27f2f5[_0x1ca35c]='';}if('string'==typeof _0x27f2f5&&(_0x27f2f5={'main':_0x27f2f5}),void 0x0===_0x1a14e9){_0x1a14e9={};for(const _0xa6bfe6 of this['editor']['model']['document']['getRootNames']())_0x1a14e9[_0xa6bfe6]={};}let _0x4f57ea=!0x1;const _0x568a24=Object['keys'](_0x27f2f5),_0xbe833d=Object['keys'](_0x47da48);for(const _0x25e407 of _0x568a24){if(_0x27f2f5[_0x25e407]!==_0x47da48[_0x25e407]&&''!==_0x27f2f5[_0x25e407]['trim']()){_0x4f57ea=!0x0;break;}if(!_0x225aa4(_0x1a14e9[_0x25e407],_0x522118[_0x25e407])&&Object['keys'](_0x1a14e9[_0x25e407])['length']>0x0){_0x4f57ea=!0x0;break;}}_0x4f57ea||(_0x4f57ea=_0xbe833d['some'](_0x3c693f=>!this['editor']['model']['document']['getRoot'](_0x3c693f))),_0x4f57ea&&_0x271880('editor-initial-data-replaced-with-revision-data',{'editorData':_0x27f2f5,'editorRootsAttributes':_0x1a14e9,'revisionData':_0x47da48,'revisionRootsAttributes':_0x522118}),this['editor']['config']['set']('initialData',_0x47da48),this['editor']['config']['set']('rootsAttributes',_0x522118);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x21d801=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x21d801['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3d833e){const _0x362a15=this['repository']['getRevisions']();_0x362a15['reverse']();let _0x2c95f7=0x0;for(;_0x2c95f7<_0x362a15['length'];){const _0x1944d0=_0x362a15[_0x2c95f7];if(_0x1944d0===this['currentRevision']){_0x2c95f7++;continue;}if(_0x1944d0['id']===this['_initialRevisionId'])break;const _0x24ef35=_0x3d833e['toVersion']-_0x1944d0['toVersion']||_0x3d833e['fromVersion']-_0x1944d0['fromVersion'];if(_0x24ef35>0x0)break;if(_0x24ef35<0x0)_0x2c95f7++;else{if(!_0x3d833e['creator']&&_0x1944d0['creator'])break;if(_0x1944d0['creator']||!_0x3d833e['creator']){if(_0x3d833e['createdAt']>_0x1944d0['createdAt'])break;_0x2c95f7++;}else _0x2c95f7++;}}return _0x2c95f7;}['_getFromVersion'](_0x215322){const _0x3384c0=this['repository']['getRevisions']();_0x3384c0['reverse'](),_0x3384c0['shift']();const _0x4bf1d9=_0x3384c0['find'](_0x258cba=>_0x258cba['toVersion']<=_0x215322)['toVersion'];return _0x4bf1d9<this['_startingVersion']?this['_startingVersion']:_0x4bf1d9;}['_makeRevision']({name:_0x5af20e,from:_0x45b05a,to:_0x564cb9,creatorId:_0xe4c99f,id:_0x47bf89}){const _0x3d04a0=this['buildRevisionData']({'from':_0x45b05a,'to':_0x564cb9});_0x3d04a0['name']=_0x5af20e,_0x3d04a0['creatorId']=_0xe4c99f,_0x3d04a0['id']=_0x47bf89;const _0x1fc5cd=this['addRevisionData'](_0x3d04a0);return this['adapter']&&this['_bufferUpdate'](_0x3d04a0['id'],_0x3d04a0,!0x0),_0x1fc5cd;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x580a49){this['editor']=_0x580a49,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'](_0x74a99c){this['source']=_0x74a99c;const _0x1e53a1=new Map(),_0x26cc37=new Map(),_0x5acddf=this['editor']['model']['document']['roots']['map'](_0x45e7ca=>_0x45e7ca['rootName']);for(const _0x5aea98 of _0x5acddf){const _0xa4f583=this['editor']['model']['document']['getRoot'](_0x5aea98),_0x120a1b=x(_0xa4f583);_0x1e53a1['set'](_0x5aea98,_0x120a1b),_0x26cc37['set'](_0x5aea98,Object['fromEntries'](_0xa4f583['getAttributes']()));}const _0x540bea=Array['from'](this['editor']['model']['markers'])['map'](_0x3391db=>[_0x3391db['name'],_0x3391db['getRange']()]),_0xc0f0fb=this['source']['version'];this['_saveMetaData'](_0xc0f0fb,_0x1e53a1,_0x540bea,_0x26cc37),this['_startingRevisionId']=this['_revisionId'];const _0x1c8fd1=new Map(),_0x50ac2d=new Map();for(const _0x302d5 of _0x5acddf){const _0x3f563e=N(_0x302d5);_0x1c8fd1['set'](_0x302d5,_0x3f563e),_0x50ac2d['set'](_0x302d5,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1c8fd1,[],_0x50ac2d);}['getData'](_0x5644a0,_0x674da9){if(this['_lastFrom']===_0x5644a0&&this['_lastTo']<=_0x674da9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x674da9,!0x0);else{if(!this['_savedMetaData']['has'](_0x5644a0)){const _0x52e1ed=this['_getPreviousFrom'](_0x5644a0);this['_calculateMetaData'](_0x52e1ed,_0x5644a0,!0x1);}this['_calculateMetaData'](_0x5644a0,_0x674da9,!0x0);}return this['_lastFrom']=_0x5644a0,this['_lastTo']=_0x674da9,this['_getState']();}['loadState'](_0x43a425){const _0x3f2b65=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x43a425['fromVersion'],this['_lastTo']=_0x43a425['toVersion'];for(const _0x20e68a in _0x43a425['diffData']){const _0x386702=_0x43a425['diffData'][_0x20e68a]['attachChange'],_0xc2d846=_0x1fffc6(_0x43a425['diffData'][_0x20e68a]['attributesBefore'])||{},_0x2d55f9=_0x3f2b65['_makeModelFromViewString'](_0x43a425['diffData'][_0x20e68a]['deletions']);_0x2d55f9['rootName']=_0x20e68a,_0x2d55f9['_isAttached']=!_0x386702||!_0x386702['isAttached'],_0x2d55f9['isAttached']=()=>_0x2d55f9['_isAttached'],this['_baseRoots']['set'](_0x20e68a,_0x2d55f9),this['_baseRootsAttributes']['set'](_0x20e68a,_0xc2d846),_0x386702&&this['_touchedRoots']['set'](_0x20e68a,_0x386702);const _0x194f92=this['_makeIdsRoot'](_0x2d55f9);this['_baseIdsRoots']['set'](_0x20e68a,_0x194f92);for(const [_0x1aa42b,_0x228bfe]of _0x2d55f9['markers']){if(!_0x1aa42b['startsWith']('revision:'))continue;const _0xdc5348=_0x1aa42b['split'](':')[0x2];for(const _0x1075c2 of _0x228bfe['getWalker']({'singleCharacters':!0x0})){const _0x2694ec=this['_getVidAttributeName'](_0x1075c2),_0x240f00='elementEnd'==_0x1075c2['type']?_0x1075c2['previousPosition']['path']['slice'](0x0,-0x1):_0x1075c2['previousPosition']['path'],_0x2fb4a6=_0x194f92['getNodeByPath'](_0x240f00)['getAttribute'](_0x2694ec);this['_touched']['set'](_0x2fb4a6,{'userId':_0xdc5348});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2babfb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x29a713=>!this['_touched']['has'](_0x29a713));let _0x5e729c=0x0;const _0x4c63b6=new Map();for(const _0x128d63 in _0x43a425['diffData']){const _0x14b527=_0x43a425['diffData'][_0x128d63]['attachChange'],_0x43da8e=_0x1fffc6(_0x43a425['diffData'][_0x128d63]['attributesAfter'])||{},_0x4c53e8=_0x3f2b65['_makeModelFromViewString'](_0x43a425['diffData'][_0x128d63]['insertions']);_0x4c53e8['rootName']=_0x128d63,_0x4c53e8['_isAttached']=!_0x14b527||_0x14b527['isAttached'],_0x4c53e8['isAttached']=()=>_0x4c53e8['_isAttached'],this['_diffRoots']['set'](_0x128d63,_0x4c53e8),this['_diffRootsAttributes']['set'](_0x128d63,_0x43da8e);const _0x58a6fb=this['_makeIdsRoot'](_0x4c53e8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x128d63,_0x58a6fb),_0x4c63b6['set'](_0x128d63,_0x4c53e8['isAttached']()?_0x43da8e:{});for(const [_0x42b159,_0x46287e]of _0x4c53e8['markers']){if(!_0x42b159['startsWith']('revision:'))continue;const _0x5e7aba=_0x42b159['split'](':')[0x2];for(const _0x2cbf0c of _0x46287e['getWalker']({'singleCharacters':!0x0})){const _0x9ebb64=this['_getVidAttributeName'](_0x2cbf0c),_0x1d3479=this['_revisionId']++,_0x1a8cf0='elementEnd'==_0x2cbf0c['type']?_0x2cbf0c['previousPosition']['path']['slice'](0x0,-0x1):_0x2cbf0c['previousPosition']['path'];_0x58a6fb['getNodeByPath'](_0x1a8cf0)['_setAttribute'](_0x9ebb64,_0x1d3479),this['_touched']['set'](_0x1d3479,{'userId':_0x5e7aba});}}for(const _0x5eb89d of this['editor']['model']['createRangeIn'](_0x4c53e8)['getWalker']({'singleCharacters':!0x0})){const _0x574ddd=this['_getVidAttributeName'](_0x5eb89d),_0x37b43e='elementEnd'==_0x5eb89d['type']?_0x5eb89d['previousPosition']['path']['slice'](0x0,-0x1):_0x5eb89d['previousPosition']['path'],_0x4f406c=_0x58a6fb['getNodeByPath'](_0x37b43e);_0x4f406c['getAttribute'](_0x574ddd)>0x0||_0x4f406c['_setAttribute'](_0x574ddd,_0x2babfb[_0x5e729c++]);}for(const [_0xc92031,_0x5058c3]of _0x4c53e8['markers'])_0xc92031['startsWith']('revision:')||this['_markers']['set'](_0xc92031,_0x5058c3);}const _0xc20d37=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0xc20d37),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc20d37,0x1));const _0xfda269=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0xfda269),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xfda269,0x1));const _0x5a26fd=Array['from'](this['_diffRoots'])['map'](([_0x1c1566,_0x1dac11])=>[_0x1c1566,x(_0x1dac11)]);this['_saveMetaData'](this['_lastTo'],_0x5a26fd,this['_markers'],_0x4c63b6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5aa908,_0x24008b,_0x3cf310,_0x416a83){const _0x13947e=new Map(_0x24008b),_0x210761=new Map(_0x1fffc6(_0x416a83)),_0x5a5810=new Map();for(const [_0x5d0380,_0x58646d]of _0x3cf310)_0x5a5810['set'](_0x5d0380,{'start':_0x58646d['start']['clone'](),'end':_0x58646d['end']['clone'](),'rootName':_0x58646d['root']['rootName']});this['_savedMetaData']['set'](_0x5aa908,{'roots':_0x13947e,'markers':_0x5a5810,'rootsAttributes':_0x210761});}['_removeMetaData'](_0x59ff08){this['_savedMetaData']['delete'](_0x59ff08);}['_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'](_0x50bde6,_0x2ec1f8=null){let _0x3227b0=null;_0x50bde6['is']('documentFragment')||(_0x3227b0=new _0x37c7de(_0x50bde6['name'],{'vid_start':null===_0x2ec1f8?this['_revisionId']++:_0x2ec1f8++}));const _0x571858=[];for(const _0x40b071 of _0x50bde6['getChildren']())if(_0x40b071['is']('element')){_0x571858['push'](this['_makeIdsRoot'](_0x40b071,_0x2ec1f8));const _0x282887=_0x571858[_0x571858['length']-0x1];null!==_0x2ec1f8&&(_0x2ec1f8=_0x282887['is']('element','$text')?_0x282887['getAttribute']('vid')+0x1:_0x282887['getAttribute']('vid_end')+0x1);}else{for(let _0x564cac=0x0;_0x564cac<_0x40b071['offsetSize'];_0x564cac++)_0x571858['push'](new _0x37c7de('$text',{'vid':null===_0x2ec1f8?this['_revisionId']++:_0x2ec1f8++}));}if(_0x50bde6['is']('documentFragment')){const _0x5c3062=N(_0x50bde6['rootName']);return _0x5c3062['_insertChild'](0x0,_0x571858),_0x5c3062;}return _0x3227b0['_setAttribute']('vid_end',null===_0x2ec1f8?this['_revisionId']++:_0x2ec1f8++),_0x3227b0['_insertChild'](0x0,_0x571858),_0x3227b0;}['_calculateMetaData'](_0x256052,_0x1f0fba,_0x28b4f0){this['_reset']();const {roots:_0x51235c,markers:_0x19520f,rootsAttributes:_0x380ea5}=this['_savedMetaData']['get'](_0x256052);this['_baseRoots']=new Map(_0x51235c),this['_baseRootsAttributes']=new Map(_0x1fffc6(_0x380ea5));for(const [_0xcca2d0,_0x2b3d88]of this['_baseRoots'])if('$graveyard'!==_0xcca2d0&&(this['_diffRoots']['set'](_0xcca2d0,x(_0x2b3d88)),this['_diffRootsAttributes']=new Map(_0x1fffc6(_0x380ea5)),_0x28b4f0)){const _0x4aa7da=this['_revisionId'];this['_idsRoots']['set'](_0xcca2d0,this['_makeIdsRoot'](_0x2b3d88)),this['_baseIdsRoots']['set'](_0xcca2d0,this['_makeIdsRoot'](_0x2b3d88,_0x4aa7da));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x28b4f0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x13377c,_0x963fc0]of _0x19520f){const _0x10d53c=this['_baseRoots']['get'](_0x963fc0['rootName']),_0x35e14e=this['_diffRoots']['get'](_0x963fc0['rootName']),_0x388f79=new _0x5cea6d(this['_fixPosition'](_0x963fc0['start'],_0x10d53c),this['_fixPosition'](_0x963fc0['end'],_0x10d53c)),_0x5176cb=this['_fixRange'](_0x388f79,_0x35e14e);_0x10d53c['markers']['set'](_0x13377c,_0x388f79),this['_markers']['set'](_0x13377c,_0x5176cb);}this['_applyOperations'](_0x256052,_0x1f0fba,_0x28b4f0);}['_applyOperations'](_0x16a521,_0x5b71b4,_0xbf050f){for(const _0x2559a6 of this['source']['getOperations'](_0x16a521,_0x5b71b4))this['_handleOperation'](_0x2559a6,_0xbf050f);for(const _0x4a7c70 of this['_diffRoots']['values']())_0x4a7c70['markers']['clear']();for(const [_0x5edbba,_0x2af985]of this['_markers']){this['_diffRoots']['get'](_0x2af985['root']['rootName'])['markers']['set'](_0x5edbba,_0x2af985['clone']());}const _0x5ffc0a=new Map(),_0x353d3a=new Map();for(const [_0x514ca3,_0x1e2b27]of this['_diffRoots'])_0x5ffc0a['set'](_0x514ca3,x(_0x1e2b27)),_0x353d3a['set'](_0x514ca3,this['_diffRootsAttributes']['get'](_0x514ca3));this['_saveMetaData'](_0x5b71b4,_0x5ffc0a,this['_markers'],_0x353d3a);}['_getPreviousFrom'](_0x2b3767){const _0x5831de=Array['from'](this['_savedMetaData']['keys']());_0x5831de['sort']((_0x347202,_0x4b1055)=>_0x347202-_0x4b1055),_0x5831de['reverse']();for(const _0x258164 of _0x5831de)if(_0x258164<_0x2b3767)return _0x258164;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x206380,_0xfe970a){const _0x55931d=Array['from'](_0xfe970a['markers'])['map'](([_0x39eff2,_0x5c9acf])=>[_0x39eff2,this['_fixRange'](_0x5c9acf,_0x206380)]);_0x206380['markers']=new Map(_0x55931d);}['_transformMarkers'](_0x4084d1){for(const _0x307696 of this['_markers']['values']()){const _0x167f63=_0x307696['getTransformedByOperation'](_0x4084d1),_0x1c0dd3=_0x5cea6d['_createFromRanges'](_0x167f63);_0x307696['start']=_0x1c0dd3['start'],_0x307696['end']=_0x1c0dd3['end'];}}['_handleOperation'](_0x3c1a1a,_0x3cf9ac){if('addRoot'!=_0x3c1a1a['type']&&'detachRoot'!=_0x3c1a1a['type']){if('insert'==_0x3c1a1a['type']){const _0x2204de=_0x3c1a1a['position']['root']['rootName'];this['_diffRoots']['has'](_0x2204de)||(this['_diffRoots']['set'](_0x2204de,N(_0x2204de,!0x0)),this['_diffRootsAttributes']['set'](_0x2204de,{}),_0x3cf9ac&&this['_idsRoots']['set'](_0x2204de,N(_0x2204de,!0x0)));}else{if('addRootAttribute'==_0x3c1a1a['type']||'removeRootAttribute'==_0x3c1a1a['type']||'changeRootAttribute'==_0x3c1a1a['type'])return void this['_handleRootAttributeOperation'](_0x3c1a1a);'marker'==_0x3c1a1a['type']&&this['_handleMarkerOperation'](_0x3c1a1a);}if('marker'!==_0x3c1a1a['type']){const _0xfc279d=this['_cloneOperation'](_0x3c1a1a,this['_diffRoots']);_0xfc279d['_execute'](),this['_transformMarkers'](_0xfc279d);}if(_0x3cf9ac)switch(_0x3c1a1a['type']){case'insert':this['_handleInsertOperation'](_0x3c1a1a);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3c1a1a);break;case'merge':this['_handleMergeOperation'](_0x3c1a1a);break;case'split':this['_handleSplitOperation'](_0x3c1a1a);}}else this['_handleRootOperation'](_0x3c1a1a,_0x3cf9ac);}['_cloneOperation'](_0x57473c,_0x2b100c){const _0x34c881=_0x57473c['clone']();return _0x34c881['_authorId']=_0x57473c['_authorId'],this['_fixOperation'](_0x34c881,_0x2b100c),_0x34c881;}['_getBaseVids'](_0x40a958){return _0x40a958['map'](_0x287e7d=>{const _0x3a01f1=this['_getVidAttributeName'](_0x287e7d);return Number(_0x287e7d['item']['getAttribute'](_0x3a01f1));});}['_generateTape'](_0x4cebce,_0x9ecf56){if(_0x4cebce['is']('element','$text'))_0x9ecf56['push']({'item':_0x4cebce,'type':'text'});else{_0x4cebce['is']('element')&&_0x9ecf56['push']({'item':_0x4cebce,'type':'elementStart'});for(const _0x5e522e of _0x4cebce['getChildren']())this['_generateTape'](_0x5e522e,_0x9ecf56);_0x4cebce['is']('element')&&_0x9ecf56['push']({'item':_0x4cebce,'type':'elementEnd'});}return _0x9ecf56;}['_getState'](){const _0x455bd2=new Map(this['_touched']),_0x389923=new Map(_0x455bd2),_0x9fac9d=new Map(),_0x2cf531={'insertions':{},'deletions':{}},_0x1f8ff7={'insertions':{},'deletions':{}},_0x9416de=new Map(),_0x4c7728=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4c7728['delete']('$graveyard');for(const _0x2ad2cc of _0x4c7728){const _0x58e46b=this['_diffRoots']['get'](_0x2ad2cc)||N(_0x2ad2cc,!0x1),_0x46db96=this['_baseRoots']['get'](_0x2ad2cc)||N(_0x2ad2cc,!0x1);_0x58e46b['isAttached']()||_0x46db96['isAttached']()?(_0x2cf531['insertions'][_0x2ad2cc]=x(_0x58e46b),_0x2cf531['deletions'][_0x2ad2cc]=x(_0x46db96),this['_copyMarkers'](_0x2cf531['deletions'][_0x2ad2cc],_0x46db96),this['_copyMarkers'](_0x2cf531['insertions'][_0x2ad2cc],_0x58e46b),_0x1f8ff7['insertions'][_0x2ad2cc]=this['_generateTape'](this['_idsRoots']['get'](_0x2ad2cc),[]),_0x1f8ff7['deletions'][_0x2ad2cc]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2ad2cc)||N(_0x2ad2cc,!0x1),[])):_0x4c7728['delete'](_0x2ad2cc);}for(const _0x50d1ec of _0x4c7728){const _0x3f97d2=_0x1f8ff7['insertions'][_0x50d1ec];for(const _0x2fdf77 of _0x3f97d2){const _0x596a23=this['_getVidAttributeName'](_0x2fdf77),_0x398749=_0x2fdf77['item']['getAttribute'](_0x596a23);_0x389923['delete'](_0x398749),_0x398749>=this['_startingRevisionId']&&_0x9fac9d['set'](_0x398749,_0x455bd2['get'](_0x398749));}}for(const _0x3e0932 of _0x4c7728){const _0x253988=_0x1f8ff7['insertions'][_0x3e0932],_0x4a5080=this['_getBaseVids'](_0x1f8ff7['deletions'][_0x3e0932]);let _0x3e416e=0x0;for(const _0x300716 of _0x253988){const _0x4a563a=this['_getVidAttributeName'](_0x300716),_0xac3871=_0x300716['item']['getAttribute'](_0x4a563a);if(!_0x9fac9d['has'](_0xac3871)&&!_0x9416de['has'](_0xac3871)){if(_0x389923['has'](_0xac3871))_0x3e416e++;else{if(_0xac3871!=_0x4a5080[_0x3e416e]){const _0x48adda=_0x455bd2['get'](_0xac3871)||_0x455bd2['get'](_0x4a5080[_0x3e416e]);for(;_0xac3871!=_0x4a5080[_0x3e416e];)_0x389923['has'](_0x4a5080[_0x3e416e])||(_0x9416de['set'](_0x4a5080[_0x3e416e],_0x48adda),_0x455bd2['set'](_0x4a5080[_0x3e416e],_0x48adda)),_0x3e416e++;}_0x3e416e++;}}}}for(const _0x27b8fd of _0x4c7728){const _0x436667=_0x1f8ff7['insertions'][_0x27b8fd];for(const _0x565d8e of _0x436667){const _0x28aafb=this['_getVidAttributeName'](_0x565d8e),_0x171556=_0x565d8e['item']['getAttribute'](_0x28aafb);if(_0x9416de['has'](_0x171556)){const _0x455e0c=_0x9416de['get'](_0x171556);_0x389923['has'](_0x171556)||_0x389923['set'](_0x171556,{..._0x455e0c}),_0x9fac9d['set'](_0x171556,{..._0x455e0c});}}}for(const _0x50634a of _0x389923['keys']())_0x50634a>=this['_startingRevisionId']&&_0x389923['delete'](_0x50634a);const _0x42f60c=new Map();for(const _0x5ad31b of _0x4c7728){let _0x46a75f=_0x1f8ff7['insertions'][_0x5ad31b];for(const _0x5534d5 of _0x46a75f)if(_0x5534d5['item']['is']('element','tableCell')){const _0x3031=this['_getVidAttributeName'](_0x5534d5),_0x25fa8f=_0x5534d5['item']['getAttribute'](_0x3031);if(_0x9fac9d['has'](_0x25fa8f)){const _0x60ff0e=_0x5534d5['item']['parent']['parent']['getAttribute']('vid_start'),_0x1839ea=_0x42f60c['get'](_0x60ff0e)||new Set();_0x1839ea['add'](_0x9fac9d['get'](_0x25fa8f)['userId']),_0x42f60c['set'](_0x60ff0e,_0x1839ea);}}_0x46a75f=_0x1f8ff7['deletions'][_0x5ad31b];for(const _0x467903 of _0x46a75f)if(_0x467903['item']['is']('element','tableCell')){const _0x362547=this['_getVidAttributeName'](_0x467903),_0x385122=_0x467903['item']['getAttribute'](_0x362547);if(_0x389923['has'](_0x385122)){const _0x27ea5e=_0x467903['item']['parent']['parent']['getAttribute']('vid_start'),_0x4c231d=_0x42f60c['get'](_0x27ea5e)||new Set();_0x4c231d['add'](_0x389923['get'](_0x385122)['userId']),_0x42f60c['set'](_0x27ea5e,_0x4c231d);}}for(const _0x20d6ce of _0x42f60c['keys']())(_0x9fac9d['has'](_0x20d6ce)||_0x389923['has'](_0x20d6ce))&&_0x42f60c['delete'](_0x20d6ce);}for(const _0x339351 of _0x4c7728){const _0x45fc33=_0x1f8ff7['insertions'][_0x339351];let _0x7fff9d=null,_0x15c0d4=null;for(const _0x346dfc of _0x45fc33){const _0x591419=this['_getVidAttributeName'](_0x346dfc),_0x1f15c6=_0x346dfc['item']['getAttribute'](_0x591419),_0x4f774a=_0x42f60c['get'](_0x1f15c6);_0x4f774a&&'elementStart'==_0x346dfc['type']&&(_0x7fff9d=Array['from'](_0x4f774a)[0x0],_0x15c0d4=_0x346dfc['item']['getAttribute']('vid_end')),_0x7fff9d&&(_0x389923['set'](_0x1f15c6,{'userId':_0x7fff9d}),_0x9fac9d['set'](_0x1f15c6,{'userId':_0x7fff9d})),_0x1f15c6==_0x15c0d4&&(_0x7fff9d=null,_0x15c0d4=null);}}const _0x4556bb={},_0x59f9f0=new Set();for(const _0x54b016 of _0x4c7728){const _0x4e0780=_0x2cf531['deletions'][_0x54b016],_0x134d13=_0x2cf531['insertions'][_0x54b016];for(const {userId:_0x5f2f64}of this['_touchedMarkers']['values']())null!==_0x5f2f64&&_0x59f9f0['add'](_0x5f2f64);for(const {userId:_0x472b8b}of this['_touchedRoots']['values']())null!==_0x472b8b&&_0x59f9f0['add'](_0x472b8b);this['_markChanges'](_0x134d13,_0x1f8ff7['insertions'][_0x54b016],_0x9fac9d,'insertion',_0x59f9f0),this['_markChanges'](_0x4e0780,_0x1f8ff7['deletions'][_0x54b016],_0x389923,'deletion',_0x59f9f0),_0x4556bb[_0x54b016]={'insertions':this['_prepareViewToSave'](_0x134d13),'deletions':this['_prepareViewToSave'](_0x4e0780),'attachChange':this['_touchedRoots']['get'](_0x54b016)||null,'attributesBefore':_0x1fffc6(this['_baseRootsAttributes']['get'](_0x54b016))||{},'attributesAfter':_0x1fffc6(this['_diffRootsAttributes']['get'](_0x54b016))};}return{'diffData':_0x4556bb,'authorsIds':Array['from'](_0x59f9f0)};}['_processRootBeforeSave'](_0x1a70f8){for(const [,_0x3ce7ed]of _0x1a70f8['markers']){const _0x3164df=_0x3ce7ed['start']['getAncestors']()['filter'](_0x225ed6=>'tableCell'==_0x225ed6['name']);for(const _0x4f5d46 of _0x3164df)0x1==_0x4f5d46['childCount']&&_0x4f5d46['getChild'](0x0)['is']('element','paragraph')&&_0x4f5d46['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x77692b){this['_processRootBeforeSave'](_0x77692b);const _0xd75785=this['editor']['data']['toView'](_0x77692b,{}),_0x5e4ca9=Array['from'](_0xd75785['getChildren']())['map'](_0x19376b=>this['_getViewJson'](_0x19376b));return JSON['stringify'](_0x5e4ca9);}['_getViewJson'](_0x440206){if(_0x440206['is']('$text'))return _0x440206['data'];{const _0x35ff96=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2d7666=_0x440206,_0x3abdb0=this['editor']['data']['htmlProcessor']['domConverter'],_0x499f36={'type':_0x35ff96['_getTypeCharForViewElement'](_0x2d7666),'name':_0x2d7666['name'],'attributes':Array['from'](_0x2d7666['getAttributes']()),'children':Array['from'](_0x2d7666['getChildren']())['map'](_0x1c6f78=>this['_getViewJson'](_0x1c6f78))};if(_0x440206['is']('uiElement')&&'$comment'!=_0x440206['name']){const _0x121717=_0x440206['render'](_0x3abdb0['domDocument'],_0x3abdb0);_0x499f36['children']['push'](_0x121717['outerHTML']);}else{if(_0x440206['is']('rawElement')){const _0xa62fe0=_0x3abdb0['domDocument']['createElement'](_0x2d7666['name']);_0x440206['render'](_0xa62fe0,_0x3abdb0),_0x499f36['children']['push'](_0xa62fe0['innerHTML']);}}const _0x4de9f5=Array['from'](_0x2d7666['getCustomProperties']());_0x4de9f5['length']>0x0&&(_0x499f36['customProperties']=_0x4de9f5);const _0x28381a=_0x2d7666['getFillerOffset']();return null!==_0x28381a&&(_0x499f36['fillerOffset']=_0x28381a),_0x499f36;}}['_markChanges'](_0x48868c,_0x224c6f,_0x2c3f15,_0x2d8912,_0x264930){let _0x294dde=null,_0x49c480=null,_0x4cc06e=0x0;const _0x48428c=this['editor']['model'];for(let _0x231a2a=0x0;_0x231a2a<_0x224c6f['length'];_0x231a2a++){const _0x3e1358=this['_getVidAttributeName'](_0x224c6f[_0x231a2a]),_0x1c6b85=_0x224c6f[_0x231a2a]['item']['getAttribute'](_0x3e1358),_0x24c117=_0x2c3f15['get'](_0x1c6b85),_0x2b0912=_0x231a2a==_0x224c6f['length']-0x1;(!_0x294dde&&_0x24c117&&(_0x294dde=_0x24c117,_0x49c480=_0x224c6f[_0x231a2a]),_0x294dde&&(!_0x24c117||_0x24c117['userId']!=_0x294dde['userId']))&&(_0x40e104(_0x24c117,P(_0x49c480,_0x48868c,_0x48428c),P(_0x224c6f[_0x231a2a],_0x48868c,_0x48428c)),_0x294dde=_0x24c117||null,_0x49c480=_0x24c117?_0x224c6f[_0x231a2a]:null),_0x294dde&&_0x2b0912&&_0x40e104(_0x24c117,P(_0x49c480,_0x48868c,_0x48428c),V(_0x224c6f[_0x231a2a],_0x48868c,_0x48428c));}function _0x40e104(_0x48bb01,_0x4505ca,_0x53014b){const _0xe535c=_0x294dde['userId'],_0x10b0ba='revision:'+_0x2d8912+':'+_0xe535c+':'+_0x4cc06e++,_0x4f071b=_0x48428c['createRange'](_0x4505ca,_0x53014b);_0x48868c['markers']['set'](_0x10b0ba,_0x4f071b),null!==_0xe535c&&_0x264930['add'](_0xe535c);}}['_getVidAttributeName'](_0x55ff1f){switch(_0x55ff1f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x337e29,_0x3c2ff1){_0x337e29['baseVersion']=null;for(const _0x19a27a in _0x337e29){const _0xa67920=_0x337e29[_0x19a27a];if(_0xa67920 instanceof _0x37d3ad){const _0x45c260=_0x3c2ff1['get'](_0xa67920['root']['rootName']);_0x337e29[_0x19a27a]=this['_fixPosition'](_0xa67920,_0x45c260);}if(_0xa67920 instanceof _0x5cea6d){const _0x44d61b=_0x3c2ff1['get'](_0xa67920['root']['rootName']);_0x337e29[_0x19a27a]=this['_fixRange'](_0xa67920,_0x44d61b);}'root'===_0x19a27a&&(_0x337e29['root']=_0x3c2ff1['get'](_0x337e29['root']['rootName']));}}['_fixRange'](_0x13cdf1,_0x487e80){return this['editor']['model']['createRange'](this['_fixPosition'](_0x13cdf1['start'],_0x487e80),this['_fixPosition'](_0x13cdf1['end'],_0x487e80));}['_fixPosition'](_0x4d810a,_0x4ef0fc){return this['editor']['model']['createPositionFromPath'](_0x4ef0fc,_0x4d810a['path'],_0x4d810a['stickiness']);}['_handleInsertOperation'](_0x2b17ba){const _0xf5cd8e=this['_idsRoots']['get'](_0x2b17ba['position']['root']['rootName']),_0x205830=this['_fixPosition'](_0x2b17ba['position'],_0xf5cd8e),_0xbd363e=null===_0x2b17ba['_authorId']?null:_0x2b17ba['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x280c1b=_0x205830['parent'],_0x3b5de9=this['_revisionId'],_0x48eaca=[];for(const _0x51c053 of _0x2b17ba['nodes'])if(_0x51c053['is']('element'))_0x48eaca['push'](this['_makeIdsRoot'](_0x51c053));else{for(let _0x583785=0x0;_0x583785<_0x51c053['offsetSize'];_0x583785++)_0x48eaca['push'](new _0x37c7de('$text',{'vid':this['_revisionId']++}));}const _0x46cfdd=this['_revisionId'];for(let _0x1d1b08=_0x3b5de9;_0x1d1b08<_0x46cfdd;_0x1d1b08++)this['_touched']['set'](_0x1d1b08,{'userId':_0xbd363e});_0x280c1b['_insertChild'](_0x205830['offset'],_0x48eaca);}['_handleMoveOperation'](_0x41fb56){(_0x41fb56=this['_cloneOperation'](_0x41fb56,this['_idsRoots']))['_execute']();const _0x6873d6=null===_0x41fb56['_authorId']?null:_0x41fb56['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24207a=_0x41fb56['getMovedRangeStart'](),_0x5d8cc9=_0x24207a['parent'],_0x36ec56=_0x24207a['offset'];!function _0x1e2333(_0x5566fd,_0x4c6f2b,_0x55e8d,_0x1af182){for(let _0x1ac814=_0x55e8d;_0x1ac814<_0x1af182;_0x1ac814++){const _0x43632e=_0x4c6f2b['getChild'](_0x1ac814);_0x43632e['is']('element','$text')?_0x5566fd['set'](_0x43632e['getAttribute']('vid'),{'userId':_0x6873d6}):(_0x5566fd['set'](_0x43632e['getAttribute']('vid_start'),{'userId':_0x6873d6}),_0x1e2333(_0x5566fd,_0x43632e,0x0,_0x43632e['childCount']),_0x5566fd['set'](_0x43632e['getAttribute']('vid_end'),{'userId':_0x6873d6}));}}(this['_touched'],_0x5d8cc9,_0x36ec56,_0x36ec56+_0x41fb56['howMany']);}['_handleMergeOperation'](_0x39d80b){const _0x205980=null===(_0x39d80b=this['_cloneOperation'](_0x39d80b,this['_idsRoots']))['_authorId']?null:_0x39d80b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc5cbeb=_0x39d80b['targetPosition']['parent'],_0x5e82e5=_0x39d80b['sourcePosition']['parent'],_0x4ffb28=_0xc5cbeb['getAttribute']('vid_end'),_0xaea803=_0x5e82e5['getAttribute']('vid_start');_0xc5cbeb['_setAttribute']('vid_end',_0x5e82e5['getAttribute']('vid_end')),_0x5e82e5['_setAttribute']('vid_end',_0x4ffb28),this['_touched']['set'](_0xaea803,{'userId':_0x205980}),this['_touched']['set'](_0x4ffb28,{'userId':_0x205980}),_0x39d80b['_execute']();}['_handleSplitOperation'](_0x357a0d){const _0x565f85=null===(_0x357a0d=this['_cloneOperation'](_0x357a0d,this['_idsRoots']))['_authorId']?null:_0x357a0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2af3c8=_0x357a0d['graveyardPosition'],_0x30b3c3=_0x357a0d['splitPosition']['parent'];_0x357a0d['_execute']();const _0x553e00=_0x30b3c3['getAttribute']('vid_end'),_0x3e5e73=_0x357a0d['insertionPosition']['nodeAfter'];if(_0x2af3c8){const _0x38501e=_0x3e5e73['getAttribute']('vid_end'),_0x2ca26d=_0x30b3c3['getAttribute']('vid_end');_0x30b3c3['_setAttribute']('vid_end',_0x38501e),_0x3e5e73['_setAttribute']('vid_end',_0x2ca26d),this['_touched']['set'](_0x30b3c3['getAttribute']('vid_end'),{'userId':_0x565f85}),this['_touched']['set'](_0x3e5e73['getAttribute']('vid_start'),{'userId':_0x565f85});}else{const _0x55ea1e=this['_revisionId']++,_0x2529d5=this['_revisionId']++;_0x30b3c3['_setAttribute']('vid_end',_0x55ea1e),_0x3e5e73['_setAttribute']('vid_start',_0x2529d5),_0x3e5e73['_setAttribute']('vid_end',_0x553e00),this['_touched']['set'](_0x55ea1e,{'userId':_0x565f85}),this['_touched']['set'](_0x2529d5,{'userId':_0x565f85});}}['_handleMarkerOperation'](_0x1292e9){if(!_0x1292e9['affectsData'])return;const _0x34b19c=(_0x1292e9=this['_cloneOperation'](_0x1292e9,this['_diffRoots']))['oldRange']?_0x1292e9['oldRange']['root']:null,_0x1996fd=_0x1292e9['newRange']?_0x1292e9['newRange']['root']:null;_0x34b19c&&this['_markers']['delete'](_0x1292e9['name']),_0x1996fd&&this['_markers']['set'](_0x1292e9['name'],_0x1292e9['newRange']['clone']());const _0x414b59=null===_0x1292e9['_authorId']?null:_0x1292e9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7b030e=_0x1292e9['name'];if(!this['_touchedMarkers']['has'](_0x7b030e))return void this['_touchedMarkers']['set'](_0x7b030e,{'range':_0x1292e9['oldRange'],'userId':_0x414b59});const _0x1d1a98=this['_touchedMarkers']['get'](_0x7b030e),_0x44eaed=_0x1d1a98['range'],_0xdc621c=_0x1292e9['newRange'];null==_0x44eaed&&null==_0xdc621c||_0x44eaed&&_0xdc621c&&_0x44eaed['isEqual'](_0xdc621c)?this['_touchedMarkers']['delete'](_0x1292e9['name']):_0x1d1a98['userId']=_0x414b59;}['_handleRootOperation'](_0x6359e0,_0x15d738){this['_diffRoots']['has'](_0x6359e0['rootName'])?this['_diffRoots']['get'](_0x6359e0['rootName'])['_isAttached']=_0x6359e0['isAdd']:(this['_diffRoots']['set'](_0x6359e0['rootName'],N(_0x6359e0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x6359e0['rootName'],{}),_0x15d738&&this['_idsRoots']['set'](_0x6359e0['rootName'],N(_0x6359e0['rootName'],!0x0)));const _0x396896=null===_0x6359e0['_authorId']?null:_0x6359e0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x512023=this['_touchedRoots']['get'](_0x6359e0['rootName']);_0x512023&&_0x512023['userId']===_0x396896?this['_touchedRoots']['delete'](_0x6359e0['rootName']):this['_touchedRoots']['set'](_0x6359e0['rootName'],{'userId':_0x396896,'isAttached':_0x6359e0['isAdd']});}['_handleRootAttributeOperation'](_0x15416f){const _0x441cf4=this['_diffRootsAttributes']['get'](_0x15416f['root']['rootName']);null===_0x15416f['newValue']?delete _0x441cf4[_0x15416f['key']]:_0x441cf4[_0x15416f['key']]=_0x15416f['newValue'];}}function x(_0xac79df){const _0x2de2bc=N(_0xac79df['rootName'],_0xac79df['isAttached']());for(const _0x519431 of _0xac79df['getChildren']()){const _0xe46e97=_0x519431['_clone'](!0x0);_0x2de2bc['_appendChild'](_0xe46e97);}return _0x2de2bc;}function N(_0x1b74ed,_0x4f74b4=!0x0){const _0x2d89cf=new _0x72fa5();return _0x2d89cf['rootName']=_0x1b74ed,_0x2d89cf['_isAttached']=_0x4f74b4,_0x2d89cf['isAttached']=()=>_0x2d89cf['_isAttached'],_0x2d89cf;}function P(_0x44432f,_0x4a4bc0,_0x18fb89){const _0xd3e5a4='elementEnd'==_0x44432f['type']?_0x18fb89['createPositionAt'](_0x44432f['item'],'end'):_0x18fb89['createPositionBefore'](_0x44432f['item']);return _0x18fb89['createPositionFromPath'](_0x4a4bc0,_0xd3e5a4['path'],_0xd3e5a4['stickiness']);}function V(_0x207040,_0x3b922f,_0x41afee){const _0x51097a='elementStart'==_0x207040['type']?_0x41afee['createPositionAt'](_0x207040['item'],0x0):_0x41afee['createPositionAfter'](_0x207040['item']);return _0x41afee['createPositionFromPath'](_0x3b922f,_0x51097a['path'],_0x51097a['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x3e54cf(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x174605){super(),this['id']=_0x174605['id']||_0x515d40(),this['author']=_0x174605['author'],this['type']=_0x174605['type'],this['data']=_0x174605['data']||{},this['rootName']=_0x174605['rootName'],this['set']('createdAt',_0x174605['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4d10f1,_0x124d5f){this['newRevisionId']=_0x4d10f1,this['oldRevisionId']=_0x124d5f,this['changes']=new _0x42f581();}['_setChanges'](_0xd2408b){for(const _0x3f5093 of _0xd2408b)this['changes']['add'](_0x3f5093);}}class l extends _0x278e34{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3fef6b,_0x2d19fd,S,$];}constructor(_0x276a2f){super(_0x276a2f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4d5d43,_0x2dfa03,_0x29a674)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3fd11b=>{for(const _0x2d7f5c of this['editor']['editing']['view']['document']['roots'])_0x29a674?_0x3fd11b['removeClass']('ck-editor__editable__overlay',_0x2d7f5c):_0x3fd11b['addClass']('ck-editor__editable__overlay',_0x2d7f5c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2f3b1c=>null!==_0x2f3b1c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x37406d,_0x1e4862,_0x221a35)=>_0x37406d&&_0x221a35?_0x1e4862['changes']['getIndex'](_0x221a35):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x47edb5,_0x11187f)=>_0x47edb5?_0x11187f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2d19fd);}['init'](){const _0x18080f=this['editor'],_0x560548=new ot(_0x18080f,{'direction':'backward'}),_0x1864b0=new ot(_0x18080f,{'direction':'forward'});(_0x18080f['commands']['add']('showPreviousChange',_0x560548),_0x18080f['commands']['add']('showNextChange',_0x1864b0),_0x18080f['commands']['add']('restoreRevision',new nt(_0x18080f)),this['on']('change:numberOfChanges',()=>{_0x560548['refresh'](),_0x1864b0['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x18080f['enableReadOnlyMode']('revision-viewer'),_0x18080f['plugins']['has']('WidgetToolbarRepository'))&&_0x18080f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xbc34ac){return await this['_utils']['loadRevisionData'](_0xbc34ac,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xbc34ac);}async['getRevisionRootsAttributes'](_0x3fccf9){return await this['_utils']['loadRevisionData'](_0x3fccf9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3fccf9);}async['compare'](_0x13f96a,_0x2dd7af,_0x347d43=!0x1){if(!this['isEnabled'])return;const _0x1e6ead=this['diff'],_0x151bbe=this['repository'],_0x5cf251='string'==typeof _0x13f96a?_0x151bbe['getRevision'](_0x13f96a):_0x13f96a,_0x3f6963='string'==typeof _0x2dd7af?_0x151bbe['getRevision'](_0x2dd7af):_0x2dd7af,_0xac9b6f=_0x5cf251['id'],_0x13f5a9=_0x3f6963?_0x3f6963['id']:null;if(!_0x347d43&&this['diff']&&this['diff']['newRevisionId']===_0xac9b6f&&this['diff']['oldRevisionId']===_0x13f5a9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xac9b6f,_0x13f5a9);const _0x4256a4=this['_getRevisionsRange'](_0x5cf251,_0x3f6963,!0x0)['map'](_0x8fbf73=>this['_utils']['loadRevisionData'](_0x8fbf73,this['adapter']));return _0x4256a4['push'](new Promise(_0xeeae85=>{setTimeout(_0xeeae85,0x14);})),Promise['all'](_0x4256a4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1ac953=this['_getDiff'](_0xac9b6f,_0x13f5a9);for(const _0x4db76b of _0x1ac953['changes'])this['_changeIdToChange']['set'](_0x4db76b['id'],_0x4db76b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x369936=>{for(const _0x2990f5 of this['editor']['model']['document']['getRootNames']())_0x369936['detachRoot'](_0x2990f5);for(const _0x1cdb1c of Object['keys'](_0x1ac953['model'])){const _0x2c3cfd=_0x369936['addRoot'](_0x1cdb1c);for(const _0x1b8513 of Object['keys'](_0x1ac953['attributes'][_0x1cdb1c]))_0x369936['setAttribute'](_0x1b8513,_0x1ac953['attributes'][_0x1cdb1c][_0x1b8513],_0x2c3cfd);_0x369936['insert'](_0x1ac953['model'][_0x1cdb1c],_0x2c3cfd,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1ac953['changes'])),this['isReady']=!0x0;})['catch'](_0x438c70=>{console['error'](_0x438c70),this['_cleanUp'](),_0x1e6ead&&(this['diff']=_0x1e6ead),this['isReady']=!0x0;});}['addRevisionData'](_0x404c8f,_0xfa257d){const _0x571cf2=this['repository']['createRevision'](_0x404c8f);return _0x571cf2['on']('_update',(_0x32b2d4,_0x3be4d1,_0xf0f062)=>_0xfa257d(_0x3be4d1,_0xf0f062,_0x571cf2)),this['repository']['addRevision'](_0x571cf2),_0x571cf2;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x526dff=>{for(const _0x376661 of this['editor']['model']['document']['getRootNames']())_0x526dff['detachRoot'](_0x376661);});}['_sortAndFilterDiffChanges'](_0x49c7bb){const _0x269064=[],_0x363969=new Map();for(const _0x4fc5cd of this['editor']['model']['document']['getRootNames']()){const _0x1c7f18=this['editor']['editing']['view']['getDomRoot'](_0x4fc5cd);if(!_0x1c7f18)continue;const _0x3f6bae=_0x1c7f18['getClientRects']()['item'](0x0);_0x3f6bae&&(_0x269064['push'](_0x4fc5cd),_0x363969['set'](_0x4fc5cd,_0x3f6bae));}return _0x269064['sort']((_0x522148,_0x153546)=>{const _0x520cba=_0x363969['get'](_0x522148),_0x564619=_0x363969['get'](_0x153546);return _0x520cba['y']-_0x564619['y']||_0x520cba['x']-_0x564619['x'];}),(_0x49c7bb=_0x49c7bb['filter'](_0x50402c=>_0x269064['includes'](_0x50402c['rootName'])))['sort']((_0x1ced80,_0x3d940a)=>_0x269064['indexOf'](_0x1ced80['rootName'])-_0x269064['indexOf'](_0x3d940a['rootName'])),_0x49c7bb;}['_makeTape'](_0x4d7d0f){const _0x9cf590=Array['from'](_0x4d7d0f['markers'])['filter'](([_0x3ec2c9,_0x296fac])=>_0x3ec2c9['startsWith']('revision:')&&!_0x296fac['isCollapsed']),_0x16a0ed=Array['from'](this['editor']['model']['createRangeIn'](_0x4d7d0f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x9cf590['length'])for(const _0x6a2c27 of _0x16a0ed){const [_0x5aad2a,_0x1c2443]=_0x9cf590[0x0],[,_0x16fe23,_0x5d0eee]=_0x5aad2a['split'](':');if(_0x1c2443['end']['isEqual'](_0x6a2c27['nextPosition'])&&_0x9cf590['shift'](),(_0x6a2c27['previousPosition']['isEqual'](_0x1c2443['start'])||_0x6a2c27['previousPosition']['isAfter'](_0x1c2443['start']))&&('insertion'==_0x16fe23?_0x6a2c27['isAdded']={'userId':_0x5d0eee}:'deletion'==_0x16fe23&&(_0x6a2c27['isRemoved']={'userId':_0x5d0eee})),0x0==_0x9cf590['length'])break;}return _0x16a0ed;}['_refreshStartEndIndex'](_0x473931){const _0xf147b9=new Map();for(let _0x49c1cf=0x0;_0x49c1cf<_0x473931['length'];_0x49c1cf++)'text'===_0x473931[_0x49c1cf]['type']?(_0x473931[_0x49c1cf]['item']['startIndex']=_0x49c1cf,_0x473931[_0x49c1cf]['item']['endIndex']=_0x49c1cf):('elementStart'===_0x473931[_0x49c1cf]['type']?_0x473931[_0x49c1cf]['item']['startIndex']=_0x49c1cf:'elementEnd'===_0x473931[_0x49c1cf]['type']&&(_0x473931[_0x49c1cf]['item']['endIndex']=_0x49c1cf),_0xf147b9['set'](_0x473931[_0x49c1cf]['id'],_0x49c1cf));for(const _0x4c0aac of _0xf147b9['values']())'elementStart'===_0x473931[_0x4c0aac]['type']?_0x473931[_0x4c0aac]['item']['endIndex']=_0xf147b9['get'](_0x473931[_0x4c0aac]['pairId']):'elementEnd'===_0x473931[_0x4c0aac]['type']&&(_0x473931[_0x4c0aac]['item']['startIndex']=_0xf147b9['get'](_0x473931[_0x4c0aac]['pairId']));}['_processTape'](_0x55c887){for(let _0x359498=0x0;_0x359498<_0x55c887['length'];_0x359498++){if('elementStart'===_0x55c887[_0x359498]['type'])_0x55c887[_0x359498]['item']['startIndex']=_0x359498;else{if('elementEnd'===_0x55c887[_0x359498]['type']){_0x55c887[_0x359498]['item']['endIndex']=_0x359498;const _0x358577=_0x55c887[_0x359498]['item']['startIndex'];_0x55c887[_0x358577]['pairId']=_0x55c887[_0x359498]['id'],_0x55c887[_0x359498]['pairId']=_0x55c887[_0x358577]['id'];}else _0x55c887[_0x359498]['item']['startIndex']=_0x359498,_0x55c887[_0x359498]['item']['endIndex']=_0x359498,_0x55c887[_0x359498]['pairId']=null;}_0x55c887[_0x359498]['markersStart']||(_0x55c887[_0x359498]['markersStart']=[],_0x55c887[_0x359498]['markersEnd']=[]);}}['_markInsertions'](_0x4a2fd6,_0x24a44b){const _0x13b890=_0x4a2fd6['filter'](_0x5b6e54=>!_0x5b6e54['isAdded']);for(let _0x3f4bc2=0x0;_0x3f4bc2<_0x24a44b['length'];_0x3f4bc2++)_0x24a44b[_0x3f4bc2]['isAdded']&&(_0x13b890[_0x3f4bc2]['isAdded']=_0x24a44b[_0x3f4bc2]['isAdded']);}['_getDiff'](_0x3c8e05,_0x30c8da=null){const _0x1b4b31=this['repository']['getRevision'](_0x3c8e05),_0x2fa91e=_0x30c8da?this['repository']['getRevision'](_0x30c8da):null,_0x7a9d6f=this['_getRevisionsRange'](_0x1b4b31,_0x2fa91e),_0x1816a5=_0x7a9d6f[_0x7a9d6f['length']-0x1],_0x45e9a4=new Map(),_0x3d9356={'model':{},'attributes':{},'changes':[]},_0x1a96cc=new Set(),_0x379700=new Map();for(let _0x1c83bc=_0x7a9d6f['length']-0x1;_0x1c83bc>=0x0;_0x1c83bc--){const _0x52461a=_0x7a9d6f[_0x1c83bc];for(const _0x587d12 of Object['keys'](_0x52461a['diffData']))if(_0x52461a['diffData'][_0x587d12]['attachChange']){const _0x4b50bc=_0x52461a['diffData'][_0x587d12]['attachChange'];_0x4b50bc['isAttached']?(_0x1a96cc['add'](_0x587d12),_0x379700['has'](_0x587d12)&&_0x379700['get'](_0x587d12)['userId']==_0x4b50bc['userId']?_0x379700['delete'](_0x587d12):_0x379700['set'](_0x587d12,_0x4b50bc)):_0x379700['has'](_0x587d12)?(_0x1a96cc['delete'](_0x587d12),_0x379700['delete'](_0x587d12)):(_0x1a96cc['add'](_0x587d12),_0x379700['set'](_0x587d12,_0x4b50bc));}else _0x1a96cc['add'](_0x587d12);}for(const _0x4a19b3 of _0x1a96cc){const _0x18bcbd=_0x379700['has'](_0x4a19b3)&&!_0x379700['get'](_0x4a19b3)['isAttached'];let _0x3c8c42=_0x18bcbd?_0x7a9d6f['length']-0x1:0x0;const _0x513437=_0x18bcbd?-0x1:0x1;for(;_0x7a9d6f[_0x3c8c42];){const _0x19e7ce=_0x7a9d6f[_0x3c8c42];if(_0x19e7ce['diffData'][_0x4a19b3]){const _0x95c9c5=_0x18bcbd?_0x19e7ce['diffData'][_0x4a19b3]['attributesBefore']:_0x19e7ce['diffData'][_0x4a19b3]['attributesAfter'];_0x3d9356['attributes'][_0x4a19b3]=_0x95c9c5?_0x1fffc6(_0x95c9c5):{};break;}_0x3c8c42+=_0x513437;}}for(const _0x271c0b of _0x7a9d6f){_0x271c0b['model']={};for(const _0x14d7fa of _0x271c0b['authors'])_0x45e9a4['set'](_0x14d7fa['id'],_0x14d7fa);for(const _0x1f12f7 of _0x1a96cc){const _0x4465a8=_0x271c0b['diffData'][_0x1f12f7]?_0x271c0b['diffData'][_0x1f12f7]['insertions']:'[]',_0x36714d=_0x271c0b['diffData'][_0x1f12f7]?_0x271c0b['diffData'][_0x1f12f7]['deletions']:'[]';_0x271c0b['model'][_0x1f12f7]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4465a8),'deletions':this['_utils']['_makeModelFromViewString'](_0x36714d)};}}for(const _0x5610a2 of _0x1a96cc){let _0x41f28e=null,_0x1f0cc0=0x0;const _0x33b2a7=new Map(Array['from'](_0x1b4b31['model'][_0x5610a2]['insertions']['markers'])['filter'](([_0x5b7e03])=>!_0x5b7e03['startsWith']('revision:')));let _0x282040=0x0;for(const _0x520e32 of _0x7a9d6f){const _0x5db600=this['_makeTape'](_0x520e32['model'][_0x5610a2]['insertions']);_0x520e32==_0x1b4b31?(_0x41f28e=_0x5db600,_0x1f0cc0=_0x41f28e['length'],_0x41f28e['forEach'](_0x3dc7cd=>{_0x3dc7cd['id']=_0x282040++;}),this['_processTape'](_0x41f28e)):this['_markInsertions'](_0x41f28e,_0x5db600);const _0xd4c0f9=_0x41f28e['filter'](_0xba683f=>!_0xba683f['isAdded'])['map'](_0x57b73d=>_0x57b73d['id']);let _0x2a5e98=0x0;const _0x42a74d=this['_makeTape'](_0x520e32['model'][_0x5610a2]['deletions']);_0x42a74d['forEach'](_0x42fec1=>{_0x42fec1['isRemoved']?_0x42fec1['id']=_0x1f0cc0++:_0x42fec1['id']=_0xd4c0f9[_0x2a5e98++];}),this['_processTape'](_0x42a74d),this['_setDistance'](_0x41f28e,'isAdded'),this['_setDistance'](_0x42a74d,'isRemoved'),_0x520e32==_0x1b4b31&&this['_markMarkers'](_0x41f28e,_0x33b2a7),_0x41f28e=this['_joinTapes'](_0x41f28e,_0x42a74d),this['_refreshStartEndIndex'](_0x41f28e),this['_setDistance'](_0x41f28e,'isRemoved');}_0x41f28e=_0x41f28e['filter'](_0x206540=>!(_0x206540['isAdded']&&_0x206540['isRemoved']));const _0x44a3ab=new Map(_0x1816a5['model'][_0x5610a2]['deletions']['markers']),_0x9d7a2e=new Set(_0x33b2a7['keys']());for(const _0x30099a of _0x44a3ab['keys']())_0x9d7a2e['delete'](_0x30099a);this['_markSuggestions'](_0x41f28e,_0x9d7a2e),this['_fixObsoleteTags'](_0x41f28e),_0x41f28e=this['_removeMissingPairs'](_0x41f28e),_0x41f28e=this['_markMismatchedRemovedTags'](_0x41f28e),_0x41f28e=this['_removeUnsupportedChanges'](_0x41f28e);const {root:_0x174152,changes:_0x47f5f1}=this['_makeModelFromTape'](_0x41f28e,_0x45e9a4,_0x5610a2);_0x3d9356['model'][_0x5610a2]=_0x174152;const _0xc093d0=_0x379700['get'](_0x5610a2);if(_0xc093d0){const _0x45740e=_0x45e9a4['get'](_0xc093d0['userId']),_0x161c38=new G({'author':_0x45740e,'type':_0xc093d0['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5610a2});_0x47f5f1['unshift'](_0x161c38),_0x3d9356['attributes'][_0x5610a2]['revisionHistoryAttachChange']=_0x161c38['id'];}_0x3d9356['changes']=_0x3d9356['changes']['concat'](_0x47f5f1);}return _0x3d9356;}['_markMarkers'](_0x5112fe,_0x3bd18e){for(let _0x1d22f3=0x0;_0x1d22f3<_0x5112fe['length'];_0x1d22f3++)for(const [_0x318c64,_0x594d79]of _0x3bd18e)!_0x594d79['isCollapsed']&&_0x594d79['start']['isEqual'](_0x5112fe[_0x1d22f3]['previousPosition'])&&_0x5112fe[_0x1d22f3]['markersStart']['push'](_0x318c64),_0x594d79['end']['isEqual'](_0x5112fe[_0x1d22f3]['nextPosition'])&&_0x5112fe[_0x1d22f3]['markersEnd']['push'](_0x318c64);}['_joinTapes'](_0x8b53bb,_0x1287db){let _0x1c84b6=[],_0x49a007=0x0,_0x2f9c8f=0x0;for(;_0x49a007<_0x8b53bb['length']||_0x2f9c8f<_0x1287db['length'];){const _0x2bf483=_0x8b53bb[_0x49a007]||{},_0xd952a5=_0x1287db[_0x2f9c8f]||{};if(_0x2bf483['id']==_0xd952a5['id'])_0x49a007++,_0x2f9c8f++,_0x1c84b6['push'](_0x2bf483);else{if(_0xd952a5['isRemoved']&&_0x2bf483['isAdded']){const {commonTape:_0x24f4e3,iEnd:_0x395c8a,jEnd:_0xc003c}=this['_threeWayMerge'](_0x8b53bb,_0x49a007,_0x1287db,_0x2f9c8f);_0x1c84b6=_0x1c84b6['concat'](_0x24f4e3),_0x49a007=_0x395c8a,_0x2f9c8f=_0xc003c;}else _0xd952a5['isRemoved']?(_0x2f9c8f++,_0x1c84b6['push'](_0xd952a5)):(_0x49a007++,_0x1c84b6['push'](_0x2bf483));}}return _0x1c84b6;}['_markSuggestions'](_0x1bb5f0,_0x4d3cd8){const _0xcf27f7=[];for(let _0x33f564=0x0;_0x33f564<_0x1bb5f0['length'];_0x33f564++){for(let _0x2a4862=0x0;_0x2a4862<_0x1bb5f0[_0x33f564]['markersStart']['length'];_0x2a4862++){const _0x426363=_0x1bb5f0[_0x33f564]['markersStart'][_0x2a4862];if(!_0x4d3cd8['has'](_0x426363))continue;const {group:_0x416297,type:_0x29625e,authorId:_0x48c793}=_0x30ef39(_0x426363);'revision-suggestion'!=_0x416297||'insertion'!=_0x29625e&&'deletion'!=_0x29625e||(_0xcf27f7['unshift']({'type':_0x29625e,'name':_0x426363,'userId':_0x48c793}),_0x1bb5f0[_0x33f564]['markersStart']['splice'](_0x2a4862,0x1),_0x2a4862--);}_0x5c5d29(_0x1bb5f0[_0x33f564]);for(let _0x25b43d=0x0;_0x25b43d<_0x1bb5f0[_0x33f564]['markersEnd']['length'];_0x25b43d++){const _0x20f595=_0x1bb5f0[_0x33f564]['markersEnd'][_0x25b43d];if(!_0x4d3cd8['has'](_0x20f595))continue;const {group:_0x40bd94,type:_0x2269d8}=_0x30ef39(_0x20f595);if('revision-suggestion'!=_0x40bd94||'insertion'!=_0x2269d8&&'deletion'!=_0x2269d8)continue;_0x1bb5f0[_0x33f564]['markersEnd']['splice'](_0x25b43d,0x1),_0x25b43d--;const _0x394c1c=_0xcf27f7['findIndex'](_0x16467e=>_0x16467e['name']==_0x20f595);_0x394c1c>-0x1&&_0xcf27f7['splice'](_0x394c1c,0x1);}}function _0x30ef39(_0x4555e6){const _0x23440a=_0x4555e6['split'](':');return{'group':_0x23440a[0x0],'type':_0x23440a[0x1],'subType':_0x23440a['length']>=0x5?_0x23440a[0x2]:null,'id':_0x23440a['length']<0x5?_0x23440a[0x2]:_0x23440a[0x3],'authorId':_0x23440a['length']<0x5?_0x23440a[0x3]:_0x23440a[0x4],'markerCount':0x6==_0x23440a['length']?_0x23440a[0x5]:null};}function _0x5c5d29(_0x4da31e){for(let _0x3603f1=0x0;_0x3603f1<_0xcf27f7['length'];_0x3603f1++){if(_0x4da31e['isAdded']&&'insertion'==_0xcf27f7[_0x3603f1]['type']&&_0x4da31e['isAdded']['userId']==_0xcf27f7[_0x3603f1]['userId'])return _0x4da31e['isAddSuggestion']=_0xcf27f7[_0x3603f1],void delete _0x4da31e['isAdded'];if(!_0x4da31e['isAdded']&&!_0x4da31e['isRemoved']&&'deletion'==_0xcf27f7[_0x3603f1]['type'])return void(_0x4da31e['isRemoveSuggestion']=_0xcf27f7[_0x3603f1]);}}}['_setDistance'](_0x13e553,_0x4817cc){let _0x4c5b17=0x0,_0x49641c=!0x1;const _0x5478d0=new Map();for(const _0x2b1099 of _0x13e553)_0x2b1099[_0x4817cc]?_0x49641c&&(_0x4c5b17++,_0x49641c=!0x1):(_0x4c5b17++,_0x49641c=!0x0),_0x5478d0['set'](_0x2b1099['id'],_0x4c5b17);for(let _0x50801d=0x0;_0x50801d<_0x13e553['length'];_0x50801d++){if('isRemoved'==_0x4817cc&&_0x13e553[_0x50801d]['isAdded']||'isAdded'==_0x4817cc&&_0x13e553[_0x50801d]['isRemoved'])continue;if('text'==_0x13e553[_0x50801d]['type']){_0x13e553[_0x50801d]['distance']=0x0;continue;}const _0x5092cb=_0x5478d0['get'](_0x13e553[_0x50801d]['pairId']),_0x3db345=_0x5478d0['get'](_0x13e553[_0x50801d]['id']);_0x13e553[_0x50801d]['distance']=_0x5092cb-_0x3db345;}}['_getRevisionsRange'](_0x378426,_0x8f9b0f,_0x5e02a3=!0x1){const _0x3279ab=[];let _0x4410b1=this['repository']['getIndex'](_0x378426),_0x211ab5=this['repository']['getIndex'](_0x8f9b0f);for(-0x1==_0x211ab5&&(_0x211ab5=this['repository']['_revisions']['length'],_0x5e02a3=!0x1);_0x4410b1<_0x211ab5;)_0x3279ab['push'](this['repository']['getRevision'](_0x4410b1)),_0x4410b1++;return _0x5e02a3&&_0x3279ab['push'](this['repository']['getRevision'](_0x4410b1)),_0x3279ab;}['_threeWayMerge'](_0x4c7429,_0x25a518,_0x1737dd,_0x5e406c){const _0x345bee=this['editor']['model']['schema'];let _0x2d911d=_0x25a518;for(;_0x4c7429[_0x2d911d]&&_0x4c7429[_0x2d911d]['isAdded'];)_0x2d911d++;let _0x5bfca5=_0x5e406c;for(;_0x1737dd[_0x5bfca5]&&_0x1737dd[_0x5bfca5]['isRemoved'];)_0x5bfca5++;_0x125afb(_0x4c7429,_0x25a518,_0x2d911d),_0x125afb(_0x1737dd,_0x5e406c,_0x5bfca5);const _0x377ed1=_0x1737dd['slice'](_0x5e406c,_0x5bfca5)['concat'](_0x4c7429['slice'](_0x25a518,_0x2d911d));return _0x377ed1['sort']((_0x3e1762,_0x4279c4)=>_0x3e1762['side']!=_0x4279c4['side']?_0x3e1762['side']-_0x4279c4['side']:_0x3e1762['level']!=_0x4279c4['level']?_0x3e1762['level']-_0x4279c4['level']:_0x3e1762['distance']!=_0x4279c4['distance']?_0x4279c4['distance']-_0x3e1762['distance']:!!_0x3e1762['isAdded']!=!!_0x4279c4['isAdded']?-0x1==_0x3e1762['side']||0x0==_0x3e1762['side']?_0x3e1762['isAdded']?-0x1:0x1:_0x3e1762['isAdded']?0x1:-0x1:_0x3e1762['index']-_0x4279c4['index']),{'commonTape':_0x377ed1,'iEnd':_0x2d911d,'jEnd':_0x5bfca5};function _0x125afb(_0x256a23,_0x4c1644,_0x42f650){let _0x297098=-0x1,_0x512a8e=Number['POSITIVE_INFINITY'],_0x4305a2=!0x0;for(let _0x187423=_0x4c1644;_0x187423<_0x42f650;_0x187423++)if(_0x345bee['isInline'](_0x256a23[_0x187423]['item'])||(_0x4305a2=!0x1),_0x256a23[_0x187423]['item']['startIndex']<_0x4c1644&&(_0x297098=_0x187423),_0x256a23[_0x187423]['item']['endIndex']>=_0x42f650){_0x512a8e=_0x187423;break;}_0x4305a2&&(_0x297098=_0x42f650-0x1);for(let _0x376e25=_0x4c1644;_0x376e25<_0x42f650;_0x376e25++)_0x256a23[_0x376e25]['side']=_0x376e25<=_0x297098?-0x1:_0x376e25<_0x512a8e?0x0:0x1,_0x256a23[_0x376e25]['index']=_0x376e25;let _0x14adb7=0x0;for(let _0x4275b0=_0x4c1644;_0x4275b0<=_0x297098;_0x4275b0++)0x0==_0x256a23[_0x4275b0]['distance']?_0x256a23[_0x4275b0]['level']=_0x14adb7:(_0x14adb7++,_0x256a23[_0x4275b0]['level']=_0x14adb7,_0x14adb7++);for(let _0xc94835=_0x4c1644;_0xc94835<_0x42f650;_0xc94835++)0x0==_0x256a23[_0xc94835]['side']&&(_0x256a23[_0xc94835]['level']=_0x14adb7);_0x14adb7=0x0;for(let _0x2fdacc=_0x42f650-0x1;_0x2fdacc>=_0x512a8e;_0x2fdacc--)0x0==_0x256a23[_0x2fdacc]['distance']?_0x256a23[_0x2fdacc]['level']=_0x14adb7:(_0x14adb7--,_0x256a23[_0x2fdacc]['level']=_0x14adb7,_0x14adb7--);}}['_fixObsoleteTags'](_0x3237e9){const _0x289447=new Map(),_0x1d4bc7=this['editor']['model']['schema'];for(let _0x29e19e=0x1;_0x29e19e<_0x3237e9['length'];_0x29e19e++){let _0x44ede1,_0x14a591,_0x56b6f8;const _0x205392=_0x3237e9[_0x29e19e],_0x58de1e=_0x3237e9[_0x29e19e-0x1];if('text'==_0x205392['type'])continue;if(_0x205392['type']!=_0x58de1e['type'])continue;if(!_0x1d4bc7['isBlock'](_0x58de1e['item'])||_0x1d4bc7['isLimit'](_0x58de1e['item']))continue;if(!_0x1d4bc7['isBlock'](_0x205392['item'])||_0x1d4bc7['isLimit'](_0x205392['item']))continue;if((_0x3237e9[_0x29e19e]['isAdded']||_0x3237e9[_0x29e19e]['isAddSuggestion'])&&_0x3237e9[_0x29e19e-0x1]['isRemoved'])_0x44ede1=_0x3237e9[_0x29e19e],_0x14a591=_0x3237e9[_0x29e19e-0x1],_0x56b6f8=_0x29e19e-0x1;else{if(!_0x3237e9[_0x29e19e]['isRemoved']||!_0x3237e9[_0x29e19e-0x1]['isAdded']&&!_0x3237e9[_0x29e19e-0x1]['isAddSuggestion'])continue;_0x44ede1=_0x3237e9[_0x29e19e-0x1],_0x14a591=_0x3237e9[_0x29e19e],_0x56b6f8=_0x29e19e;}const _0x40de98=_0x44ede1['level']==_0x14a591['level'],_0x382554=Math['abs'](_0x44ede1['level'])<Math['abs'](_0x14a591['level'])&&0x0==_0x14a591['distance'];(_0x40de98||_0x382554)&&(_0x289447['set'](_0x14a591['id'],_0x44ede1['id']),_0x3237e9['splice'](_0x56b6f8,0x1),_0x29e19e--,_0x44ede1['isAdded']=!0x1);}for(let _0x2518b1=0x0;_0x2518b1<_0x3237e9['length'];_0x2518b1++)_0x289447['has'](_0x3237e9[_0x2518b1]['pairId'])&&(_0x3237e9[_0x2518b1]['pairId']=_0x289447['get'](_0x3237e9[_0x2518b1]['pairId']));}['_removeMissingPairs'](_0x19fdbf){const _0x1083c0=new Set(_0x19fdbf['map'](_0x561f0a=>_0x561f0a['id']));for(let _0x4f9ff8=0x0;_0x4f9ff8<_0x19fdbf['length'];_0x4f9ff8++)_0x1083c0['has'](_0x19fdbf[_0x4f9ff8]['pairId'])||0x0==_0x19fdbf[_0x4f9ff8]['distance']||(_0x19fdbf[_0x4f9ff8]['isIncorrect']=!0x0);return _0x19fdbf['filter'](_0x6c07b6=>!_0x6c07b6['isIncorrect']);}['_markMismatchedRemovedTags'](_0xd5560f){const _0x452df9=new Set();for(let _0x5af8bc=0x0;_0x5af8bc<_0xd5560f['length'];_0x5af8bc++){if(_0x452df9['has'](_0xd5560f[_0x5af8bc]['id'])&&_0xd5560f[_0x5af8bc]['isRemoved']&&(_0xd5560f[_0x5af8bc]['isIncorrect']=!0x0),_0xd5560f[_0x5af8bc]['isIncorrect'])continue;if(0x0==_0xd5560f[_0x5af8bc]['distance'])continue;if('elementStart'!=_0xd5560f[_0x5af8bc]['type'])continue;if(null==_0xd5560f[_0x5af8bc]['pairId'])continue;let _0x4bae30=_0x5af8bc+0x1,_0x2a9199=0x0;for(;_0xd5560f[_0x4bae30]['id']!=_0xd5560f[_0x5af8bc]['pairId'];)'elementStart'==_0xd5560f[_0x4bae30]['type']?_0x2a9199++:'elementEnd'==_0xd5560f[_0x4bae30]['type']&&_0x2a9199--,_0x4bae30++;if(0x0!=_0x2a9199){if(_0xd5560f[_0x5af8bc]['isRemoved'])_0xd5560f[_0x5af8bc]['isIncorrect']=!0x0;else{for(;_0x4bae30!=_0x5af8bc;)_0xd5560f[_0x4bae30]['isRemoved']&&0x0!=_0xd5560f[_0x4bae30]['distance']&&(_0xd5560f[_0x4bae30]['isIncorrect']=!0x0,_0x452df9['add'](_0xd5560f[_0x4bae30]['pairId'])),_0x4bae30--;}}}return _0xd5560f['filter'](_0x5c295e=>!_0x5c295e['isIncorrect']);}['_removeUnsupportedChanges'](_0x5adc57){const _0x5e86c2=this['editor']['model']['schema'];for(let _0x3568d9=0x0;_0x3568d9<_0x5adc57['length'];_0x3568d9++){if(!(_0x5adc57[_0x3568d9]['isAdded']||_0x5adc57[_0x3568d9]['isAddSuggestion']||_0x5adc57[_0x3568d9]['isRemoved']||_0x5adc57[_0x3568d9]['isRemoveSuggestion']))continue;if(0x0==_0x5adc57[_0x3568d9]['distance'])continue;const _0x55d58c=_0x5adc57[_0x3568d9]['item'];_0x5e86c2['isBlock'](_0x55d58c)||_0x5e86c2['isLimit'](_0x55d58c)||(_0x5adc57[_0x3568d9]['isAdded']&&delete _0x5adc57[_0x3568d9]['isAdded'],_0x5adc57[_0x3568d9]['isAddSuggestion']&&delete _0x5adc57[_0x3568d9]['isAddSuggestion'],_0x5adc57[_0x3568d9]['isRemoveSuggestion']&&delete _0x5adc57[_0x3568d9]['isRemoveSuggestion'],_0x5adc57[_0x3568d9]['isRemoved']&&(_0x5adc57[_0x3568d9]['isIncorrect']=!0x0));}return _0x5adc57['filter'](_0x521824=>!_0x521824['isIncorrect']);}['_makeModelFromTape'](_0x285a76,_0x33cd55,_0x3618c9){const _0x221c4f=new _0x72fa5(),_0x5ae28e=[],_0x11dce6=new Map(),_0x23bef9=this['editor']['model'],_0x2c3b27=_0x23bef9['schema'],_0x529b95=[_0x221c4f],_0x5d2ea4={},_0x6b3112={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x40fa39=null;const _0x25e22f=[0x0];for(let _0x58a112=0x0;_0x58a112<_0x285a76['length'];_0x58a112++)if('elementStart'===_0x285a76[_0x58a112]['type']){_0x285a76[_0x58a112]['previousPosition']=_0x23bef9['createPositionFromPath'](_0x221c4f,_0x25e22f);const _0xbc717a=new _0x37c7de(_0x285a76[_0x58a112]['item']['name'],_0x285a76[_0x58a112]['item']['getAttributes']());_0x529b95[0x0]['_appendChild'](_0xbc717a),_0x25e22f['push'](0x0),_0x529b95['unshift'](_0xbc717a),_0x285a76[_0x58a112]['nextPosition']=_0x23bef9['createPositionFromPath'](_0x221c4f,_0x25e22f);}else'elementEnd'===_0x285a76[_0x58a112]['type']?(_0x529b95['shift'](),_0x285a76[_0x58a112]['previousPosition']=_0x23bef9['createPositionFromPath'](_0x221c4f,_0x25e22f),_0x25e22f['pop'](),_0x25e22f[_0x25e22f['length']-0x1]++,_0x285a76[_0x58a112]['nextPosition']=_0x23bef9['createPositionFromPath'](_0x221c4f,_0x25e22f)):(_0x285a76[_0x58a112]['previousPosition']=_0x23bef9['createPositionFromPath'](_0x221c4f,_0x25e22f),_0x40fa39?_0x40fa39['_data']+=_0x285a76[_0x58a112]['item']['data']:_0x40fa39=new _0x4230dd(_0x285a76[_0x58a112]['item']['data'],_0x285a76[_0x58a112]['item']['getAttributes']()),_0x285a76[_0x58a112+0x1]&&'text'===_0x285a76[_0x58a112+0x1]['type']&&_0x1cf62a(_0x40fa39,_0x285a76[_0x58a112+0x1]['item'])||(_0x529b95[0x0]['_appendChild'](_0x40fa39),_0x40fa39=null),_0x25e22f[_0x25e22f['length']-0x1]+=_0x285a76[_0x58a112]['item']['offsetSize'],_0x285a76[_0x58a112]['nextPosition']=_0x23bef9['createPositionFromPath'](_0x221c4f,_0x25e22f));for(let _0x188dc6=0x0;_0x188dc6<_0x285a76['length'];_0x188dc6++){const _0x250104=_0x285a76[_0x188dc6]['previousPosition'],_0x58bd4e=_0x285a76[_0x188dc6]['nextPosition'];for(const _0x4cff7c of _0x285a76[_0x188dc6]['markersStart'])_0x11dce6['set'](_0x4cff7c,{'start':_0x250104,'end':null});_0x526803('isRemoveSuggestion',_0x188dc6,_0x250104,_0x58bd4e),_0x526803('isAddSuggestion',_0x188dc6,_0x250104,_0x58bd4e),_0x526803('isRemoved',_0x188dc6,_0x250104,_0x58bd4e),_0x526803('isAdded',_0x188dc6,_0x250104,_0x58bd4e);for(const _0x57a83f of _0x285a76[_0x188dc6]['markersEnd']){const _0x4f0267=_0x11dce6['get'](_0x57a83f);_0x4f0267?_0x4f0267['end']=_0x58bd4e:_0x11dce6['set'](_0x57a83f,{'start':_0x58bd4e,'end':_0x58bd4e});}}for(const [_0x3c13b0,_0x1411ce]of _0x11dce6){const _0x4dee17=this['editor']['model']['createRange'](_0x1411ce['start'],_0x1411ce['end']);_0x221c4f['markers']['set'](_0x3c13b0,_0x4dee17);}return _0x5ae28e['sort']((_0x1f7315,_0x214a27)=>{const _0x1b7021=_0x221c4f['markers']['get']('revision:'+_0x1f7315['id']),_0x2a0665=_0x221c4f['markers']['get']('revision:'+_0x214a27['id']);return _0x1b7021['start']['isBefore'](_0x2a0665['start'])?-0x1:_0x1b7021['start']['isAfter'](_0x2a0665['start'])?0x1:_0x1b7021['end']['isBefore'](_0x2a0665['end'])?-0x1:_0x1b7021['end']['isAfter'](_0x2a0665['end'])?0x1:'add'===_0x1f7315['type']?-0x1:0x1;}),{'root':_0x221c4f,'changes':_0x5ae28e};function _0x526803(_0x2af650,_0x21d104,_0x4077c5,_0x34db7d){const _0x535213=!!_0x285a76[_0x21d104][_0x2af650],_0x511aef=_0x535213?_0x285a76[_0x21d104][_0x2af650]['userId']:null,_0x53119a=_0x21d104===_0x285a76['length']-0x1,_0x4172f0=_0x6b3112[_0x2af650][0x0],_0x498eee=_0x2c3b27['isObject'](_0x285a76[_0x21d104]['item']);!_0x5d2ea4[_0x2af650]&&_0x535213?_0x5d2ea4[_0x2af650]={'start':_0x4077c5,'tapeItem':_0x285a76[_0x21d104],'userId':_0x511aef,'type':_0x2af650}:_0x5d2ea4[_0x2af650]&&!_0x535213?(_0x5d2ea4[_0x2af650]['end']=_0x4077c5,_0x14de55(_0x5d2ea4[_0x2af650]),_0x5d2ea4[_0x2af650]=null):_0x5d2ea4[_0x2af650]&&_0x535213&&_0x5d2ea4[_0x2af650]['userId']!==_0x511aef&&(_0x5d2ea4[_0x2af650]['end']=_0x4077c5,_0x4172f0&&_0x4172f0['userId']===_0x5d2ea4[_0x2af650]['userId']||_0x14de55(_0x5d2ea4[_0x2af650]),_0x5d2ea4[_0x2af650]={'start':_0x4077c5,'tapeItem':_0x285a76[_0x21d104],'userId':_0x511aef,'type':_0x2af650}),_0x5d2ea4[_0x2af650]&&_0x498eee&&('elementStart'!==_0x285a76[_0x21d104]['type']||_0x4172f0&&_0x4172f0['userId']===_0x511aef||_0x6b3112[_0x2af650]['unshift']({'userId':_0x511aef,'object':_0x285a76[_0x21d104]['item'],'change':_0x5d2ea4[_0x2af650]}),'elementEnd'===_0x285a76[_0x21d104]['type']&&_0x4172f0&&_0x4172f0['object']===_0x285a76[_0x21d104]['item']&&(_0x6b3112[_0x2af650]['shift'](),_0x5d2ea4[_0x2af650]=_0x4172f0['change'])),_0x5d2ea4[_0x2af650]&&_0x53119a&&(_0x5d2ea4[_0x2af650]['end']=_0x34db7d,_0x14de55(_0x5d2ea4[_0x2af650]),_0x5d2ea4[_0x2af650]=null);}function _0x14de55({start:_0x54eb55,end:_0x52142e,tapeItem:_0x4af49c,userId:_0x1b07e2,type:_0x40b1d7}){const _0x546bdc=_0x4af49c['item'],_0x5d45a7=_0x23bef9['schema']['isBlock'](_0x546bdc)&&!_0x23bef9['schema']['isLimit'](_0x546bdc),_0x49276e=_0x54eb55['nodeAfter']==_0x52142e['parent']&&_0x52142e['isAtStart'];if(_0x5d45a7&&_0x49276e)return;const _0x4b3524=_0x23bef9['createRange'](_0x54eb55,_0x52142e),_0x36818d=_0x33cd55['get'](_0x1b07e2),_0x2a3cb8=new G({'author':_0x36818d,'type':'isAdded'==_0x40b1d7||'isAddSuggestion'==_0x40b1d7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x40b1d7||'isRemoveSuggestion'==_0x40b1d7},'createdAt':new Date(),'rootName':_0x3618c9});_0x5ae28e['push'](_0x2a3cb8),_0x221c4f['markers']['set']('revision:'+_0x2a3cb8['id'],_0x4b3524);}function _0x1cf62a(_0x33d922,_0xdeb475){const _0x12558f=_0x33d922['getAttributes'](),_0x47a40c=_0xdeb475['getAttributes']();for(const _0xa7238b of _0x12558f){if(_0xa7238b[0x1]!==_0xdeb475['getAttribute'](_0xa7238b[0x0]))return!0x1;_0x47a40c['next']();}return _0x47a40c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x60914a=>{const _0x1a44eb=_0x60914a['markerName']['split'](':')[0x1],_0x2183d5=this['_getChangeFromId'](_0x1a44eb);if(!_0x2183d5)return null;const _0x12b046='add'==_0x2183d5['type']?'insertion':'deletion',_0x24802b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x12b046];return _0x2183d5['data']['isSuggestion']&&_0x24802b['push']('ck-suggestion-marker-'+_0x12b046+'-new'),this['activeChange']==_0x2183d5&&_0x24802b['push']('ck-suggestion-marker--active'),{'classes':_0x24802b,'attributes':{'data-change-id':_0x1a44eb}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5c2a9b=>{_0x5c2a9b['on']('element:pre',(_0x3c614b,_0x277f18,_0x38377c)=>{const _0x2a8a70=_0x277f18['viewItem']['getChild'](0x0);if(!_0x2a8a70||!_0x2a8a70['is']('element','code'))return;if(!_0x38377c['consumable']['consume'](_0x2a8a70,{'attributes':['vid_start','vid_end']}))return;const _0x4aa788=_0x277f18['modelRange']['start']['nodeAfter'];_0x38377c['writer']['setAttribute']('vid_start',_0x2a8a70['getAttribute']('vid_start'),_0x4aa788),_0x38377c['writer']['setAttribute']('vid_end',_0x2a8a70['getAttribute']('vid_end'),_0x4aa788);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xae337e=>{_0xae337e['on']('element',(_0x526eed,_0x5be237,_0x53617e)=>{if(!_0x53617e['consumable']['consume'](_0x5be237['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5be237['modelRange']['isCollapsed'])return;const _0x30dbef=_0x5be237['modelRange']['start']['nodeAfter'];_0x30dbef['hasAttribute']('vid_start')||_0x30dbef['hasAttribute']('vid')||(_0x53617e['writer']['setAttribute']('vid_start',_0x5be237['viewItem']['getAttribute']('vid_start'),_0x30dbef),_0x53617e['writer']['setAttribute']('vid_end',_0x5be237['viewItem']['getAttribute']('vid_end'),_0x30dbef));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xf58931=>_0xf58931['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5131f7,[,_0x3f6c6f])=>{['vid_start','vid_end','vid']['includes'](_0x3f6c6f)&&(_0x5131f7['return']=!0x0,_0x5131f7['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x464509=>{_0x464509['on']('attribute:vid',(_0x58d7db,_0x29624e,_0x151bc6)=>{if('\x20'!=_0x29624e['item']['data']||_0x29624e['item']['parent']['maxOffset']>0x1)return;if(!_0x151bc6['consumable']['consume'](_0x29624e['item'],_0x58d7db['name']))return;const _0x170574=_0x151bc6['writer'],_0x1ac5ab=_0x151bc6['mapper']['toViewRange'](_0x29624e['range']);_0x170574['wrap'](_0x1ac5ab,_0x170574['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xfe9f74){const _0x112b24=_0xfe9f74['plugins']['get']('RevisionViewer');return(_0xeba3ba,_0x41d6f9,_0x31898a)=>{const _0x1b47cc=_0x41d6f9['markerName']['split'](':')[0x1],_0x543629=_0x112b24['_getChangeFromId'](_0x1b47cc);if(!_0x543629)return null;const _0x1a4d7d='add'==_0x543629['type']?'split':'merge';if(!_0x31898a['consumable']['test'](_0x41d6f9['markerRange'],_0xeba3ba['name']))return;const _0x3284a4=_0x41d6f9['markerRange']['getWalker'](),_0xdcc039=_0x41d6f9['markerRange']['start'],_0x351c05=_0xfe9f74['model']['schema'];let _0x1f2662=null,_0xd00026=null,_0x59043f=!0x1,_0x555174=!0x1;for(const _0x56cbe5 of _0x3284a4){const _0x44e5ce=_0x56cbe5['item'];_0x59043f=_0x59043f||_0x351c05['isContent'](_0x44e5ce);const _0x362b89=_0x31898a['mapper']['toViewElement'](_0x44e5ce);if(_0x362b89&&_0x362b89['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56cbe5['type']&&(_0x351c05['isBlock'](_0x44e5ce)&&!_0x351c05['isLimit'](_0x44e5ce)&&(_0x44e5ce['nextSibling']||_0xdcc039['isAtEnd']?_0x1f2662&&_0x1f2662['parent']==_0x44e5ce||(_0x1f2662=_0x44e5ce,_0x290f7c(_0x56cbe5['previousPosition']),_0x555174=!0x0):_0xd00026=_0xd00026||_0x56cbe5['previousPosition']));}function _0x290f7c(_0x3da93b){const _0x16696e=_0x31898a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a4d7d}),_0x237775=_0x31898a['mapper']['toViewPosition'](_0x3da93b);_0x543629['data']['isSuggestion']&&_0x31898a['writer']['addClass']('ck-suggestion-marker-'+_0x1a4d7d+'-new',_0x16696e),_0x112b24['activeChange']==_0x543629&&_0x31898a['writer']['addClass']('ck-suggestion-marker--active',_0x16696e),_0x31898a['writer']['insert'](_0x237775,_0x16696e),_0x31898a['mapper']['bindElementToMarker'](_0x16696e,_0x41d6f9['markerName']);}_0x59043f||_0x555174||!_0xd00026||_0x290f7c(_0xd00026);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x30dee1,_0x14f9ab,_0x378a8f)=>{const _0x2d0b32=_0x378a8f['mapper']['markerNameToElements'](_0x14f9ab['markerName']);if(_0x2d0b32){for(const _0x4597a7 of _0x2d0b32)(_0x4597a7['hasClass']('ck-suggestion-marker-split')||_0x4597a7['hasClass']('ck-suggestion-marker-merge'))&&(_0x378a8f['mapper']['unbindElementFromMarkerName'](_0x4597a7,_0x14f9ab['markerName']),_0x378a8f['writer']['remove'](_0x4597a7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3f82cd,_0x1306a5,_0x38827e)=>{const _0x55a7bf=_0x1306a5['markerName']['split'](':')[0x1],_0x2b2279=this['_getChangeFromId'](_0x55a7bf);if(!_0x2b2279)return null;const _0x3c84c7='add'==_0x2b2279['type']?'split':'merge';if(_0x38827e['consumable']['test'](_0x1306a5['markerRange'],_0x3f82cd['name']))for(const _0x2a6625 of _0x1306a5['markerRange']['getItems']()){if(!_0x2a6625['is']('element','softBreak'))continue;const _0x111b03=_0x38827e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c84c7}),_0x4d3502=_0x38827e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2a6625));_0x2b2279['data']['isSuggestion']&&_0x38827e['writer']['addClass']('ck-suggestion-marker-'+_0x3c84c7+'-new',_0x111b03),this['activeChange']==_0x2b2279&&_0x38827e['writer']['addClass']('ck-suggestion-marker--active',_0x111b03),_0x38827e['writer']['insert'](_0x4d3502,_0x111b03),_0x38827e['mapper']['bindElementToMarker'](_0x111b03,_0x1306a5['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3c171b=>{for(const _0x50ecd1 of this['editor']['model']['document']['getRootNames']()){const _0x2e8cc9=this['editor']['model']['document']['getRoot'](_0x50ecd1),_0x70585b=this['editor']['editing']['view']['document']['getRoot'](_0x50ecd1);if(_0x70585b){const _0xdc4697=_0x2e8cc9['getAttribute']('revisionHistoryAttachChange');if(_0x3c171b['removeAttribute']('data-change-id',_0x70585b),_0x3c171b['removeClass']('ck-revision-history-root-add',_0x70585b),_0x3c171b['removeClass']('ck-revision-history-root-remove',_0x70585b),_0x3c171b['removeClass']('ck-revision-history-root--active',_0x70585b),_0xdc4697){const _0x13c4e4=this['_getChangeFromId'](_0xdc4697);if(!_0x13c4e4)return null;_0x3c171b['setAttribute']('data-change-id',_0xdc4697,_0x70585b),_0x3c171b['addClass']('ck-revision-history-root-'+_0x13c4e4['type'],_0x70585b),this['activeChange']==_0x13c4e4&&_0x3c171b['addClass']('ck-revision-history-root--active',_0x70585b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3f4326=>'revision-comment:'+_0x3f4326,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3b5c58=>'revision-suggestion:'+_0x3b5c58,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2ae2cf=>({'name':'suggestion:'+_0x2ae2cf,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x357720=>{const _0x590122=_0x357720['markerName']['split'](':')[0x1];return'insertion'!=_0x590122&&'deletion'!=_0x590122?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x590122]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2dc5c4,_0x17171d,_0x211044)=>{const _0xaa74d3=_0x211044['mapper']['markerNameToElements'](_0x17171d['markerName']);if(_0xaa74d3){for(const _0x3be692 of _0xaa74d3)_0x3be692['is']('uiElement')&&(_0x211044['mapper']['unbindElementFromMarkerName'](_0x3be692,_0x17171d['markerName']),_0x211044['writer']['remove'](_0x3be692));}},{'priority':'high'});}['_getChangeFromId'](_0x16292b){return this['_changeIdToChange']['get'](_0x16292b);}['_getViewForChange'](_0x470ff0){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x470ff0),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x143ffc,_0x33be03,_0x4ffee8,_0x108457)=>{_0x108457&&this['_balloon']['remove'](_0x108457),_0x4ffee8&&(this['_balloon']['add']({'view':_0x4ffee8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5db4d9=this['editor']['editing'],_0xc24d66=this['_getChangeFromId'](_0x4ffee8['changeId']);let _0x1a2586;if(_0xc24d66['data']['isOnRoot']){const _0x54f073=_0x5db4d9['view']['getDomRoot'](_0xc24d66['rootName']);_0x1a2586=Array['from'](_0x54f073['getClientRects']());}else{const _0x28c6ce=this['editor']['model']['markers']['get']('revision:'+_0x4ffee8['changeId']);_0x1a2586=Array['from'](_0x5db4d9['mapper']['markerNameToElements'](_0x28c6ce['name']))['map'](_0x5941c3=>_0x5db4d9['view']['domConverter']['mapViewToDom'](_0x5941c3))['map'](_0x3d859a=>Array['from'](_0x3d859a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1a2586[0x0];return _0x1a2586['find'](_0x27394e=>_0x27394e['top']-0x3<=this['_activeViewTarget']['y']&&_0x27394e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x27394e['left']-0x3<=this['_activeViewTarget']['x']&&_0x27394e['right']+0x3>=this['_activeViewTarget']['x'])||_0x1a2586[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1835e5,_0x2675df,_0x119d27,_0x56c31e)=>{this['activeView']=_0x119d27?this['_getViewForChange'](_0x119d27):null,this['editor']['model']['change'](()=>{const _0xf0033a=this['editor']['editing'];_0x56c31e&&(_0x56c31e['data']['isOnRoot']?_0xf0033a['view']['change'](_0x248c14=>{_0x248c14['removeClass']('ck-revision-history-root--active',_0xf0033a['view']['document']['getRoot'](_0x56c31e['rootName']));}):_0xf0033a['reconvertMarker']('revision:'+_0x56c31e['id'])),_0x119d27&&(_0x119d27['data']['isOnRoot']?_0xf0033a['view']['change'](_0x577511=>{_0x577511['addClass']('ck-revision-history-root--active',_0xf0033a['view']['document']['getRoot'](_0x119d27['rootName']));}):_0xf0033a['reconvertMarker']('revision:'+_0x119d27['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xcfbf11,_0x25da03)=>{if(this['activeChange'])return;const _0x359221=this['_findChangeIdFromDomTarget'](_0x25da03['target']),_0x980ed0=this['_changeIdToChange']['get'](_0x359221);_0x980ed0?(this['_activeViewTarget']={'x':_0x25da03['domEvent']['x'],'y':_0x25da03['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x980ed0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x27da35,_0x164de3)=>{const _0x314d9a=this['_findChangeIdFromDomTarget'](_0x164de3['target']),_0x11dc49=this['_changeIdToChange']['get'](_0x314d9a);_0x11dc49?(this['_activeViewTarget']={'x':_0x164de3['domEvent']['x'],'y':_0x164de3['domEvent']['y']},_0x11dc49===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x11dc49):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x42ad15){do{const _0x214ed8=_0x42ad15['getAttribute']('data-change-id');if(_0x214ed8)return _0x214ed8;_0x42ad15=_0x42ad15['parent'];}while(_0x42ad15);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x48140e=>{for(const _0x3262e8 of this['editor']['model']['markers'])_0x48140e['removeMarker'](_0x3262e8);});}}function Q(_0x4a3937,_0x122286){return(_0x5931a7,_0x5ec875,_0x3cd687)=>{if(!_0x3cd687['consumable']['test'](_0x5ec875['markerRange'],_0x5931a7['name']))return;const _0x537678=_0x5ec875['markerRange']['getWalker'](),_0x1e23cb=_0x5ec875['markerRange']['start'],_0x500a30=_0x4a3937['model']['schema'];let _0x501da8=null,_0x199b4f=null,_0x5b7f0d=!0x1,_0x285527=!0x1;for(const _0x3b44e5 of _0x537678){const _0x1ad061=_0x3b44e5['item'];_0x5b7f0d=_0x5b7f0d||_0x500a30['isContent'](_0x1ad061);const _0x57267f=_0x3cd687['mapper']['toViewElement'](_0x1ad061);if(_0x57267f&&_0x57267f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3b44e5['type']&&(_0x500a30['isBlock'](_0x1ad061)&&!_0x500a30['isLimit'](_0x1ad061)&&(_0x1ad061['nextSibling']||_0x1e23cb['isAtEnd']?_0x501da8&&_0x501da8['parent']==_0x1ad061||(_0x501da8=_0x1ad061,_0x21433b(_0x3b44e5['previousPosition']),_0x285527=!0x0):_0x199b4f=_0x199b4f||_0x3b44e5['previousPosition']));}function _0x21433b(_0x171e50){const _0x140f6f=_0x3cd687['mapper']['toViewPosition'](_0x171e50),_0x3c8922=_0x3cd687['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x122286});_0x3cd687['writer']['insert'](_0x140f6f,_0x3c8922),_0x3cd687['mapper']['bindElementToMarker'](_0x3c8922,_0x5ec875['markerName']);}_0x5b7f0d||_0x285527||!_0x199b4f||_0x21433b(_0x199b4f);};}class nt extends _0x2f8488{constructor(_0x3a7ade){super(_0x3a7ade);const _0x1d98c7=_0x3a7ade['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x1d98c7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1d98c7,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x59a101=this['editor'],_0x24938d=_0x59a101['plugins']['get'](l),_0x347f5d=_0x24938d['isReady']?_0x24938d['diff']['newRevisionId']:null;_0x59a101['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x347f5d);}['refresh'](){const {isReady:_0x26ac5a,isEnabled:_0x54d3a6,repository:_0x43d83a,diff:_0x1b1d9f}=this['editor']['plugins']['get'](l),_0x5520d8=_0x1b1d9f&&_0x43d83a['getLaterVisibleRevision'](_0x1b1d9f['newRevisionId']);this['isEnabled']=_0x26ac5a&&_0x54d3a6&&Boolean(_0x5520d8);}}class ot extends _0x2f8488{['_step'];constructor(_0x519a0b,{direction:_0x21e67d}){super(_0x519a0b);const _0x10f9b4=_0x519a0b['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x21e67d?0x1:-0x1,this['listenTo'](_0x10f9b4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10f9b4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x10f9b4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5b151c=this['editor'],_0x382803=_0x5b151c['plugins']['get'](l),{isNavigationMode:_0x5aab20,currentChangeNumber:_0x317d38}=_0x382803;let _0x3cd235;if(_0x382803['activeChange']=_0x5aab20?_0x382803['diff']['changes']['get'](_0x317d38+this['_step']):_0x382803['diff']['changes']['first'],_0x382803['activeChange']['data']['isOnRoot'])_0x3cd235=_0x5b151c['editing']['view']['getDomRoot'](_0x382803['activeChange']['rootName']);else{const _0x352233=_0x5b151c['model']['markers']['get']('revision:'+_0x382803['activeChange']['id']);_0x3cd235=_0x2e5cd7(_0x5b151c['editing'],_0x352233);}_0xb54d25({'target':_0x3cd235,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x37cb17,currentChangeNumber:_0x541202,numberOfChanges:_0x5a6b3d,isReady:_0x4c8dfc,isEnabled:_0x329f3d}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x329f3d&&_0x4c8dfc&&_0x5a6b3d)&&(!_0x37cb17||(0x1===this['_step']?_0x541202<_0x5a6b3d-0x1:_0x541202>0x0));}}class pi extends _0x6fccc7{constructor(_0x35dbb3){super(_0x35dbb3);const _0x347ff1=this['bindTemplate'],_0xc432e6=new _0x7ab364(_0x35dbb3),_0x396834=new _0x7ab364(_0x35dbb3);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',(_0x26d3f3,_0x4fae6e)=>_0x26d3f3&&_0x4fae6e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4059ad,_0x1b7043,_0x2ccca6,_0x307467)=>{if(!_0x4059ad)return R(_0x35dbb3,'Loading...');if(!_0x2ccca6)return R(_0x35dbb3,'No\x20changes');const _0x253f0f=R(_0x35dbb3,'NUMBER_OF_CHANGES',_0x2ccca6);return _0x307467?R(_0x35dbb3,'X_OF_Y_CHANGES',[_0x1b7043+0x1,_0x2ccca6]):_0x253f0f;}),_0xc432e6['set']({'label':R(_0x35dbb3,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xcdae82}),_0x396834['set']({'label':R(_0x35dbb3,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4cdf29}),_0xc432e6['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x396834['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xc432e6['on']('execute',()=>this['fire']('execute','backward')),_0x396834['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',_0x347ff1['if']('_isStatusLabelVisible','ck-hidden',_0x40033a=>!_0x40033a)]},'children':[{'text':_0x347ff1['to']('isNavigationMode',_0x3dbb35=>_0x3dbb35?R(_0x35dbb3,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x35dbb3,'Total')+':\x20')}]},{'text':_0x347ff1['to']('_statusText')}]},new _0x5c0ae1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xc432e6,_0x396834]}]});}}const ge='ck-editor__editable__loading-overlay';class fi extends _0x278e34{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4ab4f7=this['editor']['editing']['view'];_0x4ab4f7['change'](_0x3291b4=>{for(const _0xbbe3a of _0x4ab4f7['document']['roots'])_0x3291b4['addClass'](ge,_0xbbe3a);});}['hide'](){const _0x24c85e=this['editor']['editing']['view'];_0x24c85e['change'](_0x4a4531=>{for(const _0xea38af of _0x24c85e['document']['roots'])_0x4a4531['removeClass'](ge,_0xea38af);});}}class u extends _0x278e34{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,fi];}['init'](){const _0x2d4ac5=this['editor'],_0x15ab37=_0x2d4ac5['plugins']['get'](l),_0x36671b=_0x2d4ac5['plugins']['get'](fi);_0x2d4ac5['ui']['componentFactory']['add']('exitToEditing',_0x54a2f9=>{const _0x4383d8=new _0x7ab364(_0x54a2f9);return _0x4383d8['set']({'label':R(_0x54a2f9,'Back\x20to\x20editing'),'icon':_0x5456c4,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4383d8,'execute',()=>{_0x2d4ac5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4383d8;}),_0x2d4ac5['ui']['componentFactory']['add']('restoreRevision',_0x10ff2f=>{const _0x208bb1=new _0x7ab364(_0x10ff2f);return _0x208bb1['set']({'label':R(_0x10ff2f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x208bb1['bind']('isEnabled')['to'](_0x2d4ac5['commands']['get']('restoreRevision')),this['listenTo'](_0x208bb1,'execute',()=>_0x2d4ac5['execute']('restoreRevision')),_0x208bb1;}),_0x2d4ac5['ui']['componentFactory']['add']('changesNavigation',_0x4a8654=>{const _0x3eab3d=new pi(_0x4a8654),_0x38c5e8=_0x2d4ac5['commands']['get']('showPreviousChange'),_0x2bfc5f=_0x2d4ac5['commands']['get']('showNextChange');return _0x3eab3d['bind']('isBackwardNavigationEnabled')['to'](_0x38c5e8,'isEnabled'),_0x3eab3d['bind']('isForwardNavigationEnabled')['to'](_0x2bfc5f,'isEnabled'),_0x3eab3d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x15ab37),this['listenTo'](_0x3eab3d,'execute',(_0x1bbfb7,_0x1e084a)=>{_0x2d4ac5['execute']('forward'===_0x1e084a?'showNextChange':'showPreviousChange');}),_0x3eab3d;}),_0x36671b['show'](),_0x15ab37['on']('change:isReady',(_0x4eeb9b,_0x4ee00b,_0x5e643a)=>{_0x5e643a?_0x36671b['hide']():_0x36671b['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0xb6b525,_0x4db335){super(_0xb6b525,_0x4db335);const _0x20b1dd=this['bindTemplate'];this['set']({'label':R(_0xb6b525,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xb6b525,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x20b1dd['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5202c0=this['fieldView']['element'];this['_tooltipString']=_0x5202c0['scrollWidth']>_0x5202c0['clientWidth']&&_0x5202c0['value']||'';}}class vi extends _0x6fccc7{constructor(_0x1ebc5d,_0x4120da,_0x5a9d5c){super(_0x1ebc5d);const _0x191db3=new _0x2d07b2();_0x191db3['set']({'content':_0x2aad10,'viewBox':'0\x200\x2011\x2010'});const _0x1ba140=['ck','ck-revision-history-sidebar__revision-author'];_0x5a9d5c&&_0x1ba140['push']('ck-revision-history-sidebar__revision-author_creator');const _0x30afda=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x1ebc5d,_0x5a9d5c?'Revision\x20creator':'Revision\x20author')},'children':[_0x191db3,_0x4120da['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ba140},'children':_0x30afda});}}function mi(_0x24967e,_0x6501e){const _0x4ee764=_0x24967e['bindTemplate'],_0x5db953=_0x24967e['locale'],_0x5057c6=_0x135259(_0x5db953);_0x5057c6['panelPosition']='sw';const _0x581eca=function(_0x18a40c,_0x440e32){const _0x49311d=function(_0x37a11f,_0x12629b){const _0x48b628=_0x37a11f['locale'],_0x2ddd5f={'Compare\x20against\x20selected':R(_0x48b628,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x48b628,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x48b628,'Restore\x20this\x20revision')};return _0x12629b['map'](_0x15f172=>{const _0x1ea95b=_0x2ddd5f[_0x15f172['name']];return _0x1ea95b&&_0x1ea95b!==_0x15f172['name']&&(_0x15f172['name']=_0x1ea95b),_0x15f172;});}(_0x18a40c,_0x440e32),_0x55a62d=new _0x42f581();for(const _0x1b8dcf of _0x49311d){const _0x33a21c={'type':'button','model':new to({'label':_0x1b8dcf['name'],'class':_0x1b8dcf['class'],'withText':!0x0,'role':'menuitem','_action':_0x1b8dcf['action']})};_0x33a21c['model']['bind']('isEnabled')['to'](_0x18a40c,'isActionsDropdownOpen',_0x28676f=>'function'!=typeof _0x1b8dcf['isEnabled']||(!_0x28676f||_0x1b8dcf['isEnabled'](_0x18a40c))),_0x55a62d['add'](_0x33a21c);}return _0x55a62d;}(_0x24967e,_0x6501e);return _0x24967e['bind']('isActionsDropdownOpen')['to'](_0x5057c6,'isOpen'),_0x5057c6['buttonView']['set']({'label':R(_0x5db953,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ce8ff}),_0x5057c6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4ee764['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4ee764['to'](_0x30b633=>_0x30b633['stopPropagation']())}}),_0x5057c6['on']('execute',_0x2654cd=>{_0x24967e['isReady']&&'function'==typeof _0x2654cd['source']['_action']&&_0x2654cd['source']['_action'](_0x24967e);}),_0x4cc072(_0x5057c6,_0x581eca,{'role':'menu'}),_0x5057c6['listenTo'](_0x24967e,'change:isActionsDropdownOpen',(_0x23e736,_0x129e44,_0x119dd4)=>{if(_0x119dd4)for(const _0x115b00 of _0x5057c6['listView']['items']){const _0x294690=_0x115b00['children']['first'],_0x2975b9=_0x6501e['find'](_0x582403=>_0x582403['action']===_0x294690['_action'])['isVisible'];_0x115b00['isVisible']=void 0x0===_0x2975b9||_0x2975b9(_0x24967e);}}),_0x5057c6;}class ki extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x223ec6,uid as _0x189557,Collection as _0x1e8ea3,logWarning as _0x43e3aa,FocusTracker as _0x408ec4,KeystrokeHandler as _0x4d84bf,scrollViewportToShowTarget as _0x1108f0,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x557c8b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x240ca5,set as _0xbdbba6,unset as _0x110887,isEqual as _0x2ea464}from'es-toolkit/compat';import{Plugin as _0xb2d8c8,PendingActions as _0x5e678a,Command as _0xd0c377,ElementApiMixin as _0x14c85d,Editor as _0x502371}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3db46c,getMarkerDomElement as _0x195504,ConfirmMixin as _0x2ed6a5,sanitizeEditorConfig as _0x5ea847}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x598a4b,ViewAttributeElement as _0x4e70b8,ViewEmptyElement as _0x2f1121,ViewRawElement as _0x4d9c6a,ViewUIElement as _0x35e088,ViewDocumentFragment as _0x359ce1,ViewText as _0x200728,ViewElement as _0x5ff874,ModelElement as _0x429deb,ModelRange as _0x5d129e,ModelPosition as _0x569535,ModelDocumentFragment as _0x24ebb7,ModelText as _0x4f2aa1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x378803,IconChevronUp as _0x2dab41,IconChevronDown as _0x141731,IconUndo as _0x1f7494,IconUser as _0xfa7be3,IconThreeVerticalDots as _0x2f6449}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x3f52ee,View as _0x2d670e,submitHandler as _0x973ae7,LabeledFieldView as ti,createLabeledInputText as _0x84c75d,createDropdown as _0x455c58,ListView as _0x174095,ListItemView as _0x2be811,ButtonView as _0xbbf7fb,MenuBarMenuView as _0x3d1a00,MenuBarMenuListView as _0x7b6454,MenuBarMenuListItemView as _0x28b6aa,MenuBarMenuListItemButtonView as _0x16e359,ContextualBalloon as _0x1d58fa,ToolbarSeparatorView as _0x3df35a,IconView as _0x5dfca0,addListToDropdown as _0x3388f2,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x4fb2a1,StickyPanelView as _0x2fa7fc,ToolbarView as _0x5abd83,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x925bc5}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x223ec6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5db186){super(),this['id']=_0x5db186['id']||_0x189557(),this['creator']=_0x5db186['creator']||null,this['authors']=_0x5db186['authors']||[],this['diffData']=_0x5db186['diffData']||null,this['toVersion']=_0x5db186['toVersion']||0x0,this['fromVersion']=_0x5db186['fromVersion']||0x0,this['set']('name',_0x5db186['name']||''),this['set']('createdAt',_0x5db186['createdAt']||new Date()),this['set']('attributes',_0x5db186['attributes']||{});}['setName'](_0x5469b4){this['_update']({'name':_0x5469b4});}['setAttribute'](_0xc08764,_0x1b0ebd){const _0x35a550=_0x240ca5(this['attributes']);_0xbdbba6(_0x35a550,_0xc08764,_0x1b0ebd),this['_update']({'attributes':_0x35a550});}['removeAttribute'](_0x5cd58b){const _0x4742fa=_0x240ca5(this['attributes']);_0x110887(_0x4742fa,_0x5cd58b),this['_update']({'attributes':_0x4742fa});}['_update'](_0x5614af,_0x140969=!0x1){let _0x2305a6=!0x1;const _0x440647={'id':this['id']},_0x7fe614=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xda0629 of _0x7fe614){const _0x465871=_0x5614af[_0xda0629];void 0x0!==_0x465871&&_0x465871!==this[_0xda0629]&&(this[_0xda0629]=_0x465871,_0x440647[_0xda0629]=_0x465871,_0x2305a6=!0x0);}_0x2305a6&&(_0x440647['authors']&&(_0x440647['authorsIds']=_0x440647['authors']['map'](_0x25ab3d=>_0x25ab3d['id']),delete _0x440647['authors']),this['fire']('_update',_0x440647,_0x140969));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xc0056d=>_0xc0056d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xb2d8c8{['_revisions'];static get['requires'](){return[_0x3db46c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x24c0b4){super(_0x24c0b4),this['_revisions']=new _0x1e8ea3();}['afterInit'](){!async function(_0x16a5b7){const _0x5a23b7=_0x15aa01([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x58d088=0xeb829,_0x31432b=0x7374585f,_0x2de9a7=0x73732b1f^_0x31432b,_0xee042e=window[_0x15aa01([0x44,0x61,0x74,0x65])][_0x15aa01([0x6e,0x6f,0x77])](),_0x2dc18c=_0x16a5b7[_0x15aa01([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x463d6e=new window[(_0x15aa01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4540fd=>{_0x2dc18c[_0x15aa01([0x6f,0x6e,0x63,0x65])](_0x15aa01([0x72,0x65,0x61,0x64,0x79]),_0x4540fd);}),_0x257d07={[_0x15aa01([0x6b,0x74,0x79])]:_0x15aa01([0x45,0x43]),[_0x15aa01([0x75,0x73,0x65])]:_0x15aa01([0x73,0x69,0x67]),[_0x15aa01([0x63,0x72,0x76])]:_0x15aa01([0x50,0x2d,0x32,0x35,0x36]),[_0x15aa01([0x78])]:_0x15aa01([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]),[_0x15aa01([0x79])]:_0x15aa01([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]),[_0x15aa01([0x61,0x6c,0x67])]:_0x15aa01([0x45,0x53,0x32,0x35,0x36])},_0x5eabfe=_0x2dc18c[_0x15aa01([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15aa01([0x67,0x65,0x74])](_0x15aa01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2de81d(){let _0x176df4,_0x2cb472=null,_0x2f87c9=null;try{if(_0x5eabfe==_0x15aa01([0x47,0x50,0x4c]))return _0x15aa01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x176df4=_0x4f33ed(),!_0x176df4)return _0x15aa01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x176df4[_0x15aa01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f87c9=_0x54e98f(_0x176df4[_0x15aa01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x176df4[_0x15aa01([0x6a,0x74,0x69])])),await _0x5e37f2()?_0x5a02fd()?_0x3a4eda()?_0x15aa01([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x231d0b()?(_0x176df4[_0x15aa01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15aa01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2cb472=_0x5d561f(_0x15aa01([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x176df4[_0x15aa01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15aa01([0x74,0x72,0x69,0x61,0x6c])&&(_0x2cb472=_0x5d561f(_0x15aa01([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c3429()):_0x15aa01([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15aa01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15aa01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15aa01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a4eda(){const _0xfb07d=[_0x15aa01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15aa01([0x74,0x72,0x69,0x61,0x6c])][_0x15aa01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x176df4[_0x15aa01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xee042e/0x3e8:0xe10*_0x2de9a7;return _0x176df4[_0x15aa01([0x65,0x78,0x70])]<_0xfb07d;}function _0x5a02fd(){const _0x2a08aa=_0x176df4[_0x15aa01([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2a08aa)return!0x1;if(_0x2a08aa[_0x15aa01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15aa01([0x2a])))return!0x0;if(_0x2a08aa[_0x15aa01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15aa01([0x52,0x48])))return!0x0;if(_0x2a08aa[_0x15aa01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15aa01([0x52,0x52,0x48]))){if(_0x190a31())return!0x0;if(_0x2697d4()||_0x391d7a())return!0x0;}return!0x1;}function _0x231d0b(){const _0x473bba=_0x176df4[_0x15aa01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x473bba||0x0==_0x473bba[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x476fda}=new URL(window[_0x15aa01([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x473bba[_0x15aa01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476fda))return!0x0;const _0x120994=_0x476fda[_0x15aa01([0x73,0x70,0x6c,0x69,0x74])](_0x15aa01([0x2e]));return _0x473bba[_0x15aa01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xee9bfd=>_0xee9bfd[_0x15aa01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15aa01([0x2a])))[_0x15aa01([0x6d,0x61,0x70])](_0x1c8283=>_0x1c8283[_0x15aa01([0x73,0x70,0x6c,0x69,0x74])](_0x15aa01([0x2e])))[_0x15aa01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5df455=>_0x5df455[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x120994[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15aa01([0x6d,0x61,0x70])](_0x415583=>Array(_0x120994[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x415583[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15aa01([0x66,0x69,0x6c,0x6c])](_0x415583[0x0]===_0x15aa01([0x2a])?_0x15aa01([0x2a]):'')[_0x15aa01([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x415583))[_0x15aa01([0x73,0x6f,0x6d,0x65])](_0x1552a6=>_0x120994[_0x15aa01([0x65,0x76,0x65,0x72,0x79])]((_0x49404a,_0x23f101)=>_0x1552a6[_0x23f101]===_0x49404a||_0x1552a6[_0x23f101]===_0x15aa01([0x2a])));}function _0x5c3429(){return _0x2cb472&&_0x2f87c9?new window[(_0x15aa01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e6388,_0x50867a)=>{_0x2cb472[_0x15aa01([0x74,0x68,0x65,0x6e])](_0x2e6388,_0x50867a),_0x2f87c9[_0x15aa01([0x74,0x68,0x65,0x6e])](_0x2f6db3=>{_0x2f6db3!=_0x15aa01([0x56,0x61,0x6c,0x69,0x64])&&_0x2e6388(_0x2f6db3);},_0x50867a);}):_0x2cb472||_0x2f87c9||_0x15aa01([0x56,0x61,0x6c,0x69,0x64]);}}function _0x54e98f(_0x16f3cc,_0x55f40d){return new window[(_0x15aa01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x144886=>{if(_0x1429f8())return _0x144886(_0x15aa01([0x56,0x61,0x6c,0x69,0x64]));_0x59929a(),_0x2dc18c[_0x15aa01([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15aa01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x504ccb=!0x1;const _0x3a98f2=_0x189557();function _0x3fc9fe(_0x49d0ce){return!!_0x49d0ce&&(typeof _0x49d0ce===_0x15aa01([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49d0ce===_0x15aa01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49d0ce[_0x15aa01([0x74,0x68,0x65,0x6e])]===_0x15aa01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49d0ce[_0x15aa01([0x63,0x61,0x74,0x63,0x68])]===_0x15aa01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b80b4(_0x1eb1dd){_0x5b0e33(_0x1eb1dd)[_0x15aa01([0x74,0x68,0x65,0x6e])](_0x21d599=>{if(!_0x21d599||_0x21d599[_0x15aa01([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15aa01([0x6f,0x6b]))return _0x15aa01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4eee23(_0x4de802(_0x3a98f2+_0x55f40d))!=_0x21d599[_0x15aa01([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15aa01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15aa01([0x56,0x61,0x6c,0x69,0x64]);})[_0x15aa01([0x74,0x68,0x65,0x6e])](_0x25e85c=>(_0x32c5de(),_0x25e85c),()=>{const _0x3f7d59=_0x465c48();return null==_0x3f7d59?(_0x32c5de(),_0x15aa01([0x56,0x61,0x6c,0x69,0x64])):_0x15aa01(_0xee042e-_0x3f7d59>(0x5778dc5f^_0x31432b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15aa01([0x74,0x68,0x65,0x6e])](_0x144886)[_0x15aa01([0x63,0x61,0x74,0x63,0x68])](()=>{_0x144886(_0x15aa01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4157a6=0x7342b6df^_0x31432b;function _0x32c5de(){const _0x22b8d5=_0x15aa01([0x6c,0x6c,0x63,0x74,0x2d])+_0x4eee23(_0x4de802(_0x16f3cc)),_0x4b857f=_0x5c003d(_0x4eee23(window[_0x15aa01([0x4d,0x61,0x74,0x68])][_0x15aa01([0x63,0x65,0x69,0x6c])](_0xee042e/_0x4157a6)));window[_0x15aa01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15aa01([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22b8d5,_0x4b857f);}function _0x465c48(){const _0x546a29=_0x15aa01([0x6c,0x6c,0x63,0x74,0x2d])+_0x4eee23(_0x4de802(_0x16f3cc)),_0x2a90fe=window[_0x15aa01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15aa01([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x546a29);return _0x2a90fe?window[_0x15aa01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c003d(_0x2a90fe),0x10)*_0x4157a6:null;}function _0x5b0e33(_0x2ed098){return new window[(_0x15aa01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x379f4e,_0xc872b9)=>{_0x2ed098[_0x15aa01([0x74,0x68,0x65,0x6e])](_0x379f4e,_0xc872b9),window[_0x15aa01([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc872b9,0x73758c9f^_0x31432b);});}}_0x2dc18c[_0x15aa01([0x6f,0x6e])](_0x15aa01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x160226,_0x2ddc73)=>{if(_0x2ddc73[0x0]!=_0x16f3cc)return _0x144886(_0x15aa01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ddc73[0x1]={..._0x2ddc73[0x1],[_0x15aa01([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a98f2};},{[_0x15aa01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15aa01([0x68,0x69,0x67,0x68])}),_0x2dc18c[_0x15aa01([0x6f,0x6e])](_0x15aa01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xdd1ab8=>{_0x3fc9fe(_0xdd1ab8[_0x15aa01([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x504ccb=!0x0,_0x2b80b4(_0xdd1ab8[_0x15aa01([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15aa01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15aa01([0x6c,0x6f,0x77])}),_0x463d6e[_0x15aa01([0x74,0x68,0x65,0x6e])](()=>{_0x504ccb||_0x144886(_0x15aa01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1429f8(){return _0x2dc18c[_0x15aa01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15aa01([0x76,0x69,0x65,0x77])][_0x15aa01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15aa01([0x61,0x75,0x74,0x6f]);}function _0x59929a(){_0x2dc18c[_0x15aa01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15aa01([0x76,0x69,0x65,0x77])][_0x15aa01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15aa01([0x61,0x75,0x74,0x6f]);}}function _0x5d561f(_0x243bcc){const _0x2789bd=[new window[(_0x15aa01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f778d=>setTimeout(_0x3f778d,0x737d6693^_0x31432b)),_0x463d6e[_0x15aa01([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15aa01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x179418=>{const _0x54d7b2=0x73745858^_0x31432b,_0xd5b515=_0x16a5b7[_0x15aa01([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x57ee23(){_0xd5b515[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x54d7b2&&_0x179418();}_0x57ee23(),_0xd5b515[_0x15aa01([0x6f,0x6e])](_0x15aa01([0x61,0x64,0x64]),_0x57ee23);})),new window[(_0x15aa01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x75ee47=>{function _0x4c45cc(){for(const _0x5bc9c2 in window)if(window[_0x15aa01([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x15aa01([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5bc9c2))&&window[_0x5bc9c2]==_0x58d088)return _0x75ee47();_0x2dc18c[_0x15aa01([0x73,0x74,0x61,0x74,0x65])]!=_0x15aa01([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x15aa01([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c45cc,0x73744bd7^_0x31432b);}_0x5b761c(_0x15aa01([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4c45cc();})];return window[_0x15aa01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15aa01([0x72,0x61,0x63,0x65])](_0x2789bd)[_0x15aa01([0x74,0x68,0x65,0x6e])](()=>_0x243bcc);}async function _0x47838b(){if(await _0x463d6e,_0x5b761c(_0x15aa01([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x43d2a6=_0x16a5b7[_0x15aa01([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3c1bf3=_0x16a5b7[_0x15aa01([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])](_0x43d2a6[_0x15aa01([0x69,0x64])]),_0x1a427b=_0x10bf11(_0x15aa01([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1a427b[_0x15aa01([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x43d2a6['id'],_0x3c1bf3?_0x3c1bf3['id']:null,!0x0),_0x1a427b[_0x15aa01([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x15aa01([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1a427b[_0x15aa01([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1a427b[_0x15aa01([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xab2e24,void(_0x1a427b[_0x15aa01([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xab2e24);}if(_0x5b761c(_0x15aa01([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xd21c74=_0x10bf11(_0x15aa01([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xd21c74[_0x15aa01([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x15aa01([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xd21c74[_0x15aa01([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xd21c74[_0x15aa01([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xab2e24,_0xd21c74[_0x15aa01([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xab2e24;}_0x2dc18c[_0x15aa01([0x6d,0x6f,0x64,0x65,0x6c])][_0x15aa01([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xab2e24,_0x2dc18c[_0x15aa01([0x6d,0x6f,0x64,0x65,0x6c])][_0x15aa01([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xab2e24,_0x2dc18c[_0x15aa01([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15aa01([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x190a31(){return _0x5b761c(_0x15aa01([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x10bf11(_0x15aa01([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15aa01([0x73,0x74,0x61,0x74,0x65])]==_0x15aa01([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2697d4(){return _0x5b761c(_0x15aa01([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 _0x391d7a(){return _0x5b761c(_0x15aa01([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5d3040(_0x4c7d50){const _0x4a2839=_0x53c8f8();_0x2dc18c[_0x4a2839]=_0x15aa01([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])+_0x4c7d50,_0x4c7d50[_0x15aa01([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x15aa01([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x53c8f8()]=_0x58d088),_0x4c7d50!=_0x15aa01([0x56,0x61,0x6c,0x69,0x64])&&_0x47838b();}function _0x53c8f8(){const _0x1a01dd=window[_0x15aa01([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15aa01([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15aa01([0x6e,0x6f,0x77])]())[_0x15aa01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15aa01([0x2e]),'');let _0x43ad86=_0x15aa01([0x73]);for(let _0x3d71a0=0x0;_0x3d71a0<_0x1a01dd[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d71a0+=0x2){let _0x45b2fd=window[_0x15aa01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a01dd[_0x15aa01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d71a0,_0x3d71a0+0x2));_0x45b2fd>=_0x5a23b7[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45b2fd-=_0x5a23b7[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43ad86+=_0x5a23b7[_0x45b2fd];}return _0x43ad86;}function _0x4f33ed(){const _0x22ed74=_0x5eabfe[_0x15aa01([0x73,0x70,0x6c,0x69,0x74])](_0x15aa01([0x2e]));if(0x3!=_0x22ed74[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ab7bb(_0x22ed74[0x1]);function _0x4ab7bb(_0x3e067d){const _0x4bb8c7=_0x377898(_0x3e067d);return _0x4bb8c7&&_0x29d296()?_0x4bb8c7:null;function _0x29d296(){const _0x45ddc0=_0x4bb8c7[_0x15aa01([0x6a,0x74,0x69])],_0x385e00=window[_0x15aa01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45ddc0[_0x15aa01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45ddc0[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b6ad4={..._0x4bb8c7,[_0x15aa01([0x6a,0x74,0x69])]:_0x45ddc0[_0x15aa01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45ddc0[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b6ad4[_0x15aa01([0x76,0x63])],_0x4de802(_0x3b6ad4)==_0x385e00;}}}async function _0x5e37f2(){let _0x595de9=!0x0;try{const _0x2a5175=_0x5eabfe[_0x15aa01([0x73,0x70,0x6c,0x69,0x74])](_0x15aa01([0x2e])),[_0x48dd98,_0x221cbb,_0x3da191]=_0x2a5175;return _0x4d64bc(_0x48dd98),await _0x5336f5(_0x48dd98,_0x221cbb,_0x3da191),_0x595de9;}catch{return!0x1;}function _0x4d64bc(_0xb7f78a){const _0x5146c2=_0x377898(_0xb7f78a);_0x5146c2&&_0x5146c2[_0x15aa01([0x61,0x6c,0x67])]==_0x15aa01([0x45,0x53,0x32,0x35,0x36])||(_0x595de9=!0x1);}async function _0x5336f5(_0x163e52,_0x3c6a67,_0x53f0be){const _0x38cbf5=window[_0x15aa01([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15aa01([0x66,0x72,0x6f,0x6d])](_0x16b802(_0x53f0be),_0x2609eb=>_0x2609eb[_0x15aa01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x270095=new window[(_0x15aa01([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15aa01([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x163e52+_0x15aa01([0x2e])+_0x3c6a67),_0x23581d=window[_0x15aa01([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15aa01([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23581d)return;const _0xcc503c=await _0x23581d[_0x15aa01([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15aa01([0x6a,0x77,0x6b]),_0x257d07,{[_0x15aa01([0x6e,0x61,0x6d,0x65])]:_0x15aa01([0x45,0x43,0x44,0x53,0x41]),[_0x15aa01([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15aa01([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15aa01([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23581d[_0x15aa01([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15aa01([0x6e,0x61,0x6d,0x65])]:_0x15aa01([0x45,0x43,0x44,0x53,0x41]),[_0x15aa01([0x68,0x61,0x73,0x68])]:{[_0x15aa01([0x6e,0x61,0x6d,0x65])]:_0x15aa01([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xcc503c,_0x38cbf5,_0x270095)||(_0x595de9=!0x1);}}function _0x377898(_0x3f663c){return _0x3f663c[_0x15aa01([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15aa01([0x65,0x79]))?JSON[_0x15aa01([0x70,0x61,0x72,0x73,0x65])](_0x16b802(_0x3f663c)):null;}function _0x16b802(_0x85ce4e){return window[_0x15aa01([0x61,0x74,0x6f,0x62])](_0x85ce4e[_0x15aa01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15aa01([0x2b]))[_0x15aa01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15aa01([0x2f])));}function _0x4de802(_0x52494c){let _0x92f865=0x1505;function _0x441ab1(_0x6b9b53){for(let _0x1f8fe0=0x0;_0x1f8fe0<_0x6b9b53[_0x15aa01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f8fe0++){const _0x17eaa2=_0x6b9b53[_0x15aa01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f8fe0);_0x92f865=(_0x92f865<<0x5)+_0x92f865+_0x17eaa2,_0x92f865&=_0x92f865;}}function _0x36ffd1(_0x54833c){Array[_0x15aa01([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54833c)?_0x54833c[_0x15aa01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36ffd1):_0x54833c&&typeof _0x54833c==_0x15aa01([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15aa01([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54833c)[_0x15aa01([0x73,0x6f,0x72,0x74])]()[_0x15aa01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23c57d,_0x257609])=>{_0x441ab1(_0x23c57d),_0x36ffd1(_0x257609);}):_0x441ab1(window[_0x15aa01([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54833c));}return _0x36ffd1(_0x52494c),_0x92f865>>>0x0;}function _0x4eee23(_0x201d1f){return _0x201d1f[_0x15aa01([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15aa01([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15aa01([0x30]));}function _0x5c003d(_0x50bc0a){return _0x50bc0a[_0x15aa01([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15aa01([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15aa01([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b761c(_0x4dacf2){return _0x2dc18c[_0x15aa01([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15aa01([0x68,0x61,0x73])](_0x4dacf2);}function _0x10bf11(_0x55c852){return _0x2dc18c[_0x15aa01([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15aa01([0x67,0x65,0x74])](_0x55c852);}function _0xab2e24(){}function _0x15aa01(_0x22a006){return _0x22a006['map'](_0x5a56d1=>String['fromCharCode'](_0x5a56d1))['join']('');}_0x5d3040(await _0x2de81d());}(this);}['createRevision'](_0x2e8f5d){const _0x274fa7=this['editor']['plugins']['get']('Users');return new I({'id':_0x2e8f5d['id'],'name':_0x2e8f5d['name'],'creator':_0x2e8f5d['creatorId']?_0x274fa7['getUser'](_0x2e8f5d['creatorId']):null,'diffData':_0x2e8f5d['diffData']||_0x2e8f5d['data'],'authors':_0x2e8f5d['authorsIds']['map'](_0x3b71e1=>_0x274fa7['getUser'](_0x3b71e1)),'createdAt':new Date(_0x2e8f5d['createdAt']),'attributes':_0x2e8f5d['attributes'],'fromVersion':_0x2e8f5d['fromVersion'],'toVersion':_0x2e8f5d['toVersion']});}['addRevision'](_0x49f748,_0x48b256=0x0){this['_revisions']['add'](_0x49f748,_0x48b256);}['getRevision'](_0x57b0af){return this['_revisions']['get'](_0x57b0af);}['getRevisions'](_0x15e1d={'toJSON':!0x1}){const _0x2292b1=Array['from'](this['_revisions']);return _0x2292b1['reverse'](),_0x15e1d['toJSON']?_0x2292b1['map'](_0x5e2810=>_0x5e2810['toJSON']()):_0x2292b1;}['getIndex'](_0x52de14){return this['_revisions']['getIndex'](_0x52de14);}['getEarlierVisibleRevision'](_0x2cfbd5){const [,_0x40f217]=this['getRevisionsIterator'](_0x2cfbd5,{'direction':'earlier'});return _0x40f217;}['getLaterVisibleRevision'](_0x42f428){const [,_0x596e88]=this['getRevisionsIterator'](_0x42f428,{'direction':'later'});return _0x596e88;}['getRevisionsInDiff'](_0x3ad13c){const _0x2054f8=[];for(const _0x142c40 of this['getRevisionsIterator'](_0x3ad13c['newRevisionId']))if(_0x2054f8['push'](_0x142c40),_0x142c40['id']===_0x3ad13c['oldRevisionId'])break;return _0x2054f8;}*['getRevisionsIterator'](_0x3ece0a,{direction:_0x4696bc='earlier',filter:_0x39df70=()=>!0x0}={}){const _0xf5050a='earlier'===_0x4696bc?0x1:-0x1;let _0x146837=this['_revisions']['get'](_0x3ece0a),_0x4e4091=this['getIndex'](_0x146837);for(yield _0x146837;_0x146837;){if(_0x4e4091+=_0xf5050a,_0x146837=this['getRevision'](_0x4e4091),!_0x146837)return;_0x39df70(_0x146837)&&(yield _0x146837);}}}class $ extends _0xb2d8c8{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x598a4b,'c'],[_0x4e70b8,'a'],[_0x2f1121,'e'],[_0x4d9c6a,'r'],[_0x35e088,'u']]);['_typeCharToViewClass']=new Map([['c',_0x598a4b],['a',_0x4e70b8],['e',_0x2f1121],['r',_0x4d9c6a],['u',_0x35e088]]);async['loadRevisionData'](_0x29d992,_0x32dfab){if(_0x29d992['diffData']||!_0x32dfab)return;const _0x3fb069=this['editor']['config']['get']('collaboration.channelId'),_0x41688b=await _0x32dfab['getRevision']({'channelId':_0x3fb069,'revisionId':_0x29d992['id']});_0x29d992['diffData']=_0x41688b['diffData'];}['getRevisionDocumentData'](_0x1e5490){const _0x5a339e={};for(const _0x6cc2e2 in _0x1e5490['diffData']){if(_0x1e5490['diffData'][_0x6cc2e2]['attachChange']&&!_0x1e5490['diffData'][_0x6cc2e2]['attachChange']['isAttached'])continue;const _0x1ed33a=this['_removeRevisionMarkers'](JSON['parse'](_0x1e5490['diffData'][_0x6cc2e2]['insertions'])),_0x23e674=this['editor']['editing']['view']['document'],_0x59d08e=new _0x359ce1(_0x23e674,_0x1ed33a['map'](_0x266d23=>this['_getViewFromDiffObj'](_0x266d23,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5a339e[_0x6cc2e2]=this['editor']['data']['processor']['toData'](_0x59d08e),this['editor']['data']['processor']['useFillerType']('default');}return _0x5a339e;}['getRevisionRootsAttributes'](_0x3935fe){const _0x5cbd4c={};for(const _0x4cf27d in _0x3935fe['diffData'])_0x3935fe['diffData'][_0x4cf27d]['attachChange']&&!_0x3935fe['diffData'][_0x4cf27d]['attachChange']['isAttached']||(_0x5cbd4c[_0x4cf27d]=_0x3935fe['diffData'][_0x4cf27d]['attributesAfter']||{});return _0x5cbd4c;}['_getTypeCharForViewElement'](_0x23e889){return this['_viewClassToTypeChar']['get'](_0x23e889['constructor']);}['_getViewFromDiffObj'](_0x36760e,_0x2b409e){const _0x21e937=this['editor']['editing']['view']['document'];if('string'==typeof _0x36760e)return new _0x200728(_0x21e937,_0x36760e);{let _0x191d38,_0x48eff3;_0x48eff3='u'==_0x36760e['type']||'r'==_0x36760e['type']?[]:_0x36760e['children']['map'](_0x28823d=>this['_getViewFromDiffObj'](_0x28823d,_0x2b409e));const _0x4c8a10=this['_typeCharToViewClass']['get'](_0x36760e['type'])||_0x5ff874,_0x4ff097=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x191d38=new _0x4c8a10(_0x21e937,_0x36760e['name'],_0x36760e['attributes'],_0x48eff3),'u'==_0x36760e['type']&&_0x36760e['children'][0x0]){const _0x404f63=_0x36760e['children'][0x0];if(_0x191d38['render']=function(_0x508aa8){const _0x25146f=_0x508aa8['createElement']('div');return _0x25146f['innerHTML']=_0x404f63,_0x25146f['childNodes'][0x0];},_0x2b409e){const _0x330940=new _0x359ce1(_0x21e937);_0x330940['_appendChild'](_0x191d38);const _0x2bfdb7=Array['from'](_0x4ff097['viewChildrenToDom'](_0x330940,{'bind':!0x1})),_0x209002=_0x4ff097['domDocument']['createElement']('div');_0x209002['append'](..._0x2bfdb7),_0x191d38=Array['from'](_0x4ff097['domChildrenToView'](_0x209002))[0x0];}}else{if('r'==_0x36760e['type']&&_0x36760e['children'][0x0]){const _0x51fc80=_0x36760e['children'][0x0];if(_0x191d38['render']=function(_0x4cfcb0){_0x4cfcb0['innerHTML']=_0x51fc80;},_0x2b409e){const _0x58df21=new _0x359ce1(_0x21e937);_0x58df21['_appendChild'](_0x191d38);const _0xb52e2e=Array['from'](_0x4ff097['viewChildrenToDom'](_0x58df21,{'bind':!0x1})),_0x54da20=_0x4ff097['domDocument']['createElement']('div');_0x54da20['append'](..._0xb52e2e);const _0x38d378=Array['from'](_0x4ff097['domChildrenToView'](_0x54da20));_0x38d378['length']>0x1?_0x191d38['_appendChild'](_0x38d378):_0x191d38=_0x38d378[0x0];}}}if(_0x36760e['customProperties']){for(const [_0x41ef8f,_0x3e63a8]of _0x36760e['customProperties'])_0x191d38['_setCustomProperty'](_0x41ef8f,_0x3e63a8);}const _0x13b4e6=void 0x0===_0x36760e['fillerOffset']?null:_0x36760e['fillerOffset'];return null!==_0x13b4e6&&(_0x191d38['getFillerOffset']=()=>_0x13b4e6),_0x191d38;}}['_makeModelFromViewString'](_0x16b5cf){const _0x289538=JSON['parse'](_0x16b5cf),_0x4de3b2=this['editor']['editing']['view']['document'],_0x352b58=new _0x359ce1(_0x4de3b2,_0x289538['map'](_0x48e69d=>this['_getViewFromDiffObj'](_0x48e69d,!0x0)));return this['editor']['data']['toModel'](_0x352b58);}['_removeRevisionMarkers'](_0x37c3e0){return(_0x37c3e0=_0x37c3e0['filter'](_0x5c323c=>!_0x5c323c['name']||'revision-start'!==_0x5c323c['name']&&'revision-end'!==_0x5c323c['name']))['forEach'](_0x51cb12=>{'string'!=typeof _0x51cb12&&(_0x51cb12['children']=this['_removeRevisionMarkers'](_0x51cb12['children']),_0x51cb12['attributes']=_0x51cb12['attributes']['filter'](_0x3fe49e=>!_0x3fe49e[0x0]['startsWith']('data-revision-')));}),_0x37c3e0;}}function R(_0x5eb506,_0x102030,_0x5cc5bb){const t=_0x5eb506['t'];switch(_0x102030){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'},_0x5cc5bb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5cc5bb);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0xb2d8c8{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3db46c,S,$,_0x5e678a];}constructor(_0x19ac2c){super(_0x19ac2c),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x148b61=_0x189557();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x148b61},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3bdd69=this['repository']['getRevision'](0x0),_0x419ff7=_0x3bdd69&&null===_0x3bdd69['creator']?_0x3bdd69:null;if(this['_continueCurrentRevision']=!!_0x419ff7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xad3f37=this['_source']['getCurrentRevisionId'](),_0x4c56cb=this['repository']['getRevision'](_0xad3f37);if(_0x4c56cb)this['_startingVersion']=_0x4c56cb['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x434b39=this['_source']['history']['_operations']['find'](_0x19d8d9=>!_0x19d8d9['_isInit']),_0xedb424=_0x434b39?_0x434b39['baseVersion']:this['_source']['history']['version'];_0x3bdd69?(_0x3bdd69['toVersion']<_0xedb424&&_0x3bdd69['_update']({'toVersion':_0xedb424}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x419ff7['id'],this['_startingVersion']=_0x419ff7['fromVersion']):(this['_startingVersion']=_0x3bdd69['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xedb424,this['_continueCurrentRevision']=!0x1);}}else _0x419ff7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x419ff7['toVersion'],this['editor']['model']['document']['history']['version']),_0x419ff7['fromVersion']===_0x419ff7['toVersion']?(0x0!==_0x419ff7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x419ff7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x419ff7['id'],this['_startingVersion']=_0x419ff7['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',_0x4f3822=>!_0x4f3822),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e91ab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39dae5;for(const _0x50ba55 in _0x3e91ab){const _0x58fcab=_0x50ba55,_0x274c7a=_0x3e91ab[_0x58fcab];if('revisionHistoryLicenseKeyValid'==_0x274c7a||'revisionHistoryLicenseKeyInvalid'==_0x274c7a||'revisionHistoryLicenseKeyExpired'==_0x274c7a||'revisionHistoryLicenseKeyDomainLimit'==_0x274c7a||'revisionHistoryLicenseKeyNotAllowed'==_0x274c7a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x274c7a||'revisionHistoryLicenseKeyTrialLimit'==_0x274c7a||'revisionHistoryLicenseKeyUsageLimit'==_0x274c7a){delete _0x3e91ab[_0x58fcab],_0x39dae5=_0x274c7a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x39dae5&&_0x3e91ab['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x39dae5&&_0x3e91ab['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x39dae5&&_0x3e91ab['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x39dae5&&_0x3e91ab['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x39dae5&&_0x3e91ab['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x39dae5&&_0x3e91ab['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x39dae5&&_0x3e91ab['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x58b81d=this['repository']['getRevision'](0x0),_0x526b3a=await this['getRevisionDocumentData'](_0x58b81d),_0x1dc829=await this['getRevisionRootsAttributes'](_0x58b81d);this['_replaceEditorDataWithRevisionData'](_0x526b3a,_0x1dc829);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x190947){this['_source']=_0x190947;}async['update'](){const _0x477793=await this['_source']['getLatestVersion']();if(_0x477793>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5a0d38=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x477793});_0x5a0d38['authors']=_0x5a0d38['authorsIds']['map'](_0x1cd77a=>this['editor']['plugins']['get']('Users')['getUser'](_0x1cd77a)),this['currentRevision']['_update'](_0x5a0d38);}}async['saveRevision'](_0xc41ab1={},_0x363bb6=null){const _0x258a6e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x363bb6>this['currentRevision']['toVersion']&&(_0x363bb6=null),null===_0x363bb6&&(_0x363bb6=await this['_source']['getLatestVersion']());const _0x4f0409=this['_getFromVersion'](_0x363bb6),_0x7ae4b7=this['buildRevisionData']({'from':_0x4f0409,'to':_0x363bb6});if(this['currentRevision']['toVersion']<_0x363bb6){const _0xd84102=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x363bb6,'to':_0x363bb6});_0xd84102['authors']=[],_0xd84102['authorsIds']=[],_0xd84102['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xd84102,!0x0),delete _0xd84102['authors'],_0x258a6e['push'](_0xd84102);}_0xc41ab1['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xc41ab1['name']=_0xc41ab1['name']||null,_0xc41ab1['id']=_0xc41ab1['id']||_0x189557(),_0xc41ab1={..._0xc41ab1,..._0x7ae4b7};const _0x134f68=this['addRevisionData'](_0xc41ab1);_0x258a6e['push'](_0xc41ab1);const _0x537f5c=this['repository']['getIndex'](_0x134f68);if(0x0!==_0x537f5c){const _0xab677d=this['repository']['getRevision'](_0x537f5c-0x1);if(_0xab677d['fromVersion']!==_0x363bb6){const _0x195da7=this['_revisionDataBuilder']['getData'](_0x363bb6,_0xab677d['toVersion']),_0x185785={'id':_0xab677d['id'],'diffData':_0x195da7['diffData'],'authorsIds':_0x195da7['authorsIds'],'authors':_0x195da7['authorsIds']['map'](_0x170945=>this['editor']['plugins']['get']('Users')['getUser'](_0x170945)),'fromVersion':_0x363bb6};_0xab677d===this['currentRevision']&&(_0x185785['createdAt']=new Date(_0xc41ab1['createdAt']['getTime']()+0xa)),_0xab677d['_update'](_0x185785,!0x0),delete _0x185785['authors'],_0x258a6e['push'](_0x185785);}}if(this['adapter']){for(const _0x565ee8 of _0x258a6e)this['_bufferUpdate'](_0x565ee8['id'],_0x565ee8,!0x0);this['sendBufferedUpdates']();}return _0x134f68;}['addRevisionData'](_0x50dcfb){const _0x14bc01=this['repository']['createRevision'](_0x50dcfb);return this['adapter']&&_0x14bc01['on']('_update',(_0x559d72,_0x3b62ba,_0xdf54ad)=>{_0xdf54ad||(this['_bufferUpdate'](_0x3b62ba['id'],_0x3b62ba,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x14bc01,this['_findInsertionIndex'](_0x14bc01)),_0x14bc01;}async['getRevisionDocumentData'](_0xd7578f){return await this['_utils']['loadRevisionData'](_0xd7578f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xd7578f);}async['getRevisionRootsAttributes'](_0x3df232){return await this['_utils']['loadRevisionData'](_0x3df232,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3df232);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x15b25f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x506957=0x0;_0x506957<_0x15b25f['length'];_0x506957++){const _0x12287f=_0x15b25f[_0x506957];let _0x1919b8=!0x1;for(const _0x2eb179 of Object['keys'](_0x12287f))void 0x0===_0x12287f[_0x2eb179]?delete _0x12287f[_0x2eb179]:'id'!==_0x2eb179&&(_0x1919b8=!0x0);_0x1919b8||(_0x15b25f[_0x506957]=null);}if(_0x15b25f=_0x15b25f['filter'](_0x320c44=>null!==_0x320c44),!_0x15b25f['length'])return;for(let _0xa67f1b=0x0;_0xa67f1b<_0x15b25f['length'];_0xa67f1b++){const _0xb51a1c=_0x15b25f[_0xa67f1b];void 0x0!==_0xb51a1c['fromVersion']&&void 0x0===_0xb51a1c['toVersion']&&(_0xb51a1c['toVersion']=this['repository']['getRevision'](_0xb51a1c['id'])['toVersion']),void 0x0!==_0xb51a1c['toVersion']&&void 0x0===_0xb51a1c['fromVersion']&&(_0xb51a1c['fromVersion']=this['repository']['getRevision'](_0xb51a1c['id'])['fromVersion']);}const _0x574c7b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x15b25f,_0x574c7b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x594632=>{if(_0x594632){for(const _0x3da5f6 of _0x594632)this['setRevisionData']({'id':_0x3da5f6['id'],'createdAt':_0x3da5f6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x49270e=null,from:_0x4eeb61=null,to:_0x8d02a=null}){_0x4eeb61=null!==_0x4eeb61?_0x4eeb61:_0x49270e['fromVersion'],_0x8d02a=null!==_0x8d02a?_0x8d02a:_0x49270e['toVersion'];const _0x5c16f7=this['_revisionDataBuilder']['getData'](_0x4eeb61,_0x8d02a),_0x581e36={'diffData':_0x5c16f7['diffData'],'authorsIds':_0x5c16f7['authorsIds'],'fromVersion':_0x4eeb61,'toVersion':_0x8d02a};if(!_0x49270e||_0x8d02a!==_0x49270e['toVersion']){const _0x383f00=_0x8d02a-0x1,_0x6a8799=this['_source']['history']['getOperation'](_0x383f00);_0x581e36['createdAt']=_0x6a8799&&_0x6a8799['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4eeb61===this['_loadedStateData']['fromVersion']){for(const _0x1fdd20 of this['_loadedStateData']['authors'])_0x581e36['authorsIds']['includes'](_0x1fdd20['id'])||_0x581e36['authorsIds']['push'](_0x1fdd20['id']);}return _0x581e36;}['_bufferUpdate'](_0x3f54c7,_0x334725,_0x6f524b){if(this['_bufferedUpdates']['has'](_0x3f54c7)){const _0x351cd1=this['_bufferedUpdates']['get'](_0x3f54c7);_0x334725=_0x6f524b?{..._0x351cd1,..._0x334725}:{..._0x334725,..._0x351cd1};}this['_bufferedUpdates']['set'](_0x3f54c7,_0x334725);}['setRevisionData'](_0x323552){const _0x4a84e8=this['repository']['getRevision'](_0x323552['id']);if(_0x323552['createdAt']&&(_0x323552['createdAt']=new Date(_0x323552['createdAt'])),_0x323552['authorsIds']){const _0x2452a8=this['editor']['plugins']['get']('Users');_0x323552['authors']=_0x323552['authorsIds']['map'](_0x44e9e7=>_0x2452a8['getUser'](_0x44e9e7));}_0x4a84e8['_update'](_0x323552,!0x0);}['_createInitialRevision'](_0x2ad848){const _0x258bcd=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x258bcd)this['_initialRevisionId']=_0x258bcd['id'];else{const _0x5e4ee7=!this['editor']['model']['document']['roots']['find'](_0x4af4b2=>this['editor']['model']['hasContent'](_0x4af4b2)),_0x23535b=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b9d9f=R(this['editor']['locale'],_0x5e4ee7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2ad848,'to':_0x2ad848,'id':this['_initialRevisionId'],'name':_0x4b9d9f,'creatorId':_0x23535b});}}['_createCurrentRevision'](_0x266f8f){const _0x13fb53=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x13fb53),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x266f8f,'to':_0x266f8f,'id':_0x13fb53,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x79300,_0xf93cb1){let _0x46ecbb=this['editor']['config']['get']('initialData'),_0x249d7f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x46ecbb){_0x46ecbb={};for(const _0x235f04 of this['editor']['model']['document']['getRootNames']())_0x46ecbb[_0x235f04]='';}if('string'==typeof _0x46ecbb&&(_0x46ecbb={'main':_0x46ecbb}),void 0x0===_0x249d7f){_0x249d7f={};for(const _0x3473f2 of this['editor']['model']['document']['getRootNames']())_0x249d7f[_0x3473f2]={};}let _0x316dee=!0x1;const _0x5a557d=Object['keys'](_0x46ecbb),_0x8bbc3e=Object['keys'](_0x79300);for(const _0x403ead of _0x5a557d){if(_0x46ecbb[_0x403ead]!==_0x79300[_0x403ead]&&''!==_0x46ecbb[_0x403ead]['trim']()){_0x316dee=!0x0;break;}if(!_0x2ea464(_0x249d7f[_0x403ead],_0xf93cb1[_0x403ead])&&Object['keys'](_0x249d7f[_0x403ead])['length']>0x0){_0x316dee=!0x0;break;}}_0x316dee||(_0x316dee=_0x8bbc3e['some'](_0x4b7d1a=>!this['editor']['model']['document']['getRoot'](_0x4b7d1a))),_0x316dee&&_0x43e3aa('editor-initial-data-replaced-with-revision-data',{'editorData':_0x46ecbb,'editorRootsAttributes':_0x249d7f,'revisionData':_0x79300,'revisionRootsAttributes':_0xf93cb1}),this['editor']['config']['set']('initialData',_0x79300),this['editor']['config']['set']('rootsAttributes',_0xf93cb1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3dfdab=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3dfdab['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2ae3b0){const _0x3f22e9=this['repository']['getRevisions']();_0x3f22e9['reverse']();let _0x56fe34=0x0;for(;_0x56fe34<_0x3f22e9['length'];){const _0x338b99=_0x3f22e9[_0x56fe34];if(_0x338b99===this['currentRevision']){_0x56fe34++;continue;}if(_0x338b99['id']===this['_initialRevisionId'])break;const _0x562583=_0x2ae3b0['toVersion']-_0x338b99['toVersion']||_0x2ae3b0['fromVersion']-_0x338b99['fromVersion'];if(_0x562583>0x0)break;if(_0x562583<0x0)_0x56fe34++;else{if(!_0x2ae3b0['creator']&&_0x338b99['creator'])break;if(_0x338b99['creator']||!_0x2ae3b0['creator']){if(_0x2ae3b0['createdAt']>_0x338b99['createdAt'])break;_0x56fe34++;}else _0x56fe34++;}}return _0x56fe34;}['_getFromVersion'](_0xb8161a){const _0x3cfdbe=this['repository']['getRevisions']();_0x3cfdbe['reverse'](),_0x3cfdbe['shift']();const _0x184f46=_0x3cfdbe['find'](_0x18388f=>_0x18388f['toVersion']<=_0xb8161a)['toVersion'];return _0x184f46<this['_startingVersion']?this['_startingVersion']:_0x184f46;}['_makeRevision']({name:_0x140f09,from:_0x47fd84,to:_0x3d1397,creatorId:_0x599ae7,id:_0x4c76eb}){const _0x164fe9=this['buildRevisionData']({'from':_0x47fd84,'to':_0x3d1397});_0x164fe9['name']=_0x140f09,_0x164fe9['creatorId']=_0x599ae7,_0x164fe9['id']=_0x4c76eb;const _0x104cf4=this['addRevisionData'](_0x164fe9);return this['adapter']&&this['_bufferUpdate'](_0x164fe9['id'],_0x164fe9,!0x0),_0x104cf4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1463e5){this['editor']=_0x1463e5,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'](_0x5bb749){this['source']=_0x5bb749;const _0x5d94dc=new Map(),_0x4ecccd=new Map(),_0x150f21=this['editor']['model']['document']['roots']['map'](_0x2f42df=>_0x2f42df['rootName']);for(const _0x4ad82e of _0x150f21){const _0x5b337c=this['editor']['model']['document']['getRoot'](_0x4ad82e),_0x3ad238=x(_0x5b337c);_0x5d94dc['set'](_0x4ad82e,_0x3ad238),_0x4ecccd['set'](_0x4ad82e,Object['fromEntries'](_0x5b337c['getAttributes']()));}const _0x5a6b2a=Array['from'](this['editor']['model']['markers'])['map'](_0x9af257=>[_0x9af257['name'],_0x9af257['getRange']()]),_0x485c70=this['source']['version'];this['_saveMetaData'](_0x485c70,_0x5d94dc,_0x5a6b2a,_0x4ecccd),this['_startingRevisionId']=this['_revisionId'];const _0x51b5c0=new Map(),_0x4feb37=new Map();for(const _0x225763 of _0x150f21){const _0x31a7f2=N(_0x225763);_0x51b5c0['set'](_0x225763,_0x31a7f2),_0x4feb37['set'](_0x225763,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x51b5c0,[],_0x4feb37);}['getData'](_0x771818,_0x1c31a7){if(this['_lastFrom']===_0x771818&&this['_lastTo']<=_0x1c31a7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1c31a7,!0x0);else{if(!this['_savedMetaData']['has'](_0x771818)){const _0x44ead7=this['_getPreviousFrom'](_0x771818);this['_calculateMetaData'](_0x44ead7,_0x771818,!0x1);}this['_calculateMetaData'](_0x771818,_0x1c31a7,!0x0);}return this['_lastFrom']=_0x771818,this['_lastTo']=_0x1c31a7,this['_getState']();}['loadState'](_0x39529b){const _0x5894d9=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x39529b['fromVersion'],this['_lastTo']=_0x39529b['toVersion'];for(const _0x2ae60e in _0x39529b['diffData']){const _0x32fb9c=_0x39529b['diffData'][_0x2ae60e]['attachChange'],_0x4b6803=_0x240ca5(_0x39529b['diffData'][_0x2ae60e]['attributesBefore'])||{},_0x2eae9b=_0x5894d9['_makeModelFromViewString'](_0x39529b['diffData'][_0x2ae60e]['deletions']);_0x2eae9b['rootName']=_0x2ae60e,_0x2eae9b['_isAttached']=!_0x32fb9c||!_0x32fb9c['isAttached'],_0x2eae9b['isAttached']=()=>_0x2eae9b['_isAttached'],this['_baseRoots']['set'](_0x2ae60e,_0x2eae9b),this['_baseRootsAttributes']['set'](_0x2ae60e,_0x4b6803),_0x32fb9c&&this['_touchedRoots']['set'](_0x2ae60e,_0x32fb9c);const _0x452ebd=this['_makeIdsRoot'](_0x2eae9b);this['_baseIdsRoots']['set'](_0x2ae60e,_0x452ebd);for(const [_0x24f54a,_0x5eb7ff]of _0x2eae9b['markers']){if(!_0x24f54a['startsWith']('revision:'))continue;const _0x595a12=_0x24f54a['split'](':')[0x2];for(const _0x1f5790 of _0x5eb7ff['getWalker']({'singleCharacters':!0x0})){const _0x4f9b59=this['_getVidAttributeName'](_0x1f5790),_0x1a8461='elementEnd'==_0x1f5790['type']?_0x1f5790['previousPosition']['path']['slice'](0x0,-0x1):_0x1f5790['previousPosition']['path'],_0x5b52fa=_0x452ebd['getNodeByPath'](_0x1a8461)['getAttribute'](_0x4f9b59);this['_touched']['set'](_0x5b52fa,{'userId':_0x595a12});}}}this['_startingRevisionId']=this['_revisionId'];const _0xaee37a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x554b36=>!this['_touched']['has'](_0x554b36));let _0x3e5e16=0x0;const _0x2de089=new Map();for(const _0x897a36 in _0x39529b['diffData']){const _0x180dcc=_0x39529b['diffData'][_0x897a36]['attachChange'],_0x395c3b=_0x240ca5(_0x39529b['diffData'][_0x897a36]['attributesAfter'])||{},_0x427c25=_0x5894d9['_makeModelFromViewString'](_0x39529b['diffData'][_0x897a36]['insertions']);_0x427c25['rootName']=_0x897a36,_0x427c25['_isAttached']=!_0x180dcc||_0x180dcc['isAttached'],_0x427c25['isAttached']=()=>_0x427c25['_isAttached'],this['_diffRoots']['set'](_0x897a36,_0x427c25),this['_diffRootsAttributes']['set'](_0x897a36,_0x395c3b);const _0x1fe5cf=this['_makeIdsRoot'](_0x427c25,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x897a36,_0x1fe5cf),_0x2de089['set'](_0x897a36,_0x427c25['isAttached']()?_0x395c3b:{});for(const [_0x31b7ea,_0xbdb094]of _0x427c25['markers']){if(!_0x31b7ea['startsWith']('revision:'))continue;const _0x22a2e5=_0x31b7ea['split'](':')[0x2];for(const _0x1ac844 of _0xbdb094['getWalker']({'singleCharacters':!0x0})){const _0x134cfb=this['_getVidAttributeName'](_0x1ac844),_0x213128=this['_revisionId']++,_0xa3e41d='elementEnd'==_0x1ac844['type']?_0x1ac844['previousPosition']['path']['slice'](0x0,-0x1):_0x1ac844['previousPosition']['path'];_0x1fe5cf['getNodeByPath'](_0xa3e41d)['_setAttribute'](_0x134cfb,_0x213128),this['_touched']['set'](_0x213128,{'userId':_0x22a2e5});}}for(const _0x2b73fd of this['editor']['model']['createRangeIn'](_0x427c25)['getWalker']({'singleCharacters':!0x0})){const _0x24c715=this['_getVidAttributeName'](_0x2b73fd),_0x4dcb05='elementEnd'==_0x2b73fd['type']?_0x2b73fd['previousPosition']['path']['slice'](0x0,-0x1):_0x2b73fd['previousPosition']['path'],_0x36d38c=_0x1fe5cf['getNodeByPath'](_0x4dcb05);_0x36d38c['getAttribute'](_0x24c715)>0x0||_0x36d38c['_setAttribute'](_0x24c715,_0xaee37a[_0x3e5e16++]);}for(const [_0x1c2119,_0x1a1c74]of _0x427c25['markers'])_0x1c2119['startsWith']('revision:')||this['_markers']['set'](_0x1c2119,_0x1a1c74);}const _0x5bc978=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5bc978),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5bc978,0x1));const _0xe6bc74=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0xe6bc74),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xe6bc74,0x1));const _0x5d3e71=Array['from'](this['_diffRoots'])['map'](([_0x19df89,_0x15fed3])=>[_0x19df89,x(_0x15fed3)]);this['_saveMetaData'](this['_lastTo'],_0x5d3e71,this['_markers'],_0x2de089);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x16bd3f,_0x27e88e,_0x15343e,_0xa46ff8){const _0x250dff=new Map(_0x27e88e),_0x789e7e=new Map(_0x240ca5(_0xa46ff8)),_0x499805=new Map();for(const [_0x3bdf98,_0x3ecbba]of _0x15343e)_0x499805['set'](_0x3bdf98,{'start':_0x3ecbba['start']['clone'](),'end':_0x3ecbba['end']['clone'](),'rootName':_0x3ecbba['root']['rootName']});this['_savedMetaData']['set'](_0x16bd3f,{'roots':_0x250dff,'markers':_0x499805,'rootsAttributes':_0x789e7e});}['_removeMetaData'](_0x3dbd3b){this['_savedMetaData']['delete'](_0x3dbd3b);}['_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'](_0x31cc68,_0x5cbfa1=null){let _0x2c7c8b=null;_0x31cc68['is']('documentFragment')||(_0x2c7c8b=new _0x429deb(_0x31cc68['name'],{'vid_start':null===_0x5cbfa1?this['_revisionId']++:_0x5cbfa1++}));const _0x323f04=[];for(const _0x4431c0 of _0x31cc68['getChildren']())if(_0x4431c0['is']('element')){_0x323f04['push'](this['_makeIdsRoot'](_0x4431c0,_0x5cbfa1));const _0xae4578=_0x323f04[_0x323f04['length']-0x1];null!==_0x5cbfa1&&(_0x5cbfa1=_0xae4578['is']('element','$text')?_0xae4578['getAttribute']('vid')+0x1:_0xae4578['getAttribute']('vid_end')+0x1);}else{for(let _0x4badae=0x0;_0x4badae<_0x4431c0['offsetSize'];_0x4badae++)_0x323f04['push'](new _0x429deb('$text',{'vid':null===_0x5cbfa1?this['_revisionId']++:_0x5cbfa1++}));}if(_0x31cc68['is']('documentFragment')){const _0x5c572f=N(_0x31cc68['rootName']);return _0x5c572f['_insertChild'](0x0,_0x323f04),_0x5c572f;}return _0x2c7c8b['_setAttribute']('vid_end',null===_0x5cbfa1?this['_revisionId']++:_0x5cbfa1++),_0x2c7c8b['_insertChild'](0x0,_0x323f04),_0x2c7c8b;}['_calculateMetaData'](_0x4014b7,_0x4ceb16,_0x439bf3){this['_reset']();const {roots:_0x5a2b12,markers:_0x911f39,rootsAttributes:_0x219c0f}=this['_savedMetaData']['get'](_0x4014b7);this['_baseRoots']=new Map(_0x5a2b12),this['_baseRootsAttributes']=new Map(_0x240ca5(_0x219c0f));for(const [_0x42d25f,_0x799095]of this['_baseRoots'])if('$graveyard'!==_0x42d25f&&(this['_diffRoots']['set'](_0x42d25f,x(_0x799095)),this['_diffRootsAttributes']=new Map(_0x240ca5(_0x219c0f)),_0x439bf3)){const _0x553541=this['_revisionId'];this['_idsRoots']['set'](_0x42d25f,this['_makeIdsRoot'](_0x799095)),this['_baseIdsRoots']['set'](_0x42d25f,this['_makeIdsRoot'](_0x799095,_0x553541));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x439bf3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x27867a,_0x796357]of _0x911f39){const _0x45338f=this['_baseRoots']['get'](_0x796357['rootName']),_0x5c5159=this['_diffRoots']['get'](_0x796357['rootName']),_0x2528c4=new _0x5d129e(this['_fixPosition'](_0x796357['start'],_0x45338f),this['_fixPosition'](_0x796357['end'],_0x45338f)),_0x420d39=this['_fixRange'](_0x2528c4,_0x5c5159);_0x45338f['markers']['set'](_0x27867a,_0x2528c4),this['_markers']['set'](_0x27867a,_0x420d39);}this['_applyOperations'](_0x4014b7,_0x4ceb16,_0x439bf3);}['_applyOperations'](_0x212971,_0x65ecc6,_0x1d1ade){for(const _0x3f5593 of this['source']['getOperations'](_0x212971,_0x65ecc6))this['_handleOperation'](_0x3f5593,_0x1d1ade);for(const _0x46a526 of this['_diffRoots']['values']())_0x46a526['markers']['clear']();for(const [_0x3d56a5,_0x5f16f1]of this['_markers']){this['_diffRoots']['get'](_0x5f16f1['root']['rootName'])['markers']['set'](_0x3d56a5,_0x5f16f1['clone']());}const _0x13781a=new Map(),_0x183eef=new Map();for(const [_0xc868ef,_0x4af6d2]of this['_diffRoots'])_0x13781a['set'](_0xc868ef,x(_0x4af6d2)),_0x183eef['set'](_0xc868ef,this['_diffRootsAttributes']['get'](_0xc868ef));this['_saveMetaData'](_0x65ecc6,_0x13781a,this['_markers'],_0x183eef);}['_getPreviousFrom'](_0x226b70){const _0x3eb6eb=Array['from'](this['_savedMetaData']['keys']());_0x3eb6eb['sort']((_0x3907b5,_0x449b35)=>_0x3907b5-_0x449b35),_0x3eb6eb['reverse']();for(const _0x565c04 of _0x3eb6eb)if(_0x565c04<_0x226b70)return _0x565c04;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1fde7d,_0x25c720){const _0x463ba0=Array['from'](_0x25c720['markers'])['map'](([_0x10adf2,_0x45e6a3])=>[_0x10adf2,this['_fixRange'](_0x45e6a3,_0x1fde7d)]);_0x1fde7d['markers']=new Map(_0x463ba0);}['_transformMarkers'](_0xc963eb){for(const _0x47f794 of this['_markers']['values']()){const _0xe75640=_0x47f794['getTransformedByOperation'](_0xc963eb),_0x78eed6=_0x5d129e['_createFromRanges'](_0xe75640);_0x47f794['start']=_0x78eed6['start'],_0x47f794['end']=_0x78eed6['end'];}}['_handleOperation'](_0x4a1b27,_0x159042){if('addRoot'!=_0x4a1b27['type']&&'detachRoot'!=_0x4a1b27['type']){if('insert'==_0x4a1b27['type']){const _0x517bd6=_0x4a1b27['position']['root']['rootName'];this['_diffRoots']['has'](_0x517bd6)||(this['_diffRoots']['set'](_0x517bd6,N(_0x517bd6,!0x0)),this['_diffRootsAttributes']['set'](_0x517bd6,{}),_0x159042&&this['_idsRoots']['set'](_0x517bd6,N(_0x517bd6,!0x0)));}else{if('addRootAttribute'==_0x4a1b27['type']||'removeRootAttribute'==_0x4a1b27['type']||'changeRootAttribute'==_0x4a1b27['type'])return void this['_handleRootAttributeOperation'](_0x4a1b27);'marker'==_0x4a1b27['type']&&this['_handleMarkerOperation'](_0x4a1b27);}if('marker'!==_0x4a1b27['type']){const _0x3f6e59=this['_cloneOperation'](_0x4a1b27,this['_diffRoots']);_0x3f6e59['_execute'](),this['_transformMarkers'](_0x3f6e59);}if(_0x159042)switch(_0x4a1b27['type']){case'insert':this['_handleInsertOperation'](_0x4a1b27);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4a1b27);break;case'merge':this['_handleMergeOperation'](_0x4a1b27);break;case'split':this['_handleSplitOperation'](_0x4a1b27);}}else this['_handleRootOperation'](_0x4a1b27,_0x159042);}['_cloneOperation'](_0x3d1985,_0x59ea2a){const _0x3374fe=_0x3d1985['clone']();return _0x3374fe['_authorId']=_0x3d1985['_authorId'],this['_fixOperation'](_0x3374fe,_0x59ea2a),_0x3374fe;}['_getBaseVids'](_0x9f261f){return _0x9f261f['map'](_0x1421c6=>{const _0xc70dcd=this['_getVidAttributeName'](_0x1421c6);return Number(_0x1421c6['item']['getAttribute'](_0xc70dcd));});}['_generateTape'](_0x8a4d8f,_0x1fae98){if(_0x8a4d8f['is']('element','$text'))_0x1fae98['push']({'item':_0x8a4d8f,'type':'text'});else{_0x8a4d8f['is']('element')&&_0x1fae98['push']({'item':_0x8a4d8f,'type':'elementStart'});for(const _0x283539 of _0x8a4d8f['getChildren']())this['_generateTape'](_0x283539,_0x1fae98);_0x8a4d8f['is']('element')&&_0x1fae98['push']({'item':_0x8a4d8f,'type':'elementEnd'});}return _0x1fae98;}['_getState'](){const _0x3f1367=new Map(this['_touched']),_0x536f13=new Map(_0x3f1367),_0x3c80dd=new Map(),_0x5371d0={'insertions':{},'deletions':{}},_0x107cce={'insertions':{},'deletions':{}},_0x5d715b=new Map(),_0x51c616=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x51c616['delete']('$graveyard');for(const _0x30ce46 of _0x51c616){const _0x377f15=this['_diffRoots']['get'](_0x30ce46)||N(_0x30ce46,!0x1),_0x386e36=this['_baseRoots']['get'](_0x30ce46)||N(_0x30ce46,!0x1);_0x377f15['isAttached']()||_0x386e36['isAttached']()?(_0x5371d0['insertions'][_0x30ce46]=x(_0x377f15),_0x5371d0['deletions'][_0x30ce46]=x(_0x386e36),this['_copyMarkers'](_0x5371d0['deletions'][_0x30ce46],_0x386e36),this['_copyMarkers'](_0x5371d0['insertions'][_0x30ce46],_0x377f15),_0x107cce['insertions'][_0x30ce46]=this['_generateTape'](this['_idsRoots']['get'](_0x30ce46),[]),_0x107cce['deletions'][_0x30ce46]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x30ce46)||N(_0x30ce46,!0x1),[])):_0x51c616['delete'](_0x30ce46);}for(const _0x327600 of _0x51c616){const _0x4d22cc=_0x107cce['insertions'][_0x327600];for(const _0x565a86 of _0x4d22cc){const _0xe167f5=this['_getVidAttributeName'](_0x565a86),_0x5dafc2=_0x565a86['item']['getAttribute'](_0xe167f5);_0x536f13['delete'](_0x5dafc2),_0x5dafc2>=this['_startingRevisionId']&&_0x3c80dd['set'](_0x5dafc2,_0x3f1367['get'](_0x5dafc2));}}for(const _0x3de0d8 of _0x51c616){const _0x8b0978=_0x107cce['insertions'][_0x3de0d8],_0x29e024=this['_getBaseVids'](_0x107cce['deletions'][_0x3de0d8]);let _0x1644c5=0x0;for(const _0x29bec2 of _0x8b0978){const _0x3f76e8=this['_getVidAttributeName'](_0x29bec2),_0x3d8b2b=_0x29bec2['item']['getAttribute'](_0x3f76e8);if(!_0x3c80dd['has'](_0x3d8b2b)&&!_0x5d715b['has'](_0x3d8b2b)){if(_0x536f13['has'](_0x3d8b2b))_0x1644c5++;else{if(_0x3d8b2b!=_0x29e024[_0x1644c5]){const _0x54e8c2=_0x3f1367['get'](_0x3d8b2b)||_0x3f1367['get'](_0x29e024[_0x1644c5]);for(;_0x3d8b2b!=_0x29e024[_0x1644c5];)_0x536f13['has'](_0x29e024[_0x1644c5])||(_0x5d715b['set'](_0x29e024[_0x1644c5],_0x54e8c2),_0x3f1367['set'](_0x29e024[_0x1644c5],_0x54e8c2)),_0x1644c5++;}_0x1644c5++;}}}}for(const _0x4be90a of _0x51c616){const _0x549d93=_0x107cce['insertions'][_0x4be90a];for(const _0x364231 of _0x549d93){const _0x4e1c3e=this['_getVidAttributeName'](_0x364231),_0x507555=_0x364231['item']['getAttribute'](_0x4e1c3e);if(_0x5d715b['has'](_0x507555)){const _0x491558=_0x5d715b['get'](_0x507555);_0x536f13['has'](_0x507555)||_0x536f13['set'](_0x507555,{..._0x491558}),_0x3c80dd['set'](_0x507555,{..._0x491558});}}}for(const _0xe2e6fe of _0x536f13['keys']())_0xe2e6fe>=this['_startingRevisionId']&&_0x536f13['delete'](_0xe2e6fe);const _0x1ce849=new Map();for(const _0x4ab2c7 of _0x51c616){let _0x5c4c97=_0x107cce['insertions'][_0x4ab2c7];for(const _0xb62435 of _0x5c4c97)if(_0xb62435['item']['is']('element','tableCell')){const _0x14d861=this['_getVidAttributeName'](_0xb62435),_0x51e33d=_0xb62435['item']['getAttribute'](_0x14d861);if(_0x3c80dd['has'](_0x51e33d)){const _0x2f1bbb=_0xb62435['item']['parent']['parent']['getAttribute']('vid_start'),_0x41532b=_0x1ce849['get'](_0x2f1bbb)||new Set();_0x41532b['add'](_0x3c80dd['get'](_0x51e33d)['userId']),_0x1ce849['set'](_0x2f1bbb,_0x41532b);}}_0x5c4c97=_0x107cce['deletions'][_0x4ab2c7];for(const _0x47bf38 of _0x5c4c97)if(_0x47bf38['item']['is']('element','tableCell')){const _0x3e1fea=this['_getVidAttributeName'](_0x47bf38),_0x34c5c1=_0x47bf38['item']['getAttribute'](_0x3e1fea);if(_0x536f13['has'](_0x34c5c1)){const _0x433678=_0x47bf38['item']['parent']['parent']['getAttribute']('vid_start'),_0x1ac488=_0x1ce849['get'](_0x433678)||new Set();_0x1ac488['add'](_0x536f13['get'](_0x34c5c1)['userId']),_0x1ce849['set'](_0x433678,_0x1ac488);}}for(const _0x706f1 of _0x1ce849['keys']())(_0x3c80dd['has'](_0x706f1)||_0x536f13['has'](_0x706f1))&&_0x1ce849['delete'](_0x706f1);}for(const _0x278217 of _0x51c616){const _0x3dae1c=_0x107cce['insertions'][_0x278217];let _0x4f758f=null,_0x30a904=null;for(const _0x1b9e52 of _0x3dae1c){const _0x4dd45c=this['_getVidAttributeName'](_0x1b9e52),_0x15c36c=_0x1b9e52['item']['getAttribute'](_0x4dd45c),_0x2afcbc=_0x1ce849['get'](_0x15c36c);_0x2afcbc&&'elementStart'==_0x1b9e52['type']&&(_0x4f758f=Array['from'](_0x2afcbc)[0x0],_0x30a904=_0x1b9e52['item']['getAttribute']('vid_end')),_0x4f758f&&(_0x536f13['set'](_0x15c36c,{'userId':_0x4f758f}),_0x3c80dd['set'](_0x15c36c,{'userId':_0x4f758f})),_0x15c36c==_0x30a904&&(_0x4f758f=null,_0x30a904=null);}}const _0x3237c={},_0x1a40e3=new Set();for(const _0x4e7094 of _0x51c616){const _0x6f33e3=_0x5371d0['deletions'][_0x4e7094],_0xf6a8e2=_0x5371d0['insertions'][_0x4e7094];for(const {userId:_0x9fe85c}of this['_touchedMarkers']['values']())null!==_0x9fe85c&&_0x1a40e3['add'](_0x9fe85c);for(const {userId:_0x2f08d1}of this['_touchedRoots']['values']())null!==_0x2f08d1&&_0x1a40e3['add'](_0x2f08d1);this['_markChanges'](_0xf6a8e2,_0x107cce['insertions'][_0x4e7094],_0x3c80dd,'insertion',_0x1a40e3),this['_markChanges'](_0x6f33e3,_0x107cce['deletions'][_0x4e7094],_0x536f13,'deletion',_0x1a40e3),_0x3237c[_0x4e7094]={'insertions':this['_prepareViewToSave'](_0xf6a8e2),'deletions':this['_prepareViewToSave'](_0x6f33e3),'attachChange':this['_touchedRoots']['get'](_0x4e7094)||null,'attributesBefore':_0x240ca5(this['_baseRootsAttributes']['get'](_0x4e7094))||{},'attributesAfter':_0x240ca5(this['_diffRootsAttributes']['get'](_0x4e7094))};}return{'diffData':_0x3237c,'authorsIds':Array['from'](_0x1a40e3)};}['_processRootBeforeSave'](_0x150e6b){for(const [,_0x598441]of _0x150e6b['markers']){const _0xa0cd71=_0x598441['start']['getAncestors']()['filter'](_0x16e923=>'tableCell'==_0x16e923['name']);for(const _0x2cf1a5 of _0xa0cd71)0x1==_0x2cf1a5['childCount']&&_0x2cf1a5['getChild'](0x0)['is']('element','paragraph')&&_0x2cf1a5['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1654ab){this['_processRootBeforeSave'](_0x1654ab);const _0x5c93cc=this['editor']['data']['toView'](_0x1654ab,{}),_0x5100b0=Array['from'](_0x5c93cc['getChildren']())['map'](_0x9daa70=>this['_getViewJson'](_0x9daa70));return JSON['stringify'](_0x5100b0);}['_getViewJson'](_0x2ed4c0){if(_0x2ed4c0['is']('$text'))return _0x2ed4c0['data'];{const _0x20195c=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4a0c55=_0x2ed4c0,_0x36f178=this['editor']['data']['htmlProcessor']['domConverter'],_0x316f08={'type':_0x20195c['_getTypeCharForViewElement'](_0x4a0c55),'name':_0x4a0c55['name'],'attributes':Array['from'](_0x4a0c55['getAttributes']()),'children':Array['from'](_0x4a0c55['getChildren']())['map'](_0x17d07c=>this['_getViewJson'](_0x17d07c))};if(_0x2ed4c0['is']('uiElement')&&'$comment'!=_0x2ed4c0['name']){const _0x4e254e=_0x2ed4c0['render'](_0x36f178['domDocument'],_0x36f178);_0x316f08['children']['push'](_0x4e254e['outerHTML']);}else{if(_0x2ed4c0['is']('rawElement')){const _0x512148=_0x36f178['domDocument']['createElement'](_0x4a0c55['name']);_0x2ed4c0['render'](_0x512148,_0x36f178),_0x316f08['children']['push'](_0x512148['innerHTML']);}}const _0x1ca131=Array['from'](_0x4a0c55['getCustomProperties']());_0x1ca131['length']>0x0&&(_0x316f08['customProperties']=_0x1ca131);const _0x22bdf3=_0x4a0c55['getFillerOffset']();return null!==_0x22bdf3&&(_0x316f08['fillerOffset']=_0x22bdf3),_0x316f08;}}['_markChanges'](_0x13abb6,_0x444749,_0x23b830,_0x640deb,_0x2db6ff){let _0x3224c0=null,_0x470154=null,_0x34ab0a=0x0;const _0x250e84=this['editor']['model'];for(let _0x699022=0x0;_0x699022<_0x444749['length'];_0x699022++){const _0x795d69=this['_getVidAttributeName'](_0x444749[_0x699022]),_0x2e9335=_0x444749[_0x699022]['item']['getAttribute'](_0x795d69),_0x11bcc7=_0x23b830['get'](_0x2e9335),_0x5be963=_0x699022==_0x444749['length']-0x1;(!_0x3224c0&&_0x11bcc7&&(_0x3224c0=_0x11bcc7,_0x470154=_0x444749[_0x699022]),_0x3224c0&&(!_0x11bcc7||_0x11bcc7['userId']!=_0x3224c0['userId']))&&(_0xc3ac46(_0x11bcc7,P(_0x470154,_0x13abb6,_0x250e84),P(_0x444749[_0x699022],_0x13abb6,_0x250e84)),_0x3224c0=_0x11bcc7||null,_0x470154=_0x11bcc7?_0x444749[_0x699022]:null),_0x3224c0&&_0x5be963&&_0xc3ac46(_0x11bcc7,P(_0x470154,_0x13abb6,_0x250e84),V(_0x444749[_0x699022],_0x13abb6,_0x250e84));}function _0xc3ac46(_0x112f4d,_0x1129d1,_0x562d2c){const _0x249ab1=_0x3224c0['userId'],_0xa38404='revision:'+_0x640deb+':'+_0x249ab1+':'+_0x34ab0a++,_0x433533=_0x250e84['createRange'](_0x1129d1,_0x562d2c);_0x13abb6['markers']['set'](_0xa38404,_0x433533),null!==_0x249ab1&&_0x2db6ff['add'](_0x249ab1);}}['_getVidAttributeName'](_0x152dcd){switch(_0x152dcd['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x38ed19,_0x147f10){_0x38ed19['baseVersion']=null;for(const _0xc06862 in _0x38ed19){const _0x84aaa=_0x38ed19[_0xc06862];if(_0x84aaa instanceof _0x569535){const _0x5738f3=_0x147f10['get'](_0x84aaa['root']['rootName']);_0x38ed19[_0xc06862]=this['_fixPosition'](_0x84aaa,_0x5738f3);}if(_0x84aaa instanceof _0x5d129e){const _0x5523f6=_0x147f10['get'](_0x84aaa['root']['rootName']);_0x38ed19[_0xc06862]=this['_fixRange'](_0x84aaa,_0x5523f6);}'root'===_0xc06862&&(_0x38ed19['root']=_0x147f10['get'](_0x38ed19['root']['rootName']));}}['_fixRange'](_0x83a7dc,_0x26602c){return this['editor']['model']['createRange'](this['_fixPosition'](_0x83a7dc['start'],_0x26602c),this['_fixPosition'](_0x83a7dc['end'],_0x26602c));}['_fixPosition'](_0x3b3cef,_0x42fd6b){return this['editor']['model']['createPositionFromPath'](_0x42fd6b,_0x3b3cef['path'],_0x3b3cef['stickiness']);}['_handleInsertOperation'](_0x219246){const _0x121abc=this['_idsRoots']['get'](_0x219246['position']['root']['rootName']),_0x1e09f5=this['_fixPosition'](_0x219246['position'],_0x121abc),_0x402175=null===_0x219246['_authorId']?null:_0x219246['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16eef9=_0x1e09f5['parent'],_0x1130aa=this['_revisionId'],_0x3d0edf=[];for(const _0x169b58 of _0x219246['nodes'])if(_0x169b58['is']('element'))_0x3d0edf['push'](this['_makeIdsRoot'](_0x169b58));else{for(let _0x1d43aa=0x0;_0x1d43aa<_0x169b58['offsetSize'];_0x1d43aa++)_0x3d0edf['push'](new _0x429deb('$text',{'vid':this['_revisionId']++}));}const _0x20cddf=this['_revisionId'];for(let _0x3641ca=_0x1130aa;_0x3641ca<_0x20cddf;_0x3641ca++)this['_touched']['set'](_0x3641ca,{'userId':_0x402175});_0x16eef9['_insertChild'](_0x1e09f5['offset'],_0x3d0edf);}['_handleMoveOperation'](_0x45d48a){(_0x45d48a=this['_cloneOperation'](_0x45d48a,this['_idsRoots']))['_execute']();const _0x153ac3=null===_0x45d48a['_authorId']?null:_0x45d48a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3189e0=_0x45d48a['getMovedRangeStart'](),_0x3699f8=_0x3189e0['parent'],_0xfc3790=_0x3189e0['offset'];!function _0xa56eae(_0x54fa1c,_0x3deee4,_0x54cc2c,_0x377e15){for(let _0x2d885f=_0x54cc2c;_0x2d885f<_0x377e15;_0x2d885f++){const _0x149319=_0x3deee4['getChild'](_0x2d885f);_0x149319['is']('element','$text')?_0x54fa1c['set'](_0x149319['getAttribute']('vid'),{'userId':_0x153ac3}):(_0x54fa1c['set'](_0x149319['getAttribute']('vid_start'),{'userId':_0x153ac3}),_0xa56eae(_0x54fa1c,_0x149319,0x0,_0x149319['childCount']),_0x54fa1c['set'](_0x149319['getAttribute']('vid_end'),{'userId':_0x153ac3}));}}(this['_touched'],_0x3699f8,_0xfc3790,_0xfc3790+_0x45d48a['howMany']);}['_handleMergeOperation'](_0x3c96d2){const _0x2c6993=null===(_0x3c96d2=this['_cloneOperation'](_0x3c96d2,this['_idsRoots']))['_authorId']?null:_0x3c96d2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57396f=_0x3c96d2['targetPosition']['parent'],_0xc907c6=_0x3c96d2['sourcePosition']['parent'],_0xe914dd=_0x57396f['getAttribute']('vid_end'),_0x2408ae=_0xc907c6['getAttribute']('vid_start');_0x57396f['_setAttribute']('vid_end',_0xc907c6['getAttribute']('vid_end')),_0xc907c6['_setAttribute']('vid_end',_0xe914dd),this['_touched']['set'](_0x2408ae,{'userId':_0x2c6993}),this['_touched']['set'](_0xe914dd,{'userId':_0x2c6993}),_0x3c96d2['_execute']();}['_handleSplitOperation'](_0x428f99){const _0x2b115c=null===(_0x428f99=this['_cloneOperation'](_0x428f99,this['_idsRoots']))['_authorId']?null:_0x428f99['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47955f=_0x428f99['graveyardPosition'],_0x44a7e1=_0x428f99['splitPosition']['parent'];_0x428f99['_execute']();const _0x4eb6c1=_0x44a7e1['getAttribute']('vid_end'),_0xdd7676=_0x428f99['insertionPosition']['nodeAfter'];if(_0x47955f){const _0x336cba=_0xdd7676['getAttribute']('vid_end'),_0x2eb9bf=_0x44a7e1['getAttribute']('vid_end');_0x44a7e1['_setAttribute']('vid_end',_0x336cba),_0xdd7676['_setAttribute']('vid_end',_0x2eb9bf),this['_touched']['set'](_0x44a7e1['getAttribute']('vid_end'),{'userId':_0x2b115c}),this['_touched']['set'](_0xdd7676['getAttribute']('vid_start'),{'userId':_0x2b115c});}else{const _0x34bc7d=this['_revisionId']++,_0x22d8b4=this['_revisionId']++;_0x44a7e1['_setAttribute']('vid_end',_0x34bc7d),_0xdd7676['_setAttribute']('vid_start',_0x22d8b4),_0xdd7676['_setAttribute']('vid_end',_0x4eb6c1),this['_touched']['set'](_0x34bc7d,{'userId':_0x2b115c}),this['_touched']['set'](_0x22d8b4,{'userId':_0x2b115c});}}['_handleMarkerOperation'](_0x1a38a5){if(!_0x1a38a5['affectsData'])return;const _0x3cad68=(_0x1a38a5=this['_cloneOperation'](_0x1a38a5,this['_diffRoots']))['oldRange']?_0x1a38a5['oldRange']['root']:null,_0x130321=_0x1a38a5['newRange']?_0x1a38a5['newRange']['root']:null;_0x3cad68&&this['_markers']['delete'](_0x1a38a5['name']),_0x130321&&this['_markers']['set'](_0x1a38a5['name'],_0x1a38a5['newRange']['clone']());const _0x34e90e=null===_0x1a38a5['_authorId']?null:_0x1a38a5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34adc8=_0x1a38a5['name'];if(!this['_touchedMarkers']['has'](_0x34adc8))return void this['_touchedMarkers']['set'](_0x34adc8,{'range':_0x1a38a5['oldRange'],'userId':_0x34e90e});const _0x14f4de=this['_touchedMarkers']['get'](_0x34adc8),_0x222426=_0x14f4de['range'],_0x3293a9=_0x1a38a5['newRange'];null==_0x222426&&null==_0x3293a9||_0x222426&&_0x3293a9&&_0x222426['isEqual'](_0x3293a9)?this['_touchedMarkers']['delete'](_0x1a38a5['name']):_0x14f4de['userId']=_0x34e90e;}['_handleRootOperation'](_0x47719c,_0x3053eb){this['_diffRoots']['has'](_0x47719c['rootName'])?this['_diffRoots']['get'](_0x47719c['rootName'])['_isAttached']=_0x47719c['isAdd']:(this['_diffRoots']['set'](_0x47719c['rootName'],N(_0x47719c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x47719c['rootName'],{}),_0x3053eb&&this['_idsRoots']['set'](_0x47719c['rootName'],N(_0x47719c['rootName'],!0x0)));const _0x4c623b=null===_0x47719c['_authorId']?null:_0x47719c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x505a9f=this['_touchedRoots']['get'](_0x47719c['rootName']);_0x505a9f&&_0x505a9f['userId']===_0x4c623b?this['_touchedRoots']['delete'](_0x47719c['rootName']):this['_touchedRoots']['set'](_0x47719c['rootName'],{'userId':_0x4c623b,'isAttached':_0x47719c['isAdd']});}['_handleRootAttributeOperation'](_0x13e1f4){const _0x34acfc=this['_diffRootsAttributes']['get'](_0x13e1f4['root']['rootName']);null===_0x13e1f4['newValue']?delete _0x34acfc[_0x13e1f4['key']]:_0x34acfc[_0x13e1f4['key']]=_0x13e1f4['newValue'];}}function x(_0x5230e6){const _0x1383f0=N(_0x5230e6['rootName'],_0x5230e6['isAttached']());for(const _0x5a13b5 of _0x5230e6['getChildren']()){const _0x49ade1=_0x5a13b5['_clone'](!0x0);_0x1383f0['_appendChild'](_0x49ade1);}return _0x1383f0;}function N(_0x5aadc6,_0x1ed642=!0x0){const _0x545f46=new _0x24ebb7();return _0x545f46['rootName']=_0x5aadc6,_0x545f46['_isAttached']=_0x1ed642,_0x545f46['isAttached']=()=>_0x545f46['_isAttached'],_0x545f46;}function P(_0x1d0139,_0x57faaf,_0x24d486){const _0x39915d='elementEnd'==_0x1d0139['type']?_0x24d486['createPositionAt'](_0x1d0139['item'],'end'):_0x24d486['createPositionBefore'](_0x1d0139['item']);return _0x24d486['createPositionFromPath'](_0x57faaf,_0x39915d['path'],_0x39915d['stickiness']);}function V(_0x3da172,_0x2a53db,_0xbfd8e7){const _0x3bb3d9='elementStart'==_0x3da172['type']?_0xbfd8e7['createPositionAt'](_0x3da172['item'],0x0):_0xbfd8e7['createPositionAfter'](_0x3da172['item']);return _0xbfd8e7['createPositionFromPath'](_0x2a53db,_0x3bb3d9['path'],_0x3bb3d9['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3f52ee(_0x2d670e){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1e25ef,_0x56a017){super(_0x1e25ef),this['focusTracker']=new _0x408ec4(),this['keystrokes']=new _0x4d84bf(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x56a017),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x973ae7({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4492ca=_0x14e777=>_0x14e777['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4492ca),this['keystrokes']['set']('arrowleft',_0x4492ca),this['keystrokes']['set']('arrowup',_0x4492ca),this['keystrokes']['set']('arrowdown',_0x4492ca);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4aff17){this['revisionNameInputView']['fieldView']['element']['value']=_0x4aff17['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2332bd){const _0x57dc78=new ti(this['locale'],_0x84c75d),_0x1b6ac8=_0x57dc78['fieldView'];_0x1b6ac8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2b2e9b=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2332bd&&(_0x2b2e9b+='\x20('+R(this['locale'],'optional')+')'),(_0x57dc78['label']=_0x2b2e9b,_0x1b6ac8['on']('input',()=>{this['revisionNameInputValue']=_0x1b6ac8['element']['value']['trim']();}),_0x57dc78);}}class v extends _0xb2d8c8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x3e79a8=this['editor'],_0x577ef5=_0x3e79a8['plugins']['get']('RevisionTracker');_0x3e79a8['ui']['componentFactory']['add']('revisionHistory',_0xb0500a=>{const _0xb3663a=_0x455c58(_0xb0500a),_0x1551eb=_0xb3663a['panelView']['children'],_0x4ce1ff=new _0x174095(_0xb0500a),_0x47460e=new _0x2be811(_0xb0500a),_0x5bb4f4=new _0xbbf7fb(_0xb0500a),_0x3b6636=new _0x2be811(_0xb0500a),_0x4b7181=new _0xbbf7fb(_0xb0500a);return _0xb3663a['bind']('isEnabled')['to'](_0x577ef5,'isReady',_0x577ef5,'isEnabled',_0x3e79a8,'isReadOnly',(_0x30035f,_0x510999,_0x5bcb7c)=>_0x30035f&&_0x510999&&!_0x5bcb7c),_0xb3663a['buttonView']['set']({'icon':_0x378803,'label':R(_0xb0500a,'Revision\x20history'),'tooltip':!0x0}),_0x5bb4f4['set']({'label':R(_0xb0500a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5bb4f4['bind']('isEnabled')['to'](_0x577ef5,'isReady',_0x577ef5,'isEnabled',_0x3e79a8,'isReadOnly',(_0x13c6f7,_0x336e6e,_0x2bbf07)=>_0x13c6f7&&_0x336e6e&&!_0x2bbf07),_0x5bb4f4['on']('execute',()=>this['_showDialog']()),_0x4b7181['set']({'label':R(_0xb0500a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4b7181['bind']('isEnabled')['to'](_0x577ef5,'isReady',_0x3e79a8,'isReadOnly',(_0x5a6935,_0x2a7e6)=>_0x5a6935&&!_0x2a7e6),_0x4b7181['on']('execute',()=>{_0x3e79a8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xb3663a['isOpen']=!0x1,_0x3e79a8['editing']['view']['focus']();}),_0x47460e['children']['add'](_0x5bb4f4),_0x3b6636['children']['add'](_0x4b7181),_0x4ce1ff['role']='menu',_0x4ce1ff['items']['addMany']([_0x47460e,_0x3b6636]),_0x1551eb['add'](_0x4ce1ff),_0xb3663a;}),_0x3e79a8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1235e9=this['editor'],_0x596a5c=_0x1235e9['locale'],_0x24ac8a=new _0x3d1a00(_0x596a5c),_0x2101d1=new _0x7b6454(_0x596a5c);_0x24ac8a['buttonView']['set']({'icon':_0x378803,'label':R(_0x596a5c,'Revision\x20history')});const _0x3d7c01=new _0x28b6aa(_0x596a5c,_0x24ac8a),_0x39ec48=new _0x16e359(_0x596a5c);_0x39ec48['set']({'label':R(_0x596a5c,'Save\x20current\x20revision')}),_0x39ec48['delegate']('execute')['to'](_0x24ac8a),_0x39ec48['on']('execute',()=>{this['_showDialog']();}),_0x3d7c01['children']['add'](_0x39ec48),_0x2101d1['items']['add'](_0x3d7c01);const _0x110aa5=new _0x28b6aa(_0x596a5c,_0x24ac8a),_0x12eb57=new _0x16e359(_0x596a5c);return _0x12eb57['set']({'label':R(_0x596a5c,'Open\x20revision\x20history')}),_0x12eb57['delegate']('execute')['to'](_0x24ac8a),_0x12eb57['on']('execute',()=>{_0x1235e9['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x110aa5['children']['add'](_0x12eb57),_0x2101d1['items']['add'](_0x110aa5),_0x24ac8a['panelView']['children']['add'](_0x2101d1),_0x24ac8a;}['_showDialog'](){const _0x1afd9c=this['editor'],_0x4046d2=_0x1afd9c['locale'],_0x3b1724=_0x1afd9c['plugins']['get']('Dialog'),_0x3c1f6d=_0x1afd9c['plugins']['get']('RevisionTracker');function _0x108d6c(_0x172c94){_0x1afd9c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x172c94['revisionName']?_0x172c94['revisionNameInputView']['errorText']=R(_0x4046d2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1afd9c['plugins']['get'](h)['saveRevision']({'name':_0x172c94['revisionName']}),_0x3b1724['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x108d6c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3b1724['show']({'id':'revisionSave','title':R(_0x4046d2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x1afd9c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3b1724['hide']()},{'label':R(_0x1afd9c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x33881b){_0x33881b['bind']('isEnabled')['to'](_0x3c1f6d,'isReady',_0x3c1f6d,'isEnabled',_0x1afd9c,'isReadOnly',(_0x175928,_0x7425d9,_0x375cf6)=>_0x175928&&_0x7425d9&&!_0x375cf6);},'onExecute':()=>_0x108d6c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x31e8da=this['editor'],_0x564bd2=_0x31e8da['locale'];this['_saveRevisionFormView']=new he(_0x564bd2,_0x31e8da['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2d670e{['changeId'];['_model'];constructor(_0x5448b2,_0x50a22e){super(_0x5448b2),this['_model']=_0x50a22e,this['changeId']=_0x50a22e['id'];const _0x29b87f=this['bindTemplate'],_0x35fadd=R(_0x5448b2,_0x50a22e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x50a22e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x50a22e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x29b87f['to']('type',_0x414f21=>'ck-revision-change__'+_0x414f21)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x35fadd}]},{'text':'\x20'+_0x50a22e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x223ec6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x292777){super(),this['id']=_0x292777['id']||_0x189557(),this['author']=_0x292777['author'],this['type']=_0x292777['type'],this['data']=_0x292777['data']||{},this['rootName']=_0x292777['rootName'],this['set']('createdAt',_0x292777['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4a2a0e,_0x4170a2){this['newRevisionId']=_0x4a2a0e,this['oldRevisionId']=_0x4170a2,this['changes']=new _0x1e8ea3();}['_setChanges'](_0xcf9c67){for(const _0x30c447 of _0xcf9c67)this['changes']['add'](_0x30c447);}}class l extends _0xb2d8c8{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3db46c,_0x1d58fa,S,$];}constructor(_0x4cac16){super(_0x4cac16),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x31b029,_0x12a6e9,_0xce3a1a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4c22e6=>{for(const _0x5569cf of this['editor']['editing']['view']['document']['roots'])_0xce3a1a?_0x4c22e6['removeClass']('ck-editor__editable__overlay',_0x5569cf):_0x4c22e6['addClass']('ck-editor__editable__overlay',_0x5569cf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3eedbc=>null!==_0x3eedbc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x53a879,_0x439e07,_0x514d80)=>_0x53a879&&_0x514d80?_0x439e07['changes']['getIndex'](_0x514d80):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x30a370,_0x516336)=>_0x30a370?_0x516336['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1d58fa);}['init'](){const _0x369bc9=this['editor'],_0xe41bd6=new ot(_0x369bc9,{'direction':'backward'}),_0x1c8d2d=new ot(_0x369bc9,{'direction':'forward'});(_0x369bc9['commands']['add']('showPreviousChange',_0xe41bd6),_0x369bc9['commands']['add']('showNextChange',_0x1c8d2d),_0x369bc9['commands']['add']('restoreRevision',new nt(_0x369bc9)),this['on']('change:numberOfChanges',()=>{_0xe41bd6['refresh'](),_0x1c8d2d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x369bc9['enableReadOnlyMode']('revision-viewer'),_0x369bc9['plugins']['has']('WidgetToolbarRepository'))&&_0x369bc9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x8d9e5){return await this['_utils']['loadRevisionData'](_0x8d9e5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x8d9e5);}async['getRevisionRootsAttributes'](_0x38abac){return await this['_utils']['loadRevisionData'](_0x38abac,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x38abac);}async['compare'](_0x5b2f27,_0x1f1fc8,_0x5aa419=!0x1){if(!this['isEnabled'])return;const _0x4929d2=this['diff'],_0x32dbdb=this['repository'],_0x25b546='string'==typeof _0x5b2f27?_0x32dbdb['getRevision'](_0x5b2f27):_0x5b2f27,_0x2e192f='string'==typeof _0x1f1fc8?_0x32dbdb['getRevision'](_0x1f1fc8):_0x1f1fc8,_0x38fed0=_0x25b546['id'],_0x42a897=_0x2e192f?_0x2e192f['id']:null;if(!_0x5aa419&&this['diff']&&this['diff']['newRevisionId']===_0x38fed0&&this['diff']['oldRevisionId']===_0x42a897)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x38fed0,_0x42a897);const _0x1fbf78=this['_getRevisionsRange'](_0x25b546,_0x2e192f,!0x0)['map'](_0x219bdf=>this['_utils']['loadRevisionData'](_0x219bdf,this['adapter']));return _0x1fbf78['push'](new Promise(_0x59ea0f=>{setTimeout(_0x59ea0f,0x14);})),Promise['all'](_0x1fbf78)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x16dcd2=this['_getDiff'](_0x38fed0,_0x42a897);for(const _0x3d996a of _0x16dcd2['changes'])this['_changeIdToChange']['set'](_0x3d996a['id'],_0x3d996a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x184877=>{for(const _0x21c8a4 of this['editor']['model']['document']['getRootNames']())_0x184877['detachRoot'](_0x21c8a4);for(const _0x1138d0 of Object['keys'](_0x16dcd2['model'])){const _0x537279=_0x184877['addRoot'](_0x1138d0);for(const _0x18c7f8 of Object['keys'](_0x16dcd2['attributes'][_0x1138d0]))_0x184877['setAttribute'](_0x18c7f8,_0x16dcd2['attributes'][_0x1138d0][_0x18c7f8],_0x537279);_0x184877['insert'](_0x16dcd2['model'][_0x1138d0],_0x537279,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x16dcd2['changes'])),this['isReady']=!0x0;})['catch'](_0x2267cf=>{console['error'](_0x2267cf),this['_cleanUp'](),_0x4929d2&&(this['diff']=_0x4929d2),this['isReady']=!0x0;});}['addRevisionData'](_0x11df98,_0x1d45c2){const _0x1e95a5=this['repository']['createRevision'](_0x11df98);return _0x1e95a5['on']('_update',(_0x13de27,_0x115e05,_0x1dbfc2)=>_0x1d45c2(_0x115e05,_0x1dbfc2,_0x1e95a5)),this['repository']['addRevision'](_0x1e95a5),_0x1e95a5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3a0129=>{for(const _0x42781c of this['editor']['model']['document']['getRootNames']())_0x3a0129['detachRoot'](_0x42781c);});}['_sortAndFilterDiffChanges'](_0x2bc1aa){const _0x4a8ae4=[],_0x4962c6=new Map();for(const _0x3d6eca of this['editor']['model']['document']['getRootNames']()){const _0x809eb0=this['editor']['editing']['view']['getDomRoot'](_0x3d6eca);if(!_0x809eb0)continue;const _0x2357b1=_0x809eb0['getClientRects']()['item'](0x0);_0x2357b1&&(_0x4a8ae4['push'](_0x3d6eca),_0x4962c6['set'](_0x3d6eca,_0x2357b1));}return _0x4a8ae4['sort']((_0x3ec8a,_0x288419)=>{const _0x109cf2=_0x4962c6['get'](_0x3ec8a),_0x1970f3=_0x4962c6['get'](_0x288419);return _0x109cf2['y']-_0x1970f3['y']||_0x109cf2['x']-_0x1970f3['x'];}),(_0x2bc1aa=_0x2bc1aa['filter'](_0x38064f=>_0x4a8ae4['includes'](_0x38064f['rootName'])))['sort']((_0x1209f8,_0x20ad2b)=>_0x4a8ae4['indexOf'](_0x1209f8['rootName'])-_0x4a8ae4['indexOf'](_0x20ad2b['rootName'])),_0x2bc1aa;}['_makeTape'](_0xe699eb){const _0x513b8e=Array['from'](_0xe699eb['markers'])['filter'](([_0x114429,_0x1c04ec])=>_0x114429['startsWith']('revision:')&&!_0x1c04ec['isCollapsed']),_0x4560c2=Array['from'](this['editor']['model']['createRangeIn'](_0xe699eb)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x513b8e['length'])for(const _0x541891 of _0x4560c2){const [_0x116a44,_0x46b80f]=_0x513b8e[0x0],[,_0x2391d1,_0x13ca4e]=_0x116a44['split'](':');if(_0x46b80f['end']['isEqual'](_0x541891['nextPosition'])&&_0x513b8e['shift'](),(_0x541891['previousPosition']['isEqual'](_0x46b80f['start'])||_0x541891['previousPosition']['isAfter'](_0x46b80f['start']))&&('insertion'==_0x2391d1?_0x541891['isAdded']={'userId':_0x13ca4e}:'deletion'==_0x2391d1&&(_0x541891['isRemoved']={'userId':_0x13ca4e})),0x0==_0x513b8e['length'])break;}return _0x4560c2;}['_refreshStartEndIndex'](_0xc4d246){const _0x3374dc=new Map();for(let _0x200875=0x0;_0x200875<_0xc4d246['length'];_0x200875++)'text'===_0xc4d246[_0x200875]['type']?(_0xc4d246[_0x200875]['item']['startIndex']=_0x200875,_0xc4d246[_0x200875]['item']['endIndex']=_0x200875):('elementStart'===_0xc4d246[_0x200875]['type']?_0xc4d246[_0x200875]['item']['startIndex']=_0x200875:'elementEnd'===_0xc4d246[_0x200875]['type']&&(_0xc4d246[_0x200875]['item']['endIndex']=_0x200875),_0x3374dc['set'](_0xc4d246[_0x200875]['id'],_0x200875));for(const _0x228c8e of _0x3374dc['values']())'elementStart'===_0xc4d246[_0x228c8e]['type']?_0xc4d246[_0x228c8e]['item']['endIndex']=_0x3374dc['get'](_0xc4d246[_0x228c8e]['pairId']):'elementEnd'===_0xc4d246[_0x228c8e]['type']&&(_0xc4d246[_0x228c8e]['item']['startIndex']=_0x3374dc['get'](_0xc4d246[_0x228c8e]['pairId']));}['_processTape'](_0x38d196){for(let _0x51e6d0=0x0;_0x51e6d0<_0x38d196['length'];_0x51e6d0++){if('elementStart'===_0x38d196[_0x51e6d0]['type'])_0x38d196[_0x51e6d0]['item']['startIndex']=_0x51e6d0;else{if('elementEnd'===_0x38d196[_0x51e6d0]['type']){_0x38d196[_0x51e6d0]['item']['endIndex']=_0x51e6d0;const _0x33b638=_0x38d196[_0x51e6d0]['item']['startIndex'];_0x38d196[_0x33b638]['pairId']=_0x38d196[_0x51e6d0]['id'],_0x38d196[_0x51e6d0]['pairId']=_0x38d196[_0x33b638]['id'];}else _0x38d196[_0x51e6d0]['item']['startIndex']=_0x51e6d0,_0x38d196[_0x51e6d0]['item']['endIndex']=_0x51e6d0,_0x38d196[_0x51e6d0]['pairId']=null;}_0x38d196[_0x51e6d0]['markersStart']||(_0x38d196[_0x51e6d0]['markersStart']=[],_0x38d196[_0x51e6d0]['markersEnd']=[]);}}['_markInsertions'](_0xb12ab3,_0x101cc3){const _0x46d23d=_0xb12ab3['filter'](_0x5743bb=>!_0x5743bb['isAdded']);for(let _0x479eda=0x0;_0x479eda<_0x101cc3['length'];_0x479eda++)_0x101cc3[_0x479eda]['isAdded']&&(_0x46d23d[_0x479eda]['isAdded']=_0x101cc3[_0x479eda]['isAdded']);}['_getDiff'](_0x553270,_0x32de30=null){const _0x54a364=this['repository']['getRevision'](_0x553270),_0x573d94=_0x32de30?this['repository']['getRevision'](_0x32de30):null,_0x540739=this['_getRevisionsRange'](_0x54a364,_0x573d94),_0x39d99a=_0x540739[_0x540739['length']-0x1],_0x2e6919=new Map(),_0x34d168={'model':{},'attributes':{},'changes':[]},_0x49c6db=new Set(),_0xc783e5=new Map();for(let _0x17739d=_0x540739['length']-0x1;_0x17739d>=0x0;_0x17739d--){const _0x545a23=_0x540739[_0x17739d];for(const _0x4b9e41 of Object['keys'](_0x545a23['diffData']))if(_0x545a23['diffData'][_0x4b9e41]['attachChange']){const _0x32731d=_0x545a23['diffData'][_0x4b9e41]['attachChange'];_0x32731d['isAttached']?(_0x49c6db['add'](_0x4b9e41),_0xc783e5['has'](_0x4b9e41)&&_0xc783e5['get'](_0x4b9e41)['userId']==_0x32731d['userId']?_0xc783e5['delete'](_0x4b9e41):_0xc783e5['set'](_0x4b9e41,_0x32731d)):_0xc783e5['has'](_0x4b9e41)?(_0x49c6db['delete'](_0x4b9e41),_0xc783e5['delete'](_0x4b9e41)):(_0x49c6db['add'](_0x4b9e41),_0xc783e5['set'](_0x4b9e41,_0x32731d));}else _0x49c6db['add'](_0x4b9e41);}for(const _0x1ebfbc of _0x49c6db){const _0x14bdba=_0xc783e5['has'](_0x1ebfbc)&&!_0xc783e5['get'](_0x1ebfbc)['isAttached'];let _0x81c503=_0x14bdba?_0x540739['length']-0x1:0x0;const _0x5339a3=_0x14bdba?-0x1:0x1;for(;_0x540739[_0x81c503];){const _0x5e0693=_0x540739[_0x81c503];if(_0x5e0693['diffData'][_0x1ebfbc]){const _0x1806ae=_0x14bdba?_0x5e0693['diffData'][_0x1ebfbc]['attributesBefore']:_0x5e0693['diffData'][_0x1ebfbc]['attributesAfter'];_0x34d168['attributes'][_0x1ebfbc]=_0x1806ae?_0x240ca5(_0x1806ae):{};break;}_0x81c503+=_0x5339a3;}}for(const _0x7c6cb5 of _0x540739){_0x7c6cb5['model']={};for(const _0x273193 of _0x7c6cb5['authors'])_0x2e6919['set'](_0x273193['id'],_0x273193);for(const _0x1760e7 of _0x49c6db){const _0x34c605=_0x7c6cb5['diffData'][_0x1760e7]?_0x7c6cb5['diffData'][_0x1760e7]['insertions']:'[]',_0x3b5f1f=_0x7c6cb5['diffData'][_0x1760e7]?_0x7c6cb5['diffData'][_0x1760e7]['deletions']:'[]';_0x7c6cb5['model'][_0x1760e7]={'insertions':this['_utils']['_makeModelFromViewString'](_0x34c605),'deletions':this['_utils']['_makeModelFromViewString'](_0x3b5f1f)};}}for(const _0x382c1e of _0x49c6db){let _0x3c9e5d=null,_0x823816=0x0;const _0x471afa=new Map(Array['from'](_0x54a364['model'][_0x382c1e]['insertions']['markers'])['filter'](([_0x488210])=>!_0x488210['startsWith']('revision:')));let _0x354a13=0x0;for(const _0xa8d2bc of _0x540739){const _0x9329cb=this['_makeTape'](_0xa8d2bc['model'][_0x382c1e]['insertions']);_0xa8d2bc==_0x54a364?(_0x3c9e5d=_0x9329cb,_0x823816=_0x3c9e5d['length'],_0x3c9e5d['forEach'](_0x575842=>{_0x575842['id']=_0x354a13++;}),this['_processTape'](_0x3c9e5d)):this['_markInsertions'](_0x3c9e5d,_0x9329cb);const _0x16c0a7=_0x3c9e5d['filter'](_0x58d0e6=>!_0x58d0e6['isAdded'])['map'](_0x306386=>_0x306386['id']);let _0x3a927e=0x0;const _0xc3e55b=this['_makeTape'](_0xa8d2bc['model'][_0x382c1e]['deletions']);_0xc3e55b['forEach'](_0x9ffe11=>{_0x9ffe11['isRemoved']?_0x9ffe11['id']=_0x823816++:_0x9ffe11['id']=_0x16c0a7[_0x3a927e++];}),this['_processTape'](_0xc3e55b),this['_setDistance'](_0x3c9e5d,'isAdded'),this['_setDistance'](_0xc3e55b,'isRemoved'),_0xa8d2bc==_0x54a364&&this['_markMarkers'](_0x3c9e5d,_0x471afa),_0x3c9e5d=this['_joinTapes'](_0x3c9e5d,_0xc3e55b),this['_refreshStartEndIndex'](_0x3c9e5d),this['_setDistance'](_0x3c9e5d,'isRemoved');}_0x3c9e5d=_0x3c9e5d['filter'](_0xd556a1=>!(_0xd556a1['isAdded']&&_0xd556a1['isRemoved']));const _0x5a3cd2=new Map(_0x39d99a['model'][_0x382c1e]['deletions']['markers']),_0x165752=new Set(_0x471afa['keys']());for(const _0x1ae718 of _0x5a3cd2['keys']())_0x165752['delete'](_0x1ae718);this['_markSuggestions'](_0x3c9e5d,_0x165752),this['_fixObsoleteTags'](_0x3c9e5d),_0x3c9e5d=this['_removeMissingPairs'](_0x3c9e5d),_0x3c9e5d=this['_markMismatchedRemovedTags'](_0x3c9e5d),_0x3c9e5d=this['_removeUnsupportedChanges'](_0x3c9e5d);const {root:_0x411d13,changes:_0x336652}=this['_makeModelFromTape'](_0x3c9e5d,_0x2e6919,_0x382c1e);_0x34d168['model'][_0x382c1e]=_0x411d13;const _0x386046=_0xc783e5['get'](_0x382c1e);if(_0x386046){const _0x2bec62=_0x2e6919['get'](_0x386046['userId']),_0x499d77=new G({'author':_0x2bec62,'type':_0x386046['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x382c1e});_0x336652['unshift'](_0x499d77),_0x34d168['attributes'][_0x382c1e]['revisionHistoryAttachChange']=_0x499d77['id'];}_0x34d168['changes']=_0x34d168['changes']['concat'](_0x336652);}return _0x34d168;}['_markMarkers'](_0x21d51f,_0x57f1cb){for(let _0x42d0fd=0x0;_0x42d0fd<_0x21d51f['length'];_0x42d0fd++)for(const [_0x1aac00,_0x4ac2ba]of _0x57f1cb)!_0x4ac2ba['isCollapsed']&&_0x4ac2ba['start']['isEqual'](_0x21d51f[_0x42d0fd]['previousPosition'])&&_0x21d51f[_0x42d0fd]['markersStart']['push'](_0x1aac00),_0x4ac2ba['end']['isEqual'](_0x21d51f[_0x42d0fd]['nextPosition'])&&_0x21d51f[_0x42d0fd]['markersEnd']['push'](_0x1aac00);}['_joinTapes'](_0xe349df,_0xb527e2){let _0x174b66=[],_0xc91e4d=0x0,_0x4bbae9=0x0;for(;_0xc91e4d<_0xe349df['length']||_0x4bbae9<_0xb527e2['length'];){const _0x147435=_0xe349df[_0xc91e4d]||{},_0x27289f=_0xb527e2[_0x4bbae9]||{};if(_0x147435['id']==_0x27289f['id'])_0xc91e4d++,_0x4bbae9++,_0x174b66['push'](_0x147435);else{if(_0x27289f['isRemoved']&&_0x147435['isAdded']){const {commonTape:_0x3f0d52,iEnd:_0x1c2f6c,jEnd:_0x172e79}=this['_threeWayMerge'](_0xe349df,_0xc91e4d,_0xb527e2,_0x4bbae9);_0x174b66=_0x174b66['concat'](_0x3f0d52),_0xc91e4d=_0x1c2f6c,_0x4bbae9=_0x172e79;}else _0x27289f['isRemoved']?(_0x4bbae9++,_0x174b66['push'](_0x27289f)):(_0xc91e4d++,_0x174b66['push'](_0x147435));}}return _0x174b66;}['_markSuggestions'](_0x32dd2a,_0x46fda0){const _0x346778=[];for(let _0xa3a2fe=0x0;_0xa3a2fe<_0x32dd2a['length'];_0xa3a2fe++){for(let _0x103775=0x0;_0x103775<_0x32dd2a[_0xa3a2fe]['markersStart']['length'];_0x103775++){const _0x327b6f=_0x32dd2a[_0xa3a2fe]['markersStart'][_0x103775];if(!_0x46fda0['has'](_0x327b6f))continue;const {group:_0xa4d19f,type:_0x429c6a,authorId:_0x497901}=_0x1666d3(_0x327b6f);'revision-suggestion'!=_0xa4d19f||'insertion'!=_0x429c6a&&'deletion'!=_0x429c6a||(_0x346778['unshift']({'type':_0x429c6a,'name':_0x327b6f,'userId':_0x497901}),_0x32dd2a[_0xa3a2fe]['markersStart']['splice'](_0x103775,0x1),_0x103775--);}_0x210c21(_0x32dd2a[_0xa3a2fe]);for(let _0xc81187=0x0;_0xc81187<_0x32dd2a[_0xa3a2fe]['markersEnd']['length'];_0xc81187++){const _0x2c545b=_0x32dd2a[_0xa3a2fe]['markersEnd'][_0xc81187];if(!_0x46fda0['has'](_0x2c545b))continue;const {group:_0x22db1c,type:_0x34fee2}=_0x1666d3(_0x2c545b);if('revision-suggestion'!=_0x22db1c||'insertion'!=_0x34fee2&&'deletion'!=_0x34fee2)continue;_0x32dd2a[_0xa3a2fe]['markersEnd']['splice'](_0xc81187,0x1),_0xc81187--;const _0x2cbca6=_0x346778['findIndex'](_0x2c0955=>_0x2c0955['name']==_0x2c545b);_0x2cbca6>-0x1&&_0x346778['splice'](_0x2cbca6,0x1);}}function _0x1666d3(_0x4b5342){const _0x4041d9=_0x4b5342['split'](':');return{'group':_0x4041d9[0x0],'type':_0x4041d9[0x1],'subType':_0x4041d9['length']>=0x5?_0x4041d9[0x2]:null,'id':_0x4041d9['length']<0x5?_0x4041d9[0x2]:_0x4041d9[0x3],'authorId':_0x4041d9['length']<0x5?_0x4041d9[0x3]:_0x4041d9[0x4],'markerCount':0x6==_0x4041d9['length']?_0x4041d9[0x5]:null};}function _0x210c21(_0x1e5ee1){for(let _0x26a94c=0x0;_0x26a94c<_0x346778['length'];_0x26a94c++){if(_0x1e5ee1['isAdded']&&'insertion'==_0x346778[_0x26a94c]['type']&&_0x1e5ee1['isAdded']['userId']==_0x346778[_0x26a94c]['userId'])return _0x1e5ee1['isAddSuggestion']=_0x346778[_0x26a94c],void delete _0x1e5ee1['isAdded'];if(!_0x1e5ee1['isAdded']&&!_0x1e5ee1['isRemoved']&&'deletion'==_0x346778[_0x26a94c]['type'])return void(_0x1e5ee1['isRemoveSuggestion']=_0x346778[_0x26a94c]);}}}['_setDistance'](_0x2d74d2,_0x18c357){let _0x357bc6=0x0,_0x4dd68e=!0x1;const _0x1a2f94=new Map();for(const _0x3588f9 of _0x2d74d2)_0x3588f9[_0x18c357]?_0x4dd68e&&(_0x357bc6++,_0x4dd68e=!0x1):(_0x357bc6++,_0x4dd68e=!0x0),_0x1a2f94['set'](_0x3588f9['id'],_0x357bc6);for(let _0x170f0e=0x0;_0x170f0e<_0x2d74d2['length'];_0x170f0e++){if('isRemoved'==_0x18c357&&_0x2d74d2[_0x170f0e]['isAdded']||'isAdded'==_0x18c357&&_0x2d74d2[_0x170f0e]['isRemoved'])continue;if('text'==_0x2d74d2[_0x170f0e]['type']){_0x2d74d2[_0x170f0e]['distance']=0x0;continue;}const _0x1fc2f2=_0x1a2f94['get'](_0x2d74d2[_0x170f0e]['pairId']),_0x2ea84f=_0x1a2f94['get'](_0x2d74d2[_0x170f0e]['id']);_0x2d74d2[_0x170f0e]['distance']=_0x1fc2f2-_0x2ea84f;}}['_getRevisionsRange'](_0x5b4633,_0xa2a916,_0x5bcc16=!0x1){const _0x2b9186=[];let _0x821c9f=this['repository']['getIndex'](_0x5b4633),_0x384587=this['repository']['getIndex'](_0xa2a916);for(-0x1==_0x384587&&(_0x384587=this['repository']['_revisions']['length'],_0x5bcc16=!0x1);_0x821c9f<_0x384587;)_0x2b9186['push'](this['repository']['getRevision'](_0x821c9f)),_0x821c9f++;return _0x5bcc16&&_0x2b9186['push'](this['repository']['getRevision'](_0x821c9f)),_0x2b9186;}['_threeWayMerge'](_0x2baec9,_0x51edf6,_0x52f21e,_0x3cab10){const _0x3d1731=this['editor']['model']['schema'];let _0x303411=_0x51edf6;for(;_0x2baec9[_0x303411]&&_0x2baec9[_0x303411]['isAdded'];)_0x303411++;let _0x53cc12=_0x3cab10;for(;_0x52f21e[_0x53cc12]&&_0x52f21e[_0x53cc12]['isRemoved'];)_0x53cc12++;_0x2711bb(_0x2baec9,_0x51edf6,_0x303411),_0x2711bb(_0x52f21e,_0x3cab10,_0x53cc12);const _0x3f5202=_0x52f21e['slice'](_0x3cab10,_0x53cc12)['concat'](_0x2baec9['slice'](_0x51edf6,_0x303411));return _0x3f5202['sort']((_0x33eed0,_0x461b5d)=>_0x33eed0['side']!=_0x461b5d['side']?_0x33eed0['side']-_0x461b5d['side']:_0x33eed0['level']!=_0x461b5d['level']?_0x33eed0['level']-_0x461b5d['level']:_0x33eed0['distance']!=_0x461b5d['distance']?_0x461b5d['distance']-_0x33eed0['distance']:!!_0x33eed0['isAdded']!=!!_0x461b5d['isAdded']?-0x1==_0x33eed0['side']||0x0==_0x33eed0['side']?_0x33eed0['isAdded']?-0x1:0x1:_0x33eed0['isAdded']?0x1:-0x1:_0x33eed0['index']-_0x461b5d['index']),{'commonTape':_0x3f5202,'iEnd':_0x303411,'jEnd':_0x53cc12};function _0x2711bb(_0x5caca6,_0x141f9a,_0x5c354e){let _0x104024=-0x1,_0x32bd5e=Number['POSITIVE_INFINITY'],_0x24d9ef=!0x0;for(let _0x55d856=_0x141f9a;_0x55d856<_0x5c354e;_0x55d856++)if(_0x3d1731['isInline'](_0x5caca6[_0x55d856]['item'])||(_0x24d9ef=!0x1),_0x5caca6[_0x55d856]['item']['startIndex']<_0x141f9a&&(_0x104024=_0x55d856),_0x5caca6[_0x55d856]['item']['endIndex']>=_0x5c354e){_0x32bd5e=_0x55d856;break;}_0x24d9ef&&(_0x104024=_0x5c354e-0x1);for(let _0x4cbf82=_0x141f9a;_0x4cbf82<_0x5c354e;_0x4cbf82++)_0x5caca6[_0x4cbf82]['side']=_0x4cbf82<=_0x104024?-0x1:_0x4cbf82<_0x32bd5e?0x0:0x1,_0x5caca6[_0x4cbf82]['index']=_0x4cbf82;let _0x4c3296=0x0;for(let _0x3fcc66=_0x141f9a;_0x3fcc66<=_0x104024;_0x3fcc66++)0x0==_0x5caca6[_0x3fcc66]['distance']?_0x5caca6[_0x3fcc66]['level']=_0x4c3296:(_0x4c3296++,_0x5caca6[_0x3fcc66]['level']=_0x4c3296,_0x4c3296++);for(let _0x2b34e4=_0x141f9a;_0x2b34e4<_0x5c354e;_0x2b34e4++)0x0==_0x5caca6[_0x2b34e4]['side']&&(_0x5caca6[_0x2b34e4]['level']=_0x4c3296);_0x4c3296=0x0;for(let _0x47d89c=_0x5c354e-0x1;_0x47d89c>=_0x32bd5e;_0x47d89c--)0x0==_0x5caca6[_0x47d89c]['distance']?_0x5caca6[_0x47d89c]['level']=_0x4c3296:(_0x4c3296--,_0x5caca6[_0x47d89c]['level']=_0x4c3296,_0x4c3296--);}}['_fixObsoleteTags'](_0x16b3a7){const _0x23e90a=new Map(),_0x4dc16f=this['editor']['model']['schema'];for(let _0x5201dc=0x1;_0x5201dc<_0x16b3a7['length'];_0x5201dc++){let _0x9a2070,_0x24307e,_0x34cf10;const _0x1dc9d1=_0x16b3a7[_0x5201dc],_0x203d8b=_0x16b3a7[_0x5201dc-0x1];if('text'==_0x1dc9d1['type'])continue;if(_0x1dc9d1['type']!=_0x203d8b['type'])continue;if(!_0x4dc16f['isBlock'](_0x203d8b['item'])||_0x4dc16f['isLimit'](_0x203d8b['item']))continue;if(!_0x4dc16f['isBlock'](_0x1dc9d1['item'])||_0x4dc16f['isLimit'](_0x1dc9d1['item']))continue;if((_0x16b3a7[_0x5201dc]['isAdded']||_0x16b3a7[_0x5201dc]['isAddSuggestion'])&&_0x16b3a7[_0x5201dc-0x1]['isRemoved'])_0x9a2070=_0x16b3a7[_0x5201dc],_0x24307e=_0x16b3a7[_0x5201dc-0x1],_0x34cf10=_0x5201dc-0x1;else{if(!_0x16b3a7[_0x5201dc]['isRemoved']||!_0x16b3a7[_0x5201dc-0x1]['isAdded']&&!_0x16b3a7[_0x5201dc-0x1]['isAddSuggestion'])continue;_0x9a2070=_0x16b3a7[_0x5201dc-0x1],_0x24307e=_0x16b3a7[_0x5201dc],_0x34cf10=_0x5201dc;}const _0x462969=_0x9a2070['level']==_0x24307e['level'],_0x54ec3c=Math['abs'](_0x9a2070['level'])<Math['abs'](_0x24307e['level'])&&0x0==_0x24307e['distance'];(_0x462969||_0x54ec3c)&&(_0x23e90a['set'](_0x24307e['id'],_0x9a2070['id']),_0x16b3a7['splice'](_0x34cf10,0x1),_0x5201dc--,_0x9a2070['isAdded']=!0x1);}for(let _0x3daca4=0x0;_0x3daca4<_0x16b3a7['length'];_0x3daca4++)_0x23e90a['has'](_0x16b3a7[_0x3daca4]['pairId'])&&(_0x16b3a7[_0x3daca4]['pairId']=_0x23e90a['get'](_0x16b3a7[_0x3daca4]['pairId']));}['_removeMissingPairs'](_0x7763f3){const _0x313e85=new Set(_0x7763f3['map'](_0x460cf6=>_0x460cf6['id']));for(let _0x2e4753=0x0;_0x2e4753<_0x7763f3['length'];_0x2e4753++)_0x313e85['has'](_0x7763f3[_0x2e4753]['pairId'])||0x0==_0x7763f3[_0x2e4753]['distance']||(_0x7763f3[_0x2e4753]['isIncorrect']=!0x0);return _0x7763f3['filter'](_0x3790ab=>!_0x3790ab['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5bae50){const _0x24bf7c=new Set();for(let _0x56b875=0x0;_0x56b875<_0x5bae50['length'];_0x56b875++){if(_0x24bf7c['has'](_0x5bae50[_0x56b875]['id'])&&_0x5bae50[_0x56b875]['isRemoved']&&(_0x5bae50[_0x56b875]['isIncorrect']=!0x0),_0x5bae50[_0x56b875]['isIncorrect'])continue;if(0x0==_0x5bae50[_0x56b875]['distance'])continue;if('elementStart'!=_0x5bae50[_0x56b875]['type'])continue;if(null==_0x5bae50[_0x56b875]['pairId'])continue;let _0x5e6dc8=_0x56b875+0x1,_0x1bc36a=0x0;for(;_0x5bae50[_0x5e6dc8]['id']!=_0x5bae50[_0x56b875]['pairId'];)'elementStart'==_0x5bae50[_0x5e6dc8]['type']?_0x1bc36a++:'elementEnd'==_0x5bae50[_0x5e6dc8]['type']&&_0x1bc36a--,_0x5e6dc8++;if(0x0!=_0x1bc36a){if(_0x5bae50[_0x56b875]['isRemoved'])_0x5bae50[_0x56b875]['isIncorrect']=!0x0;else{for(;_0x5e6dc8!=_0x56b875;)_0x5bae50[_0x5e6dc8]['isRemoved']&&0x0!=_0x5bae50[_0x5e6dc8]['distance']&&(_0x5bae50[_0x5e6dc8]['isIncorrect']=!0x0,_0x24bf7c['add'](_0x5bae50[_0x5e6dc8]['pairId'])),_0x5e6dc8--;}}}return _0x5bae50['filter'](_0xda431c=>!_0xda431c['isIncorrect']);}['_removeUnsupportedChanges'](_0xcf2ecf){const _0x2f78fc=this['editor']['model']['schema'];for(let _0x38eb98=0x0;_0x38eb98<_0xcf2ecf['length'];_0x38eb98++){if(!(_0xcf2ecf[_0x38eb98]['isAdded']||_0xcf2ecf[_0x38eb98]['isAddSuggestion']||_0xcf2ecf[_0x38eb98]['isRemoved']||_0xcf2ecf[_0x38eb98]['isRemoveSuggestion']))continue;if(0x0==_0xcf2ecf[_0x38eb98]['distance'])continue;const _0x2962f5=_0xcf2ecf[_0x38eb98]['item'];_0x2f78fc['isBlock'](_0x2962f5)||_0x2f78fc['isLimit'](_0x2962f5)||(_0xcf2ecf[_0x38eb98]['isAdded']&&delete _0xcf2ecf[_0x38eb98]['isAdded'],_0xcf2ecf[_0x38eb98]['isAddSuggestion']&&delete _0xcf2ecf[_0x38eb98]['isAddSuggestion'],_0xcf2ecf[_0x38eb98]['isRemoveSuggestion']&&delete _0xcf2ecf[_0x38eb98]['isRemoveSuggestion'],_0xcf2ecf[_0x38eb98]['isRemoved']&&(_0xcf2ecf[_0x38eb98]['isIncorrect']=!0x0));}return _0xcf2ecf['filter'](_0x9ccde9=>!_0x9ccde9['isIncorrect']);}['_makeModelFromTape'](_0x33fd6a,_0x269971,_0x1df451){const _0x5b745b=new _0x24ebb7(),_0x7960e5=[],_0x523dcc=new Map(),_0x7c7f74=this['editor']['model'],_0x2c5c98=_0x7c7f74['schema'],_0x3b880c=[_0x5b745b],_0x482251={},_0x216e9f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43809d=null;const _0x281639=[0x0];for(let _0x27adbf=0x0;_0x27adbf<_0x33fd6a['length'];_0x27adbf++)if('elementStart'===_0x33fd6a[_0x27adbf]['type']){_0x33fd6a[_0x27adbf]['previousPosition']=_0x7c7f74['createPositionFromPath'](_0x5b745b,_0x281639);const _0x414697=new _0x429deb(_0x33fd6a[_0x27adbf]['item']['name'],_0x33fd6a[_0x27adbf]['item']['getAttributes']());_0x3b880c[0x0]['_appendChild'](_0x414697),_0x281639['push'](0x0),_0x3b880c['unshift'](_0x414697),_0x33fd6a[_0x27adbf]['nextPosition']=_0x7c7f74['createPositionFromPath'](_0x5b745b,_0x281639);}else'elementEnd'===_0x33fd6a[_0x27adbf]['type']?(_0x3b880c['shift'](),_0x33fd6a[_0x27adbf]['previousPosition']=_0x7c7f74['createPositionFromPath'](_0x5b745b,_0x281639),_0x281639['pop'](),_0x281639[_0x281639['length']-0x1]++,_0x33fd6a[_0x27adbf]['nextPosition']=_0x7c7f74['createPositionFromPath'](_0x5b745b,_0x281639)):(_0x33fd6a[_0x27adbf]['previousPosition']=_0x7c7f74['createPositionFromPath'](_0x5b745b,_0x281639),_0x43809d?_0x43809d['_data']+=_0x33fd6a[_0x27adbf]['item']['data']:_0x43809d=new _0x4f2aa1(_0x33fd6a[_0x27adbf]['item']['data'],_0x33fd6a[_0x27adbf]['item']['getAttributes']()),_0x33fd6a[_0x27adbf+0x1]&&'text'===_0x33fd6a[_0x27adbf+0x1]['type']&&_0x1d3e14(_0x43809d,_0x33fd6a[_0x27adbf+0x1]['item'])||(_0x3b880c[0x0]['_appendChild'](_0x43809d),_0x43809d=null),_0x281639[_0x281639['length']-0x1]+=_0x33fd6a[_0x27adbf]['item']['offsetSize'],_0x33fd6a[_0x27adbf]['nextPosition']=_0x7c7f74['createPositionFromPath'](_0x5b745b,_0x281639));for(let _0x535a99=0x0;_0x535a99<_0x33fd6a['length'];_0x535a99++){const _0x31f5ac=_0x33fd6a[_0x535a99]['previousPosition'],_0x10fdd9=_0x33fd6a[_0x535a99]['nextPosition'];for(const _0x3f03b2 of _0x33fd6a[_0x535a99]['markersStart'])_0x523dcc['set'](_0x3f03b2,{'start':_0x31f5ac,'end':null});_0x1b23b8('isRemoveSuggestion',_0x535a99,_0x31f5ac,_0x10fdd9),_0x1b23b8('isAddSuggestion',_0x535a99,_0x31f5ac,_0x10fdd9),_0x1b23b8('isRemoved',_0x535a99,_0x31f5ac,_0x10fdd9),_0x1b23b8('isAdded',_0x535a99,_0x31f5ac,_0x10fdd9);for(const _0x2cc8e1 of _0x33fd6a[_0x535a99]['markersEnd']){const _0x1579aa=_0x523dcc['get'](_0x2cc8e1);_0x1579aa?_0x1579aa['end']=_0x10fdd9:_0x523dcc['set'](_0x2cc8e1,{'start':_0x10fdd9,'end':_0x10fdd9});}}for(const [_0x5ed3ff,_0x137b0]of _0x523dcc){const _0xb98e55=this['editor']['model']['createRange'](_0x137b0['start'],_0x137b0['end']);_0x5b745b['markers']['set'](_0x5ed3ff,_0xb98e55);}return _0x7960e5['sort']((_0x28dabb,_0x256078)=>{const _0x250d26=_0x5b745b['markers']['get']('revision:'+_0x28dabb['id']),_0x9bb509=_0x5b745b['markers']['get']('revision:'+_0x256078['id']);return _0x250d26['start']['isBefore'](_0x9bb509['start'])?-0x1:_0x250d26['start']['isAfter'](_0x9bb509['start'])?0x1:_0x250d26['end']['isBefore'](_0x9bb509['end'])?-0x1:_0x250d26['end']['isAfter'](_0x9bb509['end'])?0x1:'add'===_0x28dabb['type']?-0x1:0x1;}),{'root':_0x5b745b,'changes':_0x7960e5};function _0x1b23b8(_0x31ebe7,_0x305e14,_0x4a22d0,_0x53b35a){const _0x9ada45=!!_0x33fd6a[_0x305e14][_0x31ebe7],_0x4f1564=_0x9ada45?_0x33fd6a[_0x305e14][_0x31ebe7]['userId']:null,_0x299486=_0x305e14===_0x33fd6a['length']-0x1,_0x496b2a=_0x216e9f[_0x31ebe7][0x0],_0x37b378=_0x2c5c98['isObject'](_0x33fd6a[_0x305e14]['item']);!_0x482251[_0x31ebe7]&&_0x9ada45?_0x482251[_0x31ebe7]={'start':_0x4a22d0,'tapeItem':_0x33fd6a[_0x305e14],'userId':_0x4f1564,'type':_0x31ebe7}:_0x482251[_0x31ebe7]&&!_0x9ada45?(_0x482251[_0x31ebe7]['end']=_0x4a22d0,_0xe4f69d(_0x482251[_0x31ebe7]),_0x482251[_0x31ebe7]=null):_0x482251[_0x31ebe7]&&_0x9ada45&&_0x482251[_0x31ebe7]['userId']!==_0x4f1564&&(_0x482251[_0x31ebe7]['end']=_0x4a22d0,_0x496b2a&&_0x496b2a['userId']===_0x482251[_0x31ebe7]['userId']||_0xe4f69d(_0x482251[_0x31ebe7]),_0x482251[_0x31ebe7]={'start':_0x4a22d0,'tapeItem':_0x33fd6a[_0x305e14],'userId':_0x4f1564,'type':_0x31ebe7}),_0x482251[_0x31ebe7]&&_0x37b378&&('elementStart'!==_0x33fd6a[_0x305e14]['type']||_0x496b2a&&_0x496b2a['userId']===_0x4f1564||_0x216e9f[_0x31ebe7]['unshift']({'userId':_0x4f1564,'object':_0x33fd6a[_0x305e14]['item'],'change':_0x482251[_0x31ebe7]}),'elementEnd'===_0x33fd6a[_0x305e14]['type']&&_0x496b2a&&_0x496b2a['object']===_0x33fd6a[_0x305e14]['item']&&(_0x216e9f[_0x31ebe7]['shift'](),_0x482251[_0x31ebe7]=_0x496b2a['change'])),_0x482251[_0x31ebe7]&&_0x299486&&(_0x482251[_0x31ebe7]['end']=_0x53b35a,_0xe4f69d(_0x482251[_0x31ebe7]),_0x482251[_0x31ebe7]=null);}function _0xe4f69d({start:_0x3a733f,end:_0x593f73,tapeItem:_0x147126,userId:_0x50d492,type:_0x8ae82a}){const _0x510334=_0x147126['item'],_0x1db229=_0x7c7f74['schema']['isBlock'](_0x510334)&&!_0x7c7f74['schema']['isLimit'](_0x510334),_0x186888=_0x3a733f['nodeAfter']==_0x593f73['parent']&&_0x593f73['isAtStart'];if(_0x1db229&&_0x186888)return;const _0x58cf87=_0x7c7f74['createRange'](_0x3a733f,_0x593f73),_0x1ced05=_0x269971['get'](_0x50d492),_0x28579c=new G({'author':_0x1ced05,'type':'isAdded'==_0x8ae82a||'isAddSuggestion'==_0x8ae82a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x8ae82a||'isRemoveSuggestion'==_0x8ae82a},'createdAt':new Date(),'rootName':_0x1df451});_0x7960e5['push'](_0x28579c),_0x5b745b['markers']['set']('revision:'+_0x28579c['id'],_0x58cf87);}function _0x1d3e14(_0x11ad45,_0x4d148c){const _0x19a787=_0x11ad45['getAttributes'](),_0xd5c33c=_0x4d148c['getAttributes']();for(const _0x39d4ad of _0x19a787){if(_0x39d4ad[0x1]!==_0x4d148c['getAttribute'](_0x39d4ad[0x0]))return!0x1;_0xd5c33c['next']();}return _0xd5c33c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x459492=>{const _0x46bfe0=_0x459492['markerName']['split'](':')[0x1],_0x1e8325=this['_getChangeFromId'](_0x46bfe0);if(!_0x1e8325)return null;const _0xcdb9f2='add'==_0x1e8325['type']?'insertion':'deletion',_0x50f3f2=['ck-suggestion-marker','ck-suggestion-marker-'+_0xcdb9f2];return _0x1e8325['data']['isSuggestion']&&_0x50f3f2['push']('ck-suggestion-marker-'+_0xcdb9f2+'-new'),this['activeChange']==_0x1e8325&&_0x50f3f2['push']('ck-suggestion-marker--active'),{'classes':_0x50f3f2,'attributes':{'data-change-id':_0x46bfe0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1fe775=>{_0x1fe775['on']('element:pre',(_0x309200,_0x2ef597,_0x4821b2)=>{const _0x1f532a=_0x2ef597['viewItem']['getChild'](0x0);if(!_0x1f532a||!_0x1f532a['is']('element','code'))return;if(!_0x4821b2['consumable']['consume'](_0x1f532a,{'attributes':['vid_start','vid_end']}))return;const _0xe5acd2=_0x2ef597['modelRange']['start']['nodeAfter'];_0x4821b2['writer']['setAttribute']('vid_start',_0x1f532a['getAttribute']('vid_start'),_0xe5acd2),_0x4821b2['writer']['setAttribute']('vid_end',_0x1f532a['getAttribute']('vid_end'),_0xe5acd2);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x27eff5=>{_0x27eff5['on']('element',(_0x5bb280,_0x1c8971,_0x15837b)=>{if(!_0x15837b['consumable']['consume'](_0x1c8971['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1c8971['modelRange']['isCollapsed'])return;const _0x84d35c=_0x1c8971['modelRange']['start']['nodeAfter'];_0x84d35c['hasAttribute']('vid_start')||_0x84d35c['hasAttribute']('vid')||(_0x15837b['writer']['setAttribute']('vid_start',_0x1c8971['viewItem']['getAttribute']('vid_start'),_0x84d35c),_0x15837b['writer']['setAttribute']('vid_end',_0x1c8971['viewItem']['getAttribute']('vid_end'),_0x84d35c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x282060=>_0x282060['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x175e8a,[,_0x125959])=>{['vid_start','vid_end','vid']['includes'](_0x125959)&&(_0x175e8a['return']=!0x0,_0x175e8a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x375759=>{_0x375759['on']('attribute:vid',(_0x4d9d8e,_0x886fe3,_0x1bc782)=>{if('\x20'!=_0x886fe3['item']['data']||_0x886fe3['item']['parent']['maxOffset']>0x1)return;if(!_0x1bc782['consumable']['consume'](_0x886fe3['item'],_0x4d9d8e['name']))return;const _0x503121=_0x1bc782['writer'],_0x36d917=_0x1bc782['mapper']['toViewRange'](_0x886fe3['range']);_0x503121['wrap'](_0x36d917,_0x503121['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xebfe82){const _0x229a2f=_0xebfe82['plugins']['get']('RevisionViewer');return(_0x2cbd8c,_0x2bf37d,_0x17a07f)=>{const _0x202630=_0x2bf37d['markerName']['split'](':')[0x1],_0xfdb158=_0x229a2f['_getChangeFromId'](_0x202630);if(!_0xfdb158)return null;const _0x531ff3='add'==_0xfdb158['type']?'split':'merge';if(!_0x17a07f['consumable']['test'](_0x2bf37d['markerRange'],_0x2cbd8c['name']))return;const _0x22c786=_0x2bf37d['markerRange']['getWalker'](),_0x6840f=_0x2bf37d['markerRange']['start'],_0x4a1061=_0xebfe82['model']['schema'];let _0x4dec21=null,_0x2569ee=null,_0x51908e=!0x1,_0xf3d1e4=!0x1;for(const _0x10ef5a of _0x22c786){const _0x3579b7=_0x10ef5a['item'];_0x51908e=_0x51908e||_0x4a1061['isContent'](_0x3579b7);const _0x2bdab5=_0x17a07f['mapper']['toViewElement'](_0x3579b7);if(_0x2bdab5&&_0x2bdab5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10ef5a['type']&&(_0x4a1061['isBlock'](_0x3579b7)&&!_0x4a1061['isLimit'](_0x3579b7)&&(_0x3579b7['nextSibling']||_0x6840f['isAtEnd']?_0x4dec21&&_0x4dec21['parent']==_0x3579b7||(_0x4dec21=_0x3579b7,_0x2109e0(_0x10ef5a['previousPosition']),_0xf3d1e4=!0x0):_0x2569ee=_0x2569ee||_0x10ef5a['previousPosition']));}function _0x2109e0(_0x16f6e5){const _0x2a5117=_0x17a07f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x531ff3}),_0x52fc01=_0x17a07f['mapper']['toViewPosition'](_0x16f6e5);_0xfdb158['data']['isSuggestion']&&_0x17a07f['writer']['addClass']('ck-suggestion-marker-'+_0x531ff3+'-new',_0x2a5117),_0x229a2f['activeChange']==_0xfdb158&&_0x17a07f['writer']['addClass']('ck-suggestion-marker--active',_0x2a5117),_0x17a07f['writer']['insert'](_0x52fc01,_0x2a5117),_0x17a07f['mapper']['bindElementToMarker'](_0x2a5117,_0x2bf37d['markerName']);}_0x51908e||_0xf3d1e4||!_0x2569ee||_0x2109e0(_0x2569ee);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x95a59,_0x2c5e4f,_0x154eb2)=>{const _0x28a19a=_0x154eb2['mapper']['markerNameToElements'](_0x2c5e4f['markerName']);if(_0x28a19a){for(const _0x2c7d8e of _0x28a19a)(_0x2c7d8e['hasClass']('ck-suggestion-marker-split')||_0x2c7d8e['hasClass']('ck-suggestion-marker-merge'))&&(_0x154eb2['mapper']['unbindElementFromMarkerName'](_0x2c7d8e,_0x2c5e4f['markerName']),_0x154eb2['writer']['remove'](_0x2c7d8e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4e3d8b,_0x2da85c,_0x4bbc4a)=>{const _0x1299e1=_0x2da85c['markerName']['split'](':')[0x1],_0x4ab4b1=this['_getChangeFromId'](_0x1299e1);if(!_0x4ab4b1)return null;const _0x5b3af0='add'==_0x4ab4b1['type']?'split':'merge';if(_0x4bbc4a['consumable']['test'](_0x2da85c['markerRange'],_0x4e3d8b['name']))for(const _0x165b77 of _0x2da85c['markerRange']['getItems']()){if(!_0x165b77['is']('element','softBreak'))continue;const _0x22733b=_0x4bbc4a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b3af0}),_0x1910aa=_0x4bbc4a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x165b77));_0x4ab4b1['data']['isSuggestion']&&_0x4bbc4a['writer']['addClass']('ck-suggestion-marker-'+_0x5b3af0+'-new',_0x22733b),this['activeChange']==_0x4ab4b1&&_0x4bbc4a['writer']['addClass']('ck-suggestion-marker--active',_0x22733b),_0x4bbc4a['writer']['insert'](_0x1910aa,_0x22733b),_0x4bbc4a['mapper']['bindElementToMarker'](_0x22733b,_0x2da85c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3d8d89=>{for(const _0x2e2e6a of this['editor']['model']['document']['getRootNames']()){const _0x4b88da=this['editor']['model']['document']['getRoot'](_0x2e2e6a),_0x1a0e4a=this['editor']['editing']['view']['document']['getRoot'](_0x2e2e6a);if(_0x1a0e4a){const _0x3a4c27=_0x4b88da['getAttribute']('revisionHistoryAttachChange');if(_0x3d8d89['removeAttribute']('data-change-id',_0x1a0e4a),_0x3d8d89['removeClass']('ck-revision-history-root-add',_0x1a0e4a),_0x3d8d89['removeClass']('ck-revision-history-root-remove',_0x1a0e4a),_0x3d8d89['removeClass']('ck-revision-history-root--active',_0x1a0e4a),_0x3a4c27){const _0x2dd8dc=this['_getChangeFromId'](_0x3a4c27);if(!_0x2dd8dc)return null;_0x3d8d89['setAttribute']('data-change-id',_0x3a4c27,_0x1a0e4a),_0x3d8d89['addClass']('ck-revision-history-root-'+_0x2dd8dc['type'],_0x1a0e4a),this['activeChange']==_0x2dd8dc&&_0x3d8d89['addClass']('ck-revision-history-root--active',_0x1a0e4a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x332ace=>'revision-comment:'+_0x332ace,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x381309=>'revision-suggestion:'+_0x381309,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3fd937=>({'name':'suggestion:'+_0x3fd937,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x35a4da=>{const _0x84eadb=_0x35a4da['markerName']['split'](':')[0x1];return'insertion'!=_0x84eadb&&'deletion'!=_0x84eadb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x84eadb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x11e3ed,_0x1ab6a2,_0x4e2af9)=>{const _0x39f2a0=_0x4e2af9['mapper']['markerNameToElements'](_0x1ab6a2['markerName']);if(_0x39f2a0){for(const _0x1c8a20 of _0x39f2a0)_0x1c8a20['is']('uiElement')&&(_0x4e2af9['mapper']['unbindElementFromMarkerName'](_0x1c8a20,_0x1ab6a2['markerName']),_0x4e2af9['writer']['remove'](_0x1c8a20));}},{'priority':'high'});}['_getChangeFromId'](_0x562ceb){return this['_changeIdToChange']['get'](_0x562ceb);}['_getViewForChange'](_0x3f726b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3f726b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x110f1a,_0x323c6c,_0x3144b9,_0x52ecc9)=>{_0x52ecc9&&this['_balloon']['remove'](_0x52ecc9),_0x3144b9&&(this['_balloon']['add']({'view':_0x3144b9,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x46a69b=this['editor']['editing'],_0x1acc91=this['_getChangeFromId'](_0x3144b9['changeId']);let _0x197b89;if(_0x1acc91['data']['isOnRoot']){const _0x4c8947=_0x46a69b['view']['getDomRoot'](_0x1acc91['rootName']);_0x197b89=Array['from'](_0x4c8947['getClientRects']());}else{const _0x473ead=this['editor']['model']['markers']['get']('revision:'+_0x3144b9['changeId']);_0x197b89=Array['from'](_0x46a69b['mapper']['markerNameToElements'](_0x473ead['name']))['map'](_0xb45a85=>_0x46a69b['view']['domConverter']['mapViewToDom'](_0xb45a85))['map'](_0x2ce775=>Array['from'](_0x2ce775['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x197b89[0x0];return _0x197b89['find'](_0x1e3d0f=>_0x1e3d0f['top']-0x3<=this['_activeViewTarget']['y']&&_0x1e3d0f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1e3d0f['left']-0x3<=this['_activeViewTarget']['x']&&_0x1e3d0f['right']+0x3>=this['_activeViewTarget']['x'])||_0x197b89[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x496321,_0x303306,_0xca0bce,_0xec5340)=>{this['activeView']=_0xca0bce?this['_getViewForChange'](_0xca0bce):null,this['editor']['model']['change'](()=>{const _0x47d311=this['editor']['editing'];_0xec5340&&(_0xec5340['data']['isOnRoot']?_0x47d311['view']['change'](_0x30dcbe=>{_0x30dcbe['removeClass']('ck-revision-history-root--active',_0x47d311['view']['document']['getRoot'](_0xec5340['rootName']));}):_0x47d311['reconvertMarker']('revision:'+_0xec5340['id'])),_0xca0bce&&(_0xca0bce['data']['isOnRoot']?_0x47d311['view']['change'](_0x5c705f=>{_0x5c705f['addClass']('ck-revision-history-root--active',_0x47d311['view']['document']['getRoot'](_0xca0bce['rootName']));}):_0x47d311['reconvertMarker']('revision:'+_0xca0bce['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5ec6bd,_0x4522b4)=>{if(this['activeChange'])return;const _0x329957=this['_findChangeIdFromDomTarget'](_0x4522b4['target']),_0x3032d1=this['_changeIdToChange']['get'](_0x329957);_0x3032d1?(this['_activeViewTarget']={'x':_0x4522b4['domEvent']['x'],'y':_0x4522b4['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3032d1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x31fd52,_0x5ef472)=>{const _0x42fff8=this['_findChangeIdFromDomTarget'](_0x5ef472['target']),_0x5217fe=this['_changeIdToChange']['get'](_0x42fff8);_0x5217fe?(this['_activeViewTarget']={'x':_0x5ef472['domEvent']['x'],'y':_0x5ef472['domEvent']['y']},_0x5217fe===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5217fe):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x43ce6e){do{const _0x1154aa=_0x43ce6e['getAttribute']('data-change-id');if(_0x1154aa)return _0x1154aa;_0x43ce6e=_0x43ce6e['parent'];}while(_0x43ce6e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x263d47=>{for(const _0x39cc27 of this['editor']['model']['markers'])_0x263d47['removeMarker'](_0x39cc27);});}}function Q(_0x536cd1,_0x58b33b){return(_0x4611f0,_0x4267b6,_0xf1b196)=>{if(!_0xf1b196['consumable']['test'](_0x4267b6['markerRange'],_0x4611f0['name']))return;const _0x1e2795=_0x4267b6['markerRange']['getWalker'](),_0xcee9a8=_0x4267b6['markerRange']['start'],_0x422cbd=_0x536cd1['model']['schema'];let _0x16fcec=null,_0x2530da=null,_0x5f1b72=!0x1,_0x5b5d67=!0x1;for(const _0x5d2eb6 of _0x1e2795){const _0x507e7=_0x5d2eb6['item'];_0x5f1b72=_0x5f1b72||_0x422cbd['isContent'](_0x507e7);const _0x15d097=_0xf1b196['mapper']['toViewElement'](_0x507e7);if(_0x15d097&&_0x15d097['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5d2eb6['type']&&(_0x422cbd['isBlock'](_0x507e7)&&!_0x422cbd['isLimit'](_0x507e7)&&(_0x507e7['nextSibling']||_0xcee9a8['isAtEnd']?_0x16fcec&&_0x16fcec['parent']==_0x507e7||(_0x16fcec=_0x507e7,_0x1ec68e(_0x5d2eb6['previousPosition']),_0x5b5d67=!0x0):_0x2530da=_0x2530da||_0x5d2eb6['previousPosition']));}function _0x1ec68e(_0x5309cc){const _0x420782=_0xf1b196['mapper']['toViewPosition'](_0x5309cc),_0x3c811b=_0xf1b196['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x58b33b});_0xf1b196['writer']['insert'](_0x420782,_0x3c811b),_0xf1b196['mapper']['bindElementToMarker'](_0x3c811b,_0x4267b6['markerName']);}_0x5f1b72||_0x5b5d67||!_0x2530da||_0x1ec68e(_0x2530da);};}class nt extends _0xd0c377{constructor(_0x27f936){super(_0x27f936);const _0x4cfcc6=_0x27f936['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4cfcc6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4cfcc6,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x326565=this['editor'],_0x532e90=_0x326565['plugins']['get'](l),_0x38a5c9=_0x532e90['isReady']?_0x532e90['diff']['newRevisionId']:null;_0x326565['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x38a5c9);}['refresh'](){const {isReady:_0x39c061,isEnabled:_0xe5f3e4,repository:_0x1ab2a0,diff:_0x1e832d}=this['editor']['plugins']['get'](l),_0x12e401=_0x1e832d&&_0x1ab2a0['getLaterVisibleRevision'](_0x1e832d['newRevisionId']);this['isEnabled']=_0x39c061&&_0xe5f3e4&&Boolean(_0x12e401);}}class ot extends _0xd0c377{['_step'];constructor(_0x4f8a69,{direction:_0x617f6e}){super(_0x4f8a69);const _0x58d52e=_0x4f8a69['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x617f6e?0x1:-0x1,this['listenTo'](_0x58d52e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58d52e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x58d52e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x56958a=this['editor'],_0x29fa75=_0x56958a['plugins']['get'](l),{isNavigationMode:_0xd85542,currentChangeNumber:_0x2a3f69}=_0x29fa75;let _0x48ddee;if(_0x29fa75['activeChange']=_0xd85542?_0x29fa75['diff']['changes']['get'](_0x2a3f69+this['_step']):_0x29fa75['diff']['changes']['first'],_0x29fa75['activeChange']['data']['isOnRoot'])_0x48ddee=_0x56958a['editing']['view']['getDomRoot'](_0x29fa75['activeChange']['rootName']);else{const _0x321e10=_0x56958a['model']['markers']['get']('revision:'+_0x29fa75['activeChange']['id']);_0x48ddee=_0x195504(_0x56958a['editing'],_0x321e10);}_0x1108f0({'target':_0x48ddee,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5f3237,currentChangeNumber:_0x3cd603,numberOfChanges:_0x3c2078,isReady:_0x4178d5,isEnabled:_0x3f9c20}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3f9c20&&_0x4178d5&&_0x3c2078)&&(!_0x5f3237||(0x1===this['_step']?_0x3cd603<_0x3c2078-0x1:_0x3cd603>0x0));}}class xi extends _0x2d670e{constructor(_0x2eeef4){super(_0x2eeef4);const _0x331fdf=this['bindTemplate'],_0x301ae3=new _0xbbf7fb(_0x2eeef4),_0x5c744d=new _0xbbf7fb(_0x2eeef4);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',(_0x55137c,_0xd81f2b)=>_0x55137c&&_0xd81f2b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x18803a,_0x3a3997,_0x48c3e7,_0x4ac535)=>{if(!_0x18803a)return R(_0x2eeef4,'Loading...');if(!_0x48c3e7)return R(_0x2eeef4,'No\x20changes');const _0x35a665=R(_0x2eeef4,'NUMBER_OF_CHANGES',_0x48c3e7);return _0x4ac535?R(_0x2eeef4,'X_OF_Y_CHANGES',[_0x3a3997+0x1,_0x48c3e7]):_0x35a665;}),_0x301ae3['set']({'label':R(_0x2eeef4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2dab41}),_0x5c744d['set']({'label':R(_0x2eeef4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x141731}),_0x301ae3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5c744d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x301ae3['on']('execute',()=>this['fire']('execute','backward')),_0x5c744d['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',_0x331fdf['if']('_isStatusLabelVisible','ck-hidden',_0x1b9034=>!_0x1b9034)]},'children':[{'text':_0x331fdf['to']('isNavigationMode',_0x1fdfe1=>_0x1fdfe1?R(_0x2eeef4,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2eeef4,'Total')+':\x20')}]},{'text':_0x331fdf['to']('_statusText')}]},new _0x3df35a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x301ae3,_0x5c744d]}]});}}const ge='ck-editor__editable__loading-overlay';class Ri extends _0xb2d8c8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x115732=this['editor']['editing']['view'];_0x115732['change'](_0x3d3d59=>{for(const _0x3bf76a of _0x115732['document']['roots'])_0x3d3d59['addClass'](ge,_0x3bf76a);});}['hide'](){const _0x51b9ca=this['editor']['editing']['view'];_0x51b9ca['change'](_0x1ae5e4=>{for(const _0x1fe972 of _0x51b9ca['document']['roots'])_0x1ae5e4['removeClass'](ge,_0x1fe972);});}}class u extends _0xb2d8c8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,Ri];}['init'](){const _0x884ece=this['editor'],_0x33503f=_0x884ece['plugins']['get'](l),_0x4efd57=_0x884ece['plugins']['get'](Ri);_0x884ece['ui']['componentFactory']['add']('exitToEditing',_0x5343ac=>{const _0x2177ad=new _0xbbf7fb(_0x5343ac);return _0x2177ad['set']({'label':R(_0x5343ac,'Back\x20to\x20editing'),'icon':_0x1f7494,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2177ad,'execute',()=>{_0x884ece['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2177ad;}),_0x884ece['ui']['componentFactory']['add']('restoreRevision',_0xd7eb3a=>{const _0x2a3717=new _0xbbf7fb(_0xd7eb3a);return _0x2a3717['set']({'label':R(_0xd7eb3a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2a3717['bind']('isEnabled')['to'](_0x884ece['commands']['get']('restoreRevision')),this['listenTo'](_0x2a3717,'execute',()=>_0x884ece['execute']('restoreRevision')),_0x2a3717;}),_0x884ece['ui']['componentFactory']['add']('changesNavigation',_0x30b03e=>{const _0x2d7c0b=new xi(_0x30b03e),_0x47dd2c=_0x884ece['commands']['get']('showPreviousChange'),_0xefc49a=_0x884ece['commands']['get']('showNextChange');return _0x2d7c0b['bind']('isBackwardNavigationEnabled')['to'](_0x47dd2c,'isEnabled'),_0x2d7c0b['bind']('isForwardNavigationEnabled')['to'](_0xefc49a,'isEnabled'),_0x2d7c0b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x33503f),this['listenTo'](_0x2d7c0b,'execute',(_0x36ff99,_0x3e8761)=>{_0x884ece['execute']('forward'===_0x3e8761?'showNextChange':'showPreviousChange');}),_0x2d7c0b;}),_0x4efd57['show'](),_0x33503f['on']('change:isReady',(_0x176f12,_0x534c88,_0x234836)=>{_0x234836?_0x4efd57['hide']():_0x4efd57['show']();});}}class _i extends ti{['_resizeObserver']=null;constructor(_0x441abb,_0x1357d0){super(_0x441abb,_0x1357d0);const _0x58314b=this['bindTemplate'];this['set']({'label':R(_0x441abb,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x441abb,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x58314b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x134f9a=this['fieldView']['element'];this['_tooltipString']=_0x134f9a['scrollWidth']>_0x134f9a['clientWidth']&&_0x134f9a['value']||'';}}class bi extends _0x2d670e{constructor(_0x296c50,_0x2653f2,_0x3e92a3){super(_0x296c50);const _0x24fa7d=new _0x5dfca0();_0x24fa7d['set']({'content':_0xfa7be3,'viewBox':'0\x200\x2011\x2010'});const _0x2fc4e8=['ck','ck-revision-history-sidebar__revision-author'];_0x3e92a3&&_0x2fc4e8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3c6a8f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x296c50,_0x3e92a3?'Revision\x20creator':'Revision\x20author')},'children':[_0x24fa7d,_0x2653f2['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2fc4e8},'children':_0x3c6a8f});}}function ki(_0x202420,_0xec5e6c){const _0x1994f1=_0x202420['bindTemplate'],_0x48c6b3=_0x202420['locale'],_0x4d01f5=_0x455c58(_0x48c6b3);_0x4d01f5['panelPosition']='sw';const _0x26e600=function(_0x5eebb3,_0x26cde0){const _0x45fb31=function(_0x3f71b3,_0xb0b427){const _0xd0ac48=_0x3f71b3['locale'],_0x179a2d={'Compare\x20against\x20selected':R(_0xd0ac48,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0xd0ac48,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0xd0ac48,'Restore\x20this\x20revision')};return _0xb0b427['map'](_0x4af67c=>{const _0x2578d4=_0x179a2d[_0x4af67c['name']];return _0x2578d4&&_0x2578d4!==_0x4af67c['name']&&(_0x4af67c['name']=_0x2578d4),_0x4af67c;});}(_0x5eebb3,_0x26cde0),_0x4d5ed8=new _0x1e8ea3();for(const _0x1db2db of _0x45fb31){const _0x1c5827={'type':'button','model':new to({'label':_0x1db2db['name'],'class':_0x1db2db['class'],'withText':!0x0,'role':'menuitem','_action':_0x1db2db['action']})};_0x1c5827['model']['bind']('isEnabled')['to'](_0x5eebb3,'isActionsDropdownOpen',_0x4bc565=>'function'!=typeof _0x1db2db['isEnabled']||(!_0x4bc565||_0x1db2db['isEnabled'](_0x5eebb3))),_0x4d5ed8['add'](_0x1c5827);}return _0x4d5ed8;}(_0x202420,_0xec5e6c);return _0x202420['bind']('isActionsDropdownOpen')['to'](_0x4d01f5,'isOpen'),_0x4d01f5['buttonView']['set']({'label':R(_0x48c6b3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2f6449}),_0x4d01f5['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1994f1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1994f1['to'](_0x4c9639=>_0x4c9639['stopPropagation']())}}),_0x4d01f5['on']('execute',_0x13c54c=>{_0x202420['isReady']&&'function'==typeof _0x13c54c['source']['_action']&&_0x13c54c['source']['_action'](_0x202420);}),_0x3388f2(_0x4d01f5,_0x26e600,{'role':'menu'}),_0x4d01f5['listenTo'](_0x202420,'change:isActionsDropdownOpen',(_0x724d8c,_0x32fe12,_0x51545f)=>{if(_0x51545f)for(const _0x56253b of _0x4d01f5['listView']['items']){const _0x530d2d=_0x56253b['children']['first'],_0x5ce316=_0xec5e6c['find'](_0x278d17=>_0x278d17['action']===_0x530d2d['_action'])['isVisible'];_0x56253b['isVisible']=void 0x0===_0x5ce316||_0x5ce316(_0x202420);}}),_0x4d01f5;}class ci extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x2ed6a5(_0x2d670e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x27bdf6,_0x5d0e04,_0x456501,_0x1c56f0){super(_0x27bdf6);const _0x30eb9f=this['bindTemplate'],_0x4b08ab=function(_0x1367b3,_0xa11f74){const _0x594126=Array['from'](_0xa11f74['authors'])['filter'](_0x3018be=>_0x3018be!=_0xa11f74['creator']);return _0xa11f74['creator']&&_0x594126['unshift'](_0xa11f74['creator']),_0x594126['map'](_0x59668b=>new bi(_0x1367b3,_0x59668b,_0x59668b==_0xa11f74['creator']));}(_0x27bdf6,_0x5d0e04);this['id']=_0x5d0e04['id'],this['_revision']=_0x5d0e04,this['_requireRevisionName']=_0x1c56f0,this['bind']('name','createdAt')['to'](_0x5d0e04),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x41d9cc=>{return _0xd217b1=_0x27bdf6['uiLanguage'],(_0x51896d=_0x41d9cc)['toLocaleDateString'](_0xd217b1,{'month':'long','day':'numeric'})+',\x20'+_0x51896d['toLocaleTimeString'](_0xd217b1,{'hour':'numeric','minute':'numeric'});var _0xd217b1,_0x51896d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new _i(_0x27bdf6,_0x84c75d),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4d1b78=>_0x4d1b78||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x532a4a,_0x8bbf17)=>_0x532a4a&&_0x8bbf17),this['revisionActionsView']=_0x456501&&_0x456501['length']?ki(this,_0x456501):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x30eb9f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x30eb9f['if']('isEnabled','ck-disabled',_0x3f31ff=>!_0x3f31ff),_0x30eb9f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x30eb9f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x30eb9f['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':_0x30eb9f['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':_0x4b08ab}]},this['revisionActionsView']],'on':{'click':_0x30eb9f['to'](_0x467a32=>{_0x467a32['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x331d37=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x331d37,'change',()=>{this['_requireRevisionName']&&!_0x331d37['value']||this['fire']('setName',{'id':this['id'],'name':_0x331d37['value']}),_0x331d37['value']||(_0x331d37['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x1f50cb,_0xfc821c){const _0x2d14c5=_0x925bc5['fromJSDate'](_0x1f50cb)['setLocale'](_0xfc821c),_0x2c5d59=_0x925bc5['local'](),_0x10fdf3=_0x2c5d59['minus']({'days':0x1})['startOf']('day');let _0x410815,_0x356318;return _0x2d14c5['hasSame'](_0x2c5d59,'day')?(_0x410815=_0x2d14c5['startOf']('day')['toJSDate'](),_0x356318=_0x2d14c5['toRelativeCalendar']()):_0x2d14c5['hasSame'](_0x10fdf3,'day')?(_0x410815=_0x10fdf3['toJSDate'](),_0x356318=_0x2d14c5['toRelativeCalendar']()):_0x2d14c5['hasSame'](_0x2c5d59,'week')?(_0x410815=_0x2d14c5['startOf']('week')['toJSDate'](),_0x356318=_0x2d14c5['weekdayLong']||''):_0x2d14c5['hasSame'](_0x2c5d59,'year')?(_0x410815=_0x2d14c5['startOf']('month')['toJSDate'](),_0x356318=_0x2d14c5['monthLong']||''):(_0x410815=_0x2d14c5['startOf']('year')['toJSDate'](),_0x356318=String(_0x2d14c5['year'])),{'startDate':_0x410815,'localizedPeriodName':_0x356318};}class vi extends _0x2d670e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2fda86,_0x4b52e7,_0x2878de,_0x2d3d09){super(_0x2fda86);const _0x3eb2ed=di(_0x4b52e7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4b52e7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2878de,this['_requireRevisionName']=_0x2d3d09,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':_0x3eb2ed}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x457eae){const _0x5dd93c=new ci(this['locale'],_0x457eae,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5dd93c);}['removeRevision'](_0x43e216){const _0x38a452=this['revisionViews']['find'](_0xbca1cf=>_0xbca1cf['id']===_0x43e216['id']);this['revisionViews']['remove'](_0x38a452);}}class mi extends _0x2d670e{constructor(_0x56346f){super(_0x56346f);const _0x2e3fda=new _0x5dfca0();_0x2e3fda['content']=_0x378803,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2e3fda,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x56346f,'Revision\x20history')]}]});}}class ai extends _0x2d670e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x206cb7,_0x4807b9,_0x1db2af,_0x478f77){super(_0x206cb7);const _0xc19778=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4807b9,this['_revisionActions']=_0x1db2af,this['_requireRevisionName']=_0x478f77,this['on']('select',(_0x43f5d4,_0x5d018a)=>{this['fire']('revisionSelected',_0x5d018a);}),this['on']('setName',(_0x149d68,_0x452031)=>{this['fire']('revisionSetName',_0x452031);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new mi(_0x206cb7),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xc19778['if']('isEnabled','ck-disabled',_0xc8c13e=>!_0xc8c13e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xeb7bd3 of this['_revisions'])this['_addRevision'](_0xeb7bd3);this['_revisions']['on']('add',(_0x3bb664,_0x343121)=>{this['_addRevision'](_0x343121);}),this['_revisions']['on']('remove',(_0x2b1e32,_0x37e569)=>{this['_removeRevision'](_0x37e569);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3d8ea7=>_0x3d8ea7['revisionViews']['map'](_0x269d64=>_0x269d64))['flat']();}['selectRevision'](_0x51ba8c){for(const _0x4ddfad of this['revisionViews'])_0x51ba8c&&_0x51ba8c['id']===_0x4ddfad['id']?_0x4ddfad['select']():_0x4ddfad['deselect']();}['highlightRevisions'](_0x882836){for(const _0xfb4316 of this['revisionViews'])_0x882836['some'](({id:_0x4eb51f})=>_0x4eb51f===_0xfb4316['id'])?_0xfb4316['highlight']():_0xfb4316['unhighlight']();}['_addRevision'](_0xb499de){const _0x16b9e2=di(_0xb499de['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x13dfd8=this['timePeriodViews']['get'](0x0);_0x13dfd8&&_0x13dfd8['startDate']['getTime']()===_0x16b9e2['getTime']()||(_0x13dfd8=new vi(this['locale'],_0x16b9e2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x13dfd8)),_0x13dfd8['addRevision'](_0xb499de);}['_removeRevision'](_0x18f08){const _0x4fc913=di(_0x18f08['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4fc913)['removeRevision'](_0x18f08);}['_getTimePeriodViewByStartDate'](_0x4f4c91){return this['timePeriodViews']['find'](_0x480e28=>_0x480e28['startDate']['getTime']()===_0x4f4c91['getTime']());}}class f extends _0xb2d8c8{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x3148ac(_0x581663){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x851922,_0x502a54){super(_0x502a54),this['sourceElement']=_0x851922,this['model']['document']['createRoot']();const _0x17c003=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x17c003);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x42a7c3,_0x2d3c75){const _0x2919b9=new this(_0x42a7c3,_0x2d3c75);return await _0x2919b9['initPlugins'](),await _0x2919b9['ui']['init'](_0x42a7c3),await _0x2919b9['data']['init'](_0x2919b9['config']['get']('initialData')||''),_0x2919b9['fire']('ready'),_0x2919b9;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x278e34{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b4434){function _0x49db68(_0x584eb2){return _0x584eb2['map'](_0x2c064c=>String['fromCharCode'](_0x2c064c))['join']('');}super(_0x2b4434),this['result']='end',_0x2b4434[_0x49db68([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49db68([0x76,0x69,0x65,0x77])][_0x49db68([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49db68([0x61,0x75,0x74,0x6f]),_0x2b4434[_0x49db68([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x49db68([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49db68([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x49db68([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x49db68([0x6f,0x6b])});}}class ht extends _0x278e34{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x2b6fa3){if(super(_0x2b6fa3),!this['editor']['config']['get']('revisionHistory'))throw new _0x28ebcb('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3501d1=>this['_showRevisionViewer']({..._0x3501d1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x6f2fd4=>this['_closeRevisionViewer'](_0x6f2fd4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x555d7e=>this['_restoreRevision'](_0x555d7e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xce3592){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xce3592;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x84101b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x84101b);}['getRevision'](_0x5ac6cd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5ac6cd);}['getRevisions'](_0x44bd0f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x44bd0f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1b4e5c=this['editor'],_0x468938=_0x72e067(_0x1b4e5c,d),_0x1430ec=_0x1b4e5c['plugins']['get']('RevisionTracker'),_0x178f8a=_0x1b4e5c['plugins']['get']('Users')['users'];return _0x468938['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x468938['lazyRoots'],(_0x468938['plugins']['push'](at,l,u,class extends _0x278e34{static get['requires'](){return[l,'Users'];}['init'](){const _0x2a7954=this['editor']['plugins']['get']('Users');for(const _0x506bc5 of _0x178f8a)_0x506bc5['isAnonymous']||_0x2a7954['getUser'](_0x506bc5['id'])||_0x2a7954['addUser'](_0x506bc5);const _0x32db20=_0x1430ec['repository']['getRevisions']();let _0x46af7e=null;const _0x4118f6=this['editor']['plugins']['get']('RevisionViewer');_0x4118f6['adapter']=_0x1430ec['adapter'],_0x4118f6['bind']('isEnabled')['to'](_0x1430ec),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1b4e5c,'isReadOnly',_0x11b87f=>!_0x11b87f);for(const _0x20add5 of _0x32db20){const _0x5e05ea=null===_0x20add5['creator'];if(_0x5e05ea&&_0x20add5['toVersion']===_0x20add5['fromVersion'])continue;const _0x404c40=_0x20add5['toJSON']();_0x4118f6['addRevisionData'](_0x404c40,(_0x5cd217,_0x46924b,_0x25f1ad)=>{if(_0x5e05ea){if(_0x46af7e)_0x46af7e['_update'](_0x5cd217,_0x46924b);else{if(!_0x46924b){const _0xa85998=_0x25f1ad['toJSON']();_0xa85998['id']=_0x515d40(),_0x1430ec['saveRevision'](_0xa85998,_0x25f1ad['toVersion'])['then'](_0x6f517f=>{_0x46af7e=_0x6f517f;});}}}else _0x20add5['_update'](_0x5cd217,_0x46924b);});}}},f),_0x468938);}['_enhanceShowRevisionViewerCallback'](){const _0x13d87f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x27d3af=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2f9a97=this['editor']['plugins']['get']('Autosave');await _0x2f9a97['save']();}else await _0x27d3af['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x934dc4=this['editor']['plugins']['get']('Dialog');_0x934dc4['isOpen']&&_0x934dc4['hide']();}const _0x370931=this['_getRevisionViewerEditorConfig']();return _0x13d87f(_0x370931)['then'](_0x2e67df=>{return(this['_viewerEditor']=_0x2e67df,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x2e67df);})['catch'](_0x56ed4b=>(console['error'](_0x56ed4b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x535d73=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x535d73(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xf1a255=this['editor']['plugins']['get']('Annotations');_0xf1a255['refreshVisibility'](),_0xf1a255['refreshPositioning']();}})));}['_showRevisionViewer'](_0x582468){const _0x44e33c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x51c79d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x53598e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x53598e,_0x582468)['then'](_0x40ea26=>(_0x51c79d['style']['display']='block',_0x44e33c['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x40ea26));}['_closeRevisionViewer'](_0x4d5b3e){const _0x5e496c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5e496c['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4d5b3e['destroy']();}async['_restoreRevision'](_0x10d8ee){const _0x4a3d87=this['editor'],_0x24fcb7=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4b5eab=_0x4a3d87['plugins']['get']('RevisionTracker'),_0x95748d=_0x4a3d87['plugins']['get']('RevisionHistoryUtils'),_0x244d56=_0x24fcb7['repository']['getRevision'](_0x10d8ee);let _0x3e6249,_0x66a9d5,_0xe59742;try{await _0x95748d['loadRevisionData'](_0x244d56,this['adapter']),_0x3e6249=_0x95748d['getRevisionDocumentData'](_0x244d56),_0x66a9d5=_0x95748d['getRevisionRootsAttributes'](_0x244d56);}catch(_0x16b622){return void console['error'](_0x16b622);}_0x4a3d87['model']['change'](_0x544333=>{for(const _0x12da11 of Array['from'](_0x4a3d87['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x544333['removeMarker'](_0x12da11);}),_0x24fcb7['isReady']=!0x1,_0x4a3d87['model']['enqueueChange'](_0x21a82a=>{_0x21a82a['setSelection'](null),_0x21a82a['removeSelectionAttribute'](_0x4a3d87['model']['document']['selection']['getAttributeKeys']());const _0x11a301=Object['keys'](_0x3e6249);for(const _0x576109 of _0x4a3d87['model']['document']['roots'])'$graveyard'!=_0x576109['rootName']&&_0x576109['isAttached']()&&!_0x11a301['includes'](_0x576109['rootName'])&&_0x21a82a['detachRoot'](_0x576109);for(const _0x43102e of _0x11a301){let _0x355c49=_0x4a3d87['model']['document']['getRoot'](_0x43102e);_0x355c49&&_0x355c49['isAttached']()||(_0x355c49=_0x21a82a['addRoot'](_0x43102e));const _0x51f1a3=_0x66a9d5[_0x43102e],_0x334eed=Object['keys'](_0x51f1a3),_0x503a8f=_0x3e6249[_0x43102e];for(const _0x4f3311 of _0x355c49['getAttributeKeys']())_0x334eed['includes'](_0x4f3311)||_0x21a82a['removeAttribute'](_0x4f3311,_0x355c49);for(const _0x1ac181 of _0x334eed)_0x21a82a['setAttribute'](_0x1ac181,_0x66a9d5[_0x43102e][_0x1ac181],_0x355c49);_0x21a82a['remove'](_0x21a82a['createRangeIn'](_0x355c49)),_0x21a82a['insert'](_0x4a3d87['data']['parse'](_0x503a8f,_0x355c49),_0x355c49,0x0);}});const _0x2fb2ef=R(_0x4a3d87['locale'],'Restored');if(_0x244d56['name'])_0xe59742=-0x1==_0x244d56['name']['indexOf'](_0x2fb2ef)?_0x2fb2ef+':\x20'+_0x244d56['name']:_0x244d56['name'];else _0xe59742=_0x2fb2ef+':\x20'+(_0x244d56['createdAt']['toLocaleDateString'](_0x4a3d87['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x244d56['createdAt']['toLocaleTimeString'](_0x4a3d87['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4b5eab['saveRevision']({'name':_0xe59742}),_0x24fcb7['isReady']=!0x0,_0x4a3d87['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,fi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x256c15){super(_0x256c15),this['_revisionViewer']=_0x256c15['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1798d4=this['_revisionsRepository']['_revisions'],_0x39827e=this['_createRevisionActions'](),_0x1eae8e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ai(this['editor']['locale'],_0x1798d4,_0x39827e,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',(_0xeaa02e,_0x233ca9)=>{_0x233ca9['revisionViews']['on']('add',(_0x4e841a,_0x589966)=>{_0x589966['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)),_0x1eae8e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x113553=this['_revisionsRepository']['getRevision'](0x0);if(_0x113553){const _0xacd1b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x113553['id']);this['_revisionViewer']['compare'](_0x113553,_0xacd1b);}}['_handleRevisionSelected'](_0x40d7ff,_0x207afe){const _0x26b964=this['_revisionsRepository']['getRevision'](_0x207afe['id']),_0x3ebcdf=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x26b964['id']);this['_revisionViewer']['compare'](_0x26b964,_0x3ebcdf);}['_handleRevisionSetName'](_0x756f2c,_0x13b5e6){this['_revisionsRepository']['getRevision'](_0x13b5e6['id'])['setName'](_0x13b5e6['name']);}['_handleDiffChange'](_0x4300c7,_0x2886a2,_0x30c5f1){const _0x3f735f=this['_revisionsRepository']['getRevisionsInDiff'](_0x30c5f1);_0x3f735f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3f735f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3f735f[0x0]));}['_createRevisionActions'](){const _0xfbcb60=this['editor'],_0x4e0a3b=f['availableRevisionActions'],_0x209667=_0xfbcb60['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x209667['length'])return _0x209667['map'](_0x409f6c=>{const _0x19b284='string'==typeof _0x409f6c?Object['assign']({},_0x4e0a3b[_0x409f6c]):_0x409f6c;return _0x19b284['action']=_0x19b284['action']['bind'](this,_0xfbcb60),_0x19b284['isVisible']&&(_0x19b284['isVisible']=_0x19b284['isVisible']['bind'](this,_0xfbcb60)),_0x19b284;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x779c06},_0x24151b)=>{const _0x39f231=_0x779c06['get'](l),_0x3111ac=_0x39f231['repository'];let _0x5a40c9=_0x39f231['diff']['newRevisionId'],_0x3e6c09=_0x24151b['id'];_0x3111ac['getIndex'](_0x5a40c9)>_0x3111ac['getIndex'](_0x3e6c09)&&([_0x5a40c9,_0x3e6c09]=[_0x3e6c09,_0x5a40c9]),_0x39f231['compare'](_0x5a40c9,_0x3e6c09);},'isVisible':({plugins:_0x18ad82},_0x475157)=>{const _0x52978f=_0x18ad82['get'](l);return!(_0x52978f['repository']['getRevisionsInDiff'](_0x52978f['diff'])['length']>0x2)&&!_0x475157['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x38f154,{id:_0xba4923})=>{_0x38f154['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xba4923);},'isVisible':({plugins:_0x2da6e1},_0x27c816)=>!!_0x2da6e1['get'](l)['repository']['getLaterVisibleRevision'](_0x27c816['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xda5e2a},{id:_0x160fd2,revisionNameView:_0x7f42bb})=>{const _0x4ae193=_0xda5e2a['get'](l),_0x4742a3=_0x4ae193['repository']['getEarlierVisibleRevision'](_0x160fd2);_0x4ae193['compare'](_0x160fd2,_0x4742a3),_0x7f42bb['focus'](),_0x7f42bb['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2eda27,_0x58c5eb){super(_0x2eda27),this['_view']=_0x58c5eb,this['_toolbarConfig']=st(_0x2eda27['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x29f229){const _0x148992=this['editor'],_0x5a6e96=this['view'],_0x4999fd=_0x148992['editing']['view'],_0x420821=_0x5a6e96['editable'],_0x4b9e4b=_0x4999fd['document']['getRoot']();_0x420821['name']=_0x4b9e4b['rootName'],_0x5a6e96['render']();const _0x1c3ba6=_0x420821['element'];this['setEditableElement'](_0x420821['name'],_0x1c3ba6),_0x5a6e96['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4999fd['attachDomRoot'](_0x1c3ba6),this['_elementReplacer']['replace'](_0x29f229,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x29942b=this['view'],_0xe16404=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xe16404['detachDomRoot'](_0x29942b['editable']['name']),_0x29942b['destroy']();}['_initToolbar'](){const _0x488924=this['view'];_0x488924['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x488924['stickyPanel']['limiterElement']=_0x488924['element'],_0x488924['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x612842})=>_0x612842),_0x488924['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x488924['toolbar']);}}class ii extends _0x4fb2a1{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x27a902,_0x450eb3,_0x1b1101={}){super(_0x27a902),this['stickyPanel']=new _0x2fa7fc(_0x27a902),this['toolbar']=new _0x5abd83(_0x27a902,{'shouldGroupWhenFull':_0x1b1101['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x27a902,_0x450eb3);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x14c85d(_0x502371){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x59b103,_0x50e5fe){super(_0x50e5fe),this['sourceElement']=_0x59b103,this['model']['document']['createRoot']();const _0x5dfacd=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5dfacd);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x591be6,_0x55f980){const _0x52ef23=new this(_0x591be6,_0x55f980);return await _0x52ef23['initPlugins'](),await _0x52ef23['ui']['init'](_0x591be6),await _0x52ef23['data']['init'](_0x52ef23['config']['get']('initialData')||''),_0x52ef23['fire']('ready'),_0x52ef23;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0xb2d8c8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x543c10){function _0x340755(_0x5cac25){return _0x5cac25['map'](_0x8ef5d2=>String['fromCharCode'](_0x8ef5d2))['join']('');}super(_0x543c10),this['result']='end',_0x543c10[_0x340755([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x340755([0x76,0x69,0x65,0x77])][_0x340755([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x340755([0x61,0x75,0x74,0x6f]),_0x543c10[_0x340755([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x340755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x340755([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x340755([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x340755([0x6f,0x6b])});}}class ht extends _0xb2d8c8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x3d363c){if(super(_0x3d363c),!this['editor']['config']['get']('revisionHistory'))throw new _0x557c8b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xb088f5=>this['_showRevisionViewer']({..._0xb088f5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x522ba2=>this['_closeRevisionViewer'](_0x522ba2)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x53863c=>this['_restoreRevision'](_0x53863c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5282c3){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5282c3;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x29e37f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x29e37f);}['getRevision'](_0x292b33){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x292b33);}['getRevisions'](_0x4dc78d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4dc78d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x34fe95=this['editor'],_0x1e1602=_0x5ea847(_0x34fe95,d),_0x6f4c49=_0x34fe95['plugins']['get']('RevisionTracker'),_0xd9ed8e=_0x34fe95['plugins']['get']('Users')['users'];return _0x1e1602['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1e1602['lazyRoots'],(_0x1e1602['plugins']['push'](at,l,u,class extends _0xb2d8c8{static get['requires'](){return[l,'Users'];}['init'](){const _0x299b7e=this['editor']['plugins']['get']('Users');for(const _0x36a408 of _0xd9ed8e)_0x36a408['isAnonymous']||_0x299b7e['getUser'](_0x36a408['id'])||_0x299b7e['addUser'](_0x36a408);const _0x5cb625=_0x6f4c49['repository']['getRevisions']();let _0x130793=null;const _0xfc7522=this['editor']['plugins']['get']('RevisionViewer');_0xfc7522['adapter']=_0x6f4c49['adapter'],_0xfc7522['bind']('isEnabled')['to'](_0x6f4c49),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x34fe95,'isReadOnly',_0x28588d=>!_0x28588d);for(const _0x24ff9b of _0x5cb625){const _0x1d1d88=null===_0x24ff9b['creator'];if(_0x1d1d88&&_0x24ff9b['toVersion']===_0x24ff9b['fromVersion'])continue;const _0x76180a=_0x24ff9b['toJSON']();_0xfc7522['addRevisionData'](_0x76180a,(_0x1f6f49,_0x350ebd,_0x526660)=>{if(_0x1d1d88){if(_0x130793)_0x130793['_update'](_0x1f6f49,_0x350ebd);else{if(!_0x350ebd){const _0x3c25d3=_0x526660['toJSON']();_0x3c25d3['id']=_0x189557(),_0x6f4c49['saveRevision'](_0x3c25d3,_0x526660['toVersion'])['then'](_0x104fe9=>{_0x130793=_0x104fe9;});}}}else _0x24ff9b['_update'](_0x1f6f49,_0x350ebd);});}}},f),_0x1e1602);}['_enhanceShowRevisionViewerCallback'](){const _0x11f0de=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x322e88=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x476045=this['editor']['plugins']['get']('Autosave');await _0x476045['save']();}else await _0x322e88['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1cfae9=this['editor']['plugins']['get']('Dialog');_0x1cfae9['isOpen']&&_0x1cfae9['hide']();}const _0x860e44=this['_getRevisionViewerEditorConfig']();return _0x11f0de(_0x860e44)['then'](_0x11698e=>{return(this['_viewerEditor']=_0x11698e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x11698e);})['catch'](_0x264b6=>(console['error'](_0x264b6),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1079af=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1079af(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5f580a=this['editor']['plugins']['get']('Annotations');_0x5f580a['refreshVisibility'](),_0x5f580a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x9904c1){const _0xc27b32=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xe53d01=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1c25c5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x1c25c5,_0x9904c1)['then'](_0x3a2dd1=>(_0xe53d01['style']['display']='block',_0xc27b32['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3a2dd1));}['_closeRevisionViewer'](_0x119d8c){const _0x16f018=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x16f018['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x119d8c['destroy']();}async['_restoreRevision'](_0x1d550f){const _0x8bb375=this['editor'],_0x49e212=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x44451c=_0x8bb375['plugins']['get']('RevisionTracker'),_0x378cfb=_0x8bb375['plugins']['get']('RevisionHistoryUtils'),_0x243091=_0x49e212['repository']['getRevision'](_0x1d550f);let _0x599402,_0x922610,_0x3a9b33;try{await _0x378cfb['loadRevisionData'](_0x243091,this['adapter']),_0x599402=_0x378cfb['getRevisionDocumentData'](_0x243091),_0x922610=_0x378cfb['getRevisionRootsAttributes'](_0x243091);}catch(_0x239893){return void console['error'](_0x239893);}_0x8bb375['model']['change'](_0x4581b8=>{for(const _0x4bf7aa of Array['from'](_0x8bb375['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4581b8['removeMarker'](_0x4bf7aa);}),_0x49e212['isReady']=!0x1,_0x8bb375['model']['enqueueChange'](_0x229cb1=>{_0x229cb1['setSelection'](null),_0x229cb1['removeSelectionAttribute'](_0x8bb375['model']['document']['selection']['getAttributeKeys']());const _0xae747f=Object['keys'](_0x599402);for(const _0x42bcb4 of _0x8bb375['model']['document']['roots'])'$graveyard'!=_0x42bcb4['rootName']&&_0x42bcb4['isAttached']()&&!_0xae747f['includes'](_0x42bcb4['rootName'])&&_0x229cb1['detachRoot'](_0x42bcb4);for(const _0x468e34 of _0xae747f){let _0x535540=_0x8bb375['model']['document']['getRoot'](_0x468e34);_0x535540&&_0x535540['isAttached']()||(_0x535540=_0x229cb1['addRoot'](_0x468e34));const _0x52baba=_0x922610[_0x468e34],_0x48078b=Object['keys'](_0x52baba),_0x3f8b82=_0x599402[_0x468e34];for(const _0xc8df31 of _0x535540['getAttributeKeys']())_0x48078b['includes'](_0xc8df31)||_0x229cb1['removeAttribute'](_0xc8df31,_0x535540);for(const _0x3e41e6 of _0x48078b)_0x229cb1['setAttribute'](_0x3e41e6,_0x922610[_0x468e34][_0x3e41e6],_0x535540);_0x229cb1['remove'](_0x229cb1['createRangeIn'](_0x535540)),_0x229cb1['insert'](_0x8bb375['data']['parse'](_0x3f8b82,_0x535540),_0x535540,0x0);}});const _0x1d26d8=R(_0x8bb375['locale'],'Restored');if(_0x243091['name'])_0x3a9b33=-0x1==_0x243091['name']['indexOf'](_0x1d26d8)?_0x1d26d8+':\x20'+_0x243091['name']:_0x243091['name'];else _0x3a9b33=_0x1d26d8+':\x20'+(_0x243091['createdAt']['toLocaleDateString'](_0x8bb375['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x243091['createdAt']['toLocaleTimeString'](_0x8bb375['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x44451c['saveRevision']({'name':_0x3a9b33}),_0x49e212['isReady']=!0x0,_0x8bb375['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,Ri as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|