@ckeditor/ckeditor5-revision-history 47.0.0-alpha.8 → 47.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x37be83(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x475f5e){super(),this['id']=_0x475f5e['id']||_0x40f93b(),this['creator']=_0x475f5e['creator']||null,this['authors']=_0x475f5e['authors']||[],this['diffData']=_0x475f5e['diffData']||null,this['toVersion']=_0x475f5e['toVersion']||0x0,this['fromVersion']=_0x475f5e['fromVersion']||0x0,this['set']('name',_0x475f5e['name']||''),this['set']('createdAt',_0x475f5e['createdAt']||new Date()),this['set']('attributes',_0x475f5e['attributes']||{});}['setName'](_0x505c2b){this['_update']({'name':_0x505c2b});}['setAttribute'](_0x4ae9ab,_0x3ddca5){const _0xb40e3f=_0x378b0e(this['attributes']);_0x12de3c(_0xb40e3f,_0x4ae9ab,_0x3ddca5),this['_update']({'attributes':_0xb40e3f});}['removeAttribute'](_0x5c38c5){const _0x3d4bfd=_0x378b0e(this['attributes']);_0x19e1c2(_0x3d4bfd,_0x5c38c5),this['_update']({'attributes':_0x3d4bfd});}['_update'](_0x2af827,_0x4a7fca=!0x1){let _0x47d317=!0x1;const _0x16bdfa={'id':this['id']},_0x5ca32f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x17df78 of _0x5ca32f){const _0x593fc9=_0x2af827[_0x17df78];void 0x0!==_0x593fc9&&_0x593fc9!==this[_0x17df78]&&(this[_0x17df78]=_0x593fc9,_0x16bdfa[_0x17df78]=_0x593fc9,_0x47d317=!0x0);}_0x47d317&&(_0x16bdfa['authors']&&(_0x16bdfa['authorsIds']=_0x16bdfa['authors']['map'](_0x596868=>_0x596868['id']),delete _0x16bdfa['authors']),this['fire']('_update',_0x16bdfa,_0x4a7fca));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xbdfcdd=>_0xbdfcdd['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xb302f2{['_revisions'];static get['requires'](){return[_0x5232bd];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4cda02){super(_0x4cda02),this['_revisions']=new _0x150ee0();}['afterInit'](){!async function(_0x3a4db4){const _0x2ee23a=_0x539569([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x54447b=0xeb829,_0x42ae38=0x7374585f,_0x91043=0x73732caf^_0x42ae38,_0x5ef47a=window[_0x539569([0x44,0x61,0x74,0x65])][_0x539569([0x6e,0x6f,0x77])](),_0x5de29f=_0x3a4db4[_0x539569([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f830a=new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50921e=>{_0x5de29f[_0x539569([0x6f,0x6e,0x63,0x65])](_0x539569([0x72,0x65,0x61,0x64,0x79]),_0x50921e);}),_0x4dcd5c={[_0x539569([0x6b,0x74,0x79])]:_0x539569([0x45,0x43]),[_0x539569([0x75,0x73,0x65])]:_0x539569([0x73,0x69,0x67]),[_0x539569([0x63,0x72,0x76])]:_0x539569([0x50,0x2d,0x32,0x35,0x36]),[_0x539569([0x78])]:_0x539569([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]),[_0x539569([0x79])]:_0x539569([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]),[_0x539569([0x61,0x6c,0x67])]:_0x539569([0x45,0x53,0x32,0x35,0x36])},_0x3edcaf=_0x5de29f[_0x539569([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x539569([0x67,0x65,0x74])](_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a4628(){let _0x250851,_0xdbfa9=null,_0x2ff764=null;try{if(_0x3edcaf==_0x539569([0x47,0x50,0x4c]))return _0x539569([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x250851=_0x485e93(),!_0x250851)return _0x539569([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x250851[_0x539569([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ff764=_0x1f0726(_0x250851[_0x539569([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x250851[_0x539569([0x6a,0x74,0x69])])),await _0x38b2d0()?_0x43901d()?_0x5be38f()?_0x539569([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa96fb()?(_0x250851[_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x539569([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xdbfa9=_0x46dd2d(_0x539569([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x250851[_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x539569([0x74,0x72,0x69,0x61,0x6c])&&(_0xdbfa9=_0x46dd2d(_0x539569([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ce0df()):_0x539569([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x539569([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x539569([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x539569([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5be38f(){const _0x124389=[_0x539569([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x539569([0x74,0x72,0x69,0x61,0x6c])][_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x250851[_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ef47a/0x3e8:0xe10*_0x91043;return _0x250851[_0x539569([0x65,0x78,0x70])]<_0x124389;}function _0x43901d(){const _0xe2632d=_0x250851[_0x539569([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xe2632d)return!0x1;if(_0xe2632d[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539569([0x2a])))return!0x0;if(_0xe2632d[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539569([0x52,0x48])))return!0x0;if(_0xe2632d[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539569([0x52,0x52,0x48]))){if(_0x50a6ba())return!0x0;if(_0x2c3f2e()||_0x42f944())return!0x0;}return!0x1;}function _0xa96fb(){const _0x2b271f=_0x250851[_0x539569([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b271f||0x0==_0x2b271f[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37fdb0}=new URL(window[_0x539569([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b271f[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37fdb0))return!0x0;const _0x39b187=_0x37fdb0[_0x539569([0x73,0x70,0x6c,0x69,0x74])](_0x539569([0x2e]));return _0x2b271f[_0x539569([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ecc47=>_0x4ecc47[_0x539569([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539569([0x2a])))[_0x539569([0x6d,0x61,0x70])](_0x27679d=>_0x27679d[_0x539569([0x73,0x70,0x6c,0x69,0x74])](_0x539569([0x2e])))[_0x539569([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc2440d=>_0xc2440d[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x39b187[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x539569([0x6d,0x61,0x70])](_0x252da9=>Array(_0x39b187[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x252da9[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x539569([0x66,0x69,0x6c,0x6c])](_0x252da9[0x0]===_0x539569([0x2a])?_0x539569([0x2a]):'')[_0x539569([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x252da9))[_0x539569([0x73,0x6f,0x6d,0x65])](_0x35aa24=>_0x39b187[_0x539569([0x65,0x76,0x65,0x72,0x79])]((_0x1218c9,_0xc77c65)=>_0x35aa24[_0xc77c65]===_0x1218c9||_0x35aa24[_0xc77c65]===_0x539569([0x2a])));}function _0x4ce0df(){return _0xdbfa9&&_0x2ff764?new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x514e72,_0x26f55b)=>{_0xdbfa9[_0x539569([0x74,0x68,0x65,0x6e])](_0x514e72,_0x26f55b),_0x2ff764[_0x539569([0x74,0x68,0x65,0x6e])](_0x3535dc=>{_0x3535dc!=_0x539569([0x56,0x61,0x6c,0x69,0x64])&&_0x514e72(_0x3535dc);},_0x26f55b);}):_0xdbfa9||_0x2ff764||_0x539569([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f0726(_0x33bd05,_0x117d9e){return new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x108062=>{if(_0x2c968c())return _0x108062(_0x539569([0x56,0x61,0x6c,0x69,0x64]));_0x469cf3(),_0x5de29f[_0x539569([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x539569([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1582a1=!0x1;const _0x314787=_0x40f93b();function _0x299129(_0x3166f1){return!!_0x3166f1&&(typeof _0x3166f1===_0x539569([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3166f1===_0x539569([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3166f1[_0x539569([0x74,0x68,0x65,0x6e])]===_0x539569([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3166f1[_0x539569([0x63,0x61,0x74,0x63,0x68])]===_0x539569([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bbc9f(_0x118ea1){_0x299b0d(_0x118ea1)[_0x539569([0x74,0x68,0x65,0x6e])](_0x43cfa9=>{if(!_0x43cfa9||_0x43cfa9[_0x539569([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x539569([0x6f,0x6b]))return _0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1bd447(_0x541781(_0x314787+_0x117d9e))!=_0x43cfa9[_0x539569([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x539569([0x56,0x61,0x6c,0x69,0x64]);})[_0x539569([0x74,0x68,0x65,0x6e])](_0x10ec3b=>(_0x31c102(),_0x10ec3b),()=>{const _0x3e66b2=_0x55e735();return null==_0x3e66b2?(_0x31c102(),_0x539569([0x56,0x61,0x6c,0x69,0x64])):_0x539569(_0x5ef47a-_0x3e66b2>(0x5778dc5f^_0x42ae38)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x539569([0x74,0x68,0x65,0x6e])](_0x108062)[_0x539569([0x63,0x61,0x74,0x63,0x68])](()=>{_0x108062(_0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb9d3fe=0x7342b6df^_0x42ae38;function _0x31c102(){const _0x4eae64=_0x539569([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bd447(_0x541781(_0x33bd05)),_0x3c72fa=_0x4fa537(_0x1bd447(window[_0x539569([0x4d,0x61,0x74,0x68])][_0x539569([0x63,0x65,0x69,0x6c])](_0x5ef47a/_0xb9d3fe)));window[_0x539569([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x539569([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4eae64,_0x3c72fa);}function _0x55e735(){const _0x59d31c=_0x539569([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bd447(_0x541781(_0x33bd05)),_0x55ec06=window[_0x539569([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x539569([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59d31c);return _0x55ec06?window[_0x539569([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fa537(_0x55ec06),0x10)*_0xb9d3fe:null;}function _0x299b0d(_0x5e23de){return new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x290510,_0x5ba178)=>{_0x5e23de[_0x539569([0x74,0x68,0x65,0x6e])](_0x290510,_0x5ba178),window[_0x539569([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ba178,0x73758c9f^_0x42ae38);});}}_0x5de29f[_0x539569([0x6f,0x6e])](_0x539569([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xbcb04,_0x3ec8d0)=>{if(_0x3ec8d0[0x0]!=_0x33bd05)return _0x108062(_0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ec8d0[0x1]={..._0x3ec8d0[0x1],[_0x539569([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x314787};},{[_0x539569([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x539569([0x68,0x69,0x67,0x68])}),_0x5de29f[_0x539569([0x6f,0x6e])](_0x539569([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40c6ec=>{_0x299129(_0x40c6ec[_0x539569([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1582a1=!0x0,_0x2bbc9f(_0x40c6ec[_0x539569([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x539569([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x539569([0x6c,0x6f,0x77])}),_0x3f830a[_0x539569([0x74,0x68,0x65,0x6e])](()=>{_0x1582a1||_0x108062(_0x539569([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c968c(){return _0x5de29f[_0x539569([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x539569([0x76,0x69,0x65,0x77])][_0x539569([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x539569([0x61,0x75,0x74,0x6f]);}function _0x469cf3(){_0x5de29f[_0x539569([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x539569([0x76,0x69,0x65,0x77])][_0x539569([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x539569([0x61,0x75,0x74,0x6f]);}}function _0x46dd2d(_0x1ba7f5){const _0x5c98ca=[new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45fbee=>setTimeout(_0x45fbee,0x737d6693^_0x42ae38)),_0x3f830a[_0x539569([0x74,0x68,0x65,0x6e])](()=>new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528767=>{const _0x349e95=0x73745858^_0x42ae38,_0x59afa4=_0x3a4db4[_0x539569([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x53ff8a(){_0x59afa4[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x349e95&&_0x528767();}_0x53ff8a(),_0x59afa4[_0x539569([0x6f,0x6e])](_0x539569([0x61,0x64,0x64]),_0x53ff8a);})),new window[(_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x462dad=>{function _0x3f4cb2(){for(const _0x596613 in window)if(window[_0x539569([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x539569([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x596613))&&window[_0x596613]==_0x54447b)return _0x462dad();_0x5de29f[_0x539569([0x73,0x74,0x61,0x74,0x65])]!=_0x539569([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x539569([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f4cb2,0x73744bd7^_0x42ae38);}_0x261d99(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3f4cb2();})];return window[_0x539569([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x539569([0x72,0x61,0x63,0x65])](_0x5c98ca)[_0x539569([0x74,0x68,0x65,0x6e])](()=>_0x1ba7f5);}async function _0xc5f6a3(){if(await _0x3f830a,_0x261d99(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x15377c=_0x3a4db4[_0x539569([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3816f=_0x3a4db4[_0x539569([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])](_0x15377c[_0x539569([0x69,0x64])]),_0xa54bc4=_0x4520c7(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xa54bc4[_0x539569([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x15377c['id'],_0x3816f?_0x3816f['id']:null,!0x0),_0xa54bc4[_0x539569([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x539569([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xa54bc4[_0x539569([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xa54bc4[_0x539569([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x22002d,void(_0xa54bc4[_0x539569([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x22002d);}if(_0x261d99(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x26ba8a=_0x4520c7(_0x539569([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x26ba8a[_0x539569([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x539569([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x26ba8a[_0x539569([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x26ba8a[_0x539569([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x22002d,_0x26ba8a[_0x539569([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x22002d;}_0x5de29f[_0x539569([0x6d,0x6f,0x64,0x65,0x6c])][_0x539569([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22002d,_0x5de29f[_0x539569([0x6d,0x6f,0x64,0x65,0x6c])][_0x539569([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22002d,_0x5de29f[_0x539569([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x539569([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50a6ba(){return _0x261d99(_0x539569([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4520c7(_0x539569([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x539569([0x73,0x74,0x61,0x74,0x65])]==_0x539569([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2c3f2e(){return _0x261d99(_0x539569([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 _0x42f944(){return _0x261d99(_0x539569([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x21e678(_0x4fd10e){const _0x5833d9=_0x4c9069();_0x5de29f[_0x5833d9]=_0x539569([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])+_0x4fd10e,_0x4fd10e[_0x539569([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x539569([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4c9069()]=_0x54447b),_0x4fd10e!=_0x539569([0x56,0x61,0x6c,0x69,0x64])&&_0xc5f6a3();}function _0x4c9069(){const _0x3351d2=window[_0x539569([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x539569([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x539569([0x6e,0x6f,0x77])]())[_0x539569([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x539569([0x2e]),'');let _0x558c01=_0x539569([0x73]);for(let _0x51b3b5=0x0;_0x51b3b5<_0x3351d2[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51b3b5+=0x2){let _0x35b508=window[_0x539569([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3351d2[_0x539569([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51b3b5,_0x51b3b5+0x2));_0x35b508>=_0x2ee23a[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35b508-=_0x2ee23a[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x558c01+=_0x2ee23a[_0x35b508];}return _0x558c01;}function _0x485e93(){const _0x27df46=_0x3edcaf[_0x539569([0x73,0x70,0x6c,0x69,0x74])](_0x539569([0x2e]));if(0x3!=_0x27df46[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d4f4f(_0x27df46[0x1]);function _0x1d4f4f(_0x4308b5){const _0x32ddba=_0x3a83f7(_0x4308b5);return _0x32ddba&&_0x5b045b()?_0x32ddba:null;function _0x5b045b(){const _0xcb2a45=_0x32ddba[_0x539569([0x6a,0x74,0x69])],_0x2fde84=window[_0x539569([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcb2a45[_0x539569([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcb2a45[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1250cb={..._0x32ddba,[_0x539569([0x6a,0x74,0x69])]:_0xcb2a45[_0x539569([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcb2a45[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1250cb[_0x539569([0x76,0x63])],_0x541781(_0x1250cb)==_0x2fde84;}}}async function _0x38b2d0(){let _0x1d020d=!0x0;try{const _0x5ee7b5=_0x3edcaf[_0x539569([0x73,0x70,0x6c,0x69,0x74])](_0x539569([0x2e])),[_0x514039,_0x35b769,_0x56f319]=_0x5ee7b5;return _0x173076(_0x514039),await _0x542775(_0x514039,_0x35b769,_0x56f319),_0x1d020d;}catch{return!0x1;}function _0x173076(_0x1b4309){const _0x136bf3=_0x3a83f7(_0x1b4309);_0x136bf3&&_0x136bf3[_0x539569([0x61,0x6c,0x67])]==_0x539569([0x45,0x53,0x32,0x35,0x36])||(_0x1d020d=!0x1);}async function _0x542775(_0x1e6be,_0x49f755,_0x115b46){const _0x387f42=window[_0x539569([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x539569([0x66,0x72,0x6f,0x6d])](_0xc1eb6e(_0x115b46),_0x10c9a5=>_0x10c9a5[_0x539569([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x54eaaa=new window[(_0x539569([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x539569([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e6be+_0x539569([0x2e])+_0x49f755),_0x1db9c0=window[_0x539569([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x539569([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1db9c0)return;const _0x340cdb=await _0x1db9c0[_0x539569([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x539569([0x6a,0x77,0x6b]),_0x4dcd5c,{[_0x539569([0x6e,0x61,0x6d,0x65])]:_0x539569([0x45,0x43,0x44,0x53,0x41]),[_0x539569([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x539569([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x539569([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1db9c0[_0x539569([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x539569([0x6e,0x61,0x6d,0x65])]:_0x539569([0x45,0x43,0x44,0x53,0x41]),[_0x539569([0x68,0x61,0x73,0x68])]:{[_0x539569([0x6e,0x61,0x6d,0x65])]:_0x539569([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x340cdb,_0x387f42,_0x54eaaa)||(_0x1d020d=!0x1);}}function _0x3a83f7(_0x191fda){return _0x191fda[_0x539569([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x539569([0x65,0x79]))?JSON[_0x539569([0x70,0x61,0x72,0x73,0x65])](_0xc1eb6e(_0x191fda)):null;}function _0xc1eb6e(_0x5efea9){return window[_0x539569([0x61,0x74,0x6f,0x62])](_0x5efea9[_0x539569([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x539569([0x2b]))[_0x539569([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x539569([0x2f])));}function _0x541781(_0x379d7c){let _0x26883c=0x1505;function _0x1650ec(_0x5922de){for(let _0x18f4e1=0x0;_0x18f4e1<_0x5922de[_0x539569([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18f4e1++){const _0x2d17b4=_0x5922de[_0x539569([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18f4e1);_0x26883c=(_0x26883c<<0x5)+_0x26883c+_0x2d17b4,_0x26883c&=_0x26883c;}}function _0x468874(_0x1f4f54){Array[_0x539569([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f4f54)?_0x1f4f54[_0x539569([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x468874):_0x1f4f54&&typeof _0x1f4f54==_0x539569([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x539569([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f4f54)[_0x539569([0x73,0x6f,0x72,0x74])]()[_0x539569([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fa06b,_0xd6ef4a])=>{_0x1650ec(_0x3fa06b),_0x468874(_0xd6ef4a);}):_0x1650ec(window[_0x539569([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f4f54));}return _0x468874(_0x379d7c),_0x26883c>>>0x0;}function _0x1bd447(_0x4c56a0){return _0x4c56a0[_0x539569([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x539569([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x539569([0x30]));}function _0x4fa537(_0x379f1c){return _0x379f1c[_0x539569([0x73,0x70,0x6c,0x69,0x74])]('')[_0x539569([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x539569([0x6a,0x6f,0x69,0x6e])]('');}function _0x261d99(_0x1a8434){return _0x5de29f[_0x539569([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x539569([0x68,0x61,0x73])](_0x1a8434);}function _0x4520c7(_0x356ece){return _0x5de29f[_0x539569([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x539569([0x67,0x65,0x74])](_0x356ece);}function _0x22002d(){}function _0x539569(_0xb56e5){return _0xb56e5['map'](_0x5b6114=>String['fromCharCode'](_0x5b6114))['join']('');}_0x21e678(await _0x5a4628());}(this);}['createRevision'](_0x5bc3c4){const _0x23a8ff=this['editor']['plugins']['get']('Users');return new I({'id':_0x5bc3c4['id'],'name':_0x5bc3c4['name'],'creator':_0x5bc3c4['creatorId']?_0x23a8ff['getUser'](_0x5bc3c4['creatorId']):null,'diffData':_0x5bc3c4['diffData']||_0x5bc3c4['data'],'authors':_0x5bc3c4['authorsIds']['map'](_0x3541eb=>_0x23a8ff['getUser'](_0x3541eb)),'createdAt':new Date(_0x5bc3c4['createdAt']),'attributes':_0x5bc3c4['attributes'],'fromVersion':_0x5bc3c4['fromVersion'],'toVersion':_0x5bc3c4['toVersion']});}['addRevision'](_0x1f6f73,_0x5b2edc=0x0){this['_revisions']['add'](_0x1f6f73,_0x5b2edc);}['getRevision'](_0x11af37){return this['_revisions']['get'](_0x11af37);}['getRevisions'](_0x49b417={'toJSON':!0x1}){const _0x379b4f=Array['from'](this['_revisions']);return _0x379b4f['reverse'](),_0x49b417['toJSON']?_0x379b4f['map'](_0x4e7ceb=>_0x4e7ceb['toJSON']()):_0x379b4f;}['getIndex'](_0x4a404b){return this['_revisions']['getIndex'](_0x4a404b);}['getEarlierVisibleRevision'](_0x2d13ff){const [,_0x11660c]=this['getRevisionsIterator'](_0x2d13ff,{'direction':'earlier'});return _0x11660c;}['getLaterVisibleRevision'](_0x3b2117){const [,_0x3693b4]=this['getRevisionsIterator'](_0x3b2117,{'direction':'later'});return _0x3693b4;}['getRevisionsInDiff'](_0x3f22bc){const _0x2d4446=[];for(const _0x330720 of this['getRevisionsIterator'](_0x3f22bc['newRevisionId']))if(_0x2d4446['push'](_0x330720),_0x330720['id']===_0x3f22bc['oldRevisionId'])break;return _0x2d4446;}*['getRevisionsIterator'](_0x5d576f,{direction:_0x53f1b8='earlier',filter:_0x312e6e=()=>!0x0}={}){const _0x26f5cf='earlier'===_0x53f1b8?0x1:-0x1;let _0xaaa0a2=this['_revisions']['get'](_0x5d576f),_0x223643=this['getIndex'](_0xaaa0a2);for(yield _0xaaa0a2;_0xaaa0a2;){if(_0x223643+=_0x26f5cf,_0xaaa0a2=this['getRevision'](_0x223643),!_0xaaa0a2)return;_0x312e6e(_0xaaa0a2)&&(yield _0xaaa0a2);}}}class $ extends _0xb302f2{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x413d32,'c'],[_0x1322a8,'a'],[_0x1292f2,'e'],[_0x25a4e0,'r'],[_0x15435f,'u']]);['_typeCharToViewClass']=new Map([['c',_0x413d32],['a',_0x1322a8],['e',_0x1292f2],['r',_0x25a4e0],['u',_0x15435f]]);async['loadRevisionData'](_0x3514c4,_0x1a9f14){if(_0x3514c4['diffData']||!_0x1a9f14)return;const _0x39a65f=this['editor']['config']['get']('collaboration.channelId'),_0xb559cb=await _0x1a9f14['getRevision']({'channelId':_0x39a65f,'revisionId':_0x3514c4['id']});_0x3514c4['diffData']=_0xb559cb['diffData'];}['getRevisionDocumentData'](_0x24181c){const _0x1b9e23={};for(const _0x3583cc in _0x24181c['diffData']){if(_0x24181c['diffData'][_0x3583cc]['attachChange']&&!_0x24181c['diffData'][_0x3583cc]['attachChange']['isAttached'])continue;const _0x56f9a5=this['_removeRevisionMarkers'](JSON['parse'](_0x24181c['diffData'][_0x3583cc]['insertions'])),_0x5d9768=this['editor']['editing']['view']['document'],_0xe9af84=new _0x4ef338(_0x5d9768,_0x56f9a5['map'](_0x201005=>this['_getViewFromDiffObj'](_0x201005,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1b9e23[_0x3583cc]=this['editor']['data']['processor']['toData'](_0xe9af84),this['editor']['data']['processor']['useFillerType']('default');}return _0x1b9e23;}['getRevisionRootsAttributes'](_0x524e98){const _0x5f2c02={};for(const _0x500427 in _0x524e98['diffData'])_0x524e98['diffData'][_0x500427]['attachChange']&&!_0x524e98['diffData'][_0x500427]['attachChange']['isAttached']||(_0x5f2c02[_0x500427]=_0x524e98['diffData'][_0x500427]['attributesAfter']||{});return _0x5f2c02;}['_getTypeCharForViewElement'](_0x4a9386){return this['_viewClassToTypeChar']['get'](_0x4a9386['constructor']);}['_getViewFromDiffObj'](_0x383808,_0x173b70){const _0x464f3f=this['editor']['editing']['view']['document'];if('string'==typeof _0x383808)return new _0x2dc6c5(_0x464f3f,_0x383808);{let _0x3d3236,_0x1d2268;_0x1d2268='u'==_0x383808['type']||'r'==_0x383808['type']?[]:_0x383808['children']['map'](_0x519eed=>this['_getViewFromDiffObj'](_0x519eed,_0x173b70));const _0x556ff2=this['_typeCharToViewClass']['get'](_0x383808['type'])||_0x45fb3d,_0x392dd0=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3d3236=new _0x556ff2(_0x464f3f,_0x383808['name'],_0x383808['attributes'],_0x1d2268),'u'==_0x383808['type']&&_0x383808['children'][0x0]){const _0x193da7=_0x383808['children'][0x0];if(_0x3d3236['render']=function(_0x31361f){const _0x4a076e=_0x31361f['createElement']('div');return _0x4a076e['innerHTML']=_0x193da7,_0x4a076e['childNodes'][0x0];},_0x173b70){const _0x436a14=new _0x4ef338(_0x464f3f);_0x436a14['_appendChild'](_0x3d3236);const _0x3769be=Array['from'](_0x392dd0['viewChildrenToDom'](_0x436a14,{'bind':!0x1})),_0xceab8f=_0x392dd0['domDocument']['createElement']('div');_0xceab8f['append'](..._0x3769be),_0x3d3236=Array['from'](_0x392dd0['domChildrenToView'](_0xceab8f))[0x0];}}else{if('r'==_0x383808['type']&&_0x383808['children'][0x0]){const _0x2d7793=_0x383808['children'][0x0];if(_0x3d3236['render']=function(_0x512c8b){_0x512c8b['innerHTML']=_0x2d7793;},_0x173b70){const _0x3b5108=new _0x4ef338(_0x464f3f);_0x3b5108['_appendChild'](_0x3d3236);const _0x100956=Array['from'](_0x392dd0['viewChildrenToDom'](_0x3b5108,{'bind':!0x1})),_0x84330c=_0x392dd0['domDocument']['createElement']('div');_0x84330c['append'](..._0x100956);const _0x4358dc=Array['from'](_0x392dd0['domChildrenToView'](_0x84330c));_0x4358dc['length']>0x1?_0x3d3236['_appendChild'](_0x4358dc):_0x3d3236=_0x4358dc[0x0];}}}if(_0x383808['customProperties']){for(const [_0x50c5b2,_0x2f2052]of _0x383808['customProperties'])_0x3d3236['_setCustomProperty'](_0x50c5b2,_0x2f2052);}const _0x590355=void 0x0===_0x383808['fillerOffset']?null:_0x383808['fillerOffset'];return null!==_0x590355&&(_0x3d3236['getFillerOffset']=()=>_0x590355),_0x3d3236;}}['_makeModelFromViewString'](_0x3e622c){const _0xa0ac22=JSON['parse'](_0x3e622c),_0x1f7c86=this['editor']['editing']['view']['document'],_0xd4935f=new _0x4ef338(_0x1f7c86,_0xa0ac22['map'](_0x31855d=>this['_getViewFromDiffObj'](_0x31855d,!0x0)));return this['editor']['data']['toModel'](_0xd4935f);}['_removeRevisionMarkers'](_0x25f50b){return(_0x25f50b=_0x25f50b['filter'](_0x5f59c9=>!_0x5f59c9['name']||'revision-start'!==_0x5f59c9['name']&&'revision-end'!==_0x5f59c9['name']))['forEach'](_0x265dac=>{'string'!=typeof _0x265dac&&(_0x265dac['children']=this['_removeRevisionMarkers'](_0x265dac['children']),_0x265dac['attributes']=_0x265dac['attributes']['filter'](_0x42f787=>!_0x42f787[0x0]['startsWith']('data-revision-')));}),_0x25f50b;}}function m(_0x2cffc3,_0x3c47b,_0x3b27d1){const t=_0x2cffc3['t'];switch(_0x3c47b){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'},_0x3b27d1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3b27d1);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 _0xb302f2{['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[_0x5232bd,S,$,_0x3f7589];}constructor(_0x2e917f){super(_0x2e917f),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 _0x437317=_0x40f93b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x437317},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 _0x22c8cb=this['repository']['getRevision'](0x0),_0x1df626=_0x22c8cb&&null===_0x22c8cb['creator']?_0x22c8cb:null;if(this['_continueCurrentRevision']=!!_0x1df626&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3dd784=this['_source']['getCurrentRevisionId'](),_0x5caa96=this['repository']['getRevision'](_0x3dd784);if(_0x5caa96)this['_startingVersion']=_0x5caa96['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x14e414=this['_source']['history']['_operations']['find'](_0x372993=>!_0x372993['_isInit']),_0x1e8a29=_0x14e414?_0x14e414['baseVersion']:this['_source']['history']['version'];_0x22c8cb?(_0x22c8cb['toVersion']<_0x1e8a29&&_0x22c8cb['_update']({'toVersion':_0x1e8a29}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1df626['id'],this['_startingVersion']=_0x1df626['fromVersion']):(this['_startingVersion']=_0x22c8cb['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1e8a29,this['_continueCurrentRevision']=!0x1);}}else _0x1df626&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1df626['toVersion'],this['editor']['model']['document']['history']['version']),_0x1df626['fromVersion']===_0x1df626['toVersion']?(0x0!==_0x1df626['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1df626['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1df626['id'],this['_startingVersion']=_0x1df626['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',_0x28f210=>!_0x28f210),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b63c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f8840;for(const _0x1ec10d in _0x4b63c0){const _0x40e5a9=_0x1ec10d,_0x2c6156=_0x4b63c0[_0x40e5a9];if('revisionHistoryLicenseKeyValid'==_0x2c6156||'revisionHistoryLicenseKeyInvalid'==_0x2c6156||'revisionHistoryLicenseKeyExpired'==_0x2c6156||'revisionHistoryLicenseKeyDomainLimit'==_0x2c6156||'revisionHistoryLicenseKeyNotAllowed'==_0x2c6156||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2c6156||'revisionHistoryLicenseKeyTrialLimit'==_0x2c6156||'revisionHistoryLicenseKeyUsageLimit'==_0x2c6156){delete _0x4b63c0[_0x40e5a9],_0x4f8840=_0x2c6156,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4f8840&&_0x4b63c0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4f8840&&_0x4b63c0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4f8840&&_0x4b63c0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4f8840&&_0x4b63c0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4f8840&&_0x4b63c0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4f8840&&_0x4b63c0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4f8840&&_0x4b63c0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x38df2a=this['repository']['getRevision'](0x0),_0x3f9029=await this['getRevisionDocumentData'](_0x38df2a),_0x545172=await this['getRevisionRootsAttributes'](_0x38df2a);this['_replaceEditorDataWithRevisionData'](_0x3f9029,_0x545172);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1ec066){this['_source']=_0x1ec066;}async['update'](){const _0x5bf090=await this['_source']['getLatestVersion']();if(_0x5bf090>this['currentRevision']['toVersion']){await this['_loadState']();const _0xabb86d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5bf090});_0xabb86d['authors']=_0xabb86d['authorsIds']['map'](_0x319abc=>this['editor']['plugins']['get']('Users')['getUser'](_0x319abc)),this['currentRevision']['_update'](_0xabb86d);}}async['saveRevision'](_0x2fecc5={},_0x5a54bb=null){const _0x1d85d7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5a54bb>this['currentRevision']['toVersion']&&(_0x5a54bb=null),null===_0x5a54bb&&(_0x5a54bb=await this['_source']['getLatestVersion']());const _0xa6e734=this['_getFromVersion'](_0x5a54bb),_0x27adb1=this['buildRevisionData']({'from':_0xa6e734,'to':_0x5a54bb});if(this['currentRevision']['toVersion']<_0x5a54bb){const _0x5974db=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5a54bb,'to':_0x5a54bb});_0x5974db['authors']=[],_0x5974db['authorsIds']=[],_0x5974db['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5974db,!0x0),delete _0x5974db['authors'],_0x1d85d7['push'](_0x5974db);}_0x2fecc5['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fecc5['name']=_0x2fecc5['name']||null,_0x2fecc5['id']=_0x2fecc5['id']||_0x40f93b(),_0x2fecc5={..._0x2fecc5,..._0x27adb1};const _0x359401=this['addRevisionData'](_0x2fecc5);_0x1d85d7['push'](_0x2fecc5);const _0x282b3d=this['repository']['getIndex'](_0x359401);if(0x0!==_0x282b3d){const _0x208d1f=this['repository']['getRevision'](_0x282b3d-0x1);if(_0x208d1f['fromVersion']!==_0x5a54bb){const _0x19f313=this['_revisionDataBuilder']['getData'](_0x5a54bb,_0x208d1f['toVersion']),_0x4dd2f6={'id':_0x208d1f['id'],'diffData':_0x19f313['diffData'],'authorsIds':_0x19f313['authorsIds'],'authors':_0x19f313['authorsIds']['map'](_0x2c3ae8=>this['editor']['plugins']['get']('Users')['getUser'](_0x2c3ae8)),'fromVersion':_0x5a54bb};_0x208d1f===this['currentRevision']&&(_0x4dd2f6['createdAt']=new Date(_0x2fecc5['createdAt']['getTime']()+0xa)),_0x208d1f['_update'](_0x4dd2f6,!0x0),delete _0x4dd2f6['authors'],_0x1d85d7['push'](_0x4dd2f6);}}if(this['adapter']){for(const _0x754cc7 of _0x1d85d7)this['_bufferUpdate'](_0x754cc7['id'],_0x754cc7,!0x0);this['sendBufferedUpdates']();}return _0x359401;}['addRevisionData'](_0x135041){const _0x5c2935=this['repository']['createRevision'](_0x135041);return this['adapter']&&_0x5c2935['on']('_update',(_0x3fb8eb,_0x3a9869,_0x205d49)=>{_0x205d49||(this['_bufferUpdate'](_0x3a9869['id'],_0x3a9869,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c2935,this['_findInsertionIndex'](_0x5c2935)),_0x5c2935;}async['getRevisionDocumentData'](_0x5a7bb7){return await this['_utils']['loadRevisionData'](_0x5a7bb7,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5a7bb7);}async['getRevisionRootsAttributes'](_0x1f2a3a){return await this['_utils']['loadRevisionData'](_0x1f2a3a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1f2a3a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x7b87d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x58b169=0x0;_0x58b169<_0x7b87d['length'];_0x58b169++){const _0x220a27=_0x7b87d[_0x58b169];let _0x4736d2=!0x1;for(const _0x349f31 of Object['keys'](_0x220a27))void 0x0===_0x220a27[_0x349f31]?delete _0x220a27[_0x349f31]:'id'!==_0x349f31&&(_0x4736d2=!0x0);_0x4736d2||(_0x7b87d[_0x58b169]=null);}if(_0x7b87d=_0x7b87d['filter'](_0x4fca08=>null!==_0x4fca08),!_0x7b87d['length'])return;for(let _0x416130=0x0;_0x416130<_0x7b87d['length'];_0x416130++){const _0x10520e=_0x7b87d[_0x416130];void 0x0!==_0x10520e['fromVersion']&&void 0x0===_0x10520e['toVersion']&&(_0x10520e['toVersion']=this['repository']['getRevision'](_0x10520e['id'])['toVersion']),void 0x0!==_0x10520e['toVersion']&&void 0x0===_0x10520e['fromVersion']&&(_0x10520e['fromVersion']=this['repository']['getRevision'](_0x10520e['id'])['fromVersion']);}const _0x19cd19=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x7b87d,_0x19cd19)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x28c5ef=>{if(_0x28c5ef){for(const _0x2604d1 of _0x28c5ef)this['setRevisionData']({'id':_0x2604d1['id'],'createdAt':_0x2604d1['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x31d383=null,from:_0x3ad600=null,to:_0x4855db=null}){_0x3ad600=null!==_0x3ad600?_0x3ad600:_0x31d383['fromVersion'],_0x4855db=null!==_0x4855db?_0x4855db:_0x31d383['toVersion'];const _0x31518b=this['_revisionDataBuilder']['getData'](_0x3ad600,_0x4855db),_0x5150b4={'diffData':_0x31518b['diffData'],'authorsIds':_0x31518b['authorsIds'],'fromVersion':_0x3ad600,'toVersion':_0x4855db};if(!_0x31d383||_0x4855db!==_0x31d383['toVersion']){const _0x50717a=_0x4855db-0x1,_0x2b88a9=this['_source']['history']['getOperation'](_0x50717a);_0x5150b4['createdAt']=_0x2b88a9&&_0x2b88a9['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3ad600===this['_loadedStateData']['fromVersion']){for(const _0x40e373 of this['_loadedStateData']['authors'])_0x5150b4['authorsIds']['includes'](_0x40e373['id'])||_0x5150b4['authorsIds']['push'](_0x40e373['id']);}return _0x5150b4;}['_bufferUpdate'](_0x4d0ebc,_0xcd408a,_0x32fa72){if(this['_bufferedUpdates']['has'](_0x4d0ebc)){const _0x5a904d=this['_bufferedUpdates']['get'](_0x4d0ebc);_0xcd408a=_0x32fa72?{..._0x5a904d,..._0xcd408a}:{..._0xcd408a,..._0x5a904d};}this['_bufferedUpdates']['set'](_0x4d0ebc,_0xcd408a);}['setRevisionData'](_0x23f432){const _0x570027=this['repository']['getRevision'](_0x23f432['id']);if(_0x23f432['createdAt']&&(_0x23f432['createdAt']=new Date(_0x23f432['createdAt'])),_0x23f432['authorsIds']){const _0x398cd3=this['editor']['plugins']['get']('Users');_0x23f432['authors']=_0x23f432['authorsIds']['map'](_0x2ddf21=>_0x398cd3['getUser'](_0x2ddf21));}_0x570027['_update'](_0x23f432,!0x0);}['_createInitialRevision'](_0x8d0958){const _0x12c31e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x12c31e)this['_initialRevisionId']=_0x12c31e['id'];else{const _0x1f28bc=!this['editor']['model']['document']['roots']['find'](_0x3bdce2=>this['editor']['model']['hasContent'](_0x3bdce2)),_0x42416c=this['editor']['plugins']['get']('Users')['me']['id'],_0x4484db=m(this['editor']['locale'],_0x1f28bc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x8d0958,'to':_0x8d0958,'id':this['_initialRevisionId'],'name':_0x4484db,'creatorId':_0x42416c});}}['_createCurrentRevision'](_0x4b5a4c){const _0x4dbabb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4dbabb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4b5a4c,'to':_0x4b5a4c,'id':_0x4dbabb,'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'](_0x412a00,_0x443c5e){let _0x40194a=this['editor']['config']['get']('initialData'),_0x13eb06=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x40194a){_0x40194a={};for(const _0x3021ce of this['editor']['model']['document']['getRootNames']())_0x40194a[_0x3021ce]='';}if('string'==typeof _0x40194a&&(_0x40194a={'main':_0x40194a}),void 0x0===_0x13eb06){_0x13eb06={};for(const _0x10828d of this['editor']['model']['document']['getRootNames']())_0x13eb06[_0x10828d]={};}let _0x4c0bc7=!0x1;const _0x6281ff=Object['keys'](_0x40194a),_0x47ce30=Object['keys'](_0x412a00);for(const _0x71273c of _0x6281ff){if(_0x40194a[_0x71273c]!==_0x412a00[_0x71273c]&&''!==_0x40194a[_0x71273c]['trim']()){_0x4c0bc7=!0x0;break;}if(!_0x66705b(_0x13eb06[_0x71273c],_0x443c5e[_0x71273c])&&Object['keys'](_0x13eb06[_0x71273c])['length']>0x0){_0x4c0bc7=!0x0;break;}}_0x4c0bc7||(_0x4c0bc7=_0x47ce30['some'](_0x5ca446=>!this['editor']['model']['document']['getRoot'](_0x5ca446))),_0x4c0bc7&&_0x307535('editor-initial-data-replaced-with-revision-data',{'editorData':_0x40194a,'editorRootsAttributes':_0x13eb06,'revisionData':_0x412a00,'revisionRootsAttributes':_0x443c5e}),this['editor']['config']['set']('initialData',_0x412a00),this['editor']['config']['set']('rootsAttributes',_0x443c5e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x570552=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x570552['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2805fc){const _0x10dd47=this['repository']['getRevisions']();_0x10dd47['reverse']();let _0x17e2e9=0x0;for(;_0x17e2e9<_0x10dd47['length'];){const _0x1fa87e=_0x10dd47[_0x17e2e9];if(_0x1fa87e===this['currentRevision']){_0x17e2e9++;continue;}if(_0x1fa87e['id']===this['_initialRevisionId'])break;const _0x282bec=_0x2805fc['toVersion']-_0x1fa87e['toVersion']||_0x2805fc['fromVersion']-_0x1fa87e['fromVersion'];if(_0x282bec>0x0)break;if(_0x282bec<0x0)_0x17e2e9++;else{if(!_0x2805fc['creator']&&_0x1fa87e['creator'])break;if(_0x1fa87e['creator']||!_0x2805fc['creator']){if(_0x2805fc['createdAt']>_0x1fa87e['createdAt'])break;_0x17e2e9++;}else _0x17e2e9++;}}return _0x17e2e9;}['_getFromVersion'](_0x280a41){const _0x4eebca=this['repository']['getRevisions']();_0x4eebca['reverse'](),_0x4eebca['shift']();const _0x263f1e=_0x4eebca['find'](_0x360dc0=>_0x360dc0['toVersion']<=_0x280a41)['toVersion'];return _0x263f1e<this['_startingVersion']?this['_startingVersion']:_0x263f1e;}['_makeRevision']({name:_0x189474,from:_0x3ad467,to:_0x58e1e4,creatorId:_0x30997e,id:_0x590eac}){const _0x29fab1=this['buildRevisionData']({'from':_0x3ad467,'to':_0x58e1e4});_0x29fab1['name']=_0x189474,_0x29fab1['creatorId']=_0x30997e,_0x29fab1['id']=_0x590eac;const _0x21862b=this['addRevisionData'](_0x29fab1);return this['adapter']&&this['_bufferUpdate'](_0x29fab1['id'],_0x29fab1,!0x0),_0x21862b;}['_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(_0x2ba826){this['editor']=_0x2ba826,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'](_0x2c0a0c){this['source']=_0x2c0a0c;const _0x21f1e6=new Map(),_0x48e064=new Map(),_0x7d3997=this['editor']['model']['document']['roots']['map'](_0x1388fa=>_0x1388fa['rootName']);for(const _0x332646 of _0x7d3997){const _0x253ed7=this['editor']['model']['document']['getRoot'](_0x332646),_0x147f99=x(_0x253ed7);_0x21f1e6['set'](_0x332646,_0x147f99),_0x48e064['set'](_0x332646,Object['fromEntries'](_0x253ed7['getAttributes']()));}const _0x2cb4b3=Array['from'](this['editor']['model']['markers'])['map'](_0x494b64=>[_0x494b64['name'],_0x494b64['getRange']()]),_0x2614de=this['source']['version'];this['_saveMetaData'](_0x2614de,_0x21f1e6,_0x2cb4b3,_0x48e064),this['_startingRevisionId']=this['_revisionId'];const _0xc124da=new Map(),_0x44e080=new Map();for(const _0x353482 of _0x7d3997){const _0x509736=N(_0x353482);_0xc124da['set'](_0x353482,_0x509736),_0x44e080['set'](_0x353482,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xc124da,[],_0x44e080);}['getData'](_0x51d3c4,_0x3cf15e){if(this['_lastFrom']===_0x51d3c4&&this['_lastTo']<=_0x3cf15e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3cf15e,!0x0);else{if(!this['_savedMetaData']['has'](_0x51d3c4)){const _0x43b8ce=this['_getPreviousFrom'](_0x51d3c4);this['_calculateMetaData'](_0x43b8ce,_0x51d3c4,!0x1);}this['_calculateMetaData'](_0x51d3c4,_0x3cf15e,!0x0);}return this['_lastFrom']=_0x51d3c4,this['_lastTo']=_0x3cf15e,this['_getState']();}['loadState'](_0x3c21b8){if(!this['_savedMetaData']['has'](_0x3c21b8['fromVersion'])){const _0x1ac8ed=this['_getPreviousFrom'](_0x3c21b8['fromVersion']);this['_calculateMetaData'](_0x1ac8ed,_0x3c21b8['fromVersion'],!0x1);}this['_calculateMetaData'](_0x3c21b8['fromVersion'],_0x3c21b8['toVersion'],!0x1);const _0x4e2689=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3c21b8['fromVersion'],this['_lastTo']=_0x3c21b8['toVersion'];for(const _0x5173a8 in _0x3c21b8['diffData']){const _0x3b03f7=_0x3c21b8['diffData'][_0x5173a8]['attachChange'],_0x43dc20=_0x378b0e(_0x3c21b8['diffData'][_0x5173a8]['attributesBefore'])||{},_0xc98035=_0x4e2689['_makeModelFromViewString'](_0x3c21b8['diffData'][_0x5173a8]['deletions']);_0xc98035['rootName']=_0x5173a8,_0xc98035['_isAttached']=!_0x3b03f7||!_0x3b03f7['isAttached'],_0xc98035['isAttached']=()=>_0xc98035['_isAttached'],this['_baseRoots']['set'](_0x5173a8,_0xc98035),this['_baseRootsAttributes']['set'](_0x5173a8,_0x43dc20),_0x3b03f7&&this['_touchedRoots']['set'](_0x5173a8,_0x3b03f7);const _0x29f276=this['_makeIdsRoot'](_0xc98035);this['_baseIdsRoots']['set'](_0x5173a8,_0x29f276);for(const [_0x5c36a2,_0x2ee9b6]of _0xc98035['markers']){if(!_0x5c36a2['startsWith']('revision:'))continue;const _0x9f2771=_0x5c36a2['split'](':')[0x2];for(const _0x5c0be6 of _0x2ee9b6['getWalker']({'singleCharacters':!0x0})){const _0x2846e9=this['_getVidAttributeName'](_0x5c0be6),_0x275385='elementEnd'==_0x5c0be6['type']?_0x5c0be6['previousPosition']['path']['slice'](0x0,-0x1):_0x5c0be6['previousPosition']['path'],_0x4c061f=_0x29f276['getNodeByPath'](_0x275385)['getAttribute'](_0x2846e9);this['_touched']['set'](_0x4c061f,{'userId':_0x9f2771});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1e153b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1071d5=>!this['_touched']['has'](_0x1071d5));let _0xde5c65=0x0;const _0x3d4cd9=new Map();for(const _0x4e1187 in _0x3c21b8['diffData']){const _0x16390a=_0x3c21b8['diffData'][_0x4e1187]['attachChange'],_0x33c284=_0x378b0e(_0x3c21b8['diffData'][_0x4e1187]['attributesAfter'])||{},_0x512eca=_0x4e2689['_makeModelFromViewString'](_0x3c21b8['diffData'][_0x4e1187]['insertions']);_0x512eca['rootName']=_0x4e1187,_0x512eca['_isAttached']=!_0x16390a||_0x16390a['isAttached'],_0x512eca['isAttached']=()=>_0x512eca['_isAttached'],this['_diffRoots']['set'](_0x4e1187,_0x512eca),this['_diffRootsAttributes']['set'](_0x4e1187,_0x33c284);const _0x461f6c=this['_makeIdsRoot'](_0x512eca,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e1187,_0x461f6c),_0x3d4cd9['set'](_0x4e1187,_0x512eca['isAttached']()?_0x33c284:{});for(const [_0x40e8ce,_0x5e25bf]of _0x512eca['markers']){if(!_0x40e8ce['startsWith']('revision:'))continue;const _0x59eafc=_0x40e8ce['split'](':')[0x2];for(const _0x39333b of _0x5e25bf['getWalker']({'singleCharacters':!0x0})){const _0x2574ad=this['_getVidAttributeName'](_0x39333b),_0x3fde15=this['_revisionId']++,_0x187f7a='elementEnd'==_0x39333b['type']?_0x39333b['previousPosition']['path']['slice'](0x0,-0x1):_0x39333b['previousPosition']['path'];_0x461f6c['getNodeByPath'](_0x187f7a)['_setAttribute'](_0x2574ad,_0x3fde15),this['_touched']['set'](_0x3fde15,{'userId':_0x59eafc});}}for(const _0x14a6a7 of this['editor']['model']['createRangeIn'](_0x512eca)['getWalker']({'singleCharacters':!0x0})){const _0x59912=this['_getVidAttributeName'](_0x14a6a7),_0x1cec8d='elementEnd'==_0x14a6a7['type']?_0x14a6a7['previousPosition']['path']['slice'](0x0,-0x1):_0x14a6a7['previousPosition']['path'],_0x4d2dca=_0x461f6c['getNodeByPath'](_0x1cec8d);_0x4d2dca['getAttribute'](_0x59912)>0x0||_0x4d2dca['_setAttribute'](_0x59912,_0x1e153b[_0xde5c65++]);}for(const [_0x4d851d,_0x2e7a62]of _0x512eca['markers'])_0x4d851d['startsWith']('revision:')||this['_markers']['set'](_0x4d851d,_0x2e7a62);}const {roots:_0x3a8593}=this['_savedMetaData']['get'](_0x3c21b8['fromVersion']),{roots:_0x83a72c}=this['_savedMetaData']['get'](_0x3c21b8['toVersion']),_0x2d7cc7=x(_0x3a8593['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2d7cc7),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2d7cc7,Number['NEGATIVE_INFINITY']));const _0x414be4=x(_0x83a72c['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x414be4),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x414be4));const _0x33f475=Array['from'](this['_diffRoots'])['map'](([_0x45d648,_0x30b036])=>[_0x45d648,x(_0x30b036)]);this['_saveMetaData'](this['_lastTo'],_0x33f475,this['_markers'],_0x3d4cd9);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x41e43f,_0x5c3cc1,_0x44720f,_0x4d0750){const _0x24c668=new Map(_0x5c3cc1),_0xb51996=new Map(_0x378b0e(_0x4d0750)),_0x59a8e2=new Map();for(const [_0x15dc4d,_0x5eb1da]of _0x44720f)_0x59a8e2['set'](_0x15dc4d,{'start':_0x5eb1da['start']['clone'](),'end':_0x5eb1da['end']['clone'](),'rootName':_0x5eb1da['root']['rootName']});this['_savedMetaData']['set'](_0x41e43f,{'roots':_0x24c668,'markers':_0x59a8e2,'rootsAttributes':_0xb51996});}['_removeMetaData'](_0xc4ea23){this['_savedMetaData']['delete'](_0xc4ea23);}['_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'](_0x328812,_0x12ca57=null){let _0x5b4554=null;_0x328812['is']('documentFragment')||(_0x5b4554=new _0x82277c(_0x328812['name'],{'vid_start':null===_0x12ca57?this['_revisionId']++:_0x12ca57++}));const _0x4e5497=[];for(const _0x34f46d of _0x328812['getChildren']())if(_0x34f46d['is']('element')){_0x4e5497['push'](this['_makeIdsRoot'](_0x34f46d,_0x12ca57));const _0x3086b8=_0x4e5497[_0x4e5497['length']-0x1];null!==_0x12ca57&&(_0x12ca57=_0x3086b8['is']('element','$text')?_0x3086b8['getAttribute']('vid')+0x1:_0x3086b8['getAttribute']('vid_end')+0x1);}else{for(let _0x361eef=0x0;_0x361eef<_0x34f46d['offsetSize'];_0x361eef++)_0x4e5497['push'](new _0x82277c('$text',{'vid':null===_0x12ca57?this['_revisionId']++:_0x12ca57++}));}if(_0x328812['is']('documentFragment')){const _0x4dec25=N(_0x328812['rootName']);return _0x4dec25['_insertChild'](0x0,_0x4e5497),_0x4dec25;}return _0x5b4554['_setAttribute']('vid_end',null===_0x12ca57?this['_revisionId']++:_0x12ca57++),_0x5b4554['_insertChild'](0x0,_0x4e5497),_0x5b4554;}['_calculateMetaData'](_0x28c114,_0x4b5bf2,_0x4ecde8){this['_reset']();const {roots:_0xae3b39,markers:_0x35f85e,rootsAttributes:_0x381d98}=this['_savedMetaData']['get'](_0x28c114);this['_baseRoots']=new Map(_0xae3b39),this['_baseRootsAttributes']=new Map(_0x378b0e(_0x381d98));for(const [_0x7fb253,_0xb316f9]of this['_baseRoots'])if('$graveyard'!==_0x7fb253&&(this['_diffRoots']['set'](_0x7fb253,x(_0xb316f9)),this['_diffRootsAttributes']=new Map(_0x378b0e(_0x381d98)),_0x4ecde8)){const _0x1ee3fc=this['_revisionId'];this['_idsRoots']['set'](_0x7fb253,this['_makeIdsRoot'](_0xb316f9)),this['_baseIdsRoots']['set'](_0x7fb253,this['_makeIdsRoot'](_0xb316f9,_0x1ee3fc));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x4ecde8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4c846f,_0x4c8c6b]of _0x35f85e){const _0x2a3d17=this['_baseRoots']['get'](_0x4c8c6b['rootName']),_0xb7a01a=this['_diffRoots']['get'](_0x4c8c6b['rootName']),_0x27050d=new _0x5c8fff(this['_fixPosition'](_0x4c8c6b['start'],_0x2a3d17),this['_fixPosition'](_0x4c8c6b['end'],_0x2a3d17)),_0x305e5b=this['_fixRange'](_0x27050d,_0xb7a01a);_0x2a3d17['markers']['set'](_0x4c846f,_0x27050d),this['_markers']['set'](_0x4c846f,_0x305e5b);}this['_applyOperations'](_0x28c114,_0x4b5bf2,_0x4ecde8);}['_applyOperations'](_0x49f293,_0x27a8fd,_0x56c8ac){for(const _0x5ea952 of this['source']['getOperations'](_0x49f293,_0x27a8fd))this['_handleOperation'](_0x5ea952,_0x56c8ac);for(const _0x1ead45 of this['_diffRoots']['values']())_0x1ead45['markers']['clear']();for(const [_0x5e40ef,_0x18ec01]of this['_markers']){this['_diffRoots']['get'](_0x18ec01['root']['rootName'])['markers']['set'](_0x5e40ef,_0x18ec01['clone']());}const _0x12cdfb=new Map(),_0x25e294=new Map();for(const [_0x61f9e3,_0x2291c1]of this['_diffRoots'])_0x12cdfb['set'](_0x61f9e3,x(_0x2291c1)),_0x25e294['set'](_0x61f9e3,this['_diffRootsAttributes']['get'](_0x61f9e3));this['_saveMetaData'](_0x27a8fd,_0x12cdfb,this['_markers'],_0x25e294);}['_getPreviousFrom'](_0x380724){const _0x4b63b3=Array['from'](this['_savedMetaData']['keys']());_0x4b63b3['sort']((_0x3b25d3,_0x3400ca)=>_0x3b25d3-_0x3400ca),_0x4b63b3['reverse']();for(const _0x267e27 of _0x4b63b3)if(_0x267e27<_0x380724)return _0x267e27;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x614e64,_0x3985bd){const _0x28ff07=Array['from'](_0x3985bd['markers'])['map'](([_0x43ef6c,_0x49af5c])=>[_0x43ef6c,this['_fixRange'](_0x49af5c,_0x614e64)]);_0x614e64['markers']=new Map(_0x28ff07);}['_transformMarkers'](_0x45f225){for(const _0x1e2338 of this['_markers']['values']()){const _0x5050cc=_0x1e2338['getTransformedByOperation'](_0x45f225),_0x43f26f=_0x5c8fff['_createFromRanges'](_0x5050cc);_0x1e2338['start']=_0x43f26f['start'],_0x1e2338['end']=_0x43f26f['end'];}}['_handleOperation'](_0x518761,_0x40b4d9){if('addRoot'!=_0x518761['type']&&'detachRoot'!=_0x518761['type']){if('insert'==_0x518761['type']){const _0x206f04=_0x518761['position']['root']['rootName'];this['_diffRoots']['has'](_0x206f04)||(this['_diffRoots']['set'](_0x206f04,N(_0x206f04,!0x0)),this['_diffRootsAttributes']['set'](_0x206f04,{}),_0x40b4d9&&this['_idsRoots']['set'](_0x206f04,N(_0x206f04,!0x0)));}else{if('addRootAttribute'==_0x518761['type']||'removeRootAttribute'==_0x518761['type']||'changeRootAttribute'==_0x518761['type'])return void this['_handleRootAttributeOperation'](_0x518761);'marker'==_0x518761['type']&&this['_handleMarkerOperation'](_0x518761);}if('marker'!==_0x518761['type']){const _0x2b47ea=this['_cloneOperation'](_0x518761,this['_diffRoots']);_0x2b47ea['_execute'](),this['_transformMarkers'](_0x2b47ea);}if(_0x40b4d9)switch(_0x518761['type']){case'insert':this['_handleInsertOperation'](_0x518761);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x518761);break;case'merge':this['_handleMergeOperation'](_0x518761);break;case'split':this['_handleSplitOperation'](_0x518761);}}else this['_handleRootOperation'](_0x518761,_0x40b4d9);}['_cloneOperation'](_0x5587e4,_0x1182f1){const _0xe543a6=_0x5587e4['clone']();return _0xe543a6['_authorId']=_0x5587e4['_authorId'],this['_fixOperation'](_0xe543a6,_0x1182f1),_0xe543a6;}['_getBaseVids'](_0x5c137d){return _0x5c137d['map'](_0x7a2e8f=>{const _0x95a9e5=this['_getVidAttributeName'](_0x7a2e8f);return Number(_0x7a2e8f['item']['getAttribute'](_0x95a9e5));});}['_generateTape'](_0x15bf58,_0x3de550){if(_0x15bf58['is']('element','$text'))_0x3de550['push']({'item':_0x15bf58,'type':'text'});else{_0x15bf58['is']('element')&&_0x3de550['push']({'item':_0x15bf58,'type':'elementStart'});for(const _0x59fefe of _0x15bf58['getChildren']())this['_generateTape'](_0x59fefe,_0x3de550);_0x15bf58['is']('element')&&_0x3de550['push']({'item':_0x15bf58,'type':'elementEnd'});}return _0x3de550;}['_getState'](){const _0x3be6ee=new Map(this['_touched']),_0x5a14cc=new Map(_0x3be6ee),_0x1b021d=new Map(),_0x1fc661={'insertions':{},'deletions':{}},_0x2cb73b={'insertions':{},'deletions':{}},_0x5b95ae=new Map(),_0x3032a8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3032a8['delete']('$graveyard');for(const _0x45ab98 of _0x3032a8){const _0x5011d5=this['_diffRoots']['get'](_0x45ab98)||N(_0x45ab98,!0x1),_0x255fac=this['_baseRoots']['get'](_0x45ab98)||N(_0x45ab98,!0x1);_0x5011d5['isAttached']()||_0x255fac['isAttached']()?(_0x1fc661['insertions'][_0x45ab98]=x(_0x5011d5),_0x1fc661['deletions'][_0x45ab98]=x(_0x255fac),this['_copyMarkers'](_0x1fc661['deletions'][_0x45ab98],_0x255fac),this['_copyMarkers'](_0x1fc661['insertions'][_0x45ab98],_0x5011d5),_0x2cb73b['insertions'][_0x45ab98]=this['_generateTape'](this['_idsRoots']['get'](_0x45ab98),[]),_0x2cb73b['deletions'][_0x45ab98]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x45ab98)||N(_0x45ab98,!0x1),[])):_0x3032a8['delete'](_0x45ab98);}for(const _0x121ae2 of _0x3032a8){const _0x3b453e=_0x2cb73b['insertions'][_0x121ae2];for(const _0xa6805e of _0x3b453e){const _0x3b14e6=this['_getVidAttributeName'](_0xa6805e),_0x34c151=_0xa6805e['item']['getAttribute'](_0x3b14e6);_0x5a14cc['delete'](_0x34c151),_0x34c151>=this['_startingRevisionId']&&_0x1b021d['set'](_0x34c151,_0x3be6ee['get'](_0x34c151));}}for(const _0x1bf10d of _0x3032a8){const _0x2140bb=_0x2cb73b['insertions'][_0x1bf10d],_0x16f69e=this['_getBaseVids'](_0x2cb73b['deletions'][_0x1bf10d]);let _0x14143b=0x0;for(const _0x434603 of _0x2140bb){const _0x55dd95=this['_getVidAttributeName'](_0x434603),_0xcc5f0f=_0x434603['item']['getAttribute'](_0x55dd95);if(!_0x1b021d['has'](_0xcc5f0f)&&!_0x5b95ae['has'](_0xcc5f0f)){if(_0x5a14cc['has'](_0xcc5f0f))_0x14143b++;else{if(_0xcc5f0f!=_0x16f69e[_0x14143b]){const _0x4cdcb6=_0x3be6ee['get'](_0xcc5f0f)||_0x3be6ee['get'](_0x16f69e[_0x14143b]);for(;_0xcc5f0f!=_0x16f69e[_0x14143b];)_0x5a14cc['has'](_0x16f69e[_0x14143b])||(_0x5b95ae['set'](_0x16f69e[_0x14143b],_0x4cdcb6),_0x3be6ee['set'](_0x16f69e[_0x14143b],_0x4cdcb6)),_0x14143b++;}_0x14143b++;}}}}for(const _0x3f4ac0 of _0x3032a8){const _0x45a98c=_0x2cb73b['insertions'][_0x3f4ac0];for(const _0x421949 of _0x45a98c){const _0x3fb83d=this['_getVidAttributeName'](_0x421949),_0x529844=_0x421949['item']['getAttribute'](_0x3fb83d);if(_0x5b95ae['has'](_0x529844)){const _0x457d0d=_0x5b95ae['get'](_0x529844);_0x5a14cc['has'](_0x529844)||_0x5a14cc['set'](_0x529844,{..._0x457d0d}),_0x1b021d['set'](_0x529844,{..._0x457d0d});}}}for(const _0x340363 of _0x5a14cc['keys']())_0x340363>=this['_startingRevisionId']&&_0x5a14cc['delete'](_0x340363);const _0x2fefb5=new Map();for(const _0x5e71ac of _0x3032a8){let _0x287e60=_0x2cb73b['insertions'][_0x5e71ac];for(const _0x18ff5c of _0x287e60)if(_0x18ff5c['item']['is']('element','tableCell')){const _0x5c2771=this['_getVidAttributeName'](_0x18ff5c),_0x2506ac=_0x18ff5c['item']['getAttribute'](_0x5c2771);if(_0x1b021d['has'](_0x2506ac)){const _0x3f1e5a=_0x18ff5c['item']['parent']['parent']['getAttribute']('vid_start'),_0x81ae50=_0x2fefb5['get'](_0x3f1e5a)||new Set();_0x81ae50['add'](_0x1b021d['get'](_0x2506ac)['userId']),_0x2fefb5['set'](_0x3f1e5a,_0x81ae50);}}_0x287e60=_0x2cb73b['deletions'][_0x5e71ac];for(const _0x3df64d of _0x287e60)if(_0x3df64d['item']['is']('element','tableCell')){const _0x2490ec=this['_getVidAttributeName'](_0x3df64d),_0x1defb3=_0x3df64d['item']['getAttribute'](_0x2490ec);if(_0x5a14cc['has'](_0x1defb3)){const _0x2cae1c=_0x3df64d['item']['parent']['parent']['getAttribute']('vid_start'),_0x14047f=_0x2fefb5['get'](_0x2cae1c)||new Set();_0x14047f['add'](_0x5a14cc['get'](_0x1defb3)['userId']),_0x2fefb5['set'](_0x2cae1c,_0x14047f);}}for(const _0x2e6a75 of _0x2fefb5['keys']())(_0x1b021d['has'](_0x2e6a75)||_0x5a14cc['has'](_0x2e6a75))&&_0x2fefb5['delete'](_0x2e6a75);}for(const _0x26d622 of _0x3032a8){const _0x20d42a=_0x2cb73b['insertions'][_0x26d622];let _0x3af482=null,_0x3e73ff=null;for(const _0x441315 of _0x20d42a){const _0x5045af=this['_getVidAttributeName'](_0x441315),_0x2ef5d9=_0x441315['item']['getAttribute'](_0x5045af),_0x3f1a22=_0x2fefb5['get'](_0x2ef5d9);_0x3f1a22&&'elementStart'==_0x441315['type']&&(_0x3af482=Array['from'](_0x3f1a22)[0x0],_0x3e73ff=_0x441315['item']['getAttribute']('vid_end')),_0x3af482&&(_0x5a14cc['set'](_0x2ef5d9,{'userId':_0x3af482}),_0x1b021d['set'](_0x2ef5d9,{'userId':_0x3af482})),_0x2ef5d9==_0x3e73ff&&(_0x3af482=null,_0x3e73ff=null);}}const _0x33b032={},_0x186276=new Set();for(const _0x41bc83 of _0x3032a8){const _0x16a3bd=_0x1fc661['deletions'][_0x41bc83],_0x17e775=_0x1fc661['insertions'][_0x41bc83];for(const {userId:_0x1517f1}of this['_touchedMarkers']['values']())null!==_0x1517f1&&_0x186276['add'](_0x1517f1);for(const {userId:_0x37f833}of this['_touchedRoots']['values']())null!==_0x37f833&&_0x186276['add'](_0x37f833);this['_markChanges'](_0x17e775,_0x2cb73b['insertions'][_0x41bc83],_0x1b021d,'insertion',_0x186276),this['_markChanges'](_0x16a3bd,_0x2cb73b['deletions'][_0x41bc83],_0x5a14cc,'deletion',_0x186276),_0x33b032[_0x41bc83]={'insertions':this['_prepareViewToSave'](_0x17e775),'deletions':this['_prepareViewToSave'](_0x16a3bd),'attachChange':this['_touchedRoots']['get'](_0x41bc83)||null,'attributesBefore':_0x378b0e(this['_baseRootsAttributes']['get'](_0x41bc83))||{},'attributesAfter':_0x378b0e(this['_diffRootsAttributes']['get'](_0x41bc83))};}return{'diffData':_0x33b032,'authorsIds':Array['from'](_0x186276)};}['_processRootBeforeSave'](_0x3e8457){for(const [,_0x3ba6e3]of _0x3e8457['markers']){const _0xe19c28=_0x3ba6e3['start']['getAncestors']()['filter'](_0x3fb9f6=>'tableCell'==_0x3fb9f6['name']);for(const _0x346e1d of _0xe19c28)0x1==_0x346e1d['childCount']&&_0x346e1d['getChild'](0x0)['is']('element','paragraph')&&_0x346e1d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x56ec3e){this['_processRootBeforeSave'](_0x56ec3e);const _0x4e2760=this['editor']['data']['toView'](_0x56ec3e,{}),_0xd61b5f=Array['from'](_0x4e2760['getChildren']())['map'](_0x50cbcf=>this['_getViewJson'](_0x50cbcf));return JSON['stringify'](_0xd61b5f);}['_getViewJson'](_0x10a081){if(_0x10a081['is']('$text'))return _0x10a081['data'];{const _0x3cb7aa=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x12e48a=_0x10a081,_0x5d0afc=this['editor']['data']['htmlProcessor']['domConverter'],_0x502c3d={'type':_0x3cb7aa['_getTypeCharForViewElement'](_0x12e48a),'name':_0x12e48a['name'],'attributes':Array['from'](_0x12e48a['getAttributes']()),'children':Array['from'](_0x12e48a['getChildren']())['map'](_0x3c37ed=>this['_getViewJson'](_0x3c37ed))};if(_0x10a081['is']('uiElement')&&'$comment'!=_0x10a081['name']){const _0x1dfcd1=_0x10a081['render'](_0x5d0afc['domDocument'],_0x5d0afc);_0x502c3d['children']['push'](_0x1dfcd1['outerHTML']);}else{if(_0x10a081['is']('rawElement')){const _0xeebe9b=_0x5d0afc['domDocument']['createElement'](_0x12e48a['name']);_0x10a081['render'](_0xeebe9b,_0x5d0afc),_0x502c3d['children']['push'](_0xeebe9b['innerHTML']);}}const _0x16f023=Array['from'](_0x12e48a['getCustomProperties']());_0x16f023['length']>0x0&&(_0x502c3d['customProperties']=_0x16f023);const _0x2358ae=_0x12e48a['getFillerOffset']();return null!==_0x2358ae&&(_0x502c3d['fillerOffset']=_0x2358ae),_0x502c3d;}}['_markChanges'](_0x56f983,_0x19054f,_0x131c61,_0x38dae2,_0x1667fb){let _0x24e285=null,_0x5e621c=null,_0x2fb312=0x0;const _0x45c11a=this['editor']['model'];for(let _0x2d4772=0x0;_0x2d4772<_0x19054f['length'];_0x2d4772++){const _0x5d395c=this['_getVidAttributeName'](_0x19054f[_0x2d4772]),_0x5865c3=_0x19054f[_0x2d4772]['item']['getAttribute'](_0x5d395c),_0x457bf6=_0x131c61['get'](_0x5865c3),_0x4400e5=_0x2d4772==_0x19054f['length']-0x1;(!_0x24e285&&_0x457bf6&&(_0x24e285=_0x457bf6,_0x5e621c=_0x19054f[_0x2d4772]),_0x24e285&&(!_0x457bf6||_0x457bf6['userId']!=_0x24e285['userId']))&&(_0x22bd9f(_0x457bf6,P(_0x5e621c,_0x56f983,_0x45c11a),P(_0x19054f[_0x2d4772],_0x56f983,_0x45c11a)),_0x24e285=_0x457bf6||null,_0x5e621c=_0x457bf6?_0x19054f[_0x2d4772]:null),_0x24e285&&_0x4400e5&&_0x22bd9f(_0x457bf6,P(_0x5e621c,_0x56f983,_0x45c11a),V(_0x19054f[_0x2d4772],_0x56f983,_0x45c11a));}function _0x22bd9f(_0x44a1b5,_0x58c7c5,_0x488bdd){const _0x56dcc4=_0x24e285['userId'],_0xfe9226='revision:'+_0x38dae2+':'+_0x56dcc4+':'+_0x2fb312++,_0x72698f=_0x45c11a['createRange'](_0x58c7c5,_0x488bdd);_0x56f983['markers']['set'](_0xfe9226,_0x72698f),null!==_0x56dcc4&&_0x1667fb['add'](_0x56dcc4);}}['_getVidAttributeName'](_0x185994){switch(_0x185994['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xfa6252,_0x4c911f){_0xfa6252['baseVersion']=null;for(const _0x56c1c4 in _0xfa6252){const _0x13f029=_0xfa6252[_0x56c1c4];if(_0x13f029 instanceof _0x57a6ba){const _0x54a746=_0x4c911f['get'](_0x13f029['root']['rootName']);_0xfa6252[_0x56c1c4]=this['_fixPosition'](_0x13f029,_0x54a746);}if(_0x13f029 instanceof _0x5c8fff){const _0x3caf3b=_0x4c911f['get'](_0x13f029['root']['rootName']);_0xfa6252[_0x56c1c4]=this['_fixRange'](_0x13f029,_0x3caf3b);}'root'===_0x56c1c4&&(_0xfa6252['root']=_0x4c911f['get'](_0xfa6252['root']['rootName']));}}['_fixRange'](_0x2503cb,_0x4e86ae){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2503cb['start'],_0x4e86ae),this['_fixPosition'](_0x2503cb['end'],_0x4e86ae));}['_fixPosition'](_0x1853be,_0x2b01fe){return this['editor']['model']['createPositionFromPath'](_0x2b01fe,_0x1853be['path'],_0x1853be['stickiness']);}['_handleInsertOperation'](_0x104d27){const _0x3e3fb6=this['_idsRoots']['get'](_0x104d27['position']['root']['rootName']),_0x4d3370=this['_fixPosition'](_0x104d27['position'],_0x3e3fb6),_0x13f638=null===_0x104d27['_authorId']?null:_0x104d27['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5cbd2a=_0x4d3370['parent'],_0x15bf67=this['_revisionId'],_0x4ac75c=[];for(const _0x3592f8 of _0x104d27['nodes'])if(_0x3592f8['is']('element'))_0x4ac75c['push'](this['_makeIdsRoot'](_0x3592f8));else{for(let _0x47dcd7=0x0;_0x47dcd7<_0x3592f8['offsetSize'];_0x47dcd7++)_0x4ac75c['push'](new _0x82277c('$text',{'vid':this['_revisionId']++}));}const _0x16f5c4=this['_revisionId'];for(let _0x5bcc07=_0x15bf67;_0x5bcc07<_0x16f5c4;_0x5bcc07++)this['_touched']['set'](_0x5bcc07,{'userId':_0x13f638});_0x5cbd2a['_insertChild'](_0x4d3370['offset'],_0x4ac75c);}['_handleMoveOperation'](_0x568543){(_0x568543=this['_cloneOperation'](_0x568543,this['_idsRoots']))['_execute']();const _0x16bb01=null===_0x568543['_authorId']?null:_0x568543['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x390a55=_0x568543['getMovedRangeStart'](),_0x433339=_0x390a55['parent'],_0x4f3bdc=_0x390a55['offset'];!function _0x404ef9(_0x46ac40,_0x1ad81f,_0x129ab3,_0x2fff0e){for(let _0xd1599=_0x129ab3;_0xd1599<_0x2fff0e;_0xd1599++){const _0x5ad3d6=_0x1ad81f['getChild'](_0xd1599);_0x5ad3d6['is']('element','$text')?_0x46ac40['set'](_0x5ad3d6['getAttribute']('vid'),{'userId':_0x16bb01}):(_0x46ac40['set'](_0x5ad3d6['getAttribute']('vid_start'),{'userId':_0x16bb01}),_0x404ef9(_0x46ac40,_0x5ad3d6,0x0,_0x5ad3d6['childCount']),_0x46ac40['set'](_0x5ad3d6['getAttribute']('vid_end'),{'userId':_0x16bb01}));}}(this['_touched'],_0x433339,_0x4f3bdc,_0x4f3bdc+_0x568543['howMany']);}['_handleMergeOperation'](_0x32217a){const _0x98b01f=null===(_0x32217a=this['_cloneOperation'](_0x32217a,this['_idsRoots']))['_authorId']?null:_0x32217a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3de740=_0x32217a['targetPosition']['parent'],_0x4c78be=_0x32217a['sourcePosition']['parent'],_0x1c5a5a=_0x3de740['getAttribute']('vid_end'),_0xcd9591=_0x4c78be['getAttribute']('vid_start');_0x3de740['_setAttribute']('vid_end',_0x4c78be['getAttribute']('vid_end')),_0x4c78be['_setAttribute']('vid_end',_0x1c5a5a),this['_touched']['set'](_0xcd9591,{'userId':_0x98b01f}),this['_touched']['set'](_0x1c5a5a,{'userId':_0x98b01f}),_0x32217a['_execute']();}['_handleSplitOperation'](_0x39695c){const _0x5da3a4=null===(_0x39695c=this['_cloneOperation'](_0x39695c,this['_idsRoots']))['_authorId']?null:_0x39695c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4ee660=_0x39695c['graveyardPosition'],_0x5f0402=_0x39695c['splitPosition']['parent'];_0x39695c['_execute']();const _0xb1202b=_0x5f0402['getAttribute']('vid_end'),_0x59c7b1=_0x39695c['insertionPosition']['nodeAfter'];if(_0x4ee660){const _0x227bf8=_0x59c7b1['getAttribute']('vid_end'),_0x90d225=_0x5f0402['getAttribute']('vid_end');_0x5f0402['_setAttribute']('vid_end',_0x227bf8),_0x59c7b1['_setAttribute']('vid_end',_0x90d225),this['_touched']['set'](_0x5f0402['getAttribute']('vid_end'),{'userId':_0x5da3a4}),this['_touched']['set'](_0x59c7b1['getAttribute']('vid_start'),{'userId':_0x5da3a4});}else{const _0x4f99cc=this['_revisionId']++,_0x26590d=this['_revisionId']++;_0x5f0402['_setAttribute']('vid_end',_0x4f99cc),_0x59c7b1['_setAttribute']('vid_start',_0x26590d),_0x59c7b1['_setAttribute']('vid_end',_0xb1202b),this['_touched']['set'](_0x4f99cc,{'userId':_0x5da3a4}),this['_touched']['set'](_0x26590d,{'userId':_0x5da3a4});}}['_handleMarkerOperation'](_0x126776){if(!_0x126776['affectsData'])return;const _0xb94a62=(_0x126776=this['_cloneOperation'](_0x126776,this['_diffRoots']))['oldRange']?_0x126776['oldRange']['root']:null,_0x9f560=_0x126776['newRange']?_0x126776['newRange']['root']:null;_0xb94a62&&this['_markers']['delete'](_0x126776['name']),_0x9f560&&this['_markers']['set'](_0x126776['name'],_0x126776['newRange']['clone']());const _0x4ba4b6=null===_0x126776['_authorId']?null:_0x126776['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x123dee=_0x126776['name'];if(!this['_touchedMarkers']['has'](_0x123dee))return void this['_touchedMarkers']['set'](_0x123dee,{'range':_0x126776['oldRange'],'userId':_0x4ba4b6});const _0x548dbc=this['_touchedMarkers']['get'](_0x123dee),_0x16bf40=_0x548dbc['range'],_0x21101=_0x126776['newRange'];null==_0x16bf40&&null==_0x21101||_0x16bf40&&_0x21101&&_0x16bf40['isEqual'](_0x21101)?this['_touchedMarkers']['delete'](_0x126776['name']):_0x548dbc['userId']=_0x4ba4b6;}['_handleRootOperation'](_0x2d96b3,_0x2dddb4){this['_diffRoots']['has'](_0x2d96b3['rootName'])?this['_diffRoots']['get'](_0x2d96b3['rootName'])['_isAttached']=_0x2d96b3['isAdd']:(this['_diffRoots']['set'](_0x2d96b3['rootName'],N(_0x2d96b3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d96b3['rootName'],{}),_0x2dddb4&&this['_idsRoots']['set'](_0x2d96b3['rootName'],N(_0x2d96b3['rootName'],!0x0)));const _0x373962=null===_0x2d96b3['_authorId']?null:_0x2d96b3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x29e4db=this['_touchedRoots']['get'](_0x2d96b3['rootName']);_0x29e4db&&_0x29e4db['userId']===_0x373962?this['_touchedRoots']['delete'](_0x2d96b3['rootName']):this['_touchedRoots']['set'](_0x2d96b3['rootName'],{'userId':_0x373962,'isAttached':_0x2d96b3['isAdd']});}['_handleRootAttributeOperation'](_0x27b498){const _0x4d0043=this['_diffRootsAttributes']['get'](_0x27b498['root']['rootName']);null===_0x27b498['newValue']?delete _0x4d0043[_0x27b498['key']]:_0x4d0043[_0x27b498['key']]=_0x27b498['newValue'];}}function x(_0x423f45){const _0x5ef5f1=N(_0x423f45['rootName'],_0x423f45['isAttached']());for(const _0x5e15f4 of _0x423f45['getChildren']()){const _0x53d358=_0x5e15f4['_clone'](!0x0);_0x5ef5f1['_appendChild'](_0x53d358);}return _0x5ef5f1;}function N(_0x41cdfb,_0x1af2ae=!0x0){const _0x20174f=new _0x3324d4();return _0x20174f['rootName']=_0x41cdfb,_0x20174f['_isAttached']=_0x1af2ae,_0x20174f['isAttached']=()=>_0x20174f['_isAttached'],_0x20174f;}function P(_0x39b3f0,_0x212987,_0x2189a3){const _0x4fad12='elementEnd'==_0x39b3f0['type']?_0x2189a3['createPositionAt'](_0x39b3f0['item'],'end'):_0x2189a3['createPositionBefore'](_0x39b3f0['item']);return _0x2189a3['createPositionFromPath'](_0x212987,_0x4fad12['path'],_0x4fad12['stickiness']);}function V(_0xdb2ec9,_0x7c0da,_0x7f5dd0){const _0x950d07='elementStart'==_0xdb2ec9['type']?_0x7f5dd0['createPositionAt'](_0xdb2ec9['item'],0x0):_0x7f5dd0['createPositionAfter'](_0xdb2ec9['item']);return _0x7f5dd0['createPositionFromPath'](_0x7c0da,_0x950d07['path'],_0x950d07['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x37be83(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x18214f){super(),this['id']=_0x18214f['id']||_0x40f93b(),this['author']=_0x18214f['author'],this['type']=_0x18214f['type'],this['data']=_0x18214f['data']||{},this['rootName']=_0x18214f['rootName'],this['set']('createdAt',_0x18214f['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(_0x38946c,_0x973068){this['newRevisionId']=_0x38946c,this['oldRevisionId']=_0x973068,this['changes']=new _0x150ee0();}['_setChanges'](_0x4d5d71){for(const _0x119e66 of _0x4d5d71)this['changes']['add'](_0x119e66);}}class u extends _0xb302f2{['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[_0x5232bd,_0x98707b,S,$];}constructor(_0x29d01e){super(_0x29d01e),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',(_0x15e9de,_0x123f60,_0x84458e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1f2c25=>{for(const _0x4947d4 of this['editor']['editing']['view']['document']['roots'])_0x84458e?_0x1f2c25['removeClass']('ck-editor__editable__overlay',_0x4947d4):_0x1f2c25['addClass']('ck-editor__editable__overlay',_0x4947d4);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x141aae=>null!==_0x141aae),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x27ca73,_0x4d663a,_0x51223a)=>_0x27ca73&&_0x51223a?_0x4d663a['changes']['getIndex'](_0x51223a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2c9ab6,_0x578b1a)=>_0x2c9ab6?_0x578b1a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x98707b);}['init'](){const _0x5b0731=this['editor'],_0x144ff8=new ot(_0x5b0731,{'direction':'backward'}),_0x1ea305=new ot(_0x5b0731,{'direction':'forward'});(_0x5b0731['commands']['add']('showPreviousChange',_0x144ff8),_0x5b0731['commands']['add']('showNextChange',_0x1ea305),_0x5b0731['commands']['add']('restoreRevision',new nt(_0x5b0731)),this['on']('change:numberOfChanges',()=>{_0x144ff8['refresh'](),_0x1ea305['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b0731['enableReadOnlyMode']('revision-viewer'),_0x5b0731['plugins']['has']('WidgetToolbarRepository'))&&_0x5b0731['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x31a5d9){return await this['_utils']['loadRevisionData'](_0x31a5d9,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x31a5d9);}async['getRevisionRootsAttributes'](_0x2b2860){return await this['_utils']['loadRevisionData'](_0x2b2860,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2b2860);}async['compare'](_0x488026,_0x3c2f35,_0x38e013=!0x1){if(!this['isEnabled'])return;const _0x7eca16=this['diff'],_0x2fecd8=this['repository'],_0x46236e='string'==typeof _0x488026?_0x2fecd8['getRevision'](_0x488026):_0x488026,_0x457e3c='string'==typeof _0x3c2f35?_0x2fecd8['getRevision'](_0x3c2f35):_0x3c2f35,_0x160815=_0x46236e['id'],_0xdedeb3=_0x457e3c?_0x457e3c['id']:null;if(!_0x38e013&&this['diff']&&this['diff']['newRevisionId']===_0x160815&&this['diff']['oldRevisionId']===_0xdedeb3)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x160815,_0xdedeb3);const _0x2695a4=this['_getRevisionsRange'](_0x46236e,_0x457e3c,!0x0)['map'](_0x1a9c63=>this['_utils']['loadRevisionData'](_0x1a9c63,this['adapter']));return _0x2695a4['push'](new Promise(_0x4d682d=>{setTimeout(_0x4d682d,0x14);})),Promise['all'](_0x2695a4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xf05cf3=this['_getDiff'](_0x160815,_0xdedeb3);for(const _0x1346ad of _0xf05cf3['changes'])this['_changeIdToChange']['set'](_0x1346ad['id'],_0x1346ad);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x461f4e=>{for(const _0x47666a of this['editor']['model']['document']['getRootNames']())_0x461f4e['detachRoot'](_0x47666a);for(const _0x1c43c4 of Object['keys'](_0xf05cf3['model'])){const _0x217e8f=_0x461f4e['addRoot'](_0x1c43c4);for(const _0xb3460 of Object['keys'](_0xf05cf3['attributes'][_0x1c43c4]))_0x461f4e['setAttribute'](_0xb3460,_0xf05cf3['attributes'][_0x1c43c4][_0xb3460],_0x217e8f);_0x461f4e['insert'](_0xf05cf3['model'][_0x1c43c4],_0x217e8f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xf05cf3['changes'])),this['isReady']=!0x0;})['catch'](_0x99af96=>{console['error'](_0x99af96),this['_cleanUp'](),_0x7eca16&&(this['diff']=_0x7eca16),this['isReady']=!0x0;});}['addRevisionData'](_0xf2a289,_0x8a3c67){const _0x4bd9c8=this['repository']['createRevision'](_0xf2a289);return _0x4bd9c8['on']('_update',(_0x489995,_0x24dabd,_0x174ee9)=>_0x8a3c67(_0x24dabd,_0x174ee9,_0x4bd9c8)),this['repository']['addRevision'](_0x4bd9c8),_0x4bd9c8;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xdb7763=>{for(const _0x266bf8 of this['editor']['model']['document']['getRootNames']())_0xdb7763['detachRoot'](_0x266bf8);});}['_sortAndFilterDiffChanges'](_0x2f006a){const _0x57174f=[],_0x5142ce=new Map();for(const _0x14c3c1 of this['editor']['model']['document']['getRootNames']()){const _0x11ca3a=this['editor']['editing']['view']['getDomRoot'](_0x14c3c1);if(!_0x11ca3a)continue;const _0x5a0df2=_0x11ca3a['getClientRects']()['item'](0x0);_0x5a0df2&&(_0x57174f['push'](_0x14c3c1),_0x5142ce['set'](_0x14c3c1,_0x5a0df2));}return _0x57174f['sort']((_0x153bab,_0x52132d)=>{const _0x43dba1=_0x5142ce['get'](_0x153bab),_0x136adf=_0x5142ce['get'](_0x52132d);return _0x43dba1['y']-_0x136adf['y']||_0x43dba1['x']-_0x136adf['x'];}),(_0x2f006a=_0x2f006a['filter'](_0x2b060f=>_0x57174f['includes'](_0x2b060f['rootName'])))['sort']((_0x586ab1,_0xddfd30)=>_0x57174f['indexOf'](_0x586ab1['rootName'])-_0x57174f['indexOf'](_0xddfd30['rootName'])),_0x2f006a;}['_makeTape'](_0x219b70){const _0x8d1b76=Array['from'](_0x219b70['markers'])['filter'](([_0xd553c1,_0x200124])=>_0xd553c1['startsWith']('revision:')&&!_0x200124['isCollapsed']),_0x5bf397=Array['from'](this['editor']['model']['createRangeIn'](_0x219b70)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x8d1b76['length'])for(const _0x18987e of _0x5bf397){const [_0x5e6019,_0xee400b]=_0x8d1b76[0x0],[,_0x4c2eff,_0x4735ec]=_0x5e6019['split'](':');if(_0xee400b['end']['isEqual'](_0x18987e['nextPosition'])&&_0x8d1b76['shift'](),(_0x18987e['previousPosition']['isEqual'](_0xee400b['start'])||_0x18987e['previousPosition']['isAfter'](_0xee400b['start']))&&('insertion'==_0x4c2eff?_0x18987e['isAdded']={'userId':_0x4735ec}:'deletion'==_0x4c2eff&&(_0x18987e['isRemoved']={'userId':_0x4735ec})),0x0==_0x8d1b76['length'])break;}return _0x5bf397;}['_refreshStartEndIndex'](_0x8cecbd){const _0x2c2a7c=new Map();for(let _0x4ff2ad=0x0;_0x4ff2ad<_0x8cecbd['length'];_0x4ff2ad++)'text'===_0x8cecbd[_0x4ff2ad]['type']?(_0x8cecbd[_0x4ff2ad]['item']['startIndex']=_0x4ff2ad,_0x8cecbd[_0x4ff2ad]['item']['endIndex']=_0x4ff2ad):('elementStart'===_0x8cecbd[_0x4ff2ad]['type']?_0x8cecbd[_0x4ff2ad]['item']['startIndex']=_0x4ff2ad:'elementEnd'===_0x8cecbd[_0x4ff2ad]['type']&&(_0x8cecbd[_0x4ff2ad]['item']['endIndex']=_0x4ff2ad),_0x2c2a7c['set'](_0x8cecbd[_0x4ff2ad]['id'],_0x4ff2ad));for(const _0x117ae7 of _0x2c2a7c['values']())'elementStart'===_0x8cecbd[_0x117ae7]['type']?_0x8cecbd[_0x117ae7]['item']['endIndex']=_0x2c2a7c['get'](_0x8cecbd[_0x117ae7]['pairId']):'elementEnd'===_0x8cecbd[_0x117ae7]['type']&&(_0x8cecbd[_0x117ae7]['item']['startIndex']=_0x2c2a7c['get'](_0x8cecbd[_0x117ae7]['pairId']));}['_processTape'](_0x4f4b8d){for(let _0x1b89ab=0x0;_0x1b89ab<_0x4f4b8d['length'];_0x1b89ab++){if('elementStart'===_0x4f4b8d[_0x1b89ab]['type'])_0x4f4b8d[_0x1b89ab]['item']['startIndex']=_0x1b89ab;else{if('elementEnd'===_0x4f4b8d[_0x1b89ab]['type']){_0x4f4b8d[_0x1b89ab]['item']['endIndex']=_0x1b89ab;const _0x16e1e3=_0x4f4b8d[_0x1b89ab]['item']['startIndex'];_0x4f4b8d[_0x16e1e3]['pairId']=_0x4f4b8d[_0x1b89ab]['id'],_0x4f4b8d[_0x1b89ab]['pairId']=_0x4f4b8d[_0x16e1e3]['id'];}else _0x4f4b8d[_0x1b89ab]['item']['startIndex']=_0x1b89ab,_0x4f4b8d[_0x1b89ab]['item']['endIndex']=_0x1b89ab,_0x4f4b8d[_0x1b89ab]['pairId']=null;}_0x4f4b8d[_0x1b89ab]['markersStart']||(_0x4f4b8d[_0x1b89ab]['markersStart']=[],_0x4f4b8d[_0x1b89ab]['markersEnd']=[]);}}['_markInsertions'](_0x1effec,_0x39a554){const _0x221267=_0x1effec['filter'](_0x1ac8fe=>!_0x1ac8fe['isAdded']);for(let _0xc6d888=0x0;_0xc6d888<_0x39a554['length'];_0xc6d888++)_0x39a554[_0xc6d888]['isAdded']&&(_0x221267[_0xc6d888]['isAdded']=_0x39a554[_0xc6d888]['isAdded']);}['_getDiff'](_0x5371e1,_0x49c0f2=null){const _0x4ebf34=this['repository']['getRevision'](_0x5371e1),_0x487a24=_0x49c0f2?this['repository']['getRevision'](_0x49c0f2):null,_0x3d5bb5=this['_getRevisionsRange'](_0x4ebf34,_0x487a24),_0x5de8cb=_0x3d5bb5[_0x3d5bb5['length']-0x1],_0x30f2e6=new Map(),_0x3aaed1={'model':{},'attributes':{},'changes':[]},_0x49ff9b=new Set(),_0x48bc5b=new Map();for(let _0x1e133b=_0x3d5bb5['length']-0x1;_0x1e133b>=0x0;_0x1e133b--){const _0x386f38=_0x3d5bb5[_0x1e133b];for(const _0x192b8b of Object['keys'](_0x386f38['diffData']))if(_0x386f38['diffData'][_0x192b8b]['attachChange']){const _0x3a2d67=_0x386f38['diffData'][_0x192b8b]['attachChange'];_0x3a2d67['isAttached']?(_0x49ff9b['add'](_0x192b8b),_0x48bc5b['has'](_0x192b8b)&&_0x48bc5b['get'](_0x192b8b)['userId']==_0x3a2d67['userId']?_0x48bc5b['delete'](_0x192b8b):_0x48bc5b['set'](_0x192b8b,_0x3a2d67)):_0x48bc5b['has'](_0x192b8b)?(_0x49ff9b['delete'](_0x192b8b),_0x48bc5b['delete'](_0x192b8b)):(_0x49ff9b['add'](_0x192b8b),_0x48bc5b['set'](_0x192b8b,_0x3a2d67));}else _0x49ff9b['add'](_0x192b8b);}for(const _0x324706 of _0x49ff9b){const _0x373bbd=_0x48bc5b['has'](_0x324706)&&!_0x48bc5b['get'](_0x324706)['isAttached'];let _0x5e1438=_0x373bbd?_0x3d5bb5['length']-0x1:0x0;const _0x20912c=_0x373bbd?-0x1:0x1;for(;_0x3d5bb5[_0x5e1438];){const _0x2d2582=_0x3d5bb5[_0x5e1438];if(_0x2d2582['diffData'][_0x324706]){const _0xaf37c7=_0x373bbd?_0x2d2582['diffData'][_0x324706]['attributesBefore']:_0x2d2582['diffData'][_0x324706]['attributesAfter'];_0x3aaed1['attributes'][_0x324706]=_0xaf37c7?_0x378b0e(_0xaf37c7):{};break;}_0x5e1438+=_0x20912c;}}for(const _0x52e74c of _0x3d5bb5){_0x52e74c['model']={};for(const _0x319b1c of _0x52e74c['authors'])_0x30f2e6['set'](_0x319b1c['id'],_0x319b1c);for(const _0x5e98f0 of _0x49ff9b){const _0xe50c42=_0x52e74c['diffData'][_0x5e98f0]?_0x52e74c['diffData'][_0x5e98f0]['insertions']:'[]',_0x500366=_0x52e74c['diffData'][_0x5e98f0]?_0x52e74c['diffData'][_0x5e98f0]['deletions']:'[]';_0x52e74c['model'][_0x5e98f0]={'insertions':this['_utils']['_makeModelFromViewString'](_0xe50c42),'deletions':this['_utils']['_makeModelFromViewString'](_0x500366)};}}for(const _0x2cc28d of _0x49ff9b){let _0x42bd33=null,_0x455632=0x0;const _0x256864=new Map(Array['from'](_0x4ebf34['model'][_0x2cc28d]['insertions']['markers'])['filter'](([_0x5b3740])=>!_0x5b3740['startsWith']('revision:')));let _0x410f76=0x0;for(const _0x325aa8 of _0x3d5bb5){const _0x13fb77=this['_makeTape'](_0x325aa8['model'][_0x2cc28d]['insertions']);_0x325aa8==_0x4ebf34?(_0x42bd33=_0x13fb77,_0x455632=_0x42bd33['length'],_0x42bd33['forEach'](_0x51eb51=>{_0x51eb51['id']=_0x410f76++;}),this['_processTape'](_0x42bd33)):this['_markInsertions'](_0x42bd33,_0x13fb77);const _0x23e507=_0x42bd33['filter'](_0xce0d64=>!_0xce0d64['isAdded'])['map'](_0x235ac6=>_0x235ac6['id']);let _0x529bf6=0x0;const _0x3083b7=this['_makeTape'](_0x325aa8['model'][_0x2cc28d]['deletions']);_0x3083b7['forEach'](_0x367806=>{_0x367806['isRemoved']?_0x367806['id']=_0x455632++:_0x367806['id']=_0x23e507[_0x529bf6++];}),this['_processTape'](_0x3083b7),this['_setDistance'](_0x42bd33,'isAdded'),this['_setDistance'](_0x3083b7,'isRemoved'),_0x325aa8==_0x4ebf34&&this['_markMarkers'](_0x42bd33,_0x256864),_0x42bd33=this['_joinTapes'](_0x42bd33,_0x3083b7),this['_refreshStartEndIndex'](_0x42bd33),this['_setDistance'](_0x42bd33,'isRemoved');}_0x42bd33=_0x42bd33['filter'](_0x1dde7e=>!(_0x1dde7e['isAdded']&&_0x1dde7e['isRemoved']));const _0x334411=new Map(_0x5de8cb['model'][_0x2cc28d]['deletions']['markers']),_0xcbe0a3=new Set(_0x256864['keys']());for(const _0xa102a7 of _0x334411['keys']())_0xcbe0a3['delete'](_0xa102a7);this['_markSuggestions'](_0x42bd33,_0xcbe0a3),this['_fixObsoleteTags'](_0x42bd33),_0x42bd33=this['_removeMissingPairs'](_0x42bd33),_0x42bd33=this['_markMismatchedRemovedTags'](_0x42bd33),_0x42bd33=this['_removeUnsupportedChanges'](_0x42bd33);const {root:_0x5316f2,changes:_0x478bae}=this['_makeModelFromTape'](_0x42bd33,_0x30f2e6,_0x2cc28d);_0x3aaed1['model'][_0x2cc28d]=_0x5316f2;const _0x3e872c=_0x48bc5b['get'](_0x2cc28d);if(_0x3e872c){const _0x1340e1=_0x30f2e6['get'](_0x3e872c['userId']),_0x5e56ba=new G({'author':_0x1340e1,'type':_0x3e872c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2cc28d});_0x478bae['unshift'](_0x5e56ba),_0x3aaed1['attributes'][_0x2cc28d]['revisionHistoryAttachChange']=_0x5e56ba['id'];}_0x3aaed1['changes']=_0x3aaed1['changes']['concat'](_0x478bae);}return _0x3aaed1;}['_markMarkers'](_0x3d23e2,_0x585ac4){for(let _0x112c43=0x0;_0x112c43<_0x3d23e2['length'];_0x112c43++)for(const [_0x283029,_0xb956fc]of _0x585ac4)!_0xb956fc['isCollapsed']&&_0xb956fc['start']['isEqual'](_0x3d23e2[_0x112c43]['previousPosition'])&&_0x3d23e2[_0x112c43]['markersStart']['push'](_0x283029),_0xb956fc['end']['isEqual'](_0x3d23e2[_0x112c43]['nextPosition'])&&_0x3d23e2[_0x112c43]['markersEnd']['push'](_0x283029);}['_joinTapes'](_0x7eac3e,_0x15c9bb){let _0x2ddd76=[],_0x332972=0x0,_0x317267=0x0;for(;_0x332972<_0x7eac3e['length']||_0x317267<_0x15c9bb['length'];){const _0x1d4543=_0x7eac3e[_0x332972]||{},_0x4ac9b7=_0x15c9bb[_0x317267]||{};if(_0x1d4543['id']==_0x4ac9b7['id'])_0x332972++,_0x317267++,_0x2ddd76['push'](_0x1d4543);else{if(_0x4ac9b7['isRemoved']&&_0x1d4543['isAdded']){const {commonTape:_0x2158d3,iEnd:_0x392b26,jEnd:_0x3142ec}=this['_threeWayMerge'](_0x7eac3e,_0x332972,_0x15c9bb,_0x317267);_0x2ddd76=_0x2ddd76['concat'](_0x2158d3),_0x332972=_0x392b26,_0x317267=_0x3142ec;}else _0x4ac9b7['isRemoved']?(_0x317267++,_0x2ddd76['push'](_0x4ac9b7)):(_0x332972++,_0x2ddd76['push'](_0x1d4543));}}return _0x2ddd76;}['_markSuggestions'](_0x4e7fb7,_0x5674d7){const _0x4bb1f4=[];for(let _0x470b5a=0x0;_0x470b5a<_0x4e7fb7['length'];_0x470b5a++){for(let _0x26cbbb=0x0;_0x26cbbb<_0x4e7fb7[_0x470b5a]['markersStart']['length'];_0x26cbbb++){const _0x3cbd1c=_0x4e7fb7[_0x470b5a]['markersStart'][_0x26cbbb];if(!_0x5674d7['has'](_0x3cbd1c))continue;const {group:_0x430b3e,type:_0x481538,authorId:_0x2815e1}=_0x3b5ee8(_0x3cbd1c);'revision-suggestion'!=_0x430b3e||'insertion'!=_0x481538&&'deletion'!=_0x481538||(_0x4bb1f4['unshift']({'type':_0x481538,'name':_0x3cbd1c,'userId':_0x2815e1}),_0x4e7fb7[_0x470b5a]['markersStart']['splice'](_0x26cbbb,0x1),_0x26cbbb--);}_0x33ac1d(_0x4e7fb7[_0x470b5a]);for(let _0x2ed5ce=0x0;_0x2ed5ce<_0x4e7fb7[_0x470b5a]['markersEnd']['length'];_0x2ed5ce++){const _0x182975=_0x4e7fb7[_0x470b5a]['markersEnd'][_0x2ed5ce];if(!_0x5674d7['has'](_0x182975))continue;const {group:_0x33457e,type:_0x46d090}=_0x3b5ee8(_0x182975);if('revision-suggestion'!=_0x33457e||'insertion'!=_0x46d090&&'deletion'!=_0x46d090)continue;_0x4e7fb7[_0x470b5a]['markersEnd']['splice'](_0x2ed5ce,0x1),_0x2ed5ce--;const _0x2bd32c=_0x4bb1f4['findIndex'](_0x3e59a9=>_0x3e59a9['name']==_0x182975);_0x2bd32c>-0x1&&_0x4bb1f4['splice'](_0x2bd32c,0x1);}}function _0x3b5ee8(_0x449157){const _0x2a0fe0=_0x449157['split'](':');return{'group':_0x2a0fe0[0x0],'type':_0x2a0fe0[0x1],'subType':_0x2a0fe0['length']>=0x5?_0x2a0fe0[0x2]:null,'id':_0x2a0fe0['length']<0x5?_0x2a0fe0[0x2]:_0x2a0fe0[0x3],'authorId':_0x2a0fe0['length']<0x5?_0x2a0fe0[0x3]:_0x2a0fe0[0x4],'markerCount':0x6==_0x2a0fe0['length']?_0x2a0fe0[0x5]:null};}function _0x33ac1d(_0x42ae6a){for(let _0x305bad=0x0;_0x305bad<_0x4bb1f4['length'];_0x305bad++){if(_0x42ae6a['isAdded']&&'insertion'==_0x4bb1f4[_0x305bad]['type']&&_0x42ae6a['isAdded']['userId']==_0x4bb1f4[_0x305bad]['userId'])return _0x42ae6a['isAddSuggestion']=_0x4bb1f4[_0x305bad],void delete _0x42ae6a['isAdded'];if(!_0x42ae6a['isAdded']&&!_0x42ae6a['isRemoved']&&'deletion'==_0x4bb1f4[_0x305bad]['type'])return void(_0x42ae6a['isRemoveSuggestion']=_0x4bb1f4[_0x305bad]);}}}['_setDistance'](_0x4401cd,_0x126204){let _0x28c393=0x0,_0x3d1e75=!0x1;const _0x2f3d4e=new Map();for(const _0x178ad7 of _0x4401cd)_0x178ad7[_0x126204]?_0x3d1e75&&(_0x28c393++,_0x3d1e75=!0x1):(_0x28c393++,_0x3d1e75=!0x0),_0x2f3d4e['set'](_0x178ad7['id'],_0x28c393);for(let _0x3e9062=0x0;_0x3e9062<_0x4401cd['length'];_0x3e9062++){if('isRemoved'==_0x126204&&_0x4401cd[_0x3e9062]['isAdded']||'isAdded'==_0x126204&&_0x4401cd[_0x3e9062]['isRemoved'])continue;if('text'==_0x4401cd[_0x3e9062]['type']){_0x4401cd[_0x3e9062]['distance']=0x0;continue;}const _0x53672f=_0x2f3d4e['get'](_0x4401cd[_0x3e9062]['pairId']),_0x52f9c1=_0x2f3d4e['get'](_0x4401cd[_0x3e9062]['id']);_0x4401cd[_0x3e9062]['distance']=_0x53672f-_0x52f9c1;}}['_getRevisionsRange'](_0x64ff73,_0x354ef9,_0x9a40cc=!0x1){const _0x4eab76=[];let _0x121aa8=this['repository']['getIndex'](_0x64ff73),_0x4500a1=this['repository']['getIndex'](_0x354ef9);for(-0x1==_0x4500a1&&(_0x4500a1=this['repository']['_revisions']['length'],_0x9a40cc=!0x1);_0x121aa8<_0x4500a1;)_0x4eab76['push'](this['repository']['getRevision'](_0x121aa8)),_0x121aa8++;return _0x9a40cc&&_0x4eab76['push'](this['repository']['getRevision'](_0x121aa8)),_0x4eab76;}['_threeWayMerge'](_0x252829,_0x2b00c7,_0x7dd451,_0x31ea97){const _0x21ed9d=this['editor']['model']['schema'];let _0x1e032f=_0x2b00c7;for(;_0x252829[_0x1e032f]&&_0x252829[_0x1e032f]['isAdded'];)_0x1e032f++;let _0x352036=_0x31ea97;for(;_0x7dd451[_0x352036]&&_0x7dd451[_0x352036]['isRemoved'];)_0x352036++;_0x304bf2(_0x252829,_0x2b00c7,_0x1e032f),_0x304bf2(_0x7dd451,_0x31ea97,_0x352036);const _0xa85a98=_0x7dd451['slice'](_0x31ea97,_0x352036)['concat'](_0x252829['slice'](_0x2b00c7,_0x1e032f));return _0xa85a98['sort']((_0x44041a,_0x383968)=>_0x44041a['side']!=_0x383968['side']?_0x44041a['side']-_0x383968['side']:_0x44041a['level']!=_0x383968['level']?_0x44041a['level']-_0x383968['level']:_0x44041a['distance']!=_0x383968['distance']?_0x383968['distance']-_0x44041a['distance']:!!_0x44041a['isAdded']!=!!_0x383968['isAdded']?-0x1==_0x44041a['side']||0x0==_0x44041a['side']?_0x44041a['isAdded']?-0x1:0x1:_0x44041a['isAdded']?0x1:-0x1:_0x44041a['index']-_0x383968['index']),{'commonTape':_0xa85a98,'iEnd':_0x1e032f,'jEnd':_0x352036};function _0x304bf2(_0x44300d,_0x251853,_0x190dcf){let _0x76267e=-0x1,_0x462f3e=Number['POSITIVE_INFINITY'],_0xa2b83f=!0x0;for(let _0x1ac62b=_0x251853;_0x1ac62b<_0x190dcf;_0x1ac62b++)if(_0x21ed9d['isInline'](_0x44300d[_0x1ac62b]['item'])||(_0xa2b83f=!0x1),_0x44300d[_0x1ac62b]['item']['startIndex']<_0x251853&&(_0x76267e=_0x1ac62b),_0x44300d[_0x1ac62b]['item']['endIndex']>=_0x190dcf){_0x462f3e=_0x1ac62b;break;}_0xa2b83f&&(_0x76267e=_0x190dcf-0x1);for(let _0x3dd1a5=_0x251853;_0x3dd1a5<_0x190dcf;_0x3dd1a5++)_0x44300d[_0x3dd1a5]['side']=_0x3dd1a5<=_0x76267e?-0x1:_0x3dd1a5<_0x462f3e?0x0:0x1,_0x44300d[_0x3dd1a5]['index']=_0x3dd1a5;let _0x5c5d0d=0x0;for(let _0x29366e=_0x251853;_0x29366e<=_0x76267e;_0x29366e++)0x0==_0x44300d[_0x29366e]['distance']?_0x44300d[_0x29366e]['level']=_0x5c5d0d:(_0x5c5d0d++,_0x44300d[_0x29366e]['level']=_0x5c5d0d,_0x5c5d0d++);for(let _0x5f2c4d=_0x251853;_0x5f2c4d<_0x190dcf;_0x5f2c4d++)0x0==_0x44300d[_0x5f2c4d]['side']&&(_0x44300d[_0x5f2c4d]['level']=_0x5c5d0d);_0x5c5d0d=0x0;for(let _0x8fe13a=_0x190dcf-0x1;_0x8fe13a>=_0x462f3e;_0x8fe13a--)0x0==_0x44300d[_0x8fe13a]['distance']?_0x44300d[_0x8fe13a]['level']=_0x5c5d0d:(_0x5c5d0d--,_0x44300d[_0x8fe13a]['level']=_0x5c5d0d,_0x5c5d0d--);}}['_fixObsoleteTags'](_0x2dd76b){const _0x138ca0=new Map(),_0x591f73=this['editor']['model']['schema'];for(let _0x5ca50c=0x1;_0x5ca50c<_0x2dd76b['length'];_0x5ca50c++){let _0x5d0532,_0x8609b5,_0x31c9d6;const _0x1b2053=_0x2dd76b[_0x5ca50c],_0x437ae7=_0x2dd76b[_0x5ca50c-0x1];if('text'==_0x1b2053['type'])continue;if(_0x1b2053['type']!=_0x437ae7['type'])continue;if(!_0x591f73['isBlock'](_0x437ae7['item'])||_0x591f73['isLimit'](_0x437ae7['item']))continue;if(!_0x591f73['isBlock'](_0x1b2053['item'])||_0x591f73['isLimit'](_0x1b2053['item']))continue;if((_0x2dd76b[_0x5ca50c]['isAdded']||_0x2dd76b[_0x5ca50c]['isAddSuggestion'])&&_0x2dd76b[_0x5ca50c-0x1]['isRemoved'])_0x5d0532=_0x2dd76b[_0x5ca50c],_0x8609b5=_0x2dd76b[_0x5ca50c-0x1],_0x31c9d6=_0x5ca50c-0x1;else{if(!_0x2dd76b[_0x5ca50c]['isRemoved']||!_0x2dd76b[_0x5ca50c-0x1]['isAdded']&&!_0x2dd76b[_0x5ca50c-0x1]['isAddSuggestion'])continue;_0x5d0532=_0x2dd76b[_0x5ca50c-0x1],_0x8609b5=_0x2dd76b[_0x5ca50c],_0x31c9d6=_0x5ca50c;}const _0x5ae8d7=_0x5d0532['level']==_0x8609b5['level'],_0x4bbbf1=Math['abs'](_0x5d0532['level'])<Math['abs'](_0x8609b5['level'])&&0x0==_0x8609b5['distance'];(_0x5ae8d7||_0x4bbbf1)&&(_0x138ca0['set'](_0x8609b5['id'],_0x5d0532['id']),_0x2dd76b['splice'](_0x31c9d6,0x1),_0x5ca50c--,_0x5d0532['isAdded']=!0x1);}for(let _0x44403f=0x0;_0x44403f<_0x2dd76b['length'];_0x44403f++)_0x138ca0['has'](_0x2dd76b[_0x44403f]['pairId'])&&(_0x2dd76b[_0x44403f]['pairId']=_0x138ca0['get'](_0x2dd76b[_0x44403f]['pairId']));}['_removeMissingPairs'](_0x99c305){const _0x36ba60=new Set(_0x99c305['map'](_0x3a3167=>_0x3a3167['id']));for(let _0xb1caab=0x0;_0xb1caab<_0x99c305['length'];_0xb1caab++)_0x36ba60['has'](_0x99c305[_0xb1caab]['pairId'])||0x0==_0x99c305[_0xb1caab]['distance']||(_0x99c305[_0xb1caab]['isIncorrect']=!0x0);return _0x99c305['filter'](_0xf486ef=>!_0xf486ef['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3ea0e9){const _0x109052=new Set();for(let _0x48bd2b=0x0;_0x48bd2b<_0x3ea0e9['length'];_0x48bd2b++){if(_0x109052['has'](_0x3ea0e9[_0x48bd2b]['id'])&&_0x3ea0e9[_0x48bd2b]['isRemoved']&&(_0x3ea0e9[_0x48bd2b]['isIncorrect']=!0x0),_0x3ea0e9[_0x48bd2b]['isIncorrect'])continue;if(0x0==_0x3ea0e9[_0x48bd2b]['distance'])continue;if('elementStart'!=_0x3ea0e9[_0x48bd2b]['type'])continue;if(null==_0x3ea0e9[_0x48bd2b]['pairId'])continue;let _0x161180=_0x48bd2b+0x1,_0x472961=0x0;for(;_0x3ea0e9[_0x161180]['id']!=_0x3ea0e9[_0x48bd2b]['pairId'];)'elementStart'==_0x3ea0e9[_0x161180]['type']?_0x472961++:'elementEnd'==_0x3ea0e9[_0x161180]['type']&&_0x472961--,_0x161180++;if(0x0!=_0x472961){if(_0x3ea0e9[_0x48bd2b]['isRemoved'])_0x3ea0e9[_0x48bd2b]['isIncorrect']=!0x0;else{for(;_0x161180!=_0x48bd2b;)_0x3ea0e9[_0x161180]['isRemoved']&&0x0!=_0x3ea0e9[_0x161180]['distance']&&(_0x3ea0e9[_0x161180]['isIncorrect']=!0x0,_0x109052['add'](_0x3ea0e9[_0x161180]['pairId'])),_0x161180--;}}}return _0x3ea0e9['filter'](_0x33200e=>!_0x33200e['isIncorrect']);}['_removeUnsupportedChanges'](_0x186b7a){const _0x16d1a=this['editor']['model']['schema'];for(let _0xd731c9=0x0;_0xd731c9<_0x186b7a['length'];_0xd731c9++){if(!(_0x186b7a[_0xd731c9]['isAdded']||_0x186b7a[_0xd731c9]['isAddSuggestion']||_0x186b7a[_0xd731c9]['isRemoved']||_0x186b7a[_0xd731c9]['isRemoveSuggestion']))continue;if(0x0==_0x186b7a[_0xd731c9]['distance'])continue;const _0x5be68c=_0x186b7a[_0xd731c9]['item'];_0x16d1a['isBlock'](_0x5be68c)||_0x16d1a['isLimit'](_0x5be68c)||(_0x186b7a[_0xd731c9]['isAdded']&&delete _0x186b7a[_0xd731c9]['isAdded'],_0x186b7a[_0xd731c9]['isAddSuggestion']&&delete _0x186b7a[_0xd731c9]['isAddSuggestion'],_0x186b7a[_0xd731c9]['isRemoveSuggestion']&&delete _0x186b7a[_0xd731c9]['isRemoveSuggestion'],_0x186b7a[_0xd731c9]['isRemoved']&&(_0x186b7a[_0xd731c9]['isIncorrect']=!0x0));}return _0x186b7a['filter'](_0x2d0102=>!_0x2d0102['isIncorrect']);}['_makeModelFromTape'](_0x3313bb,_0x53c631,_0x566459){const _0x5d549c=new _0x3324d4(),_0x378e72=[],_0x10d4c6=new Map(),_0x8b2fe3=this['editor']['model'],_0xf51a7d=_0x8b2fe3['schema'],_0x34c189=[_0x5d549c],_0x24b060={},_0x46cd54={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x67b83b=null;const _0x4b4265=[0x0];for(let _0xc16af3=0x0;_0xc16af3<_0x3313bb['length'];_0xc16af3++)if('elementStart'===_0x3313bb[_0xc16af3]['type']){_0x3313bb[_0xc16af3]['previousPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265);const _0xc7b51e=new _0x82277c(_0x3313bb[_0xc16af3]['item']['name'],_0x3313bb[_0xc16af3]['item']['getAttributes']());_0x34c189[0x0]['_appendChild'](_0xc7b51e),_0x4b4265['push'](0x0),_0x34c189['unshift'](_0xc7b51e),_0x3313bb[_0xc16af3]['nextPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265);}else'elementEnd'===_0x3313bb[_0xc16af3]['type']?(_0x34c189['shift'](),_0x3313bb[_0xc16af3]['previousPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265),_0x4b4265['pop'](),_0x4b4265[_0x4b4265['length']-0x1]++,_0x3313bb[_0xc16af3]['nextPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265)):(_0x3313bb[_0xc16af3]['previousPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265),_0x67b83b?_0x67b83b['_data']+=_0x3313bb[_0xc16af3]['item']['data']:_0x67b83b=new _0x4e8ebd(_0x3313bb[_0xc16af3]['item']['data'],_0x3313bb[_0xc16af3]['item']['getAttributes']()),_0x3313bb[_0xc16af3+0x1]&&'text'===_0x3313bb[_0xc16af3+0x1]['type']&&_0x555ab3(_0x67b83b,_0x3313bb[_0xc16af3+0x1]['item'])||(_0x34c189[0x0]['_appendChild'](_0x67b83b),_0x67b83b=null),_0x4b4265[_0x4b4265['length']-0x1]+=_0x3313bb[_0xc16af3]['item']['offsetSize'],_0x3313bb[_0xc16af3]['nextPosition']=_0x8b2fe3['createPositionFromPath'](_0x5d549c,_0x4b4265));for(let _0x3909e6=0x0;_0x3909e6<_0x3313bb['length'];_0x3909e6++){const _0xe77ec5=_0x3313bb[_0x3909e6]['previousPosition'],_0x5e1ea8=_0x3313bb[_0x3909e6]['nextPosition'];for(const _0x2de248 of _0x3313bb[_0x3909e6]['markersStart'])_0x10d4c6['set'](_0x2de248,{'start':_0xe77ec5,'end':null});_0x30077c('isRemoveSuggestion',_0x3909e6,_0xe77ec5,_0x5e1ea8),_0x30077c('isAddSuggestion',_0x3909e6,_0xe77ec5,_0x5e1ea8),_0x30077c('isRemoved',_0x3909e6,_0xe77ec5,_0x5e1ea8),_0x30077c('isAdded',_0x3909e6,_0xe77ec5,_0x5e1ea8);for(const _0xc1d91b of _0x3313bb[_0x3909e6]['markersEnd']){const _0x58336a=_0x10d4c6['get'](_0xc1d91b);_0x58336a?_0x58336a['end']=_0x5e1ea8:_0x10d4c6['set'](_0xc1d91b,{'start':_0x5e1ea8,'end':_0x5e1ea8});}}for(const [_0x28b558,_0x12fd63]of _0x10d4c6){const _0x5011d3=this['editor']['model']['createRange'](_0x12fd63['start'],_0x12fd63['end']);_0x5d549c['markers']['set'](_0x28b558,_0x5011d3);}return _0x378e72['sort']((_0x4c8d30,_0x4c09c6)=>{const _0x436d32=_0x5d549c['markers']['get']('revision:'+_0x4c8d30['id']),_0x2dd7e5=_0x5d549c['markers']['get']('revision:'+_0x4c09c6['id']);return _0x436d32['start']['isBefore'](_0x2dd7e5['start'])?-0x1:_0x436d32['start']['isAfter'](_0x2dd7e5['start'])?0x1:_0x436d32['end']['isBefore'](_0x2dd7e5['end'])?-0x1:_0x436d32['end']['isAfter'](_0x2dd7e5['end'])?0x1:'add'===_0x4c8d30['type']?-0x1:0x1;}),{'root':_0x5d549c,'changes':_0x378e72};function _0x30077c(_0x5dc23c,_0x42ddc6,_0x4475ac,_0x307d33){const _0x465a15=!!_0x3313bb[_0x42ddc6][_0x5dc23c],_0x54bd46=_0x465a15?_0x3313bb[_0x42ddc6][_0x5dc23c]['userId']:null,_0x589e89=_0x42ddc6===_0x3313bb['length']-0x1,_0x5e3d0b=_0x46cd54[_0x5dc23c][0x0],_0x1a7f34=_0xf51a7d['isObject'](_0x3313bb[_0x42ddc6]['item']);!_0x24b060[_0x5dc23c]&&_0x465a15?_0x24b060[_0x5dc23c]={'start':_0x4475ac,'tapeItem':_0x3313bb[_0x42ddc6],'userId':_0x54bd46,'type':_0x5dc23c}:_0x24b060[_0x5dc23c]&&!_0x465a15?(_0x24b060[_0x5dc23c]['end']=_0x4475ac,_0x269d5c(_0x24b060[_0x5dc23c]),_0x24b060[_0x5dc23c]=null):_0x24b060[_0x5dc23c]&&_0x465a15&&_0x24b060[_0x5dc23c]['userId']!==_0x54bd46&&(_0x24b060[_0x5dc23c]['end']=_0x4475ac,_0x5e3d0b&&_0x5e3d0b['userId']===_0x24b060[_0x5dc23c]['userId']||_0x269d5c(_0x24b060[_0x5dc23c]),_0x24b060[_0x5dc23c]={'start':_0x4475ac,'tapeItem':_0x3313bb[_0x42ddc6],'userId':_0x54bd46,'type':_0x5dc23c}),_0x24b060[_0x5dc23c]&&_0x1a7f34&&('elementStart'!==_0x3313bb[_0x42ddc6]['type']||_0x5e3d0b&&_0x5e3d0b['userId']===_0x54bd46||_0x46cd54[_0x5dc23c]['unshift']({'userId':_0x54bd46,'object':_0x3313bb[_0x42ddc6]['item'],'change':_0x24b060[_0x5dc23c]}),'elementEnd'===_0x3313bb[_0x42ddc6]['type']&&_0x5e3d0b&&_0x5e3d0b['object']===_0x3313bb[_0x42ddc6]['item']&&(_0x46cd54[_0x5dc23c]['shift'](),_0x24b060[_0x5dc23c]=_0x5e3d0b['change'])),_0x24b060[_0x5dc23c]&&_0x589e89&&(_0x24b060[_0x5dc23c]['end']=_0x307d33,_0x269d5c(_0x24b060[_0x5dc23c]),_0x24b060[_0x5dc23c]=null);}function _0x269d5c({start:_0x3d37c8,end:_0x3acc1c,tapeItem:_0xbe1787,userId:_0x46a7aa,type:_0x4cc221}){const _0xf79b33=_0xbe1787['item'],_0x28d52e=_0x8b2fe3['schema']['isBlock'](_0xf79b33)&&!_0x8b2fe3['schema']['isLimit'](_0xf79b33),_0x42a92e=_0x3d37c8['nodeAfter']==_0x3acc1c['parent']&&_0x3acc1c['isAtStart'];if(_0x28d52e&&_0x42a92e)return;const _0x21b118=_0x8b2fe3['createRange'](_0x3d37c8,_0x3acc1c),_0x3ecd74=_0x53c631['get'](_0x46a7aa),_0x535bba=new G({'author':_0x3ecd74,'type':'isAdded'==_0x4cc221||'isAddSuggestion'==_0x4cc221?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4cc221||'isRemoveSuggestion'==_0x4cc221},'createdAt':new Date(),'rootName':_0x566459});_0x378e72['push'](_0x535bba),_0x5d549c['markers']['set']('revision:'+_0x535bba['id'],_0x21b118);}function _0x555ab3(_0x5bf8b9,_0x5bbeb4){const _0x154b74=_0x5bf8b9['getAttributes'](),_0x377ffb=_0x5bbeb4['getAttributes']();for(const _0x3981e9 of _0x154b74){if(_0x3981e9[0x1]!==_0x5bbeb4['getAttribute'](_0x3981e9[0x0]))return!0x1;_0x377ffb['next']();}return _0x377ffb['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x51f2e1=>{const _0x345b4b=_0x51f2e1['markerName']['split'](':')[0x1],_0x133d1a=this['_getChangeFromId'](_0x345b4b);if(!_0x133d1a)return null;const _0x1fb3c5='add'==_0x133d1a['type']?'insertion':'deletion',_0x2c6bfd=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1fb3c5];return _0x133d1a['data']['isSuggestion']&&_0x2c6bfd['push']('ck-suggestion-marker-'+_0x1fb3c5+'-new'),this['activeChange']==_0x133d1a&&_0x2c6bfd['push']('ck-suggestion-marker--active'),{'classes':_0x2c6bfd,'attributes':{'data-change-id':_0x345b4b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28272e=>{_0x28272e['on']('element:pre',(_0x118629,_0x18fb36,_0x494805)=>{const _0x16603c=_0x18fb36['viewItem']['getChild'](0x0);if(!_0x16603c||!_0x16603c['is']('element','code'))return;if(!_0x494805['consumable']['consume'](_0x16603c,{'attributes':['vid_start','vid_end']}))return;const _0x7e4798=_0x18fb36['modelRange']['start']['nodeAfter'];_0x494805['writer']['setAttribute']('vid_start',_0x16603c['getAttribute']('vid_start'),_0x7e4798),_0x494805['writer']['setAttribute']('vid_end',_0x16603c['getAttribute']('vid_end'),_0x7e4798);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x41c939=>{_0x41c939['on']('element',(_0x5765d7,_0x2ef7e8,_0x24df94)=>{if(!_0x24df94['consumable']['consume'](_0x2ef7e8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2ef7e8['modelRange']['isCollapsed'])return;const _0xd85dff=_0x2ef7e8['modelRange']['start']['nodeAfter'];_0xd85dff['hasAttribute']('vid_start')||_0xd85dff['hasAttribute']('vid')||(_0x24df94['writer']['setAttribute']('vid_start',_0x2ef7e8['viewItem']['getAttribute']('vid_start'),_0xd85dff),_0x24df94['writer']['setAttribute']('vid_end',_0x2ef7e8['viewItem']['getAttribute']('vid_end'),_0xd85dff));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x442555=>_0x442555['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xfccf92,[,_0x52cc34])=>{['vid_start','vid_end','vid']['includes'](_0x52cc34)&&(_0xfccf92['return']=!0x0,_0xfccf92['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x41ad4a=>{_0x41ad4a['on']('attribute:vid',(_0xce7c0,_0x569fb5,_0x9b23c9)=>{if('\x20'!=_0x569fb5['item']['data']||_0x569fb5['item']['parent']['maxOffset']>0x1)return;if(!_0x9b23c9['consumable']['consume'](_0x569fb5['item'],_0xce7c0['name']))return;const _0x182b91=_0x9b23c9['writer'],_0x2b8167=_0x9b23c9['mapper']['toViewRange'](_0x569fb5['range']);_0x182b91['wrap'](_0x2b8167,_0x182b91['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4ca396){const _0x5d5d2e=_0x4ca396['plugins']['get']('RevisionViewer');return(_0x460555,_0x2ec341,_0x1939f2)=>{const _0x261e35=_0x2ec341['markerName']['split'](':')[0x1],_0xa385df=_0x5d5d2e['_getChangeFromId'](_0x261e35);if(!_0xa385df)return null;const _0x25ab7f='add'==_0xa385df['type']?'split':'merge';if(!_0x1939f2['consumable']['test'](_0x2ec341['markerRange'],_0x460555['name']))return;const _0x9b8653=_0x2ec341['markerRange']['getWalker'](),_0x1c08eb=_0x2ec341['markerRange']['start'],_0xef03e6=_0x4ca396['model']['schema'];let _0x2e10fa=null,_0x3a3ab3=null,_0x4f8717=!0x1,_0x2d17be=!0x1;for(const _0x597473 of _0x9b8653){const _0x17f706=_0x597473['item'];_0x4f8717=_0x4f8717||_0xef03e6['isContent'](_0x17f706);const _0x504449=_0x1939f2['mapper']['toViewElement'](_0x17f706);if(_0x504449&&_0x504449['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x597473['type']&&(_0xef03e6['isBlock'](_0x17f706)&&!_0xef03e6['isLimit'](_0x17f706)&&(_0x17f706['nextSibling']||_0x1c08eb['isAtEnd']?_0x2e10fa&&_0x2e10fa['parent']==_0x17f706||(_0x2e10fa=_0x17f706,_0x5a815c(_0x597473['previousPosition']),_0x2d17be=!0x0):_0x3a3ab3=_0x3a3ab3||_0x597473['previousPosition']));}function _0x5a815c(_0x247c5b){const _0x5d1161=_0x1939f2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25ab7f}),_0x4dc68b=_0x1939f2['mapper']['toViewPosition'](_0x247c5b);_0xa385df['data']['isSuggestion']&&_0x1939f2['writer']['addClass']('ck-suggestion-marker-'+_0x25ab7f+'-new',_0x5d1161),_0x5d5d2e['activeChange']==_0xa385df&&_0x1939f2['writer']['addClass']('ck-suggestion-marker--active',_0x5d1161),_0x1939f2['writer']['insert'](_0x4dc68b,_0x5d1161),_0x1939f2['mapper']['bindElementToMarker'](_0x5d1161,_0x2ec341['markerName']);}_0x4f8717||_0x2d17be||!_0x3a3ab3||_0x5a815c(_0x3a3ab3);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5e4d0a,_0x59cc3f,_0x578e4f)=>{const _0x2ab1aa=_0x578e4f['mapper']['markerNameToElements'](_0x59cc3f['markerName']);if(_0x2ab1aa){for(const _0x39c6ef of _0x2ab1aa)(_0x39c6ef['hasClass']('ck-suggestion-marker-split')||_0x39c6ef['hasClass']('ck-suggestion-marker-merge'))&&(_0x578e4f['mapper']['unbindElementFromMarkerName'](_0x39c6ef,_0x59cc3f['markerName']),_0x578e4f['writer']['remove'](_0x39c6ef));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3d8f9f,_0x43ee3e,_0x44c6b2)=>{const _0x4a543b=_0x43ee3e['markerName']['split'](':')[0x1],_0x19e67d=this['_getChangeFromId'](_0x4a543b);if(!_0x19e67d)return null;const _0x22c910='add'==_0x19e67d['type']?'split':'merge';if(_0x44c6b2['consumable']['test'](_0x43ee3e['markerRange'],_0x3d8f9f['name']))for(const _0x171cdb of _0x43ee3e['markerRange']['getItems']()){if(!_0x171cdb['is']('element','softBreak'))continue;const _0x4b6c80=_0x44c6b2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22c910}),_0xb70e91=_0x44c6b2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x171cdb));_0x19e67d['data']['isSuggestion']&&_0x44c6b2['writer']['addClass']('ck-suggestion-marker-'+_0x22c910+'-new',_0x4b6c80),this['activeChange']==_0x19e67d&&_0x44c6b2['writer']['addClass']('ck-suggestion-marker--active',_0x4b6c80),_0x44c6b2['writer']['insert'](_0xb70e91,_0x4b6c80),_0x44c6b2['mapper']['bindElementToMarker'](_0x4b6c80,_0x43ee3e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x340785=>{for(const _0x3eddf6 of this['editor']['model']['document']['getRootNames']()){const _0x14c6e0=this['editor']['model']['document']['getRoot'](_0x3eddf6),_0x357602=this['editor']['editing']['view']['document']['getRoot'](_0x3eddf6);if(_0x357602){const _0x36be08=_0x14c6e0['getAttribute']('revisionHistoryAttachChange');if(_0x340785['removeAttribute']('data-change-id',_0x357602),_0x340785['removeClass']('ck-revision-history-root-add',_0x357602),_0x340785['removeClass']('ck-revision-history-root-remove',_0x357602),_0x340785['removeClass']('ck-revision-history-root--active',_0x357602),_0x36be08){const _0x3a4b15=this['_getChangeFromId'](_0x36be08);if(!_0x3a4b15)return null;_0x340785['setAttribute']('data-change-id',_0x36be08,_0x357602),_0x340785['addClass']('ck-revision-history-root-'+_0x3a4b15['type'],_0x357602),this['activeChange']==_0x3a4b15&&_0x340785['addClass']('ck-revision-history-root--active',_0x357602);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x592e53=>'revision-comment:'+_0x592e53,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x43dc56=>'revision-suggestion:'+_0x43dc56,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5a2889=>({'name':'suggestion:'+_0x5a2889,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x27c873=>{const _0x9af84=_0x27c873['markerName']['split'](':')[0x1];return'insertion'!=_0x9af84&&'deletion'!=_0x9af84?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x9af84]};}}),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',(_0x5ae29b,_0x4c253e,_0x589f01)=>{const _0x30cf35=_0x589f01['mapper']['markerNameToElements'](_0x4c253e['markerName']);if(_0x30cf35){for(const _0x79776e of _0x30cf35)_0x79776e['is']('uiElement')&&(_0x589f01['mapper']['unbindElementFromMarkerName'](_0x79776e,_0x4c253e['markerName']),_0x589f01['writer']['remove'](_0x79776e));}},{'priority':'high'});}['_getChangeFromId'](_0x348c0e){return this['_changeIdToChange']['get'](_0x348c0e);}['_getViewForChange'](_0x3dd294){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3dd294),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb74560,_0x5717a9,_0x2aedfc,_0x1b6955)=>{_0x1b6955&&this['_balloon']['remove'](_0x1b6955),_0x2aedfc&&(this['_balloon']['add']({'view':_0x2aedfc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x527e5e=this['editor']['editing'],_0x3110b3=this['_getChangeFromId'](_0x2aedfc['changeId']);let _0x1f3957;if(_0x3110b3['data']['isOnRoot']){const _0x43367e=_0x527e5e['view']['getDomRoot'](_0x3110b3['rootName']);_0x1f3957=Array['from'](_0x43367e['getClientRects']());}else{const _0x4cf945=this['editor']['model']['markers']['get']('revision:'+_0x2aedfc['changeId']);_0x1f3957=Array['from'](_0x527e5e['mapper']['markerNameToElements'](_0x4cf945['name']))['map'](_0x3bdfaf=>_0x527e5e['view']['domConverter']['mapViewToDom'](_0x3bdfaf))['map'](_0x50493c=>Array['from'](_0x50493c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1f3957[0x0];return _0x1f3957['find'](_0x2cda6a=>_0x2cda6a['top']-0x3<=this['_activeViewTarget']['y']&&_0x2cda6a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2cda6a['left']-0x3<=this['_activeViewTarget']['x']&&_0x2cda6a['right']+0x3>=this['_activeViewTarget']['x'])||_0x1f3957[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x44c488,_0x2fc60f,_0x46b5fb,_0x5528b5)=>{this['activeView']=_0x46b5fb?this['_getViewForChange'](_0x46b5fb):null,this['editor']['model']['change'](()=>{const _0x139c44=this['editor']['editing'];_0x5528b5&&(_0x5528b5['data']['isOnRoot']?_0x139c44['view']['change'](_0x320bdc=>{_0x320bdc['removeClass']('ck-revision-history-root--active',_0x139c44['view']['document']['getRoot'](_0x5528b5['rootName']));}):_0x139c44['reconvertMarker']('revision:'+_0x5528b5['id'])),_0x46b5fb&&(_0x46b5fb['data']['isOnRoot']?_0x139c44['view']['change'](_0x4d4ff3=>{_0x4d4ff3['addClass']('ck-revision-history-root--active',_0x139c44['view']['document']['getRoot'](_0x46b5fb['rootName']));}):_0x139c44['reconvertMarker']('revision:'+_0x46b5fb['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2137c9,_0x81e42e)=>{if(this['activeChange'])return;const _0x4ac322=this['_findChangeIdFromDomTarget'](_0x81e42e['target']),_0x453de6=this['_changeIdToChange']['get'](_0x4ac322);_0x453de6?(this['_activeViewTarget']={'x':_0x81e42e['domEvent']['x'],'y':_0x81e42e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x453de6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x26d85b,_0x5826ab)=>{const _0x1d010f=this['_findChangeIdFromDomTarget'](_0x5826ab['target']),_0x37d957=this['_changeIdToChange']['get'](_0x1d010f);_0x37d957?(this['_activeViewTarget']={'x':_0x5826ab['domEvent']['x'],'y':_0x5826ab['domEvent']['y']},_0x37d957===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x37d957):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x20561c){do{const _0x42738d=_0x20561c['getAttribute']('data-change-id');if(_0x42738d)return _0x42738d;_0x20561c=_0x20561c['parent'];}while(_0x20561c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x21d62e=>{for(const _0x279f5c of this['editor']['model']['markers'])_0x21d62e['removeMarker'](_0x279f5c);});}}function Q(_0x3168ee,_0x2667da){return(_0x3916f1,_0x1e8771,_0x235ecf)=>{if(!_0x235ecf['consumable']['test'](_0x1e8771['markerRange'],_0x3916f1['name']))return;const _0xc65cde=_0x1e8771['markerRange']['getWalker'](),_0x353b1f=_0x1e8771['markerRange']['start'],_0x5ec111=_0x3168ee['model']['schema'];let _0x31f25f=null,_0x2e74b7=null,_0x59c93a=!0x1,_0xb62167=!0x1;for(const _0x391b45 of _0xc65cde){const _0x46acbf=_0x391b45['item'];_0x59c93a=_0x59c93a||_0x5ec111['isContent'](_0x46acbf);const _0x4efdd3=_0x235ecf['mapper']['toViewElement'](_0x46acbf);if(_0x4efdd3&&_0x4efdd3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x391b45['type']&&(_0x5ec111['isBlock'](_0x46acbf)&&!_0x5ec111['isLimit'](_0x46acbf)&&(_0x46acbf['nextSibling']||_0x353b1f['isAtEnd']?_0x31f25f&&_0x31f25f['parent']==_0x46acbf||(_0x31f25f=_0x46acbf,_0x3d8d6a(_0x391b45['previousPosition']),_0xb62167=!0x0):_0x2e74b7=_0x2e74b7||_0x391b45['previousPosition']));}function _0x3d8d6a(_0xb7a712){const _0x17a3d0=_0x235ecf['mapper']['toViewPosition'](_0xb7a712),_0x2ef0e5=_0x235ecf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2667da});_0x235ecf['writer']['insert'](_0x17a3d0,_0x2ef0e5),_0x235ecf['mapper']['bindElementToMarker'](_0x2ef0e5,_0x1e8771['markerName']);}_0x59c93a||_0xb62167||!_0x2e74b7||_0x3d8d6a(_0x2e74b7);};}class nt extends _0x1bb13c{constructor(_0x401561){super(_0x401561);const _0x348c34=_0x401561['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x348c34,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x348c34,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4f093e=this['editor'],_0x242123=_0x4f093e['plugins']['get'](u),_0x5df279=_0x242123['isReady']?_0x242123['diff']['newRevisionId']:null;_0x4f093e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5df279);}['refresh'](){const {isReady:_0x26d0c0,isEnabled:_0x456cd8,repository:_0x18c621,diff:_0x25d726}=this['editor']['plugins']['get'](u),_0x33dbd4=_0x25d726&&_0x18c621['getLaterVisibleRevision'](_0x25d726['newRevisionId']);this['isEnabled']=_0x26d0c0&&_0x456cd8&&Boolean(_0x33dbd4);}}class ot extends _0x1bb13c{['_step'];constructor(_0x4dd1bc,{direction:_0x10fe5d}){super(_0x4dd1bc);const _0x37ca69=_0x4dd1bc['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x10fe5d?0x1:-0x1,this['listenTo'](_0x37ca69,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37ca69,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x37ca69,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x18ce15=this['editor'],_0x4978ba=_0x18ce15['plugins']['get'](u),{isNavigationMode:_0x33584f,currentChangeNumber:_0xdba9}=_0x4978ba;let _0x101d89;if(_0x4978ba['activeChange']=_0x33584f?_0x4978ba['diff']['changes']['get'](_0xdba9+this['_step']):_0x4978ba['diff']['changes']['first'],_0x4978ba['activeChange']['data']['isOnRoot'])_0x101d89=_0x18ce15['editing']['view']['getDomRoot'](_0x4978ba['activeChange']['rootName']);else{const _0x1b6448=_0x18ce15['model']['markers']['get']('revision:'+_0x4978ba['activeChange']['id']);_0x101d89=_0x1eaada(_0x18ce15['editing'],_0x1b6448);}_0xffbfb2({'target':_0x101d89,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x58da56,currentChangeNumber:_0x46e69c,numberOfChanges:_0x51b9c1,isReady:_0x43d85d,isEnabled:_0x5ce4dd}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x5ce4dd&&_0x43d85d&&_0x51b9c1)&&(!_0x58da56||(0x1===this['_step']?_0x46e69c<_0x51b9c1-0x1:_0x46e69c>0x0));}}class ui extends _0x28ff5a{constructor(_0x581a6e){super(_0x581a6e);const _0x38c712=this['bindTemplate'],_0x35fb00=new _0x22df11(_0x581a6e),_0x72ab80=new _0x22df11(_0x581a6e);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',(_0x7fef84,_0x1c3cbc)=>_0x7fef84&&_0x1c3cbc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4514f9,_0x2ed46c,_0x3da09a,_0x34f387)=>{if(!_0x4514f9)return m(_0x581a6e,'Loading...');if(!_0x3da09a)return m(_0x581a6e,'No\x20changes');const _0x580684=m(_0x581a6e,'NUMBER_OF_CHANGES',_0x3da09a);return _0x34f387?m(_0x581a6e,'X_OF_Y_CHANGES',[_0x2ed46c+0x1,_0x3da09a]):_0x580684;}),_0x35fb00['set']({'label':m(_0x581a6e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5453e5}),_0x72ab80['set']({'label':m(_0x581a6e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5c4b72}),_0x35fb00['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x72ab80['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x35fb00['on']('execute',()=>this['fire']('execute','backward')),_0x72ab80['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',_0x38c712['if']('_isStatusLabelVisible','ck-hidden',_0x57d3af=>!_0x57d3af)]},'children':[{'text':_0x38c712['to']('isNavigationMode',_0x3e9202=>_0x3e9202?m(_0x581a6e,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x581a6e,'Total')+':\x20')}]},{'text':_0x38c712['to']('_statusText')}]},new _0x2d4abe(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x35fb00,_0x72ab80]}]});}}const ge='ck-editor__editable__loading-overlay';class vi extends _0xb302f2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3144b1=this['editor']['editing']['view'];_0x3144b1['change'](_0x8a3f2d=>{for(const _0x98faee of _0x3144b1['document']['roots'])_0x8a3f2d['addClass'](ge,_0x98faee);});}['hide'](){const _0x41f516=this['editor']['editing']['view'];_0x41f516['change'](_0x3ee099=>{for(const _0x318eef of _0x41f516['document']['roots'])_0x3ee099['removeClass'](ge,_0x318eef);});}}class v extends _0xb302f2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,vi];}['init'](){const _0x4249f7=this['editor'],_0x291c01=_0x4249f7['plugins']['get'](u),_0x32a9a1=_0x4249f7['plugins']['get'](vi);_0x4249f7['ui']['componentFactory']['add']('exitToEditing',_0x3ab4ef=>{const _0x3fe0b1=new _0x22df11(_0x3ab4ef);return _0x3fe0b1['set']({'label':m(_0x3ab4ef,'Back\x20to\x20editing'),'icon':_0x77d497,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3fe0b1,'execute',()=>{_0x4249f7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3fe0b1;}),_0x4249f7['ui']['componentFactory']['add']('restoreRevision',_0x490cad=>{const _0x5a131=new _0x22df11(_0x490cad);return _0x5a131['set']({'label':m(_0x490cad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5a131['bind']('isEnabled')['to'](_0x4249f7['commands']['get']('restoreRevision')),this['listenTo'](_0x5a131,'execute',()=>_0x4249f7['execute']('restoreRevision')),_0x5a131;}),_0x4249f7['ui']['componentFactory']['add']('changesNavigation',_0x34ef5b=>{const _0xc37825=new ui(_0x34ef5b),_0x35bf8c=_0x4249f7['commands']['get']('showPreviousChange'),_0x525b94=_0x4249f7['commands']['get']('showNextChange');return _0xc37825['bind']('isBackwardNavigationEnabled')['to'](_0x35bf8c,'isEnabled'),_0xc37825['bind']('isForwardNavigationEnabled')['to'](_0x525b94,'isEnabled'),_0xc37825['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x291c01),this['listenTo'](_0xc37825,'execute',(_0x5b9452,_0x10a5e7)=>{_0x4249f7['execute']('forward'===_0x10a5e7?'showNextChange':'showPreviousChange');}),_0xc37825;}),_0x32a9a1['show'](),_0x291c01['on']('change:isReady',(_0x3c04ab,_0x2ce03e,_0x2050fd)=>{_0x2050fd?_0x32a9a1['hide']():_0x32a9a1['show']();});}}class wi extends ti{['_resizeObserver']=null;constructor(_0xc11f74,_0x444df7){super(_0xc11f74,_0x444df7);const _0x5aa14d=this['bindTemplate'];this['set']({'label':m(_0xc11f74,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0xc11f74,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5aa14d['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 _0x47828a=this['fieldView']['element'];this['_tooltipString']=_0x47828a['scrollWidth']>_0x47828a['clientWidth']&&_0x47828a['value']||'';}}class yi extends _0x28ff5a{constructor(_0x28b1ff,_0x56528e,_0x266056){super(_0x28b1ff);const _0x2a5e25=new _0xb2dc1d();_0x2a5e25['set']({'content':_0x34dedb,'viewBox':'0\x200\x2011\x2010'});const _0x1b9a98=['ck','ck-revision-history-sidebar__revision-author'];_0x266056&&_0x1b9a98['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2c0328=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x28b1ff,_0x266056?'Revision\x20creator':'Revision\x20author')},'children':[_0x2a5e25,_0x56528e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1b9a98},'children':_0x2c0328});}}function ji(_0x323ee5,_0x39314c){const _0x2a83c2=_0x323ee5['bindTemplate'],_0x1a1446=_0x323ee5['locale'],_0x46510e=_0x1f74c9(_0x1a1446);_0x46510e['panelPosition']='sw';const _0x20cdec=function(_0x3ab732,_0x269d2a){const _0x875c0b=function(_0x58869a,_0x3f649a){const _0x32df7c=_0x58869a['locale'],_0x549978={'Compare\x20against\x20selected':m(_0x32df7c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x32df7c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x32df7c,'Restore\x20this\x20revision')};return _0x3f649a['map'](_0x1c40c9=>{const _0x5d5a23=_0x549978[_0x1c40c9['name']];return _0x5d5a23&&_0x5d5a23!==_0x1c40c9['name']&&(_0x1c40c9['name']=_0x5d5a23),_0x1c40c9;});}(_0x3ab732,_0x269d2a),_0x52dced=new _0x150ee0();for(const _0x42bf28 of _0x875c0b){const _0x38b5c3={'type':'button','model':new to({'label':_0x42bf28['name'],'class':_0x42bf28['class'],'withText':!0x0,'role':'menuitem','_action':_0x42bf28['action']})};_0x38b5c3['model']['bind']('isEnabled')['to'](_0x3ab732,'isActionsDropdownOpen',_0x18accc=>'function'!=typeof _0x42bf28['isEnabled']||(!_0x18accc||_0x42bf28['isEnabled'](_0x3ab732))),_0x52dced['add'](_0x38b5c3);}return _0x52dced;}(_0x323ee5,_0x39314c);return _0x323ee5['bind']('isActionsDropdownOpen')['to'](_0x46510e,'isOpen'),_0x46510e['buttonView']['set']({'label':m(_0x1a1446,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x20126f}),_0x46510e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2a83c2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2a83c2['to'](_0x2b8723=>_0x2b8723['stopPropagation']())}}),_0x46510e['on']('execute',_0x52a8e3=>{_0x323ee5['isReady']&&'function'==typeof _0x52a8e3['source']['_action']&&_0x52a8e3['source']['_action'](_0x323ee5);}),_0x32b313(_0x46510e,_0x20cdec,{'role':'menu'}),_0x46510e['listenTo'](_0x323ee5,'change:isActionsDropdownOpen',(_0x3bd609,_0x2d2705,_0x2b5e89)=>{if(_0x2b5e89)for(const _0x2fd7ae of _0x46510e['listView']['items']){const _0x571390=_0x2fd7ae['children']['first'],_0x2ec7b1=_0x39314c['find'](_0xfbc6e=>_0xfbc6e['action']===_0x571390['_action'])['isVisible'];_0x2fd7ae['isVisible']=void 0x0===_0x2ec7b1||_0x2ec7b1(_0x323ee5);}}),_0x46510e;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x390267,uid as _0x3ca1e2,Collection as _0x401ff4,logWarning as _0x4c6960,FocusTracker as _0x26f73d,KeystrokeHandler as _0x3a8c7b,scrollViewportToShowTarget as _0x3e6207,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x462c45}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4f8a27,set as _0x3f6799,unset as _0x4520d8,isEqual as _0x4d5de6}from'es-toolkit/compat';import{Plugin as _0x2182b9,PendingActions as _0x50312c,Command as _0x30eac9,ElementApiMixin as _0x1e99d3,Editor as _0x1eb8e8}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x491e76,getMarkerDomElement as _0x50e4f9,ConfirmMixin as _0x55f1e2,sanitizeEditorConfig as _0x35fa21}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x52407e,ViewAttributeElement as _0xaa1ecf,ViewEmptyElement as _0x41a8a2,ViewRawElement as _0x171025,ViewUIElement as _0x557769,ViewDocumentFragment as _0x4af310,ViewText as _0x56d53b,ViewElement as _0x39546c,ModelElement as _0x47d77c,ModelRange as _0x37ff01,ModelPosition as _0x40c1c3,ModelDocumentFragment as _0x451b26,ModelText as _0x5a04d7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1377de,IconChevronUp as _0x1dcbd4,IconChevronDown as _0x5e2179,IconUndo as _0x5cdc3a,IconUser as _0x26004b,IconThreeVerticalDots as _0x356400}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x318d59,View as _0x14bc2f,submitHandler as _0x525df1,LabeledFieldView as ti,createLabeledInputText as _0x8e7e4f,createDropdown as _0x25a564,ListView as _0x24a0ed,ListItemView as _0x4cdef9,ButtonView as _0x534191,MenuBarMenuView as _0x514422,MenuBarMenuListView as _0x111e3c,MenuBarMenuListItemView as _0x32e68f,MenuBarMenuListItemButtonView as _0x7f5db,ContextualBalloon as _0x5c9009,ToolbarSeparatorView as _0x29c4ab,IconView as _0x2d523d,addListToDropdown as _0x348879,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x4534b8,StickyPanelView as _0x2a6c1b,ToolbarView as _0x1b55fe,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xbf028b}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x390267(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x52e761){super(),this['id']=_0x52e761['id']||_0x3ca1e2(),this['creator']=_0x52e761['creator']||null,this['authors']=_0x52e761['authors']||[],this['diffData']=_0x52e761['diffData']||null,this['toVersion']=_0x52e761['toVersion']||0x0,this['fromVersion']=_0x52e761['fromVersion']||0x0,this['set']('name',_0x52e761['name']||''),this['set']('createdAt',_0x52e761['createdAt']||new Date()),this['set']('attributes',_0x52e761['attributes']||{});}['setName'](_0x324f66){this['_update']({'name':_0x324f66});}['setAttribute'](_0x28f045,_0x54f735){const _0x18cd70=_0x4f8a27(this['attributes']);_0x3f6799(_0x18cd70,_0x28f045,_0x54f735),this['_update']({'attributes':_0x18cd70});}['removeAttribute'](_0x864fe1){const _0x3e0a86=_0x4f8a27(this['attributes']);_0x4520d8(_0x3e0a86,_0x864fe1),this['_update']({'attributes':_0x3e0a86});}['_update'](_0x594451,_0xa0b202=!0x1){let _0x56a534=!0x1;const _0x29230c={'id':this['id']},_0x36f378=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4a1d8f of _0x36f378){const _0x1b564f=_0x594451[_0x4a1d8f];void 0x0!==_0x1b564f&&_0x1b564f!==this[_0x4a1d8f]&&(this[_0x4a1d8f]=_0x1b564f,_0x29230c[_0x4a1d8f]=_0x1b564f,_0x56a534=!0x0);}_0x56a534&&(_0x29230c['authors']&&(_0x29230c['authorsIds']=_0x29230c['authors']['map'](_0x31bd0d=>_0x31bd0d['id']),delete _0x29230c['authors']),this['fire']('_update',_0x29230c,_0xa0b202));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x7becf3=>_0x7becf3['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x2182b9{['_revisions'];static get['requires'](){return[_0x491e76];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x28a4a2){super(_0x28a4a2),this['_revisions']=new _0x401ff4();}['afterInit'](){!async function(_0x1fb47c){const _0x4f4d92=_0x28af64([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x3e4a02=0xeb829,_0xff0606=0x7374585f,_0x368d46=0x73732caf^_0xff0606,_0x564aba=window[_0x28af64([0x44,0x61,0x74,0x65])][_0x28af64([0x6e,0x6f,0x77])](),_0x1054b7=_0x1fb47c[_0x28af64([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20cd39=new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c8f56=>{_0x1054b7[_0x28af64([0x6f,0x6e,0x63,0x65])](_0x28af64([0x72,0x65,0x61,0x64,0x79]),_0x5c8f56);}),_0x3f40ac={[_0x28af64([0x6b,0x74,0x79])]:_0x28af64([0x45,0x43]),[_0x28af64([0x75,0x73,0x65])]:_0x28af64([0x73,0x69,0x67]),[_0x28af64([0x63,0x72,0x76])]:_0x28af64([0x50,0x2d,0x32,0x35,0x36]),[_0x28af64([0x78])]:_0x28af64([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]),[_0x28af64([0x79])]:_0x28af64([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]),[_0x28af64([0x61,0x6c,0x67])]:_0x28af64([0x45,0x53,0x32,0x35,0x36])},_0x288314=_0x1054b7[_0x28af64([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28af64([0x67,0x65,0x74])](_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ddeea(){let _0x10ee7d,_0x5190dd=null,_0x230d90=null;try{if(_0x288314==_0x28af64([0x47,0x50,0x4c]))return _0x28af64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x10ee7d=_0x2472b7(),!_0x10ee7d)return _0x28af64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x10ee7d[_0x28af64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x230d90=_0x2c2a1a(_0x10ee7d[_0x28af64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x10ee7d[_0x28af64([0x6a,0x74,0x69])])),await _0x2a7ad0()?_0x56dc6c()?_0x2311ec()?_0x28af64([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdeceff()?(_0x10ee7d[_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28af64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5190dd=_0x43b42e(_0x28af64([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x10ee7d[_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28af64([0x74,0x72,0x69,0x61,0x6c])&&(_0x5190dd=_0x43b42e(_0x28af64([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c9665()):_0x28af64([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28af64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28af64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28af64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2311ec(){const _0x3284e9=[_0x28af64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28af64([0x74,0x72,0x69,0x61,0x6c])][_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10ee7d[_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x564aba/0x3e8:0xe10*_0x368d46;return _0x10ee7d[_0x28af64([0x65,0x78,0x70])]<_0x3284e9;}function _0x56dc6c(){const _0x36bbc1=_0x10ee7d[_0x28af64([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x36bbc1)return!0x1;if(_0x36bbc1[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28af64([0x2a])))return!0x0;if(_0x36bbc1[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28af64([0x52,0x48])))return!0x0;if(_0x36bbc1[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28af64([0x52,0x52,0x48]))){if(_0xc7c277())return!0x0;if(_0x4ad5e3()||_0x248cbe())return!0x0;}return!0x1;}function _0xdeceff(){const _0x15bd47=_0x10ee7d[_0x28af64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15bd47||0x0==_0x15bd47[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16e553}=new URL(window[_0x28af64([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15bd47[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e553))return!0x0;const _0x45cfc2=_0x16e553[_0x28af64([0x73,0x70,0x6c,0x69,0x74])](_0x28af64([0x2e]));return _0x15bd47[_0x28af64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11fd72=>_0x11fd72[_0x28af64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28af64([0x2a])))[_0x28af64([0x6d,0x61,0x70])](_0x2889cd=>_0x2889cd[_0x28af64([0x73,0x70,0x6c,0x69,0x74])](_0x28af64([0x2e])))[_0x28af64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x432e95=>_0x432e95[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45cfc2[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28af64([0x6d,0x61,0x70])](_0x4fd97d=>Array(_0x45cfc2[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fd97d[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28af64([0x66,0x69,0x6c,0x6c])](_0x4fd97d[0x0]===_0x28af64([0x2a])?_0x28af64([0x2a]):'')[_0x28af64([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fd97d))[_0x28af64([0x73,0x6f,0x6d,0x65])](_0x565a6f=>_0x45cfc2[_0x28af64([0x65,0x76,0x65,0x72,0x79])]((_0x46f613,_0x546932)=>_0x565a6f[_0x546932]===_0x46f613||_0x565a6f[_0x546932]===_0x28af64([0x2a])));}function _0x3c9665(){return _0x5190dd&&_0x230d90?new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48246e,_0x355742)=>{_0x5190dd[_0x28af64([0x74,0x68,0x65,0x6e])](_0x48246e,_0x355742),_0x230d90[_0x28af64([0x74,0x68,0x65,0x6e])](_0x16ffe=>{_0x16ffe!=_0x28af64([0x56,0x61,0x6c,0x69,0x64])&&_0x48246e(_0x16ffe);},_0x355742);}):_0x5190dd||_0x230d90||_0x28af64([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c2a1a(_0x376b88,_0x1b78ae){return new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x278b16=>{if(_0x27be2e())return _0x278b16(_0x28af64([0x56,0x61,0x6c,0x69,0x64]));_0x4b68f7(),_0x1054b7[_0x28af64([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28af64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x324d71=!0x1;const _0x2e3ac8=_0x3ca1e2();function _0x8a8598(_0x5e6379){return!!_0x5e6379&&(typeof _0x5e6379===_0x28af64([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e6379===_0x28af64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e6379[_0x28af64([0x74,0x68,0x65,0x6e])]===_0x28af64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e6379[_0x28af64([0x63,0x61,0x74,0x63,0x68])]===_0x28af64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11c3fa(_0x522d66){_0x462eb0(_0x522d66)[_0x28af64([0x74,0x68,0x65,0x6e])](_0x520bcf=>{if(!_0x520bcf||_0x520bcf[_0x28af64([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28af64([0x6f,0x6b]))return _0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x74d030(_0x3dc656(_0x2e3ac8+_0x1b78ae))!=_0x520bcf[_0x28af64([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28af64([0x56,0x61,0x6c,0x69,0x64]);})[_0x28af64([0x74,0x68,0x65,0x6e])](_0x17e65d=>(_0xcd151e(),_0x17e65d),()=>{const _0x5daad1=_0x9a2f33();return null==_0x5daad1?(_0xcd151e(),_0x28af64([0x56,0x61,0x6c,0x69,0x64])):_0x28af64(_0x564aba-_0x5daad1>(0x5778dc5f^_0xff0606)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28af64([0x74,0x68,0x65,0x6e])](_0x278b16)[_0x28af64([0x63,0x61,0x74,0x63,0x68])](()=>{_0x278b16(_0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x529d1d=0x7342b6df^_0xff0606;function _0xcd151e(){const _0x3ad815=_0x28af64([0x6c,0x6c,0x63,0x74,0x2d])+_0x74d030(_0x3dc656(_0x376b88)),_0x31ed29=_0x832fcd(_0x74d030(window[_0x28af64([0x4d,0x61,0x74,0x68])][_0x28af64([0x63,0x65,0x69,0x6c])](_0x564aba/_0x529d1d)));window[_0x28af64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28af64([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ad815,_0x31ed29);}function _0x9a2f33(){const _0x3a9a7f=_0x28af64([0x6c,0x6c,0x63,0x74,0x2d])+_0x74d030(_0x3dc656(_0x376b88)),_0x5386cb=window[_0x28af64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28af64([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a9a7f);return _0x5386cb?window[_0x28af64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x832fcd(_0x5386cb),0x10)*_0x529d1d:null;}function _0x462eb0(_0x35f172){return new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdfd7e1,_0x168c55)=>{_0x35f172[_0x28af64([0x74,0x68,0x65,0x6e])](_0xdfd7e1,_0x168c55),window[_0x28af64([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x168c55,0x73758c9f^_0xff0606);});}}_0x1054b7[_0x28af64([0x6f,0x6e])](_0x28af64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x599625,_0x3039c2)=>{if(_0x3039c2[0x0]!=_0x376b88)return _0x278b16(_0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3039c2[0x1]={..._0x3039c2[0x1],[_0x28af64([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e3ac8};},{[_0x28af64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28af64([0x68,0x69,0x67,0x68])}),_0x1054b7[_0x28af64([0x6f,0x6e])](_0x28af64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x405567=>{_0x8a8598(_0x405567[_0x28af64([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x324d71=!0x0,_0x11c3fa(_0x405567[_0x28af64([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28af64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28af64([0x6c,0x6f,0x77])}),_0x20cd39[_0x28af64([0x74,0x68,0x65,0x6e])](()=>{_0x324d71||_0x278b16(_0x28af64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27be2e(){return _0x1054b7[_0x28af64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28af64([0x76,0x69,0x65,0x77])][_0x28af64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28af64([0x61,0x75,0x74,0x6f]);}function _0x4b68f7(){_0x1054b7[_0x28af64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28af64([0x76,0x69,0x65,0x77])][_0x28af64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28af64([0x61,0x75,0x74,0x6f]);}}function _0x43b42e(_0x5b2771){const _0x2cb73a=[new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0ded=>setTimeout(_0x1c0ded,0x737d6693^_0xff0606)),_0x20cd39[_0x28af64([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26aed4=>{const _0x120d99=0x73745858^_0xff0606,_0x309386=_0x1fb47c[_0x28af64([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3b12d1(){_0x309386[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x120d99&&_0x26aed4();}_0x3b12d1(),_0x309386[_0x28af64([0x6f,0x6e])](_0x28af64([0x61,0x64,0x64]),_0x3b12d1);})),new window[(_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3327c6=>{function _0x1c9be8(){for(const _0x53a329 in window)if(window[_0x28af64([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x28af64([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x53a329))&&window[_0x53a329]==_0x3e4a02)return _0x3327c6();_0x1054b7[_0x28af64([0x73,0x74,0x61,0x74,0x65])]!=_0x28af64([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x28af64([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c9be8,0x73744bd7^_0xff0606);}_0x29a412(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1c9be8();})];return window[_0x28af64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28af64([0x72,0x61,0x63,0x65])](_0x2cb73a)[_0x28af64([0x74,0x68,0x65,0x6e])](()=>_0x5b2771);}async function _0x44e05f(){if(await _0x20cd39,_0x29a412(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xbcc980=_0x1fb47c[_0x28af64([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x43e62a=_0x1fb47c[_0x28af64([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])](_0xbcc980[_0x28af64([0x69,0x64])]),_0x4e1f20=_0x4ec376(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4e1f20[_0x28af64([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xbcc980['id'],_0x43e62a?_0x43e62a['id']:null,!0x0),_0x4e1f20[_0x28af64([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x28af64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4e1f20[_0x28af64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4e1f20[_0x28af64([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x36b294,void(_0x4e1f20[_0x28af64([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x36b294);}if(_0x29a412(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1787cd=_0x4ec376(_0x28af64([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1787cd[_0x28af64([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x28af64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1787cd[_0x28af64([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1787cd[_0x28af64([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x36b294,_0x1787cd[_0x28af64([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x36b294;}_0x1054b7[_0x28af64([0x6d,0x6f,0x64,0x65,0x6c])][_0x28af64([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36b294,_0x1054b7[_0x28af64([0x6d,0x6f,0x64,0x65,0x6c])][_0x28af64([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36b294,_0x1054b7[_0x28af64([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28af64([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc7c277(){return _0x29a412(_0x28af64([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4ec376(_0x28af64([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x28af64([0x73,0x74,0x61,0x74,0x65])]==_0x28af64([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ad5e3(){return _0x29a412(_0x28af64([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 _0x248cbe(){return _0x29a412(_0x28af64([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x49b739(_0x135d44){const _0x49f7d5=_0x5da0b6();_0x1054b7[_0x49f7d5]=_0x28af64([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])+_0x135d44,_0x135d44[_0x28af64([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x28af64([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5da0b6()]=_0x3e4a02),_0x135d44!=_0x28af64([0x56,0x61,0x6c,0x69,0x64])&&_0x44e05f();}function _0x5da0b6(){const _0x279d2d=window[_0x28af64([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28af64([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28af64([0x6e,0x6f,0x77])]())[_0x28af64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28af64([0x2e]),'');let _0x2ea1ec=_0x28af64([0x73]);for(let _0x1952ab=0x0;_0x1952ab<_0x279d2d[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1952ab+=0x2){let _0x580a1f=window[_0x28af64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x279d2d[_0x28af64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1952ab,_0x1952ab+0x2));_0x580a1f>=_0x4f4d92[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x580a1f-=_0x4f4d92[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ea1ec+=_0x4f4d92[_0x580a1f];}return _0x2ea1ec;}function _0x2472b7(){const _0x2c5e7b=_0x288314[_0x28af64([0x73,0x70,0x6c,0x69,0x74])](_0x28af64([0x2e]));if(0x3!=_0x2c5e7b[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24157b(_0x2c5e7b[0x1]);function _0x24157b(_0x5bbf64){const _0x480e15=_0x56a2b2(_0x5bbf64);return _0x480e15&&_0xaec8e8()?_0x480e15:null;function _0xaec8e8(){const _0x1fff09=_0x480e15[_0x28af64([0x6a,0x74,0x69])],_0x401f15=window[_0x28af64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fff09[_0x28af64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fff09[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2eec97={..._0x480e15,[_0x28af64([0x6a,0x74,0x69])]:_0x1fff09[_0x28af64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fff09[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2eec97[_0x28af64([0x76,0x63])],_0x3dc656(_0x2eec97)==_0x401f15;}}}async function _0x2a7ad0(){let _0x4a8d22=!0x0;try{const _0x122fd9=_0x288314[_0x28af64([0x73,0x70,0x6c,0x69,0x74])](_0x28af64([0x2e])),[_0x8a5731,_0x3fe6b2,_0x30aed1]=_0x122fd9;return _0x59c9d0(_0x8a5731),await _0x3bb027(_0x8a5731,_0x3fe6b2,_0x30aed1),_0x4a8d22;}catch{return!0x1;}function _0x59c9d0(_0x5f2faf){const _0x7ced59=_0x56a2b2(_0x5f2faf);_0x7ced59&&_0x7ced59[_0x28af64([0x61,0x6c,0x67])]==_0x28af64([0x45,0x53,0x32,0x35,0x36])||(_0x4a8d22=!0x1);}async function _0x3bb027(_0x22cde3,_0x43459a,_0x4b8f28){const _0x36257d=window[_0x28af64([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28af64([0x66,0x72,0x6f,0x6d])](_0x26faf0(_0x4b8f28),_0x3744a5=>_0x3744a5[_0x28af64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x103946=new window[(_0x28af64([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28af64([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22cde3+_0x28af64([0x2e])+_0x43459a),_0x14640c=window[_0x28af64([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28af64([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14640c)return;const _0x3f25ae=await _0x14640c[_0x28af64([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28af64([0x6a,0x77,0x6b]),_0x3f40ac,{[_0x28af64([0x6e,0x61,0x6d,0x65])]:_0x28af64([0x45,0x43,0x44,0x53,0x41]),[_0x28af64([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28af64([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28af64([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14640c[_0x28af64([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28af64([0x6e,0x61,0x6d,0x65])]:_0x28af64([0x45,0x43,0x44,0x53,0x41]),[_0x28af64([0x68,0x61,0x73,0x68])]:{[_0x28af64([0x6e,0x61,0x6d,0x65])]:_0x28af64([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f25ae,_0x36257d,_0x103946)||(_0x4a8d22=!0x1);}}function _0x56a2b2(_0x5ec227){return _0x5ec227[_0x28af64([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28af64([0x65,0x79]))?JSON[_0x28af64([0x70,0x61,0x72,0x73,0x65])](_0x26faf0(_0x5ec227)):null;}function _0x26faf0(_0x1c2184){return window[_0x28af64([0x61,0x74,0x6f,0x62])](_0x1c2184[_0x28af64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28af64([0x2b]))[_0x28af64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28af64([0x2f])));}function _0x3dc656(_0x18302d){let _0x2a9181=0x1505;function _0x313af1(_0x640835){for(let _0x3775ac=0x0;_0x3775ac<_0x640835[_0x28af64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3775ac++){const _0x124639=_0x640835[_0x28af64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3775ac);_0x2a9181=(_0x2a9181<<0x5)+_0x2a9181+_0x124639,_0x2a9181&=_0x2a9181;}}function _0x1d1a61(_0x3637a7){Array[_0x28af64([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3637a7)?_0x3637a7[_0x28af64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d1a61):_0x3637a7&&typeof _0x3637a7==_0x28af64([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28af64([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3637a7)[_0x28af64([0x73,0x6f,0x72,0x74])]()[_0x28af64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20721f,_0x5e174c])=>{_0x313af1(_0x20721f),_0x1d1a61(_0x5e174c);}):_0x313af1(window[_0x28af64([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3637a7));}return _0x1d1a61(_0x18302d),_0x2a9181>>>0x0;}function _0x74d030(_0x16850a){return _0x16850a[_0x28af64([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28af64([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28af64([0x30]));}function _0x832fcd(_0x16eae8){return _0x16eae8[_0x28af64([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28af64([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28af64([0x6a,0x6f,0x69,0x6e])]('');}function _0x29a412(_0x9cb086){return _0x1054b7[_0x28af64([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28af64([0x68,0x61,0x73])](_0x9cb086);}function _0x4ec376(_0x44b1a7){return _0x1054b7[_0x28af64([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x28af64([0x67,0x65,0x74])](_0x44b1a7);}function _0x36b294(){}function _0x28af64(_0x55d0b7){return _0x55d0b7['map'](_0x5095b1=>String['fromCharCode'](_0x5095b1))['join']('');}_0x49b739(await _0x5ddeea());}(this);}['createRevision'](_0x2e0464){const _0x140796=this['editor']['plugins']['get']('Users');return new I({'id':_0x2e0464['id'],'name':_0x2e0464['name'],'creator':_0x2e0464['creatorId']?_0x140796['getUser'](_0x2e0464['creatorId']):null,'diffData':_0x2e0464['diffData']||_0x2e0464['data'],'authors':_0x2e0464['authorsIds']['map'](_0x59fb62=>_0x140796['getUser'](_0x59fb62)),'createdAt':new Date(_0x2e0464['createdAt']),'attributes':_0x2e0464['attributes'],'fromVersion':_0x2e0464['fromVersion'],'toVersion':_0x2e0464['toVersion']});}['addRevision'](_0x13be03,_0x3aad58=0x0){this['_revisions']['add'](_0x13be03,_0x3aad58);}['getRevision'](_0x23e401){return this['_revisions']['get'](_0x23e401);}['getRevisions'](_0x287bec={'toJSON':!0x1}){const _0x1f9684=Array['from'](this['_revisions']);return _0x1f9684['reverse'](),_0x287bec['toJSON']?_0x1f9684['map'](_0x2df09b=>_0x2df09b['toJSON']()):_0x1f9684;}['getIndex'](_0x2099e5){return this['_revisions']['getIndex'](_0x2099e5);}['getEarlierVisibleRevision'](_0x45ab42){const [,_0x470931]=this['getRevisionsIterator'](_0x45ab42,{'direction':'earlier'});return _0x470931;}['getLaterVisibleRevision'](_0x5e3c47){const [,_0x4d140a]=this['getRevisionsIterator'](_0x5e3c47,{'direction':'later'});return _0x4d140a;}['getRevisionsInDiff'](_0xb76129){const _0x50f382=[];for(const _0x3ac0fa of this['getRevisionsIterator'](_0xb76129['newRevisionId']))if(_0x50f382['push'](_0x3ac0fa),_0x3ac0fa['id']===_0xb76129['oldRevisionId'])break;return _0x50f382;}*['getRevisionsIterator'](_0x694a4c,{direction:_0x52b7a0='earlier',filter:_0x5ee981=()=>!0x0}={}){const _0x56b2dd='earlier'===_0x52b7a0?0x1:-0x1;let _0x13a315=this['_revisions']['get'](_0x694a4c),_0x354d2d=this['getIndex'](_0x13a315);for(yield _0x13a315;_0x13a315;){if(_0x354d2d+=_0x56b2dd,_0x13a315=this['getRevision'](_0x354d2d),!_0x13a315)return;_0x5ee981(_0x13a315)&&(yield _0x13a315);}}}class $ extends _0x2182b9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x52407e,'c'],[_0xaa1ecf,'a'],[_0x41a8a2,'e'],[_0x171025,'r'],[_0x557769,'u']]);['_typeCharToViewClass']=new Map([['c',_0x52407e],['a',_0xaa1ecf],['e',_0x41a8a2],['r',_0x171025],['u',_0x557769]]);async['loadRevisionData'](_0x1b57d7,_0x27abda){if(_0x1b57d7['diffData']||!_0x27abda)return;const _0x28ad77=this['editor']['config']['get']('collaboration.channelId'),_0x5d7adc=await _0x27abda['getRevision']({'channelId':_0x28ad77,'revisionId':_0x1b57d7['id']});_0x1b57d7['diffData']=_0x5d7adc['diffData'];}['getRevisionDocumentData'](_0x1375ea){const _0x10556e={};for(const _0x463eff in _0x1375ea['diffData']){if(_0x1375ea['diffData'][_0x463eff]['attachChange']&&!_0x1375ea['diffData'][_0x463eff]['attachChange']['isAttached'])continue;const _0x149218=this['_removeRevisionMarkers'](JSON['parse'](_0x1375ea['diffData'][_0x463eff]['insertions'])),_0x1083fe=this['editor']['editing']['view']['document'],_0x358b02=new _0x4af310(_0x1083fe,_0x149218['map'](_0x4e71f1=>this['_getViewFromDiffObj'](_0x4e71f1,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x10556e[_0x463eff]=this['editor']['data']['processor']['toData'](_0x358b02),this['editor']['data']['processor']['useFillerType']('default');}return _0x10556e;}['getRevisionRootsAttributes'](_0x4b3406){const _0x4b7486={};for(const _0x1e09b6 in _0x4b3406['diffData'])_0x4b3406['diffData'][_0x1e09b6]['attachChange']&&!_0x4b3406['diffData'][_0x1e09b6]['attachChange']['isAttached']||(_0x4b7486[_0x1e09b6]=_0x4b3406['diffData'][_0x1e09b6]['attributesAfter']||{});return _0x4b7486;}['_getTypeCharForViewElement'](_0x431597){return this['_viewClassToTypeChar']['get'](_0x431597['constructor']);}['_getViewFromDiffObj'](_0x3e950c,_0xf87ce6){const _0x452cfb=this['editor']['editing']['view']['document'];if('string'==typeof _0x3e950c)return new _0x56d53b(_0x452cfb,_0x3e950c);{let _0x4225f8,_0x26e1b5;_0x26e1b5='u'==_0x3e950c['type']||'r'==_0x3e950c['type']?[]:_0x3e950c['children']['map'](_0x97d679=>this['_getViewFromDiffObj'](_0x97d679,_0xf87ce6));const _0x26497f=this['_typeCharToViewClass']['get'](_0x3e950c['type'])||_0x39546c,_0x4d3989=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4225f8=new _0x26497f(_0x452cfb,_0x3e950c['name'],_0x3e950c['attributes'],_0x26e1b5),'u'==_0x3e950c['type']&&_0x3e950c['children'][0x0]){const _0x1e6b27=_0x3e950c['children'][0x0];if(_0x4225f8['render']=function(_0x4d705b){const _0x20fe35=_0x4d705b['createElement']('div');return _0x20fe35['innerHTML']=_0x1e6b27,_0x20fe35['childNodes'][0x0];},_0xf87ce6){const _0x256145=new _0x4af310(_0x452cfb);_0x256145['_appendChild'](_0x4225f8);const _0x375064=Array['from'](_0x4d3989['viewChildrenToDom'](_0x256145,{'bind':!0x1})),_0x5cc7ac=_0x4d3989['domDocument']['createElement']('div');_0x5cc7ac['append'](..._0x375064),_0x4225f8=Array['from'](_0x4d3989['domChildrenToView'](_0x5cc7ac))[0x0];}}else{if('r'==_0x3e950c['type']&&_0x3e950c['children'][0x0]){const _0x4a5d94=_0x3e950c['children'][0x0];if(_0x4225f8['render']=function(_0xd4b7fc){_0xd4b7fc['innerHTML']=_0x4a5d94;},_0xf87ce6){const _0x1af531=new _0x4af310(_0x452cfb);_0x1af531['_appendChild'](_0x4225f8);const _0x2134ef=Array['from'](_0x4d3989['viewChildrenToDom'](_0x1af531,{'bind':!0x1})),_0x26dab8=_0x4d3989['domDocument']['createElement']('div');_0x26dab8['append'](..._0x2134ef);const _0x895411=Array['from'](_0x4d3989['domChildrenToView'](_0x26dab8));_0x895411['length']>0x1?_0x4225f8['_appendChild'](_0x895411):_0x4225f8=_0x895411[0x0];}}}if(_0x3e950c['customProperties']){for(const [_0x5a99d5,_0x11c879]of _0x3e950c['customProperties'])_0x4225f8['_setCustomProperty'](_0x5a99d5,_0x11c879);}const _0x295d3c=void 0x0===_0x3e950c['fillerOffset']?null:_0x3e950c['fillerOffset'];return null!==_0x295d3c&&(_0x4225f8['getFillerOffset']=()=>_0x295d3c),_0x4225f8;}}['_makeModelFromViewString'](_0x232657){const _0x27568e=JSON['parse'](_0x232657),_0x712a26=this['editor']['editing']['view']['document'],_0x2d38b8=new _0x4af310(_0x712a26,_0x27568e['map'](_0x109774=>this['_getViewFromDiffObj'](_0x109774,!0x0)));return this['editor']['data']['toModel'](_0x2d38b8);}['_removeRevisionMarkers'](_0x478303){return(_0x478303=_0x478303['filter'](_0x238d6c=>!_0x238d6c['name']||'revision-start'!==_0x238d6c['name']&&'revision-end'!==_0x238d6c['name']))['forEach'](_0x1b5410=>{'string'!=typeof _0x1b5410&&(_0x1b5410['children']=this['_removeRevisionMarkers'](_0x1b5410['children']),_0x1b5410['attributes']=_0x1b5410['attributes']['filter'](_0x43139b=>!_0x43139b[0x0]['startsWith']('data-revision-')));}),_0x478303;}}function m(_0x5ee3fd,_0x21623c,_0x1a5515){const t=_0x5ee3fd['t'];switch(_0x21623c){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'},_0x1a5515);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1a5515);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 _0x2182b9{['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[_0x491e76,S,$,_0x50312c];}constructor(_0x4aa56b){super(_0x4aa56b),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 _0x591659=_0x3ca1e2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x591659},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 _0x2adc6b=this['repository']['getRevision'](0x0),_0x583647=_0x2adc6b&&null===_0x2adc6b['creator']?_0x2adc6b:null;if(this['_continueCurrentRevision']=!!_0x583647&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x52f525=this['_source']['getCurrentRevisionId'](),_0x2e6e67=this['repository']['getRevision'](_0x52f525);if(_0x2e6e67)this['_startingVersion']=_0x2e6e67['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x12c0db=this['_source']['history']['_operations']['find'](_0x57af9c=>!_0x57af9c['_isInit']),_0x1048a0=_0x12c0db?_0x12c0db['baseVersion']:this['_source']['history']['version'];_0x2adc6b?(_0x2adc6b['toVersion']<_0x1048a0&&_0x2adc6b['_update']({'toVersion':_0x1048a0}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x583647['id'],this['_startingVersion']=_0x583647['fromVersion']):(this['_startingVersion']=_0x2adc6b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1048a0,this['_continueCurrentRevision']=!0x1);}}else _0x583647&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x583647['toVersion'],this['editor']['model']['document']['history']['version']),_0x583647['fromVersion']===_0x583647['toVersion']?(0x0!==_0x583647['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x583647['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x583647['id'],this['_startingVersion']=_0x583647['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',_0x2631c8=>!_0x2631c8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36f651=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c78e8;for(const _0x1c2eb6 in _0x36f651){const _0x5a4410=_0x1c2eb6,_0x402e6c=_0x36f651[_0x5a4410];if('revisionHistoryLicenseKeyValid'==_0x402e6c||'revisionHistoryLicenseKeyInvalid'==_0x402e6c||'revisionHistoryLicenseKeyExpired'==_0x402e6c||'revisionHistoryLicenseKeyDomainLimit'==_0x402e6c||'revisionHistoryLicenseKeyNotAllowed'==_0x402e6c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x402e6c||'revisionHistoryLicenseKeyTrialLimit'==_0x402e6c||'revisionHistoryLicenseKeyUsageLimit'==_0x402e6c){delete _0x36f651[_0x5a4410],_0x3c78e8=_0x402e6c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3c78e8&&_0x36f651['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3c78e8&&_0x36f651['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3c78e8&&_0x36f651['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3c78e8&&_0x36f651['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3c78e8&&_0x36f651['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3c78e8&&_0x36f651['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3c78e8&&_0x36f651['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x46ff9e=this['repository']['getRevision'](0x0),_0x448db3=await this['getRevisionDocumentData'](_0x46ff9e),_0x241129=await this['getRevisionRootsAttributes'](_0x46ff9e);this['_replaceEditorDataWithRevisionData'](_0x448db3,_0x241129);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xb6d9d2){this['_source']=_0xb6d9d2;}async['update'](){const _0x38ccf6=await this['_source']['getLatestVersion']();if(_0x38ccf6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5808bd=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x38ccf6});_0x5808bd['authors']=_0x5808bd['authorsIds']['map'](_0x223a4c=>this['editor']['plugins']['get']('Users')['getUser'](_0x223a4c)),this['currentRevision']['_update'](_0x5808bd);}}async['saveRevision'](_0x1703d6={},_0xc098bb=null){const _0x4fef57=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xc098bb>this['currentRevision']['toVersion']&&(_0xc098bb=null),null===_0xc098bb&&(_0xc098bb=await this['_source']['getLatestVersion']());const _0x3b88b8=this['_getFromVersion'](_0xc098bb),_0x3e6952=this['buildRevisionData']({'from':_0x3b88b8,'to':_0xc098bb});if(this['currentRevision']['toVersion']<_0xc098bb){const _0xc224fd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xc098bb,'to':_0xc098bb});_0xc224fd['authors']=[],_0xc224fd['authorsIds']=[],_0xc224fd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xc224fd,!0x0),delete _0xc224fd['authors'],_0x4fef57['push'](_0xc224fd);}_0x1703d6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1703d6['name']=_0x1703d6['name']||null,_0x1703d6['id']=_0x1703d6['id']||_0x3ca1e2(),_0x1703d6={..._0x1703d6,..._0x3e6952};const _0x373380=this['addRevisionData'](_0x1703d6);_0x4fef57['push'](_0x1703d6);const _0x4d8217=this['repository']['getIndex'](_0x373380);if(0x0!==_0x4d8217){const _0x5be860=this['repository']['getRevision'](_0x4d8217-0x1);if(_0x5be860['fromVersion']!==_0xc098bb){const _0x4f37c9=this['_revisionDataBuilder']['getData'](_0xc098bb,_0x5be860['toVersion']),_0x24432d={'id':_0x5be860['id'],'diffData':_0x4f37c9['diffData'],'authorsIds':_0x4f37c9['authorsIds'],'authors':_0x4f37c9['authorsIds']['map'](_0x241c44=>this['editor']['plugins']['get']('Users')['getUser'](_0x241c44)),'fromVersion':_0xc098bb};_0x5be860===this['currentRevision']&&(_0x24432d['createdAt']=new Date(_0x1703d6['createdAt']['getTime']()+0xa)),_0x5be860['_update'](_0x24432d,!0x0),delete _0x24432d['authors'],_0x4fef57['push'](_0x24432d);}}if(this['adapter']){for(const _0x21aa70 of _0x4fef57)this['_bufferUpdate'](_0x21aa70['id'],_0x21aa70,!0x0);this['sendBufferedUpdates']();}return _0x373380;}['addRevisionData'](_0x570fe1){const _0x1e6af0=this['repository']['createRevision'](_0x570fe1);return this['adapter']&&_0x1e6af0['on']('_update',(_0x57a620,_0x3fd0df,_0x29932a)=>{_0x29932a||(this['_bufferUpdate'](_0x3fd0df['id'],_0x3fd0df,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e6af0,this['_findInsertionIndex'](_0x1e6af0)),_0x1e6af0;}async['getRevisionDocumentData'](_0x19231a){return await this['_utils']['loadRevisionData'](_0x19231a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x19231a);}async['getRevisionRootsAttributes'](_0x34e8d2){return await this['_utils']['loadRevisionData'](_0x34e8d2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x34e8d2);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x11732d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x63c10b=0x0;_0x63c10b<_0x11732d['length'];_0x63c10b++){const _0x45fd8e=_0x11732d[_0x63c10b];let _0x14c69d=!0x1;for(const _0x1ae257 of Object['keys'](_0x45fd8e))void 0x0===_0x45fd8e[_0x1ae257]?delete _0x45fd8e[_0x1ae257]:'id'!==_0x1ae257&&(_0x14c69d=!0x0);_0x14c69d||(_0x11732d[_0x63c10b]=null);}if(_0x11732d=_0x11732d['filter'](_0x1996d4=>null!==_0x1996d4),!_0x11732d['length'])return;for(let _0xe53cc5=0x0;_0xe53cc5<_0x11732d['length'];_0xe53cc5++){const _0x5d1dfa=_0x11732d[_0xe53cc5];void 0x0!==_0x5d1dfa['fromVersion']&&void 0x0===_0x5d1dfa['toVersion']&&(_0x5d1dfa['toVersion']=this['repository']['getRevision'](_0x5d1dfa['id'])['toVersion']),void 0x0!==_0x5d1dfa['toVersion']&&void 0x0===_0x5d1dfa['fromVersion']&&(_0x5d1dfa['fromVersion']=this['repository']['getRevision'](_0x5d1dfa['id'])['fromVersion']);}const _0x4e1828=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x11732d,_0x4e1828)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5d56fe=>{if(_0x5d56fe){for(const _0x5a8de7 of _0x5d56fe)this['setRevisionData']({'id':_0x5a8de7['id'],'createdAt':_0x5a8de7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2f5ec6=null,from:_0x40c9db=null,to:_0x1a8c9a=null}){_0x40c9db=null!==_0x40c9db?_0x40c9db:_0x2f5ec6['fromVersion'],_0x1a8c9a=null!==_0x1a8c9a?_0x1a8c9a:_0x2f5ec6['toVersion'];const _0x20eba2=this['_revisionDataBuilder']['getData'](_0x40c9db,_0x1a8c9a),_0x453cb5={'diffData':_0x20eba2['diffData'],'authorsIds':_0x20eba2['authorsIds'],'fromVersion':_0x40c9db,'toVersion':_0x1a8c9a};if(!_0x2f5ec6||_0x1a8c9a!==_0x2f5ec6['toVersion']){const _0x37f86f=_0x1a8c9a-0x1,_0x1eec0f=this['_source']['history']['getOperation'](_0x37f86f);_0x453cb5['createdAt']=_0x1eec0f&&_0x1eec0f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x40c9db===this['_loadedStateData']['fromVersion']){for(const _0x3cc3ba of this['_loadedStateData']['authors'])_0x453cb5['authorsIds']['includes'](_0x3cc3ba['id'])||_0x453cb5['authorsIds']['push'](_0x3cc3ba['id']);}return _0x453cb5;}['_bufferUpdate'](_0x4a7630,_0x191252,_0x36b159){if(this['_bufferedUpdates']['has'](_0x4a7630)){const _0x27dccb=this['_bufferedUpdates']['get'](_0x4a7630);_0x191252=_0x36b159?{..._0x27dccb,..._0x191252}:{..._0x191252,..._0x27dccb};}this['_bufferedUpdates']['set'](_0x4a7630,_0x191252);}['setRevisionData'](_0x3ce738){const _0x45600e=this['repository']['getRevision'](_0x3ce738['id']);if(_0x3ce738['createdAt']&&(_0x3ce738['createdAt']=new Date(_0x3ce738['createdAt'])),_0x3ce738['authorsIds']){const _0x215faa=this['editor']['plugins']['get']('Users');_0x3ce738['authors']=_0x3ce738['authorsIds']['map'](_0x555773=>_0x215faa['getUser'](_0x555773));}_0x45600e['_update'](_0x3ce738,!0x0);}['_createInitialRevision'](_0x2a4bd0){const _0x5d1d4b=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5d1d4b)this['_initialRevisionId']=_0x5d1d4b['id'];else{const _0x5b04e8=!this['editor']['model']['document']['roots']['find'](_0x2262ca=>this['editor']['model']['hasContent'](_0x2262ca)),_0x1cb10c=this['editor']['plugins']['get']('Users')['me']['id'],_0x5cf1e5=m(this['editor']['locale'],_0x5b04e8?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2a4bd0,'to':_0x2a4bd0,'id':this['_initialRevisionId'],'name':_0x5cf1e5,'creatorId':_0x1cb10c});}}['_createCurrentRevision'](_0xde9041){const _0x1ab6e4=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1ab6e4),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xde9041,'to':_0xde9041,'id':_0x1ab6e4,'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'](_0x784617,_0x448b30){let _0x57cd2e=this['editor']['config']['get']('initialData'),_0x205613=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x57cd2e){_0x57cd2e={};for(const _0x28d7ae of this['editor']['model']['document']['getRootNames']())_0x57cd2e[_0x28d7ae]='';}if('string'==typeof _0x57cd2e&&(_0x57cd2e={'main':_0x57cd2e}),void 0x0===_0x205613){_0x205613={};for(const _0x43f74d of this['editor']['model']['document']['getRootNames']())_0x205613[_0x43f74d]={};}let _0x5b2f35=!0x1;const _0x5d3a0c=Object['keys'](_0x57cd2e),_0x37b589=Object['keys'](_0x784617);for(const _0x1918aa of _0x5d3a0c){if(_0x57cd2e[_0x1918aa]!==_0x784617[_0x1918aa]&&''!==_0x57cd2e[_0x1918aa]['trim']()){_0x5b2f35=!0x0;break;}if(!_0x4d5de6(_0x205613[_0x1918aa],_0x448b30[_0x1918aa])&&Object['keys'](_0x205613[_0x1918aa])['length']>0x0){_0x5b2f35=!0x0;break;}}_0x5b2f35||(_0x5b2f35=_0x37b589['some'](_0x4baeda=>!this['editor']['model']['document']['getRoot'](_0x4baeda))),_0x5b2f35&&_0x4c6960('editor-initial-data-replaced-with-revision-data',{'editorData':_0x57cd2e,'editorRootsAttributes':_0x205613,'revisionData':_0x784617,'revisionRootsAttributes':_0x448b30}),this['editor']['config']['set']('initialData',_0x784617),this['editor']['config']['set']('rootsAttributes',_0x448b30);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x39bfc3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x39bfc3['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xc8bfeb){const _0x2b66c5=this['repository']['getRevisions']();_0x2b66c5['reverse']();let _0x4b6330=0x0;for(;_0x4b6330<_0x2b66c5['length'];){const _0x19271a=_0x2b66c5[_0x4b6330];if(_0x19271a===this['currentRevision']){_0x4b6330++;continue;}if(_0x19271a['id']===this['_initialRevisionId'])break;const _0x36c262=_0xc8bfeb['toVersion']-_0x19271a['toVersion']||_0xc8bfeb['fromVersion']-_0x19271a['fromVersion'];if(_0x36c262>0x0)break;if(_0x36c262<0x0)_0x4b6330++;else{if(!_0xc8bfeb['creator']&&_0x19271a['creator'])break;if(_0x19271a['creator']||!_0xc8bfeb['creator']){if(_0xc8bfeb['createdAt']>_0x19271a['createdAt'])break;_0x4b6330++;}else _0x4b6330++;}}return _0x4b6330;}['_getFromVersion'](_0x459fb0){const _0x56074b=this['repository']['getRevisions']();_0x56074b['reverse'](),_0x56074b['shift']();const _0x21a9b0=_0x56074b['find'](_0x13c3ab=>_0x13c3ab['toVersion']<=_0x459fb0)['toVersion'];return _0x21a9b0<this['_startingVersion']?this['_startingVersion']:_0x21a9b0;}['_makeRevision']({name:_0x57de5f,from:_0x3e9577,to:_0x30e626,creatorId:_0x43ad36,id:_0x50f21d}){const _0x183741=this['buildRevisionData']({'from':_0x3e9577,'to':_0x30e626});_0x183741['name']=_0x57de5f,_0x183741['creatorId']=_0x43ad36,_0x183741['id']=_0x50f21d;const _0x5e071d=this['addRevisionData'](_0x183741);return this['adapter']&&this['_bufferUpdate'](_0x183741['id'],_0x183741,!0x0),_0x5e071d;}['_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(_0x181738){this['editor']=_0x181738,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'](_0x4f509f){this['source']=_0x4f509f;const _0x261d0c=new Map(),_0x1ed3a2=new Map(),_0x126997=this['editor']['model']['document']['roots']['map'](_0x46c5e9=>_0x46c5e9['rootName']);for(const _0x373033 of _0x126997){const _0x592840=this['editor']['model']['document']['getRoot'](_0x373033),_0x257f26=x(_0x592840);_0x261d0c['set'](_0x373033,_0x257f26),_0x1ed3a2['set'](_0x373033,Object['fromEntries'](_0x592840['getAttributes']()));}const _0x3f58d6=Array['from'](this['editor']['model']['markers'])['map'](_0x26ccd2=>[_0x26ccd2['name'],_0x26ccd2['getRange']()]),_0x52653e=this['source']['version'];this['_saveMetaData'](_0x52653e,_0x261d0c,_0x3f58d6,_0x1ed3a2),this['_startingRevisionId']=this['_revisionId'];const _0x45a354=new Map(),_0x4ae1d8=new Map();for(const _0x5ac240 of _0x126997){const _0xf2ad4d=N(_0x5ac240);_0x45a354['set'](_0x5ac240,_0xf2ad4d),_0x4ae1d8['set'](_0x5ac240,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x45a354,[],_0x4ae1d8);}['getData'](_0x3859bb,_0x2a624e){if(this['_lastFrom']===_0x3859bb&&this['_lastTo']<=_0x2a624e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2a624e,!0x0);else{if(!this['_savedMetaData']['has'](_0x3859bb)){const _0x349ebd=this['_getPreviousFrom'](_0x3859bb);this['_calculateMetaData'](_0x349ebd,_0x3859bb,!0x1);}this['_calculateMetaData'](_0x3859bb,_0x2a624e,!0x0);}return this['_lastFrom']=_0x3859bb,this['_lastTo']=_0x2a624e,this['_getState']();}['loadState'](_0x423772){if(!this['_savedMetaData']['has'](_0x423772['fromVersion'])){const _0x3000ce=this['_getPreviousFrom'](_0x423772['fromVersion']);this['_calculateMetaData'](_0x3000ce,_0x423772['fromVersion'],!0x1);}this['_calculateMetaData'](_0x423772['fromVersion'],_0x423772['toVersion'],!0x1);const _0x22e064=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x423772['fromVersion'],this['_lastTo']=_0x423772['toVersion'];for(const _0x47d783 in _0x423772['diffData']){const _0x2258d5=_0x423772['diffData'][_0x47d783]['attachChange'],_0x4ed096=_0x4f8a27(_0x423772['diffData'][_0x47d783]['attributesBefore'])||{},_0x3b1106=_0x22e064['_makeModelFromViewString'](_0x423772['diffData'][_0x47d783]['deletions']);_0x3b1106['rootName']=_0x47d783,_0x3b1106['_isAttached']=!_0x2258d5||!_0x2258d5['isAttached'],_0x3b1106['isAttached']=()=>_0x3b1106['_isAttached'],this['_baseRoots']['set'](_0x47d783,_0x3b1106),this['_baseRootsAttributes']['set'](_0x47d783,_0x4ed096),_0x2258d5&&this['_touchedRoots']['set'](_0x47d783,_0x2258d5);const _0x75f150=this['_makeIdsRoot'](_0x3b1106);this['_baseIdsRoots']['set'](_0x47d783,_0x75f150);for(const [_0x550cce,_0x2e7b8a]of _0x3b1106['markers']){if(!_0x550cce['startsWith']('revision:'))continue;const _0x21fb5a=_0x550cce['split'](':')[0x2];for(const _0x45158e of _0x2e7b8a['getWalker']({'singleCharacters':!0x0})){const _0x2ba41e=this['_getVidAttributeName'](_0x45158e),_0x41d303='elementEnd'==_0x45158e['type']?_0x45158e['previousPosition']['path']['slice'](0x0,-0x1):_0x45158e['previousPosition']['path'],_0x562c1a=_0x75f150['getNodeByPath'](_0x41d303)['getAttribute'](_0x2ba41e);this['_touched']['set'](_0x562c1a,{'userId':_0x21fb5a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x27cf60=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x22090d=>!this['_touched']['has'](_0x22090d));let _0x2f4571=0x0;const _0x443351=new Map();for(const _0x4c6c4c in _0x423772['diffData']){const _0x12c903=_0x423772['diffData'][_0x4c6c4c]['attachChange'],_0x3cedfc=_0x4f8a27(_0x423772['diffData'][_0x4c6c4c]['attributesAfter'])||{},_0x482aeb=_0x22e064['_makeModelFromViewString'](_0x423772['diffData'][_0x4c6c4c]['insertions']);_0x482aeb['rootName']=_0x4c6c4c,_0x482aeb['_isAttached']=!_0x12c903||_0x12c903['isAttached'],_0x482aeb['isAttached']=()=>_0x482aeb['_isAttached'],this['_diffRoots']['set'](_0x4c6c4c,_0x482aeb),this['_diffRootsAttributes']['set'](_0x4c6c4c,_0x3cedfc);const _0x2dfb34=this['_makeIdsRoot'](_0x482aeb,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4c6c4c,_0x2dfb34),_0x443351['set'](_0x4c6c4c,_0x482aeb['isAttached']()?_0x3cedfc:{});for(const [_0x276366,_0x2f59f6]of _0x482aeb['markers']){if(!_0x276366['startsWith']('revision:'))continue;const _0x2d370b=_0x276366['split'](':')[0x2];for(const _0x564a08 of _0x2f59f6['getWalker']({'singleCharacters':!0x0})){const _0x46e4c9=this['_getVidAttributeName'](_0x564a08),_0x149efb=this['_revisionId']++,_0x2c118c='elementEnd'==_0x564a08['type']?_0x564a08['previousPosition']['path']['slice'](0x0,-0x1):_0x564a08['previousPosition']['path'];_0x2dfb34['getNodeByPath'](_0x2c118c)['_setAttribute'](_0x46e4c9,_0x149efb),this['_touched']['set'](_0x149efb,{'userId':_0x2d370b});}}for(const _0x276a13 of this['editor']['model']['createRangeIn'](_0x482aeb)['getWalker']({'singleCharacters':!0x0})){const _0x44f64d=this['_getVidAttributeName'](_0x276a13),_0x3b10b8='elementEnd'==_0x276a13['type']?_0x276a13['previousPosition']['path']['slice'](0x0,-0x1):_0x276a13['previousPosition']['path'],_0x5132ff=_0x2dfb34['getNodeByPath'](_0x3b10b8);_0x5132ff['getAttribute'](_0x44f64d)>0x0||_0x5132ff['_setAttribute'](_0x44f64d,_0x27cf60[_0x2f4571++]);}for(const [_0x58f7e5,_0x2c50f1]of _0x482aeb['markers'])_0x58f7e5['startsWith']('revision:')||this['_markers']['set'](_0x58f7e5,_0x2c50f1);}const {roots:_0x35d891}=this['_savedMetaData']['get'](_0x423772['fromVersion']),{roots:_0x1976f1}=this['_savedMetaData']['get'](_0x423772['toVersion']),_0xf23586=x(_0x35d891['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0xf23586),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf23586,Number['NEGATIVE_INFINITY']));const _0x2014a6=x(_0x1976f1['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x2014a6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2014a6));const _0x45372f=Array['from'](this['_diffRoots'])['map'](([_0x120968,_0x38f0e6])=>[_0x120968,x(_0x38f0e6)]);this['_saveMetaData'](this['_lastTo'],_0x45372f,this['_markers'],_0x443351);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x43d7bb,_0x3db749,_0x400481,_0x2cefc8){const _0x488185=new Map(_0x3db749),_0x144b1d=new Map(_0x4f8a27(_0x2cefc8)),_0xbeda0=new Map();for(const [_0x53e521,_0x19e030]of _0x400481)_0xbeda0['set'](_0x53e521,{'start':_0x19e030['start']['clone'](),'end':_0x19e030['end']['clone'](),'rootName':_0x19e030['root']['rootName']});this['_savedMetaData']['set'](_0x43d7bb,{'roots':_0x488185,'markers':_0xbeda0,'rootsAttributes':_0x144b1d});}['_removeMetaData'](_0x32cf1f){this['_savedMetaData']['delete'](_0x32cf1f);}['_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'](_0x49f457,_0x61eb9=null){let _0x55a70d=null;_0x49f457['is']('documentFragment')||(_0x55a70d=new _0x47d77c(_0x49f457['name'],{'vid_start':null===_0x61eb9?this['_revisionId']++:_0x61eb9++}));const _0x12f942=[];for(const _0x71d3a9 of _0x49f457['getChildren']())if(_0x71d3a9['is']('element')){_0x12f942['push'](this['_makeIdsRoot'](_0x71d3a9,_0x61eb9));const _0x34f5a7=_0x12f942[_0x12f942['length']-0x1];null!==_0x61eb9&&(_0x61eb9=_0x34f5a7['is']('element','$text')?_0x34f5a7['getAttribute']('vid')+0x1:_0x34f5a7['getAttribute']('vid_end')+0x1);}else{for(let _0x2bbffc=0x0;_0x2bbffc<_0x71d3a9['offsetSize'];_0x2bbffc++)_0x12f942['push'](new _0x47d77c('$text',{'vid':null===_0x61eb9?this['_revisionId']++:_0x61eb9++}));}if(_0x49f457['is']('documentFragment')){const _0x545f2a=N(_0x49f457['rootName']);return _0x545f2a['_insertChild'](0x0,_0x12f942),_0x545f2a;}return _0x55a70d['_setAttribute']('vid_end',null===_0x61eb9?this['_revisionId']++:_0x61eb9++),_0x55a70d['_insertChild'](0x0,_0x12f942),_0x55a70d;}['_calculateMetaData'](_0xb43098,_0x378d6f,_0x4e7d9c){this['_reset']();const {roots:_0x1e9530,markers:_0x577f8c,rootsAttributes:_0x21f634}=this['_savedMetaData']['get'](_0xb43098);this['_baseRoots']=new Map(_0x1e9530),this['_baseRootsAttributes']=new Map(_0x4f8a27(_0x21f634));for(const [_0x2978ec,_0xf548d0]of this['_baseRoots'])if('$graveyard'!==_0x2978ec&&(this['_diffRoots']['set'](_0x2978ec,x(_0xf548d0)),this['_diffRootsAttributes']=new Map(_0x4f8a27(_0x21f634)),_0x4e7d9c)){const _0x2cf06a=this['_revisionId'];this['_idsRoots']['set'](_0x2978ec,this['_makeIdsRoot'](_0xf548d0)),this['_baseIdsRoots']['set'](_0x2978ec,this['_makeIdsRoot'](_0xf548d0,_0x2cf06a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x4e7d9c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3c4127,_0x39fc23]of _0x577f8c){const _0xf81ca4=this['_baseRoots']['get'](_0x39fc23['rootName']),_0x563ea1=this['_diffRoots']['get'](_0x39fc23['rootName']),_0x2332e8=new _0x37ff01(this['_fixPosition'](_0x39fc23['start'],_0xf81ca4),this['_fixPosition'](_0x39fc23['end'],_0xf81ca4)),_0x2f5da3=this['_fixRange'](_0x2332e8,_0x563ea1);_0xf81ca4['markers']['set'](_0x3c4127,_0x2332e8),this['_markers']['set'](_0x3c4127,_0x2f5da3);}this['_applyOperations'](_0xb43098,_0x378d6f,_0x4e7d9c);}['_applyOperations'](_0x30fc48,_0x2361b2,_0x406bcd){for(const _0x3f991e of this['source']['getOperations'](_0x30fc48,_0x2361b2))this['_handleOperation'](_0x3f991e,_0x406bcd);for(const _0x396d53 of this['_diffRoots']['values']())_0x396d53['markers']['clear']();for(const [_0x5879f5,_0x5ae6eb]of this['_markers']){this['_diffRoots']['get'](_0x5ae6eb['root']['rootName'])['markers']['set'](_0x5879f5,_0x5ae6eb['clone']());}const _0x3c881e=new Map(),_0x5f45ab=new Map();for(const [_0x140ef5,_0x64449d]of this['_diffRoots'])_0x3c881e['set'](_0x140ef5,x(_0x64449d)),_0x5f45ab['set'](_0x140ef5,this['_diffRootsAttributes']['get'](_0x140ef5));this['_saveMetaData'](_0x2361b2,_0x3c881e,this['_markers'],_0x5f45ab);}['_getPreviousFrom'](_0x414f51){const _0x231b9d=Array['from'](this['_savedMetaData']['keys']());_0x231b9d['sort']((_0x2137e8,_0x140b79)=>_0x2137e8-_0x140b79),_0x231b9d['reverse']();for(const _0x3977ca of _0x231b9d)if(_0x3977ca<_0x414f51)return _0x3977ca;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x488155,_0x46c7f4){const _0x16c922=Array['from'](_0x46c7f4['markers'])['map'](([_0x5d8dc9,_0xdc42bc])=>[_0x5d8dc9,this['_fixRange'](_0xdc42bc,_0x488155)]);_0x488155['markers']=new Map(_0x16c922);}['_transformMarkers'](_0x5635f1){for(const _0x34221b of this['_markers']['values']()){const _0x19971c=_0x34221b['getTransformedByOperation'](_0x5635f1),_0x49bad9=_0x37ff01['_createFromRanges'](_0x19971c);_0x34221b['start']=_0x49bad9['start'],_0x34221b['end']=_0x49bad9['end'];}}['_handleOperation'](_0x2e5fd3,_0x4ac86c){if('addRoot'!=_0x2e5fd3['type']&&'detachRoot'!=_0x2e5fd3['type']){if('insert'==_0x2e5fd3['type']){const _0x9ce969=_0x2e5fd3['position']['root']['rootName'];this['_diffRoots']['has'](_0x9ce969)||(this['_diffRoots']['set'](_0x9ce969,N(_0x9ce969,!0x0)),this['_diffRootsAttributes']['set'](_0x9ce969,{}),_0x4ac86c&&this['_idsRoots']['set'](_0x9ce969,N(_0x9ce969,!0x0)));}else{if('addRootAttribute'==_0x2e5fd3['type']||'removeRootAttribute'==_0x2e5fd3['type']||'changeRootAttribute'==_0x2e5fd3['type'])return void this['_handleRootAttributeOperation'](_0x2e5fd3);'marker'==_0x2e5fd3['type']&&this['_handleMarkerOperation'](_0x2e5fd3);}if('marker'!==_0x2e5fd3['type']){const _0x5f9194=this['_cloneOperation'](_0x2e5fd3,this['_diffRoots']);_0x5f9194['_execute'](),this['_transformMarkers'](_0x5f9194);}if(_0x4ac86c)switch(_0x2e5fd3['type']){case'insert':this['_handleInsertOperation'](_0x2e5fd3);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2e5fd3);break;case'merge':this['_handleMergeOperation'](_0x2e5fd3);break;case'split':this['_handleSplitOperation'](_0x2e5fd3);}}else this['_handleRootOperation'](_0x2e5fd3,_0x4ac86c);}['_cloneOperation'](_0x45e4f5,_0x1188c8){const _0x368eb3=_0x45e4f5['clone']();return _0x368eb3['_authorId']=_0x45e4f5['_authorId'],this['_fixOperation'](_0x368eb3,_0x1188c8),_0x368eb3;}['_getBaseVids'](_0x4d1cfa){return _0x4d1cfa['map'](_0x2e01f7=>{const _0x3851e8=this['_getVidAttributeName'](_0x2e01f7);return Number(_0x2e01f7['item']['getAttribute'](_0x3851e8));});}['_generateTape'](_0x4706cd,_0x43af37){if(_0x4706cd['is']('element','$text'))_0x43af37['push']({'item':_0x4706cd,'type':'text'});else{_0x4706cd['is']('element')&&_0x43af37['push']({'item':_0x4706cd,'type':'elementStart'});for(const _0x407168 of _0x4706cd['getChildren']())this['_generateTape'](_0x407168,_0x43af37);_0x4706cd['is']('element')&&_0x43af37['push']({'item':_0x4706cd,'type':'elementEnd'});}return _0x43af37;}['_getState'](){const _0x1141a7=new Map(this['_touched']),_0x50e82b=new Map(_0x1141a7),_0x1fae5b=new Map(),_0x36396f={'insertions':{},'deletions':{}},_0x19875f={'insertions':{},'deletions':{}},_0x2f4e17=new Map(),_0xd84e5b=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xd84e5b['delete']('$graveyard');for(const _0xaae976 of _0xd84e5b){const _0x40e112=this['_diffRoots']['get'](_0xaae976)||N(_0xaae976,!0x1),_0x352836=this['_baseRoots']['get'](_0xaae976)||N(_0xaae976,!0x1);_0x40e112['isAttached']()||_0x352836['isAttached']()?(_0x36396f['insertions'][_0xaae976]=x(_0x40e112),_0x36396f['deletions'][_0xaae976]=x(_0x352836),this['_copyMarkers'](_0x36396f['deletions'][_0xaae976],_0x352836),this['_copyMarkers'](_0x36396f['insertions'][_0xaae976],_0x40e112),_0x19875f['insertions'][_0xaae976]=this['_generateTape'](this['_idsRoots']['get'](_0xaae976),[]),_0x19875f['deletions'][_0xaae976]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xaae976)||N(_0xaae976,!0x1),[])):_0xd84e5b['delete'](_0xaae976);}for(const _0x99f258 of _0xd84e5b){const _0x336ed9=_0x19875f['insertions'][_0x99f258];for(const _0x2be7e8 of _0x336ed9){const _0x167c96=this['_getVidAttributeName'](_0x2be7e8),_0x382c34=_0x2be7e8['item']['getAttribute'](_0x167c96);_0x50e82b['delete'](_0x382c34),_0x382c34>=this['_startingRevisionId']&&_0x1fae5b['set'](_0x382c34,_0x1141a7['get'](_0x382c34));}}for(const _0x2160d1 of _0xd84e5b){const _0x273060=_0x19875f['insertions'][_0x2160d1],_0x284322=this['_getBaseVids'](_0x19875f['deletions'][_0x2160d1]);let _0x1aef2f=0x0;for(const _0x6fb4c of _0x273060){const _0x47d797=this['_getVidAttributeName'](_0x6fb4c),_0x7d8228=_0x6fb4c['item']['getAttribute'](_0x47d797);if(!_0x1fae5b['has'](_0x7d8228)&&!_0x2f4e17['has'](_0x7d8228)){if(_0x50e82b['has'](_0x7d8228))_0x1aef2f++;else{if(_0x7d8228!=_0x284322[_0x1aef2f]){const _0x153b4b=_0x1141a7['get'](_0x7d8228)||_0x1141a7['get'](_0x284322[_0x1aef2f]);for(;_0x7d8228!=_0x284322[_0x1aef2f];)_0x50e82b['has'](_0x284322[_0x1aef2f])||(_0x2f4e17['set'](_0x284322[_0x1aef2f],_0x153b4b),_0x1141a7['set'](_0x284322[_0x1aef2f],_0x153b4b)),_0x1aef2f++;}_0x1aef2f++;}}}}for(const _0x1f31ab of _0xd84e5b){const _0x3ca88e=_0x19875f['insertions'][_0x1f31ab];for(const _0x58126f of _0x3ca88e){const _0x44e018=this['_getVidAttributeName'](_0x58126f),_0xcde16a=_0x58126f['item']['getAttribute'](_0x44e018);if(_0x2f4e17['has'](_0xcde16a)){const _0x3d4250=_0x2f4e17['get'](_0xcde16a);_0x50e82b['has'](_0xcde16a)||_0x50e82b['set'](_0xcde16a,{..._0x3d4250}),_0x1fae5b['set'](_0xcde16a,{..._0x3d4250});}}}for(const _0x345905 of _0x50e82b['keys']())_0x345905>=this['_startingRevisionId']&&_0x50e82b['delete'](_0x345905);const _0x332518=new Map();for(const _0x2f0199 of _0xd84e5b){let _0x3e9a9f=_0x19875f['insertions'][_0x2f0199];for(const _0xbbb0a1 of _0x3e9a9f)if(_0xbbb0a1['item']['is']('element','tableCell')){const _0x13fec6=this['_getVidAttributeName'](_0xbbb0a1),_0x39c514=_0xbbb0a1['item']['getAttribute'](_0x13fec6);if(_0x1fae5b['has'](_0x39c514)){const _0x12a03e=_0xbbb0a1['item']['parent']['parent']['getAttribute']('vid_start'),_0x232fa4=_0x332518['get'](_0x12a03e)||new Set();_0x232fa4['add'](_0x1fae5b['get'](_0x39c514)['userId']),_0x332518['set'](_0x12a03e,_0x232fa4);}}_0x3e9a9f=_0x19875f['deletions'][_0x2f0199];for(const _0x551398 of _0x3e9a9f)if(_0x551398['item']['is']('element','tableCell')){const _0x5eff54=this['_getVidAttributeName'](_0x551398),_0x5e3ad6=_0x551398['item']['getAttribute'](_0x5eff54);if(_0x50e82b['has'](_0x5e3ad6)){const _0x15cf68=_0x551398['item']['parent']['parent']['getAttribute']('vid_start'),_0x3a456b=_0x332518['get'](_0x15cf68)||new Set();_0x3a456b['add'](_0x50e82b['get'](_0x5e3ad6)['userId']),_0x332518['set'](_0x15cf68,_0x3a456b);}}for(const _0x57a916 of _0x332518['keys']())(_0x1fae5b['has'](_0x57a916)||_0x50e82b['has'](_0x57a916))&&_0x332518['delete'](_0x57a916);}for(const _0x5787ea of _0xd84e5b){const _0x2b8b8e=_0x19875f['insertions'][_0x5787ea];let _0x54da94=null,_0x74b0f5=null;for(const _0x188170 of _0x2b8b8e){const _0x439469=this['_getVidAttributeName'](_0x188170),_0x4b5d0e=_0x188170['item']['getAttribute'](_0x439469),_0x2e39ef=_0x332518['get'](_0x4b5d0e);_0x2e39ef&&'elementStart'==_0x188170['type']&&(_0x54da94=Array['from'](_0x2e39ef)[0x0],_0x74b0f5=_0x188170['item']['getAttribute']('vid_end')),_0x54da94&&(_0x50e82b['set'](_0x4b5d0e,{'userId':_0x54da94}),_0x1fae5b['set'](_0x4b5d0e,{'userId':_0x54da94})),_0x4b5d0e==_0x74b0f5&&(_0x54da94=null,_0x74b0f5=null);}}const _0x2eace1={},_0x4997b9=new Set();for(const _0x4fa778 of _0xd84e5b){const _0x4f9d60=_0x36396f['deletions'][_0x4fa778],_0x3269bd=_0x36396f['insertions'][_0x4fa778];for(const {userId:_0x599605}of this['_touchedMarkers']['values']())null!==_0x599605&&_0x4997b9['add'](_0x599605);for(const {userId:_0x294756}of this['_touchedRoots']['values']())null!==_0x294756&&_0x4997b9['add'](_0x294756);this['_markChanges'](_0x3269bd,_0x19875f['insertions'][_0x4fa778],_0x1fae5b,'insertion',_0x4997b9),this['_markChanges'](_0x4f9d60,_0x19875f['deletions'][_0x4fa778],_0x50e82b,'deletion',_0x4997b9),_0x2eace1[_0x4fa778]={'insertions':this['_prepareViewToSave'](_0x3269bd),'deletions':this['_prepareViewToSave'](_0x4f9d60),'attachChange':this['_touchedRoots']['get'](_0x4fa778)||null,'attributesBefore':_0x4f8a27(this['_baseRootsAttributes']['get'](_0x4fa778))||{},'attributesAfter':_0x4f8a27(this['_diffRootsAttributes']['get'](_0x4fa778))};}return{'diffData':_0x2eace1,'authorsIds':Array['from'](_0x4997b9)};}['_processRootBeforeSave'](_0x44854e){for(const [,_0x26cef0]of _0x44854e['markers']){const _0x1bc24b=_0x26cef0['start']['getAncestors']()['filter'](_0x116a1d=>'tableCell'==_0x116a1d['name']);for(const _0xc32d8e of _0x1bc24b)0x1==_0xc32d8e['childCount']&&_0xc32d8e['getChild'](0x0)['is']('element','paragraph')&&_0xc32d8e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x35080b){this['_processRootBeforeSave'](_0x35080b);const _0x4afe58=this['editor']['data']['toView'](_0x35080b,{}),_0x655d72=Array['from'](_0x4afe58['getChildren']())['map'](_0x3435f7=>this['_getViewJson'](_0x3435f7));return JSON['stringify'](_0x655d72);}['_getViewJson'](_0x1cd6e3){if(_0x1cd6e3['is']('$text'))return _0x1cd6e3['data'];{const _0x394d10=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x40a9bf=_0x1cd6e3,_0x2a7b8a=this['editor']['data']['htmlProcessor']['domConverter'],_0x954312={'type':_0x394d10['_getTypeCharForViewElement'](_0x40a9bf),'name':_0x40a9bf['name'],'attributes':Array['from'](_0x40a9bf['getAttributes']()),'children':Array['from'](_0x40a9bf['getChildren']())['map'](_0x22a151=>this['_getViewJson'](_0x22a151))};if(_0x1cd6e3['is']('uiElement')&&'$comment'!=_0x1cd6e3['name']){const _0x14d9d1=_0x1cd6e3['render'](_0x2a7b8a['domDocument'],_0x2a7b8a);_0x954312['children']['push'](_0x14d9d1['outerHTML']);}else{if(_0x1cd6e3['is']('rawElement')){const _0x2c4132=_0x2a7b8a['domDocument']['createElement'](_0x40a9bf['name']);_0x1cd6e3['render'](_0x2c4132,_0x2a7b8a),_0x954312['children']['push'](_0x2c4132['innerHTML']);}}const _0x5ca054=Array['from'](_0x40a9bf['getCustomProperties']());_0x5ca054['length']>0x0&&(_0x954312['customProperties']=_0x5ca054);const _0x39c580=_0x40a9bf['getFillerOffset']();return null!==_0x39c580&&(_0x954312['fillerOffset']=_0x39c580),_0x954312;}}['_markChanges'](_0x4c3415,_0x1a94ab,_0x5bcff3,_0x1ce5c7,_0x37027b){let _0x1e3c7c=null,_0x3c9271=null,_0x271115=0x0;const _0xfd4e7a=this['editor']['model'];for(let _0x52b707=0x0;_0x52b707<_0x1a94ab['length'];_0x52b707++){const _0x39661b=this['_getVidAttributeName'](_0x1a94ab[_0x52b707]),_0x2cdd19=_0x1a94ab[_0x52b707]['item']['getAttribute'](_0x39661b),_0x326c12=_0x5bcff3['get'](_0x2cdd19),_0x1a4cd4=_0x52b707==_0x1a94ab['length']-0x1;(!_0x1e3c7c&&_0x326c12&&(_0x1e3c7c=_0x326c12,_0x3c9271=_0x1a94ab[_0x52b707]),_0x1e3c7c&&(!_0x326c12||_0x326c12['userId']!=_0x1e3c7c['userId']))&&(_0x231b22(_0x326c12,P(_0x3c9271,_0x4c3415,_0xfd4e7a),P(_0x1a94ab[_0x52b707],_0x4c3415,_0xfd4e7a)),_0x1e3c7c=_0x326c12||null,_0x3c9271=_0x326c12?_0x1a94ab[_0x52b707]:null),_0x1e3c7c&&_0x1a4cd4&&_0x231b22(_0x326c12,P(_0x3c9271,_0x4c3415,_0xfd4e7a),V(_0x1a94ab[_0x52b707],_0x4c3415,_0xfd4e7a));}function _0x231b22(_0x267ac6,_0x145810,_0x290108){const _0x129415=_0x1e3c7c['userId'],_0x2d6385='revision:'+_0x1ce5c7+':'+_0x129415+':'+_0x271115++,_0x4a3f8f=_0xfd4e7a['createRange'](_0x145810,_0x290108);_0x4c3415['markers']['set'](_0x2d6385,_0x4a3f8f),null!==_0x129415&&_0x37027b['add'](_0x129415);}}['_getVidAttributeName'](_0x31c6c2){switch(_0x31c6c2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3e9366,_0x149795){_0x3e9366['baseVersion']=null;for(const _0x328fbc in _0x3e9366){const _0x58b58f=_0x3e9366[_0x328fbc];if(_0x58b58f instanceof _0x40c1c3){const _0xe8ce13=_0x149795['get'](_0x58b58f['root']['rootName']);_0x3e9366[_0x328fbc]=this['_fixPosition'](_0x58b58f,_0xe8ce13);}if(_0x58b58f instanceof _0x37ff01){const _0x1e2232=_0x149795['get'](_0x58b58f['root']['rootName']);_0x3e9366[_0x328fbc]=this['_fixRange'](_0x58b58f,_0x1e2232);}'root'===_0x328fbc&&(_0x3e9366['root']=_0x149795['get'](_0x3e9366['root']['rootName']));}}['_fixRange'](_0xc0fb3,_0x806e56){return this['editor']['model']['createRange'](this['_fixPosition'](_0xc0fb3['start'],_0x806e56),this['_fixPosition'](_0xc0fb3['end'],_0x806e56));}['_fixPosition'](_0xb4a03e,_0x1506ba){return this['editor']['model']['createPositionFromPath'](_0x1506ba,_0xb4a03e['path'],_0xb4a03e['stickiness']);}['_handleInsertOperation'](_0x5c715c){const _0x1efbf2=this['_idsRoots']['get'](_0x5c715c['position']['root']['rootName']),_0x12ae08=this['_fixPosition'](_0x5c715c['position'],_0x1efbf2),_0x54e3cb=null===_0x5c715c['_authorId']?null:_0x5c715c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1eda24=_0x12ae08['parent'],_0x4d0bf9=this['_revisionId'],_0xa879f8=[];for(const _0x5228e4 of _0x5c715c['nodes'])if(_0x5228e4['is']('element'))_0xa879f8['push'](this['_makeIdsRoot'](_0x5228e4));else{for(let _0xd32503=0x0;_0xd32503<_0x5228e4['offsetSize'];_0xd32503++)_0xa879f8['push'](new _0x47d77c('$text',{'vid':this['_revisionId']++}));}const _0x5b2d7b=this['_revisionId'];for(let _0x4f66e7=_0x4d0bf9;_0x4f66e7<_0x5b2d7b;_0x4f66e7++)this['_touched']['set'](_0x4f66e7,{'userId':_0x54e3cb});_0x1eda24['_insertChild'](_0x12ae08['offset'],_0xa879f8);}['_handleMoveOperation'](_0x1726a6){(_0x1726a6=this['_cloneOperation'](_0x1726a6,this['_idsRoots']))['_execute']();const _0x56f4dd=null===_0x1726a6['_authorId']?null:_0x1726a6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5efc2d=_0x1726a6['getMovedRangeStart'](),_0x325593=_0x5efc2d['parent'],_0x355745=_0x5efc2d['offset'];!function _0x4b80fa(_0x335f07,_0x43f1ce,_0x13f748,_0x2ad454){for(let _0x41ef01=_0x13f748;_0x41ef01<_0x2ad454;_0x41ef01++){const _0x53f2cc=_0x43f1ce['getChild'](_0x41ef01);_0x53f2cc['is']('element','$text')?_0x335f07['set'](_0x53f2cc['getAttribute']('vid'),{'userId':_0x56f4dd}):(_0x335f07['set'](_0x53f2cc['getAttribute']('vid_start'),{'userId':_0x56f4dd}),_0x4b80fa(_0x335f07,_0x53f2cc,0x0,_0x53f2cc['childCount']),_0x335f07['set'](_0x53f2cc['getAttribute']('vid_end'),{'userId':_0x56f4dd}));}}(this['_touched'],_0x325593,_0x355745,_0x355745+_0x1726a6['howMany']);}['_handleMergeOperation'](_0x1e0bf5){const _0x1ef195=null===(_0x1e0bf5=this['_cloneOperation'](_0x1e0bf5,this['_idsRoots']))['_authorId']?null:_0x1e0bf5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10f582=_0x1e0bf5['targetPosition']['parent'],_0x462ae4=_0x1e0bf5['sourcePosition']['parent'],_0x1d698c=_0x10f582['getAttribute']('vid_end'),_0x45bccf=_0x462ae4['getAttribute']('vid_start');_0x10f582['_setAttribute']('vid_end',_0x462ae4['getAttribute']('vid_end')),_0x462ae4['_setAttribute']('vid_end',_0x1d698c),this['_touched']['set'](_0x45bccf,{'userId':_0x1ef195}),this['_touched']['set'](_0x1d698c,{'userId':_0x1ef195}),_0x1e0bf5['_execute']();}['_handleSplitOperation'](_0x2579af){const _0x35823b=null===(_0x2579af=this['_cloneOperation'](_0x2579af,this['_idsRoots']))['_authorId']?null:_0x2579af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3849fb=_0x2579af['graveyardPosition'],_0x5f2e42=_0x2579af['splitPosition']['parent'];_0x2579af['_execute']();const _0xc79b9d=_0x5f2e42['getAttribute']('vid_end'),_0x5c3478=_0x2579af['insertionPosition']['nodeAfter'];if(_0x3849fb){const _0x12aa4f=_0x5c3478['getAttribute']('vid_end'),_0x238061=_0x5f2e42['getAttribute']('vid_end');_0x5f2e42['_setAttribute']('vid_end',_0x12aa4f),_0x5c3478['_setAttribute']('vid_end',_0x238061),this['_touched']['set'](_0x5f2e42['getAttribute']('vid_end'),{'userId':_0x35823b}),this['_touched']['set'](_0x5c3478['getAttribute']('vid_start'),{'userId':_0x35823b});}else{const _0x595346=this['_revisionId']++,_0x338e67=this['_revisionId']++;_0x5f2e42['_setAttribute']('vid_end',_0x595346),_0x5c3478['_setAttribute']('vid_start',_0x338e67),_0x5c3478['_setAttribute']('vid_end',_0xc79b9d),this['_touched']['set'](_0x595346,{'userId':_0x35823b}),this['_touched']['set'](_0x338e67,{'userId':_0x35823b});}}['_handleMarkerOperation'](_0x45fe71){if(!_0x45fe71['affectsData'])return;const _0x5319e2=(_0x45fe71=this['_cloneOperation'](_0x45fe71,this['_diffRoots']))['oldRange']?_0x45fe71['oldRange']['root']:null,_0x4cd85c=_0x45fe71['newRange']?_0x45fe71['newRange']['root']:null;_0x5319e2&&this['_markers']['delete'](_0x45fe71['name']),_0x4cd85c&&this['_markers']['set'](_0x45fe71['name'],_0x45fe71['newRange']['clone']());const _0x461b8c=null===_0x45fe71['_authorId']?null:_0x45fe71['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50eb09=_0x45fe71['name'];if(!this['_touchedMarkers']['has'](_0x50eb09))return void this['_touchedMarkers']['set'](_0x50eb09,{'range':_0x45fe71['oldRange'],'userId':_0x461b8c});const _0x59b261=this['_touchedMarkers']['get'](_0x50eb09),_0x11861c=_0x59b261['range'],_0x1034ff=_0x45fe71['newRange'];null==_0x11861c&&null==_0x1034ff||_0x11861c&&_0x1034ff&&_0x11861c['isEqual'](_0x1034ff)?this['_touchedMarkers']['delete'](_0x45fe71['name']):_0x59b261['userId']=_0x461b8c;}['_handleRootOperation'](_0x86c96b,_0x54f04e){this['_diffRoots']['has'](_0x86c96b['rootName'])?this['_diffRoots']['get'](_0x86c96b['rootName'])['_isAttached']=_0x86c96b['isAdd']:(this['_diffRoots']['set'](_0x86c96b['rootName'],N(_0x86c96b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x86c96b['rootName'],{}),_0x54f04e&&this['_idsRoots']['set'](_0x86c96b['rootName'],N(_0x86c96b['rootName'],!0x0)));const _0x1dcd3b=null===_0x86c96b['_authorId']?null:_0x86c96b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x421917=this['_touchedRoots']['get'](_0x86c96b['rootName']);_0x421917&&_0x421917['userId']===_0x1dcd3b?this['_touchedRoots']['delete'](_0x86c96b['rootName']):this['_touchedRoots']['set'](_0x86c96b['rootName'],{'userId':_0x1dcd3b,'isAttached':_0x86c96b['isAdd']});}['_handleRootAttributeOperation'](_0x424b0d){const _0x246638=this['_diffRootsAttributes']['get'](_0x424b0d['root']['rootName']);null===_0x424b0d['newValue']?delete _0x246638[_0x424b0d['key']]:_0x246638[_0x424b0d['key']]=_0x424b0d['newValue'];}}function x(_0xf5b30d){const _0xb9d20c=N(_0xf5b30d['rootName'],_0xf5b30d['isAttached']());for(const _0x3cba62 of _0xf5b30d['getChildren']()){const _0x2693aa=_0x3cba62['_clone'](!0x0);_0xb9d20c['_appendChild'](_0x2693aa);}return _0xb9d20c;}function N(_0x31a93a,_0x4ed15b=!0x0){const _0x4f3ac7=new _0x451b26();return _0x4f3ac7['rootName']=_0x31a93a,_0x4f3ac7['_isAttached']=_0x4ed15b,_0x4f3ac7['isAttached']=()=>_0x4f3ac7['_isAttached'],_0x4f3ac7;}function P(_0x5b7e49,_0x2c5727,_0x118b2e){const _0x58c12a='elementEnd'==_0x5b7e49['type']?_0x118b2e['createPositionAt'](_0x5b7e49['item'],'end'):_0x118b2e['createPositionBefore'](_0x5b7e49['item']);return _0x118b2e['createPositionFromPath'](_0x2c5727,_0x58c12a['path'],_0x58c12a['stickiness']);}function V(_0x306604,_0x1e0393,_0x21ebf0){const _0x542263='elementStart'==_0x306604['type']?_0x21ebf0['createPositionAt'](_0x306604['item'],0x0):_0x21ebf0['createPositionAfter'](_0x306604['item']);return _0x21ebf0['createPositionFromPath'](_0x1e0393,_0x542263['path'],_0x542263['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x318d59(_0x14bc2f){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x350bbb,_0x493b18){super(_0x350bbb),this['focusTracker']=new _0x26f73d(),this['keystrokes']=new _0x3a8c7b(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x493b18),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'](),_0x525df1({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x295808=_0x4916a0=>_0x4916a0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x295808),this['keystrokes']['set']('arrowleft',_0x295808),this['keystrokes']['set']('arrowup',_0x295808),this['keystrokes']['set']('arrowdown',_0x295808);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2b3cbe){this['revisionNameInputView']['fieldView']['element']['value']=_0x2b3cbe['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x224e0b){const _0x1f9b69=new ti(this['locale'],_0x8e7e4f),_0x34a7e5=_0x1f9b69['fieldView'];_0x34a7e5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5416e7=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x224e0b&&(_0x5416e7+='\x20('+m(this['locale'],'optional')+')'),(_0x1f9b69['label']=_0x5416e7,_0x34a7e5['on']('input',()=>{this['revisionNameInputValue']=_0x34a7e5['element']['value']['trim']();}),_0x1f9b69);}}class l extends _0x2182b9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x27567e=this['editor'],_0x11614c=_0x27567e['plugins']['get']('RevisionTracker');_0x27567e['ui']['componentFactory']['add']('revisionHistory',_0x58b78d=>{const _0x40c1b9=_0x25a564(_0x58b78d),_0x2c6d54=_0x40c1b9['panelView']['children'],_0x17be68=new _0x24a0ed(_0x58b78d),_0x150216=new _0x4cdef9(_0x58b78d),_0x130fef=new _0x534191(_0x58b78d),_0x47a6ed=new _0x4cdef9(_0x58b78d),_0x437b14=new _0x534191(_0x58b78d);return _0x40c1b9['bind']('isEnabled')['to'](_0x11614c,'isReady',_0x11614c,'isEnabled',_0x27567e,'isReadOnly',(_0x363e5a,_0x13cddd,_0x4a62b8)=>_0x363e5a&&_0x13cddd&&!_0x4a62b8),_0x40c1b9['buttonView']['set']({'icon':_0x1377de,'label':m(_0x58b78d,'Revision\x20history'),'tooltip':!0x0}),_0x130fef['set']({'label':m(_0x58b78d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x130fef['bind']('isEnabled')['to'](_0x11614c,'isReady',_0x11614c,'isEnabled',_0x27567e,'isReadOnly',(_0x3e2c8c,_0x2dba88,_0x25b2e2)=>_0x3e2c8c&&_0x2dba88&&!_0x25b2e2),_0x130fef['on']('execute',()=>this['_showDialog']()),_0x437b14['set']({'label':m(_0x58b78d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x437b14['bind']('isEnabled')['to'](_0x11614c,'isReady',_0x27567e,'isReadOnly',(_0x7f76cc,_0x2a2736)=>_0x7f76cc&&!_0x2a2736),_0x437b14['on']('execute',()=>{_0x27567e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x40c1b9['isOpen']=!0x1,_0x27567e['editing']['view']['focus']();}),_0x150216['children']['add'](_0x130fef),_0x47a6ed['children']['add'](_0x437b14),_0x17be68['role']='menu',_0x17be68['items']['addMany']([_0x150216,_0x47a6ed]),_0x2c6d54['add'](_0x17be68),_0x40c1b9;}),_0x27567e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x579b52=this['editor'],_0x51810d=_0x579b52['locale'],_0x46bc33=new _0x514422(_0x51810d),_0x188a7b=new _0x111e3c(_0x51810d);_0x46bc33['buttonView']['set']({'icon':_0x1377de,'label':m(_0x51810d,'Revision\x20history')});const _0x243113=new _0x32e68f(_0x51810d,_0x46bc33),_0x3c259e=new _0x7f5db(_0x51810d);_0x3c259e['set']({'label':m(_0x51810d,'Save\x20current\x20revision')}),_0x3c259e['delegate']('execute')['to'](_0x46bc33),_0x3c259e['on']('execute',()=>{this['_showDialog']();}),_0x243113['children']['add'](_0x3c259e),_0x188a7b['items']['add'](_0x243113);const _0x1dda34=new _0x32e68f(_0x51810d,_0x46bc33),_0x4f19ce=new _0x7f5db(_0x51810d);return _0x4f19ce['set']({'label':m(_0x51810d,'Open\x20revision\x20history')}),_0x4f19ce['delegate']('execute')['to'](_0x46bc33),_0x4f19ce['on']('execute',()=>{_0x579b52['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1dda34['children']['add'](_0x4f19ce),_0x188a7b['items']['add'](_0x1dda34),_0x46bc33['panelView']['children']['add'](_0x188a7b),_0x46bc33;}['_showDialog'](){const _0x525075=this['editor'],_0x4f2af6=_0x525075['locale'],_0x1c271c=_0x525075['plugins']['get']('Dialog'),_0xe90b4b=_0x525075['plugins']['get']('RevisionTracker');function _0x2f0a3f(_0x2378f0){_0x525075['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2378f0['revisionName']?_0x2378f0['revisionNameInputView']['errorText']=m(_0x4f2af6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x525075['plugins']['get'](h)['saveRevision']({'name':_0x2378f0['revisionName']}),_0x1c271c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2f0a3f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1c271c['show']({'id':'revisionSave','title':m(_0x4f2af6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x525075['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1c271c['hide']()},{'label':m(_0x525075['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5d086c){_0x5d086c['bind']('isEnabled')['to'](_0xe90b4b,'isReady',_0xe90b4b,'isEnabled',_0x525075,'isReadOnly',(_0x1a8c5e,_0x4dd02a,_0x57057e)=>_0x1a8c5e&&_0x4dd02a&&!_0x57057e);},'onExecute':()=>_0x2f0a3f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x284b0b=this['editor'],_0x37a35a=_0x284b0b['locale'];this['_saveRevisionFormView']=new he(_0x37a35a,_0x284b0b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x14bc2f{['changeId'];['_model'];constructor(_0x1bc711,_0x27e096){super(_0x1bc711),this['_model']=_0x27e096,this['changeId']=_0x27e096['id'];const _0x83ba28=this['bindTemplate'],_0x15fc05=m(_0x1bc711,_0x27e096['data']['isSuggestion']?'Suggested\x20by':'add'==_0x27e096['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x27e096['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x83ba28['to']('type',_0x476e66=>'ck-revision-change__'+_0x476e66)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x15fc05}]},{'text':'\x20'+_0x27e096['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x390267(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x264e9d){super(),this['id']=_0x264e9d['id']||_0x3ca1e2(),this['author']=_0x264e9d['author'],this['type']=_0x264e9d['type'],this['data']=_0x264e9d['data']||{},this['rootName']=_0x264e9d['rootName'],this['set']('createdAt',_0x264e9d['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(_0x9b9280,_0x254040){this['newRevisionId']=_0x9b9280,this['oldRevisionId']=_0x254040,this['changes']=new _0x401ff4();}['_setChanges'](_0x2f3dcc){for(const _0x3bd8a5 of _0x2f3dcc)this['changes']['add'](_0x3bd8a5);}}class u extends _0x2182b9{['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[_0x491e76,_0x5c9009,S,$];}constructor(_0x775e98){super(_0x775e98),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',(_0x2e7db1,_0x12bc9e,_0x15688a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x255781=>{for(const _0x19d4eb of this['editor']['editing']['view']['document']['roots'])_0x15688a?_0x255781['removeClass']('ck-editor__editable__overlay',_0x19d4eb):_0x255781['addClass']('ck-editor__editable__overlay',_0x19d4eb);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x489b37=>null!==_0x489b37),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x27c50d,_0x16ab28,_0x184b38)=>_0x27c50d&&_0x184b38?_0x16ab28['changes']['getIndex'](_0x184b38):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5f2774,_0x175340)=>_0x5f2774?_0x175340['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x5c9009);}['init'](){const _0x3a9f27=this['editor'],_0x1dc8a0=new ot(_0x3a9f27,{'direction':'backward'}),_0x12d5fd=new ot(_0x3a9f27,{'direction':'forward'});(_0x3a9f27['commands']['add']('showPreviousChange',_0x1dc8a0),_0x3a9f27['commands']['add']('showNextChange',_0x12d5fd),_0x3a9f27['commands']['add']('restoreRevision',new nt(_0x3a9f27)),this['on']('change:numberOfChanges',()=>{_0x1dc8a0['refresh'](),_0x12d5fd['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3a9f27['enableReadOnlyMode']('revision-viewer'),_0x3a9f27['plugins']['has']('WidgetToolbarRepository'))&&_0x3a9f27['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1ba1d3){return await this['_utils']['loadRevisionData'](_0x1ba1d3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1ba1d3);}async['getRevisionRootsAttributes'](_0x465bda){return await this['_utils']['loadRevisionData'](_0x465bda,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x465bda);}async['compare'](_0x1c5dc0,_0x2e8532,_0x580b64=!0x1){if(!this['isEnabled'])return;const _0x406940=this['diff'],_0x438ecb=this['repository'],_0x5928dc='string'==typeof _0x1c5dc0?_0x438ecb['getRevision'](_0x1c5dc0):_0x1c5dc0,_0x119d80='string'==typeof _0x2e8532?_0x438ecb['getRevision'](_0x2e8532):_0x2e8532,_0xfda1d1=_0x5928dc['id'],_0x1c4919=_0x119d80?_0x119d80['id']:null;if(!_0x580b64&&this['diff']&&this['diff']['newRevisionId']===_0xfda1d1&&this['diff']['oldRevisionId']===_0x1c4919)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0xfda1d1,_0x1c4919);const _0x51b3a6=this['_getRevisionsRange'](_0x5928dc,_0x119d80,!0x0)['map'](_0x26007f=>this['_utils']['loadRevisionData'](_0x26007f,this['adapter']));return _0x51b3a6['push'](new Promise(_0x1ac016=>{setTimeout(_0x1ac016,0x14);})),Promise['all'](_0x51b3a6)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4711ca=this['_getDiff'](_0xfda1d1,_0x1c4919);for(const _0x1e30f7 of _0x4711ca['changes'])this['_changeIdToChange']['set'](_0x1e30f7['id'],_0x1e30f7);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1d967f=>{for(const _0x5dd2d0 of this['editor']['model']['document']['getRootNames']())_0x1d967f['detachRoot'](_0x5dd2d0);for(const _0x5d09c8 of Object['keys'](_0x4711ca['model'])){const _0x356dba=_0x1d967f['addRoot'](_0x5d09c8);for(const _0x42f678 of Object['keys'](_0x4711ca['attributes'][_0x5d09c8]))_0x1d967f['setAttribute'](_0x42f678,_0x4711ca['attributes'][_0x5d09c8][_0x42f678],_0x356dba);_0x1d967f['insert'](_0x4711ca['model'][_0x5d09c8],_0x356dba,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4711ca['changes'])),this['isReady']=!0x0;})['catch'](_0x80f5b9=>{console['error'](_0x80f5b9),this['_cleanUp'](),_0x406940&&(this['diff']=_0x406940),this['isReady']=!0x0;});}['addRevisionData'](_0x55873d,_0x47ac12){const _0x5da7b6=this['repository']['createRevision'](_0x55873d);return _0x5da7b6['on']('_update',(_0x228544,_0x211cc5,_0x2b16cf)=>_0x47ac12(_0x211cc5,_0x2b16cf,_0x5da7b6)),this['repository']['addRevision'](_0x5da7b6),_0x5da7b6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3dde53=>{for(const _0x491e04 of this['editor']['model']['document']['getRootNames']())_0x3dde53['detachRoot'](_0x491e04);});}['_sortAndFilterDiffChanges'](_0x1f9a65){const _0x580e5b=[],_0x17381a=new Map();for(const _0x211531 of this['editor']['model']['document']['getRootNames']()){const _0x5b1273=this['editor']['editing']['view']['getDomRoot'](_0x211531);if(!_0x5b1273)continue;const _0x58ad62=_0x5b1273['getClientRects']()['item'](0x0);_0x58ad62&&(_0x580e5b['push'](_0x211531),_0x17381a['set'](_0x211531,_0x58ad62));}return _0x580e5b['sort']((_0x3f061b,_0xb86763)=>{const _0x52a7dd=_0x17381a['get'](_0x3f061b),_0x984bb3=_0x17381a['get'](_0xb86763);return _0x52a7dd['y']-_0x984bb3['y']||_0x52a7dd['x']-_0x984bb3['x'];}),(_0x1f9a65=_0x1f9a65['filter'](_0x444f08=>_0x580e5b['includes'](_0x444f08['rootName'])))['sort']((_0x233747,_0xaa3c6a)=>_0x580e5b['indexOf'](_0x233747['rootName'])-_0x580e5b['indexOf'](_0xaa3c6a['rootName'])),_0x1f9a65;}['_makeTape'](_0x595192){const _0x25d5b1=Array['from'](_0x595192['markers'])['filter'](([_0xf309f8,_0x71fc6a])=>_0xf309f8['startsWith']('revision:')&&!_0x71fc6a['isCollapsed']),_0x3b5fd6=Array['from'](this['editor']['model']['createRangeIn'](_0x595192)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x25d5b1['length'])for(const _0x5a1bc9 of _0x3b5fd6){const [_0x40f60,_0x532b58]=_0x25d5b1[0x0],[,_0x3a1c6c,_0xff658c]=_0x40f60['split'](':');if(_0x532b58['end']['isEqual'](_0x5a1bc9['nextPosition'])&&_0x25d5b1['shift'](),(_0x5a1bc9['previousPosition']['isEqual'](_0x532b58['start'])||_0x5a1bc9['previousPosition']['isAfter'](_0x532b58['start']))&&('insertion'==_0x3a1c6c?_0x5a1bc9['isAdded']={'userId':_0xff658c}:'deletion'==_0x3a1c6c&&(_0x5a1bc9['isRemoved']={'userId':_0xff658c})),0x0==_0x25d5b1['length'])break;}return _0x3b5fd6;}['_refreshStartEndIndex'](_0x51f551){const _0x1d8d47=new Map();for(let _0x802457=0x0;_0x802457<_0x51f551['length'];_0x802457++)'text'===_0x51f551[_0x802457]['type']?(_0x51f551[_0x802457]['item']['startIndex']=_0x802457,_0x51f551[_0x802457]['item']['endIndex']=_0x802457):('elementStart'===_0x51f551[_0x802457]['type']?_0x51f551[_0x802457]['item']['startIndex']=_0x802457:'elementEnd'===_0x51f551[_0x802457]['type']&&(_0x51f551[_0x802457]['item']['endIndex']=_0x802457),_0x1d8d47['set'](_0x51f551[_0x802457]['id'],_0x802457));for(const _0x257bc6 of _0x1d8d47['values']())'elementStart'===_0x51f551[_0x257bc6]['type']?_0x51f551[_0x257bc6]['item']['endIndex']=_0x1d8d47['get'](_0x51f551[_0x257bc6]['pairId']):'elementEnd'===_0x51f551[_0x257bc6]['type']&&(_0x51f551[_0x257bc6]['item']['startIndex']=_0x1d8d47['get'](_0x51f551[_0x257bc6]['pairId']));}['_processTape'](_0x245bc5){for(let _0x339520=0x0;_0x339520<_0x245bc5['length'];_0x339520++){if('elementStart'===_0x245bc5[_0x339520]['type'])_0x245bc5[_0x339520]['item']['startIndex']=_0x339520;else{if('elementEnd'===_0x245bc5[_0x339520]['type']){_0x245bc5[_0x339520]['item']['endIndex']=_0x339520;const _0x13a5db=_0x245bc5[_0x339520]['item']['startIndex'];_0x245bc5[_0x13a5db]['pairId']=_0x245bc5[_0x339520]['id'],_0x245bc5[_0x339520]['pairId']=_0x245bc5[_0x13a5db]['id'];}else _0x245bc5[_0x339520]['item']['startIndex']=_0x339520,_0x245bc5[_0x339520]['item']['endIndex']=_0x339520,_0x245bc5[_0x339520]['pairId']=null;}_0x245bc5[_0x339520]['markersStart']||(_0x245bc5[_0x339520]['markersStart']=[],_0x245bc5[_0x339520]['markersEnd']=[]);}}['_markInsertions'](_0x2ef22b,_0x5d8335){const _0x4e4d74=_0x2ef22b['filter'](_0x3e5a8a=>!_0x3e5a8a['isAdded']);for(let _0x36384d=0x0;_0x36384d<_0x5d8335['length'];_0x36384d++)_0x5d8335[_0x36384d]['isAdded']&&(_0x4e4d74[_0x36384d]['isAdded']=_0x5d8335[_0x36384d]['isAdded']);}['_getDiff'](_0x2f3d66,_0x4c6c67=null){const _0x237a3e=this['repository']['getRevision'](_0x2f3d66),_0x318651=_0x4c6c67?this['repository']['getRevision'](_0x4c6c67):null,_0x215be9=this['_getRevisionsRange'](_0x237a3e,_0x318651),_0x445f66=_0x215be9[_0x215be9['length']-0x1],_0x30cbd8=new Map(),_0x2fe8e6={'model':{},'attributes':{},'changes':[]},_0x2a954a=new Set(),_0xfcf78=new Map();for(let _0x2a89c7=_0x215be9['length']-0x1;_0x2a89c7>=0x0;_0x2a89c7--){const _0x427322=_0x215be9[_0x2a89c7];for(const _0x3f9ee0 of Object['keys'](_0x427322['diffData']))if(_0x427322['diffData'][_0x3f9ee0]['attachChange']){const _0x5ac175=_0x427322['diffData'][_0x3f9ee0]['attachChange'];_0x5ac175['isAttached']?(_0x2a954a['add'](_0x3f9ee0),_0xfcf78['has'](_0x3f9ee0)&&_0xfcf78['get'](_0x3f9ee0)['userId']==_0x5ac175['userId']?_0xfcf78['delete'](_0x3f9ee0):_0xfcf78['set'](_0x3f9ee0,_0x5ac175)):_0xfcf78['has'](_0x3f9ee0)?(_0x2a954a['delete'](_0x3f9ee0),_0xfcf78['delete'](_0x3f9ee0)):(_0x2a954a['add'](_0x3f9ee0),_0xfcf78['set'](_0x3f9ee0,_0x5ac175));}else _0x2a954a['add'](_0x3f9ee0);}for(const _0x3d8bb3 of _0x2a954a){const _0x4e7c3a=_0xfcf78['has'](_0x3d8bb3)&&!_0xfcf78['get'](_0x3d8bb3)['isAttached'];let _0x325d40=_0x4e7c3a?_0x215be9['length']-0x1:0x0;const _0x49a2bd=_0x4e7c3a?-0x1:0x1;for(;_0x215be9[_0x325d40];){const _0x3c3808=_0x215be9[_0x325d40];if(_0x3c3808['diffData'][_0x3d8bb3]){const _0xd8e916=_0x4e7c3a?_0x3c3808['diffData'][_0x3d8bb3]['attributesBefore']:_0x3c3808['diffData'][_0x3d8bb3]['attributesAfter'];_0x2fe8e6['attributes'][_0x3d8bb3]=_0xd8e916?_0x4f8a27(_0xd8e916):{};break;}_0x325d40+=_0x49a2bd;}}for(const _0xb357c9 of _0x215be9){_0xb357c9['model']={};for(const _0x335907 of _0xb357c9['authors'])_0x30cbd8['set'](_0x335907['id'],_0x335907);for(const _0x5c7914 of _0x2a954a){const _0x4ff73f=_0xb357c9['diffData'][_0x5c7914]?_0xb357c9['diffData'][_0x5c7914]['insertions']:'[]',_0x318b3d=_0xb357c9['diffData'][_0x5c7914]?_0xb357c9['diffData'][_0x5c7914]['deletions']:'[]';_0xb357c9['model'][_0x5c7914]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4ff73f),'deletions':this['_utils']['_makeModelFromViewString'](_0x318b3d)};}}for(const _0x2a7d99 of _0x2a954a){let _0x114b6d=null,_0x352b68=0x0;const _0x8d745e=new Map(Array['from'](_0x237a3e['model'][_0x2a7d99]['insertions']['markers'])['filter'](([_0xf47235])=>!_0xf47235['startsWith']('revision:')));let _0x4c5dd7=0x0;for(const _0x4cdbe2 of _0x215be9){const _0x5d6bb7=this['_makeTape'](_0x4cdbe2['model'][_0x2a7d99]['insertions']);_0x4cdbe2==_0x237a3e?(_0x114b6d=_0x5d6bb7,_0x352b68=_0x114b6d['length'],_0x114b6d['forEach'](_0x498f67=>{_0x498f67['id']=_0x4c5dd7++;}),this['_processTape'](_0x114b6d)):this['_markInsertions'](_0x114b6d,_0x5d6bb7);const _0x1947e4=_0x114b6d['filter'](_0xabb061=>!_0xabb061['isAdded'])['map'](_0x379aff=>_0x379aff['id']);let _0x1444cc=0x0;const _0x5f2ae6=this['_makeTape'](_0x4cdbe2['model'][_0x2a7d99]['deletions']);_0x5f2ae6['forEach'](_0x1a06d4=>{_0x1a06d4['isRemoved']?_0x1a06d4['id']=_0x352b68++:_0x1a06d4['id']=_0x1947e4[_0x1444cc++];}),this['_processTape'](_0x5f2ae6),this['_setDistance'](_0x114b6d,'isAdded'),this['_setDistance'](_0x5f2ae6,'isRemoved'),_0x4cdbe2==_0x237a3e&&this['_markMarkers'](_0x114b6d,_0x8d745e),_0x114b6d=this['_joinTapes'](_0x114b6d,_0x5f2ae6),this['_refreshStartEndIndex'](_0x114b6d),this['_setDistance'](_0x114b6d,'isRemoved');}_0x114b6d=_0x114b6d['filter'](_0x324d80=>!(_0x324d80['isAdded']&&_0x324d80['isRemoved']));const _0x1fc437=new Map(_0x445f66['model'][_0x2a7d99]['deletions']['markers']),_0x3950d0=new Set(_0x8d745e['keys']());for(const _0x74deab of _0x1fc437['keys']())_0x3950d0['delete'](_0x74deab);this['_markSuggestions'](_0x114b6d,_0x3950d0),this['_fixObsoleteTags'](_0x114b6d),_0x114b6d=this['_removeMissingPairs'](_0x114b6d),_0x114b6d=this['_markMismatchedRemovedTags'](_0x114b6d),_0x114b6d=this['_removeUnsupportedChanges'](_0x114b6d);const {root:_0x1d3984,changes:_0x1d6f67}=this['_makeModelFromTape'](_0x114b6d,_0x30cbd8,_0x2a7d99);_0x2fe8e6['model'][_0x2a7d99]=_0x1d3984;const _0x4638e9=_0xfcf78['get'](_0x2a7d99);if(_0x4638e9){const _0x3c0f2e=_0x30cbd8['get'](_0x4638e9['userId']),_0x508a0a=new G({'author':_0x3c0f2e,'type':_0x4638e9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2a7d99});_0x1d6f67['unshift'](_0x508a0a),_0x2fe8e6['attributes'][_0x2a7d99]['revisionHistoryAttachChange']=_0x508a0a['id'];}_0x2fe8e6['changes']=_0x2fe8e6['changes']['concat'](_0x1d6f67);}return _0x2fe8e6;}['_markMarkers'](_0x42410e,_0x76187c){for(let _0x193ecd=0x0;_0x193ecd<_0x42410e['length'];_0x193ecd++)for(const [_0x14e8fe,_0x149d30]of _0x76187c)!_0x149d30['isCollapsed']&&_0x149d30['start']['isEqual'](_0x42410e[_0x193ecd]['previousPosition'])&&_0x42410e[_0x193ecd]['markersStart']['push'](_0x14e8fe),_0x149d30['end']['isEqual'](_0x42410e[_0x193ecd]['nextPosition'])&&_0x42410e[_0x193ecd]['markersEnd']['push'](_0x14e8fe);}['_joinTapes'](_0xa52a37,_0x343301){let _0x7357b4=[],_0x581738=0x0,_0xd39ea5=0x0;for(;_0x581738<_0xa52a37['length']||_0xd39ea5<_0x343301['length'];){const _0x5a72db=_0xa52a37[_0x581738]||{},_0x33ad54=_0x343301[_0xd39ea5]||{};if(_0x5a72db['id']==_0x33ad54['id'])_0x581738++,_0xd39ea5++,_0x7357b4['push'](_0x5a72db);else{if(_0x33ad54['isRemoved']&&_0x5a72db['isAdded']){const {commonTape:_0x2491be,iEnd:_0xe3aeda,jEnd:_0x33a16b}=this['_threeWayMerge'](_0xa52a37,_0x581738,_0x343301,_0xd39ea5);_0x7357b4=_0x7357b4['concat'](_0x2491be),_0x581738=_0xe3aeda,_0xd39ea5=_0x33a16b;}else _0x33ad54['isRemoved']?(_0xd39ea5++,_0x7357b4['push'](_0x33ad54)):(_0x581738++,_0x7357b4['push'](_0x5a72db));}}return _0x7357b4;}['_markSuggestions'](_0x182ef3,_0x52e207){const _0x44604f=[];for(let _0x268e4f=0x0;_0x268e4f<_0x182ef3['length'];_0x268e4f++){for(let _0x5bc794=0x0;_0x5bc794<_0x182ef3[_0x268e4f]['markersStart']['length'];_0x5bc794++){const _0x53ca85=_0x182ef3[_0x268e4f]['markersStart'][_0x5bc794];if(!_0x52e207['has'](_0x53ca85))continue;const {group:_0x55eaa8,type:_0x510332,authorId:_0x12032d}=_0x57b156(_0x53ca85);'revision-suggestion'!=_0x55eaa8||'insertion'!=_0x510332&&'deletion'!=_0x510332||(_0x44604f['unshift']({'type':_0x510332,'name':_0x53ca85,'userId':_0x12032d}),_0x182ef3[_0x268e4f]['markersStart']['splice'](_0x5bc794,0x1),_0x5bc794--);}_0xb328eb(_0x182ef3[_0x268e4f]);for(let _0x2dba05=0x0;_0x2dba05<_0x182ef3[_0x268e4f]['markersEnd']['length'];_0x2dba05++){const _0x18e2b0=_0x182ef3[_0x268e4f]['markersEnd'][_0x2dba05];if(!_0x52e207['has'](_0x18e2b0))continue;const {group:_0x27ea21,type:_0x5137d9}=_0x57b156(_0x18e2b0);if('revision-suggestion'!=_0x27ea21||'insertion'!=_0x5137d9&&'deletion'!=_0x5137d9)continue;_0x182ef3[_0x268e4f]['markersEnd']['splice'](_0x2dba05,0x1),_0x2dba05--;const _0x2463e4=_0x44604f['findIndex'](_0x2866da=>_0x2866da['name']==_0x18e2b0);_0x2463e4>-0x1&&_0x44604f['splice'](_0x2463e4,0x1);}}function _0x57b156(_0x47cd55){const _0x465dd2=_0x47cd55['split'](':');return{'group':_0x465dd2[0x0],'type':_0x465dd2[0x1],'subType':_0x465dd2['length']>=0x5?_0x465dd2[0x2]:null,'id':_0x465dd2['length']<0x5?_0x465dd2[0x2]:_0x465dd2[0x3],'authorId':_0x465dd2['length']<0x5?_0x465dd2[0x3]:_0x465dd2[0x4],'markerCount':0x6==_0x465dd2['length']?_0x465dd2[0x5]:null};}function _0xb328eb(_0x1223d2){for(let _0x37c994=0x0;_0x37c994<_0x44604f['length'];_0x37c994++){if(_0x1223d2['isAdded']&&'insertion'==_0x44604f[_0x37c994]['type']&&_0x1223d2['isAdded']['userId']==_0x44604f[_0x37c994]['userId'])return _0x1223d2['isAddSuggestion']=_0x44604f[_0x37c994],void delete _0x1223d2['isAdded'];if(!_0x1223d2['isAdded']&&!_0x1223d2['isRemoved']&&'deletion'==_0x44604f[_0x37c994]['type'])return void(_0x1223d2['isRemoveSuggestion']=_0x44604f[_0x37c994]);}}}['_setDistance'](_0x3c855e,_0x3dc44a){let _0x9d5e48=0x0,_0x2926d0=!0x1;const _0xfe8878=new Map();for(const _0x40101c of _0x3c855e)_0x40101c[_0x3dc44a]?_0x2926d0&&(_0x9d5e48++,_0x2926d0=!0x1):(_0x9d5e48++,_0x2926d0=!0x0),_0xfe8878['set'](_0x40101c['id'],_0x9d5e48);for(let _0x909f0a=0x0;_0x909f0a<_0x3c855e['length'];_0x909f0a++){if('isRemoved'==_0x3dc44a&&_0x3c855e[_0x909f0a]['isAdded']||'isAdded'==_0x3dc44a&&_0x3c855e[_0x909f0a]['isRemoved'])continue;if('text'==_0x3c855e[_0x909f0a]['type']){_0x3c855e[_0x909f0a]['distance']=0x0;continue;}const _0x3a4312=_0xfe8878['get'](_0x3c855e[_0x909f0a]['pairId']),_0x1ff092=_0xfe8878['get'](_0x3c855e[_0x909f0a]['id']);_0x3c855e[_0x909f0a]['distance']=_0x3a4312-_0x1ff092;}}['_getRevisionsRange'](_0x529e00,_0x3092fa,_0x2fd84a=!0x1){const _0x1bf23f=[];let _0x53cebe=this['repository']['getIndex'](_0x529e00),_0x2c7be8=this['repository']['getIndex'](_0x3092fa);for(-0x1==_0x2c7be8&&(_0x2c7be8=this['repository']['_revisions']['length'],_0x2fd84a=!0x1);_0x53cebe<_0x2c7be8;)_0x1bf23f['push'](this['repository']['getRevision'](_0x53cebe)),_0x53cebe++;return _0x2fd84a&&_0x1bf23f['push'](this['repository']['getRevision'](_0x53cebe)),_0x1bf23f;}['_threeWayMerge'](_0x3ae8ef,_0x3c353b,_0x27a8a6,_0x3dd157){const _0x4f5bd1=this['editor']['model']['schema'];let _0x596765=_0x3c353b;for(;_0x3ae8ef[_0x596765]&&_0x3ae8ef[_0x596765]['isAdded'];)_0x596765++;let _0x39ce64=_0x3dd157;for(;_0x27a8a6[_0x39ce64]&&_0x27a8a6[_0x39ce64]['isRemoved'];)_0x39ce64++;_0xc400a(_0x3ae8ef,_0x3c353b,_0x596765),_0xc400a(_0x27a8a6,_0x3dd157,_0x39ce64);const _0x4916a7=_0x27a8a6['slice'](_0x3dd157,_0x39ce64)['concat'](_0x3ae8ef['slice'](_0x3c353b,_0x596765));return _0x4916a7['sort']((_0x4279b9,_0x21d254)=>_0x4279b9['side']!=_0x21d254['side']?_0x4279b9['side']-_0x21d254['side']:_0x4279b9['level']!=_0x21d254['level']?_0x4279b9['level']-_0x21d254['level']:_0x4279b9['distance']!=_0x21d254['distance']?_0x21d254['distance']-_0x4279b9['distance']:!!_0x4279b9['isAdded']!=!!_0x21d254['isAdded']?-0x1==_0x4279b9['side']||0x0==_0x4279b9['side']?_0x4279b9['isAdded']?-0x1:0x1:_0x4279b9['isAdded']?0x1:-0x1:_0x4279b9['index']-_0x21d254['index']),{'commonTape':_0x4916a7,'iEnd':_0x596765,'jEnd':_0x39ce64};function _0xc400a(_0x20f157,_0x173a68,_0x349da3){let _0x277120=-0x1,_0x47aaa4=Number['POSITIVE_INFINITY'],_0x1edcfe=!0x0;for(let _0x37d69e=_0x173a68;_0x37d69e<_0x349da3;_0x37d69e++)if(_0x4f5bd1['isInline'](_0x20f157[_0x37d69e]['item'])||(_0x1edcfe=!0x1),_0x20f157[_0x37d69e]['item']['startIndex']<_0x173a68&&(_0x277120=_0x37d69e),_0x20f157[_0x37d69e]['item']['endIndex']>=_0x349da3){_0x47aaa4=_0x37d69e;break;}_0x1edcfe&&(_0x277120=_0x349da3-0x1);for(let _0x4abac5=_0x173a68;_0x4abac5<_0x349da3;_0x4abac5++)_0x20f157[_0x4abac5]['side']=_0x4abac5<=_0x277120?-0x1:_0x4abac5<_0x47aaa4?0x0:0x1,_0x20f157[_0x4abac5]['index']=_0x4abac5;let _0x1f3777=0x0;for(let _0x427775=_0x173a68;_0x427775<=_0x277120;_0x427775++)0x0==_0x20f157[_0x427775]['distance']?_0x20f157[_0x427775]['level']=_0x1f3777:(_0x1f3777++,_0x20f157[_0x427775]['level']=_0x1f3777,_0x1f3777++);for(let _0x109996=_0x173a68;_0x109996<_0x349da3;_0x109996++)0x0==_0x20f157[_0x109996]['side']&&(_0x20f157[_0x109996]['level']=_0x1f3777);_0x1f3777=0x0;for(let _0x418adc=_0x349da3-0x1;_0x418adc>=_0x47aaa4;_0x418adc--)0x0==_0x20f157[_0x418adc]['distance']?_0x20f157[_0x418adc]['level']=_0x1f3777:(_0x1f3777--,_0x20f157[_0x418adc]['level']=_0x1f3777,_0x1f3777--);}}['_fixObsoleteTags'](_0x4dc1c0){const _0x5f40f3=new Map(),_0x3446d8=this['editor']['model']['schema'];for(let _0x38b5ca=0x1;_0x38b5ca<_0x4dc1c0['length'];_0x38b5ca++){let _0x3b6d68,_0x182056,_0x32169d;const _0x1a5dc6=_0x4dc1c0[_0x38b5ca],_0x2248d6=_0x4dc1c0[_0x38b5ca-0x1];if('text'==_0x1a5dc6['type'])continue;if(_0x1a5dc6['type']!=_0x2248d6['type'])continue;if(!_0x3446d8['isBlock'](_0x2248d6['item'])||_0x3446d8['isLimit'](_0x2248d6['item']))continue;if(!_0x3446d8['isBlock'](_0x1a5dc6['item'])||_0x3446d8['isLimit'](_0x1a5dc6['item']))continue;if((_0x4dc1c0[_0x38b5ca]['isAdded']||_0x4dc1c0[_0x38b5ca]['isAddSuggestion'])&&_0x4dc1c0[_0x38b5ca-0x1]['isRemoved'])_0x3b6d68=_0x4dc1c0[_0x38b5ca],_0x182056=_0x4dc1c0[_0x38b5ca-0x1],_0x32169d=_0x38b5ca-0x1;else{if(!_0x4dc1c0[_0x38b5ca]['isRemoved']||!_0x4dc1c0[_0x38b5ca-0x1]['isAdded']&&!_0x4dc1c0[_0x38b5ca-0x1]['isAddSuggestion'])continue;_0x3b6d68=_0x4dc1c0[_0x38b5ca-0x1],_0x182056=_0x4dc1c0[_0x38b5ca],_0x32169d=_0x38b5ca;}const _0x38997e=_0x3b6d68['level']==_0x182056['level'],_0x300c66=Math['abs'](_0x3b6d68['level'])<Math['abs'](_0x182056['level'])&&0x0==_0x182056['distance'];(_0x38997e||_0x300c66)&&(_0x5f40f3['set'](_0x182056['id'],_0x3b6d68['id']),_0x4dc1c0['splice'](_0x32169d,0x1),_0x38b5ca--,_0x3b6d68['isAdded']=!0x1);}for(let _0x236790=0x0;_0x236790<_0x4dc1c0['length'];_0x236790++)_0x5f40f3['has'](_0x4dc1c0[_0x236790]['pairId'])&&(_0x4dc1c0[_0x236790]['pairId']=_0x5f40f3['get'](_0x4dc1c0[_0x236790]['pairId']));}['_removeMissingPairs'](_0x2c9734){const _0x43c068=new Set(_0x2c9734['map'](_0x5a72e9=>_0x5a72e9['id']));for(let _0x448624=0x0;_0x448624<_0x2c9734['length'];_0x448624++)_0x43c068['has'](_0x2c9734[_0x448624]['pairId'])||0x0==_0x2c9734[_0x448624]['distance']||(_0x2c9734[_0x448624]['isIncorrect']=!0x0);return _0x2c9734['filter'](_0x5191f3=>!_0x5191f3['isIncorrect']);}['_markMismatchedRemovedTags'](_0x22302e){const _0x52ec39=new Set();for(let _0x4bc086=0x0;_0x4bc086<_0x22302e['length'];_0x4bc086++){if(_0x52ec39['has'](_0x22302e[_0x4bc086]['id'])&&_0x22302e[_0x4bc086]['isRemoved']&&(_0x22302e[_0x4bc086]['isIncorrect']=!0x0),_0x22302e[_0x4bc086]['isIncorrect'])continue;if(0x0==_0x22302e[_0x4bc086]['distance'])continue;if('elementStart'!=_0x22302e[_0x4bc086]['type'])continue;if(null==_0x22302e[_0x4bc086]['pairId'])continue;let _0x306a14=_0x4bc086+0x1,_0x25f11e=0x0;for(;_0x22302e[_0x306a14]['id']!=_0x22302e[_0x4bc086]['pairId'];)'elementStart'==_0x22302e[_0x306a14]['type']?_0x25f11e++:'elementEnd'==_0x22302e[_0x306a14]['type']&&_0x25f11e--,_0x306a14++;if(0x0!=_0x25f11e){if(_0x22302e[_0x4bc086]['isRemoved'])_0x22302e[_0x4bc086]['isIncorrect']=!0x0;else{for(;_0x306a14!=_0x4bc086;)_0x22302e[_0x306a14]['isRemoved']&&0x0!=_0x22302e[_0x306a14]['distance']&&(_0x22302e[_0x306a14]['isIncorrect']=!0x0,_0x52ec39['add'](_0x22302e[_0x306a14]['pairId'])),_0x306a14--;}}}return _0x22302e['filter'](_0x53f21d=>!_0x53f21d['isIncorrect']);}['_removeUnsupportedChanges'](_0x845783){const _0xc7dba7=this['editor']['model']['schema'];for(let _0x3a2df6=0x0;_0x3a2df6<_0x845783['length'];_0x3a2df6++){if(!(_0x845783[_0x3a2df6]['isAdded']||_0x845783[_0x3a2df6]['isAddSuggestion']||_0x845783[_0x3a2df6]['isRemoved']||_0x845783[_0x3a2df6]['isRemoveSuggestion']))continue;if(0x0==_0x845783[_0x3a2df6]['distance'])continue;const _0x2576d2=_0x845783[_0x3a2df6]['item'];_0xc7dba7['isBlock'](_0x2576d2)||_0xc7dba7['isLimit'](_0x2576d2)||(_0x845783[_0x3a2df6]['isAdded']&&delete _0x845783[_0x3a2df6]['isAdded'],_0x845783[_0x3a2df6]['isAddSuggestion']&&delete _0x845783[_0x3a2df6]['isAddSuggestion'],_0x845783[_0x3a2df6]['isRemoveSuggestion']&&delete _0x845783[_0x3a2df6]['isRemoveSuggestion'],_0x845783[_0x3a2df6]['isRemoved']&&(_0x845783[_0x3a2df6]['isIncorrect']=!0x0));}return _0x845783['filter'](_0x482504=>!_0x482504['isIncorrect']);}['_makeModelFromTape'](_0x4fe463,_0x5abcbf,_0x388cd2){const _0x56fd73=new _0x451b26(),_0x2e225b=[],_0x4f8e78=new Map(),_0x59c5c9=this['editor']['model'],_0xa8da17=_0x59c5c9['schema'],_0x1932bc=[_0x56fd73],_0x593615={},_0x4beaa5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x105784=null;const _0x5cce6b=[0x0];for(let _0x5a6fe9=0x0;_0x5a6fe9<_0x4fe463['length'];_0x5a6fe9++)if('elementStart'===_0x4fe463[_0x5a6fe9]['type']){_0x4fe463[_0x5a6fe9]['previousPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b);const _0x58a860=new _0x47d77c(_0x4fe463[_0x5a6fe9]['item']['name'],_0x4fe463[_0x5a6fe9]['item']['getAttributes']());_0x1932bc[0x0]['_appendChild'](_0x58a860),_0x5cce6b['push'](0x0),_0x1932bc['unshift'](_0x58a860),_0x4fe463[_0x5a6fe9]['nextPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b);}else'elementEnd'===_0x4fe463[_0x5a6fe9]['type']?(_0x1932bc['shift'](),_0x4fe463[_0x5a6fe9]['previousPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b),_0x5cce6b['pop'](),_0x5cce6b[_0x5cce6b['length']-0x1]++,_0x4fe463[_0x5a6fe9]['nextPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b)):(_0x4fe463[_0x5a6fe9]['previousPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b),_0x105784?_0x105784['_data']+=_0x4fe463[_0x5a6fe9]['item']['data']:_0x105784=new _0x5a04d7(_0x4fe463[_0x5a6fe9]['item']['data'],_0x4fe463[_0x5a6fe9]['item']['getAttributes']()),_0x4fe463[_0x5a6fe9+0x1]&&'text'===_0x4fe463[_0x5a6fe9+0x1]['type']&&_0x2f4277(_0x105784,_0x4fe463[_0x5a6fe9+0x1]['item'])||(_0x1932bc[0x0]['_appendChild'](_0x105784),_0x105784=null),_0x5cce6b[_0x5cce6b['length']-0x1]+=_0x4fe463[_0x5a6fe9]['item']['offsetSize'],_0x4fe463[_0x5a6fe9]['nextPosition']=_0x59c5c9['createPositionFromPath'](_0x56fd73,_0x5cce6b));for(let _0x4d1827=0x0;_0x4d1827<_0x4fe463['length'];_0x4d1827++){const _0x4bc170=_0x4fe463[_0x4d1827]['previousPosition'],_0x42aca9=_0x4fe463[_0x4d1827]['nextPosition'];for(const _0x4760db of _0x4fe463[_0x4d1827]['markersStart'])_0x4f8e78['set'](_0x4760db,{'start':_0x4bc170,'end':null});_0x2d7c06('isRemoveSuggestion',_0x4d1827,_0x4bc170,_0x42aca9),_0x2d7c06('isAddSuggestion',_0x4d1827,_0x4bc170,_0x42aca9),_0x2d7c06('isRemoved',_0x4d1827,_0x4bc170,_0x42aca9),_0x2d7c06('isAdded',_0x4d1827,_0x4bc170,_0x42aca9);for(const _0x260ab5 of _0x4fe463[_0x4d1827]['markersEnd']){const _0xff7f16=_0x4f8e78['get'](_0x260ab5);_0xff7f16?_0xff7f16['end']=_0x42aca9:_0x4f8e78['set'](_0x260ab5,{'start':_0x42aca9,'end':_0x42aca9});}}for(const [_0x4b8d0b,_0x9c635b]of _0x4f8e78){const _0x415c60=this['editor']['model']['createRange'](_0x9c635b['start'],_0x9c635b['end']);_0x56fd73['markers']['set'](_0x4b8d0b,_0x415c60);}return _0x2e225b['sort']((_0x36de6a,_0x1a1ec9)=>{const _0x5b18a4=_0x56fd73['markers']['get']('revision:'+_0x36de6a['id']),_0x20f316=_0x56fd73['markers']['get']('revision:'+_0x1a1ec9['id']);return _0x5b18a4['start']['isBefore'](_0x20f316['start'])?-0x1:_0x5b18a4['start']['isAfter'](_0x20f316['start'])?0x1:_0x5b18a4['end']['isBefore'](_0x20f316['end'])?-0x1:_0x5b18a4['end']['isAfter'](_0x20f316['end'])?0x1:'add'===_0x36de6a['type']?-0x1:0x1;}),{'root':_0x56fd73,'changes':_0x2e225b};function _0x2d7c06(_0x22e768,_0x1cb4dd,_0x5989cd,_0x5c6a99){const _0x161ee2=!!_0x4fe463[_0x1cb4dd][_0x22e768],_0x2ac8fd=_0x161ee2?_0x4fe463[_0x1cb4dd][_0x22e768]['userId']:null,_0x57b55a=_0x1cb4dd===_0x4fe463['length']-0x1,_0x2bf146=_0x4beaa5[_0x22e768][0x0],_0x550560=_0xa8da17['isObject'](_0x4fe463[_0x1cb4dd]['item']);!_0x593615[_0x22e768]&&_0x161ee2?_0x593615[_0x22e768]={'start':_0x5989cd,'tapeItem':_0x4fe463[_0x1cb4dd],'userId':_0x2ac8fd,'type':_0x22e768}:_0x593615[_0x22e768]&&!_0x161ee2?(_0x593615[_0x22e768]['end']=_0x5989cd,_0x2686ec(_0x593615[_0x22e768]),_0x593615[_0x22e768]=null):_0x593615[_0x22e768]&&_0x161ee2&&_0x593615[_0x22e768]['userId']!==_0x2ac8fd&&(_0x593615[_0x22e768]['end']=_0x5989cd,_0x2bf146&&_0x2bf146['userId']===_0x593615[_0x22e768]['userId']||_0x2686ec(_0x593615[_0x22e768]),_0x593615[_0x22e768]={'start':_0x5989cd,'tapeItem':_0x4fe463[_0x1cb4dd],'userId':_0x2ac8fd,'type':_0x22e768}),_0x593615[_0x22e768]&&_0x550560&&('elementStart'!==_0x4fe463[_0x1cb4dd]['type']||_0x2bf146&&_0x2bf146['userId']===_0x2ac8fd||_0x4beaa5[_0x22e768]['unshift']({'userId':_0x2ac8fd,'object':_0x4fe463[_0x1cb4dd]['item'],'change':_0x593615[_0x22e768]}),'elementEnd'===_0x4fe463[_0x1cb4dd]['type']&&_0x2bf146&&_0x2bf146['object']===_0x4fe463[_0x1cb4dd]['item']&&(_0x4beaa5[_0x22e768]['shift'](),_0x593615[_0x22e768]=_0x2bf146['change'])),_0x593615[_0x22e768]&&_0x57b55a&&(_0x593615[_0x22e768]['end']=_0x5c6a99,_0x2686ec(_0x593615[_0x22e768]),_0x593615[_0x22e768]=null);}function _0x2686ec({start:_0x604858,end:_0x324dda,tapeItem:_0x280971,userId:_0x33d6b9,type:_0xa4a720}){const _0x59b72c=_0x280971['item'],_0x225827=_0x59c5c9['schema']['isBlock'](_0x59b72c)&&!_0x59c5c9['schema']['isLimit'](_0x59b72c),_0x16922a=_0x604858['nodeAfter']==_0x324dda['parent']&&_0x324dda['isAtStart'];if(_0x225827&&_0x16922a)return;const _0x5e5f05=_0x59c5c9['createRange'](_0x604858,_0x324dda),_0x8a5088=_0x5abcbf['get'](_0x33d6b9),_0x22a22b=new G({'author':_0x8a5088,'type':'isAdded'==_0xa4a720||'isAddSuggestion'==_0xa4a720?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xa4a720||'isRemoveSuggestion'==_0xa4a720},'createdAt':new Date(),'rootName':_0x388cd2});_0x2e225b['push'](_0x22a22b),_0x56fd73['markers']['set']('revision:'+_0x22a22b['id'],_0x5e5f05);}function _0x2f4277(_0x37ccec,_0x36d4be){const _0x190fbe=_0x37ccec['getAttributes'](),_0x1d7476=_0x36d4be['getAttributes']();for(const _0x1f518f of _0x190fbe){if(_0x1f518f[0x1]!==_0x36d4be['getAttribute'](_0x1f518f[0x0]))return!0x1;_0x1d7476['next']();}return _0x1d7476['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x540ba2=>{const _0x30d320=_0x540ba2['markerName']['split'](':')[0x1],_0x54867e=this['_getChangeFromId'](_0x30d320);if(!_0x54867e)return null;const _0x3b43f7='add'==_0x54867e['type']?'insertion':'deletion',_0x29e53f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3b43f7];return _0x54867e['data']['isSuggestion']&&_0x29e53f['push']('ck-suggestion-marker-'+_0x3b43f7+'-new'),this['activeChange']==_0x54867e&&_0x29e53f['push']('ck-suggestion-marker--active'),{'classes':_0x29e53f,'attributes':{'data-change-id':_0x30d320}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1a1ca1=>{_0x1a1ca1['on']('element:pre',(_0x31c869,_0x3a6f72,_0x592163)=>{const _0x4599a4=_0x3a6f72['viewItem']['getChild'](0x0);if(!_0x4599a4||!_0x4599a4['is']('element','code'))return;if(!_0x592163['consumable']['consume'](_0x4599a4,{'attributes':['vid_start','vid_end']}))return;const _0x202629=_0x3a6f72['modelRange']['start']['nodeAfter'];_0x592163['writer']['setAttribute']('vid_start',_0x4599a4['getAttribute']('vid_start'),_0x202629),_0x592163['writer']['setAttribute']('vid_end',_0x4599a4['getAttribute']('vid_end'),_0x202629);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3d2c09=>{_0x3d2c09['on']('element',(_0x52f609,_0x379ed5,_0x13c4e3)=>{if(!_0x13c4e3['consumable']['consume'](_0x379ed5['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x379ed5['modelRange']['isCollapsed'])return;const _0x4f5342=_0x379ed5['modelRange']['start']['nodeAfter'];_0x4f5342['hasAttribute']('vid_start')||_0x4f5342['hasAttribute']('vid')||(_0x13c4e3['writer']['setAttribute']('vid_start',_0x379ed5['viewItem']['getAttribute']('vid_start'),_0x4f5342),_0x13c4e3['writer']['setAttribute']('vid_end',_0x379ed5['viewItem']['getAttribute']('vid_end'),_0x4f5342));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d4d11=>_0x2d4d11['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x26a521,[,_0xdc9225])=>{['vid_start','vid_end','vid']['includes'](_0xdc9225)&&(_0x26a521['return']=!0x0,_0x26a521['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x511658=>{_0x511658['on']('attribute:vid',(_0x24b674,_0x10672f,_0x36ea95)=>{if('\x20'!=_0x10672f['item']['data']||_0x10672f['item']['parent']['maxOffset']>0x1)return;if(!_0x36ea95['consumable']['consume'](_0x10672f['item'],_0x24b674['name']))return;const _0x1e15e1=_0x36ea95['writer'],_0x3ae543=_0x36ea95['mapper']['toViewRange'](_0x10672f['range']);_0x1e15e1['wrap'](_0x3ae543,_0x1e15e1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2ff948){const _0xa4b674=_0x2ff948['plugins']['get']('RevisionViewer');return(_0x25e4e8,_0x39f4ca,_0xa93173)=>{const _0x4a3083=_0x39f4ca['markerName']['split'](':')[0x1],_0x504f14=_0xa4b674['_getChangeFromId'](_0x4a3083);if(!_0x504f14)return null;const _0x5a6aba='add'==_0x504f14['type']?'split':'merge';if(!_0xa93173['consumable']['test'](_0x39f4ca['markerRange'],_0x25e4e8['name']))return;const _0x50bece=_0x39f4ca['markerRange']['getWalker'](),_0x4baff4=_0x39f4ca['markerRange']['start'],_0x2b8d35=_0x2ff948['model']['schema'];let _0x51a49b=null,_0x4903f6=null,_0x56bdf1=!0x1,_0x5c1c05=!0x1;for(const _0x33b2fa of _0x50bece){const _0x254d31=_0x33b2fa['item'];_0x56bdf1=_0x56bdf1||_0x2b8d35['isContent'](_0x254d31);const _0x1d23bc=_0xa93173['mapper']['toViewElement'](_0x254d31);if(_0x1d23bc&&_0x1d23bc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x33b2fa['type']&&(_0x2b8d35['isBlock'](_0x254d31)&&!_0x2b8d35['isLimit'](_0x254d31)&&(_0x254d31['nextSibling']||_0x4baff4['isAtEnd']?_0x51a49b&&_0x51a49b['parent']==_0x254d31||(_0x51a49b=_0x254d31,_0x540c78(_0x33b2fa['previousPosition']),_0x5c1c05=!0x0):_0x4903f6=_0x4903f6||_0x33b2fa['previousPosition']));}function _0x540c78(_0x2dd6ef){const _0x1eb0d9=_0xa93173['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5a6aba}),_0x42d2e9=_0xa93173['mapper']['toViewPosition'](_0x2dd6ef);_0x504f14['data']['isSuggestion']&&_0xa93173['writer']['addClass']('ck-suggestion-marker-'+_0x5a6aba+'-new',_0x1eb0d9),_0xa4b674['activeChange']==_0x504f14&&_0xa93173['writer']['addClass']('ck-suggestion-marker--active',_0x1eb0d9),_0xa93173['writer']['insert'](_0x42d2e9,_0x1eb0d9),_0xa93173['mapper']['bindElementToMarker'](_0x1eb0d9,_0x39f4ca['markerName']);}_0x56bdf1||_0x5c1c05||!_0x4903f6||_0x540c78(_0x4903f6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xd6a822,_0x1bfbc0,_0x19faea)=>{const _0x5c7418=_0x19faea['mapper']['markerNameToElements'](_0x1bfbc0['markerName']);if(_0x5c7418){for(const _0x1ef723 of _0x5c7418)(_0x1ef723['hasClass']('ck-suggestion-marker-split')||_0x1ef723['hasClass']('ck-suggestion-marker-merge'))&&(_0x19faea['mapper']['unbindElementFromMarkerName'](_0x1ef723,_0x1bfbc0['markerName']),_0x19faea['writer']['remove'](_0x1ef723));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x16c0e1,_0x649e15,_0x1b0432)=>{const _0x47b9de=_0x649e15['markerName']['split'](':')[0x1],_0x1e21a6=this['_getChangeFromId'](_0x47b9de);if(!_0x1e21a6)return null;const _0xb1fd35='add'==_0x1e21a6['type']?'split':'merge';if(_0x1b0432['consumable']['test'](_0x649e15['markerRange'],_0x16c0e1['name']))for(const _0x307af4 of _0x649e15['markerRange']['getItems']()){if(!_0x307af4['is']('element','softBreak'))continue;const _0x5d69dc=_0x1b0432['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb1fd35}),_0x6fd56c=_0x1b0432['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x307af4));_0x1e21a6['data']['isSuggestion']&&_0x1b0432['writer']['addClass']('ck-suggestion-marker-'+_0xb1fd35+'-new',_0x5d69dc),this['activeChange']==_0x1e21a6&&_0x1b0432['writer']['addClass']('ck-suggestion-marker--active',_0x5d69dc),_0x1b0432['writer']['insert'](_0x6fd56c,_0x5d69dc),_0x1b0432['mapper']['bindElementToMarker'](_0x5d69dc,_0x649e15['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x275fe6=>{for(const _0xdd8b4d of this['editor']['model']['document']['getRootNames']()){const _0xae552d=this['editor']['model']['document']['getRoot'](_0xdd8b4d),_0x523362=this['editor']['editing']['view']['document']['getRoot'](_0xdd8b4d);if(_0x523362){const _0x5599f1=_0xae552d['getAttribute']('revisionHistoryAttachChange');if(_0x275fe6['removeAttribute']('data-change-id',_0x523362),_0x275fe6['removeClass']('ck-revision-history-root-add',_0x523362),_0x275fe6['removeClass']('ck-revision-history-root-remove',_0x523362),_0x275fe6['removeClass']('ck-revision-history-root--active',_0x523362),_0x5599f1){const _0x19e03a=this['_getChangeFromId'](_0x5599f1);if(!_0x19e03a)return null;_0x275fe6['setAttribute']('data-change-id',_0x5599f1,_0x523362),_0x275fe6['addClass']('ck-revision-history-root-'+_0x19e03a['type'],_0x523362),this['activeChange']==_0x19e03a&&_0x275fe6['addClass']('ck-revision-history-root--active',_0x523362);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x55e794=>'revision-comment:'+_0x55e794,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3dd025=>'revision-suggestion:'+_0x3dd025,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x543b49=>({'name':'suggestion:'+_0x543b49,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x365087=>{const _0x6ba4c=_0x365087['markerName']['split'](':')[0x1];return'insertion'!=_0x6ba4c&&'deletion'!=_0x6ba4c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x6ba4c]};}}),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',(_0x3d6e63,_0x552de7,_0x3f9f54)=>{const _0x503ef2=_0x3f9f54['mapper']['markerNameToElements'](_0x552de7['markerName']);if(_0x503ef2){for(const _0x35e824 of _0x503ef2)_0x35e824['is']('uiElement')&&(_0x3f9f54['mapper']['unbindElementFromMarkerName'](_0x35e824,_0x552de7['markerName']),_0x3f9f54['writer']['remove'](_0x35e824));}},{'priority':'high'});}['_getChangeFromId'](_0x48fed0){return this['_changeIdToChange']['get'](_0x48fed0);}['_getViewForChange'](_0x45cbe1){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x45cbe1),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x551d11,_0x23e0f8,_0x43074e,_0x4a099c)=>{_0x4a099c&&this['_balloon']['remove'](_0x4a099c),_0x43074e&&(this['_balloon']['add']({'view':_0x43074e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x24ff99=this['editor']['editing'],_0x288b25=this['_getChangeFromId'](_0x43074e['changeId']);let _0x46b825;if(_0x288b25['data']['isOnRoot']){const _0x388704=_0x24ff99['view']['getDomRoot'](_0x288b25['rootName']);_0x46b825=Array['from'](_0x388704['getClientRects']());}else{const _0x29fa79=this['editor']['model']['markers']['get']('revision:'+_0x43074e['changeId']);_0x46b825=Array['from'](_0x24ff99['mapper']['markerNameToElements'](_0x29fa79['name']))['map'](_0xd04d5f=>_0x24ff99['view']['domConverter']['mapViewToDom'](_0xd04d5f))['map'](_0x57d719=>Array['from'](_0x57d719['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x46b825[0x0];return _0x46b825['find'](_0x3aeec7=>_0x3aeec7['top']-0x3<=this['_activeViewTarget']['y']&&_0x3aeec7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3aeec7['left']-0x3<=this['_activeViewTarget']['x']&&_0x3aeec7['right']+0x3>=this['_activeViewTarget']['x'])||_0x46b825[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x32c3d1,_0xc3c1db,_0x5d541b,_0x4194b2)=>{this['activeView']=_0x5d541b?this['_getViewForChange'](_0x5d541b):null,this['editor']['model']['change'](()=>{const _0x43d066=this['editor']['editing'];_0x4194b2&&(_0x4194b2['data']['isOnRoot']?_0x43d066['view']['change'](_0x5e9995=>{_0x5e9995['removeClass']('ck-revision-history-root--active',_0x43d066['view']['document']['getRoot'](_0x4194b2['rootName']));}):_0x43d066['reconvertMarker']('revision:'+_0x4194b2['id'])),_0x5d541b&&(_0x5d541b['data']['isOnRoot']?_0x43d066['view']['change'](_0x20f6e9=>{_0x20f6e9['addClass']('ck-revision-history-root--active',_0x43d066['view']['document']['getRoot'](_0x5d541b['rootName']));}):_0x43d066['reconvertMarker']('revision:'+_0x5d541b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x52fec4,_0x392981)=>{if(this['activeChange'])return;const _0x5e8269=this['_findChangeIdFromDomTarget'](_0x392981['target']),_0x40c047=this['_changeIdToChange']['get'](_0x5e8269);_0x40c047?(this['_activeViewTarget']={'x':_0x392981['domEvent']['x'],'y':_0x392981['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x40c047)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x121a3a,_0x1fb86b)=>{const _0x4213da=this['_findChangeIdFromDomTarget'](_0x1fb86b['target']),_0x2a6ff6=this['_changeIdToChange']['get'](_0x4213da);_0x2a6ff6?(this['_activeViewTarget']={'x':_0x1fb86b['domEvent']['x'],'y':_0x1fb86b['domEvent']['y']},_0x2a6ff6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2a6ff6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xe02940){do{const _0x544e0f=_0xe02940['getAttribute']('data-change-id');if(_0x544e0f)return _0x544e0f;_0xe02940=_0xe02940['parent'];}while(_0xe02940);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x21b5a0=>{for(const _0x22f44e of this['editor']['model']['markers'])_0x21b5a0['removeMarker'](_0x22f44e);});}}function Q(_0x5219ad,_0x5c9f6b){return(_0x304a50,_0x2bb236,_0x585505)=>{if(!_0x585505['consumable']['test'](_0x2bb236['markerRange'],_0x304a50['name']))return;const _0x134d43=_0x2bb236['markerRange']['getWalker'](),_0x1997a2=_0x2bb236['markerRange']['start'],_0x2d59fb=_0x5219ad['model']['schema'];let _0x3179fe=null,_0x27a3ec=null,_0x508714=!0x1,_0x5611d1=!0x1;for(const _0x2c422e of _0x134d43){const _0x320973=_0x2c422e['item'];_0x508714=_0x508714||_0x2d59fb['isContent'](_0x320973);const _0x4d059d=_0x585505['mapper']['toViewElement'](_0x320973);if(_0x4d059d&&_0x4d059d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c422e['type']&&(_0x2d59fb['isBlock'](_0x320973)&&!_0x2d59fb['isLimit'](_0x320973)&&(_0x320973['nextSibling']||_0x1997a2['isAtEnd']?_0x3179fe&&_0x3179fe['parent']==_0x320973||(_0x3179fe=_0x320973,_0x110161(_0x2c422e['previousPosition']),_0x5611d1=!0x0):_0x27a3ec=_0x27a3ec||_0x2c422e['previousPosition']));}function _0x110161(_0x462634){const _0x1ef858=_0x585505['mapper']['toViewPosition'](_0x462634),_0x21efee=_0x585505['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5c9f6b});_0x585505['writer']['insert'](_0x1ef858,_0x21efee),_0x585505['mapper']['bindElementToMarker'](_0x21efee,_0x2bb236['markerName']);}_0x508714||_0x5611d1||!_0x27a3ec||_0x110161(_0x27a3ec);};}class nt extends _0x30eac9{constructor(_0x1d796e){super(_0x1d796e);const _0x2c6609=_0x1d796e['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x2c6609,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2c6609,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x404907=this['editor'],_0x471828=_0x404907['plugins']['get'](u),_0x4eeaca=_0x471828['isReady']?_0x471828['diff']['newRevisionId']:null;_0x404907['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4eeaca);}['refresh'](){const {isReady:_0x24526c,isEnabled:_0x197882,repository:_0xe4176e,diff:_0x2e9f7f}=this['editor']['plugins']['get'](u),_0x485ba6=_0x2e9f7f&&_0xe4176e['getLaterVisibleRevision'](_0x2e9f7f['newRevisionId']);this['isEnabled']=_0x24526c&&_0x197882&&Boolean(_0x485ba6);}}class ot extends _0x30eac9{['_step'];constructor(_0x25d7ff,{direction:_0x3ab18e}){super(_0x25d7ff);const _0x5f501b=_0x25d7ff['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x3ab18e?0x1:-0x1,this['listenTo'](_0x5f501b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5f501b,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5f501b,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3be840=this['editor'],_0x3e2ab0=_0x3be840['plugins']['get'](u),{isNavigationMode:_0x3a2437,currentChangeNumber:_0x11e2ef}=_0x3e2ab0;let _0x2ae478;if(_0x3e2ab0['activeChange']=_0x3a2437?_0x3e2ab0['diff']['changes']['get'](_0x11e2ef+this['_step']):_0x3e2ab0['diff']['changes']['first'],_0x3e2ab0['activeChange']['data']['isOnRoot'])_0x2ae478=_0x3be840['editing']['view']['getDomRoot'](_0x3e2ab0['activeChange']['rootName']);else{const _0x521c96=_0x3be840['model']['markers']['get']('revision:'+_0x3e2ab0['activeChange']['id']);_0x2ae478=_0x50e4f9(_0x3be840['editing'],_0x521c96);}_0x3e6207({'target':_0x2ae478,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1df774,currentChangeNumber:_0xa2dcd4,numberOfChanges:_0x1bada7,isReady:_0x340569,isEnabled:_0x553f1f}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x553f1f&&_0x340569&&_0x1bada7)&&(!_0x1df774||(0x1===this['_step']?_0xa2dcd4<_0x1bada7-0x1:_0xa2dcd4>0x0));}}class pi extends _0x14bc2f{constructor(_0x2f9f98){super(_0x2f9f98);const _0x94b1a7=this['bindTemplate'],_0x52df61=new _0x534191(_0x2f9f98),_0x45cdc3=new _0x534191(_0x2f9f98);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',(_0x3d96e3,_0x41e1cd)=>_0x3d96e3&&_0x41e1cd>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x9564e8,_0x12690b,_0x3f46f1,_0x1a009a)=>{if(!_0x9564e8)return m(_0x2f9f98,'Loading...');if(!_0x3f46f1)return m(_0x2f9f98,'No\x20changes');const _0x2672e1=m(_0x2f9f98,'NUMBER_OF_CHANGES',_0x3f46f1);return _0x1a009a?m(_0x2f9f98,'X_OF_Y_CHANGES',[_0x12690b+0x1,_0x3f46f1]):_0x2672e1;}),_0x52df61['set']({'label':m(_0x2f9f98,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1dcbd4}),_0x45cdc3['set']({'label':m(_0x2f9f98,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5e2179}),_0x52df61['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x45cdc3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x52df61['on']('execute',()=>this['fire']('execute','backward')),_0x45cdc3['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',_0x94b1a7['if']('_isStatusLabelVisible','ck-hidden',_0x26da00=>!_0x26da00)]},'children':[{'text':_0x94b1a7['to']('isNavigationMode',_0x3fb5e7=>_0x3fb5e7?m(_0x2f9f98,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2f9f98,'Total')+':\x20')}]},{'text':_0x94b1a7['to']('_statusText')}]},new _0x29c4ab(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x52df61,_0x45cdc3]}]});}}const ge='ck-editor__editable__loading-overlay';class fi extends _0x2182b9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2d8fd4=this['editor']['editing']['view'];_0x2d8fd4['change'](_0x3dc249=>{for(const _0x3b0898 of _0x2d8fd4['document']['roots'])_0x3dc249['addClass'](ge,_0x3b0898);});}['hide'](){const _0x7971a8=this['editor']['editing']['view'];_0x7971a8['change'](_0x25b861=>{for(const _0x717874 of _0x7971a8['document']['roots'])_0x25b861['removeClass'](ge,_0x717874);});}}class v extends _0x2182b9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,fi];}['init'](){const _0x473d9b=this['editor'],_0x59b35d=_0x473d9b['plugins']['get'](u),_0x2104af=_0x473d9b['plugins']['get'](fi);_0x473d9b['ui']['componentFactory']['add']('exitToEditing',_0x1eddde=>{const _0x3b4128=new _0x534191(_0x1eddde);return _0x3b4128['set']({'label':m(_0x1eddde,'Back\x20to\x20editing'),'icon':_0x5cdc3a,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3b4128,'execute',()=>{_0x473d9b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3b4128;}),_0x473d9b['ui']['componentFactory']['add']('restoreRevision',_0xb2fd24=>{const _0x172b24=new _0x534191(_0xb2fd24);return _0x172b24['set']({'label':m(_0xb2fd24,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x172b24['bind']('isEnabled')['to'](_0x473d9b['commands']['get']('restoreRevision')),this['listenTo'](_0x172b24,'execute',()=>_0x473d9b['execute']('restoreRevision')),_0x172b24;}),_0x473d9b['ui']['componentFactory']['add']('changesNavigation',_0x44ea10=>{const _0x5b2213=new pi(_0x44ea10),_0x12c19c=_0x473d9b['commands']['get']('showPreviousChange'),_0x3aefa8=_0x473d9b['commands']['get']('showNextChange');return _0x5b2213['bind']('isBackwardNavigationEnabled')['to'](_0x12c19c,'isEnabled'),_0x5b2213['bind']('isForwardNavigationEnabled')['to'](_0x3aefa8,'isEnabled'),_0x5b2213['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x59b35d),this['listenTo'](_0x5b2213,'execute',(_0x471800,_0x43d475)=>{_0x473d9b['execute']('forward'===_0x43d475?'showNextChange':'showPreviousChange');}),_0x5b2213;}),_0x2104af['show'](),_0x59b35d['on']('change:isReady',(_0x2bcb57,_0x17c062,_0x1c85cb)=>{_0x1c85cb?_0x2104af['hide']():_0x2104af['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x2a4359,_0xb2af40){super(_0x2a4359,_0xb2af40);const _0x4a50f5=this['bindTemplate'];this['set']({'label':m(_0x2a4359,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2a4359,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4a50f5['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 _0x18b5e5=this['fieldView']['element'];this['_tooltipString']=_0x18b5e5['scrollWidth']>_0x18b5e5['clientWidth']&&_0x18b5e5['value']||'';}}class vi extends _0x14bc2f{constructor(_0x52e0d3,_0x3a5f04,_0x312800){super(_0x52e0d3);const _0x194ad6=new _0x2d523d();_0x194ad6['set']({'content':_0x26004b,'viewBox':'0\x200\x2011\x2010'});const _0x4ba37d=['ck','ck-revision-history-sidebar__revision-author'];_0x312800&&_0x4ba37d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x21b067=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x52e0d3,_0x312800?'Revision\x20creator':'Revision\x20author')},'children':[_0x194ad6,_0x3a5f04['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4ba37d},'children':_0x21b067});}}function mi(_0x486f38,_0x25ddf9){const _0x38197e=_0x486f38['bindTemplate'],_0x567586=_0x486f38['locale'],_0x25010d=_0x25a564(_0x567586);_0x25010d['panelPosition']='sw';const _0x487f7f=function(_0xf03d70,_0x48c462){const _0x38b023=function(_0x3b3b8a,_0x3ac0a8){const _0x457a1c=_0x3b3b8a['locale'],_0x5a1240={'Compare\x20against\x20selected':m(_0x457a1c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x457a1c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x457a1c,'Restore\x20this\x20revision')};return _0x3ac0a8['map'](_0x1b2009=>{const _0x47543f=_0x5a1240[_0x1b2009['name']];return _0x47543f&&_0x47543f!==_0x1b2009['name']&&(_0x1b2009['name']=_0x47543f),_0x1b2009;});}(_0xf03d70,_0x48c462),_0x5a9042=new _0x401ff4();for(const _0x11f457 of _0x38b023){const _0x1388fa={'type':'button','model':new to({'label':_0x11f457['name'],'class':_0x11f457['class'],'withText':!0x0,'role':'menuitem','_action':_0x11f457['action']})};_0x1388fa['model']['bind']('isEnabled')['to'](_0xf03d70,'isActionsDropdownOpen',_0x5d7361=>'function'!=typeof _0x11f457['isEnabled']||(!_0x5d7361||_0x11f457['isEnabled'](_0xf03d70))),_0x5a9042['add'](_0x1388fa);}return _0x5a9042;}(_0x486f38,_0x25ddf9);return _0x486f38['bind']('isActionsDropdownOpen')['to'](_0x25010d,'isOpen'),_0x25010d['buttonView']['set']({'label':m(_0x567586,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x356400}),_0x25010d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x38197e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x38197e['to'](_0x1c9994=>_0x1c9994['stopPropagation']())}}),_0x25010d['on']('execute',_0x1c97a1=>{_0x486f38['isReady']&&'function'==typeof _0x1c97a1['source']['_action']&&_0x1c97a1['source']['_action'](_0x486f38);}),_0x348879(_0x25010d,_0x487f7f,{'role':'menu'}),_0x25010d['listenTo'](_0x486f38,'change:isActionsDropdownOpen',(_0x469b88,_0xdd97b9,_0xf84d53)=>{if(_0xf84d53)for(const _0x56b39a of _0x25010d['listView']['items']){const _0x49eefe=_0x56b39a['children']['first'],_0x28ca2d=_0x25ddf9['find'](_0x5a7aa2=>_0x5a7aa2['action']===_0x49eefe['_action'])['isVisible'];_0x56b39a['isVisible']=void 0x0===_0x28ca2d||_0x28ca2d(_0x486f38);}}),_0x25010d;}class ki extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x55f1e2(_0x14bc2f){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x343aec,_0x1a1fb9,_0x24c36b,_0x1973c7){super(_0x343aec);const _0x591c3f=this['bindTemplate'],_0x2b2eba=function(_0x435827,_0x995567){const _0x1024ce=Array['from'](_0x995567['authors'])['filter'](_0x43e6df=>_0x43e6df!=_0x995567['creator']);return _0x995567['creator']&&_0x1024ce['unshift'](_0x995567['creator']),_0x1024ce['map'](_0x27a0ce=>new vi(_0x435827,_0x27a0ce,_0x27a0ce==_0x995567['creator']));}(_0x343aec,_0x1a1fb9);this['id']=_0x1a1fb9['id'],this['_revision']=_0x1a1fb9,this['_requireRevisionName']=_0x1973c7,this['bind']('name','createdAt')['to'](_0x1a1fb9),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x43e2a6=>{return _0x2d684e=_0x343aec['uiLanguage'],(_0x3e3649=_0x43e2a6)['toLocaleDateString'](_0x2d684e,{'month':'long','day':'numeric'})+',\x20'+_0x3e3649['toLocaleTimeString'](_0x2d684e,{'hour':'numeric','minute':'numeric'});var _0x2d684e,_0x3e3649;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x343aec,_0x8e7e4f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x344f30=>_0x344f30||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x330dd0,_0x36cc43)=>_0x330dd0&&_0x36cc43),this['revisionActionsView']=_0x24c36b&&_0x24c36b['length']?mi(this,_0x24c36b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x591c3f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x591c3f['if']('isEnabled','ck-disabled',_0x1ad1e7=>!_0x1ad1e7),_0x591c3f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x591c3f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x591c3f['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':_0x591c3f['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':_0x2b2eba}]},this['revisionActionsView']],'on':{'click':_0x591c3f['to'](_0x3bbf13=>{_0x3bbf13['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x161194=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x161194,'change',()=>{this['_requireRevisionName']&&!_0x161194['value']||this['fire']('setName',{'id':this['id'],'name':_0x161194['value']}),_0x161194['value']||(_0x161194['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ji(_0x39a260,_0x19fe95){const _0x28be60=_0xbf028b['fromJSDate'](_0x39a260)['setLocale'](_0x19fe95),_0x527acf=_0xbf028b['local'](),_0x45b985=_0x527acf['minus']({'days':0x1})['startOf']('day');let _0x2be0e1,_0x30f4ce;return _0x28be60['hasSame'](_0x527acf,'day')?(_0x2be0e1=_0x28be60['startOf']('day')['toJSDate'](),_0x30f4ce=_0x28be60['toRelativeCalendar']()):_0x28be60['hasSame'](_0x45b985,'day')?(_0x2be0e1=_0x45b985['toJSDate'](),_0x30f4ce=_0x28be60['toRelativeCalendar']()):_0x28be60['hasSame'](_0x527acf,'week')?(_0x2be0e1=_0x28be60['startOf']('week')['toJSDate'](),_0x30f4ce=_0x28be60['weekdayLong']||''):_0x28be60['hasSame'](_0x527acf,'year')?(_0x2be0e1=_0x28be60['startOf']('month')['toJSDate'](),_0x30f4ce=_0x28be60['monthLong']||''):(_0x2be0e1=_0x28be60['startOf']('year')['toJSDate'](),_0x30f4ce=String(_0x28be60['year'])),{'startDate':_0x2be0e1,'localizedPeriodName':_0x30f4ce};}class Ni extends _0x14bc2f{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x49497f,_0x119d49,_0x2f0e5a,_0x23aa3b){super(_0x49497f);const _0x43dbf0=ji(_0x119d49,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x119d49,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2f0e5a,this['_requireRevisionName']=_0x23aa3b,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':_0x43dbf0}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4caee3){const _0x52d059=new ki(this['locale'],_0x4caee3,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x52d059);}['removeRevision'](_0x598443){const _0x573131=this['revisionViews']['find'](_0xdb86db=>_0xdb86db['id']===_0x598443['id']);this['revisionViews']['remove'](_0x573131);}}class Si extends _0x14bc2f{constructor(_0x2b3b24){super(_0x2b3b24);const _0x292653=new _0x2d523d();_0x292653['content']=_0x1377de,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x292653,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x2b3b24,'Revision\x20history')]}]});}}class Ri extends _0x14bc2f{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x16c67f,_0x43a681,_0x2bf294,_0x1e1ae4){super(_0x16c67f);const _0x55482c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x43a681,this['_revisionActions']=_0x2bf294,this['_requireRevisionName']=_0x1e1ae4,this['on']('select',(_0x5bc2dc,_0x2a7e13)=>{this['fire']('revisionSelected',_0x2a7e13);}),this['on']('setName',(_0xe08ebf,_0x42d503)=>{this['fire']('revisionSetName',_0x42d503);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Si(_0x16c67f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x55482c['if']('isEnabled','ck-disabled',_0x490436=>!_0x490436)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3c6530 of this['_revisions'])this['_addRevision'](_0x3c6530);this['_revisions']['on']('add',(_0x33cab5,_0x391196)=>{this['_addRevision'](_0x391196);}),this['_revisions']['on']('remove',(_0x5db132,_0x5e6b9c)=>{this['_removeRevision'](_0x5e6b9c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x340508=>_0x340508['revisionViews']['map'](_0x265fcc=>_0x265fcc))['flat']();}['selectRevision'](_0x25feb8){for(const _0x50dbfc of this['revisionViews'])_0x25feb8&&_0x25feb8['id']===_0x50dbfc['id']?_0x50dbfc['select']():_0x50dbfc['deselect']();}['highlightRevisions'](_0x9ebfd4){for(const _0x3b017e of this['revisionViews'])_0x9ebfd4['some'](({id:_0x235b98})=>_0x235b98===_0x3b017e['id'])?_0x3b017e['highlight']():_0x3b017e['unhighlight']();}['_addRevision'](_0x365ed4){const _0x45764a=ji(_0x365ed4['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xe13240=this['timePeriodViews']['get'](0x0);_0xe13240&&_0xe13240['startDate']['getTime']()===_0x45764a['getTime']()||(_0xe13240=new Ni(this['locale'],_0x45764a,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xe13240)),_0xe13240['addRevision'](_0x365ed4);}['_removeRevision'](_0x3768be){const _0x282b50=ji(_0x3768be['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x282b50)['removeRevision'](_0x3768be);}['_getTimePeriodViewByStartDate'](_0x2191e6){return this['timePeriodViews']['find'](_0x5d5f61=>_0x5d5f61['startDate']['getTime']()===_0x2191e6['getTime']());}}class d extends _0x2182b9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(
|
|
30
|
-
_0x4e63f0(_0x168dde){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xa11d04,_0x31b86a){super(_0x31b86a),this['sourceElement']=_0xa11d04,this['model']['document']['createRoot']();const _0x1423a8=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1423a8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x41215c,_0x1c3d8f){const _0x595e58=new this(_0x41215c,_0x1c3d8f);return await _0x595e58['initPlugins'](),await _0x595e58['ui']['init'](_0x41215c),await _0x595e58['data']['init'](_0x595e58['config']['get']('initialData')||''),_0x595e58['fire']('ready'),_0x595e58;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0xb302f2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1bff40){function _0x1a0183(_0x4f69df){return _0x4f69df['map'](_0x505a6b=>String['fromCharCode'](_0x505a6b))['join']('');}super(_0x1bff40),this['result']='end',_0x1bff40[_0x1a0183([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a0183([0x76,0x69,0x65,0x77])][_0x1a0183([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a0183([0x61,0x75,0x74,0x6f]),_0x1bff40[_0x1a0183([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1a0183([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a0183([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1a0183([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1a0183([0x6f,0x6b])});}}class ht extends _0xb302f2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x3026a6){if(super(_0x3026a6),!this['editor']['config']['get']('revisionHistory'))throw new _0xd34d2c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x30ee4c=>this['_showRevisionViewer']({..._0x30ee4c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4f99b1=>this['_closeRevisionViewer'](_0x4f99b1)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3b2c60=>this['_restoreRevision'](_0x3b2c60)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x40598b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x40598b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1f5376){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1f5376);}['getRevision'](_0x126d22){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x126d22);}['getRevisions'](_0x3f5cdd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3f5cdd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x6ebfed=this['editor'],_0x5c7ade=_0x3acf91(_0x6ebfed,p),_0x3a3a8b=_0x6ebfed['plugins']['get']('RevisionTracker'),_0x45baad=_0x6ebfed['plugins']['get']('Users')['users'];return _0x5c7ade['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5c7ade['lazyRoots'],(_0x5c7ade['plugins']['push'](at,u,v,class extends _0xb302f2{static get['requires'](){return[u,'Users'];}['init'](){const _0x47d8e7=this['editor']['plugins']['get']('Users');for(const _0x3b5de1 of _0x45baad)_0x3b5de1['isAnonymous']||_0x47d8e7['getUser'](_0x3b5de1['id'])||_0x47d8e7['addUser'](_0x3b5de1);const _0x4d14ff=_0x3a3a8b['repository']['getRevisions']();let _0x5e1ddc=null;const _0x4c9465=this['editor']['plugins']['get']('RevisionViewer');_0x4c9465['adapter']=_0x3a3a8b['adapter'],_0x4c9465['bind']('isEnabled')['to'](_0x3a3a8b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x6ebfed,'isReadOnly',_0x4a2bd4=>!_0x4a2bd4);for(const _0x37135d of _0x4d14ff){const _0x56c497=null===_0x37135d['creator'];if(_0x56c497&&_0x37135d['toVersion']===_0x37135d['fromVersion'])continue;const _0x3694bd=_0x37135d['toJSON']();_0x4c9465['addRevisionData'](_0x3694bd,(_0x2deb37,_0xed72c6,_0x2d71fc)=>{if(_0x56c497){if(_0x5e1ddc)_0x5e1ddc['_update'](_0x2deb37,_0xed72c6);else{if(!_0xed72c6){const _0x52408e=_0x2d71fc['toJSON']();_0x52408e['id']=_0x40f93b(),_0x3a3a8b['saveRevision'](_0x52408e,_0x2d71fc['toVersion'])['then'](_0x226946=>{_0x5e1ddc=_0x226946;});}}}else _0x37135d['_update'](_0x2deb37,_0xed72c6);});}}},d),_0x5c7ade);}['_enhanceShowRevisionViewerCallback'](){const _0x4e5b39=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x457afb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x153dfa=this['editor']['plugins']['get']('Autosave');await _0x153dfa['save']();}else await _0x457afb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5840d2=this['editor']['plugins']['get']('Dialog');_0x5840d2['isOpen']&&_0x5840d2['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x11e19e=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1e51a1 of _0x11e19e)_0x1e51a1['class']=_0x1e51a1['class']?_0x1e51a1['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x121741=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x121741&&_0x121741['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x546956=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x546956&&_0x546956['setAttribute']('tabindex','-1');}}const _0x4319eb=this['_getRevisionViewerEditorConfig']();return _0x4e5b39(_0x4319eb)['then'](_0x1cd04c=>{return(this['_viewerEditor']=_0x1cd04c,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'),_0x1cd04c);})['catch'](_0xcfec51=>(console['error'](_0xcfec51),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x187b6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x17ca7a=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1fef3b of _0x17ca7a)_0x1fef3b['class']='ck-tab-panel_disabled'===_0x1fef3b['class']?'':_0x1fef3b['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x1f06d3=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1f06d3&&_0x1f06d3['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x335f68=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x335f68&&_0x335f68['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x187b6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3215d3=this['editor']['plugins']['get']('Annotations');_0x3215d3['refreshVisibility'](),_0x3215d3['refreshPositioning']();}});});}['_showRevisionViewer'](_0x155a78){const _0x59dd5e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5dea0a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1316e8=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x1316e8,_0x155a78)['then'](_0x12a8e6=>(_0x5dea0a['style']['display']='block',_0x59dd5e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x12a8e6));}['_closeRevisionViewer'](_0x2ab375){const _0x8eeeb3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x8eeeb3['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2ab375['destroy']();}async['_restoreRevision'](_0x255dfc){const _0x56472c=this['editor'],_0x46a9fd=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4fa0ce=_0x56472c['plugins']['get']('RevisionTracker'),_0x3722e3=_0x56472c['plugins']['get']('RevisionHistoryUtils'),_0x5cd14c=_0x46a9fd['repository']['getRevision'](_0x255dfc);let _0x40a804,_0x24ee1f,_0x2b543b;try{await _0x3722e3['loadRevisionData'](_0x5cd14c,this['adapter']),_0x40a804=_0x3722e3['getRevisionDocumentData'](_0x5cd14c),_0x24ee1f=_0x3722e3['getRevisionRootsAttributes'](_0x5cd14c);}catch(_0x37922b){return void console['error'](_0x37922b);}_0x56472c['model']['change'](_0x51b3e8=>{for(const _0x3bd2e9 of Array['from'](_0x56472c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x51b3e8['removeMarker'](_0x3bd2e9);}),_0x46a9fd['isReady']=!0x1,_0x56472c['model']['enqueueChange'](_0x331d89=>{_0x331d89['setSelection'](null),_0x331d89['removeSelectionAttribute'](_0x56472c['model']['document']['selection']['getAttributeKeys']());const _0x3bdf25=Object['keys'](_0x40a804);for(const _0x37ce3b of _0x56472c['model']['document']['roots'])'$graveyard'!=_0x37ce3b['rootName']&&_0x37ce3b['isAttached']()&&!_0x3bdf25['includes'](_0x37ce3b['rootName'])&&_0x331d89['detachRoot'](_0x37ce3b);for(const _0xed5811 of _0x3bdf25){let _0x5ca8f6=_0x56472c['model']['document']['getRoot'](_0xed5811);_0x5ca8f6&&_0x5ca8f6['isAttached']()||(_0x5ca8f6=_0x331d89['addRoot'](_0xed5811));const _0x370865=_0x24ee1f[_0xed5811],_0x3a11fc=Object['keys'](_0x370865),_0xb54894=_0x40a804[_0xed5811];for(const _0x12cfba of _0x5ca8f6['getAttributeKeys']())_0x3a11fc['includes'](_0x12cfba)||_0x331d89['removeAttribute'](_0x12cfba,_0x5ca8f6);for(const _0x502585 of _0x3a11fc)_0x331d89['setAttribute'](_0x502585,_0x24ee1f[_0xed5811][_0x502585],_0x5ca8f6);_0x331d89['remove'](_0x331d89['createRangeIn'](_0x5ca8f6)),_0x331d89['insert'](_0x56472c['data']['parse'](_0xb54894,_0x5ca8f6),_0x5ca8f6,0x0);}});const _0x130586=m(_0x56472c['locale'],'Restored');if(_0x5cd14c['name'])_0x2b543b=-0x1==_0x5cd14c['name']['indexOf'](_0x130586)?_0x130586+':\x20'+_0x5cd14c['name']:_0x5cd14c['name'];else _0x2b543b=_0x130586+':\x20'+(_0x5cd14c['createdAt']['toLocaleDateString'](_0x56472c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5cd14c['createdAt']['toLocaleTimeString'](_0x56472c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4fa0ce['saveRevision']({'name':_0x2b543b}),_0x46a9fd['isReady']=!0x0,_0x56472c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,vi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x233e89){super(_0x233e89),this['_revisionViewer']=_0x233e89['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2f7135=this['_revisionsRepository']['_revisions'],_0x4bd184=this['_createRevisionActions'](),_0x4558ed=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x2f7135,_0x4bd184,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',(_0x3a047c,_0x50fb79)=>{_0x50fb79['revisionViews']['on']('add',(_0x485018,_0x5e8a6e)=>{_0x5e8a6e['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)),_0x4558ed['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x497125=this['_revisionsRepository']['getRevision'](0x0);if(_0x497125){const _0x4f6149=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x497125['id']);this['_revisionViewer']['compare'](_0x497125,_0x4f6149);}}['_handleRevisionSelected'](_0x1a1201,_0x3acf15){const _0x26b7ce=this['_revisionsRepository']['getRevision'](_0x3acf15['id']),_0x17de14=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x26b7ce['id']);this['_revisionViewer']['compare'](_0x26b7ce,_0x17de14);}['_handleRevisionSetName'](_0x14eaaa,_0x1d3da9){this['_revisionsRepository']['getRevision'](_0x1d3da9['id'])['setName'](_0x1d3da9['name']);}['_handleDiffChange'](_0x3d9b31,_0x368422,_0x534746){const _0x19994a=this['_revisionsRepository']['getRevisionsInDiff'](_0x534746);_0x19994a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x19994a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x19994a[0x0]));}['_createRevisionActions'](){const _0x1aa224=this['editor'],_0x4d4c28=d['availableRevisionActions'],_0x106447=_0x1aa224['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x106447['length'])return _0x106447['map'](_0x7bf46=>{const _0x47b798='string'==typeof _0x7bf46?Object['assign']({},_0x4d4c28[_0x7bf46]):_0x7bf46;return _0x47b798['action']=_0x47b798['action']['bind'](this,_0x1aa224),_0x47b798['isVisible']&&(_0x47b798['isVisible']=_0x47b798['isVisible']['bind'](this,_0x1aa224)),_0x47b798;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1b3c19},_0x440070)=>{const _0xe5fdf5=_0x1b3c19['get'](u),_0x103c82=_0xe5fdf5['repository'];let _0x13c02d=_0xe5fdf5['diff']['newRevisionId'],_0x58c657=_0x440070['id'];_0x103c82['getIndex'](_0x13c02d)>_0x103c82['getIndex'](_0x58c657)&&([_0x13c02d,_0x58c657]=[_0x58c657,_0x13c02d]),_0xe5fdf5['compare'](_0x13c02d,_0x58c657);},'isVisible':({plugins:_0x109df9},_0x37884b)=>{const _0x308684=_0x109df9['get'](u);return!(_0x308684['repository']['getRevisionsInDiff'](_0x308684['diff'])['length']>0x2)&&!_0x37884b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3391b7,{id:_0x264b81})=>{_0x3391b7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x264b81);},'isVisible':({plugins:_0x13691b},_0x2832c3)=>!!_0x13691b['get'](u)['repository']['getLaterVisibleRevision'](_0x2832c3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x32a717},{id:_0x188a16,revisionNameView:_0x37bd38})=>{const _0x2d0d5e=_0x32a717['get'](u),_0x16e190=_0x2d0d5e['repository']['getEarlierVisibleRevision'](_0x188a16);_0x2d0d5e['compare'](_0x188a16,_0x16e190),_0x37bd38['focus'](),_0x37bd38['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x372790,_0x1a9878){super(_0x372790),this['_view']=_0x1a9878,this['_toolbarConfig']=st(_0x372790['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x4a1e13){const _0x25c199=this['editor'],_0x2db269=this['view'],_0x2502d=_0x25c199['editing']['view'],_0x54339f=_0x2db269['editable'],_0x405dfb=_0x2502d['document']['getRoot']();_0x54339f['name']=_0x405dfb['rootName'],_0x2db269['render']();const _0x39a40d=_0x54339f['element'];this['setEditableElement'](_0x54339f['name'],_0x39a40d),_0x2db269['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2502d['attachDomRoot'](_0x39a40d),this['_elementReplacer']['replace'](_0x4a1e13,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x16827d=this['view'],_0x439040=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x439040['detachDomRoot'](_0x16827d['editable']['name']),_0x16827d['destroy']();}['_initToolbar'](){const _0x213d4c=this['view'];_0x213d4c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x213d4c['stickyPanel']['limiterElement']=_0x213d4c['element'],_0x213d4c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x49f03f})=>_0x49f03f),_0x213d4c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x213d4c['toolbar']);}}class ii extends _0x4534b8{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x15d8e5,_0x1db572,_0x5c3a0a={}){super(_0x15d8e5),this['stickyPanel']=new _0x2a6c1b(_0x15d8e5),this['toolbar']=new _0x1b55fe(_0x15d8e5,{'shouldGroupWhenFull':_0x5c3a0a['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x15d8e5,_0x1db572);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1e99d3(_0x1eb8e8){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x40944e,_0x204280){super(_0x204280),this['sourceElement']=_0x40944e,this['model']['document']['createRoot']();const _0x2fc0b1=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x2fc0b1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xcd95d,_0x48c6d1){const _0x3d57df=new this(_0xcd95d,_0x48c6d1);return await _0x3d57df['initPlugins'](),await _0x3d57df['ui']['init'](_0xcd95d),await _0x3d57df['data']['init'](_0x3d57df['config']['get']('initialData')||''),_0x3d57df['fire']('ready'),_0x3d57df;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0x2182b9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe53315){function _0x25c4f4(_0x4d1acd){return _0x4d1acd['map'](_0x44c87e=>String['fromCharCode'](_0x44c87e))['join']('');}super(_0xe53315),this['result']='end',_0xe53315[_0x25c4f4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c4f4([0x76,0x69,0x65,0x77])][_0x25c4f4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25c4f4([0x61,0x75,0x74,0x6f]),_0xe53315[_0x25c4f4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x25c4f4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25c4f4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x25c4f4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x25c4f4([0x6f,0x6b])});}}class ht extends _0x2182b9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x53c757){if(super(_0x53c757),!this['editor']['config']['get']('revisionHistory'))throw new _0x462c45('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2f105c=>this['_showRevisionViewer']({..._0x2f105c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x120dd8=>this['_closeRevisionViewer'](_0x120dd8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x6772c3=>this['_restoreRevision'](_0x6772c3)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x38adbe){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x38adbe;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x462794){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x462794);}['getRevision'](_0x1e48c8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1e48c8);}['getRevisions'](_0x2726e4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2726e4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x177e6d=this['editor'],_0x33974e=_0x35fa21(_0x177e6d,p),_0x3607d0=_0x177e6d['plugins']['get']('RevisionTracker'),_0x1f3b2c=_0x177e6d['plugins']['get']('Users')['users'];return _0x33974e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x33974e['lazyRoots'],(_0x33974e['plugins']['push'](at,u,v,class extends _0x2182b9{static get['requires'](){return[u,'Users'];}['init'](){const _0x3b5c39=this['editor']['plugins']['get']('Users');for(const _0x30814f of _0x1f3b2c)_0x30814f['isAnonymous']||_0x3b5c39['getUser'](_0x30814f['id'])||_0x3b5c39['addUser'](_0x30814f);const _0xdcd7a8=_0x3607d0['repository']['getRevisions']();let _0x19b6ee=null;const _0x3ad310=this['editor']['plugins']['get']('RevisionViewer');_0x3ad310['adapter']=_0x3607d0['adapter'],_0x3ad310['bind']('isEnabled')['to'](_0x3607d0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x177e6d,'isReadOnly',_0x45cc1a=>!_0x45cc1a);for(const _0x391b11 of _0xdcd7a8){const _0x56abb6=null===_0x391b11['creator'];if(_0x56abb6&&_0x391b11['toVersion']===_0x391b11['fromVersion'])continue;const _0x3e04f9=_0x391b11['toJSON']();_0x3ad310['addRevisionData'](_0x3e04f9,(_0x135c2a,_0x116b44,_0x543d44)=>{if(_0x56abb6){if(_0x19b6ee)_0x19b6ee['_update'](_0x135c2a,_0x116b44);else{if(!_0x116b44){const _0x5e6a4f=_0x543d44['toJSON']();_0x5e6a4f['id']=_0x3ca1e2(),_0x3607d0['saveRevision'](_0x5e6a4f,_0x543d44['toVersion'])['then'](_0xe6bbc=>{_0x19b6ee=_0xe6bbc;});}}}else _0x391b11['_update'](_0x135c2a,_0x116b44);});}}},d),_0x33974e);}['_enhanceShowRevisionViewerCallback'](){const _0x354da1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x166611=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x40b773=this['editor']['plugins']['get']('Autosave');await _0x40b773['save']();}else await _0x166611['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2f5cab=this['editor']['plugins']['get']('Dialog');_0x2f5cab['isOpen']&&_0x2f5cab['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x363496=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x12e402 of _0x363496)_0x12e402['class']=_0x12e402['class']?_0x12e402['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x3917c8=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x3917c8&&_0x3917c8['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0xe31a56=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0xe31a56&&_0xe31a56['setAttribute']('tabindex','-1');}}const _0x49c4e5=this['_getRevisionViewerEditorConfig']();return _0x354da1(_0x49c4e5)['then'](_0x25b7bb=>{return(this['_viewerEditor']=_0x25b7bb,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'),_0x25b7bb);})['catch'](_0x12329b=>(console['error'](_0x12329b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1e2fe2=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x434681=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2f3c1e of _0x434681)_0x2f3c1e['class']='ck-tab-panel_disabled'===_0x2f3c1e['class']?'':_0x2f3c1e['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x97ee74=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x97ee74&&_0x97ee74['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x4e09a6=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x4e09a6&&_0x4e09a6['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1e2fe2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4c14f9=this['editor']['plugins']['get']('Annotations');_0x4c14f9['refreshVisibility'](),_0x4c14f9['refreshPositioning']();}});});}['_showRevisionViewer'](_0x533233){const _0x24206f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22b53e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x50d7fd=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x50d7fd,_0x533233)['then'](_0x352dbb=>(_0x22b53e['style']['display']='block',_0x24206f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x352dbb));}['_closeRevisionViewer'](_0x3ced53){const _0x20b8b4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x20b8b4['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3ced53['destroy']();}async['_restoreRevision'](_0x31d454){const _0x5eeaa5=this['editor'],_0x41b15c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2f5599=_0x5eeaa5['plugins']['get']('RevisionTracker'),_0x454b3e=_0x5eeaa5['plugins']['get']('RevisionHistoryUtils'),_0x3c0043=_0x41b15c['repository']['getRevision'](_0x31d454);let _0xc09e84,_0x4f0c6f,_0x2485ae;try{await _0x454b3e['loadRevisionData'](_0x3c0043,this['adapter']),_0xc09e84=_0x454b3e['getRevisionDocumentData'](_0x3c0043),_0x4f0c6f=_0x454b3e['getRevisionRootsAttributes'](_0x3c0043);}catch(_0x9877b0){return void console['error'](_0x9877b0);}_0x5eeaa5['model']['change'](_0x3cefd4=>{for(const _0x33b030 of Array['from'](_0x5eeaa5['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3cefd4['removeMarker'](_0x33b030);}),_0x41b15c['isReady']=!0x1,_0x5eeaa5['model']['enqueueChange'](_0x3bbe47=>{_0x3bbe47['setSelection'](null),_0x3bbe47['removeSelectionAttribute'](_0x5eeaa5['model']['document']['selection']['getAttributeKeys']());const _0x16621f=Object['keys'](_0xc09e84);for(const _0x14b7ae of _0x5eeaa5['model']['document']['roots'])'$graveyard'!=_0x14b7ae['rootName']&&_0x14b7ae['isAttached']()&&!_0x16621f['includes'](_0x14b7ae['rootName'])&&_0x3bbe47['detachRoot'](_0x14b7ae);for(const _0x4c02e7 of _0x16621f){let _0x47d93d=_0x5eeaa5['model']['document']['getRoot'](_0x4c02e7);_0x47d93d&&_0x47d93d['isAttached']()||(_0x47d93d=_0x3bbe47['addRoot'](_0x4c02e7));const _0x15a86c=_0x4f0c6f[_0x4c02e7],_0x4e6a72=Object['keys'](_0x15a86c),_0x2c8ed5=_0xc09e84[_0x4c02e7];for(const _0x1d41ab of _0x47d93d['getAttributeKeys']())_0x4e6a72['includes'](_0x1d41ab)||_0x3bbe47['removeAttribute'](_0x1d41ab,_0x47d93d);for(const _0x5610b5 of _0x4e6a72)_0x3bbe47['setAttribute'](_0x5610b5,_0x4f0c6f[_0x4c02e7][_0x5610b5],_0x47d93d);_0x3bbe47['remove'](_0x3bbe47['createRangeIn'](_0x47d93d)),_0x3bbe47['insert'](_0x5eeaa5['data']['parse'](_0x2c8ed5,_0x47d93d),_0x47d93d,0x0);}});const _0x564a7c=m(_0x5eeaa5['locale'],'Restored');if(_0x3c0043['name'])_0x2485ae=-0x1==_0x3c0043['name']['indexOf'](_0x564a7c)?_0x564a7c+':\x20'+_0x3c0043['name']:_0x3c0043['name'];else _0x2485ae=_0x564a7c+':\x20'+(_0x3c0043['createdAt']['toLocaleDateString'](_0x5eeaa5['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3c0043['createdAt']['toLocaleTimeString'](_0x5eeaa5['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2f5599['saveRevision']({'name':_0x2485ae}),_0x41b15c['isReady']=!0x0,_0x5eeaa5['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,fi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|