@ckeditor/ckeditor5-revision-history 46.0.0-alpha.1 → 46.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x2bafdc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4cbaeb){super(),this['id']=_0x4cbaeb['id']||_0x29d31e(),this['creator']=_0x4cbaeb['creator']||null,this['authors']=_0x4cbaeb['authors']||[],this['diffData']=_0x4cbaeb['diffData']||null,this['toVersion']=_0x4cbaeb['toVersion']||0x0,this['fromVersion']=_0x4cbaeb['fromVersion']||0x0,this['set']('name',_0x4cbaeb['name']||''),this['set']('createdAt',_0x4cbaeb['createdAt']||new Date()),this['set']('attributes',_0x4cbaeb['attributes']||{});}['setName'](_0x4957f0){this['_update']({'name':_0x4957f0});}['setAttribute'](_0x2b811d,_0x2040d1){const _0x2cec10=_0x3153c8(this['attributes']);_0xda55da(_0x2cec10,_0x2b811d,_0x2040d1),this['_update']({'attributes':_0x2cec10});}['removeAttribute'](_0x2cbcc0){const _0x4a99f9=_0x3153c8(this['attributes']);_0x29b43e(_0x4a99f9,_0x2cbcc0),this['_update']({'attributes':_0x4a99f9});}['_update'](_0x4f9286,_0x4060f5=!0x1){let _0x4db9a8=!0x1;const _0x126d69={'id':this['id']},_0x53ac6b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x10a187 of _0x53ac6b){const _0x339a1d=_0x4f9286[_0x10a187];void 0x0!==_0x339a1d&&_0x339a1d!==this[_0x10a187]&&(this[_0x10a187]=_0x339a1d,_0x126d69[_0x10a187]=_0x339a1d,_0x4db9a8=!0x0);}_0x4db9a8&&(_0x126d69['authors']&&(_0x126d69['authorsIds']=_0x126d69['authors']['map'](_0x381384=>_0x381384['id']),delete _0x126d69['authors']),this['fire']('_update',_0x126d69,_0x4060f5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x406a43=>_0x406a43['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x594d24{['_revisions'];static get['requires'](){return[_0x488749];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4ae62c){super(_0x4ae62c),this['_revisions']=new _0x2d4b38();}['afterInit'](){!async function(_0x4633b4){const _0x5fc0eb=_0x27ba33([0x66,0x4b,0x46,0x31,0x70,0x41,0x45,0x62,0x39,0x67,0x58,0x73,0x68,0x4d,0x76,0x52,0x48,0x6f,0x43,0x4a,0x30,0x56,0x7a,0x57,0x6b,0x55,0x42,0x33,0x69,0x75,0x37,0x65,0x4f,0x72,0x74,0x38,0x53,0x51,0x77,0x35,0x5a,0x61,0x64,0x47,0x71,0x6c,0x6d,0x6e,0x36,0x54,0x50,0x4e,0x63,0x49,0x44,0x59,0x32,0x4c,0x78,0x34,0x79,0x6a]),_0x115df5=0xeb829,_0x43eee6=0x2c1db993,_0x1d31c3=0x2c1ad5fb^_0x43eee6,_0xfe33cc=window[_0x27ba33([0x44,0x61,0x74,0x65])][_0x27ba33([0x6e,0x6f,0x77])](),_0x30afa1=_0x4633b4[_0x27ba33([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x201224=new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325218=>{_0x30afa1[_0x27ba33([0x6f,0x6e,0x63,0x65])](_0x27ba33([0x72,0x65,0x61,0x64,0x79]),_0x325218);}),_0xaf2024={[_0x27ba33([0x6b,0x74,0x79])]:_0x27ba33([0x45,0x43]),[_0x27ba33([0x75,0x73,0x65])]:_0x27ba33([0x73,0x69,0x67]),[_0x27ba33([0x63,0x72,0x76])]:_0x27ba33([0x50,0x2d,0x32,0x35,0x36]),[_0x27ba33([0x78])]:_0x27ba33([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]),[_0x27ba33([0x79])]:_0x27ba33([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]),[_0x27ba33([0x61,0x6c,0x67])]:_0x27ba33([0x45,0x53,0x32,0x35,0x36])},_0x480a95=_0x30afa1[_0x27ba33([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27ba33([0x67,0x65,0x74])](_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2af024(){let _0x1992d9,_0x11ff90=null,_0x4457dd=null;try{if(_0x480a95==_0x27ba33([0x47,0x50,0x4c]))return _0x27ba33([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1992d9=_0x548469(),!_0x1992d9)return _0x27ba33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1992d9[_0x27ba33([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4457dd=_0x496880(_0x1992d9[_0x27ba33([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1992d9[_0x27ba33([0x6a,0x74,0x69])])),await _0x3bfef3()?_0x3646a5()?_0x329774()?_0x27ba33([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc28854()?(_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27ba33([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11ff90=_0x21b68a(_0x27ba33([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27ba33([0x74,0x72,0x69,0x61,0x6c])&&(_0x11ff90=_0x21b68a(_0x27ba33([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3309f9()):_0x27ba33([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27ba33([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27ba33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27ba33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x329774(){const _0x5724e5=[_0x27ba33([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27ba33([0x74,0x72,0x69,0x61,0x6c])][_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfe33cc/0x3e8:0xe10*_0x1d31c3;return _0x1992d9[_0x27ba33([0x65,0x78,0x70])]<_0x5724e5;}function _0x3646a5(){const _0x16e62e=_0x1992d9[_0x27ba33([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x16e62e)return!0x1;if(_0x16e62e[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x2a])))return!0x0;if(_0x16e62e[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x52,0x48])))return!0x0;if(_0x16e62e[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x52,0x52,0x48]))){if(_0x3c4374())return!0x0;if(_0x4a2299()||_0x38960c())return!0x0;}return!0x1;}function _0xc28854(){const _0x20901f=_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20901f||0x0==_0x20901f[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ed77f}=new URL(window[_0x27ba33([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20901f[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed77f))return!0x0;const _0x3521d2=_0x3ed77f[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e]));return _0x20901f[_0x27ba33([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7de8e1=>_0x7de8e1[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x2a])))[_0x27ba33([0x6d,0x61,0x70])](_0x4ec28a=>_0x4ec28a[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e])))[_0x27ba33([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59ec58=>_0x59ec58[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3521d2[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27ba33([0x6d,0x61,0x70])](_0x448e12=>Array(_0x3521d2[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x448e12[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27ba33([0x66,0x69,0x6c,0x6c])](_0x448e12[0x0]===_0x27ba33([0x2a])?_0x27ba33([0x2a]):'')[_0x27ba33([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x448e12))[_0x27ba33([0x73,0x6f,0x6d,0x65])](_0x216bd3=>_0x3521d2[_0x27ba33([0x65,0x76,0x65,0x72,0x79])]((_0x40d4bb,_0xc09760)=>_0x216bd3[_0xc09760]===_0x40d4bb||_0x216bd3[_0xc09760]===_0x27ba33([0x2a])));}function _0x3309f9(){return _0x11ff90&&_0x4457dd?new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3116a4,_0x145da4)=>{_0x11ff90[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x3116a4,_0x145da4),_0x4457dd[_0x27ba33([0x74,0x68,0x65,0x6e])](_0xddd42=>{_0xddd42!=_0x27ba33([0x56,0x61,0x6c,0x69,0x64])&&_0x3116a4(_0xddd42);},_0x145da4);}):_0x11ff90||_0x4457dd||_0x27ba33([0x56,0x61,0x6c,0x69,0x64]);}}function _0x496880(_0x366d29,_0x42ff88){return new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x431950=>{if(_0x4a5ce6())return _0x431950(_0x27ba33([0x56,0x61,0x6c,0x69,0x64]));_0x270931(),_0x30afa1[_0x27ba33([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27ba33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12aae9=!0x1;const _0x51d35b=_0x29d31e();function _0x4c03ef(_0x13a5cd){return!!_0x13a5cd&&(typeof _0x13a5cd===_0x27ba33([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13a5cd===_0x27ba33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13a5cd[_0x27ba33([0x74,0x68,0x65,0x6e])]===_0x27ba33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13a5cd[_0x27ba33([0x63,0x61,0x74,0x63,0x68])]===_0x27ba33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25ab7c(_0x38d590){_0x380de0(_0x38d590)[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x24e62b=>{if(!_0x24e62b||_0x24e62b[_0x27ba33([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27ba33([0x6f,0x6b]))return _0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d118b(_0x499887(_0x51d35b+_0x42ff88))!=_0x24e62b[_0x27ba33([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27ba33([0x56,0x61,0x6c,0x69,0x64]);})[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x5a9452=>(_0x7020b4(),_0x5a9452),()=>{const _0x609832=_0x3d7f07();return null==_0x609832?(_0x7020b4(),_0x27ba33([0x56,0x61,0x6c,0x69,0x64])):_0x27ba33(_0xfe33cc-_0x609832>(0x8113d93^_0x43eee6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x431950)[_0x27ba33([0x63,0x61,0x74,0x63,0x68])](()=>{_0x431950(_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x223868=0x2c2b5713^_0x43eee6;function _0x7020b4(){const _0x2256c7=_0x27ba33([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d118b(_0x499887(_0x366d29)),_0x52f9d2=_0x2d8c49(_0x5d118b(window[_0x27ba33([0x4d,0x61,0x74,0x68])][_0x27ba33([0x63,0x65,0x69,0x6c])](_0xfe33cc/_0x223868)));window[_0x27ba33([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27ba33([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2256c7,_0x52f9d2);}function _0x3d7f07(){const _0x5be339=_0x27ba33([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d118b(_0x499887(_0x366d29)),_0x3574a4=window[_0x27ba33([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27ba33([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5be339);return _0x3574a4?window[_0x27ba33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d8c49(_0x3574a4),0x10)*_0x223868:null;}function _0x380de0(_0x425cd5){return new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x592bd9,_0x561164)=>{_0x425cd5[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x592bd9,_0x561164),window[_0x27ba33([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x561164,0x2c1c6d53^_0x43eee6);});}}_0x30afa1[_0x27ba33([0x6f,0x6e])](_0x27ba33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c98b1,_0x2f68f)=>{if(_0x2f68f[0x0]!=_0x366d29)return _0x431950(_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f68f[0x1]={..._0x2f68f[0x1],[_0x27ba33([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51d35b};},{[_0x27ba33([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27ba33([0x68,0x69,0x67,0x68])}),_0x30afa1[_0x27ba33([0x6f,0x6e])](_0x27ba33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c4f50=>{_0x4c03ef(_0x2c4f50[_0x27ba33([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12aae9=!0x0,_0x25ab7c(_0x2c4f50[_0x27ba33([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27ba33([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27ba33([0x6c,0x6f,0x77])}),_0x201224[_0x27ba33([0x74,0x68,0x65,0x6e])](()=>{_0x12aae9||_0x431950(_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a5ce6(){return _0x30afa1[_0x27ba33([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27ba33([0x76,0x69,0x65,0x77])][_0x27ba33([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27ba33([0x61,0x75,0x74,0x6f]);}function _0x270931(){_0x30afa1[_0x27ba33([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27ba33([0x76,0x69,0x65,0x77])][_0x27ba33([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27ba33([0x61,0x75,0x74,0x6f]);}}function _0x21b68a(_0x1fe0b5){const _0x1ff5b5=[new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x391825=>setTimeout(_0x391825,0x2c14875f^_0x43eee6)),_0x201224[_0x27ba33([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264446=>{const _0x40eb0b=0x2c1db994^_0x43eee6,_0x923b29=_0x4633b4[_0x27ba33([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1ebb58(){_0x923b29[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x40eb0b&&_0x264446();}_0x1ebb58(),_0x923b29[_0x27ba33([0x6f,0x6e])](_0x27ba33([0x61,0x64,0x64]),_0x1ebb58);})),new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4afce3=>{function _0x381ac3(){for(const _0xd9cccc in window)if(window[_0x27ba33([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x27ba33([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xd9cccc))&&window[_0xd9cccc]==_0x115df5)return _0x4afce3();_0x30afa1[_0x27ba33([0x73,0x74,0x61,0x74,0x65])]!=_0x27ba33([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x27ba33([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x381ac3,0x2c1daa1b^_0x43eee6);}_0x10f0b1(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x381ac3();})];return window[_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27ba33([0x72,0x61,0x63,0x65])](_0x1ff5b5)[_0x27ba33([0x74,0x68,0x65,0x6e])](()=>_0x1fe0b5);}async function _0x119213(){if(await _0x201224,_0x10f0b1(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x123ca1=_0x4633b4[_0x27ba33([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5d5966=_0x4633b4[_0x27ba33([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])](_0x123ca1[_0x27ba33([0x69,0x64])]),_0x32b3b4=_0x4d36ba(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x32b3b4[_0x27ba33([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x123ca1['id'],_0x5d5966?_0x5d5966['id']:null,!0x0),_0x32b3b4[_0x27ba33([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32b3b4[_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32b3b4[_0x27ba33([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2408e3,void(_0x32b3b4[_0x27ba33([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2408e3);}if(_0x10f0b1(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x146b85=_0x4d36ba(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x146b85[_0x27ba33([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x146b85[_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x146b85[_0x27ba33([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2408e3,_0x146b85[_0x27ba33([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2408e3;}_0x30afa1[_0x27ba33([0x6d,0x6f,0x64,0x65,0x6c])][_0x27ba33([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2408e3,_0x30afa1[_0x27ba33([0x6d,0x6f,0x64,0x65,0x6c])][_0x27ba33([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2408e3,_0x30afa1[_0x27ba33([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27ba33([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c4374(){return _0x10f0b1(_0x27ba33([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d36ba(_0x27ba33([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x27ba33([0x73,0x74,0x61,0x74,0x65])]==_0x27ba33([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a2299(){return _0x10f0b1(_0x27ba33([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 _0x38960c(){return _0x10f0b1(_0x27ba33([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3ab8f(_0x404d69){const _0x1df16f=_0x49d574();_0x30afa1[_0x1df16f]=_0x27ba33([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])+_0x404d69,_0x404d69[_0x27ba33([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x27ba33([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x49d574()]=_0x115df5),_0x404d69!=_0x27ba33([0x56,0x61,0x6c,0x69,0x64])&&_0x119213();}function _0x49d574(){const _0x2fb76f=window[_0x27ba33([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27ba33([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27ba33([0x6e,0x6f,0x77])]())[_0x27ba33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27ba33([0x2e]),'');let _0x3ddf26=_0x27ba33([0x66]);for(let _0x30416b=0x0;_0x30416b<_0x2fb76f[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30416b+=0x2){let _0x31c586=window[_0x27ba33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fb76f[_0x27ba33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30416b,_0x30416b+0x2));_0x31c586>=_0x5fc0eb[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31c586-=_0x5fc0eb[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ddf26+=_0x5fc0eb[_0x31c586];}return _0x3ddf26;}function _0x548469(){const _0x10b87e=_0x480a95[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e]));if(0x3!=_0x10b87e[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f4600(_0x10b87e[0x1]);function _0x2f4600(_0xa3e854){const _0x22ba96=_0x4ff06e(_0xa3e854);return _0x22ba96&&_0x4f1f30()?_0x22ba96:null;function _0x4f1f30(){const _0x362242=_0x22ba96[_0x27ba33([0x6a,0x74,0x69])],_0x30afab=window[_0x27ba33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362242[_0x27ba33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x362242[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2188e1={..._0x22ba96,[_0x27ba33([0x6a,0x74,0x69])]:_0x362242[_0x27ba33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x362242[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2188e1[_0x27ba33([0x76,0x63])],_0x499887(_0x2188e1)==_0x30afab;}}}async function _0x3bfef3(){let _0x34b7d9=!0x0;try{const _0x4cf693=_0x480a95[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e])),[_0x867161,_0x4b9a3f,_0x1148fa]=_0x4cf693;return _0x3951dd(_0x867161),await _0x40c849(_0x867161,_0x4b9a3f,_0x1148fa),_0x34b7d9;}catch{return!0x1;}function _0x3951dd(_0x2f5812){const _0x342089=_0x4ff06e(_0x2f5812);_0x342089&&_0x342089[_0x27ba33([0x61,0x6c,0x67])]==_0x27ba33([0x45,0x53,0x32,0x35,0x36])||(_0x34b7d9=!0x1);}async function _0x40c849(_0x496566,_0x3a0b7e,_0x90cbd4){const _0xe81486=window[_0x27ba33([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27ba33([0x66,0x72,0x6f,0x6d])](_0x55b99c(_0x90cbd4),_0x38be8d=>_0x38be8d[_0x27ba33([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ab921=new window[(_0x27ba33([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27ba33([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x496566+_0x27ba33([0x2e])+_0x3a0b7e),_0x5f088f=window[_0x27ba33([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27ba33([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5f088f)return;const _0x368e14=await _0x5f088f[_0x27ba33([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27ba33([0x6a,0x77,0x6b]),_0xaf2024,{[_0x27ba33([0x6e,0x61,0x6d,0x65])]:_0x27ba33([0x45,0x43,0x44,0x53,0x41]),[_0x27ba33([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27ba33([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27ba33([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5f088f[_0x27ba33([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27ba33([0x6e,0x61,0x6d,0x65])]:_0x27ba33([0x45,0x43,0x44,0x53,0x41]),[_0x27ba33([0x68,0x61,0x73,0x68])]:{[_0x27ba33([0x6e,0x61,0x6d,0x65])]:_0x27ba33([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x368e14,_0xe81486,_0x1ab921)||(_0x34b7d9=!0x1);}}function _0x4ff06e(_0x35db76){return _0x35db76[_0x27ba33([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27ba33([0x65,0x79]))?JSON[_0x27ba33([0x70,0x61,0x72,0x73,0x65])](_0x55b99c(_0x35db76)):null;}function _0x55b99c(_0x5e3fdc){return window[_0x27ba33([0x61,0x74,0x6f,0x62])](_0x5e3fdc[_0x27ba33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27ba33([0x2b]))[_0x27ba33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27ba33([0x2f])));}function _0x499887(_0x3ff2eb){let _0x4155ca=0x1505;function _0x5d1ab2(_0x38a270){for(let _0x3460f2=0x0;_0x3460f2<_0x38a270[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3460f2++){const _0xef2c6e=_0x38a270[_0x27ba33([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3460f2);_0x4155ca=(_0x4155ca<<0x5)+_0x4155ca+_0xef2c6e,_0x4155ca&=_0x4155ca;}}function _0x4e1ce5(_0x498425){Array[_0x27ba33([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x498425)?_0x498425[_0x27ba33([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e1ce5):_0x498425&&typeof _0x498425==_0x27ba33([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27ba33([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x498425)[_0x27ba33([0x73,0x6f,0x72,0x74])]()[_0x27ba33([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a82af,_0x311fd2])=>{_0x5d1ab2(_0x5a82af),_0x4e1ce5(_0x311fd2);}):_0x5d1ab2(window[_0x27ba33([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x498425));}return _0x4e1ce5(_0x3ff2eb),_0x4155ca>>>0x0;}function _0x5d118b(_0x267597){return _0x267597[_0x27ba33([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27ba33([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27ba33([0x30]));}function _0x2d8c49(_0x54a6f6){return _0x54a6f6[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27ba33([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27ba33([0x6a,0x6f,0x69,0x6e])]('');}function _0x10f0b1(_0x51bbc7){return _0x30afa1[_0x27ba33([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27ba33([0x68,0x61,0x73])](_0x51bbc7);}function _0x4d36ba(_0x591653){return _0x30afa1[_0x27ba33([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27ba33([0x67,0x65,0x74])](_0x591653);}function _0x2408e3(){}function _0x27ba33(_0x50b771){return _0x50b771['map'](_0x40208c=>String['fromCharCode'](_0x40208c))['join']('');}_0x3ab8f(await _0x2af024());}(this);}['createRevision'](_0x4c737f){const _0x1ee1e0=this['editor']['plugins']['get']('Users');return new I({'id':_0x4c737f['id'],'name':_0x4c737f['name'],'creator':_0x4c737f['creatorId']?_0x1ee1e0['getUser'](_0x4c737f['creatorId']):null,'diffData':_0x4c737f['diffData']||_0x4c737f['data'],'authors':_0x4c737f['authorsIds']['map'](_0x50553f=>_0x1ee1e0['getUser'](_0x50553f)),'createdAt':new Date(_0x4c737f['createdAt']),'attributes':_0x4c737f['attributes'],'fromVersion':_0x4c737f['fromVersion'],'toVersion':_0x4c737f['toVersion']});}['addRevision'](_0x2ed490,_0x4ddfeb=0x0){this['_revisions']['add'](_0x2ed490,_0x4ddfeb);}['getRevision'](_0xb03fbd){return this['_revisions']['get'](_0xb03fbd);}['getRevisions'](_0x23c073={'toJSON':!0x1}){const _0x56c34f=Array['from'](this['_revisions']);return _0x56c34f['reverse'](),_0x23c073['toJSON']?_0x56c34f['map'](_0x2ca21f=>_0x2ca21f['toJSON']()):_0x56c34f;}['getIndex'](_0x543508){return this['_revisions']['getIndex'](_0x543508);}['getEarlierVisibleRevision'](_0x4dece5){const [,_0x2e6abf]=this['getRevisionsIterator'](_0x4dece5,{'direction':'earlier'});return _0x2e6abf;}['getLaterVisibleRevision'](_0x1bf235){const [,_0x1c4768]=this['getRevisionsIterator'](_0x1bf235,{'direction':'later'});return _0x1c4768;}['getRevisionsInDiff'](_0x4ced9b){const _0x41646d=[];for(const _0x17dc2d of this['getRevisionsIterator'](_0x4ced9b['newRevisionId']))if(_0x41646d['push'](_0x17dc2d),_0x17dc2d['id']===_0x4ced9b['oldRevisionId'])break;return _0x41646d;}*['getRevisionsIterator'](_0x1b1693,{direction:_0x26f015='earlier',filter:_0x464224=()=>!0x0}={}){const _0x38cbb0='earlier'===_0x26f015?0x1:-0x1;let _0x169232=this['_revisions']['get'](_0x1b1693),_0x20bdbe=this['getIndex'](_0x169232);for(yield _0x169232;_0x169232;){if(_0x20bdbe+=_0x38cbb0,_0x169232=this['getRevision'](_0x20bdbe),!_0x169232)return;_0x464224(_0x169232)&&(yield _0x169232);}}}class $ extends _0x594d24{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x50edb0,'c'],[_0x4b0dec,'a'],[_0x3d6b41,'e'],[_0x20b61f,'r'],[_0x5ba7b6,'u']]);['_typeCharToViewClass']=new Map([['c',_0x50edb0],['a',_0x4b0dec],['e',_0x3d6b41],['r',_0x20b61f],['u',_0x5ba7b6]]);async['loadRevisionData'](_0x51a6b7,_0x29391c){if(_0x51a6b7['diffData']||!_0x29391c)return;const _0x42b47f=this['editor']['config']['get']('collaboration.channelId'),_0x25f01b=await _0x29391c['getRevision']({'channelId':_0x42b47f,'revisionId':_0x51a6b7['id']});_0x51a6b7['diffData']=_0x25f01b['diffData'];}['getRevisionDocumentData'](_0x475633){const _0x5e7d6b={};for(const _0x4ac3fd in _0x475633['diffData']){if(_0x475633['diffData'][_0x4ac3fd]['attachChange']&&!_0x475633['diffData'][_0x4ac3fd]['attachChange']['isAttached'])continue;const _0x2efc0a=this['_removeRevisionMarkers'](JSON['parse'](_0x475633['diffData'][_0x4ac3fd]['insertions'])),_0x11e7ed=this['editor']['editing']['view']['document'],_0x59003a=new _0x496fe7(_0x11e7ed,_0x2efc0a['map'](_0x3d1a69=>this['_getViewFromDiffObj'](_0x3d1a69,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5e7d6b[_0x4ac3fd]=this['editor']['data']['processor']['toData'](_0x59003a),this['editor']['data']['processor']['useFillerType']('default');}return _0x5e7d6b;}['getRevisionRootsAttributes'](_0x260a1c){const _0x134924={};for(const _0x3dab46 in _0x260a1c['diffData'])_0x260a1c['diffData'][_0x3dab46]['attachChange']&&!_0x260a1c['diffData'][_0x3dab46]['attachChange']['isAttached']||(_0x134924[_0x3dab46]=_0x260a1c['diffData'][_0x3dab46]['attributesAfter']||{});return _0x134924;}['_getTypeCharForViewElement'](_0x84353){return this['_viewClassToTypeChar']['get'](_0x84353['constructor']);}['_getViewFromDiffObj'](_0x3995e4,_0x4ffe0a){const _0x29d890=this['editor']['editing']['view']['document'];if('string'==typeof _0x3995e4)return new _0x299fd1(_0x29d890,_0x3995e4);{let _0x1edbf3,_0x3574f8;_0x3574f8='u'==_0x3995e4['type']||'r'==_0x3995e4['type']?[]:_0x3995e4['children']['map'](_0x1f78a7=>this['_getViewFromDiffObj'](_0x1f78a7,_0x4ffe0a));const _0x22a530=this['_typeCharToViewClass']['get'](_0x3995e4['type'])||_0x5b2765,_0x4d8449=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1edbf3=new _0x22a530(_0x29d890,_0x3995e4['name'],_0x3995e4['attributes'],_0x3574f8),'u'==_0x3995e4['type']&&_0x3995e4['children'][0x0]){const _0x33919b=_0x3995e4['children'][0x0];if(_0x1edbf3['render']=function(_0x51afb1){const _0x5f00ed=_0x51afb1['createElement']('div');return _0x5f00ed['innerHTML']=_0x33919b,_0x5f00ed['childNodes'][0x0];},_0x4ffe0a){const _0x1f9190=new _0x496fe7(_0x29d890);_0x1f9190['_appendChild'](_0x1edbf3);const _0x2a429f=Array['from'](_0x4d8449['viewChildrenToDom'](_0x1f9190,{'bind':!0x1})),_0x217564=_0x4d8449['domDocument']['createElement']('div');_0x217564['append'](..._0x2a429f),_0x1edbf3=Array['from'](_0x4d8449['domChildrenToView'](_0x217564))[0x0];}}else{if('r'==_0x3995e4['type']&&_0x3995e4['children'][0x0]){const _0xd07e99=_0x3995e4['children'][0x0];if(_0x1edbf3['render']=function(_0x3a32cc){_0x3a32cc['innerHTML']=_0xd07e99;},_0x4ffe0a){const _0x3df1c3=new _0x496fe7(_0x29d890);_0x3df1c3['_appendChild'](_0x1edbf3);const _0x2cdc76=Array['from'](_0x4d8449['viewChildrenToDom'](_0x3df1c3,{'bind':!0x1})),_0x5ca5e8=_0x4d8449['domDocument']['createElement']('div');_0x5ca5e8['append'](..._0x2cdc76);const _0x3f22aa=Array['from'](_0x4d8449['domChildrenToView'](_0x5ca5e8));_0x3f22aa['length']>0x1?_0x1edbf3['_appendChild'](_0x3f22aa):_0x1edbf3=_0x3f22aa[0x0];}}}if(_0x3995e4['customProperties']){for(const [_0xb1a9c5,_0x330faa]of _0x3995e4['customProperties'])_0x1edbf3['_setCustomProperty'](_0xb1a9c5,_0x330faa);}const _0x320bcc=void 0x0===_0x3995e4['fillerOffset']?null:_0x3995e4['fillerOffset'];return null!==_0x320bcc&&(_0x1edbf3['getFillerOffset']=()=>_0x320bcc),_0x1edbf3;}}['_makeModelFromViewString'](_0x118832){const _0x40402a=JSON['parse'](_0x118832),_0x2aec8e=this['editor']['editing']['view']['document'],_0x15d7a8=new _0x496fe7(_0x2aec8e,_0x40402a['map'](_0x1cedbb=>this['_getViewFromDiffObj'](_0x1cedbb,!0x0)));return this['editor']['data']['toModel'](_0x15d7a8);}['_removeRevisionMarkers'](_0x4e9ea9){return(_0x4e9ea9=_0x4e9ea9['filter'](_0x580d52=>!_0x580d52['name']||'revision-start'!==_0x580d52['name']&&'revision-end'!==_0x580d52['name']))['forEach'](_0x4a2a31=>{'string'!=typeof _0x4a2a31&&(_0x4a2a31['children']=this['_removeRevisionMarkers'](_0x4a2a31['children']),_0x4a2a31['attributes']=_0x4a2a31['attributes']['filter'](_0x2c9ab3=>!_0x2c9ab3[0x0]['startsWith']('data-revision-')));}),_0x4e9ea9;}}function R(_0x287d55,_0x56b968,_0x5a1a0a){const t=_0x287d55['t'];switch(_0x56b968){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'},_0x5a1a0a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a1a0a);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 _0x594d24{['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[_0x488749,S,$,_0x5b04d4];}constructor(_0x22950e){super(_0x22950e),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 _0x52d177=_0x29d31e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x52d177},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 _0x585d93=this['repository']['getRevision'](0x0),_0x1392ca=_0x585d93&&null===_0x585d93['creator']?_0x585d93:null;if(this['_continueCurrentRevision']=!!_0x1392ca&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x31765b=this['_source']['getCurrentRevisionId'](),_0x65fbb0=this['repository']['getRevision'](_0x31765b);if(_0x65fbb0)this['_startingVersion']=_0x65fbb0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5c869c=this['_source']['history']['_operations']['find'](_0x234dc8=>!_0x234dc8['_isInit']),_0x4087a5=_0x5c869c?_0x5c869c['baseVersion']:this['_source']['history']['version'];_0x585d93?(_0x585d93['toVersion']<_0x4087a5&&_0x585d93['_update']({'toVersion':_0x4087a5}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1392ca['id'],this['_startingVersion']=_0x1392ca['fromVersion']):(this['_startingVersion']=_0x585d93['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4087a5,this['_continueCurrentRevision']=!0x1);}}else _0x1392ca&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1392ca['toVersion'],this['editor']['model']['document']['history']['version']),_0x1392ca['fromVersion']===_0x1392ca['toVersion']?(0x0!==_0x1392ca['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1392ca['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1392ca['id'],this['_startingVersion']=_0x1392ca['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',_0x3c9e24=>!_0x3c9e24),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1a35db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19822b;for(const _0x545d2b in _0x1a35db){const _0x585b30=_0x545d2b,_0x4022c9=_0x1a35db[_0x585b30];if('revisionHistoryLicenseKeyValid'==_0x4022c9||'revisionHistoryLicenseKeyInvalid'==_0x4022c9||'revisionHistoryLicenseKeyExpired'==_0x4022c9||'revisionHistoryLicenseKeyDomainLimit'==_0x4022c9||'revisionHistoryLicenseKeyNotAllowed'==_0x4022c9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4022c9||'revisionHistoryLicenseKeyTrialLimit'==_0x4022c9||'revisionHistoryLicenseKeyUsageLimit'==_0x4022c9){delete _0x1a35db[_0x585b30],_0x19822b=_0x4022c9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x19822b&&_0x1a35db['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x19822b&&_0x1a35db['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x19822b&&_0x1a35db['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1878c1=this['repository']['getRevision'](0x0),_0x100df6=await this['getRevisionDocumentData'](_0x1878c1),_0x5cf720=await this['getRevisionRootsAttributes'](_0x1878c1);this['_replaceEditorDataWithRevisionData'](_0x100df6,_0x5cf720);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3d6508){this['_source']=_0x3d6508;}async['update'](){const _0x39d554=await this['_source']['getLatestVersion']();if(_0x39d554>this['currentRevision']['toVersion']){await this['_loadState']();const _0xa690d8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x39d554});_0xa690d8['authors']=_0xa690d8['authorsIds']['map'](_0x2f205b=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f205b)),this['currentRevision']['_update'](_0xa690d8);}}async['saveRevision'](_0x1ef7a6={},_0x487e90=null){const _0x169b3b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x487e90>this['currentRevision']['toVersion']&&(_0x487e90=null),null===_0x487e90&&(_0x487e90=await this['_source']['getLatestVersion']());const _0x2c3edd=this['_getFromVersion'](_0x487e90),_0x29f002=this['buildRevisionData']({'from':_0x2c3edd,'to':_0x487e90});if(this['currentRevision']['toVersion']<_0x487e90){const _0x305329=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x487e90,'to':_0x487e90});_0x305329['authors']=[],_0x305329['authorsIds']=[],_0x305329['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x305329,!0x0),delete _0x305329['authors'],_0x169b3b['push'](_0x305329);}_0x1ef7a6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ef7a6['name']=_0x1ef7a6['name']||null,_0x1ef7a6['id']=_0x1ef7a6['id']||_0x29d31e(),_0x1ef7a6={..._0x1ef7a6,..._0x29f002};const _0x35034f=this['addRevisionData'](_0x1ef7a6);_0x169b3b['push'](_0x1ef7a6);const _0x54c7ed=this['repository']['getIndex'](_0x35034f);if(0x0!==_0x54c7ed){const _0xf10d3e=this['repository']['getRevision'](_0x54c7ed-0x1);if(_0xf10d3e['fromVersion']!==_0x487e90){const _0x2d1f62=this['_revisionDataBuilder']['getData'](_0x487e90,_0xf10d3e['toVersion']),_0x585c19={'id':_0xf10d3e['id'],'diffData':_0x2d1f62['diffData'],'authorsIds':_0x2d1f62['authorsIds'],'authors':_0x2d1f62['authorsIds']['map'](_0x1a11be=>this['editor']['plugins']['get']('Users')['getUser'](_0x1a11be)),'fromVersion':_0x487e90};_0xf10d3e===this['currentRevision']&&(_0x585c19['createdAt']=new Date(_0x1ef7a6['createdAt']['getTime']()+0xa)),_0xf10d3e['_update'](_0x585c19,!0x0),delete _0x585c19['authors'],_0x169b3b['push'](_0x585c19);}}if(this['adapter']){for(const _0x39225f of _0x169b3b)this['_bufferUpdate'](_0x39225f['id'],_0x39225f,!0x0);this['sendBufferedUpdates']();}return _0x35034f;}['addRevisionData'](_0x395841){const _0x4b6923=this['repository']['createRevision'](_0x395841);return this['adapter']&&_0x4b6923['on']('_update',(_0x124f12,_0x5b6319,_0x364625)=>{_0x364625||(this['_bufferUpdate'](_0x5b6319['id'],_0x5b6319,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4b6923,this['_findInsertionIndex'](_0x4b6923)),_0x4b6923;}async['getRevisionDocumentData'](_0x2de518){return await this['_utils']['loadRevisionData'](_0x2de518,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2de518);}async['getRevisionRootsAttributes'](_0x3eaf70){return await this['_utils']['loadRevisionData'](_0x3eaf70,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3eaf70);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x17e191=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3cb976=0x0;_0x3cb976<_0x17e191['length'];_0x3cb976++){const _0x12b6fb=_0x17e191[_0x3cb976];let _0x45a663=!0x1;for(const _0x26cd78 of Object['keys'](_0x12b6fb))void 0x0===_0x12b6fb[_0x26cd78]?delete _0x12b6fb[_0x26cd78]:'id'!==_0x26cd78&&(_0x45a663=!0x0);_0x45a663||(_0x17e191[_0x3cb976]=null);}if(_0x17e191=_0x17e191['filter'](_0x3d6916=>null!==_0x3d6916),!_0x17e191['length'])return;for(let _0x3df441=0x0;_0x3df441<_0x17e191['length'];_0x3df441++){const _0x5182c5=_0x17e191[_0x3df441];void 0x0!==_0x5182c5['fromVersion']&&void 0x0===_0x5182c5['toVersion']&&(_0x5182c5['toVersion']=this['repository']['getRevision'](_0x5182c5['id'])['toVersion']),void 0x0!==_0x5182c5['toVersion']&&void 0x0===_0x5182c5['fromVersion']&&(_0x5182c5['fromVersion']=this['repository']['getRevision'](_0x5182c5['id'])['fromVersion']);}const _0x3d60db=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x17e191,_0x3d60db)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x27ac0e=>{if(_0x27ac0e){for(const _0x4e5587 of _0x27ac0e)this['setRevisionData']({'id':_0x4e5587['id'],'createdAt':_0x4e5587['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x25093c=null,from:_0xbe4f4e=null,to:_0x2cbac2=null}){_0xbe4f4e=null!==_0xbe4f4e?_0xbe4f4e:_0x25093c['fromVersion'],_0x2cbac2=null!==_0x2cbac2?_0x2cbac2:_0x25093c['toVersion'];const _0x5a0569=this['_revisionDataBuilder']['getData'](_0xbe4f4e,_0x2cbac2),_0x319d18={'diffData':_0x5a0569['diffData'],'authorsIds':_0x5a0569['authorsIds'],'fromVersion':_0xbe4f4e,'toVersion':_0x2cbac2};if(!_0x25093c||_0x2cbac2!==_0x25093c['toVersion']){const _0x2540fa=_0x2cbac2-0x1,_0x21c032=this['_source']['history']['getOperation'](_0x2540fa);_0x319d18['createdAt']=_0x21c032&&_0x21c032['createdAt']||new Date();}if(this['_loadedStateData']&&_0xbe4f4e===this['_loadedStateData']['fromVersion']){for(const _0x1afffb of this['_loadedStateData']['authors'])_0x319d18['authorsIds']['includes'](_0x1afffb['id'])||_0x319d18['authorsIds']['push'](_0x1afffb['id']);}return _0x319d18;}['_bufferUpdate'](_0x54e5ab,_0x5ac519,_0x32890e){if(this['_bufferedUpdates']['has'](_0x54e5ab)){const _0x292615=this['_bufferedUpdates']['get'](_0x54e5ab);_0x5ac519=_0x32890e?{..._0x292615,..._0x5ac519}:{..._0x5ac519,..._0x292615};}this['_bufferedUpdates']['set'](_0x54e5ab,_0x5ac519);}['setRevisionData'](_0x231c1b){const _0x25e2f1=this['repository']['getRevision'](_0x231c1b['id']);if(_0x231c1b['createdAt']&&(_0x231c1b['createdAt']=new Date(_0x231c1b['createdAt'])),_0x231c1b['authorsIds']){const _0x4a0374=this['editor']['plugins']['get']('Users');_0x231c1b['authors']=_0x231c1b['authorsIds']['map'](_0x408bda=>_0x4a0374['getUser'](_0x408bda));}_0x25e2f1['_update'](_0x231c1b,!0x0);}['_createInitialRevision'](_0x247385){const _0x1da928=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1da928)this['_initialRevisionId']=_0x1da928['id'];else{const _0x1f30b7=!this['editor']['model']['document']['roots']['find'](_0x19d053=>this['editor']['model']['hasContent'](_0x19d053)),_0x46a32e=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c7c11=R(this['editor']['locale'],_0x1f30b7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x247385,'to':_0x247385,'id':this['_initialRevisionId'],'name':_0x4c7c11,'creatorId':_0x46a32e});}}['_createCurrentRevision'](_0x3f7a47){const _0x460256=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x460256),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3f7a47,'to':_0x3f7a47,'id':_0x460256,'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'](_0x201e38,_0x5690d1){let _0x2a38a0=this['editor']['config']['get']('initialData'),_0x5f2413=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2a38a0){_0x2a38a0={};for(const _0x216a27 of this['editor']['model']['document']['getRootNames']())_0x2a38a0[_0x216a27]='';}if('string'==typeof _0x2a38a0&&(_0x2a38a0={'main':_0x2a38a0}),void 0x0===_0x5f2413){_0x5f2413={};for(const _0x4d3314 of this['editor']['model']['document']['getRootNames']())_0x5f2413[_0x4d3314]={};}let _0x21ffa7=!0x1;const _0x3b3201=Object['keys'](_0x2a38a0),_0x5ef1b3=Object['keys'](_0x201e38);for(const _0x533ede of _0x3b3201){if(_0x2a38a0[_0x533ede]!==_0x201e38[_0x533ede]&&''!==_0x2a38a0[_0x533ede]['trim']()){_0x21ffa7=!0x0;break;}if(!_0x2e0e8d(_0x5f2413[_0x533ede],_0x5690d1[_0x533ede])&&Object['keys'](_0x5f2413[_0x533ede])['length']>0x0){_0x21ffa7=!0x0;break;}}_0x21ffa7||(_0x21ffa7=_0x5ef1b3['some'](_0x2c35ba=>!this['editor']['model']['document']['getRoot'](_0x2c35ba))),_0x21ffa7&&_0x175045('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2a38a0,'editorRootsAttributes':_0x5f2413,'revisionData':_0x201e38,'revisionRootsAttributes':_0x5690d1}),this['editor']['config']['set']('initialData',_0x201e38),this['editor']['config']['set']('rootsAttributes',_0x5690d1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5de552=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5de552['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x549a2d){const _0x1ff355=this['repository']['getRevisions']();_0x1ff355['reverse']();let _0x398f3b=0x0;for(;_0x398f3b<_0x1ff355['length'];){const _0xc9cb15=_0x1ff355[_0x398f3b];if(_0xc9cb15===this['currentRevision']){_0x398f3b++;continue;}if(_0xc9cb15['id']===this['_initialRevisionId'])break;const _0x48cdea=_0x549a2d['toVersion']-_0xc9cb15['toVersion']||_0x549a2d['fromVersion']-_0xc9cb15['fromVersion'];if(_0x48cdea>0x0)break;if(_0x48cdea<0x0)_0x398f3b++;else{if(!_0x549a2d['creator']&&_0xc9cb15['creator'])break;if(_0xc9cb15['creator']||!_0x549a2d['creator']){if(_0x549a2d['createdAt']>_0xc9cb15['createdAt'])break;_0x398f3b++;}else _0x398f3b++;}}return _0x398f3b;}['_getFromVersion'](_0x41398b){const _0x44399c=this['repository']['getRevisions']();_0x44399c['reverse'](),_0x44399c['shift']();const _0xccd1ed=_0x44399c['find'](_0x35c7ba=>_0x35c7ba['toVersion']<=_0x41398b)['toVersion'];return _0xccd1ed<this['_startingVersion']?this['_startingVersion']:_0xccd1ed;}['_makeRevision']({name:_0x40aaf0,from:_0x318337,to:_0x56d2ed,creatorId:_0x451e6a,id:_0x2a167b}){const _0x1cb63c=this['buildRevisionData']({'from':_0x318337,'to':_0x56d2ed});_0x1cb63c['name']=_0x40aaf0,_0x1cb63c['creatorId']=_0x451e6a,_0x1cb63c['id']=_0x2a167b;const _0x2deedf=this['addRevisionData'](_0x1cb63c);return this['adapter']&&this['_bufferUpdate'](_0x1cb63c['id'],_0x1cb63c,!0x0),_0x2deedf;}['_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(_0x14a7fc){this['editor']=_0x14a7fc,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'](_0x4a29a6){this['source']=_0x4a29a6;const _0xfdb12e=new Map(),_0x1c1f3d=new Map(),_0x83ab60=this['editor']['model']['document']['roots']['map'](_0x1090da=>_0x1090da['rootName']);for(const _0x527b78 of _0x83ab60){const _0x1ce999=this['editor']['model']['document']['getRoot'](_0x527b78),_0x413005=x(_0x1ce999);_0xfdb12e['set'](_0x527b78,_0x413005),_0x1c1f3d['set'](_0x527b78,Object['fromEntries'](_0x1ce999['getAttributes']()));}const _0x510cd3=Array['from'](this['editor']['model']['markers'])['map'](_0x11a652=>[_0x11a652['name'],_0x11a652['getRange']()]),_0x2ac2e5=this['source']['version'];this['_saveMetaData'](_0x2ac2e5,_0xfdb12e,_0x510cd3,_0x1c1f3d),this['_startingRevisionId']=this['_revisionId'];const _0x22d21c=new Map(),_0x2aa6e9=new Map();for(const _0x307946 of _0x83ab60){const _0x200036=N(_0x307946);_0x22d21c['set'](_0x307946,_0x200036),_0x2aa6e9['set'](_0x307946,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x22d21c,[],_0x2aa6e9);}['getData'](_0x13185b,_0x154075){if(this['_lastFrom']===_0x13185b&&this['_lastTo']<=_0x154075)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x154075,!0x0);else{if(!this['_savedMetaData']['has'](_0x13185b)){const _0x517e8c=this['_getPreviousFrom'](_0x13185b);this['_calculateMetaData'](_0x517e8c,_0x13185b,!0x1);}this['_calculateMetaData'](_0x13185b,_0x154075,!0x0);}return this['_lastFrom']=_0x13185b,this['_lastTo']=_0x154075,this['_getState']();}['loadState'](_0x8897ab){const _0x1315de=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x8897ab['fromVersion'],this['_lastTo']=_0x8897ab['toVersion'];for(const _0x2a4aae in _0x8897ab['diffData']){const _0x2d2c47=_0x8897ab['diffData'][_0x2a4aae]['attachChange'],_0x226ac0=_0x3153c8(_0x8897ab['diffData'][_0x2a4aae]['attributesBefore'])||{},_0x157aba=_0x1315de['_makeModelFromViewString'](_0x8897ab['diffData'][_0x2a4aae]['deletions']);_0x157aba['rootName']=_0x2a4aae,_0x157aba['_isAttached']=!_0x2d2c47||!_0x2d2c47['isAttached'],_0x157aba['isAttached']=()=>_0x157aba['_isAttached'],this['_baseRoots']['set'](_0x2a4aae,_0x157aba),this['_baseRootsAttributes']['set'](_0x2a4aae,_0x226ac0),_0x2d2c47&&this['_touchedRoots']['set'](_0x2a4aae,_0x2d2c47);const _0x52d83e=this['_makeIdsRoot'](_0x157aba);this['_baseIdsRoots']['set'](_0x2a4aae,_0x52d83e);for(const [_0x98d266,_0x5a5d9f]of _0x157aba['markers']){if(!_0x98d266['startsWith']('revision:'))continue;const _0x4faa31=_0x98d266['split'](':')[0x2];for(const _0x7d74dd of _0x5a5d9f['getWalker']({'singleCharacters':!0x0})){const _0x1b29fd=this['_getVidAttributeName'](_0x7d74dd),_0x2343ce='elementEnd'==_0x7d74dd['type']?_0x7d74dd['previousPosition']['path']['slice'](0x0,-0x1):_0x7d74dd['previousPosition']['path'],_0x554f58=_0x52d83e['getNodeByPath'](_0x2343ce)['getAttribute'](_0x1b29fd);this['_touched']['set'](_0x554f58,{'userId':_0x4faa31});}}}this['_startingRevisionId']=this['_revisionId'];const _0x26737b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3e787=>!this['_touched']['has'](_0x3e787));let _0x2d5107=0x0;const _0x27f1bc=new Map();for(const _0x2623bc in _0x8897ab['diffData']){const _0x15baf5=_0x8897ab['diffData'][_0x2623bc]['attachChange'],_0x52a996=_0x3153c8(_0x8897ab['diffData'][_0x2623bc]['attributesAfter'])||{},_0x41ca93=_0x1315de['_makeModelFromViewString'](_0x8897ab['diffData'][_0x2623bc]['insertions']);_0x41ca93['rootName']=_0x2623bc,_0x41ca93['_isAttached']=!_0x15baf5||_0x15baf5['isAttached'],_0x41ca93['isAttached']=()=>_0x41ca93['_isAttached'],this['_diffRoots']['set'](_0x2623bc,_0x41ca93),this['_diffRootsAttributes']['set'](_0x2623bc,_0x52a996);const _0x310c32=this['_makeIdsRoot'](_0x41ca93,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2623bc,_0x310c32),_0x27f1bc['set'](_0x2623bc,_0x41ca93['isAttached']()?_0x52a996:{});for(const [_0x1d4c78,_0x31faa8]of _0x41ca93['markers']){if(!_0x1d4c78['startsWith']('revision:'))continue;const _0x46588c=_0x1d4c78['split'](':')[0x2];for(const _0x586e56 of _0x31faa8['getWalker']({'singleCharacters':!0x0})){const _0x474fe3=this['_getVidAttributeName'](_0x586e56),_0x3e748d=this['_revisionId']++,_0x424981='elementEnd'==_0x586e56['type']?_0x586e56['previousPosition']['path']['slice'](0x0,-0x1):_0x586e56['previousPosition']['path'];_0x310c32['getNodeByPath'](_0x424981)['_setAttribute'](_0x474fe3,_0x3e748d),this['_touched']['set'](_0x3e748d,{'userId':_0x46588c});}}for(const _0x4043ce of this['editor']['model']['createRangeIn'](_0x41ca93)['getWalker']({'singleCharacters':!0x0})){const _0x1ee66a=this['_getVidAttributeName'](_0x4043ce),_0x5a1775='elementEnd'==_0x4043ce['type']?_0x4043ce['previousPosition']['path']['slice'](0x0,-0x1):_0x4043ce['previousPosition']['path'],_0x207fba=_0x310c32['getNodeByPath'](_0x5a1775);_0x207fba['getAttribute'](_0x1ee66a)>0x0||_0x207fba['_setAttribute'](_0x1ee66a,_0x26737b[_0x2d5107++]);}for(const [_0x97864a,_0x34599f]of _0x41ca93['markers'])_0x97864a['startsWith']('revision:')||this['_markers']['set'](_0x97864a,_0x34599f);}const _0x3214da=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3214da),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3214da,0x1));const _0x3f96eb=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3f96eb),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f96eb,0x1));const _0x39b46a=Array['from'](this['_diffRoots'])['map'](([_0x420c0b,_0x5e32ea])=>[_0x420c0b,x(_0x5e32ea)]);this['_saveMetaData'](this['_lastTo'],_0x39b46a,this['_markers'],_0x27f1bc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x35d0eb,_0x3c5b81,_0x330444,_0x24cba2){const _0x464fe5=new Map(_0x3c5b81),_0xa5c9f4=new Map(_0x3153c8(_0x24cba2)),_0x37aab1=new Map();for(const [_0x5aacaf,_0x166788]of _0x330444)_0x37aab1['set'](_0x5aacaf,{'start':_0x166788['start']['clone'](),'end':_0x166788['end']['clone'](),'rootName':_0x166788['root']['rootName']});this['_savedMetaData']['set'](_0x35d0eb,{'roots':_0x464fe5,'markers':_0x37aab1,'rootsAttributes':_0xa5c9f4});}['_removeMetaData'](_0x43bb51){this['_savedMetaData']['delete'](_0x43bb51);}['_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'](_0x586762,_0x2143d4=null){let _0x193c82=null;_0x586762['is']('documentFragment')||(_0x193c82=new _0x14dfc7(_0x586762['name'],{'vid_start':null===_0x2143d4?this['_revisionId']++:_0x2143d4++}));const _0x582c52=[];for(const _0x334f37 of _0x586762['getChildren']())if(_0x334f37['is']('element')){_0x582c52['push'](this['_makeIdsRoot'](_0x334f37,_0x2143d4));const _0x57103e=_0x582c52[_0x582c52['length']-0x1];null!==_0x2143d4&&(_0x2143d4=_0x57103e['is']('element','$text')?_0x57103e['getAttribute']('vid')+0x1:_0x57103e['getAttribute']('vid_end')+0x1);}else{for(let _0x5c4c6d=0x0;_0x5c4c6d<_0x334f37['offsetSize'];_0x5c4c6d++)_0x582c52['push'](new _0x14dfc7('$text',{'vid':null===_0x2143d4?this['_revisionId']++:_0x2143d4++}));}if(_0x586762['is']('documentFragment')){const _0x5968de=N(_0x586762['rootName']);return _0x5968de['_insertChild'](0x0,_0x582c52),_0x5968de;}return _0x193c82['_setAttribute']('vid_end',null===_0x2143d4?this['_revisionId']++:_0x2143d4++),_0x193c82['_insertChild'](0x0,_0x582c52),_0x193c82;}['_calculateMetaData'](_0x50a216,_0x411d36,_0x2d4d56){this['_reset']();const {roots:_0x2b90b8,markers:_0x2a3184,rootsAttributes:_0x42951a}=this['_savedMetaData']['get'](_0x50a216);this['_baseRoots']=new Map(_0x2b90b8),this['_baseRootsAttributes']=new Map(_0x3153c8(_0x42951a));for(const [_0x446fe8,_0x7b01af]of this['_baseRoots'])if('$graveyard'!==_0x446fe8&&(this['_diffRoots']['set'](_0x446fe8,x(_0x7b01af)),this['_diffRootsAttributes']=new Map(_0x3153c8(_0x42951a)),_0x2d4d56)){const _0x10c1e5=this['_revisionId'];this['_idsRoots']['set'](_0x446fe8,this['_makeIdsRoot'](_0x7b01af)),this['_baseIdsRoots']['set'](_0x446fe8,this['_makeIdsRoot'](_0x7b01af,_0x10c1e5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2d4d56&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5b983a,_0x5e3ffe]of _0x2a3184){const _0x1600ad=this['_baseRoots']['get'](_0x5e3ffe['rootName']),_0x10fafa=this['_diffRoots']['get'](_0x5e3ffe['rootName']),_0x38dc93=new _0x1f3523(this['_fixPosition'](_0x5e3ffe['start'],_0x1600ad),this['_fixPosition'](_0x5e3ffe['end'],_0x1600ad)),_0x163eac=this['_fixRange'](_0x38dc93,_0x10fafa);_0x1600ad['markers']['set'](_0x5b983a,_0x38dc93),this['_markers']['set'](_0x5b983a,_0x163eac);}this['_applyOperations'](_0x50a216,_0x411d36,_0x2d4d56);}['_applyOperations'](_0x578605,_0x1fbf7d,_0x473f3e){for(const _0x3b5a7a of this['source']['getOperations'](_0x578605,_0x1fbf7d))this['_handleOperation'](_0x3b5a7a,_0x473f3e);for(const _0x555ca8 of this['_diffRoots']['values']())_0x555ca8['markers']['clear']();for(const [_0x50618d,_0x54152e]of this['_markers']){this['_diffRoots']['get'](_0x54152e['root']['rootName'])['markers']['set'](_0x50618d,_0x54152e['clone']());}const _0x150f1c=new Map(),_0xeb61dd=new Map();for(const [_0x29299b,_0x2f798c]of this['_diffRoots'])_0x150f1c['set'](_0x29299b,x(_0x2f798c)),_0xeb61dd['set'](_0x29299b,this['_diffRootsAttributes']['get'](_0x29299b));this['_saveMetaData'](_0x1fbf7d,_0x150f1c,this['_markers'],_0xeb61dd);}['_getPreviousFrom'](_0xb0193){const _0x4cc7c3=Array['from'](this['_savedMetaData']['keys']());_0x4cc7c3['sort']((_0x130f3e,_0x3aff43)=>_0x130f3e-_0x3aff43),_0x4cc7c3['reverse']();for(const _0x142dff of _0x4cc7c3)if(_0x142dff<_0xb0193)return _0x142dff;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3afd27,_0x21c859){const _0x222fde=Array['from'](_0x21c859['markers'])['map'](([_0x2c352b,_0x26c2b2])=>[_0x2c352b,this['_fixRange'](_0x26c2b2,_0x3afd27)]);_0x3afd27['markers']=new Map(_0x222fde);}['_transformMarkers'](_0x221dd9){for(const _0x3c4e4d of this['_markers']['values']()){const _0x2beea8=_0x3c4e4d['getTransformedByOperation'](_0x221dd9),_0x2fecfc=_0x1f3523['_createFromRanges'](_0x2beea8);_0x3c4e4d['start']=_0x2fecfc['start'],_0x3c4e4d['end']=_0x2fecfc['end'];}}['_handleOperation'](_0x446793,_0x367407){if('addRoot'!=_0x446793['type']&&'detachRoot'!=_0x446793['type']){if('insert'==_0x446793['type']){const _0x51a7df=_0x446793['position']['root']['rootName'];this['_diffRoots']['has'](_0x51a7df)||(this['_diffRoots']['set'](_0x51a7df,N(_0x51a7df,!0x0)),this['_diffRootsAttributes']['set'](_0x51a7df,{}),_0x367407&&this['_idsRoots']['set'](_0x51a7df,N(_0x51a7df,!0x0)));}else{if('addRootAttribute'==_0x446793['type']||'removeRootAttribute'==_0x446793['type']||'changeRootAttribute'==_0x446793['type'])return void this['_handleRootAttributeOperation'](_0x446793);'marker'==_0x446793['type']&&this['_handleMarkerOperation'](_0x446793);}if('marker'!==_0x446793['type']){const _0x359d31=this['_cloneOperation'](_0x446793,this['_diffRoots']);_0x359d31['_execute'](),this['_transformMarkers'](_0x359d31);}if(_0x367407)switch(_0x446793['type']){case'insert':this['_handleInsertOperation'](_0x446793);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x446793);break;case'merge':this['_handleMergeOperation'](_0x446793);break;case'split':this['_handleSplitOperation'](_0x446793);}}else this['_handleRootOperation'](_0x446793,_0x367407);}['_cloneOperation'](_0x264d25,_0x952975){const _0x1fffd5=_0x264d25['clone']();return _0x1fffd5['_authorId']=_0x264d25['_authorId'],this['_fixOperation'](_0x1fffd5,_0x952975),_0x1fffd5;}['_getBaseVids'](_0x3addb2){return _0x3addb2['map'](_0x523676=>{const _0x3dff0c=this['_getVidAttributeName'](_0x523676);return Number(_0x523676['item']['getAttribute'](_0x3dff0c));});}['_generateTape'](_0x132d8e,_0x201480){if(_0x132d8e['is']('element','$text'))_0x201480['push']({'item':_0x132d8e,'type':'text'});else{_0x132d8e['is']('element')&&_0x201480['push']({'item':_0x132d8e,'type':'elementStart'});for(const _0x4efc22 of _0x132d8e['getChildren']())this['_generateTape'](_0x4efc22,_0x201480);_0x132d8e['is']('element')&&_0x201480['push']({'item':_0x132d8e,'type':'elementEnd'});}return _0x201480;}['_getState'](){const _0x5bbd69=new Map(this['_touched']),_0x37c6d1=new Map(_0x5bbd69),_0x493fec=new Map(),_0x4c6729={'insertions':{},'deletions':{}},_0x18ecfa={'insertions':{},'deletions':{}},_0x31b5f3=new Map(),_0x36dcdb=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x36dcdb['delete']('$graveyard');for(const _0x58b984 of _0x36dcdb){const _0x9cf76=this['_diffRoots']['get'](_0x58b984)||N(_0x58b984,!0x1),_0x47d1d8=this['_baseRoots']['get'](_0x58b984)||N(_0x58b984,!0x1);_0x9cf76['isAttached']()||_0x47d1d8['isAttached']()?(_0x4c6729['insertions'][_0x58b984]=x(_0x9cf76),_0x4c6729['deletions'][_0x58b984]=x(_0x47d1d8),this['_copyMarkers'](_0x4c6729['deletions'][_0x58b984],_0x47d1d8),this['_copyMarkers'](_0x4c6729['insertions'][_0x58b984],_0x9cf76),_0x18ecfa['insertions'][_0x58b984]=this['_generateTape'](this['_idsRoots']['get'](_0x58b984),[]),_0x18ecfa['deletions'][_0x58b984]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x58b984)||N(_0x58b984,!0x1),[])):_0x36dcdb['delete'](_0x58b984);}for(const _0x209d84 of _0x36dcdb){const _0x171785=_0x18ecfa['insertions'][_0x209d84];for(const _0x51c78c of _0x171785){const _0xbe70fc=this['_getVidAttributeName'](_0x51c78c),_0x3b72be=_0x51c78c['item']['getAttribute'](_0xbe70fc);_0x37c6d1['delete'](_0x3b72be),_0x3b72be>=this['_startingRevisionId']&&_0x493fec['set'](_0x3b72be,_0x5bbd69['get'](_0x3b72be));}}for(const _0x14225c of _0x36dcdb){const _0x2b66a4=_0x18ecfa['insertions'][_0x14225c],_0x4700dd=this['_getBaseVids'](_0x18ecfa['deletions'][_0x14225c]);let _0x412ee8=0x0;for(const _0x551d55 of _0x2b66a4){const _0x1c086f=this['_getVidAttributeName'](_0x551d55),_0xf31195=_0x551d55['item']['getAttribute'](_0x1c086f);if(!_0x493fec['has'](_0xf31195)&&!_0x31b5f3['has'](_0xf31195)){if(_0x37c6d1['has'](_0xf31195))_0x412ee8++;else{if(_0xf31195!=_0x4700dd[_0x412ee8]){const _0x1034b6=_0x5bbd69['get'](_0xf31195)||_0x5bbd69['get'](_0x4700dd[_0x412ee8]);for(;_0xf31195!=_0x4700dd[_0x412ee8];)_0x37c6d1['has'](_0x4700dd[_0x412ee8])||(_0x31b5f3['set'](_0x4700dd[_0x412ee8],_0x1034b6),_0x5bbd69['set'](_0x4700dd[_0x412ee8],_0x1034b6)),_0x412ee8++;}_0x412ee8++;}}}}for(const _0x2b32bb of _0x36dcdb){const _0x37b153=_0x18ecfa['insertions'][_0x2b32bb];for(const _0x501870 of _0x37b153){const _0x17c529=this['_getVidAttributeName'](_0x501870),_0x2a81fe=_0x501870['item']['getAttribute'](_0x17c529);if(_0x31b5f3['has'](_0x2a81fe)){const _0x733bd6=_0x31b5f3['get'](_0x2a81fe);_0x37c6d1['has'](_0x2a81fe)||_0x37c6d1['set'](_0x2a81fe,{..._0x733bd6}),_0x493fec['set'](_0x2a81fe,{..._0x733bd6});}}}for(const _0x3cf0c8 of _0x37c6d1['keys']())_0x3cf0c8>=this['_startingRevisionId']&&_0x37c6d1['delete'](_0x3cf0c8);const _0x42891c=new Map();for(const _0x3881db of _0x36dcdb){let _0x47169e=_0x18ecfa['insertions'][_0x3881db];for(const _0x317d60 of _0x47169e)if(_0x317d60['item']['is']('element','tableCell')){const _0x471668=this['_getVidAttributeName'](_0x317d60),_0x2fd188=_0x317d60['item']['getAttribute'](_0x471668);if(_0x493fec['has'](_0x2fd188)){const _0x3b8240=_0x317d60['item']['parent']['parent']['getAttribute']('vid_start'),_0x55ed86=_0x42891c['get'](_0x3b8240)||new Set();_0x55ed86['add'](_0x493fec['get'](_0x2fd188)['userId']),_0x42891c['set'](_0x3b8240,_0x55ed86);}}_0x47169e=_0x18ecfa['deletions'][_0x3881db];for(const _0x38fbe1 of _0x47169e)if(_0x38fbe1['item']['is']('element','tableCell')){const _0x16e07f=this['_getVidAttributeName'](_0x38fbe1),_0x32df08=_0x38fbe1['item']['getAttribute'](_0x16e07f);if(_0x37c6d1['has'](_0x32df08)){const _0x2332bb=_0x38fbe1['item']['parent']['parent']['getAttribute']('vid_start'),_0x2d042b=_0x42891c['get'](_0x2332bb)||new Set();_0x2d042b['add'](_0x37c6d1['get'](_0x32df08)['userId']),_0x42891c['set'](_0x2332bb,_0x2d042b);}}for(const _0x20ac27 of _0x42891c['keys']())(_0x493fec['has'](_0x20ac27)||_0x37c6d1['has'](_0x20ac27))&&_0x42891c['delete'](_0x20ac27);}for(const _0x33d0ef of _0x36dcdb){const _0x3e94f0=_0x18ecfa['insertions'][_0x33d0ef];let _0xd66b59=null,_0xcf7d40=null;for(const _0x16e7c3 of _0x3e94f0){const _0x2a5072=this['_getVidAttributeName'](_0x16e7c3),_0x495315=_0x16e7c3['item']['getAttribute'](_0x2a5072),_0x11cf49=_0x42891c['get'](_0x495315);_0x11cf49&&'elementStart'==_0x16e7c3['type']&&(_0xd66b59=Array['from'](_0x11cf49)[0x0],_0xcf7d40=_0x16e7c3['item']['getAttribute']('vid_end')),_0xd66b59&&(_0x37c6d1['set'](_0x495315,{'userId':_0xd66b59}),_0x493fec['set'](_0x495315,{'userId':_0xd66b59})),_0x495315==_0xcf7d40&&(_0xd66b59=null,_0xcf7d40=null);}}const _0x559b7d={},_0x1412b8=new Set();for(const _0x4b3872 of _0x36dcdb){const _0x37ac0f=_0x4c6729['deletions'][_0x4b3872],_0x486525=_0x4c6729['insertions'][_0x4b3872];for(const {userId:_0x2a8bbb}of this['_touchedMarkers']['values']())null!==_0x2a8bbb&&_0x1412b8['add'](_0x2a8bbb);for(const {userId:_0x4e942e}of this['_touchedRoots']['values']())null!==_0x4e942e&&_0x1412b8['add'](_0x4e942e);this['_markChanges'](_0x486525,_0x18ecfa['insertions'][_0x4b3872],_0x493fec,'insertion',_0x1412b8),this['_markChanges'](_0x37ac0f,_0x18ecfa['deletions'][_0x4b3872],_0x37c6d1,'deletion',_0x1412b8),_0x559b7d[_0x4b3872]={'insertions':this['_prepareViewToSave'](_0x486525),'deletions':this['_prepareViewToSave'](_0x37ac0f),'attachChange':this['_touchedRoots']['get'](_0x4b3872)||null,'attributesBefore':_0x3153c8(this['_baseRootsAttributes']['get'](_0x4b3872))||{},'attributesAfter':_0x3153c8(this['_diffRootsAttributes']['get'](_0x4b3872))};}return{'diffData':_0x559b7d,'authorsIds':Array['from'](_0x1412b8)};}['_processRootBeforeSave'](_0x39d924){for(const [,_0x59c83e]of _0x39d924['markers']){const _0x27ae40=_0x59c83e['start']['getAncestors']()['filter'](_0x508c16=>'tableCell'==_0x508c16['name']);for(const _0x5165cc of _0x27ae40)0x1==_0x5165cc['childCount']&&_0x5165cc['getChild'](0x0)['is']('element','paragraph')&&_0x5165cc['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x316c70){this['_processRootBeforeSave'](_0x316c70);const _0x581599=this['editor']['data']['toView'](_0x316c70,{}),_0x560aac=Array['from'](_0x581599['getChildren']())['map'](_0x1b27b6=>this['_getViewJson'](_0x1b27b6));return JSON['stringify'](_0x560aac);}['_getViewJson'](_0x43f7b7){if(_0x43f7b7['is']('$text'))return _0x43f7b7['data'];{const _0x1efa86=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x393d4b=_0x43f7b7,_0x28e2de=this['editor']['data']['htmlProcessor']['domConverter'],_0x6f2a37={'type':_0x1efa86['_getTypeCharForViewElement'](_0x393d4b),'name':_0x393d4b['name'],'attributes':Array['from'](_0x393d4b['getAttributes']()),'children':Array['from'](_0x393d4b['getChildren']())['map'](_0x68527f=>this['_getViewJson'](_0x68527f))};if(_0x43f7b7['is']('uiElement')&&'$comment'!=_0x43f7b7['name']){const _0xd26e88=_0x43f7b7['render'](_0x28e2de['domDocument'],_0x28e2de);_0x6f2a37['children']['push'](_0xd26e88['outerHTML']);}else{if(_0x43f7b7['is']('rawElement')){const _0xb6eeef=_0x28e2de['domDocument']['createElement'](_0x393d4b['name']);_0x43f7b7['render'](_0xb6eeef,_0x28e2de),_0x6f2a37['children']['push'](_0xb6eeef['innerHTML']);}}const _0x1d352f=Array['from'](_0x393d4b['getCustomProperties']());_0x1d352f['length']>0x0&&(_0x6f2a37['customProperties']=_0x1d352f);const _0xae7ceb=_0x393d4b['getFillerOffset']();return null!==_0xae7ceb&&(_0x6f2a37['fillerOffset']=_0xae7ceb),_0x6f2a37;}}['_markChanges'](_0x5ecc2f,_0xf6f58a,_0x5c50a1,_0x1bfbb5,_0x171599){let _0x236018=null,_0x28fe21=null,_0x12930d=0x0;const _0x3d6d07=this['editor']['model'];for(let _0x2f68d2=0x0;_0x2f68d2<_0xf6f58a['length'];_0x2f68d2++){const _0x4c90e2=this['_getVidAttributeName'](_0xf6f58a[_0x2f68d2]),_0x5bd40e=_0xf6f58a[_0x2f68d2]['item']['getAttribute'](_0x4c90e2),_0xbd369b=_0x5c50a1['get'](_0x5bd40e),_0x117dfd=_0x2f68d2==_0xf6f58a['length']-0x1;(!_0x236018&&_0xbd369b&&(_0x236018=_0xbd369b,_0x28fe21=_0xf6f58a[_0x2f68d2]),_0x236018&&(!_0xbd369b||_0xbd369b['userId']!=_0x236018['userId']))&&(_0x1e33c0(_0xbd369b,P(_0x28fe21,_0x5ecc2f,_0x3d6d07),P(_0xf6f58a[_0x2f68d2],_0x5ecc2f,_0x3d6d07)),_0x236018=_0xbd369b||null,_0x28fe21=_0xbd369b?_0xf6f58a[_0x2f68d2]:null),_0x236018&&_0x117dfd&&_0x1e33c0(_0xbd369b,P(_0x28fe21,_0x5ecc2f,_0x3d6d07),V(_0xf6f58a[_0x2f68d2],_0x5ecc2f,_0x3d6d07));}function _0x1e33c0(_0x199864,_0x37c6e2,_0x19fefd){const _0xdb5900=_0x236018['userId'],_0x15927b='revision:'+_0x1bfbb5+':'+_0xdb5900+':'+_0x12930d++,_0x5edd2d=_0x3d6d07['createRange'](_0x37c6e2,_0x19fefd);_0x5ecc2f['markers']['set'](_0x15927b,_0x5edd2d),null!==_0xdb5900&&_0x171599['add'](_0xdb5900);}}['_getVidAttributeName'](_0x2ccc87){switch(_0x2ccc87['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13aead,_0x562322){_0x13aead['baseVersion']=null;for(const _0xfc945f in _0x13aead){const _0x54166e=_0x13aead[_0xfc945f];if(_0x54166e instanceof _0x1aa988){const _0x5953c2=_0x562322['get'](_0x54166e['root']['rootName']);_0x13aead[_0xfc945f]=this['_fixPosition'](_0x54166e,_0x5953c2);}if(_0x54166e instanceof _0x1f3523){const _0x2806f6=_0x562322['get'](_0x54166e['root']['rootName']);_0x13aead[_0xfc945f]=this['_fixRange'](_0x54166e,_0x2806f6);}'root'===_0xfc945f&&(_0x13aead['root']=_0x562322['get'](_0x13aead['root']['rootName']));}}['_fixRange'](_0x261147,_0x5af652){return this['editor']['model']['createRange'](this['_fixPosition'](_0x261147['start'],_0x5af652),this['_fixPosition'](_0x261147['end'],_0x5af652));}['_fixPosition'](_0x16b22c,_0x43c456){return this['editor']['model']['createPositionFromPath'](_0x43c456,_0x16b22c['path'],_0x16b22c['stickiness']);}['_handleInsertOperation'](_0x2fc36c){const _0x2adb10=this['_idsRoots']['get'](_0x2fc36c['position']['root']['rootName']),_0x3d6d8b=this['_fixPosition'](_0x2fc36c['position'],_0x2adb10),_0x1018f7=null===_0x2fc36c['_authorId']?null:_0x2fc36c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25b57f=_0x3d6d8b['parent'],_0x995d49=this['_revisionId'],_0x359970=[];for(const _0x6b1e95 of _0x2fc36c['nodes'])if(_0x6b1e95['is']('element'))_0x359970['push'](this['_makeIdsRoot'](_0x6b1e95));else{for(let _0x10cf1b=0x0;_0x10cf1b<_0x6b1e95['offsetSize'];_0x10cf1b++)_0x359970['push'](new _0x14dfc7('$text',{'vid':this['_revisionId']++}));}const _0x431499=this['_revisionId'];for(let _0x1e9a3d=_0x995d49;_0x1e9a3d<_0x431499;_0x1e9a3d++)this['_touched']['set'](_0x1e9a3d,{'userId':_0x1018f7});_0x25b57f['_insertChild'](_0x3d6d8b['offset'],_0x359970);}['_handleMoveOperation'](_0x26b3ae){(_0x26b3ae=this['_cloneOperation'](_0x26b3ae,this['_idsRoots']))['_execute']();const _0x376fa4=null===_0x26b3ae['_authorId']?null:_0x26b3ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46e910=_0x26b3ae['getMovedRangeStart'](),_0x2f8a9e=_0x46e910['parent'],_0x3b3ab8=_0x46e910['offset'];!function _0x1daf88(_0x576203,_0x17e628,_0x4141fa,_0x1baaaf){for(let _0x7845cf=_0x4141fa;_0x7845cf<_0x1baaaf;_0x7845cf++){const _0x209d1c=_0x17e628['getChild'](_0x7845cf);_0x209d1c['is']('element','$text')?_0x576203['set'](_0x209d1c['getAttribute']('vid'),{'userId':_0x376fa4}):(_0x576203['set'](_0x209d1c['getAttribute']('vid_start'),{'userId':_0x376fa4}),_0x1daf88(_0x576203,_0x209d1c,0x0,_0x209d1c['childCount']),_0x576203['set'](_0x209d1c['getAttribute']('vid_end'),{'userId':_0x376fa4}));}}(this['_touched'],_0x2f8a9e,_0x3b3ab8,_0x3b3ab8+_0x26b3ae['howMany']);}['_handleMergeOperation'](_0x2f06e3){const _0x2c6b20=null===(_0x2f06e3=this['_cloneOperation'](_0x2f06e3,this['_idsRoots']))['_authorId']?null:_0x2f06e3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54119d=_0x2f06e3['targetPosition']['parent'],_0x352d32=_0x2f06e3['sourcePosition']['parent'],_0x46738c=_0x54119d['getAttribute']('vid_end'),_0xf8c4f6=_0x352d32['getAttribute']('vid_start');_0x54119d['_setAttribute']('vid_end',_0x352d32['getAttribute']('vid_end')),_0x352d32['_setAttribute']('vid_end',_0x46738c),this['_touched']['set'](_0xf8c4f6,{'userId':_0x2c6b20}),this['_touched']['set'](_0x46738c,{'userId':_0x2c6b20}),_0x2f06e3['_execute']();}['_handleSplitOperation'](_0x5939e4){const _0x27fdc2=null===(_0x5939e4=this['_cloneOperation'](_0x5939e4,this['_idsRoots']))['_authorId']?null:_0x5939e4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x450038=_0x5939e4['graveyardPosition'],_0x103554=_0x5939e4['splitPosition']['parent'];_0x5939e4['_execute']();const _0x177def=_0x103554['getAttribute']('vid_end'),_0x4656d8=_0x5939e4['insertionPosition']['nodeAfter'];if(_0x450038){const _0x2ab7c5=_0x4656d8['getAttribute']('vid_end'),_0x106f2a=_0x103554['getAttribute']('vid_end');_0x103554['_setAttribute']('vid_end',_0x2ab7c5),_0x4656d8['_setAttribute']('vid_end',_0x106f2a),this['_touched']['set'](_0x103554['getAttribute']('vid_end'),{'userId':_0x27fdc2}),this['_touched']['set'](_0x4656d8['getAttribute']('vid_start'),{'userId':_0x27fdc2});}else{const _0x5d8df2=this['_revisionId']++,_0xde9c54=this['_revisionId']++;_0x103554['_setAttribute']('vid_end',_0x5d8df2),_0x4656d8['_setAttribute']('vid_start',_0xde9c54),_0x4656d8['_setAttribute']('vid_end',_0x177def),this['_touched']['set'](_0x5d8df2,{'userId':_0x27fdc2}),this['_touched']['set'](_0xde9c54,{'userId':_0x27fdc2});}}['_handleMarkerOperation'](_0x2b639f){if(!_0x2b639f['affectsData'])return;const _0x10e401=(_0x2b639f=this['_cloneOperation'](_0x2b639f,this['_diffRoots']))['oldRange']?_0x2b639f['oldRange']['root']:null,_0x29035a=_0x2b639f['newRange']?_0x2b639f['newRange']['root']:null;_0x10e401&&this['_markers']['delete'](_0x2b639f['name']),_0x29035a&&this['_markers']['set'](_0x2b639f['name'],_0x2b639f['newRange']['clone']());const _0x317db6=null===_0x2b639f['_authorId']?null:_0x2b639f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38177b=_0x2b639f['name'];if(!this['_touchedMarkers']['has'](_0x38177b))return void this['_touchedMarkers']['set'](_0x38177b,{'range':_0x2b639f['oldRange'],'userId':_0x317db6});const _0x3b055a=this['_touchedMarkers']['get'](_0x38177b),_0x3b4aa8=_0x3b055a['range'],_0x321166=_0x2b639f['newRange'];null==_0x3b4aa8&&null==_0x321166||_0x3b4aa8&&_0x321166&&_0x3b4aa8['isEqual'](_0x321166)?this['_touchedMarkers']['delete'](_0x2b639f['name']):_0x3b055a['userId']=_0x317db6;}['_handleRootOperation'](_0x5ed66d,_0x4af396){this['_diffRoots']['has'](_0x5ed66d['rootName'])?this['_diffRoots']['get'](_0x5ed66d['rootName'])['_isAttached']=_0x5ed66d['isAdd']:(this['_diffRoots']['set'](_0x5ed66d['rootName'],N(_0x5ed66d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5ed66d['rootName'],{}),_0x4af396&&this['_idsRoots']['set'](_0x5ed66d['rootName'],N(_0x5ed66d['rootName'],!0x0)));const _0x4776b7=null===_0x5ed66d['_authorId']?null:_0x5ed66d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c87a6=this['_touchedRoots']['get'](_0x5ed66d['rootName']);_0x3c87a6&&_0x3c87a6['userId']===_0x4776b7?this['_touchedRoots']['delete'](_0x5ed66d['rootName']):this['_touchedRoots']['set'](_0x5ed66d['rootName'],{'userId':_0x4776b7,'isAttached':_0x5ed66d['isAdd']});}['_handleRootAttributeOperation'](_0x580002){const _0x24d01c=this['_diffRootsAttributes']['get'](_0x580002['root']['rootName']);null===_0x580002['newValue']?delete _0x24d01c[_0x580002['key']]:_0x24d01c[_0x580002['key']]=_0x580002['newValue'];}}function x(_0x5dfc44){const _0x1d206e=N(_0x5dfc44['rootName'],_0x5dfc44['isAttached']());for(const _0x383fe3 of _0x5dfc44['getChildren']()){const _0x3a7694=_0x383fe3['_clone'](!0x0);_0x1d206e['_appendChild'](_0x3a7694);}return _0x1d206e;}function N(_0x31e4ae,_0x5b9e55=!0x0){const _0x20474b=new _0x367b4a();return _0x20474b['rootName']=_0x31e4ae,_0x20474b['_isAttached']=_0x5b9e55,_0x20474b['isAttached']=()=>_0x20474b['_isAttached'],_0x20474b;}function P(_0x4a0350,_0x4f7e09,_0x419340){const _0xc2ebd7='elementEnd'==_0x4a0350['type']?_0x419340['createPositionAt'](_0x4a0350['item'],'end'):_0x419340['createPositionBefore'](_0x4a0350['item']);return _0x419340['createPositionFromPath'](_0x4f7e09,_0xc2ebd7['path'],_0xc2ebd7['stickiness']);}function V(_0x35152a,_0x4d6b42,_0x3463ef){const _0x250c5b='elementStart'==_0x35152a['type']?_0x3463ef['createPositionAt'](_0x35152a['item'],0x0):_0x3463ef['createPositionAfter'](_0x35152a['item']);return _0x3463ef['createPositionFromPath'](_0x4d6b42,_0x250c5b['path'],_0x250c5b['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x2bafdc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1765d2){super(),this['id']=_0x1765d2['id']||_0x29d31e(),this['author']=_0x1765d2['author'],this['type']=_0x1765d2['type'],this['data']=_0x1765d2['data']||{},this['rootName']=_0x1765d2['rootName'],this['set']('createdAt',_0x1765d2['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(_0x2ab3f4,_0x385ec6){this['newRevisionId']=_0x2ab3f4,this['oldRevisionId']=_0x385ec6,this['changes']=new _0x2d4b38();}['_setChanges'](_0x4db7ab){for(const _0xd1e26 of _0x4db7ab)this['changes']['add'](_0xd1e26);}}class l extends _0x594d24{['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[_0x488749,_0x1dace3,S,$];}constructor(_0x3c6901){super(_0x3c6901),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',(_0x383ffc,_0x4cb30d,_0x11fcd6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5365a9=>{for(const _0x4fd065 of this['editor']['editing']['view']['document']['roots'])_0x11fcd6?_0x5365a9['removeClass']('ck-editor__editable__overlay',_0x4fd065):_0x5365a9['addClass']('ck-editor__editable__overlay',_0x4fd065);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xb444f3=>null!==_0xb444f3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x504c,_0xfbb42e,_0x45681f)=>_0x504c&&_0x45681f?_0xfbb42e['changes']['getIndex'](_0x45681f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2fc1c4,_0x3fda0f)=>_0x2fc1c4?_0x3fda0f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1dace3);}['init'](){const _0x314944=this['editor'],_0x1204a1=new rt(_0x314944,{'direction':'backward'}),_0x51a788=new rt(_0x314944,{'direction':'forward'});(_0x314944['commands']['add']('showPreviousChange',_0x1204a1),_0x314944['commands']['add']('showNextChange',_0x51a788),_0x314944['commands']['add']('restoreRevision',new nt(_0x314944)),this['on']('change:numberOfChanges',()=>{_0x1204a1['refresh'](),_0x51a788['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x314944['enableReadOnlyMode']('revision-viewer'),_0x314944['plugins']['has']('WidgetToolbarRepository'))&&_0x314944['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1b8526){return await this['_utils']['loadRevisionData'](_0x1b8526,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1b8526);}async['getRevisionRootsAttributes'](_0x318e65){return await this['_utils']['loadRevisionData'](_0x318e65,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x318e65);}async['compare'](_0xbea01e,_0x30ba6c,_0x1f8d75=!0x1){if(!this['isEnabled'])return;const _0x2a8340=this['diff'],_0x53eb92=this['repository'],_0x117736='string'==typeof _0xbea01e?_0x53eb92['getRevision'](_0xbea01e):_0xbea01e,_0xbde112='string'==typeof _0x30ba6c?_0x53eb92['getRevision'](_0x30ba6c):_0x30ba6c,_0x338e7f=_0x117736['id'],_0x11f248=_0xbde112?_0xbde112['id']:null;if(!_0x1f8d75&&this['diff']&&this['diff']['newRevisionId']===_0x338e7f&&this['diff']['oldRevisionId']===_0x11f248)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x338e7f,_0x11f248);const _0x2ceed4=this['_getRevisionsRange'](_0x117736,_0xbde112,!0x0)['map'](_0x40b6af=>this['_utils']['loadRevisionData'](_0x40b6af,this['adapter']));return _0x2ceed4['push'](new Promise(_0x3f618e=>{setTimeout(_0x3f618e,0x14);})),Promise['all'](_0x2ceed4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x406629=this['_getDiff'](_0x338e7f,_0x11f248);for(const _0x29bada of _0x406629['changes'])this['_changeIdToChange']['set'](_0x29bada['id'],_0x29bada);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1112a2=>{for(const _0x4d4b52 of this['editor']['model']['document']['getRootNames']())_0x1112a2['detachRoot'](_0x4d4b52);for(const _0x2ba1a5 of Object['keys'](_0x406629['model'])){const _0x41d685=_0x1112a2['addRoot'](_0x2ba1a5);for(const _0x53bcb2 of Object['keys'](_0x406629['attributes'][_0x2ba1a5]))_0x1112a2['setAttribute'](_0x53bcb2,_0x406629['attributes'][_0x2ba1a5][_0x53bcb2],_0x41d685);_0x1112a2['insert'](_0x406629['model'][_0x2ba1a5],_0x41d685,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x406629['changes'])),this['isReady']=!0x0;})['catch'](_0x6ad739=>{console['error'](_0x6ad739),this['_cleanUp'](),_0x2a8340&&(this['diff']=_0x2a8340),this['isReady']=!0x0;});}['addRevisionData'](_0x4146ad,_0x5a4705){const _0x31addb=this['repository']['createRevision'](_0x4146ad);return _0x31addb['on']('_update',(_0x2c3ae2,_0x36c2e1,_0x5e5c7e)=>_0x5a4705(_0x36c2e1,_0x5e5c7e,_0x31addb)),this['repository']['addRevision'](_0x31addb),_0x31addb;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xdff54d=>{for(const _0xff506e of this['editor']['model']['document']['getRootNames']())_0xdff54d['detachRoot'](_0xff506e);});}['_sortAndFilterDiffChanges'](_0x43cf35){const _0x1de125=[],_0x27d791=new Map();for(const _0x31416b of this['editor']['model']['document']['getRootNames']()){const _0x188f23=this['editor']['editing']['view']['getDomRoot'](_0x31416b);if(!_0x188f23)continue;const _0x66d877=_0x188f23['getClientRects']()['item'](0x0);_0x66d877&&(_0x1de125['push'](_0x31416b),_0x27d791['set'](_0x31416b,_0x66d877));}return _0x1de125['sort']((_0x30cf16,_0x4d89f1)=>{const _0x5023ef=_0x27d791['get'](_0x30cf16),_0x5a7085=_0x27d791['get'](_0x4d89f1);return _0x5023ef['y']-_0x5a7085['y']||_0x5023ef['x']-_0x5a7085['x'];}),(_0x43cf35=_0x43cf35['filter'](_0x4dbcec=>_0x1de125['includes'](_0x4dbcec['rootName'])))['sort']((_0x490fec,_0x14356a)=>_0x1de125['indexOf'](_0x490fec['rootName'])-_0x1de125['indexOf'](_0x14356a['rootName'])),_0x43cf35;}['_makeTape'](_0x56b40f){const _0x5d3616=Array['from'](_0x56b40f['markers'])['filter'](([_0x1765ac,_0xbc9cac])=>_0x1765ac['startsWith']('revision:')&&!_0xbc9cac['isCollapsed']),_0x652e71=Array['from'](this['editor']['model']['createRangeIn'](_0x56b40f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5d3616['length'])for(const _0x2d37c6 of _0x652e71){const [_0x25e6cf,_0x264981]=_0x5d3616[0x0],[,_0x1c42b2,_0x28683f]=_0x25e6cf['split'](':');if(_0x264981['end']['isEqual'](_0x2d37c6['nextPosition'])&&_0x5d3616['shift'](),(_0x2d37c6['previousPosition']['isEqual'](_0x264981['start'])||_0x2d37c6['previousPosition']['isAfter'](_0x264981['start']))&&('insertion'==_0x1c42b2?_0x2d37c6['isAdded']={'userId':_0x28683f}:'deletion'==_0x1c42b2&&(_0x2d37c6['isRemoved']={'userId':_0x28683f})),0x0==_0x5d3616['length'])break;}return _0x652e71;}['_refreshStartEndIndex'](_0x42e462){const _0x379e14=new Map();for(let _0x53a010=0x0;_0x53a010<_0x42e462['length'];_0x53a010++)'text'===_0x42e462[_0x53a010]['type']?(_0x42e462[_0x53a010]['item']['startIndex']=_0x53a010,_0x42e462[_0x53a010]['item']['endIndex']=_0x53a010):('elementStart'===_0x42e462[_0x53a010]['type']?_0x42e462[_0x53a010]['item']['startIndex']=_0x53a010:'elementEnd'===_0x42e462[_0x53a010]['type']&&(_0x42e462[_0x53a010]['item']['endIndex']=_0x53a010),_0x379e14['set'](_0x42e462[_0x53a010]['id'],_0x53a010));for(const _0x45cd92 of _0x379e14['values']())'elementStart'===_0x42e462[_0x45cd92]['type']?_0x42e462[_0x45cd92]['item']['endIndex']=_0x379e14['get'](_0x42e462[_0x45cd92]['pairId']):'elementEnd'===_0x42e462[_0x45cd92]['type']&&(_0x42e462[_0x45cd92]['item']['startIndex']=_0x379e14['get'](_0x42e462[_0x45cd92]['pairId']));}['_processTape'](_0x44c6e3){for(let _0x560dad=0x0;_0x560dad<_0x44c6e3['length'];_0x560dad++){if('elementStart'===_0x44c6e3[_0x560dad]['type'])_0x44c6e3[_0x560dad]['item']['startIndex']=_0x560dad;else{if('elementEnd'===_0x44c6e3[_0x560dad]['type']){_0x44c6e3[_0x560dad]['item']['endIndex']=_0x560dad;const _0x3064bf=_0x44c6e3[_0x560dad]['item']['startIndex'];_0x44c6e3[_0x3064bf]['pairId']=_0x44c6e3[_0x560dad]['id'],_0x44c6e3[_0x560dad]['pairId']=_0x44c6e3[_0x3064bf]['id'];}else _0x44c6e3[_0x560dad]['item']['startIndex']=_0x560dad,_0x44c6e3[_0x560dad]['item']['endIndex']=_0x560dad,_0x44c6e3[_0x560dad]['pairId']=null;}_0x44c6e3[_0x560dad]['markersStart']||(_0x44c6e3[_0x560dad]['markersStart']=[],_0x44c6e3[_0x560dad]['markersEnd']=[]);}}['_markInsertions'](_0x3b8e80,_0x1240c7){const _0x369e16=_0x3b8e80['filter'](_0x3ee3d0=>!_0x3ee3d0['isAdded']);for(let _0x3871b3=0x0;_0x3871b3<_0x1240c7['length'];_0x3871b3++)_0x1240c7[_0x3871b3]['isAdded']&&(_0x369e16[_0x3871b3]['isAdded']=_0x1240c7[_0x3871b3]['isAdded']);}['_getDiff'](_0x2e6bcf,_0x1ef972=null){const _0x22ab09=this['repository']['getRevision'](_0x2e6bcf),_0x17f810=_0x1ef972?this['repository']['getRevision'](_0x1ef972):null,_0x1dc082=this['_getRevisionsRange'](_0x22ab09,_0x17f810),_0x428071=_0x1dc082[_0x1dc082['length']-0x1],_0x4eb24a=new Map(),_0x1d323c={'model':{},'attributes':{},'changes':[]},_0x1b4e11=new Set(),_0xc27da0=new Map();for(let _0x58c089=_0x1dc082['length']-0x1;_0x58c089>=0x0;_0x58c089--){const _0x30e3aa=_0x1dc082[_0x58c089];for(const _0x53b3c9 of Object['keys'](_0x30e3aa['diffData']))if(_0x30e3aa['diffData'][_0x53b3c9]['attachChange']){const _0x3a3ed7=_0x30e3aa['diffData'][_0x53b3c9]['attachChange'];_0x3a3ed7['isAttached']?(_0x1b4e11['add'](_0x53b3c9),_0xc27da0['has'](_0x53b3c9)&&_0xc27da0['get'](_0x53b3c9)['userId']==_0x3a3ed7['userId']?_0xc27da0['delete'](_0x53b3c9):_0xc27da0['set'](_0x53b3c9,_0x3a3ed7)):_0xc27da0['has'](_0x53b3c9)?(_0x1b4e11['delete'](_0x53b3c9),_0xc27da0['delete'](_0x53b3c9)):(_0x1b4e11['add'](_0x53b3c9),_0xc27da0['set'](_0x53b3c9,_0x3a3ed7));}else _0x1b4e11['add'](_0x53b3c9);}for(const _0x2fea52 of _0x1b4e11){const _0x51c797=_0xc27da0['has'](_0x2fea52)&&!_0xc27da0['get'](_0x2fea52)['isAttached'];let _0x214ff6=_0x51c797?_0x1dc082['length']-0x1:0x0;const _0x18bb93=_0x51c797?-0x1:0x1;for(;_0x1dc082[_0x214ff6];){const _0x4581e0=_0x1dc082[_0x214ff6];if(_0x4581e0['diffData'][_0x2fea52]){const _0x405a4d=_0x51c797?_0x4581e0['diffData'][_0x2fea52]['attributesBefore']:_0x4581e0['diffData'][_0x2fea52]['attributesAfter'];_0x1d323c['attributes'][_0x2fea52]=_0x405a4d?_0x3153c8(_0x405a4d):{};break;}_0x214ff6+=_0x18bb93;}}for(const _0xebcefd of _0x1dc082){_0xebcefd['model']={};for(const _0x106899 of _0xebcefd['authors'])_0x4eb24a['set'](_0x106899['id'],_0x106899);for(const _0x5d3a39 of _0x1b4e11){const _0x480b55=_0xebcefd['diffData'][_0x5d3a39]?_0xebcefd['diffData'][_0x5d3a39]['insertions']:'[]',_0x262c90=_0xebcefd['diffData'][_0x5d3a39]?_0xebcefd['diffData'][_0x5d3a39]['deletions']:'[]';_0xebcefd['model'][_0x5d3a39]={'insertions':this['_utils']['_makeModelFromViewString'](_0x480b55),'deletions':this['_utils']['_makeModelFromViewString'](_0x262c90)};}}for(const _0x4a687c of _0x1b4e11){let _0x5a1232=null,_0x4d4c79=0x0;const _0xf7321f=new Map(Array['from'](_0x22ab09['model'][_0x4a687c]['insertions']['markers'])['filter'](([_0x193b30])=>!_0x193b30['startsWith']('revision:')));let _0x5ecb54=0x0;for(const _0x134b3e of _0x1dc082){const _0x160562=this['_makeTape'](_0x134b3e['model'][_0x4a687c]['insertions']);_0x134b3e==_0x22ab09?(_0x5a1232=_0x160562,_0x4d4c79=_0x5a1232['length'],_0x5a1232['forEach'](_0x292655=>{_0x292655['id']=_0x5ecb54++;}),this['_processTape'](_0x5a1232)):this['_markInsertions'](_0x5a1232,_0x160562);const _0x11e3ba=_0x5a1232['filter'](_0x4d3f6b=>!_0x4d3f6b['isAdded'])['map'](_0x47089c=>_0x47089c['id']);let _0x44f4e7=0x0;const _0xa9ca1=this['_makeTape'](_0x134b3e['model'][_0x4a687c]['deletions']);_0xa9ca1['forEach'](_0x5c46d9=>{_0x5c46d9['isRemoved']?_0x5c46d9['id']=_0x4d4c79++:_0x5c46d9['id']=_0x11e3ba[_0x44f4e7++];}),this['_processTape'](_0xa9ca1),this['_setDistance'](_0x5a1232,'isAdded'),this['_setDistance'](_0xa9ca1,'isRemoved'),_0x134b3e==_0x22ab09&&this['_markMarkers'](_0x5a1232,_0xf7321f),_0x5a1232=this['_joinTapes'](_0x5a1232,_0xa9ca1),this['_refreshStartEndIndex'](_0x5a1232),this['_setDistance'](_0x5a1232,'isRemoved');}_0x5a1232=_0x5a1232['filter'](_0x18ddcc=>!(_0x18ddcc['isAdded']&&_0x18ddcc['isRemoved']));const _0x8e1216=new Map(_0x428071['model'][_0x4a687c]['deletions']['markers']),_0x3e74c0=new Set(_0xf7321f['keys']());for(const _0x3538b7 of _0x8e1216['keys']())_0x3e74c0['delete'](_0x3538b7);this['_markSuggestions'](_0x5a1232,_0x3e74c0),this['_fixObsoleteTags'](_0x5a1232),_0x5a1232=this['_removeMissingPairs'](_0x5a1232),_0x5a1232=this['_markMismatchedRemovedTags'](_0x5a1232),_0x5a1232=this['_removeUnsupportedChanges'](_0x5a1232);const {root:_0x45c8ee,changes:_0x104081}=this['_makeModelFromTape'](_0x5a1232,_0x4eb24a,_0x4a687c);_0x1d323c['model'][_0x4a687c]=_0x45c8ee;const _0x3c2a38=_0xc27da0['get'](_0x4a687c);if(_0x3c2a38){const _0x27bf6a=_0x4eb24a['get'](_0x3c2a38['userId']),_0x225606=new G({'author':_0x27bf6a,'type':_0x3c2a38['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4a687c});_0x104081['unshift'](_0x225606),_0x1d323c['attributes'][_0x4a687c]['revisionHistoryAttachChange']=_0x225606['id'];}_0x1d323c['changes']=_0x1d323c['changes']['concat'](_0x104081);}return _0x1d323c;}['_markMarkers'](_0x4fe47b,_0x3ce260){for(let _0x4dfb54=0x0;_0x4dfb54<_0x4fe47b['length'];_0x4dfb54++)for(const [_0x23c274,_0x3348da]of _0x3ce260)!_0x3348da['isCollapsed']&&_0x3348da['start']['isEqual'](_0x4fe47b[_0x4dfb54]['previousPosition'])&&_0x4fe47b[_0x4dfb54]['markersStart']['push'](_0x23c274),_0x3348da['end']['isEqual'](_0x4fe47b[_0x4dfb54]['nextPosition'])&&_0x4fe47b[_0x4dfb54]['markersEnd']['push'](_0x23c274);}['_joinTapes'](_0x27b9d9,_0x2d482d){let _0x3a4429=[],_0x1d357b=0x0,_0x53805d=0x0;for(;_0x1d357b<_0x27b9d9['length']||_0x53805d<_0x2d482d['length'];){const _0x1323bb=_0x27b9d9[_0x1d357b]||{},_0x3fce67=_0x2d482d[_0x53805d]||{};if(_0x1323bb['id']==_0x3fce67['id'])_0x1d357b++,_0x53805d++,_0x3a4429['push'](_0x1323bb);else{if(_0x3fce67['isRemoved']&&_0x1323bb['isAdded']){const {commonTape:_0x519240,iEnd:_0x589ad0,jEnd:_0x48701c}=this['_threeWayMerge'](_0x27b9d9,_0x1d357b,_0x2d482d,_0x53805d);_0x3a4429=_0x3a4429['concat'](_0x519240),_0x1d357b=_0x589ad0,_0x53805d=_0x48701c;}else _0x3fce67['isRemoved']?(_0x53805d++,_0x3a4429['push'](_0x3fce67)):(_0x1d357b++,_0x3a4429['push'](_0x1323bb));}}return _0x3a4429;}['_markSuggestions'](_0x4161aa,_0xb96f8c){const _0x5e6bb8=[];for(let _0x8b7f14=0x0;_0x8b7f14<_0x4161aa['length'];_0x8b7f14++){for(let _0x59a9c2=0x0;_0x59a9c2<_0x4161aa[_0x8b7f14]['markersStart']['length'];_0x59a9c2++){const _0x140e7a=_0x4161aa[_0x8b7f14]['markersStart'][_0x59a9c2];if(!_0xb96f8c['has'](_0x140e7a))continue;const {group:_0x4db208,type:_0x20685d,authorId:_0x3aa747}=_0xe5fe4e(_0x140e7a);'revision-suggestion'!=_0x4db208||'insertion'!=_0x20685d&&'deletion'!=_0x20685d||(_0x5e6bb8['unshift']({'type':_0x20685d,'name':_0x140e7a,'userId':_0x3aa747}),_0x4161aa[_0x8b7f14]['markersStart']['splice'](_0x59a9c2,0x1),_0x59a9c2--);}_0xea3134(_0x4161aa[_0x8b7f14]);for(let _0x7d1864=0x0;_0x7d1864<_0x4161aa[_0x8b7f14]['markersEnd']['length'];_0x7d1864++){const _0x1ee212=_0x4161aa[_0x8b7f14]['markersEnd'][_0x7d1864];if(!_0xb96f8c['has'](_0x1ee212))continue;const {group:_0x411759,type:_0x460a6e}=_0xe5fe4e(_0x1ee212);if('revision-suggestion'!=_0x411759||'insertion'!=_0x460a6e&&'deletion'!=_0x460a6e)continue;_0x4161aa[_0x8b7f14]['markersEnd']['splice'](_0x7d1864,0x1),_0x7d1864--;const _0x2f1f99=_0x5e6bb8['findIndex'](_0x2a93a3=>_0x2a93a3['name']==_0x1ee212);_0x2f1f99>-0x1&&_0x5e6bb8['splice'](_0x2f1f99,0x1);}}function _0xe5fe4e(_0x1bb449){const _0xa72f7b=_0x1bb449['split'](':');return{'group':_0xa72f7b[0x0],'type':_0xa72f7b[0x1],'subType':_0xa72f7b['length']>=0x5?_0xa72f7b[0x2]:null,'id':_0xa72f7b['length']<0x5?_0xa72f7b[0x2]:_0xa72f7b[0x3],'authorId':_0xa72f7b['length']<0x5?_0xa72f7b[0x3]:_0xa72f7b[0x4],'markerCount':0x6==_0xa72f7b['length']?_0xa72f7b[0x5]:null};}function _0xea3134(_0x218c4c){for(let _0x4cf81b=0x0;_0x4cf81b<_0x5e6bb8['length'];_0x4cf81b++){if(_0x218c4c['isAdded']&&'insertion'==_0x5e6bb8[_0x4cf81b]['type']&&_0x218c4c['isAdded']['userId']==_0x5e6bb8[_0x4cf81b]['userId'])return _0x218c4c['isAddSuggestion']=_0x5e6bb8[_0x4cf81b],void delete _0x218c4c['isAdded'];if(!_0x218c4c['isAdded']&&!_0x218c4c['isRemoved']&&'deletion'==_0x5e6bb8[_0x4cf81b]['type'])return void(_0x218c4c['isRemoveSuggestion']=_0x5e6bb8[_0x4cf81b]);}}}['_setDistance'](_0x2fc7fb,_0x3ef14d){let _0x2d94ce=0x0,_0x572d5e=!0x1;const _0x53e447=new Map();for(const _0x15c8b3 of _0x2fc7fb)_0x15c8b3[_0x3ef14d]?_0x572d5e&&(_0x2d94ce++,_0x572d5e=!0x1):(_0x2d94ce++,_0x572d5e=!0x0),_0x53e447['set'](_0x15c8b3['id'],_0x2d94ce);for(let _0x49b07a=0x0;_0x49b07a<_0x2fc7fb['length'];_0x49b07a++){if('isRemoved'==_0x3ef14d&&_0x2fc7fb[_0x49b07a]['isAdded']||'isAdded'==_0x3ef14d&&_0x2fc7fb[_0x49b07a]['isRemoved'])continue;if('text'==_0x2fc7fb[_0x49b07a]['type']){_0x2fc7fb[_0x49b07a]['distance']=0x0;continue;}const _0x3c6a20=_0x53e447['get'](_0x2fc7fb[_0x49b07a]['pairId']),_0x272471=_0x53e447['get'](_0x2fc7fb[_0x49b07a]['id']);_0x2fc7fb[_0x49b07a]['distance']=_0x3c6a20-_0x272471;}}['_getRevisionsRange'](_0x1d6d06,_0x24465e,_0x11f337=!0x1){const _0x5a0ad5=[];let _0x46de8c=this['repository']['getIndex'](_0x1d6d06),_0x3c6331=this['repository']['getIndex'](_0x24465e);for(-0x1==_0x3c6331&&(_0x3c6331=this['repository']['_revisions']['length'],_0x11f337=!0x1);_0x46de8c<_0x3c6331;)_0x5a0ad5['push'](this['repository']['getRevision'](_0x46de8c)),_0x46de8c++;return _0x11f337&&_0x5a0ad5['push'](this['repository']['getRevision'](_0x46de8c)),_0x5a0ad5;}['_threeWayMerge'](_0x13fcf4,_0x34f256,_0x40e006,_0x4e87cd){const _0x483b41=this['editor']['model']['schema'];let _0xad4b01=_0x34f256;for(;_0x13fcf4[_0xad4b01]&&_0x13fcf4[_0xad4b01]['isAdded'];)_0xad4b01++;let _0x1b11d7=_0x4e87cd;for(;_0x40e006[_0x1b11d7]&&_0x40e006[_0x1b11d7]['isRemoved'];)_0x1b11d7++;_0x22f12c(_0x13fcf4,_0x34f256,_0xad4b01),_0x22f12c(_0x40e006,_0x4e87cd,_0x1b11d7);const _0x5b7307=_0x40e006['slice'](_0x4e87cd,_0x1b11d7)['concat'](_0x13fcf4['slice'](_0x34f256,_0xad4b01));return _0x5b7307['sort']((_0x54e9cd,_0x22c002)=>_0x54e9cd['side']!=_0x22c002['side']?_0x54e9cd['side']-_0x22c002['side']:_0x54e9cd['level']!=_0x22c002['level']?_0x54e9cd['level']-_0x22c002['level']:_0x54e9cd['distance']!=_0x22c002['distance']?_0x22c002['distance']-_0x54e9cd['distance']:!!_0x54e9cd['isAdded']!=!!_0x22c002['isAdded']?-0x1==_0x54e9cd['side']||0x0==_0x54e9cd['side']?_0x54e9cd['isAdded']?-0x1:0x1:_0x54e9cd['isAdded']?0x1:-0x1:_0x54e9cd['index']-_0x22c002['index']),{'commonTape':_0x5b7307,'iEnd':_0xad4b01,'jEnd':_0x1b11d7};function _0x22f12c(_0x3a15e4,_0x506223,_0x417db8){let _0x24cd46=-0x1,_0x2b0119=Number['POSITIVE_INFINITY'],_0x347e3d=!0x0;for(let _0x3a1e87=_0x506223;_0x3a1e87<_0x417db8;_0x3a1e87++)if(_0x483b41['isInline'](_0x3a15e4[_0x3a1e87]['item'])||(_0x347e3d=!0x1),_0x3a15e4[_0x3a1e87]['item']['startIndex']<_0x506223&&(_0x24cd46=_0x3a1e87),_0x3a15e4[_0x3a1e87]['item']['endIndex']>=_0x417db8){_0x2b0119=_0x3a1e87;break;}_0x347e3d&&(_0x24cd46=_0x417db8-0x1);for(let _0x224eed=_0x506223;_0x224eed<_0x417db8;_0x224eed++)_0x3a15e4[_0x224eed]['side']=_0x224eed<=_0x24cd46?-0x1:_0x224eed<_0x2b0119?0x0:0x1,_0x3a15e4[_0x224eed]['index']=_0x224eed;let _0x551d60=0x0;for(let _0x9ba607=_0x506223;_0x9ba607<=_0x24cd46;_0x9ba607++)0x0==_0x3a15e4[_0x9ba607]['distance']?_0x3a15e4[_0x9ba607]['level']=_0x551d60:(_0x551d60++,_0x3a15e4[_0x9ba607]['level']=_0x551d60,_0x551d60++);for(let _0x3e809f=_0x506223;_0x3e809f<_0x417db8;_0x3e809f++)0x0==_0x3a15e4[_0x3e809f]['side']&&(_0x3a15e4[_0x3e809f]['level']=_0x551d60);_0x551d60=0x0;for(let _0x1f2b70=_0x417db8-0x1;_0x1f2b70>=_0x2b0119;_0x1f2b70--)0x0==_0x3a15e4[_0x1f2b70]['distance']?_0x3a15e4[_0x1f2b70]['level']=_0x551d60:(_0x551d60--,_0x3a15e4[_0x1f2b70]['level']=_0x551d60,_0x551d60--);}}['_fixObsoleteTags'](_0x1847cc){const _0x87dc93=new Map(),_0x5d924d=this['editor']['model']['schema'];for(let _0x30677d=0x1;_0x30677d<_0x1847cc['length'];_0x30677d++){let _0x59353a,_0x3f94f4,_0x33da73;const _0x379602=_0x1847cc[_0x30677d],_0x5f58de=_0x1847cc[_0x30677d-0x1];if('text'==_0x379602['type'])continue;if(_0x379602['type']!=_0x5f58de['type'])continue;if(!_0x5d924d['isBlock'](_0x5f58de['item'])||_0x5d924d['isLimit'](_0x5f58de['item']))continue;if(!_0x5d924d['isBlock'](_0x379602['item'])||_0x5d924d['isLimit'](_0x379602['item']))continue;if((_0x1847cc[_0x30677d]['isAdded']||_0x1847cc[_0x30677d]['isAddSuggestion'])&&_0x1847cc[_0x30677d-0x1]['isRemoved'])_0x59353a=_0x1847cc[_0x30677d],_0x3f94f4=_0x1847cc[_0x30677d-0x1],_0x33da73=_0x30677d-0x1;else{if(!_0x1847cc[_0x30677d]['isRemoved']||!_0x1847cc[_0x30677d-0x1]['isAdded']&&!_0x1847cc[_0x30677d-0x1]['isAddSuggestion'])continue;_0x59353a=_0x1847cc[_0x30677d-0x1],_0x3f94f4=_0x1847cc[_0x30677d],_0x33da73=_0x30677d;}const _0xa643=_0x59353a['level']==_0x3f94f4['level'],_0x4e3431=Math['abs'](_0x59353a['level'])<Math['abs'](_0x3f94f4['level'])&&0x0==_0x3f94f4['distance'];(_0xa643||_0x4e3431)&&(_0x87dc93['set'](_0x3f94f4['id'],_0x59353a['id']),_0x1847cc['splice'](_0x33da73,0x1),_0x30677d--,_0x59353a['isAdded']=!0x1);}for(let _0x12c3d6=0x0;_0x12c3d6<_0x1847cc['length'];_0x12c3d6++)_0x87dc93['has'](_0x1847cc[_0x12c3d6]['pairId'])&&(_0x1847cc[_0x12c3d6]['pairId']=_0x87dc93['get'](_0x1847cc[_0x12c3d6]['pairId']));}['_removeMissingPairs'](_0x16d27f){const _0x5d0bb6=new Set(_0x16d27f['map'](_0x7062f7=>_0x7062f7['id']));for(let _0x140024=0x0;_0x140024<_0x16d27f['length'];_0x140024++)_0x5d0bb6['has'](_0x16d27f[_0x140024]['pairId'])||0x0==_0x16d27f[_0x140024]['distance']||(_0x16d27f[_0x140024]['isIncorrect']=!0x0);return _0x16d27f['filter'](_0x2b255d=>!_0x2b255d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4cd3e0){const _0x267979=new Set();for(let _0x5a10f7=0x0;_0x5a10f7<_0x4cd3e0['length'];_0x5a10f7++){if(_0x267979['has'](_0x4cd3e0[_0x5a10f7]['id'])&&_0x4cd3e0[_0x5a10f7]['isRemoved']&&(_0x4cd3e0[_0x5a10f7]['isIncorrect']=!0x0),_0x4cd3e0[_0x5a10f7]['isIncorrect'])continue;if(0x0==_0x4cd3e0[_0x5a10f7]['distance'])continue;if('elementStart'!=_0x4cd3e0[_0x5a10f7]['type'])continue;if(null==_0x4cd3e0[_0x5a10f7]['pairId'])continue;let _0x3b6732=_0x5a10f7+0x1,_0x1087c4=0x0;for(;_0x4cd3e0[_0x3b6732]['id']!=_0x4cd3e0[_0x5a10f7]['pairId'];)'elementStart'==_0x4cd3e0[_0x3b6732]['type']?_0x1087c4++:'elementEnd'==_0x4cd3e0[_0x3b6732]['type']&&_0x1087c4--,_0x3b6732++;if(0x0!=_0x1087c4){if(_0x4cd3e0[_0x5a10f7]['isRemoved'])_0x4cd3e0[_0x5a10f7]['isIncorrect']=!0x0;else{for(;_0x3b6732!=_0x5a10f7;)_0x4cd3e0[_0x3b6732]['isRemoved']&&0x0!=_0x4cd3e0[_0x3b6732]['distance']&&(_0x4cd3e0[_0x3b6732]['isIncorrect']=!0x0,_0x267979['add'](_0x4cd3e0[_0x3b6732]['pairId'])),_0x3b6732--;}}}return _0x4cd3e0['filter'](_0x5f58ab=>!_0x5f58ab['isIncorrect']);}['_removeUnsupportedChanges'](_0x2d089d){const _0x4a0232=this['editor']['model']['schema'];for(let _0x2b02ca=0x0;_0x2b02ca<_0x2d089d['length'];_0x2b02ca++){if(!(_0x2d089d[_0x2b02ca]['isAdded']||_0x2d089d[_0x2b02ca]['isAddSuggestion']||_0x2d089d[_0x2b02ca]['isRemoved']||_0x2d089d[_0x2b02ca]['isRemoveSuggestion']))continue;if(0x0==_0x2d089d[_0x2b02ca]['distance'])continue;const _0x5c8205=_0x2d089d[_0x2b02ca]['item'];_0x4a0232['isBlock'](_0x5c8205)||_0x4a0232['isLimit'](_0x5c8205)||(_0x2d089d[_0x2b02ca]['isAdded']&&delete _0x2d089d[_0x2b02ca]['isAdded'],_0x2d089d[_0x2b02ca]['isAddSuggestion']&&delete _0x2d089d[_0x2b02ca]['isAddSuggestion'],_0x2d089d[_0x2b02ca]['isRemoveSuggestion']&&delete _0x2d089d[_0x2b02ca]['isRemoveSuggestion'],_0x2d089d[_0x2b02ca]['isRemoved']&&(_0x2d089d[_0x2b02ca]['isIncorrect']=!0x0));}return _0x2d089d['filter'](_0x370b91=>!_0x370b91['isIncorrect']);}['_makeModelFromTape'](_0x5e891c,_0x2c3c8f,_0x4e32a2){const _0x5dd34a=new _0x367b4a(),_0x166f94=[],_0x2d12b8=new Map(),_0x443ca=this['editor']['model'],_0x24e075=_0x443ca['schema'],_0x2ede9c=[_0x5dd34a],_0xb16654={},_0x587cb9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x52578f=null;const _0x5bc39d=[0x0];for(let _0x413866=0x0;_0x413866<_0x5e891c['length'];_0x413866++)if('elementStart'===_0x5e891c[_0x413866]['type']){_0x5e891c[_0x413866]['previousPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d);const _0x427367=new _0x14dfc7(_0x5e891c[_0x413866]['item']['name'],_0x5e891c[_0x413866]['item']['getAttributes']());_0x2ede9c[0x0]['_appendChild'](_0x427367),_0x5bc39d['push'](0x0),_0x2ede9c['unshift'](_0x427367),_0x5e891c[_0x413866]['nextPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d);}else'elementEnd'===_0x5e891c[_0x413866]['type']?(_0x2ede9c['shift'](),_0x5e891c[_0x413866]['previousPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d),_0x5bc39d['pop'](),_0x5bc39d[_0x5bc39d['length']-0x1]++,_0x5e891c[_0x413866]['nextPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d)):(_0x5e891c[_0x413866]['previousPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d),_0x52578f?_0x52578f['_data']+=_0x5e891c[_0x413866]['item']['data']:_0x52578f=new _0x30226a(_0x5e891c[_0x413866]['item']['data'],_0x5e891c[_0x413866]['item']['getAttributes']()),_0x5e891c[_0x413866+0x1]&&'text'===_0x5e891c[_0x413866+0x1]['type']&&_0x129764(_0x52578f,_0x5e891c[_0x413866+0x1]['item'])||(_0x2ede9c[0x0]['_appendChild'](_0x52578f),_0x52578f=null),_0x5bc39d[_0x5bc39d['length']-0x1]+=_0x5e891c[_0x413866]['item']['offsetSize'],_0x5e891c[_0x413866]['nextPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d));for(let _0x16b730=0x0;_0x16b730<_0x5e891c['length'];_0x16b730++){const _0x9e5fb=_0x5e891c[_0x16b730]['previousPosition'],_0xb9b10d=_0x5e891c[_0x16b730]['nextPosition'];for(const _0x20c4dc of _0x5e891c[_0x16b730]['markersStart'])_0x2d12b8['set'](_0x20c4dc,{'start':_0x9e5fb,'end':null});_0x8a41e2('isRemoveSuggestion',_0x16b730,_0x9e5fb,_0xb9b10d),_0x8a41e2('isAddSuggestion',_0x16b730,_0x9e5fb,_0xb9b10d),_0x8a41e2('isRemoved',_0x16b730,_0x9e5fb,_0xb9b10d),_0x8a41e2('isAdded',_0x16b730,_0x9e5fb,_0xb9b10d);for(const _0x3cc683 of _0x5e891c[_0x16b730]['markersEnd']){const _0x237449=_0x2d12b8['get'](_0x3cc683);_0x237449?_0x237449['end']=_0xb9b10d:_0x2d12b8['set'](_0x3cc683,{'start':_0xb9b10d,'end':_0xb9b10d});}}for(const [_0xe999f2,_0x51d0a8]of _0x2d12b8){const _0x28372f=this['editor']['model']['createRange'](_0x51d0a8['start'],_0x51d0a8['end']);_0x5dd34a['markers']['set'](_0xe999f2,_0x28372f);}return _0x166f94['sort']((_0x1ead89,_0x237400)=>{const _0x495804=_0x5dd34a['markers']['get']('revision:'+_0x1ead89['id']),_0x2a6e6c=_0x5dd34a['markers']['get']('revision:'+_0x237400['id']);return _0x495804['start']['isBefore'](_0x2a6e6c['start'])?-0x1:_0x495804['start']['isAfter'](_0x2a6e6c['start'])?0x1:_0x495804['end']['isBefore'](_0x2a6e6c['end'])?-0x1:_0x495804['end']['isAfter'](_0x2a6e6c['end'])?0x1:'add'===_0x1ead89['type']?-0x1:0x1;}),{'root':_0x5dd34a,'changes':_0x166f94};function _0x8a41e2(_0x873335,_0x1c8138,_0x22a67c,_0x27dceb){const _0x5d89b1=!!_0x5e891c[_0x1c8138][_0x873335],_0x1d8462=_0x5d89b1?_0x5e891c[_0x1c8138][_0x873335]['userId']:null,_0xc398c6=_0x1c8138===_0x5e891c['length']-0x1,_0x34293f=_0x587cb9[_0x873335][0x0],_0x3e6476=_0x24e075['isObject'](_0x5e891c[_0x1c8138]['item']);!_0xb16654[_0x873335]&&_0x5d89b1?_0xb16654[_0x873335]={'start':_0x22a67c,'tapeItem':_0x5e891c[_0x1c8138],'userId':_0x1d8462,'type':_0x873335}:_0xb16654[_0x873335]&&!_0x5d89b1?(_0xb16654[_0x873335]['end']=_0x22a67c,_0x57f40e(_0xb16654[_0x873335]),_0xb16654[_0x873335]=null):_0xb16654[_0x873335]&&_0x5d89b1&&_0xb16654[_0x873335]['userId']!==_0x1d8462&&(_0xb16654[_0x873335]['end']=_0x22a67c,_0x34293f&&_0x34293f['userId']===_0xb16654[_0x873335]['userId']||_0x57f40e(_0xb16654[_0x873335]),_0xb16654[_0x873335]={'start':_0x22a67c,'tapeItem':_0x5e891c[_0x1c8138],'userId':_0x1d8462,'type':_0x873335}),_0xb16654[_0x873335]&&_0x3e6476&&('elementStart'!==_0x5e891c[_0x1c8138]['type']||_0x34293f&&_0x34293f['userId']===_0x1d8462||_0x587cb9[_0x873335]['unshift']({'userId':_0x1d8462,'object':_0x5e891c[_0x1c8138]['item'],'change':_0xb16654[_0x873335]}),'elementEnd'===_0x5e891c[_0x1c8138]['type']&&_0x34293f&&_0x34293f['object']===_0x5e891c[_0x1c8138]['item']&&(_0x587cb9[_0x873335]['shift'](),_0xb16654[_0x873335]=_0x34293f['change'])),_0xb16654[_0x873335]&&_0xc398c6&&(_0xb16654[_0x873335]['end']=_0x27dceb,_0x57f40e(_0xb16654[_0x873335]),_0xb16654[_0x873335]=null);}function _0x57f40e({start:_0x2e36d8,end:_0x3de638,tapeItem:_0xd119ec,userId:_0x51a044,type:_0x29e15a}){const _0x581bb7=_0xd119ec['item'],_0x5d1708=_0x443ca['schema']['isBlock'](_0x581bb7)&&!_0x443ca['schema']['isLimit'](_0x581bb7),_0x67cb3a=_0x2e36d8['nodeAfter']==_0x3de638['parent']&&_0x3de638['isAtStart'];if(_0x5d1708&&_0x67cb3a)return;const _0x11f660=_0x443ca['createRange'](_0x2e36d8,_0x3de638),_0x5f504c=_0x2c3c8f['get'](_0x51a044),_0x268ff8=new G({'author':_0x5f504c,'type':'isAdded'==_0x29e15a||'isAddSuggestion'==_0x29e15a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x29e15a||'isRemoveSuggestion'==_0x29e15a},'createdAt':new Date(),'rootName':_0x4e32a2});_0x166f94['push'](_0x268ff8),_0x5dd34a['markers']['set']('revision:'+_0x268ff8['id'],_0x11f660);}function _0x129764(_0x1d95f3,_0x4e5c15){const _0xad703=_0x1d95f3['getAttributes'](),_0x5c0787=_0x4e5c15['getAttributes']();for(const _0x3d29cd of _0xad703){if(_0x3d29cd[0x1]!==_0x4e5c15['getAttribute'](_0x3d29cd[0x0]))return!0x1;_0x5c0787['next']();}return _0x5c0787['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x365a55=>{const _0x1e0ae1=_0x365a55['markerName']['split'](':')[0x1],_0x46a5de=this['_getChangeFromId'](_0x1e0ae1);if(!_0x46a5de)return null;const _0x2714ac='add'==_0x46a5de['type']?'insertion':'deletion',_0x5cc179=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2714ac];return _0x46a5de['data']['isSuggestion']&&_0x5cc179['push']('ck-suggestion-marker-'+_0x2714ac+'-new'),this['activeChange']==_0x46a5de&&_0x5cc179['push']('ck-suggestion-marker--active'),{'classes':_0x5cc179,'attributes':{'data-change-id':_0x1e0ae1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4bdd0f=>{_0x4bdd0f['on']('element:pre',(_0x2fe8df,_0x4cf307,_0xaa6573)=>{const _0x535a32=_0x4cf307['viewItem']['getChild'](0x0);if(!_0x535a32||!_0x535a32['is']('element','code'))return;if(!_0xaa6573['consumable']['consume'](_0x535a32,{'attributes':['vid_start','vid_end']}))return;const _0x11ffde=_0x4cf307['modelRange']['start']['nodeAfter'];_0xaa6573['writer']['setAttribute']('vid_start',_0x535a32['getAttribute']('vid_start'),_0x11ffde),_0xaa6573['writer']['setAttribute']('vid_end',_0x535a32['getAttribute']('vid_end'),_0x11ffde);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1b1e56=>{_0x1b1e56['on']('element',(_0xc08052,_0x4b5c24,_0x5d6a22)=>{if(!_0x5d6a22['consumable']['consume'](_0x4b5c24['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4b5c24['modelRange']['isCollapsed'])return;const _0x30fe2=_0x4b5c24['modelRange']['start']['nodeAfter'];_0x30fe2['hasAttribute']('vid_start')||_0x30fe2['hasAttribute']('vid')||(_0x5d6a22['writer']['setAttribute']('vid_start',_0x4b5c24['viewItem']['getAttribute']('vid_start'),_0x30fe2),_0x5d6a22['writer']['setAttribute']('vid_end',_0x4b5c24['viewItem']['getAttribute']('vid_end'),_0x30fe2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5b230d=>_0x5b230d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x189665,[,_0x326c1c])=>{['vid_start','vid_end','vid']['includes'](_0x326c1c)&&(_0x189665['return']=!0x0,_0x189665['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1bf369=>{_0x1bf369['on']('attribute:vid',(_0x24f008,_0x182118,_0x38421f)=>{if('\x20'!=_0x182118['item']['data']||_0x182118['item']['parent']['maxOffset']>0x1)return;if(!_0x38421f['consumable']['consume'](_0x182118['item'],_0x24f008['name']))return;const _0x3366f3=_0x38421f['writer'],_0xf2dfee=_0x38421f['mapper']['toViewRange'](_0x182118['range']);_0x3366f3['wrap'](_0xf2dfee,_0x3366f3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4028b8){const _0xcb4c7a=_0x4028b8['plugins']['get']('RevisionViewer');return(_0x5dfd9f,_0x3cd92f,_0x1310fb)=>{const _0x3117d8=_0x3cd92f['markerName']['split'](':')[0x1],_0x21c61e=_0xcb4c7a['_getChangeFromId'](_0x3117d8);if(!_0x21c61e)return null;const _0x2ecc28='add'==_0x21c61e['type']?'split':'merge';if(!_0x1310fb['consumable']['test'](_0x3cd92f['markerRange'],_0x5dfd9f['name']))return;const _0x12996f=_0x3cd92f['markerRange']['getWalker'](),_0xbfbc35=_0x3cd92f['markerRange']['start'],_0x2105fc=_0x4028b8['model']['schema'];let _0x2b2be7=null,_0x217005=null,_0x358b9b=!0x1,_0x59b12f=!0x1;for(const _0x2c4ac9 of _0x12996f){const _0x4fc3a1=_0x2c4ac9['item'];_0x358b9b=_0x358b9b||_0x2105fc['isContent'](_0x4fc3a1);const _0x4ca550=_0x1310fb['mapper']['toViewElement'](_0x4fc3a1);if(_0x4ca550&&_0x4ca550['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c4ac9['type']&&(_0x2105fc['isBlock'](_0x4fc3a1)&&!_0x2105fc['isLimit'](_0x4fc3a1)&&(_0x4fc3a1['nextSibling']||_0xbfbc35['isAtEnd']?_0x2b2be7&&_0x2b2be7['parent']==_0x4fc3a1||(_0x2b2be7=_0x4fc3a1,_0x223786(_0x2c4ac9['previousPosition']),_0x59b12f=!0x0):_0x217005=_0x217005||_0x2c4ac9['previousPosition']));}function _0x223786(_0x452e74){const _0x6e0c09=_0x1310fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ecc28}),_0x50d88c=_0x1310fb['mapper']['toViewPosition'](_0x452e74);_0x21c61e['data']['isSuggestion']&&_0x1310fb['writer']['addClass']('ck-suggestion-marker-'+_0x2ecc28+'-new',_0x6e0c09),_0xcb4c7a['activeChange']==_0x21c61e&&_0x1310fb['writer']['addClass']('ck-suggestion-marker--active',_0x6e0c09),_0x1310fb['writer']['insert'](_0x50d88c,_0x6e0c09),_0x1310fb['mapper']['bindElementToMarker'](_0x6e0c09,_0x3cd92f['markerName']);}_0x358b9b||_0x59b12f||!_0x217005||_0x223786(_0x217005);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x442171,_0x4f0ae8,_0x2f0629)=>{const _0x1d5e51=_0x2f0629['mapper']['markerNameToElements'](_0x4f0ae8['markerName']);if(_0x1d5e51){for(const _0xf9aca3 of _0x1d5e51)(_0xf9aca3['hasClass']('ck-suggestion-marker-split')||_0xf9aca3['hasClass']('ck-suggestion-marker-merge'))&&(_0x2f0629['mapper']['unbindElementFromMarkerName'](_0xf9aca3,_0x4f0ae8['markerName']),_0x2f0629['writer']['remove'](_0xf9aca3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x54ba57,_0x5da6d7,_0x4df24a)=>{const _0x33ac99=_0x5da6d7['markerName']['split'](':')[0x1],_0x21b6e9=this['_getChangeFromId'](_0x33ac99);if(!_0x21b6e9)return null;const _0x459726='add'==_0x21b6e9['type']?'split':'merge';if(_0x4df24a['consumable']['test'](_0x5da6d7['markerRange'],_0x54ba57['name']))for(const _0x26ecf1 of _0x5da6d7['markerRange']['getItems']()){if(!_0x26ecf1['is']('element','softBreak'))continue;const _0x4e6732=_0x4df24a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x459726}),_0x27ead7=_0x4df24a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x26ecf1));_0x21b6e9['data']['isSuggestion']&&_0x4df24a['writer']['addClass']('ck-suggestion-marker-'+_0x459726+'-new',_0x4e6732),this['activeChange']==_0x21b6e9&&_0x4df24a['writer']['addClass']('ck-suggestion-marker--active',_0x4e6732),_0x4df24a['writer']['insert'](_0x27ead7,_0x4e6732),_0x4df24a['mapper']['bindElementToMarker'](_0x4e6732,_0x5da6d7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3f375b=>{for(const _0x3eced6 of this['editor']['model']['document']['getRootNames']()){const _0x459325=this['editor']['model']['document']['getRoot'](_0x3eced6),_0xa11b09=this['editor']['editing']['view']['document']['getRoot'](_0x3eced6);if(_0xa11b09){const _0x1b9f8a=_0x459325['getAttribute']('revisionHistoryAttachChange');if(_0x3f375b['removeAttribute']('data-change-id',_0xa11b09),_0x3f375b['removeClass']('ck-revision-history-root-add',_0xa11b09),_0x3f375b['removeClass']('ck-revision-history-root-remove',_0xa11b09),_0x3f375b['removeClass']('ck-revision-history-root--active',_0xa11b09),_0x1b9f8a){const _0xe6f020=this['_getChangeFromId'](_0x1b9f8a);if(!_0xe6f020)return null;_0x3f375b['setAttribute']('data-change-id',_0x1b9f8a,_0xa11b09),_0x3f375b['addClass']('ck-revision-history-root-'+_0xe6f020['type'],_0xa11b09),this['activeChange']==_0xe6f020&&_0x3f375b['addClass']('ck-revision-history-root--active',_0xa11b09);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3267ff=>'revision-comment:'+_0x3267ff,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x102c6f=>'revision-suggestion:'+_0x102c6f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x22b30e=>({'name':'suggestion:'+_0x22b30e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x33a441=>{const _0xfc2a60=_0x33a441['markerName']['split'](':')[0x1];return'insertion'!=_0xfc2a60&&'deletion'!=_0xfc2a60?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xfc2a60]};}}),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',(_0x404b3b,_0x34efb3,_0x59a552)=>{const _0x19faa6=_0x59a552['mapper']['markerNameToElements'](_0x34efb3['markerName']);if(_0x19faa6){for(const _0x292672 of _0x19faa6)_0x292672['is']('uiElement')&&(_0x59a552['mapper']['unbindElementFromMarkerName'](_0x292672,_0x34efb3['markerName']),_0x59a552['writer']['remove'](_0x292672));}},{'priority':'high'});}['_getChangeFromId'](_0x6d6c6f){return this['_changeIdToChange']['get'](_0x6d6c6f);}['_getViewForChange'](_0x3bf3fb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3bf3fb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x31d9da,_0x2816a2,_0x5534e4,_0x3baeb0)=>{_0x3baeb0&&this['_balloon']['remove'](_0x3baeb0),_0x5534e4&&(this['_balloon']['add']({'view':_0x5534e4,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xbf3a94=this['editor']['editing'],_0x487630=this['_getChangeFromId'](_0x5534e4['changeId']);let _0xc753ea;if(_0x487630['data']['isOnRoot']){const _0x3869e4=_0xbf3a94['view']['getDomRoot'](_0x487630['rootName']);_0xc753ea=Array['from'](_0x3869e4['getClientRects']());}else{const _0x2dabd6=this['editor']['model']['markers']['get']('revision:'+_0x5534e4['changeId']);_0xc753ea=Array['from'](_0xbf3a94['mapper']['markerNameToElements'](_0x2dabd6['name']))['map'](_0x2b37b0=>_0xbf3a94['view']['domConverter']['mapViewToDom'](_0x2b37b0))['map'](_0x3f81fa=>Array['from'](_0x3f81fa['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc753ea[0x0];return _0xc753ea['find'](_0x1222af=>_0x1222af['top']-0x3<=this['_activeViewTarget']['y']&&_0x1222af['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1222af['left']-0x3<=this['_activeViewTarget']['x']&&_0x1222af['right']+0x3>=this['_activeViewTarget']['x'])||_0xc753ea[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x574b52,_0x369a3c,_0x4d4fc4,_0xbb4cd9)=>{this['activeView']=_0x4d4fc4?this['_getViewForChange'](_0x4d4fc4):null,this['editor']['model']['change'](()=>{const _0xc13d65=this['editor']['editing'];_0xbb4cd9&&(_0xbb4cd9['data']['isOnRoot']?_0xc13d65['view']['change'](_0x954868=>{_0x954868['removeClass']('ck-revision-history-root--active',_0xc13d65['view']['document']['getRoot'](_0xbb4cd9['rootName']));}):_0xc13d65['reconvertMarker']('revision:'+_0xbb4cd9['id'])),_0x4d4fc4&&(_0x4d4fc4['data']['isOnRoot']?_0xc13d65['view']['change'](_0x19e223=>{_0x19e223['addClass']('ck-revision-history-root--active',_0xc13d65['view']['document']['getRoot'](_0x4d4fc4['rootName']));}):_0xc13d65['reconvertMarker']('revision:'+_0x4d4fc4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x366986,_0x5cb182)=>{if(this['activeChange'])return;const _0x56204b=this['_findChangeIdFromDomTarget'](_0x5cb182['target']),_0x27655e=this['_changeIdToChange']['get'](_0x56204b);_0x27655e?(this['_activeViewTarget']={'x':_0x5cb182['domEvent']['x'],'y':_0x5cb182['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x27655e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1a7497,_0x3dab4c)=>{const _0x3eb8eb=this['_findChangeIdFromDomTarget'](_0x3dab4c['target']),_0x25a4e5=this['_changeIdToChange']['get'](_0x3eb8eb);_0x25a4e5?(this['_activeViewTarget']={'x':_0x3dab4c['domEvent']['x'],'y':_0x3dab4c['domEvent']['y']},_0x25a4e5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25a4e5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2980f2){do{const _0x3f5992=_0x2980f2['getAttribute']('data-change-id');if(_0x3f5992)return _0x3f5992;_0x2980f2=_0x2980f2['parent'];}while(_0x2980f2);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xff7a20=>{for(const _0xc4ead4 of this['editor']['model']['markers'])_0xff7a20['removeMarker'](_0xc4ead4);});}}function Q(_0x1e81ce,_0xe33459){return(_0x115d15,_0x29fd9e,_0x2bd52a)=>{if(!_0x2bd52a['consumable']['test'](_0x29fd9e['markerRange'],_0x115d15['name']))return;const _0x5c3f4e=_0x29fd9e['markerRange']['getWalker'](),_0x8ba006=_0x29fd9e['markerRange']['start'],_0xf1cb16=_0x1e81ce['model']['schema'];let _0x1d8914=null,_0x29d15c=null,_0x292de3=!0x1,_0x214455=!0x1;for(const _0x3ca02e of _0x5c3f4e){const _0x2013b6=_0x3ca02e['item'];_0x292de3=_0x292de3||_0xf1cb16['isContent'](_0x2013b6);const _0x405fca=_0x2bd52a['mapper']['toViewElement'](_0x2013b6);if(_0x405fca&&_0x405fca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ca02e['type']&&(_0xf1cb16['isBlock'](_0x2013b6)&&!_0xf1cb16['isLimit'](_0x2013b6)&&(_0x2013b6['nextSibling']||_0x8ba006['isAtEnd']?_0x1d8914&&_0x1d8914['parent']==_0x2013b6||(_0x1d8914=_0x2013b6,_0x4e12b2(_0x3ca02e['previousPosition']),_0x214455=!0x0):_0x29d15c=_0x29d15c||_0x3ca02e['previousPosition']));}function _0x4e12b2(_0x565a56){const _0x5f0c87=_0x2bd52a['mapper']['toViewPosition'](_0x565a56),_0x36211a=_0x2bd52a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xe33459});_0x2bd52a['writer']['insert'](_0x5f0c87,_0x36211a),_0x2bd52a['mapper']['bindElementToMarker'](_0x36211a,_0x29fd9e['markerName']);}_0x292de3||_0x214455||!_0x29d15c||_0x4e12b2(_0x29d15c);};}class nt extends _0x31431b{constructor(_0x432bec){super(_0x432bec);const _0xdd9e40=_0x432bec['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0xdd9e40,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xdd9e40,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2cc75f=this['editor'],_0x1a7f95=_0x2cc75f['plugins']['get'](l),_0x553bfa=_0x1a7f95['isReady']?_0x1a7f95['diff']['newRevisionId']:null;_0x2cc75f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x553bfa);}['refresh'](){const {isReady:_0x5a5b2e,isEnabled:_0x539676,repository:_0x3cd3ee,diff:_0x17ff80}=this['editor']['plugins']['get'](l),_0x92ab91=_0x17ff80&&_0x3cd3ee['getLaterVisibleRevision'](_0x17ff80['newRevisionId']);this['isEnabled']=_0x5a5b2e&&_0x539676&&Boolean(_0x92ab91);}}class rt extends _0x31431b{['_step'];constructor(_0x1ad2bd,{direction:_0x3b5d91}){super(_0x1ad2bd);const _0x306bb7=_0x1ad2bd['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3b5d91?0x1:-0x1,this['listenTo'](_0x306bb7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x306bb7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x306bb7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x271354=this['editor'],_0x48591d=_0x271354['plugins']['get'](l),{isNavigationMode:_0x21ba44,currentChangeNumber:_0x48d74f}=_0x48591d;let _0x16b509;if(_0x48591d['activeChange']=_0x21ba44?_0x48591d['diff']['changes']['get'](_0x48d74f+this['_step']):_0x48591d['diff']['changes']['first'],_0x48591d['activeChange']['data']['isOnRoot'])_0x16b509=_0x271354['editing']['view']['getDomRoot'](_0x48591d['activeChange']['rootName']);else{const _0x4320cf=_0x271354['model']['markers']['get']('revision:'+_0x48591d['activeChange']['id']);_0x16b509=_0x291ee7(_0x271354['editing'],_0x4320cf);}_0x52ec3f({'target':_0x16b509,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xf68630,currentChangeNumber:_0x5c7dfd,numberOfChanges:_0x3e2022,isReady:_0xc277d0,isEnabled:_0x2a3f4e}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x2a3f4e&&_0xc277d0&&_0x3e2022)&&(!_0xf68630||(0x1===this['_step']?_0x5c7dfd<_0x3e2022-0x1:_0x5c7dfd>0x0));}}class Ri extends _0x47987e{constructor(_0x4a0c96){super(_0x4a0c96);const _0x436c96=this['bindTemplate'],_0x409de0=new _0x18e75a(_0x4a0c96),_0x17f3b3=new _0x18e75a(_0x4a0c96);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',(_0x39bbea,_0x57529f)=>_0x39bbea&&_0x57529f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1bf5c3,_0x3c0117,_0xc28eb4,_0x300da8)=>{if(!_0x1bf5c3)return R(_0x4a0c96,'Loading...');if(!_0xc28eb4)return R(_0x4a0c96,'No\x20changes');const _0xcf37f9=R(_0x4a0c96,'NUMBER_OF_CHANGES',_0xc28eb4);return _0x300da8?R(_0x4a0c96,'X_OF_Y_CHANGES',[_0x3c0117+0x1,_0xc28eb4]):_0xcf37f9;}),_0x409de0['set']({'label':R(_0x4a0c96,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5a82ac}),_0x17f3b3['set']({'label':R(_0x4a0c96,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x38eb4d}),_0x409de0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x17f3b3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x409de0['on']('execute',()=>this['fire']('execute','backward')),_0x17f3b3['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',_0x436c96['if']('_isStatusLabelVisible','ck-hidden',_0x53e4b5=>!_0x53e4b5)]},'children':[{'text':_0x436c96['to']('isNavigationMode',_0x449ba5=>_0x449ba5?R(_0x4a0c96,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4a0c96,'Total')+':\x20')}]},{'text':_0x436c96['to']('_statusText')}]},new _0x28081e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x409de0,_0x17f3b3]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x594d24{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5b8bd7=this['editor']['editing']['view'];_0x5b8bd7['change'](_0x130dd0=>{for(const _0x1a1179 of _0x5b8bd7['document']['roots'])_0x130dd0['addClass'](ge,_0x1a1179);});}['hide'](){const _0x582771=this['editor']['editing']['view'];_0x582771['change'](_0x561fd7=>{for(const _0x52baa0 of _0x582771['document']['roots'])_0x561fd7['removeClass'](ge,_0x52baa0);});}}class u extends _0x594d24{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x1f0569=this['editor'],_0x3e1e81=_0x1f0569['plugins']['get'](l),_0x513558=_0x1f0569['plugins']['get'](ji);_0x1f0569['ui']['componentFactory']['add']('exitToEditing',_0x25841a=>{const _0x376e9a=new _0x18e75a(_0x25841a);return _0x376e9a['set']({'label':R(_0x25841a,'Back\x20to\x20editing'),'icon':_0x1995d5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x376e9a,'execute',()=>{_0x1f0569['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x376e9a;}),_0x1f0569['ui']['componentFactory']['add']('restoreRevision',_0x2432fe=>{const _0x4a4ebf=new _0x18e75a(_0x2432fe);return _0x4a4ebf['set']({'label':R(_0x2432fe,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4a4ebf['bind']('isEnabled')['to'](_0x1f0569['commands']['get']('restoreRevision')),this['listenTo'](_0x4a4ebf,'execute',()=>_0x1f0569['execute']('restoreRevision')),_0x4a4ebf;}),_0x1f0569['ui']['componentFactory']['add']('changesNavigation',_0x568cb9=>{const _0x176891=new Ri(_0x568cb9),_0x14933b=_0x1f0569['commands']['get']('showPreviousChange'),_0x5adf40=_0x1f0569['commands']['get']('showNextChange');return _0x176891['bind']('isBackwardNavigationEnabled')['to'](_0x14933b,'isEnabled'),_0x176891['bind']('isForwardNavigationEnabled')['to'](_0x5adf40,'isEnabled'),_0x176891['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3e1e81),this['listenTo'](_0x176891,'execute',(_0x399ea6,_0x1482cb)=>{_0x1f0569['execute']('forward'===_0x1482cb?'showNextChange':'showPreviousChange');}),_0x176891;}),_0x513558['show'](),_0x3e1e81['on']('change:isReady',(_0x4a8ce8,_0x34e017,_0x3025fa)=>{_0x3025fa?_0x513558['hide']():_0x513558['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x326aef,_0x152a06){super(_0x326aef,_0x152a06);const _0x531364=this['bindTemplate'];this['set']({'label':R(_0x326aef,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x326aef,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x531364['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 _0x59aa65=this['fieldView']['element'];this['_tooltipString']=_0x59aa65['scrollWidth']>_0x59aa65['clientWidth']&&_0x59aa65['value']||'';}}class ni extends _0x47987e{constructor(_0x13e74e,_0x49f5b7,_0x348f37){super(_0x13e74e);const _0x3d69b9=new _0x26b0bd();_0x3d69b9['set']({'content':_0x14b518,'viewBox':'0\x200\x2011\x2010'});const _0x1d5ce5=['ck','ck-revision-history-sidebar__revision-author'];_0x348f37&&_0x1d5ce5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4d9bbe=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13e74e,_0x348f37?'Revision\x20creator':'Revision\x20author')},'children':[_0x3d69b9,_0x49f5b7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1d5ce5},'children':_0x4d9bbe});}}function ci(_0xaa8643,_0x55dfb8){const _0x54ccf=_0xaa8643['bindTemplate'],_0x2518cc=_0xaa8643['locale'],_0xee9198=_0x514a35(_0x2518cc);_0xee9198['panelPosition']='sw';const _0x361162=function(_0x13f312,_0x1f5de4){const _0xb96a5c=function(_0x160757,_0x523227){const _0x4b4571=_0x160757['locale'],_0x56a557={'Compare\x20against\x20selected':R(_0x4b4571,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4b4571,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4b4571,'Restore\x20this\x20revision')};return _0x523227['map'](_0x5e1974=>{const _0xd3e5a8=_0x56a557[_0x5e1974['name']];return _0xd3e5a8&&_0xd3e5a8!==_0x5e1974['name']&&(_0x5e1974['name']=_0xd3e5a8),_0x5e1974;});}(_0x13f312,_0x1f5de4),_0x213265=new _0x2d4b38();for(const _0xf662e8 of _0xb96a5c){const _0x4abcb1={'type':'button','model':new to({'label':_0xf662e8['name'],'class':_0xf662e8['class'],'withText':!0x0,'role':'menuitem','_action':_0xf662e8['action']})};_0x4abcb1['model']['bind']('isEnabled')['to'](_0x13f312,'isActionsDropdownOpen',_0x382e9c=>'function'!=typeof _0xf662e8['isEnabled']||(!_0x382e9c||_0xf662e8['isEnabled'](_0x13f312))),_0x213265['add'](_0x4abcb1);}return _0x213265;}(_0xaa8643,_0x55dfb8);return _0xaa8643['bind']('isActionsDropdownOpen')['to'](_0xee9198,'isOpen'),_0xee9198['buttonView']['set']({'label':R(_0x2518cc,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xf8bf85}),_0xee9198['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x54ccf['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x54ccf['to'](_0x17c53a=>_0x17c53a['stopPropagation']())}}),_0xee9198['on']('execute',_0x337906=>{_0xaa8643['isReady']&&'function'==typeof _0x337906['source']['_action']&&_0x337906['source']['_action'](_0xaa8643);}),_0x1e3dad(_0xee9198,_0x361162,{'role':'menu'}),_0xee9198['listenTo'](_0xaa8643,'change:isActionsDropdownOpen',(_0x4b0aee,_0x1d0571,_0xe816fa)=>{if(_0xe816fa)for(const _0x3e9f51 of _0xee9198['listView']['items']){const _0x2c4398=_0x3e9f51['children']['first'],_0x18fb70=_0x55dfb8['find'](_0x5796a2=>_0x5796a2['action']===_0x2c4398['_action'])['isVisible'];_0x3e9f51['isVisible']=void 0x0===_0x18fb70||_0x18fb70(_0xaa8643);}}),_0xee9198;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x4962d1,uid as _0xd8dd1b,Collection as _0xb3ffaf,logWarning as _0x23c396,FocusTracker as _0x3b6d8e,KeystrokeHandler as _0x174b53,scrollViewportToShowTarget as _0x10a95c,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x87a7b4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x42d2a8,set as _0x5bec5c,unset as _0x2d0ab1,isEqual as _0x555e19}from'es-toolkit/compat';import{Plugin as _0x58c668,PendingActions as _0x1038b0,Command as _0x54af08,ElementApiMixin as _0x2a9622,Editor as _0x31cec4}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x55c9a7,getMarkerDomElement as _0xbb88e9,ConfirmMixin as _0x31ef6e,sanitizeEditorConfig as _0x5dd42b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x213265,ViewAttributeElement as _0x5c1e01,ViewEmptyElement as _0x12de80,ViewRawElement as _0x4cd107,ViewUIElement as _0xb2e6b8,ViewDocumentFragment as _0x5d7884,ViewText as _0x328d97,ViewElement as _0x3568f2,ModelElement as _0x7cb355,ModelRange as _0x550e8b,ModelPosition as _0x5e3e53,ModelDocumentFragment as _0x5c4cfd,ModelText as _0x56fb43}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x2f30b1,IconChevronUp as _0x3677e3,IconChevronDown as _0x2f3961,IconUndo as _0x2ce0a5,IconUser as _0x43f832,IconThreeVerticalDots as _0x81e4f5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x3d85bd,View as _0x42a0a3,submitHandler as _0x3bd2b4,LabeledFieldView as ti,createLabeledInputText as _0x15a4dd,createDropdown as _0x495954,ListView as _0x3ca227,ListItemView as _0x350556,ButtonView as _0x3a4504,MenuBarMenuView as _0x56ff07,MenuBarMenuListView as _0x21a5f9,MenuBarMenuListItemView as _0x53662c,MenuBarMenuListItemButtonView as _0x1c5b30,ContextualBalloon as _0x58fe65,ToolbarSeparatorView as _0x356867,IconView as _0x4dd300,addListToDropdown as _0x51e72a,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x4de6bf,StickyPanelView as _0x1dfbd3,ToolbarView as _0x52724f,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xd7d606}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4962d1(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x290f61){super(),this['id']=_0x290f61['id']||_0xd8dd1b(),this['creator']=_0x290f61['creator']||null,this['authors']=_0x290f61['authors']||[],this['diffData']=_0x290f61['diffData']||null,this['toVersion']=_0x290f61['toVersion']||0x0,this['fromVersion']=_0x290f61['fromVersion']||0x0,this['set']('name',_0x290f61['name']||''),this['set']('createdAt',_0x290f61['createdAt']||new Date()),this['set']('attributes',_0x290f61['attributes']||{});}['setName'](_0x208e0f){this['_update']({'name':_0x208e0f});}['setAttribute'](_0x189357,_0x2f5694){const _0x4a997a=_0x42d2a8(this['attributes']);_0x5bec5c(_0x4a997a,_0x189357,_0x2f5694),this['_update']({'attributes':_0x4a997a});}['removeAttribute'](_0x38e2cf){const _0x4fe962=_0x42d2a8(this['attributes']);_0x2d0ab1(_0x4fe962,_0x38e2cf),this['_update']({'attributes':_0x4fe962});}['_update'](_0x40fb47,_0x92907e=!0x1){let _0x388f80=!0x1;const _0x4c9108={'id':this['id']},_0x4b43c8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x28c255 of _0x4b43c8){const _0x7167f9=_0x40fb47[_0x28c255];void 0x0!==_0x7167f9&&_0x7167f9!==this[_0x28c255]&&(this[_0x28c255]=_0x7167f9,_0x4c9108[_0x28c255]=_0x7167f9,_0x388f80=!0x0);}_0x388f80&&(_0x4c9108['authors']&&(_0x4c9108['authorsIds']=_0x4c9108['authors']['map'](_0x1029eb=>_0x1029eb['id']),delete _0x4c9108['authors']),this['fire']('_update',_0x4c9108,_0x92907e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x12f4b3=>_0x12f4b3['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x58c668{['_revisions'];static get['requires'](){return[_0x55c9a7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4794d2){super(_0x4794d2),this['_revisions']=new _0xb3ffaf();}['afterInit'](){!async function(_0x5b668b){const _0x2f7125=_0x40ff6a([0x73,0x6c,0x67,0x43,0x4e,0x30,0x6f,0x53,0x46,0x64,0x68,0x57,0x69,0x4a,0x42,0x70,0x56,0x6a,0x72,0x51,0x4b,0x47,0x65,0x6e,0x71,0x59,0x74,0x52,0x7a,0x66,0x49,0x44,0x50,0x36,0x63,0x4c,0x55,0x41,0x37,0x4d,0x6d,0x38,0x62,0x33,0x58,0x34,0x45,0x54,0x31,0x78,0x39,0x76,0x32,0x35,0x6b,0x61,0x48,0x4f,0x79,0x5a,0x75,0x77]),_0x27a6a2=0xeb829,_0x59c65f=0x102f2e9e,_0x3af5fd=0x1028421e^_0x59c65f,_0x2f395e=window[_0x40ff6a([0x44,0x61,0x74,0x65])][_0x40ff6a([0x6e,0x6f,0x77])](),_0x763a72=_0x5b668b[_0x40ff6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b542e=new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2dc3=>{_0x763a72[_0x40ff6a([0x6f,0x6e,0x63,0x65])](_0x40ff6a([0x72,0x65,0x61,0x64,0x79]),_0x5c2dc3);}),_0x725cec={[_0x40ff6a([0x6b,0x74,0x79])]:_0x40ff6a([0x45,0x43]),[_0x40ff6a([0x75,0x73,0x65])]:_0x40ff6a([0x73,0x69,0x67]),[_0x40ff6a([0x63,0x72,0x76])]:_0x40ff6a([0x50,0x2d,0x32,0x35,0x36]),[_0x40ff6a([0x78])]:_0x40ff6a([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]),[_0x40ff6a([0x79])]:_0x40ff6a([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]),[_0x40ff6a([0x61,0x6c,0x67])]:_0x40ff6a([0x45,0x53,0x32,0x35,0x36])},_0x5d0506=_0x763a72[_0x40ff6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40ff6a([0x67,0x65,0x74])](_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c0178(){let _0x2b25ed,_0x573a8e=null,_0xba5933=null;try{if(_0x5d0506==_0x40ff6a([0x47,0x50,0x4c]))return _0x40ff6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b25ed=_0x3e8a01(),!_0x2b25ed)return _0x40ff6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b25ed[_0x40ff6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xba5933=_0x15b2d0(_0x2b25ed[_0x40ff6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b25ed[_0x40ff6a([0x6a,0x74,0x69])])),await _0x5f3f61()?_0x4c5cab()?_0x632a59()?_0x40ff6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57b2dd()?(_0x2b25ed[_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ff6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x573a8e=_0x8c5f0e(_0x40ff6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b25ed[_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ff6a([0x74,0x72,0x69,0x61,0x6c])&&(_0x573a8e=_0x8c5f0e(_0x40ff6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56cc22()):_0x40ff6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40ff6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40ff6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40ff6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x632a59(){const _0x1fd76c=[_0x40ff6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40ff6a([0x74,0x72,0x69,0x61,0x6c])][_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b25ed[_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f395e/0x3e8:0xe10*_0x3af5fd;return _0x2b25ed[_0x40ff6a([0x65,0x78,0x70])]<_0x1fd76c;}function _0x4c5cab(){const _0x40ab5b=_0x2b25ed[_0x40ff6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x40ab5b)return!0x1;if(_0x40ab5b[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ff6a([0x2a])))return!0x0;if(_0x40ab5b[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ff6a([0x52,0x48])))return!0x0;if(_0x40ab5b[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ff6a([0x52,0x52,0x48]))){if(_0x4c704c())return!0x0;if(_0x297284()||_0x5285fb())return!0x0;}return!0x1;}function _0x57b2dd(){const _0x1593c4=_0x2b25ed[_0x40ff6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1593c4||0x0==_0x1593c4[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24cd92}=new URL(window[_0x40ff6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1593c4[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24cd92))return!0x0;const _0x104ab7=_0x24cd92[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])](_0x40ff6a([0x2e]));return _0x1593c4[_0x40ff6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fd945=>_0x4fd945[_0x40ff6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ff6a([0x2a])))[_0x40ff6a([0x6d,0x61,0x70])](_0x4027be=>_0x4027be[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])](_0x40ff6a([0x2e])))[_0x40ff6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ab815=>_0x1ab815[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x104ab7[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ff6a([0x6d,0x61,0x70])](_0xb915ab=>Array(_0x104ab7[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb915ab[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ff6a([0x66,0x69,0x6c,0x6c])](_0xb915ab[0x0]===_0x40ff6a([0x2a])?_0x40ff6a([0x2a]):'')[_0x40ff6a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb915ab))[_0x40ff6a([0x73,0x6f,0x6d,0x65])](_0x5cbd75=>_0x104ab7[_0x40ff6a([0x65,0x76,0x65,0x72,0x79])]((_0x564f9b,_0x2b2eb0)=>_0x5cbd75[_0x2b2eb0]===_0x564f9b||_0x5cbd75[_0x2b2eb0]===_0x40ff6a([0x2a])));}function _0x56cc22(){return _0x573a8e&&_0xba5933?new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c48c7,_0x168d80)=>{_0x573a8e[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x2c48c7,_0x168d80),_0xba5933[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x2578ce=>{_0x2578ce!=_0x40ff6a([0x56,0x61,0x6c,0x69,0x64])&&_0x2c48c7(_0x2578ce);},_0x168d80);}):_0x573a8e||_0xba5933||_0x40ff6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15b2d0(_0x457e5a,_0x4a6c04){return new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d9d80=>{if(_0xd8a4ec())return _0x1d9d80(_0x40ff6a([0x56,0x61,0x6c,0x69,0x64]));_0x10c1d0(),_0x763a72[_0x40ff6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40ff6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c6f01=!0x1;const _0x11dada=_0xd8dd1b();function _0x7ee15a(_0x383333){return!!_0x383333&&(typeof _0x383333===_0x40ff6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x383333===_0x40ff6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x383333[_0x40ff6a([0x74,0x68,0x65,0x6e])]===_0x40ff6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x383333[_0x40ff6a([0x63,0x61,0x74,0x63,0x68])]===_0x40ff6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe9319f(_0x28acd5){_0x49d526(_0x28acd5)[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0xd2d0b3=>{if(!_0xd2d0b3||_0xd2d0b3[_0x40ff6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40ff6a([0x6f,0x6b]))return _0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1227e1(_0x19577d(_0x11dada+_0x4a6c04))!=_0xd2d0b3[_0x40ff6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40ff6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x388816=>(_0x51ba49(),_0x388816),()=>{const _0x5e9e70=_0x2b05e8();return null==_0x5e9e70?(_0x51ba49(),_0x40ff6a([0x56,0x61,0x6c,0x69,0x64])):_0x40ff6a(_0x2f395e-_0x5e9e70>(0x3423aa9e^_0x59c65f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x1d9d80)[_0x40ff6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d9d80(_0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56e1ec=0x1019c01e^_0x59c65f;function _0x51ba49(){const _0x3854a7=_0x40ff6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1227e1(_0x19577d(_0x457e5a)),_0x27421f=_0x2e9cd7(_0x1227e1(window[_0x40ff6a([0x4d,0x61,0x74,0x68])][_0x40ff6a([0x63,0x65,0x69,0x6c])](_0x2f395e/_0x56e1ec)));window[_0x40ff6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ff6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3854a7,_0x27421f);}function _0x2b05e8(){const _0x35119d=_0x40ff6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1227e1(_0x19577d(_0x457e5a)),_0x5ad11f=window[_0x40ff6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ff6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35119d);return _0x5ad11f?window[_0x40ff6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e9cd7(_0x5ad11f),0x10)*_0x56e1ec:null;}function _0x49d526(_0x4c4bdb){return new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3edfb7,_0x3dfa33)=>{_0x4c4bdb[_0x40ff6a([0x74,0x68,0x65,0x6e])](_0x3edfb7,_0x3dfa33),window[_0x40ff6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3dfa33,0x102efa5e^_0x59c65f);});}}_0x763a72[_0x40ff6a([0x6f,0x6e])](_0x40ff6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9d964b,_0x29abe8)=>{if(_0x29abe8[0x0]!=_0x457e5a)return _0x1d9d80(_0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x29abe8[0x1]={..._0x29abe8[0x1],[_0x40ff6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11dada};},{[_0x40ff6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ff6a([0x68,0x69,0x67,0x68])}),_0x763a72[_0x40ff6a([0x6f,0x6e])](_0x40ff6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x425dc0=>{_0x7ee15a(_0x425dc0[_0x40ff6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c6f01=!0x0,_0xe9319f(_0x425dc0[_0x40ff6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40ff6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ff6a([0x6c,0x6f,0x77])}),_0x5b542e[_0x40ff6a([0x74,0x68,0x65,0x6e])](()=>{_0x4c6f01||_0x1d9d80(_0x40ff6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd8a4ec(){return _0x763a72[_0x40ff6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ff6a([0x76,0x69,0x65,0x77])][_0x40ff6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40ff6a([0x61,0x75,0x74,0x6f]);}function _0x10c1d0(){_0x763a72[_0x40ff6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ff6a([0x76,0x69,0x65,0x77])][_0x40ff6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40ff6a([0x61,0x75,0x74,0x6f]);}}function _0x8c5f0e(_0x5a60c8){const _0x263bcb=[new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5f06=>setTimeout(_0x5c5f06,0x10261052^_0x59c65f)),_0x5b542e[_0x40ff6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x108ecc=>{const _0x5c08f4=0x102f2e99^_0x59c65f,_0x4792dc=_0x5b668b[_0x40ff6a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2a74ef(){_0x4792dc[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5c08f4&&_0x108ecc();}_0x2a74ef(),_0x4792dc[_0x40ff6a([0x6f,0x6e])](_0x40ff6a([0x61,0x64,0x64]),_0x2a74ef);})),new window[(_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f6f29=>{function _0xb8199e(){for(const _0x171343 in window)if(window[_0x40ff6a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x40ff6a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x171343))&&window[_0x171343]==_0x27a6a2)return _0x4f6f29();_0x763a72[_0x40ff6a([0x73,0x74,0x61,0x74,0x65])]!=_0x40ff6a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x40ff6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb8199e,0x102f3d16^_0x59c65f);}_0x5d7331(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xb8199e();})];return window[_0x40ff6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40ff6a([0x72,0x61,0x63,0x65])](_0x263bcb)[_0x40ff6a([0x74,0x68,0x65,0x6e])](()=>_0x5a60c8);}async function _0x5105fa(){if(await _0x5b542e,_0x5d7331(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x53dc23=_0x5b668b[_0x40ff6a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x534216=_0x5b668b[_0x40ff6a([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])](_0x53dc23[_0x40ff6a([0x69,0x64])]),_0x269f9c=_0x3ec3b8(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x269f9c[_0x40ff6a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x53dc23['id'],_0x534216?_0x534216['id']:null,!0x0),_0x269f9c[_0x40ff6a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x40ff6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x269f9c[_0x40ff6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x269f9c[_0x40ff6a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3a1d2a,void(_0x269f9c[_0x40ff6a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3a1d2a);}if(_0x5d7331(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1fc2c6=_0x3ec3b8(_0x40ff6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1fc2c6[_0x40ff6a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x40ff6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1fc2c6[_0x40ff6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1fc2c6[_0x40ff6a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3a1d2a,_0x1fc2c6[_0x40ff6a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3a1d2a;}_0x763a72[_0x40ff6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ff6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a1d2a,_0x763a72[_0x40ff6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ff6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a1d2a,_0x763a72[_0x40ff6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40ff6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4c704c(){return _0x5d7331(_0x40ff6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3ec3b8(_0x40ff6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x40ff6a([0x73,0x74,0x61,0x74,0x65])]==_0x40ff6a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x297284(){return _0x5d7331(_0x40ff6a([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 _0x5285fb(){return _0x5d7331(_0x40ff6a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x425869(_0x5e11c4){const _0x24185b=_0xa1c831();_0x763a72[_0x24185b]=_0x40ff6a([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])+_0x5e11c4,_0x5e11c4[_0x40ff6a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x40ff6a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xa1c831()]=_0x27a6a2),_0x5e11c4!=_0x40ff6a([0x56,0x61,0x6c,0x69,0x64])&&_0x5105fa();}function _0xa1c831(){const _0x9ee902=window[_0x40ff6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40ff6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40ff6a([0x6e,0x6f,0x77])]())[_0x40ff6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40ff6a([0x2e]),'');let _0x14ebd1=_0x40ff6a([0x73]);for(let _0x1029d9=0x0;_0x1029d9<_0x9ee902[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1029d9+=0x2){let _0x2484c1=window[_0x40ff6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9ee902[_0x40ff6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1029d9,_0x1029d9+0x2));_0x2484c1>=_0x2f7125[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2484c1-=_0x2f7125[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14ebd1+=_0x2f7125[_0x2484c1];}return _0x14ebd1;}function _0x3e8a01(){const _0x47ec75=_0x5d0506[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])](_0x40ff6a([0x2e]));if(0x3!=_0x47ec75[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3af46e(_0x47ec75[0x1]);function _0x3af46e(_0x120672){const _0x4105ba=_0x57265c(_0x120672);return _0x4105ba&&_0x5b79fa()?_0x4105ba:null;function _0x5b79fa(){const _0xfcf385=_0x4105ba[_0x40ff6a([0x6a,0x74,0x69])],_0x1c57c7=window[_0x40ff6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfcf385[_0x40ff6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfcf385[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d934a={..._0x4105ba,[_0x40ff6a([0x6a,0x74,0x69])]:_0xfcf385[_0x40ff6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfcf385[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d934a[_0x40ff6a([0x76,0x63])],_0x19577d(_0x1d934a)==_0x1c57c7;}}}async function _0x5f3f61(){let _0x277f69=!0x0;try{const _0x3a7f64=_0x5d0506[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])](_0x40ff6a([0x2e])),[_0x27133b,_0x1ccf92,_0x9bdeb5]=_0x3a7f64;return _0x49c14d(_0x27133b),await _0x4c0e15(_0x27133b,_0x1ccf92,_0x9bdeb5),_0x277f69;}catch{return!0x1;}function _0x49c14d(_0x582957){const _0x46fbb3=_0x57265c(_0x582957);_0x46fbb3&&_0x46fbb3[_0x40ff6a([0x61,0x6c,0x67])]==_0x40ff6a([0x45,0x53,0x32,0x35,0x36])||(_0x277f69=!0x1);}async function _0x4c0e15(_0x25e3de,_0x36ccd7,_0x190641){const _0x806dbc=window[_0x40ff6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40ff6a([0x66,0x72,0x6f,0x6d])](_0x1de6e1(_0x190641),_0x1bacee=>_0x1bacee[_0x40ff6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12984a=new window[(_0x40ff6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40ff6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25e3de+_0x40ff6a([0x2e])+_0x36ccd7),_0x19b2e5=window[_0x40ff6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40ff6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19b2e5)return;const _0x40ca05=await _0x19b2e5[_0x40ff6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40ff6a([0x6a,0x77,0x6b]),_0x725cec,{[_0x40ff6a([0x6e,0x61,0x6d,0x65])]:_0x40ff6a([0x45,0x43,0x44,0x53,0x41]),[_0x40ff6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40ff6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40ff6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19b2e5[_0x40ff6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40ff6a([0x6e,0x61,0x6d,0x65])]:_0x40ff6a([0x45,0x43,0x44,0x53,0x41]),[_0x40ff6a([0x68,0x61,0x73,0x68])]:{[_0x40ff6a([0x6e,0x61,0x6d,0x65])]:_0x40ff6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40ca05,_0x806dbc,_0x12984a)||(_0x277f69=!0x1);}}function _0x57265c(_0x4d9772){return _0x4d9772[_0x40ff6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40ff6a([0x65,0x79]))?JSON[_0x40ff6a([0x70,0x61,0x72,0x73,0x65])](_0x1de6e1(_0x4d9772)):null;}function _0x1de6e1(_0x246e22){return window[_0x40ff6a([0x61,0x74,0x6f,0x62])](_0x246e22[_0x40ff6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40ff6a([0x2b]))[_0x40ff6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40ff6a([0x2f])));}function _0x19577d(_0x3fcc67){let _0x50575c=0x1505;function _0x11cfc8(_0x37c7c1){for(let _0x3a67f4=0x0;_0x3a67f4<_0x37c7c1[_0x40ff6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a67f4++){const _0x5d87d7=_0x37c7c1[_0x40ff6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a67f4);_0x50575c=(_0x50575c<<0x5)+_0x50575c+_0x5d87d7,_0x50575c&=_0x50575c;}}function _0x57322a(_0x2a8ea2){Array[_0x40ff6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a8ea2)?_0x2a8ea2[_0x40ff6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57322a):_0x2a8ea2&&typeof _0x2a8ea2==_0x40ff6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40ff6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a8ea2)[_0x40ff6a([0x73,0x6f,0x72,0x74])]()[_0x40ff6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x158d38,_0x2000b9])=>{_0x11cfc8(_0x158d38),_0x57322a(_0x2000b9);}):_0x11cfc8(window[_0x40ff6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a8ea2));}return _0x57322a(_0x3fcc67),_0x50575c>>>0x0;}function _0x1227e1(_0x2be0a5){return _0x2be0a5[_0x40ff6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40ff6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40ff6a([0x30]));}function _0x2e9cd7(_0x79b4f9){return _0x79b4f9[_0x40ff6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40ff6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40ff6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d7331(_0x2fdafc){return _0x763a72[_0x40ff6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40ff6a([0x68,0x61,0x73])](_0x2fdafc);}function _0x3ec3b8(_0x3870ad){return _0x763a72[_0x40ff6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40ff6a([0x67,0x65,0x74])](_0x3870ad);}function _0x3a1d2a(){}function _0x40ff6a(_0x4fe0c7){return _0x4fe0c7['map'](_0xb118e3=>String['fromCharCode'](_0xb118e3))['join']('');}_0x425869(await _0x5c0178());}(this);}['createRevision'](_0x4bdc97){const _0x36df5b=this['editor']['plugins']['get']('Users');return new I({'id':_0x4bdc97['id'],'name':_0x4bdc97['name'],'creator':_0x4bdc97['creatorId']?_0x36df5b['getUser'](_0x4bdc97['creatorId']):null,'diffData':_0x4bdc97['diffData']||_0x4bdc97['data'],'authors':_0x4bdc97['authorsIds']['map'](_0x1f1407=>_0x36df5b['getUser'](_0x1f1407)),'createdAt':new Date(_0x4bdc97['createdAt']),'attributes':_0x4bdc97['attributes'],'fromVersion':_0x4bdc97['fromVersion'],'toVersion':_0x4bdc97['toVersion']});}['addRevision'](_0x26dd9f,_0x2f64c3=0x0){this['_revisions']['add'](_0x26dd9f,_0x2f64c3);}['getRevision'](_0xbfc4b){return this['_revisions']['get'](_0xbfc4b);}['getRevisions'](_0x22b0d0={'toJSON':!0x1}){const _0x4f2bf9=Array['from'](this['_revisions']);return _0x4f2bf9['reverse'](),_0x22b0d0['toJSON']?_0x4f2bf9['map'](_0x372a54=>_0x372a54['toJSON']()):_0x4f2bf9;}['getIndex'](_0x35a526){return this['_revisions']['getIndex'](_0x35a526);}['getEarlierVisibleRevision'](_0x4d383f){const [,_0xaff405]=this['getRevisionsIterator'](_0x4d383f,{'direction':'earlier'});return _0xaff405;}['getLaterVisibleRevision'](_0x480e62){const [,_0x29e014]=this['getRevisionsIterator'](_0x480e62,{'direction':'later'});return _0x29e014;}['getRevisionsInDiff'](_0x55efe8){const _0x1c4143=[];for(const _0x50d2e7 of this['getRevisionsIterator'](_0x55efe8['newRevisionId']))if(_0x1c4143['push'](_0x50d2e7),_0x50d2e7['id']===_0x55efe8['oldRevisionId'])break;return _0x1c4143;}*['getRevisionsIterator'](_0x47433c,{direction:_0x1aa66e='earlier',filter:_0x25dbd8=()=>!0x0}={}){const _0x339ca8='earlier'===_0x1aa66e?0x1:-0x1;let _0xb7f7e2=this['_revisions']['get'](_0x47433c),_0x4f3a34=this['getIndex'](_0xb7f7e2);for(yield _0xb7f7e2;_0xb7f7e2;){if(_0x4f3a34+=_0x339ca8,_0xb7f7e2=this['getRevision'](_0x4f3a34),!_0xb7f7e2)return;_0x25dbd8(_0xb7f7e2)&&(yield _0xb7f7e2);}}}class $ extends _0x58c668{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x213265,'c'],[_0x5c1e01,'a'],[_0x12de80,'e'],[_0x4cd107,'r'],[_0xb2e6b8,'u']]);['_typeCharToViewClass']=new Map([['c',_0x213265],['a',_0x5c1e01],['e',_0x12de80],['r',_0x4cd107],['u',_0xb2e6b8]]);async['loadRevisionData'](_0x522852,_0x4472f9){if(_0x522852['diffData']||!_0x4472f9)return;const _0x2f151d=this['editor']['config']['get']('collaboration.channelId'),_0xf7504f=await _0x4472f9['getRevision']({'channelId':_0x2f151d,'revisionId':_0x522852['id']});_0x522852['diffData']=_0xf7504f['diffData'];}['getRevisionDocumentData'](_0x26ab3e){const _0x226d39={};for(const _0x33f51d in _0x26ab3e['diffData']){if(_0x26ab3e['diffData'][_0x33f51d]['attachChange']&&!_0x26ab3e['diffData'][_0x33f51d]['attachChange']['isAttached'])continue;const _0x1dc74c=this['_removeRevisionMarkers'](JSON['parse'](_0x26ab3e['diffData'][_0x33f51d]['insertions'])),_0x1c919b=this['editor']['editing']['view']['document'],_0x27fd20=new _0x5d7884(_0x1c919b,_0x1dc74c['map'](_0x32e74d=>this['_getViewFromDiffObj'](_0x32e74d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x226d39[_0x33f51d]=this['editor']['data']['processor']['toData'](_0x27fd20),this['editor']['data']['processor']['useFillerType']('default');}return _0x226d39;}['getRevisionRootsAttributes'](_0x32ae0a){const _0x1af2d6={};for(const _0x472c6c in _0x32ae0a['diffData'])_0x32ae0a['diffData'][_0x472c6c]['attachChange']&&!_0x32ae0a['diffData'][_0x472c6c]['attachChange']['isAttached']||(_0x1af2d6[_0x472c6c]=_0x32ae0a['diffData'][_0x472c6c]['attributesAfter']||{});return _0x1af2d6;}['_getTypeCharForViewElement'](_0x31d89c){return this['_viewClassToTypeChar']['get'](_0x31d89c['constructor']);}['_getViewFromDiffObj'](_0xf3672f,_0x2ea848){const _0x55ba08=this['editor']['editing']['view']['document'];if('string'==typeof _0xf3672f)return new _0x328d97(_0x55ba08,_0xf3672f);{let _0x1d7ac6,_0x2b6c44;_0x2b6c44='u'==_0xf3672f['type']||'r'==_0xf3672f['type']?[]:_0xf3672f['children']['map'](_0x7058f0=>this['_getViewFromDiffObj'](_0x7058f0,_0x2ea848));const _0x2824e4=this['_typeCharToViewClass']['get'](_0xf3672f['type'])||_0x3568f2,_0x1f3e01=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1d7ac6=new _0x2824e4(_0x55ba08,_0xf3672f['name'],_0xf3672f['attributes'],_0x2b6c44),'u'==_0xf3672f['type']&&_0xf3672f['children'][0x0]){const _0x4d6021=_0xf3672f['children'][0x0];if(_0x1d7ac6['render']=function(_0x408151){const _0x1e5669=_0x408151['createElement']('div');return _0x1e5669['innerHTML']=_0x4d6021,_0x1e5669['childNodes'][0x0];},_0x2ea848){const _0x2530cc=new _0x5d7884(_0x55ba08);_0x2530cc['_appendChild'](_0x1d7ac6);const _0x9f854c=Array['from'](_0x1f3e01['viewChildrenToDom'](_0x2530cc,{'bind':!0x1})),_0x56d5c4=_0x1f3e01['domDocument']['createElement']('div');_0x56d5c4['append'](..._0x9f854c),_0x1d7ac6=Array['from'](_0x1f3e01['domChildrenToView'](_0x56d5c4))[0x0];}}else{if('r'==_0xf3672f['type']&&_0xf3672f['children'][0x0]){const _0x242705=_0xf3672f['children'][0x0];if(_0x1d7ac6['render']=function(_0x34012f){_0x34012f['innerHTML']=_0x242705;},_0x2ea848){const _0x3e8187=new _0x5d7884(_0x55ba08);_0x3e8187['_appendChild'](_0x1d7ac6);const _0x5191f0=Array['from'](_0x1f3e01['viewChildrenToDom'](_0x3e8187,{'bind':!0x1})),_0xb830cc=_0x1f3e01['domDocument']['createElement']('div');_0xb830cc['append'](..._0x5191f0);const _0x18855b=Array['from'](_0x1f3e01['domChildrenToView'](_0xb830cc));_0x18855b['length']>0x1?_0x1d7ac6['_appendChild'](_0x18855b):_0x1d7ac6=_0x18855b[0x0];}}}if(_0xf3672f['customProperties']){for(const [_0xb79ffd,_0x48bccc]of _0xf3672f['customProperties'])_0x1d7ac6['_setCustomProperty'](_0xb79ffd,_0x48bccc);}const _0x1930e5=void 0x0===_0xf3672f['fillerOffset']?null:_0xf3672f['fillerOffset'];return null!==_0x1930e5&&(_0x1d7ac6['getFillerOffset']=()=>_0x1930e5),_0x1d7ac6;}}['_makeModelFromViewString'](_0x4b6c62){const _0x5ed21d=JSON['parse'](_0x4b6c62),_0xf9d876=this['editor']['editing']['view']['document'],_0x3aad90=new _0x5d7884(_0xf9d876,_0x5ed21d['map'](_0x1b7477=>this['_getViewFromDiffObj'](_0x1b7477,!0x0)));return this['editor']['data']['toModel'](_0x3aad90);}['_removeRevisionMarkers'](_0x825877){return(_0x825877=_0x825877['filter'](_0x4ef8b0=>!_0x4ef8b0['name']||'revision-start'!==_0x4ef8b0['name']&&'revision-end'!==_0x4ef8b0['name']))['forEach'](_0xad5c33=>{'string'!=typeof _0xad5c33&&(_0xad5c33['children']=this['_removeRevisionMarkers'](_0xad5c33['children']),_0xad5c33['attributes']=_0xad5c33['attributes']['filter'](_0x1a09f5=>!_0x1a09f5[0x0]['startsWith']('data-revision-')));}),_0x825877;}}function R(_0x4a431c,_0x2857ff,_0x46890e){const t=_0x4a431c['t'];switch(_0x2857ff){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'},_0x46890e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x46890e);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 _0x58c668{['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[_0x55c9a7,S,$,_0x1038b0];}constructor(_0x1601dc){super(_0x1601dc),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 _0x546aa1=_0xd8dd1b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x546aa1},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 _0x505010=this['repository']['getRevision'](0x0),_0x7ea900=_0x505010&&null===_0x505010['creator']?_0x505010:null;if(this['_continueCurrentRevision']=!!_0x7ea900&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x472b32=this['_source']['getCurrentRevisionId'](),_0x45c8c8=this['repository']['getRevision'](_0x472b32);if(_0x45c8c8)this['_startingVersion']=_0x45c8c8['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3a34fd=this['_source']['history']['_operations']['find'](_0x444225=>!_0x444225['_isInit']),_0x526464=_0x3a34fd?_0x3a34fd['baseVersion']:this['_source']['history']['version'];_0x505010?(_0x505010['toVersion']<_0x526464&&_0x505010['_update']({'toVersion':_0x526464}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x7ea900['id'],this['_startingVersion']=_0x7ea900['fromVersion']):(this['_startingVersion']=_0x505010['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x526464,this['_continueCurrentRevision']=!0x1);}}else _0x7ea900&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x7ea900['toVersion'],this['editor']['model']['document']['history']['version']),_0x7ea900['fromVersion']===_0x7ea900['toVersion']?(0x0!==_0x7ea900['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x7ea900['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x7ea900['id'],this['_startingVersion']=_0x7ea900['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',_0x36dab2=>!_0x36dab2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c741e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14461e;for(const _0x247bc0 in _0x3c741e){const _0x3d94f0=_0x247bc0,_0x1e7400=_0x3c741e[_0x3d94f0];if('revisionHistoryLicenseKeyValid'==_0x1e7400||'revisionHistoryLicenseKeyInvalid'==_0x1e7400||'revisionHistoryLicenseKeyExpired'==_0x1e7400||'revisionHistoryLicenseKeyDomainLimit'==_0x1e7400||'revisionHistoryLicenseKeyNotAllowed'==_0x1e7400||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1e7400||'revisionHistoryLicenseKeyTrialLimit'==_0x1e7400||'revisionHistoryLicenseKeyUsageLimit'==_0x1e7400){delete _0x3c741e[_0x3d94f0],_0x14461e=_0x1e7400,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x14461e&&_0x3c741e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x14461e&&_0x3c741e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x14461e&&_0x3c741e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x14461e&&_0x3c741e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x14461e&&_0x3c741e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x14461e&&_0x3c741e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x14461e&&_0x3c741e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x9c3d85=this['repository']['getRevision'](0x0),_0x39f66a=await this['getRevisionDocumentData'](_0x9c3d85),_0x45c71b=await this['getRevisionRootsAttributes'](_0x9c3d85);this['_replaceEditorDataWithRevisionData'](_0x39f66a,_0x45c71b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5c114f){this['_source']=_0x5c114f;}async['update'](){const _0x11abbf=await this['_source']['getLatestVersion']();if(_0x11abbf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4f5e44=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x11abbf});_0x4f5e44['authors']=_0x4f5e44['authorsIds']['map'](_0x2dd2f6=>this['editor']['plugins']['get']('Users')['getUser'](_0x2dd2f6)),this['currentRevision']['_update'](_0x4f5e44);}}async['saveRevision'](_0x4e1343={},_0x53aa55=null){const _0x2ea249=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x53aa55>this['currentRevision']['toVersion']&&(_0x53aa55=null),null===_0x53aa55&&(_0x53aa55=await this['_source']['getLatestVersion']());const _0x2949e9=this['_getFromVersion'](_0x53aa55),_0x4bd026=this['buildRevisionData']({'from':_0x2949e9,'to':_0x53aa55});if(this['currentRevision']['toVersion']<_0x53aa55){const _0x1da17d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x53aa55,'to':_0x53aa55});_0x1da17d['authors']=[],_0x1da17d['authorsIds']=[],_0x1da17d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1da17d,!0x0),delete _0x1da17d['authors'],_0x2ea249['push'](_0x1da17d);}_0x4e1343['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e1343['name']=_0x4e1343['name']||null,_0x4e1343['id']=_0x4e1343['id']||_0xd8dd1b(),_0x4e1343={..._0x4e1343,..._0x4bd026};const _0x2a2503=this['addRevisionData'](_0x4e1343);_0x2ea249['push'](_0x4e1343);const _0x485f8c=this['repository']['getIndex'](_0x2a2503);if(0x0!==_0x485f8c){const _0x1e305c=this['repository']['getRevision'](_0x485f8c-0x1);if(_0x1e305c['fromVersion']!==_0x53aa55){const _0x19c6b9=this['_revisionDataBuilder']['getData'](_0x53aa55,_0x1e305c['toVersion']),_0x49454d={'id':_0x1e305c['id'],'diffData':_0x19c6b9['diffData'],'authorsIds':_0x19c6b9['authorsIds'],'authors':_0x19c6b9['authorsIds']['map'](_0x18e904=>this['editor']['plugins']['get']('Users')['getUser'](_0x18e904)),'fromVersion':_0x53aa55};_0x1e305c===this['currentRevision']&&(_0x49454d['createdAt']=new Date(_0x4e1343['createdAt']['getTime']()+0xa)),_0x1e305c['_update'](_0x49454d,!0x0),delete _0x49454d['authors'],_0x2ea249['push'](_0x49454d);}}if(this['adapter']){for(const _0x2e59ea of _0x2ea249)this['_bufferUpdate'](_0x2e59ea['id'],_0x2e59ea,!0x0);this['sendBufferedUpdates']();}return _0x2a2503;}['addRevisionData'](_0x44247e){const _0x4ca123=this['repository']['createRevision'](_0x44247e);return this['adapter']&&_0x4ca123['on']('_update',(_0x574ba8,_0xab276b,_0x3e6f76)=>{_0x3e6f76||(this['_bufferUpdate'](_0xab276b['id'],_0xab276b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4ca123,this['_findInsertionIndex'](_0x4ca123)),_0x4ca123;}async['getRevisionDocumentData'](_0x30ec6f){return await this['_utils']['loadRevisionData'](_0x30ec6f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x30ec6f);}async['getRevisionRootsAttributes'](_0x4f6760){return await this['_utils']['loadRevisionData'](_0x4f6760,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4f6760);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1faa52=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5b2482=0x0;_0x5b2482<_0x1faa52['length'];_0x5b2482++){const _0x124a72=_0x1faa52[_0x5b2482];let _0x3ec036=!0x1;for(const _0xa4c587 of Object['keys'](_0x124a72))void 0x0===_0x124a72[_0xa4c587]?delete _0x124a72[_0xa4c587]:'id'!==_0xa4c587&&(_0x3ec036=!0x0);_0x3ec036||(_0x1faa52[_0x5b2482]=null);}if(_0x1faa52=_0x1faa52['filter'](_0x391609=>null!==_0x391609),!_0x1faa52['length'])return;for(let _0x1f549b=0x0;_0x1f549b<_0x1faa52['length'];_0x1f549b++){const _0xafac77=_0x1faa52[_0x1f549b];void 0x0!==_0xafac77['fromVersion']&&void 0x0===_0xafac77['toVersion']&&(_0xafac77['toVersion']=this['repository']['getRevision'](_0xafac77['id'])['toVersion']),void 0x0!==_0xafac77['toVersion']&&void 0x0===_0xafac77['fromVersion']&&(_0xafac77['fromVersion']=this['repository']['getRevision'](_0xafac77['id'])['fromVersion']);}const _0x58d556=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1faa52,_0x58d556)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x6f5f46=>{if(_0x6f5f46){for(const _0x5a67fb of _0x6f5f46)this['setRevisionData']({'id':_0x5a67fb['id'],'createdAt':_0x5a67fb['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x52f7ad=null,from:_0xc07b42=null,to:_0x57c567=null}){_0xc07b42=null!==_0xc07b42?_0xc07b42:_0x52f7ad['fromVersion'],_0x57c567=null!==_0x57c567?_0x57c567:_0x52f7ad['toVersion'];const _0x2cc62c=this['_revisionDataBuilder']['getData'](_0xc07b42,_0x57c567),_0x5280c6={'diffData':_0x2cc62c['diffData'],'authorsIds':_0x2cc62c['authorsIds'],'fromVersion':_0xc07b42,'toVersion':_0x57c567};if(!_0x52f7ad||_0x57c567!==_0x52f7ad['toVersion']){const _0x51028a=_0x57c567-0x1,_0x100b22=this['_source']['history']['getOperation'](_0x51028a);_0x5280c6['createdAt']=_0x100b22&&_0x100b22['createdAt']||new Date();}if(this['_loadedStateData']&&_0xc07b42===this['_loadedStateData']['fromVersion']){for(const _0x4db9c8 of this['_loadedStateData']['authors'])_0x5280c6['authorsIds']['includes'](_0x4db9c8['id'])||_0x5280c6['authorsIds']['push'](_0x4db9c8['id']);}return _0x5280c6;}['_bufferUpdate'](_0x377708,_0x969e6c,_0x50355e){if(this['_bufferedUpdates']['has'](_0x377708)){const _0xda3240=this['_bufferedUpdates']['get'](_0x377708);_0x969e6c=_0x50355e?{..._0xda3240,..._0x969e6c}:{..._0x969e6c,..._0xda3240};}this['_bufferedUpdates']['set'](_0x377708,_0x969e6c);}['setRevisionData'](_0x5019b9){const _0x11028a=this['repository']['getRevision'](_0x5019b9['id']);if(_0x5019b9['createdAt']&&(_0x5019b9['createdAt']=new Date(_0x5019b9['createdAt'])),_0x5019b9['authorsIds']){const _0x322e86=this['editor']['plugins']['get']('Users');_0x5019b9['authors']=_0x5019b9['authorsIds']['map'](_0x3afc54=>_0x322e86['getUser'](_0x3afc54));}_0x11028a['_update'](_0x5019b9,!0x0);}['_createInitialRevision'](_0x398b90){const _0x40413e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x40413e)this['_initialRevisionId']=_0x40413e['id'];else{const _0x2c9250=!this['editor']['model']['document']['roots']['find'](_0x23894c=>this['editor']['model']['hasContent'](_0x23894c)),_0x8a2451=this['editor']['plugins']['get']('Users')['me']['id'],_0x25d011=R(this['editor']['locale'],_0x2c9250?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x398b90,'to':_0x398b90,'id':this['_initialRevisionId'],'name':_0x25d011,'creatorId':_0x8a2451});}}['_createCurrentRevision'](_0x171dd6){const _0x4e19ad=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4e19ad),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x171dd6,'to':_0x171dd6,'id':_0x4e19ad,'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'](_0x1a12c7,_0x12e7a3){let _0xae837a=this['editor']['config']['get']('initialData'),_0x310331=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xae837a){_0xae837a={};for(const _0x232f39 of this['editor']['model']['document']['getRootNames']())_0xae837a[_0x232f39]='';}if('string'==typeof _0xae837a&&(_0xae837a={'main':_0xae837a}),void 0x0===_0x310331){_0x310331={};for(const _0x36ea90 of this['editor']['model']['document']['getRootNames']())_0x310331[_0x36ea90]={};}let _0x1dce41=!0x1;const _0x5799f1=Object['keys'](_0xae837a),_0x3abd12=Object['keys'](_0x1a12c7);for(const _0x787360 of _0x5799f1){if(_0xae837a[_0x787360]!==_0x1a12c7[_0x787360]&&''!==_0xae837a[_0x787360]['trim']()){_0x1dce41=!0x0;break;}if(!_0x555e19(_0x310331[_0x787360],_0x12e7a3[_0x787360])&&Object['keys'](_0x310331[_0x787360])['length']>0x0){_0x1dce41=!0x0;break;}}_0x1dce41||(_0x1dce41=_0x3abd12['some'](_0x1d6e28=>!this['editor']['model']['document']['getRoot'](_0x1d6e28))),_0x1dce41&&_0x23c396('editor-initial-data-replaced-with-revision-data',{'editorData':_0xae837a,'editorRootsAttributes':_0x310331,'revisionData':_0x1a12c7,'revisionRootsAttributes':_0x12e7a3}),this['editor']['config']['set']('initialData',_0x1a12c7),this['editor']['config']['set']('rootsAttributes',_0x12e7a3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x34167c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x34167c['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x346d94){const _0x41e272=this['repository']['getRevisions']();_0x41e272['reverse']();let _0x3b290d=0x0;for(;_0x3b290d<_0x41e272['length'];){const _0x54ad44=_0x41e272[_0x3b290d];if(_0x54ad44===this['currentRevision']){_0x3b290d++;continue;}if(_0x54ad44['id']===this['_initialRevisionId'])break;const _0x6c00c3=_0x346d94['toVersion']-_0x54ad44['toVersion']||_0x346d94['fromVersion']-_0x54ad44['fromVersion'];if(_0x6c00c3>0x0)break;if(_0x6c00c3<0x0)_0x3b290d++;else{if(!_0x346d94['creator']&&_0x54ad44['creator'])break;if(_0x54ad44['creator']||!_0x346d94['creator']){if(_0x346d94['createdAt']>_0x54ad44['createdAt'])break;_0x3b290d++;}else _0x3b290d++;}}return _0x3b290d;}['_getFromVersion'](_0x372300){const _0x44ec06=this['repository']['getRevisions']();_0x44ec06['reverse'](),_0x44ec06['shift']();const _0x16d723=_0x44ec06['find'](_0x17adc7=>_0x17adc7['toVersion']<=_0x372300)['toVersion'];return _0x16d723<this['_startingVersion']?this['_startingVersion']:_0x16d723;}['_makeRevision']({name:_0x280c93,from:_0x305380,to:_0x5393a9,creatorId:_0x47beac,id:_0x200d03}){const _0x3ab68e=this['buildRevisionData']({'from':_0x305380,'to':_0x5393a9});_0x3ab68e['name']=_0x280c93,_0x3ab68e['creatorId']=_0x47beac,_0x3ab68e['id']=_0x200d03;const _0x30e4f7=this['addRevisionData'](_0x3ab68e);return this['adapter']&&this['_bufferUpdate'](_0x3ab68e['id'],_0x3ab68e,!0x0),_0x30e4f7;}['_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(_0x333329){this['editor']=_0x333329,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'](_0xfd809b){this['source']=_0xfd809b;const _0x3c8a2d=new Map(),_0x1c0ea5=new Map(),_0x5a548b=this['editor']['model']['document']['roots']['map'](_0x5b8e60=>_0x5b8e60['rootName']);for(const _0x1cd647 of _0x5a548b){const _0x31ebc8=this['editor']['model']['document']['getRoot'](_0x1cd647),_0x155fea=x(_0x31ebc8);_0x3c8a2d['set'](_0x1cd647,_0x155fea),_0x1c0ea5['set'](_0x1cd647,Object['fromEntries'](_0x31ebc8['getAttributes']()));}const _0x1df894=Array['from'](this['editor']['model']['markers'])['map'](_0x47d625=>[_0x47d625['name'],_0x47d625['getRange']()]),_0x179722=this['source']['version'];this['_saveMetaData'](_0x179722,_0x3c8a2d,_0x1df894,_0x1c0ea5),this['_startingRevisionId']=this['_revisionId'];const _0x31b181=new Map(),_0x5bf74e=new Map();for(const _0x21abf0 of _0x5a548b){const _0x18d6c0=N(_0x21abf0);_0x31b181['set'](_0x21abf0,_0x18d6c0),_0x5bf74e['set'](_0x21abf0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x31b181,[],_0x5bf74e);}['getData'](_0xe74941,_0x170a1f){if(this['_lastFrom']===_0xe74941&&this['_lastTo']<=_0x170a1f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x170a1f,!0x0);else{if(!this['_savedMetaData']['has'](_0xe74941)){const _0x4d084e=this['_getPreviousFrom'](_0xe74941);this['_calculateMetaData'](_0x4d084e,_0xe74941,!0x1);}this['_calculateMetaData'](_0xe74941,_0x170a1f,!0x0);}return this['_lastFrom']=_0xe74941,this['_lastTo']=_0x170a1f,this['_getState']();}['loadState'](_0x20a14d){const _0x514230=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x20a14d['fromVersion'],this['_lastTo']=_0x20a14d['toVersion'];for(const _0x4e4c9a in _0x20a14d['diffData']){const _0x12fbce=_0x20a14d['diffData'][_0x4e4c9a]['attachChange'],_0x32406f=_0x42d2a8(_0x20a14d['diffData'][_0x4e4c9a]['attributesBefore'])||{},_0x256a38=_0x514230['_makeModelFromViewString'](_0x20a14d['diffData'][_0x4e4c9a]['deletions']);_0x256a38['rootName']=_0x4e4c9a,_0x256a38['_isAttached']=!_0x12fbce||!_0x12fbce['isAttached'],_0x256a38['isAttached']=()=>_0x256a38['_isAttached'],this['_baseRoots']['set'](_0x4e4c9a,_0x256a38),this['_baseRootsAttributes']['set'](_0x4e4c9a,_0x32406f),_0x12fbce&&this['_touchedRoots']['set'](_0x4e4c9a,_0x12fbce);const _0x3b6171=this['_makeIdsRoot'](_0x256a38);this['_baseIdsRoots']['set'](_0x4e4c9a,_0x3b6171);for(const [_0x37ef52,_0x46f18b]of _0x256a38['markers']){if(!_0x37ef52['startsWith']('revision:'))continue;const _0x551181=_0x37ef52['split'](':')[0x2];for(const _0x7e2c1e of _0x46f18b['getWalker']({'singleCharacters':!0x0})){const _0xfc03d0=this['_getVidAttributeName'](_0x7e2c1e),_0x45322c='elementEnd'==_0x7e2c1e['type']?_0x7e2c1e['previousPosition']['path']['slice'](0x0,-0x1):_0x7e2c1e['previousPosition']['path'],_0xa66a55=_0x3b6171['getNodeByPath'](_0x45322c)['getAttribute'](_0xfc03d0);this['_touched']['set'](_0xa66a55,{'userId':_0x551181});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5ba3bb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x32b592=>!this['_touched']['has'](_0x32b592));let _0x295a18=0x0;const _0x2464f7=new Map();for(const _0x57f69c in _0x20a14d['diffData']){const _0x583e4e=_0x20a14d['diffData'][_0x57f69c]['attachChange'],_0x5e6ffa=_0x42d2a8(_0x20a14d['diffData'][_0x57f69c]['attributesAfter'])||{},_0x175871=_0x514230['_makeModelFromViewString'](_0x20a14d['diffData'][_0x57f69c]['insertions']);_0x175871['rootName']=_0x57f69c,_0x175871['_isAttached']=!_0x583e4e||_0x583e4e['isAttached'],_0x175871['isAttached']=()=>_0x175871['_isAttached'],this['_diffRoots']['set'](_0x57f69c,_0x175871),this['_diffRootsAttributes']['set'](_0x57f69c,_0x5e6ffa);const _0x4495a3=this['_makeIdsRoot'](_0x175871,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x57f69c,_0x4495a3),_0x2464f7['set'](_0x57f69c,_0x175871['isAttached']()?_0x5e6ffa:{});for(const [_0x1f1908,_0x2e856e]of _0x175871['markers']){if(!_0x1f1908['startsWith']('revision:'))continue;const _0x31998b=_0x1f1908['split'](':')[0x2];for(const _0x275008 of _0x2e856e['getWalker']({'singleCharacters':!0x0})){const _0x438828=this['_getVidAttributeName'](_0x275008),_0x22960d=this['_revisionId']++,_0x3eaf83='elementEnd'==_0x275008['type']?_0x275008['previousPosition']['path']['slice'](0x0,-0x1):_0x275008['previousPosition']['path'];_0x4495a3['getNodeByPath'](_0x3eaf83)['_setAttribute'](_0x438828,_0x22960d),this['_touched']['set'](_0x22960d,{'userId':_0x31998b});}}for(const _0xb25ede of this['editor']['model']['createRangeIn'](_0x175871)['getWalker']({'singleCharacters':!0x0})){const _0x31ccd8=this['_getVidAttributeName'](_0xb25ede),_0x25dda5='elementEnd'==_0xb25ede['type']?_0xb25ede['previousPosition']['path']['slice'](0x0,-0x1):_0xb25ede['previousPosition']['path'],_0x7507a7=_0x4495a3['getNodeByPath'](_0x25dda5);_0x7507a7['getAttribute'](_0x31ccd8)>0x0||_0x7507a7['_setAttribute'](_0x31ccd8,_0x5ba3bb[_0x295a18++]);}for(const [_0x24c318,_0x2f8a1c]of _0x175871['markers'])_0x24c318['startsWith']('revision:')||this['_markers']['set'](_0x24c318,_0x2f8a1c);}const _0x7bc2a6=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x7bc2a6),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x7bc2a6,0x1));const _0x1a0178=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1a0178),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1a0178,0x1));const _0x3f1286=Array['from'](this['_diffRoots'])['map'](([_0x267e88,_0xd4668b])=>[_0x267e88,x(_0xd4668b)]);this['_saveMetaData'](this['_lastTo'],_0x3f1286,this['_markers'],_0x2464f7);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5bd5db,_0x550f61,_0x389fab,_0xb9d1ba){const _0x3f598b=new Map(_0x550f61),_0x34c7c7=new Map(_0x42d2a8(_0xb9d1ba)),_0x198a5f=new Map();for(const [_0x371551,_0x6911ff]of _0x389fab)_0x198a5f['set'](_0x371551,{'start':_0x6911ff['start']['clone'](),'end':_0x6911ff['end']['clone'](),'rootName':_0x6911ff['root']['rootName']});this['_savedMetaData']['set'](_0x5bd5db,{'roots':_0x3f598b,'markers':_0x198a5f,'rootsAttributes':_0x34c7c7});}['_removeMetaData'](_0x5e9cce){this['_savedMetaData']['delete'](_0x5e9cce);}['_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'](_0x2534fe,_0x2ef6a6=null){let _0xf3bf6b=null;_0x2534fe['is']('documentFragment')||(_0xf3bf6b=new _0x7cb355(_0x2534fe['name'],{'vid_start':null===_0x2ef6a6?this['_revisionId']++:_0x2ef6a6++}));const _0x2528ce=[];for(const _0x154c44 of _0x2534fe['getChildren']())if(_0x154c44['is']('element')){_0x2528ce['push'](this['_makeIdsRoot'](_0x154c44,_0x2ef6a6));const _0x58e22a=_0x2528ce[_0x2528ce['length']-0x1];null!==_0x2ef6a6&&(_0x2ef6a6=_0x58e22a['is']('element','$text')?_0x58e22a['getAttribute']('vid')+0x1:_0x58e22a['getAttribute']('vid_end')+0x1);}else{for(let _0x5e3c94=0x0;_0x5e3c94<_0x154c44['offsetSize'];_0x5e3c94++)_0x2528ce['push'](new _0x7cb355('$text',{'vid':null===_0x2ef6a6?this['_revisionId']++:_0x2ef6a6++}));}if(_0x2534fe['is']('documentFragment')){const _0x49aa45=N(_0x2534fe['rootName']);return _0x49aa45['_insertChild'](0x0,_0x2528ce),_0x49aa45;}return _0xf3bf6b['_setAttribute']('vid_end',null===_0x2ef6a6?this['_revisionId']++:_0x2ef6a6++),_0xf3bf6b['_insertChild'](0x0,_0x2528ce),_0xf3bf6b;}['_calculateMetaData'](_0x3fecd8,_0x592cf9,_0x9ff81e){this['_reset']();const {roots:_0x5de57d,markers:_0x12aae5,rootsAttributes:_0x2e3593}=this['_savedMetaData']['get'](_0x3fecd8);this['_baseRoots']=new Map(_0x5de57d),this['_baseRootsAttributes']=new Map(_0x42d2a8(_0x2e3593));for(const [_0xce7c16,_0x4f51b4]of this['_baseRoots'])if('$graveyard'!==_0xce7c16&&(this['_diffRoots']['set'](_0xce7c16,x(_0x4f51b4)),this['_diffRootsAttributes']=new Map(_0x42d2a8(_0x2e3593)),_0x9ff81e)){const _0x2d8892=this['_revisionId'];this['_idsRoots']['set'](_0xce7c16,this['_makeIdsRoot'](_0x4f51b4)),this['_baseIdsRoots']['set'](_0xce7c16,this['_makeIdsRoot'](_0x4f51b4,_0x2d8892));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x9ff81e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3adf53,_0x43b105]of _0x12aae5){const _0x2b77cf=this['_baseRoots']['get'](_0x43b105['rootName']),_0x5e84f6=this['_diffRoots']['get'](_0x43b105['rootName']),_0x3a8bb6=new _0x550e8b(this['_fixPosition'](_0x43b105['start'],_0x2b77cf),this['_fixPosition'](_0x43b105['end'],_0x2b77cf)),_0x4da459=this['_fixRange'](_0x3a8bb6,_0x5e84f6);_0x2b77cf['markers']['set'](_0x3adf53,_0x3a8bb6),this['_markers']['set'](_0x3adf53,_0x4da459);}this['_applyOperations'](_0x3fecd8,_0x592cf9,_0x9ff81e);}['_applyOperations'](_0x205307,_0x3fd12b,_0x3b37fc){for(const _0x35fb19 of this['source']['getOperations'](_0x205307,_0x3fd12b))this['_handleOperation'](_0x35fb19,_0x3b37fc);for(const _0x243e9b of this['_diffRoots']['values']())_0x243e9b['markers']['clear']();for(const [_0x435140,_0x7261f2]of this['_markers']){this['_diffRoots']['get'](_0x7261f2['root']['rootName'])['markers']['set'](_0x435140,_0x7261f2['clone']());}const _0x5e462e=new Map(),_0xa2bc83=new Map();for(const [_0x1d35f3,_0x5e1599]of this['_diffRoots'])_0x5e462e['set'](_0x1d35f3,x(_0x5e1599)),_0xa2bc83['set'](_0x1d35f3,this['_diffRootsAttributes']['get'](_0x1d35f3));this['_saveMetaData'](_0x3fd12b,_0x5e462e,this['_markers'],_0xa2bc83);}['_getPreviousFrom'](_0x25879f){const _0x28cdcf=Array['from'](this['_savedMetaData']['keys']());_0x28cdcf['sort']((_0x39d91c,_0x42fe6a)=>_0x39d91c-_0x42fe6a),_0x28cdcf['reverse']();for(const _0x15571e of _0x28cdcf)if(_0x15571e<_0x25879f)return _0x15571e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x494003,_0x14e8c2){const _0x20cd3c=Array['from'](_0x14e8c2['markers'])['map'](([_0x49832f,_0x4a1425])=>[_0x49832f,this['_fixRange'](_0x4a1425,_0x494003)]);_0x494003['markers']=new Map(_0x20cd3c);}['_transformMarkers'](_0x2e8f4d){for(const _0x2ab0ee of this['_markers']['values']()){const _0x355271=_0x2ab0ee['getTransformedByOperation'](_0x2e8f4d),_0xf3607c=_0x550e8b['_createFromRanges'](_0x355271);_0x2ab0ee['start']=_0xf3607c['start'],_0x2ab0ee['end']=_0xf3607c['end'];}}['_handleOperation'](_0x32c8da,_0x408aa7){if('addRoot'!=_0x32c8da['type']&&'detachRoot'!=_0x32c8da['type']){if('insert'==_0x32c8da['type']){const _0x36f2bc=_0x32c8da['position']['root']['rootName'];this['_diffRoots']['has'](_0x36f2bc)||(this['_diffRoots']['set'](_0x36f2bc,N(_0x36f2bc,!0x0)),this['_diffRootsAttributes']['set'](_0x36f2bc,{}),_0x408aa7&&this['_idsRoots']['set'](_0x36f2bc,N(_0x36f2bc,!0x0)));}else{if('addRootAttribute'==_0x32c8da['type']||'removeRootAttribute'==_0x32c8da['type']||'changeRootAttribute'==_0x32c8da['type'])return void this['_handleRootAttributeOperation'](_0x32c8da);'marker'==_0x32c8da['type']&&this['_handleMarkerOperation'](_0x32c8da);}if('marker'!==_0x32c8da['type']){const _0x41c0ac=this['_cloneOperation'](_0x32c8da,this['_diffRoots']);_0x41c0ac['_execute'](),this['_transformMarkers'](_0x41c0ac);}if(_0x408aa7)switch(_0x32c8da['type']){case'insert':this['_handleInsertOperation'](_0x32c8da);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x32c8da);break;case'merge':this['_handleMergeOperation'](_0x32c8da);break;case'split':this['_handleSplitOperation'](_0x32c8da);}}else this['_handleRootOperation'](_0x32c8da,_0x408aa7);}['_cloneOperation'](_0x3f7b88,_0x167097){const _0x42f9f=_0x3f7b88['clone']();return _0x42f9f['_authorId']=_0x3f7b88['_authorId'],this['_fixOperation'](_0x42f9f,_0x167097),_0x42f9f;}['_getBaseVids'](_0x3df7f1){return _0x3df7f1['map'](_0x12a572=>{const _0x152d5b=this['_getVidAttributeName'](_0x12a572);return Number(_0x12a572['item']['getAttribute'](_0x152d5b));});}['_generateTape'](_0x1c0a3b,_0x2c544c){if(_0x1c0a3b['is']('element','$text'))_0x2c544c['push']({'item':_0x1c0a3b,'type':'text'});else{_0x1c0a3b['is']('element')&&_0x2c544c['push']({'item':_0x1c0a3b,'type':'elementStart'});for(const _0x30f46b of _0x1c0a3b['getChildren']())this['_generateTape'](_0x30f46b,_0x2c544c);_0x1c0a3b['is']('element')&&_0x2c544c['push']({'item':_0x1c0a3b,'type':'elementEnd'});}return _0x2c544c;}['_getState'](){const _0x1514f2=new Map(this['_touched']),_0x1d353c=new Map(_0x1514f2),_0x57e8a0=new Map(),_0x544346={'insertions':{},'deletions':{}},_0x5e7071={'insertions':{},'deletions':{}},_0x585b37=new Map(),_0x3ea48f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3ea48f['delete']('$graveyard');for(const _0x34b8cd of _0x3ea48f){const _0x4e460c=this['_diffRoots']['get'](_0x34b8cd)||N(_0x34b8cd,!0x1),_0x40c3ce=this['_baseRoots']['get'](_0x34b8cd)||N(_0x34b8cd,!0x1);_0x4e460c['isAttached']()||_0x40c3ce['isAttached']()?(_0x544346['insertions'][_0x34b8cd]=x(_0x4e460c),_0x544346['deletions'][_0x34b8cd]=x(_0x40c3ce),this['_copyMarkers'](_0x544346['deletions'][_0x34b8cd],_0x40c3ce),this['_copyMarkers'](_0x544346['insertions'][_0x34b8cd],_0x4e460c),_0x5e7071['insertions'][_0x34b8cd]=this['_generateTape'](this['_idsRoots']['get'](_0x34b8cd),[]),_0x5e7071['deletions'][_0x34b8cd]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x34b8cd)||N(_0x34b8cd,!0x1),[])):_0x3ea48f['delete'](_0x34b8cd);}for(const _0x47cdca of _0x3ea48f){const _0x12380b=_0x5e7071['insertions'][_0x47cdca];for(const _0x50ac4d of _0x12380b){const _0x5c62e6=this['_getVidAttributeName'](_0x50ac4d),_0x2a1198=_0x50ac4d['item']['getAttribute'](_0x5c62e6);_0x1d353c['delete'](_0x2a1198),_0x2a1198>=this['_startingRevisionId']&&_0x57e8a0['set'](_0x2a1198,_0x1514f2['get'](_0x2a1198));}}for(const _0x2985c4 of _0x3ea48f){const _0xd2b355=_0x5e7071['insertions'][_0x2985c4],_0x5b1191=this['_getBaseVids'](_0x5e7071['deletions'][_0x2985c4]);let _0x409e9e=0x0;for(const _0x5ad9df of _0xd2b355){const _0x5c1818=this['_getVidAttributeName'](_0x5ad9df),_0x20a5f7=_0x5ad9df['item']['getAttribute'](_0x5c1818);if(!_0x57e8a0['has'](_0x20a5f7)&&!_0x585b37['has'](_0x20a5f7)){if(_0x1d353c['has'](_0x20a5f7))_0x409e9e++;else{if(_0x20a5f7!=_0x5b1191[_0x409e9e]){const _0x32b1db=_0x1514f2['get'](_0x20a5f7)||_0x1514f2['get'](_0x5b1191[_0x409e9e]);for(;_0x20a5f7!=_0x5b1191[_0x409e9e];)_0x1d353c['has'](_0x5b1191[_0x409e9e])||(_0x585b37['set'](_0x5b1191[_0x409e9e],_0x32b1db),_0x1514f2['set'](_0x5b1191[_0x409e9e],_0x32b1db)),_0x409e9e++;}_0x409e9e++;}}}}for(const _0x12b33c of _0x3ea48f){const _0x30ee6b=_0x5e7071['insertions'][_0x12b33c];for(const _0x24141d of _0x30ee6b){const _0x4105da=this['_getVidAttributeName'](_0x24141d),_0x2d52f7=_0x24141d['item']['getAttribute'](_0x4105da);if(_0x585b37['has'](_0x2d52f7)){const _0x2242ed=_0x585b37['get'](_0x2d52f7);_0x1d353c['has'](_0x2d52f7)||_0x1d353c['set'](_0x2d52f7,{..._0x2242ed}),_0x57e8a0['set'](_0x2d52f7,{..._0x2242ed});}}}for(const _0x3f1f06 of _0x1d353c['keys']())_0x3f1f06>=this['_startingRevisionId']&&_0x1d353c['delete'](_0x3f1f06);const _0x504aae=new Map();for(const _0x381585 of _0x3ea48f){let _0x392934=_0x5e7071['insertions'][_0x381585];for(const _0x4396ca of _0x392934)if(_0x4396ca['item']['is']('element','tableCell')){const _0x12eb23=this['_getVidAttributeName'](_0x4396ca),_0xc95eb=_0x4396ca['item']['getAttribute'](_0x12eb23);if(_0x57e8a0['has'](_0xc95eb)){const _0x8e0e61=_0x4396ca['item']['parent']['parent']['getAttribute']('vid_start'),_0x5af844=_0x504aae['get'](_0x8e0e61)||new Set();_0x5af844['add'](_0x57e8a0['get'](_0xc95eb)['userId']),_0x504aae['set'](_0x8e0e61,_0x5af844);}}_0x392934=_0x5e7071['deletions'][_0x381585];for(const _0x355da3 of _0x392934)if(_0x355da3['item']['is']('element','tableCell')){const _0x485081=this['_getVidAttributeName'](_0x355da3),_0x29f759=_0x355da3['item']['getAttribute'](_0x485081);if(_0x1d353c['has'](_0x29f759)){const _0x4ef60c=_0x355da3['item']['parent']['parent']['getAttribute']('vid_start'),_0x4bae6b=_0x504aae['get'](_0x4ef60c)||new Set();_0x4bae6b['add'](_0x1d353c['get'](_0x29f759)['userId']),_0x504aae['set'](_0x4ef60c,_0x4bae6b);}}for(const _0x163f18 of _0x504aae['keys']())(_0x57e8a0['has'](_0x163f18)||_0x1d353c['has'](_0x163f18))&&_0x504aae['delete'](_0x163f18);}for(const _0x51eff9 of _0x3ea48f){const _0x14edc3=_0x5e7071['insertions'][_0x51eff9];let _0xa21832=null,_0x3ce33e=null;for(const _0x16eaf2 of _0x14edc3){const _0x23f49d=this['_getVidAttributeName'](_0x16eaf2),_0x448a17=_0x16eaf2['item']['getAttribute'](_0x23f49d),_0x3ce0ee=_0x504aae['get'](_0x448a17);_0x3ce0ee&&'elementStart'==_0x16eaf2['type']&&(_0xa21832=Array['from'](_0x3ce0ee)[0x0],_0x3ce33e=_0x16eaf2['item']['getAttribute']('vid_end')),_0xa21832&&(_0x1d353c['set'](_0x448a17,{'userId':_0xa21832}),_0x57e8a0['set'](_0x448a17,{'userId':_0xa21832})),_0x448a17==_0x3ce33e&&(_0xa21832=null,_0x3ce33e=null);}}const _0x513ed5={},_0x188a7d=new Set();for(const _0x40d273 of _0x3ea48f){const _0x455464=_0x544346['deletions'][_0x40d273],_0x4e542c=_0x544346['insertions'][_0x40d273];for(const {userId:_0x428e34}of this['_touchedMarkers']['values']())null!==_0x428e34&&_0x188a7d['add'](_0x428e34);for(const {userId:_0x2d81e5}of this['_touchedRoots']['values']())null!==_0x2d81e5&&_0x188a7d['add'](_0x2d81e5);this['_markChanges'](_0x4e542c,_0x5e7071['insertions'][_0x40d273],_0x57e8a0,'insertion',_0x188a7d),this['_markChanges'](_0x455464,_0x5e7071['deletions'][_0x40d273],_0x1d353c,'deletion',_0x188a7d),_0x513ed5[_0x40d273]={'insertions':this['_prepareViewToSave'](_0x4e542c),'deletions':this['_prepareViewToSave'](_0x455464),'attachChange':this['_touchedRoots']['get'](_0x40d273)||null,'attributesBefore':_0x42d2a8(this['_baseRootsAttributes']['get'](_0x40d273))||{},'attributesAfter':_0x42d2a8(this['_diffRootsAttributes']['get'](_0x40d273))};}return{'diffData':_0x513ed5,'authorsIds':Array['from'](_0x188a7d)};}['_processRootBeforeSave'](_0x126d2c){for(const [,_0x49e1a3]of _0x126d2c['markers']){const _0x306ac1=_0x49e1a3['start']['getAncestors']()['filter'](_0x4e509b=>'tableCell'==_0x4e509b['name']);for(const _0x32ae3f of _0x306ac1)0x1==_0x32ae3f['childCount']&&_0x32ae3f['getChild'](0x0)['is']('element','paragraph')&&_0x32ae3f['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x43e037){this['_processRootBeforeSave'](_0x43e037);const _0x69424d=this['editor']['data']['toView'](_0x43e037,{}),_0x119fd1=Array['from'](_0x69424d['getChildren']())['map'](_0x3886a5=>this['_getViewJson'](_0x3886a5));return JSON['stringify'](_0x119fd1);}['_getViewJson'](_0x1cf8c3){if(_0x1cf8c3['is']('$text'))return _0x1cf8c3['data'];{const _0x47f250=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x100321=_0x1cf8c3,_0x38c1da=this['editor']['data']['htmlProcessor']['domConverter'],_0x37b43d={'type':_0x47f250['_getTypeCharForViewElement'](_0x100321),'name':_0x100321['name'],'attributes':Array['from'](_0x100321['getAttributes']()),'children':Array['from'](_0x100321['getChildren']())['map'](_0x34f0ec=>this['_getViewJson'](_0x34f0ec))};if(_0x1cf8c3['is']('uiElement')&&'$comment'!=_0x1cf8c3['name']){const _0x2ddf0a=_0x1cf8c3['render'](_0x38c1da['domDocument'],_0x38c1da);_0x37b43d['children']['push'](_0x2ddf0a['outerHTML']);}else{if(_0x1cf8c3['is']('rawElement')){const _0x286be3=_0x38c1da['domDocument']['createElement'](_0x100321['name']);_0x1cf8c3['render'](_0x286be3,_0x38c1da),_0x37b43d['children']['push'](_0x286be3['innerHTML']);}}const _0x2ff5bc=Array['from'](_0x100321['getCustomProperties']());_0x2ff5bc['length']>0x0&&(_0x37b43d['customProperties']=_0x2ff5bc);const _0x524381=_0x100321['getFillerOffset']();return null!==_0x524381&&(_0x37b43d['fillerOffset']=_0x524381),_0x37b43d;}}['_markChanges'](_0x1f7d4d,_0x37c001,_0x209c47,_0x5f5d47,_0xe3ecbe){let _0x2ff26c=null,_0x46db49=null,_0x216491=0x0;const _0x1dad22=this['editor']['model'];for(let _0x511b3c=0x0;_0x511b3c<_0x37c001['length'];_0x511b3c++){const _0x61a5d3=this['_getVidAttributeName'](_0x37c001[_0x511b3c]),_0x10a66e=_0x37c001[_0x511b3c]['item']['getAttribute'](_0x61a5d3),_0x7d395b=_0x209c47['get'](_0x10a66e),_0x225043=_0x511b3c==_0x37c001['length']-0x1;(!_0x2ff26c&&_0x7d395b&&(_0x2ff26c=_0x7d395b,_0x46db49=_0x37c001[_0x511b3c]),_0x2ff26c&&(!_0x7d395b||_0x7d395b['userId']!=_0x2ff26c['userId']))&&(_0x258f9f(_0x7d395b,P(_0x46db49,_0x1f7d4d,_0x1dad22),P(_0x37c001[_0x511b3c],_0x1f7d4d,_0x1dad22)),_0x2ff26c=_0x7d395b||null,_0x46db49=_0x7d395b?_0x37c001[_0x511b3c]:null),_0x2ff26c&&_0x225043&&_0x258f9f(_0x7d395b,P(_0x46db49,_0x1f7d4d,_0x1dad22),V(_0x37c001[_0x511b3c],_0x1f7d4d,_0x1dad22));}function _0x258f9f(_0x37e447,_0x18b353,_0x29952d){const _0x55fc63=_0x2ff26c['userId'],_0x536567='revision:'+_0x5f5d47+':'+_0x55fc63+':'+_0x216491++,_0x42d36b=_0x1dad22['createRange'](_0x18b353,_0x29952d);_0x1f7d4d['markers']['set'](_0x536567,_0x42d36b),null!==_0x55fc63&&_0xe3ecbe['add'](_0x55fc63);}}['_getVidAttributeName'](_0x4fab24){switch(_0x4fab24['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x49712b,_0x412c55){_0x49712b['baseVersion']=null;for(const _0x5b8966 in _0x49712b){const _0x24e157=_0x49712b[_0x5b8966];if(_0x24e157 instanceof _0x5e3e53){const _0x4e0503=_0x412c55['get'](_0x24e157['root']['rootName']);_0x49712b[_0x5b8966]=this['_fixPosition'](_0x24e157,_0x4e0503);}if(_0x24e157 instanceof _0x550e8b){const _0x4715b0=_0x412c55['get'](_0x24e157['root']['rootName']);_0x49712b[_0x5b8966]=this['_fixRange'](_0x24e157,_0x4715b0);}'root'===_0x5b8966&&(_0x49712b['root']=_0x412c55['get'](_0x49712b['root']['rootName']));}}['_fixRange'](_0x4f1844,_0x3c9513){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4f1844['start'],_0x3c9513),this['_fixPosition'](_0x4f1844['end'],_0x3c9513));}['_fixPosition'](_0x1ee90e,_0x322658){return this['editor']['model']['createPositionFromPath'](_0x322658,_0x1ee90e['path'],_0x1ee90e['stickiness']);}['_handleInsertOperation'](_0x5b5a8e){const _0x226062=this['_idsRoots']['get'](_0x5b5a8e['position']['root']['rootName']),_0x525596=this['_fixPosition'](_0x5b5a8e['position'],_0x226062),_0x3ed8a3=null===_0x5b5a8e['_authorId']?null:_0x5b5a8e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x410a0a=_0x525596['parent'],_0x11321f=this['_revisionId'],_0x325f55=[];for(const _0x24b538 of _0x5b5a8e['nodes'])if(_0x24b538['is']('element'))_0x325f55['push'](this['_makeIdsRoot'](_0x24b538));else{for(let _0x13facb=0x0;_0x13facb<_0x24b538['offsetSize'];_0x13facb++)_0x325f55['push'](new _0x7cb355('$text',{'vid':this['_revisionId']++}));}const _0x270cea=this['_revisionId'];for(let _0x4182d1=_0x11321f;_0x4182d1<_0x270cea;_0x4182d1++)this['_touched']['set'](_0x4182d1,{'userId':_0x3ed8a3});_0x410a0a['_insertChild'](_0x525596['offset'],_0x325f55);}['_handleMoveOperation'](_0x14dcb6){(_0x14dcb6=this['_cloneOperation'](_0x14dcb6,this['_idsRoots']))['_execute']();const _0x19c05e=null===_0x14dcb6['_authorId']?null:_0x14dcb6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29ffb9=_0x14dcb6['getMovedRangeStart'](),_0x1e0ed5=_0x29ffb9['parent'],_0x4b7c12=_0x29ffb9['offset'];!function _0x98404e(_0xa87ffa,_0x168086,_0x3723e4,_0x37bf4a){for(let _0x444d48=_0x3723e4;_0x444d48<_0x37bf4a;_0x444d48++){const _0x292a46=_0x168086['getChild'](_0x444d48);_0x292a46['is']('element','$text')?_0xa87ffa['set'](_0x292a46['getAttribute']('vid'),{'userId':_0x19c05e}):(_0xa87ffa['set'](_0x292a46['getAttribute']('vid_start'),{'userId':_0x19c05e}),_0x98404e(_0xa87ffa,_0x292a46,0x0,_0x292a46['childCount']),_0xa87ffa['set'](_0x292a46['getAttribute']('vid_end'),{'userId':_0x19c05e}));}}(this['_touched'],_0x1e0ed5,_0x4b7c12,_0x4b7c12+_0x14dcb6['howMany']);}['_handleMergeOperation'](_0x474602){const _0x5b72b4=null===(_0x474602=this['_cloneOperation'](_0x474602,this['_idsRoots']))['_authorId']?null:_0x474602['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b480e=_0x474602['targetPosition']['parent'],_0x232f9d=_0x474602['sourcePosition']['parent'],_0x30dc1d=_0x1b480e['getAttribute']('vid_end'),_0x3b28e2=_0x232f9d['getAttribute']('vid_start');_0x1b480e['_setAttribute']('vid_end',_0x232f9d['getAttribute']('vid_end')),_0x232f9d['_setAttribute']('vid_end',_0x30dc1d),this['_touched']['set'](_0x3b28e2,{'userId':_0x5b72b4}),this['_touched']['set'](_0x30dc1d,{'userId':_0x5b72b4}),_0x474602['_execute']();}['_handleSplitOperation'](_0xa38594){const _0x5972d1=null===(_0xa38594=this['_cloneOperation'](_0xa38594,this['_idsRoots']))['_authorId']?null:_0xa38594['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1beda9=_0xa38594['graveyardPosition'],_0x55ab21=_0xa38594['splitPosition']['parent'];_0xa38594['_execute']();const _0xb7c529=_0x55ab21['getAttribute']('vid_end'),_0x1d28ee=_0xa38594['insertionPosition']['nodeAfter'];if(_0x1beda9){const _0x22f50e=_0x1d28ee['getAttribute']('vid_end'),_0xfdc613=_0x55ab21['getAttribute']('vid_end');_0x55ab21['_setAttribute']('vid_end',_0x22f50e),_0x1d28ee['_setAttribute']('vid_end',_0xfdc613),this['_touched']['set'](_0x55ab21['getAttribute']('vid_end'),{'userId':_0x5972d1}),this['_touched']['set'](_0x1d28ee['getAttribute']('vid_start'),{'userId':_0x5972d1});}else{const _0x12e0fe=this['_revisionId']++,_0x1aecb5=this['_revisionId']++;_0x55ab21['_setAttribute']('vid_end',_0x12e0fe),_0x1d28ee['_setAttribute']('vid_start',_0x1aecb5),_0x1d28ee['_setAttribute']('vid_end',_0xb7c529),this['_touched']['set'](_0x12e0fe,{'userId':_0x5972d1}),this['_touched']['set'](_0x1aecb5,{'userId':_0x5972d1});}}['_handleMarkerOperation'](_0x5bbfc8){if(!_0x5bbfc8['affectsData'])return;const _0x529da1=(_0x5bbfc8=this['_cloneOperation'](_0x5bbfc8,this['_diffRoots']))['oldRange']?_0x5bbfc8['oldRange']['root']:null,_0x9c300a=_0x5bbfc8['newRange']?_0x5bbfc8['newRange']['root']:null;_0x529da1&&this['_markers']['delete'](_0x5bbfc8['name']),_0x9c300a&&this['_markers']['set'](_0x5bbfc8['name'],_0x5bbfc8['newRange']['clone']());const _0x6bf86=null===_0x5bbfc8['_authorId']?null:_0x5bbfc8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xbedfbb=_0x5bbfc8['name'];if(!this['_touchedMarkers']['has'](_0xbedfbb))return void this['_touchedMarkers']['set'](_0xbedfbb,{'range':_0x5bbfc8['oldRange'],'userId':_0x6bf86});const _0x50d5aa=this['_touchedMarkers']['get'](_0xbedfbb),_0x113f33=_0x50d5aa['range'],_0x322801=_0x5bbfc8['newRange'];null==_0x113f33&&null==_0x322801||_0x113f33&&_0x322801&&_0x113f33['isEqual'](_0x322801)?this['_touchedMarkers']['delete'](_0x5bbfc8['name']):_0x50d5aa['userId']=_0x6bf86;}['_handleRootOperation'](_0x2a0e5a,_0x3caa8d){this['_diffRoots']['has'](_0x2a0e5a['rootName'])?this['_diffRoots']['get'](_0x2a0e5a['rootName'])['_isAttached']=_0x2a0e5a['isAdd']:(this['_diffRoots']['set'](_0x2a0e5a['rootName'],N(_0x2a0e5a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2a0e5a['rootName'],{}),_0x3caa8d&&this['_idsRoots']['set'](_0x2a0e5a['rootName'],N(_0x2a0e5a['rootName'],!0x0)));const _0x3b28a0=null===_0x2a0e5a['_authorId']?null:_0x2a0e5a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x217e81=this['_touchedRoots']['get'](_0x2a0e5a['rootName']);_0x217e81&&_0x217e81['userId']===_0x3b28a0?this['_touchedRoots']['delete'](_0x2a0e5a['rootName']):this['_touchedRoots']['set'](_0x2a0e5a['rootName'],{'userId':_0x3b28a0,'isAttached':_0x2a0e5a['isAdd']});}['_handleRootAttributeOperation'](_0x3d45dc){const _0x59a8d9=this['_diffRootsAttributes']['get'](_0x3d45dc['root']['rootName']);null===_0x3d45dc['newValue']?delete _0x59a8d9[_0x3d45dc['key']]:_0x59a8d9[_0x3d45dc['key']]=_0x3d45dc['newValue'];}}function x(_0x14312f){const _0x586637=N(_0x14312f['rootName'],_0x14312f['isAttached']());for(const _0xaf85cf of _0x14312f['getChildren']()){const _0x40a1f0=_0xaf85cf['_clone'](!0x0);_0x586637['_appendChild'](_0x40a1f0);}return _0x586637;}function N(_0x1e939d,_0x3635a1=!0x0){const _0x24bd55=new _0x5c4cfd();return _0x24bd55['rootName']=_0x1e939d,_0x24bd55['_isAttached']=_0x3635a1,_0x24bd55['isAttached']=()=>_0x24bd55['_isAttached'],_0x24bd55;}function P(_0x3a829c,_0x563977,_0x108102){const _0x579733='elementEnd'==_0x3a829c['type']?_0x108102['createPositionAt'](_0x3a829c['item'],'end'):_0x108102['createPositionBefore'](_0x3a829c['item']);return _0x108102['createPositionFromPath'](_0x563977,_0x579733['path'],_0x579733['stickiness']);}function V(_0x5a52ce,_0x3b6777,_0x3351b2){const _0x2b2096='elementStart'==_0x5a52ce['type']?_0x3351b2['createPositionAt'](_0x5a52ce['item'],0x0):_0x3351b2['createPositionAfter'](_0x5a52ce['item']);return _0x3351b2['createPositionFromPath'](_0x3b6777,_0x2b2096['path'],_0x2b2096['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3d85bd(_0x42a0a3){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x14aedb,_0x5dc8f1){super(_0x14aedb),this['focusTracker']=new _0x3b6d8e(),this['keystrokes']=new _0x174b53(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5dc8f1),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'](),_0x3bd2b4({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x24f456=_0x3ca331=>_0x3ca331['stopPropagation']();this['keystrokes']['set']('arrowright',_0x24f456),this['keystrokes']['set']('arrowleft',_0x24f456),this['keystrokes']['set']('arrowup',_0x24f456),this['keystrokes']['set']('arrowdown',_0x24f456);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x116fb0){this['revisionNameInputView']['fieldView']['element']['value']=_0x116fb0['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x28552e){const _0x57e5a8=new ti(this['locale'],_0x15a4dd),_0x29aaae=_0x57e5a8['fieldView'];_0x29aaae['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2ae84b=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x28552e&&(_0x2ae84b+='\x20('+R(this['locale'],'optional')+')'),(_0x57e5a8['label']=_0x2ae84b,_0x29aaae['on']('input',()=>{this['revisionNameInputValue']=_0x29aaae['element']['value']['trim']();}),_0x57e5a8);}}class v extends _0x58c668{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x2acb70=this['editor'],_0x5d4185=_0x2acb70['plugins']['get']('RevisionTracker');_0x2acb70['ui']['componentFactory']['add']('revisionHistory',_0x2456b4=>{const _0x55391b=_0x495954(_0x2456b4),_0x295b57=_0x55391b['panelView']['children'],_0x1dfeed=new _0x3ca227(_0x2456b4),_0x59c14b=new _0x350556(_0x2456b4),_0x4c355e=new _0x3a4504(_0x2456b4),_0x5de60b=new _0x350556(_0x2456b4),_0x590d7b=new _0x3a4504(_0x2456b4);return _0x55391b['bind']('isEnabled')['to'](_0x5d4185,'isReady',_0x5d4185,'isEnabled',_0x2acb70,'isReadOnly',(_0x1d639f,_0xd3dfb9,_0x10f33a)=>_0x1d639f&&_0xd3dfb9&&!_0x10f33a),_0x55391b['buttonView']['set']({'icon':_0x2f30b1,'label':R(_0x2456b4,'Revision\x20history'),'tooltip':!0x0}),_0x4c355e['set']({'label':R(_0x2456b4,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4c355e['bind']('isEnabled')['to'](_0x5d4185,'isReady',_0x5d4185,'isEnabled',_0x2acb70,'isReadOnly',(_0x44e7eb,_0xc017b5,_0x179f84)=>_0x44e7eb&&_0xc017b5&&!_0x179f84),_0x4c355e['on']('execute',()=>this['_showDialog']()),_0x590d7b['set']({'label':R(_0x2456b4,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x590d7b['bind']('isEnabled')['to'](_0x5d4185,'isReady',_0x2acb70,'isReadOnly',(_0x579897,_0x5c6733)=>_0x579897&&!_0x5c6733),_0x590d7b['on']('execute',()=>{_0x2acb70['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x55391b['isOpen']=!0x1,_0x2acb70['editing']['view']['focus']();}),_0x59c14b['children']['add'](_0x4c355e),_0x5de60b['children']['add'](_0x590d7b),_0x1dfeed['role']='menu',_0x1dfeed['items']['addMany']([_0x59c14b,_0x5de60b]),_0x295b57['add'](_0x1dfeed),_0x55391b;}),_0x2acb70['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x39b384=this['editor'],_0x28a774=_0x39b384['locale'],_0x51359a=new _0x56ff07(_0x28a774),_0x498899=new _0x21a5f9(_0x28a774);_0x51359a['buttonView']['set']({'icon':_0x2f30b1,'label':R(_0x28a774,'Revision\x20history')});const _0x27f10e=new _0x53662c(_0x28a774,_0x51359a),_0x2243d2=new _0x1c5b30(_0x28a774);_0x2243d2['set']({'label':R(_0x28a774,'Save\x20current\x20revision')}),_0x2243d2['delegate']('execute')['to'](_0x51359a),_0x2243d2['on']('execute',()=>{this['_showDialog']();}),_0x27f10e['children']['add'](_0x2243d2),_0x498899['items']['add'](_0x27f10e);const _0x289fb2=new _0x53662c(_0x28a774,_0x51359a),_0x1e2ea8=new _0x1c5b30(_0x28a774);return _0x1e2ea8['set']({'label':R(_0x28a774,'Open\x20revision\x20history')}),_0x1e2ea8['delegate']('execute')['to'](_0x51359a),_0x1e2ea8['on']('execute',()=>{_0x39b384['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x289fb2['children']['add'](_0x1e2ea8),_0x498899['items']['add'](_0x289fb2),_0x51359a['panelView']['children']['add'](_0x498899),_0x51359a;}['_showDialog'](){const _0x257230=this['editor'],_0x29a5e7=_0x257230['locale'],_0x1d45e2=_0x257230['plugins']['get']('Dialog'),_0x2358b9=_0x257230['plugins']['get']('RevisionTracker');function _0x50e2c2(_0x38be77){_0x257230['config']['get']('revisionHistory.requireRevisionName')&&''===_0x38be77['revisionName']?_0x38be77['revisionNameInputView']['errorText']=R(_0x29a5e7,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x257230['plugins']['get'](h)['saveRevision']({'name':_0x38be77['revisionName']}),_0x1d45e2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x50e2c2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1d45e2['show']({'id':'revisionSave','title':R(_0x29a5e7,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x257230['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1d45e2['hide']()},{'label':R(_0x257230['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5e5fbf){_0x5e5fbf['bind']('isEnabled')['to'](_0x2358b9,'isReady',_0x2358b9,'isEnabled',_0x257230,'isReadOnly',(_0x248854,_0x2010c5,_0x484f6e)=>_0x248854&&_0x2010c5&&!_0x484f6e);},'onExecute':()=>_0x50e2c2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x557d8e=this['editor'],_0x3c9073=_0x557d8e['locale'];this['_saveRevisionFormView']=new he(_0x3c9073,_0x557d8e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x42a0a3{['changeId'];['_model'];constructor(_0x471dec,_0x175186){super(_0x471dec),this['_model']=_0x175186,this['changeId']=_0x175186['id'];const _0x30b524=this['bindTemplate'],_0x4464d3=R(_0x471dec,_0x175186['data']['isSuggestion']?'Suggested\x20by':'add'==_0x175186['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x175186['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x30b524['to']('type',_0x37a35d=>'ck-revision-change__'+_0x37a35d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4464d3}]},{'text':'\x20'+_0x175186['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4962d1(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x28a5fa){super(),this['id']=_0x28a5fa['id']||_0xd8dd1b(),this['author']=_0x28a5fa['author'],this['type']=_0x28a5fa['type'],this['data']=_0x28a5fa['data']||{},this['rootName']=_0x28a5fa['rootName'],this['set']('createdAt',_0x28a5fa['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(_0x10374f,_0x42c18f){this['newRevisionId']=_0x10374f,this['oldRevisionId']=_0x42c18f,this['changes']=new _0xb3ffaf();}['_setChanges'](_0x9861f8){for(const _0x1d8021 of _0x9861f8)this['changes']['add'](_0x1d8021);}}class l extends _0x58c668{['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[_0x55c9a7,_0x58fe65,S,$];}constructor(_0x5e4c49){super(_0x5e4c49),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',(_0x13bbed,_0x43a6e9,_0x25b4c6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x16c20a=>{for(const _0xb3f3f of this['editor']['editing']['view']['document']['roots'])_0x25b4c6?_0x16c20a['removeClass']('ck-editor__editable__overlay',_0xb3f3f):_0x16c20a['addClass']('ck-editor__editable__overlay',_0xb3f3f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xd6e503=>null!==_0xd6e503),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x530fb4,_0x2a6d4c,_0x6fee8c)=>_0x530fb4&&_0x6fee8c?_0x2a6d4c['changes']['getIndex'](_0x6fee8c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x251beb,_0x467903)=>_0x251beb?_0x467903['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x58fe65);}['init'](){const _0x41f8d0=this['editor'],_0xc022d4=new ot(_0x41f8d0,{'direction':'backward'}),_0x1aa661=new ot(_0x41f8d0,{'direction':'forward'});(_0x41f8d0['commands']['add']('showPreviousChange',_0xc022d4),_0x41f8d0['commands']['add']('showNextChange',_0x1aa661),_0x41f8d0['commands']['add']('restoreRevision',new nt(_0x41f8d0)),this['on']('change:numberOfChanges',()=>{_0xc022d4['refresh'](),_0x1aa661['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x41f8d0['enableReadOnlyMode']('revision-viewer'),_0x41f8d0['plugins']['has']('WidgetToolbarRepository'))&&_0x41f8d0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x124b74){return await this['_utils']['loadRevisionData'](_0x124b74,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x124b74);}async['getRevisionRootsAttributes'](_0x478661){return await this['_utils']['loadRevisionData'](_0x478661,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x478661);}async['compare'](_0x519a87,_0x314eaa,_0x2d51fb=!0x1){if(!this['isEnabled'])return;const _0x4aa56c=this['diff'],_0x933f00=this['repository'],_0x462eb2='string'==typeof _0x519a87?_0x933f00['getRevision'](_0x519a87):_0x519a87,_0x5c821a='string'==typeof _0x314eaa?_0x933f00['getRevision'](_0x314eaa):_0x314eaa,_0xdc1209=_0x462eb2['id'],_0x4db93d=_0x5c821a?_0x5c821a['id']:null;if(!_0x2d51fb&&this['diff']&&this['diff']['newRevisionId']===_0xdc1209&&this['diff']['oldRevisionId']===_0x4db93d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xdc1209,_0x4db93d);const _0x5513b3=this['_getRevisionsRange'](_0x462eb2,_0x5c821a,!0x0)['map'](_0x1c951b=>this['_utils']['loadRevisionData'](_0x1c951b,this['adapter']));return _0x5513b3['push'](new Promise(_0x1b9da0=>{setTimeout(_0x1b9da0,0x14);})),Promise['all'](_0x5513b3)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x264030=this['_getDiff'](_0xdc1209,_0x4db93d);for(const _0x4114bb of _0x264030['changes'])this['_changeIdToChange']['set'](_0x4114bb['id'],_0x4114bb);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x582ffe=>{for(const _0x21e702 of this['editor']['model']['document']['getRootNames']())_0x582ffe['detachRoot'](_0x21e702);for(const _0x4702fe of Object['keys'](_0x264030['model'])){const _0x455c12=_0x582ffe['addRoot'](_0x4702fe);for(const _0x39b130 of Object['keys'](_0x264030['attributes'][_0x4702fe]))_0x582ffe['setAttribute'](_0x39b130,_0x264030['attributes'][_0x4702fe][_0x39b130],_0x455c12);_0x582ffe['insert'](_0x264030['model'][_0x4702fe],_0x455c12,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x264030['changes'])),this['isReady']=!0x0;})['catch'](_0x12610b=>{console['error'](_0x12610b),this['_cleanUp'](),_0x4aa56c&&(this['diff']=_0x4aa56c),this['isReady']=!0x0;});}['addRevisionData'](_0x4be039,_0x3af389){const _0xac89e4=this['repository']['createRevision'](_0x4be039);return _0xac89e4['on']('_update',(_0x387344,_0xdae75c,_0x3deb6e)=>_0x3af389(_0xdae75c,_0x3deb6e,_0xac89e4)),this['repository']['addRevision'](_0xac89e4),_0xac89e4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3b5149=>{for(const _0x27952f of this['editor']['model']['document']['getRootNames']())_0x3b5149['detachRoot'](_0x27952f);});}['_sortAndFilterDiffChanges'](_0x369dad){const _0x55ae71=[],_0x33998c=new Map();for(const _0x128d34 of this['editor']['model']['document']['getRootNames']()){const _0x42ba6d=this['editor']['editing']['view']['getDomRoot'](_0x128d34);if(!_0x42ba6d)continue;const _0x3f8a24=_0x42ba6d['getClientRects']()['item'](0x0);_0x3f8a24&&(_0x55ae71['push'](_0x128d34),_0x33998c['set'](_0x128d34,_0x3f8a24));}return _0x55ae71['sort']((_0xb39482,_0x50e99c)=>{const _0x5d4c20=_0x33998c['get'](_0xb39482),_0x30cda8=_0x33998c['get'](_0x50e99c);return _0x5d4c20['y']-_0x30cda8['y']||_0x5d4c20['x']-_0x30cda8['x'];}),(_0x369dad=_0x369dad['filter'](_0x36960a=>_0x55ae71['includes'](_0x36960a['rootName'])))['sort']((_0x3d0621,_0x4bee2f)=>_0x55ae71['indexOf'](_0x3d0621['rootName'])-_0x55ae71['indexOf'](_0x4bee2f['rootName'])),_0x369dad;}['_makeTape'](_0x203311){const _0xfca00a=Array['from'](_0x203311['markers'])['filter'](([_0x50c92d,_0x67dcf8])=>_0x50c92d['startsWith']('revision:')&&!_0x67dcf8['isCollapsed']),_0x3ec71b=Array['from'](this['editor']['model']['createRangeIn'](_0x203311)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xfca00a['length'])for(const _0x31955e of _0x3ec71b){const [_0x5cc6d1,_0x5e66be]=_0xfca00a[0x0],[,_0x1ce2a0,_0x28ab06]=_0x5cc6d1['split'](':');if(_0x5e66be['end']['isEqual'](_0x31955e['nextPosition'])&&_0xfca00a['shift'](),(_0x31955e['previousPosition']['isEqual'](_0x5e66be['start'])||_0x31955e['previousPosition']['isAfter'](_0x5e66be['start']))&&('insertion'==_0x1ce2a0?_0x31955e['isAdded']={'userId':_0x28ab06}:'deletion'==_0x1ce2a0&&(_0x31955e['isRemoved']={'userId':_0x28ab06})),0x0==_0xfca00a['length'])break;}return _0x3ec71b;}['_refreshStartEndIndex'](_0x58304f){const _0x252826=new Map();for(let _0x4a6428=0x0;_0x4a6428<_0x58304f['length'];_0x4a6428++)'text'===_0x58304f[_0x4a6428]['type']?(_0x58304f[_0x4a6428]['item']['startIndex']=_0x4a6428,_0x58304f[_0x4a6428]['item']['endIndex']=_0x4a6428):('elementStart'===_0x58304f[_0x4a6428]['type']?_0x58304f[_0x4a6428]['item']['startIndex']=_0x4a6428:'elementEnd'===_0x58304f[_0x4a6428]['type']&&(_0x58304f[_0x4a6428]['item']['endIndex']=_0x4a6428),_0x252826['set'](_0x58304f[_0x4a6428]['id'],_0x4a6428));for(const _0x3002bc of _0x252826['values']())'elementStart'===_0x58304f[_0x3002bc]['type']?_0x58304f[_0x3002bc]['item']['endIndex']=_0x252826['get'](_0x58304f[_0x3002bc]['pairId']):'elementEnd'===_0x58304f[_0x3002bc]['type']&&(_0x58304f[_0x3002bc]['item']['startIndex']=_0x252826['get'](_0x58304f[_0x3002bc]['pairId']));}['_processTape'](_0x3dd3f1){for(let _0x41d37e=0x0;_0x41d37e<_0x3dd3f1['length'];_0x41d37e++){if('elementStart'===_0x3dd3f1[_0x41d37e]['type'])_0x3dd3f1[_0x41d37e]['item']['startIndex']=_0x41d37e;else{if('elementEnd'===_0x3dd3f1[_0x41d37e]['type']){_0x3dd3f1[_0x41d37e]['item']['endIndex']=_0x41d37e;const _0x3d3f26=_0x3dd3f1[_0x41d37e]['item']['startIndex'];_0x3dd3f1[_0x3d3f26]['pairId']=_0x3dd3f1[_0x41d37e]['id'],_0x3dd3f1[_0x41d37e]['pairId']=_0x3dd3f1[_0x3d3f26]['id'];}else _0x3dd3f1[_0x41d37e]['item']['startIndex']=_0x41d37e,_0x3dd3f1[_0x41d37e]['item']['endIndex']=_0x41d37e,_0x3dd3f1[_0x41d37e]['pairId']=null;}_0x3dd3f1[_0x41d37e]['markersStart']||(_0x3dd3f1[_0x41d37e]['markersStart']=[],_0x3dd3f1[_0x41d37e]['markersEnd']=[]);}}['_markInsertions'](_0x3dd934,_0x2130f7){const _0x3f3827=_0x3dd934['filter'](_0x3b6b94=>!_0x3b6b94['isAdded']);for(let _0x28e2b1=0x0;_0x28e2b1<_0x2130f7['length'];_0x28e2b1++)_0x2130f7[_0x28e2b1]['isAdded']&&(_0x3f3827[_0x28e2b1]['isAdded']=_0x2130f7[_0x28e2b1]['isAdded']);}['_getDiff'](_0x5b1b4f,_0x5d3fc5=null){const _0x286af7=this['repository']['getRevision'](_0x5b1b4f),_0x4e6c0f=_0x5d3fc5?this['repository']['getRevision'](_0x5d3fc5):null,_0x23829c=this['_getRevisionsRange'](_0x286af7,_0x4e6c0f),_0x39186a=_0x23829c[_0x23829c['length']-0x1],_0x529b12=new Map(),_0x679a9b={'model':{},'attributes':{},'changes':[]},_0x6893f9=new Set(),_0x10674c=new Map();for(let _0x544447=_0x23829c['length']-0x1;_0x544447>=0x0;_0x544447--){const _0x1819e7=_0x23829c[_0x544447];for(const _0x2cdd53 of Object['keys'](_0x1819e7['diffData']))if(_0x1819e7['diffData'][_0x2cdd53]['attachChange']){const _0x8df62d=_0x1819e7['diffData'][_0x2cdd53]['attachChange'];_0x8df62d['isAttached']?(_0x6893f9['add'](_0x2cdd53),_0x10674c['has'](_0x2cdd53)&&_0x10674c['get'](_0x2cdd53)['userId']==_0x8df62d['userId']?_0x10674c['delete'](_0x2cdd53):_0x10674c['set'](_0x2cdd53,_0x8df62d)):_0x10674c['has'](_0x2cdd53)?(_0x6893f9['delete'](_0x2cdd53),_0x10674c['delete'](_0x2cdd53)):(_0x6893f9['add'](_0x2cdd53),_0x10674c['set'](_0x2cdd53,_0x8df62d));}else _0x6893f9['add'](_0x2cdd53);}for(const _0x286604 of _0x6893f9){const _0x3498c1=_0x10674c['has'](_0x286604)&&!_0x10674c['get'](_0x286604)['isAttached'];let _0x3fc523=_0x3498c1?_0x23829c['length']-0x1:0x0;const _0xaef10a=_0x3498c1?-0x1:0x1;for(;_0x23829c[_0x3fc523];){const _0x301b61=_0x23829c[_0x3fc523];if(_0x301b61['diffData'][_0x286604]){const _0x5b74ea=_0x3498c1?_0x301b61['diffData'][_0x286604]['attributesBefore']:_0x301b61['diffData'][_0x286604]['attributesAfter'];_0x679a9b['attributes'][_0x286604]=_0x5b74ea?_0x42d2a8(_0x5b74ea):{};break;}_0x3fc523+=_0xaef10a;}}for(const _0x553ea9 of _0x23829c){_0x553ea9['model']={};for(const _0x20e216 of _0x553ea9['authors'])_0x529b12['set'](_0x20e216['id'],_0x20e216);for(const _0x501491 of _0x6893f9){const _0x47b802=_0x553ea9['diffData'][_0x501491]?_0x553ea9['diffData'][_0x501491]['insertions']:'[]',_0x2bf043=_0x553ea9['diffData'][_0x501491]?_0x553ea9['diffData'][_0x501491]['deletions']:'[]';_0x553ea9['model'][_0x501491]={'insertions':this['_utils']['_makeModelFromViewString'](_0x47b802),'deletions':this['_utils']['_makeModelFromViewString'](_0x2bf043)};}}for(const _0x135ea9 of _0x6893f9){let _0x129962=null,_0x5e1c02=0x0;const _0x18b8d4=new Map(Array['from'](_0x286af7['model'][_0x135ea9]['insertions']['markers'])['filter'](([_0x23e11a])=>!_0x23e11a['startsWith']('revision:')));let _0x304534=0x0;for(const _0x19a28a of _0x23829c){const _0x4ede6a=this['_makeTape'](_0x19a28a['model'][_0x135ea9]['insertions']);_0x19a28a==_0x286af7?(_0x129962=_0x4ede6a,_0x5e1c02=_0x129962['length'],_0x129962['forEach'](_0x4c3a29=>{_0x4c3a29['id']=_0x304534++;}),this['_processTape'](_0x129962)):this['_markInsertions'](_0x129962,_0x4ede6a);const _0x463316=_0x129962['filter'](_0x402bfa=>!_0x402bfa['isAdded'])['map'](_0xfe5b64=>_0xfe5b64['id']);let _0x5f0965=0x0;const _0x19aaca=this['_makeTape'](_0x19a28a['model'][_0x135ea9]['deletions']);_0x19aaca['forEach'](_0x35df0b=>{_0x35df0b['isRemoved']?_0x35df0b['id']=_0x5e1c02++:_0x35df0b['id']=_0x463316[_0x5f0965++];}),this['_processTape'](_0x19aaca),this['_setDistance'](_0x129962,'isAdded'),this['_setDistance'](_0x19aaca,'isRemoved'),_0x19a28a==_0x286af7&&this['_markMarkers'](_0x129962,_0x18b8d4),_0x129962=this['_joinTapes'](_0x129962,_0x19aaca),this['_refreshStartEndIndex'](_0x129962),this['_setDistance'](_0x129962,'isRemoved');}_0x129962=_0x129962['filter'](_0x1e3b9e=>!(_0x1e3b9e['isAdded']&&_0x1e3b9e['isRemoved']));const _0x4fbd06=new Map(_0x39186a['model'][_0x135ea9]['deletions']['markers']),_0x4de152=new Set(_0x18b8d4['keys']());for(const _0x439ab2 of _0x4fbd06['keys']())_0x4de152['delete'](_0x439ab2);this['_markSuggestions'](_0x129962,_0x4de152),this['_fixObsoleteTags'](_0x129962),_0x129962=this['_removeMissingPairs'](_0x129962),_0x129962=this['_markMismatchedRemovedTags'](_0x129962),_0x129962=this['_removeUnsupportedChanges'](_0x129962);const {root:_0x119e8a,changes:_0x19d6c8}=this['_makeModelFromTape'](_0x129962,_0x529b12,_0x135ea9);_0x679a9b['model'][_0x135ea9]=_0x119e8a;const _0x4c5167=_0x10674c['get'](_0x135ea9);if(_0x4c5167){const _0x100494=_0x529b12['get'](_0x4c5167['userId']),_0x937fcf=new G({'author':_0x100494,'type':_0x4c5167['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x135ea9});_0x19d6c8['unshift'](_0x937fcf),_0x679a9b['attributes'][_0x135ea9]['revisionHistoryAttachChange']=_0x937fcf['id'];}_0x679a9b['changes']=_0x679a9b['changes']['concat'](_0x19d6c8);}return _0x679a9b;}['_markMarkers'](_0x15db4f,_0x25cd65){for(let _0x37657c=0x0;_0x37657c<_0x15db4f['length'];_0x37657c++)for(const [_0x3a1e8f,_0x24b48b]of _0x25cd65)!_0x24b48b['isCollapsed']&&_0x24b48b['start']['isEqual'](_0x15db4f[_0x37657c]['previousPosition'])&&_0x15db4f[_0x37657c]['markersStart']['push'](_0x3a1e8f),_0x24b48b['end']['isEqual'](_0x15db4f[_0x37657c]['nextPosition'])&&_0x15db4f[_0x37657c]['markersEnd']['push'](_0x3a1e8f);}['_joinTapes'](_0x4fe640,_0x246efb){let _0x28988e=[],_0x42aec2=0x0,_0x40c274=0x0;for(;_0x42aec2<_0x4fe640['length']||_0x40c274<_0x246efb['length'];){const _0x549423=_0x4fe640[_0x42aec2]||{},_0x5b572f=_0x246efb[_0x40c274]||{};if(_0x549423['id']==_0x5b572f['id'])_0x42aec2++,_0x40c274++,_0x28988e['push'](_0x549423);else{if(_0x5b572f['isRemoved']&&_0x549423['isAdded']){const {commonTape:_0x430bb5,iEnd:_0x161fdf,jEnd:_0x5a00c7}=this['_threeWayMerge'](_0x4fe640,_0x42aec2,_0x246efb,_0x40c274);_0x28988e=_0x28988e['concat'](_0x430bb5),_0x42aec2=_0x161fdf,_0x40c274=_0x5a00c7;}else _0x5b572f['isRemoved']?(_0x40c274++,_0x28988e['push'](_0x5b572f)):(_0x42aec2++,_0x28988e['push'](_0x549423));}}return _0x28988e;}['_markSuggestions'](_0x3304c9,_0x47ce77){const _0x4b857e=[];for(let _0xce170b=0x0;_0xce170b<_0x3304c9['length'];_0xce170b++){for(let _0x42d576=0x0;_0x42d576<_0x3304c9[_0xce170b]['markersStart']['length'];_0x42d576++){const _0x57ac30=_0x3304c9[_0xce170b]['markersStart'][_0x42d576];if(!_0x47ce77['has'](_0x57ac30))continue;const {group:_0x1cc965,type:_0x2742af,authorId:_0x4f3ae6}=_0x37d2c2(_0x57ac30);'revision-suggestion'!=_0x1cc965||'insertion'!=_0x2742af&&'deletion'!=_0x2742af||(_0x4b857e['unshift']({'type':_0x2742af,'name':_0x57ac30,'userId':_0x4f3ae6}),_0x3304c9[_0xce170b]['markersStart']['splice'](_0x42d576,0x1),_0x42d576--);}_0x4554e9(_0x3304c9[_0xce170b]);for(let _0x5a9947=0x0;_0x5a9947<_0x3304c9[_0xce170b]['markersEnd']['length'];_0x5a9947++){const _0x3b538c=_0x3304c9[_0xce170b]['markersEnd'][_0x5a9947];if(!_0x47ce77['has'](_0x3b538c))continue;const {group:_0x5db80d,type:_0x29ad70}=_0x37d2c2(_0x3b538c);if('revision-suggestion'!=_0x5db80d||'insertion'!=_0x29ad70&&'deletion'!=_0x29ad70)continue;_0x3304c9[_0xce170b]['markersEnd']['splice'](_0x5a9947,0x1),_0x5a9947--;const _0x3afdb6=_0x4b857e['findIndex'](_0x49fc29=>_0x49fc29['name']==_0x3b538c);_0x3afdb6>-0x1&&_0x4b857e['splice'](_0x3afdb6,0x1);}}function _0x37d2c2(_0xcbd8ee){const _0x2ea6f9=_0xcbd8ee['split'](':');return{'group':_0x2ea6f9[0x0],'type':_0x2ea6f9[0x1],'subType':_0x2ea6f9['length']>=0x5?_0x2ea6f9[0x2]:null,'id':_0x2ea6f9['length']<0x5?_0x2ea6f9[0x2]:_0x2ea6f9[0x3],'authorId':_0x2ea6f9['length']<0x5?_0x2ea6f9[0x3]:_0x2ea6f9[0x4],'markerCount':0x6==_0x2ea6f9['length']?_0x2ea6f9[0x5]:null};}function _0x4554e9(_0x57fe26){for(let _0x53a1e3=0x0;_0x53a1e3<_0x4b857e['length'];_0x53a1e3++){if(_0x57fe26['isAdded']&&'insertion'==_0x4b857e[_0x53a1e3]['type']&&_0x57fe26['isAdded']['userId']==_0x4b857e[_0x53a1e3]['userId'])return _0x57fe26['isAddSuggestion']=_0x4b857e[_0x53a1e3],void delete _0x57fe26['isAdded'];if(!_0x57fe26['isAdded']&&!_0x57fe26['isRemoved']&&'deletion'==_0x4b857e[_0x53a1e3]['type'])return void(_0x57fe26['isRemoveSuggestion']=_0x4b857e[_0x53a1e3]);}}}['_setDistance'](_0x15e24a,_0x4300f6){let _0x5add01=0x0,_0x4d0bf4=!0x1;const _0x1a0edf=new Map();for(const _0x32eec6 of _0x15e24a)_0x32eec6[_0x4300f6]?_0x4d0bf4&&(_0x5add01++,_0x4d0bf4=!0x1):(_0x5add01++,_0x4d0bf4=!0x0),_0x1a0edf['set'](_0x32eec6['id'],_0x5add01);for(let _0x447143=0x0;_0x447143<_0x15e24a['length'];_0x447143++){if('isRemoved'==_0x4300f6&&_0x15e24a[_0x447143]['isAdded']||'isAdded'==_0x4300f6&&_0x15e24a[_0x447143]['isRemoved'])continue;if('text'==_0x15e24a[_0x447143]['type']){_0x15e24a[_0x447143]['distance']=0x0;continue;}const _0x5973e9=_0x1a0edf['get'](_0x15e24a[_0x447143]['pairId']),_0x156a59=_0x1a0edf['get'](_0x15e24a[_0x447143]['id']);_0x15e24a[_0x447143]['distance']=_0x5973e9-_0x156a59;}}['_getRevisionsRange'](_0x331b64,_0x41be61,_0x165181=!0x1){const _0x281112=[];let _0x5d0d5e=this['repository']['getIndex'](_0x331b64),_0x5464e3=this['repository']['getIndex'](_0x41be61);for(-0x1==_0x5464e3&&(_0x5464e3=this['repository']['_revisions']['length'],_0x165181=!0x1);_0x5d0d5e<_0x5464e3;)_0x281112['push'](this['repository']['getRevision'](_0x5d0d5e)),_0x5d0d5e++;return _0x165181&&_0x281112['push'](this['repository']['getRevision'](_0x5d0d5e)),_0x281112;}['_threeWayMerge'](_0x10cdd7,_0x11c554,_0x3ba66a,_0x23a0bf){const _0x385ce6=this['editor']['model']['schema'];let _0x5da83e=_0x11c554;for(;_0x10cdd7[_0x5da83e]&&_0x10cdd7[_0x5da83e]['isAdded'];)_0x5da83e++;let _0x2784d0=_0x23a0bf;for(;_0x3ba66a[_0x2784d0]&&_0x3ba66a[_0x2784d0]['isRemoved'];)_0x2784d0++;_0xccdece(_0x10cdd7,_0x11c554,_0x5da83e),_0xccdece(_0x3ba66a,_0x23a0bf,_0x2784d0);const _0x3fdbcd=_0x3ba66a['slice'](_0x23a0bf,_0x2784d0)['concat'](_0x10cdd7['slice'](_0x11c554,_0x5da83e));return _0x3fdbcd['sort']((_0x202bcf,_0x46a2c6)=>_0x202bcf['side']!=_0x46a2c6['side']?_0x202bcf['side']-_0x46a2c6['side']:_0x202bcf['level']!=_0x46a2c6['level']?_0x202bcf['level']-_0x46a2c6['level']:_0x202bcf['distance']!=_0x46a2c6['distance']?_0x46a2c6['distance']-_0x202bcf['distance']:!!_0x202bcf['isAdded']!=!!_0x46a2c6['isAdded']?-0x1==_0x202bcf['side']||0x0==_0x202bcf['side']?_0x202bcf['isAdded']?-0x1:0x1:_0x202bcf['isAdded']?0x1:-0x1:_0x202bcf['index']-_0x46a2c6['index']),{'commonTape':_0x3fdbcd,'iEnd':_0x5da83e,'jEnd':_0x2784d0};function _0xccdece(_0x4ece48,_0x207cc5,_0x844795){let _0x1d38f3=-0x1,_0x25d023=Number['POSITIVE_INFINITY'],_0x1f4de4=!0x0;for(let _0x120816=_0x207cc5;_0x120816<_0x844795;_0x120816++)if(_0x385ce6['isInline'](_0x4ece48[_0x120816]['item'])||(_0x1f4de4=!0x1),_0x4ece48[_0x120816]['item']['startIndex']<_0x207cc5&&(_0x1d38f3=_0x120816),_0x4ece48[_0x120816]['item']['endIndex']>=_0x844795){_0x25d023=_0x120816;break;}_0x1f4de4&&(_0x1d38f3=_0x844795-0x1);for(let _0x1d57ed=_0x207cc5;_0x1d57ed<_0x844795;_0x1d57ed++)_0x4ece48[_0x1d57ed]['side']=_0x1d57ed<=_0x1d38f3?-0x1:_0x1d57ed<_0x25d023?0x0:0x1,_0x4ece48[_0x1d57ed]['index']=_0x1d57ed;let _0x5c20f8=0x0;for(let _0x560d52=_0x207cc5;_0x560d52<=_0x1d38f3;_0x560d52++)0x0==_0x4ece48[_0x560d52]['distance']?_0x4ece48[_0x560d52]['level']=_0x5c20f8:(_0x5c20f8++,_0x4ece48[_0x560d52]['level']=_0x5c20f8,_0x5c20f8++);for(let _0xb28b47=_0x207cc5;_0xb28b47<_0x844795;_0xb28b47++)0x0==_0x4ece48[_0xb28b47]['side']&&(_0x4ece48[_0xb28b47]['level']=_0x5c20f8);_0x5c20f8=0x0;for(let _0x2f3e84=_0x844795-0x1;_0x2f3e84>=_0x25d023;_0x2f3e84--)0x0==_0x4ece48[_0x2f3e84]['distance']?_0x4ece48[_0x2f3e84]['level']=_0x5c20f8:(_0x5c20f8--,_0x4ece48[_0x2f3e84]['level']=_0x5c20f8,_0x5c20f8--);}}['_fixObsoleteTags'](_0x27a226){const _0x3311a7=new Map(),_0x540c9d=this['editor']['model']['schema'];for(let _0x5f563d=0x1;_0x5f563d<_0x27a226['length'];_0x5f563d++){let _0x23a2b1,_0x569304,_0x107288;const _0x15bff1=_0x27a226[_0x5f563d],_0x2a192c=_0x27a226[_0x5f563d-0x1];if('text'==_0x15bff1['type'])continue;if(_0x15bff1['type']!=_0x2a192c['type'])continue;if(!_0x540c9d['isBlock'](_0x2a192c['item'])||_0x540c9d['isLimit'](_0x2a192c['item']))continue;if(!_0x540c9d['isBlock'](_0x15bff1['item'])||_0x540c9d['isLimit'](_0x15bff1['item']))continue;if((_0x27a226[_0x5f563d]['isAdded']||_0x27a226[_0x5f563d]['isAddSuggestion'])&&_0x27a226[_0x5f563d-0x1]['isRemoved'])_0x23a2b1=_0x27a226[_0x5f563d],_0x569304=_0x27a226[_0x5f563d-0x1],_0x107288=_0x5f563d-0x1;else{if(!_0x27a226[_0x5f563d]['isRemoved']||!_0x27a226[_0x5f563d-0x1]['isAdded']&&!_0x27a226[_0x5f563d-0x1]['isAddSuggestion'])continue;_0x23a2b1=_0x27a226[_0x5f563d-0x1],_0x569304=_0x27a226[_0x5f563d],_0x107288=_0x5f563d;}const _0x2801a0=_0x23a2b1['level']==_0x569304['level'],_0x3758c5=Math['abs'](_0x23a2b1['level'])<Math['abs'](_0x569304['level'])&&0x0==_0x569304['distance'];(_0x2801a0||_0x3758c5)&&(_0x3311a7['set'](_0x569304['id'],_0x23a2b1['id']),_0x27a226['splice'](_0x107288,0x1),_0x5f563d--,_0x23a2b1['isAdded']=!0x1);}for(let _0x3e9e83=0x0;_0x3e9e83<_0x27a226['length'];_0x3e9e83++)_0x3311a7['has'](_0x27a226[_0x3e9e83]['pairId'])&&(_0x27a226[_0x3e9e83]['pairId']=_0x3311a7['get'](_0x27a226[_0x3e9e83]['pairId']));}['_removeMissingPairs'](_0x117c9e){const _0x18bb7a=new Set(_0x117c9e['map'](_0x435b39=>_0x435b39['id']));for(let _0x4e037b=0x0;_0x4e037b<_0x117c9e['length'];_0x4e037b++)_0x18bb7a['has'](_0x117c9e[_0x4e037b]['pairId'])||0x0==_0x117c9e[_0x4e037b]['distance']||(_0x117c9e[_0x4e037b]['isIncorrect']=!0x0);return _0x117c9e['filter'](_0x2d2ad5=>!_0x2d2ad5['isIncorrect']);}['_markMismatchedRemovedTags'](_0xdd02d7){const _0x21002c=new Set();for(let _0x4b3e7a=0x0;_0x4b3e7a<_0xdd02d7['length'];_0x4b3e7a++){if(_0x21002c['has'](_0xdd02d7[_0x4b3e7a]['id'])&&_0xdd02d7[_0x4b3e7a]['isRemoved']&&(_0xdd02d7[_0x4b3e7a]['isIncorrect']=!0x0),_0xdd02d7[_0x4b3e7a]['isIncorrect'])continue;if(0x0==_0xdd02d7[_0x4b3e7a]['distance'])continue;if('elementStart'!=_0xdd02d7[_0x4b3e7a]['type'])continue;if(null==_0xdd02d7[_0x4b3e7a]['pairId'])continue;let _0x31b88a=_0x4b3e7a+0x1,_0x4ac93b=0x0;for(;_0xdd02d7[_0x31b88a]['id']!=_0xdd02d7[_0x4b3e7a]['pairId'];)'elementStart'==_0xdd02d7[_0x31b88a]['type']?_0x4ac93b++:'elementEnd'==_0xdd02d7[_0x31b88a]['type']&&_0x4ac93b--,_0x31b88a++;if(0x0!=_0x4ac93b){if(_0xdd02d7[_0x4b3e7a]['isRemoved'])_0xdd02d7[_0x4b3e7a]['isIncorrect']=!0x0;else{for(;_0x31b88a!=_0x4b3e7a;)_0xdd02d7[_0x31b88a]['isRemoved']&&0x0!=_0xdd02d7[_0x31b88a]['distance']&&(_0xdd02d7[_0x31b88a]['isIncorrect']=!0x0,_0x21002c['add'](_0xdd02d7[_0x31b88a]['pairId'])),_0x31b88a--;}}}return _0xdd02d7['filter'](_0x3f51ff=>!_0x3f51ff['isIncorrect']);}['_removeUnsupportedChanges'](_0x36a664){const _0x5a4c6a=this['editor']['model']['schema'];for(let _0x1343b9=0x0;_0x1343b9<_0x36a664['length'];_0x1343b9++){if(!(_0x36a664[_0x1343b9]['isAdded']||_0x36a664[_0x1343b9]['isAddSuggestion']||_0x36a664[_0x1343b9]['isRemoved']||_0x36a664[_0x1343b9]['isRemoveSuggestion']))continue;if(0x0==_0x36a664[_0x1343b9]['distance'])continue;const _0x4ba68e=_0x36a664[_0x1343b9]['item'];_0x5a4c6a['isBlock'](_0x4ba68e)||_0x5a4c6a['isLimit'](_0x4ba68e)||(_0x36a664[_0x1343b9]['isAdded']&&delete _0x36a664[_0x1343b9]['isAdded'],_0x36a664[_0x1343b9]['isAddSuggestion']&&delete _0x36a664[_0x1343b9]['isAddSuggestion'],_0x36a664[_0x1343b9]['isRemoveSuggestion']&&delete _0x36a664[_0x1343b9]['isRemoveSuggestion'],_0x36a664[_0x1343b9]['isRemoved']&&(_0x36a664[_0x1343b9]['isIncorrect']=!0x0));}return _0x36a664['filter'](_0x5c454b=>!_0x5c454b['isIncorrect']);}['_makeModelFromTape'](_0x489105,_0x1688a7,_0x3940f6){const _0x2fc6f3=new _0x5c4cfd(),_0x12e7f0=[],_0x5652fa=new Map(),_0x58aca7=this['editor']['model'],_0x2e7ad1=_0x58aca7['schema'],_0x3b8874=[_0x2fc6f3],_0x1891e4={},_0x215dea={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x453f64=null;const _0x596d5c=[0x0];for(let _0x148dd4=0x0;_0x148dd4<_0x489105['length'];_0x148dd4++)if('elementStart'===_0x489105[_0x148dd4]['type']){_0x489105[_0x148dd4]['previousPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c);const _0xf634d5=new _0x7cb355(_0x489105[_0x148dd4]['item']['name'],_0x489105[_0x148dd4]['item']['getAttributes']());_0x3b8874[0x0]['_appendChild'](_0xf634d5),_0x596d5c['push'](0x0),_0x3b8874['unshift'](_0xf634d5),_0x489105[_0x148dd4]['nextPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c);}else'elementEnd'===_0x489105[_0x148dd4]['type']?(_0x3b8874['shift'](),_0x489105[_0x148dd4]['previousPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c),_0x596d5c['pop'](),_0x596d5c[_0x596d5c['length']-0x1]++,_0x489105[_0x148dd4]['nextPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c)):(_0x489105[_0x148dd4]['previousPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c),_0x453f64?_0x453f64['_data']+=_0x489105[_0x148dd4]['item']['data']:_0x453f64=new _0x56fb43(_0x489105[_0x148dd4]['item']['data'],_0x489105[_0x148dd4]['item']['getAttributes']()),_0x489105[_0x148dd4+0x1]&&'text'===_0x489105[_0x148dd4+0x1]['type']&&_0x212d5f(_0x453f64,_0x489105[_0x148dd4+0x1]['item'])||(_0x3b8874[0x0]['_appendChild'](_0x453f64),_0x453f64=null),_0x596d5c[_0x596d5c['length']-0x1]+=_0x489105[_0x148dd4]['item']['offsetSize'],_0x489105[_0x148dd4]['nextPosition']=_0x58aca7['createPositionFromPath'](_0x2fc6f3,_0x596d5c));for(let _0x3609a0=0x0;_0x3609a0<_0x489105['length'];_0x3609a0++){const _0x35dd23=_0x489105[_0x3609a0]['previousPosition'],_0x4bb17f=_0x489105[_0x3609a0]['nextPosition'];for(const _0x563163 of _0x489105[_0x3609a0]['markersStart'])_0x5652fa['set'](_0x563163,{'start':_0x35dd23,'end':null});_0x2c8ea3('isRemoveSuggestion',_0x3609a0,_0x35dd23,_0x4bb17f),_0x2c8ea3('isAddSuggestion',_0x3609a0,_0x35dd23,_0x4bb17f),_0x2c8ea3('isRemoved',_0x3609a0,_0x35dd23,_0x4bb17f),_0x2c8ea3('isAdded',_0x3609a0,_0x35dd23,_0x4bb17f);for(const _0x39f3b6 of _0x489105[_0x3609a0]['markersEnd']){const _0x1106ea=_0x5652fa['get'](_0x39f3b6);_0x1106ea?_0x1106ea['end']=_0x4bb17f:_0x5652fa['set'](_0x39f3b6,{'start':_0x4bb17f,'end':_0x4bb17f});}}for(const [_0x1a622a,_0x4f5f2e]of _0x5652fa){const _0x5d8481=this['editor']['model']['createRange'](_0x4f5f2e['start'],_0x4f5f2e['end']);_0x2fc6f3['markers']['set'](_0x1a622a,_0x5d8481);}return _0x12e7f0['sort']((_0x3f0d29,_0x36d04e)=>{const _0x49161e=_0x2fc6f3['markers']['get']('revision:'+_0x3f0d29['id']),_0x3acc88=_0x2fc6f3['markers']['get']('revision:'+_0x36d04e['id']);return _0x49161e['start']['isBefore'](_0x3acc88['start'])?-0x1:_0x49161e['start']['isAfter'](_0x3acc88['start'])?0x1:_0x49161e['end']['isBefore'](_0x3acc88['end'])?-0x1:_0x49161e['end']['isAfter'](_0x3acc88['end'])?0x1:'add'===_0x3f0d29['type']?-0x1:0x1;}),{'root':_0x2fc6f3,'changes':_0x12e7f0};function _0x2c8ea3(_0x2b064d,_0x62b5b8,_0x202e2c,_0x4ba717){const _0x1dc862=!!_0x489105[_0x62b5b8][_0x2b064d],_0x42b54a=_0x1dc862?_0x489105[_0x62b5b8][_0x2b064d]['userId']:null,_0x206930=_0x62b5b8===_0x489105['length']-0x1,_0x14046b=_0x215dea[_0x2b064d][0x0],_0x401be7=_0x2e7ad1['isObject'](_0x489105[_0x62b5b8]['item']);!_0x1891e4[_0x2b064d]&&_0x1dc862?_0x1891e4[_0x2b064d]={'start':_0x202e2c,'tapeItem':_0x489105[_0x62b5b8],'userId':_0x42b54a,'type':_0x2b064d}:_0x1891e4[_0x2b064d]&&!_0x1dc862?(_0x1891e4[_0x2b064d]['end']=_0x202e2c,_0x5090b1(_0x1891e4[_0x2b064d]),_0x1891e4[_0x2b064d]=null):_0x1891e4[_0x2b064d]&&_0x1dc862&&_0x1891e4[_0x2b064d]['userId']!==_0x42b54a&&(_0x1891e4[_0x2b064d]['end']=_0x202e2c,_0x14046b&&_0x14046b['userId']===_0x1891e4[_0x2b064d]['userId']||_0x5090b1(_0x1891e4[_0x2b064d]),_0x1891e4[_0x2b064d]={'start':_0x202e2c,'tapeItem':_0x489105[_0x62b5b8],'userId':_0x42b54a,'type':_0x2b064d}),_0x1891e4[_0x2b064d]&&_0x401be7&&('elementStart'!==_0x489105[_0x62b5b8]['type']||_0x14046b&&_0x14046b['userId']===_0x42b54a||_0x215dea[_0x2b064d]['unshift']({'userId':_0x42b54a,'object':_0x489105[_0x62b5b8]['item'],'change':_0x1891e4[_0x2b064d]}),'elementEnd'===_0x489105[_0x62b5b8]['type']&&_0x14046b&&_0x14046b['object']===_0x489105[_0x62b5b8]['item']&&(_0x215dea[_0x2b064d]['shift'](),_0x1891e4[_0x2b064d]=_0x14046b['change'])),_0x1891e4[_0x2b064d]&&_0x206930&&(_0x1891e4[_0x2b064d]['end']=_0x4ba717,_0x5090b1(_0x1891e4[_0x2b064d]),_0x1891e4[_0x2b064d]=null);}function _0x5090b1({start:_0x639de5,end:_0x2434b0,tapeItem:_0x40e0b0,userId:_0x5b4ed0,type:_0x357b47}){const _0x37a62c=_0x40e0b0['item'],_0x452cb1=_0x58aca7['schema']['isBlock'](_0x37a62c)&&!_0x58aca7['schema']['isLimit'](_0x37a62c),_0x537fc0=_0x639de5['nodeAfter']==_0x2434b0['parent']&&_0x2434b0['isAtStart'];if(_0x452cb1&&_0x537fc0)return;const _0x21497c=_0x58aca7['createRange'](_0x639de5,_0x2434b0),_0x10649c=_0x1688a7['get'](_0x5b4ed0),_0x1b982b=new G({'author':_0x10649c,'type':'isAdded'==_0x357b47||'isAddSuggestion'==_0x357b47?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x357b47||'isRemoveSuggestion'==_0x357b47},'createdAt':new Date(),'rootName':_0x3940f6});_0x12e7f0['push'](_0x1b982b),_0x2fc6f3['markers']['set']('revision:'+_0x1b982b['id'],_0x21497c);}function _0x212d5f(_0x21bf5a,_0xa17679){const _0x2722b9=_0x21bf5a['getAttributes'](),_0x114edc=_0xa17679['getAttributes']();for(const _0x3642ab of _0x2722b9){if(_0x3642ab[0x1]!==_0xa17679['getAttribute'](_0x3642ab[0x0]))return!0x1;_0x114edc['next']();}return _0x114edc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1219a6=>{const _0x4dff33=_0x1219a6['markerName']['split'](':')[0x1],_0x4b01bb=this['_getChangeFromId'](_0x4dff33);if(!_0x4b01bb)return null;const _0x4d05c9='add'==_0x4b01bb['type']?'insertion':'deletion',_0x18963c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4d05c9];return _0x4b01bb['data']['isSuggestion']&&_0x18963c['push']('ck-suggestion-marker-'+_0x4d05c9+'-new'),this['activeChange']==_0x4b01bb&&_0x18963c['push']('ck-suggestion-marker--active'),{'classes':_0x18963c,'attributes':{'data-change-id':_0x4dff33}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x7b1e51=>{_0x7b1e51['on']('element:pre',(_0x1a3897,_0x2c307a,_0x12f514)=>{const _0x3e3ecd=_0x2c307a['viewItem']['getChild'](0x0);if(!_0x3e3ecd||!_0x3e3ecd['is']('element','code'))return;if(!_0x12f514['consumable']['consume'](_0x3e3ecd,{'attributes':['vid_start','vid_end']}))return;const _0x4b0b29=_0x2c307a['modelRange']['start']['nodeAfter'];_0x12f514['writer']['setAttribute']('vid_start',_0x3e3ecd['getAttribute']('vid_start'),_0x4b0b29),_0x12f514['writer']['setAttribute']('vid_end',_0x3e3ecd['getAttribute']('vid_end'),_0x4b0b29);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xb55095=>{_0xb55095['on']('element',(_0x2838a8,_0x16a6ad,_0x2ab010)=>{if(!_0x2ab010['consumable']['consume'](_0x16a6ad['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x16a6ad['modelRange']['isCollapsed'])return;const _0x30b9f0=_0x16a6ad['modelRange']['start']['nodeAfter'];_0x30b9f0['hasAttribute']('vid_start')||_0x30b9f0['hasAttribute']('vid')||(_0x2ab010['writer']['setAttribute']('vid_start',_0x16a6ad['viewItem']['getAttribute']('vid_start'),_0x30b9f0),_0x2ab010['writer']['setAttribute']('vid_end',_0x16a6ad['viewItem']['getAttribute']('vid_end'),_0x30b9f0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4d7250=>_0x4d7250['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2e1eed,[,_0x5607fa])=>{['vid_start','vid_end','vid']['includes'](_0x5607fa)&&(_0x2e1eed['return']=!0x0,_0x2e1eed['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3a60ce=>{_0x3a60ce['on']('attribute:vid',(_0x301ef4,_0x2b1307,_0xbfdcf5)=>{if('\x20'!=_0x2b1307['item']['data']||_0x2b1307['item']['parent']['maxOffset']>0x1)return;if(!_0xbfdcf5['consumable']['consume'](_0x2b1307['item'],_0x301ef4['name']))return;const _0x12c2d7=_0xbfdcf5['writer'],_0x773902=_0xbfdcf5['mapper']['toViewRange'](_0x2b1307['range']);_0x12c2d7['wrap'](_0x773902,_0x12c2d7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3cc726){const _0x1917ed=_0x3cc726['plugins']['get']('RevisionViewer');return(_0x3af09c,_0x4e4875,_0x4e4b0e)=>{const _0x902f8=_0x4e4875['markerName']['split'](':')[0x1],_0x20cb4b=_0x1917ed['_getChangeFromId'](_0x902f8);if(!_0x20cb4b)return null;const _0x3638b='add'==_0x20cb4b['type']?'split':'merge';if(!_0x4e4b0e['consumable']['test'](_0x4e4875['markerRange'],_0x3af09c['name']))return;const _0x1d11f8=_0x4e4875['markerRange']['getWalker'](),_0x347d29=_0x4e4875['markerRange']['start'],_0x4464af=_0x3cc726['model']['schema'];let _0x2d6e8a=null,_0x343e16=null,_0x42b961=!0x1,_0x3d1960=!0x1;for(const _0x218dfa of _0x1d11f8){const _0x1e9b49=_0x218dfa['item'];_0x42b961=_0x42b961||_0x4464af['isContent'](_0x1e9b49);const _0x5a6b8e=_0x4e4b0e['mapper']['toViewElement'](_0x1e9b49);if(_0x5a6b8e&&_0x5a6b8e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x218dfa['type']&&(_0x4464af['isBlock'](_0x1e9b49)&&!_0x4464af['isLimit'](_0x1e9b49)&&(_0x1e9b49['nextSibling']||_0x347d29['isAtEnd']?_0x2d6e8a&&_0x2d6e8a['parent']==_0x1e9b49||(_0x2d6e8a=_0x1e9b49,_0x5ee789(_0x218dfa['previousPosition']),_0x3d1960=!0x0):_0x343e16=_0x343e16||_0x218dfa['previousPosition']));}function _0x5ee789(_0x1f6b9a){const _0x3041e3=_0x4e4b0e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3638b}),_0x30816a=_0x4e4b0e['mapper']['toViewPosition'](_0x1f6b9a);_0x20cb4b['data']['isSuggestion']&&_0x4e4b0e['writer']['addClass']('ck-suggestion-marker-'+_0x3638b+'-new',_0x3041e3),_0x1917ed['activeChange']==_0x20cb4b&&_0x4e4b0e['writer']['addClass']('ck-suggestion-marker--active',_0x3041e3),_0x4e4b0e['writer']['insert'](_0x30816a,_0x3041e3),_0x4e4b0e['mapper']['bindElementToMarker'](_0x3041e3,_0x4e4875['markerName']);}_0x42b961||_0x3d1960||!_0x343e16||_0x5ee789(_0x343e16);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4aeff4,_0x32176c,_0x247ec2)=>{const _0x2a5a61=_0x247ec2['mapper']['markerNameToElements'](_0x32176c['markerName']);if(_0x2a5a61){for(const _0x39cebd of _0x2a5a61)(_0x39cebd['hasClass']('ck-suggestion-marker-split')||_0x39cebd['hasClass']('ck-suggestion-marker-merge'))&&(_0x247ec2['mapper']['unbindElementFromMarkerName'](_0x39cebd,_0x32176c['markerName']),_0x247ec2['writer']['remove'](_0x39cebd));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2ca3dc,_0x2fc67d,_0x54ab9b)=>{const _0x482a20=_0x2fc67d['markerName']['split'](':')[0x1],_0x519ca3=this['_getChangeFromId'](_0x482a20);if(!_0x519ca3)return null;const _0x4a5701='add'==_0x519ca3['type']?'split':'merge';if(_0x54ab9b['consumable']['test'](_0x2fc67d['markerRange'],_0x2ca3dc['name']))for(const _0x19cdc0 of _0x2fc67d['markerRange']['getItems']()){if(!_0x19cdc0['is']('element','softBreak'))continue;const _0x26cb20=_0x54ab9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a5701}),_0x528342=_0x54ab9b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x19cdc0));_0x519ca3['data']['isSuggestion']&&_0x54ab9b['writer']['addClass']('ck-suggestion-marker-'+_0x4a5701+'-new',_0x26cb20),this['activeChange']==_0x519ca3&&_0x54ab9b['writer']['addClass']('ck-suggestion-marker--active',_0x26cb20),_0x54ab9b['writer']['insert'](_0x528342,_0x26cb20),_0x54ab9b['mapper']['bindElementToMarker'](_0x26cb20,_0x2fc67d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x22b448=>{for(const _0x548d14 of this['editor']['model']['document']['getRootNames']()){const _0x564fae=this['editor']['model']['document']['getRoot'](_0x548d14),_0x52bedc=this['editor']['editing']['view']['document']['getRoot'](_0x548d14);if(_0x52bedc){const _0x4b66e0=_0x564fae['getAttribute']('revisionHistoryAttachChange');if(_0x22b448['removeAttribute']('data-change-id',_0x52bedc),_0x22b448['removeClass']('ck-revision-history-root-add',_0x52bedc),_0x22b448['removeClass']('ck-revision-history-root-remove',_0x52bedc),_0x22b448['removeClass']('ck-revision-history-root--active',_0x52bedc),_0x4b66e0){const _0x556668=this['_getChangeFromId'](_0x4b66e0);if(!_0x556668)return null;_0x22b448['setAttribute']('data-change-id',_0x4b66e0,_0x52bedc),_0x22b448['addClass']('ck-revision-history-root-'+_0x556668['type'],_0x52bedc),this['activeChange']==_0x556668&&_0x22b448['addClass']('ck-revision-history-root--active',_0x52bedc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xce54d2=>'revision-comment:'+_0xce54d2,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xba40e8=>'revision-suggestion:'+_0xba40e8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3bdba7=>({'name':'suggestion:'+_0x3bdba7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x19fdf0=>{const _0x41a1c4=_0x19fdf0['markerName']['split'](':')[0x1];return'insertion'!=_0x41a1c4&&'deletion'!=_0x41a1c4?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x41a1c4]};}}),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',(_0x171162,_0x1d853f,_0x4c768b)=>{const _0x827bd1=_0x4c768b['mapper']['markerNameToElements'](_0x1d853f['markerName']);if(_0x827bd1){for(const _0x3fc984 of _0x827bd1)_0x3fc984['is']('uiElement')&&(_0x4c768b['mapper']['unbindElementFromMarkerName'](_0x3fc984,_0x1d853f['markerName']),_0x4c768b['writer']['remove'](_0x3fc984));}},{'priority':'high'});}['_getChangeFromId'](_0x3df8cf){return this['_changeIdToChange']['get'](_0x3df8cf);}['_getViewForChange'](_0x1bd6b5){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x1bd6b5),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x305645,_0x52592f,_0x3bd4eb,_0x4d09ab)=>{_0x4d09ab&&this['_balloon']['remove'](_0x4d09ab),_0x3bd4eb&&(this['_balloon']['add']({'view':_0x3bd4eb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x35cfdc=this['editor']['editing'],_0x22d56c=this['_getChangeFromId'](_0x3bd4eb['changeId']);let _0x18fc01;if(_0x22d56c['data']['isOnRoot']){const _0x493764=_0x35cfdc['view']['getDomRoot'](_0x22d56c['rootName']);_0x18fc01=Array['from'](_0x493764['getClientRects']());}else{const _0x371abd=this['editor']['model']['markers']['get']('revision:'+_0x3bd4eb['changeId']);_0x18fc01=Array['from'](_0x35cfdc['mapper']['markerNameToElements'](_0x371abd['name']))['map'](_0x106eb0=>_0x35cfdc['view']['domConverter']['mapViewToDom'](_0x106eb0))['map'](_0x6b5536=>Array['from'](_0x6b5536['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x18fc01[0x0];return _0x18fc01['find'](_0x356756=>_0x356756['top']-0x3<=this['_activeViewTarget']['y']&&_0x356756['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x356756['left']-0x3<=this['_activeViewTarget']['x']&&_0x356756['right']+0x3>=this['_activeViewTarget']['x'])||_0x18fc01[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2ca613,_0x35c106,_0x160460,_0x1ff477)=>{this['activeView']=_0x160460?this['_getViewForChange'](_0x160460):null,this['editor']['model']['change'](()=>{const _0x2fd2a3=this['editor']['editing'];_0x1ff477&&(_0x1ff477['data']['isOnRoot']?_0x2fd2a3['view']['change'](_0x4e8667=>{_0x4e8667['removeClass']('ck-revision-history-root--active',_0x2fd2a3['view']['document']['getRoot'](_0x1ff477['rootName']));}):_0x2fd2a3['reconvertMarker']('revision:'+_0x1ff477['id'])),_0x160460&&(_0x160460['data']['isOnRoot']?_0x2fd2a3['view']['change'](_0x408536=>{_0x408536['addClass']('ck-revision-history-root--active',_0x2fd2a3['view']['document']['getRoot'](_0x160460['rootName']));}):_0x2fd2a3['reconvertMarker']('revision:'+_0x160460['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x11792c,_0x497de5)=>{if(this['activeChange'])return;const _0x1e1c5f=this['_findChangeIdFromDomTarget'](_0x497de5['target']),_0x24ba65=this['_changeIdToChange']['get'](_0x1e1c5f);_0x24ba65?(this['_activeViewTarget']={'x':_0x497de5['domEvent']['x'],'y':_0x497de5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x24ba65)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1ded2b,_0x27f568)=>{const _0x15ecec=this['_findChangeIdFromDomTarget'](_0x27f568['target']),_0x4e04c5=this['_changeIdToChange']['get'](_0x15ecec);_0x4e04c5?(this['_activeViewTarget']={'x':_0x27f568['domEvent']['x'],'y':_0x27f568['domEvent']['y']},_0x4e04c5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4e04c5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x30fac0){do{const _0x4f3ed7=_0x30fac0['getAttribute']('data-change-id');if(_0x4f3ed7)return _0x4f3ed7;_0x30fac0=_0x30fac0['parent'];}while(_0x30fac0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1720e4=>{for(const _0x25ba3b of this['editor']['model']['markers'])_0x1720e4['removeMarker'](_0x25ba3b);});}}function Q(_0x5e96e5,_0x2291bc){return(_0x161a16,_0x3a2906,_0x211a8f)=>{if(!_0x211a8f['consumable']['test'](_0x3a2906['markerRange'],_0x161a16['name']))return;const _0xed6d21=_0x3a2906['markerRange']['getWalker'](),_0x53151e=_0x3a2906['markerRange']['start'],_0x5f1484=_0x5e96e5['model']['schema'];let _0x2a2491=null,_0x4bd6a9=null,_0x3e3a44=!0x1,_0x11821e=!0x1;for(const _0x3428b3 of _0xed6d21){const _0x3659bd=_0x3428b3['item'];_0x3e3a44=_0x3e3a44||_0x5f1484['isContent'](_0x3659bd);const _0x3d2894=_0x211a8f['mapper']['toViewElement'](_0x3659bd);if(_0x3d2894&&_0x3d2894['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3428b3['type']&&(_0x5f1484['isBlock'](_0x3659bd)&&!_0x5f1484['isLimit'](_0x3659bd)&&(_0x3659bd['nextSibling']||_0x53151e['isAtEnd']?_0x2a2491&&_0x2a2491['parent']==_0x3659bd||(_0x2a2491=_0x3659bd,_0x2be686(_0x3428b3['previousPosition']),_0x11821e=!0x0):_0x4bd6a9=_0x4bd6a9||_0x3428b3['previousPosition']));}function _0x2be686(_0x2752f3){const _0x5c3f83=_0x211a8f['mapper']['toViewPosition'](_0x2752f3),_0x34ef16=_0x211a8f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2291bc});_0x211a8f['writer']['insert'](_0x5c3f83,_0x34ef16),_0x211a8f['mapper']['bindElementToMarker'](_0x34ef16,_0x3a2906['markerName']);}_0x3e3a44||_0x11821e||!_0x4bd6a9||_0x2be686(_0x4bd6a9);};}class nt extends _0x54af08{constructor(_0x3bf7f5){super(_0x3bf7f5);const _0x5ca008=_0x3bf7f5['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x5ca008,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ca008,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xb508e1=this['editor'],_0x141e43=_0xb508e1['plugins']['get'](l),_0x87f24e=_0x141e43['isReady']?_0x141e43['diff']['newRevisionId']:null;_0xb508e1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x87f24e);}['refresh'](){const {isReady:_0x1c85fd,isEnabled:_0x3fef3a,repository:_0x103faf,diff:_0x55ced6}=this['editor']['plugins']['get'](l),_0x4dff49=_0x55ced6&&_0x103faf['getLaterVisibleRevision'](_0x55ced6['newRevisionId']);this['isEnabled']=_0x1c85fd&&_0x3fef3a&&Boolean(_0x4dff49);}}class ot extends _0x54af08{['_step'];constructor(_0x1baace,{direction:_0x4ae6dc}){super(_0x1baace);const _0x52e9d1=_0x1baace['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x4ae6dc?0x1:-0x1,this['listenTo'](_0x52e9d1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x52e9d1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x52e9d1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x167cc8=this['editor'],_0x2426e0=_0x167cc8['plugins']['get'](l),{isNavigationMode:_0x44d7f0,currentChangeNumber:_0x5d4dc0}=_0x2426e0;let _0x3b56fb;if(_0x2426e0['activeChange']=_0x44d7f0?_0x2426e0['diff']['changes']['get'](_0x5d4dc0+this['_step']):_0x2426e0['diff']['changes']['first'],_0x2426e0['activeChange']['data']['isOnRoot'])_0x3b56fb=_0x167cc8['editing']['view']['getDomRoot'](_0x2426e0['activeChange']['rootName']);else{const _0x537f97=_0x167cc8['model']['markers']['get']('revision:'+_0x2426e0['activeChange']['id']);_0x3b56fb=_0xbb88e9(_0x167cc8['editing'],_0x537f97);}_0x10a95c({'target':_0x3b56fb,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5bb14c,currentChangeNumber:_0x608282,numberOfChanges:_0x288b69,isReady:_0x5a35ac,isEnabled:_0x20b205}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x20b205&&_0x5a35ac&&_0x288b69)&&(!_0x5bb14c||(0x1===this['_step']?_0x608282<_0x288b69-0x1:_0x608282>0x0));}}class Ri extends _0x42a0a3{constructor(_0x5bab6e){super(_0x5bab6e);const _0x6ecb86=this['bindTemplate'],_0x403433=new _0x3a4504(_0x5bab6e),_0x4b369b=new _0x3a4504(_0x5bab6e);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',(_0x11d01e,_0x4bdff2)=>_0x11d01e&&_0x4bdff2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4b7e53,_0x34d2f5,_0x2ead98,_0x58697e)=>{if(!_0x4b7e53)return R(_0x5bab6e,'Loading...');if(!_0x2ead98)return R(_0x5bab6e,'No\x20changes');const _0x46f2df=R(_0x5bab6e,'NUMBER_OF_CHANGES',_0x2ead98);return _0x58697e?R(_0x5bab6e,'X_OF_Y_CHANGES',[_0x34d2f5+0x1,_0x2ead98]):_0x46f2df;}),_0x403433['set']({'label':R(_0x5bab6e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3677e3}),_0x4b369b['set']({'label':R(_0x5bab6e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2f3961}),_0x403433['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4b369b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x403433['on']('execute',()=>this['fire']('execute','backward')),_0x4b369b['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',_0x6ecb86['if']('_isStatusLabelVisible','ck-hidden',_0x24f75b=>!_0x24f75b)]},'children':[{'text':_0x6ecb86['to']('isNavigationMode',_0x18f054=>_0x18f054?R(_0x5bab6e,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5bab6e,'Total')+':\x20')}]},{'text':_0x6ecb86['to']('_statusText')}]},new _0x356867(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x403433,_0x4b369b]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x58c668{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4b9f65=this['editor']['editing']['view'];_0x4b9f65['change'](_0x301264=>{for(const _0x88dd58 of _0x4b9f65['document']['roots'])_0x301264['addClass'](ge,_0x88dd58);});}['hide'](){const _0x5558f4=this['editor']['editing']['view'];_0x5558f4['change'](_0xccf707=>{for(const _0x1c0651 of _0x5558f4['document']['roots'])_0xccf707['removeClass'](ge,_0x1c0651);});}}class u extends _0x58c668{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x4c8595=this['editor'],_0x564fc8=_0x4c8595['plugins']['get'](l),_0x575a8b=_0x4c8595['plugins']['get'](ji);_0x4c8595['ui']['componentFactory']['add']('exitToEditing',_0x4c3186=>{const _0x2e0bc7=new _0x3a4504(_0x4c3186);return _0x2e0bc7['set']({'label':R(_0x4c3186,'Back\x20to\x20editing'),'icon':_0x2ce0a5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2e0bc7,'execute',()=>{_0x4c8595['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2e0bc7;}),_0x4c8595['ui']['componentFactory']['add']('restoreRevision',_0x140e67=>{const _0x34c0d9=new _0x3a4504(_0x140e67);return _0x34c0d9['set']({'label':R(_0x140e67,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x34c0d9['bind']('isEnabled')['to'](_0x4c8595['commands']['get']('restoreRevision')),this['listenTo'](_0x34c0d9,'execute',()=>_0x4c8595['execute']('restoreRevision')),_0x34c0d9;}),_0x4c8595['ui']['componentFactory']['add']('changesNavigation',_0x274320=>{const _0x5725b0=new Ri(_0x274320),_0x51ba3b=_0x4c8595['commands']['get']('showPreviousChange'),_0x160649=_0x4c8595['commands']['get']('showNextChange');return _0x5725b0['bind']('isBackwardNavigationEnabled')['to'](_0x51ba3b,'isEnabled'),_0x5725b0['bind']('isForwardNavigationEnabled')['to'](_0x160649,'isEnabled'),_0x5725b0['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x564fc8),this['listenTo'](_0x5725b0,'execute',(_0x3c64dc,_0x142176)=>{_0x4c8595['execute']('forward'===_0x142176?'showNextChange':'showPreviousChange');}),_0x5725b0;}),_0x575a8b['show'](),_0x564fc8['on']('change:isReady',(_0x5bdcb9,_0x5be5a9,_0x151d89)=>{_0x151d89?_0x575a8b['hide']():_0x575a8b['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x398d37,_0x2d52bf){super(_0x398d37,_0x2d52bf);const _0x267206=this['bindTemplate'];this['set']({'label':R(_0x398d37,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x398d37,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x267206['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 _0x4d9f03=this['fieldView']['element'];this['_tooltipString']=_0x4d9f03['scrollWidth']>_0x4d9f03['clientWidth']&&_0x4d9f03['value']||'';}}class vi extends _0x42a0a3{constructor(_0x56ba9c,_0x2e9c69,_0x18ecf6){super(_0x56ba9c);const _0x4fdcaf=new _0x4dd300();_0x4fdcaf['set']({'content':_0x43f832,'viewBox':'0\x200\x2011\x2010'});const _0x76cf6e=['ck','ck-revision-history-sidebar__revision-author'];_0x18ecf6&&_0x76cf6e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x19e823=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x56ba9c,_0x18ecf6?'Revision\x20creator':'Revision\x20author')},'children':[_0x4fdcaf,_0x2e9c69['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x76cf6e},'children':_0x19e823});}}function mi(_0x2f4ec4,_0x7f5878){const _0x26fcb3=_0x2f4ec4['bindTemplate'],_0x1536f0=_0x2f4ec4['locale'],_0x413363=_0x495954(_0x1536f0);_0x413363['panelPosition']='sw';const _0x52ca93=function(_0x42f6d1,_0x10be9c){const _0x4a953c=function(_0xf54c2,_0x231057){const _0x98d17b=_0xf54c2['locale'],_0x2389ee={'Compare\x20against\x20selected':R(_0x98d17b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x98d17b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x98d17b,'Restore\x20this\x20revision')};return _0x231057['map'](_0x3930f2=>{const _0x3515cf=_0x2389ee[_0x3930f2['name']];return _0x3515cf&&_0x3515cf!==_0x3930f2['name']&&(_0x3930f2['name']=_0x3515cf),_0x3930f2;});}(_0x42f6d1,_0x10be9c),_0x1edc73=new _0xb3ffaf();for(const _0x5952ce of _0x4a953c){const _0x4120bc={'type':'button','model':new to({'label':_0x5952ce['name'],'class':_0x5952ce['class'],'withText':!0x0,'role':'menuitem','_action':_0x5952ce['action']})};_0x4120bc['model']['bind']('isEnabled')['to'](_0x42f6d1,'isActionsDropdownOpen',_0x57f2d5=>'function'!=typeof _0x5952ce['isEnabled']||(!_0x57f2d5||_0x5952ce['isEnabled'](_0x42f6d1))),_0x1edc73['add'](_0x4120bc);}return _0x1edc73;}(_0x2f4ec4,_0x7f5878);return _0x2f4ec4['bind']('isActionsDropdownOpen')['to'](_0x413363,'isOpen'),_0x413363['buttonView']['set']({'label':R(_0x1536f0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x81e4f5}),_0x413363['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x26fcb3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x26fcb3['to'](_0x10c18c=>_0x10c18c['stopPropagation']())}}),_0x413363['on']('execute',_0x4739b2=>{_0x2f4ec4['isReady']&&'function'==typeof _0x4739b2['source']['_action']&&_0x4739b2['source']['_action'](_0x2f4ec4);}),_0x51e72a(_0x413363,_0x52ca93,{'role':'menu'}),_0x413363['listenTo'](_0x2f4ec4,'change:isActionsDropdownOpen',(_0x34b416,_0x14c358,_0x37383f)=>{if(_0x37383f)for(const _0x355d56 of _0x413363['listView']['items']){const _0x2f63b2=_0x355d56['children']['first'],_0xeb5df3=_0x7f5878['find'](_0x21182b=>_0x21182b['action']===_0x2f63b2['_action'])['isVisible'];_0x355d56['isVisible']=void 0x0===_0xeb5df3||_0xeb5df3(_0x2f4ec4);}}),_0x413363;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x31ef6e(_0x42a0a3){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1bc52c,_0x258c5e,_0x30698f,_0x43af9a){super(_0x1bc52c);const _0x51a24c=this['bindTemplate'],_0x3d05f2=function(_0x233ef2,_0x597f39){const _0x293acf=Array['from'](_0x597f39['authors'])['filter'](_0x347e9b=>_0x347e9b!=_0x597f39['creator']);return _0x597f39['creator']&&_0x293acf['unshift'](_0x597f39['creator']),_0x293acf['map'](_0x5e8782=>new vi(_0x233ef2,_0x5e8782,_0x5e8782==_0x597f39['creator']));}(_0x1bc52c,_0x258c5e);this['id']=_0x258c5e['id'],this['_revision']=_0x258c5e,this['_requireRevisionName']=_0x43af9a,this['bind']('name','createdAt')['to'](_0x258c5e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4de376=>{return _0x268c2f=_0x1bc52c['uiLanguage'],(_0x1197f2=_0x4de376)['toLocaleDateString'](_0x268c2f,{'month':'long','day':'numeric'})+',\x20'+_0x1197f2['toLocaleTimeString'](_0x268c2f,{'hour':'numeric','minute':'numeric'});var _0x268c2f,_0x1197f2;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x1bc52c,_0x15a4dd),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2fe27f=>_0x2fe27f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3cc779,_0x1d5a43)=>_0x3cc779&&_0x1d5a43),this['revisionActionsView']=_0x30698f&&_0x30698f['length']?mi(this,_0x30698f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x51a24c['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x51a24c['if']('isEnabled','ck-disabled',_0x5b6f5=>!_0x5b6f5),_0x51a24c['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x51a24c['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x51a24c['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':_0x51a24c['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':_0x3d05f2}]},this['revisionActionsView']],'on':{'click':_0x51a24c['to'](_0x309874=>{_0x309874['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x158d30=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x158d30,'change',()=>{this['_requireRevisionName']&&!_0x158d30['value']||this['fire']('setName',{'id':this['id'],'name':_0x158d30['value']}),_0x158d30['value']||(_0x158d30['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x533cb9,_0x24f3fa){const _0x44bb2f=_0xd7d606['fromJSDate'](_0x533cb9)['setLocale'](_0x24f3fa),_0x538244=_0xd7d606['local'](),_0xf9a7d7=_0x538244['minus']({'days':0x1})['startOf']('day');let _0x1e7bc2,_0x472911;return _0x44bb2f['hasSame'](_0x538244,'day')?(_0x1e7bc2=_0x44bb2f['startOf']('day')['toJSDate'](),_0x472911=_0x44bb2f['toRelativeCalendar']()):_0x44bb2f['hasSame'](_0xf9a7d7,'day')?(_0x1e7bc2=_0xf9a7d7['toJSDate'](),_0x472911=_0x44bb2f['toRelativeCalendar']()):_0x44bb2f['hasSame'](_0x538244,'week')?(_0x1e7bc2=_0x44bb2f['startOf']('week')['toJSDate'](),_0x472911=_0x44bb2f['weekdayLong']||''):_0x44bb2f['hasSame'](_0x538244,'year')?(_0x1e7bc2=_0x44bb2f['startOf']('month')['toJSDate'](),_0x472911=_0x44bb2f['monthLong']||''):(_0x1e7bc2=_0x44bb2f['startOf']('year')['toJSDate'](),_0x472911=String(_0x44bb2f['year'])),{'startDate':_0x1e7bc2,'localizedPeriodName':_0x472911};}class fi extends _0x42a0a3{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xc40aa7,_0x574343,_0x553143,_0x27a4b3){super(_0xc40aa7);const _0x420dcc=bi(_0x574343,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x574343,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x553143,this['_requireRevisionName']=_0x27a4b3,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':_0x420dcc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x41d98d){const _0x4cefb5=new pi(this['locale'],_0x41d98d,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4cefb5);}['removeRevision'](_0x3e5df7){const _0x5141a8=this['revisionViews']['find'](_0x26cba1=>_0x26cba1['id']===_0x3e5df7['id']);this['revisionViews']['remove'](_0x5141a8);}}class ki extends _0x42a0a3{constructor(_0x1b5947){super(_0x1b5947);const _0xc5e83d=new _0x4dd300();_0xc5e83d['content']=_0x2f30b1,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xc5e83d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1b5947,'Revision\x20history')]}]});}}class ui extends _0x42a0a3{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x21132f,_0x5c467a,_0x1bad60,_0x3fdc83){super(_0x21132f);const _0x24a092=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5c467a,this['_revisionActions']=_0x1bad60,this['_requireRevisionName']=_0x3fdc83,this['on']('select',(_0x5877cc,_0x298549)=>{this['fire']('revisionSelected',_0x298549);}),this['on']('setName',(_0x35d91a,_0x4a4347)=>{this['fire']('revisionSetName',_0x4a4347);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x21132f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x24a092['if']('isEnabled','ck-disabled',_0x6b69ad=>!_0x6b69ad)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x585b10 of this['_revisions'])this['_addRevision'](_0x585b10);this['_revisions']['on']('add',(_0xf4221c,_0x4c3b00)=>{this['_addRevision'](_0x4c3b00);}),this['_revisions']['on']('remove',(_0xed84a,_0x28dd12)=>{this['_removeRevision'](_0x28dd12);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xba50d7=>_0xba50d7['revisionViews']['map'](_0x1eba3e=>_0x1eba3e))['flat']();}['selectRevision'](_0x47fbc4){for(const _0x501af9 of this['revisionViews'])_0x47fbc4&&_0x47fbc4['id']===_0x501af9['id']?_0x501af9['select']():_0x501af9['deselect']();}['highlightRevisions'](_0x38ded2){for(const _0x5a6557 of this['revisionViews'])_0x38ded2['some'](({id:_0x5cbc3e})=>_0x5cbc3e===_0x5a6557['id'])?_0x5a6557['highlight']():_0x5a6557['unhighlight']();}['_addRevision'](_0x255b15){const _0x23a048=bi(_0x255b15['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4e997c=this['timePeriodViews']['get'](0x0);_0x4e997c&&_0x4e997c['startDate']['getTime']()===_0x23a048['getTime']()||(_0x4e997c=new fi(this['locale'],_0x23a048,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4e997c)),_0x4e997c['addRevision'](_0x255b15);}['_removeRevision'](_0x198387){const _0x348759=bi(_0x198387['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x348759)['removeRevision'](_0x198387);}['_getTimePeriodViewByStartDate'](_0x1f9f45){return this['timePeriodViews']['find'](_0xb7a9b3=>_0xb7a9b3['startDate']['getTime']()===_0x1f9f45['getTime']());}}class f extends _0x58c668{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x2cebf3(_0x5d886f){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3a39dc,_0x4863ed){super(_0x4863ed),this['sourceElement']=_0x3a39dc,this['model']['document']['createRoot']();const _0x35c209=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x35c209);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x946fb4,_0x1433a0){const _0x2e32e2=new this(_0x946fb4,_0x1433a0);return await _0x2e32e2['initPlugins'](),await _0x2e32e2['ui']['init'](_0x946fb4),await _0x2e32e2['data']['init'](_0x2e32e2['config']['get']('initialData')||''),_0x2e32e2['fire']('ready'),_0x2e32e2;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x594d24{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1451d5){function _0x3fe888(_0x44ef1c){return _0x44ef1c['map'](_0x1a4f58=>String['fromCharCode'](_0x1a4f58))['join']('');}super(_0x1451d5),this['result']='end',_0x1451d5[_0x3fe888([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fe888([0x76,0x69,0x65,0x77])][_0x3fe888([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fe888([0x61,0x75,0x74,0x6f]),_0x1451d5[_0x3fe888([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3fe888([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fe888([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3fe888([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3fe888([0x6f,0x6b])});}}class ct extends _0x594d24{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x576558){if(super(_0x576558),!this['editor']['config']['get']('revisionHistory'))throw new _0x4303f6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4ff420=>this['_showRevisionViewer']({..._0x4ff420,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x35a05c=>this['_closeRevisionViewer'](_0x35a05c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x548134=>this['_restoreRevision'](_0x548134)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x136d0c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x136d0c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x300488){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x300488);}['getRevision'](_0x5e10bd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5e10bd);}['getRevisions'](_0x5d9fe9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5d9fe9||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5ecc94=this['editor'],_0x20f8c5=_0x2648be(_0x5ecc94,d),_0x2c5da0=_0x5ecc94['plugins']['get']('RevisionTracker'),_0x88d768=_0x5ecc94['plugins']['get']('Users')['users'];return _0x20f8c5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x20f8c5['lazyRoots'],(_0x20f8c5['plugins']['push'](ht,l,u,class extends _0x594d24{static get['requires'](){return[l,'Users'];}['init'](){const _0x130b6a=this['editor']['plugins']['get']('Users');for(const _0x5f53ec of _0x88d768)_0x5f53ec['isAnonymous']||_0x130b6a['getUser'](_0x5f53ec['id'])||_0x130b6a['addUser'](_0x5f53ec);const _0x32830d=_0x2c5da0['repository']['getRevisions']();let _0x39183c=null;const _0x5d3528=this['editor']['plugins']['get']('RevisionViewer');_0x5d3528['adapter']=_0x2c5da0['adapter'],_0x5d3528['bind']('isEnabled')['to'](_0x2c5da0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5ecc94,'isReadOnly',_0xdac6ee=>!_0xdac6ee);for(const _0x3cf0bd of _0x32830d){const _0x91c1e4=null===_0x3cf0bd['creator'];if(_0x91c1e4&&_0x3cf0bd['toVersion']===_0x3cf0bd['fromVersion'])continue;const _0x38a117=_0x3cf0bd['toJSON']();_0x5d3528['addRevisionData'](_0x38a117,(_0x4d29d1,_0x533e4b,_0x43c14d)=>{if(_0x91c1e4){if(_0x39183c)_0x39183c['_update'](_0x4d29d1,_0x533e4b);else{if(!_0x533e4b){const _0xb55565=_0x43c14d['toJSON']();_0xb55565['id']=_0x29d31e(),_0x2c5da0['saveRevision'](_0xb55565,_0x43c14d['toVersion'])['then'](_0x5bd43e=>{_0x39183c=_0x5bd43e;});}}}else _0x3cf0bd['_update'](_0x4d29d1,_0x533e4b);});}}},f),_0x20f8c5);}['_enhanceShowRevisionViewerCallback'](){const _0x276316=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4fd699=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x57498a=this['editor']['plugins']['get']('Autosave');await _0x57498a['save']();}else await _0x4fd699['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x31b282=this['editor']['plugins']['get']('Dialog');_0x31b282['isOpen']&&_0x31b282['hide']();}const _0x18a7b4=this['_getRevisionViewerEditorConfig']();return _0x276316(_0x18a7b4)['then'](_0x3f5a27=>{return(this['_viewerEditor']=_0x3f5a27,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'),_0x3f5a27);})['catch'](_0x2f197b=>(console['error'](_0x2f197b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4ee42c=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'](),_0x4ee42c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x30aa22=this['editor']['plugins']['get']('Annotations');_0x30aa22['refreshVisibility'](),_0x30aa22['refreshPositioning']();}})));}['_showRevisionViewer'](_0x23aabe){const _0x1169b7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x34216a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4d5763=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4d5763,_0x23aabe)['then'](_0xfb123a=>(_0x34216a['style']['display']='block',_0x1169b7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xfb123a));}['_closeRevisionViewer'](_0x342705){const _0x350d2b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x350d2b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x342705['destroy']();}async['_restoreRevision'](_0x23c468){const _0x4810c=this['editor'],_0xc48f54=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3dd0af=_0x4810c['plugins']['get']('RevisionTracker'),_0x4f3663=_0x4810c['plugins']['get']('RevisionHistoryUtils'),_0x113a3f=_0xc48f54['repository']['getRevision'](_0x23c468);let _0x5603eb,_0x5cb072,_0xbd0e02;try{await _0x4f3663['loadRevisionData'](_0x113a3f,this['adapter']),_0x5603eb=_0x4f3663['getRevisionDocumentData'](_0x113a3f),_0x5cb072=_0x4f3663['getRevisionRootsAttributes'](_0x113a3f);}catch(_0x4596be){return void console['error'](_0x4596be);}_0x4810c['model']['change'](_0x233c44=>{for(const _0xf4ef3b of Array['from'](_0x4810c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x233c44['removeMarker'](_0xf4ef3b);}),_0xc48f54['isReady']=!0x1,_0x4810c['model']['enqueueChange'](_0x51e502=>{_0x51e502['setSelection'](null),_0x51e502['removeSelectionAttribute'](_0x4810c['model']['document']['selection']['getAttributeKeys']());const _0x449ab6=Object['keys'](_0x5603eb);for(const _0x3c98ac of _0x4810c['model']['document']['roots'])'$graveyard'!=_0x3c98ac['rootName']&&_0x3c98ac['isAttached']()&&!_0x449ab6['includes'](_0x3c98ac['rootName'])&&_0x51e502['detachRoot'](_0x3c98ac);for(const _0x49cc0a of _0x449ab6){let _0x2138c0=_0x4810c['model']['document']['getRoot'](_0x49cc0a);_0x2138c0&&_0x2138c0['isAttached']()||(_0x2138c0=_0x51e502['addRoot'](_0x49cc0a));const _0x5cf63d=_0x5cb072[_0x49cc0a],_0x514eb8=Object['keys'](_0x5cf63d),_0x42f186=_0x5603eb[_0x49cc0a];for(const _0x307e49 of _0x2138c0['getAttributeKeys']())_0x514eb8['includes'](_0x307e49)||_0x51e502['removeAttribute'](_0x307e49,_0x2138c0);for(const _0x4aa780 of _0x514eb8)_0x51e502['setAttribute'](_0x4aa780,_0x5cb072[_0x49cc0a][_0x4aa780],_0x2138c0);_0x51e502['remove'](_0x51e502['createRangeIn'](_0x2138c0)),_0x51e502['insert'](_0x4810c['data']['parse'](_0x42f186,_0x2138c0),_0x2138c0,0x0);}});const _0x19ba4d=R(_0x4810c['locale'],'Restored');if(_0x113a3f['name'])_0xbd0e02=-0x1==_0x113a3f['name']['indexOf'](_0x19ba4d)?_0x19ba4d+':\x20'+_0x113a3f['name']:_0x113a3f['name'];else _0xbd0e02=_0x19ba4d+':\x20'+(_0x113a3f['createdAt']['toLocaleDateString'](_0x4810c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x113a3f['createdAt']['toLocaleTimeString'](_0x4810c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3dd0af['saveRevision']({'name':_0xbd0e02}),_0xc48f54['isReady']=!0x0,_0x4810c['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,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x2f5a37){super(_0x2f5a37),this['_revisionViewer']=_0x2f5a37['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2f8f7f=this['_revisionsRepository']['_revisions'],_0x25764b=this['_createRevisionActions'](),_0x4e2076=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x2f8f7f,_0x25764b,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',(_0x1ae09,_0x28c0cc)=>{_0x28c0cc['revisionViews']['on']('add',(_0x4c702d,_0x2a0668)=>{_0x2a0668['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)),_0x4e2076['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4a073f=this['_revisionsRepository']['getRevision'](0x0);if(_0x4a073f){const _0x380de6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4a073f['id']);this['_revisionViewer']['compare'](_0x4a073f,_0x380de6);}}['_handleRevisionSelected'](_0x24bdff,_0x44ceac){const _0x11e511=this['_revisionsRepository']['getRevision'](_0x44ceac['id']),_0x8b7f85=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x11e511['id']);this['_revisionViewer']['compare'](_0x11e511,_0x8b7f85);}['_handleRevisionSetName'](_0x2d56ec,_0x50a1f6){this['_revisionsRepository']['getRevision'](_0x50a1f6['id'])['setName'](_0x50a1f6['name']);}['_handleDiffChange'](_0x52d202,_0x3c0d0c,_0x5f5d5b){const _0x148641=this['_revisionsRepository']['getRevisionsInDiff'](_0x5f5d5b);_0x148641['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x148641),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x148641[0x0]));}['_createRevisionActions'](){const _0x5f0c3b=this['editor'],_0x6d9f73=f['availableRevisionActions'],_0x3737c3=_0x5f0c3b['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x3737c3['length'])return _0x3737c3['map'](_0x805021=>{const _0x3021d6='string'==typeof _0x805021?Object['assign']({},_0x6d9f73[_0x805021]):_0x805021;return _0x3021d6['action']=_0x3021d6['action']['bind'](this,_0x5f0c3b),_0x3021d6['isVisible']&&(_0x3021d6['isVisible']=_0x3021d6['isVisible']['bind'](this,_0x5f0c3b)),_0x3021d6;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1463ef},_0x2ea0fa)=>{const _0x323d94=_0x1463ef['get'](l),_0x487b4f=_0x323d94['repository'];let _0xcfdd5c=_0x323d94['diff']['newRevisionId'],_0x189929=_0x2ea0fa['id'];_0x487b4f['getIndex'](_0xcfdd5c)>_0x487b4f['getIndex'](_0x189929)&&([_0xcfdd5c,_0x189929]=[_0x189929,_0xcfdd5c]),_0x323d94['compare'](_0xcfdd5c,_0x189929);},'isVisible':({plugins:_0x39dbc5},_0x3009db)=>{const _0x1d3f57=_0x39dbc5['get'](l);return!(_0x1d3f57['repository']['getRevisionsInDiff'](_0x1d3f57['diff'])['length']>0x2)&&!_0x3009db['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x16eae3,{id:_0x26c98e})=>{_0x16eae3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x26c98e);},'isVisible':({plugins:_0x5eeb0a},_0x3f4315)=>!!_0x5eeb0a['get'](l)['repository']['getLaterVisibleRevision'](_0x3f4315['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x36027b},{id:_0xcb7514,revisionNameView:_0x405e0e})=>{const _0x111bd2=_0x36027b['get'](l),_0x36acd1=_0x111bd2['repository']['getEarlierVisibleRevision'](_0xcb7514);_0x111bd2['compare'](_0xcb7514,_0x36acd1),_0x405e0e['focus'](),_0x405e0e['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5f2502,_0x1295d8){super(_0x5f2502),this['_view']=_0x1295d8,this['_toolbarConfig']=st(_0x5f2502['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x1221f6){const _0x4adcb8=this['editor'],_0x413822=this['view'],_0x301b3b=_0x4adcb8['editing']['view'],_0x3be3ac=_0x413822['editable'],_0x2db173=_0x301b3b['document']['getRoot']();_0x3be3ac['name']=_0x2db173['rootName'],_0x413822['render']();const _0x34fe0d=_0x3be3ac['element'];this['setEditableElement'](_0x3be3ac['name'],_0x34fe0d),_0x413822['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x301b3b['attachDomRoot'](_0x34fe0d),this['_elementReplacer']['replace'](_0x1221f6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x44236e=this['view'],_0x7b7c66=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x7b7c66['detachDomRoot'](_0x44236e['editable']['name']),_0x44236e['destroy']();}['_initToolbar'](){const _0x10dc3d=this['view'];_0x10dc3d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x10dc3d['stickyPanel']['limiterElement']=_0x10dc3d['element'],_0x10dc3d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2dca4f})=>_0x2dca4f),_0x10dc3d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x10dc3d['toolbar']);}}class ii extends _0x4de6bf{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x384c43,_0x4b8234,_0x18ad19={}){super(_0x384c43),this['stickyPanel']=new _0x1dfbd3(_0x384c43),this['toolbar']=new _0x52724f(_0x384c43,{'shouldGroupWhenFull':_0x18ad19['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x384c43,_0x4b8234);}['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
|
+
_0x2a9622(_0x31cec4){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4c6b22,_0x53ea7d){super(_0x53ea7d),this['sourceElement']=_0x4c6b22,this['model']['document']['createRoot']();const _0x258ccf=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x258ccf);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x32d905,_0x53df8f){const _0x4e8d2f=new this(_0x32d905,_0x53df8f);return await _0x4e8d2f['initPlugins'](),await _0x4e8d2f['ui']['init'](_0x32d905),await _0x4e8d2f['data']['init'](_0x4e8d2f['config']['get']('initialData')||''),_0x4e8d2f['fire']('ready'),_0x4e8d2f;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x58c668{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1af88b){function _0x58028f(_0x419679){return _0x419679['map'](_0x701d70=>String['fromCharCode'](_0x701d70))['join']('');}super(_0x1af88b),this['result']='end',_0x1af88b[_0x58028f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58028f([0x76,0x69,0x65,0x77])][_0x58028f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58028f([0x61,0x75,0x74,0x6f]),_0x1af88b[_0x58028f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58028f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58028f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58028f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58028f([0x6f,0x6b])});}}class ht extends _0x58c668{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x937f42){if(super(_0x937f42),!this['editor']['config']['get']('revisionHistory'))throw new _0x87a7b4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2e4cfc=>this['_showRevisionViewer']({..._0x2e4cfc,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x20b63b=>this['_closeRevisionViewer'](_0x20b63b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xb4f0b5=>this['_restoreRevision'](_0xb4f0b5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2b615b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2b615b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x36622b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x36622b);}['getRevision'](_0x55af60){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x55af60);}['getRevisions'](_0x2ab71a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2ab71a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x143adc=this['editor'],_0x5dd504=_0x5dd42b(_0x143adc,d),_0x3a66df=_0x143adc['plugins']['get']('RevisionTracker'),_0x5ce5c3=_0x143adc['plugins']['get']('Users')['users'];return _0x5dd504['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5dd504['lazyRoots'],(_0x5dd504['plugins']['push'](at,l,u,class extends _0x58c668{static get['requires'](){return[l,'Users'];}['init'](){const _0x42e23a=this['editor']['plugins']['get']('Users');for(const _0x5db153 of _0x5ce5c3)_0x5db153['isAnonymous']||_0x42e23a['getUser'](_0x5db153['id'])||_0x42e23a['addUser'](_0x5db153);const _0x185b0a=_0x3a66df['repository']['getRevisions']();let _0x5b2dd7=null;const _0x37bcdc=this['editor']['plugins']['get']('RevisionViewer');_0x37bcdc['adapter']=_0x3a66df['adapter'],_0x37bcdc['bind']('isEnabled')['to'](_0x3a66df),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x143adc,'isReadOnly',_0x22ca82=>!_0x22ca82);for(const _0x4d0431 of _0x185b0a){const _0xfc4696=null===_0x4d0431['creator'];if(_0xfc4696&&_0x4d0431['toVersion']===_0x4d0431['fromVersion'])continue;const _0x409ac3=_0x4d0431['toJSON']();_0x37bcdc['addRevisionData'](_0x409ac3,(_0x59c40b,_0x12f759,_0x31bd52)=>{if(_0xfc4696){if(_0x5b2dd7)_0x5b2dd7['_update'](_0x59c40b,_0x12f759);else{if(!_0x12f759){const _0x4b493c=_0x31bd52['toJSON']();_0x4b493c['id']=_0xd8dd1b(),_0x3a66df['saveRevision'](_0x4b493c,_0x31bd52['toVersion'])['then'](_0x404476=>{_0x5b2dd7=_0x404476;});}}}else _0x4d0431['_update'](_0x59c40b,_0x12f759);});}}},f),_0x5dd504);}['_enhanceShowRevisionViewerCallback'](){const _0x4842d6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x305d74=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x13120a=this['editor']['plugins']['get']('Autosave');await _0x13120a['save']();}else await _0x305d74['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2c0877=this['editor']['plugins']['get']('Dialog');_0x2c0877['isOpen']&&_0x2c0877['hide']();}const _0xbbabb9=this['_getRevisionViewerEditorConfig']();return _0x4842d6(_0xbbabb9)['then'](_0x370022=>{return(this['_viewerEditor']=_0x370022,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'),_0x370022);})['catch'](_0x4026e9=>(console['error'](_0x4026e9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x17bdf8=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'](),_0x17bdf8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2118d9=this['editor']['plugins']['get']('Annotations');_0x2118d9['refreshVisibility'](),_0x2118d9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2a93f9){const _0x28403c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5085ff=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x212676=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x212676,_0x2a93f9)['then'](_0xd6b55c=>(_0x5085ff['style']['display']='block',_0x28403c['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xd6b55c));}['_closeRevisionViewer'](_0x29085a){const _0x4bc92a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4bc92a['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x29085a['destroy']();}async['_restoreRevision'](_0x3b2179){const _0x3296db=this['editor'],_0x51ec55=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2c1871=_0x3296db['plugins']['get']('RevisionTracker'),_0x541f7e=_0x3296db['plugins']['get']('RevisionHistoryUtils'),_0x106578=_0x51ec55['repository']['getRevision'](_0x3b2179);let _0x1fc2cd,_0x23755c,_0x286e75;try{await _0x541f7e['loadRevisionData'](_0x106578,this['adapter']),_0x1fc2cd=_0x541f7e['getRevisionDocumentData'](_0x106578),_0x23755c=_0x541f7e['getRevisionRootsAttributes'](_0x106578);}catch(_0x4eba47){return void console['error'](_0x4eba47);}_0x3296db['model']['change'](_0x419e00=>{for(const _0xf89166 of Array['from'](_0x3296db['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x419e00['removeMarker'](_0xf89166);}),_0x51ec55['isReady']=!0x1,_0x3296db['model']['enqueueChange'](_0x350f08=>{_0x350f08['setSelection'](null),_0x350f08['removeSelectionAttribute'](_0x3296db['model']['document']['selection']['getAttributeKeys']());const _0x4079e0=Object['keys'](_0x1fc2cd);for(const _0x461b52 of _0x3296db['model']['document']['roots'])'$graveyard'!=_0x461b52['rootName']&&_0x461b52['isAttached']()&&!_0x4079e0['includes'](_0x461b52['rootName'])&&_0x350f08['detachRoot'](_0x461b52);for(const _0x42ab9d of _0x4079e0){let _0x41ea2c=_0x3296db['model']['document']['getRoot'](_0x42ab9d);_0x41ea2c&&_0x41ea2c['isAttached']()||(_0x41ea2c=_0x350f08['addRoot'](_0x42ab9d));const _0x9c4972=_0x23755c[_0x42ab9d],_0x1ae123=Object['keys'](_0x9c4972),_0x638899=_0x1fc2cd[_0x42ab9d];for(const _0x444924 of _0x41ea2c['getAttributeKeys']())_0x1ae123['includes'](_0x444924)||_0x350f08['removeAttribute'](_0x444924,_0x41ea2c);for(const _0x2c32b3 of _0x1ae123)_0x350f08['setAttribute'](_0x2c32b3,_0x23755c[_0x42ab9d][_0x2c32b3],_0x41ea2c);_0x350f08['remove'](_0x350f08['createRangeIn'](_0x41ea2c)),_0x350f08['insert'](_0x3296db['data']['parse'](_0x638899,_0x41ea2c),_0x41ea2c,0x0);}});const _0x54793d=R(_0x3296db['locale'],'Restored');if(_0x106578['name'])_0x286e75=-0x1==_0x106578['name']['indexOf'](_0x54793d)?_0x54793d+':\x20'+_0x106578['name']:_0x106578['name'];else _0x286e75=_0x54793d+':\x20'+(_0x106578['createdAt']['toLocaleDateString'](_0x3296db['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x106578['createdAt']['toLocaleTimeString'](_0x3296db['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2c1871['saveRevision']({'name':_0x286e75}),_0x51ec55['isReady']=!0x0,_0x3296db['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,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};
|