@ckeditor/ckeditor5-revision-history 47.0.0-alpha.9 → 47.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +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
|
-
_0x1a438a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x182d7d){super(),this['id']=_0x182d7d['id']||_0x3bb1d9(),this['creator']=_0x182d7d['creator']||null,this['authors']=_0x182d7d['authors']||[],this['diffData']=_0x182d7d['diffData']||null,this['toVersion']=_0x182d7d['toVersion']||0x0,this['fromVersion']=_0x182d7d['fromVersion']||0x0,this['set']('name',_0x182d7d['name']||''),this['set']('createdAt',_0x182d7d['createdAt']||new Date()),this['set']('attributes',_0x182d7d['attributes']||{});}['setName'](_0x5a74c3){this['_update']({'name':_0x5a74c3});}['setAttribute'](_0x34d2a9,_0x5aeca2){const _0x42b2e6=_0x1f8919(this['attributes']);_0x2c972b(_0x42b2e6,_0x34d2a9,_0x5aeca2),this['_update']({'attributes':_0x42b2e6});}['removeAttribute'](_0x28b96b){const _0x1b0177=_0x1f8919(this['attributes']);_0x45b178(_0x1b0177,_0x28b96b),this['_update']({'attributes':_0x1b0177});}['_update'](_0x131400,_0x3a759f=!0x1){let _0x285a9a=!0x1;const _0xd88e12={'id':this['id']},_0x1af273=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4f9567 of _0x1af273){const _0x460a68=_0x131400[_0x4f9567];void 0x0!==_0x460a68&&_0x460a68!==this[_0x4f9567]&&(this[_0x4f9567]=_0x460a68,_0xd88e12[_0x4f9567]=_0x460a68,_0x285a9a=!0x0);}_0x285a9a&&(_0xd88e12['authors']&&(_0xd88e12['authorsIds']=_0xd88e12['authors']['map'](_0x51a996=>_0x51a996['id']),delete _0xd88e12['authors']),this['fire']('_update',_0xd88e12,_0x3a759f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2c941c=>_0x2c941c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2bce4d{['_revisions'];static get['requires'](){return[_0x729304];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4f3a8c){super(_0x4f3a8c),this['_revisions']=new _0x40f1c6();}['afterInit'](){!async function(_0x1fe2df){const _0x3b0496=_0x38a251([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x58edfb=0xeb829,_0x26ab8f=0x7374585f,_0x5e85ec=0x73732caf^_0x26ab8f,_0x2e78e1=window[_0x38a251([0x44,0x61,0x74,0x65])][_0x38a251([0x6e,0x6f,0x77])](),_0x59fc46=_0x1fe2df[_0x38a251([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x435776=new window[(_0x38a251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fa6ab=>{_0x59fc46[_0x38a251([0x6f,0x6e,0x63,0x65])](_0x38a251([0x72,0x65,0x61,0x64,0x79]),_0x3fa6ab);}),_0x14fbf8={[_0x38a251([0x6b,0x74,0x79])]:_0x38a251([0x45,0x43]),[_0x38a251([0x75,0x73,0x65])]:_0x38a251([0x73,0x69,0x67]),[_0x38a251([0x63,0x72,0x76])]:_0x38a251([0x50,0x2d,0x32,0x35,0x36]),[_0x38a251([0x78])]:_0x38a251([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]),[_0x38a251([0x79])]:_0x38a251([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]),[_0x38a251([0x61,0x6c,0x67])]:_0x38a251([0x45,0x53,0x32,0x35,0x36])},_0x24f6d4=_0x59fc46[_0x38a251([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38a251([0x67,0x65,0x74])](_0x38a251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22a989(){let _0x541463,_0x47ebff=null,_0x6be07e=null;try{if(_0x24f6d4==_0x38a251([0x47,0x50,0x4c]))return _0x38a251([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x541463=_0x5c96d3(),!_0x541463)return _0x38a251([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x541463[_0x38a251([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6be07e=_0x59b605(_0x541463[_0x38a251([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x541463[_0x38a251([0x6a,0x74,0x69])])),await _0x199d93()?_0x53312d()?_0x482598()?_0x38a251([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x110180()?(_0x541463[_0x38a251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38a251([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47ebff=_0x1401dc(_0x38a251([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x541463[_0x38a251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38a251([0x74,0x72,0x69,0x61,0x6c])&&(_0x47ebff=_0x1401dc(_0x38a251([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c5826()):_0x38a251([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38a251([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38a251([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38a251([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x482598(){const _0x20c50e=[_0x38a251([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38a251([0x74,0x72,0x69,0x61,0x6c])][_0x38a251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541463[_0x38a251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e78e1/0x3e8:0xe10*_0x5e85ec;return _0x541463[_0x38a251([0x65,0x78,0x70])]<_0x20c50e;}function _0x53312d(){const _0x386499=_0x541463[_0x38a251([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x386499)return!0x1;if(_0x386499[_0x38a251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a251([0x2a])))return!0x0;if(_0x386499[_0x38a251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a251([0x52,0x48])))return!0x0;if(_0x386499[_0x38a251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a251([0x52,0x52,0x48]))){if(_0x15c2b8())return!0x0;if(_0x230ff9()||_0x304331())return!0x0;}return!0x1;}function _0x110180(){const _0x5f4ff9=_0x541463[_0x38a251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f4ff9||0x0==_0x5f4ff9[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d8b5e}=new URL(window[_0x38a251([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5f4ff9[_0x38a251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d8b5e))return!0x0;const _0x28e968=_0x3d8b5e[_0x38a251([0x73,0x70,0x6c,0x69,0x74])](_0x38a251([0x2e]));return _0x5f4ff9[_0x38a251([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bd94c=>_0x4bd94c[_0x38a251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a251([0x2a])))[_0x38a251([0x6d,0x61,0x70])](_0x189495=>_0x189495[_0x38a251([0x73,0x70,0x6c,0x69,0x74])](_0x38a251([0x2e])))[_0x38a251([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x172404=>_0x172404[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28e968[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a251([0x6d,0x61,0x70])](_0x116135=>Array(_0x28e968[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x116135[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a251([0x66,0x69,0x6c,0x6c])](_0x116135[0x0]===_0x38a251([0x2a])?_0x38a251([0x2a]):'')[_0x38a251([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x116135))[_0x38a251([0x73,0x6f,0x6d,0x65])](_0x2baa33=>_0x28e968[_0x38a251([0x65,0x76,0x65,0x72,0x79])]((_0x451786,_0x575a90)=>_0x2baa33[_0x575a90]===_0x451786||_0x2baa33[_0x575a90]===_0x38a251([0x2a])));}function _0x3c5826(){return _0x47ebff&&_0x6be07e?new window[(_0x38a251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x537b7b,_0x3bbb6f)=>{_0x47ebff[_0x38a251([0x74,0x68,0x65,0x6e])](_0x537b7b,_0x3bbb6f),_0x6be07e[_0x38a251([0x74,0x68,0x65,0x6e])](_0x4d9f1c=>{_0x4d9f1c!=_0x38a251([0x56,0x61,0x6c,0x69,0x64])&&_0x537b7b(_0x4d9f1c);},_0x3bbb6f);}):_0x47ebff||_0x6be07e||_0x38a251([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59b605(_0x34f5fd,_0x3eeea6){return new window[(_0x38a251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21d546=>{if(_0x5e1901())return _0x21d546(_0x38a251([0x56,0x61,0x6c,0x69,0x64]));_0x2f39ac(),_0x59fc46[_0x38a251([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38a251([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x85878d=!0x1;const _0x3004c3=_0x3bb1d9();function _0x27db1f(_0x5a872a){return!!_0x5a872a&&(typeof _0x5a872a===_0x38a251([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a872a===_0x38a251([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a872a[_0x38a251([0x74,0x68,0x65,0x6e])]===_0x38a251([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a872a[_0x38a251([0x63,0x61,0x74,0x63,0x68])]===_0x38a251([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1617a0(_0x7dd2b){_0x398a59(_0x7dd2b)[_0x38a251([0x74,0x68,0x65,0x6e])](_0xe045f1=>{if(!_0xe045f1||_0xe045f1[_0x38a251([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38a251([0x6f,0x6b]))return _0x38a251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5aad07(_0x3e5fa8(_0x3004c3+_0x3eeea6))!=_0xe045f1[_0x38a251([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38a251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38a251([0x56,0x61,0x6c,0x69,0x64]);})[_0x38a251([0x74,0x68,0x65,0x6e])](_0x28b1ca=>(_0x2b9e20(),_0x28b1ca),()=>{const _0x3bed84=_0x5668e8();return null==_0x3bed84?(_0x2b9e20(),_0x38a251([0x56,0x61,0x6c,0x69,0x64])):_0x38a251(_0x2e78e1-_0x3bed84>(0x5778dc5f^_0x26ab8f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38a251([0x74,0x68,0x65,0x6e])](_0x21d546)[_0x38a251([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21d546(_0x38a251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d80f9=0x7342b6df^_0x26ab8f;function _0x2b9e20(){const _0x2e030f=_0x38a251([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aad07(_0x3e5fa8(_0x34f5fd)),_0xa11525=_0x58d8a3(_0x5aad07(window[_0x38a251([0x4d,0x61,0x74,0x68])][_0x38a251([0x63,0x65,0x69,0x6c])](_0x2e78e1/_0x3d80f9)));window[_0x38a251([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a251([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e030f,_0xa11525);}function _0x5668e8(){const _0x54f5fc=_0x38a251([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aad07(_0x3e5fa8(_0x34f5fd)),_0xd86eb3=window[_0x38a251([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a251([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54f5fc);return _0xd86eb3?window[_0x38a251([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58d8a3(_0xd86eb3),0x10)*_0x3d80f9:null;}function _0x398a59(_0x8af3f6){return new window[(_0x38a251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b2e5b,_0x1419a0)=>{_0x8af3f6[_0x38a251([0x74,0x68,0x65,0x6e])](_0x4b2e5b,_0x1419a0),window[_0x38a251([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1419a0,0x73758c9f^_0x26ab8f);});}}_0x59fc46[_0x38a251([0x6f,0x6e])](_0x38a251([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x212168,_0x15068f)=>{if(_0x15068f[0x0]!=_0x34f5fd)return _0x21d546(_0x38a251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15068f[0x1]={..._0x15068f[0x1],[_0x38a251([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3004c3};},{[_0x38a251([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a251([0x68,0x69,0x67,0x68])}),_0x59fc46[_0x38a251([0x6f,0x6e])](_0x38a251([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x243743=>{_0x27db1f(_0x243743[_0x38a251([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x85878d=!0x0,_0x1617a0(_0x243743[_0x38a251([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38a251([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a251([0x6c,0x6f,0x77])}),_0x435776[_0x38a251([0x74,0x68,0x65,0x6e])](()=>{_0x85878d||_0x21d546(_0x38a251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e1901(){return _0x59fc46[_0x38a251([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a251([0x76,0x69,0x65,0x77])][_0x38a251([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38a251([0x61,0x75,0x74,0x6f]);}function _0x2f39ac(){_0x59fc46[_0x38a251([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a251([0x76,0x69,0x65,0x77])][_0x38a251([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38a251([0x61,0x75,0x74,0x6f]);}}function _0x1401dc(_0x25cc00){const _0x516ea8=[new window[(_0x38a251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x288530=>setTimeout(_0x288530,0x737d6693^_0x26ab8f)),_0x435776[_0x38a251([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38a251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x226086=>{const _0x5a0963=0x73745858^_0x26ab8f,_0x41e1b4=_0x1fe2df[_0x38a251([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5f8747(){_0x41e1b4[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5a0963&&_0x226086();}_0x5f8747(),_0x41e1b4[_0x38a251([0x6f,0x6e])](_0x38a251([0x61,0x64,0x64]),_0x5f8747);})),new window[(_0x38a251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fbabe=>{function _0x4c55a3(){for(const _0x2c64ad in window)if(window[_0x38a251([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x38a251([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2c64ad))&&window[_0x2c64ad]==_0x58edfb)return _0x4fbabe();_0x59fc46[_0x38a251([0x73,0x74,0x61,0x74,0x65])]!=_0x38a251([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x38a251([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c55a3,0x73744bd7^_0x26ab8f);}_0x432bd9(_0x38a251([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4c55a3();})];return window[_0x38a251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38a251([0x72,0x61,0x63,0x65])](_0x516ea8)[_0x38a251([0x74,0x68,0x65,0x6e])](()=>_0x25cc00);}async function _0x24aacb(){if(await _0x435776,_0x432bd9(_0x38a251([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x565b88=_0x1fe2df[_0x38a251([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4819c8=_0x1fe2df[_0x38a251([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])](_0x565b88[_0x38a251([0x69,0x64])]),_0x138e20=_0x1bbb0e(_0x38a251([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x138e20[_0x38a251([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x565b88['id'],_0x4819c8?_0x4819c8['id']:null,!0x0),_0x138e20[_0x38a251([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x38a251([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x138e20[_0x38a251([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x138e20[_0x38a251([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x121d89,void(_0x138e20[_0x38a251([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x121d89);}if(_0x432bd9(_0x38a251([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3f0faa=_0x1bbb0e(_0x38a251([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3f0faa[_0x38a251([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x38a251([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3f0faa[_0x38a251([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3f0faa[_0x38a251([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x121d89,_0x3f0faa[_0x38a251([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x121d89;}_0x59fc46[_0x38a251([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a251([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x121d89,_0x59fc46[_0x38a251([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a251([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x121d89,_0x59fc46[_0x38a251([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38a251([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15c2b8(){return _0x432bd9(_0x38a251([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1bbb0e(_0x38a251([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38a251([0x73,0x74,0x61,0x74,0x65])]==_0x38a251([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x230ff9(){return _0x432bd9(_0x38a251([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 _0x304331(){return _0x432bd9(_0x38a251([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x19c34b(_0x79f6e4){const _0x4a76c8=_0x287e2b();_0x59fc46[_0x4a76c8]=_0x38a251([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])+_0x79f6e4,_0x79f6e4[_0x38a251([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x38a251([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x287e2b()]=_0x58edfb),_0x79f6e4!=_0x38a251([0x56,0x61,0x6c,0x69,0x64])&&_0x24aacb();}function _0x287e2b(){const _0x1026af=window[_0x38a251([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38a251([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38a251([0x6e,0x6f,0x77])]())[_0x38a251([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38a251([0x2e]),'');let _0x7a097=_0x38a251([0x73]);for(let _0x5df506=0x0;_0x5df506<_0x1026af[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5df506+=0x2){let _0x5cfc74=window[_0x38a251([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1026af[_0x38a251([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5df506,_0x5df506+0x2));_0x5cfc74>=_0x3b0496[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cfc74-=_0x3b0496[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7a097+=_0x3b0496[_0x5cfc74];}return _0x7a097;}function _0x5c96d3(){const _0x5e6170=_0x24f6d4[_0x38a251([0x73,0x70,0x6c,0x69,0x74])](_0x38a251([0x2e]));if(0x3!=_0x5e6170[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x322a7f(_0x5e6170[0x1]);function _0x322a7f(_0x354ab9){const _0x4e3a90=_0x4deb64(_0x354ab9);return _0x4e3a90&&_0x38c792()?_0x4e3a90:null;function _0x38c792(){const _0x4261d1=_0x4e3a90[_0x38a251([0x6a,0x74,0x69])],_0x56b158=window[_0x38a251([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4261d1[_0x38a251([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4261d1[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f5248={..._0x4e3a90,[_0x38a251([0x6a,0x74,0x69])]:_0x4261d1[_0x38a251([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4261d1[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f5248[_0x38a251([0x76,0x63])],_0x3e5fa8(_0x5f5248)==_0x56b158;}}}async function _0x199d93(){let _0x45f44a=!0x0;try{const _0x3d88f1=_0x24f6d4[_0x38a251([0x73,0x70,0x6c,0x69,0x74])](_0x38a251([0x2e])),[_0x42bcca,_0x209f4a,_0x5f02fa]=_0x3d88f1;return _0x1ef106(_0x42bcca),await _0x27c9ba(_0x42bcca,_0x209f4a,_0x5f02fa),_0x45f44a;}catch{return!0x1;}function _0x1ef106(_0x40bec5){const _0x2b3ba0=_0x4deb64(_0x40bec5);_0x2b3ba0&&_0x2b3ba0[_0x38a251([0x61,0x6c,0x67])]==_0x38a251([0x45,0x53,0x32,0x35,0x36])||(_0x45f44a=!0x1);}async function _0x27c9ba(_0x2b8e5f,_0x15fa17,_0x479a03){const _0x3416d7=window[_0x38a251([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38a251([0x66,0x72,0x6f,0x6d])](_0xd3d097(_0x479a03),_0x2f8d6d=>_0x2f8d6d[_0x38a251([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c1e3b=new window[(_0x38a251([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38a251([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b8e5f+_0x38a251([0x2e])+_0x15fa17),_0x237042=window[_0x38a251([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38a251([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x237042)return;const _0x3cdda0=await _0x237042[_0x38a251([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38a251([0x6a,0x77,0x6b]),_0x14fbf8,{[_0x38a251([0x6e,0x61,0x6d,0x65])]:_0x38a251([0x45,0x43,0x44,0x53,0x41]),[_0x38a251([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38a251([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38a251([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x237042[_0x38a251([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38a251([0x6e,0x61,0x6d,0x65])]:_0x38a251([0x45,0x43,0x44,0x53,0x41]),[_0x38a251([0x68,0x61,0x73,0x68])]:{[_0x38a251([0x6e,0x61,0x6d,0x65])]:_0x38a251([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3cdda0,_0x3416d7,_0x4c1e3b)||(_0x45f44a=!0x1);}}function _0x4deb64(_0x428423){return _0x428423[_0x38a251([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38a251([0x65,0x79]))?JSON[_0x38a251([0x70,0x61,0x72,0x73,0x65])](_0xd3d097(_0x428423)):null;}function _0xd3d097(_0xaad63){return window[_0x38a251([0x61,0x74,0x6f,0x62])](_0xaad63[_0x38a251([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38a251([0x2b]))[_0x38a251([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38a251([0x2f])));}function _0x3e5fa8(_0x345c98){let _0xefede6=0x1505;function _0x1669d5(_0x483df0){for(let _0x176876=0x0;_0x176876<_0x483df0[_0x38a251([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x176876++){const _0x4d72b2=_0x483df0[_0x38a251([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x176876);_0xefede6=(_0xefede6<<0x5)+_0xefede6+_0x4d72b2,_0xefede6&=_0xefede6;}}function _0x2d94b8(_0x2fa231){Array[_0x38a251([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fa231)?_0x2fa231[_0x38a251([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d94b8):_0x2fa231&&typeof _0x2fa231==_0x38a251([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38a251([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fa231)[_0x38a251([0x73,0x6f,0x72,0x74])]()[_0x38a251([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e975b,_0xde48ba])=>{_0x1669d5(_0x5e975b),_0x2d94b8(_0xde48ba);}):_0x1669d5(window[_0x38a251([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fa231));}return _0x2d94b8(_0x345c98),_0xefede6>>>0x0;}function _0x5aad07(_0xa0309d){return _0xa0309d[_0x38a251([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38a251([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38a251([0x30]));}function _0x58d8a3(_0x2fa8d4){return _0x2fa8d4[_0x38a251([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38a251([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38a251([0x6a,0x6f,0x69,0x6e])]('');}function _0x432bd9(_0xfd37ea){return _0x59fc46[_0x38a251([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38a251([0x68,0x61,0x73])](_0xfd37ea);}function _0x1bbb0e(_0x1ace37){return _0x59fc46[_0x38a251([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38a251([0x67,0x65,0x74])](_0x1ace37);}function _0x121d89(){}function _0x38a251(_0x32e56a){return _0x32e56a['map'](_0x5be2=>String['fromCharCode'](_0x5be2))['join']('');}_0x19c34b(await _0x22a989());}(this);}['createRevision'](_0x423363){const _0x3bd5e9=this['editor']['plugins']['get']('Users');return new I({'id':_0x423363['id'],'name':_0x423363['name'],'creator':_0x423363['creatorId']?_0x3bd5e9['getUser'](_0x423363['creatorId']):null,'diffData':_0x423363['diffData']||_0x423363['data'],'authors':_0x423363['authorsIds']['map'](_0x3481ed=>_0x3bd5e9['getUser'](_0x3481ed)),'createdAt':new Date(_0x423363['createdAt']),'attributes':_0x423363['attributes'],'fromVersion':_0x423363['fromVersion'],'toVersion':_0x423363['toVersion']});}['addRevision'](_0xadaad0,_0x4a3c21=0x0){this['_revisions']['add'](_0xadaad0,_0x4a3c21);}['getRevision'](_0x6e7d72){return this['_revisions']['get'](_0x6e7d72);}['getRevisions'](_0x139397={'toJSON':!0x1}){const _0x3e73d5=Array['from'](this['_revisions']);return _0x3e73d5['reverse'](),_0x139397['toJSON']?_0x3e73d5['map'](_0x48ce39=>_0x48ce39['toJSON']()):_0x3e73d5;}['getIndex'](_0x28b6fc){return this['_revisions']['getIndex'](_0x28b6fc);}['getEarlierVisibleRevision'](_0xfbbafb){const [,_0x50b224]=this['getRevisionsIterator'](_0xfbbafb,{'direction':'earlier'});return _0x50b224;}['getLaterVisibleRevision'](_0x59ee06){const [,_0x3d50ad]=this['getRevisionsIterator'](_0x59ee06,{'direction':'later'});return _0x3d50ad;}['getRevisionsInDiff'](_0x559bea){const _0x551053=[];for(const _0x2f360a of this['getRevisionsIterator'](_0x559bea['newRevisionId']))if(_0x551053['push'](_0x2f360a),_0x2f360a['id']===_0x559bea['oldRevisionId'])break;return _0x551053;}*['getRevisionsIterator'](_0x3fa82c,{direction:_0x20035b='earlier',filter:_0x1a93f5=()=>!0x0}={}){const _0x1775dd='earlier'===_0x20035b?0x1:-0x1;let _0x41bb57=this['_revisions']['get'](_0x3fa82c),_0x3aa626=this['getIndex'](_0x41bb57);for(yield _0x41bb57;_0x41bb57;){if(_0x3aa626+=_0x1775dd,_0x41bb57=this['getRevision'](_0x3aa626),!_0x41bb57)return;_0x1a93f5(_0x41bb57)&&(yield _0x41bb57);}}}class $ extends _0x2bce4d{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x6e2313,'c'],[_0x4ce6b3,'a'],[_0x5d6ad4,'e'],[_0x242d82,'r'],[_0x49d851,'u']]);['_typeCharToViewClass']=new Map([['c',_0x6e2313],['a',_0x4ce6b3],['e',_0x5d6ad4],['r',_0x242d82],['u',_0x49d851]]);async['loadRevisionData'](_0x5317ca,_0x55ed40){if(_0x5317ca['diffData']||!_0x55ed40)return;const _0x16e754=this['editor']['config']['get']('collaboration.channelId'),_0x262771=await _0x55ed40['getRevision']({'channelId':_0x16e754,'revisionId':_0x5317ca['id']});_0x5317ca['diffData']=_0x262771['diffData'];}['getRevisionDocumentData'](_0x379676){const _0x42284b={};for(const _0x33ebdd in _0x379676['diffData']){if(_0x379676['diffData'][_0x33ebdd]['attachChange']&&!_0x379676['diffData'][_0x33ebdd]['attachChange']['isAttached'])continue;const _0x3b0388=this['_removeRevisionMarkers'](JSON['parse'](_0x379676['diffData'][_0x33ebdd]['insertions'])),_0x202b1d=this['editor']['editing']['view']['document'],_0x206c69=new _0x11f4b2(_0x202b1d,_0x3b0388['map'](_0x28684d=>this['_getViewFromDiffObj'](_0x28684d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x42284b[_0x33ebdd]=this['editor']['data']['processor']['toData'](_0x206c69),this['editor']['data']['processor']['useFillerType']('default');}return _0x42284b;}['getRevisionRootsAttributes'](_0x5e96dc){const _0x3becfc={};for(const _0x2e525f in _0x5e96dc['diffData'])_0x5e96dc['diffData'][_0x2e525f]['attachChange']&&!_0x5e96dc['diffData'][_0x2e525f]['attachChange']['isAttached']||(_0x3becfc[_0x2e525f]=_0x5e96dc['diffData'][_0x2e525f]['attributesAfter']||{});return _0x3becfc;}['_getTypeCharForViewElement'](_0x108c83){return this['_viewClassToTypeChar']['get'](_0x108c83['constructor']);}['_getViewFromDiffObj'](_0x4be165,_0x2a40aa){const _0x36f481=this['editor']['editing']['view']['document'];if('string'==typeof _0x4be165)return new _0x286ad4(_0x36f481,_0x4be165);{let _0x69c0a8,_0x1d2c81;_0x1d2c81='u'==_0x4be165['type']||'r'==_0x4be165['type']?[]:_0x4be165['children']['map'](_0x1dda4e=>this['_getViewFromDiffObj'](_0x1dda4e,_0x2a40aa));const _0x51f2c0=this['_typeCharToViewClass']['get'](_0x4be165['type'])||_0x23f5aa,_0x1828db=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x69c0a8=new _0x51f2c0(_0x36f481,_0x4be165['name'],_0x4be165['attributes'],_0x1d2c81),'u'==_0x4be165['type']&&_0x4be165['children'][0x0]){const _0x4195eb=_0x4be165['children'][0x0];if(_0x69c0a8['render']=function(_0x37575e){const _0x3f7bd0=_0x37575e['createElement']('div');return _0x3f7bd0['innerHTML']=_0x4195eb,_0x3f7bd0['childNodes'][0x0];},_0x2a40aa){const _0x5883a2=new _0x11f4b2(_0x36f481);_0x5883a2['_appendChild'](_0x69c0a8);const _0x186845=Array['from'](_0x1828db['viewChildrenToDom'](_0x5883a2,{'bind':!0x1})),_0xa8377e=_0x1828db['domDocument']['createElement']('div');_0xa8377e['append'](..._0x186845),_0x69c0a8=Array['from'](_0x1828db['domChildrenToView'](_0xa8377e))[0x0];}}else{if('r'==_0x4be165['type']&&_0x4be165['children'][0x0]){const _0x17c023=_0x4be165['children'][0x0];if(_0x69c0a8['render']=function(_0x3f9d4a){_0x3f9d4a['innerHTML']=_0x17c023;},_0x2a40aa){const _0x2371e5=new _0x11f4b2(_0x36f481);_0x2371e5['_appendChild'](_0x69c0a8);const _0x4c58fa=Array['from'](_0x1828db['viewChildrenToDom'](_0x2371e5,{'bind':!0x1})),_0x37941d=_0x1828db['domDocument']['createElement']('div');_0x37941d['append'](..._0x4c58fa);const _0x30639e=Array['from'](_0x1828db['domChildrenToView'](_0x37941d));_0x30639e['length']>0x1?_0x69c0a8['_appendChild'](_0x30639e):_0x69c0a8=_0x30639e[0x0];}}}if(_0x4be165['customProperties']){for(const [_0x15a433,_0x393111]of _0x4be165['customProperties'])_0x69c0a8['_setCustomProperty'](_0x15a433,_0x393111);}const _0x43d7ed=void 0x0===_0x4be165['fillerOffset']?null:_0x4be165['fillerOffset'];return null!==_0x43d7ed&&(_0x69c0a8['getFillerOffset']=()=>_0x43d7ed),_0x69c0a8;}}['_makeModelFromViewString'](_0x343972){const _0x2590d8=JSON['parse'](_0x343972),_0x56dfb4=this['editor']['editing']['view']['document'],_0x344acb=new _0x11f4b2(_0x56dfb4,_0x2590d8['map'](_0x3d5989=>this['_getViewFromDiffObj'](_0x3d5989,!0x0)));return this['editor']['data']['toModel'](_0x344acb);}['_removeRevisionMarkers'](_0x26edc4){return(_0x26edc4=_0x26edc4['filter'](_0x3ee896=>!_0x3ee896['name']||'revision-start'!==_0x3ee896['name']&&'revision-end'!==_0x3ee896['name']))['forEach'](_0x3df0f4=>{'string'!=typeof _0x3df0f4&&(_0x3df0f4['children']=this['_removeRevisionMarkers'](_0x3df0f4['children']),_0x3df0f4['attributes']=_0x3df0f4['attributes']['filter'](_0x4e36d1=>!_0x4e36d1[0x0]['startsWith']('data-revision-')));}),_0x26edc4;}}function m(_0x41152e,_0x3092df,_0xbe60d6){const t=_0x41152e['t'];switch(_0x3092df){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'},_0xbe60d6);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xbe60d6);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 _0x2bce4d{['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[_0x729304,S,$,_0x5a0857];}constructor(_0x6da23e){super(_0x6da23e),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 _0x473ce8=_0x3bb1d9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x473ce8},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 _0x3684c5=this['repository']['getRevision'](0x0),_0xb8a2d9=_0x3684c5&&null===_0x3684c5['creator']?_0x3684c5:null;if(this['_continueCurrentRevision']=!!_0xb8a2d9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x22e506=this['_source']['getCurrentRevisionId'](),_0x2f3339=this['repository']['getRevision'](_0x22e506);if(_0x2f3339)this['_startingVersion']=_0x2f3339['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5c6614=this['_source']['history']['_operations']['find'](_0x1939d3=>!_0x1939d3['_isInit']),_0x304420=_0x5c6614?_0x5c6614['baseVersion']:this['_source']['history']['version'];_0x3684c5?(_0x3684c5['toVersion']<_0x304420&&_0x3684c5['_update']({'toVersion':_0x304420}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xb8a2d9['id'],this['_startingVersion']=_0xb8a2d9['fromVersion']):(this['_startingVersion']=_0x3684c5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x304420,this['_continueCurrentRevision']=!0x1);}}else _0xb8a2d9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xb8a2d9['toVersion'],this['editor']['model']['document']['history']['version']),_0xb8a2d9['fromVersion']===_0xb8a2d9['toVersion']?(0x0!==_0xb8a2d9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xb8a2d9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xb8a2d9['id'],this['_startingVersion']=_0xb8a2d9['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',_0xff3c51=>!_0xff3c51),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f0c09=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x25211d;for(const _0x4a37d6 in _0x1f0c09){const _0xf5f11a=_0x4a37d6,_0x449183=_0x1f0c09[_0xf5f11a];if('revisionHistoryLicenseKeyValid'==_0x449183||'revisionHistoryLicenseKeyInvalid'==_0x449183||'revisionHistoryLicenseKeyExpired'==_0x449183||'revisionHistoryLicenseKeyDomainLimit'==_0x449183||'revisionHistoryLicenseKeyNotAllowed'==_0x449183||'revisionHistoryLicenseKeyEvaluationLimit'==_0x449183||'revisionHistoryLicenseKeyTrialLimit'==_0x449183||'revisionHistoryLicenseKeyUsageLimit'==_0x449183){delete _0x1f0c09[_0xf5f11a],_0x25211d=_0x449183,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x25211d&&_0x1f0c09['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x25211d&&_0x1f0c09['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x25211d&&_0x1f0c09['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x25211d&&_0x1f0c09['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x25211d&&_0x1f0c09['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x25211d&&_0x1f0c09['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x25211d&&_0x1f0c09['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x40f73c=this['repository']['getRevision'](0x0),_0x4c0f19=await this['getRevisionDocumentData'](_0x40f73c),_0x232bcd=await this['getRevisionRootsAttributes'](_0x40f73c);this['_replaceEditorDataWithRevisionData'](_0x4c0f19,_0x232bcd);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1e5860){this['_source']=_0x1e5860;}async['update'](){const _0x556b72=await this['_source']['getLatestVersion']();if(_0x556b72>this['currentRevision']['toVersion']){await this['_loadState']();const _0x519fbc=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x556b72});_0x519fbc['authors']=_0x519fbc['authorsIds']['map'](_0x1f21f0=>this['editor']['plugins']['get']('Users')['getUser'](_0x1f21f0)),this['currentRevision']['_update'](_0x519fbc);}}async['saveRevision'](_0xd17027={},_0x50350e=null){const _0x143ed3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x50350e>this['currentRevision']['toVersion']&&(_0x50350e=null),null===_0x50350e&&(_0x50350e=await this['_source']['getLatestVersion']());const _0x89dfd0=this['_getFromVersion'](_0x50350e),_0x8646c2=this['buildRevisionData']({'from':_0x89dfd0,'to':_0x50350e});if(this['currentRevision']['toVersion']<_0x50350e){const _0x44d08c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x50350e,'to':_0x50350e});_0x44d08c['authors']=[],_0x44d08c['authorsIds']=[],_0x44d08c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x44d08c,!0x0),delete _0x44d08c['authors'],_0x143ed3['push'](_0x44d08c);}_0xd17027['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xd17027['name']=_0xd17027['name']||null,_0xd17027['id']=_0xd17027['id']||_0x3bb1d9(),_0xd17027={..._0xd17027,..._0x8646c2};const _0x24c5c1=this['addRevisionData'](_0xd17027);_0x143ed3['push'](_0xd17027);const _0x2e77a3=this['repository']['getIndex'](_0x24c5c1);if(0x0!==_0x2e77a3){const _0x4610e4=this['repository']['getRevision'](_0x2e77a3-0x1);if(_0x4610e4['fromVersion']!==_0x50350e){const _0x16114e=this['_revisionDataBuilder']['getData'](_0x50350e,_0x4610e4['toVersion']),_0x4f28e7={'id':_0x4610e4['id'],'diffData':_0x16114e['diffData'],'authorsIds':_0x16114e['authorsIds'],'authors':_0x16114e['authorsIds']['map'](_0x19e5b3=>this['editor']['plugins']['get']('Users')['getUser'](_0x19e5b3)),'fromVersion':_0x50350e};_0x4610e4===this['currentRevision']&&(_0x4f28e7['createdAt']=new Date(_0xd17027['createdAt']['getTime']()+0xa)),_0x4610e4['_update'](_0x4f28e7,!0x0),delete _0x4f28e7['authors'],_0x143ed3['push'](_0x4f28e7);}}if(this['adapter']){for(const _0x4caeec of _0x143ed3)this['_bufferUpdate'](_0x4caeec['id'],_0x4caeec,!0x0);this['sendBufferedUpdates']();}return _0x24c5c1;}['addRevisionData'](_0x3c307a){const _0x6b0b46=this['repository']['createRevision'](_0x3c307a);return this['adapter']&&_0x6b0b46['on']('_update',(_0x4414a6,_0x55d277,_0x4b3295)=>{_0x4b3295||(this['_bufferUpdate'](_0x55d277['id'],_0x55d277,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x6b0b46,this['_findInsertionIndex'](_0x6b0b46)),_0x6b0b46;}async['getRevisionDocumentData'](_0x4e0d3a){return await this['_utils']['loadRevisionData'](_0x4e0d3a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4e0d3a);}async['getRevisionRootsAttributes'](_0x48af5e){return await this['_utils']['loadRevisionData'](_0x48af5e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x48af5e);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2aa735=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1ec8ec=0x0;_0x1ec8ec<_0x2aa735['length'];_0x1ec8ec++){const _0x51e3c5=_0x2aa735[_0x1ec8ec];let _0x1a94fa=!0x1;for(const _0x5c8037 of Object['keys'](_0x51e3c5))void 0x0===_0x51e3c5[_0x5c8037]?delete _0x51e3c5[_0x5c8037]:'id'!==_0x5c8037&&(_0x1a94fa=!0x0);_0x1a94fa||(_0x2aa735[_0x1ec8ec]=null);}if(_0x2aa735=_0x2aa735['filter'](_0x2435c6=>null!==_0x2435c6),!_0x2aa735['length'])return;for(let _0x1c391f=0x0;_0x1c391f<_0x2aa735['length'];_0x1c391f++){const _0x140c1f=_0x2aa735[_0x1c391f];void 0x0!==_0x140c1f['fromVersion']&&void 0x0===_0x140c1f['toVersion']&&(_0x140c1f['toVersion']=this['repository']['getRevision'](_0x140c1f['id'])['toVersion']),void 0x0!==_0x140c1f['toVersion']&&void 0x0===_0x140c1f['fromVersion']&&(_0x140c1f['fromVersion']=this['repository']['getRevision'](_0x140c1f['id'])['fromVersion']);}const _0x550e3c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2aa735,_0x550e3c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1554f0=>{if(_0x1554f0){for(const _0x5743e7 of _0x1554f0)this['setRevisionData']({'id':_0x5743e7['id'],'createdAt':_0x5743e7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x54ddad=null,from:_0xd68000=null,to:_0x5fc6b3=null}){_0xd68000=null!==_0xd68000?_0xd68000:_0x54ddad['fromVersion'],_0x5fc6b3=null!==_0x5fc6b3?_0x5fc6b3:_0x54ddad['toVersion'];const _0x45fad0=this['_revisionDataBuilder']['getData'](_0xd68000,_0x5fc6b3),_0x5b07f1={'diffData':_0x45fad0['diffData'],'authorsIds':_0x45fad0['authorsIds'],'fromVersion':_0xd68000,'toVersion':_0x5fc6b3};if(!_0x54ddad||_0x5fc6b3!==_0x54ddad['toVersion']){const _0x3d9657=_0x5fc6b3-0x1,_0xf3e37e=this['_source']['history']['getOperation'](_0x3d9657);_0x5b07f1['createdAt']=_0xf3e37e&&_0xf3e37e['createdAt']||new Date();}if(this['_loadedStateData']&&_0xd68000===this['_loadedStateData']['fromVersion']){for(const _0x5eb783 of this['_loadedStateData']['authors'])_0x5b07f1['authorsIds']['includes'](_0x5eb783['id'])||_0x5b07f1['authorsIds']['push'](_0x5eb783['id']);}return _0x5b07f1;}['_bufferUpdate'](_0xe15bd1,_0x4d8512,_0x3be38e){if(this['_bufferedUpdates']['has'](_0xe15bd1)){const _0x3b8e85=this['_bufferedUpdates']['get'](_0xe15bd1);_0x4d8512=_0x3be38e?{..._0x3b8e85,..._0x4d8512}:{..._0x4d8512,..._0x3b8e85};}this['_bufferedUpdates']['set'](_0xe15bd1,_0x4d8512);}['setRevisionData'](_0x500f40){const _0x10098c=this['repository']['getRevision'](_0x500f40['id']);if(_0x500f40['createdAt']&&(_0x500f40['createdAt']=new Date(_0x500f40['createdAt'])),_0x500f40['authorsIds']){const _0x172cc1=this['editor']['plugins']['get']('Users');_0x500f40['authors']=_0x500f40['authorsIds']['map'](_0x2cad89=>_0x172cc1['getUser'](_0x2cad89));}_0x10098c['_update'](_0x500f40,!0x0);}['_createInitialRevision'](_0x317b83){const _0x142d05=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x142d05)this['_initialRevisionId']=_0x142d05['id'];else{const _0x46ad60=!this['editor']['model']['document']['roots']['find'](_0x1c79fe=>this['editor']['model']['hasContent'](_0x1c79fe)),_0x238f9e=this['editor']['plugins']['get']('Users')['me']['id'],_0x51bf21=m(this['editor']['locale'],_0x46ad60?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x317b83,'to':_0x317b83,'id':this['_initialRevisionId'],'name':_0x51bf21,'creatorId':_0x238f9e});}}['_createCurrentRevision'](_0xd304e3){const _0x3e7acd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3e7acd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xd304e3,'to':_0xd304e3,'id':_0x3e7acd,'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'](_0x16a9a6,_0x481ead){let _0x550780=this['editor']['config']['get']('initialData'),_0x432599=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x550780){_0x550780={};for(const _0x417f3c of this['editor']['model']['document']['getRootNames']())_0x550780[_0x417f3c]='';}if('string'==typeof _0x550780&&(_0x550780={'main':_0x550780}),void 0x0===_0x432599){_0x432599={};for(const _0x19db68 of this['editor']['model']['document']['getRootNames']())_0x432599[_0x19db68]={};}let _0x21c4bc=!0x1;const _0x87d774=Object['keys'](_0x550780),_0x1ab652=Object['keys'](_0x16a9a6);for(const _0x4a9ff0 of _0x87d774){if(_0x550780[_0x4a9ff0]!==_0x16a9a6[_0x4a9ff0]&&''!==_0x550780[_0x4a9ff0]['trim']()){_0x21c4bc=!0x0;break;}if(!_0x588fc7(_0x432599[_0x4a9ff0],_0x481ead[_0x4a9ff0])&&Object['keys'](_0x432599[_0x4a9ff0])['length']>0x0){_0x21c4bc=!0x0;break;}}_0x21c4bc||(_0x21c4bc=_0x1ab652['some'](_0x264df6=>!this['editor']['model']['document']['getRoot'](_0x264df6))),_0x21c4bc&&_0x823218('editor-initial-data-replaced-with-revision-data',{'editorData':_0x550780,'editorRootsAttributes':_0x432599,'revisionData':_0x16a9a6,'revisionRootsAttributes':_0x481ead}),this['editor']['config']['set']('initialData',_0x16a9a6),this['editor']['config']['set']('rootsAttributes',_0x481ead);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x42219f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x42219f['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x986f3b){const _0x44562e=this['repository']['getRevisions']();_0x44562e['reverse']();let _0x26d9e0=0x0;for(;_0x26d9e0<_0x44562e['length'];){const _0x4464c9=_0x44562e[_0x26d9e0];if(_0x4464c9===this['currentRevision']){_0x26d9e0++;continue;}if(_0x4464c9['id']===this['_initialRevisionId'])break;const _0x3a9780=_0x986f3b['toVersion']-_0x4464c9['toVersion']||_0x986f3b['fromVersion']-_0x4464c9['fromVersion'];if(_0x3a9780>0x0)break;if(_0x3a9780<0x0)_0x26d9e0++;else{if(!_0x986f3b['creator']&&_0x4464c9['creator'])break;if(_0x4464c9['creator']||!_0x986f3b['creator']){if(_0x986f3b['createdAt']>_0x4464c9['createdAt'])break;_0x26d9e0++;}else _0x26d9e0++;}}return _0x26d9e0;}['_getFromVersion'](_0x159157){const _0x2f4ed3=this['repository']['getRevisions']();_0x2f4ed3['reverse'](),_0x2f4ed3['shift']();const _0x379ea9=_0x2f4ed3['find'](_0x25e80a=>_0x25e80a['toVersion']<=_0x159157)['toVersion'];return _0x379ea9<this['_startingVersion']?this['_startingVersion']:_0x379ea9;}['_makeRevision']({name:_0x49b1e5,from:_0x408d34,to:_0x3f3d1a,creatorId:_0x3eed52,id:_0x16a980}){const _0x175c1b=this['buildRevisionData']({'from':_0x408d34,'to':_0x3f3d1a});_0x175c1b['name']=_0x49b1e5,_0x175c1b['creatorId']=_0x3eed52,_0x175c1b['id']=_0x16a980;const _0x40a1cd=this['addRevisionData'](_0x175c1b);return this['adapter']&&this['_bufferUpdate'](_0x175c1b['id'],_0x175c1b,!0x0),_0x40a1cd;}['_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(_0x578109){this['editor']=_0x578109,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'](_0x3337fb){this['source']=_0x3337fb;const _0x2fb9e7=new Map(),_0x2c9dbf=new Map(),_0x20b6d7=this['editor']['model']['document']['roots']['map'](_0x356908=>_0x356908['rootName']);for(const _0x539f8a of _0x20b6d7){const _0x329024=this['editor']['model']['document']['getRoot'](_0x539f8a),_0x106db2=x(_0x329024);_0x2fb9e7['set'](_0x539f8a,_0x106db2),_0x2c9dbf['set'](_0x539f8a,Object['fromEntries'](_0x329024['getAttributes']()));}const _0x586a76=Array['from'](this['editor']['model']['markers'])['map'](_0x3235eb=>[_0x3235eb['name'],_0x3235eb['getRange']()]),_0x319720=this['source']['version'];this['_saveMetaData'](_0x319720,_0x2fb9e7,_0x586a76,_0x2c9dbf),this['_startingRevisionId']=this['_revisionId'];const _0x3bce85=new Map(),_0x56addb=new Map();for(const _0x1117a1 of _0x20b6d7){const _0x1f1729=N(_0x1117a1);_0x3bce85['set'](_0x1117a1,_0x1f1729),_0x56addb['set'](_0x1117a1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3bce85,[],_0x56addb);}['getData'](_0x50e13c,_0x27b8eb){if(this['_lastFrom']===_0x50e13c&&this['_lastTo']<=_0x27b8eb)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x27b8eb,!0x0);else{if(!this['_savedMetaData']['has'](_0x50e13c)){const _0x1335b3=this['_getPreviousFrom'](_0x50e13c);this['_calculateMetaData'](_0x1335b3,_0x50e13c,!0x1);}this['_calculateMetaData'](_0x50e13c,_0x27b8eb,!0x0);}return this['_lastFrom']=_0x50e13c,this['_lastTo']=_0x27b8eb,this['_getState']();}['loadState'](_0x2cd645){if(!this['_savedMetaData']['has'](_0x2cd645['fromVersion'])){const _0xb41f4f=this['_getPreviousFrom'](_0x2cd645['fromVersion']);this['_calculateMetaData'](_0xb41f4f,_0x2cd645['fromVersion'],!0x1);}this['_calculateMetaData'](_0x2cd645['fromVersion'],_0x2cd645['toVersion'],!0x1);const _0x29c417=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2cd645['fromVersion'],this['_lastTo']=_0x2cd645['toVersion'];for(const _0x2f7bb0 in _0x2cd645['diffData']){const _0x5c8841=_0x2cd645['diffData'][_0x2f7bb0]['attachChange'],_0x2cfb82=_0x1f8919(_0x2cd645['diffData'][_0x2f7bb0]['attributesBefore'])||{},_0x4b6666=_0x29c417['_makeModelFromViewString'](_0x2cd645['diffData'][_0x2f7bb0]['deletions']);_0x4b6666['rootName']=_0x2f7bb0,_0x4b6666['_isAttached']=!_0x5c8841||!_0x5c8841['isAttached'],_0x4b6666['isAttached']=()=>_0x4b6666['_isAttached'],this['_baseRoots']['set'](_0x2f7bb0,_0x4b6666),this['_baseRootsAttributes']['set'](_0x2f7bb0,_0x2cfb82),_0x5c8841&&this['_touchedRoots']['set'](_0x2f7bb0,_0x5c8841);const _0xc2379=this['_makeIdsRoot'](_0x4b6666);this['_baseIdsRoots']['set'](_0x2f7bb0,_0xc2379);for(const [_0x3b7a93,_0x46b8a4]of _0x4b6666['markers']){if(!_0x3b7a93['startsWith']('revision:'))continue;const _0x44eea4=_0x3b7a93['split'](':')[0x2];for(const _0x3ed489 of _0x46b8a4['getWalker']({'singleCharacters':!0x0})){const _0x1af86d=this['_getVidAttributeName'](_0x3ed489),_0x10df4e='elementEnd'==_0x3ed489['type']?_0x3ed489['previousPosition']['path']['slice'](0x0,-0x1):_0x3ed489['previousPosition']['path'],_0x5bc0f9=_0xc2379['getNodeByPath'](_0x10df4e)['getAttribute'](_0x1af86d);this['_touched']['set'](_0x5bc0f9,{'userId':_0x44eea4});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1b777e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x228280=>!this['_touched']['has'](_0x228280));let _0x14065b=0x0;const _0x23a84f=new Map();for(const _0x4815f in _0x2cd645['diffData']){const _0x4c771a=_0x2cd645['diffData'][_0x4815f]['attachChange'],_0x5981e7=_0x1f8919(_0x2cd645['diffData'][_0x4815f]['attributesAfter'])||{},_0x228f1b=_0x29c417['_makeModelFromViewString'](_0x2cd645['diffData'][_0x4815f]['insertions']);_0x228f1b['rootName']=_0x4815f,_0x228f1b['_isAttached']=!_0x4c771a||_0x4c771a['isAttached'],_0x228f1b['isAttached']=()=>_0x228f1b['_isAttached'],this['_diffRoots']['set'](_0x4815f,_0x228f1b),this['_diffRootsAttributes']['set'](_0x4815f,_0x5981e7);const _0x174086=this['_makeIdsRoot'](_0x228f1b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4815f,_0x174086),_0x23a84f['set'](_0x4815f,_0x228f1b['isAttached']()?_0x5981e7:{});for(const [_0x39119a,_0x15c344]of _0x228f1b['markers']){if(!_0x39119a['startsWith']('revision:'))continue;const _0x5d57f5=_0x39119a['split'](':')[0x2];for(const _0x51e9b4 of _0x15c344['getWalker']({'singleCharacters':!0x0})){const _0x3f5fa3=this['_getVidAttributeName'](_0x51e9b4),_0x75089=this['_revisionId']++,_0x1c4818='elementEnd'==_0x51e9b4['type']?_0x51e9b4['previousPosition']['path']['slice'](0x0,-0x1):_0x51e9b4['previousPosition']['path'];_0x174086['getNodeByPath'](_0x1c4818)['_setAttribute'](_0x3f5fa3,_0x75089),this['_touched']['set'](_0x75089,{'userId':_0x5d57f5});}}for(const _0x48ec55 of this['editor']['model']['createRangeIn'](_0x228f1b)['getWalker']({'singleCharacters':!0x0})){const _0x11ab83=this['_getVidAttributeName'](_0x48ec55),_0x192101='elementEnd'==_0x48ec55['type']?_0x48ec55['previousPosition']['path']['slice'](0x0,-0x1):_0x48ec55['previousPosition']['path'],_0x22058f=_0x174086['getNodeByPath'](_0x192101);_0x22058f['getAttribute'](_0x11ab83)>0x0||_0x22058f['_setAttribute'](_0x11ab83,_0x1b777e[_0x14065b++]);}for(const [_0xc98ab6,_0x430e26]of _0x228f1b['markers'])_0xc98ab6['startsWith']('revision:')||this['_markers']['set'](_0xc98ab6,_0x430e26);}const {roots:_0x5af7ec}=this['_savedMetaData']['get'](_0x2cd645['fromVersion']),{roots:_0xdf1962}=this['_savedMetaData']['get'](_0x2cd645['toVersion']),_0x47c24a=x(_0x5af7ec['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x47c24a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x47c24a,Number['NEGATIVE_INFINITY']));const _0x2fc013=x(_0xdf1962['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x2fc013),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2fc013));const _0x4e786f=Array['from'](this['_diffRoots'])['map'](([_0x2cbd4b,_0xcf90d9])=>[_0x2cbd4b,x(_0xcf90d9)]);this['_saveMetaData'](this['_lastTo'],_0x4e786f,this['_markers'],_0x23a84f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xc42ffc,_0x219b8c,_0x8529d0,_0x330f9e){const _0x398a38=new Map(_0x219b8c),_0x3e5e51=new Map(_0x1f8919(_0x330f9e)),_0x7d65a4=new Map();for(const [_0x4fd83b,_0x23fa09]of _0x8529d0)_0x7d65a4['set'](_0x4fd83b,{'start':_0x23fa09['start']['clone'](),'end':_0x23fa09['end']['clone'](),'rootName':_0x23fa09['root']['rootName']});this['_savedMetaData']['set'](_0xc42ffc,{'roots':_0x398a38,'markers':_0x7d65a4,'rootsAttributes':_0x3e5e51});}['_removeMetaData'](_0x319eeb){this['_savedMetaData']['delete'](_0x319eeb);}['_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'](_0x15a9fb,_0x35305a=null){let _0xcd2dfd=null;_0x15a9fb['is']('documentFragment')||(_0xcd2dfd=new _0x41b3fc(_0x15a9fb['name'],{'vid_start':null===_0x35305a?this['_revisionId']++:_0x35305a++}));const _0x54ad2e=[];for(const _0x1debb of _0x15a9fb['getChildren']())if(_0x1debb['is']('element')){_0x54ad2e['push'](this['_makeIdsRoot'](_0x1debb,_0x35305a));const _0x181b0f=_0x54ad2e[_0x54ad2e['length']-0x1];null!==_0x35305a&&(_0x35305a=_0x181b0f['is']('element','$text')?_0x181b0f['getAttribute']('vid')+0x1:_0x181b0f['getAttribute']('vid_end')+0x1);}else{for(let _0x103b0e=0x0;_0x103b0e<_0x1debb['offsetSize'];_0x103b0e++)_0x54ad2e['push'](new _0x41b3fc('$text',{'vid':null===_0x35305a?this['_revisionId']++:_0x35305a++}));}if(_0x15a9fb['is']('documentFragment')){const _0x35931b=N(_0x15a9fb['rootName']);return _0x35931b['_insertChild'](0x0,_0x54ad2e),_0x35931b;}return _0xcd2dfd['_setAttribute']('vid_end',null===_0x35305a?this['_revisionId']++:_0x35305a++),_0xcd2dfd['_insertChild'](0x0,_0x54ad2e),_0xcd2dfd;}['_calculateMetaData'](_0x10783e,_0x1119c8,_0xc506aa){this['_reset']();const {roots:_0x35aaab,markers:_0x4bd2b7,rootsAttributes:_0x5b9d8a}=this['_savedMetaData']['get'](_0x10783e);this['_baseRoots']=new Map(_0x35aaab),this['_baseRootsAttributes']=new Map(_0x1f8919(_0x5b9d8a));for(const [_0x40baad,_0x15bd73]of this['_baseRoots'])if('$graveyard'!==_0x40baad&&(this['_diffRoots']['set'](_0x40baad,x(_0x15bd73)),this['_diffRootsAttributes']=new Map(_0x1f8919(_0x5b9d8a)),_0xc506aa)){const _0x2e38d8=this['_revisionId'];this['_idsRoots']['set'](_0x40baad,this['_makeIdsRoot'](_0x15bd73)),this['_baseIdsRoots']['set'](_0x40baad,this['_makeIdsRoot'](_0x15bd73,_0x2e38d8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0xc506aa&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2b4bfe,_0x4e3ba0]of _0x4bd2b7){const _0x126ea8=this['_baseRoots']['get'](_0x4e3ba0['rootName']),_0x4044e4=this['_diffRoots']['get'](_0x4e3ba0['rootName']),_0x41f315=new _0x1340e0(this['_fixPosition'](_0x4e3ba0['start'],_0x126ea8),this['_fixPosition'](_0x4e3ba0['end'],_0x126ea8)),_0x5604a0=this['_fixRange'](_0x41f315,_0x4044e4);_0x126ea8['markers']['set'](_0x2b4bfe,_0x41f315),this['_markers']['set'](_0x2b4bfe,_0x5604a0);}this['_applyOperations'](_0x10783e,_0x1119c8,_0xc506aa);}['_applyOperations'](_0x9a88de,_0x426643,_0x5774b3){for(const _0x2eaf97 of this['source']['getOperations'](_0x9a88de,_0x426643))this['_handleOperation'](_0x2eaf97,_0x5774b3);for(const _0x3eaaa7 of this['_diffRoots']['values']())_0x3eaaa7['markers']['clear']();for(const [_0x10c58c,_0x416278]of this['_markers']){this['_diffRoots']['get'](_0x416278['root']['rootName'])['markers']['set'](_0x10c58c,_0x416278['clone']());}const _0x712e84=new Map(),_0x5ac358=new Map();for(const [_0x23a541,_0x26715b]of this['_diffRoots'])_0x712e84['set'](_0x23a541,x(_0x26715b)),_0x5ac358['set'](_0x23a541,this['_diffRootsAttributes']['get'](_0x23a541));this['_saveMetaData'](_0x426643,_0x712e84,this['_markers'],_0x5ac358);}['_getPreviousFrom'](_0x545838){const _0x20d274=Array['from'](this['_savedMetaData']['keys']());_0x20d274['sort']((_0x51af08,_0x40ae93)=>_0x51af08-_0x40ae93),_0x20d274['reverse']();for(const _0x22fa2b of _0x20d274)if(_0x22fa2b<_0x545838)return _0x22fa2b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4dfd43,_0xc1f0f4){const _0xad64ba=Array['from'](_0xc1f0f4['markers'])['map'](([_0x2f2439,_0x253b0a])=>[_0x2f2439,this['_fixRange'](_0x253b0a,_0x4dfd43)]);_0x4dfd43['markers']=new Map(_0xad64ba);}['_transformMarkers'](_0x7db8a3){for(const _0x5378fe of this['_markers']['values']()){const _0x22da49=_0x5378fe['getTransformedByOperation'](_0x7db8a3),_0x13526b=_0x1340e0['_createFromRanges'](_0x22da49);_0x5378fe['start']=_0x13526b['start'],_0x5378fe['end']=_0x13526b['end'];}}['_handleOperation'](_0x2770f6,_0x4c9bf1){if('addRoot'!=_0x2770f6['type']&&'detachRoot'!=_0x2770f6['type']){if('insert'==_0x2770f6['type']){const _0x4441ae=_0x2770f6['position']['root']['rootName'];this['_diffRoots']['has'](_0x4441ae)||(this['_diffRoots']['set'](_0x4441ae,N(_0x4441ae,!0x0)),this['_diffRootsAttributes']['set'](_0x4441ae,{}),_0x4c9bf1&&this['_idsRoots']['set'](_0x4441ae,N(_0x4441ae,!0x0)));}else{if('addRootAttribute'==_0x2770f6['type']||'removeRootAttribute'==_0x2770f6['type']||'changeRootAttribute'==_0x2770f6['type'])return void this['_handleRootAttributeOperation'](_0x2770f6);'marker'==_0x2770f6['type']&&this['_handleMarkerOperation'](_0x2770f6);}if('marker'!==_0x2770f6['type']){const _0x45b7f5=this['_cloneOperation'](_0x2770f6,this['_diffRoots']);_0x45b7f5['_execute'](),this['_transformMarkers'](_0x45b7f5);}if(_0x4c9bf1)switch(_0x2770f6['type']){case'insert':this['_handleInsertOperation'](_0x2770f6);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2770f6);break;case'merge':this['_handleMergeOperation'](_0x2770f6);break;case'split':this['_handleSplitOperation'](_0x2770f6);}}else this['_handleRootOperation'](_0x2770f6,_0x4c9bf1);}['_cloneOperation'](_0x420a71,_0x2e502b){const _0x582490=_0x420a71['clone']();return _0x582490['_authorId']=_0x420a71['_authorId'],this['_fixOperation'](_0x582490,_0x2e502b),_0x582490;}['_getBaseVids'](_0x5eb001){return _0x5eb001['map'](_0x1c2b2b=>{const _0x21ad5e=this['_getVidAttributeName'](_0x1c2b2b);return Number(_0x1c2b2b['item']['getAttribute'](_0x21ad5e));});}['_generateTape'](_0x5792b7,_0x37b2c8){if(_0x5792b7['is']('element','$text'))_0x37b2c8['push']({'item':_0x5792b7,'type':'text'});else{_0x5792b7['is']('element')&&_0x37b2c8['push']({'item':_0x5792b7,'type':'elementStart'});for(const _0xe51e2e of _0x5792b7['getChildren']())this['_generateTape'](_0xe51e2e,_0x37b2c8);_0x5792b7['is']('element')&&_0x37b2c8['push']({'item':_0x5792b7,'type':'elementEnd'});}return _0x37b2c8;}['_getState'](){const _0x27f4f3=new Map(this['_touched']),_0x34d86f=new Map(_0x27f4f3),_0x2429fc=new Map(),_0x4fdbdc={'insertions':{},'deletions':{}},_0x1215ea={'insertions':{},'deletions':{}},_0x413eae=new Map(),_0x3b4734=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3b4734['delete']('$graveyard');for(const _0x1cc3b5 of _0x3b4734){const _0x302691=this['_diffRoots']['get'](_0x1cc3b5)||N(_0x1cc3b5,!0x1),_0x1b6ff5=this['_baseRoots']['get'](_0x1cc3b5)||N(_0x1cc3b5,!0x1);_0x302691['isAttached']()||_0x1b6ff5['isAttached']()?(_0x4fdbdc['insertions'][_0x1cc3b5]=x(_0x302691),_0x4fdbdc['deletions'][_0x1cc3b5]=x(_0x1b6ff5),this['_copyMarkers'](_0x4fdbdc['deletions'][_0x1cc3b5],_0x1b6ff5),this['_copyMarkers'](_0x4fdbdc['insertions'][_0x1cc3b5],_0x302691),_0x1215ea['insertions'][_0x1cc3b5]=this['_generateTape'](this['_idsRoots']['get'](_0x1cc3b5),[]),_0x1215ea['deletions'][_0x1cc3b5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1cc3b5)||N(_0x1cc3b5,!0x1),[])):_0x3b4734['delete'](_0x1cc3b5);}for(const _0x333a05 of _0x3b4734){const _0x5eb207=_0x1215ea['insertions'][_0x333a05];for(const _0x15f605 of _0x5eb207){const _0x4f5d1e=this['_getVidAttributeName'](_0x15f605),_0x47926d=_0x15f605['item']['getAttribute'](_0x4f5d1e);_0x34d86f['delete'](_0x47926d),_0x47926d>=this['_startingRevisionId']&&_0x2429fc['set'](_0x47926d,_0x27f4f3['get'](_0x47926d));}}for(const _0x47bc7f of _0x3b4734){const _0x18d397=_0x1215ea['insertions'][_0x47bc7f],_0x3b2479=this['_getBaseVids'](_0x1215ea['deletions'][_0x47bc7f]);let _0x2b654c=0x0;for(const _0x5177dd of _0x18d397){const _0x45f88f=this['_getVidAttributeName'](_0x5177dd),_0x416b6f=_0x5177dd['item']['getAttribute'](_0x45f88f);if(!_0x2429fc['has'](_0x416b6f)&&!_0x413eae['has'](_0x416b6f)){if(_0x34d86f['has'](_0x416b6f))_0x2b654c++;else{if(_0x416b6f!=_0x3b2479[_0x2b654c]){const _0x1d19e1=_0x27f4f3['get'](_0x416b6f)||_0x27f4f3['get'](_0x3b2479[_0x2b654c]);for(;_0x416b6f!=_0x3b2479[_0x2b654c];)_0x34d86f['has'](_0x3b2479[_0x2b654c])||(_0x413eae['set'](_0x3b2479[_0x2b654c],_0x1d19e1),_0x27f4f3['set'](_0x3b2479[_0x2b654c],_0x1d19e1)),_0x2b654c++;}_0x2b654c++;}}}}for(const _0x270e43 of _0x3b4734){const _0xa2161a=_0x1215ea['insertions'][_0x270e43];for(const _0x38c43e of _0xa2161a){const _0x3e8895=this['_getVidAttributeName'](_0x38c43e),_0x5be0d7=_0x38c43e['item']['getAttribute'](_0x3e8895);if(_0x413eae['has'](_0x5be0d7)){const _0x27d85f=_0x413eae['get'](_0x5be0d7);_0x34d86f['has'](_0x5be0d7)||_0x34d86f['set'](_0x5be0d7,{..._0x27d85f}),_0x2429fc['set'](_0x5be0d7,{..._0x27d85f});}}}for(const _0x2f0011 of _0x34d86f['keys']())_0x2f0011>=this['_startingRevisionId']&&_0x34d86f['delete'](_0x2f0011);const _0x35491f=new Map();for(const _0x5eb735 of _0x3b4734){let _0x54a4e0=_0x1215ea['insertions'][_0x5eb735];for(const _0x4c9882 of _0x54a4e0)if(_0x4c9882['item']['is']('element','tableCell')){const _0xa5b556=this['_getVidAttributeName'](_0x4c9882),_0x417b34=_0x4c9882['item']['getAttribute'](_0xa5b556);if(_0x2429fc['has'](_0x417b34)){const _0x7678b5=_0x4c9882['item']['parent']['parent']['getAttribute']('vid_start'),_0x2ab833=_0x35491f['get'](_0x7678b5)||new Set();_0x2ab833['add'](_0x2429fc['get'](_0x417b34)['userId']),_0x35491f['set'](_0x7678b5,_0x2ab833);}}_0x54a4e0=_0x1215ea['deletions'][_0x5eb735];for(const _0x5911ea of _0x54a4e0)if(_0x5911ea['item']['is']('element','tableCell')){const _0x1c6819=this['_getVidAttributeName'](_0x5911ea),_0x2f6f36=_0x5911ea['item']['getAttribute'](_0x1c6819);if(_0x34d86f['has'](_0x2f6f36)){const _0x56f34a=_0x5911ea['item']['parent']['parent']['getAttribute']('vid_start'),_0x2ccfb6=_0x35491f['get'](_0x56f34a)||new Set();_0x2ccfb6['add'](_0x34d86f['get'](_0x2f6f36)['userId']),_0x35491f['set'](_0x56f34a,_0x2ccfb6);}}for(const _0x52e39f of _0x35491f['keys']())(_0x2429fc['has'](_0x52e39f)||_0x34d86f['has'](_0x52e39f))&&_0x35491f['delete'](_0x52e39f);}for(const _0x40a6cf of _0x3b4734){const _0x5a464a=_0x1215ea['insertions'][_0x40a6cf];let _0x22c56f=null,_0x1a9d48=null;for(const _0x2922b2 of _0x5a464a){const _0x16a77e=this['_getVidAttributeName'](_0x2922b2),_0x38fc20=_0x2922b2['item']['getAttribute'](_0x16a77e),_0x238ad7=_0x35491f['get'](_0x38fc20);_0x238ad7&&'elementStart'==_0x2922b2['type']&&(_0x22c56f=Array['from'](_0x238ad7)[0x0],_0x1a9d48=_0x2922b2['item']['getAttribute']('vid_end')),_0x22c56f&&(_0x34d86f['set'](_0x38fc20,{'userId':_0x22c56f}),_0x2429fc['set'](_0x38fc20,{'userId':_0x22c56f})),_0x38fc20==_0x1a9d48&&(_0x22c56f=null,_0x1a9d48=null);}}const _0x2f5711={},_0x59467e=new Set();for(const _0x34d2b5 of _0x3b4734){const _0x50ebb9=_0x4fdbdc['deletions'][_0x34d2b5],_0x5535bd=_0x4fdbdc['insertions'][_0x34d2b5];for(const {userId:_0x255a50}of this['_touchedMarkers']['values']())null!==_0x255a50&&_0x59467e['add'](_0x255a50);for(const {userId:_0x3f9672}of this['_touchedRoots']['values']())null!==_0x3f9672&&_0x59467e['add'](_0x3f9672);this['_markChanges'](_0x5535bd,_0x1215ea['insertions'][_0x34d2b5],_0x2429fc,'insertion',_0x59467e),this['_markChanges'](_0x50ebb9,_0x1215ea['deletions'][_0x34d2b5],_0x34d86f,'deletion',_0x59467e),_0x2f5711[_0x34d2b5]={'insertions':this['_prepareViewToSave'](_0x5535bd),'deletions':this['_prepareViewToSave'](_0x50ebb9),'attachChange':this['_touchedRoots']['get'](_0x34d2b5)||null,'attributesBefore':_0x1f8919(this['_baseRootsAttributes']['get'](_0x34d2b5))||{},'attributesAfter':_0x1f8919(this['_diffRootsAttributes']['get'](_0x34d2b5))};}return{'diffData':_0x2f5711,'authorsIds':Array['from'](_0x59467e)};}['_processRootBeforeSave'](_0x2c7b02){for(const [,_0x13e4a5]of _0x2c7b02['markers']){const _0xca49b5=_0x13e4a5['start']['getAncestors']()['filter'](_0xfdcd8c=>'tableCell'==_0xfdcd8c['name']);for(const _0x46a9a1 of _0xca49b5)0x1==_0x46a9a1['childCount']&&_0x46a9a1['getChild'](0x0)['is']('element','paragraph')&&_0x46a9a1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x13eb7a){this['_processRootBeforeSave'](_0x13eb7a);const _0x237f6e=this['editor']['data']['toView'](_0x13eb7a,{}),_0x1e949f=Array['from'](_0x237f6e['getChildren']())['map'](_0x4c151f=>this['_getViewJson'](_0x4c151f));return JSON['stringify'](_0x1e949f);}['_getViewJson'](_0x1d027){if(_0x1d027['is']('$text'))return _0x1d027['data'];{const _0x2d7ed3=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xe685e4=_0x1d027,_0x14ded4=this['editor']['data']['htmlProcessor']['domConverter'],_0x1f4bc5={'type':_0x2d7ed3['_getTypeCharForViewElement'](_0xe685e4),'name':_0xe685e4['name'],'attributes':Array['from'](_0xe685e4['getAttributes']()),'children':Array['from'](_0xe685e4['getChildren']())['map'](_0xa6f18b=>this['_getViewJson'](_0xa6f18b))};if(_0x1d027['is']('uiElement')&&'$comment'!=_0x1d027['name']){const _0x59560e=_0x1d027['render'](_0x14ded4['domDocument'],_0x14ded4);_0x1f4bc5['children']['push'](_0x59560e['outerHTML']);}else{if(_0x1d027['is']('rawElement')){const _0x353e65=_0x14ded4['domDocument']['createElement'](_0xe685e4['name']);_0x1d027['render'](_0x353e65,_0x14ded4),_0x1f4bc5['children']['push'](_0x353e65['innerHTML']);}}const _0x4bd659=Array['from'](_0xe685e4['getCustomProperties']());_0x4bd659['length']>0x0&&(_0x1f4bc5['customProperties']=_0x4bd659);const _0x52dbe5=_0xe685e4['getFillerOffset']();return null!==_0x52dbe5&&(_0x1f4bc5['fillerOffset']=_0x52dbe5),_0x1f4bc5;}}['_markChanges'](_0x24e41e,_0x5917e0,_0x1a0e1c,_0x196d27,_0x4e6243){let _0x221041=null,_0x228932=null,_0x1e94fe=0x0;const _0x32c6d9=this['editor']['model'];for(let _0x5a817b=0x0;_0x5a817b<_0x5917e0['length'];_0x5a817b++){const _0x404e77=this['_getVidAttributeName'](_0x5917e0[_0x5a817b]),_0xc9db45=_0x5917e0[_0x5a817b]['item']['getAttribute'](_0x404e77),_0x3a442d=_0x1a0e1c['get'](_0xc9db45),_0x1feecb=_0x5a817b==_0x5917e0['length']-0x1;(!_0x221041&&_0x3a442d&&(_0x221041=_0x3a442d,_0x228932=_0x5917e0[_0x5a817b]),_0x221041&&(!_0x3a442d||_0x3a442d['userId']!=_0x221041['userId']))&&(_0x44e94a(_0x3a442d,P(_0x228932,_0x24e41e,_0x32c6d9),P(_0x5917e0[_0x5a817b],_0x24e41e,_0x32c6d9)),_0x221041=_0x3a442d||null,_0x228932=_0x3a442d?_0x5917e0[_0x5a817b]:null),_0x221041&&_0x1feecb&&_0x44e94a(_0x3a442d,P(_0x228932,_0x24e41e,_0x32c6d9),V(_0x5917e0[_0x5a817b],_0x24e41e,_0x32c6d9));}function _0x44e94a(_0x5862e7,_0x1cc6cf,_0x33d8b0){const _0x2cf9af=_0x221041['userId'],_0x514910='revision:'+_0x196d27+':'+_0x2cf9af+':'+_0x1e94fe++,_0x5f377a=_0x32c6d9['createRange'](_0x1cc6cf,_0x33d8b0);_0x24e41e['markers']['set'](_0x514910,_0x5f377a),null!==_0x2cf9af&&_0x4e6243['add'](_0x2cf9af);}}['_getVidAttributeName'](_0x291573){switch(_0x291573['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x536d73,_0x248119){_0x536d73['baseVersion']=null;for(const _0x1e2eee in _0x536d73){const _0x5dbfd2=_0x536d73[_0x1e2eee];if(_0x5dbfd2 instanceof _0x4d7936){const _0x123d72=_0x248119['get'](_0x5dbfd2['root']['rootName']);_0x536d73[_0x1e2eee]=this['_fixPosition'](_0x5dbfd2,_0x123d72);}if(_0x5dbfd2 instanceof _0x1340e0){const _0x327092=_0x248119['get'](_0x5dbfd2['root']['rootName']);_0x536d73[_0x1e2eee]=this['_fixRange'](_0x5dbfd2,_0x327092);}'root'===_0x1e2eee&&(_0x536d73['root']=_0x248119['get'](_0x536d73['root']['rootName']));}}['_fixRange'](_0x4b7f36,_0x3d7e09){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4b7f36['start'],_0x3d7e09),this['_fixPosition'](_0x4b7f36['end'],_0x3d7e09));}['_fixPosition'](_0x3fadf3,_0x7191c0){return this['editor']['model']['createPositionFromPath'](_0x7191c0,_0x3fadf3['path'],_0x3fadf3['stickiness']);}['_handleInsertOperation'](_0x16ede6){const _0x1267fa=this['_idsRoots']['get'](_0x16ede6['position']['root']['rootName']),_0x2eea21=this['_fixPosition'](_0x16ede6['position'],_0x1267fa),_0x195032=null===_0x16ede6['_authorId']?null:_0x16ede6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfc99bd=_0x2eea21['parent'],_0x15626e=this['_revisionId'],_0x196494=[];for(const _0xac6d45 of _0x16ede6['nodes'])if(_0xac6d45['is']('element'))_0x196494['push'](this['_makeIdsRoot'](_0xac6d45));else{for(let _0x5196a3=0x0;_0x5196a3<_0xac6d45['offsetSize'];_0x5196a3++)_0x196494['push'](new _0x41b3fc('$text',{'vid':this['_revisionId']++}));}const _0x251a27=this['_revisionId'];for(let _0x18a33f=_0x15626e;_0x18a33f<_0x251a27;_0x18a33f++)this['_touched']['set'](_0x18a33f,{'userId':_0x195032});_0xfc99bd['_insertChild'](_0x2eea21['offset'],_0x196494);}['_handleMoveOperation'](_0x4eaec4){(_0x4eaec4=this['_cloneOperation'](_0x4eaec4,this['_idsRoots']))['_execute']();const _0x53c951=null===_0x4eaec4['_authorId']?null:_0x4eaec4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51ea72=_0x4eaec4['getMovedRangeStart'](),_0x596809=_0x51ea72['parent'],_0x418d3f=_0x51ea72['offset'];!function _0x337176(_0x1ef299,_0x593023,_0x301b1a,_0x2e5aa4){for(let _0x57f2cd=_0x301b1a;_0x57f2cd<_0x2e5aa4;_0x57f2cd++){const _0x91ec69=_0x593023['getChild'](_0x57f2cd);_0x91ec69['is']('element','$text')?_0x1ef299['set'](_0x91ec69['getAttribute']('vid'),{'userId':_0x53c951}):(_0x1ef299['set'](_0x91ec69['getAttribute']('vid_start'),{'userId':_0x53c951}),_0x337176(_0x1ef299,_0x91ec69,0x0,_0x91ec69['childCount']),_0x1ef299['set'](_0x91ec69['getAttribute']('vid_end'),{'userId':_0x53c951}));}}(this['_touched'],_0x596809,_0x418d3f,_0x418d3f+_0x4eaec4['howMany']);}['_handleMergeOperation'](_0x55b435){const _0x3d0619=null===(_0x55b435=this['_cloneOperation'](_0x55b435,this['_idsRoots']))['_authorId']?null:_0x55b435['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x541e9b=_0x55b435['targetPosition']['parent'],_0x19c578=_0x55b435['sourcePosition']['parent'],_0x318c22=_0x541e9b['getAttribute']('vid_end'),_0x362471=_0x19c578['getAttribute']('vid_start');_0x541e9b['_setAttribute']('vid_end',_0x19c578['getAttribute']('vid_end')),_0x19c578['_setAttribute']('vid_end',_0x318c22),this['_touched']['set'](_0x362471,{'userId':_0x3d0619}),this['_touched']['set'](_0x318c22,{'userId':_0x3d0619}),_0x55b435['_execute']();}['_handleSplitOperation'](_0x2e6ca3){const _0x3dee61=null===(_0x2e6ca3=this['_cloneOperation'](_0x2e6ca3,this['_idsRoots']))['_authorId']?null:_0x2e6ca3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x233f44=_0x2e6ca3['graveyardPosition'],_0x4b2d42=_0x2e6ca3['splitPosition']['parent'];_0x2e6ca3['_execute']();const _0x973548=_0x4b2d42['getAttribute']('vid_end'),_0x2536ad=_0x2e6ca3['insertionPosition']['nodeAfter'];if(_0x233f44){const _0x4ef924=_0x2536ad['getAttribute']('vid_end'),_0x5ec808=_0x4b2d42['getAttribute']('vid_end');_0x4b2d42['_setAttribute']('vid_end',_0x4ef924),_0x2536ad['_setAttribute']('vid_end',_0x5ec808),this['_touched']['set'](_0x4b2d42['getAttribute']('vid_end'),{'userId':_0x3dee61}),this['_touched']['set'](_0x2536ad['getAttribute']('vid_start'),{'userId':_0x3dee61});}else{const _0x67aa64=this['_revisionId']++,_0x117cf2=this['_revisionId']++;_0x4b2d42['_setAttribute']('vid_end',_0x67aa64),_0x2536ad['_setAttribute']('vid_start',_0x117cf2),_0x2536ad['_setAttribute']('vid_end',_0x973548),this['_touched']['set'](_0x67aa64,{'userId':_0x3dee61}),this['_touched']['set'](_0x117cf2,{'userId':_0x3dee61});}}['_handleMarkerOperation'](_0x415e82){if(!_0x415e82['affectsData'])return;const _0x2ffd47=(_0x415e82=this['_cloneOperation'](_0x415e82,this['_diffRoots']))['oldRange']?_0x415e82['oldRange']['root']:null,_0x147c69=_0x415e82['newRange']?_0x415e82['newRange']['root']:null;_0x2ffd47&&this['_markers']['delete'](_0x415e82['name']),_0x147c69&&this['_markers']['set'](_0x415e82['name'],_0x415e82['newRange']['clone']());const _0x44bdc5=null===_0x415e82['_authorId']?null:_0x415e82['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x257c9b=_0x415e82['name'];if(!this['_touchedMarkers']['has'](_0x257c9b))return void this['_touchedMarkers']['set'](_0x257c9b,{'range':_0x415e82['oldRange'],'userId':_0x44bdc5});const _0xfd2de5=this['_touchedMarkers']['get'](_0x257c9b),_0x49af89=_0xfd2de5['range'],_0x5a1855=_0x415e82['newRange'];null==_0x49af89&&null==_0x5a1855||_0x49af89&&_0x5a1855&&_0x49af89['isEqual'](_0x5a1855)?this['_touchedMarkers']['delete'](_0x415e82['name']):_0xfd2de5['userId']=_0x44bdc5;}['_handleRootOperation'](_0xf7f694,_0x1b5616){this['_diffRoots']['has'](_0xf7f694['rootName'])?this['_diffRoots']['get'](_0xf7f694['rootName'])['_isAttached']=_0xf7f694['isAdd']:(this['_diffRoots']['set'](_0xf7f694['rootName'],N(_0xf7f694['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xf7f694['rootName'],{}),_0x1b5616&&this['_idsRoots']['set'](_0xf7f694['rootName'],N(_0xf7f694['rootName'],!0x0)));const _0x15b85a=null===_0xf7f694['_authorId']?null:_0xf7f694['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7378f9=this['_touchedRoots']['get'](_0xf7f694['rootName']);_0x7378f9&&_0x7378f9['userId']===_0x15b85a?this['_touchedRoots']['delete'](_0xf7f694['rootName']):this['_touchedRoots']['set'](_0xf7f694['rootName'],{'userId':_0x15b85a,'isAttached':_0xf7f694['isAdd']});}['_handleRootAttributeOperation'](_0x4bdadc){const _0x25a935=this['_diffRootsAttributes']['get'](_0x4bdadc['root']['rootName']);null===_0x4bdadc['newValue']?delete _0x25a935[_0x4bdadc['key']]:_0x25a935[_0x4bdadc['key']]=_0x4bdadc['newValue'];}}function x(_0x60d302){const _0x5de043=N(_0x60d302['rootName'],_0x60d302['isAttached']());for(const _0x224ae7 of _0x60d302['getChildren']()){const _0x253db7=_0x224ae7['_clone'](!0x0);_0x5de043['_appendChild'](_0x253db7);}return _0x5de043;}function N(_0x22a97b,_0x56fc97=!0x0){const _0x5af5dc=new _0x1753c2();return _0x5af5dc['rootName']=_0x22a97b,_0x5af5dc['_isAttached']=_0x56fc97,_0x5af5dc['isAttached']=()=>_0x5af5dc['_isAttached'],_0x5af5dc;}function P(_0x1158f1,_0x4bf6fa,_0xe5eb15){const _0x29715e='elementEnd'==_0x1158f1['type']?_0xe5eb15['createPositionAt'](_0x1158f1['item'],'end'):_0xe5eb15['createPositionBefore'](_0x1158f1['item']);return _0xe5eb15['createPositionFromPath'](_0x4bf6fa,_0x29715e['path'],_0x29715e['stickiness']);}function V(_0x4a1d91,_0x2d0985,_0x45fbe3){const _0x4087a3='elementStart'==_0x4a1d91['type']?_0x45fbe3['createPositionAt'](_0x4a1d91['item'],0x0):_0x45fbe3['createPositionAfter'](_0x4a1d91['item']);return _0x45fbe3['createPositionFromPath'](_0x2d0985,_0x4087a3['path'],_0x4087a3['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x1a438a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x15f47f){super(),this['id']=_0x15f47f['id']||_0x3bb1d9(),this['author']=_0x15f47f['author'],this['type']=_0x15f47f['type'],this['data']=_0x15f47f['data']||{},this['rootName']=_0x15f47f['rootName'],this['set']('createdAt',_0x15f47f['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(_0x11a237,_0x1ca45c){this['newRevisionId']=_0x11a237,this['oldRevisionId']=_0x1ca45c,this['changes']=new _0x40f1c6();}['_setChanges'](_0x2af9cf){for(const _0x134d72 of _0x2af9cf)this['changes']['add'](_0x134d72);}}class u extends _0x2bce4d{['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[_0x729304,_0x27a1d9,S,$];}constructor(_0x246c8e){super(_0x246c8e),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',(_0x51861e,_0x49cc40,_0x46313a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x28d356=>{for(const _0x520c92 of this['editor']['editing']['view']['document']['roots'])_0x46313a?_0x28d356['removeClass']('ck-editor__editable__overlay',_0x520c92):_0x28d356['addClass']('ck-editor__editable__overlay',_0x520c92);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x16b803=>null!==_0x16b803),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x18f0ff,_0x336276,_0x3f60fa)=>_0x18f0ff&&_0x3f60fa?_0x336276['changes']['getIndex'](_0x3f60fa):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x6a06b7,_0xada702)=>_0x6a06b7?_0xada702['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x27a1d9);}['init'](){const _0x41ff91=this['editor'],_0x52e51e=new rt(_0x41ff91,{'direction':'backward'}),_0x584175=new rt(_0x41ff91,{'direction':'forward'});(_0x41ff91['commands']['add']('showPreviousChange',_0x52e51e),_0x41ff91['commands']['add']('showNextChange',_0x584175),_0x41ff91['commands']['add']('restoreRevision',new nt(_0x41ff91)),this['on']('change:numberOfChanges',()=>{_0x52e51e['refresh'](),_0x584175['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x41ff91['enableReadOnlyMode']('revision-viewer'),_0x41ff91['plugins']['has']('WidgetToolbarRepository'))&&_0x41ff91['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x115452){return await this['_utils']['loadRevisionData'](_0x115452,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x115452);}async['getRevisionRootsAttributes'](_0x147cc5){return await this['_utils']['loadRevisionData'](_0x147cc5,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x147cc5);}async['compare'](_0x2e6093,_0x2042e1,_0x1f132f=!0x1){if(!this['isEnabled'])return;const _0x1ce66e=this['diff'],_0x517d6d=this['repository'],_0xaac944='string'==typeof _0x2e6093?_0x517d6d['getRevision'](_0x2e6093):_0x2e6093,_0xf4a10a='string'==typeof _0x2042e1?_0x517d6d['getRevision'](_0x2042e1):_0x2042e1,_0x267f20=_0xaac944['id'],_0x3b7b3c=_0xf4a10a?_0xf4a10a['id']:null;if(!_0x1f132f&&this['diff']&&this['diff']['newRevisionId']===_0x267f20&&this['diff']['oldRevisionId']===_0x3b7b3c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x267f20,_0x3b7b3c);const _0x1c378c=this['_getRevisionsRange'](_0xaac944,_0xf4a10a,!0x0)['map'](_0x23fc5c=>this['_utils']['loadRevisionData'](_0x23fc5c,this['adapter']));return _0x1c378c['push'](new Promise(_0x48bdc1=>{setTimeout(_0x48bdc1,0x14);})),Promise['all'](_0x1c378c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x15b60f=this['_getDiff'](_0x267f20,_0x3b7b3c);for(const _0x5021dd of _0x15b60f['changes'])this['_changeIdToChange']['set'](_0x5021dd['id'],_0x5021dd);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x785625=>{for(const _0xf3ae99 of this['editor']['model']['document']['getRootNames']())_0x785625['detachRoot'](_0xf3ae99);for(const _0x5834ae of Object['keys'](_0x15b60f['model'])){const _0x4f3601=_0x785625['addRoot'](_0x5834ae);for(const _0x4ae0a9 of Object['keys'](_0x15b60f['attributes'][_0x5834ae]))_0x785625['setAttribute'](_0x4ae0a9,_0x15b60f['attributes'][_0x5834ae][_0x4ae0a9],_0x4f3601);_0x785625['insert'](_0x15b60f['model'][_0x5834ae],_0x4f3601,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x15b60f['changes'])),this['isReady']=!0x0;})['catch'](_0x29bf3d=>{console['error'](_0x29bf3d),this['_cleanUp'](),_0x1ce66e&&(this['diff']=_0x1ce66e),this['isReady']=!0x0;});}['addRevisionData'](_0x514de6,_0x3de9c0){const _0x405913=this['repository']['createRevision'](_0x514de6);return _0x405913['on']('_update',(_0x445e45,_0x1bab58,_0x414aeb)=>_0x3de9c0(_0x1bab58,_0x414aeb,_0x405913)),this['repository']['addRevision'](_0x405913),_0x405913;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4986c9=>{for(const _0x4fd223 of this['editor']['model']['document']['getRootNames']())_0x4986c9['detachRoot'](_0x4fd223);});}['_sortAndFilterDiffChanges'](_0x187740){const _0x454531=[],_0xbc2a58=new Map();for(const _0x57007e of this['editor']['model']['document']['getRootNames']()){const _0x35b892=this['editor']['editing']['view']['getDomRoot'](_0x57007e);if(!_0x35b892)continue;const _0x14ef1a=_0x35b892['getClientRects']()['item'](0x0);_0x14ef1a&&(_0x454531['push'](_0x57007e),_0xbc2a58['set'](_0x57007e,_0x14ef1a));}return _0x454531['sort']((_0x341fff,_0x5804e3)=>{const _0x29b491=_0xbc2a58['get'](_0x341fff),_0x361c8e=_0xbc2a58['get'](_0x5804e3);return _0x29b491['y']-_0x361c8e['y']||_0x29b491['x']-_0x361c8e['x'];}),(_0x187740=_0x187740['filter'](_0x4f5b95=>_0x454531['includes'](_0x4f5b95['rootName'])))['sort']((_0x271baf,_0x363f19)=>_0x454531['indexOf'](_0x271baf['rootName'])-_0x454531['indexOf'](_0x363f19['rootName'])),_0x187740;}['_makeTape'](_0x4ada08){const _0x7d74e1=Array['from'](_0x4ada08['markers'])['filter'](([_0xeeb07,_0x58d402])=>_0xeeb07['startsWith']('revision:')&&!_0x58d402['isCollapsed']),_0xfcfb65=Array['from'](this['editor']['model']['createRangeIn'](_0x4ada08)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x7d74e1['length'])for(const _0x14ca88 of _0xfcfb65){const [_0x3bd716,_0x616f2a]=_0x7d74e1[0x0],[,_0x37ace3,_0x2992bf]=_0x3bd716['split'](':');if(_0x616f2a['end']['isEqual'](_0x14ca88['nextPosition'])&&_0x7d74e1['shift'](),(_0x14ca88['previousPosition']['isEqual'](_0x616f2a['start'])||_0x14ca88['previousPosition']['isAfter'](_0x616f2a['start']))&&('insertion'==_0x37ace3?_0x14ca88['isAdded']={'userId':_0x2992bf}:'deletion'==_0x37ace3&&(_0x14ca88['isRemoved']={'userId':_0x2992bf})),0x0==_0x7d74e1['length'])break;}return _0xfcfb65;}['_refreshStartEndIndex'](_0x3d0ea0){const _0x103876=new Map();for(let _0x13d46d=0x0;_0x13d46d<_0x3d0ea0['length'];_0x13d46d++)'text'===_0x3d0ea0[_0x13d46d]['type']?(_0x3d0ea0[_0x13d46d]['item']['startIndex']=_0x13d46d,_0x3d0ea0[_0x13d46d]['item']['endIndex']=_0x13d46d):('elementStart'===_0x3d0ea0[_0x13d46d]['type']?_0x3d0ea0[_0x13d46d]['item']['startIndex']=_0x13d46d:'elementEnd'===_0x3d0ea0[_0x13d46d]['type']&&(_0x3d0ea0[_0x13d46d]['item']['endIndex']=_0x13d46d),_0x103876['set'](_0x3d0ea0[_0x13d46d]['id'],_0x13d46d));for(const _0x1450f4 of _0x103876['values']())'elementStart'===_0x3d0ea0[_0x1450f4]['type']?_0x3d0ea0[_0x1450f4]['item']['endIndex']=_0x103876['get'](_0x3d0ea0[_0x1450f4]['pairId']):'elementEnd'===_0x3d0ea0[_0x1450f4]['type']&&(_0x3d0ea0[_0x1450f4]['item']['startIndex']=_0x103876['get'](_0x3d0ea0[_0x1450f4]['pairId']));}['_processTape'](_0x35f23a){for(let _0x3f5ded=0x0;_0x3f5ded<_0x35f23a['length'];_0x3f5ded++){if('elementStart'===_0x35f23a[_0x3f5ded]['type'])_0x35f23a[_0x3f5ded]['item']['startIndex']=_0x3f5ded;else{if('elementEnd'===_0x35f23a[_0x3f5ded]['type']){_0x35f23a[_0x3f5ded]['item']['endIndex']=_0x3f5ded;const _0x24e397=_0x35f23a[_0x3f5ded]['item']['startIndex'];_0x35f23a[_0x24e397]['pairId']=_0x35f23a[_0x3f5ded]['id'],_0x35f23a[_0x3f5ded]['pairId']=_0x35f23a[_0x24e397]['id'];}else _0x35f23a[_0x3f5ded]['item']['startIndex']=_0x3f5ded,_0x35f23a[_0x3f5ded]['item']['endIndex']=_0x3f5ded,_0x35f23a[_0x3f5ded]['pairId']=null;}_0x35f23a[_0x3f5ded]['markersStart']||(_0x35f23a[_0x3f5ded]['markersStart']=[],_0x35f23a[_0x3f5ded]['markersEnd']=[]);}}['_markInsertions'](_0x47ace1,_0x1464ab){const _0xd49585=_0x47ace1['filter'](_0x2c9530=>!_0x2c9530['isAdded']);for(let _0x1ce892=0x0;_0x1ce892<_0x1464ab['length'];_0x1ce892++)_0x1464ab[_0x1ce892]['isAdded']&&(_0xd49585[_0x1ce892]['isAdded']=_0x1464ab[_0x1ce892]['isAdded']);}['_getDiff'](_0x114099,_0x31f4c7=null){const _0x1e7941=this['repository']['getRevision'](_0x114099),_0x51016d=_0x31f4c7?this['repository']['getRevision'](_0x31f4c7):null,_0x1d12ee=this['_getRevisionsRange'](_0x1e7941,_0x51016d),_0x2d1f6a=_0x1d12ee[_0x1d12ee['length']-0x1],_0x1d4250=new Map(),_0x1f3c7e={'model':{},'attributes':{},'changes':[]},_0x281ff8=new Set(),_0x3d24cb=new Map();for(let _0x3d883f=_0x1d12ee['length']-0x1;_0x3d883f>=0x0;_0x3d883f--){const _0x515e37=_0x1d12ee[_0x3d883f];for(const _0x455db9 of Object['keys'](_0x515e37['diffData']))if(_0x515e37['diffData'][_0x455db9]['attachChange']){const _0x4bb927=_0x515e37['diffData'][_0x455db9]['attachChange'];_0x4bb927['isAttached']?(_0x281ff8['add'](_0x455db9),_0x3d24cb['has'](_0x455db9)&&_0x3d24cb['get'](_0x455db9)['userId']==_0x4bb927['userId']?_0x3d24cb['delete'](_0x455db9):_0x3d24cb['set'](_0x455db9,_0x4bb927)):_0x3d24cb['has'](_0x455db9)?(_0x281ff8['delete'](_0x455db9),_0x3d24cb['delete'](_0x455db9)):(_0x281ff8['add'](_0x455db9),_0x3d24cb['set'](_0x455db9,_0x4bb927));}else _0x281ff8['add'](_0x455db9);}for(const _0x153135 of _0x281ff8){const _0x4b0187=_0x3d24cb['has'](_0x153135)&&!_0x3d24cb['get'](_0x153135)['isAttached'];let _0x2b16f4=_0x4b0187?_0x1d12ee['length']-0x1:0x0;const _0x56ac01=_0x4b0187?-0x1:0x1;for(;_0x1d12ee[_0x2b16f4];){const _0x24f622=_0x1d12ee[_0x2b16f4];if(_0x24f622['diffData'][_0x153135]){const _0x47e162=_0x4b0187?_0x24f622['diffData'][_0x153135]['attributesBefore']:_0x24f622['diffData'][_0x153135]['attributesAfter'];_0x1f3c7e['attributes'][_0x153135]=_0x47e162?_0x1f8919(_0x47e162):{};break;}_0x2b16f4+=_0x56ac01;}}for(const _0x5cd02b of _0x1d12ee){_0x5cd02b['model']={};for(const _0x427cbb of _0x5cd02b['authors'])_0x1d4250['set'](_0x427cbb['id'],_0x427cbb);for(const _0x1cd772 of _0x281ff8){const _0x3c4281=_0x5cd02b['diffData'][_0x1cd772]?_0x5cd02b['diffData'][_0x1cd772]['insertions']:'[]',_0x5a5e99=_0x5cd02b['diffData'][_0x1cd772]?_0x5cd02b['diffData'][_0x1cd772]['deletions']:'[]';_0x5cd02b['model'][_0x1cd772]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3c4281),'deletions':this['_utils']['_makeModelFromViewString'](_0x5a5e99)};}}for(const _0x45f6c9 of _0x281ff8){let _0x356a8d=null,_0x2430a3=0x0;const _0x14e6d4=new Map(Array['from'](_0x1e7941['model'][_0x45f6c9]['insertions']['markers'])['filter'](([_0x376447])=>!_0x376447['startsWith']('revision:')));let _0xffa9db=0x0;for(const _0x3ddf23 of _0x1d12ee){const _0x15c10e=this['_makeTape'](_0x3ddf23['model'][_0x45f6c9]['insertions']);_0x3ddf23==_0x1e7941?(_0x356a8d=_0x15c10e,_0x2430a3=_0x356a8d['length'],_0x356a8d['forEach'](_0x1f2f58=>{_0x1f2f58['id']=_0xffa9db++;}),this['_processTape'](_0x356a8d)):this['_markInsertions'](_0x356a8d,_0x15c10e);const _0x254cc6=_0x356a8d['filter'](_0x36469b=>!_0x36469b['isAdded'])['map'](_0x3af20f=>_0x3af20f['id']);let _0x26623a=0x0;const _0xb2af29=this['_makeTape'](_0x3ddf23['model'][_0x45f6c9]['deletions']);_0xb2af29['forEach'](_0x3476c4=>{_0x3476c4['isRemoved']?_0x3476c4['id']=_0x2430a3++:_0x3476c4['id']=_0x254cc6[_0x26623a++];}),this['_processTape'](_0xb2af29),this['_setDistance'](_0x356a8d,'isAdded'),this['_setDistance'](_0xb2af29,'isRemoved'),_0x3ddf23==_0x1e7941&&this['_markMarkers'](_0x356a8d,_0x14e6d4),_0x356a8d=this['_joinTapes'](_0x356a8d,_0xb2af29),this['_refreshStartEndIndex'](_0x356a8d),this['_setDistance'](_0x356a8d,'isRemoved');}_0x356a8d=_0x356a8d['filter'](_0x2532b1=>!(_0x2532b1['isAdded']&&_0x2532b1['isRemoved']));const _0x5adafd=new Map(_0x2d1f6a['model'][_0x45f6c9]['deletions']['markers']),_0x3c679a=new Set(_0x14e6d4['keys']());for(const _0x7e46ed of _0x5adafd['keys']())_0x3c679a['delete'](_0x7e46ed);this['_markSuggestions'](_0x356a8d,_0x3c679a),this['_fixObsoleteTags'](_0x356a8d),_0x356a8d=this['_removeMissingPairs'](_0x356a8d),_0x356a8d=this['_markMismatchedRemovedTags'](_0x356a8d),_0x356a8d=this['_removeUnsupportedChanges'](_0x356a8d);const {root:_0x55f2cc,changes:_0x395b3a}=this['_makeModelFromTape'](_0x356a8d,_0x1d4250,_0x45f6c9);_0x1f3c7e['model'][_0x45f6c9]=_0x55f2cc;const _0x50418c=_0x3d24cb['get'](_0x45f6c9);if(_0x50418c){const _0x53a7fc=_0x1d4250['get'](_0x50418c['userId']),_0x375299=new G({'author':_0x53a7fc,'type':_0x50418c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x45f6c9});_0x395b3a['unshift'](_0x375299),_0x1f3c7e['attributes'][_0x45f6c9]['revisionHistoryAttachChange']=_0x375299['id'];}_0x1f3c7e['changes']=_0x1f3c7e['changes']['concat'](_0x395b3a);}return _0x1f3c7e;}['_markMarkers'](_0x1708e4,_0x38fe7e){for(let _0x4236ff=0x0;_0x4236ff<_0x1708e4['length'];_0x4236ff++)for(const [_0x27f656,_0x4cc38a]of _0x38fe7e)!_0x4cc38a['isCollapsed']&&_0x4cc38a['start']['isEqual'](_0x1708e4[_0x4236ff]['previousPosition'])&&_0x1708e4[_0x4236ff]['markersStart']['push'](_0x27f656),_0x4cc38a['end']['isEqual'](_0x1708e4[_0x4236ff]['nextPosition'])&&_0x1708e4[_0x4236ff]['markersEnd']['push'](_0x27f656);}['_joinTapes'](_0x3598bc,_0x2ed7d7){let _0x5d7b6a=[],_0x4682f3=0x0,_0x248df7=0x0;for(;_0x4682f3<_0x3598bc['length']||_0x248df7<_0x2ed7d7['length'];){const _0xca7af7=_0x3598bc[_0x4682f3]||{},_0x529ab6=_0x2ed7d7[_0x248df7]||{};if(_0xca7af7['id']==_0x529ab6['id'])_0x4682f3++,_0x248df7++,_0x5d7b6a['push'](_0xca7af7);else{if(_0x529ab6['isRemoved']&&_0xca7af7['isAdded']){const {commonTape:_0x57a2c5,iEnd:_0x4e0e7a,jEnd:_0x5061b2}=this['_threeWayMerge'](_0x3598bc,_0x4682f3,_0x2ed7d7,_0x248df7);_0x5d7b6a=_0x5d7b6a['concat'](_0x57a2c5),_0x4682f3=_0x4e0e7a,_0x248df7=_0x5061b2;}else _0x529ab6['isRemoved']?(_0x248df7++,_0x5d7b6a['push'](_0x529ab6)):(_0x4682f3++,_0x5d7b6a['push'](_0xca7af7));}}return _0x5d7b6a;}['_markSuggestions'](_0x39ec55,_0x26ca47){const _0x1f720a=[];for(let _0x1a1602=0x0;_0x1a1602<_0x39ec55['length'];_0x1a1602++){for(let _0x5436e1=0x0;_0x5436e1<_0x39ec55[_0x1a1602]['markersStart']['length'];_0x5436e1++){const _0x590843=_0x39ec55[_0x1a1602]['markersStart'][_0x5436e1];if(!_0x26ca47['has'](_0x590843))continue;const {group:_0x143327,type:_0x44089a,authorId:_0x334d71}=_0x4de535(_0x590843);'revision-suggestion'!=_0x143327||'insertion'!=_0x44089a&&'deletion'!=_0x44089a||(_0x1f720a['unshift']({'type':_0x44089a,'name':_0x590843,'userId':_0x334d71}),_0x39ec55[_0x1a1602]['markersStart']['splice'](_0x5436e1,0x1),_0x5436e1--);}_0x23c715(_0x39ec55[_0x1a1602]);for(let _0x274aa5=0x0;_0x274aa5<_0x39ec55[_0x1a1602]['markersEnd']['length'];_0x274aa5++){const _0x18ba08=_0x39ec55[_0x1a1602]['markersEnd'][_0x274aa5];if(!_0x26ca47['has'](_0x18ba08))continue;const {group:_0x3dccfc,type:_0xa8a512}=_0x4de535(_0x18ba08);if('revision-suggestion'!=_0x3dccfc||'insertion'!=_0xa8a512&&'deletion'!=_0xa8a512)continue;_0x39ec55[_0x1a1602]['markersEnd']['splice'](_0x274aa5,0x1),_0x274aa5--;const _0x299f0e=_0x1f720a['findIndex'](_0x51051a=>_0x51051a['name']==_0x18ba08);_0x299f0e>-0x1&&_0x1f720a['splice'](_0x299f0e,0x1);}}function _0x4de535(_0x19f0d4){const _0x38ab3b=_0x19f0d4['split'](':');return{'group':_0x38ab3b[0x0],'type':_0x38ab3b[0x1],'subType':_0x38ab3b['length']>=0x5?_0x38ab3b[0x2]:null,'id':_0x38ab3b['length']<0x5?_0x38ab3b[0x2]:_0x38ab3b[0x3],'authorId':_0x38ab3b['length']<0x5?_0x38ab3b[0x3]:_0x38ab3b[0x4],'markerCount':0x6==_0x38ab3b['length']?_0x38ab3b[0x5]:null};}function _0x23c715(_0x1b2d12){for(let _0x132d4c=0x0;_0x132d4c<_0x1f720a['length'];_0x132d4c++){if(_0x1b2d12['isAdded']&&'insertion'==_0x1f720a[_0x132d4c]['type']&&_0x1b2d12['isAdded']['userId']==_0x1f720a[_0x132d4c]['userId'])return _0x1b2d12['isAddSuggestion']=_0x1f720a[_0x132d4c],void delete _0x1b2d12['isAdded'];if(!_0x1b2d12['isAdded']&&!_0x1b2d12['isRemoved']&&'deletion'==_0x1f720a[_0x132d4c]['type'])return void(_0x1b2d12['isRemoveSuggestion']=_0x1f720a[_0x132d4c]);}}}['_setDistance'](_0x5bd6b6,_0x1ed951){let _0x56a095=0x0,_0x29a47b=!0x1;const _0x58201b=new Map();for(const _0x181ed3 of _0x5bd6b6)_0x181ed3[_0x1ed951]?_0x29a47b&&(_0x56a095++,_0x29a47b=!0x1):(_0x56a095++,_0x29a47b=!0x0),_0x58201b['set'](_0x181ed3['id'],_0x56a095);for(let _0x49f168=0x0;_0x49f168<_0x5bd6b6['length'];_0x49f168++){if('isRemoved'==_0x1ed951&&_0x5bd6b6[_0x49f168]['isAdded']||'isAdded'==_0x1ed951&&_0x5bd6b6[_0x49f168]['isRemoved'])continue;if('text'==_0x5bd6b6[_0x49f168]['type']){_0x5bd6b6[_0x49f168]['distance']=0x0;continue;}const _0x3ed375=_0x58201b['get'](_0x5bd6b6[_0x49f168]['pairId']),_0xa1af8=_0x58201b['get'](_0x5bd6b6[_0x49f168]['id']);_0x5bd6b6[_0x49f168]['distance']=_0x3ed375-_0xa1af8;}}['_getRevisionsRange'](_0x4d5833,_0x53ffde,_0x2dec5b=!0x1){const _0x17fae4=[];let _0x45f26b=this['repository']['getIndex'](_0x4d5833),_0x1e0cb8=this['repository']['getIndex'](_0x53ffde);for(-0x1==_0x1e0cb8&&(_0x1e0cb8=this['repository']['_revisions']['length'],_0x2dec5b=!0x1);_0x45f26b<_0x1e0cb8;)_0x17fae4['push'](this['repository']['getRevision'](_0x45f26b)),_0x45f26b++;return _0x2dec5b&&_0x17fae4['push'](this['repository']['getRevision'](_0x45f26b)),_0x17fae4;}['_threeWayMerge'](_0x184787,_0x3d6eb4,_0x1ba95a,_0x5ce38a){const _0x3331c3=this['editor']['model']['schema'];let _0x1539a5=_0x3d6eb4;for(;_0x184787[_0x1539a5]&&_0x184787[_0x1539a5]['isAdded'];)_0x1539a5++;let _0x1efa74=_0x5ce38a;for(;_0x1ba95a[_0x1efa74]&&_0x1ba95a[_0x1efa74]['isRemoved'];)_0x1efa74++;_0x1e31d4(_0x184787,_0x3d6eb4,_0x1539a5),_0x1e31d4(_0x1ba95a,_0x5ce38a,_0x1efa74);const _0x4bc80d=_0x1ba95a['slice'](_0x5ce38a,_0x1efa74)['concat'](_0x184787['slice'](_0x3d6eb4,_0x1539a5));return _0x4bc80d['sort']((_0x2533e8,_0x3e11a4)=>_0x2533e8['side']!=_0x3e11a4['side']?_0x2533e8['side']-_0x3e11a4['side']:_0x2533e8['level']!=_0x3e11a4['level']?_0x2533e8['level']-_0x3e11a4['level']:_0x2533e8['distance']!=_0x3e11a4['distance']?_0x3e11a4['distance']-_0x2533e8['distance']:!!_0x2533e8['isAdded']!=!!_0x3e11a4['isAdded']?-0x1==_0x2533e8['side']||0x0==_0x2533e8['side']?_0x2533e8['isAdded']?-0x1:0x1:_0x2533e8['isAdded']?0x1:-0x1:_0x2533e8['index']-_0x3e11a4['index']),{'commonTape':_0x4bc80d,'iEnd':_0x1539a5,'jEnd':_0x1efa74};function _0x1e31d4(_0x676597,_0x36b73f,_0x11940a){let _0x1830bb=-0x1,_0x4b9a1f=Number['POSITIVE_INFINITY'],_0x212f08=!0x0;for(let _0x427cca=_0x36b73f;_0x427cca<_0x11940a;_0x427cca++)if(_0x3331c3['isInline'](_0x676597[_0x427cca]['item'])||(_0x212f08=!0x1),_0x676597[_0x427cca]['item']['startIndex']<_0x36b73f&&(_0x1830bb=_0x427cca),_0x676597[_0x427cca]['item']['endIndex']>=_0x11940a){_0x4b9a1f=_0x427cca;break;}_0x212f08&&(_0x1830bb=_0x11940a-0x1);for(let _0x50823b=_0x36b73f;_0x50823b<_0x11940a;_0x50823b++)_0x676597[_0x50823b]['side']=_0x50823b<=_0x1830bb?-0x1:_0x50823b<_0x4b9a1f?0x0:0x1,_0x676597[_0x50823b]['index']=_0x50823b;let _0x463021=0x0;for(let _0x26f22e=_0x36b73f;_0x26f22e<=_0x1830bb;_0x26f22e++)0x0==_0x676597[_0x26f22e]['distance']?_0x676597[_0x26f22e]['level']=_0x463021:(_0x463021++,_0x676597[_0x26f22e]['level']=_0x463021,_0x463021++);for(let _0x5600d3=_0x36b73f;_0x5600d3<_0x11940a;_0x5600d3++)0x0==_0x676597[_0x5600d3]['side']&&(_0x676597[_0x5600d3]['level']=_0x463021);_0x463021=0x0;for(let _0x4e4dd0=_0x11940a-0x1;_0x4e4dd0>=_0x4b9a1f;_0x4e4dd0--)0x0==_0x676597[_0x4e4dd0]['distance']?_0x676597[_0x4e4dd0]['level']=_0x463021:(_0x463021--,_0x676597[_0x4e4dd0]['level']=_0x463021,_0x463021--);}}['_fixObsoleteTags'](_0x3074c3){const _0xa03a3a=new Map(),_0x2b25ff=this['editor']['model']['schema'];for(let _0x3a93c8=0x1;_0x3a93c8<_0x3074c3['length'];_0x3a93c8++){let _0x398e45,_0x262f9a,_0x38f03d;const _0x27b1e9=_0x3074c3[_0x3a93c8],_0x44b328=_0x3074c3[_0x3a93c8-0x1];if('text'==_0x27b1e9['type'])continue;if(_0x27b1e9['type']!=_0x44b328['type'])continue;if(!_0x2b25ff['isBlock'](_0x44b328['item'])||_0x2b25ff['isLimit'](_0x44b328['item']))continue;if(!_0x2b25ff['isBlock'](_0x27b1e9['item'])||_0x2b25ff['isLimit'](_0x27b1e9['item']))continue;if((_0x3074c3[_0x3a93c8]['isAdded']||_0x3074c3[_0x3a93c8]['isAddSuggestion'])&&_0x3074c3[_0x3a93c8-0x1]['isRemoved'])_0x398e45=_0x3074c3[_0x3a93c8],_0x262f9a=_0x3074c3[_0x3a93c8-0x1],_0x38f03d=_0x3a93c8-0x1;else{if(!_0x3074c3[_0x3a93c8]['isRemoved']||!_0x3074c3[_0x3a93c8-0x1]['isAdded']&&!_0x3074c3[_0x3a93c8-0x1]['isAddSuggestion'])continue;_0x398e45=_0x3074c3[_0x3a93c8-0x1],_0x262f9a=_0x3074c3[_0x3a93c8],_0x38f03d=_0x3a93c8;}const _0x59268d=_0x398e45['level']==_0x262f9a['level'],_0x5920ff=Math['abs'](_0x398e45['level'])<Math['abs'](_0x262f9a['level'])&&0x0==_0x262f9a['distance'];(_0x59268d||_0x5920ff)&&(_0xa03a3a['set'](_0x262f9a['id'],_0x398e45['id']),_0x3074c3['splice'](_0x38f03d,0x1),_0x3a93c8--,_0x398e45['isAdded']=!0x1);}for(let _0x26aa4d=0x0;_0x26aa4d<_0x3074c3['length'];_0x26aa4d++)_0xa03a3a['has'](_0x3074c3[_0x26aa4d]['pairId'])&&(_0x3074c3[_0x26aa4d]['pairId']=_0xa03a3a['get'](_0x3074c3[_0x26aa4d]['pairId']));}['_removeMissingPairs'](_0x28c61a){const _0x545c6c=new Set(_0x28c61a['map'](_0x3640c7=>_0x3640c7['id']));for(let _0x2485a8=0x0;_0x2485a8<_0x28c61a['length'];_0x2485a8++)_0x545c6c['has'](_0x28c61a[_0x2485a8]['pairId'])||0x0==_0x28c61a[_0x2485a8]['distance']||(_0x28c61a[_0x2485a8]['isIncorrect']=!0x0);return _0x28c61a['filter'](_0x61e738=>!_0x61e738['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3793d5){const _0x3cc74c=new Set();for(let _0x35bad8=0x0;_0x35bad8<_0x3793d5['length'];_0x35bad8++){if(_0x3cc74c['has'](_0x3793d5[_0x35bad8]['id'])&&_0x3793d5[_0x35bad8]['isRemoved']&&(_0x3793d5[_0x35bad8]['isIncorrect']=!0x0),_0x3793d5[_0x35bad8]['isIncorrect'])continue;if(0x0==_0x3793d5[_0x35bad8]['distance'])continue;if('elementStart'!=_0x3793d5[_0x35bad8]['type'])continue;if(null==_0x3793d5[_0x35bad8]['pairId'])continue;let _0x1aaac6=_0x35bad8+0x1,_0x582701=0x0;for(;_0x3793d5[_0x1aaac6]['id']!=_0x3793d5[_0x35bad8]['pairId'];)'elementStart'==_0x3793d5[_0x1aaac6]['type']?_0x582701++:'elementEnd'==_0x3793d5[_0x1aaac6]['type']&&_0x582701--,_0x1aaac6++;if(0x0!=_0x582701){if(_0x3793d5[_0x35bad8]['isRemoved'])_0x3793d5[_0x35bad8]['isIncorrect']=!0x0;else{for(;_0x1aaac6!=_0x35bad8;)_0x3793d5[_0x1aaac6]['isRemoved']&&0x0!=_0x3793d5[_0x1aaac6]['distance']&&(_0x3793d5[_0x1aaac6]['isIncorrect']=!0x0,_0x3cc74c['add'](_0x3793d5[_0x1aaac6]['pairId'])),_0x1aaac6--;}}}return _0x3793d5['filter'](_0x202cd6=>!_0x202cd6['isIncorrect']);}['_removeUnsupportedChanges'](_0x272793){const _0xf92308=this['editor']['model']['schema'];for(let _0xb93b15=0x0;_0xb93b15<_0x272793['length'];_0xb93b15++){if(!(_0x272793[_0xb93b15]['isAdded']||_0x272793[_0xb93b15]['isAddSuggestion']||_0x272793[_0xb93b15]['isRemoved']||_0x272793[_0xb93b15]['isRemoveSuggestion']))continue;if(0x0==_0x272793[_0xb93b15]['distance'])continue;const _0x2aaa6d=_0x272793[_0xb93b15]['item'];_0xf92308['isBlock'](_0x2aaa6d)||_0xf92308['isLimit'](_0x2aaa6d)||(_0x272793[_0xb93b15]['isAdded']&&delete _0x272793[_0xb93b15]['isAdded'],_0x272793[_0xb93b15]['isAddSuggestion']&&delete _0x272793[_0xb93b15]['isAddSuggestion'],_0x272793[_0xb93b15]['isRemoveSuggestion']&&delete _0x272793[_0xb93b15]['isRemoveSuggestion'],_0x272793[_0xb93b15]['isRemoved']&&(_0x272793[_0xb93b15]['isIncorrect']=!0x0));}return _0x272793['filter'](_0x43105d=>!_0x43105d['isIncorrect']);}['_makeModelFromTape'](_0x37c963,_0x481418,_0x1aecee){const _0x4bb0e2=new _0x1753c2(),_0x53dce7=[],_0x3861c3=new Map(),_0x3084a3=this['editor']['model'],_0x3d30ca=_0x3084a3['schema'],_0x11cc7a=[_0x4bb0e2],_0x178af0={},_0x4ad5e6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3881a8=null;const _0x825dd7=[0x0];for(let _0x3368d3=0x0;_0x3368d3<_0x37c963['length'];_0x3368d3++)if('elementStart'===_0x37c963[_0x3368d3]['type']){_0x37c963[_0x3368d3]['previousPosition']=_0x3084a3['createPositionFromPath'](_0x4bb0e2,_0x825dd7);const _0x3f7543=new _0x41b3fc(_0x37c963[_0x3368d3]['item']['name'],_0x37c963[_0x3368d3]['item']['getAttributes']());_0x11cc7a[0x0]['_appendChild'](_0x3f7543),_0x825dd7['push'](0x0),_0x11cc7a['unshift'](_0x3f7543),_0x37c963[_0x3368d3]['nextPosition']=_0x3084a3['createPositionFromPath'](_0x4bb0e2,_0x825dd7);}else'elementEnd'===_0x37c963[_0x3368d3]['type']?(_0x11cc7a['shift'](),_0x37c963[_0x3368d3]['previousPosition']=_0x3084a3['createPositionFromPath'](_0x4bb0e2,_0x825dd7),_0x825dd7['pop'](),_0x825dd7[_0x825dd7['length']-0x1]++,_0x37c963[_0x3368d3]['nextPosition']=_0x3084a3['createPositionFromPath'](_0x4bb0e2,_0x825dd7)):(_0x37c963[_0x3368d3]['previousPosition']=_0x3084a3['createPositionFromPath'](_0x4bb0e2,_0x825dd7),_0x3881a8?_0x3881a8['_data']+=_0x37c963[_0x3368d3]['item']['data']:_0x3881a8=new _0x3e2046(_0x37c963[_0x3368d3]['item']['data'],_0x37c963[_0x3368d3]['item']['getAttributes']()),_0x37c963[_0x3368d3+0x1]&&'text'===_0x37c963[_0x3368d3+0x1]['type']&&_0x4b1e0e(_0x3881a8,_0x37c963[_0x3368d3+0x1]['item'])||(_0x11cc7a[0x0]['_appendChild'](_0x3881a8),_0x3881a8=null),_0x825dd7[_0x825dd7['length']-0x1]+=_0x37c963[_0x3368d3]['item']['offsetSize'],_0x37c963[_0x3368d3]['nextPosition']=_0x3084a3['createPositionFromPath'](_0x4bb0e2,_0x825dd7));for(let _0x5201b0=0x0;_0x5201b0<_0x37c963['length'];_0x5201b0++){const _0x203eeb=_0x37c963[_0x5201b0]['previousPosition'],_0x297d0b=_0x37c963[_0x5201b0]['nextPosition'];for(const _0x3e2ebe of _0x37c963[_0x5201b0]['markersStart'])_0x3861c3['set'](_0x3e2ebe,{'start':_0x203eeb,'end':null});_0x564fb4('isRemoveSuggestion',_0x5201b0,_0x203eeb,_0x297d0b),_0x564fb4('isAddSuggestion',_0x5201b0,_0x203eeb,_0x297d0b),_0x564fb4('isRemoved',_0x5201b0,_0x203eeb,_0x297d0b),_0x564fb4('isAdded',_0x5201b0,_0x203eeb,_0x297d0b);for(const _0xdcf3dc of _0x37c963[_0x5201b0]['markersEnd']){const _0x32977f=_0x3861c3['get'](_0xdcf3dc);_0x32977f?_0x32977f['end']=_0x297d0b:_0x3861c3['set'](_0xdcf3dc,{'start':_0x297d0b,'end':_0x297d0b});}}for(const [_0x4597b9,_0x1748e1]of _0x3861c3){const _0x4271e1=this['editor']['model']['createRange'](_0x1748e1['start'],_0x1748e1['end']);_0x4bb0e2['markers']['set'](_0x4597b9,_0x4271e1);}return _0x53dce7['sort']((_0x533967,_0x3aff2e)=>{const _0x1b0f28=_0x4bb0e2['markers']['get']('revision:'+_0x533967['id']),_0x4b5bcb=_0x4bb0e2['markers']['get']('revision:'+_0x3aff2e['id']);return _0x1b0f28['start']['isBefore'](_0x4b5bcb['start'])?-0x1:_0x1b0f28['start']['isAfter'](_0x4b5bcb['start'])?0x1:_0x1b0f28['end']['isBefore'](_0x4b5bcb['end'])?-0x1:_0x1b0f28['end']['isAfter'](_0x4b5bcb['end'])?0x1:'add'===_0x533967['type']?-0x1:0x1;}),{'root':_0x4bb0e2,'changes':_0x53dce7};function _0x564fb4(_0x426285,_0x4d510d,_0x4231e3,_0x4ba862){const _0xfdbfc7=!!_0x37c963[_0x4d510d][_0x426285],_0x38f34e=_0xfdbfc7?_0x37c963[_0x4d510d][_0x426285]['userId']:null,_0x417e02=_0x4d510d===_0x37c963['length']-0x1,_0x2d46a6=_0x4ad5e6[_0x426285][0x0],_0x358c6a=_0x3d30ca['isObject'](_0x37c963[_0x4d510d]['item']);!_0x178af0[_0x426285]&&_0xfdbfc7?_0x178af0[_0x426285]={'start':_0x4231e3,'tapeItem':_0x37c963[_0x4d510d],'userId':_0x38f34e,'type':_0x426285}:_0x178af0[_0x426285]&&!_0xfdbfc7?(_0x178af0[_0x426285]['end']=_0x4231e3,_0xb9a0(_0x178af0[_0x426285]),_0x178af0[_0x426285]=null):_0x178af0[_0x426285]&&_0xfdbfc7&&_0x178af0[_0x426285]['userId']!==_0x38f34e&&(_0x178af0[_0x426285]['end']=_0x4231e3,_0x2d46a6&&_0x2d46a6['userId']===_0x178af0[_0x426285]['userId']||_0xb9a0(_0x178af0[_0x426285]),_0x178af0[_0x426285]={'start':_0x4231e3,'tapeItem':_0x37c963[_0x4d510d],'userId':_0x38f34e,'type':_0x426285}),_0x178af0[_0x426285]&&_0x358c6a&&('elementStart'!==_0x37c963[_0x4d510d]['type']||_0x2d46a6&&_0x2d46a6['userId']===_0x38f34e||_0x4ad5e6[_0x426285]['unshift']({'userId':_0x38f34e,'object':_0x37c963[_0x4d510d]['item'],'change':_0x178af0[_0x426285]}),'elementEnd'===_0x37c963[_0x4d510d]['type']&&_0x2d46a6&&_0x2d46a6['object']===_0x37c963[_0x4d510d]['item']&&(_0x4ad5e6[_0x426285]['shift'](),_0x178af0[_0x426285]=_0x2d46a6['change'])),_0x178af0[_0x426285]&&_0x417e02&&(_0x178af0[_0x426285]['end']=_0x4ba862,_0xb9a0(_0x178af0[_0x426285]),_0x178af0[_0x426285]=null);}function _0xb9a0({start:_0x580fbe,end:_0x358ce7,tapeItem:_0x596f2a,userId:_0x5b2cd7,type:_0x65f6b7}){const _0x2a19e7=_0x596f2a['item'],_0x22d241=_0x3084a3['schema']['isBlock'](_0x2a19e7)&&!_0x3084a3['schema']['isLimit'](_0x2a19e7),_0x56f35f=_0x580fbe['nodeAfter']==_0x358ce7['parent']&&_0x358ce7['isAtStart'];if(_0x22d241&&_0x56f35f)return;const _0x3bef6f=_0x3084a3['createRange'](_0x580fbe,_0x358ce7),_0x542a77=_0x481418['get'](_0x5b2cd7),_0xd15705=new G({'author':_0x542a77,'type':'isAdded'==_0x65f6b7||'isAddSuggestion'==_0x65f6b7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x65f6b7||'isRemoveSuggestion'==_0x65f6b7},'createdAt':new Date(),'rootName':_0x1aecee});_0x53dce7['push'](_0xd15705),_0x4bb0e2['markers']['set']('revision:'+_0xd15705['id'],_0x3bef6f);}function _0x4b1e0e(_0x34c03b,_0x48710c){const _0xa8b47e=_0x34c03b['getAttributes'](),_0x3e94ad=_0x48710c['getAttributes']();for(const _0x5aeeb0 of _0xa8b47e){if(_0x5aeeb0[0x1]!==_0x48710c['getAttribute'](_0x5aeeb0[0x0]))return!0x1;_0x3e94ad['next']();}return _0x3e94ad['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xa7d011=>{const _0x574afa=_0xa7d011['markerName']['split'](':')[0x1],_0x52eb83=this['_getChangeFromId'](_0x574afa);if(!_0x52eb83)return null;const _0x29000c='add'==_0x52eb83['type']?'insertion':'deletion',_0x3762a8=['ck-suggestion-marker','ck-suggestion-marker-'+_0x29000c];return _0x52eb83['data']['isSuggestion']&&_0x3762a8['push']('ck-suggestion-marker-'+_0x29000c+'-new'),this['activeChange']==_0x52eb83&&_0x3762a8['push']('ck-suggestion-marker--active'),{'classes':_0x3762a8,'attributes':{'data-change-id':_0x574afa}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x561eeb=>{_0x561eeb['on']('element:pre',(_0x1d0e06,_0x2b1c93,_0x384ab2)=>{const _0x4be362=_0x2b1c93['viewItem']['getChild'](0x0);if(!_0x4be362||!_0x4be362['is']('element','code'))return;if(!_0x384ab2['consumable']['consume'](_0x4be362,{'attributes':['vid_start','vid_end']}))return;const _0x10184d=_0x2b1c93['modelRange']['start']['nodeAfter'];_0x384ab2['writer']['setAttribute']('vid_start',_0x4be362['getAttribute']('vid_start'),_0x10184d),_0x384ab2['writer']['setAttribute']('vid_end',_0x4be362['getAttribute']('vid_end'),_0x10184d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x57b38c=>{_0x57b38c['on']('element',(_0x39fb2f,_0x11c88a,_0x229eb0)=>{if(!_0x229eb0['consumable']['consume'](_0x11c88a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x11c88a['modelRange']['isCollapsed'])return;const _0x2e1690=_0x11c88a['modelRange']['start']['nodeAfter'];_0x2e1690['hasAttribute']('vid_start')||_0x2e1690['hasAttribute']('vid')||(_0x229eb0['writer']['setAttribute']('vid_start',_0x11c88a['viewItem']['getAttribute']('vid_start'),_0x2e1690),_0x229eb0['writer']['setAttribute']('vid_end',_0x11c88a['viewItem']['getAttribute']('vid_end'),_0x2e1690));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1a788e=>_0x1a788e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xcb89c9,[,_0xe01617])=>{['vid_start','vid_end','vid']['includes'](_0xe01617)&&(_0xcb89c9['return']=!0x0,_0xcb89c9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x363555=>{_0x363555['on']('attribute:vid',(_0x105497,_0x1122dd,_0x3feba4)=>{if('\x20'!=_0x1122dd['item']['data']||_0x1122dd['item']['parent']['maxOffset']>0x1)return;if(!_0x3feba4['consumable']['consume'](_0x1122dd['item'],_0x105497['name']))return;const _0x314360=_0x3feba4['writer'],_0x5e94e7=_0x3feba4['mapper']['toViewRange'](_0x1122dd['range']);_0x314360['wrap'](_0x5e94e7,_0x314360['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3d05c7){const _0x2d86b3=_0x3d05c7['plugins']['get']('RevisionViewer');return(_0x37ed08,_0x23064e,_0x12d609)=>{const _0x46026d=_0x23064e['markerName']['split'](':')[0x1],_0x16749e=_0x2d86b3['_getChangeFromId'](_0x46026d);if(!_0x16749e)return null;const _0x30db0b='add'==_0x16749e['type']?'split':'merge';if(!_0x12d609['consumable']['test'](_0x23064e['markerRange'],_0x37ed08['name']))return;const _0x146887=_0x23064e['markerRange']['getWalker'](),_0xc8ab05=_0x23064e['markerRange']['start'],_0x315330=_0x3d05c7['model']['schema'];let _0x178cd2=null,_0x29e7f7=null,_0xa2e407=!0x1,_0x344dd8=!0x1;for(const _0x204d64 of _0x146887){const _0x3c1521=_0x204d64['item'];_0xa2e407=_0xa2e407||_0x315330['isContent'](_0x3c1521);const _0x32ed8c=_0x12d609['mapper']['toViewElement'](_0x3c1521);if(_0x32ed8c&&_0x32ed8c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x204d64['type']&&(_0x315330['isBlock'](_0x3c1521)&&!_0x315330['isLimit'](_0x3c1521)&&(_0x3c1521['nextSibling']||_0xc8ab05['isAtEnd']?_0x178cd2&&_0x178cd2['parent']==_0x3c1521||(_0x178cd2=_0x3c1521,_0xb3b76c(_0x204d64['previousPosition']),_0x344dd8=!0x0):_0x29e7f7=_0x29e7f7||_0x204d64['previousPosition']));}function _0xb3b76c(_0x32b79d){const _0x34a74a=_0x12d609['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30db0b}),_0x420a1f=_0x12d609['mapper']['toViewPosition'](_0x32b79d);_0x16749e['data']['isSuggestion']&&_0x12d609['writer']['addClass']('ck-suggestion-marker-'+_0x30db0b+'-new',_0x34a74a),_0x2d86b3['activeChange']==_0x16749e&&_0x12d609['writer']['addClass']('ck-suggestion-marker--active',_0x34a74a),_0x12d609['writer']['insert'](_0x420a1f,_0x34a74a),_0x12d609['mapper']['bindElementToMarker'](_0x34a74a,_0x23064e['markerName']);}_0xa2e407||_0x344dd8||!_0x29e7f7||_0xb3b76c(_0x29e7f7);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x456785,_0x24c4fe,_0x59fc71)=>{const _0x227339=_0x59fc71['mapper']['markerNameToElements'](_0x24c4fe['markerName']);if(_0x227339){for(const _0x177317 of _0x227339)(_0x177317['hasClass']('ck-suggestion-marker-split')||_0x177317['hasClass']('ck-suggestion-marker-merge'))&&(_0x59fc71['mapper']['unbindElementFromMarkerName'](_0x177317,_0x24c4fe['markerName']),_0x59fc71['writer']['remove'](_0x177317));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2024f5,_0x1c3a1e,_0x4aedd1)=>{const _0x12555f=_0x1c3a1e['markerName']['split'](':')[0x1],_0x12a8a5=this['_getChangeFromId'](_0x12555f);if(!_0x12a8a5)return null;const _0x4fe1ce='add'==_0x12a8a5['type']?'split':'merge';if(_0x4aedd1['consumable']['test'](_0x1c3a1e['markerRange'],_0x2024f5['name']))for(const _0x56570f of _0x1c3a1e['markerRange']['getItems']()){if(!_0x56570f['is']('element','softBreak'))continue;const _0x3272aa=_0x4aedd1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fe1ce}),_0x235967=_0x4aedd1['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x56570f));_0x12a8a5['data']['isSuggestion']&&_0x4aedd1['writer']['addClass']('ck-suggestion-marker-'+_0x4fe1ce+'-new',_0x3272aa),this['activeChange']==_0x12a8a5&&_0x4aedd1['writer']['addClass']('ck-suggestion-marker--active',_0x3272aa),_0x4aedd1['writer']['insert'](_0x235967,_0x3272aa),_0x4aedd1['mapper']['bindElementToMarker'](_0x3272aa,_0x1c3a1e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x115b7a=>{for(const _0x2ea9c9 of this['editor']['model']['document']['getRootNames']()){const _0x3f43eb=this['editor']['model']['document']['getRoot'](_0x2ea9c9),_0x979dce=this['editor']['editing']['view']['document']['getRoot'](_0x2ea9c9);if(_0x979dce){const _0x1775d6=_0x3f43eb['getAttribute']('revisionHistoryAttachChange');if(_0x115b7a['removeAttribute']('data-change-id',_0x979dce),_0x115b7a['removeClass']('ck-revision-history-root-add',_0x979dce),_0x115b7a['removeClass']('ck-revision-history-root-remove',_0x979dce),_0x115b7a['removeClass']('ck-revision-history-root--active',_0x979dce),_0x1775d6){const _0x269bd8=this['_getChangeFromId'](_0x1775d6);if(!_0x269bd8)return null;_0x115b7a['setAttribute']('data-change-id',_0x1775d6,_0x979dce),_0x115b7a['addClass']('ck-revision-history-root-'+_0x269bd8['type'],_0x979dce),this['activeChange']==_0x269bd8&&_0x115b7a['addClass']('ck-revision-history-root--active',_0x979dce);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xca577=>'revision-comment:'+_0xca577,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1ff1d3=>'revision-suggestion:'+_0x1ff1d3,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3501c3=>({'name':'suggestion:'+_0x3501c3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x453f9d=>{const _0x3ffcb7=_0x453f9d['markerName']['split'](':')[0x1];return'insertion'!=_0x3ffcb7&&'deletion'!=_0x3ffcb7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3ffcb7]};}}),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',(_0x364ea4,_0x574ae4,_0x41e2dc)=>{const _0x141114=_0x41e2dc['mapper']['markerNameToElements'](_0x574ae4['markerName']);if(_0x141114){for(const _0x10e101 of _0x141114)_0x10e101['is']('uiElement')&&(_0x41e2dc['mapper']['unbindElementFromMarkerName'](_0x10e101,_0x574ae4['markerName']),_0x41e2dc['writer']['remove'](_0x10e101));}},{'priority':'high'});}['_getChangeFromId'](_0x370bb2){return this['_changeIdToChange']['get'](_0x370bb2);}['_getViewForChange'](_0x552c0f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x552c0f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3e760a,_0x3d3d7e,_0x554c51,_0x42723b)=>{_0x42723b&&this['_balloon']['remove'](_0x42723b),_0x554c51&&(this['_balloon']['add']({'view':_0x554c51,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x30c891=this['editor']['editing'],_0x223bac=this['_getChangeFromId'](_0x554c51['changeId']);let _0x2240ae;if(_0x223bac['data']['isOnRoot']){const _0x41b4f9=_0x30c891['view']['getDomRoot'](_0x223bac['rootName']);_0x2240ae=Array['from'](_0x41b4f9['getClientRects']());}else{const _0x4e062c=this['editor']['model']['markers']['get']('revision:'+_0x554c51['changeId']);_0x2240ae=Array['from'](_0x30c891['mapper']['markerNameToElements'](_0x4e062c['name']))['map'](_0x19e86f=>_0x30c891['view']['domConverter']['mapViewToDom'](_0x19e86f))['map'](_0x520155=>Array['from'](_0x520155['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2240ae[0x0];return _0x2240ae['find'](_0x15432d=>_0x15432d['top']-0x3<=this['_activeViewTarget']['y']&&_0x15432d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x15432d['left']-0x3<=this['_activeViewTarget']['x']&&_0x15432d['right']+0x3>=this['_activeViewTarget']['x'])||_0x2240ae[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x48c72c,_0x4338cb,_0x207928,_0x9fc9bb)=>{this['activeView']=_0x207928?this['_getViewForChange'](_0x207928):null,this['editor']['model']['change'](()=>{const _0x410cdf=this['editor']['editing'];_0x9fc9bb&&(_0x9fc9bb['data']['isOnRoot']?_0x410cdf['view']['change'](_0x3af38a=>{_0x3af38a['removeClass']('ck-revision-history-root--active',_0x410cdf['view']['document']['getRoot'](_0x9fc9bb['rootName']));}):_0x410cdf['reconvertMarker']('revision:'+_0x9fc9bb['id'])),_0x207928&&(_0x207928['data']['isOnRoot']?_0x410cdf['view']['change'](_0x3ea736=>{_0x3ea736['addClass']('ck-revision-history-root--active',_0x410cdf['view']['document']['getRoot'](_0x207928['rootName']));}):_0x410cdf['reconvertMarker']('revision:'+_0x207928['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x29cde1,_0x30541e)=>{if(this['activeChange'])return;const _0x2ccc77=this['_findChangeIdFromDomTarget'](_0x30541e['target']),_0x6c36dd=this['_changeIdToChange']['get'](_0x2ccc77);_0x6c36dd?(this['_activeViewTarget']={'x':_0x30541e['domEvent']['x'],'y':_0x30541e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x6c36dd)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x161592,_0x4dbed8)=>{const _0x1fdf41=this['_findChangeIdFromDomTarget'](_0x4dbed8['target']),_0x2d2c9b=this['_changeIdToChange']['get'](_0x1fdf41);_0x2d2c9b?(this['_activeViewTarget']={'x':_0x4dbed8['domEvent']['x'],'y':_0x4dbed8['domEvent']['y']},_0x2d2c9b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d2c9b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x332fe7){do{const _0x179041=_0x332fe7['getAttribute']('data-change-id');if(_0x179041)return _0x179041;_0x332fe7=_0x332fe7['parent'];}while(_0x332fe7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x39f503=>{for(const _0x1dec98 of this['editor']['model']['markers'])_0x39f503['removeMarker'](_0x1dec98);});}}function Q(_0xf43e58,_0x133ef2){return(_0x2c6ca7,_0x8992ce,_0x3e6007)=>{if(!_0x3e6007['consumable']['test'](_0x8992ce['markerRange'],_0x2c6ca7['name']))return;const _0x740a83=_0x8992ce['markerRange']['getWalker'](),_0x1723c9=_0x8992ce['markerRange']['start'],_0x582868=_0xf43e58['model']['schema'];let _0x4cf2d2=null,_0x3863ca=null,_0x1af59d=!0x1,_0xc070de=!0x1;for(const _0x140285 of _0x740a83){const _0x2a5d49=_0x140285['item'];_0x1af59d=_0x1af59d||_0x582868['isContent'](_0x2a5d49);const _0x4e7458=_0x3e6007['mapper']['toViewElement'](_0x2a5d49);if(_0x4e7458&&_0x4e7458['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x140285['type']&&(_0x582868['isBlock'](_0x2a5d49)&&!_0x582868['isLimit'](_0x2a5d49)&&(_0x2a5d49['nextSibling']||_0x1723c9['isAtEnd']?_0x4cf2d2&&_0x4cf2d2['parent']==_0x2a5d49||(_0x4cf2d2=_0x2a5d49,_0x5c1c38(_0x140285['previousPosition']),_0xc070de=!0x0):_0x3863ca=_0x3863ca||_0x140285['previousPosition']));}function _0x5c1c38(_0x491de5){const _0x4539a6=_0x3e6007['mapper']['toViewPosition'](_0x491de5),_0x10de46=_0x3e6007['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x133ef2});_0x3e6007['writer']['insert'](_0x4539a6,_0x10de46),_0x3e6007['mapper']['bindElementToMarker'](_0x10de46,_0x8992ce['markerName']);}_0x1af59d||_0xc070de||!_0x3863ca||_0x5c1c38(_0x3863ca);};}class nt extends _0x1e3043{constructor(_0x2cac55){super(_0x2cac55);const _0x130316=_0x2cac55['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x130316,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x130316,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4cf5a0=this['editor'],_0x4e66eb=_0x4cf5a0['plugins']['get'](u),_0x290050=_0x4e66eb['isReady']?_0x4e66eb['diff']['newRevisionId']:null;_0x4cf5a0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x290050);}['refresh'](){const {isReady:_0x2948cb,isEnabled:_0x21fbe3,repository:_0x4dea4f,diff:_0x556654}=this['editor']['plugins']['get'](u),_0x1263b7=_0x556654&&_0x4dea4f['getLaterVisibleRevision'](_0x556654['newRevisionId']);this['isEnabled']=_0x2948cb&&_0x21fbe3&&Boolean(_0x1263b7);}}class rt extends _0x1e3043{['_step'];constructor(_0x1b2eac,{direction:_0x430005}){super(_0x1b2eac);const _0xa1e763=_0x1b2eac['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x430005?0x1:-0x1,this['listenTo'](_0xa1e763,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xa1e763,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xa1e763,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4a4a0d=this['editor'],_0x560445=_0x4a4a0d['plugins']['get'](u),{isNavigationMode:_0x34b9f8,currentChangeNumber:_0x2f7811}=_0x560445;let _0x5151c2;if(_0x560445['activeChange']=_0x34b9f8?_0x560445['diff']['changes']['get'](_0x2f7811+this['_step']):_0x560445['diff']['changes']['first'],_0x560445['activeChange']['data']['isOnRoot'])_0x5151c2=_0x4a4a0d['editing']['view']['getDomRoot'](_0x560445['activeChange']['rootName']);else{const _0x207dbf=_0x4a4a0d['model']['markers']['get']('revision:'+_0x560445['activeChange']['id']);_0x5151c2=_0x47c945(_0x4a4a0d['editing'],_0x207dbf);}_0x41b90b({'target':_0x5151c2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4d3bdb,currentChangeNumber:_0x509d71,numberOfChanges:_0x31e38c,isReady:_0x4339e,isEnabled:_0x1143a3}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x1143a3&&_0x4339e&&_0x31e38c)&&(!_0x4d3bdb||(0x1===this['_step']?_0x509d71<_0x31e38c-0x1:_0x509d71>0x0));}}class vi extends _0x4c679a{constructor(_0x1beada){super(_0x1beada);const _0x3fde58=this['bindTemplate'],_0x1ddffa=new _0x1a6925(_0x1beada),_0x4a19ec=new _0x1a6925(_0x1beada);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',(_0x5c9327,_0x67c0e9)=>_0x5c9327&&_0x67c0e9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x36d86a,_0x3586e7,_0x308f75,_0x175008)=>{if(!_0x36d86a)return m(_0x1beada,'Loading...');if(!_0x308f75)return m(_0x1beada,'No\x20changes');const _0xeece8e=m(_0x1beada,'NUMBER_OF_CHANGES',_0x308f75);return _0x175008?m(_0x1beada,'X_OF_Y_CHANGES',[_0x3586e7+0x1,_0x308f75]):_0xeece8e;}),_0x1ddffa['set']({'label':m(_0x1beada,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x338ac3}),_0x4a19ec['set']({'label':m(_0x1beada,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x13d84f}),_0x1ddffa['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4a19ec['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ddffa['on']('execute',()=>this['fire']('execute','backward')),_0x4a19ec['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',_0x3fde58['if']('_isStatusLabelVisible','ck-hidden',_0x1418d9=>!_0x1418d9)]},'children':[{'text':_0x3fde58['to']('isNavigationMode',_0x141e5d=>_0x141e5d?m(_0x1beada,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1beada,'Total')+':\x20')}]},{'text':_0x3fde58['to']('_statusText')}]},new _0x33adfd(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ddffa,_0x4a19ec]}]});}}const oe='ck-editor__editable__loading-overlay';class wi extends _0x2bce4d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2a9cee=this['editor']['editing']['view'];_0x2a9cee['change'](_0x48b4d6=>{for(const _0x36d065 of _0x2a9cee['document']['roots'])_0x48b4d6['addClass'](oe,_0x36d065);});}['hide'](){const _0x3e302d=this['editor']['editing']['view'];_0x3e302d['change'](_0x187557=>{for(const _0x1620d6 of _0x3e302d['document']['roots'])_0x187557['removeClass'](oe,_0x1620d6);});}}class v extends _0x2bce4d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,wi];}['init'](){const _0x127361=this['editor'],_0x42230a=_0x127361['plugins']['get'](u),_0x3f0619=_0x127361['plugins']['get'](wi);_0x127361['ui']['componentFactory']['add']('exitToEditing',_0x1eb5c2=>{const _0x3e0845=new _0x1a6925(_0x1eb5c2);return _0x3e0845['set']({'label':m(_0x1eb5c2,'Back\x20to\x20editing'),'icon':_0x57a137,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3e0845,'execute',()=>{_0x127361['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3e0845;}),_0x127361['ui']['componentFactory']['add']('restoreRevision',_0x116c68=>{const _0x19316b=new _0x1a6925(_0x116c68);return _0x19316b['set']({'label':m(_0x116c68,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x19316b['bind']('isEnabled')['to'](_0x127361['commands']['get']('restoreRevision')),this['listenTo'](_0x19316b,'execute',()=>_0x127361['execute']('restoreRevision')),_0x19316b;}),_0x127361['ui']['componentFactory']['add']('changesNavigation',_0x46c053=>{const _0x296847=new vi(_0x46c053),_0x35af0f=_0x127361['commands']['get']('showPreviousChange'),_0x64bc1e=_0x127361['commands']['get']('showNextChange');return _0x296847['bind']('isBackwardNavigationEnabled')['to'](_0x35af0f,'isEnabled'),_0x296847['bind']('isForwardNavigationEnabled')['to'](_0x64bc1e,'isEnabled'),_0x296847['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x42230a),this['listenTo'](_0x296847,'execute',(_0x5f1d34,_0x8165f4)=>{_0x127361['execute']('forward'===_0x8165f4?'showNextChange':'showPreviousChange');}),_0x296847;}),_0x3f0619['show'](),_0x42230a['on']('change:isReady',(_0x5e634c,_0x14cc98,_0x3c3f1d)=>{_0x3c3f1d?_0x3f0619['hide']():_0x3f0619['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0xdb2ba5,_0x317175){super(_0xdb2ba5,_0x317175);const _0x1a614c=this['bindTemplate'];this['set']({'label':m(_0xdb2ba5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0xdb2ba5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1a614c['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 _0xb234c=this['fieldView']['element'];this['_tooltipString']=_0xb234c['scrollWidth']>_0xb234c['clientWidth']&&_0xb234c['value']||'';}}class ni extends _0x4c679a{constructor(_0x295b0d,_0x3de9ec,_0x17dae7){super(_0x295b0d);const _0x34d4dc=new _0x26c7e2();_0x34d4dc['set']({'content':_0x4ad26c,'viewBox':'0\x200\x2011\x2010'});const _0x5cf13d=['ck','ck-revision-history-sidebar__revision-author'];_0x17dae7&&_0x5cf13d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x27192c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x295b0d,_0x17dae7?'Revision\x20creator':'Revision\x20author')},'children':[_0x34d4dc,_0x3de9ec['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5cf13d},'children':_0x27192c});}}function ai(_0x57bf18,_0x13cf75){const _0x3e3acb=_0x57bf18['bindTemplate'],_0x3b3ed0=_0x57bf18['locale'],_0x5f16b7=_0x46d208(_0x3b3ed0);_0x5f16b7['panelPosition']='sw';const _0x360762=function(_0x5da675,_0x1ce667){const _0x34fd68=function(_0x1cf0a8,_0x336fa9){const _0x135fd7=_0x1cf0a8['locale'],_0x2703ab={'Compare\x20against\x20selected':m(_0x135fd7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x135fd7,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x135fd7,'Restore\x20this\x20revision')};return _0x336fa9['map'](_0x5f65d1=>{const _0x2efbda=_0x2703ab[_0x5f65d1['name']];return _0x2efbda&&_0x2efbda!==_0x5f65d1['name']&&(_0x5f65d1['name']=_0x2efbda),_0x5f65d1;});}(_0x5da675,_0x1ce667),_0x31897a=new _0x40f1c6();for(const _0x4439b0 of _0x34fd68){const _0x2d405d={'type':'button','model':new to({'label':_0x4439b0['name'],'class':_0x4439b0['class'],'withText':!0x0,'role':'menuitem','_action':_0x4439b0['action']})};_0x2d405d['model']['bind']('isEnabled')['to'](_0x5da675,'isActionsDropdownOpen',_0x56c1e7=>'function'!=typeof _0x4439b0['isEnabled']||(!_0x56c1e7||_0x4439b0['isEnabled'](_0x5da675))),_0x31897a['add'](_0x2d405d);}return _0x31897a;}(_0x57bf18,_0x13cf75);return _0x57bf18['bind']('isActionsDropdownOpen')['to'](_0x5f16b7,'isOpen'),_0x5f16b7['buttonView']['set']({'label':m(_0x3b3ed0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x575b19}),_0x5f16b7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3e3acb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3e3acb['to'](_0x44ba97=>_0x44ba97['stopPropagation']())}}),_0x5f16b7['on']('execute',_0x4c1e5c=>{_0x57bf18['isReady']&&'function'==typeof _0x4c1e5c['source']['_action']&&_0x4c1e5c['source']['_action'](_0x57bf18);}),_0x39fd9f(_0x5f16b7,_0x360762,{'role':'menu'}),_0x5f16b7['listenTo'](_0x57bf18,'change:isActionsDropdownOpen',(_0x27ca45,_0x182e86,_0x3e30c0)=>{if(_0x3e30c0)for(const _0x5dbb76 of _0x5f16b7['listView']['items']){const _0x554bbb=_0x5dbb76['children']['first'],_0x3c8be8=_0x13cf75['find'](_0x435936=>_0x435936['action']===_0x554bbb['_action'])['isVisible'];_0x5dbb76['isVisible']=void 0x0===_0x3c8be8||_0x3c8be8(_0x57bf18);}}),_0x5f16b7;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x2a6632,uid as _0x506dfc,Collection as _0x379dd0,logWarning as _0x3d0d05,FocusTracker as _0x207f11,KeystrokeHandler as _0x91ba64,scrollViewportToShowTarget as _0x32b079,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x1dc26f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2b1973,set as _0x114070,unset as _0x51ddb3,isEqual as _0x4a9e9c}from'es-toolkit/compat';import{Plugin as _0x30489c,PendingActions as _0x177daa,Command as _0x3068ad,ElementApiMixin as _0x17b6f3,Editor as _0x36b6af}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x9482fc,getMarkerDomElement as _0x54852a,ConfirmMixin as _0x379f7d,sanitizeEditorConfig as _0x5f47aa}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x543914,ViewAttributeElement as _0x42a777,ViewEmptyElement as _0x223628,ViewRawElement as _0x70c8d6,ViewUIElement as _0x5f8ef4,ViewDocumentFragment as _0xa6ba10,ViewText as _0x41cee8,ViewElement as _0x1ccf8b,ModelElement as _0x236395,ModelRange as _0x9392bd,ModelPosition as _0xa02f8d,ModelDocumentFragment as _0x416f4f,ModelText as _0x5fe234}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x24a4bf,IconChevronUp as _0x42f1c3,IconChevronDown as _0x2114d9,IconUndo as _0xa73157,IconUser as _0x16bbae,IconThreeVerticalDots as _0x2cc398}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x5c43ef,View as _0x171a1e,submitHandler as _0x1a07ed,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x2bc12f,ListView as _0x40ea23,ListItemView as _0x58de4d,ButtonView as _0x2f07f1,MenuBarMenuView as _0x2b9551,MenuBarMenuListView as _0x4dd3bc,MenuBarMenuListItemView as _0x82f3ec,MenuBarMenuListItemButtonView as _0x30717,ContextualBalloon as _0x190eaa,ToolbarSeparatorView as _0xa1dda6,IconView as _0x28b393,addListToDropdown as _0x4403f9,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x5c0eb0,StickyPanelView as _0x516ce3,ToolbarView as _0x5e1d6e,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x222a11}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a6632(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x12818c){super(),this['id']=_0x12818c['id']||_0x506dfc(),this['creator']=_0x12818c['creator']||null,this['authors']=_0x12818c['authors']||[],this['diffData']=_0x12818c['diffData']||null,this['toVersion']=_0x12818c['toVersion']||0x0,this['fromVersion']=_0x12818c['fromVersion']||0x0,this['set']('name',_0x12818c['name']||''),this['set']('createdAt',_0x12818c['createdAt']||new Date()),this['set']('attributes',_0x12818c['attributes']||{});}['setName'](_0x5ea931){this['_update']({'name':_0x5ea931});}['setAttribute'](_0x10fc1b,_0x6c286f){const _0x18a772=_0x2b1973(this['attributes']);_0x114070(_0x18a772,_0x10fc1b,_0x6c286f),this['_update']({'attributes':_0x18a772});}['removeAttribute'](_0x423bbb){const _0x2b334c=_0x2b1973(this['attributes']);_0x51ddb3(_0x2b334c,_0x423bbb),this['_update']({'attributes':_0x2b334c});}['_update'](_0x4cf318,_0x2972e4=!0x1){let _0x130127=!0x1;const _0x437827={'id':this['id']},_0x370dc2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a0e4e of _0x370dc2){const _0x4969f9=_0x4cf318[_0x5a0e4e];void 0x0!==_0x4969f9&&_0x4969f9!==this[_0x5a0e4e]&&(this[_0x5a0e4e]=_0x4969f9,_0x437827[_0x5a0e4e]=_0x4969f9,_0x130127=!0x0);}_0x130127&&(_0x437827['authors']&&(_0x437827['authorsIds']=_0x437827['authors']['map'](_0x2ca8e6=>_0x2ca8e6['id']),delete _0x437827['authors']),this['fire']('_update',_0x437827,_0x2972e4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xe7e6d4=>_0xe7e6d4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x30489c{['_revisions'];static get['requires'](){return[_0x9482fc];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x12fb5c){super(_0x12fb5c),this['_revisions']=new _0x379dd0();}['afterInit'](){!async function(_0x1aa914){const _0xf141d3=_0x564b22([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x490bf6=0xeb829,_0x4d759d=0x7374585f,_0x13897e=0x73732e77^_0x4d759d,_0x226d4e=window[_0x564b22([0x44,0x61,0x74,0x65])][_0x564b22([0x6e,0x6f,0x77])](),_0x518938=_0x1aa914[_0x564b22([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x147bec=new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36dd2b=>{_0x518938[_0x564b22([0x6f,0x6e,0x63,0x65])](_0x564b22([0x72,0x65,0x61,0x64,0x79]),_0x36dd2b);}),_0x5a5676={[_0x564b22([0x6b,0x74,0x79])]:_0x564b22([0x45,0x43]),[_0x564b22([0x75,0x73,0x65])]:_0x564b22([0x73,0x69,0x67]),[_0x564b22([0x63,0x72,0x76])]:_0x564b22([0x50,0x2d,0x32,0x35,0x36]),[_0x564b22([0x78])]:_0x564b22([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]),[_0x564b22([0x79])]:_0x564b22([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]),[_0x564b22([0x61,0x6c,0x67])]:_0x564b22([0x45,0x53,0x32,0x35,0x36])},_0x778802=_0x518938[_0x564b22([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x564b22([0x67,0x65,0x74])](_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22289c(){let _0x54fa8f,_0x2947e8=null,_0x14a9a5=null;try{if(_0x778802==_0x564b22([0x47,0x50,0x4c]))return _0x564b22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54fa8f=_0x563c7f(),!_0x54fa8f)return _0x564b22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54fa8f[_0x564b22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14a9a5=_0x23ea2b(_0x54fa8f[_0x564b22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54fa8f[_0x564b22([0x6a,0x74,0x69])])),await _0x3489f7()?_0x36955d()?_0x3ae3fe()?_0x564b22([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x380a86()?(_0x54fa8f[_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x564b22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2947e8=_0x320bbb(_0x564b22([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x54fa8f[_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x564b22([0x74,0x72,0x69,0x61,0x6c])&&(_0x2947e8=_0x320bbb(_0x564b22([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56d3d7()):_0x564b22([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x564b22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x564b22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x564b22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ae3fe(){const _0x535cf9=[_0x564b22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x564b22([0x74,0x72,0x69,0x61,0x6c])][_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54fa8f[_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x226d4e/0x3e8:0xe10*_0x13897e;return _0x54fa8f[_0x564b22([0x65,0x78,0x70])]<_0x535cf9;}function _0x36955d(){const _0x957d=_0x54fa8f[_0x564b22([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x957d)return!0x1;if(_0x957d[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564b22([0x2a])))return!0x0;if(_0x957d[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564b22([0x52,0x48])))return!0x0;if(_0x957d[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564b22([0x52,0x52,0x48]))){if(_0x22a41f())return!0x0;if(_0x41e250()||_0x163950())return!0x0;}return!0x1;}function _0x380a86(){const _0x230869=_0x54fa8f[_0x564b22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x230869||0x0==_0x230869[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dd5e5}=new URL(window[_0x564b22([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x230869[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dd5e5))return!0x0;const _0x43f8ef=_0x5dd5e5[_0x564b22([0x73,0x70,0x6c,0x69,0x74])](_0x564b22([0x2e]));return _0x230869[_0x564b22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18eb04=>_0x18eb04[_0x564b22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564b22([0x2a])))[_0x564b22([0x6d,0x61,0x70])](_0x2491ac=>_0x2491ac[_0x564b22([0x73,0x70,0x6c,0x69,0x74])](_0x564b22([0x2e])))[_0x564b22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28c65c=>_0x28c65c[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x43f8ef[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x564b22([0x6d,0x61,0x70])](_0x3b972d=>Array(_0x43f8ef[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b972d[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x564b22([0x66,0x69,0x6c,0x6c])](_0x3b972d[0x0]===_0x564b22([0x2a])?_0x564b22([0x2a]):'')[_0x564b22([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b972d))[_0x564b22([0x73,0x6f,0x6d,0x65])](_0x13c8c1=>_0x43f8ef[_0x564b22([0x65,0x76,0x65,0x72,0x79])]((_0x20b95e,_0x435f26)=>_0x13c8c1[_0x435f26]===_0x20b95e||_0x13c8c1[_0x435f26]===_0x564b22([0x2a])));}function _0x56d3d7(){return _0x2947e8&&_0x14a9a5?new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24d0c0,_0x4c6dfd)=>{_0x2947e8[_0x564b22([0x74,0x68,0x65,0x6e])](_0x24d0c0,_0x4c6dfd),_0x14a9a5[_0x564b22([0x74,0x68,0x65,0x6e])](_0xb0cc9=>{_0xb0cc9!=_0x564b22([0x56,0x61,0x6c,0x69,0x64])&&_0x24d0c0(_0xb0cc9);},_0x4c6dfd);}):_0x2947e8||_0x14a9a5||_0x564b22([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23ea2b(_0xfc3b3c,_0x51d4df){return new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x563432=>{if(_0x4bc4ef())return _0x563432(_0x564b22([0x56,0x61,0x6c,0x69,0x64]));_0x16b5f4(),_0x518938[_0x564b22([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x564b22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cc373=!0x1;const _0x3a20d5=_0x506dfc();function _0x2c55d0(_0x4253e7){return!!_0x4253e7&&(typeof _0x4253e7===_0x564b22([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4253e7===_0x564b22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4253e7[_0x564b22([0x74,0x68,0x65,0x6e])]===_0x564b22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4253e7[_0x564b22([0x63,0x61,0x74,0x63,0x68])]===_0x564b22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a61ba(_0x268bba){_0x5ecd63(_0x268bba)[_0x564b22([0x74,0x68,0x65,0x6e])](_0xeb832c=>{if(!_0xeb832c||_0xeb832c[_0x564b22([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x564b22([0x6f,0x6b]))return _0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x353c73(_0x75afc4(_0x3a20d5+_0x51d4df))!=_0xeb832c[_0x564b22([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x564b22([0x56,0x61,0x6c,0x69,0x64]);})[_0x564b22([0x74,0x68,0x65,0x6e])](_0x310a0e=>(_0xec9f4c(),_0x310a0e),()=>{const _0x25ac2c=_0x23b21c();return null==_0x25ac2c?(_0xec9f4c(),_0x564b22([0x56,0x61,0x6c,0x69,0x64])):_0x564b22(_0x226d4e-_0x25ac2c>(0x5778dc5f^_0x4d759d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x564b22([0x74,0x68,0x65,0x6e])](_0x563432)[_0x564b22([0x63,0x61,0x74,0x63,0x68])](()=>{_0x563432(_0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16af6d=0x7342b6df^_0x4d759d;function _0xec9f4c(){const _0x5c8157=_0x564b22([0x6c,0x6c,0x63,0x74,0x2d])+_0x353c73(_0x75afc4(_0xfc3b3c)),_0x4d6d40=_0xc1f73d(_0x353c73(window[_0x564b22([0x4d,0x61,0x74,0x68])][_0x564b22([0x63,0x65,0x69,0x6c])](_0x226d4e/_0x16af6d)));window[_0x564b22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x564b22([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c8157,_0x4d6d40);}function _0x23b21c(){const _0x595ea7=_0x564b22([0x6c,0x6c,0x63,0x74,0x2d])+_0x353c73(_0x75afc4(_0xfc3b3c)),_0x57d7c4=window[_0x564b22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x564b22([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x595ea7);return _0x57d7c4?window[_0x564b22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc1f73d(_0x57d7c4),0x10)*_0x16af6d:null;}function _0x5ecd63(_0x735985){return new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40719a,_0x2c724a)=>{_0x735985[_0x564b22([0x74,0x68,0x65,0x6e])](_0x40719a,_0x2c724a),window[_0x564b22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c724a,0x73758c9f^_0x4d759d);});}}_0x518938[_0x564b22([0x6f,0x6e])](_0x564b22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26d07b,_0x10281c)=>{if(_0x10281c[0x0]!=_0xfc3b3c)return _0x563432(_0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10281c[0x1]={..._0x10281c[0x1],[_0x564b22([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a20d5};},{[_0x564b22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x564b22([0x68,0x69,0x67,0x68])}),_0x518938[_0x564b22([0x6f,0x6e])](_0x564b22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1711cb=>{_0x2c55d0(_0x1711cb[_0x564b22([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cc373=!0x0,_0x2a61ba(_0x1711cb[_0x564b22([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x564b22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x564b22([0x6c,0x6f,0x77])}),_0x147bec[_0x564b22([0x74,0x68,0x65,0x6e])](()=>{_0x1cc373||_0x563432(_0x564b22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4bc4ef(){return _0x518938[_0x564b22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x564b22([0x76,0x69,0x65,0x77])][_0x564b22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x564b22([0x61,0x75,0x74,0x6f]);}function _0x16b5f4(){_0x518938[_0x564b22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x564b22([0x76,0x69,0x65,0x77])][_0x564b22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x564b22([0x61,0x75,0x74,0x6f]);}}function _0x320bbb(_0x5b243d){const _0x4658bc=[new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f06c=>setTimeout(_0x36f06c,0x737d6693^_0x4d759d)),_0x147bec[_0x564b22([0x74,0x68,0x65,0x6e])](()=>new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22811d=>{const _0x19c7ff=0x73745858^_0x4d759d,_0x5bf382=_0x1aa914[_0x564b22([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x414688(){_0x5bf382[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x19c7ff&&_0x22811d();}_0x414688(),_0x5bf382[_0x564b22([0x6f,0x6e])](_0x564b22([0x61,0x64,0x64]),_0x414688);})),new window[(_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c4ce=>{function _0x401a48(){for(const _0x2b94d9 in window)if(window[_0x564b22([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x564b22([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2b94d9))&&window[_0x2b94d9]==_0x490bf6)return _0x32c4ce();_0x518938[_0x564b22([0x73,0x74,0x61,0x74,0x65])]!=_0x564b22([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x564b22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x401a48,0x73744bd7^_0x4d759d);}_0x18ac40(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x401a48();})];return window[_0x564b22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x564b22([0x72,0x61,0x63,0x65])](_0x4658bc)[_0x564b22([0x74,0x68,0x65,0x6e])](()=>_0x5b243d);}async function _0x3f2aed(){if(await _0x147bec,_0x18ac40(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3489ee=_0x1aa914[_0x564b22([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2f9c1c=_0x1aa914[_0x564b22([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])](_0x3489ee[_0x564b22([0x69,0x64])]),_0x2fc18a=_0x307740(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2fc18a[_0x564b22([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3489ee['id'],_0x2f9c1c?_0x2f9c1c['id']:null,!0x0),_0x2fc18a[_0x564b22([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x564b22([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2fc18a[_0x564b22([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2fc18a[_0x564b22([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1106bc,void(_0x2fc18a[_0x564b22([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1106bc);}if(_0x18ac40(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5084d2=_0x307740(_0x564b22([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5084d2[_0x564b22([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x564b22([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5084d2[_0x564b22([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5084d2[_0x564b22([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1106bc,_0x5084d2[_0x564b22([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1106bc;}_0x518938[_0x564b22([0x6d,0x6f,0x64,0x65,0x6c])][_0x564b22([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1106bc,_0x518938[_0x564b22([0x6d,0x6f,0x64,0x65,0x6c])][_0x564b22([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1106bc,_0x518938[_0x564b22([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x564b22([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22a41f(){return _0x18ac40(_0x564b22([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x307740(_0x564b22([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x564b22([0x73,0x74,0x61,0x74,0x65])]==_0x564b22([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x41e250(){return _0x18ac40(_0x564b22([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 _0x163950(){return _0x18ac40(_0x564b22([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa2fe7a(_0x33b8aa){const _0x2517bb=_0x16554f();_0x518938[_0x2517bb]=_0x564b22([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])+_0x33b8aa,_0x33b8aa[_0x564b22([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x564b22([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x16554f()]=_0x490bf6),_0x33b8aa!=_0x564b22([0x56,0x61,0x6c,0x69,0x64])&&_0x3f2aed();}function _0x16554f(){const _0x111d64=window[_0x564b22([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x564b22([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x564b22([0x6e,0x6f,0x77])]())[_0x564b22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x564b22([0x2e]),'');let _0x5f3ea4=_0x564b22([0x73]);for(let _0x314a2a=0x0;_0x314a2a<_0x111d64[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x314a2a+=0x2){let _0x5d58a5=window[_0x564b22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x111d64[_0x564b22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x314a2a,_0x314a2a+0x2));_0x5d58a5>=_0xf141d3[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d58a5-=_0xf141d3[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f3ea4+=_0xf141d3[_0x5d58a5];}return _0x5f3ea4;}function _0x563c7f(){const _0x5dcc17=_0x778802[_0x564b22([0x73,0x70,0x6c,0x69,0x74])](_0x564b22([0x2e]));if(0x3!=_0x5dcc17[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29b9(_0x5dcc17[0x1]);function _0x29b9(_0x105579){const _0x4d0ea2=_0x5d26d2(_0x105579);return _0x4d0ea2&&_0x2f8ddb()?_0x4d0ea2:null;function _0x2f8ddb(){const _0xad8cf2=_0x4d0ea2[_0x564b22([0x6a,0x74,0x69])],_0x3d328a=window[_0x564b22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xad8cf2[_0x564b22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xad8cf2[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a4a78={..._0x4d0ea2,[_0x564b22([0x6a,0x74,0x69])]:_0xad8cf2[_0x564b22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xad8cf2[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a4a78[_0x564b22([0x76,0x63])],_0x75afc4(_0x1a4a78)==_0x3d328a;}}}async function _0x3489f7(){let _0x20a3fb=!0x0;try{const _0x1e4bc5=_0x778802[_0x564b22([0x73,0x70,0x6c,0x69,0x74])](_0x564b22([0x2e])),[_0x1a03a6,_0x21c6e3,_0x1fc6e0]=_0x1e4bc5;return _0x224b22(_0x1a03a6),await _0x21e383(_0x1a03a6,_0x21c6e3,_0x1fc6e0),_0x20a3fb;}catch{return!0x1;}function _0x224b22(_0x107208){const _0x22943c=_0x5d26d2(_0x107208);_0x22943c&&_0x22943c[_0x564b22([0x61,0x6c,0x67])]==_0x564b22([0x45,0x53,0x32,0x35,0x36])||(_0x20a3fb=!0x1);}async function _0x21e383(_0x3ce6a5,_0x4f6442,_0x313973){const _0x44809d=window[_0x564b22([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x564b22([0x66,0x72,0x6f,0x6d])](_0x4a91cb(_0x313973),_0x17ad4c=>_0x17ad4c[_0x564b22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x334f12=new window[(_0x564b22([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x564b22([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ce6a5+_0x564b22([0x2e])+_0x4f6442),_0x3aa5f8=window[_0x564b22([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x564b22([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3aa5f8)return;const _0x5640fc=await _0x3aa5f8[_0x564b22([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x564b22([0x6a,0x77,0x6b]),_0x5a5676,{[_0x564b22([0x6e,0x61,0x6d,0x65])]:_0x564b22([0x45,0x43,0x44,0x53,0x41]),[_0x564b22([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x564b22([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x564b22([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3aa5f8[_0x564b22([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x564b22([0x6e,0x61,0x6d,0x65])]:_0x564b22([0x45,0x43,0x44,0x53,0x41]),[_0x564b22([0x68,0x61,0x73,0x68])]:{[_0x564b22([0x6e,0x61,0x6d,0x65])]:_0x564b22([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5640fc,_0x44809d,_0x334f12)||(_0x20a3fb=!0x1);}}function _0x5d26d2(_0x3f091e){return _0x3f091e[_0x564b22([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x564b22([0x65,0x79]))?JSON[_0x564b22([0x70,0x61,0x72,0x73,0x65])](_0x4a91cb(_0x3f091e)):null;}function _0x4a91cb(_0x36dcd7){return window[_0x564b22([0x61,0x74,0x6f,0x62])](_0x36dcd7[_0x564b22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x564b22([0x2b]))[_0x564b22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x564b22([0x2f])));}function _0x75afc4(_0x32958e){let _0x32c43e=0x1505;function _0x344ee3(_0x3e6c14){for(let _0xe4a921=0x0;_0xe4a921<_0x3e6c14[_0x564b22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe4a921++){const _0x5f57e5=_0x3e6c14[_0x564b22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe4a921);_0x32c43e=(_0x32c43e<<0x5)+_0x32c43e+_0x5f57e5,_0x32c43e&=_0x32c43e;}}function _0x25d909(_0x58bd63){Array[_0x564b22([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58bd63)?_0x58bd63[_0x564b22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25d909):_0x58bd63&&typeof _0x58bd63==_0x564b22([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x564b22([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58bd63)[_0x564b22([0x73,0x6f,0x72,0x74])]()[_0x564b22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a073c,_0x5b6b90])=>{_0x344ee3(_0x2a073c),_0x25d909(_0x5b6b90);}):_0x344ee3(window[_0x564b22([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58bd63));}return _0x25d909(_0x32958e),_0x32c43e>>>0x0;}function _0x353c73(_0x37a2cf){return _0x37a2cf[_0x564b22([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x564b22([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x564b22([0x30]));}function _0xc1f73d(_0x67641f){return _0x67641f[_0x564b22([0x73,0x70,0x6c,0x69,0x74])]('')[_0x564b22([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x564b22([0x6a,0x6f,0x69,0x6e])]('');}function _0x18ac40(_0x28dd38){return _0x518938[_0x564b22([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x564b22([0x68,0x61,0x73])](_0x28dd38);}function _0x307740(_0xf3d3fa){return _0x518938[_0x564b22([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x564b22([0x67,0x65,0x74])](_0xf3d3fa);}function _0x1106bc(){}function _0x564b22(_0x17e829){return _0x17e829['map'](_0x34f1b5=>String['fromCharCode'](_0x34f1b5))['join']('');}_0xa2fe7a(await _0x22289c());}(this);}['createRevision'](_0x4ce81){const _0x441666=this['editor']['plugins']['get']('Users');return new I({'id':_0x4ce81['id'],'name':_0x4ce81['name'],'creator':_0x4ce81['creatorId']?_0x441666['getUser'](_0x4ce81['creatorId']):null,'diffData':_0x4ce81['diffData']||_0x4ce81['data'],'authors':_0x4ce81['authorsIds']['map'](_0x45fb4b=>_0x441666['getUser'](_0x45fb4b)),'createdAt':new Date(_0x4ce81['createdAt']),'attributes':_0x4ce81['attributes'],'fromVersion':_0x4ce81['fromVersion'],'toVersion':_0x4ce81['toVersion']});}['addRevision'](_0x2505c8,_0xd04bf4=0x0){this['_revisions']['add'](_0x2505c8,_0xd04bf4);}['getRevision'](_0x2f21bd){return this['_revisions']['get'](_0x2f21bd);}['getRevisions'](_0x31b770={'toJSON':!0x1}){const _0x368c29=Array['from'](this['_revisions']);return _0x368c29['reverse'](),_0x31b770['toJSON']?_0x368c29['map'](_0x73a0ad=>_0x73a0ad['toJSON']()):_0x368c29;}['getIndex'](_0x4e3a50){return this['_revisions']['getIndex'](_0x4e3a50);}['getEarlierVisibleRevision'](_0x35b147){const [,_0x5dce91]=this['getRevisionsIterator'](_0x35b147,{'direction':'earlier'});return _0x5dce91;}['getLaterVisibleRevision'](_0x21cb42){const [,_0x221dfd]=this['getRevisionsIterator'](_0x21cb42,{'direction':'later'});return _0x221dfd;}['getRevisionsInDiff'](_0xa61871){const _0x550d2b=[];for(const _0x3193a7 of this['getRevisionsIterator'](_0xa61871['newRevisionId']))if(_0x550d2b['push'](_0x3193a7),_0x3193a7['id']===_0xa61871['oldRevisionId'])break;return _0x550d2b;}*['getRevisionsIterator'](_0x429148,{direction:_0x43b1f2='earlier',filter:_0x51bb77=()=>!0x0}={}){const _0x56fba9='earlier'===_0x43b1f2?0x1:-0x1;let _0x5b1e6c=this['_revisions']['get'](_0x429148),_0x469a9f=this['getIndex'](_0x5b1e6c);for(yield _0x5b1e6c;_0x5b1e6c;){if(_0x469a9f+=_0x56fba9,_0x5b1e6c=this['getRevision'](_0x469a9f),!_0x5b1e6c)return;_0x51bb77(_0x5b1e6c)&&(yield _0x5b1e6c);}}}class $ extends _0x30489c{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x543914,'c'],[_0x42a777,'a'],[_0x223628,'e'],[_0x70c8d6,'r'],[_0x5f8ef4,'u']]);['_typeCharToViewClass']=new Map([['c',_0x543914],['a',_0x42a777],['e',_0x223628],['r',_0x70c8d6],['u',_0x5f8ef4]]);async['loadRevisionData'](_0x29db4f,_0x33d0ab){if(_0x29db4f['diffData']||!_0x33d0ab)return;const _0x42704e=this['editor']['config']['get']('collaboration.channelId'),_0x266aeb=await _0x33d0ab['getRevision']({'channelId':_0x42704e,'revisionId':_0x29db4f['id']});_0x29db4f['diffData']=_0x266aeb['diffData'];}['getRevisionDocumentData'](_0x3edbfd){const _0x5c3f82={};for(const _0x2b280c in _0x3edbfd['diffData']){if(_0x3edbfd['diffData'][_0x2b280c]['attachChange']&&!_0x3edbfd['diffData'][_0x2b280c]['attachChange']['isAttached'])continue;const _0x2a5cf9=this['_removeRevisionMarkers'](JSON['parse'](_0x3edbfd['diffData'][_0x2b280c]['insertions'])),_0x5d330b=this['editor']['editing']['view']['document'],_0x869e92=new _0xa6ba10(_0x5d330b,_0x2a5cf9['map'](_0x1c1a6=>this['_getViewFromDiffObj'](_0x1c1a6,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5c3f82[_0x2b280c]=this['editor']['data']['processor']['toData'](_0x869e92),this['editor']['data']['processor']['useFillerType']('default');}return _0x5c3f82;}['getRevisionRootsAttributes'](_0x4819f9){const _0x291735={};for(const _0x5bb930 in _0x4819f9['diffData'])_0x4819f9['diffData'][_0x5bb930]['attachChange']&&!_0x4819f9['diffData'][_0x5bb930]['attachChange']['isAttached']||(_0x291735[_0x5bb930]=_0x4819f9['diffData'][_0x5bb930]['attributesAfter']||{});return _0x291735;}['_getTypeCharForViewElement'](_0x29f472){return this['_viewClassToTypeChar']['get'](_0x29f472['constructor']);}['_getViewFromDiffObj'](_0x1f63c0,_0x4dfc47){const _0x4e4782=this['editor']['editing']['view']['document'];if('string'==typeof _0x1f63c0)return new _0x41cee8(_0x4e4782,_0x1f63c0);{let _0x24accf,_0x17aa84;_0x17aa84='u'==_0x1f63c0['type']||'r'==_0x1f63c0['type']?[]:_0x1f63c0['children']['map'](_0x2adea8=>this['_getViewFromDiffObj'](_0x2adea8,_0x4dfc47));const _0x5d60f7=this['_typeCharToViewClass']['get'](_0x1f63c0['type'])||_0x1ccf8b,_0x5e8dc6=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x24accf=new _0x5d60f7(_0x4e4782,_0x1f63c0['name'],_0x1f63c0['attributes'],_0x17aa84),'u'==_0x1f63c0['type']&&_0x1f63c0['children'][0x0]){const _0x362f9e=_0x1f63c0['children'][0x0];if(_0x24accf['render']=function(_0x4536e5){const _0x37603a=_0x4536e5['createElement']('div');return _0x37603a['innerHTML']=_0x362f9e,_0x37603a['childNodes'][0x0];},_0x4dfc47){const _0x338d0c=new _0xa6ba10(_0x4e4782);_0x338d0c['_appendChild'](_0x24accf);const _0xeb6d52=Array['from'](_0x5e8dc6['viewChildrenToDom'](_0x338d0c,{'bind':!0x1})),_0x4e588f=_0x5e8dc6['domDocument']['createElement']('div');_0x4e588f['append'](..._0xeb6d52),_0x24accf=Array['from'](_0x5e8dc6['domChildrenToView'](_0x4e588f))[0x0];}}else{if('r'==_0x1f63c0['type']&&_0x1f63c0['children'][0x0]){const _0x2a54ee=_0x1f63c0['children'][0x0];if(_0x24accf['render']=function(_0x2a4776){_0x2a4776['innerHTML']=_0x2a54ee;},_0x4dfc47){const _0x237505=new _0xa6ba10(_0x4e4782);_0x237505['_appendChild'](_0x24accf);const _0x3eec89=Array['from'](_0x5e8dc6['viewChildrenToDom'](_0x237505,{'bind':!0x1})),_0x2a9e6a=_0x5e8dc6['domDocument']['createElement']('div');_0x2a9e6a['append'](..._0x3eec89);const _0x4b80f6=Array['from'](_0x5e8dc6['domChildrenToView'](_0x2a9e6a));_0x4b80f6['length']>0x1?_0x24accf['_appendChild'](_0x4b80f6):_0x24accf=_0x4b80f6[0x0];}}}if(_0x1f63c0['customProperties']){for(const [_0x494121,_0x5d6773]of _0x1f63c0['customProperties'])_0x24accf['_setCustomProperty'](_0x494121,_0x5d6773);}const _0x5326b2=void 0x0===_0x1f63c0['fillerOffset']?null:_0x1f63c0['fillerOffset'];return null!==_0x5326b2&&(_0x24accf['getFillerOffset']=()=>_0x5326b2),_0x24accf;}}['_makeModelFromViewString'](_0x5ddb93){const _0x52d385=JSON['parse'](_0x5ddb93),_0x3467cd=this['editor']['editing']['view']['document'],_0x4bc505=new _0xa6ba10(_0x3467cd,_0x52d385['map'](_0x1f79f6=>this['_getViewFromDiffObj'](_0x1f79f6,!0x0)));return this['editor']['data']['toModel'](_0x4bc505);}['_removeRevisionMarkers'](_0x4b29b7){return(_0x4b29b7=_0x4b29b7['filter'](_0x10fb90=>!_0x10fb90['name']||'revision-start'!==_0x10fb90['name']&&'revision-end'!==_0x10fb90['name']))['forEach'](_0x5a2c09=>{'string'!=typeof _0x5a2c09&&(_0x5a2c09['children']=this['_removeRevisionMarkers'](_0x5a2c09['children']),_0x5a2c09['attributes']=_0x5a2c09['attributes']['filter'](_0x212c7b=>!_0x212c7b[0x0]['startsWith']('data-revision-')));}),_0x4b29b7;}}function m(_0x3e4f18,_0x270623,_0x267e49){const t=_0x3e4f18['t'];switch(_0x270623){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'},_0x267e49);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x267e49);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 _0x30489c{['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[_0x9482fc,S,$,_0x177daa];}constructor(_0x3b58f1){super(_0x3b58f1),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 _0x302747=_0x506dfc();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x302747},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 _0x378543=this['repository']['getRevision'](0x0),_0x409a6c=_0x378543&&null===_0x378543['creator']?_0x378543:null;if(this['_continueCurrentRevision']=!!_0x409a6c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x7cb39c=this['_source']['getCurrentRevisionId'](),_0x3144e8=this['repository']['getRevision'](_0x7cb39c);if(_0x3144e8)this['_startingVersion']=_0x3144e8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x241d26=this['_source']['history']['_operations']['find'](_0x3e26fb=>!_0x3e26fb['_isInit']),_0x20d62b=_0x241d26?_0x241d26['baseVersion']:this['_source']['history']['version'];_0x378543?(_0x378543['toVersion']<_0x20d62b&&_0x378543['_update']({'toVersion':_0x20d62b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x409a6c['id'],this['_startingVersion']=_0x409a6c['fromVersion']):(this['_startingVersion']=_0x378543['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x20d62b,this['_continueCurrentRevision']=!0x1);}}else _0x409a6c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x409a6c['toVersion'],this['editor']['model']['document']['history']['version']),_0x409a6c['fromVersion']===_0x409a6c['toVersion']?(0x0!==_0x409a6c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x409a6c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x409a6c['id'],this['_startingVersion']=_0x409a6c['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',_0x54c798=>!_0x54c798),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5efb7e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2fe694;for(const _0xa5fca6 in _0x5efb7e){const _0xdaff57=_0xa5fca6,_0x12286f=_0x5efb7e[_0xdaff57];if('revisionHistoryLicenseKeyValid'==_0x12286f||'revisionHistoryLicenseKeyInvalid'==_0x12286f||'revisionHistoryLicenseKeyExpired'==_0x12286f||'revisionHistoryLicenseKeyDomainLimit'==_0x12286f||'revisionHistoryLicenseKeyNotAllowed'==_0x12286f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x12286f||'revisionHistoryLicenseKeyTrialLimit'==_0x12286f||'revisionHistoryLicenseKeyUsageLimit'==_0x12286f){delete _0x5efb7e[_0xdaff57],_0x2fe694=_0x12286f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2fe694&&_0x5efb7e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2fe694&&_0x5efb7e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2fe694&&_0x5efb7e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2fe694&&_0x5efb7e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2fe694&&_0x5efb7e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2fe694&&_0x5efb7e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2fe694&&_0x5efb7e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2dea11=this['repository']['getRevision'](0x0),_0x5f2b02=await this['getRevisionDocumentData'](_0x2dea11),_0x1af5bb=await this['getRevisionRootsAttributes'](_0x2dea11);this['_replaceEditorDataWithRevisionData'](_0x5f2b02,_0x1af5bb);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xbe1de9){this['_source']=_0xbe1de9;}async['update'](){const _0x2f5486=await this['_source']['getLatestVersion']();if(_0x2f5486>this['currentRevision']['toVersion']){await this['_loadState']();const _0x573cbc=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2f5486});_0x573cbc['authors']=_0x573cbc['authorsIds']['map'](_0x4884a1=>this['editor']['plugins']['get']('Users')['getUser'](_0x4884a1)),this['currentRevision']['_update'](_0x573cbc);}}async['saveRevision'](_0x53c258={},_0x151479=null){const _0x1139da=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x151479>this['currentRevision']['toVersion']&&(_0x151479=null),null===_0x151479&&(_0x151479=await this['_source']['getLatestVersion']());const _0x2f5f21=this['_getFromVersion'](_0x151479),_0x4b2ea1=this['buildRevisionData']({'from':_0x2f5f21,'to':_0x151479});if(this['currentRevision']['toVersion']<_0x151479){const _0x565724=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x151479,'to':_0x151479});_0x565724['authors']=[],_0x565724['authorsIds']=[],_0x565724['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x565724,!0x0),delete _0x565724['authors'],_0x1139da['push'](_0x565724);}_0x53c258['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x53c258['name']=_0x53c258['name']||null,_0x53c258['id']=_0x53c258['id']||_0x506dfc(),_0x53c258={..._0x53c258,..._0x4b2ea1};const _0x2a6dea=this['addRevisionData'](_0x53c258);_0x1139da['push'](_0x53c258);const _0x38328e=this['repository']['getIndex'](_0x2a6dea);if(0x0!==_0x38328e){const _0xa94f08=this['repository']['getRevision'](_0x38328e-0x1);if(_0xa94f08['fromVersion']!==_0x151479){const _0x2bede8=this['_revisionDataBuilder']['getData'](_0x151479,_0xa94f08['toVersion']),_0x530344={'id':_0xa94f08['id'],'diffData':_0x2bede8['diffData'],'authorsIds':_0x2bede8['authorsIds'],'authors':_0x2bede8['authorsIds']['map'](_0x5967c4=>this['editor']['plugins']['get']('Users')['getUser'](_0x5967c4)),'fromVersion':_0x151479};_0xa94f08===this['currentRevision']&&(_0x530344['createdAt']=new Date(_0x53c258['createdAt']['getTime']()+0xa)),_0xa94f08['_update'](_0x530344,!0x0),delete _0x530344['authors'],_0x1139da['push'](_0x530344);}}if(this['adapter']){for(const _0x27c192 of _0x1139da)this['_bufferUpdate'](_0x27c192['id'],_0x27c192,!0x0);this['sendBufferedUpdates']();}return _0x2a6dea;}['addRevisionData'](_0x1b62e8){const _0x8a639b=this['repository']['createRevision'](_0x1b62e8);return this['adapter']&&_0x8a639b['on']('_update',(_0x40c3bd,_0x4167cb,_0x244563)=>{_0x244563||(this['_bufferUpdate'](_0x4167cb['id'],_0x4167cb,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x8a639b,this['_findInsertionIndex'](_0x8a639b)),_0x8a639b;}async['getRevisionDocumentData'](_0x2160c4){return await this['_utils']['loadRevisionData'](_0x2160c4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2160c4);}async['getRevisionRootsAttributes'](_0x4c63e2){return await this['_utils']['loadRevisionData'](_0x4c63e2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4c63e2);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x450ee2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5b3bd4=0x0;_0x5b3bd4<_0x450ee2['length'];_0x5b3bd4++){const _0x41169d=_0x450ee2[_0x5b3bd4];let _0x304d47=!0x1;for(const _0x170784 of Object['keys'](_0x41169d))void 0x0===_0x41169d[_0x170784]?delete _0x41169d[_0x170784]:'id'!==_0x170784&&(_0x304d47=!0x0);_0x304d47||(_0x450ee2[_0x5b3bd4]=null);}if(_0x450ee2=_0x450ee2['filter'](_0xc8fb25=>null!==_0xc8fb25),!_0x450ee2['length'])return;for(let _0x135931=0x0;_0x135931<_0x450ee2['length'];_0x135931++){const _0x4af40a=_0x450ee2[_0x135931];void 0x0!==_0x4af40a['fromVersion']&&void 0x0===_0x4af40a['toVersion']&&(_0x4af40a['toVersion']=this['repository']['getRevision'](_0x4af40a['id'])['toVersion']),void 0x0!==_0x4af40a['toVersion']&&void 0x0===_0x4af40a['fromVersion']&&(_0x4af40a['fromVersion']=this['repository']['getRevision'](_0x4af40a['id'])['fromVersion']);}const _0x13d1ea=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x450ee2,_0x13d1ea)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xa01aa3=>{if(_0xa01aa3){for(const _0x510016 of _0xa01aa3)this['setRevisionData']({'id':_0x510016['id'],'createdAt':_0x510016['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x4a304e=null,from:_0x4fe122=null,to:_0x224524=null}){_0x4fe122=null!==_0x4fe122?_0x4fe122:_0x4a304e['fromVersion'],_0x224524=null!==_0x224524?_0x224524:_0x4a304e['toVersion'];const _0x5b8d67=this['_revisionDataBuilder']['getData'](_0x4fe122,_0x224524),_0x48aaf0={'diffData':_0x5b8d67['diffData'],'authorsIds':_0x5b8d67['authorsIds'],'fromVersion':_0x4fe122,'toVersion':_0x224524};if(!_0x4a304e||_0x224524!==_0x4a304e['toVersion']){const _0x330eb0=_0x224524-0x1,_0x22659a=this['_source']['history']['getOperation'](_0x330eb0);_0x48aaf0['createdAt']=_0x22659a&&_0x22659a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4fe122===this['_loadedStateData']['fromVersion']){for(const _0x17b480 of this['_loadedStateData']['authors'])_0x48aaf0['authorsIds']['includes'](_0x17b480['id'])||_0x48aaf0['authorsIds']['push'](_0x17b480['id']);}return _0x48aaf0;}['_bufferUpdate'](_0x4630bb,_0x1f2f2d,_0x31d362){if(this['_bufferedUpdates']['has'](_0x4630bb)){const _0x5e2c80=this['_bufferedUpdates']['get'](_0x4630bb);_0x1f2f2d=_0x31d362?{..._0x5e2c80,..._0x1f2f2d}:{..._0x1f2f2d,..._0x5e2c80};}this['_bufferedUpdates']['set'](_0x4630bb,_0x1f2f2d);}['setRevisionData'](_0x4c28ad){const _0x3495cf=this['repository']['getRevision'](_0x4c28ad['id']);if(_0x4c28ad['createdAt']&&(_0x4c28ad['createdAt']=new Date(_0x4c28ad['createdAt'])),_0x4c28ad['authorsIds']){const _0x335cfd=this['editor']['plugins']['get']('Users');_0x4c28ad['authors']=_0x4c28ad['authorsIds']['map'](_0x143526=>_0x335cfd['getUser'](_0x143526));}_0x3495cf['_update'](_0x4c28ad,!0x0);}['_createInitialRevision'](_0x3c1e24){const _0x1ae19b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1ae19b)this['_initialRevisionId']=_0x1ae19b['id'];else{const _0xd4581c=!this['editor']['model']['document']['roots']['find'](_0x52568e=>this['editor']['model']['hasContent'](_0x52568e)),_0x2ba037=this['editor']['plugins']['get']('Users')['me']['id'],_0x4de131=m(this['editor']['locale'],_0xd4581c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3c1e24,'to':_0x3c1e24,'id':this['_initialRevisionId'],'name':_0x4de131,'creatorId':_0x2ba037});}}['_createCurrentRevision'](_0x5a29e5){const _0x4cdf87=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4cdf87),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5a29e5,'to':_0x5a29e5,'id':_0x4cdf87,'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'](_0x3e1f32,_0x5ade8d){let _0x48972d=this['editor']['config']['get']('initialData'),_0x51beae=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x48972d){_0x48972d={};for(const _0x1a23b9 of this['editor']['model']['document']['getRootNames']())_0x48972d[_0x1a23b9]='';}if('string'==typeof _0x48972d&&(_0x48972d={'main':_0x48972d}),void 0x0===_0x51beae){_0x51beae={};for(const _0x543f94 of this['editor']['model']['document']['getRootNames']())_0x51beae[_0x543f94]={};}let _0x1238d8=!0x1;const _0x17080a=Object['keys'](_0x48972d),_0x5bea13=Object['keys'](_0x3e1f32);for(const _0x5f5547 of _0x17080a){if(_0x48972d[_0x5f5547]!==_0x3e1f32[_0x5f5547]&&''!==_0x48972d[_0x5f5547]['trim']()){_0x1238d8=!0x0;break;}if(!_0x4a9e9c(_0x51beae[_0x5f5547],_0x5ade8d[_0x5f5547])&&Object['keys'](_0x51beae[_0x5f5547])['length']>0x0){_0x1238d8=!0x0;break;}}_0x1238d8||(_0x1238d8=_0x5bea13['some'](_0x401210=>!this['editor']['model']['document']['getRoot'](_0x401210))),_0x1238d8&&_0x3d0d05('editor-initial-data-replaced-with-revision-data',{'editorData':_0x48972d,'editorRootsAttributes':_0x51beae,'revisionData':_0x3e1f32,'revisionRootsAttributes':_0x5ade8d}),this['editor']['config']['set']('initialData',_0x3e1f32),this['editor']['config']['set']('rootsAttributes',_0x5ade8d);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x7e49a2=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x7e49a2['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x32c4df){const _0x229017=this['repository']['getRevisions']();_0x229017['reverse']();let _0x4f4e76=0x0;for(;_0x4f4e76<_0x229017['length'];){const _0x763ae4=_0x229017[_0x4f4e76];if(_0x763ae4===this['currentRevision']){_0x4f4e76++;continue;}if(_0x763ae4['id']===this['_initialRevisionId'])break;const _0x430915=_0x32c4df['toVersion']-_0x763ae4['toVersion']||_0x32c4df['fromVersion']-_0x763ae4['fromVersion'];if(_0x430915>0x0)break;if(_0x430915<0x0)_0x4f4e76++;else{if(!_0x32c4df['creator']&&_0x763ae4['creator'])break;if(_0x763ae4['creator']||!_0x32c4df['creator']){if(_0x32c4df['createdAt']>_0x763ae4['createdAt'])break;_0x4f4e76++;}else _0x4f4e76++;}}return _0x4f4e76;}['_getFromVersion'](_0x1455cd){const _0x247839=this['repository']['getRevisions']();_0x247839['reverse'](),_0x247839['shift']();const _0x23bbf9=_0x247839['find'](_0x1f97a4=>_0x1f97a4['toVersion']<=_0x1455cd)['toVersion'];return _0x23bbf9<this['_startingVersion']?this['_startingVersion']:_0x23bbf9;}['_makeRevision']({name:_0x7f5da,from:_0x30b9f4,to:_0x2cbec,creatorId:_0xf3fab0,id:_0x298790}){const _0x20b8dd=this['buildRevisionData']({'from':_0x30b9f4,'to':_0x2cbec});_0x20b8dd['name']=_0x7f5da,_0x20b8dd['creatorId']=_0xf3fab0,_0x20b8dd['id']=_0x298790;const _0xc7f7d7=this['addRevisionData'](_0x20b8dd);return this['adapter']&&this['_bufferUpdate'](_0x20b8dd['id'],_0x20b8dd,!0x0),_0xc7f7d7;}['_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(_0x56485d){this['editor']=_0x56485d,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'](_0x32c738){this['source']=_0x32c738;const _0xf873ae=new Map(),_0x3e8494=new Map(),_0x3c5729=this['editor']['model']['document']['roots']['map'](_0x52d4c6=>_0x52d4c6['rootName']);for(const _0x347394 of _0x3c5729){const _0x3496f4=this['editor']['model']['document']['getRoot'](_0x347394),_0x959024=x(_0x3496f4);_0xf873ae['set'](_0x347394,_0x959024),_0x3e8494['set'](_0x347394,Object['fromEntries'](_0x3496f4['getAttributes']()));}const _0x2bf085=Array['from'](this['editor']['model']['markers'])['map'](_0x3f845a=>[_0x3f845a['name'],_0x3f845a['getRange']()]),_0x5c218e=this['source']['version'];this['_saveMetaData'](_0x5c218e,_0xf873ae,_0x2bf085,_0x3e8494),this['_startingRevisionId']=this['_revisionId'];const _0x5949ec=new Map(),_0x58fb77=new Map();for(const _0x3f6115 of _0x3c5729){const _0x86b8c3=N(_0x3f6115);_0x5949ec['set'](_0x3f6115,_0x86b8c3),_0x58fb77['set'](_0x3f6115,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5949ec,[],_0x58fb77);}['getData'](_0x222541,_0x8c805d){if(this['_lastFrom']===_0x222541&&this['_lastTo']<=_0x8c805d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x8c805d,!0x0);else{if(!this['_savedMetaData']['has'](_0x222541)){const _0x404bd9=this['_getPreviousFrom'](_0x222541);this['_calculateMetaData'](_0x404bd9,_0x222541,!0x1);}this['_calculateMetaData'](_0x222541,_0x8c805d,!0x0);}return this['_lastFrom']=_0x222541,this['_lastTo']=_0x8c805d,this['_getState']();}['loadState'](_0x3fe561){if(!this['_savedMetaData']['has'](_0x3fe561['fromVersion'])){const _0x978ac1=this['_getPreviousFrom'](_0x3fe561['fromVersion']);this['_calculateMetaData'](_0x978ac1,_0x3fe561['fromVersion'],!0x1);}this['_calculateMetaData'](_0x3fe561['fromVersion'],_0x3fe561['toVersion'],!0x1);const _0x15f89f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3fe561['fromVersion'],this['_lastTo']=_0x3fe561['toVersion'];for(const _0x11f239 in _0x3fe561['diffData']){const _0x9a3c77=_0x3fe561['diffData'][_0x11f239]['attachChange'],_0x4be334=_0x2b1973(_0x3fe561['diffData'][_0x11f239]['attributesBefore'])||{},_0x67d84f=_0x15f89f['_makeModelFromViewString'](_0x3fe561['diffData'][_0x11f239]['deletions']);_0x67d84f['rootName']=_0x11f239,_0x67d84f['_isAttached']=!_0x9a3c77||!_0x9a3c77['isAttached'],_0x67d84f['isAttached']=()=>_0x67d84f['_isAttached'],this['_baseRoots']['set'](_0x11f239,_0x67d84f),this['_baseRootsAttributes']['set'](_0x11f239,_0x4be334),_0x9a3c77&&this['_touchedRoots']['set'](_0x11f239,_0x9a3c77);const _0x18b691=this['_makeIdsRoot'](_0x67d84f);this['_baseIdsRoots']['set'](_0x11f239,_0x18b691);for(const [_0x5cd186,_0x2cffa7]of _0x67d84f['markers']){if(!_0x5cd186['startsWith']('revision:'))continue;const _0x1127b6=_0x5cd186['split'](':')[0x2];for(const _0x48301e of _0x2cffa7['getWalker']({'singleCharacters':!0x0})){const _0x491ce0=this['_getVidAttributeName'](_0x48301e),_0x57b518='elementEnd'==_0x48301e['type']?_0x48301e['previousPosition']['path']['slice'](0x0,-0x1):_0x48301e['previousPosition']['path'],_0x1f6e95=_0x18b691['getNodeByPath'](_0x57b518)['getAttribute'](_0x491ce0);this['_touched']['set'](_0x1f6e95,{'userId':_0x1127b6});}_0x67d84f['markers']['delete'](_0x5cd186);}}this['_startingRevisionId']=this['_revisionId'];const _0x272e34=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x51b279=>!this['_touched']['has'](_0x51b279));let _0x1a0c55=0x0;const _0x104ccb=new Map();for(const _0x5c1c4a in _0x3fe561['diffData']){const _0xda5d8b=_0x3fe561['diffData'][_0x5c1c4a]['attachChange'],_0x269ba1=_0x2b1973(_0x3fe561['diffData'][_0x5c1c4a]['attributesAfter'])||{},_0xae959=_0x15f89f['_makeModelFromViewString'](_0x3fe561['diffData'][_0x5c1c4a]['insertions']);_0xae959['rootName']=_0x5c1c4a,_0xae959['_isAttached']=!_0xda5d8b||_0xda5d8b['isAttached'],_0xae959['isAttached']=()=>_0xae959['_isAttached'],this['_diffRoots']['set'](_0x5c1c4a,_0xae959),this['_diffRootsAttributes']['set'](_0x5c1c4a,_0x269ba1);const _0xd5467e=this['_makeIdsRoot'](_0xae959,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5c1c4a,_0xd5467e),_0x104ccb['set'](_0x5c1c4a,_0xae959['isAttached']()?_0x269ba1:{});for(const [_0x2ef94a,_0x1927f1]of _0xae959['markers']){if(!_0x2ef94a['startsWith']('revision:'))continue;const _0xfe11b1=_0x2ef94a['split'](':')[0x2];for(const _0x49bf58 of _0x1927f1['getWalker']({'singleCharacters':!0x0})){const _0x4b6ece=this['_getVidAttributeName'](_0x49bf58),_0x333bb9=this['_revisionId']++,_0x417fa0='elementEnd'==_0x49bf58['type']?_0x49bf58['previousPosition']['path']['slice'](0x0,-0x1):_0x49bf58['previousPosition']['path'];_0xd5467e['getNodeByPath'](_0x417fa0)['_setAttribute'](_0x4b6ece,_0x333bb9),this['_touched']['set'](_0x333bb9,{'userId':_0xfe11b1});}_0xae959['markers']['delete'](_0x2ef94a);}for(const _0x2b6219 of this['editor']['model']['createRangeIn'](_0xae959)['getWalker']({'singleCharacters':!0x0})){const _0xcebbc9=this['_getVidAttributeName'](_0x2b6219),_0x52f754='elementEnd'==_0x2b6219['type']?_0x2b6219['previousPosition']['path']['slice'](0x0,-0x1):_0x2b6219['previousPosition']['path'],_0x2000cf=_0xd5467e['getNodeByPath'](_0x52f754);_0x2000cf['getAttribute'](_0xcebbc9)>0x0||_0x2000cf['_setAttribute'](_0xcebbc9,_0x272e34[_0x1a0c55++]);}for(const [_0x21afa5,_0x26f83d]of _0xae959['markers'])_0x21afa5['startsWith']('revision:')||this['_markers']['set'](_0x21afa5,_0x26f83d);}const {roots:_0x545f46}=this['_savedMetaData']['get'](_0x3fe561['fromVersion']),{roots:_0x1bf286}=this['_savedMetaData']['get'](_0x3fe561['toVersion']),_0x29558f=x(_0x545f46['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x29558f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29558f,Number['NEGATIVE_INFINITY']));const _0x13c2c2=x(_0x1bf286['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x13c2c2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13c2c2));const _0x9abcba=Array['from'](this['_diffRoots'])['map'](([_0x2cb9d6,_0x2f397c])=>[_0x2cb9d6,x(_0x2f397c)]);this['_saveMetaData'](this['_lastTo'],_0x9abcba,this['_markers'],_0x104ccb);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x42aeae,_0x54e046,_0x31d1d1,_0x4f9303){const _0x50cbb7=new Map(_0x54e046),_0x165e91=new Map(_0x2b1973(_0x4f9303)),_0x3dd5af=new Map();for(const [_0x429442,_0xe08259]of _0x31d1d1)_0x3dd5af['set'](_0x429442,{'start':_0xe08259['start']['clone'](),'end':_0xe08259['end']['clone'](),'rootName':_0xe08259['root']['rootName']});this['_savedMetaData']['set'](_0x42aeae,{'roots':_0x50cbb7,'markers':_0x3dd5af,'rootsAttributes':_0x165e91});}['_removeMetaData'](_0x2c4f9d){this['_savedMetaData']['delete'](_0x2c4f9d);}['_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'](_0x29d750,_0x533bb8=null){let _0x2890cd=null;_0x29d750['is']('documentFragment')||(_0x2890cd=new _0x236395(_0x29d750['name'],{'vid_start':null===_0x533bb8?this['_revisionId']++:_0x533bb8++}));const _0x3efe75=[];for(const _0x41f00e of _0x29d750['getChildren']())if(_0x41f00e['is']('element')){_0x3efe75['push'](this['_makeIdsRoot'](_0x41f00e,_0x533bb8));const _0x4add81=_0x3efe75[_0x3efe75['length']-0x1];null!==_0x533bb8&&(_0x533bb8=_0x4add81['is']('element','$text')?_0x4add81['getAttribute']('vid')+0x1:_0x4add81['getAttribute']('vid_end')+0x1);}else{for(let _0x472a7e=0x0;_0x472a7e<_0x41f00e['offsetSize'];_0x472a7e++)_0x3efe75['push'](new _0x236395('$text',{'vid':null===_0x533bb8?this['_revisionId']++:_0x533bb8++}));}if(_0x29d750['is']('documentFragment')){const _0x37a918=N(_0x29d750['rootName']);return _0x37a918['_insertChild'](0x0,_0x3efe75),_0x37a918;}return _0x2890cd['_setAttribute']('vid_end',null===_0x533bb8?this['_revisionId']++:_0x533bb8++),_0x2890cd['_insertChild'](0x0,_0x3efe75),_0x2890cd;}['_calculateMetaData'](_0x40635f,_0x3485d9,_0x14ac3c){this['_reset']();const {roots:_0x4b61e1,markers:_0x38edfb,rootsAttributes:_0xa11558}=this['_savedMetaData']['get'](_0x40635f);this['_baseRoots']=new Map(_0x4b61e1),this['_baseRootsAttributes']=new Map(_0x2b1973(_0xa11558));for(const [_0x2a5ecd,_0x2328f0]of this['_baseRoots'])if('$graveyard'!==_0x2a5ecd&&(this['_diffRoots']['set'](_0x2a5ecd,x(_0x2328f0)),this['_diffRootsAttributes']=new Map(_0x2b1973(_0xa11558)),_0x14ac3c)){const _0x322c49=this['_revisionId'];this['_idsRoots']['set'](_0x2a5ecd,this['_makeIdsRoot'](_0x2328f0)),this['_baseIdsRoots']['set'](_0x2a5ecd,this['_makeIdsRoot'](_0x2328f0,_0x322c49));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x14ac3c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1525b1,_0x47dd38]of _0x38edfb){const _0x59758b=this['_baseRoots']['get'](_0x47dd38['rootName']),_0x5ee52c=this['_diffRoots']['get'](_0x47dd38['rootName']),_0x114be8=new _0x9392bd(this['_fixPosition'](_0x47dd38['start'],_0x59758b),this['_fixPosition'](_0x47dd38['end'],_0x59758b)),_0x59c2d7=this['_fixRange'](_0x114be8,_0x5ee52c);_0x59758b['markers']['set'](_0x1525b1,_0x114be8),this['_markers']['set'](_0x1525b1,_0x59c2d7);}this['_applyOperations'](_0x40635f,_0x3485d9,_0x14ac3c);}['_applyOperations'](_0x195eda,_0x278276,_0x27a81d){for(const _0x1741a3 of this['source']['getOperations'](_0x195eda,_0x278276))this['_handleOperation'](_0x1741a3,_0x27a81d);for(const _0xa3435d of this['_diffRoots']['values']())_0xa3435d['markers']['clear']();for(const [_0x540f56,_0x9adc44]of this['_markers']){this['_diffRoots']['get'](_0x9adc44['root']['rootName'])['markers']['set'](_0x540f56,_0x9adc44['clone']());}const _0x35357a=new Map(),_0x5cd96a=new Map();for(const [_0xaf83b3,_0x49d12e]of this['_diffRoots'])_0x35357a['set'](_0xaf83b3,x(_0x49d12e)),_0x5cd96a['set'](_0xaf83b3,this['_diffRootsAttributes']['get'](_0xaf83b3));this['_saveMetaData'](_0x278276,_0x35357a,this['_markers'],_0x5cd96a);}['_getPreviousFrom'](_0x31e879){const _0x2c5ea8=Array['from'](this['_savedMetaData']['keys']());_0x2c5ea8['sort']((_0x18133b,_0x3cc843)=>_0x18133b-_0x3cc843),_0x2c5ea8['reverse']();for(const _0x157940 of _0x2c5ea8)if(_0x157940<_0x31e879)return _0x157940;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x476258,_0x5793c2){const _0x41aa43=Array['from'](_0x5793c2['markers'])['map'](([_0x150a3a,_0x554599])=>[_0x150a3a,this['_fixRange'](_0x554599,_0x476258)]);_0x476258['markers']=new Map(_0x41aa43);}['_transformMarkers'](_0x2b889e){for(const _0x108e40 of this['_markers']['values']()){const _0x50d881=_0x108e40['getTransformedByOperation'](_0x2b889e),_0x1a741b=_0x9392bd['_createFromRanges'](_0x50d881);_0x108e40['start']=_0x1a741b['start'],_0x108e40['end']=_0x1a741b['end'];}}['_handleOperation'](_0x330b4c,_0x172b74){if('addRoot'!=_0x330b4c['type']&&'detachRoot'!=_0x330b4c['type']){if('insert'==_0x330b4c['type']){const _0x437137=_0x330b4c['position']['root']['rootName'];this['_diffRoots']['has'](_0x437137)||(this['_diffRoots']['set'](_0x437137,N(_0x437137,!0x0)),this['_diffRootsAttributes']['set'](_0x437137,{}),_0x172b74&&this['_idsRoots']['set'](_0x437137,N(_0x437137,!0x0)));}else{if('addRootAttribute'==_0x330b4c['type']||'removeRootAttribute'==_0x330b4c['type']||'changeRootAttribute'==_0x330b4c['type'])return void this['_handleRootAttributeOperation'](_0x330b4c);'marker'==_0x330b4c['type']&&this['_handleMarkerOperation'](_0x330b4c);}if('marker'!==_0x330b4c['type']){const _0x3b47d0=this['_cloneOperation'](_0x330b4c,this['_diffRoots']);_0x3b47d0['_execute'](),this['_transformMarkers'](_0x3b47d0);}if(_0x172b74)switch(_0x330b4c['type']){case'insert':this['_handleInsertOperation'](_0x330b4c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x330b4c);break;case'merge':this['_handleMergeOperation'](_0x330b4c);break;case'split':this['_handleSplitOperation'](_0x330b4c);}}else this['_handleRootOperation'](_0x330b4c,_0x172b74);}['_cloneOperation'](_0xef32a6,_0x4c0be8){const _0x1294d1=_0xef32a6['clone']();return _0x1294d1['_authorId']=_0xef32a6['_authorId'],this['_fixOperation'](_0x1294d1,_0x4c0be8),_0x1294d1;}['_getBaseVids'](_0x1b63dd){return _0x1b63dd['map'](_0xc9239a=>{const _0x169c54=this['_getVidAttributeName'](_0xc9239a);return Number(_0xc9239a['item']['getAttribute'](_0x169c54));});}['_generateTape'](_0x2e87bb,_0x25488f){if(_0x2e87bb['is']('element','$text'))_0x25488f['push']({'item':_0x2e87bb,'type':'text'});else{_0x2e87bb['is']('element')&&_0x25488f['push']({'item':_0x2e87bb,'type':'elementStart'});for(const _0x584921 of _0x2e87bb['getChildren']())this['_generateTape'](_0x584921,_0x25488f);_0x2e87bb['is']('element')&&_0x25488f['push']({'item':_0x2e87bb,'type':'elementEnd'});}return _0x25488f;}['_getState'](){const _0x6bd9f5=new Map(this['_touched']),_0x4a8f52=new Map(_0x6bd9f5),_0x92ff40=new Map(),_0x20ffa6={'insertions':{},'deletions':{}},_0x4091c3={'insertions':{},'deletions':{}},_0x41d388=new Map(),_0x580f02=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x580f02['delete']('$graveyard');for(const _0x4f5500 of _0x580f02){const _0x47e63b=this['_diffRoots']['get'](_0x4f5500)||N(_0x4f5500,!0x1),_0x46e79b=this['_baseRoots']['get'](_0x4f5500)||N(_0x4f5500,!0x1);_0x47e63b['isAttached']()||_0x46e79b['isAttached']()?(_0x20ffa6['insertions'][_0x4f5500]=x(_0x47e63b),_0x20ffa6['deletions'][_0x4f5500]=x(_0x46e79b),this['_copyMarkers'](_0x20ffa6['deletions'][_0x4f5500],_0x46e79b),this['_copyMarkers'](_0x20ffa6['insertions'][_0x4f5500],_0x47e63b),_0x4091c3['insertions'][_0x4f5500]=this['_generateTape'](this['_idsRoots']['get'](_0x4f5500),[]),_0x4091c3['deletions'][_0x4f5500]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4f5500)||N(_0x4f5500,!0x1),[])):_0x580f02['delete'](_0x4f5500);}for(const _0x3c1210 of _0x580f02){const _0x48c554=_0x4091c3['insertions'][_0x3c1210];for(const _0x4941ce of _0x48c554){const _0x452dc2=this['_getVidAttributeName'](_0x4941ce),_0x1293d0=_0x4941ce['item']['getAttribute'](_0x452dc2);_0x4a8f52['delete'](_0x1293d0),_0x1293d0>=this['_startingRevisionId']&&_0x92ff40['set'](_0x1293d0,_0x6bd9f5['get'](_0x1293d0));}}for(const _0x422b53 of _0x580f02){const _0xe1986b=_0x4091c3['insertions'][_0x422b53],_0x51b145=this['_getBaseVids'](_0x4091c3['deletions'][_0x422b53]);let _0x1045f6=0x0;for(const _0x2f801c of _0xe1986b){const _0xc6eb86=this['_getVidAttributeName'](_0x2f801c),_0x217608=_0x2f801c['item']['getAttribute'](_0xc6eb86);if(!_0x92ff40['has'](_0x217608)&&!_0x41d388['has'](_0x217608)){if(_0x4a8f52['has'](_0x217608))_0x1045f6++;else{if(_0x217608!=_0x51b145[_0x1045f6]){const _0x4327a2=_0x6bd9f5['get'](_0x217608)||_0x6bd9f5['get'](_0x51b145[_0x1045f6]);for(;_0x217608!=_0x51b145[_0x1045f6];)_0x4a8f52['has'](_0x51b145[_0x1045f6])||(_0x41d388['set'](_0x51b145[_0x1045f6],_0x4327a2),_0x6bd9f5['set'](_0x51b145[_0x1045f6],_0x4327a2)),_0x1045f6++;}_0x1045f6++;}}}}for(const _0xd1af18 of _0x580f02){const _0x3aeb42=_0x4091c3['insertions'][_0xd1af18];for(const _0x3e8958 of _0x3aeb42){const _0x54a2d2=this['_getVidAttributeName'](_0x3e8958),_0x40ab08=_0x3e8958['item']['getAttribute'](_0x54a2d2);if(_0x41d388['has'](_0x40ab08)){const _0x45b27f=_0x41d388['get'](_0x40ab08);_0x4a8f52['has'](_0x40ab08)||_0x4a8f52['set'](_0x40ab08,{..._0x45b27f}),_0x92ff40['set'](_0x40ab08,{..._0x45b27f});}}}for(const _0x3342ba of _0x4a8f52['keys']())_0x3342ba>=this['_startingRevisionId']&&_0x4a8f52['delete'](_0x3342ba);const _0x436626=new Map();for(const _0x158ac8 of _0x580f02){let _0x29ed63=_0x4091c3['insertions'][_0x158ac8];for(const _0x3d35fb of _0x29ed63)if(_0x3d35fb['item']['is']('element','tableCell')){const _0x5329ae=this['_getVidAttributeName'](_0x3d35fb),_0x230210=_0x3d35fb['item']['getAttribute'](_0x5329ae);if(_0x92ff40['has'](_0x230210)){const _0x4c0ad0=_0x3d35fb['item']['parent']['parent']['getAttribute']('vid_start'),_0x74b52f=_0x436626['get'](_0x4c0ad0)||new Set();_0x74b52f['add'](_0x92ff40['get'](_0x230210)['userId']),_0x436626['set'](_0x4c0ad0,_0x74b52f);}}_0x29ed63=_0x4091c3['deletions'][_0x158ac8];for(const _0x1fdd49 of _0x29ed63)if(_0x1fdd49['item']['is']('element','tableCell')){const _0x4bcb8b=this['_getVidAttributeName'](_0x1fdd49),_0x31bb63=_0x1fdd49['item']['getAttribute'](_0x4bcb8b);if(_0x4a8f52['has'](_0x31bb63)){const _0x37dc60=_0x1fdd49['item']['parent']['parent']['getAttribute']('vid_start'),_0x4f2747=_0x436626['get'](_0x37dc60)||new Set();_0x4f2747['add'](_0x4a8f52['get'](_0x31bb63)['userId']),_0x436626['set'](_0x37dc60,_0x4f2747);}}for(const _0x1ceac5 of _0x436626['keys']())(_0x92ff40['has'](_0x1ceac5)||_0x4a8f52['has'](_0x1ceac5))&&_0x436626['delete'](_0x1ceac5);}for(const _0x5589ce of _0x580f02){const _0x1f7afd=_0x4091c3['insertions'][_0x5589ce];let _0x2113dd=null,_0x260f76=null;for(const _0x2eef88 of _0x1f7afd){const _0x1e7e85=this['_getVidAttributeName'](_0x2eef88),_0x3576af=_0x2eef88['item']['getAttribute'](_0x1e7e85),_0x3d01ff=_0x436626['get'](_0x3576af);_0x3d01ff&&'elementStart'==_0x2eef88['type']&&(_0x2113dd=Array['from'](_0x3d01ff)[0x0],_0x260f76=_0x2eef88['item']['getAttribute']('vid_end')),_0x2113dd&&(_0x4a8f52['set'](_0x3576af,{'userId':_0x2113dd}),_0x92ff40['set'](_0x3576af,{'userId':_0x2113dd})),_0x3576af==_0x260f76&&(_0x2113dd=null,_0x260f76=null);}}const _0x2d1a02={},_0x2ac56b=new Set();for(const _0x14300b of _0x580f02){const _0x290bc9=_0x20ffa6['deletions'][_0x14300b],_0x429026=_0x20ffa6['insertions'][_0x14300b];for(const {userId:_0xf30cfc}of this['_touchedMarkers']['values']())null!==_0xf30cfc&&_0x2ac56b['add'](_0xf30cfc);for(const {userId:_0x5cb06a}of this['_touchedRoots']['values']())null!==_0x5cb06a&&_0x2ac56b['add'](_0x5cb06a);this['_markChanges'](_0x429026,_0x4091c3['insertions'][_0x14300b],_0x92ff40,'insertion',_0x2ac56b),this['_markChanges'](_0x290bc9,_0x4091c3['deletions'][_0x14300b],_0x4a8f52,'deletion',_0x2ac56b),_0x2d1a02[_0x14300b]={'insertions':this['_prepareViewToSave'](_0x429026),'deletions':this['_prepareViewToSave'](_0x290bc9),'attachChange':this['_touchedRoots']['get'](_0x14300b)||null,'attributesBefore':_0x2b1973(this['_baseRootsAttributes']['get'](_0x14300b))||{},'attributesAfter':_0x2b1973(this['_diffRootsAttributes']['get'](_0x14300b))};}return{'diffData':_0x2d1a02,'authorsIds':Array['from'](_0x2ac56b)};}['_processRootBeforeSave'](_0x45f89e){for(const [,_0x46ec64]of _0x45f89e['markers']){const _0x30e4db=_0x46ec64['start']['getAncestors']()['filter'](_0x50d744=>'tableCell'==_0x50d744['name']);for(const _0x318714 of _0x30e4db)0x1==_0x318714['childCount']&&_0x318714['getChild'](0x0)['is']('element','paragraph')&&_0x318714['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x18f49f){this['_processRootBeforeSave'](_0x18f49f);const _0xe5afcf=this['editor']['data']['toView'](_0x18f49f,{}),_0x296e9e=Array['from'](_0xe5afcf['getChildren']())['map'](_0x1f3359=>this['_getViewJson'](_0x1f3359));return JSON['stringify'](_0x296e9e);}['_getViewJson'](_0x49e127){if(_0x49e127['is']('$text'))return _0x49e127['data'];{const _0x29e045=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2f716b=_0x49e127,_0x197bcf=this['editor']['data']['htmlProcessor']['domConverter'],_0x4b414b={'type':_0x29e045['_getTypeCharForViewElement'](_0x2f716b),'name':_0x2f716b['name'],'attributes':Array['from'](_0x2f716b['getAttributes']()),'children':Array['from'](_0x2f716b['getChildren']())['map'](_0x262bda=>this['_getViewJson'](_0x262bda))};if(_0x49e127['is']('uiElement')&&'$comment'!=_0x49e127['name']){const _0x2c13bb=_0x49e127['render'](_0x197bcf['domDocument'],_0x197bcf);_0x4b414b['children']['push'](_0x2c13bb['outerHTML']);}else{if(_0x49e127['is']('rawElement')){const _0x476156=_0x197bcf['domDocument']['createElement'](_0x2f716b['name']);_0x49e127['render'](_0x476156,_0x197bcf),_0x4b414b['children']['push'](_0x476156['innerHTML']);}}const _0x507bdf=Array['from'](_0x2f716b['getCustomProperties']());_0x507bdf['length']>0x0&&(_0x4b414b['customProperties']=_0x507bdf);const _0xbc2318=_0x2f716b['getFillerOffset']();return null!==_0xbc2318&&(_0x4b414b['fillerOffset']=_0xbc2318),_0x4b414b;}}['_markChanges'](_0x1f8b3a,_0x488dd0,_0x3f78fe,_0x4ac2e2,_0x578ac1){let _0x518fef=null,_0x1e9261=null,_0x508e14=0x0;const _0x446abf=this['editor']['model'];for(let _0x36fdbf=0x0;_0x36fdbf<_0x488dd0['length'];_0x36fdbf++){const _0x487a4c=this['_getVidAttributeName'](_0x488dd0[_0x36fdbf]),_0x13a525=_0x488dd0[_0x36fdbf]['item']['getAttribute'](_0x487a4c),_0x45821f=_0x3f78fe['get'](_0x13a525),_0x3b2821=_0x36fdbf==_0x488dd0['length']-0x1;(!_0x518fef&&_0x45821f&&(_0x518fef=_0x45821f,_0x1e9261=_0x488dd0[_0x36fdbf]),_0x518fef&&(!_0x45821f||_0x45821f['userId']!=_0x518fef['userId']))&&(_0x4e1a10(_0x45821f,P(_0x1e9261,_0x1f8b3a,_0x446abf),P(_0x488dd0[_0x36fdbf],_0x1f8b3a,_0x446abf)),_0x518fef=_0x45821f||null,_0x1e9261=_0x45821f?_0x488dd0[_0x36fdbf]:null),_0x518fef&&_0x3b2821&&_0x4e1a10(_0x45821f,P(_0x1e9261,_0x1f8b3a,_0x446abf),V(_0x488dd0[_0x36fdbf],_0x1f8b3a,_0x446abf));}function _0x4e1a10(_0x5bc49b,_0x57eb28,_0x1ede33){const _0x12abe7=_0x518fef['userId'],_0x3986c2='revision:'+_0x4ac2e2+':'+_0x12abe7+':'+_0x508e14++,_0x57a336=_0x446abf['createRange'](_0x57eb28,_0x1ede33);_0x1f8b3a['markers']['set'](_0x3986c2,_0x57a336),null!==_0x12abe7&&_0x578ac1['add'](_0x12abe7);}}['_getVidAttributeName'](_0x2d6620){switch(_0x2d6620['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3b32f4,_0x27e0f7){_0x3b32f4['baseVersion']=null;for(const _0x3c33eb in _0x3b32f4){const _0x9d7a91=_0x3b32f4[_0x3c33eb];if(_0x9d7a91 instanceof _0xa02f8d){const _0x49fc86=_0x27e0f7['get'](_0x9d7a91['root']['rootName']);_0x3b32f4[_0x3c33eb]=this['_fixPosition'](_0x9d7a91,_0x49fc86);}if(_0x9d7a91 instanceof _0x9392bd){const _0x23fc13=_0x27e0f7['get'](_0x9d7a91['root']['rootName']);_0x3b32f4[_0x3c33eb]=this['_fixRange'](_0x9d7a91,_0x23fc13);}'root'===_0x3c33eb&&(_0x3b32f4['root']=_0x27e0f7['get'](_0x3b32f4['root']['rootName']));}}['_fixRange'](_0x54b4e7,_0x1cb00b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x54b4e7['start'],_0x1cb00b),this['_fixPosition'](_0x54b4e7['end'],_0x1cb00b));}['_fixPosition'](_0x271496,_0x29f2c2){return this['editor']['model']['createPositionFromPath'](_0x29f2c2,_0x271496['path'],_0x271496['stickiness']);}['_handleInsertOperation'](_0x428fc7){const _0x27874a=this['_idsRoots']['get'](_0x428fc7['position']['root']['rootName']),_0xdac7b0=this['_fixPosition'](_0x428fc7['position'],_0x27874a),_0x27e13b=null===_0x428fc7['_authorId']?null:_0x428fc7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36a1ed=_0xdac7b0['parent'],_0x59be00=this['_revisionId'],_0x16395f=[];for(const _0x39c721 of _0x428fc7['nodes'])if(_0x39c721['is']('element'))_0x16395f['push'](this['_makeIdsRoot'](_0x39c721));else{for(let _0x56322=0x0;_0x56322<_0x39c721['offsetSize'];_0x56322++)_0x16395f['push'](new _0x236395('$text',{'vid':this['_revisionId']++}));}const _0x1342d0=this['_revisionId'];for(let _0xc6208=_0x59be00;_0xc6208<_0x1342d0;_0xc6208++)this['_touched']['set'](_0xc6208,{'userId':_0x27e13b});_0x36a1ed['_insertChild'](_0xdac7b0['offset'],_0x16395f);}['_handleMoveOperation'](_0x5628e2){(_0x5628e2=this['_cloneOperation'](_0x5628e2,this['_idsRoots']))['_execute']();const _0x4e8c9f=null===_0x5628e2['_authorId']?null:_0x5628e2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x280b08=_0x5628e2['getMovedRangeStart'](),_0x5bf7eb=_0x280b08['parent'],_0xa5710b=_0x280b08['offset'];!function _0x112338(_0x14cec0,_0x55e7f4,_0x5ec1d5,_0x2584d4){for(let _0x4f76b0=_0x5ec1d5;_0x4f76b0<_0x2584d4;_0x4f76b0++){const _0xa4b2d3=_0x55e7f4['getChild'](_0x4f76b0);_0xa4b2d3['is']('element','$text')?_0x14cec0['set'](_0xa4b2d3['getAttribute']('vid'),{'userId':_0x4e8c9f}):(_0x14cec0['set'](_0xa4b2d3['getAttribute']('vid_start'),{'userId':_0x4e8c9f}),_0x112338(_0x14cec0,_0xa4b2d3,0x0,_0xa4b2d3['childCount']),_0x14cec0['set'](_0xa4b2d3['getAttribute']('vid_end'),{'userId':_0x4e8c9f}));}}(this['_touched'],_0x5bf7eb,_0xa5710b,_0xa5710b+_0x5628e2['howMany']);}['_handleMergeOperation'](_0x21ff95){const _0x5db895=null===(_0x21ff95=this['_cloneOperation'](_0x21ff95,this['_idsRoots']))['_authorId']?null:_0x21ff95['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a2e3f=_0x21ff95['targetPosition']['parent'],_0x15f9e1=_0x21ff95['sourcePosition']['parent'],_0x11d8f0=_0x5a2e3f['getAttribute']('vid_end'),_0x420152=_0x15f9e1['getAttribute']('vid_start');_0x5a2e3f['_setAttribute']('vid_end',_0x15f9e1['getAttribute']('vid_end')),_0x15f9e1['_setAttribute']('vid_end',_0x11d8f0),this['_touched']['set'](_0x420152,{'userId':_0x5db895}),this['_touched']['set'](_0x11d8f0,{'userId':_0x5db895}),_0x21ff95['_execute']();}['_handleSplitOperation'](_0x44c900){const _0x5dd293=null===(_0x44c900=this['_cloneOperation'](_0x44c900,this['_idsRoots']))['_authorId']?null:_0x44c900['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x545fd9=_0x44c900['graveyardPosition'],_0x2c1cf3=_0x44c900['splitPosition']['parent'];_0x44c900['_execute']();const _0x49fb25=_0x2c1cf3['getAttribute']('vid_end'),_0x412359=_0x44c900['insertionPosition']['nodeAfter'];if(_0x545fd9){const _0x30aa77=_0x412359['getAttribute']('vid_end'),_0x54def5=_0x2c1cf3['getAttribute']('vid_end');_0x2c1cf3['_setAttribute']('vid_end',_0x30aa77),_0x412359['_setAttribute']('vid_end',_0x54def5),this['_touched']['set'](_0x2c1cf3['getAttribute']('vid_end'),{'userId':_0x5dd293}),this['_touched']['set'](_0x412359['getAttribute']('vid_start'),{'userId':_0x5dd293});}else{const _0x1ca845=this['_revisionId']++,_0x4b7cea=this['_revisionId']++;_0x2c1cf3['_setAttribute']('vid_end',_0x1ca845),_0x412359['_setAttribute']('vid_start',_0x4b7cea),_0x412359['_setAttribute']('vid_end',_0x49fb25),this['_touched']['set'](_0x1ca845,{'userId':_0x5dd293}),this['_touched']['set'](_0x4b7cea,{'userId':_0x5dd293});}}['_handleMarkerOperation'](_0x265831){if(!_0x265831['affectsData'])return;const _0x3fafac=(_0x265831=this['_cloneOperation'](_0x265831,this['_diffRoots']))['oldRange']?_0x265831['oldRange']['root']:null,_0x3f0066=_0x265831['newRange']?_0x265831['newRange']['root']:null;_0x3fafac&&this['_markers']['delete'](_0x265831['name']),_0x3f0066&&this['_markers']['set'](_0x265831['name'],_0x265831['newRange']['clone']());const _0x413a41=null===_0x265831['_authorId']?null:_0x265831['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17bcb0=_0x265831['name'];if(!this['_touchedMarkers']['has'](_0x17bcb0))return void this['_touchedMarkers']['set'](_0x17bcb0,{'range':_0x265831['oldRange'],'userId':_0x413a41});const _0x139c82=this['_touchedMarkers']['get'](_0x17bcb0),_0x1a86ae=_0x139c82['range'],_0x512da5=_0x265831['newRange'];null==_0x1a86ae&&null==_0x512da5||_0x1a86ae&&_0x512da5&&_0x1a86ae['isEqual'](_0x512da5)?this['_touchedMarkers']['delete'](_0x265831['name']):_0x139c82['userId']=_0x413a41;}['_handleRootOperation'](_0x4ec607,_0x1e5a9a){this['_diffRoots']['has'](_0x4ec607['rootName'])?this['_diffRoots']['get'](_0x4ec607['rootName'])['_isAttached']=_0x4ec607['isAdd']:(this['_diffRoots']['set'](_0x4ec607['rootName'],N(_0x4ec607['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4ec607['rootName'],{}),_0x1e5a9a&&this['_idsRoots']['set'](_0x4ec607['rootName'],N(_0x4ec607['rootName'],!0x0)));const _0x11ba63=null===_0x4ec607['_authorId']?null:_0x4ec607['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5560d0=this['_touchedRoots']['get'](_0x4ec607['rootName']);_0x5560d0&&_0x5560d0['userId']===_0x11ba63?this['_touchedRoots']['delete'](_0x4ec607['rootName']):this['_touchedRoots']['set'](_0x4ec607['rootName'],{'userId':_0x11ba63,'isAttached':_0x4ec607['isAdd']});}['_handleRootAttributeOperation'](_0x359ec6){const _0x13a2a5=this['_diffRootsAttributes']['get'](_0x359ec6['root']['rootName']);null===_0x359ec6['newValue']?delete _0x13a2a5[_0x359ec6['key']]:_0x13a2a5[_0x359ec6['key']]=_0x359ec6['newValue'];}}function x(_0x394d66){const _0x91bde3=N(_0x394d66['rootName'],_0x394d66['isAttached']());for(const _0x3cf86f of _0x394d66['getChildren']()){const _0x9142c7=_0x3cf86f['_clone'](!0x0);_0x91bde3['_appendChild'](_0x9142c7);}return _0x91bde3;}function N(_0x47ac87,_0x5d4aef=!0x0){const _0xd81a90=new _0x416f4f();return _0xd81a90['rootName']=_0x47ac87,_0xd81a90['_isAttached']=_0x5d4aef,_0xd81a90['isAttached']=()=>_0xd81a90['_isAttached'],_0xd81a90;}function P(_0x243747,_0x2113a7,_0x3be34b){const _0x387ff7='elementEnd'==_0x243747['type']?_0x3be34b['createPositionAt'](_0x243747['item'],'end'):_0x3be34b['createPositionBefore'](_0x243747['item']);return _0x3be34b['createPositionFromPath'](_0x2113a7,_0x387ff7['path'],_0x387ff7['stickiness']);}function V(_0x467b32,_0x2bd5af,_0x1b813c){const _0x8ac811='elementStart'==_0x467b32['type']?_0x1b813c['createPositionAt'](_0x467b32['item'],0x0):_0x1b813c['createPositionAfter'](_0x467b32['item']);return _0x1b813c['createPositionFromPath'](_0x2bd5af,_0x8ac811['path'],_0x8ac811['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5c43ef(_0x171a1e){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x51823a,_0x3be8ea){super(_0x51823a),this['focusTracker']=new _0x207f11(),this['keystrokes']=new _0x91ba64(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3be8ea),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'](),_0x1a07ed({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x517769=_0x135c68=>_0x135c68['stopPropagation']();this['keystrokes']['set']('arrowright',_0x517769),this['keystrokes']['set']('arrowleft',_0x517769),this['keystrokes']['set']('arrowup',_0x517769),this['keystrokes']['set']('arrowdown',_0x517769);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x509215){this['revisionNameInputView']['fieldView']['element']['value']=_0x509215['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2a2e3e){const _0x1b5bb6=new et(this['locale'],ti),_0x1d7269=_0x1b5bb6['fieldView'];_0x1d7269['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5aafe6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2a2e3e&&(_0x5aafe6+='\x20('+m(this['locale'],'optional')+')'),(_0x1b5bb6['label']=_0x5aafe6,_0x1d7269['on']('input',()=>{this['revisionNameInputValue']=_0x1d7269['element']['value']['trim']();}),_0x1b5bb6);}}class l extends _0x30489c{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x46eaa8=this['editor'],_0x5a5fb9=_0x46eaa8['plugins']['get']('RevisionTracker');_0x46eaa8['ui']['componentFactory']['add']('revisionHistory',_0x2fcb3c=>{const _0x112a91=_0x2bc12f(_0x2fcb3c),_0x24c5c2=_0x112a91['panelView']['children'],_0xc8f91e=new _0x40ea23(_0x2fcb3c),_0x218954=new _0x58de4d(_0x2fcb3c),_0x2985b1=new _0x2f07f1(_0x2fcb3c),_0x29d072=new _0x58de4d(_0x2fcb3c),_0x341c46=new _0x2f07f1(_0x2fcb3c);return _0x112a91['bind']('isEnabled')['to'](_0x5a5fb9,'isReady',_0x5a5fb9,'isEnabled',_0x46eaa8,'isReadOnly',(_0x10c70c,_0x1284e,_0x2455a0)=>_0x10c70c&&_0x1284e&&!_0x2455a0),_0x112a91['buttonView']['set']({'icon':_0x24a4bf,'label':m(_0x2fcb3c,'Revision\x20history'),'tooltip':!0x0}),_0x2985b1['set']({'label':m(_0x2fcb3c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2985b1['bind']('isEnabled')['to'](_0x5a5fb9,'isReady',_0x5a5fb9,'isEnabled',_0x46eaa8,'isReadOnly',(_0x143837,_0x1f69dc,_0x2c5122)=>_0x143837&&_0x1f69dc&&!_0x2c5122),_0x2985b1['on']('execute',()=>this['_showDialog']()),_0x341c46['set']({'label':m(_0x2fcb3c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x341c46['bind']('isEnabled')['to'](_0x5a5fb9,'isReady',_0x46eaa8,'isReadOnly',(_0x5c00ac,_0x29fe20)=>_0x5c00ac&&!_0x29fe20),_0x341c46['on']('execute',()=>{_0x46eaa8['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x112a91['isOpen']=!0x1,_0x46eaa8['editing']['view']['focus']();}),_0x218954['children']['add'](_0x2985b1),_0x29d072['children']['add'](_0x341c46),_0xc8f91e['role']='menu',_0xc8f91e['items']['addMany']([_0x218954,_0x29d072]),_0x24c5c2['add'](_0xc8f91e),_0x112a91;}),_0x46eaa8['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x333d5b=this['editor'],_0x5f2d9c=_0x333d5b['locale'],_0x2b5ec5=new _0x2b9551(_0x5f2d9c),_0x57c54e=new _0x4dd3bc(_0x5f2d9c);_0x2b5ec5['buttonView']['set']({'icon':_0x24a4bf,'label':m(_0x5f2d9c,'Revision\x20history')});const _0xb572a2=new _0x82f3ec(_0x5f2d9c,_0x2b5ec5),_0x174bd1=new _0x30717(_0x5f2d9c);_0x174bd1['set']({'label':m(_0x5f2d9c,'Save\x20current\x20revision')}),_0x174bd1['delegate']('execute')['to'](_0x2b5ec5),_0x174bd1['on']('execute',()=>{this['_showDialog']();}),_0xb572a2['children']['add'](_0x174bd1),_0x57c54e['items']['add'](_0xb572a2);const _0x3a3809=new _0x82f3ec(_0x5f2d9c,_0x2b5ec5),_0x160f39=new _0x30717(_0x5f2d9c);return _0x160f39['set']({'label':m(_0x5f2d9c,'Open\x20revision\x20history')}),_0x160f39['delegate']('execute')['to'](_0x2b5ec5),_0x160f39['on']('execute',()=>{_0x333d5b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3a3809['children']['add'](_0x160f39),_0x57c54e['items']['add'](_0x3a3809),_0x2b5ec5['panelView']['children']['add'](_0x57c54e),_0x2b5ec5;}['_showDialog'](){const _0x160c7c=this['editor'],_0x4017f1=_0x160c7c['locale'],_0x220618=_0x160c7c['plugins']['get']('Dialog'),_0x3eb477=_0x160c7c['plugins']['get']('RevisionTracker');function _0x2d292e(_0x4668b2){_0x160c7c['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4668b2['revisionName']?_0x4668b2['revisionNameInputView']['errorText']=m(_0x4017f1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x160c7c['plugins']['get'](h)['saveRevision']({'name':_0x4668b2['revisionName']}),_0x220618['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2d292e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x220618['show']({'id':'revisionSave','title':m(_0x4017f1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x160c7c['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x220618['hide']()},{'label':m(_0x160c7c['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x40b5ac){_0x40b5ac['bind']('isEnabled')['to'](_0x3eb477,'isReady',_0x3eb477,'isEnabled',_0x160c7c,'isReadOnly',(_0x884fbc,_0x5dbfb3,_0x54d0cb)=>_0x884fbc&&_0x5dbfb3&&!_0x54d0cb);},'onExecute':()=>_0x2d292e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x549d90=this['editor'],_0x1a0bbc=_0x549d90['locale'];this['_saveRevisionFormView']=new me(_0x1a0bbc,_0x549d90['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x171a1e{['changeId'];['_model'];constructor(_0x5c2e42,_0x1dfcd7){super(_0x5c2e42),this['_model']=_0x1dfcd7,this['changeId']=_0x1dfcd7['id'];const _0x53900f=this['bindTemplate'],_0x3f6812=m(_0x5c2e42,_0x1dfcd7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1dfcd7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1dfcd7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x53900f['to']('type',_0x51b5ae=>'ck-revision-change__'+_0x51b5ae)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3f6812}]},{'text':'\x20'+_0x1dfcd7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2a6632(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x28aa68){super(),this['id']=_0x28aa68['id']||_0x506dfc(),this['author']=_0x28aa68['author'],this['type']=_0x28aa68['type'],this['data']=_0x28aa68['data']||{},this['rootName']=_0x28aa68['rootName'],this['set']('createdAt',_0x28aa68['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(_0x52724e,_0x46dd3a){this['newRevisionId']=_0x52724e,this['oldRevisionId']=_0x46dd3a,this['changes']=new _0x379dd0();}['_setChanges'](_0xcc7ca5){for(const _0x21b0b5 of _0xcc7ca5)this['changes']['add'](_0x21b0b5);}}class u extends _0x30489c{['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[_0x9482fc,_0x190eaa,S,$];}constructor(_0x213b91){super(_0x213b91),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',(_0x276107,_0x2f26b7,_0x489428)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x32b4ff=>{for(const _0x4222c3 of this['editor']['editing']['view']['document']['roots'])_0x489428?_0x32b4ff['removeClass']('ck-editor__editable__overlay',_0x4222c3):_0x32b4ff['addClass']('ck-editor__editable__overlay',_0x4222c3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x286247=>null!==_0x286247),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4971d7,_0x382dc0,_0x412549)=>_0x4971d7&&_0x412549?_0x382dc0['changes']['getIndex'](_0x412549):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x453082,_0x515bda)=>_0x453082?_0x515bda['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x190eaa);}['init'](){const _0x45fb2e=this['editor'],_0x1cfb36=new rt(_0x45fb2e,{'direction':'backward'}),_0x5316d6=new rt(_0x45fb2e,{'direction':'forward'});(_0x45fb2e['commands']['add']('showPreviousChange',_0x1cfb36),_0x45fb2e['commands']['add']('showNextChange',_0x5316d6),_0x45fb2e['commands']['add']('restoreRevision',new nt(_0x45fb2e)),this['on']('change:numberOfChanges',()=>{_0x1cfb36['refresh'](),_0x5316d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x45fb2e['enableReadOnlyMode']('revision-viewer'),_0x45fb2e['plugins']['has']('WidgetToolbarRepository'))&&_0x45fb2e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5263db){return await this['_utils']['loadRevisionData'](_0x5263db,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5263db);}async['getRevisionRootsAttributes'](_0x155b15){return await this['_utils']['loadRevisionData'](_0x155b15,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x155b15);}async['compare'](_0x30367e,_0x285573,_0x5c0879=!0x1){if(!this['isEnabled'])return;const _0x47cef1=this['diff'],_0x5b77c3=this['repository'],_0x2a791c='string'==typeof _0x30367e?_0x5b77c3['getRevision'](_0x30367e):_0x30367e,_0xf32a36='string'==typeof _0x285573?_0x5b77c3['getRevision'](_0x285573):_0x285573,_0x1731b3=_0x2a791c['id'],_0x622f2b=_0xf32a36?_0xf32a36['id']:null;if(!_0x5c0879&&this['diff']&&this['diff']['newRevisionId']===_0x1731b3&&this['diff']['oldRevisionId']===_0x622f2b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1731b3,_0x622f2b);const _0x1eee59=this['_getRevisionsRange'](_0x2a791c,_0xf32a36,!0x0)['map'](_0x11b637=>this['_utils']['loadRevisionData'](_0x11b637,this['adapter']));return _0x1eee59['push'](new Promise(_0x2fb3ac=>{setTimeout(_0x2fb3ac,0x14);})),Promise['all'](_0x1eee59)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1a2010=this['_getDiff'](_0x1731b3,_0x622f2b);for(const _0x3edb03 of _0x1a2010['changes'])this['_changeIdToChange']['set'](_0x3edb03['id'],_0x3edb03);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x57b1a2=>{for(const _0xba3f6f of this['editor']['model']['document']['getRootNames']())_0x57b1a2['detachRoot'](_0xba3f6f);for(const _0x42d575 of Object['keys'](_0x1a2010['model'])){const _0x4f1e32=_0x57b1a2['addRoot'](_0x42d575);for(const _0x2f7de8 of Object['keys'](_0x1a2010['attributes'][_0x42d575]))_0x57b1a2['setAttribute'](_0x2f7de8,_0x1a2010['attributes'][_0x42d575][_0x2f7de8],_0x4f1e32);_0x57b1a2['insert'](_0x1a2010['model'][_0x42d575],_0x4f1e32,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1a2010['changes'])),this['isReady']=!0x0;})['catch'](_0x251df=>{console['error'](_0x251df),this['_cleanUp'](),_0x47cef1&&(this['diff']=_0x47cef1),this['isReady']=!0x0;});}['addRevisionData'](_0x49adf5,_0x4620c1){const _0xdf49f5=this['repository']['createRevision'](_0x49adf5);return _0xdf49f5['on']('_update',(_0x2674e5,_0x3cd0c2,_0x324c51)=>_0x4620c1(_0x3cd0c2,_0x324c51,_0xdf49f5)),this['repository']['addRevision'](_0xdf49f5),_0xdf49f5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x450ba2=>{for(const _0x2dee8f of this['editor']['model']['document']['getRootNames']())_0x450ba2['detachRoot'](_0x2dee8f);});}['_sortAndFilterDiffChanges'](_0x4f8361){const _0x488bcf=[],_0x23d6d3=new Map();for(const _0x59d110 of this['editor']['model']['document']['getRootNames']()){const _0x389d6c=this['editor']['editing']['view']['getDomRoot'](_0x59d110);if(!_0x389d6c)continue;const _0x26f364=_0x389d6c['getClientRects']()['item'](0x0);_0x26f364&&(_0x488bcf['push'](_0x59d110),_0x23d6d3['set'](_0x59d110,_0x26f364));}return _0x488bcf['sort']((_0x420804,_0x546185)=>{const _0x160d51=_0x23d6d3['get'](_0x420804),_0x5c8a96=_0x23d6d3['get'](_0x546185);return _0x160d51['y']-_0x5c8a96['y']||_0x160d51['x']-_0x5c8a96['x'];}),(_0x4f8361=_0x4f8361['filter'](_0x5b0bfb=>_0x488bcf['includes'](_0x5b0bfb['rootName'])))['sort']((_0x3c07c7,_0x397aa8)=>_0x488bcf['indexOf'](_0x3c07c7['rootName'])-_0x488bcf['indexOf'](_0x397aa8['rootName'])),_0x4f8361;}['_makeTape'](_0x52adf7){const _0x5668b9=Array['from'](_0x52adf7['markers'])['filter'](([_0xb78674,_0x367637])=>_0xb78674['startsWith']('revision:')&&!_0x367637['isCollapsed']),_0x1e43aa=Array['from'](this['editor']['model']['createRangeIn'](_0x52adf7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5668b9['length'])for(const _0x192594 of _0x1e43aa){const [_0x302885,_0x13e641]=_0x5668b9[0x0],[,_0x23762b,_0x479555]=_0x302885['split'](':');if(_0x13e641['end']['isEqual'](_0x192594['nextPosition'])&&_0x5668b9['shift'](),(_0x192594['previousPosition']['isEqual'](_0x13e641['start'])||_0x192594['previousPosition']['isAfter'](_0x13e641['start']))&&('insertion'==_0x23762b?_0x192594['isAdded']={'userId':_0x479555}:'deletion'==_0x23762b&&(_0x192594['isRemoved']={'userId':_0x479555})),0x0==_0x5668b9['length'])break;}return _0x1e43aa;}['_refreshStartEndIndex'](_0x5e8f04){const _0x30df36=new Map();for(let _0x3216c5=0x0;_0x3216c5<_0x5e8f04['length'];_0x3216c5++)'text'===_0x5e8f04[_0x3216c5]['type']?(_0x5e8f04[_0x3216c5]['item']['startIndex']=_0x3216c5,_0x5e8f04[_0x3216c5]['item']['endIndex']=_0x3216c5):('elementStart'===_0x5e8f04[_0x3216c5]['type']?_0x5e8f04[_0x3216c5]['item']['startIndex']=_0x3216c5:'elementEnd'===_0x5e8f04[_0x3216c5]['type']&&(_0x5e8f04[_0x3216c5]['item']['endIndex']=_0x3216c5),_0x30df36['set'](_0x5e8f04[_0x3216c5]['id'],_0x3216c5));for(const _0x5a9dc3 of _0x30df36['values']())'elementStart'===_0x5e8f04[_0x5a9dc3]['type']?_0x5e8f04[_0x5a9dc3]['item']['endIndex']=_0x30df36['get'](_0x5e8f04[_0x5a9dc3]['pairId']):'elementEnd'===_0x5e8f04[_0x5a9dc3]['type']&&(_0x5e8f04[_0x5a9dc3]['item']['startIndex']=_0x30df36['get'](_0x5e8f04[_0x5a9dc3]['pairId']));}['_processTape'](_0x578f3d){for(let _0xbc29ef=0x0;_0xbc29ef<_0x578f3d['length'];_0xbc29ef++){if('elementStart'===_0x578f3d[_0xbc29ef]['type'])_0x578f3d[_0xbc29ef]['item']['startIndex']=_0xbc29ef;else{if('elementEnd'===_0x578f3d[_0xbc29ef]['type']){_0x578f3d[_0xbc29ef]['item']['endIndex']=_0xbc29ef;const _0x2473d0=_0x578f3d[_0xbc29ef]['item']['startIndex'];_0x578f3d[_0x2473d0]['pairId']=_0x578f3d[_0xbc29ef]['id'],_0x578f3d[_0xbc29ef]['pairId']=_0x578f3d[_0x2473d0]['id'];}else _0x578f3d[_0xbc29ef]['item']['startIndex']=_0xbc29ef,_0x578f3d[_0xbc29ef]['item']['endIndex']=_0xbc29ef,_0x578f3d[_0xbc29ef]['pairId']=null;}_0x578f3d[_0xbc29ef]['markersStart']||(_0x578f3d[_0xbc29ef]['markersStart']=[],_0x578f3d[_0xbc29ef]['markersEnd']=[]);}}['_markInsertions'](_0x20cf5f,_0x4403df){const _0x28ec9b=_0x20cf5f['filter'](_0x3a344a=>!_0x3a344a['isAdded']);for(let _0x27188d=0x0;_0x27188d<_0x4403df['length'];_0x27188d++)_0x4403df[_0x27188d]['isAdded']&&(_0x28ec9b[_0x27188d]['isAdded']=_0x4403df[_0x27188d]['isAdded']);}['_getDiff'](_0x3315b7,_0x51339b=null){const _0x2df979=this['repository']['getRevision'](_0x3315b7),_0x2b22bf=_0x51339b?this['repository']['getRevision'](_0x51339b):null,_0x33f6e1=this['_getRevisionsRange'](_0x2df979,_0x2b22bf),_0x313ec2=_0x33f6e1[_0x33f6e1['length']-0x1],_0x29cfc6=new Map(),_0x3831f0={'model':{},'attributes':{},'changes':[]},_0x1acee7=new Set(),_0x5f57e9=new Map();for(let _0x4ab03f=_0x33f6e1['length']-0x1;_0x4ab03f>=0x0;_0x4ab03f--){const _0x59fa94=_0x33f6e1[_0x4ab03f];for(const _0x7b059e of Object['keys'](_0x59fa94['diffData']))if(_0x59fa94['diffData'][_0x7b059e]['attachChange']){const _0x5435e6=_0x59fa94['diffData'][_0x7b059e]['attachChange'];_0x5435e6['isAttached']?(_0x1acee7['add'](_0x7b059e),_0x5f57e9['has'](_0x7b059e)&&_0x5f57e9['get'](_0x7b059e)['userId']==_0x5435e6['userId']?_0x5f57e9['delete'](_0x7b059e):_0x5f57e9['set'](_0x7b059e,_0x5435e6)):_0x5f57e9['has'](_0x7b059e)?(_0x1acee7['delete'](_0x7b059e),_0x5f57e9['delete'](_0x7b059e)):(_0x1acee7['add'](_0x7b059e),_0x5f57e9['set'](_0x7b059e,_0x5435e6));}else _0x1acee7['add'](_0x7b059e);}for(const _0x2c6f78 of _0x1acee7){const _0x383aca=_0x5f57e9['has'](_0x2c6f78)&&!_0x5f57e9['get'](_0x2c6f78)['isAttached'];let _0x57f699=_0x383aca?_0x33f6e1['length']-0x1:0x0;const _0x1b164c=_0x383aca?-0x1:0x1;for(;_0x33f6e1[_0x57f699];){const _0x2f5c98=_0x33f6e1[_0x57f699];if(_0x2f5c98['diffData'][_0x2c6f78]){const _0x15be44=_0x383aca?_0x2f5c98['diffData'][_0x2c6f78]['attributesBefore']:_0x2f5c98['diffData'][_0x2c6f78]['attributesAfter'];_0x3831f0['attributes'][_0x2c6f78]=_0x15be44?_0x2b1973(_0x15be44):{};break;}_0x57f699+=_0x1b164c;}}for(const _0x572d79 of _0x33f6e1){_0x572d79['model']={};for(const _0x46c11b of _0x572d79['authors'])_0x29cfc6['set'](_0x46c11b['id'],_0x46c11b);for(const _0x100386 of _0x1acee7){const _0x5d67e6=_0x572d79['diffData'][_0x100386]?_0x572d79['diffData'][_0x100386]['insertions']:'[]',_0x51f1ae=_0x572d79['diffData'][_0x100386]?_0x572d79['diffData'][_0x100386]['deletions']:'[]';_0x572d79['model'][_0x100386]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5d67e6),'deletions':this['_utils']['_makeModelFromViewString'](_0x51f1ae)};}}for(const _0x413f8c of _0x1acee7){let _0x5aa994=null,_0x331bdb=0x0;const _0x584699=new Map(Array['from'](_0x2df979['model'][_0x413f8c]['insertions']['markers'])['filter'](([_0x36217a])=>!_0x36217a['startsWith']('revision:')));let _0x4c10b6=0x0;for(const _0x3fa4eb of _0x33f6e1){const _0x16b507=this['_makeTape'](_0x3fa4eb['model'][_0x413f8c]['insertions']);_0x3fa4eb==_0x2df979?(_0x5aa994=_0x16b507,_0x331bdb=_0x5aa994['length'],_0x5aa994['forEach'](_0x4cfc8f=>{_0x4cfc8f['id']=_0x4c10b6++;}),this['_processTape'](_0x5aa994)):this['_markInsertions'](_0x5aa994,_0x16b507);const _0x12b373=_0x5aa994['filter'](_0x200b8f=>!_0x200b8f['isAdded'])['map'](_0x11c7a3=>_0x11c7a3['id']);let _0x238c88=0x0;const _0x102b8c=this['_makeTape'](_0x3fa4eb['model'][_0x413f8c]['deletions']);_0x102b8c['forEach'](_0x5cecc5=>{_0x5cecc5['isRemoved']?_0x5cecc5['id']=_0x331bdb++:_0x5cecc5['id']=_0x12b373[_0x238c88++];}),this['_processTape'](_0x102b8c),this['_setDistance'](_0x5aa994,'isAdded'),this['_setDistance'](_0x102b8c,'isRemoved'),_0x3fa4eb==_0x2df979&&this['_markMarkers'](_0x5aa994,_0x584699),_0x5aa994=this['_joinTapes'](_0x5aa994,_0x102b8c),this['_refreshStartEndIndex'](_0x5aa994),this['_setDistance'](_0x5aa994,'isRemoved');}_0x5aa994=_0x5aa994['filter'](_0x617ca6=>!(_0x617ca6['isAdded']&&_0x617ca6['isRemoved']));const _0xc40123=new Map(_0x313ec2['model'][_0x413f8c]['deletions']['markers']),_0x24dcf8=new Set(_0x584699['keys']());for(const _0xd4088f of _0xc40123['keys']())_0x24dcf8['delete'](_0xd4088f);this['_markSuggestions'](_0x5aa994,_0x24dcf8),this['_fixObsoleteTags'](_0x5aa994),_0x5aa994=this['_removeMissingPairs'](_0x5aa994),_0x5aa994=this['_markMismatchedRemovedTags'](_0x5aa994),_0x5aa994=this['_removeUnsupportedChanges'](_0x5aa994);const {root:_0x5a57b8,changes:_0x345f72}=this['_makeModelFromTape'](_0x5aa994,_0x29cfc6,_0x413f8c);_0x3831f0['model'][_0x413f8c]=_0x5a57b8;const _0x4fda6e=_0x5f57e9['get'](_0x413f8c);if(_0x4fda6e){const _0x186cd8=_0x29cfc6['get'](_0x4fda6e['userId']),_0x5f1518=new G({'author':_0x186cd8,'type':_0x4fda6e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x413f8c});_0x345f72['unshift'](_0x5f1518),_0x3831f0['attributes'][_0x413f8c]['revisionHistoryAttachChange']=_0x5f1518['id'];}_0x3831f0['changes']=_0x3831f0['changes']['concat'](_0x345f72);}return _0x3831f0;}['_markMarkers'](_0x2d28cb,_0x45fbc2){for(let _0x1a7a81=0x0;_0x1a7a81<_0x2d28cb['length'];_0x1a7a81++)for(const [_0x40d31d,_0x1aa90b]of _0x45fbc2)!_0x1aa90b['isCollapsed']&&_0x1aa90b['start']['isEqual'](_0x2d28cb[_0x1a7a81]['previousPosition'])&&_0x2d28cb[_0x1a7a81]['markersStart']['push'](_0x40d31d),_0x1aa90b['end']['isEqual'](_0x2d28cb[_0x1a7a81]['nextPosition'])&&_0x2d28cb[_0x1a7a81]['markersEnd']['push'](_0x40d31d);}['_joinTapes'](_0x27cd6d,_0x5e59c5){let _0x5145cf=[],_0x4c82ae=0x0,_0x44ab6d=0x0;for(;_0x4c82ae<_0x27cd6d['length']||_0x44ab6d<_0x5e59c5['length'];){const _0x2ce9a0=_0x27cd6d[_0x4c82ae]||{},_0x335f94=_0x5e59c5[_0x44ab6d]||{};if(_0x2ce9a0['id']==_0x335f94['id'])_0x4c82ae++,_0x44ab6d++,_0x5145cf['push'](_0x2ce9a0);else{if(_0x335f94['isRemoved']&&_0x2ce9a0['isAdded']){const {commonTape:_0x4d82da,iEnd:_0x749e90,jEnd:_0x16a466}=this['_threeWayMerge'](_0x27cd6d,_0x4c82ae,_0x5e59c5,_0x44ab6d);_0x5145cf=_0x5145cf['concat'](_0x4d82da),_0x4c82ae=_0x749e90,_0x44ab6d=_0x16a466;}else _0x335f94['isRemoved']?(_0x44ab6d++,_0x5145cf['push'](_0x335f94)):(_0x4c82ae++,_0x5145cf['push'](_0x2ce9a0));}}return _0x5145cf;}['_markSuggestions'](_0x2a6b54,_0x42acee){const _0x1f7337=[];for(let _0x1e950d=0x0;_0x1e950d<_0x2a6b54['length'];_0x1e950d++){for(let _0x282ec5=0x0;_0x282ec5<_0x2a6b54[_0x1e950d]['markersStart']['length'];_0x282ec5++){const _0x12b7cf=_0x2a6b54[_0x1e950d]['markersStart'][_0x282ec5];if(!_0x42acee['has'](_0x12b7cf))continue;const {group:_0x576bf2,type:_0x9e65e0,authorId:_0x508357}=_0x592327(_0x12b7cf);'revision-suggestion'!=_0x576bf2||'insertion'!=_0x9e65e0&&'deletion'!=_0x9e65e0||(_0x1f7337['unshift']({'type':_0x9e65e0,'name':_0x12b7cf,'userId':_0x508357}),_0x2a6b54[_0x1e950d]['markersStart']['splice'](_0x282ec5,0x1),_0x282ec5--);}_0x322a82(_0x2a6b54[_0x1e950d]);for(let _0x4f947e=0x0;_0x4f947e<_0x2a6b54[_0x1e950d]['markersEnd']['length'];_0x4f947e++){const _0x1d3976=_0x2a6b54[_0x1e950d]['markersEnd'][_0x4f947e];if(!_0x42acee['has'](_0x1d3976))continue;const {group:_0x500947,type:_0x2b263a}=_0x592327(_0x1d3976);if('revision-suggestion'!=_0x500947||'insertion'!=_0x2b263a&&'deletion'!=_0x2b263a)continue;_0x2a6b54[_0x1e950d]['markersEnd']['splice'](_0x4f947e,0x1),_0x4f947e--;const _0x595c25=_0x1f7337['findIndex'](_0x51226d=>_0x51226d['name']==_0x1d3976);_0x595c25>-0x1&&_0x1f7337['splice'](_0x595c25,0x1);}}function _0x592327(_0x569c26){const _0x56320b=_0x569c26['split'](':');return{'group':_0x56320b[0x0],'type':_0x56320b[0x1],'subType':_0x56320b['length']>=0x5?_0x56320b[0x2]:null,'id':_0x56320b['length']<0x5?_0x56320b[0x2]:_0x56320b[0x3],'authorId':_0x56320b['length']<0x5?_0x56320b[0x3]:_0x56320b[0x4],'markerCount':0x6==_0x56320b['length']?_0x56320b[0x5]:null};}function _0x322a82(_0xe0ff1d){for(let _0x5a5abb=0x0;_0x5a5abb<_0x1f7337['length'];_0x5a5abb++){if(_0xe0ff1d['isAdded']&&'insertion'==_0x1f7337[_0x5a5abb]['type']&&_0xe0ff1d['isAdded']['userId']==_0x1f7337[_0x5a5abb]['userId'])return _0xe0ff1d['isAddSuggestion']=_0x1f7337[_0x5a5abb],void delete _0xe0ff1d['isAdded'];if(!_0xe0ff1d['isAdded']&&!_0xe0ff1d['isRemoved']&&'deletion'==_0x1f7337[_0x5a5abb]['type'])return void(_0xe0ff1d['isRemoveSuggestion']=_0x1f7337[_0x5a5abb]);}}}['_setDistance'](_0xf6191e,_0x406c87){let _0x2338b4=0x0,_0x358d98=!0x1;const _0xdb3a6c=new Map();for(const _0x32e54d of _0xf6191e)_0x32e54d[_0x406c87]?_0x358d98&&(_0x2338b4++,_0x358d98=!0x1):(_0x2338b4++,_0x358d98=!0x0),_0xdb3a6c['set'](_0x32e54d['id'],_0x2338b4);for(let _0x58d662=0x0;_0x58d662<_0xf6191e['length'];_0x58d662++){if('isRemoved'==_0x406c87&&_0xf6191e[_0x58d662]['isAdded']||'isAdded'==_0x406c87&&_0xf6191e[_0x58d662]['isRemoved'])continue;if('text'==_0xf6191e[_0x58d662]['type']){_0xf6191e[_0x58d662]['distance']=0x0;continue;}const _0x5c2916=_0xdb3a6c['get'](_0xf6191e[_0x58d662]['pairId']),_0x2ddfce=_0xdb3a6c['get'](_0xf6191e[_0x58d662]['id']);_0xf6191e[_0x58d662]['distance']=_0x5c2916-_0x2ddfce;}}['_getRevisionsRange'](_0x55d14d,_0x9cff72,_0x3ed648=!0x1){const _0x5384e8=[];let _0x1ded7b=this['repository']['getIndex'](_0x55d14d),_0x13805f=this['repository']['getIndex'](_0x9cff72);for(-0x1==_0x13805f&&(_0x13805f=this['repository']['_revisions']['length'],_0x3ed648=!0x1);_0x1ded7b<_0x13805f;)_0x5384e8['push'](this['repository']['getRevision'](_0x1ded7b)),_0x1ded7b++;return _0x3ed648&&_0x5384e8['push'](this['repository']['getRevision'](_0x1ded7b)),_0x5384e8;}['_threeWayMerge'](_0x2dd29f,_0xa4844b,_0x428a36,_0x58ff2c){const _0x427ac1=this['editor']['model']['schema'];let _0x43c6d4=_0xa4844b;for(;_0x2dd29f[_0x43c6d4]&&_0x2dd29f[_0x43c6d4]['isAdded'];)_0x43c6d4++;let _0x20dc6d=_0x58ff2c;for(;_0x428a36[_0x20dc6d]&&_0x428a36[_0x20dc6d]['isRemoved'];)_0x20dc6d++;_0x403de7(_0x2dd29f,_0xa4844b,_0x43c6d4),_0x403de7(_0x428a36,_0x58ff2c,_0x20dc6d);const _0x765063=_0x428a36['slice'](_0x58ff2c,_0x20dc6d)['concat'](_0x2dd29f['slice'](_0xa4844b,_0x43c6d4));return _0x765063['sort']((_0x3b3571,_0x3b9722)=>_0x3b3571['side']!=_0x3b9722['side']?_0x3b3571['side']-_0x3b9722['side']:_0x3b3571['level']!=_0x3b9722['level']?_0x3b3571['level']-_0x3b9722['level']:_0x3b3571['distance']!=_0x3b9722['distance']?_0x3b9722['distance']-_0x3b3571['distance']:!!_0x3b3571['isAdded']!=!!_0x3b9722['isAdded']?-0x1==_0x3b3571['side']||0x0==_0x3b3571['side']?_0x3b3571['isAdded']?-0x1:0x1:_0x3b3571['isAdded']?0x1:-0x1:_0x3b3571['index']-_0x3b9722['index']),{'commonTape':_0x765063,'iEnd':_0x43c6d4,'jEnd':_0x20dc6d};function _0x403de7(_0x8fc43e,_0x49c551,_0x151bf2){let _0x23c997=-0x1,_0x16d8bd=Number['POSITIVE_INFINITY'],_0x170caf=!0x0;for(let _0x46ac2f=_0x49c551;_0x46ac2f<_0x151bf2;_0x46ac2f++)if(_0x427ac1['isInline'](_0x8fc43e[_0x46ac2f]['item'])||(_0x170caf=!0x1),_0x8fc43e[_0x46ac2f]['item']['startIndex']<_0x49c551&&(_0x23c997=_0x46ac2f),_0x8fc43e[_0x46ac2f]['item']['endIndex']>=_0x151bf2){_0x16d8bd=_0x46ac2f;break;}_0x170caf&&(_0x23c997=_0x151bf2-0x1);for(let _0x306814=_0x49c551;_0x306814<_0x151bf2;_0x306814++)_0x8fc43e[_0x306814]['side']=_0x306814<=_0x23c997?-0x1:_0x306814<_0x16d8bd?0x0:0x1,_0x8fc43e[_0x306814]['index']=_0x306814;let _0x4d8764=0x0;for(let _0x322545=_0x49c551;_0x322545<=_0x23c997;_0x322545++)0x0==_0x8fc43e[_0x322545]['distance']?_0x8fc43e[_0x322545]['level']=_0x4d8764:(_0x4d8764++,_0x8fc43e[_0x322545]['level']=_0x4d8764,_0x4d8764++);for(let _0xdacd34=_0x49c551;_0xdacd34<_0x151bf2;_0xdacd34++)0x0==_0x8fc43e[_0xdacd34]['side']&&(_0x8fc43e[_0xdacd34]['level']=_0x4d8764);_0x4d8764=0x0;for(let _0x4380eb=_0x151bf2-0x1;_0x4380eb>=_0x16d8bd;_0x4380eb--)0x0==_0x8fc43e[_0x4380eb]['distance']?_0x8fc43e[_0x4380eb]['level']=_0x4d8764:(_0x4d8764--,_0x8fc43e[_0x4380eb]['level']=_0x4d8764,_0x4d8764--);}}['_fixObsoleteTags'](_0x48f711){const _0x254af3=new Map(),_0x5dddb8=this['editor']['model']['schema'];for(let _0x4a47de=0x1;_0x4a47de<_0x48f711['length'];_0x4a47de++){let _0x2618e0,_0x38f2f7,_0x9c13dc;const _0x3ec237=_0x48f711[_0x4a47de],_0x117e78=_0x48f711[_0x4a47de-0x1];if('text'==_0x3ec237['type'])continue;if(_0x3ec237['type']!=_0x117e78['type'])continue;if(!_0x5dddb8['isBlock'](_0x117e78['item'])||_0x5dddb8['isLimit'](_0x117e78['item']))continue;if(!_0x5dddb8['isBlock'](_0x3ec237['item'])||_0x5dddb8['isLimit'](_0x3ec237['item']))continue;if((_0x48f711[_0x4a47de]['isAdded']||_0x48f711[_0x4a47de]['isAddSuggestion'])&&_0x48f711[_0x4a47de-0x1]['isRemoved'])_0x2618e0=_0x48f711[_0x4a47de],_0x38f2f7=_0x48f711[_0x4a47de-0x1],_0x9c13dc=_0x4a47de-0x1;else{if(!_0x48f711[_0x4a47de]['isRemoved']||!_0x48f711[_0x4a47de-0x1]['isAdded']&&!_0x48f711[_0x4a47de-0x1]['isAddSuggestion'])continue;_0x2618e0=_0x48f711[_0x4a47de-0x1],_0x38f2f7=_0x48f711[_0x4a47de],_0x9c13dc=_0x4a47de;}const _0x82c48d=_0x2618e0['level']==_0x38f2f7['level'],_0x3f4feb=Math['abs'](_0x2618e0['level'])<Math['abs'](_0x38f2f7['level'])&&0x0==_0x38f2f7['distance'];(_0x82c48d||_0x3f4feb)&&(_0x254af3['set'](_0x38f2f7['id'],_0x2618e0['id']),_0x48f711['splice'](_0x9c13dc,0x1),_0x4a47de--,_0x2618e0['isAdded']=!0x1);}for(let _0x594d62=0x0;_0x594d62<_0x48f711['length'];_0x594d62++)_0x254af3['has'](_0x48f711[_0x594d62]['pairId'])&&(_0x48f711[_0x594d62]['pairId']=_0x254af3['get'](_0x48f711[_0x594d62]['pairId']));}['_removeMissingPairs'](_0x5e5c1d){const _0x43fb84=new Set(_0x5e5c1d['map'](_0x4c05dd=>_0x4c05dd['id']));for(let _0x2b0c2f=0x0;_0x2b0c2f<_0x5e5c1d['length'];_0x2b0c2f++)_0x43fb84['has'](_0x5e5c1d[_0x2b0c2f]['pairId'])||0x0==_0x5e5c1d[_0x2b0c2f]['distance']||(_0x5e5c1d[_0x2b0c2f]['isIncorrect']=!0x0);return _0x5e5c1d['filter'](_0x333b40=>!_0x333b40['isIncorrect']);}['_markMismatchedRemovedTags'](_0x10ed36){const _0x2841a4=new Set();for(let _0x5750c1=0x0;_0x5750c1<_0x10ed36['length'];_0x5750c1++){if(_0x2841a4['has'](_0x10ed36[_0x5750c1]['id'])&&_0x10ed36[_0x5750c1]['isRemoved']&&(_0x10ed36[_0x5750c1]['isIncorrect']=!0x0),_0x10ed36[_0x5750c1]['isIncorrect'])continue;if(0x0==_0x10ed36[_0x5750c1]['distance'])continue;if('elementStart'!=_0x10ed36[_0x5750c1]['type'])continue;if(null==_0x10ed36[_0x5750c1]['pairId'])continue;let _0x3c0aa4=_0x5750c1+0x1,_0x5c88a5=0x0;for(;_0x10ed36[_0x3c0aa4]['id']!=_0x10ed36[_0x5750c1]['pairId'];)'elementStart'==_0x10ed36[_0x3c0aa4]['type']?_0x5c88a5++:'elementEnd'==_0x10ed36[_0x3c0aa4]['type']&&_0x5c88a5--,_0x3c0aa4++;if(0x0!=_0x5c88a5){if(_0x10ed36[_0x5750c1]['isRemoved'])_0x10ed36[_0x5750c1]['isIncorrect']=!0x0;else{for(;_0x3c0aa4!=_0x5750c1;)_0x10ed36[_0x3c0aa4]['isRemoved']&&0x0!=_0x10ed36[_0x3c0aa4]['distance']&&(_0x10ed36[_0x3c0aa4]['isIncorrect']=!0x0,_0x2841a4['add'](_0x10ed36[_0x3c0aa4]['pairId'])),_0x3c0aa4--;}}}return _0x10ed36['filter'](_0x3d70c8=>!_0x3d70c8['isIncorrect']);}['_removeUnsupportedChanges'](_0xe7904a){const _0x591a6d=this['editor']['model']['schema'];for(let _0x11e389=0x0;_0x11e389<_0xe7904a['length'];_0x11e389++){if(!(_0xe7904a[_0x11e389]['isAdded']||_0xe7904a[_0x11e389]['isAddSuggestion']||_0xe7904a[_0x11e389]['isRemoved']||_0xe7904a[_0x11e389]['isRemoveSuggestion']))continue;if(0x0==_0xe7904a[_0x11e389]['distance'])continue;const _0x4bb855=_0xe7904a[_0x11e389]['item'];_0x591a6d['isBlock'](_0x4bb855)||_0x591a6d['isLimit'](_0x4bb855)||(_0xe7904a[_0x11e389]['isAdded']&&delete _0xe7904a[_0x11e389]['isAdded'],_0xe7904a[_0x11e389]['isAddSuggestion']&&delete _0xe7904a[_0x11e389]['isAddSuggestion'],_0xe7904a[_0x11e389]['isRemoveSuggestion']&&delete _0xe7904a[_0x11e389]['isRemoveSuggestion'],_0xe7904a[_0x11e389]['isRemoved']&&(_0xe7904a[_0x11e389]['isIncorrect']=!0x0));}return _0xe7904a['filter'](_0x425ffc=>!_0x425ffc['isIncorrect']);}['_makeModelFromTape'](_0x9e231a,_0x421af7,_0x18de5f){const _0x42dece=new _0x416f4f(),_0xc5ff76=[],_0x1f7c61=new Map(),_0x573966=this['editor']['model'],_0x418879=_0x573966['schema'],_0x4b6b5e=[_0x42dece],_0xc29777={},_0x3b1bee={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x380260=null;const _0x5eac13=[0x0];for(let _0x46d924=0x0;_0x46d924<_0x9e231a['length'];_0x46d924++)if('elementStart'===_0x9e231a[_0x46d924]['type']){_0x9e231a[_0x46d924]['previousPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13);const _0x13e23b=new _0x236395(_0x9e231a[_0x46d924]['item']['name'],_0x9e231a[_0x46d924]['item']['getAttributes']());_0x4b6b5e[0x0]['_appendChild'](_0x13e23b),_0x5eac13['push'](0x0),_0x4b6b5e['unshift'](_0x13e23b),_0x9e231a[_0x46d924]['nextPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13);}else'elementEnd'===_0x9e231a[_0x46d924]['type']?(_0x4b6b5e['shift'](),_0x9e231a[_0x46d924]['previousPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13),_0x5eac13['pop'](),_0x5eac13[_0x5eac13['length']-0x1]++,_0x9e231a[_0x46d924]['nextPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13)):(_0x9e231a[_0x46d924]['previousPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13),_0x380260?_0x380260['_data']+=_0x9e231a[_0x46d924]['item']['data']:_0x380260=new _0x5fe234(_0x9e231a[_0x46d924]['item']['data'],_0x9e231a[_0x46d924]['item']['getAttributes']()),_0x9e231a[_0x46d924+0x1]&&'text'===_0x9e231a[_0x46d924+0x1]['type']&&_0x37b2d4(_0x380260,_0x9e231a[_0x46d924+0x1]['item'])||(_0x4b6b5e[0x0]['_appendChild'](_0x380260),_0x380260=null),_0x5eac13[_0x5eac13['length']-0x1]+=_0x9e231a[_0x46d924]['item']['offsetSize'],_0x9e231a[_0x46d924]['nextPosition']=_0x573966['createPositionFromPath'](_0x42dece,_0x5eac13));for(let _0x51e71b=0x0;_0x51e71b<_0x9e231a['length'];_0x51e71b++){const _0x270a80=_0x9e231a[_0x51e71b]['previousPosition'],_0x2faf65=_0x9e231a[_0x51e71b]['nextPosition'];for(const _0x4013c2 of _0x9e231a[_0x51e71b]['markersStart'])_0x1f7c61['set'](_0x4013c2,{'start':_0x270a80,'end':null});_0x4f328f('isRemoveSuggestion',_0x51e71b,_0x270a80,_0x2faf65),_0x4f328f('isAddSuggestion',_0x51e71b,_0x270a80,_0x2faf65),_0x4f328f('isRemoved',_0x51e71b,_0x270a80,_0x2faf65),_0x4f328f('isAdded',_0x51e71b,_0x270a80,_0x2faf65);for(const _0x1575fb of _0x9e231a[_0x51e71b]['markersEnd']){const _0x44b0f7=_0x1f7c61['get'](_0x1575fb);_0x44b0f7?_0x44b0f7['end']=_0x2faf65:_0x1f7c61['set'](_0x1575fb,{'start':_0x2faf65,'end':_0x2faf65});}}for(const [_0x16efb6,_0x4e7d12]of _0x1f7c61){const _0x4b9fda=this['editor']['model']['createRange'](_0x4e7d12['start'],_0x4e7d12['end']);_0x42dece['markers']['set'](_0x16efb6,_0x4b9fda);}return _0xc5ff76['sort']((_0xb0be19,_0x1be82e)=>{const _0x550f3b=_0x42dece['markers']['get']('revision:'+_0xb0be19['id']),_0x380b89=_0x42dece['markers']['get']('revision:'+_0x1be82e['id']);return _0x550f3b['start']['isBefore'](_0x380b89['start'])?-0x1:_0x550f3b['start']['isAfter'](_0x380b89['start'])?0x1:_0x550f3b['end']['isBefore'](_0x380b89['end'])?-0x1:_0x550f3b['end']['isAfter'](_0x380b89['end'])?0x1:'add'===_0xb0be19['type']?-0x1:0x1;}),{'root':_0x42dece,'changes':_0xc5ff76};function _0x4f328f(_0x44a6b7,_0x1d23d2,_0x47ef5a,_0x3a6721){const _0x29df56=!!_0x9e231a[_0x1d23d2][_0x44a6b7],_0x251ef5=_0x29df56?_0x9e231a[_0x1d23d2][_0x44a6b7]['userId']:null,_0x4d799f=_0x1d23d2===_0x9e231a['length']-0x1,_0x5d6399=_0x3b1bee[_0x44a6b7][0x0],_0xeb14bc=_0x418879['isObject'](_0x9e231a[_0x1d23d2]['item']);!_0xc29777[_0x44a6b7]&&_0x29df56?_0xc29777[_0x44a6b7]={'start':_0x47ef5a,'tapeItem':_0x9e231a[_0x1d23d2],'userId':_0x251ef5,'type':_0x44a6b7}:_0xc29777[_0x44a6b7]&&!_0x29df56?(_0xc29777[_0x44a6b7]['end']=_0x47ef5a,_0x5a7905(_0xc29777[_0x44a6b7]),_0xc29777[_0x44a6b7]=null):_0xc29777[_0x44a6b7]&&_0x29df56&&_0xc29777[_0x44a6b7]['userId']!==_0x251ef5&&(_0xc29777[_0x44a6b7]['end']=_0x47ef5a,_0x5d6399&&_0x5d6399['userId']===_0xc29777[_0x44a6b7]['userId']||_0x5a7905(_0xc29777[_0x44a6b7]),_0xc29777[_0x44a6b7]={'start':_0x47ef5a,'tapeItem':_0x9e231a[_0x1d23d2],'userId':_0x251ef5,'type':_0x44a6b7}),_0xc29777[_0x44a6b7]&&_0xeb14bc&&('elementStart'!==_0x9e231a[_0x1d23d2]['type']||_0x5d6399&&_0x5d6399['userId']===_0x251ef5||_0x3b1bee[_0x44a6b7]['unshift']({'userId':_0x251ef5,'object':_0x9e231a[_0x1d23d2]['item'],'change':_0xc29777[_0x44a6b7]}),'elementEnd'===_0x9e231a[_0x1d23d2]['type']&&_0x5d6399&&_0x5d6399['object']===_0x9e231a[_0x1d23d2]['item']&&(_0x3b1bee[_0x44a6b7]['shift'](),_0xc29777[_0x44a6b7]=_0x5d6399['change'])),_0xc29777[_0x44a6b7]&&_0x4d799f&&(_0xc29777[_0x44a6b7]['end']=_0x3a6721,_0x5a7905(_0xc29777[_0x44a6b7]),_0xc29777[_0x44a6b7]=null);}function _0x5a7905({start:_0x2a2513,end:_0x28527d,tapeItem:_0x5520cb,userId:_0x3681f4,type:_0x212e1d}){const _0xee8811=_0x5520cb['item'],_0x5c3e58=_0x573966['schema']['isBlock'](_0xee8811)&&!_0x573966['schema']['isLimit'](_0xee8811),_0x3cece2=_0x2a2513['nodeAfter']==_0x28527d['parent']&&_0x28527d['isAtStart'];if(_0x5c3e58&&_0x3cece2)return;const _0x480ab2=_0x573966['createRange'](_0x2a2513,_0x28527d),_0x38f8c6=_0x421af7['get'](_0x3681f4),_0x467dcb=new G({'author':_0x38f8c6,'type':'isAdded'==_0x212e1d||'isAddSuggestion'==_0x212e1d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x212e1d||'isRemoveSuggestion'==_0x212e1d},'createdAt':new Date(),'rootName':_0x18de5f});_0xc5ff76['push'](_0x467dcb),_0x42dece['markers']['set']('revision:'+_0x467dcb['id'],_0x480ab2);}function _0x37b2d4(_0xe39653,_0x48dd4d){const _0x5b3c43=_0xe39653['getAttributes'](),_0xaff9dd=_0x48dd4d['getAttributes']();for(const _0x39a464 of _0x5b3c43){if(_0x39a464[0x1]!==_0x48dd4d['getAttribute'](_0x39a464[0x0]))return!0x1;_0xaff9dd['next']();}return _0xaff9dd['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x40a937=>{const _0x2edcc9=_0x40a937['markerName']['split'](':')[0x1],_0x26fb8e=this['_getChangeFromId'](_0x2edcc9);if(!_0x26fb8e)return null;const _0x39b187='add'==_0x26fb8e['type']?'insertion':'deletion',_0xcbe146=['ck-suggestion-marker','ck-suggestion-marker-'+_0x39b187];return _0x26fb8e['data']['isSuggestion']&&_0xcbe146['push']('ck-suggestion-marker-'+_0x39b187+'-new'),this['activeChange']==_0x26fb8e&&_0xcbe146['push']('ck-suggestion-marker--active'),{'classes':_0xcbe146,'attributes':{'data-change-id':_0x2edcc9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5572f1=>{_0x5572f1['on']('element:pre',(_0x2d29b7,_0x17e32d,_0x21d20f)=>{const _0x1ae01a=_0x17e32d['viewItem']['getChild'](0x0);if(!_0x1ae01a||!_0x1ae01a['is']('element','code'))return;if(!_0x21d20f['consumable']['consume'](_0x1ae01a,{'attributes':['vid_start','vid_end']}))return;const _0x2a0d46=_0x17e32d['modelRange']['start']['nodeAfter'];_0x21d20f['writer']['setAttribute']('vid_start',_0x1ae01a['getAttribute']('vid_start'),_0x2a0d46),_0x21d20f['writer']['setAttribute']('vid_end',_0x1ae01a['getAttribute']('vid_end'),_0x2a0d46);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x7bd16d=>{_0x7bd16d['on']('element',(_0x18d641,_0x1842e6,_0x3e8862)=>{if(!_0x3e8862['consumable']['consume'](_0x1842e6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1842e6['modelRange']['isCollapsed'])return;const _0x576b41=_0x1842e6['modelRange']['start']['nodeAfter'];_0x576b41['hasAttribute']('vid_start')||_0x576b41['hasAttribute']('vid')||(_0x3e8862['writer']['setAttribute']('vid_start',_0x1842e6['viewItem']['getAttribute']('vid_start'),_0x576b41),_0x3e8862['writer']['setAttribute']('vid_end',_0x1842e6['viewItem']['getAttribute']('vid_end'),_0x576b41));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2924d9=>_0x2924d9['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x389402,[,_0x39ebbf])=>{['vid_start','vid_end','vid']['includes'](_0x39ebbf)&&(_0x389402['return']=!0x0,_0x389402['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x536232=>{_0x536232['on']('attribute:vid',(_0x1a29e0,_0x32d72a,_0x48d22a)=>{if('\x20'!=_0x32d72a['item']['data']||_0x32d72a['item']['parent']['maxOffset']>0x1)return;if(!_0x48d22a['consumable']['consume'](_0x32d72a['item'],_0x1a29e0['name']))return;const _0x1454ef=_0x48d22a['writer'],_0x3887dc=_0x48d22a['mapper']['toViewRange'](_0x32d72a['range']);_0x1454ef['wrap'](_0x3887dc,_0x1454ef['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x52230f){const _0x19ddbc=_0x52230f['plugins']['get']('RevisionViewer');return(_0x3aac80,_0x5f4fbd,_0x3d15f8)=>{const _0x2293d6=_0x5f4fbd['markerName']['split'](':')[0x1],_0xf57d11=_0x19ddbc['_getChangeFromId'](_0x2293d6);if(!_0xf57d11)return null;const _0x45117b='add'==_0xf57d11['type']?'split':'merge';if(!_0x3d15f8['consumable']['test'](_0x5f4fbd['markerRange'],_0x3aac80['name']))return;const _0x46e74f=_0x5f4fbd['markerRange']['getWalker'](),_0x4b5e71=_0x5f4fbd['markerRange']['start'],_0x36a41b=_0x52230f['model']['schema'];let _0xff71ec=null,_0x510501=null,_0x27cd46=!0x1,_0x365ef1=!0x1;for(const _0x4e31c3 of _0x46e74f){const _0x506840=_0x4e31c3['item'];_0x27cd46=_0x27cd46||_0x36a41b['isContent'](_0x506840);const _0x4902b7=_0x3d15f8['mapper']['toViewElement'](_0x506840);if(_0x4902b7&&_0x4902b7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e31c3['type']&&(_0x36a41b['isBlock'](_0x506840)&&!_0x36a41b['isLimit'](_0x506840)&&(_0x506840['nextSibling']||_0x4b5e71['isAtEnd']?_0xff71ec&&_0xff71ec['parent']==_0x506840||(_0xff71ec=_0x506840,_0x400d55(_0x4e31c3['previousPosition']),_0x365ef1=!0x0):_0x510501=_0x510501||_0x4e31c3['previousPosition']));}function _0x400d55(_0x4bc48b){const _0x457679=_0x3d15f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45117b}),_0x44c4ab=_0x3d15f8['mapper']['toViewPosition'](_0x4bc48b);_0xf57d11['data']['isSuggestion']&&_0x3d15f8['writer']['addClass']('ck-suggestion-marker-'+_0x45117b+'-new',_0x457679),_0x19ddbc['activeChange']==_0xf57d11&&_0x3d15f8['writer']['addClass']('ck-suggestion-marker--active',_0x457679),_0x3d15f8['writer']['insert'](_0x44c4ab,_0x457679),_0x3d15f8['mapper']['bindElementToMarker'](_0x457679,_0x5f4fbd['markerName']);}_0x27cd46||_0x365ef1||!_0x510501||_0x400d55(_0x510501);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1a4c6b,_0x27b4f2,_0xb105e8)=>{const _0x581503=_0xb105e8['mapper']['markerNameToElements'](_0x27b4f2['markerName']);if(_0x581503){for(const _0x5b96c0 of _0x581503)(_0x5b96c0['hasClass']('ck-suggestion-marker-split')||_0x5b96c0['hasClass']('ck-suggestion-marker-merge'))&&(_0xb105e8['mapper']['unbindElementFromMarkerName'](_0x5b96c0,_0x27b4f2['markerName']),_0xb105e8['writer']['remove'](_0x5b96c0));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x521490,_0x11923a,_0x476c01)=>{const _0x5eb63f=_0x11923a['markerName']['split'](':')[0x1],_0x559c62=this['_getChangeFromId'](_0x5eb63f);if(!_0x559c62)return null;const _0x5b386c='add'==_0x559c62['type']?'split':'merge';if(_0x476c01['consumable']['test'](_0x11923a['markerRange'],_0x521490['name']))for(const _0x288f20 of _0x11923a['markerRange']['getItems']()){if(!_0x288f20['is']('element','softBreak'))continue;const _0x2b1f89=_0x476c01['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b386c}),_0x400fad=_0x476c01['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x288f20));_0x559c62['data']['isSuggestion']&&_0x476c01['writer']['addClass']('ck-suggestion-marker-'+_0x5b386c+'-new',_0x2b1f89),this['activeChange']==_0x559c62&&_0x476c01['writer']['addClass']('ck-suggestion-marker--active',_0x2b1f89),_0x476c01['writer']['insert'](_0x400fad,_0x2b1f89),_0x476c01['mapper']['bindElementToMarker'](_0x2b1f89,_0x11923a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x10cdc8=>{for(const _0x1984b7 of this['editor']['model']['document']['getRootNames']()){const _0x11568f=this['editor']['model']['document']['getRoot'](_0x1984b7),_0x25c76f=this['editor']['editing']['view']['document']['getRoot'](_0x1984b7);if(_0x25c76f){const _0x4b9b42=_0x11568f['getAttribute']('revisionHistoryAttachChange');if(_0x10cdc8['removeAttribute']('data-change-id',_0x25c76f),_0x10cdc8['removeClass']('ck-revision-history-root-add',_0x25c76f),_0x10cdc8['removeClass']('ck-revision-history-root-remove',_0x25c76f),_0x10cdc8['removeClass']('ck-revision-history-root--active',_0x25c76f),_0x4b9b42){const _0x2d7d2c=this['_getChangeFromId'](_0x4b9b42);if(!_0x2d7d2c)return null;_0x10cdc8['setAttribute']('data-change-id',_0x4b9b42,_0x25c76f),_0x10cdc8['addClass']('ck-revision-history-root-'+_0x2d7d2c['type'],_0x25c76f),this['activeChange']==_0x2d7d2c&&_0x10cdc8['addClass']('ck-revision-history-root--active',_0x25c76f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2f242d=>'revision-comment:'+_0x2f242d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x20a318=>'revision-suggestion:'+_0x20a318,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x500c1f=>({'name':'suggestion:'+_0x500c1f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3fb715=>{const _0x262415=_0x3fb715['markerName']['split'](':')[0x1];return'insertion'!=_0x262415&&'deletion'!=_0x262415?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x262415]};}}),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',(_0xe2c89f,_0xf28b93,_0x31bfde)=>{const _0x11dadc=_0x31bfde['mapper']['markerNameToElements'](_0xf28b93['markerName']);if(_0x11dadc){for(const _0xe6f396 of _0x11dadc)_0xe6f396['is']('uiElement')&&(_0x31bfde['mapper']['unbindElementFromMarkerName'](_0xe6f396,_0xf28b93['markerName']),_0x31bfde['writer']['remove'](_0xe6f396));}},{'priority':'high'});}['_getChangeFromId'](_0x1fc2a7){return this['_changeIdToChange']['get'](_0x1fc2a7);}['_getViewForChange'](_0x3b3cdc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3b3cdc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1812f4,_0x4a6cdc,_0x3dd5cc,_0x3bf009)=>{_0x3bf009&&this['_balloon']['remove'](_0x3bf009),_0x3dd5cc&&(this['_balloon']['add']({'view':_0x3dd5cc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4a7933=this['editor']['editing'],_0x400af4=this['_getChangeFromId'](_0x3dd5cc['changeId']);let _0xf24a38;if(_0x400af4['data']['isOnRoot']){const _0x8c139a=_0x4a7933['view']['getDomRoot'](_0x400af4['rootName']);_0xf24a38=Array['from'](_0x8c139a['getClientRects']());}else{const _0x595f7d=this['editor']['model']['markers']['get']('revision:'+_0x3dd5cc['changeId']);_0xf24a38=Array['from'](_0x4a7933['mapper']['markerNameToElements'](_0x595f7d['name']))['map'](_0x35b6c4=>_0x4a7933['view']['domConverter']['mapViewToDom'](_0x35b6c4))['map'](_0x2c8853=>Array['from'](_0x2c8853['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xf24a38[0x0];return _0xf24a38['find'](_0x2ad370=>_0x2ad370['top']-0x3<=this['_activeViewTarget']['y']&&_0x2ad370['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2ad370['left']-0x3<=this['_activeViewTarget']['x']&&_0x2ad370['right']+0x3>=this['_activeViewTarget']['x'])||_0xf24a38[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3bf8fd,_0x4c60e8,_0x57787b,_0x5c5e60)=>{this['activeView']=_0x57787b?this['_getViewForChange'](_0x57787b):null,this['editor']['model']['change'](()=>{const _0x5df0ae=this['editor']['editing'];_0x5c5e60&&(_0x5c5e60['data']['isOnRoot']?_0x5df0ae['view']['change'](_0x5d9f7d=>{_0x5d9f7d['removeClass']('ck-revision-history-root--active',_0x5df0ae['view']['document']['getRoot'](_0x5c5e60['rootName']));}):_0x5df0ae['reconvertMarker']('revision:'+_0x5c5e60['id'])),_0x57787b&&(_0x57787b['data']['isOnRoot']?_0x5df0ae['view']['change'](_0x32fd70=>{_0x32fd70['addClass']('ck-revision-history-root--active',_0x5df0ae['view']['document']['getRoot'](_0x57787b['rootName']));}):_0x5df0ae['reconvertMarker']('revision:'+_0x57787b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x575740,_0x1b71ca)=>{if(this['activeChange'])return;const _0x2fbee7=this['_findChangeIdFromDomTarget'](_0x1b71ca['target']),_0x25ad6f=this['_changeIdToChange']['get'](_0x2fbee7);_0x25ad6f?(this['_activeViewTarget']={'x':_0x1b71ca['domEvent']['x'],'y':_0x1b71ca['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x25ad6f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x39c5f,_0x4ec595)=>{const _0x441930=this['_findChangeIdFromDomTarget'](_0x4ec595['target']),_0x18a8a0=this['_changeIdToChange']['get'](_0x441930);_0x18a8a0?(this['_activeViewTarget']={'x':_0x4ec595['domEvent']['x'],'y':_0x4ec595['domEvent']['y']},_0x18a8a0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x18a8a0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x46a465){do{const _0x18d04d=_0x46a465['getAttribute']('data-change-id');if(_0x18d04d)return _0x18d04d;_0x46a465=_0x46a465['parent'];}while(_0x46a465);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4a7561=>{for(const _0x53cce7 of this['editor']['model']['markers'])_0x4a7561['removeMarker'](_0x53cce7);});}}function Q(_0x27f294,_0x3a39d7){return(_0x12411f,_0x5eb567,_0x32e6c9)=>{if(!_0x32e6c9['consumable']['test'](_0x5eb567['markerRange'],_0x12411f['name']))return;const _0x3824c9=_0x5eb567['markerRange']['getWalker'](),_0x4e5b82=_0x5eb567['markerRange']['start'],_0xb804e2=_0x27f294['model']['schema'];let _0x2ffffb=null,_0x4247c8=null,_0x28e5e2=!0x1,_0x2ae952=!0x1;for(const _0x59a5fe of _0x3824c9){const _0x5394e9=_0x59a5fe['item'];_0x28e5e2=_0x28e5e2||_0xb804e2['isContent'](_0x5394e9);const _0x98530a=_0x32e6c9['mapper']['toViewElement'](_0x5394e9);if(_0x98530a&&_0x98530a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x59a5fe['type']&&(_0xb804e2['isBlock'](_0x5394e9)&&!_0xb804e2['isLimit'](_0x5394e9)&&(_0x5394e9['nextSibling']||_0x4e5b82['isAtEnd']?_0x2ffffb&&_0x2ffffb['parent']==_0x5394e9||(_0x2ffffb=_0x5394e9,_0x5a8428(_0x59a5fe['previousPosition']),_0x2ae952=!0x0):_0x4247c8=_0x4247c8||_0x59a5fe['previousPosition']));}function _0x5a8428(_0x19c820){const _0x53cced=_0x32e6c9['mapper']['toViewPosition'](_0x19c820),_0x264ae5=_0x32e6c9['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3a39d7});_0x32e6c9['writer']['insert'](_0x53cced,_0x264ae5),_0x32e6c9['mapper']['bindElementToMarker'](_0x264ae5,_0x5eb567['markerName']);}_0x28e5e2||_0x2ae952||!_0x4247c8||_0x5a8428(_0x4247c8);};}class nt extends _0x3068ad{constructor(_0x17a139){super(_0x17a139);const _0x12570e=_0x17a139['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x12570e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x12570e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x490846=this['editor'],_0x4ea986=_0x490846['plugins']['get'](u),_0x286e39=_0x4ea986['isReady']?_0x4ea986['diff']['newRevisionId']:null;_0x490846['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x286e39);}['refresh'](){const {isReady:_0x1652d8,isEnabled:_0xc76a2e,repository:_0xa7feca,diff:_0xe8e249}=this['editor']['plugins']['get'](u),_0x143792=_0xe8e249&&_0xa7feca['getLaterVisibleRevision'](_0xe8e249['newRevisionId']);this['isEnabled']=_0x1652d8&&_0xc76a2e&&Boolean(_0x143792);}}class rt extends _0x3068ad{['_step'];constructor(_0x564a3f,{direction:_0x571262}){super(_0x564a3f);const _0x5ead75=_0x564a3f['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x571262?0x1:-0x1,this['listenTo'](_0x5ead75,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ead75,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5ead75,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1837ba=this['editor'],_0x23fc6c=_0x1837ba['plugins']['get'](u),{isNavigationMode:_0x3fb2da,currentChangeNumber:_0x71c80b}=_0x23fc6c;let _0x1809a4;if(_0x23fc6c['activeChange']=_0x3fb2da?_0x23fc6c['diff']['changes']['get'](_0x71c80b+this['_step']):_0x23fc6c['diff']['changes']['first'],_0x23fc6c['activeChange']['data']['isOnRoot'])_0x1809a4=_0x1837ba['editing']['view']['getDomRoot'](_0x23fc6c['activeChange']['rootName']);else{const _0x1109bf=_0x1837ba['model']['markers']['get']('revision:'+_0x23fc6c['activeChange']['id']);_0x1809a4=_0x54852a(_0x1837ba['editing'],_0x1109bf);}_0x32b079({'target':_0x1809a4,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1c4bd9,currentChangeNumber:_0x102561,numberOfChanges:_0x3c250c,isReady:_0x57ac42,isEnabled:_0x33b90e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x33b90e&&_0x57ac42&&_0x3c250c)&&(!_0x1c4bd9||(0x1===this['_step']?_0x102561<_0x3c250c-0x1:_0x102561>0x0));}}class Ri extends _0x171a1e{constructor(_0x1cfc37){super(_0x1cfc37);const _0x23e029=this['bindTemplate'],_0x58af86=new _0x2f07f1(_0x1cfc37),_0x48817b=new _0x2f07f1(_0x1cfc37);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',(_0x205549,_0x2274df)=>_0x205549&&_0x2274df>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2da7de,_0x7c28e0,_0x45120e,_0xf2286e)=>{if(!_0x2da7de)return m(_0x1cfc37,'Loading...');if(!_0x45120e)return m(_0x1cfc37,'No\x20changes');const _0x535525=m(_0x1cfc37,'NUMBER_OF_CHANGES',_0x45120e);return _0xf2286e?m(_0x1cfc37,'X_OF_Y_CHANGES',[_0x7c28e0+0x1,_0x45120e]):_0x535525;}),_0x58af86['set']({'label':m(_0x1cfc37,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x42f1c3}),_0x48817b['set']({'label':m(_0x1cfc37,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2114d9}),_0x58af86['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x48817b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x58af86['on']('execute',()=>this['fire']('execute','backward')),_0x48817b['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',_0x23e029['if']('_isStatusLabelVisible','ck-hidden',_0x2312b2=>!_0x2312b2)]},'children':[{'text':_0x23e029['to']('isNavigationMode',_0x5760ca=>_0x5760ca?m(_0x1cfc37,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1cfc37,'Total')+':\x20')}]},{'text':_0x23e029['to']('_statusText')}]},new _0xa1dda6(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x58af86,_0x48817b]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x30489c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2a9091=this['editor']['editing']['view'];_0x2a9091['change'](_0xc020a3=>{for(const _0x45dcf1 of _0x2a9091['document']['roots'])_0xc020a3['addClass'](ge,_0x45dcf1);});}['hide'](){const _0x2fbce1=this['editor']['editing']['view'];_0x2fbce1['change'](_0x23e252=>{for(const _0x4d64fb of _0x2fbce1['document']['roots'])_0x23e252['removeClass'](ge,_0x4d64fb);});}}class v extends _0x30489c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x50b1b5=this['editor'],_0x39bc16=_0x50b1b5['plugins']['get'](u),_0x2672d0=_0x50b1b5['plugins']['get'](ji);_0x50b1b5['ui']['componentFactory']['add']('exitToEditing',_0x532233=>{const _0x539135=new _0x2f07f1(_0x532233);return _0x539135['set']({'label':m(_0x532233,'Back\x20to\x20editing'),'icon':_0xa73157,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x539135,'execute',()=>{_0x50b1b5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x539135;}),_0x50b1b5['ui']['componentFactory']['add']('restoreRevision',_0x4a4b92=>{const _0x364d5c=new _0x2f07f1(_0x4a4b92);return _0x364d5c['set']({'label':m(_0x4a4b92,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x364d5c['bind']('isEnabled')['to'](_0x50b1b5['commands']['get']('restoreRevision')),this['listenTo'](_0x364d5c,'execute',()=>_0x50b1b5['execute']('restoreRevision')),_0x364d5c;}),_0x50b1b5['ui']['componentFactory']['add']('changesNavigation',_0xcaa4c4=>{const _0x59be78=new Ri(_0xcaa4c4),_0x1a45d1=_0x50b1b5['commands']['get']('showPreviousChange'),_0x2c03b7=_0x50b1b5['commands']['get']('showNextChange');return _0x59be78['bind']('isBackwardNavigationEnabled')['to'](_0x1a45d1,'isEnabled'),_0x59be78['bind']('isForwardNavigationEnabled')['to'](_0x2c03b7,'isEnabled'),_0x59be78['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x39bc16),this['listenTo'](_0x59be78,'execute',(_0x44eff7,_0x32cc52)=>{_0x50b1b5['execute']('forward'===_0x32cc52?'showNextChange':'showPreviousChange');}),_0x59be78;}),_0x2672d0['show'](),_0x39bc16['on']('change:isReady',(_0x171b5d,_0x581d53,_0x3752b5)=>{_0x3752b5?_0x2672d0['hide']():_0x2672d0['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x48e31d,_0x2e9fc6){super(_0x48e31d,_0x2e9fc6);const _0x11c91a=this['bindTemplate'];this['set']({'label':m(_0x48e31d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x48e31d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x11c91a['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 _0x3b47c8=this['fieldView']['element'];this['_tooltipString']=_0x3b47c8['scrollWidth']>_0x3b47c8['clientWidth']&&_0x3b47c8['value']||'';}}class ni extends _0x171a1e{constructor(_0x1d92b5,_0x236ddd,_0x5ad73e){super(_0x1d92b5);const _0x57ca7e=new _0x28b393();_0x57ca7e['set']({'content':_0x16bbae,'viewBox':'0\x200\x2011\x2010'});const _0x20edd5=['ck','ck-revision-history-sidebar__revision-author'];_0x5ad73e&&_0x20edd5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1754bd=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1d92b5,_0x5ad73e?'Revision\x20creator':'Revision\x20author')},'children':[_0x57ca7e,_0x236ddd['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x20edd5},'children':_0x1754bd});}}function ai(_0x2535e7,_0x17a747){const _0x24ebbb=_0x2535e7['bindTemplate'],_0x569656=_0x2535e7['locale'],_0x4217a7=_0x2bc12f(_0x569656);_0x4217a7['panelPosition']='sw';const _0xbdbb8b=function(_0x17b2cc,_0x487ef3){const _0x5285cd=function(_0x55c3aa,_0x6f341a){const _0x19498c=_0x55c3aa['locale'],_0x109958={'Compare\x20against\x20selected':m(_0x19498c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x19498c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x19498c,'Restore\x20this\x20revision')};return _0x6f341a['map'](_0x5de0bd=>{const _0x563e97=_0x109958[_0x5de0bd['name']];return _0x563e97&&_0x563e97!==_0x5de0bd['name']&&(_0x5de0bd['name']=_0x563e97),_0x5de0bd;});}(_0x17b2cc,_0x487ef3),_0x115d35=new _0x379dd0();for(const _0x1f7f56 of _0x5285cd){const _0x535cbe={'type':'button','model':new to({'label':_0x1f7f56['name'],'class':_0x1f7f56['class'],'withText':!0x0,'role':'menuitem','_action':_0x1f7f56['action']})};_0x535cbe['model']['bind']('isEnabled')['to'](_0x17b2cc,'isActionsDropdownOpen',_0x5e1db5=>'function'!=typeof _0x1f7f56['isEnabled']||(!_0x5e1db5||_0x1f7f56['isEnabled'](_0x17b2cc))),_0x115d35['add'](_0x535cbe);}return _0x115d35;}(_0x2535e7,_0x17a747);return _0x2535e7['bind']('isActionsDropdownOpen')['to'](_0x4217a7,'isOpen'),_0x4217a7['buttonView']['set']({'label':m(_0x569656,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2cc398}),_0x4217a7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x24ebbb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x24ebbb['to'](_0x151106=>_0x151106['stopPropagation']())}}),_0x4217a7['on']('execute',_0x3ba788=>{_0x2535e7['isReady']&&'function'==typeof _0x3ba788['source']['_action']&&_0x3ba788['source']['_action'](_0x2535e7);}),_0x4403f9(_0x4217a7,_0xbdbb8b,{'role':'menu'}),_0x4217a7['listenTo'](_0x2535e7,'change:isActionsDropdownOpen',(_0x481d29,_0x3390e1,_0x486cad)=>{if(_0x486cad)for(const _0x425d07 of _0x4217a7['listView']['items']){const _0x23586f=_0x425d07['children']['first'],_0x5af540=_0x17a747['find'](_0x35da3f=>_0x35da3f['action']===_0x23586f['_action'])['isVisible'];_0x425d07['isVisible']=void 0x0===_0x5af540||_0x5af540(_0x2535e7);}}),_0x4217a7;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x379f7d(_0x171a1e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x331d4f,_0x4a0af3,_0x2c46c2,_0x3cafdd){super(_0x331d4f);const _0x4dac6d=this['bindTemplate'],_0x2bb83a=function(_0x531a58,_0x6a1c9f){const _0x5b8186=Array['from'](_0x6a1c9f['authors'])['filter'](_0x3e8846=>_0x3e8846!=_0x6a1c9f['creator']);return _0x6a1c9f['creator']&&_0x5b8186['unshift'](_0x6a1c9f['creator']),_0x5b8186['map'](_0x4e5a64=>new ni(_0x531a58,_0x4e5a64,_0x4e5a64==_0x6a1c9f['creator']));}(_0x331d4f,_0x4a0af3);this['id']=_0x4a0af3['id'],this['_revision']=_0x4a0af3,this['_requireRevisionName']=_0x3cafdd,this['bind']('name','createdAt')['to'](_0x4a0af3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2fe52a=>{return _0x56a805=_0x331d4f['uiLanguage'],(_0x5f1d78=_0x2fe52a)['toLocaleDateString'](_0x56a805,{'month':'long','day':'numeric'})+',\x20'+_0x5f1d78['toLocaleTimeString'](_0x56a805,{'hour':'numeric','minute':'numeric'});var _0x56a805,_0x5f1d78;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x331d4f,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x41c05c=>_0x41c05c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x567979,_0x15798f)=>_0x567979&&_0x15798f),this['revisionActionsView']=_0x2c46c2&&_0x2c46c2['length']?ai(this,_0x2c46c2):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4dac6d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4dac6d['if']('isEnabled','ck-disabled',_0x2e4aec=>!_0x2e4aec),_0x4dac6d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4dac6d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4dac6d['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':_0x4dac6d['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':_0x2bb83a}]},this['revisionActionsView']],'on':{'click':_0x4dac6d['to'](_0x36300a=>{_0x36300a['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x42c33f=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x42c33f,'change',()=>{this['_requireRevisionName']&&!_0x42c33f['value']||this['fire']('setName',{'id':this['id'],'name':_0x42c33f['value']}),_0x42c33f['value']||(_0x42c33f['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(_0x31493f,_0x3e3684){const _0x51e518=_0x222a11['fromJSDate'](_0x31493f)['setLocale'](_0x3e3684),_0x1d6a58=_0x222a11['local'](),_0x14a8c9=_0x1d6a58['minus']({'days':0x1})['startOf']('day');let _0x47aa02,_0x35bbc8;return _0x51e518['hasSame'](_0x1d6a58,'day')?(_0x47aa02=_0x51e518['startOf']('day')['toJSDate'](),_0x35bbc8=_0x51e518['toRelativeCalendar']()):_0x51e518['hasSame'](_0x14a8c9,'day')?(_0x47aa02=_0x14a8c9['toJSDate'](),_0x35bbc8=_0x51e518['toRelativeCalendar']()):_0x51e518['hasSame'](_0x1d6a58,'week')?(_0x47aa02=_0x51e518['startOf']('week')['toJSDate'](),_0x35bbc8=_0x51e518['weekdayLong']||''):_0x51e518['hasSame'](_0x1d6a58,'year')?(_0x47aa02=_0x51e518['startOf']('month')['toJSDate'](),_0x35bbc8=_0x51e518['monthLong']||''):(_0x47aa02=_0x51e518['startOf']('year')['toJSDate'](),_0x35bbc8=String(_0x51e518['year'])),{'startDate':_0x47aa02,'localizedPeriodName':_0x35bbc8};}class bi extends _0x171a1e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x7b5200,_0x26ae04,_0x371e18,_0x566e19){super(_0x7b5200);const _0x4a8176=li(_0x26ae04,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x26ae04,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x371e18,this['_requireRevisionName']=_0x566e19,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':_0x4a8176}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3bd7af){const _0x4209fa=new _i(this['locale'],_0x3bd7af,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4209fa);}['removeRevision'](_0x4d2244){const _0x2d407=this['revisionViews']['find'](_0x5096d9=>_0x5096d9['id']===_0x4d2244['id']);this['revisionViews']['remove'](_0x2d407);}}class fi extends _0x171a1e{constructor(_0x53382a){super(_0x53382a);const _0x45328e=new _0x28b393();_0x45328e['content']=_0x24a4bf,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x45328e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x53382a,'Revision\x20history')]}]});}}class di extends _0x171a1e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xbcdbe,_0x41ef67,_0x58c8d9,_0x3cfdc7){super(_0xbcdbe);const _0x1f16f5=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x41ef67,this['_revisionActions']=_0x58c8d9,this['_requireRevisionName']=_0x3cfdc7,this['on']('select',(_0xe800d0,_0x4562d7)=>{this['fire']('revisionSelected',_0x4562d7);}),this['on']('setName',(_0x1cf63e,_0x48dcc5)=>{this['fire']('revisionSetName',_0x48dcc5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0xbcdbe),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1f16f5['if']('isEnabled','ck-disabled',_0x1a6fd6=>!_0x1a6fd6)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x240a8e of this['_revisions'])this['_addRevision'](_0x240a8e);this['_revisions']['on']('add',(_0xe73041,_0x531625)=>{this['_addRevision'](_0x531625);}),this['_revisions']['on']('remove',(_0x619ee5,_0x31a494)=>{this['_removeRevision'](_0x31a494);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x13854a=>_0x13854a['revisionViews']['map'](_0xcf64f0=>_0xcf64f0))['flat']();}['selectRevision'](_0x344708){for(const _0x5baf80 of this['revisionViews'])_0x344708&&_0x344708['id']===_0x5baf80['id']?_0x5baf80['select']():_0x5baf80['deselect']();}['highlightRevisions'](_0x40f5a3){for(const _0xc72283 of this['revisionViews'])_0x40f5a3['some'](({id:_0x54a17b})=>_0x54a17b===_0xc72283['id'])?_0xc72283['highlight']():_0xc72283['unhighlight']();}['_addRevision'](_0x46440f){const _0x20a302=li(_0x46440f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x27e0e3=this['timePeriodViews']['get'](0x0);_0x27e0e3&&_0x27e0e3['startDate']['getTime']()===_0x20a302['getTime']()||(_0x27e0e3=new bi(this['locale'],_0x20a302,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x27e0e3)),_0x27e0e3['addRevision'](_0x46440f);}['_removeRevision'](_0x32678d){const _0x27f0ed=li(_0x32678d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x27f0ed)['removeRevision'](_0x32678d);}['_getTimePeriodViewByStartDate'](_0x11928a){return this['timePeriodViews']['find'](_0x50fccd=>_0x50fccd['startDate']['getTime']()===_0x11928a['getTime']());}}class d extends _0x30489c{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(
|
|
30
|
-
_0x335ce4(_0x43bc7b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x451214,_0x360431){super(_0x360431),this['sourceElement']=_0x451214,this['model']['document']['createRoot']();const _0x398a24=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x398a24);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x422699,_0x2363f7){const _0x5db86f=new this(_0x422699,_0x2363f7);return await _0x5db86f['initPlugins'](),await _0x5db86f['ui']['init'](_0x422699),await _0x5db86f['data']['init'](_0x5db86f['config']['get']('initialData')||''),_0x5db86f['fire']('ready'),_0x5db86f;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x2bce4d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3115ca){function _0x16361f(_0x5324aa){return _0x5324aa['map'](_0x3d8d12=>String['fromCharCode'](_0x3d8d12))['join']('');}super(_0x3115ca),this['result']='end',_0x3115ca[_0x16361f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16361f([0x76,0x69,0x65,0x77])][_0x16361f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16361f([0x61,0x75,0x74,0x6f]),_0x3115ca[_0x16361f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16361f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16361f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16361f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16361f([0x6f,0x6b])});}}class ct extends _0x2bce4d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x33b1f7){if(super(_0x33b1f7),!this['editor']['config']['get']('revisionHistory'))throw new _0x5a9728('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x156b82=>this['_showRevisionViewer']({..._0x156b82,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x520197=>this['_closeRevisionViewer'](_0x520197)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5d4864=>this['_restoreRevision'](_0x5d4864)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x482581){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x482581;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2942b2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2942b2);}['getRevision'](_0x259590){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x259590);}['getRevisions'](_0x19baac){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x19baac||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1e63e6=this['editor'],_0xcc5486=_0x4af87c(_0x1e63e6,p),_0x2c68d7=_0x1e63e6['plugins']['get']('RevisionTracker'),_0x5d5f40=_0x1e63e6['plugins']['get']('Users')['users'];return _0xcc5486['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xcc5486['lazyRoots'],(_0xcc5486['plugins']['push'](ht,u,v,class extends _0x2bce4d{static get['requires'](){return[u,'Users'];}['init'](){const _0x498041=this['editor']['plugins']['get']('Users');for(const _0x348631 of _0x5d5f40)_0x348631['isAnonymous']||_0x498041['getUser'](_0x348631['id'])||_0x498041['addUser'](_0x348631);const _0x2fe356=_0x2c68d7['repository']['getRevisions']();let _0x39c906=null;const _0xb7b4d=this['editor']['plugins']['get']('RevisionViewer');_0xb7b4d['adapter']=_0x2c68d7['adapter'],_0xb7b4d['bind']('isEnabled')['to'](_0x2c68d7),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1e63e6,'isReadOnly',_0x48854e=>!_0x48854e);for(const _0x4d4b65 of _0x2fe356){const _0x31c0f9=null===_0x4d4b65['creator'];if(_0x31c0f9&&_0x4d4b65['toVersion']===_0x4d4b65['fromVersion'])continue;const _0x3b7285=_0x4d4b65['toJSON']();_0xb7b4d['addRevisionData'](_0x3b7285,(_0x33286a,_0x4d3d85,_0x5863dc)=>{if(_0x31c0f9){if(_0x39c906)_0x39c906['_update'](_0x33286a,_0x4d3d85);else{if(!_0x4d3d85){const _0x2f9616=_0x5863dc['toJSON']();_0x2f9616['id']=_0x3bb1d9(),_0x2c68d7['saveRevision'](_0x2f9616,_0x5863dc['toVersion'])['then'](_0x249204=>{_0x39c906=_0x249204;});}}}else _0x4d4b65['_update'](_0x33286a,_0x4d3d85);});}}},d),_0xcc5486);}['_enhanceShowRevisionViewerCallback'](){const _0x5f507d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x990f25=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1721a2=this['editor']['plugins']['get']('Autosave');await _0x1721a2['save']();}else await _0x990f25['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1ef6d5=this['editor']['plugins']['get']('Dialog');_0x1ef6d5['isOpen']&&_0x1ef6d5['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x4cfaf6=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x40498d of _0x4cfaf6)_0x40498d['class']=_0x40498d['class']?_0x40498d['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x5037a6=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x5037a6&&_0x5037a6['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x263764=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x263764&&_0x263764['setAttribute']('tabindex','-1');}}const _0x55c968=this['_getRevisionViewerEditorConfig']();return _0x5f507d(_0x55c968)['then'](_0x2f3754=>{return(this['_viewerEditor']=_0x2f3754,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'),_0x2f3754);})['catch'](_0xe6e805=>(console['error'](_0xe6e805),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3d34ce=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 _0x196c52=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3119da of _0x196c52)_0x3119da['class']='ck-tab-panel_disabled'===_0x3119da['class']?'':_0x3119da['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x28c93b=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x28c93b&&_0x28c93b['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x5ba995=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x5ba995&&_0x5ba995['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3d34ce(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x252646=this['editor']['plugins']['get']('Annotations');_0x252646['refreshVisibility'](),_0x252646['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1c59b1){const _0x271291=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3e97cb=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x228b4d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x228b4d,_0x1c59b1)['then'](_0x57b53b=>(_0x3e97cb['style']['display']='block',_0x271291['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x57b53b));}['_closeRevisionViewer'](_0x22223e){const _0x3550a6=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3550a6['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x22223e['destroy']();}async['_restoreRevision'](_0x5511c5){const _0x2a720f=this['editor'],_0x2e3952=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3c0493=_0x2a720f['plugins']['get']('RevisionTracker'),_0x22e2c5=_0x2a720f['plugins']['get']('RevisionHistoryUtils'),_0x25c05d=_0x2e3952['repository']['getRevision'](_0x5511c5);let _0xcad0b8,_0x1f261e,_0x5d3df3;try{await _0x22e2c5['loadRevisionData'](_0x25c05d,this['adapter']),_0xcad0b8=_0x22e2c5['getRevisionDocumentData'](_0x25c05d),_0x1f261e=_0x22e2c5['getRevisionRootsAttributes'](_0x25c05d);}catch(_0x333fbd){return void console['error'](_0x333fbd);}_0x2a720f['model']['change'](_0x4416b2=>{for(const _0x277943 of Array['from'](_0x2a720f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4416b2['removeMarker'](_0x277943);}),_0x2e3952['isReady']=!0x1,_0x2a720f['model']['enqueueChange'](_0x51bc9f=>{_0x51bc9f['setSelection'](null),_0x51bc9f['removeSelectionAttribute'](_0x2a720f['model']['document']['selection']['getAttributeKeys']());const _0x412d77=Object['keys'](_0xcad0b8);for(const _0x3a0cb5 of _0x2a720f['model']['document']['roots'])'$graveyard'!=_0x3a0cb5['rootName']&&_0x3a0cb5['isAttached']()&&!_0x412d77['includes'](_0x3a0cb5['rootName'])&&_0x51bc9f['detachRoot'](_0x3a0cb5);for(const _0x12f2d2 of _0x412d77){let _0x119284=_0x2a720f['model']['document']['getRoot'](_0x12f2d2);_0x119284&&_0x119284['isAttached']()||(_0x119284=_0x51bc9f['addRoot'](_0x12f2d2));const _0x16b491=_0x1f261e[_0x12f2d2],_0x18ceac=Object['keys'](_0x16b491),_0x17b808=_0xcad0b8[_0x12f2d2];for(const _0x5a2f63 of _0x119284['getAttributeKeys']())_0x18ceac['includes'](_0x5a2f63)||_0x51bc9f['removeAttribute'](_0x5a2f63,_0x119284);for(const _0x1d00bb of _0x18ceac)_0x51bc9f['setAttribute'](_0x1d00bb,_0x1f261e[_0x12f2d2][_0x1d00bb],_0x119284);_0x51bc9f['remove'](_0x51bc9f['createRangeIn'](_0x119284)),_0x51bc9f['insert'](_0x2a720f['data']['parse'](_0x17b808,_0x119284),_0x119284,0x0);}});const _0x35f392=m(_0x2a720f['locale'],'Restored');if(_0x25c05d['name'])_0x5d3df3=-0x1==_0x25c05d['name']['indexOf'](_0x35f392)?_0x35f392+':\x20'+_0x25c05d['name']:_0x25c05d['name'];else _0x5d3df3=_0x35f392+':\x20'+(_0x25c05d['createdAt']['toLocaleDateString'](_0x2a720f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x25c05d['createdAt']['toLocaleTimeString'](_0x2a720f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3c0493['saveRevision']({'name':_0x5d3df3}),_0x2e3952['isReady']=!0x0,_0x2a720f['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,wi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x4cc5d1){super(_0x4cc5d1),this['_revisionViewer']=_0x4cc5d1['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3f09b3=this['_revisionsRepository']['_revisions'],_0x17f9c5=this['_createRevisionActions'](),_0x44d410=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x3f09b3,_0x17f9c5,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',(_0x3fc083,_0xc74fe5)=>{_0xc74fe5['revisionViews']['on']('add',(_0x37b02c,_0x1072a7)=>{_0x1072a7['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)),_0x44d410['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x32198f=this['_revisionsRepository']['getRevision'](0x0);if(_0x32198f){const _0x52b999=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x32198f['id']);this['_revisionViewer']['compare'](_0x32198f,_0x52b999);}}['_handleRevisionSelected'](_0x1c6eb5,_0xb6e27d){const _0x5a9805=this['_revisionsRepository']['getRevision'](_0xb6e27d['id']),_0x4e2304=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5a9805['id']);this['_revisionViewer']['compare'](_0x5a9805,_0x4e2304);}['_handleRevisionSetName'](_0x51faae,_0x377d79){this['_revisionsRepository']['getRevision'](_0x377d79['id'])['setName'](_0x377d79['name']);}['_handleDiffChange'](_0x4fdde0,_0x3ffde2,_0x41a15e){const _0x4b060d=this['_revisionsRepository']['getRevisionsInDiff'](_0x41a15e);_0x4b060d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4b060d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4b060d[0x0]));}['_createRevisionActions'](){const _0x48cfaa=this['editor'],_0x2a4784=d['availableRevisionActions'],_0x171fe1=_0x48cfaa['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x171fe1['length'])return _0x171fe1['map'](_0x20e639=>{const _0x394346='string'==typeof _0x20e639?Object['assign']({},_0x2a4784[_0x20e639]):_0x20e639;return _0x394346['action']=_0x394346['action']['bind'](this,_0x48cfaa),_0x394346['isVisible']&&(_0x394346['isVisible']=_0x394346['isVisible']['bind'](this,_0x48cfaa)),_0x394346;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x510bf2},_0xe35b8b)=>{const _0x102201=_0x510bf2['get'](u),_0x1022fa=_0x102201['repository'];let _0x5e59a7=_0x102201['diff']['newRevisionId'],_0x91588f=_0xe35b8b['id'];_0x1022fa['getIndex'](_0x5e59a7)>_0x1022fa['getIndex'](_0x91588f)&&([_0x5e59a7,_0x91588f]=[_0x91588f,_0x5e59a7]),_0x102201['compare'](_0x5e59a7,_0x91588f);},'isVisible':({plugins:_0x5dacb5},_0x40f1f8)=>{const _0x1b9400=_0x5dacb5['get'](u);return!(_0x1b9400['repository']['getRevisionsInDiff'](_0x1b9400['diff'])['length']>0x2)&&!_0x40f1f8['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x131438,{id:_0x3ac9a7})=>{_0x131438['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ac9a7);},'isVisible':({plugins:_0x4739b2},_0x448c50)=>!!_0x4739b2['get'](u)['repository']['getLaterVisibleRevision'](_0x448c50['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x52760a},{id:_0x28220a,revisionNameView:_0x43f8ee})=>{const _0x4687c5=_0x52760a['get'](u),_0x230e81=_0x4687c5['repository']['getEarlierVisibleRevision'](_0x28220a);_0x4687c5['compare'](_0x28220a,_0x230e81),_0x43f8ee['focus'](),_0x43f8ee['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2f9578,_0x587039){super(_0x2f9578),this['_view']=_0x587039,this['_toolbarConfig']=st(_0x2f9578['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x121ed1){const _0x5bc24b=this['editor'],_0xaa162=this['view'],_0x1240f7=_0x5bc24b['editing']['view'],_0x546d66=_0xaa162['editable'],_0x4eff46=_0x1240f7['document']['getRoot']();_0x546d66['name']=_0x4eff46['rootName'],_0xaa162['render']();const _0x304477=_0x546d66['element'];this['setEditableElement'](_0x546d66['name'],_0x304477),_0xaa162['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1240f7['attachDomRoot'](_0x304477),this['_elementReplacer']['replace'](_0x121ed1,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4e404d=this['view'],_0x4f28bf=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4f28bf['detachDomRoot'](_0x4e404d['editable']['name']),_0x4e404d['destroy']();}['_initToolbar'](){const _0x5b7ebe=this['view'];_0x5b7ebe['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5b7ebe['stickyPanel']['limiterElement']=_0x5b7ebe['element'],_0x5b7ebe['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3ae3ff})=>_0x3ae3ff),_0x5b7ebe['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5b7ebe['toolbar']);}}class ii extends _0x5c0eb0{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1ba902,_0x32bcac,_0x2a666a={}){super(_0x1ba902),this['stickyPanel']=new _0x516ce3(_0x1ba902),this['toolbar']=new _0x5e1d6e(_0x1ba902,{'shouldGroupWhenFull':_0x2a666a['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x1ba902,_0x32bcac);}['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
|
+
_0x17b6f3(_0x36b6af){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3ca6dc,_0x254363){super(_0x254363),this['sourceElement']=_0x3ca6dc,this['model']['document']['createRoot']();const _0x3196ff=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x3196ff);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2828f0,_0x2ddc96){const _0x4f0cbb=new this(_0x2828f0,_0x2ddc96);return await _0x4f0cbb['initPlugins'](),await _0x4f0cbb['ui']['init'](_0x2828f0),await _0x4f0cbb['data']['init'](_0x4f0cbb['config']['get']('initialData')||''),_0x4f0cbb['fire']('ready'),_0x4f0cbb;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x30489c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e17bb){function _0x18b3f7(_0xab712b){return _0xab712b['map'](_0x69a397=>String['fromCharCode'](_0x69a397))['join']('');}super(_0x2e17bb),this['result']='end',_0x2e17bb[_0x18b3f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18b3f7([0x76,0x69,0x65,0x77])][_0x18b3f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18b3f7([0x61,0x75,0x74,0x6f]),_0x2e17bb[_0x18b3f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x18b3f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18b3f7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x18b3f7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x18b3f7([0x6f,0x6b])});}}class ct extends _0x30489c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x4ef1bf){if(super(_0x4ef1bf),!this['editor']['config']['get']('revisionHistory'))throw new _0x1dc26f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2a89b2=>this['_showRevisionViewer']({..._0x2a89b2,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5e7cb9=>this['_closeRevisionViewer'](_0x5e7cb9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2bc5b8=>this['_restoreRevision'](_0x2bc5b8)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x13730f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x13730f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1f1852){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1f1852);}['getRevision'](_0x597f6b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x597f6b);}['getRevisions'](_0x15295d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x15295d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x20f5af=this['editor'],_0x1fa220=_0x5f47aa(_0x20f5af,p),_0x31addd=_0x20f5af['plugins']['get']('RevisionTracker'),_0x598046=_0x20f5af['plugins']['get']('Users')['users'];return _0x1fa220['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1fa220['lazyRoots'],(_0x1fa220['plugins']['push'](ht,u,v,class extends _0x30489c{static get['requires'](){return[u,'Users'];}['init'](){const _0x5ef61d=this['editor']['plugins']['get']('Users');for(const _0x10f1df of _0x598046)_0x10f1df['isAnonymous']||_0x5ef61d['getUser'](_0x10f1df['id'])||_0x5ef61d['addUser'](_0x10f1df);const _0xf061aa=_0x31addd['repository']['getRevisions']();let _0x5ecc0a=null;const _0x57c49c=this['editor']['plugins']['get']('RevisionViewer');_0x57c49c['adapter']=_0x31addd['adapter'],_0x57c49c['bind']('isEnabled')['to'](_0x31addd),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x20f5af,'isReadOnly',_0xfd3fc6=>!_0xfd3fc6);for(const _0x5f4f55 of _0xf061aa){const _0x224980=null===_0x5f4f55['creator'];if(_0x224980&&_0x5f4f55['toVersion']===_0x5f4f55['fromVersion'])continue;const _0x490fb9=_0x5f4f55['toJSON']();_0x57c49c['addRevisionData'](_0x490fb9,(_0x60d19d,_0x5a4e2a,_0x14afac)=>{if(_0x224980){if(_0x5ecc0a)_0x5ecc0a['_update'](_0x60d19d,_0x5a4e2a);else{if(!_0x5a4e2a){const _0x38d11b=_0x14afac['toJSON']();_0x38d11b['id']=_0x506dfc(),_0x31addd['saveRevision'](_0x38d11b,_0x14afac['toVersion'])['then'](_0xf60afe=>{_0x5ecc0a=_0xf60afe;});}}}else _0x5f4f55['_update'](_0x60d19d,_0x5a4e2a);});}}},d),_0x1fa220);}['_enhanceShowRevisionViewerCallback'](){const _0x2971b1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x40c0d8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x24048e=this['editor']['plugins']['get']('Autosave');await _0x24048e['save']();}else await _0x40c0d8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x592e9c=this['editor']['plugins']['get']('Dialog');_0x592e9c['isOpen']&&_0x592e9c['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x51624a=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2e8104 of _0x51624a)_0x2e8104['class']=_0x2e8104['class']?_0x2e8104['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x1afa43=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1afa43&&_0x1afa43['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x26ec6a=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x26ec6a&&_0x26ec6a['setAttribute']('tabindex','-1');}}const _0x22e665=this['_getRevisionViewerEditorConfig']();return _0x2971b1(_0x22e665)['then'](_0x54018f=>{return(this['_viewerEditor']=_0x54018f,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'),_0x54018f);})['catch'](_0x44a22e=>(console['error'](_0x44a22e),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3eaaf6=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 _0x5a56ff=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x167ca7 of _0x5a56ff)_0x167ca7['class']='ck-tab-panel_disabled'===_0x167ca7['class']?'':_0x167ca7['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x524b64=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x524b64&&_0x524b64['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x178375=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x178375&&_0x178375['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3eaaf6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3f7178=this['editor']['plugins']['get']('Annotations');_0x3f7178['refreshVisibility'](),_0x3f7178['refreshPositioning']();}});});}['_showRevisionViewer'](_0xd6266d){const _0x1cbd3c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1d03f0=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xf89ccc=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0xf89ccc,_0xd6266d)['then'](_0x15da5c=>(_0x1d03f0['style']['display']='block',_0x1cbd3c['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x15da5c));}['_closeRevisionViewer'](_0x348d64){const _0x4bdd8b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4bdd8b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x348d64['destroy']();}async['_restoreRevision'](_0xc848c1){const _0x27120c=this['editor'],_0xacd13c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5f0e24=_0x27120c['plugins']['get']('RevisionTracker'),_0x53c8a9=_0x27120c['plugins']['get']('RevisionHistoryUtils'),_0x3b1561=_0xacd13c['repository']['getRevision'](_0xc848c1);let _0x385bfc,_0x4f8d2f,_0x51e269;try{await _0x53c8a9['loadRevisionData'](_0x3b1561,this['adapter']),_0x385bfc=_0x53c8a9['getRevisionDocumentData'](_0x3b1561),_0x4f8d2f=_0x53c8a9['getRevisionRootsAttributes'](_0x3b1561);}catch(_0x3fb6be){return void console['error'](_0x3fb6be);}_0x27120c['model']['change'](_0x4ba7e=>{for(const _0x5150de of Array['from'](_0x27120c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4ba7e['removeMarker'](_0x5150de);}),_0xacd13c['isReady']=!0x1,_0x27120c['model']['enqueueChange'](_0x285714=>{_0x285714['setSelection'](null),_0x285714['removeSelectionAttribute'](_0x27120c['model']['document']['selection']['getAttributeKeys']());const _0x3ca21f=Object['keys'](_0x385bfc);for(const _0x5bb8b6 of _0x27120c['model']['document']['roots'])'$graveyard'!=_0x5bb8b6['rootName']&&_0x5bb8b6['isAttached']()&&!_0x3ca21f['includes'](_0x5bb8b6['rootName'])&&_0x285714['detachRoot'](_0x5bb8b6);for(const _0x4273f2 of _0x3ca21f){let _0x3eba55=_0x27120c['model']['document']['getRoot'](_0x4273f2);_0x3eba55&&_0x3eba55['isAttached']()||(_0x3eba55=_0x285714['addRoot'](_0x4273f2));const _0x5e4514=_0x4f8d2f[_0x4273f2],_0x16715b=Object['keys'](_0x5e4514),_0x71c344=_0x385bfc[_0x4273f2];for(const _0x28621d of _0x3eba55['getAttributeKeys']())_0x16715b['includes'](_0x28621d)||_0x285714['removeAttribute'](_0x28621d,_0x3eba55);for(const _0x28db53 of _0x16715b)_0x285714['setAttribute'](_0x28db53,_0x4f8d2f[_0x4273f2][_0x28db53],_0x3eba55);_0x285714['remove'](_0x285714['createRangeIn'](_0x3eba55)),_0x285714['insert'](_0x27120c['data']['parse'](_0x71c344,_0x3eba55),_0x3eba55,0x0);}});const _0x1109d3=m(_0x27120c['locale'],'Restored');if(_0x3b1561['name'])_0x51e269=-0x1==_0x3b1561['name']['indexOf'](_0x1109d3)?_0x1109d3+':\x20'+_0x3b1561['name']:_0x3b1561['name'];else _0x51e269=_0x1109d3+':\x20'+(_0x3b1561['createdAt']['toLocaleDateString'](_0x27120c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3b1561['createdAt']['toLocaleTimeString'](_0x27120c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5f0e24['saveRevision']({'name':_0x51e269}),_0xacd13c['isReady']=!0x0,_0x27120c['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};
|