@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250824.0 → 0.0.0-nightly-20250826.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +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 +11 -11
- package/src/changeitem.js +2 -2
- 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.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
|
-
_0x4995c0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3c2f3c){super(),this['id']=_0x3c2f3c['id']||_0x474356(),this['creator']=_0x3c2f3c['creator']||null,this['authors']=_0x3c2f3c['authors']||[],this['diffData']=_0x3c2f3c['diffData']||null,this['toVersion']=_0x3c2f3c['toVersion']||0x0,this['fromVersion']=_0x3c2f3c['fromVersion']||0x0,this['set']('name',_0x3c2f3c['name']||''),this['set']('createdAt',_0x3c2f3c['createdAt']||new Date()),this['set']('attributes',_0x3c2f3c['attributes']||{});}['setName'](_0x112375){this['_update']({'name':_0x112375});}['setAttribute'](_0x17a0ef,_0x213fc1){const _0xc364f4=_0x1fcaa9(this['attributes']);_0x73dd16(_0xc364f4,_0x17a0ef,_0x213fc1),this['_update']({'attributes':_0xc364f4});}['removeAttribute'](_0xb56153){const _0x525769=_0x1fcaa9(this['attributes']);_0x8581f7(_0x525769,_0xb56153),this['_update']({'attributes':_0x525769});}['_update'](_0x263651,_0x21f05a=!0x1){let _0xf17d17=!0x1;const _0x35b841={'id':this['id']},_0x3e6ed7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2d42f2 of _0x3e6ed7){const _0xb124e2=_0x263651[_0x2d42f2];void 0x0!==_0xb124e2&&_0xb124e2!==this[_0x2d42f2]&&(this[_0x2d42f2]=_0xb124e2,_0x35b841[_0x2d42f2]=_0xb124e2,_0xf17d17=!0x0);}_0xf17d17&&(_0x35b841['authors']&&(_0x35b841['authorsIds']=_0x35b841['authors']['map'](_0x486b3d=>_0x486b3d['id']),delete _0x35b841['authors']),this['fire']('_update',_0x35b841,_0x21f05a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x78acb1=>_0x78acb1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x187c04{['_revisions'];static get['requires'](){return[_0x56dc43];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5e3b67){super(_0x5e3b67),this['_revisions']=new _0x36258e();}['afterInit'](){!async function(_0x19da00){const _0x57c55b=_0x2c4736([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]),_0x576219=0xeb829,_0x4cb40f=0x7374585f,_0x3c6c11=0x7373293f^_0x4cb40f,_0x4b2497=window[_0x2c4736([0x44,0x61,0x74,0x65])][_0x2c4736([0x6e,0x6f,0x77])](),_0x4db2be=_0x19da00[_0x2c4736([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x149395=new window[(_0x2c4736([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ed2eb=>{_0x4db2be[_0x2c4736([0x6f,0x6e,0x63,0x65])](_0x2c4736([0x72,0x65,0x61,0x64,0x79]),_0x4ed2eb);}),_0x843ad={[_0x2c4736([0x6b,0x74,0x79])]:_0x2c4736([0x45,0x43]),[_0x2c4736([0x75,0x73,0x65])]:_0x2c4736([0x73,0x69,0x67]),[_0x2c4736([0x63,0x72,0x76])]:_0x2c4736([0x50,0x2d,0x32,0x35,0x36]),[_0x2c4736([0x78])]:_0x2c4736([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]),[_0x2c4736([0x79])]:_0x2c4736([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]),[_0x2c4736([0x61,0x6c,0x67])]:_0x2c4736([0x45,0x53,0x32,0x35,0x36])},_0x524c9c=_0x4db2be[_0x2c4736([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c4736([0x67,0x65,0x74])](_0x2c4736([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x367645(){let _0x48125c,_0x9c0ee3=null,_0x546d40=null;try{if(_0x524c9c==_0x2c4736([0x47,0x50,0x4c]))return _0x2c4736([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48125c=_0x24e68d(),!_0x48125c)return _0x2c4736([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48125c[_0x2c4736([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x546d40=_0x4aff98(_0x48125c[_0x2c4736([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48125c[_0x2c4736([0x6a,0x74,0x69])])),await _0x4c36bb()?_0x1b032d()?_0x2c7084()?_0x2c4736([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c8dbb()?(_0x48125c[_0x2c4736([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c4736([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9c0ee3=_0x54cd2c(_0x2c4736([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48125c[_0x2c4736([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c4736([0x74,0x72,0x69,0x61,0x6c])&&(_0x9c0ee3=_0x54cd2c(_0x2c4736([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a9754()):_0x2c4736([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c4736([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c4736([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c4736([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c7084(){const _0xc169a7=[_0x2c4736([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c4736([0x74,0x72,0x69,0x61,0x6c])][_0x2c4736([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48125c[_0x2c4736([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b2497/0x3e8:0xe10*_0x3c6c11;return _0x48125c[_0x2c4736([0x65,0x78,0x70])]<_0xc169a7;}function _0x1b032d(){const _0x596804=_0x48125c[_0x2c4736([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x596804)return!0x1;if(_0x596804[_0x2c4736([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4736([0x2a])))return!0x0;if(_0x596804[_0x2c4736([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4736([0x52,0x48])))return!0x0;if(_0x596804[_0x2c4736([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4736([0x52,0x52,0x48]))){if(_0x2ea1a5())return!0x0;if(_0x4ccbeb()||_0x373cb4())return!0x0;}return!0x1;}function _0x1c8dbb(){const _0x2c7ad3=_0x48125c[_0x2c4736([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c7ad3||0x0==_0x2c7ad3[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3aa771}=new URL(window[_0x2c4736([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c7ad3[_0x2c4736([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aa771))return!0x0;const _0x17e673=_0x3aa771[_0x2c4736([0x73,0x70,0x6c,0x69,0x74])](_0x2c4736([0x2e]));return _0x2c7ad3[_0x2c4736([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29150e=>_0x29150e[_0x2c4736([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4736([0x2a])))[_0x2c4736([0x6d,0x61,0x70])](_0x2ad427=>_0x2ad427[_0x2c4736([0x73,0x70,0x6c,0x69,0x74])](_0x2c4736([0x2e])))[_0x2c4736([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x139e63=>_0x139e63[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x17e673[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c4736([0x6d,0x61,0x70])](_0x5da797=>Array(_0x17e673[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5da797[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c4736([0x66,0x69,0x6c,0x6c])](_0x5da797[0x0]===_0x2c4736([0x2a])?_0x2c4736([0x2a]):'')[_0x2c4736([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5da797))[_0x2c4736([0x73,0x6f,0x6d,0x65])](_0x5379e0=>_0x17e673[_0x2c4736([0x65,0x76,0x65,0x72,0x79])]((_0x2865e8,_0x5454c2)=>_0x5379e0[_0x5454c2]===_0x2865e8||_0x5379e0[_0x5454c2]===_0x2c4736([0x2a])));}function _0x4a9754(){return _0x9c0ee3&&_0x546d40?new window[(_0x2c4736([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ac16c,_0x432ab4)=>{_0x9c0ee3[_0x2c4736([0x74,0x68,0x65,0x6e])](_0x1ac16c,_0x432ab4),_0x546d40[_0x2c4736([0x74,0x68,0x65,0x6e])](_0x4adf45=>{_0x4adf45!=_0x2c4736([0x56,0x61,0x6c,0x69,0x64])&&_0x1ac16c(_0x4adf45);},_0x432ab4);}):_0x9c0ee3||_0x546d40||_0x2c4736([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4aff98(_0xa75503,_0x241c88){return new window[(_0x2c4736([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1439f6=>{if(_0x5b052b())return _0x1439f6(_0x2c4736([0x56,0x61,0x6c,0x69,0x64]));_0x485945(),_0x4db2be[_0x2c4736([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c4736([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x126a57=!0x1;const _0x422529=_0x474356();function _0x38f516(_0x257a71){return!!_0x257a71&&(typeof _0x257a71===_0x2c4736([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x257a71===_0x2c4736([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x257a71[_0x2c4736([0x74,0x68,0x65,0x6e])]===_0x2c4736([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x257a71[_0x2c4736([0x63,0x61,0x74,0x63,0x68])]===_0x2c4736([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x23d049(_0x491e39){_0x5cc2ce(_0x491e39)[_0x2c4736([0x74,0x68,0x65,0x6e])](_0x1d0a62=>{if(!_0x1d0a62||_0x1d0a62[_0x2c4736([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c4736([0x6f,0x6b]))return _0x2c4736([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd8f690(_0x29bf4e(_0x422529+_0x241c88))!=_0x1d0a62[_0x2c4736([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c4736([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c4736([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c4736([0x74,0x68,0x65,0x6e])](_0x4cf015=>(_0x2d4bf3(),_0x4cf015),()=>{const _0x149bd4=_0x59e62b();return null==_0x149bd4?(_0x2d4bf3(),_0x2c4736([0x56,0x61,0x6c,0x69,0x64])):_0x2c4736(_0x4b2497-_0x149bd4>(0x5778dc5f^_0x4cb40f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c4736([0x74,0x68,0x65,0x6e])](_0x1439f6)[_0x2c4736([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1439f6(_0x2c4736([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x69c69=0x7342b6df^_0x4cb40f;function _0x2d4bf3(){const _0x18d850=_0x2c4736([0x6c,0x6c,0x63,0x74,0x2d])+_0xd8f690(_0x29bf4e(_0xa75503)),_0x5ccd08=_0x5edaf4(_0xd8f690(window[_0x2c4736([0x4d,0x61,0x74,0x68])][_0x2c4736([0x63,0x65,0x69,0x6c])](_0x4b2497/_0x69c69)));window[_0x2c4736([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c4736([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18d850,_0x5ccd08);}function _0x59e62b(){const _0x325630=_0x2c4736([0x6c,0x6c,0x63,0x74,0x2d])+_0xd8f690(_0x29bf4e(_0xa75503)),_0x1246c1=window[_0x2c4736([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c4736([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325630);return _0x1246c1?window[_0x2c4736([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5edaf4(_0x1246c1),0x10)*_0x69c69:null;}function _0x5cc2ce(_0x345af6){return new window[(_0x2c4736([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13fe07,_0xaf32ed)=>{_0x345af6[_0x2c4736([0x74,0x68,0x65,0x6e])](_0x13fe07,_0xaf32ed),window[_0x2c4736([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaf32ed,0x73758c9f^_0x4cb40f);});}}_0x4db2be[_0x2c4736([0x6f,0x6e])](_0x2c4736([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36d0b4,_0x34bd12)=>{if(_0x34bd12[0x0]!=_0xa75503)return _0x1439f6(_0x2c4736([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34bd12[0x1]={..._0x34bd12[0x1],[_0x2c4736([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x422529};},{[_0x2c4736([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c4736([0x68,0x69,0x67,0x68])}),_0x4db2be[_0x2c4736([0x6f,0x6e])](_0x2c4736([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f62c6=>{_0x38f516(_0x2f62c6[_0x2c4736([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x126a57=!0x0,_0x23d049(_0x2f62c6[_0x2c4736([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c4736([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c4736([0x6c,0x6f,0x77])}),_0x149395[_0x2c4736([0x74,0x68,0x65,0x6e])](()=>{_0x126a57||_0x1439f6(_0x2c4736([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b052b(){return _0x4db2be[_0x2c4736([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c4736([0x76,0x69,0x65,0x77])][_0x2c4736([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c4736([0x61,0x75,0x74,0x6f]);}function _0x485945(){_0x4db2be[_0x2c4736([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c4736([0x76,0x69,0x65,0x77])][_0x2c4736([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c4736([0x61,0x75,0x74,0x6f]);}}function _0x54cd2c(_0x2c80b4){const _0x728c1c=[new window[(_0x2c4736([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48ef6d=>setTimeout(_0x48ef6d,0x737d6693^_0x4cb40f)),_0x149395[_0x2c4736([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c4736([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x409b96=>{const _0x3f1ac4=0x73745858^_0x4cb40f,_0x1ffa08=_0x19da00[_0x2c4736([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5ad26e(){_0x1ffa08[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3f1ac4&&_0x409b96();}_0x5ad26e(),_0x1ffa08[_0x2c4736([0x6f,0x6e])](_0x2c4736([0x61,0x64,0x64]),_0x5ad26e);})),new window[(_0x2c4736([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x981191=>{function _0x569a41(){for(const _0x218054 in window)if(window[_0x2c4736([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2c4736([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x218054))&&window[_0x218054]==_0x576219)return _0x981191();_0x4db2be[_0x2c4736([0x73,0x74,0x61,0x74,0x65])]!=_0x2c4736([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2c4736([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x569a41,0x73744bd7^_0x4cb40f);}_0x44b3bf(_0x2c4736([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x569a41();})];return window[_0x2c4736([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c4736([0x72,0x61,0x63,0x65])](_0x728c1c)[_0x2c4736([0x74,0x68,0x65,0x6e])](()=>_0x2c80b4);}async function _0x513bb8(){if(await _0x149395,_0x44b3bf(_0x2c4736([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5a9710=_0x19da00[_0x2c4736([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x308a24=_0x19da00[_0x2c4736([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])](_0x5a9710[_0x2c4736([0x69,0x64])]),_0x5003ff=_0x400321(_0x2c4736([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5003ff[_0x2c4736([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5a9710['id'],_0x308a24?_0x308a24['id']:null,!0x0),_0x5003ff[_0x2c4736([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c4736([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5003ff[_0x2c4736([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5003ff[_0x2c4736([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2c5116,void(_0x5003ff[_0x2c4736([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2c5116);}if(_0x44b3bf(_0x2c4736([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5d6d9c=_0x400321(_0x2c4736([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5d6d9c[_0x2c4736([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c4736([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5d6d9c[_0x2c4736([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5d6d9c[_0x2c4736([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2c5116,_0x5d6d9c[_0x2c4736([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2c5116;}_0x4db2be[_0x2c4736([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c4736([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c5116,_0x4db2be[_0x2c4736([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c4736([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c5116,_0x4db2be[_0x2c4736([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c4736([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ea1a5(){return _0x44b3bf(_0x2c4736([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x400321(_0x2c4736([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c4736([0x73,0x74,0x61,0x74,0x65])]==_0x2c4736([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ccbeb(){return _0x44b3bf(_0x2c4736([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 _0x373cb4(){return _0x44b3bf(_0x2c4736([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x48593b(_0x23e1ac){const _0x73f782=_0x2ff24b();_0x4db2be[_0x73f782]=_0x2c4736([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])+_0x23e1ac,_0x23e1ac[_0x2c4736([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2c4736([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2ff24b()]=_0x576219),_0x23e1ac!=_0x2c4736([0x56,0x61,0x6c,0x69,0x64])&&_0x513bb8();}function _0x2ff24b(){const _0x1103c4=window[_0x2c4736([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c4736([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c4736([0x6e,0x6f,0x77])]())[_0x2c4736([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c4736([0x2e]),'');let _0x3525aa=_0x2c4736([0x73]);for(let _0x437a99=0x0;_0x437a99<_0x1103c4[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x437a99+=0x2){let _0x2aad05=window[_0x2c4736([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1103c4[_0x2c4736([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x437a99,_0x437a99+0x2));_0x2aad05>=_0x57c55b[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2aad05-=_0x57c55b[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3525aa+=_0x57c55b[_0x2aad05];}return _0x3525aa;}function _0x24e68d(){const _0x59fc22=_0x524c9c[_0x2c4736([0x73,0x70,0x6c,0x69,0x74])](_0x2c4736([0x2e]));if(0x3!=_0x59fc22[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ac9f5(_0x59fc22[0x1]);function _0x2ac9f5(_0x3f7286){const _0x422c09=_0xb8186(_0x3f7286);return _0x422c09&&_0x27327b()?_0x422c09:null;function _0x27327b(){const _0x38d300=_0x422c09[_0x2c4736([0x6a,0x74,0x69])],_0x2e6f13=window[_0x2c4736([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38d300[_0x2c4736([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38d300[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x139efb={..._0x422c09,[_0x2c4736([0x6a,0x74,0x69])]:_0x38d300[_0x2c4736([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x38d300[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x139efb[_0x2c4736([0x76,0x63])],_0x29bf4e(_0x139efb)==_0x2e6f13;}}}async function _0x4c36bb(){let _0x4ca9b2=!0x0;try{const _0x21cddc=_0x524c9c[_0x2c4736([0x73,0x70,0x6c,0x69,0x74])](_0x2c4736([0x2e])),[_0x4c9aae,_0x1bdf53,_0x355f7c]=_0x21cddc;return _0xfb4e88(_0x4c9aae),await _0x5b96f4(_0x4c9aae,_0x1bdf53,_0x355f7c),_0x4ca9b2;}catch{return!0x1;}function _0xfb4e88(_0x4ed6b9){const _0x40e737=_0xb8186(_0x4ed6b9);_0x40e737&&_0x40e737[_0x2c4736([0x61,0x6c,0x67])]==_0x2c4736([0x45,0x53,0x32,0x35,0x36])||(_0x4ca9b2=!0x1);}async function _0x5b96f4(_0x3e67b1,_0x379a1,_0x2611fa){const _0x503057=window[_0x2c4736([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c4736([0x66,0x72,0x6f,0x6d])](_0xdb229b(_0x2611fa),_0x218281=>_0x218281[_0x2c4736([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x71d5d6=new window[(_0x2c4736([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c4736([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e67b1+_0x2c4736([0x2e])+_0x379a1),_0x2c56ff=window[_0x2c4736([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c4736([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c56ff)return;const _0x5cc97b=await _0x2c56ff[_0x2c4736([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c4736([0x6a,0x77,0x6b]),_0x843ad,{[_0x2c4736([0x6e,0x61,0x6d,0x65])]:_0x2c4736([0x45,0x43,0x44,0x53,0x41]),[_0x2c4736([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c4736([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c4736([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c56ff[_0x2c4736([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c4736([0x6e,0x61,0x6d,0x65])]:_0x2c4736([0x45,0x43,0x44,0x53,0x41]),[_0x2c4736([0x68,0x61,0x73,0x68])]:{[_0x2c4736([0x6e,0x61,0x6d,0x65])]:_0x2c4736([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cc97b,_0x503057,_0x71d5d6)||(_0x4ca9b2=!0x1);}}function _0xb8186(_0x44cfe9){return _0x44cfe9[_0x2c4736([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c4736([0x65,0x79]))?JSON[_0x2c4736([0x70,0x61,0x72,0x73,0x65])](_0xdb229b(_0x44cfe9)):null;}function _0xdb229b(_0x523363){return window[_0x2c4736([0x61,0x74,0x6f,0x62])](_0x523363[_0x2c4736([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c4736([0x2b]))[_0x2c4736([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c4736([0x2f])));}function _0x29bf4e(_0x1af896){let _0x173e1a=0x1505;function _0x258672(_0x39394f){for(let _0x2a6f0d=0x0;_0x2a6f0d<_0x39394f[_0x2c4736([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a6f0d++){const _0x341d8d=_0x39394f[_0x2c4736([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a6f0d);_0x173e1a=(_0x173e1a<<0x5)+_0x173e1a+_0x341d8d,_0x173e1a&=_0x173e1a;}}function _0x14e91f(_0x97321f){Array[_0x2c4736([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x97321f)?_0x97321f[_0x2c4736([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14e91f):_0x97321f&&typeof _0x97321f==_0x2c4736([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c4736([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x97321f)[_0x2c4736([0x73,0x6f,0x72,0x74])]()[_0x2c4736([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46b3c1,_0x2b4376])=>{_0x258672(_0x46b3c1),_0x14e91f(_0x2b4376);}):_0x258672(window[_0x2c4736([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x97321f));}return _0x14e91f(_0x1af896),_0x173e1a>>>0x0;}function _0xd8f690(_0x4a05f3){return _0x4a05f3[_0x2c4736([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c4736([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c4736([0x30]));}function _0x5edaf4(_0x3007f5){return _0x3007f5[_0x2c4736([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c4736([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c4736([0x6a,0x6f,0x69,0x6e])]('');}function _0x44b3bf(_0x330584){return _0x4db2be[_0x2c4736([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c4736([0x68,0x61,0x73])](_0x330584);}function _0x400321(_0x1cbd62){return _0x4db2be[_0x2c4736([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c4736([0x67,0x65,0x74])](_0x1cbd62);}function _0x2c5116(){}function _0x2c4736(_0x25671b){return _0x25671b['map'](_0x190798=>String['fromCharCode'](_0x190798))['join']('');}_0x48593b(await _0x367645());}(this);}['createRevision'](_0x474da4){const _0x153e8e=this['editor']['plugins']['get']('Users');return new I({'id':_0x474da4['id'],'name':_0x474da4['name'],'creator':_0x474da4['creatorId']?_0x153e8e['getUser'](_0x474da4['creatorId']):null,'diffData':_0x474da4['diffData']||_0x474da4['data'],'authors':_0x474da4['authorsIds']['map'](_0x1aaaef=>_0x153e8e['getUser'](_0x1aaaef)),'createdAt':new Date(_0x474da4['createdAt']),'attributes':_0x474da4['attributes'],'fromVersion':_0x474da4['fromVersion'],'toVersion':_0x474da4['toVersion']});}['addRevision'](_0x208caf,_0x8e38ad=0x0){this['_revisions']['add'](_0x208caf,_0x8e38ad);}['getRevision'](_0x4aa1bd){return this['_revisions']['get'](_0x4aa1bd);}['getRevisions'](_0x177ad7={'toJSON':!0x1}){const _0x4c3581=Array['from'](this['_revisions']);return _0x4c3581['reverse'](),_0x177ad7['toJSON']?_0x4c3581['map'](_0x1ed796=>_0x1ed796['toJSON']()):_0x4c3581;}['getIndex'](_0x476f73){return this['_revisions']['getIndex'](_0x476f73);}['getEarlierVisibleRevision'](_0xd17e90){const [,_0x339f69]=this['getRevisionsIterator'](_0xd17e90,{'direction':'earlier'});return _0x339f69;}['getLaterVisibleRevision'](_0x154468){const [,_0x10ad75]=this['getRevisionsIterator'](_0x154468,{'direction':'later'});return _0x10ad75;}['getRevisionsInDiff'](_0xd144c0){const _0x54a0c0=[];for(const _0x164d25 of this['getRevisionsIterator'](_0xd144c0['newRevisionId']))if(_0x54a0c0['push'](_0x164d25),_0x164d25['id']===_0xd144c0['oldRevisionId'])break;return _0x54a0c0;}*['getRevisionsIterator'](_0x476d53,{direction:_0x5519b9='earlier',filter:_0x50c5f7=()=>!0x0}={}){const _0x256ef7='earlier'===_0x5519b9?0x1:-0x1;let _0x5c66f6=this['_revisions']['get'](_0x476d53),_0x2b8d19=this['getIndex'](_0x5c66f6);for(yield _0x5c66f6;_0x5c66f6;){if(_0x2b8d19+=_0x256ef7,_0x5c66f6=this['getRevision'](_0x2b8d19),!_0x5c66f6)return;_0x50c5f7(_0x5c66f6)&&(yield _0x5c66f6);}}}class $ extends _0x187c04{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x218289,'c'],[_0x5a7422,'a'],[_0x465f86,'e'],[_0x568cf8,'r'],[_0x165b94,'u']]);['_typeCharToViewClass']=new Map([['c',_0x218289],['a',_0x5a7422],['e',_0x465f86],['r',_0x568cf8],['u',_0x165b94]]);async['loadRevisionData'](_0x3acaf9,_0x4eb97c){if(_0x3acaf9['diffData']||!_0x4eb97c)return;const _0x3f920a=this['editor']['config']['get']('collaboration.channelId'),_0x57337b=await _0x4eb97c['getRevision']({'channelId':_0x3f920a,'revisionId':_0x3acaf9['id']});_0x3acaf9['diffData']=_0x57337b['diffData'];}['getRevisionDocumentData'](_0xb7f0a0){const _0x259535={};for(const _0x256587 in _0xb7f0a0['diffData']){if(_0xb7f0a0['diffData'][_0x256587]['attachChange']&&!_0xb7f0a0['diffData'][_0x256587]['attachChange']['isAttached'])continue;const _0x4b6358=this['_removeRevisionMarkers'](JSON['parse'](_0xb7f0a0['diffData'][_0x256587]['insertions'])),_0x968eff=this['editor']['editing']['view']['document'],_0x441630=new _0x134334(_0x968eff,_0x4b6358['map'](_0x27b223=>this['_getViewFromDiffObj'](_0x27b223,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x259535[_0x256587]=this['editor']['data']['processor']['toData'](_0x441630),this['editor']['data']['processor']['useFillerType']('default');}return _0x259535;}['getRevisionRootsAttributes'](_0x27bda3){const _0x4d4150={};for(const _0xfb470c in _0x27bda3['diffData'])_0x27bda3['diffData'][_0xfb470c]['attachChange']&&!_0x27bda3['diffData'][_0xfb470c]['attachChange']['isAttached']||(_0x4d4150[_0xfb470c]=_0x27bda3['diffData'][_0xfb470c]['attributesAfter']||{});return _0x4d4150;}['_getTypeCharForViewElement'](_0x33f9e9){return this['_viewClassToTypeChar']['get'](_0x33f9e9['constructor']);}['_getViewFromDiffObj'](_0x3fa1e5,_0x2eb664){const _0x4dce23=this['editor']['editing']['view']['document'];if('string'==typeof _0x3fa1e5)return new _0x51a168(_0x4dce23,_0x3fa1e5);{let _0x15c4b9,_0x3c49e2;_0x3c49e2='u'==_0x3fa1e5['type']||'r'==_0x3fa1e5['type']?[]:_0x3fa1e5['children']['map'](_0x480d8e=>this['_getViewFromDiffObj'](_0x480d8e,_0x2eb664));const _0x506bd8=this['_typeCharToViewClass']['get'](_0x3fa1e5['type'])||_0x1f80a7,_0x4223a8=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x15c4b9=new _0x506bd8(_0x4dce23,_0x3fa1e5['name'],_0x3fa1e5['attributes'],_0x3c49e2),'u'==_0x3fa1e5['type']&&_0x3fa1e5['children'][0x0]){const _0x252753=_0x3fa1e5['children'][0x0];if(_0x15c4b9['render']=function(_0x28ee4f){const _0x192ba0=_0x28ee4f['createElement']('div');return _0x192ba0['innerHTML']=_0x252753,_0x192ba0['childNodes'][0x0];},_0x2eb664){const _0x2be004=new _0x134334(_0x4dce23);_0x2be004['_appendChild'](_0x15c4b9);const _0x3075b1=Array['from'](_0x4223a8['viewChildrenToDom'](_0x2be004,{'bind':!0x1})),_0x2bead9=_0x4223a8['domDocument']['createElement']('div');_0x2bead9['append'](..._0x3075b1),_0x15c4b9=Array['from'](_0x4223a8['domChildrenToView'](_0x2bead9))[0x0];}}else{if('r'==_0x3fa1e5['type']&&_0x3fa1e5['children'][0x0]){const _0x3317a3=_0x3fa1e5['children'][0x0];if(_0x15c4b9['render']=function(_0x43daf1){_0x43daf1['innerHTML']=_0x3317a3;},_0x2eb664){const _0x5979b1=new _0x134334(_0x4dce23);_0x5979b1['_appendChild'](_0x15c4b9);const _0x29a986=Array['from'](_0x4223a8['viewChildrenToDom'](_0x5979b1,{'bind':!0x1})),_0x5d481f=_0x4223a8['domDocument']['createElement']('div');_0x5d481f['append'](..._0x29a986);const _0x1be59c=Array['from'](_0x4223a8['domChildrenToView'](_0x5d481f));_0x1be59c['length']>0x1?_0x15c4b9['_appendChild'](_0x1be59c):_0x15c4b9=_0x1be59c[0x0];}}}if(_0x3fa1e5['customProperties']){for(const [_0x4e9c1f,_0x5afd56]of _0x3fa1e5['customProperties'])_0x15c4b9['_setCustomProperty'](_0x4e9c1f,_0x5afd56);}const _0x353a62=void 0x0===_0x3fa1e5['fillerOffset']?null:_0x3fa1e5['fillerOffset'];return null!==_0x353a62&&(_0x15c4b9['getFillerOffset']=()=>_0x353a62),_0x15c4b9;}}['_makeModelFromViewString'](_0x3548a2){const _0x3153b2=JSON['parse'](_0x3548a2),_0x29fd2e=this['editor']['editing']['view']['document'],_0x5e8946=new _0x134334(_0x29fd2e,_0x3153b2['map'](_0x295f5d=>this['_getViewFromDiffObj'](_0x295f5d,!0x0)));return this['editor']['data']['toModel'](_0x5e8946);}['_removeRevisionMarkers'](_0x49d168){return(_0x49d168=_0x49d168['filter'](_0x3b03c7=>!_0x3b03c7['name']||'revision-start'!==_0x3b03c7['name']&&'revision-end'!==_0x3b03c7['name']))['forEach'](_0x15472d=>{'string'!=typeof _0x15472d&&(_0x15472d['children']=this['_removeRevisionMarkers'](_0x15472d['children']),_0x15472d['attributes']=_0x15472d['attributes']['filter'](_0x4c6994=>!_0x4c6994[0x0]['startsWith']('data-revision-')));}),_0x49d168;}}function R(_0x188f41,_0x371828,_0x469f5a){const t=_0x188f41['t'];switch(_0x371828){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'},_0x469f5a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x469f5a);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 _0x187c04{['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[_0x56dc43,S,$,_0x4c8d5d];}constructor(_0x1ac9d5){super(_0x1ac9d5),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 _0x22029a=_0x474356();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x22029a},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 _0x3740c6=this['repository']['getRevision'](0x0),_0x46399c=_0x3740c6&&null===_0x3740c6['creator']?_0x3740c6:null;if(this['_continueCurrentRevision']=!!_0x46399c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x51d850=this['_source']['getCurrentRevisionId'](),_0x1e4886=this['repository']['getRevision'](_0x51d850);if(_0x1e4886)this['_startingVersion']=_0x1e4886['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1f1607=this['_source']['history']['_operations']['find'](_0x1146d8=>!_0x1146d8['_isInit']),_0xb7adae=_0x1f1607?_0x1f1607['baseVersion']:this['_source']['history']['version'];_0x3740c6?(_0x3740c6['toVersion']<_0xb7adae&&_0x3740c6['_update']({'toVersion':_0xb7adae}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46399c['id'],this['_startingVersion']=_0x46399c['fromVersion']):(this['_startingVersion']=_0x3740c6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xb7adae,this['_continueCurrentRevision']=!0x1);}}else _0x46399c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46399c['toVersion'],this['editor']['model']['document']['history']['version']),_0x46399c['fromVersion']===_0x46399c['toVersion']?(0x0!==_0x46399c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46399c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46399c['id'],this['_startingVersion']=_0x46399c['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',_0x579f7b=>!_0x579f7b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5344fc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26444d;for(const _0x2c969e in _0x5344fc){const _0x1e28d5=_0x2c969e,_0x293028=_0x5344fc[_0x1e28d5];if('revisionHistoryLicenseKeyValid'==_0x293028||'revisionHistoryLicenseKeyInvalid'==_0x293028||'revisionHistoryLicenseKeyExpired'==_0x293028||'revisionHistoryLicenseKeyDomainLimit'==_0x293028||'revisionHistoryLicenseKeyNotAllowed'==_0x293028||'revisionHistoryLicenseKeyEvaluationLimit'==_0x293028||'revisionHistoryLicenseKeyTrialLimit'==_0x293028||'revisionHistoryLicenseKeyUsageLimit'==_0x293028){delete _0x5344fc[_0x1e28d5],_0x26444d=_0x293028,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x26444d&&_0x5344fc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x26444d&&_0x5344fc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x26444d&&_0x5344fc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x26444d&&_0x5344fc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x26444d&&_0x5344fc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x26444d&&_0x5344fc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x26444d&&_0x5344fc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5d27dc=this['repository']['getRevision'](0x0),_0x319d24=await this['getRevisionDocumentData'](_0x5d27dc),_0x1c9a7e=await this['getRevisionRootsAttributes'](_0x5d27dc);this['_replaceEditorDataWithRevisionData'](_0x319d24,_0x1c9a7e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4a193c){this['_source']=_0x4a193c;}async['update'](){const _0x203caa=await this['_source']['getLatestVersion']();if(_0x203caa>this['currentRevision']['toVersion']){await this['_loadState']();const _0x880f70=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x203caa});_0x880f70['authors']=_0x880f70['authorsIds']['map'](_0x3e879c=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e879c)),this['currentRevision']['_update'](_0x880f70);}}async['saveRevision'](_0x2121c0={},_0x592fc8=null){const _0x5aa236=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x592fc8>this['currentRevision']['toVersion']&&(_0x592fc8=null),null===_0x592fc8&&(_0x592fc8=await this['_source']['getLatestVersion']());const _0xe7b0bd=this['_getFromVersion'](_0x592fc8),_0x1639c3=this['buildRevisionData']({'from':_0xe7b0bd,'to':_0x592fc8});if(this['currentRevision']['toVersion']<_0x592fc8){const _0x168a2a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x592fc8,'to':_0x592fc8});_0x168a2a['authors']=[],_0x168a2a['authorsIds']=[],_0x168a2a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x168a2a,!0x0),delete _0x168a2a['authors'],_0x5aa236['push'](_0x168a2a);}_0x2121c0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2121c0['name']=_0x2121c0['name']||null,_0x2121c0['id']=_0x2121c0['id']||_0x474356(),_0x2121c0={..._0x2121c0,..._0x1639c3};const _0x5afe07=this['addRevisionData'](_0x2121c0);_0x5aa236['push'](_0x2121c0);const _0x253aeb=this['repository']['getIndex'](_0x5afe07);if(0x0!==_0x253aeb){const _0x334924=this['repository']['getRevision'](_0x253aeb-0x1);if(_0x334924['fromVersion']!==_0x592fc8){const _0x27aa2e=this['_revisionDataBuilder']['getData'](_0x592fc8,_0x334924['toVersion']),_0x2aa75a={'id':_0x334924['id'],'diffData':_0x27aa2e['diffData'],'authorsIds':_0x27aa2e['authorsIds'],'authors':_0x27aa2e['authorsIds']['map'](_0x39fd4d=>this['editor']['plugins']['get']('Users')['getUser'](_0x39fd4d)),'fromVersion':_0x592fc8};_0x334924===this['currentRevision']&&(_0x2aa75a['createdAt']=new Date(_0x2121c0['createdAt']['getTime']()+0xa)),_0x334924['_update'](_0x2aa75a,!0x0),delete _0x2aa75a['authors'],_0x5aa236['push'](_0x2aa75a);}}if(this['adapter']){for(const _0x261c93 of _0x5aa236)this['_bufferUpdate'](_0x261c93['id'],_0x261c93,!0x0);this['sendBufferedUpdates']();}return _0x5afe07;}['addRevisionData'](_0x45fe73){const _0x38568b=this['repository']['createRevision'](_0x45fe73);return this['adapter']&&_0x38568b['on']('_update',(_0x3538c1,_0x3bbcbc,_0xac19c1)=>{_0xac19c1||(this['_bufferUpdate'](_0x3bbcbc['id'],_0x3bbcbc,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x38568b,this['_findInsertionIndex'](_0x38568b)),_0x38568b;}async['getRevisionDocumentData'](_0x111810){return await this['_utils']['loadRevisionData'](_0x111810,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x111810);}async['getRevisionRootsAttributes'](_0xaec192){return await this['_utils']['loadRevisionData'](_0xaec192,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xaec192);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2921d6=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x481010=0x0;_0x481010<_0x2921d6['length'];_0x481010++){const _0x478d79=_0x2921d6[_0x481010];let _0x4cdf30=!0x1;for(const _0x1fa83f of Object['keys'](_0x478d79))void 0x0===_0x478d79[_0x1fa83f]?delete _0x478d79[_0x1fa83f]:'id'!==_0x1fa83f&&(_0x4cdf30=!0x0);_0x4cdf30||(_0x2921d6[_0x481010]=null);}if(_0x2921d6=_0x2921d6['filter'](_0x20f3f7=>null!==_0x20f3f7),!_0x2921d6['length'])return;for(let _0x14c864=0x0;_0x14c864<_0x2921d6['length'];_0x14c864++){const _0xafb620=_0x2921d6[_0x14c864];void 0x0!==_0xafb620['fromVersion']&&void 0x0===_0xafb620['toVersion']&&(_0xafb620['toVersion']=this['repository']['getRevision'](_0xafb620['id'])['toVersion']),void 0x0!==_0xafb620['toVersion']&&void 0x0===_0xafb620['fromVersion']&&(_0xafb620['fromVersion']=this['repository']['getRevision'](_0xafb620['id'])['fromVersion']);}const _0xc8c280=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2921d6,_0xc8c280)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x325575=>{if(_0x325575){for(const _0x11f5fd of _0x325575)this['setRevisionData']({'id':_0x11f5fd['id'],'createdAt':_0x11f5fd['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2e44f2=null,from:_0xb56477=null,to:_0x3f5823=null}){_0xb56477=null!==_0xb56477?_0xb56477:_0x2e44f2['fromVersion'],_0x3f5823=null!==_0x3f5823?_0x3f5823:_0x2e44f2['toVersion'];const _0xa5ed2b=this['_revisionDataBuilder']['getData'](_0xb56477,_0x3f5823),_0x1e6bbc={'diffData':_0xa5ed2b['diffData'],'authorsIds':_0xa5ed2b['authorsIds'],'fromVersion':_0xb56477,'toVersion':_0x3f5823};if(!_0x2e44f2||_0x3f5823!==_0x2e44f2['toVersion']){const _0x24606d=_0x3f5823-0x1,_0x380eba=this['_source']['history']['getOperation'](_0x24606d);_0x1e6bbc['createdAt']=_0x380eba&&_0x380eba['createdAt']||new Date();}if(this['_loadedStateData']&&_0xb56477===this['_loadedStateData']['fromVersion']){for(const _0x31cd6d of this['_loadedStateData']['authors'])_0x1e6bbc['authorsIds']['includes'](_0x31cd6d['id'])||_0x1e6bbc['authorsIds']['push'](_0x31cd6d['id']);}return _0x1e6bbc;}['_bufferUpdate'](_0x332fcf,_0x14450b,_0x176820){if(this['_bufferedUpdates']['has'](_0x332fcf)){const _0x1506bb=this['_bufferedUpdates']['get'](_0x332fcf);_0x14450b=_0x176820?{..._0x1506bb,..._0x14450b}:{..._0x14450b,..._0x1506bb};}this['_bufferedUpdates']['set'](_0x332fcf,_0x14450b);}['setRevisionData'](_0x541708){const _0x2505b1=this['repository']['getRevision'](_0x541708['id']);if(_0x541708['createdAt']&&(_0x541708['createdAt']=new Date(_0x541708['createdAt'])),_0x541708['authorsIds']){const _0x4d4cb4=this['editor']['plugins']['get']('Users');_0x541708['authors']=_0x541708['authorsIds']['map'](_0x1e06e8=>_0x4d4cb4['getUser'](_0x1e06e8));}_0x2505b1['_update'](_0x541708,!0x0);}['_createInitialRevision'](_0x414860){const _0x5ce7a8=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5ce7a8)this['_initialRevisionId']=_0x5ce7a8['id'];else{const _0x30fae6=!this['editor']['model']['document']['roots']['find'](_0x507d20=>this['editor']['model']['hasContent'](_0x507d20)),_0x1c6fd2=this['editor']['plugins']['get']('Users')['me']['id'],_0x1071f8=R(this['editor']['locale'],_0x30fae6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x414860,'to':_0x414860,'id':this['_initialRevisionId'],'name':_0x1071f8,'creatorId':_0x1c6fd2});}}['_createCurrentRevision'](_0x21571a){const _0x348bfc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x348bfc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x21571a,'to':_0x21571a,'id':_0x348bfc,'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'](_0x47d512,_0x3f54cd){let _0x899c7e=this['editor']['config']['get']('initialData'),_0x56f239=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x899c7e){_0x899c7e={};for(const _0x13ab06 of this['editor']['model']['document']['getRootNames']())_0x899c7e[_0x13ab06]='';}if('string'==typeof _0x899c7e&&(_0x899c7e={'main':_0x899c7e}),void 0x0===_0x56f239){_0x56f239={};for(const _0x41d1d9 of this['editor']['model']['document']['getRootNames']())_0x56f239[_0x41d1d9]={};}let _0x20babc=!0x1;const _0x4e8a74=Object['keys'](_0x899c7e),_0x1fe853=Object['keys'](_0x47d512);for(const _0x206822 of _0x4e8a74){if(_0x899c7e[_0x206822]!==_0x47d512[_0x206822]&&''!==_0x899c7e[_0x206822]['trim']()){_0x20babc=!0x0;break;}if(!_0x20b9cc(_0x56f239[_0x206822],_0x3f54cd[_0x206822])&&Object['keys'](_0x56f239[_0x206822])['length']>0x0){_0x20babc=!0x0;break;}}_0x20babc||(_0x20babc=_0x1fe853['some'](_0x49982c=>!this['editor']['model']['document']['getRoot'](_0x49982c))),_0x20babc&&_0x3553e4('editor-initial-data-replaced-with-revision-data',{'editorData':_0x899c7e,'editorRootsAttributes':_0x56f239,'revisionData':_0x47d512,'revisionRootsAttributes':_0x3f54cd}),this['editor']['config']['set']('initialData',_0x47d512),this['editor']['config']['set']('rootsAttributes',_0x3f54cd);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x31e65e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x31e65e['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x503c27){const _0x562fbe=this['repository']['getRevisions']();_0x562fbe['reverse']();let _0x17cb49=0x0;for(;_0x17cb49<_0x562fbe['length'];){const _0x17b5fd=_0x562fbe[_0x17cb49];if(_0x17b5fd===this['currentRevision']){_0x17cb49++;continue;}if(_0x17b5fd['id']===this['_initialRevisionId'])break;const _0x527616=_0x503c27['toVersion']-_0x17b5fd['toVersion']||_0x503c27['fromVersion']-_0x17b5fd['fromVersion'];if(_0x527616>0x0)break;if(_0x527616<0x0)_0x17cb49++;else{if(!_0x503c27['creator']&&_0x17b5fd['creator'])break;if(_0x17b5fd['creator']||!_0x503c27['creator']){if(_0x503c27['createdAt']>_0x17b5fd['createdAt'])break;_0x17cb49++;}else _0x17cb49++;}}return _0x17cb49;}['_getFromVersion'](_0xaddd81){const _0x52dba2=this['repository']['getRevisions']();_0x52dba2['reverse'](),_0x52dba2['shift']();const _0x5d8b7b=_0x52dba2['find'](_0x1ecc3f=>_0x1ecc3f['toVersion']<=_0xaddd81)['toVersion'];return _0x5d8b7b<this['_startingVersion']?this['_startingVersion']:_0x5d8b7b;}['_makeRevision']({name:_0x255852,from:_0x595375,to:_0x1f9fa6,creatorId:_0x52c274,id:_0x4b68df}){const _0x24426d=this['buildRevisionData']({'from':_0x595375,'to':_0x1f9fa6});_0x24426d['name']=_0x255852,_0x24426d['creatorId']=_0x52c274,_0x24426d['id']=_0x4b68df;const _0x2bd39e=this['addRevisionData'](_0x24426d);return this['adapter']&&this['_bufferUpdate'](_0x24426d['id'],_0x24426d,!0x0),_0x2bd39e;}['_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(_0x403b81){this['editor']=_0x403b81,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'](_0x1ecc10){this['source']=_0x1ecc10;const _0x17351f=new Map(),_0x2e1fe9=new Map(),_0x4de78a=this['editor']['model']['document']['roots']['map'](_0x3f2544=>_0x3f2544['rootName']);for(const _0x3b4535 of _0x4de78a){const _0x381114=this['editor']['model']['document']['getRoot'](_0x3b4535),_0x575f8e=x(_0x381114);_0x17351f['set'](_0x3b4535,_0x575f8e),_0x2e1fe9['set'](_0x3b4535,Object['fromEntries'](_0x381114['getAttributes']()));}const _0xc41a79=Array['from'](this['editor']['model']['markers'])['map'](_0x24e0be=>[_0x24e0be['name'],_0x24e0be['getRange']()]),_0x583458=this['source']['version'];this['_saveMetaData'](_0x583458,_0x17351f,_0xc41a79,_0x2e1fe9),this['_startingRevisionId']=this['_revisionId'];const _0x1ff268=new Map(),_0x4c0a47=new Map();for(const _0x2a0f24 of _0x4de78a){const _0x2c5ab5=N(_0x2a0f24);_0x1ff268['set'](_0x2a0f24,_0x2c5ab5),_0x4c0a47['set'](_0x2a0f24,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1ff268,[],_0x4c0a47);}['getData'](_0x408258,_0x1aeaaf){if(this['_lastFrom']===_0x408258&&this['_lastTo']<=_0x1aeaaf)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1aeaaf,!0x0);else{if(!this['_savedMetaData']['has'](_0x408258)){const _0x516054=this['_getPreviousFrom'](_0x408258);this['_calculateMetaData'](_0x516054,_0x408258,!0x1);}this['_calculateMetaData'](_0x408258,_0x1aeaaf,!0x0);}return this['_lastFrom']=_0x408258,this['_lastTo']=_0x1aeaaf,this['_getState']();}['loadState'](_0x2d81fb){const _0x118191=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2d81fb['fromVersion'],this['_lastTo']=_0x2d81fb['toVersion'];for(const _0x2a0570 in _0x2d81fb['diffData']){const _0x3ecd08=_0x2d81fb['diffData'][_0x2a0570]['attachChange'],_0x367749=_0x1fcaa9(_0x2d81fb['diffData'][_0x2a0570]['attributesBefore'])||{},_0x39f719=_0x118191['_makeModelFromViewString'](_0x2d81fb['diffData'][_0x2a0570]['deletions']);_0x39f719['rootName']=_0x2a0570,_0x39f719['_isAttached']=!_0x3ecd08||!_0x3ecd08['isAttached'],_0x39f719['isAttached']=()=>_0x39f719['_isAttached'],this['_baseRoots']['set'](_0x2a0570,_0x39f719),this['_baseRootsAttributes']['set'](_0x2a0570,_0x367749),_0x3ecd08&&this['_touchedRoots']['set'](_0x2a0570,_0x3ecd08);const _0x34a54c=this['_makeIdsRoot'](_0x39f719);this['_baseIdsRoots']['set'](_0x2a0570,_0x34a54c);for(const [_0x54978c,_0x1e7c92]of _0x39f719['markers']){if(!_0x54978c['startsWith']('revision:'))continue;const _0x2d81b5=_0x54978c['split'](':')[0x2];for(const _0x3fd834 of _0x1e7c92['getWalker']({'singleCharacters':!0x0})){const _0x36f558=this['_getVidAttributeName'](_0x3fd834),_0x4aea60='elementEnd'==_0x3fd834['type']?_0x3fd834['previousPosition']['path']['slice'](0x0,-0x1):_0x3fd834['previousPosition']['path'],_0x1661b7=_0x34a54c['getNodeByPath'](_0x4aea60)['getAttribute'](_0x36f558);this['_touched']['set'](_0x1661b7,{'userId':_0x2d81b5});}}}this['_startingRevisionId']=this['_revisionId'];const _0xe0cf14=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x62a2d7=>!this['_touched']['has'](_0x62a2d7));let _0x13e375=0x0;const _0x469e21=new Map();for(const _0xf7b4f6 in _0x2d81fb['diffData']){const _0x100645=_0x2d81fb['diffData'][_0xf7b4f6]['attachChange'],_0x57d151=_0x1fcaa9(_0x2d81fb['diffData'][_0xf7b4f6]['attributesAfter'])||{},_0x1fcdd1=_0x118191['_makeModelFromViewString'](_0x2d81fb['diffData'][_0xf7b4f6]['insertions']);_0x1fcdd1['rootName']=_0xf7b4f6,_0x1fcdd1['_isAttached']=!_0x100645||_0x100645['isAttached'],_0x1fcdd1['isAttached']=()=>_0x1fcdd1['_isAttached'],this['_diffRoots']['set'](_0xf7b4f6,_0x1fcdd1),this['_diffRootsAttributes']['set'](_0xf7b4f6,_0x57d151);const _0x1201a3=this['_makeIdsRoot'](_0x1fcdd1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xf7b4f6,_0x1201a3),_0x469e21['set'](_0xf7b4f6,_0x1fcdd1['isAttached']()?_0x57d151:{});for(const [_0x3f86c5,_0x133724]of _0x1fcdd1['markers']){if(!_0x3f86c5['startsWith']('revision:'))continue;const _0x3f5bfc=_0x3f86c5['split'](':')[0x2];for(const _0x430584 of _0x133724['getWalker']({'singleCharacters':!0x0})){const _0xedfe2=this['_getVidAttributeName'](_0x430584),_0x4514c7=this['_revisionId']++,_0x1370b6='elementEnd'==_0x430584['type']?_0x430584['previousPosition']['path']['slice'](0x0,-0x1):_0x430584['previousPosition']['path'];_0x1201a3['getNodeByPath'](_0x1370b6)['_setAttribute'](_0xedfe2,_0x4514c7),this['_touched']['set'](_0x4514c7,{'userId':_0x3f5bfc});}}for(const _0x4be445 of this['editor']['model']['createRangeIn'](_0x1fcdd1)['getWalker']({'singleCharacters':!0x0})){const _0x479a01=this['_getVidAttributeName'](_0x4be445),_0x590e63='elementEnd'==_0x4be445['type']?_0x4be445['previousPosition']['path']['slice'](0x0,-0x1):_0x4be445['previousPosition']['path'],_0x19f0a5=_0x1201a3['getNodeByPath'](_0x590e63);_0x19f0a5['getAttribute'](_0x479a01)>0x0||_0x19f0a5['_setAttribute'](_0x479a01,_0xe0cf14[_0x13e375++]);}for(const [_0xcbd514,_0xb6d507]of _0x1fcdd1['markers'])_0xcbd514['startsWith']('revision:')||this['_markers']['set'](_0xcbd514,_0xb6d507);}const _0x4b059c=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4b059c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4b059c,0x1));const _0x301bbb=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x301bbb),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x301bbb,0x1));const _0x1db384=Array['from'](this['_diffRoots'])['map'](([_0x202467,_0x104b92])=>[_0x202467,x(_0x104b92)]);this['_saveMetaData'](this['_lastTo'],_0x1db384,this['_markers'],_0x469e21);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x57dafb,_0x34948d,_0x1d3a4d,_0x11fcc1){const _0x3a453c=new Map(_0x34948d),_0x3a32c1=new Map(_0x1fcaa9(_0x11fcc1)),_0x335e56=new Map();for(const [_0x517c06,_0x2c9686]of _0x1d3a4d)_0x335e56['set'](_0x517c06,{'start':_0x2c9686['start']['clone'](),'end':_0x2c9686['end']['clone'](),'rootName':_0x2c9686['root']['rootName']});this['_savedMetaData']['set'](_0x57dafb,{'roots':_0x3a453c,'markers':_0x335e56,'rootsAttributes':_0x3a32c1});}['_removeMetaData'](_0x71be62){this['_savedMetaData']['delete'](_0x71be62);}['_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'](_0x1e12e5,_0x30569a=null){let _0x17d3ac=null;_0x1e12e5['is']('documentFragment')||(_0x17d3ac=new _0xebdb33(_0x1e12e5['name'],{'vid_start':null===_0x30569a?this['_revisionId']++:_0x30569a++}));const _0x5493c0=[];for(const _0x35ae27 of _0x1e12e5['getChildren']())if(_0x35ae27['is']('element')){_0x5493c0['push'](this['_makeIdsRoot'](_0x35ae27,_0x30569a));const _0x194717=_0x5493c0[_0x5493c0['length']-0x1];null!==_0x30569a&&(_0x30569a=_0x194717['is']('element','$text')?_0x194717['getAttribute']('vid')+0x1:_0x194717['getAttribute']('vid_end')+0x1);}else{for(let _0x58c4b7=0x0;_0x58c4b7<_0x35ae27['offsetSize'];_0x58c4b7++)_0x5493c0['push'](new _0xebdb33('$text',{'vid':null===_0x30569a?this['_revisionId']++:_0x30569a++}));}if(_0x1e12e5['is']('documentFragment')){const _0xc7a991=N(_0x1e12e5['rootName']);return _0xc7a991['_insertChild'](0x0,_0x5493c0),_0xc7a991;}return _0x17d3ac['_setAttribute']('vid_end',null===_0x30569a?this['_revisionId']++:_0x30569a++),_0x17d3ac['_insertChild'](0x0,_0x5493c0),_0x17d3ac;}['_calculateMetaData'](_0x4fc094,_0x3f2c5b,_0x4d50e4){this['_reset']();const {roots:_0xfc0708,markers:_0x1baa42,rootsAttributes:_0x5ad3a0}=this['_savedMetaData']['get'](_0x4fc094);this['_baseRoots']=new Map(_0xfc0708),this['_baseRootsAttributes']=new Map(_0x1fcaa9(_0x5ad3a0));for(const [_0x17bad7,_0x4799a3]of this['_baseRoots'])if('$graveyard'!==_0x17bad7&&(this['_diffRoots']['set'](_0x17bad7,x(_0x4799a3)),this['_diffRootsAttributes']=new Map(_0x1fcaa9(_0x5ad3a0)),_0x4d50e4)){const _0x242c17=this['_revisionId'];this['_idsRoots']['set'](_0x17bad7,this['_makeIdsRoot'](_0x4799a3)),this['_baseIdsRoots']['set'](_0x17bad7,this['_makeIdsRoot'](_0x4799a3,_0x242c17));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x4d50e4&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x56acb7,_0x47b087]of _0x1baa42){const _0x48339c=this['_baseRoots']['get'](_0x47b087['rootName']),_0x3303fb=this['_diffRoots']['get'](_0x47b087['rootName']),_0x2c8dd0=new _0x4544e6(this['_fixPosition'](_0x47b087['start'],_0x48339c),this['_fixPosition'](_0x47b087['end'],_0x48339c)),_0x21b9f6=this['_fixRange'](_0x2c8dd0,_0x3303fb);_0x48339c['markers']['set'](_0x56acb7,_0x2c8dd0),this['_markers']['set'](_0x56acb7,_0x21b9f6);}this['_applyOperations'](_0x4fc094,_0x3f2c5b,_0x4d50e4);}['_applyOperations'](_0x2e128b,_0x5689b0,_0x362f23){for(const _0x1ed213 of this['source']['getOperations'](_0x2e128b,_0x5689b0))this['_handleOperation'](_0x1ed213,_0x362f23);for(const _0x217411 of this['_diffRoots']['values']())_0x217411['markers']['clear']();for(const [_0x57c7da,_0x511c0c]of this['_markers']){this['_diffRoots']['get'](_0x511c0c['root']['rootName'])['markers']['set'](_0x57c7da,_0x511c0c['clone']());}const _0x46a22b=new Map(),_0x39bcd7=new Map();for(const [_0x471898,_0x4f9785]of this['_diffRoots'])_0x46a22b['set'](_0x471898,x(_0x4f9785)),_0x39bcd7['set'](_0x471898,this['_diffRootsAttributes']['get'](_0x471898));this['_saveMetaData'](_0x5689b0,_0x46a22b,this['_markers'],_0x39bcd7);}['_getPreviousFrom'](_0x13841b){const _0x484ed8=Array['from'](this['_savedMetaData']['keys']());_0x484ed8['sort']((_0x5af862,_0x46c3ee)=>_0x5af862-_0x46c3ee),_0x484ed8['reverse']();for(const _0x251c07 of _0x484ed8)if(_0x251c07<_0x13841b)return _0x251c07;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4aee7a,_0x2efef4){const _0x5620b0=Array['from'](_0x2efef4['markers'])['map'](([_0x3f8e60,_0x4ad541])=>[_0x3f8e60,this['_fixRange'](_0x4ad541,_0x4aee7a)]);_0x4aee7a['markers']=new Map(_0x5620b0);}['_transformMarkers'](_0x3a215b){for(const _0x41323b of this['_markers']['values']()){const _0x26e8ce=_0x41323b['getTransformedByOperation'](_0x3a215b),_0x1d1fa4=_0x4544e6['_createFromRanges'](_0x26e8ce);_0x41323b['start']=_0x1d1fa4['start'],_0x41323b['end']=_0x1d1fa4['end'];}}['_handleOperation'](_0xe54ebf,_0x17dc16){if('addRoot'!=_0xe54ebf['type']&&'detachRoot'!=_0xe54ebf['type']){if('insert'==_0xe54ebf['type']){const _0x4702f1=_0xe54ebf['position']['root']['rootName'];this['_diffRoots']['has'](_0x4702f1)||(this['_diffRoots']['set'](_0x4702f1,N(_0x4702f1,!0x0)),this['_diffRootsAttributes']['set'](_0x4702f1,{}),_0x17dc16&&this['_idsRoots']['set'](_0x4702f1,N(_0x4702f1,!0x0)));}else{if('addRootAttribute'==_0xe54ebf['type']||'removeRootAttribute'==_0xe54ebf['type']||'changeRootAttribute'==_0xe54ebf['type'])return void this['_handleRootAttributeOperation'](_0xe54ebf);'marker'==_0xe54ebf['type']&&this['_handleMarkerOperation'](_0xe54ebf);}if('marker'!==_0xe54ebf['type']){const _0x51f1f7=this['_cloneOperation'](_0xe54ebf,this['_diffRoots']);_0x51f1f7['_execute'](),this['_transformMarkers'](_0x51f1f7);}if(_0x17dc16)switch(_0xe54ebf['type']){case'insert':this['_handleInsertOperation'](_0xe54ebf);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xe54ebf);break;case'merge':this['_handleMergeOperation'](_0xe54ebf);break;case'split':this['_handleSplitOperation'](_0xe54ebf);}}else this['_handleRootOperation'](_0xe54ebf,_0x17dc16);}['_cloneOperation'](_0x9f56fb,_0x34c3b7){const _0x4ec2f3=_0x9f56fb['clone']();return _0x4ec2f3['_authorId']=_0x9f56fb['_authorId'],this['_fixOperation'](_0x4ec2f3,_0x34c3b7),_0x4ec2f3;}['_getBaseVids'](_0x1122eb){return _0x1122eb['map'](_0x5e8351=>{const _0x42bd62=this['_getVidAttributeName'](_0x5e8351);return Number(_0x5e8351['item']['getAttribute'](_0x42bd62));});}['_generateTape'](_0x4378be,_0x3abde2){if(_0x4378be['is']('element','$text'))_0x3abde2['push']({'item':_0x4378be,'type':'text'});else{_0x4378be['is']('element')&&_0x3abde2['push']({'item':_0x4378be,'type':'elementStart'});for(const _0x39aa9d of _0x4378be['getChildren']())this['_generateTape'](_0x39aa9d,_0x3abde2);_0x4378be['is']('element')&&_0x3abde2['push']({'item':_0x4378be,'type':'elementEnd'});}return _0x3abde2;}['_getState'](){const _0x4900a6=new Map(this['_touched']),_0x548e2b=new Map(_0x4900a6),_0x33d8ab=new Map(),_0x50682c={'insertions':{},'deletions':{}},_0x5022fc={'insertions':{},'deletions':{}},_0x48ba10=new Map(),_0xa94c4c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xa94c4c['delete']('$graveyard');for(const _0x3c1e72 of _0xa94c4c){const _0x3ec45a=this['_diffRoots']['get'](_0x3c1e72)||N(_0x3c1e72,!0x1),_0x50470a=this['_baseRoots']['get'](_0x3c1e72)||N(_0x3c1e72,!0x1);_0x3ec45a['isAttached']()||_0x50470a['isAttached']()?(_0x50682c['insertions'][_0x3c1e72]=x(_0x3ec45a),_0x50682c['deletions'][_0x3c1e72]=x(_0x50470a),this['_copyMarkers'](_0x50682c['deletions'][_0x3c1e72],_0x50470a),this['_copyMarkers'](_0x50682c['insertions'][_0x3c1e72],_0x3ec45a),_0x5022fc['insertions'][_0x3c1e72]=this['_generateTape'](this['_idsRoots']['get'](_0x3c1e72),[]),_0x5022fc['deletions'][_0x3c1e72]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3c1e72)||N(_0x3c1e72,!0x1),[])):_0xa94c4c['delete'](_0x3c1e72);}for(const _0x43ecfe of _0xa94c4c){const _0x4e6e7b=_0x5022fc['insertions'][_0x43ecfe];for(const _0x21033b of _0x4e6e7b){const _0xfd61e6=this['_getVidAttributeName'](_0x21033b),_0x357bac=_0x21033b['item']['getAttribute'](_0xfd61e6);_0x548e2b['delete'](_0x357bac),_0x357bac>=this['_startingRevisionId']&&_0x33d8ab['set'](_0x357bac,_0x4900a6['get'](_0x357bac));}}for(const _0x7ea88b of _0xa94c4c){const _0x3b63dc=_0x5022fc['insertions'][_0x7ea88b],_0x54a9f4=this['_getBaseVids'](_0x5022fc['deletions'][_0x7ea88b]);let _0x3d3485=0x0;for(const _0x347549 of _0x3b63dc){const _0x1c4d07=this['_getVidAttributeName'](_0x347549),_0x73dccf=_0x347549['item']['getAttribute'](_0x1c4d07);if(!_0x33d8ab['has'](_0x73dccf)&&!_0x48ba10['has'](_0x73dccf)){if(_0x548e2b['has'](_0x73dccf))_0x3d3485++;else{if(_0x73dccf!=_0x54a9f4[_0x3d3485]){const _0x17d9b8=_0x4900a6['get'](_0x73dccf)||_0x4900a6['get'](_0x54a9f4[_0x3d3485]);for(;_0x73dccf!=_0x54a9f4[_0x3d3485];)_0x548e2b['has'](_0x54a9f4[_0x3d3485])||(_0x48ba10['set'](_0x54a9f4[_0x3d3485],_0x17d9b8),_0x4900a6['set'](_0x54a9f4[_0x3d3485],_0x17d9b8)),_0x3d3485++;}_0x3d3485++;}}}}for(const _0x370b66 of _0xa94c4c){const _0x57c82c=_0x5022fc['insertions'][_0x370b66];for(const _0x17e734 of _0x57c82c){const _0x39d81c=this['_getVidAttributeName'](_0x17e734),_0x12dccb=_0x17e734['item']['getAttribute'](_0x39d81c);if(_0x48ba10['has'](_0x12dccb)){const _0x31fd25=_0x48ba10['get'](_0x12dccb);_0x548e2b['has'](_0x12dccb)||_0x548e2b['set'](_0x12dccb,{..._0x31fd25}),_0x33d8ab['set'](_0x12dccb,{..._0x31fd25});}}}for(const _0x1ec01d of _0x548e2b['keys']())_0x1ec01d>=this['_startingRevisionId']&&_0x548e2b['delete'](_0x1ec01d);const _0xa629d1=new Map();for(const _0xcfb78f of _0xa94c4c){let _0x24eb06=_0x5022fc['insertions'][_0xcfb78f];for(const _0x1cfa72 of _0x24eb06)if(_0x1cfa72['item']['is']('element','tableCell')){const _0x5aa086=this['_getVidAttributeName'](_0x1cfa72),_0x327a31=_0x1cfa72['item']['getAttribute'](_0x5aa086);if(_0x33d8ab['has'](_0x327a31)){const _0x186ea1=_0x1cfa72['item']['parent']['parent']['getAttribute']('vid_start'),_0x29c5f7=_0xa629d1['get'](_0x186ea1)||new Set();_0x29c5f7['add'](_0x33d8ab['get'](_0x327a31)['userId']),_0xa629d1['set'](_0x186ea1,_0x29c5f7);}}_0x24eb06=_0x5022fc['deletions'][_0xcfb78f];for(const _0x12af06 of _0x24eb06)if(_0x12af06['item']['is']('element','tableCell')){const _0x14961e=this['_getVidAttributeName'](_0x12af06),_0x466aa2=_0x12af06['item']['getAttribute'](_0x14961e);if(_0x548e2b['has'](_0x466aa2)){const _0x329396=_0x12af06['item']['parent']['parent']['getAttribute']('vid_start'),_0x37c568=_0xa629d1['get'](_0x329396)||new Set();_0x37c568['add'](_0x548e2b['get'](_0x466aa2)['userId']),_0xa629d1['set'](_0x329396,_0x37c568);}}for(const _0xb0c6b0 of _0xa629d1['keys']())(_0x33d8ab['has'](_0xb0c6b0)||_0x548e2b['has'](_0xb0c6b0))&&_0xa629d1['delete'](_0xb0c6b0);}for(const _0x123538 of _0xa94c4c){const _0x119e27=_0x5022fc['insertions'][_0x123538];let _0x185a2d=null,_0x2fd258=null;for(const _0xece6bd of _0x119e27){const _0x27a54a=this['_getVidAttributeName'](_0xece6bd),_0x3e2e20=_0xece6bd['item']['getAttribute'](_0x27a54a),_0x4c33dc=_0xa629d1['get'](_0x3e2e20);_0x4c33dc&&'elementStart'==_0xece6bd['type']&&(_0x185a2d=Array['from'](_0x4c33dc)[0x0],_0x2fd258=_0xece6bd['item']['getAttribute']('vid_end')),_0x185a2d&&(_0x548e2b['set'](_0x3e2e20,{'userId':_0x185a2d}),_0x33d8ab['set'](_0x3e2e20,{'userId':_0x185a2d})),_0x3e2e20==_0x2fd258&&(_0x185a2d=null,_0x2fd258=null);}}const _0x1d50b6={},_0x413194=new Set();for(const _0x3c4faf of _0xa94c4c){const _0x4d2db9=_0x50682c['deletions'][_0x3c4faf],_0x1def1a=_0x50682c['insertions'][_0x3c4faf];for(const {userId:_0x168cf0}of this['_touchedMarkers']['values']())null!==_0x168cf0&&_0x413194['add'](_0x168cf0);for(const {userId:_0x42f1fd}of this['_touchedRoots']['values']())null!==_0x42f1fd&&_0x413194['add'](_0x42f1fd);this['_markChanges'](_0x1def1a,_0x5022fc['insertions'][_0x3c4faf],_0x33d8ab,'insertion',_0x413194),this['_markChanges'](_0x4d2db9,_0x5022fc['deletions'][_0x3c4faf],_0x548e2b,'deletion',_0x413194),_0x1d50b6[_0x3c4faf]={'insertions':this['_prepareViewToSave'](_0x1def1a),'deletions':this['_prepareViewToSave'](_0x4d2db9),'attachChange':this['_touchedRoots']['get'](_0x3c4faf)||null,'attributesBefore':_0x1fcaa9(this['_baseRootsAttributes']['get'](_0x3c4faf))||{},'attributesAfter':_0x1fcaa9(this['_diffRootsAttributes']['get'](_0x3c4faf))};}return{'diffData':_0x1d50b6,'authorsIds':Array['from'](_0x413194)};}['_processRootBeforeSave'](_0x41100f){for(const [,_0x35ebb1]of _0x41100f['markers']){const _0x2e1da6=_0x35ebb1['start']['getAncestors']()['filter'](_0x42a205=>'tableCell'==_0x42a205['name']);for(const _0x54fd24 of _0x2e1da6)0x1==_0x54fd24['childCount']&&_0x54fd24['getChild'](0x0)['is']('element','paragraph')&&_0x54fd24['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2d2f03){this['_processRootBeforeSave'](_0x2d2f03);const _0x537dd5=this['editor']['data']['toView'](_0x2d2f03,{}),_0x6d1881=Array['from'](_0x537dd5['getChildren']())['map'](_0x72024d=>this['_getViewJson'](_0x72024d));return JSON['stringify'](_0x6d1881);}['_getViewJson'](_0x278f69){if(_0x278f69['is']('$text'))return _0x278f69['data'];{const _0x3a9919=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x34a8db=_0x278f69,_0x268091=this['editor']['data']['htmlProcessor']['domConverter'],_0x2c12b5={'type':_0x3a9919['_getTypeCharForViewElement'](_0x34a8db),'name':_0x34a8db['name'],'attributes':Array['from'](_0x34a8db['getAttributes']()),'children':Array['from'](_0x34a8db['getChildren']())['map'](_0x586c3d=>this['_getViewJson'](_0x586c3d))};if(_0x278f69['is']('uiElement')&&'$comment'!=_0x278f69['name']){const _0x46c532=_0x278f69['render'](_0x268091['domDocument'],_0x268091);_0x2c12b5['children']['push'](_0x46c532['outerHTML']);}else{if(_0x278f69['is']('rawElement')){const _0x5d84d4=_0x268091['domDocument']['createElement'](_0x34a8db['name']);_0x278f69['render'](_0x5d84d4,_0x268091),_0x2c12b5['children']['push'](_0x5d84d4['innerHTML']);}}const _0x2cbe66=Array['from'](_0x34a8db['getCustomProperties']());_0x2cbe66['length']>0x0&&(_0x2c12b5['customProperties']=_0x2cbe66);const _0x8af2b0=_0x34a8db['getFillerOffset']();return null!==_0x8af2b0&&(_0x2c12b5['fillerOffset']=_0x8af2b0),_0x2c12b5;}}['_markChanges'](_0x445554,_0x375124,_0x3679ec,_0x362681,_0x1101f3){let _0x22116e=null,_0x2a4bf0=null,_0x2bfda6=0x0;const _0x4c52b4=this['editor']['model'];for(let _0xf2666f=0x0;_0xf2666f<_0x375124['length'];_0xf2666f++){const _0x359d45=this['_getVidAttributeName'](_0x375124[_0xf2666f]),_0x4461d4=_0x375124[_0xf2666f]['item']['getAttribute'](_0x359d45),_0x3d4595=_0x3679ec['get'](_0x4461d4),_0x38ead8=_0xf2666f==_0x375124['length']-0x1;(!_0x22116e&&_0x3d4595&&(_0x22116e=_0x3d4595,_0x2a4bf0=_0x375124[_0xf2666f]),_0x22116e&&(!_0x3d4595||_0x3d4595['userId']!=_0x22116e['userId']))&&(_0x2f7238(_0x3d4595,P(_0x2a4bf0,_0x445554,_0x4c52b4),P(_0x375124[_0xf2666f],_0x445554,_0x4c52b4)),_0x22116e=_0x3d4595||null,_0x2a4bf0=_0x3d4595?_0x375124[_0xf2666f]:null),_0x22116e&&_0x38ead8&&_0x2f7238(_0x3d4595,P(_0x2a4bf0,_0x445554,_0x4c52b4),V(_0x375124[_0xf2666f],_0x445554,_0x4c52b4));}function _0x2f7238(_0x59c507,_0x291e41,_0x56dc1f){const _0x9de319=_0x22116e['userId'],_0x1c5c33='revision:'+_0x362681+':'+_0x9de319+':'+_0x2bfda6++,_0x249177=_0x4c52b4['createRange'](_0x291e41,_0x56dc1f);_0x445554['markers']['set'](_0x1c5c33,_0x249177),null!==_0x9de319&&_0x1101f3['add'](_0x9de319);}}['_getVidAttributeName'](_0x11b64c){switch(_0x11b64c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x27e607,_0x44a2e1){_0x27e607['baseVersion']=null;for(const _0xb3ceaa in _0x27e607){const _0x58338a=_0x27e607[_0xb3ceaa];if(_0x58338a instanceof _0x3d5bf1){const _0x157496=_0x44a2e1['get'](_0x58338a['root']['rootName']);_0x27e607[_0xb3ceaa]=this['_fixPosition'](_0x58338a,_0x157496);}if(_0x58338a instanceof _0x4544e6){const _0x4005dd=_0x44a2e1['get'](_0x58338a['root']['rootName']);_0x27e607[_0xb3ceaa]=this['_fixRange'](_0x58338a,_0x4005dd);}'root'===_0xb3ceaa&&(_0x27e607['root']=_0x44a2e1['get'](_0x27e607['root']['rootName']));}}['_fixRange'](_0x3235bb,_0x279276){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3235bb['start'],_0x279276),this['_fixPosition'](_0x3235bb['end'],_0x279276));}['_fixPosition'](_0x158863,_0xb037ef){return this['editor']['model']['createPositionFromPath'](_0xb037ef,_0x158863['path'],_0x158863['stickiness']);}['_handleInsertOperation'](_0x3b33b7){const _0x599c94=this['_idsRoots']['get'](_0x3b33b7['position']['root']['rootName']),_0x873427=this['_fixPosition'](_0x3b33b7['position'],_0x599c94),_0x3e62e2=null===_0x3b33b7['_authorId']?null:_0x3b33b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xbd5071=_0x873427['parent'],_0x143c12=this['_revisionId'],_0x26c2fd=[];for(const _0x57bf38 of _0x3b33b7['nodes'])if(_0x57bf38['is']('element'))_0x26c2fd['push'](this['_makeIdsRoot'](_0x57bf38));else{for(let _0x4c4a28=0x0;_0x4c4a28<_0x57bf38['offsetSize'];_0x4c4a28++)_0x26c2fd['push'](new _0xebdb33('$text',{'vid':this['_revisionId']++}));}const _0x1580ac=this['_revisionId'];for(let _0x158a58=_0x143c12;_0x158a58<_0x1580ac;_0x158a58++)this['_touched']['set'](_0x158a58,{'userId':_0x3e62e2});_0xbd5071['_insertChild'](_0x873427['offset'],_0x26c2fd);}['_handleMoveOperation'](_0x5c0d38){(_0x5c0d38=this['_cloneOperation'](_0x5c0d38,this['_idsRoots']))['_execute']();const _0x5268f6=null===_0x5c0d38['_authorId']?null:_0x5c0d38['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x331f14=_0x5c0d38['getMovedRangeStart'](),_0x12405b=_0x331f14['parent'],_0x13e14e=_0x331f14['offset'];!function _0x4721d2(_0x15a5b3,_0x4b3ebd,_0x428942,_0x40342f){for(let _0x186402=_0x428942;_0x186402<_0x40342f;_0x186402++){const _0x452649=_0x4b3ebd['getChild'](_0x186402);_0x452649['is']('element','$text')?_0x15a5b3['set'](_0x452649['getAttribute']('vid'),{'userId':_0x5268f6}):(_0x15a5b3['set'](_0x452649['getAttribute']('vid_start'),{'userId':_0x5268f6}),_0x4721d2(_0x15a5b3,_0x452649,0x0,_0x452649['childCount']),_0x15a5b3['set'](_0x452649['getAttribute']('vid_end'),{'userId':_0x5268f6}));}}(this['_touched'],_0x12405b,_0x13e14e,_0x13e14e+_0x5c0d38['howMany']);}['_handleMergeOperation'](_0x14b5d5){const _0x32dc85=null===(_0x14b5d5=this['_cloneOperation'](_0x14b5d5,this['_idsRoots']))['_authorId']?null:_0x14b5d5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eaef6=_0x14b5d5['targetPosition']['parent'],_0x3564c0=_0x14b5d5['sourcePosition']['parent'],_0x3211f0=_0x1eaef6['getAttribute']('vid_end'),_0x3b3f2a=_0x3564c0['getAttribute']('vid_start');_0x1eaef6['_setAttribute']('vid_end',_0x3564c0['getAttribute']('vid_end')),_0x3564c0['_setAttribute']('vid_end',_0x3211f0),this['_touched']['set'](_0x3b3f2a,{'userId':_0x32dc85}),this['_touched']['set'](_0x3211f0,{'userId':_0x32dc85}),_0x14b5d5['_execute']();}['_handleSplitOperation'](_0x4deb68){const _0x52bd4d=null===(_0x4deb68=this['_cloneOperation'](_0x4deb68,this['_idsRoots']))['_authorId']?null:_0x4deb68['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a4e67=_0x4deb68['graveyardPosition'],_0x510512=_0x4deb68['splitPosition']['parent'];_0x4deb68['_execute']();const _0x2b39c2=_0x510512['getAttribute']('vid_end'),_0xf6309f=_0x4deb68['insertionPosition']['nodeAfter'];if(_0x4a4e67){const _0x4d232d=_0xf6309f['getAttribute']('vid_end'),_0x207309=_0x510512['getAttribute']('vid_end');_0x510512['_setAttribute']('vid_end',_0x4d232d),_0xf6309f['_setAttribute']('vid_end',_0x207309),this['_touched']['set'](_0x510512['getAttribute']('vid_end'),{'userId':_0x52bd4d}),this['_touched']['set'](_0xf6309f['getAttribute']('vid_start'),{'userId':_0x52bd4d});}else{const _0x3f4fe7=this['_revisionId']++,_0x283ae4=this['_revisionId']++;_0x510512['_setAttribute']('vid_end',_0x3f4fe7),_0xf6309f['_setAttribute']('vid_start',_0x283ae4),_0xf6309f['_setAttribute']('vid_end',_0x2b39c2),this['_touched']['set'](_0x3f4fe7,{'userId':_0x52bd4d}),this['_touched']['set'](_0x283ae4,{'userId':_0x52bd4d});}}['_handleMarkerOperation'](_0xbf7397){if(!_0xbf7397['affectsData'])return;const _0x468dae=(_0xbf7397=this['_cloneOperation'](_0xbf7397,this['_diffRoots']))['oldRange']?_0xbf7397['oldRange']['root']:null,_0x11e89a=_0xbf7397['newRange']?_0xbf7397['newRange']['root']:null;_0x468dae&&this['_markers']['delete'](_0xbf7397['name']),_0x11e89a&&this['_markers']['set'](_0xbf7397['name'],_0xbf7397['newRange']['clone']());const _0x2acecd=null===_0xbf7397['_authorId']?null:_0xbf7397['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b3785=_0xbf7397['name'];if(!this['_touchedMarkers']['has'](_0x4b3785))return void this['_touchedMarkers']['set'](_0x4b3785,{'range':_0xbf7397['oldRange'],'userId':_0x2acecd});const _0x585bec=this['_touchedMarkers']['get'](_0x4b3785),_0x15ce10=_0x585bec['range'],_0x11b958=_0xbf7397['newRange'];null==_0x15ce10&&null==_0x11b958||_0x15ce10&&_0x11b958&&_0x15ce10['isEqual'](_0x11b958)?this['_touchedMarkers']['delete'](_0xbf7397['name']):_0x585bec['userId']=_0x2acecd;}['_handleRootOperation'](_0x31cc54,_0x128e5e){this['_diffRoots']['has'](_0x31cc54['rootName'])?this['_diffRoots']['get'](_0x31cc54['rootName'])['_isAttached']=_0x31cc54['isAdd']:(this['_diffRoots']['set'](_0x31cc54['rootName'],N(_0x31cc54['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x31cc54['rootName'],{}),_0x128e5e&&this['_idsRoots']['set'](_0x31cc54['rootName'],N(_0x31cc54['rootName'],!0x0)));const _0x62f584=null===_0x31cc54['_authorId']?null:_0x31cc54['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x59a86f=this['_touchedRoots']['get'](_0x31cc54['rootName']);_0x59a86f&&_0x59a86f['userId']===_0x62f584?this['_touchedRoots']['delete'](_0x31cc54['rootName']):this['_touchedRoots']['set'](_0x31cc54['rootName'],{'userId':_0x62f584,'isAttached':_0x31cc54['isAdd']});}['_handleRootAttributeOperation'](_0x321537){const _0x34728c=this['_diffRootsAttributes']['get'](_0x321537['root']['rootName']);null===_0x321537['newValue']?delete _0x34728c[_0x321537['key']]:_0x34728c[_0x321537['key']]=_0x321537['newValue'];}}function x(_0x3f283a){const _0x3f395a=N(_0x3f283a['rootName'],_0x3f283a['isAttached']());for(const _0x563b12 of _0x3f283a['getChildren']()){const _0x4757ff=_0x563b12['_clone'](!0x0);_0x3f395a['_appendChild'](_0x4757ff);}return _0x3f395a;}function N(_0x493966,_0x140234=!0x0){const _0x430a48=new _0x254e2b();return _0x430a48['rootName']=_0x493966,_0x430a48['_isAttached']=_0x140234,_0x430a48['isAttached']=()=>_0x430a48['_isAttached'],_0x430a48;}function P(_0x3e11e6,_0x2ec436,_0x1c56c9){const _0x1cf5da='elementEnd'==_0x3e11e6['type']?_0x1c56c9['createPositionAt'](_0x3e11e6['item'],'end'):_0x1c56c9['createPositionBefore'](_0x3e11e6['item']);return _0x1c56c9['createPositionFromPath'](_0x2ec436,_0x1cf5da['path'],_0x1cf5da['stickiness']);}function V(_0x12f5a1,_0x3afacb,_0x55f7d0){const _0x3644e8='elementStart'==_0x12f5a1['type']?_0x55f7d0['createPositionAt'](_0x12f5a1['item'],0x0):_0x55f7d0['createPositionAfter'](_0x12f5a1['item']);return _0x55f7d0['createPositionFromPath'](_0x3afacb,_0x3644e8['path'],_0x3644e8['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x4995c0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5396e7){super(),this['id']=_0x5396e7['id']||_0x474356(),this['author']=_0x5396e7['author'],this['type']=_0x5396e7['type'],this['data']=_0x5396e7['data']||{},this['rootName']=_0x5396e7['rootName'],this['set']('createdAt',_0x5396e7['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(_0x187171,_0x48b26b){this['newRevisionId']=_0x187171,this['oldRevisionId']=_0x48b26b,this['changes']=new _0x36258e();}['_setChanges'](_0x376e40){for(const _0x126d72 of _0x376e40)this['changes']['add'](_0x126d72);}}class l extends _0x187c04{['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[_0x56dc43,_0x1fb6af,S,$];}constructor(_0x44df23){super(_0x44df23),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',(_0x11da29,_0x391fe3,_0x171445)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x268c28=>{for(const _0x55bcad of this['editor']['editing']['view']['document']['roots'])_0x171445?_0x268c28['removeClass']('ck-editor__editable__overlay',_0x55bcad):_0x268c28['addClass']('ck-editor__editable__overlay',_0x55bcad);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1e4d76=>null!==_0x1e4d76),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x49b5f6,_0x539405,_0x24ed27)=>_0x49b5f6&&_0x24ed27?_0x539405['changes']['getIndex'](_0x24ed27):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x520c9e,_0x3bacf7)=>_0x520c9e?_0x3bacf7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1fb6af);}['init'](){const _0x229681=this['editor'],_0x22685f=new rt(_0x229681,{'direction':'backward'}),_0x49c01d=new rt(_0x229681,{'direction':'forward'});(_0x229681['commands']['add']('showPreviousChange',_0x22685f),_0x229681['commands']['add']('showNextChange',_0x49c01d),_0x229681['commands']['add']('restoreRevision',new nt(_0x229681)),this['on']('change:numberOfChanges',()=>{_0x22685f['refresh'](),_0x49c01d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x229681['enableReadOnlyMode']('revision-viewer'),_0x229681['plugins']['has']('WidgetToolbarRepository'))&&_0x229681['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4dcc34){return await this['_utils']['loadRevisionData'](_0x4dcc34,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4dcc34);}async['getRevisionRootsAttributes'](_0x166d8c){return await this['_utils']['loadRevisionData'](_0x166d8c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x166d8c);}async['compare'](_0x48ebfc,_0x5632ae,_0x428a66=!0x1){if(!this['isEnabled'])return;const _0x9ac0ec=this['diff'],_0x546c54=this['repository'],_0x2c296a='string'==typeof _0x48ebfc?_0x546c54['getRevision'](_0x48ebfc):_0x48ebfc,_0x1715d3='string'==typeof _0x5632ae?_0x546c54['getRevision'](_0x5632ae):_0x5632ae,_0x23bea0=_0x2c296a['id'],_0x32385c=_0x1715d3?_0x1715d3['id']:null;if(!_0x428a66&&this['diff']&&this['diff']['newRevisionId']===_0x23bea0&&this['diff']['oldRevisionId']===_0x32385c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x23bea0,_0x32385c);const _0xeb7011=this['_getRevisionsRange'](_0x2c296a,_0x1715d3,!0x0)['map'](_0x31b896=>this['_utils']['loadRevisionData'](_0x31b896,this['adapter']));return _0xeb7011['push'](new Promise(_0x304b4b=>{setTimeout(_0x304b4b,0x14);})),Promise['all'](_0xeb7011)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2ed29f=this['_getDiff'](_0x23bea0,_0x32385c);for(const _0x3c709d of _0x2ed29f['changes'])this['_changeIdToChange']['set'](_0x3c709d['id'],_0x3c709d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x359e93=>{for(const _0x3c26e9 of this['editor']['model']['document']['getRootNames']())_0x359e93['detachRoot'](_0x3c26e9);for(const _0x106001 of Object['keys'](_0x2ed29f['model'])){const _0x5e61d3=_0x359e93['addRoot'](_0x106001);for(const _0x2f8db5 of Object['keys'](_0x2ed29f['attributes'][_0x106001]))_0x359e93['setAttribute'](_0x2f8db5,_0x2ed29f['attributes'][_0x106001][_0x2f8db5],_0x5e61d3);_0x359e93['insert'](_0x2ed29f['model'][_0x106001],_0x5e61d3,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2ed29f['changes'])),this['isReady']=!0x0;})['catch'](_0x367d39=>{console['error'](_0x367d39),this['_cleanUp'](),_0x9ac0ec&&(this['diff']=_0x9ac0ec),this['isReady']=!0x0;});}['addRevisionData'](_0x165e47,_0x1717fb){const _0x18a538=this['repository']['createRevision'](_0x165e47);return _0x18a538['on']('_update',(_0x35c00d,_0x2859db,_0x3de73e)=>_0x1717fb(_0x2859db,_0x3de73e,_0x18a538)),this['repository']['addRevision'](_0x18a538),_0x18a538;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1ab9d9=>{for(const _0x16d293 of this['editor']['model']['document']['getRootNames']())_0x1ab9d9['detachRoot'](_0x16d293);});}['_sortAndFilterDiffChanges'](_0x1a8d6f){const _0x84acb7=[],_0x2f373d=new Map();for(const _0xa10ad2 of this['editor']['model']['document']['getRootNames']()){const _0x314616=this['editor']['editing']['view']['getDomRoot'](_0xa10ad2);if(!_0x314616)continue;const _0x1d9cc7=_0x314616['getClientRects']()['item'](0x0);_0x1d9cc7&&(_0x84acb7['push'](_0xa10ad2),_0x2f373d['set'](_0xa10ad2,_0x1d9cc7));}return _0x84acb7['sort']((_0x31a9f0,_0x4e3072)=>{const _0x297741=_0x2f373d['get'](_0x31a9f0),_0x1f7872=_0x2f373d['get'](_0x4e3072);return _0x297741['y']-_0x1f7872['y']||_0x297741['x']-_0x1f7872['x'];}),(_0x1a8d6f=_0x1a8d6f['filter'](_0x186613=>_0x84acb7['includes'](_0x186613['rootName'])))['sort']((_0x2e3a04,_0x669cf)=>_0x84acb7['indexOf'](_0x2e3a04['rootName'])-_0x84acb7['indexOf'](_0x669cf['rootName'])),_0x1a8d6f;}['_makeTape'](_0x5f0852){const _0x540769=Array['from'](_0x5f0852['markers'])['filter'](([_0x4e408e,_0x143b22])=>_0x4e408e['startsWith']('revision:')&&!_0x143b22['isCollapsed']),_0x900d98=Array['from'](this['editor']['model']['createRangeIn'](_0x5f0852)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x540769['length'])for(const _0x11ce48 of _0x900d98){const [_0x33452b,_0x2ba129]=_0x540769[0x0],[,_0x52f820,_0x538d81]=_0x33452b['split'](':');if(_0x2ba129['end']['isEqual'](_0x11ce48['nextPosition'])&&_0x540769['shift'](),(_0x11ce48['previousPosition']['isEqual'](_0x2ba129['start'])||_0x11ce48['previousPosition']['isAfter'](_0x2ba129['start']))&&('insertion'==_0x52f820?_0x11ce48['isAdded']={'userId':_0x538d81}:'deletion'==_0x52f820&&(_0x11ce48['isRemoved']={'userId':_0x538d81})),0x0==_0x540769['length'])break;}return _0x900d98;}['_refreshStartEndIndex'](_0x20fb4d){const _0x307366=new Map();for(let _0x599c85=0x0;_0x599c85<_0x20fb4d['length'];_0x599c85++)'text'===_0x20fb4d[_0x599c85]['type']?(_0x20fb4d[_0x599c85]['item']['startIndex']=_0x599c85,_0x20fb4d[_0x599c85]['item']['endIndex']=_0x599c85):('elementStart'===_0x20fb4d[_0x599c85]['type']?_0x20fb4d[_0x599c85]['item']['startIndex']=_0x599c85:'elementEnd'===_0x20fb4d[_0x599c85]['type']&&(_0x20fb4d[_0x599c85]['item']['endIndex']=_0x599c85),_0x307366['set'](_0x20fb4d[_0x599c85]['id'],_0x599c85));for(const _0x54b6f6 of _0x307366['values']())'elementStart'===_0x20fb4d[_0x54b6f6]['type']?_0x20fb4d[_0x54b6f6]['item']['endIndex']=_0x307366['get'](_0x20fb4d[_0x54b6f6]['pairId']):'elementEnd'===_0x20fb4d[_0x54b6f6]['type']&&(_0x20fb4d[_0x54b6f6]['item']['startIndex']=_0x307366['get'](_0x20fb4d[_0x54b6f6]['pairId']));}['_processTape'](_0x1573b2){for(let _0x1325bd=0x0;_0x1325bd<_0x1573b2['length'];_0x1325bd++){if('elementStart'===_0x1573b2[_0x1325bd]['type'])_0x1573b2[_0x1325bd]['item']['startIndex']=_0x1325bd;else{if('elementEnd'===_0x1573b2[_0x1325bd]['type']){_0x1573b2[_0x1325bd]['item']['endIndex']=_0x1325bd;const _0x4f93f0=_0x1573b2[_0x1325bd]['item']['startIndex'];_0x1573b2[_0x4f93f0]['pairId']=_0x1573b2[_0x1325bd]['id'],_0x1573b2[_0x1325bd]['pairId']=_0x1573b2[_0x4f93f0]['id'];}else _0x1573b2[_0x1325bd]['item']['startIndex']=_0x1325bd,_0x1573b2[_0x1325bd]['item']['endIndex']=_0x1325bd,_0x1573b2[_0x1325bd]['pairId']=null;}_0x1573b2[_0x1325bd]['markersStart']||(_0x1573b2[_0x1325bd]['markersStart']=[],_0x1573b2[_0x1325bd]['markersEnd']=[]);}}['_markInsertions'](_0x3850b4,_0x430830){const _0x17b6f7=_0x3850b4['filter'](_0xe80c45=>!_0xe80c45['isAdded']);for(let _0x337783=0x0;_0x337783<_0x430830['length'];_0x337783++)_0x430830[_0x337783]['isAdded']&&(_0x17b6f7[_0x337783]['isAdded']=_0x430830[_0x337783]['isAdded']);}['_getDiff'](_0x4be5de,_0x35530a=null){const _0x1090f5=this['repository']['getRevision'](_0x4be5de),_0x15ae74=_0x35530a?this['repository']['getRevision'](_0x35530a):null,_0x2c83a9=this['_getRevisionsRange'](_0x1090f5,_0x15ae74),_0x587062=_0x2c83a9[_0x2c83a9['length']-0x1],_0x29b08c=new Map(),_0x354245={'model':{},'attributes':{},'changes':[]},_0x57c4fe=new Set(),_0x1450fa=new Map();for(let _0x4639fe=_0x2c83a9['length']-0x1;_0x4639fe>=0x0;_0x4639fe--){const _0x3e553c=_0x2c83a9[_0x4639fe];for(const _0x466936 of Object['keys'](_0x3e553c['diffData']))if(_0x3e553c['diffData'][_0x466936]['attachChange']){const _0x3fd064=_0x3e553c['diffData'][_0x466936]['attachChange'];_0x3fd064['isAttached']?(_0x57c4fe['add'](_0x466936),_0x1450fa['has'](_0x466936)&&_0x1450fa['get'](_0x466936)['userId']==_0x3fd064['userId']?_0x1450fa['delete'](_0x466936):_0x1450fa['set'](_0x466936,_0x3fd064)):_0x1450fa['has'](_0x466936)?(_0x57c4fe['delete'](_0x466936),_0x1450fa['delete'](_0x466936)):(_0x57c4fe['add'](_0x466936),_0x1450fa['set'](_0x466936,_0x3fd064));}else _0x57c4fe['add'](_0x466936);}for(const _0x2cf4b5 of _0x57c4fe){const _0x4f2246=_0x1450fa['has'](_0x2cf4b5)&&!_0x1450fa['get'](_0x2cf4b5)['isAttached'];let _0x459d33=_0x4f2246?_0x2c83a9['length']-0x1:0x0;const _0x1cc0e7=_0x4f2246?-0x1:0x1;for(;_0x2c83a9[_0x459d33];){const _0x37e85e=_0x2c83a9[_0x459d33];if(_0x37e85e['diffData'][_0x2cf4b5]){const _0x1629dc=_0x4f2246?_0x37e85e['diffData'][_0x2cf4b5]['attributesBefore']:_0x37e85e['diffData'][_0x2cf4b5]['attributesAfter'];_0x354245['attributes'][_0x2cf4b5]=_0x1629dc?_0x1fcaa9(_0x1629dc):{};break;}_0x459d33+=_0x1cc0e7;}}for(const _0x4f0646 of _0x2c83a9){_0x4f0646['model']={};for(const _0x4adf5a of _0x4f0646['authors'])_0x29b08c['set'](_0x4adf5a['id'],_0x4adf5a);for(const _0x5853e6 of _0x57c4fe){const _0x12f81d=_0x4f0646['diffData'][_0x5853e6]?_0x4f0646['diffData'][_0x5853e6]['insertions']:'[]',_0x2e1a77=_0x4f0646['diffData'][_0x5853e6]?_0x4f0646['diffData'][_0x5853e6]['deletions']:'[]';_0x4f0646['model'][_0x5853e6]={'insertions':this['_utils']['_makeModelFromViewString'](_0x12f81d),'deletions':this['_utils']['_makeModelFromViewString'](_0x2e1a77)};}}for(const _0x1ff5d4 of _0x57c4fe){let _0x39df55=null,_0x21e4df=0x0;const _0xb7cded=new Map(Array['from'](_0x1090f5['model'][_0x1ff5d4]['insertions']['markers'])['filter'](([_0x512d8b])=>!_0x512d8b['startsWith']('revision:')));let _0x22ff6c=0x0;for(const _0x169e74 of _0x2c83a9){const _0x7695bc=this['_makeTape'](_0x169e74['model'][_0x1ff5d4]['insertions']);_0x169e74==_0x1090f5?(_0x39df55=_0x7695bc,_0x21e4df=_0x39df55['length'],_0x39df55['forEach'](_0x2485d0=>{_0x2485d0['id']=_0x22ff6c++;}),this['_processTape'](_0x39df55)):this['_markInsertions'](_0x39df55,_0x7695bc);const _0x5bc00c=_0x39df55['filter'](_0x5c925d=>!_0x5c925d['isAdded'])['map'](_0x542941=>_0x542941['id']);let _0x1bea71=0x0;const _0x5cb5af=this['_makeTape'](_0x169e74['model'][_0x1ff5d4]['deletions']);_0x5cb5af['forEach'](_0x399e91=>{_0x399e91['isRemoved']?_0x399e91['id']=_0x21e4df++:_0x399e91['id']=_0x5bc00c[_0x1bea71++];}),this['_processTape'](_0x5cb5af),this['_setDistance'](_0x39df55,'isAdded'),this['_setDistance'](_0x5cb5af,'isRemoved'),_0x169e74==_0x1090f5&&this['_markMarkers'](_0x39df55,_0xb7cded),_0x39df55=this['_joinTapes'](_0x39df55,_0x5cb5af),this['_refreshStartEndIndex'](_0x39df55),this['_setDistance'](_0x39df55,'isRemoved');}_0x39df55=_0x39df55['filter'](_0x17ba34=>!(_0x17ba34['isAdded']&&_0x17ba34['isRemoved']));const _0x4c3407=new Map(_0x587062['model'][_0x1ff5d4]['deletions']['markers']),_0xcf6662=new Set(_0xb7cded['keys']());for(const _0x44c393 of _0x4c3407['keys']())_0xcf6662['delete'](_0x44c393);this['_markSuggestions'](_0x39df55,_0xcf6662),this['_fixObsoleteTags'](_0x39df55),_0x39df55=this['_removeMissingPairs'](_0x39df55),_0x39df55=this['_markMismatchedRemovedTags'](_0x39df55),_0x39df55=this['_removeUnsupportedChanges'](_0x39df55);const {root:_0x2d21f8,changes:_0x19d1fe}=this['_makeModelFromTape'](_0x39df55,_0x29b08c,_0x1ff5d4);_0x354245['model'][_0x1ff5d4]=_0x2d21f8;const _0x45491e=_0x1450fa['get'](_0x1ff5d4);if(_0x45491e){const _0x7fb957=_0x29b08c['get'](_0x45491e['userId']),_0x3780ce=new G({'author':_0x7fb957,'type':_0x45491e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1ff5d4});_0x19d1fe['unshift'](_0x3780ce),_0x354245['attributes'][_0x1ff5d4]['revisionHistoryAttachChange']=_0x3780ce['id'];}_0x354245['changes']=_0x354245['changes']['concat'](_0x19d1fe);}return _0x354245;}['_markMarkers'](_0x4072e8,_0x884f8f){for(let _0x931332=0x0;_0x931332<_0x4072e8['length'];_0x931332++)for(const [_0x2b683f,_0x176f1f]of _0x884f8f)!_0x176f1f['isCollapsed']&&_0x176f1f['start']['isEqual'](_0x4072e8[_0x931332]['previousPosition'])&&_0x4072e8[_0x931332]['markersStart']['push'](_0x2b683f),_0x176f1f['end']['isEqual'](_0x4072e8[_0x931332]['nextPosition'])&&_0x4072e8[_0x931332]['markersEnd']['push'](_0x2b683f);}['_joinTapes'](_0x31b655,_0x14e034){let _0xbd31b4=[],_0x352dbe=0x0,_0x2e3b18=0x0;for(;_0x352dbe<_0x31b655['length']||_0x2e3b18<_0x14e034['length'];){const _0x53a541=_0x31b655[_0x352dbe]||{},_0x2d2569=_0x14e034[_0x2e3b18]||{};if(_0x53a541['id']==_0x2d2569['id'])_0x352dbe++,_0x2e3b18++,_0xbd31b4['push'](_0x53a541);else{if(_0x2d2569['isRemoved']&&_0x53a541['isAdded']){const {commonTape:_0x146db5,iEnd:_0x111545,jEnd:_0x2ce156}=this['_threeWayMerge'](_0x31b655,_0x352dbe,_0x14e034,_0x2e3b18);_0xbd31b4=_0xbd31b4['concat'](_0x146db5),_0x352dbe=_0x111545,_0x2e3b18=_0x2ce156;}else _0x2d2569['isRemoved']?(_0x2e3b18++,_0xbd31b4['push'](_0x2d2569)):(_0x352dbe++,_0xbd31b4['push'](_0x53a541));}}return _0xbd31b4;}['_markSuggestions'](_0x29a572,_0xbad6c1){const _0xdb4a4c=[];for(let _0x4f2a70=0x0;_0x4f2a70<_0x29a572['length'];_0x4f2a70++){for(let _0x487b3f=0x0;_0x487b3f<_0x29a572[_0x4f2a70]['markersStart']['length'];_0x487b3f++){const _0x5c65b2=_0x29a572[_0x4f2a70]['markersStart'][_0x487b3f];if(!_0xbad6c1['has'](_0x5c65b2))continue;const {group:_0x106be8,type:_0x1585f4,authorId:_0x290cb1}=_0x48e806(_0x5c65b2);'revision-suggestion'!=_0x106be8||'insertion'!=_0x1585f4&&'deletion'!=_0x1585f4||(_0xdb4a4c['unshift']({'type':_0x1585f4,'name':_0x5c65b2,'userId':_0x290cb1}),_0x29a572[_0x4f2a70]['markersStart']['splice'](_0x487b3f,0x1),_0x487b3f--);}_0x142ca5(_0x29a572[_0x4f2a70]);for(let _0x53d6ef=0x0;_0x53d6ef<_0x29a572[_0x4f2a70]['markersEnd']['length'];_0x53d6ef++){const _0xe34064=_0x29a572[_0x4f2a70]['markersEnd'][_0x53d6ef];if(!_0xbad6c1['has'](_0xe34064))continue;const {group:_0x4133d0,type:_0x3b280a}=_0x48e806(_0xe34064);if('revision-suggestion'!=_0x4133d0||'insertion'!=_0x3b280a&&'deletion'!=_0x3b280a)continue;_0x29a572[_0x4f2a70]['markersEnd']['splice'](_0x53d6ef,0x1),_0x53d6ef--;const _0x13aeb7=_0xdb4a4c['findIndex'](_0x27421c=>_0x27421c['name']==_0xe34064);_0x13aeb7>-0x1&&_0xdb4a4c['splice'](_0x13aeb7,0x1);}}function _0x48e806(_0x755202){const _0x32a5c0=_0x755202['split'](':');return{'group':_0x32a5c0[0x0],'type':_0x32a5c0[0x1],'subType':_0x32a5c0['length']>=0x5?_0x32a5c0[0x2]:null,'id':_0x32a5c0['length']<0x5?_0x32a5c0[0x2]:_0x32a5c0[0x3],'authorId':_0x32a5c0['length']<0x5?_0x32a5c0[0x3]:_0x32a5c0[0x4],'markerCount':0x6==_0x32a5c0['length']?_0x32a5c0[0x5]:null};}function _0x142ca5(_0x3286b1){for(let _0x2e2e76=0x0;_0x2e2e76<_0xdb4a4c['length'];_0x2e2e76++){if(_0x3286b1['isAdded']&&'insertion'==_0xdb4a4c[_0x2e2e76]['type']&&_0x3286b1['isAdded']['userId']==_0xdb4a4c[_0x2e2e76]['userId'])return _0x3286b1['isAddSuggestion']=_0xdb4a4c[_0x2e2e76],void delete _0x3286b1['isAdded'];if(!_0x3286b1['isAdded']&&!_0x3286b1['isRemoved']&&'deletion'==_0xdb4a4c[_0x2e2e76]['type'])return void(_0x3286b1['isRemoveSuggestion']=_0xdb4a4c[_0x2e2e76]);}}}['_setDistance'](_0x2b6212,_0x707a71){let _0x3f2569=0x0,_0x4fb29f=!0x1;const _0x2cd711=new Map();for(const _0x200ff5 of _0x2b6212)_0x200ff5[_0x707a71]?_0x4fb29f&&(_0x3f2569++,_0x4fb29f=!0x1):(_0x3f2569++,_0x4fb29f=!0x0),_0x2cd711['set'](_0x200ff5['id'],_0x3f2569);for(let _0x5cc495=0x0;_0x5cc495<_0x2b6212['length'];_0x5cc495++){if('isRemoved'==_0x707a71&&_0x2b6212[_0x5cc495]['isAdded']||'isAdded'==_0x707a71&&_0x2b6212[_0x5cc495]['isRemoved'])continue;if('text'==_0x2b6212[_0x5cc495]['type']){_0x2b6212[_0x5cc495]['distance']=0x0;continue;}const _0x183235=_0x2cd711['get'](_0x2b6212[_0x5cc495]['pairId']),_0x57d89f=_0x2cd711['get'](_0x2b6212[_0x5cc495]['id']);_0x2b6212[_0x5cc495]['distance']=_0x183235-_0x57d89f;}}['_getRevisionsRange'](_0x37088e,_0x44671f,_0x429a9d=!0x1){const _0x51722d=[];let _0xeef501=this['repository']['getIndex'](_0x37088e),_0x2f9c90=this['repository']['getIndex'](_0x44671f);for(-0x1==_0x2f9c90&&(_0x2f9c90=this['repository']['_revisions']['length'],_0x429a9d=!0x1);_0xeef501<_0x2f9c90;)_0x51722d['push'](this['repository']['getRevision'](_0xeef501)),_0xeef501++;return _0x429a9d&&_0x51722d['push'](this['repository']['getRevision'](_0xeef501)),_0x51722d;}['_threeWayMerge'](_0x2f08ee,_0x4d1db9,_0x1a7f57,_0x3fc152){const _0x10877a=this['editor']['model']['schema'];let _0x5aea3f=_0x4d1db9;for(;_0x2f08ee[_0x5aea3f]&&_0x2f08ee[_0x5aea3f]['isAdded'];)_0x5aea3f++;let _0x4900d8=_0x3fc152;for(;_0x1a7f57[_0x4900d8]&&_0x1a7f57[_0x4900d8]['isRemoved'];)_0x4900d8++;_0x21cc46(_0x2f08ee,_0x4d1db9,_0x5aea3f),_0x21cc46(_0x1a7f57,_0x3fc152,_0x4900d8);const _0x25f72c=_0x1a7f57['slice'](_0x3fc152,_0x4900d8)['concat'](_0x2f08ee['slice'](_0x4d1db9,_0x5aea3f));return _0x25f72c['sort']((_0x5047b5,_0x232207)=>_0x5047b5['side']!=_0x232207['side']?_0x5047b5['side']-_0x232207['side']:_0x5047b5['level']!=_0x232207['level']?_0x5047b5['level']-_0x232207['level']:_0x5047b5['distance']!=_0x232207['distance']?_0x232207['distance']-_0x5047b5['distance']:!!_0x5047b5['isAdded']!=!!_0x232207['isAdded']?-0x1==_0x5047b5['side']||0x0==_0x5047b5['side']?_0x5047b5['isAdded']?-0x1:0x1:_0x5047b5['isAdded']?0x1:-0x1:_0x5047b5['index']-_0x232207['index']),{'commonTape':_0x25f72c,'iEnd':_0x5aea3f,'jEnd':_0x4900d8};function _0x21cc46(_0x319489,_0x1e24e9,_0x302b87){let _0x4737f8=-0x1,_0x32a4f6=Number['POSITIVE_INFINITY'],_0x4b196c=!0x0;for(let _0x5eee0d=_0x1e24e9;_0x5eee0d<_0x302b87;_0x5eee0d++)if(_0x10877a['isInline'](_0x319489[_0x5eee0d]['item'])||(_0x4b196c=!0x1),_0x319489[_0x5eee0d]['item']['startIndex']<_0x1e24e9&&(_0x4737f8=_0x5eee0d),_0x319489[_0x5eee0d]['item']['endIndex']>=_0x302b87){_0x32a4f6=_0x5eee0d;break;}_0x4b196c&&(_0x4737f8=_0x302b87-0x1);for(let _0x210711=_0x1e24e9;_0x210711<_0x302b87;_0x210711++)_0x319489[_0x210711]['side']=_0x210711<=_0x4737f8?-0x1:_0x210711<_0x32a4f6?0x0:0x1,_0x319489[_0x210711]['index']=_0x210711;let _0x620f1b=0x0;for(let _0x4d32d2=_0x1e24e9;_0x4d32d2<=_0x4737f8;_0x4d32d2++)0x0==_0x319489[_0x4d32d2]['distance']?_0x319489[_0x4d32d2]['level']=_0x620f1b:(_0x620f1b++,_0x319489[_0x4d32d2]['level']=_0x620f1b,_0x620f1b++);for(let _0x71bc21=_0x1e24e9;_0x71bc21<_0x302b87;_0x71bc21++)0x0==_0x319489[_0x71bc21]['side']&&(_0x319489[_0x71bc21]['level']=_0x620f1b);_0x620f1b=0x0;for(let _0x1342ae=_0x302b87-0x1;_0x1342ae>=_0x32a4f6;_0x1342ae--)0x0==_0x319489[_0x1342ae]['distance']?_0x319489[_0x1342ae]['level']=_0x620f1b:(_0x620f1b--,_0x319489[_0x1342ae]['level']=_0x620f1b,_0x620f1b--);}}['_fixObsoleteTags'](_0x41c3d4){const _0x4b9ce3=new Map(),_0x2ab5ea=this['editor']['model']['schema'];for(let _0x43967a=0x1;_0x43967a<_0x41c3d4['length'];_0x43967a++){let _0x3f2127,_0x397e88,_0x2d42f7;const _0xf7d2e9=_0x41c3d4[_0x43967a],_0x233274=_0x41c3d4[_0x43967a-0x1];if('text'==_0xf7d2e9['type'])continue;if(_0xf7d2e9['type']!=_0x233274['type'])continue;if(!_0x2ab5ea['isBlock'](_0x233274['item'])||_0x2ab5ea['isLimit'](_0x233274['item']))continue;if(!_0x2ab5ea['isBlock'](_0xf7d2e9['item'])||_0x2ab5ea['isLimit'](_0xf7d2e9['item']))continue;if((_0x41c3d4[_0x43967a]['isAdded']||_0x41c3d4[_0x43967a]['isAddSuggestion'])&&_0x41c3d4[_0x43967a-0x1]['isRemoved'])_0x3f2127=_0x41c3d4[_0x43967a],_0x397e88=_0x41c3d4[_0x43967a-0x1],_0x2d42f7=_0x43967a-0x1;else{if(!_0x41c3d4[_0x43967a]['isRemoved']||!_0x41c3d4[_0x43967a-0x1]['isAdded']&&!_0x41c3d4[_0x43967a-0x1]['isAddSuggestion'])continue;_0x3f2127=_0x41c3d4[_0x43967a-0x1],_0x397e88=_0x41c3d4[_0x43967a],_0x2d42f7=_0x43967a;}const _0x47d26e=_0x3f2127['level']==_0x397e88['level'],_0x2c9190=Math['abs'](_0x3f2127['level'])<Math['abs'](_0x397e88['level'])&&0x0==_0x397e88['distance'];(_0x47d26e||_0x2c9190)&&(_0x4b9ce3['set'](_0x397e88['id'],_0x3f2127['id']),_0x41c3d4['splice'](_0x2d42f7,0x1),_0x43967a--,_0x3f2127['isAdded']=!0x1);}for(let _0x4d7c83=0x0;_0x4d7c83<_0x41c3d4['length'];_0x4d7c83++)_0x4b9ce3['has'](_0x41c3d4[_0x4d7c83]['pairId'])&&(_0x41c3d4[_0x4d7c83]['pairId']=_0x4b9ce3['get'](_0x41c3d4[_0x4d7c83]['pairId']));}['_removeMissingPairs'](_0x44cdf8){const _0x3ad7f8=new Set(_0x44cdf8['map'](_0x3067b0=>_0x3067b0['id']));for(let _0x42b8f4=0x0;_0x42b8f4<_0x44cdf8['length'];_0x42b8f4++)_0x3ad7f8['has'](_0x44cdf8[_0x42b8f4]['pairId'])||0x0==_0x44cdf8[_0x42b8f4]['distance']||(_0x44cdf8[_0x42b8f4]['isIncorrect']=!0x0);return _0x44cdf8['filter'](_0x484280=>!_0x484280['isIncorrect']);}['_markMismatchedRemovedTags'](_0x208332){const _0x2fdb56=new Set();for(let _0x104f97=0x0;_0x104f97<_0x208332['length'];_0x104f97++){if(_0x2fdb56['has'](_0x208332[_0x104f97]['id'])&&_0x208332[_0x104f97]['isRemoved']&&(_0x208332[_0x104f97]['isIncorrect']=!0x0),_0x208332[_0x104f97]['isIncorrect'])continue;if(0x0==_0x208332[_0x104f97]['distance'])continue;if('elementStart'!=_0x208332[_0x104f97]['type'])continue;if(null==_0x208332[_0x104f97]['pairId'])continue;let _0x452028=_0x104f97+0x1,_0x598a26=0x0;for(;_0x208332[_0x452028]['id']!=_0x208332[_0x104f97]['pairId'];)'elementStart'==_0x208332[_0x452028]['type']?_0x598a26++:'elementEnd'==_0x208332[_0x452028]['type']&&_0x598a26--,_0x452028++;if(0x0!=_0x598a26){if(_0x208332[_0x104f97]['isRemoved'])_0x208332[_0x104f97]['isIncorrect']=!0x0;else{for(;_0x452028!=_0x104f97;)_0x208332[_0x452028]['isRemoved']&&0x0!=_0x208332[_0x452028]['distance']&&(_0x208332[_0x452028]['isIncorrect']=!0x0,_0x2fdb56['add'](_0x208332[_0x452028]['pairId'])),_0x452028--;}}}return _0x208332['filter'](_0x46887e=>!_0x46887e['isIncorrect']);}['_removeUnsupportedChanges'](_0x4d2302){const _0x5b931b=this['editor']['model']['schema'];for(let _0x1daf1b=0x0;_0x1daf1b<_0x4d2302['length'];_0x1daf1b++){if(!(_0x4d2302[_0x1daf1b]['isAdded']||_0x4d2302[_0x1daf1b]['isAddSuggestion']||_0x4d2302[_0x1daf1b]['isRemoved']||_0x4d2302[_0x1daf1b]['isRemoveSuggestion']))continue;if(0x0==_0x4d2302[_0x1daf1b]['distance'])continue;const _0x2d72a3=_0x4d2302[_0x1daf1b]['item'];_0x5b931b['isBlock'](_0x2d72a3)||_0x5b931b['isLimit'](_0x2d72a3)||(_0x4d2302[_0x1daf1b]['isAdded']&&delete _0x4d2302[_0x1daf1b]['isAdded'],_0x4d2302[_0x1daf1b]['isAddSuggestion']&&delete _0x4d2302[_0x1daf1b]['isAddSuggestion'],_0x4d2302[_0x1daf1b]['isRemoveSuggestion']&&delete _0x4d2302[_0x1daf1b]['isRemoveSuggestion'],_0x4d2302[_0x1daf1b]['isRemoved']&&(_0x4d2302[_0x1daf1b]['isIncorrect']=!0x0));}return _0x4d2302['filter'](_0x5d0513=>!_0x5d0513['isIncorrect']);}['_makeModelFromTape'](_0x4d4581,_0x39cf3f,_0x5b4568){const _0x39339c=new _0x254e2b(),_0x2cfb2e=[],_0x51b81f=new Map(),_0x52f2e1=this['editor']['model'],_0x32b51f=_0x52f2e1['schema'],_0x329b2b=[_0x39339c],_0x6f5d47={},_0x5874d2={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5990bb=null;const _0x240abd=[0x0];for(let _0x21a9a8=0x0;_0x21a9a8<_0x4d4581['length'];_0x21a9a8++)if('elementStart'===_0x4d4581[_0x21a9a8]['type']){_0x4d4581[_0x21a9a8]['previousPosition']=_0x52f2e1['createPositionFromPath'](_0x39339c,_0x240abd);const _0x3dc811=new _0xebdb33(_0x4d4581[_0x21a9a8]['item']['name'],_0x4d4581[_0x21a9a8]['item']['getAttributes']());_0x329b2b[0x0]['_appendChild'](_0x3dc811),_0x240abd['push'](0x0),_0x329b2b['unshift'](_0x3dc811),_0x4d4581[_0x21a9a8]['nextPosition']=_0x52f2e1['createPositionFromPath'](_0x39339c,_0x240abd);}else'elementEnd'===_0x4d4581[_0x21a9a8]['type']?(_0x329b2b['shift'](),_0x4d4581[_0x21a9a8]['previousPosition']=_0x52f2e1['createPositionFromPath'](_0x39339c,_0x240abd),_0x240abd['pop'](),_0x240abd[_0x240abd['length']-0x1]++,_0x4d4581[_0x21a9a8]['nextPosition']=_0x52f2e1['createPositionFromPath'](_0x39339c,_0x240abd)):(_0x4d4581[_0x21a9a8]['previousPosition']=_0x52f2e1['createPositionFromPath'](_0x39339c,_0x240abd),_0x5990bb?_0x5990bb['_data']+=_0x4d4581[_0x21a9a8]['item']['data']:_0x5990bb=new _0x5f546e(_0x4d4581[_0x21a9a8]['item']['data'],_0x4d4581[_0x21a9a8]['item']['getAttributes']()),_0x4d4581[_0x21a9a8+0x1]&&'text'===_0x4d4581[_0x21a9a8+0x1]['type']&&_0x213b1e(_0x5990bb,_0x4d4581[_0x21a9a8+0x1]['item'])||(_0x329b2b[0x0]['_appendChild'](_0x5990bb),_0x5990bb=null),_0x240abd[_0x240abd['length']-0x1]+=_0x4d4581[_0x21a9a8]['item']['offsetSize'],_0x4d4581[_0x21a9a8]['nextPosition']=_0x52f2e1['createPositionFromPath'](_0x39339c,_0x240abd));for(let _0x51dfb3=0x0;_0x51dfb3<_0x4d4581['length'];_0x51dfb3++){const _0x4406bb=_0x4d4581[_0x51dfb3]['previousPosition'],_0x3e329a=_0x4d4581[_0x51dfb3]['nextPosition'];for(const _0x1cf387 of _0x4d4581[_0x51dfb3]['markersStart'])_0x51b81f['set'](_0x1cf387,{'start':_0x4406bb,'end':null});_0x2de986('isRemoveSuggestion',_0x51dfb3,_0x4406bb,_0x3e329a),_0x2de986('isAddSuggestion',_0x51dfb3,_0x4406bb,_0x3e329a),_0x2de986('isRemoved',_0x51dfb3,_0x4406bb,_0x3e329a),_0x2de986('isAdded',_0x51dfb3,_0x4406bb,_0x3e329a);for(const _0x5e8937 of _0x4d4581[_0x51dfb3]['markersEnd']){const _0x4b8153=_0x51b81f['get'](_0x5e8937);_0x4b8153?_0x4b8153['end']=_0x3e329a:_0x51b81f['set'](_0x5e8937,{'start':_0x3e329a,'end':_0x3e329a});}}for(const [_0x394544,_0x42b7f6]of _0x51b81f){const _0x26d1fc=this['editor']['model']['createRange'](_0x42b7f6['start'],_0x42b7f6['end']);_0x39339c['markers']['set'](_0x394544,_0x26d1fc);}return _0x2cfb2e['sort']((_0x11cf87,_0x50916c)=>{const _0x227f64=_0x39339c['markers']['get']('revision:'+_0x11cf87['id']),_0x858ba7=_0x39339c['markers']['get']('revision:'+_0x50916c['id']);return _0x227f64['start']['isBefore'](_0x858ba7['start'])?-0x1:_0x227f64['start']['isAfter'](_0x858ba7['start'])?0x1:_0x227f64['end']['isBefore'](_0x858ba7['end'])?-0x1:_0x227f64['end']['isAfter'](_0x858ba7['end'])?0x1:'add'===_0x11cf87['type']?-0x1:0x1;}),{'root':_0x39339c,'changes':_0x2cfb2e};function _0x2de986(_0x22f987,_0x547801,_0x44edf1,_0x3ea7fe){const _0xfc63dc=!!_0x4d4581[_0x547801][_0x22f987],_0x2ea6db=_0xfc63dc?_0x4d4581[_0x547801][_0x22f987]['userId']:null,_0x29119d=_0x547801===_0x4d4581['length']-0x1,_0x5430ad=_0x5874d2[_0x22f987][0x0],_0x425500=_0x32b51f['isObject'](_0x4d4581[_0x547801]['item']);!_0x6f5d47[_0x22f987]&&_0xfc63dc?_0x6f5d47[_0x22f987]={'start':_0x44edf1,'tapeItem':_0x4d4581[_0x547801],'userId':_0x2ea6db,'type':_0x22f987}:_0x6f5d47[_0x22f987]&&!_0xfc63dc?(_0x6f5d47[_0x22f987]['end']=_0x44edf1,_0x50fca5(_0x6f5d47[_0x22f987]),_0x6f5d47[_0x22f987]=null):_0x6f5d47[_0x22f987]&&_0xfc63dc&&_0x6f5d47[_0x22f987]['userId']!==_0x2ea6db&&(_0x6f5d47[_0x22f987]['end']=_0x44edf1,_0x5430ad&&_0x5430ad['userId']===_0x6f5d47[_0x22f987]['userId']||_0x50fca5(_0x6f5d47[_0x22f987]),_0x6f5d47[_0x22f987]={'start':_0x44edf1,'tapeItem':_0x4d4581[_0x547801],'userId':_0x2ea6db,'type':_0x22f987}),_0x6f5d47[_0x22f987]&&_0x425500&&('elementStart'!==_0x4d4581[_0x547801]['type']||_0x5430ad&&_0x5430ad['userId']===_0x2ea6db||_0x5874d2[_0x22f987]['unshift']({'userId':_0x2ea6db,'object':_0x4d4581[_0x547801]['item'],'change':_0x6f5d47[_0x22f987]}),'elementEnd'===_0x4d4581[_0x547801]['type']&&_0x5430ad&&_0x5430ad['object']===_0x4d4581[_0x547801]['item']&&(_0x5874d2[_0x22f987]['shift'](),_0x6f5d47[_0x22f987]=_0x5430ad['change'])),_0x6f5d47[_0x22f987]&&_0x29119d&&(_0x6f5d47[_0x22f987]['end']=_0x3ea7fe,_0x50fca5(_0x6f5d47[_0x22f987]),_0x6f5d47[_0x22f987]=null);}function _0x50fca5({start:_0x2dc2da,end:_0x33da89,tapeItem:_0x203cdd,userId:_0x409592,type:_0x259a0d}){const _0x58687a=_0x203cdd['item'],_0x35df04=_0x52f2e1['schema']['isBlock'](_0x58687a)&&!_0x52f2e1['schema']['isLimit'](_0x58687a),_0x2aa328=_0x2dc2da['nodeAfter']==_0x33da89['parent']&&_0x33da89['isAtStart'];if(_0x35df04&&_0x2aa328)return;const _0x287ec5=_0x52f2e1['createRange'](_0x2dc2da,_0x33da89),_0xe4974f=_0x39cf3f['get'](_0x409592),_0x5a954b=new G({'author':_0xe4974f,'type':'isAdded'==_0x259a0d||'isAddSuggestion'==_0x259a0d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x259a0d||'isRemoveSuggestion'==_0x259a0d},'createdAt':new Date(),'rootName':_0x5b4568});_0x2cfb2e['push'](_0x5a954b),_0x39339c['markers']['set']('revision:'+_0x5a954b['id'],_0x287ec5);}function _0x213b1e(_0x56f838,_0x2a56d9){const _0xffa81d=_0x56f838['getAttributes'](),_0x51748e=_0x2a56d9['getAttributes']();for(const _0x54a6ad of _0xffa81d){if(_0x54a6ad[0x1]!==_0x2a56d9['getAttribute'](_0x54a6ad[0x0]))return!0x1;_0x51748e['next']();}return _0x51748e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x50a433=>{const _0x4c4fc3=_0x50a433['markerName']['split'](':')[0x1],_0x1faa55=this['_getChangeFromId'](_0x4c4fc3);if(!_0x1faa55)return null;const _0xe3ebf='add'==_0x1faa55['type']?'insertion':'deletion',_0x59c68a=['ck-suggestion-marker','ck-suggestion-marker-'+_0xe3ebf];return _0x1faa55['data']['isSuggestion']&&_0x59c68a['push']('ck-suggestion-marker-'+_0xe3ebf+'-new'),this['activeChange']==_0x1faa55&&_0x59c68a['push']('ck-suggestion-marker--active'),{'classes':_0x59c68a,'attributes':{'data-change-id':_0x4c4fc3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x39428d=>{_0x39428d['on']('element:pre',(_0x546513,_0x22c519,_0xacae34)=>{const _0x3c7d82=_0x22c519['viewItem']['getChild'](0x0);if(!_0x3c7d82||!_0x3c7d82['is']('element','code'))return;if(!_0xacae34['consumable']['consume'](_0x3c7d82,{'attributes':['vid_start','vid_end']}))return;const _0xa9cc2=_0x22c519['modelRange']['start']['nodeAfter'];_0xacae34['writer']['setAttribute']('vid_start',_0x3c7d82['getAttribute']('vid_start'),_0xa9cc2),_0xacae34['writer']['setAttribute']('vid_end',_0x3c7d82['getAttribute']('vid_end'),_0xa9cc2);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x154e30=>{_0x154e30['on']('element',(_0x5d4d18,_0x552d56,_0x405af2)=>{if(!_0x405af2['consumable']['consume'](_0x552d56['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x552d56['modelRange']['isCollapsed'])return;const _0x2ed3eb=_0x552d56['modelRange']['start']['nodeAfter'];_0x2ed3eb['hasAttribute']('vid_start')||_0x2ed3eb['hasAttribute']('vid')||(_0x405af2['writer']['setAttribute']('vid_start',_0x552d56['viewItem']['getAttribute']('vid_start'),_0x2ed3eb),_0x405af2['writer']['setAttribute']('vid_end',_0x552d56['viewItem']['getAttribute']('vid_end'),_0x2ed3eb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1093b4=>_0x1093b4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x369f9a,[,_0x54c7b2])=>{['vid_start','vid_end','vid']['includes'](_0x54c7b2)&&(_0x369f9a['return']=!0x0,_0x369f9a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3c5e72=>{_0x3c5e72['on']('attribute:vid',(_0x2bdf47,_0x5e866a,_0x1d3730)=>{if('\x20'!=_0x5e866a['item']['data']||_0x5e866a['item']['parent']['maxOffset']>0x1)return;if(!_0x1d3730['consumable']['consume'](_0x5e866a['item'],_0x2bdf47['name']))return;const _0x4a0249=_0x1d3730['writer'],_0x51c904=_0x1d3730['mapper']['toViewRange'](_0x5e866a['range']);_0x4a0249['wrap'](_0x51c904,_0x4a0249['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x457c60){const _0x4eff5a=_0x457c60['plugins']['get']('RevisionViewer');return(_0x2653da,_0x4e1f09,_0x1d837d)=>{const _0x317d95=_0x4e1f09['markerName']['split'](':')[0x1],_0x2d1066=_0x4eff5a['_getChangeFromId'](_0x317d95);if(!_0x2d1066)return null;const _0x162a8e='add'==_0x2d1066['type']?'split':'merge';if(!_0x1d837d['consumable']['test'](_0x4e1f09['markerRange'],_0x2653da['name']))return;const _0x5b2581=_0x4e1f09['markerRange']['getWalker'](),_0x365735=_0x4e1f09['markerRange']['start'],_0x577c63=_0x457c60['model']['schema'];let _0x2c6084=null,_0x3561da=null,_0x501458=!0x1,_0x4ed55e=!0x1;for(const _0xe5e75a of _0x5b2581){const _0x2d270e=_0xe5e75a['item'];_0x501458=_0x501458||_0x577c63['isContent'](_0x2d270e);const _0x36a56c=_0x1d837d['mapper']['toViewElement'](_0x2d270e);if(_0x36a56c&&_0x36a56c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe5e75a['type']&&(_0x577c63['isBlock'](_0x2d270e)&&!_0x577c63['isLimit'](_0x2d270e)&&(_0x2d270e['nextSibling']||_0x365735['isAtEnd']?_0x2c6084&&_0x2c6084['parent']==_0x2d270e||(_0x2c6084=_0x2d270e,_0x2cf825(_0xe5e75a['previousPosition']),_0x4ed55e=!0x0):_0x3561da=_0x3561da||_0xe5e75a['previousPosition']));}function _0x2cf825(_0x24abae){const _0x54b4fe=_0x1d837d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x162a8e}),_0x5de369=_0x1d837d['mapper']['toViewPosition'](_0x24abae);_0x2d1066['data']['isSuggestion']&&_0x1d837d['writer']['addClass']('ck-suggestion-marker-'+_0x162a8e+'-new',_0x54b4fe),_0x4eff5a['activeChange']==_0x2d1066&&_0x1d837d['writer']['addClass']('ck-suggestion-marker--active',_0x54b4fe),_0x1d837d['writer']['insert'](_0x5de369,_0x54b4fe),_0x1d837d['mapper']['bindElementToMarker'](_0x54b4fe,_0x4e1f09['markerName']);}_0x501458||_0x4ed55e||!_0x3561da||_0x2cf825(_0x3561da);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1399e6,_0x141659,_0x223a08)=>{const _0x4a0d0f=_0x223a08['mapper']['markerNameToElements'](_0x141659['markerName']);if(_0x4a0d0f){for(const _0x243342 of _0x4a0d0f)(_0x243342['hasClass']('ck-suggestion-marker-split')||_0x243342['hasClass']('ck-suggestion-marker-merge'))&&(_0x223a08['mapper']['unbindElementFromMarkerName'](_0x243342,_0x141659['markerName']),_0x223a08['writer']['remove'](_0x243342));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1c3612,_0x52d7b4,_0x265513)=>{const _0xd64e73=_0x52d7b4['markerName']['split'](':')[0x1],_0x3889f5=this['_getChangeFromId'](_0xd64e73);if(!_0x3889f5)return null;const _0x50970e='add'==_0x3889f5['type']?'split':'merge';if(_0x265513['consumable']['test'](_0x52d7b4['markerRange'],_0x1c3612['name']))for(const _0x41a135 of _0x52d7b4['markerRange']['getItems']()){if(!_0x41a135['is']('element','softBreak'))continue;const _0x1a5c8f=_0x265513['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50970e}),_0x429fc3=_0x265513['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x41a135));_0x3889f5['data']['isSuggestion']&&_0x265513['writer']['addClass']('ck-suggestion-marker-'+_0x50970e+'-new',_0x1a5c8f),this['activeChange']==_0x3889f5&&_0x265513['writer']['addClass']('ck-suggestion-marker--active',_0x1a5c8f),_0x265513['writer']['insert'](_0x429fc3,_0x1a5c8f),_0x265513['mapper']['bindElementToMarker'](_0x1a5c8f,_0x52d7b4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x533c03=>{for(const _0x1cbd7f of this['editor']['model']['document']['getRootNames']()){const _0x130483=this['editor']['model']['document']['getRoot'](_0x1cbd7f),_0x5d59f7=this['editor']['editing']['view']['document']['getRoot'](_0x1cbd7f);if(_0x5d59f7){const _0xc0cf3a=_0x130483['getAttribute']('revisionHistoryAttachChange');if(_0x533c03['removeAttribute']('data-change-id',_0x5d59f7),_0x533c03['removeClass']('ck-revision-history-root-add',_0x5d59f7),_0x533c03['removeClass']('ck-revision-history-root-remove',_0x5d59f7),_0x533c03['removeClass']('ck-revision-history-root--active',_0x5d59f7),_0xc0cf3a){const _0x48d4cc=this['_getChangeFromId'](_0xc0cf3a);if(!_0x48d4cc)return null;_0x533c03['setAttribute']('data-change-id',_0xc0cf3a,_0x5d59f7),_0x533c03['addClass']('ck-revision-history-root-'+_0x48d4cc['type'],_0x5d59f7),this['activeChange']==_0x48d4cc&&_0x533c03['addClass']('ck-revision-history-root--active',_0x5d59f7);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2a49e0=>'revision-comment:'+_0x2a49e0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x280bfb=>'revision-suggestion:'+_0x280bfb,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1456a3=>({'name':'suggestion:'+_0x1456a3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2e1ccf=>{const _0x5c2ed0=_0x2e1ccf['markerName']['split'](':')[0x1];return'insertion'!=_0x5c2ed0&&'deletion'!=_0x5c2ed0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5c2ed0]};}}),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',(_0x588c65,_0xef50ce,_0x4d86b4)=>{const _0x2c104e=_0x4d86b4['mapper']['markerNameToElements'](_0xef50ce['markerName']);if(_0x2c104e){for(const _0x21b683 of _0x2c104e)_0x21b683['is']('uiElement')&&(_0x4d86b4['mapper']['unbindElementFromMarkerName'](_0x21b683,_0xef50ce['markerName']),_0x4d86b4['writer']['remove'](_0x21b683));}},{'priority':'high'});}['_getChangeFromId'](_0x10f0c3){return this['_changeIdToChange']['get'](_0x10f0c3);}['_getViewForChange'](_0xbc9426){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0xbc9426),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1cde13,_0x24901d,_0x35e455,_0x448876)=>{_0x448876&&this['_balloon']['remove'](_0x448876),_0x35e455&&(this['_balloon']['add']({'view':_0x35e455,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4322e1=this['editor']['editing'],_0x4b21d8=this['_getChangeFromId'](_0x35e455['changeId']);let _0x44bd53;if(_0x4b21d8['data']['isOnRoot']){const _0x599bcf=_0x4322e1['view']['getDomRoot'](_0x4b21d8['rootName']);_0x44bd53=Array['from'](_0x599bcf['getClientRects']());}else{const _0x28bffc=this['editor']['model']['markers']['get']('revision:'+_0x35e455['changeId']);_0x44bd53=Array['from'](_0x4322e1['mapper']['markerNameToElements'](_0x28bffc['name']))['map'](_0x328b94=>_0x4322e1['view']['domConverter']['mapViewToDom'](_0x328b94))['map'](_0x519f4c=>Array['from'](_0x519f4c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x44bd53[0x0];return _0x44bd53['find'](_0x3480c7=>_0x3480c7['top']-0x3<=this['_activeViewTarget']['y']&&_0x3480c7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3480c7['left']-0x3<=this['_activeViewTarget']['x']&&_0x3480c7['right']+0x3>=this['_activeViewTarget']['x'])||_0x44bd53[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x28e3ed,_0x37d95e,_0x2f41c4,_0x4b5e75)=>{this['activeView']=_0x2f41c4?this['_getViewForChange'](_0x2f41c4):null,this['editor']['model']['change'](()=>{const _0xab9764=this['editor']['editing'];_0x4b5e75&&(_0x4b5e75['data']['isOnRoot']?_0xab9764['view']['change'](_0x1d44b8=>{_0x1d44b8['removeClass']('ck-revision-history-root--active',_0xab9764['view']['document']['getRoot'](_0x4b5e75['rootName']));}):_0xab9764['reconvertMarker']('revision:'+_0x4b5e75['id'])),_0x2f41c4&&(_0x2f41c4['data']['isOnRoot']?_0xab9764['view']['change'](_0x132554=>{_0x132554['addClass']('ck-revision-history-root--active',_0xab9764['view']['document']['getRoot'](_0x2f41c4['rootName']));}):_0xab9764['reconvertMarker']('revision:'+_0x2f41c4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2b1590,_0x14b120)=>{if(this['activeChange'])return;const _0x2261a4=this['_findChangeIdFromDomTarget'](_0x14b120['target']),_0x51eaa3=this['_changeIdToChange']['get'](_0x2261a4);_0x51eaa3?(this['_activeViewTarget']={'x':_0x14b120['domEvent']['x'],'y':_0x14b120['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x51eaa3)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x34c289,_0x34f96d)=>{const _0x400047=this['_findChangeIdFromDomTarget'](_0x34f96d['target']),_0x5a9429=this['_changeIdToChange']['get'](_0x400047);_0x5a9429?(this['_activeViewTarget']={'x':_0x34f96d['domEvent']['x'],'y':_0x34f96d['domEvent']['y']},_0x5a9429===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5a9429):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3e9adb){do{const _0x42be65=_0x3e9adb['getAttribute']('data-change-id');if(_0x42be65)return _0x42be65;_0x3e9adb=_0x3e9adb['parent'];}while(_0x3e9adb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5c6656=>{for(const _0x57b8c5 of this['editor']['model']['markers'])_0x5c6656['removeMarker'](_0x57b8c5);});}}function Q(_0x53ca6c,_0x437af8){return(_0x4ae8cc,_0x3df9d6,_0x143982)=>{if(!_0x143982['consumable']['test'](_0x3df9d6['markerRange'],_0x4ae8cc['name']))return;const _0x4fb273=_0x3df9d6['markerRange']['getWalker'](),_0x40f3d2=_0x3df9d6['markerRange']['start'],_0xb93fc=_0x53ca6c['model']['schema'];let _0x5d42f2=null,_0x3c0d3f=null,_0x12b8ae=!0x1,_0x386311=!0x1;for(const _0x4e733f of _0x4fb273){const _0xf891d3=_0x4e733f['item'];_0x12b8ae=_0x12b8ae||_0xb93fc['isContent'](_0xf891d3);const _0x350e2d=_0x143982['mapper']['toViewElement'](_0xf891d3);if(_0x350e2d&&_0x350e2d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e733f['type']&&(_0xb93fc['isBlock'](_0xf891d3)&&!_0xb93fc['isLimit'](_0xf891d3)&&(_0xf891d3['nextSibling']||_0x40f3d2['isAtEnd']?_0x5d42f2&&_0x5d42f2['parent']==_0xf891d3||(_0x5d42f2=_0xf891d3,_0x78b8e2(_0x4e733f['previousPosition']),_0x386311=!0x0):_0x3c0d3f=_0x3c0d3f||_0x4e733f['previousPosition']));}function _0x78b8e2(_0x185bfe){const _0x4cedf6=_0x143982['mapper']['toViewPosition'](_0x185bfe),_0x54aa80=_0x143982['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x437af8});_0x143982['writer']['insert'](_0x4cedf6,_0x54aa80),_0x143982['mapper']['bindElementToMarker'](_0x54aa80,_0x3df9d6['markerName']);}_0x12b8ae||_0x386311||!_0x3c0d3f||_0x78b8e2(_0x3c0d3f);};}class nt extends _0x2ce5ea{constructor(_0x1f3761){super(_0x1f3761);const _0x329a8c=_0x1f3761['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x329a8c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x329a8c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5ea84c=this['editor'],_0x18f031=_0x5ea84c['plugins']['get'](l),_0xc7c1aa=_0x18f031['isReady']?_0x18f031['diff']['newRevisionId']:null;_0x5ea84c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xc7c1aa);}['refresh'](){const {isReady:_0x131ed2,isEnabled:_0x3bef2c,repository:_0x5c54db,diff:_0x2e8e68}=this['editor']['plugins']['get'](l),_0x3827bd=_0x2e8e68&&_0x5c54db['getLaterVisibleRevision'](_0x2e8e68['newRevisionId']);this['isEnabled']=_0x131ed2&&_0x3bef2c&&Boolean(_0x3827bd);}}class rt extends _0x2ce5ea{['_step'];constructor(_0x5c5264,{direction:_0x2da86e}){super(_0x5c5264);const _0x5bc07c=_0x5c5264['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x2da86e?0x1:-0x1,this['listenTo'](_0x5bc07c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5bc07c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5bc07c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1ccf20=this['editor'],_0x54f49b=_0x1ccf20['plugins']['get'](l),{isNavigationMode:_0x29cc89,currentChangeNumber:_0x4a1a7e}=_0x54f49b;let _0x33798d;if(_0x54f49b['activeChange']=_0x29cc89?_0x54f49b['diff']['changes']['get'](_0x4a1a7e+this['_step']):_0x54f49b['diff']['changes']['first'],_0x54f49b['activeChange']['data']['isOnRoot'])_0x33798d=_0x1ccf20['editing']['view']['getDomRoot'](_0x54f49b['activeChange']['rootName']);else{const _0x2ef79f=_0x1ccf20['model']['markers']['get']('revision:'+_0x54f49b['activeChange']['id']);_0x33798d=_0x761815(_0x1ccf20['editing'],_0x2ef79f);}_0x3c2a5a({'target':_0x33798d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x943661,currentChangeNumber:_0x1f2a33,numberOfChanges:_0x425a11,isReady:_0x577f34,isEnabled:_0x1fb51d}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x1fb51d&&_0x577f34&&_0x425a11)&&(!_0x943661||(0x1===this['_step']?_0x1f2a33<_0x425a11-0x1:_0x1f2a33>0x0));}}class Ri extends _0x85aaaa{constructor(_0x1c2c51){super(_0x1c2c51);const _0x19e549=this['bindTemplate'],_0x5f2b22=new _0x3ccc08(_0x1c2c51),_0x2ea269=new _0x3ccc08(_0x1c2c51);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',(_0x41a715,_0x14225e)=>_0x41a715&&_0x14225e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2e6df2,_0xb6b777,_0x1f9edf,_0x9091a2)=>{if(!_0x2e6df2)return R(_0x1c2c51,'Loading...');if(!_0x1f9edf)return R(_0x1c2c51,'No\x20changes');const _0x33ab4d=R(_0x1c2c51,'NUMBER_OF_CHANGES',_0x1f9edf);return _0x9091a2?R(_0x1c2c51,'X_OF_Y_CHANGES',[_0xb6b777+0x1,_0x1f9edf]):_0x33ab4d;}),_0x5f2b22['set']({'label':R(_0x1c2c51,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4a373c}),_0x2ea269['set']({'label':R(_0x1c2c51,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5bc012}),_0x5f2b22['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2ea269['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5f2b22['on']('execute',()=>this['fire']('execute','backward')),_0x2ea269['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',_0x19e549['if']('_isStatusLabelVisible','ck-hidden',_0x71013b=>!_0x71013b)]},'children':[{'text':_0x19e549['to']('isNavigationMode',_0x4e2222=>_0x4e2222?R(_0x1c2c51,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x1c2c51,'Total')+':\x20')}]},{'text':_0x19e549['to']('_statusText')}]},new _0x47638c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5f2b22,_0x2ea269]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x187c04{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5164d5=this['editor']['editing']['view'];_0x5164d5['change'](_0x178f17=>{for(const _0x3ee054 of _0x5164d5['document']['roots'])_0x178f17['addClass'](ge,_0x3ee054);});}['hide'](){const _0x500df2=this['editor']['editing']['view'];_0x500df2['change'](_0x5b4fae=>{for(const _0x39078e of _0x500df2['document']['roots'])_0x5b4fae['removeClass'](ge,_0x39078e);});}}class u extends _0x187c04{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x362fc4=this['editor'],_0x41c9bb=_0x362fc4['plugins']['get'](l),_0x50f7cd=_0x362fc4['plugins']['get'](ji);_0x362fc4['ui']['componentFactory']['add']('exitToEditing',_0x48b0c4=>{const _0x1cd163=new _0x3ccc08(_0x48b0c4);return _0x1cd163['set']({'label':R(_0x48b0c4,'Back\x20to\x20editing'),'icon':_0x83c067,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1cd163,'execute',()=>{_0x362fc4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1cd163;}),_0x362fc4['ui']['componentFactory']['add']('restoreRevision',_0x5014e4=>{const _0x1aab60=new _0x3ccc08(_0x5014e4);return _0x1aab60['set']({'label':R(_0x5014e4,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1aab60['bind']('isEnabled')['to'](_0x362fc4['commands']['get']('restoreRevision')),this['listenTo'](_0x1aab60,'execute',()=>_0x362fc4['execute']('restoreRevision')),_0x1aab60;}),_0x362fc4['ui']['componentFactory']['add']('changesNavigation',_0x59f1b9=>{const _0x15b3e8=new Ri(_0x59f1b9),_0x4600a5=_0x362fc4['commands']['get']('showPreviousChange'),_0x1a0019=_0x362fc4['commands']['get']('showNextChange');return _0x15b3e8['bind']('isBackwardNavigationEnabled')['to'](_0x4600a5,'isEnabled'),_0x15b3e8['bind']('isForwardNavigationEnabled')['to'](_0x1a0019,'isEnabled'),_0x15b3e8['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x41c9bb),this['listenTo'](_0x15b3e8,'execute',(_0x49383b,_0x2a8ecc)=>{_0x362fc4['execute']('forward'===_0x2a8ecc?'showNextChange':'showPreviousChange');}),_0x15b3e8;}),_0x50f7cd['show'](),_0x41c9bb['on']('change:isReady',(_0x2c5d54,_0x122382,_0xb4ce6b)=>{_0xb4ce6b?_0x50f7cd['hide']():_0x50f7cd['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x17437e,_0x24296f){super(_0x17437e,_0x24296f);const _0x451217=this['bindTemplate'];this['set']({'label':R(_0x17437e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x17437e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x451217['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5f270e=this['fieldView']['element'];this['_tooltipString']=_0x5f270e['scrollWidth']>_0x5f270e['clientWidth']&&_0x5f270e['value']||'';}}class ni extends _0x85aaaa{constructor(_0x5a4a8c,_0x17c2bf,_0x245ba9){super(_0x5a4a8c);const _0x467250=new _0x4234b4();_0x467250['set']({'content':_0x1a8735,'viewBox':'0\x200\x2011\x2010'});const _0x59e032=['ck','ck-revision-history-sidebar__revision-author'];_0x245ba9&&_0x59e032['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3fe9c1=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x5a4a8c,_0x245ba9?'Revision\x20creator':'Revision\x20author')},'children':[_0x467250,_0x17c2bf['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x59e032},'children':_0x3fe9c1});}}function ci(_0x1c69b9,_0x255520){const _0x1cf371=_0x1c69b9['bindTemplate'],_0x9c25c4=_0x1c69b9['locale'],_0x28f727=_0x237da0(_0x9c25c4);_0x28f727['panelPosition']='sw';const _0x5dd315=function(_0xb84ae5,_0x30ce87){const _0x255224=function(_0x435ed2,_0x2aa4a1){const _0x2bfded=_0x435ed2['locale'],_0x4e052f={'Compare\x20against\x20selected':R(_0x2bfded,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2bfded,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2bfded,'Restore\x20this\x20revision')};return _0x2aa4a1['map'](_0x32db50=>{const _0x17e04c=_0x4e052f[_0x32db50['name']];return _0x17e04c&&_0x17e04c!==_0x32db50['name']&&(_0x32db50['name']=_0x17e04c),_0x32db50;});}(_0xb84ae5,_0x30ce87),_0x2f153a=new _0x36258e();for(const _0x2ddb9e of _0x255224){const _0x587c23={'type':'button','model':new to({'label':_0x2ddb9e['name'],'class':_0x2ddb9e['class'],'withText':!0x0,'role':'menuitem','_action':_0x2ddb9e['action']})};_0x587c23['model']['bind']('isEnabled')['to'](_0xb84ae5,'isActionsDropdownOpen',_0x9072b7=>'function'!=typeof _0x2ddb9e['isEnabled']||(!_0x9072b7||_0x2ddb9e['isEnabled'](_0xb84ae5))),_0x2f153a['add'](_0x587c23);}return _0x2f153a;}(_0x1c69b9,_0x255520);return _0x1c69b9['bind']('isActionsDropdownOpen')['to'](_0x28f727,'isOpen'),_0x28f727['buttonView']['set']({'label':R(_0x9c25c4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1f29d2}),_0x28f727['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1cf371['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1cf371['to'](_0x466049=>_0x466049['stopPropagation']())}}),_0x28f727['on']('execute',_0x1df956=>{_0x1c69b9['isReady']&&'function'==typeof _0x1df956['source']['_action']&&_0x1df956['source']['_action'](_0x1c69b9);}),_0x214620(_0x28f727,_0x5dd315,{'role':'menu'}),_0x28f727['listenTo'](_0x1c69b9,'change:isActionsDropdownOpen',(_0x123613,_0x5d08e4,_0x2cbf01)=>{if(_0x2cbf01)for(const _0x3caa02 of _0x28f727['listView']['items']){const _0x26eedc=_0x3caa02['children']['first'],_0x23e3b0=_0x255520['find'](_0x3f6f73=>_0x3f6f73['action']===_0x26eedc['_action'])['isVisible'];_0x3caa02['isVisible']=void 0x0===_0x23e3b0||_0x23e3b0(_0x1c69b9);}}),_0x28f727;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x384c6d,uid as _0x2df4cd,Collection as _0x5ed036,logWarning as _0x1a3ba3,FocusTracker as _0x347749,KeystrokeHandler as _0x1186ba,scrollViewportToShowTarget as _0x597347,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x26464b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x421307,set as _0x6bcac3,unset as _0x59e2a0,isEqual as _0xef62c8}from'es-toolkit/compat';import{Plugin as _0x5b4548,PendingActions as _0x102757,Command as _0x113a4d,ElementApiMixin as _0x85f989,Editor as _0x3f1bb1}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2de8d3,getMarkerDomElement as _0x26b1f0,ConfirmMixin as _0x814b36,sanitizeEditorConfig as _0x33d67b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x4c65ff,ViewAttributeElement as _0x43357c,ViewEmptyElement as _0x2af8e9,ViewRawElement as _0x119c51,ViewUIElement as _0x856ea5,ViewDocumentFragment as _0x4625d2,ViewText as _0x6c00e8,ViewElement as _0x2e196b,ModelElement as _0x55a91c,ModelRange as _0x286e6f,ModelPosition as _0x45fcbc,ModelDocumentFragment as _0x223a9b,ModelText as _0x52cb99}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x659fc6,IconChevronUp as _0x4daf79,IconChevronDown as _0x1105ce,IconUndo as _0x28316f,IconUser as _0x34d935,IconThreeVerticalDots as _0x50a9fd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x274bcc,View as _0x5bb4f2,submitHandler as _0x89b1ec,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x46906e,ListView as _0x310671,ListItemView as _0x3d8754,ButtonView as _0x1cd6d8,MenuBarMenuView as _0x43eb01,MenuBarMenuListView as _0x4725ff,MenuBarMenuListItemView as _0x305428,MenuBarMenuListItemButtonView as _0x475000,ContextualBalloon as _0x58509e,ToolbarSeparatorView as _0x4e6708,IconView as _0x5d2f47,addListToDropdown as _0xd4033e,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x230bfc,StickyPanelView as _0x3dbd0e,ToolbarView as _0x3b3b98,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x55dccf}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x384c6d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x51f9ec){super(),this['id']=_0x51f9ec['id']||_0x2df4cd(),this['creator']=_0x51f9ec['creator']||null,this['authors']=_0x51f9ec['authors']||[],this['diffData']=_0x51f9ec['diffData']||null,this['toVersion']=_0x51f9ec['toVersion']||0x0,this['fromVersion']=_0x51f9ec['fromVersion']||0x0,this['set']('name',_0x51f9ec['name']||''),this['set']('createdAt',_0x51f9ec['createdAt']||new Date()),this['set']('attributes',_0x51f9ec['attributes']||{});}['setName'](_0x4a26d2){this['_update']({'name':_0x4a26d2});}['setAttribute'](_0x2d7e5d,_0x53f561){const _0x30b14e=_0x421307(this['attributes']);_0x6bcac3(_0x30b14e,_0x2d7e5d,_0x53f561),this['_update']({'attributes':_0x30b14e});}['removeAttribute'](_0x279a1d){const _0x59f024=_0x421307(this['attributes']);_0x59e2a0(_0x59f024,_0x279a1d),this['_update']({'attributes':_0x59f024});}['_update'](_0x13b345,_0x1a8427=!0x1){let _0x6b8150=!0x1;const _0x41162f={'id':this['id']},_0x5ce3d9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x257e2e of _0x5ce3d9){const _0x47752a=_0x13b345[_0x257e2e];void 0x0!==_0x47752a&&_0x47752a!==this[_0x257e2e]&&(this[_0x257e2e]=_0x47752a,_0x41162f[_0x257e2e]=_0x47752a,_0x6b8150=!0x0);}_0x6b8150&&(_0x41162f['authors']&&(_0x41162f['authorsIds']=_0x41162f['authors']['map'](_0xedf8c7=>_0xedf8c7['id']),delete _0x41162f['authors']),this['fire']('_update',_0x41162f,_0x1a8427));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3fb185=>_0x3fb185['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x5b4548{['_revisions'];static get['requires'](){return[_0x2de8d3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x558f21){super(_0x558f21),this['_revisions']=new _0x5ed036();}['afterInit'](){!async function(_0x42fc93){const _0x2b9a58=_0x104ba9([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]),_0x4983ac=0xeb829,_0x126d62=0x7374585f,_0x2df326=0x737329cf^_0x126d62,_0x3a4e4a=window[_0x104ba9([0x44,0x61,0x74,0x65])][_0x104ba9([0x6e,0x6f,0x77])](),_0x34d082=_0x42fc93[_0x104ba9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x383583=new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ab12a=>{_0x34d082[_0x104ba9([0x6f,0x6e,0x63,0x65])](_0x104ba9([0x72,0x65,0x61,0x64,0x79]),_0x5ab12a);}),_0x472d5b={[_0x104ba9([0x6b,0x74,0x79])]:_0x104ba9([0x45,0x43]),[_0x104ba9([0x75,0x73,0x65])]:_0x104ba9([0x73,0x69,0x67]),[_0x104ba9([0x63,0x72,0x76])]:_0x104ba9([0x50,0x2d,0x32,0x35,0x36]),[_0x104ba9([0x78])]:_0x104ba9([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]),[_0x104ba9([0x79])]:_0x104ba9([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]),[_0x104ba9([0x61,0x6c,0x67])]:_0x104ba9([0x45,0x53,0x32,0x35,0x36])},_0x3bc25b=_0x34d082[_0x104ba9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x104ba9([0x67,0x65,0x74])](_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x397d1a(){let _0x4b24c2,_0x2fa3aa=null,_0x55642e=null;try{if(_0x3bc25b==_0x104ba9([0x47,0x50,0x4c]))return _0x104ba9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b24c2=_0x67c026(),!_0x4b24c2)return _0x104ba9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b24c2[_0x104ba9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55642e=_0x1da983(_0x4b24c2[_0x104ba9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b24c2[_0x104ba9([0x6a,0x74,0x69])])),await _0x4031a1()?_0x5cd9cd()?_0x2b2fe7()?_0x104ba9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35f06b()?(_0x4b24c2[_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x104ba9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fa3aa=_0x12e6b6(_0x104ba9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b24c2[_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x104ba9([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fa3aa=_0x12e6b6(_0x104ba9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45ef45()):_0x104ba9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x104ba9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x104ba9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x104ba9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b2fe7(){const _0x5bd2f7=[_0x104ba9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x104ba9([0x74,0x72,0x69,0x61,0x6c])][_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b24c2[_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a4e4a/0x3e8:0xe10*_0x2df326;return _0x4b24c2[_0x104ba9([0x65,0x78,0x70])]<_0x5bd2f7;}function _0x5cd9cd(){const _0x2aa3b1=_0x4b24c2[_0x104ba9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2aa3b1)return!0x1;if(_0x2aa3b1[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104ba9([0x2a])))return!0x0;if(_0x2aa3b1[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104ba9([0x52,0x48])))return!0x0;if(_0x2aa3b1[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104ba9([0x52,0x52,0x48]))){if(_0x58c854())return!0x0;if(_0x40d6d8()||_0x4a34e8())return!0x0;}return!0x1;}function _0x35f06b(){const _0x1606f2=_0x4b24c2[_0x104ba9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1606f2||0x0==_0x1606f2[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35280e}=new URL(window[_0x104ba9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1606f2[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35280e))return!0x0;const _0x4e06a9=_0x35280e[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])](_0x104ba9([0x2e]));return _0x1606f2[_0x104ba9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fa05b=>_0x3fa05b[_0x104ba9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104ba9([0x2a])))[_0x104ba9([0x6d,0x61,0x70])](_0x1a538d=>_0x1a538d[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])](_0x104ba9([0x2e])))[_0x104ba9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5651cc=>_0x5651cc[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e06a9[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x104ba9([0x6d,0x61,0x70])](_0x548bc7=>Array(_0x4e06a9[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x548bc7[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x104ba9([0x66,0x69,0x6c,0x6c])](_0x548bc7[0x0]===_0x104ba9([0x2a])?_0x104ba9([0x2a]):'')[_0x104ba9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x548bc7))[_0x104ba9([0x73,0x6f,0x6d,0x65])](_0x5b74da=>_0x4e06a9[_0x104ba9([0x65,0x76,0x65,0x72,0x79])]((_0x28bd87,_0x3883a3)=>_0x5b74da[_0x3883a3]===_0x28bd87||_0x5b74da[_0x3883a3]===_0x104ba9([0x2a])));}function _0x45ef45(){return _0x2fa3aa&&_0x55642e?new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ecf02,_0x441973)=>{_0x2fa3aa[_0x104ba9([0x74,0x68,0x65,0x6e])](_0x3ecf02,_0x441973),_0x55642e[_0x104ba9([0x74,0x68,0x65,0x6e])](_0xa3c40b=>{_0xa3c40b!=_0x104ba9([0x56,0x61,0x6c,0x69,0x64])&&_0x3ecf02(_0xa3c40b);},_0x441973);}):_0x2fa3aa||_0x55642e||_0x104ba9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1da983(_0x3c5708,_0x2ebd7d){return new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x512a0e=>{if(_0xa22c0())return _0x512a0e(_0x104ba9([0x56,0x61,0x6c,0x69,0x64]));_0x1fe27c(),_0x34d082[_0x104ba9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x104ba9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1196fb=!0x1;const _0x25de58=_0x2df4cd();function _0x2876be(_0x33233a){return!!_0x33233a&&(typeof _0x33233a===_0x104ba9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33233a===_0x104ba9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33233a[_0x104ba9([0x74,0x68,0x65,0x6e])]===_0x104ba9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33233a[_0x104ba9([0x63,0x61,0x74,0x63,0x68])]===_0x104ba9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x752cc2(_0x41eae0){_0x41a5b7(_0x41eae0)[_0x104ba9([0x74,0x68,0x65,0x6e])](_0x59691d=>{if(!_0x59691d||_0x59691d[_0x104ba9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x104ba9([0x6f,0x6b]))return _0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16cfac(_0x213ed3(_0x25de58+_0x2ebd7d))!=_0x59691d[_0x104ba9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x104ba9([0x56,0x61,0x6c,0x69,0x64]);})[_0x104ba9([0x74,0x68,0x65,0x6e])](_0xfd6253=>(_0x3c260e(),_0xfd6253),()=>{const _0x4a1979=_0x4aefb9();return null==_0x4a1979?(_0x3c260e(),_0x104ba9([0x56,0x61,0x6c,0x69,0x64])):_0x104ba9(_0x3a4e4a-_0x4a1979>(0x5778dc5f^_0x126d62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x104ba9([0x74,0x68,0x65,0x6e])](_0x512a0e)[_0x104ba9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x512a0e(_0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f158e=0x7342b6df^_0x126d62;function _0x3c260e(){const _0x1f5bc9=_0x104ba9([0x6c,0x6c,0x63,0x74,0x2d])+_0x16cfac(_0x213ed3(_0x3c5708)),_0xfc93b=_0x38c98f(_0x16cfac(window[_0x104ba9([0x4d,0x61,0x74,0x68])][_0x104ba9([0x63,0x65,0x69,0x6c])](_0x3a4e4a/_0x4f158e)));window[_0x104ba9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x104ba9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f5bc9,_0xfc93b);}function _0x4aefb9(){const _0x22743f=_0x104ba9([0x6c,0x6c,0x63,0x74,0x2d])+_0x16cfac(_0x213ed3(_0x3c5708)),_0xc9f4fa=window[_0x104ba9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x104ba9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22743f);return _0xc9f4fa?window[_0x104ba9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38c98f(_0xc9f4fa),0x10)*_0x4f158e:null;}function _0x41a5b7(_0x4b95a1){return new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58fec0,_0x4734c8)=>{_0x4b95a1[_0x104ba9([0x74,0x68,0x65,0x6e])](_0x58fec0,_0x4734c8),window[_0x104ba9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4734c8,0x73758c9f^_0x126d62);});}}_0x34d082[_0x104ba9([0x6f,0x6e])](_0x104ba9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcbeffe,_0x3614f3)=>{if(_0x3614f3[0x0]!=_0x3c5708)return _0x512a0e(_0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3614f3[0x1]={..._0x3614f3[0x1],[_0x104ba9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25de58};},{[_0x104ba9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x104ba9([0x68,0x69,0x67,0x68])}),_0x34d082[_0x104ba9([0x6f,0x6e])](_0x104ba9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ced1b=>{_0x2876be(_0x2ced1b[_0x104ba9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1196fb=!0x0,_0x752cc2(_0x2ced1b[_0x104ba9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x104ba9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x104ba9([0x6c,0x6f,0x77])}),_0x383583[_0x104ba9([0x74,0x68,0x65,0x6e])](()=>{_0x1196fb||_0x512a0e(_0x104ba9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa22c0(){return _0x34d082[_0x104ba9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x104ba9([0x76,0x69,0x65,0x77])][_0x104ba9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x104ba9([0x61,0x75,0x74,0x6f]);}function _0x1fe27c(){_0x34d082[_0x104ba9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x104ba9([0x76,0x69,0x65,0x77])][_0x104ba9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x104ba9([0x61,0x75,0x74,0x6f]);}}function _0x12e6b6(_0xe273){const _0xa9ebd4=[new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d4adf=>setTimeout(_0x5d4adf,0x737d6693^_0x126d62)),_0x383583[_0x104ba9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad729=>{const _0xc4629=0x73745858^_0x126d62,_0x2d44f4=_0x42fc93[_0x104ba9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x141f0e(){_0x2d44f4[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xc4629&&_0x3ad729();}_0x141f0e(),_0x2d44f4[_0x104ba9([0x6f,0x6e])](_0x104ba9([0x61,0x64,0x64]),_0x141f0e);})),new window[(_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16829c=>{function _0x55542a(){for(const _0x8dde88 in window)if(window[_0x104ba9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x104ba9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x8dde88))&&window[_0x8dde88]==_0x4983ac)return _0x16829c();_0x34d082[_0x104ba9([0x73,0x74,0x61,0x74,0x65])]!=_0x104ba9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x104ba9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55542a,0x73744bd7^_0x126d62);}_0x35da9a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x55542a();})];return window[_0x104ba9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x104ba9([0x72,0x61,0x63,0x65])](_0xa9ebd4)[_0x104ba9([0x74,0x68,0x65,0x6e])](()=>_0xe273);}async function _0x15734b(){if(await _0x383583,_0x35da9a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x496aea=_0x42fc93[_0x104ba9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x507a27=_0x42fc93[_0x104ba9([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])](_0x496aea[_0x104ba9([0x69,0x64])]),_0x415c19=_0x2ce62a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x415c19[_0x104ba9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x496aea['id'],_0x507a27?_0x507a27['id']:null,!0x0),_0x415c19[_0x104ba9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x104ba9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x415c19[_0x104ba9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x415c19[_0x104ba9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x328b75,void(_0x415c19[_0x104ba9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x328b75);}if(_0x35da9a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x862452=_0x2ce62a(_0x104ba9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x862452[_0x104ba9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x104ba9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x862452[_0x104ba9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x862452[_0x104ba9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x328b75,_0x862452[_0x104ba9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x328b75;}_0x34d082[_0x104ba9([0x6d,0x6f,0x64,0x65,0x6c])][_0x104ba9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x328b75,_0x34d082[_0x104ba9([0x6d,0x6f,0x64,0x65,0x6c])][_0x104ba9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x328b75,_0x34d082[_0x104ba9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x104ba9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58c854(){return _0x35da9a(_0x104ba9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2ce62a(_0x104ba9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x104ba9([0x73,0x74,0x61,0x74,0x65])]==_0x104ba9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x40d6d8(){return _0x35da9a(_0x104ba9([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 _0x4a34e8(){return _0x35da9a(_0x104ba9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x274bfd(_0x42a686){const _0x1d11d3=_0x7beb16();_0x34d082[_0x1d11d3]=_0x104ba9([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])+_0x42a686,_0x42a686[_0x104ba9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x104ba9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x7beb16()]=_0x4983ac),_0x42a686!=_0x104ba9([0x56,0x61,0x6c,0x69,0x64])&&_0x15734b();}function _0x7beb16(){const _0x4c9089=window[_0x104ba9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x104ba9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x104ba9([0x6e,0x6f,0x77])]())[_0x104ba9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x104ba9([0x2e]),'');let _0x51a8bd=_0x104ba9([0x73]);for(let _0x3f8a03=0x0;_0x3f8a03<_0x4c9089[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f8a03+=0x2){let _0x2df851=window[_0x104ba9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c9089[_0x104ba9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f8a03,_0x3f8a03+0x2));_0x2df851>=_0x2b9a58[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2df851-=_0x2b9a58[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51a8bd+=_0x2b9a58[_0x2df851];}return _0x51a8bd;}function _0x67c026(){const _0x1bb48f=_0x3bc25b[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])](_0x104ba9([0x2e]));if(0x3!=_0x1bb48f[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf575b6(_0x1bb48f[0x1]);function _0xf575b6(_0x50ab76){const _0x134371=_0x4c9d0b(_0x50ab76);return _0x134371&&_0x59c5cb()?_0x134371:null;function _0x59c5cb(){const _0x502fe1=_0x134371[_0x104ba9([0x6a,0x74,0x69])],_0x3094b9=window[_0x104ba9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x502fe1[_0x104ba9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x502fe1[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdea08d={..._0x134371,[_0x104ba9([0x6a,0x74,0x69])]:_0x502fe1[_0x104ba9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x502fe1[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdea08d[_0x104ba9([0x76,0x63])],_0x213ed3(_0xdea08d)==_0x3094b9;}}}async function _0x4031a1(){let _0x1d8fe7=!0x0;try{const _0x6ee278=_0x3bc25b[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])](_0x104ba9([0x2e])),[_0x317df3,_0x606dd4,_0x54ba4b]=_0x6ee278;return _0x2c4dc7(_0x317df3),await _0x47b04f(_0x317df3,_0x606dd4,_0x54ba4b),_0x1d8fe7;}catch{return!0x1;}function _0x2c4dc7(_0x5331e5){const _0x3ec6c4=_0x4c9d0b(_0x5331e5);_0x3ec6c4&&_0x3ec6c4[_0x104ba9([0x61,0x6c,0x67])]==_0x104ba9([0x45,0x53,0x32,0x35,0x36])||(_0x1d8fe7=!0x1);}async function _0x47b04f(_0x1f1737,_0x2e78b3,_0x1d157e){const _0x4728fc=window[_0x104ba9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x104ba9([0x66,0x72,0x6f,0x6d])](_0xbd818e(_0x1d157e),_0xe87c45=>_0xe87c45[_0x104ba9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44a435=new window[(_0x104ba9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x104ba9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f1737+_0x104ba9([0x2e])+_0x2e78b3),_0x4cbf81=window[_0x104ba9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x104ba9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cbf81)return;const _0x44530c=await _0x4cbf81[_0x104ba9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x104ba9([0x6a,0x77,0x6b]),_0x472d5b,{[_0x104ba9([0x6e,0x61,0x6d,0x65])]:_0x104ba9([0x45,0x43,0x44,0x53,0x41]),[_0x104ba9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x104ba9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x104ba9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cbf81[_0x104ba9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x104ba9([0x6e,0x61,0x6d,0x65])]:_0x104ba9([0x45,0x43,0x44,0x53,0x41]),[_0x104ba9([0x68,0x61,0x73,0x68])]:{[_0x104ba9([0x6e,0x61,0x6d,0x65])]:_0x104ba9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44530c,_0x4728fc,_0x44a435)||(_0x1d8fe7=!0x1);}}function _0x4c9d0b(_0xbedf7b){return _0xbedf7b[_0x104ba9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x104ba9([0x65,0x79]))?JSON[_0x104ba9([0x70,0x61,0x72,0x73,0x65])](_0xbd818e(_0xbedf7b)):null;}function _0xbd818e(_0x1132c7){return window[_0x104ba9([0x61,0x74,0x6f,0x62])](_0x1132c7[_0x104ba9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x104ba9([0x2b]))[_0x104ba9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x104ba9([0x2f])));}function _0x213ed3(_0x136662){let _0x3b4e0e=0x1505;function _0x2e1f65(_0x5b2de5){for(let _0x41d4d8=0x0;_0x41d4d8<_0x5b2de5[_0x104ba9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41d4d8++){const _0x2880c4=_0x5b2de5[_0x104ba9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41d4d8);_0x3b4e0e=(_0x3b4e0e<<0x5)+_0x3b4e0e+_0x2880c4,_0x3b4e0e&=_0x3b4e0e;}}function _0x56bbed(_0x38604f){Array[_0x104ba9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38604f)?_0x38604f[_0x104ba9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56bbed):_0x38604f&&typeof _0x38604f==_0x104ba9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x104ba9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38604f)[_0x104ba9([0x73,0x6f,0x72,0x74])]()[_0x104ba9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9c4ed5,_0x7e0590])=>{_0x2e1f65(_0x9c4ed5),_0x56bbed(_0x7e0590);}):_0x2e1f65(window[_0x104ba9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38604f));}return _0x56bbed(_0x136662),_0x3b4e0e>>>0x0;}function _0x16cfac(_0x37df30){return _0x37df30[_0x104ba9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x104ba9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x104ba9([0x30]));}function _0x38c98f(_0x16492f){return _0x16492f[_0x104ba9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x104ba9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x104ba9([0x6a,0x6f,0x69,0x6e])]('');}function _0x35da9a(_0x5a7ded){return _0x34d082[_0x104ba9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x104ba9([0x68,0x61,0x73])](_0x5a7ded);}function _0x2ce62a(_0x4b53ce){return _0x34d082[_0x104ba9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x104ba9([0x67,0x65,0x74])](_0x4b53ce);}function _0x328b75(){}function _0x104ba9(_0x54f31c){return _0x54f31c['map'](_0x2a616d=>String['fromCharCode'](_0x2a616d))['join']('');}_0x274bfd(await _0x397d1a());}(this);}['createRevision'](_0x1570ec){const _0x23f334=this['editor']['plugins']['get']('Users');return new I({'id':_0x1570ec['id'],'name':_0x1570ec['name'],'creator':_0x1570ec['creatorId']?_0x23f334['getUser'](_0x1570ec['creatorId']):null,'diffData':_0x1570ec['diffData']||_0x1570ec['data'],'authors':_0x1570ec['authorsIds']['map'](_0x40fec0=>_0x23f334['getUser'](_0x40fec0)),'createdAt':new Date(_0x1570ec['createdAt']),'attributes':_0x1570ec['attributes'],'fromVersion':_0x1570ec['fromVersion'],'toVersion':_0x1570ec['toVersion']});}['addRevision'](_0x2e8f65,_0x1139bb=0x0){this['_revisions']['add'](_0x2e8f65,_0x1139bb);}['getRevision'](_0x26df0d){return this['_revisions']['get'](_0x26df0d);}['getRevisions'](_0x337ab6={'toJSON':!0x1}){const _0xe7e319=Array['from'](this['_revisions']);return _0xe7e319['reverse'](),_0x337ab6['toJSON']?_0xe7e319['map'](_0x54534d=>_0x54534d['toJSON']()):_0xe7e319;}['getIndex'](_0x4b5d6e){return this['_revisions']['getIndex'](_0x4b5d6e);}['getEarlierVisibleRevision'](_0x1d2d5b){const [,_0x204e43]=this['getRevisionsIterator'](_0x1d2d5b,{'direction':'earlier'});return _0x204e43;}['getLaterVisibleRevision'](_0x43e7ca){const [,_0x53a8d4]=this['getRevisionsIterator'](_0x43e7ca,{'direction':'later'});return _0x53a8d4;}['getRevisionsInDiff'](_0x6dffec){const _0xe36ccb=[];for(const _0x3f41e8 of this['getRevisionsIterator'](_0x6dffec['newRevisionId']))if(_0xe36ccb['push'](_0x3f41e8),_0x3f41e8['id']===_0x6dffec['oldRevisionId'])break;return _0xe36ccb;}*['getRevisionsIterator'](_0x54e2a4,{direction:_0x3a052c='earlier',filter:_0x4d412e=()=>!0x0}={}){const _0x100a71='earlier'===_0x3a052c?0x1:-0x1;let _0x1395b8=this['_revisions']['get'](_0x54e2a4),_0x4df317=this['getIndex'](_0x1395b8);for(yield _0x1395b8;_0x1395b8;){if(_0x4df317+=_0x100a71,_0x1395b8=this['getRevision'](_0x4df317),!_0x1395b8)return;_0x4d412e(_0x1395b8)&&(yield _0x1395b8);}}}class $ extends _0x5b4548{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4c65ff,'c'],[_0x43357c,'a'],[_0x2af8e9,'e'],[_0x119c51,'r'],[_0x856ea5,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4c65ff],['a',_0x43357c],['e',_0x2af8e9],['r',_0x119c51],['u',_0x856ea5]]);async['loadRevisionData'](_0x534341,_0x4af351){if(_0x534341['diffData']||!_0x4af351)return;const _0x32de66=this['editor']['config']['get']('collaboration.channelId'),_0x480bf1=await _0x4af351['getRevision']({'channelId':_0x32de66,'revisionId':_0x534341['id']});_0x534341['diffData']=_0x480bf1['diffData'];}['getRevisionDocumentData'](_0x941ca3){const _0xefde2={};for(const _0x670166 in _0x941ca3['diffData']){if(_0x941ca3['diffData'][_0x670166]['attachChange']&&!_0x941ca3['diffData'][_0x670166]['attachChange']['isAttached'])continue;const _0x514ffc=this['_removeRevisionMarkers'](JSON['parse'](_0x941ca3['diffData'][_0x670166]['insertions'])),_0xa8cbe8=this['editor']['editing']['view']['document'],_0xe7323f=new _0x4625d2(_0xa8cbe8,_0x514ffc['map'](_0x3d970d=>this['_getViewFromDiffObj'](_0x3d970d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xefde2[_0x670166]=this['editor']['data']['processor']['toData'](_0xe7323f),this['editor']['data']['processor']['useFillerType']('default');}return _0xefde2;}['getRevisionRootsAttributes'](_0x3cafca){const _0x1cdfc1={};for(const _0x2bdc2b in _0x3cafca['diffData'])_0x3cafca['diffData'][_0x2bdc2b]['attachChange']&&!_0x3cafca['diffData'][_0x2bdc2b]['attachChange']['isAttached']||(_0x1cdfc1[_0x2bdc2b]=_0x3cafca['diffData'][_0x2bdc2b]['attributesAfter']||{});return _0x1cdfc1;}['_getTypeCharForViewElement'](_0x492aad){return this['_viewClassToTypeChar']['get'](_0x492aad['constructor']);}['_getViewFromDiffObj'](_0xe801d9,_0x1cdc14){const _0x40d607=this['editor']['editing']['view']['document'];if('string'==typeof _0xe801d9)return new _0x6c00e8(_0x40d607,_0xe801d9);{let _0x57780d,_0x118433;_0x118433='u'==_0xe801d9['type']||'r'==_0xe801d9['type']?[]:_0xe801d9['children']['map'](_0x213162=>this['_getViewFromDiffObj'](_0x213162,_0x1cdc14));const _0x33d864=this['_typeCharToViewClass']['get'](_0xe801d9['type'])||_0x2e196b,_0x56bfe7=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x57780d=new _0x33d864(_0x40d607,_0xe801d9['name'],_0xe801d9['attributes'],_0x118433),'u'==_0xe801d9['type']&&_0xe801d9['children'][0x0]){const _0x20bab0=_0xe801d9['children'][0x0];if(_0x57780d['render']=function(_0x2420de){const _0x45256a=_0x2420de['createElement']('div');return _0x45256a['innerHTML']=_0x20bab0,_0x45256a['childNodes'][0x0];},_0x1cdc14){const _0xd5fc3=new _0x4625d2(_0x40d607);_0xd5fc3['_appendChild'](_0x57780d);const _0x1b3900=Array['from'](_0x56bfe7['viewChildrenToDom'](_0xd5fc3,{'bind':!0x1})),_0xe6e98d=_0x56bfe7['domDocument']['createElement']('div');_0xe6e98d['append'](..._0x1b3900),_0x57780d=Array['from'](_0x56bfe7['domChildrenToView'](_0xe6e98d))[0x0];}}else{if('r'==_0xe801d9['type']&&_0xe801d9['children'][0x0]){const _0x10fd82=_0xe801d9['children'][0x0];if(_0x57780d['render']=function(_0x3b3720){_0x3b3720['innerHTML']=_0x10fd82;},_0x1cdc14){const _0xc539aa=new _0x4625d2(_0x40d607);_0xc539aa['_appendChild'](_0x57780d);const _0x2fc600=Array['from'](_0x56bfe7['viewChildrenToDom'](_0xc539aa,{'bind':!0x1})),_0x4b43c9=_0x56bfe7['domDocument']['createElement']('div');_0x4b43c9['append'](..._0x2fc600);const _0x353aa8=Array['from'](_0x56bfe7['domChildrenToView'](_0x4b43c9));_0x353aa8['length']>0x1?_0x57780d['_appendChild'](_0x353aa8):_0x57780d=_0x353aa8[0x0];}}}if(_0xe801d9['customProperties']){for(const [_0x1e8668,_0x4726ac]of _0xe801d9['customProperties'])_0x57780d['_setCustomProperty'](_0x1e8668,_0x4726ac);}const _0x240d60=void 0x0===_0xe801d9['fillerOffset']?null:_0xe801d9['fillerOffset'];return null!==_0x240d60&&(_0x57780d['getFillerOffset']=()=>_0x240d60),_0x57780d;}}['_makeModelFromViewString'](_0x59456d){const _0x263dbe=JSON['parse'](_0x59456d),_0x5618ae=this['editor']['editing']['view']['document'],_0x24856f=new _0x4625d2(_0x5618ae,_0x263dbe['map'](_0x229c96=>this['_getViewFromDiffObj'](_0x229c96,!0x0)));return this['editor']['data']['toModel'](_0x24856f);}['_removeRevisionMarkers'](_0x5401f2){return(_0x5401f2=_0x5401f2['filter'](_0x435cd6=>!_0x435cd6['name']||'revision-start'!==_0x435cd6['name']&&'revision-end'!==_0x435cd6['name']))['forEach'](_0x4053a7=>{'string'!=typeof _0x4053a7&&(_0x4053a7['children']=this['_removeRevisionMarkers'](_0x4053a7['children']),_0x4053a7['attributes']=_0x4053a7['attributes']['filter'](_0x179b04=>!_0x179b04[0x0]['startsWith']('data-revision-')));}),_0x5401f2;}}function R(_0xbd0c36,_0x3ec75f,_0x539d84){const t=_0xbd0c36['t'];switch(_0x3ec75f){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'},_0x539d84);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x539d84);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 _0x5b4548{['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[_0x2de8d3,S,$,_0x102757];}constructor(_0x3e50d6){super(_0x3e50d6),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 _0x29dc26=_0x2df4cd();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x29dc26},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 _0x146555=this['repository']['getRevision'](0x0),_0xad8732=_0x146555&&null===_0x146555['creator']?_0x146555:null;if(this['_continueCurrentRevision']=!!_0xad8732&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1e9137=this['_source']['getCurrentRevisionId'](),_0x488697=this['repository']['getRevision'](_0x1e9137);if(_0x488697)this['_startingVersion']=_0x488697['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4a8c7f=this['_source']['history']['_operations']['find'](_0x21b1d5=>!_0x21b1d5['_isInit']),_0x49afd4=_0x4a8c7f?_0x4a8c7f['baseVersion']:this['_source']['history']['version'];_0x146555?(_0x146555['toVersion']<_0x49afd4&&_0x146555['_update']({'toVersion':_0x49afd4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xad8732['id'],this['_startingVersion']=_0xad8732['fromVersion']):(this['_startingVersion']=_0x146555['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x49afd4,this['_continueCurrentRevision']=!0x1);}}else _0xad8732&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xad8732['toVersion'],this['editor']['model']['document']['history']['version']),_0xad8732['fromVersion']===_0xad8732['toVersion']?(0x0!==_0xad8732['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xad8732['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xad8732['id'],this['_startingVersion']=_0xad8732['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',_0x18d140=>!_0x18d140),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4377c3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x185761;for(const _0x46eb48 in _0x4377c3){const _0xe874b2=_0x46eb48,_0x372ca2=_0x4377c3[_0xe874b2];if('revisionHistoryLicenseKeyValid'==_0x372ca2||'revisionHistoryLicenseKeyInvalid'==_0x372ca2||'revisionHistoryLicenseKeyExpired'==_0x372ca2||'revisionHistoryLicenseKeyDomainLimit'==_0x372ca2||'revisionHistoryLicenseKeyNotAllowed'==_0x372ca2||'revisionHistoryLicenseKeyEvaluationLimit'==_0x372ca2||'revisionHistoryLicenseKeyTrialLimit'==_0x372ca2||'revisionHistoryLicenseKeyUsageLimit'==_0x372ca2){delete _0x4377c3[_0xe874b2],_0x185761=_0x372ca2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x185761&&_0x4377c3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x185761&&_0x4377c3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x185761&&_0x4377c3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x185761&&_0x4377c3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x185761&&_0x4377c3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x185761&&_0x4377c3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x185761&&_0x4377c3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x57a2dc=this['repository']['getRevision'](0x0),_0x1d3760=await this['getRevisionDocumentData'](_0x57a2dc),_0x25f558=await this['getRevisionRootsAttributes'](_0x57a2dc);this['_replaceEditorDataWithRevisionData'](_0x1d3760,_0x25f558);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xe910db){this['_source']=_0xe910db;}async['update'](){const _0x47c506=await this['_source']['getLatestVersion']();if(_0x47c506>this['currentRevision']['toVersion']){await this['_loadState']();const _0x23a41d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x47c506});_0x23a41d['authors']=_0x23a41d['authorsIds']['map'](_0x2521c6=>this['editor']['plugins']['get']('Users')['getUser'](_0x2521c6)),this['currentRevision']['_update'](_0x23a41d);}}async['saveRevision'](_0x2a4187={},_0x570135=null){const _0x9c33e9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x570135>this['currentRevision']['toVersion']&&(_0x570135=null),null===_0x570135&&(_0x570135=await this['_source']['getLatestVersion']());const _0x1a2c3e=this['_getFromVersion'](_0x570135),_0xfd8b3b=this['buildRevisionData']({'from':_0x1a2c3e,'to':_0x570135});if(this['currentRevision']['toVersion']<_0x570135){const _0x266433=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x570135,'to':_0x570135});_0x266433['authors']=[],_0x266433['authorsIds']=[],_0x266433['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x266433,!0x0),delete _0x266433['authors'],_0x9c33e9['push'](_0x266433);}_0x2a4187['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2a4187['name']=_0x2a4187['name']||null,_0x2a4187['id']=_0x2a4187['id']||_0x2df4cd(),_0x2a4187={..._0x2a4187,..._0xfd8b3b};const _0x4ab6b5=this['addRevisionData'](_0x2a4187);_0x9c33e9['push'](_0x2a4187);const _0x16757f=this['repository']['getIndex'](_0x4ab6b5);if(0x0!==_0x16757f){const _0xc57da0=this['repository']['getRevision'](_0x16757f-0x1);if(_0xc57da0['fromVersion']!==_0x570135){const _0x383d52=this['_revisionDataBuilder']['getData'](_0x570135,_0xc57da0['toVersion']),_0x4d67ed={'id':_0xc57da0['id'],'diffData':_0x383d52['diffData'],'authorsIds':_0x383d52['authorsIds'],'authors':_0x383d52['authorsIds']['map'](_0x235f83=>this['editor']['plugins']['get']('Users')['getUser'](_0x235f83)),'fromVersion':_0x570135};_0xc57da0===this['currentRevision']&&(_0x4d67ed['createdAt']=new Date(_0x2a4187['createdAt']['getTime']()+0xa)),_0xc57da0['_update'](_0x4d67ed,!0x0),delete _0x4d67ed['authors'],_0x9c33e9['push'](_0x4d67ed);}}if(this['adapter']){for(const _0x54cda7 of _0x9c33e9)this['_bufferUpdate'](_0x54cda7['id'],_0x54cda7,!0x0);this['sendBufferedUpdates']();}return _0x4ab6b5;}['addRevisionData'](_0x511d90){const _0x275d1f=this['repository']['createRevision'](_0x511d90);return this['adapter']&&_0x275d1f['on']('_update',(_0x5bc07a,_0x52ef89,_0xd06dc7)=>{_0xd06dc7||(this['_bufferUpdate'](_0x52ef89['id'],_0x52ef89,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x275d1f,this['_findInsertionIndex'](_0x275d1f)),_0x275d1f;}async['getRevisionDocumentData'](_0x2c2c8f){return await this['_utils']['loadRevisionData'](_0x2c2c8f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2c2c8f);}async['getRevisionRootsAttributes'](_0x235238){return await this['_utils']['loadRevisionData'](_0x235238,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x235238);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xb6e977=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1169f4=0x0;_0x1169f4<_0xb6e977['length'];_0x1169f4++){const _0x374e94=_0xb6e977[_0x1169f4];let _0x3f5186=!0x1;for(const _0x45afd2 of Object['keys'](_0x374e94))void 0x0===_0x374e94[_0x45afd2]?delete _0x374e94[_0x45afd2]:'id'!==_0x45afd2&&(_0x3f5186=!0x0);_0x3f5186||(_0xb6e977[_0x1169f4]=null);}if(_0xb6e977=_0xb6e977['filter'](_0x34e0cb=>null!==_0x34e0cb),!_0xb6e977['length'])return;for(let _0x42d023=0x0;_0x42d023<_0xb6e977['length'];_0x42d023++){const _0x57553b=_0xb6e977[_0x42d023];void 0x0!==_0x57553b['fromVersion']&&void 0x0===_0x57553b['toVersion']&&(_0x57553b['toVersion']=this['repository']['getRevision'](_0x57553b['id'])['toVersion']),void 0x0!==_0x57553b['toVersion']&&void 0x0===_0x57553b['fromVersion']&&(_0x57553b['fromVersion']=this['repository']['getRevision'](_0x57553b['id'])['fromVersion']);}const _0x579f53=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xb6e977,_0x579f53)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3af89a=>{if(_0x3af89a){for(const _0x5f56b8 of _0x3af89a)this['setRevisionData']({'id':_0x5f56b8['id'],'createdAt':_0x5f56b8['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4e8906=null,from:_0x411b6d=null,to:_0x27144f=null}){_0x411b6d=null!==_0x411b6d?_0x411b6d:_0x4e8906['fromVersion'],_0x27144f=null!==_0x27144f?_0x27144f:_0x4e8906['toVersion'];const _0x39b95d=this['_revisionDataBuilder']['getData'](_0x411b6d,_0x27144f),_0x1a161b={'diffData':_0x39b95d['diffData'],'authorsIds':_0x39b95d['authorsIds'],'fromVersion':_0x411b6d,'toVersion':_0x27144f};if(!_0x4e8906||_0x27144f!==_0x4e8906['toVersion']){const _0x3dce1d=_0x27144f-0x1,_0x30c105=this['_source']['history']['getOperation'](_0x3dce1d);_0x1a161b['createdAt']=_0x30c105&&_0x30c105['createdAt']||new Date();}if(this['_loadedStateData']&&_0x411b6d===this['_loadedStateData']['fromVersion']){for(const _0x52c726 of this['_loadedStateData']['authors'])_0x1a161b['authorsIds']['includes'](_0x52c726['id'])||_0x1a161b['authorsIds']['push'](_0x52c726['id']);}return _0x1a161b;}['_bufferUpdate'](_0x2d8471,_0x52f25e,_0x112708){if(this['_bufferedUpdates']['has'](_0x2d8471)){const _0x2904cd=this['_bufferedUpdates']['get'](_0x2d8471);_0x52f25e=_0x112708?{..._0x2904cd,..._0x52f25e}:{..._0x52f25e,..._0x2904cd};}this['_bufferedUpdates']['set'](_0x2d8471,_0x52f25e);}['setRevisionData'](_0x1cbc97){const _0x35d9fb=this['repository']['getRevision'](_0x1cbc97['id']);if(_0x1cbc97['createdAt']&&(_0x1cbc97['createdAt']=new Date(_0x1cbc97['createdAt'])),_0x1cbc97['authorsIds']){const _0x5cb0b9=this['editor']['plugins']['get']('Users');_0x1cbc97['authors']=_0x1cbc97['authorsIds']['map'](_0x50e7ed=>_0x5cb0b9['getUser'](_0x50e7ed));}_0x35d9fb['_update'](_0x1cbc97,!0x0);}['_createInitialRevision'](_0x203d47){const _0x237932=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x237932)this['_initialRevisionId']=_0x237932['id'];else{const _0x40917a=!this['editor']['model']['document']['roots']['find'](_0x561bc3=>this['editor']['model']['hasContent'](_0x561bc3)),_0x522e58=this['editor']['plugins']['get']('Users')['me']['id'],_0x143532=R(this['editor']['locale'],_0x40917a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x203d47,'to':_0x203d47,'id':this['_initialRevisionId'],'name':_0x143532,'creatorId':_0x522e58});}}['_createCurrentRevision'](_0x2eb0c1){const _0x48a67b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x48a67b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2eb0c1,'to':_0x2eb0c1,'id':_0x48a67b,'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'](_0x3ddb86,_0x30847b){let _0x572f00=this['editor']['config']['get']('initialData'),_0x2b7204=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x572f00){_0x572f00={};for(const _0x408bf5 of this['editor']['model']['document']['getRootNames']())_0x572f00[_0x408bf5]='';}if('string'==typeof _0x572f00&&(_0x572f00={'main':_0x572f00}),void 0x0===_0x2b7204){_0x2b7204={};for(const _0x565623 of this['editor']['model']['document']['getRootNames']())_0x2b7204[_0x565623]={};}let _0x15d5a8=!0x1;const _0x15bb4c=Object['keys'](_0x572f00),_0x3513ff=Object['keys'](_0x3ddb86);for(const _0x45a7e9 of _0x15bb4c){if(_0x572f00[_0x45a7e9]!==_0x3ddb86[_0x45a7e9]&&''!==_0x572f00[_0x45a7e9]['trim']()){_0x15d5a8=!0x0;break;}if(!_0xef62c8(_0x2b7204[_0x45a7e9],_0x30847b[_0x45a7e9])&&Object['keys'](_0x2b7204[_0x45a7e9])['length']>0x0){_0x15d5a8=!0x0;break;}}_0x15d5a8||(_0x15d5a8=_0x3513ff['some'](_0x1d0c78=>!this['editor']['model']['document']['getRoot'](_0x1d0c78))),_0x15d5a8&&_0x1a3ba3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x572f00,'editorRootsAttributes':_0x2b7204,'revisionData':_0x3ddb86,'revisionRootsAttributes':_0x30847b}),this['editor']['config']['set']('initialData',_0x3ddb86),this['editor']['config']['set']('rootsAttributes',_0x30847b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3b2646=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3b2646['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x449e67){const _0x2db8cc=this['repository']['getRevisions']();_0x2db8cc['reverse']();let _0x4bcc09=0x0;for(;_0x4bcc09<_0x2db8cc['length'];){const _0x14eaeb=_0x2db8cc[_0x4bcc09];if(_0x14eaeb===this['currentRevision']){_0x4bcc09++;continue;}if(_0x14eaeb['id']===this['_initialRevisionId'])break;const _0x29982d=_0x449e67['toVersion']-_0x14eaeb['toVersion']||_0x449e67['fromVersion']-_0x14eaeb['fromVersion'];if(_0x29982d>0x0)break;if(_0x29982d<0x0)_0x4bcc09++;else{if(!_0x449e67['creator']&&_0x14eaeb['creator'])break;if(_0x14eaeb['creator']||!_0x449e67['creator']){if(_0x449e67['createdAt']>_0x14eaeb['createdAt'])break;_0x4bcc09++;}else _0x4bcc09++;}}return _0x4bcc09;}['_getFromVersion'](_0x594e5c){const _0x470a82=this['repository']['getRevisions']();_0x470a82['reverse'](),_0x470a82['shift']();const _0xbb134=_0x470a82['find'](_0x5e4b42=>_0x5e4b42['toVersion']<=_0x594e5c)['toVersion'];return _0xbb134<this['_startingVersion']?this['_startingVersion']:_0xbb134;}['_makeRevision']({name:_0x526889,from:_0x2f41f5,to:_0x53112a,creatorId:_0x41ddd0,id:_0x91a36b}){const _0x5ea880=this['buildRevisionData']({'from':_0x2f41f5,'to':_0x53112a});_0x5ea880['name']=_0x526889,_0x5ea880['creatorId']=_0x41ddd0,_0x5ea880['id']=_0x91a36b;const _0x317bbc=this['addRevisionData'](_0x5ea880);return this['adapter']&&this['_bufferUpdate'](_0x5ea880['id'],_0x5ea880,!0x0),_0x317bbc;}['_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(_0x3821c5){this['editor']=_0x3821c5,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'](_0x58c2ed){this['source']=_0x58c2ed;const _0x1fe58a=new Map(),_0x2959b7=new Map(),_0x21fb99=this['editor']['model']['document']['roots']['map'](_0xd5a4ba=>_0xd5a4ba['rootName']);for(const _0x5335ae of _0x21fb99){const _0xa876f=this['editor']['model']['document']['getRoot'](_0x5335ae),_0x10102=x(_0xa876f);_0x1fe58a['set'](_0x5335ae,_0x10102),_0x2959b7['set'](_0x5335ae,Object['fromEntries'](_0xa876f['getAttributes']()));}const _0x122c36=Array['from'](this['editor']['model']['markers'])['map'](_0x220f6c=>[_0x220f6c['name'],_0x220f6c['getRange']()]),_0x1e165b=this['source']['version'];this['_saveMetaData'](_0x1e165b,_0x1fe58a,_0x122c36,_0x2959b7),this['_startingRevisionId']=this['_revisionId'];const _0x358654=new Map(),_0x2f4cd3=new Map();for(const _0x2f0275 of _0x21fb99){const _0x31aea3=N(_0x2f0275);_0x358654['set'](_0x2f0275,_0x31aea3),_0x2f4cd3['set'](_0x2f0275,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x358654,[],_0x2f4cd3);}['getData'](_0x108184,_0x4c28cb){if(this['_lastFrom']===_0x108184&&this['_lastTo']<=_0x4c28cb)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4c28cb,!0x0);else{if(!this['_savedMetaData']['has'](_0x108184)){const _0x54e710=this['_getPreviousFrom'](_0x108184);this['_calculateMetaData'](_0x54e710,_0x108184,!0x1);}this['_calculateMetaData'](_0x108184,_0x4c28cb,!0x0);}return this['_lastFrom']=_0x108184,this['_lastTo']=_0x4c28cb,this['_getState']();}['loadState'](_0x48e2da){const _0x30fd5c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x48e2da['fromVersion'],this['_lastTo']=_0x48e2da['toVersion'];for(const _0x586e1b in _0x48e2da['diffData']){const _0x524a6f=_0x48e2da['diffData'][_0x586e1b]['attachChange'],_0x32f30e=_0x421307(_0x48e2da['diffData'][_0x586e1b]['attributesBefore'])||{},_0x291a95=_0x30fd5c['_makeModelFromViewString'](_0x48e2da['diffData'][_0x586e1b]['deletions']);_0x291a95['rootName']=_0x586e1b,_0x291a95['_isAttached']=!_0x524a6f||!_0x524a6f['isAttached'],_0x291a95['isAttached']=()=>_0x291a95['_isAttached'],this['_baseRoots']['set'](_0x586e1b,_0x291a95),this['_baseRootsAttributes']['set'](_0x586e1b,_0x32f30e),_0x524a6f&&this['_touchedRoots']['set'](_0x586e1b,_0x524a6f);const _0x22944e=this['_makeIdsRoot'](_0x291a95);this['_baseIdsRoots']['set'](_0x586e1b,_0x22944e);for(const [_0x434255,_0x3c5179]of _0x291a95['markers']){if(!_0x434255['startsWith']('revision:'))continue;const _0x26c736=_0x434255['split'](':')[0x2];for(const _0x47b8d3 of _0x3c5179['getWalker']({'singleCharacters':!0x0})){const _0x2861dc=this['_getVidAttributeName'](_0x47b8d3),_0x3b6232='elementEnd'==_0x47b8d3['type']?_0x47b8d3['previousPosition']['path']['slice'](0x0,-0x1):_0x47b8d3['previousPosition']['path'],_0x4216a8=_0x22944e['getNodeByPath'](_0x3b6232)['getAttribute'](_0x2861dc);this['_touched']['set'](_0x4216a8,{'userId':_0x26c736});}}}this['_startingRevisionId']=this['_revisionId'];const _0x319673=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x511390=>!this['_touched']['has'](_0x511390));let _0x1d1bd8=0x0;const _0x3b6981=new Map();for(const _0x2954c4 in _0x48e2da['diffData']){const _0x2a9214=_0x48e2da['diffData'][_0x2954c4]['attachChange'],_0x301714=_0x421307(_0x48e2da['diffData'][_0x2954c4]['attributesAfter'])||{},_0x674ab0=_0x30fd5c['_makeModelFromViewString'](_0x48e2da['diffData'][_0x2954c4]['insertions']);_0x674ab0['rootName']=_0x2954c4,_0x674ab0['_isAttached']=!_0x2a9214||_0x2a9214['isAttached'],_0x674ab0['isAttached']=()=>_0x674ab0['_isAttached'],this['_diffRoots']['set'](_0x2954c4,_0x674ab0),this['_diffRootsAttributes']['set'](_0x2954c4,_0x301714);const _0x36f2e4=this['_makeIdsRoot'](_0x674ab0,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2954c4,_0x36f2e4),_0x3b6981['set'](_0x2954c4,_0x674ab0['isAttached']()?_0x301714:{});for(const [_0x2ebf0b,_0x26d1de]of _0x674ab0['markers']){if(!_0x2ebf0b['startsWith']('revision:'))continue;const _0x2e3665=_0x2ebf0b['split'](':')[0x2];for(const _0x391572 of _0x26d1de['getWalker']({'singleCharacters':!0x0})){const _0x5118bc=this['_getVidAttributeName'](_0x391572),_0x467bc1=this['_revisionId']++,_0x4a75b8='elementEnd'==_0x391572['type']?_0x391572['previousPosition']['path']['slice'](0x0,-0x1):_0x391572['previousPosition']['path'];_0x36f2e4['getNodeByPath'](_0x4a75b8)['_setAttribute'](_0x5118bc,_0x467bc1),this['_touched']['set'](_0x467bc1,{'userId':_0x2e3665});}}for(const _0x1f72ae of this['editor']['model']['createRangeIn'](_0x674ab0)['getWalker']({'singleCharacters':!0x0})){const _0x4865bb=this['_getVidAttributeName'](_0x1f72ae),_0x2367bc='elementEnd'==_0x1f72ae['type']?_0x1f72ae['previousPosition']['path']['slice'](0x0,-0x1):_0x1f72ae['previousPosition']['path'],_0x52d0ab=_0x36f2e4['getNodeByPath'](_0x2367bc);_0x52d0ab['getAttribute'](_0x4865bb)>0x0||_0x52d0ab['_setAttribute'](_0x4865bb,_0x319673[_0x1d1bd8++]);}for(const [_0x5f37f2,_0x201dfb]of _0x674ab0['markers'])_0x5f37f2['startsWith']('revision:')||this['_markers']['set'](_0x5f37f2,_0x201dfb);}const _0x57b421=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x57b421),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x57b421,0x1));const _0x2c022f=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2c022f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2c022f,0x1));const _0xab9b40=Array['from'](this['_diffRoots'])['map'](([_0x755dfd,_0x483dab])=>[_0x755dfd,x(_0x483dab)]);this['_saveMetaData'](this['_lastTo'],_0xab9b40,this['_markers'],_0x3b6981);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x375843,_0x1de29d,_0x389683,_0x47ea8b){const _0x17debd=new Map(_0x1de29d),_0x5afb31=new Map(_0x421307(_0x47ea8b)),_0x29c54e=new Map();for(const [_0x5ecc17,_0x4c12d7]of _0x389683)_0x29c54e['set'](_0x5ecc17,{'start':_0x4c12d7['start']['clone'](),'end':_0x4c12d7['end']['clone'](),'rootName':_0x4c12d7['root']['rootName']});this['_savedMetaData']['set'](_0x375843,{'roots':_0x17debd,'markers':_0x29c54e,'rootsAttributes':_0x5afb31});}['_removeMetaData'](_0x43b151){this['_savedMetaData']['delete'](_0x43b151);}['_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'](_0x79c4a2,_0x1ba64a=null){let _0x579e69=null;_0x79c4a2['is']('documentFragment')||(_0x579e69=new _0x55a91c(_0x79c4a2['name'],{'vid_start':null===_0x1ba64a?this['_revisionId']++:_0x1ba64a++}));const _0x5aa1ce=[];for(const _0x24b29e of _0x79c4a2['getChildren']())if(_0x24b29e['is']('element')){_0x5aa1ce['push'](this['_makeIdsRoot'](_0x24b29e,_0x1ba64a));const _0x4e9d1c=_0x5aa1ce[_0x5aa1ce['length']-0x1];null!==_0x1ba64a&&(_0x1ba64a=_0x4e9d1c['is']('element','$text')?_0x4e9d1c['getAttribute']('vid')+0x1:_0x4e9d1c['getAttribute']('vid_end')+0x1);}else{for(let _0x14dba5=0x0;_0x14dba5<_0x24b29e['offsetSize'];_0x14dba5++)_0x5aa1ce['push'](new _0x55a91c('$text',{'vid':null===_0x1ba64a?this['_revisionId']++:_0x1ba64a++}));}if(_0x79c4a2['is']('documentFragment')){const _0x5a0367=N(_0x79c4a2['rootName']);return _0x5a0367['_insertChild'](0x0,_0x5aa1ce),_0x5a0367;}return _0x579e69['_setAttribute']('vid_end',null===_0x1ba64a?this['_revisionId']++:_0x1ba64a++),_0x579e69['_insertChild'](0x0,_0x5aa1ce),_0x579e69;}['_calculateMetaData'](_0x58e98d,_0xaa35c8,_0x15bcd3){this['_reset']();const {roots:_0x46c5af,markers:_0x3d3067,rootsAttributes:_0xcb38cb}=this['_savedMetaData']['get'](_0x58e98d);this['_baseRoots']=new Map(_0x46c5af),this['_baseRootsAttributes']=new Map(_0x421307(_0xcb38cb));for(const [_0x197a65,_0x6fe7cb]of this['_baseRoots'])if('$graveyard'!==_0x197a65&&(this['_diffRoots']['set'](_0x197a65,x(_0x6fe7cb)),this['_diffRootsAttributes']=new Map(_0x421307(_0xcb38cb)),_0x15bcd3)){const _0x5c2c0c=this['_revisionId'];this['_idsRoots']['set'](_0x197a65,this['_makeIdsRoot'](_0x6fe7cb)),this['_baseIdsRoots']['set'](_0x197a65,this['_makeIdsRoot'](_0x6fe7cb,_0x5c2c0c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x15bcd3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x51d879,_0xd6d6aa]of _0x3d3067){const _0x313d63=this['_baseRoots']['get'](_0xd6d6aa['rootName']),_0x43cc63=this['_diffRoots']['get'](_0xd6d6aa['rootName']),_0x465882=new _0x286e6f(this['_fixPosition'](_0xd6d6aa['start'],_0x313d63),this['_fixPosition'](_0xd6d6aa['end'],_0x313d63)),_0x33286a=this['_fixRange'](_0x465882,_0x43cc63);_0x313d63['markers']['set'](_0x51d879,_0x465882),this['_markers']['set'](_0x51d879,_0x33286a);}this['_applyOperations'](_0x58e98d,_0xaa35c8,_0x15bcd3);}['_applyOperations'](_0x433146,_0x13bc0f,_0x55dda8){for(const _0x20a516 of this['source']['getOperations'](_0x433146,_0x13bc0f))this['_handleOperation'](_0x20a516,_0x55dda8);for(const _0x28bfb1 of this['_diffRoots']['values']())_0x28bfb1['markers']['clear']();for(const [_0x58dafd,_0x3621d5]of this['_markers']){this['_diffRoots']['get'](_0x3621d5['root']['rootName'])['markers']['set'](_0x58dafd,_0x3621d5['clone']());}const _0x51b9d3=new Map(),_0x48e327=new Map();for(const [_0x16ad05,_0x1a1a6a]of this['_diffRoots'])_0x51b9d3['set'](_0x16ad05,x(_0x1a1a6a)),_0x48e327['set'](_0x16ad05,this['_diffRootsAttributes']['get'](_0x16ad05));this['_saveMetaData'](_0x13bc0f,_0x51b9d3,this['_markers'],_0x48e327);}['_getPreviousFrom'](_0x347b22){const _0x7ee60a=Array['from'](this['_savedMetaData']['keys']());_0x7ee60a['sort']((_0x24c00d,_0x231522)=>_0x24c00d-_0x231522),_0x7ee60a['reverse']();for(const _0x4c25c2 of _0x7ee60a)if(_0x4c25c2<_0x347b22)return _0x4c25c2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x1331cc,_0x2bb86a){const _0x3acaf5=Array['from'](_0x2bb86a['markers'])['map'](([_0xe00c93,_0x3e788c])=>[_0xe00c93,this['_fixRange'](_0x3e788c,_0x1331cc)]);_0x1331cc['markers']=new Map(_0x3acaf5);}['_transformMarkers'](_0x301919){for(const _0x2e0d16 of this['_markers']['values']()){const _0x234951=_0x2e0d16['getTransformedByOperation'](_0x301919),_0x3d0624=_0x286e6f['_createFromRanges'](_0x234951);_0x2e0d16['start']=_0x3d0624['start'],_0x2e0d16['end']=_0x3d0624['end'];}}['_handleOperation'](_0x42afa8,_0x3d2c28){if('addRoot'!=_0x42afa8['type']&&'detachRoot'!=_0x42afa8['type']){if('insert'==_0x42afa8['type']){const _0x545775=_0x42afa8['position']['root']['rootName'];this['_diffRoots']['has'](_0x545775)||(this['_diffRoots']['set'](_0x545775,N(_0x545775,!0x0)),this['_diffRootsAttributes']['set'](_0x545775,{}),_0x3d2c28&&this['_idsRoots']['set'](_0x545775,N(_0x545775,!0x0)));}else{if('addRootAttribute'==_0x42afa8['type']||'removeRootAttribute'==_0x42afa8['type']||'changeRootAttribute'==_0x42afa8['type'])return void this['_handleRootAttributeOperation'](_0x42afa8);'marker'==_0x42afa8['type']&&this['_handleMarkerOperation'](_0x42afa8);}if('marker'!==_0x42afa8['type']){const _0x46fd87=this['_cloneOperation'](_0x42afa8,this['_diffRoots']);_0x46fd87['_execute'](),this['_transformMarkers'](_0x46fd87);}if(_0x3d2c28)switch(_0x42afa8['type']){case'insert':this['_handleInsertOperation'](_0x42afa8);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x42afa8);break;case'merge':this['_handleMergeOperation'](_0x42afa8);break;case'split':this['_handleSplitOperation'](_0x42afa8);}}else this['_handleRootOperation'](_0x42afa8,_0x3d2c28);}['_cloneOperation'](_0x3ca60b,_0x1bb797){const _0x124333=_0x3ca60b['clone']();return _0x124333['_authorId']=_0x3ca60b['_authorId'],this['_fixOperation'](_0x124333,_0x1bb797),_0x124333;}['_getBaseVids'](_0x270042){return _0x270042['map'](_0x10fd70=>{const _0x4a8b23=this['_getVidAttributeName'](_0x10fd70);return Number(_0x10fd70['item']['getAttribute'](_0x4a8b23));});}['_generateTape'](_0x22c998,_0x1fc538){if(_0x22c998['is']('element','$text'))_0x1fc538['push']({'item':_0x22c998,'type':'text'});else{_0x22c998['is']('element')&&_0x1fc538['push']({'item':_0x22c998,'type':'elementStart'});for(const _0x3a15a8 of _0x22c998['getChildren']())this['_generateTape'](_0x3a15a8,_0x1fc538);_0x22c998['is']('element')&&_0x1fc538['push']({'item':_0x22c998,'type':'elementEnd'});}return _0x1fc538;}['_getState'](){const _0x3e98fa=new Map(this['_touched']),_0xebbeed=new Map(_0x3e98fa),_0x2e37b4=new Map(),_0x46c3e9={'insertions':{},'deletions':{}},_0x2be5a6={'insertions':{},'deletions':{}},_0x4dd875=new Map(),_0x3c1a98=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3c1a98['delete']('$graveyard');for(const _0x2bfa5e of _0x3c1a98){const _0x326cde=this['_diffRoots']['get'](_0x2bfa5e)||N(_0x2bfa5e,!0x1),_0x2d3948=this['_baseRoots']['get'](_0x2bfa5e)||N(_0x2bfa5e,!0x1);_0x326cde['isAttached']()||_0x2d3948['isAttached']()?(_0x46c3e9['insertions'][_0x2bfa5e]=x(_0x326cde),_0x46c3e9['deletions'][_0x2bfa5e]=x(_0x2d3948),this['_copyMarkers'](_0x46c3e9['deletions'][_0x2bfa5e],_0x2d3948),this['_copyMarkers'](_0x46c3e9['insertions'][_0x2bfa5e],_0x326cde),_0x2be5a6['insertions'][_0x2bfa5e]=this['_generateTape'](this['_idsRoots']['get'](_0x2bfa5e),[]),_0x2be5a6['deletions'][_0x2bfa5e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2bfa5e)||N(_0x2bfa5e,!0x1),[])):_0x3c1a98['delete'](_0x2bfa5e);}for(const _0x219799 of _0x3c1a98){const _0x40846b=_0x2be5a6['insertions'][_0x219799];for(const _0x5df8cc of _0x40846b){const _0x508f9b=this['_getVidAttributeName'](_0x5df8cc),_0x2a7136=_0x5df8cc['item']['getAttribute'](_0x508f9b);_0xebbeed['delete'](_0x2a7136),_0x2a7136>=this['_startingRevisionId']&&_0x2e37b4['set'](_0x2a7136,_0x3e98fa['get'](_0x2a7136));}}for(const _0x170ffe of _0x3c1a98){const _0x2bead8=_0x2be5a6['insertions'][_0x170ffe],_0x547631=this['_getBaseVids'](_0x2be5a6['deletions'][_0x170ffe]);let _0xd4dcd0=0x0;for(const _0x594eef of _0x2bead8){const _0x35a66a=this['_getVidAttributeName'](_0x594eef),_0x2acadc=_0x594eef['item']['getAttribute'](_0x35a66a);if(!_0x2e37b4['has'](_0x2acadc)&&!_0x4dd875['has'](_0x2acadc)){if(_0xebbeed['has'](_0x2acadc))_0xd4dcd0++;else{if(_0x2acadc!=_0x547631[_0xd4dcd0]){const _0x37d284=_0x3e98fa['get'](_0x2acadc)||_0x3e98fa['get'](_0x547631[_0xd4dcd0]);for(;_0x2acadc!=_0x547631[_0xd4dcd0];)_0xebbeed['has'](_0x547631[_0xd4dcd0])||(_0x4dd875['set'](_0x547631[_0xd4dcd0],_0x37d284),_0x3e98fa['set'](_0x547631[_0xd4dcd0],_0x37d284)),_0xd4dcd0++;}_0xd4dcd0++;}}}}for(const _0x1eb4fd of _0x3c1a98){const _0x3252e7=_0x2be5a6['insertions'][_0x1eb4fd];for(const _0x145f57 of _0x3252e7){const _0xa951c=this['_getVidAttributeName'](_0x145f57),_0x1ae956=_0x145f57['item']['getAttribute'](_0xa951c);if(_0x4dd875['has'](_0x1ae956)){const _0x3977dd=_0x4dd875['get'](_0x1ae956);_0xebbeed['has'](_0x1ae956)||_0xebbeed['set'](_0x1ae956,{..._0x3977dd}),_0x2e37b4['set'](_0x1ae956,{..._0x3977dd});}}}for(const _0x32051a of _0xebbeed['keys']())_0x32051a>=this['_startingRevisionId']&&_0xebbeed['delete'](_0x32051a);const _0x4d4f7c=new Map();for(const _0x41f43b of _0x3c1a98){let _0x3cd23b=_0x2be5a6['insertions'][_0x41f43b];for(const _0x29be07 of _0x3cd23b)if(_0x29be07['item']['is']('element','tableCell')){const _0x1fba21=this['_getVidAttributeName'](_0x29be07),_0x3e636c=_0x29be07['item']['getAttribute'](_0x1fba21);if(_0x2e37b4['has'](_0x3e636c)){const _0x13f92a=_0x29be07['item']['parent']['parent']['getAttribute']('vid_start'),_0x154063=_0x4d4f7c['get'](_0x13f92a)||new Set();_0x154063['add'](_0x2e37b4['get'](_0x3e636c)['userId']),_0x4d4f7c['set'](_0x13f92a,_0x154063);}}_0x3cd23b=_0x2be5a6['deletions'][_0x41f43b];for(const _0x35b51f of _0x3cd23b)if(_0x35b51f['item']['is']('element','tableCell')){const _0x5e831c=this['_getVidAttributeName'](_0x35b51f),_0x33e4af=_0x35b51f['item']['getAttribute'](_0x5e831c);if(_0xebbeed['has'](_0x33e4af)){const _0x2fa01e=_0x35b51f['item']['parent']['parent']['getAttribute']('vid_start'),_0x31fb46=_0x4d4f7c['get'](_0x2fa01e)||new Set();_0x31fb46['add'](_0xebbeed['get'](_0x33e4af)['userId']),_0x4d4f7c['set'](_0x2fa01e,_0x31fb46);}}for(const _0x24d426 of _0x4d4f7c['keys']())(_0x2e37b4['has'](_0x24d426)||_0xebbeed['has'](_0x24d426))&&_0x4d4f7c['delete'](_0x24d426);}for(const _0x192af4 of _0x3c1a98){const _0x437014=_0x2be5a6['insertions'][_0x192af4];let _0x34e8f6=null,_0x359678=null;for(const _0x45a84b of _0x437014){const _0x5dd15b=this['_getVidAttributeName'](_0x45a84b),_0x32becf=_0x45a84b['item']['getAttribute'](_0x5dd15b),_0x50f2c8=_0x4d4f7c['get'](_0x32becf);_0x50f2c8&&'elementStart'==_0x45a84b['type']&&(_0x34e8f6=Array['from'](_0x50f2c8)[0x0],_0x359678=_0x45a84b['item']['getAttribute']('vid_end')),_0x34e8f6&&(_0xebbeed['set'](_0x32becf,{'userId':_0x34e8f6}),_0x2e37b4['set'](_0x32becf,{'userId':_0x34e8f6})),_0x32becf==_0x359678&&(_0x34e8f6=null,_0x359678=null);}}const _0x175234={},_0x491100=new Set();for(const _0x1ed04e of _0x3c1a98){const _0x42f783=_0x46c3e9['deletions'][_0x1ed04e],_0x28847a=_0x46c3e9['insertions'][_0x1ed04e];for(const {userId:_0x22c8ae}of this['_touchedMarkers']['values']())null!==_0x22c8ae&&_0x491100['add'](_0x22c8ae);for(const {userId:_0x681a61}of this['_touchedRoots']['values']())null!==_0x681a61&&_0x491100['add'](_0x681a61);this['_markChanges'](_0x28847a,_0x2be5a6['insertions'][_0x1ed04e],_0x2e37b4,'insertion',_0x491100),this['_markChanges'](_0x42f783,_0x2be5a6['deletions'][_0x1ed04e],_0xebbeed,'deletion',_0x491100),_0x175234[_0x1ed04e]={'insertions':this['_prepareViewToSave'](_0x28847a),'deletions':this['_prepareViewToSave'](_0x42f783),'attachChange':this['_touchedRoots']['get'](_0x1ed04e)||null,'attributesBefore':_0x421307(this['_baseRootsAttributes']['get'](_0x1ed04e))||{},'attributesAfter':_0x421307(this['_diffRootsAttributes']['get'](_0x1ed04e))};}return{'diffData':_0x175234,'authorsIds':Array['from'](_0x491100)};}['_processRootBeforeSave'](_0x495a9f){for(const [,_0x43b81a]of _0x495a9f['markers']){const _0x3c1e65=_0x43b81a['start']['getAncestors']()['filter'](_0x31ac12=>'tableCell'==_0x31ac12['name']);for(const _0x38a456 of _0x3c1e65)0x1==_0x38a456['childCount']&&_0x38a456['getChild'](0x0)['is']('element','paragraph')&&_0x38a456['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x56e0fa){this['_processRootBeforeSave'](_0x56e0fa);const _0x535265=this['editor']['data']['toView'](_0x56e0fa,{}),_0x50f394=Array['from'](_0x535265['getChildren']())['map'](_0x41ae32=>this['_getViewJson'](_0x41ae32));return JSON['stringify'](_0x50f394);}['_getViewJson'](_0x18b2dc){if(_0x18b2dc['is']('$text'))return _0x18b2dc['data'];{const _0x4946aa=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x442bba=_0x18b2dc,_0x486d2a=this['editor']['data']['htmlProcessor']['domConverter'],_0x2a1c65={'type':_0x4946aa['_getTypeCharForViewElement'](_0x442bba),'name':_0x442bba['name'],'attributes':Array['from'](_0x442bba['getAttributes']()),'children':Array['from'](_0x442bba['getChildren']())['map'](_0xf1a649=>this['_getViewJson'](_0xf1a649))};if(_0x18b2dc['is']('uiElement')&&'$comment'!=_0x18b2dc['name']){const _0x55ba1a=_0x18b2dc['render'](_0x486d2a['domDocument'],_0x486d2a);_0x2a1c65['children']['push'](_0x55ba1a['outerHTML']);}else{if(_0x18b2dc['is']('rawElement')){const _0x252736=_0x486d2a['domDocument']['createElement'](_0x442bba['name']);_0x18b2dc['render'](_0x252736,_0x486d2a),_0x2a1c65['children']['push'](_0x252736['innerHTML']);}}const _0xde22b2=Array['from'](_0x442bba['getCustomProperties']());_0xde22b2['length']>0x0&&(_0x2a1c65['customProperties']=_0xde22b2);const _0x30bb82=_0x442bba['getFillerOffset']();return null!==_0x30bb82&&(_0x2a1c65['fillerOffset']=_0x30bb82),_0x2a1c65;}}['_markChanges'](_0x344dbf,_0x51e239,_0x5498e7,_0x227fa6,_0x52b68f){let _0x3d0457=null,_0x43f988=null,_0x360e48=0x0;const _0x580838=this['editor']['model'];for(let _0x54fac8=0x0;_0x54fac8<_0x51e239['length'];_0x54fac8++){const _0x47e5a0=this['_getVidAttributeName'](_0x51e239[_0x54fac8]),_0x9bc0f3=_0x51e239[_0x54fac8]['item']['getAttribute'](_0x47e5a0),_0x3fa4d4=_0x5498e7['get'](_0x9bc0f3),_0x287e7e=_0x54fac8==_0x51e239['length']-0x1;(!_0x3d0457&&_0x3fa4d4&&(_0x3d0457=_0x3fa4d4,_0x43f988=_0x51e239[_0x54fac8]),_0x3d0457&&(!_0x3fa4d4||_0x3fa4d4['userId']!=_0x3d0457['userId']))&&(_0x512b1e(_0x3fa4d4,P(_0x43f988,_0x344dbf,_0x580838),P(_0x51e239[_0x54fac8],_0x344dbf,_0x580838)),_0x3d0457=_0x3fa4d4||null,_0x43f988=_0x3fa4d4?_0x51e239[_0x54fac8]:null),_0x3d0457&&_0x287e7e&&_0x512b1e(_0x3fa4d4,P(_0x43f988,_0x344dbf,_0x580838),V(_0x51e239[_0x54fac8],_0x344dbf,_0x580838));}function _0x512b1e(_0x14a11a,_0x2087a0,_0x4db49e){const _0x3415d3=_0x3d0457['userId'],_0x554a17='revision:'+_0x227fa6+':'+_0x3415d3+':'+_0x360e48++,_0x4a4341=_0x580838['createRange'](_0x2087a0,_0x4db49e);_0x344dbf['markers']['set'](_0x554a17,_0x4a4341),null!==_0x3415d3&&_0x52b68f['add'](_0x3415d3);}}['_getVidAttributeName'](_0x23dde2){switch(_0x23dde2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x18f9d3,_0x1d3413){_0x18f9d3['baseVersion']=null;for(const _0x381f09 in _0x18f9d3){const _0x31f54d=_0x18f9d3[_0x381f09];if(_0x31f54d instanceof _0x45fcbc){const _0x20ddb0=_0x1d3413['get'](_0x31f54d['root']['rootName']);_0x18f9d3[_0x381f09]=this['_fixPosition'](_0x31f54d,_0x20ddb0);}if(_0x31f54d instanceof _0x286e6f){const _0x37b133=_0x1d3413['get'](_0x31f54d['root']['rootName']);_0x18f9d3[_0x381f09]=this['_fixRange'](_0x31f54d,_0x37b133);}'root'===_0x381f09&&(_0x18f9d3['root']=_0x1d3413['get'](_0x18f9d3['root']['rootName']));}}['_fixRange'](_0xa226ed,_0x4cbc57){return this['editor']['model']['createRange'](this['_fixPosition'](_0xa226ed['start'],_0x4cbc57),this['_fixPosition'](_0xa226ed['end'],_0x4cbc57));}['_fixPosition'](_0x5efa8f,_0x583e69){return this['editor']['model']['createPositionFromPath'](_0x583e69,_0x5efa8f['path'],_0x5efa8f['stickiness']);}['_handleInsertOperation'](_0x57f988){const _0x37deb3=this['_idsRoots']['get'](_0x57f988['position']['root']['rootName']),_0xe94cd=this['_fixPosition'](_0x57f988['position'],_0x37deb3),_0x392ac4=null===_0x57f988['_authorId']?null:_0x57f988['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x101955=_0xe94cd['parent'],_0x3fdb7a=this['_revisionId'],_0x256e07=[];for(const _0x4b5542 of _0x57f988['nodes'])if(_0x4b5542['is']('element'))_0x256e07['push'](this['_makeIdsRoot'](_0x4b5542));else{for(let _0x57f30c=0x0;_0x57f30c<_0x4b5542['offsetSize'];_0x57f30c++)_0x256e07['push'](new _0x55a91c('$text',{'vid':this['_revisionId']++}));}const _0x54b65d=this['_revisionId'];for(let _0x48fd37=_0x3fdb7a;_0x48fd37<_0x54b65d;_0x48fd37++)this['_touched']['set'](_0x48fd37,{'userId':_0x392ac4});_0x101955['_insertChild'](_0xe94cd['offset'],_0x256e07);}['_handleMoveOperation'](_0x4e899e){(_0x4e899e=this['_cloneOperation'](_0x4e899e,this['_idsRoots']))['_execute']();const _0x107680=null===_0x4e899e['_authorId']?null:_0x4e899e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5581b3=_0x4e899e['getMovedRangeStart'](),_0x674a50=_0x5581b3['parent'],_0x333ccd=_0x5581b3['offset'];!function _0x132f02(_0xa825d5,_0x4e4529,_0x3a05f4,_0x14783f){for(let _0x1dc966=_0x3a05f4;_0x1dc966<_0x14783f;_0x1dc966++){const _0x405125=_0x4e4529['getChild'](_0x1dc966);_0x405125['is']('element','$text')?_0xa825d5['set'](_0x405125['getAttribute']('vid'),{'userId':_0x107680}):(_0xa825d5['set'](_0x405125['getAttribute']('vid_start'),{'userId':_0x107680}),_0x132f02(_0xa825d5,_0x405125,0x0,_0x405125['childCount']),_0xa825d5['set'](_0x405125['getAttribute']('vid_end'),{'userId':_0x107680}));}}(this['_touched'],_0x674a50,_0x333ccd,_0x333ccd+_0x4e899e['howMany']);}['_handleMergeOperation'](_0x370b19){const _0x28fa3a=null===(_0x370b19=this['_cloneOperation'](_0x370b19,this['_idsRoots']))['_authorId']?null:_0x370b19['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e2672=_0x370b19['targetPosition']['parent'],_0x5ad5e=_0x370b19['sourcePosition']['parent'],_0x56ebb7=_0x4e2672['getAttribute']('vid_end'),_0x1ce74b=_0x5ad5e['getAttribute']('vid_start');_0x4e2672['_setAttribute']('vid_end',_0x5ad5e['getAttribute']('vid_end')),_0x5ad5e['_setAttribute']('vid_end',_0x56ebb7),this['_touched']['set'](_0x1ce74b,{'userId':_0x28fa3a}),this['_touched']['set'](_0x56ebb7,{'userId':_0x28fa3a}),_0x370b19['_execute']();}['_handleSplitOperation'](_0x326c7c){const _0x44d5b8=null===(_0x326c7c=this['_cloneOperation'](_0x326c7c,this['_idsRoots']))['_authorId']?null:_0x326c7c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x476864=_0x326c7c['graveyardPosition'],_0x111323=_0x326c7c['splitPosition']['parent'];_0x326c7c['_execute']();const _0x543867=_0x111323['getAttribute']('vid_end'),_0x2d74b8=_0x326c7c['insertionPosition']['nodeAfter'];if(_0x476864){const _0x492c5d=_0x2d74b8['getAttribute']('vid_end'),_0x5a07fc=_0x111323['getAttribute']('vid_end');_0x111323['_setAttribute']('vid_end',_0x492c5d),_0x2d74b8['_setAttribute']('vid_end',_0x5a07fc),this['_touched']['set'](_0x111323['getAttribute']('vid_end'),{'userId':_0x44d5b8}),this['_touched']['set'](_0x2d74b8['getAttribute']('vid_start'),{'userId':_0x44d5b8});}else{const _0x2ffa50=this['_revisionId']++,_0x5c3806=this['_revisionId']++;_0x111323['_setAttribute']('vid_end',_0x2ffa50),_0x2d74b8['_setAttribute']('vid_start',_0x5c3806),_0x2d74b8['_setAttribute']('vid_end',_0x543867),this['_touched']['set'](_0x2ffa50,{'userId':_0x44d5b8}),this['_touched']['set'](_0x5c3806,{'userId':_0x44d5b8});}}['_handleMarkerOperation'](_0x2af773){if(!_0x2af773['affectsData'])return;const _0x131d97=(_0x2af773=this['_cloneOperation'](_0x2af773,this['_diffRoots']))['oldRange']?_0x2af773['oldRange']['root']:null,_0x31bde0=_0x2af773['newRange']?_0x2af773['newRange']['root']:null;_0x131d97&&this['_markers']['delete'](_0x2af773['name']),_0x31bde0&&this['_markers']['set'](_0x2af773['name'],_0x2af773['newRange']['clone']());const _0x123aaa=null===_0x2af773['_authorId']?null:_0x2af773['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x575414=_0x2af773['name'];if(!this['_touchedMarkers']['has'](_0x575414))return void this['_touchedMarkers']['set'](_0x575414,{'range':_0x2af773['oldRange'],'userId':_0x123aaa});const _0x3b95c4=this['_touchedMarkers']['get'](_0x575414),_0x333336=_0x3b95c4['range'],_0x5ca04b=_0x2af773['newRange'];null==_0x333336&&null==_0x5ca04b||_0x333336&&_0x5ca04b&&_0x333336['isEqual'](_0x5ca04b)?this['_touchedMarkers']['delete'](_0x2af773['name']):_0x3b95c4['userId']=_0x123aaa;}['_handleRootOperation'](_0x3e54f8,_0x43a722){this['_diffRoots']['has'](_0x3e54f8['rootName'])?this['_diffRoots']['get'](_0x3e54f8['rootName'])['_isAttached']=_0x3e54f8['isAdd']:(this['_diffRoots']['set'](_0x3e54f8['rootName'],N(_0x3e54f8['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3e54f8['rootName'],{}),_0x43a722&&this['_idsRoots']['set'](_0x3e54f8['rootName'],N(_0x3e54f8['rootName'],!0x0)));const _0x5a90e6=null===_0x3e54f8['_authorId']?null:_0x3e54f8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7f76f0=this['_touchedRoots']['get'](_0x3e54f8['rootName']);_0x7f76f0&&_0x7f76f0['userId']===_0x5a90e6?this['_touchedRoots']['delete'](_0x3e54f8['rootName']):this['_touchedRoots']['set'](_0x3e54f8['rootName'],{'userId':_0x5a90e6,'isAttached':_0x3e54f8['isAdd']});}['_handleRootAttributeOperation'](_0x73086e){const _0x5454af=this['_diffRootsAttributes']['get'](_0x73086e['root']['rootName']);null===_0x73086e['newValue']?delete _0x5454af[_0x73086e['key']]:_0x5454af[_0x73086e['key']]=_0x73086e['newValue'];}}function x(_0x46c814){const _0x2a950b=N(_0x46c814['rootName'],_0x46c814['isAttached']());for(const _0x39881b of _0x46c814['getChildren']()){const _0x45bbad=_0x39881b['_clone'](!0x0);_0x2a950b['_appendChild'](_0x45bbad);}return _0x2a950b;}function N(_0x5b2bfe,_0x54eeae=!0x0){const _0x8593c7=new _0x223a9b();return _0x8593c7['rootName']=_0x5b2bfe,_0x8593c7['_isAttached']=_0x54eeae,_0x8593c7['isAttached']=()=>_0x8593c7['_isAttached'],_0x8593c7;}function P(_0x26e085,_0x5ca8d3,_0x183f67){const _0x2933b3='elementEnd'==_0x26e085['type']?_0x183f67['createPositionAt'](_0x26e085['item'],'end'):_0x183f67['createPositionBefore'](_0x26e085['item']);return _0x183f67['createPositionFromPath'](_0x5ca8d3,_0x2933b3['path'],_0x2933b3['stickiness']);}function V(_0x44026b,_0xc2f538,_0x1a484d){const _0x26409d='elementStart'==_0x44026b['type']?_0x1a484d['createPositionAt'](_0x44026b['item'],0x0):_0x1a484d['createPositionAfter'](_0x44026b['item']);return _0x1a484d['createPositionFromPath'](_0xc2f538,_0x26409d['path'],_0x26409d['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x274bcc(_0x5bb4f2){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2d3be8,_0x2aeb34){super(_0x2d3be8),this['focusTracker']=new _0x347749(),this['keystrokes']=new _0x1186ba(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2aeb34),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'](),_0x89b1ec({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xe81965=_0x573231=>_0x573231['stopPropagation']();this['keystrokes']['set']('arrowright',_0xe81965),this['keystrokes']['set']('arrowleft',_0xe81965),this['keystrokes']['set']('arrowup',_0xe81965),this['keystrokes']['set']('arrowdown',_0xe81965);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xd90cb0){this['revisionNameInputView']['fieldView']['element']['value']=_0xd90cb0['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x589602){const _0x4919df=new et(this['locale'],ti),_0x4f99bc=_0x4919df['fieldView'];_0x4f99bc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x267b1e=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x589602&&(_0x267b1e+='\x20('+R(this['locale'],'optional')+')'),(_0x4919df['label']=_0x267b1e,_0x4f99bc['on']('input',()=>{this['revisionNameInputValue']=_0x4f99bc['element']['value']['trim']();}),_0x4919df);}}class v extends _0x5b4548{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x45a940=this['editor'],_0x4e2b27=_0x45a940['plugins']['get']('RevisionTracker');_0x45a940['ui']['componentFactory']['add']('revisionHistory',_0x23776a=>{const _0x110305=_0x46906e(_0x23776a),_0xbcad56=_0x110305['panelView']['children'],_0x50aee7=new _0x310671(_0x23776a),_0x4b17cd=new _0x3d8754(_0x23776a),_0x4ccf9e=new _0x1cd6d8(_0x23776a),_0x1135b2=new _0x3d8754(_0x23776a),_0x3411a9=new _0x1cd6d8(_0x23776a);return _0x110305['bind']('isEnabled')['to'](_0x4e2b27,'isReady',_0x4e2b27,'isEnabled',_0x45a940,'isReadOnly',(_0x5de12a,_0x2598ba,_0x39f0a0)=>_0x5de12a&&_0x2598ba&&!_0x39f0a0),_0x110305['buttonView']['set']({'icon':_0x659fc6,'label':R(_0x23776a,'Revision\x20history'),'tooltip':!0x0}),_0x4ccf9e['set']({'label':R(_0x23776a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4ccf9e['bind']('isEnabled')['to'](_0x4e2b27,'isReady',_0x4e2b27,'isEnabled',_0x45a940,'isReadOnly',(_0x100d47,_0x3f33e7,_0x57b0e4)=>_0x100d47&&_0x3f33e7&&!_0x57b0e4),_0x4ccf9e['on']('execute',()=>this['_showDialog']()),_0x3411a9['set']({'label':R(_0x23776a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3411a9['bind']('isEnabled')['to'](_0x4e2b27,'isReady',_0x45a940,'isReadOnly',(_0x3d6228,_0x404907)=>_0x3d6228&&!_0x404907),_0x3411a9['on']('execute',()=>{_0x45a940['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x110305['isOpen']=!0x1,_0x45a940['editing']['view']['focus']();}),_0x4b17cd['children']['add'](_0x4ccf9e),_0x1135b2['children']['add'](_0x3411a9),_0x50aee7['role']='menu',_0x50aee7['items']['addMany']([_0x4b17cd,_0x1135b2]),_0xbcad56['add'](_0x50aee7),_0x110305;}),_0x45a940['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2c046b=this['editor'],_0x5cf6bc=_0x2c046b['locale'],_0x57cc06=new _0x43eb01(_0x5cf6bc),_0xe2f137=new _0x4725ff(_0x5cf6bc);_0x57cc06['buttonView']['set']({'icon':_0x659fc6,'label':R(_0x5cf6bc,'Revision\x20history')});const _0x29488a=new _0x305428(_0x5cf6bc,_0x57cc06),_0x8d8443=new _0x475000(_0x5cf6bc);_0x8d8443['set']({'label':R(_0x5cf6bc,'Save\x20current\x20revision')}),_0x8d8443['delegate']('execute')['to'](_0x57cc06),_0x8d8443['on']('execute',()=>{this['_showDialog']();}),_0x29488a['children']['add'](_0x8d8443),_0xe2f137['items']['add'](_0x29488a);const _0x35892e=new _0x305428(_0x5cf6bc,_0x57cc06),_0x2253ff=new _0x475000(_0x5cf6bc);return _0x2253ff['set']({'label':R(_0x5cf6bc,'Open\x20revision\x20history')}),_0x2253ff['delegate']('execute')['to'](_0x57cc06),_0x2253ff['on']('execute',()=>{_0x2c046b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x35892e['children']['add'](_0x2253ff),_0xe2f137['items']['add'](_0x35892e),_0x57cc06['panelView']['children']['add'](_0xe2f137),_0x57cc06;}['_showDialog'](){const _0x1a0435=this['editor'],_0x58b9f7=_0x1a0435['locale'],_0x57f260=_0x1a0435['plugins']['get']('Dialog'),_0x102c10=_0x1a0435['plugins']['get']('RevisionTracker');function _0xdea42c(_0x4661e6){_0x1a0435['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4661e6['revisionName']?_0x4661e6['revisionNameInputView']['errorText']=R(_0x58b9f7,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1a0435['plugins']['get'](h)['saveRevision']({'name':_0x4661e6['revisionName']}),_0x57f260['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xdea42c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x57f260['show']({'id':'revisionSave','title':R(_0x58b9f7,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x1a0435['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x57f260['hide']()},{'label':R(_0x1a0435['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x585a66){_0x585a66['bind']('isEnabled')['to'](_0x102c10,'isReady',_0x102c10,'isEnabled',_0x1a0435,'isReadOnly',(_0x5dcad,_0x563b6c,_0x479792)=>_0x5dcad&&_0x563b6c&&!_0x479792);},'onExecute':()=>_0xdea42c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x42716d=this['editor'],_0x1cb037=_0x42716d['locale'];this['_saveRevisionFormView']=new me(_0x1cb037,_0x42716d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x5bb4f2{['changeId'];['_model'];constructor(_0x86663b,_0x229284){super(_0x86663b),this['_model']=_0x229284,this['changeId']=_0x229284['id'];const _0x4e5e41=this['bindTemplate'],_0x48d7e0=R(_0x86663b,_0x229284['data']['isSuggestion']?'Suggested\x20by':'add'==_0x229284['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x229284['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4e5e41['to']('type',_0x59b827=>'ck-revision-change__'+_0x59b827)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x48d7e0}]},{'text':'\x20'+_0x229284['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x384c6d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x431307){super(),this['id']=_0x431307['id']||_0x2df4cd(),this['author']=_0x431307['author'],this['type']=_0x431307['type'],this['data']=_0x431307['data']||{},this['rootName']=_0x431307['rootName'],this['set']('createdAt',_0x431307['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(_0xa2dc40,_0x532b79){this['newRevisionId']=_0xa2dc40,this['oldRevisionId']=_0x532b79,this['changes']=new _0x5ed036();}['_setChanges'](_0x30217a){for(const _0x2208f0 of _0x30217a)this['changes']['add'](_0x2208f0);}}class l extends _0x5b4548{['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[_0x2de8d3,_0x58509e,S,$];}constructor(_0x5d4c2a){super(_0x5d4c2a),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',(_0x35a5c4,_0x2a51bf,_0x544dc7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5dae9e=>{for(const _0x3c0470 of this['editor']['editing']['view']['document']['roots'])_0x544dc7?_0x5dae9e['removeClass']('ck-editor__editable__overlay',_0x3c0470):_0x5dae9e['addClass']('ck-editor__editable__overlay',_0x3c0470);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2d7a1c=>null!==_0x2d7a1c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1da09b,_0x42f73d,_0x53d693)=>_0x1da09b&&_0x53d693?_0x42f73d['changes']['getIndex'](_0x53d693):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x30eb42,_0xdf08f4)=>_0x30eb42?_0xdf08f4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x58509e);}['init'](){const _0x4de499=this['editor'],_0x3dbefb=new rt(_0x4de499,{'direction':'backward'}),_0x56943d=new rt(_0x4de499,{'direction':'forward'});(_0x4de499['commands']['add']('showPreviousChange',_0x3dbefb),_0x4de499['commands']['add']('showNextChange',_0x56943d),_0x4de499['commands']['add']('restoreRevision',new nt(_0x4de499)),this['on']('change:numberOfChanges',()=>{_0x3dbefb['refresh'](),_0x56943d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4de499['enableReadOnlyMode']('revision-viewer'),_0x4de499['plugins']['has']('WidgetToolbarRepository'))&&_0x4de499['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xda74ce){return await this['_utils']['loadRevisionData'](_0xda74ce,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xda74ce);}async['getRevisionRootsAttributes'](_0x435a27){return await this['_utils']['loadRevisionData'](_0x435a27,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x435a27);}async['compare'](_0x589e8a,_0x14004a,_0x2c8f30=!0x1){if(!this['isEnabled'])return;const _0x21572b=this['diff'],_0x3e5719=this['repository'],_0x451e1f='string'==typeof _0x589e8a?_0x3e5719['getRevision'](_0x589e8a):_0x589e8a,_0x30f2d7='string'==typeof _0x14004a?_0x3e5719['getRevision'](_0x14004a):_0x14004a,_0x107020=_0x451e1f['id'],_0x50b024=_0x30f2d7?_0x30f2d7['id']:null;if(!_0x2c8f30&&this['diff']&&this['diff']['newRevisionId']===_0x107020&&this['diff']['oldRevisionId']===_0x50b024)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x107020,_0x50b024);const _0x16bbdb=this['_getRevisionsRange'](_0x451e1f,_0x30f2d7,!0x0)['map'](_0x3dc841=>this['_utils']['loadRevisionData'](_0x3dc841,this['adapter']));return _0x16bbdb['push'](new Promise(_0x47c441=>{setTimeout(_0x47c441,0x14);})),Promise['all'](_0x16bbdb)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x31bcb0=this['_getDiff'](_0x107020,_0x50b024);for(const _0x103f26 of _0x31bcb0['changes'])this['_changeIdToChange']['set'](_0x103f26['id'],_0x103f26);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x18423f=>{for(const _0x58c1bf of this['editor']['model']['document']['getRootNames']())_0x18423f['detachRoot'](_0x58c1bf);for(const _0xc9a5c8 of Object['keys'](_0x31bcb0['model'])){const _0x2b0043=_0x18423f['addRoot'](_0xc9a5c8);for(const _0x879e13 of Object['keys'](_0x31bcb0['attributes'][_0xc9a5c8]))_0x18423f['setAttribute'](_0x879e13,_0x31bcb0['attributes'][_0xc9a5c8][_0x879e13],_0x2b0043);_0x18423f['insert'](_0x31bcb0['model'][_0xc9a5c8],_0x2b0043,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x31bcb0['changes'])),this['isReady']=!0x0;})['catch'](_0x23fac9=>{console['error'](_0x23fac9),this['_cleanUp'](),_0x21572b&&(this['diff']=_0x21572b),this['isReady']=!0x0;});}['addRevisionData'](_0x218c41,_0x133c08){const _0x342bb4=this['repository']['createRevision'](_0x218c41);return _0x342bb4['on']('_update',(_0xe426d6,_0x4563bd,_0x2be938)=>_0x133c08(_0x4563bd,_0x2be938,_0x342bb4)),this['repository']['addRevision'](_0x342bb4),_0x342bb4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x665922=>{for(const _0x38dd55 of this['editor']['model']['document']['getRootNames']())_0x665922['detachRoot'](_0x38dd55);});}['_sortAndFilterDiffChanges'](_0x5c32fa){const _0x1b21cd=[],_0x474647=new Map();for(const _0x3ac5d7 of this['editor']['model']['document']['getRootNames']()){const _0x519318=this['editor']['editing']['view']['getDomRoot'](_0x3ac5d7);if(!_0x519318)continue;const _0x550b34=_0x519318['getClientRects']()['item'](0x0);_0x550b34&&(_0x1b21cd['push'](_0x3ac5d7),_0x474647['set'](_0x3ac5d7,_0x550b34));}return _0x1b21cd['sort']((_0x492a3b,_0x387b93)=>{const _0x5175fa=_0x474647['get'](_0x492a3b),_0x10f813=_0x474647['get'](_0x387b93);return _0x5175fa['y']-_0x10f813['y']||_0x5175fa['x']-_0x10f813['x'];}),(_0x5c32fa=_0x5c32fa['filter'](_0x2bf741=>_0x1b21cd['includes'](_0x2bf741['rootName'])))['sort']((_0x4b440d,_0x302276)=>_0x1b21cd['indexOf'](_0x4b440d['rootName'])-_0x1b21cd['indexOf'](_0x302276['rootName'])),_0x5c32fa;}['_makeTape'](_0x290db8){const _0x10b58c=Array['from'](_0x290db8['markers'])['filter'](([_0x1b6723,_0x10732d])=>_0x1b6723['startsWith']('revision:')&&!_0x10732d['isCollapsed']),_0x4c2664=Array['from'](this['editor']['model']['createRangeIn'](_0x290db8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x10b58c['length'])for(const _0x1645f1 of _0x4c2664){const [_0x4b1f10,_0x3dcb82]=_0x10b58c[0x0],[,_0x590584,_0x5de415]=_0x4b1f10['split'](':');if(_0x3dcb82['end']['isEqual'](_0x1645f1['nextPosition'])&&_0x10b58c['shift'](),(_0x1645f1['previousPosition']['isEqual'](_0x3dcb82['start'])||_0x1645f1['previousPosition']['isAfter'](_0x3dcb82['start']))&&('insertion'==_0x590584?_0x1645f1['isAdded']={'userId':_0x5de415}:'deletion'==_0x590584&&(_0x1645f1['isRemoved']={'userId':_0x5de415})),0x0==_0x10b58c['length'])break;}return _0x4c2664;}['_refreshStartEndIndex'](_0x2cd3a3){const _0xc2b50f=new Map();for(let _0x48ed25=0x0;_0x48ed25<_0x2cd3a3['length'];_0x48ed25++)'text'===_0x2cd3a3[_0x48ed25]['type']?(_0x2cd3a3[_0x48ed25]['item']['startIndex']=_0x48ed25,_0x2cd3a3[_0x48ed25]['item']['endIndex']=_0x48ed25):('elementStart'===_0x2cd3a3[_0x48ed25]['type']?_0x2cd3a3[_0x48ed25]['item']['startIndex']=_0x48ed25:'elementEnd'===_0x2cd3a3[_0x48ed25]['type']&&(_0x2cd3a3[_0x48ed25]['item']['endIndex']=_0x48ed25),_0xc2b50f['set'](_0x2cd3a3[_0x48ed25]['id'],_0x48ed25));for(const _0x5592a1 of _0xc2b50f['values']())'elementStart'===_0x2cd3a3[_0x5592a1]['type']?_0x2cd3a3[_0x5592a1]['item']['endIndex']=_0xc2b50f['get'](_0x2cd3a3[_0x5592a1]['pairId']):'elementEnd'===_0x2cd3a3[_0x5592a1]['type']&&(_0x2cd3a3[_0x5592a1]['item']['startIndex']=_0xc2b50f['get'](_0x2cd3a3[_0x5592a1]['pairId']));}['_processTape'](_0x338030){for(let _0x5c1745=0x0;_0x5c1745<_0x338030['length'];_0x5c1745++){if('elementStart'===_0x338030[_0x5c1745]['type'])_0x338030[_0x5c1745]['item']['startIndex']=_0x5c1745;else{if('elementEnd'===_0x338030[_0x5c1745]['type']){_0x338030[_0x5c1745]['item']['endIndex']=_0x5c1745;const _0x57af06=_0x338030[_0x5c1745]['item']['startIndex'];_0x338030[_0x57af06]['pairId']=_0x338030[_0x5c1745]['id'],_0x338030[_0x5c1745]['pairId']=_0x338030[_0x57af06]['id'];}else _0x338030[_0x5c1745]['item']['startIndex']=_0x5c1745,_0x338030[_0x5c1745]['item']['endIndex']=_0x5c1745,_0x338030[_0x5c1745]['pairId']=null;}_0x338030[_0x5c1745]['markersStart']||(_0x338030[_0x5c1745]['markersStart']=[],_0x338030[_0x5c1745]['markersEnd']=[]);}}['_markInsertions'](_0x4dacc5,_0x13ba0b){const _0x3ef2d7=_0x4dacc5['filter'](_0x13c241=>!_0x13c241['isAdded']);for(let _0x1bc933=0x0;_0x1bc933<_0x13ba0b['length'];_0x1bc933++)_0x13ba0b[_0x1bc933]['isAdded']&&(_0x3ef2d7[_0x1bc933]['isAdded']=_0x13ba0b[_0x1bc933]['isAdded']);}['_getDiff'](_0x2e67cf,_0x4ae668=null){const _0x5a28d8=this['repository']['getRevision'](_0x2e67cf),_0x28ef24=_0x4ae668?this['repository']['getRevision'](_0x4ae668):null,_0x32b301=this['_getRevisionsRange'](_0x5a28d8,_0x28ef24),_0x1c259c=_0x32b301[_0x32b301['length']-0x1],_0xd746c8=new Map(),_0x3f9769={'model':{},'attributes':{},'changes':[]},_0xfcc9f7=new Set(),_0x34dfee=new Map();for(let _0x33d5f7=_0x32b301['length']-0x1;_0x33d5f7>=0x0;_0x33d5f7--){const _0x43202f=_0x32b301[_0x33d5f7];for(const _0x16322d of Object['keys'](_0x43202f['diffData']))if(_0x43202f['diffData'][_0x16322d]['attachChange']){const _0x20bdad=_0x43202f['diffData'][_0x16322d]['attachChange'];_0x20bdad['isAttached']?(_0xfcc9f7['add'](_0x16322d),_0x34dfee['has'](_0x16322d)&&_0x34dfee['get'](_0x16322d)['userId']==_0x20bdad['userId']?_0x34dfee['delete'](_0x16322d):_0x34dfee['set'](_0x16322d,_0x20bdad)):_0x34dfee['has'](_0x16322d)?(_0xfcc9f7['delete'](_0x16322d),_0x34dfee['delete'](_0x16322d)):(_0xfcc9f7['add'](_0x16322d),_0x34dfee['set'](_0x16322d,_0x20bdad));}else _0xfcc9f7['add'](_0x16322d);}for(const _0x3ae543 of _0xfcc9f7){const _0x3e9520=_0x34dfee['has'](_0x3ae543)&&!_0x34dfee['get'](_0x3ae543)['isAttached'];let _0xe85343=_0x3e9520?_0x32b301['length']-0x1:0x0;const _0x2cad29=_0x3e9520?-0x1:0x1;for(;_0x32b301[_0xe85343];){const _0x52aa54=_0x32b301[_0xe85343];if(_0x52aa54['diffData'][_0x3ae543]){const _0x25ce3a=_0x3e9520?_0x52aa54['diffData'][_0x3ae543]['attributesBefore']:_0x52aa54['diffData'][_0x3ae543]['attributesAfter'];_0x3f9769['attributes'][_0x3ae543]=_0x25ce3a?_0x421307(_0x25ce3a):{};break;}_0xe85343+=_0x2cad29;}}for(const _0x3d15ea of _0x32b301){_0x3d15ea['model']={};for(const _0x238f6c of _0x3d15ea['authors'])_0xd746c8['set'](_0x238f6c['id'],_0x238f6c);for(const _0x597d90 of _0xfcc9f7){const _0x46ddcd=_0x3d15ea['diffData'][_0x597d90]?_0x3d15ea['diffData'][_0x597d90]['insertions']:'[]',_0xd42814=_0x3d15ea['diffData'][_0x597d90]?_0x3d15ea['diffData'][_0x597d90]['deletions']:'[]';_0x3d15ea['model'][_0x597d90]={'insertions':this['_utils']['_makeModelFromViewString'](_0x46ddcd),'deletions':this['_utils']['_makeModelFromViewString'](_0xd42814)};}}for(const _0x3fa7a2 of _0xfcc9f7){let _0x2d88f4=null,_0x9c49f2=0x0;const _0x537ad4=new Map(Array['from'](_0x5a28d8['model'][_0x3fa7a2]['insertions']['markers'])['filter'](([_0x2ecd76])=>!_0x2ecd76['startsWith']('revision:')));let _0x4ad7a9=0x0;for(const _0x33dc07 of _0x32b301){const _0x18c9e9=this['_makeTape'](_0x33dc07['model'][_0x3fa7a2]['insertions']);_0x33dc07==_0x5a28d8?(_0x2d88f4=_0x18c9e9,_0x9c49f2=_0x2d88f4['length'],_0x2d88f4['forEach'](_0x4d3c51=>{_0x4d3c51['id']=_0x4ad7a9++;}),this['_processTape'](_0x2d88f4)):this['_markInsertions'](_0x2d88f4,_0x18c9e9);const _0x48de84=_0x2d88f4['filter'](_0x401f20=>!_0x401f20['isAdded'])['map'](_0xbb73c6=>_0xbb73c6['id']);let _0x3e3b4a=0x0;const _0x7dc2e2=this['_makeTape'](_0x33dc07['model'][_0x3fa7a2]['deletions']);_0x7dc2e2['forEach'](_0x2a6f21=>{_0x2a6f21['isRemoved']?_0x2a6f21['id']=_0x9c49f2++:_0x2a6f21['id']=_0x48de84[_0x3e3b4a++];}),this['_processTape'](_0x7dc2e2),this['_setDistance'](_0x2d88f4,'isAdded'),this['_setDistance'](_0x7dc2e2,'isRemoved'),_0x33dc07==_0x5a28d8&&this['_markMarkers'](_0x2d88f4,_0x537ad4),_0x2d88f4=this['_joinTapes'](_0x2d88f4,_0x7dc2e2),this['_refreshStartEndIndex'](_0x2d88f4),this['_setDistance'](_0x2d88f4,'isRemoved');}_0x2d88f4=_0x2d88f4['filter'](_0x52618f=>!(_0x52618f['isAdded']&&_0x52618f['isRemoved']));const _0x45a01b=new Map(_0x1c259c['model'][_0x3fa7a2]['deletions']['markers']),_0x52f9f0=new Set(_0x537ad4['keys']());for(const _0x2c9fd1 of _0x45a01b['keys']())_0x52f9f0['delete'](_0x2c9fd1);this['_markSuggestions'](_0x2d88f4,_0x52f9f0),this['_fixObsoleteTags'](_0x2d88f4),_0x2d88f4=this['_removeMissingPairs'](_0x2d88f4),_0x2d88f4=this['_markMismatchedRemovedTags'](_0x2d88f4),_0x2d88f4=this['_removeUnsupportedChanges'](_0x2d88f4);const {root:_0x3d63e0,changes:_0x63850b}=this['_makeModelFromTape'](_0x2d88f4,_0xd746c8,_0x3fa7a2);_0x3f9769['model'][_0x3fa7a2]=_0x3d63e0;const _0x8721b2=_0x34dfee['get'](_0x3fa7a2);if(_0x8721b2){const _0x1ca333=_0xd746c8['get'](_0x8721b2['userId']),_0x405fb4=new G({'author':_0x1ca333,'type':_0x8721b2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3fa7a2});_0x63850b['unshift'](_0x405fb4),_0x3f9769['attributes'][_0x3fa7a2]['revisionHistoryAttachChange']=_0x405fb4['id'];}_0x3f9769['changes']=_0x3f9769['changes']['concat'](_0x63850b);}return _0x3f9769;}['_markMarkers'](_0xe21b80,_0x58f137){for(let _0x19e899=0x0;_0x19e899<_0xe21b80['length'];_0x19e899++)for(const [_0x29cfa0,_0x30e1f4]of _0x58f137)!_0x30e1f4['isCollapsed']&&_0x30e1f4['start']['isEqual'](_0xe21b80[_0x19e899]['previousPosition'])&&_0xe21b80[_0x19e899]['markersStart']['push'](_0x29cfa0),_0x30e1f4['end']['isEqual'](_0xe21b80[_0x19e899]['nextPosition'])&&_0xe21b80[_0x19e899]['markersEnd']['push'](_0x29cfa0);}['_joinTapes'](_0x4a0a98,_0x5b640a){let _0x515bf9=[],_0x31d3e4=0x0,_0x4ed549=0x0;for(;_0x31d3e4<_0x4a0a98['length']||_0x4ed549<_0x5b640a['length'];){const _0xfe442=_0x4a0a98[_0x31d3e4]||{},_0x565efb=_0x5b640a[_0x4ed549]||{};if(_0xfe442['id']==_0x565efb['id'])_0x31d3e4++,_0x4ed549++,_0x515bf9['push'](_0xfe442);else{if(_0x565efb['isRemoved']&&_0xfe442['isAdded']){const {commonTape:_0x233d83,iEnd:_0x1e85b4,jEnd:_0x21438a}=this['_threeWayMerge'](_0x4a0a98,_0x31d3e4,_0x5b640a,_0x4ed549);_0x515bf9=_0x515bf9['concat'](_0x233d83),_0x31d3e4=_0x1e85b4,_0x4ed549=_0x21438a;}else _0x565efb['isRemoved']?(_0x4ed549++,_0x515bf9['push'](_0x565efb)):(_0x31d3e4++,_0x515bf9['push'](_0xfe442));}}return _0x515bf9;}['_markSuggestions'](_0x10b64b,_0x3a1656){const _0x58bf29=[];for(let _0x539035=0x0;_0x539035<_0x10b64b['length'];_0x539035++){for(let _0x409bae=0x0;_0x409bae<_0x10b64b[_0x539035]['markersStart']['length'];_0x409bae++){const _0x37ca3f=_0x10b64b[_0x539035]['markersStart'][_0x409bae];if(!_0x3a1656['has'](_0x37ca3f))continue;const {group:_0x572b44,type:_0x26f7ec,authorId:_0x403cbb}=_0x3e3eb3(_0x37ca3f);'revision-suggestion'!=_0x572b44||'insertion'!=_0x26f7ec&&'deletion'!=_0x26f7ec||(_0x58bf29['unshift']({'type':_0x26f7ec,'name':_0x37ca3f,'userId':_0x403cbb}),_0x10b64b[_0x539035]['markersStart']['splice'](_0x409bae,0x1),_0x409bae--);}_0x45006c(_0x10b64b[_0x539035]);for(let _0x448984=0x0;_0x448984<_0x10b64b[_0x539035]['markersEnd']['length'];_0x448984++){const _0x43de75=_0x10b64b[_0x539035]['markersEnd'][_0x448984];if(!_0x3a1656['has'](_0x43de75))continue;const {group:_0x4a5aa,type:_0x3c363b}=_0x3e3eb3(_0x43de75);if('revision-suggestion'!=_0x4a5aa||'insertion'!=_0x3c363b&&'deletion'!=_0x3c363b)continue;_0x10b64b[_0x539035]['markersEnd']['splice'](_0x448984,0x1),_0x448984--;const _0x3f8d76=_0x58bf29['findIndex'](_0x326498=>_0x326498['name']==_0x43de75);_0x3f8d76>-0x1&&_0x58bf29['splice'](_0x3f8d76,0x1);}}function _0x3e3eb3(_0x1fc994){const _0x247cb2=_0x1fc994['split'](':');return{'group':_0x247cb2[0x0],'type':_0x247cb2[0x1],'subType':_0x247cb2['length']>=0x5?_0x247cb2[0x2]:null,'id':_0x247cb2['length']<0x5?_0x247cb2[0x2]:_0x247cb2[0x3],'authorId':_0x247cb2['length']<0x5?_0x247cb2[0x3]:_0x247cb2[0x4],'markerCount':0x6==_0x247cb2['length']?_0x247cb2[0x5]:null};}function _0x45006c(_0x189aab){for(let _0x386621=0x0;_0x386621<_0x58bf29['length'];_0x386621++){if(_0x189aab['isAdded']&&'insertion'==_0x58bf29[_0x386621]['type']&&_0x189aab['isAdded']['userId']==_0x58bf29[_0x386621]['userId'])return _0x189aab['isAddSuggestion']=_0x58bf29[_0x386621],void delete _0x189aab['isAdded'];if(!_0x189aab['isAdded']&&!_0x189aab['isRemoved']&&'deletion'==_0x58bf29[_0x386621]['type'])return void(_0x189aab['isRemoveSuggestion']=_0x58bf29[_0x386621]);}}}['_setDistance'](_0x28bc8e,_0x1817db){let _0x4f9cd4=0x0,_0x320b8b=!0x1;const _0x3d9f94=new Map();for(const _0x351d43 of _0x28bc8e)_0x351d43[_0x1817db]?_0x320b8b&&(_0x4f9cd4++,_0x320b8b=!0x1):(_0x4f9cd4++,_0x320b8b=!0x0),_0x3d9f94['set'](_0x351d43['id'],_0x4f9cd4);for(let _0x3629e1=0x0;_0x3629e1<_0x28bc8e['length'];_0x3629e1++){if('isRemoved'==_0x1817db&&_0x28bc8e[_0x3629e1]['isAdded']||'isAdded'==_0x1817db&&_0x28bc8e[_0x3629e1]['isRemoved'])continue;if('text'==_0x28bc8e[_0x3629e1]['type']){_0x28bc8e[_0x3629e1]['distance']=0x0;continue;}const _0x32a84c=_0x3d9f94['get'](_0x28bc8e[_0x3629e1]['pairId']),_0x4bdb52=_0x3d9f94['get'](_0x28bc8e[_0x3629e1]['id']);_0x28bc8e[_0x3629e1]['distance']=_0x32a84c-_0x4bdb52;}}['_getRevisionsRange'](_0x50e78a,_0x1c6c0e,_0x41fb24=!0x1){const _0x17ce4c=[];let _0x544e1a=this['repository']['getIndex'](_0x50e78a),_0x4476b0=this['repository']['getIndex'](_0x1c6c0e);for(-0x1==_0x4476b0&&(_0x4476b0=this['repository']['_revisions']['length'],_0x41fb24=!0x1);_0x544e1a<_0x4476b0;)_0x17ce4c['push'](this['repository']['getRevision'](_0x544e1a)),_0x544e1a++;return _0x41fb24&&_0x17ce4c['push'](this['repository']['getRevision'](_0x544e1a)),_0x17ce4c;}['_threeWayMerge'](_0x1d2cc2,_0x38d6e0,_0xdf4e36,_0x2fdacb){const _0x550400=this['editor']['model']['schema'];let _0x781516=_0x38d6e0;for(;_0x1d2cc2[_0x781516]&&_0x1d2cc2[_0x781516]['isAdded'];)_0x781516++;let _0x2e6755=_0x2fdacb;for(;_0xdf4e36[_0x2e6755]&&_0xdf4e36[_0x2e6755]['isRemoved'];)_0x2e6755++;_0xe86e2(_0x1d2cc2,_0x38d6e0,_0x781516),_0xe86e2(_0xdf4e36,_0x2fdacb,_0x2e6755);const _0x46cd69=_0xdf4e36['slice'](_0x2fdacb,_0x2e6755)['concat'](_0x1d2cc2['slice'](_0x38d6e0,_0x781516));return _0x46cd69['sort']((_0x46ec7c,_0x5b29c7)=>_0x46ec7c['side']!=_0x5b29c7['side']?_0x46ec7c['side']-_0x5b29c7['side']:_0x46ec7c['level']!=_0x5b29c7['level']?_0x46ec7c['level']-_0x5b29c7['level']:_0x46ec7c['distance']!=_0x5b29c7['distance']?_0x5b29c7['distance']-_0x46ec7c['distance']:!!_0x46ec7c['isAdded']!=!!_0x5b29c7['isAdded']?-0x1==_0x46ec7c['side']||0x0==_0x46ec7c['side']?_0x46ec7c['isAdded']?-0x1:0x1:_0x46ec7c['isAdded']?0x1:-0x1:_0x46ec7c['index']-_0x5b29c7['index']),{'commonTape':_0x46cd69,'iEnd':_0x781516,'jEnd':_0x2e6755};function _0xe86e2(_0x5bd159,_0x28aadc,_0x117daa){let _0x4f3f4e=-0x1,_0x131d06=Number['POSITIVE_INFINITY'],_0xd70af=!0x0;for(let _0x342426=_0x28aadc;_0x342426<_0x117daa;_0x342426++)if(_0x550400['isInline'](_0x5bd159[_0x342426]['item'])||(_0xd70af=!0x1),_0x5bd159[_0x342426]['item']['startIndex']<_0x28aadc&&(_0x4f3f4e=_0x342426),_0x5bd159[_0x342426]['item']['endIndex']>=_0x117daa){_0x131d06=_0x342426;break;}_0xd70af&&(_0x4f3f4e=_0x117daa-0x1);for(let _0xb9463d=_0x28aadc;_0xb9463d<_0x117daa;_0xb9463d++)_0x5bd159[_0xb9463d]['side']=_0xb9463d<=_0x4f3f4e?-0x1:_0xb9463d<_0x131d06?0x0:0x1,_0x5bd159[_0xb9463d]['index']=_0xb9463d;let _0x26def2=0x0;for(let _0x256db4=_0x28aadc;_0x256db4<=_0x4f3f4e;_0x256db4++)0x0==_0x5bd159[_0x256db4]['distance']?_0x5bd159[_0x256db4]['level']=_0x26def2:(_0x26def2++,_0x5bd159[_0x256db4]['level']=_0x26def2,_0x26def2++);for(let _0x55d28d=_0x28aadc;_0x55d28d<_0x117daa;_0x55d28d++)0x0==_0x5bd159[_0x55d28d]['side']&&(_0x5bd159[_0x55d28d]['level']=_0x26def2);_0x26def2=0x0;for(let _0x10ee4f=_0x117daa-0x1;_0x10ee4f>=_0x131d06;_0x10ee4f--)0x0==_0x5bd159[_0x10ee4f]['distance']?_0x5bd159[_0x10ee4f]['level']=_0x26def2:(_0x26def2--,_0x5bd159[_0x10ee4f]['level']=_0x26def2,_0x26def2--);}}['_fixObsoleteTags'](_0x46c7fa){const _0x316f22=new Map(),_0x338e8d=this['editor']['model']['schema'];for(let _0x4fcd86=0x1;_0x4fcd86<_0x46c7fa['length'];_0x4fcd86++){let _0x2302f4,_0x4b1ccc,_0x4e7d63;const _0x4b9ed5=_0x46c7fa[_0x4fcd86],_0x31a690=_0x46c7fa[_0x4fcd86-0x1];if('text'==_0x4b9ed5['type'])continue;if(_0x4b9ed5['type']!=_0x31a690['type'])continue;if(!_0x338e8d['isBlock'](_0x31a690['item'])||_0x338e8d['isLimit'](_0x31a690['item']))continue;if(!_0x338e8d['isBlock'](_0x4b9ed5['item'])||_0x338e8d['isLimit'](_0x4b9ed5['item']))continue;if((_0x46c7fa[_0x4fcd86]['isAdded']||_0x46c7fa[_0x4fcd86]['isAddSuggestion'])&&_0x46c7fa[_0x4fcd86-0x1]['isRemoved'])_0x2302f4=_0x46c7fa[_0x4fcd86],_0x4b1ccc=_0x46c7fa[_0x4fcd86-0x1],_0x4e7d63=_0x4fcd86-0x1;else{if(!_0x46c7fa[_0x4fcd86]['isRemoved']||!_0x46c7fa[_0x4fcd86-0x1]['isAdded']&&!_0x46c7fa[_0x4fcd86-0x1]['isAddSuggestion'])continue;_0x2302f4=_0x46c7fa[_0x4fcd86-0x1],_0x4b1ccc=_0x46c7fa[_0x4fcd86],_0x4e7d63=_0x4fcd86;}const _0x57a2e3=_0x2302f4['level']==_0x4b1ccc['level'],_0x30e24d=Math['abs'](_0x2302f4['level'])<Math['abs'](_0x4b1ccc['level'])&&0x0==_0x4b1ccc['distance'];(_0x57a2e3||_0x30e24d)&&(_0x316f22['set'](_0x4b1ccc['id'],_0x2302f4['id']),_0x46c7fa['splice'](_0x4e7d63,0x1),_0x4fcd86--,_0x2302f4['isAdded']=!0x1);}for(let _0xcd2162=0x0;_0xcd2162<_0x46c7fa['length'];_0xcd2162++)_0x316f22['has'](_0x46c7fa[_0xcd2162]['pairId'])&&(_0x46c7fa[_0xcd2162]['pairId']=_0x316f22['get'](_0x46c7fa[_0xcd2162]['pairId']));}['_removeMissingPairs'](_0x4d981b){const _0xa038c5=new Set(_0x4d981b['map'](_0x33b078=>_0x33b078['id']));for(let _0x105b48=0x0;_0x105b48<_0x4d981b['length'];_0x105b48++)_0xa038c5['has'](_0x4d981b[_0x105b48]['pairId'])||0x0==_0x4d981b[_0x105b48]['distance']||(_0x4d981b[_0x105b48]['isIncorrect']=!0x0);return _0x4d981b['filter'](_0x33ac52=>!_0x33ac52['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3f12b0){const _0xb7c2a2=new Set();for(let _0x5d2745=0x0;_0x5d2745<_0x3f12b0['length'];_0x5d2745++){if(_0xb7c2a2['has'](_0x3f12b0[_0x5d2745]['id'])&&_0x3f12b0[_0x5d2745]['isRemoved']&&(_0x3f12b0[_0x5d2745]['isIncorrect']=!0x0),_0x3f12b0[_0x5d2745]['isIncorrect'])continue;if(0x0==_0x3f12b0[_0x5d2745]['distance'])continue;if('elementStart'!=_0x3f12b0[_0x5d2745]['type'])continue;if(null==_0x3f12b0[_0x5d2745]['pairId'])continue;let _0x5167cb=_0x5d2745+0x1,_0xdf83d9=0x0;for(;_0x3f12b0[_0x5167cb]['id']!=_0x3f12b0[_0x5d2745]['pairId'];)'elementStart'==_0x3f12b0[_0x5167cb]['type']?_0xdf83d9++:'elementEnd'==_0x3f12b0[_0x5167cb]['type']&&_0xdf83d9--,_0x5167cb++;if(0x0!=_0xdf83d9){if(_0x3f12b0[_0x5d2745]['isRemoved'])_0x3f12b0[_0x5d2745]['isIncorrect']=!0x0;else{for(;_0x5167cb!=_0x5d2745;)_0x3f12b0[_0x5167cb]['isRemoved']&&0x0!=_0x3f12b0[_0x5167cb]['distance']&&(_0x3f12b0[_0x5167cb]['isIncorrect']=!0x0,_0xb7c2a2['add'](_0x3f12b0[_0x5167cb]['pairId'])),_0x5167cb--;}}}return _0x3f12b0['filter'](_0x150ab5=>!_0x150ab5['isIncorrect']);}['_removeUnsupportedChanges'](_0x313b8c){const _0x193133=this['editor']['model']['schema'];for(let _0x5d608b=0x0;_0x5d608b<_0x313b8c['length'];_0x5d608b++){if(!(_0x313b8c[_0x5d608b]['isAdded']||_0x313b8c[_0x5d608b]['isAddSuggestion']||_0x313b8c[_0x5d608b]['isRemoved']||_0x313b8c[_0x5d608b]['isRemoveSuggestion']))continue;if(0x0==_0x313b8c[_0x5d608b]['distance'])continue;const _0x4cc059=_0x313b8c[_0x5d608b]['item'];_0x193133['isBlock'](_0x4cc059)||_0x193133['isLimit'](_0x4cc059)||(_0x313b8c[_0x5d608b]['isAdded']&&delete _0x313b8c[_0x5d608b]['isAdded'],_0x313b8c[_0x5d608b]['isAddSuggestion']&&delete _0x313b8c[_0x5d608b]['isAddSuggestion'],_0x313b8c[_0x5d608b]['isRemoveSuggestion']&&delete _0x313b8c[_0x5d608b]['isRemoveSuggestion'],_0x313b8c[_0x5d608b]['isRemoved']&&(_0x313b8c[_0x5d608b]['isIncorrect']=!0x0));}return _0x313b8c['filter'](_0x43cd4c=>!_0x43cd4c['isIncorrect']);}['_makeModelFromTape'](_0x271fca,_0x18747d,_0x566749){const _0x393bb5=new _0x223a9b(),_0xe9ce18=[],_0x1654e0=new Map(),_0x1157cf=this['editor']['model'],_0x5277b4=_0x1157cf['schema'],_0x4812b3=[_0x393bb5],_0x40ff8c={},_0x4bdf33={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x148544=null;const _0x8cc8c4=[0x0];for(let _0x11e42d=0x0;_0x11e42d<_0x271fca['length'];_0x11e42d++)if('elementStart'===_0x271fca[_0x11e42d]['type']){_0x271fca[_0x11e42d]['previousPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4);const _0x152722=new _0x55a91c(_0x271fca[_0x11e42d]['item']['name'],_0x271fca[_0x11e42d]['item']['getAttributes']());_0x4812b3[0x0]['_appendChild'](_0x152722),_0x8cc8c4['push'](0x0),_0x4812b3['unshift'](_0x152722),_0x271fca[_0x11e42d]['nextPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4);}else'elementEnd'===_0x271fca[_0x11e42d]['type']?(_0x4812b3['shift'](),_0x271fca[_0x11e42d]['previousPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4),_0x8cc8c4['pop'](),_0x8cc8c4[_0x8cc8c4['length']-0x1]++,_0x271fca[_0x11e42d]['nextPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4)):(_0x271fca[_0x11e42d]['previousPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4),_0x148544?_0x148544['_data']+=_0x271fca[_0x11e42d]['item']['data']:_0x148544=new _0x52cb99(_0x271fca[_0x11e42d]['item']['data'],_0x271fca[_0x11e42d]['item']['getAttributes']()),_0x271fca[_0x11e42d+0x1]&&'text'===_0x271fca[_0x11e42d+0x1]['type']&&_0x2702e0(_0x148544,_0x271fca[_0x11e42d+0x1]['item'])||(_0x4812b3[0x0]['_appendChild'](_0x148544),_0x148544=null),_0x8cc8c4[_0x8cc8c4['length']-0x1]+=_0x271fca[_0x11e42d]['item']['offsetSize'],_0x271fca[_0x11e42d]['nextPosition']=_0x1157cf['createPositionFromPath'](_0x393bb5,_0x8cc8c4));for(let _0x4f5745=0x0;_0x4f5745<_0x271fca['length'];_0x4f5745++){const _0x5e111c=_0x271fca[_0x4f5745]['previousPosition'],_0x20fa40=_0x271fca[_0x4f5745]['nextPosition'];for(const _0x57a9bc of _0x271fca[_0x4f5745]['markersStart'])_0x1654e0['set'](_0x57a9bc,{'start':_0x5e111c,'end':null});_0x5b16e6('isRemoveSuggestion',_0x4f5745,_0x5e111c,_0x20fa40),_0x5b16e6('isAddSuggestion',_0x4f5745,_0x5e111c,_0x20fa40),_0x5b16e6('isRemoved',_0x4f5745,_0x5e111c,_0x20fa40),_0x5b16e6('isAdded',_0x4f5745,_0x5e111c,_0x20fa40);for(const _0x294d45 of _0x271fca[_0x4f5745]['markersEnd']){const _0x55375c=_0x1654e0['get'](_0x294d45);_0x55375c?_0x55375c['end']=_0x20fa40:_0x1654e0['set'](_0x294d45,{'start':_0x20fa40,'end':_0x20fa40});}}for(const [_0xfc6e29,_0x5a805e]of _0x1654e0){const _0x1d905b=this['editor']['model']['createRange'](_0x5a805e['start'],_0x5a805e['end']);_0x393bb5['markers']['set'](_0xfc6e29,_0x1d905b);}return _0xe9ce18['sort']((_0x78b0f9,_0x131021)=>{const _0x46fe2f=_0x393bb5['markers']['get']('revision:'+_0x78b0f9['id']),_0xc97846=_0x393bb5['markers']['get']('revision:'+_0x131021['id']);return _0x46fe2f['start']['isBefore'](_0xc97846['start'])?-0x1:_0x46fe2f['start']['isAfter'](_0xc97846['start'])?0x1:_0x46fe2f['end']['isBefore'](_0xc97846['end'])?-0x1:_0x46fe2f['end']['isAfter'](_0xc97846['end'])?0x1:'add'===_0x78b0f9['type']?-0x1:0x1;}),{'root':_0x393bb5,'changes':_0xe9ce18};function _0x5b16e6(_0x46564a,_0x4743eb,_0x3222f,_0x2d4123){const _0x4680c7=!!_0x271fca[_0x4743eb][_0x46564a],_0x52ad52=_0x4680c7?_0x271fca[_0x4743eb][_0x46564a]['userId']:null,_0x1dbaf1=_0x4743eb===_0x271fca['length']-0x1,_0x187344=_0x4bdf33[_0x46564a][0x0],_0x1967f0=_0x5277b4['isObject'](_0x271fca[_0x4743eb]['item']);!_0x40ff8c[_0x46564a]&&_0x4680c7?_0x40ff8c[_0x46564a]={'start':_0x3222f,'tapeItem':_0x271fca[_0x4743eb],'userId':_0x52ad52,'type':_0x46564a}:_0x40ff8c[_0x46564a]&&!_0x4680c7?(_0x40ff8c[_0x46564a]['end']=_0x3222f,_0x2afcf4(_0x40ff8c[_0x46564a]),_0x40ff8c[_0x46564a]=null):_0x40ff8c[_0x46564a]&&_0x4680c7&&_0x40ff8c[_0x46564a]['userId']!==_0x52ad52&&(_0x40ff8c[_0x46564a]['end']=_0x3222f,_0x187344&&_0x187344['userId']===_0x40ff8c[_0x46564a]['userId']||_0x2afcf4(_0x40ff8c[_0x46564a]),_0x40ff8c[_0x46564a]={'start':_0x3222f,'tapeItem':_0x271fca[_0x4743eb],'userId':_0x52ad52,'type':_0x46564a}),_0x40ff8c[_0x46564a]&&_0x1967f0&&('elementStart'!==_0x271fca[_0x4743eb]['type']||_0x187344&&_0x187344['userId']===_0x52ad52||_0x4bdf33[_0x46564a]['unshift']({'userId':_0x52ad52,'object':_0x271fca[_0x4743eb]['item'],'change':_0x40ff8c[_0x46564a]}),'elementEnd'===_0x271fca[_0x4743eb]['type']&&_0x187344&&_0x187344['object']===_0x271fca[_0x4743eb]['item']&&(_0x4bdf33[_0x46564a]['shift'](),_0x40ff8c[_0x46564a]=_0x187344['change'])),_0x40ff8c[_0x46564a]&&_0x1dbaf1&&(_0x40ff8c[_0x46564a]['end']=_0x2d4123,_0x2afcf4(_0x40ff8c[_0x46564a]),_0x40ff8c[_0x46564a]=null);}function _0x2afcf4({start:_0x53dd59,end:_0x5d21de,tapeItem:_0x12cd54,userId:_0x54ba40,type:_0x36c0b6}){const _0x274ea2=_0x12cd54['item'],_0x2df3aa=_0x1157cf['schema']['isBlock'](_0x274ea2)&&!_0x1157cf['schema']['isLimit'](_0x274ea2),_0x2d6a72=_0x53dd59['nodeAfter']==_0x5d21de['parent']&&_0x5d21de['isAtStart'];if(_0x2df3aa&&_0x2d6a72)return;const _0x325999=_0x1157cf['createRange'](_0x53dd59,_0x5d21de),_0x3b1912=_0x18747d['get'](_0x54ba40),_0x53f9dc=new G({'author':_0x3b1912,'type':'isAdded'==_0x36c0b6||'isAddSuggestion'==_0x36c0b6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x36c0b6||'isRemoveSuggestion'==_0x36c0b6},'createdAt':new Date(),'rootName':_0x566749});_0xe9ce18['push'](_0x53f9dc),_0x393bb5['markers']['set']('revision:'+_0x53f9dc['id'],_0x325999);}function _0x2702e0(_0x465f7e,_0x2dbf0d){const _0x4a6a7d=_0x465f7e['getAttributes'](),_0x2c0fa6=_0x2dbf0d['getAttributes']();for(const _0x53f0a4 of _0x4a6a7d){if(_0x53f0a4[0x1]!==_0x2dbf0d['getAttribute'](_0x53f0a4[0x0]))return!0x1;_0x2c0fa6['next']();}return _0x2c0fa6['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5ede8d=>{const _0x889ee=_0x5ede8d['markerName']['split'](':')[0x1],_0xaf0aa8=this['_getChangeFromId'](_0x889ee);if(!_0xaf0aa8)return null;const _0x5195f6='add'==_0xaf0aa8['type']?'insertion':'deletion',_0x33d9f7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5195f6];return _0xaf0aa8['data']['isSuggestion']&&_0x33d9f7['push']('ck-suggestion-marker-'+_0x5195f6+'-new'),this['activeChange']==_0xaf0aa8&&_0x33d9f7['push']('ck-suggestion-marker--active'),{'classes':_0x33d9f7,'attributes':{'data-change-id':_0x889ee}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2c67ae=>{_0x2c67ae['on']('element:pre',(_0xd44a1,_0x4036c7,_0x34cfbf)=>{const _0x59bcd7=_0x4036c7['viewItem']['getChild'](0x0);if(!_0x59bcd7||!_0x59bcd7['is']('element','code'))return;if(!_0x34cfbf['consumable']['consume'](_0x59bcd7,{'attributes':['vid_start','vid_end']}))return;const _0x11a82d=_0x4036c7['modelRange']['start']['nodeAfter'];_0x34cfbf['writer']['setAttribute']('vid_start',_0x59bcd7['getAttribute']('vid_start'),_0x11a82d),_0x34cfbf['writer']['setAttribute']('vid_end',_0x59bcd7['getAttribute']('vid_end'),_0x11a82d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x255e24=>{_0x255e24['on']('element',(_0x12fd0b,_0x71a065,_0x50cd27)=>{if(!_0x50cd27['consumable']['consume'](_0x71a065['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x71a065['modelRange']['isCollapsed'])return;const _0xc0c8a3=_0x71a065['modelRange']['start']['nodeAfter'];_0xc0c8a3['hasAttribute']('vid_start')||_0xc0c8a3['hasAttribute']('vid')||(_0x50cd27['writer']['setAttribute']('vid_start',_0x71a065['viewItem']['getAttribute']('vid_start'),_0xc0c8a3),_0x50cd27['writer']['setAttribute']('vid_end',_0x71a065['viewItem']['getAttribute']('vid_end'),_0xc0c8a3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3a4b43=>_0x3a4b43['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4bae47,[,_0x15e87b])=>{['vid_start','vid_end','vid']['includes'](_0x15e87b)&&(_0x4bae47['return']=!0x0,_0x4bae47['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x137a50=>{_0x137a50['on']('attribute:vid',(_0x422a42,_0x3b18ed,_0x266a4a)=>{if('\x20'!=_0x3b18ed['item']['data']||_0x3b18ed['item']['parent']['maxOffset']>0x1)return;if(!_0x266a4a['consumable']['consume'](_0x3b18ed['item'],_0x422a42['name']))return;const _0x1c49bc=_0x266a4a['writer'],_0x38bfd9=_0x266a4a['mapper']['toViewRange'](_0x3b18ed['range']);_0x1c49bc['wrap'](_0x38bfd9,_0x1c49bc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1ef8b5){const _0x28f35a=_0x1ef8b5['plugins']['get']('RevisionViewer');return(_0x180c12,_0x55f652,_0xdba106)=>{const _0x5974b2=_0x55f652['markerName']['split'](':')[0x1],_0x4585ad=_0x28f35a['_getChangeFromId'](_0x5974b2);if(!_0x4585ad)return null;const _0x2fca21='add'==_0x4585ad['type']?'split':'merge';if(!_0xdba106['consumable']['test'](_0x55f652['markerRange'],_0x180c12['name']))return;const _0x1fd6d1=_0x55f652['markerRange']['getWalker'](),_0x2a2327=_0x55f652['markerRange']['start'],_0x4c4ef5=_0x1ef8b5['model']['schema'];let _0x47252e=null,_0x286d48=null,_0x3e3a3f=!0x1,_0x4889c4=!0x1;for(const _0x5b5cf0 of _0x1fd6d1){const _0x41045d=_0x5b5cf0['item'];_0x3e3a3f=_0x3e3a3f||_0x4c4ef5['isContent'](_0x41045d);const _0x1cd766=_0xdba106['mapper']['toViewElement'](_0x41045d);if(_0x1cd766&&_0x1cd766['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b5cf0['type']&&(_0x4c4ef5['isBlock'](_0x41045d)&&!_0x4c4ef5['isLimit'](_0x41045d)&&(_0x41045d['nextSibling']||_0x2a2327['isAtEnd']?_0x47252e&&_0x47252e['parent']==_0x41045d||(_0x47252e=_0x41045d,_0x32d26b(_0x5b5cf0['previousPosition']),_0x4889c4=!0x0):_0x286d48=_0x286d48||_0x5b5cf0['previousPosition']));}function _0x32d26b(_0x58f02f){const _0x5a54ec=_0xdba106['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fca21}),_0x41850b=_0xdba106['mapper']['toViewPosition'](_0x58f02f);_0x4585ad['data']['isSuggestion']&&_0xdba106['writer']['addClass']('ck-suggestion-marker-'+_0x2fca21+'-new',_0x5a54ec),_0x28f35a['activeChange']==_0x4585ad&&_0xdba106['writer']['addClass']('ck-suggestion-marker--active',_0x5a54ec),_0xdba106['writer']['insert'](_0x41850b,_0x5a54ec),_0xdba106['mapper']['bindElementToMarker'](_0x5a54ec,_0x55f652['markerName']);}_0x3e3a3f||_0x4889c4||!_0x286d48||_0x32d26b(_0x286d48);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1a8997,_0x228dfb,_0x5f1a04)=>{const _0x308bc5=_0x5f1a04['mapper']['markerNameToElements'](_0x228dfb['markerName']);if(_0x308bc5){for(const _0x2edc36 of _0x308bc5)(_0x2edc36['hasClass']('ck-suggestion-marker-split')||_0x2edc36['hasClass']('ck-suggestion-marker-merge'))&&(_0x5f1a04['mapper']['unbindElementFromMarkerName'](_0x2edc36,_0x228dfb['markerName']),_0x5f1a04['writer']['remove'](_0x2edc36));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x45990b,_0x39ffc8,_0x46ccfa)=>{const _0x571a95=_0x39ffc8['markerName']['split'](':')[0x1],_0x5fce5d=this['_getChangeFromId'](_0x571a95);if(!_0x5fce5d)return null;const _0x58b7b0='add'==_0x5fce5d['type']?'split':'merge';if(_0x46ccfa['consumable']['test'](_0x39ffc8['markerRange'],_0x45990b['name']))for(const _0x3867a4 of _0x39ffc8['markerRange']['getItems']()){if(!_0x3867a4['is']('element','softBreak'))continue;const _0x2bcf0c=_0x46ccfa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58b7b0}),_0x3e564f=_0x46ccfa['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3867a4));_0x5fce5d['data']['isSuggestion']&&_0x46ccfa['writer']['addClass']('ck-suggestion-marker-'+_0x58b7b0+'-new',_0x2bcf0c),this['activeChange']==_0x5fce5d&&_0x46ccfa['writer']['addClass']('ck-suggestion-marker--active',_0x2bcf0c),_0x46ccfa['writer']['insert'](_0x3e564f,_0x2bcf0c),_0x46ccfa['mapper']['bindElementToMarker'](_0x2bcf0c,_0x39ffc8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x50b2d9=>{for(const _0x3bb564 of this['editor']['model']['document']['getRootNames']()){const _0x2ca2fc=this['editor']['model']['document']['getRoot'](_0x3bb564),_0x788165=this['editor']['editing']['view']['document']['getRoot'](_0x3bb564);if(_0x788165){const _0x2a6971=_0x2ca2fc['getAttribute']('revisionHistoryAttachChange');if(_0x50b2d9['removeAttribute']('data-change-id',_0x788165),_0x50b2d9['removeClass']('ck-revision-history-root-add',_0x788165),_0x50b2d9['removeClass']('ck-revision-history-root-remove',_0x788165),_0x50b2d9['removeClass']('ck-revision-history-root--active',_0x788165),_0x2a6971){const _0x123af0=this['_getChangeFromId'](_0x2a6971);if(!_0x123af0)return null;_0x50b2d9['setAttribute']('data-change-id',_0x2a6971,_0x788165),_0x50b2d9['addClass']('ck-revision-history-root-'+_0x123af0['type'],_0x788165),this['activeChange']==_0x123af0&&_0x50b2d9['addClass']('ck-revision-history-root--active',_0x788165);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1c11a1=>'revision-comment:'+_0x1c11a1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4893d8=>'revision-suggestion:'+_0x4893d8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5c7ea2=>({'name':'suggestion:'+_0x5c7ea2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1e5009=>{const _0x22e0d9=_0x1e5009['markerName']['split'](':')[0x1];return'insertion'!=_0x22e0d9&&'deletion'!=_0x22e0d9?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x22e0d9]};}}),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',(_0x2bd03b,_0x3d1d41,_0x3f0bf9)=>{const _0x3d9ba6=_0x3f0bf9['mapper']['markerNameToElements'](_0x3d1d41['markerName']);if(_0x3d9ba6){for(const _0x2dd2c5 of _0x3d9ba6)_0x2dd2c5['is']('uiElement')&&(_0x3f0bf9['mapper']['unbindElementFromMarkerName'](_0x2dd2c5,_0x3d1d41['markerName']),_0x3f0bf9['writer']['remove'](_0x2dd2c5));}},{'priority':'high'});}['_getChangeFromId'](_0x50351e){return this['_changeIdToChange']['get'](_0x50351e);}['_getViewForChange'](_0x12b0fe){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x12b0fe),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2f3d21,_0x2aa729,_0x2e020a,_0x33c650)=>{_0x33c650&&this['_balloon']['remove'](_0x33c650),_0x2e020a&&(this['_balloon']['add']({'view':_0x2e020a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x375fb2=this['editor']['editing'],_0x7f1325=this['_getChangeFromId'](_0x2e020a['changeId']);let _0x41c876;if(_0x7f1325['data']['isOnRoot']){const _0x107def=_0x375fb2['view']['getDomRoot'](_0x7f1325['rootName']);_0x41c876=Array['from'](_0x107def['getClientRects']());}else{const _0x6ae6b3=this['editor']['model']['markers']['get']('revision:'+_0x2e020a['changeId']);_0x41c876=Array['from'](_0x375fb2['mapper']['markerNameToElements'](_0x6ae6b3['name']))['map'](_0x4616c6=>_0x375fb2['view']['domConverter']['mapViewToDom'](_0x4616c6))['map'](_0x2b0ea0=>Array['from'](_0x2b0ea0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x41c876[0x0];return _0x41c876['find'](_0x86a0c3=>_0x86a0c3['top']-0x3<=this['_activeViewTarget']['y']&&_0x86a0c3['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x86a0c3['left']-0x3<=this['_activeViewTarget']['x']&&_0x86a0c3['right']+0x3>=this['_activeViewTarget']['x'])||_0x41c876[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x300221,_0x42c751,_0x55ba71,_0x5b263f)=>{this['activeView']=_0x55ba71?this['_getViewForChange'](_0x55ba71):null,this['editor']['model']['change'](()=>{const _0x139988=this['editor']['editing'];_0x5b263f&&(_0x5b263f['data']['isOnRoot']?_0x139988['view']['change'](_0x3d292e=>{_0x3d292e['removeClass']('ck-revision-history-root--active',_0x139988['view']['document']['getRoot'](_0x5b263f['rootName']));}):_0x139988['reconvertMarker']('revision:'+_0x5b263f['id'])),_0x55ba71&&(_0x55ba71['data']['isOnRoot']?_0x139988['view']['change'](_0x42afdb=>{_0x42afdb['addClass']('ck-revision-history-root--active',_0x139988['view']['document']['getRoot'](_0x55ba71['rootName']));}):_0x139988['reconvertMarker']('revision:'+_0x55ba71['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x516a58,_0x168108)=>{if(this['activeChange'])return;const _0x135ec5=this['_findChangeIdFromDomTarget'](_0x168108['target']),_0x41ce77=this['_changeIdToChange']['get'](_0x135ec5);_0x41ce77?(this['_activeViewTarget']={'x':_0x168108['domEvent']['x'],'y':_0x168108['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x41ce77)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x50710f,_0x2c5826)=>{const _0xeca34d=this['_findChangeIdFromDomTarget'](_0x2c5826['target']),_0x3d8a02=this['_changeIdToChange']['get'](_0xeca34d);_0x3d8a02?(this['_activeViewTarget']={'x':_0x2c5826['domEvent']['x'],'y':_0x2c5826['domEvent']['y']},_0x3d8a02===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3d8a02):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x30e361){do{const _0x436276=_0x30e361['getAttribute']('data-change-id');if(_0x436276)return _0x436276;_0x30e361=_0x30e361['parent'];}while(_0x30e361);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x41cdb1=>{for(const _0x4b5ba7 of this['editor']['model']['markers'])_0x41cdb1['removeMarker'](_0x4b5ba7);});}}function Q(_0x17c4ec,_0x2dd8a4){return(_0x379b55,_0x33b6cb,_0x16ff80)=>{if(!_0x16ff80['consumable']['test'](_0x33b6cb['markerRange'],_0x379b55['name']))return;const _0xd4e2d=_0x33b6cb['markerRange']['getWalker'](),_0x3edf95=_0x33b6cb['markerRange']['start'],_0x134b3a=_0x17c4ec['model']['schema'];let _0x3e30ed=null,_0x5be7db=null,_0x11ca63=!0x1,_0x219e1f=!0x1;for(const _0x1ae183 of _0xd4e2d){const _0xbd4de1=_0x1ae183['item'];_0x11ca63=_0x11ca63||_0x134b3a['isContent'](_0xbd4de1);const _0x20469f=_0x16ff80['mapper']['toViewElement'](_0xbd4de1);if(_0x20469f&&_0x20469f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ae183['type']&&(_0x134b3a['isBlock'](_0xbd4de1)&&!_0x134b3a['isLimit'](_0xbd4de1)&&(_0xbd4de1['nextSibling']||_0x3edf95['isAtEnd']?_0x3e30ed&&_0x3e30ed['parent']==_0xbd4de1||(_0x3e30ed=_0xbd4de1,_0x4b927e(_0x1ae183['previousPosition']),_0x219e1f=!0x0):_0x5be7db=_0x5be7db||_0x1ae183['previousPosition']));}function _0x4b927e(_0x2309ae){const _0xccef1=_0x16ff80['mapper']['toViewPosition'](_0x2309ae),_0x30027a=_0x16ff80['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2dd8a4});_0x16ff80['writer']['insert'](_0xccef1,_0x30027a),_0x16ff80['mapper']['bindElementToMarker'](_0x30027a,_0x33b6cb['markerName']);}_0x11ca63||_0x219e1f||!_0x5be7db||_0x4b927e(_0x5be7db);};}class nt extends _0x113a4d{constructor(_0x13ae04){super(_0x13ae04);const _0x4ab870=_0x13ae04['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x4ab870,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ab870,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x14249f=this['editor'],_0x122b4c=_0x14249f['plugins']['get'](l),_0x3a6c41=_0x122b4c['isReady']?_0x122b4c['diff']['newRevisionId']:null;_0x14249f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a6c41);}['refresh'](){const {isReady:_0x3bebd3,isEnabled:_0x2b086b,repository:_0x61e83f,diff:_0x218288}=this['editor']['plugins']['get'](l),_0x4823c2=_0x218288&&_0x61e83f['getLaterVisibleRevision'](_0x218288['newRevisionId']);this['isEnabled']=_0x3bebd3&&_0x2b086b&&Boolean(_0x4823c2);}}class rt extends _0x113a4d{['_step'];constructor(_0x22dcd0,{direction:_0x2087e0}){super(_0x22dcd0);const _0x4e4d46=_0x22dcd0['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x2087e0?0x1:-0x1,this['listenTo'](_0x4e4d46,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4e4d46,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4e4d46,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4a644c=this['editor'],_0xe5775=_0x4a644c['plugins']['get'](l),{isNavigationMode:_0x349823,currentChangeNumber:_0x4d8472}=_0xe5775;let _0x36a5a9;if(_0xe5775['activeChange']=_0x349823?_0xe5775['diff']['changes']['get'](_0x4d8472+this['_step']):_0xe5775['diff']['changes']['first'],_0xe5775['activeChange']['data']['isOnRoot'])_0x36a5a9=_0x4a644c['editing']['view']['getDomRoot'](_0xe5775['activeChange']['rootName']);else{const _0x147256=_0x4a644c['model']['markers']['get']('revision:'+_0xe5775['activeChange']['id']);_0x36a5a9=_0x26b1f0(_0x4a644c['editing'],_0x147256);}_0x597347({'target':_0x36a5a9,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3eb0c5,currentChangeNumber:_0x58cf85,numberOfChanges:_0xe3b886,isReady:_0x36aa09,isEnabled:_0x50ff43}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x50ff43&&_0x36aa09&&_0xe3b886)&&(!_0x3eb0c5||(0x1===this['_step']?_0x58cf85<_0xe3b886-0x1:_0x58cf85>0x0));}}class fi extends _0x5bb4f2{constructor(_0xb99dff){super(_0xb99dff);const _0x137616=this['bindTemplate'],_0x4f6540=new _0x1cd6d8(_0xb99dff),_0x5e913d=new _0x1cd6d8(_0xb99dff);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',(_0x46a83a,_0x37e72d)=>_0x46a83a&&_0x37e72d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5374e4,_0x16bde4,_0x536364,_0x4d0d6a)=>{if(!_0x5374e4)return R(_0xb99dff,'Loading...');if(!_0x536364)return R(_0xb99dff,'No\x20changes');const _0x1065d3=R(_0xb99dff,'NUMBER_OF_CHANGES',_0x536364);return _0x4d0d6a?R(_0xb99dff,'X_OF_Y_CHANGES',[_0x16bde4+0x1,_0x536364]):_0x1065d3;}),_0x4f6540['set']({'label':R(_0xb99dff,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4daf79}),_0x5e913d['set']({'label':R(_0xb99dff,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1105ce}),_0x4f6540['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5e913d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4f6540['on']('execute',()=>this['fire']('execute','backward')),_0x5e913d['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',_0x137616['if']('_isStatusLabelVisible','ck-hidden',_0x578f29=>!_0x578f29)]},'children':[{'text':_0x137616['to']('isNavigationMode',_0x4d0991=>_0x4d0991?R(_0xb99dff,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0xb99dff,'Total')+':\x20')}]},{'text':_0x137616['to']('_statusText')}]},new _0x4e6708(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4f6540,_0x5e913d]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x5b4548{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x388b13=this['editor']['editing']['view'];_0x388b13['change'](_0x2c646a=>{for(const _0x1dcf73 of _0x388b13['document']['roots'])_0x2c646a['addClass'](ge,_0x1dcf73);});}['hide'](){const _0x1cb728=this['editor']['editing']['view'];_0x1cb728['change'](_0x5a28d2=>{for(const _0x2b5ee0 of _0x1cb728['document']['roots'])_0x5a28d2['removeClass'](ge,_0x2b5ee0);});}}class u extends _0x5b4548{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,bi];}['init'](){const _0x3f6c7c=this['editor'],_0x43ce2e=_0x3f6c7c['plugins']['get'](l),_0x1870a9=_0x3f6c7c['plugins']['get'](bi);_0x3f6c7c['ui']['componentFactory']['add']('exitToEditing',_0x578bb2=>{const _0x589f7d=new _0x1cd6d8(_0x578bb2);return _0x589f7d['set']({'label':R(_0x578bb2,'Back\x20to\x20editing'),'icon':_0x28316f,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x589f7d,'execute',()=>{_0x3f6c7c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x589f7d;}),_0x3f6c7c['ui']['componentFactory']['add']('restoreRevision',_0x326398=>{const _0x5325df=new _0x1cd6d8(_0x326398);return _0x5325df['set']({'label':R(_0x326398,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5325df['bind']('isEnabled')['to'](_0x3f6c7c['commands']['get']('restoreRevision')),this['listenTo'](_0x5325df,'execute',()=>_0x3f6c7c['execute']('restoreRevision')),_0x5325df;}),_0x3f6c7c['ui']['componentFactory']['add']('changesNavigation',_0x255a18=>{const _0x4e974c=new fi(_0x255a18),_0x553036=_0x3f6c7c['commands']['get']('showPreviousChange'),_0x302993=_0x3f6c7c['commands']['get']('showNextChange');return _0x4e974c['bind']('isBackwardNavigationEnabled')['to'](_0x553036,'isEnabled'),_0x4e974c['bind']('isForwardNavigationEnabled')['to'](_0x302993,'isEnabled'),_0x4e974c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x43ce2e),this['listenTo'](_0x4e974c,'execute',(_0x1c33e8,_0x3b919d)=>{_0x3f6c7c['execute']('forward'===_0x3b919d?'showNextChange':'showPreviousChange');}),_0x4e974c;}),_0x1870a9['show'](),_0x43ce2e['on']('change:isReady',(_0x3a40eb,_0x2b3794,_0x25085b)=>{_0x25085b?_0x1870a9['hide']():_0x1870a9['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4a269f,_0x549075){super(_0x4a269f,_0x549075);const _0x33d0ec=this['bindTemplate'];this['set']({'label':R(_0x4a269f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4a269f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x33d0ec['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x1db913=this['fieldView']['element'];this['_tooltipString']=_0x1db913['scrollWidth']>_0x1db913['clientWidth']&&_0x1db913['value']||'';}}class ni extends _0x5bb4f2{constructor(_0x59df0f,_0xe98490,_0x45ec0a){super(_0x59df0f);const _0x4ebba=new _0x5d2f47();_0x4ebba['set']({'content':_0x34d935,'viewBox':'0\x200\x2011\x2010'});const _0x5bbaa2=['ck','ck-revision-history-sidebar__revision-author'];_0x45ec0a&&_0x5bbaa2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x46c871=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x59df0f,_0x45ec0a?'Revision\x20creator':'Revision\x20author')},'children':[_0x4ebba,_0xe98490['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5bbaa2},'children':_0x46c871});}}function ci(_0x225802,_0x114dbe){const _0x3e4f68=_0x225802['bindTemplate'],_0x590418=_0x225802['locale'],_0x2b4c18=_0x46906e(_0x590418);_0x2b4c18['panelPosition']='sw';const _0x40f033=function(_0x1e3a89,_0x36da9e){const _0x5059a3=function(_0x4aa138,_0x38f0eb){const _0x8a56b4=_0x4aa138['locale'],_0x1d1239={'Compare\x20against\x20selected':R(_0x8a56b4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x8a56b4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x8a56b4,'Restore\x20this\x20revision')};return _0x38f0eb['map'](_0x1b0cfc=>{const _0x2a8bd1=_0x1d1239[_0x1b0cfc['name']];return _0x2a8bd1&&_0x2a8bd1!==_0x1b0cfc['name']&&(_0x1b0cfc['name']=_0x2a8bd1),_0x1b0cfc;});}(_0x1e3a89,_0x36da9e),_0x5d12d6=new _0x5ed036();for(const _0x3d32be of _0x5059a3){const _0x5457d7={'type':'button','model':new to({'label':_0x3d32be['name'],'class':_0x3d32be['class'],'withText':!0x0,'role':'menuitem','_action':_0x3d32be['action']})};_0x5457d7['model']['bind']('isEnabled')['to'](_0x1e3a89,'isActionsDropdownOpen',_0x2a5efc=>'function'!=typeof _0x3d32be['isEnabled']||(!_0x2a5efc||_0x3d32be['isEnabled'](_0x1e3a89))),_0x5d12d6['add'](_0x5457d7);}return _0x5d12d6;}(_0x225802,_0x114dbe);return _0x225802['bind']('isActionsDropdownOpen')['to'](_0x2b4c18,'isOpen'),_0x2b4c18['buttonView']['set']({'label':R(_0x590418,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x50a9fd}),_0x2b4c18['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e4f68['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3e4f68['to'](_0x3c5e73=>_0x3c5e73['stopPropagation']())}}),_0x2b4c18['on']('execute',_0x2194f6=>{_0x225802['isReady']&&'function'==typeof _0x2194f6['source']['_action']&&_0x2194f6['source']['_action'](_0x225802);}),_0xd4033e(_0x2b4c18,_0x40f033,{'role':'menu'}),_0x2b4c18['listenTo'](_0x225802,'change:isActionsDropdownOpen',(_0x42dfdc,_0x5a4d57,_0x487a20)=>{if(_0x487a20)for(const _0xf6b37 of _0x2b4c18['listView']['items']){const _0x56d993=_0xf6b37['children']['first'],_0x198f82=_0x114dbe['find'](_0x3e85b2=>_0x3e85b2['action']===_0x56d993['_action'])['isVisible'];_0xf6b37['isVisible']=void 0x0===_0x198f82||_0x198f82(_0x225802);}}),_0x2b4c18;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x814b36(_0x5bb4f2){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x599e79,_0x14ba36,_0x2e20ac,_0x6a695a){super(_0x599e79);const _0x59fb27=this['bindTemplate'],_0x500726=function(_0x5b2ad0,_0x1a094b){const _0x5bed4b=Array['from'](_0x1a094b['authors'])['filter'](_0x24ff54=>_0x24ff54!=_0x1a094b['creator']);return _0x1a094b['creator']&&_0x5bed4b['unshift'](_0x1a094b['creator']),_0x5bed4b['map'](_0x57c3f4=>new ni(_0x5b2ad0,_0x57c3f4,_0x57c3f4==_0x1a094b['creator']));}(_0x599e79,_0x14ba36);this['id']=_0x14ba36['id'],this['_revision']=_0x14ba36,this['_requireRevisionName']=_0x6a695a,this['bind']('name','createdAt')['to'](_0x14ba36),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x173d87=>{return _0x270226=_0x599e79['uiLanguage'],(_0x1b63db=_0x173d87)['toLocaleDateString'](_0x270226,{'month':'long','day':'numeric'})+',\x20'+_0x1b63db['toLocaleTimeString'](_0x270226,{'hour':'numeric','minute':'numeric'});var _0x270226,_0x1b63db;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x599e79,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2fda2a=>_0x2fda2a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x59fb9f,_0x443693)=>_0x59fb9f&&_0x443693),this['revisionActionsView']=_0x2e20ac&&_0x2e20ac['length']?ci(this,_0x2e20ac):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x59fb27['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x59fb27['if']('isEnabled','ck-disabled',_0x391a0a=>!_0x391a0a),_0x59fb27['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x59fb27['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x59fb27['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':_0x59fb27['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':_0x500726}]},this['revisionActionsView']],'on':{'click':_0x59fb27['to'](_0x2c6a4f=>{_0x2c6a4f['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x10406a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x10406a,'change',()=>{this['_requireRevisionName']&&!_0x10406a['value']||this['fire']('setName',{'id':this['id'],'name':_0x10406a['value']}),_0x10406a['value']||(_0x10406a['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x28e8f8,_0x6f7b5d){const _0x5aa697=_0x55dccf['fromJSDate'](_0x28e8f8)['setLocale'](_0x6f7b5d),_0x5e7e58=_0x55dccf['local'](),_0x1bcd83=_0x5e7e58['minus']({'days':0x1})['startOf']('day');let _0x3bf34d,_0x1f5f94;return _0x5aa697['hasSame'](_0x5e7e58,'day')?(_0x3bf34d=_0x5aa697['startOf']('day')['toJSDate'](),_0x1f5f94=_0x5aa697['toRelativeCalendar']()):_0x5aa697['hasSame'](_0x1bcd83,'day')?(_0x3bf34d=_0x1bcd83['toJSDate'](),_0x1f5f94=_0x5aa697['toRelativeCalendar']()):_0x5aa697['hasSame'](_0x5e7e58,'week')?(_0x3bf34d=_0x5aa697['startOf']('week')['toJSDate'](),_0x1f5f94=_0x5aa697['weekdayLong']||''):_0x5aa697['hasSame'](_0x5e7e58,'year')?(_0x3bf34d=_0x5aa697['startOf']('month')['toJSDate'](),_0x1f5f94=_0x5aa697['monthLong']||''):(_0x3bf34d=_0x5aa697['startOf']('year')['toJSDate'](),_0x1f5f94=String(_0x5aa697['year'])),{'startDate':_0x3bf34d,'localizedPeriodName':_0x1f5f94};}class ji extends _0x5bb4f2{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x9b0bf2,_0x4940c7,_0x1bc60a,_0xf2721c){super(_0x9b0bf2);const _0x5c2848=ki(_0x4940c7,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4940c7,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1bc60a,this['_requireRevisionName']=_0xf2721c,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':_0x5c2848}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4dee53){const _0x502a43=new _i(this['locale'],_0x4dee53,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x502a43);}['removeRevision'](_0x2af8a3){const _0x4f08ad=this['revisionViews']['find'](_0x45337d=>_0x45337d['id']===_0x2af8a3['id']);this['revisionViews']['remove'](_0x4f08ad);}}class Ni extends _0x5bb4f2{constructor(_0xe76b86){super(_0xe76b86);const _0x5c50fc=new _0x5d2f47();_0x5c50fc['content']=_0x659fc6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5c50fc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xe76b86,'Revision\x20history')]}]});}}class Ri extends _0x5bb4f2{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x220ba6,_0x17701f,_0x3fb058,_0x36b5f2){super(_0x220ba6);const _0x106c50=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x17701f,this['_revisionActions']=_0x3fb058,this['_requireRevisionName']=_0x36b5f2,this['on']('select',(_0x5c66a2,_0x2bb8c7)=>{this['fire']('revisionSelected',_0x2bb8c7);}),this['on']('setName',(_0x1c4b43,_0x108222)=>{this['fire']('revisionSetName',_0x108222);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x220ba6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x106c50['if']('isEnabled','ck-disabled',_0x18dab2=>!_0x18dab2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x9db100 of this['_revisions'])this['_addRevision'](_0x9db100);this['_revisions']['on']('add',(_0x728a11,_0x1b0fe5)=>{this['_addRevision'](_0x1b0fe5);}),this['_revisions']['on']('remove',(_0x339549,_0x1a6ec1)=>{this['_removeRevision'](_0x1a6ec1);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1d5c91=>_0x1d5c91['revisionViews']['map'](_0x4cf3c8=>_0x4cf3c8))['flat']();}['selectRevision'](_0x18cf23){for(const _0x271bbc of this['revisionViews'])_0x18cf23&&_0x18cf23['id']===_0x271bbc['id']?_0x271bbc['select']():_0x271bbc['deselect']();}['highlightRevisions'](_0x337c08){for(const _0x563657 of this['revisionViews'])_0x337c08['some'](({id:_0x786f74})=>_0x786f74===_0x563657['id'])?_0x563657['highlight']():_0x563657['unhighlight']();}['_addRevision'](_0x37ffba){const _0x5cfc7e=ki(_0x37ffba['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2ed5a5=this['timePeriodViews']['get'](0x0);_0x2ed5a5&&_0x2ed5a5['startDate']['getTime']()===_0x5cfc7e['getTime']()||(_0x2ed5a5=new ji(this['locale'],_0x5cfc7e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2ed5a5)),_0x2ed5a5['addRevision'](_0x37ffba);}['_removeRevision'](_0x17dde0){const _0x4e59f5=ki(_0x17dde0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4e59f5)['removeRevision'](_0x17dde0);}['_getTimePeriodViewByStartDate'](_0xa2d436){return this['timePeriodViews']['find'](_0xd50b1d=>_0xd50b1d['startDate']['getTime']()===_0xa2d436['getTime']());}}class f extends _0x5b4548{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(
|
|
30
|
-
_0x4e2fef(_0xb6e990){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4d88a9,_0x4965b2){super(_0x4965b2),this['sourceElement']=_0x4d88a9,this['model']['document']['createRoot']();const _0x335f48=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x335f48);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2aaffc,_0xb00cc4){const _0x56edbc=new this(_0x2aaffc,_0xb00cc4);return await _0x56edbc['initPlugins'](),await _0x56edbc['ui']['init'](_0x2aaffc),await _0x56edbc['data']['init'](_0x56edbc['config']['get']('initialData')||''),_0x56edbc['fire']('ready'),_0x56edbc;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x187c04{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x65d586){function _0x3bf7fc(_0x7a023c){return _0x7a023c['map'](_0x4e2ccd=>String['fromCharCode'](_0x4e2ccd))['join']('');}super(_0x65d586),this['result']='end',_0x65d586[_0x3bf7fc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bf7fc([0x76,0x69,0x65,0x77])][_0x3bf7fc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bf7fc([0x61,0x75,0x74,0x6f]),_0x65d586[_0x3bf7fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3bf7fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bf7fc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3bf7fc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3bf7fc([0x6f,0x6b])});}}class ct extends _0x187c04{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x404dd5){if(super(_0x404dd5),!this['editor']['config']['get']('revisionHistory'))throw new _0xd5f3c9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4cba16=>this['_showRevisionViewer']({..._0x4cba16,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x374557=>this['_closeRevisionViewer'](_0x374557)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x238545=>this['_restoreRevision'](_0x238545)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x19a1e6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x19a1e6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x348c10){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x348c10);}['getRevision'](_0x3a30b1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3a30b1);}['getRevisions'](_0x40fed5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x40fed5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x9194f2=this['editor'],_0x25b600=_0x56bb53(_0x9194f2,d),_0x185beb=_0x9194f2['plugins']['get']('RevisionTracker'),_0xd818f=_0x9194f2['plugins']['get']('Users')['users'];return _0x25b600['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x25b600['lazyRoots'],(_0x25b600['plugins']['push'](ht,l,u,class extends _0x187c04{static get['requires'](){return[l,'Users'];}['init'](){const _0x30b423=this['editor']['plugins']['get']('Users');for(const _0x8cd16e of _0xd818f)_0x8cd16e['isAnonymous']||_0x30b423['getUser'](_0x8cd16e['id'])||_0x30b423['addUser'](_0x8cd16e);const _0x20880=_0x185beb['repository']['getRevisions']();let _0x543896=null;const _0x34d14a=this['editor']['plugins']['get']('RevisionViewer');_0x34d14a['adapter']=_0x185beb['adapter'],_0x34d14a['bind']('isEnabled')['to'](_0x185beb),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x9194f2,'isReadOnly',_0x229fdb=>!_0x229fdb);for(const _0x3e142f of _0x20880){const _0xa515e1=null===_0x3e142f['creator'];if(_0xa515e1&&_0x3e142f['toVersion']===_0x3e142f['fromVersion'])continue;const _0x2b5ea0=_0x3e142f['toJSON']();_0x34d14a['addRevisionData'](_0x2b5ea0,(_0x2128ff,_0x230b8b,_0x1990a9)=>{if(_0xa515e1){if(_0x543896)_0x543896['_update'](_0x2128ff,_0x230b8b);else{if(!_0x230b8b){const _0x5f5872=_0x1990a9['toJSON']();_0x5f5872['id']=_0x474356(),_0x185beb['saveRevision'](_0x5f5872,_0x1990a9['toVersion'])['then'](_0x2ecacd=>{_0x543896=_0x2ecacd;});}}}else _0x3e142f['_update'](_0x2128ff,_0x230b8b);});}}},f),_0x25b600);}['_enhanceShowRevisionViewerCallback'](){const _0x462dc4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4462f8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1d0bdb=this['editor']['plugins']['get']('Autosave');await _0x1d0bdb['save']();}else await _0x4462f8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x48f4a1=this['editor']['plugins']['get']('Dialog');_0x48f4a1['isOpen']&&_0x48f4a1['hide']();}const _0x2b5beb=this['_getRevisionViewerEditorConfig']();return _0x462dc4(_0x2b5beb)['then'](_0x118a71=>{return(this['_viewerEditor']=_0x118a71,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'),_0x118a71);})['catch'](_0x175fd3=>(console['error'](_0x175fd3),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x17e8ea=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'](),_0x17e8ea(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xe70d9e=this['editor']['plugins']['get']('Annotations');_0xe70d9e['refreshVisibility'](),_0xe70d9e['refreshPositioning']();}})));}['_showRevisionViewer'](_0x169a65){const _0x5d7ceb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5bdfd7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x145b8b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x145b8b,_0x169a65)['then'](_0x41d5b6=>(_0x5bdfd7['style']['display']='block',_0x5d7ceb['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x41d5b6));}['_closeRevisionViewer'](_0x232424){const _0x401dd5=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x401dd5['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x232424['destroy']();}async['_restoreRevision'](_0x35f0e3){const _0x32e149=this['editor'],_0x28e5a9=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3d176f=_0x32e149['plugins']['get']('RevisionTracker'),_0x42b133=_0x32e149['plugins']['get']('RevisionHistoryUtils'),_0x3a23d8=_0x28e5a9['repository']['getRevision'](_0x35f0e3);let _0x1a6108,_0x5bede1,_0x47d1aa;try{await _0x42b133['loadRevisionData'](_0x3a23d8,this['adapter']),_0x1a6108=_0x42b133['getRevisionDocumentData'](_0x3a23d8),_0x5bede1=_0x42b133['getRevisionRootsAttributes'](_0x3a23d8);}catch(_0x5bfc26){return void console['error'](_0x5bfc26);}_0x32e149['model']['change'](_0x837269=>{for(const _0x51a3c1 of Array['from'](_0x32e149['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x837269['removeMarker'](_0x51a3c1);}),_0x28e5a9['isReady']=!0x1,_0x32e149['model']['enqueueChange'](_0xbb47bd=>{_0xbb47bd['setSelection'](null),_0xbb47bd['removeSelectionAttribute'](_0x32e149['model']['document']['selection']['getAttributeKeys']());const _0x1830cc=Object['keys'](_0x1a6108);for(const _0x4f2674 of _0x32e149['model']['document']['roots'])'$graveyard'!=_0x4f2674['rootName']&&_0x4f2674['isAttached']()&&!_0x1830cc['includes'](_0x4f2674['rootName'])&&_0xbb47bd['detachRoot'](_0x4f2674);for(const _0x41e5c8 of _0x1830cc){let _0x61171e=_0x32e149['model']['document']['getRoot'](_0x41e5c8);_0x61171e&&_0x61171e['isAttached']()||(_0x61171e=_0xbb47bd['addRoot'](_0x41e5c8));const _0x4082c6=_0x5bede1[_0x41e5c8],_0x3f9253=Object['keys'](_0x4082c6),_0x14bb39=_0x1a6108[_0x41e5c8];for(const _0x2f0ac2 of _0x61171e['getAttributeKeys']())_0x3f9253['includes'](_0x2f0ac2)||_0xbb47bd['removeAttribute'](_0x2f0ac2,_0x61171e);for(const _0x28c10d of _0x3f9253)_0xbb47bd['setAttribute'](_0x28c10d,_0x5bede1[_0x41e5c8][_0x28c10d],_0x61171e);_0xbb47bd['remove'](_0xbb47bd['createRangeIn'](_0x61171e)),_0xbb47bd['insert'](_0x32e149['data']['parse'](_0x14bb39,_0x61171e),_0x61171e,0x0);}});const _0x3e2e14=R(_0x32e149['locale'],'Restored');if(_0x3a23d8['name'])_0x47d1aa=-0x1==_0x3a23d8['name']['indexOf'](_0x3e2e14)?_0x3e2e14+':\x20'+_0x3a23d8['name']:_0x3a23d8['name'];else _0x47d1aa=_0x3e2e14+':\x20'+(_0x3a23d8['createdAt']['toLocaleDateString'](_0x32e149['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3a23d8['createdAt']['toLocaleTimeString'](_0x32e149['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3d176f['saveRevision']({'name':_0x47d1aa}),_0x28e5a9['isReady']=!0x0,_0x32e149['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x4636bc){super(_0x4636bc),this['_revisionViewer']=_0x4636bc['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x349a16=this['_revisionsRepository']['_revisions'],_0x3cbc6d=this['_createRevisionActions'](),_0x4e2587=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x349a16,_0x3cbc6d,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',(_0x292897,_0x1c9df4)=>{_0x1c9df4['revisionViews']['on']('add',(_0x5de737,_0x5061f1)=>{_0x5061f1['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)),_0x4e2587['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x11465a=this['_revisionsRepository']['getRevision'](0x0);if(_0x11465a){const _0x48b5aa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x11465a['id']);this['_revisionViewer']['compare'](_0x11465a,_0x48b5aa);}}['_handleRevisionSelected'](_0x29a142,_0x139270){const _0x95ef3d=this['_revisionsRepository']['getRevision'](_0x139270['id']),_0x519eed=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x95ef3d['id']);this['_revisionViewer']['compare'](_0x95ef3d,_0x519eed);}['_handleRevisionSetName'](_0x2957d6,_0x19c3b7){this['_revisionsRepository']['getRevision'](_0x19c3b7['id'])['setName'](_0x19c3b7['name']);}['_handleDiffChange'](_0x9d6f8f,_0xe632a4,_0x5bc821){const _0x2d15b9=this['_revisionsRepository']['getRevisionsInDiff'](_0x5bc821);_0x2d15b9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2d15b9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2d15b9[0x0]));}['_createRevisionActions'](){const _0x2b1250=this['editor'],_0x1f5a5f=f['availableRevisionActions'],_0x520064=_0x2b1250['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x520064['length'])return _0x520064['map'](_0x1a31ef=>{const _0x5f127f='string'==typeof _0x1a31ef?Object['assign']({},_0x1f5a5f[_0x1a31ef]):_0x1a31ef;return _0x5f127f['action']=_0x5f127f['action']['bind'](this,_0x2b1250),_0x5f127f['isVisible']&&(_0x5f127f['isVisible']=_0x5f127f['isVisible']['bind'](this,_0x2b1250)),_0x5f127f;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xfa4e6b},_0x5262c2)=>{const _0x234644=_0xfa4e6b['get'](l),_0x1f4df3=_0x234644['repository'];let _0x352e42=_0x234644['diff']['newRevisionId'],_0x8c5210=_0x5262c2['id'];_0x1f4df3['getIndex'](_0x352e42)>_0x1f4df3['getIndex'](_0x8c5210)&&([_0x352e42,_0x8c5210]=[_0x8c5210,_0x352e42]),_0x234644['compare'](_0x352e42,_0x8c5210);},'isVisible':({plugins:_0x5d7b56},_0x141aad)=>{const _0x12f36a=_0x5d7b56['get'](l);return!(_0x12f36a['repository']['getRevisionsInDiff'](_0x12f36a['diff'])['length']>0x2)&&!_0x141aad['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2d2a1d,{id:_0x1968a7})=>{_0x2d2a1d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1968a7);},'isVisible':({plugins:_0x3fbdb0},_0x3e05ba)=>!!_0x3fbdb0['get'](l)['repository']['getLaterVisibleRevision'](_0x3e05ba['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x17ee00},{id:_0x364f32,revisionNameView:_0x421f7f})=>{const _0x496b65=_0x17ee00['get'](l),_0x1a3fd6=_0x496b65['repository']['getEarlierVisibleRevision'](_0x364f32);_0x496b65['compare'](_0x364f32,_0x1a3fd6),_0x421f7f['focus'](),_0x421f7f['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5b1a12,_0x43e7e2){super(_0x5b1a12),this['_view']=_0x43e7e2,this['_toolbarConfig']=st(_0x5b1a12['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x59c563){const _0x570b65=this['editor'],_0x127a13=this['view'],_0x272a51=_0x570b65['editing']['view'],_0x4e262c=_0x127a13['editable'],_0x3b4108=_0x272a51['document']['getRoot']();_0x4e262c['name']=_0x3b4108['rootName'],_0x127a13['render']();const _0x41a0c2=_0x4e262c['element'];this['setEditableElement'](_0x4e262c['name'],_0x41a0c2),_0x127a13['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x272a51['attachDomRoot'](_0x41a0c2),this['_elementReplacer']['replace'](_0x59c563,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x32403f=this['view'],_0x2cd2b1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2cd2b1['detachDomRoot'](_0x32403f['editable']['name']),_0x32403f['destroy']();}['_initToolbar'](){const _0x57862f=this['view'];_0x57862f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x57862f['stickyPanel']['limiterElement']=_0x57862f['element'],_0x57862f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x589270})=>_0x589270),_0x57862f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x57862f['toolbar']);}}class ii extends _0x230bfc{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x14c63c,_0x1c3548,_0x2233ca={}){super(_0x14c63c),this['stickyPanel']=new _0x3dbd0e(_0x14c63c),this['toolbar']=new _0x3b3b98(_0x14c63c,{'shouldGroupWhenFull':_0x2233ca['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x14c63c,_0x1c3548);}['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
|
+
_0x85f989(_0x3f1bb1){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x30131e,_0x4219cc){super(_0x4219cc),this['sourceElement']=_0x30131e,this['model']['document']['createRoot']();const _0x526ad3=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x526ad3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x327ed3,_0x194ddf){const _0xbf64de=new this(_0x327ed3,_0x194ddf);return await _0xbf64de['initPlugins'](),await _0xbf64de['ui']['init'](_0x327ed3),await _0xbf64de['data']['init'](_0xbf64de['config']['get']('initialData')||''),_0xbf64de['fire']('ready'),_0xbf64de;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x5b4548{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x463561){function _0x3f9c6e(_0x277b19){return _0x277b19['map'](_0x29ef01=>String['fromCharCode'](_0x29ef01))['join']('');}super(_0x463561),this['result']='end',_0x463561[_0x3f9c6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f9c6e([0x76,0x69,0x65,0x77])][_0x3f9c6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f9c6e([0x61,0x75,0x74,0x6f]),_0x463561[_0x3f9c6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3f9c6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f9c6e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3f9c6e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3f9c6e([0x6f,0x6b])});}}class ct extends _0x5b4548{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0xd4490e){if(super(_0xd4490e),!this['editor']['config']['get']('revisionHistory'))throw new _0x26464b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3dd259=>this['_showRevisionViewer']({..._0x3dd259,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x511683=>this['_closeRevisionViewer'](_0x511683)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5a6f46=>this['_restoreRevision'](_0x5a6f46)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3432a9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3432a9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4411a4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4411a4);}['getRevision'](_0x227430){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x227430);}['getRevisions'](_0x514ce4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x514ce4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x49ce5e=this['editor'],_0x46d6d1=_0x33d67b(_0x49ce5e,d),_0x57e43f=_0x49ce5e['plugins']['get']('RevisionTracker'),_0x13dfaf=_0x49ce5e['plugins']['get']('Users')['users'];return _0x46d6d1['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x46d6d1['lazyRoots'],(_0x46d6d1['plugins']['push'](ht,l,u,class extends _0x5b4548{static get['requires'](){return[l,'Users'];}['init'](){const _0x16953f=this['editor']['plugins']['get']('Users');for(const _0x498056 of _0x13dfaf)_0x498056['isAnonymous']||_0x16953f['getUser'](_0x498056['id'])||_0x16953f['addUser'](_0x498056);const _0x2ad433=_0x57e43f['repository']['getRevisions']();let _0x5179c6=null;const _0x240614=this['editor']['plugins']['get']('RevisionViewer');_0x240614['adapter']=_0x57e43f['adapter'],_0x240614['bind']('isEnabled')['to'](_0x57e43f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x49ce5e,'isReadOnly',_0x38065c=>!_0x38065c);for(const _0x19aade of _0x2ad433){const _0x2cd6c2=null===_0x19aade['creator'];if(_0x2cd6c2&&_0x19aade['toVersion']===_0x19aade['fromVersion'])continue;const _0x24a095=_0x19aade['toJSON']();_0x240614['addRevisionData'](_0x24a095,(_0x5d8744,_0x12b6c6,_0x48dc29)=>{if(_0x2cd6c2){if(_0x5179c6)_0x5179c6['_update'](_0x5d8744,_0x12b6c6);else{if(!_0x12b6c6){const _0x688aa8=_0x48dc29['toJSON']();_0x688aa8['id']=_0x2df4cd(),_0x57e43f['saveRevision'](_0x688aa8,_0x48dc29['toVersion'])['then'](_0x59abc7=>{_0x5179c6=_0x59abc7;});}}}else _0x19aade['_update'](_0x5d8744,_0x12b6c6);});}}},f),_0x46d6d1);}['_enhanceShowRevisionViewerCallback'](){const _0x42c0b4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x359a5a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3e8a13=this['editor']['plugins']['get']('Autosave');await _0x3e8a13['save']();}else await _0x359a5a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5f593c=this['editor']['plugins']['get']('Dialog');_0x5f593c['isOpen']&&_0x5f593c['hide']();}const _0x4fed39=this['_getRevisionViewerEditorConfig']();return _0x42c0b4(_0x4fed39)['then'](_0x4ce08f=>{return(this['_viewerEditor']=_0x4ce08f,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'),_0x4ce08f);})['catch'](_0x5b958b=>(console['error'](_0x5b958b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x49d4b5=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'](),_0x49d4b5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x7276db=this['editor']['plugins']['get']('Annotations');_0x7276db['refreshVisibility'](),_0x7276db['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3a2c29){const _0x2bc4c5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x395a0c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x55e16f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x55e16f,_0x3a2c29)['then'](_0x37a7a4=>(_0x395a0c['style']['display']='block',_0x2bc4c5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x37a7a4));}['_closeRevisionViewer'](_0x5eaae6){const _0x134635=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x134635['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5eaae6['destroy']();}async['_restoreRevision'](_0x57f388){const _0x5b371f=this['editor'],_0xc27db8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x231000=_0x5b371f['plugins']['get']('RevisionTracker'),_0x5b18ab=_0x5b371f['plugins']['get']('RevisionHistoryUtils'),_0x4c3b52=_0xc27db8['repository']['getRevision'](_0x57f388);let _0x362862,_0x5c570b,_0xca2e25;try{await _0x5b18ab['loadRevisionData'](_0x4c3b52,this['adapter']),_0x362862=_0x5b18ab['getRevisionDocumentData'](_0x4c3b52),_0x5c570b=_0x5b18ab['getRevisionRootsAttributes'](_0x4c3b52);}catch(_0xf752bb){return void console['error'](_0xf752bb);}_0x5b371f['model']['change'](_0x22bd63=>{for(const _0x1ba7c5 of Array['from'](_0x5b371f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x22bd63['removeMarker'](_0x1ba7c5);}),_0xc27db8['isReady']=!0x1,_0x5b371f['model']['enqueueChange'](_0x163630=>{_0x163630['setSelection'](null),_0x163630['removeSelectionAttribute'](_0x5b371f['model']['document']['selection']['getAttributeKeys']());const _0xff993a=Object['keys'](_0x362862);for(const _0x323674 of _0x5b371f['model']['document']['roots'])'$graveyard'!=_0x323674['rootName']&&_0x323674['isAttached']()&&!_0xff993a['includes'](_0x323674['rootName'])&&_0x163630['detachRoot'](_0x323674);for(const _0x261aca of _0xff993a){let _0x53b1bc=_0x5b371f['model']['document']['getRoot'](_0x261aca);_0x53b1bc&&_0x53b1bc['isAttached']()||(_0x53b1bc=_0x163630['addRoot'](_0x261aca));const _0x261fe9=_0x5c570b[_0x261aca],_0x2b5a12=Object['keys'](_0x261fe9),_0x2335f6=_0x362862[_0x261aca];for(const _0x585497 of _0x53b1bc['getAttributeKeys']())_0x2b5a12['includes'](_0x585497)||_0x163630['removeAttribute'](_0x585497,_0x53b1bc);for(const _0x4e8516 of _0x2b5a12)_0x163630['setAttribute'](_0x4e8516,_0x5c570b[_0x261aca][_0x4e8516],_0x53b1bc);_0x163630['remove'](_0x163630['createRangeIn'](_0x53b1bc)),_0x163630['insert'](_0x5b371f['data']['parse'](_0x2335f6,_0x53b1bc),_0x53b1bc,0x0);}});const _0x126b2f=R(_0x5b371f['locale'],'Restored');if(_0x4c3b52['name'])_0xca2e25=-0x1==_0x4c3b52['name']['indexOf'](_0x126b2f)?_0x126b2f+':\x20'+_0x4c3b52['name']:_0x4c3b52['name'];else _0xca2e25=_0x126b2f+':\x20'+(_0x4c3b52['createdAt']['toLocaleDateString'](_0x5b371f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4c3b52['createdAt']['toLocaleTimeString'](_0x5b371f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x231000['saveRevision']({'name':_0xca2e25}),_0xc27db8['isReady']=!0x0,_0x5b371f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|