@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250610.0 → 0.0.0-nightly-20250613.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 +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +4 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +0 -37
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +1 -6
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +2 -2
- 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
|
-
_0x5bb501(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xb47176){super(),this['id']=_0xb47176['id']||_0x2476e1(),this['creator']=_0xb47176['creator']||null,this['authors']=_0xb47176['authors']||[],this['diffData']=_0xb47176['diffData']||null,this['toVersion']=_0xb47176['toVersion']||0x0,this['fromVersion']=_0xb47176['fromVersion']||0x0,this['set']('name',_0xb47176['name']||''),this['set']('createdAt',_0xb47176['createdAt']||new Date()),this['set']('attributes',_0xb47176['attributes']||{});}['setName'](_0x8da1e6){this['_update']({'name':_0x8da1e6});}['setAttribute'](_0x526c91,_0x1ce945){const _0x41979c=_0xbc63f2(this['attributes']);_0x440da5(_0x41979c,_0x526c91,_0x1ce945),this['_update']({'attributes':_0x41979c});}['removeAttribute'](_0x4a3680){const _0x130819=_0xbc63f2(this['attributes']);_0x288554(_0x130819,_0x4a3680),this['_update']({'attributes':_0x130819});}['_update'](_0x1ec7f2,_0x17848e=!0x1){let _0x12dc52=!0x1;const _0x111ee7={'id':this['id']},_0x2f20ce=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x25896c of _0x2f20ce){const _0x411efd=_0x1ec7f2[_0x25896c];void 0x0!==_0x411efd&&_0x411efd!==this[_0x25896c]&&(this[_0x25896c]=_0x411efd,_0x111ee7[_0x25896c]=_0x411efd,_0x12dc52=!0x0);}_0x12dc52&&(_0x111ee7['authors']&&(_0x111ee7['authorsIds']=_0x111ee7['authors']['map'](_0x1a657a=>_0x1a657a['id']),delete _0x111ee7['authors']),this['fire']('_update',_0x111ee7,_0x17848e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x27f01a=>_0x27f01a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x1ffbe8{['_revisions'];static get['requires'](){return[_0x114f31];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3168c5){super(_0x3168c5),this['_revisions']=new _0x5e0d45();}['afterInit'](){!async function(_0x125326){const _0x3f43d1=_0x4973a2([0x4c,0x43,0x30,0x44,0x42,0x61,0x7a,0x75,0x53,0x31,0x68,0x36,0x6d,0x6c,0x4f,0x59,0x65,0x34,0x77,0x66,0x63,0x69,0x6a,0x46,0x6e,0x67,0x4a,0x47,0x37,0x39,0x6f,0x32,0x45,0x4d,0x56,0x51,0x72,0x70,0x58,0x71,0x62,0x6b,0x64,0x50,0x35,0x41,0x4b,0x76,0x5a,0x55,0x49,0x79,0x48,0x33,0x74,0x78,0x73,0x4e,0x54,0x57,0x38,0x52]),_0x2831cf=0xeb829,_0xad1b87=0x51adfefa,_0x1069df=0x51aa94a2^_0xad1b87,_0x5a909e=window[_0x4973a2([0x44,0x61,0x74,0x65])][_0x4973a2([0x6e,0x6f,0x77])](),_0x1b7c8c=_0x125326[_0x4973a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6da138=new window[(_0x4973a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46d7b2=>{_0x1b7c8c[_0x4973a2([0x6f,0x6e,0x63,0x65])](_0x4973a2([0x72,0x65,0x61,0x64,0x79]),_0x46d7b2);}),_0x14bf51={[_0x4973a2([0x6b,0x74,0x79])]:_0x4973a2([0x45,0x43]),[_0x4973a2([0x75,0x73,0x65])]:_0x4973a2([0x73,0x69,0x67]),[_0x4973a2([0x63,0x72,0x76])]:_0x4973a2([0x50,0x2d,0x32,0x35,0x36]),[_0x4973a2([0x78])]:_0x4973a2([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]),[_0x4973a2([0x79])]:_0x4973a2([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]),[_0x4973a2([0x61,0x6c,0x67])]:_0x4973a2([0x45,0x53,0x32,0x35,0x36])},_0x254b4e=_0x1b7c8c[_0x4973a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4973a2([0x67,0x65,0x74])](_0x4973a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59ad53(){let _0x1329be,_0x53f615=null,_0x153f08=null;try{if(_0x254b4e==_0x4973a2([0x47,0x50,0x4c]))return _0x4973a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1329be=_0x5f0e8e(),!_0x1329be)return _0x4973a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1329be[_0x4973a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x153f08=_0x2bbeec(_0x1329be[_0x4973a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1329be[_0x4973a2([0x6a,0x74,0x69])])),await _0x45a49e()?_0x432f81()?_0x498b7c()?_0x4973a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x643f36()?(_0x1329be[_0x4973a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4973a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53f615=_0x2870a6(_0x4973a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1329be[_0x4973a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4973a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x53f615=_0x2870a6(_0x4973a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3106c4()):_0x4973a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4973a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4973a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4973a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x498b7c(){const _0x52a6e6=[_0x4973a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4973a2([0x74,0x72,0x69,0x61,0x6c])][_0x4973a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1329be[_0x4973a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a909e/0x3e8:0xe10*_0x1069df;return _0x1329be[_0x4973a2([0x65,0x78,0x70])]<_0x52a6e6;}function _0x432f81(){const _0x50aaff=_0x1329be[_0x4973a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x50aaff)return!0x1;if(_0x50aaff[_0x4973a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4973a2([0x2a])))return!0x0;if(_0x50aaff[_0x4973a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4973a2([0x52,0x48])))return!0x0;if(_0x50aaff[_0x4973a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4973a2([0x52,0x52,0x48]))){if(_0x3b82ca())return!0x0;if(_0x25fde5()||_0x45b3b9())return!0x0;}return!0x1;}function _0x643f36(){const _0x26b417=_0x1329be[_0x4973a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26b417||0x0==_0x26b417[_0x4973a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1442d2}=new URL(window[_0x4973a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26b417[_0x4973a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1442d2))return!0x0;const _0x5ae090=_0x1442d2[_0x4973a2([0x73,0x70,0x6c,0x69,0x74])](_0x4973a2([0x2e]));return _0x26b417[_0x4973a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23a844=>_0x23a844[_0x4973a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4973a2([0x2a])))[_0x4973a2([0x6d,0x61,0x70])](_0x3871f5=>_0x3871f5[_0x4973a2([0x73,0x70,0x6c,0x69,0x74])](_0x4973a2([0x2e])))[_0x4973a2([0x73,0x6f,0x6d,0x65])](_0x5a4586=>_0x5ae090[_0x4973a2([0x65,0x76,0x65,0x72,0x79])]((_0x5de182,_0x3e7eff)=>_0x5a4586[_0x3e7eff]===_0x5de182||_0x5a4586[_0x3e7eff]===_0x4973a2([0x2a])));}function _0x3106c4(){return _0x53f615&&_0x153f08?new window[(_0x4973a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21b9cf,_0x175d29)=>{_0x53f615[_0x4973a2([0x74,0x68,0x65,0x6e])](_0x21b9cf,_0x175d29),_0x153f08[_0x4973a2([0x74,0x68,0x65,0x6e])](_0x1c5f1d=>{_0x1c5f1d!=_0x4973a2([0x56,0x61,0x6c,0x69,0x64])&&_0x21b9cf(_0x1c5f1d);},_0x175d29);}):_0x53f615||_0x153f08||_0x4973a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2bbeec(_0x1c3424,_0x214552){return new window[(_0x4973a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e89fb=>{if(_0x3c901a())return _0x1e89fb(_0x4973a2([0x56,0x61,0x6c,0x69,0x64]));_0x1fda8a(),_0x1b7c8c[_0x4973a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4973a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bec55=!0x1;const _0x6aee13=_0x2476e1();function _0x36fcc5(_0x51afb4){return!!_0x51afb4&&(typeof _0x51afb4===_0x4973a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51afb4===_0x4973a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51afb4[_0x4973a2([0x74,0x68,0x65,0x6e])]===_0x4973a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51afb4[_0x4973a2([0x63,0x61,0x74,0x63,0x68])]===_0x4973a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd2b75b(_0xb6ecf2){_0x2e4a01(_0xb6ecf2)[_0x4973a2([0x74,0x68,0x65,0x6e])](_0x212cf8=>{if(!_0x212cf8||_0x212cf8[_0x4973a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4973a2([0x6f,0x6b]))return _0x4973a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43153b(_0x31dcec(_0x6aee13+_0x214552))!=_0x212cf8[_0x4973a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4973a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4973a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4973a2([0x74,0x68,0x65,0x6e])](_0x9305c=>(_0x4e3eef(),_0x9305c),()=>{const _0x396e2e=_0x38f118();return null==_0x396e2e?(_0x4e3eef(),_0x4973a2([0x56,0x61,0x6c,0x69,0x64])):_0x4973a2(_0x5a909e-_0x396e2e>(0x75a17afa^_0xad1b87)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4973a2([0x74,0x68,0x65,0x6e])](_0x1e89fb)[_0x4973a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e89fb(_0x4973a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x353d4a=0x519b107a^_0xad1b87;function _0x4e3eef(){const _0x4120a3=_0x4973a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x43153b(_0x31dcec(_0x1c3424)),_0x4d0d97=_0x40f329(_0x43153b(window[_0x4973a2([0x4d,0x61,0x74,0x68])][_0x4973a2([0x63,0x65,0x69,0x6c])](_0x5a909e/_0x353d4a)));window[_0x4973a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4973a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4120a3,_0x4d0d97);}function _0x38f118(){const _0x3517e4=_0x4973a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x43153b(_0x31dcec(_0x1c3424)),_0x22aeee=window[_0x4973a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4973a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3517e4);return _0x22aeee?window[_0x4973a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40f329(_0x22aeee),0x10)*_0x353d4a:null;}function _0x2e4a01(_0x1c6f67){return new window[(_0x4973a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55621b,_0x93f0a3)=>{_0x1c6f67[_0x4973a2([0x74,0x68,0x65,0x6e])](_0x55621b,_0x93f0a3),window[_0x4973a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x93f0a3,0x51ac2a3a^_0xad1b87);});}}_0x1b7c8c[_0x4973a2([0x6f,0x6e])](_0x4973a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37213c,_0x5db2b4)=>{if(_0x5db2b4[0x0]!=_0x1c3424)return _0x1e89fb(_0x4973a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5db2b4[0x1]={..._0x5db2b4[0x1],[_0x4973a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6aee13};},{[_0x4973a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4973a2([0x68,0x69,0x67,0x68])}),_0x1b7c8c[_0x4973a2([0x6f,0x6e])](_0x4973a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47c679=>{_0x36fcc5(_0x47c679[_0x4973a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bec55=!0x0,_0xd2b75b(_0x47c679[_0x4973a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4973a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4973a2([0x6c,0x6f,0x77])}),_0x6da138[_0x4973a2([0x74,0x68,0x65,0x6e])](()=>{_0x3bec55||_0x1e89fb(_0x4973a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c901a(){return _0x1b7c8c[_0x4973a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4973a2([0x76,0x69,0x65,0x77])][_0x4973a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4973a2([0x61,0x75,0x74,0x6f]);}function _0x1fda8a(){_0x1b7c8c[_0x4973a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4973a2([0x76,0x69,0x65,0x77])][_0x4973a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4973a2([0x61,0x75,0x74,0x6f]);}}function _0x2870a6(_0x474bb7){const _0x4216e2=[new window[(_0x4973a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1860e8=>setTimeout(_0x1860e8,0x51a4c036^_0xad1b87)),_0x6da138[_0x4973a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4973a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45d676=>{const _0x1fa5fe=0x51adfefd^_0xad1b87,_0xd0fe67=_0x125326[_0x4973a2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x27fa99(){_0xd0fe67[_0x4973a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1fa5fe&&_0x45d676();}_0x27fa99(),_0xd0fe67[_0x4973a2([0x6f,0x6e])](_0x4973a2([0x61,0x64,0x64]),_0x27fa99);})),new window[(_0x4973a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47798e=>{function _0x2d86ac(){for(const _0x2d99f3 in window)if(window[_0x4973a2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4973a2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2d99f3))&&window[_0x2d99f3]==_0x2831cf)return _0x47798e();_0x1b7c8c[_0x4973a2([0x73,0x74,0x61,0x74,0x65])]!=_0x4973a2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4973a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d86ac,0x51aded72^_0xad1b87);}_0x36896e(_0x4973a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2d86ac();})];return window[_0x4973a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4973a2([0x72,0x61,0x63,0x65])](_0x4216e2)[_0x4973a2([0x74,0x68,0x65,0x6e])](()=>_0x474bb7);}async function _0x3fc1ed(){if(await _0x6da138,_0x36896e(_0x4973a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x538499=_0x125326[_0x4973a2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4a2e36=_0x125326[_0x4973a2([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])](_0x538499[_0x4973a2([0x69,0x64])]),_0x13cc51=_0x4312b3(_0x4973a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x13cc51[_0x4973a2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x538499['id'],_0x4a2e36?_0x4a2e36['id']:null,!0x0),_0x13cc51[_0x4973a2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4973a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x13cc51[_0x4973a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x13cc51[_0x4973a2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2f269a,void(_0x13cc51[_0x4973a2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2f269a);}if(_0x36896e(_0x4973a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x301e47=_0x4312b3(_0x4973a2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x301e47[_0x4973a2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4973a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x301e47[_0x4973a2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x301e47[_0x4973a2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2f269a,_0x301e47[_0x4973a2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2f269a;}_0x1b7c8c[_0x4973a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4973a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f269a,_0x1b7c8c[_0x4973a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4973a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f269a,_0x1b7c8c[_0x4973a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4973a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b82ca(){return _0x36896e(_0x4973a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4312b3(_0x4973a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4973a2([0x73,0x74,0x61,0x74,0x65])]==_0x4973a2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x25fde5(){return _0x36896e(_0x4973a2([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 _0x45b3b9(){return _0x36896e(_0x4973a2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x28e292(_0x55b0df){const _0x41cd0d=_0xf1000b();_0x1b7c8c[_0x41cd0d]=_0x4973a2([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])+_0x55b0df,_0x55b0df[_0x4973a2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4973a2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf1000b()]=_0x2831cf),_0x55b0df!=_0x4973a2([0x56,0x61,0x6c,0x69,0x64])&&_0x3fc1ed();}function _0xf1000b(){const _0x34f12=window[_0x4973a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4973a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4973a2([0x6e,0x6f,0x77])]())[_0x4973a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4973a2([0x2e]),'');let _0x34bc89=_0x4973a2([0x4c]);for(let _0x145f98=0x0;_0x145f98<_0x34f12[_0x4973a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x145f98+=0x2){let _0x4b6918=window[_0x4973a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34f12[_0x4973a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145f98,_0x145f98+0x2));_0x4b6918>=_0x3f43d1[_0x4973a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b6918-=_0x3f43d1[_0x4973a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34bc89+=_0x3f43d1[_0x4b6918];}return _0x34bc89;}function _0x5f0e8e(){const _0x3286ed=_0x254b4e[_0x4973a2([0x73,0x70,0x6c,0x69,0x74])](_0x4973a2([0x2e]));if(0x3!=_0x3286ed[_0x4973a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13cc02(_0x3286ed[0x1]);function _0x13cc02(_0x1c7aa3){const _0x4a527a=_0x2fb6fa(_0x1c7aa3);return _0x4a527a&&_0x42d945()?_0x4a527a:null;function _0x42d945(){const _0x543db7=_0x4a527a[_0x4973a2([0x6a,0x74,0x69])],_0x39e3bf=window[_0x4973a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543db7[_0x4973a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x543db7[_0x4973a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x527041={..._0x4a527a,[_0x4973a2([0x6a,0x74,0x69])]:_0x543db7[_0x4973a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x543db7[_0x4973a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x527041[_0x4973a2([0x76,0x63])],_0x31dcec(_0x527041)==_0x39e3bf;}}}async function _0x45a49e(){let _0x3f71bf=!0x0;try{const _0x2016f9=_0x254b4e[_0x4973a2([0x73,0x70,0x6c,0x69,0x74])](_0x4973a2([0x2e])),[_0x165b22,_0xc7222d,_0x10ba8c]=_0x2016f9;return _0x1138c6(_0x165b22),await _0x57990c(_0x165b22,_0xc7222d,_0x10ba8c),_0x3f71bf;}catch{return!0x1;}function _0x1138c6(_0x11e549){const _0x1741f3=_0x2fb6fa(_0x11e549);_0x1741f3&&_0x1741f3[_0x4973a2([0x61,0x6c,0x67])]==_0x4973a2([0x45,0x53,0x32,0x35,0x36])||(_0x3f71bf=!0x1);}async function _0x57990c(_0x5dfbc5,_0x407306,_0x219a84){const _0x2ef167=window[_0x4973a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4973a2([0x66,0x72,0x6f,0x6d])](_0x1969ea(_0x219a84),_0x319828=>_0x319828[_0x4973a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x582de2=new window[(_0x4973a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4973a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5dfbc5+_0x4973a2([0x2e])+_0x407306),_0x22a021=window[_0x4973a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4973a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22a021)return;const _0x39e62c=await _0x22a021[_0x4973a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4973a2([0x6a,0x77,0x6b]),_0x14bf51,{[_0x4973a2([0x6e,0x61,0x6d,0x65])]:_0x4973a2([0x45,0x43,0x44,0x53,0x41]),[_0x4973a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4973a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4973a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22a021[_0x4973a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4973a2([0x6e,0x61,0x6d,0x65])]:_0x4973a2([0x45,0x43,0x44,0x53,0x41]),[_0x4973a2([0x68,0x61,0x73,0x68])]:{[_0x4973a2([0x6e,0x61,0x6d,0x65])]:_0x4973a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39e62c,_0x2ef167,_0x582de2)||(_0x3f71bf=!0x1);}}function _0x2fb6fa(_0x84960d){return _0x84960d[_0x4973a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4973a2([0x65,0x79]))?JSON[_0x4973a2([0x70,0x61,0x72,0x73,0x65])](_0x1969ea(_0x84960d)):null;}function _0x1969ea(_0x29ab3a){return window[_0x4973a2([0x61,0x74,0x6f,0x62])](_0x29ab3a[_0x4973a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4973a2([0x2b]))[_0x4973a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4973a2([0x2f])));}function _0x31dcec(_0x565693){let _0x504016=0x1505;function _0x30959e(_0x443d3a){for(let _0x4aef61=0x0;_0x4aef61<_0x443d3a[_0x4973a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4aef61++){const _0x273c5f=_0x443d3a[_0x4973a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4aef61);_0x504016=(_0x504016<<0x5)+_0x504016+_0x273c5f,_0x504016&=_0x504016;}}function _0x424be0(_0x3678d4){Array[_0x4973a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3678d4)?_0x3678d4[_0x4973a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x424be0):_0x3678d4&&typeof _0x3678d4==_0x4973a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4973a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3678d4)[_0x4973a2([0x73,0x6f,0x72,0x74])]()[_0x4973a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x540333,_0x3d2b4e])=>{_0x30959e(_0x540333),_0x424be0(_0x3d2b4e);}):_0x30959e(window[_0x4973a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3678d4));}return _0x424be0(_0x565693),_0x504016>>>0x0;}function _0x43153b(_0x428373){return _0x428373[_0x4973a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4973a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4973a2([0x30]));}function _0x40f329(_0x5854e1){return _0x5854e1[_0x4973a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4973a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4973a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x36896e(_0x45f615){return _0x1b7c8c[_0x4973a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4973a2([0x68,0x61,0x73])](_0x45f615);}function _0x4312b3(_0x40f9f3){return _0x1b7c8c[_0x4973a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4973a2([0x67,0x65,0x74])](_0x40f9f3);}function _0x2f269a(){}function _0x4973a2(_0x252f98){return _0x252f98['map'](_0x1d471=>String['fromCharCode'](_0x1d471))['join']('');}_0x28e292(await _0x59ad53());}(this);}['createRevision'](_0x2726e3){const _0x52fb32=this['editor']['plugins']['get']('Users');return new I({'id':_0x2726e3['id'],'name':_0x2726e3['name'],'creator':_0x2726e3['creatorId']?_0x52fb32['getUser'](_0x2726e3['creatorId']):null,'diffData':_0x2726e3['diffData']||_0x2726e3['data'],'authors':_0x2726e3['authorsIds']['map'](_0x59029c=>_0x52fb32['getUser'](_0x59029c)),'createdAt':new Date(_0x2726e3['createdAt']),'attributes':_0x2726e3['attributes'],'fromVersion':_0x2726e3['fromVersion'],'toVersion':_0x2726e3['toVersion']});}['addRevision'](_0x514c80,_0x525b98=0x0){this['_revisions']['add'](_0x514c80,_0x525b98);}['getRevision'](_0x1357bd){return this['_revisions']['get'](_0x1357bd);}['getRevisions'](_0x37babb={'toJSON':!0x1}){const _0x31a174=Array['from'](this['_revisions']);return _0x31a174['reverse'](),_0x37babb['toJSON']?_0x31a174['map'](_0x51347d=>_0x51347d['toJSON']()):_0x31a174;}['getIndex'](_0x408bc0){return this['_revisions']['getIndex'](_0x408bc0);}['getEarlierVisibleRevision'](_0x3460e0){const [,_0x5497c0]=this['getRevisionsIterator'](_0x3460e0,{'direction':'earlier'});return _0x5497c0;}['getLaterVisibleRevision'](_0x172cd6){const [,_0x1cc5d2]=this['getRevisionsIterator'](_0x172cd6,{'direction':'later'});return _0x1cc5d2;}['getRevisionsInDiff'](_0x412004){const _0x2040f9=[];for(const _0x53e0ef of this['getRevisionsIterator'](_0x412004['newRevisionId']))if(_0x2040f9['push'](_0x53e0ef),_0x53e0ef['id']===_0x412004['oldRevisionId'])break;return _0x2040f9;}*['getRevisionsIterator'](_0x36dd9a,{direction:_0x140016='earlier',filter:_0x46ba62=()=>!0x0}={}){const _0x1821d0='earlier'===_0x140016?0x1:-0x1;let _0x51daf8=this['_revisions']['get'](_0x36dd9a),_0x5cd0f4=this['getIndex'](_0x51daf8);for(yield _0x51daf8;_0x51daf8;){if(_0x5cd0f4+=_0x1821d0,_0x51daf8=this['getRevision'](_0x5cd0f4),!_0x51daf8)return;_0x46ba62(_0x51daf8)&&(yield _0x51daf8);}}}class $ extends _0x1ffbe8{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3534d7,'c'],[_0x177767,'a'],[_0xdbe2cb,'e'],[_0x40e825,'r'],[_0x5d4f5a,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3534d7],['a',_0x177767],['e',_0xdbe2cb],['r',_0x40e825],['u',_0x5d4f5a]]);async['loadRevisionData'](_0x47cfdb,_0x1817c5){if(_0x47cfdb['diffData']||!_0x1817c5)return;const _0x317576=this['editor']['config']['get']('collaboration.channelId'),_0x47ef52=await _0x1817c5['getRevision']({'channelId':_0x317576,'revisionId':_0x47cfdb['id']});_0x47cfdb['diffData']=_0x47ef52['diffData'];}['getRevisionDocumentData'](_0x4c070c){const _0x49f99b={};for(const _0x57c59a in _0x4c070c['diffData']){if(_0x4c070c['diffData'][_0x57c59a]['attachChange']&&!_0x4c070c['diffData'][_0x57c59a]['attachChange']['isAttached'])continue;const _0x5028cb=this['_removeRevisionMarkers'](JSON['parse'](_0x4c070c['diffData'][_0x57c59a]['insertions'])),_0x155d4a=this['editor']['editing']['view']['document'],_0x5006db=new _0x514782(_0x155d4a,_0x5028cb['map'](_0x27ef93=>this['_getViewFromDiffObj'](_0x27ef93,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x49f99b[_0x57c59a]=this['editor']['data']['processor']['toData'](_0x5006db),this['editor']['data']['processor']['useFillerType']('default');}return _0x49f99b;}['getRevisionRootsAttributes'](_0x5deec7){const _0x4f07e4={};for(const _0x1d879a in _0x5deec7['diffData'])_0x5deec7['diffData'][_0x1d879a]['attachChange']&&!_0x5deec7['diffData'][_0x1d879a]['attachChange']['isAttached']||(_0x4f07e4[_0x1d879a]=_0x5deec7['diffData'][_0x1d879a]['attributesAfter']||{});return _0x4f07e4;}['_getTypeCharForViewElement'](_0x21ed2f){return this['_viewClassToTypeChar']['get'](_0x21ed2f['constructor']);}['_getViewFromDiffObj'](_0x189c4d,_0x3582e6){const _0x25aa1a=this['editor']['editing']['view']['document'];if('string'==typeof _0x189c4d)return new _0x216a54(_0x25aa1a,_0x189c4d);{let _0x4ac88b,_0x5c00e4;_0x5c00e4='u'==_0x189c4d['type']||'r'==_0x189c4d['type']?[]:_0x189c4d['children']['map'](_0x440565=>this['_getViewFromDiffObj'](_0x440565,_0x3582e6));const _0x412e21=this['_typeCharToViewClass']['get'](_0x189c4d['type'])||_0x4d12e0,_0x5a28fe=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4ac88b=new _0x412e21(_0x25aa1a,_0x189c4d['name'],_0x189c4d['attributes'],_0x5c00e4),'u'==_0x189c4d['type']&&_0x189c4d['children'][0x0]){const _0x2117fe=_0x189c4d['children'][0x0];if(_0x4ac88b['render']=function(_0x50f56a){const _0x6783fa=_0x50f56a['createElement']('div');return _0x6783fa['innerHTML']=_0x2117fe,_0x6783fa['childNodes'][0x0];},_0x3582e6){const _0x5afbaa=new _0x514782(_0x25aa1a);_0x5afbaa['_appendChild'](_0x4ac88b);const _0x5838d7=Array['from'](_0x5a28fe['viewChildrenToDom'](_0x5afbaa,{'bind':!0x1})),_0x31a540=_0x5a28fe['domDocument']['createElement']('div');_0x31a540['append'](..._0x5838d7),_0x4ac88b=Array['from'](_0x5a28fe['domChildrenToView'](_0x31a540))[0x0];}}else{if('r'==_0x189c4d['type']&&_0x189c4d['children'][0x0]){const _0x360a8e=_0x189c4d['children'][0x0];if(_0x4ac88b['render']=function(_0x2bd3d2){_0x2bd3d2['innerHTML']=_0x360a8e;},_0x3582e6){const _0x1a9996=new _0x514782(_0x25aa1a);_0x1a9996['_appendChild'](_0x4ac88b);const _0x453951=Array['from'](_0x5a28fe['viewChildrenToDom'](_0x1a9996,{'bind':!0x1})),_0x56d5a9=_0x5a28fe['domDocument']['createElement']('div');_0x56d5a9['append'](..._0x453951);const _0x171966=Array['from'](_0x5a28fe['domChildrenToView'](_0x56d5a9));_0x171966['length']>0x1?_0x4ac88b['_appendChild'](_0x171966):_0x4ac88b=_0x171966[0x0];}}}if(_0x189c4d['customProperties']){for(const [_0x23bca3,_0x4d71ab]of _0x189c4d['customProperties'])_0x4ac88b['_setCustomProperty'](_0x23bca3,_0x4d71ab);}const _0x16bd9e=void 0x0===_0x189c4d['fillerOffset']?null:_0x189c4d['fillerOffset'];return null!==_0x16bd9e&&(_0x4ac88b['getFillerOffset']=()=>_0x16bd9e),_0x4ac88b;}}['_makeModelFromViewString'](_0x49f00d){const _0xde303d=JSON['parse'](_0x49f00d),_0x46324e=this['editor']['editing']['view']['document'],_0xbfbe7d=new _0x514782(_0x46324e,_0xde303d['map'](_0x493e21=>this['_getViewFromDiffObj'](_0x493e21,!0x0)));return this['editor']['data']['toModel'](_0xbfbe7d);}['_removeRevisionMarkers'](_0xf203f8){return(_0xf203f8=_0xf203f8['filter'](_0x595461=>!_0x595461['name']||'revision-start'!==_0x595461['name']&&'revision-end'!==_0x595461['name']))['forEach'](_0x16eec9=>{'string'!=typeof _0x16eec9&&(_0x16eec9['children']=this['_removeRevisionMarkers'](_0x16eec9['children']),_0x16eec9['attributes']=_0x16eec9['attributes']['filter'](_0xd2b57e=>!_0xd2b57e[0x0]['startsWith']('data-revision-')));}),_0xf203f8;}}function R(_0x46bf56,_0x20cbf3,_0x3a7e71){const t=_0x46bf56['t'];switch(_0x20cbf3){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'},_0x3a7e71);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3a7e71);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 _0x1ffbe8{['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[_0x114f31,S,$,_0x138aa9];}constructor(_0x3cd3f7){super(_0x3cd3f7),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new K(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4803ee=_0x2476e1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4803ee},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 _0x1ce2db=this['repository']['getRevision'](0x0),_0x1b3d60=_0x1ce2db&&null===_0x1ce2db['creator']?_0x1ce2db:null;if(this['_continueCurrentRevision']=!!_0x1b3d60&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2d72a6=this['_source']['getCurrentRevisionId'](),_0x572fd5=this['repository']['getRevision'](_0x2d72a6);if(_0x572fd5)this['_startingVersion']=_0x572fd5['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x535018=this['_source']['history']['_operations']['find'](_0xd31351=>!_0xd31351['_isInit']),_0x3801e6=_0x535018?_0x535018['baseVersion']:this['_source']['history']['version'];_0x1ce2db?(_0x1ce2db['toVersion']<_0x3801e6&&_0x1ce2db['_update']({'toVersion':_0x3801e6}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1b3d60['id'],this['_startingVersion']=_0x1b3d60['fromVersion']):(this['_startingVersion']=_0x1ce2db['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3801e6,this['_continueCurrentRevision']=!0x1);}}else _0x1b3d60&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1b3d60['toVersion'],this['editor']['model']['document']['history']['version']),_0x1b3d60['fromVersion']===_0x1b3d60['toVersion']?(0x0!==_0x1b3d60['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1b3d60['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1b3d60['id'],this['_startingVersion']=_0x1b3d60['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',_0x25c94b=>!_0x25c94b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x7fec30=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a60ca;for(const _0x2b0cbc in _0x7fec30){const _0x3a826a=_0x2b0cbc,_0x1aa94d=_0x7fec30[_0x3a826a];if('revisionHistoryLicenseKeyValid'==_0x1aa94d||'revisionHistoryLicenseKeyInvalid'==_0x1aa94d||'revisionHistoryLicenseKeyExpired'==_0x1aa94d||'revisionHistoryLicenseKeyDomainLimit'==_0x1aa94d||'revisionHistoryLicenseKeyNotAllowed'==_0x1aa94d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1aa94d||'revisionHistoryLicenseKeyTrialLimit'==_0x1aa94d||'revisionHistoryLicenseKeyUsageLimit'==_0x1aa94d){delete _0x7fec30[_0x3a826a],_0x4a60ca=_0x1aa94d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4a60ca&&_0x7fec30['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4a60ca&&_0x7fec30['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4a60ca&&_0x7fec30['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4a60ca&&_0x7fec30['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a60ca&&_0x7fec30['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4a60ca&&_0x7fec30['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4a60ca&&_0x7fec30['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2c7569=this['repository']['getRevision'](0x0),_0xfa5ba5=await this['getRevisionDocumentData'](_0x2c7569),_0xb2fa8b=await this['getRevisionRootsAttributes'](_0x2c7569);this['_replaceEditorDataWithRevisionData'](_0xfa5ba5,_0xb2fa8b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x8bc3fd){this['_source']=_0x8bc3fd;}async['update'](){const _0x4e70af=await this['_source']['getLatestVersion']();if(_0x4e70af>this['currentRevision']['toVersion']){await this['_loadState']();const _0x144bd7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4e70af});_0x144bd7['authors']=_0x144bd7['authorsIds']['map'](_0xa4d358=>this['editor']['plugins']['get']('Users')['getUser'](_0xa4d358)),this['currentRevision']['_update'](_0x144bd7);}}async['saveRevision'](_0x451846={},_0x3bb30b=null){const _0x1cc1a8=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3bb30b>this['currentRevision']['toVersion']&&(_0x3bb30b=null),null===_0x3bb30b&&(_0x3bb30b=await this['_source']['getLatestVersion']());const _0x20a236=this['_getFromVersion'](_0x3bb30b),_0x451c77=this['buildRevisionData']({'from':_0x20a236,'to':_0x3bb30b});if(this['currentRevision']['toVersion']<_0x3bb30b){const _0x395b60=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3bb30b,'to':_0x3bb30b});_0x395b60['authors']=[],_0x395b60['authorsIds']=[],_0x395b60['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x395b60,!0x0),delete _0x395b60['authors'],_0x1cc1a8['push'](_0x395b60);}_0x451846['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x451846['name']=_0x451846['name']||null,_0x451846['id']=_0x451846['id']||_0x2476e1(),_0x451846={..._0x451846,..._0x451c77};const _0x3dd74f=this['addRevisionData'](_0x451846);_0x1cc1a8['push'](_0x451846);const _0x4180d5=this['repository']['getIndex'](_0x3dd74f);if(0x0!==_0x4180d5){const _0x4d03a0=this['repository']['getRevision'](_0x4180d5-0x1);if(_0x4d03a0['fromVersion']!==_0x3bb30b){const _0xefb97b=this['_revisionDataBuilder']['getData'](_0x3bb30b,_0x4d03a0['toVersion']),_0x4da984={'id':_0x4d03a0['id'],'diffData':_0xefb97b['diffData'],'authorsIds':_0xefb97b['authorsIds'],'authors':_0xefb97b['authorsIds']['map'](_0x4d6be2=>this['editor']['plugins']['get']('Users')['getUser'](_0x4d6be2)),'fromVersion':_0x3bb30b};_0x4d03a0===this['currentRevision']&&(_0x4da984['createdAt']=new Date(_0x451846['createdAt']['getTime']()+0xa)),_0x4d03a0['_update'](_0x4da984,!0x0),delete _0x4da984['authors'],_0x1cc1a8['push'](_0x4da984);}}if(this['adapter']){for(const _0x21825e of _0x1cc1a8)this['_bufferUpdate'](_0x21825e['id'],_0x21825e,!0x0);this['sendBufferedUpdates']();}return _0x3dd74f;}['addRevisionData'](_0x391bf0){const _0x4e22f8=this['repository']['createRevision'](_0x391bf0);return this['adapter']&&_0x4e22f8['on']('_update',(_0x5b798f,_0x120586,_0x356839)=>{_0x356839||(this['_bufferUpdate'](_0x120586['id'],_0x120586,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4e22f8,this['_findInsertionIndex'](_0x4e22f8)),_0x4e22f8;}async['getRevisionDocumentData'](_0x280a76){return await this['_utils']['loadRevisionData'](_0x280a76,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x280a76);}async['getRevisionRootsAttributes'](_0x44507a){return await this['_utils']['loadRevisionData'](_0x44507a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x44507a);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xa0bd63=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2c4a21=0x0;_0x2c4a21<_0xa0bd63['length'];_0x2c4a21++){const _0x428d92=_0xa0bd63[_0x2c4a21];let _0x1b4965=!0x1;for(const _0x317bce of Object['keys'](_0x428d92))void 0x0===_0x428d92[_0x317bce]?delete _0x428d92[_0x317bce]:'id'!==_0x317bce&&(_0x1b4965=!0x0);_0x1b4965||(_0xa0bd63[_0x2c4a21]=null);}if(_0xa0bd63=_0xa0bd63['filter'](_0x287a99=>null!==_0x287a99),!_0xa0bd63['length'])return;for(let _0x54c0b7=0x0;_0x54c0b7<_0xa0bd63['length'];_0x54c0b7++){const _0x18aa1e=_0xa0bd63[_0x54c0b7];void 0x0!==_0x18aa1e['fromVersion']&&void 0x0===_0x18aa1e['toVersion']&&(_0x18aa1e['toVersion']=this['repository']['getRevision'](_0x18aa1e['id'])['toVersion']),void 0x0!==_0x18aa1e['toVersion']&&void 0x0===_0x18aa1e['fromVersion']&&(_0x18aa1e['fromVersion']=this['repository']['getRevision'](_0x18aa1e['id'])['fromVersion']);}const _0x4f2825=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xa0bd63,_0x4f2825)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x364347=>{if(_0x364347){for(const _0x3d1288 of _0x364347)this['setRevisionData']({'id':_0x3d1288['id'],'createdAt':_0x3d1288['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x518322=null,from:_0x481d9c=null,to:_0x69faf2=null}){_0x481d9c=null!==_0x481d9c?_0x481d9c:_0x518322['fromVersion'],_0x69faf2=null!==_0x69faf2?_0x69faf2:_0x518322['toVersion'];const _0x56bc7f=this['_revisionDataBuilder']['getData'](_0x481d9c,_0x69faf2),_0x4f96ba={'diffData':_0x56bc7f['diffData'],'authorsIds':_0x56bc7f['authorsIds'],'fromVersion':_0x481d9c,'toVersion':_0x69faf2};if(!_0x518322||_0x69faf2!==_0x518322['toVersion']){const _0x5efd91=_0x69faf2-0x1,_0x3216ad=this['_source']['history']['getOperation'](_0x5efd91);_0x4f96ba['createdAt']=_0x3216ad&&_0x3216ad['createdAt']||new Date();}if(this['_loadedStateData']&&_0x481d9c===this['_loadedStateData']['fromVersion']){for(const _0x4db61b of this['_loadedStateData']['authors'])_0x4f96ba['authorsIds']['includes'](_0x4db61b['id'])||_0x4f96ba['authorsIds']['push'](_0x4db61b['id']);}return _0x4f96ba;}['_bufferUpdate'](_0x3877f1,_0x3440b5,_0x423c95){if(this['_bufferedUpdates']['has'](_0x3877f1)){const _0x3274e0=this['_bufferedUpdates']['get'](_0x3877f1);_0x3440b5=_0x423c95?{..._0x3274e0,..._0x3440b5}:{..._0x3440b5,..._0x3274e0};}this['_bufferedUpdates']['set'](_0x3877f1,_0x3440b5);}['setRevisionData'](_0x3805f1){const _0x2e72ac=this['repository']['getRevision'](_0x3805f1['id']);if(_0x3805f1['createdAt']&&(_0x3805f1['createdAt']=new Date(_0x3805f1['createdAt'])),_0x3805f1['authorsIds']){const _0x175cbf=this['editor']['plugins']['get']('Users');_0x3805f1['authors']=_0x3805f1['authorsIds']['map'](_0x207bc8=>_0x175cbf['getUser'](_0x207bc8));}_0x2e72ac['_update'](_0x3805f1,!0x0);}['_createInitialRevision'](_0x4d5140){const _0x5210c4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5210c4)this['_initialRevisionId']=_0x5210c4['id'];else{const _0x1d4bcd=!this['editor']['model']['document']['roots']['find'](_0x811f39=>this['editor']['model']['hasContent'](_0x811f39)),_0x2c413f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f44a7=R(this['editor']['locale'],_0x1d4bcd?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4d5140,'to':_0x4d5140,'id':this['_initialRevisionId'],'name':_0x2f44a7,'creatorId':_0x2c413f});}}['_createCurrentRevision'](_0x3b3f5c){const _0x29b2fb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x29b2fb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3b3f5c,'to':_0x3b3f5c,'id':_0x29b2fb,'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'](_0x52c2e9,_0x1f0a6c){let _0x581c1a=this['editor']['config']['get']('initialData'),_0x3110fe=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x581c1a){_0x581c1a={};for(const _0xafe273 of this['editor']['model']['document']['getRootNames']())_0x581c1a[_0xafe273]='';}if('string'==typeof _0x581c1a&&(_0x581c1a={'main':_0x581c1a}),void 0x0===_0x3110fe){_0x3110fe={};for(const _0x3ff6ac of this['editor']['model']['document']['getRootNames']())_0x3110fe[_0x3ff6ac]={};}let _0x47888a=!0x1;const _0x3967d9=Object['keys'](_0x581c1a),_0x18e741=Object['keys'](_0x52c2e9);for(const _0xc9084d of _0x3967d9){if(_0x581c1a[_0xc9084d]!==_0x52c2e9[_0xc9084d]&&''!==_0x581c1a[_0xc9084d]['trim']()){_0x47888a=!0x0;break;}if(!_0x5a8263(_0x3110fe[_0xc9084d],_0x1f0a6c[_0xc9084d])&&Object['keys'](_0x3110fe[_0xc9084d])['length']>0x0){_0x47888a=!0x0;break;}}_0x47888a||(_0x47888a=_0x18e741['some'](_0x5c8811=>!this['editor']['model']['document']['getRoot'](_0x5c8811))),_0x47888a&&_0xcde3b3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x581c1a,'editorRootsAttributes':_0x3110fe,'revisionData':_0x52c2e9,'revisionRootsAttributes':_0x1f0a6c}),this['editor']['config']['set']('initialData',_0x52c2e9),this['editor']['config']['set']('rootsAttributes',_0x1f0a6c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4a508f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4a508f['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x56c9db){const _0xd6fa39=this['repository']['getRevisions']();_0xd6fa39['reverse']();let _0x4f1bae=0x0;for(;_0x4f1bae<_0xd6fa39['length'];){const _0x55f6bb=_0xd6fa39[_0x4f1bae];if(_0x55f6bb===this['currentRevision']){_0x4f1bae++;continue;}if(_0x55f6bb['id']===this['_initialRevisionId'])break;const _0x12ee4d=_0x56c9db['toVersion']-_0x55f6bb['toVersion']||_0x56c9db['fromVersion']-_0x55f6bb['fromVersion'];if(_0x12ee4d>0x0)break;if(_0x12ee4d<0x0)_0x4f1bae++;else{if(!_0x56c9db['creator']&&_0x55f6bb['creator'])break;if(_0x55f6bb['creator']||!_0x56c9db['creator']){if(_0x56c9db['createdAt']>_0x55f6bb['createdAt'])break;_0x4f1bae++;}else _0x4f1bae++;}}return _0x4f1bae;}['_getFromVersion'](_0x227f29){const _0x5a3d12=this['repository']['getRevisions']();_0x5a3d12['reverse'](),_0x5a3d12['shift']();const _0x7b94ac=_0x5a3d12['find'](_0x1b1474=>_0x1b1474['toVersion']<=_0x227f29)['toVersion'];return _0x7b94ac<this['_startingVersion']?this['_startingVersion']:_0x7b94ac;}['_makeRevision']({name:_0x56c769,from:_0x46f817,to:_0xe6f0e9,creatorId:_0xe733e1,id:_0x10658d}){const _0xa3a998=this['buildRevisionData']({'from':_0x46f817,'to':_0xe6f0e9});_0xa3a998['name']=_0x56c769,_0xa3a998['creatorId']=_0xe733e1,_0xa3a998['id']=_0x10658d;const _0xfb763e=this['addRevisionData'](_0xa3a998);return this['adapter']&&this['_bufferUpdate'](_0xa3a998['id'],_0xa3a998,!0x0),_0xfb763e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class K{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x31d286){this['editor']=_0x31d286,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'](_0x31d78b){this['source']=_0x31d78b;const _0x230b48=new Map(),_0x27b4ce=new Map(),_0x3b84bc=this['editor']['model']['document']['roots']['map'](_0x4232de=>_0x4232de['rootName']);for(const _0x4f89ee of _0x3b84bc){const _0x1a12ad=this['editor']['model']['document']['getRoot'](_0x4f89ee),_0x558cf1=x(_0x1a12ad);_0x230b48['set'](_0x4f89ee,_0x558cf1),_0x27b4ce['set'](_0x4f89ee,Object['fromEntries'](_0x1a12ad['getAttributes']()));}const _0xb760e9=Array['from'](this['editor']['model']['markers'])['map'](_0x25cf4a=>[_0x25cf4a['name'],_0x25cf4a['getRange']()]),_0x1b38bc=this['source']['version'];this['_saveMetaData'](_0x1b38bc,_0x230b48,_0xb760e9,_0x27b4ce),this['_startingRevisionId']=this['_revisionId'];const _0x1a5f71=new Map(),_0x67b6c=new Map();for(const _0x4f6f80 of _0x3b84bc){const _0x5b5723=N(_0x4f6f80);_0x1a5f71['set'](_0x4f6f80,_0x5b5723),_0x67b6c['set'](_0x4f6f80,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1a5f71,[],_0x67b6c);}['getData'](_0x432a7e,_0x45ff65){if(this['_lastFrom']===_0x432a7e&&this['_lastTo']<=_0x45ff65)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x45ff65,!0x0);else{if(!this['_savedMetaData']['has'](_0x432a7e)){const _0x24f4a8=this['_getPreviousFrom'](_0x432a7e);this['_calculateMetaData'](_0x24f4a8,_0x432a7e,!0x1);}this['_calculateMetaData'](_0x432a7e,_0x45ff65,!0x0);}return this['_lastFrom']=_0x432a7e,this['_lastTo']=_0x45ff65,this['_getState']();}['loadState'](_0x2fdb17){const _0x53c5db=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2fdb17['fromVersion'],this['_lastTo']=_0x2fdb17['toVersion'];for(const _0xc637c2 in _0x2fdb17['diffData']){const _0x2cc167=_0x2fdb17['diffData'][_0xc637c2]['attachChange'],_0x4165d3=_0xbc63f2(_0x2fdb17['diffData'][_0xc637c2]['attributesBefore'])||{},_0x597459=_0x53c5db['_makeModelFromViewString'](_0x2fdb17['diffData'][_0xc637c2]['deletions']);_0x597459['rootName']=_0xc637c2,_0x597459['_isAttached']=!_0x2cc167||!_0x2cc167['isAttached'],_0x597459['isAttached']=()=>_0x597459['_isAttached'],this['_baseRoots']['set'](_0xc637c2,_0x597459),this['_baseRootsAttributes']['set'](_0xc637c2,_0x4165d3),_0x2cc167&&this['_touchedRoots']['set'](_0xc637c2,_0x2cc167);const _0x18d37f=this['_makeIdsRoot'](_0x597459);this['_baseIdsRoots']['set'](_0xc637c2,_0x18d37f);for(const [_0x4864df,_0x4b907c]of _0x597459['markers']){if(!_0x4864df['startsWith']('revision:'))continue;const _0x32876a=_0x4864df['split'](':')[0x2];for(const _0xf61f05 of _0x4b907c['getWalker']({'singleCharacters':!0x0})){const _0x35d249=this['_getVidAttributeName'](_0xf61f05),_0x379535='elementEnd'==_0xf61f05['type']?_0xf61f05['previousPosition']['path']['slice'](0x0,-0x1):_0xf61f05['previousPosition']['path'],_0x46c794=_0x18d37f['getNodeByPath'](_0x379535)['getAttribute'](_0x35d249);this['_touched']['set'](_0x46c794,{'userId':_0x32876a});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5524c4=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xa08327=>!this['_touched']['has'](_0xa08327));let _0x321d39=0x0;const _0x327a0d=new Map();for(const _0x51fdcc in _0x2fdb17['diffData']){const _0x40c007=_0x2fdb17['diffData'][_0x51fdcc]['attachChange'],_0x2732ab=_0xbc63f2(_0x2fdb17['diffData'][_0x51fdcc]['attributesAfter'])||{},_0x238013=_0x53c5db['_makeModelFromViewString'](_0x2fdb17['diffData'][_0x51fdcc]['insertions']);_0x238013['rootName']=_0x51fdcc,_0x238013['_isAttached']=!_0x40c007||_0x40c007['isAttached'],_0x238013['isAttached']=()=>_0x238013['_isAttached'],this['_diffRoots']['set'](_0x51fdcc,_0x238013),this['_diffRootsAttributes']['set'](_0x51fdcc,_0x2732ab);const _0x467f05=this['_makeIdsRoot'](_0x238013,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x51fdcc,_0x467f05),_0x327a0d['set'](_0x51fdcc,_0x238013['isAttached']()?_0x2732ab:{});for(const [_0x347fd1,_0x2e43f6]of _0x238013['markers']){if(!_0x347fd1['startsWith']('revision:'))continue;const _0x5af319=_0x347fd1['split'](':')[0x2];for(const _0x4c9840 of _0x2e43f6['getWalker']({'singleCharacters':!0x0})){const _0x246cda=this['_getVidAttributeName'](_0x4c9840),_0x34d8e7=this['_revisionId']++,_0x5b6af6='elementEnd'==_0x4c9840['type']?_0x4c9840['previousPosition']['path']['slice'](0x0,-0x1):_0x4c9840['previousPosition']['path'];_0x467f05['getNodeByPath'](_0x5b6af6)['_setAttribute'](_0x246cda,_0x34d8e7),this['_touched']['set'](_0x34d8e7,{'userId':_0x5af319});}}for(const _0x14fafc of this['editor']['model']['createRangeIn'](_0x238013)['getWalker']({'singleCharacters':!0x0})){const _0x1bbd6d=this['_getVidAttributeName'](_0x14fafc),_0x5ee966='elementEnd'==_0x14fafc['type']?_0x14fafc['previousPosition']['path']['slice'](0x0,-0x1):_0x14fafc['previousPosition']['path'],_0x48d9f1=_0x467f05['getNodeByPath'](_0x5ee966);_0x48d9f1['getAttribute'](_0x1bbd6d)>0x0||_0x48d9f1['_setAttribute'](_0x1bbd6d,_0x5524c4[_0x321d39++]);}for(const [_0x107b90,_0x324414]of _0x238013['markers'])_0x107b90['startsWith']('revision:')||this['_markers']['set'](_0x107b90,_0x324414);}const _0x35baab=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x35baab),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x35baab,0x1));const _0x411dca=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x411dca),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x411dca,0x1));const _0x3aa52d=Array['from'](this['_diffRoots'])['map'](([_0x2fad78,_0x579027])=>[_0x2fad78,x(_0x579027)]);this['_saveMetaData'](this['_lastTo'],_0x3aa52d,this['_markers'],_0x327a0d);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x475db1,_0x2ef45e,_0x466dfb,_0x2d518c){const _0x1b037b=new Map(_0x2ef45e),_0x214890=new Map(_0xbc63f2(_0x2d518c)),_0x49a809=new Map();for(const [_0x14fb75,_0x43c330]of _0x466dfb)_0x49a809['set'](_0x14fb75,{'start':_0x43c330['start']['clone'](),'end':_0x43c330['end']['clone'](),'rootName':_0x43c330['root']['rootName']});this['_savedMetaData']['set'](_0x475db1,{'roots':_0x1b037b,'markers':_0x49a809,'rootsAttributes':_0x214890});}['_removeMetaData'](_0x284b87){this['_savedMetaData']['delete'](_0x284b87);}['_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'](_0x3686c4,_0x163244=null){let _0x3ee9a4=null;_0x3686c4['is']('documentFragment')||(_0x3ee9a4=new nt(_0x3686c4['name'],{'vid_start':null===_0x163244?this['_revisionId']++:_0x163244++}));const _0x18a44a=[];for(const _0xfdcf2d of _0x3686c4['getChildren']())if(_0xfdcf2d['is']('element')){_0x18a44a['push'](this['_makeIdsRoot'](_0xfdcf2d,_0x163244));const _0x4349d2=_0x18a44a[_0x18a44a['length']-0x1];null!==_0x163244&&(_0x163244=_0x4349d2['is']('element','$text')?_0x4349d2['getAttribute']('vid')+0x1:_0x4349d2['getAttribute']('vid_end')+0x1);}else{for(let _0x51d2ff=0x0;_0x51d2ff<_0xfdcf2d['offsetSize'];_0x51d2ff++)_0x18a44a['push'](new nt('$text',{'vid':null===_0x163244?this['_revisionId']++:_0x163244++}));}if(_0x3686c4['is']('documentFragment')){const _0x118ece=N(_0x3686c4['rootName']);return _0x118ece['_insertChild'](0x0,_0x18a44a),_0x118ece;}return _0x3ee9a4['_setAttribute']('vid_end',null===_0x163244?this['_revisionId']++:_0x163244++),_0x3ee9a4['_insertChild'](0x0,_0x18a44a),_0x3ee9a4;}['_calculateMetaData'](_0x5876b0,_0x3b7460,_0x1999b7){this['_reset']();const {roots:_0x15a103,markers:_0x25f4a9,rootsAttributes:_0x36bacc}=this['_savedMetaData']['get'](_0x5876b0);this['_baseRoots']=new Map(_0x15a103),this['_baseRootsAttributes']=new Map(_0xbc63f2(_0x36bacc));for(const [_0x5e21a9,_0x59062e]of this['_baseRoots'])if('$graveyard'!==_0x5e21a9&&(this['_diffRoots']['set'](_0x5e21a9,x(_0x59062e)),this['_diffRootsAttributes']=new Map(_0xbc63f2(_0x36bacc)),_0x1999b7)){const _0x254bc5=this['_revisionId'];this['_idsRoots']['set'](_0x5e21a9,this['_makeIdsRoot'](_0x59062e)),this['_baseIdsRoots']['set'](_0x5e21a9,this['_makeIdsRoot'](_0x59062e,_0x254bc5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x1999b7&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x8e8983,_0x3b9326]of _0x25f4a9){const _0x350603=this['_baseRoots']['get'](_0x3b9326['rootName']),_0x2aa90a=this['_diffRoots']['get'](_0x3b9326['rootName']),_0x123ed0=new ot(this['_fixPosition'](_0x3b9326['start'],_0x350603),this['_fixPosition'](_0x3b9326['end'],_0x350603)),_0x1d6174=this['_fixRange'](_0x123ed0,_0x2aa90a);_0x350603['markers']['set'](_0x8e8983,_0x123ed0),this['_markers']['set'](_0x8e8983,_0x1d6174);}this['_applyOperations'](_0x5876b0,_0x3b7460,_0x1999b7);}['_applyOperations'](_0x166f85,_0x56d0b6,_0xac4d52){for(const _0x56c3c8 of this['source']['getOperations'](_0x166f85,_0x56d0b6))this['_handleOperation'](_0x56c3c8,_0xac4d52);for(const _0x26b33c of this['_diffRoots']['values']())_0x26b33c['markers']['clear']();for(const [_0x496b9a,_0x249d19]of this['_markers']){this['_diffRoots']['get'](_0x249d19['root']['rootName'])['markers']['set'](_0x496b9a,_0x249d19['clone']());}const _0x58a1cc=new Map(),_0x535d29=new Map();for(const [_0x2df25d,_0x2604a1]of this['_diffRoots'])_0x58a1cc['set'](_0x2df25d,x(_0x2604a1)),_0x535d29['set'](_0x2df25d,this['_diffRootsAttributes']['get'](_0x2df25d));this['_saveMetaData'](_0x56d0b6,_0x58a1cc,this['_markers'],_0x535d29);}['_getPreviousFrom'](_0x34343a){const _0x1c4d78=Array['from'](this['_savedMetaData']['keys']());_0x1c4d78['sort']((_0xe899e8,_0x2bd0b8)=>_0xe899e8-_0x2bd0b8),_0x1c4d78['reverse']();for(const _0x314913 of _0x1c4d78)if(_0x314913<_0x34343a)return _0x314913;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x43ed73,_0x2cc3bb){const _0x1d50d1=Array['from'](_0x2cc3bb['markers'])['map'](([_0x4e32ea,_0x477f54])=>[_0x4e32ea,this['_fixRange'](_0x477f54,_0x43ed73)]);_0x43ed73['markers']=new Map(_0x1d50d1);}['_transformMarkers'](_0x22c7bf){for(const _0x13474e of this['_markers']['values']()){const _0x4959f0=_0x13474e['getTransformedByOperation'](_0x22c7bf),_0x2f3666=ot['_createFromRanges'](_0x4959f0);_0x13474e['start']=_0x2f3666['start'],_0x13474e['end']=_0x2f3666['end'];}}['_handleOperation'](_0x1861f,_0x41b626){if('addRoot'!=_0x1861f['type']&&'detachRoot'!=_0x1861f['type']){if('insert'==_0x1861f['type']){const _0x2b992b=_0x1861f['position']['root']['rootName'];this['_diffRoots']['has'](_0x2b992b)||(this['_diffRoots']['set'](_0x2b992b,N(_0x2b992b,!0x0)),this['_diffRootsAttributes']['set'](_0x2b992b,{}),_0x41b626&&this['_idsRoots']['set'](_0x2b992b,N(_0x2b992b,!0x0)));}else{if('addRootAttribute'==_0x1861f['type']||'removeRootAttribute'==_0x1861f['type']||'changeRootAttribute'==_0x1861f['type'])return void this['_handleRootAttributeOperation'](_0x1861f);'marker'==_0x1861f['type']&&this['_handleMarkerOperation'](_0x1861f);}if('marker'!==_0x1861f['type']){const _0x36cc42=this['_cloneOperation'](_0x1861f,this['_diffRoots']);_0x36cc42['_execute'](),this['_transformMarkers'](_0x36cc42);}if(_0x41b626)switch(_0x1861f['type']){case'insert':this['_handleInsertOperation'](_0x1861f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1861f);break;case'merge':this['_handleMergeOperation'](_0x1861f);break;case'split':this['_handleSplitOperation'](_0x1861f);}}else this['_handleRootOperation'](_0x1861f,_0x41b626);}['_cloneOperation'](_0x46ff89,_0x25ac42){const _0x47f08f=_0x46ff89['clone']();return _0x47f08f['_authorId']=_0x46ff89['_authorId'],this['_fixOperation'](_0x47f08f,_0x25ac42),_0x47f08f;}['_getBaseVids'](_0x36616a){return _0x36616a['map'](_0x4d58b8=>{const _0x20463e=this['_getVidAttributeName'](_0x4d58b8);return Number(_0x4d58b8['item']['getAttribute'](_0x20463e));});}['_generateTape'](_0x1486fc,_0x555f51){if(_0x1486fc['is']('element','$text'))_0x555f51['push']({'item':_0x1486fc,'type':'text'});else{_0x1486fc['is']('element')&&_0x555f51['push']({'item':_0x1486fc,'type':'elementStart'});for(const _0x24aeeb of _0x1486fc['getChildren']())this['_generateTape'](_0x24aeeb,_0x555f51);_0x1486fc['is']('element')&&_0x555f51['push']({'item':_0x1486fc,'type':'elementEnd'});}return _0x555f51;}['_getState'](){const _0xd9a01=new Map(this['_touched']),_0x2a1a0e=new Map(_0xd9a01),_0x5a1180=new Map(),_0x126b92={'insertions':{},'deletions':{}},_0x2cb691={'insertions':{},'deletions':{}},_0x218396=new Map(),_0x102dbc=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x102dbc['delete']('$graveyard');for(const _0x36ffe9 of _0x102dbc){const _0x582d3c=this['_diffRoots']['get'](_0x36ffe9)||N(_0x36ffe9,!0x1),_0x1ad3c9=this['_baseRoots']['get'](_0x36ffe9)||N(_0x36ffe9,!0x1);_0x582d3c['isAttached']()||_0x1ad3c9['isAttached']()?(_0x126b92['insertions'][_0x36ffe9]=x(_0x582d3c),_0x126b92['deletions'][_0x36ffe9]=x(_0x1ad3c9),this['_copyMarkers'](_0x126b92['deletions'][_0x36ffe9],_0x1ad3c9),this['_copyMarkers'](_0x126b92['insertions'][_0x36ffe9],_0x582d3c),_0x2cb691['insertions'][_0x36ffe9]=this['_generateTape'](this['_idsRoots']['get'](_0x36ffe9),[]),_0x2cb691['deletions'][_0x36ffe9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x36ffe9)||N(_0x36ffe9,!0x1),[])):_0x102dbc['delete'](_0x36ffe9);}for(const _0x16e9af of _0x102dbc){const _0x5ca5f2=_0x2cb691['insertions'][_0x16e9af];for(const _0x1c7726 of _0x5ca5f2){const _0x224975=this['_getVidAttributeName'](_0x1c7726),_0x2981f6=_0x1c7726['item']['getAttribute'](_0x224975);_0x2a1a0e['delete'](_0x2981f6),_0x2981f6>=this['_startingRevisionId']&&_0x5a1180['set'](_0x2981f6,_0xd9a01['get'](_0x2981f6));}}for(const _0x3de94b of _0x102dbc){const _0x12b574=_0x2cb691['insertions'][_0x3de94b],_0x3d6ad7=this['_getBaseVids'](_0x2cb691['deletions'][_0x3de94b]);let _0x12487f=0x0;for(const _0x2479b6 of _0x12b574){const _0x4fde9d=this['_getVidAttributeName'](_0x2479b6),_0x48e9eb=_0x2479b6['item']['getAttribute'](_0x4fde9d);if(!_0x5a1180['has'](_0x48e9eb)&&!_0x218396['has'](_0x48e9eb)){if(_0x2a1a0e['has'](_0x48e9eb))_0x12487f++;else{if(_0x48e9eb!=_0x3d6ad7[_0x12487f]){const _0x509255=_0xd9a01['get'](_0x48e9eb)||_0xd9a01['get'](_0x3d6ad7[_0x12487f]);for(;_0x48e9eb!=_0x3d6ad7[_0x12487f];)_0x2a1a0e['has'](_0x3d6ad7[_0x12487f])||(_0x218396['set'](_0x3d6ad7[_0x12487f],_0x509255),_0xd9a01['set'](_0x3d6ad7[_0x12487f],_0x509255)),_0x12487f++;}_0x12487f++;}}}}for(const _0xb9129e of _0x102dbc){const _0x5c2371=_0x2cb691['insertions'][_0xb9129e];for(const _0x14484e of _0x5c2371){const _0x5bee18=this['_getVidAttributeName'](_0x14484e),_0x11fcf9=_0x14484e['item']['getAttribute'](_0x5bee18);if(_0x218396['has'](_0x11fcf9)){const _0x420297=_0x218396['get'](_0x11fcf9);_0x2a1a0e['has'](_0x11fcf9)||_0x2a1a0e['set'](_0x11fcf9,{..._0x420297}),_0x5a1180['set'](_0x11fcf9,{..._0x420297});}}}for(const _0x35d289 of _0x2a1a0e['keys']())_0x35d289>=this['_startingRevisionId']&&_0x2a1a0e['delete'](_0x35d289);const _0x3e83b4=new Map();for(const _0x1c17ef of _0x102dbc){let _0x3a7fc6=_0x2cb691['insertions'][_0x1c17ef];for(const _0xc96a12 of _0x3a7fc6)if(_0xc96a12['item']['is']('element','tableCell')){const _0x42d9a7=this['_getVidAttributeName'](_0xc96a12),_0x54183a=_0xc96a12['item']['getAttribute'](_0x42d9a7);if(_0x5a1180['has'](_0x54183a)){const _0xb64aa7=_0xc96a12['item']['parent']['parent']['getAttribute']('vid_start'),_0x4055ed=_0x3e83b4['get'](_0xb64aa7)||new Set();_0x4055ed['add'](_0x5a1180['get'](_0x54183a)['userId']),_0x3e83b4['set'](_0xb64aa7,_0x4055ed);}}_0x3a7fc6=_0x2cb691['deletions'][_0x1c17ef];for(const _0x3605fc of _0x3a7fc6)if(_0x3605fc['item']['is']('element','tableCell')){const _0x49e9e7=this['_getVidAttributeName'](_0x3605fc),_0x307c1d=_0x3605fc['item']['getAttribute'](_0x49e9e7);if(_0x2a1a0e['has'](_0x307c1d)){const _0x55f069=_0x3605fc['item']['parent']['parent']['getAttribute']('vid_start'),_0xca786d=_0x3e83b4['get'](_0x55f069)||new Set();_0xca786d['add'](_0x2a1a0e['get'](_0x307c1d)['userId']),_0x3e83b4['set'](_0x55f069,_0xca786d);}}for(const _0x30eb92 of _0x3e83b4['keys']())(_0x5a1180['has'](_0x30eb92)||_0x2a1a0e['has'](_0x30eb92))&&_0x3e83b4['delete'](_0x30eb92);}for(const _0x24dc5a of _0x102dbc){const _0x1e7d2c=_0x2cb691['insertions'][_0x24dc5a];let _0x57d33e=null,_0x19b384=null;for(const _0x39c9a9 of _0x1e7d2c){const _0x2e8d66=this['_getVidAttributeName'](_0x39c9a9),_0x2062a5=_0x39c9a9['item']['getAttribute'](_0x2e8d66),_0x510d3f=_0x3e83b4['get'](_0x2062a5);_0x510d3f&&'elementStart'==_0x39c9a9['type']&&(_0x57d33e=Array['from'](_0x510d3f)[0x0],_0x19b384=_0x39c9a9['item']['getAttribute']('vid_end')),_0x57d33e&&(_0x2a1a0e['set'](_0x2062a5,{'userId':_0x57d33e}),_0x5a1180['set'](_0x2062a5,{'userId':_0x57d33e})),_0x2062a5==_0x19b384&&(_0x57d33e=null,_0x19b384=null);}}const _0x1270b1={},_0x2ac37e=new Set();for(const _0x13fbc3 of _0x102dbc){const _0xfa88a8=_0x126b92['deletions'][_0x13fbc3],_0xd24e68=_0x126b92['insertions'][_0x13fbc3];for(const {userId:_0x48d435}of this['_touchedMarkers']['values']())null!==_0x48d435&&_0x2ac37e['add'](_0x48d435);for(const {userId:_0x247299}of this['_touchedRoots']['values']())null!==_0x247299&&_0x2ac37e['add'](_0x247299);this['_markChanges'](_0xd24e68,_0x2cb691['insertions'][_0x13fbc3],_0x5a1180,'insertion',_0x2ac37e),this['_markChanges'](_0xfa88a8,_0x2cb691['deletions'][_0x13fbc3],_0x2a1a0e,'deletion',_0x2ac37e),_0x1270b1[_0x13fbc3]={'insertions':this['_prepareViewToSave'](_0xd24e68),'deletions':this['_prepareViewToSave'](_0xfa88a8),'attachChange':this['_touchedRoots']['get'](_0x13fbc3)||null,'attributesBefore':_0xbc63f2(this['_baseRootsAttributes']['get'](_0x13fbc3))||{},'attributesAfter':_0xbc63f2(this['_diffRootsAttributes']['get'](_0x13fbc3))};}return{'diffData':_0x1270b1,'authorsIds':Array['from'](_0x2ac37e)};}['_processRootBeforeSave'](_0x2c5680){for(const [,_0x37f148]of _0x2c5680['markers']){const _0x290a4e=_0x37f148['start']['getAncestors']()['filter'](_0x47bed6=>'tableCell'==_0x47bed6['name']);for(const _0x57a647 of _0x290a4e)0x1==_0x57a647['childCount']&&_0x57a647['getChild'](0x0)['is']('element','paragraph')&&_0x57a647['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x54b1f1){this['_processRootBeforeSave'](_0x54b1f1);const _0x591d21=this['editor']['data']['toView'](_0x54b1f1,{}),_0x4461dd=Array['from'](_0x591d21['getChildren']())['map'](_0x4ca0aa=>this['_getViewJson'](_0x4ca0aa));return JSON['stringify'](_0x4461dd);}['_getViewJson'](_0x21bb86){if(_0x21bb86['is']('$text'))return _0x21bb86['data'];{const _0x5d7eb3=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x880616=_0x21bb86,_0x1d437f=this['editor']['data']['htmlProcessor']['domConverter'],_0x5b2368={'type':_0x5d7eb3['_getTypeCharForViewElement'](_0x880616),'name':_0x880616['name'],'attributes':Array['from'](_0x880616['getAttributes']()),'children':Array['from'](_0x880616['getChildren']())['map'](_0x14f831=>this['_getViewJson'](_0x14f831))};if(_0x21bb86['is']('uiElement')&&'$comment'!=_0x21bb86['name']){const _0x8c2d44=_0x21bb86['render'](_0x1d437f['domDocument'],_0x1d437f);_0x5b2368['children']['push'](_0x8c2d44['outerHTML']);}else{if(_0x21bb86['is']('rawElement')){const _0x3d2963=_0x1d437f['domDocument']['createElement'](_0x880616['name']);_0x21bb86['render'](_0x3d2963,_0x1d437f),_0x5b2368['children']['push'](_0x3d2963['innerHTML']);}}const _0x5f04f8=Array['from'](_0x880616['getCustomProperties']());_0x5f04f8['length']>0x0&&(_0x5b2368['customProperties']=_0x5f04f8);const _0x4bd848=_0x880616['getFillerOffset']();return null!==_0x4bd848&&(_0x5b2368['fillerOffset']=_0x4bd848),_0x5b2368;}}['_markChanges'](_0x4826fb,_0x319c8a,_0x2f42b4,_0x2b184f,_0x373531){let _0x46159e=null,_0x55ecf5=null,_0x26b78a=0x0;const _0xb6c591=this['editor']['model'];for(let _0x40272d=0x0;_0x40272d<_0x319c8a['length'];_0x40272d++){const _0x13c7dc=this['_getVidAttributeName'](_0x319c8a[_0x40272d]),_0x99595c=_0x319c8a[_0x40272d]['item']['getAttribute'](_0x13c7dc),_0x4d630f=_0x2f42b4['get'](_0x99595c),_0x2b80c2=_0x40272d==_0x319c8a['length']-0x1;(!_0x46159e&&_0x4d630f&&(_0x46159e=_0x4d630f,_0x55ecf5=_0x319c8a[_0x40272d]),_0x46159e&&(!_0x4d630f||_0x4d630f['userId']!=_0x46159e['userId']))&&(_0x58b36d(_0x4d630f,P(_0x55ecf5,_0x4826fb,_0xb6c591),P(_0x319c8a[_0x40272d],_0x4826fb,_0xb6c591)),_0x46159e=_0x4d630f||null,_0x55ecf5=_0x4d630f?_0x319c8a[_0x40272d]:null),_0x46159e&&_0x2b80c2&&_0x58b36d(_0x4d630f,P(_0x55ecf5,_0x4826fb,_0xb6c591),V(_0x319c8a[_0x40272d],_0x4826fb,_0xb6c591));}function _0x58b36d(_0x3c68c1,_0x513958,_0xb37829){const _0x3bc114=_0x46159e['userId'],_0x4e6d90='revision:'+_0x2b184f+':'+_0x3bc114+':'+_0x26b78a++,_0x46fc89=_0xb6c591['createRange'](_0x513958,_0xb37829);_0x4826fb['markers']['set'](_0x4e6d90,_0x46fc89),null!==_0x3bc114&&_0x373531['add'](_0x3bc114);}}['_getVidAttributeName'](_0x2b8ee8){switch(_0x2b8ee8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2d9978,_0x35649b){_0x2d9978['baseVersion']=null;for(const _0x37a795 in _0x2d9978){const _0x412ed4=_0x2d9978[_0x37a795];if(_0x412ed4 instanceof rt){const _0x2e56cf=_0x35649b['get'](_0x412ed4['root']['rootName']);_0x2d9978[_0x37a795]=this['_fixPosition'](_0x412ed4,_0x2e56cf);}if(_0x412ed4 instanceof ot){const _0x4e2543=_0x35649b['get'](_0x412ed4['root']['rootName']);_0x2d9978[_0x37a795]=this['_fixRange'](_0x412ed4,_0x4e2543);}'root'===_0x37a795&&(_0x2d9978['root']=_0x35649b['get'](_0x2d9978['root']['rootName']));}}['_fixRange'](_0x20e4cc,_0xbe6447){return this['editor']['model']['createRange'](this['_fixPosition'](_0x20e4cc['start'],_0xbe6447),this['_fixPosition'](_0x20e4cc['end'],_0xbe6447));}['_fixPosition'](_0x591239,_0x3217d1){return this['editor']['model']['createPositionFromPath'](_0x3217d1,_0x591239['path'],_0x591239['stickiness']);}['_handleInsertOperation'](_0x188960){const _0x39fbc9=this['_idsRoots']['get'](_0x188960['position']['root']['rootName']),_0x1e84cd=this['_fixPosition'](_0x188960['position'],_0x39fbc9),_0x4828fd=null===_0x188960['_authorId']?null:_0x188960['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x13e26c=_0x1e84cd['parent'],_0x576b7e=this['_revisionId'],_0x39431a=[];for(const _0x103523 of _0x188960['nodes'])if(_0x103523['is']('element'))_0x39431a['push'](this['_makeIdsRoot'](_0x103523));else{for(let _0xa7b574=0x0;_0xa7b574<_0x103523['offsetSize'];_0xa7b574++)_0x39431a['push'](new nt('$text',{'vid':this['_revisionId']++}));}const _0x5aa4e9=this['_revisionId'];for(let _0x5b8150=_0x576b7e;_0x5b8150<_0x5aa4e9;_0x5b8150++)this['_touched']['set'](_0x5b8150,{'userId':_0x4828fd});_0x13e26c['_insertChild'](_0x1e84cd['offset'],_0x39431a);}['_handleMoveOperation'](_0x4137b8){(_0x4137b8=this['_cloneOperation'](_0x4137b8,this['_idsRoots']))['_execute']();const _0x43d1f5=null===_0x4137b8['_authorId']?null:_0x4137b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x19031b=_0x4137b8['getMovedRangeStart'](),_0x5cfa6f=_0x19031b['parent'],_0xd79111=_0x19031b['offset'];!function _0x2a29c6(_0x185802,_0x280da1,_0x3a1e44,_0x447c92){for(let _0x2c4472=_0x3a1e44;_0x2c4472<_0x447c92;_0x2c4472++){const _0xa7d365=_0x280da1['getChild'](_0x2c4472);_0xa7d365['is']('element','$text')?_0x185802['set'](_0xa7d365['getAttribute']('vid'),{'userId':_0x43d1f5}):(_0x185802['set'](_0xa7d365['getAttribute']('vid_start'),{'userId':_0x43d1f5}),_0x2a29c6(_0x185802,_0xa7d365,0x0,_0xa7d365['childCount']),_0x185802['set'](_0xa7d365['getAttribute']('vid_end'),{'userId':_0x43d1f5}));}}(this['_touched'],_0x5cfa6f,_0xd79111,_0xd79111+_0x4137b8['howMany']);}['_handleMergeOperation'](_0x55a37e){const _0x54ad5a=null===(_0x55a37e=this['_cloneOperation'](_0x55a37e,this['_idsRoots']))['_authorId']?null:_0x55a37e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1666fd=_0x55a37e['targetPosition']['parent'],_0x92f925=_0x55a37e['sourcePosition']['parent'],_0xbc5079=_0x1666fd['getAttribute']('vid_end'),_0x222029=_0x92f925['getAttribute']('vid_start');_0x1666fd['_setAttribute']('vid_end',_0x92f925['getAttribute']('vid_end')),_0x92f925['_setAttribute']('vid_end',_0xbc5079),this['_touched']['set'](_0x222029,{'userId':_0x54ad5a}),this['_touched']['set'](_0xbc5079,{'userId':_0x54ad5a}),_0x55a37e['_execute']();}['_handleSplitOperation'](_0x3f14cc){const _0x3f37ab=null===(_0x3f14cc=this['_cloneOperation'](_0x3f14cc,this['_idsRoots']))['_authorId']?null:_0x3f14cc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37de08=_0x3f14cc['graveyardPosition'],_0x56ca6a=_0x3f14cc['splitPosition']['parent'];_0x3f14cc['_execute']();const _0x3a4fee=_0x56ca6a['getAttribute']('vid_end'),_0x275235=_0x3f14cc['insertionPosition']['nodeAfter'];if(_0x37de08){const _0x1e29dc=_0x275235['getAttribute']('vid_end'),_0x3d79bd=_0x56ca6a['getAttribute']('vid_end');_0x56ca6a['_setAttribute']('vid_end',_0x1e29dc),_0x275235['_setAttribute']('vid_end',_0x3d79bd),this['_touched']['set'](_0x56ca6a['getAttribute']('vid_end'),{'userId':_0x3f37ab}),this['_touched']['set'](_0x275235['getAttribute']('vid_start'),{'userId':_0x3f37ab});}else{const _0x1d8f94=this['_revisionId']++,_0x48e901=this['_revisionId']++;_0x56ca6a['_setAttribute']('vid_end',_0x1d8f94),_0x275235['_setAttribute']('vid_start',_0x48e901),_0x275235['_setAttribute']('vid_end',_0x3a4fee),this['_touched']['set'](_0x1d8f94,{'userId':_0x3f37ab}),this['_touched']['set'](_0x48e901,{'userId':_0x3f37ab});}}['_handleMarkerOperation'](_0x460548){if(!_0x460548['affectsData'])return;const _0x179a1b=(_0x460548=this['_cloneOperation'](_0x460548,this['_diffRoots']))['oldRange']?_0x460548['oldRange']['root']:null,_0xb375d0=_0x460548['newRange']?_0x460548['newRange']['root']:null;_0x179a1b&&this['_markers']['delete'](_0x460548['name']),_0xb375d0&&this['_markers']['set'](_0x460548['name'],_0x460548['newRange']['clone']());const _0x53c66b=null===_0x460548['_authorId']?null:_0x460548['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x284bac=_0x460548['name'];if(!this['_touchedMarkers']['has'](_0x284bac))return void this['_touchedMarkers']['set'](_0x284bac,{'range':_0x460548['oldRange'],'userId':_0x53c66b});const _0x418c9d=this['_touchedMarkers']['get'](_0x284bac),_0x25a014=_0x418c9d['range'],_0x104068=_0x460548['newRange'];null==_0x25a014&&null==_0x104068||_0x25a014&&_0x104068&&_0x25a014['isEqual'](_0x104068)?this['_touchedMarkers']['delete'](_0x460548['name']):_0x418c9d['userId']=_0x53c66b;}['_handleRootOperation'](_0x3f80f0,_0x59a762){this['_diffRoots']['has'](_0x3f80f0['rootName'])?this['_diffRoots']['get'](_0x3f80f0['rootName'])['_isAttached']=_0x3f80f0['isAdd']:(this['_diffRoots']['set'](_0x3f80f0['rootName'],N(_0x3f80f0['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3f80f0['rootName'],{}),_0x59a762&&this['_idsRoots']['set'](_0x3f80f0['rootName'],N(_0x3f80f0['rootName'],!0x0)));const _0x28cd08=null===_0x3f80f0['_authorId']?null:_0x3f80f0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x527347=this['_touchedRoots']['get'](_0x3f80f0['rootName']);_0x527347&&_0x527347['userId']===_0x28cd08?this['_touchedRoots']['delete'](_0x3f80f0['rootName']):this['_touchedRoots']['set'](_0x3f80f0['rootName'],{'userId':_0x28cd08,'isAttached':_0x3f80f0['isAdd']});}['_handleRootAttributeOperation'](_0x1bdaeb){const _0x2393c3=this['_diffRootsAttributes']['get'](_0x1bdaeb['root']['rootName']);null===_0x1bdaeb['newValue']?delete _0x2393c3[_0x1bdaeb['key']]:_0x2393c3[_0x1bdaeb['key']]=_0x1bdaeb['newValue'];}}function x(_0x52fce1){const _0x2da979=N(_0x52fce1['rootName'],_0x52fce1['isAttached']());for(const _0x3ee665 of _0x52fce1['getChildren']()){const _0xe40f37=_0x3ee665['_clone'](!0x0);_0x2da979['_appendChild'](_0xe40f37);}return _0x2da979;}function N(_0x31983a,_0x78adc3=!0x0){const _0x357222=new at();return _0x357222['rootName']=_0x31983a,_0x357222['_isAttached']=_0x78adc3,_0x357222['isAttached']=()=>_0x357222['_isAttached'],_0x357222;}function P(_0x31fe4e,_0x54ae83,_0x38f17c){const _0x2afd94='elementEnd'==_0x31fe4e['type']?_0x38f17c['createPositionAt'](_0x31fe4e['item'],'end'):_0x38f17c['createPositionBefore'](_0x31fe4e['item']);return _0x38f17c['createPositionFromPath'](_0x54ae83,_0x2afd94['path'],_0x2afd94['stickiness']);}function V(_0x5671b9,_0x466215,_0x51f0d2){const _0x4ff605='elementStart'==_0x5671b9['type']?_0x51f0d2['createPositionAt'](_0x5671b9['item'],0x0):_0x51f0d2['createPositionAfter'](_0x5671b9['item']);return _0x51f0d2['createPositionFromPath'](_0x466215,_0x4ff605['path'],_0x4ff605['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x5bb501(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4cde37){super(),this['id']=_0x4cde37['id']||_0x2476e1(),this['author']=_0x4cde37['author'],this['type']=_0x4cde37['type'],this['data']=_0x4cde37['data']||{},this['rootName']=_0x4cde37['rootName'],this['set']('createdAt',_0x4cde37['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(_0x2b6444,_0x41abdc){this['newRevisionId']=_0x2b6444,this['oldRevisionId']=_0x41abdc,this['changes']=new _0x5e0d45();}['_setChanges'](_0x5e82fb){for(const _0x7a03f7 of _0x5e82fb)this['changes']['add'](_0x7a03f7);}}class l extends _0x1ffbe8{['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[_0x114f31,_0x319114,S,$];}constructor(_0x3aaeee){super(_0x3aaeee),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',(_0x3a8ea2,_0x3eac73,_0xa0c635)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x10359b=>{for(const _0x19f897 of this['editor']['editing']['view']['document']['roots'])_0xa0c635?_0x10359b['removeClass']('ck-editor__editable__overlay',_0x19f897):_0x10359b['addClass']('ck-editor__editable__overlay',_0x19f897);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5371ff=>null!==_0x5371ff),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x379aba,_0x3662c7,_0x3ccb67)=>_0x379aba&&_0x3ccb67?_0x3662c7['changes']['getIndex'](_0x3ccb67):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e277a,_0x43c361)=>_0x5e277a?_0x43c361['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x319114);}['init'](){const _0x19e30b=this['editor'],_0xf73a34=new ut(_0x19e30b,{'direction':'backward'}),_0x47b19e=new ut(_0x19e30b,{'direction':'forward'});(_0x19e30b['commands']['add']('showPreviousChange',_0xf73a34),_0x19e30b['commands']['add']('showNextChange',_0x47b19e),_0x19e30b['commands']['add']('restoreRevision',new ct(_0x19e30b)),this['on']('change:numberOfChanges',()=>{_0xf73a34['refresh'](),_0x47b19e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x19e30b['enableReadOnlyMode']('revision-viewer'),_0x19e30b['plugins']['has']('WidgetToolbarRepository'))&&_0x19e30b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4267b3){return await this['_utils']['loadRevisionData'](_0x4267b3,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4267b3);}async['getRevisionRootsAttributes'](_0x1db9cb){return await this['_utils']['loadRevisionData'](_0x1db9cb,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1db9cb);}async['compare'](_0xafd94f,_0x210ac8,_0x415f1d=!0x1){if(!this['isEnabled'])return;const _0x1e42dc=this['diff'],_0x56c323=this['repository'],_0x308852='string'==typeof _0xafd94f?_0x56c323['getRevision'](_0xafd94f):_0xafd94f,_0x2ec28d='string'==typeof _0x210ac8?_0x56c323['getRevision'](_0x210ac8):_0x210ac8,_0x1e8c92=_0x308852['id'],_0x1a8525=_0x2ec28d?_0x2ec28d['id']:null;if(!_0x415f1d&&this['diff']&&this['diff']['newRevisionId']===_0x1e8c92&&this['diff']['oldRevisionId']===_0x1a8525)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1e8c92,_0x1a8525);const _0x732c68=this['_getRevisionsRange'](_0x308852,_0x2ec28d,!0x0)['map'](_0x2b3a03=>this['_utils']['loadRevisionData'](_0x2b3a03,this['adapter']));return _0x732c68['push'](new Promise(_0x142439=>{setTimeout(_0x142439,0x14);})),Promise['all'](_0x732c68)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4063b7=this['_getDiff'](_0x1e8c92,_0x1a8525);for(const _0x42e66 of _0x4063b7['changes'])this['_changeIdToChange']['set'](_0x42e66['id'],_0x42e66);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2fae5f=>{for(const _0x48b350 of this['editor']['model']['document']['getRootNames']())_0x2fae5f['detachRoot'](_0x48b350);for(const _0x235ab5 of Object['keys'](_0x4063b7['model'])){const _0x425f76=_0x2fae5f['addRoot'](_0x235ab5);for(const _0x17ef48 of Object['keys'](_0x4063b7['attributes'][_0x235ab5]))_0x2fae5f['setAttribute'](_0x17ef48,_0x4063b7['attributes'][_0x235ab5][_0x17ef48],_0x425f76);_0x2fae5f['insert'](_0x4063b7['model'][_0x235ab5],_0x425f76,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4063b7['changes'])),this['isReady']=!0x0;})['catch'](_0x59084f=>{console['error'](_0x59084f),this['_cleanUp'](),_0x1e42dc&&(this['diff']=_0x1e42dc),this['isReady']=!0x0;});}['addRevisionData'](_0x937d17,_0x2071d3){const _0x16e87c=this['repository']['createRevision'](_0x937d17);return _0x16e87c['on']('_update',(_0x583d25,_0x445402,_0x298f12)=>_0x2071d3(_0x445402,_0x298f12,_0x16e87c)),this['repository']['addRevision'](_0x16e87c),_0x16e87c;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x483a62=>{for(const _0x2ead9b of this['editor']['model']['document']['getRootNames']())_0x483a62['detachRoot'](_0x2ead9b);});}['_sortAndFilterDiffChanges'](_0x36ae61){const _0x5e4ef9=[],_0x47a82d=new Map();for(const _0x27b6ea of this['editor']['model']['document']['getRootNames']()){const _0x749a54=this['editor']['editing']['view']['getDomRoot'](_0x27b6ea);if(!_0x749a54)continue;const _0x61cf4d=_0x749a54['getClientRects']()['item'](0x0);_0x61cf4d&&(_0x5e4ef9['push'](_0x27b6ea),_0x47a82d['set'](_0x27b6ea,_0x61cf4d));}return _0x5e4ef9['sort']((_0x36c32b,_0x16eee8)=>{const _0x2d841e=_0x47a82d['get'](_0x36c32b),_0x4629fc=_0x47a82d['get'](_0x16eee8);return _0x2d841e['y']-_0x4629fc['y']||_0x2d841e['x']-_0x4629fc['x'];}),(_0x36ae61=_0x36ae61['filter'](_0x24f4b6=>_0x5e4ef9['includes'](_0x24f4b6['rootName'])))['sort']((_0xd6ba9e,_0x552465)=>_0x5e4ef9['indexOf'](_0xd6ba9e['rootName'])-_0x5e4ef9['indexOf'](_0x552465['rootName'])),_0x36ae61;}['_makeTape'](_0x4bdedd){const _0x50c1da=Array['from'](_0x4bdedd['markers'])['filter'](([_0x49ccd8,_0x377fe0])=>_0x49ccd8['startsWith']('revision:')&&!_0x377fe0['isCollapsed']),_0xcd1e4d=Array['from'](this['editor']['model']['createRangeIn'](_0x4bdedd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x50c1da['length'])for(const _0x2fde68 of _0xcd1e4d){const [_0x55507e,_0x3cb31d]=_0x50c1da[0x0],[,_0x13af6f,_0x37083b]=_0x55507e['split'](':');if(_0x3cb31d['end']['isEqual'](_0x2fde68['nextPosition'])&&_0x50c1da['shift'](),(_0x2fde68['previousPosition']['isEqual'](_0x3cb31d['start'])||_0x2fde68['previousPosition']['isAfter'](_0x3cb31d['start']))&&('insertion'==_0x13af6f?_0x2fde68['isAdded']={'userId':_0x37083b}:'deletion'==_0x13af6f&&(_0x2fde68['isRemoved']={'userId':_0x37083b})),0x0==_0x50c1da['length'])break;}return _0xcd1e4d;}['_refreshStartEndIndex'](_0x55eef9){const _0x5d7489=new Map();for(let _0x35c7e9=0x0;_0x35c7e9<_0x55eef9['length'];_0x35c7e9++)'text'===_0x55eef9[_0x35c7e9]['type']?(_0x55eef9[_0x35c7e9]['item']['startIndex']=_0x35c7e9,_0x55eef9[_0x35c7e9]['item']['endIndex']=_0x35c7e9):('elementStart'===_0x55eef9[_0x35c7e9]['type']?_0x55eef9[_0x35c7e9]['item']['startIndex']=_0x35c7e9:'elementEnd'===_0x55eef9[_0x35c7e9]['type']&&(_0x55eef9[_0x35c7e9]['item']['endIndex']=_0x35c7e9),_0x5d7489['set'](_0x55eef9[_0x35c7e9]['id'],_0x35c7e9));for(const _0x46237c of _0x5d7489['values']())'elementStart'===_0x55eef9[_0x46237c]['type']?_0x55eef9[_0x46237c]['item']['endIndex']=_0x5d7489['get'](_0x55eef9[_0x46237c]['pairId']):'elementEnd'===_0x55eef9[_0x46237c]['type']&&(_0x55eef9[_0x46237c]['item']['startIndex']=_0x5d7489['get'](_0x55eef9[_0x46237c]['pairId']));}['_processTape'](_0x218358){for(let _0x1bc866=0x0;_0x1bc866<_0x218358['length'];_0x1bc866++){if('elementStart'===_0x218358[_0x1bc866]['type'])_0x218358[_0x1bc866]['item']['startIndex']=_0x1bc866;else{if('elementEnd'===_0x218358[_0x1bc866]['type']){_0x218358[_0x1bc866]['item']['endIndex']=_0x1bc866;const _0x325f95=_0x218358[_0x1bc866]['item']['startIndex'];_0x218358[_0x325f95]['pairId']=_0x218358[_0x1bc866]['id'],_0x218358[_0x1bc866]['pairId']=_0x218358[_0x325f95]['id'];}else _0x218358[_0x1bc866]['item']['startIndex']=_0x1bc866,_0x218358[_0x1bc866]['item']['endIndex']=_0x1bc866,_0x218358[_0x1bc866]['pairId']=null;}_0x218358[_0x1bc866]['markersStart']||(_0x218358[_0x1bc866]['markersStart']=[],_0x218358[_0x1bc866]['markersEnd']=[]);}}['_markInsertions'](_0x3f0035,_0x24d780){const _0x541161=_0x3f0035['filter'](_0x2d52bb=>!_0x2d52bb['isAdded']);for(let _0x3cdbc0=0x0;_0x3cdbc0<_0x24d780['length'];_0x3cdbc0++)_0x24d780[_0x3cdbc0]['isAdded']&&(_0x541161[_0x3cdbc0]['isAdded']=_0x24d780[_0x3cdbc0]['isAdded']);}['_getDiff'](_0x5d0283,_0x446ad3=null){const _0x118177=this['repository']['getRevision'](_0x5d0283),_0x424163=_0x446ad3?this['repository']['getRevision'](_0x446ad3):null,_0x4317b5=this['_getRevisionsRange'](_0x118177,_0x424163),_0x20c04c=_0x4317b5[_0x4317b5['length']-0x1],_0x2c507f=new Map(),_0x490bc6={'model':{},'attributes':{},'changes':[]},_0x3f568e=new Set(),_0x3a3e7f=new Map();for(let _0x5bfefc=_0x4317b5['length']-0x1;_0x5bfefc>=0x0;_0x5bfefc--){const _0x2f8a85=_0x4317b5[_0x5bfefc];for(const _0x39f404 of Object['keys'](_0x2f8a85['diffData']))if(_0x2f8a85['diffData'][_0x39f404]['attachChange']){const _0x5ef6f4=_0x2f8a85['diffData'][_0x39f404]['attachChange'];_0x5ef6f4['isAttached']?(_0x3f568e['add'](_0x39f404),_0x3a3e7f['has'](_0x39f404)&&_0x3a3e7f['get'](_0x39f404)['userId']==_0x5ef6f4['userId']?_0x3a3e7f['delete'](_0x39f404):_0x3a3e7f['set'](_0x39f404,_0x5ef6f4)):_0x3a3e7f['has'](_0x39f404)?(_0x3f568e['delete'](_0x39f404),_0x3a3e7f['delete'](_0x39f404)):(_0x3f568e['add'](_0x39f404),_0x3a3e7f['set'](_0x39f404,_0x5ef6f4));}else _0x3f568e['add'](_0x39f404);}for(const _0x2e1ee2 of _0x3f568e){const _0x45c1b2=_0x3a3e7f['has'](_0x2e1ee2)&&!_0x3a3e7f['get'](_0x2e1ee2)['isAttached'];let _0x1e7924=_0x45c1b2?_0x4317b5['length']-0x1:0x0;const _0x4b90ee=_0x45c1b2?-0x1:0x1;for(;_0x4317b5[_0x1e7924];){const _0x138097=_0x4317b5[_0x1e7924];if(_0x138097['diffData'][_0x2e1ee2]){const _0x2b9a94=_0x45c1b2?_0x138097['diffData'][_0x2e1ee2]['attributesBefore']:_0x138097['diffData'][_0x2e1ee2]['attributesAfter'];_0x490bc6['attributes'][_0x2e1ee2]=_0x2b9a94?_0xbc63f2(_0x2b9a94):{};break;}_0x1e7924+=_0x4b90ee;}}for(const _0x277712 of _0x4317b5){_0x277712['model']={};for(const _0x2fab8f of _0x277712['authors'])_0x2c507f['set'](_0x2fab8f['id'],_0x2fab8f);for(const _0x24812d of _0x3f568e){const _0x2b3e7d=_0x277712['diffData'][_0x24812d]?_0x277712['diffData'][_0x24812d]['insertions']:'[]',_0x3d20b5=_0x277712['diffData'][_0x24812d]?_0x277712['diffData'][_0x24812d]['deletions']:'[]';_0x277712['model'][_0x24812d]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2b3e7d),'deletions':this['_utils']['_makeModelFromViewString'](_0x3d20b5)};}}for(const _0x50dfc9 of _0x3f568e){let _0x3acb14=null,_0x279d3c=0x0;const _0x1d2cea=new Map(Array['from'](_0x118177['model'][_0x50dfc9]['insertions']['markers'])['filter'](([_0x37e734])=>!_0x37e734['startsWith']('revision:')));let _0x106ced=0x0;for(const _0x36bd79 of _0x4317b5){const _0x28b428=this['_makeTape'](_0x36bd79['model'][_0x50dfc9]['insertions']);_0x36bd79==_0x118177?(_0x3acb14=_0x28b428,_0x279d3c=_0x3acb14['length'],_0x3acb14['forEach'](_0xb63e4f=>{_0xb63e4f['id']=_0x106ced++;}),this['_processTape'](_0x3acb14)):this['_markInsertions'](_0x3acb14,_0x28b428);const _0x23f8ae=_0x3acb14['filter'](_0x36d4b0=>!_0x36d4b0['isAdded'])['map'](_0x3dd532=>_0x3dd532['id']);let _0x4589ee=0x0;const _0x3e6199=this['_makeTape'](_0x36bd79['model'][_0x50dfc9]['deletions']);_0x3e6199['forEach'](_0x478eab=>{_0x478eab['isRemoved']?_0x478eab['id']=_0x279d3c++:_0x478eab['id']=_0x23f8ae[_0x4589ee++];}),this['_processTape'](_0x3e6199),this['_setDistance'](_0x3acb14,'isAdded'),this['_setDistance'](_0x3e6199,'isRemoved'),_0x36bd79==_0x118177&&this['_markMarkers'](_0x3acb14,_0x1d2cea),_0x3acb14=this['_joinTapes'](_0x3acb14,_0x3e6199),this['_refreshStartEndIndex'](_0x3acb14),this['_setDistance'](_0x3acb14,'isRemoved');}_0x3acb14=_0x3acb14['filter'](_0x1322b6=>!(_0x1322b6['isAdded']&&_0x1322b6['isRemoved']));const _0x9c3dd0=new Map(_0x20c04c['model'][_0x50dfc9]['deletions']['markers']),_0x26a9a8=new Set(_0x1d2cea['keys']());for(const _0x474089 of _0x9c3dd0['keys']())_0x26a9a8['delete'](_0x474089);this['_markSuggestions'](_0x3acb14,_0x26a9a8),this['_fixObsoleteTags'](_0x3acb14),_0x3acb14=this['_removeMissingPairs'](_0x3acb14),_0x3acb14=this['_markMismatchedRemovedTags'](_0x3acb14),_0x3acb14=this['_removeUnsupportedChanges'](_0x3acb14);const {root:_0x207f02,changes:_0x5d5e52}=this['_makeModelFromTape'](_0x3acb14,_0x2c507f,_0x50dfc9);_0x490bc6['model'][_0x50dfc9]=_0x207f02;const _0x144895=_0x3a3e7f['get'](_0x50dfc9);if(_0x144895){const _0x154186=_0x2c507f['get'](_0x144895['userId']),_0x2ad556=new G({'author':_0x154186,'type':_0x144895['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x50dfc9});_0x5d5e52['unshift'](_0x2ad556),_0x490bc6['attributes'][_0x50dfc9]['revisionHistoryAttachChange']=_0x2ad556['id'];}_0x490bc6['changes']=_0x490bc6['changes']['concat'](_0x5d5e52);}return _0x490bc6;}['_markMarkers'](_0x1cb9b6,_0x52f3c4){for(let _0x593db9=0x0;_0x593db9<_0x1cb9b6['length'];_0x593db9++)for(const [_0x284665,_0x1a9c42]of _0x52f3c4)!_0x1a9c42['isCollapsed']&&_0x1a9c42['start']['isEqual'](_0x1cb9b6[_0x593db9]['previousPosition'])&&_0x1cb9b6[_0x593db9]['markersStart']['push'](_0x284665),_0x1a9c42['end']['isEqual'](_0x1cb9b6[_0x593db9]['nextPosition'])&&_0x1cb9b6[_0x593db9]['markersEnd']['push'](_0x284665);}['_joinTapes'](_0x3adf05,_0x5c670b){let _0x33a01e=[],_0x55552f=0x0,_0x32ee27=0x0;for(;_0x55552f<_0x3adf05['length']||_0x32ee27<_0x5c670b['length'];){const _0x456862=_0x3adf05[_0x55552f]||{},_0x40de0f=_0x5c670b[_0x32ee27]||{};if(_0x456862['id']==_0x40de0f['id'])_0x55552f++,_0x32ee27++,_0x33a01e['push'](_0x456862);else{if(_0x40de0f['isRemoved']&&_0x456862['isAdded']){const {commonTape:_0x4849f7,iEnd:_0x23191c,jEnd:_0x44ece5}=this['_threeWayMerge'](_0x3adf05,_0x55552f,_0x5c670b,_0x32ee27);_0x33a01e=_0x33a01e['concat'](_0x4849f7),_0x55552f=_0x23191c,_0x32ee27=_0x44ece5;}else _0x40de0f['isRemoved']?(_0x32ee27++,_0x33a01e['push'](_0x40de0f)):(_0x55552f++,_0x33a01e['push'](_0x456862));}}return _0x33a01e;}['_markSuggestions'](_0x3aee7e,_0x46369b){const _0x1f77ef=[];for(let _0x57c33b=0x0;_0x57c33b<_0x3aee7e['length'];_0x57c33b++){for(let _0x8dbe55=0x0;_0x8dbe55<_0x3aee7e[_0x57c33b]['markersStart']['length'];_0x8dbe55++){const _0x3276ce=_0x3aee7e[_0x57c33b]['markersStart'][_0x8dbe55];if(!_0x46369b['has'](_0x3276ce))continue;const {group:_0x3bd539,type:_0x3d3ef2,authorId:_0x3e460b}=_0x564b29(_0x3276ce);'revision-suggestion'!=_0x3bd539||'insertion'!=_0x3d3ef2&&'deletion'!=_0x3d3ef2||(_0x1f77ef['unshift']({'type':_0x3d3ef2,'name':_0x3276ce,'userId':_0x3e460b}),_0x3aee7e[_0x57c33b]['markersStart']['splice'](_0x8dbe55,0x1),_0x8dbe55--);}_0x41670e(_0x3aee7e[_0x57c33b]);for(let _0x9b5957=0x0;_0x9b5957<_0x3aee7e[_0x57c33b]['markersEnd']['length'];_0x9b5957++){const _0x1113d7=_0x3aee7e[_0x57c33b]['markersEnd'][_0x9b5957];if(!_0x46369b['has'](_0x1113d7))continue;const {group:_0x55770,type:_0x57e1d5}=_0x564b29(_0x1113d7);if('revision-suggestion'!=_0x55770||'insertion'!=_0x57e1d5&&'deletion'!=_0x57e1d5)continue;_0x3aee7e[_0x57c33b]['markersEnd']['splice'](_0x9b5957,0x1),_0x9b5957--;const _0x4b8d68=_0x1f77ef['findIndex'](_0x2865ab=>_0x2865ab['name']==_0x1113d7);_0x4b8d68>-0x1&&_0x1f77ef['splice'](_0x4b8d68,0x1);}}function _0x564b29(_0x2f5fee){const _0x3f83a0=_0x2f5fee['split'](':');return{'group':_0x3f83a0[0x0],'type':_0x3f83a0[0x1],'subType':_0x3f83a0['length']>=0x5?_0x3f83a0[0x2]:null,'id':_0x3f83a0['length']<0x5?_0x3f83a0[0x2]:_0x3f83a0[0x3],'authorId':_0x3f83a0['length']<0x5?_0x3f83a0[0x3]:_0x3f83a0[0x4],'markerCount':0x6==_0x3f83a0['length']?_0x3f83a0[0x5]:null};}function _0x41670e(_0x1acad8){for(let _0x466e9b=0x0;_0x466e9b<_0x1f77ef['length'];_0x466e9b++){if(_0x1acad8['isAdded']&&'insertion'==_0x1f77ef[_0x466e9b]['type']&&_0x1acad8['isAdded']['userId']==_0x1f77ef[_0x466e9b]['userId'])return _0x1acad8['isAddSuggestion']=_0x1f77ef[_0x466e9b],void delete _0x1acad8['isAdded'];if(!_0x1acad8['isAdded']&&!_0x1acad8['isRemoved']&&'deletion'==_0x1f77ef[_0x466e9b]['type'])return void(_0x1acad8['isRemoveSuggestion']=_0x1f77ef[_0x466e9b]);}}}['_setDistance'](_0x1c0183,_0x4fbe18){let _0x5e0245=0x0,_0x4dda5e=!0x1;const _0x2a4e25=new Map();for(const _0x315be7 of _0x1c0183)_0x315be7[_0x4fbe18]?_0x4dda5e&&(_0x5e0245++,_0x4dda5e=!0x1):(_0x5e0245++,_0x4dda5e=!0x0),_0x2a4e25['set'](_0x315be7['id'],_0x5e0245);for(let _0x1c4030=0x0;_0x1c4030<_0x1c0183['length'];_0x1c4030++){if('isRemoved'==_0x4fbe18&&_0x1c0183[_0x1c4030]['isAdded']||'isAdded'==_0x4fbe18&&_0x1c0183[_0x1c4030]['isRemoved'])continue;if('text'==_0x1c0183[_0x1c4030]['type']){_0x1c0183[_0x1c4030]['distance']=0x0;continue;}const _0x525308=_0x2a4e25['get'](_0x1c0183[_0x1c4030]['pairId']),_0x2b07d0=_0x2a4e25['get'](_0x1c0183[_0x1c4030]['id']);_0x1c0183[_0x1c4030]['distance']=_0x525308-_0x2b07d0;}}['_getRevisionsRange'](_0x39f45a,_0x1753b6,_0x1832e3=!0x1){const _0x3c976e=[];let _0x4b145d=this['repository']['getIndex'](_0x39f45a),_0x47d75f=this['repository']['getIndex'](_0x1753b6);for(-0x1==_0x47d75f&&(_0x47d75f=this['repository']['_revisions']['length'],_0x1832e3=!0x1);_0x4b145d<_0x47d75f;)_0x3c976e['push'](this['repository']['getRevision'](_0x4b145d)),_0x4b145d++;return _0x1832e3&&_0x3c976e['push'](this['repository']['getRevision'](_0x4b145d)),_0x3c976e;}['_threeWayMerge'](_0x18cb2b,_0x4d7648,_0x89163b,_0x5869c0){const _0x22c92f=this['editor']['model']['schema'];let _0x979e80=_0x4d7648;for(;_0x18cb2b[_0x979e80]&&_0x18cb2b[_0x979e80]['isAdded'];)_0x979e80++;let _0xbc100f=_0x5869c0;for(;_0x89163b[_0xbc100f]&&_0x89163b[_0xbc100f]['isRemoved'];)_0xbc100f++;_0x50074d(_0x18cb2b,_0x4d7648,_0x979e80),_0x50074d(_0x89163b,_0x5869c0,_0xbc100f);const _0x56f09a=_0x89163b['slice'](_0x5869c0,_0xbc100f)['concat'](_0x18cb2b['slice'](_0x4d7648,_0x979e80));return _0x56f09a['sort']((_0x4241d2,_0x3537a3)=>_0x4241d2['side']!=_0x3537a3['side']?_0x4241d2['side']-_0x3537a3['side']:_0x4241d2['level']!=_0x3537a3['level']?_0x4241d2['level']-_0x3537a3['level']:_0x4241d2['distance']!=_0x3537a3['distance']?_0x3537a3['distance']-_0x4241d2['distance']:!!_0x4241d2['isAdded']!=!!_0x3537a3['isAdded']?-0x1==_0x4241d2['side']||0x0==_0x4241d2['side']?_0x4241d2['isAdded']?-0x1:0x1:_0x4241d2['isAdded']?0x1:-0x1:_0x4241d2['index']-_0x3537a3['index']),{'commonTape':_0x56f09a,'iEnd':_0x979e80,'jEnd':_0xbc100f};function _0x50074d(_0x1ce5c6,_0x2c958f,_0x47a373){let _0x58d360=-0x1,_0x47d57e=Number['POSITIVE_INFINITY'],_0x3f61a1=!0x0;for(let _0x125a8d=_0x2c958f;_0x125a8d<_0x47a373;_0x125a8d++)if(_0x22c92f['isInline'](_0x1ce5c6[_0x125a8d]['item'])||(_0x3f61a1=!0x1),_0x1ce5c6[_0x125a8d]['item']['startIndex']<_0x2c958f&&(_0x58d360=_0x125a8d),_0x1ce5c6[_0x125a8d]['item']['endIndex']>=_0x47a373){_0x47d57e=_0x125a8d;break;}_0x3f61a1&&(_0x58d360=_0x47a373-0x1);for(let _0x3cb392=_0x2c958f;_0x3cb392<_0x47a373;_0x3cb392++)_0x1ce5c6[_0x3cb392]['side']=_0x3cb392<=_0x58d360?-0x1:_0x3cb392<_0x47d57e?0x0:0x1,_0x1ce5c6[_0x3cb392]['index']=_0x3cb392;let _0x4fbd85=0x0;for(let _0x5044ae=_0x2c958f;_0x5044ae<=_0x58d360;_0x5044ae++)0x0==_0x1ce5c6[_0x5044ae]['distance']?_0x1ce5c6[_0x5044ae]['level']=_0x4fbd85:(_0x4fbd85++,_0x1ce5c6[_0x5044ae]['level']=_0x4fbd85,_0x4fbd85++);for(let _0xf44b2f=_0x2c958f;_0xf44b2f<_0x47a373;_0xf44b2f++)0x0==_0x1ce5c6[_0xf44b2f]['side']&&(_0x1ce5c6[_0xf44b2f]['level']=_0x4fbd85);_0x4fbd85=0x0;for(let _0x43270d=_0x47a373-0x1;_0x43270d>=_0x47d57e;_0x43270d--)0x0==_0x1ce5c6[_0x43270d]['distance']?_0x1ce5c6[_0x43270d]['level']=_0x4fbd85:(_0x4fbd85--,_0x1ce5c6[_0x43270d]['level']=_0x4fbd85,_0x4fbd85--);}}['_fixObsoleteTags'](_0x36c3f3){const _0x13af98=new Map(),_0x587b6c=this['editor']['model']['schema'];for(let _0x154b08=0x1;_0x154b08<_0x36c3f3['length'];_0x154b08++){let _0x553ed5,_0x4c308f,_0x110590;const _0x26fe51=_0x36c3f3[_0x154b08],_0x196e64=_0x36c3f3[_0x154b08-0x1];if('text'==_0x26fe51['type'])continue;if(_0x26fe51['type']!=_0x196e64['type'])continue;if(!_0x587b6c['isBlock'](_0x196e64['item'])||_0x587b6c['isLimit'](_0x196e64['item']))continue;if(!_0x587b6c['isBlock'](_0x26fe51['item'])||_0x587b6c['isLimit'](_0x26fe51['item']))continue;if((_0x36c3f3[_0x154b08]['isAdded']||_0x36c3f3[_0x154b08]['isAddSuggestion'])&&_0x36c3f3[_0x154b08-0x1]['isRemoved'])_0x553ed5=_0x36c3f3[_0x154b08],_0x4c308f=_0x36c3f3[_0x154b08-0x1],_0x110590=_0x154b08-0x1;else{if(!_0x36c3f3[_0x154b08]['isRemoved']||!_0x36c3f3[_0x154b08-0x1]['isAdded']&&!_0x36c3f3[_0x154b08-0x1]['isAddSuggestion'])continue;_0x553ed5=_0x36c3f3[_0x154b08-0x1],_0x4c308f=_0x36c3f3[_0x154b08],_0x110590=_0x154b08;}const _0x19abb4=_0x553ed5['level']==_0x4c308f['level'],_0x558b31=Math['abs'](_0x553ed5['level'])<Math['abs'](_0x4c308f['level'])&&0x0==_0x4c308f['distance'];(_0x19abb4||_0x558b31)&&(_0x13af98['set'](_0x4c308f['id'],_0x553ed5['id']),_0x36c3f3['splice'](_0x110590,0x1),_0x154b08--,_0x553ed5['isAdded']=!0x1);}for(let _0x53a2ed=0x0;_0x53a2ed<_0x36c3f3['length'];_0x53a2ed++)_0x13af98['has'](_0x36c3f3[_0x53a2ed]['pairId'])&&(_0x36c3f3[_0x53a2ed]['pairId']=_0x13af98['get'](_0x36c3f3[_0x53a2ed]['pairId']));}['_removeMissingPairs'](_0x596889){const _0x1a6b40=new Set(_0x596889['map'](_0x469daa=>_0x469daa['id']));for(let _0x2e49c6=0x0;_0x2e49c6<_0x596889['length'];_0x2e49c6++)_0x1a6b40['has'](_0x596889[_0x2e49c6]['pairId'])||0x0==_0x596889[_0x2e49c6]['distance']||(_0x596889[_0x2e49c6]['isIncorrect']=!0x0);return _0x596889['filter'](_0x355ad4=>!_0x355ad4['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4c8f8b){const _0x17ff8e=new Set();for(let _0x27b1cf=0x0;_0x27b1cf<_0x4c8f8b['length'];_0x27b1cf++){if(_0x17ff8e['has'](_0x4c8f8b[_0x27b1cf]['id'])&&_0x4c8f8b[_0x27b1cf]['isRemoved']&&(_0x4c8f8b[_0x27b1cf]['isIncorrect']=!0x0),_0x4c8f8b[_0x27b1cf]['isIncorrect'])continue;if(0x0==_0x4c8f8b[_0x27b1cf]['distance'])continue;if('elementStart'!=_0x4c8f8b[_0x27b1cf]['type'])continue;if(null==_0x4c8f8b[_0x27b1cf]['pairId'])continue;let _0x5eca87=_0x27b1cf+0x1,_0x2d225d=0x0;for(;_0x4c8f8b[_0x5eca87]['id']!=_0x4c8f8b[_0x27b1cf]['pairId'];)'elementStart'==_0x4c8f8b[_0x5eca87]['type']?_0x2d225d++:'elementEnd'==_0x4c8f8b[_0x5eca87]['type']&&_0x2d225d--,_0x5eca87++;if(0x0!=_0x2d225d){if(_0x4c8f8b[_0x27b1cf]['isRemoved'])_0x4c8f8b[_0x27b1cf]['isIncorrect']=!0x0;else{for(;_0x5eca87!=_0x27b1cf;)_0x4c8f8b[_0x5eca87]['isRemoved']&&0x0!=_0x4c8f8b[_0x5eca87]['distance']&&(_0x4c8f8b[_0x5eca87]['isIncorrect']=!0x0,_0x17ff8e['add'](_0x4c8f8b[_0x5eca87]['pairId'])),_0x5eca87--;}}}return _0x4c8f8b['filter'](_0x2e90e4=>!_0x2e90e4['isIncorrect']);}['_removeUnsupportedChanges'](_0x397f7b){const _0x275129=this['editor']['model']['schema'];for(let _0x3b0597=0x0;_0x3b0597<_0x397f7b['length'];_0x3b0597++){if(!(_0x397f7b[_0x3b0597]['isAdded']||_0x397f7b[_0x3b0597]['isAddSuggestion']||_0x397f7b[_0x3b0597]['isRemoved']||_0x397f7b[_0x3b0597]['isRemoveSuggestion']))continue;if(0x0==_0x397f7b[_0x3b0597]['distance'])continue;const _0x44b70b=_0x397f7b[_0x3b0597]['item'];_0x275129['isBlock'](_0x44b70b)||_0x275129['isLimit'](_0x44b70b)||(_0x397f7b[_0x3b0597]['isAdded']&&delete _0x397f7b[_0x3b0597]['isAdded'],_0x397f7b[_0x3b0597]['isAddSuggestion']&&delete _0x397f7b[_0x3b0597]['isAddSuggestion'],_0x397f7b[_0x3b0597]['isRemoveSuggestion']&&delete _0x397f7b[_0x3b0597]['isRemoveSuggestion'],_0x397f7b[_0x3b0597]['isRemoved']&&(_0x397f7b[_0x3b0597]['isIncorrect']=!0x0));}return _0x397f7b['filter'](_0x2318b0=>!_0x2318b0['isIncorrect']);}['_makeModelFromTape'](_0x5dce8a,_0x81cee2,_0x533d87){const _0x59573f=new at(),_0x1f84b5=[],_0x4ffc1b=new Map(),_0xc353d=this['editor']['model'],_0x58c6a9=_0xc353d['schema'],_0x3642b2=[_0x59573f],_0x3c9469={},_0x50e87b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2b9a09=null;const _0x6ef429=[0x0];for(let _0x16a4a9=0x0;_0x16a4a9<_0x5dce8a['length'];_0x16a4a9++)if('elementStart'===_0x5dce8a[_0x16a4a9]['type']){_0x5dce8a[_0x16a4a9]['previousPosition']=_0xc353d['createPositionFromPath'](_0x59573f,_0x6ef429);const _0x29255d=new nt(_0x5dce8a[_0x16a4a9]['item']['name'],_0x5dce8a[_0x16a4a9]['item']['getAttributes']());_0x3642b2[0x0]['_appendChild'](_0x29255d),_0x6ef429['push'](0x0),_0x3642b2['unshift'](_0x29255d),_0x5dce8a[_0x16a4a9]['nextPosition']=_0xc353d['createPositionFromPath'](_0x59573f,_0x6ef429);}else'elementEnd'===_0x5dce8a[_0x16a4a9]['type']?(_0x3642b2['shift'](),_0x5dce8a[_0x16a4a9]['previousPosition']=_0xc353d['createPositionFromPath'](_0x59573f,_0x6ef429),_0x6ef429['pop'](),_0x6ef429[_0x6ef429['length']-0x1]++,_0x5dce8a[_0x16a4a9]['nextPosition']=_0xc353d['createPositionFromPath'](_0x59573f,_0x6ef429)):(_0x5dce8a[_0x16a4a9]['previousPosition']=_0xc353d['createPositionFromPath'](_0x59573f,_0x6ef429),_0x2b9a09?_0x2b9a09['_data']+=_0x5dce8a[_0x16a4a9]['item']['data']:_0x2b9a09=new ht(_0x5dce8a[_0x16a4a9]['item']['data'],_0x5dce8a[_0x16a4a9]['item']['getAttributes']()),_0x5dce8a[_0x16a4a9+0x1]&&'text'===_0x5dce8a[_0x16a4a9+0x1]['type']&&_0x20d6f5(_0x2b9a09,_0x5dce8a[_0x16a4a9+0x1]['item'])||(_0x3642b2[0x0]['_appendChild'](_0x2b9a09),_0x2b9a09=null),_0x6ef429[_0x6ef429['length']-0x1]+=_0x5dce8a[_0x16a4a9]['item']['offsetSize'],_0x5dce8a[_0x16a4a9]['nextPosition']=_0xc353d['createPositionFromPath'](_0x59573f,_0x6ef429));for(let _0x4bccee=0x0;_0x4bccee<_0x5dce8a['length'];_0x4bccee++){const _0x44f830=_0x5dce8a[_0x4bccee]['previousPosition'],_0x89674b=_0x5dce8a[_0x4bccee]['nextPosition'];for(const _0x3513ff of _0x5dce8a[_0x4bccee]['markersStart'])_0x4ffc1b['set'](_0x3513ff,{'start':_0x44f830,'end':null});_0x2a3480('isRemoveSuggestion',_0x4bccee,_0x44f830,_0x89674b),_0x2a3480('isAddSuggestion',_0x4bccee,_0x44f830,_0x89674b),_0x2a3480('isRemoved',_0x4bccee,_0x44f830,_0x89674b),_0x2a3480('isAdded',_0x4bccee,_0x44f830,_0x89674b);for(const _0x82dcb1 of _0x5dce8a[_0x4bccee]['markersEnd']){const _0x83b573=_0x4ffc1b['get'](_0x82dcb1);_0x83b573?_0x83b573['end']=_0x89674b:_0x4ffc1b['set'](_0x82dcb1,{'start':_0x89674b,'end':_0x89674b});}}for(const [_0x6eef45,_0x37846e]of _0x4ffc1b){const _0x48b302=this['editor']['model']['createRange'](_0x37846e['start'],_0x37846e['end']);_0x59573f['markers']['set'](_0x6eef45,_0x48b302);}return _0x1f84b5['sort']((_0x4f43b5,_0x2a3a52)=>{const _0x34487=_0x59573f['markers']['get']('revision:'+_0x4f43b5['id']),_0x351988=_0x59573f['markers']['get']('revision:'+_0x2a3a52['id']);return _0x34487['start']['isBefore'](_0x351988['start'])?-0x1:_0x34487['start']['isAfter'](_0x351988['start'])?0x1:_0x34487['end']['isBefore'](_0x351988['end'])?-0x1:_0x34487['end']['isAfter'](_0x351988['end'])?0x1:'add'===_0x4f43b5['type']?-0x1:0x1;}),{'root':_0x59573f,'changes':_0x1f84b5};function _0x2a3480(_0x52cdc0,_0x16529c,_0x2df0d6,_0xd9f3fd){const _0x58104f=!!_0x5dce8a[_0x16529c][_0x52cdc0],_0x526eb1=_0x58104f?_0x5dce8a[_0x16529c][_0x52cdc0]['userId']:null,_0x489f38=_0x16529c===_0x5dce8a['length']-0x1,_0x163f49=_0x50e87b[_0x52cdc0][0x0],_0x4ed63b=_0x58c6a9['isObject'](_0x5dce8a[_0x16529c]['item']);!_0x3c9469[_0x52cdc0]&&_0x58104f?_0x3c9469[_0x52cdc0]={'start':_0x2df0d6,'tapeItem':_0x5dce8a[_0x16529c],'userId':_0x526eb1,'type':_0x52cdc0}:_0x3c9469[_0x52cdc0]&&!_0x58104f?(_0x3c9469[_0x52cdc0]['end']=_0x2df0d6,_0x4292e2(_0x3c9469[_0x52cdc0]),_0x3c9469[_0x52cdc0]=null):_0x3c9469[_0x52cdc0]&&_0x58104f&&_0x3c9469[_0x52cdc0]['userId']!==_0x526eb1&&(_0x3c9469[_0x52cdc0]['end']=_0x2df0d6,_0x163f49&&_0x163f49['userId']===_0x3c9469[_0x52cdc0]['userId']||_0x4292e2(_0x3c9469[_0x52cdc0]),_0x3c9469[_0x52cdc0]={'start':_0x2df0d6,'tapeItem':_0x5dce8a[_0x16529c],'userId':_0x526eb1,'type':_0x52cdc0}),_0x3c9469[_0x52cdc0]&&_0x4ed63b&&('elementStart'!==_0x5dce8a[_0x16529c]['type']||_0x163f49&&_0x163f49['userId']===_0x526eb1||_0x50e87b[_0x52cdc0]['unshift']({'userId':_0x526eb1,'object':_0x5dce8a[_0x16529c]['item'],'change':_0x3c9469[_0x52cdc0]}),'elementEnd'===_0x5dce8a[_0x16529c]['type']&&_0x163f49&&_0x163f49['object']===_0x5dce8a[_0x16529c]['item']&&(_0x50e87b[_0x52cdc0]['shift'](),_0x3c9469[_0x52cdc0]=_0x163f49['change'])),_0x3c9469[_0x52cdc0]&&_0x489f38&&(_0x3c9469[_0x52cdc0]['end']=_0xd9f3fd,_0x4292e2(_0x3c9469[_0x52cdc0]),_0x3c9469[_0x52cdc0]=null);}function _0x4292e2({start:_0x1be986,end:_0x17e6fa,tapeItem:_0x496c7f,userId:_0x439046,type:_0x24a3f9}){const _0x756540=_0x496c7f['item'],_0x246f28=_0xc353d['schema']['isBlock'](_0x756540)&&!_0xc353d['schema']['isLimit'](_0x756540),_0xb50976=_0x1be986['nodeAfter']==_0x17e6fa['parent']&&_0x17e6fa['isAtStart'];if(_0x246f28&&_0xb50976)return;const _0x3ba9ed=_0xc353d['createRange'](_0x1be986,_0x17e6fa),_0x5cce9d=_0x81cee2['get'](_0x439046),_0x17637d=new G({'author':_0x5cce9d,'type':'isAdded'==_0x24a3f9||'isAddSuggestion'==_0x24a3f9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x24a3f9||'isRemoveSuggestion'==_0x24a3f9},'createdAt':new Date(),'rootName':_0x533d87});_0x1f84b5['push'](_0x17637d),_0x59573f['markers']['set']('revision:'+_0x17637d['id'],_0x3ba9ed);}function _0x20d6f5(_0x3bd48e,_0xb45065){const _0x4d0d8b=_0x3bd48e['getAttributes'](),_0x31f5e2=_0xb45065['getAttributes']();for(const _0xd4fed1 of _0x4d0d8b){if(_0xd4fed1[0x1]!==_0xb45065['getAttribute'](_0xd4fed1[0x0]))return!0x1;_0x31f5e2['next']();}return _0x31f5e2['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x586a11=>{const _0x1f3d4d=_0x586a11['markerName']['split'](':')[0x1],_0x10d0ec=this['_getChangeFromId'](_0x1f3d4d);if(!_0x10d0ec)return null;const _0x7af88f='add'==_0x10d0ec['type']?'insertion':'deletion',_0x10d24e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x7af88f];return _0x10d0ec['data']['isSuggestion']&&_0x10d24e['push']('ck-suggestion-marker-'+_0x7af88f+'-new'),this['activeChange']==_0x10d0ec&&_0x10d24e['push']('ck-suggestion-marker--active'),{'classes':_0x10d24e,'attributes':{'data-change-id':_0x1f3d4d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4a5072=>{_0x4a5072['on']('element:pre',(_0x283ee,_0x5cb6b9,_0xd9cdf5)=>{const _0x478ddc=_0x5cb6b9['viewItem']['getChild'](0x0);if(!_0x478ddc||!_0x478ddc['is']('element','code'))return;if(!_0xd9cdf5['consumable']['consume'](_0x478ddc,{'attributes':['vid_start','vid_end']}))return;const _0x3448c1=_0x5cb6b9['modelRange']['start']['nodeAfter'];_0xd9cdf5['writer']['setAttribute']('vid_start',_0x478ddc['getAttribute']('vid_start'),_0x3448c1),_0xd9cdf5['writer']['setAttribute']('vid_end',_0x478ddc['getAttribute']('vid_end'),_0x3448c1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x303d20=>{_0x303d20['on']('element',(_0x3db5f4,_0x1d91d5,_0x3a298c)=>{if(!_0x3a298c['consumable']['consume'](_0x1d91d5['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1d91d5['modelRange']['isCollapsed'])return;const _0x146111=_0x1d91d5['modelRange']['start']['nodeAfter'];_0x146111['hasAttribute']('vid_start')||_0x146111['hasAttribute']('vid')||(_0x3a298c['writer']['setAttribute']('vid_start',_0x1d91d5['viewItem']['getAttribute']('vid_start'),_0x146111),_0x3a298c['writer']['setAttribute']('vid_end',_0x1d91d5['viewItem']['getAttribute']('vid_end'),_0x146111));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43a353=>_0x43a353['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x486219,[,_0x593969])=>{['vid_start','vid_end','vid']['includes'](_0x593969)&&(_0x486219['return']=!0x0,_0x486219['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5f3dd2=>{_0x5f3dd2['on']('attribute:vid',(_0x5bf468,_0x9888d1,_0x234060)=>{if('\x20'!=_0x9888d1['item']['data']||_0x9888d1['item']['parent']['maxOffset']>0x1)return;if(!_0x234060['consumable']['consume'](_0x9888d1['item'],_0x5bf468['name']))return;const _0x524f4c=_0x234060['writer'],_0x37076f=_0x234060['mapper']['toViewRange'](_0x9888d1['range']);_0x524f4c['wrap'](_0x37076f,_0x524f4c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3ee4f7){const _0x76e220=_0x3ee4f7['plugins']['get']('RevisionViewer');return(_0x4615b4,_0x4b2b84,_0x35da7a)=>{const _0x3e957c=_0x4b2b84['markerName']['split'](':')[0x1],_0x343f64=_0x76e220['_getChangeFromId'](_0x3e957c);if(!_0x343f64)return null;const _0xf2f835='add'==_0x343f64['type']?'split':'merge';if(!_0x35da7a['consumable']['test'](_0x4b2b84['markerRange'],_0x4615b4['name']))return;const _0x118139=_0x4b2b84['markerRange']['getWalker'](),_0x58c017=_0x4b2b84['markerRange']['start'],_0x4e6ecf=_0x3ee4f7['model']['schema'];let _0x38cbb8=null,_0xb422de=null,_0x210ffd=!0x1,_0x40f518=!0x1;for(const _0xd33349 of _0x118139){const _0x5bea7e=_0xd33349['item'];_0x210ffd=_0x210ffd||_0x4e6ecf['isContent'](_0x5bea7e);const _0x531c82=_0x35da7a['mapper']['toViewElement'](_0x5bea7e);if(_0x531c82&&_0x531c82['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd33349['type']&&(_0x4e6ecf['isBlock'](_0x5bea7e)&&!_0x4e6ecf['isLimit'](_0x5bea7e)&&(_0x5bea7e['nextSibling']||_0x58c017['isAtEnd']?_0x38cbb8&&_0x38cbb8['parent']==_0x5bea7e||(_0x38cbb8=_0x5bea7e,_0x8cae1a(_0xd33349['previousPosition']),_0x40f518=!0x0):_0xb422de=_0xb422de||_0xd33349['previousPosition']));}function _0x8cae1a(_0x249745){const _0x44c080=_0x35da7a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf2f835}),_0x41406c=_0x35da7a['mapper']['toViewPosition'](_0x249745);_0x343f64['data']['isSuggestion']&&_0x35da7a['writer']['addClass']('ck-suggestion-marker-'+_0xf2f835+'-new',_0x44c080),_0x76e220['activeChange']==_0x343f64&&_0x35da7a['writer']['addClass']('ck-suggestion-marker--active',_0x44c080),_0x35da7a['writer']['insert'](_0x41406c,_0x44c080),_0x35da7a['mapper']['bindElementToMarker'](_0x44c080,_0x4b2b84['markerName']);}_0x210ffd||_0x40f518||!_0xb422de||_0x8cae1a(_0xb422de);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x327231,_0xaba946,_0x245b87)=>{const _0x261bb0=_0x245b87['mapper']['markerNameToElements'](_0xaba946['markerName']);if(_0x261bb0){for(const _0x43594a of _0x261bb0)(_0x43594a['hasClass']('ck-suggestion-marker-split')||_0x43594a['hasClass']('ck-suggestion-marker-merge'))&&(_0x245b87['mapper']['unbindElementFromMarkerName'](_0x43594a,_0xaba946['markerName']),_0x245b87['writer']['remove'](_0x43594a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x41d645,_0x13529d,_0x567a34)=>{const _0x355aba=_0x13529d['markerName']['split'](':')[0x1],_0x3a39a0=this['_getChangeFromId'](_0x355aba);if(!_0x3a39a0)return null;const _0x557c3e='add'==_0x3a39a0['type']?'split':'merge';if(_0x567a34['consumable']['test'](_0x13529d['markerRange'],_0x41d645['name']))for(const _0x132d92 of _0x13529d['markerRange']['getItems']()){if(!_0x132d92['is']('element','softBreak'))continue;const _0x39c17a=_0x567a34['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x557c3e}),_0x2d42d0=_0x567a34['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x132d92));_0x3a39a0['data']['isSuggestion']&&_0x567a34['writer']['addClass']('ck-suggestion-marker-'+_0x557c3e+'-new',_0x39c17a),this['activeChange']==_0x3a39a0&&_0x567a34['writer']['addClass']('ck-suggestion-marker--active',_0x39c17a),_0x567a34['writer']['insert'](_0x2d42d0,_0x39c17a),_0x567a34['mapper']['bindElementToMarker'](_0x39c17a,_0x13529d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x33e0a8=>{for(const _0x3c2fdf of this['editor']['model']['document']['getRootNames']()){const _0x369c88=this['editor']['model']['document']['getRoot'](_0x3c2fdf),_0x5b59d0=this['editor']['editing']['view']['document']['getRoot'](_0x3c2fdf);if(_0x5b59d0){const _0x3c0f50=_0x369c88['getAttribute']('revisionHistoryAttachChange');if(_0x33e0a8['removeAttribute']('data-change-id',_0x5b59d0),_0x33e0a8['removeClass']('ck-revision-history-root-add',_0x5b59d0),_0x33e0a8['removeClass']('ck-revision-history-root-remove',_0x5b59d0),_0x33e0a8['removeClass']('ck-revision-history-root--active',_0x5b59d0),_0x3c0f50){const _0x37b945=this['_getChangeFromId'](_0x3c0f50);if(!_0x37b945)return null;_0x33e0a8['setAttribute']('data-change-id',_0x3c0f50,_0x5b59d0),_0x33e0a8['addClass']('ck-revision-history-root-'+_0x37b945['type'],_0x5b59d0),this['activeChange']==_0x37b945&&_0x33e0a8['addClass']('ck-revision-history-root--active',_0x5b59d0);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1065e7=>'revision-comment:'+_0x1065e7,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4f8356=>'revision-suggestion:'+_0x4f8356,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x134fbc=>({'name':'suggestion:'+_0x134fbc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x33b925=>{const _0x19e001=_0x33b925['markerName']['split'](':')[0x1];return'insertion'!=_0x19e001&&'deletion'!=_0x19e001?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x19e001]};}}),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',(_0x40f912,_0x3df0e4,_0x4141c1)=>{const _0x394cfb=_0x4141c1['mapper']['markerNameToElements'](_0x3df0e4['markerName']);if(_0x394cfb){for(const _0x1e584 of _0x394cfb)_0x1e584['is']('uiElement')&&(_0x4141c1['mapper']['unbindElementFromMarkerName'](_0x1e584,_0x3df0e4['markerName']),_0x4141c1['writer']['remove'](_0x1e584));}},{'priority':'high'});}['_getChangeFromId'](_0x1cc778){return this['_changeIdToChange']['get'](_0x1cc778);}['_getViewForChange'](_0x1284a6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x1284a6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4425c0,_0x1d1455,_0x2db632,_0x4fcd0b)=>{_0x4fcd0b&&this['_balloon']['remove'](_0x4fcd0b),_0x2db632&&(this['_balloon']['add']({'view':_0x2db632,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x352989=this['editor']['editing'],_0x2179be=this['_getChangeFromId'](_0x2db632['changeId']);let _0x5a04f8;if(_0x2179be['data']['isOnRoot']){const _0x14cfc6=_0x352989['view']['getDomRoot'](_0x2179be['rootName']);_0x5a04f8=Array['from'](_0x14cfc6['getClientRects']());}else{const _0x1c3fa5=this['editor']['model']['markers']['get']('revision:'+_0x2db632['changeId']);_0x5a04f8=Array['from'](_0x352989['mapper']['markerNameToElements'](_0x1c3fa5['name']))['map'](_0x247ae6=>_0x352989['view']['domConverter']['mapViewToDom'](_0x247ae6))['map'](_0x27c01e=>Array['from'](_0x27c01e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5a04f8[0x0];return _0x5a04f8['find'](_0xe0c53c=>_0xe0c53c['top']-0x3<=this['_activeViewTarget']['y']&&_0xe0c53c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xe0c53c['left']-0x3<=this['_activeViewTarget']['x']&&_0xe0c53c['right']+0x3>=this['_activeViewTarget']['x'])||_0x5a04f8[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x113658,_0x8b80e,_0x328da6,_0xad18d3)=>{this['activeView']=_0x328da6?this['_getViewForChange'](_0x328da6):null,this['editor']['model']['change'](()=>{const _0x5b3a6a=this['editor']['editing'];_0xad18d3&&(_0xad18d3['data']['isOnRoot']?_0x5b3a6a['view']['change'](_0x1485a7=>{_0x1485a7['removeClass']('ck-revision-history-root--active',_0x5b3a6a['view']['document']['getRoot'](_0xad18d3['rootName']));}):_0x5b3a6a['reconvertMarker']('revision:'+_0xad18d3['id'])),_0x328da6&&(_0x328da6['data']['isOnRoot']?_0x5b3a6a['view']['change'](_0x4dd113=>{_0x4dd113['addClass']('ck-revision-history-root--active',_0x5b3a6a['view']['document']['getRoot'](_0x328da6['rootName']));}):_0x5b3a6a['reconvertMarker']('revision:'+_0x328da6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4c63d5,_0x453242)=>{if(this['activeChange'])return;const _0x49fa23=this['_findChangeIdFromDomTarget'](_0x453242['target']),_0x34c11c=this['_changeIdToChange']['get'](_0x49fa23);_0x34c11c?(this['_activeViewTarget']={'x':_0x453242['domEvent']['x'],'y':_0x453242['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x34c11c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x516ffc,_0x258c46)=>{const _0x454899=this['_findChangeIdFromDomTarget'](_0x258c46['target']),_0x15a016=this['_changeIdToChange']['get'](_0x454899);_0x15a016?(this['_activeViewTarget']={'x':_0x258c46['domEvent']['x'],'y':_0x258c46['domEvent']['y']},_0x15a016===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x15a016):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x557951){do{const _0x29cd3f=_0x557951['getAttribute']('data-change-id');if(_0x29cd3f)return _0x29cd3f;_0x557951=_0x557951['parent'];}while(_0x557951);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x219dff=>{for(const _0x4cfb5f of this['editor']['model']['markers'])_0x219dff['removeMarker'](_0x4cfb5f);});}}function Q(_0x3ed111,_0x4bae01){return(_0x2971de,_0x2deac0,_0x24946c)=>{if(!_0x24946c['consumable']['test'](_0x2deac0['markerRange'],_0x2971de['name']))return;const _0x26c82d=_0x2deac0['markerRange']['getWalker'](),_0x2ac004=_0x2deac0['markerRange']['start'],_0x3262b1=_0x3ed111['model']['schema'];let _0x4f9e40=null,_0x3ea2cf=null,_0x2d8a72=!0x1,_0x360ad8=!0x1;for(const _0x593fcd of _0x26c82d){const _0x21a1d6=_0x593fcd['item'];_0x2d8a72=_0x2d8a72||_0x3262b1['isContent'](_0x21a1d6);const _0x368aa7=_0x24946c['mapper']['toViewElement'](_0x21a1d6);if(_0x368aa7&&_0x368aa7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x593fcd['type']&&(_0x3262b1['isBlock'](_0x21a1d6)&&!_0x3262b1['isLimit'](_0x21a1d6)&&(_0x21a1d6['nextSibling']||_0x2ac004['isAtEnd']?_0x4f9e40&&_0x4f9e40['parent']==_0x21a1d6||(_0x4f9e40=_0x21a1d6,_0x5ecbc8(_0x593fcd['previousPosition']),_0x360ad8=!0x0):_0x3ea2cf=_0x3ea2cf||_0x593fcd['previousPosition']));}function _0x5ecbc8(_0xcb16e1){const _0x3d8c82=_0x24946c['mapper']['toViewPosition'](_0xcb16e1),_0x31e410=_0x24946c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4bae01});_0x24946c['writer']['insert'](_0x3d8c82,_0x31e410),_0x24946c['mapper']['bindElementToMarker'](_0x31e410,_0x2deac0['markerName']);}_0x2d8a72||_0x360ad8||!_0x3ea2cf||_0x5ecbc8(_0x3ea2cf);};}class ct extends _0x37fc2a{constructor(_0x3ec121){super(_0x3ec121);const _0x3c29df=_0x3ec121['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x3c29df,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3c29df,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x45f40c=this['editor'],_0x43fdbd=_0x45f40c['plugins']['get'](l),_0x225983=_0x43fdbd['isReady']?_0x43fdbd['diff']['newRevisionId']:null;_0x45f40c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x225983);}['refresh'](){const {isReady:_0x59a0eb,isEnabled:_0x1a2f08,repository:_0x2c13b3,diff:_0x9488ce}=this['editor']['plugins']['get'](l),_0x1d0037=_0x9488ce&&_0x2c13b3['getLaterVisibleRevision'](_0x9488ce['newRevisionId']);this['isEnabled']=_0x59a0eb&&_0x1a2f08&&Boolean(_0x1d0037);}}class ut extends _0x37fc2a{['_step'];constructor(_0xd69e6e,{direction:_0x4120b5}){super(_0xd69e6e);const _0x5b9279=_0xd69e6e['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x4120b5?0x1:-0x1,this['listenTo'](_0x5b9279,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5b9279,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5b9279,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x52962b=this['editor'],_0x9b341f=_0x52962b['plugins']['get'](l),{isNavigationMode:_0x4b3828,currentChangeNumber:_0x552b99}=_0x9b341f;let _0x5adc6b;if(_0x9b341f['activeChange']=_0x4b3828?_0x9b341f['diff']['changes']['get'](_0x552b99+this['_step']):_0x9b341f['diff']['changes']['first'],_0x9b341f['activeChange']['data']['isOnRoot'])_0x5adc6b=_0x52962b['editing']['view']['getDomRoot'](_0x9b341f['activeChange']['rootName']);else{const _0x24fe07=_0x52962b['model']['markers']['get']('revision:'+_0x9b341f['activeChange']['id']);_0x5adc6b=_0x367d62(_0x52962b['editing'],_0x24fe07);}_0x30e510({'target':_0x5adc6b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x142ec2,currentChangeNumber:_0x4b4e1e,numberOfChanges:_0x1e80e8,isReady:_0x3679cb,isEnabled:_0x34a385}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x34a385&&_0x3679cb&&_0x1e80e8)&&(!_0x142ec2||(0x1===this['_step']?_0x4b4e1e<_0x1e80e8-0x1:_0x4b4e1e>0x0));}}class Ri extends _0x5e1984{constructor(_0x12090f){super(_0x12090f);const _0x26492d=this['bindTemplate'],_0x235aeb=new _0x19ef5a(_0x12090f),_0x28dfbf=new _0x19ef5a(_0x12090f);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',(_0x4080ac,_0x1d4d26)=>_0x4080ac&&_0x1d4d26>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x13228d,_0x7b2fb,_0x54507c,_0x52b405)=>{if(!_0x13228d)return R(_0x12090f,'Loading...');if(!_0x54507c)return R(_0x12090f,'No\x20changes');const _0x505f1d=R(_0x12090f,'NUMBER_OF_CHANGES',_0x54507c);return _0x52b405?R(_0x12090f,'X_OF_Y_CHANGES',[_0x7b2fb+0x1,_0x54507c]):_0x505f1d;}),_0x235aeb['set']({'label':R(_0x12090f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x403e9d}),_0x28dfbf['set']({'label':R(_0x12090f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x53d0e4}),_0x235aeb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x28dfbf['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x235aeb['on']('execute',()=>this['fire']('execute','backward')),_0x28dfbf['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',_0x26492d['if']('_isStatusLabelVisible','ck-hidden',_0x18cf1f=>!_0x18cf1f)]},'children':[{'text':_0x26492d['to']('isNavigationMode',_0x2e5e82=>_0x2e5e82?R(_0x12090f,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x12090f,'Total')+':\x20')}]},{'text':_0x26492d['to']('_statusText')}]},new _0x1e1624(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x235aeb,_0x28dfbf]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x1ffbe8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x188fae=this['editor']['editing']['view'];_0x188fae['change'](_0x3184cd=>{for(const _0x2ed982 of _0x188fae['document']['roots'])_0x3184cd['addClass'](ge,_0x2ed982);});}['hide'](){const _0x146645=this['editor']['editing']['view'];_0x146645['change'](_0x4ad4e7=>{for(const _0x2ea57c of _0x146645['document']['roots'])_0x4ad4e7['removeClass'](ge,_0x2ea57c);});}}class u extends _0x1ffbe8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0xb0f799=this['editor'],_0x183327=_0xb0f799['plugins']['get'](l),_0x208d54=_0xb0f799['plugins']['get'](ji);_0xb0f799['ui']['componentFactory']['add']('exitToEditing',_0x5c155b=>{const _0x2af02e=new _0x19ef5a(_0x5c155b);return _0x2af02e['set']({'label':R(_0x5c155b,'Back\x20to\x20editing'),'icon':_0x3953e2,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2af02e,'execute',()=>{_0xb0f799['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2af02e;}),_0xb0f799['ui']['componentFactory']['add']('restoreRevision',_0x5a8cbb=>{const _0x54b807=new _0x19ef5a(_0x5a8cbb);return _0x54b807['set']({'label':R(_0x5a8cbb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x54b807['bind']('isEnabled')['to'](_0xb0f799['commands']['get']('restoreRevision')),this['listenTo'](_0x54b807,'execute',()=>_0xb0f799['execute']('restoreRevision')),_0x54b807;}),_0xb0f799['ui']['componentFactory']['add']('changesNavigation',_0x55d1d5=>{const _0x59cfa4=new Ri(_0x55d1d5),_0x13624e=_0xb0f799['commands']['get']('showPreviousChange'),_0x35bb7f=_0xb0f799['commands']['get']('showNextChange');return _0x59cfa4['bind']('isBackwardNavigationEnabled')['to'](_0x13624e,'isEnabled'),_0x59cfa4['bind']('isForwardNavigationEnabled')['to'](_0x35bb7f,'isEnabled'),_0x59cfa4['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x183327),this['listenTo'](_0x59cfa4,'execute',(_0x2f212f,_0x6be216)=>{_0xb0f799['execute']('forward'===_0x6be216?'showNextChange':'showPreviousChange');}),_0x59cfa4;}),_0x208d54['show'](),_0x183327['on']('change:isReady',(_0x28d77e,_0x39aa5b,_0x133770)=>{_0x133770?_0x208d54['hide']():_0x208d54['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0xd618ea,_0x3c9e1a){super(_0xd618ea,_0x3c9e1a);const _0x4fcd52=this['bindTemplate'];this['set']({'label':R(_0xd618ea,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0xd618ea,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4fcd52['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 _0x887fa=this['fieldView']['element'];this['_tooltipString']=_0x887fa['scrollWidth']>_0x887fa['clientWidth']&&_0x887fa['value']||'';}}class vi extends _0x5e1984{constructor(_0x3dbd55,_0x1bfd4a,_0x39d32c){super(_0x3dbd55);const _0x8bb9f3=new _0x3a236e();_0x8bb9f3['set']({'content':_0x3b7323,'viewBox':'0\x200\x2011\x2010'});const _0x3bd9a5=['ck','ck-revision-history-sidebar__revision-author'];_0x39d32c&&_0x3bd9a5['push']('ck-revision-history-sidebar__revision-author_creator');const _0xcf4e4d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3dbd55,_0x39d32c?'Revision\x20creator':'Revision\x20author')},'children':[_0x8bb9f3,_0x1bfd4a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3bd9a5},'children':_0xcf4e4d});}}function mi(_0x78e560,_0x4269a3){const _0x39e222=_0x78e560['bindTemplate'],_0x301073=_0x78e560['locale'],_0x16ba52=_0x373df0(_0x301073);_0x16ba52['panelPosition']='sw';const _0x18ad92=function(_0x49e20b,_0x1c2498){const _0x24c21d=function(_0x372520,_0x41f8a6){const _0x554202=_0x372520['locale'],_0x2ce0ff={'Compare\x20against\x20selected':R(_0x554202,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x554202,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x554202,'Restore\x20this\x20revision')};return _0x41f8a6['map'](_0x2c2e22=>{const _0x2218ca=_0x2ce0ff[_0x2c2e22['name']];return _0x2218ca&&_0x2218ca!==_0x2c2e22['name']&&(_0x2c2e22['name']=_0x2218ca),_0x2c2e22;});}(_0x49e20b,_0x1c2498),_0x129c3d=new _0x5e0d45();for(const _0x57ae94 of _0x24c21d){const _0x2c2ba7={'type':'button','model':new to({'label':_0x57ae94['name'],'class':_0x57ae94['class'],'withText':!0x0,'role':'menuitem','_action':_0x57ae94['action']})};_0x2c2ba7['model']['bind']('isEnabled')['to'](_0x49e20b,'isActionsDropdownOpen',_0x348de9=>'function'!=typeof _0x57ae94['isEnabled']||(!_0x348de9||_0x57ae94['isEnabled'](_0x49e20b))),_0x129c3d['add'](_0x2c2ba7);}return _0x129c3d;}(_0x78e560,_0x4269a3);return _0x78e560['bind']('isActionsDropdownOpen')['to'](_0x16ba52,'isOpen'),_0x16ba52['buttonView']['set']({'label':R(_0x301073,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x8f99cc}),_0x16ba52['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x39e222['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x39e222['to'](_0x48fe2a=>_0x48fe2a['stopPropagation']())}}),_0x16ba52['on']('execute',_0x4fd58b=>{_0x78e560['isReady']&&'function'==typeof _0x4fd58b['source']['_action']&&_0x4fd58b['source']['_action'](_0x78e560);}),_0x23d963(_0x16ba52,_0x18ad92,{'role':'menu'}),_0x16ba52['listenTo'](_0x78e560,'change:isActionsDropdownOpen',(_0x52d9db,_0x105dc2,_0x2cd225)=>{if(_0x2cd225)for(const _0x5e76c6 of _0x16ba52['listView']['items']){const _0x1d969f=_0x5e76c6['children']['first'],_0x4ed43a=_0x4269a3['find'](_0xce0ade=>_0xce0ade['action']===_0x1d969f['_action'])['isVisible'];_0x5e76c6['isVisible']=void 0x0===_0x4ed43a||_0x4ed43a(_0x78e560);}}),_0x16ba52;}class pi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x545499,uid as _0x1acbd4,Collection as _0x520a1c,logWarning as _0x34041e,FocusTracker as _0x1aa3c7,KeystrokeHandler as _0xbc8243,scrollViewportToShowTarget as _0x40129e,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x4febb9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x12b4d9,set as _0x16a420,unset as _0x46262a,isEqual as _0x2c3c97}from'es-toolkit/compat';import{Plugin as _0x484656,PendingActions as _0x91a079,Command as _0x3346a7,ElementApiMixin as _0x3a8831,Editor as _0x25e56f}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2e0fe2,getMarkerDomElement as _0x541237,ConfirmMixin as _0x4f2fa1,sanitizeEditorConfig as _0x58abbc}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x37da2d,ViewAttributeElement as _0x256273,ViewEmptyElement as _0x33db1b,ViewRawElement as _0x4e2b97,ViewUIElement as _0x203647,ViewDocumentFragment as _0x103c63,ViewText as _0xd4d255,ViewElement as _0x4aa16d,Element as nt,Range as rt,Position as at,DocumentFragment as ht,Text as ct}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1879f6,IconChevronUp as _0x577a94,IconChevronDown as _0x1a4c43,IconUndo as _0x27d18b,IconUser as _0x5f2d82,IconThreeVerticalDots as _0x32264f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x46e6d6,View as _0x58fabb,submitHandler as _0x3db616,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x4d03d3,ListView as _0xa41d6a,ListItemView as _0x1f8608,ButtonView as _0x323e15,MenuBarMenuView as _0x29504c,MenuBarMenuListView as _0x188a3e,MenuBarMenuListItemView as _0x3074de,MenuBarMenuListItemButtonView as _0x1452d3,ContextualBalloon as _0x4f4832,ToolbarSeparatorView as _0x29c8fb,IconView as _0x4c5c7b,addListToDropdown as _0x2a5316,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x4944b7,StickyPanelView as _0x1888b4,ToolbarView as _0x2f8aff,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x50fa3b}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x545499(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4e70e4){super(),this['id']=_0x4e70e4['id']||_0x1acbd4(),this['creator']=_0x4e70e4['creator']||null,this['authors']=_0x4e70e4['authors']||[],this['diffData']=_0x4e70e4['diffData']||null,this['toVersion']=_0x4e70e4['toVersion']||0x0,this['fromVersion']=_0x4e70e4['fromVersion']||0x0,this['set']('name',_0x4e70e4['name']||''),this['set']('createdAt',_0x4e70e4['createdAt']||new Date()),this['set']('attributes',_0x4e70e4['attributes']||{});}['setName'](_0x22a3c2){this['_update']({'name':_0x22a3c2});}['setAttribute'](_0x201d79,_0x44b6bd){const _0x419e3e=_0x12b4d9(this['attributes']);_0x16a420(_0x419e3e,_0x201d79,_0x44b6bd),this['_update']({'attributes':_0x419e3e});}['removeAttribute'](_0x5487b9){const _0x15e6ae=_0x12b4d9(this['attributes']);_0x46262a(_0x15e6ae,_0x5487b9),this['_update']({'attributes':_0x15e6ae});}['_update'](_0x1e911d,_0x6d5891=!0x1){let _0x40907f=!0x1;const _0x44664e={'id':this['id']},_0x48aa6f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x129e15 of _0x48aa6f){const _0x4b7603=_0x1e911d[_0x129e15];void 0x0!==_0x4b7603&&_0x4b7603!==this[_0x129e15]&&(this[_0x129e15]=_0x4b7603,_0x44664e[_0x129e15]=_0x4b7603,_0x40907f=!0x0);}_0x40907f&&(_0x44664e['authors']&&(_0x44664e['authorsIds']=_0x44664e['authors']['map'](_0x862fe4=>_0x862fe4['id']),delete _0x44664e['authors']),this['fire']('_update',_0x44664e,_0x6d5891));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1be1f8=>_0x1be1f8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x484656{['_revisions'];static get['requires'](){return[_0x2e0fe2];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x39a45e){super(_0x39a45e),this['_revisions']=new _0x520a1c();}['afterInit'](){!async function(_0x2cfdd6){const _0x3a5bbd=_0x32009f([0x4f,0x47,0x38,0x79,0x31,0x57,0x6b,0x32,0x73,0x54,0x5a,0x45,0x4b,0x69,0x44,0x58,0x65,0x61,0x6c,0x43,0x63,0x6a,0x52,0x78,0x62,0x64,0x74,0x67,0x53,0x7a,0x4a,0x59,0x34,0x35,0x72,0x36,0x4c,0x39,0x4e,0x4d,0x37,0x77,0x50,0x6f,0x55,0x6e,0x71,0x33,0x51,0x70,0x46,0x6d,0x76,0x30,0x66,0x41,0x56,0x49,0x68,0x42,0x48,0x75]),_0x47ea70=0xeb829,_0x531f61=0x516dfc72,_0x1f24e6=0x516a96d2^_0x531f61,_0xe64692=window[_0x32009f([0x44,0x61,0x74,0x65])][_0x32009f([0x6e,0x6f,0x77])](),_0x1d6535=_0x2cfdd6[_0x32009f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a9d76=new window[(_0x32009f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5341b0=>{_0x1d6535[_0x32009f([0x6f,0x6e,0x63,0x65])](_0x32009f([0x72,0x65,0x61,0x64,0x79]),_0x5341b0);}),_0x57f73c={[_0x32009f([0x6b,0x74,0x79])]:_0x32009f([0x45,0x43]),[_0x32009f([0x75,0x73,0x65])]:_0x32009f([0x73,0x69,0x67]),[_0x32009f([0x63,0x72,0x76])]:_0x32009f([0x50,0x2d,0x32,0x35,0x36]),[_0x32009f([0x78])]:_0x32009f([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]),[_0x32009f([0x79])]:_0x32009f([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]),[_0x32009f([0x61,0x6c,0x67])]:_0x32009f([0x45,0x53,0x32,0x35,0x36])},_0x1a0884=_0x1d6535[_0x32009f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32009f([0x67,0x65,0x74])](_0x32009f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c5643(){let _0x1f94a2,_0x55f48b=null,_0x5ea9d1=null;try{if(_0x1a0884==_0x32009f([0x47,0x50,0x4c]))return _0x32009f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1f94a2=_0x175f14(),!_0x1f94a2)return _0x32009f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1f94a2[_0x32009f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ea9d1=_0x58186b(_0x1f94a2[_0x32009f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1f94a2[_0x32009f([0x6a,0x74,0x69])])),await _0x20464d()?_0x52d6f7()?_0x1391be()?_0x32009f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4fb8d1()?(_0x1f94a2[_0x32009f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32009f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55f48b=_0x174b9e(_0x32009f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1f94a2[_0x32009f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32009f([0x74,0x72,0x69,0x61,0x6c])&&(_0x55f48b=_0x174b9e(_0x32009f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d5108()):_0x32009f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32009f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32009f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32009f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1391be(){const _0x239f30=[_0x32009f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32009f([0x74,0x72,0x69,0x61,0x6c])][_0x32009f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f94a2[_0x32009f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe64692/0x3e8:0xe10*_0x1f24e6;return _0x1f94a2[_0x32009f([0x65,0x78,0x70])]<_0x239f30;}function _0x52d6f7(){const _0x5ae033=_0x1f94a2[_0x32009f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5ae033)return!0x1;if(_0x5ae033[_0x32009f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32009f([0x2a])))return!0x0;if(_0x5ae033[_0x32009f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32009f([0x52,0x48])))return!0x0;if(_0x5ae033[_0x32009f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32009f([0x52,0x52,0x48]))){if(_0x2a5725())return!0x0;if(_0x530193()||_0x50ba82())return!0x0;}return!0x1;}function _0x4fb8d1(){const _0x5b8be4=_0x1f94a2[_0x32009f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b8be4||0x0==_0x5b8be4[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f32f7}=new URL(window[_0x32009f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b8be4[_0x32009f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f32f7))return!0x0;const _0x58708a=_0x5f32f7[_0x32009f([0x73,0x70,0x6c,0x69,0x74])](_0x32009f([0x2e]));return _0x5b8be4[_0x32009f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ffff=>_0x38ffff[_0x32009f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32009f([0x2a])))[_0x32009f([0x6d,0x61,0x70])](_0x186350=>_0x186350[_0x32009f([0x73,0x70,0x6c,0x69,0x74])](_0x32009f([0x2e])))[_0x32009f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b838c=>_0x1b838c[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x58708a[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32009f([0x6d,0x61,0x70])](_0x47196c=>Array(_0x58708a[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47196c[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32009f([0x66,0x69,0x6c,0x6c])](_0x47196c[0x0]===_0x32009f([0x2a])?_0x32009f([0x2a]):'')[_0x32009f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47196c))[_0x32009f([0x73,0x6f,0x6d,0x65])](_0xc64856=>_0x58708a[_0x32009f([0x65,0x76,0x65,0x72,0x79])]((_0x27f595,_0x171836)=>_0xc64856[_0x171836]===_0x27f595||_0xc64856[_0x171836]===_0x32009f([0x2a])));}function _0x2d5108(){return _0x55f48b&&_0x5ea9d1?new window[(_0x32009f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12ab86,_0x476c12)=>{_0x55f48b[_0x32009f([0x74,0x68,0x65,0x6e])](_0x12ab86,_0x476c12),_0x5ea9d1[_0x32009f([0x74,0x68,0x65,0x6e])](_0x352ddd=>{_0x352ddd!=_0x32009f([0x56,0x61,0x6c,0x69,0x64])&&_0x12ab86(_0x352ddd);},_0x476c12);}):_0x55f48b||_0x5ea9d1||_0x32009f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58186b(_0x155852,_0x36bc6e){return new window[(_0x32009f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42b6fc=>{if(_0x215404())return _0x42b6fc(_0x32009f([0x56,0x61,0x6c,0x69,0x64]));_0x2102f5(),_0x1d6535[_0x32009f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32009f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c0c4e=!0x1;const _0x23e312=_0x1acbd4();function _0x222fcc(_0x2bd2ca){return!!_0x2bd2ca&&(typeof _0x2bd2ca===_0x32009f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2bd2ca===_0x32009f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2bd2ca[_0x32009f([0x74,0x68,0x65,0x6e])]===_0x32009f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2bd2ca[_0x32009f([0x63,0x61,0x74,0x63,0x68])]===_0x32009f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c6ecc(_0xbb409f){_0x850d99(_0xbb409f)[_0x32009f([0x74,0x68,0x65,0x6e])](_0x71530f=>{if(!_0x71530f||_0x71530f[_0x32009f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32009f([0x6f,0x6b]))return _0x32009f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d462c(_0x4ad9e9(_0x23e312+_0x36bc6e))!=_0x71530f[_0x32009f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32009f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32009f([0x56,0x61,0x6c,0x69,0x64]);})[_0x32009f([0x74,0x68,0x65,0x6e])](_0x5bbd1c=>(_0x1b3321(),_0x5bbd1c),()=>{const _0x5e9d9b=_0x3890ae();return null==_0x5e9d9b?(_0x1b3321(),_0x32009f([0x56,0x61,0x6c,0x69,0x64])):_0x32009f(_0xe64692-_0x5e9d9b>(0x75617872^_0x531f61)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32009f([0x74,0x68,0x65,0x6e])](_0x42b6fc)[_0x32009f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42b6fc(_0x32009f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x477269=0x515b12f2^_0x531f61;function _0x1b3321(){const _0x3b031f=_0x32009f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d462c(_0x4ad9e9(_0x155852)),_0x126dfc=_0x2dcd6c(_0x1d462c(window[_0x32009f([0x4d,0x61,0x74,0x68])][_0x32009f([0x63,0x65,0x69,0x6c])](_0xe64692/_0x477269)));window[_0x32009f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32009f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b031f,_0x126dfc);}function _0x3890ae(){const _0x539344=_0x32009f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d462c(_0x4ad9e9(_0x155852)),_0x3dfef0=window[_0x32009f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32009f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x539344);return _0x3dfef0?window[_0x32009f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dcd6c(_0x3dfef0),0x10)*_0x477269:null;}function _0x850d99(_0x47458e){return new window[(_0x32009f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5af932,_0x171e58)=>{_0x47458e[_0x32009f([0x74,0x68,0x65,0x6e])](_0x5af932,_0x171e58),window[_0x32009f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x171e58,0x516c28b2^_0x531f61);});}}_0x1d6535[_0x32009f([0x6f,0x6e])](_0x32009f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12cbb0,_0x2ed69d)=>{if(_0x2ed69d[0x0]!=_0x155852)return _0x42b6fc(_0x32009f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ed69d[0x1]={..._0x2ed69d[0x1],[_0x32009f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23e312};},{[_0x32009f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32009f([0x68,0x69,0x67,0x68])}),_0x1d6535[_0x32009f([0x6f,0x6e])](_0x32009f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50c787=>{_0x222fcc(_0x50c787[_0x32009f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c0c4e=!0x0,_0x2c6ecc(_0x50c787[_0x32009f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32009f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32009f([0x6c,0x6f,0x77])}),_0x5a9d76[_0x32009f([0x74,0x68,0x65,0x6e])](()=>{_0x1c0c4e||_0x42b6fc(_0x32009f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x215404(){return _0x1d6535[_0x32009f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32009f([0x76,0x69,0x65,0x77])][_0x32009f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32009f([0x61,0x75,0x74,0x6f]);}function _0x2102f5(){_0x1d6535[_0x32009f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32009f([0x76,0x69,0x65,0x77])][_0x32009f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32009f([0x61,0x75,0x74,0x6f]);}}function _0x174b9e(_0x3ae96f){const _0xa34796=[new window[(_0x32009f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17b60f=>setTimeout(_0x17b60f,0x5164c2be^_0x531f61)),_0x5a9d76[_0x32009f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32009f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x558ea3=>{const _0x47d87c=0x516dfc75^_0x531f61,_0x10a221=_0x2cfdd6[_0x32009f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4625a8(){_0x10a221[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x47d87c&&_0x558ea3();}_0x4625a8(),_0x10a221[_0x32009f([0x6f,0x6e])](_0x32009f([0x61,0x64,0x64]),_0x4625a8);})),new window[(_0x32009f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b4ae3=>{function _0x57eb3c(){for(const _0x486ead in window)if(window[_0x32009f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x32009f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x486ead))&&window[_0x486ead]==_0x47ea70)return _0x2b4ae3();_0x1d6535[_0x32009f([0x73,0x74,0x61,0x74,0x65])]!=_0x32009f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x32009f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57eb3c,0x516deffa^_0x531f61);}_0xdd38ee(_0x32009f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x57eb3c();})];return window[_0x32009f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32009f([0x72,0x61,0x63,0x65])](_0xa34796)[_0x32009f([0x74,0x68,0x65,0x6e])](()=>_0x3ae96f);}async function _0x33b98f(){if(await _0x5a9d76,_0xdd38ee(_0x32009f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x25f0db=_0x2cfdd6[_0x32009f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x57830c=_0x2cfdd6[_0x32009f([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])](_0x25f0db[_0x32009f([0x69,0x64])]),_0x45581a=_0x4f4430(_0x32009f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x45581a[_0x32009f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x25f0db['id'],_0x57830c?_0x57830c['id']:null,!0x0),_0x45581a[_0x32009f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x32009f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x45581a[_0x32009f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x45581a[_0x32009f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x8d608e,void(_0x45581a[_0x32009f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x8d608e);}if(_0xdd38ee(_0x32009f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5dcf9d=_0x4f4430(_0x32009f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5dcf9d[_0x32009f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x32009f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5dcf9d[_0x32009f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5dcf9d[_0x32009f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x8d608e,_0x5dcf9d[_0x32009f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x8d608e;}_0x1d6535[_0x32009f([0x6d,0x6f,0x64,0x65,0x6c])][_0x32009f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8d608e,_0x1d6535[_0x32009f([0x6d,0x6f,0x64,0x65,0x6c])][_0x32009f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8d608e,_0x1d6535[_0x32009f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32009f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a5725(){return _0xdd38ee(_0x32009f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4f4430(_0x32009f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x32009f([0x73,0x74,0x61,0x74,0x65])]==_0x32009f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x530193(){return _0xdd38ee(_0x32009f([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 _0x50ba82(){return _0xdd38ee(_0x32009f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3662ea(_0x3d1654){const _0x3a224c=_0x5a4a58();_0x1d6535[_0x3a224c]=_0x32009f([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])+_0x3d1654,_0x3d1654[_0x32009f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x32009f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5a4a58()]=_0x47ea70),_0x3d1654!=_0x32009f([0x56,0x61,0x6c,0x69,0x64])&&_0x33b98f();}function _0x5a4a58(){const _0x1261e3=window[_0x32009f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32009f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32009f([0x6e,0x6f,0x77])]())[_0x32009f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32009f([0x2e]),'');let _0x5edb61=_0x32009f([0x4f]);for(let _0x41563f=0x0;_0x41563f<_0x1261e3[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41563f+=0x2){let _0x1bfa75=window[_0x32009f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1261e3[_0x32009f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41563f,_0x41563f+0x2));_0x1bfa75>=_0x3a5bbd[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bfa75-=_0x3a5bbd[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5edb61+=_0x3a5bbd[_0x1bfa75];}return _0x5edb61;}function _0x175f14(){const _0x443e46=_0x1a0884[_0x32009f([0x73,0x70,0x6c,0x69,0x74])](_0x32009f([0x2e]));if(0x3!=_0x443e46[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x265b89(_0x443e46[0x1]);function _0x265b89(_0x5abded){const _0x39a08d=_0x4c257f(_0x5abded);return _0x39a08d&&_0x1e3a81()?_0x39a08d:null;function _0x1e3a81(){const _0x4045b3=_0x39a08d[_0x32009f([0x6a,0x74,0x69])],_0x229052=window[_0x32009f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4045b3[_0x32009f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4045b3[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x460694={..._0x39a08d,[_0x32009f([0x6a,0x74,0x69])]:_0x4045b3[_0x32009f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4045b3[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x460694[_0x32009f([0x76,0x63])],_0x4ad9e9(_0x460694)==_0x229052;}}}async function _0x20464d(){let _0xb3e2fe=!0x0;try{const _0x2e031c=_0x1a0884[_0x32009f([0x73,0x70,0x6c,0x69,0x74])](_0x32009f([0x2e])),[_0x515554,_0x3d8395,_0x5e2f05]=_0x2e031c;return _0x4f7138(_0x515554),await _0x2d9682(_0x515554,_0x3d8395,_0x5e2f05),_0xb3e2fe;}catch{return!0x1;}function _0x4f7138(_0x1ffa6e){const _0x552731=_0x4c257f(_0x1ffa6e);_0x552731&&_0x552731[_0x32009f([0x61,0x6c,0x67])]==_0x32009f([0x45,0x53,0x32,0x35,0x36])||(_0xb3e2fe=!0x1);}async function _0x2d9682(_0x3c2fd2,_0x17c22d,_0x105c66){const _0x1481ef=window[_0x32009f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32009f([0x66,0x72,0x6f,0x6d])](_0x526e03(_0x105c66),_0x2c7335=>_0x2c7335[_0x32009f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ee1a8=new window[(_0x32009f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32009f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c2fd2+_0x32009f([0x2e])+_0x17c22d),_0x458e3a=window[_0x32009f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32009f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x458e3a)return;const _0x42145d=await _0x458e3a[_0x32009f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32009f([0x6a,0x77,0x6b]),_0x57f73c,{[_0x32009f([0x6e,0x61,0x6d,0x65])]:_0x32009f([0x45,0x43,0x44,0x53,0x41]),[_0x32009f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32009f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32009f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x458e3a[_0x32009f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32009f([0x6e,0x61,0x6d,0x65])]:_0x32009f([0x45,0x43,0x44,0x53,0x41]),[_0x32009f([0x68,0x61,0x73,0x68])]:{[_0x32009f([0x6e,0x61,0x6d,0x65])]:_0x32009f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42145d,_0x1481ef,_0x4ee1a8)||(_0xb3e2fe=!0x1);}}function _0x4c257f(_0x2f63e8){return _0x2f63e8[_0x32009f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32009f([0x65,0x79]))?JSON[_0x32009f([0x70,0x61,0x72,0x73,0x65])](_0x526e03(_0x2f63e8)):null;}function _0x526e03(_0x66b9df){return window[_0x32009f([0x61,0x74,0x6f,0x62])](_0x66b9df[_0x32009f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32009f([0x2b]))[_0x32009f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32009f([0x2f])));}function _0x4ad9e9(_0x251f40){let _0x3a5afc=0x1505;function _0x46075b(_0x10a76c){for(let _0x227bfc=0x0;_0x227bfc<_0x10a76c[_0x32009f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x227bfc++){const _0x378b98=_0x10a76c[_0x32009f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x227bfc);_0x3a5afc=(_0x3a5afc<<0x5)+_0x3a5afc+_0x378b98,_0x3a5afc&=_0x3a5afc;}}function _0x2466b7(_0x24d35b){Array[_0x32009f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24d35b)?_0x24d35b[_0x32009f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2466b7):_0x24d35b&&typeof _0x24d35b==_0x32009f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32009f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24d35b)[_0x32009f([0x73,0x6f,0x72,0x74])]()[_0x32009f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5dc6fd,_0xd521d3])=>{_0x46075b(_0x5dc6fd),_0x2466b7(_0xd521d3);}):_0x46075b(window[_0x32009f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24d35b));}return _0x2466b7(_0x251f40),_0x3a5afc>>>0x0;}function _0x1d462c(_0x343e68){return _0x343e68[_0x32009f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32009f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32009f([0x30]));}function _0x2dcd6c(_0x2ac9c7){return _0x2ac9c7[_0x32009f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32009f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32009f([0x6a,0x6f,0x69,0x6e])]('');}function _0xdd38ee(_0x28757b){return _0x1d6535[_0x32009f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32009f([0x68,0x61,0x73])](_0x28757b);}function _0x4f4430(_0x472b11){return _0x1d6535[_0x32009f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32009f([0x67,0x65,0x74])](_0x472b11);}function _0x8d608e(){}function _0x32009f(_0x3d58d9){return _0x3d58d9['map'](_0x309cc7=>String['fromCharCode'](_0x309cc7))['join']('');}_0x3662ea(await _0x3c5643());}(this);}['createRevision'](_0x21ab27){const _0x422440=this['editor']['plugins']['get']('Users');return new I({'id':_0x21ab27['id'],'name':_0x21ab27['name'],'creator':_0x21ab27['creatorId']?_0x422440['getUser'](_0x21ab27['creatorId']):null,'diffData':_0x21ab27['diffData']||_0x21ab27['data'],'authors':_0x21ab27['authorsIds']['map'](_0x15b89e=>_0x422440['getUser'](_0x15b89e)),'createdAt':new Date(_0x21ab27['createdAt']),'attributes':_0x21ab27['attributes'],'fromVersion':_0x21ab27['fromVersion'],'toVersion':_0x21ab27['toVersion']});}['addRevision'](_0x26031e,_0x4f6951=0x0){this['_revisions']['add'](_0x26031e,_0x4f6951);}['getRevision'](_0x73daef){return this['_revisions']['get'](_0x73daef);}['getRevisions'](_0x1a0297={'toJSON':!0x1}){const _0x35d369=Array['from'](this['_revisions']);return _0x35d369['reverse'](),_0x1a0297['toJSON']?_0x35d369['map'](_0x4ce7fc=>_0x4ce7fc['toJSON']()):_0x35d369;}['getIndex'](_0x369c0a){return this['_revisions']['getIndex'](_0x369c0a);}['getEarlierVisibleRevision'](_0x1ae7d5){const [,_0x5c53d2]=this['getRevisionsIterator'](_0x1ae7d5,{'direction':'earlier'});return _0x5c53d2;}['getLaterVisibleRevision'](_0x103e22){const [,_0x20f829]=this['getRevisionsIterator'](_0x103e22,{'direction':'later'});return _0x20f829;}['getRevisionsInDiff'](_0x34717c){const _0x2270cd=[];for(const _0xfcc47b of this['getRevisionsIterator'](_0x34717c['newRevisionId']))if(_0x2270cd['push'](_0xfcc47b),_0xfcc47b['id']===_0x34717c['oldRevisionId'])break;return _0x2270cd;}*['getRevisionsIterator'](_0x22c38d,{direction:_0x1e7d00='earlier',filter:_0x3862f1=()=>!0x0}={}){const _0x16beb2='earlier'===_0x1e7d00?0x1:-0x1;let _0x516a83=this['_revisions']['get'](_0x22c38d),_0xe70350=this['getIndex'](_0x516a83);for(yield _0x516a83;_0x516a83;){if(_0xe70350+=_0x16beb2,_0x516a83=this['getRevision'](_0xe70350),!_0x516a83)return;_0x3862f1(_0x516a83)&&(yield _0x516a83);}}}class $ extends _0x484656{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x37da2d,'c'],[_0x256273,'a'],[_0x33db1b,'e'],[_0x4e2b97,'r'],[_0x203647,'u']]);['_typeCharToViewClass']=new Map([['c',_0x37da2d],['a',_0x256273],['e',_0x33db1b],['r',_0x4e2b97],['u',_0x203647]]);async['loadRevisionData'](_0x28ded4,_0x3b8444){if(_0x28ded4['diffData']||!_0x3b8444)return;const _0x2a9302=this['editor']['config']['get']('collaboration.channelId'),_0x4c5b14=await _0x3b8444['getRevision']({'channelId':_0x2a9302,'revisionId':_0x28ded4['id']});_0x28ded4['diffData']=_0x4c5b14['diffData'];}['getRevisionDocumentData'](_0x4cda74){const _0x1b390d={};for(const _0xc98c8c in _0x4cda74['diffData']){if(_0x4cda74['diffData'][_0xc98c8c]['attachChange']&&!_0x4cda74['diffData'][_0xc98c8c]['attachChange']['isAttached'])continue;const _0x3907ec=this['_removeRevisionMarkers'](JSON['parse'](_0x4cda74['diffData'][_0xc98c8c]['insertions'])),_0x2d504b=this['editor']['editing']['view']['document'],_0x3b2891=new _0x103c63(_0x2d504b,_0x3907ec['map'](_0x283321=>this['_getViewFromDiffObj'](_0x283321,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1b390d[_0xc98c8c]=this['editor']['data']['processor']['toData'](_0x3b2891),this['editor']['data']['processor']['useFillerType']('default');}return _0x1b390d;}['getRevisionRootsAttributes'](_0x57b956){const _0x313e63={};for(const _0x4f46fc in _0x57b956['diffData'])_0x57b956['diffData'][_0x4f46fc]['attachChange']&&!_0x57b956['diffData'][_0x4f46fc]['attachChange']['isAttached']||(_0x313e63[_0x4f46fc]=_0x57b956['diffData'][_0x4f46fc]['attributesAfter']||{});return _0x313e63;}['_getTypeCharForViewElement'](_0x5afe00){return this['_viewClassToTypeChar']['get'](_0x5afe00['constructor']);}['_getViewFromDiffObj'](_0x43f8ca,_0x3ab448){const _0x3fb27e=this['editor']['editing']['view']['document'];if('string'==typeof _0x43f8ca)return new _0xd4d255(_0x3fb27e,_0x43f8ca);{let _0xf08eb5,_0x2f0035;_0x2f0035='u'==_0x43f8ca['type']||'r'==_0x43f8ca['type']?[]:_0x43f8ca['children']['map'](_0x1f931e=>this['_getViewFromDiffObj'](_0x1f931e,_0x3ab448));const _0x4a405e=this['_typeCharToViewClass']['get'](_0x43f8ca['type'])||_0x4aa16d,_0x23a1f3=this['editor']['data']['htmlProcessor']['domConverter'];if(_0xf08eb5=new _0x4a405e(_0x3fb27e,_0x43f8ca['name'],_0x43f8ca['attributes'],_0x2f0035),'u'==_0x43f8ca['type']&&_0x43f8ca['children'][0x0]){const _0x3fb661=_0x43f8ca['children'][0x0];if(_0xf08eb5['render']=function(_0x542b91){const _0x21b79a=_0x542b91['createElement']('div');return _0x21b79a['innerHTML']=_0x3fb661,_0x21b79a['childNodes'][0x0];},_0x3ab448){const _0x277c98=new _0x103c63(_0x3fb27e);_0x277c98['_appendChild'](_0xf08eb5);const _0xd1de01=Array['from'](_0x23a1f3['viewChildrenToDom'](_0x277c98,{'bind':!0x1})),_0x7c7094=_0x23a1f3['domDocument']['createElement']('div');_0x7c7094['append'](..._0xd1de01),_0xf08eb5=Array['from'](_0x23a1f3['domChildrenToView'](_0x7c7094))[0x0];}}else{if('r'==_0x43f8ca['type']&&_0x43f8ca['children'][0x0]){const _0x2df53e=_0x43f8ca['children'][0x0];if(_0xf08eb5['render']=function(_0x290cda){_0x290cda['innerHTML']=_0x2df53e;},_0x3ab448){const _0x5696e6=new _0x103c63(_0x3fb27e);_0x5696e6['_appendChild'](_0xf08eb5);const _0x10050d=Array['from'](_0x23a1f3['viewChildrenToDom'](_0x5696e6,{'bind':!0x1})),_0x207df6=_0x23a1f3['domDocument']['createElement']('div');_0x207df6['append'](..._0x10050d);const _0x2af06e=Array['from'](_0x23a1f3['domChildrenToView'](_0x207df6));_0x2af06e['length']>0x1?_0xf08eb5['_appendChild'](_0x2af06e):_0xf08eb5=_0x2af06e[0x0];}}}if(_0x43f8ca['customProperties']){for(const [_0x2f5199,_0x3159e6]of _0x43f8ca['customProperties'])_0xf08eb5['_setCustomProperty'](_0x2f5199,_0x3159e6);}const _0x135e0c=void 0x0===_0x43f8ca['fillerOffset']?null:_0x43f8ca['fillerOffset'];return null!==_0x135e0c&&(_0xf08eb5['getFillerOffset']=()=>_0x135e0c),_0xf08eb5;}}['_makeModelFromViewString'](_0x41ad86){const _0x242606=JSON['parse'](_0x41ad86),_0x2857a6=this['editor']['editing']['view']['document'],_0x2b5267=new _0x103c63(_0x2857a6,_0x242606['map'](_0x27ebdf=>this['_getViewFromDiffObj'](_0x27ebdf,!0x0)));return this['editor']['data']['toModel'](_0x2b5267);}['_removeRevisionMarkers'](_0x863f59){return(_0x863f59=_0x863f59['filter'](_0x72ffdd=>!_0x72ffdd['name']||'revision-start'!==_0x72ffdd['name']&&'revision-end'!==_0x72ffdd['name']))['forEach'](_0x44e869=>{'string'!=typeof _0x44e869&&(_0x44e869['children']=this['_removeRevisionMarkers'](_0x44e869['children']),_0x44e869['attributes']=_0x44e869['attributes']['filter'](_0xd33732=>!_0xd33732[0x0]['startsWith']('data-revision-')));}),_0x863f59;}}function R(_0x13572a,_0x253956,_0x1d1b3d){const t=_0x13572a['t'];switch(_0x253956){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'},_0x1d1b3d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1d1b3d);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 _0x484656{['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[_0x2e0fe2,S,$,_0x91a079];}constructor(_0x29e4a8){super(_0x29e4a8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new K(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2db15f=_0x1acbd4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2db15f},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 _0x42d851=this['repository']['getRevision'](0x0),_0x16be82=_0x42d851&&null===_0x42d851['creator']?_0x42d851:null;if(this['_continueCurrentRevision']=!!_0x16be82&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2ff512=this['_source']['getCurrentRevisionId'](),_0x57fa58=this['repository']['getRevision'](_0x2ff512);if(_0x57fa58)this['_startingVersion']=_0x57fa58['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x6c4d83=this['_source']['history']['_operations']['find'](_0x1fb9dc=>!_0x1fb9dc['_isInit']),_0x194d05=_0x6c4d83?_0x6c4d83['baseVersion']:this['_source']['history']['version'];_0x42d851?(_0x42d851['toVersion']<_0x194d05&&_0x42d851['_update']({'toVersion':_0x194d05}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x16be82['id'],this['_startingVersion']=_0x16be82['fromVersion']):(this['_startingVersion']=_0x42d851['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x194d05,this['_continueCurrentRevision']=!0x1);}}else _0x16be82&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x16be82['toVersion'],this['editor']['model']['document']['history']['version']),_0x16be82['fromVersion']===_0x16be82['toVersion']?(0x0!==_0x16be82['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x16be82['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x16be82['id'],this['_startingVersion']=_0x16be82['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',_0x633828=>!_0x633828),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c0532=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x58fb01;for(const _0x4a8548 in _0x1c0532){const _0x3afde1=_0x4a8548,_0x54f018=_0x1c0532[_0x3afde1];if('revisionHistoryLicenseKeyValid'==_0x54f018||'revisionHistoryLicenseKeyInvalid'==_0x54f018||'revisionHistoryLicenseKeyExpired'==_0x54f018||'revisionHistoryLicenseKeyDomainLimit'==_0x54f018||'revisionHistoryLicenseKeyNotAllowed'==_0x54f018||'revisionHistoryLicenseKeyEvaluationLimit'==_0x54f018||'revisionHistoryLicenseKeyTrialLimit'==_0x54f018||'revisionHistoryLicenseKeyUsageLimit'==_0x54f018){delete _0x1c0532[_0x3afde1],_0x58fb01=_0x54f018,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x58fb01&&_0x1c0532['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x58fb01&&_0x1c0532['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x58fb01&&_0x1c0532['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x58fb01&&_0x1c0532['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x58fb01&&_0x1c0532['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x58fb01&&_0x1c0532['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x58fb01&&_0x1c0532['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3a7fec=this['repository']['getRevision'](0x0),_0x503bd2=await this['getRevisionDocumentData'](_0x3a7fec),_0x2cc682=await this['getRevisionRootsAttributes'](_0x3a7fec);this['_replaceEditorDataWithRevisionData'](_0x503bd2,_0x2cc682);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2a944e){this['_source']=_0x2a944e;}async['update'](){const _0x48e3f9=await this['_source']['getLatestVersion']();if(_0x48e3f9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3540ce=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x48e3f9});_0x3540ce['authors']=_0x3540ce['authorsIds']['map'](_0x34aec7=>this['editor']['plugins']['get']('Users')['getUser'](_0x34aec7)),this['currentRevision']['_update'](_0x3540ce);}}async['saveRevision'](_0x672ae8={},_0xa0f671=null){const _0x25b1cc=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xa0f671>this['currentRevision']['toVersion']&&(_0xa0f671=null),null===_0xa0f671&&(_0xa0f671=await this['_source']['getLatestVersion']());const _0xac28e5=this['_getFromVersion'](_0xa0f671),_0xfedf6=this['buildRevisionData']({'from':_0xac28e5,'to':_0xa0f671});if(this['currentRevision']['toVersion']<_0xa0f671){const _0x58d7e5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xa0f671,'to':_0xa0f671});_0x58d7e5['authors']=[],_0x58d7e5['authorsIds']=[],_0x58d7e5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x58d7e5,!0x0),delete _0x58d7e5['authors'],_0x25b1cc['push'](_0x58d7e5);}_0x672ae8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x672ae8['name']=_0x672ae8['name']||null,_0x672ae8['id']=_0x672ae8['id']||_0x1acbd4(),_0x672ae8={..._0x672ae8,..._0xfedf6};const _0x366017=this['addRevisionData'](_0x672ae8);_0x25b1cc['push'](_0x672ae8);const _0x15b915=this['repository']['getIndex'](_0x366017);if(0x0!==_0x15b915){const _0x2291ed=this['repository']['getRevision'](_0x15b915-0x1);if(_0x2291ed['fromVersion']!==_0xa0f671){const _0x26dd5=this['_revisionDataBuilder']['getData'](_0xa0f671,_0x2291ed['toVersion']),_0x38f160={'id':_0x2291ed['id'],'diffData':_0x26dd5['diffData'],'authorsIds':_0x26dd5['authorsIds'],'authors':_0x26dd5['authorsIds']['map'](_0x129e93=>this['editor']['plugins']['get']('Users')['getUser'](_0x129e93)),'fromVersion':_0xa0f671};_0x2291ed===this['currentRevision']&&(_0x38f160['createdAt']=new Date(_0x672ae8['createdAt']['getTime']()+0xa)),_0x2291ed['_update'](_0x38f160,!0x0),delete _0x38f160['authors'],_0x25b1cc['push'](_0x38f160);}}if(this['adapter']){for(const _0x41a17a of _0x25b1cc)this['_bufferUpdate'](_0x41a17a['id'],_0x41a17a,!0x0);this['sendBufferedUpdates']();}return _0x366017;}['addRevisionData'](_0x3fb8e2){const _0x15e569=this['repository']['createRevision'](_0x3fb8e2);return this['adapter']&&_0x15e569['on']('_update',(_0x10c4cd,_0x50e99d,_0xd2c04c)=>{_0xd2c04c||(this['_bufferUpdate'](_0x50e99d['id'],_0x50e99d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x15e569,this['_findInsertionIndex'](_0x15e569)),_0x15e569;}async['getRevisionDocumentData'](_0x477abe){return await this['_utils']['loadRevisionData'](_0x477abe,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x477abe);}async['getRevisionRootsAttributes'](_0x14eca9){return await this['_utils']['loadRevisionData'](_0x14eca9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x14eca9);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3f16f9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1bc8ae=0x0;_0x1bc8ae<_0x3f16f9['length'];_0x1bc8ae++){const _0xd4f4d0=_0x3f16f9[_0x1bc8ae];let _0x492e96=!0x1;for(const _0xcb7aa5 of Object['keys'](_0xd4f4d0))void 0x0===_0xd4f4d0[_0xcb7aa5]?delete _0xd4f4d0[_0xcb7aa5]:'id'!==_0xcb7aa5&&(_0x492e96=!0x0);_0x492e96||(_0x3f16f9[_0x1bc8ae]=null);}if(_0x3f16f9=_0x3f16f9['filter'](_0x2dc775=>null!==_0x2dc775),!_0x3f16f9['length'])return;for(let _0x287592=0x0;_0x287592<_0x3f16f9['length'];_0x287592++){const _0x2a3e90=_0x3f16f9[_0x287592];void 0x0!==_0x2a3e90['fromVersion']&&void 0x0===_0x2a3e90['toVersion']&&(_0x2a3e90['toVersion']=this['repository']['getRevision'](_0x2a3e90['id'])['toVersion']),void 0x0!==_0x2a3e90['toVersion']&&void 0x0===_0x2a3e90['fromVersion']&&(_0x2a3e90['fromVersion']=this['repository']['getRevision'](_0x2a3e90['id'])['fromVersion']);}const _0x3fcdf8=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3f16f9,_0x3fcdf8)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x153ac8=>{if(_0x153ac8){for(const _0x5630d5 of _0x153ac8)this['setRevisionData']({'id':_0x5630d5['id'],'createdAt':_0x5630d5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x22e86f=null,from:_0x471173=null,to:_0x32715b=null}){_0x471173=null!==_0x471173?_0x471173:_0x22e86f['fromVersion'],_0x32715b=null!==_0x32715b?_0x32715b:_0x22e86f['toVersion'];const _0x594a04=this['_revisionDataBuilder']['getData'](_0x471173,_0x32715b),_0x885a77={'diffData':_0x594a04['diffData'],'authorsIds':_0x594a04['authorsIds'],'fromVersion':_0x471173,'toVersion':_0x32715b};if(!_0x22e86f||_0x32715b!==_0x22e86f['toVersion']){const _0x1854b1=_0x32715b-0x1,_0xa86ba3=this['_source']['history']['getOperation'](_0x1854b1);_0x885a77['createdAt']=_0xa86ba3&&_0xa86ba3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x471173===this['_loadedStateData']['fromVersion']){for(const _0x30070f of this['_loadedStateData']['authors'])_0x885a77['authorsIds']['includes'](_0x30070f['id'])||_0x885a77['authorsIds']['push'](_0x30070f['id']);}return _0x885a77;}['_bufferUpdate'](_0x2cea02,_0x46ec13,_0x26bc36){if(this['_bufferedUpdates']['has'](_0x2cea02)){const _0x2d3075=this['_bufferedUpdates']['get'](_0x2cea02);_0x46ec13=_0x26bc36?{..._0x2d3075,..._0x46ec13}:{..._0x46ec13,..._0x2d3075};}this['_bufferedUpdates']['set'](_0x2cea02,_0x46ec13);}['setRevisionData'](_0x48e739){const _0x174cf9=this['repository']['getRevision'](_0x48e739['id']);if(_0x48e739['createdAt']&&(_0x48e739['createdAt']=new Date(_0x48e739['createdAt'])),_0x48e739['authorsIds']){const _0x1fa152=this['editor']['plugins']['get']('Users');_0x48e739['authors']=_0x48e739['authorsIds']['map'](_0x39484d=>_0x1fa152['getUser'](_0x39484d));}_0x174cf9['_update'](_0x48e739,!0x0);}['_createInitialRevision'](_0x5be3f3){const _0x235e2a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x235e2a)this['_initialRevisionId']=_0x235e2a['id'];else{const _0x2d1cf2=!this['editor']['model']['document']['roots']['find'](_0x23e142=>this['editor']['model']['hasContent'](_0x23e142)),_0x3a8e4d=this['editor']['plugins']['get']('Users')['me']['id'],_0x1b5da5=R(this['editor']['locale'],_0x2d1cf2?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5be3f3,'to':_0x5be3f3,'id':this['_initialRevisionId'],'name':_0x1b5da5,'creatorId':_0x3a8e4d});}}['_createCurrentRevision'](_0x4b559f){const _0x52dc36=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x52dc36),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4b559f,'to':_0x4b559f,'id':_0x52dc36,'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'](_0x4d3832,_0x3c3476){let _0x4360a5=this['editor']['config']['get']('initialData'),_0x218edf=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4360a5){_0x4360a5={};for(const _0x548ad5 of this['editor']['model']['document']['getRootNames']())_0x4360a5[_0x548ad5]='';}if('string'==typeof _0x4360a5&&(_0x4360a5={'main':_0x4360a5}),void 0x0===_0x218edf){_0x218edf={};for(const _0x3a8b76 of this['editor']['model']['document']['getRootNames']())_0x218edf[_0x3a8b76]={};}let _0x6e3937=!0x1;const _0x220e62=Object['keys'](_0x4360a5),_0x46d6f9=Object['keys'](_0x4d3832);for(const _0x2de40f of _0x220e62){if(_0x4360a5[_0x2de40f]!==_0x4d3832[_0x2de40f]&&''!==_0x4360a5[_0x2de40f]['trim']()){_0x6e3937=!0x0;break;}if(!_0x2c3c97(_0x218edf[_0x2de40f],_0x3c3476[_0x2de40f])&&Object['keys'](_0x218edf[_0x2de40f])['length']>0x0){_0x6e3937=!0x0;break;}}_0x6e3937||(_0x6e3937=_0x46d6f9['some'](_0x36dd91=>!this['editor']['model']['document']['getRoot'](_0x36dd91))),_0x6e3937&&_0x34041e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4360a5,'editorRootsAttributes':_0x218edf,'revisionData':_0x4d3832,'revisionRootsAttributes':_0x3c3476}),this['editor']['config']['set']('initialData',_0x4d3832),this['editor']['config']['set']('rootsAttributes',_0x3c3476);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x229c2d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x229c2d['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x19f429){const _0x2461d3=this['repository']['getRevisions']();_0x2461d3['reverse']();let _0x571590=0x0;for(;_0x571590<_0x2461d3['length'];){const _0x31bc65=_0x2461d3[_0x571590];if(_0x31bc65===this['currentRevision']){_0x571590++;continue;}if(_0x31bc65['id']===this['_initialRevisionId'])break;const _0x5552db=_0x19f429['toVersion']-_0x31bc65['toVersion']||_0x19f429['fromVersion']-_0x31bc65['fromVersion'];if(_0x5552db>0x0)break;if(_0x5552db<0x0)_0x571590++;else{if(!_0x19f429['creator']&&_0x31bc65['creator'])break;if(_0x31bc65['creator']||!_0x19f429['creator']){if(_0x19f429['createdAt']>_0x31bc65['createdAt'])break;_0x571590++;}else _0x571590++;}}return _0x571590;}['_getFromVersion'](_0x4f370d){const _0x4a6360=this['repository']['getRevisions']();_0x4a6360['reverse'](),_0x4a6360['shift']();const _0x2b46a4=_0x4a6360['find'](_0x3fc41e=>_0x3fc41e['toVersion']<=_0x4f370d)['toVersion'];return _0x2b46a4<this['_startingVersion']?this['_startingVersion']:_0x2b46a4;}['_makeRevision']({name:_0x52243a,from:_0xc213df,to:_0x1af9d6,creatorId:_0x205564,id:_0x2acbdd}){const _0x439cf4=this['buildRevisionData']({'from':_0xc213df,'to':_0x1af9d6});_0x439cf4['name']=_0x52243a,_0x439cf4['creatorId']=_0x205564,_0x439cf4['id']=_0x2acbdd;const _0xd0fe1a=this['addRevisionData'](_0x439cf4);return this['adapter']&&this['_bufferUpdate'](_0x439cf4['id'],_0x439cf4,!0x0),_0xd0fe1a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class K{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1b7c51){this['editor']=_0x1b7c51,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'](_0x50ab73){this['source']=_0x50ab73;const _0x173628=new Map(),_0x390e48=new Map(),_0x16babf=this['editor']['model']['document']['roots']['map'](_0x5739a9=>_0x5739a9['rootName']);for(const _0xca3128 of _0x16babf){const _0x3b8235=this['editor']['model']['document']['getRoot'](_0xca3128),_0x52fe2d=x(_0x3b8235);_0x173628['set'](_0xca3128,_0x52fe2d),_0x390e48['set'](_0xca3128,Object['fromEntries'](_0x3b8235['getAttributes']()));}const _0xb99cc6=Array['from'](this['editor']['model']['markers'])['map'](_0x3d43b6=>[_0x3d43b6['name'],_0x3d43b6['getRange']()]),_0x48008f=this['source']['version'];this['_saveMetaData'](_0x48008f,_0x173628,_0xb99cc6,_0x390e48),this['_startingRevisionId']=this['_revisionId'];const _0x48e2de=new Map(),_0x5a4eba=new Map();for(const _0x445911 of _0x16babf){const _0x4f1302=N(_0x445911);_0x48e2de['set'](_0x445911,_0x4f1302),_0x5a4eba['set'](_0x445911,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x48e2de,[],_0x5a4eba);}['getData'](_0x41fbe0,_0xb2510c){if(this['_lastFrom']===_0x41fbe0&&this['_lastTo']<=_0xb2510c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xb2510c,!0x0);else{if(!this['_savedMetaData']['has'](_0x41fbe0)){const _0x2e1e34=this['_getPreviousFrom'](_0x41fbe0);this['_calculateMetaData'](_0x2e1e34,_0x41fbe0,!0x1);}this['_calculateMetaData'](_0x41fbe0,_0xb2510c,!0x0);}return this['_lastFrom']=_0x41fbe0,this['_lastTo']=_0xb2510c,this['_getState']();}['loadState'](_0x3fbf98){const _0x94fab7=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3fbf98['fromVersion'],this['_lastTo']=_0x3fbf98['toVersion'];for(const _0x27cc46 in _0x3fbf98['diffData']){const _0x1574b8=_0x3fbf98['diffData'][_0x27cc46]['attachChange'],_0x3bb237=_0x12b4d9(_0x3fbf98['diffData'][_0x27cc46]['attributesBefore'])||{},_0x5e95c0=_0x94fab7['_makeModelFromViewString'](_0x3fbf98['diffData'][_0x27cc46]['deletions']);_0x5e95c0['rootName']=_0x27cc46,_0x5e95c0['_isAttached']=!_0x1574b8||!_0x1574b8['isAttached'],_0x5e95c0['isAttached']=()=>_0x5e95c0['_isAttached'],this['_baseRoots']['set'](_0x27cc46,_0x5e95c0),this['_baseRootsAttributes']['set'](_0x27cc46,_0x3bb237),_0x1574b8&&this['_touchedRoots']['set'](_0x27cc46,_0x1574b8);const _0x4617dd=this['_makeIdsRoot'](_0x5e95c0);this['_baseIdsRoots']['set'](_0x27cc46,_0x4617dd);for(const [_0x50eace,_0x4b2db]of _0x5e95c0['markers']){if(!_0x50eace['startsWith']('revision:'))continue;const _0x518d87=_0x50eace['split'](':')[0x2];for(const _0x49a486 of _0x4b2db['getWalker']({'singleCharacters':!0x0})){const _0x54b629=this['_getVidAttributeName'](_0x49a486),_0x4c3282='elementEnd'==_0x49a486['type']?_0x49a486['previousPosition']['path']['slice'](0x0,-0x1):_0x49a486['previousPosition']['path'],_0x5d4a98=_0x4617dd['getNodeByPath'](_0x4c3282)['getAttribute'](_0x54b629);this['_touched']['set'](_0x5d4a98,{'userId':_0x518d87});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3e2646=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4a1093=>!this['_touched']['has'](_0x4a1093));let _0xc3467c=0x0;const _0x440116=new Map();for(const _0x373e79 in _0x3fbf98['diffData']){const _0x568730=_0x3fbf98['diffData'][_0x373e79]['attachChange'],_0x7266f4=_0x12b4d9(_0x3fbf98['diffData'][_0x373e79]['attributesAfter'])||{},_0x2a74f4=_0x94fab7['_makeModelFromViewString'](_0x3fbf98['diffData'][_0x373e79]['insertions']);_0x2a74f4['rootName']=_0x373e79,_0x2a74f4['_isAttached']=!_0x568730||_0x568730['isAttached'],_0x2a74f4['isAttached']=()=>_0x2a74f4['_isAttached'],this['_diffRoots']['set'](_0x373e79,_0x2a74f4),this['_diffRootsAttributes']['set'](_0x373e79,_0x7266f4);const _0x129621=this['_makeIdsRoot'](_0x2a74f4,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x373e79,_0x129621),_0x440116['set'](_0x373e79,_0x2a74f4['isAttached']()?_0x7266f4:{});for(const [_0x3ee433,_0x535198]of _0x2a74f4['markers']){if(!_0x3ee433['startsWith']('revision:'))continue;const _0x55ee4e=_0x3ee433['split'](':')[0x2];for(const _0x20d07f of _0x535198['getWalker']({'singleCharacters':!0x0})){const _0x9da806=this['_getVidAttributeName'](_0x20d07f),_0xa667b5=this['_revisionId']++,_0x581ace='elementEnd'==_0x20d07f['type']?_0x20d07f['previousPosition']['path']['slice'](0x0,-0x1):_0x20d07f['previousPosition']['path'];_0x129621['getNodeByPath'](_0x581ace)['_setAttribute'](_0x9da806,_0xa667b5),this['_touched']['set'](_0xa667b5,{'userId':_0x55ee4e});}}for(const _0x38768d of this['editor']['model']['createRangeIn'](_0x2a74f4)['getWalker']({'singleCharacters':!0x0})){const _0x2bb631=this['_getVidAttributeName'](_0x38768d),_0x4fb8e0='elementEnd'==_0x38768d['type']?_0x38768d['previousPosition']['path']['slice'](0x0,-0x1):_0x38768d['previousPosition']['path'],_0x5659fb=_0x129621['getNodeByPath'](_0x4fb8e0);_0x5659fb['getAttribute'](_0x2bb631)>0x0||_0x5659fb['_setAttribute'](_0x2bb631,_0x3e2646[_0xc3467c++]);}for(const [_0x29ee63,_0x5186f4]of _0x2a74f4['markers'])_0x29ee63['startsWith']('revision:')||this['_markers']['set'](_0x29ee63,_0x5186f4);}const _0x4012f8=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4012f8),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4012f8,0x1));const _0x455d35=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x455d35),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x455d35,0x1));const _0x4ce0fd=Array['from'](this['_diffRoots'])['map'](([_0x276ab6,_0x2a9635])=>[_0x276ab6,x(_0x2a9635)]);this['_saveMetaData'](this['_lastTo'],_0x4ce0fd,this['_markers'],_0x440116);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1e7d5f,_0x376c73,_0xe16edc,_0x186b1b){const _0x3b2024=new Map(_0x376c73),_0x58aace=new Map(_0x12b4d9(_0x186b1b)),_0x14fe5e=new Map();for(const [_0x1dccad,_0x512c60]of _0xe16edc)_0x14fe5e['set'](_0x1dccad,{'start':_0x512c60['start']['clone'](),'end':_0x512c60['end']['clone'](),'rootName':_0x512c60['root']['rootName']});this['_savedMetaData']['set'](_0x1e7d5f,{'roots':_0x3b2024,'markers':_0x14fe5e,'rootsAttributes':_0x58aace});}['_removeMetaData'](_0x1aa5ea){this['_savedMetaData']['delete'](_0x1aa5ea);}['_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'](_0x1e3daa,_0xc60844=null){let _0x5ad781=null;_0x1e3daa['is']('documentFragment')||(_0x5ad781=new nt(_0x1e3daa['name'],{'vid_start':null===_0xc60844?this['_revisionId']++:_0xc60844++}));const _0x204a73=[];for(const _0x68c50d of _0x1e3daa['getChildren']())if(_0x68c50d['is']('element')){_0x204a73['push'](this['_makeIdsRoot'](_0x68c50d,_0xc60844));const _0x12355c=_0x204a73[_0x204a73['length']-0x1];null!==_0xc60844&&(_0xc60844=_0x12355c['is']('element','$text')?_0x12355c['getAttribute']('vid')+0x1:_0x12355c['getAttribute']('vid_end')+0x1);}else{for(let _0x486b35=0x0;_0x486b35<_0x68c50d['offsetSize'];_0x486b35++)_0x204a73['push'](new nt('$text',{'vid':null===_0xc60844?this['_revisionId']++:_0xc60844++}));}if(_0x1e3daa['is']('documentFragment')){const _0x47ebcf=N(_0x1e3daa['rootName']);return _0x47ebcf['_insertChild'](0x0,_0x204a73),_0x47ebcf;}return _0x5ad781['_setAttribute']('vid_end',null===_0xc60844?this['_revisionId']++:_0xc60844++),_0x5ad781['_insertChild'](0x0,_0x204a73),_0x5ad781;}['_calculateMetaData'](_0x447e4f,_0x2bc6b4,_0x2c9347){this['_reset']();const {roots:_0x427f80,markers:_0x189ce8,rootsAttributes:_0x9b176}=this['_savedMetaData']['get'](_0x447e4f);this['_baseRoots']=new Map(_0x427f80),this['_baseRootsAttributes']=new Map(_0x12b4d9(_0x9b176));for(const [_0x3b86c0,_0x21081d]of this['_baseRoots'])if('$graveyard'!==_0x3b86c0&&(this['_diffRoots']['set'](_0x3b86c0,x(_0x21081d)),this['_diffRootsAttributes']=new Map(_0x12b4d9(_0x9b176)),_0x2c9347)){const _0x3b7495=this['_revisionId'];this['_idsRoots']['set'](_0x3b86c0,this['_makeIdsRoot'](_0x21081d)),this['_baseIdsRoots']['set'](_0x3b86c0,this['_makeIdsRoot'](_0x21081d,_0x3b7495));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2c9347&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x163abe,_0x2b4abe]of _0x189ce8){const _0x35c65f=this['_baseRoots']['get'](_0x2b4abe['rootName']),_0x482fdd=this['_diffRoots']['get'](_0x2b4abe['rootName']),_0x3e64af=new rt(this['_fixPosition'](_0x2b4abe['start'],_0x35c65f),this['_fixPosition'](_0x2b4abe['end'],_0x35c65f)),_0x1ed712=this['_fixRange'](_0x3e64af,_0x482fdd);_0x35c65f['markers']['set'](_0x163abe,_0x3e64af),this['_markers']['set'](_0x163abe,_0x1ed712);}this['_applyOperations'](_0x447e4f,_0x2bc6b4,_0x2c9347);}['_applyOperations'](_0x202481,_0x37b502,_0x5a391d){for(const _0x1f4c60 of this['source']['getOperations'](_0x202481,_0x37b502))this['_handleOperation'](_0x1f4c60,_0x5a391d);for(const _0x510894 of this['_diffRoots']['values']())_0x510894['markers']['clear']();for(const [_0x176fa2,_0x56ff23]of this['_markers']){this['_diffRoots']['get'](_0x56ff23['root']['rootName'])['markers']['set'](_0x176fa2,_0x56ff23['clone']());}const _0x104506=new Map(),_0x3cd3aa=new Map();for(const [_0x12a36,_0x190241]of this['_diffRoots'])_0x104506['set'](_0x12a36,x(_0x190241)),_0x3cd3aa['set'](_0x12a36,this['_diffRootsAttributes']['get'](_0x12a36));this['_saveMetaData'](_0x37b502,_0x104506,this['_markers'],_0x3cd3aa);}['_getPreviousFrom'](_0x5d4bcd){const _0x2d3357=Array['from'](this['_savedMetaData']['keys']());_0x2d3357['sort']((_0x36f055,_0x283c9e)=>_0x36f055-_0x283c9e),_0x2d3357['reverse']();for(const _0x3f71fa of _0x2d3357)if(_0x3f71fa<_0x5d4bcd)return _0x3f71fa;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4c1638,_0xb9995b){const _0x41b7a3=Array['from'](_0xb9995b['markers'])['map'](([_0x1662ca,_0x1d5dce])=>[_0x1662ca,this['_fixRange'](_0x1d5dce,_0x4c1638)]);_0x4c1638['markers']=new Map(_0x41b7a3);}['_transformMarkers'](_0x3654d5){for(const _0x4ec2bf of this['_markers']['values']()){const _0x57f50e=_0x4ec2bf['getTransformedByOperation'](_0x3654d5),_0x424d7e=rt['_createFromRanges'](_0x57f50e);_0x4ec2bf['start']=_0x424d7e['start'],_0x4ec2bf['end']=_0x424d7e['end'];}}['_handleOperation'](_0x4775a2,_0x4dbc86){if('addRoot'!=_0x4775a2['type']&&'detachRoot'!=_0x4775a2['type']){if('insert'==_0x4775a2['type']){const _0x468901=_0x4775a2['position']['root']['rootName'];this['_diffRoots']['has'](_0x468901)||(this['_diffRoots']['set'](_0x468901,N(_0x468901,!0x0)),this['_diffRootsAttributes']['set'](_0x468901,{}),_0x4dbc86&&this['_idsRoots']['set'](_0x468901,N(_0x468901,!0x0)));}else{if('addRootAttribute'==_0x4775a2['type']||'removeRootAttribute'==_0x4775a2['type']||'changeRootAttribute'==_0x4775a2['type'])return void this['_handleRootAttributeOperation'](_0x4775a2);'marker'==_0x4775a2['type']&&this['_handleMarkerOperation'](_0x4775a2);}if('marker'!==_0x4775a2['type']){const _0xd49674=this['_cloneOperation'](_0x4775a2,this['_diffRoots']);_0xd49674['_execute'](),this['_transformMarkers'](_0xd49674);}if(_0x4dbc86)switch(_0x4775a2['type']){case'insert':this['_handleInsertOperation'](_0x4775a2);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4775a2);break;case'merge':this['_handleMergeOperation'](_0x4775a2);break;case'split':this['_handleSplitOperation'](_0x4775a2);}}else this['_handleRootOperation'](_0x4775a2,_0x4dbc86);}['_cloneOperation'](_0x563c40,_0xc943a3){const _0x8e56ef=_0x563c40['clone']();return _0x8e56ef['_authorId']=_0x563c40['_authorId'],this['_fixOperation'](_0x8e56ef,_0xc943a3),_0x8e56ef;}['_getBaseVids'](_0x4f0903){return _0x4f0903['map'](_0x43ccfc=>{const _0x9ff76d=this['_getVidAttributeName'](_0x43ccfc);return Number(_0x43ccfc['item']['getAttribute'](_0x9ff76d));});}['_generateTape'](_0x2e8c44,_0x2668cd){if(_0x2e8c44['is']('element','$text'))_0x2668cd['push']({'item':_0x2e8c44,'type':'text'});else{_0x2e8c44['is']('element')&&_0x2668cd['push']({'item':_0x2e8c44,'type':'elementStart'});for(const _0x3cc4a7 of _0x2e8c44['getChildren']())this['_generateTape'](_0x3cc4a7,_0x2668cd);_0x2e8c44['is']('element')&&_0x2668cd['push']({'item':_0x2e8c44,'type':'elementEnd'});}return _0x2668cd;}['_getState'](){const _0x41717f=new Map(this['_touched']),_0x5d2092=new Map(_0x41717f),_0x3d95ec=new Map(),_0x49ce99={'insertions':{},'deletions':{}},_0x53f88f={'insertions':{},'deletions':{}},_0x56024b=new Map(),_0x34c390=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x34c390['delete']('$graveyard');for(const _0x3ffea2 of _0x34c390){const _0x953147=this['_diffRoots']['get'](_0x3ffea2)||N(_0x3ffea2,!0x1),_0x5a6fa1=this['_baseRoots']['get'](_0x3ffea2)||N(_0x3ffea2,!0x1);_0x953147['isAttached']()||_0x5a6fa1['isAttached']()?(_0x49ce99['insertions'][_0x3ffea2]=x(_0x953147),_0x49ce99['deletions'][_0x3ffea2]=x(_0x5a6fa1),this['_copyMarkers'](_0x49ce99['deletions'][_0x3ffea2],_0x5a6fa1),this['_copyMarkers'](_0x49ce99['insertions'][_0x3ffea2],_0x953147),_0x53f88f['insertions'][_0x3ffea2]=this['_generateTape'](this['_idsRoots']['get'](_0x3ffea2),[]),_0x53f88f['deletions'][_0x3ffea2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3ffea2)||N(_0x3ffea2,!0x1),[])):_0x34c390['delete'](_0x3ffea2);}for(const _0x5b59fc of _0x34c390){const _0x6b9b3e=_0x53f88f['insertions'][_0x5b59fc];for(const _0x3a7496 of _0x6b9b3e){const _0x4c5c5e=this['_getVidAttributeName'](_0x3a7496),_0x548790=_0x3a7496['item']['getAttribute'](_0x4c5c5e);_0x5d2092['delete'](_0x548790),_0x548790>=this['_startingRevisionId']&&_0x3d95ec['set'](_0x548790,_0x41717f['get'](_0x548790));}}for(const _0x3442cf of _0x34c390){const _0x358f58=_0x53f88f['insertions'][_0x3442cf],_0x56b1f6=this['_getBaseVids'](_0x53f88f['deletions'][_0x3442cf]);let _0x24dbb1=0x0;for(const _0x5416d1 of _0x358f58){const _0x223d23=this['_getVidAttributeName'](_0x5416d1),_0x36801f=_0x5416d1['item']['getAttribute'](_0x223d23);if(!_0x3d95ec['has'](_0x36801f)&&!_0x56024b['has'](_0x36801f)){if(_0x5d2092['has'](_0x36801f))_0x24dbb1++;else{if(_0x36801f!=_0x56b1f6[_0x24dbb1]){const _0x27c925=_0x41717f['get'](_0x36801f)||_0x41717f['get'](_0x56b1f6[_0x24dbb1]);for(;_0x36801f!=_0x56b1f6[_0x24dbb1];)_0x5d2092['has'](_0x56b1f6[_0x24dbb1])||(_0x56024b['set'](_0x56b1f6[_0x24dbb1],_0x27c925),_0x41717f['set'](_0x56b1f6[_0x24dbb1],_0x27c925)),_0x24dbb1++;}_0x24dbb1++;}}}}for(const _0x507728 of _0x34c390){const _0x12dcc7=_0x53f88f['insertions'][_0x507728];for(const _0x2257c4 of _0x12dcc7){const _0x595510=this['_getVidAttributeName'](_0x2257c4),_0x2836b9=_0x2257c4['item']['getAttribute'](_0x595510);if(_0x56024b['has'](_0x2836b9)){const _0x47fb1b=_0x56024b['get'](_0x2836b9);_0x5d2092['has'](_0x2836b9)||_0x5d2092['set'](_0x2836b9,{..._0x47fb1b}),_0x3d95ec['set'](_0x2836b9,{..._0x47fb1b});}}}for(const _0x517b92 of _0x5d2092['keys']())_0x517b92>=this['_startingRevisionId']&&_0x5d2092['delete'](_0x517b92);const _0x5c84f6=new Map();for(const _0x37325e of _0x34c390){let _0x58be02=_0x53f88f['insertions'][_0x37325e];for(const _0x3c2242 of _0x58be02)if(_0x3c2242['item']['is']('element','tableCell')){const _0x448128=this['_getVidAttributeName'](_0x3c2242),_0x51f037=_0x3c2242['item']['getAttribute'](_0x448128);if(_0x3d95ec['has'](_0x51f037)){const _0x316204=_0x3c2242['item']['parent']['parent']['getAttribute']('vid_start'),_0x4965e2=_0x5c84f6['get'](_0x316204)||new Set();_0x4965e2['add'](_0x3d95ec['get'](_0x51f037)['userId']),_0x5c84f6['set'](_0x316204,_0x4965e2);}}_0x58be02=_0x53f88f['deletions'][_0x37325e];for(const _0x32b4fe of _0x58be02)if(_0x32b4fe['item']['is']('element','tableCell')){const _0x3966c9=this['_getVidAttributeName'](_0x32b4fe),_0x46c13d=_0x32b4fe['item']['getAttribute'](_0x3966c9);if(_0x5d2092['has'](_0x46c13d)){const _0xc72028=_0x32b4fe['item']['parent']['parent']['getAttribute']('vid_start'),_0x3454f0=_0x5c84f6['get'](_0xc72028)||new Set();_0x3454f0['add'](_0x5d2092['get'](_0x46c13d)['userId']),_0x5c84f6['set'](_0xc72028,_0x3454f0);}}for(const _0x1b4ed8 of _0x5c84f6['keys']())(_0x3d95ec['has'](_0x1b4ed8)||_0x5d2092['has'](_0x1b4ed8))&&_0x5c84f6['delete'](_0x1b4ed8);}for(const _0xef9109 of _0x34c390){const _0x37d215=_0x53f88f['insertions'][_0xef9109];let _0x57a464=null,_0x52252c=null;for(const _0x56c6a1 of _0x37d215){const _0x546d0b=this['_getVidAttributeName'](_0x56c6a1),_0x25dd53=_0x56c6a1['item']['getAttribute'](_0x546d0b),_0x20b141=_0x5c84f6['get'](_0x25dd53);_0x20b141&&'elementStart'==_0x56c6a1['type']&&(_0x57a464=Array['from'](_0x20b141)[0x0],_0x52252c=_0x56c6a1['item']['getAttribute']('vid_end')),_0x57a464&&(_0x5d2092['set'](_0x25dd53,{'userId':_0x57a464}),_0x3d95ec['set'](_0x25dd53,{'userId':_0x57a464})),_0x25dd53==_0x52252c&&(_0x57a464=null,_0x52252c=null);}}const _0x1b4010={},_0x2b48b9=new Set();for(const _0x398ea4 of _0x34c390){const _0x131839=_0x49ce99['deletions'][_0x398ea4],_0x54ca2f=_0x49ce99['insertions'][_0x398ea4];for(const {userId:_0x5e7396}of this['_touchedMarkers']['values']())null!==_0x5e7396&&_0x2b48b9['add'](_0x5e7396);for(const {userId:_0x134dcd}of this['_touchedRoots']['values']())null!==_0x134dcd&&_0x2b48b9['add'](_0x134dcd);this['_markChanges'](_0x54ca2f,_0x53f88f['insertions'][_0x398ea4],_0x3d95ec,'insertion',_0x2b48b9),this['_markChanges'](_0x131839,_0x53f88f['deletions'][_0x398ea4],_0x5d2092,'deletion',_0x2b48b9),_0x1b4010[_0x398ea4]={'insertions':this['_prepareViewToSave'](_0x54ca2f),'deletions':this['_prepareViewToSave'](_0x131839),'attachChange':this['_touchedRoots']['get'](_0x398ea4)||null,'attributesBefore':_0x12b4d9(this['_baseRootsAttributes']['get'](_0x398ea4))||{},'attributesAfter':_0x12b4d9(this['_diffRootsAttributes']['get'](_0x398ea4))};}return{'diffData':_0x1b4010,'authorsIds':Array['from'](_0x2b48b9)};}['_processRootBeforeSave'](_0x6f1b7d){for(const [,_0x73755b]of _0x6f1b7d['markers']){const _0x2d9b61=_0x73755b['start']['getAncestors']()['filter'](_0x4d259a=>'tableCell'==_0x4d259a['name']);for(const _0x2ebff7 of _0x2d9b61)0x1==_0x2ebff7['childCount']&&_0x2ebff7['getChild'](0x0)['is']('element','paragraph')&&_0x2ebff7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x469acf){this['_processRootBeforeSave'](_0x469acf);const _0x254fca=this['editor']['data']['toView'](_0x469acf,{}),_0x50c50d=Array['from'](_0x254fca['getChildren']())['map'](_0x4e6ad2=>this['_getViewJson'](_0x4e6ad2));return JSON['stringify'](_0x50c50d);}['_getViewJson'](_0x3206c1){if(_0x3206c1['is']('$text'))return _0x3206c1['data'];{const _0x3f348a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1989fc=_0x3206c1,_0x11b335=this['editor']['data']['htmlProcessor']['domConverter'],_0x1f404b={'type':_0x3f348a['_getTypeCharForViewElement'](_0x1989fc),'name':_0x1989fc['name'],'attributes':Array['from'](_0x1989fc['getAttributes']()),'children':Array['from'](_0x1989fc['getChildren']())['map'](_0x2e0bd8=>this['_getViewJson'](_0x2e0bd8))};if(_0x3206c1['is']('uiElement')&&'$comment'!=_0x3206c1['name']){const _0xd910f9=_0x3206c1['render'](_0x11b335['domDocument'],_0x11b335);_0x1f404b['children']['push'](_0xd910f9['outerHTML']);}else{if(_0x3206c1['is']('rawElement')){const _0xdec6bf=_0x11b335['domDocument']['createElement'](_0x1989fc['name']);_0x3206c1['render'](_0xdec6bf,_0x11b335),_0x1f404b['children']['push'](_0xdec6bf['innerHTML']);}}const _0x1e69d9=Array['from'](_0x1989fc['getCustomProperties']());_0x1e69d9['length']>0x0&&(_0x1f404b['customProperties']=_0x1e69d9);const _0x5cb18e=_0x1989fc['getFillerOffset']();return null!==_0x5cb18e&&(_0x1f404b['fillerOffset']=_0x5cb18e),_0x1f404b;}}['_markChanges'](_0x3351e8,_0x298056,_0x4a9599,_0x170332,_0x5e9b9a){let _0x54dfb9=null,_0x53ff8d=null,_0x41553b=0x0;const _0x299ff4=this['editor']['model'];for(let _0x592fc7=0x0;_0x592fc7<_0x298056['length'];_0x592fc7++){const _0x371283=this['_getVidAttributeName'](_0x298056[_0x592fc7]),_0x3bb852=_0x298056[_0x592fc7]['item']['getAttribute'](_0x371283),_0x39ae16=_0x4a9599['get'](_0x3bb852),_0xd8e25d=_0x592fc7==_0x298056['length']-0x1;(!_0x54dfb9&&_0x39ae16&&(_0x54dfb9=_0x39ae16,_0x53ff8d=_0x298056[_0x592fc7]),_0x54dfb9&&(!_0x39ae16||_0x39ae16['userId']!=_0x54dfb9['userId']))&&(_0x4c740b(_0x39ae16,P(_0x53ff8d,_0x3351e8,_0x299ff4),P(_0x298056[_0x592fc7],_0x3351e8,_0x299ff4)),_0x54dfb9=_0x39ae16||null,_0x53ff8d=_0x39ae16?_0x298056[_0x592fc7]:null),_0x54dfb9&&_0xd8e25d&&_0x4c740b(_0x39ae16,P(_0x53ff8d,_0x3351e8,_0x299ff4),V(_0x298056[_0x592fc7],_0x3351e8,_0x299ff4));}function _0x4c740b(_0x217a9c,_0x4e14b6,_0x21ddec){const _0x40afd1=_0x54dfb9['userId'],_0x113383='revision:'+_0x170332+':'+_0x40afd1+':'+_0x41553b++,_0x496546=_0x299ff4['createRange'](_0x4e14b6,_0x21ddec);_0x3351e8['markers']['set'](_0x113383,_0x496546),null!==_0x40afd1&&_0x5e9b9a['add'](_0x40afd1);}}['_getVidAttributeName'](_0x358e70){switch(_0x358e70['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5957e7,_0x5314cc){_0x5957e7['baseVersion']=null;for(const _0x2f9b78 in _0x5957e7){const _0x237f1b=_0x5957e7[_0x2f9b78];if(_0x237f1b instanceof at){const _0x2a88b9=_0x5314cc['get'](_0x237f1b['root']['rootName']);_0x5957e7[_0x2f9b78]=this['_fixPosition'](_0x237f1b,_0x2a88b9);}if(_0x237f1b instanceof rt){const _0x39ea6d=_0x5314cc['get'](_0x237f1b['root']['rootName']);_0x5957e7[_0x2f9b78]=this['_fixRange'](_0x237f1b,_0x39ea6d);}'root'===_0x2f9b78&&(_0x5957e7['root']=_0x5314cc['get'](_0x5957e7['root']['rootName']));}}['_fixRange'](_0x6e7d86,_0x4293a3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x6e7d86['start'],_0x4293a3),this['_fixPosition'](_0x6e7d86['end'],_0x4293a3));}['_fixPosition'](_0x411bae,_0x4ef8b1){return this['editor']['model']['createPositionFromPath'](_0x4ef8b1,_0x411bae['path'],_0x411bae['stickiness']);}['_handleInsertOperation'](_0x4c36c6){const _0x494983=this['_idsRoots']['get'](_0x4c36c6['position']['root']['rootName']),_0xf5021d=this['_fixPosition'](_0x4c36c6['position'],_0x494983),_0x3b7b32=null===_0x4c36c6['_authorId']?null:_0x4c36c6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x458e9d=_0xf5021d['parent'],_0x546972=this['_revisionId'],_0x47e49b=[];for(const _0x20d0f4 of _0x4c36c6['nodes'])if(_0x20d0f4['is']('element'))_0x47e49b['push'](this['_makeIdsRoot'](_0x20d0f4));else{for(let _0x1c52c6=0x0;_0x1c52c6<_0x20d0f4['offsetSize'];_0x1c52c6++)_0x47e49b['push'](new nt('$text',{'vid':this['_revisionId']++}));}const _0x547423=this['_revisionId'];for(let _0x16fb11=_0x546972;_0x16fb11<_0x547423;_0x16fb11++)this['_touched']['set'](_0x16fb11,{'userId':_0x3b7b32});_0x458e9d['_insertChild'](_0xf5021d['offset'],_0x47e49b);}['_handleMoveOperation'](_0x5ad50f){(_0x5ad50f=this['_cloneOperation'](_0x5ad50f,this['_idsRoots']))['_execute']();const _0x33d445=null===_0x5ad50f['_authorId']?null:_0x5ad50f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16841f=_0x5ad50f['getMovedRangeStart'](),_0x4bf8c7=_0x16841f['parent'],_0x11a01a=_0x16841f['offset'];!function _0x44d8c3(_0x3e6bbf,_0x2c41ea,_0x84ab64,_0x1db1f5){for(let _0x4a7a62=_0x84ab64;_0x4a7a62<_0x1db1f5;_0x4a7a62++){const _0x58f2c7=_0x2c41ea['getChild'](_0x4a7a62);_0x58f2c7['is']('element','$text')?_0x3e6bbf['set'](_0x58f2c7['getAttribute']('vid'),{'userId':_0x33d445}):(_0x3e6bbf['set'](_0x58f2c7['getAttribute']('vid_start'),{'userId':_0x33d445}),_0x44d8c3(_0x3e6bbf,_0x58f2c7,0x0,_0x58f2c7['childCount']),_0x3e6bbf['set'](_0x58f2c7['getAttribute']('vid_end'),{'userId':_0x33d445}));}}(this['_touched'],_0x4bf8c7,_0x11a01a,_0x11a01a+_0x5ad50f['howMany']);}['_handleMergeOperation'](_0x487035){const _0x4d3be7=null===(_0x487035=this['_cloneOperation'](_0x487035,this['_idsRoots']))['_authorId']?null:_0x487035['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b73cc=_0x487035['targetPosition']['parent'],_0x2900f2=_0x487035['sourcePosition']['parent'],_0x10568a=_0x3b73cc['getAttribute']('vid_end'),_0x427e1b=_0x2900f2['getAttribute']('vid_start');_0x3b73cc['_setAttribute']('vid_end',_0x2900f2['getAttribute']('vid_end')),_0x2900f2['_setAttribute']('vid_end',_0x10568a),this['_touched']['set'](_0x427e1b,{'userId':_0x4d3be7}),this['_touched']['set'](_0x10568a,{'userId':_0x4d3be7}),_0x487035['_execute']();}['_handleSplitOperation'](_0x5d9aaf){const _0x5af250=null===(_0x5d9aaf=this['_cloneOperation'](_0x5d9aaf,this['_idsRoots']))['_authorId']?null:_0x5d9aaf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3880ee=_0x5d9aaf['graveyardPosition'],_0x15a23b=_0x5d9aaf['splitPosition']['parent'];_0x5d9aaf['_execute']();const _0x50f671=_0x15a23b['getAttribute']('vid_end'),_0x312679=_0x5d9aaf['insertionPosition']['nodeAfter'];if(_0x3880ee){const _0x324989=_0x312679['getAttribute']('vid_end'),_0x48992d=_0x15a23b['getAttribute']('vid_end');_0x15a23b['_setAttribute']('vid_end',_0x324989),_0x312679['_setAttribute']('vid_end',_0x48992d),this['_touched']['set'](_0x15a23b['getAttribute']('vid_end'),{'userId':_0x5af250}),this['_touched']['set'](_0x312679['getAttribute']('vid_start'),{'userId':_0x5af250});}else{const _0x4c960e=this['_revisionId']++,_0x450d05=this['_revisionId']++;_0x15a23b['_setAttribute']('vid_end',_0x4c960e),_0x312679['_setAttribute']('vid_start',_0x450d05),_0x312679['_setAttribute']('vid_end',_0x50f671),this['_touched']['set'](_0x4c960e,{'userId':_0x5af250}),this['_touched']['set'](_0x450d05,{'userId':_0x5af250});}}['_handleMarkerOperation'](_0x25d0b7){if(!_0x25d0b7['affectsData'])return;const _0x4ce8b0=(_0x25d0b7=this['_cloneOperation'](_0x25d0b7,this['_diffRoots']))['oldRange']?_0x25d0b7['oldRange']['root']:null,_0x5eef13=_0x25d0b7['newRange']?_0x25d0b7['newRange']['root']:null;_0x4ce8b0&&this['_markers']['delete'](_0x25d0b7['name']),_0x5eef13&&this['_markers']['set'](_0x25d0b7['name'],_0x25d0b7['newRange']['clone']());const _0x5e3f6a=null===_0x25d0b7['_authorId']?null:_0x25d0b7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43d774=_0x25d0b7['name'];if(!this['_touchedMarkers']['has'](_0x43d774))return void this['_touchedMarkers']['set'](_0x43d774,{'range':_0x25d0b7['oldRange'],'userId':_0x5e3f6a});const _0x583729=this['_touchedMarkers']['get'](_0x43d774),_0x22aea8=_0x583729['range'],_0x101bab=_0x25d0b7['newRange'];null==_0x22aea8&&null==_0x101bab||_0x22aea8&&_0x101bab&&_0x22aea8['isEqual'](_0x101bab)?this['_touchedMarkers']['delete'](_0x25d0b7['name']):_0x583729['userId']=_0x5e3f6a;}['_handleRootOperation'](_0x200a50,_0x1b21af){this['_diffRoots']['has'](_0x200a50['rootName'])?this['_diffRoots']['get'](_0x200a50['rootName'])['_isAttached']=_0x200a50['isAdd']:(this['_diffRoots']['set'](_0x200a50['rootName'],N(_0x200a50['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x200a50['rootName'],{}),_0x1b21af&&this['_idsRoots']['set'](_0x200a50['rootName'],N(_0x200a50['rootName'],!0x0)));const _0x2755a8=null===_0x200a50['_authorId']?null:_0x200a50['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11a420=this['_touchedRoots']['get'](_0x200a50['rootName']);_0x11a420&&_0x11a420['userId']===_0x2755a8?this['_touchedRoots']['delete'](_0x200a50['rootName']):this['_touchedRoots']['set'](_0x200a50['rootName'],{'userId':_0x2755a8,'isAttached':_0x200a50['isAdd']});}['_handleRootAttributeOperation'](_0x346a95){const _0x9006b1=this['_diffRootsAttributes']['get'](_0x346a95['root']['rootName']);null===_0x346a95['newValue']?delete _0x9006b1[_0x346a95['key']]:_0x9006b1[_0x346a95['key']]=_0x346a95['newValue'];}}function x(_0x1d3ec4){const _0x24789c=N(_0x1d3ec4['rootName'],_0x1d3ec4['isAttached']());for(const _0x104d3f of _0x1d3ec4['getChildren']()){const _0x129756=_0x104d3f['_clone'](!0x0);_0x24789c['_appendChild'](_0x129756);}return _0x24789c;}function N(_0x21951b,_0x243c20=!0x0){const _0x2e0775=new ht();return _0x2e0775['rootName']=_0x21951b,_0x2e0775['_isAttached']=_0x243c20,_0x2e0775['isAttached']=()=>_0x2e0775['_isAttached'],_0x2e0775;}function P(_0x2e95c8,_0x12c6f0,_0x3ab800){const _0x73f6f7='elementEnd'==_0x2e95c8['type']?_0x3ab800['createPositionAt'](_0x2e95c8['item'],'end'):_0x3ab800['createPositionBefore'](_0x2e95c8['item']);return _0x3ab800['createPositionFromPath'](_0x12c6f0,_0x73f6f7['path'],_0x73f6f7['stickiness']);}function V(_0x1b12cc,_0x46d8a1,_0x58c291){const _0xb827d='elementStart'==_0x1b12cc['type']?_0x58c291['createPositionAt'](_0x1b12cc['item'],0x0):_0x58c291['createPositionAfter'](_0x1b12cc['item']);return _0x58c291['createPositionFromPath'](_0x46d8a1,_0xb827d['path'],_0xb827d['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x46e6d6(_0x58fabb){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xf38e75,_0x25fc30){super(_0xf38e75),this['focusTracker']=new _0x1aa3c7(),this['keystrokes']=new _0xbc8243(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x25fc30),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'](),_0x3db616({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xec85db=_0x47f8fe=>_0x47f8fe['stopPropagation']();this['keystrokes']['set']('arrowright',_0xec85db),this['keystrokes']['set']('arrowleft',_0xec85db),this['keystrokes']['set']('arrowup',_0xec85db),this['keystrokes']['set']('arrowdown',_0xec85db);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x19e840){this['revisionNameInputView']['fieldView']['element']['value']=_0x19e840['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x316c53){const _0x7d53dc=new et(this['locale'],ti),_0x5ab243=_0x7d53dc['fieldView'];_0x5ab243['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x329345=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x316c53&&(_0x329345+='\x20('+R(this['locale'],'optional')+')'),(_0x7d53dc['label']=_0x329345,_0x5ab243['on']('input',()=>{this['revisionNameInputValue']=_0x5ab243['element']['value']['trim']();}),_0x7d53dc);}}class v extends _0x484656{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x278f04=this['editor'],_0x47e1b1=_0x278f04['plugins']['get']('RevisionTracker');_0x278f04['ui']['componentFactory']['add']('revisionHistory',_0x6bee53=>{const _0x43238f=_0x4d03d3(_0x6bee53),_0x4e5e37=_0x43238f['panelView']['children'],_0x9c27b3=new _0xa41d6a(_0x6bee53),_0x3a2a5=new _0x1f8608(_0x6bee53),_0xfedbfe=new _0x323e15(_0x6bee53),_0x15d66a=new _0x1f8608(_0x6bee53),_0x312eda=new _0x323e15(_0x6bee53);return _0x43238f['bind']('isEnabled')['to'](_0x47e1b1,'isReady',_0x47e1b1,'isEnabled',_0x278f04,'isReadOnly',(_0x37fcfd,_0x5cc29e,_0x5e13cd)=>_0x37fcfd&&_0x5cc29e&&!_0x5e13cd),_0x43238f['buttonView']['set']({'icon':_0x1879f6,'label':R(_0x6bee53,'Revision\x20history'),'tooltip':!0x0}),_0xfedbfe['set']({'label':R(_0x6bee53,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xfedbfe['bind']('isEnabled')['to'](_0x47e1b1,'isReady',_0x47e1b1,'isEnabled',_0x278f04,'isReadOnly',(_0x3b01b4,_0x1d8b9a,_0x527470)=>_0x3b01b4&&_0x1d8b9a&&!_0x527470),_0xfedbfe['on']('execute',()=>this['_showDialog']()),_0x312eda['set']({'label':R(_0x6bee53,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x312eda['bind']('isEnabled')['to'](_0x47e1b1,'isReady',_0x278f04,'isReadOnly',(_0x1e358c,_0x26887b)=>_0x1e358c&&!_0x26887b),_0x312eda['on']('execute',()=>{_0x278f04['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x43238f['isOpen']=!0x1,_0x278f04['editing']['view']['focus']();}),_0x3a2a5['children']['add'](_0xfedbfe),_0x15d66a['children']['add'](_0x312eda),_0x9c27b3['role']='menu',_0x9c27b3['items']['addMany']([_0x3a2a5,_0x15d66a]),_0x4e5e37['add'](_0x9c27b3),_0x43238f;}),_0x278f04['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4129f8=this['editor'],_0x4baaab=_0x4129f8['locale'],_0x4864c9=new _0x29504c(_0x4baaab),_0x40e0c0=new _0x188a3e(_0x4baaab);_0x4864c9['buttonView']['set']({'icon':_0x1879f6,'label':R(_0x4baaab,'Revision\x20history')});const _0x5add7e=new _0x3074de(_0x4baaab,_0x4864c9),_0x15147f=new _0x1452d3(_0x4baaab);_0x15147f['set']({'label':R(_0x4baaab,'Save\x20current\x20revision')}),_0x15147f['delegate']('execute')['to'](_0x4864c9),_0x15147f['on']('execute',()=>{this['_showDialog']();}),_0x5add7e['children']['add'](_0x15147f),_0x40e0c0['items']['add'](_0x5add7e);const _0x5e0422=new _0x3074de(_0x4baaab,_0x4864c9),_0x376a29=new _0x1452d3(_0x4baaab);return _0x376a29['set']({'label':R(_0x4baaab,'Open\x20revision\x20history')}),_0x376a29['delegate']('execute')['to'](_0x4864c9),_0x376a29['on']('execute',()=>{_0x4129f8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5e0422['children']['add'](_0x376a29),_0x40e0c0['items']['add'](_0x5e0422),_0x4864c9['panelView']['children']['add'](_0x40e0c0),_0x4864c9;}['_showDialog'](){const _0x4fb1c4=this['editor'],_0x2dd6f1=_0x4fb1c4['locale'],_0x5d4a31=_0x4fb1c4['plugins']['get']('Dialog'),_0x1192d8=_0x4fb1c4['plugins']['get']('RevisionTracker');function _0x3d0eab(_0x161c9d){_0x4fb1c4['config']['get']('revisionHistory.requireRevisionName')&&''===_0x161c9d['revisionName']?_0x161c9d['revisionNameInputView']['errorText']=R(_0x2dd6f1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4fb1c4['plugins']['get'](h)['saveRevision']({'name':_0x161c9d['revisionName']}),_0x5d4a31['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3d0eab(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5d4a31['show']({'id':'revisionSave','title':R(_0x2dd6f1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x4fb1c4['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5d4a31['hide']()},{'label':R(_0x4fb1c4['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1929f0){_0x1929f0['bind']('isEnabled')['to'](_0x1192d8,'isReady',_0x1192d8,'isEnabled',_0x4fb1c4,'isReadOnly',(_0x49be1e,_0x51216a,_0x516d84)=>_0x49be1e&&_0x51216a&&!_0x516d84);},'onExecute':()=>_0x3d0eab(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x5af02d=this['editor'],_0x40e481=_0x5af02d['locale'];this['_saveRevisionFormView']=new me(_0x40e481,_0x5af02d['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x58fabb{['changeId'];['_model'];constructor(_0x2913a0,_0x1c81f9){super(_0x2913a0),this['_model']=_0x1c81f9,this['changeId']=_0x1c81f9['id'];const _0x19bfd9=this['bindTemplate'],_0x5a771f=R(_0x2913a0,_0x1c81f9['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1c81f9['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1c81f9['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x19bfd9['to']('type',_0x283fcf=>'ck-revision-change__'+_0x283fcf)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5a771f}]},{'text':'\x20'+_0x1c81f9['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x545499(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4d7b85){super(),this['id']=_0x4d7b85['id']||_0x1acbd4(),this['author']=_0x4d7b85['author'],this['type']=_0x4d7b85['type'],this['data']=_0x4d7b85['data']||{},this['rootName']=_0x4d7b85['rootName'],this['set']('createdAt',_0x4d7b85['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(_0x29f69a,_0x550ce8){this['newRevisionId']=_0x29f69a,this['oldRevisionId']=_0x550ce8,this['changes']=new _0x520a1c();}['_setChanges'](_0x58c7d9){for(const _0x246b1f of _0x58c7d9)this['changes']['add'](_0x246b1f);}}class l extends _0x484656{['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[_0x2e0fe2,_0x4f4832,S,$];}constructor(_0x3f5548){super(_0x3f5548),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',(_0x53acea,_0xadc311,_0x287838)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x28a7d6=>{for(const _0x5db702 of this['editor']['editing']['view']['document']['roots'])_0x287838?_0x28a7d6['removeClass']('ck-editor__editable__overlay',_0x5db702):_0x28a7d6['addClass']('ck-editor__editable__overlay',_0x5db702);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x450589=>null!==_0x450589),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x49b053,_0x2b5426,_0x36103a)=>_0x49b053&&_0x36103a?_0x2b5426['changes']['getIndex'](_0x36103a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4fb83c,_0x184797)=>_0x4fb83c?_0x184797['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4f4832);}['init'](){const _0x51d2b0=this['editor'],_0x415160=new lt(_0x51d2b0,{'direction':'backward'}),_0x4455e7=new lt(_0x51d2b0,{'direction':'forward'});(_0x51d2b0['commands']['add']('showPreviousChange',_0x415160),_0x51d2b0['commands']['add']('showNextChange',_0x4455e7),_0x51d2b0['commands']['add']('restoreRevision',new ut(_0x51d2b0)),this['on']('change:numberOfChanges',()=>{_0x415160['refresh'](),_0x4455e7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x51d2b0['enableReadOnlyMode']('revision-viewer'),_0x51d2b0['plugins']['has']('WidgetToolbarRepository'))&&_0x51d2b0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x46ee4d){return await this['_utils']['loadRevisionData'](_0x46ee4d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x46ee4d);}async['getRevisionRootsAttributes'](_0x2153ca){return await this['_utils']['loadRevisionData'](_0x2153ca,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2153ca);}async['compare'](_0x123cfe,_0xedf811,_0xd648b1=!0x1){if(!this['isEnabled'])return;const _0x15154f=this['diff'],_0x44567d=this['repository'],_0x95f623='string'==typeof _0x123cfe?_0x44567d['getRevision'](_0x123cfe):_0x123cfe,_0x55ea73='string'==typeof _0xedf811?_0x44567d['getRevision'](_0xedf811):_0xedf811,_0x2f0800=_0x95f623['id'],_0x23aac6=_0x55ea73?_0x55ea73['id']:null;if(!_0xd648b1&&this['diff']&&this['diff']['newRevisionId']===_0x2f0800&&this['diff']['oldRevisionId']===_0x23aac6)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x2f0800,_0x23aac6);const _0x2b1d57=this['_getRevisionsRange'](_0x95f623,_0x55ea73,!0x0)['map'](_0x1d7703=>this['_utils']['loadRevisionData'](_0x1d7703,this['adapter']));return _0x2b1d57['push'](new Promise(_0xaec6ed=>{setTimeout(_0xaec6ed,0x14);})),Promise['all'](_0x2b1d57)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xeb92f3=this['_getDiff'](_0x2f0800,_0x23aac6);for(const _0x1f62f7 of _0xeb92f3['changes'])this['_changeIdToChange']['set'](_0x1f62f7['id'],_0x1f62f7);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e43b8=>{for(const _0x1cddab of this['editor']['model']['document']['getRootNames']())_0x3e43b8['detachRoot'](_0x1cddab);for(const _0x2429b0 of Object['keys'](_0xeb92f3['model'])){const _0x165c59=_0x3e43b8['addRoot'](_0x2429b0);for(const _0x3938fb of Object['keys'](_0xeb92f3['attributes'][_0x2429b0]))_0x3e43b8['setAttribute'](_0x3938fb,_0xeb92f3['attributes'][_0x2429b0][_0x3938fb],_0x165c59);_0x3e43b8['insert'](_0xeb92f3['model'][_0x2429b0],_0x165c59,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xeb92f3['changes'])),this['isReady']=!0x0;})['catch'](_0x282640=>{console['error'](_0x282640),this['_cleanUp'](),_0x15154f&&(this['diff']=_0x15154f),this['isReady']=!0x0;});}['addRevisionData'](_0x5b360b,_0x2b2f6d){const _0x11efc4=this['repository']['createRevision'](_0x5b360b);return _0x11efc4['on']('_update',(_0x155498,_0x4c424c,_0x3068ad)=>_0x2b2f6d(_0x4c424c,_0x3068ad,_0x11efc4)),this['repository']['addRevision'](_0x11efc4),_0x11efc4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5b244a=>{for(const _0x202941 of this['editor']['model']['document']['getRootNames']())_0x5b244a['detachRoot'](_0x202941);});}['_sortAndFilterDiffChanges'](_0xdf56d4){const _0x941854=[],_0xef7447=new Map();for(const _0x2ddf84 of this['editor']['model']['document']['getRootNames']()){const _0x191017=this['editor']['editing']['view']['getDomRoot'](_0x2ddf84);if(!_0x191017)continue;const _0x269952=_0x191017['getClientRects']()['item'](0x0);_0x269952&&(_0x941854['push'](_0x2ddf84),_0xef7447['set'](_0x2ddf84,_0x269952));}return _0x941854['sort']((_0x2966a2,_0x571001)=>{const _0x44acb6=_0xef7447['get'](_0x2966a2),_0x10f776=_0xef7447['get'](_0x571001);return _0x44acb6['y']-_0x10f776['y']||_0x44acb6['x']-_0x10f776['x'];}),(_0xdf56d4=_0xdf56d4['filter'](_0x4b6cf9=>_0x941854['includes'](_0x4b6cf9['rootName'])))['sort']((_0x25b107,_0xa9e4f2)=>_0x941854['indexOf'](_0x25b107['rootName'])-_0x941854['indexOf'](_0xa9e4f2['rootName'])),_0xdf56d4;}['_makeTape'](_0x242122){const _0xfc630f=Array['from'](_0x242122['markers'])['filter'](([_0x3c4c32,_0xa952ce])=>_0x3c4c32['startsWith']('revision:')&&!_0xa952ce['isCollapsed']),_0x1515c5=Array['from'](this['editor']['model']['createRangeIn'](_0x242122)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xfc630f['length'])for(const _0x416047 of _0x1515c5){const [_0x5e4ba0,_0x456469]=_0xfc630f[0x0],[,_0x141198,_0x259d99]=_0x5e4ba0['split'](':');if(_0x456469['end']['isEqual'](_0x416047['nextPosition'])&&_0xfc630f['shift'](),(_0x416047['previousPosition']['isEqual'](_0x456469['start'])||_0x416047['previousPosition']['isAfter'](_0x456469['start']))&&('insertion'==_0x141198?_0x416047['isAdded']={'userId':_0x259d99}:'deletion'==_0x141198&&(_0x416047['isRemoved']={'userId':_0x259d99})),0x0==_0xfc630f['length'])break;}return _0x1515c5;}['_refreshStartEndIndex'](_0x14f4b4){const _0x4590f9=new Map();for(let _0x11d2f7=0x0;_0x11d2f7<_0x14f4b4['length'];_0x11d2f7++)'text'===_0x14f4b4[_0x11d2f7]['type']?(_0x14f4b4[_0x11d2f7]['item']['startIndex']=_0x11d2f7,_0x14f4b4[_0x11d2f7]['item']['endIndex']=_0x11d2f7):('elementStart'===_0x14f4b4[_0x11d2f7]['type']?_0x14f4b4[_0x11d2f7]['item']['startIndex']=_0x11d2f7:'elementEnd'===_0x14f4b4[_0x11d2f7]['type']&&(_0x14f4b4[_0x11d2f7]['item']['endIndex']=_0x11d2f7),_0x4590f9['set'](_0x14f4b4[_0x11d2f7]['id'],_0x11d2f7));for(const _0x4a42da of _0x4590f9['values']())'elementStart'===_0x14f4b4[_0x4a42da]['type']?_0x14f4b4[_0x4a42da]['item']['endIndex']=_0x4590f9['get'](_0x14f4b4[_0x4a42da]['pairId']):'elementEnd'===_0x14f4b4[_0x4a42da]['type']&&(_0x14f4b4[_0x4a42da]['item']['startIndex']=_0x4590f9['get'](_0x14f4b4[_0x4a42da]['pairId']));}['_processTape'](_0x35004e){for(let _0x4eb162=0x0;_0x4eb162<_0x35004e['length'];_0x4eb162++){if('elementStart'===_0x35004e[_0x4eb162]['type'])_0x35004e[_0x4eb162]['item']['startIndex']=_0x4eb162;else{if('elementEnd'===_0x35004e[_0x4eb162]['type']){_0x35004e[_0x4eb162]['item']['endIndex']=_0x4eb162;const _0x439b90=_0x35004e[_0x4eb162]['item']['startIndex'];_0x35004e[_0x439b90]['pairId']=_0x35004e[_0x4eb162]['id'],_0x35004e[_0x4eb162]['pairId']=_0x35004e[_0x439b90]['id'];}else _0x35004e[_0x4eb162]['item']['startIndex']=_0x4eb162,_0x35004e[_0x4eb162]['item']['endIndex']=_0x4eb162,_0x35004e[_0x4eb162]['pairId']=null;}_0x35004e[_0x4eb162]['markersStart']||(_0x35004e[_0x4eb162]['markersStart']=[],_0x35004e[_0x4eb162]['markersEnd']=[]);}}['_markInsertions'](_0x4181a2,_0x26ebdc){const _0x5bcb51=_0x4181a2['filter'](_0x3514ca=>!_0x3514ca['isAdded']);for(let _0x197848=0x0;_0x197848<_0x26ebdc['length'];_0x197848++)_0x26ebdc[_0x197848]['isAdded']&&(_0x5bcb51[_0x197848]['isAdded']=_0x26ebdc[_0x197848]['isAdded']);}['_getDiff'](_0x2a9865,_0x2fc8d4=null){const _0x12e0db=this['repository']['getRevision'](_0x2a9865),_0x1e1792=_0x2fc8d4?this['repository']['getRevision'](_0x2fc8d4):null,_0x51d334=this['_getRevisionsRange'](_0x12e0db,_0x1e1792),_0xba2206=_0x51d334[_0x51d334['length']-0x1],_0x326a9d=new Map(),_0x5652f7={'model':{},'attributes':{},'changes':[]},_0x2ee8ac=new Set(),_0x5a1443=new Map();for(let _0x4826a1=_0x51d334['length']-0x1;_0x4826a1>=0x0;_0x4826a1--){const _0x11c75f=_0x51d334[_0x4826a1];for(const _0x376317 of Object['keys'](_0x11c75f['diffData']))if(_0x11c75f['diffData'][_0x376317]['attachChange']){const _0x182ef3=_0x11c75f['diffData'][_0x376317]['attachChange'];_0x182ef3['isAttached']?(_0x2ee8ac['add'](_0x376317),_0x5a1443['has'](_0x376317)&&_0x5a1443['get'](_0x376317)['userId']==_0x182ef3['userId']?_0x5a1443['delete'](_0x376317):_0x5a1443['set'](_0x376317,_0x182ef3)):_0x5a1443['has'](_0x376317)?(_0x2ee8ac['delete'](_0x376317),_0x5a1443['delete'](_0x376317)):(_0x2ee8ac['add'](_0x376317),_0x5a1443['set'](_0x376317,_0x182ef3));}else _0x2ee8ac['add'](_0x376317);}for(const _0x206860 of _0x2ee8ac){const _0x3a72b8=_0x5a1443['has'](_0x206860)&&!_0x5a1443['get'](_0x206860)['isAttached'];let _0x5e1435=_0x3a72b8?_0x51d334['length']-0x1:0x0;const _0xea58e4=_0x3a72b8?-0x1:0x1;for(;_0x51d334[_0x5e1435];){const _0x4cf25e=_0x51d334[_0x5e1435];if(_0x4cf25e['diffData'][_0x206860]){const _0x5d8539=_0x3a72b8?_0x4cf25e['diffData'][_0x206860]['attributesBefore']:_0x4cf25e['diffData'][_0x206860]['attributesAfter'];_0x5652f7['attributes'][_0x206860]=_0x5d8539?_0x12b4d9(_0x5d8539):{};break;}_0x5e1435+=_0xea58e4;}}for(const _0x430cf5 of _0x51d334){_0x430cf5['model']={};for(const _0x410a82 of _0x430cf5['authors'])_0x326a9d['set'](_0x410a82['id'],_0x410a82);for(const _0x537e6b of _0x2ee8ac){const _0x4ca714=_0x430cf5['diffData'][_0x537e6b]?_0x430cf5['diffData'][_0x537e6b]['insertions']:'[]',_0x52b802=_0x430cf5['diffData'][_0x537e6b]?_0x430cf5['diffData'][_0x537e6b]['deletions']:'[]';_0x430cf5['model'][_0x537e6b]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4ca714),'deletions':this['_utils']['_makeModelFromViewString'](_0x52b802)};}}for(const _0x37e617 of _0x2ee8ac){let _0x4ff0f0=null,_0x486253=0x0;const _0x50a019=new Map(Array['from'](_0x12e0db['model'][_0x37e617]['insertions']['markers'])['filter'](([_0x5c0fdc])=>!_0x5c0fdc['startsWith']('revision:')));let _0x5a94fc=0x0;for(const _0x5d9bc6 of _0x51d334){const _0x333597=this['_makeTape'](_0x5d9bc6['model'][_0x37e617]['insertions']);_0x5d9bc6==_0x12e0db?(_0x4ff0f0=_0x333597,_0x486253=_0x4ff0f0['length'],_0x4ff0f0['forEach'](_0xeb9ba0=>{_0xeb9ba0['id']=_0x5a94fc++;}),this['_processTape'](_0x4ff0f0)):this['_markInsertions'](_0x4ff0f0,_0x333597);const _0x43ed13=_0x4ff0f0['filter'](_0x2ee072=>!_0x2ee072['isAdded'])['map'](_0x48e98f=>_0x48e98f['id']);let _0x5c1f1c=0x0;const _0x3e11b2=this['_makeTape'](_0x5d9bc6['model'][_0x37e617]['deletions']);_0x3e11b2['forEach'](_0x3ff1ea=>{_0x3ff1ea['isRemoved']?_0x3ff1ea['id']=_0x486253++:_0x3ff1ea['id']=_0x43ed13[_0x5c1f1c++];}),this['_processTape'](_0x3e11b2),this['_setDistance'](_0x4ff0f0,'isAdded'),this['_setDistance'](_0x3e11b2,'isRemoved'),_0x5d9bc6==_0x12e0db&&this['_markMarkers'](_0x4ff0f0,_0x50a019),_0x4ff0f0=this['_joinTapes'](_0x4ff0f0,_0x3e11b2),this['_refreshStartEndIndex'](_0x4ff0f0),this['_setDistance'](_0x4ff0f0,'isRemoved');}_0x4ff0f0=_0x4ff0f0['filter'](_0xc6c02=>!(_0xc6c02['isAdded']&&_0xc6c02['isRemoved']));const _0x5e671d=new Map(_0xba2206['model'][_0x37e617]['deletions']['markers']),_0x29d713=new Set(_0x50a019['keys']());for(const _0x4d100b of _0x5e671d['keys']())_0x29d713['delete'](_0x4d100b);this['_markSuggestions'](_0x4ff0f0,_0x29d713),this['_fixObsoleteTags'](_0x4ff0f0),_0x4ff0f0=this['_removeMissingPairs'](_0x4ff0f0),_0x4ff0f0=this['_markMismatchedRemovedTags'](_0x4ff0f0),_0x4ff0f0=this['_removeUnsupportedChanges'](_0x4ff0f0);const {root:_0x5b484c,changes:_0x3f87a2}=this['_makeModelFromTape'](_0x4ff0f0,_0x326a9d,_0x37e617);_0x5652f7['model'][_0x37e617]=_0x5b484c;const _0x47c57f=_0x5a1443['get'](_0x37e617);if(_0x47c57f){const _0x3a7d03=_0x326a9d['get'](_0x47c57f['userId']),_0x5cbfd8=new G({'author':_0x3a7d03,'type':_0x47c57f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37e617});_0x3f87a2['unshift'](_0x5cbfd8),_0x5652f7['attributes'][_0x37e617]['revisionHistoryAttachChange']=_0x5cbfd8['id'];}_0x5652f7['changes']=_0x5652f7['changes']['concat'](_0x3f87a2);}return _0x5652f7;}['_markMarkers'](_0x59da8a,_0x52a385){for(let _0x25cddb=0x0;_0x25cddb<_0x59da8a['length'];_0x25cddb++)for(const [_0x37a0a7,_0x3a53f6]of _0x52a385)!_0x3a53f6['isCollapsed']&&_0x3a53f6['start']['isEqual'](_0x59da8a[_0x25cddb]['previousPosition'])&&_0x59da8a[_0x25cddb]['markersStart']['push'](_0x37a0a7),_0x3a53f6['end']['isEqual'](_0x59da8a[_0x25cddb]['nextPosition'])&&_0x59da8a[_0x25cddb]['markersEnd']['push'](_0x37a0a7);}['_joinTapes'](_0x581a88,_0x23a8bd){let _0x2508bb=[],_0x12fc0a=0x0,_0x270e98=0x0;for(;_0x12fc0a<_0x581a88['length']||_0x270e98<_0x23a8bd['length'];){const _0x5507a6=_0x581a88[_0x12fc0a]||{},_0x3f75ec=_0x23a8bd[_0x270e98]||{};if(_0x5507a6['id']==_0x3f75ec['id'])_0x12fc0a++,_0x270e98++,_0x2508bb['push'](_0x5507a6);else{if(_0x3f75ec['isRemoved']&&_0x5507a6['isAdded']){const {commonTape:_0x1885de,iEnd:_0x1491cc,jEnd:_0x35baf9}=this['_threeWayMerge'](_0x581a88,_0x12fc0a,_0x23a8bd,_0x270e98);_0x2508bb=_0x2508bb['concat'](_0x1885de),_0x12fc0a=_0x1491cc,_0x270e98=_0x35baf9;}else _0x3f75ec['isRemoved']?(_0x270e98++,_0x2508bb['push'](_0x3f75ec)):(_0x12fc0a++,_0x2508bb['push'](_0x5507a6));}}return _0x2508bb;}['_markSuggestions'](_0x256b7e,_0x46205d){const _0x31ad30=[];for(let _0xe382c=0x0;_0xe382c<_0x256b7e['length'];_0xe382c++){for(let _0x8b632c=0x0;_0x8b632c<_0x256b7e[_0xe382c]['markersStart']['length'];_0x8b632c++){const _0x15e1ec=_0x256b7e[_0xe382c]['markersStart'][_0x8b632c];if(!_0x46205d['has'](_0x15e1ec))continue;const {group:_0x32757e,type:_0xe254b9,authorId:_0x22b888}=_0x4128a2(_0x15e1ec);'revision-suggestion'!=_0x32757e||'insertion'!=_0xe254b9&&'deletion'!=_0xe254b9||(_0x31ad30['unshift']({'type':_0xe254b9,'name':_0x15e1ec,'userId':_0x22b888}),_0x256b7e[_0xe382c]['markersStart']['splice'](_0x8b632c,0x1),_0x8b632c--);}_0x5d0362(_0x256b7e[_0xe382c]);for(let _0x32c5de=0x0;_0x32c5de<_0x256b7e[_0xe382c]['markersEnd']['length'];_0x32c5de++){const _0x1f8f3f=_0x256b7e[_0xe382c]['markersEnd'][_0x32c5de];if(!_0x46205d['has'](_0x1f8f3f))continue;const {group:_0x50ee78,type:_0xe57e6e}=_0x4128a2(_0x1f8f3f);if('revision-suggestion'!=_0x50ee78||'insertion'!=_0xe57e6e&&'deletion'!=_0xe57e6e)continue;_0x256b7e[_0xe382c]['markersEnd']['splice'](_0x32c5de,0x1),_0x32c5de--;const _0x1864a0=_0x31ad30['findIndex'](_0x2e9483=>_0x2e9483['name']==_0x1f8f3f);_0x1864a0>-0x1&&_0x31ad30['splice'](_0x1864a0,0x1);}}function _0x4128a2(_0x18ac6d){const _0x56923f=_0x18ac6d['split'](':');return{'group':_0x56923f[0x0],'type':_0x56923f[0x1],'subType':_0x56923f['length']>=0x5?_0x56923f[0x2]:null,'id':_0x56923f['length']<0x5?_0x56923f[0x2]:_0x56923f[0x3],'authorId':_0x56923f['length']<0x5?_0x56923f[0x3]:_0x56923f[0x4],'markerCount':0x6==_0x56923f['length']?_0x56923f[0x5]:null};}function _0x5d0362(_0x266df9){for(let _0x51234a=0x0;_0x51234a<_0x31ad30['length'];_0x51234a++){if(_0x266df9['isAdded']&&'insertion'==_0x31ad30[_0x51234a]['type']&&_0x266df9['isAdded']['userId']==_0x31ad30[_0x51234a]['userId'])return _0x266df9['isAddSuggestion']=_0x31ad30[_0x51234a],void delete _0x266df9['isAdded'];if(!_0x266df9['isAdded']&&!_0x266df9['isRemoved']&&'deletion'==_0x31ad30[_0x51234a]['type'])return void(_0x266df9['isRemoveSuggestion']=_0x31ad30[_0x51234a]);}}}['_setDistance'](_0x2faffa,_0x2ef139){let _0x166f0d=0x0,_0x2f1b93=!0x1;const _0x3ad7f5=new Map();for(const _0x3ec892 of _0x2faffa)_0x3ec892[_0x2ef139]?_0x2f1b93&&(_0x166f0d++,_0x2f1b93=!0x1):(_0x166f0d++,_0x2f1b93=!0x0),_0x3ad7f5['set'](_0x3ec892['id'],_0x166f0d);for(let _0x1835e4=0x0;_0x1835e4<_0x2faffa['length'];_0x1835e4++){if('isRemoved'==_0x2ef139&&_0x2faffa[_0x1835e4]['isAdded']||'isAdded'==_0x2ef139&&_0x2faffa[_0x1835e4]['isRemoved'])continue;if('text'==_0x2faffa[_0x1835e4]['type']){_0x2faffa[_0x1835e4]['distance']=0x0;continue;}const _0x1a5019=_0x3ad7f5['get'](_0x2faffa[_0x1835e4]['pairId']),_0x126449=_0x3ad7f5['get'](_0x2faffa[_0x1835e4]['id']);_0x2faffa[_0x1835e4]['distance']=_0x1a5019-_0x126449;}}['_getRevisionsRange'](_0x5610ff,_0x25200e,_0x25e69e=!0x1){const _0x40e598=[];let _0x2df48e=this['repository']['getIndex'](_0x5610ff),_0x2c1ebf=this['repository']['getIndex'](_0x25200e);for(-0x1==_0x2c1ebf&&(_0x2c1ebf=this['repository']['_revisions']['length'],_0x25e69e=!0x1);_0x2df48e<_0x2c1ebf;)_0x40e598['push'](this['repository']['getRevision'](_0x2df48e)),_0x2df48e++;return _0x25e69e&&_0x40e598['push'](this['repository']['getRevision'](_0x2df48e)),_0x40e598;}['_threeWayMerge'](_0x1ab9b2,_0x2ca3ea,_0x352b25,_0x23fb21){const _0x1f61b0=this['editor']['model']['schema'];let _0x2d3052=_0x2ca3ea;for(;_0x1ab9b2[_0x2d3052]&&_0x1ab9b2[_0x2d3052]['isAdded'];)_0x2d3052++;let _0x3bbc28=_0x23fb21;for(;_0x352b25[_0x3bbc28]&&_0x352b25[_0x3bbc28]['isRemoved'];)_0x3bbc28++;_0x278ba0(_0x1ab9b2,_0x2ca3ea,_0x2d3052),_0x278ba0(_0x352b25,_0x23fb21,_0x3bbc28);const _0x127b3e=_0x352b25['slice'](_0x23fb21,_0x3bbc28)['concat'](_0x1ab9b2['slice'](_0x2ca3ea,_0x2d3052));return _0x127b3e['sort']((_0x123d90,_0xce572b)=>_0x123d90['side']!=_0xce572b['side']?_0x123d90['side']-_0xce572b['side']:_0x123d90['level']!=_0xce572b['level']?_0x123d90['level']-_0xce572b['level']:_0x123d90['distance']!=_0xce572b['distance']?_0xce572b['distance']-_0x123d90['distance']:!!_0x123d90['isAdded']!=!!_0xce572b['isAdded']?-0x1==_0x123d90['side']||0x0==_0x123d90['side']?_0x123d90['isAdded']?-0x1:0x1:_0x123d90['isAdded']?0x1:-0x1:_0x123d90['index']-_0xce572b['index']),{'commonTape':_0x127b3e,'iEnd':_0x2d3052,'jEnd':_0x3bbc28};function _0x278ba0(_0x43d3e1,_0x2d6783,_0x142c11){let _0x1d2d86=-0x1,_0x3acb3e=Number['POSITIVE_INFINITY'],_0x6ce52e=!0x0;for(let _0x3ebd05=_0x2d6783;_0x3ebd05<_0x142c11;_0x3ebd05++)if(_0x1f61b0['isInline'](_0x43d3e1[_0x3ebd05]['item'])||(_0x6ce52e=!0x1),_0x43d3e1[_0x3ebd05]['item']['startIndex']<_0x2d6783&&(_0x1d2d86=_0x3ebd05),_0x43d3e1[_0x3ebd05]['item']['endIndex']>=_0x142c11){_0x3acb3e=_0x3ebd05;break;}_0x6ce52e&&(_0x1d2d86=_0x142c11-0x1);for(let _0x4d2687=_0x2d6783;_0x4d2687<_0x142c11;_0x4d2687++)_0x43d3e1[_0x4d2687]['side']=_0x4d2687<=_0x1d2d86?-0x1:_0x4d2687<_0x3acb3e?0x0:0x1,_0x43d3e1[_0x4d2687]['index']=_0x4d2687;let _0x2e6d45=0x0;for(let _0x618de2=_0x2d6783;_0x618de2<=_0x1d2d86;_0x618de2++)0x0==_0x43d3e1[_0x618de2]['distance']?_0x43d3e1[_0x618de2]['level']=_0x2e6d45:(_0x2e6d45++,_0x43d3e1[_0x618de2]['level']=_0x2e6d45,_0x2e6d45++);for(let _0x3cf73b=_0x2d6783;_0x3cf73b<_0x142c11;_0x3cf73b++)0x0==_0x43d3e1[_0x3cf73b]['side']&&(_0x43d3e1[_0x3cf73b]['level']=_0x2e6d45);_0x2e6d45=0x0;for(let _0x410ca5=_0x142c11-0x1;_0x410ca5>=_0x3acb3e;_0x410ca5--)0x0==_0x43d3e1[_0x410ca5]['distance']?_0x43d3e1[_0x410ca5]['level']=_0x2e6d45:(_0x2e6d45--,_0x43d3e1[_0x410ca5]['level']=_0x2e6d45,_0x2e6d45--);}}['_fixObsoleteTags'](_0x57bfe7){const _0x412197=new Map(),_0x3b1c73=this['editor']['model']['schema'];for(let _0x3ff2cc=0x1;_0x3ff2cc<_0x57bfe7['length'];_0x3ff2cc++){let _0x4088e7,_0x548029,_0x2bab67;const _0x22c16a=_0x57bfe7[_0x3ff2cc],_0x196fdd=_0x57bfe7[_0x3ff2cc-0x1];if('text'==_0x22c16a['type'])continue;if(_0x22c16a['type']!=_0x196fdd['type'])continue;if(!_0x3b1c73['isBlock'](_0x196fdd['item'])||_0x3b1c73['isLimit'](_0x196fdd['item']))continue;if(!_0x3b1c73['isBlock'](_0x22c16a['item'])||_0x3b1c73['isLimit'](_0x22c16a['item']))continue;if((_0x57bfe7[_0x3ff2cc]['isAdded']||_0x57bfe7[_0x3ff2cc]['isAddSuggestion'])&&_0x57bfe7[_0x3ff2cc-0x1]['isRemoved'])_0x4088e7=_0x57bfe7[_0x3ff2cc],_0x548029=_0x57bfe7[_0x3ff2cc-0x1],_0x2bab67=_0x3ff2cc-0x1;else{if(!_0x57bfe7[_0x3ff2cc]['isRemoved']||!_0x57bfe7[_0x3ff2cc-0x1]['isAdded']&&!_0x57bfe7[_0x3ff2cc-0x1]['isAddSuggestion'])continue;_0x4088e7=_0x57bfe7[_0x3ff2cc-0x1],_0x548029=_0x57bfe7[_0x3ff2cc],_0x2bab67=_0x3ff2cc;}const _0x490a43=_0x4088e7['level']==_0x548029['level'],_0x13f597=Math['abs'](_0x4088e7['level'])<Math['abs'](_0x548029['level'])&&0x0==_0x548029['distance'];(_0x490a43||_0x13f597)&&(_0x412197['set'](_0x548029['id'],_0x4088e7['id']),_0x57bfe7['splice'](_0x2bab67,0x1),_0x3ff2cc--,_0x4088e7['isAdded']=!0x1);}for(let _0x43afba=0x0;_0x43afba<_0x57bfe7['length'];_0x43afba++)_0x412197['has'](_0x57bfe7[_0x43afba]['pairId'])&&(_0x57bfe7[_0x43afba]['pairId']=_0x412197['get'](_0x57bfe7[_0x43afba]['pairId']));}['_removeMissingPairs'](_0x427316){const _0x4cd3bc=new Set(_0x427316['map'](_0x50a5e2=>_0x50a5e2['id']));for(let _0x26ccb9=0x0;_0x26ccb9<_0x427316['length'];_0x26ccb9++)_0x4cd3bc['has'](_0x427316[_0x26ccb9]['pairId'])||0x0==_0x427316[_0x26ccb9]['distance']||(_0x427316[_0x26ccb9]['isIncorrect']=!0x0);return _0x427316['filter'](_0x5e56e3=>!_0x5e56e3['isIncorrect']);}['_markMismatchedRemovedTags'](_0x10bccd){const _0x14dd69=new Set();for(let _0x5f5659=0x0;_0x5f5659<_0x10bccd['length'];_0x5f5659++){if(_0x14dd69['has'](_0x10bccd[_0x5f5659]['id'])&&_0x10bccd[_0x5f5659]['isRemoved']&&(_0x10bccd[_0x5f5659]['isIncorrect']=!0x0),_0x10bccd[_0x5f5659]['isIncorrect'])continue;if(0x0==_0x10bccd[_0x5f5659]['distance'])continue;if('elementStart'!=_0x10bccd[_0x5f5659]['type'])continue;if(null==_0x10bccd[_0x5f5659]['pairId'])continue;let _0x18b9e7=_0x5f5659+0x1,_0x5500aa=0x0;for(;_0x10bccd[_0x18b9e7]['id']!=_0x10bccd[_0x5f5659]['pairId'];)'elementStart'==_0x10bccd[_0x18b9e7]['type']?_0x5500aa++:'elementEnd'==_0x10bccd[_0x18b9e7]['type']&&_0x5500aa--,_0x18b9e7++;if(0x0!=_0x5500aa){if(_0x10bccd[_0x5f5659]['isRemoved'])_0x10bccd[_0x5f5659]['isIncorrect']=!0x0;else{for(;_0x18b9e7!=_0x5f5659;)_0x10bccd[_0x18b9e7]['isRemoved']&&0x0!=_0x10bccd[_0x18b9e7]['distance']&&(_0x10bccd[_0x18b9e7]['isIncorrect']=!0x0,_0x14dd69['add'](_0x10bccd[_0x18b9e7]['pairId'])),_0x18b9e7--;}}}return _0x10bccd['filter'](_0x3a997f=>!_0x3a997f['isIncorrect']);}['_removeUnsupportedChanges'](_0xf421d5){const _0x40cc48=this['editor']['model']['schema'];for(let _0x3f66f6=0x0;_0x3f66f6<_0xf421d5['length'];_0x3f66f6++){if(!(_0xf421d5[_0x3f66f6]['isAdded']||_0xf421d5[_0x3f66f6]['isAddSuggestion']||_0xf421d5[_0x3f66f6]['isRemoved']||_0xf421d5[_0x3f66f6]['isRemoveSuggestion']))continue;if(0x0==_0xf421d5[_0x3f66f6]['distance'])continue;const _0x16d42b=_0xf421d5[_0x3f66f6]['item'];_0x40cc48['isBlock'](_0x16d42b)||_0x40cc48['isLimit'](_0x16d42b)||(_0xf421d5[_0x3f66f6]['isAdded']&&delete _0xf421d5[_0x3f66f6]['isAdded'],_0xf421d5[_0x3f66f6]['isAddSuggestion']&&delete _0xf421d5[_0x3f66f6]['isAddSuggestion'],_0xf421d5[_0x3f66f6]['isRemoveSuggestion']&&delete _0xf421d5[_0x3f66f6]['isRemoveSuggestion'],_0xf421d5[_0x3f66f6]['isRemoved']&&(_0xf421d5[_0x3f66f6]['isIncorrect']=!0x0));}return _0xf421d5['filter'](_0x43dc34=>!_0x43dc34['isIncorrect']);}['_makeModelFromTape'](_0x26f0f8,_0x53e6c8,_0x2ff101){const _0x2d8f58=new ht(),_0x48df4f=[],_0x498c55=new Map(),_0x150eb9=this['editor']['model'],_0x439aa3=_0x150eb9['schema'],_0x351fbe=[_0x2d8f58],_0x3526e4={},_0x4fd7cf={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x265403=null;const _0x3068cf=[0x0];for(let _0xd2b1c4=0x0;_0xd2b1c4<_0x26f0f8['length'];_0xd2b1c4++)if('elementStart'===_0x26f0f8[_0xd2b1c4]['type']){_0x26f0f8[_0xd2b1c4]['previousPosition']=_0x150eb9['createPositionFromPath'](_0x2d8f58,_0x3068cf);const _0x3e80c1=new nt(_0x26f0f8[_0xd2b1c4]['item']['name'],_0x26f0f8[_0xd2b1c4]['item']['getAttributes']());_0x351fbe[0x0]['_appendChild'](_0x3e80c1),_0x3068cf['push'](0x0),_0x351fbe['unshift'](_0x3e80c1),_0x26f0f8[_0xd2b1c4]['nextPosition']=_0x150eb9['createPositionFromPath'](_0x2d8f58,_0x3068cf);}else'elementEnd'===_0x26f0f8[_0xd2b1c4]['type']?(_0x351fbe['shift'](),_0x26f0f8[_0xd2b1c4]['previousPosition']=_0x150eb9['createPositionFromPath'](_0x2d8f58,_0x3068cf),_0x3068cf['pop'](),_0x3068cf[_0x3068cf['length']-0x1]++,_0x26f0f8[_0xd2b1c4]['nextPosition']=_0x150eb9['createPositionFromPath'](_0x2d8f58,_0x3068cf)):(_0x26f0f8[_0xd2b1c4]['previousPosition']=_0x150eb9['createPositionFromPath'](_0x2d8f58,_0x3068cf),_0x265403?_0x265403['_data']+=_0x26f0f8[_0xd2b1c4]['item']['data']:_0x265403=new ct(_0x26f0f8[_0xd2b1c4]['item']['data'],_0x26f0f8[_0xd2b1c4]['item']['getAttributes']()),_0x26f0f8[_0xd2b1c4+0x1]&&'text'===_0x26f0f8[_0xd2b1c4+0x1]['type']&&_0x39c141(_0x265403,_0x26f0f8[_0xd2b1c4+0x1]['item'])||(_0x351fbe[0x0]['_appendChild'](_0x265403),_0x265403=null),_0x3068cf[_0x3068cf['length']-0x1]+=_0x26f0f8[_0xd2b1c4]['item']['offsetSize'],_0x26f0f8[_0xd2b1c4]['nextPosition']=_0x150eb9['createPositionFromPath'](_0x2d8f58,_0x3068cf));for(let _0x1520f2=0x0;_0x1520f2<_0x26f0f8['length'];_0x1520f2++){const _0x58b9af=_0x26f0f8[_0x1520f2]['previousPosition'],_0x1d1f99=_0x26f0f8[_0x1520f2]['nextPosition'];for(const _0x101b05 of _0x26f0f8[_0x1520f2]['markersStart'])_0x498c55['set'](_0x101b05,{'start':_0x58b9af,'end':null});_0x7caea7('isRemoveSuggestion',_0x1520f2,_0x58b9af,_0x1d1f99),_0x7caea7('isAddSuggestion',_0x1520f2,_0x58b9af,_0x1d1f99),_0x7caea7('isRemoved',_0x1520f2,_0x58b9af,_0x1d1f99),_0x7caea7('isAdded',_0x1520f2,_0x58b9af,_0x1d1f99);for(const _0x3b9e6a of _0x26f0f8[_0x1520f2]['markersEnd']){const _0x4626e6=_0x498c55['get'](_0x3b9e6a);_0x4626e6?_0x4626e6['end']=_0x1d1f99:_0x498c55['set'](_0x3b9e6a,{'start':_0x1d1f99,'end':_0x1d1f99});}}for(const [_0x53cae6,_0x103126]of _0x498c55){const _0x2b9d3a=this['editor']['model']['createRange'](_0x103126['start'],_0x103126['end']);_0x2d8f58['markers']['set'](_0x53cae6,_0x2b9d3a);}return _0x48df4f['sort']((_0x554947,_0x3e9089)=>{const _0x6017aa=_0x2d8f58['markers']['get']('revision:'+_0x554947['id']),_0x38d333=_0x2d8f58['markers']['get']('revision:'+_0x3e9089['id']);return _0x6017aa['start']['isBefore'](_0x38d333['start'])?-0x1:_0x6017aa['start']['isAfter'](_0x38d333['start'])?0x1:_0x6017aa['end']['isBefore'](_0x38d333['end'])?-0x1:_0x6017aa['end']['isAfter'](_0x38d333['end'])?0x1:'add'===_0x554947['type']?-0x1:0x1;}),{'root':_0x2d8f58,'changes':_0x48df4f};function _0x7caea7(_0x54704c,_0x23e7db,_0xd6f9bb,_0x3e4e16){const _0x2d3871=!!_0x26f0f8[_0x23e7db][_0x54704c],_0x5cb20c=_0x2d3871?_0x26f0f8[_0x23e7db][_0x54704c]['userId']:null,_0x57a150=_0x23e7db===_0x26f0f8['length']-0x1,_0x17a7a8=_0x4fd7cf[_0x54704c][0x0],_0x50c548=_0x439aa3['isObject'](_0x26f0f8[_0x23e7db]['item']);!_0x3526e4[_0x54704c]&&_0x2d3871?_0x3526e4[_0x54704c]={'start':_0xd6f9bb,'tapeItem':_0x26f0f8[_0x23e7db],'userId':_0x5cb20c,'type':_0x54704c}:_0x3526e4[_0x54704c]&&!_0x2d3871?(_0x3526e4[_0x54704c]['end']=_0xd6f9bb,_0x4a13c9(_0x3526e4[_0x54704c]),_0x3526e4[_0x54704c]=null):_0x3526e4[_0x54704c]&&_0x2d3871&&_0x3526e4[_0x54704c]['userId']!==_0x5cb20c&&(_0x3526e4[_0x54704c]['end']=_0xd6f9bb,_0x17a7a8&&_0x17a7a8['userId']===_0x3526e4[_0x54704c]['userId']||_0x4a13c9(_0x3526e4[_0x54704c]),_0x3526e4[_0x54704c]={'start':_0xd6f9bb,'tapeItem':_0x26f0f8[_0x23e7db],'userId':_0x5cb20c,'type':_0x54704c}),_0x3526e4[_0x54704c]&&_0x50c548&&('elementStart'!==_0x26f0f8[_0x23e7db]['type']||_0x17a7a8&&_0x17a7a8['userId']===_0x5cb20c||_0x4fd7cf[_0x54704c]['unshift']({'userId':_0x5cb20c,'object':_0x26f0f8[_0x23e7db]['item'],'change':_0x3526e4[_0x54704c]}),'elementEnd'===_0x26f0f8[_0x23e7db]['type']&&_0x17a7a8&&_0x17a7a8['object']===_0x26f0f8[_0x23e7db]['item']&&(_0x4fd7cf[_0x54704c]['shift'](),_0x3526e4[_0x54704c]=_0x17a7a8['change'])),_0x3526e4[_0x54704c]&&_0x57a150&&(_0x3526e4[_0x54704c]['end']=_0x3e4e16,_0x4a13c9(_0x3526e4[_0x54704c]),_0x3526e4[_0x54704c]=null);}function _0x4a13c9({start:_0x42518c,end:_0x159197,tapeItem:_0x3d3b12,userId:_0x43a068,type:_0x530821}){const _0x252ff9=_0x3d3b12['item'],_0x2e470d=_0x150eb9['schema']['isBlock'](_0x252ff9)&&!_0x150eb9['schema']['isLimit'](_0x252ff9),_0xd462f4=_0x42518c['nodeAfter']==_0x159197['parent']&&_0x159197['isAtStart'];if(_0x2e470d&&_0xd462f4)return;const _0x3efefb=_0x150eb9['createRange'](_0x42518c,_0x159197),_0x2fcf23=_0x53e6c8['get'](_0x43a068),_0x3472d5=new G({'author':_0x2fcf23,'type':'isAdded'==_0x530821||'isAddSuggestion'==_0x530821?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x530821||'isRemoveSuggestion'==_0x530821},'createdAt':new Date(),'rootName':_0x2ff101});_0x48df4f['push'](_0x3472d5),_0x2d8f58['markers']['set']('revision:'+_0x3472d5['id'],_0x3efefb);}function _0x39c141(_0x3b74cf,_0x1f0094){const _0x1a3f32=_0x3b74cf['getAttributes'](),_0x21d92d=_0x1f0094['getAttributes']();for(const _0x5cd498 of _0x1a3f32){if(_0x5cd498[0x1]!==_0x1f0094['getAttribute'](_0x5cd498[0x0]))return!0x1;_0x21d92d['next']();}return _0x21d92d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x19e330=>{const _0x49de1a=_0x19e330['markerName']['split'](':')[0x1],_0x3d6449=this['_getChangeFromId'](_0x49de1a);if(!_0x3d6449)return null;const _0x3c6d7f='add'==_0x3d6449['type']?'insertion':'deletion',_0x1cb80a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c6d7f];return _0x3d6449['data']['isSuggestion']&&_0x1cb80a['push']('ck-suggestion-marker-'+_0x3c6d7f+'-new'),this['activeChange']==_0x3d6449&&_0x1cb80a['push']('ck-suggestion-marker--active'),{'classes':_0x1cb80a,'attributes':{'data-change-id':_0x49de1a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2bf404=>{_0x2bf404['on']('element:pre',(_0x5f5cb0,_0x27d85c,_0x1359e7)=>{const _0x2014b2=_0x27d85c['viewItem']['getChild'](0x0);if(!_0x2014b2||!_0x2014b2['is']('element','code'))return;if(!_0x1359e7['consumable']['consume'](_0x2014b2,{'attributes':['vid_start','vid_end']}))return;const _0x1396b6=_0x27d85c['modelRange']['start']['nodeAfter'];_0x1359e7['writer']['setAttribute']('vid_start',_0x2014b2['getAttribute']('vid_start'),_0x1396b6),_0x1359e7['writer']['setAttribute']('vid_end',_0x2014b2['getAttribute']('vid_end'),_0x1396b6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1b0807=>{_0x1b0807['on']('element',(_0x5564f8,_0x487674,_0x4beaef)=>{if(!_0x4beaef['consumable']['consume'](_0x487674['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x487674['modelRange']['isCollapsed'])return;const _0x50f5b0=_0x487674['modelRange']['start']['nodeAfter'];_0x50f5b0['hasAttribute']('vid_start')||_0x50f5b0['hasAttribute']('vid')||(_0x4beaef['writer']['setAttribute']('vid_start',_0x487674['viewItem']['getAttribute']('vid_start'),_0x50f5b0),_0x4beaef['writer']['setAttribute']('vid_end',_0x487674['viewItem']['getAttribute']('vid_end'),_0x50f5b0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4c6112=>_0x4c6112['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2f4cf6,[,_0x598de0])=>{['vid_start','vid_end','vid']['includes'](_0x598de0)&&(_0x2f4cf6['return']=!0x0,_0x2f4cf6['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x199259=>{_0x199259['on']('attribute:vid',(_0x594f72,_0x532162,_0x168e83)=>{if('\x20'!=_0x532162['item']['data']||_0x532162['item']['parent']['maxOffset']>0x1)return;if(!_0x168e83['consumable']['consume'](_0x532162['item'],_0x594f72['name']))return;const _0x1d462f=_0x168e83['writer'],_0x643e6e=_0x168e83['mapper']['toViewRange'](_0x532162['range']);_0x1d462f['wrap'](_0x643e6e,_0x1d462f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x58a0a7){const _0x2c252f=_0x58a0a7['plugins']['get']('RevisionViewer');return(_0x23d157,_0x2cb37b,_0x17d544)=>{const _0x172d05=_0x2cb37b['markerName']['split'](':')[0x1],_0x304c7c=_0x2c252f['_getChangeFromId'](_0x172d05);if(!_0x304c7c)return null;const _0x5508f5='add'==_0x304c7c['type']?'split':'merge';if(!_0x17d544['consumable']['test'](_0x2cb37b['markerRange'],_0x23d157['name']))return;const _0x41ada8=_0x2cb37b['markerRange']['getWalker'](),_0x35b6f8=_0x2cb37b['markerRange']['start'],_0x4df502=_0x58a0a7['model']['schema'];let _0x51c03b=null,_0x50659a=null,_0x2fccf8=!0x1,_0x447eba=!0x1;for(const _0x47bdaf of _0x41ada8){const _0x2f71b3=_0x47bdaf['item'];_0x2fccf8=_0x2fccf8||_0x4df502['isContent'](_0x2f71b3);const _0x31ed8a=_0x17d544['mapper']['toViewElement'](_0x2f71b3);if(_0x31ed8a&&_0x31ed8a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47bdaf['type']&&(_0x4df502['isBlock'](_0x2f71b3)&&!_0x4df502['isLimit'](_0x2f71b3)&&(_0x2f71b3['nextSibling']||_0x35b6f8['isAtEnd']?_0x51c03b&&_0x51c03b['parent']==_0x2f71b3||(_0x51c03b=_0x2f71b3,_0x2467ac(_0x47bdaf['previousPosition']),_0x447eba=!0x0):_0x50659a=_0x50659a||_0x47bdaf['previousPosition']));}function _0x2467ac(_0x40ae90){const _0x3f16ad=_0x17d544['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5508f5}),_0x51a50b=_0x17d544['mapper']['toViewPosition'](_0x40ae90);_0x304c7c['data']['isSuggestion']&&_0x17d544['writer']['addClass']('ck-suggestion-marker-'+_0x5508f5+'-new',_0x3f16ad),_0x2c252f['activeChange']==_0x304c7c&&_0x17d544['writer']['addClass']('ck-suggestion-marker--active',_0x3f16ad),_0x17d544['writer']['insert'](_0x51a50b,_0x3f16ad),_0x17d544['mapper']['bindElementToMarker'](_0x3f16ad,_0x2cb37b['markerName']);}_0x2fccf8||_0x447eba||!_0x50659a||_0x2467ac(_0x50659a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x496999,_0x453da8,_0x4485bf)=>{const _0xcbabe6=_0x4485bf['mapper']['markerNameToElements'](_0x453da8['markerName']);if(_0xcbabe6){for(const _0x5bc3a9 of _0xcbabe6)(_0x5bc3a9['hasClass']('ck-suggestion-marker-split')||_0x5bc3a9['hasClass']('ck-suggestion-marker-merge'))&&(_0x4485bf['mapper']['unbindElementFromMarkerName'](_0x5bc3a9,_0x453da8['markerName']),_0x4485bf['writer']['remove'](_0x5bc3a9));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x10d6d6,_0x580790,_0x24320b)=>{const _0x1ee7a4=_0x580790['markerName']['split'](':')[0x1],_0x345073=this['_getChangeFromId'](_0x1ee7a4);if(!_0x345073)return null;const _0x527e16='add'==_0x345073['type']?'split':'merge';if(_0x24320b['consumable']['test'](_0x580790['markerRange'],_0x10d6d6['name']))for(const _0x3078af of _0x580790['markerRange']['getItems']()){if(!_0x3078af['is']('element','softBreak'))continue;const _0x24043a=_0x24320b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x527e16}),_0x537860=_0x24320b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3078af));_0x345073['data']['isSuggestion']&&_0x24320b['writer']['addClass']('ck-suggestion-marker-'+_0x527e16+'-new',_0x24043a),this['activeChange']==_0x345073&&_0x24320b['writer']['addClass']('ck-suggestion-marker--active',_0x24043a),_0x24320b['writer']['insert'](_0x537860,_0x24043a),_0x24320b['mapper']['bindElementToMarker'](_0x24043a,_0x580790['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x542e0a=>{for(const _0x49fe52 of this['editor']['model']['document']['getRootNames']()){const _0x59aec2=this['editor']['model']['document']['getRoot'](_0x49fe52),_0x2c6c8f=this['editor']['editing']['view']['document']['getRoot'](_0x49fe52);if(_0x2c6c8f){const _0x11d965=_0x59aec2['getAttribute']('revisionHistoryAttachChange');if(_0x542e0a['removeAttribute']('data-change-id',_0x2c6c8f),_0x542e0a['removeClass']('ck-revision-history-root-add',_0x2c6c8f),_0x542e0a['removeClass']('ck-revision-history-root-remove',_0x2c6c8f),_0x542e0a['removeClass']('ck-revision-history-root--active',_0x2c6c8f),_0x11d965){const _0x945956=this['_getChangeFromId'](_0x11d965);if(!_0x945956)return null;_0x542e0a['setAttribute']('data-change-id',_0x11d965,_0x2c6c8f),_0x542e0a['addClass']('ck-revision-history-root-'+_0x945956['type'],_0x2c6c8f),this['activeChange']==_0x945956&&_0x542e0a['addClass']('ck-revision-history-root--active',_0x2c6c8f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x537d44=>'revision-comment:'+_0x537d44,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xd01ec3=>'revision-suggestion:'+_0xd01ec3,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5b5e19=>({'name':'suggestion:'+_0x5b5e19,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5dc05b=>{const _0x1a705e=_0x5dc05b['markerName']['split'](':')[0x1];return'insertion'!=_0x1a705e&&'deletion'!=_0x1a705e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1a705e]};}}),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',(_0x508e03,_0x503747,_0x23bfba)=>{const _0x1d8e02=_0x23bfba['mapper']['markerNameToElements'](_0x503747['markerName']);if(_0x1d8e02){for(const _0x206980 of _0x1d8e02)_0x206980['is']('uiElement')&&(_0x23bfba['mapper']['unbindElementFromMarkerName'](_0x206980,_0x503747['markerName']),_0x23bfba['writer']['remove'](_0x206980));}},{'priority':'high'});}['_getChangeFromId'](_0x4a7116){return this['_changeIdToChange']['get'](_0x4a7116);}['_getViewForChange'](_0x39cc2c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x39cc2c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x130d81,_0x19c617,_0x4c598d,_0x314287)=>{_0x314287&&this['_balloon']['remove'](_0x314287),_0x4c598d&&(this['_balloon']['add']({'view':_0x4c598d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x479449=this['editor']['editing'],_0x155f4f=this['_getChangeFromId'](_0x4c598d['changeId']);let _0x36eafa;if(_0x155f4f['data']['isOnRoot']){const _0x3edc89=_0x479449['view']['getDomRoot'](_0x155f4f['rootName']);_0x36eafa=Array['from'](_0x3edc89['getClientRects']());}else{const _0x393294=this['editor']['model']['markers']['get']('revision:'+_0x4c598d['changeId']);_0x36eafa=Array['from'](_0x479449['mapper']['markerNameToElements'](_0x393294['name']))['map'](_0x9571f5=>_0x479449['view']['domConverter']['mapViewToDom'](_0x9571f5))['map'](_0x44f3c4=>Array['from'](_0x44f3c4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x36eafa[0x0];return _0x36eafa['find'](_0x133abf=>_0x133abf['top']-0x3<=this['_activeViewTarget']['y']&&_0x133abf['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x133abf['left']-0x3<=this['_activeViewTarget']['x']&&_0x133abf['right']+0x3>=this['_activeViewTarget']['x'])||_0x36eafa[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x487db3,_0x808bf3,_0x564e42,_0x2d91fd)=>{this['activeView']=_0x564e42?this['_getViewForChange'](_0x564e42):null,this['editor']['model']['change'](()=>{const _0x34ea0f=this['editor']['editing'];_0x2d91fd&&(_0x2d91fd['data']['isOnRoot']?_0x34ea0f['view']['change'](_0x58f31c=>{_0x58f31c['removeClass']('ck-revision-history-root--active',_0x34ea0f['view']['document']['getRoot'](_0x2d91fd['rootName']));}):_0x34ea0f['reconvertMarker']('revision:'+_0x2d91fd['id'])),_0x564e42&&(_0x564e42['data']['isOnRoot']?_0x34ea0f['view']['change'](_0x36083c=>{_0x36083c['addClass']('ck-revision-history-root--active',_0x34ea0f['view']['document']['getRoot'](_0x564e42['rootName']));}):_0x34ea0f['reconvertMarker']('revision:'+_0x564e42['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x12c92d,_0x59941f)=>{if(this['activeChange'])return;const _0xa7153d=this['_findChangeIdFromDomTarget'](_0x59941f['target']),_0x33cb98=this['_changeIdToChange']['get'](_0xa7153d);_0x33cb98?(this['_activeViewTarget']={'x':_0x59941f['domEvent']['x'],'y':_0x59941f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x33cb98)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3869c2,_0x30cecd)=>{const _0x20a4d9=this['_findChangeIdFromDomTarget'](_0x30cecd['target']),_0x26f8fc=this['_changeIdToChange']['get'](_0x20a4d9);_0x26f8fc?(this['_activeViewTarget']={'x':_0x30cecd['domEvent']['x'],'y':_0x30cecd['domEvent']['y']},_0x26f8fc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x26f8fc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xb4fd9b){do{const _0x37e0b8=_0xb4fd9b['getAttribute']('data-change-id');if(_0x37e0b8)return _0x37e0b8;_0xb4fd9b=_0xb4fd9b['parent'];}while(_0xb4fd9b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x15f3ff=>{for(const _0x588291 of this['editor']['model']['markers'])_0x15f3ff['removeMarker'](_0x588291);});}}function Q(_0x5ea091,_0x13524b){return(_0x2a3144,_0x679a26,_0xf064c9)=>{if(!_0xf064c9['consumable']['test'](_0x679a26['markerRange'],_0x2a3144['name']))return;const _0x4c64b9=_0x679a26['markerRange']['getWalker'](),_0x3fb541=_0x679a26['markerRange']['start'],_0x178a1c=_0x5ea091['model']['schema'];let _0x2aac03=null,_0x1146ee=null,_0x5e95ae=!0x1,_0x21faf6=!0x1;for(const _0x410462 of _0x4c64b9){const _0x17a009=_0x410462['item'];_0x5e95ae=_0x5e95ae||_0x178a1c['isContent'](_0x17a009);const _0x1dacd7=_0xf064c9['mapper']['toViewElement'](_0x17a009);if(_0x1dacd7&&_0x1dacd7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x410462['type']&&(_0x178a1c['isBlock'](_0x17a009)&&!_0x178a1c['isLimit'](_0x17a009)&&(_0x17a009['nextSibling']||_0x3fb541['isAtEnd']?_0x2aac03&&_0x2aac03['parent']==_0x17a009||(_0x2aac03=_0x17a009,_0x40dba2(_0x410462['previousPosition']),_0x21faf6=!0x0):_0x1146ee=_0x1146ee||_0x410462['previousPosition']));}function _0x40dba2(_0x2539e0){const _0x2dde96=_0xf064c9['mapper']['toViewPosition'](_0x2539e0),_0x46b416=_0xf064c9['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x13524b});_0xf064c9['writer']['insert'](_0x2dde96,_0x46b416),_0xf064c9['mapper']['bindElementToMarker'](_0x46b416,_0x679a26['markerName']);}_0x5e95ae||_0x21faf6||!_0x1146ee||_0x40dba2(_0x1146ee);};}class ut extends _0x3346a7{constructor(_0x52bff9){super(_0x52bff9);const _0x14b308=_0x52bff9['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x14b308,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x14b308,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x38550e=this['editor'],_0x79616f=_0x38550e['plugins']['get'](l),_0x33bcfd=_0x79616f['isReady']?_0x79616f['diff']['newRevisionId']:null;_0x38550e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x33bcfd);}['refresh'](){const {isReady:_0x39cf66,isEnabled:_0x454258,repository:_0x35466e,diff:_0xc83355}=this['editor']['plugins']['get'](l),_0xbc89be=_0xc83355&&_0x35466e['getLaterVisibleRevision'](_0xc83355['newRevisionId']);this['isEnabled']=_0x39cf66&&_0x454258&&Boolean(_0xbc89be);}}class lt extends _0x3346a7{['_step'];constructor(_0x41fa40,{direction:_0x12db70}){super(_0x41fa40);const _0xd7002e=_0x41fa40['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x12db70?0x1:-0x1,this['listenTo'](_0xd7002e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xd7002e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xd7002e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2364f9=this['editor'],_0x1b37e5=_0x2364f9['plugins']['get'](l),{isNavigationMode:_0x226735,currentChangeNumber:_0x48ff2c}=_0x1b37e5;let _0x286db7;if(_0x1b37e5['activeChange']=_0x226735?_0x1b37e5['diff']['changes']['get'](_0x48ff2c+this['_step']):_0x1b37e5['diff']['changes']['first'],_0x1b37e5['activeChange']['data']['isOnRoot'])_0x286db7=_0x2364f9['editing']['view']['getDomRoot'](_0x1b37e5['activeChange']['rootName']);else{const _0x2167a8=_0x2364f9['model']['markers']['get']('revision:'+_0x1b37e5['activeChange']['id']);_0x286db7=_0x541237(_0x2364f9['editing'],_0x2167a8);}_0x40129e({'target':_0x286db7,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5d5399,currentChangeNumber:_0x4a103b,numberOfChanges:_0x18e1d3,isReady:_0x5973a5,isEnabled:_0x40001d}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x40001d&&_0x5973a5&&_0x18e1d3)&&(!_0x5d5399||(0x1===this['_step']?_0x4a103b<_0x18e1d3-0x1:_0x4a103b>0x0));}}class Ri extends _0x58fabb{constructor(_0x46c114){super(_0x46c114);const _0x5a1cee=this['bindTemplate'],_0x638208=new _0x323e15(_0x46c114),_0x1840a0=new _0x323e15(_0x46c114);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',(_0x5b527d,_0x15bcf1)=>_0x5b527d&&_0x15bcf1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1a453e,_0x447ea0,_0x3d5c1b,_0x5c430a)=>{if(!_0x1a453e)return R(_0x46c114,'Loading...');if(!_0x3d5c1b)return R(_0x46c114,'No\x20changes');const _0x557122=R(_0x46c114,'NUMBER_OF_CHANGES',_0x3d5c1b);return _0x5c430a?R(_0x46c114,'X_OF_Y_CHANGES',[_0x447ea0+0x1,_0x3d5c1b]):_0x557122;}),_0x638208['set']({'label':R(_0x46c114,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x577a94}),_0x1840a0['set']({'label':R(_0x46c114,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1a4c43}),_0x638208['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1840a0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x638208['on']('execute',()=>this['fire']('execute','backward')),_0x1840a0['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',_0x5a1cee['if']('_isStatusLabelVisible','ck-hidden',_0x5bb66c=>!_0x5bb66c)]},'children':[{'text':_0x5a1cee['to']('isNavigationMode',_0x92aa1c=>_0x92aa1c?R(_0x46c114,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x46c114,'Total')+':\x20')}]},{'text':_0x5a1cee['to']('_statusText')}]},new _0x29c8fb(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x638208,_0x1840a0]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x484656{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x219da1=this['editor']['editing']['view'];_0x219da1['change'](_0x5cf5cc=>{for(const _0xbc9091 of _0x219da1['document']['roots'])_0x5cf5cc['addClass'](ge,_0xbc9091);});}['hide'](){const _0x29f00d=this['editor']['editing']['view'];_0x29f00d['change'](_0x5d0f02=>{for(const _0xcad5b0 of _0x29f00d['document']['roots'])_0x5d0f02['removeClass'](ge,_0xcad5b0);});}}class u extends _0x484656{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x44bfe7=this['editor'],_0x2cfd0e=_0x44bfe7['plugins']['get'](l),_0x6a0a9e=_0x44bfe7['plugins']['get'](ji);_0x44bfe7['ui']['componentFactory']['add']('exitToEditing',_0x488ad2=>{const _0x2c188c=new _0x323e15(_0x488ad2);return _0x2c188c['set']({'label':R(_0x488ad2,'Back\x20to\x20editing'),'icon':_0x27d18b,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2c188c,'execute',()=>{_0x44bfe7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2c188c;}),_0x44bfe7['ui']['componentFactory']['add']('restoreRevision',_0x13d40b=>{const _0x467ff3=new _0x323e15(_0x13d40b);return _0x467ff3['set']({'label':R(_0x13d40b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x467ff3['bind']('isEnabled')['to'](_0x44bfe7['commands']['get']('restoreRevision')),this['listenTo'](_0x467ff3,'execute',()=>_0x44bfe7['execute']('restoreRevision')),_0x467ff3;}),_0x44bfe7['ui']['componentFactory']['add']('changesNavigation',_0x1dc234=>{const _0x31c6de=new Ri(_0x1dc234),_0x5e762c=_0x44bfe7['commands']['get']('showPreviousChange'),_0x40dc66=_0x44bfe7['commands']['get']('showNextChange');return _0x31c6de['bind']('isBackwardNavigationEnabled')['to'](_0x5e762c,'isEnabled'),_0x31c6de['bind']('isForwardNavigationEnabled')['to'](_0x40dc66,'isEnabled'),_0x31c6de['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2cfd0e),this['listenTo'](_0x31c6de,'execute',(_0x52aa56,_0x4833f0)=>{_0x44bfe7['execute']('forward'===_0x4833f0?'showNextChange':'showPreviousChange');}),_0x31c6de;}),_0x6a0a9e['show'](),_0x2cfd0e['on']('change:isReady',(_0x107a35,_0x13cbfb,_0x7b2ac0)=>{_0x7b2ac0?_0x6a0a9e['hide']():_0x6a0a9e['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x584677,_0x31b0a3){super(_0x584677,_0x31b0a3);const _0x4ecfcb=this['bindTemplate'];this['set']({'label':R(_0x584677,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x584677,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ecfcb['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4a8b31=this['fieldView']['element'];this['_tooltipString']=_0x4a8b31['scrollWidth']>_0x4a8b31['clientWidth']&&_0x4a8b31['value']||'';}}class ni extends _0x58fabb{constructor(_0x55acd2,_0x9fb8a7,_0xfaf511){super(_0x55acd2);const _0x29105b=new _0x4c5c7b();_0x29105b['set']({'content':_0x5f2d82,'viewBox':'0\x200\x2011\x2010'});const _0x1240c4=['ck','ck-revision-history-sidebar__revision-author'];_0xfaf511&&_0x1240c4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3887b6=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x55acd2,_0xfaf511?'Revision\x20creator':'Revision\x20author')},'children':[_0x29105b,_0x9fb8a7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1240c4},'children':_0x3887b6});}}function ci(_0x38dc0c,_0x9ce40d){const _0x39e786=_0x38dc0c['bindTemplate'],_0x4e20fe=_0x38dc0c['locale'],_0x311913=_0x4d03d3(_0x4e20fe);_0x311913['panelPosition']='sw';const _0xc70feb=function(_0x44a71c,_0x33f736){const _0x111c91=function(_0x594a48,_0x56ea38){const _0x24129f=_0x594a48['locale'],_0x205563={'Compare\x20against\x20selected':R(_0x24129f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x24129f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x24129f,'Restore\x20this\x20revision')};return _0x56ea38['map'](_0x2165c8=>{const _0x4a6b2e=_0x205563[_0x2165c8['name']];return _0x4a6b2e&&_0x4a6b2e!==_0x2165c8['name']&&(_0x2165c8['name']=_0x4a6b2e),_0x2165c8;});}(_0x44a71c,_0x33f736),_0x435707=new _0x520a1c();for(const _0x4b3a17 of _0x111c91){const _0x5d01d1={'type':'button','model':new to({'label':_0x4b3a17['name'],'class':_0x4b3a17['class'],'withText':!0x0,'role':'menuitem','_action':_0x4b3a17['action']})};_0x5d01d1['model']['bind']('isEnabled')['to'](_0x44a71c,'isActionsDropdownOpen',_0x40309f=>'function'!=typeof _0x4b3a17['isEnabled']||(!_0x40309f||_0x4b3a17['isEnabled'](_0x44a71c))),_0x435707['add'](_0x5d01d1);}return _0x435707;}(_0x38dc0c,_0x9ce40d);return _0x38dc0c['bind']('isActionsDropdownOpen')['to'](_0x311913,'isOpen'),_0x311913['buttonView']['set']({'label':R(_0x4e20fe,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x32264f}),_0x311913['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x39e786['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x39e786['to'](_0x31fa65=>_0x31fa65['stopPropagation']())}}),_0x311913['on']('execute',_0x1acf21=>{_0x38dc0c['isReady']&&'function'==typeof _0x1acf21['source']['_action']&&_0x1acf21['source']['_action'](_0x38dc0c);}),_0x2a5316(_0x311913,_0xc70feb,{'role':'menu'}),_0x311913['listenTo'](_0x38dc0c,'change:isActionsDropdownOpen',(_0x47b05a,_0x27ec90,_0x19816b)=>{if(_0x19816b)for(const _0x49d644 of _0x311913['listView']['items']){const _0x1a1ade=_0x49d644['children']['first'],_0x3e0c8b=_0x9ce40d['find'](_0x381d7f=>_0x381d7f['action']===_0x1a1ade['_action'])['isVisible'];_0x49d644['isVisible']=void 0x0===_0x3e0c8b||_0x3e0c8b(_0x38dc0c);}}),_0x311913;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x4f2fa1(_0x58fabb){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x9e7569,_0x5b8b64,_0x16e364,_0x2d994a){super(_0x9e7569);const _0x4587f4=this['bindTemplate'],_0x4e9943=function(_0x508de0,_0x58dadf){const _0x2d961=Array['from'](_0x58dadf['authors'])['filter'](_0x1d2183=>_0x1d2183!=_0x58dadf['creator']);return _0x58dadf['creator']&&_0x2d961['unshift'](_0x58dadf['creator']),_0x2d961['map'](_0x242dc=>new ni(_0x508de0,_0x242dc,_0x242dc==_0x58dadf['creator']));}(_0x9e7569,_0x5b8b64);this['id']=_0x5b8b64['id'],this['_revision']=_0x5b8b64,this['_requireRevisionName']=_0x2d994a,this['bind']('name','createdAt')['to'](_0x5b8b64),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x10ee2f=>{return _0x2744dd=_0x9e7569['uiLanguage'],(_0x35de3c=_0x10ee2f)['toLocaleDateString'](_0x2744dd,{'month':'long','day':'numeric'})+',\x20'+_0x35de3c['toLocaleTimeString'](_0x2744dd,{'hour':'numeric','minute':'numeric'});var _0x2744dd,_0x35de3c;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x9e7569,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x8d987b=>_0x8d987b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5b4232,_0x29550c)=>_0x5b4232&&_0x29550c),this['revisionActionsView']=_0x16e364&&_0x16e364['length']?ci(this,_0x16e364):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4587f4['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4587f4['if']('isEnabled','ck-disabled',_0x33d4b9=>!_0x33d4b9),_0x4587f4['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4587f4['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4587f4['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':_0x4587f4['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':_0x4e9943}]},this['revisionActionsView']],'on':{'click':_0x4587f4['to'](_0x14444b=>{_0x14444b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x281f27=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x281f27,'change',()=>{this['_requireRevisionName']&&!_0x281f27['value']||this['fire']('setName',{'id':this['id'],'name':_0x281f27['value']}),_0x281f27['value']||(_0x281f27['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x3a2c57,_0x19aa57){const _0x2d64d2=_0x50fa3b['fromJSDate'](_0x3a2c57)['setLocale'](_0x19aa57),_0x399c32=_0x50fa3b['local'](),_0x149cb5=_0x399c32['minus']({'days':0x1})['startOf']('day');let _0x2f2dd2,_0x490fb0;return _0x2d64d2['hasSame'](_0x399c32,'day')?(_0x2f2dd2=_0x2d64d2['startOf']('day')['toJSDate'](),_0x490fb0=_0x2d64d2['toRelativeCalendar']()):_0x2d64d2['hasSame'](_0x149cb5,'day')?(_0x2f2dd2=_0x149cb5['toJSDate'](),_0x490fb0=_0x2d64d2['toRelativeCalendar']()):_0x2d64d2['hasSame'](_0x399c32,'week')?(_0x2f2dd2=_0x2d64d2['startOf']('week')['toJSDate'](),_0x490fb0=_0x2d64d2['weekdayLong']||''):_0x2d64d2['hasSame'](_0x399c32,'year')?(_0x2f2dd2=_0x2d64d2['startOf']('month')['toJSDate'](),_0x490fb0=_0x2d64d2['monthLong']||''):(_0x2f2dd2=_0x2d64d2['startOf']('year')['toJSDate'](),_0x490fb0=String(_0x2d64d2['year'])),{'startDate':_0x2f2dd2,'localizedPeriodName':_0x490fb0};}class bi extends _0x58fabb{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3660e8,_0x151f7b,_0x2ee4dd,_0x38fb05){super(_0x3660e8);const _0x523200=li(_0x151f7b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x151f7b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2ee4dd,this['_requireRevisionName']=_0x38fb05,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':_0x523200}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3b6067){const _0x360383=new _i(this['locale'],_0x3b6067,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x360383);}['removeRevision'](_0x4bd2ce){const _0x560065=this['revisionViews']['find'](_0x1a3870=>_0x1a3870['id']===_0x4bd2ce['id']);this['revisionViews']['remove'](_0x560065);}}class fi extends _0x58fabb{constructor(_0x4d4bce){super(_0x4d4bce);const _0x4a69da=new _0x4c5c7b();_0x4a69da['content']=_0x1879f6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4a69da,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x4d4bce,'Revision\x20history')]}]});}}class di extends _0x58fabb{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x584141,_0x645989,_0x58e67f,_0x260657){super(_0x584141);const _0x5711ed=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x645989,this['_revisionActions']=_0x58e67f,this['_requireRevisionName']=_0x260657,this['on']('select',(_0x24a200,_0x3ff969)=>{this['fire']('revisionSelected',_0x3ff969);}),this['on']('setName',(_0x5e608e,_0x4b3aae)=>{this['fire']('revisionSetName',_0x4b3aae);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x584141),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5711ed['if']('isEnabled','ck-disabled',_0x3d8769=>!_0x3d8769)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x57d76a of this['_revisions'])this['_addRevision'](_0x57d76a);this['_revisions']['on']('add',(_0x41ccca,_0x532dc7)=>{this['_addRevision'](_0x532dc7);}),this['_revisions']['on']('remove',(_0x36a7c3,_0xd7e1e9)=>{this['_removeRevision'](_0xd7e1e9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x509f51=>_0x509f51['revisionViews']['map'](_0x3663d8=>_0x3663d8))['flat']();}['selectRevision'](_0xdba71e){for(const _0x4c1fe2 of this['revisionViews'])_0xdba71e&&_0xdba71e['id']===_0x4c1fe2['id']?_0x4c1fe2['select']():_0x4c1fe2['deselect']();}['highlightRevisions'](_0x2962d5){for(const _0x249131 of this['revisionViews'])_0x2962d5['some'](({id:_0x4853e0})=>_0x4853e0===_0x249131['id'])?_0x249131['highlight']():_0x249131['unhighlight']();}['_addRevision'](_0x36fd28){const _0x2bdf16=li(_0x36fd28['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4b1e18=this['timePeriodViews']['get'](0x0);_0x4b1e18&&_0x4b1e18['startDate']['getTime']()===_0x2bdf16['getTime']()||(_0x4b1e18=new bi(this['locale'],_0x2bdf16,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4b1e18)),_0x4b1e18['addRevision'](_0x36fd28);}['_removeRevision'](_0x28df1e){const _0x1ac779=li(_0x28df1e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1ac779)['removeRevision'](_0x28df1e);}['_getTimePeriodViewByStartDate'](_0x4fea31){return this['timePeriodViews']['find'](_0x48a675=>_0x48a675['startDate']['getTime']()===_0x4fea31['getTime']());}}class f extends _0x484656{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0x1e9fe2(_0x4a8472){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2715a2,_0x4ae928){super(_0x4ae928),this['sourceElement']=_0x2715a2,this['model']['document']['createRoot']();const _0x580fe1=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x580fe1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x56cf7f,_0x463803){const _0x85e42c=new this(_0x56cf7f,_0x463803);return await _0x85e42c['initPlugins'](),await _0x85e42c['ui']['init'](_0x56cf7f),await _0x85e42c['data']['init'](_0x85e42c['config']['get']('initialData')||''),_0x85e42c['fire']('ready'),_0x85e42c;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class dt extends _0x1ffbe8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46fbc8){function _0x250f21(_0x59785e){return _0x59785e['map'](_0xcc0744=>String['fromCharCode'](_0xcc0744))['join']('');}super(_0x46fbc8),this['result']='end',_0x46fbc8[_0x250f21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x250f21([0x76,0x69,0x65,0x77])][_0x250f21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x250f21([0x61,0x75,0x74,0x6f]),_0x46fbc8[_0x250f21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x250f21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x250f21([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x250f21([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x250f21([0x6f,0x6b])});}}class ft extends _0x1ffbe8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x3ebb83){if(super(_0x3ebb83),!this['editor']['config']['get']('revisionHistory'))throw new _0x59f6e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1ac467=>this['_showRevisionViewer']({..._0x1ac467,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x26000c=>this['_closeRevisionViewer'](_0x26000c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x297c9c=>this['_restoreRevision'](_0x297c9c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x395a42){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x395a42;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1a78e3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1a78e3);}['getRevision'](_0x557d67){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x557d67);}['getRevisions'](_0xf9240d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xf9240d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x212089=this['editor'],_0xfc8108=_0x3eef66(_0x212089,d),_0x217cec=_0x212089['plugins']['get']('RevisionTracker'),_0x5f3cc9=_0x212089['plugins']['get']('Users')['users'];return _0xfc8108['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xfc8108['lazyRoots'],(_0xfc8108['plugins']['push'](dt,l,u,class extends _0x1ffbe8{static get['requires'](){return[l,'Users'];}['init'](){const _0x12c7c6=this['editor']['plugins']['get']('Users');for(const _0x35fbd0 of _0x5f3cc9)_0x35fbd0['isAnonymous']||_0x12c7c6['getUser'](_0x35fbd0['id'])||_0x12c7c6['addUser'](_0x35fbd0);const _0x234070=_0x217cec['repository']['getRevisions']();let _0x5f32b6=null;const _0x1aebdb=this['editor']['plugins']['get']('RevisionViewer');_0x1aebdb['adapter']=_0x217cec['adapter'],_0x1aebdb['bind']('isEnabled')['to'](_0x217cec),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x212089,'isReadOnly',_0x1ae3c6=>!_0x1ae3c6);for(const _0x42f609 of _0x234070){const _0x286c38=null===_0x42f609['creator'];if(_0x286c38&&_0x42f609['toVersion']===_0x42f609['fromVersion'])continue;const _0x2fc13e=_0x42f609['toJSON']();_0x1aebdb['addRevisionData'](_0x2fc13e,(_0x58626e,_0x1c8f2b,_0x428c27)=>{if(_0x286c38){if(_0x5f32b6)_0x5f32b6['_update'](_0x58626e,_0x1c8f2b);else{if(!_0x1c8f2b){const _0x259bcb=_0x428c27['toJSON']();_0x259bcb['id']=_0x2476e1(),_0x217cec['saveRevision'](_0x259bcb,_0x428c27['toVersion'])['then'](_0x549df3=>{_0x5f32b6=_0x549df3;});}}}else _0x42f609['_update'](_0x58626e,_0x1c8f2b);});}}},f),_0xfc8108);}['_enhanceShowRevisionViewerCallback'](){const _0x4c04f0=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5145a5=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4b3a84=this['editor']['plugins']['get']('Autosave');await _0x4b3a84['save']();}else await _0x5145a5['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2020c5=this['editor']['plugins']['get']('Dialog');_0x2020c5['isOpen']&&_0x2020c5['hide']();}const _0x20e6c5=this['_getRevisionViewerEditorConfig']();return _0x4c04f0(_0x20e6c5)['then'](_0x195fcf=>{return(this['_viewerEditor']=_0x195fcf,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'),_0x195fcf);})['catch'](_0x21fd0f=>(console['error'](_0x21fd0f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3814d8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3814d8(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x42e007=this['editor']['plugins']['get']('Annotations');_0x42e007['refreshVisibility'](),_0x42e007['refreshPositioning']();}})));}['_showRevisionViewer'](_0x32ad09){const _0x3d629e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1774d7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x208733=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x208733,_0x32ad09)['then'](_0x117ecb=>(_0x1774d7['style']['display']='block',_0x3d629e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x117ecb));}['_closeRevisionViewer'](_0x88906b){const _0x4d743e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4d743e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x88906b['destroy']();}async['_restoreRevision'](_0x9f816a){const _0x73fd0f=this['editor'],_0x2847ac=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1b71eb=_0x73fd0f['plugins']['get']('RevisionTracker'),_0x1afe2f=_0x73fd0f['plugins']['get']('RevisionHistoryUtils'),_0x4e21ba=_0x2847ac['repository']['getRevision'](_0x9f816a);let _0x1abd87,_0x58e464,_0x2776f9;try{await _0x1afe2f['loadRevisionData'](_0x4e21ba,this['adapter']),_0x1abd87=_0x1afe2f['getRevisionDocumentData'](_0x4e21ba),_0x58e464=_0x1afe2f['getRevisionRootsAttributes'](_0x4e21ba);}catch(_0x3a11bf){return void console['error'](_0x3a11bf);}_0x73fd0f['model']['change'](_0x4c74e9=>{for(const _0x28b2ae of Array['from'](_0x73fd0f['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4c74e9['removeMarker'](_0x28b2ae);}),_0x2847ac['isReady']=!0x1,_0x73fd0f['model']['enqueueChange'](_0x180914=>{_0x180914['setSelection'](null),_0x180914['removeSelectionAttribute'](_0x73fd0f['model']['document']['selection']['getAttributeKeys']());const _0x3d5117=Object['keys'](_0x1abd87);for(const _0x500bff of _0x73fd0f['model']['document']['roots'])'$graveyard'!=_0x500bff['rootName']&&_0x500bff['isAttached']()&&!_0x3d5117['includes'](_0x500bff['rootName'])&&_0x180914['detachRoot'](_0x500bff);for(const _0x539e6a of _0x3d5117){let _0x2f9e03=_0x73fd0f['model']['document']['getRoot'](_0x539e6a);_0x2f9e03&&_0x2f9e03['isAttached']()||(_0x2f9e03=_0x180914['addRoot'](_0x539e6a));const _0x68f210=_0x58e464[_0x539e6a],_0x2388b8=Object['keys'](_0x68f210),_0x33f3e0=_0x1abd87[_0x539e6a];for(const _0x2c928a of _0x2f9e03['getAttributeKeys']())_0x2388b8['includes'](_0x2c928a)||_0x180914['removeAttribute'](_0x2c928a,_0x2f9e03);for(const _0x2ffee3 of _0x2388b8)_0x180914['setAttribute'](_0x2ffee3,_0x58e464[_0x539e6a][_0x2ffee3],_0x2f9e03);_0x180914['remove'](_0x180914['createRangeIn'](_0x2f9e03)),_0x180914['insert'](_0x73fd0f['data']['parse'](_0x33f3e0,_0x2f9e03),_0x2f9e03,0x0);}});const _0x1478e3=R(_0x73fd0f['locale'],'Restored');if(_0x4e21ba['name'])_0x2776f9=-0x1==_0x4e21ba['name']['indexOf'](_0x1478e3)?_0x1478e3+':\x20'+_0x4e21ba['name']:_0x4e21ba['name'];else _0x2776f9=_0x1478e3+':\x20'+(_0x4e21ba['createdAt']['toLocaleDateString'](_0x73fd0f['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4e21ba['createdAt']['toLocaleTimeString'](_0x73fd0f['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1b71eb['saveRevision']({'name':_0x2776f9}),_0x2847ac['isReady']=!0x0,_0x73fd0f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{ct as RestoreRevisionCommand,I as Revision,ft as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ut as ShowChangeCommand};
|
|
29
|
+
dt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x2c2157){super(_0x2c2157),this['_revisionViewer']=_0x2c2157['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x16f63f=this['_revisionsRepository']['_revisions'],_0x4483df=this['_createRevisionActions'](),_0xb1b11b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x16f63f,_0x4483df,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',(_0x53dd90,_0x5450c6)=>{_0x5450c6['revisionViews']['on']('add',(_0x3d269e,_0x1137a1)=>{_0x1137a1['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)),_0xb1b11b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x30af65=this['_revisionsRepository']['getRevision'](0x0);if(_0x30af65){const _0x5199c5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x30af65['id']);this['_revisionViewer']['compare'](_0x30af65,_0x5199c5);}}['_handleRevisionSelected'](_0x446b90,_0x436d70){const _0x4fb5a5=this['_revisionsRepository']['getRevision'](_0x436d70['id']),_0x5e0f3d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4fb5a5['id']);this['_revisionViewer']['compare'](_0x4fb5a5,_0x5e0f3d);}['_handleRevisionSetName'](_0x292cfe,_0x351b3d){this['_revisionsRepository']['getRevision'](_0x351b3d['id'])['setName'](_0x351b3d['name']);}['_handleDiffChange'](_0x2eee0c,_0x5cd2b5,_0x2b9e44){const _0x239b96=this['_revisionsRepository']['getRevisionsInDiff'](_0x2b9e44);_0x239b96['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x239b96),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x239b96[0x0]));}['_createRevisionActions'](){const _0x23506e=this['editor'],_0x4e51dd=f['availableRevisionActions'],_0x43805c=_0x23506e['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x43805c['length'])return _0x43805c['map'](_0x450a3d=>{const _0x2b4a30='string'==typeof _0x450a3d?Object['assign']({},_0x4e51dd[_0x450a3d]):_0x450a3d;return _0x2b4a30['action']=_0x2b4a30['action']['bind'](this,_0x23506e),_0x2b4a30['isVisible']&&(_0x2b4a30['isVisible']=_0x2b4a30['isVisible']['bind'](this,_0x23506e)),_0x2b4a30;});}}function dt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4f13d5},_0x5a9ea9)=>{const _0xacb369=_0x4f13d5['get'](l),_0xf8101c=_0xacb369['repository'];let _0x45f388=_0xacb369['diff']['newRevisionId'],_0x4af2de=_0x5a9ea9['id'];_0xf8101c['getIndex'](_0x45f388)>_0xf8101c['getIndex'](_0x4af2de)&&([_0x45f388,_0x4af2de]=[_0x4af2de,_0x45f388]),_0xacb369['compare'](_0x45f388,_0x4af2de);},'isVisible':({plugins:_0x1f62a9},_0x1d8d73)=>{const _0x59abd8=_0x1f62a9['get'](l);return!(_0x59abd8['repository']['getRevisionsInDiff'](_0x59abd8['diff'])['length']>0x2)&&!_0x1d8d73['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4e61af,{id:_0x19787e})=>{_0x4e61af['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x19787e);},'isVisible':({plugins:_0x34d841},_0x221c5d)=>!!_0x34d841['get'](l)['repository']['getLaterVisibleRevision'](_0x221c5d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1aaf11},{id:_0x18e697,revisionNameView:_0x163384})=>{const _0x4b7267=_0x1aaf11['get'](l),_0x3d9427=_0x4b7267['repository']['getEarlierVisibleRevision'](_0x18e697);_0x4b7267['compare'](_0x18e697,_0x3d9427),_0x163384['focus'](),_0x163384['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1a05c0,_0x57c0fb){super(_0x1a05c0),this['_view']=_0x57c0fb,this['_toolbarConfig']=st(_0x1a05c0['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x2a18b0){const _0x30f48b=this['editor'],_0x9aacb3=this['view'],_0x315deb=_0x30f48b['editing']['view'],_0x16b0ae=_0x9aacb3['editable'],_0x3165be=_0x315deb['document']['getRoot']();_0x16b0ae['name']=_0x3165be['rootName'],_0x9aacb3['render']();const _0x54bc93=_0x16b0ae['element'];this['setEditableElement'](_0x16b0ae['name'],_0x54bc93),_0x9aacb3['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x315deb['attachDomRoot'](_0x54bc93),this['_elementReplacer']['replace'](_0x2a18b0,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x111820=this['view'],_0x3ca703=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3ca703['detachDomRoot'](_0x111820['editable']['name']),_0x111820['destroy']();}['_initToolbar'](){const _0x35c136=this['view'];_0x35c136['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x35c136['stickyPanel']['limiterElement']=_0x35c136['element'],_0x35c136['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x33cd00})=>_0x33cd00),_0x35c136['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x35c136['toolbar']);}}class ii extends _0x4944b7{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1d26af,_0x2b876a,_0x143415={}){super(_0x1d26af),this['stickyPanel']=new _0x1888b4(_0x1d26af),this['toolbar']=new _0x2f8aff(_0x1d26af,{'shouldGroupWhenFull':_0x143415['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x1d26af,_0x2b876a);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x3a8831(_0x25e56f){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x59b61b,_0x58f05f){super(_0x58f05f),this['sourceElement']=_0x59b61b,this['model']['document']['createRoot']();const _0x401c67=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x401c67);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5af0f8,_0x26b6fc){const _0x3ffa51=new this(_0x5af0f8,_0x26b6fc);return await _0x3ffa51['initPlugins'](),await _0x3ffa51['ui']['init'](_0x5af0f8),await _0x3ffa51['data']['init'](_0x3ffa51['config']['get']('initialData')||''),_0x3ffa51['fire']('ready'),_0x3ffa51;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ft extends _0x484656{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbd5df){function _0x2fdf61(_0x2c0a5d){return _0x2c0a5d['map'](_0x1e9fa1=>String['fromCharCode'](_0x1e9fa1))['join']('');}super(_0xbd5df),this['result']='end',_0xbd5df[_0x2fdf61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fdf61([0x76,0x69,0x65,0x77])][_0x2fdf61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fdf61([0x61,0x75,0x74,0x6f]),_0xbd5df[_0x2fdf61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2fdf61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fdf61([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2fdf61([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2fdf61([0x6f,0x6b])});}}class vt extends _0x484656{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x695553){if(super(_0x695553),!this['editor']['config']['get']('revisionHistory'))throw new _0x4febb9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x43a55e=>this['_showRevisionViewer']({..._0x43a55e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5f0490=>this['_closeRevisionViewer'](_0x5f0490)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5e0652=>this['_restoreRevision'](_0x5e0652)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3ce470){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3ce470;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3a2da7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3a2da7);}['getRevision'](_0xb770ef){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xb770ef);}['getRevisions'](_0x4ed727){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4ed727||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4f3674=this['editor'],_0x4a25a2=_0x58abbc(_0x4f3674,d),_0x540dc2=_0x4f3674['plugins']['get']('RevisionTracker'),_0x4b2d67=_0x4f3674['plugins']['get']('Users')['users'];return _0x4a25a2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a25a2['lazyRoots'],(_0x4a25a2['plugins']['push'](ft,l,u,class extends _0x484656{static get['requires'](){return[l,'Users'];}['init'](){const _0x36b6d2=this['editor']['plugins']['get']('Users');for(const _0xa65a14 of _0x4b2d67)_0xa65a14['isAnonymous']||_0x36b6d2['getUser'](_0xa65a14['id'])||_0x36b6d2['addUser'](_0xa65a14);const _0x222737=_0x540dc2['repository']['getRevisions']();let _0x4d7f66=null;const _0x19e5dc=this['editor']['plugins']['get']('RevisionViewer');_0x19e5dc['adapter']=_0x540dc2['adapter'],_0x19e5dc['bind']('isEnabled')['to'](_0x540dc2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4f3674,'isReadOnly',_0x2f6897=>!_0x2f6897);for(const _0x839b14 of _0x222737){const _0x3a794b=null===_0x839b14['creator'];if(_0x3a794b&&_0x839b14['toVersion']===_0x839b14['fromVersion'])continue;const _0x45d3ff=_0x839b14['toJSON']();_0x19e5dc['addRevisionData'](_0x45d3ff,(_0x84f99b,_0x4cea7f,_0x1559b8)=>{if(_0x3a794b){if(_0x4d7f66)_0x4d7f66['_update'](_0x84f99b,_0x4cea7f);else{if(!_0x4cea7f){const _0x11364f=_0x1559b8['toJSON']();_0x11364f['id']=_0x1acbd4(),_0x540dc2['saveRevision'](_0x11364f,_0x1559b8['toVersion'])['then'](_0x3c45a0=>{_0x4d7f66=_0x3c45a0;});}}}else _0x839b14['_update'](_0x84f99b,_0x4cea7f);});}}},f),_0x4a25a2);}['_enhanceShowRevisionViewerCallback'](){const _0x12e09e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2d0c3e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x406423=this['editor']['plugins']['get']('Autosave');await _0x406423['save']();}else await _0x2d0c3e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x321a5e=this['editor']['plugins']['get']('Dialog');_0x321a5e['isOpen']&&_0x321a5e['hide']();}const _0x4680f4=this['_getRevisionViewerEditorConfig']();return _0x12e09e(_0x4680f4)['then'](_0x13287a=>{return(this['_viewerEditor']=_0x13287a,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'),_0x13287a);})['catch'](_0xc176c0=>(console['error'](_0xc176c0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2a5312=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2a5312(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1f9cf9=this['editor']['plugins']['get']('Annotations');_0x1f9cf9['refreshVisibility'](),_0x1f9cf9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3f9bd3){const _0x55b25c=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x21c250=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x82cfa9=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x82cfa9,_0x3f9bd3)['then'](_0x2f1ab8=>(_0x21c250['style']['display']='block',_0x55b25c['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x2f1ab8));}['_closeRevisionViewer'](_0x46bde5){const _0x1c0281=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1c0281['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x46bde5['destroy']();}async['_restoreRevision'](_0x344201){const _0x2b52e0=this['editor'],_0x59790c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x27ac81=_0x2b52e0['plugins']['get']('RevisionTracker'),_0xae046f=_0x2b52e0['plugins']['get']('RevisionHistoryUtils'),_0x58084b=_0x59790c['repository']['getRevision'](_0x344201);let _0x21f704,_0x30125c,_0x5d2975;try{await _0xae046f['loadRevisionData'](_0x58084b,this['adapter']),_0x21f704=_0xae046f['getRevisionDocumentData'](_0x58084b),_0x30125c=_0xae046f['getRevisionRootsAttributes'](_0x58084b);}catch(_0x418d6f){return void console['error'](_0x418d6f);}_0x2b52e0['model']['change'](_0x5c49fc=>{for(const _0x2aead7 of Array['from'](_0x2b52e0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5c49fc['removeMarker'](_0x2aead7);}),_0x59790c['isReady']=!0x1,_0x2b52e0['model']['enqueueChange'](_0x2537d1=>{_0x2537d1['setSelection'](null),_0x2537d1['removeSelectionAttribute'](_0x2b52e0['model']['document']['selection']['getAttributeKeys']());const _0x364ee9=Object['keys'](_0x21f704);for(const _0x1783c9 of _0x2b52e0['model']['document']['roots'])'$graveyard'!=_0x1783c9['rootName']&&_0x1783c9['isAttached']()&&!_0x364ee9['includes'](_0x1783c9['rootName'])&&_0x2537d1['detachRoot'](_0x1783c9);for(const _0x51a6c8 of _0x364ee9){let _0x4d7ed1=_0x2b52e0['model']['document']['getRoot'](_0x51a6c8);_0x4d7ed1&&_0x4d7ed1['isAttached']()||(_0x4d7ed1=_0x2537d1['addRoot'](_0x51a6c8));const _0x2049cf=_0x30125c[_0x51a6c8],_0x712be=Object['keys'](_0x2049cf),_0x173aad=_0x21f704[_0x51a6c8];for(const _0x253eb6 of _0x4d7ed1['getAttributeKeys']())_0x712be['includes'](_0x253eb6)||_0x2537d1['removeAttribute'](_0x253eb6,_0x4d7ed1);for(const _0xbdeb0f of _0x712be)_0x2537d1['setAttribute'](_0xbdeb0f,_0x30125c[_0x51a6c8][_0xbdeb0f],_0x4d7ed1);_0x2537d1['remove'](_0x2537d1['createRangeIn'](_0x4d7ed1)),_0x2537d1['insert'](_0x2b52e0['data']['parse'](_0x173aad,_0x4d7ed1),_0x4d7ed1,0x0);}});const _0x48abd8=R(_0x2b52e0['locale'],'Restored');if(_0x58084b['name'])_0x5d2975=-0x1==_0x58084b['name']['indexOf'](_0x48abd8)?_0x48abd8+':\x20'+_0x58084b['name']:_0x58084b['name'];else _0x5d2975=_0x48abd8+':\x20'+(_0x58084b['createdAt']['toLocaleDateString'](_0x2b52e0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x58084b['createdAt']['toLocaleTimeString'](_0x2b52e0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x27ac81['saveRevision']({'name':_0x5d2975}),_0x59790c['isReady']=!0x0,_0x2b52e0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{ut as RestoreRevisionCommand,I as Revision,vt as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,lt as ShowChangeCommand};
|