@ckeditor/ckeditor5-revision-history 47.1.0-alpha.2 → 47.2.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
|
-
_0x911840(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x47a635){super(),this['id']=_0x47a635['id']||_0x221375(),this['creator']=_0x47a635['creator']||null,this['authors']=_0x47a635['authors']||[],this['diffData']=_0x47a635['diffData']||null,this['toVersion']=_0x47a635['toVersion']||0x0,this['fromVersion']=_0x47a635['fromVersion']||0x0,this['set']('name',_0x47a635['name']||''),this['set']('createdAt',_0x47a635['createdAt']||new Date()),this['set']('attributes',_0x47a635['attributes']||{});}['setName'](_0x3e793e){this['_update']({'name':_0x3e793e});}['setAttribute'](_0x2dccff,_0x3e5297){const _0x46ceed=_0x459df9(this['attributes']);_0x517bac(_0x46ceed,_0x2dccff,_0x3e5297),this['_update']({'attributes':_0x46ceed});}['removeAttribute'](_0x540d72){const _0x311f7c=_0x459df9(this['attributes']);_0x2bed35(_0x311f7c,_0x540d72),this['_update']({'attributes':_0x311f7c});}['_update'](_0x5e5f13,_0x210284=!0x1){let _0x15b8ee=!0x1;const _0x3fb151={'id':this['id']},_0x4e6959=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x597b0c of _0x4e6959){const _0x2ddb53=_0x5e5f13[_0x597b0c];void 0x0!==_0x2ddb53&&_0x2ddb53!==this[_0x597b0c]&&(this[_0x597b0c]=_0x2ddb53,_0x3fb151[_0x597b0c]=_0x2ddb53,_0x15b8ee=!0x0);}_0x15b8ee&&(_0x3fb151['authors']&&(_0x3fb151['authorsIds']=_0x3fb151['authors']['map'](_0x57784b=>_0x57784b['id']),delete _0x3fb151['authors']),this['fire']('_update',_0x3fb151,_0x210284));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xfe8545=>_0xfe8545['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x59afc0{['_revisions'];static get['requires'](){return[_0x4e6a9f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x376e45){super(_0x376e45),this['_revisions']=new _0x51dee5();}['afterInit'](){!async function(_0x8a128){const _0x57b8d0=_0x6eccb6([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]),_0x2199c4=0xeb829,_0x157dce=0x7374585f,_0x325e1d=0x73732e07^_0x157dce,_0x2cf824=window[_0x6eccb6([0x44,0x61,0x74,0x65])][_0x6eccb6([0x6e,0x6f,0x77])](),_0x2080a2=_0x8a128[_0x6eccb6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a5b70=new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3626d9=>{_0x2080a2[_0x6eccb6([0x6f,0x6e,0x63,0x65])](_0x6eccb6([0x72,0x65,0x61,0x64,0x79]),_0x3626d9);}),_0x582a3f={[_0x6eccb6([0x6b,0x74,0x79])]:_0x6eccb6([0x45,0x43]),[_0x6eccb6([0x75,0x73,0x65])]:_0x6eccb6([0x73,0x69,0x67]),[_0x6eccb6([0x63,0x72,0x76])]:_0x6eccb6([0x50,0x2d,0x32,0x35,0x36]),[_0x6eccb6([0x78])]:_0x6eccb6([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]),[_0x6eccb6([0x79])]:_0x6eccb6([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]),[_0x6eccb6([0x61,0x6c,0x67])]:_0x6eccb6([0x45,0x53,0x32,0x35,0x36])},_0x158529=_0x2080a2[_0x6eccb6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6eccb6([0x67,0x65,0x74])](_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56a98a(){let _0x152652,_0x18579a=null,_0x5ec059=null;try{if(_0x158529==_0x6eccb6([0x47,0x50,0x4c]))return _0x6eccb6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x152652=_0xbef164(),!_0x152652)return _0x6eccb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x152652[_0x6eccb6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ec059=_0x47255a(_0x152652[_0x6eccb6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x152652[_0x6eccb6([0x6a,0x74,0x69])])),await _0x5a5ef2()?_0x4aa15e()?_0xac7e3b()?_0x6eccb6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x377cbb()?(_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6eccb6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18579a=_0x2e1de5(_0x6eccb6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6eccb6([0x74,0x72,0x69,0x61,0x6c])&&(_0x18579a=_0x2e1de5(_0x6eccb6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58fa05()):_0x6eccb6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6eccb6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6eccb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6eccb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xac7e3b(){const _0x5c0f0f=[_0x6eccb6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6eccb6([0x74,0x72,0x69,0x61,0x6c])][_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cf824/0x3e8:0xe10*_0x325e1d;return _0x152652[_0x6eccb6([0x65,0x78,0x70])]<_0x5c0f0f;}function _0x4aa15e(){const _0xf41e91=_0x152652[_0x6eccb6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf41e91)return!0x1;if(_0xf41e91[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x2a])))return!0x0;if(_0xf41e91[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x52,0x48])))return!0x0;if(_0xf41e91[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x52,0x52,0x48]))){if(_0x19ac3e())return!0x0;if(_0x3c5c70()||_0x24f768())return!0x0;}return!0x1;}function _0x377cbb(){const _0x4ec1f2=_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ec1f2||0x0==_0x4ec1f2[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a74ca}=new URL(window[_0x6eccb6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ec1f2[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a74ca))return!0x0;const _0x47e530=_0x4a74ca[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e]));return _0x4ec1f2[_0x6eccb6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb74911=>_0xb74911[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x2a])))[_0x6eccb6([0x6d,0x61,0x70])](_0x154d79=>_0x154d79[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e])))[_0x6eccb6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf8b64c=>_0xf8b64c[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47e530[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6eccb6([0x6d,0x61,0x70])](_0x39164b=>Array(_0x47e530[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39164b[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6eccb6([0x66,0x69,0x6c,0x6c])](_0x39164b[0x0]===_0x6eccb6([0x2a])?_0x6eccb6([0x2a]):'')[_0x6eccb6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39164b))[_0x6eccb6([0x73,0x6f,0x6d,0x65])](_0x2d969d=>_0x47e530[_0x6eccb6([0x65,0x76,0x65,0x72,0x79])]((_0x108003,_0x3b3413)=>_0x2d969d[_0x3b3413]===_0x108003||_0x2d969d[_0x3b3413]===_0x6eccb6([0x2a])));}function _0x58fa05(){return _0x18579a&&_0x5ec059?new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14fb42,_0x546a34)=>{_0x18579a[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x14fb42,_0x546a34),_0x5ec059[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x2f5b9e=>{_0x2f5b9e!=_0x6eccb6([0x56,0x61,0x6c,0x69,0x64])&&_0x14fb42(_0x2f5b9e);},_0x546a34);}):_0x18579a||_0x5ec059||_0x6eccb6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47255a(_0x5f4f19,_0x2ed86a){return new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37a4b1=>{if(_0x54b28b())return _0x37a4b1(_0x6eccb6([0x56,0x61,0x6c,0x69,0x64]));_0x1b0b67(),_0x2080a2[_0x6eccb6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6eccb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39a880=!0x1;const _0x3ef50a=_0x221375();function _0x5d88b5(_0x53d9b2){return!!_0x53d9b2&&(typeof _0x53d9b2===_0x6eccb6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53d9b2===_0x6eccb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53d9b2[_0x6eccb6([0x74,0x68,0x65,0x6e])]===_0x6eccb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53d9b2[_0x6eccb6([0x63,0x61,0x74,0x63,0x68])]===_0x6eccb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bda69(_0x393c72){_0x1c6a5a(_0x393c72)[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x38d752=>{if(!_0x38d752||_0x38d752[_0x6eccb6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6eccb6([0x6f,0x6b]))return _0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49b43b(_0x22c5c6(_0x3ef50a+_0x2ed86a))!=_0x38d752[_0x6eccb6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6eccb6([0x56,0x61,0x6c,0x69,0x64]);})[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x598d3b=>(_0x38e387(),_0x598d3b),()=>{const _0x2be546=_0x1e302c();return null==_0x2be546?(_0x38e387(),_0x6eccb6([0x56,0x61,0x6c,0x69,0x64])):_0x6eccb6(_0x2cf824-_0x2be546>(0x5778dc5f^_0x157dce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x37a4b1)[_0x6eccb6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x37a4b1(_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x267f92=0x7342b6df^_0x157dce;function _0x38e387(){const _0x2d720a=_0x6eccb6([0x6c,0x6c,0x63,0x74,0x2d])+_0x49b43b(_0x22c5c6(_0x5f4f19)),_0x1497eb=_0x38668b(_0x49b43b(window[_0x6eccb6([0x4d,0x61,0x74,0x68])][_0x6eccb6([0x63,0x65,0x69,0x6c])](_0x2cf824/_0x267f92)));window[_0x6eccb6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6eccb6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d720a,_0x1497eb);}function _0x1e302c(){const _0x262952=_0x6eccb6([0x6c,0x6c,0x63,0x74,0x2d])+_0x49b43b(_0x22c5c6(_0x5f4f19)),_0x9c3650=window[_0x6eccb6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6eccb6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x262952);return _0x9c3650?window[_0x6eccb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38668b(_0x9c3650),0x10)*_0x267f92:null;}function _0x1c6a5a(_0xc8be70){return new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x555712,_0x12415d)=>{_0xc8be70[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x555712,_0x12415d),window[_0x6eccb6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12415d,0x73758c9f^_0x157dce);});}}_0x2080a2[_0x6eccb6([0x6f,0x6e])](_0x6eccb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x381916,_0x4a0115)=>{if(_0x4a0115[0x0]!=_0x5f4f19)return _0x37a4b1(_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a0115[0x1]={..._0x4a0115[0x1],[_0x6eccb6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ef50a};},{[_0x6eccb6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6eccb6([0x68,0x69,0x67,0x68])}),_0x2080a2[_0x6eccb6([0x6f,0x6e])](_0x6eccb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38069f=>{_0x5d88b5(_0x38069f[_0x6eccb6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39a880=!0x0,_0x5bda69(_0x38069f[_0x6eccb6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6eccb6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6eccb6([0x6c,0x6f,0x77])}),_0x1a5b70[_0x6eccb6([0x74,0x68,0x65,0x6e])](()=>{_0x39a880||_0x37a4b1(_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54b28b(){return _0x2080a2[_0x6eccb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6eccb6([0x76,0x69,0x65,0x77])][_0x6eccb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6eccb6([0x61,0x75,0x74,0x6f]);}function _0x1b0b67(){_0x2080a2[_0x6eccb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6eccb6([0x76,0x69,0x65,0x77])][_0x6eccb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6eccb6([0x61,0x75,0x74,0x6f]);}}function _0x2e1de5(_0x4fefd6){const _0x5e9a31=[new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40d11a=>setTimeout(_0x40d11a,0x737d6693^_0x157dce)),_0x1a5b70[_0x6eccb6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe296c3=>{const _0x5a1fea=0x73745858^_0x157dce,_0x11f657=_0x8a128[_0x6eccb6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2be1fa(){_0x11f657[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5a1fea&&_0xe296c3();}_0x2be1fa(),_0x11f657[_0x6eccb6([0x6f,0x6e])](_0x6eccb6([0x61,0x64,0x64]),_0x2be1fa);})),new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2da679=>{function _0x2566fc(){for(const _0x4e49da in window)if(window[_0x6eccb6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x6eccb6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e49da))&&window[_0x4e49da]==_0x2199c4)return _0x2da679();_0x2080a2[_0x6eccb6([0x73,0x74,0x61,0x74,0x65])]!=_0x6eccb6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x6eccb6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2566fc,0x73744bd7^_0x157dce);}_0x499da2(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2566fc();})];return window[_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6eccb6([0x72,0x61,0x63,0x65])](_0x5e9a31)[_0x6eccb6([0x74,0x68,0x65,0x6e])](()=>_0x4fefd6);}async function _0x84516(){if(await _0x1a5b70,_0x499da2(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x386393=_0x8a128[_0x6eccb6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4bd075=_0x8a128[_0x6eccb6([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])](_0x386393[_0x6eccb6([0x69,0x64])]),_0x13a319=_0x3c2121(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x13a319[_0x6eccb6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x386393['id'],_0x4bd075?_0x4bd075['id']:null,!0x0),_0x13a319[_0x6eccb6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x13a319[_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x13a319[_0x6eccb6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x47d213,void(_0x13a319[_0x6eccb6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x47d213);}if(_0x499da2(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4a3ec2=_0x3c2121(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4a3ec2[_0x6eccb6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4a3ec2[_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4a3ec2[_0x6eccb6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x47d213,_0x4a3ec2[_0x6eccb6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x47d213;}_0x2080a2[_0x6eccb6([0x6d,0x6f,0x64,0x65,0x6c])][_0x6eccb6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47d213,_0x2080a2[_0x6eccb6([0x6d,0x6f,0x64,0x65,0x6c])][_0x6eccb6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47d213,_0x2080a2[_0x6eccb6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6eccb6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19ac3e(){return _0x499da2(_0x6eccb6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3c2121(_0x6eccb6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x6eccb6([0x73,0x74,0x61,0x74,0x65])]==_0x6eccb6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3c5c70(){return _0x499da2(_0x6eccb6([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 _0x24f768(){return _0x499da2(_0x6eccb6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x863bc1(_0x38e2f5){const _0x56bd00=_0x4b146f();_0x2080a2[_0x56bd00]=_0x6eccb6([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])+_0x38e2f5,_0x38e2f5[_0x6eccb6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x6eccb6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4b146f()]=_0x2199c4),_0x38e2f5!=_0x6eccb6([0x56,0x61,0x6c,0x69,0x64])&&_0x84516();}function _0x4b146f(){const _0x196595=window[_0x6eccb6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6eccb6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6eccb6([0x6e,0x6f,0x77])]())[_0x6eccb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6eccb6([0x2e]),'');let _0x41725d=_0x6eccb6([0x73]);for(let _0x5093e4=0x0;_0x5093e4<_0x196595[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5093e4+=0x2){let _0x30a175=window[_0x6eccb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196595[_0x6eccb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5093e4,_0x5093e4+0x2));_0x30a175>=_0x57b8d0[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30a175-=_0x57b8d0[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41725d+=_0x57b8d0[_0x30a175];}return _0x41725d;}function _0xbef164(){const _0x2c255b=_0x158529[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e]));if(0x3!=_0x2c255b[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545bae(_0x2c255b[0x1]);function _0x545bae(_0x36d987){const _0x3f9ac8=_0x20ee25(_0x36d987);return _0x3f9ac8&&_0x4f3ce1()?_0x3f9ac8:null;function _0x4f3ce1(){const _0x280a0f=_0x3f9ac8[_0x6eccb6([0x6a,0x74,0x69])],_0x65f1b=window[_0x6eccb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280a0f[_0x6eccb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x280a0f[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x180ab3={..._0x3f9ac8,[_0x6eccb6([0x6a,0x74,0x69])]:_0x280a0f[_0x6eccb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x280a0f[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x180ab3[_0x6eccb6([0x76,0x63])],_0x22c5c6(_0x180ab3)==_0x65f1b;}}}async function _0x5a5ef2(){let _0xf2130=!0x0;try{const _0x2034ab=_0x158529[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e])),[_0x4b2398,_0xf28692,_0x5383c5]=_0x2034ab;return _0x1f2c79(_0x4b2398),await _0x305003(_0x4b2398,_0xf28692,_0x5383c5),_0xf2130;}catch{return!0x1;}function _0x1f2c79(_0x16b997){const _0x4676e2=_0x20ee25(_0x16b997);_0x4676e2&&_0x4676e2[_0x6eccb6([0x61,0x6c,0x67])]==_0x6eccb6([0x45,0x53,0x32,0x35,0x36])||(_0xf2130=!0x1);}async function _0x305003(_0x598b52,_0x209a1b,_0x5d4e41){const _0x30117c=window[_0x6eccb6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6eccb6([0x66,0x72,0x6f,0x6d])](_0x2bbcd1(_0x5d4e41),_0x2addc4=>_0x2addc4[_0x6eccb6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52e32a=new window[(_0x6eccb6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6eccb6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x598b52+_0x6eccb6([0x2e])+_0x209a1b),_0x30aaaf=window[_0x6eccb6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6eccb6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30aaaf)return;const _0xb7ad6c=await _0x30aaaf[_0x6eccb6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6eccb6([0x6a,0x77,0x6b]),_0x582a3f,{[_0x6eccb6([0x6e,0x61,0x6d,0x65])]:_0x6eccb6([0x45,0x43,0x44,0x53,0x41]),[_0x6eccb6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6eccb6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6eccb6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30aaaf[_0x6eccb6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6eccb6([0x6e,0x61,0x6d,0x65])]:_0x6eccb6([0x45,0x43,0x44,0x53,0x41]),[_0x6eccb6([0x68,0x61,0x73,0x68])]:{[_0x6eccb6([0x6e,0x61,0x6d,0x65])]:_0x6eccb6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb7ad6c,_0x30117c,_0x52e32a)||(_0xf2130=!0x1);}}function _0x20ee25(_0x1db66d){return _0x1db66d[_0x6eccb6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6eccb6([0x65,0x79]))?JSON[_0x6eccb6([0x70,0x61,0x72,0x73,0x65])](_0x2bbcd1(_0x1db66d)):null;}function _0x2bbcd1(_0x44909e){return window[_0x6eccb6([0x61,0x74,0x6f,0x62])](_0x44909e[_0x6eccb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6eccb6([0x2b]))[_0x6eccb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6eccb6([0x2f])));}function _0x22c5c6(_0x3f5c0f){let _0x417ee3=0x1505;function _0x2f11ab(_0x4e5508){for(let _0x5eead2=0x0;_0x5eead2<_0x4e5508[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5eead2++){const _0xdf8421=_0x4e5508[_0x6eccb6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5eead2);_0x417ee3=(_0x417ee3<<0x5)+_0x417ee3+_0xdf8421,_0x417ee3&=_0x417ee3;}}function _0x5875c6(_0x3dcdef){Array[_0x6eccb6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dcdef)?_0x3dcdef[_0x6eccb6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5875c6):_0x3dcdef&&typeof _0x3dcdef==_0x6eccb6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6eccb6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dcdef)[_0x6eccb6([0x73,0x6f,0x72,0x74])]()[_0x6eccb6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f5599,_0x3bbdce])=>{_0x2f11ab(_0x3f5599),_0x5875c6(_0x3bbdce);}):_0x2f11ab(window[_0x6eccb6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dcdef));}return _0x5875c6(_0x3f5c0f),_0x417ee3>>>0x0;}function _0x49b43b(_0x12a498){return _0x12a498[_0x6eccb6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6eccb6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6eccb6([0x30]));}function _0x38668b(_0x4715a5){return _0x4715a5[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6eccb6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6eccb6([0x6a,0x6f,0x69,0x6e])]('');}function _0x499da2(_0x3bd32c){return _0x2080a2[_0x6eccb6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6eccb6([0x68,0x61,0x73])](_0x3bd32c);}function _0x3c2121(_0x248a9f){return _0x2080a2[_0x6eccb6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6eccb6([0x67,0x65,0x74])](_0x248a9f);}function _0x47d213(){}function _0x6eccb6(_0x23c6f9){return _0x23c6f9['map'](_0x5b8ba3=>String['fromCharCode'](_0x5b8ba3))['join']('');}_0x863bc1(await _0x56a98a());}(this);}['createRevision'](_0x394918){const _0x40132d=this['editor']['plugins']['get']('Users');return new I({'id':_0x394918['id'],'name':_0x394918['name'],'creator':_0x394918['creatorId']?_0x40132d['getUser'](_0x394918['creatorId']):null,'diffData':_0x394918['diffData']||_0x394918['data'],'authors':_0x394918['authorsIds']['map'](_0x25fbe8=>_0x40132d['getUser'](_0x25fbe8)),'createdAt':new Date(_0x394918['createdAt']),'attributes':_0x394918['attributes'],'fromVersion':_0x394918['fromVersion'],'toVersion':_0x394918['toVersion']});}['addRevision'](_0x211815,_0xee7155=0x0){this['_revisions']['add'](_0x211815,_0xee7155);}['getRevision'](_0x1f235d){return this['_revisions']['get'](_0x1f235d);}['getRevisions'](_0x26f382={'toJSON':!0x1}){const _0x2af81c=Array['from'](this['_revisions']);return _0x2af81c['reverse'](),_0x26f382['toJSON']?_0x2af81c['map'](_0x2a5d04=>_0x2a5d04['toJSON']()):_0x2af81c;}['getIndex'](_0x4c38c4){return this['_revisions']['getIndex'](_0x4c38c4);}['getEarlierVisibleRevision'](_0x4d9f04){const [,_0x51b374]=this['getRevisionsIterator'](_0x4d9f04,{'direction':'earlier'});return _0x51b374;}['getLaterVisibleRevision'](_0x4c1df4){const [,_0x2d6de8]=this['getRevisionsIterator'](_0x4c1df4,{'direction':'later'});return _0x2d6de8;}['getRevisionsInDiff'](_0xe22075){const _0x7654e3=[];for(const _0x5e014c of this['getRevisionsIterator'](_0xe22075['newRevisionId']))if(_0x7654e3['push'](_0x5e014c),_0x5e014c['id']===_0xe22075['oldRevisionId'])break;return _0x7654e3;}*['getRevisionsIterator'](_0x5327f9,{direction:_0x536a66='earlier',filter:_0x816cd4=()=>!0x0}={}){const _0x498e38='earlier'===_0x536a66?0x1:-0x1;let _0x7cc88d=this['_revisions']['get'](_0x5327f9),_0x5394e7=this['getIndex'](_0x7cc88d);for(yield _0x7cc88d;_0x7cc88d;){if(_0x5394e7+=_0x498e38,_0x7cc88d=this['getRevision'](_0x5394e7),!_0x7cc88d)return;_0x816cd4(_0x7cc88d)&&(yield _0x7cc88d);}}}class $ extends _0x59afc0{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2e87e7,'c'],[_0x35f1af,'a'],[_0x4ec289,'e'],[_0x192b7e,'r'],[_0x308c37,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2e87e7],['a',_0x35f1af],['e',_0x4ec289],['r',_0x192b7e],['u',_0x308c37]]);async['loadRevisionData'](_0x59c4bf,_0x1eefaa){if(_0x59c4bf['diffData']||!_0x1eefaa)return;const _0x3ffec9=this['editor']['config']['get']('collaboration.channelId'),_0x1765a0=await _0x1eefaa['getRevision']({'channelId':_0x3ffec9,'revisionId':_0x59c4bf['id']});_0x59c4bf['diffData']=_0x1765a0['diffData'];}['getRevisionDocumentData'](_0x56a5c7){const _0x37dd87={};for(const _0x4d65aa in _0x56a5c7['diffData']){if(_0x56a5c7['diffData'][_0x4d65aa]['attachChange']&&!_0x56a5c7['diffData'][_0x4d65aa]['attachChange']['isAttached'])continue;const _0x34b447=this['_removeRevisionMarkers'](JSON['parse'](_0x56a5c7['diffData'][_0x4d65aa]['insertions'])),_0x27d4c3=this['editor']['editing']['view']['document'],_0x326d01=new _0x3f74b0(_0x27d4c3,_0x34b447['map'](_0x49ad2a=>this['_getViewFromDiffObj'](_0x49ad2a,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x37dd87[_0x4d65aa]=this['editor']['data']['processor']['toData'](_0x326d01),this['editor']['data']['processor']['useFillerType']('default');}return _0x37dd87;}['getRevisionRootsAttributes'](_0x21cde8){const _0xa1b346={};for(const _0x4767f6 in _0x21cde8['diffData'])_0x21cde8['diffData'][_0x4767f6]['attachChange']&&!_0x21cde8['diffData'][_0x4767f6]['attachChange']['isAttached']||(_0xa1b346[_0x4767f6]=_0x21cde8['diffData'][_0x4767f6]['attributesAfter']||{});return _0xa1b346;}['_getTypeCharForViewElement'](_0x39a804){return this['_viewClassToTypeChar']['get'](_0x39a804['constructor']);}['_getViewFromDiffObj'](_0x390a95,_0x71abca){const _0x14f506=this['editor']['editing']['view']['document'];if('string'==typeof _0x390a95)return new _0x231269(_0x14f506,_0x390a95);{let _0x5095da,_0x46e552;_0x46e552='u'==_0x390a95['type']||'r'==_0x390a95['type']?[]:_0x390a95['children']['map'](_0x49deaf=>this['_getViewFromDiffObj'](_0x49deaf,_0x71abca));const _0x227948=this['_typeCharToViewClass']['get'](_0x390a95['type'])||_0x22793f,_0x22897c=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5095da=new _0x227948(_0x14f506,_0x390a95['name'],_0x390a95['attributes'],_0x46e552),'u'==_0x390a95['type']&&_0x390a95['children'][0x0]){const _0x4fa440=_0x390a95['children'][0x0];if(_0x5095da['render']=function(_0x5de939){const _0x1725a2=_0x5de939['createElement']('div');return _0x1725a2['innerHTML']=_0x4fa440,_0x1725a2['childNodes'][0x0];},_0x71abca){const _0x150554=new _0x3f74b0(_0x14f506);_0x150554['_appendChild'](_0x5095da);const _0x3bdc6b=Array['from'](_0x22897c['viewChildrenToDom'](_0x150554,{'bind':!0x1})),_0x5cf1cb=_0x22897c['domDocument']['createElement']('div');_0x5cf1cb['append'](..._0x3bdc6b),_0x5095da=Array['from'](_0x22897c['domChildrenToView'](_0x5cf1cb))[0x0];}}else{if('r'==_0x390a95['type']&&_0x390a95['children'][0x0]){const _0x3b5079=_0x390a95['children'][0x0];if(_0x5095da['render']=function(_0x46bcd9){_0x46bcd9['innerHTML']=_0x3b5079;},_0x71abca){const _0x10e1a7=new _0x3f74b0(_0x14f506);_0x10e1a7['_appendChild'](_0x5095da);const _0x4ab9e7=Array['from'](_0x22897c['viewChildrenToDom'](_0x10e1a7,{'bind':!0x1})),_0x1dd7ca=_0x22897c['domDocument']['createElement']('div');_0x1dd7ca['append'](..._0x4ab9e7);const _0x16de10=Array['from'](_0x22897c['domChildrenToView'](_0x1dd7ca));_0x16de10['length']>0x1?_0x5095da['_appendChild'](_0x16de10):_0x5095da=_0x16de10[0x0];}}}if(_0x390a95['customProperties']){for(const [_0x4e9142,_0x524148]of _0x390a95['customProperties'])_0x5095da['_setCustomProperty'](_0x4e9142,_0x524148);}const _0x68f350=void 0x0===_0x390a95['fillerOffset']?null:_0x390a95['fillerOffset'];return null!==_0x68f350&&(_0x5095da['getFillerOffset']=()=>_0x68f350),_0x5095da;}}['_makeModelFromViewString'](_0x42dcd7){const _0x3daecb=JSON['parse'](_0x42dcd7),_0x10ae26=this['editor']['editing']['view']['document'],_0x1530dd=new _0x3f74b0(_0x10ae26,_0x3daecb['map'](_0x18a56c=>this['_getViewFromDiffObj'](_0x18a56c,!0x0)));return this['editor']['data']['toModel'](_0x1530dd);}['_removeRevisionMarkers'](_0x27adfe){return(_0x27adfe=_0x27adfe['filter'](_0x22ef3f=>!_0x22ef3f['name']||'revision-start'!==_0x22ef3f['name']&&'revision-end'!==_0x22ef3f['name']))['forEach'](_0x1339cc=>{'string'!=typeof _0x1339cc&&(_0x1339cc['children']=this['_removeRevisionMarkers'](_0x1339cc['children']),_0x1339cc['attributes']=_0x1339cc['attributes']['filter'](_0x1f1899=>!_0x1f1899[0x0]['startsWith']('data-revision-')));}),_0x27adfe;}}function m(_0x5ad172,_0x5ba2ac,_0x3deb67){const t=_0x5ad172['t'];switch(_0x5ba2ac){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'},_0x3deb67);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3deb67);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 _0x59afc0{['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[_0x4e6a9f,S,$,_0x5b0cac];}constructor(_0x3d5687){super(_0x3d5687),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 _0x39b72f=_0x221375();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x39b72f},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 _0xd2f66b=this['repository']['getRevision'](0x0),_0x2017bc=_0xd2f66b&&null===_0xd2f66b['creator']?_0xd2f66b:null;if(this['_continueCurrentRevision']=!!_0x2017bc&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x367efb=this['_source']['getCurrentRevisionId'](),_0x128a55=this['repository']['getRevision'](_0x367efb);if(_0x128a55)this['_startingVersion']=_0x128a55['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3cdc26=this['_source']['history']['_operations']['find'](_0x540c0f=>!_0x540c0f['_isInit']),_0x3c061a=_0x3cdc26?_0x3cdc26['baseVersion']:this['_source']['history']['version'];_0xd2f66b?(_0xd2f66b['toVersion']<_0x3c061a&&_0xd2f66b['_update']({'toVersion':_0x3c061a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2017bc['id'],this['_startingVersion']=_0x2017bc['fromVersion']):(this['_startingVersion']=_0xd2f66b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3c061a,this['_continueCurrentRevision']=!0x1);}}else _0x2017bc&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2017bc['toVersion'],this['editor']['model']['document']['history']['version']),_0x2017bc['fromVersion']===_0x2017bc['toVersion']?(0x0!==_0x2017bc['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2017bc['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2017bc['id'],this['_startingVersion']=_0x2017bc['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',_0x5f3b3d=>!_0x5f3b3d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28370b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x555f57;for(const _0xe0f499 in _0x28370b){const _0x4ea40f=_0xe0f499,_0x325e05=_0x28370b[_0x4ea40f];if('revisionHistoryLicenseKeyValid'==_0x325e05||'revisionHistoryLicenseKeyInvalid'==_0x325e05||'revisionHistoryLicenseKeyExpired'==_0x325e05||'revisionHistoryLicenseKeyDomainLimit'==_0x325e05||'revisionHistoryLicenseKeyNotAllowed'==_0x325e05||'revisionHistoryLicenseKeyEvaluationLimit'==_0x325e05||'revisionHistoryLicenseKeyTrialLimit'==_0x325e05||'revisionHistoryLicenseKeyUsageLimit'==_0x325e05){delete _0x28370b[_0x4ea40f],_0x555f57=_0x325e05,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x555f57&&_0x28370b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x555f57&&_0x28370b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x555f57&&_0x28370b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x555f57&&_0x28370b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x555f57&&_0x28370b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x555f57&&_0x28370b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x555f57&&_0x28370b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x59a469=this['repository']['getRevision'](0x0),_0x241f03=await this['getRevisionDocumentData'](_0x59a469),_0x465fda=await this['getRevisionRootsAttributes'](_0x59a469);this['_replaceEditorDataWithRevisionData'](_0x241f03,_0x465fda);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5f5af3){this['_source']=_0x5f5af3;}async['update'](){const _0x32899d=await this['_source']['getLatestVersion']();if(_0x32899d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x193500=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x32899d});_0x193500['authors']=_0x193500['authorsIds']['map'](_0x200399=>this['editor']['plugins']['get']('Users')['getUser'](_0x200399)),this['currentRevision']['_update'](_0x193500);}}async['saveRevision'](_0x5ccab4={},_0x37954f=null){const _0x155ad3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x37954f>this['currentRevision']['toVersion']&&(_0x37954f=null),null===_0x37954f&&(_0x37954f=await this['_source']['getLatestVersion']());const _0x211fac=this['_getFromVersion'](_0x37954f),_0x4c26ab=this['buildRevisionData']({'from':_0x211fac,'to':_0x37954f});if(this['currentRevision']['toVersion']<_0x37954f){const _0x2c2e8b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x37954f,'to':_0x37954f});_0x2c2e8b['authors']=[],_0x2c2e8b['authorsIds']=[],_0x2c2e8b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2c2e8b,!0x0),delete _0x2c2e8b['authors'],_0x155ad3['push'](_0x2c2e8b);}_0x5ccab4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ccab4['name']=_0x5ccab4['name']||null,_0x5ccab4['id']=_0x5ccab4['id']||_0x221375(),_0x5ccab4={..._0x5ccab4,..._0x4c26ab};const _0x3a3882=this['addRevisionData'](_0x5ccab4);_0x155ad3['push'](_0x5ccab4);const _0x298571=this['repository']['getIndex'](_0x3a3882);if(0x0!==_0x298571){const _0x39b968=this['repository']['getRevision'](_0x298571-0x1);if(_0x39b968['fromVersion']!==_0x37954f){const _0x27662f=this['_revisionDataBuilder']['getData'](_0x37954f,_0x39b968['toVersion']),_0x1ad510={'id':_0x39b968['id'],'diffData':_0x27662f['diffData'],'authorsIds':_0x27662f['authorsIds'],'authors':_0x27662f['authorsIds']['map'](_0x530c02=>this['editor']['plugins']['get']('Users')['getUser'](_0x530c02)),'fromVersion':_0x37954f};_0x39b968===this['currentRevision']&&(_0x1ad510['createdAt']=new Date(_0x5ccab4['createdAt']['getTime']()+0xa)),_0x39b968['_update'](_0x1ad510,!0x0),delete _0x1ad510['authors'],_0x155ad3['push'](_0x1ad510);}}if(this['adapter']){for(const _0x4eb546 of _0x155ad3)this['_bufferUpdate'](_0x4eb546['id'],_0x4eb546,!0x0);this['sendBufferedUpdates']();}return _0x3a3882;}['addRevisionData'](_0x2dcf72){const _0x510feb=this['repository']['createRevision'](_0x2dcf72);return this['adapter']&&_0x510feb['on']('_update',(_0x325625,_0x548bc7,_0x2d71ce)=>{_0x2d71ce||(this['_bufferUpdate'](_0x548bc7['id'],_0x548bc7,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x510feb,this['_findInsertionIndex'](_0x510feb)),_0x510feb;}async['getRevisionDocumentData'](_0x752a7c){return await this['_utils']['loadRevisionData'](_0x752a7c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x752a7c);}async['getRevisionRootsAttributes'](_0x57df1c){return await this['_utils']['loadRevisionData'](_0x57df1c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x57df1c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x50e26c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3986da=0x0;_0x3986da<_0x50e26c['length'];_0x3986da++){const _0x4e015a=_0x50e26c[_0x3986da];let _0x179fd6=!0x1;for(const _0x4d42b2 of Object['keys'](_0x4e015a))void 0x0===_0x4e015a[_0x4d42b2]?delete _0x4e015a[_0x4d42b2]:'id'!==_0x4d42b2&&(_0x179fd6=!0x0);_0x179fd6||(_0x50e26c[_0x3986da]=null);}if(_0x50e26c=_0x50e26c['filter'](_0x1aa6af=>null!==_0x1aa6af),!_0x50e26c['length'])return;for(let _0x5ae9a1=0x0;_0x5ae9a1<_0x50e26c['length'];_0x5ae9a1++){const _0x110016=_0x50e26c[_0x5ae9a1];void 0x0!==_0x110016['fromVersion']&&void 0x0===_0x110016['toVersion']&&(_0x110016['toVersion']=this['repository']['getRevision'](_0x110016['id'])['toVersion']),void 0x0!==_0x110016['toVersion']&&void 0x0===_0x110016['fromVersion']&&(_0x110016['fromVersion']=this['repository']['getRevision'](_0x110016['id'])['fromVersion']);}const _0x2078d9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x50e26c,_0x2078d9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x555250=>{if(_0x555250){for(const _0x55e8ca of _0x555250)this['setRevisionData']({'id':_0x55e8ca['id'],'createdAt':_0x55e8ca['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2565a4=null,from:_0x4b8dd9=null,to:_0x1ab34c=null}){_0x4b8dd9=null!==_0x4b8dd9?_0x4b8dd9:_0x2565a4['fromVersion'],_0x1ab34c=null!==_0x1ab34c?_0x1ab34c:_0x2565a4['toVersion'];const _0x1d185c=this['_revisionDataBuilder']['getData'](_0x4b8dd9,_0x1ab34c),_0x52268c={'diffData':_0x1d185c['diffData'],'authorsIds':_0x1d185c['authorsIds'],'fromVersion':_0x4b8dd9,'toVersion':_0x1ab34c};if(!_0x2565a4||_0x1ab34c!==_0x2565a4['toVersion']){const _0x52a1f8=_0x1ab34c-0x1,_0x360257=this['_source']['history']['getOperation'](_0x52a1f8);_0x52268c['createdAt']=_0x360257&&_0x360257['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4b8dd9===this['_loadedStateData']['fromVersion']){for(const _0x5695a2 of this['_loadedStateData']['authors'])_0x52268c['authorsIds']['includes'](_0x5695a2['id'])||_0x52268c['authorsIds']['push'](_0x5695a2['id']);}return _0x52268c;}['_bufferUpdate'](_0x4bdb2d,_0x56b3d7,_0x50f90f){if(this['_bufferedUpdates']['has'](_0x4bdb2d)){const _0x21b614=this['_bufferedUpdates']['get'](_0x4bdb2d);_0x56b3d7=_0x50f90f?{..._0x21b614,..._0x56b3d7}:{..._0x56b3d7,..._0x21b614};}this['_bufferedUpdates']['set'](_0x4bdb2d,_0x56b3d7);}['setRevisionData'](_0x45d2a4){const _0x421d98=this['repository']['getRevision'](_0x45d2a4['id']);if(_0x45d2a4['createdAt']&&(_0x45d2a4['createdAt']=new Date(_0x45d2a4['createdAt'])),_0x45d2a4['authorsIds']){const _0x489f3e=this['editor']['plugins']['get']('Users');_0x45d2a4['authors']=_0x45d2a4['authorsIds']['map'](_0x4b50cf=>_0x489f3e['getUser'](_0x4b50cf));}_0x421d98['_update'](_0x45d2a4,!0x0);}['_createInitialRevision'](_0x463dc1){const _0x5b3de1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5b3de1)this['_initialRevisionId']=_0x5b3de1['id'];else{const _0x4b2dc4=!this['editor']['model']['document']['roots']['find'](_0x569a3f=>this['editor']['model']['hasContent'](_0x569a3f)),_0x51d96f=this['editor']['plugins']['get']('Users')['me']['id'],_0x279bdf=m(this['editor']['locale'],_0x4b2dc4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x463dc1,'to':_0x463dc1,'id':this['_initialRevisionId'],'name':_0x279bdf,'creatorId':_0x51d96f});}}['_createCurrentRevision'](_0x470142){const _0x209c42=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x209c42),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x470142,'to':_0x470142,'id':_0x209c42,'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'](_0x390caf,_0x480eb5){let _0x595411=this['editor']['config']['get']('initialData'),_0x220c92=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x595411){_0x595411={};for(const _0x4f9378 of this['editor']['model']['document']['getRootNames']())_0x595411[_0x4f9378]='';}if('string'==typeof _0x595411&&(_0x595411={'main':_0x595411}),void 0x0===_0x220c92){_0x220c92={};for(const _0x18af17 of this['editor']['model']['document']['getRootNames']())_0x220c92[_0x18af17]={};}let _0x17c1db=!0x1;const _0x5da878=Object['keys'](_0x595411),_0x2e707e=Object['keys'](_0x390caf);for(const _0x158b90 of _0x5da878){if(_0x595411[_0x158b90]!==_0x390caf[_0x158b90]&&''!==_0x595411[_0x158b90]['trim']()){_0x17c1db=!0x0;break;}if(!_0x4544c2(_0x220c92[_0x158b90],_0x480eb5[_0x158b90])&&Object['keys'](_0x220c92[_0x158b90])['length']>0x0){_0x17c1db=!0x0;break;}}_0x17c1db||(_0x17c1db=_0x2e707e['some'](_0x71098f=>!this['editor']['model']['document']['getRoot'](_0x71098f))),_0x17c1db&&_0x2a22d8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x595411,'editorRootsAttributes':_0x220c92,'revisionData':_0x390caf,'revisionRootsAttributes':_0x480eb5}),this['editor']['config']['set']('initialData',_0x390caf),this['editor']['config']['set']('rootsAttributes',_0x480eb5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x686680=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x686680['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x48a44d){const _0x4ab347=this['repository']['getRevisions']();_0x4ab347['reverse']();let _0x47c160=0x0;for(;_0x47c160<_0x4ab347['length'];){const _0x1e6724=_0x4ab347[_0x47c160];if(_0x1e6724===this['currentRevision']){_0x47c160++;continue;}if(_0x1e6724['id']===this['_initialRevisionId'])break;const _0xa6e406=_0x48a44d['toVersion']-_0x1e6724['toVersion']||_0x48a44d['fromVersion']-_0x1e6724['fromVersion'];if(_0xa6e406>0x0)break;if(_0xa6e406<0x0)_0x47c160++;else{if(!_0x48a44d['creator']&&_0x1e6724['creator'])break;if(_0x1e6724['creator']||!_0x48a44d['creator']){if(_0x48a44d['createdAt']>_0x1e6724['createdAt'])break;_0x47c160++;}else _0x47c160++;}}return _0x47c160;}['_getFromVersion'](_0x783622){const _0x5f1eea=this['repository']['getRevisions']();_0x5f1eea['reverse'](),_0x5f1eea['shift']();const _0x2104b9=_0x5f1eea['find'](_0x10be7a=>_0x10be7a['toVersion']<=_0x783622)['toVersion'];return _0x2104b9<this['_startingVersion']?this['_startingVersion']:_0x2104b9;}['_makeRevision']({name:_0xef77e0,from:_0x3093bc,to:_0x3a85b6,creatorId:_0x252632,id:_0x1648c2}){const _0x37915b=this['buildRevisionData']({'from':_0x3093bc,'to':_0x3a85b6});_0x37915b['name']=_0xef77e0,_0x37915b['creatorId']=_0x252632,_0x37915b['id']=_0x1648c2;const _0x1edb37=this['addRevisionData'](_0x37915b);return this['adapter']&&this['_bufferUpdate'](_0x37915b['id'],_0x37915b,!0x0),_0x1edb37;}['_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(_0x3e58bd){this['editor']=_0x3e58bd,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'](_0x49cdce){this['source']=_0x49cdce;const _0x29a1d7=new Map(),_0x1bce2e=new Map(),_0x36e1c0=this['editor']['model']['document']['roots']['map'](_0x31f493=>_0x31f493['rootName']);for(const _0x35334f of _0x36e1c0){const _0x2f3afc=this['editor']['model']['document']['getRoot'](_0x35334f),_0x262079=x(_0x2f3afc);_0x29a1d7['set'](_0x35334f,_0x262079),_0x1bce2e['set'](_0x35334f,Object['fromEntries'](_0x2f3afc['getAttributes']()));}const _0x1eb64c=Array['from'](this['editor']['model']['markers'])['map'](_0x40ce1b=>[_0x40ce1b['name'],_0x40ce1b['getRange']()]),_0x48aa39=this['source']['version'];this['_saveMetaData'](_0x48aa39,_0x29a1d7,_0x1eb64c,_0x1bce2e),this['_startingRevisionId']=this['_revisionId'];const _0x42eaab=new Map(),_0x352b27=new Map();for(const _0x1fe8b0 of _0x36e1c0){const _0x17a7ed=N(_0x1fe8b0);_0x42eaab['set'](_0x1fe8b0,_0x17a7ed),_0x352b27['set'](_0x1fe8b0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x42eaab,[],_0x352b27);}['getData'](_0x26bafc,_0x4706d8){if(this['_lastFrom']===_0x26bafc&&this['_lastTo']<=_0x4706d8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4706d8,!0x0);else{if(!this['_savedMetaData']['has'](_0x26bafc)){const _0x36ab3c=this['_getPreviousFrom'](_0x26bafc);this['_calculateMetaData'](_0x36ab3c,_0x26bafc,!0x1);}this['_calculateMetaData'](_0x26bafc,_0x4706d8,!0x0);}return this['_lastFrom']=_0x26bafc,this['_lastTo']=_0x4706d8,this['_getState']();}['loadState'](_0x487e70){if(!this['_savedMetaData']['has'](_0x487e70['fromVersion'])){const _0xa70197=this['_getPreviousFrom'](_0x487e70['fromVersion']);this['_calculateMetaData'](_0xa70197,_0x487e70['fromVersion'],!0x1);}this['_calculateMetaData'](_0x487e70['fromVersion'],_0x487e70['toVersion'],!0x1);const _0x3ae3e1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x487e70['fromVersion'],this['_lastTo']=_0x487e70['toVersion'];for(const _0x18649e in _0x487e70['diffData']){const _0x49ec21=_0x487e70['diffData'][_0x18649e]['attachChange'],_0x232676=_0x459df9(_0x487e70['diffData'][_0x18649e]['attributesBefore'])||{},_0x5b739c=_0x3ae3e1['_makeModelFromViewString'](_0x487e70['diffData'][_0x18649e]['deletions']);_0x5b739c['rootName']=_0x18649e,_0x5b739c['_isAttached']=!_0x49ec21||!_0x49ec21['isAttached'],_0x5b739c['isAttached']=()=>_0x5b739c['_isAttached'],this['_baseRoots']['set'](_0x18649e,_0x5b739c),this['_baseRootsAttributes']['set'](_0x18649e,_0x232676),_0x49ec21&&this['_touchedRoots']['set'](_0x18649e,_0x49ec21);const _0x1ea424=this['_makeIdsRoot'](_0x5b739c);this['_baseIdsRoots']['set'](_0x18649e,_0x1ea424);for(const [_0x1a11f3,_0x1226c0]of _0x5b739c['markers']){if(!_0x1a11f3['startsWith']('revision:'))continue;const _0x183c03=_0x1a11f3['split'](':')[0x2];for(const _0x1c8345 of _0x1226c0['getWalker']({'singleCharacters':!0x0})){const _0x186dcb=this['_getVidAttributeName'](_0x1c8345),_0xf803a='elementEnd'==_0x1c8345['type']?_0x1c8345['previousPosition']['path']['slice'](0x0,-0x1):_0x1c8345['previousPosition']['path'],_0x1fba59=_0x1ea424['getNodeByPath'](_0xf803a)['getAttribute'](_0x186dcb);this['_touched']['set'](_0x1fba59,{'userId':_0x183c03});}_0x5b739c['markers']['delete'](_0x1a11f3);}}this['_startingRevisionId']=this['_revisionId'];const _0x14afa8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x340be5=>!this['_touched']['has'](_0x340be5));let _0x2f0062=0x0;const _0x1abb2b=new Map();for(const _0xe1b23 in _0x487e70['diffData']){const _0xd37b8a=_0x487e70['diffData'][_0xe1b23]['attachChange'],_0x1ad6aa=_0x459df9(_0x487e70['diffData'][_0xe1b23]['attributesAfter'])||{},_0x3c2326=_0x3ae3e1['_makeModelFromViewString'](_0x487e70['diffData'][_0xe1b23]['insertions']);_0x3c2326['rootName']=_0xe1b23,_0x3c2326['_isAttached']=!_0xd37b8a||_0xd37b8a['isAttached'],_0x3c2326['isAttached']=()=>_0x3c2326['_isAttached'],this['_diffRoots']['set'](_0xe1b23,_0x3c2326),this['_diffRootsAttributes']['set'](_0xe1b23,_0x1ad6aa);const _0x511784=this['_makeIdsRoot'](_0x3c2326,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xe1b23,_0x511784),_0x1abb2b['set'](_0xe1b23,_0x3c2326['isAttached']()?_0x1ad6aa:{});for(const [_0x2b8fdd,_0x142b9f]of _0x3c2326['markers']){if(!_0x2b8fdd['startsWith']('revision:'))continue;const _0xa35ee6=_0x2b8fdd['split'](':')[0x2];for(const _0x471a18 of _0x142b9f['getWalker']({'singleCharacters':!0x0})){const _0x4a372f=this['_getVidAttributeName'](_0x471a18),_0xdcbd7d=this['_revisionId']++,_0x125da0='elementEnd'==_0x471a18['type']?_0x471a18['previousPosition']['path']['slice'](0x0,-0x1):_0x471a18['previousPosition']['path'];_0x511784['getNodeByPath'](_0x125da0)['_setAttribute'](_0x4a372f,_0xdcbd7d),this['_touched']['set'](_0xdcbd7d,{'userId':_0xa35ee6});}_0x3c2326['markers']['delete'](_0x2b8fdd);}for(const _0x220937 of this['editor']['model']['createRangeIn'](_0x3c2326)['getWalker']({'singleCharacters':!0x0})){const _0x5336f9=this['_getVidAttributeName'](_0x220937),_0x7d9e13='elementEnd'==_0x220937['type']?_0x220937['previousPosition']['path']['slice'](0x0,-0x1):_0x220937['previousPosition']['path'],_0x4afb92=_0x511784['getNodeByPath'](_0x7d9e13);_0x4afb92['getAttribute'](_0x5336f9)>0x0||_0x4afb92['_setAttribute'](_0x5336f9,_0x14afa8[_0x2f0062++]);}for(const [_0x71227a,_0x56bd7a]of _0x3c2326['markers'])_0x71227a['startsWith']('revision:')||this['_markers']['set'](_0x71227a,_0x56bd7a);}const {roots:_0x1d6d16}=this['_savedMetaData']['get'](_0x487e70['fromVersion']),{roots:_0x3eb829}=this['_savedMetaData']['get'](_0x487e70['toVersion']),_0x3c1e87=x(_0x1d6d16['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x3c1e87),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c1e87,Number['NEGATIVE_INFINITY']));const _0xdd2baf=x(_0x3eb829['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0xdd2baf),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xdd2baf));const _0x5a41b7=Array['from'](this['_diffRoots'])['map'](([_0x5bfe25,_0x497684])=>[_0x5bfe25,x(_0x497684)]);this['_saveMetaData'](this['_lastTo'],_0x5a41b7,this['_markers'],_0x1abb2b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x24fe8b,_0xd9e9ec,_0x226ef0,_0x48c749){const _0x46f165=new Map(_0xd9e9ec),_0x38ef44=new Map(_0x459df9(_0x48c749)),_0x4b5a97=new Map();for(const [_0x4e9021,_0x533025]of _0x226ef0)_0x4b5a97['set'](_0x4e9021,{'start':_0x533025['start']['clone'](),'end':_0x533025['end']['clone'](),'rootName':_0x533025['root']['rootName']});this['_savedMetaData']['set'](_0x24fe8b,{'roots':_0x46f165,'markers':_0x4b5a97,'rootsAttributes':_0x38ef44});}['_removeMetaData'](_0x378329){this['_savedMetaData']['delete'](_0x378329);}['_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'](_0x1ebc26,_0xa6893d=null){let _0x3437eb=null;_0x1ebc26['is']('documentFragment')||(_0x3437eb=new _0x16738f(_0x1ebc26['name'],{'vid_start':null===_0xa6893d?this['_revisionId']++:_0xa6893d++}));const _0x984d82=[];for(const _0x27b73f of _0x1ebc26['getChildren']())if(_0x27b73f['is']('element')){_0x984d82['push'](this['_makeIdsRoot'](_0x27b73f,_0xa6893d));const _0x1c38c5=_0x984d82[_0x984d82['length']-0x1];null!==_0xa6893d&&(_0xa6893d=_0x1c38c5['is']('element','$text')?_0x1c38c5['getAttribute']('vid')+0x1:_0x1c38c5['getAttribute']('vid_end')+0x1);}else{for(let _0x1f4579=0x0;_0x1f4579<_0x27b73f['offsetSize'];_0x1f4579++)_0x984d82['push'](new _0x16738f('$text',{'vid':null===_0xa6893d?this['_revisionId']++:_0xa6893d++}));}if(_0x1ebc26['is']('documentFragment')){const _0x46b47a=N(_0x1ebc26['rootName']);return _0x46b47a['_insertChild'](0x0,_0x984d82),_0x46b47a;}return _0x3437eb['_setAttribute']('vid_end',null===_0xa6893d?this['_revisionId']++:_0xa6893d++),_0x3437eb['_insertChild'](0x0,_0x984d82),_0x3437eb;}['_calculateMetaData'](_0x31f189,_0x1ae6f5,_0x21578a){this['_reset']();const {roots:_0x502855,markers:_0x2ae3cd,rootsAttributes:_0x543364}=this['_savedMetaData']['get'](_0x31f189);this['_baseRoots']=new Map(_0x502855),this['_baseRootsAttributes']=new Map(_0x459df9(_0x543364));for(const [_0x56e564,_0xd27f5b]of this['_baseRoots'])if('$graveyard'!==_0x56e564&&(this['_diffRoots']['set'](_0x56e564,x(_0xd27f5b)),this['_diffRootsAttributes']=new Map(_0x459df9(_0x543364)),_0x21578a)){const _0x457bf1=this['_revisionId'];this['_idsRoots']['set'](_0x56e564,this['_makeIdsRoot'](_0xd27f5b)),this['_baseIdsRoots']['set'](_0x56e564,this['_makeIdsRoot'](_0xd27f5b,_0x457bf1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x21578a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x176ee3,_0x463d43]of _0x2ae3cd){const _0x51cb95=this['_baseRoots']['get'](_0x463d43['rootName']),_0x3227da=this['_diffRoots']['get'](_0x463d43['rootName']),_0x4f4cfa=new _0xb076e3(this['_fixPosition'](_0x463d43['start'],_0x51cb95),this['_fixPosition'](_0x463d43['end'],_0x51cb95)),_0x12dff5=this['_fixRange'](_0x4f4cfa,_0x3227da);_0x51cb95['markers']['set'](_0x176ee3,_0x4f4cfa),this['_markers']['set'](_0x176ee3,_0x12dff5);}this['_applyOperations'](_0x31f189,_0x1ae6f5,_0x21578a);}['_applyOperations'](_0x4b1a96,_0x57f49e,_0x4c5b21){for(const _0x421dc7 of this['source']['getOperations'](_0x4b1a96,_0x57f49e))this['_handleOperation'](_0x421dc7,_0x4c5b21);for(const _0x3a2086 of this['_diffRoots']['values']())_0x3a2086['markers']['clear']();for(const [_0xff2972,_0x1246d0]of this['_markers']){this['_diffRoots']['get'](_0x1246d0['root']['rootName'])['markers']['set'](_0xff2972,_0x1246d0['clone']());}const _0x59a765=new Map(),_0x425faa=new Map();for(const [_0x2e8388,_0x4e2056]of this['_diffRoots'])_0x59a765['set'](_0x2e8388,x(_0x4e2056)),_0x425faa['set'](_0x2e8388,this['_diffRootsAttributes']['get'](_0x2e8388));this['_saveMetaData'](_0x57f49e,_0x59a765,this['_markers'],_0x425faa);}['_getPreviousFrom'](_0x2669ab){const _0x18b04c=Array['from'](this['_savedMetaData']['keys']());_0x18b04c['sort']((_0x727f0a,_0x8d485e)=>_0x727f0a-_0x8d485e),_0x18b04c['reverse']();for(const _0x56a6a5 of _0x18b04c)if(_0x56a6a5<_0x2669ab)return _0x56a6a5;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4cc75d,_0x237d5d){const _0x4d5716=Array['from'](_0x237d5d['markers'])['map'](([_0x473c0a,_0x1e3c90])=>[_0x473c0a,this['_fixRange'](_0x1e3c90,_0x4cc75d)]);_0x4cc75d['markers']=new Map(_0x4d5716);}['_transformMarkers'](_0x1a964c){for(const _0x52f9a0 of this['_markers']['values']()){const _0x17c403=_0x52f9a0['getTransformedByOperation'](_0x1a964c),_0x522e50=_0xb076e3['_createFromRanges'](_0x17c403);_0x52f9a0['start']=_0x522e50['start'],_0x52f9a0['end']=_0x522e50['end'];}}['_handleOperation'](_0x5606c0,_0xcae450){if('addRoot'!=_0x5606c0['type']&&'detachRoot'!=_0x5606c0['type']){if('insert'==_0x5606c0['type']){const _0x395f17=_0x5606c0['position']['root']['rootName'];this['_diffRoots']['has'](_0x395f17)||(this['_diffRoots']['set'](_0x395f17,N(_0x395f17,!0x0)),this['_diffRootsAttributes']['set'](_0x395f17,{}),_0xcae450&&this['_idsRoots']['set'](_0x395f17,N(_0x395f17,!0x0)));}else{if('addRootAttribute'==_0x5606c0['type']||'removeRootAttribute'==_0x5606c0['type']||'changeRootAttribute'==_0x5606c0['type'])return void this['_handleRootAttributeOperation'](_0x5606c0);'marker'==_0x5606c0['type']&&this['_handleMarkerOperation'](_0x5606c0);}if('marker'!==_0x5606c0['type']){const _0x349cbb=this['_cloneOperation'](_0x5606c0,this['_diffRoots']);_0x349cbb['_execute'](),this['_transformMarkers'](_0x349cbb);}if(_0xcae450)switch(_0x5606c0['type']){case'insert':this['_handleInsertOperation'](_0x5606c0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5606c0);break;case'merge':this['_handleMergeOperation'](_0x5606c0);break;case'split':this['_handleSplitOperation'](_0x5606c0);}}else this['_handleRootOperation'](_0x5606c0,_0xcae450);}['_cloneOperation'](_0xe697ea,_0x5da46c){const _0x13b379=_0xe697ea['clone']();return _0x13b379['_authorId']=_0xe697ea['_authorId'],this['_fixOperation'](_0x13b379,_0x5da46c),_0x13b379;}['_getBaseVids'](_0x133d05){return _0x133d05['map'](_0x1759d4=>{const _0x5d6561=this['_getVidAttributeName'](_0x1759d4);return Number(_0x1759d4['item']['getAttribute'](_0x5d6561));});}['_generateTape'](_0x2e9be3,_0x3c37f2){if(_0x2e9be3['is']('element','$text'))_0x3c37f2['push']({'item':_0x2e9be3,'type':'text'});else{_0x2e9be3['is']('element')&&_0x3c37f2['push']({'item':_0x2e9be3,'type':'elementStart'});for(const _0x30b285 of _0x2e9be3['getChildren']())this['_generateTape'](_0x30b285,_0x3c37f2);_0x2e9be3['is']('element')&&_0x3c37f2['push']({'item':_0x2e9be3,'type':'elementEnd'});}return _0x3c37f2;}['_getState'](){const _0x2cab37=new Map(this['_touched']),_0x5c1df6=new Map(_0x2cab37),_0x23c77f=new Map(),_0x12a692={'insertions':{},'deletions':{}},_0x37aca8={'insertions':{},'deletions':{}},_0x2feca0=new Map(),_0x270e6f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x270e6f['delete']('$graveyard');for(const _0x1872fe of _0x270e6f){const _0x151855=this['_diffRoots']['get'](_0x1872fe)||N(_0x1872fe,!0x1),_0x5761ad=this['_baseRoots']['get'](_0x1872fe)||N(_0x1872fe,!0x1);_0x151855['isAttached']()||_0x5761ad['isAttached']()?(_0x12a692['insertions'][_0x1872fe]=x(_0x151855),_0x12a692['deletions'][_0x1872fe]=x(_0x5761ad),this['_copyMarkers'](_0x12a692['deletions'][_0x1872fe],_0x5761ad),this['_copyMarkers'](_0x12a692['insertions'][_0x1872fe],_0x151855),_0x37aca8['insertions'][_0x1872fe]=this['_generateTape'](this['_idsRoots']['get'](_0x1872fe),[]),_0x37aca8['deletions'][_0x1872fe]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1872fe)||N(_0x1872fe,!0x1),[])):_0x270e6f['delete'](_0x1872fe);}for(const _0x5bd111 of _0x270e6f){const _0x31407f=_0x37aca8['insertions'][_0x5bd111];for(const _0xe6ab82 of _0x31407f){const _0x4a0a15=this['_getVidAttributeName'](_0xe6ab82),_0x44ecc9=_0xe6ab82['item']['getAttribute'](_0x4a0a15);_0x5c1df6['delete'](_0x44ecc9),_0x44ecc9>=this['_startingRevisionId']&&_0x23c77f['set'](_0x44ecc9,_0x2cab37['get'](_0x44ecc9));}}for(const _0x5507ec of _0x270e6f){const _0x521e8d=_0x37aca8['insertions'][_0x5507ec],_0x17b7a4=this['_getBaseVids'](_0x37aca8['deletions'][_0x5507ec]);let _0x94261c=0x0;for(const _0x5238de of _0x521e8d){const _0x2c3da9=this['_getVidAttributeName'](_0x5238de),_0x133fb2=_0x5238de['item']['getAttribute'](_0x2c3da9);if(!_0x23c77f['has'](_0x133fb2)&&!_0x2feca0['has'](_0x133fb2)){if(_0x5c1df6['has'](_0x133fb2))_0x94261c++;else{if(_0x133fb2!=_0x17b7a4[_0x94261c]){const _0x352385=_0x2cab37['get'](_0x133fb2)||_0x2cab37['get'](_0x17b7a4[_0x94261c]);for(;_0x133fb2!=_0x17b7a4[_0x94261c];)_0x5c1df6['has'](_0x17b7a4[_0x94261c])||(_0x2feca0['set'](_0x17b7a4[_0x94261c],_0x352385),_0x2cab37['set'](_0x17b7a4[_0x94261c],_0x352385)),_0x94261c++;}_0x94261c++;}}}}for(const _0x9f6a73 of _0x270e6f){const _0x4887d8=_0x37aca8['insertions'][_0x9f6a73];for(const _0xd3c91c of _0x4887d8){const _0x20516e=this['_getVidAttributeName'](_0xd3c91c),_0x338f9e=_0xd3c91c['item']['getAttribute'](_0x20516e);if(_0x2feca0['has'](_0x338f9e)){const _0x3da11a=_0x2feca0['get'](_0x338f9e);_0x5c1df6['has'](_0x338f9e)||_0x5c1df6['set'](_0x338f9e,{..._0x3da11a}),_0x23c77f['set'](_0x338f9e,{..._0x3da11a});}}}for(const _0xbf1183 of _0x5c1df6['keys']())_0xbf1183>=this['_startingRevisionId']&&_0x5c1df6['delete'](_0xbf1183);const _0x33b2be=new Map();for(const _0x399d9c of _0x270e6f){let _0x2b81ca=_0x37aca8['insertions'][_0x399d9c];for(const _0x44a371 of _0x2b81ca)if(_0x44a371['item']['is']('element','tableCell')){const _0x58364e=this['_getVidAttributeName'](_0x44a371),_0x3c8c6a=_0x44a371['item']['getAttribute'](_0x58364e);if(_0x23c77f['has'](_0x3c8c6a)){const _0x4d6a35=_0x44a371['item']['parent']['parent']['getAttribute']('vid_start'),_0x7dbc78=_0x33b2be['get'](_0x4d6a35)||new Set();_0x7dbc78['add'](_0x23c77f['get'](_0x3c8c6a)['userId']),_0x33b2be['set'](_0x4d6a35,_0x7dbc78);}}_0x2b81ca=_0x37aca8['deletions'][_0x399d9c];for(const _0x519ad7 of _0x2b81ca)if(_0x519ad7['item']['is']('element','tableCell')){const _0x553c09=this['_getVidAttributeName'](_0x519ad7),_0x25f948=_0x519ad7['item']['getAttribute'](_0x553c09);if(_0x5c1df6['has'](_0x25f948)){const _0x5655f8=_0x519ad7['item']['parent']['parent']['getAttribute']('vid_start'),_0x195728=_0x33b2be['get'](_0x5655f8)||new Set();_0x195728['add'](_0x5c1df6['get'](_0x25f948)['userId']),_0x33b2be['set'](_0x5655f8,_0x195728);}}for(const _0x48725b of _0x33b2be['keys']())(_0x23c77f['has'](_0x48725b)||_0x5c1df6['has'](_0x48725b))&&_0x33b2be['delete'](_0x48725b);}for(const _0x1b68b8 of _0x270e6f){const _0x1a4a85=_0x37aca8['insertions'][_0x1b68b8];let _0x1c0189=null,_0x5e9d51=null;for(const _0x29103e of _0x1a4a85){const _0x289895=this['_getVidAttributeName'](_0x29103e),_0x3e17b1=_0x29103e['item']['getAttribute'](_0x289895),_0x48e9ed=_0x33b2be['get'](_0x3e17b1);_0x48e9ed&&'elementStart'==_0x29103e['type']&&(_0x1c0189=Array['from'](_0x48e9ed)[0x0],_0x5e9d51=_0x29103e['item']['getAttribute']('vid_end')),_0x1c0189&&(_0x5c1df6['set'](_0x3e17b1,{'userId':_0x1c0189}),_0x23c77f['set'](_0x3e17b1,{'userId':_0x1c0189})),_0x3e17b1==_0x5e9d51&&(_0x1c0189=null,_0x5e9d51=null);}}const _0x193f29={},_0xfa6cea=new Set();for(const _0x670097 of _0x270e6f){const _0x4fe73a=_0x12a692['deletions'][_0x670097],_0x9b040=_0x12a692['insertions'][_0x670097];for(const {userId:_0xe9464}of this['_touchedMarkers']['values']())null!==_0xe9464&&_0xfa6cea['add'](_0xe9464);for(const {userId:_0x35c2da}of this['_touchedRoots']['values']())null!==_0x35c2da&&_0xfa6cea['add'](_0x35c2da);this['_markChanges'](_0x9b040,_0x37aca8['insertions'][_0x670097],_0x23c77f,'insertion',_0xfa6cea),this['_markChanges'](_0x4fe73a,_0x37aca8['deletions'][_0x670097],_0x5c1df6,'deletion',_0xfa6cea),_0x193f29[_0x670097]={'insertions':this['_prepareViewToSave'](_0x9b040),'deletions':this['_prepareViewToSave'](_0x4fe73a),'attachChange':this['_touchedRoots']['get'](_0x670097)||null,'attributesBefore':_0x459df9(this['_baseRootsAttributes']['get'](_0x670097))||{},'attributesAfter':_0x459df9(this['_diffRootsAttributes']['get'](_0x670097))};}return{'diffData':_0x193f29,'authorsIds':Array['from'](_0xfa6cea)};}['_processRootBeforeSave'](_0x2edfbf){for(const [,_0x348ba5]of _0x2edfbf['markers']){const _0x144bb0=_0x348ba5['start']['getAncestors']()['filter'](_0x54f62c=>'tableCell'==_0x54f62c['name']);for(const _0x585c09 of _0x144bb0)0x1==_0x585c09['childCount']&&_0x585c09['getChild'](0x0)['is']('element','paragraph')&&_0x585c09['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xe58741){this['_processRootBeforeSave'](_0xe58741);const _0x5d45b6=this['editor']['data']['toView'](_0xe58741,{}),_0x28807d=Array['from'](_0x5d45b6['getChildren']())['map'](_0xc5c452=>this['_getViewJson'](_0xc5c452));return JSON['stringify'](_0x28807d);}['_getViewJson'](_0x4092bb){if(_0x4092bb['is']('$text'))return _0x4092bb['data'];{const _0x17e128=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x98e86e=_0x4092bb,_0xe4f0ff=this['editor']['data']['htmlProcessor']['domConverter'],_0x2ed3ed={'type':_0x17e128['_getTypeCharForViewElement'](_0x98e86e),'name':_0x98e86e['name'],'attributes':Array['from'](_0x98e86e['getAttributes']()),'children':Array['from'](_0x98e86e['getChildren']())['map'](_0x500013=>this['_getViewJson'](_0x500013))};if(_0x4092bb['is']('uiElement')&&'$comment'!=_0x4092bb['name']){const _0x535995=_0x4092bb['render'](_0xe4f0ff['domDocument'],_0xe4f0ff);_0x2ed3ed['children']['push'](_0x535995['outerHTML']);}else{if(_0x4092bb['is']('rawElement')){const _0x56a49c=_0xe4f0ff['domDocument']['createElement'](_0x98e86e['name']);_0x4092bb['render'](_0x56a49c,_0xe4f0ff),_0x2ed3ed['children']['push'](_0x56a49c['innerHTML']);}}const _0x3dee63=Array['from'](_0x98e86e['getCustomProperties']());_0x3dee63['length']>0x0&&(_0x2ed3ed['customProperties']=_0x3dee63);const _0x5b57c3=_0x98e86e['getFillerOffset']();return null!==_0x5b57c3&&(_0x2ed3ed['fillerOffset']=_0x5b57c3),_0x2ed3ed;}}['_markChanges'](_0x409e64,_0x412ec4,_0x2db651,_0x2f945e,_0x54858e){let _0x35a26f=null,_0x12a5f4=null,_0x4ea7b4=0x0;const _0x23c2e0=this['editor']['model'];for(let _0x57b458=0x0;_0x57b458<_0x412ec4['length'];_0x57b458++){const _0x45d45a=this['_getVidAttributeName'](_0x412ec4[_0x57b458]),_0x572da0=_0x412ec4[_0x57b458]['item']['getAttribute'](_0x45d45a),_0x2e7ddf=_0x2db651['get'](_0x572da0),_0x2a7a48=_0x57b458==_0x412ec4['length']-0x1;(!_0x35a26f&&_0x2e7ddf&&(_0x35a26f=_0x2e7ddf,_0x12a5f4=_0x412ec4[_0x57b458]),_0x35a26f&&(!_0x2e7ddf||_0x2e7ddf['userId']!=_0x35a26f['userId']))&&(_0x4ae7ca(_0x2e7ddf,P(_0x12a5f4,_0x409e64,_0x23c2e0),P(_0x412ec4[_0x57b458],_0x409e64,_0x23c2e0)),_0x35a26f=_0x2e7ddf||null,_0x12a5f4=_0x2e7ddf?_0x412ec4[_0x57b458]:null),_0x35a26f&&_0x2a7a48&&_0x4ae7ca(_0x2e7ddf,P(_0x12a5f4,_0x409e64,_0x23c2e0),V(_0x412ec4[_0x57b458],_0x409e64,_0x23c2e0));}function _0x4ae7ca(_0x4ca5a0,_0x49633d,_0x6cbb16){const _0x3ea36e=_0x35a26f['userId'],_0x1637f7='revision:'+_0x2f945e+':'+_0x3ea36e+':'+_0x4ea7b4++,_0x45f053=_0x23c2e0['createRange'](_0x49633d,_0x6cbb16);_0x409e64['markers']['set'](_0x1637f7,_0x45f053),null!==_0x3ea36e&&_0x54858e['add'](_0x3ea36e);}}['_getVidAttributeName'](_0x2a4ffc){switch(_0x2a4ffc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13ccd0,_0x258b24){_0x13ccd0['baseVersion']=null;for(const _0x55f6e8 in _0x13ccd0){const _0x40dee5=_0x13ccd0[_0x55f6e8];if(_0x40dee5 instanceof _0x3cb0ec){const _0x195de6=_0x258b24['get'](_0x40dee5['root']['rootName']);_0x13ccd0[_0x55f6e8]=this['_fixPosition'](_0x40dee5,_0x195de6);}if(_0x40dee5 instanceof _0xb076e3){const _0x1789d9=_0x258b24['get'](_0x40dee5['root']['rootName']);_0x13ccd0[_0x55f6e8]=this['_fixRange'](_0x40dee5,_0x1789d9);}'root'===_0x55f6e8&&(_0x13ccd0['root']=_0x258b24['get'](_0x13ccd0['root']['rootName']));}}['_fixRange'](_0x9b0a1d,_0x2ebe3e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x9b0a1d['start'],_0x2ebe3e),this['_fixPosition'](_0x9b0a1d['end'],_0x2ebe3e));}['_fixPosition'](_0x331f2a,_0x5adc74){return this['editor']['model']['createPositionFromPath'](_0x5adc74,_0x331f2a['path'],_0x331f2a['stickiness']);}['_handleInsertOperation'](_0x37cb17){const _0x15d133=this['_idsRoots']['get'](_0x37cb17['position']['root']['rootName']),_0x112c68=this['_fixPosition'](_0x37cb17['position'],_0x15d133),_0x316a0c=null===_0x37cb17['_authorId']?null:_0x37cb17['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53d7af=_0x112c68['parent'],_0x1fe468=this['_revisionId'],_0x5105cb=[];for(const _0x4fe734 of _0x37cb17['nodes'])if(_0x4fe734['is']('element'))_0x5105cb['push'](this['_makeIdsRoot'](_0x4fe734));else{for(let _0x514f12=0x0;_0x514f12<_0x4fe734['offsetSize'];_0x514f12++)_0x5105cb['push'](new _0x16738f('$text',{'vid':this['_revisionId']++}));}const _0x556759=this['_revisionId'];for(let _0x2a449f=_0x1fe468;_0x2a449f<_0x556759;_0x2a449f++)this['_touched']['set'](_0x2a449f,{'userId':_0x316a0c});_0x53d7af['_insertChild'](_0x112c68['offset'],_0x5105cb);}['_handleMoveOperation'](_0x3a122a){(_0x3a122a=this['_cloneOperation'](_0x3a122a,this['_idsRoots']))['_execute']();const _0x3abbcf=null===_0x3a122a['_authorId']?null:_0x3a122a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d0ba0=_0x3a122a['getMovedRangeStart'](),_0x58a299=_0x1d0ba0['parent'],_0xcae527=_0x1d0ba0['offset'];!function _0x33eb0e(_0x217efd,_0x4e98c5,_0x1a8005,_0x1ad437){for(let _0x232284=_0x1a8005;_0x232284<_0x1ad437;_0x232284++){const _0x176b40=_0x4e98c5['getChild'](_0x232284);_0x176b40['is']('element','$text')?_0x217efd['set'](_0x176b40['getAttribute']('vid'),{'userId':_0x3abbcf}):(_0x217efd['set'](_0x176b40['getAttribute']('vid_start'),{'userId':_0x3abbcf}),_0x33eb0e(_0x217efd,_0x176b40,0x0,_0x176b40['childCount']),_0x217efd['set'](_0x176b40['getAttribute']('vid_end'),{'userId':_0x3abbcf}));}}(this['_touched'],_0x58a299,_0xcae527,_0xcae527+_0x3a122a['howMany']);}['_handleMergeOperation'](_0x12187){const _0x46519d=null===(_0x12187=this['_cloneOperation'](_0x12187,this['_idsRoots']))['_authorId']?null:_0x12187['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16eee0=_0x12187['targetPosition']['parent'],_0x450192=_0x12187['sourcePosition']['parent'],_0x2928dd=_0x16eee0['getAttribute']('vid_end'),_0x22f90a=_0x450192['getAttribute']('vid_start');_0x16eee0['_setAttribute']('vid_end',_0x450192['getAttribute']('vid_end')),_0x450192['_setAttribute']('vid_end',_0x2928dd),this['_touched']['set'](_0x22f90a,{'userId':_0x46519d}),this['_touched']['set'](_0x2928dd,{'userId':_0x46519d}),_0x12187['_execute']();}['_handleSplitOperation'](_0x9c2957){const _0x40c561=null===(_0x9c2957=this['_cloneOperation'](_0x9c2957,this['_idsRoots']))['_authorId']?null:_0x9c2957['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54dcd0=_0x9c2957['graveyardPosition'],_0x5b095b=_0x9c2957['splitPosition']['parent'];_0x9c2957['_execute']();const _0x2881c5=_0x5b095b['getAttribute']('vid_end'),_0x4ff0f0=_0x9c2957['insertionPosition']['nodeAfter'];if(_0x54dcd0){const _0x291676=_0x4ff0f0['getAttribute']('vid_end'),_0x4bdc3e=_0x5b095b['getAttribute']('vid_end');_0x5b095b['_setAttribute']('vid_end',_0x291676),_0x4ff0f0['_setAttribute']('vid_end',_0x4bdc3e),this['_touched']['set'](_0x5b095b['getAttribute']('vid_end'),{'userId':_0x40c561}),this['_touched']['set'](_0x4ff0f0['getAttribute']('vid_start'),{'userId':_0x40c561});}else{const _0xd6ffdd=this['_revisionId']++,_0x3fad4e=this['_revisionId']++;_0x5b095b['_setAttribute']('vid_end',_0xd6ffdd),_0x4ff0f0['_setAttribute']('vid_start',_0x3fad4e),_0x4ff0f0['_setAttribute']('vid_end',_0x2881c5),this['_touched']['set'](_0xd6ffdd,{'userId':_0x40c561}),this['_touched']['set'](_0x3fad4e,{'userId':_0x40c561});}}['_handleMarkerOperation'](_0x587d08){if(!_0x587d08['affectsData'])return;const _0x221699=(_0x587d08=this['_cloneOperation'](_0x587d08,this['_diffRoots']))['oldRange']?_0x587d08['oldRange']['root']:null,_0x158037=_0x587d08['newRange']?_0x587d08['newRange']['root']:null;_0x221699&&this['_markers']['delete'](_0x587d08['name']),_0x158037&&this['_markers']['set'](_0x587d08['name'],_0x587d08['newRange']['clone']());const _0x11072e=null===_0x587d08['_authorId']?null:_0x587d08['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44a5e9=_0x587d08['name'];if(!this['_touchedMarkers']['has'](_0x44a5e9))return void this['_touchedMarkers']['set'](_0x44a5e9,{'range':_0x587d08['oldRange'],'userId':_0x11072e});const _0x591cec=this['_touchedMarkers']['get'](_0x44a5e9),_0x2f2eae=_0x591cec['range'],_0x5c78a1=_0x587d08['newRange'];null==_0x2f2eae&&null==_0x5c78a1||_0x2f2eae&&_0x5c78a1&&_0x2f2eae['isEqual'](_0x5c78a1)?this['_touchedMarkers']['delete'](_0x587d08['name']):_0x591cec['userId']=_0x11072e;}['_handleRootOperation'](_0x2e60a3,_0x3e4a22){this['_diffRoots']['has'](_0x2e60a3['rootName'])?this['_diffRoots']['get'](_0x2e60a3['rootName'])['_isAttached']=_0x2e60a3['isAdd']:(this['_diffRoots']['set'](_0x2e60a3['rootName'],N(_0x2e60a3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2e60a3['rootName'],{}),_0x3e4a22&&this['_idsRoots']['set'](_0x2e60a3['rootName'],N(_0x2e60a3['rootName'],!0x0)));const _0x28b460=null===_0x2e60a3['_authorId']?null:_0x2e60a3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f40ff=this['_touchedRoots']['get'](_0x2e60a3['rootName']);_0x5f40ff&&_0x5f40ff['userId']===_0x28b460?this['_touchedRoots']['delete'](_0x2e60a3['rootName']):this['_touchedRoots']['set'](_0x2e60a3['rootName'],{'userId':_0x28b460,'isAttached':_0x2e60a3['isAdd']});}['_handleRootAttributeOperation'](_0x324e48){const _0x1a0651=this['_diffRootsAttributes']['get'](_0x324e48['root']['rootName']);null===_0x324e48['newValue']?delete _0x1a0651[_0x324e48['key']]:_0x1a0651[_0x324e48['key']]=_0x324e48['newValue'];}}function x(_0x243a9b){const _0x4bb270=N(_0x243a9b['rootName'],_0x243a9b['isAttached']());for(const _0x52b13a of _0x243a9b['getChildren']()){const _0x59842b=_0x52b13a['_clone'](!0x0);_0x4bb270['_appendChild'](_0x59842b);}return _0x4bb270;}function N(_0x28f6d4,_0x3a5a5f=!0x0){const _0x26480d=new _0x54d9b6();return _0x26480d['rootName']=_0x28f6d4,_0x26480d['_isAttached']=_0x3a5a5f,_0x26480d['isAttached']=()=>_0x26480d['_isAttached'],_0x26480d;}function P(_0x43d577,_0x59f6e8,_0x1b6928){const _0x101433='elementEnd'==_0x43d577['type']?_0x1b6928['createPositionAt'](_0x43d577['item'],'end'):_0x1b6928['createPositionBefore'](_0x43d577['item']);return _0x1b6928['createPositionFromPath'](_0x59f6e8,_0x101433['path'],_0x101433['stickiness']);}function V(_0x326d59,_0x229f6f,_0x74783d){const _0x484e91='elementStart'==_0x326d59['type']?_0x74783d['createPositionAt'](_0x326d59['item'],0x0):_0x74783d['createPositionAfter'](_0x326d59['item']);return _0x74783d['createPositionFromPath'](_0x229f6f,_0x484e91['path'],_0x484e91['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x911840(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4cbae6){super(),this['id']=_0x4cbae6['id']||_0x221375(),this['author']=_0x4cbae6['author'],this['type']=_0x4cbae6['type'],this['data']=_0x4cbae6['data']||{},this['rootName']=_0x4cbae6['rootName'],this['set']('createdAt',_0x4cbae6['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(_0x51da46,_0x44442f){this['newRevisionId']=_0x51da46,this['oldRevisionId']=_0x44442f,this['changes']=new _0x51dee5();}['_setChanges'](_0x1aeb79){for(const _0xc8660a of _0x1aeb79)this['changes']['add'](_0xc8660a);}}class u extends _0x59afc0{['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[_0x4e6a9f,_0x43390d,S,$];}constructor(_0x26318f){super(_0x26318f),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',(_0x13256f,_0x288b74,_0x559108)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xe97598=>{for(const _0x21b666 of this['editor']['editing']['view']['document']['roots'])_0x559108?_0xe97598['removeClass']('ck-editor__editable__overlay',_0x21b666):_0xe97598['addClass']('ck-editor__editable__overlay',_0x21b666);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1a2892=>null!==_0x1a2892),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x44c7f9,_0x31a180,_0x5b654a)=>_0x44c7f9&&_0x5b654a?_0x31a180['changes']['getIndex'](_0x5b654a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x348638,_0x56d010)=>_0x348638?_0x56d010['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x43390d);}['init'](){const _0x590110=this['editor'],_0x3e81f9=new rt(_0x590110,{'direction':'backward'}),_0x4edb62=new rt(_0x590110,{'direction':'forward'});(_0x590110['commands']['add']('showPreviousChange',_0x3e81f9),_0x590110['commands']['add']('showNextChange',_0x4edb62),_0x590110['commands']['add']('restoreRevision',new nt(_0x590110)),this['on']('change:numberOfChanges',()=>{_0x3e81f9['refresh'](),_0x4edb62['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x590110['enableReadOnlyMode']('revision-viewer'),_0x590110['plugins']['has']('WidgetToolbarRepository'))&&_0x590110['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x210feb){return await this['_utils']['loadRevisionData'](_0x210feb,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x210feb);}async['getRevisionRootsAttributes'](_0x3dabcf){return await this['_utils']['loadRevisionData'](_0x3dabcf,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3dabcf);}async['compare'](_0x184c6b,_0x2403e4,_0x2ebceb=!0x1){if(!this['isEnabled'])return;const _0x4b7c8f=this['diff'],_0x565f3e=this['repository'],_0x1e43ea='string'==typeof _0x184c6b?_0x565f3e['getRevision'](_0x184c6b):_0x184c6b,_0x311099='string'==typeof _0x2403e4?_0x565f3e['getRevision'](_0x2403e4):_0x2403e4,_0x362ff2=_0x1e43ea['id'],_0x46a04c=_0x311099?_0x311099['id']:null;if(!_0x2ebceb&&this['diff']&&this['diff']['newRevisionId']===_0x362ff2&&this['diff']['oldRevisionId']===_0x46a04c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x362ff2,_0x46a04c);const _0x3f08fa=this['_getRevisionsRange'](_0x1e43ea,_0x311099,!0x0)['map'](_0x1dfeac=>this['_utils']['loadRevisionData'](_0x1dfeac,this['adapter']));return _0x3f08fa['push'](new Promise(_0x454f6d=>{setTimeout(_0x454f6d,0x14);})),Promise['all'](_0x3f08fa)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x45242f=this['_getDiff'](_0x362ff2,_0x46a04c);for(const _0x46709f of _0x45242f['changes'])this['_changeIdToChange']['set'](_0x46709f['id'],_0x46709f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29fbab=>{for(const _0x286f7a of this['editor']['model']['document']['getRootNames']())_0x29fbab['detachRoot'](_0x286f7a);for(const _0x1c687e of Object['keys'](_0x45242f['model'])){const _0x28b4df=_0x29fbab['addRoot'](_0x1c687e);for(const _0x2e07a3 of Object['keys'](_0x45242f['attributes'][_0x1c687e]))_0x29fbab['setAttribute'](_0x2e07a3,_0x45242f['attributes'][_0x1c687e][_0x2e07a3],_0x28b4df);_0x29fbab['insert'](_0x45242f['model'][_0x1c687e],_0x28b4df,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x45242f['changes'])),this['isReady']=!0x0;})['catch'](_0x5d1388=>{console['error'](_0x5d1388),this['_cleanUp'](),_0x4b7c8f&&(this['diff']=_0x4b7c8f),this['isReady']=!0x0;});}['addRevisionData'](_0x324143,_0xb24126){const _0x2a4c92=this['repository']['createRevision'](_0x324143);return _0x2a4c92['on']('_update',(_0x370a41,_0x559c6a,_0x46df98)=>_0xb24126(_0x559c6a,_0x46df98,_0x2a4c92)),this['repository']['addRevision'](_0x2a4c92),_0x2a4c92;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x33ac67=>{for(const _0x307ae2 of this['editor']['model']['document']['getRootNames']())_0x33ac67['detachRoot'](_0x307ae2);});}['_sortAndFilterDiffChanges'](_0x583eaa){const _0x57bffc=[],_0x53a419=new Map();for(const _0x321dc4 of this['editor']['model']['document']['getRootNames']()){const _0x117c64=this['editor']['editing']['view']['getDomRoot'](_0x321dc4);if(!_0x117c64)continue;const _0x3aaab3=_0x117c64['getClientRects']()['item'](0x0);_0x3aaab3&&(_0x57bffc['push'](_0x321dc4),_0x53a419['set'](_0x321dc4,_0x3aaab3));}return _0x57bffc['sort']((_0xa3bcc2,_0x5ee4fe)=>{const _0x4b2d38=_0x53a419['get'](_0xa3bcc2),_0x179af1=_0x53a419['get'](_0x5ee4fe);return _0x4b2d38['y']-_0x179af1['y']||_0x4b2d38['x']-_0x179af1['x'];}),(_0x583eaa=_0x583eaa['filter'](_0x229255=>_0x57bffc['includes'](_0x229255['rootName'])))['sort']((_0x46bf88,_0x54b472)=>_0x57bffc['indexOf'](_0x46bf88['rootName'])-_0x57bffc['indexOf'](_0x54b472['rootName'])),_0x583eaa;}['_makeTape'](_0x19857b){const _0x5dde87=Array['from'](_0x19857b['markers'])['filter'](([_0xa13c65,_0x45fec8])=>_0xa13c65['startsWith']('revision:')&&!_0x45fec8['isCollapsed']),_0x454c29=Array['from'](this['editor']['model']['createRangeIn'](_0x19857b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5dde87['length'])for(const _0x27f8a0 of _0x454c29){const [_0x1edb6c,_0x9a7124]=_0x5dde87[0x0],[,_0xf73c3f,_0x395350]=_0x1edb6c['split'](':');if(_0x9a7124['end']['isEqual'](_0x27f8a0['nextPosition'])&&_0x5dde87['shift'](),(_0x27f8a0['previousPosition']['isEqual'](_0x9a7124['start'])||_0x27f8a0['previousPosition']['isAfter'](_0x9a7124['start']))&&('insertion'==_0xf73c3f?_0x27f8a0['isAdded']={'userId':_0x395350}:'deletion'==_0xf73c3f&&(_0x27f8a0['isRemoved']={'userId':_0x395350})),0x0==_0x5dde87['length'])break;}return _0x454c29;}['_refreshStartEndIndex'](_0x10bf2b){const _0xe4e34d=new Map();for(let _0xc4690b=0x0;_0xc4690b<_0x10bf2b['length'];_0xc4690b++)'text'===_0x10bf2b[_0xc4690b]['type']?(_0x10bf2b[_0xc4690b]['item']['startIndex']=_0xc4690b,_0x10bf2b[_0xc4690b]['item']['endIndex']=_0xc4690b):('elementStart'===_0x10bf2b[_0xc4690b]['type']?_0x10bf2b[_0xc4690b]['item']['startIndex']=_0xc4690b:'elementEnd'===_0x10bf2b[_0xc4690b]['type']&&(_0x10bf2b[_0xc4690b]['item']['endIndex']=_0xc4690b),_0xe4e34d['set'](_0x10bf2b[_0xc4690b]['id'],_0xc4690b));for(const _0x480dbc of _0xe4e34d['values']())'elementStart'===_0x10bf2b[_0x480dbc]['type']?_0x10bf2b[_0x480dbc]['item']['endIndex']=_0xe4e34d['get'](_0x10bf2b[_0x480dbc]['pairId']):'elementEnd'===_0x10bf2b[_0x480dbc]['type']&&(_0x10bf2b[_0x480dbc]['item']['startIndex']=_0xe4e34d['get'](_0x10bf2b[_0x480dbc]['pairId']));}['_processTape'](_0x197396){for(let _0x4c850b=0x0;_0x4c850b<_0x197396['length'];_0x4c850b++){if('elementStart'===_0x197396[_0x4c850b]['type'])_0x197396[_0x4c850b]['item']['startIndex']=_0x4c850b;else{if('elementEnd'===_0x197396[_0x4c850b]['type']){_0x197396[_0x4c850b]['item']['endIndex']=_0x4c850b;const _0x211966=_0x197396[_0x4c850b]['item']['startIndex'];_0x197396[_0x211966]['pairId']=_0x197396[_0x4c850b]['id'],_0x197396[_0x4c850b]['pairId']=_0x197396[_0x211966]['id'];}else _0x197396[_0x4c850b]['item']['startIndex']=_0x4c850b,_0x197396[_0x4c850b]['item']['endIndex']=_0x4c850b,_0x197396[_0x4c850b]['pairId']=null;}_0x197396[_0x4c850b]['markersStart']||(_0x197396[_0x4c850b]['markersStart']=[],_0x197396[_0x4c850b]['markersEnd']=[]);}}['_markInsertions'](_0x32e1eb,_0x39f9fa){const _0x545462=_0x32e1eb['filter'](_0x32098d=>!_0x32098d['isAdded']);for(let _0x422573=0x0;_0x422573<_0x39f9fa['length'];_0x422573++)_0x39f9fa[_0x422573]['isAdded']&&(_0x545462[_0x422573]['isAdded']=_0x39f9fa[_0x422573]['isAdded']);}['_getDiff'](_0x3a1b92,_0x3147be=null){const _0x2e6cf8=this['repository']['getRevision'](_0x3a1b92),_0x4c36c9=_0x3147be?this['repository']['getRevision'](_0x3147be):null,_0x123f15=this['_getRevisionsRange'](_0x2e6cf8,_0x4c36c9),_0x1c4bf0=_0x123f15[_0x123f15['length']-0x1],_0x5f335a=new Map(),_0x396b49={'model':{},'attributes':{},'changes':[]},_0x350999=new Set(),_0x257fef=new Map();for(let _0x361d3d=_0x123f15['length']-0x1;_0x361d3d>=0x0;_0x361d3d--){const _0x253e56=_0x123f15[_0x361d3d];for(const _0x31b196 of Object['keys'](_0x253e56['diffData']))if(_0x253e56['diffData'][_0x31b196]['attachChange']){const _0x27f2a7=_0x253e56['diffData'][_0x31b196]['attachChange'];_0x27f2a7['isAttached']?(_0x350999['add'](_0x31b196),_0x257fef['has'](_0x31b196)&&_0x257fef['get'](_0x31b196)['userId']==_0x27f2a7['userId']?_0x257fef['delete'](_0x31b196):_0x257fef['set'](_0x31b196,_0x27f2a7)):_0x257fef['has'](_0x31b196)?(_0x350999['delete'](_0x31b196),_0x257fef['delete'](_0x31b196)):(_0x350999['add'](_0x31b196),_0x257fef['set'](_0x31b196,_0x27f2a7));}else _0x350999['add'](_0x31b196);}for(const _0x51e847 of _0x350999){const _0x4b397f=_0x257fef['has'](_0x51e847)&&!_0x257fef['get'](_0x51e847)['isAttached'];let _0x1dcc6f=_0x4b397f?_0x123f15['length']-0x1:0x0;const _0x1d630a=_0x4b397f?-0x1:0x1;for(;_0x123f15[_0x1dcc6f];){const _0x1c36b0=_0x123f15[_0x1dcc6f];if(_0x1c36b0['diffData'][_0x51e847]){const _0x1f8931=_0x4b397f?_0x1c36b0['diffData'][_0x51e847]['attributesBefore']:_0x1c36b0['diffData'][_0x51e847]['attributesAfter'];_0x396b49['attributes'][_0x51e847]=_0x1f8931?_0x459df9(_0x1f8931):{};break;}_0x1dcc6f+=_0x1d630a;}}for(const _0x24913e of _0x123f15){_0x24913e['model']={};for(const _0x1d56b4 of _0x24913e['authors'])_0x5f335a['set'](_0x1d56b4['id'],_0x1d56b4);for(const _0x3e914a of _0x350999){const _0x542aef=_0x24913e['diffData'][_0x3e914a]?_0x24913e['diffData'][_0x3e914a]['insertions']:'[]',_0x556203=_0x24913e['diffData'][_0x3e914a]?_0x24913e['diffData'][_0x3e914a]['deletions']:'[]';_0x24913e['model'][_0x3e914a]={'insertions':this['_utils']['_makeModelFromViewString'](_0x542aef),'deletions':this['_utils']['_makeModelFromViewString'](_0x556203)};}}for(const _0x208f66 of _0x350999){let _0x1d1209=null,_0x30acc8=0x0;const _0x631860=new Map(Array['from'](_0x2e6cf8['model'][_0x208f66]['insertions']['markers'])['filter'](([_0x292a67])=>!_0x292a67['startsWith']('revision:')));let _0x35cfeb=0x0;for(const _0x3813b1 of _0x123f15){const _0x463d8a=this['_makeTape'](_0x3813b1['model'][_0x208f66]['insertions']);_0x3813b1==_0x2e6cf8?(_0x1d1209=_0x463d8a,_0x30acc8=_0x1d1209['length'],_0x1d1209['forEach'](_0x253c57=>{_0x253c57['id']=_0x35cfeb++;}),this['_processTape'](_0x1d1209)):this['_markInsertions'](_0x1d1209,_0x463d8a);const _0xca6924=_0x1d1209['filter'](_0x12039f=>!_0x12039f['isAdded'])['map'](_0x34e1b6=>_0x34e1b6['id']);let _0x4b81dd=0x0;const _0x183b7e=this['_makeTape'](_0x3813b1['model'][_0x208f66]['deletions']);_0x183b7e['forEach'](_0xabc3e5=>{_0xabc3e5['isRemoved']?_0xabc3e5['id']=_0x30acc8++:_0xabc3e5['id']=_0xca6924[_0x4b81dd++];}),this['_processTape'](_0x183b7e),this['_setDistance'](_0x1d1209,'isAdded'),this['_setDistance'](_0x183b7e,'isRemoved'),_0x3813b1==_0x2e6cf8&&this['_markMarkers'](_0x1d1209,_0x631860),_0x1d1209=this['_joinTapes'](_0x1d1209,_0x183b7e),this['_refreshStartEndIndex'](_0x1d1209),this['_setDistance'](_0x1d1209,'isRemoved');}_0x1d1209=_0x1d1209['filter'](_0x2e4ddc=>!(_0x2e4ddc['isAdded']&&_0x2e4ddc['isRemoved']));const _0x53078e=new Map(_0x1c4bf0['model'][_0x208f66]['deletions']['markers']),_0x5a20c5=new Set(_0x631860['keys']());for(const _0x6b90a of _0x53078e['keys']())_0x5a20c5['delete'](_0x6b90a);this['_markSuggestions'](_0x1d1209,_0x5a20c5),this['_fixObsoleteTags'](_0x1d1209),_0x1d1209=this['_removeMissingPairs'](_0x1d1209),_0x1d1209=this['_markMismatchedRemovedTags'](_0x1d1209),_0x1d1209=this['_removeUnsupportedChanges'](_0x1d1209);const {root:_0x250822,changes:_0x4d75b4}=this['_makeModelFromTape'](_0x1d1209,_0x5f335a,_0x208f66);_0x396b49['model'][_0x208f66]=_0x250822;const _0x525b1c=_0x257fef['get'](_0x208f66);if(_0x525b1c){const _0x3df6b3=_0x5f335a['get'](_0x525b1c['userId']),_0x5f1859=new G({'author':_0x3df6b3,'type':_0x525b1c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x208f66});_0x4d75b4['unshift'](_0x5f1859),_0x396b49['attributes'][_0x208f66]['revisionHistoryAttachChange']=_0x5f1859['id'];}_0x396b49['changes']=_0x396b49['changes']['concat'](_0x4d75b4);}return _0x396b49;}['_markMarkers'](_0x153d46,_0x471a83){for(let _0x5368e3=0x0;_0x5368e3<_0x153d46['length'];_0x5368e3++)for(const [_0xcf0012,_0x4e7d53]of _0x471a83)!_0x4e7d53['isCollapsed']&&_0x4e7d53['start']['isEqual'](_0x153d46[_0x5368e3]['previousPosition'])&&_0x153d46[_0x5368e3]['markersStart']['push'](_0xcf0012),_0x4e7d53['end']['isEqual'](_0x153d46[_0x5368e3]['nextPosition'])&&_0x153d46[_0x5368e3]['markersEnd']['push'](_0xcf0012);}['_joinTapes'](_0x1818ca,_0x287b95){let _0x313ce8=[],_0x5d907f=0x0,_0x57ab85=0x0;for(;_0x5d907f<_0x1818ca['length']||_0x57ab85<_0x287b95['length'];){const _0xd34f1e=_0x1818ca[_0x5d907f]||{},_0x408a32=_0x287b95[_0x57ab85]||{};if(_0xd34f1e['id']==_0x408a32['id'])_0x5d907f++,_0x57ab85++,_0x313ce8['push'](_0xd34f1e);else{if(_0x408a32['isRemoved']&&_0xd34f1e['isAdded']){const {commonTape:_0x2c8f24,iEnd:_0x4fe390,jEnd:_0x24871c}=this['_threeWayMerge'](_0x1818ca,_0x5d907f,_0x287b95,_0x57ab85);_0x313ce8=_0x313ce8['concat'](_0x2c8f24),_0x5d907f=_0x4fe390,_0x57ab85=_0x24871c;}else _0x408a32['isRemoved']?(_0x57ab85++,_0x313ce8['push'](_0x408a32)):(_0x5d907f++,_0x313ce8['push'](_0xd34f1e));}}return _0x313ce8;}['_markSuggestions'](_0x2db8d8,_0xff18ab){const _0x1511fe=[];for(let _0x383a38=0x0;_0x383a38<_0x2db8d8['length'];_0x383a38++){for(let _0xe821cd=0x0;_0xe821cd<_0x2db8d8[_0x383a38]['markersStart']['length'];_0xe821cd++){const _0x325986=_0x2db8d8[_0x383a38]['markersStart'][_0xe821cd];if(!_0xff18ab['has'](_0x325986))continue;const {group:_0xfeafd2,type:_0x1b3ffa,authorId:_0x139e0c}=_0x25a012(_0x325986);'revision-suggestion'!=_0xfeafd2||'insertion'!=_0x1b3ffa&&'deletion'!=_0x1b3ffa||(_0x1511fe['unshift']({'type':_0x1b3ffa,'name':_0x325986,'userId':_0x139e0c}),_0x2db8d8[_0x383a38]['markersStart']['splice'](_0xe821cd,0x1),_0xe821cd--);}_0x554e51(_0x2db8d8[_0x383a38]);for(let _0x33ffc0=0x0;_0x33ffc0<_0x2db8d8[_0x383a38]['markersEnd']['length'];_0x33ffc0++){const _0x341d04=_0x2db8d8[_0x383a38]['markersEnd'][_0x33ffc0];if(!_0xff18ab['has'](_0x341d04))continue;const {group:_0x555464,type:_0x1e015b}=_0x25a012(_0x341d04);if('revision-suggestion'!=_0x555464||'insertion'!=_0x1e015b&&'deletion'!=_0x1e015b)continue;_0x2db8d8[_0x383a38]['markersEnd']['splice'](_0x33ffc0,0x1),_0x33ffc0--;const _0x1cafd3=_0x1511fe['findIndex'](_0x2ebdbb=>_0x2ebdbb['name']==_0x341d04);_0x1cafd3>-0x1&&_0x1511fe['splice'](_0x1cafd3,0x1);}}function _0x25a012(_0x1cceb2){const _0xeb93e9=_0x1cceb2['split'](':');return{'group':_0xeb93e9[0x0],'type':_0xeb93e9[0x1],'subType':_0xeb93e9['length']>=0x5?_0xeb93e9[0x2]:null,'id':_0xeb93e9['length']<0x5?_0xeb93e9[0x2]:_0xeb93e9[0x3],'authorId':_0xeb93e9['length']<0x5?_0xeb93e9[0x3]:_0xeb93e9[0x4],'markerCount':0x6==_0xeb93e9['length']?_0xeb93e9[0x5]:null};}function _0x554e51(_0xbad66c){for(let _0x5316db=0x0;_0x5316db<_0x1511fe['length'];_0x5316db++){if(_0xbad66c['isAdded']&&'insertion'==_0x1511fe[_0x5316db]['type']&&_0xbad66c['isAdded']['userId']==_0x1511fe[_0x5316db]['userId'])return _0xbad66c['isAddSuggestion']=_0x1511fe[_0x5316db],void delete _0xbad66c['isAdded'];if(!_0xbad66c['isAdded']&&!_0xbad66c['isRemoved']&&'deletion'==_0x1511fe[_0x5316db]['type'])return void(_0xbad66c['isRemoveSuggestion']=_0x1511fe[_0x5316db]);}}}['_setDistance'](_0x22a5f8,_0x3e3ff0){let _0x52966a=0x0,_0x506849=!0x1;const _0x383453=new Map();for(const _0x4b0b90 of _0x22a5f8)_0x4b0b90[_0x3e3ff0]?_0x506849&&(_0x52966a++,_0x506849=!0x1):(_0x52966a++,_0x506849=!0x0),_0x383453['set'](_0x4b0b90['id'],_0x52966a);for(let _0x283d9f=0x0;_0x283d9f<_0x22a5f8['length'];_0x283d9f++){if('isRemoved'==_0x3e3ff0&&_0x22a5f8[_0x283d9f]['isAdded']||'isAdded'==_0x3e3ff0&&_0x22a5f8[_0x283d9f]['isRemoved'])continue;if('text'==_0x22a5f8[_0x283d9f]['type']){_0x22a5f8[_0x283d9f]['distance']=0x0;continue;}const _0x1e61af=_0x383453['get'](_0x22a5f8[_0x283d9f]['pairId']),_0x3a4f75=_0x383453['get'](_0x22a5f8[_0x283d9f]['id']);_0x22a5f8[_0x283d9f]['distance']=_0x1e61af-_0x3a4f75;}}['_getRevisionsRange'](_0x4e856b,_0x3cf679,_0x588567=!0x1){const _0x5e6116=[];let _0x118503=this['repository']['getIndex'](_0x4e856b),_0xe3443c=this['repository']['getIndex'](_0x3cf679);for(-0x1==_0xe3443c&&(_0xe3443c=this['repository']['_revisions']['length'],_0x588567=!0x1);_0x118503<_0xe3443c;)_0x5e6116['push'](this['repository']['getRevision'](_0x118503)),_0x118503++;return _0x588567&&_0x5e6116['push'](this['repository']['getRevision'](_0x118503)),_0x5e6116;}['_threeWayMerge'](_0x267261,_0x18f0fc,_0x22b537,_0x3d74ba){const _0x4d1e5e=this['editor']['model']['schema'];let _0x3c6eee=_0x18f0fc;for(;_0x267261[_0x3c6eee]&&_0x267261[_0x3c6eee]['isAdded'];)_0x3c6eee++;let _0x26a619=_0x3d74ba;for(;_0x22b537[_0x26a619]&&_0x22b537[_0x26a619]['isRemoved'];)_0x26a619++;_0x2ede18(_0x267261,_0x18f0fc,_0x3c6eee),_0x2ede18(_0x22b537,_0x3d74ba,_0x26a619);const _0x1508cc=_0x22b537['slice'](_0x3d74ba,_0x26a619)['concat'](_0x267261['slice'](_0x18f0fc,_0x3c6eee));return _0x1508cc['sort']((_0x2f7b08,_0x1bc8a1)=>_0x2f7b08['side']!=_0x1bc8a1['side']?_0x2f7b08['side']-_0x1bc8a1['side']:_0x2f7b08['level']!=_0x1bc8a1['level']?_0x2f7b08['level']-_0x1bc8a1['level']:_0x2f7b08['distance']!=_0x1bc8a1['distance']?_0x1bc8a1['distance']-_0x2f7b08['distance']:!!_0x2f7b08['isAdded']!=!!_0x1bc8a1['isAdded']?-0x1==_0x2f7b08['side']||0x0==_0x2f7b08['side']?_0x2f7b08['isAdded']?-0x1:0x1:_0x2f7b08['isAdded']?0x1:-0x1:_0x2f7b08['index']-_0x1bc8a1['index']),{'commonTape':_0x1508cc,'iEnd':_0x3c6eee,'jEnd':_0x26a619};function _0x2ede18(_0x1fdad5,_0x19e083,_0x1ba875){let _0x474ef4=-0x1,_0x43a0ee=Number['POSITIVE_INFINITY'],_0x3c008a=!0x0;for(let _0x5211ef=_0x19e083;_0x5211ef<_0x1ba875;_0x5211ef++)if(_0x4d1e5e['isInline'](_0x1fdad5[_0x5211ef]['item'])||(_0x3c008a=!0x1),_0x1fdad5[_0x5211ef]['item']['startIndex']<_0x19e083&&(_0x474ef4=_0x5211ef),_0x1fdad5[_0x5211ef]['item']['endIndex']>=_0x1ba875){_0x43a0ee=_0x5211ef;break;}_0x3c008a&&(_0x474ef4=_0x1ba875-0x1);for(let _0x226e0e=_0x19e083;_0x226e0e<_0x1ba875;_0x226e0e++)_0x1fdad5[_0x226e0e]['side']=_0x226e0e<=_0x474ef4?-0x1:_0x226e0e<_0x43a0ee?0x0:0x1,_0x1fdad5[_0x226e0e]['index']=_0x226e0e;let _0x25acb8=0x0;for(let _0x527a74=_0x19e083;_0x527a74<=_0x474ef4;_0x527a74++)0x0==_0x1fdad5[_0x527a74]['distance']?_0x1fdad5[_0x527a74]['level']=_0x25acb8:(_0x25acb8++,_0x1fdad5[_0x527a74]['level']=_0x25acb8,_0x25acb8++);for(let _0x281e6f=_0x19e083;_0x281e6f<_0x1ba875;_0x281e6f++)0x0==_0x1fdad5[_0x281e6f]['side']&&(_0x1fdad5[_0x281e6f]['level']=_0x25acb8);_0x25acb8=0x0;for(let _0x4ceb8f=_0x1ba875-0x1;_0x4ceb8f>=_0x43a0ee;_0x4ceb8f--)0x0==_0x1fdad5[_0x4ceb8f]['distance']?_0x1fdad5[_0x4ceb8f]['level']=_0x25acb8:(_0x25acb8--,_0x1fdad5[_0x4ceb8f]['level']=_0x25acb8,_0x25acb8--);}}['_fixObsoleteTags'](_0x5efcca){const _0x43e1b9=new Map(),_0x2074b1=this['editor']['model']['schema'];for(let _0xb84c3d=0x1;_0xb84c3d<_0x5efcca['length'];_0xb84c3d++){let _0x4b7d64,_0x5868a3,_0x110e33;const _0x261177=_0x5efcca[_0xb84c3d],_0x44a8ed=_0x5efcca[_0xb84c3d-0x1];if('text'==_0x261177['type'])continue;if(_0x261177['type']!=_0x44a8ed['type'])continue;if(!_0x2074b1['isBlock'](_0x44a8ed['item'])||_0x2074b1['isLimit'](_0x44a8ed['item']))continue;if(!_0x2074b1['isBlock'](_0x261177['item'])||_0x2074b1['isLimit'](_0x261177['item']))continue;if((_0x5efcca[_0xb84c3d]['isAdded']||_0x5efcca[_0xb84c3d]['isAddSuggestion'])&&_0x5efcca[_0xb84c3d-0x1]['isRemoved'])_0x4b7d64=_0x5efcca[_0xb84c3d],_0x5868a3=_0x5efcca[_0xb84c3d-0x1],_0x110e33=_0xb84c3d-0x1;else{if(!_0x5efcca[_0xb84c3d]['isRemoved']||!_0x5efcca[_0xb84c3d-0x1]['isAdded']&&!_0x5efcca[_0xb84c3d-0x1]['isAddSuggestion'])continue;_0x4b7d64=_0x5efcca[_0xb84c3d-0x1],_0x5868a3=_0x5efcca[_0xb84c3d],_0x110e33=_0xb84c3d;}const _0x1b07c4=_0x4b7d64['level']==_0x5868a3['level'],_0x2e9901=Math['abs'](_0x4b7d64['level'])<Math['abs'](_0x5868a3['level'])&&0x0==_0x5868a3['distance'];(_0x1b07c4||_0x2e9901)&&(_0x43e1b9['set'](_0x5868a3['id'],_0x4b7d64['id']),_0x5efcca['splice'](_0x110e33,0x1),_0xb84c3d--,_0x4b7d64['isAdded']=!0x1);}for(let _0x54a69c=0x0;_0x54a69c<_0x5efcca['length'];_0x54a69c++)_0x43e1b9['has'](_0x5efcca[_0x54a69c]['pairId'])&&(_0x5efcca[_0x54a69c]['pairId']=_0x43e1b9['get'](_0x5efcca[_0x54a69c]['pairId']));}['_removeMissingPairs'](_0x3fbcb3){const _0x39a1be=new Set(_0x3fbcb3['map'](_0x33f5e5=>_0x33f5e5['id']));for(let _0x883de1=0x0;_0x883de1<_0x3fbcb3['length'];_0x883de1++)_0x39a1be['has'](_0x3fbcb3[_0x883de1]['pairId'])||0x0==_0x3fbcb3[_0x883de1]['distance']||(_0x3fbcb3[_0x883de1]['isIncorrect']=!0x0);return _0x3fbcb3['filter'](_0xd70fa7=>!_0xd70fa7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x26bc68){const _0x463936=new Set();for(let _0x36f680=0x0;_0x36f680<_0x26bc68['length'];_0x36f680++){if(_0x463936['has'](_0x26bc68[_0x36f680]['id'])&&_0x26bc68[_0x36f680]['isRemoved']&&(_0x26bc68[_0x36f680]['isIncorrect']=!0x0),_0x26bc68[_0x36f680]['isIncorrect'])continue;if(0x0==_0x26bc68[_0x36f680]['distance'])continue;if('elementStart'!=_0x26bc68[_0x36f680]['type'])continue;if(null==_0x26bc68[_0x36f680]['pairId'])continue;let _0x34a50a=_0x36f680+0x1,_0x28dea5=0x0;for(;_0x26bc68[_0x34a50a]['id']!=_0x26bc68[_0x36f680]['pairId'];)'elementStart'==_0x26bc68[_0x34a50a]['type']?_0x28dea5++:'elementEnd'==_0x26bc68[_0x34a50a]['type']&&_0x28dea5--,_0x34a50a++;if(0x0!=_0x28dea5){if(_0x26bc68[_0x36f680]['isRemoved'])_0x26bc68[_0x36f680]['isIncorrect']=!0x0;else{for(;_0x34a50a!=_0x36f680;)_0x26bc68[_0x34a50a]['isRemoved']&&0x0!=_0x26bc68[_0x34a50a]['distance']&&(_0x26bc68[_0x34a50a]['isIncorrect']=!0x0,_0x463936['add'](_0x26bc68[_0x34a50a]['pairId'])),_0x34a50a--;}}}return _0x26bc68['filter'](_0x41f678=>!_0x41f678['isIncorrect']);}['_removeUnsupportedChanges'](_0x4ccd6a){const _0x57c67b=this['editor']['model']['schema'];for(let _0x2238ee=0x0;_0x2238ee<_0x4ccd6a['length'];_0x2238ee++){if(!(_0x4ccd6a[_0x2238ee]['isAdded']||_0x4ccd6a[_0x2238ee]['isAddSuggestion']||_0x4ccd6a[_0x2238ee]['isRemoved']||_0x4ccd6a[_0x2238ee]['isRemoveSuggestion']))continue;if(0x0==_0x4ccd6a[_0x2238ee]['distance'])continue;const _0x16a028=_0x4ccd6a[_0x2238ee]['item'];_0x57c67b['isBlock'](_0x16a028)||_0x57c67b['isLimit'](_0x16a028)||(_0x4ccd6a[_0x2238ee]['isAdded']&&delete _0x4ccd6a[_0x2238ee]['isAdded'],_0x4ccd6a[_0x2238ee]['isAddSuggestion']&&delete _0x4ccd6a[_0x2238ee]['isAddSuggestion'],_0x4ccd6a[_0x2238ee]['isRemoveSuggestion']&&delete _0x4ccd6a[_0x2238ee]['isRemoveSuggestion'],_0x4ccd6a[_0x2238ee]['isRemoved']&&(_0x4ccd6a[_0x2238ee]['isIncorrect']=!0x0));}return _0x4ccd6a['filter'](_0x44bc51=>!_0x44bc51['isIncorrect']);}['_makeModelFromTape'](_0x57f7f1,_0x2845b6,_0x11935c){const _0x21ca2b=new _0x54d9b6(),_0x48c545=[],_0x436938=new Map(),_0xd20d0b=this['editor']['model'],_0x3b7bab=_0xd20d0b['schema'],_0x5393cd=[_0x21ca2b],_0x8a2479={},_0x59ef06={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5935b4=null;const _0x542348=[0x0];for(let _0x309b6b=0x0;_0x309b6b<_0x57f7f1['length'];_0x309b6b++)if('elementStart'===_0x57f7f1[_0x309b6b]['type']){_0x57f7f1[_0x309b6b]['previousPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348);const _0x6b4d3e=new _0x16738f(_0x57f7f1[_0x309b6b]['item']['name'],_0x57f7f1[_0x309b6b]['item']['getAttributes']());_0x5393cd[0x0]['_appendChild'](_0x6b4d3e),_0x542348['push'](0x0),_0x5393cd['unshift'](_0x6b4d3e),_0x57f7f1[_0x309b6b]['nextPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348);}else'elementEnd'===_0x57f7f1[_0x309b6b]['type']?(_0x5393cd['shift'](),_0x57f7f1[_0x309b6b]['previousPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348),_0x542348['pop'](),_0x542348[_0x542348['length']-0x1]++,_0x57f7f1[_0x309b6b]['nextPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348)):(_0x57f7f1[_0x309b6b]['previousPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348),_0x5935b4?_0x5935b4['_data']+=_0x57f7f1[_0x309b6b]['item']['data']:_0x5935b4=new _0x512a07(_0x57f7f1[_0x309b6b]['item']['data'],_0x57f7f1[_0x309b6b]['item']['getAttributes']()),_0x57f7f1[_0x309b6b+0x1]&&'text'===_0x57f7f1[_0x309b6b+0x1]['type']&&_0x171d49(_0x5935b4,_0x57f7f1[_0x309b6b+0x1]['item'])||(_0x5393cd[0x0]['_appendChild'](_0x5935b4),_0x5935b4=null),_0x542348[_0x542348['length']-0x1]+=_0x57f7f1[_0x309b6b]['item']['offsetSize'],_0x57f7f1[_0x309b6b]['nextPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348));for(let _0x579517=0x0;_0x579517<_0x57f7f1['length'];_0x579517++){const _0x38360c=_0x57f7f1[_0x579517]['previousPosition'],_0x4a7151=_0x57f7f1[_0x579517]['nextPosition'];for(const _0x334e31 of _0x57f7f1[_0x579517]['markersStart'])_0x436938['set'](_0x334e31,{'start':_0x38360c,'end':null});_0x597433('isRemoveSuggestion',_0x579517,_0x38360c,_0x4a7151),_0x597433('isAddSuggestion',_0x579517,_0x38360c,_0x4a7151),_0x597433('isRemoved',_0x579517,_0x38360c,_0x4a7151),_0x597433('isAdded',_0x579517,_0x38360c,_0x4a7151);for(const _0x203273 of _0x57f7f1[_0x579517]['markersEnd']){const _0x41f014=_0x436938['get'](_0x203273);_0x41f014?_0x41f014['end']=_0x4a7151:_0x436938['set'](_0x203273,{'start':_0x4a7151,'end':_0x4a7151});}}for(const [_0x332e8b,_0xc231c5]of _0x436938){const _0x4e08fb=this['editor']['model']['createRange'](_0xc231c5['start'],_0xc231c5['end']);_0x21ca2b['markers']['set'](_0x332e8b,_0x4e08fb);}return _0x48c545['sort']((_0x4db0c8,_0x395b27)=>{const _0x102f8c=_0x21ca2b['markers']['get']('revision:'+_0x4db0c8['id']),_0x5be2cd=_0x21ca2b['markers']['get']('revision:'+_0x395b27['id']);return _0x102f8c['start']['isBefore'](_0x5be2cd['start'])?-0x1:_0x102f8c['start']['isAfter'](_0x5be2cd['start'])?0x1:_0x102f8c['end']['isBefore'](_0x5be2cd['end'])?-0x1:_0x102f8c['end']['isAfter'](_0x5be2cd['end'])?0x1:'add'===_0x4db0c8['type']?-0x1:0x1;}),{'root':_0x21ca2b,'changes':_0x48c545};function _0x597433(_0x5c4b99,_0x49093c,_0x44b319,_0x4a5fb3){const _0x924b3e=!!_0x57f7f1[_0x49093c][_0x5c4b99],_0x1c264a=_0x924b3e?_0x57f7f1[_0x49093c][_0x5c4b99]['userId']:null,_0x2b1327=_0x49093c===_0x57f7f1['length']-0x1,_0x1fff0c=_0x59ef06[_0x5c4b99][0x0],_0x4562be=_0x3b7bab['isObject'](_0x57f7f1[_0x49093c]['item']);!_0x8a2479[_0x5c4b99]&&_0x924b3e?_0x8a2479[_0x5c4b99]={'start':_0x44b319,'tapeItem':_0x57f7f1[_0x49093c],'userId':_0x1c264a,'type':_0x5c4b99}:_0x8a2479[_0x5c4b99]&&!_0x924b3e?(_0x8a2479[_0x5c4b99]['end']=_0x44b319,_0x9e8b75(_0x8a2479[_0x5c4b99]),_0x8a2479[_0x5c4b99]=null):_0x8a2479[_0x5c4b99]&&_0x924b3e&&_0x8a2479[_0x5c4b99]['userId']!==_0x1c264a&&(_0x8a2479[_0x5c4b99]['end']=_0x44b319,_0x1fff0c&&_0x1fff0c['userId']===_0x8a2479[_0x5c4b99]['userId']||_0x9e8b75(_0x8a2479[_0x5c4b99]),_0x8a2479[_0x5c4b99]={'start':_0x44b319,'tapeItem':_0x57f7f1[_0x49093c],'userId':_0x1c264a,'type':_0x5c4b99}),_0x8a2479[_0x5c4b99]&&_0x4562be&&('elementStart'!==_0x57f7f1[_0x49093c]['type']||_0x1fff0c&&_0x1fff0c['userId']===_0x1c264a||_0x59ef06[_0x5c4b99]['unshift']({'userId':_0x1c264a,'object':_0x57f7f1[_0x49093c]['item'],'change':_0x8a2479[_0x5c4b99]}),'elementEnd'===_0x57f7f1[_0x49093c]['type']&&_0x1fff0c&&_0x1fff0c['object']===_0x57f7f1[_0x49093c]['item']&&(_0x59ef06[_0x5c4b99]['shift'](),_0x8a2479[_0x5c4b99]=_0x1fff0c['change'])),_0x8a2479[_0x5c4b99]&&_0x2b1327&&(_0x8a2479[_0x5c4b99]['end']=_0x4a5fb3,_0x9e8b75(_0x8a2479[_0x5c4b99]),_0x8a2479[_0x5c4b99]=null);}function _0x9e8b75({start:_0x3ed919,end:_0x264e31,tapeItem:_0x17ab19,userId:_0x3ecb83,type:_0x113b09}){const _0x43b8b4=_0x17ab19['item'],_0x71df5c=_0xd20d0b['schema']['isBlock'](_0x43b8b4)&&!_0xd20d0b['schema']['isLimit'](_0x43b8b4),_0x42120b=_0x3ed919['nodeAfter']==_0x264e31['parent']&&_0x264e31['isAtStart'];if(_0x71df5c&&_0x42120b)return;const _0x2e122d=_0xd20d0b['createRange'](_0x3ed919,_0x264e31),_0x323162=_0x2845b6['get'](_0x3ecb83),_0x4bee4a=new G({'author':_0x323162,'type':'isAdded'==_0x113b09||'isAddSuggestion'==_0x113b09?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x113b09||'isRemoveSuggestion'==_0x113b09},'createdAt':new Date(),'rootName':_0x11935c});_0x48c545['push'](_0x4bee4a),_0x21ca2b['markers']['set']('revision:'+_0x4bee4a['id'],_0x2e122d);}function _0x171d49(_0x3b9577,_0x4748a1){const _0x5cb1a6=_0x3b9577['getAttributes'](),_0x273a1d=_0x4748a1['getAttributes']();for(const _0x5731ef of _0x5cb1a6){if(_0x5731ef[0x1]!==_0x4748a1['getAttribute'](_0x5731ef[0x0]))return!0x1;_0x273a1d['next']();}return _0x273a1d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2af933=>{const _0x42b875=_0x2af933['markerName']['split'](':')[0x1],_0x54ad7f=this['_getChangeFromId'](_0x42b875);if(!_0x54ad7f)return null;const _0x540c56='add'==_0x54ad7f['type']?'insertion':'deletion',_0x46e3af=['ck-suggestion-marker','ck-suggestion-marker-'+_0x540c56];return _0x54ad7f['data']['isSuggestion']&&_0x46e3af['push']('ck-suggestion-marker-'+_0x540c56+'-new'),this['activeChange']==_0x54ad7f&&_0x46e3af['push']('ck-suggestion-marker--active'),{'classes':_0x46e3af,'attributes':{'data-change-id':_0x42b875}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x46ac10=>{_0x46ac10['on']('element:pre',(_0x4fbc73,_0x1b6f33,_0x4a7b36)=>{const _0x4e44e0=_0x1b6f33['viewItem']['getChild'](0x0);if(!_0x4e44e0||!_0x4e44e0['is']('element','code'))return;if(!_0x4a7b36['consumable']['consume'](_0x4e44e0,{'attributes':['vid_start','vid_end']}))return;const _0x50678a=_0x1b6f33['modelRange']['start']['nodeAfter'];_0x4a7b36['writer']['setAttribute']('vid_start',_0x4e44e0['getAttribute']('vid_start'),_0x50678a),_0x4a7b36['writer']['setAttribute']('vid_end',_0x4e44e0['getAttribute']('vid_end'),_0x50678a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x41ff5b=>{_0x41ff5b['on']('element',(_0x1e40a9,_0x47d0e4,_0x119392)=>{if(!_0x119392['consumable']['consume'](_0x47d0e4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x47d0e4['modelRange']['isCollapsed'])return;const _0x38f62b=_0x47d0e4['modelRange']['start']['nodeAfter'];_0x38f62b['hasAttribute']('vid_start')||_0x38f62b['hasAttribute']('vid')||(_0x119392['writer']['setAttribute']('vid_start',_0x47d0e4['viewItem']['getAttribute']('vid_start'),_0x38f62b),_0x119392['writer']['setAttribute']('vid_end',_0x47d0e4['viewItem']['getAttribute']('vid_end'),_0x38f62b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x126de4=>_0x126de4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2a56cb,[,_0x100797])=>{['vid_start','vid_end','vid']['includes'](_0x100797)&&(_0x2a56cb['return']=!0x0,_0x2a56cb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x10ce8e=>{_0x10ce8e['on']('attribute:vid',(_0x2fd259,_0x1de4e4,_0x5eba76)=>{if('\x20'!=_0x1de4e4['item']['data']||_0x1de4e4['item']['parent']['maxOffset']>0x1)return;if(!_0x5eba76['consumable']['consume'](_0x1de4e4['item'],_0x2fd259['name']))return;const _0x55ea14=_0x5eba76['writer'],_0x488c2f=_0x5eba76['mapper']['toViewRange'](_0x1de4e4['range']);_0x55ea14['wrap'](_0x488c2f,_0x55ea14['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x35391e){const _0xc4dc79=_0x35391e['plugins']['get']('RevisionViewer');return(_0x25d742,_0x59f98c,_0x3c718b)=>{const _0x5afe0c=_0x59f98c['markerName']['split'](':')[0x1],_0x48e670=_0xc4dc79['_getChangeFromId'](_0x5afe0c);if(!_0x48e670)return null;const _0x3df566='add'==_0x48e670['type']?'split':'merge';if(!_0x3c718b['consumable']['test'](_0x59f98c['markerRange'],_0x25d742['name']))return;const _0x3b6ded=_0x59f98c['markerRange']['getWalker'](),_0x200874=_0x59f98c['markerRange']['start'],_0x302a57=_0x35391e['model']['schema'];let _0x1dd623=null,_0x3a497a=null,_0x5026db=!0x1,_0x5dfeff=!0x1;for(const _0x17c6a9 of _0x3b6ded){const _0x509af9=_0x17c6a9['item'];_0x5026db=_0x5026db||_0x302a57['isContent'](_0x509af9);const _0x5ac0ca=_0x3c718b['mapper']['toViewElement'](_0x509af9);if(_0x5ac0ca&&_0x5ac0ca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17c6a9['type']&&(_0x302a57['isBlock'](_0x509af9)&&!_0x302a57['isLimit'](_0x509af9)&&(_0x509af9['nextSibling']||_0x200874['isAtEnd']?_0x1dd623&&_0x1dd623['parent']==_0x509af9||(_0x1dd623=_0x509af9,_0x3016ac(_0x17c6a9['previousPosition']),_0x5dfeff=!0x0):_0x3a497a=_0x3a497a||_0x17c6a9['previousPosition']));}function _0x3016ac(_0x53adf5){const _0x13a203=_0x3c718b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3df566}),_0x146d1d=_0x3c718b['mapper']['toViewPosition'](_0x53adf5);_0x48e670['data']['isSuggestion']&&_0x3c718b['writer']['addClass']('ck-suggestion-marker-'+_0x3df566+'-new',_0x13a203),_0xc4dc79['activeChange']==_0x48e670&&_0x3c718b['writer']['addClass']('ck-suggestion-marker--active',_0x13a203),_0x3c718b['writer']['insert'](_0x146d1d,_0x13a203),_0x3c718b['mapper']['bindElementToMarker'](_0x13a203,_0x59f98c['markerName']);}_0x5026db||_0x5dfeff||!_0x3a497a||_0x3016ac(_0x3a497a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3ab62f,_0x2aaf64,_0x5c2a0)=>{const _0x3fa350=_0x5c2a0['mapper']['markerNameToElements'](_0x2aaf64['markerName']);if(_0x3fa350){for(const _0x59d318 of _0x3fa350)(_0x59d318['hasClass']('ck-suggestion-marker-split')||_0x59d318['hasClass']('ck-suggestion-marker-merge'))&&(_0x5c2a0['mapper']['unbindElementFromMarkerName'](_0x59d318,_0x2aaf64['markerName']),_0x5c2a0['writer']['remove'](_0x59d318));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x23ce47,_0x3755c6,_0x5c078b)=>{const _0x19629d=_0x3755c6['markerName']['split'](':')[0x1],_0x21344c=this['_getChangeFromId'](_0x19629d);if(!_0x21344c)return null;const _0x5cb4ab='add'==_0x21344c['type']?'split':'merge';if(_0x5c078b['consumable']['test'](_0x3755c6['markerRange'],_0x23ce47['name']))for(const _0x2e54b7 of _0x3755c6['markerRange']['getItems']()){if(!_0x2e54b7['is']('element','softBreak'))continue;const _0x34825c=_0x5c078b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5cb4ab}),_0x5c9b69=_0x5c078b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2e54b7));_0x21344c['data']['isSuggestion']&&_0x5c078b['writer']['addClass']('ck-suggestion-marker-'+_0x5cb4ab+'-new',_0x34825c),this['activeChange']==_0x21344c&&_0x5c078b['writer']['addClass']('ck-suggestion-marker--active',_0x34825c),_0x5c078b['writer']['insert'](_0x5c9b69,_0x34825c),_0x5c078b['mapper']['bindElementToMarker'](_0x34825c,_0x3755c6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x8447bd=>{for(const _0x6c09a0 of this['editor']['model']['document']['getRootNames']()){const _0x3d3a33=this['editor']['model']['document']['getRoot'](_0x6c09a0),_0x46def6=this['editor']['editing']['view']['document']['getRoot'](_0x6c09a0);if(_0x46def6){const _0x3428f8=_0x3d3a33['getAttribute']('revisionHistoryAttachChange');if(_0x8447bd['removeAttribute']('data-change-id',_0x46def6),_0x8447bd['removeClass']('ck-revision-history-root-add',_0x46def6),_0x8447bd['removeClass']('ck-revision-history-root-remove',_0x46def6),_0x8447bd['removeClass']('ck-revision-history-root--active',_0x46def6),_0x3428f8){const _0x55d0ea=this['_getChangeFromId'](_0x3428f8);if(!_0x55d0ea)return null;_0x8447bd['setAttribute']('data-change-id',_0x3428f8,_0x46def6),_0x8447bd['addClass']('ck-revision-history-root-'+_0x55d0ea['type'],_0x46def6),this['activeChange']==_0x55d0ea&&_0x8447bd['addClass']('ck-revision-history-root--active',_0x46def6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x79c20f=>'revision-comment:'+_0x79c20f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1afec6=>'revision-suggestion:'+_0x1afec6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4ae412=>({'name':'suggestion:'+_0x4ae412,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x58adba=>{const _0x18fd41=_0x58adba['markerName']['split'](':')[0x1];return'insertion'!=_0x18fd41&&'deletion'!=_0x18fd41?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x18fd41]};}}),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',(_0xf9d56f,_0x31b8f9,_0x803614)=>{const _0x168c02=_0x803614['mapper']['markerNameToElements'](_0x31b8f9['markerName']);if(_0x168c02){for(const _0x3b2db6 of _0x168c02)_0x3b2db6['is']('uiElement')&&(_0x803614['mapper']['unbindElementFromMarkerName'](_0x3b2db6,_0x31b8f9['markerName']),_0x803614['writer']['remove'](_0x3b2db6));}},{'priority':'high'});}['_getChangeFromId'](_0x2918d8){return this['_changeIdToChange']['get'](_0x2918d8);}['_getViewForChange'](_0x3c5d7e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3c5d7e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x39e512,_0xfb19f8,_0x43dfa8,_0x48aae7)=>{_0x48aae7&&this['_balloon']['remove'](_0x48aae7),_0x43dfa8&&(this['_balloon']['add']({'view':_0x43dfa8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x45088d=this['editor']['editing'],_0x20400c=this['_getChangeFromId'](_0x43dfa8['changeId']);let _0x1c3612;if(_0x20400c['data']['isOnRoot']){const _0x37d0b9=_0x45088d['view']['getDomRoot'](_0x20400c['rootName']);_0x1c3612=Array['from'](_0x37d0b9['getClientRects']());}else{const _0x56dc4a=this['editor']['model']['markers']['get']('revision:'+_0x43dfa8['changeId']);_0x1c3612=Array['from'](_0x45088d['mapper']['markerNameToElements'](_0x56dc4a['name']))['map'](_0x19263e=>_0x45088d['view']['domConverter']['mapViewToDom'](_0x19263e))['map'](_0x3d25f6=>Array['from'](_0x3d25f6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c3612[0x0];return _0x1c3612['find'](_0x3d8eb5=>_0x3d8eb5['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d8eb5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d8eb5['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d8eb5['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c3612[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4d9f35,_0x45ca22,_0x17ba6c,_0x48ba57)=>{this['activeView']=_0x17ba6c?this['_getViewForChange'](_0x17ba6c):null,this['editor']['model']['change'](()=>{const _0x4916ef=this['editor']['editing'];_0x48ba57&&(_0x48ba57['data']['isOnRoot']?_0x4916ef['view']['change'](_0x1e215f=>{_0x1e215f['removeClass']('ck-revision-history-root--active',_0x4916ef['view']['document']['getRoot'](_0x48ba57['rootName']));}):_0x4916ef['reconvertMarker']('revision:'+_0x48ba57['id'])),_0x17ba6c&&(_0x17ba6c['data']['isOnRoot']?_0x4916ef['view']['change'](_0x5b8b2e=>{_0x5b8b2e['addClass']('ck-revision-history-root--active',_0x4916ef['view']['document']['getRoot'](_0x17ba6c['rootName']));}):_0x4916ef['reconvertMarker']('revision:'+_0x17ba6c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x426ed1,_0x144724)=>{if(this['activeChange'])return;const _0x2b3c9a=this['_findChangeIdFromDomTarget'](_0x144724['target']),_0x3cfce6=this['_changeIdToChange']['get'](_0x2b3c9a);_0x3cfce6?(this['_activeViewTarget']={'x':_0x144724['domEvent']['x'],'y':_0x144724['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3cfce6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x291795,_0xfe2176)=>{const _0x1ffb45=this['_findChangeIdFromDomTarget'](_0xfe2176['target']),_0x25c8f5=this['_changeIdToChange']['get'](_0x1ffb45);_0x25c8f5?(this['_activeViewTarget']={'x':_0xfe2176['domEvent']['x'],'y':_0xfe2176['domEvent']['y']},_0x25c8f5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25c8f5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x10744f){do{const _0x125567=_0x10744f['getAttribute']('data-change-id');if(_0x125567)return _0x125567;_0x10744f=_0x10744f['parent'];}while(_0x10744f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xd2a6ee=>{for(const _0x6e3095 of this['editor']['model']['markers'])_0xd2a6ee['removeMarker'](_0x6e3095);});}}function Q(_0x2ec7a2,_0x24d765){return(_0x4d542b,_0x4b68d0,_0x241450)=>{if(!_0x241450['consumable']['test'](_0x4b68d0['markerRange'],_0x4d542b['name']))return;const _0x55cd8d=_0x4b68d0['markerRange']['getWalker'](),_0x1d834c=_0x4b68d0['markerRange']['start'],_0x4f8c3d=_0x2ec7a2['model']['schema'];let _0x38a66b=null,_0x171073=null,_0x5ad4c0=!0x1,_0x33d661=!0x1;for(const _0x793771 of _0x55cd8d){const _0x1c3da8=_0x793771['item'];_0x5ad4c0=_0x5ad4c0||_0x4f8c3d['isContent'](_0x1c3da8);const _0x5c5906=_0x241450['mapper']['toViewElement'](_0x1c3da8);if(_0x5c5906&&_0x5c5906['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x793771['type']&&(_0x4f8c3d['isBlock'](_0x1c3da8)&&!_0x4f8c3d['isLimit'](_0x1c3da8)&&(_0x1c3da8['nextSibling']||_0x1d834c['isAtEnd']?_0x38a66b&&_0x38a66b['parent']==_0x1c3da8||(_0x38a66b=_0x1c3da8,_0x98a991(_0x793771['previousPosition']),_0x33d661=!0x0):_0x171073=_0x171073||_0x793771['previousPosition']));}function _0x98a991(_0x1a864d){const _0x3c0100=_0x241450['mapper']['toViewPosition'](_0x1a864d),_0x5e730d=_0x241450['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x24d765});_0x241450['writer']['insert'](_0x3c0100,_0x5e730d),_0x241450['mapper']['bindElementToMarker'](_0x5e730d,_0x4b68d0['markerName']);}_0x5ad4c0||_0x33d661||!_0x171073||_0x98a991(_0x171073);};}class nt extends _0x5998c4{constructor(_0x3f7260){super(_0x3f7260);const _0xbdb0de=_0x3f7260['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0xbdb0de,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xbdb0de,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x276c46=this['editor'],_0xb85b2c=_0x276c46['plugins']['get'](u),_0x585799=_0xb85b2c['isReady']?_0xb85b2c['diff']['newRevisionId']:null;_0x276c46['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x585799);}['refresh'](){const {isReady:_0x3c7079,isEnabled:_0x1b7853,repository:_0xd10d40,diff:_0x2a77ff}=this['editor']['plugins']['get'](u),_0x49b4ca=_0x2a77ff&&_0xd10d40['getLaterVisibleRevision'](_0x2a77ff['newRevisionId']);this['isEnabled']=_0x3c7079&&_0x1b7853&&Boolean(_0x49b4ca);}}class rt extends _0x5998c4{['_step'];constructor(_0x25ceda,{direction:_0x5f07ea}){super(_0x25ceda);const _0x4438f6=_0x25ceda['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x5f07ea?0x1:-0x1,this['listenTo'](_0x4438f6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4438f6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4438f6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5add53=this['editor'],_0x58368e=_0x5add53['plugins']['get'](u),{isNavigationMode:_0xe0d132,currentChangeNumber:_0x392263}=_0x58368e;let _0xd566a0;if(_0x58368e['activeChange']=_0xe0d132?_0x58368e['diff']['changes']['get'](_0x392263+this['_step']):_0x58368e['diff']['changes']['first'],_0x58368e['activeChange']['data']['isOnRoot'])_0xd566a0=_0x5add53['editing']['view']['getDomRoot'](_0x58368e['activeChange']['rootName']);else{const _0xdfafe2=_0x5add53['model']['markers']['get']('revision:'+_0x58368e['activeChange']['id']);_0xd566a0=_0x637378(_0x5add53['editing'],_0xdfafe2);}_0x18268f({'target':_0xd566a0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2cf036,currentChangeNumber:_0x21379f,numberOfChanges:_0x23d3d7,isReady:_0x545713,isEnabled:_0x498d0e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x498d0e&&_0x545713&&_0x23d3d7)&&(!_0x2cf036||(0x1===this['_step']?_0x21379f<_0x23d3d7-0x1:_0x21379f>0x0));}}class fi extends _0x484abd{constructor(_0x5bec56){super(_0x5bec56);const _0x596aa8=this['bindTemplate'],_0x38f9e4=new _0x14152c(_0x5bec56),_0x1288e9=new _0x14152c(_0x5bec56);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',(_0x9abb41,_0x5cd7d4)=>_0x9abb41&&_0x5cd7d4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3a0138,_0x22d03a,_0x3faa32,_0x47f98c)=>{if(!_0x3a0138)return m(_0x5bec56,'Loading...');if(!_0x3faa32)return m(_0x5bec56,'No\x20changes');const _0x3f3757=m(_0x5bec56,'NUMBER_OF_CHANGES',_0x3faa32);return _0x47f98c?m(_0x5bec56,'X_OF_Y_CHANGES',[_0x22d03a+0x1,_0x3faa32]):_0x3f3757;}),_0x38f9e4['set']({'label':m(_0x5bec56,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5308cd}),_0x1288e9['set']({'label':m(_0x5bec56,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5f0511}),_0x38f9e4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1288e9['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x38f9e4['on']('execute',()=>this['fire']('execute','backward')),_0x1288e9['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',_0x596aa8['if']('_isStatusLabelVisible','ck-hidden',_0x429cea=>!_0x429cea)]},'children':[{'text':_0x596aa8['to']('isNavigationMode',_0x58b715=>_0x58b715?m(_0x5bec56,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5bec56,'Total')+':\x20')}]},{'text':_0x596aa8['to']('_statusText')}]},new _0x3f7943(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x38f9e4,_0x1288e9]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x59afc0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x390dd0=this['editor']['editing']['view'];_0x390dd0['change'](_0x4f0da6=>{for(const _0x266efd of _0x390dd0['document']['roots'])_0x4f0da6['addClass'](ge,_0x266efd);});}['hide'](){const _0x5317e1=this['editor']['editing']['view'];_0x5317e1['change'](_0x22319b=>{for(const _0x73319b of _0x5317e1['document']['roots'])_0x22319b['removeClass'](ge,_0x73319b);});}}class v extends _0x59afc0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,bi];}['init'](){const _0x559f02=this['editor'],_0xffc4b6=_0x559f02['plugins']['get'](u),_0x2030cb=_0x559f02['plugins']['get'](bi);_0x559f02['ui']['componentFactory']['add']('exitToEditing',_0xeb26c1=>{const _0x12782e=new _0x14152c(_0xeb26c1);return _0x12782e['set']({'label':m(_0xeb26c1,'Back\x20to\x20editing'),'icon':_0x4ed6d9,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x12782e,'execute',()=>{_0x559f02['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x12782e;}),_0x559f02['ui']['componentFactory']['add']('restoreRevision',_0x4b27a8=>{const _0x8e341e=new _0x14152c(_0x4b27a8);return _0x8e341e['set']({'label':m(_0x4b27a8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x8e341e['bind']('isEnabled')['to'](_0x559f02['commands']['get']('restoreRevision')),this['listenTo'](_0x8e341e,'execute',()=>_0x559f02['execute']('restoreRevision')),_0x8e341e;}),_0x559f02['ui']['componentFactory']['add']('changesNavigation',_0x824b93=>{const _0x4cfe81=new fi(_0x824b93),_0x18add0=_0x559f02['commands']['get']('showPreviousChange'),_0x49efaa=_0x559f02['commands']['get']('showNextChange');return _0x4cfe81['bind']('isBackwardNavigationEnabled')['to'](_0x18add0,'isEnabled'),_0x4cfe81['bind']('isForwardNavigationEnabled')['to'](_0x49efaa,'isEnabled'),_0x4cfe81['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xffc4b6),this['listenTo'](_0x4cfe81,'execute',(_0x4c4ced,_0x4382aa)=>{_0x559f02['execute']('forward'===_0x4382aa?'showNextChange':'showPreviousChange');}),_0x4cfe81;}),_0x2030cb['show'](),_0xffc4b6['on']('change:isReady',(_0x2f5dc8,_0x102b1a,_0x3330e5)=>{_0x3330e5?_0x2030cb['hide']():_0x2030cb['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x496108,_0x507927){super(_0x496108,_0x507927);const _0x554489=this['bindTemplate'];this['set']({'label':m(_0x496108,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x496108,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x554489['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 _0x8f87dc=this['fieldView']['element'];this['_tooltipString']=_0x8f87dc['scrollWidth']>_0x8f87dc['clientWidth']&&_0x8f87dc['value']||'';}}class ni extends _0x484abd{constructor(_0x2d0302,_0x1d18de,_0x152559){super(_0x2d0302);const _0x5325ec=new _0x1ed09d();_0x5325ec['set']({'content':_0x2f44bd,'viewBox':'0\x200\x2011\x2010'});const _0x3cb405=['ck','ck-revision-history-sidebar__revision-author'];_0x152559&&_0x3cb405['push']('ck-revision-history-sidebar__revision-author_creator');const _0x420e16=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2d0302,_0x152559?'Revision\x20creator':'Revision\x20author')},'children':[_0x5325ec,_0x1d18de['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3cb405},'children':_0x420e16});}}function ai(_0x24ca1d,_0x55c6a1){const _0x19657c=_0x24ca1d['bindTemplate'],_0x1ff376=_0x24ca1d['locale'],_0x216ee6=_0x1cb51d(_0x1ff376);_0x216ee6['panelPosition']='sw';const _0x4a1cbc=function(_0x1562dc,_0x58b497){const _0x5b317c=function(_0x36f4e3,_0x9b7bb5){const _0x3f871c=_0x36f4e3['locale'],_0x4ddcd5={'Compare\x20against\x20selected':m(_0x3f871c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3f871c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3f871c,'Restore\x20this\x20revision')};return _0x9b7bb5['map'](_0x1c32e4=>{const _0x7d1d9f=_0x4ddcd5[_0x1c32e4['name']];return _0x7d1d9f&&_0x7d1d9f!==_0x1c32e4['name']&&(_0x1c32e4['name']=_0x7d1d9f),_0x1c32e4;});}(_0x1562dc,_0x58b497),_0x54ea14=new _0x51dee5();for(const _0x532855 of _0x5b317c){const _0xf0e0={'type':'button','model':new to({'label':_0x532855['name'],'class':_0x532855['class'],'withText':!0x0,'role':'menuitem','_action':_0x532855['action']})};_0xf0e0['model']['bind']('isEnabled')['to'](_0x1562dc,'isActionsDropdownOpen',_0x231e8e=>'function'!=typeof _0x532855['isEnabled']||(!_0x231e8e||_0x532855['isEnabled'](_0x1562dc))),_0x54ea14['add'](_0xf0e0);}return _0x54ea14;}(_0x24ca1d,_0x55c6a1);return _0x24ca1d['bind']('isActionsDropdownOpen')['to'](_0x216ee6,'isOpen'),_0x216ee6['buttonView']['set']({'label':m(_0x1ff376,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x516c19}),_0x216ee6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x19657c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x19657c['to'](_0xddf6d2=>_0xddf6d2['stopPropagation']())}}),_0x216ee6['on']('execute',_0x4cc6b3=>{_0x24ca1d['isReady']&&'function'==typeof _0x4cc6b3['source']['_action']&&_0x4cc6b3['source']['_action'](_0x24ca1d);}),_0x189f45(_0x216ee6,_0x4a1cbc,{'role':'menu'}),_0x216ee6['listenTo'](_0x24ca1d,'change:isActionsDropdownOpen',(_0x4b3d05,_0x35966f,_0x4fc83d)=>{if(_0x4fc83d)for(const _0x1a1571 of _0x216ee6['listView']['items']){const _0x2eaa7c=_0x1a1571['children']['first'],_0x3b82d0=_0x55c6a1['find'](_0x400fa0=>_0x400fa0['action']===_0x2eaa7c['_action'])['isVisible'];_0x1a1571['isVisible']=void 0x0===_0x3b82d0||_0x3b82d0(_0x24ca1d);}}),_0x216ee6;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x1b6ed6,uid as _0x3191d3,Collection as _0x1dcfeb,logWarning as _0x1d296d,FocusTracker as _0x3feea3,KeystrokeHandler as _0x5ec85b,scrollViewportToShowTarget as _0x341d84,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x4f08e9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x204d12,set as _0x57a772,unset as _0x2b8b0a,isEqual as _0x5e1a1d}from'es-toolkit/compat';import{Plugin as _0x23b9b4,PendingActions as _0x412783,Command as _0x15cc66,ElementApiMixin as _0x1ad7d6,Editor as _0x21409b}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1f5a70,getMarkerDomElement as _0x542bc9,ConfirmMixin as _0x58ed8b,sanitizeEditorConfig as _0xb086e5}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x368cf1,ViewAttributeElement as _0x368f98,ViewEmptyElement as _0x29ed98,ViewRawElement as _0x521445,ViewUIElement as _0x5e6ce1,ViewDocumentFragment as _0x1d37c0,ViewText as _0x5d9919,ViewElement as _0x222be2,ModelElement as _0x5acc5d,ModelRange as _0x207b33,ModelPosition as _0x3bc5f2,ModelDocumentFragment as _0x3fb9bd,ModelText as _0x558b43}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x433702,IconChevronUp as _0x583de3,IconChevronDown as _0x163c7b,IconUndo as _0x432dbf,IconUser as _0x568042,IconThreeVerticalDots as _0x3057b1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x1f19c2,View as _0x524cb0,submitHandler as _0x40d9b0,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x10fce4,ListView as _0x569f00,ListItemView as _0x10db92,ButtonView as _0x4e77f1,MenuBarMenuView as _0x5e691f,MenuBarMenuListView as _0x5b33bc,MenuBarMenuListItemView as _0x1b911a,MenuBarMenuListItemButtonView as _0x42bcb6,ContextualBalloon as _0x46c628,ToolbarSeparatorView as _0x5c4716,IconView as _0x1dcc7a,addListToDropdown as _0x348a03,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x7ffce6,StickyPanelView as _0x46ff0e,ToolbarView as _0x24896f,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x35d12b}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1b6ed6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x230e16){super(),this['id']=_0x230e16['id']||_0x3191d3(),this['creator']=_0x230e16['creator']||null,this['authors']=_0x230e16['authors']||[],this['diffData']=_0x230e16['diffData']||null,this['toVersion']=_0x230e16['toVersion']||0x0,this['fromVersion']=_0x230e16['fromVersion']||0x0,this['set']('name',_0x230e16['name']||''),this['set']('createdAt',_0x230e16['createdAt']||new Date()),this['set']('attributes',_0x230e16['attributes']||{});}['setName'](_0xb90389){this['_update']({'name':_0xb90389});}['setAttribute'](_0x162f68,_0x29b33a){const _0x4459f6=_0x204d12(this['attributes']);_0x57a772(_0x4459f6,_0x162f68,_0x29b33a),this['_update']({'attributes':_0x4459f6});}['removeAttribute'](_0xdf78f9){const _0x28606d=_0x204d12(this['attributes']);_0x2b8b0a(_0x28606d,_0xdf78f9),this['_update']({'attributes':_0x28606d});}['_update'](_0x4ad7d5,_0x54fa59=!0x1){let _0x2d9af7=!0x1;const _0x4bb441={'id':this['id']},_0x80d4d0=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x31804b of _0x80d4d0){const _0x4245cc=_0x4ad7d5[_0x31804b];void 0x0!==_0x4245cc&&_0x4245cc!==this[_0x31804b]&&(this[_0x31804b]=_0x4245cc,_0x4bb441[_0x31804b]=_0x4245cc,_0x2d9af7=!0x0);}_0x2d9af7&&(_0x4bb441['authors']&&(_0x4bb441['authorsIds']=_0x4bb441['authors']['map'](_0x1bedbd=>_0x1bedbd['id']),delete _0x4bb441['authors']),this['fire']('_update',_0x4bb441,_0x54fa59));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x418c27=>_0x418c27['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x23b9b4{['_revisions'];static get['requires'](){return[_0x1f5a70];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x406d1c){super(_0x406d1c),this['_revisions']=new _0x1dcfeb();}['afterInit'](){!async function(_0x58d36b){const _0x5dfea9=_0x32081d([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x3996d1=0xeb829,_0xadf290=0x359e09b0,_0x13d83c=0x35997e20^_0xadf290,_0x4d7a07=window[_0x32081d([0x44,0x61,0x74,0x65])][_0x32081d([0x6e,0x6f,0x77])](),_0x5a1a12=_0x58d36b[_0x32081d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x11087b=new window[(_0x32081d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x320abb=>{_0x5a1a12[_0x32081d([0x6f,0x6e,0x63,0x65])](_0x32081d([0x72,0x65,0x61,0x64,0x79]),_0x320abb);}),_0x478f21={[_0x32081d([0x6b,0x74,0x79])]:_0x32081d([0x45,0x43]),[_0x32081d([0x75,0x73,0x65])]:_0x32081d([0x73,0x69,0x67]),[_0x32081d([0x63,0x72,0x76])]:_0x32081d([0x50,0x2d,0x32,0x35,0x36]),[_0x32081d([0x78])]:_0x32081d([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]),[_0x32081d([0x79])]:_0x32081d([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]),[_0x32081d([0x61,0x6c,0x67])]:_0x32081d([0x45,0x53,0x32,0x35,0x36])},_0x127bb3=_0x5a1a12[_0x32081d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32081d([0x67,0x65,0x74])](_0x32081d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22f5e5(){let _0x52e433,_0x343f24=null,_0x1475fa=null;try{if(_0x127bb3==_0x32081d([0x47,0x50,0x4c]))return _0x32081d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52e433=_0xef7ce8(),!_0x52e433)return _0x32081d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52e433[_0x32081d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1475fa=_0xaa8902(_0x52e433[_0x32081d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52e433[_0x32081d([0x6a,0x74,0x69])])),await _0x2c6aaa()?_0x287009()?_0x15897c()?_0x32081d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10cd4d()?(_0x52e433[_0x32081d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32081d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x343f24=_0x466dfc(_0x32081d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52e433[_0x32081d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32081d([0x74,0x72,0x69,0x61,0x6c])&&(_0x343f24=_0x466dfc(_0x32081d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b76da()):_0x32081d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32081d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32081d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32081d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15897c(){const _0x14aa07=[_0x32081d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32081d([0x74,0x72,0x69,0x61,0x6c])][_0x32081d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52e433[_0x32081d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d7a07/0x3e8:0xe10*_0x13d83c;return _0x52e433[_0x32081d([0x65,0x78,0x70])]<_0x14aa07;}function _0x287009(){const _0x68d453=_0x52e433[_0x32081d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x68d453)return!0x1;if(_0x68d453[_0x32081d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32081d([0x2a])))return!0x0;if(_0x68d453[_0x32081d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32081d([0x52,0x48])))return!0x0;if(_0x68d453[_0x32081d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32081d([0x52,0x52,0x48]))){if(_0xde23d5())return!0x0;if(_0x479b1c()||_0x424d4c())return!0x0;}return!0x1;}function _0x10cd4d(){const _0x28c276=_0x52e433[_0x32081d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28c276||0x0==_0x28c276[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51ec26}=new URL(window[_0x32081d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x28c276[_0x32081d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ec26))return!0x0;const _0x591309=_0x51ec26[_0x32081d([0x73,0x70,0x6c,0x69,0x74])](_0x32081d([0x2e]));return _0x28c276[_0x32081d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23a476=>_0x23a476[_0x32081d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32081d([0x2a])))[_0x32081d([0x6d,0x61,0x70])](_0x2eadba=>_0x2eadba[_0x32081d([0x73,0x70,0x6c,0x69,0x74])](_0x32081d([0x2e])))[_0x32081d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a0832=>_0x5a0832[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x591309[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32081d([0x6d,0x61,0x70])](_0x631dd1=>Array(_0x591309[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x631dd1[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32081d([0x66,0x69,0x6c,0x6c])](_0x631dd1[0x0]===_0x32081d([0x2a])?_0x32081d([0x2a]):'')[_0x32081d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x631dd1))[_0x32081d([0x73,0x6f,0x6d,0x65])](_0x41d707=>_0x591309[_0x32081d([0x65,0x76,0x65,0x72,0x79])]((_0x1d7c25,_0x388217)=>_0x41d707[_0x388217]===_0x1d7c25||_0x41d707[_0x388217]===_0x32081d([0x2a])));}function _0x5b76da(){return _0x343f24&&_0x1475fa?new window[(_0x32081d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x397052,_0x12b9ff)=>{_0x343f24[_0x32081d([0x74,0x68,0x65,0x6e])](_0x397052,_0x12b9ff),_0x1475fa[_0x32081d([0x74,0x68,0x65,0x6e])](_0x54f974=>{_0x54f974!=_0x32081d([0x56,0x61,0x6c,0x69,0x64])&&_0x397052(_0x54f974);},_0x12b9ff);}):_0x343f24||_0x1475fa||_0x32081d([0x56,0x61,0x6c,0x69,0x64]);}}function _0xaa8902(_0x2f3c3a,_0x1c7efa){return new window[(_0x32081d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x333010=>{if(_0x1c913f())return _0x333010(_0x32081d([0x56,0x61,0x6c,0x69,0x64]));_0x5e3cec(),_0x5a1a12[_0x32081d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32081d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56133b=!0x1;const _0x45ab5f=_0x3191d3();function _0x4cdb77(_0x3e974c){return!!_0x3e974c&&(typeof _0x3e974c===_0x32081d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e974c===_0x32081d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e974c[_0x32081d([0x74,0x68,0x65,0x6e])]===_0x32081d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e974c[_0x32081d([0x63,0x61,0x74,0x63,0x68])]===_0x32081d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ac88f(_0x1baf50){_0x249cda(_0x1baf50)[_0x32081d([0x74,0x68,0x65,0x6e])](_0x3e638a=>{if(!_0x3e638a||_0x3e638a[_0x32081d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32081d([0x6f,0x6b]))return _0x32081d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2107cc(_0x3ff9a1(_0x45ab5f+_0x1c7efa))!=_0x3e638a[_0x32081d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32081d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32081d([0x56,0x61,0x6c,0x69,0x64]);})[_0x32081d([0x74,0x68,0x65,0x6e])](_0x540e58=>(_0x593840(),_0x540e58),()=>{const _0x3e3f59=_0x12f2c2();return null==_0x3e3f59?(_0x593840(),_0x32081d([0x56,0x61,0x6c,0x69,0x64])):_0x32081d(_0x4d7a07-_0x3e3f59>(0x11928db0^_0xadf290)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32081d([0x74,0x68,0x65,0x6e])](_0x333010)[_0x32081d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x333010(_0x32081d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53474a=0x35a8e730^_0xadf290;function _0x593840(){const _0x5bffc7=_0x32081d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2107cc(_0x3ff9a1(_0x2f3c3a)),_0x20021f=_0x4cabcb(_0x2107cc(window[_0x32081d([0x4d,0x61,0x74,0x68])][_0x32081d([0x63,0x65,0x69,0x6c])](_0x4d7a07/_0x53474a)));window[_0x32081d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32081d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bffc7,_0x20021f);}function _0x12f2c2(){const _0x2e7ea0=_0x32081d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2107cc(_0x3ff9a1(_0x2f3c3a)),_0x364027=window[_0x32081d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32081d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e7ea0);return _0x364027?window[_0x32081d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cabcb(_0x364027),0x10)*_0x53474a:null;}function _0x249cda(_0x93b77c){return new window[(_0x32081d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43a97c,_0x3eeb9b)=>{_0x93b77c[_0x32081d([0x74,0x68,0x65,0x6e])](_0x43a97c,_0x3eeb9b),window[_0x32081d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3eeb9b,0x359fdd70^_0xadf290);});}}_0x5a1a12[_0x32081d([0x6f,0x6e])](_0x32081d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a88ae,_0x31d78c)=>{if(_0x31d78c[0x0]!=_0x2f3c3a)return _0x333010(_0x32081d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31d78c[0x1]={..._0x31d78c[0x1],[_0x32081d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45ab5f};},{[_0x32081d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32081d([0x68,0x69,0x67,0x68])}),_0x5a1a12[_0x32081d([0x6f,0x6e])](_0x32081d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d4595=>{_0x4cdb77(_0x2d4595[_0x32081d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56133b=!0x0,_0x3ac88f(_0x2d4595[_0x32081d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32081d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32081d([0x6c,0x6f,0x77])}),_0x11087b[_0x32081d([0x74,0x68,0x65,0x6e])](()=>{_0x56133b||_0x333010(_0x32081d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c913f(){return _0x5a1a12[_0x32081d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32081d([0x76,0x69,0x65,0x77])][_0x32081d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32081d([0x61,0x75,0x74,0x6f]);}function _0x5e3cec(){_0x5a1a12[_0x32081d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32081d([0x76,0x69,0x65,0x77])][_0x32081d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32081d([0x61,0x75,0x74,0x6f]);}}function _0x466dfc(_0x7df7b0){const _0x140a22=[new window[(_0x32081d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcebe55=>setTimeout(_0xcebe55,0x3597377c^_0xadf290)),_0x11087b[_0x32081d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32081d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6ace=>{const _0x36a5b9=0x359e09b7^_0xadf290,_0x5d2ba=_0x58d36b[_0x32081d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x14b221(){_0x5d2ba[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x36a5b9&&_0x2c6ace();}_0x14b221(),_0x5d2ba[_0x32081d([0x6f,0x6e])](_0x32081d([0x61,0x64,0x64]),_0x14b221);})),new window[(_0x32081d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x344db6=>{function _0x339649(){for(const _0xfe88cb in window)if(window[_0x32081d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x32081d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xfe88cb))&&window[_0xfe88cb]==_0x3996d1)return _0x344db6();_0x5a1a12[_0x32081d([0x73,0x74,0x61,0x74,0x65])]!=_0x32081d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x32081d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x339649,0x359e1a38^_0xadf290);}_0x59f91e(_0x32081d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x339649();})];return window[_0x32081d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32081d([0x72,0x61,0x63,0x65])](_0x140a22)[_0x32081d([0x74,0x68,0x65,0x6e])](()=>_0x7df7b0);}async function _0x3be338(){if(await _0x11087b,_0x59f91e(_0x32081d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x24981f=_0x58d36b[_0x32081d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1ea3d1=_0x58d36b[_0x32081d([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])](_0x24981f[_0x32081d([0x69,0x64])]),_0x3a5c09=_0x2cb204(_0x32081d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3a5c09[_0x32081d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x24981f['id'],_0x1ea3d1?_0x1ea3d1['id']:null,!0x0),_0x3a5c09[_0x32081d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x32081d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a5c09[_0x32081d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a5c09[_0x32081d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x57134e,void(_0x3a5c09[_0x32081d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x57134e);}if(_0x59f91e(_0x32081d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4dae0e=_0x2cb204(_0x32081d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4dae0e[_0x32081d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x32081d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4dae0e[_0x32081d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4dae0e[_0x32081d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x57134e,_0x4dae0e[_0x32081d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x57134e;}_0x5a1a12[_0x32081d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32081d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57134e,_0x5a1a12[_0x32081d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32081d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57134e,_0x5a1a12[_0x32081d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32081d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xde23d5(){return _0x59f91e(_0x32081d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2cb204(_0x32081d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x32081d([0x73,0x74,0x61,0x74,0x65])]==_0x32081d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x479b1c(){return _0x59f91e(_0x32081d([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 _0x424d4c(){return _0x59f91e(_0x32081d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b1783(_0x438d17){const _0x95e4ce=_0x34c7c4();_0x5a1a12[_0x95e4ce]=_0x32081d([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])+_0x438d17,_0x438d17[_0x32081d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x32081d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x34c7c4()]=_0x3996d1),_0x438d17!=_0x32081d([0x56,0x61,0x6c,0x69,0x64])&&_0x3be338();}function _0x34c7c4(){const _0x2e7c67=window[_0x32081d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32081d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32081d([0x6e,0x6f,0x77])]())[_0x32081d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32081d([0x2e]),'');let _0x3b3c2c=_0x32081d([0x76]);for(let _0x220c28=0x0;_0x220c28<_0x2e7c67[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x220c28+=0x2){let _0x14263c=window[_0x32081d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7c67[_0x32081d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x220c28,_0x220c28+0x2));_0x14263c>=_0x5dfea9[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14263c-=_0x5dfea9[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b3c2c+=_0x5dfea9[_0x14263c];}return _0x3b3c2c;}function _0xef7ce8(){const _0x141e24=_0x127bb3[_0x32081d([0x73,0x70,0x6c,0x69,0x74])](_0x32081d([0x2e]));if(0x3!=_0x141e24[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x46ed4e(_0x141e24[0x1]);function _0x46ed4e(_0x9c260c){const _0x243b0d=_0x1398fa(_0x9c260c);return _0x243b0d&&_0x5c54ac()?_0x243b0d:null;function _0x5c54ac(){const _0x15ee9e=_0x243b0d[_0x32081d([0x6a,0x74,0x69])],_0x219671=window[_0x32081d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15ee9e[_0x32081d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15ee9e[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53844a={..._0x243b0d,[_0x32081d([0x6a,0x74,0x69])]:_0x15ee9e[_0x32081d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15ee9e[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53844a[_0x32081d([0x76,0x63])],_0x3ff9a1(_0x53844a)==_0x219671;}}}async function _0x2c6aaa(){let _0x3e34dc=!0x0;try{const _0x385998=_0x127bb3[_0x32081d([0x73,0x70,0x6c,0x69,0x74])](_0x32081d([0x2e])),[_0x18ba73,_0x4d2d4c,_0x4dc9d4]=_0x385998;return _0x2e5210(_0x18ba73),await _0x38fd03(_0x18ba73,_0x4d2d4c,_0x4dc9d4),_0x3e34dc;}catch{return!0x1;}function _0x2e5210(_0x2ad0fa){const _0x5c1b7f=_0x1398fa(_0x2ad0fa);_0x5c1b7f&&_0x5c1b7f[_0x32081d([0x61,0x6c,0x67])]==_0x32081d([0x45,0x53,0x32,0x35,0x36])||(_0x3e34dc=!0x1);}async function _0x38fd03(_0x2eacd1,_0x5b75b0,_0x14ebf5){const _0x1647e9=window[_0x32081d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32081d([0x66,0x72,0x6f,0x6d])](_0x8d482c(_0x14ebf5),_0x187535=>_0x187535[_0x32081d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30debf=new window[(_0x32081d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32081d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2eacd1+_0x32081d([0x2e])+_0x5b75b0),_0x37e468=window[_0x32081d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32081d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37e468)return;const _0x7e957e=await _0x37e468[_0x32081d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32081d([0x6a,0x77,0x6b]),_0x478f21,{[_0x32081d([0x6e,0x61,0x6d,0x65])]:_0x32081d([0x45,0x43,0x44,0x53,0x41]),[_0x32081d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32081d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32081d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37e468[_0x32081d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32081d([0x6e,0x61,0x6d,0x65])]:_0x32081d([0x45,0x43,0x44,0x53,0x41]),[_0x32081d([0x68,0x61,0x73,0x68])]:{[_0x32081d([0x6e,0x61,0x6d,0x65])]:_0x32081d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x7e957e,_0x1647e9,_0x30debf)||(_0x3e34dc=!0x1);}}function _0x1398fa(_0x1cfde9){return _0x1cfde9[_0x32081d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32081d([0x65,0x79]))?JSON[_0x32081d([0x70,0x61,0x72,0x73,0x65])](_0x8d482c(_0x1cfde9)):null;}function _0x8d482c(_0x20bf65){return window[_0x32081d([0x61,0x74,0x6f,0x62])](_0x20bf65[_0x32081d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32081d([0x2b]))[_0x32081d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32081d([0x2f])));}function _0x3ff9a1(_0x2a505e){let _0x36fc8d=0x1505;function _0x235827(_0x36d5ab){for(let _0x4218ad=0x0;_0x4218ad<_0x36d5ab[_0x32081d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4218ad++){const _0x8e5bdb=_0x36d5ab[_0x32081d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4218ad);_0x36fc8d=(_0x36fc8d<<0x5)+_0x36fc8d+_0x8e5bdb,_0x36fc8d&=_0x36fc8d;}}function _0x195db4(_0x545e47){Array[_0x32081d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x545e47)?_0x545e47[_0x32081d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x195db4):_0x545e47&&typeof _0x545e47==_0x32081d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32081d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x545e47)[_0x32081d([0x73,0x6f,0x72,0x74])]()[_0x32081d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xed64ce,_0x1ba4d3])=>{_0x235827(_0xed64ce),_0x195db4(_0x1ba4d3);}):_0x235827(window[_0x32081d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x545e47));}return _0x195db4(_0x2a505e),_0x36fc8d>>>0x0;}function _0x2107cc(_0x4051f0){return _0x4051f0[_0x32081d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32081d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32081d([0x30]));}function _0x4cabcb(_0x23aee1){return _0x23aee1[_0x32081d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32081d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32081d([0x6a,0x6f,0x69,0x6e])]('');}function _0x59f91e(_0x4a1f0b){return _0x5a1a12[_0x32081d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32081d([0x68,0x61,0x73])](_0x4a1f0b);}function _0x2cb204(_0x2b8522){return _0x5a1a12[_0x32081d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32081d([0x67,0x65,0x74])](_0x2b8522);}function _0x57134e(){}function _0x32081d(_0x2e4c18){return _0x2e4c18['map'](_0x5522be=>String['fromCharCode'](_0x5522be))['join']('');}_0x3b1783(await _0x22f5e5());}(this);}['createRevision'](_0x582759){const _0x5957cf=this['editor']['plugins']['get']('Users');return new I({'id':_0x582759['id'],'name':_0x582759['name'],'creator':_0x582759['creatorId']?_0x5957cf['getUser'](_0x582759['creatorId']):null,'diffData':_0x582759['diffData']||_0x582759['data'],'authors':_0x582759['authorsIds']['map'](_0x52fbb6=>_0x5957cf['getUser'](_0x52fbb6)),'createdAt':new Date(_0x582759['createdAt']),'attributes':_0x582759['attributes'],'fromVersion':_0x582759['fromVersion'],'toVersion':_0x582759['toVersion']});}['addRevision'](_0x5bd850,_0x4e89c1=0x0){this['_revisions']['add'](_0x5bd850,_0x4e89c1);}['getRevision'](_0x4e3b09){return this['_revisions']['get'](_0x4e3b09);}['getRevisions'](_0x1ed213={'toJSON':!0x1}){const _0x4d92db=Array['from'](this['_revisions']);return _0x4d92db['reverse'](),_0x1ed213['toJSON']?_0x4d92db['map'](_0x559d6e=>_0x559d6e['toJSON']()):_0x4d92db;}['getIndex'](_0x573af2){return this['_revisions']['getIndex'](_0x573af2);}['getEarlierVisibleRevision'](_0x47a16e){const [,_0xc7c658]=this['getRevisionsIterator'](_0x47a16e,{'direction':'earlier'});return _0xc7c658;}['getLaterVisibleRevision'](_0x1afb75){const [,_0x1d73c1]=this['getRevisionsIterator'](_0x1afb75,{'direction':'later'});return _0x1d73c1;}['getRevisionsInDiff'](_0x377346){const _0x58d9f6=[];for(const _0x4e4a74 of this['getRevisionsIterator'](_0x377346['newRevisionId']))if(_0x58d9f6['push'](_0x4e4a74),_0x4e4a74['id']===_0x377346['oldRevisionId'])break;return _0x58d9f6;}*['getRevisionsIterator'](_0xe9dc98,{direction:_0x50857c='earlier',filter:_0x4cb205=()=>!0x0}={}){const _0x432e51='earlier'===_0x50857c?0x1:-0x1;let _0x474cd8=this['_revisions']['get'](_0xe9dc98),_0x27a288=this['getIndex'](_0x474cd8);for(yield _0x474cd8;_0x474cd8;){if(_0x27a288+=_0x432e51,_0x474cd8=this['getRevision'](_0x27a288),!_0x474cd8)return;_0x4cb205(_0x474cd8)&&(yield _0x474cd8);}}}class $ extends _0x23b9b4{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x368cf1,'c'],[_0x368f98,'a'],[_0x29ed98,'e'],[_0x521445,'r'],[_0x5e6ce1,'u']]);['_typeCharToViewClass']=new Map([['c',_0x368cf1],['a',_0x368f98],['e',_0x29ed98],['r',_0x521445],['u',_0x5e6ce1]]);async['loadRevisionData'](_0x2c8f26,_0x3e5bdb){if(_0x2c8f26['diffData']||!_0x3e5bdb)return;const _0x3f7e7e=this['editor']['config']['get']('collaboration.channelId'),_0x58bf99=await _0x3e5bdb['getRevision']({'channelId':_0x3f7e7e,'revisionId':_0x2c8f26['id']});_0x2c8f26['diffData']=_0x58bf99['diffData'];}['getRevisionDocumentData'](_0xcfd399){const _0x5875ef={};for(const _0x570064 in _0xcfd399['diffData']){if(_0xcfd399['diffData'][_0x570064]['attachChange']&&!_0xcfd399['diffData'][_0x570064]['attachChange']['isAttached'])continue;const _0x3d2888=this['_removeRevisionMarkers'](JSON['parse'](_0xcfd399['diffData'][_0x570064]['insertions'])),_0x1dd19a=this['editor']['editing']['view']['document'],_0x386600=new _0x1d37c0(_0x1dd19a,_0x3d2888['map'](_0x46737f=>this['_getViewFromDiffObj'](_0x46737f,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5875ef[_0x570064]=this['editor']['data']['processor']['toData'](_0x386600),this['editor']['data']['processor']['useFillerType']('default');}return _0x5875ef;}['getRevisionRootsAttributes'](_0x22ad7d){const _0xdf2636={};for(const _0x516413 in _0x22ad7d['diffData'])_0x22ad7d['diffData'][_0x516413]['attachChange']&&!_0x22ad7d['diffData'][_0x516413]['attachChange']['isAttached']||(_0xdf2636[_0x516413]=_0x22ad7d['diffData'][_0x516413]['attributesAfter']||{});return _0xdf2636;}['_getTypeCharForViewElement'](_0x2dfe11){return this['_viewClassToTypeChar']['get'](_0x2dfe11['constructor']);}['_getViewFromDiffObj'](_0x2aabc6,_0x3ec96b){const _0x51b25a=this['editor']['editing']['view']['document'];if('string'==typeof _0x2aabc6)return new _0x5d9919(_0x51b25a,_0x2aabc6);{let _0x5f4eed,_0xdd6033;_0xdd6033='u'==_0x2aabc6['type']||'r'==_0x2aabc6['type']?[]:_0x2aabc6['children']['map'](_0x10f0d0=>this['_getViewFromDiffObj'](_0x10f0d0,_0x3ec96b));const _0x29ba4a=this['_typeCharToViewClass']['get'](_0x2aabc6['type'])||_0x222be2,_0xef7e6a=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5f4eed=new _0x29ba4a(_0x51b25a,_0x2aabc6['name'],_0x2aabc6['attributes'],_0xdd6033),'u'==_0x2aabc6['type']&&_0x2aabc6['children'][0x0]){const _0x28f229=_0x2aabc6['children'][0x0];if(_0x5f4eed['render']=function(_0x2b091e){const _0x89b7a1=_0x2b091e['createElement']('div');return _0x89b7a1['innerHTML']=_0x28f229,_0x89b7a1['childNodes'][0x0];},_0x3ec96b){const _0x905b51=new _0x1d37c0(_0x51b25a);_0x905b51['_appendChild'](_0x5f4eed);const _0x1e4347=Array['from'](_0xef7e6a['viewChildrenToDom'](_0x905b51,{'bind':!0x1})),_0x2023a3=_0xef7e6a['domDocument']['createElement']('div');_0x2023a3['append'](..._0x1e4347),_0x5f4eed=Array['from'](_0xef7e6a['domChildrenToView'](_0x2023a3))[0x0];}}else{if('r'==_0x2aabc6['type']&&_0x2aabc6['children'][0x0]){const _0x5a8c17=_0x2aabc6['children'][0x0];if(_0x5f4eed['render']=function(_0x4a76cb){_0x4a76cb['innerHTML']=_0x5a8c17;},_0x3ec96b){const _0x5b006a=new _0x1d37c0(_0x51b25a);_0x5b006a['_appendChild'](_0x5f4eed);const _0x12298e=Array['from'](_0xef7e6a['viewChildrenToDom'](_0x5b006a,{'bind':!0x1})),_0x35c776=_0xef7e6a['domDocument']['createElement']('div');_0x35c776['append'](..._0x12298e);const _0x227a04=Array['from'](_0xef7e6a['domChildrenToView'](_0x35c776));_0x227a04['length']>0x1?_0x5f4eed['_appendChild'](_0x227a04):_0x5f4eed=_0x227a04[0x0];}}}if(_0x2aabc6['customProperties']){for(const [_0x1c90e1,_0x4a97be]of _0x2aabc6['customProperties'])_0x5f4eed['_setCustomProperty'](_0x1c90e1,_0x4a97be);}const _0x2374e5=void 0x0===_0x2aabc6['fillerOffset']?null:_0x2aabc6['fillerOffset'];return null!==_0x2374e5&&(_0x5f4eed['getFillerOffset']=()=>_0x2374e5),_0x5f4eed;}}['_makeModelFromViewString'](_0x7b9757){const _0x37f8ae=JSON['parse'](_0x7b9757),_0x1294c3=this['editor']['editing']['view']['document'],_0x1fe15d=new _0x1d37c0(_0x1294c3,_0x37f8ae['map'](_0x23875d=>this['_getViewFromDiffObj'](_0x23875d,!0x0)));return this['editor']['data']['toModel'](_0x1fe15d);}['_removeRevisionMarkers'](_0x3f5ea4){return(_0x3f5ea4=_0x3f5ea4['filter'](_0xaa9557=>!_0xaa9557['name']||'revision-start'!==_0xaa9557['name']&&'revision-end'!==_0xaa9557['name']))['forEach'](_0x54aafd=>{'string'!=typeof _0x54aafd&&(_0x54aafd['children']=this['_removeRevisionMarkers'](_0x54aafd['children']),_0x54aafd['attributes']=_0x54aafd['attributes']['filter'](_0x306cae=>!_0x306cae[0x0]['startsWith']('data-revision-')));}),_0x3f5ea4;}}function m(_0x5211a5,_0xd2ded2,_0x2a80ab){const t=_0x5211a5['t'];switch(_0xd2ded2){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'},_0x2a80ab);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2a80ab);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 _0x23b9b4{['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[_0x1f5a70,S,$,_0x412783];}constructor(_0x30de5c){super(_0x30de5c),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 _0x1e06c4=_0x3191d3();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1e06c4},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 _0x1d60a7=this['repository']['getRevision'](0x0),_0x46a1de=_0x1d60a7&&null===_0x1d60a7['creator']?_0x1d60a7:null;if(this['_continueCurrentRevision']=!!_0x46a1de&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x50a1aa=this['_source']['getCurrentRevisionId'](),_0x223c83=this['repository']['getRevision'](_0x50a1aa);if(_0x223c83)this['_startingVersion']=_0x223c83['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2b9fdd=this['_source']['history']['_operations']['find'](_0x3c8d33=>!_0x3c8d33['_isInit']),_0x16b1e6=_0x2b9fdd?_0x2b9fdd['baseVersion']:this['_source']['history']['version'];_0x1d60a7?(_0x1d60a7['toVersion']<_0x16b1e6&&_0x1d60a7['_update']({'toVersion':_0x16b1e6}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46a1de['id'],this['_startingVersion']=_0x46a1de['fromVersion']):(this['_startingVersion']=_0x1d60a7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x16b1e6,this['_continueCurrentRevision']=!0x1);}}else _0x46a1de&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46a1de['toVersion'],this['editor']['model']['document']['history']['version']),_0x46a1de['fromVersion']===_0x46a1de['toVersion']?(0x0!==_0x46a1de['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46a1de['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46a1de['id'],this['_startingVersion']=_0x46a1de['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',_0x18c202=>!_0x18c202),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21befb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x408693;for(const _0x1bd8e8 in _0x21befb){const _0x533280=_0x1bd8e8,_0x4a7989=_0x21befb[_0x533280];if('revisionHistoryLicenseKeyValid'==_0x4a7989||'revisionHistoryLicenseKeyInvalid'==_0x4a7989||'revisionHistoryLicenseKeyExpired'==_0x4a7989||'revisionHistoryLicenseKeyDomainLimit'==_0x4a7989||'revisionHistoryLicenseKeyNotAllowed'==_0x4a7989||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a7989||'revisionHistoryLicenseKeyTrialLimit'==_0x4a7989||'revisionHistoryLicenseKeyUsageLimit'==_0x4a7989){delete _0x21befb[_0x533280],_0x408693=_0x4a7989,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x408693&&_0x21befb['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x408693&&_0x21befb['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x408693&&_0x21befb['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x408693&&_0x21befb['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x408693&&_0x21befb['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x408693&&_0x21befb['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x408693&&_0x21befb['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x591896=this['repository']['getRevision'](0x0),_0x5ee3ac=await this['getRevisionDocumentData'](_0x591896),_0x18895b=await this['getRevisionRootsAttributes'](_0x591896);this['_replaceEditorDataWithRevisionData'](_0x5ee3ac,_0x18895b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xc9481c){this['_source']=_0xc9481c;}async['update'](){const _0x37a7b3=await this['_source']['getLatestVersion']();if(_0x37a7b3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x44a55f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x37a7b3});_0x44a55f['authors']=_0x44a55f['authorsIds']['map'](_0x127191=>this['editor']['plugins']['get']('Users')['getUser'](_0x127191)),this['currentRevision']['_update'](_0x44a55f);}}async['saveRevision'](_0x571da8={},_0x495546=null){const _0x3a4af9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x495546>this['currentRevision']['toVersion']&&(_0x495546=null),null===_0x495546&&(_0x495546=await this['_source']['getLatestVersion']());const _0xd92051=this['_getFromVersion'](_0x495546),_0x44e8e0=this['buildRevisionData']({'from':_0xd92051,'to':_0x495546});if(this['currentRevision']['toVersion']<_0x495546){const _0x9ccdac=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x495546,'to':_0x495546});_0x9ccdac['authors']=[],_0x9ccdac['authorsIds']=[],_0x9ccdac['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x9ccdac,!0x0),delete _0x9ccdac['authors'],_0x3a4af9['push'](_0x9ccdac);}_0x571da8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x571da8['name']=_0x571da8['name']||null,_0x571da8['id']=_0x571da8['id']||_0x3191d3(),_0x571da8={..._0x571da8,..._0x44e8e0};const _0x5a9ca4=this['addRevisionData'](_0x571da8);_0x3a4af9['push'](_0x571da8);const _0x12e079=this['repository']['getIndex'](_0x5a9ca4);if(0x0!==_0x12e079){const _0x573d84=this['repository']['getRevision'](_0x12e079-0x1);if(_0x573d84['fromVersion']!==_0x495546){const _0x3ab73b=this['_revisionDataBuilder']['getData'](_0x495546,_0x573d84['toVersion']),_0x2b98e7={'id':_0x573d84['id'],'diffData':_0x3ab73b['diffData'],'authorsIds':_0x3ab73b['authorsIds'],'authors':_0x3ab73b['authorsIds']['map'](_0x10892c=>this['editor']['plugins']['get']('Users')['getUser'](_0x10892c)),'fromVersion':_0x495546};_0x573d84===this['currentRevision']&&(_0x2b98e7['createdAt']=new Date(_0x571da8['createdAt']['getTime']()+0xa)),_0x573d84['_update'](_0x2b98e7,!0x0),delete _0x2b98e7['authors'],_0x3a4af9['push'](_0x2b98e7);}}if(this['adapter']){for(const _0x1b8e39 of _0x3a4af9)this['_bufferUpdate'](_0x1b8e39['id'],_0x1b8e39,!0x0);this['sendBufferedUpdates']();}return _0x5a9ca4;}['addRevisionData'](_0x4d0c80){const _0x2c9420=this['repository']['createRevision'](_0x4d0c80);return this['adapter']&&_0x2c9420['on']('_update',(_0x1b8e66,_0x45350a,_0x2a7b72)=>{_0x2a7b72||(this['_bufferUpdate'](_0x45350a['id'],_0x45350a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2c9420,this['_findInsertionIndex'](_0x2c9420)),_0x2c9420;}async['getRevisionDocumentData'](_0x493094){return await this['_utils']['loadRevisionData'](_0x493094,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x493094);}async['getRevisionRootsAttributes'](_0x2b99a0){return await this['_utils']['loadRevisionData'](_0x2b99a0,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2b99a0);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x208462=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4d01d4=0x0;_0x4d01d4<_0x208462['length'];_0x4d01d4++){const _0x36a1dc=_0x208462[_0x4d01d4];let _0xf17e9d=!0x1;for(const _0x24f033 of Object['keys'](_0x36a1dc))void 0x0===_0x36a1dc[_0x24f033]?delete _0x36a1dc[_0x24f033]:'id'!==_0x24f033&&(_0xf17e9d=!0x0);_0xf17e9d||(_0x208462[_0x4d01d4]=null);}if(_0x208462=_0x208462['filter'](_0x522fe5=>null!==_0x522fe5),!_0x208462['length'])return;for(let _0x2ffef1=0x0;_0x2ffef1<_0x208462['length'];_0x2ffef1++){const _0x2bda86=_0x208462[_0x2ffef1];void 0x0!==_0x2bda86['fromVersion']&&void 0x0===_0x2bda86['toVersion']&&(_0x2bda86['toVersion']=this['repository']['getRevision'](_0x2bda86['id'])['toVersion']),void 0x0!==_0x2bda86['toVersion']&&void 0x0===_0x2bda86['fromVersion']&&(_0x2bda86['fromVersion']=this['repository']['getRevision'](_0x2bda86['id'])['fromVersion']);}const _0x12e6fe=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x208462,_0x12e6fe)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ffa5c=>{if(_0x2ffa5c){for(const _0x2b78dc of _0x2ffa5c)this['setRevisionData']({'id':_0x2b78dc['id'],'createdAt':_0x2b78dc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x14752e=null,from:_0x1f5c38=null,to:_0x3bbbb1=null}){_0x1f5c38=null!==_0x1f5c38?_0x1f5c38:_0x14752e['fromVersion'],_0x3bbbb1=null!==_0x3bbbb1?_0x3bbbb1:_0x14752e['toVersion'];const _0xb837e3=this['_revisionDataBuilder']['getData'](_0x1f5c38,_0x3bbbb1),_0x6a3c64={'diffData':_0xb837e3['diffData'],'authorsIds':_0xb837e3['authorsIds'],'fromVersion':_0x1f5c38,'toVersion':_0x3bbbb1};if(!_0x14752e||_0x3bbbb1!==_0x14752e['toVersion']){const _0x544969=_0x3bbbb1-0x1,_0x3b4956=this['_source']['history']['getOperation'](_0x544969);_0x6a3c64['createdAt']=_0x3b4956&&_0x3b4956['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1f5c38===this['_loadedStateData']['fromVersion']){for(const _0xa17d74 of this['_loadedStateData']['authors'])_0x6a3c64['authorsIds']['includes'](_0xa17d74['id'])||_0x6a3c64['authorsIds']['push'](_0xa17d74['id']);}return _0x6a3c64;}['_bufferUpdate'](_0x528c30,_0x560d1d,_0x53cb2f){if(this['_bufferedUpdates']['has'](_0x528c30)){const _0x22dd3d=this['_bufferedUpdates']['get'](_0x528c30);_0x560d1d=_0x53cb2f?{..._0x22dd3d,..._0x560d1d}:{..._0x560d1d,..._0x22dd3d};}this['_bufferedUpdates']['set'](_0x528c30,_0x560d1d);}['setRevisionData'](_0x148303){const _0x38cf17=this['repository']['getRevision'](_0x148303['id']);if(_0x148303['createdAt']&&(_0x148303['createdAt']=new Date(_0x148303['createdAt'])),_0x148303['authorsIds']){const _0x386767=this['editor']['plugins']['get']('Users');_0x148303['authors']=_0x148303['authorsIds']['map'](_0x4120b4=>_0x386767['getUser'](_0x4120b4));}_0x38cf17['_update'](_0x148303,!0x0);}['_createInitialRevision'](_0x5e7cef){const _0x3fc935=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3fc935)this['_initialRevisionId']=_0x3fc935['id'];else{const _0x37c432=!this['editor']['model']['document']['roots']['find'](_0xca085f=>this['editor']['model']['hasContent'](_0xca085f)),_0x10bba4=this['editor']['plugins']['get']('Users')['me']['id'],_0x47522e=m(this['editor']['locale'],_0x37c432?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5e7cef,'to':_0x5e7cef,'id':this['_initialRevisionId'],'name':_0x47522e,'creatorId':_0x10bba4});}}['_createCurrentRevision'](_0x219fb0){const _0x3886af=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3886af),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x219fb0,'to':_0x219fb0,'id':_0x3886af,'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'](_0xb6824b,_0x4ae69e){let _0x452d18=this['editor']['config']['get']('initialData'),_0x179b58=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x452d18){_0x452d18={};for(const _0x2c2e60 of this['editor']['model']['document']['getRootNames']())_0x452d18[_0x2c2e60]='';}if('string'==typeof _0x452d18&&(_0x452d18={'main':_0x452d18}),void 0x0===_0x179b58){_0x179b58={};for(const _0x3f25b9 of this['editor']['model']['document']['getRootNames']())_0x179b58[_0x3f25b9]={};}let _0x5388df=!0x1;const _0x1755f6=Object['keys'](_0x452d18),_0x5411d8=Object['keys'](_0xb6824b);for(const _0x147e66 of _0x1755f6){if(_0x452d18[_0x147e66]!==_0xb6824b[_0x147e66]&&''!==_0x452d18[_0x147e66]['trim']()){_0x5388df=!0x0;break;}if(!_0x5e1a1d(_0x179b58[_0x147e66],_0x4ae69e[_0x147e66])&&Object['keys'](_0x179b58[_0x147e66])['length']>0x0){_0x5388df=!0x0;break;}}_0x5388df||(_0x5388df=_0x5411d8['some'](_0x5aa260=>!this['editor']['model']['document']['getRoot'](_0x5aa260))),_0x5388df&&_0x1d296d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x452d18,'editorRootsAttributes':_0x179b58,'revisionData':_0xb6824b,'revisionRootsAttributes':_0x4ae69e}),this['editor']['config']['set']('initialData',_0xb6824b),this['editor']['config']['set']('rootsAttributes',_0x4ae69e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x586be0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x586be0['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x220429){const _0x51f95c=this['repository']['getRevisions']();_0x51f95c['reverse']();let _0x3f9f8a=0x0;for(;_0x3f9f8a<_0x51f95c['length'];){const _0x177e6f=_0x51f95c[_0x3f9f8a];if(_0x177e6f===this['currentRevision']){_0x3f9f8a++;continue;}if(_0x177e6f['id']===this['_initialRevisionId'])break;const _0x35a62a=_0x220429['toVersion']-_0x177e6f['toVersion']||_0x220429['fromVersion']-_0x177e6f['fromVersion'];if(_0x35a62a>0x0)break;if(_0x35a62a<0x0)_0x3f9f8a++;else{if(!_0x220429['creator']&&_0x177e6f['creator'])break;if(_0x177e6f['creator']||!_0x220429['creator']){if(_0x220429['createdAt']>_0x177e6f['createdAt'])break;_0x3f9f8a++;}else _0x3f9f8a++;}}return _0x3f9f8a;}['_getFromVersion'](_0x5704f9){const _0x4187bc=this['repository']['getRevisions']();_0x4187bc['reverse'](),_0x4187bc['shift']();const _0xf82107=_0x4187bc['find'](_0x209f3f=>_0x209f3f['toVersion']<=_0x5704f9)['toVersion'];return _0xf82107<this['_startingVersion']?this['_startingVersion']:_0xf82107;}['_makeRevision']({name:_0x5cadb3,from:_0xfa8a4f,to:_0x425a4e,creatorId:_0x3b7ae5,id:_0x4536c7}){const _0x184235=this['buildRevisionData']({'from':_0xfa8a4f,'to':_0x425a4e});_0x184235['name']=_0x5cadb3,_0x184235['creatorId']=_0x3b7ae5,_0x184235['id']=_0x4536c7;const _0x28a85c=this['addRevisionData'](_0x184235);return this['adapter']&&this['_bufferUpdate'](_0x184235['id'],_0x184235,!0x0),_0x28a85c;}['_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(_0x4f1a4e){this['editor']=_0x4f1a4e,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'](_0x567c4a){this['source']=_0x567c4a;const _0x131be5=new Map(),_0x16c811=new Map(),_0x3ac71d=this['editor']['model']['document']['roots']['map'](_0x1fca4c=>_0x1fca4c['rootName']);for(const _0x221a5d of _0x3ac71d){const _0x3446ae=this['editor']['model']['document']['getRoot'](_0x221a5d),_0x507c78=x(_0x3446ae);_0x131be5['set'](_0x221a5d,_0x507c78),_0x16c811['set'](_0x221a5d,Object['fromEntries'](_0x3446ae['getAttributes']()));}const _0x122a8f=Array['from'](this['editor']['model']['markers'])['map'](_0x40b70f=>[_0x40b70f['name'],_0x40b70f['getRange']()]),_0x715278=this['source']['version'];this['_saveMetaData'](_0x715278,_0x131be5,_0x122a8f,_0x16c811),this['_startingRevisionId']=this['_revisionId'];const _0x2b8923=new Map(),_0x460801=new Map();for(const _0x3175e6 of _0x3ac71d){const _0x1afbad=N(_0x3175e6);_0x2b8923['set'](_0x3175e6,_0x1afbad),_0x460801['set'](_0x3175e6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2b8923,[],_0x460801);}['getData'](_0x219584,_0x5a72c0){if(this['_lastFrom']===_0x219584&&this['_lastTo']<=_0x5a72c0)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5a72c0,!0x0);else{if(!this['_savedMetaData']['has'](_0x219584)){const _0x2765e9=this['_getPreviousFrom'](_0x219584);this['_calculateMetaData'](_0x2765e9,_0x219584,!0x1);}this['_calculateMetaData'](_0x219584,_0x5a72c0,!0x0);}return this['_lastFrom']=_0x219584,this['_lastTo']=_0x5a72c0,this['_getState']();}['loadState'](_0x5b0f85){if(!this['_savedMetaData']['has'](_0x5b0f85['fromVersion'])){const _0x5200d2=this['_getPreviousFrom'](_0x5b0f85['fromVersion']);this['_calculateMetaData'](_0x5200d2,_0x5b0f85['fromVersion'],!0x1);}this['_calculateMetaData'](_0x5b0f85['fromVersion'],_0x5b0f85['toVersion'],!0x1);const _0x41e666=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x5b0f85['fromVersion'],this['_lastTo']=_0x5b0f85['toVersion'];for(const _0x5cca30 in _0x5b0f85['diffData']){const _0x21d5fa=_0x5b0f85['diffData'][_0x5cca30]['attachChange'],_0x534eec=_0x204d12(_0x5b0f85['diffData'][_0x5cca30]['attributesBefore'])||{},_0x272393=_0x41e666['_makeModelFromViewString'](_0x5b0f85['diffData'][_0x5cca30]['deletions']);_0x272393['rootName']=_0x5cca30,_0x272393['_isAttached']=!_0x21d5fa||!_0x21d5fa['isAttached'],_0x272393['isAttached']=()=>_0x272393['_isAttached'],this['_baseRoots']['set'](_0x5cca30,_0x272393),this['_baseRootsAttributes']['set'](_0x5cca30,_0x534eec),_0x21d5fa&&this['_touchedRoots']['set'](_0x5cca30,_0x21d5fa);const _0x177d3e=this['_makeIdsRoot'](_0x272393);this['_baseIdsRoots']['set'](_0x5cca30,_0x177d3e);for(const [_0x4a012c,_0x365352]of _0x272393['markers']){if(!_0x4a012c['startsWith']('revision:'))continue;const _0x2c53db=_0x4a012c['split'](':')[0x2];for(const _0x2736c1 of _0x365352['getWalker']({'singleCharacters':!0x0})){const _0xd22180=this['_getVidAttributeName'](_0x2736c1),_0x28a808='elementEnd'==_0x2736c1['type']?_0x2736c1['previousPosition']['path']['slice'](0x0,-0x1):_0x2736c1['previousPosition']['path'],_0x4da9c5=_0x177d3e['getNodeByPath'](_0x28a808)['getAttribute'](_0xd22180);this['_touched']['set'](_0x4da9c5,{'userId':_0x2c53db});}_0x272393['markers']['delete'](_0x4a012c);}}this['_startingRevisionId']=this['_revisionId'];const _0x58dde2=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xcbfe9d=>!this['_touched']['has'](_0xcbfe9d));let _0x1ec986=0x0;const _0x2d9d09=new Map();for(const _0x463814 in _0x5b0f85['diffData']){const _0x5baf81=_0x5b0f85['diffData'][_0x463814]['attachChange'],_0x1707fe=_0x204d12(_0x5b0f85['diffData'][_0x463814]['attributesAfter'])||{},_0x4d41c2=_0x41e666['_makeModelFromViewString'](_0x5b0f85['diffData'][_0x463814]['insertions']);_0x4d41c2['rootName']=_0x463814,_0x4d41c2['_isAttached']=!_0x5baf81||_0x5baf81['isAttached'],_0x4d41c2['isAttached']=()=>_0x4d41c2['_isAttached'],this['_diffRoots']['set'](_0x463814,_0x4d41c2),this['_diffRootsAttributes']['set'](_0x463814,_0x1707fe);const _0x49c813=this['_makeIdsRoot'](_0x4d41c2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x463814,_0x49c813),_0x2d9d09['set'](_0x463814,_0x4d41c2['isAttached']()?_0x1707fe:{});for(const [_0x146128,_0x335c04]of _0x4d41c2['markers']){if(!_0x146128['startsWith']('revision:'))continue;const _0x2c67de=_0x146128['split'](':')[0x2];for(const _0x416884 of _0x335c04['getWalker']({'singleCharacters':!0x0})){const _0x1df29b=this['_getVidAttributeName'](_0x416884),_0x75a2b6=this['_revisionId']++,_0x5d67f2='elementEnd'==_0x416884['type']?_0x416884['previousPosition']['path']['slice'](0x0,-0x1):_0x416884['previousPosition']['path'];_0x49c813['getNodeByPath'](_0x5d67f2)['_setAttribute'](_0x1df29b,_0x75a2b6),this['_touched']['set'](_0x75a2b6,{'userId':_0x2c67de});}_0x4d41c2['markers']['delete'](_0x146128);}for(const _0x3cb532 of this['editor']['model']['createRangeIn'](_0x4d41c2)['getWalker']({'singleCharacters':!0x0})){const _0x22b2da=this['_getVidAttributeName'](_0x3cb532),_0x15ae23='elementEnd'==_0x3cb532['type']?_0x3cb532['previousPosition']['path']['slice'](0x0,-0x1):_0x3cb532['previousPosition']['path'],_0x518df0=_0x49c813['getNodeByPath'](_0x15ae23);_0x518df0['getAttribute'](_0x22b2da)>0x0||_0x518df0['_setAttribute'](_0x22b2da,_0x58dde2[_0x1ec986++]);}for(const [_0x34fa62,_0x50a9b8]of _0x4d41c2['markers'])_0x34fa62['startsWith']('revision:')||this['_markers']['set'](_0x34fa62,_0x50a9b8);}const {roots:_0x13347a}=this['_savedMetaData']['get'](_0x5b0f85['fromVersion']),{roots:_0x3cc028}=this['_savedMetaData']['get'](_0x5b0f85['toVersion']),_0x22c465=x(_0x13347a['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x22c465),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x22c465,Number['NEGATIVE_INFINITY']));const _0x284bee=x(_0x3cc028['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x284bee),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x284bee));const _0x9b8da6=Array['from'](this['_diffRoots'])['map'](([_0x6c395e,_0x19cf2f])=>[_0x6c395e,x(_0x19cf2f)]);this['_saveMetaData'](this['_lastTo'],_0x9b8da6,this['_markers'],_0x2d9d09);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x419c51,_0x490c9b,_0x1e66ee,_0x4d8217){const _0xb44dfa=new Map(_0x490c9b),_0x30a361=new Map(_0x204d12(_0x4d8217)),_0x47806c=new Map();for(const [_0xbb1860,_0x4a706e]of _0x1e66ee)_0x47806c['set'](_0xbb1860,{'start':_0x4a706e['start']['clone'](),'end':_0x4a706e['end']['clone'](),'rootName':_0x4a706e['root']['rootName']});this['_savedMetaData']['set'](_0x419c51,{'roots':_0xb44dfa,'markers':_0x47806c,'rootsAttributes':_0x30a361});}['_removeMetaData'](_0x53b4d6){this['_savedMetaData']['delete'](_0x53b4d6);}['_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'](_0x3ba43c,_0x572878=null){let _0x125369=null;_0x3ba43c['is']('documentFragment')||(_0x125369=new _0x5acc5d(_0x3ba43c['name'],{'vid_start':null===_0x572878?this['_revisionId']++:_0x572878++}));const _0x2d6647=[];for(const _0xbbb18 of _0x3ba43c['getChildren']())if(_0xbbb18['is']('element')){_0x2d6647['push'](this['_makeIdsRoot'](_0xbbb18,_0x572878));const _0x20cc7a=_0x2d6647[_0x2d6647['length']-0x1];null!==_0x572878&&(_0x572878=_0x20cc7a['is']('element','$text')?_0x20cc7a['getAttribute']('vid')+0x1:_0x20cc7a['getAttribute']('vid_end')+0x1);}else{for(let _0x375770=0x0;_0x375770<_0xbbb18['offsetSize'];_0x375770++)_0x2d6647['push'](new _0x5acc5d('$text',{'vid':null===_0x572878?this['_revisionId']++:_0x572878++}));}if(_0x3ba43c['is']('documentFragment')){const _0x4bac14=N(_0x3ba43c['rootName']);return _0x4bac14['_insertChild'](0x0,_0x2d6647),_0x4bac14;}return _0x125369['_setAttribute']('vid_end',null===_0x572878?this['_revisionId']++:_0x572878++),_0x125369['_insertChild'](0x0,_0x2d6647),_0x125369;}['_calculateMetaData'](_0x4aa33f,_0x1970d8,_0x566603){this['_reset']();const {roots:_0x387f0a,markers:_0x404bed,rootsAttributes:_0x4467bd}=this['_savedMetaData']['get'](_0x4aa33f);this['_baseRoots']=new Map(_0x387f0a),this['_baseRootsAttributes']=new Map(_0x204d12(_0x4467bd));for(const [_0xf5096a,_0x1c6d1e]of this['_baseRoots'])if('$graveyard'!==_0xf5096a&&(this['_diffRoots']['set'](_0xf5096a,x(_0x1c6d1e)),this['_diffRootsAttributes']=new Map(_0x204d12(_0x4467bd)),_0x566603)){const _0x5a6b4d=this['_revisionId'];this['_idsRoots']['set'](_0xf5096a,this['_makeIdsRoot'](_0x1c6d1e)),this['_baseIdsRoots']['set'](_0xf5096a,this['_makeIdsRoot'](_0x1c6d1e,_0x5a6b4d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x566603&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xc52e33,_0x379b05]of _0x404bed){const _0x5db028=this['_baseRoots']['get'](_0x379b05['rootName']),_0x2df6b2=this['_diffRoots']['get'](_0x379b05['rootName']),_0x9a1aba=new _0x207b33(this['_fixPosition'](_0x379b05['start'],_0x5db028),this['_fixPosition'](_0x379b05['end'],_0x5db028)),_0x5bb330=this['_fixRange'](_0x9a1aba,_0x2df6b2);_0x5db028['markers']['set'](_0xc52e33,_0x9a1aba),this['_markers']['set'](_0xc52e33,_0x5bb330);}this['_applyOperations'](_0x4aa33f,_0x1970d8,_0x566603);}['_applyOperations'](_0x2ec391,_0x1bc554,_0xcb63bd){for(const _0x2ccf93 of this['source']['getOperations'](_0x2ec391,_0x1bc554))this['_handleOperation'](_0x2ccf93,_0xcb63bd);for(const _0x4948bc of this['_diffRoots']['values']())_0x4948bc['markers']['clear']();for(const [_0x423561,_0x62c382]of this['_markers']){this['_diffRoots']['get'](_0x62c382['root']['rootName'])['markers']['set'](_0x423561,_0x62c382['clone']());}const _0x28631f=new Map(),_0x577346=new Map();for(const [_0x3cf686,_0x25707a]of this['_diffRoots'])_0x28631f['set'](_0x3cf686,x(_0x25707a)),_0x577346['set'](_0x3cf686,this['_diffRootsAttributes']['get'](_0x3cf686));this['_saveMetaData'](_0x1bc554,_0x28631f,this['_markers'],_0x577346);}['_getPreviousFrom'](_0x33fec8){const _0x38ea97=Array['from'](this['_savedMetaData']['keys']());_0x38ea97['sort']((_0x4ed09c,_0x102d5c)=>_0x4ed09c-_0x102d5c),_0x38ea97['reverse']();for(const _0xb278f of _0x38ea97)if(_0xb278f<_0x33fec8)return _0xb278f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x9b936b,_0x5f7466){const _0x284626=Array['from'](_0x5f7466['markers'])['map'](([_0x4dd7c1,_0x13d487])=>[_0x4dd7c1,this['_fixRange'](_0x13d487,_0x9b936b)]);_0x9b936b['markers']=new Map(_0x284626);}['_transformMarkers'](_0x36a257){for(const _0x39da0a of this['_markers']['values']()){const _0x5ae819=_0x39da0a['getTransformedByOperation'](_0x36a257),_0x5db55f=_0x207b33['_createFromRanges'](_0x5ae819);_0x39da0a['start']=_0x5db55f['start'],_0x39da0a['end']=_0x5db55f['end'];}}['_handleOperation'](_0x173d3c,_0xb26662){if('addRoot'!=_0x173d3c['type']&&'detachRoot'!=_0x173d3c['type']){if('insert'==_0x173d3c['type']){const _0xf35ba6=_0x173d3c['position']['root']['rootName'];this['_diffRoots']['has'](_0xf35ba6)||(this['_diffRoots']['set'](_0xf35ba6,N(_0xf35ba6,!0x0)),this['_diffRootsAttributes']['set'](_0xf35ba6,{}),_0xb26662&&this['_idsRoots']['set'](_0xf35ba6,N(_0xf35ba6,!0x0)));}else{if('addRootAttribute'==_0x173d3c['type']||'removeRootAttribute'==_0x173d3c['type']||'changeRootAttribute'==_0x173d3c['type'])return void this['_handleRootAttributeOperation'](_0x173d3c);'marker'==_0x173d3c['type']&&this['_handleMarkerOperation'](_0x173d3c);}if('marker'!==_0x173d3c['type']){const _0x21d6a7=this['_cloneOperation'](_0x173d3c,this['_diffRoots']);_0x21d6a7['_execute'](),this['_transformMarkers'](_0x21d6a7);}if(_0xb26662)switch(_0x173d3c['type']){case'insert':this['_handleInsertOperation'](_0x173d3c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x173d3c);break;case'merge':this['_handleMergeOperation'](_0x173d3c);break;case'split':this['_handleSplitOperation'](_0x173d3c);}}else this['_handleRootOperation'](_0x173d3c,_0xb26662);}['_cloneOperation'](_0x51c47b,_0x29887c){const _0x45dfa4=_0x51c47b['clone']();return _0x45dfa4['_authorId']=_0x51c47b['_authorId'],this['_fixOperation'](_0x45dfa4,_0x29887c),_0x45dfa4;}['_getBaseVids'](_0x232fed){return _0x232fed['map'](_0x3be71f=>{const _0x345082=this['_getVidAttributeName'](_0x3be71f);return Number(_0x3be71f['item']['getAttribute'](_0x345082));});}['_generateTape'](_0x3b3841,_0x37c3cc){if(_0x3b3841['is']('element','$text'))_0x37c3cc['push']({'item':_0x3b3841,'type':'text'});else{_0x3b3841['is']('element')&&_0x37c3cc['push']({'item':_0x3b3841,'type':'elementStart'});for(const _0x6572a6 of _0x3b3841['getChildren']())this['_generateTape'](_0x6572a6,_0x37c3cc);_0x3b3841['is']('element')&&_0x37c3cc['push']({'item':_0x3b3841,'type':'elementEnd'});}return _0x37c3cc;}['_getState'](){const _0x42940c=new Map(this['_touched']),_0x1b39f2=new Map(_0x42940c),_0x5a3107=new Map(),_0x4c0b04={'insertions':{},'deletions':{}},_0x41a97b={'insertions':{},'deletions':{}},_0x237df0=new Map(),_0x3c4391=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3c4391['delete']('$graveyard');for(const _0x48c482 of _0x3c4391){const _0x2217dc=this['_diffRoots']['get'](_0x48c482)||N(_0x48c482,!0x1),_0x1aa144=this['_baseRoots']['get'](_0x48c482)||N(_0x48c482,!0x1);_0x2217dc['isAttached']()||_0x1aa144['isAttached']()?(_0x4c0b04['insertions'][_0x48c482]=x(_0x2217dc),_0x4c0b04['deletions'][_0x48c482]=x(_0x1aa144),this['_copyMarkers'](_0x4c0b04['deletions'][_0x48c482],_0x1aa144),this['_copyMarkers'](_0x4c0b04['insertions'][_0x48c482],_0x2217dc),_0x41a97b['insertions'][_0x48c482]=this['_generateTape'](this['_idsRoots']['get'](_0x48c482),[]),_0x41a97b['deletions'][_0x48c482]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x48c482)||N(_0x48c482,!0x1),[])):_0x3c4391['delete'](_0x48c482);}for(const _0x175dfe of _0x3c4391){const _0x381d18=_0x41a97b['insertions'][_0x175dfe];for(const _0x4b6046 of _0x381d18){const _0x8a750b=this['_getVidAttributeName'](_0x4b6046),_0x47294d=_0x4b6046['item']['getAttribute'](_0x8a750b);_0x1b39f2['delete'](_0x47294d),_0x47294d>=this['_startingRevisionId']&&_0x5a3107['set'](_0x47294d,_0x42940c['get'](_0x47294d));}}for(const _0x1ec628 of _0x3c4391){const _0x27461e=_0x41a97b['insertions'][_0x1ec628],_0x512e34=this['_getBaseVids'](_0x41a97b['deletions'][_0x1ec628]);let _0x7e2132=0x0;for(const _0x164d83 of _0x27461e){const _0x5a7b4c=this['_getVidAttributeName'](_0x164d83),_0x9c502e=_0x164d83['item']['getAttribute'](_0x5a7b4c);if(!_0x5a3107['has'](_0x9c502e)&&!_0x237df0['has'](_0x9c502e)){if(_0x1b39f2['has'](_0x9c502e))_0x7e2132++;else{if(_0x9c502e!=_0x512e34[_0x7e2132]){const _0x53d918=_0x42940c['get'](_0x9c502e)||_0x42940c['get'](_0x512e34[_0x7e2132]);for(;_0x9c502e!=_0x512e34[_0x7e2132];)_0x1b39f2['has'](_0x512e34[_0x7e2132])||(_0x237df0['set'](_0x512e34[_0x7e2132],_0x53d918),_0x42940c['set'](_0x512e34[_0x7e2132],_0x53d918)),_0x7e2132++;}_0x7e2132++;}}}}for(const _0x2218f7 of _0x3c4391){const _0x661449=_0x41a97b['insertions'][_0x2218f7];for(const _0x3c538b of _0x661449){const _0x5365c5=this['_getVidAttributeName'](_0x3c538b),_0x158d52=_0x3c538b['item']['getAttribute'](_0x5365c5);if(_0x237df0['has'](_0x158d52)){const _0x2d9bd5=_0x237df0['get'](_0x158d52);_0x1b39f2['has'](_0x158d52)||_0x1b39f2['set'](_0x158d52,{..._0x2d9bd5}),_0x5a3107['set'](_0x158d52,{..._0x2d9bd5});}}}for(const _0x370220 of _0x1b39f2['keys']())_0x370220>=this['_startingRevisionId']&&_0x1b39f2['delete'](_0x370220);const _0x57e9e0=new Map();for(const _0x375eba of _0x3c4391){let _0x52ed4a=_0x41a97b['insertions'][_0x375eba];for(const _0x32d9fc of _0x52ed4a)if(_0x32d9fc['item']['is']('element','tableCell')){const _0x4b767d=this['_getVidAttributeName'](_0x32d9fc),_0xee3342=_0x32d9fc['item']['getAttribute'](_0x4b767d);if(_0x5a3107['has'](_0xee3342)){const _0x321256=_0x32d9fc['item']['parent']['parent']['getAttribute']('vid_start'),_0x522779=_0x57e9e0['get'](_0x321256)||new Set();_0x522779['add'](_0x5a3107['get'](_0xee3342)['userId']),_0x57e9e0['set'](_0x321256,_0x522779);}}_0x52ed4a=_0x41a97b['deletions'][_0x375eba];for(const _0x4e42cc of _0x52ed4a)if(_0x4e42cc['item']['is']('element','tableCell')){const _0x532f04=this['_getVidAttributeName'](_0x4e42cc),_0x2a0093=_0x4e42cc['item']['getAttribute'](_0x532f04);if(_0x1b39f2['has'](_0x2a0093)){const _0x57b705=_0x4e42cc['item']['parent']['parent']['getAttribute']('vid_start'),_0x166a0f=_0x57e9e0['get'](_0x57b705)||new Set();_0x166a0f['add'](_0x1b39f2['get'](_0x2a0093)['userId']),_0x57e9e0['set'](_0x57b705,_0x166a0f);}}for(const _0x2a0806 of _0x57e9e0['keys']())(_0x5a3107['has'](_0x2a0806)||_0x1b39f2['has'](_0x2a0806))&&_0x57e9e0['delete'](_0x2a0806);}for(const _0x9d39d3 of _0x3c4391){const _0x3827a7=_0x41a97b['insertions'][_0x9d39d3];let _0x58e0db=null,_0x4ab05e=null;for(const _0x208d26 of _0x3827a7){const _0x4a9e29=this['_getVidAttributeName'](_0x208d26),_0x819d30=_0x208d26['item']['getAttribute'](_0x4a9e29),_0x406ba1=_0x57e9e0['get'](_0x819d30);_0x406ba1&&'elementStart'==_0x208d26['type']&&(_0x58e0db=Array['from'](_0x406ba1)[0x0],_0x4ab05e=_0x208d26['item']['getAttribute']('vid_end')),_0x58e0db&&(_0x1b39f2['set'](_0x819d30,{'userId':_0x58e0db}),_0x5a3107['set'](_0x819d30,{'userId':_0x58e0db})),_0x819d30==_0x4ab05e&&(_0x58e0db=null,_0x4ab05e=null);}}const _0x29de86={},_0x3c05f6=new Set();for(const _0x64de33 of _0x3c4391){const _0x1ea662=_0x4c0b04['deletions'][_0x64de33],_0x3f9d06=_0x4c0b04['insertions'][_0x64de33];for(const {userId:_0x47de8f}of this['_touchedMarkers']['values']())null!==_0x47de8f&&_0x3c05f6['add'](_0x47de8f);for(const {userId:_0x3e0183}of this['_touchedRoots']['values']())null!==_0x3e0183&&_0x3c05f6['add'](_0x3e0183);this['_markChanges'](_0x3f9d06,_0x41a97b['insertions'][_0x64de33],_0x5a3107,'insertion',_0x3c05f6),this['_markChanges'](_0x1ea662,_0x41a97b['deletions'][_0x64de33],_0x1b39f2,'deletion',_0x3c05f6),_0x29de86[_0x64de33]={'insertions':this['_prepareViewToSave'](_0x3f9d06),'deletions':this['_prepareViewToSave'](_0x1ea662),'attachChange':this['_touchedRoots']['get'](_0x64de33)||null,'attributesBefore':_0x204d12(this['_baseRootsAttributes']['get'](_0x64de33))||{},'attributesAfter':_0x204d12(this['_diffRootsAttributes']['get'](_0x64de33))};}return{'diffData':_0x29de86,'authorsIds':Array['from'](_0x3c05f6)};}['_processRootBeforeSave'](_0xd92042){for(const [,_0x9e1a44]of _0xd92042['markers']){const _0x2a26fa=_0x9e1a44['start']['getAncestors']()['filter'](_0x270724=>'tableCell'==_0x270724['name']);for(const _0x291264 of _0x2a26fa)0x1==_0x291264['childCount']&&_0x291264['getChild'](0x0)['is']('element','paragraph')&&_0x291264['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x47cfbe){this['_processRootBeforeSave'](_0x47cfbe);const _0x1b2639=this['editor']['data']['toView'](_0x47cfbe,{}),_0x585cc3=Array['from'](_0x1b2639['getChildren']())['map'](_0x3c2831=>this['_getViewJson'](_0x3c2831));return JSON['stringify'](_0x585cc3);}['_getViewJson'](_0x1eeefa){if(_0x1eeefa['is']('$text'))return _0x1eeefa['data'];{const _0x53643d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x20c6c0=_0x1eeefa,_0x33c2a2=this['editor']['data']['htmlProcessor']['domConverter'],_0x414da6={'type':_0x53643d['_getTypeCharForViewElement'](_0x20c6c0),'name':_0x20c6c0['name'],'attributes':Array['from'](_0x20c6c0['getAttributes']()),'children':Array['from'](_0x20c6c0['getChildren']())['map'](_0x48daa2=>this['_getViewJson'](_0x48daa2))};if(_0x1eeefa['is']('uiElement')&&'$comment'!=_0x1eeefa['name']){const _0x3e472f=_0x1eeefa['render'](_0x33c2a2['domDocument'],_0x33c2a2);_0x414da6['children']['push'](_0x3e472f['outerHTML']);}else{if(_0x1eeefa['is']('rawElement')){const _0x1c3635=_0x33c2a2['domDocument']['createElement'](_0x20c6c0['name']);_0x1eeefa['render'](_0x1c3635,_0x33c2a2),_0x414da6['children']['push'](_0x1c3635['innerHTML']);}}const _0x10f448=Array['from'](_0x20c6c0['getCustomProperties']());_0x10f448['length']>0x0&&(_0x414da6['customProperties']=_0x10f448);const _0x397c75=_0x20c6c0['getFillerOffset']();return null!==_0x397c75&&(_0x414da6['fillerOffset']=_0x397c75),_0x414da6;}}['_markChanges'](_0x3128c7,_0x294a9c,_0x23cb1c,_0xd264da,_0x12971e){let _0x4d3f19=null,_0x4b533b=null,_0x51ccdc=0x0;const _0x2808af=this['editor']['model'];for(let _0x53afa7=0x0;_0x53afa7<_0x294a9c['length'];_0x53afa7++){const _0x3d710c=this['_getVidAttributeName'](_0x294a9c[_0x53afa7]),_0x53c163=_0x294a9c[_0x53afa7]['item']['getAttribute'](_0x3d710c),_0x1f1586=_0x23cb1c['get'](_0x53c163),_0x4eb638=_0x53afa7==_0x294a9c['length']-0x1;(!_0x4d3f19&&_0x1f1586&&(_0x4d3f19=_0x1f1586,_0x4b533b=_0x294a9c[_0x53afa7]),_0x4d3f19&&(!_0x1f1586||_0x1f1586['userId']!=_0x4d3f19['userId']))&&(_0x27c9b2(_0x1f1586,P(_0x4b533b,_0x3128c7,_0x2808af),P(_0x294a9c[_0x53afa7],_0x3128c7,_0x2808af)),_0x4d3f19=_0x1f1586||null,_0x4b533b=_0x1f1586?_0x294a9c[_0x53afa7]:null),_0x4d3f19&&_0x4eb638&&_0x27c9b2(_0x1f1586,P(_0x4b533b,_0x3128c7,_0x2808af),V(_0x294a9c[_0x53afa7],_0x3128c7,_0x2808af));}function _0x27c9b2(_0x3ebc00,_0x230e9f,_0x2a83e9){const _0x1043f9=_0x4d3f19['userId'],_0x101b22='revision:'+_0xd264da+':'+_0x1043f9+':'+_0x51ccdc++,_0xc68ad9=_0x2808af['createRange'](_0x230e9f,_0x2a83e9);_0x3128c7['markers']['set'](_0x101b22,_0xc68ad9),null!==_0x1043f9&&_0x12971e['add'](_0x1043f9);}}['_getVidAttributeName'](_0x1b6460){switch(_0x1b6460['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x51ada9,_0x4c27f7){_0x51ada9['baseVersion']=null;for(const _0x1eb91a in _0x51ada9){const _0x5b6af8=_0x51ada9[_0x1eb91a];if(_0x5b6af8 instanceof _0x3bc5f2){const _0x4bd097=_0x4c27f7['get'](_0x5b6af8['root']['rootName']);_0x51ada9[_0x1eb91a]=this['_fixPosition'](_0x5b6af8,_0x4bd097);}if(_0x5b6af8 instanceof _0x207b33){const _0x4774c2=_0x4c27f7['get'](_0x5b6af8['root']['rootName']);_0x51ada9[_0x1eb91a]=this['_fixRange'](_0x5b6af8,_0x4774c2);}'root'===_0x1eb91a&&(_0x51ada9['root']=_0x4c27f7['get'](_0x51ada9['root']['rootName']));}}['_fixRange'](_0x4b11e1,_0x19fd33){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4b11e1['start'],_0x19fd33),this['_fixPosition'](_0x4b11e1['end'],_0x19fd33));}['_fixPosition'](_0x135036,_0x3d3b3b){return this['editor']['model']['createPositionFromPath'](_0x3d3b3b,_0x135036['path'],_0x135036['stickiness']);}['_handleInsertOperation'](_0x171fa8){const _0x239f77=this['_idsRoots']['get'](_0x171fa8['position']['root']['rootName']),_0x1266d1=this['_fixPosition'](_0x171fa8['position'],_0x239f77),_0x33c841=null===_0x171fa8['_authorId']?null:_0x171fa8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xbc3049=_0x1266d1['parent'],_0x2a76ba=this['_revisionId'],_0x19475e=[];for(const _0x17ff44 of _0x171fa8['nodes'])if(_0x17ff44['is']('element'))_0x19475e['push'](this['_makeIdsRoot'](_0x17ff44));else{for(let _0x321b46=0x0;_0x321b46<_0x17ff44['offsetSize'];_0x321b46++)_0x19475e['push'](new _0x5acc5d('$text',{'vid':this['_revisionId']++}));}const _0x340e9b=this['_revisionId'];for(let _0x4b41df=_0x2a76ba;_0x4b41df<_0x340e9b;_0x4b41df++)this['_touched']['set'](_0x4b41df,{'userId':_0x33c841});_0xbc3049['_insertChild'](_0x1266d1['offset'],_0x19475e);}['_handleMoveOperation'](_0x2ab849){(_0x2ab849=this['_cloneOperation'](_0x2ab849,this['_idsRoots']))['_execute']();const _0x381fbe=null===_0x2ab849['_authorId']?null:_0x2ab849['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51e5e5=_0x2ab849['getMovedRangeStart'](),_0x4ff74a=_0x51e5e5['parent'],_0x1322aa=_0x51e5e5['offset'];!function _0x5e70d4(_0x561735,_0x1caf4,_0x28ee61,_0xf562){for(let _0x39c0e9=_0x28ee61;_0x39c0e9<_0xf562;_0x39c0e9++){const _0x54f888=_0x1caf4['getChild'](_0x39c0e9);_0x54f888['is']('element','$text')?_0x561735['set'](_0x54f888['getAttribute']('vid'),{'userId':_0x381fbe}):(_0x561735['set'](_0x54f888['getAttribute']('vid_start'),{'userId':_0x381fbe}),_0x5e70d4(_0x561735,_0x54f888,0x0,_0x54f888['childCount']),_0x561735['set'](_0x54f888['getAttribute']('vid_end'),{'userId':_0x381fbe}));}}(this['_touched'],_0x4ff74a,_0x1322aa,_0x1322aa+_0x2ab849['howMany']);}['_handleMergeOperation'](_0x575815){const _0x10f56a=null===(_0x575815=this['_cloneOperation'](_0x575815,this['_idsRoots']))['_authorId']?null:_0x575815['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4301f5=_0x575815['targetPosition']['parent'],_0x40ac24=_0x575815['sourcePosition']['parent'],_0x199419=_0x4301f5['getAttribute']('vid_end'),_0x4f10ce=_0x40ac24['getAttribute']('vid_start');_0x4301f5['_setAttribute']('vid_end',_0x40ac24['getAttribute']('vid_end')),_0x40ac24['_setAttribute']('vid_end',_0x199419),this['_touched']['set'](_0x4f10ce,{'userId':_0x10f56a}),this['_touched']['set'](_0x199419,{'userId':_0x10f56a}),_0x575815['_execute']();}['_handleSplitOperation'](_0x55e8fa){const _0x28bcab=null===(_0x55e8fa=this['_cloneOperation'](_0x55e8fa,this['_idsRoots']))['_authorId']?null:_0x55e8fa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47849b=_0x55e8fa['graveyardPosition'],_0x547928=_0x55e8fa['splitPosition']['parent'];_0x55e8fa['_execute']();const _0xeb5d6c=_0x547928['getAttribute']('vid_end'),_0x41e8f1=_0x55e8fa['insertionPosition']['nodeAfter'];if(_0x47849b){const _0x2e2b4e=_0x41e8f1['getAttribute']('vid_end'),_0x436406=_0x547928['getAttribute']('vid_end');_0x547928['_setAttribute']('vid_end',_0x2e2b4e),_0x41e8f1['_setAttribute']('vid_end',_0x436406),this['_touched']['set'](_0x547928['getAttribute']('vid_end'),{'userId':_0x28bcab}),this['_touched']['set'](_0x41e8f1['getAttribute']('vid_start'),{'userId':_0x28bcab});}else{const _0x3f3a6c=this['_revisionId']++,_0x87a0aa=this['_revisionId']++;_0x547928['_setAttribute']('vid_end',_0x3f3a6c),_0x41e8f1['_setAttribute']('vid_start',_0x87a0aa),_0x41e8f1['_setAttribute']('vid_end',_0xeb5d6c),this['_touched']['set'](_0x3f3a6c,{'userId':_0x28bcab}),this['_touched']['set'](_0x87a0aa,{'userId':_0x28bcab});}}['_handleMarkerOperation'](_0x2813c1){if(!_0x2813c1['affectsData'])return;const _0x212b24=(_0x2813c1=this['_cloneOperation'](_0x2813c1,this['_diffRoots']))['oldRange']?_0x2813c1['oldRange']['root']:null,_0x57d453=_0x2813c1['newRange']?_0x2813c1['newRange']['root']:null;_0x212b24&&this['_markers']['delete'](_0x2813c1['name']),_0x57d453&&this['_markers']['set'](_0x2813c1['name'],_0x2813c1['newRange']['clone']());const _0xec6fb1=null===_0x2813c1['_authorId']?null:_0x2813c1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb6b765=_0x2813c1['name'];if(!this['_touchedMarkers']['has'](_0xb6b765))return void this['_touchedMarkers']['set'](_0xb6b765,{'range':_0x2813c1['oldRange'],'userId':_0xec6fb1});const _0x3444d9=this['_touchedMarkers']['get'](_0xb6b765),_0x525db7=_0x3444d9['range'],_0x28fee7=_0x2813c1['newRange'];null==_0x525db7&&null==_0x28fee7||_0x525db7&&_0x28fee7&&_0x525db7['isEqual'](_0x28fee7)?this['_touchedMarkers']['delete'](_0x2813c1['name']):_0x3444d9['userId']=_0xec6fb1;}['_handleRootOperation'](_0x145073,_0x5563a0){this['_diffRoots']['has'](_0x145073['rootName'])?this['_diffRoots']['get'](_0x145073['rootName'])['_isAttached']=_0x145073['isAdd']:(this['_diffRoots']['set'](_0x145073['rootName'],N(_0x145073['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x145073['rootName'],{}),_0x5563a0&&this['_idsRoots']['set'](_0x145073['rootName'],N(_0x145073['rootName'],!0x0)));const _0x4480ea=null===_0x145073['_authorId']?null:_0x145073['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x441d20=this['_touchedRoots']['get'](_0x145073['rootName']);_0x441d20&&_0x441d20['userId']===_0x4480ea?this['_touchedRoots']['delete'](_0x145073['rootName']):this['_touchedRoots']['set'](_0x145073['rootName'],{'userId':_0x4480ea,'isAttached':_0x145073['isAdd']});}['_handleRootAttributeOperation'](_0x407d04){const _0x1c1844=this['_diffRootsAttributes']['get'](_0x407d04['root']['rootName']);null===_0x407d04['newValue']?delete _0x1c1844[_0x407d04['key']]:_0x1c1844[_0x407d04['key']]=_0x407d04['newValue'];}}function x(_0x3f2fed){const _0x1bd6b2=N(_0x3f2fed['rootName'],_0x3f2fed['isAttached']());for(const _0xf42660 of _0x3f2fed['getChildren']()){const _0x5dac12=_0xf42660['_clone'](!0x0);_0x1bd6b2['_appendChild'](_0x5dac12);}return _0x1bd6b2;}function N(_0x6ab659,_0x2e24c4=!0x0){const _0x1dbfb4=new _0x3fb9bd();return _0x1dbfb4['rootName']=_0x6ab659,_0x1dbfb4['_isAttached']=_0x2e24c4,_0x1dbfb4['isAttached']=()=>_0x1dbfb4['_isAttached'],_0x1dbfb4;}function P(_0x46d259,_0x599655,_0x337442){const _0x38dfbf='elementEnd'==_0x46d259['type']?_0x337442['createPositionAt'](_0x46d259['item'],'end'):_0x337442['createPositionBefore'](_0x46d259['item']);return _0x337442['createPositionFromPath'](_0x599655,_0x38dfbf['path'],_0x38dfbf['stickiness']);}function V(_0x30d735,_0x3d6748,_0x37e0b6){const _0x9f03ff='elementStart'==_0x30d735['type']?_0x37e0b6['createPositionAt'](_0x30d735['item'],0x0):_0x37e0b6['createPositionAfter'](_0x30d735['item']);return _0x37e0b6['createPositionFromPath'](_0x3d6748,_0x9f03ff['path'],_0x9f03ff['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f19c2(_0x524cb0){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x48f1dc,_0x1e595b){super(_0x48f1dc),this['focusTracker']=new _0x3feea3(),this['keystrokes']=new _0x5ec85b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1e595b),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'](),_0x40d9b0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1c9540=_0x38de3b=>_0x38de3b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1c9540),this['keystrokes']['set']('arrowleft',_0x1c9540),this['keystrokes']['set']('arrowup',_0x1c9540),this['keystrokes']['set']('arrowdown',_0x1c9540);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4e4d39){this['revisionNameInputView']['fieldView']['element']['value']=_0x4e4d39['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x32d588){const _0x3ae503=new et(this['locale'],ti),_0x219024=_0x3ae503['fieldView'];_0x219024['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x37037e=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x32d588&&(_0x37037e+='\x20('+m(this['locale'],'optional')+')'),(_0x3ae503['label']=_0x37037e,_0x219024['on']('input',()=>{this['revisionNameInputValue']=_0x219024['element']['value']['trim']();}),_0x3ae503);}}class l extends _0x23b9b4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x5337fd=this['editor'],_0x1f7b43=_0x5337fd['plugins']['get']('RevisionTracker');_0x5337fd['ui']['componentFactory']['add']('revisionHistory',_0x115936=>{const _0x460194=_0x10fce4(_0x115936),_0x536941=_0x460194['panelView']['children'],_0x1efa49=new _0x569f00(_0x115936),_0x17b5c2=new _0x10db92(_0x115936),_0x36d29b=new _0x4e77f1(_0x115936),_0x2ea6d3=new _0x10db92(_0x115936),_0x18e300=new _0x4e77f1(_0x115936);return _0x460194['bind']('isEnabled')['to'](_0x1f7b43,'isReady',_0x1f7b43,'isEnabled',_0x5337fd,'isReadOnly',(_0x2251ae,_0x4e9211,_0x5712cf)=>_0x2251ae&&_0x4e9211&&!_0x5712cf),_0x460194['buttonView']['set']({'icon':_0x433702,'label':m(_0x115936,'Revision\x20history'),'tooltip':!0x0}),_0x36d29b['set']({'label':m(_0x115936,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x36d29b['bind']('isEnabled')['to'](_0x1f7b43,'isReady',_0x1f7b43,'isEnabled',_0x5337fd,'isReadOnly',(_0x5af5d0,_0x526ef4,_0x2712e7)=>_0x5af5d0&&_0x526ef4&&!_0x2712e7),_0x36d29b['on']('execute',()=>this['_showDialog']()),_0x18e300['set']({'label':m(_0x115936,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x18e300['bind']('isEnabled')['to'](_0x1f7b43,'isReady',_0x5337fd,'isReadOnly',(_0x203a5c,_0x32e935)=>_0x203a5c&&!_0x32e935),_0x18e300['on']('execute',()=>{_0x5337fd['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x460194['isOpen']=!0x1,_0x5337fd['editing']['view']['focus']();}),_0x17b5c2['children']['add'](_0x36d29b),_0x2ea6d3['children']['add'](_0x18e300),_0x1efa49['role']='menu',_0x1efa49['items']['addMany']([_0x17b5c2,_0x2ea6d3]),_0x536941['add'](_0x1efa49),_0x460194;}),_0x5337fd['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3bbb13=this['editor'],_0x19c182=_0x3bbb13['locale'],_0x2bb5ed=new _0x5e691f(_0x19c182),_0x9b5d15=new _0x5b33bc(_0x19c182);_0x2bb5ed['buttonView']['set']({'icon':_0x433702,'label':m(_0x19c182,'Revision\x20history')});const _0x52f04a=new _0x1b911a(_0x19c182,_0x2bb5ed),_0x17870c=new _0x42bcb6(_0x19c182);_0x17870c['set']({'label':m(_0x19c182,'Save\x20current\x20revision')}),_0x17870c['delegate']('execute')['to'](_0x2bb5ed),_0x17870c['on']('execute',()=>{this['_showDialog']();}),_0x52f04a['children']['add'](_0x17870c),_0x9b5d15['items']['add'](_0x52f04a);const _0xd394d1=new _0x1b911a(_0x19c182,_0x2bb5ed),_0x14e129=new _0x42bcb6(_0x19c182);return _0x14e129['set']({'label':m(_0x19c182,'Open\x20revision\x20history')}),_0x14e129['delegate']('execute')['to'](_0x2bb5ed),_0x14e129['on']('execute',()=>{_0x3bbb13['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xd394d1['children']['add'](_0x14e129),_0x9b5d15['items']['add'](_0xd394d1),_0x2bb5ed['panelView']['children']['add'](_0x9b5d15),_0x2bb5ed;}['_showDialog'](){const _0x94f95b=this['editor'],_0x376551=_0x94f95b['locale'],_0x29ff2c=_0x94f95b['plugins']['get']('Dialog'),_0x3378e6=_0x94f95b['plugins']['get']('RevisionTracker');function _0x1f3620(_0x3d509e){_0x94f95b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3d509e['revisionName']?_0x3d509e['revisionNameInputView']['errorText']=m(_0x376551,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x94f95b['plugins']['get'](h)['saveRevision']({'name':_0x3d509e['revisionName']}),_0x29ff2c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1f3620(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x29ff2c['show']({'id':'revisionSave','title':m(_0x376551,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x94f95b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x29ff2c['hide']()},{'label':m(_0x94f95b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x167aa4){_0x167aa4['bind']('isEnabled')['to'](_0x3378e6,'isReady',_0x3378e6,'isEnabled',_0x94f95b,'isReadOnly',(_0x229262,_0x563807,_0x2e4300)=>_0x229262&&_0x563807&&!_0x2e4300);},'onExecute':()=>_0x1f3620(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x94026=this['editor'],_0x10ce7f=_0x94026['locale'];this['_saveRevisionFormView']=new me(_0x10ce7f,_0x94026['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x524cb0{['changeId'];['_model'];constructor(_0x3869bc,_0x1b1c45){super(_0x3869bc),this['_model']=_0x1b1c45,this['changeId']=_0x1b1c45['id'];const _0x5b3bc4=this['bindTemplate'],_0x2b9891=m(_0x3869bc,_0x1b1c45['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1b1c45['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1b1c45['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5b3bc4['to']('type',_0x5abd6b=>'ck-revision-change__'+_0x5abd6b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2b9891}]},{'text':'\x20'+_0x1b1c45['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1b6ed6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x215e87){super(),this['id']=_0x215e87['id']||_0x3191d3(),this['author']=_0x215e87['author'],this['type']=_0x215e87['type'],this['data']=_0x215e87['data']||{},this['rootName']=_0x215e87['rootName'],this['set']('createdAt',_0x215e87['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(_0x2135bc,_0x4055f8){this['newRevisionId']=_0x2135bc,this['oldRevisionId']=_0x4055f8,this['changes']=new _0x1dcfeb();}['_setChanges'](_0x5acd24){for(const _0x89da0a of _0x5acd24)this['changes']['add'](_0x89da0a);}}class u extends _0x23b9b4{['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[_0x1f5a70,_0x46c628,S,$];}constructor(_0x661005){super(_0x661005),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',(_0x5e03b1,_0xaf179d,_0x1e9254)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x428b80=>{for(const _0x2fa999 of this['editor']['editing']['view']['document']['roots'])_0x1e9254?_0x428b80['removeClass']('ck-editor__editable__overlay',_0x2fa999):_0x428b80['addClass']('ck-editor__editable__overlay',_0x2fa999);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x546902=>null!==_0x546902),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x52cb08,_0x50d1c0,_0x543002)=>_0x52cb08&&_0x543002?_0x50d1c0['changes']['getIndex'](_0x543002):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3c89a5,_0x59dee6)=>_0x3c89a5?_0x59dee6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x46c628);}['init'](){const _0x2a6931=this['editor'],_0x686b33=new rt(_0x2a6931,{'direction':'backward'}),_0x7eb418=new rt(_0x2a6931,{'direction':'forward'});(_0x2a6931['commands']['add']('showPreviousChange',_0x686b33),_0x2a6931['commands']['add']('showNextChange',_0x7eb418),_0x2a6931['commands']['add']('restoreRevision',new nt(_0x2a6931)),this['on']('change:numberOfChanges',()=>{_0x686b33['refresh'](),_0x7eb418['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2a6931['enableReadOnlyMode']('revision-viewer'),_0x2a6931['plugins']['has']('WidgetToolbarRepository'))&&_0x2a6931['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1fc361){return await this['_utils']['loadRevisionData'](_0x1fc361,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1fc361);}async['getRevisionRootsAttributes'](_0xac4179){return await this['_utils']['loadRevisionData'](_0xac4179,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xac4179);}async['compare'](_0xffe663,_0xf4135d,_0x4a6c92=!0x1){if(!this['isEnabled'])return;const _0x215f99=this['diff'],_0x3e599f=this['repository'],_0x1f4c75='string'==typeof _0xffe663?_0x3e599f['getRevision'](_0xffe663):_0xffe663,_0x4919b8='string'==typeof _0xf4135d?_0x3e599f['getRevision'](_0xf4135d):_0xf4135d,_0x9dcb23=_0x1f4c75['id'],_0x22bccf=_0x4919b8?_0x4919b8['id']:null;if(!_0x4a6c92&&this['diff']&&this['diff']['newRevisionId']===_0x9dcb23&&this['diff']['oldRevisionId']===_0x22bccf)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x9dcb23,_0x22bccf);const _0x50c8b1=this['_getRevisionsRange'](_0x1f4c75,_0x4919b8,!0x0)['map'](_0x318126=>this['_utils']['loadRevisionData'](_0x318126,this['adapter']));return _0x50c8b1['push'](new Promise(_0x234ae4=>{setTimeout(_0x234ae4,0x14);})),Promise['all'](_0x50c8b1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x48e6bb=this['_getDiff'](_0x9dcb23,_0x22bccf);for(const _0x4123ab of _0x48e6bb['changes'])this['_changeIdToChange']['set'](_0x4123ab['id'],_0x4123ab);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1442ab=>{for(const _0x567edd of this['editor']['model']['document']['getRootNames']())_0x1442ab['detachRoot'](_0x567edd);for(const _0x2a5e13 of Object['keys'](_0x48e6bb['model'])){const _0x37fd60=_0x1442ab['addRoot'](_0x2a5e13);for(const _0x495870 of Object['keys'](_0x48e6bb['attributes'][_0x2a5e13]))_0x1442ab['setAttribute'](_0x495870,_0x48e6bb['attributes'][_0x2a5e13][_0x495870],_0x37fd60);_0x1442ab['insert'](_0x48e6bb['model'][_0x2a5e13],_0x37fd60,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x48e6bb['changes'])),this['isReady']=!0x0;})['catch'](_0x5ee5c0=>{console['error'](_0x5ee5c0),this['_cleanUp'](),_0x215f99&&(this['diff']=_0x215f99),this['isReady']=!0x0;});}['addRevisionData'](_0x1a1c69,_0x5cfa58){const _0x1aaad8=this['repository']['createRevision'](_0x1a1c69);return _0x1aaad8['on']('_update',(_0x3dce96,_0x5ba8f3,_0x4c0d35)=>_0x5cfa58(_0x5ba8f3,_0x4c0d35,_0x1aaad8)),this['repository']['addRevision'](_0x1aaad8),_0x1aaad8;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5845ec=>{for(const _0x318015 of this['editor']['model']['document']['getRootNames']())_0x5845ec['detachRoot'](_0x318015);});}['_sortAndFilterDiffChanges'](_0x5715e0){const _0x427ad9=[],_0x509a0e=new Map();for(const _0xeb4f33 of this['editor']['model']['document']['getRootNames']()){const _0x3f9636=this['editor']['editing']['view']['getDomRoot'](_0xeb4f33);if(!_0x3f9636)continue;const _0x2566e6=_0x3f9636['getClientRects']()['item'](0x0);_0x2566e6&&(_0x427ad9['push'](_0xeb4f33),_0x509a0e['set'](_0xeb4f33,_0x2566e6));}return _0x427ad9['sort']((_0x214d05,_0x57fd7c)=>{const _0x2c1e3b=_0x509a0e['get'](_0x214d05),_0x4a6c7c=_0x509a0e['get'](_0x57fd7c);return _0x2c1e3b['y']-_0x4a6c7c['y']||_0x2c1e3b['x']-_0x4a6c7c['x'];}),(_0x5715e0=_0x5715e0['filter'](_0x82804c=>_0x427ad9['includes'](_0x82804c['rootName'])))['sort']((_0x174fd1,_0x4260ca)=>_0x427ad9['indexOf'](_0x174fd1['rootName'])-_0x427ad9['indexOf'](_0x4260ca['rootName'])),_0x5715e0;}['_makeTape'](_0x4c45b9){const _0x6a585b=Array['from'](_0x4c45b9['markers'])['filter'](([_0x48141f,_0x4407cf])=>_0x48141f['startsWith']('revision:')&&!_0x4407cf['isCollapsed']),_0x284d12=Array['from'](this['editor']['model']['createRangeIn'](_0x4c45b9)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x6a585b['length'])for(const _0x236036 of _0x284d12){const [_0x46af32,_0x106c1c]=_0x6a585b[0x0],[,_0x43912c,_0x28c36e]=_0x46af32['split'](':');if(_0x106c1c['end']['isEqual'](_0x236036['nextPosition'])&&_0x6a585b['shift'](),(_0x236036['previousPosition']['isEqual'](_0x106c1c['start'])||_0x236036['previousPosition']['isAfter'](_0x106c1c['start']))&&('insertion'==_0x43912c?_0x236036['isAdded']={'userId':_0x28c36e}:'deletion'==_0x43912c&&(_0x236036['isRemoved']={'userId':_0x28c36e})),0x0==_0x6a585b['length'])break;}return _0x284d12;}['_refreshStartEndIndex'](_0xf72f09){const _0x4a0838=new Map();for(let _0x5940e3=0x0;_0x5940e3<_0xf72f09['length'];_0x5940e3++)'text'===_0xf72f09[_0x5940e3]['type']?(_0xf72f09[_0x5940e3]['item']['startIndex']=_0x5940e3,_0xf72f09[_0x5940e3]['item']['endIndex']=_0x5940e3):('elementStart'===_0xf72f09[_0x5940e3]['type']?_0xf72f09[_0x5940e3]['item']['startIndex']=_0x5940e3:'elementEnd'===_0xf72f09[_0x5940e3]['type']&&(_0xf72f09[_0x5940e3]['item']['endIndex']=_0x5940e3),_0x4a0838['set'](_0xf72f09[_0x5940e3]['id'],_0x5940e3));for(const _0x4a3ae4 of _0x4a0838['values']())'elementStart'===_0xf72f09[_0x4a3ae4]['type']?_0xf72f09[_0x4a3ae4]['item']['endIndex']=_0x4a0838['get'](_0xf72f09[_0x4a3ae4]['pairId']):'elementEnd'===_0xf72f09[_0x4a3ae4]['type']&&(_0xf72f09[_0x4a3ae4]['item']['startIndex']=_0x4a0838['get'](_0xf72f09[_0x4a3ae4]['pairId']));}['_processTape'](_0x30f16f){for(let _0x502610=0x0;_0x502610<_0x30f16f['length'];_0x502610++){if('elementStart'===_0x30f16f[_0x502610]['type'])_0x30f16f[_0x502610]['item']['startIndex']=_0x502610;else{if('elementEnd'===_0x30f16f[_0x502610]['type']){_0x30f16f[_0x502610]['item']['endIndex']=_0x502610;const _0x38df4c=_0x30f16f[_0x502610]['item']['startIndex'];_0x30f16f[_0x38df4c]['pairId']=_0x30f16f[_0x502610]['id'],_0x30f16f[_0x502610]['pairId']=_0x30f16f[_0x38df4c]['id'];}else _0x30f16f[_0x502610]['item']['startIndex']=_0x502610,_0x30f16f[_0x502610]['item']['endIndex']=_0x502610,_0x30f16f[_0x502610]['pairId']=null;}_0x30f16f[_0x502610]['markersStart']||(_0x30f16f[_0x502610]['markersStart']=[],_0x30f16f[_0x502610]['markersEnd']=[]);}}['_markInsertions'](_0x830314,_0x160bea){const _0x4115cf=_0x830314['filter'](_0x583563=>!_0x583563['isAdded']);for(let _0x432e7d=0x0;_0x432e7d<_0x160bea['length'];_0x432e7d++)_0x160bea[_0x432e7d]['isAdded']&&(_0x4115cf[_0x432e7d]['isAdded']=_0x160bea[_0x432e7d]['isAdded']);}['_getDiff'](_0x5e148d,_0x4d80cc=null){const _0x550280=this['repository']['getRevision'](_0x5e148d),_0x19a827=_0x4d80cc?this['repository']['getRevision'](_0x4d80cc):null,_0xb63321=this['_getRevisionsRange'](_0x550280,_0x19a827),_0x5b20a0=_0xb63321[_0xb63321['length']-0x1],_0x5d7ca3=new Map(),_0x22275c={'model':{},'attributes':{},'changes':[]},_0x44ebc0=new Set(),_0x38bef8=new Map();for(let _0x4656a6=_0xb63321['length']-0x1;_0x4656a6>=0x0;_0x4656a6--){const _0x2c2707=_0xb63321[_0x4656a6];for(const _0x413c0d of Object['keys'](_0x2c2707['diffData']))if(_0x2c2707['diffData'][_0x413c0d]['attachChange']){const _0x36cfca=_0x2c2707['diffData'][_0x413c0d]['attachChange'];_0x36cfca['isAttached']?(_0x44ebc0['add'](_0x413c0d),_0x38bef8['has'](_0x413c0d)&&_0x38bef8['get'](_0x413c0d)['userId']==_0x36cfca['userId']?_0x38bef8['delete'](_0x413c0d):_0x38bef8['set'](_0x413c0d,_0x36cfca)):_0x38bef8['has'](_0x413c0d)?(_0x44ebc0['delete'](_0x413c0d),_0x38bef8['delete'](_0x413c0d)):(_0x44ebc0['add'](_0x413c0d),_0x38bef8['set'](_0x413c0d,_0x36cfca));}else _0x44ebc0['add'](_0x413c0d);}for(const _0x534c34 of _0x44ebc0){const _0x51edf8=_0x38bef8['has'](_0x534c34)&&!_0x38bef8['get'](_0x534c34)['isAttached'];let _0x3c717b=_0x51edf8?_0xb63321['length']-0x1:0x0;const _0x53ae5f=_0x51edf8?-0x1:0x1;for(;_0xb63321[_0x3c717b];){const _0x1d08e4=_0xb63321[_0x3c717b];if(_0x1d08e4['diffData'][_0x534c34]){const _0x1ff1c9=_0x51edf8?_0x1d08e4['diffData'][_0x534c34]['attributesBefore']:_0x1d08e4['diffData'][_0x534c34]['attributesAfter'];_0x22275c['attributes'][_0x534c34]=_0x1ff1c9?_0x204d12(_0x1ff1c9):{};break;}_0x3c717b+=_0x53ae5f;}}for(const _0x5438e4 of _0xb63321){_0x5438e4['model']={};for(const _0x522fda of _0x5438e4['authors'])_0x5d7ca3['set'](_0x522fda['id'],_0x522fda);for(const _0x110e07 of _0x44ebc0){const _0x729c4c=_0x5438e4['diffData'][_0x110e07]?_0x5438e4['diffData'][_0x110e07]['insertions']:'[]',_0xf27406=_0x5438e4['diffData'][_0x110e07]?_0x5438e4['diffData'][_0x110e07]['deletions']:'[]';_0x5438e4['model'][_0x110e07]={'insertions':this['_utils']['_makeModelFromViewString'](_0x729c4c),'deletions':this['_utils']['_makeModelFromViewString'](_0xf27406)};}}for(const _0x5b981f of _0x44ebc0){let _0x248d08=null,_0x88d3aa=0x0;const _0x1b5b10=new Map(Array['from'](_0x550280['model'][_0x5b981f]['insertions']['markers'])['filter'](([_0x52864a])=>!_0x52864a['startsWith']('revision:')));let _0x297222=0x0;for(const _0x1f2bff of _0xb63321){const _0x270f5f=this['_makeTape'](_0x1f2bff['model'][_0x5b981f]['insertions']);_0x1f2bff==_0x550280?(_0x248d08=_0x270f5f,_0x88d3aa=_0x248d08['length'],_0x248d08['forEach'](_0x280608=>{_0x280608['id']=_0x297222++;}),this['_processTape'](_0x248d08)):this['_markInsertions'](_0x248d08,_0x270f5f);const _0x536144=_0x248d08['filter'](_0x5f1955=>!_0x5f1955['isAdded'])['map'](_0x511662=>_0x511662['id']);let _0x34a252=0x0;const _0xc4f40c=this['_makeTape'](_0x1f2bff['model'][_0x5b981f]['deletions']);_0xc4f40c['forEach'](_0x32cc36=>{_0x32cc36['isRemoved']?_0x32cc36['id']=_0x88d3aa++:_0x32cc36['id']=_0x536144[_0x34a252++];}),this['_processTape'](_0xc4f40c),this['_setDistance'](_0x248d08,'isAdded'),this['_setDistance'](_0xc4f40c,'isRemoved'),_0x1f2bff==_0x550280&&this['_markMarkers'](_0x248d08,_0x1b5b10),_0x248d08=this['_joinTapes'](_0x248d08,_0xc4f40c),this['_refreshStartEndIndex'](_0x248d08),this['_setDistance'](_0x248d08,'isRemoved');}_0x248d08=_0x248d08['filter'](_0x36d4e9=>!(_0x36d4e9['isAdded']&&_0x36d4e9['isRemoved']));const _0x3c12d3=new Map(_0x5b20a0['model'][_0x5b981f]['deletions']['markers']),_0x55e191=new Set(_0x1b5b10['keys']());for(const _0x4f2762 of _0x3c12d3['keys']())_0x55e191['delete'](_0x4f2762);this['_markSuggestions'](_0x248d08,_0x55e191),this['_fixObsoleteTags'](_0x248d08),_0x248d08=this['_removeMissingPairs'](_0x248d08),_0x248d08=this['_markMismatchedRemovedTags'](_0x248d08),_0x248d08=this['_removeUnsupportedChanges'](_0x248d08);const {root:_0x44438e,changes:_0x203a5b}=this['_makeModelFromTape'](_0x248d08,_0x5d7ca3,_0x5b981f);_0x22275c['model'][_0x5b981f]=_0x44438e;const _0x5d0a7b=_0x38bef8['get'](_0x5b981f);if(_0x5d0a7b){const _0x3d1d04=_0x5d7ca3['get'](_0x5d0a7b['userId']),_0x131839=new G({'author':_0x3d1d04,'type':_0x5d0a7b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5b981f});_0x203a5b['unshift'](_0x131839),_0x22275c['attributes'][_0x5b981f]['revisionHistoryAttachChange']=_0x131839['id'];}_0x22275c['changes']=_0x22275c['changes']['concat'](_0x203a5b);}return _0x22275c;}['_markMarkers'](_0x191051,_0x3b5ec3){for(let _0x3808bd=0x0;_0x3808bd<_0x191051['length'];_0x3808bd++)for(const [_0x68ae7f,_0x16da5d]of _0x3b5ec3)!_0x16da5d['isCollapsed']&&_0x16da5d['start']['isEqual'](_0x191051[_0x3808bd]['previousPosition'])&&_0x191051[_0x3808bd]['markersStart']['push'](_0x68ae7f),_0x16da5d['end']['isEqual'](_0x191051[_0x3808bd]['nextPosition'])&&_0x191051[_0x3808bd]['markersEnd']['push'](_0x68ae7f);}['_joinTapes'](_0x3cdaaa,_0x53c221){let _0x182e9d=[],_0x5af2bd=0x0,_0x1e007a=0x0;for(;_0x5af2bd<_0x3cdaaa['length']||_0x1e007a<_0x53c221['length'];){const _0x12f031=_0x3cdaaa[_0x5af2bd]||{},_0x5ad78d=_0x53c221[_0x1e007a]||{};if(_0x12f031['id']==_0x5ad78d['id'])_0x5af2bd++,_0x1e007a++,_0x182e9d['push'](_0x12f031);else{if(_0x5ad78d['isRemoved']&&_0x12f031['isAdded']){const {commonTape:_0x1a4a45,iEnd:_0x38ee46,jEnd:_0x12a815}=this['_threeWayMerge'](_0x3cdaaa,_0x5af2bd,_0x53c221,_0x1e007a);_0x182e9d=_0x182e9d['concat'](_0x1a4a45),_0x5af2bd=_0x38ee46,_0x1e007a=_0x12a815;}else _0x5ad78d['isRemoved']?(_0x1e007a++,_0x182e9d['push'](_0x5ad78d)):(_0x5af2bd++,_0x182e9d['push'](_0x12f031));}}return _0x182e9d;}['_markSuggestions'](_0x4f8cc5,_0xa5bd19){const _0x2c600b=[];for(let _0xa806f1=0x0;_0xa806f1<_0x4f8cc5['length'];_0xa806f1++){for(let _0x282084=0x0;_0x282084<_0x4f8cc5[_0xa806f1]['markersStart']['length'];_0x282084++){const _0x28ad5c=_0x4f8cc5[_0xa806f1]['markersStart'][_0x282084];if(!_0xa5bd19['has'](_0x28ad5c))continue;const {group:_0x35cd91,type:_0x4fc07b,authorId:_0x1960d3}=_0x225650(_0x28ad5c);'revision-suggestion'!=_0x35cd91||'insertion'!=_0x4fc07b&&'deletion'!=_0x4fc07b||(_0x2c600b['unshift']({'type':_0x4fc07b,'name':_0x28ad5c,'userId':_0x1960d3}),_0x4f8cc5[_0xa806f1]['markersStart']['splice'](_0x282084,0x1),_0x282084--);}_0x4374ce(_0x4f8cc5[_0xa806f1]);for(let _0x343b53=0x0;_0x343b53<_0x4f8cc5[_0xa806f1]['markersEnd']['length'];_0x343b53++){const _0x52f73c=_0x4f8cc5[_0xa806f1]['markersEnd'][_0x343b53];if(!_0xa5bd19['has'](_0x52f73c))continue;const {group:_0x217c0c,type:_0xef0e38}=_0x225650(_0x52f73c);if('revision-suggestion'!=_0x217c0c||'insertion'!=_0xef0e38&&'deletion'!=_0xef0e38)continue;_0x4f8cc5[_0xa806f1]['markersEnd']['splice'](_0x343b53,0x1),_0x343b53--;const _0x596a61=_0x2c600b['findIndex'](_0x3fd288=>_0x3fd288['name']==_0x52f73c);_0x596a61>-0x1&&_0x2c600b['splice'](_0x596a61,0x1);}}function _0x225650(_0x5709e6){const _0x12ad99=_0x5709e6['split'](':');return{'group':_0x12ad99[0x0],'type':_0x12ad99[0x1],'subType':_0x12ad99['length']>=0x5?_0x12ad99[0x2]:null,'id':_0x12ad99['length']<0x5?_0x12ad99[0x2]:_0x12ad99[0x3],'authorId':_0x12ad99['length']<0x5?_0x12ad99[0x3]:_0x12ad99[0x4],'markerCount':0x6==_0x12ad99['length']?_0x12ad99[0x5]:null};}function _0x4374ce(_0xdb6620){for(let _0x148c0a=0x0;_0x148c0a<_0x2c600b['length'];_0x148c0a++){if(_0xdb6620['isAdded']&&'insertion'==_0x2c600b[_0x148c0a]['type']&&_0xdb6620['isAdded']['userId']==_0x2c600b[_0x148c0a]['userId'])return _0xdb6620['isAddSuggestion']=_0x2c600b[_0x148c0a],void delete _0xdb6620['isAdded'];if(!_0xdb6620['isAdded']&&!_0xdb6620['isRemoved']&&'deletion'==_0x2c600b[_0x148c0a]['type'])return void(_0xdb6620['isRemoveSuggestion']=_0x2c600b[_0x148c0a]);}}}['_setDistance'](_0x4f7387,_0x412724){let _0x4354ac=0x0,_0x57b629=!0x1;const _0x435ed2=new Map();for(const _0x4b572b of _0x4f7387)_0x4b572b[_0x412724]?_0x57b629&&(_0x4354ac++,_0x57b629=!0x1):(_0x4354ac++,_0x57b629=!0x0),_0x435ed2['set'](_0x4b572b['id'],_0x4354ac);for(let _0x46de09=0x0;_0x46de09<_0x4f7387['length'];_0x46de09++){if('isRemoved'==_0x412724&&_0x4f7387[_0x46de09]['isAdded']||'isAdded'==_0x412724&&_0x4f7387[_0x46de09]['isRemoved'])continue;if('text'==_0x4f7387[_0x46de09]['type']){_0x4f7387[_0x46de09]['distance']=0x0;continue;}const _0x24d26c=_0x435ed2['get'](_0x4f7387[_0x46de09]['pairId']),_0x3469f6=_0x435ed2['get'](_0x4f7387[_0x46de09]['id']);_0x4f7387[_0x46de09]['distance']=_0x24d26c-_0x3469f6;}}['_getRevisionsRange'](_0x2bbe37,_0x2d8ce0,_0x41ae48=!0x1){const _0x33b1e4=[];let _0x18c88f=this['repository']['getIndex'](_0x2bbe37),_0x4080de=this['repository']['getIndex'](_0x2d8ce0);for(-0x1==_0x4080de&&(_0x4080de=this['repository']['_revisions']['length'],_0x41ae48=!0x1);_0x18c88f<_0x4080de;)_0x33b1e4['push'](this['repository']['getRevision'](_0x18c88f)),_0x18c88f++;return _0x41ae48&&_0x33b1e4['push'](this['repository']['getRevision'](_0x18c88f)),_0x33b1e4;}['_threeWayMerge'](_0x3f0cea,_0x229463,_0x119e7b,_0x5a1794){const _0x45f9d1=this['editor']['model']['schema'];let _0x5f56c8=_0x229463;for(;_0x3f0cea[_0x5f56c8]&&_0x3f0cea[_0x5f56c8]['isAdded'];)_0x5f56c8++;let _0x44516c=_0x5a1794;for(;_0x119e7b[_0x44516c]&&_0x119e7b[_0x44516c]['isRemoved'];)_0x44516c++;_0x4bd8e5(_0x3f0cea,_0x229463,_0x5f56c8),_0x4bd8e5(_0x119e7b,_0x5a1794,_0x44516c);const _0x4533da=_0x119e7b['slice'](_0x5a1794,_0x44516c)['concat'](_0x3f0cea['slice'](_0x229463,_0x5f56c8));return _0x4533da['sort']((_0x39cb2b,_0x98bf25)=>_0x39cb2b['side']!=_0x98bf25['side']?_0x39cb2b['side']-_0x98bf25['side']:_0x39cb2b['level']!=_0x98bf25['level']?_0x39cb2b['level']-_0x98bf25['level']:_0x39cb2b['distance']!=_0x98bf25['distance']?_0x98bf25['distance']-_0x39cb2b['distance']:!!_0x39cb2b['isAdded']!=!!_0x98bf25['isAdded']?-0x1==_0x39cb2b['side']||0x0==_0x39cb2b['side']?_0x39cb2b['isAdded']?-0x1:0x1:_0x39cb2b['isAdded']?0x1:-0x1:_0x39cb2b['index']-_0x98bf25['index']),{'commonTape':_0x4533da,'iEnd':_0x5f56c8,'jEnd':_0x44516c};function _0x4bd8e5(_0x246b86,_0x1cd1f4,_0x358bde){let _0x39196c=-0x1,_0x107e89=Number['POSITIVE_INFINITY'],_0x37ea85=!0x0;for(let _0x6ed4cd=_0x1cd1f4;_0x6ed4cd<_0x358bde;_0x6ed4cd++)if(_0x45f9d1['isInline'](_0x246b86[_0x6ed4cd]['item'])||(_0x37ea85=!0x1),_0x246b86[_0x6ed4cd]['item']['startIndex']<_0x1cd1f4&&(_0x39196c=_0x6ed4cd),_0x246b86[_0x6ed4cd]['item']['endIndex']>=_0x358bde){_0x107e89=_0x6ed4cd;break;}_0x37ea85&&(_0x39196c=_0x358bde-0x1);for(let _0x4d2947=_0x1cd1f4;_0x4d2947<_0x358bde;_0x4d2947++)_0x246b86[_0x4d2947]['side']=_0x4d2947<=_0x39196c?-0x1:_0x4d2947<_0x107e89?0x0:0x1,_0x246b86[_0x4d2947]['index']=_0x4d2947;let _0x3c66c6=0x0;for(let _0x39bda1=_0x1cd1f4;_0x39bda1<=_0x39196c;_0x39bda1++)0x0==_0x246b86[_0x39bda1]['distance']?_0x246b86[_0x39bda1]['level']=_0x3c66c6:(_0x3c66c6++,_0x246b86[_0x39bda1]['level']=_0x3c66c6,_0x3c66c6++);for(let _0x5e017e=_0x1cd1f4;_0x5e017e<_0x358bde;_0x5e017e++)0x0==_0x246b86[_0x5e017e]['side']&&(_0x246b86[_0x5e017e]['level']=_0x3c66c6);_0x3c66c6=0x0;for(let _0x2bc143=_0x358bde-0x1;_0x2bc143>=_0x107e89;_0x2bc143--)0x0==_0x246b86[_0x2bc143]['distance']?_0x246b86[_0x2bc143]['level']=_0x3c66c6:(_0x3c66c6--,_0x246b86[_0x2bc143]['level']=_0x3c66c6,_0x3c66c6--);}}['_fixObsoleteTags'](_0x5376e0){const _0x124863=new Map(),_0x2731af=this['editor']['model']['schema'];for(let _0x1134e5=0x1;_0x1134e5<_0x5376e0['length'];_0x1134e5++){let _0x124765,_0x3f62ce,_0x4475c3;const _0x53a55e=_0x5376e0[_0x1134e5],_0x77e730=_0x5376e0[_0x1134e5-0x1];if('text'==_0x53a55e['type'])continue;if(_0x53a55e['type']!=_0x77e730['type'])continue;if(!_0x2731af['isBlock'](_0x77e730['item'])||_0x2731af['isLimit'](_0x77e730['item']))continue;if(!_0x2731af['isBlock'](_0x53a55e['item'])||_0x2731af['isLimit'](_0x53a55e['item']))continue;if((_0x5376e0[_0x1134e5]['isAdded']||_0x5376e0[_0x1134e5]['isAddSuggestion'])&&_0x5376e0[_0x1134e5-0x1]['isRemoved'])_0x124765=_0x5376e0[_0x1134e5],_0x3f62ce=_0x5376e0[_0x1134e5-0x1],_0x4475c3=_0x1134e5-0x1;else{if(!_0x5376e0[_0x1134e5]['isRemoved']||!_0x5376e0[_0x1134e5-0x1]['isAdded']&&!_0x5376e0[_0x1134e5-0x1]['isAddSuggestion'])continue;_0x124765=_0x5376e0[_0x1134e5-0x1],_0x3f62ce=_0x5376e0[_0x1134e5],_0x4475c3=_0x1134e5;}const _0x529a1c=_0x124765['level']==_0x3f62ce['level'],_0x2c6a7f=Math['abs'](_0x124765['level'])<Math['abs'](_0x3f62ce['level'])&&0x0==_0x3f62ce['distance'];(_0x529a1c||_0x2c6a7f)&&(_0x124863['set'](_0x3f62ce['id'],_0x124765['id']),_0x5376e0['splice'](_0x4475c3,0x1),_0x1134e5--,_0x124765['isAdded']=!0x1);}for(let _0x4ca0ee=0x0;_0x4ca0ee<_0x5376e0['length'];_0x4ca0ee++)_0x124863['has'](_0x5376e0[_0x4ca0ee]['pairId'])&&(_0x5376e0[_0x4ca0ee]['pairId']=_0x124863['get'](_0x5376e0[_0x4ca0ee]['pairId']));}['_removeMissingPairs'](_0x37389f){const _0x99496a=new Set(_0x37389f['map'](_0x40fd0b=>_0x40fd0b['id']));for(let _0x42b940=0x0;_0x42b940<_0x37389f['length'];_0x42b940++)_0x99496a['has'](_0x37389f[_0x42b940]['pairId'])||0x0==_0x37389f[_0x42b940]['distance']||(_0x37389f[_0x42b940]['isIncorrect']=!0x0);return _0x37389f['filter'](_0xd86d85=>!_0xd86d85['isIncorrect']);}['_markMismatchedRemovedTags'](_0x6a7c86){const _0x56029e=new Set();for(let _0x1212ba=0x0;_0x1212ba<_0x6a7c86['length'];_0x1212ba++){if(_0x56029e['has'](_0x6a7c86[_0x1212ba]['id'])&&_0x6a7c86[_0x1212ba]['isRemoved']&&(_0x6a7c86[_0x1212ba]['isIncorrect']=!0x0),_0x6a7c86[_0x1212ba]['isIncorrect'])continue;if(0x0==_0x6a7c86[_0x1212ba]['distance'])continue;if('elementStart'!=_0x6a7c86[_0x1212ba]['type'])continue;if(null==_0x6a7c86[_0x1212ba]['pairId'])continue;let _0x1953e3=_0x1212ba+0x1,_0x47c4eb=0x0;for(;_0x6a7c86[_0x1953e3]['id']!=_0x6a7c86[_0x1212ba]['pairId'];)'elementStart'==_0x6a7c86[_0x1953e3]['type']?_0x47c4eb++:'elementEnd'==_0x6a7c86[_0x1953e3]['type']&&_0x47c4eb--,_0x1953e3++;if(0x0!=_0x47c4eb){if(_0x6a7c86[_0x1212ba]['isRemoved'])_0x6a7c86[_0x1212ba]['isIncorrect']=!0x0;else{for(;_0x1953e3!=_0x1212ba;)_0x6a7c86[_0x1953e3]['isRemoved']&&0x0!=_0x6a7c86[_0x1953e3]['distance']&&(_0x6a7c86[_0x1953e3]['isIncorrect']=!0x0,_0x56029e['add'](_0x6a7c86[_0x1953e3]['pairId'])),_0x1953e3--;}}}return _0x6a7c86['filter'](_0xd4c495=>!_0xd4c495['isIncorrect']);}['_removeUnsupportedChanges'](_0x33a35d){const _0x4f0580=this['editor']['model']['schema'];for(let _0x2709f4=0x0;_0x2709f4<_0x33a35d['length'];_0x2709f4++){if(!(_0x33a35d[_0x2709f4]['isAdded']||_0x33a35d[_0x2709f4]['isAddSuggestion']||_0x33a35d[_0x2709f4]['isRemoved']||_0x33a35d[_0x2709f4]['isRemoveSuggestion']))continue;if(0x0==_0x33a35d[_0x2709f4]['distance'])continue;const _0x364f4f=_0x33a35d[_0x2709f4]['item'];_0x4f0580['isBlock'](_0x364f4f)||_0x4f0580['isLimit'](_0x364f4f)||(_0x33a35d[_0x2709f4]['isAdded']&&delete _0x33a35d[_0x2709f4]['isAdded'],_0x33a35d[_0x2709f4]['isAddSuggestion']&&delete _0x33a35d[_0x2709f4]['isAddSuggestion'],_0x33a35d[_0x2709f4]['isRemoveSuggestion']&&delete _0x33a35d[_0x2709f4]['isRemoveSuggestion'],_0x33a35d[_0x2709f4]['isRemoved']&&(_0x33a35d[_0x2709f4]['isIncorrect']=!0x0));}return _0x33a35d['filter'](_0x10efc5=>!_0x10efc5['isIncorrect']);}['_makeModelFromTape'](_0xc7f521,_0x21db16,_0x8902bc){const _0x50e28a=new _0x3fb9bd(),_0x34d570=[],_0x46cec8=new Map(),_0x18f9f5=this['editor']['model'],_0x5a4001=_0x18f9f5['schema'],_0x57012d=[_0x50e28a],_0x5a2f9a={},_0x3b90e9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3b8022=null;const _0x28c360=[0x0];for(let _0x1f3420=0x0;_0x1f3420<_0xc7f521['length'];_0x1f3420++)if('elementStart'===_0xc7f521[_0x1f3420]['type']){_0xc7f521[_0x1f3420]['previousPosition']=_0x18f9f5['createPositionFromPath'](_0x50e28a,_0x28c360);const _0x148d00=new _0x5acc5d(_0xc7f521[_0x1f3420]['item']['name'],_0xc7f521[_0x1f3420]['item']['getAttributes']());_0x57012d[0x0]['_appendChild'](_0x148d00),_0x28c360['push'](0x0),_0x57012d['unshift'](_0x148d00),_0xc7f521[_0x1f3420]['nextPosition']=_0x18f9f5['createPositionFromPath'](_0x50e28a,_0x28c360);}else'elementEnd'===_0xc7f521[_0x1f3420]['type']?(_0x57012d['shift'](),_0xc7f521[_0x1f3420]['previousPosition']=_0x18f9f5['createPositionFromPath'](_0x50e28a,_0x28c360),_0x28c360['pop'](),_0x28c360[_0x28c360['length']-0x1]++,_0xc7f521[_0x1f3420]['nextPosition']=_0x18f9f5['createPositionFromPath'](_0x50e28a,_0x28c360)):(_0xc7f521[_0x1f3420]['previousPosition']=_0x18f9f5['createPositionFromPath'](_0x50e28a,_0x28c360),_0x3b8022?_0x3b8022['_data']+=_0xc7f521[_0x1f3420]['item']['data']:_0x3b8022=new _0x558b43(_0xc7f521[_0x1f3420]['item']['data'],_0xc7f521[_0x1f3420]['item']['getAttributes']()),_0xc7f521[_0x1f3420+0x1]&&'text'===_0xc7f521[_0x1f3420+0x1]['type']&&_0x5942db(_0x3b8022,_0xc7f521[_0x1f3420+0x1]['item'])||(_0x57012d[0x0]['_appendChild'](_0x3b8022),_0x3b8022=null),_0x28c360[_0x28c360['length']-0x1]+=_0xc7f521[_0x1f3420]['item']['offsetSize'],_0xc7f521[_0x1f3420]['nextPosition']=_0x18f9f5['createPositionFromPath'](_0x50e28a,_0x28c360));for(let _0x1e699f=0x0;_0x1e699f<_0xc7f521['length'];_0x1e699f++){const _0x5d7b2b=_0xc7f521[_0x1e699f]['previousPosition'],_0x57d597=_0xc7f521[_0x1e699f]['nextPosition'];for(const _0x11cb41 of _0xc7f521[_0x1e699f]['markersStart'])_0x46cec8['set'](_0x11cb41,{'start':_0x5d7b2b,'end':null});_0xf2a674('isRemoveSuggestion',_0x1e699f,_0x5d7b2b,_0x57d597),_0xf2a674('isAddSuggestion',_0x1e699f,_0x5d7b2b,_0x57d597),_0xf2a674('isRemoved',_0x1e699f,_0x5d7b2b,_0x57d597),_0xf2a674('isAdded',_0x1e699f,_0x5d7b2b,_0x57d597);for(const _0xbfe554 of _0xc7f521[_0x1e699f]['markersEnd']){const _0x2f1813=_0x46cec8['get'](_0xbfe554);_0x2f1813?_0x2f1813['end']=_0x57d597:_0x46cec8['set'](_0xbfe554,{'start':_0x57d597,'end':_0x57d597});}}for(const [_0xe5e1f6,_0x3fd6eb]of _0x46cec8){const _0x2791bf=this['editor']['model']['createRange'](_0x3fd6eb['start'],_0x3fd6eb['end']);_0x50e28a['markers']['set'](_0xe5e1f6,_0x2791bf);}return _0x34d570['sort']((_0x48b8f5,_0x49ce39)=>{const _0x540b2a=_0x50e28a['markers']['get']('revision:'+_0x48b8f5['id']),_0x142add=_0x50e28a['markers']['get']('revision:'+_0x49ce39['id']);return _0x540b2a['start']['isBefore'](_0x142add['start'])?-0x1:_0x540b2a['start']['isAfter'](_0x142add['start'])?0x1:_0x540b2a['end']['isBefore'](_0x142add['end'])?-0x1:_0x540b2a['end']['isAfter'](_0x142add['end'])?0x1:'add'===_0x48b8f5['type']?-0x1:0x1;}),{'root':_0x50e28a,'changes':_0x34d570};function _0xf2a674(_0x269e6b,_0x21c6a6,_0x282c10,_0x5cfcdf){const _0x4bfb37=!!_0xc7f521[_0x21c6a6][_0x269e6b],_0x44c3ed=_0x4bfb37?_0xc7f521[_0x21c6a6][_0x269e6b]['userId']:null,_0x2b30c7=_0x21c6a6===_0xc7f521['length']-0x1,_0x5cc0e4=_0x3b90e9[_0x269e6b][0x0],_0x17b1d7=_0x5a4001['isObject'](_0xc7f521[_0x21c6a6]['item']);!_0x5a2f9a[_0x269e6b]&&_0x4bfb37?_0x5a2f9a[_0x269e6b]={'start':_0x282c10,'tapeItem':_0xc7f521[_0x21c6a6],'userId':_0x44c3ed,'type':_0x269e6b}:_0x5a2f9a[_0x269e6b]&&!_0x4bfb37?(_0x5a2f9a[_0x269e6b]['end']=_0x282c10,_0x151873(_0x5a2f9a[_0x269e6b]),_0x5a2f9a[_0x269e6b]=null):_0x5a2f9a[_0x269e6b]&&_0x4bfb37&&_0x5a2f9a[_0x269e6b]['userId']!==_0x44c3ed&&(_0x5a2f9a[_0x269e6b]['end']=_0x282c10,_0x5cc0e4&&_0x5cc0e4['userId']===_0x5a2f9a[_0x269e6b]['userId']||_0x151873(_0x5a2f9a[_0x269e6b]),_0x5a2f9a[_0x269e6b]={'start':_0x282c10,'tapeItem':_0xc7f521[_0x21c6a6],'userId':_0x44c3ed,'type':_0x269e6b}),_0x5a2f9a[_0x269e6b]&&_0x17b1d7&&('elementStart'!==_0xc7f521[_0x21c6a6]['type']||_0x5cc0e4&&_0x5cc0e4['userId']===_0x44c3ed||_0x3b90e9[_0x269e6b]['unshift']({'userId':_0x44c3ed,'object':_0xc7f521[_0x21c6a6]['item'],'change':_0x5a2f9a[_0x269e6b]}),'elementEnd'===_0xc7f521[_0x21c6a6]['type']&&_0x5cc0e4&&_0x5cc0e4['object']===_0xc7f521[_0x21c6a6]['item']&&(_0x3b90e9[_0x269e6b]['shift'](),_0x5a2f9a[_0x269e6b]=_0x5cc0e4['change'])),_0x5a2f9a[_0x269e6b]&&_0x2b30c7&&(_0x5a2f9a[_0x269e6b]['end']=_0x5cfcdf,_0x151873(_0x5a2f9a[_0x269e6b]),_0x5a2f9a[_0x269e6b]=null);}function _0x151873({start:_0x4856f3,end:_0x3e02af,tapeItem:_0x218abe,userId:_0x1dd655,type:_0x264d02}){const _0x4d48b6=_0x218abe['item'],_0x10ba24=_0x18f9f5['schema']['isBlock'](_0x4d48b6)&&!_0x18f9f5['schema']['isLimit'](_0x4d48b6),_0x3854aa=_0x4856f3['nodeAfter']==_0x3e02af['parent']&&_0x3e02af['isAtStart'];if(_0x10ba24&&_0x3854aa)return;const _0x252eab=_0x18f9f5['createRange'](_0x4856f3,_0x3e02af),_0x2ffc6a=_0x21db16['get'](_0x1dd655),_0x5130e4=new G({'author':_0x2ffc6a,'type':'isAdded'==_0x264d02||'isAddSuggestion'==_0x264d02?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x264d02||'isRemoveSuggestion'==_0x264d02},'createdAt':new Date(),'rootName':_0x8902bc});_0x34d570['push'](_0x5130e4),_0x50e28a['markers']['set']('revision:'+_0x5130e4['id'],_0x252eab);}function _0x5942db(_0x146364,_0x3ffa33){const _0x341c12=_0x146364['getAttributes'](),_0x296617=_0x3ffa33['getAttributes']();for(const _0x290847 of _0x341c12){if(_0x290847[0x1]!==_0x3ffa33['getAttribute'](_0x290847[0x0]))return!0x1;_0x296617['next']();}return _0x296617['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x36a3ef=>{const _0x1349d2=_0x36a3ef['markerName']['split'](':')[0x1],_0x2f4710=this['_getChangeFromId'](_0x1349d2);if(!_0x2f4710)return null;const _0x12d9b5='add'==_0x2f4710['type']?'insertion':'deletion',_0x26d391=['ck-suggestion-marker','ck-suggestion-marker-'+_0x12d9b5];return _0x2f4710['data']['isSuggestion']&&_0x26d391['push']('ck-suggestion-marker-'+_0x12d9b5+'-new'),this['activeChange']==_0x2f4710&&_0x26d391['push']('ck-suggestion-marker--active'),{'classes':_0x26d391,'attributes':{'data-change-id':_0x1349d2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x399630=>{_0x399630['on']('element:pre',(_0x119291,_0x9e057b,_0xd510f0)=>{const _0x7c993=_0x9e057b['viewItem']['getChild'](0x0);if(!_0x7c993||!_0x7c993['is']('element','code'))return;if(!_0xd510f0['consumable']['consume'](_0x7c993,{'attributes':['vid_start','vid_end']}))return;const _0x4ffed9=_0x9e057b['modelRange']['start']['nodeAfter'];_0xd510f0['writer']['setAttribute']('vid_start',_0x7c993['getAttribute']('vid_start'),_0x4ffed9),_0xd510f0['writer']['setAttribute']('vid_end',_0x7c993['getAttribute']('vid_end'),_0x4ffed9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x34a5fb=>{_0x34a5fb['on']('element',(_0x34ebbf,_0x4e8dbb,_0x13d86a)=>{if(!_0x13d86a['consumable']['consume'](_0x4e8dbb['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4e8dbb['modelRange']['isCollapsed'])return;const _0x27f6de=_0x4e8dbb['modelRange']['start']['nodeAfter'];_0x27f6de['hasAttribute']('vid_start')||_0x27f6de['hasAttribute']('vid')||(_0x13d86a['writer']['setAttribute']('vid_start',_0x4e8dbb['viewItem']['getAttribute']('vid_start'),_0x27f6de),_0x13d86a['writer']['setAttribute']('vid_end',_0x4e8dbb['viewItem']['getAttribute']('vid_end'),_0x27f6de));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x49cad6=>_0x49cad6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2c71fd,[,_0x3ff153])=>{['vid_start','vid_end','vid']['includes'](_0x3ff153)&&(_0x2c71fd['return']=!0x0,_0x2c71fd['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1309c7=>{_0x1309c7['on']('attribute:vid',(_0x299683,_0x269c5a,_0x3cb394)=>{if('\x20'!=_0x269c5a['item']['data']||_0x269c5a['item']['parent']['maxOffset']>0x1)return;if(!_0x3cb394['consumable']['consume'](_0x269c5a['item'],_0x299683['name']))return;const _0x4bafdd=_0x3cb394['writer'],_0xa9a12f=_0x3cb394['mapper']['toViewRange'](_0x269c5a['range']);_0x4bafdd['wrap'](_0xa9a12f,_0x4bafdd['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1a49f4){const _0x511ad2=_0x1a49f4['plugins']['get']('RevisionViewer');return(_0x37b8c0,_0x1069e6,_0x236c2d)=>{const _0x436726=_0x1069e6['markerName']['split'](':')[0x1],_0x164025=_0x511ad2['_getChangeFromId'](_0x436726);if(!_0x164025)return null;const _0x397f1e='add'==_0x164025['type']?'split':'merge';if(!_0x236c2d['consumable']['test'](_0x1069e6['markerRange'],_0x37b8c0['name']))return;const _0x47484f=_0x1069e6['markerRange']['getWalker'](),_0x2d3804=_0x1069e6['markerRange']['start'],_0x474e91=_0x1a49f4['model']['schema'];let _0x5e1d6c=null,_0x311e77=null,_0x19a527=!0x1,_0x533d29=!0x1;for(const _0x17b223 of _0x47484f){const _0x115430=_0x17b223['item'];_0x19a527=_0x19a527||_0x474e91['isContent'](_0x115430);const _0x389835=_0x236c2d['mapper']['toViewElement'](_0x115430);if(_0x389835&&_0x389835['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17b223['type']&&(_0x474e91['isBlock'](_0x115430)&&!_0x474e91['isLimit'](_0x115430)&&(_0x115430['nextSibling']||_0x2d3804['isAtEnd']?_0x5e1d6c&&_0x5e1d6c['parent']==_0x115430||(_0x5e1d6c=_0x115430,_0x132b3e(_0x17b223['previousPosition']),_0x533d29=!0x0):_0x311e77=_0x311e77||_0x17b223['previousPosition']));}function _0x132b3e(_0x284e1e){const _0xac4b2f=_0x236c2d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x397f1e}),_0x445582=_0x236c2d['mapper']['toViewPosition'](_0x284e1e);_0x164025['data']['isSuggestion']&&_0x236c2d['writer']['addClass']('ck-suggestion-marker-'+_0x397f1e+'-new',_0xac4b2f),_0x511ad2['activeChange']==_0x164025&&_0x236c2d['writer']['addClass']('ck-suggestion-marker--active',_0xac4b2f),_0x236c2d['writer']['insert'](_0x445582,_0xac4b2f),_0x236c2d['mapper']['bindElementToMarker'](_0xac4b2f,_0x1069e6['markerName']);}_0x19a527||_0x533d29||!_0x311e77||_0x132b3e(_0x311e77);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1d439c,_0x294dc2,_0x25b083)=>{const _0x38d542=_0x25b083['mapper']['markerNameToElements'](_0x294dc2['markerName']);if(_0x38d542){for(const _0x1b08bf of _0x38d542)(_0x1b08bf['hasClass']('ck-suggestion-marker-split')||_0x1b08bf['hasClass']('ck-suggestion-marker-merge'))&&(_0x25b083['mapper']['unbindElementFromMarkerName'](_0x1b08bf,_0x294dc2['markerName']),_0x25b083['writer']['remove'](_0x1b08bf));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x308b13,_0x5a69d6,_0x19f5e5)=>{const _0x3072f8=_0x5a69d6['markerName']['split'](':')[0x1],_0x44600e=this['_getChangeFromId'](_0x3072f8);if(!_0x44600e)return null;const _0x53769d='add'==_0x44600e['type']?'split':'merge';if(_0x19f5e5['consumable']['test'](_0x5a69d6['markerRange'],_0x308b13['name']))for(const _0x15003d of _0x5a69d6['markerRange']['getItems']()){if(!_0x15003d['is']('element','softBreak'))continue;const _0x4cb8b9=_0x19f5e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x53769d}),_0x2f3a24=_0x19f5e5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x15003d));_0x44600e['data']['isSuggestion']&&_0x19f5e5['writer']['addClass']('ck-suggestion-marker-'+_0x53769d+'-new',_0x4cb8b9),this['activeChange']==_0x44600e&&_0x19f5e5['writer']['addClass']('ck-suggestion-marker--active',_0x4cb8b9),_0x19f5e5['writer']['insert'](_0x2f3a24,_0x4cb8b9),_0x19f5e5['mapper']['bindElementToMarker'](_0x4cb8b9,_0x5a69d6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2ebab6=>{for(const _0x7c0700 of this['editor']['model']['document']['getRootNames']()){const _0x4b0dd8=this['editor']['model']['document']['getRoot'](_0x7c0700),_0x1db08c=this['editor']['editing']['view']['document']['getRoot'](_0x7c0700);if(_0x1db08c){const _0x18a975=_0x4b0dd8['getAttribute']('revisionHistoryAttachChange');if(_0x2ebab6['removeAttribute']('data-change-id',_0x1db08c),_0x2ebab6['removeClass']('ck-revision-history-root-add',_0x1db08c),_0x2ebab6['removeClass']('ck-revision-history-root-remove',_0x1db08c),_0x2ebab6['removeClass']('ck-revision-history-root--active',_0x1db08c),_0x18a975){const _0xf9be08=this['_getChangeFromId'](_0x18a975);if(!_0xf9be08)return null;_0x2ebab6['setAttribute']('data-change-id',_0x18a975,_0x1db08c),_0x2ebab6['addClass']('ck-revision-history-root-'+_0xf9be08['type'],_0x1db08c),this['activeChange']==_0xf9be08&&_0x2ebab6['addClass']('ck-revision-history-root--active',_0x1db08c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x25bbf8=>'revision-comment:'+_0x25bbf8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x12c34d=>'revision-suggestion:'+_0x12c34d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2cf720=>({'name':'suggestion:'+_0x2cf720,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x11d5ea=>{const _0x4c67bc=_0x11d5ea['markerName']['split'](':')[0x1];return'insertion'!=_0x4c67bc&&'deletion'!=_0x4c67bc?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4c67bc]};}}),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',(_0x165e0e,_0x5e7810,_0x53757d)=>{const _0x1a487b=_0x53757d['mapper']['markerNameToElements'](_0x5e7810['markerName']);if(_0x1a487b){for(const _0x58bcf2 of _0x1a487b)_0x58bcf2['is']('uiElement')&&(_0x53757d['mapper']['unbindElementFromMarkerName'](_0x58bcf2,_0x5e7810['markerName']),_0x53757d['writer']['remove'](_0x58bcf2));}},{'priority':'high'});}['_getChangeFromId'](_0x1b7264){return this['_changeIdToChange']['get'](_0x1b7264);}['_getViewForChange'](_0x5f3199){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x5f3199),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x112ab1,_0x1e9d3c,_0x23a581,_0x293629)=>{_0x293629&&this['_balloon']['remove'](_0x293629),_0x23a581&&(this['_balloon']['add']({'view':_0x23a581,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3f8176=this['editor']['editing'],_0x4fc3f6=this['_getChangeFromId'](_0x23a581['changeId']);let _0xf193c8;if(_0x4fc3f6['data']['isOnRoot']){const _0x54fa8f=_0x3f8176['view']['getDomRoot'](_0x4fc3f6['rootName']);_0xf193c8=Array['from'](_0x54fa8f['getClientRects']());}else{const _0xb52024=this['editor']['model']['markers']['get']('revision:'+_0x23a581['changeId']);_0xf193c8=Array['from'](_0x3f8176['mapper']['markerNameToElements'](_0xb52024['name']))['map'](_0x50855e=>_0x3f8176['view']['domConverter']['mapViewToDom'](_0x50855e))['map'](_0x2cfe9a=>Array['from'](_0x2cfe9a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xf193c8[0x0];return _0xf193c8['find'](_0x446555=>_0x446555['top']-0x3<=this['_activeViewTarget']['y']&&_0x446555['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x446555['left']-0x3<=this['_activeViewTarget']['x']&&_0x446555['right']+0x3>=this['_activeViewTarget']['x'])||_0xf193c8[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x181b6c,_0x237c93,_0x4c4321,_0x278e6f)=>{this['activeView']=_0x4c4321?this['_getViewForChange'](_0x4c4321):null,this['editor']['model']['change'](()=>{const _0x594836=this['editor']['editing'];_0x278e6f&&(_0x278e6f['data']['isOnRoot']?_0x594836['view']['change'](_0x30c942=>{_0x30c942['removeClass']('ck-revision-history-root--active',_0x594836['view']['document']['getRoot'](_0x278e6f['rootName']));}):_0x594836['reconvertMarker']('revision:'+_0x278e6f['id'])),_0x4c4321&&(_0x4c4321['data']['isOnRoot']?_0x594836['view']['change'](_0x26a2c9=>{_0x26a2c9['addClass']('ck-revision-history-root--active',_0x594836['view']['document']['getRoot'](_0x4c4321['rootName']));}):_0x594836['reconvertMarker']('revision:'+_0x4c4321['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3f9909,_0x501cd3)=>{if(this['activeChange'])return;const _0x1369c8=this['_findChangeIdFromDomTarget'](_0x501cd3['target']),_0x129a3e=this['_changeIdToChange']['get'](_0x1369c8);_0x129a3e?(this['_activeViewTarget']={'x':_0x501cd3['domEvent']['x'],'y':_0x501cd3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x129a3e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4a3b43,_0xf96b79)=>{const _0x4b93d9=this['_findChangeIdFromDomTarget'](_0xf96b79['target']),_0x4e0317=this['_changeIdToChange']['get'](_0x4b93d9);_0x4e0317?(this['_activeViewTarget']={'x':_0xf96b79['domEvent']['x'],'y':_0xf96b79['domEvent']['y']},_0x4e0317===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4e0317):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1f0ab0){do{const _0x5b28e2=_0x1f0ab0['getAttribute']('data-change-id');if(_0x5b28e2)return _0x5b28e2;_0x1f0ab0=_0x1f0ab0['parent'];}while(_0x1f0ab0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x177628=>{for(const _0x5a0f73 of this['editor']['model']['markers'])_0x177628['removeMarker'](_0x5a0f73);});}}function Q(_0x26cb62,_0x11512c){return(_0x252d60,_0x5bc536,_0x18eb69)=>{if(!_0x18eb69['consumable']['test'](_0x5bc536['markerRange'],_0x252d60['name']))return;const _0x165d8f=_0x5bc536['markerRange']['getWalker'](),_0x139532=_0x5bc536['markerRange']['start'],_0x559b5a=_0x26cb62['model']['schema'];let _0x1a28b4=null,_0x114240=null,_0x3d3e08=!0x1,_0x3ddcf1=!0x1;for(const _0x5c8030 of _0x165d8f){const _0x2154fc=_0x5c8030['item'];_0x3d3e08=_0x3d3e08||_0x559b5a['isContent'](_0x2154fc);const _0x3f9089=_0x18eb69['mapper']['toViewElement'](_0x2154fc);if(_0x3f9089&&_0x3f9089['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5c8030['type']&&(_0x559b5a['isBlock'](_0x2154fc)&&!_0x559b5a['isLimit'](_0x2154fc)&&(_0x2154fc['nextSibling']||_0x139532['isAtEnd']?_0x1a28b4&&_0x1a28b4['parent']==_0x2154fc||(_0x1a28b4=_0x2154fc,_0x4e8dfe(_0x5c8030['previousPosition']),_0x3ddcf1=!0x0):_0x114240=_0x114240||_0x5c8030['previousPosition']));}function _0x4e8dfe(_0x26501f){const _0x40fb2d=_0x18eb69['mapper']['toViewPosition'](_0x26501f),_0x1397dd=_0x18eb69['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x11512c});_0x18eb69['writer']['insert'](_0x40fb2d,_0x1397dd),_0x18eb69['mapper']['bindElementToMarker'](_0x1397dd,_0x5bc536['markerName']);}_0x3d3e08||_0x3ddcf1||!_0x114240||_0x4e8dfe(_0x114240);};}class nt extends _0x15cc66{constructor(_0x2ef20a){super(_0x2ef20a);const _0x3d77ac=_0x2ef20a['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x3d77ac,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d77ac,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x27d03b=this['editor'],_0x533273=_0x27d03b['plugins']['get'](u),_0x18e0ea=_0x533273['isReady']?_0x533273['diff']['newRevisionId']:null;_0x27d03b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x18e0ea);}['refresh'](){const {isReady:_0x1f3fe5,isEnabled:_0x22b583,repository:_0x2ed1b1,diff:_0x112742}=this['editor']['plugins']['get'](u),_0x17c560=_0x112742&&_0x2ed1b1['getLaterVisibleRevision'](_0x112742['newRevisionId']);this['isEnabled']=_0x1f3fe5&&_0x22b583&&Boolean(_0x17c560);}}class rt extends _0x15cc66{['_step'];constructor(_0x309220,{direction:_0x276719}){super(_0x309220);const _0x28ce52=_0x309220['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x276719?0x1:-0x1,this['listenTo'](_0x28ce52,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28ce52,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x28ce52,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3d50ae=this['editor'],_0x913eac=_0x3d50ae['plugins']['get'](u),{isNavigationMode:_0x17c6ee,currentChangeNumber:_0x3aef16}=_0x913eac;let _0x12db03;if(_0x913eac['activeChange']=_0x17c6ee?_0x913eac['diff']['changes']['get'](_0x3aef16+this['_step']):_0x913eac['diff']['changes']['first'],_0x913eac['activeChange']['data']['isOnRoot'])_0x12db03=_0x3d50ae['editing']['view']['getDomRoot'](_0x913eac['activeChange']['rootName']);else{const _0xa4a75d=_0x3d50ae['model']['markers']['get']('revision:'+_0x913eac['activeChange']['id']);_0x12db03=_0x542bc9(_0x3d50ae['editing'],_0xa4a75d);}_0x341d84({'target':_0x12db03,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1615f2,currentChangeNumber:_0x55b597,numberOfChanges:_0xf4c155,isReady:_0x2c2a51,isEnabled:_0xd45857}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0xd45857&&_0x2c2a51&&_0xf4c155)&&(!_0x1615f2||(0x1===this['_step']?_0x55b597<_0xf4c155-0x1:_0x55b597>0x0));}}class Ri extends _0x524cb0{constructor(_0x32d66d){super(_0x32d66d);const _0x5e3f2a=this['bindTemplate'],_0x3a6d08=new _0x4e77f1(_0x32d66d),_0xef1949=new _0x4e77f1(_0x32d66d);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',(_0x511800,_0x35807a)=>_0x511800&&_0x35807a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x187e28,_0x42c097,_0x32d2cf,_0x325d31)=>{if(!_0x187e28)return m(_0x32d66d,'Loading...');if(!_0x32d2cf)return m(_0x32d66d,'No\x20changes');const _0x5e290c=m(_0x32d66d,'NUMBER_OF_CHANGES',_0x32d2cf);return _0x325d31?m(_0x32d66d,'X_OF_Y_CHANGES',[_0x42c097+0x1,_0x32d2cf]):_0x5e290c;}),_0x3a6d08['set']({'label':m(_0x32d66d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x583de3}),_0xef1949['set']({'label':m(_0x32d66d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x163c7b}),_0x3a6d08['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xef1949['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3a6d08['on']('execute',()=>this['fire']('execute','backward')),_0xef1949['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',_0x5e3f2a['if']('_isStatusLabelVisible','ck-hidden',_0x578c54=>!_0x578c54)]},'children':[{'text':_0x5e3f2a['to']('isNavigationMode',_0x5389f6=>_0x5389f6?m(_0x32d66d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x32d66d,'Total')+':\x20')}]},{'text':_0x5e3f2a['to']('_statusText')}]},new _0x5c4716(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3a6d08,_0xef1949]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x23b9b4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2cbea8=this['editor']['editing']['view'];_0x2cbea8['change'](_0x3e265a=>{for(const _0x39e043 of _0x2cbea8['document']['roots'])_0x3e265a['addClass'](ge,_0x39e043);});}['hide'](){const _0x1aa966=this['editor']['editing']['view'];_0x1aa966['change'](_0x5236ab=>{for(const _0x534994 of _0x1aa966['document']['roots'])_0x5236ab['removeClass'](ge,_0x534994);});}}class v extends _0x23b9b4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x2d39a9=this['editor'],_0x18164d=_0x2d39a9['plugins']['get'](u),_0x5d96dc=_0x2d39a9['plugins']['get'](ji);_0x2d39a9['ui']['componentFactory']['add']('exitToEditing',_0x5390f9=>{const _0x7ad82c=new _0x4e77f1(_0x5390f9);return _0x7ad82c['set']({'label':m(_0x5390f9,'Back\x20to\x20editing'),'icon':_0x432dbf,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x7ad82c,'execute',()=>{_0x2d39a9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x7ad82c;}),_0x2d39a9['ui']['componentFactory']['add']('restoreRevision',_0x1dbdfe=>{const _0x3df59e=new _0x4e77f1(_0x1dbdfe);return _0x3df59e['set']({'label':m(_0x1dbdfe,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3df59e['bind']('isEnabled')['to'](_0x2d39a9['commands']['get']('restoreRevision')),this['listenTo'](_0x3df59e,'execute',()=>_0x2d39a9['execute']('restoreRevision')),_0x3df59e;}),_0x2d39a9['ui']['componentFactory']['add']('changesNavigation',_0x43b488=>{const _0x61f782=new Ri(_0x43b488),_0x5cab35=_0x2d39a9['commands']['get']('showPreviousChange'),_0x54e2fb=_0x2d39a9['commands']['get']('showNextChange');return _0x61f782['bind']('isBackwardNavigationEnabled')['to'](_0x5cab35,'isEnabled'),_0x61f782['bind']('isForwardNavigationEnabled')['to'](_0x54e2fb,'isEnabled'),_0x61f782['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x18164d),this['listenTo'](_0x61f782,'execute',(_0x171f8e,_0x471498)=>{_0x2d39a9['execute']('forward'===_0x471498?'showNextChange':'showPreviousChange');}),_0x61f782;}),_0x5d96dc['show'](),_0x18164d['on']('change:isReady',(_0x3f8062,_0x44e29f,_0x2caa3a)=>{_0x2caa3a?_0x5d96dc['hide']():_0x5d96dc['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x4f2b4b,_0x275b93){super(_0x4f2b4b,_0x275b93);const _0x4eaedc=this['bindTemplate'];this['set']({'label':m(_0x4f2b4b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4f2b4b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4eaedc['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 _0x364d8d=this['fieldView']['element'];this['_tooltipString']=_0x364d8d['scrollWidth']>_0x364d8d['clientWidth']&&_0x364d8d['value']||'';}}class ni extends _0x524cb0{constructor(_0xdce598,_0x407162,_0x2d8ba5){super(_0xdce598);const _0x2a6313=new _0x1dcc7a();_0x2a6313['set']({'content':_0x568042,'viewBox':'0\x200\x2011\x2010'});const _0x20edcf=['ck','ck-revision-history-sidebar__revision-author'];_0x2d8ba5&&_0x20edcf['push']('ck-revision-history-sidebar__revision-author_creator');const _0x31b848=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0xdce598,_0x2d8ba5?'Revision\x20creator':'Revision\x20author')},'children':[_0x2a6313,_0x407162['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x20edcf},'children':_0x31b848});}}function ai(_0x12c1f8,_0x53a155){const _0x36d4e4=_0x12c1f8['bindTemplate'],_0x1617d5=_0x12c1f8['locale'],_0x125a9c=_0x10fce4(_0x1617d5);_0x125a9c['panelPosition']='sw';const _0x474f37=function(_0x1aa08e,_0x17e017){const _0x6668f3=function(_0x5238e1,_0x31af65){const _0x2dc8e4=_0x5238e1['locale'],_0x52185f={'Compare\x20against\x20selected':m(_0x2dc8e4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2dc8e4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2dc8e4,'Restore\x20this\x20revision')};return _0x31af65['map'](_0x159312=>{const _0x430cf8=_0x52185f[_0x159312['name']];return _0x430cf8&&_0x430cf8!==_0x159312['name']&&(_0x159312['name']=_0x430cf8),_0x159312;});}(_0x1aa08e,_0x17e017),_0x46a03f=new _0x1dcfeb();for(const _0x1c060f of _0x6668f3){const _0x295a6a={'type':'button','model':new to({'label':_0x1c060f['name'],'class':_0x1c060f['class'],'withText':!0x0,'role':'menuitem','_action':_0x1c060f['action']})};_0x295a6a['model']['bind']('isEnabled')['to'](_0x1aa08e,'isActionsDropdownOpen',_0x6a9e4a=>'function'!=typeof _0x1c060f['isEnabled']||(!_0x6a9e4a||_0x1c060f['isEnabled'](_0x1aa08e))),_0x46a03f['add'](_0x295a6a);}return _0x46a03f;}(_0x12c1f8,_0x53a155);return _0x12c1f8['bind']('isActionsDropdownOpen')['to'](_0x125a9c,'isOpen'),_0x125a9c['buttonView']['set']({'label':m(_0x1617d5,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3057b1}),_0x125a9c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x36d4e4['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x36d4e4['to'](_0x147a0b=>_0x147a0b['stopPropagation']())}}),_0x125a9c['on']('execute',_0x196465=>{_0x12c1f8['isReady']&&'function'==typeof _0x196465['source']['_action']&&_0x196465['source']['_action'](_0x12c1f8);}),_0x348a03(_0x125a9c,_0x474f37,{'role':'menu'}),_0x125a9c['listenTo'](_0x12c1f8,'change:isActionsDropdownOpen',(_0xb4b925,_0x58bd1f,_0x5e7306)=>{if(_0x5e7306)for(const _0x4bd214 of _0x125a9c['listView']['items']){const _0x5a6372=_0x4bd214['children']['first'],_0x33ee78=_0x53a155['find'](_0x43f505=>_0x43f505['action']===_0x5a6372['_action'])['isVisible'];_0x4bd214['isVisible']=void 0x0===_0x33ee78||_0x33ee78(_0x12c1f8);}}),_0x125a9c;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x58ed8b(_0x524cb0){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xd257e3,_0x5c2d87,_0x1d484b,_0x42b0e1){super(_0xd257e3);const _0x34ac58=this['bindTemplate'],_0x39dd63=function(_0x4f26b9,_0x487bf0){const _0x530f93=Array['from'](_0x487bf0['authors'])['filter'](_0x3f64fb=>_0x3f64fb!=_0x487bf0['creator']);return _0x487bf0['creator']&&_0x530f93['unshift'](_0x487bf0['creator']),_0x530f93['map'](_0xd1d4cd=>new ni(_0x4f26b9,_0xd1d4cd,_0xd1d4cd==_0x487bf0['creator']));}(_0xd257e3,_0x5c2d87);this['id']=_0x5c2d87['id'],this['_revision']=_0x5c2d87,this['_requireRevisionName']=_0x42b0e1,this['bind']('name','createdAt')['to'](_0x5c2d87),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x47e1fb=>{return _0x13fc88=_0xd257e3['uiLanguage'],(_0x25eadc=_0x47e1fb)['toLocaleDateString'](_0x13fc88,{'month':'long','day':'numeric'})+',\x20'+_0x25eadc['toLocaleTimeString'](_0x13fc88,{'hour':'numeric','minute':'numeric'});var _0x13fc88,_0x25eadc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0xd257e3,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x17a2e8=>_0x17a2e8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x52a9d4,_0x1518f1)=>_0x52a9d4&&_0x1518f1),this['revisionActionsView']=_0x1d484b&&_0x1d484b['length']?ai(this,_0x1d484b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x34ac58['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x34ac58['if']('isEnabled','ck-disabled',_0x559985=>!_0x559985),_0x34ac58['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x34ac58['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x34ac58['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':_0x34ac58['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':_0x39dd63}]},this['revisionActionsView']],'on':{'click':_0x34ac58['to'](_0xeb535e=>{_0xeb535e['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5bdcc7=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5bdcc7,'change',()=>{this['_requireRevisionName']&&!_0x5bdcc7['value']||this['fire']('setName',{'id':this['id'],'name':_0x5bdcc7['value']}),_0x5bdcc7['value']||(_0x5bdcc7['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(_0x4403c9,_0x1c3aa7){const _0x3c2909=_0x35d12b['fromJSDate'](_0x4403c9)['setLocale'](_0x1c3aa7),_0x257afa=_0x35d12b['local'](),_0x55e7b7=_0x257afa['minus']({'days':0x1})['startOf']('day');let _0x268fc0,_0xd22fb5;return _0x3c2909['hasSame'](_0x257afa,'day')?(_0x268fc0=_0x3c2909['startOf']('day')['toJSDate'](),_0xd22fb5=_0x3c2909['toRelativeCalendar']()):_0x3c2909['hasSame'](_0x55e7b7,'day')?(_0x268fc0=_0x55e7b7['toJSDate'](),_0xd22fb5=_0x3c2909['toRelativeCalendar']()):_0x3c2909['hasSame'](_0x257afa,'week')?(_0x268fc0=_0x3c2909['startOf']('week')['toJSDate'](),_0xd22fb5=_0x3c2909['weekdayLong']||''):_0x3c2909['hasSame'](_0x257afa,'year')?(_0x268fc0=_0x3c2909['startOf']('month')['toJSDate'](),_0xd22fb5=_0x3c2909['monthLong']||''):(_0x268fc0=_0x3c2909['startOf']('year')['toJSDate'](),_0xd22fb5=String(_0x3c2909['year'])),{'startDate':_0x268fc0,'localizedPeriodName':_0xd22fb5};}class bi extends _0x524cb0{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x33ecc1,_0xa8347c,_0x4c95b6,_0x30bf1a){super(_0x33ecc1);const _0x154492=li(_0xa8347c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xa8347c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4c95b6,this['_requireRevisionName']=_0x30bf1a,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':_0x154492}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x13e9ca){const _0xb3ab43=new _i(this['locale'],_0x13e9ca,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xb3ab43);}['removeRevision'](_0x4ba8ad){const _0x4fbc16=this['revisionViews']['find'](_0x56e4cf=>_0x56e4cf['id']===_0x4ba8ad['id']);this['revisionViews']['remove'](_0x4fbc16);}}class fi extends _0x524cb0{constructor(_0x566fee){super(_0x566fee);const _0x1abe97=new _0x1dcc7a();_0x1abe97['content']=_0x433702,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1abe97,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x566fee,'Revision\x20history')]}]});}}class di extends _0x524cb0{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x24bb35,_0x4943b7,_0x4b1552,_0x360575){super(_0x24bb35);const _0x54da70=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4943b7,this['_revisionActions']=_0x4b1552,this['_requireRevisionName']=_0x360575,this['on']('select',(_0x3ed559,_0x1ed330)=>{this['fire']('revisionSelected',_0x1ed330);}),this['on']('setName',(_0xb7e455,_0x3478f7)=>{this['fire']('revisionSetName',_0x3478f7);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x24bb35),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x54da70['if']('isEnabled','ck-disabled',_0x36045d=>!_0x36045d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x28b119 of this['_revisions'])this['_addRevision'](_0x28b119);this['_revisions']['on']('add',(_0x36987d,_0x19c36d)=>{this['_addRevision'](_0x19c36d);}),this['_revisions']['on']('remove',(_0x17c842,_0x3b025a)=>{this['_removeRevision'](_0x3b025a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x30e904=>_0x30e904['revisionViews']['map'](_0x1fb2f3=>_0x1fb2f3))['flat']();}['selectRevision'](_0x4b3c61){for(const _0x4c9690 of this['revisionViews'])_0x4b3c61&&_0x4b3c61['id']===_0x4c9690['id']?_0x4c9690['select']():_0x4c9690['deselect']();}['highlightRevisions'](_0x537ad2){for(const _0x25ec50 of this['revisionViews'])_0x537ad2['some'](({id:_0x2eb87b})=>_0x2eb87b===_0x25ec50['id'])?_0x25ec50['highlight']():_0x25ec50['unhighlight']();}['_addRevision'](_0x5d041d){const _0x46af40=li(_0x5d041d['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xc392cc=this['timePeriodViews']['get'](0x0);_0xc392cc&&_0xc392cc['startDate']['getTime']()===_0x46af40['getTime']()||(_0xc392cc=new bi(this['locale'],_0x46af40,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xc392cc)),_0xc392cc['addRevision'](_0x5d041d);}['_removeRevision'](_0x44e41b){const _0xe54dea=li(_0x44e41b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xe54dea)['removeRevision'](_0x44e41b);}['_getTimePeriodViewByStartDate'](_0x38c34d){return this['timePeriodViews']['find'](_0x11cf30=>_0x11cf30['startDate']['getTime']()===_0x38c34d['getTime']());}}class d extends _0x23b9b4{['_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
|
-
_0x22e1de(_0x54238d){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5849c4,_0x23e29f){super(_0x23e29f),this['sourceElement']=_0x5849c4,this['model']['document']['createRoot']();const _0x5ab809=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5ab809);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5518b8,_0x2678c0){const _0x339bc0=new this(_0x5518b8,_0x2678c0);return await _0x339bc0['initPlugins'](),await _0x339bc0['ui']['init'](_0x5518b8),await _0x339bc0['data']['init'](_0x339bc0['config']['get']('initialData')||''),_0x339bc0['fire']('ready'),_0x339bc0;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x59afc0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdad6d3){function _0x42e5af(_0x2a8cd4){return _0x2a8cd4['map'](_0x5c815d=>String['fromCharCode'](_0x5c815d))['join']('');}super(_0xdad6d3),this['result']='end',_0xdad6d3[_0x42e5af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42e5af([0x76,0x69,0x65,0x77])][_0x42e5af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42e5af([0x61,0x75,0x74,0x6f]),_0xdad6d3[_0x42e5af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x42e5af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42e5af([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x42e5af([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x42e5af([0x6f,0x6b])});}}class ct extends _0x59afc0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x595296){if(super(_0x595296),!this['editor']['config']['get']('revisionHistory'))throw new _0x5bf644('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x14f852=>this['_showRevisionViewer']({..._0x14f852,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x100125=>this['_closeRevisionViewer'](_0x100125)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1ef81e=>this['_restoreRevision'](_0x1ef81e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4acbba){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4acbba;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x25d18a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x25d18a);}['getRevision'](_0x28454f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x28454f);}['getRevisions'](_0x10d14c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x10d14c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xc4e78=this['editor'],_0x346732=_0x8e5f46(_0xc4e78,p),_0x39f831=_0xc4e78['plugins']['get']('RevisionTracker'),_0x30c077=_0xc4e78['plugins']['get']('Users')['users'];return _0x346732['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x346732['lazyRoots'],(_0x346732['plugins']['push'](ht,u,v,class extends _0x59afc0{static get['requires'](){return[u,'Users'];}['init'](){const _0x2b5e28=this['editor']['plugins']['get']('Users');for(const _0x2746da of _0x30c077)_0x2746da['isAnonymous']||_0x2b5e28['getUser'](_0x2746da['id'])||_0x2b5e28['addUser'](_0x2746da);const _0x545143=_0x39f831['repository']['getRevisions']();let _0x5d4dac=null;const _0x302222=this['editor']['plugins']['get']('RevisionViewer');_0x302222['adapter']=_0x39f831['adapter'],_0x302222['bind']('isEnabled')['to'](_0x39f831),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xc4e78,'isReadOnly',_0x4878d3=>!_0x4878d3);for(const _0x5eb6e0 of _0x545143){const _0x1cfa33=null===_0x5eb6e0['creator'];if(_0x1cfa33&&_0x5eb6e0['toVersion']===_0x5eb6e0['fromVersion'])continue;const _0x3992ef=_0x5eb6e0['toJSON']();_0x302222['addRevisionData'](_0x3992ef,(_0x119edc,_0x21de56,_0xf69f4c)=>{if(_0x1cfa33){if(_0x5d4dac)_0x5d4dac['_update'](_0x119edc,_0x21de56);else{if(!_0x21de56){const _0x335c4b=_0xf69f4c['toJSON']();_0x335c4b['id']=_0x221375(),_0x39f831['saveRevision'](_0x335c4b,_0xf69f4c['toVersion'])['then'](_0x410e9=>{_0x5d4dac=_0x410e9;});}}}else _0x5eb6e0['_update'](_0x119edc,_0x21de56);});}}},d),_0x346732);}['_enhanceShowRevisionViewerCallback'](){const _0x567834=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x15914a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a4fb8=this['editor']['plugins']['get']('Autosave');await _0x4a4fb8['save']();}else await _0x15914a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x500966=this['editor']['plugins']['get']('Dialog');_0x500966['isOpen']&&_0x500966['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x288734=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x5aa7f6 of _0x288734)_0x5aa7f6['class']=_0x5aa7f6['class']?_0x5aa7f6['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x4a5b35=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x4a5b35&&_0x4a5b35['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x39e9a8=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x39e9a8&&_0x39e9a8['setAttribute']('tabindex','-1');}}const _0x487861=this['_getRevisionViewerEditorConfig']();return _0x567834(_0x487861)['then'](_0x30dc2c=>{return(this['_viewerEditor']=_0x30dc2c,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'),_0x30dc2c);})['catch'](_0x4724f2=>(console['error'](_0x4724f2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x531cfa=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 _0x101198=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x420960 of _0x101198)_0x420960['class']='ck-tab-panel_disabled'===_0x420960['class']?'':_0x420960['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x52e196=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x52e196&&_0x52e196['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x352e37=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x352e37&&_0x352e37['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x531cfa(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x17fdb3=this['editor']['plugins']['get']('Annotations');_0x17fdb3['refreshVisibility'](),_0x17fdb3['refreshPositioning']();}});});}['_showRevisionViewer'](_0x163822){const _0x5241e5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x21b1d8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2a527d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x2a527d,_0x163822)['then'](_0x40eb9b=>(_0x21b1d8['style']['display']='block',_0x5241e5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x40eb9b));}['_closeRevisionViewer'](_0x4c70e2){const _0x423096=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x423096['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4c70e2['destroy']();}async['_restoreRevision'](_0xf130f6){const _0x2fd558=this['editor'],_0xe540fa=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x42967d=_0x2fd558['plugins']['get']('RevisionTracker'),_0x37ac17=_0x2fd558['plugins']['get']('RevisionHistoryUtils'),_0x15ff15=_0xe540fa['repository']['getRevision'](_0xf130f6);let _0x2f2f1a,_0x2481f7,_0x194874;try{await _0x37ac17['loadRevisionData'](_0x15ff15,this['adapter']),_0x2f2f1a=_0x37ac17['getRevisionDocumentData'](_0x15ff15),_0x2481f7=_0x37ac17['getRevisionRootsAttributes'](_0x15ff15);}catch(_0xf65f8d){return void console['error'](_0xf65f8d);}_0x2fd558['model']['change'](_0x3f7a0b=>{for(const _0xd686e8 of Array['from'](_0x2fd558['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3f7a0b['removeMarker'](_0xd686e8);}),_0xe540fa['isReady']=!0x1,_0x2fd558['model']['enqueueChange'](_0x1cd9ec=>{_0x1cd9ec['setSelection'](null),_0x1cd9ec['removeSelectionAttribute'](_0x2fd558['model']['document']['selection']['getAttributeKeys']());const _0x3b0d09=Object['keys'](_0x2f2f1a);for(const _0x4a43b6 of _0x2fd558['model']['document']['roots'])'$graveyard'!=_0x4a43b6['rootName']&&_0x4a43b6['isAttached']()&&!_0x3b0d09['includes'](_0x4a43b6['rootName'])&&_0x1cd9ec['detachRoot'](_0x4a43b6);for(const _0x385bd5 of _0x3b0d09){let _0x24d93d=_0x2fd558['model']['document']['getRoot'](_0x385bd5);_0x24d93d&&_0x24d93d['isAttached']()||(_0x24d93d=_0x1cd9ec['addRoot'](_0x385bd5));const _0x5c71ac=_0x2481f7[_0x385bd5],_0x4c19a3=Object['keys'](_0x5c71ac),_0x24836e=_0x2f2f1a[_0x385bd5];for(const _0x2fbea5 of _0x24d93d['getAttributeKeys']())_0x4c19a3['includes'](_0x2fbea5)||_0x1cd9ec['removeAttribute'](_0x2fbea5,_0x24d93d);for(const _0x4af3a7 of _0x4c19a3)_0x1cd9ec['setAttribute'](_0x4af3a7,_0x2481f7[_0x385bd5][_0x4af3a7],_0x24d93d);_0x1cd9ec['remove'](_0x1cd9ec['createRangeIn'](_0x24d93d)),_0x1cd9ec['insert'](_0x2fd558['data']['parse'](_0x24836e,_0x24d93d),_0x24d93d,0x0);}});const _0x5ea02b=m(_0x2fd558['locale'],'Restored');if(_0x15ff15['name'])_0x194874=-0x1==_0x15ff15['name']['indexOf'](_0x5ea02b)?_0x5ea02b+':\x20'+_0x15ff15['name']:_0x15ff15['name'];else _0x194874=_0x5ea02b+':\x20'+(_0x15ff15['createdAt']['toLocaleDateString'](_0x2fd558['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x15ff15['createdAt']['toLocaleTimeString'](_0x2fd558['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x42967d['saveRevision']({'name':_0x194874}),_0xe540fa['isReady']=!0x0,_0x2fd558['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,bi 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(_0x3626e7){super(_0x3626e7),this['_revisionViewer']=_0x3626e7['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4e3fda=this['_revisionsRepository']['_revisions'],_0x3fa10e=this['_createRevisionActions'](),_0x4dd583=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x4e3fda,_0x3fa10e,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',(_0x5dd10d,_0x397f63)=>{_0x397f63['revisionViews']['on']('add',(_0x1d4857,_0x26b6df)=>{_0x26b6df['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)),_0x4dd583['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xbddc8e=this['_revisionsRepository']['getRevision'](0x0);if(_0xbddc8e){const _0x42e590=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xbddc8e['id']);this['_revisionViewer']['compare'](_0xbddc8e,_0x42e590);}}['_handleRevisionSelected'](_0x553ee8,_0x4d393a){const _0x5dac2f=this['_revisionsRepository']['getRevision'](_0x4d393a['id']),_0x56f333=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5dac2f['id']);this['_revisionViewer']['compare'](_0x5dac2f,_0x56f333);}['_handleRevisionSetName'](_0x741e2c,_0x374f93){this['_revisionsRepository']['getRevision'](_0x374f93['id'])['setName'](_0x374f93['name']);}['_handleDiffChange'](_0x79ae17,_0x7041bb,_0x17a706){const _0x2d3831=this['_revisionsRepository']['getRevisionsInDiff'](_0x17a706);_0x2d3831['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2d3831),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2d3831[0x0]));}['_createRevisionActions'](){const _0x31e6db=this['editor'],_0x1bf9b5=d['availableRevisionActions'],_0x17c3b3=_0x31e6db['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x17c3b3['length'])return _0x17c3b3['map'](_0x5244da=>{const _0x58ab80='string'==typeof _0x5244da?Object['assign']({},_0x1bf9b5[_0x5244da]):_0x5244da;return _0x58ab80['action']=_0x58ab80['action']['bind'](this,_0x31e6db),_0x58ab80['isVisible']&&(_0x58ab80['isVisible']=_0x58ab80['isVisible']['bind'](this,_0x31e6db)),_0x58ab80;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x302445},_0x294a2e)=>{const _0x1efd04=_0x302445['get'](u),_0x2efb8f=_0x1efd04['repository'];let _0x486d3c=_0x1efd04['diff']['newRevisionId'],_0x4204c8=_0x294a2e['id'];_0x2efb8f['getIndex'](_0x486d3c)>_0x2efb8f['getIndex'](_0x4204c8)&&([_0x486d3c,_0x4204c8]=[_0x4204c8,_0x486d3c]),_0x1efd04['compare'](_0x486d3c,_0x4204c8);},'isVisible':({plugins:_0x1c37a7},_0x3aed2d)=>{const _0x283bc6=_0x1c37a7['get'](u);return!(_0x283bc6['repository']['getRevisionsInDiff'](_0x283bc6['diff'])['length']>0x2)&&!_0x3aed2d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x54c93b,{id:_0x241ea5})=>{_0x54c93b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x241ea5);},'isVisible':({plugins:_0x3c6cb1},_0x5d4482)=>!!_0x3c6cb1['get'](u)['repository']['getLaterVisibleRevision'](_0x5d4482['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x476faf},{id:_0x4ac6ab,revisionNameView:_0x4fadf5})=>{const _0x58e94e=_0x476faf['get'](u),_0x51260c=_0x58e94e['repository']['getEarlierVisibleRevision'](_0x4ac6ab);_0x58e94e['compare'](_0x4ac6ab,_0x51260c),_0x4fadf5['focus'](),_0x4fadf5['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x37f633,_0x53d0c5){super(_0x37f633),this['_view']=_0x53d0c5,this['_toolbarConfig']=st(_0x37f633['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x4e903e){const _0x27219c=this['editor'],_0x1afa0c=this['view'],_0x2abc57=_0x27219c['editing']['view'],_0x3bc0d0=_0x1afa0c['editable'],_0xde62b9=_0x2abc57['document']['getRoot']();_0x3bc0d0['name']=_0xde62b9['rootName'],_0x1afa0c['render']();const _0x5c3c4c=_0x3bc0d0['element'];this['setEditableElement'](_0x3bc0d0['name'],_0x5c3c4c),_0x1afa0c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2abc57['attachDomRoot'](_0x5c3c4c),this['_elementReplacer']['replace'](_0x4e903e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5a32ea=this['view'],_0x5a4264=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5a4264['detachDomRoot'](_0x5a32ea['editable']['name']),_0x5a32ea['destroy']();}['_initToolbar'](){const _0x445f20=this['view'];_0x445f20['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x445f20['stickyPanel']['limiterElement']=_0x445f20['element'],_0x445f20['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xe79d74})=>_0xe79d74),_0x445f20['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x445f20['toolbar']);}}class ii extends _0x7ffce6{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x107d5d,_0x2f60dd,_0x522216={}){super(_0x107d5d),this['stickyPanel']=new _0x46ff0e(_0x107d5d),this['toolbar']=new _0x24896f(_0x107d5d,{'shouldGroupWhenFull':_0x522216['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x107d5d,_0x2f60dd);}['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
|
+
_0x1ad7d6(_0x21409b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5a41b4,_0x39b76c){super(_0x39b76c),this['sourceElement']=_0x5a41b4,this['model']['document']['createRoot']();const _0x276a5c=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x276a5c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x225655,_0x42c7ad){const _0x4cd0b5=new this(_0x225655,_0x42c7ad);return await _0x4cd0b5['initPlugins'](),await _0x4cd0b5['ui']['init'](_0x225655),await _0x4cd0b5['data']['init'](_0x4cd0b5['config']['get']('initialData')||''),_0x4cd0b5['fire']('ready'),_0x4cd0b5;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x23b9b4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17f452){function _0x20c36e(_0x4681ad){return _0x4681ad['map'](_0x1a1ff8=>String['fromCharCode'](_0x1a1ff8))['join']('');}super(_0x17f452),this['result']='end',_0x17f452[_0x20c36e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c36e([0x76,0x69,0x65,0x77])][_0x20c36e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20c36e([0x61,0x75,0x74,0x6f]),_0x17f452[_0x20c36e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20c36e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20c36e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20c36e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20c36e([0x6f,0x6b])});}}class ct extends _0x23b9b4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x29baf0){if(super(_0x29baf0),!this['editor']['config']['get']('revisionHistory'))throw new _0x4f08e9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x503398=>this['_showRevisionViewer']({..._0x503398,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x21c12a=>this['_closeRevisionViewer'](_0x21c12a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x40be0=>this['_restoreRevision'](_0x40be0)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3b569b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3b569b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xfaca26){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xfaca26);}['getRevision'](_0x8be8f0){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x8be8f0);}['getRevisions'](_0x4dd847){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4dd847||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x439302=this['editor'],_0x3c8436=_0xb086e5(_0x439302,p),_0x516345=_0x439302['plugins']['get']('RevisionTracker'),_0x19d76d=_0x439302['plugins']['get']('Users')['users'];return _0x3c8436['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3c8436['lazyRoots'],(_0x3c8436['plugins']['push'](ht,u,v,class extends _0x23b9b4{static get['requires'](){return[u,'Users'];}['init'](){const _0x5b72c3=this['editor']['plugins']['get']('Users');for(const _0x1f69a2 of _0x19d76d)_0x1f69a2['isAnonymous']||_0x5b72c3['getUser'](_0x1f69a2['id'])||_0x5b72c3['addUser'](_0x1f69a2);const _0x51f61d=_0x516345['repository']['getRevisions']();let _0x306e61=null;const _0xb08674=this['editor']['plugins']['get']('RevisionViewer');_0xb08674['adapter']=_0x516345['adapter'],_0xb08674['bind']('isEnabled')['to'](_0x516345),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x439302,'isReadOnly',_0x1cbf77=>!_0x1cbf77);for(const _0x48f038 of _0x51f61d){const _0x59be4b=null===_0x48f038['creator'];if(_0x59be4b&&_0x48f038['toVersion']===_0x48f038['fromVersion'])continue;const _0x2b2f4e=_0x48f038['toJSON']();_0xb08674['addRevisionData'](_0x2b2f4e,(_0x51da4d,_0x61d344,_0x4e5e52)=>{if(_0x59be4b){if(_0x306e61)_0x306e61['_update'](_0x51da4d,_0x61d344);else{if(!_0x61d344){const _0x1d5349=_0x4e5e52['toJSON']();_0x1d5349['id']=_0x3191d3(),_0x516345['saveRevision'](_0x1d5349,_0x4e5e52['toVersion'])['then'](_0x46baa2=>{_0x306e61=_0x46baa2;});}}}else _0x48f038['_update'](_0x51da4d,_0x61d344);});}}},d),_0x3c8436);}['_enhanceShowRevisionViewerCallback'](){const _0x1dc1ed=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2a0813=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2c7092=this['editor']['plugins']['get']('Autosave');await _0x2c7092['save']();}else await _0x2a0813['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x14739f=this['editor']['plugins']['get']('Dialog');_0x14739f['isOpen']&&_0x14739f['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x113f0c=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x4e808c of _0x113f0c)_0x4e808c['class']=_0x4e808c['class']?_0x4e808c['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x3825c0=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x3825c0&&_0x3825c0['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3fd76d=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3fd76d&&_0x3fd76d['setAttribute']('tabindex','-1');}}const _0x98d23e=this['_getRevisionViewerEditorConfig']();return _0x1dc1ed(_0x98d23e)['then'](_0x3f5404=>{return(this['_viewerEditor']=_0x3f5404,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'),_0x3f5404);})['catch'](_0x1e25ec=>(console['error'](_0x1e25ec),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4345c4=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 _0x548f3f=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x140984 of _0x548f3f)_0x140984['class']='ck-tab-panel_disabled'===_0x140984['class']?'':_0x140984['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x397a6e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x397a6e&&_0x397a6e['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x55abd8=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x55abd8&&_0x55abd8['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4345c4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x42c0cb=this['editor']['plugins']['get']('Annotations');_0x42c0cb['refreshVisibility'](),_0x42c0cb['refreshPositioning']();}});});}['_showRevisionViewer'](_0x534bca){const _0x1c3dff=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3f42c6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1c0229=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x1c0229,_0x534bca)['then'](_0x246dd2=>(_0x3f42c6['style']['display']='block',_0x1c3dff['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x246dd2));}['_closeRevisionViewer'](_0x1b4302){const _0xb0f3e4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xb0f3e4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1b4302['destroy']();}async['_restoreRevision'](_0x5abe31){const _0x185085=this['editor'],_0x4cf0e8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x10d60f=_0x185085['plugins']['get']('RevisionTracker'),_0x54f6f5=_0x185085['plugins']['get']('RevisionHistoryUtils'),_0x126f8f=_0x4cf0e8['repository']['getRevision'](_0x5abe31);let _0x266118,_0x4e74cc,_0x53c9f3;try{await _0x54f6f5['loadRevisionData'](_0x126f8f,this['adapter']),_0x266118=_0x54f6f5['getRevisionDocumentData'](_0x126f8f),_0x4e74cc=_0x54f6f5['getRevisionRootsAttributes'](_0x126f8f);}catch(_0x66aeda){return void console['error'](_0x66aeda);}_0x185085['model']['change'](_0x1bd726=>{for(const _0x315ab2 of Array['from'](_0x185085['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1bd726['removeMarker'](_0x315ab2);}),_0x4cf0e8['isReady']=!0x1,_0x185085['model']['enqueueChange'](_0x41c098=>{_0x41c098['setSelection'](null),_0x41c098['removeSelectionAttribute'](_0x185085['model']['document']['selection']['getAttributeKeys']());const _0x5bd95d=Object['keys'](_0x266118);for(const _0x333be7 of _0x185085['model']['document']['roots'])'$graveyard'!=_0x333be7['rootName']&&_0x333be7['isAttached']()&&!_0x5bd95d['includes'](_0x333be7['rootName'])&&_0x41c098['detachRoot'](_0x333be7);for(const _0x1a2c91 of _0x5bd95d){let _0xd46c23=_0x185085['model']['document']['getRoot'](_0x1a2c91);_0xd46c23&&_0xd46c23['isAttached']()||(_0xd46c23=_0x41c098['addRoot'](_0x1a2c91));const _0x429755=_0x4e74cc[_0x1a2c91],_0xdf5025=Object['keys'](_0x429755),_0x18650c=_0x266118[_0x1a2c91];for(const _0xb788bc of _0xd46c23['getAttributeKeys']())_0xdf5025['includes'](_0xb788bc)||_0x41c098['removeAttribute'](_0xb788bc,_0xd46c23);for(const _0x18b98d of _0xdf5025)_0x41c098['setAttribute'](_0x18b98d,_0x4e74cc[_0x1a2c91][_0x18b98d],_0xd46c23);_0x41c098['remove'](_0x41c098['createRangeIn'](_0xd46c23)),_0x41c098['insert'](_0x185085['data']['parse'](_0x18650c,_0xd46c23),_0xd46c23,0x0);}});const _0x194316=m(_0x185085['locale'],'Restored');if(_0x126f8f['name'])_0x53c9f3=-0x1==_0x126f8f['name']['indexOf'](_0x194316)?_0x194316+':\x20'+_0x126f8f['name']:_0x126f8f['name'];else _0x53c9f3=_0x194316+':\x20'+(_0x126f8f['createdAt']['toLocaleDateString'](_0x185085['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x126f8f['createdAt']['toLocaleTimeString'](_0x185085['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x10d60f['saveRevision']({'name':_0x53c9f3}),_0x4cf0e8['isReady']=!0x0,_0x185085['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};
|