@ckeditor/ckeditor5-revision-history 46.0.1-alpha.1 → 46.0.1-alpha.10
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.css +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/revisionssidebar/revisionssidebarheader.css +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x56035f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x40b967){super(),this['id']=_0x40b967['id']||_0x1d7c29(),this['creator']=_0x40b967['creator']||null,this['authors']=_0x40b967['authors']||[],this['diffData']=_0x40b967['diffData']||null,this['toVersion']=_0x40b967['toVersion']||0x0,this['fromVersion']=_0x40b967['fromVersion']||0x0,this['set']('name',_0x40b967['name']||''),this['set']('createdAt',_0x40b967['createdAt']||new Date()),this['set']('attributes',_0x40b967['attributes']||{});}['setName'](_0x1205f6){this['_update']({'name':_0x1205f6});}['setAttribute'](_0x2bfeaf,_0x58cb01){const _0x3da0fd=_0x452048(this['attributes']);_0x2e1dc0(_0x3da0fd,_0x2bfeaf,_0x58cb01),this['_update']({'attributes':_0x3da0fd});}['removeAttribute'](_0x425254){const _0x5ea7f4=_0x452048(this['attributes']);_0x5545ec(_0x5ea7f4,_0x425254),this['_update']({'attributes':_0x5ea7f4});}['_update'](_0x504d72,_0x2be42c=!0x1){let _0x4bf498=!0x1;const _0x316a69={'id':this['id']},_0x3dbd03=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x57d955 of _0x3dbd03){const _0x1d47af=_0x504d72[_0x57d955];void 0x0!==_0x1d47af&&_0x1d47af!==this[_0x57d955]&&(this[_0x57d955]=_0x1d47af,_0x316a69[_0x57d955]=_0x1d47af,_0x4bf498=!0x0);}_0x4bf498&&(_0x316a69['authors']&&(_0x316a69['authorsIds']=_0x316a69['authors']['map'](_0x400769=>_0x400769['id']),delete _0x316a69['authors']),this['fire']('_update',_0x316a69,_0x2be42c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x233c2c=>_0x233c2c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x5c2b79{['_revisions'];static get['requires'](){return[_0x35979b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x346bd3){super(_0x346bd3),this['_revisions']=new _0x638e22();}['afterInit'](){!async function(_0x313ae9){const _0xe89814=_0x50420d([0x57,0x50,0x71,0x38,0x58,0x31,0x55,0x59,0x68,0x5a,0x67,0x53,0x48,0x70,0x6f,0x72,0x52,0x77,0x7a,0x47,0x6e,0x37,0x56,0x4c,0x75,0x33,0x6d,0x36,0x78,0x74,0x34,0x51,0x61,0x64,0x65,0x43,0x4e,0x69,0x49,0x4a,0x6c,0x6a,0x79,0x44,0x32,0x42,0x62,0x73,0x35,0x45,0x76,0x63,0x54,0x66,0x41,0x4b,0x6b,0x30,0x4d,0x39,0x4f,0x46]),_0x3d5db5=0xeb829,_0x8dc97f=0xcda5424,_0x30e8e9=0xcdd3b04^_0x8dc97f,_0x25c2d4=window[_0x50420d([0x44,0x61,0x74,0x65])][_0x50420d([0x6e,0x6f,0x77])](),_0x5f3333=_0x313ae9[_0x50420d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12e5f8=new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2179c8=>{_0x5f3333[_0x50420d([0x6f,0x6e,0x63,0x65])](_0x50420d([0x72,0x65,0x61,0x64,0x79]),_0x2179c8);}),_0x400873={[_0x50420d([0x6b,0x74,0x79])]:_0x50420d([0x45,0x43]),[_0x50420d([0x75,0x73,0x65])]:_0x50420d([0x73,0x69,0x67]),[_0x50420d([0x63,0x72,0x76])]:_0x50420d([0x50,0x2d,0x32,0x35,0x36]),[_0x50420d([0x78])]:_0x50420d([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]),[_0x50420d([0x79])]:_0x50420d([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]),[_0x50420d([0x61,0x6c,0x67])]:_0x50420d([0x45,0x53,0x32,0x35,0x36])},_0x3151f4=_0x5f3333[_0x50420d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50420d([0x67,0x65,0x74])](_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x131aef(){let _0x3c360e,_0x4d5b21=null,_0xaf52b=null;try{if(_0x3151f4==_0x50420d([0x47,0x50,0x4c]))return _0x50420d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c360e=_0x54696e(),!_0x3c360e)return _0x50420d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c360e[_0x50420d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xaf52b=_0x1cab99(_0x3c360e[_0x50420d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c360e[_0x50420d([0x6a,0x74,0x69])])),await _0x10bcef()?_0x2d03fb()?_0x20feb3()?_0x50420d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3054cb()?(_0x3c360e[_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50420d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d5b21=_0x28b59b(_0x50420d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c360e[_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50420d([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d5b21=_0x28b59b(_0x50420d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13e423()):_0x50420d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50420d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50420d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x50420d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20feb3(){const _0x45a27a=[_0x50420d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50420d([0x74,0x72,0x69,0x61,0x6c])][_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c360e[_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25c2d4/0x3e8:0xe10*_0x30e8e9;return _0x3c360e[_0x50420d([0x65,0x78,0x70])]<_0x45a27a;}function _0x2d03fb(){const _0x700cd1=_0x3c360e[_0x50420d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x700cd1)return!0x1;if(_0x700cd1[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50420d([0x2a])))return!0x0;if(_0x700cd1[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50420d([0x52,0x48])))return!0x0;if(_0x700cd1[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50420d([0x52,0x52,0x48]))){if(_0x5f4ff3())return!0x0;if(_0x2eb773()||_0x2b0983())return!0x0;}return!0x1;}function _0x3054cb(){const _0x54e566=_0x3c360e[_0x50420d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54e566||0x0==_0x54e566[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x974c10}=new URL(window[_0x50420d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54e566[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x974c10))return!0x0;const _0x1bf75c=_0x974c10[_0x50420d([0x73,0x70,0x6c,0x69,0x74])](_0x50420d([0x2e]));return _0x54e566[_0x50420d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d6453=>_0x1d6453[_0x50420d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50420d([0x2a])))[_0x50420d([0x6d,0x61,0x70])](_0x3f127a=>_0x3f127a[_0x50420d([0x73,0x70,0x6c,0x69,0x74])](_0x50420d([0x2e])))[_0x50420d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd6b64b=>_0xd6b64b[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1bf75c[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50420d([0x6d,0x61,0x70])](_0xd925b0=>Array(_0x1bf75c[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd925b0[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50420d([0x66,0x69,0x6c,0x6c])](_0xd925b0[0x0]===_0x50420d([0x2a])?_0x50420d([0x2a]):'')[_0x50420d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd925b0))[_0x50420d([0x73,0x6f,0x6d,0x65])](_0x52604=>_0x1bf75c[_0x50420d([0x65,0x76,0x65,0x72,0x79])]((_0x2bec5f,_0x1c2a17)=>_0x52604[_0x1c2a17]===_0x2bec5f||_0x52604[_0x1c2a17]===_0x50420d([0x2a])));}function _0x13e423(){return _0x4d5b21&&_0xaf52b?new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c1073,_0x5ad2b8)=>{_0x4d5b21[_0x50420d([0x74,0x68,0x65,0x6e])](_0x2c1073,_0x5ad2b8),_0xaf52b[_0x50420d([0x74,0x68,0x65,0x6e])](_0x4f6445=>{_0x4f6445!=_0x50420d([0x56,0x61,0x6c,0x69,0x64])&&_0x2c1073(_0x4f6445);},_0x5ad2b8);}):_0x4d5b21||_0xaf52b||_0x50420d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cab99(_0x3269b7,_0x2e2a2f){return new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10befa=>{if(_0x584986())return _0x10befa(_0x50420d([0x56,0x61,0x6c,0x69,0x64]));_0x16906f(),_0x5f3333[_0x50420d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50420d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e7b1a=!0x1;const _0x28e7de=_0x1d7c29();function _0x228352(_0x48ad45){return!!_0x48ad45&&(typeof _0x48ad45===_0x50420d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48ad45===_0x50420d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48ad45[_0x50420d([0x74,0x68,0x65,0x6e])]===_0x50420d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48ad45[_0x50420d([0x63,0x61,0x74,0x63,0x68])]===_0x50420d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25bd95(_0x138ee3){_0x226aa6(_0x138ee3)[_0x50420d([0x74,0x68,0x65,0x6e])](_0x1a79fe=>{if(!_0x1a79fe||_0x1a79fe[_0x50420d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50420d([0x6f,0x6b]))return _0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x235aac(_0x112c81(_0x28e7de+_0x2e2a2f))!=_0x1a79fe[_0x50420d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50420d([0x56,0x61,0x6c,0x69,0x64]);})[_0x50420d([0x74,0x68,0x65,0x6e])](_0x3c9629=>(_0x4e54f4(),_0x3c9629),()=>{const _0x49196e=_0x36853e();return null==_0x49196e?(_0x4e54f4(),_0x50420d([0x56,0x61,0x6c,0x69,0x64])):_0x50420d(_0x25c2d4-_0x49196e>(0x28d6d024^_0x8dc97f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50420d([0x74,0x68,0x65,0x6e])](_0x10befa)[_0x50420d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10befa(_0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59bdd7=0xcecbaa4^_0x8dc97f;function _0x4e54f4(){const _0x511225=_0x50420d([0x6c,0x6c,0x63,0x74,0x2d])+_0x235aac(_0x112c81(_0x3269b7)),_0x8dd64b=_0x528b13(_0x235aac(window[_0x50420d([0x4d,0x61,0x74,0x68])][_0x50420d([0x63,0x65,0x69,0x6c])](_0x25c2d4/_0x59bdd7)));window[_0x50420d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50420d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x511225,_0x8dd64b);}function _0x36853e(){const _0x285b71=_0x50420d([0x6c,0x6c,0x63,0x74,0x2d])+_0x235aac(_0x112c81(_0x3269b7)),_0x5bd4b9=window[_0x50420d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50420d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285b71);return _0x5bd4b9?window[_0x50420d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x528b13(_0x5bd4b9),0x10)*_0x59bdd7:null;}function _0x226aa6(_0x377e36){return new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x572418,_0x46de05)=>{_0x377e36[_0x50420d([0x74,0x68,0x65,0x6e])](_0x572418,_0x46de05),window[_0x50420d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46de05,0xcdb80e4^_0x8dc97f);});}}_0x5f3333[_0x50420d([0x6f,0x6e])](_0x50420d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f81d4,_0x545873)=>{if(_0x545873[0x0]!=_0x3269b7)return _0x10befa(_0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x545873[0x1]={..._0x545873[0x1],[_0x50420d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28e7de};},{[_0x50420d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50420d([0x68,0x69,0x67,0x68])}),_0x5f3333[_0x50420d([0x6f,0x6e])](_0x50420d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54f5ca=>{_0x228352(_0x54f5ca[_0x50420d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e7b1a=!0x0,_0x25bd95(_0x54f5ca[_0x50420d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50420d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50420d([0x6c,0x6f,0x77])}),_0x12e5f8[_0x50420d([0x74,0x68,0x65,0x6e])](()=>{_0x3e7b1a||_0x10befa(_0x50420d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x584986(){return _0x5f3333[_0x50420d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50420d([0x76,0x69,0x65,0x77])][_0x50420d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50420d([0x61,0x75,0x74,0x6f]);}function _0x16906f(){_0x5f3333[_0x50420d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50420d([0x76,0x69,0x65,0x77])][_0x50420d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50420d([0x61,0x75,0x74,0x6f]);}}function _0x28b59b(_0xcd8d01){const _0x59efac=[new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee1b6=>setTimeout(_0x4ee1b6,0xcd36ae8^_0x8dc97f)),_0x12e5f8[_0x50420d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3710aa=>{const _0x3d641c=0xcda5423^_0x8dc97f,_0x93f44a=_0x313ae9[_0x50420d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3d9912(){_0x93f44a[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3d641c&&_0x3710aa();}_0x3d9912(),_0x93f44a[_0x50420d([0x6f,0x6e])](_0x50420d([0x61,0x64,0x64]),_0x3d9912);})),new window[(_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44ff2c=>{function _0x48178e(){for(const _0x2457f0 in window)if(window[_0x50420d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x50420d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2457f0))&&window[_0x2457f0]==_0x3d5db5)return _0x44ff2c();_0x5f3333[_0x50420d([0x73,0x74,0x61,0x74,0x65])]!=_0x50420d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x50420d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48178e,0xcda47ac^_0x8dc97f);}_0x43ba17(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x48178e();})];return window[_0x50420d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50420d([0x72,0x61,0x63,0x65])](_0x59efac)[_0x50420d([0x74,0x68,0x65,0x6e])](()=>_0xcd8d01);}async function _0x117415(){if(await _0x12e5f8,_0x43ba17(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2099fb=_0x313ae9[_0x50420d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x49b5f0=_0x313ae9[_0x50420d([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])](_0x2099fb[_0x50420d([0x69,0x64])]),_0x440438=_0x1ec07e(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x440438[_0x50420d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2099fb['id'],_0x49b5f0?_0x49b5f0['id']:null,!0x0),_0x440438[_0x50420d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x50420d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x440438[_0x50420d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x440438[_0x50420d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5cbf47,void(_0x440438[_0x50420d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5cbf47);}if(_0x43ba17(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x259baa=_0x1ec07e(_0x50420d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x259baa[_0x50420d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x50420d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x259baa[_0x50420d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x259baa[_0x50420d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5cbf47,_0x259baa[_0x50420d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5cbf47;}_0x5f3333[_0x50420d([0x6d,0x6f,0x64,0x65,0x6c])][_0x50420d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cbf47,_0x5f3333[_0x50420d([0x6d,0x6f,0x64,0x65,0x6c])][_0x50420d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cbf47,_0x5f3333[_0x50420d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50420d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f4ff3(){return _0x43ba17(_0x50420d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ec07e(_0x50420d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x50420d([0x73,0x74,0x61,0x74,0x65])]==_0x50420d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2eb773(){return _0x43ba17(_0x50420d([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 _0x2b0983(){return _0x43ba17(_0x50420d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x518949(_0x463525){const _0x400c16=_0x42ee18();_0x5f3333[_0x400c16]=_0x50420d([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])+_0x463525,_0x463525[_0x50420d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x50420d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x42ee18()]=_0x3d5db5),_0x463525!=_0x50420d([0x56,0x61,0x6c,0x69,0x64])&&_0x117415();}function _0x42ee18(){const _0x3745a=window[_0x50420d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50420d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50420d([0x6e,0x6f,0x77])]())[_0x50420d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50420d([0x2e]),'');let _0x293b6a=_0x50420d([0x57]);for(let _0x169d0a=0x0;_0x169d0a<_0x3745a[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x169d0a+=0x2){let _0x2dbf1f=window[_0x50420d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3745a[_0x50420d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x169d0a,_0x169d0a+0x2));_0x2dbf1f>=_0xe89814[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2dbf1f-=_0xe89814[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x293b6a+=_0xe89814[_0x2dbf1f];}return _0x293b6a;}function _0x54696e(){const _0x128f7c=_0x3151f4[_0x50420d([0x73,0x70,0x6c,0x69,0x74])](_0x50420d([0x2e]));if(0x3!=_0x128f7c[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x380917(_0x128f7c[0x1]);function _0x380917(_0x1a6405){const _0x883ce6=_0x23556a(_0x1a6405);return _0x883ce6&&_0xdd7c79()?_0x883ce6:null;function _0xdd7c79(){const _0x336698=_0x883ce6[_0x50420d([0x6a,0x74,0x69])],_0x112aec=window[_0x50420d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x336698[_0x50420d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x336698[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x493178={..._0x883ce6,[_0x50420d([0x6a,0x74,0x69])]:_0x336698[_0x50420d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x336698[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x493178[_0x50420d([0x76,0x63])],_0x112c81(_0x493178)==_0x112aec;}}}async function _0x10bcef(){let _0x3dd861=!0x0;try{const _0x3545b5=_0x3151f4[_0x50420d([0x73,0x70,0x6c,0x69,0x74])](_0x50420d([0x2e])),[_0x3aeef1,_0x29e701,_0x515910]=_0x3545b5;return _0x42d6cb(_0x3aeef1),await _0xc581ad(_0x3aeef1,_0x29e701,_0x515910),_0x3dd861;}catch{return!0x1;}function _0x42d6cb(_0x2fe2de){const _0x4424eb=_0x23556a(_0x2fe2de);_0x4424eb&&_0x4424eb[_0x50420d([0x61,0x6c,0x67])]==_0x50420d([0x45,0x53,0x32,0x35,0x36])||(_0x3dd861=!0x1);}async function _0xc581ad(_0x5334c5,_0x2553d9,_0x47eff9){const _0x48801e=window[_0x50420d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50420d([0x66,0x72,0x6f,0x6d])](_0x324ef6(_0x47eff9),_0x4f7d43=>_0x4f7d43[_0x50420d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35bd82=new window[(_0x50420d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50420d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5334c5+_0x50420d([0x2e])+_0x2553d9),_0x3c72d2=window[_0x50420d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50420d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c72d2)return;const _0x6dd9c=await _0x3c72d2[_0x50420d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50420d([0x6a,0x77,0x6b]),_0x400873,{[_0x50420d([0x6e,0x61,0x6d,0x65])]:_0x50420d([0x45,0x43,0x44,0x53,0x41]),[_0x50420d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50420d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50420d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c72d2[_0x50420d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50420d([0x6e,0x61,0x6d,0x65])]:_0x50420d([0x45,0x43,0x44,0x53,0x41]),[_0x50420d([0x68,0x61,0x73,0x68])]:{[_0x50420d([0x6e,0x61,0x6d,0x65])]:_0x50420d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6dd9c,_0x48801e,_0x35bd82)||(_0x3dd861=!0x1);}}function _0x23556a(_0x23dbbd){return _0x23dbbd[_0x50420d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50420d([0x65,0x79]))?JSON[_0x50420d([0x70,0x61,0x72,0x73,0x65])](_0x324ef6(_0x23dbbd)):null;}function _0x324ef6(_0x34df65){return window[_0x50420d([0x61,0x74,0x6f,0x62])](_0x34df65[_0x50420d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50420d([0x2b]))[_0x50420d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50420d([0x2f])));}function _0x112c81(_0x3ee6bf){let _0xd034a=0x1505;function _0x548bb0(_0x414adf){for(let _0x3d0d95=0x0;_0x3d0d95<_0x414adf[_0x50420d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0d95++){const _0x3a000c=_0x414adf[_0x50420d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d0d95);_0xd034a=(_0xd034a<<0x5)+_0xd034a+_0x3a000c,_0xd034a&=_0xd034a;}}function _0x2683c8(_0x41318e){Array[_0x50420d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41318e)?_0x41318e[_0x50420d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2683c8):_0x41318e&&typeof _0x41318e==_0x50420d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50420d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41318e)[_0x50420d([0x73,0x6f,0x72,0x74])]()[_0x50420d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dc679,_0x9128b9])=>{_0x548bb0(_0x3dc679),_0x2683c8(_0x9128b9);}):_0x548bb0(window[_0x50420d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41318e));}return _0x2683c8(_0x3ee6bf),_0xd034a>>>0x0;}function _0x235aac(_0x819fd7){return _0x819fd7[_0x50420d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50420d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50420d([0x30]));}function _0x528b13(_0x3ef6be){return _0x3ef6be[_0x50420d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50420d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50420d([0x6a,0x6f,0x69,0x6e])]('');}function _0x43ba17(_0xbabf9d){return _0x5f3333[_0x50420d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x50420d([0x68,0x61,0x73])](_0xbabf9d);}function _0x1ec07e(_0x274803){return _0x5f3333[_0x50420d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x50420d([0x67,0x65,0x74])](_0x274803);}function _0x5cbf47(){}function _0x50420d(_0x5563ba){return _0x5563ba['map'](_0x1d958a=>String['fromCharCode'](_0x1d958a))['join']('');}_0x518949(await _0x131aef());}(this);}['createRevision'](_0x54b121){const _0x345adc=this['editor']['plugins']['get']('Users');return new I({'id':_0x54b121['id'],'name':_0x54b121['name'],'creator':_0x54b121['creatorId']?_0x345adc['getUser'](_0x54b121['creatorId']):null,'diffData':_0x54b121['diffData']||_0x54b121['data'],'authors':_0x54b121['authorsIds']['map'](_0x3292eb=>_0x345adc['getUser'](_0x3292eb)),'createdAt':new Date(_0x54b121['createdAt']),'attributes':_0x54b121['attributes'],'fromVersion':_0x54b121['fromVersion'],'toVersion':_0x54b121['toVersion']});}['addRevision'](_0x65805c,_0x405b4f=0x0){this['_revisions']['add'](_0x65805c,_0x405b4f);}['getRevision'](_0xeb169d){return this['_revisions']['get'](_0xeb169d);}['getRevisions'](_0x34bdf7={'toJSON':!0x1}){const _0x30b1bb=Array['from'](this['_revisions']);return _0x30b1bb['reverse'](),_0x34bdf7['toJSON']?_0x30b1bb['map'](_0x11ea40=>_0x11ea40['toJSON']()):_0x30b1bb;}['getIndex'](_0x10652a){return this['_revisions']['getIndex'](_0x10652a);}['getEarlierVisibleRevision'](_0x560093){const [,_0x59aa6e]=this['getRevisionsIterator'](_0x560093,{'direction':'earlier'});return _0x59aa6e;}['getLaterVisibleRevision'](_0x36459b){const [,_0x12fbaa]=this['getRevisionsIterator'](_0x36459b,{'direction':'later'});return _0x12fbaa;}['getRevisionsInDiff'](_0x143887){const _0x20bb1b=[];for(const _0x105a09 of this['getRevisionsIterator'](_0x143887['newRevisionId']))if(_0x20bb1b['push'](_0x105a09),_0x105a09['id']===_0x143887['oldRevisionId'])break;return _0x20bb1b;}*['getRevisionsIterator'](_0x453318,{direction:_0x14d67e='earlier',filter:_0x85bb9f=()=>!0x0}={}){const _0x4d3b0c='earlier'===_0x14d67e?0x1:-0x1;let _0x3e1fba=this['_revisions']['get'](_0x453318),_0x4892fa=this['getIndex'](_0x3e1fba);for(yield _0x3e1fba;_0x3e1fba;){if(_0x4892fa+=_0x4d3b0c,_0x3e1fba=this['getRevision'](_0x4892fa),!_0x3e1fba)return;_0x85bb9f(_0x3e1fba)&&(yield _0x3e1fba);}}}class $ extends _0x5c2b79{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1a2fdd,'c'],[_0x26a260,'a'],[_0x1c444e,'e'],[_0x35e6c8,'r'],[_0x2551aa,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1a2fdd],['a',_0x26a260],['e',_0x1c444e],['r',_0x35e6c8],['u',_0x2551aa]]);async['loadRevisionData'](_0x270af7,_0xf6f49d){if(_0x270af7['diffData']||!_0xf6f49d)return;const _0x373b77=this['editor']['config']['get']('collaboration.channelId'),_0x3a42a4=await _0xf6f49d['getRevision']({'channelId':_0x373b77,'revisionId':_0x270af7['id']});_0x270af7['diffData']=_0x3a42a4['diffData'];}['getRevisionDocumentData'](_0x5c9c21){const _0x38b087={};for(const _0x4ae3f8 in _0x5c9c21['diffData']){if(_0x5c9c21['diffData'][_0x4ae3f8]['attachChange']&&!_0x5c9c21['diffData'][_0x4ae3f8]['attachChange']['isAttached'])continue;const _0x2906b7=this['_removeRevisionMarkers'](JSON['parse'](_0x5c9c21['diffData'][_0x4ae3f8]['insertions'])),_0x294260=this['editor']['editing']['view']['document'],_0x145907=new _0x135a1e(_0x294260,_0x2906b7['map'](_0x1899d2=>this['_getViewFromDiffObj'](_0x1899d2,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x38b087[_0x4ae3f8]=this['editor']['data']['processor']['toData'](_0x145907),this['editor']['data']['processor']['useFillerType']('default');}return _0x38b087;}['getRevisionRootsAttributes'](_0x6e1216){const _0x4125e5={};for(const _0x59371e in _0x6e1216['diffData'])_0x6e1216['diffData'][_0x59371e]['attachChange']&&!_0x6e1216['diffData'][_0x59371e]['attachChange']['isAttached']||(_0x4125e5[_0x59371e]=_0x6e1216['diffData'][_0x59371e]['attributesAfter']||{});return _0x4125e5;}['_getTypeCharForViewElement'](_0x3cce1c){return this['_viewClassToTypeChar']['get'](_0x3cce1c['constructor']);}['_getViewFromDiffObj'](_0x1c1d70,_0x2322fe){const _0x1c2b9f=this['editor']['editing']['view']['document'];if('string'==typeof _0x1c1d70)return new _0x62e9bb(_0x1c2b9f,_0x1c1d70);{let _0x26128e,_0x222bc6;_0x222bc6='u'==_0x1c1d70['type']||'r'==_0x1c1d70['type']?[]:_0x1c1d70['children']['map'](_0x976c16=>this['_getViewFromDiffObj'](_0x976c16,_0x2322fe));const _0x143960=this['_typeCharToViewClass']['get'](_0x1c1d70['type'])||_0x1b767c,_0x4811aa=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x26128e=new _0x143960(_0x1c2b9f,_0x1c1d70['name'],_0x1c1d70['attributes'],_0x222bc6),'u'==_0x1c1d70['type']&&_0x1c1d70['children'][0x0]){const _0x135520=_0x1c1d70['children'][0x0];if(_0x26128e['render']=function(_0x55c151){const _0x3a7d72=_0x55c151['createElement']('div');return _0x3a7d72['innerHTML']=_0x135520,_0x3a7d72['childNodes'][0x0];},_0x2322fe){const _0x2c5af1=new _0x135a1e(_0x1c2b9f);_0x2c5af1['_appendChild'](_0x26128e);const _0x15aebe=Array['from'](_0x4811aa['viewChildrenToDom'](_0x2c5af1,{'bind':!0x1})),_0x36938e=_0x4811aa['domDocument']['createElement']('div');_0x36938e['append'](..._0x15aebe),_0x26128e=Array['from'](_0x4811aa['domChildrenToView'](_0x36938e))[0x0];}}else{if('r'==_0x1c1d70['type']&&_0x1c1d70['children'][0x0]){const _0x4f2117=_0x1c1d70['children'][0x0];if(_0x26128e['render']=function(_0x5660ab){_0x5660ab['innerHTML']=_0x4f2117;},_0x2322fe){const _0x52f973=new _0x135a1e(_0x1c2b9f);_0x52f973['_appendChild'](_0x26128e);const _0x3ce521=Array['from'](_0x4811aa['viewChildrenToDom'](_0x52f973,{'bind':!0x1})),_0x519562=_0x4811aa['domDocument']['createElement']('div');_0x519562['append'](..._0x3ce521);const _0x5dadcc=Array['from'](_0x4811aa['domChildrenToView'](_0x519562));_0x5dadcc['length']>0x1?_0x26128e['_appendChild'](_0x5dadcc):_0x26128e=_0x5dadcc[0x0];}}}if(_0x1c1d70['customProperties']){for(const [_0x53b1e0,_0x41e075]of _0x1c1d70['customProperties'])_0x26128e['_setCustomProperty'](_0x53b1e0,_0x41e075);}const _0x5af673=void 0x0===_0x1c1d70['fillerOffset']?null:_0x1c1d70['fillerOffset'];return null!==_0x5af673&&(_0x26128e['getFillerOffset']=()=>_0x5af673),_0x26128e;}}['_makeModelFromViewString'](_0x3d91ea){const _0x45471f=JSON['parse'](_0x3d91ea),_0x44c5a6=this['editor']['editing']['view']['document'],_0x2e6eba=new _0x135a1e(_0x44c5a6,_0x45471f['map'](_0x5a23b6=>this['_getViewFromDiffObj'](_0x5a23b6,!0x0)));return this['editor']['data']['toModel'](_0x2e6eba);}['_removeRevisionMarkers'](_0x14f8ce){return(_0x14f8ce=_0x14f8ce['filter'](_0x330901=>!_0x330901['name']||'revision-start'!==_0x330901['name']&&'revision-end'!==_0x330901['name']))['forEach'](_0x12aeaa=>{'string'!=typeof _0x12aeaa&&(_0x12aeaa['children']=this['_removeRevisionMarkers'](_0x12aeaa['children']),_0x12aeaa['attributes']=_0x12aeaa['attributes']['filter'](_0xe4885a=>!_0xe4885a[0x0]['startsWith']('data-revision-')));}),_0x14f8ce;}}function R(_0x1451e4,_0x3ff4fe,_0x24383b){const t=_0x1451e4['t'];switch(_0x3ff4fe){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'},_0x24383b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x24383b);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 _0x5c2b79{['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[_0x35979b,S,$,_0x15c55a];}constructor(_0x308d79){super(_0x308d79),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 _0x1b7b01=_0x1d7c29();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1b7b01},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 _0x24a4fb=this['repository']['getRevision'](0x0),_0x301a06=_0x24a4fb&&null===_0x24a4fb['creator']?_0x24a4fb:null;if(this['_continueCurrentRevision']=!!_0x301a06&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x394add=this['_source']['getCurrentRevisionId'](),_0x38aadd=this['repository']['getRevision'](_0x394add);if(_0x38aadd)this['_startingVersion']=_0x38aadd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2b6ed2=this['_source']['history']['_operations']['find'](_0xa9af2c=>!_0xa9af2c['_isInit']),_0x53f78d=_0x2b6ed2?_0x2b6ed2['baseVersion']:this['_source']['history']['version'];_0x24a4fb?(_0x24a4fb['toVersion']<_0x53f78d&&_0x24a4fb['_update']({'toVersion':_0x53f78d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x301a06['id'],this['_startingVersion']=_0x301a06['fromVersion']):(this['_startingVersion']=_0x24a4fb['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x53f78d,this['_continueCurrentRevision']=!0x1);}}else _0x301a06&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x301a06['toVersion'],this['editor']['model']['document']['history']['version']),_0x301a06['fromVersion']===_0x301a06['toVersion']?(0x0!==_0x301a06['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x301a06['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x301a06['id'],this['_startingVersion']=_0x301a06['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',_0x3651c7=>!_0x3651c7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e3498=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf6f97c;for(const _0x40d7a1 in _0x4e3498){const _0x563f1f=_0x40d7a1,_0x32c3bb=_0x4e3498[_0x563f1f];if('revisionHistoryLicenseKeyValid'==_0x32c3bb||'revisionHistoryLicenseKeyInvalid'==_0x32c3bb||'revisionHistoryLicenseKeyExpired'==_0x32c3bb||'revisionHistoryLicenseKeyDomainLimit'==_0x32c3bb||'revisionHistoryLicenseKeyNotAllowed'==_0x32c3bb||'revisionHistoryLicenseKeyEvaluationLimit'==_0x32c3bb||'revisionHistoryLicenseKeyTrialLimit'==_0x32c3bb||'revisionHistoryLicenseKeyUsageLimit'==_0x32c3bb){delete _0x4e3498[_0x563f1f],_0xf6f97c=_0x32c3bb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xf6f97c&&_0x4e3498['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xf6f97c&&_0x4e3498['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xf6f97c&&_0x4e3498['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xf6f97c&&_0x4e3498['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xf6f97c&&_0x4e3498['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xf6f97c&&_0x4e3498['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xf6f97c&&_0x4e3498['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5d7898=this['repository']['getRevision'](0x0),_0x522a2f=await this['getRevisionDocumentData'](_0x5d7898),_0x220dd3=await this['getRevisionRootsAttributes'](_0x5d7898);this['_replaceEditorDataWithRevisionData'](_0x522a2f,_0x220dd3);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1a1317){this['_source']=_0x1a1317;}async['update'](){const _0xff3685=await this['_source']['getLatestVersion']();if(_0xff3685>this['currentRevision']['toVersion']){await this['_loadState']();const _0x360e96=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xff3685});_0x360e96['authors']=_0x360e96['authorsIds']['map'](_0x1957e9=>this['editor']['plugins']['get']('Users')['getUser'](_0x1957e9)),this['currentRevision']['_update'](_0x360e96);}}async['saveRevision'](_0x4c0b57={},_0x26ea50=null){const _0x110af0=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x26ea50>this['currentRevision']['toVersion']&&(_0x26ea50=null),null===_0x26ea50&&(_0x26ea50=await this['_source']['getLatestVersion']());const _0x389f0b=this['_getFromVersion'](_0x26ea50),_0x1a7a7b=this['buildRevisionData']({'from':_0x389f0b,'to':_0x26ea50});if(this['currentRevision']['toVersion']<_0x26ea50){const _0x179a81=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x26ea50,'to':_0x26ea50});_0x179a81['authors']=[],_0x179a81['authorsIds']=[],_0x179a81['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x179a81,!0x0),delete _0x179a81['authors'],_0x110af0['push'](_0x179a81);}_0x4c0b57['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c0b57['name']=_0x4c0b57['name']||null,_0x4c0b57['id']=_0x4c0b57['id']||_0x1d7c29(),_0x4c0b57={..._0x4c0b57,..._0x1a7a7b};const _0x541b33=this['addRevisionData'](_0x4c0b57);_0x110af0['push'](_0x4c0b57);const _0x4c90fa=this['repository']['getIndex'](_0x541b33);if(0x0!==_0x4c90fa){const _0x4a462b=this['repository']['getRevision'](_0x4c90fa-0x1);if(_0x4a462b['fromVersion']!==_0x26ea50){const _0xf1673=this['_revisionDataBuilder']['getData'](_0x26ea50,_0x4a462b['toVersion']),_0x48eba2={'id':_0x4a462b['id'],'diffData':_0xf1673['diffData'],'authorsIds':_0xf1673['authorsIds'],'authors':_0xf1673['authorsIds']['map'](_0x1b86cd=>this['editor']['plugins']['get']('Users')['getUser'](_0x1b86cd)),'fromVersion':_0x26ea50};_0x4a462b===this['currentRevision']&&(_0x48eba2['createdAt']=new Date(_0x4c0b57['createdAt']['getTime']()+0xa)),_0x4a462b['_update'](_0x48eba2,!0x0),delete _0x48eba2['authors'],_0x110af0['push'](_0x48eba2);}}if(this['adapter']){for(const _0x11bb01 of _0x110af0)this['_bufferUpdate'](_0x11bb01['id'],_0x11bb01,!0x0);this['sendBufferedUpdates']();}return _0x541b33;}['addRevisionData'](_0x1b8a29){const _0x139080=this['repository']['createRevision'](_0x1b8a29);return this['adapter']&&_0x139080['on']('_update',(_0xcf9d4f,_0xd34865,_0x57bcd7)=>{_0x57bcd7||(this['_bufferUpdate'](_0xd34865['id'],_0xd34865,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x139080,this['_findInsertionIndex'](_0x139080)),_0x139080;}async['getRevisionDocumentData'](_0x11f08e){return await this['_utils']['loadRevisionData'](_0x11f08e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x11f08e);}async['getRevisionRootsAttributes'](_0xf8c957){return await this['_utils']['loadRevisionData'](_0xf8c957,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xf8c957);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x477c53=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xfa9cd0=0x0;_0xfa9cd0<_0x477c53['length'];_0xfa9cd0++){const _0x1020e2=_0x477c53[_0xfa9cd0];let _0x364e8e=!0x1;for(const _0x2e29b1 of Object['keys'](_0x1020e2))void 0x0===_0x1020e2[_0x2e29b1]?delete _0x1020e2[_0x2e29b1]:'id'!==_0x2e29b1&&(_0x364e8e=!0x0);_0x364e8e||(_0x477c53[_0xfa9cd0]=null);}if(_0x477c53=_0x477c53['filter'](_0x551351=>null!==_0x551351),!_0x477c53['length'])return;for(let _0x4b7d98=0x0;_0x4b7d98<_0x477c53['length'];_0x4b7d98++){const _0x203873=_0x477c53[_0x4b7d98];void 0x0!==_0x203873['fromVersion']&&void 0x0===_0x203873['toVersion']&&(_0x203873['toVersion']=this['repository']['getRevision'](_0x203873['id'])['toVersion']),void 0x0!==_0x203873['toVersion']&&void 0x0===_0x203873['fromVersion']&&(_0x203873['fromVersion']=this['repository']['getRevision'](_0x203873['id'])['fromVersion']);}const _0x272c66=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x477c53,_0x272c66)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x107ef6=>{if(_0x107ef6){for(const _0x245e96 of _0x107ef6)this['setRevisionData']({'id':_0x245e96['id'],'createdAt':_0x245e96['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x319354=null,from:_0xd9994b=null,to:_0x304d32=null}){_0xd9994b=null!==_0xd9994b?_0xd9994b:_0x319354['fromVersion'],_0x304d32=null!==_0x304d32?_0x304d32:_0x319354['toVersion'];const _0x225e09=this['_revisionDataBuilder']['getData'](_0xd9994b,_0x304d32),_0x6309c8={'diffData':_0x225e09['diffData'],'authorsIds':_0x225e09['authorsIds'],'fromVersion':_0xd9994b,'toVersion':_0x304d32};if(!_0x319354||_0x304d32!==_0x319354['toVersion']){const _0x415547=_0x304d32-0x1,_0x462bb4=this['_source']['history']['getOperation'](_0x415547);_0x6309c8['createdAt']=_0x462bb4&&_0x462bb4['createdAt']||new Date();}if(this['_loadedStateData']&&_0xd9994b===this['_loadedStateData']['fromVersion']){for(const _0x489948 of this['_loadedStateData']['authors'])_0x6309c8['authorsIds']['includes'](_0x489948['id'])||_0x6309c8['authorsIds']['push'](_0x489948['id']);}return _0x6309c8;}['_bufferUpdate'](_0x24c1d7,_0x4f1e58,_0x37ade0){if(this['_bufferedUpdates']['has'](_0x24c1d7)){const _0x4e39a5=this['_bufferedUpdates']['get'](_0x24c1d7);_0x4f1e58=_0x37ade0?{..._0x4e39a5,..._0x4f1e58}:{..._0x4f1e58,..._0x4e39a5};}this['_bufferedUpdates']['set'](_0x24c1d7,_0x4f1e58);}['setRevisionData'](_0x194727){const _0x49fe8b=this['repository']['getRevision'](_0x194727['id']);if(_0x194727['createdAt']&&(_0x194727['createdAt']=new Date(_0x194727['createdAt'])),_0x194727['authorsIds']){const _0x3b472e=this['editor']['plugins']['get']('Users');_0x194727['authors']=_0x194727['authorsIds']['map'](_0xf98316=>_0x3b472e['getUser'](_0xf98316));}_0x49fe8b['_update'](_0x194727,!0x0);}['_createInitialRevision'](_0x2799b3){const _0x15128d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x15128d)this['_initialRevisionId']=_0x15128d['id'];else{const _0x45c000=!this['editor']['model']['document']['roots']['find'](_0x113566=>this['editor']['model']['hasContent'](_0x113566)),_0x4761c0=this['editor']['plugins']['get']('Users')['me']['id'],_0x384e64=R(this['editor']['locale'],_0x45c000?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2799b3,'to':_0x2799b3,'id':this['_initialRevisionId'],'name':_0x384e64,'creatorId':_0x4761c0});}}['_createCurrentRevision'](_0x453558){const _0x453aa0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x453aa0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x453558,'to':_0x453558,'id':_0x453aa0,'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'](_0x355697,_0x4c4542){let _0x2197cf=this['editor']['config']['get']('initialData'),_0x7e0f3d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2197cf){_0x2197cf={};for(const _0x42b509 of this['editor']['model']['document']['getRootNames']())_0x2197cf[_0x42b509]='';}if('string'==typeof _0x2197cf&&(_0x2197cf={'main':_0x2197cf}),void 0x0===_0x7e0f3d){_0x7e0f3d={};for(const _0x2916bf of this['editor']['model']['document']['getRootNames']())_0x7e0f3d[_0x2916bf]={};}let _0x484df9=!0x1;const _0x1eb22a=Object['keys'](_0x2197cf),_0x3319ea=Object['keys'](_0x355697);for(const _0x2167e5 of _0x1eb22a){if(_0x2197cf[_0x2167e5]!==_0x355697[_0x2167e5]&&''!==_0x2197cf[_0x2167e5]['trim']()){_0x484df9=!0x0;break;}if(!_0xa2c9de(_0x7e0f3d[_0x2167e5],_0x4c4542[_0x2167e5])&&Object['keys'](_0x7e0f3d[_0x2167e5])['length']>0x0){_0x484df9=!0x0;break;}}_0x484df9||(_0x484df9=_0x3319ea['some'](_0x582911=>!this['editor']['model']['document']['getRoot'](_0x582911))),_0x484df9&&_0x3c46a5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2197cf,'editorRootsAttributes':_0x7e0f3d,'revisionData':_0x355697,'revisionRootsAttributes':_0x4c4542}),this['editor']['config']['set']('initialData',_0x355697),this['editor']['config']['set']('rootsAttributes',_0x4c4542);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x21354f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x21354f['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x52e067){const _0x179a5f=this['repository']['getRevisions']();_0x179a5f['reverse']();let _0x12f661=0x0;for(;_0x12f661<_0x179a5f['length'];){const _0x5a953e=_0x179a5f[_0x12f661];if(_0x5a953e===this['currentRevision']){_0x12f661++;continue;}if(_0x5a953e['id']===this['_initialRevisionId'])break;const _0x39f4af=_0x52e067['toVersion']-_0x5a953e['toVersion']||_0x52e067['fromVersion']-_0x5a953e['fromVersion'];if(_0x39f4af>0x0)break;if(_0x39f4af<0x0)_0x12f661++;else{if(!_0x52e067['creator']&&_0x5a953e['creator'])break;if(_0x5a953e['creator']||!_0x52e067['creator']){if(_0x52e067['createdAt']>_0x5a953e['createdAt'])break;_0x12f661++;}else _0x12f661++;}}return _0x12f661;}['_getFromVersion'](_0x3013c4){const _0x32b515=this['repository']['getRevisions']();_0x32b515['reverse'](),_0x32b515['shift']();const _0x5087c8=_0x32b515['find'](_0x5a078c=>_0x5a078c['toVersion']<=_0x3013c4)['toVersion'];return _0x5087c8<this['_startingVersion']?this['_startingVersion']:_0x5087c8;}['_makeRevision']({name:_0x1945fb,from:_0x271584,to:_0xb118a2,creatorId:_0x3e95bf,id:_0x5d9746}){const _0x7c9978=this['buildRevisionData']({'from':_0x271584,'to':_0xb118a2});_0x7c9978['name']=_0x1945fb,_0x7c9978['creatorId']=_0x3e95bf,_0x7c9978['id']=_0x5d9746;const _0x2c03c2=this['addRevisionData'](_0x7c9978);return this['adapter']&&this['_bufferUpdate'](_0x7c9978['id'],_0x7c9978,!0x0),_0x2c03c2;}['_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(_0x44bd9e){this['editor']=_0x44bd9e,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'](_0x58767b){this['source']=_0x58767b;const _0x20b32f=new Map(),_0x388c58=new Map(),_0x2a0e98=this['editor']['model']['document']['roots']['map'](_0x3141d1=>_0x3141d1['rootName']);for(const _0x3dc9c3 of _0x2a0e98){const _0x3274b9=this['editor']['model']['document']['getRoot'](_0x3dc9c3),_0x40bd81=x(_0x3274b9);_0x20b32f['set'](_0x3dc9c3,_0x40bd81),_0x388c58['set'](_0x3dc9c3,Object['fromEntries'](_0x3274b9['getAttributes']()));}const _0x4b395c=Array['from'](this['editor']['model']['markers'])['map'](_0x7b3adf=>[_0x7b3adf['name'],_0x7b3adf['getRange']()]),_0x120966=this['source']['version'];this['_saveMetaData'](_0x120966,_0x20b32f,_0x4b395c,_0x388c58),this['_startingRevisionId']=this['_revisionId'];const _0x29f83c=new Map(),_0x5c15ec=new Map();for(const _0x7a65c9 of _0x2a0e98){const _0x4d94c8=N(_0x7a65c9);_0x29f83c['set'](_0x7a65c9,_0x4d94c8),_0x5c15ec['set'](_0x7a65c9,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x29f83c,[],_0x5c15ec);}['getData'](_0x4bce0e,_0x15ad4b){if(this['_lastFrom']===_0x4bce0e&&this['_lastTo']<=_0x15ad4b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x15ad4b,!0x0);else{if(!this['_savedMetaData']['has'](_0x4bce0e)){const _0x576ff2=this['_getPreviousFrom'](_0x4bce0e);this['_calculateMetaData'](_0x576ff2,_0x4bce0e,!0x1);}this['_calculateMetaData'](_0x4bce0e,_0x15ad4b,!0x0);}return this['_lastFrom']=_0x4bce0e,this['_lastTo']=_0x15ad4b,this['_getState']();}['loadState'](_0x345d79){const _0x31514c=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x345d79['fromVersion'],this['_lastTo']=_0x345d79['toVersion'];for(const _0x1224eb in _0x345d79['diffData']){const _0xf46d13=_0x345d79['diffData'][_0x1224eb]['attachChange'],_0x39a391=_0x452048(_0x345d79['diffData'][_0x1224eb]['attributesBefore'])||{},_0x148605=_0x31514c['_makeModelFromViewString'](_0x345d79['diffData'][_0x1224eb]['deletions']);_0x148605['rootName']=_0x1224eb,_0x148605['_isAttached']=!_0xf46d13||!_0xf46d13['isAttached'],_0x148605['isAttached']=()=>_0x148605['_isAttached'],this['_baseRoots']['set'](_0x1224eb,_0x148605),this['_baseRootsAttributes']['set'](_0x1224eb,_0x39a391),_0xf46d13&&this['_touchedRoots']['set'](_0x1224eb,_0xf46d13);const _0x24e161=this['_makeIdsRoot'](_0x148605);this['_baseIdsRoots']['set'](_0x1224eb,_0x24e161);for(const [_0x4c5613,_0xd28de9]of _0x148605['markers']){if(!_0x4c5613['startsWith']('revision:'))continue;const _0xf7c69b=_0x4c5613['split'](':')[0x2];for(const _0x357082 of _0xd28de9['getWalker']({'singleCharacters':!0x0})){const _0x86cf8=this['_getVidAttributeName'](_0x357082),_0x1f59c0='elementEnd'==_0x357082['type']?_0x357082['previousPosition']['path']['slice'](0x0,-0x1):_0x357082['previousPosition']['path'],_0x9be06f=_0x24e161['getNodeByPath'](_0x1f59c0)['getAttribute'](_0x86cf8);this['_touched']['set'](_0x9be06f,{'userId':_0xf7c69b});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3269af=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xe00e62=>!this['_touched']['has'](_0xe00e62));let _0x3dd439=0x0;const _0xbe2d99=new Map();for(const _0x4f4f88 in _0x345d79['diffData']){const _0x5d4b71=_0x345d79['diffData'][_0x4f4f88]['attachChange'],_0x58f543=_0x452048(_0x345d79['diffData'][_0x4f4f88]['attributesAfter'])||{},_0x4b13d9=_0x31514c['_makeModelFromViewString'](_0x345d79['diffData'][_0x4f4f88]['insertions']);_0x4b13d9['rootName']=_0x4f4f88,_0x4b13d9['_isAttached']=!_0x5d4b71||_0x5d4b71['isAttached'],_0x4b13d9['isAttached']=()=>_0x4b13d9['_isAttached'],this['_diffRoots']['set'](_0x4f4f88,_0x4b13d9),this['_diffRootsAttributes']['set'](_0x4f4f88,_0x58f543);const _0x7f18c8=this['_makeIdsRoot'](_0x4b13d9,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4f4f88,_0x7f18c8),_0xbe2d99['set'](_0x4f4f88,_0x4b13d9['isAttached']()?_0x58f543:{});for(const [_0x3c67b8,_0x3ffb03]of _0x4b13d9['markers']){if(!_0x3c67b8['startsWith']('revision:'))continue;const _0x2b3eca=_0x3c67b8['split'](':')[0x2];for(const _0x3805a5 of _0x3ffb03['getWalker']({'singleCharacters':!0x0})){const _0x2867e7=this['_getVidAttributeName'](_0x3805a5),_0x398de6=this['_revisionId']++,_0x5b726a='elementEnd'==_0x3805a5['type']?_0x3805a5['previousPosition']['path']['slice'](0x0,-0x1):_0x3805a5['previousPosition']['path'];_0x7f18c8['getNodeByPath'](_0x5b726a)['_setAttribute'](_0x2867e7,_0x398de6),this['_touched']['set'](_0x398de6,{'userId':_0x2b3eca});}}for(const _0x4ffa4b of this['editor']['model']['createRangeIn'](_0x4b13d9)['getWalker']({'singleCharacters':!0x0})){const _0x59bf7e=this['_getVidAttributeName'](_0x4ffa4b),_0x57dddc='elementEnd'==_0x4ffa4b['type']?_0x4ffa4b['previousPosition']['path']['slice'](0x0,-0x1):_0x4ffa4b['previousPosition']['path'],_0x86c2ec=_0x7f18c8['getNodeByPath'](_0x57dddc);_0x86c2ec['getAttribute'](_0x59bf7e)>0x0||_0x86c2ec['_setAttribute'](_0x59bf7e,_0x3269af[_0x3dd439++]);}for(const [_0xc0e756,_0x49b821]of _0x4b13d9['markers'])_0xc0e756['startsWith']('revision:')||this['_markers']['set'](_0xc0e756,_0x49b821);}const _0x3067cb=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3067cb),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3067cb,0x1));const _0x11b8eb=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x11b8eb),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x11b8eb,0x1));const _0x43857f=Array['from'](this['_diffRoots'])['map'](([_0x8f795e,_0x3311b0])=>[_0x8f795e,x(_0x3311b0)]);this['_saveMetaData'](this['_lastTo'],_0x43857f,this['_markers'],_0xbe2d99);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x291a70,_0x491be9,_0x23be7f,_0x208acf){const _0x52db72=new Map(_0x491be9),_0x442341=new Map(_0x452048(_0x208acf)),_0x153f01=new Map();for(const [_0x137dec,_0x102cfb]of _0x23be7f)_0x153f01['set'](_0x137dec,{'start':_0x102cfb['start']['clone'](),'end':_0x102cfb['end']['clone'](),'rootName':_0x102cfb['root']['rootName']});this['_savedMetaData']['set'](_0x291a70,{'roots':_0x52db72,'markers':_0x153f01,'rootsAttributes':_0x442341});}['_removeMetaData'](_0x15266e){this['_savedMetaData']['delete'](_0x15266e);}['_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'](_0x2d89d5,_0x1da025=null){let _0x38c04d=null;_0x2d89d5['is']('documentFragment')||(_0x38c04d=new _0x1e48aa(_0x2d89d5['name'],{'vid_start':null===_0x1da025?this['_revisionId']++:_0x1da025++}));const _0x3307b6=[];for(const _0x32c297 of _0x2d89d5['getChildren']())if(_0x32c297['is']('element')){_0x3307b6['push'](this['_makeIdsRoot'](_0x32c297,_0x1da025));const _0xd80be3=_0x3307b6[_0x3307b6['length']-0x1];null!==_0x1da025&&(_0x1da025=_0xd80be3['is']('element','$text')?_0xd80be3['getAttribute']('vid')+0x1:_0xd80be3['getAttribute']('vid_end')+0x1);}else{for(let _0x3fc260=0x0;_0x3fc260<_0x32c297['offsetSize'];_0x3fc260++)_0x3307b6['push'](new _0x1e48aa('$text',{'vid':null===_0x1da025?this['_revisionId']++:_0x1da025++}));}if(_0x2d89d5['is']('documentFragment')){const _0x3a9b2d=N(_0x2d89d5['rootName']);return _0x3a9b2d['_insertChild'](0x0,_0x3307b6),_0x3a9b2d;}return _0x38c04d['_setAttribute']('vid_end',null===_0x1da025?this['_revisionId']++:_0x1da025++),_0x38c04d['_insertChild'](0x0,_0x3307b6),_0x38c04d;}['_calculateMetaData'](_0x194437,_0x3190f9,_0x512287){this['_reset']();const {roots:_0x52f239,markers:_0xcfb00a,rootsAttributes:_0x54c181}=this['_savedMetaData']['get'](_0x194437);this['_baseRoots']=new Map(_0x52f239),this['_baseRootsAttributes']=new Map(_0x452048(_0x54c181));for(const [_0x5cb87f,_0x497ddc]of this['_baseRoots'])if('$graveyard'!==_0x5cb87f&&(this['_diffRoots']['set'](_0x5cb87f,x(_0x497ddc)),this['_diffRootsAttributes']=new Map(_0x452048(_0x54c181)),_0x512287)){const _0x41e68c=this['_revisionId'];this['_idsRoots']['set'](_0x5cb87f,this['_makeIdsRoot'](_0x497ddc)),this['_baseIdsRoots']['set'](_0x5cb87f,this['_makeIdsRoot'](_0x497ddc,_0x41e68c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x512287&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x24c0d3,_0x3b1d42]of _0xcfb00a){const _0x95f306=this['_baseRoots']['get'](_0x3b1d42['rootName']),_0x1f06d1=this['_diffRoots']['get'](_0x3b1d42['rootName']),_0x474ced=new _0x18a03a(this['_fixPosition'](_0x3b1d42['start'],_0x95f306),this['_fixPosition'](_0x3b1d42['end'],_0x95f306)),_0x19054d=this['_fixRange'](_0x474ced,_0x1f06d1);_0x95f306['markers']['set'](_0x24c0d3,_0x474ced),this['_markers']['set'](_0x24c0d3,_0x19054d);}this['_applyOperations'](_0x194437,_0x3190f9,_0x512287);}['_applyOperations'](_0x541133,_0x218a31,_0x33c863){for(const _0x5c8a02 of this['source']['getOperations'](_0x541133,_0x218a31))this['_handleOperation'](_0x5c8a02,_0x33c863);for(const _0x12ac8f of this['_diffRoots']['values']())_0x12ac8f['markers']['clear']();for(const [_0x50485d,_0x1578f4]of this['_markers']){this['_diffRoots']['get'](_0x1578f4['root']['rootName'])['markers']['set'](_0x50485d,_0x1578f4['clone']());}const _0x59eb53=new Map(),_0x1b1417=new Map();for(const [_0x439493,_0x55ae5c]of this['_diffRoots'])_0x59eb53['set'](_0x439493,x(_0x55ae5c)),_0x1b1417['set'](_0x439493,this['_diffRootsAttributes']['get'](_0x439493));this['_saveMetaData'](_0x218a31,_0x59eb53,this['_markers'],_0x1b1417);}['_getPreviousFrom'](_0x13b4ad){const _0x2b2518=Array['from'](this['_savedMetaData']['keys']());_0x2b2518['sort']((_0x224b12,_0x588c7c)=>_0x224b12-_0x588c7c),_0x2b2518['reverse']();for(const _0x4afca6 of _0x2b2518)if(_0x4afca6<_0x13b4ad)return _0x4afca6;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x566690,_0x148dd5){const _0x2b3dfb=Array['from'](_0x148dd5['markers'])['map'](([_0x44c22b,_0x1cfb7f])=>[_0x44c22b,this['_fixRange'](_0x1cfb7f,_0x566690)]);_0x566690['markers']=new Map(_0x2b3dfb);}['_transformMarkers'](_0x404593){for(const _0x332fc4 of this['_markers']['values']()){const _0x3a5263=_0x332fc4['getTransformedByOperation'](_0x404593),_0x2ecbe2=_0x18a03a['_createFromRanges'](_0x3a5263);_0x332fc4['start']=_0x2ecbe2['start'],_0x332fc4['end']=_0x2ecbe2['end'];}}['_handleOperation'](_0x52d0f2,_0x302c4e){if('addRoot'!=_0x52d0f2['type']&&'detachRoot'!=_0x52d0f2['type']){if('insert'==_0x52d0f2['type']){const _0x8cd3d0=_0x52d0f2['position']['root']['rootName'];this['_diffRoots']['has'](_0x8cd3d0)||(this['_diffRoots']['set'](_0x8cd3d0,N(_0x8cd3d0,!0x0)),this['_diffRootsAttributes']['set'](_0x8cd3d0,{}),_0x302c4e&&this['_idsRoots']['set'](_0x8cd3d0,N(_0x8cd3d0,!0x0)));}else{if('addRootAttribute'==_0x52d0f2['type']||'removeRootAttribute'==_0x52d0f2['type']||'changeRootAttribute'==_0x52d0f2['type'])return void this['_handleRootAttributeOperation'](_0x52d0f2);'marker'==_0x52d0f2['type']&&this['_handleMarkerOperation'](_0x52d0f2);}if('marker'!==_0x52d0f2['type']){const _0x5351eb=this['_cloneOperation'](_0x52d0f2,this['_diffRoots']);_0x5351eb['_execute'](),this['_transformMarkers'](_0x5351eb);}if(_0x302c4e)switch(_0x52d0f2['type']){case'insert':this['_handleInsertOperation'](_0x52d0f2);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x52d0f2);break;case'merge':this['_handleMergeOperation'](_0x52d0f2);break;case'split':this['_handleSplitOperation'](_0x52d0f2);}}else this['_handleRootOperation'](_0x52d0f2,_0x302c4e);}['_cloneOperation'](_0x44e82f,_0x16d13e){const _0xbb773=_0x44e82f['clone']();return _0xbb773['_authorId']=_0x44e82f['_authorId'],this['_fixOperation'](_0xbb773,_0x16d13e),_0xbb773;}['_getBaseVids'](_0x4dc19f){return _0x4dc19f['map'](_0x35a13a=>{const _0x1e73d3=this['_getVidAttributeName'](_0x35a13a);return Number(_0x35a13a['item']['getAttribute'](_0x1e73d3));});}['_generateTape'](_0x10837e,_0x5acecd){if(_0x10837e['is']('element','$text'))_0x5acecd['push']({'item':_0x10837e,'type':'text'});else{_0x10837e['is']('element')&&_0x5acecd['push']({'item':_0x10837e,'type':'elementStart'});for(const _0x4542d1 of _0x10837e['getChildren']())this['_generateTape'](_0x4542d1,_0x5acecd);_0x10837e['is']('element')&&_0x5acecd['push']({'item':_0x10837e,'type':'elementEnd'});}return _0x5acecd;}['_getState'](){const _0x11deae=new Map(this['_touched']),_0x1b8d55=new Map(_0x11deae),_0x438462=new Map(),_0x342f45={'insertions':{},'deletions':{}},_0xf51b62={'insertions':{},'deletions':{}},_0x229ddf=new Map(),_0xbe6f15=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xbe6f15['delete']('$graveyard');for(const _0x543ac5 of _0xbe6f15){const _0x1c2326=this['_diffRoots']['get'](_0x543ac5)||N(_0x543ac5,!0x1),_0x4a17eb=this['_baseRoots']['get'](_0x543ac5)||N(_0x543ac5,!0x1);_0x1c2326['isAttached']()||_0x4a17eb['isAttached']()?(_0x342f45['insertions'][_0x543ac5]=x(_0x1c2326),_0x342f45['deletions'][_0x543ac5]=x(_0x4a17eb),this['_copyMarkers'](_0x342f45['deletions'][_0x543ac5],_0x4a17eb),this['_copyMarkers'](_0x342f45['insertions'][_0x543ac5],_0x1c2326),_0xf51b62['insertions'][_0x543ac5]=this['_generateTape'](this['_idsRoots']['get'](_0x543ac5),[]),_0xf51b62['deletions'][_0x543ac5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x543ac5)||N(_0x543ac5,!0x1),[])):_0xbe6f15['delete'](_0x543ac5);}for(const _0x2505d0 of _0xbe6f15){const _0x137dca=_0xf51b62['insertions'][_0x2505d0];for(const _0x38c1d1 of _0x137dca){const _0x4cfe0b=this['_getVidAttributeName'](_0x38c1d1),_0x46f17c=_0x38c1d1['item']['getAttribute'](_0x4cfe0b);_0x1b8d55['delete'](_0x46f17c),_0x46f17c>=this['_startingRevisionId']&&_0x438462['set'](_0x46f17c,_0x11deae['get'](_0x46f17c));}}for(const _0x1d31fc of _0xbe6f15){const _0x3160bf=_0xf51b62['insertions'][_0x1d31fc],_0x19e945=this['_getBaseVids'](_0xf51b62['deletions'][_0x1d31fc]);let _0x327561=0x0;for(const _0x7d0605 of _0x3160bf){const _0x5dfef1=this['_getVidAttributeName'](_0x7d0605),_0x572e54=_0x7d0605['item']['getAttribute'](_0x5dfef1);if(!_0x438462['has'](_0x572e54)&&!_0x229ddf['has'](_0x572e54)){if(_0x1b8d55['has'](_0x572e54))_0x327561++;else{if(_0x572e54!=_0x19e945[_0x327561]){const _0x1f2c8e=_0x11deae['get'](_0x572e54)||_0x11deae['get'](_0x19e945[_0x327561]);for(;_0x572e54!=_0x19e945[_0x327561];)_0x1b8d55['has'](_0x19e945[_0x327561])||(_0x229ddf['set'](_0x19e945[_0x327561],_0x1f2c8e),_0x11deae['set'](_0x19e945[_0x327561],_0x1f2c8e)),_0x327561++;}_0x327561++;}}}}for(const _0x4774cc of _0xbe6f15){const _0x449ef0=_0xf51b62['insertions'][_0x4774cc];for(const _0x33e9c3 of _0x449ef0){const _0xf4a420=this['_getVidAttributeName'](_0x33e9c3),_0x1dfce1=_0x33e9c3['item']['getAttribute'](_0xf4a420);if(_0x229ddf['has'](_0x1dfce1)){const _0x844498=_0x229ddf['get'](_0x1dfce1);_0x1b8d55['has'](_0x1dfce1)||_0x1b8d55['set'](_0x1dfce1,{..._0x844498}),_0x438462['set'](_0x1dfce1,{..._0x844498});}}}for(const _0x3718a5 of _0x1b8d55['keys']())_0x3718a5>=this['_startingRevisionId']&&_0x1b8d55['delete'](_0x3718a5);const _0xd75771=new Map();for(const _0x3b57fb of _0xbe6f15){let _0x1b44f8=_0xf51b62['insertions'][_0x3b57fb];for(const _0x8e23a7 of _0x1b44f8)if(_0x8e23a7['item']['is']('element','tableCell')){const _0x5bd5a6=this['_getVidAttributeName'](_0x8e23a7),_0xd42f16=_0x8e23a7['item']['getAttribute'](_0x5bd5a6);if(_0x438462['has'](_0xd42f16)){const _0x23894d=_0x8e23a7['item']['parent']['parent']['getAttribute']('vid_start'),_0x17930b=_0xd75771['get'](_0x23894d)||new Set();_0x17930b['add'](_0x438462['get'](_0xd42f16)['userId']),_0xd75771['set'](_0x23894d,_0x17930b);}}_0x1b44f8=_0xf51b62['deletions'][_0x3b57fb];for(const _0x2c64cd of _0x1b44f8)if(_0x2c64cd['item']['is']('element','tableCell')){const _0x2a5665=this['_getVidAttributeName'](_0x2c64cd),_0x1fac44=_0x2c64cd['item']['getAttribute'](_0x2a5665);if(_0x1b8d55['has'](_0x1fac44)){const _0x260084=_0x2c64cd['item']['parent']['parent']['getAttribute']('vid_start'),_0x47b2dd=_0xd75771['get'](_0x260084)||new Set();_0x47b2dd['add'](_0x1b8d55['get'](_0x1fac44)['userId']),_0xd75771['set'](_0x260084,_0x47b2dd);}}for(const _0x3393a5 of _0xd75771['keys']())(_0x438462['has'](_0x3393a5)||_0x1b8d55['has'](_0x3393a5))&&_0xd75771['delete'](_0x3393a5);}for(const _0x183ea2 of _0xbe6f15){const _0x28990b=_0xf51b62['insertions'][_0x183ea2];let _0x1823cf=null,_0x179bcb=null;for(const _0x4fe9b9 of _0x28990b){const _0x502cc3=this['_getVidAttributeName'](_0x4fe9b9),_0x3a7b6e=_0x4fe9b9['item']['getAttribute'](_0x502cc3),_0x324d0c=_0xd75771['get'](_0x3a7b6e);_0x324d0c&&'elementStart'==_0x4fe9b9['type']&&(_0x1823cf=Array['from'](_0x324d0c)[0x0],_0x179bcb=_0x4fe9b9['item']['getAttribute']('vid_end')),_0x1823cf&&(_0x1b8d55['set'](_0x3a7b6e,{'userId':_0x1823cf}),_0x438462['set'](_0x3a7b6e,{'userId':_0x1823cf})),_0x3a7b6e==_0x179bcb&&(_0x1823cf=null,_0x179bcb=null);}}const _0x10c227={},_0xcfba64=new Set();for(const _0xa17629 of _0xbe6f15){const _0x20c5bb=_0x342f45['deletions'][_0xa17629],_0x422696=_0x342f45['insertions'][_0xa17629];for(const {userId:_0x2099de}of this['_touchedMarkers']['values']())null!==_0x2099de&&_0xcfba64['add'](_0x2099de);for(const {userId:_0x4c98fc}of this['_touchedRoots']['values']())null!==_0x4c98fc&&_0xcfba64['add'](_0x4c98fc);this['_markChanges'](_0x422696,_0xf51b62['insertions'][_0xa17629],_0x438462,'insertion',_0xcfba64),this['_markChanges'](_0x20c5bb,_0xf51b62['deletions'][_0xa17629],_0x1b8d55,'deletion',_0xcfba64),_0x10c227[_0xa17629]={'insertions':this['_prepareViewToSave'](_0x422696),'deletions':this['_prepareViewToSave'](_0x20c5bb),'attachChange':this['_touchedRoots']['get'](_0xa17629)||null,'attributesBefore':_0x452048(this['_baseRootsAttributes']['get'](_0xa17629))||{},'attributesAfter':_0x452048(this['_diffRootsAttributes']['get'](_0xa17629))};}return{'diffData':_0x10c227,'authorsIds':Array['from'](_0xcfba64)};}['_processRootBeforeSave'](_0x16166d){for(const [,_0x8670dd]of _0x16166d['markers']){const _0x5ce896=_0x8670dd['start']['getAncestors']()['filter'](_0x1e8cb1=>'tableCell'==_0x1e8cb1['name']);for(const _0x2736b1 of _0x5ce896)0x1==_0x2736b1['childCount']&&_0x2736b1['getChild'](0x0)['is']('element','paragraph')&&_0x2736b1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4621ad){this['_processRootBeforeSave'](_0x4621ad);const _0x1f8038=this['editor']['data']['toView'](_0x4621ad,{}),_0x82ad07=Array['from'](_0x1f8038['getChildren']())['map'](_0x103d8e=>this['_getViewJson'](_0x103d8e));return JSON['stringify'](_0x82ad07);}['_getViewJson'](_0x1ad26a){if(_0x1ad26a['is']('$text'))return _0x1ad26a['data'];{const _0x45367a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x28ffd9=_0x1ad26a,_0x71647c=this['editor']['data']['htmlProcessor']['domConverter'],_0x55ad26={'type':_0x45367a['_getTypeCharForViewElement'](_0x28ffd9),'name':_0x28ffd9['name'],'attributes':Array['from'](_0x28ffd9['getAttributes']()),'children':Array['from'](_0x28ffd9['getChildren']())['map'](_0x447642=>this['_getViewJson'](_0x447642))};if(_0x1ad26a['is']('uiElement')&&'$comment'!=_0x1ad26a['name']){const _0x3b845d=_0x1ad26a['render'](_0x71647c['domDocument'],_0x71647c);_0x55ad26['children']['push'](_0x3b845d['outerHTML']);}else{if(_0x1ad26a['is']('rawElement')){const _0x2a2024=_0x71647c['domDocument']['createElement'](_0x28ffd9['name']);_0x1ad26a['render'](_0x2a2024,_0x71647c),_0x55ad26['children']['push'](_0x2a2024['innerHTML']);}}const _0x1a4cb1=Array['from'](_0x28ffd9['getCustomProperties']());_0x1a4cb1['length']>0x0&&(_0x55ad26['customProperties']=_0x1a4cb1);const _0x30a900=_0x28ffd9['getFillerOffset']();return null!==_0x30a900&&(_0x55ad26['fillerOffset']=_0x30a900),_0x55ad26;}}['_markChanges'](_0x16df2f,_0x164e3a,_0x8dbfdb,_0x33601c,_0x397d50){let _0x30ad63=null,_0x49772d=null,_0x58477f=0x0;const _0x384872=this['editor']['model'];for(let _0x5925de=0x0;_0x5925de<_0x164e3a['length'];_0x5925de++){const _0x159199=this['_getVidAttributeName'](_0x164e3a[_0x5925de]),_0x410074=_0x164e3a[_0x5925de]['item']['getAttribute'](_0x159199),_0x594340=_0x8dbfdb['get'](_0x410074),_0x8520d6=_0x5925de==_0x164e3a['length']-0x1;(!_0x30ad63&&_0x594340&&(_0x30ad63=_0x594340,_0x49772d=_0x164e3a[_0x5925de]),_0x30ad63&&(!_0x594340||_0x594340['userId']!=_0x30ad63['userId']))&&(_0x1cdeda(_0x594340,P(_0x49772d,_0x16df2f,_0x384872),P(_0x164e3a[_0x5925de],_0x16df2f,_0x384872)),_0x30ad63=_0x594340||null,_0x49772d=_0x594340?_0x164e3a[_0x5925de]:null),_0x30ad63&&_0x8520d6&&_0x1cdeda(_0x594340,P(_0x49772d,_0x16df2f,_0x384872),V(_0x164e3a[_0x5925de],_0x16df2f,_0x384872));}function _0x1cdeda(_0x23cf4e,_0x597130,_0x262a9c){const _0x466cff=_0x30ad63['userId'],_0x228db0='revision:'+_0x33601c+':'+_0x466cff+':'+_0x58477f++,_0xa99aeb=_0x384872['createRange'](_0x597130,_0x262a9c);_0x16df2f['markers']['set'](_0x228db0,_0xa99aeb),null!==_0x466cff&&_0x397d50['add'](_0x466cff);}}['_getVidAttributeName'](_0xd4f2f){switch(_0xd4f2f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x568046,_0x14dbfc){_0x568046['baseVersion']=null;for(const _0x5dafba in _0x568046){const _0xd4c1fc=_0x568046[_0x5dafba];if(_0xd4c1fc instanceof _0x31921d){const _0x225f73=_0x14dbfc['get'](_0xd4c1fc['root']['rootName']);_0x568046[_0x5dafba]=this['_fixPosition'](_0xd4c1fc,_0x225f73);}if(_0xd4c1fc instanceof _0x18a03a){const _0x3c6e3d=_0x14dbfc['get'](_0xd4c1fc['root']['rootName']);_0x568046[_0x5dafba]=this['_fixRange'](_0xd4c1fc,_0x3c6e3d);}'root'===_0x5dafba&&(_0x568046['root']=_0x14dbfc['get'](_0x568046['root']['rootName']));}}['_fixRange'](_0x48ca5a,_0x539e1f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x48ca5a['start'],_0x539e1f),this['_fixPosition'](_0x48ca5a['end'],_0x539e1f));}['_fixPosition'](_0x59e325,_0x52bfb7){return this['editor']['model']['createPositionFromPath'](_0x52bfb7,_0x59e325['path'],_0x59e325['stickiness']);}['_handleInsertOperation'](_0x3fbe08){const _0xd35c17=this['_idsRoots']['get'](_0x3fbe08['position']['root']['rootName']),_0xe1010b=this['_fixPosition'](_0x3fbe08['position'],_0xd35c17),_0x4cbb87=null===_0x3fbe08['_authorId']?null:_0x3fbe08['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57521a=_0xe1010b['parent'],_0x57f172=this['_revisionId'],_0xf56b15=[];for(const _0x5e29d7 of _0x3fbe08['nodes'])if(_0x5e29d7['is']('element'))_0xf56b15['push'](this['_makeIdsRoot'](_0x5e29d7));else{for(let _0x4b7fde=0x0;_0x4b7fde<_0x5e29d7['offsetSize'];_0x4b7fde++)_0xf56b15['push'](new _0x1e48aa('$text',{'vid':this['_revisionId']++}));}const _0x32292d=this['_revisionId'];for(let _0x5636b7=_0x57f172;_0x5636b7<_0x32292d;_0x5636b7++)this['_touched']['set'](_0x5636b7,{'userId':_0x4cbb87});_0x57521a['_insertChild'](_0xe1010b['offset'],_0xf56b15);}['_handleMoveOperation'](_0x3a0e84){(_0x3a0e84=this['_cloneOperation'](_0x3a0e84,this['_idsRoots']))['_execute']();const _0x536706=null===_0x3a0e84['_authorId']?null:_0x3a0e84['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8b00b8=_0x3a0e84['getMovedRangeStart'](),_0x46b8b8=_0x8b00b8['parent'],_0x2255c4=_0x8b00b8['offset'];!function _0x10180e(_0x8e1513,_0x1d0efb,_0xc53085,_0x3e4bb9){for(let _0x28e347=_0xc53085;_0x28e347<_0x3e4bb9;_0x28e347++){const _0x5ae5f6=_0x1d0efb['getChild'](_0x28e347);_0x5ae5f6['is']('element','$text')?_0x8e1513['set'](_0x5ae5f6['getAttribute']('vid'),{'userId':_0x536706}):(_0x8e1513['set'](_0x5ae5f6['getAttribute']('vid_start'),{'userId':_0x536706}),_0x10180e(_0x8e1513,_0x5ae5f6,0x0,_0x5ae5f6['childCount']),_0x8e1513['set'](_0x5ae5f6['getAttribute']('vid_end'),{'userId':_0x536706}));}}(this['_touched'],_0x46b8b8,_0x2255c4,_0x2255c4+_0x3a0e84['howMany']);}['_handleMergeOperation'](_0x16f194){const _0x554cdf=null===(_0x16f194=this['_cloneOperation'](_0x16f194,this['_idsRoots']))['_authorId']?null:_0x16f194['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2910c4=_0x16f194['targetPosition']['parent'],_0x10ef97=_0x16f194['sourcePosition']['parent'],_0x59ea32=_0x2910c4['getAttribute']('vid_end'),_0x228bb0=_0x10ef97['getAttribute']('vid_start');_0x2910c4['_setAttribute']('vid_end',_0x10ef97['getAttribute']('vid_end')),_0x10ef97['_setAttribute']('vid_end',_0x59ea32),this['_touched']['set'](_0x228bb0,{'userId':_0x554cdf}),this['_touched']['set'](_0x59ea32,{'userId':_0x554cdf}),_0x16f194['_execute']();}['_handleSplitOperation'](_0xb7263b){const _0x3c90c1=null===(_0xb7263b=this['_cloneOperation'](_0xb7263b,this['_idsRoots']))['_authorId']?null:_0xb7263b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x181b19=_0xb7263b['graveyardPosition'],_0x2b7a46=_0xb7263b['splitPosition']['parent'];_0xb7263b['_execute']();const _0x1643b1=_0x2b7a46['getAttribute']('vid_end'),_0x2bdc39=_0xb7263b['insertionPosition']['nodeAfter'];if(_0x181b19){const _0x2ed033=_0x2bdc39['getAttribute']('vid_end'),_0x2621cf=_0x2b7a46['getAttribute']('vid_end');_0x2b7a46['_setAttribute']('vid_end',_0x2ed033),_0x2bdc39['_setAttribute']('vid_end',_0x2621cf),this['_touched']['set'](_0x2b7a46['getAttribute']('vid_end'),{'userId':_0x3c90c1}),this['_touched']['set'](_0x2bdc39['getAttribute']('vid_start'),{'userId':_0x3c90c1});}else{const _0x3d5c9d=this['_revisionId']++,_0x3de9db=this['_revisionId']++;_0x2b7a46['_setAttribute']('vid_end',_0x3d5c9d),_0x2bdc39['_setAttribute']('vid_start',_0x3de9db),_0x2bdc39['_setAttribute']('vid_end',_0x1643b1),this['_touched']['set'](_0x3d5c9d,{'userId':_0x3c90c1}),this['_touched']['set'](_0x3de9db,{'userId':_0x3c90c1});}}['_handleMarkerOperation'](_0x335358){if(!_0x335358['affectsData'])return;const _0x2c79c3=(_0x335358=this['_cloneOperation'](_0x335358,this['_diffRoots']))['oldRange']?_0x335358['oldRange']['root']:null,_0x37137f=_0x335358['newRange']?_0x335358['newRange']['root']:null;_0x2c79c3&&this['_markers']['delete'](_0x335358['name']),_0x37137f&&this['_markers']['set'](_0x335358['name'],_0x335358['newRange']['clone']());const _0x153961=null===_0x335358['_authorId']?null:_0x335358['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a960e=_0x335358['name'];if(!this['_touchedMarkers']['has'](_0x1a960e))return void this['_touchedMarkers']['set'](_0x1a960e,{'range':_0x335358['oldRange'],'userId':_0x153961});const _0x2ff157=this['_touchedMarkers']['get'](_0x1a960e),_0x141e41=_0x2ff157['range'],_0x2957dc=_0x335358['newRange'];null==_0x141e41&&null==_0x2957dc||_0x141e41&&_0x2957dc&&_0x141e41['isEqual'](_0x2957dc)?this['_touchedMarkers']['delete'](_0x335358['name']):_0x2ff157['userId']=_0x153961;}['_handleRootOperation'](_0x703f55,_0x2ee1c3){this['_diffRoots']['has'](_0x703f55['rootName'])?this['_diffRoots']['get'](_0x703f55['rootName'])['_isAttached']=_0x703f55['isAdd']:(this['_diffRoots']['set'](_0x703f55['rootName'],N(_0x703f55['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x703f55['rootName'],{}),_0x2ee1c3&&this['_idsRoots']['set'](_0x703f55['rootName'],N(_0x703f55['rootName'],!0x0)));const _0x445025=null===_0x703f55['_authorId']?null:_0x703f55['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a1962=this['_touchedRoots']['get'](_0x703f55['rootName']);_0x3a1962&&_0x3a1962['userId']===_0x445025?this['_touchedRoots']['delete'](_0x703f55['rootName']):this['_touchedRoots']['set'](_0x703f55['rootName'],{'userId':_0x445025,'isAttached':_0x703f55['isAdd']});}['_handleRootAttributeOperation'](_0x6d9c8e){const _0x32d379=this['_diffRootsAttributes']['get'](_0x6d9c8e['root']['rootName']);null===_0x6d9c8e['newValue']?delete _0x32d379[_0x6d9c8e['key']]:_0x32d379[_0x6d9c8e['key']]=_0x6d9c8e['newValue'];}}function x(_0xd814b6){const _0x5f2b07=N(_0xd814b6['rootName'],_0xd814b6['isAttached']());for(const _0x435e0e of _0xd814b6['getChildren']()){const _0x42d423=_0x435e0e['_clone'](!0x0);_0x5f2b07['_appendChild'](_0x42d423);}return _0x5f2b07;}function N(_0x291872,_0x4a11ec=!0x0){const _0x22eb90=new _0x571bbc();return _0x22eb90['rootName']=_0x291872,_0x22eb90['_isAttached']=_0x4a11ec,_0x22eb90['isAttached']=()=>_0x22eb90['_isAttached'],_0x22eb90;}function P(_0x7cd1ec,_0x5c2d7a,_0x56638a){const _0x5198a4='elementEnd'==_0x7cd1ec['type']?_0x56638a['createPositionAt'](_0x7cd1ec['item'],'end'):_0x56638a['createPositionBefore'](_0x7cd1ec['item']);return _0x56638a['createPositionFromPath'](_0x5c2d7a,_0x5198a4['path'],_0x5198a4['stickiness']);}function V(_0x482aeb,_0x32a7f0,_0x4a2510){const _0x5f5517='elementStart'==_0x482aeb['type']?_0x4a2510['createPositionAt'](_0x482aeb['item'],0x0):_0x4a2510['createPositionAfter'](_0x482aeb['item']);return _0x4a2510['createPositionFromPath'](_0x32a7f0,_0x5f5517['path'],_0x5f5517['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x56035f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x37121a){super(),this['id']=_0x37121a['id']||_0x1d7c29(),this['author']=_0x37121a['author'],this['type']=_0x37121a['type'],this['data']=_0x37121a['data']||{},this['rootName']=_0x37121a['rootName'],this['set']('createdAt',_0x37121a['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(_0x52d771,_0x147651){this['newRevisionId']=_0x52d771,this['oldRevisionId']=_0x147651,this['changes']=new _0x638e22();}['_setChanges'](_0xa72a7e){for(const _0x12a1ee of _0xa72a7e)this['changes']['add'](_0x12a1ee);}}class l extends _0x5c2b79{['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[_0x35979b,_0x15036,S,$];}constructor(_0x19ba06){super(_0x19ba06),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',(_0x1f6fe0,_0x5cfcc9,_0x3b9e3c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x233c22=>{for(const _0x3c914e of this['editor']['editing']['view']['document']['roots'])_0x3b9e3c?_0x233c22['removeClass']('ck-editor__editable__overlay',_0x3c914e):_0x233c22['addClass']('ck-editor__editable__overlay',_0x3c914e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x48fc5c=>null!==_0x48fc5c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1208bf,_0x469eb1,_0x52df65)=>_0x1208bf&&_0x52df65?_0x469eb1['changes']['getIndex'](_0x52df65):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xed6729,_0x4542df)=>_0xed6729?_0x4542df['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x15036);}['init'](){const _0x1e1857=this['editor'],_0x2ab8e0=new ot(_0x1e1857,{'direction':'backward'}),_0x4033da=new ot(_0x1e1857,{'direction':'forward'});(_0x1e1857['commands']['add']('showPreviousChange',_0x2ab8e0),_0x1e1857['commands']['add']('showNextChange',_0x4033da),_0x1e1857['commands']['add']('restoreRevision',new nt(_0x1e1857)),this['on']('change:numberOfChanges',()=>{_0x2ab8e0['refresh'](),_0x4033da['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1e1857['enableReadOnlyMode']('revision-viewer'),_0x1e1857['plugins']['has']('WidgetToolbarRepository'))&&_0x1e1857['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0xc0a951){return await this['_utils']['loadRevisionData'](_0xc0a951,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xc0a951);}async['getRevisionRootsAttributes'](_0x138fa1){return await this['_utils']['loadRevisionData'](_0x138fa1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x138fa1);}async['compare'](_0x4a3444,_0x49f40e,_0xe0ecfd=!0x1){if(!this['isEnabled'])return;const _0x398882=this['diff'],_0xed1b74=this['repository'],_0x43f69c='string'==typeof _0x4a3444?_0xed1b74['getRevision'](_0x4a3444):_0x4a3444,_0x21210a='string'==typeof _0x49f40e?_0xed1b74['getRevision'](_0x49f40e):_0x49f40e,_0x34a6d2=_0x43f69c['id'],_0x2d8995=_0x21210a?_0x21210a['id']:null;if(!_0xe0ecfd&&this['diff']&&this['diff']['newRevisionId']===_0x34a6d2&&this['diff']['oldRevisionId']===_0x2d8995)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x34a6d2,_0x2d8995);const _0x3a948f=this['_getRevisionsRange'](_0x43f69c,_0x21210a,!0x0)['map'](_0x5aa544=>this['_utils']['loadRevisionData'](_0x5aa544,this['adapter']));return _0x3a948f['push'](new Promise(_0x374660=>{setTimeout(_0x374660,0x14);})),Promise['all'](_0x3a948f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x22ddc0=this['_getDiff'](_0x34a6d2,_0x2d8995);for(const _0x5a3d8f of _0x22ddc0['changes'])this['_changeIdToChange']['set'](_0x5a3d8f['id'],_0x5a3d8f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4096d=>{for(const _0x4443d2 of this['editor']['model']['document']['getRootNames']())_0x4096d['detachRoot'](_0x4443d2);for(const _0x5ee1fc of Object['keys'](_0x22ddc0['model'])){const _0x2d8902=_0x4096d['addRoot'](_0x5ee1fc);for(const _0x33bede of Object['keys'](_0x22ddc0['attributes'][_0x5ee1fc]))_0x4096d['setAttribute'](_0x33bede,_0x22ddc0['attributes'][_0x5ee1fc][_0x33bede],_0x2d8902);_0x4096d['insert'](_0x22ddc0['model'][_0x5ee1fc],_0x2d8902,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x22ddc0['changes'])),this['isReady']=!0x0;})['catch'](_0x5610bb=>{console['error'](_0x5610bb),this['_cleanUp'](),_0x398882&&(this['diff']=_0x398882),this['isReady']=!0x0;});}['addRevisionData'](_0x5b0be2,_0x27d03){const _0x4b6e62=this['repository']['createRevision'](_0x5b0be2);return _0x4b6e62['on']('_update',(_0xd8c8,_0x16c74c,_0x5d784b)=>_0x27d03(_0x16c74c,_0x5d784b,_0x4b6e62)),this['repository']['addRevision'](_0x4b6e62),_0x4b6e62;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x293c33=>{for(const _0x422f55 of this['editor']['model']['document']['getRootNames']())_0x293c33['detachRoot'](_0x422f55);});}['_sortAndFilterDiffChanges'](_0x4dd93d){const _0x11a8fa=[],_0x1f72cf=new Map();for(const _0x31ca35 of this['editor']['model']['document']['getRootNames']()){const _0x56ffa0=this['editor']['editing']['view']['getDomRoot'](_0x31ca35);if(!_0x56ffa0)continue;const _0x15673a=_0x56ffa0['getClientRects']()['item'](0x0);_0x15673a&&(_0x11a8fa['push'](_0x31ca35),_0x1f72cf['set'](_0x31ca35,_0x15673a));}return _0x11a8fa['sort']((_0x17513e,_0x56e22d)=>{const _0x11b1c7=_0x1f72cf['get'](_0x17513e),_0x3a0c8a=_0x1f72cf['get'](_0x56e22d);return _0x11b1c7['y']-_0x3a0c8a['y']||_0x11b1c7['x']-_0x3a0c8a['x'];}),(_0x4dd93d=_0x4dd93d['filter'](_0x5e40b0=>_0x11a8fa['includes'](_0x5e40b0['rootName'])))['sort']((_0x2401b6,_0x16bc15)=>_0x11a8fa['indexOf'](_0x2401b6['rootName'])-_0x11a8fa['indexOf'](_0x16bc15['rootName'])),_0x4dd93d;}['_makeTape'](_0x79015a){const _0xb6d088=Array['from'](_0x79015a['markers'])['filter'](([_0xa1f18,_0x17afac])=>_0xa1f18['startsWith']('revision:')&&!_0x17afac['isCollapsed']),_0x42b89d=Array['from'](this['editor']['model']['createRangeIn'](_0x79015a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xb6d088['length'])for(const _0x11c4f9 of _0x42b89d){const [_0xd47189,_0x3936cc]=_0xb6d088[0x0],[,_0x2f3c24,_0xe0c240]=_0xd47189['split'](':');if(_0x3936cc['end']['isEqual'](_0x11c4f9['nextPosition'])&&_0xb6d088['shift'](),(_0x11c4f9['previousPosition']['isEqual'](_0x3936cc['start'])||_0x11c4f9['previousPosition']['isAfter'](_0x3936cc['start']))&&('insertion'==_0x2f3c24?_0x11c4f9['isAdded']={'userId':_0xe0c240}:'deletion'==_0x2f3c24&&(_0x11c4f9['isRemoved']={'userId':_0xe0c240})),0x0==_0xb6d088['length'])break;}return _0x42b89d;}['_refreshStartEndIndex'](_0x27da4e){const _0x4b0757=new Map();for(let _0x2b8f21=0x0;_0x2b8f21<_0x27da4e['length'];_0x2b8f21++)'text'===_0x27da4e[_0x2b8f21]['type']?(_0x27da4e[_0x2b8f21]['item']['startIndex']=_0x2b8f21,_0x27da4e[_0x2b8f21]['item']['endIndex']=_0x2b8f21):('elementStart'===_0x27da4e[_0x2b8f21]['type']?_0x27da4e[_0x2b8f21]['item']['startIndex']=_0x2b8f21:'elementEnd'===_0x27da4e[_0x2b8f21]['type']&&(_0x27da4e[_0x2b8f21]['item']['endIndex']=_0x2b8f21),_0x4b0757['set'](_0x27da4e[_0x2b8f21]['id'],_0x2b8f21));for(const _0x5d8b51 of _0x4b0757['values']())'elementStart'===_0x27da4e[_0x5d8b51]['type']?_0x27da4e[_0x5d8b51]['item']['endIndex']=_0x4b0757['get'](_0x27da4e[_0x5d8b51]['pairId']):'elementEnd'===_0x27da4e[_0x5d8b51]['type']&&(_0x27da4e[_0x5d8b51]['item']['startIndex']=_0x4b0757['get'](_0x27da4e[_0x5d8b51]['pairId']));}['_processTape'](_0x370500){for(let _0x196ab8=0x0;_0x196ab8<_0x370500['length'];_0x196ab8++){if('elementStart'===_0x370500[_0x196ab8]['type'])_0x370500[_0x196ab8]['item']['startIndex']=_0x196ab8;else{if('elementEnd'===_0x370500[_0x196ab8]['type']){_0x370500[_0x196ab8]['item']['endIndex']=_0x196ab8;const _0x4fa9ea=_0x370500[_0x196ab8]['item']['startIndex'];_0x370500[_0x4fa9ea]['pairId']=_0x370500[_0x196ab8]['id'],_0x370500[_0x196ab8]['pairId']=_0x370500[_0x4fa9ea]['id'];}else _0x370500[_0x196ab8]['item']['startIndex']=_0x196ab8,_0x370500[_0x196ab8]['item']['endIndex']=_0x196ab8,_0x370500[_0x196ab8]['pairId']=null;}_0x370500[_0x196ab8]['markersStart']||(_0x370500[_0x196ab8]['markersStart']=[],_0x370500[_0x196ab8]['markersEnd']=[]);}}['_markInsertions'](_0x45dcc7,_0x241f55){const _0x242fc0=_0x45dcc7['filter'](_0x454177=>!_0x454177['isAdded']);for(let _0xb61925=0x0;_0xb61925<_0x241f55['length'];_0xb61925++)_0x241f55[_0xb61925]['isAdded']&&(_0x242fc0[_0xb61925]['isAdded']=_0x241f55[_0xb61925]['isAdded']);}['_getDiff'](_0x2dd40c,_0x4c475b=null){const _0x4326fd=this['repository']['getRevision'](_0x2dd40c),_0x566dd7=_0x4c475b?this['repository']['getRevision'](_0x4c475b):null,_0x13e256=this['_getRevisionsRange'](_0x4326fd,_0x566dd7),_0x36a975=_0x13e256[_0x13e256['length']-0x1],_0xbf4f68=new Map(),_0x4325fd={'model':{},'attributes':{},'changes':[]},_0x5c890d=new Set(),_0x943dc0=new Map();for(let _0x5b1280=_0x13e256['length']-0x1;_0x5b1280>=0x0;_0x5b1280--){const _0x568517=_0x13e256[_0x5b1280];for(const _0x44726a of Object['keys'](_0x568517['diffData']))if(_0x568517['diffData'][_0x44726a]['attachChange']){const _0x5ab1c6=_0x568517['diffData'][_0x44726a]['attachChange'];_0x5ab1c6['isAttached']?(_0x5c890d['add'](_0x44726a),_0x943dc0['has'](_0x44726a)&&_0x943dc0['get'](_0x44726a)['userId']==_0x5ab1c6['userId']?_0x943dc0['delete'](_0x44726a):_0x943dc0['set'](_0x44726a,_0x5ab1c6)):_0x943dc0['has'](_0x44726a)?(_0x5c890d['delete'](_0x44726a),_0x943dc0['delete'](_0x44726a)):(_0x5c890d['add'](_0x44726a),_0x943dc0['set'](_0x44726a,_0x5ab1c6));}else _0x5c890d['add'](_0x44726a);}for(const _0xb12566 of _0x5c890d){const _0x3eb81b=_0x943dc0['has'](_0xb12566)&&!_0x943dc0['get'](_0xb12566)['isAttached'];let _0x1122b3=_0x3eb81b?_0x13e256['length']-0x1:0x0;const _0x3c0e86=_0x3eb81b?-0x1:0x1;for(;_0x13e256[_0x1122b3];){const _0x135a2=_0x13e256[_0x1122b3];if(_0x135a2['diffData'][_0xb12566]){const _0x309722=_0x3eb81b?_0x135a2['diffData'][_0xb12566]['attributesBefore']:_0x135a2['diffData'][_0xb12566]['attributesAfter'];_0x4325fd['attributes'][_0xb12566]=_0x309722?_0x452048(_0x309722):{};break;}_0x1122b3+=_0x3c0e86;}}for(const _0x2027f7 of _0x13e256){_0x2027f7['model']={};for(const _0x4a2611 of _0x2027f7['authors'])_0xbf4f68['set'](_0x4a2611['id'],_0x4a2611);for(const _0x5ed0fe of _0x5c890d){const _0x1eaf7c=_0x2027f7['diffData'][_0x5ed0fe]?_0x2027f7['diffData'][_0x5ed0fe]['insertions']:'[]',_0x5659bc=_0x2027f7['diffData'][_0x5ed0fe]?_0x2027f7['diffData'][_0x5ed0fe]['deletions']:'[]';_0x2027f7['model'][_0x5ed0fe]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1eaf7c),'deletions':this['_utils']['_makeModelFromViewString'](_0x5659bc)};}}for(const _0x525ffb of _0x5c890d){let _0x1bb152=null,_0x5541de=0x0;const _0x30fa13=new Map(Array['from'](_0x4326fd['model'][_0x525ffb]['insertions']['markers'])['filter'](([_0x40f133])=>!_0x40f133['startsWith']('revision:')));let _0x59f8c0=0x0;for(const _0x532ada of _0x13e256){const _0x8c455c=this['_makeTape'](_0x532ada['model'][_0x525ffb]['insertions']);_0x532ada==_0x4326fd?(_0x1bb152=_0x8c455c,_0x5541de=_0x1bb152['length'],_0x1bb152['forEach'](_0x2c9e1f=>{_0x2c9e1f['id']=_0x59f8c0++;}),this['_processTape'](_0x1bb152)):this['_markInsertions'](_0x1bb152,_0x8c455c);const _0x28a251=_0x1bb152['filter'](_0x4afedf=>!_0x4afedf['isAdded'])['map'](_0x35df4c=>_0x35df4c['id']);let _0x3660c4=0x0;const _0x20ab7a=this['_makeTape'](_0x532ada['model'][_0x525ffb]['deletions']);_0x20ab7a['forEach'](_0x134dbf=>{_0x134dbf['isRemoved']?_0x134dbf['id']=_0x5541de++:_0x134dbf['id']=_0x28a251[_0x3660c4++];}),this['_processTape'](_0x20ab7a),this['_setDistance'](_0x1bb152,'isAdded'),this['_setDistance'](_0x20ab7a,'isRemoved'),_0x532ada==_0x4326fd&&this['_markMarkers'](_0x1bb152,_0x30fa13),_0x1bb152=this['_joinTapes'](_0x1bb152,_0x20ab7a),this['_refreshStartEndIndex'](_0x1bb152),this['_setDistance'](_0x1bb152,'isRemoved');}_0x1bb152=_0x1bb152['filter'](_0x40d120=>!(_0x40d120['isAdded']&&_0x40d120['isRemoved']));const _0x5cfd22=new Map(_0x36a975['model'][_0x525ffb]['deletions']['markers']),_0x1334a7=new Set(_0x30fa13['keys']());for(const _0x57a0e9 of _0x5cfd22['keys']())_0x1334a7['delete'](_0x57a0e9);this['_markSuggestions'](_0x1bb152,_0x1334a7),this['_fixObsoleteTags'](_0x1bb152),_0x1bb152=this['_removeMissingPairs'](_0x1bb152),_0x1bb152=this['_markMismatchedRemovedTags'](_0x1bb152),_0x1bb152=this['_removeUnsupportedChanges'](_0x1bb152);const {root:_0x389024,changes:_0x1fa9ad}=this['_makeModelFromTape'](_0x1bb152,_0xbf4f68,_0x525ffb);_0x4325fd['model'][_0x525ffb]=_0x389024;const _0x3694aa=_0x943dc0['get'](_0x525ffb);if(_0x3694aa){const _0x7f699=_0xbf4f68['get'](_0x3694aa['userId']),_0x4bdb15=new G({'author':_0x7f699,'type':_0x3694aa['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x525ffb});_0x1fa9ad['unshift'](_0x4bdb15),_0x4325fd['attributes'][_0x525ffb]['revisionHistoryAttachChange']=_0x4bdb15['id'];}_0x4325fd['changes']=_0x4325fd['changes']['concat'](_0x1fa9ad);}return _0x4325fd;}['_markMarkers'](_0x414afe,_0x4cb35){for(let _0x105975=0x0;_0x105975<_0x414afe['length'];_0x105975++)for(const [_0x43c29a,_0x147f1c]of _0x4cb35)!_0x147f1c['isCollapsed']&&_0x147f1c['start']['isEqual'](_0x414afe[_0x105975]['previousPosition'])&&_0x414afe[_0x105975]['markersStart']['push'](_0x43c29a),_0x147f1c['end']['isEqual'](_0x414afe[_0x105975]['nextPosition'])&&_0x414afe[_0x105975]['markersEnd']['push'](_0x43c29a);}['_joinTapes'](_0x3c6dca,_0x37ea3e){let _0x1a0b73=[],_0xdb469f=0x0,_0x50152c=0x0;for(;_0xdb469f<_0x3c6dca['length']||_0x50152c<_0x37ea3e['length'];){const _0x5dfa38=_0x3c6dca[_0xdb469f]||{},_0x547d1a=_0x37ea3e[_0x50152c]||{};if(_0x5dfa38['id']==_0x547d1a['id'])_0xdb469f++,_0x50152c++,_0x1a0b73['push'](_0x5dfa38);else{if(_0x547d1a['isRemoved']&&_0x5dfa38['isAdded']){const {commonTape:_0x3f970f,iEnd:_0x33ca7b,jEnd:_0x13b6cf}=this['_threeWayMerge'](_0x3c6dca,_0xdb469f,_0x37ea3e,_0x50152c);_0x1a0b73=_0x1a0b73['concat'](_0x3f970f),_0xdb469f=_0x33ca7b,_0x50152c=_0x13b6cf;}else _0x547d1a['isRemoved']?(_0x50152c++,_0x1a0b73['push'](_0x547d1a)):(_0xdb469f++,_0x1a0b73['push'](_0x5dfa38));}}return _0x1a0b73;}['_markSuggestions'](_0x9084a9,_0x1355e4){const _0x12c755=[];for(let _0x27cd86=0x0;_0x27cd86<_0x9084a9['length'];_0x27cd86++){for(let _0x1e0107=0x0;_0x1e0107<_0x9084a9[_0x27cd86]['markersStart']['length'];_0x1e0107++){const _0x718662=_0x9084a9[_0x27cd86]['markersStart'][_0x1e0107];if(!_0x1355e4['has'](_0x718662))continue;const {group:_0x224df8,type:_0x41e8f7,authorId:_0x6451f8}=_0x36d330(_0x718662);'revision-suggestion'!=_0x224df8||'insertion'!=_0x41e8f7&&'deletion'!=_0x41e8f7||(_0x12c755['unshift']({'type':_0x41e8f7,'name':_0x718662,'userId':_0x6451f8}),_0x9084a9[_0x27cd86]['markersStart']['splice'](_0x1e0107,0x1),_0x1e0107--);}_0x317869(_0x9084a9[_0x27cd86]);for(let _0x5c82d9=0x0;_0x5c82d9<_0x9084a9[_0x27cd86]['markersEnd']['length'];_0x5c82d9++){const _0x59b07a=_0x9084a9[_0x27cd86]['markersEnd'][_0x5c82d9];if(!_0x1355e4['has'](_0x59b07a))continue;const {group:_0x41c9bd,type:_0x288442}=_0x36d330(_0x59b07a);if('revision-suggestion'!=_0x41c9bd||'insertion'!=_0x288442&&'deletion'!=_0x288442)continue;_0x9084a9[_0x27cd86]['markersEnd']['splice'](_0x5c82d9,0x1),_0x5c82d9--;const _0x4e81c7=_0x12c755['findIndex'](_0x1701eb=>_0x1701eb['name']==_0x59b07a);_0x4e81c7>-0x1&&_0x12c755['splice'](_0x4e81c7,0x1);}}function _0x36d330(_0x185313){const _0x22d039=_0x185313['split'](':');return{'group':_0x22d039[0x0],'type':_0x22d039[0x1],'subType':_0x22d039['length']>=0x5?_0x22d039[0x2]:null,'id':_0x22d039['length']<0x5?_0x22d039[0x2]:_0x22d039[0x3],'authorId':_0x22d039['length']<0x5?_0x22d039[0x3]:_0x22d039[0x4],'markerCount':0x6==_0x22d039['length']?_0x22d039[0x5]:null};}function _0x317869(_0x36b36a){for(let _0x1aea3b=0x0;_0x1aea3b<_0x12c755['length'];_0x1aea3b++){if(_0x36b36a['isAdded']&&'insertion'==_0x12c755[_0x1aea3b]['type']&&_0x36b36a['isAdded']['userId']==_0x12c755[_0x1aea3b]['userId'])return _0x36b36a['isAddSuggestion']=_0x12c755[_0x1aea3b],void delete _0x36b36a['isAdded'];if(!_0x36b36a['isAdded']&&!_0x36b36a['isRemoved']&&'deletion'==_0x12c755[_0x1aea3b]['type'])return void(_0x36b36a['isRemoveSuggestion']=_0x12c755[_0x1aea3b]);}}}['_setDistance'](_0x1ba6b4,_0x3b31fc){let _0x1186c2=0x0,_0x140da7=!0x1;const _0x3719fb=new Map();for(const _0x4637c8 of _0x1ba6b4)_0x4637c8[_0x3b31fc]?_0x140da7&&(_0x1186c2++,_0x140da7=!0x1):(_0x1186c2++,_0x140da7=!0x0),_0x3719fb['set'](_0x4637c8['id'],_0x1186c2);for(let _0x304e54=0x0;_0x304e54<_0x1ba6b4['length'];_0x304e54++){if('isRemoved'==_0x3b31fc&&_0x1ba6b4[_0x304e54]['isAdded']||'isAdded'==_0x3b31fc&&_0x1ba6b4[_0x304e54]['isRemoved'])continue;if('text'==_0x1ba6b4[_0x304e54]['type']){_0x1ba6b4[_0x304e54]['distance']=0x0;continue;}const _0x24b3e9=_0x3719fb['get'](_0x1ba6b4[_0x304e54]['pairId']),_0x1ab782=_0x3719fb['get'](_0x1ba6b4[_0x304e54]['id']);_0x1ba6b4[_0x304e54]['distance']=_0x24b3e9-_0x1ab782;}}['_getRevisionsRange'](_0x35de55,_0x5b04a9,_0x2e2d05=!0x1){const _0x5c2dbe=[];let _0x46ac89=this['repository']['getIndex'](_0x35de55),_0x3f7cc3=this['repository']['getIndex'](_0x5b04a9);for(-0x1==_0x3f7cc3&&(_0x3f7cc3=this['repository']['_revisions']['length'],_0x2e2d05=!0x1);_0x46ac89<_0x3f7cc3;)_0x5c2dbe['push'](this['repository']['getRevision'](_0x46ac89)),_0x46ac89++;return _0x2e2d05&&_0x5c2dbe['push'](this['repository']['getRevision'](_0x46ac89)),_0x5c2dbe;}['_threeWayMerge'](_0x3146fb,_0x46921a,_0x28b3b1,_0x4419cc){const _0x39fff1=this['editor']['model']['schema'];let _0xa1b95b=_0x46921a;for(;_0x3146fb[_0xa1b95b]&&_0x3146fb[_0xa1b95b]['isAdded'];)_0xa1b95b++;let _0x5db542=_0x4419cc;for(;_0x28b3b1[_0x5db542]&&_0x28b3b1[_0x5db542]['isRemoved'];)_0x5db542++;_0x52b39b(_0x3146fb,_0x46921a,_0xa1b95b),_0x52b39b(_0x28b3b1,_0x4419cc,_0x5db542);const _0x195491=_0x28b3b1['slice'](_0x4419cc,_0x5db542)['concat'](_0x3146fb['slice'](_0x46921a,_0xa1b95b));return _0x195491['sort']((_0x59d296,_0x50c9f1)=>_0x59d296['side']!=_0x50c9f1['side']?_0x59d296['side']-_0x50c9f1['side']:_0x59d296['level']!=_0x50c9f1['level']?_0x59d296['level']-_0x50c9f1['level']:_0x59d296['distance']!=_0x50c9f1['distance']?_0x50c9f1['distance']-_0x59d296['distance']:!!_0x59d296['isAdded']!=!!_0x50c9f1['isAdded']?-0x1==_0x59d296['side']||0x0==_0x59d296['side']?_0x59d296['isAdded']?-0x1:0x1:_0x59d296['isAdded']?0x1:-0x1:_0x59d296['index']-_0x50c9f1['index']),{'commonTape':_0x195491,'iEnd':_0xa1b95b,'jEnd':_0x5db542};function _0x52b39b(_0x1e114f,_0x18e811,_0x51d7ba){let _0x3771c6=-0x1,_0x428a8d=Number['POSITIVE_INFINITY'],_0x40bb9c=!0x0;for(let _0x37744a=_0x18e811;_0x37744a<_0x51d7ba;_0x37744a++)if(_0x39fff1['isInline'](_0x1e114f[_0x37744a]['item'])||(_0x40bb9c=!0x1),_0x1e114f[_0x37744a]['item']['startIndex']<_0x18e811&&(_0x3771c6=_0x37744a),_0x1e114f[_0x37744a]['item']['endIndex']>=_0x51d7ba){_0x428a8d=_0x37744a;break;}_0x40bb9c&&(_0x3771c6=_0x51d7ba-0x1);for(let _0x578578=_0x18e811;_0x578578<_0x51d7ba;_0x578578++)_0x1e114f[_0x578578]['side']=_0x578578<=_0x3771c6?-0x1:_0x578578<_0x428a8d?0x0:0x1,_0x1e114f[_0x578578]['index']=_0x578578;let _0x15cc81=0x0;for(let _0x200ac0=_0x18e811;_0x200ac0<=_0x3771c6;_0x200ac0++)0x0==_0x1e114f[_0x200ac0]['distance']?_0x1e114f[_0x200ac0]['level']=_0x15cc81:(_0x15cc81++,_0x1e114f[_0x200ac0]['level']=_0x15cc81,_0x15cc81++);for(let _0x5c6616=_0x18e811;_0x5c6616<_0x51d7ba;_0x5c6616++)0x0==_0x1e114f[_0x5c6616]['side']&&(_0x1e114f[_0x5c6616]['level']=_0x15cc81);_0x15cc81=0x0;for(let _0x57ea3f=_0x51d7ba-0x1;_0x57ea3f>=_0x428a8d;_0x57ea3f--)0x0==_0x1e114f[_0x57ea3f]['distance']?_0x1e114f[_0x57ea3f]['level']=_0x15cc81:(_0x15cc81--,_0x1e114f[_0x57ea3f]['level']=_0x15cc81,_0x15cc81--);}}['_fixObsoleteTags'](_0x1185ce){const _0x468e1d=new Map(),_0x41a2ab=this['editor']['model']['schema'];for(let _0x356c4c=0x1;_0x356c4c<_0x1185ce['length'];_0x356c4c++){let _0x19c699,_0x530aa1,_0x1220a1;const _0x198431=_0x1185ce[_0x356c4c],_0x1efa50=_0x1185ce[_0x356c4c-0x1];if('text'==_0x198431['type'])continue;if(_0x198431['type']!=_0x1efa50['type'])continue;if(!_0x41a2ab['isBlock'](_0x1efa50['item'])||_0x41a2ab['isLimit'](_0x1efa50['item']))continue;if(!_0x41a2ab['isBlock'](_0x198431['item'])||_0x41a2ab['isLimit'](_0x198431['item']))continue;if((_0x1185ce[_0x356c4c]['isAdded']||_0x1185ce[_0x356c4c]['isAddSuggestion'])&&_0x1185ce[_0x356c4c-0x1]['isRemoved'])_0x19c699=_0x1185ce[_0x356c4c],_0x530aa1=_0x1185ce[_0x356c4c-0x1],_0x1220a1=_0x356c4c-0x1;else{if(!_0x1185ce[_0x356c4c]['isRemoved']||!_0x1185ce[_0x356c4c-0x1]['isAdded']&&!_0x1185ce[_0x356c4c-0x1]['isAddSuggestion'])continue;_0x19c699=_0x1185ce[_0x356c4c-0x1],_0x530aa1=_0x1185ce[_0x356c4c],_0x1220a1=_0x356c4c;}const _0x59d3e3=_0x19c699['level']==_0x530aa1['level'],_0x55a51c=Math['abs'](_0x19c699['level'])<Math['abs'](_0x530aa1['level'])&&0x0==_0x530aa1['distance'];(_0x59d3e3||_0x55a51c)&&(_0x468e1d['set'](_0x530aa1['id'],_0x19c699['id']),_0x1185ce['splice'](_0x1220a1,0x1),_0x356c4c--,_0x19c699['isAdded']=!0x1);}for(let _0x556212=0x0;_0x556212<_0x1185ce['length'];_0x556212++)_0x468e1d['has'](_0x1185ce[_0x556212]['pairId'])&&(_0x1185ce[_0x556212]['pairId']=_0x468e1d['get'](_0x1185ce[_0x556212]['pairId']));}['_removeMissingPairs'](_0xcb523f){const _0x2bd201=new Set(_0xcb523f['map'](_0x16e764=>_0x16e764['id']));for(let _0x1f6bc8=0x0;_0x1f6bc8<_0xcb523f['length'];_0x1f6bc8++)_0x2bd201['has'](_0xcb523f[_0x1f6bc8]['pairId'])||0x0==_0xcb523f[_0x1f6bc8]['distance']||(_0xcb523f[_0x1f6bc8]['isIncorrect']=!0x0);return _0xcb523f['filter'](_0x3b046d=>!_0x3b046d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3d0735){const _0xec6162=new Set();for(let _0x210163=0x0;_0x210163<_0x3d0735['length'];_0x210163++){if(_0xec6162['has'](_0x3d0735[_0x210163]['id'])&&_0x3d0735[_0x210163]['isRemoved']&&(_0x3d0735[_0x210163]['isIncorrect']=!0x0),_0x3d0735[_0x210163]['isIncorrect'])continue;if(0x0==_0x3d0735[_0x210163]['distance'])continue;if('elementStart'!=_0x3d0735[_0x210163]['type'])continue;if(null==_0x3d0735[_0x210163]['pairId'])continue;let _0xf0b1b6=_0x210163+0x1,_0x1f52f5=0x0;for(;_0x3d0735[_0xf0b1b6]['id']!=_0x3d0735[_0x210163]['pairId'];)'elementStart'==_0x3d0735[_0xf0b1b6]['type']?_0x1f52f5++:'elementEnd'==_0x3d0735[_0xf0b1b6]['type']&&_0x1f52f5--,_0xf0b1b6++;if(0x0!=_0x1f52f5){if(_0x3d0735[_0x210163]['isRemoved'])_0x3d0735[_0x210163]['isIncorrect']=!0x0;else{for(;_0xf0b1b6!=_0x210163;)_0x3d0735[_0xf0b1b6]['isRemoved']&&0x0!=_0x3d0735[_0xf0b1b6]['distance']&&(_0x3d0735[_0xf0b1b6]['isIncorrect']=!0x0,_0xec6162['add'](_0x3d0735[_0xf0b1b6]['pairId'])),_0xf0b1b6--;}}}return _0x3d0735['filter'](_0x289a53=>!_0x289a53['isIncorrect']);}['_removeUnsupportedChanges'](_0x306b02){const _0x5a5437=this['editor']['model']['schema'];for(let _0x3e26ac=0x0;_0x3e26ac<_0x306b02['length'];_0x3e26ac++){if(!(_0x306b02[_0x3e26ac]['isAdded']||_0x306b02[_0x3e26ac]['isAddSuggestion']||_0x306b02[_0x3e26ac]['isRemoved']||_0x306b02[_0x3e26ac]['isRemoveSuggestion']))continue;if(0x0==_0x306b02[_0x3e26ac]['distance'])continue;const _0x5bf6db=_0x306b02[_0x3e26ac]['item'];_0x5a5437['isBlock'](_0x5bf6db)||_0x5a5437['isLimit'](_0x5bf6db)||(_0x306b02[_0x3e26ac]['isAdded']&&delete _0x306b02[_0x3e26ac]['isAdded'],_0x306b02[_0x3e26ac]['isAddSuggestion']&&delete _0x306b02[_0x3e26ac]['isAddSuggestion'],_0x306b02[_0x3e26ac]['isRemoveSuggestion']&&delete _0x306b02[_0x3e26ac]['isRemoveSuggestion'],_0x306b02[_0x3e26ac]['isRemoved']&&(_0x306b02[_0x3e26ac]['isIncorrect']=!0x0));}return _0x306b02['filter'](_0x439589=>!_0x439589['isIncorrect']);}['_makeModelFromTape'](_0xf10f98,_0x41b60d,_0x3a8804){const _0x230c97=new _0x571bbc(),_0x599859=[],_0x4711fc=new Map(),_0x3af508=this['editor']['model'],_0x3ef788=_0x3af508['schema'],_0x30787d=[_0x230c97],_0x1f096e={},_0x41bc2d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1058b4=null;const _0x2f3c97=[0x0];for(let _0x446f26=0x0;_0x446f26<_0xf10f98['length'];_0x446f26++)if('elementStart'===_0xf10f98[_0x446f26]['type']){_0xf10f98[_0x446f26]['previousPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97);const _0x599db3=new _0x1e48aa(_0xf10f98[_0x446f26]['item']['name'],_0xf10f98[_0x446f26]['item']['getAttributes']());_0x30787d[0x0]['_appendChild'](_0x599db3),_0x2f3c97['push'](0x0),_0x30787d['unshift'](_0x599db3),_0xf10f98[_0x446f26]['nextPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97);}else'elementEnd'===_0xf10f98[_0x446f26]['type']?(_0x30787d['shift'](),_0xf10f98[_0x446f26]['previousPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97),_0x2f3c97['pop'](),_0x2f3c97[_0x2f3c97['length']-0x1]++,_0xf10f98[_0x446f26]['nextPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97)):(_0xf10f98[_0x446f26]['previousPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97),_0x1058b4?_0x1058b4['_data']+=_0xf10f98[_0x446f26]['item']['data']:_0x1058b4=new _0x34272e(_0xf10f98[_0x446f26]['item']['data'],_0xf10f98[_0x446f26]['item']['getAttributes']()),_0xf10f98[_0x446f26+0x1]&&'text'===_0xf10f98[_0x446f26+0x1]['type']&&_0x59f7ee(_0x1058b4,_0xf10f98[_0x446f26+0x1]['item'])||(_0x30787d[0x0]['_appendChild'](_0x1058b4),_0x1058b4=null),_0x2f3c97[_0x2f3c97['length']-0x1]+=_0xf10f98[_0x446f26]['item']['offsetSize'],_0xf10f98[_0x446f26]['nextPosition']=_0x3af508['createPositionFromPath'](_0x230c97,_0x2f3c97));for(let _0x2e063c=0x0;_0x2e063c<_0xf10f98['length'];_0x2e063c++){const _0x182c5f=_0xf10f98[_0x2e063c]['previousPosition'],_0x31d92a=_0xf10f98[_0x2e063c]['nextPosition'];for(const _0x1be954 of _0xf10f98[_0x2e063c]['markersStart'])_0x4711fc['set'](_0x1be954,{'start':_0x182c5f,'end':null});_0x27c172('isRemoveSuggestion',_0x2e063c,_0x182c5f,_0x31d92a),_0x27c172('isAddSuggestion',_0x2e063c,_0x182c5f,_0x31d92a),_0x27c172('isRemoved',_0x2e063c,_0x182c5f,_0x31d92a),_0x27c172('isAdded',_0x2e063c,_0x182c5f,_0x31d92a);for(const _0x87cc05 of _0xf10f98[_0x2e063c]['markersEnd']){const _0x2fa140=_0x4711fc['get'](_0x87cc05);_0x2fa140?_0x2fa140['end']=_0x31d92a:_0x4711fc['set'](_0x87cc05,{'start':_0x31d92a,'end':_0x31d92a});}}for(const [_0x56f048,_0x3656d3]of _0x4711fc){const _0x126c19=this['editor']['model']['createRange'](_0x3656d3['start'],_0x3656d3['end']);_0x230c97['markers']['set'](_0x56f048,_0x126c19);}return _0x599859['sort']((_0x5f51a7,_0x3d0f0b)=>{const _0x4136bc=_0x230c97['markers']['get']('revision:'+_0x5f51a7['id']),_0x42c937=_0x230c97['markers']['get']('revision:'+_0x3d0f0b['id']);return _0x4136bc['start']['isBefore'](_0x42c937['start'])?-0x1:_0x4136bc['start']['isAfter'](_0x42c937['start'])?0x1:_0x4136bc['end']['isBefore'](_0x42c937['end'])?-0x1:_0x4136bc['end']['isAfter'](_0x42c937['end'])?0x1:'add'===_0x5f51a7['type']?-0x1:0x1;}),{'root':_0x230c97,'changes':_0x599859};function _0x27c172(_0x191692,_0x153017,_0x383248,_0x18a09e){const _0xca251=!!_0xf10f98[_0x153017][_0x191692],_0x3ebf5c=_0xca251?_0xf10f98[_0x153017][_0x191692]['userId']:null,_0xa653df=_0x153017===_0xf10f98['length']-0x1,_0xa9d045=_0x41bc2d[_0x191692][0x0],_0x24e67f=_0x3ef788['isObject'](_0xf10f98[_0x153017]['item']);!_0x1f096e[_0x191692]&&_0xca251?_0x1f096e[_0x191692]={'start':_0x383248,'tapeItem':_0xf10f98[_0x153017],'userId':_0x3ebf5c,'type':_0x191692}:_0x1f096e[_0x191692]&&!_0xca251?(_0x1f096e[_0x191692]['end']=_0x383248,_0x4badd8(_0x1f096e[_0x191692]),_0x1f096e[_0x191692]=null):_0x1f096e[_0x191692]&&_0xca251&&_0x1f096e[_0x191692]['userId']!==_0x3ebf5c&&(_0x1f096e[_0x191692]['end']=_0x383248,_0xa9d045&&_0xa9d045['userId']===_0x1f096e[_0x191692]['userId']||_0x4badd8(_0x1f096e[_0x191692]),_0x1f096e[_0x191692]={'start':_0x383248,'tapeItem':_0xf10f98[_0x153017],'userId':_0x3ebf5c,'type':_0x191692}),_0x1f096e[_0x191692]&&_0x24e67f&&('elementStart'!==_0xf10f98[_0x153017]['type']||_0xa9d045&&_0xa9d045['userId']===_0x3ebf5c||_0x41bc2d[_0x191692]['unshift']({'userId':_0x3ebf5c,'object':_0xf10f98[_0x153017]['item'],'change':_0x1f096e[_0x191692]}),'elementEnd'===_0xf10f98[_0x153017]['type']&&_0xa9d045&&_0xa9d045['object']===_0xf10f98[_0x153017]['item']&&(_0x41bc2d[_0x191692]['shift'](),_0x1f096e[_0x191692]=_0xa9d045['change'])),_0x1f096e[_0x191692]&&_0xa653df&&(_0x1f096e[_0x191692]['end']=_0x18a09e,_0x4badd8(_0x1f096e[_0x191692]),_0x1f096e[_0x191692]=null);}function _0x4badd8({start:_0xf2a02e,end:_0x479b46,tapeItem:_0x53b4dc,userId:_0x128c72,type:_0x3a6014}){const _0x1bf796=_0x53b4dc['item'],_0x2194a3=_0x3af508['schema']['isBlock'](_0x1bf796)&&!_0x3af508['schema']['isLimit'](_0x1bf796),_0x2f23d7=_0xf2a02e['nodeAfter']==_0x479b46['parent']&&_0x479b46['isAtStart'];if(_0x2194a3&&_0x2f23d7)return;const _0x10fca7=_0x3af508['createRange'](_0xf2a02e,_0x479b46),_0x24ea52=_0x41b60d['get'](_0x128c72),_0x32640a=new G({'author':_0x24ea52,'type':'isAdded'==_0x3a6014||'isAddSuggestion'==_0x3a6014?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3a6014||'isRemoveSuggestion'==_0x3a6014},'createdAt':new Date(),'rootName':_0x3a8804});_0x599859['push'](_0x32640a),_0x230c97['markers']['set']('revision:'+_0x32640a['id'],_0x10fca7);}function _0x59f7ee(_0x1841db,_0x5da8d1){const _0x527c7d=_0x1841db['getAttributes'](),_0x299292=_0x5da8d1['getAttributes']();for(const _0x4237c4 of _0x527c7d){if(_0x4237c4[0x1]!==_0x5da8d1['getAttribute'](_0x4237c4[0x0]))return!0x1;_0x299292['next']();}return _0x299292['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x16bf71=>{const _0x5c5411=_0x16bf71['markerName']['split'](':')[0x1],_0x10a05c=this['_getChangeFromId'](_0x5c5411);if(!_0x10a05c)return null;const _0x39212='add'==_0x10a05c['type']?'insertion':'deletion',_0x118d14=['ck-suggestion-marker','ck-suggestion-marker-'+_0x39212];return _0x10a05c['data']['isSuggestion']&&_0x118d14['push']('ck-suggestion-marker-'+_0x39212+'-new'),this['activeChange']==_0x10a05c&&_0x118d14['push']('ck-suggestion-marker--active'),{'classes':_0x118d14,'attributes':{'data-change-id':_0x5c5411}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28f05c=>{_0x28f05c['on']('element:pre',(_0x23fa6f,_0x2e66d8,_0x4e4bbb)=>{const _0x5ed22a=_0x2e66d8['viewItem']['getChild'](0x0);if(!_0x5ed22a||!_0x5ed22a['is']('element','code'))return;if(!_0x4e4bbb['consumable']['consume'](_0x5ed22a,{'attributes':['vid_start','vid_end']}))return;const _0xe1ca45=_0x2e66d8['modelRange']['start']['nodeAfter'];_0x4e4bbb['writer']['setAttribute']('vid_start',_0x5ed22a['getAttribute']('vid_start'),_0xe1ca45),_0x4e4bbb['writer']['setAttribute']('vid_end',_0x5ed22a['getAttribute']('vid_end'),_0xe1ca45);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x53eb23=>{_0x53eb23['on']('element',(_0xc167a5,_0x210527,_0x1204df)=>{if(!_0x1204df['consumable']['consume'](_0x210527['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x210527['modelRange']['isCollapsed'])return;const _0x575091=_0x210527['modelRange']['start']['nodeAfter'];_0x575091['hasAttribute']('vid_start')||_0x575091['hasAttribute']('vid')||(_0x1204df['writer']['setAttribute']('vid_start',_0x210527['viewItem']['getAttribute']('vid_start'),_0x575091),_0x1204df['writer']['setAttribute']('vid_end',_0x210527['viewItem']['getAttribute']('vid_end'),_0x575091));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x139c36=>_0x139c36['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x108a4d,[,_0x440fab])=>{['vid_start','vid_end','vid']['includes'](_0x440fab)&&(_0x108a4d['return']=!0x0,_0x108a4d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2e2134=>{_0x2e2134['on']('attribute:vid',(_0x33e9f1,_0x3d815f,_0x193b5b)=>{if('\x20'!=_0x3d815f['item']['data']||_0x3d815f['item']['parent']['maxOffset']>0x1)return;if(!_0x193b5b['consumable']['consume'](_0x3d815f['item'],_0x33e9f1['name']))return;const _0xde0066=_0x193b5b['writer'],_0xefe99d=_0x193b5b['mapper']['toViewRange'](_0x3d815f['range']);_0xde0066['wrap'](_0xefe99d,_0xde0066['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x11edde){const _0x59ae75=_0x11edde['plugins']['get']('RevisionViewer');return(_0x4b0477,_0x59f1ac,_0x754f4)=>{const _0x30d41c=_0x59f1ac['markerName']['split'](':')[0x1],_0x286910=_0x59ae75['_getChangeFromId'](_0x30d41c);if(!_0x286910)return null;const _0xdbd681='add'==_0x286910['type']?'split':'merge';if(!_0x754f4['consumable']['test'](_0x59f1ac['markerRange'],_0x4b0477['name']))return;const _0x275377=_0x59f1ac['markerRange']['getWalker'](),_0x5c6f60=_0x59f1ac['markerRange']['start'],_0xfc2e4e=_0x11edde['model']['schema'];let _0x4211f7=null,_0x576865=null,_0x9717d6=!0x1,_0x2d9ae8=!0x1;for(const _0x556aa8 of _0x275377){const _0x4f51dc=_0x556aa8['item'];_0x9717d6=_0x9717d6||_0xfc2e4e['isContent'](_0x4f51dc);const _0x520959=_0x754f4['mapper']['toViewElement'](_0x4f51dc);if(_0x520959&&_0x520959['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x556aa8['type']&&(_0xfc2e4e['isBlock'](_0x4f51dc)&&!_0xfc2e4e['isLimit'](_0x4f51dc)&&(_0x4f51dc['nextSibling']||_0x5c6f60['isAtEnd']?_0x4211f7&&_0x4211f7['parent']==_0x4f51dc||(_0x4211f7=_0x4f51dc,_0x3b41b4(_0x556aa8['previousPosition']),_0x2d9ae8=!0x0):_0x576865=_0x576865||_0x556aa8['previousPosition']));}function _0x3b41b4(_0x19d623){const _0x3a255d=_0x754f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdbd681}),_0x2ec0c3=_0x754f4['mapper']['toViewPosition'](_0x19d623);_0x286910['data']['isSuggestion']&&_0x754f4['writer']['addClass']('ck-suggestion-marker-'+_0xdbd681+'-new',_0x3a255d),_0x59ae75['activeChange']==_0x286910&&_0x754f4['writer']['addClass']('ck-suggestion-marker--active',_0x3a255d),_0x754f4['writer']['insert'](_0x2ec0c3,_0x3a255d),_0x754f4['mapper']['bindElementToMarker'](_0x3a255d,_0x59f1ac['markerName']);}_0x9717d6||_0x2d9ae8||!_0x576865||_0x3b41b4(_0x576865);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2dad1d,_0x101bcb,_0x113579)=>{const _0x360a1f=_0x113579['mapper']['markerNameToElements'](_0x101bcb['markerName']);if(_0x360a1f){for(const _0x2721b4 of _0x360a1f)(_0x2721b4['hasClass']('ck-suggestion-marker-split')||_0x2721b4['hasClass']('ck-suggestion-marker-merge'))&&(_0x113579['mapper']['unbindElementFromMarkerName'](_0x2721b4,_0x101bcb['markerName']),_0x113579['writer']['remove'](_0x2721b4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4ea934,_0x18306b,_0x4cd1b4)=>{const _0x1f964a=_0x18306b['markerName']['split'](':')[0x1],_0x1fdf1e=this['_getChangeFromId'](_0x1f964a);if(!_0x1fdf1e)return null;const _0xfecc0a='add'==_0x1fdf1e['type']?'split':'merge';if(_0x4cd1b4['consumable']['test'](_0x18306b['markerRange'],_0x4ea934['name']))for(const _0x42cb68 of _0x18306b['markerRange']['getItems']()){if(!_0x42cb68['is']('element','softBreak'))continue;const _0x3d55e6=_0x4cd1b4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xfecc0a}),_0x207d34=_0x4cd1b4['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x42cb68));_0x1fdf1e['data']['isSuggestion']&&_0x4cd1b4['writer']['addClass']('ck-suggestion-marker-'+_0xfecc0a+'-new',_0x3d55e6),this['activeChange']==_0x1fdf1e&&_0x4cd1b4['writer']['addClass']('ck-suggestion-marker--active',_0x3d55e6),_0x4cd1b4['writer']['insert'](_0x207d34,_0x3d55e6),_0x4cd1b4['mapper']['bindElementToMarker'](_0x3d55e6,_0x18306b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x448bd6=>{for(const _0x240227 of this['editor']['model']['document']['getRootNames']()){const _0x400ba5=this['editor']['model']['document']['getRoot'](_0x240227),_0x489b8b=this['editor']['editing']['view']['document']['getRoot'](_0x240227);if(_0x489b8b){const _0x2d9e7a=_0x400ba5['getAttribute']('revisionHistoryAttachChange');if(_0x448bd6['removeAttribute']('data-change-id',_0x489b8b),_0x448bd6['removeClass']('ck-revision-history-root-add',_0x489b8b),_0x448bd6['removeClass']('ck-revision-history-root-remove',_0x489b8b),_0x448bd6['removeClass']('ck-revision-history-root--active',_0x489b8b),_0x2d9e7a){const _0x41afe3=this['_getChangeFromId'](_0x2d9e7a);if(!_0x41afe3)return null;_0x448bd6['setAttribute']('data-change-id',_0x2d9e7a,_0x489b8b),_0x448bd6['addClass']('ck-revision-history-root-'+_0x41afe3['type'],_0x489b8b),this['activeChange']==_0x41afe3&&_0x448bd6['addClass']('ck-revision-history-root--active',_0x489b8b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x426358=>'revision-comment:'+_0x426358,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5b76cc=>'revision-suggestion:'+_0x5b76cc,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x21ec59=>({'name':'suggestion:'+_0x21ec59,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x535dab=>{const _0x1c9987=_0x535dab['markerName']['split'](':')[0x1];return'insertion'!=_0x1c9987&&'deletion'!=_0x1c9987?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1c9987]};}}),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',(_0x42fc96,_0x5dc97a,_0xac596e)=>{const _0x5499f8=_0xac596e['mapper']['markerNameToElements'](_0x5dc97a['markerName']);if(_0x5499f8){for(const _0x50434d of _0x5499f8)_0x50434d['is']('uiElement')&&(_0xac596e['mapper']['unbindElementFromMarkerName'](_0x50434d,_0x5dc97a['markerName']),_0xac596e['writer']['remove'](_0x50434d));}},{'priority':'high'});}['_getChangeFromId'](_0x16786c){return this['_changeIdToChange']['get'](_0x16786c);}['_getViewForChange'](_0x3aa3e2){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3aa3e2),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x25bd6f,_0x390580,_0x27f257,_0x1fe5c9)=>{_0x1fe5c9&&this['_balloon']['remove'](_0x1fe5c9),_0x27f257&&(this['_balloon']['add']({'view':_0x27f257,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3d8be3=this['editor']['editing'],_0x357454=this['_getChangeFromId'](_0x27f257['changeId']);let _0x233f69;if(_0x357454['data']['isOnRoot']){const _0x4312f5=_0x3d8be3['view']['getDomRoot'](_0x357454['rootName']);_0x233f69=Array['from'](_0x4312f5['getClientRects']());}else{const _0x376924=this['editor']['model']['markers']['get']('revision:'+_0x27f257['changeId']);_0x233f69=Array['from'](_0x3d8be3['mapper']['markerNameToElements'](_0x376924['name']))['map'](_0x38e754=>_0x3d8be3['view']['domConverter']['mapViewToDom'](_0x38e754))['map'](_0x1514fa=>Array['from'](_0x1514fa['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x233f69[0x0];return _0x233f69['find'](_0x33df7f=>_0x33df7f['top']-0x3<=this['_activeViewTarget']['y']&&_0x33df7f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x33df7f['left']-0x3<=this['_activeViewTarget']['x']&&_0x33df7f['right']+0x3>=this['_activeViewTarget']['x'])||_0x233f69[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5ed3d3,_0x48012d,_0x5e04cf,_0x1b9da9)=>{this['activeView']=_0x5e04cf?this['_getViewForChange'](_0x5e04cf):null,this['editor']['model']['change'](()=>{const _0x106ec1=this['editor']['editing'];_0x1b9da9&&(_0x1b9da9['data']['isOnRoot']?_0x106ec1['view']['change'](_0x40325d=>{_0x40325d['removeClass']('ck-revision-history-root--active',_0x106ec1['view']['document']['getRoot'](_0x1b9da9['rootName']));}):_0x106ec1['reconvertMarker']('revision:'+_0x1b9da9['id'])),_0x5e04cf&&(_0x5e04cf['data']['isOnRoot']?_0x106ec1['view']['change'](_0x15945c=>{_0x15945c['addClass']('ck-revision-history-root--active',_0x106ec1['view']['document']['getRoot'](_0x5e04cf['rootName']));}):_0x106ec1['reconvertMarker']('revision:'+_0x5e04cf['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x42472b,_0x22eba3)=>{if(this['activeChange'])return;const _0x4d12ec=this['_findChangeIdFromDomTarget'](_0x22eba3['target']),_0x38ebc6=this['_changeIdToChange']['get'](_0x4d12ec);_0x38ebc6?(this['_activeViewTarget']={'x':_0x22eba3['domEvent']['x'],'y':_0x22eba3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x38ebc6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x121f3b,_0x2f70f1)=>{const _0xb04005=this['_findChangeIdFromDomTarget'](_0x2f70f1['target']),_0x594417=this['_changeIdToChange']['get'](_0xb04005);_0x594417?(this['_activeViewTarget']={'x':_0x2f70f1['domEvent']['x'],'y':_0x2f70f1['domEvent']['y']},_0x594417===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x594417):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x53ade8){do{const _0x597caf=_0x53ade8['getAttribute']('data-change-id');if(_0x597caf)return _0x597caf;_0x53ade8=_0x53ade8['parent'];}while(_0x53ade8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25df33=>{for(const _0x24cb0d of this['editor']['model']['markers'])_0x25df33['removeMarker'](_0x24cb0d);});}}function Q(_0x2e2ecc,_0x4aecfd){return(_0x30e082,_0x1823b2,_0x2847c2)=>{if(!_0x2847c2['consumable']['test'](_0x1823b2['markerRange'],_0x30e082['name']))return;const _0x22e28=_0x1823b2['markerRange']['getWalker'](),_0x173a63=_0x1823b2['markerRange']['start'],_0x2cc4ba=_0x2e2ecc['model']['schema'];let _0x31c2ff=null,_0x1ecb2e=null,_0x2716b5=!0x1,_0xef80ee=!0x1;for(const _0x26f7ac of _0x22e28){const _0x48479f=_0x26f7ac['item'];_0x2716b5=_0x2716b5||_0x2cc4ba['isContent'](_0x48479f);const _0x48b106=_0x2847c2['mapper']['toViewElement'](_0x48479f);if(_0x48b106&&_0x48b106['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x26f7ac['type']&&(_0x2cc4ba['isBlock'](_0x48479f)&&!_0x2cc4ba['isLimit'](_0x48479f)&&(_0x48479f['nextSibling']||_0x173a63['isAtEnd']?_0x31c2ff&&_0x31c2ff['parent']==_0x48479f||(_0x31c2ff=_0x48479f,_0x2aaa6f(_0x26f7ac['previousPosition']),_0xef80ee=!0x0):_0x1ecb2e=_0x1ecb2e||_0x26f7ac['previousPosition']));}function _0x2aaa6f(_0x783d45){const _0x161208=_0x2847c2['mapper']['toViewPosition'](_0x783d45),_0x3458d0=_0x2847c2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4aecfd});_0x2847c2['writer']['insert'](_0x161208,_0x3458d0),_0x2847c2['mapper']['bindElementToMarker'](_0x3458d0,_0x1823b2['markerName']);}_0x2716b5||_0xef80ee||!_0x1ecb2e||_0x2aaa6f(_0x1ecb2e);};}class nt extends _0x116006{constructor(_0x3528e2){super(_0x3528e2);const _0x47a81b=_0x3528e2['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x47a81b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x47a81b,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4382ec=this['editor'],_0x194d83=_0x4382ec['plugins']['get'](l),_0x63682b=_0x194d83['isReady']?_0x194d83['diff']['newRevisionId']:null;_0x4382ec['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x63682b);}['refresh'](){const {isReady:_0x4df39b,isEnabled:_0x5183c9,repository:_0x21063a,diff:_0x35d710}=this['editor']['plugins']['get'](l),_0x120a60=_0x35d710&&_0x21063a['getLaterVisibleRevision'](_0x35d710['newRevisionId']);this['isEnabled']=_0x4df39b&&_0x5183c9&&Boolean(_0x120a60);}}class ot extends _0x116006{['_step'];constructor(_0x53b749,{direction:_0x41aab3}){super(_0x53b749);const _0x28d156=_0x53b749['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x41aab3?0x1:-0x1,this['listenTo'](_0x28d156,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28d156,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x28d156,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x396c73=this['editor'],_0xcbddc4=_0x396c73['plugins']['get'](l),{isNavigationMode:_0x470b6b,currentChangeNumber:_0x1bad43}=_0xcbddc4;let _0x49aaec;if(_0xcbddc4['activeChange']=_0x470b6b?_0xcbddc4['diff']['changes']['get'](_0x1bad43+this['_step']):_0xcbddc4['diff']['changes']['first'],_0xcbddc4['activeChange']['data']['isOnRoot'])_0x49aaec=_0x396c73['editing']['view']['getDomRoot'](_0xcbddc4['activeChange']['rootName']);else{const _0x2d16f3=_0x396c73['model']['markers']['get']('revision:'+_0xcbddc4['activeChange']['id']);_0x49aaec=_0x2a3d09(_0x396c73['editing'],_0x2d16f3);}_0x5d87c2({'target':_0x49aaec,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x124ecc,currentChangeNumber:_0x486770,numberOfChanges:_0xe21a2a,isReady:_0x12318c,isEnabled:_0x3c048f}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x3c048f&&_0x12318c&&_0xe21a2a)&&(!_0x124ecc||(0x1===this['_step']?_0x486770<_0xe21a2a-0x1:_0x486770>0x0));}}class Ri extends _0x3d1ec0{constructor(_0x15e2ab){super(_0x15e2ab);const _0x3522fc=this['bindTemplate'],_0x65ebbe=new _0x213261(_0x15e2ab),_0x34e1d8=new _0x213261(_0x15e2ab);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',(_0x85d09,_0x2c5645)=>_0x85d09&&_0x2c5645>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x11bc1a,_0x32495a,_0x437bcb,_0x41b3d9)=>{if(!_0x11bc1a)return R(_0x15e2ab,'Loading...');if(!_0x437bcb)return R(_0x15e2ab,'No\x20changes');const _0x5e363c=R(_0x15e2ab,'NUMBER_OF_CHANGES',_0x437bcb);return _0x41b3d9?R(_0x15e2ab,'X_OF_Y_CHANGES',[_0x32495a+0x1,_0x437bcb]):_0x5e363c;}),_0x65ebbe['set']({'label':R(_0x15e2ab,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2cca1b}),_0x34e1d8['set']({'label':R(_0x15e2ab,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2065f8}),_0x65ebbe['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x34e1d8['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x65ebbe['on']('execute',()=>this['fire']('execute','backward')),_0x34e1d8['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',_0x3522fc['if']('_isStatusLabelVisible','ck-hidden',_0x5a1e86=>!_0x5a1e86)]},'children':[{'text':_0x3522fc['to']('isNavigationMode',_0x37ae8f=>_0x37ae8f?R(_0x15e2ab,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x15e2ab,'Total')+':\x20')}]},{'text':_0x3522fc['to']('_statusText')}]},new _0x5ce28f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x65ebbe,_0x34e1d8]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x5c2b79{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xc758eb=this['editor']['editing']['view'];_0xc758eb['change'](_0x2b7d99=>{for(const _0x4deca2 of _0xc758eb['document']['roots'])_0x2b7d99['addClass'](ge,_0x4deca2);});}['hide'](){const _0x332911=this['editor']['editing']['view'];_0x332911['change'](_0xe12244=>{for(const _0x55dd70 of _0x332911['document']['roots'])_0xe12244['removeClass'](ge,_0x55dd70);});}}class u extends _0x5c2b79{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x452ed9=this['editor'],_0x3ac102=_0x452ed9['plugins']['get'](l),_0x3a1be6=_0x452ed9['plugins']['get'](ji);_0x452ed9['ui']['componentFactory']['add']('exitToEditing',_0x1b5834=>{const _0x21b2e7=new _0x213261(_0x1b5834);return _0x21b2e7['set']({'label':R(_0x1b5834,'Back\x20to\x20editing'),'icon':_0x5e33ba,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x21b2e7,'execute',()=>{_0x452ed9['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x21b2e7;}),_0x452ed9['ui']['componentFactory']['add']('restoreRevision',_0x59ccfb=>{const _0x10e7c9=new _0x213261(_0x59ccfb);return _0x10e7c9['set']({'label':R(_0x59ccfb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x10e7c9['bind']('isEnabled')['to'](_0x452ed9['commands']['get']('restoreRevision')),this['listenTo'](_0x10e7c9,'execute',()=>_0x452ed9['execute']('restoreRevision')),_0x10e7c9;}),_0x452ed9['ui']['componentFactory']['add']('changesNavigation',_0x583736=>{const _0x52f979=new Ri(_0x583736),_0x58650f=_0x452ed9['commands']['get']('showPreviousChange'),_0x2af621=_0x452ed9['commands']['get']('showNextChange');return _0x52f979['bind']('isBackwardNavigationEnabled')['to'](_0x58650f,'isEnabled'),_0x52f979['bind']('isForwardNavigationEnabled')['to'](_0x2af621,'isEnabled'),_0x52f979['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3ac102),this['listenTo'](_0x52f979,'execute',(_0x15a191,_0x49bbe5)=>{_0x452ed9['execute']('forward'===_0x49bbe5?'showNextChange':'showPreviousChange');}),_0x52f979;}),_0x3a1be6['show'](),_0x3ac102['on']('change:isReady',(_0x415172,_0x29e619,_0x2c2f89)=>{_0x2c2f89?_0x3a1be6['hide']():_0x3a1be6['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x320b7c,_0x2ef3b1){super(_0x320b7c,_0x2ef3b1);const _0x1bc718=this['bindTemplate'];this['set']({'label':R(_0x320b7c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x320b7c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1bc718['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4af525=this['fieldView']['element'];this['_tooltipString']=_0x4af525['scrollWidth']>_0x4af525['clientWidth']&&_0x4af525['value']||'';}}class vi extends _0x3d1ec0{constructor(_0x40be5f,_0x45feb7,_0x1ca752){super(_0x40be5f);const _0x5af988=new _0x19ba2e();_0x5af988['set']({'content':_0x2613d4,'viewBox':'0\x200\x2011\x2010'});const _0x4f8f4c=['ck','ck-revision-history-sidebar__revision-author'];_0x1ca752&&_0x4f8f4c['push']('ck-revision-history-sidebar__revision-author_creator');const _0xac260d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x40be5f,_0x1ca752?'Revision\x20creator':'Revision\x20author')},'children':[_0x5af988,_0x45feb7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4f8f4c},'children':_0xac260d});}}function mi(_0x20b79d,_0x1af54f){const _0x49a638=_0x20b79d['bindTemplate'],_0x1c6a79=_0x20b79d['locale'],_0x1bb3c6=_0x17dba5(_0x1c6a79);_0x1bb3c6['panelPosition']='sw';const _0x5d0339=function(_0x53229b,_0x349d10){const _0x5a862a=function(_0x230de2,_0x77c8f8){const _0x21fdfa=_0x230de2['locale'],_0x354e6a={'Compare\x20against\x20selected':R(_0x21fdfa,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x21fdfa,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x21fdfa,'Restore\x20this\x20revision')};return _0x77c8f8['map'](_0x16fe0c=>{const _0x18afee=_0x354e6a[_0x16fe0c['name']];return _0x18afee&&_0x18afee!==_0x16fe0c['name']&&(_0x16fe0c['name']=_0x18afee),_0x16fe0c;});}(_0x53229b,_0x349d10),_0x4d3dad=new _0x638e22();for(const _0x5d02d8 of _0x5a862a){const _0x241d58={'type':'button','model':new to({'label':_0x5d02d8['name'],'class':_0x5d02d8['class'],'withText':!0x0,'role':'menuitem','_action':_0x5d02d8['action']})};_0x241d58['model']['bind']('isEnabled')['to'](_0x53229b,'isActionsDropdownOpen',_0xe8ade7=>'function'!=typeof _0x5d02d8['isEnabled']||(!_0xe8ade7||_0x5d02d8['isEnabled'](_0x53229b))),_0x4d3dad['add'](_0x241d58);}return _0x4d3dad;}(_0x20b79d,_0x1af54f);return _0x20b79d['bind']('isActionsDropdownOpen')['to'](_0x1bb3c6,'isOpen'),_0x1bb3c6['buttonView']['set']({'label':R(_0x1c6a79,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5754ff}),_0x1bb3c6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x49a638['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x49a638['to'](_0x513b8b=>_0x513b8b['stopPropagation']())}}),_0x1bb3c6['on']('execute',_0x59e020=>{_0x20b79d['isReady']&&'function'==typeof _0x59e020['source']['_action']&&_0x59e020['source']['_action'](_0x20b79d);}),_0x3670ff(_0x1bb3c6,_0x5d0339,{'role':'menu'}),_0x1bb3c6['listenTo'](_0x20b79d,'change:isActionsDropdownOpen',(_0x36ddd3,_0x153210,_0x2ee4ff)=>{if(_0x2ee4ff)for(const _0x17c6c8 of _0x1bb3c6['listView']['items']){const _0x3b9880=_0x17c6c8['children']['first'],_0x41596f=_0x1af54f['find'](_0x1d3dda=>_0x1d3dda['action']===_0x3b9880['_action'])['isVisible'];_0x17c6c8['isVisible']=void 0x0===_0x41596f||_0x41596f(_0x20b79d);}}),_0x1bb3c6;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x31364f,uid as _0x346998,Collection as _0x297166,logWarning as _0x5cc4ce,FocusTracker as _0x4e5722,KeystrokeHandler as _0x4dac09,scrollViewportToShowTarget as _0xab48a5,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x55261e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x29a14b,set as _0x33732d,unset as _0x396d25,isEqual as _0xa19007}from'es-toolkit/compat';import{Plugin as _0xb59f6,PendingActions as _0x342b89,Command as _0x1edf29,ElementApiMixin as _0x26881d,Editor as _0x2be507}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2e1faa,getMarkerDomElement as _0xdf1de,ConfirmMixin as _0x52c9c1,sanitizeEditorConfig as _0xbb266a}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x676cd7,ViewAttributeElement as _0x1b3f7c,ViewEmptyElement as _0x642cbc,ViewRawElement as _0x308f73,ViewUIElement as _0x5f18c1,ViewDocumentFragment as _0xeef3f,ViewText as _0x2d3274,ViewElement as _0x3283ed,ModelElement as _0x587d6f,ModelRange as _0x3ec640,ModelPosition as _0x4482fa,ModelDocumentFragment as _0x38830b,ModelText as _0x2d70fa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x39ee81,IconChevronUp as _0xb0aaeb,IconChevronDown as _0x264fad,IconUndo as _0x2daf29,IconUser as _0xf27034,IconThreeVerticalDots as _0x34b50a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x442146,View as _0x40dbc1,submitHandler as _0x2bac51,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x507b60,ListView as _0x37fb17,ListItemView as _0x1e124c,ButtonView as _0x1fcc58,MenuBarMenuView as _0x43cc78,MenuBarMenuListView as _0x2897c8,MenuBarMenuListItemView as _0x17fda2,MenuBarMenuListItemButtonView as _0xeafef1,ContextualBalloon as _0x1d3ac2,ToolbarSeparatorView as _0x23869b,IconView as _0x480b7e,addListToDropdown as _0x39fc1e,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x2d8aaf,StickyPanelView as _0x47b559,ToolbarView as _0x257e7f,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1c534d}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x31364f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4615f1){super(),this['id']=_0x4615f1['id']||_0x346998(),this['creator']=_0x4615f1['creator']||null,this['authors']=_0x4615f1['authors']||[],this['diffData']=_0x4615f1['diffData']||null,this['toVersion']=_0x4615f1['toVersion']||0x0,this['fromVersion']=_0x4615f1['fromVersion']||0x0,this['set']('name',_0x4615f1['name']||''),this['set']('createdAt',_0x4615f1['createdAt']||new Date()),this['set']('attributes',_0x4615f1['attributes']||{});}['setName'](_0x1439ca){this['_update']({'name':_0x1439ca});}['setAttribute'](_0x29a048,_0x3b9eb0){const _0x1b1f63=_0x29a14b(this['attributes']);_0x33732d(_0x1b1f63,_0x29a048,_0x3b9eb0),this['_update']({'attributes':_0x1b1f63});}['removeAttribute'](_0x296030){const _0x584d11=_0x29a14b(this['attributes']);_0x396d25(_0x584d11,_0x296030),this['_update']({'attributes':_0x584d11});}['_update'](_0x1fc771,_0x35f6a1=!0x1){let _0x243491=!0x1;const _0x1b84c5={'id':this['id']},_0x3b6128=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2108e4 of _0x3b6128){const _0x17a974=_0x1fc771[_0x2108e4];void 0x0!==_0x17a974&&_0x17a974!==this[_0x2108e4]&&(this[_0x2108e4]=_0x17a974,_0x1b84c5[_0x2108e4]=_0x17a974,_0x243491=!0x0);}_0x243491&&(_0x1b84c5['authors']&&(_0x1b84c5['authorsIds']=_0x1b84c5['authors']['map'](_0x5e8025=>_0x5e8025['id']),delete _0x1b84c5['authors']),this['fire']('_update',_0x1b84c5,_0x35f6a1));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5686b1=>_0x5686b1['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xb59f6{['_revisions'];static get['requires'](){return[_0x2e1faa];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x490ff4){super(_0x490ff4),this['_revisions']=new _0x297166();}['afterInit'](){!async function(_0x1c2b4c){const _0x412bd9=_0x3ad89e([0x45,0x62,0x50,0x4f,0x56,0x39,0x78,0x58,0x59,0x61,0x43,0x6e,0x51,0x6c,0x68,0x31,0x7a,0x6a,0x41,0x70,0x48,0x4a,0x53,0x37,0x67,0x64,0x6b,0x75,0x63,0x49,0x4b,0x77,0x76,0x38,0x4d,0x6d,0x46,0x57,0x33,0x30,0x73,0x5a,0x55,0x4e,0x34,0x54,0x32,0x66,0x4c,0x74,0x65,0x44,0x52,0x42,0x69,0x47,0x79,0x71,0x36,0x35,0x6f,0x72]),_0x1578c5=0xeb829,_0x334106=0x9861288,_0x1f3a6e=0x9817d40^_0x334106,_0x267804=window[_0x3ad89e([0x44,0x61,0x74,0x65])][_0x3ad89e([0x6e,0x6f,0x77])](),_0x5bad5d=_0x1c2b4c[_0x3ad89e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ead9d=new window[(_0x3ad89e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x507ce5=>{_0x5bad5d[_0x3ad89e([0x6f,0x6e,0x63,0x65])](_0x3ad89e([0x72,0x65,0x61,0x64,0x79]),_0x507ce5);}),_0x1e8601={[_0x3ad89e([0x6b,0x74,0x79])]:_0x3ad89e([0x45,0x43]),[_0x3ad89e([0x75,0x73,0x65])]:_0x3ad89e([0x73,0x69,0x67]),[_0x3ad89e([0x63,0x72,0x76])]:_0x3ad89e([0x50,0x2d,0x32,0x35,0x36]),[_0x3ad89e([0x78])]:_0x3ad89e([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]),[_0x3ad89e([0x79])]:_0x3ad89e([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]),[_0x3ad89e([0x61,0x6c,0x67])]:_0x3ad89e([0x45,0x53,0x32,0x35,0x36])},_0x38f266=_0x5bad5d[_0x3ad89e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ad89e([0x67,0x65,0x74])](_0x3ad89e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x419e4f(){let _0x3844a4,_0x4792df=null,_0x56532b=null;try{if(_0x38f266==_0x3ad89e([0x47,0x50,0x4c]))return _0x3ad89e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3844a4=_0xea87a8(),!_0x3844a4)return _0x3ad89e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3844a4[_0x3ad89e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56532b=_0x35197e(_0x3844a4[_0x3ad89e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3844a4[_0x3ad89e([0x6a,0x74,0x69])])),await _0x1b7ab1()?_0x3567af()?_0x19bdfe()?_0x3ad89e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x213388()?(_0x3844a4[_0x3ad89e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad89e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4792df=_0x2555b7(_0x3ad89e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3844a4[_0x3ad89e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad89e([0x74,0x72,0x69,0x61,0x6c])&&(_0x4792df=_0x2555b7(_0x3ad89e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49021f()):_0x3ad89e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ad89e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ad89e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ad89e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x19bdfe(){const _0x52eadc=[_0x3ad89e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ad89e([0x74,0x72,0x69,0x61,0x6c])][_0x3ad89e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3844a4[_0x3ad89e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x267804/0x3e8:0xe10*_0x1f3a6e;return _0x3844a4[_0x3ad89e([0x65,0x78,0x70])]<_0x52eadc;}function _0x3567af(){const _0x4b7771=_0x3844a4[_0x3ad89e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4b7771)return!0x1;if(_0x4b7771[_0x3ad89e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad89e([0x2a])))return!0x0;if(_0x4b7771[_0x3ad89e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad89e([0x52,0x48])))return!0x0;if(_0x4b7771[_0x3ad89e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad89e([0x52,0x52,0x48]))){if(_0x591914())return!0x0;if(_0x144c96()||_0x3bc382())return!0x0;}return!0x1;}function _0x213388(){const _0x47a8d9=_0x3844a4[_0x3ad89e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47a8d9||0x0==_0x47a8d9[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55eb4f}=new URL(window[_0x3ad89e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47a8d9[_0x3ad89e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55eb4f))return!0x0;const _0x33638d=_0x55eb4f[_0x3ad89e([0x73,0x70,0x6c,0x69,0x74])](_0x3ad89e([0x2e]));return _0x47a8d9[_0x3ad89e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35bc64=>_0x35bc64[_0x3ad89e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad89e([0x2a])))[_0x3ad89e([0x6d,0x61,0x70])](_0x7c5bfa=>_0x7c5bfa[_0x3ad89e([0x73,0x70,0x6c,0x69,0x74])](_0x3ad89e([0x2e])))[_0x3ad89e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58d0a0=>_0x58d0a0[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33638d[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ad89e([0x6d,0x61,0x70])](_0x5e7975=>Array(_0x33638d[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e7975[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ad89e([0x66,0x69,0x6c,0x6c])](_0x5e7975[0x0]===_0x3ad89e([0x2a])?_0x3ad89e([0x2a]):'')[_0x3ad89e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e7975))[_0x3ad89e([0x73,0x6f,0x6d,0x65])](_0x2685b4=>_0x33638d[_0x3ad89e([0x65,0x76,0x65,0x72,0x79])]((_0x4b8780,_0x5ce5f3)=>_0x2685b4[_0x5ce5f3]===_0x4b8780||_0x2685b4[_0x5ce5f3]===_0x3ad89e([0x2a])));}function _0x49021f(){return _0x4792df&&_0x56532b?new window[(_0x3ad89e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31a9b7,_0x55b238)=>{_0x4792df[_0x3ad89e([0x74,0x68,0x65,0x6e])](_0x31a9b7,_0x55b238),_0x56532b[_0x3ad89e([0x74,0x68,0x65,0x6e])](_0x45ce4f=>{_0x45ce4f!=_0x3ad89e([0x56,0x61,0x6c,0x69,0x64])&&_0x31a9b7(_0x45ce4f);},_0x55b238);}):_0x4792df||_0x56532b||_0x3ad89e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35197e(_0x3e1bc3,_0x54bbdf){return new window[(_0x3ad89e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x253848=>{if(_0x302667())return _0x253848(_0x3ad89e([0x56,0x61,0x6c,0x69,0x64]));_0xf264d6(),_0x5bad5d[_0x3ad89e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ad89e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d019b=!0x1;const _0x2d678f=_0x346998();function _0x458429(_0x2fa18f){return!!_0x2fa18f&&(typeof _0x2fa18f===_0x3ad89e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2fa18f===_0x3ad89e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2fa18f[_0x3ad89e([0x74,0x68,0x65,0x6e])]===_0x3ad89e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2fa18f[_0x3ad89e([0x63,0x61,0x74,0x63,0x68])]===_0x3ad89e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c11b9(_0x44cf91){_0x52f244(_0x44cf91)[_0x3ad89e([0x74,0x68,0x65,0x6e])](_0x18b88e=>{if(!_0x18b88e||_0x18b88e[_0x3ad89e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ad89e([0x6f,0x6b]))return _0x3ad89e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a8414(_0x444bd9(_0x2d678f+_0x54bbdf))!=_0x18b88e[_0x3ad89e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ad89e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ad89e([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ad89e([0x74,0x68,0x65,0x6e])](_0x127132=>(_0x50977b(),_0x127132),()=>{const _0x30a892=_0x84dd56();return null==_0x30a892?(_0x50977b(),_0x3ad89e([0x56,0x61,0x6c,0x69,0x64])):_0x3ad89e(_0x267804-_0x30a892>(0x2d8a9688^_0x334106)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ad89e([0x74,0x68,0x65,0x6e])](_0x253848)[_0x3ad89e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x253848(_0x3ad89e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e029c=0x9b0fc08^_0x334106;function _0x50977b(){const _0x24051c=_0x3ad89e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a8414(_0x444bd9(_0x3e1bc3)),_0x2d4846=_0x1885e9(_0x5a8414(window[_0x3ad89e([0x4d,0x61,0x74,0x68])][_0x3ad89e([0x63,0x65,0x69,0x6c])](_0x267804/_0x3e029c)));window[_0x3ad89e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ad89e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24051c,_0x2d4846);}function _0x84dd56(){const _0x187700=_0x3ad89e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a8414(_0x444bd9(_0x3e1bc3)),_0x3aa647=window[_0x3ad89e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ad89e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x187700);return _0x3aa647?window[_0x3ad89e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1885e9(_0x3aa647),0x10)*_0x3e029c:null;}function _0x52f244(_0x5ac5f2){return new window[(_0x3ad89e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x127190,_0x3b96c5)=>{_0x5ac5f2[_0x3ad89e([0x74,0x68,0x65,0x6e])](_0x127190,_0x3b96c5),window[_0x3ad89e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b96c5,0x987c648^_0x334106);});}}_0x5bad5d[_0x3ad89e([0x6f,0x6e])](_0x3ad89e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x591651,_0x4669d6)=>{if(_0x4669d6[0x0]!=_0x3e1bc3)return _0x253848(_0x3ad89e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4669d6[0x1]={..._0x4669d6[0x1],[_0x3ad89e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d678f};},{[_0x3ad89e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ad89e([0x68,0x69,0x67,0x68])}),_0x5bad5d[_0x3ad89e([0x6f,0x6e])](_0x3ad89e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14c912=>{_0x458429(_0x14c912[_0x3ad89e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d019b=!0x0,_0x1c11b9(_0x14c912[_0x3ad89e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ad89e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ad89e([0x6c,0x6f,0x77])}),_0x1ead9d[_0x3ad89e([0x74,0x68,0x65,0x6e])](()=>{_0x5d019b||_0x253848(_0x3ad89e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x302667(){return _0x5bad5d[_0x3ad89e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ad89e([0x76,0x69,0x65,0x77])][_0x3ad89e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ad89e([0x61,0x75,0x74,0x6f]);}function _0xf264d6(){_0x5bad5d[_0x3ad89e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ad89e([0x76,0x69,0x65,0x77])][_0x3ad89e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ad89e([0x61,0x75,0x74,0x6f]);}}function _0x2555b7(_0x301d6c){const _0x3e48b4=[new window[(_0x3ad89e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x425663=>setTimeout(_0x425663,0x98f2c44^_0x334106)),_0x1ead9d[_0x3ad89e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ad89e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x174654=>{const _0x1b5fb0=0x986128f^_0x334106,_0x1e566d=_0x1c2b4c[_0x3ad89e([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2fb4fa(){_0x1e566d[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1b5fb0&&_0x174654();}_0x2fb4fa(),_0x1e566d[_0x3ad89e([0x6f,0x6e])](_0x3ad89e([0x61,0x64,0x64]),_0x2fb4fa);})),new window[(_0x3ad89e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33d5cc=>{function _0x499d5d(){for(const _0x21c867 in window)if(window[_0x3ad89e([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3ad89e([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x21c867))&&window[_0x21c867]==_0x1578c5)return _0x33d5cc();_0x5bad5d[_0x3ad89e([0x73,0x74,0x61,0x74,0x65])]!=_0x3ad89e([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3ad89e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x499d5d,0x9860100^_0x334106);}_0x3388b9(_0x3ad89e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x499d5d();})];return window[_0x3ad89e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ad89e([0x72,0x61,0x63,0x65])](_0x3e48b4)[_0x3ad89e([0x74,0x68,0x65,0x6e])](()=>_0x301d6c);}async function _0x2384af(){if(await _0x1ead9d,_0x3388b9(_0x3ad89e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xb877a2=_0x1c2b4c[_0x3ad89e([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x405c5c=_0x1c2b4c[_0x3ad89e([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])](_0xb877a2[_0x3ad89e([0x69,0x64])]),_0x59c1e8=_0x4de59e(_0x3ad89e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x59c1e8[_0x3ad89e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xb877a2['id'],_0x405c5c?_0x405c5c['id']:null,!0x0),_0x59c1e8[_0x3ad89e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ad89e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59c1e8[_0x3ad89e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59c1e8[_0x3ad89e([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x8b24fb,void(_0x59c1e8[_0x3ad89e([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x8b24fb);}if(_0x3388b9(_0x3ad89e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3d4ae3=_0x4de59e(_0x3ad89e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3d4ae3[_0x3ad89e([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ad89e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3d4ae3[_0x3ad89e([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3d4ae3[_0x3ad89e([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x8b24fb,_0x3d4ae3[_0x3ad89e([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x8b24fb;}_0x5bad5d[_0x3ad89e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ad89e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8b24fb,_0x5bad5d[_0x3ad89e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ad89e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8b24fb,_0x5bad5d[_0x3ad89e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ad89e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x591914(){return _0x3388b9(_0x3ad89e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4de59e(_0x3ad89e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ad89e([0x73,0x74,0x61,0x74,0x65])]==_0x3ad89e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x144c96(){return _0x3388b9(_0x3ad89e([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 _0x3bc382(){return _0x3388b9(_0x3ad89e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x14ad8f(_0x339f5a){const _0x5c8a4b=_0xfae9f4();_0x5bad5d[_0x5c8a4b]=_0x3ad89e([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])+_0x339f5a,_0x339f5a[_0x3ad89e([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3ad89e([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xfae9f4()]=_0x1578c5),_0x339f5a!=_0x3ad89e([0x56,0x61,0x6c,0x69,0x64])&&_0x2384af();}function _0xfae9f4(){const _0x1831a1=window[_0x3ad89e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ad89e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ad89e([0x6e,0x6f,0x77])]())[_0x3ad89e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ad89e([0x2e]),'');let _0x444275=_0x3ad89e([0x45]);for(let _0x108944=0x0;_0x108944<_0x1831a1[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x108944+=0x2){let _0x77fadb=window[_0x3ad89e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1831a1[_0x3ad89e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x108944,_0x108944+0x2));_0x77fadb>=_0x412bd9[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x77fadb-=_0x412bd9[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x444275+=_0x412bd9[_0x77fadb];}return _0x444275;}function _0xea87a8(){const _0x47d82e=_0x38f266[_0x3ad89e([0x73,0x70,0x6c,0x69,0x74])](_0x3ad89e([0x2e]));if(0x3!=_0x47d82e[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ce0f6(_0x47d82e[0x1]);function _0x5ce0f6(_0x30afc2){const _0x317847=_0x5695cb(_0x30afc2);return _0x317847&&_0x3ac5b2()?_0x317847:null;function _0x3ac5b2(){const _0x2dfe39=_0x317847[_0x3ad89e([0x6a,0x74,0x69])],_0x5e5042=window[_0x3ad89e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dfe39[_0x3ad89e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dfe39[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e805d={..._0x317847,[_0x3ad89e([0x6a,0x74,0x69])]:_0x2dfe39[_0x3ad89e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dfe39[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e805d[_0x3ad89e([0x76,0x63])],_0x444bd9(_0x2e805d)==_0x5e5042;}}}async function _0x1b7ab1(){let _0x39d94b=!0x0;try{const _0x351c9e=_0x38f266[_0x3ad89e([0x73,0x70,0x6c,0x69,0x74])](_0x3ad89e([0x2e])),[_0x2eda80,_0x2fb23f,_0x1f9472]=_0x351c9e;return _0x1b236c(_0x2eda80),await _0x3ddd7d(_0x2eda80,_0x2fb23f,_0x1f9472),_0x39d94b;}catch{return!0x1;}function _0x1b236c(_0x3bfb62){const _0x20a715=_0x5695cb(_0x3bfb62);_0x20a715&&_0x20a715[_0x3ad89e([0x61,0x6c,0x67])]==_0x3ad89e([0x45,0x53,0x32,0x35,0x36])||(_0x39d94b=!0x1);}async function _0x3ddd7d(_0x52e4e7,_0x19df68,_0x5d8ea0){const _0x12e2b7=window[_0x3ad89e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ad89e([0x66,0x72,0x6f,0x6d])](_0x3debd4(_0x5d8ea0),_0x4f2b8b=>_0x4f2b8b[_0x3ad89e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c001c=new window[(_0x3ad89e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ad89e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52e4e7+_0x3ad89e([0x2e])+_0x19df68),_0x43a2c5=window[_0x3ad89e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ad89e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43a2c5)return;const _0x9bdc59=await _0x43a2c5[_0x3ad89e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ad89e([0x6a,0x77,0x6b]),_0x1e8601,{[_0x3ad89e([0x6e,0x61,0x6d,0x65])]:_0x3ad89e([0x45,0x43,0x44,0x53,0x41]),[_0x3ad89e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ad89e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ad89e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43a2c5[_0x3ad89e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ad89e([0x6e,0x61,0x6d,0x65])]:_0x3ad89e([0x45,0x43,0x44,0x53,0x41]),[_0x3ad89e([0x68,0x61,0x73,0x68])]:{[_0x3ad89e([0x6e,0x61,0x6d,0x65])]:_0x3ad89e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9bdc59,_0x12e2b7,_0x3c001c)||(_0x39d94b=!0x1);}}function _0x5695cb(_0x24a023){return _0x24a023[_0x3ad89e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ad89e([0x65,0x79]))?JSON[_0x3ad89e([0x70,0x61,0x72,0x73,0x65])](_0x3debd4(_0x24a023)):null;}function _0x3debd4(_0x48ec0c){return window[_0x3ad89e([0x61,0x74,0x6f,0x62])](_0x48ec0c[_0x3ad89e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ad89e([0x2b]))[_0x3ad89e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ad89e([0x2f])));}function _0x444bd9(_0x7810cb){let _0x7be78b=0x1505;function _0xcf411d(_0x408943){for(let _0x379dcf=0x0;_0x379dcf<_0x408943[_0x3ad89e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x379dcf++){const _0x2d8ef1=_0x408943[_0x3ad89e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x379dcf);_0x7be78b=(_0x7be78b<<0x5)+_0x7be78b+_0x2d8ef1,_0x7be78b&=_0x7be78b;}}function _0x5eed8b(_0x2f13a9){Array[_0x3ad89e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f13a9)?_0x2f13a9[_0x3ad89e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5eed8b):_0x2f13a9&&typeof _0x2f13a9==_0x3ad89e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ad89e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f13a9)[_0x3ad89e([0x73,0x6f,0x72,0x74])]()[_0x3ad89e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1edfa3,_0x180685])=>{_0xcf411d(_0x1edfa3),_0x5eed8b(_0x180685);}):_0xcf411d(window[_0x3ad89e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f13a9));}return _0x5eed8b(_0x7810cb),_0x7be78b>>>0x0;}function _0x5a8414(_0x4fb6a2){return _0x4fb6a2[_0x3ad89e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ad89e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ad89e([0x30]));}function _0x1885e9(_0x52ecb8){return _0x52ecb8[_0x3ad89e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ad89e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ad89e([0x6a,0x6f,0x69,0x6e])]('');}function _0x3388b9(_0x56f70d){return _0x5bad5d[_0x3ad89e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ad89e([0x68,0x61,0x73])](_0x56f70d);}function _0x4de59e(_0x4bb21f){return _0x5bad5d[_0x3ad89e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ad89e([0x67,0x65,0x74])](_0x4bb21f);}function _0x8b24fb(){}function _0x3ad89e(_0x4521ea){return _0x4521ea['map'](_0x5a584b=>String['fromCharCode'](_0x5a584b))['join']('');}_0x14ad8f(await _0x419e4f());}(this);}['createRevision'](_0x26296e){const _0x3f320e=this['editor']['plugins']['get']('Users');return new I({'id':_0x26296e['id'],'name':_0x26296e['name'],'creator':_0x26296e['creatorId']?_0x3f320e['getUser'](_0x26296e['creatorId']):null,'diffData':_0x26296e['diffData']||_0x26296e['data'],'authors':_0x26296e['authorsIds']['map'](_0x49d0be=>_0x3f320e['getUser'](_0x49d0be)),'createdAt':new Date(_0x26296e['createdAt']),'attributes':_0x26296e['attributes'],'fromVersion':_0x26296e['fromVersion'],'toVersion':_0x26296e['toVersion']});}['addRevision'](_0x320edf,_0x1003de=0x0){this['_revisions']['add'](_0x320edf,_0x1003de);}['getRevision'](_0x439479){return this['_revisions']['get'](_0x439479);}['getRevisions'](_0x3137da={'toJSON':!0x1}){const _0x50b05f=Array['from'](this['_revisions']);return _0x50b05f['reverse'](),_0x3137da['toJSON']?_0x50b05f['map'](_0x3d7b68=>_0x3d7b68['toJSON']()):_0x50b05f;}['getIndex'](_0x494dfa){return this['_revisions']['getIndex'](_0x494dfa);}['getEarlierVisibleRevision'](_0x404f6f){const [,_0x450037]=this['getRevisionsIterator'](_0x404f6f,{'direction':'earlier'});return _0x450037;}['getLaterVisibleRevision'](_0x10b751){const [,_0x3ee932]=this['getRevisionsIterator'](_0x10b751,{'direction':'later'});return _0x3ee932;}['getRevisionsInDiff'](_0x580295){const _0x2a8bd5=[];for(const _0x4a4fbf of this['getRevisionsIterator'](_0x580295['newRevisionId']))if(_0x2a8bd5['push'](_0x4a4fbf),_0x4a4fbf['id']===_0x580295['oldRevisionId'])break;return _0x2a8bd5;}*['getRevisionsIterator'](_0x31d0de,{direction:_0x46f6bf='earlier',filter:_0x5d976f=()=>!0x0}={}){const _0x577f06='earlier'===_0x46f6bf?0x1:-0x1;let _0x124226=this['_revisions']['get'](_0x31d0de),_0x2a30b7=this['getIndex'](_0x124226);for(yield _0x124226;_0x124226;){if(_0x2a30b7+=_0x577f06,_0x124226=this['getRevision'](_0x2a30b7),!_0x124226)return;_0x5d976f(_0x124226)&&(yield _0x124226);}}}class $ extends _0xb59f6{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x676cd7,'c'],[_0x1b3f7c,'a'],[_0x642cbc,'e'],[_0x308f73,'r'],[_0x5f18c1,'u']]);['_typeCharToViewClass']=new Map([['c',_0x676cd7],['a',_0x1b3f7c],['e',_0x642cbc],['r',_0x308f73],['u',_0x5f18c1]]);async['loadRevisionData'](_0x116943,_0x2bfbcc){if(_0x116943['diffData']||!_0x2bfbcc)return;const _0x4cd594=this['editor']['config']['get']('collaboration.channelId'),_0x3115a6=await _0x2bfbcc['getRevision']({'channelId':_0x4cd594,'revisionId':_0x116943['id']});_0x116943['diffData']=_0x3115a6['diffData'];}['getRevisionDocumentData'](_0x18c781){const _0x58903a={};for(const _0x28301f in _0x18c781['diffData']){if(_0x18c781['diffData'][_0x28301f]['attachChange']&&!_0x18c781['diffData'][_0x28301f]['attachChange']['isAttached'])continue;const _0x405368=this['_removeRevisionMarkers'](JSON['parse'](_0x18c781['diffData'][_0x28301f]['insertions'])),_0x47baa5=this['editor']['editing']['view']['document'],_0x2e2d1a=new _0xeef3f(_0x47baa5,_0x405368['map'](_0x307e43=>this['_getViewFromDiffObj'](_0x307e43,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x58903a[_0x28301f]=this['editor']['data']['processor']['toData'](_0x2e2d1a),this['editor']['data']['processor']['useFillerType']('default');}return _0x58903a;}['getRevisionRootsAttributes'](_0x3e17af){const _0x5b8e3f={};for(const _0x150a71 in _0x3e17af['diffData'])_0x3e17af['diffData'][_0x150a71]['attachChange']&&!_0x3e17af['diffData'][_0x150a71]['attachChange']['isAttached']||(_0x5b8e3f[_0x150a71]=_0x3e17af['diffData'][_0x150a71]['attributesAfter']||{});return _0x5b8e3f;}['_getTypeCharForViewElement'](_0x163399){return this['_viewClassToTypeChar']['get'](_0x163399['constructor']);}['_getViewFromDiffObj'](_0x38ece1,_0x11ff0e){const _0x4435d9=this['editor']['editing']['view']['document'];if('string'==typeof _0x38ece1)return new _0x2d3274(_0x4435d9,_0x38ece1);{let _0x365bc8,_0x15a182;_0x15a182='u'==_0x38ece1['type']||'r'==_0x38ece1['type']?[]:_0x38ece1['children']['map'](_0x6e8f9d=>this['_getViewFromDiffObj'](_0x6e8f9d,_0x11ff0e));const _0x3976a6=this['_typeCharToViewClass']['get'](_0x38ece1['type'])||_0x3283ed,_0x318992=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x365bc8=new _0x3976a6(_0x4435d9,_0x38ece1['name'],_0x38ece1['attributes'],_0x15a182),'u'==_0x38ece1['type']&&_0x38ece1['children'][0x0]){const _0x4a4520=_0x38ece1['children'][0x0];if(_0x365bc8['render']=function(_0x40518d){const _0x226feb=_0x40518d['createElement']('div');return _0x226feb['innerHTML']=_0x4a4520,_0x226feb['childNodes'][0x0];},_0x11ff0e){const _0x5069e6=new _0xeef3f(_0x4435d9);_0x5069e6['_appendChild'](_0x365bc8);const _0xd9cf87=Array['from'](_0x318992['viewChildrenToDom'](_0x5069e6,{'bind':!0x1})),_0x23d707=_0x318992['domDocument']['createElement']('div');_0x23d707['append'](..._0xd9cf87),_0x365bc8=Array['from'](_0x318992['domChildrenToView'](_0x23d707))[0x0];}}else{if('r'==_0x38ece1['type']&&_0x38ece1['children'][0x0]){const _0x2885cc=_0x38ece1['children'][0x0];if(_0x365bc8['render']=function(_0x4db537){_0x4db537['innerHTML']=_0x2885cc;},_0x11ff0e){const _0x2a0005=new _0xeef3f(_0x4435d9);_0x2a0005['_appendChild'](_0x365bc8);const _0x3723e7=Array['from'](_0x318992['viewChildrenToDom'](_0x2a0005,{'bind':!0x1})),_0x212b52=_0x318992['domDocument']['createElement']('div');_0x212b52['append'](..._0x3723e7);const _0x3a5dab=Array['from'](_0x318992['domChildrenToView'](_0x212b52));_0x3a5dab['length']>0x1?_0x365bc8['_appendChild'](_0x3a5dab):_0x365bc8=_0x3a5dab[0x0];}}}if(_0x38ece1['customProperties']){for(const [_0x59e858,_0x4c3b1e]of _0x38ece1['customProperties'])_0x365bc8['_setCustomProperty'](_0x59e858,_0x4c3b1e);}const _0x4f89d2=void 0x0===_0x38ece1['fillerOffset']?null:_0x38ece1['fillerOffset'];return null!==_0x4f89d2&&(_0x365bc8['getFillerOffset']=()=>_0x4f89d2),_0x365bc8;}}['_makeModelFromViewString'](_0x2bcab3){const _0x4b229c=JSON['parse'](_0x2bcab3),_0x101518=this['editor']['editing']['view']['document'],_0x139282=new _0xeef3f(_0x101518,_0x4b229c['map'](_0x63ee50=>this['_getViewFromDiffObj'](_0x63ee50,!0x0)));return this['editor']['data']['toModel'](_0x139282);}['_removeRevisionMarkers'](_0x1ae3ac){return(_0x1ae3ac=_0x1ae3ac['filter'](_0x5b16b6=>!_0x5b16b6['name']||'revision-start'!==_0x5b16b6['name']&&'revision-end'!==_0x5b16b6['name']))['forEach'](_0x3fe980=>{'string'!=typeof _0x3fe980&&(_0x3fe980['children']=this['_removeRevisionMarkers'](_0x3fe980['children']),_0x3fe980['attributes']=_0x3fe980['attributes']['filter'](_0x1e2ba4=>!_0x1e2ba4[0x0]['startsWith']('data-revision-')));}),_0x1ae3ac;}}function R(_0x38f2e4,_0x14ce92,_0x3d1899){const t=_0x38f2e4['t'];switch(_0x14ce92){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'},_0x3d1899);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3d1899);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 _0xb59f6{['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[_0x2e1faa,S,$,_0x342b89];}constructor(_0x16919f){super(_0x16919f),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 _0x2c36a0=_0x346998();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2c36a0},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 _0x7e886b=this['repository']['getRevision'](0x0),_0x298e6a=_0x7e886b&&null===_0x7e886b['creator']?_0x7e886b:null;if(this['_continueCurrentRevision']=!!_0x298e6a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x52aace=this['_source']['getCurrentRevisionId'](),_0x22b151=this['repository']['getRevision'](_0x52aace);if(_0x22b151)this['_startingVersion']=_0x22b151['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4290b0=this['_source']['history']['_operations']['find'](_0xeb179e=>!_0xeb179e['_isInit']),_0x4d4d74=_0x4290b0?_0x4290b0['baseVersion']:this['_source']['history']['version'];_0x7e886b?(_0x7e886b['toVersion']<_0x4d4d74&&_0x7e886b['_update']({'toVersion':_0x4d4d74}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x298e6a['id'],this['_startingVersion']=_0x298e6a['fromVersion']):(this['_startingVersion']=_0x7e886b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4d4d74,this['_continueCurrentRevision']=!0x1);}}else _0x298e6a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x298e6a['toVersion'],this['editor']['model']['document']['history']['version']),_0x298e6a['fromVersion']===_0x298e6a['toVersion']?(0x0!==_0x298e6a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x298e6a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x298e6a['id'],this['_startingVersion']=_0x298e6a['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',_0xf1f55=>!_0xf1f55),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x328b6d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e6cc5;for(const _0x349033 in _0x328b6d){const _0x52c218=_0x349033,_0x55946d=_0x328b6d[_0x52c218];if('revisionHistoryLicenseKeyValid'==_0x55946d||'revisionHistoryLicenseKeyInvalid'==_0x55946d||'revisionHistoryLicenseKeyExpired'==_0x55946d||'revisionHistoryLicenseKeyDomainLimit'==_0x55946d||'revisionHistoryLicenseKeyNotAllowed'==_0x55946d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x55946d||'revisionHistoryLicenseKeyTrialLimit'==_0x55946d||'revisionHistoryLicenseKeyUsageLimit'==_0x55946d){delete _0x328b6d[_0x52c218],_0x3e6cc5=_0x55946d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3e6cc5&&_0x328b6d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3e6cc5&&_0x328b6d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3e6cc5&&_0x328b6d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3e6cc5&&_0x328b6d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3e6cc5&&_0x328b6d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3e6cc5&&_0x328b6d['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3e6cc5&&_0x328b6d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1abc02=this['repository']['getRevision'](0x0),_0xc57a37=await this['getRevisionDocumentData'](_0x1abc02),_0x21028c=await this['getRevisionRootsAttributes'](_0x1abc02);this['_replaceEditorDataWithRevisionData'](_0xc57a37,_0x21028c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xee9ef0){this['_source']=_0xee9ef0;}async['update'](){const _0x5bd229=await this['_source']['getLatestVersion']();if(_0x5bd229>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3f029a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5bd229});_0x3f029a['authors']=_0x3f029a['authorsIds']['map'](_0x58eed9=>this['editor']['plugins']['get']('Users')['getUser'](_0x58eed9)),this['currentRevision']['_update'](_0x3f029a);}}async['saveRevision'](_0x147a4b={},_0x1a0924=null){const _0x2bfa4b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1a0924>this['currentRevision']['toVersion']&&(_0x1a0924=null),null===_0x1a0924&&(_0x1a0924=await this['_source']['getLatestVersion']());const _0x1b4e2b=this['_getFromVersion'](_0x1a0924),_0x535806=this['buildRevisionData']({'from':_0x1b4e2b,'to':_0x1a0924});if(this['currentRevision']['toVersion']<_0x1a0924){const _0x37b153=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1a0924,'to':_0x1a0924});_0x37b153['authors']=[],_0x37b153['authorsIds']=[],_0x37b153['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x37b153,!0x0),delete _0x37b153['authors'],_0x2bfa4b['push'](_0x37b153);}_0x147a4b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x147a4b['name']=_0x147a4b['name']||null,_0x147a4b['id']=_0x147a4b['id']||_0x346998(),_0x147a4b={..._0x147a4b,..._0x535806};const _0x5a63e9=this['addRevisionData'](_0x147a4b);_0x2bfa4b['push'](_0x147a4b);const _0x17adc1=this['repository']['getIndex'](_0x5a63e9);if(0x0!==_0x17adc1){const _0xcc686=this['repository']['getRevision'](_0x17adc1-0x1);if(_0xcc686['fromVersion']!==_0x1a0924){const _0x1e825f=this['_revisionDataBuilder']['getData'](_0x1a0924,_0xcc686['toVersion']),_0x5c91c4={'id':_0xcc686['id'],'diffData':_0x1e825f['diffData'],'authorsIds':_0x1e825f['authorsIds'],'authors':_0x1e825f['authorsIds']['map'](_0x2f3d1c=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f3d1c)),'fromVersion':_0x1a0924};_0xcc686===this['currentRevision']&&(_0x5c91c4['createdAt']=new Date(_0x147a4b['createdAt']['getTime']()+0xa)),_0xcc686['_update'](_0x5c91c4,!0x0),delete _0x5c91c4['authors'],_0x2bfa4b['push'](_0x5c91c4);}}if(this['adapter']){for(const _0x3c0959 of _0x2bfa4b)this['_bufferUpdate'](_0x3c0959['id'],_0x3c0959,!0x0);this['sendBufferedUpdates']();}return _0x5a63e9;}['addRevisionData'](_0x21c57c){const _0x57d525=this['repository']['createRevision'](_0x21c57c);return this['adapter']&&_0x57d525['on']('_update',(_0x585bc1,_0x231559,_0xb472fe)=>{_0xb472fe||(this['_bufferUpdate'](_0x231559['id'],_0x231559,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x57d525,this['_findInsertionIndex'](_0x57d525)),_0x57d525;}async['getRevisionDocumentData'](_0x36341e){return await this['_utils']['loadRevisionData'](_0x36341e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x36341e);}async['getRevisionRootsAttributes'](_0x5ae2f9){return await this['_utils']['loadRevisionData'](_0x5ae2f9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5ae2f9);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x59cc4d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x236648=0x0;_0x236648<_0x59cc4d['length'];_0x236648++){const _0x5f01bb=_0x59cc4d[_0x236648];let _0x4ae541=!0x1;for(const _0x2cd4aa of Object['keys'](_0x5f01bb))void 0x0===_0x5f01bb[_0x2cd4aa]?delete _0x5f01bb[_0x2cd4aa]:'id'!==_0x2cd4aa&&(_0x4ae541=!0x0);_0x4ae541||(_0x59cc4d[_0x236648]=null);}if(_0x59cc4d=_0x59cc4d['filter'](_0x64d8a4=>null!==_0x64d8a4),!_0x59cc4d['length'])return;for(let _0x5d520a=0x0;_0x5d520a<_0x59cc4d['length'];_0x5d520a++){const _0xc06350=_0x59cc4d[_0x5d520a];void 0x0!==_0xc06350['fromVersion']&&void 0x0===_0xc06350['toVersion']&&(_0xc06350['toVersion']=this['repository']['getRevision'](_0xc06350['id'])['toVersion']),void 0x0!==_0xc06350['toVersion']&&void 0x0===_0xc06350['fromVersion']&&(_0xc06350['fromVersion']=this['repository']['getRevision'](_0xc06350['id'])['fromVersion']);}const _0x1f7972=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x59cc4d,_0x1f7972)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x9a132b=>{if(_0x9a132b){for(const _0x3b101f of _0x9a132b)this['setRevisionData']({'id':_0x3b101f['id'],'createdAt':_0x3b101f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2fa9dd=null,from:_0x49687f=null,to:_0x4a855e=null}){_0x49687f=null!==_0x49687f?_0x49687f:_0x2fa9dd['fromVersion'],_0x4a855e=null!==_0x4a855e?_0x4a855e:_0x2fa9dd['toVersion'];const _0xc3eb7a=this['_revisionDataBuilder']['getData'](_0x49687f,_0x4a855e),_0x307716={'diffData':_0xc3eb7a['diffData'],'authorsIds':_0xc3eb7a['authorsIds'],'fromVersion':_0x49687f,'toVersion':_0x4a855e};if(!_0x2fa9dd||_0x4a855e!==_0x2fa9dd['toVersion']){const _0x5697e4=_0x4a855e-0x1,_0x3c3e27=this['_source']['history']['getOperation'](_0x5697e4);_0x307716['createdAt']=_0x3c3e27&&_0x3c3e27['createdAt']||new Date();}if(this['_loadedStateData']&&_0x49687f===this['_loadedStateData']['fromVersion']){for(const _0x36cbfd of this['_loadedStateData']['authors'])_0x307716['authorsIds']['includes'](_0x36cbfd['id'])||_0x307716['authorsIds']['push'](_0x36cbfd['id']);}return _0x307716;}['_bufferUpdate'](_0x190c5f,_0x33879f,_0x50f1ff){if(this['_bufferedUpdates']['has'](_0x190c5f)){const _0x13fd63=this['_bufferedUpdates']['get'](_0x190c5f);_0x33879f=_0x50f1ff?{..._0x13fd63,..._0x33879f}:{..._0x33879f,..._0x13fd63};}this['_bufferedUpdates']['set'](_0x190c5f,_0x33879f);}['setRevisionData'](_0x1e4991){const _0x1add39=this['repository']['getRevision'](_0x1e4991['id']);if(_0x1e4991['createdAt']&&(_0x1e4991['createdAt']=new Date(_0x1e4991['createdAt'])),_0x1e4991['authorsIds']){const _0x3c972d=this['editor']['plugins']['get']('Users');_0x1e4991['authors']=_0x1e4991['authorsIds']['map'](_0x19367c=>_0x3c972d['getUser'](_0x19367c));}_0x1add39['_update'](_0x1e4991,!0x0);}['_createInitialRevision'](_0x9b943b){const _0x226f88=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x226f88)this['_initialRevisionId']=_0x226f88['id'];else{const _0x49bda4=!this['editor']['model']['document']['roots']['find'](_0x5c51f4=>this['editor']['model']['hasContent'](_0x5c51f4)),_0x33fbbb=this['editor']['plugins']['get']('Users')['me']['id'],_0x2e97a9=R(this['editor']['locale'],_0x49bda4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x9b943b,'to':_0x9b943b,'id':this['_initialRevisionId'],'name':_0x2e97a9,'creatorId':_0x33fbbb});}}['_createCurrentRevision'](_0x4fedb4){const _0x51cc39=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x51cc39),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4fedb4,'to':_0x4fedb4,'id':_0x51cc39,'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'](_0x2eaf74,_0x18c50e){let _0x8cb299=this['editor']['config']['get']('initialData'),_0x508b64=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x8cb299){_0x8cb299={};for(const _0x5158fd of this['editor']['model']['document']['getRootNames']())_0x8cb299[_0x5158fd]='';}if('string'==typeof _0x8cb299&&(_0x8cb299={'main':_0x8cb299}),void 0x0===_0x508b64){_0x508b64={};for(const _0x963f99 of this['editor']['model']['document']['getRootNames']())_0x508b64[_0x963f99]={};}let _0x5d8e6c=!0x1;const _0x18afa4=Object['keys'](_0x8cb299),_0x43f892=Object['keys'](_0x2eaf74);for(const _0x289355 of _0x18afa4){if(_0x8cb299[_0x289355]!==_0x2eaf74[_0x289355]&&''!==_0x8cb299[_0x289355]['trim']()){_0x5d8e6c=!0x0;break;}if(!_0xa19007(_0x508b64[_0x289355],_0x18c50e[_0x289355])&&Object['keys'](_0x508b64[_0x289355])['length']>0x0){_0x5d8e6c=!0x0;break;}}_0x5d8e6c||(_0x5d8e6c=_0x43f892['some'](_0x127ed7=>!this['editor']['model']['document']['getRoot'](_0x127ed7))),_0x5d8e6c&&_0x5cc4ce('editor-initial-data-replaced-with-revision-data',{'editorData':_0x8cb299,'editorRootsAttributes':_0x508b64,'revisionData':_0x2eaf74,'revisionRootsAttributes':_0x18c50e}),this['editor']['config']['set']('initialData',_0x2eaf74),this['editor']['config']['set']('rootsAttributes',_0x18c50e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x27076e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x27076e['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x328354){const _0x394aa0=this['repository']['getRevisions']();_0x394aa0['reverse']();let _0x3d6fb4=0x0;for(;_0x3d6fb4<_0x394aa0['length'];){const _0x307579=_0x394aa0[_0x3d6fb4];if(_0x307579===this['currentRevision']){_0x3d6fb4++;continue;}if(_0x307579['id']===this['_initialRevisionId'])break;const _0x328b19=_0x328354['toVersion']-_0x307579['toVersion']||_0x328354['fromVersion']-_0x307579['fromVersion'];if(_0x328b19>0x0)break;if(_0x328b19<0x0)_0x3d6fb4++;else{if(!_0x328354['creator']&&_0x307579['creator'])break;if(_0x307579['creator']||!_0x328354['creator']){if(_0x328354['createdAt']>_0x307579['createdAt'])break;_0x3d6fb4++;}else _0x3d6fb4++;}}return _0x3d6fb4;}['_getFromVersion'](_0x126ab3){const _0x46fc7d=this['repository']['getRevisions']();_0x46fc7d['reverse'](),_0x46fc7d['shift']();const _0x3ef650=_0x46fc7d['find'](_0x149a1b=>_0x149a1b['toVersion']<=_0x126ab3)['toVersion'];return _0x3ef650<this['_startingVersion']?this['_startingVersion']:_0x3ef650;}['_makeRevision']({name:_0x35441b,from:_0x4ebaad,to:_0xe598cc,creatorId:_0x13bc5b,id:_0x2f429a}){const _0x5d3c06=this['buildRevisionData']({'from':_0x4ebaad,'to':_0xe598cc});_0x5d3c06['name']=_0x35441b,_0x5d3c06['creatorId']=_0x13bc5b,_0x5d3c06['id']=_0x2f429a;const _0x347051=this['addRevisionData'](_0x5d3c06);return this['adapter']&&this['_bufferUpdate'](_0x5d3c06['id'],_0x5d3c06,!0x0),_0x347051;}['_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(_0x4e585d){this['editor']=_0x4e585d,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'](_0x3f60f7){this['source']=_0x3f60f7;const _0x10f7ec=new Map(),_0x39bb96=new Map(),_0x248282=this['editor']['model']['document']['roots']['map'](_0x2310d9=>_0x2310d9['rootName']);for(const _0x258394 of _0x248282){const _0x1308ae=this['editor']['model']['document']['getRoot'](_0x258394),_0x5d1603=x(_0x1308ae);_0x10f7ec['set'](_0x258394,_0x5d1603),_0x39bb96['set'](_0x258394,Object['fromEntries'](_0x1308ae['getAttributes']()));}const _0x71a4e0=Array['from'](this['editor']['model']['markers'])['map'](_0x16a550=>[_0x16a550['name'],_0x16a550['getRange']()]),_0x5f0897=this['source']['version'];this['_saveMetaData'](_0x5f0897,_0x10f7ec,_0x71a4e0,_0x39bb96),this['_startingRevisionId']=this['_revisionId'];const _0x18910d=new Map(),_0x2b4868=new Map();for(const _0x58754f of _0x248282){const _0x1ab4ab=N(_0x58754f);_0x18910d['set'](_0x58754f,_0x1ab4ab),_0x2b4868['set'](_0x58754f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x18910d,[],_0x2b4868);}['getData'](_0x1bd0f9,_0x15ce85){if(this['_lastFrom']===_0x1bd0f9&&this['_lastTo']<=_0x15ce85)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x15ce85,!0x0);else{if(!this['_savedMetaData']['has'](_0x1bd0f9)){const _0x52f66a=this['_getPreviousFrom'](_0x1bd0f9);this['_calculateMetaData'](_0x52f66a,_0x1bd0f9,!0x1);}this['_calculateMetaData'](_0x1bd0f9,_0x15ce85,!0x0);}return this['_lastFrom']=_0x1bd0f9,this['_lastTo']=_0x15ce85,this['_getState']();}['loadState'](_0x4d4b16){const _0x1a168f=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4d4b16['fromVersion'],this['_lastTo']=_0x4d4b16['toVersion'];for(const _0x1e2275 in _0x4d4b16['diffData']){const _0x2493ee=_0x4d4b16['diffData'][_0x1e2275]['attachChange'],_0x3844fb=_0x29a14b(_0x4d4b16['diffData'][_0x1e2275]['attributesBefore'])||{},_0xd2b7b5=_0x1a168f['_makeModelFromViewString'](_0x4d4b16['diffData'][_0x1e2275]['deletions']);_0xd2b7b5['rootName']=_0x1e2275,_0xd2b7b5['_isAttached']=!_0x2493ee||!_0x2493ee['isAttached'],_0xd2b7b5['isAttached']=()=>_0xd2b7b5['_isAttached'],this['_baseRoots']['set'](_0x1e2275,_0xd2b7b5),this['_baseRootsAttributes']['set'](_0x1e2275,_0x3844fb),_0x2493ee&&this['_touchedRoots']['set'](_0x1e2275,_0x2493ee);const _0x3e139d=this['_makeIdsRoot'](_0xd2b7b5);this['_baseIdsRoots']['set'](_0x1e2275,_0x3e139d);for(const [_0x41c471,_0x3d474e]of _0xd2b7b5['markers']){if(!_0x41c471['startsWith']('revision:'))continue;const _0x2a6ff0=_0x41c471['split'](':')[0x2];for(const _0xaf50ff of _0x3d474e['getWalker']({'singleCharacters':!0x0})){const _0x3ccac0=this['_getVidAttributeName'](_0xaf50ff),_0x1262c5='elementEnd'==_0xaf50ff['type']?_0xaf50ff['previousPosition']['path']['slice'](0x0,-0x1):_0xaf50ff['previousPosition']['path'],_0x25ea8c=_0x3e139d['getNodeByPath'](_0x1262c5)['getAttribute'](_0x3ccac0);this['_touched']['set'](_0x25ea8c,{'userId':_0x2a6ff0});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5a0346=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x123219=>!this['_touched']['has'](_0x123219));let _0x3f5e98=0x0;const _0x4d477c=new Map();for(const _0x32c2ec in _0x4d4b16['diffData']){const _0x1eaeb0=_0x4d4b16['diffData'][_0x32c2ec]['attachChange'],_0x3991fd=_0x29a14b(_0x4d4b16['diffData'][_0x32c2ec]['attributesAfter'])||{},_0x268589=_0x1a168f['_makeModelFromViewString'](_0x4d4b16['diffData'][_0x32c2ec]['insertions']);_0x268589['rootName']=_0x32c2ec,_0x268589['_isAttached']=!_0x1eaeb0||_0x1eaeb0['isAttached'],_0x268589['isAttached']=()=>_0x268589['_isAttached'],this['_diffRoots']['set'](_0x32c2ec,_0x268589),this['_diffRootsAttributes']['set'](_0x32c2ec,_0x3991fd);const _0x1a6587=this['_makeIdsRoot'](_0x268589,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x32c2ec,_0x1a6587),_0x4d477c['set'](_0x32c2ec,_0x268589['isAttached']()?_0x3991fd:{});for(const [_0x326a30,_0x571ef3]of _0x268589['markers']){if(!_0x326a30['startsWith']('revision:'))continue;const _0x523322=_0x326a30['split'](':')[0x2];for(const _0x442a79 of _0x571ef3['getWalker']({'singleCharacters':!0x0})){const _0x50dd5d=this['_getVidAttributeName'](_0x442a79),_0x4212e8=this['_revisionId']++,_0x40f127='elementEnd'==_0x442a79['type']?_0x442a79['previousPosition']['path']['slice'](0x0,-0x1):_0x442a79['previousPosition']['path'];_0x1a6587['getNodeByPath'](_0x40f127)['_setAttribute'](_0x50dd5d,_0x4212e8),this['_touched']['set'](_0x4212e8,{'userId':_0x523322});}}for(const _0x55c317 of this['editor']['model']['createRangeIn'](_0x268589)['getWalker']({'singleCharacters':!0x0})){const _0x2bb808=this['_getVidAttributeName'](_0x55c317),_0xbab2e6='elementEnd'==_0x55c317['type']?_0x55c317['previousPosition']['path']['slice'](0x0,-0x1):_0x55c317['previousPosition']['path'],_0x29e3f2=_0x1a6587['getNodeByPath'](_0xbab2e6);_0x29e3f2['getAttribute'](_0x2bb808)>0x0||_0x29e3f2['_setAttribute'](_0x2bb808,_0x5a0346[_0x3f5e98++]);}for(const [_0x574121,_0x21e718]of _0x268589['markers'])_0x574121['startsWith']('revision:')||this['_markers']['set'](_0x574121,_0x21e718);}const _0x4bb960=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4bb960),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4bb960,0x1));const _0x48073a=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x48073a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x48073a,0x1));const _0x5ef12a=Array['from'](this['_diffRoots'])['map'](([_0x10b8a3,_0x54e08a])=>[_0x10b8a3,x(_0x54e08a)]);this['_saveMetaData'](this['_lastTo'],_0x5ef12a,this['_markers'],_0x4d477c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xeecfd4,_0x3ba2dd,_0x1dd0bf,_0x334550){const _0x3f37db=new Map(_0x3ba2dd),_0x1c1634=new Map(_0x29a14b(_0x334550)),_0x343675=new Map();for(const [_0x56422f,_0x4907b0]of _0x1dd0bf)_0x343675['set'](_0x56422f,{'start':_0x4907b0['start']['clone'](),'end':_0x4907b0['end']['clone'](),'rootName':_0x4907b0['root']['rootName']});this['_savedMetaData']['set'](_0xeecfd4,{'roots':_0x3f37db,'markers':_0x343675,'rootsAttributes':_0x1c1634});}['_removeMetaData'](_0x2cbb98){this['_savedMetaData']['delete'](_0x2cbb98);}['_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'](_0x3e47f4,_0x58e198=null){let _0x952d89=null;_0x3e47f4['is']('documentFragment')||(_0x952d89=new _0x587d6f(_0x3e47f4['name'],{'vid_start':null===_0x58e198?this['_revisionId']++:_0x58e198++}));const _0x17c71b=[];for(const _0x41e7e5 of _0x3e47f4['getChildren']())if(_0x41e7e5['is']('element')){_0x17c71b['push'](this['_makeIdsRoot'](_0x41e7e5,_0x58e198));const _0x5de81c=_0x17c71b[_0x17c71b['length']-0x1];null!==_0x58e198&&(_0x58e198=_0x5de81c['is']('element','$text')?_0x5de81c['getAttribute']('vid')+0x1:_0x5de81c['getAttribute']('vid_end')+0x1);}else{for(let _0x2de4d2=0x0;_0x2de4d2<_0x41e7e5['offsetSize'];_0x2de4d2++)_0x17c71b['push'](new _0x587d6f('$text',{'vid':null===_0x58e198?this['_revisionId']++:_0x58e198++}));}if(_0x3e47f4['is']('documentFragment')){const _0x41c7a0=N(_0x3e47f4['rootName']);return _0x41c7a0['_insertChild'](0x0,_0x17c71b),_0x41c7a0;}return _0x952d89['_setAttribute']('vid_end',null===_0x58e198?this['_revisionId']++:_0x58e198++),_0x952d89['_insertChild'](0x0,_0x17c71b),_0x952d89;}['_calculateMetaData'](_0x34027d,_0x3007a1,_0x3dd56f){this['_reset']();const {roots:_0x45eb76,markers:_0x28bab9,rootsAttributes:_0x2e66bb}=this['_savedMetaData']['get'](_0x34027d);this['_baseRoots']=new Map(_0x45eb76),this['_baseRootsAttributes']=new Map(_0x29a14b(_0x2e66bb));for(const [_0x575f6e,_0x223401]of this['_baseRoots'])if('$graveyard'!==_0x575f6e&&(this['_diffRoots']['set'](_0x575f6e,x(_0x223401)),this['_diffRootsAttributes']=new Map(_0x29a14b(_0x2e66bb)),_0x3dd56f)){const _0x5b1d2=this['_revisionId'];this['_idsRoots']['set'](_0x575f6e,this['_makeIdsRoot'](_0x223401)),this['_baseIdsRoots']['set'](_0x575f6e,this['_makeIdsRoot'](_0x223401,_0x5b1d2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x3dd56f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x32aa97,_0x19857f]of _0x28bab9){const _0x1f3b65=this['_baseRoots']['get'](_0x19857f['rootName']),_0x30e2ab=this['_diffRoots']['get'](_0x19857f['rootName']),_0x234f05=new _0x3ec640(this['_fixPosition'](_0x19857f['start'],_0x1f3b65),this['_fixPosition'](_0x19857f['end'],_0x1f3b65)),_0x53afb0=this['_fixRange'](_0x234f05,_0x30e2ab);_0x1f3b65['markers']['set'](_0x32aa97,_0x234f05),this['_markers']['set'](_0x32aa97,_0x53afb0);}this['_applyOperations'](_0x34027d,_0x3007a1,_0x3dd56f);}['_applyOperations'](_0x11c7cf,_0x1781b2,_0x160868){for(const _0x190d01 of this['source']['getOperations'](_0x11c7cf,_0x1781b2))this['_handleOperation'](_0x190d01,_0x160868);for(const _0x47775d of this['_diffRoots']['values']())_0x47775d['markers']['clear']();for(const [_0x108bb4,_0x97524c]of this['_markers']){this['_diffRoots']['get'](_0x97524c['root']['rootName'])['markers']['set'](_0x108bb4,_0x97524c['clone']());}const _0x3c9135=new Map(),_0x2873b8=new Map();for(const [_0x1cbbba,_0x29d0c0]of this['_diffRoots'])_0x3c9135['set'](_0x1cbbba,x(_0x29d0c0)),_0x2873b8['set'](_0x1cbbba,this['_diffRootsAttributes']['get'](_0x1cbbba));this['_saveMetaData'](_0x1781b2,_0x3c9135,this['_markers'],_0x2873b8);}['_getPreviousFrom'](_0x31fa8f){const _0x395031=Array['from'](this['_savedMetaData']['keys']());_0x395031['sort']((_0x3e1ac8,_0x2e4d24)=>_0x3e1ac8-_0x2e4d24),_0x395031['reverse']();for(const _0x29a9a3 of _0x395031)if(_0x29a9a3<_0x31fa8f)return _0x29a9a3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x14f30a,_0x493ec6){const _0x475d19=Array['from'](_0x493ec6['markers'])['map'](([_0x29b310,_0x735e4])=>[_0x29b310,this['_fixRange'](_0x735e4,_0x14f30a)]);_0x14f30a['markers']=new Map(_0x475d19);}['_transformMarkers'](_0x1c130f){for(const _0x9a9a42 of this['_markers']['values']()){const _0x268237=_0x9a9a42['getTransformedByOperation'](_0x1c130f),_0xf8d3d=_0x3ec640['_createFromRanges'](_0x268237);_0x9a9a42['start']=_0xf8d3d['start'],_0x9a9a42['end']=_0xf8d3d['end'];}}['_handleOperation'](_0x344d74,_0x490199){if('addRoot'!=_0x344d74['type']&&'detachRoot'!=_0x344d74['type']){if('insert'==_0x344d74['type']){const _0x17baaa=_0x344d74['position']['root']['rootName'];this['_diffRoots']['has'](_0x17baaa)||(this['_diffRoots']['set'](_0x17baaa,N(_0x17baaa,!0x0)),this['_diffRootsAttributes']['set'](_0x17baaa,{}),_0x490199&&this['_idsRoots']['set'](_0x17baaa,N(_0x17baaa,!0x0)));}else{if('addRootAttribute'==_0x344d74['type']||'removeRootAttribute'==_0x344d74['type']||'changeRootAttribute'==_0x344d74['type'])return void this['_handleRootAttributeOperation'](_0x344d74);'marker'==_0x344d74['type']&&this['_handleMarkerOperation'](_0x344d74);}if('marker'!==_0x344d74['type']){const _0x3e7dac=this['_cloneOperation'](_0x344d74,this['_diffRoots']);_0x3e7dac['_execute'](),this['_transformMarkers'](_0x3e7dac);}if(_0x490199)switch(_0x344d74['type']){case'insert':this['_handleInsertOperation'](_0x344d74);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x344d74);break;case'merge':this['_handleMergeOperation'](_0x344d74);break;case'split':this['_handleSplitOperation'](_0x344d74);}}else this['_handleRootOperation'](_0x344d74,_0x490199);}['_cloneOperation'](_0x292786,_0x4f411b){const _0x53d404=_0x292786['clone']();return _0x53d404['_authorId']=_0x292786['_authorId'],this['_fixOperation'](_0x53d404,_0x4f411b),_0x53d404;}['_getBaseVids'](_0x3ead7b){return _0x3ead7b['map'](_0x53ce1a=>{const _0x19fd56=this['_getVidAttributeName'](_0x53ce1a);return Number(_0x53ce1a['item']['getAttribute'](_0x19fd56));});}['_generateTape'](_0x4ff409,_0x3971b8){if(_0x4ff409['is']('element','$text'))_0x3971b8['push']({'item':_0x4ff409,'type':'text'});else{_0x4ff409['is']('element')&&_0x3971b8['push']({'item':_0x4ff409,'type':'elementStart'});for(const _0x2cf9ac of _0x4ff409['getChildren']())this['_generateTape'](_0x2cf9ac,_0x3971b8);_0x4ff409['is']('element')&&_0x3971b8['push']({'item':_0x4ff409,'type':'elementEnd'});}return _0x3971b8;}['_getState'](){const _0x1131c1=new Map(this['_touched']),_0x50903d=new Map(_0x1131c1),_0xcf9883=new Map(),_0x57bcf1={'insertions':{},'deletions':{}},_0x35d49e={'insertions':{},'deletions':{}},_0x3b3468=new Map(),_0x709499=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x709499['delete']('$graveyard');for(const _0x1a4958 of _0x709499){const _0x5ec0d8=this['_diffRoots']['get'](_0x1a4958)||N(_0x1a4958,!0x1),_0x30a7b0=this['_baseRoots']['get'](_0x1a4958)||N(_0x1a4958,!0x1);_0x5ec0d8['isAttached']()||_0x30a7b0['isAttached']()?(_0x57bcf1['insertions'][_0x1a4958]=x(_0x5ec0d8),_0x57bcf1['deletions'][_0x1a4958]=x(_0x30a7b0),this['_copyMarkers'](_0x57bcf1['deletions'][_0x1a4958],_0x30a7b0),this['_copyMarkers'](_0x57bcf1['insertions'][_0x1a4958],_0x5ec0d8),_0x35d49e['insertions'][_0x1a4958]=this['_generateTape'](this['_idsRoots']['get'](_0x1a4958),[]),_0x35d49e['deletions'][_0x1a4958]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1a4958)||N(_0x1a4958,!0x1),[])):_0x709499['delete'](_0x1a4958);}for(const _0x4da402 of _0x709499){const _0x2f48d9=_0x35d49e['insertions'][_0x4da402];for(const _0x136746 of _0x2f48d9){const _0x497c68=this['_getVidAttributeName'](_0x136746),_0x50fe7c=_0x136746['item']['getAttribute'](_0x497c68);_0x50903d['delete'](_0x50fe7c),_0x50fe7c>=this['_startingRevisionId']&&_0xcf9883['set'](_0x50fe7c,_0x1131c1['get'](_0x50fe7c));}}for(const _0x936fb6 of _0x709499){const _0x425d7a=_0x35d49e['insertions'][_0x936fb6],_0x352677=this['_getBaseVids'](_0x35d49e['deletions'][_0x936fb6]);let _0x54e179=0x0;for(const _0x3e1ab7 of _0x425d7a){const _0x1c61b1=this['_getVidAttributeName'](_0x3e1ab7),_0x5db6f1=_0x3e1ab7['item']['getAttribute'](_0x1c61b1);if(!_0xcf9883['has'](_0x5db6f1)&&!_0x3b3468['has'](_0x5db6f1)){if(_0x50903d['has'](_0x5db6f1))_0x54e179++;else{if(_0x5db6f1!=_0x352677[_0x54e179]){const _0x4010fd=_0x1131c1['get'](_0x5db6f1)||_0x1131c1['get'](_0x352677[_0x54e179]);for(;_0x5db6f1!=_0x352677[_0x54e179];)_0x50903d['has'](_0x352677[_0x54e179])||(_0x3b3468['set'](_0x352677[_0x54e179],_0x4010fd),_0x1131c1['set'](_0x352677[_0x54e179],_0x4010fd)),_0x54e179++;}_0x54e179++;}}}}for(const _0x360e49 of _0x709499){const _0x4cc6f9=_0x35d49e['insertions'][_0x360e49];for(const _0x397af5 of _0x4cc6f9){const _0x2611da=this['_getVidAttributeName'](_0x397af5),_0x4f2825=_0x397af5['item']['getAttribute'](_0x2611da);if(_0x3b3468['has'](_0x4f2825)){const _0x4f8108=_0x3b3468['get'](_0x4f2825);_0x50903d['has'](_0x4f2825)||_0x50903d['set'](_0x4f2825,{..._0x4f8108}),_0xcf9883['set'](_0x4f2825,{..._0x4f8108});}}}for(const _0x22d7ea of _0x50903d['keys']())_0x22d7ea>=this['_startingRevisionId']&&_0x50903d['delete'](_0x22d7ea);const _0x1eab24=new Map();for(const _0x4cc25f of _0x709499){let _0x23661f=_0x35d49e['insertions'][_0x4cc25f];for(const _0x3c826f of _0x23661f)if(_0x3c826f['item']['is']('element','tableCell')){const _0x144a80=this['_getVidAttributeName'](_0x3c826f),_0x57dcd9=_0x3c826f['item']['getAttribute'](_0x144a80);if(_0xcf9883['has'](_0x57dcd9)){const _0x22f538=_0x3c826f['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d882a=_0x1eab24['get'](_0x22f538)||new Set();_0x5d882a['add'](_0xcf9883['get'](_0x57dcd9)['userId']),_0x1eab24['set'](_0x22f538,_0x5d882a);}}_0x23661f=_0x35d49e['deletions'][_0x4cc25f];for(const _0x2a3e7e of _0x23661f)if(_0x2a3e7e['item']['is']('element','tableCell')){const _0x36c121=this['_getVidAttributeName'](_0x2a3e7e),_0x1bd751=_0x2a3e7e['item']['getAttribute'](_0x36c121);if(_0x50903d['has'](_0x1bd751)){const _0x309e93=_0x2a3e7e['item']['parent']['parent']['getAttribute']('vid_start'),_0x24f14f=_0x1eab24['get'](_0x309e93)||new Set();_0x24f14f['add'](_0x50903d['get'](_0x1bd751)['userId']),_0x1eab24['set'](_0x309e93,_0x24f14f);}}for(const _0x4c3d93 of _0x1eab24['keys']())(_0xcf9883['has'](_0x4c3d93)||_0x50903d['has'](_0x4c3d93))&&_0x1eab24['delete'](_0x4c3d93);}for(const _0x34f5f4 of _0x709499){const _0x275bce=_0x35d49e['insertions'][_0x34f5f4];let _0x335010=null,_0xa3cead=null;for(const _0x4ec4fd of _0x275bce){const _0xb779c6=this['_getVidAttributeName'](_0x4ec4fd),_0x3ceb97=_0x4ec4fd['item']['getAttribute'](_0xb779c6),_0x59f501=_0x1eab24['get'](_0x3ceb97);_0x59f501&&'elementStart'==_0x4ec4fd['type']&&(_0x335010=Array['from'](_0x59f501)[0x0],_0xa3cead=_0x4ec4fd['item']['getAttribute']('vid_end')),_0x335010&&(_0x50903d['set'](_0x3ceb97,{'userId':_0x335010}),_0xcf9883['set'](_0x3ceb97,{'userId':_0x335010})),_0x3ceb97==_0xa3cead&&(_0x335010=null,_0xa3cead=null);}}const _0x58226c={},_0x3655f5=new Set();for(const _0x468cfa of _0x709499){const _0x398db9=_0x57bcf1['deletions'][_0x468cfa],_0x275933=_0x57bcf1['insertions'][_0x468cfa];for(const {userId:_0x2520bb}of this['_touchedMarkers']['values']())null!==_0x2520bb&&_0x3655f5['add'](_0x2520bb);for(const {userId:_0x429eeb}of this['_touchedRoots']['values']())null!==_0x429eeb&&_0x3655f5['add'](_0x429eeb);this['_markChanges'](_0x275933,_0x35d49e['insertions'][_0x468cfa],_0xcf9883,'insertion',_0x3655f5),this['_markChanges'](_0x398db9,_0x35d49e['deletions'][_0x468cfa],_0x50903d,'deletion',_0x3655f5),_0x58226c[_0x468cfa]={'insertions':this['_prepareViewToSave'](_0x275933),'deletions':this['_prepareViewToSave'](_0x398db9),'attachChange':this['_touchedRoots']['get'](_0x468cfa)||null,'attributesBefore':_0x29a14b(this['_baseRootsAttributes']['get'](_0x468cfa))||{},'attributesAfter':_0x29a14b(this['_diffRootsAttributes']['get'](_0x468cfa))};}return{'diffData':_0x58226c,'authorsIds':Array['from'](_0x3655f5)};}['_processRootBeforeSave'](_0x57a366){for(const [,_0x58debd]of _0x57a366['markers']){const _0x19e83e=_0x58debd['start']['getAncestors']()['filter'](_0x51278e=>'tableCell'==_0x51278e['name']);for(const _0x5b373b of _0x19e83e)0x1==_0x5b373b['childCount']&&_0x5b373b['getChild'](0x0)['is']('element','paragraph')&&_0x5b373b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x114b82){this['_processRootBeforeSave'](_0x114b82);const _0x422f36=this['editor']['data']['toView'](_0x114b82,{}),_0x191fae=Array['from'](_0x422f36['getChildren']())['map'](_0x382d30=>this['_getViewJson'](_0x382d30));return JSON['stringify'](_0x191fae);}['_getViewJson'](_0x2577f6){if(_0x2577f6['is']('$text'))return _0x2577f6['data'];{const _0x116a97=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x45eeda=_0x2577f6,_0x924d76=this['editor']['data']['htmlProcessor']['domConverter'],_0x14989f={'type':_0x116a97['_getTypeCharForViewElement'](_0x45eeda),'name':_0x45eeda['name'],'attributes':Array['from'](_0x45eeda['getAttributes']()),'children':Array['from'](_0x45eeda['getChildren']())['map'](_0x1f07fa=>this['_getViewJson'](_0x1f07fa))};if(_0x2577f6['is']('uiElement')&&'$comment'!=_0x2577f6['name']){const _0x3ccf56=_0x2577f6['render'](_0x924d76['domDocument'],_0x924d76);_0x14989f['children']['push'](_0x3ccf56['outerHTML']);}else{if(_0x2577f6['is']('rawElement')){const _0x1b88bd=_0x924d76['domDocument']['createElement'](_0x45eeda['name']);_0x2577f6['render'](_0x1b88bd,_0x924d76),_0x14989f['children']['push'](_0x1b88bd['innerHTML']);}}const _0x1f1437=Array['from'](_0x45eeda['getCustomProperties']());_0x1f1437['length']>0x0&&(_0x14989f['customProperties']=_0x1f1437);const _0x3b0658=_0x45eeda['getFillerOffset']();return null!==_0x3b0658&&(_0x14989f['fillerOffset']=_0x3b0658),_0x14989f;}}['_markChanges'](_0x3b49a6,_0x34ec6a,_0x2e207c,_0x5bf0bc,_0x2d3e92){let _0x21be82=null,_0x19e8b7=null,_0x499e99=0x0;const _0xdb3755=this['editor']['model'];for(let _0x1fea9a=0x0;_0x1fea9a<_0x34ec6a['length'];_0x1fea9a++){const _0x162c24=this['_getVidAttributeName'](_0x34ec6a[_0x1fea9a]),_0x2b954c=_0x34ec6a[_0x1fea9a]['item']['getAttribute'](_0x162c24),_0x125b79=_0x2e207c['get'](_0x2b954c),_0x4c9216=_0x1fea9a==_0x34ec6a['length']-0x1;(!_0x21be82&&_0x125b79&&(_0x21be82=_0x125b79,_0x19e8b7=_0x34ec6a[_0x1fea9a]),_0x21be82&&(!_0x125b79||_0x125b79['userId']!=_0x21be82['userId']))&&(_0x1ec09a(_0x125b79,P(_0x19e8b7,_0x3b49a6,_0xdb3755),P(_0x34ec6a[_0x1fea9a],_0x3b49a6,_0xdb3755)),_0x21be82=_0x125b79||null,_0x19e8b7=_0x125b79?_0x34ec6a[_0x1fea9a]:null),_0x21be82&&_0x4c9216&&_0x1ec09a(_0x125b79,P(_0x19e8b7,_0x3b49a6,_0xdb3755),V(_0x34ec6a[_0x1fea9a],_0x3b49a6,_0xdb3755));}function _0x1ec09a(_0x3dd052,_0x1cf6fa,_0x311d6a){const _0x212da2=_0x21be82['userId'],_0x4b0fb4='revision:'+_0x5bf0bc+':'+_0x212da2+':'+_0x499e99++,_0x5e2273=_0xdb3755['createRange'](_0x1cf6fa,_0x311d6a);_0x3b49a6['markers']['set'](_0x4b0fb4,_0x5e2273),null!==_0x212da2&&_0x2d3e92['add'](_0x212da2);}}['_getVidAttributeName'](_0x51f505){switch(_0x51f505['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x41fade,_0xc2ea12){_0x41fade['baseVersion']=null;for(const _0x31ce6d in _0x41fade){const _0x152b2e=_0x41fade[_0x31ce6d];if(_0x152b2e instanceof _0x4482fa){const _0x58d656=_0xc2ea12['get'](_0x152b2e['root']['rootName']);_0x41fade[_0x31ce6d]=this['_fixPosition'](_0x152b2e,_0x58d656);}if(_0x152b2e instanceof _0x3ec640){const _0x4ec9db=_0xc2ea12['get'](_0x152b2e['root']['rootName']);_0x41fade[_0x31ce6d]=this['_fixRange'](_0x152b2e,_0x4ec9db);}'root'===_0x31ce6d&&(_0x41fade['root']=_0xc2ea12['get'](_0x41fade['root']['rootName']));}}['_fixRange'](_0x3da286,_0x17d6ec){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3da286['start'],_0x17d6ec),this['_fixPosition'](_0x3da286['end'],_0x17d6ec));}['_fixPosition'](_0xd1b081,_0xb72b37){return this['editor']['model']['createPositionFromPath'](_0xb72b37,_0xd1b081['path'],_0xd1b081['stickiness']);}['_handleInsertOperation'](_0x1a5ac5){const _0x37e309=this['_idsRoots']['get'](_0x1a5ac5['position']['root']['rootName']),_0x10f01d=this['_fixPosition'](_0x1a5ac5['position'],_0x37e309),_0x4f4ce4=null===_0x1a5ac5['_authorId']?null:_0x1a5ac5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c8156=_0x10f01d['parent'],_0x4fb79d=this['_revisionId'],_0x1ab131=[];for(const _0x3c82fb of _0x1a5ac5['nodes'])if(_0x3c82fb['is']('element'))_0x1ab131['push'](this['_makeIdsRoot'](_0x3c82fb));else{for(let _0x26b020=0x0;_0x26b020<_0x3c82fb['offsetSize'];_0x26b020++)_0x1ab131['push'](new _0x587d6f('$text',{'vid':this['_revisionId']++}));}const _0x3fdc44=this['_revisionId'];for(let _0x1fb247=_0x4fb79d;_0x1fb247<_0x3fdc44;_0x1fb247++)this['_touched']['set'](_0x1fb247,{'userId':_0x4f4ce4});_0x5c8156['_insertChild'](_0x10f01d['offset'],_0x1ab131);}['_handleMoveOperation'](_0x55300a){(_0x55300a=this['_cloneOperation'](_0x55300a,this['_idsRoots']))['_execute']();const _0x17b587=null===_0x55300a['_authorId']?null:_0x55300a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x141cc2=_0x55300a['getMovedRangeStart'](),_0x62e1b4=_0x141cc2['parent'],_0x58ba41=_0x141cc2['offset'];!function _0x11ad4f(_0x3df330,_0x79faa5,_0x310693,_0x1c7f25){for(let _0x7ccc29=_0x310693;_0x7ccc29<_0x1c7f25;_0x7ccc29++){const _0x148594=_0x79faa5['getChild'](_0x7ccc29);_0x148594['is']('element','$text')?_0x3df330['set'](_0x148594['getAttribute']('vid'),{'userId':_0x17b587}):(_0x3df330['set'](_0x148594['getAttribute']('vid_start'),{'userId':_0x17b587}),_0x11ad4f(_0x3df330,_0x148594,0x0,_0x148594['childCount']),_0x3df330['set'](_0x148594['getAttribute']('vid_end'),{'userId':_0x17b587}));}}(this['_touched'],_0x62e1b4,_0x58ba41,_0x58ba41+_0x55300a['howMany']);}['_handleMergeOperation'](_0xd4bf83){const _0x2d5c4a=null===(_0xd4bf83=this['_cloneOperation'](_0xd4bf83,this['_idsRoots']))['_authorId']?null:_0xd4bf83['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e215e=_0xd4bf83['targetPosition']['parent'],_0x41727d=_0xd4bf83['sourcePosition']['parent'],_0x221950=_0x1e215e['getAttribute']('vid_end'),_0x27b8de=_0x41727d['getAttribute']('vid_start');_0x1e215e['_setAttribute']('vid_end',_0x41727d['getAttribute']('vid_end')),_0x41727d['_setAttribute']('vid_end',_0x221950),this['_touched']['set'](_0x27b8de,{'userId':_0x2d5c4a}),this['_touched']['set'](_0x221950,{'userId':_0x2d5c4a}),_0xd4bf83['_execute']();}['_handleSplitOperation'](_0x58ee9a){const _0x360034=null===(_0x58ee9a=this['_cloneOperation'](_0x58ee9a,this['_idsRoots']))['_authorId']?null:_0x58ee9a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5108b4=_0x58ee9a['graveyardPosition'],_0x2ecc54=_0x58ee9a['splitPosition']['parent'];_0x58ee9a['_execute']();const _0x1eb6d2=_0x2ecc54['getAttribute']('vid_end'),_0x5ddc73=_0x58ee9a['insertionPosition']['nodeAfter'];if(_0x5108b4){const _0x49ae12=_0x5ddc73['getAttribute']('vid_end'),_0x5129bd=_0x2ecc54['getAttribute']('vid_end');_0x2ecc54['_setAttribute']('vid_end',_0x49ae12),_0x5ddc73['_setAttribute']('vid_end',_0x5129bd),this['_touched']['set'](_0x2ecc54['getAttribute']('vid_end'),{'userId':_0x360034}),this['_touched']['set'](_0x5ddc73['getAttribute']('vid_start'),{'userId':_0x360034});}else{const _0x54ff1a=this['_revisionId']++,_0x1148ae=this['_revisionId']++;_0x2ecc54['_setAttribute']('vid_end',_0x54ff1a),_0x5ddc73['_setAttribute']('vid_start',_0x1148ae),_0x5ddc73['_setAttribute']('vid_end',_0x1eb6d2),this['_touched']['set'](_0x54ff1a,{'userId':_0x360034}),this['_touched']['set'](_0x1148ae,{'userId':_0x360034});}}['_handleMarkerOperation'](_0x3f1a65){if(!_0x3f1a65['affectsData'])return;const _0x5a03c6=(_0x3f1a65=this['_cloneOperation'](_0x3f1a65,this['_diffRoots']))['oldRange']?_0x3f1a65['oldRange']['root']:null,_0x591aba=_0x3f1a65['newRange']?_0x3f1a65['newRange']['root']:null;_0x5a03c6&&this['_markers']['delete'](_0x3f1a65['name']),_0x591aba&&this['_markers']['set'](_0x3f1a65['name'],_0x3f1a65['newRange']['clone']());const _0x209eea=null===_0x3f1a65['_authorId']?null:_0x3f1a65['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3af13f=_0x3f1a65['name'];if(!this['_touchedMarkers']['has'](_0x3af13f))return void this['_touchedMarkers']['set'](_0x3af13f,{'range':_0x3f1a65['oldRange'],'userId':_0x209eea});const _0x49ab6c=this['_touchedMarkers']['get'](_0x3af13f),_0x4c9eec=_0x49ab6c['range'],_0x59c454=_0x3f1a65['newRange'];null==_0x4c9eec&&null==_0x59c454||_0x4c9eec&&_0x59c454&&_0x4c9eec['isEqual'](_0x59c454)?this['_touchedMarkers']['delete'](_0x3f1a65['name']):_0x49ab6c['userId']=_0x209eea;}['_handleRootOperation'](_0x435ddd,_0x2b66b6){this['_diffRoots']['has'](_0x435ddd['rootName'])?this['_diffRoots']['get'](_0x435ddd['rootName'])['_isAttached']=_0x435ddd['isAdd']:(this['_diffRoots']['set'](_0x435ddd['rootName'],N(_0x435ddd['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x435ddd['rootName'],{}),_0x2b66b6&&this['_idsRoots']['set'](_0x435ddd['rootName'],N(_0x435ddd['rootName'],!0x0)));const _0x288e50=null===_0x435ddd['_authorId']?null:_0x435ddd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x211d10=this['_touchedRoots']['get'](_0x435ddd['rootName']);_0x211d10&&_0x211d10['userId']===_0x288e50?this['_touchedRoots']['delete'](_0x435ddd['rootName']):this['_touchedRoots']['set'](_0x435ddd['rootName'],{'userId':_0x288e50,'isAttached':_0x435ddd['isAdd']});}['_handleRootAttributeOperation'](_0x37d48f){const _0x4b1946=this['_diffRootsAttributes']['get'](_0x37d48f['root']['rootName']);null===_0x37d48f['newValue']?delete _0x4b1946[_0x37d48f['key']]:_0x4b1946[_0x37d48f['key']]=_0x37d48f['newValue'];}}function x(_0x448c2f){const _0x227487=N(_0x448c2f['rootName'],_0x448c2f['isAttached']());for(const _0x18a764 of _0x448c2f['getChildren']()){const _0x575a25=_0x18a764['_clone'](!0x0);_0x227487['_appendChild'](_0x575a25);}return _0x227487;}function N(_0x29bc71,_0x45b7f1=!0x0){const _0x143030=new _0x38830b();return _0x143030['rootName']=_0x29bc71,_0x143030['_isAttached']=_0x45b7f1,_0x143030['isAttached']=()=>_0x143030['_isAttached'],_0x143030;}function P(_0xddc575,_0xdcdb0c,_0x2e3038){const _0x54c075='elementEnd'==_0xddc575['type']?_0x2e3038['createPositionAt'](_0xddc575['item'],'end'):_0x2e3038['createPositionBefore'](_0xddc575['item']);return _0x2e3038['createPositionFromPath'](_0xdcdb0c,_0x54c075['path'],_0x54c075['stickiness']);}function V(_0x4f2ee4,_0x2b04d5,_0x44c2ec){const _0x4d25a3='elementStart'==_0x4f2ee4['type']?_0x44c2ec['createPositionAt'](_0x4f2ee4['item'],0x0):_0x44c2ec['createPositionAfter'](_0x4f2ee4['item']);return _0x44c2ec['createPositionFromPath'](_0x2b04d5,_0x4d25a3['path'],_0x4d25a3['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x442146(_0x40dbc1){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x40d7d4,_0x1963f0){super(_0x40d7d4),this['focusTracker']=new _0x4e5722(),this['keystrokes']=new _0x4dac09(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1963f0),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'](),_0x2bac51({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xe6923b=_0x56a292=>_0x56a292['stopPropagation']();this['keystrokes']['set']('arrowright',_0xe6923b),this['keystrokes']['set']('arrowleft',_0xe6923b),this['keystrokes']['set']('arrowup',_0xe6923b),this['keystrokes']['set']('arrowdown',_0xe6923b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x824c54){this['revisionNameInputView']['fieldView']['element']['value']=_0x824c54['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1d5614){const _0x1c497a=new et(this['locale'],ti),_0x4501f8=_0x1c497a['fieldView'];_0x4501f8['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4bc465=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1d5614&&(_0x4bc465+='\x20('+R(this['locale'],'optional')+')'),(_0x1c497a['label']=_0x4bc465,_0x4501f8['on']('input',()=>{this['revisionNameInputValue']=_0x4501f8['element']['value']['trim']();}),_0x1c497a);}}class v extends _0xb59f6{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x25ed4f=this['editor'],_0x2f8ae9=_0x25ed4f['plugins']['get']('RevisionTracker');_0x25ed4f['ui']['componentFactory']['add']('revisionHistory',_0x16345f=>{const _0x1c06b0=_0x507b60(_0x16345f),_0x3f5204=_0x1c06b0['panelView']['children'],_0x390aa1=new _0x37fb17(_0x16345f),_0x178dd8=new _0x1e124c(_0x16345f),_0x1a424b=new _0x1fcc58(_0x16345f),_0x536d68=new _0x1e124c(_0x16345f),_0x248e1d=new _0x1fcc58(_0x16345f);return _0x1c06b0['bind']('isEnabled')['to'](_0x2f8ae9,'isReady',_0x2f8ae9,'isEnabled',_0x25ed4f,'isReadOnly',(_0x15a99c,_0x28cade,_0x5a4d65)=>_0x15a99c&&_0x28cade&&!_0x5a4d65),_0x1c06b0['buttonView']['set']({'icon':_0x39ee81,'label':R(_0x16345f,'Revision\x20history'),'tooltip':!0x0}),_0x1a424b['set']({'label':R(_0x16345f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1a424b['bind']('isEnabled')['to'](_0x2f8ae9,'isReady',_0x2f8ae9,'isEnabled',_0x25ed4f,'isReadOnly',(_0xacc293,_0xb7de8e,_0x4c3de5)=>_0xacc293&&_0xb7de8e&&!_0x4c3de5),_0x1a424b['on']('execute',()=>this['_showDialog']()),_0x248e1d['set']({'label':R(_0x16345f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x248e1d['bind']('isEnabled')['to'](_0x2f8ae9,'isReady',_0x25ed4f,'isReadOnly',(_0x4ba888,_0xc8c2d7)=>_0x4ba888&&!_0xc8c2d7),_0x248e1d['on']('execute',()=>{_0x25ed4f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1c06b0['isOpen']=!0x1,_0x25ed4f['editing']['view']['focus']();}),_0x178dd8['children']['add'](_0x1a424b),_0x536d68['children']['add'](_0x248e1d),_0x390aa1['role']='menu',_0x390aa1['items']['addMany']([_0x178dd8,_0x536d68]),_0x3f5204['add'](_0x390aa1),_0x1c06b0;}),_0x25ed4f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x66226e=this['editor'],_0x447b6f=_0x66226e['locale'],_0x25dbdb=new _0x43cc78(_0x447b6f),_0x440210=new _0x2897c8(_0x447b6f);_0x25dbdb['buttonView']['set']({'icon':_0x39ee81,'label':R(_0x447b6f,'Revision\x20history')});const _0x34a3bb=new _0x17fda2(_0x447b6f,_0x25dbdb),_0x3e7d31=new _0xeafef1(_0x447b6f);_0x3e7d31['set']({'label':R(_0x447b6f,'Save\x20current\x20revision')}),_0x3e7d31['delegate']('execute')['to'](_0x25dbdb),_0x3e7d31['on']('execute',()=>{this['_showDialog']();}),_0x34a3bb['children']['add'](_0x3e7d31),_0x440210['items']['add'](_0x34a3bb);const _0x2f18bd=new _0x17fda2(_0x447b6f,_0x25dbdb),_0x1f0510=new _0xeafef1(_0x447b6f);return _0x1f0510['set']({'label':R(_0x447b6f,'Open\x20revision\x20history')}),_0x1f0510['delegate']('execute')['to'](_0x25dbdb),_0x1f0510['on']('execute',()=>{_0x66226e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2f18bd['children']['add'](_0x1f0510),_0x440210['items']['add'](_0x2f18bd),_0x25dbdb['panelView']['children']['add'](_0x440210),_0x25dbdb;}['_showDialog'](){const _0xd5fa2=this['editor'],_0x154d37=_0xd5fa2['locale'],_0xdc1f3e=_0xd5fa2['plugins']['get']('Dialog'),_0x317bc6=_0xd5fa2['plugins']['get']('RevisionTracker');function _0x51fffc(_0x12ba7c){_0xd5fa2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x12ba7c['revisionName']?_0x12ba7c['revisionNameInputView']['errorText']=R(_0x154d37,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xd5fa2['plugins']['get'](h)['saveRevision']({'name':_0x12ba7c['revisionName']}),_0xdc1f3e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x51fffc(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xdc1f3e['show']({'id':'revisionSave','title':R(_0x154d37,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0xd5fa2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xdc1f3e['hide']()},{'label':R(_0xd5fa2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4e3882){_0x4e3882['bind']('isEnabled')['to'](_0x317bc6,'isReady',_0x317bc6,'isEnabled',_0xd5fa2,'isReadOnly',(_0x8336af,_0x3ee2f4,_0x232191)=>_0x8336af&&_0x3ee2f4&&!_0x232191);},'onExecute':()=>_0x51fffc(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x408082=this['editor'],_0x389d10=_0x408082['locale'];this['_saveRevisionFormView']=new me(_0x389d10,_0x408082['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x40dbc1{['changeId'];['_model'];constructor(_0x251831,_0x550d32){super(_0x251831),this['_model']=_0x550d32,this['changeId']=_0x550d32['id'];const _0x57118b=this['bindTemplate'],_0x91cf04=R(_0x251831,_0x550d32['data']['isSuggestion']?'Suggested\x20by':'add'==_0x550d32['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x550d32['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x57118b['to']('type',_0x1da8c6=>'ck-revision-change__'+_0x1da8c6)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x91cf04}]},{'text':'\x20'+_0x550d32['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x31364f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xb39399){super(),this['id']=_0xb39399['id']||_0x346998(),this['author']=_0xb39399['author'],this['type']=_0xb39399['type'],this['data']=_0xb39399['data']||{},this['rootName']=_0xb39399['rootName'],this['set']('createdAt',_0xb39399['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(_0x4a037b,_0x8cdcf5){this['newRevisionId']=_0x4a037b,this['oldRevisionId']=_0x8cdcf5,this['changes']=new _0x297166();}['_setChanges'](_0x23897c){for(const _0x18aa61 of _0x23897c)this['changes']['add'](_0x18aa61);}}class l extends _0xb59f6{['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[_0x2e1faa,_0x1d3ac2,S,$];}constructor(_0x3a14d6){super(_0x3a14d6),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',(_0x5d1b54,_0x465fc7,_0x532aa6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x11e3b0=>{for(const _0x443d3a of this['editor']['editing']['view']['document']['roots'])_0x532aa6?_0x11e3b0['removeClass']('ck-editor__editable__overlay',_0x443d3a):_0x11e3b0['addClass']('ck-editor__editable__overlay',_0x443d3a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x157dac=>null!==_0x157dac),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x31033d,_0x917512,_0x47d26c)=>_0x31033d&&_0x47d26c?_0x917512['changes']['getIndex'](_0x47d26c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e3bf2,_0x50c77e)=>_0x5e3bf2?_0x50c77e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1d3ac2);}['init'](){const _0x39742e=this['editor'],_0x1af0c8=new rt(_0x39742e,{'direction':'backward'}),_0x287177=new rt(_0x39742e,{'direction':'forward'});(_0x39742e['commands']['add']('showPreviousChange',_0x1af0c8),_0x39742e['commands']['add']('showNextChange',_0x287177),_0x39742e['commands']['add']('restoreRevision',new nt(_0x39742e)),this['on']('change:numberOfChanges',()=>{_0x1af0c8['refresh'](),_0x287177['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x39742e['enableReadOnlyMode']('revision-viewer'),_0x39742e['plugins']['has']('WidgetToolbarRepository'))&&_0x39742e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1ad3b3){return await this['_utils']['loadRevisionData'](_0x1ad3b3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1ad3b3);}async['getRevisionRootsAttributes'](_0x530c57){return await this['_utils']['loadRevisionData'](_0x530c57,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x530c57);}async['compare'](_0x335cb6,_0x3e90de,_0x542c12=!0x1){if(!this['isEnabled'])return;const _0x3ab54d=this['diff'],_0x2ced47=this['repository'],_0x390027='string'==typeof _0x335cb6?_0x2ced47['getRevision'](_0x335cb6):_0x335cb6,_0x28511c='string'==typeof _0x3e90de?_0x2ced47['getRevision'](_0x3e90de):_0x3e90de,_0x3d34e4=_0x390027['id'],_0x1d9b52=_0x28511c?_0x28511c['id']:null;if(!_0x542c12&&this['diff']&&this['diff']['newRevisionId']===_0x3d34e4&&this['diff']['oldRevisionId']===_0x1d9b52)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x3d34e4,_0x1d9b52);const _0xe9fc50=this['_getRevisionsRange'](_0x390027,_0x28511c,!0x0)['map'](_0x2fa44e=>this['_utils']['loadRevisionData'](_0x2fa44e,this['adapter']));return _0xe9fc50['push'](new Promise(_0x4daa3b=>{setTimeout(_0x4daa3b,0x14);})),Promise['all'](_0xe9fc50)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x436fb9=this['_getDiff'](_0x3d34e4,_0x1d9b52);for(const _0x4cb1f8 of _0x436fb9['changes'])this['_changeIdToChange']['set'](_0x4cb1f8['id'],_0x4cb1f8);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x158dfb=>{for(const _0x4337ac of this['editor']['model']['document']['getRootNames']())_0x158dfb['detachRoot'](_0x4337ac);for(const _0xa71811 of Object['keys'](_0x436fb9['model'])){const _0x4bb919=_0x158dfb['addRoot'](_0xa71811);for(const _0x34e05a of Object['keys'](_0x436fb9['attributes'][_0xa71811]))_0x158dfb['setAttribute'](_0x34e05a,_0x436fb9['attributes'][_0xa71811][_0x34e05a],_0x4bb919);_0x158dfb['insert'](_0x436fb9['model'][_0xa71811],_0x4bb919,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x436fb9['changes'])),this['isReady']=!0x0;})['catch'](_0x3246b3=>{console['error'](_0x3246b3),this['_cleanUp'](),_0x3ab54d&&(this['diff']=_0x3ab54d),this['isReady']=!0x0;});}['addRevisionData'](_0x3efb82,_0x48da34){const _0x3c82eb=this['repository']['createRevision'](_0x3efb82);return _0x3c82eb['on']('_update',(_0x4a8292,_0x24f38b,_0x5279eb)=>_0x48da34(_0x24f38b,_0x5279eb,_0x3c82eb)),this['repository']['addRevision'](_0x3c82eb),_0x3c82eb;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xf722cb=>{for(const _0x6b9eea of this['editor']['model']['document']['getRootNames']())_0xf722cb['detachRoot'](_0x6b9eea);});}['_sortAndFilterDiffChanges'](_0xd7d6be){const _0x247ddd=[],_0x3f7ca9=new Map();for(const _0x5342fb of this['editor']['model']['document']['getRootNames']()){const _0x3bd139=this['editor']['editing']['view']['getDomRoot'](_0x5342fb);if(!_0x3bd139)continue;const _0xc07999=_0x3bd139['getClientRects']()['item'](0x0);_0xc07999&&(_0x247ddd['push'](_0x5342fb),_0x3f7ca9['set'](_0x5342fb,_0xc07999));}return _0x247ddd['sort']((_0x17ca95,_0x163704)=>{const _0x5ee014=_0x3f7ca9['get'](_0x17ca95),_0xa3c6c4=_0x3f7ca9['get'](_0x163704);return _0x5ee014['y']-_0xa3c6c4['y']||_0x5ee014['x']-_0xa3c6c4['x'];}),(_0xd7d6be=_0xd7d6be['filter'](_0x2dda05=>_0x247ddd['includes'](_0x2dda05['rootName'])))['sort']((_0x407db9,_0x1834cb)=>_0x247ddd['indexOf'](_0x407db9['rootName'])-_0x247ddd['indexOf'](_0x1834cb['rootName'])),_0xd7d6be;}['_makeTape'](_0xc6359d){const _0x8325b0=Array['from'](_0xc6359d['markers'])['filter'](([_0x13aa6c,_0x49fa6c])=>_0x13aa6c['startsWith']('revision:')&&!_0x49fa6c['isCollapsed']),_0x1d420a=Array['from'](this['editor']['model']['createRangeIn'](_0xc6359d)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x8325b0['length'])for(const _0xf8ad71 of _0x1d420a){const [_0x33ff31,_0x44deba]=_0x8325b0[0x0],[,_0x42baa7,_0x4c028f]=_0x33ff31['split'](':');if(_0x44deba['end']['isEqual'](_0xf8ad71['nextPosition'])&&_0x8325b0['shift'](),(_0xf8ad71['previousPosition']['isEqual'](_0x44deba['start'])||_0xf8ad71['previousPosition']['isAfter'](_0x44deba['start']))&&('insertion'==_0x42baa7?_0xf8ad71['isAdded']={'userId':_0x4c028f}:'deletion'==_0x42baa7&&(_0xf8ad71['isRemoved']={'userId':_0x4c028f})),0x0==_0x8325b0['length'])break;}return _0x1d420a;}['_refreshStartEndIndex'](_0x2cd81c){const _0x46aae5=new Map();for(let _0x2852a6=0x0;_0x2852a6<_0x2cd81c['length'];_0x2852a6++)'text'===_0x2cd81c[_0x2852a6]['type']?(_0x2cd81c[_0x2852a6]['item']['startIndex']=_0x2852a6,_0x2cd81c[_0x2852a6]['item']['endIndex']=_0x2852a6):('elementStart'===_0x2cd81c[_0x2852a6]['type']?_0x2cd81c[_0x2852a6]['item']['startIndex']=_0x2852a6:'elementEnd'===_0x2cd81c[_0x2852a6]['type']&&(_0x2cd81c[_0x2852a6]['item']['endIndex']=_0x2852a6),_0x46aae5['set'](_0x2cd81c[_0x2852a6]['id'],_0x2852a6));for(const _0x100a8b of _0x46aae5['values']())'elementStart'===_0x2cd81c[_0x100a8b]['type']?_0x2cd81c[_0x100a8b]['item']['endIndex']=_0x46aae5['get'](_0x2cd81c[_0x100a8b]['pairId']):'elementEnd'===_0x2cd81c[_0x100a8b]['type']&&(_0x2cd81c[_0x100a8b]['item']['startIndex']=_0x46aae5['get'](_0x2cd81c[_0x100a8b]['pairId']));}['_processTape'](_0x456a82){for(let _0x54958b=0x0;_0x54958b<_0x456a82['length'];_0x54958b++){if('elementStart'===_0x456a82[_0x54958b]['type'])_0x456a82[_0x54958b]['item']['startIndex']=_0x54958b;else{if('elementEnd'===_0x456a82[_0x54958b]['type']){_0x456a82[_0x54958b]['item']['endIndex']=_0x54958b;const _0xd25acd=_0x456a82[_0x54958b]['item']['startIndex'];_0x456a82[_0xd25acd]['pairId']=_0x456a82[_0x54958b]['id'],_0x456a82[_0x54958b]['pairId']=_0x456a82[_0xd25acd]['id'];}else _0x456a82[_0x54958b]['item']['startIndex']=_0x54958b,_0x456a82[_0x54958b]['item']['endIndex']=_0x54958b,_0x456a82[_0x54958b]['pairId']=null;}_0x456a82[_0x54958b]['markersStart']||(_0x456a82[_0x54958b]['markersStart']=[],_0x456a82[_0x54958b]['markersEnd']=[]);}}['_markInsertions'](_0xf32c3b,_0x585a12){const _0x375bae=_0xf32c3b['filter'](_0x3b0bf0=>!_0x3b0bf0['isAdded']);for(let _0x2523b1=0x0;_0x2523b1<_0x585a12['length'];_0x2523b1++)_0x585a12[_0x2523b1]['isAdded']&&(_0x375bae[_0x2523b1]['isAdded']=_0x585a12[_0x2523b1]['isAdded']);}['_getDiff'](_0x5f2434,_0x300ee4=null){const _0x1b51c9=this['repository']['getRevision'](_0x5f2434),_0x4b94f8=_0x300ee4?this['repository']['getRevision'](_0x300ee4):null,_0x59d164=this['_getRevisionsRange'](_0x1b51c9,_0x4b94f8),_0x481b8=_0x59d164[_0x59d164['length']-0x1],_0x106325=new Map(),_0x4ff05d={'model':{},'attributes':{},'changes':[]},_0x4810c9=new Set(),_0x3629e1=new Map();for(let _0x3d5daf=_0x59d164['length']-0x1;_0x3d5daf>=0x0;_0x3d5daf--){const _0x3fb0ed=_0x59d164[_0x3d5daf];for(const _0x38e864 of Object['keys'](_0x3fb0ed['diffData']))if(_0x3fb0ed['diffData'][_0x38e864]['attachChange']){const _0x22e3a1=_0x3fb0ed['diffData'][_0x38e864]['attachChange'];_0x22e3a1['isAttached']?(_0x4810c9['add'](_0x38e864),_0x3629e1['has'](_0x38e864)&&_0x3629e1['get'](_0x38e864)['userId']==_0x22e3a1['userId']?_0x3629e1['delete'](_0x38e864):_0x3629e1['set'](_0x38e864,_0x22e3a1)):_0x3629e1['has'](_0x38e864)?(_0x4810c9['delete'](_0x38e864),_0x3629e1['delete'](_0x38e864)):(_0x4810c9['add'](_0x38e864),_0x3629e1['set'](_0x38e864,_0x22e3a1));}else _0x4810c9['add'](_0x38e864);}for(const _0x48d791 of _0x4810c9){const _0x3e8211=_0x3629e1['has'](_0x48d791)&&!_0x3629e1['get'](_0x48d791)['isAttached'];let _0x56955a=_0x3e8211?_0x59d164['length']-0x1:0x0;const _0x5e6d40=_0x3e8211?-0x1:0x1;for(;_0x59d164[_0x56955a];){const _0x18af90=_0x59d164[_0x56955a];if(_0x18af90['diffData'][_0x48d791]){const _0x28fbd3=_0x3e8211?_0x18af90['diffData'][_0x48d791]['attributesBefore']:_0x18af90['diffData'][_0x48d791]['attributesAfter'];_0x4ff05d['attributes'][_0x48d791]=_0x28fbd3?_0x29a14b(_0x28fbd3):{};break;}_0x56955a+=_0x5e6d40;}}for(const _0x49a3c3 of _0x59d164){_0x49a3c3['model']={};for(const _0x3c5914 of _0x49a3c3['authors'])_0x106325['set'](_0x3c5914['id'],_0x3c5914);for(const _0x22ee1a of _0x4810c9){const _0x1816fb=_0x49a3c3['diffData'][_0x22ee1a]?_0x49a3c3['diffData'][_0x22ee1a]['insertions']:'[]',_0x11896f=_0x49a3c3['diffData'][_0x22ee1a]?_0x49a3c3['diffData'][_0x22ee1a]['deletions']:'[]';_0x49a3c3['model'][_0x22ee1a]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1816fb),'deletions':this['_utils']['_makeModelFromViewString'](_0x11896f)};}}for(const _0x410585 of _0x4810c9){let _0x2b3271=null,_0x434000=0x0;const _0x4b0475=new Map(Array['from'](_0x1b51c9['model'][_0x410585]['insertions']['markers'])['filter'](([_0x543fc4])=>!_0x543fc4['startsWith']('revision:')));let _0x1d22e0=0x0;for(const _0x56a466 of _0x59d164){const _0x42b6ce=this['_makeTape'](_0x56a466['model'][_0x410585]['insertions']);_0x56a466==_0x1b51c9?(_0x2b3271=_0x42b6ce,_0x434000=_0x2b3271['length'],_0x2b3271['forEach'](_0xa41af7=>{_0xa41af7['id']=_0x1d22e0++;}),this['_processTape'](_0x2b3271)):this['_markInsertions'](_0x2b3271,_0x42b6ce);const _0x317caf=_0x2b3271['filter'](_0x25146b=>!_0x25146b['isAdded'])['map'](_0x2e7072=>_0x2e7072['id']);let _0x2af7c5=0x0;const _0xf39c8d=this['_makeTape'](_0x56a466['model'][_0x410585]['deletions']);_0xf39c8d['forEach'](_0x56bd55=>{_0x56bd55['isRemoved']?_0x56bd55['id']=_0x434000++:_0x56bd55['id']=_0x317caf[_0x2af7c5++];}),this['_processTape'](_0xf39c8d),this['_setDistance'](_0x2b3271,'isAdded'),this['_setDistance'](_0xf39c8d,'isRemoved'),_0x56a466==_0x1b51c9&&this['_markMarkers'](_0x2b3271,_0x4b0475),_0x2b3271=this['_joinTapes'](_0x2b3271,_0xf39c8d),this['_refreshStartEndIndex'](_0x2b3271),this['_setDistance'](_0x2b3271,'isRemoved');}_0x2b3271=_0x2b3271['filter'](_0x4944b1=>!(_0x4944b1['isAdded']&&_0x4944b1['isRemoved']));const _0x140490=new Map(_0x481b8['model'][_0x410585]['deletions']['markers']),_0x39ab07=new Set(_0x4b0475['keys']());for(const _0x585b9b of _0x140490['keys']())_0x39ab07['delete'](_0x585b9b);this['_markSuggestions'](_0x2b3271,_0x39ab07),this['_fixObsoleteTags'](_0x2b3271),_0x2b3271=this['_removeMissingPairs'](_0x2b3271),_0x2b3271=this['_markMismatchedRemovedTags'](_0x2b3271),_0x2b3271=this['_removeUnsupportedChanges'](_0x2b3271);const {root:_0x5c7d31,changes:_0x5b3cad}=this['_makeModelFromTape'](_0x2b3271,_0x106325,_0x410585);_0x4ff05d['model'][_0x410585]=_0x5c7d31;const _0x5c62ef=_0x3629e1['get'](_0x410585);if(_0x5c62ef){const _0x52cc16=_0x106325['get'](_0x5c62ef['userId']),_0x4345aa=new G({'author':_0x52cc16,'type':_0x5c62ef['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x410585});_0x5b3cad['unshift'](_0x4345aa),_0x4ff05d['attributes'][_0x410585]['revisionHistoryAttachChange']=_0x4345aa['id'];}_0x4ff05d['changes']=_0x4ff05d['changes']['concat'](_0x5b3cad);}return _0x4ff05d;}['_markMarkers'](_0x30d2b6,_0x89c04a){for(let _0x114d61=0x0;_0x114d61<_0x30d2b6['length'];_0x114d61++)for(const [_0x21423a,_0x1c07e2]of _0x89c04a)!_0x1c07e2['isCollapsed']&&_0x1c07e2['start']['isEqual'](_0x30d2b6[_0x114d61]['previousPosition'])&&_0x30d2b6[_0x114d61]['markersStart']['push'](_0x21423a),_0x1c07e2['end']['isEqual'](_0x30d2b6[_0x114d61]['nextPosition'])&&_0x30d2b6[_0x114d61]['markersEnd']['push'](_0x21423a);}['_joinTapes'](_0x5b0745,_0x4b18e6){let _0x5c42fe=[],_0x10aac8=0x0,_0x469430=0x0;for(;_0x10aac8<_0x5b0745['length']||_0x469430<_0x4b18e6['length'];){const _0x2f8cad=_0x5b0745[_0x10aac8]||{},_0x432b2d=_0x4b18e6[_0x469430]||{};if(_0x2f8cad['id']==_0x432b2d['id'])_0x10aac8++,_0x469430++,_0x5c42fe['push'](_0x2f8cad);else{if(_0x432b2d['isRemoved']&&_0x2f8cad['isAdded']){const {commonTape:_0x3041e4,iEnd:_0x5cdab8,jEnd:_0x4dacef}=this['_threeWayMerge'](_0x5b0745,_0x10aac8,_0x4b18e6,_0x469430);_0x5c42fe=_0x5c42fe['concat'](_0x3041e4),_0x10aac8=_0x5cdab8,_0x469430=_0x4dacef;}else _0x432b2d['isRemoved']?(_0x469430++,_0x5c42fe['push'](_0x432b2d)):(_0x10aac8++,_0x5c42fe['push'](_0x2f8cad));}}return _0x5c42fe;}['_markSuggestions'](_0x31cafb,_0x4f9858){const _0x23ac75=[];for(let _0x4a34e5=0x0;_0x4a34e5<_0x31cafb['length'];_0x4a34e5++){for(let _0x2868ec=0x0;_0x2868ec<_0x31cafb[_0x4a34e5]['markersStart']['length'];_0x2868ec++){const _0x456ec3=_0x31cafb[_0x4a34e5]['markersStart'][_0x2868ec];if(!_0x4f9858['has'](_0x456ec3))continue;const {group:_0x53a916,type:_0x8fff5,authorId:_0x8508af}=_0x3ac74f(_0x456ec3);'revision-suggestion'!=_0x53a916||'insertion'!=_0x8fff5&&'deletion'!=_0x8fff5||(_0x23ac75['unshift']({'type':_0x8fff5,'name':_0x456ec3,'userId':_0x8508af}),_0x31cafb[_0x4a34e5]['markersStart']['splice'](_0x2868ec,0x1),_0x2868ec--);}_0x389169(_0x31cafb[_0x4a34e5]);for(let _0x33fee9=0x0;_0x33fee9<_0x31cafb[_0x4a34e5]['markersEnd']['length'];_0x33fee9++){const _0x569e42=_0x31cafb[_0x4a34e5]['markersEnd'][_0x33fee9];if(!_0x4f9858['has'](_0x569e42))continue;const {group:_0x22f672,type:_0x3affeb}=_0x3ac74f(_0x569e42);if('revision-suggestion'!=_0x22f672||'insertion'!=_0x3affeb&&'deletion'!=_0x3affeb)continue;_0x31cafb[_0x4a34e5]['markersEnd']['splice'](_0x33fee9,0x1),_0x33fee9--;const _0x30f89=_0x23ac75['findIndex'](_0x323212=>_0x323212['name']==_0x569e42);_0x30f89>-0x1&&_0x23ac75['splice'](_0x30f89,0x1);}}function _0x3ac74f(_0xc58bbf){const _0x99de59=_0xc58bbf['split'](':');return{'group':_0x99de59[0x0],'type':_0x99de59[0x1],'subType':_0x99de59['length']>=0x5?_0x99de59[0x2]:null,'id':_0x99de59['length']<0x5?_0x99de59[0x2]:_0x99de59[0x3],'authorId':_0x99de59['length']<0x5?_0x99de59[0x3]:_0x99de59[0x4],'markerCount':0x6==_0x99de59['length']?_0x99de59[0x5]:null};}function _0x389169(_0x4ef8e1){for(let _0x3fb9bf=0x0;_0x3fb9bf<_0x23ac75['length'];_0x3fb9bf++){if(_0x4ef8e1['isAdded']&&'insertion'==_0x23ac75[_0x3fb9bf]['type']&&_0x4ef8e1['isAdded']['userId']==_0x23ac75[_0x3fb9bf]['userId'])return _0x4ef8e1['isAddSuggestion']=_0x23ac75[_0x3fb9bf],void delete _0x4ef8e1['isAdded'];if(!_0x4ef8e1['isAdded']&&!_0x4ef8e1['isRemoved']&&'deletion'==_0x23ac75[_0x3fb9bf]['type'])return void(_0x4ef8e1['isRemoveSuggestion']=_0x23ac75[_0x3fb9bf]);}}}['_setDistance'](_0x764618,_0x529b13){let _0x1e6791=0x0,_0x41eb02=!0x1;const _0x2bda6d=new Map();for(const _0xd60e8d of _0x764618)_0xd60e8d[_0x529b13]?_0x41eb02&&(_0x1e6791++,_0x41eb02=!0x1):(_0x1e6791++,_0x41eb02=!0x0),_0x2bda6d['set'](_0xd60e8d['id'],_0x1e6791);for(let _0x537c7d=0x0;_0x537c7d<_0x764618['length'];_0x537c7d++){if('isRemoved'==_0x529b13&&_0x764618[_0x537c7d]['isAdded']||'isAdded'==_0x529b13&&_0x764618[_0x537c7d]['isRemoved'])continue;if('text'==_0x764618[_0x537c7d]['type']){_0x764618[_0x537c7d]['distance']=0x0;continue;}const _0x96fd01=_0x2bda6d['get'](_0x764618[_0x537c7d]['pairId']),_0x4c0496=_0x2bda6d['get'](_0x764618[_0x537c7d]['id']);_0x764618[_0x537c7d]['distance']=_0x96fd01-_0x4c0496;}}['_getRevisionsRange'](_0x32e910,_0xd6584c,_0x2833b5=!0x1){const _0x2f8fb1=[];let _0x1dc047=this['repository']['getIndex'](_0x32e910),_0x2b126c=this['repository']['getIndex'](_0xd6584c);for(-0x1==_0x2b126c&&(_0x2b126c=this['repository']['_revisions']['length'],_0x2833b5=!0x1);_0x1dc047<_0x2b126c;)_0x2f8fb1['push'](this['repository']['getRevision'](_0x1dc047)),_0x1dc047++;return _0x2833b5&&_0x2f8fb1['push'](this['repository']['getRevision'](_0x1dc047)),_0x2f8fb1;}['_threeWayMerge'](_0x37846b,_0x4ffff5,_0x118f84,_0x1011f7){const _0x1c0d6f=this['editor']['model']['schema'];let _0xdc481f=_0x4ffff5;for(;_0x37846b[_0xdc481f]&&_0x37846b[_0xdc481f]['isAdded'];)_0xdc481f++;let _0x2734b3=_0x1011f7;for(;_0x118f84[_0x2734b3]&&_0x118f84[_0x2734b3]['isRemoved'];)_0x2734b3++;_0x39c90a(_0x37846b,_0x4ffff5,_0xdc481f),_0x39c90a(_0x118f84,_0x1011f7,_0x2734b3);const _0x419d72=_0x118f84['slice'](_0x1011f7,_0x2734b3)['concat'](_0x37846b['slice'](_0x4ffff5,_0xdc481f));return _0x419d72['sort']((_0x275a37,_0x5e9846)=>_0x275a37['side']!=_0x5e9846['side']?_0x275a37['side']-_0x5e9846['side']:_0x275a37['level']!=_0x5e9846['level']?_0x275a37['level']-_0x5e9846['level']:_0x275a37['distance']!=_0x5e9846['distance']?_0x5e9846['distance']-_0x275a37['distance']:!!_0x275a37['isAdded']!=!!_0x5e9846['isAdded']?-0x1==_0x275a37['side']||0x0==_0x275a37['side']?_0x275a37['isAdded']?-0x1:0x1:_0x275a37['isAdded']?0x1:-0x1:_0x275a37['index']-_0x5e9846['index']),{'commonTape':_0x419d72,'iEnd':_0xdc481f,'jEnd':_0x2734b3};function _0x39c90a(_0x4bb062,_0x4e5d6a,_0x4c883d){let _0x3cd0b6=-0x1,_0xa8b7ca=Number['POSITIVE_INFINITY'],_0x23e9b4=!0x0;for(let _0x263bb7=_0x4e5d6a;_0x263bb7<_0x4c883d;_0x263bb7++)if(_0x1c0d6f['isInline'](_0x4bb062[_0x263bb7]['item'])||(_0x23e9b4=!0x1),_0x4bb062[_0x263bb7]['item']['startIndex']<_0x4e5d6a&&(_0x3cd0b6=_0x263bb7),_0x4bb062[_0x263bb7]['item']['endIndex']>=_0x4c883d){_0xa8b7ca=_0x263bb7;break;}_0x23e9b4&&(_0x3cd0b6=_0x4c883d-0x1);for(let _0x246995=_0x4e5d6a;_0x246995<_0x4c883d;_0x246995++)_0x4bb062[_0x246995]['side']=_0x246995<=_0x3cd0b6?-0x1:_0x246995<_0xa8b7ca?0x0:0x1,_0x4bb062[_0x246995]['index']=_0x246995;let _0xb6d591=0x0;for(let _0x352877=_0x4e5d6a;_0x352877<=_0x3cd0b6;_0x352877++)0x0==_0x4bb062[_0x352877]['distance']?_0x4bb062[_0x352877]['level']=_0xb6d591:(_0xb6d591++,_0x4bb062[_0x352877]['level']=_0xb6d591,_0xb6d591++);for(let _0x404c1b=_0x4e5d6a;_0x404c1b<_0x4c883d;_0x404c1b++)0x0==_0x4bb062[_0x404c1b]['side']&&(_0x4bb062[_0x404c1b]['level']=_0xb6d591);_0xb6d591=0x0;for(let _0x2378ad=_0x4c883d-0x1;_0x2378ad>=_0xa8b7ca;_0x2378ad--)0x0==_0x4bb062[_0x2378ad]['distance']?_0x4bb062[_0x2378ad]['level']=_0xb6d591:(_0xb6d591--,_0x4bb062[_0x2378ad]['level']=_0xb6d591,_0xb6d591--);}}['_fixObsoleteTags'](_0x58ac4f){const _0x461eed=new Map(),_0x5cae83=this['editor']['model']['schema'];for(let _0x3789d3=0x1;_0x3789d3<_0x58ac4f['length'];_0x3789d3++){let _0x1fd323,_0x2f668d,_0x2ba205;const _0x32b0b7=_0x58ac4f[_0x3789d3],_0x516bdf=_0x58ac4f[_0x3789d3-0x1];if('text'==_0x32b0b7['type'])continue;if(_0x32b0b7['type']!=_0x516bdf['type'])continue;if(!_0x5cae83['isBlock'](_0x516bdf['item'])||_0x5cae83['isLimit'](_0x516bdf['item']))continue;if(!_0x5cae83['isBlock'](_0x32b0b7['item'])||_0x5cae83['isLimit'](_0x32b0b7['item']))continue;if((_0x58ac4f[_0x3789d3]['isAdded']||_0x58ac4f[_0x3789d3]['isAddSuggestion'])&&_0x58ac4f[_0x3789d3-0x1]['isRemoved'])_0x1fd323=_0x58ac4f[_0x3789d3],_0x2f668d=_0x58ac4f[_0x3789d3-0x1],_0x2ba205=_0x3789d3-0x1;else{if(!_0x58ac4f[_0x3789d3]['isRemoved']||!_0x58ac4f[_0x3789d3-0x1]['isAdded']&&!_0x58ac4f[_0x3789d3-0x1]['isAddSuggestion'])continue;_0x1fd323=_0x58ac4f[_0x3789d3-0x1],_0x2f668d=_0x58ac4f[_0x3789d3],_0x2ba205=_0x3789d3;}const _0x303422=_0x1fd323['level']==_0x2f668d['level'],_0x33e4b5=Math['abs'](_0x1fd323['level'])<Math['abs'](_0x2f668d['level'])&&0x0==_0x2f668d['distance'];(_0x303422||_0x33e4b5)&&(_0x461eed['set'](_0x2f668d['id'],_0x1fd323['id']),_0x58ac4f['splice'](_0x2ba205,0x1),_0x3789d3--,_0x1fd323['isAdded']=!0x1);}for(let _0x1550c9=0x0;_0x1550c9<_0x58ac4f['length'];_0x1550c9++)_0x461eed['has'](_0x58ac4f[_0x1550c9]['pairId'])&&(_0x58ac4f[_0x1550c9]['pairId']=_0x461eed['get'](_0x58ac4f[_0x1550c9]['pairId']));}['_removeMissingPairs'](_0x23ce02){const _0x14ddd8=new Set(_0x23ce02['map'](_0xb7d8=>_0xb7d8['id']));for(let _0x41fd7d=0x0;_0x41fd7d<_0x23ce02['length'];_0x41fd7d++)_0x14ddd8['has'](_0x23ce02[_0x41fd7d]['pairId'])||0x0==_0x23ce02[_0x41fd7d]['distance']||(_0x23ce02[_0x41fd7d]['isIncorrect']=!0x0);return _0x23ce02['filter'](_0xaf83fd=>!_0xaf83fd['isIncorrect']);}['_markMismatchedRemovedTags'](_0x14b537){const _0x3293bb=new Set();for(let _0xc255ef=0x0;_0xc255ef<_0x14b537['length'];_0xc255ef++){if(_0x3293bb['has'](_0x14b537[_0xc255ef]['id'])&&_0x14b537[_0xc255ef]['isRemoved']&&(_0x14b537[_0xc255ef]['isIncorrect']=!0x0),_0x14b537[_0xc255ef]['isIncorrect'])continue;if(0x0==_0x14b537[_0xc255ef]['distance'])continue;if('elementStart'!=_0x14b537[_0xc255ef]['type'])continue;if(null==_0x14b537[_0xc255ef]['pairId'])continue;let _0xf6d03b=_0xc255ef+0x1,_0x2bf382=0x0;for(;_0x14b537[_0xf6d03b]['id']!=_0x14b537[_0xc255ef]['pairId'];)'elementStart'==_0x14b537[_0xf6d03b]['type']?_0x2bf382++:'elementEnd'==_0x14b537[_0xf6d03b]['type']&&_0x2bf382--,_0xf6d03b++;if(0x0!=_0x2bf382){if(_0x14b537[_0xc255ef]['isRemoved'])_0x14b537[_0xc255ef]['isIncorrect']=!0x0;else{for(;_0xf6d03b!=_0xc255ef;)_0x14b537[_0xf6d03b]['isRemoved']&&0x0!=_0x14b537[_0xf6d03b]['distance']&&(_0x14b537[_0xf6d03b]['isIncorrect']=!0x0,_0x3293bb['add'](_0x14b537[_0xf6d03b]['pairId'])),_0xf6d03b--;}}}return _0x14b537['filter'](_0x1b2831=>!_0x1b2831['isIncorrect']);}['_removeUnsupportedChanges'](_0x1c5919){const _0x555416=this['editor']['model']['schema'];for(let _0x2c5018=0x0;_0x2c5018<_0x1c5919['length'];_0x2c5018++){if(!(_0x1c5919[_0x2c5018]['isAdded']||_0x1c5919[_0x2c5018]['isAddSuggestion']||_0x1c5919[_0x2c5018]['isRemoved']||_0x1c5919[_0x2c5018]['isRemoveSuggestion']))continue;if(0x0==_0x1c5919[_0x2c5018]['distance'])continue;const _0x6606c5=_0x1c5919[_0x2c5018]['item'];_0x555416['isBlock'](_0x6606c5)||_0x555416['isLimit'](_0x6606c5)||(_0x1c5919[_0x2c5018]['isAdded']&&delete _0x1c5919[_0x2c5018]['isAdded'],_0x1c5919[_0x2c5018]['isAddSuggestion']&&delete _0x1c5919[_0x2c5018]['isAddSuggestion'],_0x1c5919[_0x2c5018]['isRemoveSuggestion']&&delete _0x1c5919[_0x2c5018]['isRemoveSuggestion'],_0x1c5919[_0x2c5018]['isRemoved']&&(_0x1c5919[_0x2c5018]['isIncorrect']=!0x0));}return _0x1c5919['filter'](_0x50689c=>!_0x50689c['isIncorrect']);}['_makeModelFromTape'](_0x24c7cf,_0x1deb00,_0x524b8a){const _0x5a7d1f=new _0x38830b(),_0x383bd1=[],_0x5f4dda=new Map(),_0x44cc3e=this['editor']['model'],_0x385aab=_0x44cc3e['schema'],_0x3b9aa6=[_0x5a7d1f],_0x1e9fdc={},_0x2b0d5f={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e8bac=null;const _0x3f1e68=[0x0];for(let _0x44369a=0x0;_0x44369a<_0x24c7cf['length'];_0x44369a++)if('elementStart'===_0x24c7cf[_0x44369a]['type']){_0x24c7cf[_0x44369a]['previousPosition']=_0x44cc3e['createPositionFromPath'](_0x5a7d1f,_0x3f1e68);const _0x413c07=new _0x587d6f(_0x24c7cf[_0x44369a]['item']['name'],_0x24c7cf[_0x44369a]['item']['getAttributes']());_0x3b9aa6[0x0]['_appendChild'](_0x413c07),_0x3f1e68['push'](0x0),_0x3b9aa6['unshift'](_0x413c07),_0x24c7cf[_0x44369a]['nextPosition']=_0x44cc3e['createPositionFromPath'](_0x5a7d1f,_0x3f1e68);}else'elementEnd'===_0x24c7cf[_0x44369a]['type']?(_0x3b9aa6['shift'](),_0x24c7cf[_0x44369a]['previousPosition']=_0x44cc3e['createPositionFromPath'](_0x5a7d1f,_0x3f1e68),_0x3f1e68['pop'](),_0x3f1e68[_0x3f1e68['length']-0x1]++,_0x24c7cf[_0x44369a]['nextPosition']=_0x44cc3e['createPositionFromPath'](_0x5a7d1f,_0x3f1e68)):(_0x24c7cf[_0x44369a]['previousPosition']=_0x44cc3e['createPositionFromPath'](_0x5a7d1f,_0x3f1e68),_0x5e8bac?_0x5e8bac['_data']+=_0x24c7cf[_0x44369a]['item']['data']:_0x5e8bac=new _0x2d70fa(_0x24c7cf[_0x44369a]['item']['data'],_0x24c7cf[_0x44369a]['item']['getAttributes']()),_0x24c7cf[_0x44369a+0x1]&&'text'===_0x24c7cf[_0x44369a+0x1]['type']&&_0x50a9fe(_0x5e8bac,_0x24c7cf[_0x44369a+0x1]['item'])||(_0x3b9aa6[0x0]['_appendChild'](_0x5e8bac),_0x5e8bac=null),_0x3f1e68[_0x3f1e68['length']-0x1]+=_0x24c7cf[_0x44369a]['item']['offsetSize'],_0x24c7cf[_0x44369a]['nextPosition']=_0x44cc3e['createPositionFromPath'](_0x5a7d1f,_0x3f1e68));for(let _0xf49dec=0x0;_0xf49dec<_0x24c7cf['length'];_0xf49dec++){const _0x443dbe=_0x24c7cf[_0xf49dec]['previousPosition'],_0x27ea5a=_0x24c7cf[_0xf49dec]['nextPosition'];for(const _0x91cdc9 of _0x24c7cf[_0xf49dec]['markersStart'])_0x5f4dda['set'](_0x91cdc9,{'start':_0x443dbe,'end':null});_0x3324d5('isRemoveSuggestion',_0xf49dec,_0x443dbe,_0x27ea5a),_0x3324d5('isAddSuggestion',_0xf49dec,_0x443dbe,_0x27ea5a),_0x3324d5('isRemoved',_0xf49dec,_0x443dbe,_0x27ea5a),_0x3324d5('isAdded',_0xf49dec,_0x443dbe,_0x27ea5a);for(const _0x606f9 of _0x24c7cf[_0xf49dec]['markersEnd']){const _0x314f7c=_0x5f4dda['get'](_0x606f9);_0x314f7c?_0x314f7c['end']=_0x27ea5a:_0x5f4dda['set'](_0x606f9,{'start':_0x27ea5a,'end':_0x27ea5a});}}for(const [_0x4224c8,_0x52ff03]of _0x5f4dda){const _0x2b1fb4=this['editor']['model']['createRange'](_0x52ff03['start'],_0x52ff03['end']);_0x5a7d1f['markers']['set'](_0x4224c8,_0x2b1fb4);}return _0x383bd1['sort']((_0x49f263,_0x5cbb60)=>{const _0x2aad78=_0x5a7d1f['markers']['get']('revision:'+_0x49f263['id']),_0x2245af=_0x5a7d1f['markers']['get']('revision:'+_0x5cbb60['id']);return _0x2aad78['start']['isBefore'](_0x2245af['start'])?-0x1:_0x2aad78['start']['isAfter'](_0x2245af['start'])?0x1:_0x2aad78['end']['isBefore'](_0x2245af['end'])?-0x1:_0x2aad78['end']['isAfter'](_0x2245af['end'])?0x1:'add'===_0x49f263['type']?-0x1:0x1;}),{'root':_0x5a7d1f,'changes':_0x383bd1};function _0x3324d5(_0x36b062,_0x55c706,_0x3e7a95,_0x1084f9){const _0x3860b0=!!_0x24c7cf[_0x55c706][_0x36b062],_0x54ddb7=_0x3860b0?_0x24c7cf[_0x55c706][_0x36b062]['userId']:null,_0x14efd7=_0x55c706===_0x24c7cf['length']-0x1,_0x4881ef=_0x2b0d5f[_0x36b062][0x0],_0x1311d2=_0x385aab['isObject'](_0x24c7cf[_0x55c706]['item']);!_0x1e9fdc[_0x36b062]&&_0x3860b0?_0x1e9fdc[_0x36b062]={'start':_0x3e7a95,'tapeItem':_0x24c7cf[_0x55c706],'userId':_0x54ddb7,'type':_0x36b062}:_0x1e9fdc[_0x36b062]&&!_0x3860b0?(_0x1e9fdc[_0x36b062]['end']=_0x3e7a95,_0x2564e3(_0x1e9fdc[_0x36b062]),_0x1e9fdc[_0x36b062]=null):_0x1e9fdc[_0x36b062]&&_0x3860b0&&_0x1e9fdc[_0x36b062]['userId']!==_0x54ddb7&&(_0x1e9fdc[_0x36b062]['end']=_0x3e7a95,_0x4881ef&&_0x4881ef['userId']===_0x1e9fdc[_0x36b062]['userId']||_0x2564e3(_0x1e9fdc[_0x36b062]),_0x1e9fdc[_0x36b062]={'start':_0x3e7a95,'tapeItem':_0x24c7cf[_0x55c706],'userId':_0x54ddb7,'type':_0x36b062}),_0x1e9fdc[_0x36b062]&&_0x1311d2&&('elementStart'!==_0x24c7cf[_0x55c706]['type']||_0x4881ef&&_0x4881ef['userId']===_0x54ddb7||_0x2b0d5f[_0x36b062]['unshift']({'userId':_0x54ddb7,'object':_0x24c7cf[_0x55c706]['item'],'change':_0x1e9fdc[_0x36b062]}),'elementEnd'===_0x24c7cf[_0x55c706]['type']&&_0x4881ef&&_0x4881ef['object']===_0x24c7cf[_0x55c706]['item']&&(_0x2b0d5f[_0x36b062]['shift'](),_0x1e9fdc[_0x36b062]=_0x4881ef['change'])),_0x1e9fdc[_0x36b062]&&_0x14efd7&&(_0x1e9fdc[_0x36b062]['end']=_0x1084f9,_0x2564e3(_0x1e9fdc[_0x36b062]),_0x1e9fdc[_0x36b062]=null);}function _0x2564e3({start:_0x4a9538,end:_0x2c8e33,tapeItem:_0x467a94,userId:_0x34fafc,type:_0x4e50e4}){const _0x1b92c1=_0x467a94['item'],_0x11924f=_0x44cc3e['schema']['isBlock'](_0x1b92c1)&&!_0x44cc3e['schema']['isLimit'](_0x1b92c1),_0x4f0109=_0x4a9538['nodeAfter']==_0x2c8e33['parent']&&_0x2c8e33['isAtStart'];if(_0x11924f&&_0x4f0109)return;const _0x2ace63=_0x44cc3e['createRange'](_0x4a9538,_0x2c8e33),_0x58dd81=_0x1deb00['get'](_0x34fafc),_0x3fed6f=new G({'author':_0x58dd81,'type':'isAdded'==_0x4e50e4||'isAddSuggestion'==_0x4e50e4?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4e50e4||'isRemoveSuggestion'==_0x4e50e4},'createdAt':new Date(),'rootName':_0x524b8a});_0x383bd1['push'](_0x3fed6f),_0x5a7d1f['markers']['set']('revision:'+_0x3fed6f['id'],_0x2ace63);}function _0x50a9fe(_0x1f4a3b,_0x109f57){const _0x29ffc3=_0x1f4a3b['getAttributes'](),_0x4287e8=_0x109f57['getAttributes']();for(const _0x24acfd of _0x29ffc3){if(_0x24acfd[0x1]!==_0x109f57['getAttribute'](_0x24acfd[0x0]))return!0x1;_0x4287e8['next']();}return _0x4287e8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x49cd74=>{const _0x60a7a1=_0x49cd74['markerName']['split'](':')[0x1],_0x2f4132=this['_getChangeFromId'](_0x60a7a1);if(!_0x2f4132)return null;const _0x98dad1='add'==_0x2f4132['type']?'insertion':'deletion',_0x32d7cd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x98dad1];return _0x2f4132['data']['isSuggestion']&&_0x32d7cd['push']('ck-suggestion-marker-'+_0x98dad1+'-new'),this['activeChange']==_0x2f4132&&_0x32d7cd['push']('ck-suggestion-marker--active'),{'classes':_0x32d7cd,'attributes':{'data-change-id':_0x60a7a1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1b5363=>{_0x1b5363['on']('element:pre',(_0x15ff27,_0x24496f,_0xbf71aa)=>{const _0x510ea0=_0x24496f['viewItem']['getChild'](0x0);if(!_0x510ea0||!_0x510ea0['is']('element','code'))return;if(!_0xbf71aa['consumable']['consume'](_0x510ea0,{'attributes':['vid_start','vid_end']}))return;const _0x1c5797=_0x24496f['modelRange']['start']['nodeAfter'];_0xbf71aa['writer']['setAttribute']('vid_start',_0x510ea0['getAttribute']('vid_start'),_0x1c5797),_0xbf71aa['writer']['setAttribute']('vid_end',_0x510ea0['getAttribute']('vid_end'),_0x1c5797);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2107d6=>{_0x2107d6['on']('element',(_0x5efeef,_0x364170,_0x3b27ce)=>{if(!_0x3b27ce['consumable']['consume'](_0x364170['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x364170['modelRange']['isCollapsed'])return;const _0x485b89=_0x364170['modelRange']['start']['nodeAfter'];_0x485b89['hasAttribute']('vid_start')||_0x485b89['hasAttribute']('vid')||(_0x3b27ce['writer']['setAttribute']('vid_start',_0x364170['viewItem']['getAttribute']('vid_start'),_0x485b89),_0x3b27ce['writer']['setAttribute']('vid_end',_0x364170['viewItem']['getAttribute']('vid_end'),_0x485b89));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x6b0ef=>_0x6b0ef['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x19792e,[,_0xccdabd])=>{['vid_start','vid_end','vid']['includes'](_0xccdabd)&&(_0x19792e['return']=!0x0,_0x19792e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x76c424=>{_0x76c424['on']('attribute:vid',(_0x1d1183,_0x53073f,_0x4e20dd)=>{if('\x20'!=_0x53073f['item']['data']||_0x53073f['item']['parent']['maxOffset']>0x1)return;if(!_0x4e20dd['consumable']['consume'](_0x53073f['item'],_0x1d1183['name']))return;const _0x2f3612=_0x4e20dd['writer'],_0x51cd56=_0x4e20dd['mapper']['toViewRange'](_0x53073f['range']);_0x2f3612['wrap'](_0x51cd56,_0x2f3612['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5ccfdd){const _0x2b3c84=_0x5ccfdd['plugins']['get']('RevisionViewer');return(_0x31d60d,_0x17b83b,_0x590518)=>{const _0x426b97=_0x17b83b['markerName']['split'](':')[0x1],_0x1e2896=_0x2b3c84['_getChangeFromId'](_0x426b97);if(!_0x1e2896)return null;const _0x2a7135='add'==_0x1e2896['type']?'split':'merge';if(!_0x590518['consumable']['test'](_0x17b83b['markerRange'],_0x31d60d['name']))return;const _0x4ac801=_0x17b83b['markerRange']['getWalker'](),_0x1365df=_0x17b83b['markerRange']['start'],_0x44f77e=_0x5ccfdd['model']['schema'];let _0x4eae43=null,_0x2a7e1e=null,_0x1d2af3=!0x1,_0x41563e=!0x1;for(const _0x2817ba of _0x4ac801){const _0xb9ef2b=_0x2817ba['item'];_0x1d2af3=_0x1d2af3||_0x44f77e['isContent'](_0xb9ef2b);const _0x589d3a=_0x590518['mapper']['toViewElement'](_0xb9ef2b);if(_0x589d3a&&_0x589d3a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2817ba['type']&&(_0x44f77e['isBlock'](_0xb9ef2b)&&!_0x44f77e['isLimit'](_0xb9ef2b)&&(_0xb9ef2b['nextSibling']||_0x1365df['isAtEnd']?_0x4eae43&&_0x4eae43['parent']==_0xb9ef2b||(_0x4eae43=_0xb9ef2b,_0x37f4c2(_0x2817ba['previousPosition']),_0x41563e=!0x0):_0x2a7e1e=_0x2a7e1e||_0x2817ba['previousPosition']));}function _0x37f4c2(_0x19ce5c){const _0x4ac52b=_0x590518['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a7135}),_0x4c4958=_0x590518['mapper']['toViewPosition'](_0x19ce5c);_0x1e2896['data']['isSuggestion']&&_0x590518['writer']['addClass']('ck-suggestion-marker-'+_0x2a7135+'-new',_0x4ac52b),_0x2b3c84['activeChange']==_0x1e2896&&_0x590518['writer']['addClass']('ck-suggestion-marker--active',_0x4ac52b),_0x590518['writer']['insert'](_0x4c4958,_0x4ac52b),_0x590518['mapper']['bindElementToMarker'](_0x4ac52b,_0x17b83b['markerName']);}_0x1d2af3||_0x41563e||!_0x2a7e1e||_0x37f4c2(_0x2a7e1e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2541a5,_0x2df029,_0x4a5900)=>{const _0xa0afd5=_0x4a5900['mapper']['markerNameToElements'](_0x2df029['markerName']);if(_0xa0afd5){for(const _0x22c980 of _0xa0afd5)(_0x22c980['hasClass']('ck-suggestion-marker-split')||_0x22c980['hasClass']('ck-suggestion-marker-merge'))&&(_0x4a5900['mapper']['unbindElementFromMarkerName'](_0x22c980,_0x2df029['markerName']),_0x4a5900['writer']['remove'](_0x22c980));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x49470f,_0x187e21,_0x30a0dc)=>{const _0xd768fa=_0x187e21['markerName']['split'](':')[0x1],_0x281a13=this['_getChangeFromId'](_0xd768fa);if(!_0x281a13)return null;const _0x4f7e5d='add'==_0x281a13['type']?'split':'merge';if(_0x30a0dc['consumable']['test'](_0x187e21['markerRange'],_0x49470f['name']))for(const _0x2bc64b of _0x187e21['markerRange']['getItems']()){if(!_0x2bc64b['is']('element','softBreak'))continue;const _0x262a9a=_0x30a0dc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f7e5d}),_0x7aede7=_0x30a0dc['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2bc64b));_0x281a13['data']['isSuggestion']&&_0x30a0dc['writer']['addClass']('ck-suggestion-marker-'+_0x4f7e5d+'-new',_0x262a9a),this['activeChange']==_0x281a13&&_0x30a0dc['writer']['addClass']('ck-suggestion-marker--active',_0x262a9a),_0x30a0dc['writer']['insert'](_0x7aede7,_0x262a9a),_0x30a0dc['mapper']['bindElementToMarker'](_0x262a9a,_0x187e21['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x24af50=>{for(const _0x36dc2b of this['editor']['model']['document']['getRootNames']()){const _0x2d8834=this['editor']['model']['document']['getRoot'](_0x36dc2b),_0x232f9d=this['editor']['editing']['view']['document']['getRoot'](_0x36dc2b);if(_0x232f9d){const _0xcb9ae3=_0x2d8834['getAttribute']('revisionHistoryAttachChange');if(_0x24af50['removeAttribute']('data-change-id',_0x232f9d),_0x24af50['removeClass']('ck-revision-history-root-add',_0x232f9d),_0x24af50['removeClass']('ck-revision-history-root-remove',_0x232f9d),_0x24af50['removeClass']('ck-revision-history-root--active',_0x232f9d),_0xcb9ae3){const _0x26cc49=this['_getChangeFromId'](_0xcb9ae3);if(!_0x26cc49)return null;_0x24af50['setAttribute']('data-change-id',_0xcb9ae3,_0x232f9d),_0x24af50['addClass']('ck-revision-history-root-'+_0x26cc49['type'],_0x232f9d),this['activeChange']==_0x26cc49&&_0x24af50['addClass']('ck-revision-history-root--active',_0x232f9d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x453bed=>'revision-comment:'+_0x453bed,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x492bbf=>'revision-suggestion:'+_0x492bbf,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x48806c=>({'name':'suggestion:'+_0x48806c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1e2df4=>{const _0x1090ed=_0x1e2df4['markerName']['split'](':')[0x1];return'insertion'!=_0x1090ed&&'deletion'!=_0x1090ed?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1090ed]};}}),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',(_0xd24392,_0xd09b98,_0x35d5c1)=>{const _0x45c867=_0x35d5c1['mapper']['markerNameToElements'](_0xd09b98['markerName']);if(_0x45c867){for(const _0x1fd1b9 of _0x45c867)_0x1fd1b9['is']('uiElement')&&(_0x35d5c1['mapper']['unbindElementFromMarkerName'](_0x1fd1b9,_0xd09b98['markerName']),_0x35d5c1['writer']['remove'](_0x1fd1b9));}},{'priority':'high'});}['_getChangeFromId'](_0x43e636){return this['_changeIdToChange']['get'](_0x43e636);}['_getViewForChange'](_0x3563fd){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3563fd),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x6382c5,_0x1e868d,_0x80ff39,_0x48bddd)=>{_0x48bddd&&this['_balloon']['remove'](_0x48bddd),_0x80ff39&&(this['_balloon']['add']({'view':_0x80ff39,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5df0c7=this['editor']['editing'],_0x205d1d=this['_getChangeFromId'](_0x80ff39['changeId']);let _0x48d0ca;if(_0x205d1d['data']['isOnRoot']){const _0x121fc7=_0x5df0c7['view']['getDomRoot'](_0x205d1d['rootName']);_0x48d0ca=Array['from'](_0x121fc7['getClientRects']());}else{const _0x3f0862=this['editor']['model']['markers']['get']('revision:'+_0x80ff39['changeId']);_0x48d0ca=Array['from'](_0x5df0c7['mapper']['markerNameToElements'](_0x3f0862['name']))['map'](_0x1def1b=>_0x5df0c7['view']['domConverter']['mapViewToDom'](_0x1def1b))['map'](_0x11badf=>Array['from'](_0x11badf['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x48d0ca[0x0];return _0x48d0ca['find'](_0x750c08=>_0x750c08['top']-0x3<=this['_activeViewTarget']['y']&&_0x750c08['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x750c08['left']-0x3<=this['_activeViewTarget']['x']&&_0x750c08['right']+0x3>=this['_activeViewTarget']['x'])||_0x48d0ca[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xd1c53c,_0x56b6b2,_0x352dc3,_0x66a12a)=>{this['activeView']=_0x352dc3?this['_getViewForChange'](_0x352dc3):null,this['editor']['model']['change'](()=>{const _0x5c459d=this['editor']['editing'];_0x66a12a&&(_0x66a12a['data']['isOnRoot']?_0x5c459d['view']['change'](_0x2feb31=>{_0x2feb31['removeClass']('ck-revision-history-root--active',_0x5c459d['view']['document']['getRoot'](_0x66a12a['rootName']));}):_0x5c459d['reconvertMarker']('revision:'+_0x66a12a['id'])),_0x352dc3&&(_0x352dc3['data']['isOnRoot']?_0x5c459d['view']['change'](_0x3ed270=>{_0x3ed270['addClass']('ck-revision-history-root--active',_0x5c459d['view']['document']['getRoot'](_0x352dc3['rootName']));}):_0x5c459d['reconvertMarker']('revision:'+_0x352dc3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x476d06,_0x2d96b2)=>{if(this['activeChange'])return;const _0x40fa62=this['_findChangeIdFromDomTarget'](_0x2d96b2['target']),_0x2bb63e=this['_changeIdToChange']['get'](_0x40fa62);_0x2bb63e?(this['_activeViewTarget']={'x':_0x2d96b2['domEvent']['x'],'y':_0x2d96b2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2bb63e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x57efbc,_0x300f8e)=>{const _0x4eb4ca=this['_findChangeIdFromDomTarget'](_0x300f8e['target']),_0x540125=this['_changeIdToChange']['get'](_0x4eb4ca);_0x540125?(this['_activeViewTarget']={'x':_0x300f8e['domEvent']['x'],'y':_0x300f8e['domEvent']['y']},_0x540125===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x540125):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2590ce){do{const _0x8cb45d=_0x2590ce['getAttribute']('data-change-id');if(_0x8cb45d)return _0x8cb45d;_0x2590ce=_0x2590ce['parent'];}while(_0x2590ce);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4dadf0=>{for(const _0x15d44a of this['editor']['model']['markers'])_0x4dadf0['removeMarker'](_0x15d44a);});}}function Q(_0x542bfd,_0x308419){return(_0x4ae241,_0x2a3962,_0x10ac92)=>{if(!_0x10ac92['consumable']['test'](_0x2a3962['markerRange'],_0x4ae241['name']))return;const _0x39a465=_0x2a3962['markerRange']['getWalker'](),_0x25a84d=_0x2a3962['markerRange']['start'],_0x17e798=_0x542bfd['model']['schema'];let _0x3de944=null,_0x56d096=null,_0x1b66d8=!0x1,_0x55d06c=!0x1;for(const _0x4d6c4d of _0x39a465){const _0x1ee921=_0x4d6c4d['item'];_0x1b66d8=_0x1b66d8||_0x17e798['isContent'](_0x1ee921);const _0x4576a3=_0x10ac92['mapper']['toViewElement'](_0x1ee921);if(_0x4576a3&&_0x4576a3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4d6c4d['type']&&(_0x17e798['isBlock'](_0x1ee921)&&!_0x17e798['isLimit'](_0x1ee921)&&(_0x1ee921['nextSibling']||_0x25a84d['isAtEnd']?_0x3de944&&_0x3de944['parent']==_0x1ee921||(_0x3de944=_0x1ee921,_0x5d2f28(_0x4d6c4d['previousPosition']),_0x55d06c=!0x0):_0x56d096=_0x56d096||_0x4d6c4d['previousPosition']));}function _0x5d2f28(_0x3dcfd4){const _0x1b17dd=_0x10ac92['mapper']['toViewPosition'](_0x3dcfd4),_0x2b7b50=_0x10ac92['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x308419});_0x10ac92['writer']['insert'](_0x1b17dd,_0x2b7b50),_0x10ac92['mapper']['bindElementToMarker'](_0x2b7b50,_0x2a3962['markerName']);}_0x1b66d8||_0x55d06c||!_0x56d096||_0x5d2f28(_0x56d096);};}class nt extends _0x1edf29{constructor(_0x590b56){super(_0x590b56);const _0x3144d4=_0x590b56['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x3144d4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3144d4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xa3d6e=this['editor'],_0x2e109a=_0xa3d6e['plugins']['get'](l),_0x178d92=_0x2e109a['isReady']?_0x2e109a['diff']['newRevisionId']:null;_0xa3d6e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x178d92);}['refresh'](){const {isReady:_0x3a05b2,isEnabled:_0x4f90d7,repository:_0x30d6f4,diff:_0x5d2f4a}=this['editor']['plugins']['get'](l),_0x50e369=_0x5d2f4a&&_0x30d6f4['getLaterVisibleRevision'](_0x5d2f4a['newRevisionId']);this['isEnabled']=_0x3a05b2&&_0x4f90d7&&Boolean(_0x50e369);}}class rt extends _0x1edf29{['_step'];constructor(_0x14a42c,{direction:_0x34344f}){super(_0x14a42c);const _0xf70834=_0x14a42c['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x34344f?0x1:-0x1,this['listenTo'](_0xf70834,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xf70834,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xf70834,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x157932=this['editor'],_0x36e2ea=_0x157932['plugins']['get'](l),{isNavigationMode:_0x5138a2,currentChangeNumber:_0x2acc8f}=_0x36e2ea;let _0x1502aa;if(_0x36e2ea['activeChange']=_0x5138a2?_0x36e2ea['diff']['changes']['get'](_0x2acc8f+this['_step']):_0x36e2ea['diff']['changes']['first'],_0x36e2ea['activeChange']['data']['isOnRoot'])_0x1502aa=_0x157932['editing']['view']['getDomRoot'](_0x36e2ea['activeChange']['rootName']);else{const _0x312336=_0x157932['model']['markers']['get']('revision:'+_0x36e2ea['activeChange']['id']);_0x1502aa=_0xdf1de(_0x157932['editing'],_0x312336);}_0xab48a5({'target':_0x1502aa,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1b5ef9,currentChangeNumber:_0x172262,numberOfChanges:_0x4f94d8,isReady:_0x3a3cf5,isEnabled:_0x17e870}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x17e870&&_0x3a3cf5&&_0x4f94d8)&&(!_0x1b5ef9||(0x1===this['_step']?_0x172262<_0x4f94d8-0x1:_0x172262>0x0));}}class Ri extends _0x40dbc1{constructor(_0x1d5ba0){super(_0x1d5ba0);const _0x2ab671=this['bindTemplate'],_0x1dec38=new _0x1fcc58(_0x1d5ba0),_0x2d8577=new _0x1fcc58(_0x1d5ba0);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',(_0x29ea60,_0x506f62)=>_0x29ea60&&_0x506f62>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1e2f70,_0x561023,_0x172943,_0xd733f7)=>{if(!_0x1e2f70)return R(_0x1d5ba0,'Loading...');if(!_0x172943)return R(_0x1d5ba0,'No\x20changes');const _0xa90dbb=R(_0x1d5ba0,'NUMBER_OF_CHANGES',_0x172943);return _0xd733f7?R(_0x1d5ba0,'X_OF_Y_CHANGES',[_0x561023+0x1,_0x172943]):_0xa90dbb;}),_0x1dec38['set']({'label':R(_0x1d5ba0,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xb0aaeb}),_0x2d8577['set']({'label':R(_0x1d5ba0,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x264fad}),_0x1dec38['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2d8577['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1dec38['on']('execute',()=>this['fire']('execute','backward')),_0x2d8577['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',_0x2ab671['if']('_isStatusLabelVisible','ck-hidden',_0x2502c1=>!_0x2502c1)]},'children':[{'text':_0x2ab671['to']('isNavigationMode',_0x4c1664=>_0x4c1664?R(_0x1d5ba0,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x1d5ba0,'Total')+':\x20')}]},{'text':_0x2ab671['to']('_statusText')}]},new _0x23869b(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1dec38,_0x2d8577]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0xb59f6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4c7ec7=this['editor']['editing']['view'];_0x4c7ec7['change'](_0x58f3b6=>{for(const _0x28db61 of _0x4c7ec7['document']['roots'])_0x58f3b6['addClass'](ge,_0x28db61);});}['hide'](){const _0x1c1e19=this['editor']['editing']['view'];_0x1c1e19['change'](_0x2e0cdf=>{for(const _0x250db8 of _0x1c1e19['document']['roots'])_0x2e0cdf['removeClass'](ge,_0x250db8);});}}class u extends _0xb59f6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x5c5499=this['editor'],_0x46942e=_0x5c5499['plugins']['get'](l),_0x54b299=_0x5c5499['plugins']['get'](ji);_0x5c5499['ui']['componentFactory']['add']('exitToEditing',_0x324569=>{const _0x291f9e=new _0x1fcc58(_0x324569);return _0x291f9e['set']({'label':R(_0x324569,'Back\x20to\x20editing'),'icon':_0x2daf29,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x291f9e,'execute',()=>{_0x5c5499['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x291f9e;}),_0x5c5499['ui']['componentFactory']['add']('restoreRevision',_0x5f1cad=>{const _0x5e47fb=new _0x1fcc58(_0x5f1cad);return _0x5e47fb['set']({'label':R(_0x5f1cad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5e47fb['bind']('isEnabled')['to'](_0x5c5499['commands']['get']('restoreRevision')),this['listenTo'](_0x5e47fb,'execute',()=>_0x5c5499['execute']('restoreRevision')),_0x5e47fb;}),_0x5c5499['ui']['componentFactory']['add']('changesNavigation',_0x5d3192=>{const _0x3871e6=new Ri(_0x5d3192),_0x2ad757=_0x5c5499['commands']['get']('showPreviousChange'),_0x7faede=_0x5c5499['commands']['get']('showNextChange');return _0x3871e6['bind']('isBackwardNavigationEnabled')['to'](_0x2ad757,'isEnabled'),_0x3871e6['bind']('isForwardNavigationEnabled')['to'](_0x7faede,'isEnabled'),_0x3871e6['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x46942e),this['listenTo'](_0x3871e6,'execute',(_0x3748b3,_0x471c57)=>{_0x5c5499['execute']('forward'===_0x471c57?'showNextChange':'showPreviousChange');}),_0x3871e6;}),_0x54b299['show'](),_0x46942e['on']('change:isReady',(_0x511216,_0x1a5c7c,_0xdbc6c8)=>{_0xdbc6c8?_0x54b299['hide']():_0x54b299['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5d283f,_0x5e7481){super(_0x5d283f,_0x5e7481);const _0x3cd5ac=this['bindTemplate'];this['set']({'label':R(_0x5d283f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x5d283f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3cd5ac['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 _0x521777=this['fieldView']['element'];this['_tooltipString']=_0x521777['scrollWidth']>_0x521777['clientWidth']&&_0x521777['value']||'';}}class ni extends _0x40dbc1{constructor(_0x3004a4,_0x542a4e,_0x573d8b){super(_0x3004a4);const _0x11f851=new _0x480b7e();_0x11f851['set']({'content':_0xf27034,'viewBox':'0\x200\x2011\x2010'});const _0x4d8eab=['ck','ck-revision-history-sidebar__revision-author'];_0x573d8b&&_0x4d8eab['push']('ck-revision-history-sidebar__revision-author_creator');const _0x248e41=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3004a4,_0x573d8b?'Revision\x20creator':'Revision\x20author')},'children':[_0x11f851,_0x542a4e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4d8eab},'children':_0x248e41});}}function ci(_0x28271d,_0x17ea3d){const _0x1b4304=_0x28271d['bindTemplate'],_0x12dc50=_0x28271d['locale'],_0xc5cecf=_0x507b60(_0x12dc50);_0xc5cecf['panelPosition']='sw';const _0x5e5f71=function(_0x1b66b1,_0x9ba213){const _0x3d3676=function(_0xb2eeaf,_0x5b4276){const _0x23a648=_0xb2eeaf['locale'],_0x2fa9d8={'Compare\x20against\x20selected':R(_0x23a648,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x23a648,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x23a648,'Restore\x20this\x20revision')};return _0x5b4276['map'](_0x379002=>{const _0x26202b=_0x2fa9d8[_0x379002['name']];return _0x26202b&&_0x26202b!==_0x379002['name']&&(_0x379002['name']=_0x26202b),_0x379002;});}(_0x1b66b1,_0x9ba213),_0x22a70a=new _0x297166();for(const _0x1fe76c of _0x3d3676){const _0xd9587f={'type':'button','model':new to({'label':_0x1fe76c['name'],'class':_0x1fe76c['class'],'withText':!0x0,'role':'menuitem','_action':_0x1fe76c['action']})};_0xd9587f['model']['bind']('isEnabled')['to'](_0x1b66b1,'isActionsDropdownOpen',_0x1033c6=>'function'!=typeof _0x1fe76c['isEnabled']||(!_0x1033c6||_0x1fe76c['isEnabled'](_0x1b66b1))),_0x22a70a['add'](_0xd9587f);}return _0x22a70a;}(_0x28271d,_0x17ea3d);return _0x28271d['bind']('isActionsDropdownOpen')['to'](_0xc5cecf,'isOpen'),_0xc5cecf['buttonView']['set']({'label':R(_0x12dc50,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x34b50a}),_0xc5cecf['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b4304['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b4304['to'](_0x53648f=>_0x53648f['stopPropagation']())}}),_0xc5cecf['on']('execute',_0x1b457c=>{_0x28271d['isReady']&&'function'==typeof _0x1b457c['source']['_action']&&_0x1b457c['source']['_action'](_0x28271d);}),_0x39fc1e(_0xc5cecf,_0x5e5f71,{'role':'menu'}),_0xc5cecf['listenTo'](_0x28271d,'change:isActionsDropdownOpen',(_0x4941e4,_0x4327b3,_0x13b9da)=>{if(_0x13b9da)for(const _0x2c66f2 of _0xc5cecf['listView']['items']){const _0x2ec122=_0x2c66f2['children']['first'],_0x4a9d28=_0x17ea3d['find'](_0x405707=>_0x405707['action']===_0x2ec122['_action'])['isVisible'];_0x2c66f2['isVisible']=void 0x0===_0x4a9d28||_0x4a9d28(_0x28271d);}}),_0xc5cecf;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x52c9c1(_0x40dbc1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x96fe4d,_0x5366e0,_0x39e40d,_0x766ac4){super(_0x96fe4d);const _0x5978f6=this['bindTemplate'],_0x4c3ea4=function(_0x3e561e,_0xfc5fff){const _0x306bff=Array['from'](_0xfc5fff['authors'])['filter'](_0x426f6d=>_0x426f6d!=_0xfc5fff['creator']);return _0xfc5fff['creator']&&_0x306bff['unshift'](_0xfc5fff['creator']),_0x306bff['map'](_0x2335cd=>new ni(_0x3e561e,_0x2335cd,_0x2335cd==_0xfc5fff['creator']));}(_0x96fe4d,_0x5366e0);this['id']=_0x5366e0['id'],this['_revision']=_0x5366e0,this['_requireRevisionName']=_0x766ac4,this['bind']('name','createdAt')['to'](_0x5366e0),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x847ba0=>{return _0x2ab9e1=_0x96fe4d['uiLanguage'],(_0x5f51b3=_0x847ba0)['toLocaleDateString'](_0x2ab9e1,{'month':'long','day':'numeric'})+',\x20'+_0x5f51b3['toLocaleTimeString'](_0x2ab9e1,{'hour':'numeric','minute':'numeric'});var _0x2ab9e1,_0x5f51b3;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x96fe4d,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1e2a97=>_0x1e2a97||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4bf11c,_0x2c86b7)=>_0x4bf11c&&_0x2c86b7),this['revisionActionsView']=_0x39e40d&&_0x39e40d['length']?ci(this,_0x39e40d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5978f6['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5978f6['if']('isEnabled','ck-disabled',_0x175151=>!_0x175151),_0x5978f6['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5978f6['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5978f6['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':_0x5978f6['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':_0x4c3ea4}]},this['revisionActionsView']],'on':{'click':_0x5978f6['to'](_0x454de8=>{_0x454de8['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x38344a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x38344a,'change',()=>{this['_requireRevisionName']&&!_0x38344a['value']||this['fire']('setName',{'id':this['id'],'name':_0x38344a['value']}),_0x38344a['value']||(_0x38344a['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(_0x4bb390,_0x29c09d){const _0x2338fa=_0x1c534d['fromJSDate'](_0x4bb390)['setLocale'](_0x29c09d),_0x27c4ee=_0x1c534d['local'](),_0x12bcde=_0x27c4ee['minus']({'days':0x1})['startOf']('day');let _0x188891,_0x19bb7e;return _0x2338fa['hasSame'](_0x27c4ee,'day')?(_0x188891=_0x2338fa['startOf']('day')['toJSDate'](),_0x19bb7e=_0x2338fa['toRelativeCalendar']()):_0x2338fa['hasSame'](_0x12bcde,'day')?(_0x188891=_0x12bcde['toJSDate'](),_0x19bb7e=_0x2338fa['toRelativeCalendar']()):_0x2338fa['hasSame'](_0x27c4ee,'week')?(_0x188891=_0x2338fa['startOf']('week')['toJSDate'](),_0x19bb7e=_0x2338fa['weekdayLong']||''):_0x2338fa['hasSame'](_0x27c4ee,'year')?(_0x188891=_0x2338fa['startOf']('month')['toJSDate'](),_0x19bb7e=_0x2338fa['monthLong']||''):(_0x188891=_0x2338fa['startOf']('year')['toJSDate'](),_0x19bb7e=String(_0x2338fa['year'])),{'startDate':_0x188891,'localizedPeriodName':_0x19bb7e};}class bi extends _0x40dbc1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x31b308,_0x2a346e,_0x2c4ed8,_0x1a8bc3){super(_0x31b308);const _0x377789=li(_0x2a346e,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2a346e,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2c4ed8,this['_requireRevisionName']=_0x1a8bc3,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':_0x377789}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4b7afc){const _0x15fab1=new _i(this['locale'],_0x4b7afc,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x15fab1);}['removeRevision'](_0x3bff72){const _0x1bae1=this['revisionViews']['find'](_0xe8a277=>_0xe8a277['id']===_0x3bff72['id']);this['revisionViews']['remove'](_0x1bae1);}}class fi extends _0x40dbc1{constructor(_0x134cb8){super(_0x134cb8);const _0x164379=new _0x480b7e();_0x164379['content']=_0x39ee81,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x164379,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x134cb8,'Revision\x20history')]}]});}}class di extends _0x40dbc1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3618ea,_0x5f49c2,_0x2a8181,_0xb6646){super(_0x3618ea);const _0x2908f5=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5f49c2,this['_revisionActions']=_0x2a8181,this['_requireRevisionName']=_0xb6646,this['on']('select',(_0x40353c,_0x5c3f2d)=>{this['fire']('revisionSelected',_0x5c3f2d);}),this['on']('setName',(_0x25a736,_0x2f7202)=>{this['fire']('revisionSetName',_0x2f7202);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x3618ea),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2908f5['if']('isEnabled','ck-disabled',_0x234d8b=>!_0x234d8b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2ae2dc of this['_revisions'])this['_addRevision'](_0x2ae2dc);this['_revisions']['on']('add',(_0x326dcd,_0x4e6ebc)=>{this['_addRevision'](_0x4e6ebc);}),this['_revisions']['on']('remove',(_0x1373bf,_0x387c36)=>{this['_removeRevision'](_0x387c36);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x51c20b=>_0x51c20b['revisionViews']['map'](_0xeb4dea=>_0xeb4dea))['flat']();}['selectRevision'](_0x372f4c){for(const _0x413e29 of this['revisionViews'])_0x372f4c&&_0x372f4c['id']===_0x413e29['id']?_0x413e29['select']():_0x413e29['deselect']();}['highlightRevisions'](_0x280f4e){for(const _0x5f4fd6 of this['revisionViews'])_0x280f4e['some'](({id:_0x59d4bc})=>_0x59d4bc===_0x5f4fd6['id'])?_0x5f4fd6['highlight']():_0x5f4fd6['unhighlight']();}['_addRevision'](_0x32ae34){const _0x13556b=li(_0x32ae34['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1cf1bd=this['timePeriodViews']['get'](0x0);_0x1cf1bd&&_0x1cf1bd['startDate']['getTime']()===_0x13556b['getTime']()||(_0x1cf1bd=new bi(this['locale'],_0x13556b,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1cf1bd)),_0x1cf1bd['addRevision'](_0x32ae34);}['_removeRevision'](_0x1855bd){const _0x2ea95b=li(_0x1855bd['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2ea95b)['removeRevision'](_0x1855bd);}['_getTimePeriodViewByStartDate'](_0x3ef621){return this['timePeriodViews']['find'](_0x51c546=>_0x51c546['startDate']['getTime']()===_0x3ef621['getTime']());}}class f extends _0xb59f6{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x4ef962(_0x5f47fe){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3cebbb,_0x331a99){super(_0x331a99),this['sourceElement']=_0x3cebbb,this['model']['document']['createRoot']();const _0x57ceca=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x57ceca);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4d209d,_0x38e2b8){const _0x35445d=new this(_0x4d209d,_0x38e2b8);return await _0x35445d['initPlugins'](),await _0x35445d['ui']['init'](_0x4d209d),await _0x35445d['data']['init'](_0x35445d['config']['get']('initialData')||''),_0x35445d['fire']('ready'),_0x35445d;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x5c2b79{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56acc4){function _0x282c9b(_0x5929d2){return _0x5929d2['map'](_0x4c021a=>String['fromCharCode'](_0x4c021a))['join']('');}super(_0x56acc4),this['result']='end',_0x56acc4[_0x282c9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x282c9b([0x76,0x69,0x65,0x77])][_0x282c9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x282c9b([0x61,0x75,0x74,0x6f]),_0x56acc4[_0x282c9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x282c9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x282c9b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x282c9b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x282c9b([0x6f,0x6b])});}}class ht extends _0x5c2b79{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x66c7e7){if(super(_0x66c7e7),!this['editor']['config']['get']('revisionHistory'))throw new _0x78950f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4e6a5c=>this['_showRevisionViewer']({..._0x4e6a5c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x17d3c5=>this['_closeRevisionViewer'](_0x17d3c5)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x279df1=>this['_restoreRevision'](_0x279df1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39eaa7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39eaa7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x810638){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x810638);}['getRevision'](_0xee4a31){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xee4a31);}['getRevisions'](_0x36a325){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x36a325||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4adc70=this['editor'],_0x53608e=_0x2907ef(_0x4adc70,d),_0x18e735=_0x4adc70['plugins']['get']('RevisionTracker'),_0x1b309c=_0x4adc70['plugins']['get']('Users')['users'];return _0x53608e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x53608e['lazyRoots'],(_0x53608e['plugins']['push'](at,l,u,class extends _0x5c2b79{static get['requires'](){return[l,'Users'];}['init'](){const _0x3ede47=this['editor']['plugins']['get']('Users');for(const _0x4c8e74 of _0x1b309c)_0x4c8e74['isAnonymous']||_0x3ede47['getUser'](_0x4c8e74['id'])||_0x3ede47['addUser'](_0x4c8e74);const _0x56e4ec=_0x18e735['repository']['getRevisions']();let _0x3a5fa7=null;const _0x2bc081=this['editor']['plugins']['get']('RevisionViewer');_0x2bc081['adapter']=_0x18e735['adapter'],_0x2bc081['bind']('isEnabled')['to'](_0x18e735),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4adc70,'isReadOnly',_0x2d23fd=>!_0x2d23fd);for(const _0x3b5e86 of _0x56e4ec){const _0x31d766=null===_0x3b5e86['creator'];if(_0x31d766&&_0x3b5e86['toVersion']===_0x3b5e86['fromVersion'])continue;const _0x50e91e=_0x3b5e86['toJSON']();_0x2bc081['addRevisionData'](_0x50e91e,(_0x3a0ed3,_0x392da5,_0x3d3a95)=>{if(_0x31d766){if(_0x3a5fa7)_0x3a5fa7['_update'](_0x3a0ed3,_0x392da5);else{if(!_0x392da5){const _0x41092a=_0x3d3a95['toJSON']();_0x41092a['id']=_0x1d7c29(),_0x18e735['saveRevision'](_0x41092a,_0x3d3a95['toVersion'])['then'](_0x3ad4b3=>{_0x3a5fa7=_0x3ad4b3;});}}}else _0x3b5e86['_update'](_0x3a0ed3,_0x392da5);});}}},f),_0x53608e);}['_enhanceShowRevisionViewerCallback'](){const _0x1ff522=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x16beff=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1a81b4=this['editor']['plugins']['get']('Autosave');await _0x1a81b4['save']();}else await _0x16beff['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x406a52=this['editor']['plugins']['get']('Dialog');_0x406a52['isOpen']&&_0x406a52['hide']();}const _0x33b5f9=this['_getRevisionViewerEditorConfig']();return _0x1ff522(_0x33b5f9)['then'](_0x470163=>{return(this['_viewerEditor']=_0x470163,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'),_0x470163);})['catch'](_0x4bad56=>(console['error'](_0x4bad56),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x180593=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x180593(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2204e8=this['editor']['plugins']['get']('Annotations');_0x2204e8['refreshVisibility'](),_0x2204e8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1c8399){const _0x248331=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5e9180=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x14b9cd=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x14b9cd,_0x1c8399)['then'](_0x573dd9=>(_0x5e9180['style']['display']='block',_0x248331['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x573dd9));}['_closeRevisionViewer'](_0x477681){const _0x182873=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x182873['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x477681['destroy']();}async['_restoreRevision'](_0x186f17){const _0x50b972=this['editor'],_0x496139=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3da4c7=_0x50b972['plugins']['get']('RevisionTracker'),_0x1f9467=_0x50b972['plugins']['get']('RevisionHistoryUtils'),_0x399862=_0x496139['repository']['getRevision'](_0x186f17);let _0x120b3c,_0x46f7ee,_0x51d2d2;try{await _0x1f9467['loadRevisionData'](_0x399862,this['adapter']),_0x120b3c=_0x1f9467['getRevisionDocumentData'](_0x399862),_0x46f7ee=_0x1f9467['getRevisionRootsAttributes'](_0x399862);}catch(_0x268128){return void console['error'](_0x268128);}_0x50b972['model']['change'](_0x4a2a59=>{for(const _0x27a52c of Array['from'](_0x50b972['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4a2a59['removeMarker'](_0x27a52c);}),_0x496139['isReady']=!0x1,_0x50b972['model']['enqueueChange'](_0x26a0a5=>{_0x26a0a5['setSelection'](null),_0x26a0a5['removeSelectionAttribute'](_0x50b972['model']['document']['selection']['getAttributeKeys']());const _0x277a76=Object['keys'](_0x120b3c);for(const _0x3fb9f3 of _0x50b972['model']['document']['roots'])'$graveyard'!=_0x3fb9f3['rootName']&&_0x3fb9f3['isAttached']()&&!_0x277a76['includes'](_0x3fb9f3['rootName'])&&_0x26a0a5['detachRoot'](_0x3fb9f3);for(const _0x23dce5 of _0x277a76){let _0x121666=_0x50b972['model']['document']['getRoot'](_0x23dce5);_0x121666&&_0x121666['isAttached']()||(_0x121666=_0x26a0a5['addRoot'](_0x23dce5));const _0xd49176=_0x46f7ee[_0x23dce5],_0x1e5b1d=Object['keys'](_0xd49176),_0x5c192=_0x120b3c[_0x23dce5];for(const _0x890522 of _0x121666['getAttributeKeys']())_0x1e5b1d['includes'](_0x890522)||_0x26a0a5['removeAttribute'](_0x890522,_0x121666);for(const _0x52a15b of _0x1e5b1d)_0x26a0a5['setAttribute'](_0x52a15b,_0x46f7ee[_0x23dce5][_0x52a15b],_0x121666);_0x26a0a5['remove'](_0x26a0a5['createRangeIn'](_0x121666)),_0x26a0a5['insert'](_0x50b972['data']['parse'](_0x5c192,_0x121666),_0x121666,0x0);}});const _0x4e2a16=R(_0x50b972['locale'],'Restored');if(_0x399862['name'])_0x51d2d2=-0x1==_0x399862['name']['indexOf'](_0x4e2a16)?_0x4e2a16+':\x20'+_0x399862['name']:_0x399862['name'];else _0x51d2d2=_0x4e2a16+':\x20'+(_0x399862['createdAt']['toLocaleDateString'](_0x50b972['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x399862['createdAt']['toLocaleTimeString'](_0x50b972['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3da4c7['saveRevision']({'name':_0x51d2d2}),_0x496139['isReady']=!0x0,_0x50b972['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,at as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x3fa831){super(_0x3fa831),this['_revisionViewer']=_0x3fa831['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x32ee17=this['_revisionsRepository']['_revisions'],_0x13c51e=this['_createRevisionActions'](),_0x89b3c0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x32ee17,_0x13c51e,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',(_0x39600b,_0x2286dc)=>{_0x2286dc['revisionViews']['on']('add',(_0xfea55b,_0x2dbb76)=>{_0x2dbb76['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)),_0x89b3c0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3e0ba6=this['_revisionsRepository']['getRevision'](0x0);if(_0x3e0ba6){const _0x3635fc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3e0ba6['id']);this['_revisionViewer']['compare'](_0x3e0ba6,_0x3635fc);}}['_handleRevisionSelected'](_0x406b64,_0x18d91b){const _0x1da38f=this['_revisionsRepository']['getRevision'](_0x18d91b['id']),_0x470bb0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1da38f['id']);this['_revisionViewer']['compare'](_0x1da38f,_0x470bb0);}['_handleRevisionSetName'](_0x30ea22,_0x3f030b){this['_revisionsRepository']['getRevision'](_0x3f030b['id'])['setName'](_0x3f030b['name']);}['_handleDiffChange'](_0x179b88,_0x51dc9c,_0x3be98a){const _0x2de5b5=this['_revisionsRepository']['getRevisionsInDiff'](_0x3be98a);_0x2de5b5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2de5b5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2de5b5[0x0]));}['_createRevisionActions'](){const _0xe3af6=this['editor'],_0x46f06f=f['availableRevisionActions'],_0x177701=_0xe3af6['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x177701['length'])return _0x177701['map'](_0x28cc65=>{const _0x41631c='string'==typeof _0x28cc65?Object['assign']({},_0x46f06f[_0x28cc65]):_0x28cc65;return _0x41631c['action']=_0x41631c['action']['bind'](this,_0xe3af6),_0x41631c['isVisible']&&(_0x41631c['isVisible']=_0x41631c['isVisible']['bind'](this,_0xe3af6)),_0x41631c;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3bfb05},_0x59f02d)=>{const _0x346ada=_0x3bfb05['get'](l),_0x592d12=_0x346ada['repository'];let _0x557591=_0x346ada['diff']['newRevisionId'],_0x4f5f91=_0x59f02d['id'];_0x592d12['getIndex'](_0x557591)>_0x592d12['getIndex'](_0x4f5f91)&&([_0x557591,_0x4f5f91]=[_0x4f5f91,_0x557591]),_0x346ada['compare'](_0x557591,_0x4f5f91);},'isVisible':({plugins:_0x256069},_0x515ab9)=>{const _0x46f41e=_0x256069['get'](l);return!(_0x46f41e['repository']['getRevisionsInDiff'](_0x46f41e['diff'])['length']>0x2)&&!_0x515ab9['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5e6d0a,{id:_0x1a3f64})=>{_0x5e6d0a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a3f64);},'isVisible':({plugins:_0x28e692},_0x8a4466)=>!!_0x28e692['get'](l)['repository']['getLaterVisibleRevision'](_0x8a4466['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1cd9d3},{id:_0x183679,revisionNameView:_0x2624b8})=>{const _0x552c0c=_0x1cd9d3['get'](l),_0x28e851=_0x552c0c['repository']['getEarlierVisibleRevision'](_0x183679);_0x552c0c['compare'](_0x183679,_0x28e851),_0x2624b8['focus'](),_0x2624b8['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5124c5,_0x52b4d3){super(_0x5124c5),this['_view']=_0x52b4d3,this['_toolbarConfig']=st(_0x5124c5['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x426326){const _0x14a73d=this['editor'],_0x52630b=this['view'],_0x5e23bc=_0x14a73d['editing']['view'],_0x28459c=_0x52630b['editable'],_0x46b2eb=_0x5e23bc['document']['getRoot']();_0x28459c['name']=_0x46b2eb['rootName'],_0x52630b['render']();const _0x5f2896=_0x28459c['element'];this['setEditableElement'](_0x28459c['name'],_0x5f2896),_0x52630b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5e23bc['attachDomRoot'](_0x5f2896),this['_elementReplacer']['replace'](_0x426326,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x228ace=this['view'],_0x48af3e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x48af3e['detachDomRoot'](_0x228ace['editable']['name']),_0x228ace['destroy']();}['_initToolbar'](){const _0x1d2843=this['view'];_0x1d2843['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1d2843['stickyPanel']['limiterElement']=_0x1d2843['element'],_0x1d2843['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x30fcda})=>_0x30fcda),_0x1d2843['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1d2843['toolbar']);}}class ii extends _0x2d8aaf{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2adf8e,_0x1a350f,_0x1f4521={}){super(_0x2adf8e),this['stickyPanel']=new _0x47b559(_0x2adf8e),this['toolbar']=new _0x257e7f(_0x2adf8e,{'shouldGroupWhenFull':_0x1f4521['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x2adf8e,_0x1a350f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x26881d(_0x2be507){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xa15af1,_0x1f844e){super(_0x1f844e),this['sourceElement']=_0xa15af1,this['model']['document']['createRoot']();const _0x219ebe=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x219ebe);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x92015d,_0x23f27a){const _0x511499=new this(_0x92015d,_0x23f27a);return await _0x511499['initPlugins'](),await _0x511499['ui']['init'](_0x92015d),await _0x511499['data']['init'](_0x511499['config']['get']('initialData')||''),_0x511499['fire']('ready'),_0x511499;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0xb59f6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c0cd9){function _0x198d60(_0x42eac3){return _0x42eac3['map'](_0x4b2036=>String['fromCharCode'](_0x4b2036))['join']('');}super(_0x5c0cd9),this['result']='end',_0x5c0cd9[_0x198d60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x198d60([0x76,0x69,0x65,0x77])][_0x198d60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x198d60([0x61,0x75,0x74,0x6f]),_0x5c0cd9[_0x198d60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x198d60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x198d60([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x198d60([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x198d60([0x6f,0x6b])});}}class ct extends _0xb59f6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x3deb96){if(super(_0x3deb96),!this['editor']['config']['get']('revisionHistory'))throw new _0x55261e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x353908=>this['_showRevisionViewer']({..._0x353908,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1e9123=>this['_closeRevisionViewer'](_0x1e9123)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b1979=>this['_restoreRevision'](_0x3b1979)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x10b86d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x10b86d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x94da6f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x94da6f);}['getRevision'](_0x481f0e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x481f0e);}['getRevisions'](_0x4e772a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4e772a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5ea5f3=this['editor'],_0x38f78d=_0xbb266a(_0x5ea5f3,d),_0xcf981d=_0x5ea5f3['plugins']['get']('RevisionTracker'),_0x181826=_0x5ea5f3['plugins']['get']('Users')['users'];return _0x38f78d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x38f78d['lazyRoots'],(_0x38f78d['plugins']['push'](ht,l,u,class extends _0xb59f6{static get['requires'](){return[l,'Users'];}['init'](){const _0x52d2bc=this['editor']['plugins']['get']('Users');for(const _0x618622 of _0x181826)_0x618622['isAnonymous']||_0x52d2bc['getUser'](_0x618622['id'])||_0x52d2bc['addUser'](_0x618622);const _0x41c8c4=_0xcf981d['repository']['getRevisions']();let _0x428041=null;const _0x28ecb2=this['editor']['plugins']['get']('RevisionViewer');_0x28ecb2['adapter']=_0xcf981d['adapter'],_0x28ecb2['bind']('isEnabled')['to'](_0xcf981d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5ea5f3,'isReadOnly',_0x4369dc=>!_0x4369dc);for(const _0x6af3ec of _0x41c8c4){const _0x8730ee=null===_0x6af3ec['creator'];if(_0x8730ee&&_0x6af3ec['toVersion']===_0x6af3ec['fromVersion'])continue;const _0xded124=_0x6af3ec['toJSON']();_0x28ecb2['addRevisionData'](_0xded124,(_0x41e642,_0x3cd265,_0x46b5cd)=>{if(_0x8730ee){if(_0x428041)_0x428041['_update'](_0x41e642,_0x3cd265);else{if(!_0x3cd265){const _0x26ab50=_0x46b5cd['toJSON']();_0x26ab50['id']=_0x346998(),_0xcf981d['saveRevision'](_0x26ab50,_0x46b5cd['toVersion'])['then'](_0x14538f=>{_0x428041=_0x14538f;});}}}else _0x6af3ec['_update'](_0x41e642,_0x3cd265);});}}},f),_0x38f78d);}['_enhanceShowRevisionViewerCallback'](){const _0x2530d6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4eb93b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x530336=this['editor']['plugins']['get']('Autosave');await _0x530336['save']();}else await _0x4eb93b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x47a6ee=this['editor']['plugins']['get']('Dialog');_0x47a6ee['isOpen']&&_0x47a6ee['hide']();}const _0x409e61=this['_getRevisionViewerEditorConfig']();return _0x2530d6(_0x409e61)['then'](_0x54473d=>{return(this['_viewerEditor']=_0x54473d,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'),_0x54473d);})['catch'](_0x308160=>(console['error'](_0x308160),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x46f2c9=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x46f2c9(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x60ab56=this['editor']['plugins']['get']('Annotations');_0x60ab56['refreshVisibility'](),_0x60ab56['refreshPositioning']();}})));}['_showRevisionViewer'](_0x12f47f){const _0xb2d541=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x54f45=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x204634=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x204634,_0x12f47f)['then'](_0x6d12ff=>(_0x54f45['style']['display']='block',_0xb2d541['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x6d12ff));}['_closeRevisionViewer'](_0x43a7dd){const _0x39285c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x39285c['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x43a7dd['destroy']();}async['_restoreRevision'](_0x1ccce8){const _0x10516b=this['editor'],_0x2b8a55=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xb35f33=_0x10516b['plugins']['get']('RevisionTracker'),_0x531b1b=_0x10516b['plugins']['get']('RevisionHistoryUtils'),_0x46fd42=_0x2b8a55['repository']['getRevision'](_0x1ccce8);let _0x46db34,_0x986f57,_0x32fc84;try{await _0x531b1b['loadRevisionData'](_0x46fd42,this['adapter']),_0x46db34=_0x531b1b['getRevisionDocumentData'](_0x46fd42),_0x986f57=_0x531b1b['getRevisionRootsAttributes'](_0x46fd42);}catch(_0x49ce09){return void console['error'](_0x49ce09);}_0x10516b['model']['change'](_0xe8e57=>{for(const _0x3fc6eb of Array['from'](_0x10516b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xe8e57['removeMarker'](_0x3fc6eb);}),_0x2b8a55['isReady']=!0x1,_0x10516b['model']['enqueueChange'](_0x4681b5=>{_0x4681b5['setSelection'](null),_0x4681b5['removeSelectionAttribute'](_0x10516b['model']['document']['selection']['getAttributeKeys']());const _0x408228=Object['keys'](_0x46db34);for(const _0x1260bd of _0x10516b['model']['document']['roots'])'$graveyard'!=_0x1260bd['rootName']&&_0x1260bd['isAttached']()&&!_0x408228['includes'](_0x1260bd['rootName'])&&_0x4681b5['detachRoot'](_0x1260bd);for(const _0x597c55 of _0x408228){let _0x4d34a5=_0x10516b['model']['document']['getRoot'](_0x597c55);_0x4d34a5&&_0x4d34a5['isAttached']()||(_0x4d34a5=_0x4681b5['addRoot'](_0x597c55));const _0x4bb5e8=_0x986f57[_0x597c55],_0x41ccad=Object['keys'](_0x4bb5e8),_0x159859=_0x46db34[_0x597c55];for(const _0x62c9a5 of _0x4d34a5['getAttributeKeys']())_0x41ccad['includes'](_0x62c9a5)||_0x4681b5['removeAttribute'](_0x62c9a5,_0x4d34a5);for(const _0xcdc205 of _0x41ccad)_0x4681b5['setAttribute'](_0xcdc205,_0x986f57[_0x597c55][_0xcdc205],_0x4d34a5);_0x4681b5['remove'](_0x4681b5['createRangeIn'](_0x4d34a5)),_0x4681b5['insert'](_0x10516b['data']['parse'](_0x159859,_0x4d34a5),_0x4d34a5,0x0);}});const _0xe80199=R(_0x10516b['locale'],'Restored');if(_0x46fd42['name'])_0x32fc84=-0x1==_0x46fd42['name']['indexOf'](_0xe80199)?_0xe80199+':\x20'+_0x46fd42['name']:_0x46fd42['name'];else _0x32fc84=_0xe80199+':\x20'+(_0x46fd42['createdAt']['toLocaleDateString'](_0x10516b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x46fd42['createdAt']['toLocaleTimeString'](_0x10516b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xb35f33['saveRevision']({'name':_0x32fc84}),_0x2b8a55['isReady']=!0x0,_0x10516b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|