@ckeditor/ckeditor5-revision-history 47.2.0-alpha.1 → 47.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- 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
|
-
_0x3095a9(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5a9491){super(),this['id']=_0x5a9491['id']||_0x4c4fba(),this['creator']=_0x5a9491['creator']||null,this['authors']=_0x5a9491['authors']||[],this['diffData']=_0x5a9491['diffData']||null,this['toVersion']=_0x5a9491['toVersion']||0x0,this['fromVersion']=_0x5a9491['fromVersion']||0x0,this['set']('name',_0x5a9491['name']||''),this['set']('createdAt',_0x5a9491['createdAt']||new Date()),this['set']('attributes',_0x5a9491['attributes']||{});}['setName'](_0x3f10dd){this['_update']({'name':_0x3f10dd});}['setAttribute'](_0x8d216e,_0x3f9a02){const _0x202c0e=_0x1e1e73(this['attributes']);_0x2502f6(_0x202c0e,_0x8d216e,_0x3f9a02),this['_update']({'attributes':_0x202c0e});}['removeAttribute'](_0x1038c7){const _0x261568=_0x1e1e73(this['attributes']);_0x53ab93(_0x261568,_0x1038c7),this['_update']({'attributes':_0x261568});}['_update'](_0x3af761,_0x25a7b5=!0x1){let _0x3a675f=!0x1;const _0x596435={'id':this['id']},_0x21cfaa=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x14d60b of _0x21cfaa){const _0x337a4c=_0x3af761[_0x14d60b];void 0x0!==_0x337a4c&&_0x337a4c!==this[_0x14d60b]&&(this[_0x14d60b]=_0x337a4c,_0x596435[_0x14d60b]=_0x337a4c,_0x3a675f=!0x0);}_0x3a675f&&(_0x596435['authors']&&(_0x596435['authorsIds']=_0x596435['authors']['map'](_0x599628=>_0x599628['id']),delete _0x596435['authors']),this['fire']('_update',_0x596435,_0x25a7b5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5946c7=>_0x5946c7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x57da8b{['_revisions'];static get['requires'](){return[_0x33ad79];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x327ae0){super(_0x327ae0),this['_revisions']=new _0x26acd1();}['afterInit'](){!async function(_0x582791){const _0x5a4411=_0xea3df6([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x1fef9f=0xeb829,_0x3e6760=0x359e09b0,_0x41c7db=0x35997e18^_0x3e6760,_0x3a2e81=window[_0xea3df6([0x44,0x61,0x74,0x65])][_0xea3df6([0x6e,0x6f,0x77])](),_0x2e3aa3=_0x582791[_0xea3df6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fbb30=new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56eae1=>{_0x2e3aa3[_0xea3df6([0x6f,0x6e,0x63,0x65])](_0xea3df6([0x72,0x65,0x61,0x64,0x79]),_0x56eae1);}),_0x5bb0e0={[_0xea3df6([0x6b,0x74,0x79])]:_0xea3df6([0x45,0x43]),[_0xea3df6([0x75,0x73,0x65])]:_0xea3df6([0x73,0x69,0x67]),[_0xea3df6([0x63,0x72,0x76])]:_0xea3df6([0x50,0x2d,0x32,0x35,0x36]),[_0xea3df6([0x78])]:_0xea3df6([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]),[_0xea3df6([0x79])]:_0xea3df6([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]),[_0xea3df6([0x61,0x6c,0x67])]:_0xea3df6([0x45,0x53,0x32,0x35,0x36])},_0x1cbf00=_0x2e3aa3[_0xea3df6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xea3df6([0x67,0x65,0x74])](_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43b051(){let _0xee4b59,_0x514fb5=null,_0x465811=null;try{if(_0x1cbf00==_0xea3df6([0x47,0x50,0x4c]))return _0xea3df6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xee4b59=_0xe6209(),!_0xee4b59)return _0xea3df6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xee4b59[_0xea3df6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x465811=_0x411b96(_0xee4b59[_0xea3df6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xee4b59[_0xea3df6([0x6a,0x74,0x69])])),await _0x19c5df()?_0xf62617()?_0x180c91()?_0xea3df6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56fb0b()?(_0xee4b59[_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xea3df6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x514fb5=_0x1e26e8(_0xea3df6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xee4b59[_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xea3df6([0x74,0x72,0x69,0x61,0x6c])&&(_0x514fb5=_0x1e26e8(_0xea3df6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1997a4()):_0xea3df6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xea3df6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xea3df6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xea3df6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x180c91(){const _0x1f5104=[_0xea3df6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xea3df6([0x74,0x72,0x69,0x61,0x6c])][_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee4b59[_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a2e81/0x3e8:0xe10*_0x41c7db;return _0xee4b59[_0xea3df6([0x65,0x78,0x70])]<_0x1f5104;}function _0xf62617(){const _0x553e1b=_0xee4b59[_0xea3df6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x553e1b)return!0x1;if(_0x553e1b[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea3df6([0x2a])))return!0x0;if(_0x553e1b[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea3df6([0x52,0x48])))return!0x0;if(_0x553e1b[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea3df6([0x52,0x52,0x48]))){if(_0x1fc186())return!0x0;if(_0x1413e5()||_0x5484ed())return!0x0;}return!0x1;}function _0x56fb0b(){const _0x1c98a9=_0xee4b59[_0xea3df6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c98a9||0x0==_0x1c98a9[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f7317}=new URL(window[_0xea3df6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c98a9[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f7317))return!0x0;const _0x491f75=_0x3f7317[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])](_0xea3df6([0x2e]));return _0x1c98a9[_0xea3df6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc78f7d=>_0xc78f7d[_0xea3df6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea3df6([0x2a])))[_0xea3df6([0x6d,0x61,0x70])](_0x328807=>_0x328807[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])](_0xea3df6([0x2e])))[_0xea3df6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x404265=>_0x404265[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x491f75[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xea3df6([0x6d,0x61,0x70])](_0x2e2788=>Array(_0x491f75[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e2788[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xea3df6([0x66,0x69,0x6c,0x6c])](_0x2e2788[0x0]===_0xea3df6([0x2a])?_0xea3df6([0x2a]):'')[_0xea3df6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e2788))[_0xea3df6([0x73,0x6f,0x6d,0x65])](_0x96c6db=>_0x491f75[_0xea3df6([0x65,0x76,0x65,0x72,0x79])]((_0x236de2,_0x2b74e8)=>_0x96c6db[_0x2b74e8]===_0x236de2||_0x96c6db[_0x2b74e8]===_0xea3df6([0x2a])));}function _0x1997a4(){return _0x514fb5&&_0x465811?new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ae6e7,_0x1cb936)=>{_0x514fb5[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x3ae6e7,_0x1cb936),_0x465811[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x2cc723=>{_0x2cc723!=_0xea3df6([0x56,0x61,0x6c,0x69,0x64])&&_0x3ae6e7(_0x2cc723);},_0x1cb936);}):_0x514fb5||_0x465811||_0xea3df6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x411b96(_0x5d76de,_0xda8ef){return new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21baaa=>{if(_0x2dabc4())return _0x21baaa(_0xea3df6([0x56,0x61,0x6c,0x69,0x64]));_0x536d1e(),_0x2e3aa3[_0xea3df6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xea3df6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3003be=!0x1;const _0x4af80b=_0x4c4fba();function _0x31cf88(_0x53a7f8){return!!_0x53a7f8&&(typeof _0x53a7f8===_0xea3df6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53a7f8===_0xea3df6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53a7f8[_0xea3df6([0x74,0x68,0x65,0x6e])]===_0xea3df6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53a7f8[_0xea3df6([0x63,0x61,0x74,0x63,0x68])]===_0xea3df6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e05a8(_0x5a0ff6){_0x3eec41(_0x5a0ff6)[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x1ef157=>{if(!_0x1ef157||_0x1ef157[_0xea3df6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xea3df6([0x6f,0x6b]))return _0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4fc0cf(_0x37ca07(_0x4af80b+_0xda8ef))!=_0x1ef157[_0xea3df6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xea3df6([0x56,0x61,0x6c,0x69,0x64]);})[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x11655b=>(_0x932b17(),_0x11655b),()=>{const _0x170457=_0x45a0ca();return null==_0x170457?(_0x932b17(),_0xea3df6([0x56,0x61,0x6c,0x69,0x64])):_0xea3df6(_0x3a2e81-_0x170457>(0x11928db0^_0x3e6760)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x21baaa)[_0xea3df6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21baaa(_0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a609a=0x35a8e730^_0x3e6760;function _0x932b17(){const _0x24a4dd=_0xea3df6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fc0cf(_0x37ca07(_0x5d76de)),_0x256e09=_0x3ab15c(_0x4fc0cf(window[_0xea3df6([0x4d,0x61,0x74,0x68])][_0xea3df6([0x63,0x65,0x69,0x6c])](_0x3a2e81/_0x2a609a)));window[_0xea3df6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xea3df6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24a4dd,_0x256e09);}function _0x45a0ca(){const _0x1979bf=_0xea3df6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fc0cf(_0x37ca07(_0x5d76de)),_0x4f10ce=window[_0xea3df6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xea3df6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1979bf);return _0x4f10ce?window[_0xea3df6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ab15c(_0x4f10ce),0x10)*_0x2a609a:null;}function _0x3eec41(_0x4b494a){return new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a094a,_0x5f00f3)=>{_0x4b494a[_0xea3df6([0x74,0x68,0x65,0x6e])](_0x5a094a,_0x5f00f3),window[_0xea3df6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f00f3,0x359fdd70^_0x3e6760);});}}_0x2e3aa3[_0xea3df6([0x6f,0x6e])](_0xea3df6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17e85e,_0xba60c9)=>{if(_0xba60c9[0x0]!=_0x5d76de)return _0x21baaa(_0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xba60c9[0x1]={..._0xba60c9[0x1],[_0xea3df6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4af80b};},{[_0xea3df6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xea3df6([0x68,0x69,0x67,0x68])}),_0x2e3aa3[_0xea3df6([0x6f,0x6e])](_0xea3df6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3de73c=>{_0x31cf88(_0x3de73c[_0xea3df6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3003be=!0x0,_0x2e05a8(_0x3de73c[_0xea3df6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xea3df6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xea3df6([0x6c,0x6f,0x77])}),_0x4fbb30[_0xea3df6([0x74,0x68,0x65,0x6e])](()=>{_0x3003be||_0x21baaa(_0xea3df6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dabc4(){return _0x2e3aa3[_0xea3df6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xea3df6([0x76,0x69,0x65,0x77])][_0xea3df6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xea3df6([0x61,0x75,0x74,0x6f]);}function _0x536d1e(){_0x2e3aa3[_0xea3df6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xea3df6([0x76,0x69,0x65,0x77])][_0xea3df6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xea3df6([0x61,0x75,0x74,0x6f]);}}function _0x1e26e8(_0x29a12e){const _0x56a5d2=[new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x328b25=>setTimeout(_0x328b25,0x3597377c^_0x3e6760)),_0x4fbb30[_0xea3df6([0x74,0x68,0x65,0x6e])](()=>new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32e0fd=>{const _0xe22a97=0x359e09b7^_0x3e6760,_0x527a93=_0x582791[_0xea3df6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4a9095(){_0x527a93[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xe22a97&&_0x32e0fd();}_0x4a9095(),_0x527a93[_0xea3df6([0x6f,0x6e])](_0xea3df6([0x61,0x64,0x64]),_0x4a9095);})),new window[(_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x461507=>{function _0x3904f2(){for(const _0x1f1be8 in window)if(window[_0xea3df6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xea3df6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1f1be8))&&window[_0x1f1be8]==_0x1fef9f)return _0x461507();_0x2e3aa3[_0xea3df6([0x73,0x74,0x61,0x74,0x65])]!=_0xea3df6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xea3df6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3904f2,0x359e1a38^_0x3e6760);}_0x14f0de(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3904f2();})];return window[_0xea3df6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xea3df6([0x72,0x61,0x63,0x65])](_0x56a5d2)[_0xea3df6([0x74,0x68,0x65,0x6e])](()=>_0x29a12e);}async function _0x2d51e7(){if(await _0x4fbb30,_0x14f0de(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4817b2=_0x582791[_0xea3df6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x514bda=_0x582791[_0xea3df6([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])](_0x4817b2[_0xea3df6([0x69,0x64])]),_0xa9085c=_0x2f3421(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xa9085c[_0xea3df6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4817b2['id'],_0x514bda?_0x514bda['id']:null,!0x0),_0xa9085c[_0xea3df6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xea3df6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa9085c[_0xea3df6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa9085c[_0xea3df6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x535f5d,void(_0xa9085c[_0xea3df6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x535f5d);}if(_0x14f0de(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2dca4e=_0x2f3421(_0xea3df6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2dca4e[_0xea3df6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xea3df6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2dca4e[_0xea3df6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2dca4e[_0xea3df6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x535f5d,_0x2dca4e[_0xea3df6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x535f5d;}_0x2e3aa3[_0xea3df6([0x6d,0x6f,0x64,0x65,0x6c])][_0xea3df6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x535f5d,_0x2e3aa3[_0xea3df6([0x6d,0x6f,0x64,0x65,0x6c])][_0xea3df6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x535f5d,_0x2e3aa3[_0xea3df6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xea3df6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fc186(){return _0x14f0de(_0xea3df6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2f3421(_0xea3df6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xea3df6([0x73,0x74,0x61,0x74,0x65])]==_0xea3df6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1413e5(){return _0x14f0de(_0xea3df6([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 _0x5484ed(){return _0x14f0de(_0xea3df6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x42cdf4(_0x121832){const _0x38d136=_0x1864e5();_0x2e3aa3[_0x38d136]=_0xea3df6([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])+_0x121832,_0x121832[_0xea3df6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xea3df6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1864e5()]=_0x1fef9f),_0x121832!=_0xea3df6([0x56,0x61,0x6c,0x69,0x64])&&_0x2d51e7();}function _0x1864e5(){const _0x3f6d1c=window[_0xea3df6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xea3df6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xea3df6([0x6e,0x6f,0x77])]())[_0xea3df6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xea3df6([0x2e]),'');let _0x582867=_0xea3df6([0x76]);for(let _0x360fe1=0x0;_0x360fe1<_0x3f6d1c[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x360fe1+=0x2){let _0x428166=window[_0xea3df6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f6d1c[_0xea3df6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x360fe1,_0x360fe1+0x2));_0x428166>=_0x5a4411[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x428166-=_0x5a4411[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x582867+=_0x5a4411[_0x428166];}return _0x582867;}function _0xe6209(){const _0x50e0ea=_0x1cbf00[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])](_0xea3df6([0x2e]));if(0x3!=_0x50e0ea[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1fe9bd(_0x50e0ea[0x1]);function _0x1fe9bd(_0x20f4f0){const _0x20154d=_0x2fa01a(_0x20f4f0);return _0x20154d&&_0x2c3256()?_0x20154d:null;function _0x2c3256(){const _0x26838d=_0x20154d[_0xea3df6([0x6a,0x74,0x69])],_0x40d534=window[_0xea3df6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26838d[_0xea3df6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26838d[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e8e3c={..._0x20154d,[_0xea3df6([0x6a,0x74,0x69])]:_0x26838d[_0xea3df6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26838d[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e8e3c[_0xea3df6([0x76,0x63])],_0x37ca07(_0x2e8e3c)==_0x40d534;}}}async function _0x19c5df(){let _0x5745b4=!0x0;try{const _0x3d7e79=_0x1cbf00[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])](_0xea3df6([0x2e])),[_0x24c015,_0x672307,_0x3630b1]=_0x3d7e79;return _0x38e8a9(_0x24c015),await _0x5e52dc(_0x24c015,_0x672307,_0x3630b1),_0x5745b4;}catch{return!0x1;}function _0x38e8a9(_0x5c88a2){const _0x283fd3=_0x2fa01a(_0x5c88a2);_0x283fd3&&_0x283fd3[_0xea3df6([0x61,0x6c,0x67])]==_0xea3df6([0x45,0x53,0x32,0x35,0x36])||(_0x5745b4=!0x1);}async function _0x5e52dc(_0x15c9bc,_0x404e99,_0x10c1af){const _0x486f30=window[_0xea3df6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xea3df6([0x66,0x72,0x6f,0x6d])](_0x7f54d2(_0x10c1af),_0x51053c=>_0x51053c[_0xea3df6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4cd5d8=new window[(_0xea3df6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xea3df6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15c9bc+_0xea3df6([0x2e])+_0x404e99),_0x4b9b49=window[_0xea3df6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xea3df6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b9b49)return;const _0x451448=await _0x4b9b49[_0xea3df6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xea3df6([0x6a,0x77,0x6b]),_0x5bb0e0,{[_0xea3df6([0x6e,0x61,0x6d,0x65])]:_0xea3df6([0x45,0x43,0x44,0x53,0x41]),[_0xea3df6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xea3df6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xea3df6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b9b49[_0xea3df6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xea3df6([0x6e,0x61,0x6d,0x65])]:_0xea3df6([0x45,0x43,0x44,0x53,0x41]),[_0xea3df6([0x68,0x61,0x73,0x68])]:{[_0xea3df6([0x6e,0x61,0x6d,0x65])]:_0xea3df6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x451448,_0x486f30,_0x4cd5d8)||(_0x5745b4=!0x1);}}function _0x2fa01a(_0x215b4a){return _0x215b4a[_0xea3df6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xea3df6([0x65,0x79]))?JSON[_0xea3df6([0x70,0x61,0x72,0x73,0x65])](_0x7f54d2(_0x215b4a)):null;}function _0x7f54d2(_0x420f8b){return window[_0xea3df6([0x61,0x74,0x6f,0x62])](_0x420f8b[_0xea3df6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xea3df6([0x2b]))[_0xea3df6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xea3df6([0x2f])));}function _0x37ca07(_0x1970c4){let _0x302719=0x1505;function _0x3f79cc(_0x23702c){for(let _0x8a8409=0x0;_0x8a8409<_0x23702c[_0xea3df6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8a8409++){const _0x19be29=_0x23702c[_0xea3df6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8a8409);_0x302719=(_0x302719<<0x5)+_0x302719+_0x19be29,_0x302719&=_0x302719;}}function _0x2cbb6c(_0x1077ed){Array[_0xea3df6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1077ed)?_0x1077ed[_0xea3df6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cbb6c):_0x1077ed&&typeof _0x1077ed==_0xea3df6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xea3df6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1077ed)[_0xea3df6([0x73,0x6f,0x72,0x74])]()[_0xea3df6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56f1af,_0x1614c7])=>{_0x3f79cc(_0x56f1af),_0x2cbb6c(_0x1614c7);}):_0x3f79cc(window[_0xea3df6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1077ed));}return _0x2cbb6c(_0x1970c4),_0x302719>>>0x0;}function _0x4fc0cf(_0x4614fb){return _0x4614fb[_0xea3df6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xea3df6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xea3df6([0x30]));}function _0x3ab15c(_0x3485c5){return _0x3485c5[_0xea3df6([0x73,0x70,0x6c,0x69,0x74])]('')[_0xea3df6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xea3df6([0x6a,0x6f,0x69,0x6e])]('');}function _0x14f0de(_0x2160d6){return _0x2e3aa3[_0xea3df6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xea3df6([0x68,0x61,0x73])](_0x2160d6);}function _0x2f3421(_0x2e6ca7){return _0x2e3aa3[_0xea3df6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xea3df6([0x67,0x65,0x74])](_0x2e6ca7);}function _0x535f5d(){}function _0xea3df6(_0x3c90d6){return _0x3c90d6['map'](_0x5ee13f=>String['fromCharCode'](_0x5ee13f))['join']('');}_0x42cdf4(await _0x43b051());}(this);}['createRevision'](_0x115710){const _0x4fc151=this['editor']['plugins']['get']('Users');return new I({'id':_0x115710['id'],'name':_0x115710['name'],'creator':_0x115710['creatorId']?_0x4fc151['getUser'](_0x115710['creatorId']):null,'diffData':_0x115710['diffData']||_0x115710['data'],'authors':_0x115710['authorsIds']['map'](_0xf7234b=>_0x4fc151['getUser'](_0xf7234b)),'createdAt':new Date(_0x115710['createdAt']),'attributes':_0x115710['attributes'],'fromVersion':_0x115710['fromVersion'],'toVersion':_0x115710['toVersion']});}['addRevision'](_0x13e1b9,_0x1a2d71=0x0){this['_revisions']['add'](_0x13e1b9,_0x1a2d71);}['getRevision'](_0x5afe9a){return this['_revisions']['get'](_0x5afe9a);}['getRevisions'](_0x281b9e={'toJSON':!0x1}){const _0x4a4246=Array['from'](this['_revisions']);return _0x4a4246['reverse'](),_0x281b9e['toJSON']?_0x4a4246['map'](_0x23203a=>_0x23203a['toJSON']()):_0x4a4246;}['getIndex'](_0x2a5d39){return this['_revisions']['getIndex'](_0x2a5d39);}['getEarlierVisibleRevision'](_0x40c2bb){const [,_0x36c1b4]=this['getRevisionsIterator'](_0x40c2bb,{'direction':'earlier'});return _0x36c1b4;}['getLaterVisibleRevision'](_0xf95515){const [,_0x1ff812]=this['getRevisionsIterator'](_0xf95515,{'direction':'later'});return _0x1ff812;}['getRevisionsInDiff'](_0x12600e){const _0x252204=[];for(const _0x5bc02a of this['getRevisionsIterator'](_0x12600e['newRevisionId']))if(_0x252204['push'](_0x5bc02a),_0x5bc02a['id']===_0x12600e['oldRevisionId'])break;return _0x252204;}*['getRevisionsIterator'](_0x3f479a,{direction:_0x21dba5='earlier',filter:_0x2ea5ec=()=>!0x0}={}){const _0x4abe8d='earlier'===_0x21dba5?0x1:-0x1;let _0x2d898f=this['_revisions']['get'](_0x3f479a),_0x1dc5f7=this['getIndex'](_0x2d898f);for(yield _0x2d898f;_0x2d898f;){if(_0x1dc5f7+=_0x4abe8d,_0x2d898f=this['getRevision'](_0x1dc5f7),!_0x2d898f)return;_0x2ea5ec(_0x2d898f)&&(yield _0x2d898f);}}}class $ extends _0x57da8b{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x532c98,'c'],[_0x24ca0b,'a'],[_0x29a322,'e'],[_0x39804b,'r'],[_0x3d1e14,'u']]);['_typeCharToViewClass']=new Map([['c',_0x532c98],['a',_0x24ca0b],['e',_0x29a322],['r',_0x39804b],['u',_0x3d1e14]]);async['loadRevisionData'](_0x4642b1,_0x58ce02){if(_0x4642b1['diffData']||!_0x58ce02)return;const _0x357bc8=this['editor']['config']['get']('collaboration.channelId'),_0x521f35=await _0x58ce02['getRevision']({'channelId':_0x357bc8,'revisionId':_0x4642b1['id']});_0x4642b1['diffData']=_0x521f35['diffData'];}['getRevisionDocumentData'](_0x433666){const _0x16c7e8={};for(const _0x5744a6 in _0x433666['diffData']){if(_0x433666['diffData'][_0x5744a6]['attachChange']&&!_0x433666['diffData'][_0x5744a6]['attachChange']['isAttached'])continue;const _0x50a614=this['_removeRevisionMarkers'](JSON['parse'](_0x433666['diffData'][_0x5744a6]['insertions'])),_0x157584=this['editor']['editing']['view']['document'],_0x1c1b5e=new _0x2a694e(_0x157584,_0x50a614['map'](_0xe52c20=>this['_getViewFromDiffObj'](_0xe52c20,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x16c7e8[_0x5744a6]=this['editor']['data']['processor']['toData'](_0x1c1b5e),this['editor']['data']['processor']['useFillerType']('default');}return _0x16c7e8;}['getRevisionRootsAttributes'](_0x38a309){const _0x507384={};for(const _0xb66de7 in _0x38a309['diffData'])_0x38a309['diffData'][_0xb66de7]['attachChange']&&!_0x38a309['diffData'][_0xb66de7]['attachChange']['isAttached']||(_0x507384[_0xb66de7]=_0x38a309['diffData'][_0xb66de7]['attributesAfter']||{});return _0x507384;}['_getTypeCharForViewElement'](_0x580b91){return this['_viewClassToTypeChar']['get'](_0x580b91['constructor']);}['_getViewFromDiffObj'](_0x44aa8d,_0x3979b1){const _0x533b15=this['editor']['editing']['view']['document'];if('string'==typeof _0x44aa8d)return new _0x1f6d7b(_0x533b15,_0x44aa8d);{let _0x59c817,_0x4ff975;_0x4ff975='u'==_0x44aa8d['type']||'r'==_0x44aa8d['type']?[]:_0x44aa8d['children']['map'](_0x4aeaf2=>this['_getViewFromDiffObj'](_0x4aeaf2,_0x3979b1));const _0x421606=this['_typeCharToViewClass']['get'](_0x44aa8d['type'])||_0x1535e1,_0x13497e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x59c817=new _0x421606(_0x533b15,_0x44aa8d['name'],_0x44aa8d['attributes'],_0x4ff975),'u'==_0x44aa8d['type']&&_0x44aa8d['children'][0x0]){const _0x21eb1a=_0x44aa8d['children'][0x0];if(_0x59c817['render']=function(_0x368f57){const _0x446064=_0x368f57['createElement']('div');return _0x446064['innerHTML']=_0x21eb1a,_0x446064['childNodes'][0x0];},_0x3979b1){const _0x1e6ef2=new _0x2a694e(_0x533b15);_0x1e6ef2['_appendChild'](_0x59c817);const _0x4d8e35=Array['from'](_0x13497e['viewChildrenToDom'](_0x1e6ef2,{'bind':!0x1})),_0x24d62a=_0x13497e['domDocument']['createElement']('div');_0x24d62a['append'](..._0x4d8e35),_0x59c817=Array['from'](_0x13497e['domChildrenToView'](_0x24d62a))[0x0];}}else{if('r'==_0x44aa8d['type']&&_0x44aa8d['children'][0x0]){const _0x2910d8=_0x44aa8d['children'][0x0];if(_0x59c817['render']=function(_0x3ef5bf){_0x3ef5bf['innerHTML']=_0x2910d8;},_0x3979b1){const _0x308f16=new _0x2a694e(_0x533b15);_0x308f16['_appendChild'](_0x59c817);const _0x240053=Array['from'](_0x13497e['viewChildrenToDom'](_0x308f16,{'bind':!0x1})),_0xe27e87=_0x13497e['domDocument']['createElement']('div');_0xe27e87['append'](..._0x240053);const _0x2d8859=Array['from'](_0x13497e['domChildrenToView'](_0xe27e87));_0x2d8859['length']>0x1?_0x59c817['_appendChild'](_0x2d8859):_0x59c817=_0x2d8859[0x0];}}}if(_0x44aa8d['customProperties']){for(const [_0x21c403,_0x1b062a]of _0x44aa8d['customProperties'])_0x59c817['_setCustomProperty'](_0x21c403,_0x1b062a);}const _0x3567ae=void 0x0===_0x44aa8d['fillerOffset']?null:_0x44aa8d['fillerOffset'];return null!==_0x3567ae&&(_0x59c817['getFillerOffset']=()=>_0x3567ae),_0x59c817;}}['_makeModelFromViewString'](_0xf40257){const _0x2a7b62=JSON['parse'](_0xf40257),_0xbf04d6=this['editor']['editing']['view']['document'],_0x23ad96=new _0x2a694e(_0xbf04d6,_0x2a7b62['map'](_0x2a0ae1=>this['_getViewFromDiffObj'](_0x2a0ae1,!0x0)));return this['editor']['data']['toModel'](_0x23ad96);}['_removeRevisionMarkers'](_0xb4ec78){return(_0xb4ec78=_0xb4ec78['filter'](_0x5ece7d=>!_0x5ece7d['name']||'revision-start'!==_0x5ece7d['name']&&'revision-end'!==_0x5ece7d['name']))['forEach'](_0x2a0865=>{'string'!=typeof _0x2a0865&&(_0x2a0865['children']=this['_removeRevisionMarkers'](_0x2a0865['children']),_0x2a0865['attributes']=_0x2a0865['attributes']['filter'](_0xe02869=>!_0xe02869[0x0]['startsWith']('data-revision-')));}),_0xb4ec78;}}function m(_0x42734f,_0x4e3ae0,_0x15deb9){const t=_0x42734f['t'];switch(_0x4e3ae0){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'},_0x15deb9);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x15deb9);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 _0x57da8b{['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[_0x33ad79,S,$,_0x32db9];}constructor(_0x158b42){super(_0x158b42),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 _0x5d6ec1=_0x4c4fba();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5d6ec1},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 _0x2fb147=this['repository']['getRevision'](0x0),_0x40d3a9=_0x2fb147&&null===_0x2fb147['creator']?_0x2fb147:null;if(this['_continueCurrentRevision']=!!_0x40d3a9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1264c2=this['_source']['getCurrentRevisionId'](),_0x47603b=this['repository']['getRevision'](_0x1264c2);if(_0x47603b)this['_startingVersion']=_0x47603b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x12d6e5=this['_source']['history']['_operations']['find'](_0x312d63=>!_0x312d63['_isInit']),_0x596b10=_0x12d6e5?_0x12d6e5['baseVersion']:this['_source']['history']['version'];_0x2fb147?(_0x2fb147['toVersion']<_0x596b10&&_0x2fb147['_update']({'toVersion':_0x596b10}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x40d3a9['id'],this['_startingVersion']=_0x40d3a9['fromVersion']):(this['_startingVersion']=_0x2fb147['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x596b10,this['_continueCurrentRevision']=!0x1);}}else _0x40d3a9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x40d3a9['toVersion'],this['editor']['model']['document']['history']['version']),_0x40d3a9['fromVersion']===_0x40d3a9['toVersion']?(0x0!==_0x40d3a9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x40d3a9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x40d3a9['id'],this['_startingVersion']=_0x40d3a9['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',_0x32054b=>!_0x32054b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x35ecc2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x138ca0;for(const _0x3f2220 in _0x35ecc2){const _0x4c075a=_0x3f2220,_0x45d3dd=_0x35ecc2[_0x4c075a];if('revisionHistoryLicenseKeyValid'==_0x45d3dd||'revisionHistoryLicenseKeyInvalid'==_0x45d3dd||'revisionHistoryLicenseKeyExpired'==_0x45d3dd||'revisionHistoryLicenseKeyDomainLimit'==_0x45d3dd||'revisionHistoryLicenseKeyNotAllowed'==_0x45d3dd||'revisionHistoryLicenseKeyEvaluationLimit'==_0x45d3dd||'revisionHistoryLicenseKeyTrialLimit'==_0x45d3dd||'revisionHistoryLicenseKeyUsageLimit'==_0x45d3dd){delete _0x35ecc2[_0x4c075a],_0x138ca0=_0x45d3dd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x138ca0&&_0x35ecc2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x138ca0&&_0x35ecc2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x138ca0&&_0x35ecc2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x138ca0&&_0x35ecc2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x138ca0&&_0x35ecc2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x138ca0&&_0x35ecc2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x138ca0&&_0x35ecc2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2afd83=this['repository']['getRevision'](0x0),_0x51a9a6=await this['getRevisionDocumentData'](_0x2afd83),_0x2d5a8c=await this['getRevisionRootsAttributes'](_0x2afd83);this['_replaceEditorDataWithRevisionData'](_0x51a9a6,_0x2d5a8c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x305482){this['_source']=_0x305482;}async['update'](){const _0x58c140=await this['_source']['getLatestVersion']();if(_0x58c140>this['currentRevision']['toVersion']){await this['_loadState']();const _0x834a8d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x58c140});_0x834a8d['authors']=_0x834a8d['authorsIds']['map'](_0x2a484d=>this['editor']['plugins']['get']('Users')['getUser'](_0x2a484d)),this['currentRevision']['_update'](_0x834a8d);}}async['saveRevision'](_0x34b486={},_0x5e36a4=null){const _0x3c3e0a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5e36a4>this['currentRevision']['toVersion']&&(_0x5e36a4=null),null===_0x5e36a4&&(_0x5e36a4=await this['_source']['getLatestVersion']());const _0x35b5b5=this['_getFromVersion'](_0x5e36a4),_0x29186a=this['buildRevisionData']({'from':_0x35b5b5,'to':_0x5e36a4});if(this['currentRevision']['toVersion']<_0x5e36a4){const _0x422712=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5e36a4,'to':_0x5e36a4});_0x422712['authors']=[],_0x422712['authorsIds']=[],_0x422712['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x422712,!0x0),delete _0x422712['authors'],_0x3c3e0a['push'](_0x422712);}_0x34b486['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x34b486['name']=_0x34b486['name']||null,_0x34b486['id']=_0x34b486['id']||_0x4c4fba(),_0x34b486={..._0x34b486,..._0x29186a};const _0x318924=this['addRevisionData'](_0x34b486);_0x3c3e0a['push'](_0x34b486);const _0x595e91=this['repository']['getIndex'](_0x318924);if(0x0!==_0x595e91){const _0x21ccd6=this['repository']['getRevision'](_0x595e91-0x1);if(_0x21ccd6['fromVersion']!==_0x5e36a4){const _0x29d6c9=this['_revisionDataBuilder']['getData'](_0x5e36a4,_0x21ccd6['toVersion']),_0x51971d={'id':_0x21ccd6['id'],'diffData':_0x29d6c9['diffData'],'authorsIds':_0x29d6c9['authorsIds'],'authors':_0x29d6c9['authorsIds']['map'](_0x8c3c8b=>this['editor']['plugins']['get']('Users')['getUser'](_0x8c3c8b)),'fromVersion':_0x5e36a4};_0x21ccd6===this['currentRevision']&&(_0x51971d['createdAt']=new Date(_0x34b486['createdAt']['getTime']()+0xa)),_0x21ccd6['_update'](_0x51971d,!0x0),delete _0x51971d['authors'],_0x3c3e0a['push'](_0x51971d);}}if(this['adapter']){for(const _0x26d97b of _0x3c3e0a)this['_bufferUpdate'](_0x26d97b['id'],_0x26d97b,!0x0);this['sendBufferedUpdates']();}return _0x318924;}['addRevisionData'](_0x5a3010){const _0x5d6629=this['repository']['createRevision'](_0x5a3010);return this['adapter']&&_0x5d6629['on']('_update',(_0x3d614f,_0x547410,_0x4d5b3b)=>{_0x4d5b3b||(this['_bufferUpdate'](_0x547410['id'],_0x547410,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5d6629,this['_findInsertionIndex'](_0x5d6629)),_0x5d6629;}async['getRevisionDocumentData'](_0x3394e5){return await this['_utils']['loadRevisionData'](_0x3394e5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3394e5);}async['getRevisionRootsAttributes'](_0xd1e963){return await this['_utils']['loadRevisionData'](_0xd1e963,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xd1e963);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x7e6060=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2286dd=0x0;_0x2286dd<_0x7e6060['length'];_0x2286dd++){const _0x2bdfca=_0x7e6060[_0x2286dd];let _0x190158=!0x1;for(const _0x35ba68 of Object['keys'](_0x2bdfca))void 0x0===_0x2bdfca[_0x35ba68]?delete _0x2bdfca[_0x35ba68]:'id'!==_0x35ba68&&(_0x190158=!0x0);_0x190158||(_0x7e6060[_0x2286dd]=null);}if(_0x7e6060=_0x7e6060['filter'](_0x3d6a0a=>null!==_0x3d6a0a),!_0x7e6060['length'])return;for(let _0x407c93=0x0;_0x407c93<_0x7e6060['length'];_0x407c93++){const _0xd8d799=_0x7e6060[_0x407c93];void 0x0!==_0xd8d799['fromVersion']&&void 0x0===_0xd8d799['toVersion']&&(_0xd8d799['toVersion']=this['repository']['getRevision'](_0xd8d799['id'])['toVersion']),void 0x0!==_0xd8d799['toVersion']&&void 0x0===_0xd8d799['fromVersion']&&(_0xd8d799['fromVersion']=this['repository']['getRevision'](_0xd8d799['id'])['fromVersion']);}const _0x315a69=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x7e6060,_0x315a69)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2abd9c=>{if(_0x2abd9c){for(const _0xc52001 of _0x2abd9c)this['setRevisionData']({'id':_0xc52001['id'],'createdAt':_0xc52001['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x55925b=null,from:_0x17c2f5=null,to:_0xbaff9=null}){_0x17c2f5=null!==_0x17c2f5?_0x17c2f5:_0x55925b['fromVersion'],_0xbaff9=null!==_0xbaff9?_0xbaff9:_0x55925b['toVersion'];const _0xf307bf=this['_revisionDataBuilder']['getData'](_0x17c2f5,_0xbaff9),_0xcc0478={'diffData':_0xf307bf['diffData'],'authorsIds':_0xf307bf['authorsIds'],'fromVersion':_0x17c2f5,'toVersion':_0xbaff9};if(!_0x55925b||_0xbaff9!==_0x55925b['toVersion']){const _0x196d74=_0xbaff9-0x1,_0xe5f18b=this['_source']['history']['getOperation'](_0x196d74);_0xcc0478['createdAt']=_0xe5f18b&&_0xe5f18b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x17c2f5===this['_loadedStateData']['fromVersion']){for(const _0x5b60e8 of this['_loadedStateData']['authors'])_0xcc0478['authorsIds']['includes'](_0x5b60e8['id'])||_0xcc0478['authorsIds']['push'](_0x5b60e8['id']);}return _0xcc0478;}['_bufferUpdate'](_0x268677,_0x168490,_0x1668d8){if(this['_bufferedUpdates']['has'](_0x268677)){const _0x42f7ec=this['_bufferedUpdates']['get'](_0x268677);_0x168490=_0x1668d8?{..._0x42f7ec,..._0x168490}:{..._0x168490,..._0x42f7ec};}this['_bufferedUpdates']['set'](_0x268677,_0x168490);}['setRevisionData'](_0x85cd5f){const _0x38e763=this['repository']['getRevision'](_0x85cd5f['id']);if(_0x85cd5f['createdAt']&&(_0x85cd5f['createdAt']=new Date(_0x85cd5f['createdAt'])),_0x85cd5f['authorsIds']){const _0x3c99e3=this['editor']['plugins']['get']('Users');_0x85cd5f['authors']=_0x85cd5f['authorsIds']['map'](_0x2b6826=>_0x3c99e3['getUser'](_0x2b6826));}_0x38e763['_update'](_0x85cd5f,!0x0);}['_createInitialRevision'](_0x49c771){const _0xe473a1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xe473a1)this['_initialRevisionId']=_0xe473a1['id'];else{const _0x46eb83=!this['editor']['model']['document']['roots']['find'](_0x348ab1=>this['editor']['model']['hasContent'](_0x348ab1)),_0x337125=this['editor']['plugins']['get']('Users')['me']['id'],_0x453986=m(this['editor']['locale'],_0x46eb83?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x49c771,'to':_0x49c771,'id':this['_initialRevisionId'],'name':_0x453986,'creatorId':_0x337125});}}['_createCurrentRevision'](_0x2949a6){const _0x215db4=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x215db4),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2949a6,'to':_0x2949a6,'id':_0x215db4,'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'](_0x147412,_0x3d6538){let _0x16532e=this['editor']['config']['get']('initialData'),_0x82b3cc=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x16532e){_0x16532e={};for(const _0x41f49e of this['editor']['model']['document']['getRootNames']())_0x16532e[_0x41f49e]='';}if('string'==typeof _0x16532e&&(_0x16532e={'main':_0x16532e}),void 0x0===_0x82b3cc){_0x82b3cc={};for(const _0x2f5622 of this['editor']['model']['document']['getRootNames']())_0x82b3cc[_0x2f5622]={};}let _0x165207=!0x1;const _0x1e4cd7=Object['keys'](_0x16532e),_0x405cbf=Object['keys'](_0x147412);for(const _0x34e90f of _0x1e4cd7){if(_0x16532e[_0x34e90f]!==_0x147412[_0x34e90f]&&''!==_0x16532e[_0x34e90f]['trim']()){_0x165207=!0x0;break;}if(!_0x41e6ee(_0x82b3cc[_0x34e90f],_0x3d6538[_0x34e90f])&&Object['keys'](_0x82b3cc[_0x34e90f])['length']>0x0){_0x165207=!0x0;break;}}_0x165207||(_0x165207=_0x405cbf['some'](_0x1113c7=>!this['editor']['model']['document']['getRoot'](_0x1113c7))),_0x165207&&_0x38fcfe('editor-initial-data-replaced-with-revision-data',{'editorData':_0x16532e,'editorRootsAttributes':_0x82b3cc,'revisionData':_0x147412,'revisionRootsAttributes':_0x3d6538}),this['editor']['config']['set']('initialData',_0x147412),this['editor']['config']['set']('rootsAttributes',_0x3d6538);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x17f971=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x17f971['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3fe668){const _0x34d1aa=this['repository']['getRevisions']();_0x34d1aa['reverse']();let _0x53bb9f=0x0;for(;_0x53bb9f<_0x34d1aa['length'];){const _0x4cdf4d=_0x34d1aa[_0x53bb9f];if(_0x4cdf4d===this['currentRevision']){_0x53bb9f++;continue;}if(_0x4cdf4d['id']===this['_initialRevisionId'])break;const _0x2bbce3=_0x3fe668['toVersion']-_0x4cdf4d['toVersion']||_0x3fe668['fromVersion']-_0x4cdf4d['fromVersion'];if(_0x2bbce3>0x0)break;if(_0x2bbce3<0x0)_0x53bb9f++;else{if(!_0x3fe668['creator']&&_0x4cdf4d['creator'])break;if(_0x4cdf4d['creator']||!_0x3fe668['creator']){if(_0x3fe668['createdAt']>_0x4cdf4d['createdAt'])break;_0x53bb9f++;}else _0x53bb9f++;}}return _0x53bb9f;}['_getFromVersion'](_0x161d33){const _0x3729a1=this['repository']['getRevisions']();_0x3729a1['reverse'](),_0x3729a1['shift']();const _0xfe1c41=_0x3729a1['find'](_0x562461=>_0x562461['toVersion']<=_0x161d33)['toVersion'];return _0xfe1c41<this['_startingVersion']?this['_startingVersion']:_0xfe1c41;}['_makeRevision']({name:_0x4d5b4f,from:_0x5a2c13,to:_0xfb4cae,creatorId:_0x751fe0,id:_0x52248c}){const _0x15f0d4=this['buildRevisionData']({'from':_0x5a2c13,'to':_0xfb4cae});_0x15f0d4['name']=_0x4d5b4f,_0x15f0d4['creatorId']=_0x751fe0,_0x15f0d4['id']=_0x52248c;const _0x2a8c35=this['addRevisionData'](_0x15f0d4);return this['adapter']&&this['_bufferUpdate'](_0x15f0d4['id'],_0x15f0d4,!0x0),_0x2a8c35;}['_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(_0x5c2f39){this['editor']=_0x5c2f39,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'](_0x208b18){this['source']=_0x208b18;const _0x2898bf=new Map(),_0xa137f4=new Map(),_0x3b6587=this['editor']['model']['document']['roots']['map'](_0x4ef0f2=>_0x4ef0f2['rootName']);for(const _0x319c6d of _0x3b6587){const _0x5353c2=this['editor']['model']['document']['getRoot'](_0x319c6d),_0x3cd920=x(_0x5353c2);_0x2898bf['set'](_0x319c6d,_0x3cd920),_0xa137f4['set'](_0x319c6d,Object['fromEntries'](_0x5353c2['getAttributes']()));}const _0x567332=Array['from'](this['editor']['model']['markers'])['map'](_0x4e07a7=>[_0x4e07a7['name'],_0x4e07a7['getRange']()]),_0x1c9146=this['source']['version'];this['_saveMetaData'](_0x1c9146,_0x2898bf,_0x567332,_0xa137f4),this['_startingRevisionId']=this['_revisionId'];const _0x65d0e8=new Map(),_0x5e0ac7=new Map();for(const _0x37dce6 of _0x3b6587){const _0x1e7b81=N(_0x37dce6);_0x65d0e8['set'](_0x37dce6,_0x1e7b81),_0x5e0ac7['set'](_0x37dce6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x65d0e8,[],_0x5e0ac7);}['getData'](_0x39d6c5,_0x2b9e1a){if(this['_lastFrom']===_0x39d6c5&&this['_lastTo']<=_0x2b9e1a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2b9e1a,!0x0);else{if(!this['_savedMetaData']['has'](_0x39d6c5)){const _0x3822c8=this['_getPreviousFrom'](_0x39d6c5);this['_calculateMetaData'](_0x3822c8,_0x39d6c5,!0x1);}this['_calculateMetaData'](_0x39d6c5,_0x2b9e1a,!0x0);}return this['_lastFrom']=_0x39d6c5,this['_lastTo']=_0x2b9e1a,this['_getState']();}['loadState'](_0x51401d){if(!this['_savedMetaData']['has'](_0x51401d['fromVersion'])){const _0x9618b4=this['_getPreviousFrom'](_0x51401d['fromVersion']);this['_calculateMetaData'](_0x9618b4,_0x51401d['fromVersion'],!0x1);}this['_calculateMetaData'](_0x51401d['fromVersion'],_0x51401d['toVersion'],!0x1);const _0x241b8c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x51401d['fromVersion'],this['_lastTo']=_0x51401d['toVersion'];for(const _0x5f460e in _0x51401d['diffData']){const _0x369ecd=_0x51401d['diffData'][_0x5f460e]['attachChange'],_0x362d75=_0x1e1e73(_0x51401d['diffData'][_0x5f460e]['attributesBefore'])||{},_0x51902c=_0x241b8c['_makeModelFromViewString'](_0x51401d['diffData'][_0x5f460e]['deletions']);_0x51902c['rootName']=_0x5f460e,_0x51902c['_isAttached']=!_0x369ecd||!_0x369ecd['isAttached'],_0x51902c['isAttached']=()=>_0x51902c['_isAttached'],this['_baseRoots']['set'](_0x5f460e,_0x51902c),this['_baseRootsAttributes']['set'](_0x5f460e,_0x362d75),_0x369ecd&&this['_touchedRoots']['set'](_0x5f460e,_0x369ecd);const _0x1e72d3=this['_makeIdsRoot'](_0x51902c);this['_baseIdsRoots']['set'](_0x5f460e,_0x1e72d3);for(const [_0xc1737,_0x38e5ad]of _0x51902c['markers']){if(!_0xc1737['startsWith']('revision:'))continue;const _0x141f28=_0xc1737['split'](':')[0x2];for(const _0x13d4c5 of _0x38e5ad['getWalker']({'singleCharacters':!0x0})){const _0x2befcd=this['_getVidAttributeName'](_0x13d4c5),_0x1725d9='elementEnd'==_0x13d4c5['type']?_0x13d4c5['previousPosition']['path']['slice'](0x0,-0x1):_0x13d4c5['previousPosition']['path'],_0x26ce69=_0x1e72d3['getNodeByPath'](_0x1725d9)['getAttribute'](_0x2befcd);this['_touched']['set'](_0x26ce69,{'userId':_0x141f28});}_0x51902c['markers']['delete'](_0xc1737);}}this['_startingRevisionId']=this['_revisionId'];const _0x3679fa=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x429f5e=>!this['_touched']['has'](_0x429f5e));let _0x14b8f3=0x0;const _0x435e6a=new Map();for(const _0x500f1d in _0x51401d['diffData']){const _0x785aeb=_0x51401d['diffData'][_0x500f1d]['attachChange'],_0x1425eb=_0x1e1e73(_0x51401d['diffData'][_0x500f1d]['attributesAfter'])||{},_0x4966eb=_0x241b8c['_makeModelFromViewString'](_0x51401d['diffData'][_0x500f1d]['insertions']);_0x4966eb['rootName']=_0x500f1d,_0x4966eb['_isAttached']=!_0x785aeb||_0x785aeb['isAttached'],_0x4966eb['isAttached']=()=>_0x4966eb['_isAttached'],this['_diffRoots']['set'](_0x500f1d,_0x4966eb),this['_diffRootsAttributes']['set'](_0x500f1d,_0x1425eb);const _0x30b39f=this['_makeIdsRoot'](_0x4966eb,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x500f1d,_0x30b39f),_0x435e6a['set'](_0x500f1d,_0x4966eb['isAttached']()?_0x1425eb:{});for(const [_0x1650d1,_0x3c4729]of _0x4966eb['markers']){if(!_0x1650d1['startsWith']('revision:'))continue;const _0xd85a5=_0x1650d1['split'](':')[0x2];for(const _0x37d1a0 of _0x3c4729['getWalker']({'singleCharacters':!0x0})){const _0x40bf7a=this['_getVidAttributeName'](_0x37d1a0),_0xbef73e=this['_revisionId']++,_0x33958e='elementEnd'==_0x37d1a0['type']?_0x37d1a0['previousPosition']['path']['slice'](0x0,-0x1):_0x37d1a0['previousPosition']['path'];_0x30b39f['getNodeByPath'](_0x33958e)['_setAttribute'](_0x40bf7a,_0xbef73e),this['_touched']['set'](_0xbef73e,{'userId':_0xd85a5});}_0x4966eb['markers']['delete'](_0x1650d1);}for(const _0x1bc76a of this['editor']['model']['createRangeIn'](_0x4966eb)['getWalker']({'singleCharacters':!0x0})){const _0x3c062d=this['_getVidAttributeName'](_0x1bc76a),_0x8541fc='elementEnd'==_0x1bc76a['type']?_0x1bc76a['previousPosition']['path']['slice'](0x0,-0x1):_0x1bc76a['previousPosition']['path'],_0x3187cd=_0x30b39f['getNodeByPath'](_0x8541fc);_0x3187cd['getAttribute'](_0x3c062d)>0x0||_0x3187cd['_setAttribute'](_0x3c062d,_0x3679fa[_0x14b8f3++]);}for(const [_0x36b510,_0xf5c17d]of _0x4966eb['markers'])_0x36b510['startsWith']('revision:')||this['_markers']['set'](_0x36b510,_0xf5c17d);}const {roots:_0x53c43c}=this['_savedMetaData']['get'](_0x51401d['fromVersion']),{roots:_0x2e4c77}=this['_savedMetaData']['get'](_0x51401d['toVersion']),_0x2d935a=x(_0x53c43c['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2d935a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2d935a,Number['NEGATIVE_INFINITY']));const _0x25da23=x(_0x2e4c77['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x25da23),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x25da23));const _0x1404a1=Array['from'](this['_diffRoots'])['map'](([_0x2d0929,_0x1e9b2a])=>[_0x2d0929,x(_0x1e9b2a)]);this['_saveMetaData'](this['_lastTo'],_0x1404a1,this['_markers'],_0x435e6a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x33bc4f,_0x3a570f,_0x473ca9,_0x190bd9){const _0x47ecd9=new Map(_0x3a570f),_0x26014c=new Map(_0x1e1e73(_0x190bd9)),_0x1fb8b9=new Map();for(const [_0x46c5d5,_0x1be0b7]of _0x473ca9)_0x1fb8b9['set'](_0x46c5d5,{'start':_0x1be0b7['start']['clone'](),'end':_0x1be0b7['end']['clone'](),'rootName':_0x1be0b7['root']['rootName']});this['_savedMetaData']['set'](_0x33bc4f,{'roots':_0x47ecd9,'markers':_0x1fb8b9,'rootsAttributes':_0x26014c});}['_removeMetaData'](_0x445e89){this['_savedMetaData']['delete'](_0x445e89);}['_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'](_0x313325,_0x946bbd=null){let _0x1edcf4=null;_0x313325['is']('documentFragment')||(_0x1edcf4=new _0x439a4c(_0x313325['name'],{'vid_start':null===_0x946bbd?this['_revisionId']++:_0x946bbd++}));const _0x2fbced=[];for(const _0x6a0374 of _0x313325['getChildren']())if(_0x6a0374['is']('element')){_0x2fbced['push'](this['_makeIdsRoot'](_0x6a0374,_0x946bbd));const _0x4fac25=_0x2fbced[_0x2fbced['length']-0x1];null!==_0x946bbd&&(_0x946bbd=_0x4fac25['is']('element','$text')?_0x4fac25['getAttribute']('vid')+0x1:_0x4fac25['getAttribute']('vid_end')+0x1);}else{for(let _0x50bf87=0x0;_0x50bf87<_0x6a0374['offsetSize'];_0x50bf87++)_0x2fbced['push'](new _0x439a4c('$text',{'vid':null===_0x946bbd?this['_revisionId']++:_0x946bbd++}));}if(_0x313325['is']('documentFragment')){const _0x261845=N(_0x313325['rootName']);return _0x261845['_insertChild'](0x0,_0x2fbced),_0x261845;}return _0x1edcf4['_setAttribute']('vid_end',null===_0x946bbd?this['_revisionId']++:_0x946bbd++),_0x1edcf4['_insertChild'](0x0,_0x2fbced),_0x1edcf4;}['_calculateMetaData'](_0x210012,_0x313d29,_0x1236ca){this['_reset']();const {roots:_0x1b6815,markers:_0x423573,rootsAttributes:_0x51364f}=this['_savedMetaData']['get'](_0x210012);this['_baseRoots']=new Map(_0x1b6815),this['_baseRootsAttributes']=new Map(_0x1e1e73(_0x51364f));for(const [_0x11c5ff,_0x13670b]of this['_baseRoots'])if('$graveyard'!==_0x11c5ff&&(this['_diffRoots']['set'](_0x11c5ff,x(_0x13670b)),this['_diffRootsAttributes']=new Map(_0x1e1e73(_0x51364f)),_0x1236ca)){const _0x52bbb3=this['_revisionId'];this['_idsRoots']['set'](_0x11c5ff,this['_makeIdsRoot'](_0x13670b)),this['_baseIdsRoots']['set'](_0x11c5ff,this['_makeIdsRoot'](_0x13670b,_0x52bbb3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x1236ca&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xecf749,_0x1e9d20]of _0x423573){const _0x11839f=this['_baseRoots']['get'](_0x1e9d20['rootName']),_0x5a8044=this['_diffRoots']['get'](_0x1e9d20['rootName']),_0x43a089=new _0x2cbf1e(this['_fixPosition'](_0x1e9d20['start'],_0x11839f),this['_fixPosition'](_0x1e9d20['end'],_0x11839f)),_0x12708f=this['_fixRange'](_0x43a089,_0x5a8044);_0x11839f['markers']['set'](_0xecf749,_0x43a089),this['_markers']['set'](_0xecf749,_0x12708f);}this['_applyOperations'](_0x210012,_0x313d29,_0x1236ca);}['_applyOperations'](_0x290ed3,_0x479e77,_0xa86141){for(const _0x442e85 of this['source']['getOperations'](_0x290ed3,_0x479e77))this['_handleOperation'](_0x442e85,_0xa86141);for(const _0x3444e7 of this['_diffRoots']['values']())_0x3444e7['markers']['clear']();for(const [_0x2e322d,_0x54c8be]of this['_markers']){this['_diffRoots']['get'](_0x54c8be['root']['rootName'])['markers']['set'](_0x2e322d,_0x54c8be['clone']());}const _0x186c77=new Map(),_0x30bae1=new Map();for(const [_0x1db3c9,_0x556dcf]of this['_diffRoots'])_0x186c77['set'](_0x1db3c9,x(_0x556dcf)),_0x30bae1['set'](_0x1db3c9,this['_diffRootsAttributes']['get'](_0x1db3c9));this['_saveMetaData'](_0x479e77,_0x186c77,this['_markers'],_0x30bae1);}['_getPreviousFrom'](_0x1e2ba5){const _0x448494=Array['from'](this['_savedMetaData']['keys']());_0x448494['sort']((_0x1b0b9a,_0x352470)=>_0x1b0b9a-_0x352470),_0x448494['reverse']();for(const _0x5c6b61 of _0x448494)if(_0x5c6b61<_0x1e2ba5)return _0x5c6b61;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x42793b,_0x4503ee){const _0x2d5d83=Array['from'](_0x4503ee['markers'])['map'](([_0x4c4138,_0x3d0475])=>[_0x4c4138,this['_fixRange'](_0x3d0475,_0x42793b)]);_0x42793b['markers']=new Map(_0x2d5d83);}['_transformMarkers'](_0x987eb8){for(const _0x1a3490 of this['_markers']['values']()){const _0x116e2a=_0x1a3490['getTransformedByOperation'](_0x987eb8),_0x50001b=_0x2cbf1e['_createFromRanges'](_0x116e2a);_0x1a3490['start']=_0x50001b['start'],_0x1a3490['end']=_0x50001b['end'];}}['_handleOperation'](_0x5b2268,_0x4b70a7){if('addRoot'!=_0x5b2268['type']&&'detachRoot'!=_0x5b2268['type']){if('insert'==_0x5b2268['type']){const _0x223163=_0x5b2268['position']['root']['rootName'];this['_diffRoots']['has'](_0x223163)||(this['_diffRoots']['set'](_0x223163,N(_0x223163,!0x0)),this['_diffRootsAttributes']['set'](_0x223163,{}),_0x4b70a7&&this['_idsRoots']['set'](_0x223163,N(_0x223163,!0x0)));}else{if('addRootAttribute'==_0x5b2268['type']||'removeRootAttribute'==_0x5b2268['type']||'changeRootAttribute'==_0x5b2268['type'])return void this['_handleRootAttributeOperation'](_0x5b2268);'marker'==_0x5b2268['type']&&this['_handleMarkerOperation'](_0x5b2268);}if('marker'!==_0x5b2268['type']){const _0x2b42a4=this['_cloneOperation'](_0x5b2268,this['_diffRoots']);_0x2b42a4['_execute'](),this['_transformMarkers'](_0x2b42a4);}if(_0x4b70a7)switch(_0x5b2268['type']){case'insert':this['_handleInsertOperation'](_0x5b2268);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5b2268);break;case'merge':this['_handleMergeOperation'](_0x5b2268);break;case'split':this['_handleSplitOperation'](_0x5b2268);}}else this['_handleRootOperation'](_0x5b2268,_0x4b70a7);}['_cloneOperation'](_0x136eee,_0x1f5770){const _0x2bb457=_0x136eee['clone']();return _0x2bb457['_authorId']=_0x136eee['_authorId'],this['_fixOperation'](_0x2bb457,_0x1f5770),_0x2bb457;}['_getBaseVids'](_0x3e7f00){return _0x3e7f00['map'](_0x2e3671=>{const _0x4e2e4c=this['_getVidAttributeName'](_0x2e3671);return Number(_0x2e3671['item']['getAttribute'](_0x4e2e4c));});}['_generateTape'](_0x643037,_0x1a1f15){if(_0x643037['is']('element','$text'))_0x1a1f15['push']({'item':_0x643037,'type':'text'});else{_0x643037['is']('element')&&_0x1a1f15['push']({'item':_0x643037,'type':'elementStart'});for(const _0x12041b of _0x643037['getChildren']())this['_generateTape'](_0x12041b,_0x1a1f15);_0x643037['is']('element')&&_0x1a1f15['push']({'item':_0x643037,'type':'elementEnd'});}return _0x1a1f15;}['_getState'](){const _0x7a8fd0=new Map(this['_touched']),_0x52c9e7=new Map(_0x7a8fd0),_0x2f106c=new Map(),_0x6b4a98={'insertions':{},'deletions':{}},_0xbdeb79={'insertions':{},'deletions':{}},_0x55fab1=new Map(),_0x54c081=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x54c081['delete']('$graveyard');for(const _0x4e1817 of _0x54c081){const _0x5961d8=this['_diffRoots']['get'](_0x4e1817)||N(_0x4e1817,!0x1),_0x46b375=this['_baseRoots']['get'](_0x4e1817)||N(_0x4e1817,!0x1);_0x5961d8['isAttached']()||_0x46b375['isAttached']()?(_0x6b4a98['insertions'][_0x4e1817]=x(_0x5961d8),_0x6b4a98['deletions'][_0x4e1817]=x(_0x46b375),this['_copyMarkers'](_0x6b4a98['deletions'][_0x4e1817],_0x46b375),this['_copyMarkers'](_0x6b4a98['insertions'][_0x4e1817],_0x5961d8),_0xbdeb79['insertions'][_0x4e1817]=this['_generateTape'](this['_idsRoots']['get'](_0x4e1817),[]),_0xbdeb79['deletions'][_0x4e1817]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4e1817)||N(_0x4e1817,!0x1),[])):_0x54c081['delete'](_0x4e1817);}for(const _0x5d095d of _0x54c081){const _0x39eab7=_0xbdeb79['insertions'][_0x5d095d];for(const _0x505ad5 of _0x39eab7){const _0x46d24b=this['_getVidAttributeName'](_0x505ad5),_0x1c85ae=_0x505ad5['item']['getAttribute'](_0x46d24b);_0x52c9e7['delete'](_0x1c85ae),_0x1c85ae>=this['_startingRevisionId']&&_0x2f106c['set'](_0x1c85ae,_0x7a8fd0['get'](_0x1c85ae));}}for(const _0x1804dc of _0x54c081){const _0x318f07=_0xbdeb79['insertions'][_0x1804dc],_0x4f13b7=this['_getBaseVids'](_0xbdeb79['deletions'][_0x1804dc]);let _0x171b92=0x0;for(const _0x1e6449 of _0x318f07){const _0x3f3ef5=this['_getVidAttributeName'](_0x1e6449),_0x53a476=_0x1e6449['item']['getAttribute'](_0x3f3ef5);if(!_0x2f106c['has'](_0x53a476)&&!_0x55fab1['has'](_0x53a476)){if(_0x52c9e7['has'](_0x53a476))_0x171b92++;else{if(_0x53a476!=_0x4f13b7[_0x171b92]){const _0x2cda25=_0x7a8fd0['get'](_0x53a476)||_0x7a8fd0['get'](_0x4f13b7[_0x171b92]);for(;_0x53a476!=_0x4f13b7[_0x171b92];)_0x52c9e7['has'](_0x4f13b7[_0x171b92])||(_0x55fab1['set'](_0x4f13b7[_0x171b92],_0x2cda25),_0x7a8fd0['set'](_0x4f13b7[_0x171b92],_0x2cda25)),_0x171b92++;}_0x171b92++;}}}}for(const _0x487df3 of _0x54c081){const _0x200398=_0xbdeb79['insertions'][_0x487df3];for(const _0x423927 of _0x200398){const _0x2d169f=this['_getVidAttributeName'](_0x423927),_0x2fcdf9=_0x423927['item']['getAttribute'](_0x2d169f);if(_0x55fab1['has'](_0x2fcdf9)){const _0x2b2720=_0x55fab1['get'](_0x2fcdf9);_0x52c9e7['has'](_0x2fcdf9)||_0x52c9e7['set'](_0x2fcdf9,{..._0x2b2720}),_0x2f106c['set'](_0x2fcdf9,{..._0x2b2720});}}}for(const _0x37fc5a of _0x52c9e7['keys']())_0x37fc5a>=this['_startingRevisionId']&&_0x52c9e7['delete'](_0x37fc5a);const _0x5c8fd1=new Map();for(const _0x2acdbc of _0x54c081){let _0x27a407=_0xbdeb79['insertions'][_0x2acdbc];for(const _0x23075c of _0x27a407)if(_0x23075c['item']['is']('element','tableCell')){const _0x23f431=this['_getVidAttributeName'](_0x23075c),_0x28da22=_0x23075c['item']['getAttribute'](_0x23f431);if(_0x2f106c['has'](_0x28da22)){const _0x135701=_0x23075c['item']['parent']['parent']['getAttribute']('vid_start'),_0x2df016=_0x5c8fd1['get'](_0x135701)||new Set();_0x2df016['add'](_0x2f106c['get'](_0x28da22)['userId']),_0x5c8fd1['set'](_0x135701,_0x2df016);}}_0x27a407=_0xbdeb79['deletions'][_0x2acdbc];for(const _0x42497c of _0x27a407)if(_0x42497c['item']['is']('element','tableCell')){const _0x4dad6f=this['_getVidAttributeName'](_0x42497c),_0x28a53e=_0x42497c['item']['getAttribute'](_0x4dad6f);if(_0x52c9e7['has'](_0x28a53e)){const _0x3aad6a=_0x42497c['item']['parent']['parent']['getAttribute']('vid_start'),_0x2e0b63=_0x5c8fd1['get'](_0x3aad6a)||new Set();_0x2e0b63['add'](_0x52c9e7['get'](_0x28a53e)['userId']),_0x5c8fd1['set'](_0x3aad6a,_0x2e0b63);}}for(const _0x2cc50f of _0x5c8fd1['keys']())(_0x2f106c['has'](_0x2cc50f)||_0x52c9e7['has'](_0x2cc50f))&&_0x5c8fd1['delete'](_0x2cc50f);}for(const _0x4b449b of _0x54c081){const _0x39e22e=_0xbdeb79['insertions'][_0x4b449b];let _0x24ea2a=null,_0x278c32=null;for(const _0x5399b2 of _0x39e22e){const _0x244603=this['_getVidAttributeName'](_0x5399b2),_0x391aa5=_0x5399b2['item']['getAttribute'](_0x244603),_0x253ff9=_0x5c8fd1['get'](_0x391aa5);_0x253ff9&&'elementStart'==_0x5399b2['type']&&(_0x24ea2a=Array['from'](_0x253ff9)[0x0],_0x278c32=_0x5399b2['item']['getAttribute']('vid_end')),_0x24ea2a&&(_0x52c9e7['set'](_0x391aa5,{'userId':_0x24ea2a}),_0x2f106c['set'](_0x391aa5,{'userId':_0x24ea2a})),_0x391aa5==_0x278c32&&(_0x24ea2a=null,_0x278c32=null);}}const _0x23aef5={},_0x436189=new Set();for(const _0x2a6d32 of _0x54c081){const _0x10e35d=_0x6b4a98['deletions'][_0x2a6d32],_0x46e17a=_0x6b4a98['insertions'][_0x2a6d32];for(const {userId:_0x33ace}of this['_touchedMarkers']['values']())null!==_0x33ace&&_0x436189['add'](_0x33ace);for(const {userId:_0x1b95dd}of this['_touchedRoots']['values']())null!==_0x1b95dd&&_0x436189['add'](_0x1b95dd);this['_markChanges'](_0x46e17a,_0xbdeb79['insertions'][_0x2a6d32],_0x2f106c,'insertion',_0x436189),this['_markChanges'](_0x10e35d,_0xbdeb79['deletions'][_0x2a6d32],_0x52c9e7,'deletion',_0x436189),_0x23aef5[_0x2a6d32]={'insertions':this['_prepareViewToSave'](_0x46e17a),'deletions':this['_prepareViewToSave'](_0x10e35d),'attachChange':this['_touchedRoots']['get'](_0x2a6d32)||null,'attributesBefore':_0x1e1e73(this['_baseRootsAttributes']['get'](_0x2a6d32))||{},'attributesAfter':_0x1e1e73(this['_diffRootsAttributes']['get'](_0x2a6d32))};}return{'diffData':_0x23aef5,'authorsIds':Array['from'](_0x436189)};}['_processRootBeforeSave'](_0x5b3234){for(const [,_0x5c2ac5]of _0x5b3234['markers']){const _0x16d7f3=_0x5c2ac5['start']['getAncestors']()['filter'](_0x17e8c6=>'tableCell'==_0x17e8c6['name']);for(const _0x7151b2 of _0x16d7f3)0x1==_0x7151b2['childCount']&&_0x7151b2['getChild'](0x0)['is']('element','paragraph')&&_0x7151b2['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x18fa63){this['_processRootBeforeSave'](_0x18fa63);const _0xfb11d3=this['editor']['data']['toView'](_0x18fa63,{}),_0x2ed58f=Array['from'](_0xfb11d3['getChildren']())['map'](_0x4a1ee0=>this['_getViewJson'](_0x4a1ee0));return JSON['stringify'](_0x2ed58f);}['_getViewJson'](_0x4b9e58){if(_0x4b9e58['is']('$text'))return _0x4b9e58['data'];{const _0x18267d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x118334=_0x4b9e58,_0x5ebfc2=this['editor']['data']['htmlProcessor']['domConverter'],_0x2274bc={'type':_0x18267d['_getTypeCharForViewElement'](_0x118334),'name':_0x118334['name'],'attributes':Array['from'](_0x118334['getAttributes']()),'children':Array['from'](_0x118334['getChildren']())['map'](_0x58a893=>this['_getViewJson'](_0x58a893))};if(_0x4b9e58['is']('uiElement')&&'$comment'!=_0x4b9e58['name']){const _0x4a9c62=_0x4b9e58['render'](_0x5ebfc2['domDocument'],_0x5ebfc2);_0x2274bc['children']['push'](_0x4a9c62['outerHTML']);}else{if(_0x4b9e58['is']('rawElement')){const _0x4bd5f1=_0x5ebfc2['domDocument']['createElement'](_0x118334['name']);_0x4b9e58['render'](_0x4bd5f1,_0x5ebfc2),_0x2274bc['children']['push'](_0x4bd5f1['innerHTML']);}}const _0x3dca31=Array['from'](_0x118334['getCustomProperties']());_0x3dca31['length']>0x0&&(_0x2274bc['customProperties']=_0x3dca31);const _0x558b06=_0x118334['getFillerOffset']();return null!==_0x558b06&&(_0x2274bc['fillerOffset']=_0x558b06),_0x2274bc;}}['_markChanges'](_0x5554ec,_0x1c0cd7,_0x2a5e5a,_0x4db002,_0x4c365f){let _0x19b699=null,_0x3b60ec=null,_0x40d8c3=0x0;const _0x12a410=this['editor']['model'];for(let _0x4a34f1=0x0;_0x4a34f1<_0x1c0cd7['length'];_0x4a34f1++){const _0x269aa7=this['_getVidAttributeName'](_0x1c0cd7[_0x4a34f1]),_0x38e873=_0x1c0cd7[_0x4a34f1]['item']['getAttribute'](_0x269aa7),_0x55429e=_0x2a5e5a['get'](_0x38e873),_0x41eadd=_0x4a34f1==_0x1c0cd7['length']-0x1;(!_0x19b699&&_0x55429e&&(_0x19b699=_0x55429e,_0x3b60ec=_0x1c0cd7[_0x4a34f1]),_0x19b699&&(!_0x55429e||_0x55429e['userId']!=_0x19b699['userId']))&&(_0x39e9b3(_0x55429e,P(_0x3b60ec,_0x5554ec,_0x12a410),P(_0x1c0cd7[_0x4a34f1],_0x5554ec,_0x12a410)),_0x19b699=_0x55429e||null,_0x3b60ec=_0x55429e?_0x1c0cd7[_0x4a34f1]:null),_0x19b699&&_0x41eadd&&_0x39e9b3(_0x55429e,P(_0x3b60ec,_0x5554ec,_0x12a410),V(_0x1c0cd7[_0x4a34f1],_0x5554ec,_0x12a410));}function _0x39e9b3(_0x8bc5d9,_0x52bb2b,_0xfe3a05){const _0x36c448=_0x19b699['userId'],_0xfe3ef3='revision:'+_0x4db002+':'+_0x36c448+':'+_0x40d8c3++,_0x880c99=_0x12a410['createRange'](_0x52bb2b,_0xfe3a05);_0x5554ec['markers']['set'](_0xfe3ef3,_0x880c99),null!==_0x36c448&&_0x4c365f['add'](_0x36c448);}}['_getVidAttributeName'](_0x3d3ee1){switch(_0x3d3ee1['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3ff640,_0x35f682){_0x3ff640['baseVersion']=null;for(const _0x59a896 in _0x3ff640){const _0x49e865=_0x3ff640[_0x59a896];if(_0x49e865 instanceof _0xa279e5){const _0x34d8fd=_0x35f682['get'](_0x49e865['root']['rootName']);_0x3ff640[_0x59a896]=this['_fixPosition'](_0x49e865,_0x34d8fd);}if(_0x49e865 instanceof _0x2cbf1e){const _0x47050f=_0x35f682['get'](_0x49e865['root']['rootName']);_0x3ff640[_0x59a896]=this['_fixRange'](_0x49e865,_0x47050f);}'root'===_0x59a896&&(_0x3ff640['root']=_0x35f682['get'](_0x3ff640['root']['rootName']));}}['_fixRange'](_0xfb4322,_0x593fa9){return this['editor']['model']['createRange'](this['_fixPosition'](_0xfb4322['start'],_0x593fa9),this['_fixPosition'](_0xfb4322['end'],_0x593fa9));}['_fixPosition'](_0x148f53,_0x4e67ef){return this['editor']['model']['createPositionFromPath'](_0x4e67ef,_0x148f53['path'],_0x148f53['stickiness']);}['_handleInsertOperation'](_0x16e40f){const _0x316f05=this['_idsRoots']['get'](_0x16e40f['position']['root']['rootName']),_0x280ffc=this['_fixPosition'](_0x16e40f['position'],_0x316f05),_0x1c2e34=null===_0x16e40f['_authorId']?null:_0x16e40f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44ad73=_0x280ffc['parent'],_0x17c9f3=this['_revisionId'],_0x5e2ce6=[];for(const _0x45509a of _0x16e40f['nodes'])if(_0x45509a['is']('element'))_0x5e2ce6['push'](this['_makeIdsRoot'](_0x45509a));else{for(let _0x20a4ca=0x0;_0x20a4ca<_0x45509a['offsetSize'];_0x20a4ca++)_0x5e2ce6['push'](new _0x439a4c('$text',{'vid':this['_revisionId']++}));}const _0x332ad4=this['_revisionId'];for(let _0x298d1e=_0x17c9f3;_0x298d1e<_0x332ad4;_0x298d1e++)this['_touched']['set'](_0x298d1e,{'userId':_0x1c2e34});_0x44ad73['_insertChild'](_0x280ffc['offset'],_0x5e2ce6);}['_handleMoveOperation'](_0xe62910){(_0xe62910=this['_cloneOperation'](_0xe62910,this['_idsRoots']))['_execute']();const _0x3291dc=null===_0xe62910['_authorId']?null:_0xe62910['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7d3db6=_0xe62910['getMovedRangeStart'](),_0x53dbe0=_0x7d3db6['parent'],_0x148639=_0x7d3db6['offset'];!function _0x32fdd3(_0x386507,_0x2cb99f,_0x1d4b13,_0x3c9f5c){for(let _0x2eef3b=_0x1d4b13;_0x2eef3b<_0x3c9f5c;_0x2eef3b++){const _0x51c1c6=_0x2cb99f['getChild'](_0x2eef3b);_0x51c1c6['is']('element','$text')?_0x386507['set'](_0x51c1c6['getAttribute']('vid'),{'userId':_0x3291dc}):(_0x386507['set'](_0x51c1c6['getAttribute']('vid_start'),{'userId':_0x3291dc}),_0x32fdd3(_0x386507,_0x51c1c6,0x0,_0x51c1c6['childCount']),_0x386507['set'](_0x51c1c6['getAttribute']('vid_end'),{'userId':_0x3291dc}));}}(this['_touched'],_0x53dbe0,_0x148639,_0x148639+_0xe62910['howMany']);}['_handleMergeOperation'](_0x52add6){const _0x17e3f0=null===(_0x52add6=this['_cloneOperation'](_0x52add6,this['_idsRoots']))['_authorId']?null:_0x52add6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1891f9=_0x52add6['targetPosition']['parent'],_0x3e7fa1=_0x52add6['sourcePosition']['parent'],_0x2b626d=_0x1891f9['getAttribute']('vid_end'),_0x4264b7=_0x3e7fa1['getAttribute']('vid_start');_0x1891f9['_setAttribute']('vid_end',_0x3e7fa1['getAttribute']('vid_end')),_0x3e7fa1['_setAttribute']('vid_end',_0x2b626d),this['_touched']['set'](_0x4264b7,{'userId':_0x17e3f0}),this['_touched']['set'](_0x2b626d,{'userId':_0x17e3f0}),_0x52add6['_execute']();}['_handleSplitOperation'](_0x137d0b){const _0x12bed8=null===(_0x137d0b=this['_cloneOperation'](_0x137d0b,this['_idsRoots']))['_authorId']?null:_0x137d0b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b17a6=_0x137d0b['graveyardPosition'],_0x52a335=_0x137d0b['splitPosition']['parent'];_0x137d0b['_execute']();const _0x5773a3=_0x52a335['getAttribute']('vid_end'),_0x5296d1=_0x137d0b['insertionPosition']['nodeAfter'];if(_0x3b17a6){const _0x28bf79=_0x5296d1['getAttribute']('vid_end'),_0x370455=_0x52a335['getAttribute']('vid_end');_0x52a335['_setAttribute']('vid_end',_0x28bf79),_0x5296d1['_setAttribute']('vid_end',_0x370455),this['_touched']['set'](_0x52a335['getAttribute']('vid_end'),{'userId':_0x12bed8}),this['_touched']['set'](_0x5296d1['getAttribute']('vid_start'),{'userId':_0x12bed8});}else{const _0x5deabb=this['_revisionId']++,_0x4b6ff8=this['_revisionId']++;_0x52a335['_setAttribute']('vid_end',_0x5deabb),_0x5296d1['_setAttribute']('vid_start',_0x4b6ff8),_0x5296d1['_setAttribute']('vid_end',_0x5773a3),this['_touched']['set'](_0x5deabb,{'userId':_0x12bed8}),this['_touched']['set'](_0x4b6ff8,{'userId':_0x12bed8});}}['_handleMarkerOperation'](_0x26a9d5){if(!_0x26a9d5['affectsData'])return;const _0x59bb4f=(_0x26a9d5=this['_cloneOperation'](_0x26a9d5,this['_diffRoots']))['oldRange']?_0x26a9d5['oldRange']['root']:null,_0x3a04ed=_0x26a9d5['newRange']?_0x26a9d5['newRange']['root']:null;_0x59bb4f&&this['_markers']['delete'](_0x26a9d5['name']),_0x3a04ed&&this['_markers']['set'](_0x26a9d5['name'],_0x26a9d5['newRange']['clone']());const _0x43066d=null===_0x26a9d5['_authorId']?null:_0x26a9d5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30fb63=_0x26a9d5['name'];if(!this['_touchedMarkers']['has'](_0x30fb63))return void this['_touchedMarkers']['set'](_0x30fb63,{'range':_0x26a9d5['oldRange'],'userId':_0x43066d});const _0x43159b=this['_touchedMarkers']['get'](_0x30fb63),_0x1225a4=_0x43159b['range'],_0x2eed46=_0x26a9d5['newRange'];null==_0x1225a4&&null==_0x2eed46||_0x1225a4&&_0x2eed46&&_0x1225a4['isEqual'](_0x2eed46)?this['_touchedMarkers']['delete'](_0x26a9d5['name']):_0x43159b['userId']=_0x43066d;}['_handleRootOperation'](_0x2e84bd,_0x11ad90){this['_diffRoots']['has'](_0x2e84bd['rootName'])?this['_diffRoots']['get'](_0x2e84bd['rootName'])['_isAttached']=_0x2e84bd['isAdd']:(this['_diffRoots']['set'](_0x2e84bd['rootName'],N(_0x2e84bd['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2e84bd['rootName'],{}),_0x11ad90&&this['_idsRoots']['set'](_0x2e84bd['rootName'],N(_0x2e84bd['rootName'],!0x0)));const _0x21c113=null===_0x2e84bd['_authorId']?null:_0x2e84bd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xade960=this['_touchedRoots']['get'](_0x2e84bd['rootName']);_0xade960&&_0xade960['userId']===_0x21c113?this['_touchedRoots']['delete'](_0x2e84bd['rootName']):this['_touchedRoots']['set'](_0x2e84bd['rootName'],{'userId':_0x21c113,'isAttached':_0x2e84bd['isAdd']});}['_handleRootAttributeOperation'](_0x5066cf){const _0x2617aa=this['_diffRootsAttributes']['get'](_0x5066cf['root']['rootName']);null===_0x5066cf['newValue']?delete _0x2617aa[_0x5066cf['key']]:_0x2617aa[_0x5066cf['key']]=_0x5066cf['newValue'];}}function x(_0xeaedd3){const _0x415b96=N(_0xeaedd3['rootName'],_0xeaedd3['isAttached']());for(const _0x303402 of _0xeaedd3['getChildren']()){const _0x2fc193=_0x303402['_clone'](!0x0);_0x415b96['_appendChild'](_0x2fc193);}return _0x415b96;}function N(_0x186009,_0x5189e9=!0x0){const _0x57372b=new _0x19df77();return _0x57372b['rootName']=_0x186009,_0x57372b['_isAttached']=_0x5189e9,_0x57372b['isAttached']=()=>_0x57372b['_isAttached'],_0x57372b;}function P(_0x354bf4,_0x2d662e,_0x38f13c){const _0x1d288c='elementEnd'==_0x354bf4['type']?_0x38f13c['createPositionAt'](_0x354bf4['item'],'end'):_0x38f13c['createPositionBefore'](_0x354bf4['item']);return _0x38f13c['createPositionFromPath'](_0x2d662e,_0x1d288c['path'],_0x1d288c['stickiness']);}function V(_0x26a572,_0x2db93c,_0x5d9729){const _0x547622='elementStart'==_0x26a572['type']?_0x5d9729['createPositionAt'](_0x26a572['item'],0x0):_0x5d9729['createPositionAfter'](_0x26a572['item']);return _0x5d9729['createPositionFromPath'](_0x2db93c,_0x547622['path'],_0x547622['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x3095a9(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4aa141){super(),this['id']=_0x4aa141['id']||_0x4c4fba(),this['author']=_0x4aa141['author'],this['type']=_0x4aa141['type'],this['data']=_0x4aa141['data']||{},this['rootName']=_0x4aa141['rootName'],this['set']('createdAt',_0x4aa141['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(_0x2b654d,_0x3774cb){this['newRevisionId']=_0x2b654d,this['oldRevisionId']=_0x3774cb,this['changes']=new _0x26acd1();}['_setChanges'](_0x46982e){for(const _0x305346 of _0x46982e)this['changes']['add'](_0x305346);}}class u extends _0x57da8b{['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[_0x33ad79,_0xa8381f,S,$];}constructor(_0x3f43b6){super(_0x3f43b6),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',(_0x552625,_0x55e4ee,_0x5a3df5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3c4ee8=>{for(const _0x29282c of this['editor']['editing']['view']['document']['roots'])_0x5a3df5?_0x3c4ee8['removeClass']('ck-editor__editable__overlay',_0x29282c):_0x3c4ee8['addClass']('ck-editor__editable__overlay',_0x29282c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2d7fdc=>null!==_0x2d7fdc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x301433,_0x415ae1,_0x543228)=>_0x301433&&_0x543228?_0x415ae1['changes']['getIndex'](_0x543228):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xb5b07d,_0x326867)=>_0xb5b07d?_0x326867['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xa8381f);}['init'](){const _0x372ab0=this['editor'],_0x3aaadc=new ot(_0x372ab0,{'direction':'backward'}),_0x13c9bc=new ot(_0x372ab0,{'direction':'forward'});(_0x372ab0['commands']['add']('showPreviousChange',_0x3aaadc),_0x372ab0['commands']['add']('showNextChange',_0x13c9bc),_0x372ab0['commands']['add']('restoreRevision',new nt(_0x372ab0)),this['on']('change:numberOfChanges',()=>{_0x3aaadc['refresh'](),_0x13c9bc['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x372ab0['enableReadOnlyMode']('revision-viewer'),_0x372ab0['plugins']['has']('WidgetToolbarRepository'))&&_0x372ab0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1febb0){return await this['_utils']['loadRevisionData'](_0x1febb0,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1febb0);}async['getRevisionRootsAttributes'](_0x43f282){return await this['_utils']['loadRevisionData'](_0x43f282,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x43f282);}async['compare'](_0x69a100,_0x414994,_0x4aec5d=!0x1){if(!this['isEnabled'])return;const _0xefc39c=this['diff'],_0xada157=this['repository'],_0x44df5c='string'==typeof _0x69a100?_0xada157['getRevision'](_0x69a100):_0x69a100,_0x543def='string'==typeof _0x414994?_0xada157['getRevision'](_0x414994):_0x414994,_0x2e11d0=_0x44df5c['id'],_0x433d5d=_0x543def?_0x543def['id']:null;if(!_0x4aec5d&&this['diff']&&this['diff']['newRevisionId']===_0x2e11d0&&this['diff']['oldRevisionId']===_0x433d5d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x2e11d0,_0x433d5d);const _0x484269=this['_getRevisionsRange'](_0x44df5c,_0x543def,!0x0)['map'](_0x3b1398=>this['_utils']['loadRevisionData'](_0x3b1398,this['adapter']));return _0x484269['push'](new Promise(_0xfe150b=>{setTimeout(_0xfe150b,0x14);})),Promise['all'](_0x484269)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x11f371=this['_getDiff'](_0x2e11d0,_0x433d5d);for(const _0xd2d459 of _0x11f371['changes'])this['_changeIdToChange']['set'](_0xd2d459['id'],_0xd2d459);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1737dc=>{for(const _0x9841aa of this['editor']['model']['document']['getRootNames']())_0x1737dc['detachRoot'](_0x9841aa);for(const _0x370ae8 of Object['keys'](_0x11f371['model'])){const _0x39f61d=_0x1737dc['addRoot'](_0x370ae8);for(const _0x51fa19 of Object['keys'](_0x11f371['attributes'][_0x370ae8]))_0x1737dc['setAttribute'](_0x51fa19,_0x11f371['attributes'][_0x370ae8][_0x51fa19],_0x39f61d);_0x1737dc['insert'](_0x11f371['model'][_0x370ae8],_0x39f61d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x11f371['changes'])),this['isReady']=!0x0;})['catch'](_0x16b887=>{console['error'](_0x16b887),this['_cleanUp'](),_0xefc39c&&(this['diff']=_0xefc39c),this['isReady']=!0x0;});}['addRevisionData'](_0x3d2d64,_0x408de0){const _0x9ec842=this['repository']['createRevision'](_0x3d2d64);return _0x9ec842['on']('_update',(_0x9762b8,_0x5bbeb7,_0xe03b12)=>_0x408de0(_0x5bbeb7,_0xe03b12,_0x9ec842)),this['repository']['addRevision'](_0x9ec842),_0x9ec842;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5f3302=>{for(const _0x5eba8d of this['editor']['model']['document']['getRootNames']())_0x5f3302['detachRoot'](_0x5eba8d);});}['_sortAndFilterDiffChanges'](_0x31272f){const _0x738bb=[],_0x599937=new Map();for(const _0x46107d of this['editor']['model']['document']['getRootNames']()){const _0x1e63d3=this['editor']['editing']['view']['getDomRoot'](_0x46107d);if(!_0x1e63d3)continue;const _0x569c04=_0x1e63d3['getClientRects']()['item'](0x0);_0x569c04&&(_0x738bb['push'](_0x46107d),_0x599937['set'](_0x46107d,_0x569c04));}return _0x738bb['sort']((_0x4ec470,_0x16e9fc)=>{const _0x499ba0=_0x599937['get'](_0x4ec470),_0x2432a3=_0x599937['get'](_0x16e9fc);return _0x499ba0['y']-_0x2432a3['y']||_0x499ba0['x']-_0x2432a3['x'];}),(_0x31272f=_0x31272f['filter'](_0x53cee7=>_0x738bb['includes'](_0x53cee7['rootName'])))['sort']((_0x205ac7,_0x514dfb)=>_0x738bb['indexOf'](_0x205ac7['rootName'])-_0x738bb['indexOf'](_0x514dfb['rootName'])),_0x31272f;}['_makeTape'](_0x4ed85f){const _0x498646=Array['from'](_0x4ed85f['markers'])['filter'](([_0xeba27c,_0x33971b])=>_0xeba27c['startsWith']('revision:')&&!_0x33971b['isCollapsed']),_0x2f85ec=Array['from'](this['editor']['model']['createRangeIn'](_0x4ed85f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x498646['length'])for(const _0x4f8ec1 of _0x2f85ec){const [_0xeebd07,_0x3129c0]=_0x498646[0x0],[,_0x2525a1,_0x18abae]=_0xeebd07['split'](':');if(_0x3129c0['end']['isEqual'](_0x4f8ec1['nextPosition'])&&_0x498646['shift'](),(_0x4f8ec1['previousPosition']['isEqual'](_0x3129c0['start'])||_0x4f8ec1['previousPosition']['isAfter'](_0x3129c0['start']))&&('insertion'==_0x2525a1?_0x4f8ec1['isAdded']={'userId':_0x18abae}:'deletion'==_0x2525a1&&(_0x4f8ec1['isRemoved']={'userId':_0x18abae})),0x0==_0x498646['length'])break;}return _0x2f85ec;}['_refreshStartEndIndex'](_0x565966){const _0xc6006f=new Map();for(let _0x1ed58b=0x0;_0x1ed58b<_0x565966['length'];_0x1ed58b++)'text'===_0x565966[_0x1ed58b]['type']?(_0x565966[_0x1ed58b]['item']['startIndex']=_0x1ed58b,_0x565966[_0x1ed58b]['item']['endIndex']=_0x1ed58b):('elementStart'===_0x565966[_0x1ed58b]['type']?_0x565966[_0x1ed58b]['item']['startIndex']=_0x1ed58b:'elementEnd'===_0x565966[_0x1ed58b]['type']&&(_0x565966[_0x1ed58b]['item']['endIndex']=_0x1ed58b),_0xc6006f['set'](_0x565966[_0x1ed58b]['id'],_0x1ed58b));for(const _0xc0d6a9 of _0xc6006f['values']())'elementStart'===_0x565966[_0xc0d6a9]['type']?_0x565966[_0xc0d6a9]['item']['endIndex']=_0xc6006f['get'](_0x565966[_0xc0d6a9]['pairId']):'elementEnd'===_0x565966[_0xc0d6a9]['type']&&(_0x565966[_0xc0d6a9]['item']['startIndex']=_0xc6006f['get'](_0x565966[_0xc0d6a9]['pairId']));}['_processTape'](_0x368953){for(let _0x1d7e7d=0x0;_0x1d7e7d<_0x368953['length'];_0x1d7e7d++){if('elementStart'===_0x368953[_0x1d7e7d]['type'])_0x368953[_0x1d7e7d]['item']['startIndex']=_0x1d7e7d;else{if('elementEnd'===_0x368953[_0x1d7e7d]['type']){_0x368953[_0x1d7e7d]['item']['endIndex']=_0x1d7e7d;const _0x15b812=_0x368953[_0x1d7e7d]['item']['startIndex'];_0x368953[_0x15b812]['pairId']=_0x368953[_0x1d7e7d]['id'],_0x368953[_0x1d7e7d]['pairId']=_0x368953[_0x15b812]['id'];}else _0x368953[_0x1d7e7d]['item']['startIndex']=_0x1d7e7d,_0x368953[_0x1d7e7d]['item']['endIndex']=_0x1d7e7d,_0x368953[_0x1d7e7d]['pairId']=null;}_0x368953[_0x1d7e7d]['markersStart']||(_0x368953[_0x1d7e7d]['markersStart']=[],_0x368953[_0x1d7e7d]['markersEnd']=[]);}}['_markInsertions'](_0x15f4b0,_0x44246b){const _0x45e7ef=_0x15f4b0['filter'](_0x4f9cef=>!_0x4f9cef['isAdded']);for(let _0x4caf3b=0x0;_0x4caf3b<_0x44246b['length'];_0x4caf3b++)_0x44246b[_0x4caf3b]['isAdded']&&(_0x45e7ef[_0x4caf3b]['isAdded']=_0x44246b[_0x4caf3b]['isAdded']);}['_getDiff'](_0x3e7659,_0x275ce9=null){const _0x2ff0e4=this['repository']['getRevision'](_0x3e7659),_0x4da5c8=_0x275ce9?this['repository']['getRevision'](_0x275ce9):null,_0xae4c5a=this['_getRevisionsRange'](_0x2ff0e4,_0x4da5c8),_0x1fd45b=_0xae4c5a[_0xae4c5a['length']-0x1],_0x5ef64a=new Map(),_0x24cb3c={'model':{},'attributes':{},'changes':[]},_0x553e8f=new Set(),_0x924cf1=new Map();for(let _0x5ee626=_0xae4c5a['length']-0x1;_0x5ee626>=0x0;_0x5ee626--){const _0x393437=_0xae4c5a[_0x5ee626];for(const _0x5a0821 of Object['keys'](_0x393437['diffData']))if(_0x393437['diffData'][_0x5a0821]['attachChange']){const _0x1f7eac=_0x393437['diffData'][_0x5a0821]['attachChange'];_0x1f7eac['isAttached']?(_0x553e8f['add'](_0x5a0821),_0x924cf1['has'](_0x5a0821)&&_0x924cf1['get'](_0x5a0821)['userId']==_0x1f7eac['userId']?_0x924cf1['delete'](_0x5a0821):_0x924cf1['set'](_0x5a0821,_0x1f7eac)):_0x924cf1['has'](_0x5a0821)?(_0x553e8f['delete'](_0x5a0821),_0x924cf1['delete'](_0x5a0821)):(_0x553e8f['add'](_0x5a0821),_0x924cf1['set'](_0x5a0821,_0x1f7eac));}else _0x553e8f['add'](_0x5a0821);}for(const _0x1f3d10 of _0x553e8f){const _0x2fd5d1=_0x924cf1['has'](_0x1f3d10)&&!_0x924cf1['get'](_0x1f3d10)['isAttached'];let _0x19078c=_0x2fd5d1?_0xae4c5a['length']-0x1:0x0;const _0x347867=_0x2fd5d1?-0x1:0x1;for(;_0xae4c5a[_0x19078c];){const _0x41770b=_0xae4c5a[_0x19078c];if(_0x41770b['diffData'][_0x1f3d10]){const _0x2a2f80=_0x2fd5d1?_0x41770b['diffData'][_0x1f3d10]['attributesBefore']:_0x41770b['diffData'][_0x1f3d10]['attributesAfter'];_0x24cb3c['attributes'][_0x1f3d10]=_0x2a2f80?_0x1e1e73(_0x2a2f80):{};break;}_0x19078c+=_0x347867;}}for(const _0x1256b4 of _0xae4c5a){_0x1256b4['model']={};for(const _0x1710d3 of _0x1256b4['authors'])_0x5ef64a['set'](_0x1710d3['id'],_0x1710d3);for(const _0x55ac8c of _0x553e8f){const _0x1a599f=_0x1256b4['diffData'][_0x55ac8c]?_0x1256b4['diffData'][_0x55ac8c]['insertions']:'[]',_0x520df1=_0x1256b4['diffData'][_0x55ac8c]?_0x1256b4['diffData'][_0x55ac8c]['deletions']:'[]';_0x1256b4['model'][_0x55ac8c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1a599f),'deletions':this['_utils']['_makeModelFromViewString'](_0x520df1)};}}for(const _0x118156 of _0x553e8f){let _0x36b0ee=null,_0xebeebe=0x0;const _0x34cfc6=new Map(Array['from'](_0x2ff0e4['model'][_0x118156]['insertions']['markers'])['filter'](([_0x3306f3])=>!_0x3306f3['startsWith']('revision:')));let _0x35864c=0x0;for(const _0x4aa08d of _0xae4c5a){const _0x9ed949=this['_makeTape'](_0x4aa08d['model'][_0x118156]['insertions']);_0x4aa08d==_0x2ff0e4?(_0x36b0ee=_0x9ed949,_0xebeebe=_0x36b0ee['length'],_0x36b0ee['forEach'](_0x2222f9=>{_0x2222f9['id']=_0x35864c++;}),this['_processTape'](_0x36b0ee)):this['_markInsertions'](_0x36b0ee,_0x9ed949);const _0x4f0498=_0x36b0ee['filter'](_0x2ecd0f=>!_0x2ecd0f['isAdded'])['map'](_0xda1054=>_0xda1054['id']);let _0x242bf3=0x0;const _0x14c415=this['_makeTape'](_0x4aa08d['model'][_0x118156]['deletions']);_0x14c415['forEach'](_0x1200f2=>{_0x1200f2['isRemoved']?_0x1200f2['id']=_0xebeebe++:_0x1200f2['id']=_0x4f0498[_0x242bf3++];}),this['_processTape'](_0x14c415),this['_setDistance'](_0x36b0ee,'isAdded'),this['_setDistance'](_0x14c415,'isRemoved'),_0x4aa08d==_0x2ff0e4&&this['_markMarkers'](_0x36b0ee,_0x34cfc6),_0x36b0ee=this['_joinTapes'](_0x36b0ee,_0x14c415),this['_refreshStartEndIndex'](_0x36b0ee),this['_setDistance'](_0x36b0ee,'isRemoved');}_0x36b0ee=_0x36b0ee['filter'](_0x1f8564=>!(_0x1f8564['isAdded']&&_0x1f8564['isRemoved']));const _0x3c8655=new Map(_0x1fd45b['model'][_0x118156]['deletions']['markers']),_0x341a3f=new Set(_0x34cfc6['keys']());for(const _0x9c2004 of _0x3c8655['keys']())_0x341a3f['delete'](_0x9c2004);this['_markSuggestions'](_0x36b0ee,_0x341a3f),this['_fixObsoleteTags'](_0x36b0ee),_0x36b0ee=this['_removeMissingPairs'](_0x36b0ee),_0x36b0ee=this['_markMismatchedRemovedTags'](_0x36b0ee),_0x36b0ee=this['_removeUnsupportedChanges'](_0x36b0ee);const {root:_0x28a1d2,changes:_0x5f83e}=this['_makeModelFromTape'](_0x36b0ee,_0x5ef64a,_0x118156);_0x24cb3c['model'][_0x118156]=_0x28a1d2;const _0x2e5f5d=_0x924cf1['get'](_0x118156);if(_0x2e5f5d){const _0x52de30=_0x5ef64a['get'](_0x2e5f5d['userId']),_0x9c6a32=new G({'author':_0x52de30,'type':_0x2e5f5d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x118156});_0x5f83e['unshift'](_0x9c6a32),_0x24cb3c['attributes'][_0x118156]['revisionHistoryAttachChange']=_0x9c6a32['id'];}_0x24cb3c['changes']=_0x24cb3c['changes']['concat'](_0x5f83e);}return _0x24cb3c;}['_markMarkers'](_0x4753de,_0x175a9d){for(let _0x43fe63=0x0;_0x43fe63<_0x4753de['length'];_0x43fe63++)for(const [_0x39c837,_0x52a5d6]of _0x175a9d)!_0x52a5d6['isCollapsed']&&_0x52a5d6['start']['isEqual'](_0x4753de[_0x43fe63]['previousPosition'])&&_0x4753de[_0x43fe63]['markersStart']['push'](_0x39c837),_0x52a5d6['end']['isEqual'](_0x4753de[_0x43fe63]['nextPosition'])&&_0x4753de[_0x43fe63]['markersEnd']['push'](_0x39c837);}['_joinTapes'](_0x9f75ac,_0x58a56a){let _0x592120=[],_0x495336=0x0,_0x39f19c=0x0;for(;_0x495336<_0x9f75ac['length']||_0x39f19c<_0x58a56a['length'];){const _0xab3931=_0x9f75ac[_0x495336]||{},_0x2d11da=_0x58a56a[_0x39f19c]||{};if(_0xab3931['id']==_0x2d11da['id'])_0x495336++,_0x39f19c++,_0x592120['push'](_0xab3931);else{if(_0x2d11da['isRemoved']&&_0xab3931['isAdded']){const {commonTape:_0x56502d,iEnd:_0x47e5b6,jEnd:_0x1af196}=this['_threeWayMerge'](_0x9f75ac,_0x495336,_0x58a56a,_0x39f19c);_0x592120=_0x592120['concat'](_0x56502d),_0x495336=_0x47e5b6,_0x39f19c=_0x1af196;}else _0x2d11da['isRemoved']?(_0x39f19c++,_0x592120['push'](_0x2d11da)):(_0x495336++,_0x592120['push'](_0xab3931));}}return _0x592120;}['_markSuggestions'](_0x5a9973,_0x40a85d){const _0x16e3c4=[];for(let _0xbbd6bf=0x0;_0xbbd6bf<_0x5a9973['length'];_0xbbd6bf++){for(let _0x37aac9=0x0;_0x37aac9<_0x5a9973[_0xbbd6bf]['markersStart']['length'];_0x37aac9++){const _0x4d94da=_0x5a9973[_0xbbd6bf]['markersStart'][_0x37aac9];if(!_0x40a85d['has'](_0x4d94da))continue;const {group:_0x280965,type:_0x4f184a,authorId:_0x3ae6f9}=_0x5fdf4f(_0x4d94da);'revision-suggestion'!=_0x280965||'insertion'!=_0x4f184a&&'deletion'!=_0x4f184a||(_0x16e3c4['unshift']({'type':_0x4f184a,'name':_0x4d94da,'userId':_0x3ae6f9}),_0x5a9973[_0xbbd6bf]['markersStart']['splice'](_0x37aac9,0x1),_0x37aac9--);}_0x58e2f2(_0x5a9973[_0xbbd6bf]);for(let _0x4a75fd=0x0;_0x4a75fd<_0x5a9973[_0xbbd6bf]['markersEnd']['length'];_0x4a75fd++){const _0x5f262f=_0x5a9973[_0xbbd6bf]['markersEnd'][_0x4a75fd];if(!_0x40a85d['has'](_0x5f262f))continue;const {group:_0x45ac8f,type:_0x1ae4fb}=_0x5fdf4f(_0x5f262f);if('revision-suggestion'!=_0x45ac8f||'insertion'!=_0x1ae4fb&&'deletion'!=_0x1ae4fb)continue;_0x5a9973[_0xbbd6bf]['markersEnd']['splice'](_0x4a75fd,0x1),_0x4a75fd--;const _0xaa0bee=_0x16e3c4['findIndex'](_0x5af9bf=>_0x5af9bf['name']==_0x5f262f);_0xaa0bee>-0x1&&_0x16e3c4['splice'](_0xaa0bee,0x1);}}function _0x5fdf4f(_0xdd17a9){const _0x5a14fb=_0xdd17a9['split'](':');return{'group':_0x5a14fb[0x0],'type':_0x5a14fb[0x1],'subType':_0x5a14fb['length']>=0x5?_0x5a14fb[0x2]:null,'id':_0x5a14fb['length']<0x5?_0x5a14fb[0x2]:_0x5a14fb[0x3],'authorId':_0x5a14fb['length']<0x5?_0x5a14fb[0x3]:_0x5a14fb[0x4],'markerCount':0x6==_0x5a14fb['length']?_0x5a14fb[0x5]:null};}function _0x58e2f2(_0xc3d63c){for(let _0x3455d3=0x0;_0x3455d3<_0x16e3c4['length'];_0x3455d3++){if(_0xc3d63c['isAdded']&&'insertion'==_0x16e3c4[_0x3455d3]['type']&&_0xc3d63c['isAdded']['userId']==_0x16e3c4[_0x3455d3]['userId'])return _0xc3d63c['isAddSuggestion']=_0x16e3c4[_0x3455d3],void delete _0xc3d63c['isAdded'];if(!_0xc3d63c['isAdded']&&!_0xc3d63c['isRemoved']&&'deletion'==_0x16e3c4[_0x3455d3]['type'])return void(_0xc3d63c['isRemoveSuggestion']=_0x16e3c4[_0x3455d3]);}}}['_setDistance'](_0x14f8ed,_0x201c3c){let _0x2f4d1a=0x0,_0x589762=!0x1;const _0x3d1f9b=new Map();for(const _0x537123 of _0x14f8ed)_0x537123[_0x201c3c]?_0x589762&&(_0x2f4d1a++,_0x589762=!0x1):(_0x2f4d1a++,_0x589762=!0x0),_0x3d1f9b['set'](_0x537123['id'],_0x2f4d1a);for(let _0x3c5a1c=0x0;_0x3c5a1c<_0x14f8ed['length'];_0x3c5a1c++){if('isRemoved'==_0x201c3c&&_0x14f8ed[_0x3c5a1c]['isAdded']||'isAdded'==_0x201c3c&&_0x14f8ed[_0x3c5a1c]['isRemoved'])continue;if('text'==_0x14f8ed[_0x3c5a1c]['type']){_0x14f8ed[_0x3c5a1c]['distance']=0x0;continue;}const _0x139478=_0x3d1f9b['get'](_0x14f8ed[_0x3c5a1c]['pairId']),_0xabe1c3=_0x3d1f9b['get'](_0x14f8ed[_0x3c5a1c]['id']);_0x14f8ed[_0x3c5a1c]['distance']=_0x139478-_0xabe1c3;}}['_getRevisionsRange'](_0x52dc71,_0x2dd8ab,_0x172d35=!0x1){const _0x5f0681=[];let _0x2ee0bc=this['repository']['getIndex'](_0x52dc71),_0x2feac4=this['repository']['getIndex'](_0x2dd8ab);for(-0x1==_0x2feac4&&(_0x2feac4=this['repository']['_revisions']['length'],_0x172d35=!0x1);_0x2ee0bc<_0x2feac4;)_0x5f0681['push'](this['repository']['getRevision'](_0x2ee0bc)),_0x2ee0bc++;return _0x172d35&&_0x5f0681['push'](this['repository']['getRevision'](_0x2ee0bc)),_0x5f0681;}['_threeWayMerge'](_0x57f801,_0x5cd9e2,_0x15e702,_0x1e071e){const _0xffe893=this['editor']['model']['schema'];let _0x35c040=_0x5cd9e2;for(;_0x57f801[_0x35c040]&&_0x57f801[_0x35c040]['isAdded'];)_0x35c040++;let _0x208169=_0x1e071e;for(;_0x15e702[_0x208169]&&_0x15e702[_0x208169]['isRemoved'];)_0x208169++;_0x5b3875(_0x57f801,_0x5cd9e2,_0x35c040),_0x5b3875(_0x15e702,_0x1e071e,_0x208169);const _0x17a58e=_0x15e702['slice'](_0x1e071e,_0x208169)['concat'](_0x57f801['slice'](_0x5cd9e2,_0x35c040));return _0x17a58e['sort']((_0x945afa,_0x240508)=>_0x945afa['side']!=_0x240508['side']?_0x945afa['side']-_0x240508['side']:_0x945afa['level']!=_0x240508['level']?_0x945afa['level']-_0x240508['level']:_0x945afa['distance']!=_0x240508['distance']?_0x240508['distance']-_0x945afa['distance']:!!_0x945afa['isAdded']!=!!_0x240508['isAdded']?-0x1==_0x945afa['side']||0x0==_0x945afa['side']?_0x945afa['isAdded']?-0x1:0x1:_0x945afa['isAdded']?0x1:-0x1:_0x945afa['index']-_0x240508['index']),{'commonTape':_0x17a58e,'iEnd':_0x35c040,'jEnd':_0x208169};function _0x5b3875(_0x537faf,_0x324333,_0x32aa8a){let _0xc3fb79=-0x1,_0x5ae3c1=Number['POSITIVE_INFINITY'],_0x4278e2=!0x0;for(let _0xfffabb=_0x324333;_0xfffabb<_0x32aa8a;_0xfffabb++)if(_0xffe893['isInline'](_0x537faf[_0xfffabb]['item'])||(_0x4278e2=!0x1),_0x537faf[_0xfffabb]['item']['startIndex']<_0x324333&&(_0xc3fb79=_0xfffabb),_0x537faf[_0xfffabb]['item']['endIndex']>=_0x32aa8a){_0x5ae3c1=_0xfffabb;break;}_0x4278e2&&(_0xc3fb79=_0x32aa8a-0x1);for(let _0x173b77=_0x324333;_0x173b77<_0x32aa8a;_0x173b77++)_0x537faf[_0x173b77]['side']=_0x173b77<=_0xc3fb79?-0x1:_0x173b77<_0x5ae3c1?0x0:0x1,_0x537faf[_0x173b77]['index']=_0x173b77;let _0x262cba=0x0;for(let _0x468e74=_0x324333;_0x468e74<=_0xc3fb79;_0x468e74++)0x0==_0x537faf[_0x468e74]['distance']?_0x537faf[_0x468e74]['level']=_0x262cba:(_0x262cba++,_0x537faf[_0x468e74]['level']=_0x262cba,_0x262cba++);for(let _0x19012b=_0x324333;_0x19012b<_0x32aa8a;_0x19012b++)0x0==_0x537faf[_0x19012b]['side']&&(_0x537faf[_0x19012b]['level']=_0x262cba);_0x262cba=0x0;for(let _0x379fe1=_0x32aa8a-0x1;_0x379fe1>=_0x5ae3c1;_0x379fe1--)0x0==_0x537faf[_0x379fe1]['distance']?_0x537faf[_0x379fe1]['level']=_0x262cba:(_0x262cba--,_0x537faf[_0x379fe1]['level']=_0x262cba,_0x262cba--);}}['_fixObsoleteTags'](_0x47aa1e){const _0x13de43=new Map(),_0x225dc3=this['editor']['model']['schema'];for(let _0x4f9c9b=0x1;_0x4f9c9b<_0x47aa1e['length'];_0x4f9c9b++){let _0x34eebb,_0xf8d1b4,_0x1a8370;const _0x33c8a9=_0x47aa1e[_0x4f9c9b],_0xcbaf4f=_0x47aa1e[_0x4f9c9b-0x1];if('text'==_0x33c8a9['type'])continue;if(_0x33c8a9['type']!=_0xcbaf4f['type'])continue;if(!_0x225dc3['isBlock'](_0xcbaf4f['item'])||_0x225dc3['isLimit'](_0xcbaf4f['item']))continue;if(!_0x225dc3['isBlock'](_0x33c8a9['item'])||_0x225dc3['isLimit'](_0x33c8a9['item']))continue;if((_0x47aa1e[_0x4f9c9b]['isAdded']||_0x47aa1e[_0x4f9c9b]['isAddSuggestion'])&&_0x47aa1e[_0x4f9c9b-0x1]['isRemoved'])_0x34eebb=_0x47aa1e[_0x4f9c9b],_0xf8d1b4=_0x47aa1e[_0x4f9c9b-0x1],_0x1a8370=_0x4f9c9b-0x1;else{if(!_0x47aa1e[_0x4f9c9b]['isRemoved']||!_0x47aa1e[_0x4f9c9b-0x1]['isAdded']&&!_0x47aa1e[_0x4f9c9b-0x1]['isAddSuggestion'])continue;_0x34eebb=_0x47aa1e[_0x4f9c9b-0x1],_0xf8d1b4=_0x47aa1e[_0x4f9c9b],_0x1a8370=_0x4f9c9b;}const _0x4ab03e=_0x34eebb['level']==_0xf8d1b4['level'],_0x12a850=Math['abs'](_0x34eebb['level'])<Math['abs'](_0xf8d1b4['level'])&&0x0==_0xf8d1b4['distance'];(_0x4ab03e||_0x12a850)&&(_0x13de43['set'](_0xf8d1b4['id'],_0x34eebb['id']),_0x47aa1e['splice'](_0x1a8370,0x1),_0x4f9c9b--,_0x34eebb['isAdded']=!0x1);}for(let _0x3025b9=0x0;_0x3025b9<_0x47aa1e['length'];_0x3025b9++)_0x13de43['has'](_0x47aa1e[_0x3025b9]['pairId'])&&(_0x47aa1e[_0x3025b9]['pairId']=_0x13de43['get'](_0x47aa1e[_0x3025b9]['pairId']));}['_removeMissingPairs'](_0x46477c){const _0x30428a=new Set(_0x46477c['map'](_0x33722f=>_0x33722f['id']));for(let _0x2d4abb=0x0;_0x2d4abb<_0x46477c['length'];_0x2d4abb++)_0x30428a['has'](_0x46477c[_0x2d4abb]['pairId'])||0x0==_0x46477c[_0x2d4abb]['distance']||(_0x46477c[_0x2d4abb]['isIncorrect']=!0x0);return _0x46477c['filter'](_0x4e16ca=>!_0x4e16ca['isIncorrect']);}['_markMismatchedRemovedTags'](_0x39d814){const _0x5df56a=new Set();for(let _0x5bc8d7=0x0;_0x5bc8d7<_0x39d814['length'];_0x5bc8d7++){if(_0x5df56a['has'](_0x39d814[_0x5bc8d7]['id'])&&_0x39d814[_0x5bc8d7]['isRemoved']&&(_0x39d814[_0x5bc8d7]['isIncorrect']=!0x0),_0x39d814[_0x5bc8d7]['isIncorrect'])continue;if(0x0==_0x39d814[_0x5bc8d7]['distance'])continue;if('elementStart'!=_0x39d814[_0x5bc8d7]['type'])continue;if(null==_0x39d814[_0x5bc8d7]['pairId'])continue;let _0x1197b6=_0x5bc8d7+0x1,_0x3b406b=0x0;for(;_0x39d814[_0x1197b6]['id']!=_0x39d814[_0x5bc8d7]['pairId'];)'elementStart'==_0x39d814[_0x1197b6]['type']?_0x3b406b++:'elementEnd'==_0x39d814[_0x1197b6]['type']&&_0x3b406b--,_0x1197b6++;if(0x0!=_0x3b406b){if(_0x39d814[_0x5bc8d7]['isRemoved'])_0x39d814[_0x5bc8d7]['isIncorrect']=!0x0;else{for(;_0x1197b6!=_0x5bc8d7;)_0x39d814[_0x1197b6]['isRemoved']&&0x0!=_0x39d814[_0x1197b6]['distance']&&(_0x39d814[_0x1197b6]['isIncorrect']=!0x0,_0x5df56a['add'](_0x39d814[_0x1197b6]['pairId'])),_0x1197b6--;}}}return _0x39d814['filter'](_0x3fd4f8=>!_0x3fd4f8['isIncorrect']);}['_removeUnsupportedChanges'](_0x1d3e14){const _0x1c1baf=this['editor']['model']['schema'];for(let _0x365555=0x0;_0x365555<_0x1d3e14['length'];_0x365555++){if(!(_0x1d3e14[_0x365555]['isAdded']||_0x1d3e14[_0x365555]['isAddSuggestion']||_0x1d3e14[_0x365555]['isRemoved']||_0x1d3e14[_0x365555]['isRemoveSuggestion']))continue;if(0x0==_0x1d3e14[_0x365555]['distance'])continue;const _0x4d3e78=_0x1d3e14[_0x365555]['item'];_0x1c1baf['isBlock'](_0x4d3e78)||_0x1c1baf['isLimit'](_0x4d3e78)||(_0x1d3e14[_0x365555]['isAdded']&&delete _0x1d3e14[_0x365555]['isAdded'],_0x1d3e14[_0x365555]['isAddSuggestion']&&delete _0x1d3e14[_0x365555]['isAddSuggestion'],_0x1d3e14[_0x365555]['isRemoveSuggestion']&&delete _0x1d3e14[_0x365555]['isRemoveSuggestion'],_0x1d3e14[_0x365555]['isRemoved']&&(_0x1d3e14[_0x365555]['isIncorrect']=!0x0));}return _0x1d3e14['filter'](_0x4f192c=>!_0x4f192c['isIncorrect']);}['_makeModelFromTape'](_0x312bed,_0x3de134,_0x540112){const _0x2498de=new _0x19df77(),_0x13a7a0=[],_0x2ccd3f=new Map(),_0x15c09e=this['editor']['model'],_0x2c361f=_0x15c09e['schema'],_0x53137f=[_0x2498de],_0x4a7744={},_0x10fe11={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4e7fad=null;const _0x3ff235=[0x0];for(let _0x32c591=0x0;_0x32c591<_0x312bed['length'];_0x32c591++)if('elementStart'===_0x312bed[_0x32c591]['type']){_0x312bed[_0x32c591]['previousPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235);const _0x59a84a=new _0x439a4c(_0x312bed[_0x32c591]['item']['name'],_0x312bed[_0x32c591]['item']['getAttributes']());_0x53137f[0x0]['_appendChild'](_0x59a84a),_0x3ff235['push'](0x0),_0x53137f['unshift'](_0x59a84a),_0x312bed[_0x32c591]['nextPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235);}else'elementEnd'===_0x312bed[_0x32c591]['type']?(_0x53137f['shift'](),_0x312bed[_0x32c591]['previousPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235),_0x3ff235['pop'](),_0x3ff235[_0x3ff235['length']-0x1]++,_0x312bed[_0x32c591]['nextPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235)):(_0x312bed[_0x32c591]['previousPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235),_0x4e7fad?_0x4e7fad['_data']+=_0x312bed[_0x32c591]['item']['data']:_0x4e7fad=new _0x338a17(_0x312bed[_0x32c591]['item']['data'],_0x312bed[_0x32c591]['item']['getAttributes']()),_0x312bed[_0x32c591+0x1]&&'text'===_0x312bed[_0x32c591+0x1]['type']&&_0x4edb81(_0x4e7fad,_0x312bed[_0x32c591+0x1]['item'])||(_0x53137f[0x0]['_appendChild'](_0x4e7fad),_0x4e7fad=null),_0x3ff235[_0x3ff235['length']-0x1]+=_0x312bed[_0x32c591]['item']['offsetSize'],_0x312bed[_0x32c591]['nextPosition']=_0x15c09e['createPositionFromPath'](_0x2498de,_0x3ff235));for(let _0x3fb4ed=0x0;_0x3fb4ed<_0x312bed['length'];_0x3fb4ed++){const _0x5ca62e=_0x312bed[_0x3fb4ed]['previousPosition'],_0x4b6173=_0x312bed[_0x3fb4ed]['nextPosition'];for(const _0x4f4261 of _0x312bed[_0x3fb4ed]['markersStart'])_0x2ccd3f['set'](_0x4f4261,{'start':_0x5ca62e,'end':null});_0x580a46('isRemoveSuggestion',_0x3fb4ed,_0x5ca62e,_0x4b6173),_0x580a46('isAddSuggestion',_0x3fb4ed,_0x5ca62e,_0x4b6173),_0x580a46('isRemoved',_0x3fb4ed,_0x5ca62e,_0x4b6173),_0x580a46('isAdded',_0x3fb4ed,_0x5ca62e,_0x4b6173);for(const _0x4ed57f of _0x312bed[_0x3fb4ed]['markersEnd']){const _0x4d6d00=_0x2ccd3f['get'](_0x4ed57f);_0x4d6d00?_0x4d6d00['end']=_0x4b6173:_0x2ccd3f['set'](_0x4ed57f,{'start':_0x4b6173,'end':_0x4b6173});}}for(const [_0x3eedf6,_0x5d3049]of _0x2ccd3f){const _0x3e6170=this['editor']['model']['createRange'](_0x5d3049['start'],_0x5d3049['end']);_0x2498de['markers']['set'](_0x3eedf6,_0x3e6170);}return _0x13a7a0['sort']((_0x5db6c2,_0x5ddca0)=>{const _0x3b6a2d=_0x2498de['markers']['get']('revision:'+_0x5db6c2['id']),_0x51649a=_0x2498de['markers']['get']('revision:'+_0x5ddca0['id']);return _0x3b6a2d['start']['isBefore'](_0x51649a['start'])?-0x1:_0x3b6a2d['start']['isAfter'](_0x51649a['start'])?0x1:_0x3b6a2d['end']['isBefore'](_0x51649a['end'])?-0x1:_0x3b6a2d['end']['isAfter'](_0x51649a['end'])?0x1:'add'===_0x5db6c2['type']?-0x1:0x1;}),{'root':_0x2498de,'changes':_0x13a7a0};function _0x580a46(_0x21f4a5,_0x236144,_0x351c0d,_0x220339){const _0xcb0997=!!_0x312bed[_0x236144][_0x21f4a5],_0x2b12d4=_0xcb0997?_0x312bed[_0x236144][_0x21f4a5]['userId']:null,_0x24dd56=_0x236144===_0x312bed['length']-0x1,_0x25c64a=_0x10fe11[_0x21f4a5][0x0],_0x1b451e=_0x2c361f['isObject'](_0x312bed[_0x236144]['item']);!_0x4a7744[_0x21f4a5]&&_0xcb0997?_0x4a7744[_0x21f4a5]={'start':_0x351c0d,'tapeItem':_0x312bed[_0x236144],'userId':_0x2b12d4,'type':_0x21f4a5}:_0x4a7744[_0x21f4a5]&&!_0xcb0997?(_0x4a7744[_0x21f4a5]['end']=_0x351c0d,_0x561a7b(_0x4a7744[_0x21f4a5]),_0x4a7744[_0x21f4a5]=null):_0x4a7744[_0x21f4a5]&&_0xcb0997&&_0x4a7744[_0x21f4a5]['userId']!==_0x2b12d4&&(_0x4a7744[_0x21f4a5]['end']=_0x351c0d,_0x25c64a&&_0x25c64a['userId']===_0x4a7744[_0x21f4a5]['userId']||_0x561a7b(_0x4a7744[_0x21f4a5]),_0x4a7744[_0x21f4a5]={'start':_0x351c0d,'tapeItem':_0x312bed[_0x236144],'userId':_0x2b12d4,'type':_0x21f4a5}),_0x4a7744[_0x21f4a5]&&_0x1b451e&&('elementStart'!==_0x312bed[_0x236144]['type']||_0x25c64a&&_0x25c64a['userId']===_0x2b12d4||_0x10fe11[_0x21f4a5]['unshift']({'userId':_0x2b12d4,'object':_0x312bed[_0x236144]['item'],'change':_0x4a7744[_0x21f4a5]}),'elementEnd'===_0x312bed[_0x236144]['type']&&_0x25c64a&&_0x25c64a['object']===_0x312bed[_0x236144]['item']&&(_0x10fe11[_0x21f4a5]['shift'](),_0x4a7744[_0x21f4a5]=_0x25c64a['change'])),_0x4a7744[_0x21f4a5]&&_0x24dd56&&(_0x4a7744[_0x21f4a5]['end']=_0x220339,_0x561a7b(_0x4a7744[_0x21f4a5]),_0x4a7744[_0x21f4a5]=null);}function _0x561a7b({start:_0x21d5fa,end:_0x198187,tapeItem:_0x3fc0aa,userId:_0x2f6ca5,type:_0x5dbd40}){const _0x4ddfb2=_0x3fc0aa['item'],_0x4ffeff=_0x15c09e['schema']['isBlock'](_0x4ddfb2)&&!_0x15c09e['schema']['isLimit'](_0x4ddfb2),_0x580582=_0x21d5fa['nodeAfter']==_0x198187['parent']&&_0x198187['isAtStart'];if(_0x4ffeff&&_0x580582)return;const _0x5cbd51=_0x15c09e['createRange'](_0x21d5fa,_0x198187),_0x25527f=_0x3de134['get'](_0x2f6ca5),_0x52e8b0=new G({'author':_0x25527f,'type':'isAdded'==_0x5dbd40||'isAddSuggestion'==_0x5dbd40?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5dbd40||'isRemoveSuggestion'==_0x5dbd40},'createdAt':new Date(),'rootName':_0x540112});_0x13a7a0['push'](_0x52e8b0),_0x2498de['markers']['set']('revision:'+_0x52e8b0['id'],_0x5cbd51);}function _0x4edb81(_0x2f58ad,_0x382fc7){const _0x15d29d=_0x2f58ad['getAttributes'](),_0x310090=_0x382fc7['getAttributes']();for(const _0x58d804 of _0x15d29d){if(_0x58d804[0x1]!==_0x382fc7['getAttribute'](_0x58d804[0x0]))return!0x1;_0x310090['next']();}return _0x310090['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x45e567=>{const _0x4ae1f7=_0x45e567['markerName']['split'](':')[0x1],_0x1d5fd2=this['_getChangeFromId'](_0x4ae1f7);if(!_0x1d5fd2)return null;const _0x170c5f='add'==_0x1d5fd2['type']?'insertion':'deletion',_0xdc4f2e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x170c5f];return _0x1d5fd2['data']['isSuggestion']&&_0xdc4f2e['push']('ck-suggestion-marker-'+_0x170c5f+'-new'),this['activeChange']==_0x1d5fd2&&_0xdc4f2e['push']('ck-suggestion-marker--active'),{'classes':_0xdc4f2e,'attributes':{'data-change-id':_0x4ae1f7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x428c65=>{_0x428c65['on']('element:pre',(_0x343f3a,_0x20dfb8,_0x2d4e7d)=>{const _0x7330fb=_0x20dfb8['viewItem']['getChild'](0x0);if(!_0x7330fb||!_0x7330fb['is']('element','code'))return;if(!_0x2d4e7d['consumable']['consume'](_0x7330fb,{'attributes':['vid_start','vid_end']}))return;const _0x36cef3=_0x20dfb8['modelRange']['start']['nodeAfter'];_0x2d4e7d['writer']['setAttribute']('vid_start',_0x7330fb['getAttribute']('vid_start'),_0x36cef3),_0x2d4e7d['writer']['setAttribute']('vid_end',_0x7330fb['getAttribute']('vid_end'),_0x36cef3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x374361=>{_0x374361['on']('element',(_0x22121b,_0x2e2c0a,_0x163093)=>{if(!_0x163093['consumable']['consume'](_0x2e2c0a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2e2c0a['modelRange']['isCollapsed'])return;const _0x2fd355=_0x2e2c0a['modelRange']['start']['nodeAfter'];_0x2fd355['hasAttribute']('vid_start')||_0x2fd355['hasAttribute']('vid')||(_0x163093['writer']['setAttribute']('vid_start',_0x2e2c0a['viewItem']['getAttribute']('vid_start'),_0x2fd355),_0x163093['writer']['setAttribute']('vid_end',_0x2e2c0a['viewItem']['getAttribute']('vid_end'),_0x2fd355));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2952d6=>_0x2952d6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1356fd,[,_0x4c037b])=>{['vid_start','vid_end','vid']['includes'](_0x4c037b)&&(_0x1356fd['return']=!0x0,_0x1356fd['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3e1c06=>{_0x3e1c06['on']('attribute:vid',(_0x3ea40e,_0x26f8e7,_0x21f675)=>{if('\x20'!=_0x26f8e7['item']['data']||_0x26f8e7['item']['parent']['maxOffset']>0x1)return;if(!_0x21f675['consumable']['consume'](_0x26f8e7['item'],_0x3ea40e['name']))return;const _0x8412=_0x21f675['writer'],_0x2e3056=_0x21f675['mapper']['toViewRange'](_0x26f8e7['range']);_0x8412['wrap'](_0x2e3056,_0x8412['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xea825f){const _0x17f3b3=_0xea825f['plugins']['get']('RevisionViewer');return(_0x4455a9,_0x1c7516,_0x2fc45e)=>{const _0x1513f3=_0x1c7516['markerName']['split'](':')[0x1],_0x18ceb6=_0x17f3b3['_getChangeFromId'](_0x1513f3);if(!_0x18ceb6)return null;const _0x18243a='add'==_0x18ceb6['type']?'split':'merge';if(!_0x2fc45e['consumable']['test'](_0x1c7516['markerRange'],_0x4455a9['name']))return;const _0x27f979=_0x1c7516['markerRange']['getWalker'](),_0x21eed5=_0x1c7516['markerRange']['start'],_0x164714=_0xea825f['model']['schema'];let _0x116571=null,_0x3d8683=null,_0x25cfe=!0x1,_0x7c4dad=!0x1;for(const _0x369919 of _0x27f979){const _0x43d6c9=_0x369919['item'];_0x25cfe=_0x25cfe||_0x164714['isContent'](_0x43d6c9);const _0x313f26=_0x2fc45e['mapper']['toViewElement'](_0x43d6c9);if(_0x313f26&&_0x313f26['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x369919['type']&&(_0x164714['isBlock'](_0x43d6c9)&&!_0x164714['isLimit'](_0x43d6c9)&&(_0x43d6c9['nextSibling']||_0x21eed5['isAtEnd']?_0x116571&&_0x116571['parent']==_0x43d6c9||(_0x116571=_0x43d6c9,_0xde635(_0x369919['previousPosition']),_0x7c4dad=!0x0):_0x3d8683=_0x3d8683||_0x369919['previousPosition']));}function _0xde635(_0x591bcf){const _0x50a73d=_0x2fc45e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18243a}),_0xaf3374=_0x2fc45e['mapper']['toViewPosition'](_0x591bcf);_0x18ceb6['data']['isSuggestion']&&_0x2fc45e['writer']['addClass']('ck-suggestion-marker-'+_0x18243a+'-new',_0x50a73d),_0x17f3b3['activeChange']==_0x18ceb6&&_0x2fc45e['writer']['addClass']('ck-suggestion-marker--active',_0x50a73d),_0x2fc45e['writer']['insert'](_0xaf3374,_0x50a73d),_0x2fc45e['mapper']['bindElementToMarker'](_0x50a73d,_0x1c7516['markerName']);}_0x25cfe||_0x7c4dad||!_0x3d8683||_0xde635(_0x3d8683);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x284586,_0x205c1d,_0x4192e3)=>{const _0x258500=_0x4192e3['mapper']['markerNameToElements'](_0x205c1d['markerName']);if(_0x258500){for(const _0x41cb52 of _0x258500)(_0x41cb52['hasClass']('ck-suggestion-marker-split')||_0x41cb52['hasClass']('ck-suggestion-marker-merge'))&&(_0x4192e3['mapper']['unbindElementFromMarkerName'](_0x41cb52,_0x205c1d['markerName']),_0x4192e3['writer']['remove'](_0x41cb52));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x43329d,_0x581dfe,_0x408729)=>{const _0x55d65f=_0x581dfe['markerName']['split'](':')[0x1],_0x47ea8c=this['_getChangeFromId'](_0x55d65f);if(!_0x47ea8c)return null;const _0x5f8c15='add'==_0x47ea8c['type']?'split':'merge';if(_0x408729['consumable']['test'](_0x581dfe['markerRange'],_0x43329d['name']))for(const _0x36abcb of _0x581dfe['markerRange']['getItems']()){if(!_0x36abcb['is']('element','softBreak'))continue;const _0x4447eb=_0x408729['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f8c15}),_0x55b073=_0x408729['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x36abcb));_0x47ea8c['data']['isSuggestion']&&_0x408729['writer']['addClass']('ck-suggestion-marker-'+_0x5f8c15+'-new',_0x4447eb),this['activeChange']==_0x47ea8c&&_0x408729['writer']['addClass']('ck-suggestion-marker--active',_0x4447eb),_0x408729['writer']['insert'](_0x55b073,_0x4447eb),_0x408729['mapper']['bindElementToMarker'](_0x4447eb,_0x581dfe['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xbcfafc=>{for(const _0x2e4076 of this['editor']['model']['document']['getRootNames']()){const _0x1e82a3=this['editor']['model']['document']['getRoot'](_0x2e4076),_0x548cb0=this['editor']['editing']['view']['document']['getRoot'](_0x2e4076);if(_0x548cb0){const _0x44e103=_0x1e82a3['getAttribute']('revisionHistoryAttachChange');if(_0xbcfafc['removeAttribute']('data-change-id',_0x548cb0),_0xbcfafc['removeClass']('ck-revision-history-root-add',_0x548cb0),_0xbcfafc['removeClass']('ck-revision-history-root-remove',_0x548cb0),_0xbcfafc['removeClass']('ck-revision-history-root--active',_0x548cb0),_0x44e103){const _0x25e645=this['_getChangeFromId'](_0x44e103);if(!_0x25e645)return null;_0xbcfafc['setAttribute']('data-change-id',_0x44e103,_0x548cb0),_0xbcfafc['addClass']('ck-revision-history-root-'+_0x25e645['type'],_0x548cb0),this['activeChange']==_0x25e645&&_0xbcfafc['addClass']('ck-revision-history-root--active',_0x548cb0);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3f1ebf=>'revision-comment:'+_0x3f1ebf,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x35aec6=>'revision-suggestion:'+_0x35aec6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x463bef=>({'name':'suggestion:'+_0x463bef,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x15b512=>{const _0x5ad4b9=_0x15b512['markerName']['split'](':')[0x1];return'insertion'!=_0x5ad4b9&&'deletion'!=_0x5ad4b9?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5ad4b9]};}}),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',(_0xea674b,_0x3a3cc4,_0x375d72)=>{const _0x548653=_0x375d72['mapper']['markerNameToElements'](_0x3a3cc4['markerName']);if(_0x548653){for(const _0x1a3bbb of _0x548653)_0x1a3bbb['is']('uiElement')&&(_0x375d72['mapper']['unbindElementFromMarkerName'](_0x1a3bbb,_0x3a3cc4['markerName']),_0x375d72['writer']['remove'](_0x1a3bbb));}},{'priority':'high'});}['_getChangeFromId'](_0x47316e){return this['_changeIdToChange']['get'](_0x47316e);}['_getViewForChange'](_0x31178d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x31178d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1d725f,_0x30d4e3,_0x1e5961,_0x466a4a)=>{_0x466a4a&&this['_balloon']['remove'](_0x466a4a),_0x1e5961&&(this['_balloon']['add']({'view':_0x1e5961,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2dece1=this['editor']['editing'],_0x44f6c1=this['_getChangeFromId'](_0x1e5961['changeId']);let _0x453645;if(_0x44f6c1['data']['isOnRoot']){const _0x13c077=_0x2dece1['view']['getDomRoot'](_0x44f6c1['rootName']);_0x453645=Array['from'](_0x13c077['getClientRects']());}else{const _0x443e3d=this['editor']['model']['markers']['get']('revision:'+_0x1e5961['changeId']);_0x453645=Array['from'](_0x2dece1['mapper']['markerNameToElements'](_0x443e3d['name']))['map'](_0x1a0461=>_0x2dece1['view']['domConverter']['mapViewToDom'](_0x1a0461))['map'](_0x3f8c15=>Array['from'](_0x3f8c15['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x453645[0x0];return _0x453645['find'](_0x597183=>_0x597183['top']-0x3<=this['_activeViewTarget']['y']&&_0x597183['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x597183['left']-0x3<=this['_activeViewTarget']['x']&&_0x597183['right']+0x3>=this['_activeViewTarget']['x'])||_0x453645[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xe5379d,_0x7d9c65,_0x37525d,_0x46152d)=>{this['activeView']=_0x37525d?this['_getViewForChange'](_0x37525d):null,this['editor']['model']['change'](()=>{const _0x287912=this['editor']['editing'];_0x46152d&&(_0x46152d['data']['isOnRoot']?_0x287912['view']['change'](_0x396e8a=>{_0x396e8a['removeClass']('ck-revision-history-root--active',_0x287912['view']['document']['getRoot'](_0x46152d['rootName']));}):_0x287912['reconvertMarker']('revision:'+_0x46152d['id'])),_0x37525d&&(_0x37525d['data']['isOnRoot']?_0x287912['view']['change'](_0x1bc946=>{_0x1bc946['addClass']('ck-revision-history-root--active',_0x287912['view']['document']['getRoot'](_0x37525d['rootName']));}):_0x287912['reconvertMarker']('revision:'+_0x37525d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x360f28,_0x425670)=>{if(this['activeChange'])return;const _0x1e5da8=this['_findChangeIdFromDomTarget'](_0x425670['target']),_0x28fcd8=this['_changeIdToChange']['get'](_0x1e5da8);_0x28fcd8?(this['_activeViewTarget']={'x':_0x425670['domEvent']['x'],'y':_0x425670['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x28fcd8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2384af,_0x314293)=>{const _0x335214=this['_findChangeIdFromDomTarget'](_0x314293['target']),_0x46ecaa=this['_changeIdToChange']['get'](_0x335214);_0x46ecaa?(this['_activeViewTarget']={'x':_0x314293['domEvent']['x'],'y':_0x314293['domEvent']['y']},_0x46ecaa===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x46ecaa):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5a4be3){do{const _0x5a0565=_0x5a4be3['getAttribute']('data-change-id');if(_0x5a0565)return _0x5a0565;_0x5a4be3=_0x5a4be3['parent'];}while(_0x5a4be3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xb14163=>{for(const _0x179ef4 of this['editor']['model']['markers'])_0xb14163['removeMarker'](_0x179ef4);});}}function Q(_0x3b8610,_0x30ec9e){return(_0x26191d,_0x3aa2e2,_0x305d87)=>{if(!_0x305d87['consumable']['test'](_0x3aa2e2['markerRange'],_0x26191d['name']))return;const _0x2bd3b3=_0x3aa2e2['markerRange']['getWalker'](),_0x855d67=_0x3aa2e2['markerRange']['start'],_0x1db532=_0x3b8610['model']['schema'];let _0x41a8a0=null,_0xcf50af=null,_0x13a632=!0x1,_0x4d9033=!0x1;for(const _0x648f19 of _0x2bd3b3){const _0x2ce630=_0x648f19['item'];_0x13a632=_0x13a632||_0x1db532['isContent'](_0x2ce630);const _0x411205=_0x305d87['mapper']['toViewElement'](_0x2ce630);if(_0x411205&&_0x411205['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x648f19['type']&&(_0x1db532['isBlock'](_0x2ce630)&&!_0x1db532['isLimit'](_0x2ce630)&&(_0x2ce630['nextSibling']||_0x855d67['isAtEnd']?_0x41a8a0&&_0x41a8a0['parent']==_0x2ce630||(_0x41a8a0=_0x2ce630,_0x337d48(_0x648f19['previousPosition']),_0x4d9033=!0x0):_0xcf50af=_0xcf50af||_0x648f19['previousPosition']));}function _0x337d48(_0x1ee7ab){const _0x556a66=_0x305d87['mapper']['toViewPosition'](_0x1ee7ab),_0x339fdb=_0x305d87['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x30ec9e});_0x305d87['writer']['insert'](_0x556a66,_0x339fdb),_0x305d87['mapper']['bindElementToMarker'](_0x339fdb,_0x3aa2e2['markerName']);}_0x13a632||_0x4d9033||!_0xcf50af||_0x337d48(_0xcf50af);};}class nt extends _0x31f7bf{constructor(_0x9c130c){super(_0x9c130c);const _0x34a245=_0x9c130c['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x34a245,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34a245,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3214f0=this['editor'],_0x1dee9d=_0x3214f0['plugins']['get'](u),_0x19e14d=_0x1dee9d['isReady']?_0x1dee9d['diff']['newRevisionId']:null;_0x3214f0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x19e14d);}['refresh'](){const {isReady:_0x529a4f,isEnabled:_0x4f7f2e,repository:_0x24f257,diff:_0x3142cc}=this['editor']['plugins']['get'](u),_0x4e4014=_0x3142cc&&_0x24f257['getLaterVisibleRevision'](_0x3142cc['newRevisionId']);this['isEnabled']=_0x529a4f&&_0x4f7f2e&&Boolean(_0x4e4014);}}class ot extends _0x31f7bf{['_step'];constructor(_0x1260d8,{direction:_0x9c13a4}){super(_0x1260d8);const _0x279355=_0x1260d8['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x9c13a4?0x1:-0x1,this['listenTo'](_0x279355,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x279355,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x279355,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3c1830=this['editor'],_0x4e7376=_0x3c1830['plugins']['get'](u),{isNavigationMode:_0x4d766c,currentChangeNumber:_0x2d4a81}=_0x4e7376;let _0x2b7aa6;if(_0x4e7376['activeChange']=_0x4d766c?_0x4e7376['diff']['changes']['get'](_0x2d4a81+this['_step']):_0x4e7376['diff']['changes']['first'],_0x4e7376['activeChange']['data']['isOnRoot'])_0x2b7aa6=_0x3c1830['editing']['view']['getDomRoot'](_0x4e7376['activeChange']['rootName']);else{const _0x2d5e2c=_0x3c1830['model']['markers']['get']('revision:'+_0x4e7376['activeChange']['id']);_0x2b7aa6=_0x111b7f(_0x3c1830['editing'],_0x2d5e2c);}_0x410781({'target':_0x2b7aa6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5c475c,currentChangeNumber:_0x335a91,numberOfChanges:_0x18cd17,isReady:_0x3540c8,isEnabled:_0x54cfec}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x54cfec&&_0x3540c8&&_0x18cd17)&&(!_0x5c475c||(0x1===this['_step']?_0x335a91<_0x18cd17-0x1:_0x335a91>0x0));}}class Ri extends _0x419e54{constructor(_0x28ad05){super(_0x28ad05);const _0x29fe26=this['bindTemplate'],_0x153c1b=new _0x398d9f(_0x28ad05),_0x50d551=new _0x398d9f(_0x28ad05);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',(_0x943cb0,_0x58a280)=>_0x943cb0&&_0x58a280>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x20a631,_0x220fa4,_0x20e708,_0x568757)=>{if(!_0x20a631)return m(_0x28ad05,'Loading...');if(!_0x20e708)return m(_0x28ad05,'No\x20changes');const _0x17f52e=m(_0x28ad05,'NUMBER_OF_CHANGES',_0x20e708);return _0x568757?m(_0x28ad05,'X_OF_Y_CHANGES',[_0x220fa4+0x1,_0x20e708]):_0x17f52e;}),_0x153c1b['set']({'label':m(_0x28ad05,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x209596}),_0x50d551['set']({'label':m(_0x28ad05,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1a2255}),_0x153c1b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x50d551['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x153c1b['on']('execute',()=>this['fire']('execute','backward')),_0x50d551['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',_0x29fe26['if']('_isStatusLabelVisible','ck-hidden',_0x19a574=>!_0x19a574)]},'children':[{'text':_0x29fe26['to']('isNavigationMode',_0x295533=>_0x295533?m(_0x28ad05,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x28ad05,'Total')+':\x20')}]},{'text':_0x29fe26['to']('_statusText')}]},new _0x188889(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x153c1b,_0x50d551]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x57da8b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x56eaad=this['editor']['editing']['view'];_0x56eaad['change'](_0x130cce=>{for(const _0x3867d0 of _0x56eaad['document']['roots'])_0x130cce['addClass'](ge,_0x3867d0);});}['hide'](){const _0x374704=this['editor']['editing']['view'];_0x374704['change'](_0x18ff76=>{for(const _0xaeeea6 of _0x374704['document']['roots'])_0x18ff76['removeClass'](ge,_0xaeeea6);});}}class v extends _0x57da8b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x20de70=this['editor'],_0x22f8cd=_0x20de70['plugins']['get'](u),_0xe5358d=_0x20de70['plugins']['get'](ji);_0x20de70['ui']['componentFactory']['add']('exitToEditing',_0x198e9e=>{const _0x29d93d=new _0x398d9f(_0x198e9e);return _0x29d93d['set']({'label':m(_0x198e9e,'Back\x20to\x20editing'),'icon':_0x590962,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x29d93d,'execute',()=>{_0x20de70['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x29d93d;}),_0x20de70['ui']['componentFactory']['add']('restoreRevision',_0x49482d=>{const _0x14982f=new _0x398d9f(_0x49482d);return _0x14982f['set']({'label':m(_0x49482d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x14982f['bind']('isEnabled')['to'](_0x20de70['commands']['get']('restoreRevision')),this['listenTo'](_0x14982f,'execute',()=>_0x20de70['execute']('restoreRevision')),_0x14982f;}),_0x20de70['ui']['componentFactory']['add']('changesNavigation',_0x334a36=>{const _0x11c39a=new Ri(_0x334a36),_0x3b60ce=_0x20de70['commands']['get']('showPreviousChange'),_0x38c82b=_0x20de70['commands']['get']('showNextChange');return _0x11c39a['bind']('isBackwardNavigationEnabled')['to'](_0x3b60ce,'isEnabled'),_0x11c39a['bind']('isForwardNavigationEnabled')['to'](_0x38c82b,'isEnabled'),_0x11c39a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x22f8cd),this['listenTo'](_0x11c39a,'execute',(_0x3d3c0c,_0x3f7e0c)=>{_0x20de70['execute']('forward'===_0x3f7e0c?'showNextChange':'showPreviousChange');}),_0x11c39a;}),_0xe5358d['show'](),_0x22f8cd['on']('change:isReady',(_0x90e009,_0x1f216f,_0x4f87aa)=>{_0x4f87aa?_0xe5358d['hide']():_0xe5358d['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x272c2c,_0x59431d){super(_0x272c2c,_0x59431d);const _0x1311a5=this['bindTemplate'];this['set']({'label':m(_0x272c2c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x272c2c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1311a5['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x59cf79=this['fieldView']['element'];this['_tooltipString']=_0x59cf79['scrollWidth']>_0x59cf79['clientWidth']&&_0x59cf79['value']||'';}}class vi extends _0x419e54{constructor(_0x17e2c7,_0x95cace,_0x4335cf){super(_0x17e2c7);const _0x51c134=new _0x3fa78e();_0x51c134['set']({'content':_0x4dc3ab,'viewBox':'0\x200\x2011\x2010'});const _0x1762c5=['ck','ck-revision-history-sidebar__revision-author'];_0x4335cf&&_0x1762c5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2ffd21=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x17e2c7,_0x4335cf?'Revision\x20creator':'Revision\x20author')},'children':[_0x51c134,_0x95cace['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1762c5},'children':_0x2ffd21});}}function mi(_0x13a6bd,_0x578f63){const _0x449f40=_0x13a6bd['bindTemplate'],_0x5b5c9a=_0x13a6bd['locale'],_0x354658=_0x40d317(_0x5b5c9a);_0x354658['panelPosition']='sw';const _0x493b8c=function(_0x284c86,_0x854d76){const _0x1c4598=function(_0x18000b,_0x2a1f8f){const _0x188e00=_0x18000b['locale'],_0x49fe1a={'Compare\x20against\x20selected':m(_0x188e00,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x188e00,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x188e00,'Restore\x20this\x20revision')};return _0x2a1f8f['map'](_0x3f3ade=>{const _0x542f00=_0x49fe1a[_0x3f3ade['name']];return _0x542f00&&_0x542f00!==_0x3f3ade['name']&&(_0x3f3ade['name']=_0x542f00),_0x3f3ade;});}(_0x284c86,_0x854d76),_0x2ec999=new _0x26acd1();for(const _0x5b963c of _0x1c4598){const _0x428424={'type':'button','model':new to({'label':_0x5b963c['name'],'class':_0x5b963c['class'],'withText':!0x0,'role':'menuitem','_action':_0x5b963c['action']})};_0x428424['model']['bind']('isEnabled')['to'](_0x284c86,'isActionsDropdownOpen',_0x26a8f9=>'function'!=typeof _0x5b963c['isEnabled']||(!_0x26a8f9||_0x5b963c['isEnabled'](_0x284c86))),_0x2ec999['add'](_0x428424);}return _0x2ec999;}(_0x13a6bd,_0x578f63);return _0x13a6bd['bind']('isActionsDropdownOpen')['to'](_0x354658,'isOpen'),_0x354658['buttonView']['set']({'label':m(_0x5b5c9a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x507256}),_0x354658['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x449f40['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x449f40['to'](_0x524246=>_0x524246['stopPropagation']())}}),_0x354658['on']('execute',_0x1b17ea=>{_0x13a6bd['isReady']&&'function'==typeof _0x1b17ea['source']['_action']&&_0x1b17ea['source']['_action'](_0x13a6bd);}),_0x32278e(_0x354658,_0x493b8c,{'role':'menu'}),_0x354658['listenTo'](_0x13a6bd,'change:isActionsDropdownOpen',(_0xc38546,_0x4c5bb8,_0x90ce34)=>{if(_0x90ce34)for(const _0x54d364 of _0x354658['listView']['items']){const _0x17b5d7=_0x54d364['children']['first'],_0x5e17ae=_0x578f63['find'](_0x123861=>_0x123861['action']===_0x17b5d7['_action'])['isVisible'];_0x54d364['isVisible']=void 0x0===_0x5e17ae||_0x5e17ae(_0x13a6bd);}}),_0x354658;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x4074c6,uid as _0x50a7a4,Collection as _0xa55e0,logWarning as _0x235798,FocusTracker as _0x2a533f,KeystrokeHandler as _0x49e430,scrollViewportToShowTarget as _0x45f3a0,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x3ecade}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3377cd,set as _0x52e359,unset as _0x5e39a8,isEqual as _0x38163c}from'es-toolkit/compat';import{Plugin as _0x4a1ed9,PendingActions as _0x3aa51a,Command as _0x434897,ElementApiMixin as _0x2ebce0,Editor as _0x35f932}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xd4b749,getMarkerDomElement as _0xc31b67,ConfirmMixin as _0x1a99d,sanitizeEditorConfig as _0x403bf2}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x2b8abe,ViewAttributeElement as _0x226f36,ViewEmptyElement as _0x98d2b7,ViewRawElement as _0x54b907,ViewUIElement as _0x15b1fb,ViewDocumentFragment as _0x509baf,ViewText as _0xac1d8b,ViewElement as _0x11b038,ModelElement as _0x563007,ModelRange as _0x413bd1,ModelPosition as _0x430199,ModelDocumentFragment as _0xbcec00,ModelText as _0x1a0518}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x5cfb23,IconChevronUp as _0x467896,IconChevronDown as _0x1307d4,IconUndo as _0x131b00,IconUser as _0x976bc5,IconThreeVerticalDots as _0x1d36f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x4a5c94,View as _0x46a24c,submitHandler as _0x52c0fa,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x57beb3,ListView as _0xa19344,ListItemView as _0x2da67b,ButtonView as _0x3edebb,MenuBarMenuView as _0x35307a,MenuBarMenuListView as _0x4b1f1c,MenuBarMenuListItemView as _0x1c0a1a,MenuBarMenuListItemButtonView as _0x28a639,ContextualBalloon as _0x393eb2,ToolbarSeparatorView as _0x2710cc,IconView as _0x4bea84,addListToDropdown as _0x37324e,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3fa356,StickyPanelView as _0xde1bad,ToolbarView as _0x2774ed,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x86c6ac}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4074c6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1ce20b){super(),this['id']=_0x1ce20b['id']||_0x50a7a4(),this['creator']=_0x1ce20b['creator']||null,this['authors']=_0x1ce20b['authors']||[],this['diffData']=_0x1ce20b['diffData']||null,this['toVersion']=_0x1ce20b['toVersion']||0x0,this['fromVersion']=_0x1ce20b['fromVersion']||0x0,this['set']('name',_0x1ce20b['name']||''),this['set']('createdAt',_0x1ce20b['createdAt']||new Date()),this['set']('attributes',_0x1ce20b['attributes']||{});}['setName'](_0x1acd5f){this['_update']({'name':_0x1acd5f});}['setAttribute'](_0xe98a3,_0x4ef330){const _0x25e8e5=_0x3377cd(this['attributes']);_0x52e359(_0x25e8e5,_0xe98a3,_0x4ef330),this['_update']({'attributes':_0x25e8e5});}['removeAttribute'](_0x18eb70){const _0x465c49=_0x3377cd(this['attributes']);_0x5e39a8(_0x465c49,_0x18eb70),this['_update']({'attributes':_0x465c49});}['_update'](_0x5ad3a2,_0x5ce90f=!0x1){let _0x3f5a57=!0x1;const _0x2fa130={'id':this['id']},_0x117584=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3f1b83 of _0x117584){const _0x304af4=_0x5ad3a2[_0x3f1b83];void 0x0!==_0x304af4&&_0x304af4!==this[_0x3f1b83]&&(this[_0x3f1b83]=_0x304af4,_0x2fa130[_0x3f1b83]=_0x304af4,_0x3f5a57=!0x0);}_0x3f5a57&&(_0x2fa130['authors']&&(_0x2fa130['authorsIds']=_0x2fa130['authors']['map'](_0x3cd41f=>_0x3cd41f['id']),delete _0x2fa130['authors']),this['fire']('_update',_0x2fa130,_0x5ce90f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xff5ca1=>_0xff5ca1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x4a1ed9{['_revisions'];static get['requires'](){return[_0xd4b749];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x14b89d){super(_0x14b89d),this['_revisions']=new _0xa55e0();}['afterInit'](){!async function(_0x475330){const _0x474706=_0x39e491([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x4c64fa=0xeb829,_0x537801=0x359e09b0,_0x5f388e=0x35997e68^_0x537801,_0x2099e0=window[_0x39e491([0x44,0x61,0x74,0x65])][_0x39e491([0x6e,0x6f,0x77])](),_0x55e3bc=_0x475330[_0x39e491([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a849f=new window[(_0x39e491([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d6988=>{_0x55e3bc[_0x39e491([0x6f,0x6e,0x63,0x65])](_0x39e491([0x72,0x65,0x61,0x64,0x79]),_0x2d6988);}),_0x1f6726={[_0x39e491([0x6b,0x74,0x79])]:_0x39e491([0x45,0x43]),[_0x39e491([0x75,0x73,0x65])]:_0x39e491([0x73,0x69,0x67]),[_0x39e491([0x63,0x72,0x76])]:_0x39e491([0x50,0x2d,0x32,0x35,0x36]),[_0x39e491([0x78])]:_0x39e491([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]),[_0x39e491([0x79])]:_0x39e491([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]),[_0x39e491([0x61,0x6c,0x67])]:_0x39e491([0x45,0x53,0x32,0x35,0x36])},_0x11c662=_0x55e3bc[_0x39e491([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39e491([0x67,0x65,0x74])](_0x39e491([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x421423(){let _0x273fc5,_0x23de54=null,_0xd57b26=null;try{if(_0x11c662==_0x39e491([0x47,0x50,0x4c]))return _0x39e491([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x273fc5=_0x5b8641(),!_0x273fc5)return _0x39e491([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x273fc5[_0x39e491([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd57b26=_0x5157e3(_0x273fc5[_0x39e491([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x273fc5[_0x39e491([0x6a,0x74,0x69])])),await _0x1fd930()?_0x5af067()?_0x5ce642()?_0x39e491([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x376e31()?(_0x273fc5[_0x39e491([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39e491([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23de54=_0x5473a9(_0x39e491([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x273fc5[_0x39e491([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39e491([0x74,0x72,0x69,0x61,0x6c])&&(_0x23de54=_0x5473a9(_0x39e491([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb1dfab()):_0x39e491([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39e491([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39e491([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x39e491([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ce642(){const _0x3b76e3=[_0x39e491([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39e491([0x74,0x72,0x69,0x61,0x6c])][_0x39e491([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x273fc5[_0x39e491([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2099e0/0x3e8:0xe10*_0x5f388e;return _0x273fc5[_0x39e491([0x65,0x78,0x70])]<_0x3b76e3;}function _0x5af067(){const _0x1a48fd=_0x273fc5[_0x39e491([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1a48fd)return!0x1;if(_0x1a48fd[_0x39e491([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39e491([0x2a])))return!0x0;if(_0x1a48fd[_0x39e491([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39e491([0x52,0x48])))return!0x0;if(_0x1a48fd[_0x39e491([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39e491([0x52,0x52,0x48]))){if(_0x257721())return!0x0;if(_0x5d33c5()||_0x1ce9d7())return!0x0;}return!0x1;}function _0x376e31(){const _0x201541=_0x273fc5[_0x39e491([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x201541||0x0==_0x201541[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16e7e7}=new URL(window[_0x39e491([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x201541[_0x39e491([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e7e7))return!0x0;const _0x2a8d1f=_0x16e7e7[_0x39e491([0x73,0x70,0x6c,0x69,0x74])](_0x39e491([0x2e]));return _0x201541[_0x39e491([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53b548=>_0x53b548[_0x39e491([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39e491([0x2a])))[_0x39e491([0x6d,0x61,0x70])](_0x1ec6df=>_0x1ec6df[_0x39e491([0x73,0x70,0x6c,0x69,0x74])](_0x39e491([0x2e])))[_0x39e491([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eacda=>_0x3eacda[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a8d1f[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39e491([0x6d,0x61,0x70])](_0x2ff4a=>Array(_0x2a8d1f[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ff4a[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39e491([0x66,0x69,0x6c,0x6c])](_0x2ff4a[0x0]===_0x39e491([0x2a])?_0x39e491([0x2a]):'')[_0x39e491([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ff4a))[_0x39e491([0x73,0x6f,0x6d,0x65])](_0x5f3a0d=>_0x2a8d1f[_0x39e491([0x65,0x76,0x65,0x72,0x79])]((_0x5c299e,_0x5e16bb)=>_0x5f3a0d[_0x5e16bb]===_0x5c299e||_0x5f3a0d[_0x5e16bb]===_0x39e491([0x2a])));}function _0xb1dfab(){return _0x23de54&&_0xd57b26?new window[(_0x39e491([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30dce8,_0x561cea)=>{_0x23de54[_0x39e491([0x74,0x68,0x65,0x6e])](_0x30dce8,_0x561cea),_0xd57b26[_0x39e491([0x74,0x68,0x65,0x6e])](_0x5f1f9a=>{_0x5f1f9a!=_0x39e491([0x56,0x61,0x6c,0x69,0x64])&&_0x30dce8(_0x5f1f9a);},_0x561cea);}):_0x23de54||_0xd57b26||_0x39e491([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5157e3(_0x5bb2ab,_0x4d6c4b){return new window[(_0x39e491([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x485d73=>{if(_0x368445())return _0x485d73(_0x39e491([0x56,0x61,0x6c,0x69,0x64]));_0x19ef3a(),_0x55e3bc[_0x39e491([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39e491([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b9212=!0x1;const _0x4562c6=_0x50a7a4();function _0x2f3578(_0x4ddef2){return!!_0x4ddef2&&(typeof _0x4ddef2===_0x39e491([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ddef2===_0x39e491([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ddef2[_0x39e491([0x74,0x68,0x65,0x6e])]===_0x39e491([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ddef2[_0x39e491([0x63,0x61,0x74,0x63,0x68])]===_0x39e491([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c5681(_0x2d2808){_0x134acb(_0x2d2808)[_0x39e491([0x74,0x68,0x65,0x6e])](_0x90d1f9=>{if(!_0x90d1f9||_0x90d1f9[_0x39e491([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39e491([0x6f,0x6b]))return _0x39e491([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcf942c(_0x13ab5f(_0x4562c6+_0x4d6c4b))!=_0x90d1f9[_0x39e491([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39e491([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39e491([0x56,0x61,0x6c,0x69,0x64]);})[_0x39e491([0x74,0x68,0x65,0x6e])](_0xf29c1b=>(_0x427312(),_0xf29c1b),()=>{const _0x4c7ef0=_0x439577();return null==_0x4c7ef0?(_0x427312(),_0x39e491([0x56,0x61,0x6c,0x69,0x64])):_0x39e491(_0x2099e0-_0x4c7ef0>(0x11928db0^_0x537801)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39e491([0x74,0x68,0x65,0x6e])](_0x485d73)[_0x39e491([0x63,0x61,0x74,0x63,0x68])](()=>{_0x485d73(_0x39e491([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52e53a=0x35a8e730^_0x537801;function _0x427312(){const _0x1e0138=_0x39e491([0x6c,0x6c,0x63,0x74,0x2d])+_0xcf942c(_0x13ab5f(_0x5bb2ab)),_0x2e3006=_0x2b06fe(_0xcf942c(window[_0x39e491([0x4d,0x61,0x74,0x68])][_0x39e491([0x63,0x65,0x69,0x6c])](_0x2099e0/_0x52e53a)));window[_0x39e491([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39e491([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e0138,_0x2e3006);}function _0x439577(){const _0x1f7671=_0x39e491([0x6c,0x6c,0x63,0x74,0x2d])+_0xcf942c(_0x13ab5f(_0x5bb2ab)),_0x9143e4=window[_0x39e491([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39e491([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f7671);return _0x9143e4?window[_0x39e491([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b06fe(_0x9143e4),0x10)*_0x52e53a:null;}function _0x134acb(_0x5e2690){return new window[(_0x39e491([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x429f0a,_0x6e02af)=>{_0x5e2690[_0x39e491([0x74,0x68,0x65,0x6e])](_0x429f0a,_0x6e02af),window[_0x39e491([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6e02af,0x359fdd70^_0x537801);});}}_0x55e3bc[_0x39e491([0x6f,0x6e])](_0x39e491([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58114d,_0x2f65f2)=>{if(_0x2f65f2[0x0]!=_0x5bb2ab)return _0x485d73(_0x39e491([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f65f2[0x1]={..._0x2f65f2[0x1],[_0x39e491([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4562c6};},{[_0x39e491([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39e491([0x68,0x69,0x67,0x68])}),_0x55e3bc[_0x39e491([0x6f,0x6e])](_0x39e491([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x551546=>{_0x2f3578(_0x551546[_0x39e491([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b9212=!0x0,_0x4c5681(_0x551546[_0x39e491([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39e491([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39e491([0x6c,0x6f,0x77])}),_0x5a849f[_0x39e491([0x74,0x68,0x65,0x6e])](()=>{_0x5b9212||_0x485d73(_0x39e491([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x368445(){return _0x55e3bc[_0x39e491([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39e491([0x76,0x69,0x65,0x77])][_0x39e491([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39e491([0x61,0x75,0x74,0x6f]);}function _0x19ef3a(){_0x55e3bc[_0x39e491([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39e491([0x76,0x69,0x65,0x77])][_0x39e491([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39e491([0x61,0x75,0x74,0x6f]);}}function _0x5473a9(_0x380ac6){const _0x15f89a=[new window[(_0x39e491([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50791f=>setTimeout(_0x50791f,0x3597377c^_0x537801)),_0x5a849f[_0x39e491([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39e491([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47a89a=>{const _0x2e3b15=0x359e09b7^_0x537801,_0x228eb4=_0x475330[_0x39e491([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4ad918(){_0x228eb4[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2e3b15&&_0x47a89a();}_0x4ad918(),_0x228eb4[_0x39e491([0x6f,0x6e])](_0x39e491([0x61,0x64,0x64]),_0x4ad918);})),new window[(_0x39e491([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f839b=>{function _0x4fedcb(){for(const _0x4193d6 in window)if(window[_0x39e491([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x39e491([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4193d6))&&window[_0x4193d6]==_0x4c64fa)return _0x3f839b();_0x55e3bc[_0x39e491([0x73,0x74,0x61,0x74,0x65])]!=_0x39e491([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x39e491([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fedcb,0x359e1a38^_0x537801);}_0x320e18(_0x39e491([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4fedcb();})];return window[_0x39e491([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39e491([0x72,0x61,0x63,0x65])](_0x15f89a)[_0x39e491([0x74,0x68,0x65,0x6e])](()=>_0x380ac6);}async function _0x47e483(){if(await _0x5a849f,_0x320e18(_0x39e491([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x54f1a8=_0x475330[_0x39e491([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x23946e=_0x475330[_0x39e491([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])](_0x54f1a8[_0x39e491([0x69,0x64])]),_0x4991f0=_0x4b8016(_0x39e491([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4991f0[_0x39e491([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x54f1a8['id'],_0x23946e?_0x23946e['id']:null,!0x0),_0x4991f0[_0x39e491([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39e491([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4991f0[_0x39e491([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4991f0[_0x39e491([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x10aab7,void(_0x4991f0[_0x39e491([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x10aab7);}if(_0x320e18(_0x39e491([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x98e5cf=_0x4b8016(_0x39e491([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x98e5cf[_0x39e491([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x39e491([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x98e5cf[_0x39e491([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x98e5cf[_0x39e491([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x10aab7,_0x98e5cf[_0x39e491([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x10aab7;}_0x55e3bc[_0x39e491([0x6d,0x6f,0x64,0x65,0x6c])][_0x39e491([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10aab7,_0x55e3bc[_0x39e491([0x6d,0x6f,0x64,0x65,0x6c])][_0x39e491([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10aab7,_0x55e3bc[_0x39e491([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39e491([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x257721(){return _0x320e18(_0x39e491([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4b8016(_0x39e491([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x39e491([0x73,0x74,0x61,0x74,0x65])]==_0x39e491([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5d33c5(){return _0x320e18(_0x39e491([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 _0x1ce9d7(){return _0x320e18(_0x39e491([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x308b31(_0x3a016a){const _0x41dd67=_0x18b98b();_0x55e3bc[_0x41dd67]=_0x39e491([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])+_0x3a016a,_0x3a016a[_0x39e491([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x39e491([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x18b98b()]=_0x4c64fa),_0x3a016a!=_0x39e491([0x56,0x61,0x6c,0x69,0x64])&&_0x47e483();}function _0x18b98b(){const _0x4e1751=window[_0x39e491([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39e491([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39e491([0x6e,0x6f,0x77])]())[_0x39e491([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39e491([0x2e]),'');let _0x549daa=_0x39e491([0x76]);for(let _0x116a8a=0x0;_0x116a8a<_0x4e1751[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x116a8a+=0x2){let _0x17cb86=window[_0x39e491([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e1751[_0x39e491([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x116a8a,_0x116a8a+0x2));_0x17cb86>=_0x474706[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17cb86-=_0x474706[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x549daa+=_0x474706[_0x17cb86];}return _0x549daa;}function _0x5b8641(){const _0x1e8666=_0x11c662[_0x39e491([0x73,0x70,0x6c,0x69,0x74])](_0x39e491([0x2e]));if(0x3!=_0x1e8666[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x321f48(_0x1e8666[0x1]);function _0x321f48(_0x17410f){const _0x4a4760=_0x3c8c5e(_0x17410f);return _0x4a4760&&_0x14881e()?_0x4a4760:null;function _0x14881e(){const _0x34dac4=_0x4a4760[_0x39e491([0x6a,0x74,0x69])],_0xb52eab=window[_0x39e491([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34dac4[_0x39e491([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34dac4[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3559ba={..._0x4a4760,[_0x39e491([0x6a,0x74,0x69])]:_0x34dac4[_0x39e491([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34dac4[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3559ba[_0x39e491([0x76,0x63])],_0x13ab5f(_0x3559ba)==_0xb52eab;}}}async function _0x1fd930(){let _0x1e51b1=!0x0;try{const _0x24a02f=_0x11c662[_0x39e491([0x73,0x70,0x6c,0x69,0x74])](_0x39e491([0x2e])),[_0x3ab636,_0x36aaae,_0x1a6cd3]=_0x24a02f;return _0x35b73c(_0x3ab636),await _0x8e7ad0(_0x3ab636,_0x36aaae,_0x1a6cd3),_0x1e51b1;}catch{return!0x1;}function _0x35b73c(_0x441a05){const _0x4c41e6=_0x3c8c5e(_0x441a05);_0x4c41e6&&_0x4c41e6[_0x39e491([0x61,0x6c,0x67])]==_0x39e491([0x45,0x53,0x32,0x35,0x36])||(_0x1e51b1=!0x1);}async function _0x8e7ad0(_0x4aed30,_0x280d1b,_0x405a89){const _0x185918=window[_0x39e491([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39e491([0x66,0x72,0x6f,0x6d])](_0x468164(_0x405a89),_0x32c9dc=>_0x32c9dc[_0x39e491([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a929f=new window[(_0x39e491([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39e491([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4aed30+_0x39e491([0x2e])+_0x280d1b),_0x4e6531=window[_0x39e491([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39e491([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e6531)return;const _0x2210f2=await _0x4e6531[_0x39e491([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39e491([0x6a,0x77,0x6b]),_0x1f6726,{[_0x39e491([0x6e,0x61,0x6d,0x65])]:_0x39e491([0x45,0x43,0x44,0x53,0x41]),[_0x39e491([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39e491([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39e491([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e6531[_0x39e491([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39e491([0x6e,0x61,0x6d,0x65])]:_0x39e491([0x45,0x43,0x44,0x53,0x41]),[_0x39e491([0x68,0x61,0x73,0x68])]:{[_0x39e491([0x6e,0x61,0x6d,0x65])]:_0x39e491([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2210f2,_0x185918,_0x5a929f)||(_0x1e51b1=!0x1);}}function _0x3c8c5e(_0x1d5e0e){return _0x1d5e0e[_0x39e491([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39e491([0x65,0x79]))?JSON[_0x39e491([0x70,0x61,0x72,0x73,0x65])](_0x468164(_0x1d5e0e)):null;}function _0x468164(_0x39fea5){return window[_0x39e491([0x61,0x74,0x6f,0x62])](_0x39fea5[_0x39e491([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39e491([0x2b]))[_0x39e491([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39e491([0x2f])));}function _0x13ab5f(_0x14a9e3){let _0x4cc0eb=0x1505;function _0x591511(_0x416677){for(let _0x9057eb=0x0;_0x9057eb<_0x416677[_0x39e491([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9057eb++){const _0x3adfa8=_0x416677[_0x39e491([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9057eb);_0x4cc0eb=(_0x4cc0eb<<0x5)+_0x4cc0eb+_0x3adfa8,_0x4cc0eb&=_0x4cc0eb;}}function _0x515b53(_0x137546){Array[_0x39e491([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x137546)?_0x137546[_0x39e491([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x515b53):_0x137546&&typeof _0x137546==_0x39e491([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39e491([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x137546)[_0x39e491([0x73,0x6f,0x72,0x74])]()[_0x39e491([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a6376,_0x1f3ddd])=>{_0x591511(_0x5a6376),_0x515b53(_0x1f3ddd);}):_0x591511(window[_0x39e491([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x137546));}return _0x515b53(_0x14a9e3),_0x4cc0eb>>>0x0;}function _0xcf942c(_0xec5fe1){return _0xec5fe1[_0x39e491([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39e491([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39e491([0x30]));}function _0x2b06fe(_0x3d3ff5){return _0x3d3ff5[_0x39e491([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39e491([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39e491([0x6a,0x6f,0x69,0x6e])]('');}function _0x320e18(_0x3fa40a){return _0x55e3bc[_0x39e491([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39e491([0x68,0x61,0x73])](_0x3fa40a);}function _0x4b8016(_0x4e8b62){return _0x55e3bc[_0x39e491([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x39e491([0x67,0x65,0x74])](_0x4e8b62);}function _0x10aab7(){}function _0x39e491(_0x1c901a){return _0x1c901a['map'](_0x25cf63=>String['fromCharCode'](_0x25cf63))['join']('');}_0x308b31(await _0x421423());}(this);}['createRevision'](_0xbc74){const _0x38268a=this['editor']['plugins']['get']('Users');return new I({'id':_0xbc74['id'],'name':_0xbc74['name'],'creator':_0xbc74['creatorId']?_0x38268a['getUser'](_0xbc74['creatorId']):null,'diffData':_0xbc74['diffData']||_0xbc74['data'],'authors':_0xbc74['authorsIds']['map'](_0x4c5e13=>_0x38268a['getUser'](_0x4c5e13)),'createdAt':new Date(_0xbc74['createdAt']),'attributes':_0xbc74['attributes'],'fromVersion':_0xbc74['fromVersion'],'toVersion':_0xbc74['toVersion']});}['addRevision'](_0x50ca9b,_0xbd3d8c=0x0){this['_revisions']['add'](_0x50ca9b,_0xbd3d8c);}['getRevision'](_0x55c6cd){return this['_revisions']['get'](_0x55c6cd);}['getRevisions'](_0x5d1cea={'toJSON':!0x1}){const _0x3c3259=Array['from'](this['_revisions']);return _0x3c3259['reverse'](),_0x5d1cea['toJSON']?_0x3c3259['map'](_0x25a482=>_0x25a482['toJSON']()):_0x3c3259;}['getIndex'](_0x8bb873){return this['_revisions']['getIndex'](_0x8bb873);}['getEarlierVisibleRevision'](_0x45f917){const [,_0x439724]=this['getRevisionsIterator'](_0x45f917,{'direction':'earlier'});return _0x439724;}['getLaterVisibleRevision'](_0x2b86d1){const [,_0x1f01fa]=this['getRevisionsIterator'](_0x2b86d1,{'direction':'later'});return _0x1f01fa;}['getRevisionsInDiff'](_0x3e6710){const _0x2fa5fa=[];for(const _0x3b7dcf of this['getRevisionsIterator'](_0x3e6710['newRevisionId']))if(_0x2fa5fa['push'](_0x3b7dcf),_0x3b7dcf['id']===_0x3e6710['oldRevisionId'])break;return _0x2fa5fa;}*['getRevisionsIterator'](_0x3b1cf6,{direction:_0xf2d60b='earlier',filter:_0xdf19a1=()=>!0x0}={}){const _0x23ce0a='earlier'===_0xf2d60b?0x1:-0x1;let _0x55bae4=this['_revisions']['get'](_0x3b1cf6),_0x9ea818=this['getIndex'](_0x55bae4);for(yield _0x55bae4;_0x55bae4;){if(_0x9ea818+=_0x23ce0a,_0x55bae4=this['getRevision'](_0x9ea818),!_0x55bae4)return;_0xdf19a1(_0x55bae4)&&(yield _0x55bae4);}}}class $ extends _0x4a1ed9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2b8abe,'c'],[_0x226f36,'a'],[_0x98d2b7,'e'],[_0x54b907,'r'],[_0x15b1fb,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2b8abe],['a',_0x226f36],['e',_0x98d2b7],['r',_0x54b907],['u',_0x15b1fb]]);async['loadRevisionData'](_0x41f8ea,_0xbd217d){if(_0x41f8ea['diffData']||!_0xbd217d)return;const _0x48e9f9=this['editor']['config']['get']('collaboration.channelId'),_0x348ac3=await _0xbd217d['getRevision']({'channelId':_0x48e9f9,'revisionId':_0x41f8ea['id']});_0x41f8ea['diffData']=_0x348ac3['diffData'];}['getRevisionDocumentData'](_0x55f960){const _0x4bba5e={};for(const _0x5e9fef in _0x55f960['diffData']){if(_0x55f960['diffData'][_0x5e9fef]['attachChange']&&!_0x55f960['diffData'][_0x5e9fef]['attachChange']['isAttached'])continue;const _0x10e1d5=this['_removeRevisionMarkers'](JSON['parse'](_0x55f960['diffData'][_0x5e9fef]['insertions'])),_0x3b6d73=this['editor']['editing']['view']['document'],_0x2dccb1=new _0x509baf(_0x3b6d73,_0x10e1d5['map'](_0x58be6d=>this['_getViewFromDiffObj'](_0x58be6d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4bba5e[_0x5e9fef]=this['editor']['data']['processor']['toData'](_0x2dccb1),this['editor']['data']['processor']['useFillerType']('default');}return _0x4bba5e;}['getRevisionRootsAttributes'](_0x13bfc2){const _0x598c36={};for(const _0x38df88 in _0x13bfc2['diffData'])_0x13bfc2['diffData'][_0x38df88]['attachChange']&&!_0x13bfc2['diffData'][_0x38df88]['attachChange']['isAttached']||(_0x598c36[_0x38df88]=_0x13bfc2['diffData'][_0x38df88]['attributesAfter']||{});return _0x598c36;}['_getTypeCharForViewElement'](_0x171a76){return this['_viewClassToTypeChar']['get'](_0x171a76['constructor']);}['_getViewFromDiffObj'](_0x4bb3bf,_0x2463f9){const _0x41d29f=this['editor']['editing']['view']['document'];if('string'==typeof _0x4bb3bf)return new _0xac1d8b(_0x41d29f,_0x4bb3bf);{let _0x40b4f9,_0x40d8fb;_0x40d8fb='u'==_0x4bb3bf['type']||'r'==_0x4bb3bf['type']?[]:_0x4bb3bf['children']['map'](_0x2586f2=>this['_getViewFromDiffObj'](_0x2586f2,_0x2463f9));const _0x51164b=this['_typeCharToViewClass']['get'](_0x4bb3bf['type'])||_0x11b038,_0x3ba2a8=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x40b4f9=new _0x51164b(_0x41d29f,_0x4bb3bf['name'],_0x4bb3bf['attributes'],_0x40d8fb),'u'==_0x4bb3bf['type']&&_0x4bb3bf['children'][0x0]){const _0x5270da=_0x4bb3bf['children'][0x0];if(_0x40b4f9['render']=function(_0x13668a){const _0x5e9371=_0x13668a['createElement']('div');return _0x5e9371['innerHTML']=_0x5270da,_0x5e9371['childNodes'][0x0];},_0x2463f9){const _0x2ea1b7=new _0x509baf(_0x41d29f);_0x2ea1b7['_appendChild'](_0x40b4f9);const _0xafe34=Array['from'](_0x3ba2a8['viewChildrenToDom'](_0x2ea1b7,{'bind':!0x1})),_0x197494=_0x3ba2a8['domDocument']['createElement']('div');_0x197494['append'](..._0xafe34),_0x40b4f9=Array['from'](_0x3ba2a8['domChildrenToView'](_0x197494))[0x0];}}else{if('r'==_0x4bb3bf['type']&&_0x4bb3bf['children'][0x0]){const _0x27bcfc=_0x4bb3bf['children'][0x0];if(_0x40b4f9['render']=function(_0xd55fda){_0xd55fda['innerHTML']=_0x27bcfc;},_0x2463f9){const _0x107469=new _0x509baf(_0x41d29f);_0x107469['_appendChild'](_0x40b4f9);const _0xdd494a=Array['from'](_0x3ba2a8['viewChildrenToDom'](_0x107469,{'bind':!0x1})),_0x10c610=_0x3ba2a8['domDocument']['createElement']('div');_0x10c610['append'](..._0xdd494a);const _0x4de58e=Array['from'](_0x3ba2a8['domChildrenToView'](_0x10c610));_0x4de58e['length']>0x1?_0x40b4f9['_appendChild'](_0x4de58e):_0x40b4f9=_0x4de58e[0x0];}}}if(_0x4bb3bf['customProperties']){for(const [_0x24bb7f,_0x4426a2]of _0x4bb3bf['customProperties'])_0x40b4f9['_setCustomProperty'](_0x24bb7f,_0x4426a2);}const _0x13b89d=void 0x0===_0x4bb3bf['fillerOffset']?null:_0x4bb3bf['fillerOffset'];return null!==_0x13b89d&&(_0x40b4f9['getFillerOffset']=()=>_0x13b89d),_0x40b4f9;}}['_makeModelFromViewString'](_0x2cb53a){const _0x58d579=JSON['parse'](_0x2cb53a),_0x3bf3ad=this['editor']['editing']['view']['document'],_0x21a151=new _0x509baf(_0x3bf3ad,_0x58d579['map'](_0x16b281=>this['_getViewFromDiffObj'](_0x16b281,!0x0)));return this['editor']['data']['toModel'](_0x21a151);}['_removeRevisionMarkers'](_0x1e1a81){return(_0x1e1a81=_0x1e1a81['filter'](_0x4057fd=>!_0x4057fd['name']||'revision-start'!==_0x4057fd['name']&&'revision-end'!==_0x4057fd['name']))['forEach'](_0x14c44d=>{'string'!=typeof _0x14c44d&&(_0x14c44d['children']=this['_removeRevisionMarkers'](_0x14c44d['children']),_0x14c44d['attributes']=_0x14c44d['attributes']['filter'](_0x5c832f=>!_0x5c832f[0x0]['startsWith']('data-revision-')));}),_0x1e1a81;}}function m(_0x56fb8e,_0x156b62,_0x4988ab){const t=_0x56fb8e['t'];switch(_0x156b62){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'},_0x4988ab);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4988ab);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 _0x4a1ed9{['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[_0xd4b749,S,$,_0x3aa51a];}constructor(_0x14ae81){super(_0x14ae81),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 _0x1819e3=_0x50a7a4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1819e3},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 _0x33e73b=this['repository']['getRevision'](0x0),_0x2647a8=_0x33e73b&&null===_0x33e73b['creator']?_0x33e73b:null;if(this['_continueCurrentRevision']=!!_0x2647a8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xfbe064=this['_source']['getCurrentRevisionId'](),_0x388b62=this['repository']['getRevision'](_0xfbe064);if(_0x388b62)this['_startingVersion']=_0x388b62['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x22ddd8=this['_source']['history']['_operations']['find'](_0x5ee4f0=>!_0x5ee4f0['_isInit']),_0x1b07b8=_0x22ddd8?_0x22ddd8['baseVersion']:this['_source']['history']['version'];_0x33e73b?(_0x33e73b['toVersion']<_0x1b07b8&&_0x33e73b['_update']({'toVersion':_0x1b07b8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2647a8['id'],this['_startingVersion']=_0x2647a8['fromVersion']):(this['_startingVersion']=_0x33e73b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1b07b8,this['_continueCurrentRevision']=!0x1);}}else _0x2647a8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2647a8['toVersion'],this['editor']['model']['document']['history']['version']),_0x2647a8['fromVersion']===_0x2647a8['toVersion']?(0x0!==_0x2647a8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2647a8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2647a8['id'],this['_startingVersion']=_0x2647a8['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',_0x4070cb=>!_0x4070cb),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5128ca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4579c5;for(const _0x310afe in _0x5128ca){const _0x335cbe=_0x310afe,_0x1eb104=_0x5128ca[_0x335cbe];if('revisionHistoryLicenseKeyValid'==_0x1eb104||'revisionHistoryLicenseKeyInvalid'==_0x1eb104||'revisionHistoryLicenseKeyExpired'==_0x1eb104||'revisionHistoryLicenseKeyDomainLimit'==_0x1eb104||'revisionHistoryLicenseKeyNotAllowed'==_0x1eb104||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1eb104||'revisionHistoryLicenseKeyTrialLimit'==_0x1eb104||'revisionHistoryLicenseKeyUsageLimit'==_0x1eb104){delete _0x5128ca[_0x335cbe],_0x4579c5=_0x1eb104,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4579c5&&_0x5128ca['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4579c5&&_0x5128ca['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4579c5&&_0x5128ca['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4579c5&&_0x5128ca['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4579c5&&_0x5128ca['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4579c5&&_0x5128ca['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4579c5&&_0x5128ca['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x19aa02=this['repository']['getRevision'](0x0),_0x58eed7=await this['getRevisionDocumentData'](_0x19aa02),_0xc282c5=await this['getRevisionRootsAttributes'](_0x19aa02);this['_replaceEditorDataWithRevisionData'](_0x58eed7,_0xc282c5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3ad066){this['_source']=_0x3ad066;}async['update'](){const _0x4df6d3=await this['_source']['getLatestVersion']();if(_0x4df6d3>this['currentRevision']['toVersion']){await this['_loadState']();const _0xb67e95=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4df6d3});_0xb67e95['authors']=_0xb67e95['authorsIds']['map'](_0x497474=>this['editor']['plugins']['get']('Users')['getUser'](_0x497474)),this['currentRevision']['_update'](_0xb67e95);}}async['saveRevision'](_0x2b5720={},_0xf5b562=null){const _0x17e030=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xf5b562>this['currentRevision']['toVersion']&&(_0xf5b562=null),null===_0xf5b562&&(_0xf5b562=await this['_source']['getLatestVersion']());const _0x21b5af=this['_getFromVersion'](_0xf5b562),_0x41a4d5=this['buildRevisionData']({'from':_0x21b5af,'to':_0xf5b562});if(this['currentRevision']['toVersion']<_0xf5b562){const _0xe361f5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xf5b562,'to':_0xf5b562});_0xe361f5['authors']=[],_0xe361f5['authorsIds']=[],_0xe361f5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xe361f5,!0x0),delete _0xe361f5['authors'],_0x17e030['push'](_0xe361f5);}_0x2b5720['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2b5720['name']=_0x2b5720['name']||null,_0x2b5720['id']=_0x2b5720['id']||_0x50a7a4(),_0x2b5720={..._0x2b5720,..._0x41a4d5};const _0x3aa269=this['addRevisionData'](_0x2b5720);_0x17e030['push'](_0x2b5720);const _0x78cd45=this['repository']['getIndex'](_0x3aa269);if(0x0!==_0x78cd45){const _0x5a43ad=this['repository']['getRevision'](_0x78cd45-0x1);if(_0x5a43ad['fromVersion']!==_0xf5b562){const _0x2bebd7=this['_revisionDataBuilder']['getData'](_0xf5b562,_0x5a43ad['toVersion']),_0x13717c={'id':_0x5a43ad['id'],'diffData':_0x2bebd7['diffData'],'authorsIds':_0x2bebd7['authorsIds'],'authors':_0x2bebd7['authorsIds']['map'](_0x189870=>this['editor']['plugins']['get']('Users')['getUser'](_0x189870)),'fromVersion':_0xf5b562};_0x5a43ad===this['currentRevision']&&(_0x13717c['createdAt']=new Date(_0x2b5720['createdAt']['getTime']()+0xa)),_0x5a43ad['_update'](_0x13717c,!0x0),delete _0x13717c['authors'],_0x17e030['push'](_0x13717c);}}if(this['adapter']){for(const _0x2cd9c4 of _0x17e030)this['_bufferUpdate'](_0x2cd9c4['id'],_0x2cd9c4,!0x0);this['sendBufferedUpdates']();}return _0x3aa269;}['addRevisionData'](_0xa425a){const _0x30add3=this['repository']['createRevision'](_0xa425a);return this['adapter']&&_0x30add3['on']('_update',(_0x7164ae,_0x2159a3,_0x4ae596)=>{_0x4ae596||(this['_bufferUpdate'](_0x2159a3['id'],_0x2159a3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x30add3,this['_findInsertionIndex'](_0x30add3)),_0x30add3;}async['getRevisionDocumentData'](_0x4270d5){return await this['_utils']['loadRevisionData'](_0x4270d5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4270d5);}async['getRevisionRootsAttributes'](_0x21833a){return await this['_utils']['loadRevisionData'](_0x21833a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x21833a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4a24df=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x715cf1=0x0;_0x715cf1<_0x4a24df['length'];_0x715cf1++){const _0x17e5d8=_0x4a24df[_0x715cf1];let _0x23159b=!0x1;for(const _0x33181c of Object['keys'](_0x17e5d8))void 0x0===_0x17e5d8[_0x33181c]?delete _0x17e5d8[_0x33181c]:'id'!==_0x33181c&&(_0x23159b=!0x0);_0x23159b||(_0x4a24df[_0x715cf1]=null);}if(_0x4a24df=_0x4a24df['filter'](_0x26a8b9=>null!==_0x26a8b9),!_0x4a24df['length'])return;for(let _0x2a0dbb=0x0;_0x2a0dbb<_0x4a24df['length'];_0x2a0dbb++){const _0x50781e=_0x4a24df[_0x2a0dbb];void 0x0!==_0x50781e['fromVersion']&&void 0x0===_0x50781e['toVersion']&&(_0x50781e['toVersion']=this['repository']['getRevision'](_0x50781e['id'])['toVersion']),void 0x0!==_0x50781e['toVersion']&&void 0x0===_0x50781e['fromVersion']&&(_0x50781e['fromVersion']=this['repository']['getRevision'](_0x50781e['id'])['fromVersion']);}const _0x25c6be=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4a24df,_0x25c6be)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1a05f7=>{if(_0x1a05f7){for(const _0x5867b1 of _0x1a05f7)this['setRevisionData']({'id':_0x5867b1['id'],'createdAt':_0x5867b1['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x12af55=null,from:_0x50c3a1=null,to:_0x283d87=null}){_0x50c3a1=null!==_0x50c3a1?_0x50c3a1:_0x12af55['fromVersion'],_0x283d87=null!==_0x283d87?_0x283d87:_0x12af55['toVersion'];const _0x2af992=this['_revisionDataBuilder']['getData'](_0x50c3a1,_0x283d87),_0x13db49={'diffData':_0x2af992['diffData'],'authorsIds':_0x2af992['authorsIds'],'fromVersion':_0x50c3a1,'toVersion':_0x283d87};if(!_0x12af55||_0x283d87!==_0x12af55['toVersion']){const _0x1ef37b=_0x283d87-0x1,_0x4f562b=this['_source']['history']['getOperation'](_0x1ef37b);_0x13db49['createdAt']=_0x4f562b&&_0x4f562b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x50c3a1===this['_loadedStateData']['fromVersion']){for(const _0x1703f0 of this['_loadedStateData']['authors'])_0x13db49['authorsIds']['includes'](_0x1703f0['id'])||_0x13db49['authorsIds']['push'](_0x1703f0['id']);}return _0x13db49;}['_bufferUpdate'](_0x26a4c8,_0x389ed0,_0x184380){if(this['_bufferedUpdates']['has'](_0x26a4c8)){const _0x39903b=this['_bufferedUpdates']['get'](_0x26a4c8);_0x389ed0=_0x184380?{..._0x39903b,..._0x389ed0}:{..._0x389ed0,..._0x39903b};}this['_bufferedUpdates']['set'](_0x26a4c8,_0x389ed0);}['setRevisionData'](_0x47e39e){const _0x47909a=this['repository']['getRevision'](_0x47e39e['id']);if(_0x47e39e['createdAt']&&(_0x47e39e['createdAt']=new Date(_0x47e39e['createdAt'])),_0x47e39e['authorsIds']){const _0x88ca00=this['editor']['plugins']['get']('Users');_0x47e39e['authors']=_0x47e39e['authorsIds']['map'](_0xb5eef0=>_0x88ca00['getUser'](_0xb5eef0));}_0x47909a['_update'](_0x47e39e,!0x0);}['_createInitialRevision'](_0x338ba7){const _0x113d22=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x113d22)this['_initialRevisionId']=_0x113d22['id'];else{const _0x44ec85=!this['editor']['model']['document']['roots']['find'](_0x503d7a=>this['editor']['model']['hasContent'](_0x503d7a)),_0xa11a8c=this['editor']['plugins']['get']('Users')['me']['id'],_0x42ad7f=m(this['editor']['locale'],_0x44ec85?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x338ba7,'to':_0x338ba7,'id':this['_initialRevisionId'],'name':_0x42ad7f,'creatorId':_0xa11a8c});}}['_createCurrentRevision'](_0x313e2a){const _0x219e27=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x219e27),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x313e2a,'to':_0x313e2a,'id':_0x219e27,'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'](_0x117d27,_0x358dab){let _0x3ba891=this['editor']['config']['get']('initialData'),_0x3d2e7f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3ba891){_0x3ba891={};for(const _0x3dd261 of this['editor']['model']['document']['getRootNames']())_0x3ba891[_0x3dd261]='';}if('string'==typeof _0x3ba891&&(_0x3ba891={'main':_0x3ba891}),void 0x0===_0x3d2e7f){_0x3d2e7f={};for(const _0xa2a453 of this['editor']['model']['document']['getRootNames']())_0x3d2e7f[_0xa2a453]={};}let _0x6907e=!0x1;const _0x1416a0=Object['keys'](_0x3ba891),_0x249b49=Object['keys'](_0x117d27);for(const _0x500ce4 of _0x1416a0){if(_0x3ba891[_0x500ce4]!==_0x117d27[_0x500ce4]&&''!==_0x3ba891[_0x500ce4]['trim']()){_0x6907e=!0x0;break;}if(!_0x38163c(_0x3d2e7f[_0x500ce4],_0x358dab[_0x500ce4])&&Object['keys'](_0x3d2e7f[_0x500ce4])['length']>0x0){_0x6907e=!0x0;break;}}_0x6907e||(_0x6907e=_0x249b49['some'](_0x43a3a2=>!this['editor']['model']['document']['getRoot'](_0x43a3a2))),_0x6907e&&_0x235798('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3ba891,'editorRootsAttributes':_0x3d2e7f,'revisionData':_0x117d27,'revisionRootsAttributes':_0x358dab}),this['editor']['config']['set']('initialData',_0x117d27),this['editor']['config']['set']('rootsAttributes',_0x358dab);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xbbdbca=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xbbdbca['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3b9b41){const _0x5d7416=this['repository']['getRevisions']();_0x5d7416['reverse']();let _0x1fd1dd=0x0;for(;_0x1fd1dd<_0x5d7416['length'];){const _0x3d72a3=_0x5d7416[_0x1fd1dd];if(_0x3d72a3===this['currentRevision']){_0x1fd1dd++;continue;}if(_0x3d72a3['id']===this['_initialRevisionId'])break;const _0x25ed9a=_0x3b9b41['toVersion']-_0x3d72a3['toVersion']||_0x3b9b41['fromVersion']-_0x3d72a3['fromVersion'];if(_0x25ed9a>0x0)break;if(_0x25ed9a<0x0)_0x1fd1dd++;else{if(!_0x3b9b41['creator']&&_0x3d72a3['creator'])break;if(_0x3d72a3['creator']||!_0x3b9b41['creator']){if(_0x3b9b41['createdAt']>_0x3d72a3['createdAt'])break;_0x1fd1dd++;}else _0x1fd1dd++;}}return _0x1fd1dd;}['_getFromVersion'](_0x14fedf){const _0x494a27=this['repository']['getRevisions']();_0x494a27['reverse'](),_0x494a27['shift']();const _0x357362=_0x494a27['find'](_0x48b4c6=>_0x48b4c6['toVersion']<=_0x14fedf)['toVersion'];return _0x357362<this['_startingVersion']?this['_startingVersion']:_0x357362;}['_makeRevision']({name:_0x20123d,from:_0x263a3d,to:_0x4dea1b,creatorId:_0x11c03a,id:_0x1e26b6}){const _0x559a5d=this['buildRevisionData']({'from':_0x263a3d,'to':_0x4dea1b});_0x559a5d['name']=_0x20123d,_0x559a5d['creatorId']=_0x11c03a,_0x559a5d['id']=_0x1e26b6;const _0x1a5c0e=this['addRevisionData'](_0x559a5d);return this['adapter']&&this['_bufferUpdate'](_0x559a5d['id'],_0x559a5d,!0x0),_0x1a5c0e;}['_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(_0xd4207b){this['editor']=_0xd4207b,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'](_0x5ea6de){this['source']=_0x5ea6de;const _0x3e8486=new Map(),_0x279749=new Map(),_0x46216b=this['editor']['model']['document']['roots']['map'](_0x5f48e3=>_0x5f48e3['rootName']);for(const _0x24efb8 of _0x46216b){const _0x1a6371=this['editor']['model']['document']['getRoot'](_0x24efb8),_0x40770f=x(_0x1a6371);_0x3e8486['set'](_0x24efb8,_0x40770f),_0x279749['set'](_0x24efb8,Object['fromEntries'](_0x1a6371['getAttributes']()));}const _0x1a9ec=Array['from'](this['editor']['model']['markers'])['map'](_0x1bf063=>[_0x1bf063['name'],_0x1bf063['getRange']()]),_0x1c6f78=this['source']['version'];this['_saveMetaData'](_0x1c6f78,_0x3e8486,_0x1a9ec,_0x279749),this['_startingRevisionId']=this['_revisionId'];const _0x260753=new Map(),_0x46d698=new Map();for(const _0x1be56b of _0x46216b){const _0x119155=N(_0x1be56b);_0x260753['set'](_0x1be56b,_0x119155),_0x46d698['set'](_0x1be56b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x260753,[],_0x46d698);}['getData'](_0x1d55f1,_0x213c54){if(this['_lastFrom']===_0x1d55f1&&this['_lastTo']<=_0x213c54)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x213c54,!0x0);else{if(!this['_savedMetaData']['has'](_0x1d55f1)){const _0x4c9918=this['_getPreviousFrom'](_0x1d55f1);this['_calculateMetaData'](_0x4c9918,_0x1d55f1,!0x1);}this['_calculateMetaData'](_0x1d55f1,_0x213c54,!0x0);}return this['_lastFrom']=_0x1d55f1,this['_lastTo']=_0x213c54,this['_getState']();}['loadState'](_0x3911f2){if(!this['_savedMetaData']['has'](_0x3911f2['fromVersion'])){const _0x3828e8=this['_getPreviousFrom'](_0x3911f2['fromVersion']);this['_calculateMetaData'](_0x3828e8,_0x3911f2['fromVersion'],!0x1);}this['_calculateMetaData'](_0x3911f2['fromVersion'],_0x3911f2['toVersion'],!0x1);const _0x6d2265=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3911f2['fromVersion'],this['_lastTo']=_0x3911f2['toVersion'];for(const _0x415749 in _0x3911f2['diffData']){const _0x17d18f=_0x3911f2['diffData'][_0x415749]['attachChange'],_0x545546=_0x3377cd(_0x3911f2['diffData'][_0x415749]['attributesBefore'])||{},_0x52902b=_0x6d2265['_makeModelFromViewString'](_0x3911f2['diffData'][_0x415749]['deletions']);_0x52902b['rootName']=_0x415749,_0x52902b['_isAttached']=!_0x17d18f||!_0x17d18f['isAttached'],_0x52902b['isAttached']=()=>_0x52902b['_isAttached'],this['_baseRoots']['set'](_0x415749,_0x52902b),this['_baseRootsAttributes']['set'](_0x415749,_0x545546),_0x17d18f&&this['_touchedRoots']['set'](_0x415749,_0x17d18f);const _0x519a28=this['_makeIdsRoot'](_0x52902b);this['_baseIdsRoots']['set'](_0x415749,_0x519a28);for(const [_0x213f8f,_0x48c365]of _0x52902b['markers']){if(!_0x213f8f['startsWith']('revision:'))continue;const _0x38ae9c=_0x213f8f['split'](':')[0x2];for(const _0xa15181 of _0x48c365['getWalker']({'singleCharacters':!0x0})){const _0x477f97=this['_getVidAttributeName'](_0xa15181),_0x2eb719='elementEnd'==_0xa15181['type']?_0xa15181['previousPosition']['path']['slice'](0x0,-0x1):_0xa15181['previousPosition']['path'],_0x43e09b=_0x519a28['getNodeByPath'](_0x2eb719)['getAttribute'](_0x477f97);this['_touched']['set'](_0x43e09b,{'userId':_0x38ae9c});}_0x52902b['markers']['delete'](_0x213f8f);}}this['_startingRevisionId']=this['_revisionId'];const _0x32e4e1=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1c644b=>!this['_touched']['has'](_0x1c644b));let _0x245398=0x0;const _0x2ab95b=new Map();for(const _0x19a7c9 in _0x3911f2['diffData']){const _0x5bdfa6=_0x3911f2['diffData'][_0x19a7c9]['attachChange'],_0x280d63=_0x3377cd(_0x3911f2['diffData'][_0x19a7c9]['attributesAfter'])||{},_0x3bf7ec=_0x6d2265['_makeModelFromViewString'](_0x3911f2['diffData'][_0x19a7c9]['insertions']);_0x3bf7ec['rootName']=_0x19a7c9,_0x3bf7ec['_isAttached']=!_0x5bdfa6||_0x5bdfa6['isAttached'],_0x3bf7ec['isAttached']=()=>_0x3bf7ec['_isAttached'],this['_diffRoots']['set'](_0x19a7c9,_0x3bf7ec),this['_diffRootsAttributes']['set'](_0x19a7c9,_0x280d63);const _0x7edee7=this['_makeIdsRoot'](_0x3bf7ec,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x19a7c9,_0x7edee7),_0x2ab95b['set'](_0x19a7c9,_0x3bf7ec['isAttached']()?_0x280d63:{});for(const [_0x41b189,_0x4b47f1]of _0x3bf7ec['markers']){if(!_0x41b189['startsWith']('revision:'))continue;const _0x6eb3d=_0x41b189['split'](':')[0x2];for(const _0x53eb60 of _0x4b47f1['getWalker']({'singleCharacters':!0x0})){const _0x390276=this['_getVidAttributeName'](_0x53eb60),_0x96c5cf=this['_revisionId']++,_0x5bedc6='elementEnd'==_0x53eb60['type']?_0x53eb60['previousPosition']['path']['slice'](0x0,-0x1):_0x53eb60['previousPosition']['path'];_0x7edee7['getNodeByPath'](_0x5bedc6)['_setAttribute'](_0x390276,_0x96c5cf),this['_touched']['set'](_0x96c5cf,{'userId':_0x6eb3d});}_0x3bf7ec['markers']['delete'](_0x41b189);}for(const _0x397271 of this['editor']['model']['createRangeIn'](_0x3bf7ec)['getWalker']({'singleCharacters':!0x0})){const _0x158eb6=this['_getVidAttributeName'](_0x397271),_0xbe4eaa='elementEnd'==_0x397271['type']?_0x397271['previousPosition']['path']['slice'](0x0,-0x1):_0x397271['previousPosition']['path'],_0x4f33c5=_0x7edee7['getNodeByPath'](_0xbe4eaa);_0x4f33c5['getAttribute'](_0x158eb6)>0x0||_0x4f33c5['_setAttribute'](_0x158eb6,_0x32e4e1[_0x245398++]);}for(const [_0x26ba26,_0x56f633]of _0x3bf7ec['markers'])_0x26ba26['startsWith']('revision:')||this['_markers']['set'](_0x26ba26,_0x56f633);}const {roots:_0x5c9da3}=this['_savedMetaData']['get'](_0x3911f2['fromVersion']),{roots:_0x3fc0de}=this['_savedMetaData']['get'](_0x3911f2['toVersion']),_0x4fd8ce=x(_0x5c9da3['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x4fd8ce),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4fd8ce,Number['NEGATIVE_INFINITY']));const _0x509c28=x(_0x3fc0de['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x509c28),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x509c28));const _0x2fe0c9=Array['from'](this['_diffRoots'])['map'](([_0x897948,_0x2d05c4])=>[_0x897948,x(_0x2d05c4)]);this['_saveMetaData'](this['_lastTo'],_0x2fe0c9,this['_markers'],_0x2ab95b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x266a61,_0x16cac0,_0x2ee246,_0x81226d){const _0xf22839=new Map(_0x16cac0),_0x3f222f=new Map(_0x3377cd(_0x81226d)),_0x167a21=new Map();for(const [_0x575a87,_0x3a4b36]of _0x2ee246)_0x167a21['set'](_0x575a87,{'start':_0x3a4b36['start']['clone'](),'end':_0x3a4b36['end']['clone'](),'rootName':_0x3a4b36['root']['rootName']});this['_savedMetaData']['set'](_0x266a61,{'roots':_0xf22839,'markers':_0x167a21,'rootsAttributes':_0x3f222f});}['_removeMetaData'](_0x2c8e0f){this['_savedMetaData']['delete'](_0x2c8e0f);}['_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'](_0x4dd3d8,_0xaa5bda=null){let _0x5455e5=null;_0x4dd3d8['is']('documentFragment')||(_0x5455e5=new _0x563007(_0x4dd3d8['name'],{'vid_start':null===_0xaa5bda?this['_revisionId']++:_0xaa5bda++}));const _0x5d9333=[];for(const _0x443746 of _0x4dd3d8['getChildren']())if(_0x443746['is']('element')){_0x5d9333['push'](this['_makeIdsRoot'](_0x443746,_0xaa5bda));const _0x2e8308=_0x5d9333[_0x5d9333['length']-0x1];null!==_0xaa5bda&&(_0xaa5bda=_0x2e8308['is']('element','$text')?_0x2e8308['getAttribute']('vid')+0x1:_0x2e8308['getAttribute']('vid_end')+0x1);}else{for(let _0x44c306=0x0;_0x44c306<_0x443746['offsetSize'];_0x44c306++)_0x5d9333['push'](new _0x563007('$text',{'vid':null===_0xaa5bda?this['_revisionId']++:_0xaa5bda++}));}if(_0x4dd3d8['is']('documentFragment')){const _0x360892=N(_0x4dd3d8['rootName']);return _0x360892['_insertChild'](0x0,_0x5d9333),_0x360892;}return _0x5455e5['_setAttribute']('vid_end',null===_0xaa5bda?this['_revisionId']++:_0xaa5bda++),_0x5455e5['_insertChild'](0x0,_0x5d9333),_0x5455e5;}['_calculateMetaData'](_0x48a7c9,_0x573dbe,_0x50274a){this['_reset']();const {roots:_0x30272b,markers:_0x43b664,rootsAttributes:_0x2e839e}=this['_savedMetaData']['get'](_0x48a7c9);this['_baseRoots']=new Map(_0x30272b),this['_baseRootsAttributes']=new Map(_0x3377cd(_0x2e839e));for(const [_0x16d21c,_0x85c7e2]of this['_baseRoots'])if('$graveyard'!==_0x16d21c&&(this['_diffRoots']['set'](_0x16d21c,x(_0x85c7e2)),this['_diffRootsAttributes']=new Map(_0x3377cd(_0x2e839e)),_0x50274a)){const _0x16d1e9=this['_revisionId'];this['_idsRoots']['set'](_0x16d21c,this['_makeIdsRoot'](_0x85c7e2)),this['_baseIdsRoots']['set'](_0x16d21c,this['_makeIdsRoot'](_0x85c7e2,_0x16d1e9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x50274a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5ef607,_0x5765b6]of _0x43b664){const _0x5a6e62=this['_baseRoots']['get'](_0x5765b6['rootName']),_0x2113ea=this['_diffRoots']['get'](_0x5765b6['rootName']),_0x490464=new _0x413bd1(this['_fixPosition'](_0x5765b6['start'],_0x5a6e62),this['_fixPosition'](_0x5765b6['end'],_0x5a6e62)),_0x36cea0=this['_fixRange'](_0x490464,_0x2113ea);_0x5a6e62['markers']['set'](_0x5ef607,_0x490464),this['_markers']['set'](_0x5ef607,_0x36cea0);}this['_applyOperations'](_0x48a7c9,_0x573dbe,_0x50274a);}['_applyOperations'](_0x52fd40,_0x3910e2,_0x5c2479){for(const _0x28fb49 of this['source']['getOperations'](_0x52fd40,_0x3910e2))this['_handleOperation'](_0x28fb49,_0x5c2479);for(const _0x4c76a of this['_diffRoots']['values']())_0x4c76a['markers']['clear']();for(const [_0x2af1ab,_0x3299e5]of this['_markers']){this['_diffRoots']['get'](_0x3299e5['root']['rootName'])['markers']['set'](_0x2af1ab,_0x3299e5['clone']());}const _0x3cf0f2=new Map(),_0x137237=new Map();for(const [_0x4784b6,_0x397f14]of this['_diffRoots'])_0x3cf0f2['set'](_0x4784b6,x(_0x397f14)),_0x137237['set'](_0x4784b6,this['_diffRootsAttributes']['get'](_0x4784b6));this['_saveMetaData'](_0x3910e2,_0x3cf0f2,this['_markers'],_0x137237);}['_getPreviousFrom'](_0x44429c){const _0x1ac8a2=Array['from'](this['_savedMetaData']['keys']());_0x1ac8a2['sort']((_0x51d94d,_0x5adbee)=>_0x51d94d-_0x5adbee),_0x1ac8a2['reverse']();for(const _0x103883 of _0x1ac8a2)if(_0x103883<_0x44429c)return _0x103883;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x32e680,_0x4a4077){const _0x4a7b11=Array['from'](_0x4a4077['markers'])['map'](([_0x2f267e,_0x55ba1d])=>[_0x2f267e,this['_fixRange'](_0x55ba1d,_0x32e680)]);_0x32e680['markers']=new Map(_0x4a7b11);}['_transformMarkers'](_0x231a7f){for(const _0x580633 of this['_markers']['values']()){const _0x13bd16=_0x580633['getTransformedByOperation'](_0x231a7f),_0x4ef518=_0x413bd1['_createFromRanges'](_0x13bd16);_0x580633['start']=_0x4ef518['start'],_0x580633['end']=_0x4ef518['end'];}}['_handleOperation'](_0xf3956e,_0xcedf91){if('addRoot'!=_0xf3956e['type']&&'detachRoot'!=_0xf3956e['type']){if('insert'==_0xf3956e['type']){const _0x3cc888=_0xf3956e['position']['root']['rootName'];this['_diffRoots']['has'](_0x3cc888)||(this['_diffRoots']['set'](_0x3cc888,N(_0x3cc888,!0x0)),this['_diffRootsAttributes']['set'](_0x3cc888,{}),_0xcedf91&&this['_idsRoots']['set'](_0x3cc888,N(_0x3cc888,!0x0)));}else{if('addRootAttribute'==_0xf3956e['type']||'removeRootAttribute'==_0xf3956e['type']||'changeRootAttribute'==_0xf3956e['type'])return void this['_handleRootAttributeOperation'](_0xf3956e);'marker'==_0xf3956e['type']&&this['_handleMarkerOperation'](_0xf3956e);}if('marker'!==_0xf3956e['type']){const _0x37394f=this['_cloneOperation'](_0xf3956e,this['_diffRoots']);_0x37394f['_execute'](),this['_transformMarkers'](_0x37394f);}if(_0xcedf91)switch(_0xf3956e['type']){case'insert':this['_handleInsertOperation'](_0xf3956e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xf3956e);break;case'merge':this['_handleMergeOperation'](_0xf3956e);break;case'split':this['_handleSplitOperation'](_0xf3956e);}}else this['_handleRootOperation'](_0xf3956e,_0xcedf91);}['_cloneOperation'](_0x3fccbd,_0x4b0f05){const _0xa52e0f=_0x3fccbd['clone']();return _0xa52e0f['_authorId']=_0x3fccbd['_authorId'],this['_fixOperation'](_0xa52e0f,_0x4b0f05),_0xa52e0f;}['_getBaseVids'](_0x2bce00){return _0x2bce00['map'](_0x51095e=>{const _0x25ce2e=this['_getVidAttributeName'](_0x51095e);return Number(_0x51095e['item']['getAttribute'](_0x25ce2e));});}['_generateTape'](_0x58b7f5,_0x17bf79){if(_0x58b7f5['is']('element','$text'))_0x17bf79['push']({'item':_0x58b7f5,'type':'text'});else{_0x58b7f5['is']('element')&&_0x17bf79['push']({'item':_0x58b7f5,'type':'elementStart'});for(const _0x3d05a9 of _0x58b7f5['getChildren']())this['_generateTape'](_0x3d05a9,_0x17bf79);_0x58b7f5['is']('element')&&_0x17bf79['push']({'item':_0x58b7f5,'type':'elementEnd'});}return _0x17bf79;}['_getState'](){const _0x5a34bb=new Map(this['_touched']),_0x3f9f02=new Map(_0x5a34bb),_0x316161=new Map(),_0x2c759a={'insertions':{},'deletions':{}},_0x548806={'insertions':{},'deletions':{}},_0x25ec28=new Map(),_0x3d1369=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3d1369['delete']('$graveyard');for(const _0x1f1f6c of _0x3d1369){const _0x3b04c8=this['_diffRoots']['get'](_0x1f1f6c)||N(_0x1f1f6c,!0x1),_0x57947d=this['_baseRoots']['get'](_0x1f1f6c)||N(_0x1f1f6c,!0x1);_0x3b04c8['isAttached']()||_0x57947d['isAttached']()?(_0x2c759a['insertions'][_0x1f1f6c]=x(_0x3b04c8),_0x2c759a['deletions'][_0x1f1f6c]=x(_0x57947d),this['_copyMarkers'](_0x2c759a['deletions'][_0x1f1f6c],_0x57947d),this['_copyMarkers'](_0x2c759a['insertions'][_0x1f1f6c],_0x3b04c8),_0x548806['insertions'][_0x1f1f6c]=this['_generateTape'](this['_idsRoots']['get'](_0x1f1f6c),[]),_0x548806['deletions'][_0x1f1f6c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1f1f6c)||N(_0x1f1f6c,!0x1),[])):_0x3d1369['delete'](_0x1f1f6c);}for(const _0x26d830 of _0x3d1369){const _0x51a43e=_0x548806['insertions'][_0x26d830];for(const _0x5d3b42 of _0x51a43e){const _0x2d6168=this['_getVidAttributeName'](_0x5d3b42),_0x1e7757=_0x5d3b42['item']['getAttribute'](_0x2d6168);_0x3f9f02['delete'](_0x1e7757),_0x1e7757>=this['_startingRevisionId']&&_0x316161['set'](_0x1e7757,_0x5a34bb['get'](_0x1e7757));}}for(const _0xc134de of _0x3d1369){const _0x46e08c=_0x548806['insertions'][_0xc134de],_0x28c8db=this['_getBaseVids'](_0x548806['deletions'][_0xc134de]);let _0x42e0f4=0x0;for(const _0x1d307d of _0x46e08c){const _0x25cb71=this['_getVidAttributeName'](_0x1d307d),_0x4ae966=_0x1d307d['item']['getAttribute'](_0x25cb71);if(!_0x316161['has'](_0x4ae966)&&!_0x25ec28['has'](_0x4ae966)){if(_0x3f9f02['has'](_0x4ae966))_0x42e0f4++;else{if(_0x4ae966!=_0x28c8db[_0x42e0f4]){const _0x523cb1=_0x5a34bb['get'](_0x4ae966)||_0x5a34bb['get'](_0x28c8db[_0x42e0f4]);for(;_0x4ae966!=_0x28c8db[_0x42e0f4];)_0x3f9f02['has'](_0x28c8db[_0x42e0f4])||(_0x25ec28['set'](_0x28c8db[_0x42e0f4],_0x523cb1),_0x5a34bb['set'](_0x28c8db[_0x42e0f4],_0x523cb1)),_0x42e0f4++;}_0x42e0f4++;}}}}for(const _0x3ff4a1 of _0x3d1369){const _0x1355d5=_0x548806['insertions'][_0x3ff4a1];for(const _0x590e27 of _0x1355d5){const _0x19aa3b=this['_getVidAttributeName'](_0x590e27),_0x9417ff=_0x590e27['item']['getAttribute'](_0x19aa3b);if(_0x25ec28['has'](_0x9417ff)){const _0x278304=_0x25ec28['get'](_0x9417ff);_0x3f9f02['has'](_0x9417ff)||_0x3f9f02['set'](_0x9417ff,{..._0x278304}),_0x316161['set'](_0x9417ff,{..._0x278304});}}}for(const _0x5bfaac of _0x3f9f02['keys']())_0x5bfaac>=this['_startingRevisionId']&&_0x3f9f02['delete'](_0x5bfaac);const _0x171277=new Map();for(const _0x181607 of _0x3d1369){let _0xc33205=_0x548806['insertions'][_0x181607];for(const _0x5d728d of _0xc33205)if(_0x5d728d['item']['is']('element','tableCell')){const _0x394738=this['_getVidAttributeName'](_0x5d728d),_0x2e1cf8=_0x5d728d['item']['getAttribute'](_0x394738);if(_0x316161['has'](_0x2e1cf8)){const _0x242501=_0x5d728d['item']['parent']['parent']['getAttribute']('vid_start'),_0x372bb0=_0x171277['get'](_0x242501)||new Set();_0x372bb0['add'](_0x316161['get'](_0x2e1cf8)['userId']),_0x171277['set'](_0x242501,_0x372bb0);}}_0xc33205=_0x548806['deletions'][_0x181607];for(const _0x2abb2a of _0xc33205)if(_0x2abb2a['item']['is']('element','tableCell')){const _0x3f2be5=this['_getVidAttributeName'](_0x2abb2a),_0x59a2f8=_0x2abb2a['item']['getAttribute'](_0x3f2be5);if(_0x3f9f02['has'](_0x59a2f8)){const _0x33f767=_0x2abb2a['item']['parent']['parent']['getAttribute']('vid_start'),_0x29c680=_0x171277['get'](_0x33f767)||new Set();_0x29c680['add'](_0x3f9f02['get'](_0x59a2f8)['userId']),_0x171277['set'](_0x33f767,_0x29c680);}}for(const _0x46742e of _0x171277['keys']())(_0x316161['has'](_0x46742e)||_0x3f9f02['has'](_0x46742e))&&_0x171277['delete'](_0x46742e);}for(const _0x2446b8 of _0x3d1369){const _0x4d9a03=_0x548806['insertions'][_0x2446b8];let _0x18fdb8=null,_0x3b3b4f=null;for(const _0x2707cc of _0x4d9a03){const _0x48ff98=this['_getVidAttributeName'](_0x2707cc),_0xdeec22=_0x2707cc['item']['getAttribute'](_0x48ff98),_0x5798c0=_0x171277['get'](_0xdeec22);_0x5798c0&&'elementStart'==_0x2707cc['type']&&(_0x18fdb8=Array['from'](_0x5798c0)[0x0],_0x3b3b4f=_0x2707cc['item']['getAttribute']('vid_end')),_0x18fdb8&&(_0x3f9f02['set'](_0xdeec22,{'userId':_0x18fdb8}),_0x316161['set'](_0xdeec22,{'userId':_0x18fdb8})),_0xdeec22==_0x3b3b4f&&(_0x18fdb8=null,_0x3b3b4f=null);}}const _0x5cbbe2={},_0x3eec46=new Set();for(const _0x3d4034 of _0x3d1369){const _0x2d68a6=_0x2c759a['deletions'][_0x3d4034],_0x223add=_0x2c759a['insertions'][_0x3d4034];for(const {userId:_0x2be6ac}of this['_touchedMarkers']['values']())null!==_0x2be6ac&&_0x3eec46['add'](_0x2be6ac);for(const {userId:_0x50baba}of this['_touchedRoots']['values']())null!==_0x50baba&&_0x3eec46['add'](_0x50baba);this['_markChanges'](_0x223add,_0x548806['insertions'][_0x3d4034],_0x316161,'insertion',_0x3eec46),this['_markChanges'](_0x2d68a6,_0x548806['deletions'][_0x3d4034],_0x3f9f02,'deletion',_0x3eec46),_0x5cbbe2[_0x3d4034]={'insertions':this['_prepareViewToSave'](_0x223add),'deletions':this['_prepareViewToSave'](_0x2d68a6),'attachChange':this['_touchedRoots']['get'](_0x3d4034)||null,'attributesBefore':_0x3377cd(this['_baseRootsAttributes']['get'](_0x3d4034))||{},'attributesAfter':_0x3377cd(this['_diffRootsAttributes']['get'](_0x3d4034))};}return{'diffData':_0x5cbbe2,'authorsIds':Array['from'](_0x3eec46)};}['_processRootBeforeSave'](_0xf055b5){for(const [,_0x4c9cd4]of _0xf055b5['markers']){const _0x55fe23=_0x4c9cd4['start']['getAncestors']()['filter'](_0x5bdb51=>'tableCell'==_0x5bdb51['name']);for(const _0x12e7dc of _0x55fe23)0x1==_0x12e7dc['childCount']&&_0x12e7dc['getChild'](0x0)['is']('element','paragraph')&&_0x12e7dc['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xa67c87){this['_processRootBeforeSave'](_0xa67c87);const _0x61b371=this['editor']['data']['toView'](_0xa67c87,{}),_0x1ca576=Array['from'](_0x61b371['getChildren']())['map'](_0x470619=>this['_getViewJson'](_0x470619));return JSON['stringify'](_0x1ca576);}['_getViewJson'](_0x799c09){if(_0x799c09['is']('$text'))return _0x799c09['data'];{const _0x3e0ad9=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x37c065=_0x799c09,_0x54c76b=this['editor']['data']['htmlProcessor']['domConverter'],_0x741f2={'type':_0x3e0ad9['_getTypeCharForViewElement'](_0x37c065),'name':_0x37c065['name'],'attributes':Array['from'](_0x37c065['getAttributes']()),'children':Array['from'](_0x37c065['getChildren']())['map'](_0x2188f5=>this['_getViewJson'](_0x2188f5))};if(_0x799c09['is']('uiElement')&&'$comment'!=_0x799c09['name']){const _0x3935bd=_0x799c09['render'](_0x54c76b['domDocument'],_0x54c76b);_0x741f2['children']['push'](_0x3935bd['outerHTML']);}else{if(_0x799c09['is']('rawElement')){const _0x44541b=_0x54c76b['domDocument']['createElement'](_0x37c065['name']);_0x799c09['render'](_0x44541b,_0x54c76b),_0x741f2['children']['push'](_0x44541b['innerHTML']);}}const _0x63135f=Array['from'](_0x37c065['getCustomProperties']());_0x63135f['length']>0x0&&(_0x741f2['customProperties']=_0x63135f);const _0x34e785=_0x37c065['getFillerOffset']();return null!==_0x34e785&&(_0x741f2['fillerOffset']=_0x34e785),_0x741f2;}}['_markChanges'](_0x112ed5,_0x1a3109,_0x5d6675,_0x1aa1a5,_0x5d38e7){let _0x9d23db=null,_0x283b56=null,_0xbbc993=0x0;const _0x14c882=this['editor']['model'];for(let _0x3b2bc5=0x0;_0x3b2bc5<_0x1a3109['length'];_0x3b2bc5++){const _0x18f9fb=this['_getVidAttributeName'](_0x1a3109[_0x3b2bc5]),_0x2c8cbc=_0x1a3109[_0x3b2bc5]['item']['getAttribute'](_0x18f9fb),_0x45fc90=_0x5d6675['get'](_0x2c8cbc),_0x1d2524=_0x3b2bc5==_0x1a3109['length']-0x1;(!_0x9d23db&&_0x45fc90&&(_0x9d23db=_0x45fc90,_0x283b56=_0x1a3109[_0x3b2bc5]),_0x9d23db&&(!_0x45fc90||_0x45fc90['userId']!=_0x9d23db['userId']))&&(_0x40fcb7(_0x45fc90,P(_0x283b56,_0x112ed5,_0x14c882),P(_0x1a3109[_0x3b2bc5],_0x112ed5,_0x14c882)),_0x9d23db=_0x45fc90||null,_0x283b56=_0x45fc90?_0x1a3109[_0x3b2bc5]:null),_0x9d23db&&_0x1d2524&&_0x40fcb7(_0x45fc90,P(_0x283b56,_0x112ed5,_0x14c882),V(_0x1a3109[_0x3b2bc5],_0x112ed5,_0x14c882));}function _0x40fcb7(_0x4ffb18,_0x23bb66,_0x13c89e){const _0x2790e5=_0x9d23db['userId'],_0x2df10e='revision:'+_0x1aa1a5+':'+_0x2790e5+':'+_0xbbc993++,_0x44ba5f=_0x14c882['createRange'](_0x23bb66,_0x13c89e);_0x112ed5['markers']['set'](_0x2df10e,_0x44ba5f),null!==_0x2790e5&&_0x5d38e7['add'](_0x2790e5);}}['_getVidAttributeName'](_0x25aed5){switch(_0x25aed5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x30ea25,_0x4924e8){_0x30ea25['baseVersion']=null;for(const _0x3084cb in _0x30ea25){const _0x291101=_0x30ea25[_0x3084cb];if(_0x291101 instanceof _0x430199){const _0x47c802=_0x4924e8['get'](_0x291101['root']['rootName']);_0x30ea25[_0x3084cb]=this['_fixPosition'](_0x291101,_0x47c802);}if(_0x291101 instanceof _0x413bd1){const _0x109f84=_0x4924e8['get'](_0x291101['root']['rootName']);_0x30ea25[_0x3084cb]=this['_fixRange'](_0x291101,_0x109f84);}'root'===_0x3084cb&&(_0x30ea25['root']=_0x4924e8['get'](_0x30ea25['root']['rootName']));}}['_fixRange'](_0x2bdf70,_0x1801e6){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2bdf70['start'],_0x1801e6),this['_fixPosition'](_0x2bdf70['end'],_0x1801e6));}['_fixPosition'](_0x21cb4c,_0x426356){return this['editor']['model']['createPositionFromPath'](_0x426356,_0x21cb4c['path'],_0x21cb4c['stickiness']);}['_handleInsertOperation'](_0x24c309){const _0x5b2cf9=this['_idsRoots']['get'](_0x24c309['position']['root']['rootName']),_0x3e3351=this['_fixPosition'](_0x24c309['position'],_0x5b2cf9),_0x7e9a58=null===_0x24c309['_authorId']?null:_0x24c309['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x9c4b62=_0x3e3351['parent'],_0x19748f=this['_revisionId'],_0x19ff97=[];for(const _0x45b4e4 of _0x24c309['nodes'])if(_0x45b4e4['is']('element'))_0x19ff97['push'](this['_makeIdsRoot'](_0x45b4e4));else{for(let _0x509ba1=0x0;_0x509ba1<_0x45b4e4['offsetSize'];_0x509ba1++)_0x19ff97['push'](new _0x563007('$text',{'vid':this['_revisionId']++}));}const _0x438df6=this['_revisionId'];for(let _0x872327=_0x19748f;_0x872327<_0x438df6;_0x872327++)this['_touched']['set'](_0x872327,{'userId':_0x7e9a58});_0x9c4b62['_insertChild'](_0x3e3351['offset'],_0x19ff97);}['_handleMoveOperation'](_0x22568e){(_0x22568e=this['_cloneOperation'](_0x22568e,this['_idsRoots']))['_execute']();const _0x1f7fc5=null===_0x22568e['_authorId']?null:_0x22568e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f46cf=_0x22568e['getMovedRangeStart'](),_0xe9f612=_0x2f46cf['parent'],_0x41b9ab=_0x2f46cf['offset'];!function _0x3cbf9b(_0x1f7939,_0x519a52,_0x4f26e3,_0x288322){for(let _0x560513=_0x4f26e3;_0x560513<_0x288322;_0x560513++){const _0xb5410a=_0x519a52['getChild'](_0x560513);_0xb5410a['is']('element','$text')?_0x1f7939['set'](_0xb5410a['getAttribute']('vid'),{'userId':_0x1f7fc5}):(_0x1f7939['set'](_0xb5410a['getAttribute']('vid_start'),{'userId':_0x1f7fc5}),_0x3cbf9b(_0x1f7939,_0xb5410a,0x0,_0xb5410a['childCount']),_0x1f7939['set'](_0xb5410a['getAttribute']('vid_end'),{'userId':_0x1f7fc5}));}}(this['_touched'],_0xe9f612,_0x41b9ab,_0x41b9ab+_0x22568e['howMany']);}['_handleMergeOperation'](_0x168de4){const _0x3a9c9a=null===(_0x168de4=this['_cloneOperation'](_0x168de4,this['_idsRoots']))['_authorId']?null:_0x168de4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x155a8e=_0x168de4['targetPosition']['parent'],_0x2993ea=_0x168de4['sourcePosition']['parent'],_0xd83678=_0x155a8e['getAttribute']('vid_end'),_0x8ccc2f=_0x2993ea['getAttribute']('vid_start');_0x155a8e['_setAttribute']('vid_end',_0x2993ea['getAttribute']('vid_end')),_0x2993ea['_setAttribute']('vid_end',_0xd83678),this['_touched']['set'](_0x8ccc2f,{'userId':_0x3a9c9a}),this['_touched']['set'](_0xd83678,{'userId':_0x3a9c9a}),_0x168de4['_execute']();}['_handleSplitOperation'](_0x5a61bc){const _0x5030d1=null===(_0x5a61bc=this['_cloneOperation'](_0x5a61bc,this['_idsRoots']))['_authorId']?null:_0x5a61bc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x415421=_0x5a61bc['graveyardPosition'],_0x478957=_0x5a61bc['splitPosition']['parent'];_0x5a61bc['_execute']();const _0xa855a1=_0x478957['getAttribute']('vid_end'),_0x2e0065=_0x5a61bc['insertionPosition']['nodeAfter'];if(_0x415421){const _0x5c9175=_0x2e0065['getAttribute']('vid_end'),_0x5637e8=_0x478957['getAttribute']('vid_end');_0x478957['_setAttribute']('vid_end',_0x5c9175),_0x2e0065['_setAttribute']('vid_end',_0x5637e8),this['_touched']['set'](_0x478957['getAttribute']('vid_end'),{'userId':_0x5030d1}),this['_touched']['set'](_0x2e0065['getAttribute']('vid_start'),{'userId':_0x5030d1});}else{const _0x302d37=this['_revisionId']++,_0x2f8416=this['_revisionId']++;_0x478957['_setAttribute']('vid_end',_0x302d37),_0x2e0065['_setAttribute']('vid_start',_0x2f8416),_0x2e0065['_setAttribute']('vid_end',_0xa855a1),this['_touched']['set'](_0x302d37,{'userId':_0x5030d1}),this['_touched']['set'](_0x2f8416,{'userId':_0x5030d1});}}['_handleMarkerOperation'](_0x5590ee){if(!_0x5590ee['affectsData'])return;const _0x25645c=(_0x5590ee=this['_cloneOperation'](_0x5590ee,this['_diffRoots']))['oldRange']?_0x5590ee['oldRange']['root']:null,_0x2843c6=_0x5590ee['newRange']?_0x5590ee['newRange']['root']:null;_0x25645c&&this['_markers']['delete'](_0x5590ee['name']),_0x2843c6&&this['_markers']['set'](_0x5590ee['name'],_0x5590ee['newRange']['clone']());const _0x3359fe=null===_0x5590ee['_authorId']?null:_0x5590ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7fc65e=_0x5590ee['name'];if(!this['_touchedMarkers']['has'](_0x7fc65e))return void this['_touchedMarkers']['set'](_0x7fc65e,{'range':_0x5590ee['oldRange'],'userId':_0x3359fe});const _0x1132f7=this['_touchedMarkers']['get'](_0x7fc65e),_0xfd4af1=_0x1132f7['range'],_0x5b7f50=_0x5590ee['newRange'];null==_0xfd4af1&&null==_0x5b7f50||_0xfd4af1&&_0x5b7f50&&_0xfd4af1['isEqual'](_0x5b7f50)?this['_touchedMarkers']['delete'](_0x5590ee['name']):_0x1132f7['userId']=_0x3359fe;}['_handleRootOperation'](_0x49e2a0,_0x3eea5a){this['_diffRoots']['has'](_0x49e2a0['rootName'])?this['_diffRoots']['get'](_0x49e2a0['rootName'])['_isAttached']=_0x49e2a0['isAdd']:(this['_diffRoots']['set'](_0x49e2a0['rootName'],N(_0x49e2a0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x49e2a0['rootName'],{}),_0x3eea5a&&this['_idsRoots']['set'](_0x49e2a0['rootName'],N(_0x49e2a0['rootName'],!0x0)));const _0x499176=null===_0x49e2a0['_authorId']?null:_0x49e2a0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25c91a=this['_touchedRoots']['get'](_0x49e2a0['rootName']);_0x25c91a&&_0x25c91a['userId']===_0x499176?this['_touchedRoots']['delete'](_0x49e2a0['rootName']):this['_touchedRoots']['set'](_0x49e2a0['rootName'],{'userId':_0x499176,'isAttached':_0x49e2a0['isAdd']});}['_handleRootAttributeOperation'](_0x4b9024){const _0x37c635=this['_diffRootsAttributes']['get'](_0x4b9024['root']['rootName']);null===_0x4b9024['newValue']?delete _0x37c635[_0x4b9024['key']]:_0x37c635[_0x4b9024['key']]=_0x4b9024['newValue'];}}function x(_0xe8f500){const _0x59b04b=N(_0xe8f500['rootName'],_0xe8f500['isAttached']());for(const _0x29971e of _0xe8f500['getChildren']()){const _0x196369=_0x29971e['_clone'](!0x0);_0x59b04b['_appendChild'](_0x196369);}return _0x59b04b;}function N(_0x2a3aca,_0x17e724=!0x0){const _0x4ebe32=new _0xbcec00();return _0x4ebe32['rootName']=_0x2a3aca,_0x4ebe32['_isAttached']=_0x17e724,_0x4ebe32['isAttached']=()=>_0x4ebe32['_isAttached'],_0x4ebe32;}function P(_0x29ed93,_0x19d115,_0x1271a5){const _0x20cd0e='elementEnd'==_0x29ed93['type']?_0x1271a5['createPositionAt'](_0x29ed93['item'],'end'):_0x1271a5['createPositionBefore'](_0x29ed93['item']);return _0x1271a5['createPositionFromPath'](_0x19d115,_0x20cd0e['path'],_0x20cd0e['stickiness']);}function V(_0x3cb3f3,_0x493557,_0x127f8d){const _0x433f94='elementStart'==_0x3cb3f3['type']?_0x127f8d['createPositionAt'](_0x3cb3f3['item'],0x0):_0x127f8d['createPositionAfter'](_0x3cb3f3['item']);return _0x127f8d['createPositionFromPath'](_0x493557,_0x433f94['path'],_0x433f94['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4a5c94(_0x46a24c){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x59a821,_0x30c8d8){super(_0x59a821),this['focusTracker']=new _0x2a533f(),this['keystrokes']=new _0x49e430(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x30c8d8),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'](),_0x52c0fa({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x554e07=_0x9435ab=>_0x9435ab['stopPropagation']();this['keystrokes']['set']('arrowright',_0x554e07),this['keystrokes']['set']('arrowleft',_0x554e07),this['keystrokes']['set']('arrowup',_0x554e07),this['keystrokes']['set']('arrowdown',_0x554e07);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5bb4ce){this['revisionNameInputView']['fieldView']['element']['value']=_0x5bb4ce['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x259492){const _0x2fb8c8=new et(this['locale'],ti),_0x4ceb39=_0x2fb8c8['fieldView'];_0x4ceb39['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x258a7a=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x259492&&(_0x258a7a+='\x20('+m(this['locale'],'optional')+')'),(_0x2fb8c8['label']=_0x258a7a,_0x4ceb39['on']('input',()=>{this['revisionNameInputValue']=_0x4ceb39['element']['value']['trim']();}),_0x2fb8c8);}}class l extends _0x4a1ed9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x4fe07b=this['editor'],_0x1784b2=_0x4fe07b['plugins']['get']('RevisionTracker');_0x4fe07b['ui']['componentFactory']['add']('revisionHistory',_0x18897b=>{const _0x4156f2=_0x57beb3(_0x18897b),_0xee1a6e=_0x4156f2['panelView']['children'],_0x16288c=new _0xa19344(_0x18897b),_0xb54c42=new _0x2da67b(_0x18897b),_0x2648fe=new _0x3edebb(_0x18897b),_0x44453a=new _0x2da67b(_0x18897b),_0x10de40=new _0x3edebb(_0x18897b);return _0x4156f2['bind']('isEnabled')['to'](_0x1784b2,'isReady',_0x1784b2,'isEnabled',_0x4fe07b,'isReadOnly',(_0x38acad,_0xcaaad8,_0x56f322)=>_0x38acad&&_0xcaaad8&&!_0x56f322),_0x4156f2['buttonView']['set']({'icon':_0x5cfb23,'label':m(_0x18897b,'Revision\x20history'),'tooltip':!0x0}),_0x2648fe['set']({'label':m(_0x18897b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2648fe['bind']('isEnabled')['to'](_0x1784b2,'isReady',_0x1784b2,'isEnabled',_0x4fe07b,'isReadOnly',(_0x30d55d,_0x17034e,_0x44f542)=>_0x30d55d&&_0x17034e&&!_0x44f542),_0x2648fe['on']('execute',()=>this['_showDialog']()),_0x10de40['set']({'label':m(_0x18897b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x10de40['bind']('isEnabled')['to'](_0x1784b2,'isReady',_0x4fe07b,'isReadOnly',(_0x1d7fc5,_0x4be16c)=>_0x1d7fc5&&!_0x4be16c),_0x10de40['on']('execute',()=>{_0x4fe07b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4156f2['isOpen']=!0x1,_0x4fe07b['editing']['view']['focus']();}),_0xb54c42['children']['add'](_0x2648fe),_0x44453a['children']['add'](_0x10de40),_0x16288c['role']='menu',_0x16288c['items']['addMany']([_0xb54c42,_0x44453a]),_0xee1a6e['add'](_0x16288c),_0x4156f2;}),_0x4fe07b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x51e0d6=this['editor'],_0x177c19=_0x51e0d6['locale'],_0x5077ab=new _0x35307a(_0x177c19),_0x50cc33=new _0x4b1f1c(_0x177c19);_0x5077ab['buttonView']['set']({'icon':_0x5cfb23,'label':m(_0x177c19,'Revision\x20history')});const _0x28befb=new _0x1c0a1a(_0x177c19,_0x5077ab),_0x3f16c9=new _0x28a639(_0x177c19);_0x3f16c9['set']({'label':m(_0x177c19,'Save\x20current\x20revision')}),_0x3f16c9['delegate']('execute')['to'](_0x5077ab),_0x3f16c9['on']('execute',()=>{this['_showDialog']();}),_0x28befb['children']['add'](_0x3f16c9),_0x50cc33['items']['add'](_0x28befb);const _0x2626c=new _0x1c0a1a(_0x177c19,_0x5077ab),_0xdffbe5=new _0x28a639(_0x177c19);return _0xdffbe5['set']({'label':m(_0x177c19,'Open\x20revision\x20history')}),_0xdffbe5['delegate']('execute')['to'](_0x5077ab),_0xdffbe5['on']('execute',()=>{_0x51e0d6['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2626c['children']['add'](_0xdffbe5),_0x50cc33['items']['add'](_0x2626c),_0x5077ab['panelView']['children']['add'](_0x50cc33),_0x5077ab;}['_showDialog'](){const _0x320f54=this['editor'],_0x5646f9=_0x320f54['locale'],_0x1e4ff2=_0x320f54['plugins']['get']('Dialog'),_0x2cc3b3=_0x320f54['plugins']['get']('RevisionTracker');function _0x5b21a8(_0x37b8b4){_0x320f54['config']['get']('revisionHistory.requireRevisionName')&&''===_0x37b8b4['revisionName']?_0x37b8b4['revisionNameInputView']['errorText']=m(_0x5646f9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x320f54['plugins']['get'](h)['saveRevision']({'name':_0x37b8b4['revisionName']}),_0x1e4ff2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5b21a8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1e4ff2['show']({'id':'revisionSave','title':m(_0x5646f9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x320f54['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1e4ff2['hide']()},{'label':m(_0x320f54['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x390cf7){_0x390cf7['bind']('isEnabled')['to'](_0x2cc3b3,'isReady',_0x2cc3b3,'isEnabled',_0x320f54,'isReadOnly',(_0x1bbd62,_0x53868e,_0x3fa975)=>_0x1bbd62&&_0x53868e&&!_0x3fa975);},'onExecute':()=>_0x5b21a8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x50cdd9=this['editor'],_0x31dd1f=_0x50cdd9['locale'];this['_saveRevisionFormView']=new me(_0x31dd1f,_0x50cdd9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x46a24c{['changeId'];['_model'];constructor(_0x18c551,_0x3c206a){super(_0x18c551),this['_model']=_0x3c206a,this['changeId']=_0x3c206a['id'];const _0x47c008=this['bindTemplate'],_0x168d9d=m(_0x18c551,_0x3c206a['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3c206a['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3c206a['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x47c008['to']('type',_0x3f2010=>'ck-revision-change__'+_0x3f2010)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x168d9d}]},{'text':'\x20'+_0x3c206a['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4074c6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x510a55){super(),this['id']=_0x510a55['id']||_0x50a7a4(),this['author']=_0x510a55['author'],this['type']=_0x510a55['type'],this['data']=_0x510a55['data']||{},this['rootName']=_0x510a55['rootName'],this['set']('createdAt',_0x510a55['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(_0xafa4f4,_0x309266){this['newRevisionId']=_0xafa4f4,this['oldRevisionId']=_0x309266,this['changes']=new _0xa55e0();}['_setChanges'](_0x55daed){for(const _0x22f8fb of _0x55daed)this['changes']['add'](_0x22f8fb);}}class u extends _0x4a1ed9{['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[_0xd4b749,_0x393eb2,S,$];}constructor(_0x382e71){super(_0x382e71),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',(_0xa14361,_0x56b725,_0x2a2b08)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x405c01=>{for(const _0x19c42f of this['editor']['editing']['view']['document']['roots'])_0x2a2b08?_0x405c01['removeClass']('ck-editor__editable__overlay',_0x19c42f):_0x405c01['addClass']('ck-editor__editable__overlay',_0x19c42f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x30c6b1=>null!==_0x30c6b1),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x237d0b,_0x2d4868,_0x38a0a6)=>_0x237d0b&&_0x38a0a6?_0x2d4868['changes']['getIndex'](_0x38a0a6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x40c289,_0xeca7a4)=>_0x40c289?_0xeca7a4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x393eb2);}['init'](){const _0x11d4ed=this['editor'],_0x359dd9=new rt(_0x11d4ed,{'direction':'backward'}),_0x46f378=new rt(_0x11d4ed,{'direction':'forward'});(_0x11d4ed['commands']['add']('showPreviousChange',_0x359dd9),_0x11d4ed['commands']['add']('showNextChange',_0x46f378),_0x11d4ed['commands']['add']('restoreRevision',new nt(_0x11d4ed)),this['on']('change:numberOfChanges',()=>{_0x359dd9['refresh'](),_0x46f378['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x11d4ed['enableReadOnlyMode']('revision-viewer'),_0x11d4ed['plugins']['has']('WidgetToolbarRepository'))&&_0x11d4ed['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3c3585){return await this['_utils']['loadRevisionData'](_0x3c3585,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3c3585);}async['getRevisionRootsAttributes'](_0x394b47){return await this['_utils']['loadRevisionData'](_0x394b47,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x394b47);}async['compare'](_0x159640,_0x297df6,_0x5ea7e1=!0x1){if(!this['isEnabled'])return;const _0x10ac65=this['diff'],_0x3ad68f=this['repository'],_0x4666a5='string'==typeof _0x159640?_0x3ad68f['getRevision'](_0x159640):_0x159640,_0x2663b4='string'==typeof _0x297df6?_0x3ad68f['getRevision'](_0x297df6):_0x297df6,_0x4a4903=_0x4666a5['id'],_0x41f3b3=_0x2663b4?_0x2663b4['id']:null;if(!_0x5ea7e1&&this['diff']&&this['diff']['newRevisionId']===_0x4a4903&&this['diff']['oldRevisionId']===_0x41f3b3)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x4a4903,_0x41f3b3);const _0x551756=this['_getRevisionsRange'](_0x4666a5,_0x2663b4,!0x0)['map'](_0x35abda=>this['_utils']['loadRevisionData'](_0x35abda,this['adapter']));return _0x551756['push'](new Promise(_0x1a3cc8=>{setTimeout(_0x1a3cc8,0x14);})),Promise['all'](_0x551756)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x52afcd=this['_getDiff'](_0x4a4903,_0x41f3b3);for(const _0x3edc26 of _0x52afcd['changes'])this['_changeIdToChange']['set'](_0x3edc26['id'],_0x3edc26);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x381826=>{for(const _0xda7e5c of this['editor']['model']['document']['getRootNames']())_0x381826['detachRoot'](_0xda7e5c);for(const _0x451df9 of Object['keys'](_0x52afcd['model'])){const _0x2634c5=_0x381826['addRoot'](_0x451df9);for(const _0x5c0ce3 of Object['keys'](_0x52afcd['attributes'][_0x451df9]))_0x381826['setAttribute'](_0x5c0ce3,_0x52afcd['attributes'][_0x451df9][_0x5c0ce3],_0x2634c5);_0x381826['insert'](_0x52afcd['model'][_0x451df9],_0x2634c5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x52afcd['changes'])),this['isReady']=!0x0;})['catch'](_0xd59547=>{console['error'](_0xd59547),this['_cleanUp'](),_0x10ac65&&(this['diff']=_0x10ac65),this['isReady']=!0x0;});}['addRevisionData'](_0x37d8b1,_0x89f6e7){const _0x9e217b=this['repository']['createRevision'](_0x37d8b1);return _0x9e217b['on']('_update',(_0x208649,_0x2b5526,_0x14be26)=>_0x89f6e7(_0x2b5526,_0x14be26,_0x9e217b)),this['repository']['addRevision'](_0x9e217b),_0x9e217b;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x22f90a=>{for(const _0x394ab3 of this['editor']['model']['document']['getRootNames']())_0x22f90a['detachRoot'](_0x394ab3);});}['_sortAndFilterDiffChanges'](_0x4f0238){const _0x1395a9=[],_0x2ee5de=new Map();for(const _0x222b04 of this['editor']['model']['document']['getRootNames']()){const _0x462b6d=this['editor']['editing']['view']['getDomRoot'](_0x222b04);if(!_0x462b6d)continue;const _0x2e5de3=_0x462b6d['getClientRects']()['item'](0x0);_0x2e5de3&&(_0x1395a9['push'](_0x222b04),_0x2ee5de['set'](_0x222b04,_0x2e5de3));}return _0x1395a9['sort']((_0x2512bf,_0xace942)=>{const _0xe54529=_0x2ee5de['get'](_0x2512bf),_0x213c17=_0x2ee5de['get'](_0xace942);return _0xe54529['y']-_0x213c17['y']||_0xe54529['x']-_0x213c17['x'];}),(_0x4f0238=_0x4f0238['filter'](_0x3665f2=>_0x1395a9['includes'](_0x3665f2['rootName'])))['sort']((_0x5c7772,_0x487280)=>_0x1395a9['indexOf'](_0x5c7772['rootName'])-_0x1395a9['indexOf'](_0x487280['rootName'])),_0x4f0238;}['_makeTape'](_0x316184){const _0x10f8fb=Array['from'](_0x316184['markers'])['filter'](([_0x149e1a,_0x51e3e5])=>_0x149e1a['startsWith']('revision:')&&!_0x51e3e5['isCollapsed']),_0x4cd393=Array['from'](this['editor']['model']['createRangeIn'](_0x316184)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x10f8fb['length'])for(const _0x3a06d3 of _0x4cd393){const [_0x459c9a,_0x3d04dd]=_0x10f8fb[0x0],[,_0x5ba01d,_0x48fe31]=_0x459c9a['split'](':');if(_0x3d04dd['end']['isEqual'](_0x3a06d3['nextPosition'])&&_0x10f8fb['shift'](),(_0x3a06d3['previousPosition']['isEqual'](_0x3d04dd['start'])||_0x3a06d3['previousPosition']['isAfter'](_0x3d04dd['start']))&&('insertion'==_0x5ba01d?_0x3a06d3['isAdded']={'userId':_0x48fe31}:'deletion'==_0x5ba01d&&(_0x3a06d3['isRemoved']={'userId':_0x48fe31})),0x0==_0x10f8fb['length'])break;}return _0x4cd393;}['_refreshStartEndIndex'](_0x3aa86c){const _0x5eeeb5=new Map();for(let _0x489c58=0x0;_0x489c58<_0x3aa86c['length'];_0x489c58++)'text'===_0x3aa86c[_0x489c58]['type']?(_0x3aa86c[_0x489c58]['item']['startIndex']=_0x489c58,_0x3aa86c[_0x489c58]['item']['endIndex']=_0x489c58):('elementStart'===_0x3aa86c[_0x489c58]['type']?_0x3aa86c[_0x489c58]['item']['startIndex']=_0x489c58:'elementEnd'===_0x3aa86c[_0x489c58]['type']&&(_0x3aa86c[_0x489c58]['item']['endIndex']=_0x489c58),_0x5eeeb5['set'](_0x3aa86c[_0x489c58]['id'],_0x489c58));for(const _0x2caaa8 of _0x5eeeb5['values']())'elementStart'===_0x3aa86c[_0x2caaa8]['type']?_0x3aa86c[_0x2caaa8]['item']['endIndex']=_0x5eeeb5['get'](_0x3aa86c[_0x2caaa8]['pairId']):'elementEnd'===_0x3aa86c[_0x2caaa8]['type']&&(_0x3aa86c[_0x2caaa8]['item']['startIndex']=_0x5eeeb5['get'](_0x3aa86c[_0x2caaa8]['pairId']));}['_processTape'](_0x12a2cf){for(let _0x44c1b0=0x0;_0x44c1b0<_0x12a2cf['length'];_0x44c1b0++){if('elementStart'===_0x12a2cf[_0x44c1b0]['type'])_0x12a2cf[_0x44c1b0]['item']['startIndex']=_0x44c1b0;else{if('elementEnd'===_0x12a2cf[_0x44c1b0]['type']){_0x12a2cf[_0x44c1b0]['item']['endIndex']=_0x44c1b0;const _0x12ed9a=_0x12a2cf[_0x44c1b0]['item']['startIndex'];_0x12a2cf[_0x12ed9a]['pairId']=_0x12a2cf[_0x44c1b0]['id'],_0x12a2cf[_0x44c1b0]['pairId']=_0x12a2cf[_0x12ed9a]['id'];}else _0x12a2cf[_0x44c1b0]['item']['startIndex']=_0x44c1b0,_0x12a2cf[_0x44c1b0]['item']['endIndex']=_0x44c1b0,_0x12a2cf[_0x44c1b0]['pairId']=null;}_0x12a2cf[_0x44c1b0]['markersStart']||(_0x12a2cf[_0x44c1b0]['markersStart']=[],_0x12a2cf[_0x44c1b0]['markersEnd']=[]);}}['_markInsertions'](_0xe0ece4,_0x4859c1){const _0x1ee0fb=_0xe0ece4['filter'](_0x59cdd6=>!_0x59cdd6['isAdded']);for(let _0x5b41fe=0x0;_0x5b41fe<_0x4859c1['length'];_0x5b41fe++)_0x4859c1[_0x5b41fe]['isAdded']&&(_0x1ee0fb[_0x5b41fe]['isAdded']=_0x4859c1[_0x5b41fe]['isAdded']);}['_getDiff'](_0x4770bf,_0x59fdb5=null){const _0x38b1fb=this['repository']['getRevision'](_0x4770bf),_0x5f0009=_0x59fdb5?this['repository']['getRevision'](_0x59fdb5):null,_0x318c37=this['_getRevisionsRange'](_0x38b1fb,_0x5f0009),_0x1dc151=_0x318c37[_0x318c37['length']-0x1],_0x14486f=new Map(),_0x289510={'model':{},'attributes':{},'changes':[]},_0x1a5cd2=new Set(),_0x44509c=new Map();for(let _0x4c834b=_0x318c37['length']-0x1;_0x4c834b>=0x0;_0x4c834b--){const _0x599dcd=_0x318c37[_0x4c834b];for(const _0x1a9018 of Object['keys'](_0x599dcd['diffData']))if(_0x599dcd['diffData'][_0x1a9018]['attachChange']){const _0x1432b8=_0x599dcd['diffData'][_0x1a9018]['attachChange'];_0x1432b8['isAttached']?(_0x1a5cd2['add'](_0x1a9018),_0x44509c['has'](_0x1a9018)&&_0x44509c['get'](_0x1a9018)['userId']==_0x1432b8['userId']?_0x44509c['delete'](_0x1a9018):_0x44509c['set'](_0x1a9018,_0x1432b8)):_0x44509c['has'](_0x1a9018)?(_0x1a5cd2['delete'](_0x1a9018),_0x44509c['delete'](_0x1a9018)):(_0x1a5cd2['add'](_0x1a9018),_0x44509c['set'](_0x1a9018,_0x1432b8));}else _0x1a5cd2['add'](_0x1a9018);}for(const _0x418728 of _0x1a5cd2){const _0x5eebfd=_0x44509c['has'](_0x418728)&&!_0x44509c['get'](_0x418728)['isAttached'];let _0x2d1e08=_0x5eebfd?_0x318c37['length']-0x1:0x0;const _0x1b5f3c=_0x5eebfd?-0x1:0x1;for(;_0x318c37[_0x2d1e08];){const _0x3aa0c3=_0x318c37[_0x2d1e08];if(_0x3aa0c3['diffData'][_0x418728]){const _0xc727f3=_0x5eebfd?_0x3aa0c3['diffData'][_0x418728]['attributesBefore']:_0x3aa0c3['diffData'][_0x418728]['attributesAfter'];_0x289510['attributes'][_0x418728]=_0xc727f3?_0x3377cd(_0xc727f3):{};break;}_0x2d1e08+=_0x1b5f3c;}}for(const _0x36c4eb of _0x318c37){_0x36c4eb['model']={};for(const _0x4961b1 of _0x36c4eb['authors'])_0x14486f['set'](_0x4961b1['id'],_0x4961b1);for(const _0x497611 of _0x1a5cd2){const _0x3483a1=_0x36c4eb['diffData'][_0x497611]?_0x36c4eb['diffData'][_0x497611]['insertions']:'[]',_0x9f5867=_0x36c4eb['diffData'][_0x497611]?_0x36c4eb['diffData'][_0x497611]['deletions']:'[]';_0x36c4eb['model'][_0x497611]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3483a1),'deletions':this['_utils']['_makeModelFromViewString'](_0x9f5867)};}}for(const _0xcaccb4 of _0x1a5cd2){let _0x4103cf=null,_0x2de636=0x0;const _0x2bc7a7=new Map(Array['from'](_0x38b1fb['model'][_0xcaccb4]['insertions']['markers'])['filter'](([_0x577f45])=>!_0x577f45['startsWith']('revision:')));let _0x550673=0x0;for(const _0x3c26b8 of _0x318c37){const _0x1349fa=this['_makeTape'](_0x3c26b8['model'][_0xcaccb4]['insertions']);_0x3c26b8==_0x38b1fb?(_0x4103cf=_0x1349fa,_0x2de636=_0x4103cf['length'],_0x4103cf['forEach'](_0xa4a05e=>{_0xa4a05e['id']=_0x550673++;}),this['_processTape'](_0x4103cf)):this['_markInsertions'](_0x4103cf,_0x1349fa);const _0x48304e=_0x4103cf['filter'](_0x3283f6=>!_0x3283f6['isAdded'])['map'](_0xd5bcc9=>_0xd5bcc9['id']);let _0x34058c=0x0;const _0x29ef19=this['_makeTape'](_0x3c26b8['model'][_0xcaccb4]['deletions']);_0x29ef19['forEach'](_0x1ec984=>{_0x1ec984['isRemoved']?_0x1ec984['id']=_0x2de636++:_0x1ec984['id']=_0x48304e[_0x34058c++];}),this['_processTape'](_0x29ef19),this['_setDistance'](_0x4103cf,'isAdded'),this['_setDistance'](_0x29ef19,'isRemoved'),_0x3c26b8==_0x38b1fb&&this['_markMarkers'](_0x4103cf,_0x2bc7a7),_0x4103cf=this['_joinTapes'](_0x4103cf,_0x29ef19),this['_refreshStartEndIndex'](_0x4103cf),this['_setDistance'](_0x4103cf,'isRemoved');}_0x4103cf=_0x4103cf['filter'](_0x293b19=>!(_0x293b19['isAdded']&&_0x293b19['isRemoved']));const _0x5c92c9=new Map(_0x1dc151['model'][_0xcaccb4]['deletions']['markers']),_0x5db496=new Set(_0x2bc7a7['keys']());for(const _0x41b6cb of _0x5c92c9['keys']())_0x5db496['delete'](_0x41b6cb);this['_markSuggestions'](_0x4103cf,_0x5db496),this['_fixObsoleteTags'](_0x4103cf),_0x4103cf=this['_removeMissingPairs'](_0x4103cf),_0x4103cf=this['_markMismatchedRemovedTags'](_0x4103cf),_0x4103cf=this['_removeUnsupportedChanges'](_0x4103cf);const {root:_0x23551f,changes:_0x4b2214}=this['_makeModelFromTape'](_0x4103cf,_0x14486f,_0xcaccb4);_0x289510['model'][_0xcaccb4]=_0x23551f;const _0xd73191=_0x44509c['get'](_0xcaccb4);if(_0xd73191){const _0x5debf4=_0x14486f['get'](_0xd73191['userId']),_0x36a246=new G({'author':_0x5debf4,'type':_0xd73191['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xcaccb4});_0x4b2214['unshift'](_0x36a246),_0x289510['attributes'][_0xcaccb4]['revisionHistoryAttachChange']=_0x36a246['id'];}_0x289510['changes']=_0x289510['changes']['concat'](_0x4b2214);}return _0x289510;}['_markMarkers'](_0x38f5cd,_0x67b7ce){for(let _0x2890ef=0x0;_0x2890ef<_0x38f5cd['length'];_0x2890ef++)for(const [_0x368869,_0x2d36d4]of _0x67b7ce)!_0x2d36d4['isCollapsed']&&_0x2d36d4['start']['isEqual'](_0x38f5cd[_0x2890ef]['previousPosition'])&&_0x38f5cd[_0x2890ef]['markersStart']['push'](_0x368869),_0x2d36d4['end']['isEqual'](_0x38f5cd[_0x2890ef]['nextPosition'])&&_0x38f5cd[_0x2890ef]['markersEnd']['push'](_0x368869);}['_joinTapes'](_0x57bab5,_0x93464d){let _0x56ac15=[],_0x437d5c=0x0,_0x1d842c=0x0;for(;_0x437d5c<_0x57bab5['length']||_0x1d842c<_0x93464d['length'];){const _0x2c6b7e=_0x57bab5[_0x437d5c]||{},_0x56f881=_0x93464d[_0x1d842c]||{};if(_0x2c6b7e['id']==_0x56f881['id'])_0x437d5c++,_0x1d842c++,_0x56ac15['push'](_0x2c6b7e);else{if(_0x56f881['isRemoved']&&_0x2c6b7e['isAdded']){const {commonTape:_0x51ddeb,iEnd:_0x50c234,jEnd:_0x272b52}=this['_threeWayMerge'](_0x57bab5,_0x437d5c,_0x93464d,_0x1d842c);_0x56ac15=_0x56ac15['concat'](_0x51ddeb),_0x437d5c=_0x50c234,_0x1d842c=_0x272b52;}else _0x56f881['isRemoved']?(_0x1d842c++,_0x56ac15['push'](_0x56f881)):(_0x437d5c++,_0x56ac15['push'](_0x2c6b7e));}}return _0x56ac15;}['_markSuggestions'](_0x392dd9,_0xdb4eb7){const _0x4ec14c=[];for(let _0x270ce7=0x0;_0x270ce7<_0x392dd9['length'];_0x270ce7++){for(let _0x23ed39=0x0;_0x23ed39<_0x392dd9[_0x270ce7]['markersStart']['length'];_0x23ed39++){const _0x1e1179=_0x392dd9[_0x270ce7]['markersStart'][_0x23ed39];if(!_0xdb4eb7['has'](_0x1e1179))continue;const {group:_0x2308f0,type:_0x2ec3a1,authorId:_0x32f37f}=_0xd55bd(_0x1e1179);'revision-suggestion'!=_0x2308f0||'insertion'!=_0x2ec3a1&&'deletion'!=_0x2ec3a1||(_0x4ec14c['unshift']({'type':_0x2ec3a1,'name':_0x1e1179,'userId':_0x32f37f}),_0x392dd9[_0x270ce7]['markersStart']['splice'](_0x23ed39,0x1),_0x23ed39--);}_0x5ba38c(_0x392dd9[_0x270ce7]);for(let _0x4aef62=0x0;_0x4aef62<_0x392dd9[_0x270ce7]['markersEnd']['length'];_0x4aef62++){const _0x3948d4=_0x392dd9[_0x270ce7]['markersEnd'][_0x4aef62];if(!_0xdb4eb7['has'](_0x3948d4))continue;const {group:_0x150fa8,type:_0x374455}=_0xd55bd(_0x3948d4);if('revision-suggestion'!=_0x150fa8||'insertion'!=_0x374455&&'deletion'!=_0x374455)continue;_0x392dd9[_0x270ce7]['markersEnd']['splice'](_0x4aef62,0x1),_0x4aef62--;const _0xb7f4c2=_0x4ec14c['findIndex'](_0x4d5056=>_0x4d5056['name']==_0x3948d4);_0xb7f4c2>-0x1&&_0x4ec14c['splice'](_0xb7f4c2,0x1);}}function _0xd55bd(_0x5a7e4c){const _0x24adf5=_0x5a7e4c['split'](':');return{'group':_0x24adf5[0x0],'type':_0x24adf5[0x1],'subType':_0x24adf5['length']>=0x5?_0x24adf5[0x2]:null,'id':_0x24adf5['length']<0x5?_0x24adf5[0x2]:_0x24adf5[0x3],'authorId':_0x24adf5['length']<0x5?_0x24adf5[0x3]:_0x24adf5[0x4],'markerCount':0x6==_0x24adf5['length']?_0x24adf5[0x5]:null};}function _0x5ba38c(_0x5b1c87){for(let _0x205d1c=0x0;_0x205d1c<_0x4ec14c['length'];_0x205d1c++){if(_0x5b1c87['isAdded']&&'insertion'==_0x4ec14c[_0x205d1c]['type']&&_0x5b1c87['isAdded']['userId']==_0x4ec14c[_0x205d1c]['userId'])return _0x5b1c87['isAddSuggestion']=_0x4ec14c[_0x205d1c],void delete _0x5b1c87['isAdded'];if(!_0x5b1c87['isAdded']&&!_0x5b1c87['isRemoved']&&'deletion'==_0x4ec14c[_0x205d1c]['type'])return void(_0x5b1c87['isRemoveSuggestion']=_0x4ec14c[_0x205d1c]);}}}['_setDistance'](_0x5b9606,_0x348550){let _0x3781f0=0x0,_0x4aa06e=!0x1;const _0x43ea0b=new Map();for(const _0x5df8ee of _0x5b9606)_0x5df8ee[_0x348550]?_0x4aa06e&&(_0x3781f0++,_0x4aa06e=!0x1):(_0x3781f0++,_0x4aa06e=!0x0),_0x43ea0b['set'](_0x5df8ee['id'],_0x3781f0);for(let _0x4a9029=0x0;_0x4a9029<_0x5b9606['length'];_0x4a9029++){if('isRemoved'==_0x348550&&_0x5b9606[_0x4a9029]['isAdded']||'isAdded'==_0x348550&&_0x5b9606[_0x4a9029]['isRemoved'])continue;if('text'==_0x5b9606[_0x4a9029]['type']){_0x5b9606[_0x4a9029]['distance']=0x0;continue;}const _0x189951=_0x43ea0b['get'](_0x5b9606[_0x4a9029]['pairId']),_0x144e39=_0x43ea0b['get'](_0x5b9606[_0x4a9029]['id']);_0x5b9606[_0x4a9029]['distance']=_0x189951-_0x144e39;}}['_getRevisionsRange'](_0x12319c,_0x237bb2,_0x404488=!0x1){const _0x267065=[];let _0x1618a8=this['repository']['getIndex'](_0x12319c),_0x2f0a50=this['repository']['getIndex'](_0x237bb2);for(-0x1==_0x2f0a50&&(_0x2f0a50=this['repository']['_revisions']['length'],_0x404488=!0x1);_0x1618a8<_0x2f0a50;)_0x267065['push'](this['repository']['getRevision'](_0x1618a8)),_0x1618a8++;return _0x404488&&_0x267065['push'](this['repository']['getRevision'](_0x1618a8)),_0x267065;}['_threeWayMerge'](_0x43f36a,_0x2fb0bd,_0x4e34d5,_0x5e2855){const _0x48888b=this['editor']['model']['schema'];let _0x25b183=_0x2fb0bd;for(;_0x43f36a[_0x25b183]&&_0x43f36a[_0x25b183]['isAdded'];)_0x25b183++;let _0x3e30d6=_0x5e2855;for(;_0x4e34d5[_0x3e30d6]&&_0x4e34d5[_0x3e30d6]['isRemoved'];)_0x3e30d6++;_0x416404(_0x43f36a,_0x2fb0bd,_0x25b183),_0x416404(_0x4e34d5,_0x5e2855,_0x3e30d6);const _0x4fa3c7=_0x4e34d5['slice'](_0x5e2855,_0x3e30d6)['concat'](_0x43f36a['slice'](_0x2fb0bd,_0x25b183));return _0x4fa3c7['sort']((_0x53e18b,_0x3f1311)=>_0x53e18b['side']!=_0x3f1311['side']?_0x53e18b['side']-_0x3f1311['side']:_0x53e18b['level']!=_0x3f1311['level']?_0x53e18b['level']-_0x3f1311['level']:_0x53e18b['distance']!=_0x3f1311['distance']?_0x3f1311['distance']-_0x53e18b['distance']:!!_0x53e18b['isAdded']!=!!_0x3f1311['isAdded']?-0x1==_0x53e18b['side']||0x0==_0x53e18b['side']?_0x53e18b['isAdded']?-0x1:0x1:_0x53e18b['isAdded']?0x1:-0x1:_0x53e18b['index']-_0x3f1311['index']),{'commonTape':_0x4fa3c7,'iEnd':_0x25b183,'jEnd':_0x3e30d6};function _0x416404(_0x4db04c,_0x2240ee,_0x421135){let _0x26bd62=-0x1,_0x54adad=Number['POSITIVE_INFINITY'],_0x4639c5=!0x0;for(let _0x1832c5=_0x2240ee;_0x1832c5<_0x421135;_0x1832c5++)if(_0x48888b['isInline'](_0x4db04c[_0x1832c5]['item'])||(_0x4639c5=!0x1),_0x4db04c[_0x1832c5]['item']['startIndex']<_0x2240ee&&(_0x26bd62=_0x1832c5),_0x4db04c[_0x1832c5]['item']['endIndex']>=_0x421135){_0x54adad=_0x1832c5;break;}_0x4639c5&&(_0x26bd62=_0x421135-0x1);for(let _0x3dc6d1=_0x2240ee;_0x3dc6d1<_0x421135;_0x3dc6d1++)_0x4db04c[_0x3dc6d1]['side']=_0x3dc6d1<=_0x26bd62?-0x1:_0x3dc6d1<_0x54adad?0x0:0x1,_0x4db04c[_0x3dc6d1]['index']=_0x3dc6d1;let _0x3aa3d9=0x0;for(let _0x241d45=_0x2240ee;_0x241d45<=_0x26bd62;_0x241d45++)0x0==_0x4db04c[_0x241d45]['distance']?_0x4db04c[_0x241d45]['level']=_0x3aa3d9:(_0x3aa3d9++,_0x4db04c[_0x241d45]['level']=_0x3aa3d9,_0x3aa3d9++);for(let _0x21ccaa=_0x2240ee;_0x21ccaa<_0x421135;_0x21ccaa++)0x0==_0x4db04c[_0x21ccaa]['side']&&(_0x4db04c[_0x21ccaa]['level']=_0x3aa3d9);_0x3aa3d9=0x0;for(let _0x45dccc=_0x421135-0x1;_0x45dccc>=_0x54adad;_0x45dccc--)0x0==_0x4db04c[_0x45dccc]['distance']?_0x4db04c[_0x45dccc]['level']=_0x3aa3d9:(_0x3aa3d9--,_0x4db04c[_0x45dccc]['level']=_0x3aa3d9,_0x3aa3d9--);}}['_fixObsoleteTags'](_0x3c7c81){const _0x4c5454=new Map(),_0x3460b7=this['editor']['model']['schema'];for(let _0x508046=0x1;_0x508046<_0x3c7c81['length'];_0x508046++){let _0x12f4d3,_0x401064,_0x56626c;const _0x3820d0=_0x3c7c81[_0x508046],_0x2205dd=_0x3c7c81[_0x508046-0x1];if('text'==_0x3820d0['type'])continue;if(_0x3820d0['type']!=_0x2205dd['type'])continue;if(!_0x3460b7['isBlock'](_0x2205dd['item'])||_0x3460b7['isLimit'](_0x2205dd['item']))continue;if(!_0x3460b7['isBlock'](_0x3820d0['item'])||_0x3460b7['isLimit'](_0x3820d0['item']))continue;if((_0x3c7c81[_0x508046]['isAdded']||_0x3c7c81[_0x508046]['isAddSuggestion'])&&_0x3c7c81[_0x508046-0x1]['isRemoved'])_0x12f4d3=_0x3c7c81[_0x508046],_0x401064=_0x3c7c81[_0x508046-0x1],_0x56626c=_0x508046-0x1;else{if(!_0x3c7c81[_0x508046]['isRemoved']||!_0x3c7c81[_0x508046-0x1]['isAdded']&&!_0x3c7c81[_0x508046-0x1]['isAddSuggestion'])continue;_0x12f4d3=_0x3c7c81[_0x508046-0x1],_0x401064=_0x3c7c81[_0x508046],_0x56626c=_0x508046;}const _0x3b8bfa=_0x12f4d3['level']==_0x401064['level'],_0x83985d=Math['abs'](_0x12f4d3['level'])<Math['abs'](_0x401064['level'])&&0x0==_0x401064['distance'];(_0x3b8bfa||_0x83985d)&&(_0x4c5454['set'](_0x401064['id'],_0x12f4d3['id']),_0x3c7c81['splice'](_0x56626c,0x1),_0x508046--,_0x12f4d3['isAdded']=!0x1);}for(let _0x490f84=0x0;_0x490f84<_0x3c7c81['length'];_0x490f84++)_0x4c5454['has'](_0x3c7c81[_0x490f84]['pairId'])&&(_0x3c7c81[_0x490f84]['pairId']=_0x4c5454['get'](_0x3c7c81[_0x490f84]['pairId']));}['_removeMissingPairs'](_0x4fdda7){const _0x27cee7=new Set(_0x4fdda7['map'](_0x3ce563=>_0x3ce563['id']));for(let _0x2c49c5=0x0;_0x2c49c5<_0x4fdda7['length'];_0x2c49c5++)_0x27cee7['has'](_0x4fdda7[_0x2c49c5]['pairId'])||0x0==_0x4fdda7[_0x2c49c5]['distance']||(_0x4fdda7[_0x2c49c5]['isIncorrect']=!0x0);return _0x4fdda7['filter'](_0x24e741=>!_0x24e741['isIncorrect']);}['_markMismatchedRemovedTags'](_0x382d61){const _0x431662=new Set();for(let _0x5f3c8f=0x0;_0x5f3c8f<_0x382d61['length'];_0x5f3c8f++){if(_0x431662['has'](_0x382d61[_0x5f3c8f]['id'])&&_0x382d61[_0x5f3c8f]['isRemoved']&&(_0x382d61[_0x5f3c8f]['isIncorrect']=!0x0),_0x382d61[_0x5f3c8f]['isIncorrect'])continue;if(0x0==_0x382d61[_0x5f3c8f]['distance'])continue;if('elementStart'!=_0x382d61[_0x5f3c8f]['type'])continue;if(null==_0x382d61[_0x5f3c8f]['pairId'])continue;let _0x347971=_0x5f3c8f+0x1,_0x968601=0x0;for(;_0x382d61[_0x347971]['id']!=_0x382d61[_0x5f3c8f]['pairId'];)'elementStart'==_0x382d61[_0x347971]['type']?_0x968601++:'elementEnd'==_0x382d61[_0x347971]['type']&&_0x968601--,_0x347971++;if(0x0!=_0x968601){if(_0x382d61[_0x5f3c8f]['isRemoved'])_0x382d61[_0x5f3c8f]['isIncorrect']=!0x0;else{for(;_0x347971!=_0x5f3c8f;)_0x382d61[_0x347971]['isRemoved']&&0x0!=_0x382d61[_0x347971]['distance']&&(_0x382d61[_0x347971]['isIncorrect']=!0x0,_0x431662['add'](_0x382d61[_0x347971]['pairId'])),_0x347971--;}}}return _0x382d61['filter'](_0x808184=>!_0x808184['isIncorrect']);}['_removeUnsupportedChanges'](_0x232158){const _0x1fad05=this['editor']['model']['schema'];for(let _0x4b43f5=0x0;_0x4b43f5<_0x232158['length'];_0x4b43f5++){if(!(_0x232158[_0x4b43f5]['isAdded']||_0x232158[_0x4b43f5]['isAddSuggestion']||_0x232158[_0x4b43f5]['isRemoved']||_0x232158[_0x4b43f5]['isRemoveSuggestion']))continue;if(0x0==_0x232158[_0x4b43f5]['distance'])continue;const _0x438a70=_0x232158[_0x4b43f5]['item'];_0x1fad05['isBlock'](_0x438a70)||_0x1fad05['isLimit'](_0x438a70)||(_0x232158[_0x4b43f5]['isAdded']&&delete _0x232158[_0x4b43f5]['isAdded'],_0x232158[_0x4b43f5]['isAddSuggestion']&&delete _0x232158[_0x4b43f5]['isAddSuggestion'],_0x232158[_0x4b43f5]['isRemoveSuggestion']&&delete _0x232158[_0x4b43f5]['isRemoveSuggestion'],_0x232158[_0x4b43f5]['isRemoved']&&(_0x232158[_0x4b43f5]['isIncorrect']=!0x0));}return _0x232158['filter'](_0x25d211=>!_0x25d211['isIncorrect']);}['_makeModelFromTape'](_0x52cfd7,_0x4f40be,_0x571aa6){const _0x4cf4ed=new _0xbcec00(),_0x1a852=[],_0x247596=new Map(),_0x4f0f90=this['editor']['model'],_0x4b80ad=_0x4f0f90['schema'],_0x1e876e=[_0x4cf4ed],_0x4fea56={},_0x2ffdeb={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4c4f48=null;const _0x92e09e=[0x0];for(let _0x11ebfb=0x0;_0x11ebfb<_0x52cfd7['length'];_0x11ebfb++)if('elementStart'===_0x52cfd7[_0x11ebfb]['type']){_0x52cfd7[_0x11ebfb]['previousPosition']=_0x4f0f90['createPositionFromPath'](_0x4cf4ed,_0x92e09e);const _0xfae1f7=new _0x563007(_0x52cfd7[_0x11ebfb]['item']['name'],_0x52cfd7[_0x11ebfb]['item']['getAttributes']());_0x1e876e[0x0]['_appendChild'](_0xfae1f7),_0x92e09e['push'](0x0),_0x1e876e['unshift'](_0xfae1f7),_0x52cfd7[_0x11ebfb]['nextPosition']=_0x4f0f90['createPositionFromPath'](_0x4cf4ed,_0x92e09e);}else'elementEnd'===_0x52cfd7[_0x11ebfb]['type']?(_0x1e876e['shift'](),_0x52cfd7[_0x11ebfb]['previousPosition']=_0x4f0f90['createPositionFromPath'](_0x4cf4ed,_0x92e09e),_0x92e09e['pop'](),_0x92e09e[_0x92e09e['length']-0x1]++,_0x52cfd7[_0x11ebfb]['nextPosition']=_0x4f0f90['createPositionFromPath'](_0x4cf4ed,_0x92e09e)):(_0x52cfd7[_0x11ebfb]['previousPosition']=_0x4f0f90['createPositionFromPath'](_0x4cf4ed,_0x92e09e),_0x4c4f48?_0x4c4f48['_data']+=_0x52cfd7[_0x11ebfb]['item']['data']:_0x4c4f48=new _0x1a0518(_0x52cfd7[_0x11ebfb]['item']['data'],_0x52cfd7[_0x11ebfb]['item']['getAttributes']()),_0x52cfd7[_0x11ebfb+0x1]&&'text'===_0x52cfd7[_0x11ebfb+0x1]['type']&&_0x59873f(_0x4c4f48,_0x52cfd7[_0x11ebfb+0x1]['item'])||(_0x1e876e[0x0]['_appendChild'](_0x4c4f48),_0x4c4f48=null),_0x92e09e[_0x92e09e['length']-0x1]+=_0x52cfd7[_0x11ebfb]['item']['offsetSize'],_0x52cfd7[_0x11ebfb]['nextPosition']=_0x4f0f90['createPositionFromPath'](_0x4cf4ed,_0x92e09e));for(let _0x47a541=0x0;_0x47a541<_0x52cfd7['length'];_0x47a541++){const _0x8de933=_0x52cfd7[_0x47a541]['previousPosition'],_0xd56a1c=_0x52cfd7[_0x47a541]['nextPosition'];for(const _0x41df5b of _0x52cfd7[_0x47a541]['markersStart'])_0x247596['set'](_0x41df5b,{'start':_0x8de933,'end':null});_0x22b60b('isRemoveSuggestion',_0x47a541,_0x8de933,_0xd56a1c),_0x22b60b('isAddSuggestion',_0x47a541,_0x8de933,_0xd56a1c),_0x22b60b('isRemoved',_0x47a541,_0x8de933,_0xd56a1c),_0x22b60b('isAdded',_0x47a541,_0x8de933,_0xd56a1c);for(const _0x193e5e of _0x52cfd7[_0x47a541]['markersEnd']){const _0x5a0dce=_0x247596['get'](_0x193e5e);_0x5a0dce?_0x5a0dce['end']=_0xd56a1c:_0x247596['set'](_0x193e5e,{'start':_0xd56a1c,'end':_0xd56a1c});}}for(const [_0x2d9fcf,_0x5986f7]of _0x247596){const _0x15f365=this['editor']['model']['createRange'](_0x5986f7['start'],_0x5986f7['end']);_0x4cf4ed['markers']['set'](_0x2d9fcf,_0x15f365);}return _0x1a852['sort']((_0x9a1d1b,_0x13ef75)=>{const _0x49bfab=_0x4cf4ed['markers']['get']('revision:'+_0x9a1d1b['id']),_0x2ea788=_0x4cf4ed['markers']['get']('revision:'+_0x13ef75['id']);return _0x49bfab['start']['isBefore'](_0x2ea788['start'])?-0x1:_0x49bfab['start']['isAfter'](_0x2ea788['start'])?0x1:_0x49bfab['end']['isBefore'](_0x2ea788['end'])?-0x1:_0x49bfab['end']['isAfter'](_0x2ea788['end'])?0x1:'add'===_0x9a1d1b['type']?-0x1:0x1;}),{'root':_0x4cf4ed,'changes':_0x1a852};function _0x22b60b(_0x4fac20,_0x58e66f,_0x2db58b,_0x5a15bd){const _0x31cf24=!!_0x52cfd7[_0x58e66f][_0x4fac20],_0x59b169=_0x31cf24?_0x52cfd7[_0x58e66f][_0x4fac20]['userId']:null,_0x122d6f=_0x58e66f===_0x52cfd7['length']-0x1,_0x49fff9=_0x2ffdeb[_0x4fac20][0x0],_0x1f89b1=_0x4b80ad['isObject'](_0x52cfd7[_0x58e66f]['item']);!_0x4fea56[_0x4fac20]&&_0x31cf24?_0x4fea56[_0x4fac20]={'start':_0x2db58b,'tapeItem':_0x52cfd7[_0x58e66f],'userId':_0x59b169,'type':_0x4fac20}:_0x4fea56[_0x4fac20]&&!_0x31cf24?(_0x4fea56[_0x4fac20]['end']=_0x2db58b,_0x404905(_0x4fea56[_0x4fac20]),_0x4fea56[_0x4fac20]=null):_0x4fea56[_0x4fac20]&&_0x31cf24&&_0x4fea56[_0x4fac20]['userId']!==_0x59b169&&(_0x4fea56[_0x4fac20]['end']=_0x2db58b,_0x49fff9&&_0x49fff9['userId']===_0x4fea56[_0x4fac20]['userId']||_0x404905(_0x4fea56[_0x4fac20]),_0x4fea56[_0x4fac20]={'start':_0x2db58b,'tapeItem':_0x52cfd7[_0x58e66f],'userId':_0x59b169,'type':_0x4fac20}),_0x4fea56[_0x4fac20]&&_0x1f89b1&&('elementStart'!==_0x52cfd7[_0x58e66f]['type']||_0x49fff9&&_0x49fff9['userId']===_0x59b169||_0x2ffdeb[_0x4fac20]['unshift']({'userId':_0x59b169,'object':_0x52cfd7[_0x58e66f]['item'],'change':_0x4fea56[_0x4fac20]}),'elementEnd'===_0x52cfd7[_0x58e66f]['type']&&_0x49fff9&&_0x49fff9['object']===_0x52cfd7[_0x58e66f]['item']&&(_0x2ffdeb[_0x4fac20]['shift'](),_0x4fea56[_0x4fac20]=_0x49fff9['change'])),_0x4fea56[_0x4fac20]&&_0x122d6f&&(_0x4fea56[_0x4fac20]['end']=_0x5a15bd,_0x404905(_0x4fea56[_0x4fac20]),_0x4fea56[_0x4fac20]=null);}function _0x404905({start:_0x5f22d7,end:_0xe182a1,tapeItem:_0x1b0fad,userId:_0x25eeb2,type:_0x2fba6b}){const _0x4d37e9=_0x1b0fad['item'],_0x2b2acd=_0x4f0f90['schema']['isBlock'](_0x4d37e9)&&!_0x4f0f90['schema']['isLimit'](_0x4d37e9),_0x47c31d=_0x5f22d7['nodeAfter']==_0xe182a1['parent']&&_0xe182a1['isAtStart'];if(_0x2b2acd&&_0x47c31d)return;const _0x163d05=_0x4f0f90['createRange'](_0x5f22d7,_0xe182a1),_0x2f1578=_0x4f40be['get'](_0x25eeb2),_0x5666e9=new G({'author':_0x2f1578,'type':'isAdded'==_0x2fba6b||'isAddSuggestion'==_0x2fba6b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2fba6b||'isRemoveSuggestion'==_0x2fba6b},'createdAt':new Date(),'rootName':_0x571aa6});_0x1a852['push'](_0x5666e9),_0x4cf4ed['markers']['set']('revision:'+_0x5666e9['id'],_0x163d05);}function _0x59873f(_0x3fdddc,_0x377a33){const _0x1dc6ba=_0x3fdddc['getAttributes'](),_0x1ccbd9=_0x377a33['getAttributes']();for(const _0x373008 of _0x1dc6ba){if(_0x373008[0x1]!==_0x377a33['getAttribute'](_0x373008[0x0]))return!0x1;_0x1ccbd9['next']();}return _0x1ccbd9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xb3d99d=>{const _0x17b2a0=_0xb3d99d['markerName']['split'](':')[0x1],_0x20a042=this['_getChangeFromId'](_0x17b2a0);if(!_0x20a042)return null;const _0x65ea11='add'==_0x20a042['type']?'insertion':'deletion',_0x5b907e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x65ea11];return _0x20a042['data']['isSuggestion']&&_0x5b907e['push']('ck-suggestion-marker-'+_0x65ea11+'-new'),this['activeChange']==_0x20a042&&_0x5b907e['push']('ck-suggestion-marker--active'),{'classes':_0x5b907e,'attributes':{'data-change-id':_0x17b2a0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x160b37=>{_0x160b37['on']('element:pre',(_0x5622f0,_0x3920bd,_0x163249)=>{const _0x55fab4=_0x3920bd['viewItem']['getChild'](0x0);if(!_0x55fab4||!_0x55fab4['is']('element','code'))return;if(!_0x163249['consumable']['consume'](_0x55fab4,{'attributes':['vid_start','vid_end']}))return;const _0x2b055d=_0x3920bd['modelRange']['start']['nodeAfter'];_0x163249['writer']['setAttribute']('vid_start',_0x55fab4['getAttribute']('vid_start'),_0x2b055d),_0x163249['writer']['setAttribute']('vid_end',_0x55fab4['getAttribute']('vid_end'),_0x2b055d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x47687b=>{_0x47687b['on']('element',(_0x1aa832,_0x4cf3f4,_0x3014ed)=>{if(!_0x3014ed['consumable']['consume'](_0x4cf3f4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4cf3f4['modelRange']['isCollapsed'])return;const _0x39d337=_0x4cf3f4['modelRange']['start']['nodeAfter'];_0x39d337['hasAttribute']('vid_start')||_0x39d337['hasAttribute']('vid')||(_0x3014ed['writer']['setAttribute']('vid_start',_0x4cf3f4['viewItem']['getAttribute']('vid_start'),_0x39d337),_0x3014ed['writer']['setAttribute']('vid_end',_0x4cf3f4['viewItem']['getAttribute']('vid_end'),_0x39d337));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3cb81e=>_0x3cb81e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x103abd,[,_0x26ade8])=>{['vid_start','vid_end','vid']['includes'](_0x26ade8)&&(_0x103abd['return']=!0x0,_0x103abd['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x42f964=>{_0x42f964['on']('attribute:vid',(_0x5e8942,_0x4be824,_0x66a122)=>{if('\x20'!=_0x4be824['item']['data']||_0x4be824['item']['parent']['maxOffset']>0x1)return;if(!_0x66a122['consumable']['consume'](_0x4be824['item'],_0x5e8942['name']))return;const _0x42ceff=_0x66a122['writer'],_0x30ce96=_0x66a122['mapper']['toViewRange'](_0x4be824['range']);_0x42ceff['wrap'](_0x30ce96,_0x42ceff['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x567077){const _0x32919a=_0x567077['plugins']['get']('RevisionViewer');return(_0x5ef14,_0x179d34,_0x10a0d2)=>{const _0x2171fe=_0x179d34['markerName']['split'](':')[0x1],_0x2cf69=_0x32919a['_getChangeFromId'](_0x2171fe);if(!_0x2cf69)return null;const _0x542a66='add'==_0x2cf69['type']?'split':'merge';if(!_0x10a0d2['consumable']['test'](_0x179d34['markerRange'],_0x5ef14['name']))return;const _0x23c9c0=_0x179d34['markerRange']['getWalker'](),_0x18edcb=_0x179d34['markerRange']['start'],_0x482ec5=_0x567077['model']['schema'];let _0x21f3f6=null,_0x5ca8b6=null,_0x363cb2=!0x1,_0x21923f=!0x1;for(const _0x364385 of _0x23c9c0){const _0x2785bb=_0x364385['item'];_0x363cb2=_0x363cb2||_0x482ec5['isContent'](_0x2785bb);const _0x3fdab8=_0x10a0d2['mapper']['toViewElement'](_0x2785bb);if(_0x3fdab8&&_0x3fdab8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x364385['type']&&(_0x482ec5['isBlock'](_0x2785bb)&&!_0x482ec5['isLimit'](_0x2785bb)&&(_0x2785bb['nextSibling']||_0x18edcb['isAtEnd']?_0x21f3f6&&_0x21f3f6['parent']==_0x2785bb||(_0x21f3f6=_0x2785bb,_0x51c4f6(_0x364385['previousPosition']),_0x21923f=!0x0):_0x5ca8b6=_0x5ca8b6||_0x364385['previousPosition']));}function _0x51c4f6(_0x36ef89){const _0x780edb=_0x10a0d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x542a66}),_0x259443=_0x10a0d2['mapper']['toViewPosition'](_0x36ef89);_0x2cf69['data']['isSuggestion']&&_0x10a0d2['writer']['addClass']('ck-suggestion-marker-'+_0x542a66+'-new',_0x780edb),_0x32919a['activeChange']==_0x2cf69&&_0x10a0d2['writer']['addClass']('ck-suggestion-marker--active',_0x780edb),_0x10a0d2['writer']['insert'](_0x259443,_0x780edb),_0x10a0d2['mapper']['bindElementToMarker'](_0x780edb,_0x179d34['markerName']);}_0x363cb2||_0x21923f||!_0x5ca8b6||_0x51c4f6(_0x5ca8b6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x414fc7,_0x39f1cf,_0x19f07b)=>{const _0x43c2fd=_0x19f07b['mapper']['markerNameToElements'](_0x39f1cf['markerName']);if(_0x43c2fd){for(const _0x5ca487 of _0x43c2fd)(_0x5ca487['hasClass']('ck-suggestion-marker-split')||_0x5ca487['hasClass']('ck-suggestion-marker-merge'))&&(_0x19f07b['mapper']['unbindElementFromMarkerName'](_0x5ca487,_0x39f1cf['markerName']),_0x19f07b['writer']['remove'](_0x5ca487));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x304b52,_0x17931d,_0x2b3de5)=>{const _0x459c52=_0x17931d['markerName']['split'](':')[0x1],_0x5fc24e=this['_getChangeFromId'](_0x459c52);if(!_0x5fc24e)return null;const _0x4a1fd5='add'==_0x5fc24e['type']?'split':'merge';if(_0x2b3de5['consumable']['test'](_0x17931d['markerRange'],_0x304b52['name']))for(const _0xecd121 of _0x17931d['markerRange']['getItems']()){if(!_0xecd121['is']('element','softBreak'))continue;const _0x25ee1f=_0x2b3de5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a1fd5}),_0x45b04d=_0x2b3de5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xecd121));_0x5fc24e['data']['isSuggestion']&&_0x2b3de5['writer']['addClass']('ck-suggestion-marker-'+_0x4a1fd5+'-new',_0x25ee1f),this['activeChange']==_0x5fc24e&&_0x2b3de5['writer']['addClass']('ck-suggestion-marker--active',_0x25ee1f),_0x2b3de5['writer']['insert'](_0x45b04d,_0x25ee1f),_0x2b3de5['mapper']['bindElementToMarker'](_0x25ee1f,_0x17931d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x568f39=>{for(const _0x411ce7 of this['editor']['model']['document']['getRootNames']()){const _0x56e199=this['editor']['model']['document']['getRoot'](_0x411ce7),_0x2443ea=this['editor']['editing']['view']['document']['getRoot'](_0x411ce7);if(_0x2443ea){const _0x271a4d=_0x56e199['getAttribute']('revisionHistoryAttachChange');if(_0x568f39['removeAttribute']('data-change-id',_0x2443ea),_0x568f39['removeClass']('ck-revision-history-root-add',_0x2443ea),_0x568f39['removeClass']('ck-revision-history-root-remove',_0x2443ea),_0x568f39['removeClass']('ck-revision-history-root--active',_0x2443ea),_0x271a4d){const _0x369700=this['_getChangeFromId'](_0x271a4d);if(!_0x369700)return null;_0x568f39['setAttribute']('data-change-id',_0x271a4d,_0x2443ea),_0x568f39['addClass']('ck-revision-history-root-'+_0x369700['type'],_0x2443ea),this['activeChange']==_0x369700&&_0x568f39['addClass']('ck-revision-history-root--active',_0x2443ea);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x409ee8=>'revision-comment:'+_0x409ee8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2e144e=>'revision-suggestion:'+_0x2e144e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3bd0d9=>({'name':'suggestion:'+_0x3bd0d9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x56aa08=>{const _0x1b0bf3=_0x56aa08['markerName']['split'](':')[0x1];return'insertion'!=_0x1b0bf3&&'deletion'!=_0x1b0bf3?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1b0bf3]};}}),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',(_0x2663e9,_0x567083,_0x4d717b)=>{const _0x21f455=_0x4d717b['mapper']['markerNameToElements'](_0x567083['markerName']);if(_0x21f455){for(const _0x5b3a12 of _0x21f455)_0x5b3a12['is']('uiElement')&&(_0x4d717b['mapper']['unbindElementFromMarkerName'](_0x5b3a12,_0x567083['markerName']),_0x4d717b['writer']['remove'](_0x5b3a12));}},{'priority':'high'});}['_getChangeFromId'](_0x4f00b8){return this['_changeIdToChange']['get'](_0x4f00b8);}['_getViewForChange'](_0x43f78b){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x43f78b),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5cfec1,_0x49b762,_0x51e581,_0x2edc19)=>{_0x2edc19&&this['_balloon']['remove'](_0x2edc19),_0x51e581&&(this['_balloon']['add']({'view':_0x51e581,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x21c274=this['editor']['editing'],_0x4b5013=this['_getChangeFromId'](_0x51e581['changeId']);let _0xc3a645;if(_0x4b5013['data']['isOnRoot']){const _0x50c918=_0x21c274['view']['getDomRoot'](_0x4b5013['rootName']);_0xc3a645=Array['from'](_0x50c918['getClientRects']());}else{const _0x2d89de=this['editor']['model']['markers']['get']('revision:'+_0x51e581['changeId']);_0xc3a645=Array['from'](_0x21c274['mapper']['markerNameToElements'](_0x2d89de['name']))['map'](_0x334d9=>_0x21c274['view']['domConverter']['mapViewToDom'](_0x334d9))['map'](_0x44d80d=>Array['from'](_0x44d80d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc3a645[0x0];return _0xc3a645['find'](_0x5b0485=>_0x5b0485['top']-0x3<=this['_activeViewTarget']['y']&&_0x5b0485['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5b0485['left']-0x3<=this['_activeViewTarget']['x']&&_0x5b0485['right']+0x3>=this['_activeViewTarget']['x'])||_0xc3a645[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x44daa0,_0x3264dc,_0x8b3025,_0x39ddd9)=>{this['activeView']=_0x8b3025?this['_getViewForChange'](_0x8b3025):null,this['editor']['model']['change'](()=>{const _0x1fe254=this['editor']['editing'];_0x39ddd9&&(_0x39ddd9['data']['isOnRoot']?_0x1fe254['view']['change'](_0x2ff3fa=>{_0x2ff3fa['removeClass']('ck-revision-history-root--active',_0x1fe254['view']['document']['getRoot'](_0x39ddd9['rootName']));}):_0x1fe254['reconvertMarker']('revision:'+_0x39ddd9['id'])),_0x8b3025&&(_0x8b3025['data']['isOnRoot']?_0x1fe254['view']['change'](_0x536591=>{_0x536591['addClass']('ck-revision-history-root--active',_0x1fe254['view']['document']['getRoot'](_0x8b3025['rootName']));}):_0x1fe254['reconvertMarker']('revision:'+_0x8b3025['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x338c60,_0x3ddb0e)=>{if(this['activeChange'])return;const _0x2a00e9=this['_findChangeIdFromDomTarget'](_0x3ddb0e['target']),_0x4d855e=this['_changeIdToChange']['get'](_0x2a00e9);_0x4d855e?(this['_activeViewTarget']={'x':_0x3ddb0e['domEvent']['x'],'y':_0x3ddb0e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4d855e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xc54645,_0x40c715)=>{const _0x364e82=this['_findChangeIdFromDomTarget'](_0x40c715['target']),_0x2fad53=this['_changeIdToChange']['get'](_0x364e82);_0x2fad53?(this['_activeViewTarget']={'x':_0x40c715['domEvent']['x'],'y':_0x40c715['domEvent']['y']},_0x2fad53===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2fad53):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x484e8a){do{const _0x510043=_0x484e8a['getAttribute']('data-change-id');if(_0x510043)return _0x510043;_0x484e8a=_0x484e8a['parent'];}while(_0x484e8a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x7cc1a8=>{for(const _0x570703 of this['editor']['model']['markers'])_0x7cc1a8['removeMarker'](_0x570703);});}}function Q(_0x24dcec,_0x32381d){return(_0x193822,_0x552e37,_0xa1b39d)=>{if(!_0xa1b39d['consumable']['test'](_0x552e37['markerRange'],_0x193822['name']))return;const _0x230516=_0x552e37['markerRange']['getWalker'](),_0x543e17=_0x552e37['markerRange']['start'],_0x658c43=_0x24dcec['model']['schema'];let _0x1a2f6f=null,_0x30c047=null,_0x28d888=!0x1,_0x364935=!0x1;for(const _0x215e2b of _0x230516){const _0x47429a=_0x215e2b['item'];_0x28d888=_0x28d888||_0x658c43['isContent'](_0x47429a);const _0x50f887=_0xa1b39d['mapper']['toViewElement'](_0x47429a);if(_0x50f887&&_0x50f887['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x215e2b['type']&&(_0x658c43['isBlock'](_0x47429a)&&!_0x658c43['isLimit'](_0x47429a)&&(_0x47429a['nextSibling']||_0x543e17['isAtEnd']?_0x1a2f6f&&_0x1a2f6f['parent']==_0x47429a||(_0x1a2f6f=_0x47429a,_0x2922e9(_0x215e2b['previousPosition']),_0x364935=!0x0):_0x30c047=_0x30c047||_0x215e2b['previousPosition']));}function _0x2922e9(_0x328614){const _0x5234e3=_0xa1b39d['mapper']['toViewPosition'](_0x328614),_0x1cfe2d=_0xa1b39d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x32381d});_0xa1b39d['writer']['insert'](_0x5234e3,_0x1cfe2d),_0xa1b39d['mapper']['bindElementToMarker'](_0x1cfe2d,_0x552e37['markerName']);}_0x28d888||_0x364935||!_0x30c047||_0x2922e9(_0x30c047);};}class nt extends _0x434897{constructor(_0x500ce2){super(_0x500ce2);const _0x138e3b=_0x500ce2['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x138e3b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x138e3b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xc8cc3d=this['editor'],_0x336422=_0xc8cc3d['plugins']['get'](u),_0x2614d6=_0x336422['isReady']?_0x336422['diff']['newRevisionId']:null;_0xc8cc3d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2614d6);}['refresh'](){const {isReady:_0x1d4073,isEnabled:_0x2e3331,repository:_0x3629f5,diff:_0xf71494}=this['editor']['plugins']['get'](u),_0x2d517f=_0xf71494&&_0x3629f5['getLaterVisibleRevision'](_0xf71494['newRevisionId']);this['isEnabled']=_0x1d4073&&_0x2e3331&&Boolean(_0x2d517f);}}class rt extends _0x434897{['_step'];constructor(_0xb0e263,{direction:_0x773770}){super(_0xb0e263);const _0x440916=_0xb0e263['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x773770?0x1:-0x1,this['listenTo'](_0x440916,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x440916,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x440916,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2fb542=this['editor'],_0x322a72=_0x2fb542['plugins']['get'](u),{isNavigationMode:_0x5b455e,currentChangeNumber:_0x1a8e36}=_0x322a72;let _0x5e20d1;if(_0x322a72['activeChange']=_0x5b455e?_0x322a72['diff']['changes']['get'](_0x1a8e36+this['_step']):_0x322a72['diff']['changes']['first'],_0x322a72['activeChange']['data']['isOnRoot'])_0x5e20d1=_0x2fb542['editing']['view']['getDomRoot'](_0x322a72['activeChange']['rootName']);else{const _0x5124dc=_0x2fb542['model']['markers']['get']('revision:'+_0x322a72['activeChange']['id']);_0x5e20d1=_0xc31b67(_0x2fb542['editing'],_0x5124dc);}_0x45f3a0({'target':_0x5e20d1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4acc70,currentChangeNumber:_0x202621,numberOfChanges:_0x595b74,isReady:_0x3ba853,isEnabled:_0x2304ea}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x2304ea&&_0x3ba853&&_0x595b74)&&(!_0x4acc70||(0x1===this['_step']?_0x202621<_0x595b74-0x1:_0x202621>0x0));}}class Ri extends _0x46a24c{constructor(_0x392e84){super(_0x392e84);const _0x4b36a4=this['bindTemplate'],_0x29d5d9=new _0x3edebb(_0x392e84),_0x3052b0=new _0x3edebb(_0x392e84);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',(_0x3619d2,_0x3e3a80)=>_0x3619d2&&_0x3e3a80>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x24563c,_0x442828,_0x527a3c,_0x482ccb)=>{if(!_0x24563c)return m(_0x392e84,'Loading...');if(!_0x527a3c)return m(_0x392e84,'No\x20changes');const _0x16afc5=m(_0x392e84,'NUMBER_OF_CHANGES',_0x527a3c);return _0x482ccb?m(_0x392e84,'X_OF_Y_CHANGES',[_0x442828+0x1,_0x527a3c]):_0x16afc5;}),_0x29d5d9['set']({'label':m(_0x392e84,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x467896}),_0x3052b0['set']({'label':m(_0x392e84,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1307d4}),_0x29d5d9['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3052b0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x29d5d9['on']('execute',()=>this['fire']('execute','backward')),_0x3052b0['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',_0x4b36a4['if']('_isStatusLabelVisible','ck-hidden',_0x1b5e50=>!_0x1b5e50)]},'children':[{'text':_0x4b36a4['to']('isNavigationMode',_0x2eb67b=>_0x2eb67b?m(_0x392e84,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x392e84,'Total')+':\x20')}]},{'text':_0x4b36a4['to']('_statusText')}]},new _0x2710cc(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x29d5d9,_0x3052b0]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x4a1ed9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2563bc=this['editor']['editing']['view'];_0x2563bc['change'](_0x4432b9=>{for(const _0x5338fe of _0x2563bc['document']['roots'])_0x4432b9['addClass'](ge,_0x5338fe);});}['hide'](){const _0x24d386=this['editor']['editing']['view'];_0x24d386['change'](_0x60805c=>{for(const _0xd935ca of _0x24d386['document']['roots'])_0x60805c['removeClass'](ge,_0xd935ca);});}}class v extends _0x4a1ed9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x42a175=this['editor'],_0x516a12=_0x42a175['plugins']['get'](u),_0x5cbda5=_0x42a175['plugins']['get'](ji);_0x42a175['ui']['componentFactory']['add']('exitToEditing',_0x3e7f89=>{const _0x2cb8c7=new _0x3edebb(_0x3e7f89);return _0x2cb8c7['set']({'label':m(_0x3e7f89,'Back\x20to\x20editing'),'icon':_0x131b00,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2cb8c7,'execute',()=>{_0x42a175['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2cb8c7;}),_0x42a175['ui']['componentFactory']['add']('restoreRevision',_0x1debaf=>{const _0x3c983b=new _0x3edebb(_0x1debaf);return _0x3c983b['set']({'label':m(_0x1debaf,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3c983b['bind']('isEnabled')['to'](_0x42a175['commands']['get']('restoreRevision')),this['listenTo'](_0x3c983b,'execute',()=>_0x42a175['execute']('restoreRevision')),_0x3c983b;}),_0x42a175['ui']['componentFactory']['add']('changesNavigation',_0x1bfb6c=>{const _0x2376ab=new Ri(_0x1bfb6c),_0x5ef879=_0x42a175['commands']['get']('showPreviousChange'),_0x5b3ce7=_0x42a175['commands']['get']('showNextChange');return _0x2376ab['bind']('isBackwardNavigationEnabled')['to'](_0x5ef879,'isEnabled'),_0x2376ab['bind']('isForwardNavigationEnabled')['to'](_0x5b3ce7,'isEnabled'),_0x2376ab['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x516a12),this['listenTo'](_0x2376ab,'execute',(_0x470390,_0x3a7542)=>{_0x42a175['execute']('forward'===_0x3a7542?'showNextChange':'showPreviousChange');}),_0x2376ab;}),_0x5cbda5['show'](),_0x516a12['on']('change:isReady',(_0x339892,_0x478750,_0x3888d5)=>{_0x3888d5?_0x5cbda5['hide']():_0x5cbda5['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5c51dc,_0x4537cf){super(_0x5c51dc,_0x4537cf);const _0x4ac638=this['bindTemplate'];this['set']({'label':m(_0x5c51dc,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5c51dc,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ac638['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 _0xde9ee4=this['fieldView']['element'];this['_tooltipString']=_0xde9ee4['scrollWidth']>_0xde9ee4['clientWidth']&&_0xde9ee4['value']||'';}}class ni extends _0x46a24c{constructor(_0x98fb18,_0x3bc3c3,_0x79c68d){super(_0x98fb18);const _0x4474ff=new _0x4bea84();_0x4474ff['set']({'content':_0x976bc5,'viewBox':'0\x200\x2011\x2010'});const _0x23e29b=['ck','ck-revision-history-sidebar__revision-author'];_0x79c68d&&_0x23e29b['push']('ck-revision-history-sidebar__revision-author_creator');const _0xa05c26=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x98fb18,_0x79c68d?'Revision\x20creator':'Revision\x20author')},'children':[_0x4474ff,_0x3bc3c3['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x23e29b},'children':_0xa05c26});}}function ai(_0x8c5864,_0x22fdcd){const _0x5f4c23=_0x8c5864['bindTemplate'],_0x1e8dee=_0x8c5864['locale'],_0x179b99=_0x57beb3(_0x1e8dee);_0x179b99['panelPosition']='sw';const _0x6c3495=function(_0x39b052,_0x29fcf9){const _0x44aead=function(_0x2bcc9e,_0x13a3c7){const _0x4de770=_0x2bcc9e['locale'],_0x53e952={'Compare\x20against\x20selected':m(_0x4de770,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4de770,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4de770,'Restore\x20this\x20revision')};return _0x13a3c7['map'](_0x1ea86e=>{const _0x194b4f=_0x53e952[_0x1ea86e['name']];return _0x194b4f&&_0x194b4f!==_0x1ea86e['name']&&(_0x1ea86e['name']=_0x194b4f),_0x1ea86e;});}(_0x39b052,_0x29fcf9),_0x5d3e18=new _0xa55e0();for(const _0x21af66 of _0x44aead){const _0x1913a3={'type':'button','model':new to({'label':_0x21af66['name'],'class':_0x21af66['class'],'withText':!0x0,'role':'menuitem','_action':_0x21af66['action']})};_0x1913a3['model']['bind']('isEnabled')['to'](_0x39b052,'isActionsDropdownOpen',_0x11499d=>'function'!=typeof _0x21af66['isEnabled']||(!_0x11499d||_0x21af66['isEnabled'](_0x39b052))),_0x5d3e18['add'](_0x1913a3);}return _0x5d3e18;}(_0x8c5864,_0x22fdcd);return _0x8c5864['bind']('isActionsDropdownOpen')['to'](_0x179b99,'isOpen'),_0x179b99['buttonView']['set']({'label':m(_0x1e8dee,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1d36f3}),_0x179b99['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5f4c23['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5f4c23['to'](_0x4559c0=>_0x4559c0['stopPropagation']())}}),_0x179b99['on']('execute',_0x59ed00=>{_0x8c5864['isReady']&&'function'==typeof _0x59ed00['source']['_action']&&_0x59ed00['source']['_action'](_0x8c5864);}),_0x37324e(_0x179b99,_0x6c3495,{'role':'menu'}),_0x179b99['listenTo'](_0x8c5864,'change:isActionsDropdownOpen',(_0x1e78ed,_0x5e3b61,_0x2eb370)=>{if(_0x2eb370)for(const _0x520f88 of _0x179b99['listView']['items']){const _0x516ad5=_0x520f88['children']['first'],_0x4f795c=_0x22fdcd['find'](_0x25c9c7=>_0x25c9c7['action']===_0x516ad5['_action'])['isVisible'];_0x520f88['isVisible']=void 0x0===_0x4f795c||_0x4f795c(_0x8c5864);}}),_0x179b99;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x1a99d(_0x46a24c){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x12c8f6,_0x3c3d2e,_0x19ce3b,_0x55ddc0){super(_0x12c8f6);const _0x5e39ff=this['bindTemplate'],_0x44afd3=function(_0xe7540f,_0x3013e1){const _0x1a009a=Array['from'](_0x3013e1['authors'])['filter'](_0x58ea55=>_0x58ea55!=_0x3013e1['creator']);return _0x3013e1['creator']&&_0x1a009a['unshift'](_0x3013e1['creator']),_0x1a009a['map'](_0x37a041=>new ni(_0xe7540f,_0x37a041,_0x37a041==_0x3013e1['creator']));}(_0x12c8f6,_0x3c3d2e);this['id']=_0x3c3d2e['id'],this['_revision']=_0x3c3d2e,this['_requireRevisionName']=_0x55ddc0,this['bind']('name','createdAt')['to'](_0x3c3d2e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5203f7=>{return _0x235f52=_0x12c8f6['uiLanguage'],(_0x186fc3=_0x5203f7)['toLocaleDateString'](_0x235f52,{'month':'long','day':'numeric'})+',\x20'+_0x186fc3['toLocaleTimeString'](_0x235f52,{'hour':'numeric','minute':'numeric'});var _0x235f52,_0x186fc3;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x12c8f6,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x41ef30=>_0x41ef30||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x579664,_0x1adcd9)=>_0x579664&&_0x1adcd9),this['revisionActionsView']=_0x19ce3b&&_0x19ce3b['length']?ai(this,_0x19ce3b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5e39ff['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5e39ff['if']('isEnabled','ck-disabled',_0x2fb2a2=>!_0x2fb2a2),_0x5e39ff['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5e39ff['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5e39ff['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':_0x5e39ff['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':_0x44afd3}]},this['revisionActionsView']],'on':{'click':_0x5e39ff['to'](_0x274af4=>{_0x274af4['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xf3deb5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xf3deb5,'change',()=>{this['_requireRevisionName']&&!_0xf3deb5['value']||this['fire']('setName',{'id':this['id'],'name':_0xf3deb5['value']}),_0xf3deb5['value']||(_0xf3deb5['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x4750f5,_0x5c7b07){const _0x5855dd=_0x86c6ac['fromJSDate'](_0x4750f5)['setLocale'](_0x5c7b07),_0x200da4=_0x86c6ac['local'](),_0x1f02e1=_0x200da4['minus']({'days':0x1})['startOf']('day');let _0x44ca47,_0x335c2d;return _0x5855dd['hasSame'](_0x200da4,'day')?(_0x44ca47=_0x5855dd['startOf']('day')['toJSDate'](),_0x335c2d=_0x5855dd['toRelativeCalendar']()):_0x5855dd['hasSame'](_0x1f02e1,'day')?(_0x44ca47=_0x1f02e1['toJSDate'](),_0x335c2d=_0x5855dd['toRelativeCalendar']()):_0x5855dd['hasSame'](_0x200da4,'week')?(_0x44ca47=_0x5855dd['startOf']('week')['toJSDate'](),_0x335c2d=_0x5855dd['weekdayLong']||''):_0x5855dd['hasSame'](_0x200da4,'year')?(_0x44ca47=_0x5855dd['startOf']('month')['toJSDate'](),_0x335c2d=_0x5855dd['monthLong']||''):(_0x44ca47=_0x5855dd['startOf']('year')['toJSDate'](),_0x335c2d=String(_0x5855dd['year'])),{'startDate':_0x44ca47,'localizedPeriodName':_0x335c2d};}class bi extends _0x46a24c{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2b8032,_0x1e0be1,_0x558fc2,_0x280735){super(_0x2b8032);const _0x49eaf8=li(_0x1e0be1,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1e0be1,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x558fc2,this['_requireRevisionName']=_0x280735,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':_0x49eaf8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2930f1){const _0x1aa006=new _i(this['locale'],_0x2930f1,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1aa006);}['removeRevision'](_0x35d842){const _0x56bdf5=this['revisionViews']['find'](_0x35a74d=>_0x35a74d['id']===_0x35d842['id']);this['revisionViews']['remove'](_0x56bdf5);}}class fi extends _0x46a24c{constructor(_0x1afbb3){super(_0x1afbb3);const _0x4ade0f=new _0x4bea84();_0x4ade0f['content']=_0x5cfb23,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4ade0f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1afbb3,'Revision\x20history')]}]});}}class di extends _0x46a24c{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x16535f,_0x173705,_0x50ff59,_0x2e85fe){super(_0x16535f);const _0x22957f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x173705,this['_revisionActions']=_0x50ff59,this['_requireRevisionName']=_0x2e85fe,this['on']('select',(_0x414f30,_0x14dbac)=>{this['fire']('revisionSelected',_0x14dbac);}),this['on']('setName',(_0x472c38,_0x3347b6)=>{this['fire']('revisionSetName',_0x3347b6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x16535f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x22957f['if']('isEnabled','ck-disabled',_0x14c5a9=>!_0x14c5a9)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x387942 of this['_revisions'])this['_addRevision'](_0x387942);this['_revisions']['on']('add',(_0x530107,_0x4434e8)=>{this['_addRevision'](_0x4434e8);}),this['_revisions']['on']('remove',(_0x2ddcb0,_0x282b5a)=>{this['_removeRevision'](_0x282b5a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1850c3=>_0x1850c3['revisionViews']['map'](_0x4636f1=>_0x4636f1))['flat']();}['selectRevision'](_0x5dcce7){for(const _0x39451e of this['revisionViews'])_0x5dcce7&&_0x5dcce7['id']===_0x39451e['id']?_0x39451e['select']():_0x39451e['deselect']();}['highlightRevisions'](_0x3e2544){for(const _0x2c7367 of this['revisionViews'])_0x3e2544['some'](({id:_0x4f787c})=>_0x4f787c===_0x2c7367['id'])?_0x2c7367['highlight']():_0x2c7367['unhighlight']();}['_addRevision'](_0x25b946){const _0x52d1b4=li(_0x25b946['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x19b806=this['timePeriodViews']['get'](0x0);_0x19b806&&_0x19b806['startDate']['getTime']()===_0x52d1b4['getTime']()||(_0x19b806=new bi(this['locale'],_0x52d1b4,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x19b806)),_0x19b806['addRevision'](_0x25b946);}['_removeRevision'](_0x15fac1){const _0x582005=li(_0x15fac1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x582005)['removeRevision'](_0x15fac1);}['_getTimePeriodViewByStartDate'](_0x1f12dc){return this['timePeriodViews']['find'](_0x57bbc8=>_0x57bbc8['startDate']['getTime']()===_0x1f12dc['getTime']());}}class d extends _0x4a1ed9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x1a9dcf(_0x2534f1){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5bfe05,_0x5424b7){super(_0x5424b7),this['sourceElement']=_0x5bfe05,this['model']['document']['createRoot']();const _0x268304=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x268304);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x23273c,_0x49f677){const _0x4d6309=new this(_0x23273c,_0x49f677);return await _0x4d6309['initPlugins'](),await _0x4d6309['ui']['init'](_0x23273c),await _0x4d6309['data']['init'](_0x4d6309['config']['get']('initialData')||''),_0x4d6309['fire']('ready'),_0x4d6309;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0x57da8b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27ae56){function _0x471018(_0x4a316a){return _0x4a316a['map'](_0x56202b=>String['fromCharCode'](_0x56202b))['join']('');}super(_0x27ae56),this['result']='end',_0x27ae56[_0x471018([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x471018([0x76,0x69,0x65,0x77])][_0x471018([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x471018([0x61,0x75,0x74,0x6f]),_0x27ae56[_0x471018([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x471018([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x471018([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x471018([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x471018([0x6f,0x6b])});}}class ht extends _0x57da8b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x4d75d5){if(super(_0x4d75d5),!this['editor']['config']['get']('revisionHistory'))throw new _0x193114('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x478cf9=>this['_showRevisionViewer']({..._0x478cf9,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x56085f=>this['_closeRevisionViewer'](_0x56085f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x573cac=>this['_restoreRevision'](_0x573cac)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x48ee10){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x48ee10;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5f0fdb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5f0fdb);}['getRevision'](_0x830034){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x830034);}['getRevisions'](_0x35019f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x35019f||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x843eec=this['editor'],_0x13133a=_0x36746a(_0x843eec,p),_0x56fcc8=_0x843eec['plugins']['get']('RevisionTracker'),_0x2dcd52=_0x843eec['plugins']['get']('Users')['users'];return _0x13133a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x13133a['lazyRoots'],(_0x13133a['plugins']['push'](at,u,v,class extends _0x57da8b{static get['requires'](){return[u,'Users'];}['init'](){const _0x2cddc6=this['editor']['plugins']['get']('Users');for(const _0x908331 of _0x2dcd52)_0x908331['isAnonymous']||_0x2cddc6['getUser'](_0x908331['id'])||_0x2cddc6['addUser'](_0x908331);const _0x26c56f=_0x56fcc8['repository']['getRevisions']();let _0x557fc4=null;const _0x5bae71=this['editor']['plugins']['get']('RevisionViewer');_0x5bae71['adapter']=_0x56fcc8['adapter'],_0x5bae71['bind']('isEnabled')['to'](_0x56fcc8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x843eec,'isReadOnly',_0x27fb54=>!_0x27fb54);for(const _0xf3c699 of _0x26c56f){const _0x52600d=null===_0xf3c699['creator'];if(_0x52600d&&_0xf3c699['toVersion']===_0xf3c699['fromVersion'])continue;const _0xe879fe=_0xf3c699['toJSON']();_0x5bae71['addRevisionData'](_0xe879fe,(_0x3ca8ab,_0x8dfbde,_0x37d93a)=>{if(_0x52600d){if(_0x557fc4)_0x557fc4['_update'](_0x3ca8ab,_0x8dfbde);else{if(!_0x8dfbde){const _0x30ca1c=_0x37d93a['toJSON']();_0x30ca1c['id']=_0x4c4fba(),_0x56fcc8['saveRevision'](_0x30ca1c,_0x37d93a['toVersion'])['then'](_0x2b0d4f=>{_0x557fc4=_0x2b0d4f;});}}}else _0xf3c699['_update'](_0x3ca8ab,_0x8dfbde);});}}},d),_0x13133a);}['_enhanceShowRevisionViewerCallback'](){const _0x1ca21e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x37a36b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5f88d4=this['editor']['plugins']['get']('Autosave');await _0x5f88d4['save']();}else await _0x37a36b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x387c8b=this['editor']['plugins']['get']('Dialog');_0x387c8b['isOpen']&&_0x387c8b['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0xe151af=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x43ac12 of _0xe151af)_0x43ac12['class']=_0x43ac12['class']?_0x43ac12['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x113a0e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x113a0e&&_0x113a0e['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x477337=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x477337&&_0x477337['setAttribute']('tabindex','-1');}}const _0x46ae29=this['_getRevisionViewerEditorConfig']();return _0x1ca21e(_0x46ae29)['then'](_0x4d0ff5=>{return(this['_viewerEditor']=_0x4d0ff5,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'),_0x4d0ff5);})['catch'](_0xe5f653=>(console['error'](_0xe5f653),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x389cfe=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x19fa53=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x21c067 of _0x19fa53)_0x21c067['class']='ck-tab-panel_disabled'===_0x21c067['class']?'':_0x21c067['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x3f261c=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x3f261c&&_0x3f261c['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x315953=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x315953&&_0x315953['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x389cfe(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x169e50=this['editor']['plugins']['get']('Annotations');_0x169e50['refreshVisibility'](),_0x169e50['refreshPositioning']();}});});}['_showRevisionViewer'](_0x3e1638){const _0x4e6faf=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x269178=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4605a9=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x4605a9,_0x3e1638)['then'](_0x2f9045=>(_0x269178['style']['display']='block',_0x4e6faf['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2f9045));}['_closeRevisionViewer'](_0x4f286f){const _0x194219=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x194219['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4f286f['destroy']();}async['_restoreRevision'](_0x3d5947){const _0x4b53b4=this['editor'],_0x41ca8c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x298fbb=_0x4b53b4['plugins']['get']('RevisionTracker'),_0x55b4b8=_0x4b53b4['plugins']['get']('RevisionHistoryUtils'),_0x10cc20=_0x41ca8c['repository']['getRevision'](_0x3d5947);let _0x23cef7,_0x394d44,_0x14b00f;try{await _0x55b4b8['loadRevisionData'](_0x10cc20,this['adapter']),_0x23cef7=_0x55b4b8['getRevisionDocumentData'](_0x10cc20),_0x394d44=_0x55b4b8['getRevisionRootsAttributes'](_0x10cc20);}catch(_0x4875dd){return void console['error'](_0x4875dd);}_0x4b53b4['model']['change'](_0x3d5ce7=>{for(const _0x279b4d of Array['from'](_0x4b53b4['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3d5ce7['removeMarker'](_0x279b4d);}),_0x41ca8c['isReady']=!0x1,_0x4b53b4['model']['enqueueChange'](_0x2b28a2=>{_0x2b28a2['setSelection'](null),_0x2b28a2['removeSelectionAttribute'](_0x4b53b4['model']['document']['selection']['getAttributeKeys']());const _0x48c772=Object['keys'](_0x23cef7);for(const _0x312568 of _0x4b53b4['model']['document']['roots'])'$graveyard'!=_0x312568['rootName']&&_0x312568['isAttached']()&&!_0x48c772['includes'](_0x312568['rootName'])&&_0x2b28a2['detachRoot'](_0x312568);for(const _0x2e2267 of _0x48c772){let _0x37e6bd=_0x4b53b4['model']['document']['getRoot'](_0x2e2267);_0x37e6bd&&_0x37e6bd['isAttached']()||(_0x37e6bd=_0x2b28a2['addRoot'](_0x2e2267));const _0x31f7fd=_0x394d44[_0x2e2267],_0x59ac4c=Object['keys'](_0x31f7fd),_0x33a488=_0x23cef7[_0x2e2267];for(const _0xa023cf of _0x37e6bd['getAttributeKeys']())_0x59ac4c['includes'](_0xa023cf)||_0x2b28a2['removeAttribute'](_0xa023cf,_0x37e6bd);for(const _0x2b1b6f of _0x59ac4c)_0x2b28a2['setAttribute'](_0x2b1b6f,_0x394d44[_0x2e2267][_0x2b1b6f],_0x37e6bd);_0x2b28a2['remove'](_0x2b28a2['createRangeIn'](_0x37e6bd)),_0x2b28a2['insert'](_0x4b53b4['data']['parse'](_0x33a488,_0x37e6bd),_0x37e6bd,0x0);}});const _0x195594=m(_0x4b53b4['locale'],'Restored');if(_0x10cc20['name'])_0x14b00f=-0x1==_0x10cc20['name']['indexOf'](_0x195594)?_0x195594+':\x20'+_0x10cc20['name']:_0x10cc20['name'];else _0x14b00f=_0x195594+':\x20'+(_0x10cc20['createdAt']['toLocaleDateString'](_0x4b53b4['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x10cc20['createdAt']['toLocaleTimeString'](_0x4b53b4['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x298fbb['saveRevision']({'name':_0x14b00f}),_0x41ca8c['isReady']=!0x0,_0x4b53b4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x5ee62e){super(_0x5ee62e),this['_revisionViewer']=_0x5ee62e['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2626b9=this['_revisionsRepository']['_revisions'],_0xf2073f=this['_createRevisionActions'](),_0xb226f4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2626b9,_0xf2073f,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',(_0xbc6f34,_0x10a9ff)=>{_0x10a9ff['revisionViews']['on']('add',(_0x359414,_0x139b51)=>{_0x139b51['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)),_0xb226f4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4319bc=this['_revisionsRepository']['getRevision'](0x0);if(_0x4319bc){const _0x4effef=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4319bc['id']);this['_revisionViewer']['compare'](_0x4319bc,_0x4effef);}}['_handleRevisionSelected'](_0x210e61,_0x4123e8){const _0x55bacd=this['_revisionsRepository']['getRevision'](_0x4123e8['id']),_0x321f33=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x55bacd['id']);this['_revisionViewer']['compare'](_0x55bacd,_0x321f33);}['_handleRevisionSetName'](_0x13efef,_0x58b12d){this['_revisionsRepository']['getRevision'](_0x58b12d['id'])['setName'](_0x58b12d['name']);}['_handleDiffChange'](_0x1582b1,_0x2885d8,_0x3a717b){const _0x17e306=this['_revisionsRepository']['getRevisionsInDiff'](_0x3a717b);_0x17e306['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x17e306),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x17e306[0x0]));}['_createRevisionActions'](){const _0x143364=this['editor'],_0x1cbbd0=d['availableRevisionActions'],_0x2e7719=_0x143364['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x2e7719['length'])return _0x2e7719['map'](_0x48af47=>{const _0x198b60='string'==typeof _0x48af47?Object['assign']({},_0x1cbbd0[_0x48af47]):_0x48af47;return _0x198b60['action']=_0x198b60['action']['bind'](this,_0x143364),_0x198b60['isVisible']&&(_0x198b60['isVisible']=_0x198b60['isVisible']['bind'](this,_0x143364)),_0x198b60;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1fff4e},_0x5f2bf2)=>{const _0x51d889=_0x1fff4e['get'](u),_0x2f8149=_0x51d889['repository'];let _0x470720=_0x51d889['diff']['newRevisionId'],_0x495258=_0x5f2bf2['id'];_0x2f8149['getIndex'](_0x470720)>_0x2f8149['getIndex'](_0x495258)&&([_0x470720,_0x495258]=[_0x495258,_0x470720]),_0x51d889['compare'](_0x470720,_0x495258);},'isVisible':({plugins:_0x46fb2d},_0x235a29)=>{const _0x5ab015=_0x46fb2d['get'](u);return!(_0x5ab015['repository']['getRevisionsInDiff'](_0x5ab015['diff'])['length']>0x2)&&!_0x235a29['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x492e0b,{id:_0x1aefb7})=>{_0x492e0b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1aefb7);},'isVisible':({plugins:_0x10a45c},_0x5e6c84)=>!!_0x10a45c['get'](u)['repository']['getLaterVisibleRevision'](_0x5e6c84['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xe79698},{id:_0x2fc728,revisionNameView:_0x3ec5a1})=>{const _0x5e71db=_0xe79698['get'](u),_0x22a1e6=_0x5e71db['repository']['getEarlierVisibleRevision'](_0x2fc728);_0x5e71db['compare'](_0x2fc728,_0x22a1e6),_0x3ec5a1['focus'](),_0x3ec5a1['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3afbb5,_0x193be9){super(_0x3afbb5),this['_view']=_0x193be9,this['_toolbarConfig']=st(_0x3afbb5['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x437b12){const _0x4f80f8=this['editor'],_0x56ba28=this['view'],_0x4183cf=_0x4f80f8['editing']['view'],_0xdb3279=_0x56ba28['editable'],_0x59c499=_0x4183cf['document']['getRoot']();_0xdb3279['name']=_0x59c499['rootName'],_0x56ba28['render']();const _0x5d9ca0=_0xdb3279['element'];this['setEditableElement'](_0xdb3279['name'],_0x5d9ca0),_0x56ba28['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4183cf['attachDomRoot'](_0x5d9ca0),this['_elementReplacer']['replace'](_0x437b12,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xb1f61b=this['view'],_0x421493=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x421493['detachDomRoot'](_0xb1f61b['editable']['name']),_0xb1f61b['destroy']();}['_initToolbar'](){const _0x2d007d=this['view'];_0x2d007d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2d007d['stickyPanel']['limiterElement']=_0x2d007d['element'],_0x2d007d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1c7c5e})=>_0x1c7c5e),_0x2d007d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2d007d['toolbar']);}}class ii extends _0x3fa356{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1701fc,_0x33d719,_0x37c176={}){super(_0x1701fc),this['stickyPanel']=new _0xde1bad(_0x1701fc),this['toolbar']=new _0x2774ed(_0x1701fc,{'shouldGroupWhenFull':_0x37c176['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x1701fc,_0x33d719);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x2ebce0(_0x35f932){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1c45ed,_0x374775){super(_0x374775),this['sourceElement']=_0x1c45ed,this['model']['document']['createRoot']();const _0x2cb0a0=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x2cb0a0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x40fb9e,_0xb840f5){const _0x1beb01=new this(_0x40fb9e,_0xb840f5);return await _0x1beb01['initPlugins'](),await _0x1beb01['ui']['init'](_0x40fb9e),await _0x1beb01['data']['init'](_0x1beb01['config']['get']('initialData')||''),_0x1beb01['fire']('ready'),_0x1beb01;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x4a1ed9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b21d3){function _0x5b4cce(_0x56896c){return _0x56896c['map'](_0x2994ac=>String['fromCharCode'](_0x2994ac))['join']('');}super(_0x2b21d3),this['result']='end',_0x2b21d3[_0x5b4cce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b4cce([0x76,0x69,0x65,0x77])][_0x5b4cce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b4cce([0x61,0x75,0x74,0x6f]),_0x2b21d3[_0x5b4cce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5b4cce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b4cce([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5b4cce([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5b4cce([0x6f,0x6b])});}}class ct extends _0x4a1ed9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x4f6363){if(super(_0x4f6363),!this['editor']['config']['get']('revisionHistory'))throw new _0x3ecade('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x54d1d4=>this['_showRevisionViewer']({..._0x54d1d4,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4dabd9=>this['_closeRevisionViewer'](_0x4dabd9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2a05b3=>this['_restoreRevision'](_0x2a05b3)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x56608d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x56608d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xb4cf44){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xb4cf44);}['getRevision'](_0x5d86ba){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5d86ba);}['getRevisions'](_0x37ae85){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x37ae85||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1d6d5c=this['editor'],_0x4e47e2=_0x403bf2(_0x1d6d5c,p),_0x41a746=_0x1d6d5c['plugins']['get']('RevisionTracker'),_0x2a9aa7=_0x1d6d5c['plugins']['get']('Users')['users'];return _0x4e47e2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4e47e2['lazyRoots'],(_0x4e47e2['plugins']['push'](ht,u,v,class extends _0x4a1ed9{static get['requires'](){return[u,'Users'];}['init'](){const _0x5a2880=this['editor']['plugins']['get']('Users');for(const _0x127368 of _0x2a9aa7)_0x127368['isAnonymous']||_0x5a2880['getUser'](_0x127368['id'])||_0x5a2880['addUser'](_0x127368);const _0x5434b2=_0x41a746['repository']['getRevisions']();let _0x456287=null;const _0x2886c0=this['editor']['plugins']['get']('RevisionViewer');_0x2886c0['adapter']=_0x41a746['adapter'],_0x2886c0['bind']('isEnabled')['to'](_0x41a746),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1d6d5c,'isReadOnly',_0x4d1e27=>!_0x4d1e27);for(const _0x440532 of _0x5434b2){const _0x2b46c7=null===_0x440532['creator'];if(_0x2b46c7&&_0x440532['toVersion']===_0x440532['fromVersion'])continue;const _0x3b781c=_0x440532['toJSON']();_0x2886c0['addRevisionData'](_0x3b781c,(_0x1c96a3,_0x365f77,_0x47dc76)=>{if(_0x2b46c7){if(_0x456287)_0x456287['_update'](_0x1c96a3,_0x365f77);else{if(!_0x365f77){const _0x58acfe=_0x47dc76['toJSON']();_0x58acfe['id']=_0x50a7a4(),_0x41a746['saveRevision'](_0x58acfe,_0x47dc76['toVersion'])['then'](_0x3c82c=>{_0x456287=_0x3c82c;});}}}else _0x440532['_update'](_0x1c96a3,_0x365f77);});}}},d),_0x4e47e2);}['_enhanceShowRevisionViewerCallback'](){const _0x5cabe8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x52ffe8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x185e4f=this['editor']['plugins']['get']('Autosave');await _0x185e4f['save']();}else await _0x52ffe8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x199148=this['editor']['plugins']['get']('Dialog');_0x199148['isOpen']&&_0x199148['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x58b55c=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x419836 of _0x58b55c)_0x419836['class']=_0x419836['class']?_0x419836['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x22778e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x22778e&&_0x22778e['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x5c8235=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x5c8235&&_0x5c8235['setAttribute']('tabindex','-1');}}const _0x5dff66=this['_getRevisionViewerEditorConfig']();return _0x5cabe8(_0x5dff66)['then'](_0x428c06=>{return(this['_viewerEditor']=_0x428c06,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'),_0x428c06);})['catch'](_0x1240de=>(console['error'](_0x1240de),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x387bcf=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0xaabfa3=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x23dde8 of _0xaabfa3)_0x23dde8['class']='ck-tab-panel_disabled'===_0x23dde8['class']?'':_0x23dde8['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x450a43=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x450a43&&_0x450a43['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x23c00b=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x23c00b&&_0x23c00b['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x387bcf(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4aaa28=this['editor']['plugins']['get']('Annotations');_0x4aaa28['refreshVisibility'](),_0x4aaa28['refreshPositioning']();}});});}['_showRevisionViewer'](_0x30b346){const _0x6f941f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4e6304=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x22b9c6=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x22b9c6,_0x30b346)['then'](_0x52df75=>(_0x4e6304['style']['display']='block',_0x6f941f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x52df75));}['_closeRevisionViewer'](_0x2ea656){const _0x18cde2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x18cde2['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2ea656['destroy']();}async['_restoreRevision'](_0x36b25d){const _0x3a09e2=this['editor'],_0xc07740=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x257bd5=_0x3a09e2['plugins']['get']('RevisionTracker'),_0x469e04=_0x3a09e2['plugins']['get']('RevisionHistoryUtils'),_0x58baeb=_0xc07740['repository']['getRevision'](_0x36b25d);let _0x11b19d,_0x54595c,_0x3dd5a4;try{await _0x469e04['loadRevisionData'](_0x58baeb,this['adapter']),_0x11b19d=_0x469e04['getRevisionDocumentData'](_0x58baeb),_0x54595c=_0x469e04['getRevisionRootsAttributes'](_0x58baeb);}catch(_0x1c2832){return void console['error'](_0x1c2832);}_0x3a09e2['model']['change'](_0xf12db5=>{for(const _0x5e4be2 of Array['from'](_0x3a09e2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xf12db5['removeMarker'](_0x5e4be2);}),_0xc07740['isReady']=!0x1,_0x3a09e2['model']['enqueueChange'](_0x4be71e=>{_0x4be71e['setSelection'](null),_0x4be71e['removeSelectionAttribute'](_0x3a09e2['model']['document']['selection']['getAttributeKeys']());const _0x513984=Object['keys'](_0x11b19d);for(const _0x3d3f57 of _0x3a09e2['model']['document']['roots'])'$graveyard'!=_0x3d3f57['rootName']&&_0x3d3f57['isAttached']()&&!_0x513984['includes'](_0x3d3f57['rootName'])&&_0x4be71e['detachRoot'](_0x3d3f57);for(const _0x108afc of _0x513984){let _0x26d1c7=_0x3a09e2['model']['document']['getRoot'](_0x108afc);_0x26d1c7&&_0x26d1c7['isAttached']()||(_0x26d1c7=_0x4be71e['addRoot'](_0x108afc));const _0x319e7d=_0x54595c[_0x108afc],_0x13da98=Object['keys'](_0x319e7d),_0x310a9a=_0x11b19d[_0x108afc];for(const _0x490963 of _0x26d1c7['getAttributeKeys']())_0x13da98['includes'](_0x490963)||_0x4be71e['removeAttribute'](_0x490963,_0x26d1c7);for(const _0x2ef562 of _0x13da98)_0x4be71e['setAttribute'](_0x2ef562,_0x54595c[_0x108afc][_0x2ef562],_0x26d1c7);_0x4be71e['remove'](_0x4be71e['createRangeIn'](_0x26d1c7)),_0x4be71e['insert'](_0x3a09e2['data']['parse'](_0x310a9a,_0x26d1c7),_0x26d1c7,0x0);}});const _0x2bb421=m(_0x3a09e2['locale'],'Restored');if(_0x58baeb['name'])_0x3dd5a4=-0x1==_0x58baeb['name']['indexOf'](_0x2bb421)?_0x2bb421+':\x20'+_0x58baeb['name']:_0x58baeb['name'];else _0x3dd5a4=_0x2bb421+':\x20'+(_0x58baeb['createdAt']['toLocaleDateString'](_0x3a09e2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x58baeb['createdAt']['toLocaleTimeString'](_0x3a09e2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x257bd5['saveRevision']({'name':_0x3dd5a4}),_0xc07740['isReady']=!0x0,_0x3a09e2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|