@ckeditor/ckeditor5-revision-history 47.4.0-alpha.1 → 47.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +7 -7
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +12 -12
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0xb6d8a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5b5ae1){super(),this['id']=_0x5b5ae1['id']||_0x391c61(),this['creator']=_0x5b5ae1['creator']||null,this['authors']=_0x5b5ae1['authors']||[],this['diffData']=_0x5b5ae1['diffData']||null,this['toVersion']=_0x5b5ae1['toVersion']||0x0,this['fromVersion']=_0x5b5ae1['fromVersion']||0x0,this['set']('name',_0x5b5ae1['name']||''),this['set']('createdAt',_0x5b5ae1['createdAt']||new Date()),this['set']('attributes',_0x5b5ae1['attributes']||{});}['setName'](_0x4249c3){this['_update']({'name':_0x4249c3});}['setAttribute'](_0x2b4335,_0x2b6b41){const _0x30b201=_0x115d90(this['attributes']);_0x38753d(_0x30b201,_0x2b4335,_0x2b6b41),this['_update']({'attributes':_0x30b201});}['removeAttribute'](_0x3f444a){const _0x474a70=_0x115d90(this['attributes']);_0x2b39b2(_0x474a70,_0x3f444a),this['_update']({'attributes':_0x474a70});}['_update'](_0x42743f,_0x362a7d=!0x1){let _0x2592ca=!0x1;const _0x2ba90e={'id':this['id']},_0x239524=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1c8aa0 of _0x239524){const _0x29f24a=_0x42743f[_0x1c8aa0];void 0x0!==_0x29f24a&&_0x29f24a!==this[_0x1c8aa0]&&(this[_0x1c8aa0]=_0x29f24a,_0x2ba90e[_0x1c8aa0]=_0x29f24a,_0x2592ca=!0x0);}_0x2592ca&&(_0x2ba90e['authors']&&(_0x2ba90e['authorsIds']=_0x2ba90e['authors']['map'](_0x4401b6=>_0x4401b6['id']),delete _0x2ba90e['authors']),this['fire']('_update',_0x2ba90e,_0x362a7d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1b013a=>_0x1b013a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x439397{['_revisions'];static get['requires'](){return[_0x153f01];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x10567f){super(_0x10567f),this['_revisions']=new _0x480dd0();}['afterInit'](){!async function(_0x216252){const _0x4621c9=_0x12cff5([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x214e94=0xeb829,_0x152855=0x359e09b0,_0x28838b=0x359977e0^_0x152855,_0x3341c4=window[_0x12cff5([0x44,0x61,0x74,0x65])][_0x12cff5([0x6e,0x6f,0x77])](),_0x2627af=_0x216252[_0x12cff5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x495c99=new window[(_0x12cff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfed79e=>{_0x2627af[_0x12cff5([0x6f,0x6e,0x63,0x65])](_0x12cff5([0x72,0x65,0x61,0x64,0x79]),_0xfed79e);}),_0x22de97={[_0x12cff5([0x6b,0x74,0x79])]:_0x12cff5([0x45,0x43]),[_0x12cff5([0x75,0x73,0x65])]:_0x12cff5([0x73,0x69,0x67]),[_0x12cff5([0x63,0x72,0x76])]:_0x12cff5([0x50,0x2d,0x32,0x35,0x36]),[_0x12cff5([0x78])]:_0x12cff5([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]),[_0x12cff5([0x79])]:_0x12cff5([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]),[_0x12cff5([0x61,0x6c,0x67])]:_0x12cff5([0x45,0x53,0x32,0x35,0x36])},_0x72289c=_0x2627af[_0x12cff5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12cff5([0x67,0x65,0x74])](_0x12cff5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31bc8b(){let _0x3e12dc,_0x379e5f=null,_0x13d3cc=null;try{if(_0x72289c==_0x12cff5([0x47,0x50,0x4c]))return _0x12cff5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e12dc=_0x1d312c(),!_0x3e12dc)return _0x12cff5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e12dc[_0x12cff5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13d3cc=_0x374b43(_0x3e12dc[_0x12cff5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e12dc[_0x12cff5([0x6a,0x74,0x69])])),await _0x2f3e0f()?_0xebe958()?_0x10cdc2()?_0x12cff5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ba14c()?(_0x3e12dc[_0x12cff5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12cff5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x379e5f=_0x1094d0(_0x12cff5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c292b()):_0x12cff5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12cff5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12cff5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x12cff5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10cdc2(){const _0x41c438=[_0x12cff5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12cff5([0x74,0x72,0x69,0x61,0x6c])][_0x12cff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e12dc[_0x12cff5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3341c4/0x3e8:0xe10*_0x28838b;return _0x3e12dc[_0x12cff5([0x65,0x78,0x70])]<_0x41c438;}function _0xebe958(){const _0x44f31a=_0x3e12dc[_0x12cff5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x44f31a)return!0x1;if(_0x44f31a[_0x12cff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cff5([0x2a])))return!0x0;if(_0x44f31a[_0x12cff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cff5([0x52,0x48])))return!0x0;if(_0x44f31a[_0x12cff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cff5([0x52,0x52,0x48]))){if(_0x46a195())return!0x0;if(_0x2aa256()||_0x3325b4())return!0x0;}return!0x1;}function _0x1ba14c(){const _0x456ad6=_0x3e12dc[_0x12cff5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x456ad6||0x0==_0x456ad6[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a58d0}=new URL(window[_0x12cff5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x456ad6[_0x12cff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a58d0))return!0x0;const _0x57fbe1=_0x5a58d0[_0x12cff5([0x73,0x70,0x6c,0x69,0x74])](_0x12cff5([0x2e]));return _0x456ad6[_0x12cff5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45b619=>_0x45b619[_0x12cff5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cff5([0x2a])))[_0x12cff5([0x6d,0x61,0x70])](_0xa07847=>_0xa07847[_0x12cff5([0x73,0x70,0x6c,0x69,0x74])](_0x12cff5([0x2e])))[_0x12cff5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4672a9=>_0x4672a9[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x57fbe1[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12cff5([0x6d,0x61,0x70])](_0x59d2f7=>Array(_0x57fbe1[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59d2f7[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12cff5([0x66,0x69,0x6c,0x6c])](_0x59d2f7[0x0]===_0x12cff5([0x2a])?_0x12cff5([0x2a]):'')[_0x12cff5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59d2f7))[_0x12cff5([0x73,0x6f,0x6d,0x65])](_0x151ebf=>_0x57fbe1[_0x12cff5([0x65,0x76,0x65,0x72,0x79])]((_0x233d3e,_0xe405ec)=>_0x151ebf[_0xe405ec]===_0x233d3e||_0x151ebf[_0xe405ec]===_0x12cff5([0x2a])));}function _0x4c292b(){return _0x379e5f&&_0x13d3cc?new window[(_0x12cff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c2561,_0xb6fc1a)=>{_0x379e5f[_0x12cff5([0x74,0x68,0x65,0x6e])](_0x5c2561,_0xb6fc1a),_0x13d3cc[_0x12cff5([0x74,0x68,0x65,0x6e])](_0x133f83=>{_0x133f83!=_0x12cff5([0x56,0x61,0x6c,0x69,0x64])&&_0x5c2561(_0x133f83);},_0xb6fc1a);}):_0x379e5f||_0x13d3cc||_0x12cff5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x374b43(_0x5e49f4,_0x5dea05){return new window[(_0x12cff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c797=>{if(_0x459b01())return _0x4c797(_0x12cff5([0x56,0x61,0x6c,0x69,0x64]));_0x399997(),_0x2627af[_0x12cff5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12cff5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b5e07=!0x1;const _0x18799a=_0x391c61();function _0x3de778(_0x189fb1){return!!_0x189fb1&&(typeof _0x189fb1===_0x12cff5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x189fb1===_0x12cff5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x189fb1[_0x12cff5([0x74,0x68,0x65,0x6e])]===_0x12cff5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x189fb1[_0x12cff5([0x63,0x61,0x74,0x63,0x68])]===_0x12cff5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x312858(_0x492df2){_0x2116cb(_0x492df2)[_0x12cff5([0x74,0x68,0x65,0x6e])](_0x1f332f=>{if(!_0x1f332f||_0x1f332f[_0x12cff5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12cff5([0x6f,0x6b]))return _0x12cff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fa4fa(_0x43e355(_0x18799a+_0x5dea05))!=_0x1f332f[_0x12cff5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12cff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12cff5([0x56,0x61,0x6c,0x69,0x64]);})[_0x12cff5([0x74,0x68,0x65,0x6e])](_0x21c628=>(_0x64977b(),_0x21c628),()=>{const _0xc1a718=_0x5be6ee();return null==_0xc1a718?(_0x64977b(),_0x12cff5([0x56,0x61,0x6c,0x69,0x64])):_0x12cff5(_0x3341c4-_0xc1a718>(0x11928db0^_0x152855)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12cff5([0x74,0x68,0x65,0x6e])](_0x4c797)[_0x12cff5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c797(_0x12cff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23a190=0x35a8e730^_0x152855;function _0x64977b(){const _0x486545=_0x12cff5([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fa4fa(_0x43e355(_0x5e49f4)),_0x5bae66=_0x455485(_0x3fa4fa(window[_0x12cff5([0x4d,0x61,0x74,0x68])][_0x12cff5([0x63,0x65,0x69,0x6c])](_0x3341c4/_0x23a190)));window[_0x12cff5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12cff5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x486545,_0x5bae66);}function _0x5be6ee(){const _0x31d4f5=_0x12cff5([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fa4fa(_0x43e355(_0x5e49f4)),_0x4df187=window[_0x12cff5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12cff5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31d4f5);return _0x4df187?window[_0x12cff5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x455485(_0x4df187),0x10)*_0x23a190:null;}function _0x2116cb(_0x117edf){return new window[(_0x12cff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b371c,_0x3aeed0)=>{_0x117edf[_0x12cff5([0x74,0x68,0x65,0x6e])](_0x5b371c,_0x3aeed0),window[_0x12cff5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3aeed0,0x359fdd70^_0x152855);});}}_0x2627af[_0x12cff5([0x6f,0x6e])](_0x12cff5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b16c7,_0x92b29e)=>{if(_0x92b29e[0x0]!=_0x5e49f4)return _0x4c797(_0x12cff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x92b29e[0x1]={..._0x92b29e[0x1],[_0x12cff5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18799a};},{[_0x12cff5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12cff5([0x68,0x69,0x67,0x68])}),_0x2627af[_0x12cff5([0x6f,0x6e])](_0x12cff5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58baa0=>{_0x3de778(_0x58baa0[_0x12cff5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b5e07=!0x0,_0x312858(_0x58baa0[_0x12cff5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12cff5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12cff5([0x6c,0x6f,0x77])}),_0x495c99[_0x12cff5([0x74,0x68,0x65,0x6e])](()=>{_0x5b5e07||_0x4c797(_0x12cff5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x459b01(){return _0x2627af[_0x12cff5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12cff5([0x76,0x69,0x65,0x77])][_0x12cff5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12cff5([0x61,0x75,0x74,0x6f]);}function _0x399997(){_0x2627af[_0x12cff5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12cff5([0x76,0x69,0x65,0x77])][_0x12cff5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12cff5([0x61,0x75,0x74,0x6f]);}}function _0x1094d0(_0x203b41){const _0x210512=[new window[(_0x12cff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329851=>setTimeout(_0x329851,0x3597377c^_0x152855)),_0x495c99[_0x12cff5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12cff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x437ffb=>{const _0x453da7=0x359e09b7^_0x152855,_0x1fdc3=_0x216252[_0x12cff5([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x399483(){_0x1fdc3[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x453da7&&_0x437ffb();}_0x399483(),_0x1fdc3[_0x12cff5([0x6f,0x6e])](_0x12cff5([0x61,0x64,0x64]),_0x399483);})),new window[(_0x12cff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b870a=>{function _0x3abecc(){for(const _0x33f3d9 in window)if(window[_0x12cff5([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x12cff5([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x33f3d9))&&window[_0x33f3d9]==_0x214e94)return _0x3b870a();_0x2627af[_0x12cff5([0x73,0x74,0x61,0x74,0x65])]!=_0x12cff5([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x12cff5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3abecc,0x359e1a38^_0x152855);}_0xe573be(_0x12cff5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3abecc();})];return window[_0x12cff5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12cff5([0x72,0x61,0x63,0x65])](_0x210512)[_0x12cff5([0x74,0x68,0x65,0x6e])](()=>_0x203b41);}async function _0x421b34(){if(await _0x495c99,_0xe573be(_0x12cff5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x524402=_0x216252[_0x12cff5([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x27090e=_0x216252[_0x12cff5([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])](_0x524402[_0x12cff5([0x69,0x64])]),_0x2b2679=_0x5501d7(_0x12cff5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2b2679[_0x12cff5([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x524402['id'],_0x27090e?_0x27090e['id']:null,!0x0),_0x2b2679[_0x12cff5([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x12cff5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2b2679[_0x12cff5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2b2679[_0x12cff5([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2a266a,void(_0x2b2679[_0x12cff5([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2a266a);}if(_0xe573be(_0x12cff5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x10d372=_0x5501d7(_0x12cff5([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x10d372[_0x12cff5([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x12cff5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x10d372[_0x12cff5([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x10d372[_0x12cff5([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2a266a,_0x10d372[_0x12cff5([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2a266a;}_0x2627af[_0x12cff5([0x6d,0x6f,0x64,0x65,0x6c])][_0x12cff5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a266a,_0x2627af[_0x12cff5([0x6d,0x6f,0x64,0x65,0x6c])][_0x12cff5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a266a,_0x2627af[_0x12cff5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12cff5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46a195(){return _0xe573be(_0x12cff5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5501d7(_0x12cff5([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x12cff5([0x73,0x74,0x61,0x74,0x65])]==_0x12cff5([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2aa256(){return _0xe573be(_0x12cff5([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 _0x3325b4(){return _0xe573be(_0x12cff5([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4885ee(_0xdf4dff){const _0x5ee72c=_0xa46b06();_0x2627af[_0x5ee72c]=_0x12cff5([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])+_0xdf4dff,_0xdf4dff[_0x12cff5([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x12cff5([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xa46b06()]=_0x214e94),_0xdf4dff!=_0x12cff5([0x56,0x61,0x6c,0x69,0x64])&&_0x421b34();}function _0xa46b06(){const _0x32c66d=window[_0x12cff5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12cff5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12cff5([0x6e,0x6f,0x77])]())[_0x12cff5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12cff5([0x2e]),'');let _0x2954b8=_0x12cff5([0x76]);for(let _0x3753d9=0x0;_0x3753d9<_0x32c66d[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3753d9+=0x2){let _0x577f6c=window[_0x12cff5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32c66d[_0x12cff5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3753d9,_0x3753d9+0x2));_0x577f6c>=_0x4621c9[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x577f6c-=_0x4621c9[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2954b8+=_0x4621c9[_0x577f6c];}return _0x2954b8;}function _0x1d312c(){const _0x1b6f58=_0x72289c[_0x12cff5([0x73,0x70,0x6c,0x69,0x74])](_0x12cff5([0x2e]));if(0x3!=_0x1b6f58[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52b395(_0x1b6f58[0x1]);function _0x52b395(_0x10c844){const _0x25262b=_0x46b71e(_0x10c844);return _0x25262b&&_0x27959c()?_0x25262b:null;function _0x27959c(){const _0x51eab8=_0x25262b[_0x12cff5([0x6a,0x74,0x69])],_0xb25d5a=window[_0x12cff5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51eab8[_0x12cff5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51eab8[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a8e93={..._0x25262b,[_0x12cff5([0x6a,0x74,0x69])]:_0x51eab8[_0x12cff5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51eab8[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a8e93[_0x12cff5([0x76,0x63])],_0x43e355(_0x4a8e93)==_0xb25d5a;}}}async function _0x2f3e0f(){let _0x44e84a=!0x0;try{const _0x365b09=_0x72289c[_0x12cff5([0x73,0x70,0x6c,0x69,0x74])](_0x12cff5([0x2e])),[_0x1d30f3,_0x395423,_0x3945d9]=_0x365b09;return _0x769a43(_0x1d30f3),await _0x38b510(_0x1d30f3,_0x395423,_0x3945d9),_0x44e84a;}catch{return!0x1;}function _0x769a43(_0x4df963){const _0x254583=_0x46b71e(_0x4df963);_0x254583&&_0x254583[_0x12cff5([0x61,0x6c,0x67])]==_0x12cff5([0x45,0x53,0x32,0x35,0x36])||(_0x44e84a=!0x1);}async function _0x38b510(_0x4951b6,_0x489bfd,_0x30d05b){const _0x226912=window[_0x12cff5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12cff5([0x66,0x72,0x6f,0x6d])](_0x1b5b5c(_0x30d05b),_0x1b475c=>_0x1b475c[_0x12cff5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x265c7d=new window[(_0x12cff5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12cff5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4951b6+_0x12cff5([0x2e])+_0x489bfd),_0x5e4a4c=window[_0x12cff5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12cff5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e4a4c)return;const _0xd3a0eb=await _0x5e4a4c[_0x12cff5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12cff5([0x6a,0x77,0x6b]),_0x22de97,{[_0x12cff5([0x6e,0x61,0x6d,0x65])]:_0x12cff5([0x45,0x43,0x44,0x53,0x41]),[_0x12cff5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12cff5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12cff5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e4a4c[_0x12cff5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12cff5([0x6e,0x61,0x6d,0x65])]:_0x12cff5([0x45,0x43,0x44,0x53,0x41]),[_0x12cff5([0x68,0x61,0x73,0x68])]:{[_0x12cff5([0x6e,0x61,0x6d,0x65])]:_0x12cff5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd3a0eb,_0x226912,_0x265c7d)||(_0x44e84a=!0x1);}}function _0x46b71e(_0x27b8d8){return _0x27b8d8[_0x12cff5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12cff5([0x65,0x79]))?JSON[_0x12cff5([0x70,0x61,0x72,0x73,0x65])](_0x1b5b5c(_0x27b8d8)):null;}function _0x1b5b5c(_0x1a833e){return window[_0x12cff5([0x61,0x74,0x6f,0x62])](_0x1a833e[_0x12cff5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12cff5([0x2b]))[_0x12cff5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12cff5([0x2f])));}function _0x43e355(_0x2073d3){let _0x2950b2=0x1505;function _0x2db645(_0x78fea3){for(let _0x24d22f=0x0;_0x24d22f<_0x78fea3[_0x12cff5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24d22f++){const _0x55fc68=_0x78fea3[_0x12cff5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24d22f);_0x2950b2=(_0x2950b2<<0x5)+_0x2950b2+_0x55fc68,_0x2950b2&=_0x2950b2;}}function _0x1cf543(_0x419e8b){Array[_0x12cff5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x419e8b)?_0x419e8b[_0x12cff5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1cf543):_0x419e8b&&typeof _0x419e8b==_0x12cff5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12cff5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x419e8b)[_0x12cff5([0x73,0x6f,0x72,0x74])]()[_0x12cff5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46c351,_0x282dcd])=>{_0x2db645(_0x46c351),_0x1cf543(_0x282dcd);}):_0x2db645(window[_0x12cff5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x419e8b));}return _0x1cf543(_0x2073d3),_0x2950b2>>>0x0;}function _0x3fa4fa(_0x18bcf4){return _0x18bcf4[_0x12cff5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12cff5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12cff5([0x30]));}function _0x455485(_0xb97540){return _0xb97540[_0x12cff5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12cff5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12cff5([0x6a,0x6f,0x69,0x6e])]('');}function _0xe573be(_0xbd413e){return _0x2627af[_0x12cff5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12cff5([0x68,0x61,0x73])](_0xbd413e);}function _0x5501d7(_0x447724){return _0x2627af[_0x12cff5([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12cff5([0x67,0x65,0x74])](_0x447724);}function _0x2a266a(){}function _0x12cff5(_0x469795){return _0x469795['map'](_0x51c409=>String['fromCharCode'](_0x51c409))['join']('');}_0x4885ee(await _0x31bc8b());}(this);}['createRevision'](_0x3a2815){const _0x4e0da6=this['editor']['plugins']['get']('Users');return new I({'id':_0x3a2815['id'],'name':_0x3a2815['name'],'creator':_0x3a2815['creatorId']?_0x4e0da6['getUser'](_0x3a2815['creatorId']):null,'diffData':_0x3a2815['diffData']||_0x3a2815['data'],'authors':_0x3a2815['authorsIds']['map'](_0x3f1df1=>_0x4e0da6['getUser'](_0x3f1df1)),'createdAt':new Date(_0x3a2815['createdAt']),'attributes':_0x3a2815['attributes'],'fromVersion':_0x3a2815['fromVersion'],'toVersion':_0x3a2815['toVersion']});}['addRevision'](_0x191ba3,_0x2a49dc=0x0){this['_revisions']['add'](_0x191ba3,_0x2a49dc);}['getRevision'](_0x50e68e){return this['_revisions']['get'](_0x50e68e);}['getRevisions'](_0x18e63c={'toJSON':!0x1}){const _0x3d495d=Array['from'](this['_revisions']);return _0x3d495d['reverse'](),_0x18e63c['toJSON']?_0x3d495d['map'](_0x3de661=>_0x3de661['toJSON']()):_0x3d495d;}['getIndex'](_0x4f6aba){return this['_revisions']['getIndex'](_0x4f6aba);}['getEarlierVisibleRevision'](_0x5822fb){const [,_0x504ddd]=this['getRevisionsIterator'](_0x5822fb,{'direction':'earlier'});return _0x504ddd;}['getLaterVisibleRevision'](_0x38aa97){const [,_0x4ab346]=this['getRevisionsIterator'](_0x38aa97,{'direction':'later'});return _0x4ab346;}['getRevisionsInDiff'](_0x5a9a58){const _0x48dc5f=[];for(const _0x498b8f of this['getRevisionsIterator'](_0x5a9a58['newRevisionId']))if(_0x48dc5f['push'](_0x498b8f),_0x498b8f['id']===_0x5a9a58['oldRevisionId'])break;return _0x48dc5f;}*['getRevisionsIterator'](_0x2d826b,{direction:_0x19634d='earlier',filter:_0x289d31=()=>!0x0}={}){const _0x5c343b='earlier'===_0x19634d?0x1:-0x1;let _0x290137=this['_revisions']['get'](_0x2d826b),_0x498967=this['getIndex'](_0x290137);for(yield _0x290137;_0x290137;){if(_0x498967+=_0x5c343b,_0x290137=this['getRevision'](_0x498967),!_0x290137)return;_0x289d31(_0x290137)&&(yield _0x290137);}}}class $ extends _0x439397{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0xc04067,'c'],[_0x27f1be,'a'],[_0x18bbe4,'e'],[_0x362490,'r'],[_0xf8962f,'u']]);['_typeCharToViewClass']=new Map([['c',_0xc04067],['a',_0x27f1be],['e',_0x18bbe4],['r',_0x362490],['u',_0xf8962f]]);async['loadRevisionData'](_0x8f27f7,_0xcfcc62){if(_0x8f27f7['diffData']||!_0xcfcc62)return;const _0x2e7d4a=this['editor']['config']['get']('collaboration.channelId'),_0x236422=await _0xcfcc62['getRevision']({'channelId':_0x2e7d4a,'revisionId':_0x8f27f7['id']});_0x8f27f7['diffData']=_0x236422['diffData'];}['getRevisionDocumentData'](_0x227053){const _0x5ce4f6={};for(const _0x322b69 in _0x227053['diffData']){if(_0x227053['diffData'][_0x322b69]['attachChange']&&!_0x227053['diffData'][_0x322b69]['attachChange']['isAttached'])continue;const _0x454ae3=this['_removeRevisionMarkers'](JSON['parse'](_0x227053['diffData'][_0x322b69]['insertions'])),_0x5aa4e5=this['editor']['editing']['view']['document'],_0x6722c4=new _0x3581a6(_0x5aa4e5,_0x454ae3['map'](_0x52d324=>this['_getViewFromDiffObj'](_0x52d324,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5ce4f6[_0x322b69]=this['editor']['data']['processor']['toData'](_0x6722c4),this['editor']['data']['processor']['useFillerType']('default');}return _0x5ce4f6;}['getRevisionRootsAttributes'](_0x159df3){const _0x460a4a={};for(const _0x5719b9 in _0x159df3['diffData'])_0x159df3['diffData'][_0x5719b9]['attachChange']&&!_0x159df3['diffData'][_0x5719b9]['attachChange']['isAttached']||(_0x460a4a[_0x5719b9]=_0x159df3['diffData'][_0x5719b9]['attributesAfter']||{});return _0x460a4a;}['_getTypeCharForViewElement'](_0x417e6c){return this['_viewClassToTypeChar']['get'](_0x417e6c['constructor']);}['_getViewFromDiffObj'](_0x185616,_0x55b5a7){const _0x2cabaf=this['editor']['editing']['view']['document'];if('string'==typeof _0x185616)return new _0x398fcf(_0x2cabaf,_0x185616);{let _0x53363a,_0x522c21;_0x522c21='u'==_0x185616['type']||'r'==_0x185616['type']?[]:_0x185616['children']['map'](_0xb7c90=>this['_getViewFromDiffObj'](_0xb7c90,_0x55b5a7));const _0x8d84a7=this['_typeCharToViewClass']['get'](_0x185616['type'])||_0x12e4e5,_0x580e88=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x53363a=new _0x8d84a7(_0x2cabaf,_0x185616['name'],_0x185616['attributes'],_0x522c21),'u'==_0x185616['type']&&_0x185616['children'][0x0]){const _0x286cc8=_0x185616['children'][0x0];if(_0x53363a['render']=function(_0x262ab0){const _0x1d439a=_0x262ab0['createElement']('div');return _0x1d439a['innerHTML']=_0x286cc8,_0x1d439a['childNodes'][0x0];},_0x55b5a7){const _0x148336=new _0x3581a6(_0x2cabaf);_0x148336['_appendChild'](_0x53363a);const _0x33dd87=Array['from'](_0x580e88['viewChildrenToDom'](_0x148336,{'bind':!0x1})),_0x26b815=_0x580e88['domDocument']['createElement']('div');_0x26b815['append'](..._0x33dd87),_0x53363a=Array['from'](_0x580e88['domChildrenToView'](_0x26b815))[0x0];}}else{if('r'==_0x185616['type']&&_0x185616['children'][0x0]){const _0x2df719=_0x185616['children'][0x0];if(_0x53363a['render']=function(_0x52a68a){_0x52a68a['innerHTML']=_0x2df719;},_0x55b5a7){const _0x51e7a6=new _0x3581a6(_0x2cabaf);_0x51e7a6['_appendChild'](_0x53363a);const _0x2e2eab=Array['from'](_0x580e88['viewChildrenToDom'](_0x51e7a6,{'bind':!0x1})),_0x5992e1=_0x580e88['domDocument']['createElement']('div');_0x5992e1['append'](..._0x2e2eab);const _0x1a983a=Array['from'](_0x580e88['domChildrenToView'](_0x5992e1));_0x1a983a['length']>0x1?_0x53363a['_appendChild'](_0x1a983a):_0x53363a=_0x1a983a[0x0];}}}if(_0x185616['customProperties']){for(const [_0x3ebd6c,_0x418203]of _0x185616['customProperties'])_0x53363a['_setCustomProperty'](_0x3ebd6c,_0x418203);}const _0x4121d9=void 0x0===_0x185616['fillerOffset']?null:_0x185616['fillerOffset'];return null!==_0x4121d9&&(_0x53363a['getFillerOffset']=()=>_0x4121d9),_0x53363a;}}['_makeModelFromViewString'](_0x1042e5){const _0x1ffa21=JSON['parse'](_0x1042e5),_0x1f503f=this['editor']['editing']['view']['document'],_0x36fbc6=new _0x3581a6(_0x1f503f,_0x1ffa21['map'](_0x565d89=>this['_getViewFromDiffObj'](_0x565d89,!0x0)));return this['editor']['data']['toModel'](_0x36fbc6);}['_removeRevisionMarkers'](_0x1960f4){return(_0x1960f4=_0x1960f4['filter'](_0x3ba39a=>!_0x3ba39a['name']||'revision-start'!==_0x3ba39a['name']&&'revision-end'!==_0x3ba39a['name']))['forEach'](_0x3974b4=>{'string'!=typeof _0x3974b4&&(_0x3974b4['children']=this['_removeRevisionMarkers'](_0x3974b4['children']),_0x3974b4['attributes']=_0x3974b4['attributes']['filter'](_0x55a6f6=>!_0x55a6f6[0x0]['startsWith']('data-revision-')));}),_0x1960f4;}}function m(_0x382954,_0x771302,_0xc4c565){const t=_0x382954['t'];switch(_0x771302){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'},_0xc4c565);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xc4c565);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 _0x439397{['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[_0x153f01,S,$,_0x3a0f3e];}constructor(_0x485b2e){super(_0x485b2e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x35214b=_0x391c61();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x35214b},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 _0x1d065b=this['repository']['getRevision'](0x0),_0x5f1e03=_0x1d065b&&null===_0x1d065b['creator']?_0x1d065b:null;if(this['_continueCurrentRevision']=!!_0x5f1e03&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1a1551=this['_source']['getCurrentRevisionId'](),_0x30931f=this['repository']['getRevision'](_0x1a1551);if(_0x30931f)this['_startingVersion']=_0x30931f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1926d0=this['_source']['history']['_operations']['find'](_0x1ba9c7=>!_0x1ba9c7['_isInit']),_0x245633=_0x1926d0?_0x1926d0['baseVersion']:this['_source']['history']['version'];_0x1d065b?(_0x1d065b['toVersion']<_0x245633&&_0x1d065b['_update']({'toVersion':_0x245633}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5f1e03['id'],this['_startingVersion']=_0x5f1e03['fromVersion']):(this['_startingVersion']=_0x1d065b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x245633,this['_continueCurrentRevision']=!0x1);}}else _0x5f1e03&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5f1e03['toVersion'],this['editor']['model']['document']['history']['version']),_0x5f1e03['fromVersion']===_0x5f1e03['toVersion']?(0x0!==_0x5f1e03['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f1e03['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f1e03['id'],this['_startingVersion']=_0x5f1e03['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',_0x162953=>!_0x162953),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ef85d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34bbd7;for(const _0x128eda in _0x4ef85d){const _0x2494c7=_0x128eda,_0x3bc04b=_0x4ef85d[_0x2494c7];if('revisionHistoryLicenseKeyValid'==_0x3bc04b||'revisionHistoryLicenseKeyInvalid'==_0x3bc04b||'revisionHistoryLicenseKeyExpired'==_0x3bc04b||'revisionHistoryLicenseKeyDomainLimit'==_0x3bc04b||'revisionHistoryLicenseKeyNotAllowed'==_0x3bc04b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3bc04b||'revisionHistoryLicenseKeyUsageLimit'==_0x3bc04b){delete _0x4ef85d[_0x2494c7],_0x34bbd7=_0x3bc04b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x34bbd7&&_0x4ef85d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x34bbd7&&_0x4ef85d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x34bbd7&&_0x4ef85d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x34bbd7&&_0x4ef85d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x34bbd7&&_0x4ef85d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x34bbd7&&_0x4ef85d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x39a679=this['repository']['getRevision'](0x0),_0xcdfe7a=await this['getRevisionDocumentData'](_0x39a679),_0x33675d=await this['getRevisionRootsAttributes'](_0x39a679);this['_replaceEditorDataWithRevisionData'](_0xcdfe7a,_0x33675d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x34ad17){this['_source']=_0x34ad17;}async['update'](){const _0x985765=await this['_source']['getLatestVersion']();if(_0x985765>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1c1e62=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x985765});_0x1c1e62['authors']=_0x1c1e62['authorsIds']['map'](_0x3d1d2d=>this['editor']['plugins']['get']('Users')['getUser'](_0x3d1d2d)),this['currentRevision']['_update'](_0x1c1e62);}}async['saveRevision'](_0x9056aa={},_0x52c283=null){const _0x3eea76=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x52c283>this['currentRevision']['toVersion']&&(_0x52c283=null),null===_0x52c283&&(_0x52c283=await this['_source']['getLatestVersion']());const _0x2352f8=this['_getFromVersion'](_0x52c283),_0x90bb22=this['buildRevisionData']({'from':_0x2352f8,'to':_0x52c283});if(this['currentRevision']['toVersion']<_0x52c283){const _0x1ae1fe=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x52c283,'to':_0x52c283});_0x1ae1fe['authors']=[],_0x1ae1fe['authorsIds']=[],_0x1ae1fe['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1ae1fe,!0x0),delete _0x1ae1fe['authors'],_0x3eea76['push'](_0x1ae1fe);}_0x9056aa['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x9056aa['name']=_0x9056aa['name']||null,_0x9056aa['id']=_0x9056aa['id']||_0x391c61(),_0x9056aa={..._0x9056aa,..._0x90bb22};const _0x5951f3=this['addRevisionData'](_0x9056aa);_0x3eea76['push'](_0x9056aa);const _0xbd060b=this['repository']['getIndex'](_0x5951f3);if(0x0!==_0xbd060b){const _0x2edcf2=this['repository']['getRevision'](_0xbd060b-0x1);if(_0x2edcf2['fromVersion']!==_0x52c283){const _0x1f4040=this['_revisionDataBuilder']['getData'](_0x52c283,_0x2edcf2['toVersion']),_0x2c18a5={'id':_0x2edcf2['id'],'diffData':_0x1f4040['diffData'],'authorsIds':_0x1f4040['authorsIds'],'authors':_0x1f4040['authorsIds']['map'](_0x4cf634=>this['editor']['plugins']['get']('Users')['getUser'](_0x4cf634)),'fromVersion':_0x52c283};_0x2edcf2===this['currentRevision']&&(_0x2c18a5['createdAt']=new Date(_0x9056aa['createdAt']['getTime']()+0xa)),_0x2edcf2['_update'](_0x2c18a5,!0x0),delete _0x2c18a5['authors'],_0x3eea76['push'](_0x2c18a5);}}if(this['adapter']){for(const _0x282522 of _0x3eea76)this['_bufferUpdate'](_0x282522['id'],_0x282522,!0x0);this['sendBufferedUpdates']();}return _0x5951f3;}['addRevisionData'](_0xbb9aa){const _0xaee615=this['repository']['createRevision'](_0xbb9aa);return this['adapter']&&_0xaee615['on']('_update',(_0x3a07a2,_0xb2bbf3,_0x2025a9)=>{_0x2025a9||(this['_bufferUpdate'](_0xb2bbf3['id'],_0xb2bbf3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xaee615,this['_findInsertionIndex'](_0xaee615)),_0xaee615;}async['getRevisionDocumentData'](_0x4cd6c1){return await this['_utils']['loadRevisionData'](_0x4cd6c1,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4cd6c1);}async['getRevisionRootsAttributes'](_0x104d37){return await this['_utils']['loadRevisionData'](_0x104d37,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x104d37);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x43696a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5778a6=0x0;_0x5778a6<_0x43696a['length'];_0x5778a6++){const _0xb75c8c=_0x43696a[_0x5778a6];let _0x4c7bce=!0x1;for(const _0x5b7b7f of Object['keys'](_0xb75c8c))void 0x0===_0xb75c8c[_0x5b7b7f]?delete _0xb75c8c[_0x5b7b7f]:'id'!==_0x5b7b7f&&(_0x4c7bce=!0x0);_0x4c7bce||(_0x43696a[_0x5778a6]=null);}if(_0x43696a=_0x43696a['filter'](_0x4e90cb=>null!==_0x4e90cb),!_0x43696a['length'])return;for(let _0x4a5301=0x0;_0x4a5301<_0x43696a['length'];_0x4a5301++){const _0x34e232=_0x43696a[_0x4a5301];void 0x0!==_0x34e232['fromVersion']&&void 0x0===_0x34e232['toVersion']&&(_0x34e232['toVersion']=this['repository']['getRevision'](_0x34e232['id'])['toVersion']),void 0x0!==_0x34e232['toVersion']&&void 0x0===_0x34e232['fromVersion']&&(_0x34e232['fromVersion']=this['repository']['getRevision'](_0x34e232['id'])['fromVersion']);}const _0x1e4dfc=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x43696a,_0x1e4dfc)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x51f4dd=>{if(_0x51f4dd){for(const _0x4beb2d of _0x51f4dd)this['setRevisionData']({'id':_0x4beb2d['id'],'createdAt':_0x4beb2d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x47f14a=null,from:_0x3960f6=null,to:_0x406c08=null}){_0x3960f6=null!==_0x3960f6?_0x3960f6:_0x47f14a['fromVersion'],_0x406c08=null!==_0x406c08?_0x406c08:_0x47f14a['toVersion'];const _0x4b4f9e=this['_revisionDataBuilder']['getData'](_0x3960f6,_0x406c08),_0x477ec4={'diffData':_0x4b4f9e['diffData'],'authorsIds':_0x4b4f9e['authorsIds'],'fromVersion':_0x3960f6,'toVersion':_0x406c08};if(!_0x47f14a||_0x406c08!==_0x47f14a['toVersion']){const _0x25d206=_0x406c08-0x1,_0x285c9b=this['_source']['history']['getOperation'](_0x25d206);_0x477ec4['createdAt']=_0x285c9b&&_0x285c9b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3960f6===this['_loadedStateData']['fromVersion']){for(const _0x3c4e0d of this['_loadedStateData']['authors'])_0x477ec4['authorsIds']['includes'](_0x3c4e0d['id'])||_0x477ec4['authorsIds']['push'](_0x3c4e0d['id']);}return _0x477ec4;}['_bufferUpdate'](_0x3c5a1a,_0xd6f2fd,_0x105537){if(this['_bufferedUpdates']['has'](_0x3c5a1a)){const _0xeede0c=this['_bufferedUpdates']['get'](_0x3c5a1a);_0xd6f2fd=_0x105537?{..._0xeede0c,..._0xd6f2fd}:{..._0xd6f2fd,..._0xeede0c};}this['_bufferedUpdates']['set'](_0x3c5a1a,_0xd6f2fd);}['setRevisionData'](_0xd35d5d){const _0x2cc8ac=this['repository']['getRevision'](_0xd35d5d['id']);if(_0xd35d5d['createdAt']&&(_0xd35d5d['createdAt']=new Date(_0xd35d5d['createdAt'])),_0xd35d5d['authorsIds']){const _0x3bc6af=this['editor']['plugins']['get']('Users');_0xd35d5d['authors']=_0xd35d5d['authorsIds']['map'](_0x4c65cf=>_0x3bc6af['getUser'](_0x4c65cf));}_0x2cc8ac['_update'](_0xd35d5d,!0x0);}['_createInitialRevision'](_0x308d75){const _0x5b7e37=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5b7e37)this['_initialRevisionId']=_0x5b7e37['id'];else{const _0x34d8f5=!this['editor']['model']['document']['roots']['find'](_0x3de80a=>this['editor']['model']['hasContent'](_0x3de80a)),_0x5dce7a=this['editor']['plugins']['get']('Users')['me']['id'],_0x5bef6d=m(this['editor']['locale'],_0x34d8f5?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x308d75,'to':_0x308d75,'id':this['_initialRevisionId'],'name':_0x5bef6d,'creatorId':_0x5dce7a});}}['_createCurrentRevision'](_0x1aa252){const _0xf5d135=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xf5d135),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1aa252,'to':_0x1aa252,'id':_0xf5d135,'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'](_0x1af819,_0x36129b){let _0x17ab9e=this['editor']['config']['get']('initialData'),_0x376289=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x17ab9e){_0x17ab9e={};for(const _0x1f32f5 of this['editor']['model']['document']['getRootNames']())_0x17ab9e[_0x1f32f5]='';}if('string'==typeof _0x17ab9e&&(_0x17ab9e={'main':_0x17ab9e}),void 0x0===_0x376289){_0x376289={};for(const _0x3d83b7 of this['editor']['model']['document']['getRootNames']())_0x376289[_0x3d83b7]={};}let _0x44eb44=!0x1;const _0x45a7fa=Object['keys'](_0x17ab9e),_0x1e33ad=Object['keys'](_0x1af819);for(const _0x5c9e11 of _0x45a7fa){if(_0x17ab9e[_0x5c9e11]!==_0x1af819[_0x5c9e11]&&''!==_0x17ab9e[_0x5c9e11]['trim']()){_0x44eb44=!0x0;break;}if(!_0x3c1091(_0x376289[_0x5c9e11],_0x36129b[_0x5c9e11])&&Object['keys'](_0x376289[_0x5c9e11])['length']>0x0){_0x44eb44=!0x0;break;}}_0x44eb44||(_0x44eb44=_0x1e33ad['some'](_0x1cb3b6=>!this['editor']['model']['document']['getRoot'](_0x1cb3b6))),_0x44eb44&&_0x598afb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x17ab9e,'editorRootsAttributes':_0x376289,'revisionData':_0x1af819,'revisionRootsAttributes':_0x36129b}),this['editor']['config']['set']('initialData',_0x1af819),this['editor']['config']['set']('rootsAttributes',_0x36129b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4466f7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4466f7['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x42ab01){const _0x28655=this['repository']['getRevisions']();_0x28655['reverse']();let _0x5e8912=0x0;for(;_0x5e8912<_0x28655['length'];){const _0xf2e4e1=_0x28655[_0x5e8912];if(_0xf2e4e1===this['currentRevision']){_0x5e8912++;continue;}if(_0xf2e4e1['id']===this['_initialRevisionId'])break;const _0xff69e7=_0x42ab01['toVersion']-_0xf2e4e1['toVersion']||_0x42ab01['fromVersion']-_0xf2e4e1['fromVersion'];if(_0xff69e7>0x0)break;if(_0xff69e7<0x0)_0x5e8912++;else{if(!_0x42ab01['creator']&&_0xf2e4e1['creator'])break;if(_0xf2e4e1['creator']||!_0x42ab01['creator']){if(_0x42ab01['createdAt']>_0xf2e4e1['createdAt'])break;_0x5e8912++;}else _0x5e8912++;}}return _0x5e8912;}['_getFromVersion'](_0x4f7d15){const _0x4f0966=this['repository']['getRevisions']();_0x4f0966['reverse'](),_0x4f0966['shift']();const _0x267071=_0x4f0966['find'](_0x187671=>_0x187671['toVersion']<=_0x4f7d15)['toVersion'];return _0x267071<this['_startingVersion']?this['_startingVersion']:_0x267071;}['_makeRevision']({name:_0x14bb2d,from:_0x1a8ecc,to:_0x9d578b,creatorId:_0x312368,id:_0x3dac81}){const _0x25ebac=this['buildRevisionData']({'from':_0x1a8ecc,'to':_0x9d578b});_0x25ebac['name']=_0x14bb2d,_0x25ebac['creatorId']=_0x312368,_0x25ebac['id']=_0x3dac81;const _0x3485b8=this['addRevisionData'](_0x25ebac);return this['adapter']&&this['_bufferUpdate'](_0x25ebac['id'],_0x25ebac,!0x0),_0x3485b8;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2a3efe){this['editor']=_0x2a3efe,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'](_0x5839db){this['source']=_0x5839db;const _0x1b7042=new Map(),_0x26b468=new Map(),_0x5ced28=this['editor']['model']['document']['roots']['map'](_0x519be7=>_0x519be7['rootName']);for(const _0x6d3174 of _0x5ced28){const _0x50d64f=this['editor']['model']['document']['getRoot'](_0x6d3174),_0x6be1f6=K(_0x50d64f);_0x1b7042['set'](_0x6d3174,_0x6be1f6),_0x26b468['set'](_0x6d3174,Object['fromEntries'](_0x50d64f['getAttributes']()));}const _0x5771a5=Array['from'](this['editor']['model']['markers'])['map'](_0x396bcf=>[_0x396bcf['name'],_0x396bcf['getRange']()]),_0xd2f09b=this['source']['version'];this['_saveMetaData'](_0xd2f09b,_0x1b7042,_0x5771a5,_0x26b468),this['_startingRevisionId']=this['_revisionId'];const _0x460a7f=new Map(),_0x14df30=new Map();for(const _0x35ea17 of _0x5ced28){const _0x381bef=N(_0x35ea17);_0x460a7f['set'](_0x35ea17,_0x381bef),_0x14df30['set'](_0x35ea17,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x460a7f,[],_0x14df30);}['getData'](_0x23d015,_0x5dc334){if(this['_lastFrom']===_0x23d015&&this['_lastTo']<=_0x5dc334)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5dc334,!0x0);else{if(!this['_savedMetaData']['has'](_0x23d015)){const _0x2dac90=this['_getPreviousFrom'](_0x23d015);this['_calculateMetaData'](_0x2dac90,_0x23d015,!0x1);}this['_calculateMetaData'](_0x23d015,_0x5dc334,!0x0);}return this['_lastFrom']=_0x23d015,this['_lastTo']=_0x5dc334,this['_getState']();}['loadState'](_0x536418){if(!this['_savedMetaData']['has'](_0x536418['fromVersion'])){const _0x5085ab=this['_getPreviousFrom'](_0x536418['fromVersion']);this['_calculateMetaData'](_0x5085ab,_0x536418['fromVersion'],!0x1);}this['_calculateMetaData'](_0x536418['fromVersion'],_0x536418['toVersion'],!0x1);const _0x3e676b=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x536418['fromVersion'],this['_lastTo']=_0x536418['toVersion'];for(const _0x2cb078 in _0x536418['diffData']){const _0x19e832=_0x536418['diffData'][_0x2cb078]['attachChange'],_0x325375=_0x115d90(_0x536418['diffData'][_0x2cb078]['attributesBefore'])||{},_0x6b313e=_0x3e676b['_makeModelFromViewString'](_0x536418['diffData'][_0x2cb078]['deletions']);_0x6b313e['rootName']=_0x2cb078,_0x6b313e['_isAttached']=!_0x19e832||!_0x19e832['isAttached'],_0x6b313e['isAttached']=()=>_0x6b313e['_isAttached'],this['_baseRoots']['set'](_0x2cb078,_0x6b313e),this['_baseRootsAttributes']['set'](_0x2cb078,_0x325375),_0x19e832&&this['_touchedRoots']['set'](_0x2cb078,_0x19e832);const _0x2a1ba3=this['_makeIdsRoot'](_0x6b313e);this['_baseIdsRoots']['set'](_0x2cb078,_0x2a1ba3);for(const [_0x3513c6,_0x9ca794]of _0x6b313e['markers']){if(!_0x3513c6['startsWith']('revision:'))continue;const _0x5431a4=_0x3513c6['split'](':')[0x2];for(const _0x4cb936 of _0x9ca794['getWalker']({'singleCharacters':!0x0})){const _0x4c84a4=this['_getVidAttributeName'](_0x4cb936),_0xcd4d24='elementEnd'==_0x4cb936['type']?_0x4cb936['previousPosition']['path']['slice'](0x0,-0x1):_0x4cb936['previousPosition']['path'],_0x402f50=_0x2a1ba3['getNodeByPath'](_0xcd4d24)['getAttribute'](_0x4c84a4);this['_touched']['set'](_0x402f50,{'userId':_0x5431a4});}_0x6b313e['markers']['delete'](_0x3513c6);}}this['_startingRevisionId']=this['_revisionId'];const _0x2719e4=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1ec2d1=>!this['_touched']['has'](_0x1ec2d1));let _0x29b743=0x0;const _0x3e7a34=new Map();for(const _0x519253 in _0x536418['diffData']){const _0x23e1b6=_0x536418['diffData'][_0x519253]['attachChange'],_0x23cc85=_0x115d90(_0x536418['diffData'][_0x519253]['attributesAfter'])||{},_0x52eabe=_0x3e676b['_makeModelFromViewString'](_0x536418['diffData'][_0x519253]['insertions']);_0x52eabe['rootName']=_0x519253,_0x52eabe['_isAttached']=!_0x23e1b6||_0x23e1b6['isAttached'],_0x52eabe['isAttached']=()=>_0x52eabe['_isAttached'],this['_diffRoots']['set'](_0x519253,_0x52eabe),this['_diffRootsAttributes']['set'](_0x519253,_0x23cc85);const _0x45ebc9=this['_makeIdsRoot'](_0x52eabe,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x519253,_0x45ebc9),_0x3e7a34['set'](_0x519253,_0x52eabe['isAttached']()?_0x23cc85:{});for(const [_0x365ba4,_0x28856a]of _0x52eabe['markers']){if(!_0x365ba4['startsWith']('revision:'))continue;const _0x5ef38a=_0x365ba4['split'](':')[0x2];for(const _0x8abb6c of _0x28856a['getWalker']({'singleCharacters':!0x0})){const _0xc56669=this['_getVidAttributeName'](_0x8abb6c),_0x337b4c=this['_revisionId']++,_0x1915ba='elementEnd'==_0x8abb6c['type']?_0x8abb6c['previousPosition']['path']['slice'](0x0,-0x1):_0x8abb6c['previousPosition']['path'];_0x45ebc9['getNodeByPath'](_0x1915ba)['_setAttribute'](_0xc56669,_0x337b4c),this['_touched']['set'](_0x337b4c,{'userId':_0x5ef38a});}_0x52eabe['markers']['delete'](_0x365ba4);}for(const _0x4a0982 of this['editor']['model']['createRangeIn'](_0x52eabe)['getWalker']({'singleCharacters':!0x0})){const _0x3a8c2f=this['_getVidAttributeName'](_0x4a0982),_0x205439='elementEnd'==_0x4a0982['type']?_0x4a0982['previousPosition']['path']['slice'](0x0,-0x1):_0x4a0982['previousPosition']['path'],_0x5c55c8=_0x45ebc9['getNodeByPath'](_0x205439);_0x5c55c8['getAttribute'](_0x3a8c2f)>0x0||_0x5c55c8['_setAttribute'](_0x3a8c2f,_0x2719e4[_0x29b743++]);}for(const [_0x4ddf52,_0x9b8b55]of _0x52eabe['markers'])_0x4ddf52['startsWith']('revision:')||this['_markers']['set'](_0x4ddf52,_0x9b8b55);}const {roots:_0x18d152}=this['_savedMetaData']['get'](_0x536418['fromVersion']),{roots:_0x632752}=this['_savedMetaData']['get'](_0x536418['toVersion']),_0x591d27=K(_0x18d152['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x591d27),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x591d27,Number['NEGATIVE_INFINITY']));const _0x2d9844=K(_0x632752['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x2d9844),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2d9844));const _0x37a2e6=Array['from'](this['_diffRoots'])['map'](([_0x2789f1,_0x1d587b])=>[_0x2789f1,K(_0x1d587b)]);this['_saveMetaData'](this['_lastTo'],_0x37a2e6,this['_markers'],_0x3e7a34);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xa9e323,_0x23e6f2,_0xb76c7f,_0xd0f07a){const _0x49c039=new Map(_0x23e6f2),_0x1414bc=new Map(_0x115d90(_0xd0f07a)),_0x232013=new Map();for(const [_0x20f938,_0xa67b84]of _0xb76c7f)_0x232013['set'](_0x20f938,{'start':_0xa67b84['start']['clone'](),'end':_0xa67b84['end']['clone'](),'rootName':_0xa67b84['root']['rootName']});this['_savedMetaData']['set'](_0xa9e323,{'roots':_0x49c039,'markers':_0x232013,'rootsAttributes':_0x1414bc});}['_removeMetaData'](_0x1bf2bc){this['_savedMetaData']['delete'](_0x1bf2bc);}['_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'](_0x34f887,_0x3b8964=null){let _0x321acd=null;_0x34f887['is']('documentFragment')||(_0x321acd=new _0x14fd90(_0x34f887['name'],{'vid_start':null===_0x3b8964?this['_revisionId']++:_0x3b8964++}));const _0xb80a33=[];for(const _0x589a8b of _0x34f887['getChildren']())if(_0x589a8b['is']('element')){_0xb80a33['push'](this['_makeIdsRoot'](_0x589a8b,_0x3b8964));const _0x3144f6=_0xb80a33[_0xb80a33['length']-0x1];null!==_0x3b8964&&(_0x3b8964=_0x3144f6['is']('element','$text')?_0x3144f6['getAttribute']('vid')+0x1:_0x3144f6['getAttribute']('vid_end')+0x1);}else{for(let _0x1c71d6=0x0;_0x1c71d6<_0x589a8b['offsetSize'];_0x1c71d6++)_0xb80a33['push'](new _0x14fd90('$text',{'vid':null===_0x3b8964?this['_revisionId']++:_0x3b8964++}));}if(_0x34f887['is']('documentFragment')){const _0x4a7bc2=N(_0x34f887['rootName']);return _0x4a7bc2['_insertChild'](0x0,_0xb80a33),_0x4a7bc2;}return _0x321acd['_setAttribute']('vid_end',null===_0x3b8964?this['_revisionId']++:_0x3b8964++),_0x321acd['_insertChild'](0x0,_0xb80a33),_0x321acd;}['_calculateMetaData'](_0x4e3296,_0x3f773d,_0x5ad445){this['_reset']();const {roots:_0x28c1e6,markers:_0x1a7b98,rootsAttributes:_0x519dd3}=this['_savedMetaData']['get'](_0x4e3296);this['_baseRoots']=new Map(_0x28c1e6),this['_baseRootsAttributes']=new Map(_0x115d90(_0x519dd3));for(const [_0xa4007b,_0x33560d]of this['_baseRoots'])if('$graveyard'!==_0xa4007b&&(this['_diffRoots']['set'](_0xa4007b,K(_0x33560d)),this['_diffRootsAttributes']=new Map(_0x115d90(_0x519dd3)),_0x5ad445)){const _0x5803c7=this['_revisionId'];this['_idsRoots']['set'](_0xa4007b,this['_makeIdsRoot'](_0x33560d)),this['_baseIdsRoots']['set'](_0xa4007b,this['_makeIdsRoot'](_0x33560d,_0x5803c7));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',K(this['_baseRoots']['get']('$graveyard'))),_0x5ad445&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x22fd67,_0x3098fa]of _0x1a7b98){const _0x27bcdd=this['_baseRoots']['get'](_0x3098fa['rootName']),_0x1494f7=this['_diffRoots']['get'](_0x3098fa['rootName']),_0x5b1d79=new _0x23adf7(this['_fixPosition'](_0x3098fa['start'],_0x27bcdd),this['_fixPosition'](_0x3098fa['end'],_0x27bcdd)),_0x193a13=this['_fixRange'](_0x5b1d79,_0x1494f7);_0x27bcdd['markers']['set'](_0x22fd67,_0x5b1d79),this['_markers']['set'](_0x22fd67,_0x193a13);}this['_applyOperations'](_0x4e3296,_0x3f773d,_0x5ad445);}['_applyOperations'](_0x31b7b4,_0x24015e,_0x2f4b1c){for(const _0x36c4ff of this['source']['getOperations'](_0x31b7b4,_0x24015e))this['_handleOperation'](_0x36c4ff,_0x2f4b1c);for(const _0x20d972 of this['_diffRoots']['values']())_0x20d972['markers']['clear']();for(const [_0x486c0a,_0x12e097]of this['_markers']){this['_diffRoots']['get'](_0x12e097['root']['rootName'])['markers']['set'](_0x486c0a,_0x12e097['clone']());}const _0x519ef3=new Map(),_0xbfcecd=new Map();for(const [_0x57c9db,_0x5d702f]of this['_diffRoots'])_0x519ef3['set'](_0x57c9db,K(_0x5d702f)),_0xbfcecd['set'](_0x57c9db,this['_diffRootsAttributes']['get'](_0x57c9db));this['_saveMetaData'](_0x24015e,_0x519ef3,this['_markers'],_0xbfcecd);}['_getPreviousFrom'](_0x35819b){const _0x361fea=Array['from'](this['_savedMetaData']['keys']());_0x361fea['sort']((_0x2b04ac,_0x4d0d6f)=>_0x2b04ac-_0x4d0d6f),_0x361fea['reverse']();for(const _0x152620 of _0x361fea)if(_0x152620<_0x35819b)return _0x152620;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xf802f0,_0xadd66d){const _0x4c25b1=Array['from'](_0xadd66d['markers'])['map'](([_0x198609,_0x250abd])=>[_0x198609,this['_fixRange'](_0x250abd,_0xf802f0)]);_0xf802f0['markers']=new Map(_0x4c25b1);}['_transformMarkers'](_0x477f0e){for(const _0x1aa6af of this['_markers']['values']()){const _0x1464fe=_0x1aa6af['getTransformedByOperation'](_0x477f0e),_0x5c31b2=_0x23adf7['_createFromRanges'](_0x1464fe);_0x1aa6af['start']=_0x5c31b2['start'],_0x1aa6af['end']=_0x5c31b2['end'];}}['_handleOperation'](_0xe507f7,_0x45e267){if('addRoot'!=_0xe507f7['type']&&'detachRoot'!=_0xe507f7['type']){if('insert'==_0xe507f7['type']){const _0x37db18=_0xe507f7['position']['root']['rootName'];this['_diffRoots']['has'](_0x37db18)||(this['_diffRoots']['set'](_0x37db18,N(_0x37db18,!0x0)),this['_diffRootsAttributes']['set'](_0x37db18,{}),_0x45e267&&this['_idsRoots']['set'](_0x37db18,N(_0x37db18,!0x0)));}else{if('addRootAttribute'==_0xe507f7['type']||'removeRootAttribute'==_0xe507f7['type']||'changeRootAttribute'==_0xe507f7['type'])return void this['_handleRootAttributeOperation'](_0xe507f7);'marker'==_0xe507f7['type']&&this['_handleMarkerOperation'](_0xe507f7);}if('marker'!==_0xe507f7['type']){const _0x261f16=this['_cloneOperation'](_0xe507f7,this['_diffRoots']);_0x261f16['_execute'](),this['_transformMarkers'](_0x261f16);}if(_0x45e267)switch(_0xe507f7['type']){case'insert':this['_handleInsertOperation'](_0xe507f7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xe507f7);break;case'merge':this['_handleMergeOperation'](_0xe507f7);break;case'split':this['_handleSplitOperation'](_0xe507f7);}}else this['_handleRootOperation'](_0xe507f7,_0x45e267);}['_cloneOperation'](_0x3f45cd,_0x3fd0fc){const _0x33318f=_0x3f45cd['clone']();return _0x33318f['_authorId']=_0x3f45cd['_authorId'],this['_fixOperation'](_0x33318f,_0x3fd0fc),_0x33318f;}['_getBaseVids'](_0x4e8aed){return _0x4e8aed['map'](_0x1cabd2=>{const _0x10a17d=this['_getVidAttributeName'](_0x1cabd2);return Number(_0x1cabd2['item']['getAttribute'](_0x10a17d));});}['_generateTape'](_0x28ceb6,_0x4ec0ef){if(_0x28ceb6['is']('element','$text'))_0x4ec0ef['push']({'item':_0x28ceb6,'type':'text'});else{_0x28ceb6['is']('element')&&_0x4ec0ef['push']({'item':_0x28ceb6,'type':'elementStart'});for(const _0x57b3ea of _0x28ceb6['getChildren']())this['_generateTape'](_0x57b3ea,_0x4ec0ef);_0x28ceb6['is']('element')&&_0x4ec0ef['push']({'item':_0x28ceb6,'type':'elementEnd'});}return _0x4ec0ef;}['_getState'](){const _0x432a33=new Map(this['_touched']),_0x5c7515=new Map(_0x432a33),_0x8e5d67=new Map(),_0x1b2e91={'insertions':{},'deletions':{}},_0x1e3d42={'insertions':{},'deletions':{}},_0x3a0bdd=new Map(),_0x4ca651=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4ca651['delete']('$graveyard');for(const _0xd77c7a of _0x4ca651){const _0x1b3f89=this['_diffRoots']['get'](_0xd77c7a)||N(_0xd77c7a,!0x1),_0x4b0345=this['_baseRoots']['get'](_0xd77c7a)||N(_0xd77c7a,!0x1);_0x1b3f89['isAttached']()||_0x4b0345['isAttached']()?(_0x1b2e91['insertions'][_0xd77c7a]=K(_0x1b3f89),_0x1b2e91['deletions'][_0xd77c7a]=K(_0x4b0345),this['_copyMarkers'](_0x1b2e91['deletions'][_0xd77c7a],_0x4b0345),this['_copyMarkers'](_0x1b2e91['insertions'][_0xd77c7a],_0x1b3f89),_0x1e3d42['insertions'][_0xd77c7a]=this['_generateTape'](this['_idsRoots']['get'](_0xd77c7a),[]),_0x1e3d42['deletions'][_0xd77c7a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xd77c7a)||N(_0xd77c7a,!0x1),[])):_0x4ca651['delete'](_0xd77c7a);}for(const _0xd7cf8b of _0x4ca651){const _0x19fb34=_0x1e3d42['insertions'][_0xd7cf8b];for(const _0x21fc8a of _0x19fb34){const _0x43f2d1=this['_getVidAttributeName'](_0x21fc8a),_0x139d93=_0x21fc8a['item']['getAttribute'](_0x43f2d1);_0x5c7515['delete'](_0x139d93),_0x139d93>=this['_startingRevisionId']&&_0x8e5d67['set'](_0x139d93,_0x432a33['get'](_0x139d93));}}for(const _0x518004 of _0x4ca651){const _0x44abbb=_0x1e3d42['insertions'][_0x518004],_0x22a494=this['_getBaseVids'](_0x1e3d42['deletions'][_0x518004]);let _0x324c11=0x0;for(const _0x2f1432 of _0x44abbb){const _0x2e2021=this['_getVidAttributeName'](_0x2f1432),_0x1fe7c9=_0x2f1432['item']['getAttribute'](_0x2e2021);if(!_0x8e5d67['has'](_0x1fe7c9)&&!_0x3a0bdd['has'](_0x1fe7c9)){if(_0x5c7515['has'](_0x1fe7c9))_0x324c11++;else{if(_0x1fe7c9!=_0x22a494[_0x324c11]){const _0x78f7ed=_0x432a33['get'](_0x1fe7c9)||_0x432a33['get'](_0x22a494[_0x324c11]);for(;_0x1fe7c9!=_0x22a494[_0x324c11];)_0x5c7515['has'](_0x22a494[_0x324c11])||(_0x3a0bdd['set'](_0x22a494[_0x324c11],_0x78f7ed),_0x432a33['set'](_0x22a494[_0x324c11],_0x78f7ed)),_0x324c11++;}_0x324c11++;}}}}for(const _0x2c8764 of _0x4ca651){const _0x5b8df7=_0x1e3d42['insertions'][_0x2c8764];for(const _0x491e9d of _0x5b8df7){const _0x247072=this['_getVidAttributeName'](_0x491e9d),_0x185b11=_0x491e9d['item']['getAttribute'](_0x247072);if(_0x3a0bdd['has'](_0x185b11)){const _0x329d04=_0x3a0bdd['get'](_0x185b11);_0x5c7515['has'](_0x185b11)||_0x5c7515['set'](_0x185b11,{..._0x329d04}),_0x8e5d67['set'](_0x185b11,{..._0x329d04});}}}for(const _0x28d944 of _0x5c7515['keys']())_0x28d944>=this['_startingRevisionId']&&_0x5c7515['delete'](_0x28d944);const _0x4788b6=new Map();for(const _0x1b6099 of _0x4ca651){let _0x50826f=_0x1e3d42['insertions'][_0x1b6099];for(const _0x56b81e of _0x50826f)if(_0x56b81e['item']['is']('element','tableCell')){const _0x2c768b=this['_getVidAttributeName'](_0x56b81e),_0x5e384a=_0x56b81e['item']['getAttribute'](_0x2c768b);if(_0x8e5d67['has'](_0x5e384a)){const _0x399d40=_0x56b81e['item']['parent']['parent']['getAttribute']('vid_start'),_0x5c6feb=_0x4788b6['get'](_0x399d40)||new Set();_0x5c6feb['add'](_0x8e5d67['get'](_0x5e384a)['userId']),_0x4788b6['set'](_0x399d40,_0x5c6feb);}}_0x50826f=_0x1e3d42['deletions'][_0x1b6099];for(const _0x460039 of _0x50826f)if(_0x460039['item']['is']('element','tableCell')){const _0x34b52d=this['_getVidAttributeName'](_0x460039),_0x3c09a5=_0x460039['item']['getAttribute'](_0x34b52d);if(_0x5c7515['has'](_0x3c09a5)){const _0xbfbb35=_0x460039['item']['parent']['parent']['getAttribute']('vid_start'),_0x78dd32=_0x4788b6['get'](_0xbfbb35)||new Set();_0x78dd32['add'](_0x5c7515['get'](_0x3c09a5)['userId']),_0x4788b6['set'](_0xbfbb35,_0x78dd32);}}for(const _0xeaed5b of _0x4788b6['keys']())(_0x8e5d67['has'](_0xeaed5b)||_0x5c7515['has'](_0xeaed5b))&&_0x4788b6['delete'](_0xeaed5b);}for(const _0x54dd0e of _0x4ca651){const _0x5cd540=_0x1e3d42['insertions'][_0x54dd0e];let _0x152312=null,_0x22d934=null;for(const _0x3c60ad of _0x5cd540){const _0x56d463=this['_getVidAttributeName'](_0x3c60ad),_0x5a0c94=_0x3c60ad['item']['getAttribute'](_0x56d463),_0x33e267=_0x4788b6['get'](_0x5a0c94);_0x33e267&&'elementStart'==_0x3c60ad['type']&&(_0x152312=Array['from'](_0x33e267)[0x0],_0x22d934=_0x3c60ad['item']['getAttribute']('vid_end')),_0x152312&&(_0x5c7515['set'](_0x5a0c94,{'userId':_0x152312}),_0x8e5d67['set'](_0x5a0c94,{'userId':_0x152312})),_0x5a0c94==_0x22d934&&(_0x152312=null,_0x22d934=null);}}const _0x57f015={},_0x2143f3=new Set();for(const _0x4e619c of _0x4ca651){const _0x27a692=_0x1b2e91['deletions'][_0x4e619c],_0xdfc591=_0x1b2e91['insertions'][_0x4e619c];for(const {userId:_0x9bd184}of this['_touchedMarkers']['values']())null!==_0x9bd184&&_0x2143f3['add'](_0x9bd184);for(const {userId:_0x335cf5}of this['_touchedRoots']['values']())null!==_0x335cf5&&_0x2143f3['add'](_0x335cf5);this['_markChanges'](_0xdfc591,_0x1e3d42['insertions'][_0x4e619c],_0x8e5d67,'insertion',_0x2143f3),this['_markChanges'](_0x27a692,_0x1e3d42['deletions'][_0x4e619c],_0x5c7515,'deletion',_0x2143f3),_0x57f015[_0x4e619c]={'insertions':this['_prepareViewToSave'](_0xdfc591),'deletions':this['_prepareViewToSave'](_0x27a692),'attachChange':this['_touchedRoots']['get'](_0x4e619c)||null,'attributesBefore':_0x115d90(this['_baseRootsAttributes']['get'](_0x4e619c))||{},'attributesAfter':_0x115d90(this['_diffRootsAttributes']['get'](_0x4e619c))};}return{'diffData':_0x57f015,'authorsIds':Array['from'](_0x2143f3)};}['_processRootBeforeSave'](_0x5c03c5){for(const [,_0x1bba4b]of _0x5c03c5['markers']){const _0x28bc8b=_0x1bba4b['start']['getAncestors']()['filter'](_0x508c6a=>'tableCell'==_0x508c6a['name']);for(const _0x135fa4 of _0x28bc8b)0x1==_0x135fa4['childCount']&&_0x135fa4['getChild'](0x0)['is']('element','paragraph')&&_0x135fa4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x55e39c){this['_processRootBeforeSave'](_0x55e39c);const _0x4f513b=this['editor']['data']['toView'](_0x55e39c,{}),_0x2f6955=Array['from'](_0x4f513b['getChildren']())['map'](_0x1f9855=>this['_getViewJson'](_0x1f9855));return JSON['stringify'](_0x2f6955);}['_getViewJson'](_0x359629){if(_0x359629['is']('$text'))return _0x359629['data'];{const _0xfa0624=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x44ceec=_0x359629,_0x39f754=this['editor']['data']['htmlProcessor']['domConverter'],_0x1944f7={'type':_0xfa0624['_getTypeCharForViewElement'](_0x44ceec),'name':_0x44ceec['name'],'attributes':Array['from'](_0x44ceec['getAttributes']()),'children':Array['from'](_0x44ceec['getChildren']())['map'](_0x19462c=>this['_getViewJson'](_0x19462c))};if(_0x359629['is']('uiElement')&&'$comment'!=_0x359629['name']){const _0x3152bb=_0x359629['render'](_0x39f754['domDocument'],_0x39f754);_0x1944f7['children']['push'](_0x3152bb['outerHTML']);}else{if(_0x359629['is']('rawElement')){const _0xa4222b=_0x39f754['domDocument']['createElement'](_0x44ceec['name']);_0x359629['render'](_0xa4222b,_0x39f754),_0x1944f7['children']['push'](_0xa4222b['innerHTML']);}}const _0x268174=Array['from'](_0x44ceec['getCustomProperties']());_0x268174['length']>0x0&&(_0x1944f7['customProperties']=_0x268174);const _0x50c2ab=_0x44ceec['getFillerOffset']();return null!==_0x50c2ab&&(_0x1944f7['fillerOffset']=_0x50c2ab),_0x1944f7;}}['_markChanges'](_0x240eff,_0x2ac969,_0x50a245,_0x273079,_0x327d14){let _0x35ad93=null,_0x32bcca=null,_0x3a48ca=0x0;const _0xef4946=this['editor']['model'];for(let _0x2b2305=0x0;_0x2b2305<_0x2ac969['length'];_0x2b2305++){const _0xbce2b3=this['_getVidAttributeName'](_0x2ac969[_0x2b2305]),_0x401f6f=_0x2ac969[_0x2b2305]['item']['getAttribute'](_0xbce2b3),_0x3dca3f=_0x50a245['get'](_0x401f6f),_0x4c6c5f=_0x2b2305==_0x2ac969['length']-0x1;(!_0x35ad93&&_0x3dca3f&&(_0x35ad93=_0x3dca3f,_0x32bcca=_0x2ac969[_0x2b2305]),_0x35ad93&&(!_0x3dca3f||_0x3dca3f['userId']!=_0x35ad93['userId']))&&(_0x34bf84(_0x3dca3f,P(_0x32bcca,_0x240eff,_0xef4946),P(_0x2ac969[_0x2b2305],_0x240eff,_0xef4946)),_0x35ad93=_0x3dca3f||null,_0x32bcca=_0x3dca3f?_0x2ac969[_0x2b2305]:null),_0x35ad93&&_0x4c6c5f&&_0x34bf84(_0x3dca3f,P(_0x32bcca,_0x240eff,_0xef4946),V(_0x2ac969[_0x2b2305],_0x240eff,_0xef4946));}function _0x34bf84(_0x21d8fb,_0x1d0cba,_0x4b5cd8){const _0x3b7fd4=_0x35ad93['userId'],_0x4c87e7='revision:'+_0x273079+':'+_0x3b7fd4+':'+_0x3a48ca++,_0x3966b1=_0xef4946['createRange'](_0x1d0cba,_0x4b5cd8);_0x240eff['markers']['set'](_0x4c87e7,_0x3966b1),null!==_0x3b7fd4&&_0x327d14['add'](_0x3b7fd4);}}['_getVidAttributeName'](_0x739673){switch(_0x739673['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x430c31,_0x14fac9){_0x430c31['baseVersion']=null;for(const _0x1df86d in _0x430c31){const _0x51a33e=_0x430c31[_0x1df86d];if(_0x51a33e instanceof _0x3ee28f){const _0x45dc76=_0x14fac9['get'](_0x51a33e['root']['rootName']);_0x430c31[_0x1df86d]=this['_fixPosition'](_0x51a33e,_0x45dc76);}if(_0x51a33e instanceof _0x23adf7){const _0x5333a5=_0x14fac9['get'](_0x51a33e['root']['rootName']);_0x430c31[_0x1df86d]=this['_fixRange'](_0x51a33e,_0x5333a5);}'root'===_0x1df86d&&(_0x430c31['root']=_0x14fac9['get'](_0x430c31['root']['rootName']));}}['_fixRange'](_0x2f0253,_0x31d100){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2f0253['start'],_0x31d100),this['_fixPosition'](_0x2f0253['end'],_0x31d100));}['_fixPosition'](_0x1f5408,_0x417f58){return this['editor']['model']['createPositionFromPath'](_0x417f58,_0x1f5408['path'],_0x1f5408['stickiness']);}['_handleInsertOperation'](_0x1c7ad8){const _0x1ea10c=this['_idsRoots']['get'](_0x1c7ad8['position']['root']['rootName']),_0x36a8dd=this['_fixPosition'](_0x1c7ad8['position'],_0x1ea10c),_0x415c4a=null===_0x1c7ad8['_authorId']?null:_0x1c7ad8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x393822=_0x36a8dd['parent'],_0x239288=this['_revisionId'],_0x20835a=[];for(const _0x4741a1 of _0x1c7ad8['nodes'])if(_0x4741a1['is']('element'))_0x20835a['push'](this['_makeIdsRoot'](_0x4741a1));else{for(let _0x5db889=0x0;_0x5db889<_0x4741a1['offsetSize'];_0x5db889++)_0x20835a['push'](new _0x14fd90('$text',{'vid':this['_revisionId']++}));}const _0x1d6a01=this['_revisionId'];for(let _0x1d998c=_0x239288;_0x1d998c<_0x1d6a01;_0x1d998c++)this['_touched']['set'](_0x1d998c,{'userId':_0x415c4a});_0x393822['_insertChild'](_0x36a8dd['offset'],_0x20835a);}['_handleMoveOperation'](_0x1ab0cb){(_0x1ab0cb=this['_cloneOperation'](_0x1ab0cb,this['_idsRoots']))['_execute']();const _0x4e91f5=null===_0x1ab0cb['_authorId']?null:_0x1ab0cb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12f587=_0x1ab0cb['getMovedRangeStart'](),_0x40babc=_0x12f587['parent'],_0xf003ca=_0x12f587['offset'];!function _0x382f27(_0x196021,_0x5541b2,_0x3a43c2,_0x277af3){for(let _0x532dd1=_0x3a43c2;_0x532dd1<_0x277af3;_0x532dd1++){const _0x27b745=_0x5541b2['getChild'](_0x532dd1);_0x27b745['is']('element','$text')?_0x196021['set'](_0x27b745['getAttribute']('vid'),{'userId':_0x4e91f5}):(_0x196021['set'](_0x27b745['getAttribute']('vid_start'),{'userId':_0x4e91f5}),_0x382f27(_0x196021,_0x27b745,0x0,_0x27b745['childCount']),_0x196021['set'](_0x27b745['getAttribute']('vid_end'),{'userId':_0x4e91f5}));}}(this['_touched'],_0x40babc,_0xf003ca,_0xf003ca+_0x1ab0cb['howMany']);}['_handleMergeOperation'](_0x343ec0){const _0x87f49a=null===(_0x343ec0=this['_cloneOperation'](_0x343ec0,this['_idsRoots']))['_authorId']?null:_0x343ec0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x348170=_0x343ec0['targetPosition']['parent'],_0x121406=_0x343ec0['sourcePosition']['parent'],_0x400185=_0x348170['getAttribute']('vid_end'),_0x5d3c84=_0x121406['getAttribute']('vid_start');_0x348170['_setAttribute']('vid_end',_0x121406['getAttribute']('vid_end')),_0x121406['_setAttribute']('vid_end',_0x400185),this['_touched']['set'](_0x5d3c84,{'userId':_0x87f49a}),this['_touched']['set'](_0x400185,{'userId':_0x87f49a}),_0x343ec0['_execute']();}['_handleSplitOperation'](_0x50b693){const _0x11e465=null===(_0x50b693=this['_cloneOperation'](_0x50b693,this['_idsRoots']))['_authorId']?null:_0x50b693['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14fded=_0x50b693['graveyardPosition'],_0x2395e8=_0x50b693['splitPosition']['parent'];_0x50b693['_execute']();const _0x1c0872=_0x2395e8['getAttribute']('vid_end'),_0x4fc6e4=_0x50b693['insertionPosition']['nodeAfter'];if(_0x14fded){const _0x38bf27=_0x4fc6e4['getAttribute']('vid_end'),_0x72316e=_0x2395e8['getAttribute']('vid_end');_0x2395e8['_setAttribute']('vid_end',_0x38bf27),_0x4fc6e4['_setAttribute']('vid_end',_0x72316e),this['_touched']['set'](_0x2395e8['getAttribute']('vid_end'),{'userId':_0x11e465}),this['_touched']['set'](_0x4fc6e4['getAttribute']('vid_start'),{'userId':_0x11e465});}else{const _0x332970=this['_revisionId']++,_0x52d56b=this['_revisionId']++;_0x2395e8['_setAttribute']('vid_end',_0x332970),_0x4fc6e4['_setAttribute']('vid_start',_0x52d56b),_0x4fc6e4['_setAttribute']('vid_end',_0x1c0872),this['_touched']['set'](_0x332970,{'userId':_0x11e465}),this['_touched']['set'](_0x52d56b,{'userId':_0x11e465});}}['_handleMarkerOperation'](_0x2def22){if(!_0x2def22['affectsData'])return;const _0x431cc8=(_0x2def22=this['_cloneOperation'](_0x2def22,this['_diffRoots']))['oldRange']?_0x2def22['oldRange']['root']:null,_0x3d01f0=_0x2def22['newRange']?_0x2def22['newRange']['root']:null;_0x431cc8&&this['_markers']['delete'](_0x2def22['name']),_0x3d01f0&&this['_markers']['set'](_0x2def22['name'],_0x2def22['newRange']['clone']());const _0xdbc407=null===_0x2def22['_authorId']?null:_0x2def22['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c5d92=_0x2def22['name'];if(!this['_touchedMarkers']['has'](_0x5c5d92))return void this['_touchedMarkers']['set'](_0x5c5d92,{'range':_0x2def22['oldRange'],'userId':_0xdbc407});const _0x256864=this['_touchedMarkers']['get'](_0x5c5d92),_0x5bb95b=_0x256864['range'],_0x4c2278=_0x2def22['newRange'];null==_0x5bb95b&&null==_0x4c2278||_0x5bb95b&&_0x4c2278&&_0x5bb95b['isEqual'](_0x4c2278)?this['_touchedMarkers']['delete'](_0x2def22['name']):_0x256864['userId']=_0xdbc407;}['_handleRootOperation'](_0x12dcec,_0x5134e9){this['_diffRoots']['has'](_0x12dcec['rootName'])?this['_diffRoots']['get'](_0x12dcec['rootName'])['_isAttached']=_0x12dcec['isAdd']:(this['_diffRoots']['set'](_0x12dcec['rootName'],N(_0x12dcec['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x12dcec['rootName'],{}),_0x5134e9&&this['_idsRoots']['set'](_0x12dcec['rootName'],N(_0x12dcec['rootName'],!0x0)));const _0x3ace48=null===_0x12dcec['_authorId']?null:_0x12dcec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18b7ec=this['_touchedRoots']['get'](_0x12dcec['rootName']);_0x18b7ec&&_0x18b7ec['userId']===_0x3ace48?this['_touchedRoots']['delete'](_0x12dcec['rootName']):this['_touchedRoots']['set'](_0x12dcec['rootName'],{'userId':_0x3ace48,'isAttached':_0x12dcec['isAdd']});}['_handleRootAttributeOperation'](_0x4349ed){const _0x336586=this['_diffRootsAttributes']['get'](_0x4349ed['root']['rootName']);null===_0x4349ed['newValue']?delete _0x336586[_0x4349ed['key']]:_0x336586[_0x4349ed['key']]=_0x4349ed['newValue'];}}function K(_0x48f95a){const _0xad40b1=N(_0x48f95a['rootName'],_0x48f95a['isAttached']());for(const _0x3a5ce8 of _0x48f95a['getChildren']()){const _0x25b523=_0x3a5ce8['_clone'](!0x0);_0xad40b1['_appendChild'](_0x25b523);}return _0xad40b1;}function N(_0x1b684e,_0x270af3=!0x0){const _0x5c7c00=new _0xf3d172();return _0x5c7c00['rootName']=_0x1b684e,_0x5c7c00['_isAttached']=_0x270af3,_0x5c7c00['isAttached']=()=>_0x5c7c00['_isAttached'],_0x5c7c00;}function P(_0x2ae5d7,_0x3a0172,_0x3db48b){const _0x59c1ce='elementEnd'==_0x2ae5d7['type']?_0x3db48b['createPositionAt'](_0x2ae5d7['item'],'end'):_0x3db48b['createPositionBefore'](_0x2ae5d7['item']);return _0x3db48b['createPositionFromPath'](_0x3a0172,_0x59c1ce['path'],_0x59c1ce['stickiness']);}function V(_0x1b9a07,_0x4b90c7,_0x176ed9){const _0x1bf080='elementStart'==_0x1b9a07['type']?_0x176ed9['createPositionAt'](_0x1b9a07['item'],0x0):_0x176ed9['createPositionAfter'](_0x1b9a07['item']);return _0x176ed9['createPositionFromPath'](_0x4b90c7,_0x1bf080['path'],_0x1bf080['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0xb6d8a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x12ebac){super(),this['id']=_0x12ebac['id']||_0x391c61(),this['author']=_0x12ebac['author'],this['type']=_0x12ebac['type'],this['data']=_0x12ebac['data']||{},this['rootName']=_0x12ebac['rootName'],this['set']('createdAt',_0x12ebac['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(_0x1812b2,_0xc6f041){this['newRevisionId']=_0x1812b2,this['oldRevisionId']=_0xc6f041,this['changes']=new _0x480dd0();}['_setChanges'](_0x48b181){for(const _0x15df86 of _0x48b181)this['changes']['add'](_0x15df86);}}class u extends _0x439397{['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[_0x153f01,_0x9a6d6b,S,$];}constructor(_0x3e284e){super(_0x3e284e),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',(_0x4a4134,_0x2831fe,_0x37a712)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x158040=>{for(const _0x1d7fcf of this['editor']['editing']['view']['document']['roots'])_0x37a712?_0x158040['removeClass']('ck-editor__editable__overlay',_0x1d7fcf):_0x158040['addClass']('ck-editor__editable__overlay',_0x1d7fcf);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5989c7=>null!==_0x5989c7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2792b1,_0x4d60d8,_0x5d9c2e)=>_0x2792b1&&_0x5d9c2e?_0x4d60d8['changes']['getIndex'](_0x5d9c2e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x42120f,_0xb4afba)=>_0x42120f?_0xb4afba['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x9a6d6b);}['init'](){const _0x12e484=this['editor'],_0x115b6e=new rt(_0x12e484,{'direction':'backward'}),_0x26d8fd=new rt(_0x12e484,{'direction':'forward'});(_0x12e484['commands']['add']('showPreviousChange',_0x115b6e),_0x12e484['commands']['add']('showNextChange',_0x26d8fd),_0x12e484['commands']['add']('restoreRevision',new nt(_0x12e484)),this['on']('change:numberOfChanges',()=>{_0x115b6e['refresh'](),_0x26d8fd['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x12e484['enableReadOnlyMode']('revision-viewer'),_0x12e484['plugins']['has']('WidgetToolbarRepository'))&&_0x12e484['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x16ec8f){return await this['_utils']['loadRevisionData'](_0x16ec8f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x16ec8f);}async['getRevisionRootsAttributes'](_0xdcdcfe){return await this['_utils']['loadRevisionData'](_0xdcdcfe,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xdcdcfe);}async['compare'](_0x414a71,_0x5791de,_0x54aca1=!0x1){if(!this['isEnabled'])return;const _0x5b3355=this['diff'],_0x4f7209=this['repository'],_0x351d46='string'==typeof _0x414a71?_0x4f7209['getRevision'](_0x414a71):_0x414a71,_0x2695f6='string'==typeof _0x5791de?_0x4f7209['getRevision'](_0x5791de):_0x5791de,_0x14aaaa=_0x351d46['id'],_0xde599f=_0x2695f6?_0x2695f6['id']:null;if(!_0x54aca1&&this['diff']&&this['diff']['newRevisionId']===_0x14aaaa&&this['diff']['oldRevisionId']===_0xde599f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x14aaaa,_0xde599f);const _0x1c3b37=this['_getRevisionsRange'](_0x351d46,_0x2695f6,!0x0)['map'](_0xcab67e=>this['_utils']['loadRevisionData'](_0xcab67e,this['adapter']));return _0x1c3b37['push'](new Promise(_0x58400e=>{setTimeout(_0x58400e,0x14);})),Promise['all'](_0x1c3b37)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x36db24=this['_getDiff'](_0x14aaaa,_0xde599f);for(const _0x30762a of _0x36db24['changes'])this['_changeIdToChange']['set'](_0x30762a['id'],_0x30762a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4ea83d=>{for(const _0x4e6b16 of this['editor']['model']['document']['getRootNames']())_0x4ea83d['detachRoot'](_0x4e6b16);for(const _0x41175f of Object['keys'](_0x36db24['model'])){const _0x4734f9=_0x4ea83d['addRoot'](_0x41175f);for(const _0x1977b9 of Object['keys'](_0x36db24['attributes'][_0x41175f]))_0x4ea83d['setAttribute'](_0x1977b9,_0x36db24['attributes'][_0x41175f][_0x1977b9],_0x4734f9);_0x4ea83d['insert'](_0x36db24['model'][_0x41175f],_0x4734f9,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x36db24['changes'])),this['isReady']=!0x0;})['catch'](_0x2aa1bf=>{console['error'](_0x2aa1bf),this['_cleanUp'](),_0x5b3355&&(this['diff']=_0x5b3355),this['isReady']=!0x0;});}['addRevisionData'](_0x138dcc,_0xb2178a){const _0x58c593=this['repository']['createRevision'](_0x138dcc);return _0x58c593['on']('_update',(_0x4c35eb,_0x842bd7,_0x148aed)=>_0xb2178a(_0x842bd7,_0x148aed,_0x58c593)),this['repository']['addRevision'](_0x58c593),_0x58c593;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x37e957=>{for(const _0x357961 of this['editor']['model']['document']['getRootNames']())_0x37e957['detachRoot'](_0x357961);});}['_sortAndFilterDiffChanges'](_0x5623c1){const _0x3cd1e2=[],_0x3661f6=new Map();for(const _0x368d88 of this['editor']['model']['document']['getRootNames']()){const _0x3524f2=this['editor']['editing']['view']['getDomRoot'](_0x368d88);if(!_0x3524f2)continue;const _0xad7215=_0x3524f2['getClientRects']()['item'](0x0);_0xad7215&&(_0x3cd1e2['push'](_0x368d88),_0x3661f6['set'](_0x368d88,_0xad7215));}return _0x3cd1e2['sort']((_0x1b6974,_0x2b76cc)=>{const _0xd13f7d=_0x3661f6['get'](_0x1b6974),_0x30efce=_0x3661f6['get'](_0x2b76cc);return _0xd13f7d['y']-_0x30efce['y']||_0xd13f7d['x']-_0x30efce['x'];}),(_0x5623c1=_0x5623c1['filter'](_0x69bda3=>_0x3cd1e2['includes'](_0x69bda3['rootName'])))['sort']((_0xa42988,_0x35ed62)=>_0x3cd1e2['indexOf'](_0xa42988['rootName'])-_0x3cd1e2['indexOf'](_0x35ed62['rootName'])),_0x5623c1;}['_makeTape'](_0xfa55f0){const _0x3effe8=Array['from'](_0xfa55f0['markers'])['filter'](([_0x57c76e,_0x5c7fa2])=>_0x57c76e['startsWith']('revision:')&&!_0x5c7fa2['isCollapsed']),_0x4d2bda=Array['from'](this['editor']['model']['createRangeIn'](_0xfa55f0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3effe8['length'])for(const _0x5d0b0 of _0x4d2bda){const [_0x93876c,_0x242d14]=_0x3effe8[0x0],[,_0x168d50,_0x10243a]=_0x93876c['split'](':');if(_0x242d14['end']['isEqual'](_0x5d0b0['nextPosition'])&&_0x3effe8['shift'](),(_0x5d0b0['previousPosition']['isEqual'](_0x242d14['start'])||_0x5d0b0['previousPosition']['isAfter'](_0x242d14['start']))&&('insertion'==_0x168d50?_0x5d0b0['isAdded']={'userId':_0x10243a}:'deletion'==_0x168d50&&(_0x5d0b0['isRemoved']={'userId':_0x10243a})),0x0==_0x3effe8['length'])break;}return _0x4d2bda;}['_refreshStartEndIndex'](_0x5cbc3a){const _0x5c0a55=new Map();for(let _0x1db88b=0x0;_0x1db88b<_0x5cbc3a['length'];_0x1db88b++)'text'===_0x5cbc3a[_0x1db88b]['type']?(_0x5cbc3a[_0x1db88b]['item']['startIndex']=_0x1db88b,_0x5cbc3a[_0x1db88b]['item']['endIndex']=_0x1db88b):('elementStart'===_0x5cbc3a[_0x1db88b]['type']?_0x5cbc3a[_0x1db88b]['item']['startIndex']=_0x1db88b:'elementEnd'===_0x5cbc3a[_0x1db88b]['type']&&(_0x5cbc3a[_0x1db88b]['item']['endIndex']=_0x1db88b),_0x5c0a55['set'](_0x5cbc3a[_0x1db88b]['id'],_0x1db88b));for(const _0x4d804d of _0x5c0a55['values']())'elementStart'===_0x5cbc3a[_0x4d804d]['type']?_0x5cbc3a[_0x4d804d]['item']['endIndex']=_0x5c0a55['get'](_0x5cbc3a[_0x4d804d]['pairId']):'elementEnd'===_0x5cbc3a[_0x4d804d]['type']&&(_0x5cbc3a[_0x4d804d]['item']['startIndex']=_0x5c0a55['get'](_0x5cbc3a[_0x4d804d]['pairId']));}['_processTape'](_0x2dd897){for(let _0x21a77e=0x0;_0x21a77e<_0x2dd897['length'];_0x21a77e++){if('elementStart'===_0x2dd897[_0x21a77e]['type'])_0x2dd897[_0x21a77e]['item']['startIndex']=_0x21a77e;else{if('elementEnd'===_0x2dd897[_0x21a77e]['type']){_0x2dd897[_0x21a77e]['item']['endIndex']=_0x21a77e;const _0x124acf=_0x2dd897[_0x21a77e]['item']['startIndex'];_0x2dd897[_0x124acf]['pairId']=_0x2dd897[_0x21a77e]['id'],_0x2dd897[_0x21a77e]['pairId']=_0x2dd897[_0x124acf]['id'];}else _0x2dd897[_0x21a77e]['item']['startIndex']=_0x21a77e,_0x2dd897[_0x21a77e]['item']['endIndex']=_0x21a77e,_0x2dd897[_0x21a77e]['pairId']=null;}_0x2dd897[_0x21a77e]['markersStart']||(_0x2dd897[_0x21a77e]['markersStart']=[],_0x2dd897[_0x21a77e]['markersEnd']=[]);}}['_markInsertions'](_0x3a1b79,_0x2e7d9b){const _0x4f028f=_0x3a1b79['filter'](_0x54ea42=>!_0x54ea42['isAdded']);for(let _0xe20d47=0x0;_0xe20d47<_0x2e7d9b['length'];_0xe20d47++)_0x2e7d9b[_0xe20d47]['isAdded']&&(_0x4f028f[_0xe20d47]['isAdded']=_0x2e7d9b[_0xe20d47]['isAdded']);}['_getDiff'](_0x1672b2,_0x279708=null){const _0x30f725=this['repository']['getRevision'](_0x1672b2),_0x3a0d0a=_0x279708?this['repository']['getRevision'](_0x279708):null,_0x5c3c9c=this['_getRevisionsRange'](_0x30f725,_0x3a0d0a),_0x1c30da=_0x5c3c9c[_0x5c3c9c['length']-0x1],_0x247f0c=new Map(),_0x56e443={'model':{},'attributes':{},'changes':[]},_0x135fe3=new Set(),_0x5891a2=new Map();for(let _0x4bded0=_0x5c3c9c['length']-0x1;_0x4bded0>=0x0;_0x4bded0--){const _0x104a85=_0x5c3c9c[_0x4bded0];for(const _0x506bca of Object['keys'](_0x104a85['diffData']))if(_0x104a85['diffData'][_0x506bca]['attachChange']){const _0x27b787=_0x104a85['diffData'][_0x506bca]['attachChange'];_0x27b787['isAttached']?(_0x135fe3['add'](_0x506bca),_0x5891a2['has'](_0x506bca)&&_0x5891a2['get'](_0x506bca)['userId']==_0x27b787['userId']?_0x5891a2['delete'](_0x506bca):_0x5891a2['set'](_0x506bca,_0x27b787)):_0x5891a2['has'](_0x506bca)?(_0x135fe3['delete'](_0x506bca),_0x5891a2['delete'](_0x506bca)):(_0x135fe3['add'](_0x506bca),_0x5891a2['set'](_0x506bca,_0x27b787));}else _0x135fe3['add'](_0x506bca);}for(const _0x4c45c6 of _0x135fe3){const _0x459d4d=_0x5891a2['has'](_0x4c45c6)&&!_0x5891a2['get'](_0x4c45c6)['isAttached'];let _0x1507df=_0x459d4d?_0x5c3c9c['length']-0x1:0x0;const _0x2cbb84=_0x459d4d?-0x1:0x1;for(;_0x5c3c9c[_0x1507df];){const _0x1c211a=_0x5c3c9c[_0x1507df];if(_0x1c211a['diffData'][_0x4c45c6]){const _0x246237=_0x459d4d?_0x1c211a['diffData'][_0x4c45c6]['attributesBefore']:_0x1c211a['diffData'][_0x4c45c6]['attributesAfter'];_0x56e443['attributes'][_0x4c45c6]=_0x246237?_0x115d90(_0x246237):{};break;}_0x1507df+=_0x2cbb84;}}for(const _0x2ba182 of _0x5c3c9c){_0x2ba182['model']={};for(const _0x1ff6c0 of _0x2ba182['authors'])_0x247f0c['set'](_0x1ff6c0['id'],_0x1ff6c0);for(const _0x1193f3 of _0x135fe3){const _0x343953=_0x2ba182['diffData'][_0x1193f3]?_0x2ba182['diffData'][_0x1193f3]['insertions']:'[]',_0x526c1a=_0x2ba182['diffData'][_0x1193f3]?_0x2ba182['diffData'][_0x1193f3]['deletions']:'[]';_0x2ba182['model'][_0x1193f3]={'insertions':this['_utils']['_makeModelFromViewString'](_0x343953),'deletions':this['_utils']['_makeModelFromViewString'](_0x526c1a)};}}for(const _0x3998ea of _0x135fe3){let _0x1790fa=null,_0x35c0a5=0x0;const _0x118040=new Map(Array['from'](_0x30f725['model'][_0x3998ea]['insertions']['markers'])['filter'](([_0x2ae8b8])=>!_0x2ae8b8['startsWith']('revision:')));let _0x106113=0x0;for(const _0x8aa9c5 of _0x5c3c9c){const _0x1c4000=this['_makeTape'](_0x8aa9c5['model'][_0x3998ea]['insertions']);_0x8aa9c5==_0x30f725?(_0x1790fa=_0x1c4000,_0x35c0a5=_0x1790fa['length'],_0x1790fa['forEach'](_0x1a9a6a=>{_0x1a9a6a['id']=_0x106113++;}),this['_processTape'](_0x1790fa)):this['_markInsertions'](_0x1790fa,_0x1c4000);const _0x3baacd=_0x1790fa['filter'](_0x4cdbd1=>!_0x4cdbd1['isAdded'])['map'](_0x3c9271=>_0x3c9271['id']);let _0x2ec438=0x0;const _0x499b3f=this['_makeTape'](_0x8aa9c5['model'][_0x3998ea]['deletions']);_0x499b3f['forEach'](_0x648eac=>{_0x648eac['isRemoved']?_0x648eac['id']=_0x35c0a5++:_0x648eac['id']=_0x3baacd[_0x2ec438++];}),this['_processTape'](_0x499b3f),this['_setDistance'](_0x1790fa,'isAdded'),this['_setDistance'](_0x499b3f,'isRemoved'),_0x8aa9c5==_0x30f725&&this['_markMarkers'](_0x1790fa,_0x118040),_0x1790fa=this['_joinTapes'](_0x1790fa,_0x499b3f),this['_refreshStartEndIndex'](_0x1790fa),this['_setDistance'](_0x1790fa,'isRemoved');}_0x1790fa=_0x1790fa['filter'](_0x25bcd7=>!(_0x25bcd7['isAdded']&&_0x25bcd7['isRemoved']));const _0x18124b=new Map(_0x1c30da['model'][_0x3998ea]['deletions']['markers']),_0x5a53e7=new Set(_0x118040['keys']());for(const _0x3440cc of _0x18124b['keys']())_0x5a53e7['delete'](_0x3440cc);this['_markSuggestions'](_0x1790fa,_0x5a53e7),this['_fixObsoleteTags'](_0x1790fa),_0x1790fa=this['_removeMissingPairs'](_0x1790fa),_0x1790fa=this['_markMismatchedRemovedTags'](_0x1790fa),_0x1790fa=this['_removeUnsupportedChanges'](_0x1790fa);const {root:_0x369f70,changes:_0x158efd}=this['_makeModelFromTape'](_0x1790fa,_0x247f0c,_0x3998ea);_0x56e443['model'][_0x3998ea]=_0x369f70;const _0x292874=_0x5891a2['get'](_0x3998ea);if(_0x292874){const _0x158fa1=_0x247f0c['get'](_0x292874['userId']),_0x2300e5=new G({'author':_0x158fa1,'type':_0x292874['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3998ea});_0x158efd['unshift'](_0x2300e5),_0x56e443['attributes'][_0x3998ea]['revisionHistoryAttachChange']=_0x2300e5['id'];}_0x56e443['changes']=_0x56e443['changes']['concat'](_0x158efd);}return _0x56e443;}['_markMarkers'](_0x57f736,_0x33e836){for(let _0x5c2eed=0x0;_0x5c2eed<_0x57f736['length'];_0x5c2eed++)for(const [_0x1642a4,_0x4e2c49]of _0x33e836)!_0x4e2c49['isCollapsed']&&_0x4e2c49['start']['isEqual'](_0x57f736[_0x5c2eed]['previousPosition'])&&_0x57f736[_0x5c2eed]['markersStart']['push'](_0x1642a4),_0x4e2c49['end']['isEqual'](_0x57f736[_0x5c2eed]['nextPosition'])&&_0x57f736[_0x5c2eed]['markersEnd']['push'](_0x1642a4);}['_joinTapes'](_0x66d8c3,_0x4b6713){let _0x221eea=[],_0x317ffa=0x0,_0x42badb=0x0;for(;_0x317ffa<_0x66d8c3['length']||_0x42badb<_0x4b6713['length'];){const _0x2f75de=_0x66d8c3[_0x317ffa]||{},_0x1540af=_0x4b6713[_0x42badb]||{};if(_0x2f75de['id']==_0x1540af['id'])_0x317ffa++,_0x42badb++,_0x221eea['push'](_0x2f75de);else{if(_0x1540af['isRemoved']&&_0x2f75de['isAdded']){const {commonTape:_0x30d1e9,iEnd:_0x19fa1e,jEnd:_0x5b54fc}=this['_threeWayMerge'](_0x66d8c3,_0x317ffa,_0x4b6713,_0x42badb);_0x221eea=_0x221eea['concat'](_0x30d1e9),_0x317ffa=_0x19fa1e,_0x42badb=_0x5b54fc;}else _0x1540af['isRemoved']?(_0x42badb++,_0x221eea['push'](_0x1540af)):(_0x317ffa++,_0x221eea['push'](_0x2f75de));}}return _0x221eea;}['_markSuggestions'](_0x44d158,_0x5b4fc9){const _0x52e5f7=[];for(let _0x5c7b83=0x0;_0x5c7b83<_0x44d158['length'];_0x5c7b83++){for(let _0x5dc3f2=0x0;_0x5dc3f2<_0x44d158[_0x5c7b83]['markersStart']['length'];_0x5dc3f2++){const _0x27c5d5=_0x44d158[_0x5c7b83]['markersStart'][_0x5dc3f2];if(!_0x5b4fc9['has'](_0x27c5d5))continue;const {group:_0x590cb7,type:_0x1f2ba1,authorId:_0x106024}=_0x214458(_0x27c5d5);'revision-suggestion'!=_0x590cb7||'insertion'!=_0x1f2ba1&&'deletion'!=_0x1f2ba1||(_0x52e5f7['unshift']({'type':_0x1f2ba1,'name':_0x27c5d5,'userId':_0x106024}),_0x44d158[_0x5c7b83]['markersStart']['splice'](_0x5dc3f2,0x1),_0x5dc3f2--);}_0x1e536e(_0x44d158[_0x5c7b83]);for(let _0x20e381=0x0;_0x20e381<_0x44d158[_0x5c7b83]['markersEnd']['length'];_0x20e381++){const _0x3e423d=_0x44d158[_0x5c7b83]['markersEnd'][_0x20e381];if(!_0x5b4fc9['has'](_0x3e423d))continue;const {group:_0x44cedb,type:_0x2caf07}=_0x214458(_0x3e423d);if('revision-suggestion'!=_0x44cedb||'insertion'!=_0x2caf07&&'deletion'!=_0x2caf07)continue;_0x44d158[_0x5c7b83]['markersEnd']['splice'](_0x20e381,0x1),_0x20e381--;const _0x4ab327=_0x52e5f7['findIndex'](_0xbc4e57=>_0xbc4e57['name']==_0x3e423d);_0x4ab327>-0x1&&_0x52e5f7['splice'](_0x4ab327,0x1);}}function _0x214458(_0x226d4a){const _0x335869=_0x226d4a['split'](':');return{'group':_0x335869[0x0],'type':_0x335869[0x1],'subType':_0x335869['length']>=0x5?_0x335869[0x2]:null,'id':_0x335869['length']<0x5?_0x335869[0x2]:_0x335869[0x3],'authorId':_0x335869['length']<0x5?_0x335869[0x3]:_0x335869[0x4],'markerCount':0x6==_0x335869['length']?_0x335869[0x5]:null};}function _0x1e536e(_0xa770d8){for(let _0x4c8e36=0x0;_0x4c8e36<_0x52e5f7['length'];_0x4c8e36++){if(_0xa770d8['isAdded']&&'insertion'==_0x52e5f7[_0x4c8e36]['type']&&_0xa770d8['isAdded']['userId']==_0x52e5f7[_0x4c8e36]['userId'])return _0xa770d8['isAddSuggestion']=_0x52e5f7[_0x4c8e36],void delete _0xa770d8['isAdded'];if(!_0xa770d8['isAdded']&&!_0xa770d8['isRemoved']&&'deletion'==_0x52e5f7[_0x4c8e36]['type'])return void(_0xa770d8['isRemoveSuggestion']=_0x52e5f7[_0x4c8e36]);}}}['_setDistance'](_0x4b6542,_0x16f006){let _0x3daa5a=0x0,_0x2992c8=!0x1;const _0x39b31a=new Map();for(const _0x561f09 of _0x4b6542)_0x561f09[_0x16f006]?_0x2992c8&&(_0x3daa5a++,_0x2992c8=!0x1):(_0x3daa5a++,_0x2992c8=!0x0),_0x39b31a['set'](_0x561f09['id'],_0x3daa5a);for(let _0x175bbf=0x0;_0x175bbf<_0x4b6542['length'];_0x175bbf++){if('isRemoved'==_0x16f006&&_0x4b6542[_0x175bbf]['isAdded']||'isAdded'==_0x16f006&&_0x4b6542[_0x175bbf]['isRemoved'])continue;if('text'==_0x4b6542[_0x175bbf]['type']){_0x4b6542[_0x175bbf]['distance']=0x0;continue;}const _0x1396e8=_0x39b31a['get'](_0x4b6542[_0x175bbf]['pairId']),_0x2e293f=_0x39b31a['get'](_0x4b6542[_0x175bbf]['id']);_0x4b6542[_0x175bbf]['distance']=_0x1396e8-_0x2e293f;}}['_getRevisionsRange'](_0x3d625f,_0x5656c9,_0x262765=!0x1){const _0x250232=[];let _0x13030c=this['repository']['getIndex'](_0x3d625f),_0x50ee2d=this['repository']['getIndex'](_0x5656c9);for(-0x1==_0x50ee2d&&(_0x50ee2d=this['repository']['_revisions']['length'],_0x262765=!0x1);_0x13030c<_0x50ee2d;)_0x250232['push'](this['repository']['getRevision'](_0x13030c)),_0x13030c++;return _0x262765&&_0x250232['push'](this['repository']['getRevision'](_0x13030c)),_0x250232;}['_threeWayMerge'](_0x5eb0e2,_0x906f5d,_0x1f62bb,_0xfb10ad){const _0x26416f=this['editor']['model']['schema'];let _0x1f1d1e=_0x906f5d;for(;_0x5eb0e2[_0x1f1d1e]&&_0x5eb0e2[_0x1f1d1e]['isAdded'];)_0x1f1d1e++;let _0xb295c1=_0xfb10ad;for(;_0x1f62bb[_0xb295c1]&&_0x1f62bb[_0xb295c1]['isRemoved'];)_0xb295c1++;_0x551e00(_0x5eb0e2,_0x906f5d,_0x1f1d1e),_0x551e00(_0x1f62bb,_0xfb10ad,_0xb295c1);const _0x5ccfb7=_0x1f62bb['slice'](_0xfb10ad,_0xb295c1)['concat'](_0x5eb0e2['slice'](_0x906f5d,_0x1f1d1e));return _0x5ccfb7['sort']((_0x8f0ec4,_0x3e41fb)=>_0x8f0ec4['side']!=_0x3e41fb['side']?_0x8f0ec4['side']-_0x3e41fb['side']:_0x8f0ec4['level']!=_0x3e41fb['level']?_0x8f0ec4['level']-_0x3e41fb['level']:_0x8f0ec4['distance']!=_0x3e41fb['distance']?_0x3e41fb['distance']-_0x8f0ec4['distance']:!!_0x8f0ec4['isAdded']!=!!_0x3e41fb['isAdded']?-0x1==_0x8f0ec4['side']||0x0==_0x8f0ec4['side']?_0x8f0ec4['isAdded']?-0x1:0x1:_0x8f0ec4['isAdded']?0x1:-0x1:_0x8f0ec4['index']-_0x3e41fb['index']),{'commonTape':_0x5ccfb7,'iEnd':_0x1f1d1e,'jEnd':_0xb295c1};function _0x551e00(_0x67cfe9,_0x183b0f,_0x3f8332){let _0x4b256d=-0x1,_0x25f681=Number['POSITIVE_INFINITY'],_0x4e83c5=!0x0;for(let _0x3f8bd4=_0x183b0f;_0x3f8bd4<_0x3f8332;_0x3f8bd4++)if(_0x26416f['isInline'](_0x67cfe9[_0x3f8bd4]['item'])||(_0x4e83c5=!0x1),_0x67cfe9[_0x3f8bd4]['item']['startIndex']<_0x183b0f&&(_0x4b256d=_0x3f8bd4),_0x67cfe9[_0x3f8bd4]['item']['endIndex']>=_0x3f8332){_0x25f681=_0x3f8bd4;break;}_0x4e83c5&&(_0x4b256d=_0x3f8332-0x1);for(let _0x450554=_0x183b0f;_0x450554<_0x3f8332;_0x450554++)_0x67cfe9[_0x450554]['side']=_0x450554<=_0x4b256d?-0x1:_0x450554<_0x25f681?0x0:0x1,_0x67cfe9[_0x450554]['index']=_0x450554;let _0x33e7a2=0x0;for(let _0x3dd2b2=_0x183b0f;_0x3dd2b2<=_0x4b256d;_0x3dd2b2++)0x0==_0x67cfe9[_0x3dd2b2]['distance']?_0x67cfe9[_0x3dd2b2]['level']=_0x33e7a2:(_0x33e7a2++,_0x67cfe9[_0x3dd2b2]['level']=_0x33e7a2,_0x33e7a2++);for(let _0x1b8eb2=_0x183b0f;_0x1b8eb2<_0x3f8332;_0x1b8eb2++)0x0==_0x67cfe9[_0x1b8eb2]['side']&&(_0x67cfe9[_0x1b8eb2]['level']=_0x33e7a2);_0x33e7a2=0x0;for(let _0xd1d586=_0x3f8332-0x1;_0xd1d586>=_0x25f681;_0xd1d586--)0x0==_0x67cfe9[_0xd1d586]['distance']?_0x67cfe9[_0xd1d586]['level']=_0x33e7a2:(_0x33e7a2--,_0x67cfe9[_0xd1d586]['level']=_0x33e7a2,_0x33e7a2--);}}['_fixObsoleteTags'](_0xa36916){const _0x3a9924=new Map(),_0x431042=this['editor']['model']['schema'];for(let _0x19af11=0x1;_0x19af11<_0xa36916['length'];_0x19af11++){let _0x58f86f,_0x5d6f45,_0x55bc25;const _0x25a3e0=_0xa36916[_0x19af11],_0x58234b=_0xa36916[_0x19af11-0x1];if('text'==_0x25a3e0['type'])continue;if(_0x25a3e0['type']!=_0x58234b['type'])continue;if(!_0x431042['isBlock'](_0x58234b['item'])||_0x431042['isLimit'](_0x58234b['item']))continue;if(!_0x431042['isBlock'](_0x25a3e0['item'])||_0x431042['isLimit'](_0x25a3e0['item']))continue;if((_0xa36916[_0x19af11]['isAdded']||_0xa36916[_0x19af11]['isAddSuggestion'])&&_0xa36916[_0x19af11-0x1]['isRemoved'])_0x58f86f=_0xa36916[_0x19af11],_0x5d6f45=_0xa36916[_0x19af11-0x1],_0x55bc25=_0x19af11-0x1;else{if(!_0xa36916[_0x19af11]['isRemoved']||!_0xa36916[_0x19af11-0x1]['isAdded']&&!_0xa36916[_0x19af11-0x1]['isAddSuggestion'])continue;_0x58f86f=_0xa36916[_0x19af11-0x1],_0x5d6f45=_0xa36916[_0x19af11],_0x55bc25=_0x19af11;}const _0x3b6769=_0x58f86f['level']==_0x5d6f45['level'],_0x4948a7=Math['abs'](_0x58f86f['level'])<Math['abs'](_0x5d6f45['level'])&&0x0==_0x5d6f45['distance'];(_0x3b6769||_0x4948a7)&&(_0x3a9924['set'](_0x5d6f45['id'],_0x58f86f['id']),_0xa36916['splice'](_0x55bc25,0x1),_0x19af11--,_0x58f86f['isAdded']=!0x1);}for(let _0x151d9e=0x0;_0x151d9e<_0xa36916['length'];_0x151d9e++)_0x3a9924['has'](_0xa36916[_0x151d9e]['pairId'])&&(_0xa36916[_0x151d9e]['pairId']=_0x3a9924['get'](_0xa36916[_0x151d9e]['pairId']));}['_removeMissingPairs'](_0x50444c){const _0x83707b=new Set(_0x50444c['map'](_0x14cd51=>_0x14cd51['id']));for(let _0x5f3475=0x0;_0x5f3475<_0x50444c['length'];_0x5f3475++)_0x83707b['has'](_0x50444c[_0x5f3475]['pairId'])||0x0==_0x50444c[_0x5f3475]['distance']||(_0x50444c[_0x5f3475]['isIncorrect']=!0x0);return _0x50444c['filter'](_0x37245f=>!_0x37245f['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1e6948){const _0xbbb041=new Set();for(let _0x5277f0=0x0;_0x5277f0<_0x1e6948['length'];_0x5277f0++){if(_0xbbb041['has'](_0x1e6948[_0x5277f0]['id'])&&_0x1e6948[_0x5277f0]['isRemoved']&&(_0x1e6948[_0x5277f0]['isIncorrect']=!0x0),_0x1e6948[_0x5277f0]['isIncorrect'])continue;if(0x0==_0x1e6948[_0x5277f0]['distance'])continue;if('elementStart'!=_0x1e6948[_0x5277f0]['type'])continue;if(null==_0x1e6948[_0x5277f0]['pairId'])continue;let _0x23f294=_0x5277f0+0x1,_0x9aefc4=0x0;for(;_0x1e6948[_0x23f294]['id']!=_0x1e6948[_0x5277f0]['pairId'];)'elementStart'==_0x1e6948[_0x23f294]['type']?_0x9aefc4++:'elementEnd'==_0x1e6948[_0x23f294]['type']&&_0x9aefc4--,_0x23f294++;if(0x0!=_0x9aefc4){if(_0x1e6948[_0x5277f0]['isRemoved'])_0x1e6948[_0x5277f0]['isIncorrect']=!0x0;else{for(;_0x23f294!=_0x5277f0;)_0x1e6948[_0x23f294]['isRemoved']&&0x0!=_0x1e6948[_0x23f294]['distance']&&(_0x1e6948[_0x23f294]['isIncorrect']=!0x0,_0xbbb041['add'](_0x1e6948[_0x23f294]['pairId'])),_0x23f294--;}}}return _0x1e6948['filter'](_0x56b320=>!_0x56b320['isIncorrect']);}['_removeUnsupportedChanges'](_0x222410){const _0x3e5b36=this['editor']['model']['schema'];for(let _0x426fe7=0x0;_0x426fe7<_0x222410['length'];_0x426fe7++){if(!(_0x222410[_0x426fe7]['isAdded']||_0x222410[_0x426fe7]['isAddSuggestion']||_0x222410[_0x426fe7]['isRemoved']||_0x222410[_0x426fe7]['isRemoveSuggestion']))continue;if(0x0==_0x222410[_0x426fe7]['distance'])continue;const _0x5ca451=_0x222410[_0x426fe7]['item'];_0x3e5b36['isBlock'](_0x5ca451)||_0x3e5b36['isLimit'](_0x5ca451)||(_0x222410[_0x426fe7]['isAdded']&&delete _0x222410[_0x426fe7]['isAdded'],_0x222410[_0x426fe7]['isAddSuggestion']&&delete _0x222410[_0x426fe7]['isAddSuggestion'],_0x222410[_0x426fe7]['isRemoveSuggestion']&&delete _0x222410[_0x426fe7]['isRemoveSuggestion'],_0x222410[_0x426fe7]['isRemoved']&&(_0x222410[_0x426fe7]['isIncorrect']=!0x0));}return _0x222410['filter'](_0x241d51=>!_0x241d51['isIncorrect']);}['_makeModelFromTape'](_0x3b2003,_0x413c8a,_0xa64d85){const _0x2b3ffe=new _0xf3d172(),_0x43a908=[],_0x5e9411=new Map(),_0x1e9a9e=this['editor']['model'],_0x3e4efc=_0x1e9a9e['schema'],_0x512fd3=[_0x2b3ffe],_0x2951f9={},_0x2ab641={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3171be=null;const _0x2a4569=[0x0];for(let _0x392161=0x0;_0x392161<_0x3b2003['length'];_0x392161++)if('elementStart'===_0x3b2003[_0x392161]['type']){_0x3b2003[_0x392161]['previousPosition']=_0x1e9a9e['createPositionFromPath'](_0x2b3ffe,_0x2a4569);const _0x5c34d7=new _0x14fd90(_0x3b2003[_0x392161]['item']['name'],_0x3b2003[_0x392161]['item']['getAttributes']());_0x512fd3[0x0]['_appendChild'](_0x5c34d7),_0x2a4569['push'](0x0),_0x512fd3['unshift'](_0x5c34d7),_0x3b2003[_0x392161]['nextPosition']=_0x1e9a9e['createPositionFromPath'](_0x2b3ffe,_0x2a4569);}else'elementEnd'===_0x3b2003[_0x392161]['type']?(_0x512fd3['shift'](),_0x3b2003[_0x392161]['previousPosition']=_0x1e9a9e['createPositionFromPath'](_0x2b3ffe,_0x2a4569),_0x2a4569['pop'](),_0x2a4569[_0x2a4569['length']-0x1]++,_0x3b2003[_0x392161]['nextPosition']=_0x1e9a9e['createPositionFromPath'](_0x2b3ffe,_0x2a4569)):(_0x3b2003[_0x392161]['previousPosition']=_0x1e9a9e['createPositionFromPath'](_0x2b3ffe,_0x2a4569),_0x3171be?_0x3171be['_data']+=_0x3b2003[_0x392161]['item']['data']:_0x3171be=new _0xe3cd6f(_0x3b2003[_0x392161]['item']['data'],_0x3b2003[_0x392161]['item']['getAttributes']()),_0x3b2003[_0x392161+0x1]&&'text'===_0x3b2003[_0x392161+0x1]['type']&&_0x1effd8(_0x3171be,_0x3b2003[_0x392161+0x1]['item'])||(_0x512fd3[0x0]['_appendChild'](_0x3171be),_0x3171be=null),_0x2a4569[_0x2a4569['length']-0x1]+=_0x3b2003[_0x392161]['item']['offsetSize'],_0x3b2003[_0x392161]['nextPosition']=_0x1e9a9e['createPositionFromPath'](_0x2b3ffe,_0x2a4569));for(let _0x4c2581=0x0;_0x4c2581<_0x3b2003['length'];_0x4c2581++){const _0x2ce0bf=_0x3b2003[_0x4c2581]['previousPosition'],_0x227939=_0x3b2003[_0x4c2581]['nextPosition'];for(const _0x55679c of _0x3b2003[_0x4c2581]['markersStart'])_0x5e9411['set'](_0x55679c,{'start':_0x2ce0bf,'end':null});_0x305e18('isRemoveSuggestion',_0x4c2581,_0x2ce0bf,_0x227939),_0x305e18('isAddSuggestion',_0x4c2581,_0x2ce0bf,_0x227939),_0x305e18('isRemoved',_0x4c2581,_0x2ce0bf,_0x227939),_0x305e18('isAdded',_0x4c2581,_0x2ce0bf,_0x227939);for(const _0x23a257 of _0x3b2003[_0x4c2581]['markersEnd']){const _0x34a800=_0x5e9411['get'](_0x23a257);_0x34a800?_0x34a800['end']=_0x227939:_0x5e9411['set'](_0x23a257,{'start':_0x227939,'end':_0x227939});}}for(const [_0x8b83a8,_0x453f72]of _0x5e9411){const _0x236e7c=this['editor']['model']['createRange'](_0x453f72['start'],_0x453f72['end']);_0x2b3ffe['markers']['set'](_0x8b83a8,_0x236e7c);}return _0x43a908['sort']((_0x1cdef4,_0x3b2cd1)=>{const _0x1f433e=_0x2b3ffe['markers']['get']('revision:'+_0x1cdef4['id']),_0x5ae86c=_0x2b3ffe['markers']['get']('revision:'+_0x3b2cd1['id']);return _0x1f433e['start']['isBefore'](_0x5ae86c['start'])?-0x1:_0x1f433e['start']['isAfter'](_0x5ae86c['start'])?0x1:_0x1f433e['end']['isBefore'](_0x5ae86c['end'])?-0x1:_0x1f433e['end']['isAfter'](_0x5ae86c['end'])?0x1:'add'===_0x1cdef4['type']?-0x1:0x1;}),{'root':_0x2b3ffe,'changes':_0x43a908};function _0x305e18(_0x48ed19,_0x483a97,_0x61b641,_0x1fca36){const _0xf568c8=!!_0x3b2003[_0x483a97][_0x48ed19],_0x5c1783=_0xf568c8?_0x3b2003[_0x483a97][_0x48ed19]['userId']:null,_0x4b4918=_0x483a97===_0x3b2003['length']-0x1,_0x3145ea=_0x2ab641[_0x48ed19][0x0],_0x4d059f=_0x3e4efc['isObject'](_0x3b2003[_0x483a97]['item']);!_0x2951f9[_0x48ed19]&&_0xf568c8?_0x2951f9[_0x48ed19]={'start':_0x61b641,'tapeItem':_0x3b2003[_0x483a97],'userId':_0x5c1783,'type':_0x48ed19}:_0x2951f9[_0x48ed19]&&!_0xf568c8?(_0x2951f9[_0x48ed19]['end']=_0x61b641,_0x556bf7(_0x2951f9[_0x48ed19]),_0x2951f9[_0x48ed19]=null):_0x2951f9[_0x48ed19]&&_0xf568c8&&_0x2951f9[_0x48ed19]['userId']!==_0x5c1783&&(_0x2951f9[_0x48ed19]['end']=_0x61b641,_0x3145ea&&_0x3145ea['userId']===_0x2951f9[_0x48ed19]['userId']||_0x556bf7(_0x2951f9[_0x48ed19]),_0x2951f9[_0x48ed19]={'start':_0x61b641,'tapeItem':_0x3b2003[_0x483a97],'userId':_0x5c1783,'type':_0x48ed19}),_0x2951f9[_0x48ed19]&&_0x4d059f&&('elementStart'!==_0x3b2003[_0x483a97]['type']||_0x3145ea&&_0x3145ea['userId']===_0x5c1783||_0x2ab641[_0x48ed19]['unshift']({'userId':_0x5c1783,'object':_0x3b2003[_0x483a97]['item'],'change':_0x2951f9[_0x48ed19]}),'elementEnd'===_0x3b2003[_0x483a97]['type']&&_0x3145ea&&_0x3145ea['object']===_0x3b2003[_0x483a97]['item']&&(_0x2ab641[_0x48ed19]['shift'](),_0x2951f9[_0x48ed19]=_0x3145ea['change'])),_0x2951f9[_0x48ed19]&&_0x4b4918&&(_0x2951f9[_0x48ed19]['end']=_0x1fca36,_0x556bf7(_0x2951f9[_0x48ed19]),_0x2951f9[_0x48ed19]=null);}function _0x556bf7({start:_0x1c6c86,end:_0x42d763,tapeItem:_0x36ce57,userId:_0x25ebbe,type:_0xc15fa9}){const _0x1c7d10=_0x36ce57['item'],_0x554264=_0x1e9a9e['schema']['isBlock'](_0x1c7d10)&&!_0x1e9a9e['schema']['isLimit'](_0x1c7d10),_0x3ae7fd=_0x1c6c86['nodeAfter']==_0x42d763['parent']&&_0x42d763['isAtStart'];if(_0x554264&&_0x3ae7fd)return;const _0x291aca=_0x1e9a9e['createRange'](_0x1c6c86,_0x42d763),_0x20726b=_0x413c8a['get'](_0x25ebbe),_0x293c44=new G({'author':_0x20726b,'type':'isAdded'==_0xc15fa9||'isAddSuggestion'==_0xc15fa9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xc15fa9||'isRemoveSuggestion'==_0xc15fa9},'createdAt':new Date(),'rootName':_0xa64d85});_0x43a908['push'](_0x293c44),_0x2b3ffe['markers']['set']('revision:'+_0x293c44['id'],_0x291aca);}function _0x1effd8(_0xde1510,_0x2392ce){const _0x5d1f71=_0xde1510['getAttributes'](),_0x37534c=_0x2392ce['getAttributes']();for(const _0x32af2d of _0x5d1f71){if(_0x32af2d[0x1]!==_0x2392ce['getAttribute'](_0x32af2d[0x0]))return!0x1;_0x37534c['next']();}return _0x37534c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4c2361=>{const _0x4a1f3b=_0x4c2361['markerName']['split'](':')[0x1],_0x30f974=this['_getChangeFromId'](_0x4a1f3b);if(!_0x30f974)return null;const _0x5ab9a2='add'==_0x30f974['type']?'insertion':'deletion',_0x26a829=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5ab9a2];return _0x30f974['data']['isSuggestion']&&_0x26a829['push']('ck-suggestion-marker-'+_0x5ab9a2+'-new'),this['activeChange']==_0x30f974&&_0x26a829['push']('ck-suggestion-marker--active'),{'classes':_0x26a829,'attributes':{'data-change-id':_0x4a1f3b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x36325a=>{_0x36325a['on']('element:pre',(_0x1102c8,_0x1aa5fd,_0x132a08)=>{const _0x1fe88b=_0x1aa5fd['viewItem']['getChild'](0x0);if(!_0x1fe88b||!_0x1fe88b['is']('element','code'))return;if(!_0x132a08['consumable']['consume'](_0x1fe88b,{'attributes':['vid_start','vid_end']}))return;const _0x5cb20a=_0x1aa5fd['modelRange']['start']['nodeAfter'];_0x132a08['writer']['setAttribute']('vid_start',_0x1fe88b['getAttribute']('vid_start'),_0x5cb20a),_0x132a08['writer']['setAttribute']('vid_end',_0x1fe88b['getAttribute']('vid_end'),_0x5cb20a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x190aa4=>{_0x190aa4['on']('element',(_0x3ea1b4,_0x1e7c3f,_0x1b1dae)=>{if(!_0x1b1dae['consumable']['consume'](_0x1e7c3f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1e7c3f['modelRange']['isCollapsed'])return;const _0x265160=_0x1e7c3f['modelRange']['start']['nodeAfter'];_0x265160['hasAttribute']('vid_start')||_0x265160['hasAttribute']('vid')||(_0x1b1dae['writer']['setAttribute']('vid_start',_0x1e7c3f['viewItem']['getAttribute']('vid_start'),_0x265160),_0x1b1dae['writer']['setAttribute']('vid_end',_0x1e7c3f['viewItem']['getAttribute']('vid_end'),_0x265160));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xe08050=>_0xe08050['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3e845b,[,_0x413e0c])=>{['vid_start','vid_end','vid']['includes'](_0x413e0c)&&(_0x3e845b['return']=!0x0,_0x3e845b['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x124197=>{_0x124197['on']('attribute:vid',(_0x3d75c3,_0x54e4e0,_0x4579ac)=>{if('\x20'!=_0x54e4e0['item']['data']||_0x54e4e0['item']['parent']['maxOffset']>0x1)return;if(!_0x4579ac['consumable']['consume'](_0x54e4e0['item'],_0x3d75c3['name']))return;const _0x279faa=_0x4579ac['writer'],_0x3d58b2=_0x4579ac['mapper']['toViewRange'](_0x54e4e0['range']);_0x279faa['wrap'](_0x3d58b2,_0x279faa['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x511e65){const _0x4f270c=_0x511e65['plugins']['get']('RevisionViewer');return(_0x9c8d17,_0x247104,_0x1e5dc5)=>{const _0x5be0f2=_0x247104['markerName']['split'](':')[0x1],_0x1230e7=_0x4f270c['_getChangeFromId'](_0x5be0f2);if(!_0x1230e7)return null;const _0x324350='add'==_0x1230e7['type']?'split':'merge';if(!_0x1e5dc5['consumable']['test'](_0x247104['markerRange'],_0x9c8d17['name']))return;const _0xd3e2d7=_0x247104['markerRange']['getWalker'](),_0x12d9f0=_0x247104['markerRange']['start'],_0x3189ce=_0x511e65['model']['schema'];let _0x4bbbf6=null,_0x50b813=null,_0x3a88cb=!0x1,_0x56a61b=!0x1;for(const _0x87e39e of _0xd3e2d7){const _0x4847cc=_0x87e39e['item'];_0x3a88cb=_0x3a88cb||_0x3189ce['isContent'](_0x4847cc);const _0x2d1088=_0x1e5dc5['mapper']['toViewElement'](_0x4847cc);if(_0x2d1088&&_0x2d1088['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x87e39e['type']&&(_0x3189ce['isBlock'](_0x4847cc)&&!_0x3189ce['isLimit'](_0x4847cc)&&(_0x4847cc['nextSibling']||_0x12d9f0['isAtEnd']?_0x4bbbf6&&_0x4bbbf6['parent']==_0x4847cc||(_0x4bbbf6=_0x4847cc,_0xe757e1(_0x87e39e['previousPosition']),_0x56a61b=!0x0):_0x50b813=_0x50b813||_0x87e39e['previousPosition']));}function _0xe757e1(_0x2ccbed){const _0x2c2d70=_0x1e5dc5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x324350}),_0x5cb422=_0x1e5dc5['mapper']['toViewPosition'](_0x2ccbed);_0x1230e7['data']['isSuggestion']&&_0x1e5dc5['writer']['addClass']('ck-suggestion-marker-'+_0x324350+'-new',_0x2c2d70),_0x4f270c['activeChange']==_0x1230e7&&_0x1e5dc5['writer']['addClass']('ck-suggestion-marker--active',_0x2c2d70),_0x1e5dc5['writer']['insert'](_0x5cb422,_0x2c2d70),_0x1e5dc5['mapper']['bindElementToMarker'](_0x2c2d70,_0x247104['markerName']);}_0x3a88cb||_0x56a61b||!_0x50b813||_0xe757e1(_0x50b813);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xaf129c,_0x5b371d,_0x4ca572)=>{const _0x2925ae=_0x4ca572['mapper']['markerNameToElements'](_0x5b371d['markerName']);if(_0x2925ae){for(const _0x47d371 of _0x2925ae)(_0x47d371['hasClass']('ck-suggestion-marker-split')||_0x47d371['hasClass']('ck-suggestion-marker-merge'))&&(_0x4ca572['mapper']['unbindElementFromMarkerName'](_0x47d371,_0x5b371d['markerName']),_0x4ca572['writer']['remove'](_0x47d371));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x399dc5,_0x3a1f04,_0x10936f)=>{const _0x46167e=_0x3a1f04['markerName']['split'](':')[0x1],_0x59c051=this['_getChangeFromId'](_0x46167e);if(!_0x59c051)return null;const _0x2a1e29='add'==_0x59c051['type']?'split':'merge';if(_0x10936f['consumable']['test'](_0x3a1f04['markerRange'],_0x399dc5['name']))for(const _0x133628 of _0x3a1f04['markerRange']['getItems']()){if(!_0x133628['is']('element','softBreak'))continue;const _0x5206e1=_0x10936f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a1e29}),_0x22fabc=_0x10936f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x133628));_0x59c051['data']['isSuggestion']&&_0x10936f['writer']['addClass']('ck-suggestion-marker-'+_0x2a1e29+'-new',_0x5206e1),this['activeChange']==_0x59c051&&_0x10936f['writer']['addClass']('ck-suggestion-marker--active',_0x5206e1),_0x10936f['writer']['insert'](_0x22fabc,_0x5206e1),_0x10936f['mapper']['bindElementToMarker'](_0x5206e1,_0x3a1f04['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x432d92=>{for(const _0x20e622 of this['editor']['model']['document']['getRootNames']()){const _0x1a0d8d=this['editor']['model']['document']['getRoot'](_0x20e622),_0x7061f6=this['editor']['editing']['view']['document']['getRoot'](_0x20e622);if(_0x7061f6){const _0x21b2dd=_0x1a0d8d['getAttribute']('revisionHistoryAttachChange');if(_0x432d92['removeAttribute']('data-change-id',_0x7061f6),_0x432d92['removeClass']('ck-revision-history-root-add',_0x7061f6),_0x432d92['removeClass']('ck-revision-history-root-remove',_0x7061f6),_0x432d92['removeClass']('ck-revision-history-root--active',_0x7061f6),_0x21b2dd){const _0x4f29ac=this['_getChangeFromId'](_0x21b2dd);if(!_0x4f29ac)return null;_0x432d92['setAttribute']('data-change-id',_0x21b2dd,_0x7061f6),_0x432d92['addClass']('ck-revision-history-root-'+_0x4f29ac['type'],_0x7061f6),this['activeChange']==_0x4f29ac&&_0x432d92['addClass']('ck-revision-history-root--active',_0x7061f6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3ac67e=>'revision-comment:'+_0x3ac67e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xb8e05e=>'revision-suggestion:'+_0xb8e05e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x913603=>({'name':'suggestion:'+_0x913603,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x312133=>{const _0x2d55ee=_0x312133['markerName']['split'](':')[0x1];return'insertion'!=_0x2d55ee&&'deletion'!=_0x2d55ee?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2d55ee]};}}),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',(_0x303b7c,_0x1bc1fa,_0x7b79fc)=>{const _0x38af62=_0x7b79fc['mapper']['markerNameToElements'](_0x1bc1fa['markerName']);if(_0x38af62){for(const _0xb41c07 of _0x38af62)_0xb41c07['is']('uiElement')&&(_0x7b79fc['mapper']['unbindElementFromMarkerName'](_0xb41c07,_0x1bc1fa['markerName']),_0x7b79fc['writer']['remove'](_0xb41c07));}},{'priority':'high'});}['_getChangeFromId'](_0x456642){return this['_changeIdToChange']['get'](_0x456642);}['_getViewForChange'](_0x1ace83){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x1ace83),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xa743a4,_0x368694,_0x30b176,_0x53fd60)=>{_0x53fd60&&this['_balloon']['remove'](_0x53fd60),_0x30b176&&(this['_balloon']['add']({'view':_0x30b176,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x242cb9=this['editor']['editing'],_0x11015d=this['_getChangeFromId'](_0x30b176['changeId']);let _0x29a324;if(_0x11015d['data']['isOnRoot']){const _0x44ab7b=_0x242cb9['view']['getDomRoot'](_0x11015d['rootName']);_0x29a324=Array['from'](_0x44ab7b['getClientRects']());}else{const _0xb59782=this['editor']['model']['markers']['get']('revision:'+_0x30b176['changeId']);_0x29a324=Array['from'](_0x242cb9['mapper']['markerNameToElements'](_0xb59782['name']))['map'](_0x402b65=>_0x242cb9['view']['domConverter']['mapViewToDom'](_0x402b65))['map'](_0x48387b=>Array['from'](_0x48387b['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x29a324[0x0];return _0x29a324['find'](_0x260c85=>_0x260c85['top']-0x3<=this['_activeViewTarget']['y']&&_0x260c85['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x260c85['left']-0x3<=this['_activeViewTarget']['x']&&_0x260c85['right']+0x3>=this['_activeViewTarget']['x'])||_0x29a324[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xf281fd,_0x48a76a,_0x2698b3,_0x2ce6d4)=>{this['activeView']=_0x2698b3?this['_getViewForChange'](_0x2698b3):null,this['editor']['model']['change'](()=>{const _0x309ed8=this['editor']['editing'];_0x2ce6d4&&(_0x2ce6d4['data']['isOnRoot']?_0x309ed8['view']['change'](_0x67d60a=>{_0x67d60a['removeClass']('ck-revision-history-root--active',_0x309ed8['view']['document']['getRoot'](_0x2ce6d4['rootName']));}):_0x309ed8['reconvertMarker']('revision:'+_0x2ce6d4['id'])),_0x2698b3&&(_0x2698b3['data']['isOnRoot']?_0x309ed8['view']['change'](_0x4d93ee=>{_0x4d93ee['addClass']('ck-revision-history-root--active',_0x309ed8['view']['document']['getRoot'](_0x2698b3['rootName']));}):_0x309ed8['reconvertMarker']('revision:'+_0x2698b3['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x477090,_0x1c3c8f)=>{if(this['activeChange'])return;const _0x59c121=this['_findChangeIdFromDomTarget'](_0x1c3c8f['target']),_0x9439b0=this['_changeIdToChange']['get'](_0x59c121);_0x9439b0?(this['_activeViewTarget']={'x':_0x1c3c8f['domEvent']['x'],'y':_0x1c3c8f['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x9439b0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x169684,_0x5515ee)=>{const _0x5719c1=this['_findChangeIdFromDomTarget'](_0x5515ee['target']),_0x2a16c8=this['_changeIdToChange']['get'](_0x5719c1);_0x2a16c8?(this['_activeViewTarget']={'x':_0x5515ee['domEvent']['x'],'y':_0x5515ee['domEvent']['y']},_0x2a16c8===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2a16c8):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x351b32){do{const _0x4cbd32=_0x351b32['getAttribute']('data-change-id');if(_0x4cbd32)return _0x4cbd32;_0x351b32=_0x351b32['parent'];}while(_0x351b32);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x35e31c=>{for(const _0x1bd807 of this['editor']['model']['markers'])_0x35e31c['removeMarker'](_0x1bd807);});}}function Q(_0x8cc761,_0x51858d){return(_0x2c02ae,_0x52832c,_0x41760b)=>{if(!_0x41760b['consumable']['test'](_0x52832c['markerRange'],_0x2c02ae['name']))return;const _0x35d578=_0x52832c['markerRange']['getWalker'](),_0x6bf622=_0x52832c['markerRange']['start'],_0x3fd574=_0x8cc761['model']['schema'];let _0x3ccd29=null,_0xee8518=null,_0xf8804e=!0x1,_0x54e929=!0x1;for(const _0x40665f of _0x35d578){const _0x45c161=_0x40665f['item'];_0xf8804e=_0xf8804e||_0x3fd574['isContent'](_0x45c161);const _0x8c419d=_0x41760b['mapper']['toViewElement'](_0x45c161);if(_0x8c419d&&_0x8c419d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x40665f['type']&&(_0x3fd574['isBlock'](_0x45c161)&&!_0x3fd574['isLimit'](_0x45c161)&&(_0x45c161['nextSibling']||_0x6bf622['isAtEnd']?_0x3ccd29&&_0x3ccd29['parent']==_0x45c161||(_0x3ccd29=_0x45c161,_0x1c83cf(_0x40665f['previousPosition']),_0x54e929=!0x0):_0xee8518=_0xee8518||_0x40665f['previousPosition']));}function _0x1c83cf(_0x8029a9){const _0x340317=_0x41760b['mapper']['toViewPosition'](_0x8029a9),_0x180fd3=_0x41760b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x51858d});_0x41760b['writer']['insert'](_0x340317,_0x180fd3),_0x41760b['mapper']['bindElementToMarker'](_0x180fd3,_0x52832c['markerName']);}_0xf8804e||_0x54e929||!_0xee8518||_0x1c83cf(_0xee8518);};}class nt extends _0x3687d4{constructor(_0x437224){super(_0x437224);const _0x21f91c=_0x437224['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x21f91c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x21f91c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x44a737=this['editor'],_0x562cb9=_0x44a737['plugins']['get'](u),_0x181025=_0x562cb9['isReady']?_0x562cb9['diff']['newRevisionId']:null;_0x44a737['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x181025);}['refresh'](){const {isReady:_0x2bfc16,isEnabled:_0x5a9d38,repository:_0x3e8ca1,diff:_0x1f4b64}=this['editor']['plugins']['get'](u),_0x176d46=_0x1f4b64&&_0x3e8ca1['getLaterVisibleRevision'](_0x1f4b64['newRevisionId']);this['isEnabled']=_0x2bfc16&&_0x5a9d38&&Boolean(_0x176d46);}}class rt extends _0x3687d4{['_step'];constructor(_0x36f290,{direction:_0x569451}){super(_0x36f290);const _0x5846dd=_0x36f290['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x569451?0x1:-0x1,this['listenTo'](_0x5846dd,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5846dd,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5846dd,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x434649=this['editor'],_0x570733=_0x434649['plugins']['get'](u),{isNavigationMode:_0x51a5b8,currentChangeNumber:_0x2c0336}=_0x570733;let _0xdd603e;if(_0x570733['activeChange']=_0x51a5b8?_0x570733['diff']['changes']['get'](_0x2c0336+this['_step']):_0x570733['diff']['changes']['first'],_0x570733['activeChange']['data']['isOnRoot'])_0xdd603e=_0x434649['editing']['view']['getDomRoot'](_0x570733['activeChange']['rootName']);else{const _0x470fd6=_0x434649['model']['markers']['get']('revision:'+_0x570733['activeChange']['id']);_0xdd603e=_0x37341c(_0x434649['editing'],_0x470fd6);}_0x57502f({'target':_0xdd603e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x26dccd,currentChangeNumber:_0x1839e5,numberOfChanges:_0x1c5ec4,isReady:_0x24cf91,isEnabled:_0x336776}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x336776&&_0x24cf91&&_0x1c5ec4)&&(!_0x26dccd||(0x1===this['_step']?_0x1839e5<_0x1c5ec4-0x1:_0x1839e5>0x0));}}class Ri extends _0x5f53a2{constructor(_0x5a6c83){super(_0x5a6c83);const _0x2b1351=this['bindTemplate'],_0x3ce004=new _0x5108a7(_0x5a6c83),_0x17797f=new _0x5108a7(_0x5a6c83);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',(_0x3a3c50,_0x3ef14a)=>_0x3a3c50&&_0x3ef14a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x14e9b0,_0x2d0b77,_0x1263b5,_0x437974)=>{if(!_0x14e9b0)return m(_0x5a6c83,'Loading...');if(!_0x1263b5)return m(_0x5a6c83,'No\x20changes');const _0x4ab1fc=m(_0x5a6c83,'NUMBER_OF_CHANGES',_0x1263b5);return _0x437974?m(_0x5a6c83,'X_OF_Y_CHANGES',[_0x2d0b77+0x1,_0x1263b5]):_0x4ab1fc;}),_0x3ce004['set']({'label':m(_0x5a6c83,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x592aca}),_0x17797f['set']({'label':m(_0x5a6c83,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x31f17d}),_0x3ce004['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x17797f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3ce004['on']('execute',()=>this['fire']('execute','backward')),_0x17797f['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',_0x2b1351['if']('_isStatusLabelVisible','ck-hidden',_0x255f1f=>!_0x255f1f)]},'children':[{'text':_0x2b1351['to']('isNavigationMode',_0x21b1ab=>_0x21b1ab?m(_0x5a6c83,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5a6c83,'Total')+':\x20')}]},{'text':_0x2b1351['to']('_statusText')}]},new _0x3f3ce6(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3ce004,_0x17797f]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x439397{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x58fec0=this['editor']['editing']['view'];_0x58fec0['change'](_0x5e366d=>{for(const _0x29b228 of _0x58fec0['document']['roots'])_0x5e366d['addClass'](ge,_0x29b228);});}['hide'](){const _0x4c0a8c=this['editor']['editing']['view'];_0x4c0a8c['change'](_0xb6ecb0=>{for(const _0x115afc of _0x4c0a8c['document']['roots'])_0xb6ecb0['removeClass'](ge,_0x115afc);});}}class v extends _0x439397{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x52ce24=this['editor'],_0x77aff3=_0x52ce24['plugins']['get'](u),_0x42db88=_0x52ce24['plugins']['get'](ji);_0x52ce24['ui']['componentFactory']['add']('exitToEditing',_0x2bdc7f=>{const _0x3d4cc0=new _0x5108a7(_0x2bdc7f);return _0x3d4cc0['set']({'label':m(_0x2bdc7f,'Back\x20to\x20editing'),'icon':_0x4f5970,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3d4cc0,'execute',()=>{_0x52ce24['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3d4cc0;}),_0x52ce24['ui']['componentFactory']['add']('restoreRevision',_0x4b05a7=>{const _0x140563=new _0x5108a7(_0x4b05a7);return _0x140563['set']({'label':m(_0x4b05a7,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x140563['bind']('isEnabled')['to'](_0x52ce24['commands']['get']('restoreRevision')),this['listenTo'](_0x140563,'execute',()=>_0x52ce24['execute']('restoreRevision')),_0x140563;}),_0x52ce24['ui']['componentFactory']['add']('changesNavigation',_0x43e096=>{const _0x361444=new Ri(_0x43e096),_0xcc2cdd=_0x52ce24['commands']['get']('showPreviousChange'),_0x2006ce=_0x52ce24['commands']['get']('showNextChange');return _0x361444['bind']('isBackwardNavigationEnabled')['to'](_0xcc2cdd,'isEnabled'),_0x361444['bind']('isForwardNavigationEnabled')['to'](_0x2006ce,'isEnabled'),_0x361444['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x77aff3),this['listenTo'](_0x361444,'execute',(_0x3f1ef1,_0x5ef24d)=>{_0x52ce24['execute']('forward'===_0x5ef24d?'showNextChange':'showPreviousChange');}),_0x361444;}),_0x42db88['show'](),_0x77aff3['on']('change:isReady',(_0x2dee9f,_0x64f9c5,_0xb83149)=>{_0xb83149?_0x42db88['hide']():_0x42db88['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x45074a,_0x5516a4){super(_0x45074a,_0x5516a4);const _0x4c44ae=this['bindTemplate'];this['set']({'label':m(_0x45074a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x45074a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4c44ae['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 _0x16b933=this['fieldView']['element'];this['_tooltipString']=_0x16b933['scrollWidth']>_0x16b933['clientWidth']&&_0x16b933['value']||'';}}class ni extends _0x5f53a2{constructor(_0x4d69f2,_0x20e821,_0x5a9d4d){super(_0x4d69f2);const _0x21e0bb=new _0x243002();_0x21e0bb['set']({'content':_0x24ea6a,'viewBox':'0\x200\x2011\x2010'});const _0x122f95=['ck','ck-revision-history-sidebar__revision-author'];_0x5a9d4d&&_0x122f95['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1582b5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4d69f2,_0x5a9d4d?'Revision\x20creator':'Revision\x20author')},'children':[_0x21e0bb,_0x20e821['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x122f95},'children':_0x1582b5});}}function ai(_0xe8a835,_0x4ee62b){const _0x4cd15f=_0xe8a835['bindTemplate'],_0x3f0005=_0xe8a835['locale'],_0x402f9b=_0x488b40(_0x3f0005);_0x402f9b['panelPosition']='sw';const _0x3425c5=function(_0x11c4b4,_0x117dcd){const _0x1eb95b=function(_0x2ce67b,_0xc69ce1){const _0xb4a546=_0x2ce67b['locale'],_0x49131f={'Compare\x20against\x20selected':m(_0xb4a546,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xb4a546,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xb4a546,'Restore\x20this\x20revision')};return _0xc69ce1['map'](_0x15bfed=>{const _0xc020dc=_0x49131f[_0x15bfed['name']];return _0xc020dc&&_0xc020dc!==_0x15bfed['name']&&(_0x15bfed['name']=_0xc020dc),_0x15bfed;});}(_0x11c4b4,_0x117dcd),_0x50d36a=new _0x480dd0();for(const _0x28b062 of _0x1eb95b){const _0x41e2eb={'type':'button','model':new to({'label':_0x28b062['name'],'class':_0x28b062['class'],'withText':!0x0,'role':'menuitem','_action':_0x28b062['action']})};_0x41e2eb['model']['bind']('isEnabled')['to'](_0x11c4b4,'isActionsDropdownOpen',_0x4540d1=>'function'!=typeof _0x28b062['isEnabled']||(!_0x4540d1||_0x28b062['isEnabled'](_0x11c4b4))),_0x50d36a['add'](_0x41e2eb);}return _0x50d36a;}(_0xe8a835,_0x4ee62b);return _0xe8a835['bind']('isActionsDropdownOpen')['to'](_0x402f9b,'isOpen'),_0x402f9b['buttonView']['set']({'label':m(_0x3f0005,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2761e7}),_0x402f9b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4cd15f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4cd15f['to'](_0x4abc2e=>_0x4abc2e['stopPropagation']())}}),_0x402f9b['on']('execute',_0xdc5279=>{_0xe8a835['isReady']&&'function'==typeof _0xdc5279['source']['_action']&&_0xdc5279['source']['_action'](_0xe8a835);}),_0x150c07(_0x402f9b,_0x3425c5,{'role':'menu'}),_0x402f9b['listenTo'](_0xe8a835,'change:isActionsDropdownOpen',(_0x3a9b38,_0x1dcb1e,_0x237a00)=>{if(_0x237a00)for(const _0x12e62f of _0x402f9b['listView']['items']){const _0xe3bf4c=_0x12e62f['children']['first'],_0x3a84fb=_0x4ee62b['find'](_0x372719=>_0x372719['action']===_0xe3bf4c['_action'])['isVisible'];_0x12e62f['isVisible']=void 0x0===_0x3a84fb||_0x3a84fb(_0xe8a835);}}),_0x402f9b;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x113f03,uid as _0x532896,Collection as _0x504df2,logWarning as _0x47c187,FocusTracker as _0x30890a,KeystrokeHandler as _0x34a3da,scrollViewportToShowTarget as _0x3a5a7e,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x1d6810}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x83ca90,set as _0x4fdd88,unset as _0x48e3b0,isEqual as _0x3c0bf9}from'es-toolkit/compat';import{Plugin as _0xbe21c4,PendingActions as _0x71dee9,Command as _0x4856a5,ElementApiMixin as _0x28570d,Editor as _0x1dbeab}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x416e9c,getMarkerDomElement as _0x1f08bc,ConfirmMixin as _0x43b418,sanitizeEditorConfig as _0x45ed39}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x184b8e,ViewAttributeElement as _0x1205ba,ViewEmptyElement as _0x470df9,ViewRawElement as _0x510a8d,ViewUIElement as _0x4555eb,ViewDocumentFragment as _0x164cef,ViewText as _0x4e7f12,ViewElement as _0x451dcb,ModelElement as _0x36b445,ModelRange as _0xb3cd0f,ModelPosition as _0x517828,ModelDocumentFragment as _0x8c84c8,ModelText as _0x367598}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x672cd0,IconChevronUp as _0x4fea33,IconChevronDown as _0xaf50d4,IconUndo as _0x31592a,IconUser as _0x21d8a3,IconThreeVerticalDots as _0x3f675d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x5aa04a,View as _0x4eb8a3,submitHandler as _0xccd7c3,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x1e23a0,ListView as _0x4b2173,ListItemView as _0x55af41,ButtonView as _0x41a1a9,MenuBarMenuView as _0x22ce88,MenuBarMenuListView as _0x3b6094,MenuBarMenuListItemView as _0x360a69,MenuBarMenuListItemButtonView as _0x1b7074,ContextualBalloon as _0x3e3e3f,ToolbarSeparatorView as _0x4bb486,IconView as _0x517cab,addListToDropdown as _0x105741,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x20cce1,StickyPanelView as _0x82d6c7,ToolbarView as _0x392eb7,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x275244}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x113f03(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x122a79){super(),this['id']=_0x122a79['id']||_0x532896(),this['creator']=_0x122a79['creator']||null,this['authors']=_0x122a79['authors']||[],this['diffData']=_0x122a79['diffData']||null,this['toVersion']=_0x122a79['toVersion']||0x0,this['fromVersion']=_0x122a79['fromVersion']||0x0,this['set']('name',_0x122a79['name']||''),this['set']('createdAt',_0x122a79['createdAt']||new Date()),this['set']('attributes',_0x122a79['attributes']||{});}['setName'](_0xdfe461){this['_update']({'name':_0xdfe461});}['setAttribute'](_0x417e6a,_0x26cb13){const _0x1b5460=_0x83ca90(this['attributes']);_0x4fdd88(_0x1b5460,_0x417e6a,_0x26cb13),this['_update']({'attributes':_0x1b5460});}['removeAttribute'](_0x5c0ec4){const _0x35dc69=_0x83ca90(this['attributes']);_0x48e3b0(_0x35dc69,_0x5c0ec4),this['_update']({'attributes':_0x35dc69});}['_update'](_0x34a76,_0x40aebc=!0x1){let _0x4eb16e=!0x1;const _0x56fa11={'id':this['id']},_0xc15135=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x31f3a5 of _0xc15135){const _0x56b90f=_0x34a76[_0x31f3a5];void 0x0!==_0x56b90f&&_0x56b90f!==this[_0x31f3a5]&&(this[_0x31f3a5]=_0x56b90f,_0x56fa11[_0x31f3a5]=_0x56b90f,_0x4eb16e=!0x0);}_0x4eb16e&&(_0x56fa11['authors']&&(_0x56fa11['authorsIds']=_0x56fa11['authors']['map'](_0x1946de=>_0x1946de['id']),delete _0x56fa11['authors']),this['fire']('_update',_0x56fa11,_0x40aebc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x32f8b8=>_0x32f8b8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0xbe21c4{['_revisions'];static get['requires'](){return[_0x416e9c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x167d67){super(_0x167d67),this['_revisions']=new _0x504df2();}['afterInit'](){!async function(_0x1be641){const _0xc6de19=_0x16bffc([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x1d691c=0xeb829,_0x4e350b=0x359e09b0,_0x7ee81c=0x35997730^_0x4e350b,_0x4df571=window[_0x16bffc([0x44,0x61,0x74,0x65])][_0x16bffc([0x6e,0x6f,0x77])](),_0x3df50e=_0x1be641[_0x16bffc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a977f=new window[(_0x16bffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaee380=>{_0x3df50e[_0x16bffc([0x6f,0x6e,0x63,0x65])](_0x16bffc([0x72,0x65,0x61,0x64,0x79]),_0xaee380);}),_0x27555d={[_0x16bffc([0x6b,0x74,0x79])]:_0x16bffc([0x45,0x43]),[_0x16bffc([0x75,0x73,0x65])]:_0x16bffc([0x73,0x69,0x67]),[_0x16bffc([0x63,0x72,0x76])]:_0x16bffc([0x50,0x2d,0x32,0x35,0x36]),[_0x16bffc([0x78])]:_0x16bffc([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]),[_0x16bffc([0x79])]:_0x16bffc([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]),[_0x16bffc([0x61,0x6c,0x67])]:_0x16bffc([0x45,0x53,0x32,0x35,0x36])},_0x268ad2=_0x3df50e[_0x16bffc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16bffc([0x67,0x65,0x74])](_0x16bffc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4904d0(){let _0x346122,_0xa02b58=null,_0x2d2f4b=null;try{if(_0x268ad2==_0x16bffc([0x47,0x50,0x4c]))return _0x16bffc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x346122=_0x2b1b08(),!_0x346122)return _0x16bffc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x346122[_0x16bffc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d2f4b=_0x44e40a(_0x346122[_0x16bffc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x346122[_0x16bffc([0x6a,0x74,0x69])])),await _0x10f76d()?_0x56ba78()?_0x239d44()?_0x16bffc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x313799()?(_0x346122[_0x16bffc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16bffc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa02b58=_0x12a5c7(_0x16bffc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x293170()):_0x16bffc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16bffc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16bffc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16bffc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x239d44(){const _0x1d19ee=[_0x16bffc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16bffc([0x74,0x72,0x69,0x61,0x6c])][_0x16bffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x346122[_0x16bffc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4df571/0x3e8:0xe10*_0x7ee81c;return _0x346122[_0x16bffc([0x65,0x78,0x70])]<_0x1d19ee;}function _0x56ba78(){const _0x2718e9=_0x346122[_0x16bffc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2718e9)return!0x1;if(_0x2718e9[_0x16bffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16bffc([0x2a])))return!0x0;if(_0x2718e9[_0x16bffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16bffc([0x52,0x48])))return!0x0;if(_0x2718e9[_0x16bffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16bffc([0x52,0x52,0x48]))){if(_0x4da140())return!0x0;if(_0x57cec7()||_0x4a3e4c())return!0x0;}return!0x1;}function _0x313799(){const _0x26209f=_0x346122[_0x16bffc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26209f||0x0==_0x26209f[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a5b33}=new URL(window[_0x16bffc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26209f[_0x16bffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5b33))return!0x0;const _0x16ee4b=_0x1a5b33[_0x16bffc([0x73,0x70,0x6c,0x69,0x74])](_0x16bffc([0x2e]));return _0x26209f[_0x16bffc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49c42b=>_0x49c42b[_0x16bffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16bffc([0x2a])))[_0x16bffc([0x6d,0x61,0x70])](_0x2b60eb=>_0x2b60eb[_0x16bffc([0x73,0x70,0x6c,0x69,0x74])](_0x16bffc([0x2e])))[_0x16bffc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8813cd=>_0x8813cd[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16ee4b[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16bffc([0x6d,0x61,0x70])](_0x594487=>Array(_0x16ee4b[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x594487[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16bffc([0x66,0x69,0x6c,0x6c])](_0x594487[0x0]===_0x16bffc([0x2a])?_0x16bffc([0x2a]):'')[_0x16bffc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x594487))[_0x16bffc([0x73,0x6f,0x6d,0x65])](_0x231205=>_0x16ee4b[_0x16bffc([0x65,0x76,0x65,0x72,0x79])]((_0x2c2176,_0x5da9fd)=>_0x231205[_0x5da9fd]===_0x2c2176||_0x231205[_0x5da9fd]===_0x16bffc([0x2a])));}function _0x293170(){return _0xa02b58&&_0x2d2f4b?new window[(_0x16bffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b9324,_0x244662)=>{_0xa02b58[_0x16bffc([0x74,0x68,0x65,0x6e])](_0x4b9324,_0x244662),_0x2d2f4b[_0x16bffc([0x74,0x68,0x65,0x6e])](_0xe338fc=>{_0xe338fc!=_0x16bffc([0x56,0x61,0x6c,0x69,0x64])&&_0x4b9324(_0xe338fc);},_0x244662);}):_0xa02b58||_0x2d2f4b||_0x16bffc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x44e40a(_0x2e8af7,_0x4b8a72){return new window[(_0x16bffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x563948=>{if(_0xbb56d8())return _0x563948(_0x16bffc([0x56,0x61,0x6c,0x69,0x64]));_0x263a24(),_0x3df50e[_0x16bffc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16bffc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5336a6=!0x1;const _0x1b32c0=_0x532896();function _0x3369e1(_0x3dee3a){return!!_0x3dee3a&&(typeof _0x3dee3a===_0x16bffc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3dee3a===_0x16bffc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3dee3a[_0x16bffc([0x74,0x68,0x65,0x6e])]===_0x16bffc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3dee3a[_0x16bffc([0x63,0x61,0x74,0x63,0x68])]===_0x16bffc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ceafd(_0x203889){_0x3c554d(_0x203889)[_0x16bffc([0x74,0x68,0x65,0x6e])](_0x327eae=>{if(!_0x327eae||_0x327eae[_0x16bffc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16bffc([0x6f,0x6b]))return _0x16bffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ea563(_0x54756b(_0x1b32c0+_0x4b8a72))!=_0x327eae[_0x16bffc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16bffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16bffc([0x56,0x61,0x6c,0x69,0x64]);})[_0x16bffc([0x74,0x68,0x65,0x6e])](_0x2b87b9=>(_0x50e41d(),_0x2b87b9),()=>{const _0x5c44c0=_0x5a73d8();return null==_0x5c44c0?(_0x50e41d(),_0x16bffc([0x56,0x61,0x6c,0x69,0x64])):_0x16bffc(_0x4df571-_0x5c44c0>(0x11928db0^_0x4e350b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16bffc([0x74,0x68,0x65,0x6e])](_0x563948)[_0x16bffc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x563948(_0x16bffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27fa3c=0x35a8e730^_0x4e350b;function _0x50e41d(){const _0xe85ebc=_0x16bffc([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ea563(_0x54756b(_0x2e8af7)),_0x3537f4=_0x269398(_0x1ea563(window[_0x16bffc([0x4d,0x61,0x74,0x68])][_0x16bffc([0x63,0x65,0x69,0x6c])](_0x4df571/_0x27fa3c)));window[_0x16bffc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16bffc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe85ebc,_0x3537f4);}function _0x5a73d8(){const _0x3ddbb0=_0x16bffc([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ea563(_0x54756b(_0x2e8af7)),_0x6da89a=window[_0x16bffc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16bffc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ddbb0);return _0x6da89a?window[_0x16bffc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x269398(_0x6da89a),0x10)*_0x27fa3c:null;}function _0x3c554d(_0x583d73){return new window[(_0x16bffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x554530,_0x345818)=>{_0x583d73[_0x16bffc([0x74,0x68,0x65,0x6e])](_0x554530,_0x345818),window[_0x16bffc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x345818,0x359fdd70^_0x4e350b);});}}_0x3df50e[_0x16bffc([0x6f,0x6e])](_0x16bffc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x205b7f,_0x4b7370)=>{if(_0x4b7370[0x0]!=_0x2e8af7)return _0x563948(_0x16bffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b7370[0x1]={..._0x4b7370[0x1],[_0x16bffc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b32c0};},{[_0x16bffc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16bffc([0x68,0x69,0x67,0x68])}),_0x3df50e[_0x16bffc([0x6f,0x6e])](_0x16bffc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bc05a=>{_0x3369e1(_0x2bc05a[_0x16bffc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5336a6=!0x0,_0x5ceafd(_0x2bc05a[_0x16bffc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16bffc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16bffc([0x6c,0x6f,0x77])}),_0x4a977f[_0x16bffc([0x74,0x68,0x65,0x6e])](()=>{_0x5336a6||_0x563948(_0x16bffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbb56d8(){return _0x3df50e[_0x16bffc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16bffc([0x76,0x69,0x65,0x77])][_0x16bffc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16bffc([0x61,0x75,0x74,0x6f]);}function _0x263a24(){_0x3df50e[_0x16bffc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16bffc([0x76,0x69,0x65,0x77])][_0x16bffc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16bffc([0x61,0x75,0x74,0x6f]);}}function _0x12a5c7(_0x3f3cec){const _0x39b26a=[new window[(_0x16bffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54cdf9=>setTimeout(_0x54cdf9,0x3597377c^_0x4e350b)),_0x4a977f[_0x16bffc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16bffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x423ffc=>{const _0xac76c0=0x359e09b7^_0x4e350b,_0x20f67d=_0x1be641[_0x16bffc([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5f5e41(){_0x20f67d[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xac76c0&&_0x423ffc();}_0x5f5e41(),_0x20f67d[_0x16bffc([0x6f,0x6e])](_0x16bffc([0x61,0x64,0x64]),_0x5f5e41);})),new window[(_0x16bffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd3e923=>{function _0x94cbc8(){for(const _0x358ec1 in window)if(window[_0x16bffc([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x16bffc([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x358ec1))&&window[_0x358ec1]==_0x1d691c)return _0xd3e923();_0x3df50e[_0x16bffc([0x73,0x74,0x61,0x74,0x65])]!=_0x16bffc([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x16bffc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x94cbc8,0x359e1a38^_0x4e350b);}_0x3e5cbd(_0x16bffc([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x94cbc8();})];return window[_0x16bffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16bffc([0x72,0x61,0x63,0x65])](_0x39b26a)[_0x16bffc([0x74,0x68,0x65,0x6e])](()=>_0x3f3cec);}async function _0x40773d(){if(await _0x4a977f,_0x3e5cbd(_0x16bffc([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x38ee98=_0x1be641[_0x16bffc([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x393396=_0x1be641[_0x16bffc([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])](_0x38ee98[_0x16bffc([0x69,0x64])]),_0x3cf109=_0x526d1b(_0x16bffc([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3cf109[_0x16bffc([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x38ee98['id'],_0x393396?_0x393396['id']:null,!0x0),_0x3cf109[_0x16bffc([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x16bffc([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3cf109[_0x16bffc([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3cf109[_0x16bffc([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2ddc71,void(_0x3cf109[_0x16bffc([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2ddc71);}if(_0x3e5cbd(_0x16bffc([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4539a8=_0x526d1b(_0x16bffc([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4539a8[_0x16bffc([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x16bffc([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4539a8[_0x16bffc([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4539a8[_0x16bffc([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2ddc71,_0x4539a8[_0x16bffc([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2ddc71;}_0x3df50e[_0x16bffc([0x6d,0x6f,0x64,0x65,0x6c])][_0x16bffc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ddc71,_0x3df50e[_0x16bffc([0x6d,0x6f,0x64,0x65,0x6c])][_0x16bffc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ddc71,_0x3df50e[_0x16bffc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16bffc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4da140(){return _0x3e5cbd(_0x16bffc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x526d1b(_0x16bffc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x16bffc([0x73,0x74,0x61,0x74,0x65])]==_0x16bffc([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x57cec7(){return _0x3e5cbd(_0x16bffc([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 _0x4a3e4c(){return _0x3e5cbd(_0x16bffc([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2cc5ad(_0x1634c1){const _0x303ee7=_0x357c0a();_0x3df50e[_0x303ee7]=_0x16bffc([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])+_0x1634c1,_0x1634c1[_0x16bffc([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x16bffc([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x357c0a()]=_0x1d691c),_0x1634c1!=_0x16bffc([0x56,0x61,0x6c,0x69,0x64])&&_0x40773d();}function _0x357c0a(){const _0x1e0942=window[_0x16bffc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16bffc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16bffc([0x6e,0x6f,0x77])]())[_0x16bffc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16bffc([0x2e]),'');let _0x457de2=_0x16bffc([0x76]);for(let _0x52be66=0x0;_0x52be66<_0x1e0942[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52be66+=0x2){let _0x3bbb3f=window[_0x16bffc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e0942[_0x16bffc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52be66,_0x52be66+0x2));_0x3bbb3f>=_0xc6de19[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3bbb3f-=_0xc6de19[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x457de2+=_0xc6de19[_0x3bbb3f];}return _0x457de2;}function _0x2b1b08(){const _0x3b755f=_0x268ad2[_0x16bffc([0x73,0x70,0x6c,0x69,0x74])](_0x16bffc([0x2e]));if(0x3!=_0x3b755f[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c2210(_0x3b755f[0x1]);function _0x5c2210(_0x44a8c1){const _0x112d5a=_0x5bd43a(_0x44a8c1);return _0x112d5a&&_0x496faa()?_0x112d5a:null;function _0x496faa(){const _0x1d396f=_0x112d5a[_0x16bffc([0x6a,0x74,0x69])],_0x556a68=window[_0x16bffc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d396f[_0x16bffc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d396f[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15d924={..._0x112d5a,[_0x16bffc([0x6a,0x74,0x69])]:_0x1d396f[_0x16bffc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d396f[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15d924[_0x16bffc([0x76,0x63])],_0x54756b(_0x15d924)==_0x556a68;}}}async function _0x10f76d(){let _0x216826=!0x0;try{const _0x2d056f=_0x268ad2[_0x16bffc([0x73,0x70,0x6c,0x69,0x74])](_0x16bffc([0x2e])),[_0x5e5e89,_0x230645,_0x434ccb]=_0x2d056f;return _0x51d052(_0x5e5e89),await _0x54ef66(_0x5e5e89,_0x230645,_0x434ccb),_0x216826;}catch{return!0x1;}function _0x51d052(_0x54226f){const _0x3cbe75=_0x5bd43a(_0x54226f);_0x3cbe75&&_0x3cbe75[_0x16bffc([0x61,0x6c,0x67])]==_0x16bffc([0x45,0x53,0x32,0x35,0x36])||(_0x216826=!0x1);}async function _0x54ef66(_0x475bd6,_0x50590f,_0x5a2724){const _0x520217=window[_0x16bffc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16bffc([0x66,0x72,0x6f,0x6d])](_0x3de5a0(_0x5a2724),_0x32fd81=>_0x32fd81[_0x16bffc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38a64f=new window[(_0x16bffc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16bffc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x475bd6+_0x16bffc([0x2e])+_0x50590f),_0x145587=window[_0x16bffc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16bffc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x145587)return;const _0x2597f0=await _0x145587[_0x16bffc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16bffc([0x6a,0x77,0x6b]),_0x27555d,{[_0x16bffc([0x6e,0x61,0x6d,0x65])]:_0x16bffc([0x45,0x43,0x44,0x53,0x41]),[_0x16bffc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16bffc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16bffc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x145587[_0x16bffc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16bffc([0x6e,0x61,0x6d,0x65])]:_0x16bffc([0x45,0x43,0x44,0x53,0x41]),[_0x16bffc([0x68,0x61,0x73,0x68])]:{[_0x16bffc([0x6e,0x61,0x6d,0x65])]:_0x16bffc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2597f0,_0x520217,_0x38a64f)||(_0x216826=!0x1);}}function _0x5bd43a(_0x104e5a){return _0x104e5a[_0x16bffc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16bffc([0x65,0x79]))?JSON[_0x16bffc([0x70,0x61,0x72,0x73,0x65])](_0x3de5a0(_0x104e5a)):null;}function _0x3de5a0(_0x346411){return window[_0x16bffc([0x61,0x74,0x6f,0x62])](_0x346411[_0x16bffc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16bffc([0x2b]))[_0x16bffc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16bffc([0x2f])));}function _0x54756b(_0x2c07db){let _0x21f488=0x1505;function _0x316a22(_0xdbdae){for(let _0x550cee=0x0;_0x550cee<_0xdbdae[_0x16bffc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x550cee++){const _0x1d09b7=_0xdbdae[_0x16bffc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x550cee);_0x21f488=(_0x21f488<<0x5)+_0x21f488+_0x1d09b7,_0x21f488&=_0x21f488;}}function _0x4768e3(_0x18f046){Array[_0x16bffc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x18f046)?_0x18f046[_0x16bffc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4768e3):_0x18f046&&typeof _0x18f046==_0x16bffc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16bffc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x18f046)[_0x16bffc([0x73,0x6f,0x72,0x74])]()[_0x16bffc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x277389,_0x52b922])=>{_0x316a22(_0x277389),_0x4768e3(_0x52b922);}):_0x316a22(window[_0x16bffc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x18f046));}return _0x4768e3(_0x2c07db),_0x21f488>>>0x0;}function _0x1ea563(_0x59a14d){return _0x59a14d[_0x16bffc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16bffc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16bffc([0x30]));}function _0x269398(_0x31b363){return _0x31b363[_0x16bffc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16bffc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16bffc([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e5cbd(_0x194e26){return _0x3df50e[_0x16bffc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16bffc([0x68,0x61,0x73])](_0x194e26);}function _0x526d1b(_0x50ae14){return _0x3df50e[_0x16bffc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16bffc([0x67,0x65,0x74])](_0x50ae14);}function _0x2ddc71(){}function _0x16bffc(_0x1067d3){return _0x1067d3['map'](_0x126e76=>String['fromCharCode'](_0x126e76))['join']('');}_0x2cc5ad(await _0x4904d0());}(this);}['createRevision'](_0xfd9879){const _0x1d7005=this['editor']['plugins']['get']('Users');return new I({'id':_0xfd9879['id'],'name':_0xfd9879['name'],'creator':_0xfd9879['creatorId']?_0x1d7005['getUser'](_0xfd9879['creatorId']):null,'diffData':_0xfd9879['diffData']||_0xfd9879['data'],'authors':_0xfd9879['authorsIds']['map'](_0x1f1af5=>_0x1d7005['getUser'](_0x1f1af5)),'createdAt':new Date(_0xfd9879['createdAt']),'attributes':_0xfd9879['attributes'],'fromVersion':_0xfd9879['fromVersion'],'toVersion':_0xfd9879['toVersion']});}['addRevision'](_0xc1c8af,_0x577ef0=0x0){this['_revisions']['add'](_0xc1c8af,_0x577ef0);}['getRevision'](_0xa05bcb){return this['_revisions']['get'](_0xa05bcb);}['getRevisions'](_0x37b8cd={'toJSON':!0x1}){const _0x3e72cd=Array['from'](this['_revisions']);return _0x3e72cd['reverse'](),_0x37b8cd['toJSON']?_0x3e72cd['map'](_0x4d0f9b=>_0x4d0f9b['toJSON']()):_0x3e72cd;}['getIndex'](_0x2eb159){return this['_revisions']['getIndex'](_0x2eb159);}['getEarlierVisibleRevision'](_0x141fab){const [,_0x30ca81]=this['getRevisionsIterator'](_0x141fab,{'direction':'earlier'});return _0x30ca81;}['getLaterVisibleRevision'](_0x5c0bdd){const [,_0x1dcd50]=this['getRevisionsIterator'](_0x5c0bdd,{'direction':'later'});return _0x1dcd50;}['getRevisionsInDiff'](_0x860894){const _0x39ffb8=[];for(const _0x162ac7 of this['getRevisionsIterator'](_0x860894['newRevisionId']))if(_0x39ffb8['push'](_0x162ac7),_0x162ac7['id']===_0x860894['oldRevisionId'])break;return _0x39ffb8;}*['getRevisionsIterator'](_0x5ec5ba,{direction:_0x11c4f1='earlier',filter:_0xb9a0f3=()=>!0x0}={}){const _0xd7fe22='earlier'===_0x11c4f1?0x1:-0x1;let _0x4599fb=this['_revisions']['get'](_0x5ec5ba),_0x145a82=this['getIndex'](_0x4599fb);for(yield _0x4599fb;_0x4599fb;){if(_0x145a82+=_0xd7fe22,_0x4599fb=this['getRevision'](_0x145a82),!_0x4599fb)return;_0xb9a0f3(_0x4599fb)&&(yield _0x4599fb);}}}class $ extends _0xbe21c4{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x184b8e,'c'],[_0x1205ba,'a'],[_0x470df9,'e'],[_0x510a8d,'r'],[_0x4555eb,'u']]);['_typeCharToViewClass']=new Map([['c',_0x184b8e],['a',_0x1205ba],['e',_0x470df9],['r',_0x510a8d],['u',_0x4555eb]]);async['loadRevisionData'](_0x120bae,_0x3ff57c){if(_0x120bae['diffData']||!_0x3ff57c)return;const _0x281afb=this['editor']['config']['get']('collaboration.channelId'),_0x3b9f96=await _0x3ff57c['getRevision']({'channelId':_0x281afb,'revisionId':_0x120bae['id']});_0x120bae['diffData']=_0x3b9f96['diffData'];}['getRevisionDocumentData'](_0x1ef2f0){const _0x4e9980={};for(const _0x516468 in _0x1ef2f0['diffData']){if(_0x1ef2f0['diffData'][_0x516468]['attachChange']&&!_0x1ef2f0['diffData'][_0x516468]['attachChange']['isAttached'])continue;const _0x3fe9d0=this['_removeRevisionMarkers'](JSON['parse'](_0x1ef2f0['diffData'][_0x516468]['insertions'])),_0x154c43=this['editor']['editing']['view']['document'],_0x50a4e4=new _0x164cef(_0x154c43,_0x3fe9d0['map'](_0x456637=>this['_getViewFromDiffObj'](_0x456637,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4e9980[_0x516468]=this['editor']['data']['processor']['toData'](_0x50a4e4),this['editor']['data']['processor']['useFillerType']('default');}return _0x4e9980;}['getRevisionRootsAttributes'](_0x35b480){const _0x29858a={};for(const _0x15566e in _0x35b480['diffData'])_0x35b480['diffData'][_0x15566e]['attachChange']&&!_0x35b480['diffData'][_0x15566e]['attachChange']['isAttached']||(_0x29858a[_0x15566e]=_0x35b480['diffData'][_0x15566e]['attributesAfter']||{});return _0x29858a;}['_getTypeCharForViewElement'](_0x49d350){return this['_viewClassToTypeChar']['get'](_0x49d350['constructor']);}['_getViewFromDiffObj'](_0x4fc9e7,_0x5614b3){const _0x4402d0=this['editor']['editing']['view']['document'];if('string'==typeof _0x4fc9e7)return new _0x4e7f12(_0x4402d0,_0x4fc9e7);{let _0x28e7d7,_0x10896e;_0x10896e='u'==_0x4fc9e7['type']||'r'==_0x4fc9e7['type']?[]:_0x4fc9e7['children']['map'](_0x470ab6=>this['_getViewFromDiffObj'](_0x470ab6,_0x5614b3));const _0x318e8e=this['_typeCharToViewClass']['get'](_0x4fc9e7['type'])||_0x451dcb,_0x2f0508=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x28e7d7=new _0x318e8e(_0x4402d0,_0x4fc9e7['name'],_0x4fc9e7['attributes'],_0x10896e),'u'==_0x4fc9e7['type']&&_0x4fc9e7['children'][0x0]){const _0x621f43=_0x4fc9e7['children'][0x0];if(_0x28e7d7['render']=function(_0x4814ad){const _0x579127=_0x4814ad['createElement']('div');return _0x579127['innerHTML']=_0x621f43,_0x579127['childNodes'][0x0];},_0x5614b3){const _0x3ac14b=new _0x164cef(_0x4402d0);_0x3ac14b['_appendChild'](_0x28e7d7);const _0x320d21=Array['from'](_0x2f0508['viewChildrenToDom'](_0x3ac14b,{'bind':!0x1})),_0x12bc04=_0x2f0508['domDocument']['createElement']('div');_0x12bc04['append'](..._0x320d21),_0x28e7d7=Array['from'](_0x2f0508['domChildrenToView'](_0x12bc04))[0x0];}}else{if('r'==_0x4fc9e7['type']&&_0x4fc9e7['children'][0x0]){const _0x3e4000=_0x4fc9e7['children'][0x0];if(_0x28e7d7['render']=function(_0x429c7c){_0x429c7c['innerHTML']=_0x3e4000;},_0x5614b3){const _0x2107df=new _0x164cef(_0x4402d0);_0x2107df['_appendChild'](_0x28e7d7);const _0x480c56=Array['from'](_0x2f0508['viewChildrenToDom'](_0x2107df,{'bind':!0x1})),_0x5b4e61=_0x2f0508['domDocument']['createElement']('div');_0x5b4e61['append'](..._0x480c56);const _0x2fb648=Array['from'](_0x2f0508['domChildrenToView'](_0x5b4e61));_0x2fb648['length']>0x1?_0x28e7d7['_appendChild'](_0x2fb648):_0x28e7d7=_0x2fb648[0x0];}}}if(_0x4fc9e7['customProperties']){for(const [_0x59ec91,_0x16c1d9]of _0x4fc9e7['customProperties'])_0x28e7d7['_setCustomProperty'](_0x59ec91,_0x16c1d9);}const _0x1f8c28=void 0x0===_0x4fc9e7['fillerOffset']?null:_0x4fc9e7['fillerOffset'];return null!==_0x1f8c28&&(_0x28e7d7['getFillerOffset']=()=>_0x1f8c28),_0x28e7d7;}}['_makeModelFromViewString'](_0xc43205){const _0x52d8b8=JSON['parse'](_0xc43205),_0x4cab25=this['editor']['editing']['view']['document'],_0x5694ca=new _0x164cef(_0x4cab25,_0x52d8b8['map'](_0x425ee4=>this['_getViewFromDiffObj'](_0x425ee4,!0x0)));return this['editor']['data']['toModel'](_0x5694ca);}['_removeRevisionMarkers'](_0x419569){return(_0x419569=_0x419569['filter'](_0x4899ba=>!_0x4899ba['name']||'revision-start'!==_0x4899ba['name']&&'revision-end'!==_0x4899ba['name']))['forEach'](_0x5d908d=>{'string'!=typeof _0x5d908d&&(_0x5d908d['children']=this['_removeRevisionMarkers'](_0x5d908d['children']),_0x5d908d['attributes']=_0x5d908d['attributes']['filter'](_0x5275e=>!_0x5275e[0x0]['startsWith']('data-revision-')));}),_0x419569;}}function m(_0x2ed78e,_0xd6e66e,_0x3f540b){const t=_0x2ed78e['t'];switch(_0xd6e66e){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'},_0x3f540b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3f540b);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 _0xbe21c4{['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[_0x416e9c,S,$,_0x71dee9];}constructor(_0x2db966){super(_0x2db966),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x18a338=_0x532896();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18a338},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 _0x4267c8=this['repository']['getRevision'](0x0),_0xe3cc48=_0x4267c8&&null===_0x4267c8['creator']?_0x4267c8:null;if(this['_continueCurrentRevision']=!!_0xe3cc48&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x30594b=this['_source']['getCurrentRevisionId'](),_0x46b8d0=this['repository']['getRevision'](_0x30594b);if(_0x46b8d0)this['_startingVersion']=_0x46b8d0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x373bd1=this['_source']['history']['_operations']['find'](_0x29ce7a=>!_0x29ce7a['_isInit']),_0x520955=_0x373bd1?_0x373bd1['baseVersion']:this['_source']['history']['version'];_0x4267c8?(_0x4267c8['toVersion']<_0x520955&&_0x4267c8['_update']({'toVersion':_0x520955}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xe3cc48['id'],this['_startingVersion']=_0xe3cc48['fromVersion']):(this['_startingVersion']=_0x4267c8['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x520955,this['_continueCurrentRevision']=!0x1);}}else _0xe3cc48&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xe3cc48['toVersion'],this['editor']['model']['document']['history']['version']),_0xe3cc48['fromVersion']===_0xe3cc48['toVersion']?(0x0!==_0xe3cc48['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xe3cc48['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xe3cc48['id'],this['_startingVersion']=_0xe3cc48['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',_0x8f0c33=>!_0x8f0c33),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x23b94e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5377d9;for(const _0x2effed in _0x23b94e){const _0x40ed74=_0x2effed,_0x41a530=_0x23b94e[_0x40ed74];if('revisionHistoryLicenseKeyValid'==_0x41a530||'revisionHistoryLicenseKeyInvalid'==_0x41a530||'revisionHistoryLicenseKeyExpired'==_0x41a530||'revisionHistoryLicenseKeyDomainLimit'==_0x41a530||'revisionHistoryLicenseKeyNotAllowed'==_0x41a530||'revisionHistoryLicenseKeyEvaluationLimit'==_0x41a530||'revisionHistoryLicenseKeyUsageLimit'==_0x41a530){delete _0x23b94e[_0x40ed74],_0x5377d9=_0x41a530,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5377d9&&_0x23b94e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5377d9&&_0x23b94e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5377d9&&_0x23b94e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5377d9&&_0x23b94e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5377d9&&_0x23b94e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5377d9&&_0x23b94e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3e7bfc=this['repository']['getRevision'](0x0),_0x40414a=await this['getRevisionDocumentData'](_0x3e7bfc),_0x5b293f=await this['getRevisionRootsAttributes'](_0x3e7bfc);this['_replaceEditorDataWithRevisionData'](_0x40414a,_0x5b293f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2a9a04){this['_source']=_0x2a9a04;}async['update'](){const _0x5e39b6=await this['_source']['getLatestVersion']();if(_0x5e39b6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x38fe5f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5e39b6});_0x38fe5f['authors']=_0x38fe5f['authorsIds']['map'](_0x416864=>this['editor']['plugins']['get']('Users')['getUser'](_0x416864)),this['currentRevision']['_update'](_0x38fe5f);}}async['saveRevision'](_0x5dae2d={},_0x3847fe=null){const _0x3d3bbe=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3847fe>this['currentRevision']['toVersion']&&(_0x3847fe=null),null===_0x3847fe&&(_0x3847fe=await this['_source']['getLatestVersion']());const _0x42894b=this['_getFromVersion'](_0x3847fe),_0x553eb8=this['buildRevisionData']({'from':_0x42894b,'to':_0x3847fe});if(this['currentRevision']['toVersion']<_0x3847fe){const _0x101f12=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3847fe,'to':_0x3847fe});_0x101f12['authors']=[],_0x101f12['authorsIds']=[],_0x101f12['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x101f12,!0x0),delete _0x101f12['authors'],_0x3d3bbe['push'](_0x101f12);}_0x5dae2d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5dae2d['name']=_0x5dae2d['name']||null,_0x5dae2d['id']=_0x5dae2d['id']||_0x532896(),_0x5dae2d={..._0x5dae2d,..._0x553eb8};const _0x1d5cfa=this['addRevisionData'](_0x5dae2d);_0x3d3bbe['push'](_0x5dae2d);const _0x5771b4=this['repository']['getIndex'](_0x1d5cfa);if(0x0!==_0x5771b4){const _0x8b211f=this['repository']['getRevision'](_0x5771b4-0x1);if(_0x8b211f['fromVersion']!==_0x3847fe){const _0x4c8470=this['_revisionDataBuilder']['getData'](_0x3847fe,_0x8b211f['toVersion']),_0x53ea99={'id':_0x8b211f['id'],'diffData':_0x4c8470['diffData'],'authorsIds':_0x4c8470['authorsIds'],'authors':_0x4c8470['authorsIds']['map'](_0x5d7641=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d7641)),'fromVersion':_0x3847fe};_0x8b211f===this['currentRevision']&&(_0x53ea99['createdAt']=new Date(_0x5dae2d['createdAt']['getTime']()+0xa)),_0x8b211f['_update'](_0x53ea99,!0x0),delete _0x53ea99['authors'],_0x3d3bbe['push'](_0x53ea99);}}if(this['adapter']){for(const _0x551639 of _0x3d3bbe)this['_bufferUpdate'](_0x551639['id'],_0x551639,!0x0);this['sendBufferedUpdates']();}return _0x1d5cfa;}['addRevisionData'](_0x2e80a6){const _0x202d48=this['repository']['createRevision'](_0x2e80a6);return this['adapter']&&_0x202d48['on']('_update',(_0x3688bc,_0xdbd41c,_0x1d7fec)=>{_0x1d7fec||(this['_bufferUpdate'](_0xdbd41c['id'],_0xdbd41c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x202d48,this['_findInsertionIndex'](_0x202d48)),_0x202d48;}async['getRevisionDocumentData'](_0x350a1d){return await this['_utils']['loadRevisionData'](_0x350a1d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x350a1d);}async['getRevisionRootsAttributes'](_0x23bd45){return await this['_utils']['loadRevisionData'](_0x23bd45,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x23bd45);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2702ff=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x540516=0x0;_0x540516<_0x2702ff['length'];_0x540516++){const _0x130b93=_0x2702ff[_0x540516];let _0x52b01c=!0x1;for(const _0x1c33f7 of Object['keys'](_0x130b93))void 0x0===_0x130b93[_0x1c33f7]?delete _0x130b93[_0x1c33f7]:'id'!==_0x1c33f7&&(_0x52b01c=!0x0);_0x52b01c||(_0x2702ff[_0x540516]=null);}if(_0x2702ff=_0x2702ff['filter'](_0x2bfcb7=>null!==_0x2bfcb7),!_0x2702ff['length'])return;for(let _0x4592b2=0x0;_0x4592b2<_0x2702ff['length'];_0x4592b2++){const _0x1748c1=_0x2702ff[_0x4592b2];void 0x0!==_0x1748c1['fromVersion']&&void 0x0===_0x1748c1['toVersion']&&(_0x1748c1['toVersion']=this['repository']['getRevision'](_0x1748c1['id'])['toVersion']),void 0x0!==_0x1748c1['toVersion']&&void 0x0===_0x1748c1['fromVersion']&&(_0x1748c1['fromVersion']=this['repository']['getRevision'](_0x1748c1['id'])['fromVersion']);}const _0x36b8af=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2702ff,_0x36b8af)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5d372d=>{if(_0x5d372d){for(const _0x15497f of _0x5d372d)this['setRevisionData']({'id':_0x15497f['id'],'createdAt':_0x15497f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1cdf43=null,from:_0x21385a=null,to:_0x438429=null}){_0x21385a=null!==_0x21385a?_0x21385a:_0x1cdf43['fromVersion'],_0x438429=null!==_0x438429?_0x438429:_0x1cdf43['toVersion'];const _0x2d843c=this['_revisionDataBuilder']['getData'](_0x21385a,_0x438429),_0x28cc6e={'diffData':_0x2d843c['diffData'],'authorsIds':_0x2d843c['authorsIds'],'fromVersion':_0x21385a,'toVersion':_0x438429};if(!_0x1cdf43||_0x438429!==_0x1cdf43['toVersion']){const _0x58ce99=_0x438429-0x1,_0x5e13d7=this['_source']['history']['getOperation'](_0x58ce99);_0x28cc6e['createdAt']=_0x5e13d7&&_0x5e13d7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x21385a===this['_loadedStateData']['fromVersion']){for(const _0x2c6c46 of this['_loadedStateData']['authors'])_0x28cc6e['authorsIds']['includes'](_0x2c6c46['id'])||_0x28cc6e['authorsIds']['push'](_0x2c6c46['id']);}return _0x28cc6e;}['_bufferUpdate'](_0x53f216,_0x1b6827,_0x2b95c6){if(this['_bufferedUpdates']['has'](_0x53f216)){const _0x541a2a=this['_bufferedUpdates']['get'](_0x53f216);_0x1b6827=_0x2b95c6?{..._0x541a2a,..._0x1b6827}:{..._0x1b6827,..._0x541a2a};}this['_bufferedUpdates']['set'](_0x53f216,_0x1b6827);}['setRevisionData'](_0x724595){const _0x503256=this['repository']['getRevision'](_0x724595['id']);if(_0x724595['createdAt']&&(_0x724595['createdAt']=new Date(_0x724595['createdAt'])),_0x724595['authorsIds']){const _0x382d9c=this['editor']['plugins']['get']('Users');_0x724595['authors']=_0x724595['authorsIds']['map'](_0x11cea2=>_0x382d9c['getUser'](_0x11cea2));}_0x503256['_update'](_0x724595,!0x0);}['_createInitialRevision'](_0x5bc260){const _0x4aab5f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4aab5f)this['_initialRevisionId']=_0x4aab5f['id'];else{const _0x120adb=!this['editor']['model']['document']['roots']['find'](_0x1aa0e3=>this['editor']['model']['hasContent'](_0x1aa0e3)),_0x5af50c=this['editor']['plugins']['get']('Users')['me']['id'],_0x534fd6=m(this['editor']['locale'],_0x120adb?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5bc260,'to':_0x5bc260,'id':this['_initialRevisionId'],'name':_0x534fd6,'creatorId':_0x5af50c});}}['_createCurrentRevision'](_0x4b6530){const _0x3eef85=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3eef85),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4b6530,'to':_0x4b6530,'id':_0x3eef85,'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'](_0x51c113,_0x291039){let _0x56fdf0=this['editor']['config']['get']('initialData'),_0x57f866=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x56fdf0){_0x56fdf0={};for(const _0x256f15 of this['editor']['model']['document']['getRootNames']())_0x56fdf0[_0x256f15]='';}if('string'==typeof _0x56fdf0&&(_0x56fdf0={'main':_0x56fdf0}),void 0x0===_0x57f866){_0x57f866={};for(const _0x19e0f6 of this['editor']['model']['document']['getRootNames']())_0x57f866[_0x19e0f6]={};}let _0x52e77a=!0x1;const _0x24a0cb=Object['keys'](_0x56fdf0),_0x5182f0=Object['keys'](_0x51c113);for(const _0x3d426e of _0x24a0cb){if(_0x56fdf0[_0x3d426e]!==_0x51c113[_0x3d426e]&&''!==_0x56fdf0[_0x3d426e]['trim']()){_0x52e77a=!0x0;break;}if(!_0x3c0bf9(_0x57f866[_0x3d426e],_0x291039[_0x3d426e])&&Object['keys'](_0x57f866[_0x3d426e])['length']>0x0){_0x52e77a=!0x0;break;}}_0x52e77a||(_0x52e77a=_0x5182f0['some'](_0x2342a2=>!this['editor']['model']['document']['getRoot'](_0x2342a2))),_0x52e77a&&_0x47c187('editor-initial-data-replaced-with-revision-data',{'editorData':_0x56fdf0,'editorRootsAttributes':_0x57f866,'revisionData':_0x51c113,'revisionRootsAttributes':_0x291039}),this['editor']['config']['set']('initialData',_0x51c113),this['editor']['config']['set']('rootsAttributes',_0x291039);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x58ed7e=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x58ed7e['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4ff9a7){const _0x56411c=this['repository']['getRevisions']();_0x56411c['reverse']();let _0x43b13e=0x0;for(;_0x43b13e<_0x56411c['length'];){const _0x574fb9=_0x56411c[_0x43b13e];if(_0x574fb9===this['currentRevision']){_0x43b13e++;continue;}if(_0x574fb9['id']===this['_initialRevisionId'])break;const _0x1644d4=_0x4ff9a7['toVersion']-_0x574fb9['toVersion']||_0x4ff9a7['fromVersion']-_0x574fb9['fromVersion'];if(_0x1644d4>0x0)break;if(_0x1644d4<0x0)_0x43b13e++;else{if(!_0x4ff9a7['creator']&&_0x574fb9['creator'])break;if(_0x574fb9['creator']||!_0x4ff9a7['creator']){if(_0x4ff9a7['createdAt']>_0x574fb9['createdAt'])break;_0x43b13e++;}else _0x43b13e++;}}return _0x43b13e;}['_getFromVersion'](_0x1318ac){const _0x3192c2=this['repository']['getRevisions']();_0x3192c2['reverse'](),_0x3192c2['shift']();const _0x3fffeb=_0x3192c2['find'](_0x389d38=>_0x389d38['toVersion']<=_0x1318ac)['toVersion'];return _0x3fffeb<this['_startingVersion']?this['_startingVersion']:_0x3fffeb;}['_makeRevision']({name:_0x54b5b4,from:_0x32ca53,to:_0x2c619e,creatorId:_0x5b6155,id:_0x791788}){const _0x1b9ce6=this['buildRevisionData']({'from':_0x32ca53,'to':_0x2c619e});_0x1b9ce6['name']=_0x54b5b4,_0x1b9ce6['creatorId']=_0x5b6155,_0x1b9ce6['id']=_0x791788;const _0x5ecb93=this['addRevisionData'](_0x1b9ce6);return this['adapter']&&this['_bufferUpdate'](_0x1b9ce6['id'],_0x1b9ce6,!0x0),_0x5ecb93;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x455bf9){this['editor']=_0x455bf9,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'](_0x23359e){this['source']=_0x23359e;const _0x369ab4=new Map(),_0x5197f2=new Map(),_0x13c9bc=this['editor']['model']['document']['roots']['map'](_0x2dc1d7=>_0x2dc1d7['rootName']);for(const _0x15be98 of _0x13c9bc){const _0x48cca6=this['editor']['model']['document']['getRoot'](_0x15be98),_0x1ee668=K(_0x48cca6);_0x369ab4['set'](_0x15be98,_0x1ee668),_0x5197f2['set'](_0x15be98,Object['fromEntries'](_0x48cca6['getAttributes']()));}const _0x4b1a57=Array['from'](this['editor']['model']['markers'])['map'](_0x5b9ac3=>[_0x5b9ac3['name'],_0x5b9ac3['getRange']()]),_0x2eed4b=this['source']['version'];this['_saveMetaData'](_0x2eed4b,_0x369ab4,_0x4b1a57,_0x5197f2),this['_startingRevisionId']=this['_revisionId'];const _0x14fff3=new Map(),_0x293d4e=new Map();for(const _0x145b88 of _0x13c9bc){const _0x304249=N(_0x145b88);_0x14fff3['set'](_0x145b88,_0x304249),_0x293d4e['set'](_0x145b88,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x14fff3,[],_0x293d4e);}['getData'](_0x2442fd,_0x1678c6){if(this['_lastFrom']===_0x2442fd&&this['_lastTo']<=_0x1678c6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1678c6,!0x0);else{if(!this['_savedMetaData']['has'](_0x2442fd)){const _0x2734ff=this['_getPreviousFrom'](_0x2442fd);this['_calculateMetaData'](_0x2734ff,_0x2442fd,!0x1);}this['_calculateMetaData'](_0x2442fd,_0x1678c6,!0x0);}return this['_lastFrom']=_0x2442fd,this['_lastTo']=_0x1678c6,this['_getState']();}['loadState'](_0x3ef080){if(!this['_savedMetaData']['has'](_0x3ef080['fromVersion'])){const _0x265897=this['_getPreviousFrom'](_0x3ef080['fromVersion']);this['_calculateMetaData'](_0x265897,_0x3ef080['fromVersion'],!0x1);}this['_calculateMetaData'](_0x3ef080['fromVersion'],_0x3ef080['toVersion'],!0x1);const _0x225578=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x3ef080['fromVersion'],this['_lastTo']=_0x3ef080['toVersion'];for(const _0x3527dd in _0x3ef080['diffData']){const _0x583e71=_0x3ef080['diffData'][_0x3527dd]['attachChange'],_0x6d5933=_0x83ca90(_0x3ef080['diffData'][_0x3527dd]['attributesBefore'])||{},_0x515379=_0x225578['_makeModelFromViewString'](_0x3ef080['diffData'][_0x3527dd]['deletions']);_0x515379['rootName']=_0x3527dd,_0x515379['_isAttached']=!_0x583e71||!_0x583e71['isAttached'],_0x515379['isAttached']=()=>_0x515379['_isAttached'],this['_baseRoots']['set'](_0x3527dd,_0x515379),this['_baseRootsAttributes']['set'](_0x3527dd,_0x6d5933),_0x583e71&&this['_touchedRoots']['set'](_0x3527dd,_0x583e71);const _0x58e1eb=this['_makeIdsRoot'](_0x515379);this['_baseIdsRoots']['set'](_0x3527dd,_0x58e1eb);for(const [_0x26707d,_0x170f6b]of _0x515379['markers']){if(!_0x26707d['startsWith']('revision:'))continue;const _0xe352e2=_0x26707d['split'](':')[0x2];for(const _0x5c6971 of _0x170f6b['getWalker']({'singleCharacters':!0x0})){const _0x34822a=this['_getVidAttributeName'](_0x5c6971),_0x34add7='elementEnd'==_0x5c6971['type']?_0x5c6971['previousPosition']['path']['slice'](0x0,-0x1):_0x5c6971['previousPosition']['path'],_0xa40361=_0x58e1eb['getNodeByPath'](_0x34add7)['getAttribute'](_0x34822a);this['_touched']['set'](_0xa40361,{'userId':_0xe352e2});}_0x515379['markers']['delete'](_0x26707d);}}this['_startingRevisionId']=this['_revisionId'];const _0x5e3883=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x23e068=>!this['_touched']['has'](_0x23e068));let _0xfa8a6b=0x0;const _0x5b12bb=new Map();for(const _0x4e1b1a in _0x3ef080['diffData']){const _0x537891=_0x3ef080['diffData'][_0x4e1b1a]['attachChange'],_0x384aa5=_0x83ca90(_0x3ef080['diffData'][_0x4e1b1a]['attributesAfter'])||{},_0x563285=_0x225578['_makeModelFromViewString'](_0x3ef080['diffData'][_0x4e1b1a]['insertions']);_0x563285['rootName']=_0x4e1b1a,_0x563285['_isAttached']=!_0x537891||_0x537891['isAttached'],_0x563285['isAttached']=()=>_0x563285['_isAttached'],this['_diffRoots']['set'](_0x4e1b1a,_0x563285),this['_diffRootsAttributes']['set'](_0x4e1b1a,_0x384aa5);const _0x2e93dd=this['_makeIdsRoot'](_0x563285,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4e1b1a,_0x2e93dd),_0x5b12bb['set'](_0x4e1b1a,_0x563285['isAttached']()?_0x384aa5:{});for(const [_0x3d32df,_0x38c07d]of _0x563285['markers']){if(!_0x3d32df['startsWith']('revision:'))continue;const _0x3dd72f=_0x3d32df['split'](':')[0x2];for(const _0x2f1880 of _0x38c07d['getWalker']({'singleCharacters':!0x0})){const _0x3d131d=this['_getVidAttributeName'](_0x2f1880),_0x476b53=this['_revisionId']++,_0x188fc2='elementEnd'==_0x2f1880['type']?_0x2f1880['previousPosition']['path']['slice'](0x0,-0x1):_0x2f1880['previousPosition']['path'];_0x2e93dd['getNodeByPath'](_0x188fc2)['_setAttribute'](_0x3d131d,_0x476b53),this['_touched']['set'](_0x476b53,{'userId':_0x3dd72f});}_0x563285['markers']['delete'](_0x3d32df);}for(const _0x1d6593 of this['editor']['model']['createRangeIn'](_0x563285)['getWalker']({'singleCharacters':!0x0})){const _0x534ee3=this['_getVidAttributeName'](_0x1d6593),_0x1b4013='elementEnd'==_0x1d6593['type']?_0x1d6593['previousPosition']['path']['slice'](0x0,-0x1):_0x1d6593['previousPosition']['path'],_0x136197=_0x2e93dd['getNodeByPath'](_0x1b4013);_0x136197['getAttribute'](_0x534ee3)>0x0||_0x136197['_setAttribute'](_0x534ee3,_0x5e3883[_0xfa8a6b++]);}for(const [_0x1e9498,_0x182c4f]of _0x563285['markers'])_0x1e9498['startsWith']('revision:')||this['_markers']['set'](_0x1e9498,_0x182c4f);}const {roots:_0x5e87bd}=this['_savedMetaData']['get'](_0x3ef080['fromVersion']),{roots:_0x4ff668}=this['_savedMetaData']['get'](_0x3ef080['toVersion']),_0x4f3ef2=K(_0x5e87bd['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x4f3ef2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4f3ef2,Number['NEGATIVE_INFINITY']));const _0x550458=K(_0x4ff668['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x550458),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x550458));const _0x3e171a=Array['from'](this['_diffRoots'])['map'](([_0x4c1a62,_0x1017de])=>[_0x4c1a62,K(_0x1017de)]);this['_saveMetaData'](this['_lastTo'],_0x3e171a,this['_markers'],_0x5b12bb);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x51437d,_0x225239,_0x3eeff0,_0x59422d){const _0x4621a9=new Map(_0x225239),_0x51a746=new Map(_0x83ca90(_0x59422d)),_0xb7266f=new Map();for(const [_0x13f2a4,_0x1da3da]of _0x3eeff0)_0xb7266f['set'](_0x13f2a4,{'start':_0x1da3da['start']['clone'](),'end':_0x1da3da['end']['clone'](),'rootName':_0x1da3da['root']['rootName']});this['_savedMetaData']['set'](_0x51437d,{'roots':_0x4621a9,'markers':_0xb7266f,'rootsAttributes':_0x51a746});}['_removeMetaData'](_0x254c16){this['_savedMetaData']['delete'](_0x254c16);}['_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'](_0x2869b5,_0xe4cc53=null){let _0x1bf7a3=null;_0x2869b5['is']('documentFragment')||(_0x1bf7a3=new _0x36b445(_0x2869b5['name'],{'vid_start':null===_0xe4cc53?this['_revisionId']++:_0xe4cc53++}));const _0x25e7c7=[];for(const _0x1ab04b of _0x2869b5['getChildren']())if(_0x1ab04b['is']('element')){_0x25e7c7['push'](this['_makeIdsRoot'](_0x1ab04b,_0xe4cc53));const _0x280ffb=_0x25e7c7[_0x25e7c7['length']-0x1];null!==_0xe4cc53&&(_0xe4cc53=_0x280ffb['is']('element','$text')?_0x280ffb['getAttribute']('vid')+0x1:_0x280ffb['getAttribute']('vid_end')+0x1);}else{for(let _0x54a2eb=0x0;_0x54a2eb<_0x1ab04b['offsetSize'];_0x54a2eb++)_0x25e7c7['push'](new _0x36b445('$text',{'vid':null===_0xe4cc53?this['_revisionId']++:_0xe4cc53++}));}if(_0x2869b5['is']('documentFragment')){const _0x59bf46=N(_0x2869b5['rootName']);return _0x59bf46['_insertChild'](0x0,_0x25e7c7),_0x59bf46;}return _0x1bf7a3['_setAttribute']('vid_end',null===_0xe4cc53?this['_revisionId']++:_0xe4cc53++),_0x1bf7a3['_insertChild'](0x0,_0x25e7c7),_0x1bf7a3;}['_calculateMetaData'](_0x2233f2,_0x5b0fdc,_0x18c2a3){this['_reset']();const {roots:_0x151a9e,markers:_0x231aa2,rootsAttributes:_0x2f5d8b}=this['_savedMetaData']['get'](_0x2233f2);this['_baseRoots']=new Map(_0x151a9e),this['_baseRootsAttributes']=new Map(_0x83ca90(_0x2f5d8b));for(const [_0x27ea13,_0x5dc5d2]of this['_baseRoots'])if('$graveyard'!==_0x27ea13&&(this['_diffRoots']['set'](_0x27ea13,K(_0x5dc5d2)),this['_diffRootsAttributes']=new Map(_0x83ca90(_0x2f5d8b)),_0x18c2a3)){const _0x55a298=this['_revisionId'];this['_idsRoots']['set'](_0x27ea13,this['_makeIdsRoot'](_0x5dc5d2)),this['_baseIdsRoots']['set'](_0x27ea13,this['_makeIdsRoot'](_0x5dc5d2,_0x55a298));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',K(this['_baseRoots']['get']('$graveyard'))),_0x18c2a3&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4f8b0e,_0x1fe864]of _0x231aa2){const _0x369834=this['_baseRoots']['get'](_0x1fe864['rootName']),_0xcb6465=this['_diffRoots']['get'](_0x1fe864['rootName']),_0x54fa77=new _0xb3cd0f(this['_fixPosition'](_0x1fe864['start'],_0x369834),this['_fixPosition'](_0x1fe864['end'],_0x369834)),_0x1e1c95=this['_fixRange'](_0x54fa77,_0xcb6465);_0x369834['markers']['set'](_0x4f8b0e,_0x54fa77),this['_markers']['set'](_0x4f8b0e,_0x1e1c95);}this['_applyOperations'](_0x2233f2,_0x5b0fdc,_0x18c2a3);}['_applyOperations'](_0x254d82,_0x16d251,_0x244468){for(const _0x44d1ba of this['source']['getOperations'](_0x254d82,_0x16d251))this['_handleOperation'](_0x44d1ba,_0x244468);for(const _0x322f96 of this['_diffRoots']['values']())_0x322f96['markers']['clear']();for(const [_0x275bfe,_0x2b5b5d]of this['_markers']){this['_diffRoots']['get'](_0x2b5b5d['root']['rootName'])['markers']['set'](_0x275bfe,_0x2b5b5d['clone']());}const _0x143413=new Map(),_0x36e317=new Map();for(const [_0x177330,_0x1df78e]of this['_diffRoots'])_0x143413['set'](_0x177330,K(_0x1df78e)),_0x36e317['set'](_0x177330,this['_diffRootsAttributes']['get'](_0x177330));this['_saveMetaData'](_0x16d251,_0x143413,this['_markers'],_0x36e317);}['_getPreviousFrom'](_0xf89bb3){const _0x1cc276=Array['from'](this['_savedMetaData']['keys']());_0x1cc276['sort']((_0x7cf7,_0x569cf2)=>_0x7cf7-_0x569cf2),_0x1cc276['reverse']();for(const _0x5027d5 of _0x1cc276)if(_0x5027d5<_0xf89bb3)return _0x5027d5;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x450716,_0x28bb56){const _0x2e89a8=Array['from'](_0x28bb56['markers'])['map'](([_0x233fe8,_0x2a6d36])=>[_0x233fe8,this['_fixRange'](_0x2a6d36,_0x450716)]);_0x450716['markers']=new Map(_0x2e89a8);}['_transformMarkers'](_0x3d69b6){for(const _0xde39d8 of this['_markers']['values']()){const _0x146838=_0xde39d8['getTransformedByOperation'](_0x3d69b6),_0x2d0eb2=_0xb3cd0f['_createFromRanges'](_0x146838);_0xde39d8['start']=_0x2d0eb2['start'],_0xde39d8['end']=_0x2d0eb2['end'];}}['_handleOperation'](_0x11269e,_0x21d0bb){if('addRoot'!=_0x11269e['type']&&'detachRoot'!=_0x11269e['type']){if('insert'==_0x11269e['type']){const _0x2e2502=_0x11269e['position']['root']['rootName'];this['_diffRoots']['has'](_0x2e2502)||(this['_diffRoots']['set'](_0x2e2502,N(_0x2e2502,!0x0)),this['_diffRootsAttributes']['set'](_0x2e2502,{}),_0x21d0bb&&this['_idsRoots']['set'](_0x2e2502,N(_0x2e2502,!0x0)));}else{if('addRootAttribute'==_0x11269e['type']||'removeRootAttribute'==_0x11269e['type']||'changeRootAttribute'==_0x11269e['type'])return void this['_handleRootAttributeOperation'](_0x11269e);'marker'==_0x11269e['type']&&this['_handleMarkerOperation'](_0x11269e);}if('marker'!==_0x11269e['type']){const _0x2269fe=this['_cloneOperation'](_0x11269e,this['_diffRoots']);_0x2269fe['_execute'](),this['_transformMarkers'](_0x2269fe);}if(_0x21d0bb)switch(_0x11269e['type']){case'insert':this['_handleInsertOperation'](_0x11269e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x11269e);break;case'merge':this['_handleMergeOperation'](_0x11269e);break;case'split':this['_handleSplitOperation'](_0x11269e);}}else this['_handleRootOperation'](_0x11269e,_0x21d0bb);}['_cloneOperation'](_0x1d91bf,_0x217bbf){const _0x5b4b5e=_0x1d91bf['clone']();return _0x5b4b5e['_authorId']=_0x1d91bf['_authorId'],this['_fixOperation'](_0x5b4b5e,_0x217bbf),_0x5b4b5e;}['_getBaseVids'](_0x4d49ad){return _0x4d49ad['map'](_0x1339d1=>{const _0x379be9=this['_getVidAttributeName'](_0x1339d1);return Number(_0x1339d1['item']['getAttribute'](_0x379be9));});}['_generateTape'](_0x13485,_0x2156c2){if(_0x13485['is']('element','$text'))_0x2156c2['push']({'item':_0x13485,'type':'text'});else{_0x13485['is']('element')&&_0x2156c2['push']({'item':_0x13485,'type':'elementStart'});for(const _0x1830d7 of _0x13485['getChildren']())this['_generateTape'](_0x1830d7,_0x2156c2);_0x13485['is']('element')&&_0x2156c2['push']({'item':_0x13485,'type':'elementEnd'});}return _0x2156c2;}['_getState'](){const _0x48c365=new Map(this['_touched']),_0x43767a=new Map(_0x48c365),_0x29cb9a=new Map(),_0x36c9bb={'insertions':{},'deletions':{}},_0x37d1d4={'insertions':{},'deletions':{}},_0x38424f=new Map(),_0x33bab5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x33bab5['delete']('$graveyard');for(const _0x23630e of _0x33bab5){const _0x45bb33=this['_diffRoots']['get'](_0x23630e)||N(_0x23630e,!0x1),_0x42de8a=this['_baseRoots']['get'](_0x23630e)||N(_0x23630e,!0x1);_0x45bb33['isAttached']()||_0x42de8a['isAttached']()?(_0x36c9bb['insertions'][_0x23630e]=K(_0x45bb33),_0x36c9bb['deletions'][_0x23630e]=K(_0x42de8a),this['_copyMarkers'](_0x36c9bb['deletions'][_0x23630e],_0x42de8a),this['_copyMarkers'](_0x36c9bb['insertions'][_0x23630e],_0x45bb33),_0x37d1d4['insertions'][_0x23630e]=this['_generateTape'](this['_idsRoots']['get'](_0x23630e),[]),_0x37d1d4['deletions'][_0x23630e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x23630e)||N(_0x23630e,!0x1),[])):_0x33bab5['delete'](_0x23630e);}for(const _0x349884 of _0x33bab5){const _0x53cc23=_0x37d1d4['insertions'][_0x349884];for(const _0x3fa61d of _0x53cc23){const _0x1b103b=this['_getVidAttributeName'](_0x3fa61d),_0xbcb78a=_0x3fa61d['item']['getAttribute'](_0x1b103b);_0x43767a['delete'](_0xbcb78a),_0xbcb78a>=this['_startingRevisionId']&&_0x29cb9a['set'](_0xbcb78a,_0x48c365['get'](_0xbcb78a));}}for(const _0x1757b3 of _0x33bab5){const _0x32db57=_0x37d1d4['insertions'][_0x1757b3],_0x507775=this['_getBaseVids'](_0x37d1d4['deletions'][_0x1757b3]);let _0x4893b0=0x0;for(const _0x2bbd4c of _0x32db57){const _0x3d1886=this['_getVidAttributeName'](_0x2bbd4c),_0xa8a885=_0x2bbd4c['item']['getAttribute'](_0x3d1886);if(!_0x29cb9a['has'](_0xa8a885)&&!_0x38424f['has'](_0xa8a885)){if(_0x43767a['has'](_0xa8a885))_0x4893b0++;else{if(_0xa8a885!=_0x507775[_0x4893b0]){const _0x5b9d03=_0x48c365['get'](_0xa8a885)||_0x48c365['get'](_0x507775[_0x4893b0]);for(;_0xa8a885!=_0x507775[_0x4893b0];)_0x43767a['has'](_0x507775[_0x4893b0])||(_0x38424f['set'](_0x507775[_0x4893b0],_0x5b9d03),_0x48c365['set'](_0x507775[_0x4893b0],_0x5b9d03)),_0x4893b0++;}_0x4893b0++;}}}}for(const _0x37bd66 of _0x33bab5){const _0x26da32=_0x37d1d4['insertions'][_0x37bd66];for(const _0x2b5502 of _0x26da32){const _0xc5c5ef=this['_getVidAttributeName'](_0x2b5502),_0x449b9c=_0x2b5502['item']['getAttribute'](_0xc5c5ef);if(_0x38424f['has'](_0x449b9c)){const _0x320267=_0x38424f['get'](_0x449b9c);_0x43767a['has'](_0x449b9c)||_0x43767a['set'](_0x449b9c,{..._0x320267}),_0x29cb9a['set'](_0x449b9c,{..._0x320267});}}}for(const _0x45f9f6 of _0x43767a['keys']())_0x45f9f6>=this['_startingRevisionId']&&_0x43767a['delete'](_0x45f9f6);const _0x146735=new Map();for(const _0x114d40 of _0x33bab5){let _0x42b8c1=_0x37d1d4['insertions'][_0x114d40];for(const _0xf561b0 of _0x42b8c1)if(_0xf561b0['item']['is']('element','tableCell')){const _0x30a3b0=this['_getVidAttributeName'](_0xf561b0),_0xf11172=_0xf561b0['item']['getAttribute'](_0x30a3b0);if(_0x29cb9a['has'](_0xf11172)){const _0xb2905d=_0xf561b0['item']['parent']['parent']['getAttribute']('vid_start'),_0x203314=_0x146735['get'](_0xb2905d)||new Set();_0x203314['add'](_0x29cb9a['get'](_0xf11172)['userId']),_0x146735['set'](_0xb2905d,_0x203314);}}_0x42b8c1=_0x37d1d4['deletions'][_0x114d40];for(const _0x1dc351 of _0x42b8c1)if(_0x1dc351['item']['is']('element','tableCell')){const _0x239fb7=this['_getVidAttributeName'](_0x1dc351),_0x5410e3=_0x1dc351['item']['getAttribute'](_0x239fb7);if(_0x43767a['has'](_0x5410e3)){const _0x58d5a3=_0x1dc351['item']['parent']['parent']['getAttribute']('vid_start'),_0x333f25=_0x146735['get'](_0x58d5a3)||new Set();_0x333f25['add'](_0x43767a['get'](_0x5410e3)['userId']),_0x146735['set'](_0x58d5a3,_0x333f25);}}for(const _0x24b095 of _0x146735['keys']())(_0x29cb9a['has'](_0x24b095)||_0x43767a['has'](_0x24b095))&&_0x146735['delete'](_0x24b095);}for(const _0xd3c3f6 of _0x33bab5){const _0x3a141c=_0x37d1d4['insertions'][_0xd3c3f6];let _0x2e16c3=null,_0x27723c=null;for(const _0x4327ed of _0x3a141c){const _0x26e106=this['_getVidAttributeName'](_0x4327ed),_0x1824d2=_0x4327ed['item']['getAttribute'](_0x26e106),_0x3e44b8=_0x146735['get'](_0x1824d2);_0x3e44b8&&'elementStart'==_0x4327ed['type']&&(_0x2e16c3=Array['from'](_0x3e44b8)[0x0],_0x27723c=_0x4327ed['item']['getAttribute']('vid_end')),_0x2e16c3&&(_0x43767a['set'](_0x1824d2,{'userId':_0x2e16c3}),_0x29cb9a['set'](_0x1824d2,{'userId':_0x2e16c3})),_0x1824d2==_0x27723c&&(_0x2e16c3=null,_0x27723c=null);}}const _0x567751={},_0x321465=new Set();for(const _0x1dabdb of _0x33bab5){const _0x423266=_0x36c9bb['deletions'][_0x1dabdb],_0x28bea9=_0x36c9bb['insertions'][_0x1dabdb];for(const {userId:_0x1ba1a1}of this['_touchedMarkers']['values']())null!==_0x1ba1a1&&_0x321465['add'](_0x1ba1a1);for(const {userId:_0x215bec}of this['_touchedRoots']['values']())null!==_0x215bec&&_0x321465['add'](_0x215bec);this['_markChanges'](_0x28bea9,_0x37d1d4['insertions'][_0x1dabdb],_0x29cb9a,'insertion',_0x321465),this['_markChanges'](_0x423266,_0x37d1d4['deletions'][_0x1dabdb],_0x43767a,'deletion',_0x321465),_0x567751[_0x1dabdb]={'insertions':this['_prepareViewToSave'](_0x28bea9),'deletions':this['_prepareViewToSave'](_0x423266),'attachChange':this['_touchedRoots']['get'](_0x1dabdb)||null,'attributesBefore':_0x83ca90(this['_baseRootsAttributes']['get'](_0x1dabdb))||{},'attributesAfter':_0x83ca90(this['_diffRootsAttributes']['get'](_0x1dabdb))};}return{'diffData':_0x567751,'authorsIds':Array['from'](_0x321465)};}['_processRootBeforeSave'](_0x14530f){for(const [,_0x431705]of _0x14530f['markers']){const _0x577e83=_0x431705['start']['getAncestors']()['filter'](_0x49f7b1=>'tableCell'==_0x49f7b1['name']);for(const _0x450a98 of _0x577e83)0x1==_0x450a98['childCount']&&_0x450a98['getChild'](0x0)['is']('element','paragraph')&&_0x450a98['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x11c429){this['_processRootBeforeSave'](_0x11c429);const _0x59d0b2=this['editor']['data']['toView'](_0x11c429,{}),_0x226ed6=Array['from'](_0x59d0b2['getChildren']())['map'](_0x5cbef2=>this['_getViewJson'](_0x5cbef2));return JSON['stringify'](_0x226ed6);}['_getViewJson'](_0x519ebc){if(_0x519ebc['is']('$text'))return _0x519ebc['data'];{const _0x544f62=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x34b89b=_0x519ebc,_0x1d6b90=this['editor']['data']['htmlProcessor']['domConverter'],_0x4eb9ca={'type':_0x544f62['_getTypeCharForViewElement'](_0x34b89b),'name':_0x34b89b['name'],'attributes':Array['from'](_0x34b89b['getAttributes']()),'children':Array['from'](_0x34b89b['getChildren']())['map'](_0x30b9c9=>this['_getViewJson'](_0x30b9c9))};if(_0x519ebc['is']('uiElement')&&'$comment'!=_0x519ebc['name']){const _0x1f6b23=_0x519ebc['render'](_0x1d6b90['domDocument'],_0x1d6b90);_0x4eb9ca['children']['push'](_0x1f6b23['outerHTML']);}else{if(_0x519ebc['is']('rawElement')){const _0x31314a=_0x1d6b90['domDocument']['createElement'](_0x34b89b['name']);_0x519ebc['render'](_0x31314a,_0x1d6b90),_0x4eb9ca['children']['push'](_0x31314a['innerHTML']);}}const _0x4350b3=Array['from'](_0x34b89b['getCustomProperties']());_0x4350b3['length']>0x0&&(_0x4eb9ca['customProperties']=_0x4350b3);const _0x279f30=_0x34b89b['getFillerOffset']();return null!==_0x279f30&&(_0x4eb9ca['fillerOffset']=_0x279f30),_0x4eb9ca;}}['_markChanges'](_0xb9e136,_0x518b55,_0x359d2c,_0x396d10,_0x39705b){let _0x59ce78=null,_0x2bc6f7=null,_0x4b9bae=0x0;const _0x43481a=this['editor']['model'];for(let _0xcfe135=0x0;_0xcfe135<_0x518b55['length'];_0xcfe135++){const _0x4f3648=this['_getVidAttributeName'](_0x518b55[_0xcfe135]),_0x1ecd27=_0x518b55[_0xcfe135]['item']['getAttribute'](_0x4f3648),_0x2541b7=_0x359d2c['get'](_0x1ecd27),_0x1fd5e0=_0xcfe135==_0x518b55['length']-0x1;(!_0x59ce78&&_0x2541b7&&(_0x59ce78=_0x2541b7,_0x2bc6f7=_0x518b55[_0xcfe135]),_0x59ce78&&(!_0x2541b7||_0x2541b7['userId']!=_0x59ce78['userId']))&&(_0x917453(_0x2541b7,P(_0x2bc6f7,_0xb9e136,_0x43481a),P(_0x518b55[_0xcfe135],_0xb9e136,_0x43481a)),_0x59ce78=_0x2541b7||null,_0x2bc6f7=_0x2541b7?_0x518b55[_0xcfe135]:null),_0x59ce78&&_0x1fd5e0&&_0x917453(_0x2541b7,P(_0x2bc6f7,_0xb9e136,_0x43481a),V(_0x518b55[_0xcfe135],_0xb9e136,_0x43481a));}function _0x917453(_0x50c3b5,_0x2adedc,_0x5724db){const _0x448be5=_0x59ce78['userId'],_0x1791c8='revision:'+_0x396d10+':'+_0x448be5+':'+_0x4b9bae++,_0x32f692=_0x43481a['createRange'](_0x2adedc,_0x5724db);_0xb9e136['markers']['set'](_0x1791c8,_0x32f692),null!==_0x448be5&&_0x39705b['add'](_0x448be5);}}['_getVidAttributeName'](_0x59cba4){switch(_0x59cba4['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x487c1f,_0x206f9f){_0x487c1f['baseVersion']=null;for(const _0x46a900 in _0x487c1f){const _0x2dbb13=_0x487c1f[_0x46a900];if(_0x2dbb13 instanceof _0x517828){const _0x4a9100=_0x206f9f['get'](_0x2dbb13['root']['rootName']);_0x487c1f[_0x46a900]=this['_fixPosition'](_0x2dbb13,_0x4a9100);}if(_0x2dbb13 instanceof _0xb3cd0f){const _0xaf12b3=_0x206f9f['get'](_0x2dbb13['root']['rootName']);_0x487c1f[_0x46a900]=this['_fixRange'](_0x2dbb13,_0xaf12b3);}'root'===_0x46a900&&(_0x487c1f['root']=_0x206f9f['get'](_0x487c1f['root']['rootName']));}}['_fixRange'](_0x515121,_0x539921){return this['editor']['model']['createRange'](this['_fixPosition'](_0x515121['start'],_0x539921),this['_fixPosition'](_0x515121['end'],_0x539921));}['_fixPosition'](_0x4254d1,_0x3d717c){return this['editor']['model']['createPositionFromPath'](_0x3d717c,_0x4254d1['path'],_0x4254d1['stickiness']);}['_handleInsertOperation'](_0x3bab9e){const _0x5eaaae=this['_idsRoots']['get'](_0x3bab9e['position']['root']['rootName']),_0x435620=this['_fixPosition'](_0x3bab9e['position'],_0x5eaaae),_0x27ee77=null===_0x3bab9e['_authorId']?null:_0x3bab9e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b53e7=_0x435620['parent'],_0x4b9c92=this['_revisionId'],_0x3639d7=[];for(const _0x2a1655 of _0x3bab9e['nodes'])if(_0x2a1655['is']('element'))_0x3639d7['push'](this['_makeIdsRoot'](_0x2a1655));else{for(let _0x1b6d6e=0x0;_0x1b6d6e<_0x2a1655['offsetSize'];_0x1b6d6e++)_0x3639d7['push'](new _0x36b445('$text',{'vid':this['_revisionId']++}));}const _0x90ff4e=this['_revisionId'];for(let _0x3a08e3=_0x4b9c92;_0x3a08e3<_0x90ff4e;_0x3a08e3++)this['_touched']['set'](_0x3a08e3,{'userId':_0x27ee77});_0x1b53e7['_insertChild'](_0x435620['offset'],_0x3639d7);}['_handleMoveOperation'](_0x2d30c5){(_0x2d30c5=this['_cloneOperation'](_0x2d30c5,this['_idsRoots']))['_execute']();const _0xa1ca57=null===_0x2d30c5['_authorId']?null:_0x2d30c5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e52fd=_0x2d30c5['getMovedRangeStart'](),_0x5dfb93=_0x4e52fd['parent'],_0x3dba44=_0x4e52fd['offset'];!function _0x28aaed(_0x47af67,_0x5206e2,_0x304373,_0x2e7c96){for(let _0x1fe3e2=_0x304373;_0x1fe3e2<_0x2e7c96;_0x1fe3e2++){const _0x251219=_0x5206e2['getChild'](_0x1fe3e2);_0x251219['is']('element','$text')?_0x47af67['set'](_0x251219['getAttribute']('vid'),{'userId':_0xa1ca57}):(_0x47af67['set'](_0x251219['getAttribute']('vid_start'),{'userId':_0xa1ca57}),_0x28aaed(_0x47af67,_0x251219,0x0,_0x251219['childCount']),_0x47af67['set'](_0x251219['getAttribute']('vid_end'),{'userId':_0xa1ca57}));}}(this['_touched'],_0x5dfb93,_0x3dba44,_0x3dba44+_0x2d30c5['howMany']);}['_handleMergeOperation'](_0x5c5d48){const _0x1bca2e=null===(_0x5c5d48=this['_cloneOperation'](_0x5c5d48,this['_idsRoots']))['_authorId']?null:_0x5c5d48['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x169f14=_0x5c5d48['targetPosition']['parent'],_0x5a6381=_0x5c5d48['sourcePosition']['parent'],_0x48c88a=_0x169f14['getAttribute']('vid_end'),_0x415fe3=_0x5a6381['getAttribute']('vid_start');_0x169f14['_setAttribute']('vid_end',_0x5a6381['getAttribute']('vid_end')),_0x5a6381['_setAttribute']('vid_end',_0x48c88a),this['_touched']['set'](_0x415fe3,{'userId':_0x1bca2e}),this['_touched']['set'](_0x48c88a,{'userId':_0x1bca2e}),_0x5c5d48['_execute']();}['_handleSplitOperation'](_0x34f335){const _0x39035f=null===(_0x34f335=this['_cloneOperation'](_0x34f335,this['_idsRoots']))['_authorId']?null:_0x34f335['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b5368=_0x34f335['graveyardPosition'],_0xeab941=_0x34f335['splitPosition']['parent'];_0x34f335['_execute']();const _0x13ccac=_0xeab941['getAttribute']('vid_end'),_0x3cd0d4=_0x34f335['insertionPosition']['nodeAfter'];if(_0x1b5368){const _0x137eb3=_0x3cd0d4['getAttribute']('vid_end'),_0x24febe=_0xeab941['getAttribute']('vid_end');_0xeab941['_setAttribute']('vid_end',_0x137eb3),_0x3cd0d4['_setAttribute']('vid_end',_0x24febe),this['_touched']['set'](_0xeab941['getAttribute']('vid_end'),{'userId':_0x39035f}),this['_touched']['set'](_0x3cd0d4['getAttribute']('vid_start'),{'userId':_0x39035f});}else{const _0x384d79=this['_revisionId']++,_0x3d08e0=this['_revisionId']++;_0xeab941['_setAttribute']('vid_end',_0x384d79),_0x3cd0d4['_setAttribute']('vid_start',_0x3d08e0),_0x3cd0d4['_setAttribute']('vid_end',_0x13ccac),this['_touched']['set'](_0x384d79,{'userId':_0x39035f}),this['_touched']['set'](_0x3d08e0,{'userId':_0x39035f});}}['_handleMarkerOperation'](_0x49e574){if(!_0x49e574['affectsData'])return;const _0x4508e0=(_0x49e574=this['_cloneOperation'](_0x49e574,this['_diffRoots']))['oldRange']?_0x49e574['oldRange']['root']:null,_0x4410da=_0x49e574['newRange']?_0x49e574['newRange']['root']:null;_0x4508e0&&this['_markers']['delete'](_0x49e574['name']),_0x4410da&&this['_markers']['set'](_0x49e574['name'],_0x49e574['newRange']['clone']());const _0x305c63=null===_0x49e574['_authorId']?null:_0x49e574['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44600f=_0x49e574['name'];if(!this['_touchedMarkers']['has'](_0x44600f))return void this['_touchedMarkers']['set'](_0x44600f,{'range':_0x49e574['oldRange'],'userId':_0x305c63});const _0xc1c0a9=this['_touchedMarkers']['get'](_0x44600f),_0x13aa3c=_0xc1c0a9['range'],_0x23a68b=_0x49e574['newRange'];null==_0x13aa3c&&null==_0x23a68b||_0x13aa3c&&_0x23a68b&&_0x13aa3c['isEqual'](_0x23a68b)?this['_touchedMarkers']['delete'](_0x49e574['name']):_0xc1c0a9['userId']=_0x305c63;}['_handleRootOperation'](_0x283731,_0x4c7f7c){this['_diffRoots']['has'](_0x283731['rootName'])?this['_diffRoots']['get'](_0x283731['rootName'])['_isAttached']=_0x283731['isAdd']:(this['_diffRoots']['set'](_0x283731['rootName'],N(_0x283731['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x283731['rootName'],{}),_0x4c7f7c&&this['_idsRoots']['set'](_0x283731['rootName'],N(_0x283731['rootName'],!0x0)));const _0x487d06=null===_0x283731['_authorId']?null:_0x283731['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa36e37=this['_touchedRoots']['get'](_0x283731['rootName']);_0xa36e37&&_0xa36e37['userId']===_0x487d06?this['_touchedRoots']['delete'](_0x283731['rootName']):this['_touchedRoots']['set'](_0x283731['rootName'],{'userId':_0x487d06,'isAttached':_0x283731['isAdd']});}['_handleRootAttributeOperation'](_0x37c385){const _0x261190=this['_diffRootsAttributes']['get'](_0x37c385['root']['rootName']);null===_0x37c385['newValue']?delete _0x261190[_0x37c385['key']]:_0x261190[_0x37c385['key']]=_0x37c385['newValue'];}}function K(_0x2b08cd){const _0x5943c6=N(_0x2b08cd['rootName'],_0x2b08cd['isAttached']());for(const _0xdf00bf of _0x2b08cd['getChildren']()){const _0x3024b9=_0xdf00bf['_clone'](!0x0);_0x5943c6['_appendChild'](_0x3024b9);}return _0x5943c6;}function N(_0x5bccbb,_0xc48329=!0x0){const _0x43ac14=new _0x8c84c8();return _0x43ac14['rootName']=_0x5bccbb,_0x43ac14['_isAttached']=_0xc48329,_0x43ac14['isAttached']=()=>_0x43ac14['_isAttached'],_0x43ac14;}function P(_0x78770d,_0x2c5c2f,_0x4214ad){const _0x3b2d4f='elementEnd'==_0x78770d['type']?_0x4214ad['createPositionAt'](_0x78770d['item'],'end'):_0x4214ad['createPositionBefore'](_0x78770d['item']);return _0x4214ad['createPositionFromPath'](_0x2c5c2f,_0x3b2d4f['path'],_0x3b2d4f['stickiness']);}function V(_0xa157f1,_0x2de73b,_0x10407c){const _0x3b4fed='elementStart'==_0xa157f1['type']?_0x10407c['createPositionAt'](_0xa157f1['item'],0x0):_0x10407c['createPositionAfter'](_0xa157f1['item']);return _0x10407c['createPositionFromPath'](_0x2de73b,_0x3b4fed['path'],_0x3b4fed['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5aa04a(_0x4eb8a3){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4244cf,_0x1c5f1c){super(_0x4244cf),this['focusTracker']=new _0x30890a(),this['keystrokes']=new _0x34a3da(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1c5f1c),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'](),_0xccd7c3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2c5de2=_0x50a2b5=>_0x50a2b5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2c5de2),this['keystrokes']['set']('arrowleft',_0x2c5de2),this['keystrokes']['set']('arrowup',_0x2c5de2),this['keystrokes']['set']('arrowdown',_0x2c5de2);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x14abd6){this['revisionNameInputView']['fieldView']['element']['value']=_0x14abd6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x222267){const _0x2d412b=new et(this['locale'],ti),_0xcbfc1e=_0x2d412b['fieldView'];_0xcbfc1e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4b9df7=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x222267&&(_0x4b9df7+='\x20('+m(this['locale'],'optional')+')'),(_0x2d412b['label']=_0x4b9df7,_0xcbfc1e['on']('input',()=>{this['revisionNameInputValue']=_0xcbfc1e['element']['value']['trim']();}),_0x2d412b);}}class l extends _0xbe21c4{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x2f3c18=this['editor'],_0x23c3d0=_0x2f3c18['plugins']['get']('RevisionTracker');_0x2f3c18['ui']['componentFactory']['add']('revisionHistory',_0x5c8f0e=>{const _0x41e46c=_0x1e23a0(_0x5c8f0e),_0x1b9334=_0x41e46c['panelView']['children'],_0x7ce969=new _0x4b2173(_0x5c8f0e),_0x11d5f0=new _0x55af41(_0x5c8f0e),_0x24eebd=this['_createSaveRevisionButton'](_0x41a1a9),_0x5a60b4=new _0x55af41(_0x5c8f0e),_0x456a66=this['_createOpenRevisionButton'](_0x41a1a9);return _0x41e46c['bind']('isEnabled')['to'](_0x23c3d0,'isReady',_0x23c3d0,'isEnabled',_0x2f3c18,'isReadOnly',(_0x5efc6e,_0x2df569,_0x458ec1)=>_0x5efc6e&&_0x2df569&&!_0x458ec1),_0x41e46c['buttonView']['set']({'icon':_0x672cd0,'label':m(_0x5c8f0e,'Revision\x20history'),'tooltip':!0x0}),_0x24eebd['set']({'withText':!0x0,'role':'menuitem'}),_0x456a66['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x456a66,'execute',()=>{_0x41e46c['isOpen']=!0x1,_0x2f3c18['editing']['view']['focus']();},{'priority':'low'}),_0x11d5f0['children']['add'](_0x24eebd),_0x5a60b4['children']['add'](_0x456a66),_0x7ce969['role']='menu',_0x7ce969['items']['addMany']([_0x11d5f0,_0x5a60b4]),_0x1b9334['add'](_0x7ce969),_0x41e46c;}),_0x2f3c18['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xe7dc57=this['editor'],_0x9f75aa=_0xe7dc57['locale'],_0x587f28=_0xe7dc57['plugins']['get']('RevisionTracker'),_0x55d4fc=new _0x22ce88(_0x9f75aa),_0xee4282=new _0x3b6094(_0x9f75aa);_0x55d4fc['bind']('isEnabled')['to'](_0x587f28,'isReady',_0x587f28,'isEnabled',_0xe7dc57,'isReadOnly',(_0x13875c,_0x498b33,_0x230f7a)=>_0x13875c&&_0x498b33&&!_0x230f7a),_0x55d4fc['buttonView']['set']({'icon':_0x672cd0,'label':m(_0x9f75aa,'Revision\x20history')});const _0x353c1a=new _0x360a69(_0x9f75aa,_0x55d4fc),_0x546900=this['_createSaveRevisionButton'](_0x1b7074);_0x546900['delegate']('execute')['to'](_0x55d4fc),_0x353c1a['children']['add'](_0x546900),_0xee4282['items']['add'](_0x353c1a);const _0x1fe6f2=new _0x360a69(_0x9f75aa,_0x55d4fc),_0x12bb31=this['_createOpenRevisionButton'](_0x1b7074);return _0x12bb31['delegate']('execute')['to'](_0x55d4fc),_0x1fe6f2['children']['add'](_0x12bb31),_0xee4282['items']['add'](_0x1fe6f2),_0x55d4fc['panelView']['children']['add'](_0xee4282),_0x55d4fc;}['_createSaveRevisionButton'](_0x548efa){const _0x418e19=this['editor'],_0xa1f81c=_0x418e19['plugins']['get']('RevisionTracker'),_0x4ec41e=new _0x548efa(_0x418e19['locale']);return _0x4ec41e['set']({'label':m(_0x418e19['locale'],'Save\x20current\x20revision')}),_0x4ec41e['bind']('isEnabled')['to'](_0xa1f81c,'isReady',_0xa1f81c,'isEnabled',_0x418e19,'isReadOnly',(_0x23bcf6,_0x1347ab,_0x466ca2)=>_0x23bcf6&&_0x1347ab&&!_0x466ca2),this['listenTo'](_0x4ec41e,'execute',()=>{this['_showDialog']();}),_0x4ec41e;}['_createOpenRevisionButton'](_0x3e7d97){const _0x4a6b04=this['editor'],_0xc789d9=_0x4a6b04['plugins']['get']('RevisionTracker'),_0x29b565=new _0x3e7d97(_0x4a6b04['locale']);return _0x29b565['set']({'label':m(_0x4a6b04['locale'],'Open\x20revision\x20history')}),_0x29b565['bind']('isEnabled')['to'](_0xc789d9,'isReady',_0x4a6b04,'isReadOnly',(_0x8f3dd3,_0x203346)=>_0x8f3dd3&&!_0x203346),this['listenTo'](_0x29b565,'execute',()=>{_0x4a6b04['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x29b565;}['_showDialog'](){const _0x2035fc=this['editor'],_0x162edc=_0x2035fc['locale'],_0x1b075e=_0x2035fc['plugins']['get']('Dialog'),_0x43bbb9=_0x2035fc['plugins']['get']('RevisionTracker');function _0xf6c3d8(_0x22a39a){_0x2035fc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x22a39a['revisionName']?_0x22a39a['revisionNameInputView']['errorText']=m(_0x162edc,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2035fc['plugins']['get'](h)['saveRevision']({'name':_0x22a39a['revisionName']}),_0x1b075e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xf6c3d8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b075e['show']({'id':'revisionSave','title':m(_0x162edc,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2035fc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b075e['hide']()},{'label':m(_0x2035fc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x234a24){_0x234a24['bind']('isEnabled')['to'](_0x43bbb9,'isReady',_0x43bbb9,'isEnabled',_0x2035fc,'isReadOnly',(_0x172116,_0xbfc1ba,_0x5d0468)=>_0x172116&&_0xbfc1ba&&!_0x5d0468);},'onExecute':()=>_0xf6c3d8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4b9b04=this['editor'],_0x1d5ba5=_0x4b9b04['locale'];this['_saveRevisionFormView']=new he(_0x1d5ba5,_0x4b9b04['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x4eb8a3{['changeId'];['_model'];constructor(_0x1b5a14,_0x35544b){super(_0x1b5a14),this['_model']=_0x35544b,this['changeId']=_0x35544b['id'];const _0x84d038=this['bindTemplate'],_0x14590f=m(_0x1b5a14,_0x35544b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x35544b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x35544b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x84d038['to']('type',_0x3bf403=>'ck-revision-change__'+_0x3bf403)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x14590f}]},{'text':'\x20'+_0x35544b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x113f03(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x36dc02){super(),this['id']=_0x36dc02['id']||_0x532896(),this['author']=_0x36dc02['author'],this['type']=_0x36dc02['type'],this['data']=_0x36dc02['data']||{},this['rootName']=_0x36dc02['rootName'],this['set']('createdAt',_0x36dc02['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(_0x38d6e3,_0x1e926e){this['newRevisionId']=_0x38d6e3,this['oldRevisionId']=_0x1e926e,this['changes']=new _0x504df2();}['_setChanges'](_0x50a448){for(const _0x192f61 of _0x50a448)this['changes']['add'](_0x192f61);}}class u extends _0xbe21c4{['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[_0x416e9c,_0x3e3e3f,S,$];}constructor(_0x42dc1b){super(_0x42dc1b),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',(_0x3d4002,_0x4860c0,_0x256624)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x566a16=>{for(const _0x3fbb41 of this['editor']['editing']['view']['document']['roots'])_0x256624?_0x566a16['removeClass']('ck-editor__editable__overlay',_0x3fbb41):_0x566a16['addClass']('ck-editor__editable__overlay',_0x3fbb41);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5e724f=>null!==_0x5e724f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5b2d33,_0x5844de,_0x470c5c)=>_0x5b2d33&&_0x470c5c?_0x5844de['changes']['getIndex'](_0x470c5c):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x56ccfa,_0x547445)=>_0x56ccfa?_0x547445['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x3e3e3f);}['init'](){const _0xb24340=this['editor'],_0x340fff=new rt(_0xb24340,{'direction':'backward'}),_0xf509f6=new rt(_0xb24340,{'direction':'forward'});(_0xb24340['commands']['add']('showPreviousChange',_0x340fff),_0xb24340['commands']['add']('showNextChange',_0xf509f6),_0xb24340['commands']['add']('restoreRevision',new nt(_0xb24340)),this['on']('change:numberOfChanges',()=>{_0x340fff['refresh'](),_0xf509f6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xb24340['enableReadOnlyMode']('revision-viewer'),_0xb24340['plugins']['has']('WidgetToolbarRepository'))&&_0xb24340['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3e3c02){return await this['_utils']['loadRevisionData'](_0x3e3c02,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3e3c02);}async['getRevisionRootsAttributes'](_0x3104df){return await this['_utils']['loadRevisionData'](_0x3104df,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3104df);}async['compare'](_0x447d7a,_0x452dbd,_0x44d824=!0x1){if(!this['isEnabled'])return;const _0x546dec=this['diff'],_0x45a055=this['repository'],_0x10841e='string'==typeof _0x447d7a?_0x45a055['getRevision'](_0x447d7a):_0x447d7a,_0x7967ed='string'==typeof _0x452dbd?_0x45a055['getRevision'](_0x452dbd):_0x452dbd,_0x277450=_0x10841e['id'],_0x358404=_0x7967ed?_0x7967ed['id']:null;if(!_0x44d824&&this['diff']&&this['diff']['newRevisionId']===_0x277450&&this['diff']['oldRevisionId']===_0x358404)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x277450,_0x358404);const _0x1d280a=this['_getRevisionsRange'](_0x10841e,_0x7967ed,!0x0)['map'](_0x5b4f82=>this['_utils']['loadRevisionData'](_0x5b4f82,this['adapter']));return _0x1d280a['push'](new Promise(_0x317a70=>{setTimeout(_0x317a70,0x14);})),Promise['all'](_0x1d280a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x551b65=this['_getDiff'](_0x277450,_0x358404);for(const _0x4f94df of _0x551b65['changes'])this['_changeIdToChange']['set'](_0x4f94df['id'],_0x4f94df);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e9ccf=>{for(const _0x5b0982 of this['editor']['model']['document']['getRootNames']())_0x3e9ccf['detachRoot'](_0x5b0982);for(const _0x22f309 of Object['keys'](_0x551b65['model'])){const _0x278d1a=_0x3e9ccf['addRoot'](_0x22f309);for(const _0x4decca of Object['keys'](_0x551b65['attributes'][_0x22f309]))_0x3e9ccf['setAttribute'](_0x4decca,_0x551b65['attributes'][_0x22f309][_0x4decca],_0x278d1a);_0x3e9ccf['insert'](_0x551b65['model'][_0x22f309],_0x278d1a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x551b65['changes'])),this['isReady']=!0x0;})['catch'](_0x422a0a=>{console['error'](_0x422a0a),this['_cleanUp'](),_0x546dec&&(this['diff']=_0x546dec),this['isReady']=!0x0;});}['addRevisionData'](_0x5e0f84,_0x5b9619){const _0x5ec505=this['repository']['createRevision'](_0x5e0f84);return _0x5ec505['on']('_update',(_0x4a7fe6,_0x1d0517,_0x3ce82c)=>_0x5b9619(_0x1d0517,_0x3ce82c,_0x5ec505)),this['repository']['addRevision'](_0x5ec505),_0x5ec505;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4b1596=>{for(const _0x5e926f of this['editor']['model']['document']['getRootNames']())_0x4b1596['detachRoot'](_0x5e926f);});}['_sortAndFilterDiffChanges'](_0x2e4e85){const _0x19b937=[],_0x51f1c8=new Map();for(const _0x467291 of this['editor']['model']['document']['getRootNames']()){const _0x1051e1=this['editor']['editing']['view']['getDomRoot'](_0x467291);if(!_0x1051e1)continue;const _0x1f64ec=_0x1051e1['getClientRects']()['item'](0x0);_0x1f64ec&&(_0x19b937['push'](_0x467291),_0x51f1c8['set'](_0x467291,_0x1f64ec));}return _0x19b937['sort']((_0x5a14c9,_0x4b3419)=>{const _0x30a2ce=_0x51f1c8['get'](_0x5a14c9),_0x3b6503=_0x51f1c8['get'](_0x4b3419);return _0x30a2ce['y']-_0x3b6503['y']||_0x30a2ce['x']-_0x3b6503['x'];}),(_0x2e4e85=_0x2e4e85['filter'](_0x4f77fd=>_0x19b937['includes'](_0x4f77fd['rootName'])))['sort']((_0x45bde8,_0x4a3386)=>_0x19b937['indexOf'](_0x45bde8['rootName'])-_0x19b937['indexOf'](_0x4a3386['rootName'])),_0x2e4e85;}['_makeTape'](_0x232772){const _0x40b918=Array['from'](_0x232772['markers'])['filter'](([_0x11c4bf,_0x3a5370])=>_0x11c4bf['startsWith']('revision:')&&!_0x3a5370['isCollapsed']),_0x4435e2=Array['from'](this['editor']['model']['createRangeIn'](_0x232772)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x40b918['length'])for(const _0x2e68ff of _0x4435e2){const [_0x36e547,_0x511590]=_0x40b918[0x0],[,_0x4889f3,_0x41622f]=_0x36e547['split'](':');if(_0x511590['end']['isEqual'](_0x2e68ff['nextPosition'])&&_0x40b918['shift'](),(_0x2e68ff['previousPosition']['isEqual'](_0x511590['start'])||_0x2e68ff['previousPosition']['isAfter'](_0x511590['start']))&&('insertion'==_0x4889f3?_0x2e68ff['isAdded']={'userId':_0x41622f}:'deletion'==_0x4889f3&&(_0x2e68ff['isRemoved']={'userId':_0x41622f})),0x0==_0x40b918['length'])break;}return _0x4435e2;}['_refreshStartEndIndex'](_0x235f84){const _0x1bf2f8=new Map();for(let _0x2d2217=0x0;_0x2d2217<_0x235f84['length'];_0x2d2217++)'text'===_0x235f84[_0x2d2217]['type']?(_0x235f84[_0x2d2217]['item']['startIndex']=_0x2d2217,_0x235f84[_0x2d2217]['item']['endIndex']=_0x2d2217):('elementStart'===_0x235f84[_0x2d2217]['type']?_0x235f84[_0x2d2217]['item']['startIndex']=_0x2d2217:'elementEnd'===_0x235f84[_0x2d2217]['type']&&(_0x235f84[_0x2d2217]['item']['endIndex']=_0x2d2217),_0x1bf2f8['set'](_0x235f84[_0x2d2217]['id'],_0x2d2217));for(const _0x39fc6c of _0x1bf2f8['values']())'elementStart'===_0x235f84[_0x39fc6c]['type']?_0x235f84[_0x39fc6c]['item']['endIndex']=_0x1bf2f8['get'](_0x235f84[_0x39fc6c]['pairId']):'elementEnd'===_0x235f84[_0x39fc6c]['type']&&(_0x235f84[_0x39fc6c]['item']['startIndex']=_0x1bf2f8['get'](_0x235f84[_0x39fc6c]['pairId']));}['_processTape'](_0xea2618){for(let _0x1e618e=0x0;_0x1e618e<_0xea2618['length'];_0x1e618e++){if('elementStart'===_0xea2618[_0x1e618e]['type'])_0xea2618[_0x1e618e]['item']['startIndex']=_0x1e618e;else{if('elementEnd'===_0xea2618[_0x1e618e]['type']){_0xea2618[_0x1e618e]['item']['endIndex']=_0x1e618e;const _0x2451b1=_0xea2618[_0x1e618e]['item']['startIndex'];_0xea2618[_0x2451b1]['pairId']=_0xea2618[_0x1e618e]['id'],_0xea2618[_0x1e618e]['pairId']=_0xea2618[_0x2451b1]['id'];}else _0xea2618[_0x1e618e]['item']['startIndex']=_0x1e618e,_0xea2618[_0x1e618e]['item']['endIndex']=_0x1e618e,_0xea2618[_0x1e618e]['pairId']=null;}_0xea2618[_0x1e618e]['markersStart']||(_0xea2618[_0x1e618e]['markersStart']=[],_0xea2618[_0x1e618e]['markersEnd']=[]);}}['_markInsertions'](_0x1461f7,_0x4a2d2c){const _0x4bc7b7=_0x1461f7['filter'](_0x51f5eb=>!_0x51f5eb['isAdded']);for(let _0x649d0e=0x0;_0x649d0e<_0x4a2d2c['length'];_0x649d0e++)_0x4a2d2c[_0x649d0e]['isAdded']&&(_0x4bc7b7[_0x649d0e]['isAdded']=_0x4a2d2c[_0x649d0e]['isAdded']);}['_getDiff'](_0x48cc3a,_0x4b4d00=null){const _0xaa364c=this['repository']['getRevision'](_0x48cc3a),_0x47f869=_0x4b4d00?this['repository']['getRevision'](_0x4b4d00):null,_0x3e68b2=this['_getRevisionsRange'](_0xaa364c,_0x47f869),_0x19616e=_0x3e68b2[_0x3e68b2['length']-0x1],_0xf21a58=new Map(),_0x5e0650={'model':{},'attributes':{},'changes':[]},_0x209d07=new Set(),_0x52f2b6=new Map();for(let _0x4c4270=_0x3e68b2['length']-0x1;_0x4c4270>=0x0;_0x4c4270--){const _0x15c685=_0x3e68b2[_0x4c4270];for(const _0x268447 of Object['keys'](_0x15c685['diffData']))if(_0x15c685['diffData'][_0x268447]['attachChange']){const _0x271210=_0x15c685['diffData'][_0x268447]['attachChange'];_0x271210['isAttached']?(_0x209d07['add'](_0x268447),_0x52f2b6['has'](_0x268447)&&_0x52f2b6['get'](_0x268447)['userId']==_0x271210['userId']?_0x52f2b6['delete'](_0x268447):_0x52f2b6['set'](_0x268447,_0x271210)):_0x52f2b6['has'](_0x268447)?(_0x209d07['delete'](_0x268447),_0x52f2b6['delete'](_0x268447)):(_0x209d07['add'](_0x268447),_0x52f2b6['set'](_0x268447,_0x271210));}else _0x209d07['add'](_0x268447);}for(const _0x5789d1 of _0x209d07){const _0x16c971=_0x52f2b6['has'](_0x5789d1)&&!_0x52f2b6['get'](_0x5789d1)['isAttached'];let _0x3f497c=_0x16c971?_0x3e68b2['length']-0x1:0x0;const _0x21d77d=_0x16c971?-0x1:0x1;for(;_0x3e68b2[_0x3f497c];){const _0x489e7d=_0x3e68b2[_0x3f497c];if(_0x489e7d['diffData'][_0x5789d1]){const _0x2fc44f=_0x16c971?_0x489e7d['diffData'][_0x5789d1]['attributesBefore']:_0x489e7d['diffData'][_0x5789d1]['attributesAfter'];_0x5e0650['attributes'][_0x5789d1]=_0x2fc44f?_0x83ca90(_0x2fc44f):{};break;}_0x3f497c+=_0x21d77d;}}for(const _0x5ea4bc of _0x3e68b2){_0x5ea4bc['model']={};for(const _0x20f631 of _0x5ea4bc['authors'])_0xf21a58['set'](_0x20f631['id'],_0x20f631);for(const _0x5746c4 of _0x209d07){const _0x37de87=_0x5ea4bc['diffData'][_0x5746c4]?_0x5ea4bc['diffData'][_0x5746c4]['insertions']:'[]',_0x4a150f=_0x5ea4bc['diffData'][_0x5746c4]?_0x5ea4bc['diffData'][_0x5746c4]['deletions']:'[]';_0x5ea4bc['model'][_0x5746c4]={'insertions':this['_utils']['_makeModelFromViewString'](_0x37de87),'deletions':this['_utils']['_makeModelFromViewString'](_0x4a150f)};}}for(const _0x5d3150 of _0x209d07){let _0x5d1042=null,_0x316e87=0x0;const _0xb7bbab=new Map(Array['from'](_0xaa364c['model'][_0x5d3150]['insertions']['markers'])['filter'](([_0x412a57])=>!_0x412a57['startsWith']('revision:')));let _0x2782a3=0x0;for(const _0x190117 of _0x3e68b2){const _0x350cf1=this['_makeTape'](_0x190117['model'][_0x5d3150]['insertions']);_0x190117==_0xaa364c?(_0x5d1042=_0x350cf1,_0x316e87=_0x5d1042['length'],_0x5d1042['forEach'](_0x2cd237=>{_0x2cd237['id']=_0x2782a3++;}),this['_processTape'](_0x5d1042)):this['_markInsertions'](_0x5d1042,_0x350cf1);const _0x2e62e5=_0x5d1042['filter'](_0x1c70be=>!_0x1c70be['isAdded'])['map'](_0xd5d499=>_0xd5d499['id']);let _0x3e5cac=0x0;const _0x464ab1=this['_makeTape'](_0x190117['model'][_0x5d3150]['deletions']);_0x464ab1['forEach'](_0x3afe80=>{_0x3afe80['isRemoved']?_0x3afe80['id']=_0x316e87++:_0x3afe80['id']=_0x2e62e5[_0x3e5cac++];}),this['_processTape'](_0x464ab1),this['_setDistance'](_0x5d1042,'isAdded'),this['_setDistance'](_0x464ab1,'isRemoved'),_0x190117==_0xaa364c&&this['_markMarkers'](_0x5d1042,_0xb7bbab),_0x5d1042=this['_joinTapes'](_0x5d1042,_0x464ab1),this['_refreshStartEndIndex'](_0x5d1042),this['_setDistance'](_0x5d1042,'isRemoved');}_0x5d1042=_0x5d1042['filter'](_0x16efe8=>!(_0x16efe8['isAdded']&&_0x16efe8['isRemoved']));const _0x3ca3c2=new Map(_0x19616e['model'][_0x5d3150]['deletions']['markers']),_0x1163e4=new Set(_0xb7bbab['keys']());for(const _0x3b92f3 of _0x3ca3c2['keys']())_0x1163e4['delete'](_0x3b92f3);this['_markSuggestions'](_0x5d1042,_0x1163e4),this['_fixObsoleteTags'](_0x5d1042),_0x5d1042=this['_removeMissingPairs'](_0x5d1042),_0x5d1042=this['_markMismatchedRemovedTags'](_0x5d1042),_0x5d1042=this['_removeUnsupportedChanges'](_0x5d1042);const {root:_0x5c7105,changes:_0x49a6bd}=this['_makeModelFromTape'](_0x5d1042,_0xf21a58,_0x5d3150);_0x5e0650['model'][_0x5d3150]=_0x5c7105;const _0x1f32d4=_0x52f2b6['get'](_0x5d3150);if(_0x1f32d4){const _0x5698ad=_0xf21a58['get'](_0x1f32d4['userId']),_0x9bb7ff=new G({'author':_0x5698ad,'type':_0x1f32d4['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d3150});_0x49a6bd['unshift'](_0x9bb7ff),_0x5e0650['attributes'][_0x5d3150]['revisionHistoryAttachChange']=_0x9bb7ff['id'];}_0x5e0650['changes']=_0x5e0650['changes']['concat'](_0x49a6bd);}return _0x5e0650;}['_markMarkers'](_0x585f5e,_0x461ff3){for(let _0x2fe530=0x0;_0x2fe530<_0x585f5e['length'];_0x2fe530++)for(const [_0x4c4b29,_0x460f58]of _0x461ff3)!_0x460f58['isCollapsed']&&_0x460f58['start']['isEqual'](_0x585f5e[_0x2fe530]['previousPosition'])&&_0x585f5e[_0x2fe530]['markersStart']['push'](_0x4c4b29),_0x460f58['end']['isEqual'](_0x585f5e[_0x2fe530]['nextPosition'])&&_0x585f5e[_0x2fe530]['markersEnd']['push'](_0x4c4b29);}['_joinTapes'](_0x2431ce,_0xfc2934){let _0x50e7b1=[],_0x4db0e7=0x0,_0x3302e2=0x0;for(;_0x4db0e7<_0x2431ce['length']||_0x3302e2<_0xfc2934['length'];){const _0x59a21e=_0x2431ce[_0x4db0e7]||{},_0x2e767d=_0xfc2934[_0x3302e2]||{};if(_0x59a21e['id']==_0x2e767d['id'])_0x4db0e7++,_0x3302e2++,_0x50e7b1['push'](_0x59a21e);else{if(_0x2e767d['isRemoved']&&_0x59a21e['isAdded']){const {commonTape:_0x520cf6,iEnd:_0x21f42f,jEnd:_0xdf697b}=this['_threeWayMerge'](_0x2431ce,_0x4db0e7,_0xfc2934,_0x3302e2);_0x50e7b1=_0x50e7b1['concat'](_0x520cf6),_0x4db0e7=_0x21f42f,_0x3302e2=_0xdf697b;}else _0x2e767d['isRemoved']?(_0x3302e2++,_0x50e7b1['push'](_0x2e767d)):(_0x4db0e7++,_0x50e7b1['push'](_0x59a21e));}}return _0x50e7b1;}['_markSuggestions'](_0x207a93,_0x4e243a){const _0x52e946=[];for(let _0x40cb7c=0x0;_0x40cb7c<_0x207a93['length'];_0x40cb7c++){for(let _0x868842=0x0;_0x868842<_0x207a93[_0x40cb7c]['markersStart']['length'];_0x868842++){const _0x217480=_0x207a93[_0x40cb7c]['markersStart'][_0x868842];if(!_0x4e243a['has'](_0x217480))continue;const {group:_0x4447fa,type:_0x3ac6c7,authorId:_0x44b987}=_0x4fd0e4(_0x217480);'revision-suggestion'!=_0x4447fa||'insertion'!=_0x3ac6c7&&'deletion'!=_0x3ac6c7||(_0x52e946['unshift']({'type':_0x3ac6c7,'name':_0x217480,'userId':_0x44b987}),_0x207a93[_0x40cb7c]['markersStart']['splice'](_0x868842,0x1),_0x868842--);}_0x3b7615(_0x207a93[_0x40cb7c]);for(let _0x419152=0x0;_0x419152<_0x207a93[_0x40cb7c]['markersEnd']['length'];_0x419152++){const _0x1e0f81=_0x207a93[_0x40cb7c]['markersEnd'][_0x419152];if(!_0x4e243a['has'](_0x1e0f81))continue;const {group:_0x2ead52,type:_0x17cdb6}=_0x4fd0e4(_0x1e0f81);if('revision-suggestion'!=_0x2ead52||'insertion'!=_0x17cdb6&&'deletion'!=_0x17cdb6)continue;_0x207a93[_0x40cb7c]['markersEnd']['splice'](_0x419152,0x1),_0x419152--;const _0x3613b6=_0x52e946['findIndex'](_0x27a88b=>_0x27a88b['name']==_0x1e0f81);_0x3613b6>-0x1&&_0x52e946['splice'](_0x3613b6,0x1);}}function _0x4fd0e4(_0x3b419f){const _0x5d0cc4=_0x3b419f['split'](':');return{'group':_0x5d0cc4[0x0],'type':_0x5d0cc4[0x1],'subType':_0x5d0cc4['length']>=0x5?_0x5d0cc4[0x2]:null,'id':_0x5d0cc4['length']<0x5?_0x5d0cc4[0x2]:_0x5d0cc4[0x3],'authorId':_0x5d0cc4['length']<0x5?_0x5d0cc4[0x3]:_0x5d0cc4[0x4],'markerCount':0x6==_0x5d0cc4['length']?_0x5d0cc4[0x5]:null};}function _0x3b7615(_0x2739fc){for(let _0x2beb9e=0x0;_0x2beb9e<_0x52e946['length'];_0x2beb9e++){if(_0x2739fc['isAdded']&&'insertion'==_0x52e946[_0x2beb9e]['type']&&_0x2739fc['isAdded']['userId']==_0x52e946[_0x2beb9e]['userId'])return _0x2739fc['isAddSuggestion']=_0x52e946[_0x2beb9e],void delete _0x2739fc['isAdded'];if(!_0x2739fc['isAdded']&&!_0x2739fc['isRemoved']&&'deletion'==_0x52e946[_0x2beb9e]['type'])return void(_0x2739fc['isRemoveSuggestion']=_0x52e946[_0x2beb9e]);}}}['_setDistance'](_0x53d07c,_0x11fa35){let _0x2ce6ac=0x0,_0x1be4a4=!0x1;const _0x16fcfa=new Map();for(const _0x52f2a3 of _0x53d07c)_0x52f2a3[_0x11fa35]?_0x1be4a4&&(_0x2ce6ac++,_0x1be4a4=!0x1):(_0x2ce6ac++,_0x1be4a4=!0x0),_0x16fcfa['set'](_0x52f2a3['id'],_0x2ce6ac);for(let _0x1e8814=0x0;_0x1e8814<_0x53d07c['length'];_0x1e8814++){if('isRemoved'==_0x11fa35&&_0x53d07c[_0x1e8814]['isAdded']||'isAdded'==_0x11fa35&&_0x53d07c[_0x1e8814]['isRemoved'])continue;if('text'==_0x53d07c[_0x1e8814]['type']){_0x53d07c[_0x1e8814]['distance']=0x0;continue;}const _0x6e4e20=_0x16fcfa['get'](_0x53d07c[_0x1e8814]['pairId']),_0x3c6ec7=_0x16fcfa['get'](_0x53d07c[_0x1e8814]['id']);_0x53d07c[_0x1e8814]['distance']=_0x6e4e20-_0x3c6ec7;}}['_getRevisionsRange'](_0x1e9c99,_0x30d1d7,_0x11dd07=!0x1){const _0x48e332=[];let _0x3d7c95=this['repository']['getIndex'](_0x1e9c99),_0x310e96=this['repository']['getIndex'](_0x30d1d7);for(-0x1==_0x310e96&&(_0x310e96=this['repository']['_revisions']['length'],_0x11dd07=!0x1);_0x3d7c95<_0x310e96;)_0x48e332['push'](this['repository']['getRevision'](_0x3d7c95)),_0x3d7c95++;return _0x11dd07&&_0x48e332['push'](this['repository']['getRevision'](_0x3d7c95)),_0x48e332;}['_threeWayMerge'](_0x71854b,_0x4fc031,_0x1d8416,_0x223a6f){const _0x3b0c30=this['editor']['model']['schema'];let _0x5f1710=_0x4fc031;for(;_0x71854b[_0x5f1710]&&_0x71854b[_0x5f1710]['isAdded'];)_0x5f1710++;let _0x2a6e3a=_0x223a6f;for(;_0x1d8416[_0x2a6e3a]&&_0x1d8416[_0x2a6e3a]['isRemoved'];)_0x2a6e3a++;_0x57a686(_0x71854b,_0x4fc031,_0x5f1710),_0x57a686(_0x1d8416,_0x223a6f,_0x2a6e3a);const _0x38cc87=_0x1d8416['slice'](_0x223a6f,_0x2a6e3a)['concat'](_0x71854b['slice'](_0x4fc031,_0x5f1710));return _0x38cc87['sort']((_0x45d5b3,_0x2659bd)=>_0x45d5b3['side']!=_0x2659bd['side']?_0x45d5b3['side']-_0x2659bd['side']:_0x45d5b3['level']!=_0x2659bd['level']?_0x45d5b3['level']-_0x2659bd['level']:_0x45d5b3['distance']!=_0x2659bd['distance']?_0x2659bd['distance']-_0x45d5b3['distance']:!!_0x45d5b3['isAdded']!=!!_0x2659bd['isAdded']?-0x1==_0x45d5b3['side']||0x0==_0x45d5b3['side']?_0x45d5b3['isAdded']?-0x1:0x1:_0x45d5b3['isAdded']?0x1:-0x1:_0x45d5b3['index']-_0x2659bd['index']),{'commonTape':_0x38cc87,'iEnd':_0x5f1710,'jEnd':_0x2a6e3a};function _0x57a686(_0xcd567e,_0x5badae,_0x3fa5de){let _0x187e8d=-0x1,_0x476670=Number['POSITIVE_INFINITY'],_0x8b2185=!0x0;for(let _0x273f53=_0x5badae;_0x273f53<_0x3fa5de;_0x273f53++)if(_0x3b0c30['isInline'](_0xcd567e[_0x273f53]['item'])||(_0x8b2185=!0x1),_0xcd567e[_0x273f53]['item']['startIndex']<_0x5badae&&(_0x187e8d=_0x273f53),_0xcd567e[_0x273f53]['item']['endIndex']>=_0x3fa5de){_0x476670=_0x273f53;break;}_0x8b2185&&(_0x187e8d=_0x3fa5de-0x1);for(let _0x43d0f7=_0x5badae;_0x43d0f7<_0x3fa5de;_0x43d0f7++)_0xcd567e[_0x43d0f7]['side']=_0x43d0f7<=_0x187e8d?-0x1:_0x43d0f7<_0x476670?0x0:0x1,_0xcd567e[_0x43d0f7]['index']=_0x43d0f7;let _0x5a1d88=0x0;for(let _0x7505c=_0x5badae;_0x7505c<=_0x187e8d;_0x7505c++)0x0==_0xcd567e[_0x7505c]['distance']?_0xcd567e[_0x7505c]['level']=_0x5a1d88:(_0x5a1d88++,_0xcd567e[_0x7505c]['level']=_0x5a1d88,_0x5a1d88++);for(let _0x9f02df=_0x5badae;_0x9f02df<_0x3fa5de;_0x9f02df++)0x0==_0xcd567e[_0x9f02df]['side']&&(_0xcd567e[_0x9f02df]['level']=_0x5a1d88);_0x5a1d88=0x0;for(let _0x257562=_0x3fa5de-0x1;_0x257562>=_0x476670;_0x257562--)0x0==_0xcd567e[_0x257562]['distance']?_0xcd567e[_0x257562]['level']=_0x5a1d88:(_0x5a1d88--,_0xcd567e[_0x257562]['level']=_0x5a1d88,_0x5a1d88--);}}['_fixObsoleteTags'](_0x480dae){const _0x29f12c=new Map(),_0x19b692=this['editor']['model']['schema'];for(let _0x3528d9=0x1;_0x3528d9<_0x480dae['length'];_0x3528d9++){let _0x40303a,_0x3541c2,_0x9d0b21;const _0x17dde3=_0x480dae[_0x3528d9],_0x11fed8=_0x480dae[_0x3528d9-0x1];if('text'==_0x17dde3['type'])continue;if(_0x17dde3['type']!=_0x11fed8['type'])continue;if(!_0x19b692['isBlock'](_0x11fed8['item'])||_0x19b692['isLimit'](_0x11fed8['item']))continue;if(!_0x19b692['isBlock'](_0x17dde3['item'])||_0x19b692['isLimit'](_0x17dde3['item']))continue;if((_0x480dae[_0x3528d9]['isAdded']||_0x480dae[_0x3528d9]['isAddSuggestion'])&&_0x480dae[_0x3528d9-0x1]['isRemoved'])_0x40303a=_0x480dae[_0x3528d9],_0x3541c2=_0x480dae[_0x3528d9-0x1],_0x9d0b21=_0x3528d9-0x1;else{if(!_0x480dae[_0x3528d9]['isRemoved']||!_0x480dae[_0x3528d9-0x1]['isAdded']&&!_0x480dae[_0x3528d9-0x1]['isAddSuggestion'])continue;_0x40303a=_0x480dae[_0x3528d9-0x1],_0x3541c2=_0x480dae[_0x3528d9],_0x9d0b21=_0x3528d9;}const _0x50157e=_0x40303a['level']==_0x3541c2['level'],_0x4433fc=Math['abs'](_0x40303a['level'])<Math['abs'](_0x3541c2['level'])&&0x0==_0x3541c2['distance'];(_0x50157e||_0x4433fc)&&(_0x29f12c['set'](_0x3541c2['id'],_0x40303a['id']),_0x480dae['splice'](_0x9d0b21,0x1),_0x3528d9--,_0x40303a['isAdded']=!0x1);}for(let _0x59d72c=0x0;_0x59d72c<_0x480dae['length'];_0x59d72c++)_0x29f12c['has'](_0x480dae[_0x59d72c]['pairId'])&&(_0x480dae[_0x59d72c]['pairId']=_0x29f12c['get'](_0x480dae[_0x59d72c]['pairId']));}['_removeMissingPairs'](_0x314b93){const _0x3e7624=new Set(_0x314b93['map'](_0x4db8c9=>_0x4db8c9['id']));for(let _0x4ce20c=0x0;_0x4ce20c<_0x314b93['length'];_0x4ce20c++)_0x3e7624['has'](_0x314b93[_0x4ce20c]['pairId'])||0x0==_0x314b93[_0x4ce20c]['distance']||(_0x314b93[_0x4ce20c]['isIncorrect']=!0x0);return _0x314b93['filter'](_0x646294=>!_0x646294['isIncorrect']);}['_markMismatchedRemovedTags'](_0x36827c){const _0x44ba71=new Set();for(let _0x75294b=0x0;_0x75294b<_0x36827c['length'];_0x75294b++){if(_0x44ba71['has'](_0x36827c[_0x75294b]['id'])&&_0x36827c[_0x75294b]['isRemoved']&&(_0x36827c[_0x75294b]['isIncorrect']=!0x0),_0x36827c[_0x75294b]['isIncorrect'])continue;if(0x0==_0x36827c[_0x75294b]['distance'])continue;if('elementStart'!=_0x36827c[_0x75294b]['type'])continue;if(null==_0x36827c[_0x75294b]['pairId'])continue;let _0x5c1208=_0x75294b+0x1,_0x171e3c=0x0;for(;_0x36827c[_0x5c1208]['id']!=_0x36827c[_0x75294b]['pairId'];)'elementStart'==_0x36827c[_0x5c1208]['type']?_0x171e3c++:'elementEnd'==_0x36827c[_0x5c1208]['type']&&_0x171e3c--,_0x5c1208++;if(0x0!=_0x171e3c){if(_0x36827c[_0x75294b]['isRemoved'])_0x36827c[_0x75294b]['isIncorrect']=!0x0;else{for(;_0x5c1208!=_0x75294b;)_0x36827c[_0x5c1208]['isRemoved']&&0x0!=_0x36827c[_0x5c1208]['distance']&&(_0x36827c[_0x5c1208]['isIncorrect']=!0x0,_0x44ba71['add'](_0x36827c[_0x5c1208]['pairId'])),_0x5c1208--;}}}return _0x36827c['filter'](_0x178d6d=>!_0x178d6d['isIncorrect']);}['_removeUnsupportedChanges'](_0x5c96d5){const _0x4225e8=this['editor']['model']['schema'];for(let _0x4d5cf4=0x0;_0x4d5cf4<_0x5c96d5['length'];_0x4d5cf4++){if(!(_0x5c96d5[_0x4d5cf4]['isAdded']||_0x5c96d5[_0x4d5cf4]['isAddSuggestion']||_0x5c96d5[_0x4d5cf4]['isRemoved']||_0x5c96d5[_0x4d5cf4]['isRemoveSuggestion']))continue;if(0x0==_0x5c96d5[_0x4d5cf4]['distance'])continue;const _0x2ef8a7=_0x5c96d5[_0x4d5cf4]['item'];_0x4225e8['isBlock'](_0x2ef8a7)||_0x4225e8['isLimit'](_0x2ef8a7)||(_0x5c96d5[_0x4d5cf4]['isAdded']&&delete _0x5c96d5[_0x4d5cf4]['isAdded'],_0x5c96d5[_0x4d5cf4]['isAddSuggestion']&&delete _0x5c96d5[_0x4d5cf4]['isAddSuggestion'],_0x5c96d5[_0x4d5cf4]['isRemoveSuggestion']&&delete _0x5c96d5[_0x4d5cf4]['isRemoveSuggestion'],_0x5c96d5[_0x4d5cf4]['isRemoved']&&(_0x5c96d5[_0x4d5cf4]['isIncorrect']=!0x0));}return _0x5c96d5['filter'](_0x1efbc0=>!_0x1efbc0['isIncorrect']);}['_makeModelFromTape'](_0x2e8ccb,_0x8d7b0b,_0x5cc86a){const _0x242bca=new _0x8c84c8(),_0x58c932=[],_0x53ea10=new Map(),_0x32694c=this['editor']['model'],_0x5aaa67=_0x32694c['schema'],_0x57c8a8=[_0x242bca],_0x52f2ab={},_0x1782a7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x58b069=null;const _0x1b408d=[0x0];for(let _0x317674=0x0;_0x317674<_0x2e8ccb['length'];_0x317674++)if('elementStart'===_0x2e8ccb[_0x317674]['type']){_0x2e8ccb[_0x317674]['previousPosition']=_0x32694c['createPositionFromPath'](_0x242bca,_0x1b408d);const _0x4905da=new _0x36b445(_0x2e8ccb[_0x317674]['item']['name'],_0x2e8ccb[_0x317674]['item']['getAttributes']());_0x57c8a8[0x0]['_appendChild'](_0x4905da),_0x1b408d['push'](0x0),_0x57c8a8['unshift'](_0x4905da),_0x2e8ccb[_0x317674]['nextPosition']=_0x32694c['createPositionFromPath'](_0x242bca,_0x1b408d);}else'elementEnd'===_0x2e8ccb[_0x317674]['type']?(_0x57c8a8['shift'](),_0x2e8ccb[_0x317674]['previousPosition']=_0x32694c['createPositionFromPath'](_0x242bca,_0x1b408d),_0x1b408d['pop'](),_0x1b408d[_0x1b408d['length']-0x1]++,_0x2e8ccb[_0x317674]['nextPosition']=_0x32694c['createPositionFromPath'](_0x242bca,_0x1b408d)):(_0x2e8ccb[_0x317674]['previousPosition']=_0x32694c['createPositionFromPath'](_0x242bca,_0x1b408d),_0x58b069?_0x58b069['_data']+=_0x2e8ccb[_0x317674]['item']['data']:_0x58b069=new _0x367598(_0x2e8ccb[_0x317674]['item']['data'],_0x2e8ccb[_0x317674]['item']['getAttributes']()),_0x2e8ccb[_0x317674+0x1]&&'text'===_0x2e8ccb[_0x317674+0x1]['type']&&_0x252208(_0x58b069,_0x2e8ccb[_0x317674+0x1]['item'])||(_0x57c8a8[0x0]['_appendChild'](_0x58b069),_0x58b069=null),_0x1b408d[_0x1b408d['length']-0x1]+=_0x2e8ccb[_0x317674]['item']['offsetSize'],_0x2e8ccb[_0x317674]['nextPosition']=_0x32694c['createPositionFromPath'](_0x242bca,_0x1b408d));for(let _0x5624b6=0x0;_0x5624b6<_0x2e8ccb['length'];_0x5624b6++){const _0x3a23f6=_0x2e8ccb[_0x5624b6]['previousPosition'],_0x1266d2=_0x2e8ccb[_0x5624b6]['nextPosition'];for(const _0x62e343 of _0x2e8ccb[_0x5624b6]['markersStart'])_0x53ea10['set'](_0x62e343,{'start':_0x3a23f6,'end':null});_0x178c3c('isRemoveSuggestion',_0x5624b6,_0x3a23f6,_0x1266d2),_0x178c3c('isAddSuggestion',_0x5624b6,_0x3a23f6,_0x1266d2),_0x178c3c('isRemoved',_0x5624b6,_0x3a23f6,_0x1266d2),_0x178c3c('isAdded',_0x5624b6,_0x3a23f6,_0x1266d2);for(const _0x18ec44 of _0x2e8ccb[_0x5624b6]['markersEnd']){const _0x320da4=_0x53ea10['get'](_0x18ec44);_0x320da4?_0x320da4['end']=_0x1266d2:_0x53ea10['set'](_0x18ec44,{'start':_0x1266d2,'end':_0x1266d2});}}for(const [_0x17730e,_0x2432d1]of _0x53ea10){const _0x790c5f=this['editor']['model']['createRange'](_0x2432d1['start'],_0x2432d1['end']);_0x242bca['markers']['set'](_0x17730e,_0x790c5f);}return _0x58c932['sort']((_0x3fc501,_0x21e4ed)=>{const _0x468630=_0x242bca['markers']['get']('revision:'+_0x3fc501['id']),_0x33221e=_0x242bca['markers']['get']('revision:'+_0x21e4ed['id']);return _0x468630['start']['isBefore'](_0x33221e['start'])?-0x1:_0x468630['start']['isAfter'](_0x33221e['start'])?0x1:_0x468630['end']['isBefore'](_0x33221e['end'])?-0x1:_0x468630['end']['isAfter'](_0x33221e['end'])?0x1:'add'===_0x3fc501['type']?-0x1:0x1;}),{'root':_0x242bca,'changes':_0x58c932};function _0x178c3c(_0x3d81aa,_0x5434c0,_0x2a497c,_0x59d5ca){const _0xb83d97=!!_0x2e8ccb[_0x5434c0][_0x3d81aa],_0x5f6cee=_0xb83d97?_0x2e8ccb[_0x5434c0][_0x3d81aa]['userId']:null,_0x27bfeb=_0x5434c0===_0x2e8ccb['length']-0x1,_0x5678a9=_0x1782a7[_0x3d81aa][0x0],_0x9e1cc=_0x5aaa67['isObject'](_0x2e8ccb[_0x5434c0]['item']);!_0x52f2ab[_0x3d81aa]&&_0xb83d97?_0x52f2ab[_0x3d81aa]={'start':_0x2a497c,'tapeItem':_0x2e8ccb[_0x5434c0],'userId':_0x5f6cee,'type':_0x3d81aa}:_0x52f2ab[_0x3d81aa]&&!_0xb83d97?(_0x52f2ab[_0x3d81aa]['end']=_0x2a497c,_0x438d1c(_0x52f2ab[_0x3d81aa]),_0x52f2ab[_0x3d81aa]=null):_0x52f2ab[_0x3d81aa]&&_0xb83d97&&_0x52f2ab[_0x3d81aa]['userId']!==_0x5f6cee&&(_0x52f2ab[_0x3d81aa]['end']=_0x2a497c,_0x5678a9&&_0x5678a9['userId']===_0x52f2ab[_0x3d81aa]['userId']||_0x438d1c(_0x52f2ab[_0x3d81aa]),_0x52f2ab[_0x3d81aa]={'start':_0x2a497c,'tapeItem':_0x2e8ccb[_0x5434c0],'userId':_0x5f6cee,'type':_0x3d81aa}),_0x52f2ab[_0x3d81aa]&&_0x9e1cc&&('elementStart'!==_0x2e8ccb[_0x5434c0]['type']||_0x5678a9&&_0x5678a9['userId']===_0x5f6cee||_0x1782a7[_0x3d81aa]['unshift']({'userId':_0x5f6cee,'object':_0x2e8ccb[_0x5434c0]['item'],'change':_0x52f2ab[_0x3d81aa]}),'elementEnd'===_0x2e8ccb[_0x5434c0]['type']&&_0x5678a9&&_0x5678a9['object']===_0x2e8ccb[_0x5434c0]['item']&&(_0x1782a7[_0x3d81aa]['shift'](),_0x52f2ab[_0x3d81aa]=_0x5678a9['change'])),_0x52f2ab[_0x3d81aa]&&_0x27bfeb&&(_0x52f2ab[_0x3d81aa]['end']=_0x59d5ca,_0x438d1c(_0x52f2ab[_0x3d81aa]),_0x52f2ab[_0x3d81aa]=null);}function _0x438d1c({start:_0x5b3cfc,end:_0x55475a,tapeItem:_0x1baeee,userId:_0x5e6ba1,type:_0x5c6f1d}){const _0x17076b=_0x1baeee['item'],_0x1d1e95=_0x32694c['schema']['isBlock'](_0x17076b)&&!_0x32694c['schema']['isLimit'](_0x17076b),_0x2c3f84=_0x5b3cfc['nodeAfter']==_0x55475a['parent']&&_0x55475a['isAtStart'];if(_0x1d1e95&&_0x2c3f84)return;const _0xb1ebe5=_0x32694c['createRange'](_0x5b3cfc,_0x55475a),_0x21bbb9=_0x8d7b0b['get'](_0x5e6ba1),_0x4306ec=new G({'author':_0x21bbb9,'type':'isAdded'==_0x5c6f1d||'isAddSuggestion'==_0x5c6f1d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5c6f1d||'isRemoveSuggestion'==_0x5c6f1d},'createdAt':new Date(),'rootName':_0x5cc86a});_0x58c932['push'](_0x4306ec),_0x242bca['markers']['set']('revision:'+_0x4306ec['id'],_0xb1ebe5);}function _0x252208(_0x4ad7f4,_0x41aa8f){const _0xadb9e5=_0x4ad7f4['getAttributes'](),_0x43f893=_0x41aa8f['getAttributes']();for(const _0x4decf4 of _0xadb9e5){if(_0x4decf4[0x1]!==_0x41aa8f['getAttribute'](_0x4decf4[0x0]))return!0x1;_0x43f893['next']();}return _0x43f893['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3ca752=>{const _0x515370=_0x3ca752['markerName']['split'](':')[0x1],_0xf18685=this['_getChangeFromId'](_0x515370);if(!_0xf18685)return null;const _0x3719fc='add'==_0xf18685['type']?'insertion':'deletion',_0x2327b6=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3719fc];return _0xf18685['data']['isSuggestion']&&_0x2327b6['push']('ck-suggestion-marker-'+_0x3719fc+'-new'),this['activeChange']==_0xf18685&&_0x2327b6['push']('ck-suggestion-marker--active'),{'classes':_0x2327b6,'attributes':{'data-change-id':_0x515370}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xb60797=>{_0xb60797['on']('element:pre',(_0x5846ca,_0x1563f1,_0x594613)=>{const _0x1d509b=_0x1563f1['viewItem']['getChild'](0x0);if(!_0x1d509b||!_0x1d509b['is']('element','code'))return;if(!_0x594613['consumable']['consume'](_0x1d509b,{'attributes':['vid_start','vid_end']}))return;const _0x5b3714=_0x1563f1['modelRange']['start']['nodeAfter'];_0x594613['writer']['setAttribute']('vid_start',_0x1d509b['getAttribute']('vid_start'),_0x5b3714),_0x594613['writer']['setAttribute']('vid_end',_0x1d509b['getAttribute']('vid_end'),_0x5b3714);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x19ac0d=>{_0x19ac0d['on']('element',(_0x1bf9e6,_0x1db0d3,_0x154304)=>{if(!_0x154304['consumable']['consume'](_0x1db0d3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x1db0d3['modelRange']['isCollapsed'])return;const _0x285298=_0x1db0d3['modelRange']['start']['nodeAfter'];_0x285298['hasAttribute']('vid_start')||_0x285298['hasAttribute']('vid')||(_0x154304['writer']['setAttribute']('vid_start',_0x1db0d3['viewItem']['getAttribute']('vid_start'),_0x285298),_0x154304['writer']['setAttribute']('vid_end',_0x1db0d3['viewItem']['getAttribute']('vid_end'),_0x285298));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x323620=>_0x323620['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3acb4d,[,_0x386ea7])=>{['vid_start','vid_end','vid']['includes'](_0x386ea7)&&(_0x3acb4d['return']=!0x0,_0x3acb4d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x30b250=>{_0x30b250['on']('attribute:vid',(_0x28e68a,_0x599c91,_0x56eac2)=>{if('\x20'!=_0x599c91['item']['data']||_0x599c91['item']['parent']['maxOffset']>0x1)return;if(!_0x56eac2['consumable']['consume'](_0x599c91['item'],_0x28e68a['name']))return;const _0x4d2df0=_0x56eac2['writer'],_0x574ae3=_0x56eac2['mapper']['toViewRange'](_0x599c91['range']);_0x4d2df0['wrap'](_0x574ae3,_0x4d2df0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x399ccd){const _0x2d1cc5=_0x399ccd['plugins']['get']('RevisionViewer');return(_0x872862,_0x5143d3,_0x3cb4a9)=>{const _0x15246e=_0x5143d3['markerName']['split'](':')[0x1],_0xe12c9e=_0x2d1cc5['_getChangeFromId'](_0x15246e);if(!_0xe12c9e)return null;const _0x5934a='add'==_0xe12c9e['type']?'split':'merge';if(!_0x3cb4a9['consumable']['test'](_0x5143d3['markerRange'],_0x872862['name']))return;const _0xbdf84a=_0x5143d3['markerRange']['getWalker'](),_0x29e168=_0x5143d3['markerRange']['start'],_0x58fe55=_0x399ccd['model']['schema'];let _0x3fb43a=null,_0x141865=null,_0x2399a0=!0x1,_0x2d1a62=!0x1;for(const _0x5661a2 of _0xbdf84a){const _0xb00293=_0x5661a2['item'];_0x2399a0=_0x2399a0||_0x58fe55['isContent'](_0xb00293);const _0x470e68=_0x3cb4a9['mapper']['toViewElement'](_0xb00293);if(_0x470e68&&_0x470e68['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5661a2['type']&&(_0x58fe55['isBlock'](_0xb00293)&&!_0x58fe55['isLimit'](_0xb00293)&&(_0xb00293['nextSibling']||_0x29e168['isAtEnd']?_0x3fb43a&&_0x3fb43a['parent']==_0xb00293||(_0x3fb43a=_0xb00293,_0x3eecd5(_0x5661a2['previousPosition']),_0x2d1a62=!0x0):_0x141865=_0x141865||_0x5661a2['previousPosition']));}function _0x3eecd5(_0x5ebfd9){const _0xb022d9=_0x3cb4a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5934a}),_0x4bad47=_0x3cb4a9['mapper']['toViewPosition'](_0x5ebfd9);_0xe12c9e['data']['isSuggestion']&&_0x3cb4a9['writer']['addClass']('ck-suggestion-marker-'+_0x5934a+'-new',_0xb022d9),_0x2d1cc5['activeChange']==_0xe12c9e&&_0x3cb4a9['writer']['addClass']('ck-suggestion-marker--active',_0xb022d9),_0x3cb4a9['writer']['insert'](_0x4bad47,_0xb022d9),_0x3cb4a9['mapper']['bindElementToMarker'](_0xb022d9,_0x5143d3['markerName']);}_0x2399a0||_0x2d1a62||!_0x141865||_0x3eecd5(_0x141865);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x183929,_0x2b990a,_0x4f7066)=>{const _0x547f02=_0x4f7066['mapper']['markerNameToElements'](_0x2b990a['markerName']);if(_0x547f02){for(const _0x207779 of _0x547f02)(_0x207779['hasClass']('ck-suggestion-marker-split')||_0x207779['hasClass']('ck-suggestion-marker-merge'))&&(_0x4f7066['mapper']['unbindElementFromMarkerName'](_0x207779,_0x2b990a['markerName']),_0x4f7066['writer']['remove'](_0x207779));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x185518,_0x548ec4,_0x222d58)=>{const _0x5577a4=_0x548ec4['markerName']['split'](':')[0x1],_0x3c8e0e=this['_getChangeFromId'](_0x5577a4);if(!_0x3c8e0e)return null;const _0x2c8ad5='add'==_0x3c8e0e['type']?'split':'merge';if(_0x222d58['consumable']['test'](_0x548ec4['markerRange'],_0x185518['name']))for(const _0x410e76 of _0x548ec4['markerRange']['getItems']()){if(!_0x410e76['is']('element','softBreak'))continue;const _0x37213b=_0x222d58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c8ad5}),_0x27016b=_0x222d58['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x410e76));_0x3c8e0e['data']['isSuggestion']&&_0x222d58['writer']['addClass']('ck-suggestion-marker-'+_0x2c8ad5+'-new',_0x37213b),this['activeChange']==_0x3c8e0e&&_0x222d58['writer']['addClass']('ck-suggestion-marker--active',_0x37213b),_0x222d58['writer']['insert'](_0x27016b,_0x37213b),_0x222d58['mapper']['bindElementToMarker'](_0x37213b,_0x548ec4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1fe74b=>{for(const _0x58301d of this['editor']['model']['document']['getRootNames']()){const _0x5d66f5=this['editor']['model']['document']['getRoot'](_0x58301d),_0x1aa0fc=this['editor']['editing']['view']['document']['getRoot'](_0x58301d);if(_0x1aa0fc){const _0x357bab=_0x5d66f5['getAttribute']('revisionHistoryAttachChange');if(_0x1fe74b['removeAttribute']('data-change-id',_0x1aa0fc),_0x1fe74b['removeClass']('ck-revision-history-root-add',_0x1aa0fc),_0x1fe74b['removeClass']('ck-revision-history-root-remove',_0x1aa0fc),_0x1fe74b['removeClass']('ck-revision-history-root--active',_0x1aa0fc),_0x357bab){const _0x379e1b=this['_getChangeFromId'](_0x357bab);if(!_0x379e1b)return null;_0x1fe74b['setAttribute']('data-change-id',_0x357bab,_0x1aa0fc),_0x1fe74b['addClass']('ck-revision-history-root-'+_0x379e1b['type'],_0x1aa0fc),this['activeChange']==_0x379e1b&&_0x1fe74b['addClass']('ck-revision-history-root--active',_0x1aa0fc);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2d0112=>'revision-comment:'+_0x2d0112,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x522cf0=>'revision-suggestion:'+_0x522cf0,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x20f2ef=>({'name':'suggestion:'+_0x20f2ef,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3dffae=>{const _0x5402b6=_0x3dffae['markerName']['split'](':')[0x1];return'insertion'!=_0x5402b6&&'deletion'!=_0x5402b6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5402b6]};}}),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',(_0x3a635d,_0x4f6660,_0x515f20)=>{const _0x51b963=_0x515f20['mapper']['markerNameToElements'](_0x4f6660['markerName']);if(_0x51b963){for(const _0xc45d2c of _0x51b963)_0xc45d2c['is']('uiElement')&&(_0x515f20['mapper']['unbindElementFromMarkerName'](_0xc45d2c,_0x4f6660['markerName']),_0x515f20['writer']['remove'](_0xc45d2c));}},{'priority':'high'});}['_getChangeFromId'](_0xe1d884){return this['_changeIdToChange']['get'](_0xe1d884);}['_getViewForChange'](_0x18239d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x18239d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4d78ea,_0xc4c29,_0x179e7a,_0x27805b)=>{_0x27805b&&this['_balloon']['remove'](_0x27805b),_0x179e7a&&(this['_balloon']['add']({'view':_0x179e7a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1ccd8c=this['editor']['editing'],_0xbd6ce0=this['_getChangeFromId'](_0x179e7a['changeId']);let _0x38c267;if(_0xbd6ce0['data']['isOnRoot']){const _0x2280b4=_0x1ccd8c['view']['getDomRoot'](_0xbd6ce0['rootName']);_0x38c267=Array['from'](_0x2280b4['getClientRects']());}else{const _0x51b47c=this['editor']['model']['markers']['get']('revision:'+_0x179e7a['changeId']);_0x38c267=Array['from'](_0x1ccd8c['mapper']['markerNameToElements'](_0x51b47c['name']))['map'](_0x37d9a8=>_0x1ccd8c['view']['domConverter']['mapViewToDom'](_0x37d9a8))['map'](_0x31a09d=>Array['from'](_0x31a09d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x38c267[0x0];return _0x38c267['find'](_0x351c2b=>_0x351c2b['top']-0x3<=this['_activeViewTarget']['y']&&_0x351c2b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x351c2b['left']-0x3<=this['_activeViewTarget']['x']&&_0x351c2b['right']+0x3>=this['_activeViewTarget']['x'])||_0x38c267[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x54a2b5,_0x29ac9f,_0x405df6,_0x19f4e7)=>{this['activeView']=_0x405df6?this['_getViewForChange'](_0x405df6):null,this['editor']['model']['change'](()=>{const _0x41a091=this['editor']['editing'];_0x19f4e7&&(_0x19f4e7['data']['isOnRoot']?_0x41a091['view']['change'](_0x5a8929=>{_0x5a8929['removeClass']('ck-revision-history-root--active',_0x41a091['view']['document']['getRoot'](_0x19f4e7['rootName']));}):_0x41a091['reconvertMarker']('revision:'+_0x19f4e7['id'])),_0x405df6&&(_0x405df6['data']['isOnRoot']?_0x41a091['view']['change'](_0x4bc1cc=>{_0x4bc1cc['addClass']('ck-revision-history-root--active',_0x41a091['view']['document']['getRoot'](_0x405df6['rootName']));}):_0x41a091['reconvertMarker']('revision:'+_0x405df6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3a1c39,_0x3ccd40)=>{if(this['activeChange'])return;const _0x2a2581=this['_findChangeIdFromDomTarget'](_0x3ccd40['target']),_0xc968f0=this['_changeIdToChange']['get'](_0x2a2581);_0xc968f0?(this['_activeViewTarget']={'x':_0x3ccd40['domEvent']['x'],'y':_0x3ccd40['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xc968f0)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x527deb,_0x1cd368)=>{const _0x25a75b=this['_findChangeIdFromDomTarget'](_0x1cd368['target']),_0x45bf4e=this['_changeIdToChange']['get'](_0x25a75b);_0x45bf4e?(this['_activeViewTarget']={'x':_0x1cd368['domEvent']['x'],'y':_0x1cd368['domEvent']['y']},_0x45bf4e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x45bf4e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x10b218){do{const _0x5a8e05=_0x10b218['getAttribute']('data-change-id');if(_0x5a8e05)return _0x5a8e05;_0x10b218=_0x10b218['parent'];}while(_0x10b218);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x453dd6=>{for(const _0x777f07 of this['editor']['model']['markers'])_0x453dd6['removeMarker'](_0x777f07);});}}function Q(_0x52ba96,_0x236b13){return(_0x15d129,_0x3c68b5,_0x5581f5)=>{if(!_0x5581f5['consumable']['test'](_0x3c68b5['markerRange'],_0x15d129['name']))return;const _0x4e2b24=_0x3c68b5['markerRange']['getWalker'](),_0x68fe75=_0x3c68b5['markerRange']['start'],_0x26882a=_0x52ba96['model']['schema'];let _0x50dcde=null,_0xe56afb=null,_0x5e3145=!0x1,_0x18f6f6=!0x1;for(const _0x1ff4d2 of _0x4e2b24){const _0x3b5a15=_0x1ff4d2['item'];_0x5e3145=_0x5e3145||_0x26882a['isContent'](_0x3b5a15);const _0x179d45=_0x5581f5['mapper']['toViewElement'](_0x3b5a15);if(_0x179d45&&_0x179d45['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ff4d2['type']&&(_0x26882a['isBlock'](_0x3b5a15)&&!_0x26882a['isLimit'](_0x3b5a15)&&(_0x3b5a15['nextSibling']||_0x68fe75['isAtEnd']?_0x50dcde&&_0x50dcde['parent']==_0x3b5a15||(_0x50dcde=_0x3b5a15,_0x2c999a(_0x1ff4d2['previousPosition']),_0x18f6f6=!0x0):_0xe56afb=_0xe56afb||_0x1ff4d2['previousPosition']));}function _0x2c999a(_0x4e8fd9){const _0x1a88e6=_0x5581f5['mapper']['toViewPosition'](_0x4e8fd9),_0x41f318=_0x5581f5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x236b13});_0x5581f5['writer']['insert'](_0x1a88e6,_0x41f318),_0x5581f5['mapper']['bindElementToMarker'](_0x41f318,_0x3c68b5['markerName']);}_0x5e3145||_0x18f6f6||!_0xe56afb||_0x2c999a(_0xe56afb);};}class nt extends _0x4856a5{constructor(_0xd479fc){super(_0xd479fc);const _0x1027a2=_0xd479fc['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x1027a2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1027a2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5daa20=this['editor'],_0x2d6715=_0x5daa20['plugins']['get'](u),_0x3f7f50=_0x2d6715['isReady']?_0x2d6715['diff']['newRevisionId']:null;_0x5daa20['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f7f50);}['refresh'](){const {isReady:_0x415a69,isEnabled:_0x4da55a,repository:_0x45a023,diff:_0x19bc19}=this['editor']['plugins']['get'](u),_0x1c47da=_0x19bc19&&_0x45a023['getLaterVisibleRevision'](_0x19bc19['newRevisionId']);this['isEnabled']=_0x415a69&&_0x4da55a&&Boolean(_0x1c47da);}}class rt extends _0x4856a5{['_step'];constructor(_0x33233a,{direction:_0x23d726}){super(_0x33233a);const _0x3b9753=_0x33233a['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x23d726?0x1:-0x1,this['listenTo'](_0x3b9753,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3b9753,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3b9753,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4d2802=this['editor'],_0x4dd573=_0x4d2802['plugins']['get'](u),{isNavigationMode:_0x1dfc10,currentChangeNumber:_0x558584}=_0x4dd573;let _0x4f2fc0;if(_0x4dd573['activeChange']=_0x1dfc10?_0x4dd573['diff']['changes']['get'](_0x558584+this['_step']):_0x4dd573['diff']['changes']['first'],_0x4dd573['activeChange']['data']['isOnRoot'])_0x4f2fc0=_0x4d2802['editing']['view']['getDomRoot'](_0x4dd573['activeChange']['rootName']);else{const _0x5bd95f=_0x4d2802['model']['markers']['get']('revision:'+_0x4dd573['activeChange']['id']);_0x4f2fc0=_0x1f08bc(_0x4d2802['editing'],_0x5bd95f);}_0x3a5a7e({'target':_0x4f2fc0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4d73fd,currentChangeNumber:_0xc345de,numberOfChanges:_0x23bd13,isReady:_0xcca12f,isEnabled:_0x2b3934}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x2b3934&&_0xcca12f&&_0x23bd13)&&(!_0x4d73fd||(0x1===this['_step']?_0xc345de<_0x23bd13-0x1:_0xc345de>0x0));}}class Ri extends _0x4eb8a3{constructor(_0x460c68){super(_0x460c68);const _0x515c83=this['bindTemplate'],_0x37329f=new _0x41a1a9(_0x460c68),_0x40a43e=new _0x41a1a9(_0x460c68);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',(_0x49761c,_0x4be9d6)=>_0x49761c&&_0x4be9d6>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2feee6,_0x67075a,_0x2e25ec,_0x11d09a)=>{if(!_0x2feee6)return m(_0x460c68,'Loading...');if(!_0x2e25ec)return m(_0x460c68,'No\x20changes');const _0x5a272d=m(_0x460c68,'NUMBER_OF_CHANGES',_0x2e25ec);return _0x11d09a?m(_0x460c68,'X_OF_Y_CHANGES',[_0x67075a+0x1,_0x2e25ec]):_0x5a272d;}),_0x37329f['set']({'label':m(_0x460c68,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4fea33}),_0x40a43e['set']({'label':m(_0x460c68,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xaf50d4}),_0x37329f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x40a43e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x37329f['on']('execute',()=>this['fire']('execute','backward')),_0x40a43e['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',_0x515c83['if']('_isStatusLabelVisible','ck-hidden',_0x5218d2=>!_0x5218d2)]},'children':[{'text':_0x515c83['to']('isNavigationMode',_0x49ef1f=>_0x49ef1f?m(_0x460c68,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x460c68,'Total')+':\x20')}]},{'text':_0x515c83['to']('_statusText')}]},new _0x4bb486(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x37329f,_0x40a43e]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0xbe21c4{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x29c48c=this['editor']['editing']['view'];_0x29c48c['change'](_0x5382f2=>{for(const _0x1e0da5 of _0x29c48c['document']['roots'])_0x5382f2['addClass'](ge,_0x1e0da5);});}['hide'](){const _0x449639=this['editor']['editing']['view'];_0x449639['change'](_0x212952=>{for(const _0x433201 of _0x449639['document']['roots'])_0x212952['removeClass'](ge,_0x433201);});}}class v extends _0xbe21c4{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x56a944=this['editor'],_0x2acc35=_0x56a944['plugins']['get'](u),_0x19b829=_0x56a944['plugins']['get'](ji);_0x56a944['ui']['componentFactory']['add']('exitToEditing',_0x45271f=>{const _0x579d13=new _0x41a1a9(_0x45271f);return _0x579d13['set']({'label':m(_0x45271f,'Back\x20to\x20editing'),'icon':_0x31592a,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x579d13,'execute',()=>{_0x56a944['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x579d13;}),_0x56a944['ui']['componentFactory']['add']('restoreRevision',_0x3b269a=>{const _0x332dd8=new _0x41a1a9(_0x3b269a);return _0x332dd8['set']({'label':m(_0x3b269a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x332dd8['bind']('isEnabled')['to'](_0x56a944['commands']['get']('restoreRevision')),this['listenTo'](_0x332dd8,'execute',()=>_0x56a944['execute']('restoreRevision')),_0x332dd8;}),_0x56a944['ui']['componentFactory']['add']('changesNavigation',_0x39b333=>{const _0x44eebf=new Ri(_0x39b333),_0x174861=_0x56a944['commands']['get']('showPreviousChange'),_0x547a8c=_0x56a944['commands']['get']('showNextChange');return _0x44eebf['bind']('isBackwardNavigationEnabled')['to'](_0x174861,'isEnabled'),_0x44eebf['bind']('isForwardNavigationEnabled')['to'](_0x547a8c,'isEnabled'),_0x44eebf['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2acc35),this['listenTo'](_0x44eebf,'execute',(_0x141e24,_0x14415c)=>{_0x56a944['execute']('forward'===_0x14415c?'showNextChange':'showPreviousChange');}),_0x44eebf;}),_0x19b829['show'](),_0x2acc35['on']('change:isReady',(_0xf8b8f2,_0x3d69c0,_0x9bb713)=>{_0x9bb713?_0x19b829['hide']():_0x19b829['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x414a77,_0x4d7b57){super(_0x414a77,_0x4d7b57);const _0x29c568=this['bindTemplate'];this['set']({'label':m(_0x414a77,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x414a77,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x29c568['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 _0x45d5e2=this['fieldView']['element'];this['_tooltipString']=_0x45d5e2['scrollWidth']>_0x45d5e2['clientWidth']&&_0x45d5e2['value']||'';}}class ni extends _0x4eb8a3{constructor(_0x4bd174,_0xda9fea,_0x3f11ee){super(_0x4bd174);const _0x5f5485=new _0x517cab();_0x5f5485['set']({'content':_0x21d8a3,'viewBox':'0\x200\x2011\x2010'});const _0xe4b36=['ck','ck-revision-history-sidebar__revision-author'];_0x3f11ee&&_0xe4b36['push']('ck-revision-history-sidebar__revision-author_creator');const _0x385da0=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4bd174,_0x3f11ee?'Revision\x20creator':'Revision\x20author')},'children':[_0x5f5485,_0xda9fea['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xe4b36},'children':_0x385da0});}}function ai(_0x60784d,_0x3d95c5){const _0x1adb1f=_0x60784d['bindTemplate'],_0x35618a=_0x60784d['locale'],_0xe876a5=_0x1e23a0(_0x35618a);_0xe876a5['panelPosition']='sw';const _0x205617=function(_0x3df2cd,_0x5957d4){const _0x5f50f4=function(_0x3294e7,_0x22045c){const _0x5af13e=_0x3294e7['locale'],_0x17e885={'Compare\x20against\x20selected':m(_0x5af13e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5af13e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5af13e,'Restore\x20this\x20revision')};return _0x22045c['map'](_0x426ed8=>{const _0x508b45=_0x17e885[_0x426ed8['name']];return _0x508b45&&_0x508b45!==_0x426ed8['name']&&(_0x426ed8['name']=_0x508b45),_0x426ed8;});}(_0x3df2cd,_0x5957d4),_0x31ba26=new _0x504df2();for(const _0x40fea9 of _0x5f50f4){const _0x3fb40d={'type':'button','model':new to({'label':_0x40fea9['name'],'class':_0x40fea9['class'],'withText':!0x0,'role':'menuitem','_action':_0x40fea9['action']})};_0x3fb40d['model']['bind']('isEnabled')['to'](_0x3df2cd,'isActionsDropdownOpen',_0x1e462e=>'function'!=typeof _0x40fea9['isEnabled']||(!_0x1e462e||_0x40fea9['isEnabled'](_0x3df2cd))),_0x31ba26['add'](_0x3fb40d);}return _0x31ba26;}(_0x60784d,_0x3d95c5);return _0x60784d['bind']('isActionsDropdownOpen')['to'](_0xe876a5,'isOpen'),_0xe876a5['buttonView']['set']({'label':m(_0x35618a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3f675d}),_0xe876a5['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1adb1f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1adb1f['to'](_0xa5d333=>_0xa5d333['stopPropagation']())}}),_0xe876a5['on']('execute',_0x4bfb7e=>{_0x60784d['isReady']&&'function'==typeof _0x4bfb7e['source']['_action']&&_0x4bfb7e['source']['_action'](_0x60784d);}),_0x105741(_0xe876a5,_0x205617,{'role':'menu'}),_0xe876a5['listenTo'](_0x60784d,'change:isActionsDropdownOpen',(_0x1b383a,_0x3da273,_0x12bdc7)=>{if(_0x12bdc7)for(const _0x21f683 of _0xe876a5['listView']['items']){const _0x5325a1=_0x21f683['children']['first'],_0xeafb9f=_0x3d95c5['find'](_0x2511a1=>_0x2511a1['action']===_0x5325a1['_action'])['isVisible'];_0x21f683['isVisible']=void 0x0===_0xeafb9f||_0xeafb9f(_0x60784d);}}),_0xe876a5;}class _i extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x43b418(_0x4eb8a3){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5738c6,_0x5b97df,_0x4d84a6,_0xc41357){super(_0x5738c6);const _0x1e17f5=this['bindTemplate'],_0x13e4e2=function(_0x3a8e67,_0x56c60e){const _0x1cff2f=Array['from'](_0x56c60e['authors'])['filter'](_0x8d36a7=>_0x8d36a7!=_0x56c60e['creator']);return _0x56c60e['creator']&&_0x1cff2f['unshift'](_0x56c60e['creator']),_0x1cff2f['map'](_0x19f14f=>new ni(_0x3a8e67,_0x19f14f,_0x19f14f==_0x56c60e['creator']));}(_0x5738c6,_0x5b97df);this['id']=_0x5b97df['id'],this['_revision']=_0x5b97df,this['_requireRevisionName']=_0xc41357,this['bind']('name','createdAt')['to'](_0x5b97df),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x12c4c9=>{return _0x7a894a=_0x5738c6['uiLanguage'],(_0x33ccb7=_0x12c4c9)['toLocaleDateString'](_0x7a894a,{'month':'long','day':'numeric'})+',\x20'+_0x33ccb7['toLocaleTimeString'](_0x7a894a,{'hour':'numeric','minute':'numeric'});var _0x7a894a,_0x33ccb7;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x5738c6,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x12b581=>_0x12b581||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x27086c,_0x4633b6)=>_0x27086c&&_0x4633b6),this['revisionActionsView']=_0x4d84a6&&_0x4d84a6['length']?ai(this,_0x4d84a6):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1e17f5['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1e17f5['if']('isEnabled','ck-disabled',_0x4b7288=>!_0x4b7288),_0x1e17f5['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1e17f5['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1e17f5['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':_0x1e17f5['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':_0x13e4e2}]},this['revisionActionsView']],'on':{'click':_0x1e17f5['to'](_0x28f86e=>{_0x28f86e['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x13d4ec=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x13d4ec,'change',()=>{this['_requireRevisionName']&&!_0x13d4ec['value']||this['fire']('setName',{'id':this['id'],'name':_0x13d4ec['value']}),_0x13d4ec['value']||(_0x13d4ec['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(_0x18435a,_0x2b122d){const _0x367910=_0x275244['fromJSDate'](_0x18435a)['setLocale'](_0x2b122d),_0x14f443=_0x275244['local'](),_0x32045f=_0x14f443['minus']({'days':0x1})['startOf']('day');let _0x29eeaa,_0x569009;return _0x367910['hasSame'](_0x14f443,'day')?(_0x29eeaa=_0x367910['startOf']('day')['toJSDate'](),_0x569009=_0x367910['toRelativeCalendar']()):_0x367910['hasSame'](_0x32045f,'day')?(_0x29eeaa=_0x32045f['toJSDate'](),_0x569009=_0x367910['toRelativeCalendar']()):_0x367910['hasSame'](_0x14f443,'week')?(_0x29eeaa=_0x367910['startOf']('week')['toJSDate'](),_0x569009=_0x367910['weekdayLong']||''):_0x367910['hasSame'](_0x14f443,'year')?(_0x29eeaa=_0x367910['startOf']('month')['toJSDate'](),_0x569009=_0x367910['monthLong']||''):(_0x29eeaa=_0x367910['startOf']('year')['toJSDate'](),_0x569009=String(_0x367910['year'])),{'startDate':_0x29eeaa,'localizedPeriodName':_0x569009};}class bi extends _0x4eb8a3{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3059d7,_0xdeb8f9,_0x304654,_0x4f7d57){super(_0x3059d7);const _0x36f166=li(_0xdeb8f9,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xdeb8f9,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x304654,this['_requireRevisionName']=_0x4f7d57,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':_0x36f166}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x344626){const _0x5c4019=new _i(this['locale'],_0x344626,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5c4019);}['removeRevision'](_0x4efe99){const _0x3eae06=this['revisionViews']['find'](_0xaa8716=>_0xaa8716['id']===_0x4efe99['id']);this['revisionViews']['remove'](_0x3eae06);}}class fi extends _0x4eb8a3{constructor(_0x259d88){super(_0x259d88);const _0x3fc5c5=new _0x517cab();_0x3fc5c5['content']=_0x672cd0,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3fc5c5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x259d88,'Revision\x20history')]}]});}}class di extends _0x4eb8a3{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1dc235,_0x55de06,_0x312992,_0x2314cf){super(_0x1dc235);const _0x4ae934=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x55de06,this['_revisionActions']=_0x312992,this['_requireRevisionName']=_0x2314cf,this['on']('select',(_0x1b6688,_0x34db07)=>{this['fire']('revisionSelected',_0x34db07);}),this['on']('setName',(_0x317f7d,_0x45ea94)=>{this['fire']('revisionSetName',_0x45ea94);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x1dc235),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4ae934['if']('isEnabled','ck-disabled',_0x3e6253=>!_0x3e6253)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x383695 of this['_revisions'])this['_addRevision'](_0x383695);this['_revisions']['on']('add',(_0x89542c,_0x5baa9b)=>{this['_addRevision'](_0x5baa9b);}),this['_revisions']['on']('remove',(_0x2e7fdb,_0x43f4f4)=>{this['_removeRevision'](_0x43f4f4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2b8f0d=>_0x2b8f0d['revisionViews']['map'](_0xdcc3f9=>_0xdcc3f9))['flat']();}['selectRevision'](_0x3fea49){for(const _0x37bd0a of this['revisionViews'])_0x3fea49&&_0x3fea49['id']===_0x37bd0a['id']?_0x37bd0a['select']():_0x37bd0a['deselect']();}['highlightRevisions'](_0x1f5965){for(const _0x4266e1 of this['revisionViews'])_0x1f5965['some'](({id:_0x331499})=>_0x331499===_0x4266e1['id'])?_0x4266e1['highlight']():_0x4266e1['unhighlight']();}['_addRevision'](_0x57916a){const _0x8d6df1=li(_0x57916a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2cbaff=this['timePeriodViews']['get'](0x0);_0x2cbaff&&_0x2cbaff['startDate']['getTime']()===_0x8d6df1['getTime']()||(_0x2cbaff=new bi(this['locale'],_0x8d6df1,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2cbaff)),_0x2cbaff['addRevision'](_0x57916a);}['_removeRevision'](_0x2219da){const _0x1b873d=li(_0x2219da['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1b873d)['removeRevision'](_0x2219da);}['_getTimePeriodViewByStartDate'](_0x1f3f6c){return this['timePeriodViews']['find'](_0x58756f=>_0x58756f['startDate']['getTime']()===_0x1f3f6c['getTime']());}}class d extends _0xbe21c4{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(
|
|
30
|
-
_0x37a1b5(_0x28b480){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x52138a,_0x24cba1){super(_0x24cba1),this['sourceElement']=_0x52138a,this['model']['document']['createRoot']();const _0x527cdb=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x527cdb);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4fa567,_0x135486){const _0x440a77=new this(_0x4fa567,_0x135486);return await _0x440a77['initPlugins'](),await _0x440a77['ui']['init'](_0x4fa567),await _0x440a77['data']['init'](_0x440a77['config']['get']('initialData')||''),_0x440a77['fire']('ready'),_0x440a77;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x439397{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f06dc){function _0xb4128(_0x48adf5){return _0x48adf5['map'](_0x18156f=>String['fromCharCode'](_0x18156f))['join']('');}super(_0x3f06dc),this['result']='end',_0x3f06dc[_0xb4128([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb4128([0x76,0x69,0x65,0x77])][_0xb4128([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb4128([0x61,0x75,0x74,0x6f]),_0x3f06dc[_0xb4128([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xb4128([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb4128([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xb4128([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xb4128([0x6f,0x6b])});}}class ct extends _0x439397{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x273bbd){if(super(_0x273bbd),!this['editor']['config']['get']('revisionHistory'))throw new _0x1b5dfa('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3fa517=>this['_showRevisionViewer']({..._0x3fa517,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x50b7bf=>this['_closeRevisionViewer'](_0x50b7bf)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xa954e1=>this['_restoreRevision'](_0xa954e1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x6f1c3f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x6f1c3f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1bf92b){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1bf92b);}['getRevision'](_0x18b2eb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x18b2eb);}['getRevisions'](_0x380459){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x380459||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x57fc4a=this['editor'],_0x2c65e7=_0x1dfe24(_0x57fc4a,p),_0x380da2=_0x57fc4a['plugins']['get']('RevisionTracker'),_0x141504=_0x57fc4a['plugins']['get']('Users')['users'];return _0x2c65e7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2c65e7['lazyRoots'],(_0x2c65e7['plugins']['push'](ht,u,v,class extends _0x439397{static get['requires'](){return[u,'Users'];}['init'](){const _0xee8567=this['editor']['plugins']['get']('Users');for(const _0xaba6f7 of _0x141504)_0xaba6f7['isAnonymous']||_0xee8567['getUser'](_0xaba6f7['id'])||_0xee8567['addUser'](_0xaba6f7);const _0x351e93=_0x380da2['repository']['getRevisions']();let _0x13024e=null;const _0x42b82b=this['editor']['plugins']['get']('RevisionViewer');_0x42b82b['adapter']=_0x380da2['adapter'],_0x42b82b['bind']('isEnabled')['to'](_0x380da2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x57fc4a,'isReadOnly',_0x49d17d=>!_0x49d17d);for(const _0x4c4a89 of _0x351e93){const _0x3edc86=null===_0x4c4a89['creator'];if(_0x3edc86&&_0x4c4a89['toVersion']===_0x4c4a89['fromVersion'])continue;const _0x24f3ff=_0x4c4a89['toJSON']();_0x42b82b['addRevisionData'](_0x24f3ff,(_0x43a597,_0x560199,_0x38eb04)=>{if(_0x3edc86){if(_0x13024e)_0x13024e['_update'](_0x43a597,_0x560199);else{if(!_0x560199){const _0x25b85d=_0x38eb04['toJSON']();_0x25b85d['id']=_0x391c61(),_0x380da2['saveRevision'](_0x25b85d,_0x38eb04['toVersion'])['then'](_0x41217b=>{_0x13024e=_0x41217b;});}}}else _0x4c4a89['_update'](_0x43a597,_0x560199);});}}},d),_0x2c65e7);}['_enhanceShowRevisionViewerCallback'](){const _0x271356=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1e53c4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x56a0ec=this['editor']['plugins']['get']('Autosave');await _0x56a0ec['save']();}else await _0x1e53c4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1cae3a=this['editor']['plugins']['get']('Dialog');_0x1cae3a['isOpen']&&_0x1cae3a['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x4edd48=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x48bea4 of _0x4edd48)_0x48bea4['class']=_0x48bea4['class']?_0x48bea4['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x2a3a3d=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x2a3a3d&&_0x2a3a3d['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x6fdd22=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x6fdd22&&_0x6fdd22['setAttribute']('tabindex','-1');}}const _0x43ee6f=this['_getRevisionViewerEditorConfig']();return _0x271356(_0x43ee6f)['then'](_0x5d3acf=>{return(this['_viewerEditor']=_0x5d3acf,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'),_0x5d3acf);})['catch'](_0x39146c=>(console['error'](_0x39146c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x21c695=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x423440=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3f6a4e of _0x423440)_0x3f6a4e['class']='ck-tab-panel_disabled'===_0x3f6a4e['class']?'':_0x3f6a4e['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x1cc9a0=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1cc9a0&&_0x1cc9a0['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x2764d2=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x2764d2&&_0x2764d2['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x21c695(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x50a895=this['editor']['plugins']['get']('Annotations');_0x50a895['refreshVisibility'](),_0x50a895['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1c2398){const _0x3f14bd=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x126282=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4d5950=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x4d5950,_0x1c2398)['then'](_0x21e379=>(_0x126282['style']['display']='block',_0x3f14bd['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x21e379));}['_closeRevisionViewer'](_0x508b67){const _0x2803ca=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2803ca['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x508b67['destroy']();}async['_restoreRevision'](_0x51b53d){const _0x54ecf7=this['editor'],_0x3cc9fc=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2682fa=_0x54ecf7['plugins']['get']('RevisionTracker'),_0x49ca33=_0x54ecf7['plugins']['get']('RevisionHistoryUtils'),_0x2f5212=_0x3cc9fc['repository']['getRevision'](_0x51b53d);let _0x1615b8,_0x81eedc,_0x4c9e26;try{await _0x49ca33['loadRevisionData'](_0x2f5212,this['adapter']),_0x1615b8=_0x49ca33['getRevisionDocumentData'](_0x2f5212),_0x81eedc=_0x49ca33['getRevisionRootsAttributes'](_0x2f5212);}catch(_0x14c63d){return void console['error'](_0x14c63d);}_0x54ecf7['model']['change'](_0x54a335=>{for(const _0x1de57b of Array['from'](_0x54ecf7['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x54a335['removeMarker'](_0x1de57b);}),_0x3cc9fc['isReady']=!0x1,_0x54ecf7['model']['enqueueChange'](_0x3d9223=>{_0x3d9223['setSelection'](null),_0x3d9223['removeSelectionAttribute'](_0x54ecf7['model']['document']['selection']['getAttributeKeys']());const _0x2ba909=Object['keys'](_0x1615b8);for(const _0x1a10c3 of _0x54ecf7['model']['document']['roots'])'$graveyard'!=_0x1a10c3['rootName']&&_0x1a10c3['isAttached']()&&!_0x2ba909['includes'](_0x1a10c3['rootName'])&&_0x3d9223['detachRoot'](_0x1a10c3);for(const _0x5b7f3f of _0x2ba909){let _0x3ed3f5=_0x54ecf7['model']['document']['getRoot'](_0x5b7f3f);_0x3ed3f5&&_0x3ed3f5['isAttached']()||(_0x3ed3f5=_0x3d9223['addRoot'](_0x5b7f3f));const _0xdf3a11=_0x81eedc[_0x5b7f3f],_0x4cd688=Object['keys'](_0xdf3a11),_0x5a5e55=_0x1615b8[_0x5b7f3f];for(const _0x357ede of _0x3ed3f5['getAttributeKeys']())_0x4cd688['includes'](_0x357ede)||_0x3d9223['removeAttribute'](_0x357ede,_0x3ed3f5);for(const _0x1f003c of _0x4cd688)_0x3d9223['setAttribute'](_0x1f003c,_0x81eedc[_0x5b7f3f][_0x1f003c],_0x3ed3f5);_0x3d9223['remove'](_0x3d9223['createRangeIn'](_0x3ed3f5)),_0x3d9223['insert'](_0x54ecf7['data']['parse'](_0x5a5e55,_0x3ed3f5),_0x3ed3f5,0x0);}});const _0x4b9295=m(_0x54ecf7['locale'],'Restored');if(_0x2f5212['name'])_0x4c9e26=-0x1==_0x2f5212['name']['indexOf'](_0x4b9295)?_0x4b9295+':\x20'+_0x2f5212['name']:_0x2f5212['name'];else _0x4c9e26=_0x4b9295+':\x20'+(_0x2f5212['createdAt']['toLocaleDateString'](_0x54ecf7['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2f5212['createdAt']['toLocaleTimeString'](_0x54ecf7['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2682fa['saveRevision']({'name':_0x4c9e26}),_0x3cc9fc['isReady']=!0x0,_0x54ecf7['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x2267a3){super(_0x2267a3),this['_revisionViewer']=_0x2267a3['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x168338=this['_revisionsRepository']['_revisions'],_0x542329=this['_createRevisionActions'](),_0x5d4d33=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x168338,_0x542329,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',(_0x7bc7df,_0x1da32e)=>{_0x1da32e['revisionViews']['on']('add',(_0x30c471,_0x1c4069)=>{_0x1c4069['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)),_0x5d4d33['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1ccf28=this['_revisionsRepository']['getRevision'](0x0);if(_0x1ccf28){const _0x44c85c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1ccf28['id']);this['_revisionViewer']['compare'](_0x1ccf28,_0x44c85c);}}['_handleRevisionSelected'](_0x2b6440,_0x109022){const _0x36851d=this['_revisionsRepository']['getRevision'](_0x109022['id']),_0x474575=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x36851d['id']);this['_revisionViewer']['compare'](_0x36851d,_0x474575);}['_handleRevisionSetName'](_0x144eb4,_0x324fa8){this['_revisionsRepository']['getRevision'](_0x324fa8['id'])['setName'](_0x324fa8['name']);}['_handleDiffChange'](_0x3da5b4,_0x12f878,_0x334a98){const _0x12ea71=this['_revisionsRepository']['getRevisionsInDiff'](_0x334a98);_0x12ea71['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x12ea71),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x12ea71[0x0]));}['_createRevisionActions'](){const _0x3e9f5a=this['editor'],_0x423ac3=d['availableRevisionActions'],_0x3ed7f9=_0x3e9f5a['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3ed7f9['length'])return _0x3ed7f9['map'](_0x3b34cd=>{const _0x26f724='string'==typeof _0x3b34cd?Object['assign']({},_0x423ac3[_0x3b34cd]):_0x3b34cd;return _0x26f724['action']=_0x26f724['action']['bind'](this,_0x3e9f5a),_0x26f724['isVisible']&&(_0x26f724['isVisible']=_0x26f724['isVisible']['bind'](this,_0x3e9f5a)),_0x26f724;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x255071},_0x1ae674)=>{const _0x368d20=_0x255071['get'](u),_0x13fa56=_0x368d20['repository'];let _0x5c9aee=_0x368d20['diff']['newRevisionId'],_0x4c6260=_0x1ae674['id'];_0x13fa56['getIndex'](_0x5c9aee)>_0x13fa56['getIndex'](_0x4c6260)&&([_0x5c9aee,_0x4c6260]=[_0x4c6260,_0x5c9aee]),_0x368d20['compare'](_0x5c9aee,_0x4c6260);},'isVisible':({plugins:_0x4c41ed},_0x15069a)=>{const _0x272c57=_0x4c41ed['get'](u);return!(_0x272c57['repository']['getRevisionsInDiff'](_0x272c57['diff'])['length']>0x2)&&!_0x15069a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x77e712,{id:_0x48e0e1})=>{_0x77e712['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x48e0e1);},'isVisible':({plugins:_0x529462},_0x45ca07)=>!!_0x529462['get'](u)['repository']['getLaterVisibleRevision'](_0x45ca07['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4a2888},{id:_0x53f0f4,revisionNameView:_0x1b5a00})=>{const _0x5436b2=_0x4a2888['get'](u),_0x4bc70f=_0x5436b2['repository']['getEarlierVisibleRevision'](_0x53f0f4);_0x5436b2['compare'](_0x53f0f4,_0x4bc70f),_0x1b5a00['focus'](),_0x1b5a00['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x8ecdf2,_0x44732b){super(_0x8ecdf2),this['_view']=_0x44732b,this['_toolbarConfig']=st(_0x8ecdf2['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x40ba78){const _0x5c7713=this['editor'],_0xe396d3=this['view'],_0x5dc76c=_0x5c7713['editing']['view'],_0x299ba9=_0xe396d3['editable'],_0x31599d=_0x5dc76c['document']['getRoot']();_0x299ba9['name']=_0x31599d['rootName'],_0xe396d3['render']();const _0x5df5ae=_0x299ba9['element'];this['setEditableElement'](_0x299ba9['name'],_0x5df5ae),_0xe396d3['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5dc76c['attachDomRoot'](_0x5df5ae),this['_elementReplacer']['replace'](_0x40ba78,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1bd4cd=this['view'],_0x31c0d8=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x31c0d8['detachDomRoot'](_0x1bd4cd['editable']['name']),_0x1bd4cd['destroy']();}['_initToolbar'](){const _0xfb7ad0=this['view'];_0xfb7ad0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xfb7ad0['stickyPanel']['limiterElement']=_0xfb7ad0['element'],_0xfb7ad0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x20cf39})=>_0x20cf39),_0xfb7ad0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xfb7ad0['toolbar']);}}class ii extends _0x20cce1{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4fc2e0,_0x4c47eb,_0xcbe9b={}){super(_0x4fc2e0),this['stickyPanel']=new _0x82d6c7(_0x4fc2e0),this['toolbar']=new _0x392eb7(_0x4fc2e0,{'shouldGroupWhenFull':_0xcbe9b['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x4fc2e0,_0x4c47eb);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x28570d(_0x1dbeab){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1c2cf6,_0x627cc3){super(_0x627cc3),this['sourceElement']=_0x1c2cf6,this['model']['document']['createRoot']();const _0x562f10=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x562f10);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5d29c2,_0x241194){const _0x4a8436=new this(_0x5d29c2,_0x241194);return await _0x4a8436['initPlugins'](),await _0x4a8436['ui']['init'](_0x5d29c2),await _0x4a8436['data']['init'](_0x4a8436['config']['get']('initialData')||''),_0x4a8436['fire']('ready'),_0x4a8436;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0xbe21c4{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5148ce){function _0x36d76a(_0x50c02f){return _0x50c02f['map'](_0x53b80b=>String['fromCharCode'](_0x53b80b))['join']('');}super(_0x5148ce),this['result']='end',_0x5148ce[_0x36d76a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36d76a([0x76,0x69,0x65,0x77])][_0x36d76a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36d76a([0x61,0x75,0x74,0x6f]),_0x5148ce[_0x36d76a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x36d76a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36d76a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x36d76a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x36d76a([0x6f,0x6b])});}}class ct extends _0xbe21c4{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x13869e){if(super(_0x13869e),!this['editor']['config']['get']('revisionHistory'))throw new _0x1d6810('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xa1b671=>this['_showRevisionViewer']({..._0xa1b671,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2b8422=>this['_closeRevisionViewer'](_0x2b8422)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x204016=>this['_restoreRevision'](_0x204016)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x52c9a9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x52c9a9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x379ad1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x379ad1);}['getRevision'](_0xa2ebb3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xa2ebb3);}['getRevisions'](_0x39eafb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x39eafb||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x484705=this['editor'],_0x21d22c=_0x45ed39(_0x484705,p),_0x559d7f=_0x484705['plugins']['get']('RevisionTracker'),_0x5f4089=_0x484705['plugins']['get']('Users')['users'];return _0x21d22c['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x21d22c['lazyRoots'],(_0x21d22c['plugins']['push'](ht,u,v,class extends _0xbe21c4{static get['requires'](){return[u,'Users'];}['init'](){const _0x35816d=this['editor']['plugins']['get']('Users');for(const _0xf53218 of _0x5f4089)_0xf53218['isAnonymous']||_0x35816d['getUser'](_0xf53218['id'])||_0x35816d['addUser'](_0xf53218);const _0xc84228=_0x559d7f['repository']['getRevisions']();let _0x46bb10=null;const _0x5ad9f3=this['editor']['plugins']['get']('RevisionViewer');_0x5ad9f3['adapter']=_0x559d7f['adapter'],_0x5ad9f3['bind']('isEnabled')['to'](_0x559d7f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x484705,'isReadOnly',_0x272815=>!_0x272815);for(const _0x4f97a5 of _0xc84228){const _0x227662=null===_0x4f97a5['creator'];if(_0x227662&&_0x4f97a5['toVersion']===_0x4f97a5['fromVersion'])continue;const _0x589586=_0x4f97a5['toJSON']();_0x5ad9f3['addRevisionData'](_0x589586,(_0x193a44,_0x10f71a,_0x1c637d)=>{if(_0x227662){if(_0x46bb10)_0x46bb10['_update'](_0x193a44,_0x10f71a);else{if(!_0x10f71a){const _0x2aaef3=_0x1c637d['toJSON']();_0x2aaef3['id']=_0x532896(),_0x559d7f['saveRevision'](_0x2aaef3,_0x1c637d['toVersion'])['then'](_0x31a9a2=>{_0x46bb10=_0x31a9a2;});}}}else _0x4f97a5['_update'](_0x193a44,_0x10f71a);});}}},d),_0x21d22c);}['_enhanceShowRevisionViewerCallback'](){const _0x2f6936=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x38da09=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x459461=this['editor']['plugins']['get']('Autosave');await _0x459461['save']();}else await _0x38da09['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x48bcfa=this['editor']['plugins']['get']('Dialog');_0x48bcfa['isOpen']&&_0x48bcfa['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x5d2367=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x3dde0e of _0x5d2367)_0x3dde0e['class']=_0x3dde0e['class']?_0x3dde0e['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x424946=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x424946&&_0x424946['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3a19ab=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3a19ab&&_0x3a19ab['setAttribute']('tabindex','-1');}}const _0x4a710f=this['_getRevisionViewerEditorConfig']();return _0x2f6936(_0x4a710f)['then'](_0x4d2c7a=>{return(this['_viewerEditor']=_0x4d2c7a,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'),_0x4d2c7a);})['catch'](_0x3c37e8=>(console['error'](_0x3c37e8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x35a9df=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x1d2171=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1b22ee of _0x1d2171)_0x1b22ee['class']='ck-tab-panel_disabled'===_0x1b22ee['class']?'':_0x1b22ee['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x90fd37=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x90fd37&&_0x90fd37['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x22f6ba=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x22f6ba&&_0x22f6ba['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x35a9df(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3cc76d=this['editor']['plugins']['get']('Annotations');_0x3cc76d['refreshVisibility'](),_0x3cc76d['refreshPositioning']();}});});}['_showRevisionViewer'](_0x12dbd7){const _0x1ec0a5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x23c032=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1a0798=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x1a0798,_0x12dbd7)['then'](_0x3aac38=>(_0x23c032['style']['display']='block',_0x1ec0a5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3aac38));}['_closeRevisionViewer'](_0xfd6539){const _0x175ce3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x175ce3['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0xfd6539['destroy']();}async['_restoreRevision'](_0x2e4545){const _0x237011=this['editor'],_0x3a0657=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2e460b=_0x237011['plugins']['get']('RevisionTracker'),_0x11fca4=_0x237011['plugins']['get']('RevisionHistoryUtils'),_0x45c50f=_0x3a0657['repository']['getRevision'](_0x2e4545);let _0x58a0b2,_0x624875,_0x5f455a;try{await _0x11fca4['loadRevisionData'](_0x45c50f,this['adapter']),_0x58a0b2=_0x11fca4['getRevisionDocumentData'](_0x45c50f),_0x624875=_0x11fca4['getRevisionRootsAttributes'](_0x45c50f);}catch(_0x3a663){return void console['error'](_0x3a663);}_0x237011['model']['change'](_0x1e8174=>{for(const _0x1d49ea of Array['from'](_0x237011['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1e8174['removeMarker'](_0x1d49ea);}),_0x3a0657['isReady']=!0x1,_0x237011['model']['enqueueChange'](_0x957351=>{_0x957351['setSelection'](null),_0x957351['removeSelectionAttribute'](_0x237011['model']['document']['selection']['getAttributeKeys']());const _0xeece7c=Object['keys'](_0x58a0b2);for(const _0x1c1c51 of _0x237011['model']['document']['roots'])'$graveyard'!=_0x1c1c51['rootName']&&_0x1c1c51['isAttached']()&&!_0xeece7c['includes'](_0x1c1c51['rootName'])&&_0x957351['detachRoot'](_0x1c1c51);for(const _0x202c96 of _0xeece7c){let _0x20161a=_0x237011['model']['document']['getRoot'](_0x202c96);_0x20161a&&_0x20161a['isAttached']()||(_0x20161a=_0x957351['addRoot'](_0x202c96));const _0x2d1e97=_0x624875[_0x202c96],_0x331296=Object['keys'](_0x2d1e97),_0x3d3300=_0x58a0b2[_0x202c96];for(const _0x443159 of _0x20161a['getAttributeKeys']())_0x331296['includes'](_0x443159)||_0x957351['removeAttribute'](_0x443159,_0x20161a);for(const _0x569b16 of _0x331296)_0x957351['setAttribute'](_0x569b16,_0x624875[_0x202c96][_0x569b16],_0x20161a);_0x957351['remove'](_0x957351['createRangeIn'](_0x20161a)),_0x957351['insert'](_0x237011['data']['parse'](_0x3d3300,_0x20161a),_0x20161a,0x0);}});const _0x3ceeb8=m(_0x237011['locale'],'Restored');if(_0x45c50f['name'])_0x5f455a=-0x1==_0x45c50f['name']['indexOf'](_0x3ceeb8)?_0x3ceeb8+':\x20'+_0x45c50f['name']:_0x45c50f['name'];else _0x5f455a=_0x3ceeb8+':\x20'+(_0x45c50f['createdAt']['toLocaleDateString'](_0x237011['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x45c50f['createdAt']['toLocaleTimeString'](_0x237011['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2e460b['saveRevision']({'name':_0x5f455a}),_0x3a0657['isReady']=!0x0,_0x237011['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|