@ckeditor/ckeditor5-revision-history 45.0.0-alpha.7 → 45.0.0-alpha.8
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 +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryutils.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- 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,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x10ab85(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2bcb3f){super(),this['id']=_0x2bcb3f['id']||_0x521db4(),this['creator']=_0x2bcb3f['creator']||null,this['authors']=_0x2bcb3f['authors']||[],this['diffData']=_0x2bcb3f['diffData']||null,this['toVersion']=_0x2bcb3f['toVersion']||0x0,this['fromVersion']=_0x2bcb3f['fromVersion']||0x0,this['set']('name',_0x2bcb3f['name']||''),this['set']('createdAt',_0x2bcb3f['createdAt']||new Date()),this['set']('attributes',_0x2bcb3f['attributes']||{});}['setName'](_0x268758){this['_update']({'name':_0x268758});}['setAttribute'](_0x361818,_0x1cc6df){const _0x2a7e90=_0x117a5a(this['attributes']);_0xc49932(_0x2a7e90,_0x361818,_0x1cc6df),this['_update']({'attributes':_0x2a7e90});}['removeAttribute'](_0x2eff04){const _0x240b0c=_0x117a5a(this['attributes']);_0x21c915(_0x240b0c,_0x2eff04),this['_update']({'attributes':_0x240b0c});}['_update'](_0x19df03,_0x2db8f5=!0x1){let _0x44485e=!0x1;const _0x45553a={'id':this['id']},_0x1f9b73=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1d0b8a of _0x1f9b73){const _0x181279=_0x19df03[_0x1d0b8a];void 0x0!==_0x181279&&_0x181279!==this[_0x1d0b8a]&&(this[_0x1d0b8a]=_0x181279,_0x45553a[_0x1d0b8a]=_0x181279,_0x44485e=!0x0);}_0x44485e&&(_0x45553a['authors']&&(_0x45553a['authorsIds']=_0x45553a['authors']['map'](_0xe855cf=>_0xe855cf['id']),delete _0x45553a['authors']),this['fire']('_update',_0x45553a,_0x2db8f5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3782f8=>_0x3782f8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x34d9d9{['_revisions'];static get['requires'](){return[_0x3ff113];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x415ab7){super(_0x415ab7),this['_revisions']=new _0x346a75();}['afterInit'](){!async function(_0x59dd84){const _0x4de718=_0x487f58([0x46,0x6a,0x39,0x68,0x72,0x4f,0x78,0x75,0x38,0x30,0x5a,0x42,0x41,0x70,0x61,0x4a,0x65,0x7a,0x4e,0x6d,0x76,0x50,0x57,0x45,0x63,0x6e,0x6f,0x47,0x74,0x77,0x48,0x36,0x52,0x6c,0x4c,0x69,0x62,0x67,0x37,0x43,0x71,0x53,0x31,0x33,0x54,0x6b,0x4d,0x35,0x73,0x64,0x66,0x79,0x51,0x55,0x44,0x34,0x59,0x49,0x4b,0x32,0x56,0x58]),_0x335085=0xeb829,_0x31b0af=0x4c0fb68a,_0x2f3c27=0x4c08d56a^_0x31b0af,_0x3c3bd3=window[_0x487f58([0x44,0x61,0x74,0x65])][_0x487f58([0x6e,0x6f,0x77])](),_0x51fbee=_0x59dd84[_0x487f58([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b3334=new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23296e=>{_0x51fbee[_0x487f58([0x6f,0x6e,0x63,0x65])](_0x487f58([0x72,0x65,0x61,0x64,0x79]),_0x23296e);}),_0x58eb01={[_0x487f58([0x6b,0x74,0x79])]:_0x487f58([0x45,0x43]),[_0x487f58([0x75,0x73,0x65])]:_0x487f58([0x73,0x69,0x67]),[_0x487f58([0x63,0x72,0x76])]:_0x487f58([0x50,0x2d,0x32,0x35,0x36]),[_0x487f58([0x78])]:_0x487f58([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]),[_0x487f58([0x79])]:_0x487f58([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]),[_0x487f58([0x61,0x6c,0x67])]:_0x487f58([0x45,0x53,0x32,0x35,0x36])},_0x295fe1=_0x51fbee[_0x487f58([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x487f58([0x67,0x65,0x74])](_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1bc1ed(){let _0x2b6398,_0x3ad72e=null,_0x43d789=null;try{if(_0x295fe1==_0x487f58([0x47,0x50,0x4c]))return _0x487f58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b6398=_0x3db6ad(),!_0x2b6398)return _0x487f58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b6398[_0x487f58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43d789=_0xc4920a(_0x2b6398[_0x487f58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b6398[_0x487f58([0x6a,0x74,0x69])])),await _0x4b8b3b()?_0x32e50d()?_0x5d7242()?_0x487f58([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd1d31a()?(_0x2b6398[_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x487f58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ad72e=_0x23dde3(_0x487f58([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b6398[_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x487f58([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ad72e=_0x23dde3(_0x487f58([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x84a030()):_0x487f58([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x487f58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x487f58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2a788f){return _0x487f58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d7242(){const _0x126313=[_0x487f58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x487f58([0x74,0x72,0x69,0x61,0x6c])][_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b6398[_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c3bd3/0x3e8:0xe10*_0x2f3c27;return _0x2b6398[_0x487f58([0x65,0x78,0x70])]<_0x126313;}function _0x32e50d(){const _0x1af7d4=_0x2b6398[_0x487f58([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1af7d4)return!0x1;if(_0x1af7d4[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487f58([0x2a])))return!0x0;if(_0x1af7d4[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487f58([0x52,0x48])))return!0x0;if(_0x1af7d4[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487f58([0x52,0x52,0x48]))){if(_0x1f2b02())return!0x0;if(_0x4b119b()||_0x8677e6())return!0x0;}return!0x1;}function _0xd1d31a(){const _0x29b4c8=_0x2b6398[_0x487f58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29b4c8||0x0==_0x29b4c8[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x22a1d3}=new URL(window[_0x487f58([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29b4c8[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22a1d3))return!0x0;const _0xb94327=_0x22a1d3[_0x487f58([0x73,0x70,0x6c,0x69,0x74])](_0x487f58([0x2e]));return _0x29b4c8[_0x487f58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dd3d7=>_0x3dd3d7[_0x487f58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x487f58([0x2a])))[_0x487f58([0x6d,0x61,0x70])](_0x29c6f4=>_0x29c6f4[_0x487f58([0x73,0x70,0x6c,0x69,0x74])](_0x487f58([0x2e])))[_0x487f58([0x73,0x6f,0x6d,0x65])](_0x53cf40=>_0xb94327[_0x487f58([0x65,0x76,0x65,0x72,0x79])]((_0x22a0fb,_0x1da8a7)=>_0x53cf40[_0x1da8a7]===_0x22a0fb||_0x53cf40[_0x1da8a7]===_0x487f58([0x2a])));}function _0x84a030(){return _0x3ad72e&&_0x43d789?new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a0f96,_0x5dfea0)=>{_0x3ad72e[_0x487f58([0x74,0x68,0x65,0x6e])](_0x3a0f96,_0x5dfea0),_0x43d789[_0x487f58([0x74,0x68,0x65,0x6e])](_0x255c5b=>{_0x255c5b!=_0x487f58([0x56,0x61,0x6c,0x69,0x64])&&_0x3a0f96(_0x255c5b);},_0x5dfea0);}):_0x3ad72e||_0x43d789||_0x487f58([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc4920a(_0xfdca0,_0x2caa77){return new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ea217=>{if(_0x2ee3b3())return _0x4ea217(_0x487f58([0x56,0x61,0x6c,0x69,0x64]));_0x39b29e(),_0x51fbee[_0x487f58([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x487f58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f9044=!0x1;const _0x4cac8d=_0x521db4();function _0x193ef9(_0x59da7b){return!!_0x59da7b&&(typeof _0x59da7b===_0x487f58([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59da7b===_0x487f58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59da7b[_0x487f58([0x74,0x68,0x65,0x6e])]===_0x487f58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59da7b[_0x487f58([0x63,0x61,0x74,0x63,0x68])]===_0x487f58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b3370(_0x35fa16){_0x580ef3(_0x35fa16)[_0x487f58([0x74,0x68,0x65,0x6e])](_0x37d08c=>{if(!_0x37d08c||_0x37d08c[_0x487f58([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x487f58([0x6f,0x6b]))return _0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a4265(_0x405396(_0x4cac8d+_0x2caa77))!=_0x37d08c[_0x487f58([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x487f58([0x56,0x61,0x6c,0x69,0x64]);})[_0x487f58([0x74,0x68,0x65,0x6e])](_0x3258a4=>(_0x35cb87(),_0x3258a4),()=>{const _0x2d01c9=_0x459ce6();return null==_0x2d01c9?(_0x35cb87(),_0x487f58([0x56,0x61,0x6c,0x69,0x64])):_0x487f58(_0x3c3bd3-_0x2d01c9>(0x6803328a^_0x31b0af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x487f58([0x74,0x68,0x65,0x6e])](_0x4ea217)[_0x487f58([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ea217(_0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46b615=0x4c39580a^_0x31b0af;function _0x35cb87(){const _0x227e1c=_0x487f58([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a4265(_0x405396(_0xfdca0)),_0x95f2f2=_0x49cde1(_0x5a4265(window[_0x487f58([0x4d,0x61,0x74,0x68])][_0x487f58([0x63,0x65,0x69,0x6c])](_0x3c3bd3/_0x46b615)));window[_0x487f58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x487f58([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x227e1c,_0x95f2f2);}function _0x459ce6(){const _0x148fcc=_0x487f58([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a4265(_0x405396(_0xfdca0)),_0x5b974c=window[_0x487f58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x487f58([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x148fcc);return _0x5b974c?window[_0x487f58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49cde1(_0x5b974c),0x10)*_0x46b615:null;}function _0x580ef3(_0x5e5b13){return new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24da5a,_0x2c1da9)=>{_0x5e5b13[_0x487f58([0x74,0x68,0x65,0x6e])](_0x24da5a,_0x2c1da9),window[_0x487f58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c1da9,0x4c0e624a^_0x31b0af);});}}_0x51fbee[_0x487f58([0x6f,0x6e])](_0x487f58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52fbec,_0x21681b)=>{if(_0x21681b[0x0]!=_0xfdca0)return _0x4ea217(_0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x21681b[0x1]={..._0x21681b[0x1],[_0x487f58([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cac8d};},{[_0x487f58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x487f58([0x68,0x69,0x67,0x68])}),_0x51fbee[_0x487f58([0x6f,0x6e])](_0x487f58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x86ba9d=>{_0x193ef9(_0x86ba9d[_0x487f58([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f9044=!0x0,_0x1b3370(_0x86ba9d[_0x487f58([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x487f58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x487f58([0x6c,0x6f,0x77])}),_0x5b3334[_0x487f58([0x74,0x68,0x65,0x6e])](()=>{_0x3f9044||_0x4ea217(_0x487f58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ee3b3(){return _0x51fbee[_0x487f58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x487f58([0x76,0x69,0x65,0x77])][_0x487f58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x487f58([0x61,0x75,0x74,0x6f]);}function _0x39b29e(){_0x51fbee[_0x487f58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x487f58([0x76,0x69,0x65,0x77])][_0x487f58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x487f58([0x61,0x75,0x74,0x6f]);}}function _0x23dde3(_0x19373e){const _0x4f9620=[new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f547e=>setTimeout(_0x4f547e,0x4c068846^_0x31b0af)),_0x5b3334[_0x487f58([0x74,0x68,0x65,0x6e])](()=>new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12fac7=>{const _0x517713=0x4c0fb68d^_0x31b0af,_0x151036=_0x59dd84[_0x487f58([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x7963e0(){_0x151036[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x517713&&_0x12fac7();}_0x7963e0(),_0x151036[_0x487f58([0x6f,0x6e])](_0x487f58([0x61,0x64,0x64]),_0x7963e0);})),new window[(_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x205f31=>{function _0x1f97ca(){for(const _0x25a399 in window)if(window[_0x487f58([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x487f58([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x25a399))&&window[_0x25a399]==_0x335085)return _0x205f31();_0x51fbee[_0x487f58([0x73,0x74,0x61,0x74,0x65])]!=_0x487f58([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x487f58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f97ca,0x4c0fa502^_0x31b0af);}_0x3c27a6(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1f97ca();})];return window[_0x487f58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x487f58([0x72,0x61,0x63,0x65])](_0x4f9620)[_0x487f58([0x74,0x68,0x65,0x6e])](()=>_0x19373e);}async function _0x4ccc2d(){if(await _0x5b3334,_0x3c27a6(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x271479=_0x59dd84[_0x487f58([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2d8085=_0x59dd84[_0x487f58([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])](_0x271479[_0x487f58([0x69,0x64])]),_0xdfb975=_0x3eac19(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0xdfb975[_0x487f58([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x271479['id'],_0x2d8085?_0x2d8085['id']:null,!0x0),_0xdfb975[_0x487f58([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x487f58([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xdfb975[_0x487f58([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xdfb975[_0x487f58([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x342e1a,void(_0xdfb975[_0x487f58([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x342e1a);}if(_0x3c27a6(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3264ae=_0x3eac19(_0x487f58([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3264ae[_0x487f58([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x487f58([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3264ae[_0x487f58([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3264ae[_0x487f58([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x342e1a,_0x3264ae[_0x487f58([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x342e1a;}_0x51fbee[_0x487f58([0x6d,0x6f,0x64,0x65,0x6c])][_0x487f58([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x342e1a,_0x51fbee[_0x487f58([0x6d,0x6f,0x64,0x65,0x6c])][_0x487f58([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x342e1a,_0x51fbee[_0x487f58([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x487f58([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f2b02(){return _0x3c27a6(_0x487f58([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3eac19(_0x487f58([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x487f58([0x73,0x74,0x61,0x74,0x65])]==_0x487f58([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4b119b(){return _0x3c27a6(_0x487f58([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 _0x8677e6(){return _0x3c27a6(_0x487f58([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xc374e2(_0x5d7066){const _0xe58080=_0x19589d();_0x51fbee[_0xe58080]=_0x487f58([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])+_0x5d7066,_0x5d7066[_0x487f58([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x487f58([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x19589d()]=_0x335085),_0x5d7066!=_0x487f58([0x56,0x61,0x6c,0x69,0x64])&&_0x4ccc2d();}function _0x19589d(){const _0x504fcb=window[_0x487f58([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x487f58([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x487f58([0x6e,0x6f,0x77])]())[_0x487f58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x487f58([0x2e]),'');let _0x27e776=_0x487f58([0x46]);for(let _0x26ff6d=0x0;_0x26ff6d<_0x504fcb[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26ff6d+=0x2){let _0x4595d4=window[_0x487f58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x504fcb[_0x487f58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26ff6d,_0x26ff6d+0x2));_0x4595d4>=_0x4de718[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4595d4-=_0x4de718[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27e776+=_0x4de718[_0x4595d4];}return _0x27e776;}function _0x3db6ad(){const _0x5a15f3=_0x295fe1[_0x487f58([0x73,0x70,0x6c,0x69,0x74])](_0x487f58([0x2e]));if(0x3!=_0x5a15f3[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19421a(_0x5a15f3[0x1]);function _0x19421a(_0x5b920e){const _0x2794bc=_0x7c26b2(_0x5b920e);return _0x2794bc&&_0x3bdf22()?_0x2794bc:null;function _0x3bdf22(){const _0x17fa1a=_0x2794bc[_0x487f58([0x6a,0x74,0x69])],_0x252126=window[_0x487f58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17fa1a[_0x487f58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17fa1a[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfca42={..._0x2794bc,[_0x487f58([0x6a,0x74,0x69])]:_0x17fa1a[_0x487f58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17fa1a[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfca42[_0x487f58([0x76,0x63])],_0x405396(_0xfca42)==_0x252126;}}}async function _0x4b8b3b(){let _0x813bac=!0x0;try{const _0x126d42=_0x295fe1[_0x487f58([0x73,0x70,0x6c,0x69,0x74])](_0x487f58([0x2e])),[_0xb7e05f,_0x3bc888,_0x1efbe9]=_0x126d42;return _0x3996da(_0xb7e05f),await _0x5a37c6(_0xb7e05f,_0x3bc888,_0x1efbe9),_0x813bac;}catch(_0x11d82f){return!0x1;}function _0x3996da(_0x5aa83f){const _0xb5a444=_0x7c26b2(_0x5aa83f);_0xb5a444&&_0xb5a444[_0x487f58([0x61,0x6c,0x67])]==_0x487f58([0x45,0x53,0x32,0x35,0x36])||(_0x813bac=!0x1);}async function _0x5a37c6(_0x2f4ed2,_0x3849de,_0x16f8ba){const _0x55d419=window[_0x487f58([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x487f58([0x66,0x72,0x6f,0x6d])](_0x2c23e4(_0x16f8ba),_0x7fe94a=>_0x7fe94a[_0x487f58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4add9a=new window[(_0x487f58([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x487f58([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f4ed2+_0x487f58([0x2e])+_0x3849de),_0x342983=window[_0x487f58([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x487f58([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x342983)return;const _0x44ec35=await _0x342983[_0x487f58([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x487f58([0x6a,0x77,0x6b]),_0x58eb01,{[_0x487f58([0x6e,0x61,0x6d,0x65])]:_0x487f58([0x45,0x43,0x44,0x53,0x41]),[_0x487f58([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x487f58([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x487f58([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x342983[_0x487f58([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x487f58([0x6e,0x61,0x6d,0x65])]:_0x487f58([0x45,0x43,0x44,0x53,0x41]),[_0x487f58([0x68,0x61,0x73,0x68])]:{[_0x487f58([0x6e,0x61,0x6d,0x65])]:_0x487f58([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44ec35,_0x55d419,_0x4add9a)||(_0x813bac=!0x1);}}function _0x7c26b2(_0x5a322d){return _0x5a322d[_0x487f58([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x487f58([0x65,0x79]))?JSON[_0x487f58([0x70,0x61,0x72,0x73,0x65])](_0x2c23e4(_0x5a322d)):null;}function _0x2c23e4(_0x19f32a){return window[_0x487f58([0x61,0x74,0x6f,0x62])](_0x19f32a[_0x487f58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x487f58([0x2b]))[_0x487f58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x487f58([0x2f])));}function _0x405396(_0x53e3b6){let _0xa59d5c=0x1505;function _0x4ad1ad(_0x8d26dc){for(let _0x3f30f6=0x0;_0x3f30f6<_0x8d26dc[_0x487f58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f30f6++){const _0x3ce6f=_0x8d26dc[_0x487f58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f30f6);_0xa59d5c=(_0xa59d5c<<0x5)+_0xa59d5c+_0x3ce6f,_0xa59d5c&=_0xa59d5c;}}function _0x1c3f88(_0x4631e5){Array[_0x487f58([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4631e5)?_0x4631e5[_0x487f58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c3f88):_0x4631e5&&typeof _0x4631e5==_0x487f58([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x487f58([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4631e5)[_0x487f58([0x73,0x6f,0x72,0x74])]()[_0x487f58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c12f4,_0x589ae4])=>{_0x4ad1ad(_0x3c12f4),_0x1c3f88(_0x589ae4);}):_0x4ad1ad(window[_0x487f58([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4631e5));}return _0x1c3f88(_0x53e3b6),_0xa59d5c>>>0x0;}function _0x5a4265(_0x34bb6f){return _0x34bb6f[_0x487f58([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x487f58([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x487f58([0x30]));}function _0x49cde1(_0x6beea){return _0x6beea[_0x487f58([0x73,0x70,0x6c,0x69,0x74])]('')[_0x487f58([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x487f58([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c27a6(_0x3967b3){return _0x51fbee[_0x487f58([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x487f58([0x68,0x61,0x73])](_0x3967b3);}function _0x3eac19(_0x2c2ac9){return _0x51fbee[_0x487f58([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x487f58([0x67,0x65,0x74])](_0x2c2ac9);}function _0x342e1a(){}function _0x487f58(_0x15f027){return _0x15f027['map'](_0x24400d=>String['fromCharCode'](_0x24400d))['join']('');}_0xc374e2(await _0x1bc1ed());}(this);}['createRevision'](_0x4e6978){const _0x3de183=this['editor']['plugins']['get']('Users');return new h({'id':_0x4e6978['id'],'name':_0x4e6978['name'],'creator':_0x4e6978['creatorId']?_0x3de183['getUser'](_0x4e6978['creatorId']):null,'diffData':_0x4e6978['diffData']||_0x4e6978['data'],'authors':_0x4e6978['authorsIds']['map'](_0x2d852c=>_0x3de183['getUser'](_0x2d852c)),'createdAt':new Date(_0x4e6978['createdAt']),'attributes':_0x4e6978['attributes'],'fromVersion':_0x4e6978['fromVersion'],'toVersion':_0x4e6978['toVersion']});}['addRevision'](_0x11cde3,_0x10a8ee=0x0){this['_revisions']['add'](_0x11cde3,_0x10a8ee);}['getRevision'](_0x592202){return this['_revisions']['get'](_0x592202);}['getRevisions'](_0x4cf504={'toJSON':!0x1}){const _0x261d45=Array['from'](this['_revisions']);return _0x261d45['reverse'](),_0x4cf504['toJSON']?_0x261d45['map'](_0xbfcdad=>_0xbfcdad['toJSON']()):_0x261d45;}['getIndex'](_0x254c77){return this['_revisions']['getIndex'](_0x254c77);}['getEarlierVisibleRevision'](_0x3a202a){const [,_0x370194]=this['getRevisionsIterator'](_0x3a202a,{'direction':'earlier'});return _0x370194;}['getLaterVisibleRevision'](_0x6bcfe3){const [,_0x368bcb]=this['getRevisionsIterator'](_0x6bcfe3,{'direction':'later'});return _0x368bcb;}['getRevisionsInDiff'](_0x4c897d){const _0x2715c2=[];for(const _0x393a4f of this['getRevisionsIterator'](_0x4c897d['newRevisionId']))if(_0x2715c2['push'](_0x393a4f),_0x393a4f['id']===_0x4c897d['oldRevisionId'])break;return _0x2715c2;}*['getRevisionsIterator'](_0x42c6f3,{direction:_0x3c20c2='earlier',filter:_0x4e2c03=()=>!0x0}={}){const _0x3f77f1='earlier'===_0x3c20c2?0x1:-0x1;let _0x336b7f=this['_revisions']['get'](_0x42c6f3),_0x116389=this['getIndex'](_0x336b7f);for(yield _0x336b7f;_0x336b7f;){if(_0x116389+=_0x3f77f1,_0x336b7f=this['getRevision'](_0x116389),!_0x336b7f)return;_0x4e2c03(_0x336b7f)&&(yield _0x336b7f);}}}class V extends _0x34d9d9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x218692,'c'],[_0x4d26f,'a'],[_0x481677,'e'],[_0x5e1304,'r'],[_0x5bfdda,'u']]);['_typeCharToViewClass']=new Map([['c',_0x218692],['a',_0x4d26f],['e',_0x481677],['r',_0x5e1304],['u',_0x5bfdda]]);async['loadRevisionData'](_0x1cc50f,_0x10af1e){if(_0x1cc50f['diffData']||!_0x10af1e)return;const _0x474b20=this['editor']['config']['get']('collaboration.channelId'),_0x109960=await _0x10af1e['getRevision']({'channelId':_0x474b20,'revisionId':_0x1cc50f['id']});_0x1cc50f['diffData']=_0x109960['diffData'];}['getRevisionDocumentData'](_0x117583){const _0x5a30e6={};for(const _0x1c6d6e in _0x117583['diffData']){if(_0x117583['diffData'][_0x1c6d6e]['attachChange']&&!_0x117583['diffData'][_0x1c6d6e]['attachChange']['isAttached'])continue;const _0x23b5dc=this['_removeRevisionMarkers'](JSON['parse'](_0x117583['diffData'][_0x1c6d6e]['insertions'])),_0x27c1ca=this['editor']['editing']['view']['document'],_0x29455d=new _0x4b5547(_0x27c1ca,_0x23b5dc['map'](_0x1dcc13=>this['_getViewFromDiffObj'](_0x1dcc13,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5a30e6[_0x1c6d6e]=this['editor']['data']['processor']['toData'](_0x29455d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5a30e6;}['getRevisionRootsAttributes'](_0x251cea){const _0x286cdd={};for(const _0x19cbd2 in _0x251cea['diffData'])_0x251cea['diffData'][_0x19cbd2]['attachChange']&&!_0x251cea['diffData'][_0x19cbd2]['attachChange']['isAttached']||(_0x286cdd[_0x19cbd2]=_0x251cea['diffData'][_0x19cbd2]['attributesAfter']||{});return _0x286cdd;}['_getTypeCharForViewElement'](_0x3ee43d){return this['_viewClassToTypeChar']['get'](_0x3ee43d['constructor']);}['_getViewFromDiffObj'](_0x52cbf5,_0x48b62b){const _0x517ff7=this['editor']['editing']['view']['document'];if('string'==typeof _0x52cbf5)return new _0x3cf18d(_0x517ff7,_0x52cbf5);{let _0x477c08,_0x5177f3;_0x5177f3='u'==_0x52cbf5['type']||'r'==_0x52cbf5['type']?[]:_0x52cbf5['children']['map'](_0x237e1f=>this['_getViewFromDiffObj'](_0x237e1f,_0x48b62b));const _0x45f92b=this['_typeCharToViewClass']['get'](_0x52cbf5['type'])||_0x2a4b9c,_0x2176cd=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x477c08=new _0x45f92b(_0x517ff7,_0x52cbf5['name'],_0x52cbf5['attributes'],_0x5177f3),'u'==_0x52cbf5['type']){const _0x32b44e=_0x52cbf5['children'][0x0];if(_0x477c08['render']=function(_0x3c5753){const _0x1ac100=_0x3c5753['createElement']('div');return _0x1ac100['innerHTML']=_0x32b44e,_0x1ac100['childNodes'][0x0];},_0x48b62b){const _0x567d5f=new _0x4b5547(_0x517ff7);_0x567d5f['_appendChild'](_0x477c08);const _0x477dbd=Array['from'](_0x2176cd['viewChildrenToDom'](_0x567d5f,{'bind':!0x1})),_0x597a10=_0x2176cd['domDocument']['createElement']('div');_0x597a10['append'](..._0x477dbd),_0x477c08=Array['from'](_0x2176cd['domChildrenToView'](_0x597a10))[0x0];}}else{if('r'==_0x52cbf5['type']){const _0x18de5a=_0x52cbf5['children'][0x0];if(_0x477c08['render']=function(_0x491362){_0x491362['innerHTML']=_0x18de5a;},_0x48b62b){const _0x41854c=new _0x4b5547(_0x517ff7);_0x41854c['_appendChild'](_0x477c08);const _0x5e817e=Array['from'](_0x2176cd['viewChildrenToDom'](_0x41854c,{'bind':!0x1})),_0x1a6928=_0x2176cd['domDocument']['createElement']('div');_0x1a6928['append'](..._0x5e817e);const _0x9b557d=Array['from'](_0x2176cd['domChildrenToView'](_0x1a6928));_0x9b557d['length']>0x1?_0x477c08['_appendChild'](_0x9b557d):_0x477c08=_0x9b557d[0x0];}}}if(_0x52cbf5['customProperties']){for(const [_0x1f41b2,_0x3fee4a]of _0x52cbf5['customProperties'])_0x477c08['_setCustomProperty'](_0x1f41b2,_0x3fee4a);}const _0x3875bf=_0x52cbf5['fillerOffset']||null;return _0x477c08['getFillerOffset']=()=>_0x3875bf,_0x477c08;}}['_makeModelFromViewString'](_0x4086e6){const _0x2d84f3=JSON['parse'](_0x4086e6),_0x1d6c7b=this['editor']['editing']['view']['document'],_0x1ba726=new _0x4b5547(_0x1d6c7b,_0x2d84f3['map'](_0x478436=>this['_getViewFromDiffObj'](_0x478436,!0x0)));return this['editor']['data']['toModel'](_0x1ba726);}['_removeRevisionMarkers'](_0x518a74){return(_0x518a74=_0x518a74['filter'](_0x22918b=>!_0x22918b['name']||'revision-start'!==_0x22918b['name']&&'revision-end'!==_0x22918b['name']))['forEach'](_0x3b5474=>{'string'!=typeof _0x3b5474&&(_0x3b5474['children']=this['_removeRevisionMarkers'](_0x3b5474['children']),_0x3b5474['attributes']=_0x3b5474['attributes']['filter'](_0x4bc5ca=>!_0x4bc5ca[0x0]['startsWith']('data-revision-')));}),_0x518a74;}}function g(_0x3b5f6e,_0x264e80,_0x234fa3){const t=_0x3b5f6e['t'];switch(_0x264e80){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'},_0x234fa3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x234fa3);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 u extends _0x34d9d9{['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[_0x3ff113,I,V,_0x2967a6];}constructor(_0x1829a4){super(_0x1829a4),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 _0x3efe62=_0x521db4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3efe62},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 _0x1436a5=this['repository']['getRevision'](0x0),_0xf01047=_0x1436a5&&null===_0x1436a5['creator']?_0x1436a5:null;if(this['_continueCurrentRevision']=!!_0xf01047&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x18540b=this['_source']['getCurrentRevisionId'](),_0x5b172=this['repository']['getRevision'](_0x18540b);if(_0x5b172)this['_startingVersion']=_0x5b172['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x37e6ac=this['_source']['history']['_operations']['find'](_0x11e0b2=>!_0x11e0b2['_isInit']),_0x3211aa=_0x37e6ac?_0x37e6ac['baseVersion']:this['_source']['history']['version'];_0x1436a5?(_0x1436a5['toVersion']<_0x3211aa&&_0x1436a5['_update']({'toVersion':_0x3211aa}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xf01047['id'],this['_startingVersion']=_0xf01047['fromVersion']):(this['_startingVersion']=_0x1436a5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3211aa,this['_continueCurrentRevision']=!0x1);}}else _0xf01047&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xf01047['toVersion'],this['editor']['model']['document']['history']['version']),_0xf01047['fromVersion']===_0xf01047['toVersion']?(0x0!==_0xf01047['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xf01047['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xf01047['id'],this['_startingVersion']=_0xf01047['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',_0x2b8c67=>!_0x2b8c67),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5f0fbf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x314afc;for(const _0xb40c5f in _0x5f0fbf){const _0x21d245=_0xb40c5f,_0xd825aa=_0x5f0fbf[_0x21d245];if('revisionHistoryLicenseKeyValid'==_0xd825aa||'revisionHistoryLicenseKeyInvalid'==_0xd825aa||'revisionHistoryLicenseKeyExpired'==_0xd825aa||'revisionHistoryLicenseKeyDomainLimit'==_0xd825aa||'revisionHistoryLicenseKeyNotAllowed'==_0xd825aa||'revisionHistoryLicenseKeyEvaluationLimit'==_0xd825aa||'revisionHistoryLicenseKeyTrialLimit'==_0xd825aa||'revisionHistoryLicenseKeyUsageLimit'==_0xd825aa){delete _0x5f0fbf[_0x21d245],_0x314afc=_0xd825aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x314afc&&_0x5f0fbf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x314afc&&_0x5f0fbf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x314afc&&_0x5f0fbf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x314afc&&_0x5f0fbf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x314afc&&_0x5f0fbf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x314afc&&_0x5f0fbf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x314afc&&_0x5f0fbf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4d25b3=this['repository']['getRevision'](0x0),_0x226a15=await this['getRevisionDocumentData'](_0x4d25b3),_0x22e3bf=await this['getRevisionRootsAttributes'](_0x4d25b3);this['_replaceEditorDataWithRevisionData'](_0x226a15,_0x22e3bf);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x55ec61){this['_source']=_0x55ec61;}async['update'](){const _0x3f6c56=await this['_source']['getLatestVersion']();if(_0x3f6c56>this['currentRevision']['toVersion']){await this['_loadState']();const _0x15e0ed=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3f6c56});_0x15e0ed['authors']=_0x15e0ed['authorsIds']['map'](_0x58ce5f=>this['editor']['plugins']['get']('Users')['getUser'](_0x58ce5f)),this['currentRevision']['_update'](_0x15e0ed);}}async['saveRevision'](_0x59529d={},_0x5a7cf9=null){const _0x3f551e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5a7cf9>this['currentRevision']['toVersion']&&(_0x5a7cf9=null),null===_0x5a7cf9&&(_0x5a7cf9=await this['_source']['getLatestVersion']());const _0x6855c9=this['_getFromVersion'](_0x5a7cf9),_0x41ceff=this['buildRevisionData']({'from':_0x6855c9,'to':_0x5a7cf9});if(this['currentRevision']['toVersion']<_0x5a7cf9){const _0x2c95ee=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5a7cf9,'to':_0x5a7cf9});_0x2c95ee['authors']=[],_0x2c95ee['authorsIds']=[],_0x2c95ee['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2c95ee,!0x0),delete _0x2c95ee['authors'],_0x3f551e['push'](_0x2c95ee);}_0x59529d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x59529d['name']=_0x59529d['name']||null,_0x59529d['id']=_0x59529d['id']||_0x521db4(),_0x59529d={..._0x59529d,..._0x41ceff};const _0x447b0d=this['addRevisionData'](_0x59529d);_0x3f551e['push'](_0x59529d);const _0x285e5b=this['repository']['getIndex'](_0x447b0d);if(0x0!==_0x285e5b){const _0x25a9f4=this['repository']['getRevision'](_0x285e5b-0x1);if(_0x25a9f4['fromVersion']!==_0x5a7cf9){const _0xd57de6=this['_revisionDataBuilder']['getData'](_0x5a7cf9,_0x25a9f4['toVersion']),_0x3bbda1={'id':_0x25a9f4['id'],'diffData':_0xd57de6['diffData'],'authorsIds':_0xd57de6['authorsIds'],'authors':_0xd57de6['authorsIds']['map'](_0x4e269a=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e269a)),'fromVersion':_0x5a7cf9};_0x25a9f4===this['currentRevision']&&(_0x3bbda1['createdAt']=new Date(_0x59529d['createdAt']['getTime']()+0xa)),_0x25a9f4['_update'](_0x3bbda1,!0x0),delete _0x3bbda1['authors'],_0x3f551e['push'](_0x3bbda1);}}if(this['adapter']){for(const _0x1f688a of _0x3f551e)this['_bufferUpdate'](_0x1f688a['id'],_0x1f688a,!0x0);this['sendBufferedUpdates']();}return _0x447b0d;}['addRevisionData'](_0x2d3cf0){const _0x3b7209=this['repository']['createRevision'](_0x2d3cf0);return this['adapter']&&_0x3b7209['on']('_update',(_0xa1a37d,_0x57bc9c,_0x2378e7)=>{_0x2378e7||(this['_bufferUpdate'](_0x57bc9c['id'],_0x57bc9c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3b7209,this['_findInsertionIndex'](_0x3b7209)),_0x3b7209;}async['getRevisionDocumentData'](_0xf189e9){return await this['_utils']['loadRevisionData'](_0xf189e9,this['adapter']),this['_utils']['getRevisionDocumentData'](_0xf189e9);}async['getRevisionRootsAttributes'](_0x565207){return await this['_utils']['loadRevisionData'](_0x565207,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x565207);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x14ed6d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x391690=0x0;_0x391690<_0x14ed6d['length'];_0x391690++){const _0x21ccc2=_0x14ed6d[_0x391690];let _0x23c200=!0x1;for(const _0x503b21 of Object['keys'](_0x21ccc2))void 0x0===_0x21ccc2[_0x503b21]?delete _0x21ccc2[_0x503b21]:'id'!==_0x503b21&&(_0x23c200=!0x0);_0x23c200||(_0x14ed6d[_0x391690]=null);}if(_0x14ed6d=_0x14ed6d['filter'](_0x372ee0=>null!==_0x372ee0),!_0x14ed6d['length'])return;for(let _0x3ea904=0x0;_0x3ea904<_0x14ed6d['length'];_0x3ea904++){const _0x33056d=_0x14ed6d[_0x3ea904];void 0x0!==_0x33056d['fromVersion']&&void 0x0===_0x33056d['toVersion']&&(_0x33056d['toVersion']=this['repository']['getRevision'](_0x33056d['id'])['toVersion']),void 0x0!==_0x33056d['toVersion']&&void 0x0===_0x33056d['fromVersion']&&(_0x33056d['fromVersion']=this['repository']['getRevision'](_0x33056d['id'])['fromVersion']);}const _0x369899=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x14ed6d,_0x369899)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1f1f92=>{if(_0x1f1f92){for(const _0x55d4a3 of _0x1f1f92)this['setRevisionData']({'id':_0x55d4a3['id'],'createdAt':_0x55d4a3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x30ba3=null,from:_0x540f07=null,to:_0x57a717=null}){_0x540f07=null!==_0x540f07?_0x540f07:_0x30ba3['fromVersion'],_0x57a717=null!==_0x57a717?_0x57a717:_0x30ba3['toVersion'];const _0x42e3ca=this['_revisionDataBuilder']['getData'](_0x540f07,_0x57a717),_0x26d8a7={'diffData':_0x42e3ca['diffData'],'authorsIds':_0x42e3ca['authorsIds'],'fromVersion':_0x540f07,'toVersion':_0x57a717};if(!_0x30ba3||_0x57a717!==_0x30ba3['toVersion']){const _0x4fe431=_0x57a717-0x1,_0x194513=this['_source']['history']['getOperation'](_0x4fe431);_0x26d8a7['createdAt']=_0x194513&&_0x194513['createdAt']||new Date();}if(this['_loadedStateData']&&_0x540f07===this['_loadedStateData']['fromVersion']){for(const _0x1fdda1 of this['_loadedStateData']['authors'])_0x26d8a7['authorsIds']['includes'](_0x1fdda1['id'])||_0x26d8a7['authorsIds']['push'](_0x1fdda1['id']);}return _0x26d8a7;}['_bufferUpdate'](_0x17b3de,_0x58a267,_0x57353c){if(this['_bufferedUpdates']['has'](_0x17b3de)){const _0x2f57cc=this['_bufferedUpdates']['get'](_0x17b3de);_0x58a267=_0x57353c?{..._0x2f57cc,..._0x58a267}:{..._0x58a267,..._0x2f57cc};}this['_bufferedUpdates']['set'](_0x17b3de,_0x58a267);}['setRevisionData'](_0x21b4ed){const _0x554898=this['repository']['getRevision'](_0x21b4ed['id']);if(_0x21b4ed['createdAt']&&(_0x21b4ed['createdAt']=new Date(_0x21b4ed['createdAt'])),_0x21b4ed['authorsIds']){const _0x4c2f2b=this['editor']['plugins']['get']('Users');_0x21b4ed['authors']=_0x21b4ed['authorsIds']['map'](_0x3f2236=>_0x4c2f2b['getUser'](_0x3f2236));}_0x554898['_update'](_0x21b4ed,!0x0);}['_createInitialRevision'](_0x2535fc){const _0x11fb6a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x11fb6a)this['_initialRevisionId']=_0x11fb6a['id'];else{const _0x3e13f5=!this['editor']['model']['document']['roots']['find'](_0x50d380=>this['editor']['model']['hasContent'](_0x50d380)),_0x201aaa=this['editor']['plugins']['get']('Users')['me']['id'],_0x16415f=g(this['editor']['locale'],_0x3e13f5?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2535fc,'to':_0x2535fc,'id':this['_initialRevisionId'],'name':_0x16415f,'creatorId':_0x201aaa});}}['_createCurrentRevision'](_0x2a3b57){const _0x2d57e2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2d57e2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2a3b57,'to':_0x2a3b57,'id':_0x2d57e2,'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'](_0x485aa4,_0x31e3ae){let _0x204623=this['editor']['config']['get']('initialData'),_0x1534b8=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x204623){_0x204623={};for(const _0x3d0827 of this['editor']['model']['document']['getRootNames']())_0x204623[_0x3d0827]='';}if('string'==typeof _0x204623&&(_0x204623={'main':_0x204623}),void 0x0===_0x1534b8){_0x1534b8={};for(const _0x123a7f of this['editor']['model']['document']['getRootNames']())_0x1534b8[_0x123a7f]={};}let _0x10a546=!0x1;const _0xaa4023=Object['keys'](_0x204623),_0x176871=Object['keys'](_0x485aa4);for(const _0x807301 of _0xaa4023){if(_0x204623[_0x807301]!==_0x485aa4[_0x807301]&&''!==_0x204623[_0x807301]['trim']()){_0x10a546=!0x0;break;}if(!_0x3d0bbf(_0x1534b8[_0x807301],_0x31e3ae[_0x807301])&&Object['keys'](_0x1534b8[_0x807301])['length']>0x0){_0x10a546=!0x0;break;}}_0x10a546||(_0x10a546=_0x176871['some'](_0x292b66=>!this['editor']['model']['document']['getRoot'](_0x292b66))),_0x10a546&&_0x1e5f64('editor-initial-data-replaced-with-revision-data',{'editorData':_0x204623,'editorRootsAttributes':_0x1534b8,'revisionData':_0x485aa4,'revisionRootsAttributes':_0x31e3ae}),this['editor']['config']['set']('initialData',_0x485aa4),this['editor']['config']['set']('rootsAttributes',_0x31e3ae);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24315a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24315a['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3f5aeb){const _0x59fb18=this['repository']['getRevisions']();_0x59fb18['reverse']();let _0x3f3c2f=0x0;for(;_0x3f3c2f<_0x59fb18['length'];){const _0x5c6556=_0x59fb18[_0x3f3c2f];if(_0x5c6556===this['currentRevision']){_0x3f3c2f++;continue;}if(_0x5c6556['id']===this['_initialRevisionId'])break;const _0x1d3a82=_0x3f5aeb['toVersion']-_0x5c6556['toVersion']||_0x3f5aeb['fromVersion']-_0x5c6556['fromVersion'];if(_0x1d3a82>0x0)break;if(_0x1d3a82<0x0)_0x3f3c2f++;else{if(!_0x3f5aeb['creator']&&_0x5c6556['creator'])break;if(_0x5c6556['creator']||!_0x3f5aeb['creator']){if(_0x3f5aeb['createdAt']>_0x5c6556['createdAt'])break;_0x3f3c2f++;}else _0x3f3c2f++;}}return _0x3f3c2f;}['_getFromVersion'](_0xbfcc79){const _0x3d6ff5=this['repository']['getRevisions']();_0x3d6ff5['reverse'](),_0x3d6ff5['shift']();const _0x4f6e05=_0x3d6ff5['find'](_0x183744=>_0x183744['toVersion']<=_0xbfcc79)['toVersion'];return _0x4f6e05<this['_startingVersion']?this['_startingVersion']:_0x4f6e05;}['_makeRevision']({name:_0x22bf13,from:_0x24e897,to:_0x3c383c,creatorId:_0x9ada22,id:_0x250029}){const _0x30dc1b=this['buildRevisionData']({'from':_0x24e897,'to':_0x3c383c});_0x30dc1b['name']=_0x22bf13,_0x30dc1b['creatorId']=_0x9ada22,_0x30dc1b['id']=_0x250029;const _0x5e42cc=this['addRevisionData'](_0x30dc1b);return this['adapter']&&this['_bufferUpdate'](_0x30dc1b['id'],_0x30dc1b,!0x0),_0x5e42cc;}['_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(_0x7423cb){this['editor']=_0x7423cb,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'](_0x583f24){this['source']=_0x583f24;const _0x42cb0e=new Map(),_0x15db2e=new Map(),_0x38f278=this['editor']['model']['document']['roots']['map'](_0x4e3d75=>_0x4e3d75['rootName']);for(const _0x1d5fae of _0x38f278){const _0x3a61ef=this['editor']['model']['document']['getRoot'](_0x1d5fae),_0x4601da=N(_0x3a61ef);_0x42cb0e['set'](_0x1d5fae,_0x4601da),_0x15db2e['set'](_0x1d5fae,Object['fromEntries'](_0x3a61ef['getAttributes']()));}const _0x1862e4=Array['from'](this['editor']['model']['markers'])['map'](_0x5d811f=>[_0x5d811f['name'],_0x5d811f['getRange']()]),_0x460785=this['source']['version'];this['_saveMetaData'](_0x460785,_0x42cb0e,_0x1862e4,_0x15db2e),this['_startingRevisionId']=this['_revisionId'];const _0x3e77dd=new Map(),_0x5e29ca=new Map();for(const _0x578ec3 of _0x38f278){const _0x25545c=P(_0x578ec3);_0x3e77dd['set'](_0x578ec3,_0x25545c),_0x5e29ca['set'](_0x578ec3,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3e77dd,[],_0x5e29ca);}['getData'](_0x5e674f,_0x18dc4e){if(this['_lastFrom']===_0x5e674f&&this['_lastTo']<=_0x18dc4e)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x18dc4e,!0x0);else{if(!this['_savedMetaData']['has'](_0x5e674f)){const _0x200e25=this['_getPreviousFrom'](_0x5e674f);this['_calculateMetaData'](_0x200e25,_0x5e674f,!0x1);}this['_calculateMetaData'](_0x5e674f,_0x18dc4e,!0x0);}return this['_lastFrom']=_0x5e674f,this['_lastTo']=_0x18dc4e,this['_getState']();}['loadState'](_0x407c4b){const _0x7730f7=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x407c4b['fromVersion'],this['_lastTo']=_0x407c4b['toVersion'];for(const _0x3d31d7 in _0x407c4b['diffData']){const _0x325625=_0x407c4b['diffData'][_0x3d31d7]['attachChange'],_0x5a1cf5=_0x117a5a(_0x407c4b['diffData'][_0x3d31d7]['attributesBefore'])||{},_0x2d8d88=_0x7730f7['_makeModelFromViewString'](_0x407c4b['diffData'][_0x3d31d7]['deletions']);_0x2d8d88['rootName']=_0x3d31d7,_0x2d8d88['_isAttached']=!_0x325625||!_0x325625['isAttached'],_0x2d8d88['isAttached']=()=>_0x2d8d88['_isAttached'],this['_baseRoots']['set'](_0x3d31d7,_0x2d8d88),this['_baseRootsAttributes']['set'](_0x3d31d7,_0x5a1cf5),_0x325625&&this['_touchedRoots']['set'](_0x3d31d7,_0x325625);const _0x416e87=this['_makeIdsRoot'](_0x2d8d88);this['_baseIdsRoots']['set'](_0x3d31d7,_0x416e87);for(const [_0x442319,_0x5cbcf6]of _0x2d8d88['markers']){if(!_0x442319['startsWith']('revision:'))continue;const _0x1171cb=_0x442319['split'](':')[0x2];for(const _0x4b8128 of _0x5cbcf6['getWalker']({'singleCharacters':!0x0})){const _0x5f0394=this['_getVidAttributeName'](_0x4b8128),_0x19643d='elementEnd'==_0x4b8128['type']?_0x4b8128['previousPosition']['path']['slice'](0x0,-0x1):_0x4b8128['previousPosition']['path'],_0x239627=_0x416e87['getNodeByPath'](_0x19643d)['getAttribute'](_0x5f0394);this['_touched']['set'](_0x239627,{'userId':_0x1171cb});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4df7e8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3a7830=>!this['_touched']['has'](_0x3a7830));let _0x5d801d=0x0;const _0xddc6d7=new Map();for(const _0x32d57f in _0x407c4b['diffData']){const _0x48dd83=_0x407c4b['diffData'][_0x32d57f]['attachChange'],_0x44ab6b=_0x117a5a(_0x407c4b['diffData'][_0x32d57f]['attributesAfter'])||{},_0x32eb06=_0x7730f7['_makeModelFromViewString'](_0x407c4b['diffData'][_0x32d57f]['insertions']);_0x32eb06['rootName']=_0x32d57f,_0x32eb06['_isAttached']=!_0x48dd83||_0x48dd83['isAttached'],_0x32eb06['isAttached']=()=>_0x32eb06['_isAttached'],this['_diffRoots']['set'](_0x32d57f,_0x32eb06),this['_diffRootsAttributes']['set'](_0x32d57f,_0x44ab6b);const _0xdcc458=this['_makeIdsRoot'](_0x32eb06,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x32d57f,_0xdcc458),_0xddc6d7['set'](_0x32d57f,_0x32eb06['isAttached']()?_0x44ab6b:{});for(const [_0x3028a6,_0x3428db]of _0x32eb06['markers']){if(!_0x3028a6['startsWith']('revision:'))continue;const _0x2863b4=_0x3028a6['split'](':')[0x2];for(const _0x1dc39e of _0x3428db['getWalker']({'singleCharacters':!0x0})){const _0x287b3e=this['_getVidAttributeName'](_0x1dc39e),_0xac8ce6=this['_revisionId']++,_0xa4feb4='elementEnd'==_0x1dc39e['type']?_0x1dc39e['previousPosition']['path']['slice'](0x0,-0x1):_0x1dc39e['previousPosition']['path'];_0xdcc458['getNodeByPath'](_0xa4feb4)['_setAttribute'](_0x287b3e,_0xac8ce6),this['_touched']['set'](_0xac8ce6,{'userId':_0x2863b4});}}for(const _0x53f01b of this['editor']['model']['createRangeIn'](_0x32eb06)['getWalker']({'singleCharacters':!0x0})){const _0x429ab3=this['_getVidAttributeName'](_0x53f01b),_0x32b864='elementEnd'==_0x53f01b['type']?_0x53f01b['previousPosition']['path']['slice'](0x0,-0x1):_0x53f01b['previousPosition']['path'],_0x15687a=_0xdcc458['getNodeByPath'](_0x32b864);_0x15687a['getAttribute'](_0x429ab3)>0x0||_0x15687a['_setAttribute'](_0x429ab3,_0x4df7e8[_0x5d801d++]);}for(const [_0x215e20,_0x26a213]of _0x32eb06['markers'])_0x215e20['startsWith']('revision:')||this['_markers']['set'](_0x215e20,_0x26a213);}const _0x421c07=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x421c07),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x421c07,0x1));const _0x5784bf=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5784bf),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5784bf,0x1));const _0x223d4b=Array['from'](this['_diffRoots'])['map'](([_0x3cdcd6,_0x5efea0])=>[_0x3cdcd6,N(_0x5efea0)]);this['_saveMetaData'](this['_lastTo'],_0x223d4b,this['_markers'],_0xddc6d7);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3a435b,_0x151933,_0x21159d,_0x176be7){const _0x26897=new Map(_0x151933),_0xba6b1a=new Map(_0x117a5a(_0x176be7)),_0x22e845=new Map();for(const [_0x2e9f0b,_0x525563]of _0x21159d)_0x22e845['set'](_0x2e9f0b,{'start':_0x525563['start']['clone'](),'end':_0x525563['end']['clone'](),'rootName':_0x525563['root']['rootName']});this['_savedMetaData']['set'](_0x3a435b,{'roots':_0x26897,'markers':_0x22e845,'rootsAttributes':_0xba6b1a});}['_removeMetaData'](_0x3deeab){this['_savedMetaData']['delete'](_0x3deeab);}['_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'](_0x477813,_0x513f8f=null){let _0x2c3c55=null;_0x477813['is']('documentFragment')||(_0x2c3c55=new ut(_0x477813['name'],{'vid_start':null===_0x513f8f?this['_revisionId']++:_0x513f8f++}));const _0x581069=[];for(const _0xe86ffb of _0x477813['getChildren']())if(_0xe86ffb['is']('element')){_0x581069['push'](this['_makeIdsRoot'](_0xe86ffb,_0x513f8f));const _0x2fdd38=_0x581069[_0x581069['length']-0x1];null!==_0x513f8f&&(_0x513f8f=_0x2fdd38['is']('element','$text')?_0x2fdd38['getAttribute']('vid')+0x1:_0x2fdd38['getAttribute']('vid_end')+0x1);}else{for(let _0x50da20=0x0;_0x50da20<_0xe86ffb['offsetSize'];_0x50da20++)_0x581069['push'](new ut('$text',{'vid':null===_0x513f8f?this['_revisionId']++:_0x513f8f++}));}if(_0x477813['is']('documentFragment')){const _0x36e757=P(_0x477813['rootName']);return _0x36e757['_insertChild'](0x0,_0x581069),_0x36e757;}return _0x2c3c55['_setAttribute']('vid_end',null===_0x513f8f?this['_revisionId']++:_0x513f8f++),_0x2c3c55['_insertChild'](0x0,_0x581069),_0x2c3c55;}['_calculateMetaData'](_0x531251,_0x2f050e,_0x429cbc){this['_reset']();const {roots:_0x255834,markers:_0x2d4667,rootsAttributes:_0x23c012}=this['_savedMetaData']['get'](_0x531251);this['_baseRoots']=new Map(_0x255834),this['_baseRootsAttributes']=new Map(_0x117a5a(_0x23c012));for(const [_0x1613aa,_0x5d7bd1]of this['_baseRoots'])if('$graveyard'!==_0x1613aa&&(this['_diffRoots']['set'](_0x1613aa,N(_0x5d7bd1)),this['_diffRootsAttributes']=new Map(_0x117a5a(_0x23c012)),_0x429cbc)){const _0x14b6b3=this['_revisionId'];this['_idsRoots']['set'](_0x1613aa,this['_makeIdsRoot'](_0x5d7bd1)),this['_baseIdsRoots']['set'](_0x1613aa,this['_makeIdsRoot'](_0x5d7bd1,_0x14b6b3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x429cbc&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3f591c,_0xafcfa8]of _0x2d4667){const _0x1202f5=this['_baseRoots']['get'](_0xafcfa8['rootName']),_0x348086=this['_diffRoots']['get'](_0xafcfa8['rootName']),_0x427a2a=new ft(this['_fixPosition'](_0xafcfa8['start'],_0x1202f5),this['_fixPosition'](_0xafcfa8['end'],_0x1202f5)),_0x2266c2=this['_fixRange'](_0x427a2a,_0x348086);_0x1202f5['markers']['set'](_0x3f591c,_0x427a2a),this['_markers']['set'](_0x3f591c,_0x2266c2);}this['_applyOperations'](_0x531251,_0x2f050e,_0x429cbc);}['_applyOperations'](_0x27cad1,_0x95c5c6,_0x14c507){for(const _0x2dd84f of this['source']['getOperations'](_0x27cad1,_0x95c5c6))this['_handleOperation'](_0x2dd84f,_0x14c507);for(const _0x264d51 of this['_diffRoots']['values']())_0x264d51['markers']['clear']();for(const [_0x2f1953,_0x282757]of this['_markers']){this['_diffRoots']['get'](_0x282757['root']['rootName'])['markers']['set'](_0x2f1953,_0x282757['clone']());}const _0x3257be=new Map(),_0x166666=new Map();for(const [_0x153ad6,_0x1b7ea4]of this['_diffRoots'])_0x3257be['set'](_0x153ad6,N(_0x1b7ea4)),_0x166666['set'](_0x153ad6,this['_diffRootsAttributes']['get'](_0x153ad6));this['_saveMetaData'](_0x95c5c6,_0x3257be,this['_markers'],_0x166666);}['_getPreviousFrom'](_0x1905a6){const _0x42c3d4=Array['from'](this['_savedMetaData']['keys']());_0x42c3d4['sort']((_0x5e3f20,_0x98b0c1)=>_0x5e3f20-_0x98b0c1),_0x42c3d4['reverse']();for(const _0x32c96c of _0x42c3d4)if(_0x32c96c<_0x1905a6)return _0x32c96c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4fef04,_0x1e48b2){const _0x34316f=Array['from'](_0x1e48b2['markers'])['map'](([_0xfffa0c,_0x55ea84])=>[_0xfffa0c,this['_fixRange'](_0x55ea84,_0x4fef04)]);_0x4fef04['markers']=new Map(_0x34316f);}['_transformMarkers'](_0x4a7ad3){for(const _0xc38c34 of this['_markers']['values']()){const _0x215fc9=_0xc38c34['getTransformedByOperation'](_0x4a7ad3),_0x3a2b0e=ft['_createFromRanges'](_0x215fc9);_0xc38c34['start']=_0x3a2b0e['start'],_0xc38c34['end']=_0x3a2b0e['end'];}}['_handleOperation'](_0x9de4f,_0x1aeb8a){if('addRoot'!=_0x9de4f['type']&&'detachRoot'!=_0x9de4f['type']){if('insert'==_0x9de4f['type']){const _0x4f2e78=_0x9de4f['position']['root']['rootName'];this['_diffRoots']['has'](_0x4f2e78)||(this['_diffRoots']['set'](_0x4f2e78,P(_0x4f2e78,!0x0)),this['_diffRootsAttributes']['set'](_0x4f2e78,{}),_0x1aeb8a&&this['_idsRoots']['set'](_0x4f2e78,P(_0x4f2e78,!0x0)));}else{if('addRootAttribute'==_0x9de4f['type']||'removeRootAttribute'==_0x9de4f['type']||'changeRootAttribute'==_0x9de4f['type'])return void this['_handleRootAttributeOperation'](_0x9de4f);'marker'==_0x9de4f['type']&&this['_handleMarkerOperation'](_0x9de4f);}if('marker'!==_0x9de4f['type']){const _0x4e9226=this['_cloneOperation'](_0x9de4f,this['_diffRoots']);_0x4e9226['_execute'](),this['_transformMarkers'](_0x4e9226);}if(_0x1aeb8a)switch(_0x9de4f['type']){case'insert':this['_handleInsertOperation'](_0x9de4f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x9de4f);break;case'merge':this['_handleMergeOperation'](_0x9de4f);break;case'split':this['_handleSplitOperation'](_0x9de4f);}}else this['_handleRootOperation'](_0x9de4f,_0x1aeb8a);}['_cloneOperation'](_0x3fd578,_0x2b9eed){const _0x3621c2=_0x3fd578['clone']();return _0x3621c2['_authorId']=_0x3fd578['_authorId'],this['_fixOperation'](_0x3621c2,_0x2b9eed),_0x3621c2;}['_getBaseVids'](_0x51a62d){return _0x51a62d['map'](_0x3cb994=>{const _0x2b6591=this['_getVidAttributeName'](_0x3cb994);return Number(_0x3cb994['item']['getAttribute'](_0x2b6591));});}['_generateTape'](_0x49def7,_0x1a6fca){if(_0x49def7['is']('element','$text'))_0x1a6fca['push']({'item':_0x49def7,'type':'text'});else{_0x49def7['is']('element')&&_0x1a6fca['push']({'item':_0x49def7,'type':'elementStart'});for(const _0x64c965 of _0x49def7['getChildren']())this['_generateTape'](_0x64c965,_0x1a6fca);_0x49def7['is']('element')&&_0x1a6fca['push']({'item':_0x49def7,'type':'elementEnd'});}return _0x1a6fca;}['_getState'](){const _0x4a1b61=new Map(this['_touched']),_0x1f361f=new Map(_0x4a1b61),_0xbcf040=new Map(),_0x118618={'insertions':{},'deletions':{}},_0x397a7c={'insertions':{},'deletions':{}},_0x5e97e0=new Map(),_0x4e69c3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4e69c3['delete']('$graveyard');for(const _0x252dd7 of _0x4e69c3){const _0x111dc7=this['_diffRoots']['get'](_0x252dd7)||P(_0x252dd7,!0x1),_0x5a6ba0=this['_baseRoots']['get'](_0x252dd7)||P(_0x252dd7,!0x1);_0x111dc7['isAttached']()||_0x5a6ba0['isAttached']()?(_0x118618['insertions'][_0x252dd7]=N(_0x111dc7),_0x118618['deletions'][_0x252dd7]=N(_0x5a6ba0),this['_copyMarkers'](_0x118618['deletions'][_0x252dd7],_0x5a6ba0),this['_copyMarkers'](_0x118618['insertions'][_0x252dd7],_0x111dc7),_0x397a7c['insertions'][_0x252dd7]=this['_generateTape'](this['_idsRoots']['get'](_0x252dd7),[]),_0x397a7c['deletions'][_0x252dd7]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x252dd7)||P(_0x252dd7,!0x1),[])):_0x4e69c3['delete'](_0x252dd7);}for(const _0x240892 of _0x4e69c3){const _0x25f95e=_0x397a7c['insertions'][_0x240892];for(const _0x2d4ba6 of _0x25f95e){const _0x102713=this['_getVidAttributeName'](_0x2d4ba6),_0x48def5=_0x2d4ba6['item']['getAttribute'](_0x102713);_0x1f361f['delete'](_0x48def5),_0x48def5>=this['_startingRevisionId']&&_0xbcf040['set'](_0x48def5,_0x4a1b61['get'](_0x48def5));}}for(const _0x5aaabb of _0x4e69c3){const _0x268649=_0x397a7c['insertions'][_0x5aaabb],_0x5712fd=this['_getBaseVids'](_0x397a7c['deletions'][_0x5aaabb]);let _0xe249d7=0x0;for(const _0x472d31 of _0x268649){const _0x5d41af=this['_getVidAttributeName'](_0x472d31),_0x43d30e=_0x472d31['item']['getAttribute'](_0x5d41af);if(!_0xbcf040['has'](_0x43d30e)&&!_0x5e97e0['has'](_0x43d30e)){if(_0x1f361f['has'](_0x43d30e))_0xe249d7++;else{if(_0x43d30e!=_0x5712fd[_0xe249d7]){const _0x44ffc2=_0x4a1b61['get'](_0x43d30e)||_0x4a1b61['get'](_0x5712fd[_0xe249d7]);for(;_0x43d30e!=_0x5712fd[_0xe249d7];)_0x1f361f['has'](_0x5712fd[_0xe249d7])||(_0x5e97e0['set'](_0x5712fd[_0xe249d7],_0x44ffc2),_0x4a1b61['set'](_0x5712fd[_0xe249d7],_0x44ffc2)),_0xe249d7++;}_0xe249d7++;}}}}for(const _0x3d1b5f of _0x4e69c3){const _0x455393=_0x397a7c['insertions'][_0x3d1b5f];for(const _0x1371d0 of _0x455393){const _0x747c48=this['_getVidAttributeName'](_0x1371d0),_0x2ef559=_0x1371d0['item']['getAttribute'](_0x747c48);if(_0x5e97e0['has'](_0x2ef559)){const _0x257acf=_0x5e97e0['get'](_0x2ef559);_0x1f361f['has'](_0x2ef559)||_0x1f361f['set'](_0x2ef559,{..._0x257acf}),_0xbcf040['set'](_0x2ef559,{..._0x257acf});}}}for(const _0x50498a of _0x1f361f['keys']())_0x50498a>=this['_startingRevisionId']&&_0x1f361f['delete'](_0x50498a);const _0x14c613=new Map();for(const _0x2e9352 of _0x4e69c3){let _0x2abf08=_0x397a7c['insertions'][_0x2e9352];for(const _0x59a36b of _0x2abf08)if(_0x59a36b['item']['is']('element','tableCell')){const _0x38aab9=this['_getVidAttributeName'](_0x59a36b),_0x38d15e=_0x59a36b['item']['getAttribute'](_0x38aab9);if(_0xbcf040['has'](_0x38d15e)){const _0x2b1d9f=_0x59a36b['item']['parent']['parent']['getAttribute']('vid_start'),_0x1352af=_0x14c613['get'](_0x2b1d9f)||new Set();_0x1352af['add'](_0xbcf040['get'](_0x38d15e)['userId']),_0x14c613['set'](_0x2b1d9f,_0x1352af);}}_0x2abf08=_0x397a7c['deletions'][_0x2e9352];for(const _0x205e05 of _0x2abf08)if(_0x205e05['item']['is']('element','tableCell')){const _0x3ee576=this['_getVidAttributeName'](_0x205e05),_0x402bce=_0x205e05['item']['getAttribute'](_0x3ee576);if(_0x1f361f['has'](_0x402bce)){const _0x43739e=_0x205e05['item']['parent']['parent']['getAttribute']('vid_start'),_0x44c112=_0x14c613['get'](_0x43739e)||new Set();_0x44c112['add'](_0x1f361f['get'](_0x402bce)['userId']),_0x14c613['set'](_0x43739e,_0x44c112);}}for(const _0x4004aa of _0x14c613['keys']())(_0xbcf040['has'](_0x4004aa)||_0x1f361f['has'](_0x4004aa))&&_0x14c613['delete'](_0x4004aa);}for(const _0x1ef3eb of _0x4e69c3){const _0x2b4b82=_0x397a7c['insertions'][_0x1ef3eb];let _0x12f32b=null,_0x1f41ad=null;for(const _0x1a61b3 of _0x2b4b82){const _0x442969=this['_getVidAttributeName'](_0x1a61b3),_0x4f7c23=_0x1a61b3['item']['getAttribute'](_0x442969),_0x2635d3=_0x14c613['get'](_0x4f7c23);_0x2635d3&&'elementStart'==_0x1a61b3['type']&&(_0x12f32b=Array['from'](_0x2635d3)[0x0],_0x1f41ad=_0x1a61b3['item']['getAttribute']('vid_end')),_0x12f32b&&(_0x1f361f['set'](_0x4f7c23,{'userId':_0x12f32b}),_0xbcf040['set'](_0x4f7c23,{'userId':_0x12f32b})),_0x4f7c23==_0x1f41ad&&(_0x12f32b=null,_0x1f41ad=null);}}const _0x568d7f={},_0x266dc2=new Set();for(const _0x4300b1 of _0x4e69c3){const _0x57adec=_0x118618['deletions'][_0x4300b1],_0x3019bc=_0x118618['insertions'][_0x4300b1];for(const {userId:_0x327a3f}of this['_touchedMarkers']['values']())null!==_0x327a3f&&_0x266dc2['add'](_0x327a3f);for(const {userId:_0x3a5334}of this['_touchedRoots']['values']())null!==_0x3a5334&&_0x266dc2['add'](_0x3a5334);this['_markChanges'](_0x3019bc,_0x397a7c['insertions'][_0x4300b1],_0xbcf040,'insertion',_0x266dc2),this['_markChanges'](_0x57adec,_0x397a7c['deletions'][_0x4300b1],_0x1f361f,'deletion',_0x266dc2),_0x568d7f[_0x4300b1]={'insertions':this['_prepareViewToSave'](_0x3019bc),'deletions':this['_prepareViewToSave'](_0x57adec),'attachChange':this['_touchedRoots']['get'](_0x4300b1)||null,'attributesBefore':_0x117a5a(this['_baseRootsAttributes']['get'](_0x4300b1))||{},'attributesAfter':_0x117a5a(this['_diffRootsAttributes']['get'](_0x4300b1))};}return{'diffData':_0x568d7f,'authorsIds':Array['from'](_0x266dc2)};}['_processRootBeforeSave'](_0x4dfd3e){for(const [,_0x44624f]of _0x4dfd3e['markers']){const _0x26d9f4=_0x44624f['start']['getAncestors']()['filter'](_0x207230=>'tableCell'==_0x207230['name']);for(const _0x2d8bbb of _0x26d9f4)0x1==_0x2d8bbb['childCount']&&_0x2d8bbb['getChild'](0x0)['is']('element','paragraph')&&_0x2d8bbb['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x502bb5){this['_processRootBeforeSave'](_0x502bb5);const _0xc8b98a=this['editor']['data']['toView'](_0x502bb5,{}),_0x13983c=Array['from'](_0xc8b98a['getChildren']())['map'](_0x20b18b=>this['_getViewJson'](_0x20b18b));return JSON['stringify'](_0x13983c);}['_getViewJson'](_0x3f026d){if(_0x3f026d['is']('$text'))return _0x3f026d['data'];{const _0x42cfc9=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4353a5=_0x3f026d,_0x28e483=this['editor']['data']['htmlProcessor']['domConverter'],_0x1b9468={'type':_0x42cfc9['_getTypeCharForViewElement'](_0x4353a5),'name':_0x4353a5['name'],'attributes':Array['from'](_0x4353a5['getAttributes']()),'children':Array['from'](_0x4353a5['getChildren']())['map'](_0x591553=>this['_getViewJson'](_0x591553))};if(_0x3f026d['is']('uiElement')&&'$comment'!=_0x3f026d['name']){const _0x34d8c9=_0x3f026d['render'](_0x28e483['domDocument'],_0x28e483);_0x1b9468['children']['push'](_0x34d8c9['outerHTML']);}else{if(_0x3f026d['is']('rawElement')){const _0xa7151c=_0x28e483['domDocument']['createElement'](_0x4353a5['name']);_0x3f026d['render'](_0xa7151c,_0x28e483),_0x1b9468['children']['push'](_0xa7151c['innerHTML']);}}const _0x52b524=Array['from'](_0x4353a5['getCustomProperties']());_0x52b524['length']>0x0&&(_0x1b9468['customProperties']=_0x52b524);const _0x2632af=_0x4353a5['getFillerOffset']();return null!==_0x2632af&&(_0x1b9468['fillerOffset']=_0x2632af),_0x1b9468;}}['_markChanges'](_0x225abd,_0x26c341,_0x5de346,_0x840eb7,_0x6770a1){let _0x45b020=null,_0x425121=null,_0x2692f7=0x0;const _0x230e4d=this['editor']['model'];for(let _0x1be9c6=0x0;_0x1be9c6<_0x26c341['length'];_0x1be9c6++){const _0x592022=this['_getVidAttributeName'](_0x26c341[_0x1be9c6]),_0x36d5f4=_0x26c341[_0x1be9c6]['item']['getAttribute'](_0x592022),_0x2e8e8d=_0x5de346['get'](_0x36d5f4),_0xec1858=_0x1be9c6==_0x26c341['length']-0x1;(!_0x45b020&&_0x2e8e8d&&(_0x45b020=_0x2e8e8d,_0x425121=_0x26c341[_0x1be9c6]),_0x45b020&&(!_0x2e8e8d||_0x2e8e8d['userId']!=_0x45b020['userId']))&&(_0x239e8f(_0x2e8e8d,F(_0x425121,_0x225abd,_0x230e4d),F(_0x26c341[_0x1be9c6],_0x225abd,_0x230e4d)),_0x45b020=_0x2e8e8d||null,_0x425121=_0x2e8e8d?_0x26c341[_0x1be9c6]:null),_0x45b020&&_0xec1858&&_0x239e8f(_0x2e8e8d,F(_0x425121,_0x225abd,_0x230e4d),B(_0x26c341[_0x1be9c6],_0x225abd,_0x230e4d));}function _0x239e8f(_0xbec1ef,_0x552d57,_0x1d45f7){const _0x330c6e=_0x45b020['userId'],_0x257e80='revision:'+_0x840eb7+':'+_0x330c6e+':'+_0x2692f7++,_0x6eb932=_0x230e4d['createRange'](_0x552d57,_0x1d45f7);_0x225abd['markers']['set'](_0x257e80,_0x6eb932),null!==_0x330c6e&&_0x6770a1['add'](_0x330c6e);}}['_getVidAttributeName'](_0x17b5b0){switch(_0x17b5b0['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4858c6,_0x4b94c5){_0x4858c6['baseVersion']=null;for(const _0x477957 in _0x4858c6){const _0x5190f9=_0x4858c6[_0x477957];if(_0x5190f9 instanceof vt){const _0xda795a=_0x4b94c5['get'](_0x5190f9['root']['rootName']);_0x4858c6[_0x477957]=this['_fixPosition'](_0x5190f9,_0xda795a);}if(_0x5190f9 instanceof ft){const _0x4fa04e=_0x4b94c5['get'](_0x5190f9['root']['rootName']);_0x4858c6[_0x477957]=this['_fixRange'](_0x5190f9,_0x4fa04e);}'root'===_0x477957&&(_0x4858c6['root']=_0x4b94c5['get'](_0x4858c6['root']['rootName']));}}['_fixRange'](_0x468520,_0x44b58b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x468520['start'],_0x44b58b),this['_fixPosition'](_0x468520['end'],_0x44b58b));}['_fixPosition'](_0x3e7742,_0x45fe17){return this['editor']['model']['createPositionFromPath'](_0x45fe17,_0x3e7742['path'],_0x3e7742['stickiness']);}['_handleInsertOperation'](_0x26591b){const _0x140f96=this['_idsRoots']['get'](_0x26591b['position']['root']['rootName']),_0x55b228=this['_fixPosition'](_0x26591b['position'],_0x140f96),_0x105f6e=null===_0x26591b['_authorId']?null:_0x26591b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c28c4=_0x55b228['parent'],_0x1eaf1e=this['_revisionId'],_0x24497e=[];for(const _0x3cbd47 of _0x26591b['nodes'])if(_0x3cbd47['is']('element'))_0x24497e['push'](this['_makeIdsRoot'](_0x3cbd47));else{for(let _0x506379=0x0;_0x506379<_0x3cbd47['offsetSize'];_0x506379++)_0x24497e['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x257f85=this['_revisionId'];for(let _0x3b7939=_0x1eaf1e;_0x3b7939<_0x257f85;_0x3b7939++)this['_touched']['set'](_0x3b7939,{'userId':_0x105f6e});_0x3c28c4['_insertChild'](_0x55b228['offset'],_0x24497e);}['_handleMoveOperation'](_0x53abe9){(_0x53abe9=this['_cloneOperation'](_0x53abe9,this['_idsRoots']))['_execute']();const _0x2380c6=null===_0x53abe9['_authorId']?null:_0x53abe9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43cc28=_0x53abe9['getMovedRangeStart'](),_0x2dfc00=_0x43cc28['parent'],_0xaf6ae7=_0x43cc28['offset'];!function _0x299dad(_0x550f7e,_0x3cd68e,_0x16f738,_0x1d5741){for(let _0x547aa0=_0x16f738;_0x547aa0<_0x1d5741;_0x547aa0++){const _0x1f6172=_0x3cd68e['getChild'](_0x547aa0);_0x1f6172['is']('element','$text')?_0x550f7e['set'](_0x1f6172['getAttribute']('vid'),{'userId':_0x2380c6}):(_0x550f7e['set'](_0x1f6172['getAttribute']('vid_start'),{'userId':_0x2380c6}),_0x299dad(_0x550f7e,_0x1f6172,0x0,_0x1f6172['childCount']),_0x550f7e['set'](_0x1f6172['getAttribute']('vid_end'),{'userId':_0x2380c6}));}}(this['_touched'],_0x2dfc00,_0xaf6ae7,_0xaf6ae7+_0x53abe9['howMany']);}['_handleMergeOperation'](_0x1d72ee){const _0x55f67c=null===(_0x1d72ee=this['_cloneOperation'](_0x1d72ee,this['_idsRoots']))['_authorId']?null:_0x1d72ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46cc71=_0x1d72ee['targetPosition']['parent'],_0x58ce57=_0x1d72ee['sourcePosition']['parent'],_0x4feae2=_0x46cc71['getAttribute']('vid_end'),_0x19a077=_0x58ce57['getAttribute']('vid_start');_0x46cc71['_setAttribute']('vid_end',_0x58ce57['getAttribute']('vid_end')),_0x58ce57['_setAttribute']('vid_end',_0x4feae2),this['_touched']['set'](_0x19a077,{'userId':_0x55f67c}),this['_touched']['set'](_0x4feae2,{'userId':_0x55f67c}),_0x1d72ee['_execute']();}['_handleSplitOperation'](_0x343a7d){const _0x1fe8b6=null===(_0x343a7d=this['_cloneOperation'](_0x343a7d,this['_idsRoots']))['_authorId']?null:_0x343a7d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x209fbc=_0x343a7d['graveyardPosition'],_0x3c2fd1=_0x343a7d['splitPosition']['parent'];_0x343a7d['_execute']();const _0x2c82dc=_0x3c2fd1['getAttribute']('vid_end'),_0x13b575=_0x343a7d['insertionPosition']['nodeAfter'];if(_0x209fbc){const _0xfea096=_0x13b575['getAttribute']('vid_end'),_0x381a09=_0x3c2fd1['getAttribute']('vid_end');_0x3c2fd1['_setAttribute']('vid_end',_0xfea096),_0x13b575['_setAttribute']('vid_end',_0x381a09),this['_touched']['set'](_0x3c2fd1['getAttribute']('vid_end'),{'userId':_0x1fe8b6}),this['_touched']['set'](_0x13b575['getAttribute']('vid_start'),{'userId':_0x1fe8b6});}else{const _0x4d8f3d=this['_revisionId']++,_0x271e28=this['_revisionId']++;_0x3c2fd1['_setAttribute']('vid_end',_0x4d8f3d),_0x13b575['_setAttribute']('vid_start',_0x271e28),_0x13b575['_setAttribute']('vid_end',_0x2c82dc),this['_touched']['set'](_0x4d8f3d,{'userId':_0x1fe8b6}),this['_touched']['set'](_0x271e28,{'userId':_0x1fe8b6});}}['_handleMarkerOperation'](_0xe5efd9){if(!_0xe5efd9['affectsData'])return;const _0x34c99e=(_0xe5efd9=this['_cloneOperation'](_0xe5efd9,this['_diffRoots']))['oldRange']?_0xe5efd9['oldRange']['root']:null,_0x4ea1fe=_0xe5efd9['newRange']?_0xe5efd9['newRange']['root']:null;_0x34c99e&&this['_markers']['delete'](_0xe5efd9['name']),_0x4ea1fe&&this['_markers']['set'](_0xe5efd9['name'],_0xe5efd9['newRange']['clone']());const _0x3d25da=null===_0xe5efd9['_authorId']?null:_0xe5efd9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x263e2e=_0xe5efd9['name'];if(!this['_touchedMarkers']['has'](_0x263e2e))return void this['_touchedMarkers']['set'](_0x263e2e,{'range':_0xe5efd9['oldRange'],'userId':_0x3d25da});const _0x12d324=this['_touchedMarkers']['get'](_0x263e2e),_0x80e822=_0x12d324['range'],_0x1fb088=_0xe5efd9['newRange'];null==_0x80e822&&null==_0x1fb088||_0x80e822&&_0x1fb088&&_0x80e822['isEqual'](_0x1fb088)?this['_touchedMarkers']['delete'](_0xe5efd9['name']):_0x12d324['userId']=_0x3d25da;}['_handleRootOperation'](_0x2635a5,_0x49adda){this['_diffRoots']['has'](_0x2635a5['rootName'])?this['_diffRoots']['get'](_0x2635a5['rootName'])['_isAttached']=_0x2635a5['isAdd']:(this['_diffRoots']['set'](_0x2635a5['rootName'],P(_0x2635a5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2635a5['rootName'],{}),_0x49adda&&this['_idsRoots']['set'](_0x2635a5['rootName'],P(_0x2635a5['rootName'],!0x0)));const _0xfe6ba=null===_0x2635a5['_authorId']?null:_0x2635a5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3da7ac=this['_touchedRoots']['get'](_0x2635a5['rootName']);_0x3da7ac&&_0x3da7ac['userId']===_0xfe6ba?this['_touchedRoots']['delete'](_0x2635a5['rootName']):this['_touchedRoots']['set'](_0x2635a5['rootName'],{'userId':_0xfe6ba,'isAttached':_0x2635a5['isAdd']});}['_handleRootAttributeOperation'](_0x541504){const _0x3bda3d=this['_diffRootsAttributes']['get'](_0x541504['root']['rootName']);null===_0x541504['newValue']?delete _0x3bda3d[_0x541504['key']]:_0x3bda3d[_0x541504['key']]=_0x541504['newValue'];}}function N(_0x4af39c){const _0x33e190=P(_0x4af39c['rootName'],_0x4af39c['isAttached']());for(const _0x4e36e0 of _0x4af39c['getChildren']()){const _0x4fd950=_0x4e36e0['_clone'](!0x0);_0x33e190['_appendChild'](_0x4fd950);}return _0x33e190;}function P(_0x3e57cd,_0x5f3fdb=!0x0){const _0x2b3cff=new gt();return _0x2b3cff['rootName']=_0x3e57cd,_0x2b3cff['_isAttached']=_0x5f3fdb,_0x2b3cff['isAttached']=()=>_0x2b3cff['_isAttached'],_0x2b3cff;}function F(_0x1f0100,_0x5cd91d,_0x5ed409){const _0x56e92c='elementEnd'==_0x1f0100['type']?_0x5ed409['createPositionAt'](_0x1f0100['item'],'end'):_0x5ed409['createPositionBefore'](_0x1f0100['item']);return _0x5ed409['createPositionFromPath'](_0x5cd91d,_0x56e92c['path'],_0x56e92c['stickiness']);}function B(_0x311873,_0x3a5502,_0x1ef244){const _0x29694c='elementStart'==_0x311873['type']?_0x1ef244['createPositionAt'](_0x311873['item'],0x0):_0x1ef244['createPositionAfter'](_0x311873['item']);return _0x1ef244['createPositionFromPath'](_0x3a5502,_0x29694c['path'],_0x29694c['stickiness']);}class os extends _0x431dcc{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x19e0cf,_0x2dd2ec){super(_0x19e0cf),this['focusTracker']=new _0x172b14(),this['keystrokes']=new _0x3da32d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2dd2ec),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x4c54dd({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x38df1b=_0x26c03f=>_0x26c03f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x38df1b),this['keystrokes']['set']('arrowleft',_0x38df1b),this['keystrokes']['set']('arrowup',_0x38df1b),this['keystrokes']['set']('arrowdown',_0x38df1b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x22f86b){this['revisionNameInputView']['fieldView']['element']['value']=_0x22f86b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1aa4f4){const _0x40c708=new nt(this['locale'],ti),_0xeb4b7d=_0x40c708['fieldView'];_0xeb4b7d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4497fb=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1aa4f4&&(_0x4497fb+='\x20('+g(this['locale'],'optional')+')'),(_0x40c708['label']=_0x4497fb,_0xeb4b7d['on']('input',()=>{this['revisionNameInputValue']=_0xeb4b7d['element']['value']['trim']();}),_0x40c708);}}class f extends _0x34d9d9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3fe1d9=this['editor'],_0x5ce366=_0x3fe1d9['plugins']['get']('RevisionTracker');_0x3fe1d9['ui']['componentFactory']['add']('revisionHistory',_0x2fa1e3=>{const _0x5168e0=_0x52ab85(_0x2fa1e3),_0x5379e4=_0x5168e0['panelView']['children'],_0x1e84f5=new _0x2fabb2(_0x2fa1e3),_0x1fc2d3=new te(_0x2fa1e3),_0x258b04=new _0xe0a7f0(_0x2fa1e3),_0x21b473=new te(_0x2fa1e3),_0x550ea4=new _0xe0a7f0(_0x2fa1e3);return _0x5168e0['bind']('isEnabled')['to'](_0x5ce366,'isReady',_0x5ce366,'isEnabled',_0x3fe1d9,'isReadOnly',(_0x10dfe9,_0x3009d1,_0x1b0587)=>_0x10dfe9&&_0x3009d1&&!_0x1b0587),_0x5168e0['buttonView']['set']({'icon':_0x9f4221,'label':g(_0x2fa1e3,'Revision\x20history'),'tooltip':!0x0}),_0x258b04['set']({'label':g(_0x2fa1e3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x258b04['bind']('isEnabled')['to'](_0x5ce366,'isReady',_0x5ce366,'isEnabled',_0x3fe1d9,'isReadOnly',(_0x23aee7,_0x990151,_0x5515e6)=>_0x23aee7&&_0x990151&&!_0x5515e6),_0x258b04['on']('execute',()=>this['_showDialog']()),_0x550ea4['set']({'label':g(_0x2fa1e3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x550ea4['bind']('isEnabled')['to'](_0x5ce366,'isReady',_0x3fe1d9,'isReadOnly',(_0x28d7f1,_0x284fbe)=>_0x28d7f1&&!_0x284fbe),_0x550ea4['on']('execute',()=>{_0x3fe1d9['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5168e0['isOpen']=!0x1,_0x3fe1d9['editing']['view']['focus']();}),_0x1fc2d3['children']['add'](_0x258b04),_0x21b473['children']['add'](_0x550ea4),_0x1e84f5['role']='menu',_0x1e84f5['items']['addMany']([_0x1fc2d3,_0x21b473]),_0x5379e4['add'](_0x1e84f5),_0x5168e0;}),_0x3fe1d9['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x144650=this['editor'],_0x358dc8=_0x144650['locale'],_0x371f4e=new _0xb8c550(_0x358dc8),_0x56da58=new _0xb327d1(_0x358dc8);_0x371f4e['buttonView']['set']({'icon':_0x9f4221,'label':g(_0x358dc8,'Revision\x20history')});const _0x347848=new _0x114864(_0x358dc8,_0x371f4e),_0x50ffc7=new _0x4157ef(_0x358dc8);_0x50ffc7['set']({'label':g(_0x358dc8,'Save\x20current\x20revision')}),_0x50ffc7['delegate']('execute')['to'](_0x371f4e),_0x50ffc7['on']('execute',()=>{this['_showDialog']();}),_0x347848['children']['add'](_0x50ffc7),_0x56da58['items']['add'](_0x347848);const _0x2540d7=new _0x114864(_0x358dc8,_0x371f4e),_0x13081b=new _0x4157ef(_0x358dc8);return _0x13081b['set']({'label':g(_0x358dc8,'Open\x20revision\x20history')}),_0x13081b['delegate']('execute')['to'](_0x371f4e),_0x13081b['on']('execute',()=>{_0x144650['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2540d7['children']['add'](_0x13081b),_0x56da58['items']['add'](_0x2540d7),_0x371f4e['panelView']['children']['add'](_0x56da58),_0x371f4e;}['_showDialog'](){const _0x5b0e33=this['editor'],_0x4b4229=_0x5b0e33['locale'],_0x5ec2d0=_0x5b0e33['plugins']['get']('Dialog'),_0x39f8a6=_0x5b0e33['plugins']['get']('RevisionTracker');function _0x1cf18f(_0x4dda89){_0x5b0e33['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4dda89['revisionName']?_0x4dda89['revisionNameInputView']['errorText']=g(_0x4b4229,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5b0e33['plugins']['get'](u)['saveRevision']({'name':_0x4dda89['revisionName']}),_0x5ec2d0['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1cf18f(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5ec2d0['show']({'id':'revisionSave','title':g(_0x4b4229,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x5b0e33['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5ec2d0['hide']()},{'label':g(_0x5b0e33['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x373c4c){_0x373c4c['bind']('isEnabled')['to'](_0x39f8a6,'isReady',_0x39f8a6,'isEnabled',_0x5b0e33,'isReadOnly',(_0x3199d6,_0x423b40,_0x24f58e)=>_0x3199d6&&_0x423b40&&!_0x24f58e);},'onExecute':()=>_0x1cf18f(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x33c4e8=this['editor'],_0x1238be=_0x33c4e8['locale'];this['_saveRevisionFormView']=new os(_0x1238be,_0x33c4e8['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x431dcc{['changeId'];['_model'];constructor(_0x1f5220,_0x493818){super(_0x1f5220),this['_model']=_0x493818,this['changeId']=_0x493818['id'];const _0x5836ad=this['bindTemplate'],_0x4f10a2=g(_0x1f5220,_0x493818['data']['isSuggestion']?'Suggested\x20by':'add'==_0x493818['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x493818['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5836ad['to']('type',_0x3e503b=>'ck-revision-change__'+_0x3e503b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4f10a2}]},{'text':'\x20'+_0x493818['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x10ab85(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xb59eb8){super(),this['id']=_0xb59eb8['id']||_0x521db4(),this['author']=_0xb59eb8['author'],this['type']=_0xb59eb8['type'],this['data']=_0xb59eb8['data']||{},this['rootName']=_0xb59eb8['rootName'],this['set']('createdAt',_0xb59eb8['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x487da4,_0x1de7fb){this['newRevisionId']=_0x487da4,this['oldRevisionId']=_0x1de7fb,this['changes']=new _0x346a75();}['_setChanges'](_0x3ab528){for(const _0xa128b8 of _0x3ab528)this['changes']['add'](_0xa128b8);}}class m extends _0x34d9d9{['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[_0x3ff113,_0x2a3c01,I,V];}constructor(_0x5bf3e6){super(_0x5bf3e6),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',(_0x30ad7b,_0x56ee5b,_0x1e9a1b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x18d910=>{for(const _0x55238c of this['editor']['editing']['view']['document']['roots'])_0x1e9a1b?_0x18d910['removeClass']('ck-editor__editable__overlay',_0x55238c):_0x18d910['addClass']('ck-editor__editable__overlay',_0x55238c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x13cb97=>null!==_0x13cb97),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1a779b,_0x4307a2,_0x229624)=>_0x1a779b&&_0x229624?_0x4307a2['changes']['getIndex'](_0x229624):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x14f96b,_0x4d5154)=>_0x14f96b?_0x4d5154['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2a3c01);}['init'](){const _0x3b5b12=this['editor'],_0x1ed6a=new pt(_0x3b5b12,{'direction':'backward'}),_0x39cb5b=new pt(_0x3b5b12,{'direction':'forward'});(_0x3b5b12['commands']['add']('showPreviousChange',_0x1ed6a),_0x3b5b12['commands']['add']('showNextChange',_0x39cb5b),_0x3b5b12['commands']['add']('restoreRevision',new wt(_0x3b5b12)),this['on']('change:numberOfChanges',()=>{_0x1ed6a['refresh'](),_0x39cb5b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3b5b12['enableReadOnlyMode']('revision-viewer'),_0x3b5b12['plugins']['has']('WidgetToolbarRepository'))&&_0x3b5b12['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2b8aba){return await this['_utils']['loadRevisionData'](_0x2b8aba,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2b8aba);}async['getRevisionRootsAttributes'](_0x418cb5){return await this['_utils']['loadRevisionData'](_0x418cb5,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x418cb5);}async['compare'](_0x58366c,_0x5a94d1,_0x1c95c2=!0x1){if(!this['isEnabled'])return;const _0x2ca65f=this['diff'],_0x2905fa=this['repository'],_0x5b1561='string'==typeof _0x58366c?_0x2905fa['getRevision'](_0x58366c):_0x58366c,_0x35a56a='string'==typeof _0x5a94d1?_0x2905fa['getRevision'](_0x5a94d1):_0x5a94d1,_0x430635=_0x5b1561['id'],_0x5b3ae2=_0x35a56a?_0x35a56a['id']:null;if(!_0x1c95c2&&this['diff']&&this['diff']['newRevisionId']===_0x430635&&this['diff']['oldRevisionId']===_0x5b3ae2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x430635,_0x5b3ae2);const _0x1822a2=this['_getRevisionsRange'](_0x5b1561,_0x35a56a,!0x0)['map'](_0x26bfea=>this['_utils']['loadRevisionData'](_0x26bfea,this['adapter']));return _0x1822a2['push'](new Promise(_0x93104b=>{setTimeout(_0x93104b,0x14);})),Promise['all'](_0x1822a2)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x13db49=this['_getDiff'](_0x430635,_0x5b3ae2);for(const _0x43f85a of _0x13db49['changes'])this['_changeIdToChange']['set'](_0x43f85a['id'],_0x43f85a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x46fd01=>{for(const _0x497adb of this['editor']['model']['document']['getRootNames']())_0x46fd01['detachRoot'](_0x497adb);for(const _0x4b69d6 of Object['keys'](_0x13db49['model'])){const _0x5242c5=_0x46fd01['addRoot'](_0x4b69d6);for(const _0x5b313b of Object['keys'](_0x13db49['attributes'][_0x4b69d6]))_0x46fd01['setAttribute'](_0x5b313b,_0x13db49['attributes'][_0x4b69d6][_0x5b313b],_0x5242c5);_0x46fd01['insert'](_0x13db49['model'][_0x4b69d6],_0x5242c5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x13db49['changes'])),this['isReady']=!0x0;})['catch'](_0x50ca21=>{console['error'](_0x50ca21),this['_cleanUp'](),_0x2ca65f&&(this['diff']=_0x2ca65f),this['isReady']=!0x0;});}['addRevisionData'](_0x2b7afa,_0x336782){const _0x2bf200=this['repository']['createRevision'](_0x2b7afa);return _0x2bf200['on']('_update',(_0x426156,_0x7e1828,_0x19e80a)=>_0x336782(_0x7e1828,_0x19e80a,_0x2bf200)),this['repository']['addRevision'](_0x2bf200),_0x2bf200;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2a7dad=>{for(const _0x9ce7eb of this['editor']['model']['document']['getRootNames']())_0x2a7dad['detachRoot'](_0x9ce7eb);});}['_sortAndFilterDiffChanges'](_0xdc5130){const _0xe76a6a=[],_0x549022=new Map();for(const _0x2601d2 of this['editor']['model']['document']['getRootNames']()){const _0x36acf1=this['editor']['editing']['view']['getDomRoot'](_0x2601d2);if(!_0x36acf1)continue;const _0x7d0dc8=_0x36acf1['getClientRects']()['item'](0x0);_0x7d0dc8&&(_0xe76a6a['push'](_0x2601d2),_0x549022['set'](_0x2601d2,_0x7d0dc8));}return _0xe76a6a['sort']((_0x53cafe,_0x439b21)=>{const _0xe7361c=_0x549022['get'](_0x53cafe),_0x2a6aa8=_0x549022['get'](_0x439b21);return _0xe7361c['y']-_0x2a6aa8['y']||_0xe7361c['x']-_0x2a6aa8['x'];}),(_0xdc5130=_0xdc5130['filter'](_0x138ec1=>_0xe76a6a['includes'](_0x138ec1['rootName'])))['sort']((_0x27bdb8,_0x1dc8a4)=>_0xe76a6a['indexOf'](_0x27bdb8['rootName'])-_0xe76a6a['indexOf'](_0x1dc8a4['rootName'])),_0xdc5130;}['_makeTape'](_0x2c20f1){const _0x1e1867=Array['from'](_0x2c20f1['markers'])['filter'](([_0x53afad,_0x1964ea])=>_0x53afad['startsWith']('revision:')&&!_0x1964ea['isCollapsed']),_0x391570=Array['from'](this['editor']['model']['createRangeIn'](_0x2c20f1)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1e1867['length'])for(const _0x5cc54d of _0x391570){const [_0x199efa,_0x44f5f6]=_0x1e1867[0x0],[,_0x535bf5,_0x327aa3]=_0x199efa['split'](':');if(_0x44f5f6['end']['isEqual'](_0x5cc54d['nextPosition'])&&_0x1e1867['shift'](),(_0x5cc54d['previousPosition']['isEqual'](_0x44f5f6['start'])||_0x5cc54d['previousPosition']['isAfter'](_0x44f5f6['start']))&&('insertion'==_0x535bf5?_0x5cc54d['isAdded']={'userId':_0x327aa3}:'deletion'==_0x535bf5&&(_0x5cc54d['isRemoved']={'userId':_0x327aa3})),0x0==_0x1e1867['length'])break;}return _0x391570;}['_refreshStartEndIndex'](_0x49d3ef){const _0x2cbfff=new Map();for(let _0x16479d=0x0;_0x16479d<_0x49d3ef['length'];_0x16479d++)'text'===_0x49d3ef[_0x16479d]['type']?(_0x49d3ef[_0x16479d]['item']['startIndex']=_0x16479d,_0x49d3ef[_0x16479d]['item']['endIndex']=_0x16479d):('elementStart'===_0x49d3ef[_0x16479d]['type']?_0x49d3ef[_0x16479d]['item']['startIndex']=_0x16479d:'elementEnd'===_0x49d3ef[_0x16479d]['type']&&(_0x49d3ef[_0x16479d]['item']['endIndex']=_0x16479d),_0x2cbfff['set'](_0x49d3ef[_0x16479d]['id'],_0x16479d));for(const _0x24d7f7 of _0x2cbfff['values']())'elementStart'===_0x49d3ef[_0x24d7f7]['type']?_0x49d3ef[_0x24d7f7]['item']['endIndex']=_0x2cbfff['get'](_0x49d3ef[_0x24d7f7]['pairId']):'elementEnd'===_0x49d3ef[_0x24d7f7]['type']&&(_0x49d3ef[_0x24d7f7]['item']['startIndex']=_0x2cbfff['get'](_0x49d3ef[_0x24d7f7]['pairId']));}['_processTape'](_0x2c8133){for(let _0x132142=0x0;_0x132142<_0x2c8133['length'];_0x132142++){if('elementStart'===_0x2c8133[_0x132142]['type'])_0x2c8133[_0x132142]['item']['startIndex']=_0x132142;else{if('elementEnd'===_0x2c8133[_0x132142]['type']){_0x2c8133[_0x132142]['item']['endIndex']=_0x132142;const _0x384bfd=_0x2c8133[_0x132142]['item']['startIndex'];_0x2c8133[_0x384bfd]['pairId']=_0x2c8133[_0x132142]['id'],_0x2c8133[_0x132142]['pairId']=_0x2c8133[_0x384bfd]['id'];}else _0x2c8133[_0x132142]['item']['startIndex']=_0x132142,_0x2c8133[_0x132142]['item']['endIndex']=_0x132142,_0x2c8133[_0x132142]['pairId']=null;}_0x2c8133[_0x132142]['markersStart']||(_0x2c8133[_0x132142]['markersStart']=[],_0x2c8133[_0x132142]['markersEnd']=[]);}}['_markInsertions'](_0x2c12d1,_0x12bb32){const _0x3a8e79=_0x2c12d1['filter'](_0x1cf088=>!_0x1cf088['isAdded']);for(let _0x55c44b=0x0;_0x55c44b<_0x12bb32['length'];_0x55c44b++)_0x12bb32[_0x55c44b]['isAdded']&&(_0x3a8e79[_0x55c44b]['isAdded']=_0x12bb32[_0x55c44b]['isAdded']);}['_getDiff'](_0x5e03aa,_0x7c0a33=null){const _0x279165=this['repository']['getRevision'](_0x5e03aa),_0x4ed694=_0x7c0a33?this['repository']['getRevision'](_0x7c0a33):null,_0x343101=this['_getRevisionsRange'](_0x279165,_0x4ed694),_0x2a2663=_0x343101[_0x343101['length']-0x1],_0xeb6409=new Map(),_0x57930b={'model':{},'attributes':{},'changes':[]},_0x46ae57=new Set(),_0x4054fc=new Map();for(let _0x4e1abe=_0x343101['length']-0x1;_0x4e1abe>=0x0;_0x4e1abe--){const _0x25e6ad=_0x343101[_0x4e1abe];for(const _0x4bcd1d of Object['keys'](_0x25e6ad['diffData']))if(_0x25e6ad['diffData'][_0x4bcd1d]['attachChange']){const _0x30a365=_0x25e6ad['diffData'][_0x4bcd1d]['attachChange'];_0x30a365['isAttached']?(_0x46ae57['add'](_0x4bcd1d),_0x4054fc['has'](_0x4bcd1d)&&_0x4054fc['get'](_0x4bcd1d)['userId']==_0x30a365['userId']?_0x4054fc['delete'](_0x4bcd1d):_0x4054fc['set'](_0x4bcd1d,_0x30a365)):_0x4054fc['has'](_0x4bcd1d)?(_0x46ae57['delete'](_0x4bcd1d),_0x4054fc['delete'](_0x4bcd1d)):(_0x46ae57['add'](_0x4bcd1d),_0x4054fc['set'](_0x4bcd1d,_0x30a365));}else _0x46ae57['add'](_0x4bcd1d);}for(const _0x562b39 of _0x46ae57){const _0x2e0e62=_0x4054fc['has'](_0x562b39)&&!_0x4054fc['get'](_0x562b39)['isAttached'];let _0x35e962=_0x2e0e62?_0x343101['length']-0x1:0x0;const _0x339f5c=_0x2e0e62?-0x1:0x1;for(;_0x343101[_0x35e962];){const _0x352151=_0x343101[_0x35e962];if(_0x352151['diffData'][_0x562b39]){const _0x310804=_0x2e0e62?_0x352151['diffData'][_0x562b39]['attributesBefore']:_0x352151['diffData'][_0x562b39]['attributesAfter'];_0x57930b['attributes'][_0x562b39]=_0x310804?_0x117a5a(_0x310804):{};break;}_0x35e962+=_0x339f5c;}}for(const _0x18a5e5 of _0x343101){_0x18a5e5['model']={};for(const _0x4ee671 of _0x18a5e5['authors'])_0xeb6409['set'](_0x4ee671['id'],_0x4ee671);for(const _0x22b154 of _0x46ae57){const _0xb06754=_0x18a5e5['diffData'][_0x22b154]?_0x18a5e5['diffData'][_0x22b154]['insertions']:'[]',_0x13fc56=_0x18a5e5['diffData'][_0x22b154]?_0x18a5e5['diffData'][_0x22b154]['deletions']:'[]';_0x18a5e5['model'][_0x22b154]={'insertions':this['_utils']['_makeModelFromViewString'](_0xb06754),'deletions':this['_utils']['_makeModelFromViewString'](_0x13fc56)};}}for(const _0x5af920 of _0x46ae57){let _0xed6f55=null,_0x5e7680=0x0;const _0x5ca2ea=new Map(Array['from'](_0x279165['model'][_0x5af920]['insertions']['markers'])['filter'](([_0x3eaca7])=>!_0x3eaca7['startsWith']('revision:')));let _0x3910e8=0x0;for(const _0x496f7b of _0x343101){const _0x23d2f9=this['_makeTape'](_0x496f7b['model'][_0x5af920]['insertions']);_0x496f7b==_0x279165?(_0xed6f55=_0x23d2f9,_0x5e7680=_0xed6f55['length'],_0xed6f55['forEach'](_0x51d0f2=>{_0x51d0f2['id']=_0x3910e8++;}),this['_processTape'](_0xed6f55)):this['_markInsertions'](_0xed6f55,_0x23d2f9);const _0x3b0fdc=_0xed6f55['filter'](_0x4ad95f=>!_0x4ad95f['isAdded'])['map'](_0x1271bc=>_0x1271bc['id']);let _0x582567=0x0;const _0xe9db2a=this['_makeTape'](_0x496f7b['model'][_0x5af920]['deletions']);_0xe9db2a['forEach'](_0x1fd15c=>{_0x1fd15c['isRemoved']?_0x1fd15c['id']=_0x5e7680++:_0x1fd15c['id']=_0x3b0fdc[_0x582567++];}),this['_processTape'](_0xe9db2a),this['_setDistance'](_0xed6f55,'isAdded'),this['_setDistance'](_0xe9db2a,'isRemoved'),_0x496f7b==_0x279165&&this['_markMarkers'](_0xed6f55,_0x5ca2ea),_0xed6f55=this['_joinTapes'](_0xed6f55,_0xe9db2a),this['_refreshStartEndIndex'](_0xed6f55),this['_setDistance'](_0xed6f55,'isRemoved');}_0xed6f55=_0xed6f55['filter'](_0x40992b=>!(_0x40992b['isAdded']&&_0x40992b['isRemoved']));const _0x350d47=new Map(_0x2a2663['model'][_0x5af920]['deletions']['markers']),_0x3d1dd8=new Set(_0x5ca2ea['keys']());for(const _0x30d923 of _0x350d47['keys']())_0x3d1dd8['delete'](_0x30d923);this['_markSuggestions'](_0xed6f55,_0x3d1dd8),this['_fixObsoleteTags'](_0xed6f55),_0xed6f55=this['_removeMissingPairs'](_0xed6f55),_0xed6f55=this['_markMismatchedRemovedTags'](_0xed6f55),_0xed6f55=this['_removeUnsupportedChanges'](_0xed6f55);const {root:_0x721981,changes:_0x6834dc}=this['_makeModelFromTape'](_0xed6f55,_0xeb6409,_0x5af920);_0x57930b['model'][_0x5af920]=_0x721981;const _0x57693d=_0x4054fc['get'](_0x5af920);if(_0x57693d){const _0x391bb1=_0xeb6409['get'](_0x57693d['userId']),_0x121eb0=new r({'author':_0x391bb1,'type':_0x57693d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5af920});_0x6834dc['unshift'](_0x121eb0),_0x57930b['attributes'][_0x5af920]['revisionHistoryAttachChange']=_0x121eb0['id'];}_0x57930b['changes']=_0x57930b['changes']['concat'](_0x6834dc);}return _0x57930b;}['_markMarkers'](_0x345cb0,_0x2c2ce9){for(let _0x235305=0x0;_0x235305<_0x345cb0['length'];_0x235305++)for(const [_0x49c1fb,_0x562a3a]of _0x2c2ce9)!_0x562a3a['isCollapsed']&&_0x562a3a['start']['isEqual'](_0x345cb0[_0x235305]['previousPosition'])&&_0x345cb0[_0x235305]['markersStart']['push'](_0x49c1fb),_0x562a3a['end']['isEqual'](_0x345cb0[_0x235305]['nextPosition'])&&_0x345cb0[_0x235305]['markersEnd']['push'](_0x49c1fb);}['_joinTapes'](_0x214170,_0x78887e){let _0x45fb73=[],_0x2c78f8=0x0,_0xd725e1=0x0;for(;_0x2c78f8<_0x214170['length']||_0xd725e1<_0x78887e['length'];){const _0x8318d1=_0x214170[_0x2c78f8]||{},_0x4a058d=_0x78887e[_0xd725e1]||{};if(_0x8318d1['id']==_0x4a058d['id'])_0x2c78f8++,_0xd725e1++,_0x45fb73['push'](_0x8318d1);else{if(_0x4a058d['isRemoved']&&_0x8318d1['isAdded']){const {commonTape:_0x2ec13f,iEnd:_0x4a9fb9,jEnd:_0x38447d}=this['_threeWayMerge'](_0x214170,_0x2c78f8,_0x78887e,_0xd725e1);_0x45fb73=_0x45fb73['concat'](_0x2ec13f),_0x2c78f8=_0x4a9fb9,_0xd725e1=_0x38447d;}else _0x4a058d['isRemoved']?(_0xd725e1++,_0x45fb73['push'](_0x4a058d)):(_0x2c78f8++,_0x45fb73['push'](_0x8318d1));}}return _0x45fb73;}['_markSuggestions'](_0x448b42,_0x27547d){const _0x1f0fa9=[];for(let _0x461473=0x0;_0x461473<_0x448b42['length'];_0x461473++){for(let _0xca250c=0x0;_0xca250c<_0x448b42[_0x461473]['markersStart']['length'];_0xca250c++){const _0x5d3b67=_0x448b42[_0x461473]['markersStart'][_0xca250c];if(!_0x27547d['has'](_0x5d3b67))continue;const {group:_0x436f32,type:_0x24c230,authorId:_0x54b436}=_0xccaa22(_0x5d3b67);'revision-suggestion'!=_0x436f32||'insertion'!=_0x24c230&&'deletion'!=_0x24c230||(_0x1f0fa9['unshift']({'type':_0x24c230,'name':_0x5d3b67,'userId':_0x54b436}),_0x448b42[_0x461473]['markersStart']['splice'](_0xca250c,0x1),_0xca250c--);}_0x378f6b(_0x448b42[_0x461473]);for(let _0x4a15fc=0x0;_0x4a15fc<_0x448b42[_0x461473]['markersEnd']['length'];_0x4a15fc++){const _0xcd5d03=_0x448b42[_0x461473]['markersEnd'][_0x4a15fc];if(!_0x27547d['has'](_0xcd5d03))continue;const {group:_0x585eaa,type:_0x188af0}=_0xccaa22(_0xcd5d03);if('revision-suggestion'!=_0x585eaa||'insertion'!=_0x188af0&&'deletion'!=_0x188af0)continue;_0x448b42[_0x461473]['markersEnd']['splice'](_0x4a15fc,0x1),_0x4a15fc--;const _0x1cf54d=_0x1f0fa9['findIndex'](_0x30f80f=>_0x30f80f['name']==_0xcd5d03);_0x1cf54d>-0x1&&_0x1f0fa9['splice'](_0x1cf54d,0x1);}}function _0xccaa22(_0x8c0f0){const _0x47f43f=_0x8c0f0['split'](':');return{'group':_0x47f43f[0x0],'type':_0x47f43f[0x1],'subType':_0x47f43f['length']>=0x5?_0x47f43f[0x2]:null,'id':_0x47f43f['length']<0x5?_0x47f43f[0x2]:_0x47f43f[0x3],'authorId':_0x47f43f['length']<0x5?_0x47f43f[0x3]:_0x47f43f[0x4],'markerCount':0x6==_0x47f43f['length']?_0x47f43f[0x5]:null};}function _0x378f6b(_0x90a8ab){for(let _0x5d5e68=0x0;_0x5d5e68<_0x1f0fa9['length'];_0x5d5e68++){if(_0x90a8ab['isAdded']&&'insertion'==_0x1f0fa9[_0x5d5e68]['type'])return _0x90a8ab['isAddSuggestion']=_0x1f0fa9[_0x5d5e68],void delete _0x90a8ab['isAdded'];if(!_0x90a8ab['isAdded']&&!_0x90a8ab['isRemoved']&&'deletion'==_0x1f0fa9[_0x5d5e68]['type'])return void(_0x90a8ab['isRemoveSuggestion']=_0x1f0fa9[_0x5d5e68]);}}}['_setDistance'](_0x115116,_0x2c8e2b){let _0x229f3e=0x0,_0x1864c5=!0x1;const _0x5bf957=new Map();for(const _0x3a9bf0 of _0x115116)_0x3a9bf0[_0x2c8e2b]?_0x1864c5&&(_0x229f3e++,_0x1864c5=!0x1):(_0x229f3e++,_0x1864c5=!0x0),_0x5bf957['set'](_0x3a9bf0['id'],_0x229f3e);for(let _0x736868=0x0;_0x736868<_0x115116['length'];_0x736868++){if('isRemoved'==_0x2c8e2b&&_0x115116[_0x736868]['isAdded']||'isAdded'==_0x2c8e2b&&_0x115116[_0x736868]['isRemoved'])continue;if('text'==_0x115116[_0x736868]['type']){_0x115116[_0x736868]['distance']=0x0;continue;}const _0x1f26d3=_0x5bf957['get'](_0x115116[_0x736868]['pairId']),_0xbabb05=_0x5bf957['get'](_0x115116[_0x736868]['id']);_0x115116[_0x736868]['distance']=_0x1f26d3-_0xbabb05;}}['_getRevisionsRange'](_0x163e2f,_0x214faa,_0x5662c6=!0x1){const _0x3e22d9=[];let _0x18aa95=this['repository']['getIndex'](_0x163e2f),_0x56b2fb=this['repository']['getIndex'](_0x214faa);for(-0x1==_0x56b2fb&&(_0x56b2fb=this['repository']['_revisions']['length'],_0x5662c6=!0x1);_0x18aa95<_0x56b2fb;)_0x3e22d9['push'](this['repository']['getRevision'](_0x18aa95)),_0x18aa95++;return _0x5662c6&&_0x3e22d9['push'](this['repository']['getRevision'](_0x18aa95)),_0x3e22d9;}['_threeWayMerge'](_0x4d9c70,_0x295291,_0x3ac5e9,_0x1eef04){const _0xdb34b4=this['editor']['model']['schema'];let _0x34afda=_0x295291;for(;_0x4d9c70[_0x34afda]&&_0x4d9c70[_0x34afda]['isAdded'];)_0x34afda++;let _0x20014b=_0x1eef04;for(;_0x3ac5e9[_0x20014b]&&_0x3ac5e9[_0x20014b]['isRemoved'];)_0x20014b++;_0x3fc6be(_0x4d9c70,_0x295291,_0x34afda),_0x3fc6be(_0x3ac5e9,_0x1eef04,_0x20014b);const _0x431e36=_0x3ac5e9['slice'](_0x1eef04,_0x20014b)['concat'](_0x4d9c70['slice'](_0x295291,_0x34afda));return _0x431e36['sort']((_0x132be1,_0x5def9e)=>_0x132be1['side']!=_0x5def9e['side']?_0x132be1['side']-_0x5def9e['side']:_0x132be1['level']!=_0x5def9e['level']?_0x132be1['level']-_0x5def9e['level']:_0x132be1['distance']!=_0x5def9e['distance']?_0x5def9e['distance']-_0x132be1['distance']:!!_0x132be1['isAdded']!=!!_0x5def9e['isAdded']?-0x1==_0x132be1['side']||0x0==_0x132be1['side']?_0x132be1['isAdded']?-0x1:0x1:_0x132be1['isAdded']?0x1:-0x1:_0x132be1['index']-_0x5def9e['index']),{'commonTape':_0x431e36,'iEnd':_0x34afda,'jEnd':_0x20014b};function _0x3fc6be(_0x36bbb7,_0x37b248,_0x13a44c){let _0x19bf61=-0x1,_0x27f009=Number['POSITIVE_INFINITY'],_0x543c05=!0x0;for(let _0x846ae5=_0x37b248;_0x846ae5<_0x13a44c;_0x846ae5++)if(_0xdb34b4['isInline'](_0x36bbb7[_0x846ae5]['item'])||(_0x543c05=!0x1),_0x36bbb7[_0x846ae5]['item']['startIndex']<_0x37b248&&(_0x19bf61=_0x846ae5),_0x36bbb7[_0x846ae5]['item']['endIndex']>=_0x13a44c){_0x27f009=_0x846ae5;break;}_0x543c05&&(_0x19bf61=_0x13a44c-0x1);for(let _0x3143b7=_0x37b248;_0x3143b7<_0x13a44c;_0x3143b7++)_0x36bbb7[_0x3143b7]['side']=_0x3143b7<=_0x19bf61?-0x1:_0x3143b7<_0x27f009?0x0:0x1,_0x36bbb7[_0x3143b7]['index']=_0x3143b7;let _0x2e5444=0x0;for(let _0xcc56b6=_0x37b248;_0xcc56b6<=_0x19bf61;_0xcc56b6++)0x0==_0x36bbb7[_0xcc56b6]['distance']?_0x36bbb7[_0xcc56b6]['level']=_0x2e5444:(_0x2e5444++,_0x36bbb7[_0xcc56b6]['level']=_0x2e5444,_0x2e5444++);for(let _0x4d5137=_0x37b248;_0x4d5137<_0x13a44c;_0x4d5137++)0x0==_0x36bbb7[_0x4d5137]['side']&&(_0x36bbb7[_0x4d5137]['level']=_0x2e5444);_0x2e5444=0x0;for(let _0xbe96e=_0x13a44c-0x1;_0xbe96e>=_0x27f009;_0xbe96e--)0x0==_0x36bbb7[_0xbe96e]['distance']?_0x36bbb7[_0xbe96e]['level']=_0x2e5444:(_0x2e5444--,_0x36bbb7[_0xbe96e]['level']=_0x2e5444,_0x2e5444--);}}['_fixObsoleteTags'](_0x28c331){const _0x4ab5fa=new Map(),_0x87958e=this['editor']['model']['schema'];for(let _0x1c18c8=0x1;_0x1c18c8<_0x28c331['length'];_0x1c18c8++){let _0x275251,_0x20a8f2,_0x2b274d;const _0x249dd2=_0x28c331[_0x1c18c8],_0x456d02=_0x28c331[_0x1c18c8-0x1];if('text'==_0x249dd2['type'])continue;if(_0x249dd2['type']!=_0x456d02['type'])continue;if(!_0x87958e['isBlock'](_0x456d02['item'])||_0x87958e['isLimit'](_0x456d02['item']))continue;if(!_0x87958e['isBlock'](_0x249dd2['item'])||_0x87958e['isLimit'](_0x249dd2['item']))continue;if((_0x28c331[_0x1c18c8]['isAdded']||_0x28c331[_0x1c18c8]['isAddSuggestion'])&&_0x28c331[_0x1c18c8-0x1]['isRemoved'])_0x275251=_0x28c331[_0x1c18c8],_0x20a8f2=_0x28c331[_0x1c18c8-0x1],_0x2b274d=_0x1c18c8-0x1;else{if(!_0x28c331[_0x1c18c8]['isRemoved']||!_0x28c331[_0x1c18c8-0x1]['isAdded']&&!_0x28c331[_0x1c18c8-0x1]['isAddSuggestion'])continue;_0x275251=_0x28c331[_0x1c18c8-0x1],_0x20a8f2=_0x28c331[_0x1c18c8],_0x2b274d=_0x1c18c8;}const _0x487e19=_0x275251['level']==_0x20a8f2['level'],_0x2b7f96=Math['abs'](_0x275251['level'])<Math['abs'](_0x20a8f2['level'])&&0x0==_0x20a8f2['distance'];(_0x487e19||_0x2b7f96)&&(_0x4ab5fa['set'](_0x20a8f2['id'],_0x275251['id']),_0x28c331['splice'](_0x2b274d,0x1),_0x1c18c8--,_0x275251['isAdded']=!0x1);}for(let _0x52fca5=0x0;_0x52fca5<_0x28c331['length'];_0x52fca5++)_0x4ab5fa['has'](_0x28c331[_0x52fca5]['pairId'])&&(_0x28c331[_0x52fca5]['pairId']=_0x4ab5fa['get'](_0x28c331[_0x52fca5]['pairId']));}['_removeMissingPairs'](_0x2d8552){const _0x33efa9=new Set(_0x2d8552['map'](_0x3611e2=>_0x3611e2['id']));for(let _0x637115=0x0;_0x637115<_0x2d8552['length'];_0x637115++)_0x33efa9['has'](_0x2d8552[_0x637115]['pairId'])||0x0==_0x2d8552[_0x637115]['distance']||(_0x2d8552[_0x637115]['isIncorrect']=!0x0);return _0x2d8552['filter'](_0x1810a6=>!_0x1810a6['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4c8c7a){const _0x2943dc=new Set();for(let _0x56e66c=0x0;_0x56e66c<_0x4c8c7a['length'];_0x56e66c++){if(_0x2943dc['has'](_0x4c8c7a[_0x56e66c]['id'])&&_0x4c8c7a[_0x56e66c]['isRemoved']&&(_0x4c8c7a[_0x56e66c]['isIncorrect']=!0x0),_0x4c8c7a[_0x56e66c]['isIncorrect'])continue;if(0x0==_0x4c8c7a[_0x56e66c]['distance'])continue;if('elementStart'!=_0x4c8c7a[_0x56e66c]['type'])continue;if(null==_0x4c8c7a[_0x56e66c]['pairId'])continue;let _0x14e580=_0x56e66c+0x1,_0x3916fb=0x0;for(;_0x4c8c7a[_0x14e580]['id']!=_0x4c8c7a[_0x56e66c]['pairId'];)'elementStart'==_0x4c8c7a[_0x14e580]['type']?_0x3916fb++:'elementEnd'==_0x4c8c7a[_0x14e580]['type']&&_0x3916fb--,_0x14e580++;if(0x0!=_0x3916fb){if(_0x4c8c7a[_0x56e66c]['isRemoved'])_0x4c8c7a[_0x56e66c]['isIncorrect']=!0x0;else{for(;_0x14e580!=_0x56e66c;)_0x4c8c7a[_0x14e580]['isRemoved']&&0x0!=_0x4c8c7a[_0x14e580]['distance']&&(_0x4c8c7a[_0x14e580]['isIncorrect']=!0x0,_0x2943dc['add'](_0x4c8c7a[_0x14e580]['pairId'])),_0x14e580--;}}}return _0x4c8c7a['filter'](_0xd19d33=>!_0xd19d33['isIncorrect']);}['_removeUnsupportedChanges'](_0xe7832f){const _0x3e9780=this['editor']['model']['schema'];for(let _0x2fc903=0x0;_0x2fc903<_0xe7832f['length'];_0x2fc903++){if(!(_0xe7832f[_0x2fc903]['isAdded']||_0xe7832f[_0x2fc903]['isAddSuggestion']||_0xe7832f[_0x2fc903]['isRemoved']||_0xe7832f[_0x2fc903]['isRemoveSuggestion']))continue;if(0x0==_0xe7832f[_0x2fc903]['distance'])continue;const _0x167871=_0xe7832f[_0x2fc903]['item'];_0x3e9780['isBlock'](_0x167871)||_0x3e9780['isLimit'](_0x167871)||(_0xe7832f[_0x2fc903]['isAdded']&&delete _0xe7832f[_0x2fc903]['isAdded'],_0xe7832f[_0x2fc903]['isAddSuggestion']&&delete _0xe7832f[_0x2fc903]['isAddSuggestion'],_0xe7832f[_0x2fc903]['isRemoveSuggestion']&&delete _0xe7832f[_0x2fc903]['isRemoveSuggestion'],_0xe7832f[_0x2fc903]['isRemoved']&&(_0xe7832f[_0x2fc903]['isIncorrect']=!0x0));}return _0xe7832f['filter'](_0x17c89c=>!_0x17c89c['isIncorrect']);}['_makeModelFromTape'](_0x41d309,_0x46b9fe,_0x3c8691){const _0x144b38=new gt(),_0x18da94=[],_0x12580e=new Map(),_0x3cb1bb=this['editor']['model'],_0x5f1b43=_0x3cb1bb['schema'],_0x515943=[_0x144b38],_0x1b736d={},_0x29427a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xe212ef=null;const _0x5b4f46=[0x0];for(let _0xe5f51=0x0;_0xe5f51<_0x41d309['length'];_0xe5f51++)if('elementStart'===_0x41d309[_0xe5f51]['type']){_0x41d309[_0xe5f51]['previousPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46);const _0x29242b=new ut(_0x41d309[_0xe5f51]['item']['name'],_0x41d309[_0xe5f51]['item']['getAttributes']());_0x515943[0x0]['_appendChild'](_0x29242b),_0x5b4f46['push'](0x0),_0x515943['unshift'](_0x29242b),_0x41d309[_0xe5f51]['nextPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46);}else'elementEnd'===_0x41d309[_0xe5f51]['type']?(_0x515943['shift'](),_0x41d309[_0xe5f51]['previousPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46),_0x5b4f46['pop'](),_0x5b4f46[_0x5b4f46['length']-0x1]++,_0x41d309[_0xe5f51]['nextPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46)):(_0x41d309[_0xe5f51]['previousPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46),_0xe212ef?_0xe212ef['_data']+=_0x41d309[_0xe5f51]['item']['data']:_0xe212ef=new mt(_0x41d309[_0xe5f51]['item']['data'],_0x41d309[_0xe5f51]['item']['getAttributes']()),_0x41d309[_0xe5f51+0x1]&&'text'===_0x41d309[_0xe5f51+0x1]['type']&&_0x42fbd1(_0xe212ef,_0x41d309[_0xe5f51+0x1]['item'])||(_0x515943[0x0]['_appendChild'](_0xe212ef),_0xe212ef=null),_0x5b4f46[_0x5b4f46['length']-0x1]+=_0x41d309[_0xe5f51]['item']['offsetSize'],_0x41d309[_0xe5f51]['nextPosition']=_0x3cb1bb['createPositionFromPath'](_0x144b38,_0x5b4f46));for(let _0x33ea56=0x0;_0x33ea56<_0x41d309['length'];_0x33ea56++){const _0x963679=_0x41d309[_0x33ea56]['previousPosition'],_0x3bd6fc=_0x41d309[_0x33ea56]['nextPosition'];for(const _0x124097 of _0x41d309[_0x33ea56]['markersStart'])_0x12580e['set'](_0x124097,{'start':_0x963679,'end':null});_0x3a802f('isRemoveSuggestion',_0x33ea56,_0x963679,_0x3bd6fc),_0x3a802f('isAddSuggestion',_0x33ea56,_0x963679,_0x3bd6fc),_0x3a802f('isRemoved',_0x33ea56,_0x963679,_0x3bd6fc),_0x3a802f('isAdded',_0x33ea56,_0x963679,_0x3bd6fc);for(const _0x2058c5 of _0x41d309[_0x33ea56]['markersEnd']){const _0x5225be=_0x12580e['get'](_0x2058c5);_0x5225be?_0x5225be['end']=_0x3bd6fc:_0x12580e['set'](_0x2058c5,{'start':_0x3bd6fc,'end':_0x3bd6fc});}}for(const [_0xe94c05,_0x1484fa]of _0x12580e){const _0x23981d=this['editor']['model']['createRange'](_0x1484fa['start'],_0x1484fa['end']);_0x144b38['markers']['set'](_0xe94c05,_0x23981d);}return _0x18da94['sort']((_0x51717e,_0x3d3d17)=>{const _0x47e4c6=_0x144b38['markers']['get']('revision:'+_0x51717e['id']),_0x218955=_0x144b38['markers']['get']('revision:'+_0x3d3d17['id']);return _0x47e4c6['start']['isBefore'](_0x218955['start'])?-0x1:_0x47e4c6['start']['isAfter'](_0x218955['start'])?0x1:_0x47e4c6['end']['isBefore'](_0x218955['end'])?-0x1:_0x47e4c6['end']['isAfter'](_0x218955['end'])?0x1:'add'===_0x51717e['type']?-0x1:0x1;}),{'root':_0x144b38,'changes':_0x18da94};function _0x3a802f(_0x37b03b,_0x814af2,_0x219ec0,_0x2a0258){const _0x3623c6=!!_0x41d309[_0x814af2][_0x37b03b],_0x558ef3=_0x3623c6?_0x41d309[_0x814af2][_0x37b03b]['userId']:null,_0x33a44d=_0x814af2===_0x41d309['length']-0x1,_0x303316=_0x29427a[_0x37b03b][0x0],_0x146fa0=_0x5f1b43['isObject'](_0x41d309[_0x814af2]['item']);!_0x1b736d[_0x37b03b]&&_0x3623c6?_0x1b736d[_0x37b03b]={'start':_0x219ec0,'tapeItem':_0x41d309[_0x814af2],'userId':_0x558ef3,'type':_0x37b03b}:_0x1b736d[_0x37b03b]&&!_0x3623c6?(_0x1b736d[_0x37b03b]['end']=_0x219ec0,_0x36f2b2(_0x1b736d[_0x37b03b]),_0x1b736d[_0x37b03b]=null):_0x1b736d[_0x37b03b]&&_0x3623c6&&_0x1b736d[_0x37b03b]['userId']!==_0x558ef3&&(_0x1b736d[_0x37b03b]['end']=_0x219ec0,_0x303316&&_0x303316['userId']===_0x1b736d[_0x37b03b]['userId']||_0x36f2b2(_0x1b736d[_0x37b03b]),_0x1b736d[_0x37b03b]={'start':_0x219ec0,'tapeItem':_0x41d309[_0x814af2],'userId':_0x558ef3,'type':_0x37b03b}),_0x1b736d[_0x37b03b]&&_0x146fa0&&('elementStart'!==_0x41d309[_0x814af2]['type']||_0x303316&&_0x303316['userId']===_0x558ef3||_0x29427a[_0x37b03b]['unshift']({'userId':_0x558ef3,'object':_0x41d309[_0x814af2]['item'],'change':_0x1b736d[_0x37b03b]}),'elementEnd'===_0x41d309[_0x814af2]['type']&&_0x303316&&_0x303316['object']===_0x41d309[_0x814af2]['item']&&(_0x29427a[_0x37b03b]['shift'](),_0x1b736d[_0x37b03b]=_0x303316['change'])),_0x1b736d[_0x37b03b]&&_0x33a44d&&(_0x1b736d[_0x37b03b]['end']=_0x2a0258,_0x36f2b2(_0x1b736d[_0x37b03b]),_0x1b736d[_0x37b03b]=null);}function _0x36f2b2({start:_0x1cabd3,end:_0x4534f0,tapeItem:_0x2aefbf,userId:_0x47f56d,type:_0x1015e1}){const _0xc3009a=_0x2aefbf['item'],_0x310a52=_0x3cb1bb['schema']['isBlock'](_0xc3009a)&&!_0x3cb1bb['schema']['isLimit'](_0xc3009a),_0x4f513d=_0x1cabd3['nodeAfter']==_0x4534f0['parent']&&_0x4534f0['isAtStart'];if(_0x310a52&&_0x4f513d)return;const _0x30030b=_0x3cb1bb['createRange'](_0x1cabd3,_0x4534f0),_0x1c816a=_0x46b9fe['get'](_0x47f56d),_0x1b2b72=new r({'author':_0x1c816a,'type':'isAdded'==_0x1015e1||'isAddSuggestion'==_0x1015e1?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1015e1||'isRemoveSuggestion'==_0x1015e1},'createdAt':new Date(),'rootName':_0x3c8691});_0x18da94['push'](_0x1b2b72),_0x144b38['markers']['set']('revision:'+_0x1b2b72['id'],_0x30030b);}function _0x42fbd1(_0x383901,_0x50f515){const _0x4e5e7a=_0x383901['getAttributes'](),_0x2f4237=_0x50f515['getAttributes']();for(const _0x105f99 of _0x4e5e7a){if(_0x105f99[0x1]!==_0x50f515['getAttribute'](_0x105f99[0x0]))return!0x1;_0x2f4237['next']();}return _0x2f4237['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xf3d37b=>{const _0x427768=_0xf3d37b['markerName']['split'](':')[0x1],_0x48d817=this['_getChangeFromId'](_0x427768);if(!_0x48d817)return null;const _0x1235dd='add'==_0x48d817['type']?'insertion':'deletion',_0x5d31cf=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1235dd];return _0x48d817['data']['isSuggestion']&&_0x5d31cf['push']('ck-suggestion-marker-'+_0x1235dd+'-new'),this['activeChange']==_0x48d817&&_0x5d31cf['push']('ck-suggestion-marker--active'),{'classes':_0x5d31cf,'attributes':{'data-change-id':_0x427768}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5958c6=>{_0x5958c6['on']('element:pre',(_0x3e35c8,_0x3f2a96,_0x4a4ff2)=>{const _0x194d7d=_0x3f2a96['viewItem']['getChild'](0x0);if(!_0x194d7d||!_0x194d7d['is']('element','code'))return;if(!_0x4a4ff2['consumable']['consume'](_0x194d7d,{'attributes':['vid_start','vid_end']}))return;const _0x2ce7d7=_0x3f2a96['modelRange']['start']['nodeAfter'];_0x4a4ff2['writer']['setAttribute']('vid_start',_0x194d7d['getAttribute']('vid_start'),_0x2ce7d7),_0x4a4ff2['writer']['setAttribute']('vid_end',_0x194d7d['getAttribute']('vid_end'),_0x2ce7d7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x526804=>{_0x526804['on']('element',(_0x492a29,_0x546178,_0x14927d)=>{if(!_0x14927d['consumable']['consume'](_0x546178['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x546178['modelRange']['isCollapsed'])return;const _0x119506=_0x546178['modelRange']['start']['nodeAfter'];_0x119506['hasAttribute']('vid_start')||_0x119506['hasAttribute']('vid')||(_0x14927d['writer']['setAttribute']('vid_start',_0x546178['viewItem']['getAttribute']('vid_start'),_0x119506),_0x14927d['writer']['setAttribute']('vid_end',_0x546178['viewItem']['getAttribute']('vid_end'),_0x119506));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x541f8d=>_0x541f8d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1343eb,[,_0x3009f7])=>{['vid_start','vid_end','vid']['includes'](_0x3009f7)&&(_0x1343eb['return']=!0x0,_0x1343eb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x42d0c5=>{_0x42d0c5['on']('attribute:vid',(_0x18c7da,_0x3678e3,_0x4c1dd2)=>{if('\x20'!=_0x3678e3['item']['data']||_0x3678e3['item']['parent']['maxOffset']>0x1)return;if(!_0x4c1dd2['consumable']['consume'](_0x3678e3['item'],_0x18c7da['name']))return;const _0x1d661e=_0x4c1dd2['writer'],_0x4824e4=_0x4c1dd2['mapper']['toViewRange'](_0x3678e3['range']);_0x1d661e['wrap'](_0x4824e4,_0x1d661e['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5ccf71){const _0x73e8f8=_0x5ccf71['plugins']['get']('RevisionViewer');return(_0x5041e6,_0x3dc7b6,_0x1a10b3)=>{const _0x241650=_0x3dc7b6['markerName']['split'](':')[0x1],_0x584e66=_0x73e8f8['_getChangeFromId'](_0x241650);if(!_0x584e66)return null;const _0x48c649='add'==_0x584e66['type']?'split':'merge';if(!_0x1a10b3['consumable']['test'](_0x3dc7b6['markerRange'],_0x5041e6['name']))return;const _0x40643f=_0x3dc7b6['markerRange']['getWalker'](),_0x4ba73e=_0x3dc7b6['markerRange']['start'],_0x1f067d=_0x5ccf71['model']['schema'];let _0x55dbb7=null,_0x39c95c=null,_0x49aa2b=!0x1,_0x258a87=!0x1;for(const _0x4d08fe of _0x40643f){const _0x3bc883=_0x4d08fe['item'];_0x49aa2b=_0x49aa2b||_0x1f067d['isContent'](_0x3bc883);const _0x140909=_0x1a10b3['mapper']['toViewElement'](_0x3bc883);if(_0x140909&&_0x140909['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4d08fe['type']&&(_0x1f067d['isBlock'](_0x3bc883)&&!_0x1f067d['isLimit'](_0x3bc883)&&(_0x3bc883['nextSibling']||_0x4ba73e['isAtEnd']?_0x55dbb7&&_0x55dbb7['parent']==_0x3bc883||(_0x55dbb7=_0x3bc883,_0x6af2c1(_0x4d08fe['previousPosition']),_0x258a87=!0x0):_0x39c95c=_0x39c95c||_0x4d08fe['previousPosition']));}function _0x6af2c1(_0x4d07b2){const _0x264235=_0x1a10b3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x48c649}),_0x61cad3=_0x1a10b3['mapper']['toViewPosition'](_0x4d07b2);_0x584e66['data']['isSuggestion']&&_0x1a10b3['writer']['addClass']('ck-suggestion-marker-'+_0x48c649+'-new',_0x264235),_0x73e8f8['activeChange']==_0x584e66&&_0x1a10b3['writer']['addClass']('ck-suggestion-marker--active',_0x264235),_0x1a10b3['writer']['insert'](_0x61cad3,_0x264235),_0x1a10b3['mapper']['bindElementToMarker'](_0x264235,_0x3dc7b6['markerName']);}_0x49aa2b||_0x258a87||!_0x39c95c||_0x6af2c1(_0x39c95c);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xbd280b,_0x277eed,_0x326619)=>{const _0x12c05a=_0x326619['mapper']['markerNameToElements'](_0x277eed['markerName']);if(_0x12c05a){for(const _0x381276 of _0x12c05a)(_0x381276['hasClass']('ck-suggestion-marker-split')||_0x381276['hasClass']('ck-suggestion-marker-merge'))&&(_0x326619['mapper']['unbindElementFromMarkerName'](_0x381276,_0x277eed['markerName']),_0x326619['writer']['remove'](_0x381276));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x24e6c6,_0x216b29,_0x4d6d21)=>{const _0xe35f95=_0x216b29['markerName']['split'](':')[0x1],_0x211d29=this['_getChangeFromId'](_0xe35f95);if(!_0x211d29)return null;const _0x34e8aa='add'==_0x211d29['type']?'split':'merge';if(_0x4d6d21['consumable']['test'](_0x216b29['markerRange'],_0x24e6c6['name']))for(const _0x577a65 of _0x216b29['markerRange']['getItems']()){if(!_0x577a65['is']('element','softBreak'))continue;const _0x1a2177=_0x4d6d21['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34e8aa}),_0x188a29=_0x4d6d21['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x577a65));_0x211d29['data']['isSuggestion']&&_0x4d6d21['writer']['addClass']('ck-suggestion-marker-'+_0x34e8aa+'-new',_0x1a2177),this['activeChange']==_0x211d29&&_0x4d6d21['writer']['addClass']('ck-suggestion-marker--active',_0x1a2177),_0x4d6d21['writer']['insert'](_0x188a29,_0x1a2177),_0x4d6d21['mapper']['bindElementToMarker'](_0x1a2177,_0x216b29['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1b098c=>{for(const _0x5a04fb of this['editor']['model']['document']['getRootNames']()){const _0x54420=this['editor']['model']['document']['getRoot'](_0x5a04fb),_0x1e67f6=this['editor']['editing']['view']['document']['getRoot'](_0x5a04fb);if(_0x1e67f6){const _0x542565=_0x54420['getAttribute']('revisionHistoryAttachChange');if(_0x1b098c['removeAttribute']('data-change-id',_0x1e67f6),_0x1b098c['removeClass']('ck-revision-history-root-add',_0x1e67f6),_0x1b098c['removeClass']('ck-revision-history-root-remove',_0x1e67f6),_0x1b098c['removeClass']('ck-revision-history-root--active',_0x1e67f6),_0x542565){const _0x56fa31=this['_getChangeFromId'](_0x542565);if(!_0x56fa31)return null;_0x1b098c['setAttribute']('data-change-id',_0x542565,_0x1e67f6),_0x1b098c['addClass']('ck-revision-history-root-'+_0x56fa31['type'],_0x1e67f6),this['activeChange']==_0x56fa31&&_0x1b098c['addClass']('ck-revision-history-root--active',_0x1e67f6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x484125=>'revision-comment:'+_0x484125,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2350c8=>'revision-suggestion:'+_0x2350c8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x56e838=>({'name':'suggestion:'+_0x56e838,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x42e9b2=>{const _0x404c3e=_0x42e9b2['markerName']['split'](':')[0x1];return'insertion'!=_0x404c3e&&'deletion'!=_0x404c3e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x404c3e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x307179,_0x293aae,_0x77fe1)=>{const _0x38d9e9=_0x77fe1['mapper']['markerNameToElements'](_0x293aae['markerName']);if(_0x38d9e9){for(const _0x4e73f8 of _0x38d9e9)_0x4e73f8['is']('uiElement')&&(_0x77fe1['mapper']['unbindElementFromMarkerName'](_0x4e73f8,_0x293aae['markerName']),_0x77fe1['writer']['remove'](_0x4e73f8));}},{'priority':'high'});}['_getChangeFromId'](_0x5122e8){return this['_changeIdToChange']['get'](_0x5122e8);}['_getViewForChange'](_0x33d52f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x33d52f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x570687,_0x1f246c,_0x45a6e3,_0x4f8a3d)=>{_0x4f8a3d&&this['_balloon']['remove'](_0x4f8a3d),_0x45a6e3&&(this['_balloon']['add']({'view':_0x45a6e3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2f6c1c=this['editor']['editing'],_0x573b8b=this['_getChangeFromId'](_0x45a6e3['changeId']);let _0x52db02;if(_0x573b8b['data']['isOnRoot']){const _0x11e10e=_0x2f6c1c['view']['getDomRoot'](_0x573b8b['rootName']);_0x52db02=Array['from'](_0x11e10e['getClientRects']());}else{const _0x10e77b=this['editor']['model']['markers']['get']('revision:'+_0x45a6e3['changeId']);_0x52db02=Array['from'](_0x2f6c1c['mapper']['markerNameToElements'](_0x10e77b['name']))['map'](_0x1f1252=>_0x2f6c1c['view']['domConverter']['mapViewToDom'](_0x1f1252))['map'](_0x72ffbf=>Array['from'](_0x72ffbf['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x52db02[0x0];return _0x52db02['find'](_0x4283f8=>_0x4283f8['top']-0x3<=this['_activeViewTarget']['y']&&_0x4283f8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4283f8['left']-0x3<=this['_activeViewTarget']['x']&&_0x4283f8['right']+0x3>=this['_activeViewTarget']['x'])||_0x52db02[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x9e511d,_0x3c44b0,_0x210b75,_0x3aaff2)=>{this['activeView']=_0x210b75?this['_getViewForChange'](_0x210b75):null,this['editor']['model']['change'](()=>{const _0x2e1153=this['editor']['editing'];_0x3aaff2&&(_0x3aaff2['data']['isOnRoot']?_0x2e1153['view']['change'](_0x8112c=>{_0x8112c['removeClass']('ck-revision-history-root--active',_0x2e1153['view']['document']['getRoot'](_0x3aaff2['rootName']));}):_0x2e1153['reconvertMarker']('revision:'+_0x3aaff2['id'])),_0x210b75&&(_0x210b75['data']['isOnRoot']?_0x2e1153['view']['change'](_0x488822=>{_0x488822['addClass']('ck-revision-history-root--active',_0x2e1153['view']['document']['getRoot'](_0x210b75['rootName']));}):_0x2e1153['reconvertMarker']('revision:'+_0x210b75['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xbe91d8,_0x39fa65)=>{if(this['activeChange'])return;const _0x47bd4f=this['_findChangeIdFromDomTarget'](_0x39fa65['target']),_0xe2df36=this['_changeIdToChange']['get'](_0x47bd4f);_0xe2df36?(this['_activeViewTarget']={'x':_0x39fa65['domEvent']['x'],'y':_0x39fa65['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe2df36)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x280d14,_0x17161d)=>{const _0x1c726d=this['_findChangeIdFromDomTarget'](_0x17161d['target']),_0x552e4e=this['_changeIdToChange']['get'](_0x1c726d);_0x552e4e?(this['_activeViewTarget']={'x':_0x17161d['domEvent']['x'],'y':_0x17161d['domEvent']['y']},_0x552e4e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x552e4e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x51dc04){do{const _0x5c4e28=_0x51dc04['getAttribute']('data-change-id');if(_0x5c4e28)return _0x5c4e28;_0x51dc04=_0x51dc04['parent'];}while(_0x51dc04);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1c08c9=>{for(const _0xe8bed5 of this['editor']['model']['markers'])_0x1c08c9['removeMarker'](_0xe8bed5);});}}function X(_0x524d0d,_0x49e10d){return(_0x1d8b18,_0x5e293d,_0x363730)=>{if(!_0x363730['consumable']['test'](_0x5e293d['markerRange'],_0x1d8b18['name']))return;const _0x4bb374=_0x5e293d['markerRange']['getWalker'](),_0x5a58cf=_0x5e293d['markerRange']['start'],_0x4be93a=_0x524d0d['model']['schema'];let _0x505be1=null,_0x41f249=null,_0x2d15f6=!0x1,_0x2e897f=!0x1;for(const _0xce5e51 of _0x4bb374){const _0x4a8e01=_0xce5e51['item'];_0x2d15f6=_0x2d15f6||_0x4be93a['isContent'](_0x4a8e01);const _0x332b96=_0x363730['mapper']['toViewElement'](_0x4a8e01);if(_0x332b96&&_0x332b96['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xce5e51['type']&&(_0x4be93a['isBlock'](_0x4a8e01)&&!_0x4be93a['isLimit'](_0x4a8e01)&&(_0x4a8e01['nextSibling']||_0x5a58cf['isAtEnd']?_0x505be1&&_0x505be1['parent']==_0x4a8e01||(_0x505be1=_0x4a8e01,_0x5ea6bc(_0xce5e51['previousPosition']),_0x2e897f=!0x0):_0x41f249=_0x41f249||_0xce5e51['previousPosition']));}function _0x5ea6bc(_0xd9e1d2){const _0x3c61c2=_0x363730['mapper']['toViewPosition'](_0xd9e1d2),_0x18e37e=_0x363730['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x49e10d});_0x363730['writer']['insert'](_0x3c61c2,_0x18e37e),_0x363730['mapper']['bindElementToMarker'](_0x18e37e,_0x5e293d['markerName']);}_0x2d15f6||_0x2e897f||!_0x41f249||_0x5ea6bc(_0x41f249);};}class wt extends _0x401a09{constructor(_0x26304e){super(_0x26304e);const _0x1cfa77=_0x26304e['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x1cfa77,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1cfa77,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1fac99=this['editor'],_0x3ff70b=_0x1fac99['plugins']['get'](m),_0xa8cb0a=_0x3ff70b['isReady']?_0x3ff70b['diff']['newRevisionId']:null;_0x1fac99['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xa8cb0a);}['refresh'](){const {isReady:_0x147561,isEnabled:_0x242c7f,repository:_0x2a3c97,diff:_0x5931a9}=this['editor']['plugins']['get'](m),_0x919b06=_0x5931a9&&_0x2a3c97['getLaterVisibleRevision'](_0x5931a9['newRevisionId']);this['isEnabled']=_0x147561&&_0x242c7f&&Boolean(_0x919b06);}}class pt extends _0x401a09{['_step'];constructor(_0x2f87e9,{direction:_0x5e80dd}){super(_0x2f87e9);const _0x53ab57=_0x2f87e9['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x5e80dd?0x1:-0x1,this['listenTo'](_0x53ab57,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x53ab57,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x53ab57,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x163302=this['editor'],_0x6b8626=_0x163302['plugins']['get'](m),{isNavigationMode:_0x2c0212,currentChangeNumber:_0x1c01ef}=_0x6b8626;let _0xa2722f;if(_0x6b8626['activeChange']=_0x2c0212?_0x6b8626['diff']['changes']['get'](_0x1c01ef+this['_step']):_0x6b8626['diff']['changes']['first'],_0x6b8626['activeChange']['data']['isOnRoot'])_0xa2722f=_0x163302['editing']['view']['getDomRoot'](_0x6b8626['activeChange']['rootName']);else{const _0x1ca18d=_0x163302['model']['markers']['get']('revision:'+_0x6b8626['activeChange']['id']);_0xa2722f=_0x1796b3(_0x163302['editing'],_0x1ca18d);}_0x1de65e({'target':_0xa2722f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x753b6b,currentChangeNumber:_0xfb802a,numberOfChanges:_0x5e1599,isReady:_0x5d9deb,isEnabled:_0x2be783}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x2be783&&_0x5d9deb&&_0x5e1599)&&(!_0x753b6b||(0x1===this['_step']?_0xfb802a<_0x5e1599-0x1:_0xfb802a>0x0));}}class li extends _0x431dcc{constructor(_0x131479){super(_0x131479);const _0x5354bf=this['bindTemplate'],_0x233f47=new _0xe0a7f0(_0x131479),_0x2092a1=new _0xe0a7f0(_0x131479);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',(_0x2b11df,_0x2d3d53)=>_0x2b11df&&_0x2d3d53>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3aea8b,_0x1c42f9,_0x1ef800,_0x5dd6d9)=>{if(!_0x3aea8b)return g(_0x131479,'Loading...');if(!_0x1ef800)return g(_0x131479,'No\x20changes');const _0x18c24f=g(_0x131479,'NUMBER_OF_CHANGES',_0x1ef800);return _0x5dd6d9?g(_0x131479,'X_OF_Y_CHANGES',[_0x1c42f9+0x1,_0x1ef800]):_0x18c24f;}),_0x233f47['set']({'label':g(_0x131479,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1a5458}),_0x2092a1['set']({'label':g(_0x131479,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x288c90}),_0x233f47['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2092a1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x233f47['on']('execute',()=>this['fire']('execute','backward')),_0x2092a1['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',_0x5354bf['if']('_isStatusLabelVisible','ck-hidden',_0xe55a31=>!_0xe55a31)]},'children':[{'text':_0x5354bf['to']('isNavigationMode',_0xc1a16f=>_0xc1a16f?g(_0x131479,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x131479,'Total')+':\x20')}]},{'text':_0x5354bf['to']('_statusText')}]},new _0x262df3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x233f47,_0x2092a1]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x34d9d9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x598b4e=this['editor']['editing']['view'];_0x598b4e['change'](_0xc1bea3=>{for(const _0xd1adab of _0x598b4e['document']['roots'])_0xc1bea3['addClass'](ce,_0xd1adab);});}['hide'](){const _0x310c8a=this['editor']['editing']['view'];_0x310c8a['change'](_0x193375=>{for(const _0x586f74 of _0x310c8a['document']['roots'])_0x193375['removeClass'](ce,_0x586f74);});}}class R extends _0x34d9d9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x143a8f=this['editor'],_0x3bab2c=_0x143a8f['plugins']['get'](m),_0x2c8188=_0x143a8f['plugins']['get'](le);_0x143a8f['ui']['componentFactory']['add']('exitToEditing',_0x39a95f=>{const _0x58a7e5=new _0xe0a7f0(_0x39a95f);return _0x58a7e5['set']({'label':g(_0x39a95f,'Back\x20to\x20editing'),'icon':_0x4a8aab,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x58a7e5,'execute',()=>{_0x143a8f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x58a7e5;}),_0x143a8f['ui']['componentFactory']['add']('restoreRevision',_0xcfd2ca=>{const _0x3c303c=new _0xe0a7f0(_0xcfd2ca);return _0x3c303c['set']({'label':g(_0xcfd2ca,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3c303c['bind']('isEnabled')['to'](_0x143a8f['commands']['get']('restoreRevision')),this['listenTo'](_0x3c303c,'execute',()=>_0x143a8f['execute']('restoreRevision')),_0x3c303c;}),_0x143a8f['ui']['componentFactory']['add']('changesNavigation',_0x1320cb=>{const _0x3a0e96=new li(_0x1320cb),_0x2238ac=_0x143a8f['commands']['get']('showPreviousChange'),_0x2484cf=_0x143a8f['commands']['get']('showNextChange');return _0x3a0e96['bind']('isBackwardNavigationEnabled')['to'](_0x2238ac,'isEnabled'),_0x3a0e96['bind']('isForwardNavigationEnabled')['to'](_0x2484cf,'isEnabled'),_0x3a0e96['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3bab2c),this['listenTo'](_0x3a0e96,'execute',(_0x366ae0,_0x32957d)=>{_0x143a8f['execute']('forward'===_0x32957d?'showNextChange':'showPreviousChange');}),_0x3a0e96;}),_0x2c8188['show'](),_0x3bab2c['on']('change:isReady',(_0x486b7c,_0x18a388,_0x5048ae)=>{_0x5048ae?_0x2c8188['hide']():_0x2c8188['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x4686d9,_0x23ad34){super(_0x4686d9,_0x23ad34);const _0x16b9cc=this['bindTemplate'];this['set']({'label':g(_0x4686d9,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x4686d9,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x16b9cc['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x308fe2=this['fieldView']['element'];this['_tooltipString']=_0x308fe2['scrollWidth']>_0x308fe2['clientWidth']&&_0x308fe2['value']||'';}}class oi extends _0x431dcc{constructor(_0x314bae,_0x6cae9a,_0x2560d5){super(_0x314bae);const _0x5e7ac9=new _0x258501();_0x5e7ac9['set']({'content':_0x52c008,'viewBox':'0\x200\x2011\x2010'});const _0xe6b4f6=['ck','ck-revision-history-sidebar__revision-author'];_0x2560d5&&_0xe6b4f6['push']('ck-revision-history-sidebar__revision-author_creator');const _0x570eeb=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x314bae,_0x2560d5?'Revision\x20creator':'Revision\x20author')},'children':[_0x5e7ac9,_0x6cae9a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xe6b4f6},'children':_0x570eeb});}}function ni(_0x38fd23,_0x18f34b){const _0x1d37a2=_0x38fd23['bindTemplate'],_0x5d16f4=_0x38fd23['locale'],_0x2060ef=_0x52ab85(_0x5d16f4);_0x2060ef['panelPosition']='sw';const _0x516b83=function(_0xddd817,_0x201660){const _0x202e73=function(_0x2f673d,_0x57d3d8){const _0x3d1f2b=_0x2f673d['locale'],_0x5a5238={'Compare\x20against\x20selected':g(_0x3d1f2b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x3d1f2b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x3d1f2b,'Restore\x20this\x20revision')};return _0x57d3d8['map'](_0x45c5c9=>{const _0x59515e=_0x5a5238[_0x45c5c9['name']];return _0x59515e&&_0x59515e!==_0x45c5c9['name']&&(_0x45c5c9['name']=_0x59515e),_0x45c5c9;});}(_0xddd817,_0x201660),_0x31277d=new _0x346a75();for(const _0x2e8d39 of _0x202e73){const _0x351236={'type':'button','model':new to({'label':_0x2e8d39['name'],'class':_0x2e8d39['class'],'withText':!0x0,'role':'menuitem','_action':_0x2e8d39['action']})};_0x351236['model']['bind']('isEnabled')['to'](_0xddd817,'isActionsDropdownOpen',_0x349418=>'function'!=typeof _0x2e8d39['isEnabled']||(!_0x349418||_0x2e8d39['isEnabled'](_0xddd817))),_0x31277d['add'](_0x351236);}return _0x31277d;}(_0x38fd23,_0x18f34b);return _0x38fd23['bind']('isActionsDropdownOpen')['to'](_0x2060ef,'isOpen'),_0x2060ef['buttonView']['set']({'label':g(_0x5d16f4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x306bd1}),_0x2060ef['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1d37a2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1d37a2['to'](_0x5e87b9=>_0x5e87b9['stopPropagation']())}}),_0x2060ef['on']('execute',_0x1dd852=>{_0x38fd23['isReady']&&'function'==typeof _0x1dd852['source']['_action']&&_0x1dd852['source']['_action'](_0x38fd23);}),_0x1f1c9c(_0x2060ef,_0x516b83,{'role':'menu'}),_0x2060ef['listenTo'](_0x38fd23,'change:isActionsDropdownOpen',(_0xa26b0e,_0x340196,_0x19caa5)=>{if(_0x19caa5)for(const _0x202f6b of _0x2060ef['listView']['items']){const _0x10feda=_0x202f6b['children']['first'],_0x55e344=_0x18f34b['find'](_0x416fbe=>_0x416fbe['action']===_0x10feda['_action'])['isVisible'];_0x202f6b['isVisible']=void 0x0===_0x55e344||_0x55e344(_0x38fd23);}}),_0x2060ef;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x5d9049,uid as _0x5a7eff,Collection as _0x201912,logWarning as _0x3f770d,FocusTracker as _0x1d2150,KeystrokeHandler as _0x23b021,scrollViewportToShowTarget as _0x43357b,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x5c9d7f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2d8281,set as _0x738720,unset as _0x4ddbbb,isEqual as _0x1dba9f}from'es-toolkit/compat';import{Plugin as _0x4e23c9,PendingActions as _0x75fc49,Command as _0x44b670,ElementApiMixin as _0x1df5e0,Editor as _0x33974a}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2bbe8d,getMarkerDomElement as _0x5625d8,ConfirmMixin as ti,sanitizeEditorConfig as _0x43bed1}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x455180,ViewAttributeElement as _0x2250e7,ViewEmptyElement as _0x1a1427,ViewRawElement as _0x4f51b0,ViewUIElement as _0xad452b,ViewDocumentFragment as _0x4aad50,ViewText as _0x9b3328,ViewElement as _0x1c3a33,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3e5a1e,IconChevronUp as _0xe65ac,IconChevronDown as _0x2bbf01,IconUndo as _0x59629e,IconUser as _0x42ad19,IconThreeVerticalDots as _0x19dfc7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x3a6a54,submitHandler as _0x2f1fdf,LabeledFieldView as _0xd95170,createLabeledInputText as _0x3fbf0a,createDropdown as _0x1d1841,ListView as _0x6ee4ed,ListItemView as _0x173dad,ButtonView as te,MenuBarMenuView as _0x4c3235,MenuBarMenuListView as _0x5f41fa,MenuBarMenuListItemView as _0x4701fa,MenuBarMenuListItemButtonView as _0x1f7652,ContextualBalloon as _0x13610c,ToolbarSeparatorView as _0x668f32,IconView as _0x5ada3b,addListToDropdown as _0x217bb6,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3c3f24}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d9049(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x37b477){super(),this['id']=_0x37b477['id']||_0x5a7eff(),this['creator']=_0x37b477['creator']||null,this['authors']=_0x37b477['authors']||[],this['diffData']=_0x37b477['diffData']||null,this['toVersion']=_0x37b477['toVersion']||0x0,this['fromVersion']=_0x37b477['fromVersion']||0x0,this['set']('name',_0x37b477['name']||''),this['set']('createdAt',_0x37b477['createdAt']||new Date()),this['set']('attributes',_0x37b477['attributes']||{});}['setName'](_0x48c236){this['_update']({'name':_0x48c236});}['setAttribute'](_0x15f411,_0x193d77){const _0x1825c4=_0x2d8281(this['attributes']);_0x738720(_0x1825c4,_0x15f411,_0x193d77),this['_update']({'attributes':_0x1825c4});}['removeAttribute'](_0xe25017){const _0x3f3506=_0x2d8281(this['attributes']);_0x4ddbbb(_0x3f3506,_0xe25017),this['_update']({'attributes':_0x3f3506});}['_update'](_0x2e6a1f,_0x5c0d71=!0x1){let _0x127595=!0x1;const _0x15cf74={'id':this['id']},_0x102ee5=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x244905 of _0x102ee5){const _0x1c9a87=_0x2e6a1f[_0x244905];void 0x0!==_0x1c9a87&&_0x1c9a87!==this[_0x244905]&&(this[_0x244905]=_0x1c9a87,_0x15cf74[_0x244905]=_0x1c9a87,_0x127595=!0x0);}_0x127595&&(_0x15cf74['authors']&&(_0x15cf74['authorsIds']=_0x15cf74['authors']['map'](_0x5a231b=>_0x5a231b['id']),delete _0x15cf74['authors']),this['fire']('_update',_0x15cf74,_0x5c0d71));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3b7547=>_0x3b7547['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4e23c9{['_revisions'];static get['requires'](){return[_0x2bbe8d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x31216e){super(_0x31216e),this['_revisions']=new _0x201912();}['afterInit'](){!async function(_0x274353){const _0x2e3f3e=_0x3692c3([0x6d,0x62,0x30,0x37,0x6e,0x6b,0x64,0x6f,0x4e,0x38,0x75,0x63,0x7a,0x61,0x52,0x51,0x74,0x72,0x33,0x44,0x56,0x58,0x48,0x6c,0x32,0x39,0x45,0x68,0x65,0x54,0x35,0x47,0x4c,0x34,0x4d,0x69,0x77,0x36,0x76,0x5a,0x31,0x4f,0x78,0x46,0x71,0x50,0x59,0x4a,0x53,0x79,0x42,0x6a,0x73,0x4b,0x66,0x55,0x49,0x70,0x41,0x57,0x43,0x67]),_0x233624=0xeb829,_0x3a4d11=0x530fae5,_0x33d434=0x537991d^_0x3a4d11,_0x55571e=window[_0x3692c3([0x44,0x61,0x74,0x65])][_0x3692c3([0x6e,0x6f,0x77])](),_0x3c072f=_0x274353[_0x3692c3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d5f60=new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32e693=>{_0x3c072f[_0x3692c3([0x6f,0x6e,0x63,0x65])](_0x3692c3([0x72,0x65,0x61,0x64,0x79]),_0x32e693);}),_0x2d20eb={[_0x3692c3([0x6b,0x74,0x79])]:_0x3692c3([0x45,0x43]),[_0x3692c3([0x75,0x73,0x65])]:_0x3692c3([0x73,0x69,0x67]),[_0x3692c3([0x63,0x72,0x76])]:_0x3692c3([0x50,0x2d,0x32,0x35,0x36]),[_0x3692c3([0x78])]:_0x3692c3([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]),[_0x3692c3([0x79])]:_0x3692c3([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]),[_0x3692c3([0x61,0x6c,0x67])]:_0x3692c3([0x45,0x53,0x32,0x35,0x36])},_0x107125=_0x3c072f[_0x3692c3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3692c3([0x67,0x65,0x74])](_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x71b52d(){let _0x108bb4,_0x221554=null,_0xa00a74=null;try{if(_0x107125==_0x3692c3([0x47,0x50,0x4c]))return _0x3692c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x108bb4=_0x51a6d8(),!_0x108bb4)return _0x3692c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x108bb4[_0x3692c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa00a74=_0x3c3972(_0x108bb4[_0x3692c3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x108bb4[_0x3692c3([0x6a,0x74,0x69])])),await _0x485b79()?_0x365edb()?_0x1b9338()?_0x3692c3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdcc946()?(_0x108bb4[_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3692c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x221554=_0x4948e9(_0x3692c3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x108bb4[_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3692c3([0x74,0x72,0x69,0x61,0x6c])&&(_0x221554=_0x4948e9(_0x3692c3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a22b1()):_0x3692c3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3692c3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3692c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5b5fc1){return _0x3692c3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b9338(){const _0x262ba0=[_0x3692c3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3692c3([0x74,0x72,0x69,0x61,0x6c])][_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x108bb4[_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55571e/0x3e8:0xe10*_0x33d434;return _0x108bb4[_0x3692c3([0x65,0x78,0x70])]<_0x262ba0;}function _0x365edb(){const _0x109410=_0x108bb4[_0x3692c3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x109410)return!0x1;if(_0x109410[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3692c3([0x2a])))return!0x0;if(_0x109410[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3692c3([0x52,0x48])))return!0x0;if(_0x109410[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3692c3([0x52,0x52,0x48]))){if(_0x416e32())return!0x0;if(_0x1ccfac()||_0xbc4b7c())return!0x0;}return!0x1;}function _0xdcc946(){const _0x1bebd4=_0x108bb4[_0x3692c3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bebd4||0x0==_0x1bebd4[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21969e}=new URL(window[_0x3692c3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1bebd4[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21969e))return!0x0;const _0xc4c429=_0x21969e[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])](_0x3692c3([0x2e]));return _0x1bebd4[_0x3692c3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d4f59=>_0x5d4f59[_0x3692c3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3692c3([0x2a])))[_0x3692c3([0x6d,0x61,0x70])](_0x3a6ade=>_0x3a6ade[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])](_0x3692c3([0x2e])))[_0x3692c3([0x73,0x6f,0x6d,0x65])](_0x113b3d=>_0xc4c429[_0x3692c3([0x65,0x76,0x65,0x72,0x79])]((_0x5b4bc1,_0x2496a8)=>_0x113b3d[_0x2496a8]===_0x5b4bc1||_0x113b3d[_0x2496a8]===_0x3692c3([0x2a])));}function _0x1a22b1(){return _0x221554&&_0xa00a74?new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2788cc,_0x3f20ac)=>{_0x221554[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x2788cc,_0x3f20ac),_0xa00a74[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x58b85a=>{_0x58b85a!=_0x3692c3([0x56,0x61,0x6c,0x69,0x64])&&_0x2788cc(_0x58b85a);},_0x3f20ac);}):_0x221554||_0xa00a74||_0x3692c3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c3972(_0x22ab41,_0x15eed6){return new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb0030=>{if(_0x1ea896())return _0xcb0030(_0x3692c3([0x56,0x61,0x6c,0x69,0x64]));_0xb461fb(),_0x3c072f[_0x3692c3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3692c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e053a=!0x1;const _0x4ed48b=_0x5a7eff();function _0x80882b(_0x4cf345){return!!_0x4cf345&&(typeof _0x4cf345===_0x3692c3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4cf345===_0x3692c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4cf345[_0x3692c3([0x74,0x68,0x65,0x6e])]===_0x3692c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4cf345[_0x3692c3([0x63,0x61,0x74,0x63,0x68])]===_0x3692c3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x556d81(_0x1c3746){_0x77d089(_0x1c3746)[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x5ba4f6=>{if(!_0x5ba4f6||_0x5ba4f6[_0x3692c3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3692c3([0x6f,0x6b]))return _0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41d378(_0x20c7c1(_0x4ed48b+_0x15eed6))!=_0x5ba4f6[_0x3692c3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3692c3([0x56,0x61,0x6c,0x69,0x64]);})[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x300de8=>(_0x42a36e(),_0x300de8),()=>{const _0x2f7e74=_0xeff25f();return null==_0x2f7e74?(_0x42a36e(),_0x3692c3([0x56,0x61,0x6c,0x69,0x64])):_0x3692c3(_0x55571e-_0x2f7e74>(0x213c7ee5^_0x3a4d11)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3692c3([0x74,0x68,0x65,0x6e])](_0xcb0030)[_0x3692c3([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcb0030(_0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x82a04e=0x5061465^_0x3a4d11;function _0x42a36e(){const _0x283681=_0x3692c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x41d378(_0x20c7c1(_0x22ab41)),_0x3f600d=_0x58b4a2(_0x41d378(window[_0x3692c3([0x4d,0x61,0x74,0x68])][_0x3692c3([0x63,0x65,0x69,0x6c])](_0x55571e/_0x82a04e)));window[_0x3692c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3692c3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x283681,_0x3f600d);}function _0xeff25f(){const _0x342eea=_0x3692c3([0x6c,0x6c,0x63,0x74,0x2d])+_0x41d378(_0x20c7c1(_0x22ab41)),_0x39ce3b=window[_0x3692c3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3692c3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x342eea);return _0x39ce3b?window[_0x3692c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b4a2(_0x39ce3b),0x10)*_0x82a04e:null;}function _0x77d089(_0x2faaf0){return new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55261e,_0x5d6f4c)=>{_0x2faaf0[_0x3692c3([0x74,0x68,0x65,0x6e])](_0x55261e,_0x5d6f4c),window[_0x3692c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d6f4c,0x5312e25^_0x3a4d11);});}}_0x3c072f[_0x3692c3([0x6f,0x6e])](_0x3692c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39f1c7,_0x54405b)=>{if(_0x54405b[0x0]!=_0x22ab41)return _0xcb0030(_0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54405b[0x1]={..._0x54405b[0x1],[_0x3692c3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ed48b};},{[_0x3692c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3692c3([0x68,0x69,0x67,0x68])}),_0x3c072f[_0x3692c3([0x6f,0x6e])](_0x3692c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13dc90=>{_0x80882b(_0x13dc90[_0x3692c3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e053a=!0x0,_0x556d81(_0x13dc90[_0x3692c3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3692c3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3692c3([0x6c,0x6f,0x77])}),_0x2d5f60[_0x3692c3([0x74,0x68,0x65,0x6e])](()=>{_0x5e053a||_0xcb0030(_0x3692c3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ea896(){return _0x3c072f[_0x3692c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3692c3([0x76,0x69,0x65,0x77])][_0x3692c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3692c3([0x61,0x75,0x74,0x6f]);}function _0xb461fb(){_0x3c072f[_0x3692c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3692c3([0x76,0x69,0x65,0x77])][_0x3692c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3692c3([0x61,0x75,0x74,0x6f]);}}function _0x4948e9(_0x2af8c4){const _0x104ab5=[new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220efa=>setTimeout(_0x220efa,0x539c429^_0x3a4d11)),_0x2d5f60[_0x3692c3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38459b=>{const _0x10ad73=0x530fae2^_0x3a4d11,_0x1d3569=_0x274353[_0x3692c3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x493ea5(){_0x1d3569[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x10ad73&&_0x38459b();}_0x493ea5(),_0x1d3569[_0x3692c3([0x6f,0x6e])](_0x3692c3([0x61,0x64,0x64]),_0x493ea5);})),new window[(_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22defd=>{function _0x13970d(){for(const _0x47ae15 in window)if(window[_0x3692c3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3692c3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x47ae15))&&window[_0x47ae15]==_0x233624)return _0x22defd();_0x3c072f[_0x3692c3([0x73,0x74,0x61,0x74,0x65])]!=_0x3692c3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3692c3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13970d,0x530e96d^_0x3a4d11);}_0x734281(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x13970d();})];return window[_0x3692c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3692c3([0x72,0x61,0x63,0x65])](_0x104ab5)[_0x3692c3([0x74,0x68,0x65,0x6e])](()=>_0x2af8c4);}async function _0x5421c1(){if(await _0x2d5f60,_0x734281(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x56a0b0=_0x274353[_0x3692c3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2e67ff=_0x274353[_0x3692c3([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])](_0x56a0b0[_0x3692c3([0x69,0x64])]),_0x221706=_0x485bcc(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x221706[_0x3692c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x56a0b0['id'],_0x2e67ff?_0x2e67ff['id']:null,!0x0),_0x221706[_0x3692c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3692c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x221706[_0x3692c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x221706[_0x3692c3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4fa511,void(_0x221706[_0x3692c3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4fa511);}if(_0x734281(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x58a2ae=_0x485bcc(_0x3692c3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x58a2ae[_0x3692c3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3692c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x58a2ae[_0x3692c3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x58a2ae[_0x3692c3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4fa511,_0x58a2ae[_0x3692c3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4fa511;}_0x3c072f[_0x3692c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3692c3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa511,_0x3c072f[_0x3692c3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3692c3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa511,_0x3c072f[_0x3692c3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3692c3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x416e32(){return _0x734281(_0x3692c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x485bcc(_0x3692c3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3692c3([0x73,0x74,0x61,0x74,0x65])]==_0x3692c3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ccfac(){return _0x734281(_0x3692c3([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 _0xbc4b7c(){return _0x734281(_0x3692c3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x358658(_0x4ddf54){const _0x9baaaf=_0xda700d();_0x3c072f[_0x9baaaf]=_0x3692c3([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])+_0x4ddf54,_0x4ddf54[_0x3692c3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3692c3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xda700d()]=_0x233624),_0x4ddf54!=_0x3692c3([0x56,0x61,0x6c,0x69,0x64])&&_0x5421c1();}function _0xda700d(){const _0x580fdc=window[_0x3692c3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3692c3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3692c3([0x6e,0x6f,0x77])]())[_0x3692c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3692c3([0x2e]),'');let _0x58c0d5=_0x3692c3([0x6d]);for(let _0x3e14c5=0x0;_0x3e14c5<_0x580fdc[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e14c5+=0x2){let _0x31e61d=window[_0x3692c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x580fdc[_0x3692c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e14c5,_0x3e14c5+0x2));_0x31e61d>=_0x2e3f3e[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31e61d-=_0x2e3f3e[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58c0d5+=_0x2e3f3e[_0x31e61d];}return _0x58c0d5;}function _0x51a6d8(){const _0x5c0bcf=_0x107125[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])](_0x3692c3([0x2e]));if(0x3!=_0x5c0bcf[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3763bf(_0x5c0bcf[0x1]);function _0x3763bf(_0x1b0b8e){const _0x24a5dc=_0x362acc(_0x1b0b8e);return _0x24a5dc&&_0x38a6cf()?_0x24a5dc:null;function _0x38a6cf(){const _0x45e616=_0x24a5dc[_0x3692c3([0x6a,0x74,0x69])],_0x54e7de=window[_0x3692c3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45e616[_0x3692c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45e616[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5025c2={..._0x24a5dc,[_0x3692c3([0x6a,0x74,0x69])]:_0x45e616[_0x3692c3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45e616[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5025c2[_0x3692c3([0x76,0x63])],_0x20c7c1(_0x5025c2)==_0x54e7de;}}}async function _0x485b79(){let _0x582a32=!0x0;try{const _0x147728=_0x107125[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])](_0x3692c3([0x2e])),[_0x378554,_0x589066,_0x5a0809]=_0x147728;return _0x17f057(_0x378554),await _0x3b0323(_0x378554,_0x589066,_0x5a0809),_0x582a32;}catch(_0x39ca95){return!0x1;}function _0x17f057(_0x5abd93){const _0x33980a=_0x362acc(_0x5abd93);_0x33980a&&_0x33980a[_0x3692c3([0x61,0x6c,0x67])]==_0x3692c3([0x45,0x53,0x32,0x35,0x36])||(_0x582a32=!0x1);}async function _0x3b0323(_0x1912b5,_0x43e038,_0x30d56d){const _0x5864cf=window[_0x3692c3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3692c3([0x66,0x72,0x6f,0x6d])](_0x3dd024(_0x30d56d),_0x40b980=>_0x40b980[_0x3692c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x310d13=new window[(_0x3692c3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3692c3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1912b5+_0x3692c3([0x2e])+_0x43e038),_0x3cd296=window[_0x3692c3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3692c3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cd296)return;const _0x3bd668=await _0x3cd296[_0x3692c3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3692c3([0x6a,0x77,0x6b]),_0x2d20eb,{[_0x3692c3([0x6e,0x61,0x6d,0x65])]:_0x3692c3([0x45,0x43,0x44,0x53,0x41]),[_0x3692c3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3692c3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3692c3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cd296[_0x3692c3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3692c3([0x6e,0x61,0x6d,0x65])]:_0x3692c3([0x45,0x43,0x44,0x53,0x41]),[_0x3692c3([0x68,0x61,0x73,0x68])]:{[_0x3692c3([0x6e,0x61,0x6d,0x65])]:_0x3692c3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3bd668,_0x5864cf,_0x310d13)||(_0x582a32=!0x1);}}function _0x362acc(_0x5bc2d5){return _0x5bc2d5[_0x3692c3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3692c3([0x65,0x79]))?JSON[_0x3692c3([0x70,0x61,0x72,0x73,0x65])](_0x3dd024(_0x5bc2d5)):null;}function _0x3dd024(_0x5c6871){return window[_0x3692c3([0x61,0x74,0x6f,0x62])](_0x5c6871[_0x3692c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3692c3([0x2b]))[_0x3692c3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3692c3([0x2f])));}function _0x20c7c1(_0x86def0){let _0xa54650=0x1505;function _0x1c90ec(_0x56c4ad){for(let _0x373030=0x0;_0x373030<_0x56c4ad[_0x3692c3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x373030++){const _0x3c9e2c=_0x56c4ad[_0x3692c3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x373030);_0xa54650=(_0xa54650<<0x5)+_0xa54650+_0x3c9e2c,_0xa54650&=_0xa54650;}}function _0x5c26e2(_0x11933d){Array[_0x3692c3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11933d)?_0x11933d[_0x3692c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c26e2):_0x11933d&&typeof _0x11933d==_0x3692c3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3692c3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11933d)[_0x3692c3([0x73,0x6f,0x72,0x74])]()[_0x3692c3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5fa36b,_0x54ea45])=>{_0x1c90ec(_0x5fa36b),_0x5c26e2(_0x54ea45);}):_0x1c90ec(window[_0x3692c3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11933d));}return _0x5c26e2(_0x86def0),_0xa54650>>>0x0;}function _0x41d378(_0x3b5444){return _0x3b5444[_0x3692c3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3692c3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3692c3([0x30]));}function _0x58b4a2(_0x2a77e0){return _0x2a77e0[_0x3692c3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3692c3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3692c3([0x6a,0x6f,0x69,0x6e])]('');}function _0x734281(_0x40ff80){return _0x3c072f[_0x3692c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3692c3([0x68,0x61,0x73])](_0x40ff80);}function _0x485bcc(_0x56c5a6){return _0x3c072f[_0x3692c3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3692c3([0x67,0x65,0x74])](_0x56c5a6);}function _0x4fa511(){}function _0x3692c3(_0x16dc13){return _0x16dc13['map'](_0x1e9951=>String['fromCharCode'](_0x1e9951))['join']('');}_0x358658(await _0x71b52d());}(this);}['createRevision'](_0x29aae2){const _0x2c7855=this['editor']['plugins']['get']('Users');return new h({'id':_0x29aae2['id'],'name':_0x29aae2['name'],'creator':_0x29aae2['creatorId']?_0x2c7855['getUser'](_0x29aae2['creatorId']):null,'diffData':_0x29aae2['diffData']||_0x29aae2['data'],'authors':_0x29aae2['authorsIds']['map'](_0x5e2330=>_0x2c7855['getUser'](_0x5e2330)),'createdAt':new Date(_0x29aae2['createdAt']),'attributes':_0x29aae2['attributes'],'fromVersion':_0x29aae2['fromVersion'],'toVersion':_0x29aae2['toVersion']});}['addRevision'](_0xe8e94d,_0xeba6e2=0x0){this['_revisions']['add'](_0xe8e94d,_0xeba6e2);}['getRevision'](_0x157f0e){return this['_revisions']['get'](_0x157f0e);}['getRevisions'](_0x50b662={'toJSON':!0x1}){const _0x46e2da=Array['from'](this['_revisions']);return _0x46e2da['reverse'](),_0x50b662['toJSON']?_0x46e2da['map'](_0x53da72=>_0x53da72['toJSON']()):_0x46e2da;}['getIndex'](_0x465a63){return this['_revisions']['getIndex'](_0x465a63);}['getEarlierVisibleRevision'](_0x46bb6e){const [,_0x4e3656]=this['getRevisionsIterator'](_0x46bb6e,{'direction':'earlier'});return _0x4e3656;}['getLaterVisibleRevision'](_0x5a79b4){const [,_0xf4ec16]=this['getRevisionsIterator'](_0x5a79b4,{'direction':'later'});return _0xf4ec16;}['getRevisionsInDiff'](_0x3ba6f3){const _0xdb336a=[];for(const _0xe5d49e of this['getRevisionsIterator'](_0x3ba6f3['newRevisionId']))if(_0xdb336a['push'](_0xe5d49e),_0xe5d49e['id']===_0x3ba6f3['oldRevisionId'])break;return _0xdb336a;}*['getRevisionsIterator'](_0x291ce2,{direction:_0xa286cb='earlier',filter:_0x3e7223=()=>!0x0}={}){const _0x278230='earlier'===_0xa286cb?0x1:-0x1;let _0x22a6d4=this['_revisions']['get'](_0x291ce2),_0x443647=this['getIndex'](_0x22a6d4);for(yield _0x22a6d4;_0x22a6d4;){if(_0x443647+=_0x278230,_0x22a6d4=this['getRevision'](_0x443647),!_0x22a6d4)return;_0x3e7223(_0x22a6d4)&&(yield _0x22a6d4);}}}class V extends _0x4e23c9{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x455180,'c'],[_0x2250e7,'a'],[_0x1a1427,'e'],[_0x4f51b0,'r'],[_0xad452b,'u']]);['_typeCharToViewClass']=new Map([['c',_0x455180],['a',_0x2250e7],['e',_0x1a1427],['r',_0x4f51b0],['u',_0xad452b]]);async['loadRevisionData'](_0x335579,_0x3baf7a){if(_0x335579['diffData']||!_0x3baf7a)return;const _0x54ccdb=this['editor']['config']['get']('collaboration.channelId'),_0x36b2b2=await _0x3baf7a['getRevision']({'channelId':_0x54ccdb,'revisionId':_0x335579['id']});_0x335579['diffData']=_0x36b2b2['diffData'];}['getRevisionDocumentData'](_0x3b7f49){const _0xdfa338={};for(const _0x352f54 in _0x3b7f49['diffData']){if(_0x3b7f49['diffData'][_0x352f54]['attachChange']&&!_0x3b7f49['diffData'][_0x352f54]['attachChange']['isAttached'])continue;const _0x4f34d1=this['_removeRevisionMarkers'](JSON['parse'](_0x3b7f49['diffData'][_0x352f54]['insertions'])),_0x3e17a1=this['editor']['editing']['view']['document'],_0x17cb25=new _0x4aad50(_0x3e17a1,_0x4f34d1['map'](_0x5416fb=>this['_getViewFromDiffObj'](_0x5416fb,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0xdfa338[_0x352f54]=this['editor']['data']['processor']['toData'](_0x17cb25),this['editor']['data']['processor']['useFillerType']('default');}return _0xdfa338;}['getRevisionRootsAttributes'](_0x2f3f0e){const _0x4b37cc={};for(const _0x427527 in _0x2f3f0e['diffData'])_0x2f3f0e['diffData'][_0x427527]['attachChange']&&!_0x2f3f0e['diffData'][_0x427527]['attachChange']['isAttached']||(_0x4b37cc[_0x427527]=_0x2f3f0e['diffData'][_0x427527]['attributesAfter']||{});return _0x4b37cc;}['_getTypeCharForViewElement'](_0x378861){return this['_viewClassToTypeChar']['get'](_0x378861['constructor']);}['_getViewFromDiffObj'](_0xdce109,_0x394980){const _0x1e0acd=this['editor']['editing']['view']['document'];if('string'==typeof _0xdce109)return new _0x9b3328(_0x1e0acd,_0xdce109);{let _0x42726e,_0x383e97;_0x383e97='u'==_0xdce109['type']||'r'==_0xdce109['type']?[]:_0xdce109['children']['map'](_0x48888b=>this['_getViewFromDiffObj'](_0x48888b,_0x394980));const _0x5bd8cb=this['_typeCharToViewClass']['get'](_0xdce109['type'])||_0x1c3a33,_0xc76380=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x42726e=new _0x5bd8cb(_0x1e0acd,_0xdce109['name'],_0xdce109['attributes'],_0x383e97),'u'==_0xdce109['type']&&_0xdce109['children'][0x0]){const _0x58735e=_0xdce109['children'][0x0];if(_0x42726e['render']=function(_0x30a1bc){const _0xd04e39=_0x30a1bc['createElement']('div');return _0xd04e39['innerHTML']=_0x58735e,_0xd04e39['childNodes'][0x0];},_0x394980){const _0x3b302d=new _0x4aad50(_0x1e0acd);_0x3b302d['_appendChild'](_0x42726e);const _0x4d2963=Array['from'](_0xc76380['viewChildrenToDom'](_0x3b302d,{'bind':!0x1})),_0x193d7c=_0xc76380['domDocument']['createElement']('div');_0x193d7c['append'](..._0x4d2963),_0x42726e=Array['from'](_0xc76380['domChildrenToView'](_0x193d7c))[0x0];}}else{if('r'==_0xdce109['type']&&_0xdce109['children'][0x0]){const _0x1aed6b=_0xdce109['children'][0x0];if(_0x42726e['render']=function(_0x40112b){_0x40112b['innerHTML']=_0x1aed6b;},_0x394980){const _0x26105b=new _0x4aad50(_0x1e0acd);_0x26105b['_appendChild'](_0x42726e);const _0xc1869=Array['from'](_0xc76380['viewChildrenToDom'](_0x26105b,{'bind':!0x1})),_0x58040a=_0xc76380['domDocument']['createElement']('div');_0x58040a['append'](..._0xc1869);const _0x1aecd9=Array['from'](_0xc76380['domChildrenToView'](_0x58040a));_0x1aecd9['length']>0x1?_0x42726e['_appendChild'](_0x1aecd9):_0x42726e=_0x1aecd9[0x0];}}}if(_0xdce109['customProperties']){for(const [_0x437e75,_0xdc2b6]of _0xdce109['customProperties'])_0x42726e['_setCustomProperty'](_0x437e75,_0xdc2b6);}const _0x58ae12=void 0x0===_0xdce109['fillerOffset']?null:_0xdce109['fillerOffset'];return null!==_0x58ae12&&(_0x42726e['getFillerOffset']=()=>_0x58ae12),_0x42726e;}}['_makeModelFromViewString'](_0x4c36b3){const _0x6ebe3c=JSON['parse'](_0x4c36b3),_0x405528=this['editor']['editing']['view']['document'],_0x97584b=new _0x4aad50(_0x405528,_0x6ebe3c['map'](_0x2fdb33=>this['_getViewFromDiffObj'](_0x2fdb33,!0x0)));return this['editor']['data']['toModel'](_0x97584b);}['_removeRevisionMarkers'](_0x269e36){return(_0x269e36=_0x269e36['filter'](_0xbb8ec0=>!_0xbb8ec0['name']||'revision-start'!==_0xbb8ec0['name']&&'revision-end'!==_0xbb8ec0['name']))['forEach'](_0x3a8e82=>{'string'!=typeof _0x3a8e82&&(_0x3a8e82['children']=this['_removeRevisionMarkers'](_0x3a8e82['children']),_0x3a8e82['attributes']=_0x3a8e82['attributes']['filter'](_0x951db9=>!_0x951db9[0x0]['startsWith']('data-revision-')));}),_0x269e36;}}function g(_0x473123,_0x1882c3,_0x3df9c2){const t=_0x473123['t'];switch(_0x1882c3){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'},_0x3df9c2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3df9c2);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 u extends _0x4e23c9{['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[_0x2bbe8d,I,V,_0x75fc49];}constructor(_0x3671a9){super(_0x3671a9),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 _0x50d7c5=_0x5a7eff();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x50d7c5},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 _0x3b741a=this['repository']['getRevision'](0x0),_0x1d7733=_0x3b741a&&null===_0x3b741a['creator']?_0x3b741a:null;if(this['_continueCurrentRevision']=!!_0x1d7733&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2993c3=this['_source']['getCurrentRevisionId'](),_0x13e4b6=this['repository']['getRevision'](_0x2993c3);if(_0x13e4b6)this['_startingVersion']=_0x13e4b6['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x32575e=this['_source']['history']['_operations']['find'](_0x23a191=>!_0x23a191['_isInit']),_0x2ea30c=_0x32575e?_0x32575e['baseVersion']:this['_source']['history']['version'];_0x3b741a?(_0x3b741a['toVersion']<_0x2ea30c&&_0x3b741a['_update']({'toVersion':_0x2ea30c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1d7733['id'],this['_startingVersion']=_0x1d7733['fromVersion']):(this['_startingVersion']=_0x3b741a['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2ea30c,this['_continueCurrentRevision']=!0x1);}}else _0x1d7733&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1d7733['toVersion'],this['editor']['model']['document']['history']['version']),_0x1d7733['fromVersion']===_0x1d7733['toVersion']?(0x0!==_0x1d7733['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d7733['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d7733['id'],this['_startingVersion']=_0x1d7733['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',_0x4d8d6f=>!_0x4d8d6f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ce09f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3fc2b0;for(const _0x28fdfb in _0x5ce09f){const _0x149e6b=_0x28fdfb,_0x334918=_0x5ce09f[_0x149e6b];if('revisionHistoryLicenseKeyValid'==_0x334918||'revisionHistoryLicenseKeyInvalid'==_0x334918||'revisionHistoryLicenseKeyExpired'==_0x334918||'revisionHistoryLicenseKeyDomainLimit'==_0x334918||'revisionHistoryLicenseKeyNotAllowed'==_0x334918||'revisionHistoryLicenseKeyEvaluationLimit'==_0x334918||'revisionHistoryLicenseKeyTrialLimit'==_0x334918||'revisionHistoryLicenseKeyUsageLimit'==_0x334918){delete _0x5ce09f[_0x149e6b],_0x3fc2b0=_0x334918,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3fc2b0&&_0x5ce09f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x106676=this['repository']['getRevision'](0x0),_0x2a1549=await this['getRevisionDocumentData'](_0x106676),_0x1f8e34=await this['getRevisionRootsAttributes'](_0x106676);this['_replaceEditorDataWithRevisionData'](_0x2a1549,_0x1f8e34);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x143f8d){this['_source']=_0x143f8d;}async['update'](){const _0x3d8bb2=await this['_source']['getLatestVersion']();if(_0x3d8bb2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3aebbb=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d8bb2});_0x3aebbb['authors']=_0x3aebbb['authorsIds']['map'](_0x2407e2=>this['editor']['plugins']['get']('Users')['getUser'](_0x2407e2)),this['currentRevision']['_update'](_0x3aebbb);}}async['saveRevision'](_0x169c60={},_0x315b68=null){const _0x4b6e2c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x315b68>this['currentRevision']['toVersion']&&(_0x315b68=null),null===_0x315b68&&(_0x315b68=await this['_source']['getLatestVersion']());const _0x1f791d=this['_getFromVersion'](_0x315b68),_0x5b1b3c=this['buildRevisionData']({'from':_0x1f791d,'to':_0x315b68});if(this['currentRevision']['toVersion']<_0x315b68){const _0x2fa24a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x315b68,'to':_0x315b68});_0x2fa24a['authors']=[],_0x2fa24a['authorsIds']=[],_0x2fa24a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2fa24a,!0x0),delete _0x2fa24a['authors'],_0x4b6e2c['push'](_0x2fa24a);}_0x169c60['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x169c60['name']=_0x169c60['name']||null,_0x169c60['id']=_0x169c60['id']||_0x5a7eff(),_0x169c60={..._0x169c60,..._0x5b1b3c};const _0x39c213=this['addRevisionData'](_0x169c60);_0x4b6e2c['push'](_0x169c60);const _0x2274c3=this['repository']['getIndex'](_0x39c213);if(0x0!==_0x2274c3){const _0x3c8397=this['repository']['getRevision'](_0x2274c3-0x1);if(_0x3c8397['fromVersion']!==_0x315b68){const _0x2cc393=this['_revisionDataBuilder']['getData'](_0x315b68,_0x3c8397['toVersion']),_0x473e77={'id':_0x3c8397['id'],'diffData':_0x2cc393['diffData'],'authorsIds':_0x2cc393['authorsIds'],'authors':_0x2cc393['authorsIds']['map'](_0x574ff9=>this['editor']['plugins']['get']('Users')['getUser'](_0x574ff9)),'fromVersion':_0x315b68};_0x3c8397===this['currentRevision']&&(_0x473e77['createdAt']=new Date(_0x169c60['createdAt']['getTime']()+0xa)),_0x3c8397['_update'](_0x473e77,!0x0),delete _0x473e77['authors'],_0x4b6e2c['push'](_0x473e77);}}if(this['adapter']){for(const _0x4df7f7 of _0x4b6e2c)this['_bufferUpdate'](_0x4df7f7['id'],_0x4df7f7,!0x0);this['sendBufferedUpdates']();}return _0x39c213;}['addRevisionData'](_0x1fe7b7){const _0x294246=this['repository']['createRevision'](_0x1fe7b7);return this['adapter']&&_0x294246['on']('_update',(_0x1288a3,_0x594663,_0x587022)=>{_0x587022||(this['_bufferUpdate'](_0x594663['id'],_0x594663,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x294246,this['_findInsertionIndex'](_0x294246)),_0x294246;}async['getRevisionDocumentData'](_0x4208f6){return await this['_utils']['loadRevisionData'](_0x4208f6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4208f6);}async['getRevisionRootsAttributes'](_0x5e9800){return await this['_utils']['loadRevisionData'](_0x5e9800,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5e9800);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4fc5aa=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x591d6a=0x0;_0x591d6a<_0x4fc5aa['length'];_0x591d6a++){const _0x372a95=_0x4fc5aa[_0x591d6a];let _0x4ffb55=!0x1;for(const _0xd4b4f4 of Object['keys'](_0x372a95))void 0x0===_0x372a95[_0xd4b4f4]?delete _0x372a95[_0xd4b4f4]:'id'!==_0xd4b4f4&&(_0x4ffb55=!0x0);_0x4ffb55||(_0x4fc5aa[_0x591d6a]=null);}if(_0x4fc5aa=_0x4fc5aa['filter'](_0x5d06ed=>null!==_0x5d06ed),!_0x4fc5aa['length'])return;for(let _0x19f8d8=0x0;_0x19f8d8<_0x4fc5aa['length'];_0x19f8d8++){const _0x429287=_0x4fc5aa[_0x19f8d8];void 0x0!==_0x429287['fromVersion']&&void 0x0===_0x429287['toVersion']&&(_0x429287['toVersion']=this['repository']['getRevision'](_0x429287['id'])['toVersion']),void 0x0!==_0x429287['toVersion']&&void 0x0===_0x429287['fromVersion']&&(_0x429287['fromVersion']=this['repository']['getRevision'](_0x429287['id'])['fromVersion']);}const _0xe1e5d1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4fc5aa,_0xe1e5d1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x231f56=>{if(_0x231f56){for(const _0x5ab7df of _0x231f56)this['setRevisionData']({'id':_0x5ab7df['id'],'createdAt':_0x5ab7df['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x383be3=null,from:_0x319417=null,to:_0x436ba4=null}){_0x319417=null!==_0x319417?_0x319417:_0x383be3['fromVersion'],_0x436ba4=null!==_0x436ba4?_0x436ba4:_0x383be3['toVersion'];const _0x5294df=this['_revisionDataBuilder']['getData'](_0x319417,_0x436ba4),_0x46b1ca={'diffData':_0x5294df['diffData'],'authorsIds':_0x5294df['authorsIds'],'fromVersion':_0x319417,'toVersion':_0x436ba4};if(!_0x383be3||_0x436ba4!==_0x383be3['toVersion']){const _0x2ebb47=_0x436ba4-0x1,_0x2b75f3=this['_source']['history']['getOperation'](_0x2ebb47);_0x46b1ca['createdAt']=_0x2b75f3&&_0x2b75f3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x319417===this['_loadedStateData']['fromVersion']){for(const _0xeaf43d of this['_loadedStateData']['authors'])_0x46b1ca['authorsIds']['includes'](_0xeaf43d['id'])||_0x46b1ca['authorsIds']['push'](_0xeaf43d['id']);}return _0x46b1ca;}['_bufferUpdate'](_0x6e584e,_0x403510,_0x2e5835){if(this['_bufferedUpdates']['has'](_0x6e584e)){const _0x2abf32=this['_bufferedUpdates']['get'](_0x6e584e);_0x403510=_0x2e5835?{..._0x2abf32,..._0x403510}:{..._0x403510,..._0x2abf32};}this['_bufferedUpdates']['set'](_0x6e584e,_0x403510);}['setRevisionData'](_0xe9cb70){const _0x456a11=this['repository']['getRevision'](_0xe9cb70['id']);if(_0xe9cb70['createdAt']&&(_0xe9cb70['createdAt']=new Date(_0xe9cb70['createdAt'])),_0xe9cb70['authorsIds']){const _0x35e423=this['editor']['plugins']['get']('Users');_0xe9cb70['authors']=_0xe9cb70['authorsIds']['map'](_0x12c34e=>_0x35e423['getUser'](_0x12c34e));}_0x456a11['_update'](_0xe9cb70,!0x0);}['_createInitialRevision'](_0x48d7df){const _0x19c34d=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x19c34d)this['_initialRevisionId']=_0x19c34d['id'];else{const _0x46638f=!this['editor']['model']['document']['roots']['find'](_0x54a21c=>this['editor']['model']['hasContent'](_0x54a21c)),_0x1ee210=this['editor']['plugins']['get']('Users')['me']['id'],_0x113439=g(this['editor']['locale'],_0x46638f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x48d7df,'to':_0x48d7df,'id':this['_initialRevisionId'],'name':_0x113439,'creatorId':_0x1ee210});}}['_createCurrentRevision'](_0x4fa263){const _0x173409=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x173409),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4fa263,'to':_0x4fa263,'id':_0x173409,'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'](_0x231971,_0x5019c0){let _0x4b1621=this['editor']['config']['get']('initialData'),_0x277e3b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4b1621){_0x4b1621={};for(const _0x3ca773 of this['editor']['model']['document']['getRootNames']())_0x4b1621[_0x3ca773]='';}if('string'==typeof _0x4b1621&&(_0x4b1621={'main':_0x4b1621}),void 0x0===_0x277e3b){_0x277e3b={};for(const _0x5077bd of this['editor']['model']['document']['getRootNames']())_0x277e3b[_0x5077bd]={};}let _0x590c4b=!0x1;const _0x6c0770=Object['keys'](_0x4b1621),_0x4ce301=Object['keys'](_0x231971);for(const _0xde94b5 of _0x6c0770){if(_0x4b1621[_0xde94b5]!==_0x231971[_0xde94b5]&&''!==_0x4b1621[_0xde94b5]['trim']()){_0x590c4b=!0x0;break;}if(!_0x1dba9f(_0x277e3b[_0xde94b5],_0x5019c0[_0xde94b5])&&Object['keys'](_0x277e3b[_0xde94b5])['length']>0x0){_0x590c4b=!0x0;break;}}_0x590c4b||(_0x590c4b=_0x4ce301['some'](_0x417a78=>!this['editor']['model']['document']['getRoot'](_0x417a78))),_0x590c4b&&_0x3f770d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4b1621,'editorRootsAttributes':_0x277e3b,'revisionData':_0x231971,'revisionRootsAttributes':_0x5019c0}),this['editor']['config']['set']('initialData',_0x231971),this['editor']['config']['set']('rootsAttributes',_0x5019c0);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x30823f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x30823f['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x164148){const _0x1774a5=this['repository']['getRevisions']();_0x1774a5['reverse']();let _0x1a5b27=0x0;for(;_0x1a5b27<_0x1774a5['length'];){const _0x1e57a4=_0x1774a5[_0x1a5b27];if(_0x1e57a4===this['currentRevision']){_0x1a5b27++;continue;}if(_0x1e57a4['id']===this['_initialRevisionId'])break;const _0x51069d=_0x164148['toVersion']-_0x1e57a4['toVersion']||_0x164148['fromVersion']-_0x1e57a4['fromVersion'];if(_0x51069d>0x0)break;if(_0x51069d<0x0)_0x1a5b27++;else{if(!_0x164148['creator']&&_0x1e57a4['creator'])break;if(_0x1e57a4['creator']||!_0x164148['creator']){if(_0x164148['createdAt']>_0x1e57a4['createdAt'])break;_0x1a5b27++;}else _0x1a5b27++;}}return _0x1a5b27;}['_getFromVersion'](_0x3b22d0){const _0xccf8e1=this['repository']['getRevisions']();_0xccf8e1['reverse'](),_0xccf8e1['shift']();const _0x1c6dfa=_0xccf8e1['find'](_0x362396=>_0x362396['toVersion']<=_0x3b22d0)['toVersion'];return _0x1c6dfa<this['_startingVersion']?this['_startingVersion']:_0x1c6dfa;}['_makeRevision']({name:_0x7f9cc1,from:_0x25555e,to:_0x1dee4f,creatorId:_0x4eb9f0,id:_0x3e6d0a}){const _0x32d03c=this['buildRevisionData']({'from':_0x25555e,'to':_0x1dee4f});_0x32d03c['name']=_0x7f9cc1,_0x32d03c['creatorId']=_0x4eb9f0,_0x32d03c['id']=_0x3e6d0a;const _0x5e60f3=this['addRevisionData'](_0x32d03c);return this['adapter']&&this['_bufferUpdate'](_0x32d03c['id'],_0x32d03c,!0x0),_0x5e60f3;}['_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(_0x1b0cc2){this['editor']=_0x1b0cc2,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'](_0x23e443){this['source']=_0x23e443;const _0x3126e8=new Map(),_0x5c23c7=new Map(),_0x34ce15=this['editor']['model']['document']['roots']['map'](_0x5c4b5b=>_0x5c4b5b['rootName']);for(const _0x34f068 of _0x34ce15){const _0x5d9b7d=this['editor']['model']['document']['getRoot'](_0x34f068),_0x288a58=N(_0x5d9b7d);_0x3126e8['set'](_0x34f068,_0x288a58),_0x5c23c7['set'](_0x34f068,Object['fromEntries'](_0x5d9b7d['getAttributes']()));}const _0x55b440=Array['from'](this['editor']['model']['markers'])['map'](_0x3a4a55=>[_0x3a4a55['name'],_0x3a4a55['getRange']()]),_0x4ba34c=this['source']['version'];this['_saveMetaData'](_0x4ba34c,_0x3126e8,_0x55b440,_0x5c23c7),this['_startingRevisionId']=this['_revisionId'];const _0x3e0cea=new Map(),_0x5b4846=new Map();for(const _0x5b396a of _0x34ce15){const _0x518ba6=P(_0x5b396a);_0x3e0cea['set'](_0x5b396a,_0x518ba6),_0x5b4846['set'](_0x5b396a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3e0cea,[],_0x5b4846);}['getData'](_0x33900e,_0x11afb4){if(this['_lastFrom']===_0x33900e&&this['_lastTo']<=_0x11afb4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x11afb4,!0x0);else{if(!this['_savedMetaData']['has'](_0x33900e)){const _0x1476fb=this['_getPreviousFrom'](_0x33900e);this['_calculateMetaData'](_0x1476fb,_0x33900e,!0x1);}this['_calculateMetaData'](_0x33900e,_0x11afb4,!0x0);}return this['_lastFrom']=_0x33900e,this['_lastTo']=_0x11afb4,this['_getState']();}['loadState'](_0x297a53){const _0x53bfed=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x297a53['fromVersion'],this['_lastTo']=_0x297a53['toVersion'];for(const _0x2586f3 in _0x297a53['diffData']){const _0x5007c6=_0x297a53['diffData'][_0x2586f3]['attachChange'],_0x2e9a41=_0x2d8281(_0x297a53['diffData'][_0x2586f3]['attributesBefore'])||{},_0x439d0c=_0x53bfed['_makeModelFromViewString'](_0x297a53['diffData'][_0x2586f3]['deletions']);_0x439d0c['rootName']=_0x2586f3,_0x439d0c['_isAttached']=!_0x5007c6||!_0x5007c6['isAttached'],_0x439d0c['isAttached']=()=>_0x439d0c['_isAttached'],this['_baseRoots']['set'](_0x2586f3,_0x439d0c),this['_baseRootsAttributes']['set'](_0x2586f3,_0x2e9a41),_0x5007c6&&this['_touchedRoots']['set'](_0x2586f3,_0x5007c6);const _0x6f9b3e=this['_makeIdsRoot'](_0x439d0c);this['_baseIdsRoots']['set'](_0x2586f3,_0x6f9b3e);for(const [_0x35cb37,_0x415b73]of _0x439d0c['markers']){if(!_0x35cb37['startsWith']('revision:'))continue;const _0x56e31f=_0x35cb37['split'](':')[0x2];for(const _0x4d52ce of _0x415b73['getWalker']({'singleCharacters':!0x0})){const _0x2d0ea0=this['_getVidAttributeName'](_0x4d52ce),_0x39711b='elementEnd'==_0x4d52ce['type']?_0x4d52ce['previousPosition']['path']['slice'](0x0,-0x1):_0x4d52ce['previousPosition']['path'],_0x17f5b5=_0x6f9b3e['getNodeByPath'](_0x39711b)['getAttribute'](_0x2d0ea0);this['_touched']['set'](_0x17f5b5,{'userId':_0x56e31f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x24248f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4cb8df=>!this['_touched']['has'](_0x4cb8df));let _0x4859cf=0x0;const _0x25a76a=new Map();for(const _0x55a96b in _0x297a53['diffData']){const _0x41030a=_0x297a53['diffData'][_0x55a96b]['attachChange'],_0x5e1a9d=_0x2d8281(_0x297a53['diffData'][_0x55a96b]['attributesAfter'])||{},_0x373c82=_0x53bfed['_makeModelFromViewString'](_0x297a53['diffData'][_0x55a96b]['insertions']);_0x373c82['rootName']=_0x55a96b,_0x373c82['_isAttached']=!_0x41030a||_0x41030a['isAttached'],_0x373c82['isAttached']=()=>_0x373c82['_isAttached'],this['_diffRoots']['set'](_0x55a96b,_0x373c82),this['_diffRootsAttributes']['set'](_0x55a96b,_0x5e1a9d);const _0x22ec59=this['_makeIdsRoot'](_0x373c82,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x55a96b,_0x22ec59),_0x25a76a['set'](_0x55a96b,_0x373c82['isAttached']()?_0x5e1a9d:{});for(const [_0x3655d5,_0x24b951]of _0x373c82['markers']){if(!_0x3655d5['startsWith']('revision:'))continue;const _0x55cd2a=_0x3655d5['split'](':')[0x2];for(const _0x41a548 of _0x24b951['getWalker']({'singleCharacters':!0x0})){const _0x4cfa21=this['_getVidAttributeName'](_0x41a548),_0x377a01=this['_revisionId']++,_0x1b8e4c='elementEnd'==_0x41a548['type']?_0x41a548['previousPosition']['path']['slice'](0x0,-0x1):_0x41a548['previousPosition']['path'];_0x22ec59['getNodeByPath'](_0x1b8e4c)['_setAttribute'](_0x4cfa21,_0x377a01),this['_touched']['set'](_0x377a01,{'userId':_0x55cd2a});}}for(const _0xa7b7e7 of this['editor']['model']['createRangeIn'](_0x373c82)['getWalker']({'singleCharacters':!0x0})){const _0x527a69=this['_getVidAttributeName'](_0xa7b7e7),_0x5831ef='elementEnd'==_0xa7b7e7['type']?_0xa7b7e7['previousPosition']['path']['slice'](0x0,-0x1):_0xa7b7e7['previousPosition']['path'],_0xb91d20=_0x22ec59['getNodeByPath'](_0x5831ef);_0xb91d20['getAttribute'](_0x527a69)>0x0||_0xb91d20['_setAttribute'](_0x527a69,_0x24248f[_0x4859cf++]);}for(const [_0x54ea05,_0x280e4e]of _0x373c82['markers'])_0x54ea05['startsWith']('revision:')||this['_markers']['set'](_0x54ea05,_0x280e4e);}const _0x12f717=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x12f717),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x12f717,0x1));const _0x192e67=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x192e67),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x192e67,0x1));const _0x2c0b84=Array['from'](this['_diffRoots'])['map'](([_0x4d3d13,_0x186888])=>[_0x4d3d13,N(_0x186888)]);this['_saveMetaData'](this['_lastTo'],_0x2c0b84,this['_markers'],_0x25a76a);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1a554c,_0x29c3c4,_0x19c717,_0x2338cf){const _0x138a96=new Map(_0x29c3c4),_0x5afe24=new Map(_0x2d8281(_0x2338cf)),_0x408b81=new Map();for(const [_0x5c21d5,_0x41a5a3]of _0x19c717)_0x408b81['set'](_0x5c21d5,{'start':_0x41a5a3['start']['clone'](),'end':_0x41a5a3['end']['clone'](),'rootName':_0x41a5a3['root']['rootName']});this['_savedMetaData']['set'](_0x1a554c,{'roots':_0x138a96,'markers':_0x408b81,'rootsAttributes':_0x5afe24});}['_removeMetaData'](_0xa04b1f){this['_savedMetaData']['delete'](_0xa04b1f);}['_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'](_0xc7ae82,_0x312fb6=null){let _0x1fe7f7=null;_0xc7ae82['is']('documentFragment')||(_0x1fe7f7=new ut(_0xc7ae82['name'],{'vid_start':null===_0x312fb6?this['_revisionId']++:_0x312fb6++}));const _0x2c3acc=[];for(const _0x42d2b5 of _0xc7ae82['getChildren']())if(_0x42d2b5['is']('element')){_0x2c3acc['push'](this['_makeIdsRoot'](_0x42d2b5,_0x312fb6));const _0x5564c5=_0x2c3acc[_0x2c3acc['length']-0x1];null!==_0x312fb6&&(_0x312fb6=_0x5564c5['is']('element','$text')?_0x5564c5['getAttribute']('vid')+0x1:_0x5564c5['getAttribute']('vid_end')+0x1);}else{for(let _0x24fc44=0x0;_0x24fc44<_0x42d2b5['offsetSize'];_0x24fc44++)_0x2c3acc['push'](new ut('$text',{'vid':null===_0x312fb6?this['_revisionId']++:_0x312fb6++}));}if(_0xc7ae82['is']('documentFragment')){const _0x217e46=P(_0xc7ae82['rootName']);return _0x217e46['_insertChild'](0x0,_0x2c3acc),_0x217e46;}return _0x1fe7f7['_setAttribute']('vid_end',null===_0x312fb6?this['_revisionId']++:_0x312fb6++),_0x1fe7f7['_insertChild'](0x0,_0x2c3acc),_0x1fe7f7;}['_calculateMetaData'](_0x354e23,_0x3f41bd,_0x41996a){this['_reset']();const {roots:_0x4f864d,markers:_0x3c4593,rootsAttributes:_0x38d248}=this['_savedMetaData']['get'](_0x354e23);this['_baseRoots']=new Map(_0x4f864d),this['_baseRootsAttributes']=new Map(_0x2d8281(_0x38d248));for(const [_0x4b3c7c,_0x713655]of this['_baseRoots'])if('$graveyard'!==_0x4b3c7c&&(this['_diffRoots']['set'](_0x4b3c7c,N(_0x713655)),this['_diffRootsAttributes']=new Map(_0x2d8281(_0x38d248)),_0x41996a)){const _0x2f6110=this['_revisionId'];this['_idsRoots']['set'](_0x4b3c7c,this['_makeIdsRoot'](_0x713655)),this['_baseIdsRoots']['set'](_0x4b3c7c,this['_makeIdsRoot'](_0x713655,_0x2f6110));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x41996a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x15dd02,_0x418302]of _0x3c4593){const _0x5576db=this['_baseRoots']['get'](_0x418302['rootName']),_0x1f6109=this['_diffRoots']['get'](_0x418302['rootName']),_0x468483=new lt(this['_fixPosition'](_0x418302['start'],_0x5576db),this['_fixPosition'](_0x418302['end'],_0x5576db)),_0x322417=this['_fixRange'](_0x468483,_0x1f6109);_0x5576db['markers']['set'](_0x15dd02,_0x468483),this['_markers']['set'](_0x15dd02,_0x322417);}this['_applyOperations'](_0x354e23,_0x3f41bd,_0x41996a);}['_applyOperations'](_0x3745cd,_0x3b7163,_0x4b1d5b){for(const _0x36ef19 of this['source']['getOperations'](_0x3745cd,_0x3b7163))this['_handleOperation'](_0x36ef19,_0x4b1d5b);for(const _0x5ad492 of this['_diffRoots']['values']())_0x5ad492['markers']['clear']();for(const [_0x7992d0,_0x3a3e8d]of this['_markers']){this['_diffRoots']['get'](_0x3a3e8d['root']['rootName'])['markers']['set'](_0x7992d0,_0x3a3e8d['clone']());}const _0x5e851a=new Map(),_0xde4cd9=new Map();for(const [_0x1470dc,_0x35a1a0]of this['_diffRoots'])_0x5e851a['set'](_0x1470dc,N(_0x35a1a0)),_0xde4cd9['set'](_0x1470dc,this['_diffRootsAttributes']['get'](_0x1470dc));this['_saveMetaData'](_0x3b7163,_0x5e851a,this['_markers'],_0xde4cd9);}['_getPreviousFrom'](_0xb5f65b){const _0x306cdb=Array['from'](this['_savedMetaData']['keys']());_0x306cdb['sort']((_0x1d5ee7,_0x212ee0)=>_0x1d5ee7-_0x212ee0),_0x306cdb['reverse']();for(const _0x5307d7 of _0x306cdb)if(_0x5307d7<_0xb5f65b)return _0x5307d7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4264b3,_0x4c09af){const _0x404ca2=Array['from'](_0x4c09af['markers'])['map'](([_0x5c257d,_0x2a23cf])=>[_0x5c257d,this['_fixRange'](_0x2a23cf,_0x4264b3)]);_0x4264b3['markers']=new Map(_0x404ca2);}['_transformMarkers'](_0x2f5a2a){for(const _0x3a0dfd of this['_markers']['values']()){const _0x193ed2=_0x3a0dfd['getTransformedByOperation'](_0x2f5a2a),_0x4db845=lt['_createFromRanges'](_0x193ed2);_0x3a0dfd['start']=_0x4db845['start'],_0x3a0dfd['end']=_0x4db845['end'];}}['_handleOperation'](_0x482e76,_0x18fab8){if('addRoot'!=_0x482e76['type']&&'detachRoot'!=_0x482e76['type']){if('insert'==_0x482e76['type']){const _0x262c16=_0x482e76['position']['root']['rootName'];this['_diffRoots']['has'](_0x262c16)||(this['_diffRoots']['set'](_0x262c16,P(_0x262c16,!0x0)),this['_diffRootsAttributes']['set'](_0x262c16,{}),_0x18fab8&&this['_idsRoots']['set'](_0x262c16,P(_0x262c16,!0x0)));}else{if('addRootAttribute'==_0x482e76['type']||'removeRootAttribute'==_0x482e76['type']||'changeRootAttribute'==_0x482e76['type'])return void this['_handleRootAttributeOperation'](_0x482e76);'marker'==_0x482e76['type']&&this['_handleMarkerOperation'](_0x482e76);}if('marker'!==_0x482e76['type']){const _0x3288e6=this['_cloneOperation'](_0x482e76,this['_diffRoots']);_0x3288e6['_execute'](),this['_transformMarkers'](_0x3288e6);}if(_0x18fab8)switch(_0x482e76['type']){case'insert':this['_handleInsertOperation'](_0x482e76);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x482e76);break;case'merge':this['_handleMergeOperation'](_0x482e76);break;case'split':this['_handleSplitOperation'](_0x482e76);}}else this['_handleRootOperation'](_0x482e76,_0x18fab8);}['_cloneOperation'](_0x3aa38f,_0x39f621){const _0x5a68fc=_0x3aa38f['clone']();return _0x5a68fc['_authorId']=_0x3aa38f['_authorId'],this['_fixOperation'](_0x5a68fc,_0x39f621),_0x5a68fc;}['_getBaseVids'](_0x58ef0c){return _0x58ef0c['map'](_0x2203b0=>{const _0x521990=this['_getVidAttributeName'](_0x2203b0);return Number(_0x2203b0['item']['getAttribute'](_0x521990));});}['_generateTape'](_0x552ac4,_0x239a51){if(_0x552ac4['is']('element','$text'))_0x239a51['push']({'item':_0x552ac4,'type':'text'});else{_0x552ac4['is']('element')&&_0x239a51['push']({'item':_0x552ac4,'type':'elementStart'});for(const _0x8d8e72 of _0x552ac4['getChildren']())this['_generateTape'](_0x8d8e72,_0x239a51);_0x552ac4['is']('element')&&_0x239a51['push']({'item':_0x552ac4,'type':'elementEnd'});}return _0x239a51;}['_getState'](){const _0x4d14fb=new Map(this['_touched']),_0x1cffc7=new Map(_0x4d14fb),_0x2f3e2=new Map(),_0x29f980={'insertions':{},'deletions':{}},_0x49c335={'insertions':{},'deletions':{}},_0x4cf3e6=new Map(),_0x4e4bc8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4e4bc8['delete']('$graveyard');for(const _0x32274c of _0x4e4bc8){const _0x5bd994=this['_diffRoots']['get'](_0x32274c)||P(_0x32274c,!0x1),_0x53d647=this['_baseRoots']['get'](_0x32274c)||P(_0x32274c,!0x1);_0x5bd994['isAttached']()||_0x53d647['isAttached']()?(_0x29f980['insertions'][_0x32274c]=N(_0x5bd994),_0x29f980['deletions'][_0x32274c]=N(_0x53d647),this['_copyMarkers'](_0x29f980['deletions'][_0x32274c],_0x53d647),this['_copyMarkers'](_0x29f980['insertions'][_0x32274c],_0x5bd994),_0x49c335['insertions'][_0x32274c]=this['_generateTape'](this['_idsRoots']['get'](_0x32274c),[]),_0x49c335['deletions'][_0x32274c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x32274c)||P(_0x32274c,!0x1),[])):_0x4e4bc8['delete'](_0x32274c);}for(const _0x321a74 of _0x4e4bc8){const _0xbad53d=_0x49c335['insertions'][_0x321a74];for(const _0x414c6b of _0xbad53d){const _0x1be28f=this['_getVidAttributeName'](_0x414c6b),_0xe2eed5=_0x414c6b['item']['getAttribute'](_0x1be28f);_0x1cffc7['delete'](_0xe2eed5),_0xe2eed5>=this['_startingRevisionId']&&_0x2f3e2['set'](_0xe2eed5,_0x4d14fb['get'](_0xe2eed5));}}for(const _0x307dc1 of _0x4e4bc8){const _0x17544d=_0x49c335['insertions'][_0x307dc1],_0xbaa5cd=this['_getBaseVids'](_0x49c335['deletions'][_0x307dc1]);let _0x105ef2=0x0;for(const _0x356867 of _0x17544d){const _0x171bb3=this['_getVidAttributeName'](_0x356867),_0x5e402d=_0x356867['item']['getAttribute'](_0x171bb3);if(!_0x2f3e2['has'](_0x5e402d)&&!_0x4cf3e6['has'](_0x5e402d)){if(_0x1cffc7['has'](_0x5e402d))_0x105ef2++;else{if(_0x5e402d!=_0xbaa5cd[_0x105ef2]){const _0x1f01eb=_0x4d14fb['get'](_0x5e402d)||_0x4d14fb['get'](_0xbaa5cd[_0x105ef2]);for(;_0x5e402d!=_0xbaa5cd[_0x105ef2];)_0x1cffc7['has'](_0xbaa5cd[_0x105ef2])||(_0x4cf3e6['set'](_0xbaa5cd[_0x105ef2],_0x1f01eb),_0x4d14fb['set'](_0xbaa5cd[_0x105ef2],_0x1f01eb)),_0x105ef2++;}_0x105ef2++;}}}}for(const _0x3726d6 of _0x4e4bc8){const _0x530bb6=_0x49c335['insertions'][_0x3726d6];for(const _0x76f65e of _0x530bb6){const _0x2e7538=this['_getVidAttributeName'](_0x76f65e),_0x20c255=_0x76f65e['item']['getAttribute'](_0x2e7538);if(_0x4cf3e6['has'](_0x20c255)){const _0xa79391=_0x4cf3e6['get'](_0x20c255);_0x1cffc7['has'](_0x20c255)||_0x1cffc7['set'](_0x20c255,{..._0xa79391}),_0x2f3e2['set'](_0x20c255,{..._0xa79391});}}}for(const _0x5264b6 of _0x1cffc7['keys']())_0x5264b6>=this['_startingRevisionId']&&_0x1cffc7['delete'](_0x5264b6);const _0x4a80e0=new Map();for(const _0x296bf4 of _0x4e4bc8){let _0x53ed4c=_0x49c335['insertions'][_0x296bf4];for(const _0x3bd995 of _0x53ed4c)if(_0x3bd995['item']['is']('element','tableCell')){const _0xc3011f=this['_getVidAttributeName'](_0x3bd995),_0x318b3c=_0x3bd995['item']['getAttribute'](_0xc3011f);if(_0x2f3e2['has'](_0x318b3c)){const _0x17b001=_0x3bd995['item']['parent']['parent']['getAttribute']('vid_start'),_0x12410b=_0x4a80e0['get'](_0x17b001)||new Set();_0x12410b['add'](_0x2f3e2['get'](_0x318b3c)['userId']),_0x4a80e0['set'](_0x17b001,_0x12410b);}}_0x53ed4c=_0x49c335['deletions'][_0x296bf4];for(const _0x2d05ca of _0x53ed4c)if(_0x2d05ca['item']['is']('element','tableCell')){const _0x41d2e1=this['_getVidAttributeName'](_0x2d05ca),_0x256547=_0x2d05ca['item']['getAttribute'](_0x41d2e1);if(_0x1cffc7['has'](_0x256547)){const _0x3b8cc8=_0x2d05ca['item']['parent']['parent']['getAttribute']('vid_start'),_0x543cd7=_0x4a80e0['get'](_0x3b8cc8)||new Set();_0x543cd7['add'](_0x1cffc7['get'](_0x256547)['userId']),_0x4a80e0['set'](_0x3b8cc8,_0x543cd7);}}for(const _0x186d75 of _0x4a80e0['keys']())(_0x2f3e2['has'](_0x186d75)||_0x1cffc7['has'](_0x186d75))&&_0x4a80e0['delete'](_0x186d75);}for(const _0x380c9d of _0x4e4bc8){const _0x22c529=_0x49c335['insertions'][_0x380c9d];let _0x2d99d1=null,_0x5bd915=null;for(const _0xec85be of _0x22c529){const _0x2873fa=this['_getVidAttributeName'](_0xec85be),_0x3a9e68=_0xec85be['item']['getAttribute'](_0x2873fa),_0xd51cf6=_0x4a80e0['get'](_0x3a9e68);_0xd51cf6&&'elementStart'==_0xec85be['type']&&(_0x2d99d1=Array['from'](_0xd51cf6)[0x0],_0x5bd915=_0xec85be['item']['getAttribute']('vid_end')),_0x2d99d1&&(_0x1cffc7['set'](_0x3a9e68,{'userId':_0x2d99d1}),_0x2f3e2['set'](_0x3a9e68,{'userId':_0x2d99d1})),_0x3a9e68==_0x5bd915&&(_0x2d99d1=null,_0x5bd915=null);}}const _0x492c1f={},_0xa6fecf=new Set();for(const _0x3c0e6f of _0x4e4bc8){const _0x1f0c24=_0x29f980['deletions'][_0x3c0e6f],_0x43646a=_0x29f980['insertions'][_0x3c0e6f];for(const {userId:_0x1be53f}of this['_touchedMarkers']['values']())null!==_0x1be53f&&_0xa6fecf['add'](_0x1be53f);for(const {userId:_0x431d09}of this['_touchedRoots']['values']())null!==_0x431d09&&_0xa6fecf['add'](_0x431d09);this['_markChanges'](_0x43646a,_0x49c335['insertions'][_0x3c0e6f],_0x2f3e2,'insertion',_0xa6fecf),this['_markChanges'](_0x1f0c24,_0x49c335['deletions'][_0x3c0e6f],_0x1cffc7,'deletion',_0xa6fecf),_0x492c1f[_0x3c0e6f]={'insertions':this['_prepareViewToSave'](_0x43646a),'deletions':this['_prepareViewToSave'](_0x1f0c24),'attachChange':this['_touchedRoots']['get'](_0x3c0e6f)||null,'attributesBefore':_0x2d8281(this['_baseRootsAttributes']['get'](_0x3c0e6f))||{},'attributesAfter':_0x2d8281(this['_diffRootsAttributes']['get'](_0x3c0e6f))};}return{'diffData':_0x492c1f,'authorsIds':Array['from'](_0xa6fecf)};}['_processRootBeforeSave'](_0x152403){for(const [,_0x793b72]of _0x152403['markers']){const _0x108178=_0x793b72['start']['getAncestors']()['filter'](_0x51405c=>'tableCell'==_0x51405c['name']);for(const _0x3ae999 of _0x108178)0x1==_0x3ae999['childCount']&&_0x3ae999['getChild'](0x0)['is']('element','paragraph')&&_0x3ae999['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x43d1b9){this['_processRootBeforeSave'](_0x43d1b9);const _0x3b9da9=this['editor']['data']['toView'](_0x43d1b9,{}),_0x411e73=Array['from'](_0x3b9da9['getChildren']())['map'](_0x3124b3=>this['_getViewJson'](_0x3124b3));return JSON['stringify'](_0x411e73);}['_getViewJson'](_0x1ae8da){if(_0x1ae8da['is']('$text'))return _0x1ae8da['data'];{const _0x18a77d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x3492ab=_0x1ae8da,_0x4dc847=this['editor']['data']['htmlProcessor']['domConverter'],_0x39ca1e={'type':_0x18a77d['_getTypeCharForViewElement'](_0x3492ab),'name':_0x3492ab['name'],'attributes':Array['from'](_0x3492ab['getAttributes']()),'children':Array['from'](_0x3492ab['getChildren']())['map'](_0x19a091=>this['_getViewJson'](_0x19a091))};if(_0x1ae8da['is']('uiElement')&&'$comment'!=_0x1ae8da['name']){const _0x41d921=_0x1ae8da['render'](_0x4dc847['domDocument'],_0x4dc847);_0x39ca1e['children']['push'](_0x41d921['outerHTML']);}else{if(_0x1ae8da['is']('rawElement')){const _0x2b1756=_0x4dc847['domDocument']['createElement'](_0x3492ab['name']);_0x1ae8da['render'](_0x2b1756,_0x4dc847),_0x39ca1e['children']['push'](_0x2b1756['innerHTML']);}}const _0x5c3ea6=Array['from'](_0x3492ab['getCustomProperties']());_0x5c3ea6['length']>0x0&&(_0x39ca1e['customProperties']=_0x5c3ea6);const _0x42163d=_0x3492ab['getFillerOffset']();return null!==_0x42163d&&(_0x39ca1e['fillerOffset']=_0x42163d),_0x39ca1e;}}['_markChanges'](_0x11dfb4,_0x2d4769,_0x1f4c6e,_0x1e5bc0,_0x645612){let _0x125533=null,_0x2179f5=null,_0x28fb5b=0x0;const _0x54e558=this['editor']['model'];for(let _0x3c714d=0x0;_0x3c714d<_0x2d4769['length'];_0x3c714d++){const _0x5cad49=this['_getVidAttributeName'](_0x2d4769[_0x3c714d]),_0x1d5b20=_0x2d4769[_0x3c714d]['item']['getAttribute'](_0x5cad49),_0x1e1c57=_0x1f4c6e['get'](_0x1d5b20),_0x333f13=_0x3c714d==_0x2d4769['length']-0x1;(!_0x125533&&_0x1e1c57&&(_0x125533=_0x1e1c57,_0x2179f5=_0x2d4769[_0x3c714d]),_0x125533&&(!_0x1e1c57||_0x1e1c57['userId']!=_0x125533['userId']))&&(_0x814f2d(_0x1e1c57,F(_0x2179f5,_0x11dfb4,_0x54e558),F(_0x2d4769[_0x3c714d],_0x11dfb4,_0x54e558)),_0x125533=_0x1e1c57||null,_0x2179f5=_0x1e1c57?_0x2d4769[_0x3c714d]:null),_0x125533&&_0x333f13&&_0x814f2d(_0x1e1c57,F(_0x2179f5,_0x11dfb4,_0x54e558),B(_0x2d4769[_0x3c714d],_0x11dfb4,_0x54e558));}function _0x814f2d(_0xbe4939,_0x5ca7ab,_0x365400){const _0x5145a2=_0x125533['userId'],_0x1cafd6='revision:'+_0x1e5bc0+':'+_0x5145a2+':'+_0x28fb5b++,_0x1ecd43=_0x54e558['createRange'](_0x5ca7ab,_0x365400);_0x11dfb4['markers']['set'](_0x1cafd6,_0x1ecd43),null!==_0x5145a2&&_0x645612['add'](_0x5145a2);}}['_getVidAttributeName'](_0x1b2d4c){switch(_0x1b2d4c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x550b03,_0x6498c8){_0x550b03['baseVersion']=null;for(const _0x3b0bfc in _0x550b03){const _0x2150ef=_0x550b03[_0x3b0bfc];if(_0x2150ef instanceof ft){const _0x3bdc0b=_0x6498c8['get'](_0x2150ef['root']['rootName']);_0x550b03[_0x3b0bfc]=this['_fixPosition'](_0x2150ef,_0x3bdc0b);}if(_0x2150ef instanceof lt){const _0x1aaeba=_0x6498c8['get'](_0x2150ef['root']['rootName']);_0x550b03[_0x3b0bfc]=this['_fixRange'](_0x2150ef,_0x1aaeba);}'root'===_0x3b0bfc&&(_0x550b03['root']=_0x6498c8['get'](_0x550b03['root']['rootName']));}}['_fixRange'](_0x2ca7aa,_0xf52fe1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2ca7aa['start'],_0xf52fe1),this['_fixPosition'](_0x2ca7aa['end'],_0xf52fe1));}['_fixPosition'](_0x325f09,_0x17813f){return this['editor']['model']['createPositionFromPath'](_0x17813f,_0x325f09['path'],_0x325f09['stickiness']);}['_handleInsertOperation'](_0xd56b1){const _0x401036=this['_idsRoots']['get'](_0xd56b1['position']['root']['rootName']),_0x2d7849=this['_fixPosition'](_0xd56b1['position'],_0x401036),_0x4b55c7=null===_0xd56b1['_authorId']?null:_0xd56b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58c4bb=_0x2d7849['parent'],_0x391ce7=this['_revisionId'],_0x482f1d=[];for(const _0x153551 of _0xd56b1['nodes'])if(_0x153551['is']('element'))_0x482f1d['push'](this['_makeIdsRoot'](_0x153551));else{for(let _0x314554=0x0;_0x314554<_0x153551['offsetSize'];_0x314554++)_0x482f1d['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x26f85b=this['_revisionId'];for(let _0x59b42f=_0x391ce7;_0x59b42f<_0x26f85b;_0x59b42f++)this['_touched']['set'](_0x59b42f,{'userId':_0x4b55c7});_0x58c4bb['_insertChild'](_0x2d7849['offset'],_0x482f1d);}['_handleMoveOperation'](_0x1c6714){(_0x1c6714=this['_cloneOperation'](_0x1c6714,this['_idsRoots']))['_execute']();const _0x5b9f91=null===_0x1c6714['_authorId']?null:_0x1c6714['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d85cb=_0x1c6714['getMovedRangeStart'](),_0x11fc99=_0x2d85cb['parent'],_0x159d52=_0x2d85cb['offset'];!function _0xc92658(_0x5394e4,_0x2aafe5,_0x2b6232,_0x3fb4d9){for(let _0x29ae9d=_0x2b6232;_0x29ae9d<_0x3fb4d9;_0x29ae9d++){const _0x1ace10=_0x2aafe5['getChild'](_0x29ae9d);_0x1ace10['is']('element','$text')?_0x5394e4['set'](_0x1ace10['getAttribute']('vid'),{'userId':_0x5b9f91}):(_0x5394e4['set'](_0x1ace10['getAttribute']('vid_start'),{'userId':_0x5b9f91}),_0xc92658(_0x5394e4,_0x1ace10,0x0,_0x1ace10['childCount']),_0x5394e4['set'](_0x1ace10['getAttribute']('vid_end'),{'userId':_0x5b9f91}));}}(this['_touched'],_0x11fc99,_0x159d52,_0x159d52+_0x1c6714['howMany']);}['_handleMergeOperation'](_0x17a192){const _0xbaf838=null===(_0x17a192=this['_cloneOperation'](_0x17a192,this['_idsRoots']))['_authorId']?null:_0x17a192['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1f869f=_0x17a192['targetPosition']['parent'],_0x272a6c=_0x17a192['sourcePosition']['parent'],_0x2363f0=_0x1f869f['getAttribute']('vid_end'),_0x2ca672=_0x272a6c['getAttribute']('vid_start');_0x1f869f['_setAttribute']('vid_end',_0x272a6c['getAttribute']('vid_end')),_0x272a6c['_setAttribute']('vid_end',_0x2363f0),this['_touched']['set'](_0x2ca672,{'userId':_0xbaf838}),this['_touched']['set'](_0x2363f0,{'userId':_0xbaf838}),_0x17a192['_execute']();}['_handleSplitOperation'](_0x1ade52){const _0x5e6409=null===(_0x1ade52=this['_cloneOperation'](_0x1ade52,this['_idsRoots']))['_authorId']?null:_0x1ade52['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12dc3b=_0x1ade52['graveyardPosition'],_0x5c25f9=_0x1ade52['splitPosition']['parent'];_0x1ade52['_execute']();const _0x104a78=_0x5c25f9['getAttribute']('vid_end'),_0x207920=_0x1ade52['insertionPosition']['nodeAfter'];if(_0x12dc3b){const _0xe1895c=_0x207920['getAttribute']('vid_end'),_0x464a93=_0x5c25f9['getAttribute']('vid_end');_0x5c25f9['_setAttribute']('vid_end',_0xe1895c),_0x207920['_setAttribute']('vid_end',_0x464a93),this['_touched']['set'](_0x5c25f9['getAttribute']('vid_end'),{'userId':_0x5e6409}),this['_touched']['set'](_0x207920['getAttribute']('vid_start'),{'userId':_0x5e6409});}else{const _0x8d1cdf=this['_revisionId']++,_0x4b8210=this['_revisionId']++;_0x5c25f9['_setAttribute']('vid_end',_0x8d1cdf),_0x207920['_setAttribute']('vid_start',_0x4b8210),_0x207920['_setAttribute']('vid_end',_0x104a78),this['_touched']['set'](_0x8d1cdf,{'userId':_0x5e6409}),this['_touched']['set'](_0x4b8210,{'userId':_0x5e6409});}}['_handleMarkerOperation'](_0x4ee301){if(!_0x4ee301['affectsData'])return;const _0x39ab66=(_0x4ee301=this['_cloneOperation'](_0x4ee301,this['_diffRoots']))['oldRange']?_0x4ee301['oldRange']['root']:null,_0x2db390=_0x4ee301['newRange']?_0x4ee301['newRange']['root']:null;_0x39ab66&&this['_markers']['delete'](_0x4ee301['name']),_0x2db390&&this['_markers']['set'](_0x4ee301['name'],_0x4ee301['newRange']['clone']());const _0x2772ce=null===_0x4ee301['_authorId']?null:_0x4ee301['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c33ae=_0x4ee301['name'];if(!this['_touchedMarkers']['has'](_0x4c33ae))return void this['_touchedMarkers']['set'](_0x4c33ae,{'range':_0x4ee301['oldRange'],'userId':_0x2772ce});const _0x11a96c=this['_touchedMarkers']['get'](_0x4c33ae),_0x502a72=_0x11a96c['range'],_0x534f1f=_0x4ee301['newRange'];null==_0x502a72&&null==_0x534f1f||_0x502a72&&_0x534f1f&&_0x502a72['isEqual'](_0x534f1f)?this['_touchedMarkers']['delete'](_0x4ee301['name']):_0x11a96c['userId']=_0x2772ce;}['_handleRootOperation'](_0x1659eb,_0x10fdf1){this['_diffRoots']['has'](_0x1659eb['rootName'])?this['_diffRoots']['get'](_0x1659eb['rootName'])['_isAttached']=_0x1659eb['isAdd']:(this['_diffRoots']['set'](_0x1659eb['rootName'],P(_0x1659eb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1659eb['rootName'],{}),_0x10fdf1&&this['_idsRoots']['set'](_0x1659eb['rootName'],P(_0x1659eb['rootName'],!0x0)));const _0x4c13c5=null===_0x1659eb['_authorId']?null:_0x1659eb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x378ce1=this['_touchedRoots']['get'](_0x1659eb['rootName']);_0x378ce1&&_0x378ce1['userId']===_0x4c13c5?this['_touchedRoots']['delete'](_0x1659eb['rootName']):this['_touchedRoots']['set'](_0x1659eb['rootName'],{'userId':_0x4c13c5,'isAttached':_0x1659eb['isAdd']});}['_handleRootAttributeOperation'](_0xa06851){const _0x111342=this['_diffRootsAttributes']['get'](_0xa06851['root']['rootName']);null===_0xa06851['newValue']?delete _0x111342[_0xa06851['key']]:_0x111342[_0xa06851['key']]=_0xa06851['newValue'];}}function N(_0x513001){const _0x2f601b=P(_0x513001['rootName'],_0x513001['isAttached']());for(const _0x57bfa6 of _0x513001['getChildren']()){const _0xefc015=_0x57bfa6['_clone'](!0x0);_0x2f601b['_appendChild'](_0xefc015);}return _0x2f601b;}function P(_0x36ca03,_0x1bf1c0=!0x0){const _0x27f04d=new vt();return _0x27f04d['rootName']=_0x36ca03,_0x27f04d['_isAttached']=_0x1bf1c0,_0x27f04d['isAttached']=()=>_0x27f04d['_isAttached'],_0x27f04d;}function F(_0x242267,_0x364ac4,_0x2253e7){const _0x2bc2ec='elementEnd'==_0x242267['type']?_0x2253e7['createPositionAt'](_0x242267['item'],'end'):_0x2253e7['createPositionBefore'](_0x242267['item']);return _0x2253e7['createPositionFromPath'](_0x364ac4,_0x2bc2ec['path'],_0x2bc2ec['stickiness']);}function B(_0x3be19f,_0x59b581,_0x32ada8){const _0x5d8d21='elementStart'==_0x3be19f['type']?_0x32ada8['createPositionAt'](_0x3be19f['item'],0x0):_0x32ada8['createPositionAfter'](_0x3be19f['item']);return _0x32ada8['createPositionFromPath'](_0x59b581,_0x5d8d21['path'],_0x5d8d21['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4762f8,_0x2961cd){super(_0x4762f8),this['focusTracker']=new _0x1d2150(),this['keystrokes']=new _0x23b021(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2961cd),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x3a6a54(this);}['render'](){super['render'](),_0x2f1fdf({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x14128c=_0x1fb36a=>_0x1fb36a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14128c),this['keystrokes']['set']('arrowleft',_0x14128c),this['keystrokes']['set']('arrowup',_0x14128c),this['keystrokes']['set']('arrowdown',_0x14128c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3b13b2){this['revisionNameInputView']['fieldView']['element']['value']=_0x3b13b2['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x128e9e){const _0xa238fb=new _0xd95170(this['locale'],_0x3fbf0a),_0x5e6b0a=_0xa238fb['fieldView'];_0x5e6b0a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x254550=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x128e9e&&(_0x254550+='\x20('+g(this['locale'],'optional')+')'),(_0xa238fb['label']=_0x254550,_0x5e6b0a['on']('input',()=>{this['revisionNameInputValue']=_0x5e6b0a['element']['value']['trim']();}),_0xa238fb);}}class f extends _0x4e23c9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3ccf16=this['editor'],_0x1ac94d=_0x3ccf16['plugins']['get']('RevisionTracker');_0x3ccf16['ui']['componentFactory']['add']('revisionHistory',_0x3fa11f=>{const _0x399588=_0x1d1841(_0x3fa11f),_0x51ca48=_0x399588['panelView']['children'],_0x472a4a=new _0x6ee4ed(_0x3fa11f),_0x5d9102=new _0x173dad(_0x3fa11f),_0x358cdf=new te(_0x3fa11f),_0x57843e=new _0x173dad(_0x3fa11f),_0x14172e=new te(_0x3fa11f);return _0x399588['bind']('isEnabled')['to'](_0x1ac94d,'isReady',_0x1ac94d,'isEnabled',_0x3ccf16,'isReadOnly',(_0x21d3c0,_0x17e9d1,_0x2d8419)=>_0x21d3c0&&_0x17e9d1&&!_0x2d8419),_0x399588['buttonView']['set']({'icon':_0x3e5a1e,'label':g(_0x3fa11f,'Revision\x20history'),'tooltip':!0x0}),_0x358cdf['set']({'label':g(_0x3fa11f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x358cdf['bind']('isEnabled')['to'](_0x1ac94d,'isReady',_0x1ac94d,'isEnabled',_0x3ccf16,'isReadOnly',(_0x249e51,_0x3a8d27,_0x3b2cb5)=>_0x249e51&&_0x3a8d27&&!_0x3b2cb5),_0x358cdf['on']('execute',()=>this['_showDialog']()),_0x14172e['set']({'label':g(_0x3fa11f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x14172e['bind']('isEnabled')['to'](_0x1ac94d,'isReady',_0x3ccf16,'isReadOnly',(_0x457b8c,_0x4194ae)=>_0x457b8c&&!_0x4194ae),_0x14172e['on']('execute',()=>{_0x3ccf16['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x399588['isOpen']=!0x1,_0x3ccf16['editing']['view']['focus']();}),_0x5d9102['children']['add'](_0x358cdf),_0x57843e['children']['add'](_0x14172e),_0x472a4a['role']='menu',_0x472a4a['items']['addMany']([_0x5d9102,_0x57843e]),_0x51ca48['add'](_0x472a4a),_0x399588;}),_0x3ccf16['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x495d65=this['editor'],_0x924275=_0x495d65['locale'],_0x5e35bd=new _0x4c3235(_0x924275),_0x53e408=new _0x5f41fa(_0x924275);_0x5e35bd['buttonView']['set']({'icon':_0x3e5a1e,'label':g(_0x924275,'Revision\x20history')});const _0x10c94b=new _0x4701fa(_0x924275,_0x5e35bd),_0x378b87=new _0x1f7652(_0x924275);_0x378b87['set']({'label':g(_0x924275,'Save\x20current\x20revision')}),_0x378b87['delegate']('execute')['to'](_0x5e35bd),_0x378b87['on']('execute',()=>{this['_showDialog']();}),_0x10c94b['children']['add'](_0x378b87),_0x53e408['items']['add'](_0x10c94b);const _0x2d5d3b=new _0x4701fa(_0x924275,_0x5e35bd),_0x4d086b=new _0x1f7652(_0x924275);return _0x4d086b['set']({'label':g(_0x924275,'Open\x20revision\x20history')}),_0x4d086b['delegate']('execute')['to'](_0x5e35bd),_0x4d086b['on']('execute',()=>{_0x495d65['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2d5d3b['children']['add'](_0x4d086b),_0x53e408['items']['add'](_0x2d5d3b),_0x5e35bd['panelView']['children']['add'](_0x53e408),_0x5e35bd;}['_showDialog'](){const _0x1256c0=this['editor'],_0x542c19=_0x1256c0['locale'],_0x1ff274=_0x1256c0['plugins']['get']('Dialog'),_0x47989b=_0x1256c0['plugins']['get']('RevisionTracker');function _0x11f8d7(_0x546cac){_0x1256c0['config']['get']('revisionHistory.requireRevisionName')&&''===_0x546cac['revisionName']?_0x546cac['revisionNameInputView']['errorText']=g(_0x542c19,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1256c0['plugins']['get'](u)['saveRevision']({'name':_0x546cac['revisionName']}),_0x1ff274['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x11f8d7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1ff274['show']({'id':'revisionSave','title':g(_0x542c19,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1256c0['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1ff274['hide']()},{'label':g(_0x1256c0['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x542b2d){_0x542b2d['bind']('isEnabled')['to'](_0x47989b,'isReady',_0x47989b,'isEnabled',_0x1256c0,'isReadOnly',(_0x2a6cac,_0x5399b4,_0x4a059c)=>_0x2a6cac&&_0x5399b4&&!_0x4a059c);},'onExecute':()=>_0x11f8d7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x28bfc7=this['editor'],_0x424050=_0x28bfc7['locale'];this['_saveRevisionFormView']=new hs(_0x424050,_0x28bfc7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1e2762,_0xc66cb5){super(_0x1e2762),this['_model']=_0xc66cb5,this['changeId']=_0xc66cb5['id'];const _0x375780=this['bindTemplate'],_0x3563fd=g(_0x1e2762,_0xc66cb5['data']['isSuggestion']?'Suggested\x20by':'add'==_0xc66cb5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xc66cb5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x375780['to']('type',_0x24880a=>'ck-revision-change__'+_0x24880a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3563fd}]},{'text':'\x20'+_0xc66cb5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d9049(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x53365d){super(),this['id']=_0x53365d['id']||_0x5a7eff(),this['author']=_0x53365d['author'],this['type']=_0x53365d['type'],this['data']=_0x53365d['data']||{},this['rootName']=_0x53365d['rootName'],this['set']('createdAt',_0x53365d['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x57f0cb,_0x57904c){this['newRevisionId']=_0x57f0cb,this['oldRevisionId']=_0x57904c,this['changes']=new _0x201912();}['_setChanges'](_0x2ca2d3){for(const _0x16ddac of _0x2ca2d3)this['changes']['add'](_0x16ddac);}}class m extends _0x4e23c9{['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[_0x2bbe8d,_0x13610c,I,V];}constructor(_0x48aba0){super(_0x48aba0),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',(_0x457cd4,_0x5c96a5,_0x1b68ed)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x178630=>{for(const _0x171282 of this['editor']['editing']['view']['document']['roots'])_0x1b68ed?_0x178630['removeClass']('ck-editor__editable__overlay',_0x171282):_0x178630['addClass']('ck-editor__editable__overlay',_0x171282);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x14cad2=>null!==_0x14cad2),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4467a2,_0x62e1f0,_0x2c4ed6)=>_0x4467a2&&_0x2c4ed6?_0x62e1f0['changes']['getIndex'](_0x2c4ed6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x17c697,_0x28a6f8)=>_0x17c697?_0x28a6f8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x13610c);}['init'](){const _0x770537=this['editor'],_0x15efbb=new wt(_0x770537,{'direction':'backward'}),_0x3794d1=new wt(_0x770537,{'direction':'forward'});(_0x770537['commands']['add']('showPreviousChange',_0x15efbb),_0x770537['commands']['add']('showNextChange',_0x3794d1),_0x770537['commands']['add']('restoreRevision',new mt(_0x770537)),this['on']('change:numberOfChanges',()=>{_0x15efbb['refresh'](),_0x3794d1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x770537['enableReadOnlyMode']('revision-viewer'),_0x770537['plugins']['has']('WidgetToolbarRepository'))&&_0x770537['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x13661d){return await this['_utils']['loadRevisionData'](_0x13661d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x13661d);}async['getRevisionRootsAttributes'](_0x39e5b4){return await this['_utils']['loadRevisionData'](_0x39e5b4,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x39e5b4);}async['compare'](_0x124660,_0x44a7d6,_0x37adb2=!0x1){if(!this['isEnabled'])return;const _0x45e739=this['diff'],_0x74383e=this['repository'],_0x2559de='string'==typeof _0x124660?_0x74383e['getRevision'](_0x124660):_0x124660,_0x1dace6='string'==typeof _0x44a7d6?_0x74383e['getRevision'](_0x44a7d6):_0x44a7d6,_0xac988=_0x2559de['id'],_0x2c5f50=_0x1dace6?_0x1dace6['id']:null;if(!_0x37adb2&&this['diff']&&this['diff']['newRevisionId']===_0xac988&&this['diff']['oldRevisionId']===_0x2c5f50)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0xac988,_0x2c5f50);const _0xd616ee=this['_getRevisionsRange'](_0x2559de,_0x1dace6,!0x0)['map'](_0x1a2fd7=>this['_utils']['loadRevisionData'](_0x1a2fd7,this['adapter']));return _0xd616ee['push'](new Promise(_0x37d9ce=>{setTimeout(_0x37d9ce,0x14);})),Promise['all'](_0xd616ee)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4c8a20=this['_getDiff'](_0xac988,_0x2c5f50);for(const _0xb8fec2 of _0x4c8a20['changes'])this['_changeIdToChange']['set'](_0xb8fec2['id'],_0xb8fec2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1b8156=>{for(const _0x1fb15e of this['editor']['model']['document']['getRootNames']())_0x1b8156['detachRoot'](_0x1fb15e);for(const _0x3750ef of Object['keys'](_0x4c8a20['model'])){const _0x559228=_0x1b8156['addRoot'](_0x3750ef);for(const _0x166611 of Object['keys'](_0x4c8a20['attributes'][_0x3750ef]))_0x1b8156['setAttribute'](_0x166611,_0x4c8a20['attributes'][_0x3750ef][_0x166611],_0x559228);_0x1b8156['insert'](_0x4c8a20['model'][_0x3750ef],_0x559228,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4c8a20['changes'])),this['isReady']=!0x0;})['catch'](_0x4e3aa6=>{console['error'](_0x4e3aa6),this['_cleanUp'](),_0x45e739&&(this['diff']=_0x45e739),this['isReady']=!0x0;});}['addRevisionData'](_0x347ec7,_0x10a790){const _0x120696=this['repository']['createRevision'](_0x347ec7);return _0x120696['on']('_update',(_0x43180e,_0x58953a,_0x58c2aa)=>_0x10a790(_0x58953a,_0x58c2aa,_0x120696)),this['repository']['addRevision'](_0x120696),_0x120696;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x55ed13=>{for(const _0x34766c of this['editor']['model']['document']['getRootNames']())_0x55ed13['detachRoot'](_0x34766c);});}['_sortAndFilterDiffChanges'](_0x6a6fe4){const _0x5e42db=[],_0x159eb3=new Map();for(const _0x267ac0 of this['editor']['model']['document']['getRootNames']()){const _0x2fb40d=this['editor']['editing']['view']['getDomRoot'](_0x267ac0);if(!_0x2fb40d)continue;const _0x3fcf13=_0x2fb40d['getClientRects']()['item'](0x0);_0x3fcf13&&(_0x5e42db['push'](_0x267ac0),_0x159eb3['set'](_0x267ac0,_0x3fcf13));}return _0x5e42db['sort']((_0x485cce,_0x501d94)=>{const _0x5dcded=_0x159eb3['get'](_0x485cce),_0x444f36=_0x159eb3['get'](_0x501d94);return _0x5dcded['y']-_0x444f36['y']||_0x5dcded['x']-_0x444f36['x'];}),(_0x6a6fe4=_0x6a6fe4['filter'](_0x2138b5=>_0x5e42db['includes'](_0x2138b5['rootName'])))['sort']((_0x2dcf75,_0x360a4d)=>_0x5e42db['indexOf'](_0x2dcf75['rootName'])-_0x5e42db['indexOf'](_0x360a4d['rootName'])),_0x6a6fe4;}['_makeTape'](_0x274dd2){const _0x3480eb=Array['from'](_0x274dd2['markers'])['filter'](([_0xe6c72a,_0x1e535a])=>_0xe6c72a['startsWith']('revision:')&&!_0x1e535a['isCollapsed']),_0x5b1bd9=Array['from'](this['editor']['model']['createRangeIn'](_0x274dd2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3480eb['length'])for(const _0x47f15a of _0x5b1bd9){const [_0x2eaf71,_0x5994a0]=_0x3480eb[0x0],[,_0x3c0c23,_0x4accd8]=_0x2eaf71['split'](':');if(_0x5994a0['end']['isEqual'](_0x47f15a['nextPosition'])&&_0x3480eb['shift'](),(_0x47f15a['previousPosition']['isEqual'](_0x5994a0['start'])||_0x47f15a['previousPosition']['isAfter'](_0x5994a0['start']))&&('insertion'==_0x3c0c23?_0x47f15a['isAdded']={'userId':_0x4accd8}:'deletion'==_0x3c0c23&&(_0x47f15a['isRemoved']={'userId':_0x4accd8})),0x0==_0x3480eb['length'])break;}return _0x5b1bd9;}['_refreshStartEndIndex'](_0x5d4e04){const _0x4e503e=new Map();for(let _0xd179dd=0x0;_0xd179dd<_0x5d4e04['length'];_0xd179dd++)'text'===_0x5d4e04[_0xd179dd]['type']?(_0x5d4e04[_0xd179dd]['item']['startIndex']=_0xd179dd,_0x5d4e04[_0xd179dd]['item']['endIndex']=_0xd179dd):('elementStart'===_0x5d4e04[_0xd179dd]['type']?_0x5d4e04[_0xd179dd]['item']['startIndex']=_0xd179dd:'elementEnd'===_0x5d4e04[_0xd179dd]['type']&&(_0x5d4e04[_0xd179dd]['item']['endIndex']=_0xd179dd),_0x4e503e['set'](_0x5d4e04[_0xd179dd]['id'],_0xd179dd));for(const _0x1f5062 of _0x4e503e['values']())'elementStart'===_0x5d4e04[_0x1f5062]['type']?_0x5d4e04[_0x1f5062]['item']['endIndex']=_0x4e503e['get'](_0x5d4e04[_0x1f5062]['pairId']):'elementEnd'===_0x5d4e04[_0x1f5062]['type']&&(_0x5d4e04[_0x1f5062]['item']['startIndex']=_0x4e503e['get'](_0x5d4e04[_0x1f5062]['pairId']));}['_processTape'](_0x5cf4e1){for(let _0x4f0dc6=0x0;_0x4f0dc6<_0x5cf4e1['length'];_0x4f0dc6++){if('elementStart'===_0x5cf4e1[_0x4f0dc6]['type'])_0x5cf4e1[_0x4f0dc6]['item']['startIndex']=_0x4f0dc6;else{if('elementEnd'===_0x5cf4e1[_0x4f0dc6]['type']){_0x5cf4e1[_0x4f0dc6]['item']['endIndex']=_0x4f0dc6;const _0xdefbc2=_0x5cf4e1[_0x4f0dc6]['item']['startIndex'];_0x5cf4e1[_0xdefbc2]['pairId']=_0x5cf4e1[_0x4f0dc6]['id'],_0x5cf4e1[_0x4f0dc6]['pairId']=_0x5cf4e1[_0xdefbc2]['id'];}else _0x5cf4e1[_0x4f0dc6]['item']['startIndex']=_0x4f0dc6,_0x5cf4e1[_0x4f0dc6]['item']['endIndex']=_0x4f0dc6,_0x5cf4e1[_0x4f0dc6]['pairId']=null;}_0x5cf4e1[_0x4f0dc6]['markersStart']||(_0x5cf4e1[_0x4f0dc6]['markersStart']=[],_0x5cf4e1[_0x4f0dc6]['markersEnd']=[]);}}['_markInsertions'](_0x4dc236,_0x43851a){const _0x4a2a58=_0x4dc236['filter'](_0x2fe737=>!_0x2fe737['isAdded']);for(let _0x38d660=0x0;_0x38d660<_0x43851a['length'];_0x38d660++)_0x43851a[_0x38d660]['isAdded']&&(_0x4a2a58[_0x38d660]['isAdded']=_0x43851a[_0x38d660]['isAdded']);}['_getDiff'](_0x5ddac3,_0xfb5371=null){const _0x2a73e4=this['repository']['getRevision'](_0x5ddac3),_0x55b8ef=_0xfb5371?this['repository']['getRevision'](_0xfb5371):null,_0x4595ca=this['_getRevisionsRange'](_0x2a73e4,_0x55b8ef),_0x5be366=_0x4595ca[_0x4595ca['length']-0x1],_0x23ecdf=new Map(),_0x28780e={'model':{},'attributes':{},'changes':[]},_0x5794af=new Set(),_0x20baf3=new Map();for(let _0x8cb46e=_0x4595ca['length']-0x1;_0x8cb46e>=0x0;_0x8cb46e--){const _0x4a169a=_0x4595ca[_0x8cb46e];for(const _0x99e49e of Object['keys'](_0x4a169a['diffData']))if(_0x4a169a['diffData'][_0x99e49e]['attachChange']){const _0x5e5bb8=_0x4a169a['diffData'][_0x99e49e]['attachChange'];_0x5e5bb8['isAttached']?(_0x5794af['add'](_0x99e49e),_0x20baf3['has'](_0x99e49e)&&_0x20baf3['get'](_0x99e49e)['userId']==_0x5e5bb8['userId']?_0x20baf3['delete'](_0x99e49e):_0x20baf3['set'](_0x99e49e,_0x5e5bb8)):_0x20baf3['has'](_0x99e49e)?(_0x5794af['delete'](_0x99e49e),_0x20baf3['delete'](_0x99e49e)):(_0x5794af['add'](_0x99e49e),_0x20baf3['set'](_0x99e49e,_0x5e5bb8));}else _0x5794af['add'](_0x99e49e);}for(const _0x3d0ad2 of _0x5794af){const _0x421e33=_0x20baf3['has'](_0x3d0ad2)&&!_0x20baf3['get'](_0x3d0ad2)['isAttached'];let _0x3d4c10=_0x421e33?_0x4595ca['length']-0x1:0x0;const _0x14109a=_0x421e33?-0x1:0x1;for(;_0x4595ca[_0x3d4c10];){const _0x1e3040=_0x4595ca[_0x3d4c10];if(_0x1e3040['diffData'][_0x3d0ad2]){const _0x1e61fa=_0x421e33?_0x1e3040['diffData'][_0x3d0ad2]['attributesBefore']:_0x1e3040['diffData'][_0x3d0ad2]['attributesAfter'];_0x28780e['attributes'][_0x3d0ad2]=_0x1e61fa?_0x2d8281(_0x1e61fa):{};break;}_0x3d4c10+=_0x14109a;}}for(const _0x166496 of _0x4595ca){_0x166496['model']={};for(const _0x585a1f of _0x166496['authors'])_0x23ecdf['set'](_0x585a1f['id'],_0x585a1f);for(const _0x27168 of _0x5794af){const _0x329cd6=_0x166496['diffData'][_0x27168]?_0x166496['diffData'][_0x27168]['insertions']:'[]',_0x25de3b=_0x166496['diffData'][_0x27168]?_0x166496['diffData'][_0x27168]['deletions']:'[]';_0x166496['model'][_0x27168]={'insertions':this['_utils']['_makeModelFromViewString'](_0x329cd6),'deletions':this['_utils']['_makeModelFromViewString'](_0x25de3b)};}}for(const _0x2c861d of _0x5794af){let _0x59ab43=null,_0xf96598=0x0;const _0x4c67bb=new Map(Array['from'](_0x2a73e4['model'][_0x2c861d]['insertions']['markers'])['filter'](([_0x271195])=>!_0x271195['startsWith']('revision:')));let _0x3dad59=0x0;for(const _0x1110d8 of _0x4595ca){const _0x5d64e3=this['_makeTape'](_0x1110d8['model'][_0x2c861d]['insertions']);_0x1110d8==_0x2a73e4?(_0x59ab43=_0x5d64e3,_0xf96598=_0x59ab43['length'],_0x59ab43['forEach'](_0xf61409=>{_0xf61409['id']=_0x3dad59++;}),this['_processTape'](_0x59ab43)):this['_markInsertions'](_0x59ab43,_0x5d64e3);const _0x55226f=_0x59ab43['filter'](_0x4698be=>!_0x4698be['isAdded'])['map'](_0x3d5fa3=>_0x3d5fa3['id']);let _0x2d77f9=0x0;const _0x5a1eba=this['_makeTape'](_0x1110d8['model'][_0x2c861d]['deletions']);_0x5a1eba['forEach'](_0x42fc8d=>{_0x42fc8d['isRemoved']?_0x42fc8d['id']=_0xf96598++:_0x42fc8d['id']=_0x55226f[_0x2d77f9++];}),this['_processTape'](_0x5a1eba),this['_setDistance'](_0x59ab43,'isAdded'),this['_setDistance'](_0x5a1eba,'isRemoved'),_0x1110d8==_0x2a73e4&&this['_markMarkers'](_0x59ab43,_0x4c67bb),_0x59ab43=this['_joinTapes'](_0x59ab43,_0x5a1eba),this['_refreshStartEndIndex'](_0x59ab43),this['_setDistance'](_0x59ab43,'isRemoved');}_0x59ab43=_0x59ab43['filter'](_0xb391ca=>!(_0xb391ca['isAdded']&&_0xb391ca['isRemoved']));const _0x53e776=new Map(_0x5be366['model'][_0x2c861d]['deletions']['markers']),_0x13c2c1=new Set(_0x4c67bb['keys']());for(const _0x2c320d of _0x53e776['keys']())_0x13c2c1['delete'](_0x2c320d);this['_markSuggestions'](_0x59ab43,_0x13c2c1),this['_fixObsoleteTags'](_0x59ab43),_0x59ab43=this['_removeMissingPairs'](_0x59ab43),_0x59ab43=this['_markMismatchedRemovedTags'](_0x59ab43),_0x59ab43=this['_removeUnsupportedChanges'](_0x59ab43);const {root:_0x46bd35,changes:_0x39f159}=this['_makeModelFromTape'](_0x59ab43,_0x23ecdf,_0x2c861d);_0x28780e['model'][_0x2c861d]=_0x46bd35;const _0x579403=_0x20baf3['get'](_0x2c861d);if(_0x579403){const _0x595762=_0x23ecdf['get'](_0x579403['userId']),_0x4989cd=new r({'author':_0x595762,'type':_0x579403['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2c861d});_0x39f159['unshift'](_0x4989cd),_0x28780e['attributes'][_0x2c861d]['revisionHistoryAttachChange']=_0x4989cd['id'];}_0x28780e['changes']=_0x28780e['changes']['concat'](_0x39f159);}return _0x28780e;}['_markMarkers'](_0x975326,_0x35a7be){for(let _0x2af6a7=0x0;_0x2af6a7<_0x975326['length'];_0x2af6a7++)for(const [_0x19f58c,_0x4668a7]of _0x35a7be)!_0x4668a7['isCollapsed']&&_0x4668a7['start']['isEqual'](_0x975326[_0x2af6a7]['previousPosition'])&&_0x975326[_0x2af6a7]['markersStart']['push'](_0x19f58c),_0x4668a7['end']['isEqual'](_0x975326[_0x2af6a7]['nextPosition'])&&_0x975326[_0x2af6a7]['markersEnd']['push'](_0x19f58c);}['_joinTapes'](_0x4ffcb2,_0x14ac59){let _0xc2b474=[],_0x56abfa=0x0,_0x208b5f=0x0;for(;_0x56abfa<_0x4ffcb2['length']||_0x208b5f<_0x14ac59['length'];){const _0x5e0c5d=_0x4ffcb2[_0x56abfa]||{},_0x4ee6b7=_0x14ac59[_0x208b5f]||{};if(_0x5e0c5d['id']==_0x4ee6b7['id'])_0x56abfa++,_0x208b5f++,_0xc2b474['push'](_0x5e0c5d);else{if(_0x4ee6b7['isRemoved']&&_0x5e0c5d['isAdded']){const {commonTape:_0x1bd178,iEnd:_0x590daf,jEnd:_0x7ad865}=this['_threeWayMerge'](_0x4ffcb2,_0x56abfa,_0x14ac59,_0x208b5f);_0xc2b474=_0xc2b474['concat'](_0x1bd178),_0x56abfa=_0x590daf,_0x208b5f=_0x7ad865;}else _0x4ee6b7['isRemoved']?(_0x208b5f++,_0xc2b474['push'](_0x4ee6b7)):(_0x56abfa++,_0xc2b474['push'](_0x5e0c5d));}}return _0xc2b474;}['_markSuggestions'](_0x5469ca,_0x37cac6){const _0x35d8bf=[];for(let _0x1c248b=0x0;_0x1c248b<_0x5469ca['length'];_0x1c248b++){for(let _0x364b66=0x0;_0x364b66<_0x5469ca[_0x1c248b]['markersStart']['length'];_0x364b66++){const _0x55d795=_0x5469ca[_0x1c248b]['markersStart'][_0x364b66];if(!_0x37cac6['has'](_0x55d795))continue;const {group:_0x1e6cfe,type:_0x4a198c,authorId:_0x12c080}=_0x3e3800(_0x55d795);'revision-suggestion'!=_0x1e6cfe||'insertion'!=_0x4a198c&&'deletion'!=_0x4a198c||(_0x35d8bf['unshift']({'type':_0x4a198c,'name':_0x55d795,'userId':_0x12c080}),_0x5469ca[_0x1c248b]['markersStart']['splice'](_0x364b66,0x1),_0x364b66--);}_0x54566b(_0x5469ca[_0x1c248b]);for(let _0x5d6718=0x0;_0x5d6718<_0x5469ca[_0x1c248b]['markersEnd']['length'];_0x5d6718++){const _0x333a4b=_0x5469ca[_0x1c248b]['markersEnd'][_0x5d6718];if(!_0x37cac6['has'](_0x333a4b))continue;const {group:_0x431f9a,type:_0x475441}=_0x3e3800(_0x333a4b);if('revision-suggestion'!=_0x431f9a||'insertion'!=_0x475441&&'deletion'!=_0x475441)continue;_0x5469ca[_0x1c248b]['markersEnd']['splice'](_0x5d6718,0x1),_0x5d6718--;const _0x5f0089=_0x35d8bf['findIndex'](_0x551cc4=>_0x551cc4['name']==_0x333a4b);_0x5f0089>-0x1&&_0x35d8bf['splice'](_0x5f0089,0x1);}}function _0x3e3800(_0x4e1a41){const _0x5cfef6=_0x4e1a41['split'](':');return{'group':_0x5cfef6[0x0],'type':_0x5cfef6[0x1],'subType':_0x5cfef6['length']>=0x5?_0x5cfef6[0x2]:null,'id':_0x5cfef6['length']<0x5?_0x5cfef6[0x2]:_0x5cfef6[0x3],'authorId':_0x5cfef6['length']<0x5?_0x5cfef6[0x3]:_0x5cfef6[0x4],'markerCount':0x6==_0x5cfef6['length']?_0x5cfef6[0x5]:null};}function _0x54566b(_0x5c39a5){for(let _0x12cddc=0x0;_0x12cddc<_0x35d8bf['length'];_0x12cddc++){if(_0x5c39a5['isAdded']&&'insertion'==_0x35d8bf[_0x12cddc]['type'])return _0x5c39a5['isAddSuggestion']=_0x35d8bf[_0x12cddc],void delete _0x5c39a5['isAdded'];if(!_0x5c39a5['isAdded']&&!_0x5c39a5['isRemoved']&&'deletion'==_0x35d8bf[_0x12cddc]['type'])return void(_0x5c39a5['isRemoveSuggestion']=_0x35d8bf[_0x12cddc]);}}}['_setDistance'](_0x1c9650,_0x462ab1){let _0x20f0f0=0x0,_0x3c845f=!0x1;const _0x31e80a=new Map();for(const _0x39ab4a of _0x1c9650)_0x39ab4a[_0x462ab1]?_0x3c845f&&(_0x20f0f0++,_0x3c845f=!0x1):(_0x20f0f0++,_0x3c845f=!0x0),_0x31e80a['set'](_0x39ab4a['id'],_0x20f0f0);for(let _0x322dde=0x0;_0x322dde<_0x1c9650['length'];_0x322dde++){if('isRemoved'==_0x462ab1&&_0x1c9650[_0x322dde]['isAdded']||'isAdded'==_0x462ab1&&_0x1c9650[_0x322dde]['isRemoved'])continue;if('text'==_0x1c9650[_0x322dde]['type']){_0x1c9650[_0x322dde]['distance']=0x0;continue;}const _0x277fa0=_0x31e80a['get'](_0x1c9650[_0x322dde]['pairId']),_0x364d71=_0x31e80a['get'](_0x1c9650[_0x322dde]['id']);_0x1c9650[_0x322dde]['distance']=_0x277fa0-_0x364d71;}}['_getRevisionsRange'](_0x197bf3,_0x58d440,_0x12953b=!0x1){const _0x1d7e88=[];let _0x5dbe52=this['repository']['getIndex'](_0x197bf3),_0x5ef98a=this['repository']['getIndex'](_0x58d440);for(-0x1==_0x5ef98a&&(_0x5ef98a=this['repository']['_revisions']['length'],_0x12953b=!0x1);_0x5dbe52<_0x5ef98a;)_0x1d7e88['push'](this['repository']['getRevision'](_0x5dbe52)),_0x5dbe52++;return _0x12953b&&_0x1d7e88['push'](this['repository']['getRevision'](_0x5dbe52)),_0x1d7e88;}['_threeWayMerge'](_0x527b21,_0x4d0601,_0x1aeb94,_0x13709f){const _0x42c840=this['editor']['model']['schema'];let _0x3980d8=_0x4d0601;for(;_0x527b21[_0x3980d8]&&_0x527b21[_0x3980d8]['isAdded'];)_0x3980d8++;let _0x1c5f96=_0x13709f;for(;_0x1aeb94[_0x1c5f96]&&_0x1aeb94[_0x1c5f96]['isRemoved'];)_0x1c5f96++;_0x10492f(_0x527b21,_0x4d0601,_0x3980d8),_0x10492f(_0x1aeb94,_0x13709f,_0x1c5f96);const _0x112c78=_0x1aeb94['slice'](_0x13709f,_0x1c5f96)['concat'](_0x527b21['slice'](_0x4d0601,_0x3980d8));return _0x112c78['sort']((_0x351ab4,_0x136906)=>_0x351ab4['side']!=_0x136906['side']?_0x351ab4['side']-_0x136906['side']:_0x351ab4['level']!=_0x136906['level']?_0x351ab4['level']-_0x136906['level']:_0x351ab4['distance']!=_0x136906['distance']?_0x136906['distance']-_0x351ab4['distance']:!!_0x351ab4['isAdded']!=!!_0x136906['isAdded']?-0x1==_0x351ab4['side']||0x0==_0x351ab4['side']?_0x351ab4['isAdded']?-0x1:0x1:_0x351ab4['isAdded']?0x1:-0x1:_0x351ab4['index']-_0x136906['index']),{'commonTape':_0x112c78,'iEnd':_0x3980d8,'jEnd':_0x1c5f96};function _0x10492f(_0x98f7bf,_0x1f7bf4,_0x12e82e){let _0x44d59f=-0x1,_0x3cf243=Number['POSITIVE_INFINITY'],_0x3013a8=!0x0;for(let _0x3684ee=_0x1f7bf4;_0x3684ee<_0x12e82e;_0x3684ee++)if(_0x42c840['isInline'](_0x98f7bf[_0x3684ee]['item'])||(_0x3013a8=!0x1),_0x98f7bf[_0x3684ee]['item']['startIndex']<_0x1f7bf4&&(_0x44d59f=_0x3684ee),_0x98f7bf[_0x3684ee]['item']['endIndex']>=_0x12e82e){_0x3cf243=_0x3684ee;break;}_0x3013a8&&(_0x44d59f=_0x12e82e-0x1);for(let _0x55abea=_0x1f7bf4;_0x55abea<_0x12e82e;_0x55abea++)_0x98f7bf[_0x55abea]['side']=_0x55abea<=_0x44d59f?-0x1:_0x55abea<_0x3cf243?0x0:0x1,_0x98f7bf[_0x55abea]['index']=_0x55abea;let _0xba5ffa=0x0;for(let _0x1845eb=_0x1f7bf4;_0x1845eb<=_0x44d59f;_0x1845eb++)0x0==_0x98f7bf[_0x1845eb]['distance']?_0x98f7bf[_0x1845eb]['level']=_0xba5ffa:(_0xba5ffa++,_0x98f7bf[_0x1845eb]['level']=_0xba5ffa,_0xba5ffa++);for(let _0x2b85f3=_0x1f7bf4;_0x2b85f3<_0x12e82e;_0x2b85f3++)0x0==_0x98f7bf[_0x2b85f3]['side']&&(_0x98f7bf[_0x2b85f3]['level']=_0xba5ffa);_0xba5ffa=0x0;for(let _0x2874ea=_0x12e82e-0x1;_0x2874ea>=_0x3cf243;_0x2874ea--)0x0==_0x98f7bf[_0x2874ea]['distance']?_0x98f7bf[_0x2874ea]['level']=_0xba5ffa:(_0xba5ffa--,_0x98f7bf[_0x2874ea]['level']=_0xba5ffa,_0xba5ffa--);}}['_fixObsoleteTags'](_0x571fc3){const _0x251c7f=new Map(),_0x201e4b=this['editor']['model']['schema'];for(let _0x582ef1=0x1;_0x582ef1<_0x571fc3['length'];_0x582ef1++){let _0x25378c,_0x3a251e,_0x33f52b;const _0x3edcda=_0x571fc3[_0x582ef1],_0x222625=_0x571fc3[_0x582ef1-0x1];if('text'==_0x3edcda['type'])continue;if(_0x3edcda['type']!=_0x222625['type'])continue;if(!_0x201e4b['isBlock'](_0x222625['item'])||_0x201e4b['isLimit'](_0x222625['item']))continue;if(!_0x201e4b['isBlock'](_0x3edcda['item'])||_0x201e4b['isLimit'](_0x3edcda['item']))continue;if((_0x571fc3[_0x582ef1]['isAdded']||_0x571fc3[_0x582ef1]['isAddSuggestion'])&&_0x571fc3[_0x582ef1-0x1]['isRemoved'])_0x25378c=_0x571fc3[_0x582ef1],_0x3a251e=_0x571fc3[_0x582ef1-0x1],_0x33f52b=_0x582ef1-0x1;else{if(!_0x571fc3[_0x582ef1]['isRemoved']||!_0x571fc3[_0x582ef1-0x1]['isAdded']&&!_0x571fc3[_0x582ef1-0x1]['isAddSuggestion'])continue;_0x25378c=_0x571fc3[_0x582ef1-0x1],_0x3a251e=_0x571fc3[_0x582ef1],_0x33f52b=_0x582ef1;}const _0x33b1d2=_0x25378c['level']==_0x3a251e['level'],_0x2f56a5=Math['abs'](_0x25378c['level'])<Math['abs'](_0x3a251e['level'])&&0x0==_0x3a251e['distance'];(_0x33b1d2||_0x2f56a5)&&(_0x251c7f['set'](_0x3a251e['id'],_0x25378c['id']),_0x571fc3['splice'](_0x33f52b,0x1),_0x582ef1--,_0x25378c['isAdded']=!0x1);}for(let _0x30b826=0x0;_0x30b826<_0x571fc3['length'];_0x30b826++)_0x251c7f['has'](_0x571fc3[_0x30b826]['pairId'])&&(_0x571fc3[_0x30b826]['pairId']=_0x251c7f['get'](_0x571fc3[_0x30b826]['pairId']));}['_removeMissingPairs'](_0x506a80){const _0x18bacc=new Set(_0x506a80['map'](_0x13f056=>_0x13f056['id']));for(let _0x5898df=0x0;_0x5898df<_0x506a80['length'];_0x5898df++)_0x18bacc['has'](_0x506a80[_0x5898df]['pairId'])||0x0==_0x506a80[_0x5898df]['distance']||(_0x506a80[_0x5898df]['isIncorrect']=!0x0);return _0x506a80['filter'](_0x5e9faf=>!_0x5e9faf['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5caba1){const _0x29b91d=new Set();for(let _0x4f4424=0x0;_0x4f4424<_0x5caba1['length'];_0x4f4424++){if(_0x29b91d['has'](_0x5caba1[_0x4f4424]['id'])&&_0x5caba1[_0x4f4424]['isRemoved']&&(_0x5caba1[_0x4f4424]['isIncorrect']=!0x0),_0x5caba1[_0x4f4424]['isIncorrect'])continue;if(0x0==_0x5caba1[_0x4f4424]['distance'])continue;if('elementStart'!=_0x5caba1[_0x4f4424]['type'])continue;if(null==_0x5caba1[_0x4f4424]['pairId'])continue;let _0x12de4a=_0x4f4424+0x1,_0x2e5520=0x0;for(;_0x5caba1[_0x12de4a]['id']!=_0x5caba1[_0x4f4424]['pairId'];)'elementStart'==_0x5caba1[_0x12de4a]['type']?_0x2e5520++:'elementEnd'==_0x5caba1[_0x12de4a]['type']&&_0x2e5520--,_0x12de4a++;if(0x0!=_0x2e5520){if(_0x5caba1[_0x4f4424]['isRemoved'])_0x5caba1[_0x4f4424]['isIncorrect']=!0x0;else{for(;_0x12de4a!=_0x4f4424;)_0x5caba1[_0x12de4a]['isRemoved']&&0x0!=_0x5caba1[_0x12de4a]['distance']&&(_0x5caba1[_0x12de4a]['isIncorrect']=!0x0,_0x29b91d['add'](_0x5caba1[_0x12de4a]['pairId'])),_0x12de4a--;}}}return _0x5caba1['filter'](_0x2e4d59=>!_0x2e4d59['isIncorrect']);}['_removeUnsupportedChanges'](_0x5e1994){const _0x289fad=this['editor']['model']['schema'];for(let _0x286c8f=0x0;_0x286c8f<_0x5e1994['length'];_0x286c8f++){if(!(_0x5e1994[_0x286c8f]['isAdded']||_0x5e1994[_0x286c8f]['isAddSuggestion']||_0x5e1994[_0x286c8f]['isRemoved']||_0x5e1994[_0x286c8f]['isRemoveSuggestion']))continue;if(0x0==_0x5e1994[_0x286c8f]['distance'])continue;const _0x372151=_0x5e1994[_0x286c8f]['item'];_0x289fad['isBlock'](_0x372151)||_0x289fad['isLimit'](_0x372151)||(_0x5e1994[_0x286c8f]['isAdded']&&delete _0x5e1994[_0x286c8f]['isAdded'],_0x5e1994[_0x286c8f]['isAddSuggestion']&&delete _0x5e1994[_0x286c8f]['isAddSuggestion'],_0x5e1994[_0x286c8f]['isRemoveSuggestion']&&delete _0x5e1994[_0x286c8f]['isRemoveSuggestion'],_0x5e1994[_0x286c8f]['isRemoved']&&(_0x5e1994[_0x286c8f]['isIncorrect']=!0x0));}return _0x5e1994['filter'](_0x4db2cb=>!_0x4db2cb['isIncorrect']);}['_makeModelFromTape'](_0x1e1758,_0x173649,_0x4110ca){const _0xced0a=new vt(),_0x105221=[],_0x4359d6=new Map(),_0x3bb5f8=this['editor']['model'],_0x3830ee=_0x3bb5f8['schema'],_0x425a3c=[_0xced0a],_0x24a197={},_0x10d999={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5b4c60=null;const _0x3d9c98=[0x0];for(let _0x1f18d5=0x0;_0x1f18d5<_0x1e1758['length'];_0x1f18d5++)if('elementStart'===_0x1e1758[_0x1f18d5]['type']){_0x1e1758[_0x1f18d5]['previousPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98);const _0x4d293a=new ut(_0x1e1758[_0x1f18d5]['item']['name'],_0x1e1758[_0x1f18d5]['item']['getAttributes']());_0x425a3c[0x0]['_appendChild'](_0x4d293a),_0x3d9c98['push'](0x0),_0x425a3c['unshift'](_0x4d293a),_0x1e1758[_0x1f18d5]['nextPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98);}else'elementEnd'===_0x1e1758[_0x1f18d5]['type']?(_0x425a3c['shift'](),_0x1e1758[_0x1f18d5]['previousPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98),_0x3d9c98['pop'](),_0x3d9c98[_0x3d9c98['length']-0x1]++,_0x1e1758[_0x1f18d5]['nextPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98)):(_0x1e1758[_0x1f18d5]['previousPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98),_0x5b4c60?_0x5b4c60['_data']+=_0x1e1758[_0x1f18d5]['item']['data']:_0x5b4c60=new gt(_0x1e1758[_0x1f18d5]['item']['data'],_0x1e1758[_0x1f18d5]['item']['getAttributes']()),_0x1e1758[_0x1f18d5+0x1]&&'text'===_0x1e1758[_0x1f18d5+0x1]['type']&&_0x26a4a9(_0x5b4c60,_0x1e1758[_0x1f18d5+0x1]['item'])||(_0x425a3c[0x0]['_appendChild'](_0x5b4c60),_0x5b4c60=null),_0x3d9c98[_0x3d9c98['length']-0x1]+=_0x1e1758[_0x1f18d5]['item']['offsetSize'],_0x1e1758[_0x1f18d5]['nextPosition']=_0x3bb5f8['createPositionFromPath'](_0xced0a,_0x3d9c98));for(let _0x1e9f9c=0x0;_0x1e9f9c<_0x1e1758['length'];_0x1e9f9c++){const _0x309114=_0x1e1758[_0x1e9f9c]['previousPosition'],_0xaa958b=_0x1e1758[_0x1e9f9c]['nextPosition'];for(const _0x54969d of _0x1e1758[_0x1e9f9c]['markersStart'])_0x4359d6['set'](_0x54969d,{'start':_0x309114,'end':null});_0x2fc0d3('isRemoveSuggestion',_0x1e9f9c,_0x309114,_0xaa958b),_0x2fc0d3('isAddSuggestion',_0x1e9f9c,_0x309114,_0xaa958b),_0x2fc0d3('isRemoved',_0x1e9f9c,_0x309114,_0xaa958b),_0x2fc0d3('isAdded',_0x1e9f9c,_0x309114,_0xaa958b);for(const _0x35409c of _0x1e1758[_0x1e9f9c]['markersEnd']){const _0x55072b=_0x4359d6['get'](_0x35409c);_0x55072b?_0x55072b['end']=_0xaa958b:_0x4359d6['set'](_0x35409c,{'start':_0xaa958b,'end':_0xaa958b});}}for(const [_0x5c7c8c,_0x20f535]of _0x4359d6){const _0x588d73=this['editor']['model']['createRange'](_0x20f535['start'],_0x20f535['end']);_0xced0a['markers']['set'](_0x5c7c8c,_0x588d73);}return _0x105221['sort']((_0x57b4aa,_0x31eafd)=>{const _0x24326d=_0xced0a['markers']['get']('revision:'+_0x57b4aa['id']),_0x2fbacb=_0xced0a['markers']['get']('revision:'+_0x31eafd['id']);return _0x24326d['start']['isBefore'](_0x2fbacb['start'])?-0x1:_0x24326d['start']['isAfter'](_0x2fbacb['start'])?0x1:_0x24326d['end']['isBefore'](_0x2fbacb['end'])?-0x1:_0x24326d['end']['isAfter'](_0x2fbacb['end'])?0x1:'add'===_0x57b4aa['type']?-0x1:0x1;}),{'root':_0xced0a,'changes':_0x105221};function _0x2fc0d3(_0x5ac93b,_0x307d3a,_0x2d3229,_0x373cfa){const _0x9c75ab=!!_0x1e1758[_0x307d3a][_0x5ac93b],_0x59b301=_0x9c75ab?_0x1e1758[_0x307d3a][_0x5ac93b]['userId']:null,_0x53c4fe=_0x307d3a===_0x1e1758['length']-0x1,_0x2f8cfc=_0x10d999[_0x5ac93b][0x0],_0x3b24b8=_0x3830ee['isObject'](_0x1e1758[_0x307d3a]['item']);!_0x24a197[_0x5ac93b]&&_0x9c75ab?_0x24a197[_0x5ac93b]={'start':_0x2d3229,'tapeItem':_0x1e1758[_0x307d3a],'userId':_0x59b301,'type':_0x5ac93b}:_0x24a197[_0x5ac93b]&&!_0x9c75ab?(_0x24a197[_0x5ac93b]['end']=_0x2d3229,_0x2b28a5(_0x24a197[_0x5ac93b]),_0x24a197[_0x5ac93b]=null):_0x24a197[_0x5ac93b]&&_0x9c75ab&&_0x24a197[_0x5ac93b]['userId']!==_0x59b301&&(_0x24a197[_0x5ac93b]['end']=_0x2d3229,_0x2f8cfc&&_0x2f8cfc['userId']===_0x24a197[_0x5ac93b]['userId']||_0x2b28a5(_0x24a197[_0x5ac93b]),_0x24a197[_0x5ac93b]={'start':_0x2d3229,'tapeItem':_0x1e1758[_0x307d3a],'userId':_0x59b301,'type':_0x5ac93b}),_0x24a197[_0x5ac93b]&&_0x3b24b8&&('elementStart'!==_0x1e1758[_0x307d3a]['type']||_0x2f8cfc&&_0x2f8cfc['userId']===_0x59b301||_0x10d999[_0x5ac93b]['unshift']({'userId':_0x59b301,'object':_0x1e1758[_0x307d3a]['item'],'change':_0x24a197[_0x5ac93b]}),'elementEnd'===_0x1e1758[_0x307d3a]['type']&&_0x2f8cfc&&_0x2f8cfc['object']===_0x1e1758[_0x307d3a]['item']&&(_0x10d999[_0x5ac93b]['shift'](),_0x24a197[_0x5ac93b]=_0x2f8cfc['change'])),_0x24a197[_0x5ac93b]&&_0x53c4fe&&(_0x24a197[_0x5ac93b]['end']=_0x373cfa,_0x2b28a5(_0x24a197[_0x5ac93b]),_0x24a197[_0x5ac93b]=null);}function _0x2b28a5({start:_0x481308,end:_0x39c53a,tapeItem:_0x4531a5,userId:_0x31a9fc,type:_0x23e3d0}){const _0x2f029c=_0x4531a5['item'],_0x4c8f4b=_0x3bb5f8['schema']['isBlock'](_0x2f029c)&&!_0x3bb5f8['schema']['isLimit'](_0x2f029c),_0x205332=_0x481308['nodeAfter']==_0x39c53a['parent']&&_0x39c53a['isAtStart'];if(_0x4c8f4b&&_0x205332)return;const _0x3071b0=_0x3bb5f8['createRange'](_0x481308,_0x39c53a),_0x36b594=_0x173649['get'](_0x31a9fc),_0x9c3b4e=new r({'author':_0x36b594,'type':'isAdded'==_0x23e3d0||'isAddSuggestion'==_0x23e3d0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x23e3d0||'isRemoveSuggestion'==_0x23e3d0},'createdAt':new Date(),'rootName':_0x4110ca});_0x105221['push'](_0x9c3b4e),_0xced0a['markers']['set']('revision:'+_0x9c3b4e['id'],_0x3071b0);}function _0x26a4a9(_0x37eda1,_0x15922d){const _0x4cdb90=_0x37eda1['getAttributes'](),_0x101cba=_0x15922d['getAttributes']();for(const _0x52623c of _0x4cdb90){if(_0x52623c[0x1]!==_0x15922d['getAttribute'](_0x52623c[0x0]))return!0x1;_0x101cba['next']();}return _0x101cba['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3b416e=>{const _0x7afc00=_0x3b416e['markerName']['split'](':')[0x1],_0x529813=this['_getChangeFromId'](_0x7afc00);if(!_0x529813)return null;const _0xc393db='add'==_0x529813['type']?'insertion':'deletion',_0x427b70=['ck-suggestion-marker','ck-suggestion-marker-'+_0xc393db];return _0x529813['data']['isSuggestion']&&_0x427b70['push']('ck-suggestion-marker-'+_0xc393db+'-new'),this['activeChange']==_0x529813&&_0x427b70['push']('ck-suggestion-marker--active'),{'classes':_0x427b70,'attributes':{'data-change-id':_0x7afc00}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x31e2b2=>{_0x31e2b2['on']('element:pre',(_0x283c23,_0x188ead,_0x55c701)=>{const _0x3da664=_0x188ead['viewItem']['getChild'](0x0);if(!_0x3da664||!_0x3da664['is']('element','code'))return;if(!_0x55c701['consumable']['consume'](_0x3da664,{'attributes':['vid_start','vid_end']}))return;const _0xd3aa40=_0x188ead['modelRange']['start']['nodeAfter'];_0x55c701['writer']['setAttribute']('vid_start',_0x3da664['getAttribute']('vid_start'),_0xd3aa40),_0x55c701['writer']['setAttribute']('vid_end',_0x3da664['getAttribute']('vid_end'),_0xd3aa40);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x49d1a6=>{_0x49d1a6['on']('element',(_0x7f2bb2,_0x3e6056,_0x8784f3)=>{if(!_0x8784f3['consumable']['consume'](_0x3e6056['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e6056['modelRange']['isCollapsed'])return;const _0x3cd81c=_0x3e6056['modelRange']['start']['nodeAfter'];_0x3cd81c['hasAttribute']('vid_start')||_0x3cd81c['hasAttribute']('vid')||(_0x8784f3['writer']['setAttribute']('vid_start',_0x3e6056['viewItem']['getAttribute']('vid_start'),_0x3cd81c),_0x8784f3['writer']['setAttribute']('vid_end',_0x3e6056['viewItem']['getAttribute']('vid_end'),_0x3cd81c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x147253=>_0x147253['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x250480,[,_0x4413c6])=>{['vid_start','vid_end','vid']['includes'](_0x4413c6)&&(_0x250480['return']=!0x0,_0x250480['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1ebd30=>{_0x1ebd30['on']('attribute:vid',(_0x26ecc4,_0x2ea193,_0x3ed259)=>{if('\x20'!=_0x2ea193['item']['data']||_0x2ea193['item']['parent']['maxOffset']>0x1)return;if(!_0x3ed259['consumable']['consume'](_0x2ea193['item'],_0x26ecc4['name']))return;const _0x3f55cf=_0x3ed259['writer'],_0x5dd891=_0x3ed259['mapper']['toViewRange'](_0x2ea193['range']);_0x3f55cf['wrap'](_0x5dd891,_0x3f55cf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x13172a){const _0x38151c=_0x13172a['plugins']['get']('RevisionViewer');return(_0x2db728,_0x7118,_0x56668d)=>{const _0x211183=_0x7118['markerName']['split'](':')[0x1],_0x1d29b2=_0x38151c['_getChangeFromId'](_0x211183);if(!_0x1d29b2)return null;const _0x5c5718='add'==_0x1d29b2['type']?'split':'merge';if(!_0x56668d['consumable']['test'](_0x7118['markerRange'],_0x2db728['name']))return;const _0x3f200f=_0x7118['markerRange']['getWalker'](),_0x57e18e=_0x7118['markerRange']['start'],_0x1841c2=_0x13172a['model']['schema'];let _0x3fe0e0=null,_0x37a285=null,_0x2699f0=!0x1,_0x110b67=!0x1;for(const _0x1295d9 of _0x3f200f){const _0x388522=_0x1295d9['item'];_0x2699f0=_0x2699f0||_0x1841c2['isContent'](_0x388522);const _0x5a8b95=_0x56668d['mapper']['toViewElement'](_0x388522);if(_0x5a8b95&&_0x5a8b95['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1295d9['type']&&(_0x1841c2['isBlock'](_0x388522)&&!_0x1841c2['isLimit'](_0x388522)&&(_0x388522['nextSibling']||_0x57e18e['isAtEnd']?_0x3fe0e0&&_0x3fe0e0['parent']==_0x388522||(_0x3fe0e0=_0x388522,_0x202800(_0x1295d9['previousPosition']),_0x110b67=!0x0):_0x37a285=_0x37a285||_0x1295d9['previousPosition']));}function _0x202800(_0x43f3d8){const _0x3882f=_0x56668d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c5718}),_0x286491=_0x56668d['mapper']['toViewPosition'](_0x43f3d8);_0x1d29b2['data']['isSuggestion']&&_0x56668d['writer']['addClass']('ck-suggestion-marker-'+_0x5c5718+'-new',_0x3882f),_0x38151c['activeChange']==_0x1d29b2&&_0x56668d['writer']['addClass']('ck-suggestion-marker--active',_0x3882f),_0x56668d['writer']['insert'](_0x286491,_0x3882f),_0x56668d['mapper']['bindElementToMarker'](_0x3882f,_0x7118['markerName']);}_0x2699f0||_0x110b67||!_0x37a285||_0x202800(_0x37a285);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xbf1566,_0x2fa6d8,_0x5c6a86)=>{const _0x1697b3=_0x5c6a86['mapper']['markerNameToElements'](_0x2fa6d8['markerName']);if(_0x1697b3){for(const _0x3b9659 of _0x1697b3)(_0x3b9659['hasClass']('ck-suggestion-marker-split')||_0x3b9659['hasClass']('ck-suggestion-marker-merge'))&&(_0x5c6a86['mapper']['unbindElementFromMarkerName'](_0x3b9659,_0x2fa6d8['markerName']),_0x5c6a86['writer']['remove'](_0x3b9659));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5a862b,_0x410938,_0x522a70)=>{const _0x490d2b=_0x410938['markerName']['split'](':')[0x1],_0x3ca4e5=this['_getChangeFromId'](_0x490d2b);if(!_0x3ca4e5)return null;const _0x3052de='add'==_0x3ca4e5['type']?'split':'merge';if(_0x522a70['consumable']['test'](_0x410938['markerRange'],_0x5a862b['name']))for(const _0x13a914 of _0x410938['markerRange']['getItems']()){if(!_0x13a914['is']('element','softBreak'))continue;const _0x2dba1b=_0x522a70['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3052de}),_0x7a931f=_0x522a70['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x13a914));_0x3ca4e5['data']['isSuggestion']&&_0x522a70['writer']['addClass']('ck-suggestion-marker-'+_0x3052de+'-new',_0x2dba1b),this['activeChange']==_0x3ca4e5&&_0x522a70['writer']['addClass']('ck-suggestion-marker--active',_0x2dba1b),_0x522a70['writer']['insert'](_0x7a931f,_0x2dba1b),_0x522a70['mapper']['bindElementToMarker'](_0x2dba1b,_0x410938['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x14fa6d=>{for(const _0xfa947 of this['editor']['model']['document']['getRootNames']()){const _0x4429b4=this['editor']['model']['document']['getRoot'](_0xfa947),_0x1be09a=this['editor']['editing']['view']['document']['getRoot'](_0xfa947);if(_0x1be09a){const _0x52273a=_0x4429b4['getAttribute']('revisionHistoryAttachChange');if(_0x14fa6d['removeAttribute']('data-change-id',_0x1be09a),_0x14fa6d['removeClass']('ck-revision-history-root-add',_0x1be09a),_0x14fa6d['removeClass']('ck-revision-history-root-remove',_0x1be09a),_0x14fa6d['removeClass']('ck-revision-history-root--active',_0x1be09a),_0x52273a){const _0x385408=this['_getChangeFromId'](_0x52273a);if(!_0x385408)return null;_0x14fa6d['setAttribute']('data-change-id',_0x52273a,_0x1be09a),_0x14fa6d['addClass']('ck-revision-history-root-'+_0x385408['type'],_0x1be09a),this['activeChange']==_0x385408&&_0x14fa6d['addClass']('ck-revision-history-root--active',_0x1be09a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x25974d=>'revision-comment:'+_0x25974d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x34eabd=>'revision-suggestion:'+_0x34eabd,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x41631f=>({'name':'suggestion:'+_0x41631f,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xaa2e99=>{const _0xadb5e2=_0xaa2e99['markerName']['split'](':')[0x1];return'insertion'!=_0xadb5e2&&'deletion'!=_0xadb5e2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xadb5e2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3cf717,_0x1a2626,_0xcc8753)=>{const _0x4d41a8=_0xcc8753['mapper']['markerNameToElements'](_0x1a2626['markerName']);if(_0x4d41a8){for(const _0x14db19 of _0x4d41a8)_0x14db19['is']('uiElement')&&(_0xcc8753['mapper']['unbindElementFromMarkerName'](_0x14db19,_0x1a2626['markerName']),_0xcc8753['writer']['remove'](_0x14db19));}},{'priority':'high'});}['_getChangeFromId'](_0x188e9e){return this['_changeIdToChange']['get'](_0x188e9e);}['_getViewForChange'](_0x469ecc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x469ecc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x57e017,_0x523740,_0x2f0cbe,_0x4fe58c)=>{_0x4fe58c&&this['_balloon']['remove'](_0x4fe58c),_0x2f0cbe&&(this['_balloon']['add']({'view':_0x2f0cbe,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2fe4b9=this['editor']['editing'],_0x2ad542=this['_getChangeFromId'](_0x2f0cbe['changeId']);let _0x12dd70;if(_0x2ad542['data']['isOnRoot']){const _0x16040a=_0x2fe4b9['view']['getDomRoot'](_0x2ad542['rootName']);_0x12dd70=Array['from'](_0x16040a['getClientRects']());}else{const _0x226b83=this['editor']['model']['markers']['get']('revision:'+_0x2f0cbe['changeId']);_0x12dd70=Array['from'](_0x2fe4b9['mapper']['markerNameToElements'](_0x226b83['name']))['map'](_0x51e4be=>_0x2fe4b9['view']['domConverter']['mapViewToDom'](_0x51e4be))['map'](_0x3f968c=>Array['from'](_0x3f968c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x12dd70[0x0];return _0x12dd70['find'](_0x74a72=>_0x74a72['top']-0x3<=this['_activeViewTarget']['y']&&_0x74a72['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x74a72['left']-0x3<=this['_activeViewTarget']['x']&&_0x74a72['right']+0x3>=this['_activeViewTarget']['x'])||_0x12dd70[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x534bb2,_0x4115b9,_0x48bb18,_0x214b97)=>{this['activeView']=_0x48bb18?this['_getViewForChange'](_0x48bb18):null,this['editor']['model']['change'](()=>{const _0x32ea13=this['editor']['editing'];_0x214b97&&(_0x214b97['data']['isOnRoot']?_0x32ea13['view']['change'](_0x215e63=>{_0x215e63['removeClass']('ck-revision-history-root--active',_0x32ea13['view']['document']['getRoot'](_0x214b97['rootName']));}):_0x32ea13['reconvertMarker']('revision:'+_0x214b97['id'])),_0x48bb18&&(_0x48bb18['data']['isOnRoot']?_0x32ea13['view']['change'](_0x2c5d3c=>{_0x2c5d3c['addClass']('ck-revision-history-root--active',_0x32ea13['view']['document']['getRoot'](_0x48bb18['rootName']));}):_0x32ea13['reconvertMarker']('revision:'+_0x48bb18['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3cf8eb,_0x4697fb)=>{if(this['activeChange'])return;const _0x24c50b=this['_findChangeIdFromDomTarget'](_0x4697fb['target']),_0x4fbfc3=this['_changeIdToChange']['get'](_0x24c50b);_0x4fbfc3?(this['_activeViewTarget']={'x':_0x4697fb['domEvent']['x'],'y':_0x4697fb['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4fbfc3)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1fe4c2,_0x32117a)=>{const _0xe8d565=this['_findChangeIdFromDomTarget'](_0x32117a['target']),_0x561dc4=this['_changeIdToChange']['get'](_0xe8d565);_0x561dc4?(this['_activeViewTarget']={'x':_0x32117a['domEvent']['x'],'y':_0x32117a['domEvent']['y']},_0x561dc4===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x561dc4):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x376d94){do{const _0x1af19a=_0x376d94['getAttribute']('data-change-id');if(_0x1af19a)return _0x1af19a;_0x376d94=_0x376d94['parent'];}while(_0x376d94);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x49df5a=>{for(const _0x228a4b of this['editor']['model']['markers'])_0x49df5a['removeMarker'](_0x228a4b);});}}function X(_0x170111,_0x476cbf){return(_0x1eab1c,_0xdca701,_0x512eac)=>{if(!_0x512eac['consumable']['test'](_0xdca701['markerRange'],_0x1eab1c['name']))return;const _0x42c46d=_0xdca701['markerRange']['getWalker'](),_0x13d1da=_0xdca701['markerRange']['start'],_0x216ca4=_0x170111['model']['schema'];let _0x73c7c8=null,_0x236720=null,_0x225483=!0x1,_0x3af2fe=!0x1;for(const _0x212f98 of _0x42c46d){const _0x206a03=_0x212f98['item'];_0x225483=_0x225483||_0x216ca4['isContent'](_0x206a03);const _0x4c7b6c=_0x512eac['mapper']['toViewElement'](_0x206a03);if(_0x4c7b6c&&_0x4c7b6c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x212f98['type']&&(_0x216ca4['isBlock'](_0x206a03)&&!_0x216ca4['isLimit'](_0x206a03)&&(_0x206a03['nextSibling']||_0x13d1da['isAtEnd']?_0x73c7c8&&_0x73c7c8['parent']==_0x206a03||(_0x73c7c8=_0x206a03,_0x116202(_0x212f98['previousPosition']),_0x3af2fe=!0x0):_0x236720=_0x236720||_0x212f98['previousPosition']));}function _0x116202(_0x4f151f){const _0x508d3a=_0x512eac['mapper']['toViewPosition'](_0x4f151f),_0x4c907e=_0x512eac['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x476cbf});_0x512eac['writer']['insert'](_0x508d3a,_0x4c907e),_0x512eac['mapper']['bindElementToMarker'](_0x4c907e,_0xdca701['markerName']);}_0x225483||_0x3af2fe||!_0x236720||_0x116202(_0x236720);};}class mt extends _0x44b670{constructor(_0xe8b722){super(_0xe8b722);const _0x380998=_0xe8b722['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x380998,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x380998,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x283e51=this['editor'],_0x38b684=_0x283e51['plugins']['get'](m),_0x54d0e4=_0x38b684['isReady']?_0x38b684['diff']['newRevisionId']:null;_0x283e51['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x54d0e4);}['refresh'](){const {isReady:_0x2dfbb5,isEnabled:_0x30d98f,repository:_0x1e0807,diff:_0x11db00}=this['editor']['plugins']['get'](m),_0x2f2805=_0x11db00&&_0x1e0807['getLaterVisibleRevision'](_0x11db00['newRevisionId']);this['isEnabled']=_0x2dfbb5&&_0x30d98f&&Boolean(_0x2f2805);}}class wt extends _0x44b670{['_step'];constructor(_0x39a8a4,{direction:_0x39a1dd}){super(_0x39a8a4);const _0x342fda=_0x39a8a4['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x39a1dd?0x1:-0x1,this['listenTo'](_0x342fda,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x342fda,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x342fda,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3a6fd7=this['editor'],_0x4d489a=_0x3a6fd7['plugins']['get'](m),{isNavigationMode:_0x152031,currentChangeNumber:_0x10e2f7}=_0x4d489a;let _0x3b6ab6;if(_0x4d489a['activeChange']=_0x152031?_0x4d489a['diff']['changes']['get'](_0x10e2f7+this['_step']):_0x4d489a['diff']['changes']['first'],_0x4d489a['activeChange']['data']['isOnRoot'])_0x3b6ab6=_0x3a6fd7['editing']['view']['getDomRoot'](_0x4d489a['activeChange']['rootName']);else{const _0x4ce5ad=_0x3a6fd7['model']['markers']['get']('revision:'+_0x4d489a['activeChange']['id']);_0x3b6ab6=_0x5625d8(_0x3a6fd7['editing'],_0x4ce5ad);}_0x43357b({'target':_0x3b6ab6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5b5e8b,currentChangeNumber:_0x31ad11,numberOfChanges:_0x3ade57,isReady:_0x1c6234,isEnabled:_0x37532a}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x37532a&&_0x1c6234&&_0x3ade57)&&(!_0x5b5e8b||(0x1===this['_step']?_0x31ad11<_0x3ade57-0x1:_0x31ad11>0x0));}}class _i extends ts{constructor(_0x7702ad){super(_0x7702ad);const _0x32f6eb=this['bindTemplate'],_0x2598eb=new te(_0x7702ad),_0x44c1bc=new te(_0x7702ad);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',(_0x2ebac6,_0x4468dc)=>_0x2ebac6&&_0x4468dc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5d3fd4,_0x22b1fe,_0x484794,_0x4897ac)=>{if(!_0x5d3fd4)return g(_0x7702ad,'Loading...');if(!_0x484794)return g(_0x7702ad,'No\x20changes');const _0x53ec4a=g(_0x7702ad,'NUMBER_OF_CHANGES',_0x484794);return _0x4897ac?g(_0x7702ad,'X_OF_Y_CHANGES',[_0x22b1fe+0x1,_0x484794]):_0x53ec4a;}),_0x2598eb['set']({'label':g(_0x7702ad,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xe65ac}),_0x44c1bc['set']({'label':g(_0x7702ad,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2bbf01}),_0x2598eb['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x44c1bc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2598eb['on']('execute',()=>this['fire']('execute','backward')),_0x44c1bc['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',_0x32f6eb['if']('_isStatusLabelVisible','ck-hidden',_0x6b7d4a=>!_0x6b7d4a)]},'children':[{'text':_0x32f6eb['to']('isNavigationMode',_0x3f46a8=>_0x3f46a8?g(_0x7702ad,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x7702ad,'Total')+':\x20')}]},{'text':_0x32f6eb['to']('_statusText')}]},new _0x668f32(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2598eb,_0x44c1bc]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4e23c9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x173273=this['editor']['editing']['view'];_0x173273['change'](_0x498df9=>{for(const _0x8b4b78 of _0x173273['document']['roots'])_0x498df9['addClass'](le,_0x8b4b78);});}['hide'](){const _0xd919e5=this['editor']['editing']['view'];_0xd919e5['change'](_0x3d4183=>{for(const _0x396a1a of _0xd919e5['document']['roots'])_0x3d4183['removeClass'](le,_0x396a1a);});}}class R extends _0x4e23c9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x26966c=this['editor'],_0x5e4fa2=_0x26966c['plugins']['get'](m),_0x2f0a6d=_0x26966c['plugins']['get'](ge);_0x26966c['ui']['componentFactory']['add']('exitToEditing',_0x2ca381=>{const _0x272dfc=new te(_0x2ca381);return _0x272dfc['set']({'label':g(_0x2ca381,'Back\x20to\x20editing'),'icon':_0x59629e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x272dfc,'execute',()=>{_0x26966c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x272dfc;}),_0x26966c['ui']['componentFactory']['add']('restoreRevision',_0x32a25b=>{const _0x46718d=new te(_0x32a25b);return _0x46718d['set']({'label':g(_0x32a25b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x46718d['bind']('isEnabled')['to'](_0x26966c['commands']['get']('restoreRevision')),this['listenTo'](_0x46718d,'execute',()=>_0x26966c['execute']('restoreRevision')),_0x46718d;}),_0x26966c['ui']['componentFactory']['add']('changesNavigation',_0x43439b=>{const _0x36ad97=new _i(_0x43439b),_0x4197e7=_0x26966c['commands']['get']('showPreviousChange'),_0x37193f=_0x26966c['commands']['get']('showNextChange');return _0x36ad97['bind']('isBackwardNavigationEnabled')['to'](_0x4197e7,'isEnabled'),_0x36ad97['bind']('isForwardNavigationEnabled')['to'](_0x37193f,'isEnabled'),_0x36ad97['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5e4fa2),this['listenTo'](_0x36ad97,'execute',(_0x5a230c,_0x579d66)=>{_0x26966c['execute']('forward'===_0x579d66?'showNextChange':'showPreviousChange');}),_0x36ad97;}),_0x2f0a6d['show'](),_0x5e4fa2['on']('change:isReady',(_0x59943d,_0x59e04a,_0x380687)=>{_0x380687?_0x2f0a6d['hide']():_0x2f0a6d['show']();});}}class at extends _0xd95170{['_resizeObserver']=null;constructor(_0x21509d,_0x3361fd){super(_0x21509d,_0x3361fd);const _0x521dc8=this['bindTemplate'];this['set']({'label':g(_0x21509d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x21509d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x521dc8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4ea27d=this['fieldView']['element'];this['_tooltipString']=_0x4ea27d['scrollWidth']>_0x4ea27d['clientWidth']&&_0x4ea27d['value']||'';}}class si extends ts{constructor(_0x81fecc,_0x3ea9a3,_0x1ef3da){super(_0x81fecc);const _0x3eccc4=new _0x5ada3b();_0x3eccc4['set']({'content':_0x42ad19,'viewBox':'0\x200\x2011\x2010'});const _0xef442d=['ck','ck-revision-history-sidebar__revision-author'];_0x1ef3da&&_0xef442d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3e94cd=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x81fecc,_0x1ef3da?'Revision\x20creator':'Revision\x20author')},'children':[_0x3eccc4,_0x3ea9a3['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xef442d},'children':_0x3e94cd});}}function oi(_0x7dccab,_0x52e854){const _0x3a947d=_0x7dccab['bindTemplate'],_0x3b747f=_0x7dccab['locale'],_0x32200e=_0x1d1841(_0x3b747f);_0x32200e['panelPosition']='sw';const _0x4381db=function(_0x316ba0,_0x4026e2){const _0x4c273d=function(_0x2ed308,_0x335423){const _0x19b4a9=_0x2ed308['locale'],_0x383f24={'Compare\x20against\x20selected':g(_0x19b4a9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x19b4a9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x19b4a9,'Restore\x20this\x20revision')};return _0x335423['map'](_0x1ae878=>{const _0x304a63=_0x383f24[_0x1ae878['name']];return _0x304a63&&_0x304a63!==_0x1ae878['name']&&(_0x1ae878['name']=_0x304a63),_0x1ae878;});}(_0x316ba0,_0x4026e2),_0x28c346=new _0x201912();for(const _0x13a5ab of _0x4c273d){const _0x39454c={'type':'button','model':new to({'label':_0x13a5ab['name'],'class':_0x13a5ab['class'],'withText':!0x0,'role':'menuitem','_action':_0x13a5ab['action']})};_0x39454c['model']['bind']('isEnabled')['to'](_0x316ba0,'isActionsDropdownOpen',_0x6afd07=>'function'!=typeof _0x13a5ab['isEnabled']||(!_0x6afd07||_0x13a5ab['isEnabled'](_0x316ba0))),_0x28c346['add'](_0x39454c);}return _0x28c346;}(_0x7dccab,_0x52e854);return _0x7dccab['bind']('isActionsDropdownOpen')['to'](_0x32200e,'isOpen'),_0x32200e['buttonView']['set']({'label':g(_0x3b747f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x19dfc7}),_0x32200e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3a947d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3a947d['to'](_0x3b3618=>_0x3b3618['stopPropagation']())}}),_0x32200e['on']('execute',_0x2dc515=>{_0x7dccab['isReady']&&'function'==typeof _0x2dc515['source']['_action']&&_0x2dc515['source']['_action'](_0x7dccab);}),_0x217bb6(_0x32200e,_0x4381db,{'role':'menu'}),_0x32200e['listenTo'](_0x7dccab,'change:isActionsDropdownOpen',(_0x58834e,_0x4c56fd,_0x49af11)=>{if(_0x49af11)for(const _0x34e2c9 of _0x32200e['listView']['items']){const _0x25c42c=_0x34e2c9['children']['first'],_0x1fa2fc=_0x52e854['find'](_0x6710bd=>_0x6710bd['action']===_0x25c42c['_action'])['isVisible'];_0x34e2c9['isVisible']=void 0x0===_0x1fa2fc||_0x1fa2fc(_0x7dccab);}}),_0x32200e;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x11ad2b,_0x393118,_0x2d4187,_0x418f8b){super(_0x11ad2b);const _0x113192=this['bindTemplate'],_0x5ae173=function(_0x29b938,_0x22edb1){const _0x4477a4=Array['from'](_0x22edb1['authors'])['filter'](_0x4b81f4=>_0x4b81f4!=_0x22edb1['creator']);return _0x22edb1['creator']&&_0x4477a4['unshift'](_0x22edb1['creator']),_0x4477a4['map'](_0x525161=>new si(_0x29b938,_0x525161,_0x525161==_0x22edb1['creator']));}(_0x11ad2b,_0x393118);this['id']=_0x393118['id'],this['_revision']=_0x393118,this['_requireRevisionName']=_0x418f8b,this['bind']('name','createdAt')['to'](_0x393118),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x18cf73=>{return _0x23c645=_0x11ad2b['uiLanguage'],(_0x116b2b=_0x18cf73)['toLocaleDateString'](_0x23c645,{'month':'long','day':'numeric'})+',\x20'+_0x116b2b['toLocaleTimeString'](_0x23c645,{'hour':'numeric','minute':'numeric'});var _0x23c645,_0x116b2b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x11ad2b,_0x3fbf0a),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x29af89=>_0x29af89||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3767ab,_0x4cef91)=>_0x3767ab&&_0x4cef91),this['revisionActionsView']=_0x2d4187&&_0x2d4187['length']?oi(this,_0x2d4187):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x113192['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x113192['if']('isEnabled','ck-disabled',_0x1e7eab=>!_0x1e7eab),_0x113192['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x113192['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x113192['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':_0x113192['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':_0x5ae173}]},this['revisionActionsView']],'on':{'click':_0x113192['to'](_0x5c6e16=>{_0x5c6e16['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x55da12=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x55da12,'change',()=>{this['_requireRevisionName']&&!_0x55da12['value']||this['fire']('setName',{'id':this['id'],'name':_0x55da12['value']}),_0x55da12['value']||(_0x55da12['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x11c68b,_0xa0a847){const _0x42a1e8=_0x3c3f24['fromJSDate'](_0x11c68b)['setLocale'](_0xa0a847),_0x3a52f8=_0x3c3f24['local'](),_0x544f36=_0x3a52f8['minus']({'days':0x1})['startOf']('day');let _0x59e318,_0x478367;return _0x42a1e8['hasSame'](_0x3a52f8,'day')?(_0x59e318=_0x42a1e8['startOf']('day')['toJSDate'](),_0x478367=_0x42a1e8['toRelativeCalendar']()):_0x42a1e8['hasSame'](_0x544f36,'day')?(_0x59e318=_0x544f36['toJSDate'](),_0x478367=_0x42a1e8['toRelativeCalendar']()):_0x42a1e8['hasSame'](_0x3a52f8,'week')?(_0x59e318=_0x42a1e8['startOf']('week')['toJSDate'](),_0x478367=_0x42a1e8['weekdayLong']||''):_0x42a1e8['hasSame'](_0x3a52f8,'year')?(_0x59e318=_0x42a1e8['startOf']('month')['toJSDate'](),_0x478367=_0x42a1e8['monthLong']||''):(_0x59e318=_0x42a1e8['startOf']('year')['toJSDate'](),_0x478367=String(_0x42a1e8['year'])),{'startDate':_0x59e318,'localizedPeriodName':_0x478367};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2f2fb6,_0x50d66c,_0x3d875c,_0x1d2eff){super(_0x2f2fb6);const _0x1d1182=ai(_0x50d66c,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x50d66c,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3d875c,this['_requireRevisionName']=_0x1d2eff,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':_0x1d1182}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4e06da){const _0x5736e4=new hi(this['locale'],_0x4e06da,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5736e4);}['removeRevision'](_0x34037a){const _0xd33b33=this['revisionViews']['find'](_0x45e4c8=>_0x45e4c8['id']===_0x34037a['id']);this['revisionViews']['remove'](_0xd33b33);}}class as extends ts{constructor(_0x123632){super(_0x123632);const _0x13ae7d=new _0x5ada3b();_0x13ae7d['content']=_0x3e5a1e,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x13ae7d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x123632,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x251201,_0x23fa1d,_0x16e760,_0x51f44f){super(_0x251201);const _0x16def4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x23fa1d,this['_revisionActions']=_0x16e760,this['_requireRevisionName']=_0x51f44f,this['on']('select',(_0x2202ad,_0x182912)=>{this['fire']('revisionSelected',_0x182912);}),this['on']('setName',(_0x1a7240,_0x5d49ec)=>{this['fire']('revisionSetName',_0x5d49ec);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x251201),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x16def4['if']('isEnabled','ck-disabled',_0x522fd9=>!_0x522fd9)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x36f7ae of this['_revisions'])this['_addRevision'](_0x36f7ae);this['_revisions']['on']('add',(_0x5d191c,_0x413de7)=>{this['_addRevision'](_0x413de7);}),this['_revisions']['on']('remove',(_0x36348a,_0x2eec26)=>{this['_removeRevision'](_0x2eec26);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x6d3048=>_0x6d3048['revisionViews']['map'](_0x53bf1b=>_0x53bf1b))['flat']();}['selectRevision'](_0x4ed5f1){for(const _0x5228b5 of this['revisionViews'])_0x4ed5f1&&_0x4ed5f1['id']===_0x5228b5['id']?_0x5228b5['select']():_0x5228b5['deselect']();}['highlightRevisions'](_0x383ca4){for(const _0x4513bb of this['revisionViews'])_0x383ca4['some'](({id:_0x5dd7ce})=>_0x5dd7ce===_0x4513bb['id'])?_0x4513bb['highlight']():_0x4513bb['unhighlight']();}['_addRevision'](_0x5064be){const _0x50a7c0=ai(_0x5064be['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4db3bb=this['timePeriodViews']['get'](0x0);_0x4db3bb&&_0x4db3bb['startDate']['getTime']()===_0x50a7c0['getTime']()||(_0x4db3bb=new di(this['locale'],_0x50a7c0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4db3bb)),_0x4db3bb['addRevision'](_0x5064be);}['_removeRevision'](_0x40d82c){const _0x3acabe=ai(_0x40d82c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3acabe)['removeRevision'](_0x40d82c);}['_getTimePeriodViewByStartDate'](_0x5319be){return this['timePeriodViews']['find'](_0x509da0=>_0x509da0['startDate']['getTime']()===_0x5319be['getTime']());}}class d extends _0x4e23c9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x355854(_0x338cea){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x57ce38,_0x5d8eef){super(_0x5d8eef),this['sourceElement']=_0x57ce38,this['model']['document']['createRoot']();const _0x27c376=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x27c376);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x372fea,_0x4ce5bc){const _0x3724d4=new this(_0x372fea,_0x4ce5bc);return await _0x3724d4['initPlugins'](),await _0x3724d4['ui']['init'](_0x372fea),await _0x3724d4['data']['init'](_0x3724d4['config']['get']('initialData')||''),_0x3724d4['fire']('ready'),_0x3724d4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x34d9d9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4437ad){function _0x7d9104(_0x147973){return _0x147973['map'](_0x3df626=>String['fromCharCode'](_0x3df626))['join']('');}super(_0x4437ad),this['result']='end',_0x4437ad[_0x7d9104([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7d9104([0x76,0x69,0x65,0x77])][_0x7d9104([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7d9104([0x61,0x75,0x74,0x6f]),_0x4437ad[_0x7d9104([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x7d9104([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7d9104([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x7d9104([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x7d9104([0x6f,0x6b])});}}class k extends _0x34d9d9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4b92ac){if(super(_0x4b92ac),!this['editor']['config']['get']('revisionHistory'))throw new _0x2ff414('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x14e74f=>this['_showRevisionViewer']({..._0x14e74f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x15181b=>this['_closeRevisionViewer'](_0x15181b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4b60a4=>this['_restoreRevision'](_0x4b60a4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xa3db3f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xa3db3f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x313a92){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x313a92);}['getRevision'](_0x3cf9d8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3cf9d8);}['getRevisions'](_0x5cd890){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5cd890||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x217717=this['editor'],_0x4505fa=_0x1ebec0(_0x217717,p),_0x150bbc=_0x217717['plugins']['get']('RevisionTracker'),_0x1a694a=_0x217717['plugins']['get']('Users')['users'];return _0x4505fa['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4505fa['lazyRoots'],(_0x4505fa['plugins']['push'](yt,m,R,class extends _0x34d9d9{static get['requires'](){return[m,'Users'];}['init'](){const _0x2e87a3=this['editor']['plugins']['get']('Users');for(const _0x16ca29 of _0x1a694a)_0x16ca29['isAnonymous']||_0x2e87a3['getUser'](_0x16ca29['id'])||_0x2e87a3['addUser'](_0x16ca29);const _0x2730df=_0x150bbc['repository']['getRevisions']();let _0x433b88=null;const _0xc7ebc0=this['editor']['plugins']['get']('RevisionViewer');_0xc7ebc0['adapter']=_0x150bbc['adapter'],_0xc7ebc0['bind']('isEnabled')['to'](_0x150bbc),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x217717,'isReadOnly',_0x5e3140=>!_0x5e3140);for(const _0xfff23 of _0x2730df){const _0x30e85e=null===_0xfff23['creator'];if(_0x30e85e&&_0xfff23['toVersion']===_0xfff23['fromVersion'])continue;const _0x3604d9=_0xfff23['toJSON']();_0xc7ebc0['addRevisionData'](_0x3604d9,(_0x1d5d38,_0x1e3c64,_0x1a7775)=>{if(_0x30e85e){if(_0x433b88)_0x433b88['_update'](_0x1d5d38,_0x1e3c64);else{if(!_0x1e3c64){const _0x4fe2cd=_0x1a7775['toJSON']();_0x4fe2cd['id']=_0x521db4(),_0x150bbc['saveRevision'](_0x4fe2cd,_0x1a7775['toVersion'])['then'](_0x21965b=>{_0x433b88=_0x21965b;});}}}else _0xfff23['_update'](_0x1d5d38,_0x1e3c64);});}}},d),_0x4505fa);}['_enhanceShowRevisionViewerCallback'](){const _0x11a5e4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x52508b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1c8603=this['editor']['plugins']['get']('Autosave');await _0x1c8603['save']();}else await _0x52508b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x174b97=this['editor']['plugins']['get']('Dialog');_0x174b97['isOpen']&&_0x174b97['hide']();}const _0x59d869=this['_getRevisionViewerEditorConfig']();return _0x11a5e4(_0x59d869)['then'](_0x52cc8c=>{return(this['_viewerEditor']=_0x52cc8c,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'),_0x52cc8c);})['catch'](_0x237134=>(console['error'](_0x237134),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x13681f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x13681f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5d4cb1=this['editor']['plugins']['get']('Annotations');_0x5d4cb1['refreshVisibility'](),_0x5d4cb1['refreshPositioning']();}})));}['_showRevisionViewer'](_0xaaee79){const _0xec4e5e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x24099c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x624f65=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x624f65,_0xaaee79)['then'](_0x259c8f=>(_0x24099c['style']['display']='block',_0xec4e5e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x259c8f));}['_closeRevisionViewer'](_0x2fdb15){const _0x50c06e=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x50c06e['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2fdb15['destroy']();}async['_restoreRevision'](_0x31daba){const _0x295dd6=this['editor'],_0xf5d987=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x424f8a=_0x295dd6['plugins']['get']('RevisionTracker'),_0x40ff3c=_0x295dd6['plugins']['get']('RevisionHistoryUtils'),_0x4e6a3e=_0xf5d987['repository']['getRevision'](_0x31daba);let _0x3d5d2f,_0x2ee2fd,_0x59cf68;try{await _0x40ff3c['loadRevisionData'](_0x4e6a3e,this['adapter']),_0x3d5d2f=_0x40ff3c['getRevisionDocumentData'](_0x4e6a3e),_0x2ee2fd=_0x40ff3c['getRevisionRootsAttributes'](_0x4e6a3e);}catch(_0x37d35f){return void console['error'](_0x37d35f);}_0x295dd6['model']['change'](_0x1e0953=>{for(const _0x2ee335 of Array['from'](_0x295dd6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1e0953['removeMarker'](_0x2ee335);}),_0xf5d987['isReady']=!0x1,_0x295dd6['model']['enqueueChange'](_0x3cf5af=>{_0x3cf5af['setSelection'](null),_0x3cf5af['removeSelectionAttribute'](_0x295dd6['model']['document']['selection']['getAttributeKeys']());const _0x43e93b=Object['keys'](_0x3d5d2f);for(const _0x450100 of _0x295dd6['model']['document']['roots'])'$graveyard'!=_0x450100['rootName']&&_0x450100['isAttached']()&&!_0x43e93b['includes'](_0x450100['rootName'])&&_0x3cf5af['detachRoot'](_0x450100);for(const _0x564701 of _0x43e93b){let _0x538347=_0x295dd6['model']['document']['getRoot'](_0x564701);_0x538347&&_0x538347['isAttached']()||(_0x538347=_0x3cf5af['addRoot'](_0x564701));const _0x183777=_0x2ee2fd[_0x564701],_0x4bea15=Object['keys'](_0x183777),_0x150ce0=_0x3d5d2f[_0x564701];for(const _0x1a561c of _0x538347['getAttributeKeys']())_0x4bea15['includes'](_0x1a561c)||_0x3cf5af['removeAttribute'](_0x1a561c,_0x538347);for(const _0x901a02 of _0x4bea15)_0x3cf5af['setAttribute'](_0x901a02,_0x2ee2fd[_0x564701][_0x901a02],_0x538347);_0x3cf5af['remove'](_0x3cf5af['createRangeIn'](_0x538347)),_0x3cf5af['insert'](_0x295dd6['data']['parse'](_0x150ce0,_0x538347),_0x538347,0x0);}});const _0x597100=g(_0x295dd6['locale'],'Restored');if(_0x4e6a3e['name'])_0x59cf68=-0x1==_0x4e6a3e['name']['indexOf'](_0x597100)?_0x597100+':\x20'+_0x4e6a3e['name']:_0x4e6a3e['name'];else _0x59cf68=_0x597100+':\x20'+(_0x4e6a3e['createdAt']['toLocaleDateString'](_0x295dd6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4e6a3e['createdAt']['toLocaleTimeString'](_0x295dd6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x424f8a['saveRevision']({'name':_0x59cf68}),_0xf5d987['isReady']=!0x0,_0x295dd6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x2901f6){super(_0x2901f6),this['_revisionViewer']=_0x2901f6['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x352767=this['_revisionsRepository']['_revisions'],_0x2ef326=this['_createRevisionActions'](),_0x20b78b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x352767,_0x2ef326,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',(_0x2aedc8,_0x44c654)=>{_0x44c654['revisionViews']['on']('add',(_0x32d83c,_0x6301bb)=>{_0x6301bb['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)),_0x20b78b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1e0bb4=this['_revisionsRepository']['getRevision'](0x0);if(_0x1e0bb4){const _0x31cae8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1e0bb4['id']);this['_revisionViewer']['compare'](_0x1e0bb4,_0x31cae8);}}['_handleRevisionSelected'](_0x298eae,_0xdd638c){const _0x3d6e24=this['_revisionsRepository']['getRevision'](_0xdd638c['id']),_0x2dbe5e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3d6e24['id']);this['_revisionViewer']['compare'](_0x3d6e24,_0x2dbe5e);}['_handleRevisionSetName'](_0x2c3d6b,_0x1172aa){this['_revisionsRepository']['getRevision'](_0x1172aa['id'])['setName'](_0x1172aa['name']);}['_handleDiffChange'](_0x388024,_0x57abae,_0x533fbf){const _0x231091=this['_revisionsRepository']['getRevisionsInDiff'](_0x533fbf);_0x231091['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x231091),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x231091[0x0]));}['_createRevisionActions'](){const _0x1bd3a4=this['editor'],_0x3fcd95=d['availableRevisionActions'],_0x48657d=_0x1bd3a4['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x48657d['length'])return _0x48657d['map'](_0x2f20f6=>{const _0x8382b8='string'==typeof _0x2f20f6?Object['assign']({},_0x3fcd95[_0x2f20f6]):_0x2f20f6;return _0x8382b8['action']=_0x8382b8['action']['bind'](this,_0x1bd3a4),_0x8382b8['isVisible']&&(_0x8382b8['isVisible']=_0x8382b8['isVisible']['bind'](this,_0x1bd3a4)),_0x8382b8;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1aae31},_0x39c0f5)=>{const _0x552536=_0x1aae31['get'](m),_0x4c6c70=_0x552536['repository'];let _0x22a14c=_0x552536['diff']['newRevisionId'],_0x2564fe=_0x39c0f5['id'];_0x4c6c70['getIndex'](_0x22a14c)>_0x4c6c70['getIndex'](_0x2564fe)&&([_0x22a14c,_0x2564fe]=[_0x2564fe,_0x22a14c]),_0x552536['compare'](_0x22a14c,_0x2564fe);},'isVisible':({plugins:_0x563674},_0x59dc3a)=>{const _0x3bad0d=_0x563674['get'](m);return!(_0x3bad0d['repository']['getRevisionsInDiff'](_0x3bad0d['diff'])['length']>0x2)&&!_0x59dc3a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3077b3,{id:_0x962933})=>{_0x3077b3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x962933);},'isVisible':({plugins:_0x551234},_0x1cbe99)=>!!_0x551234['get'](m)['repository']['getLaterVisibleRevision'](_0x1cbe99['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2d7de0},{id:_0x1a1826,revisionNameView:_0x436aff})=>{const _0x658f19=_0x2d7de0['get'](m),_0x1996d7=_0x658f19['repository']['getEarlierVisibleRevision'](_0x1a1826);_0x658f19['compare'](_0x1a1826,_0x1996d7),_0x436aff['focus'](),_0x436aff['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1488d3,_0x5f5997){super(_0x1488d3),this['_view']=_0x5f5997,this['_toolbarConfig']=et(_0x1488d3['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x55a016){const _0x105ea5=this['editor'],_0x2447de=this['view'],_0x3db187=_0x105ea5['editing']['view'],_0x5baab6=_0x2447de['editable'],_0x48e053=_0x3db187['document']['getRoot']();_0x5baab6['name']=_0x48e053['rootName'],_0x2447de['render']();const _0x3e9df1=_0x5baab6['element'];this['setEditableElement'](_0x5baab6['name'],_0x3e9df1),_0x2447de['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3db187['attachDomRoot'](_0x3e9df1),this['_elementReplacer']['replace'](_0x55a016,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4cb3e7=this['view'],_0x3bdaa1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3bdaa1['detachDomRoot'](_0x4cb3e7['editable']['name']),_0x4cb3e7['destroy']();}['_initToolbar'](){const _0x1b5c4a=this['view'];_0x1b5c4a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1b5c4a['stickyPanel']['limiterElement']=_0x1b5c4a['element'],_0x1b5c4a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3a432c})=>_0x3a432c),_0x1b5c4a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1b5c4a['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2c19c0,_0x309984,_0x29f126={}){super(_0x2c19c0),this['stickyPanel']=new ht(_0x2c19c0),this['toolbar']=new dt(_0x2c19c0,{'shouldGroupWhenFull':_0x29f126['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x2c19c0,_0x309984);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x1df5e0(_0x33974a){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4cc05e,_0x31788d){super(_0x31788d),this['sourceElement']=_0x4cc05e,this['model']['document']['createRoot']();const _0x72c654=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x72c654);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x201e7c,_0x59bb95){const _0x17038f=new this(_0x201e7c,_0x59bb95);return await _0x17038f['initPlugins'](),await _0x17038f['ui']['init'](_0x201e7c),await _0x17038f['data']['init'](_0x17038f['config']['get']('initialData')||''),_0x17038f['fire']('ready'),_0x17038f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x4e23c9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ba781){function _0x1324c9(_0x352be7){return _0x352be7['map'](_0x404b0f=>String['fromCharCode'](_0x404b0f))['join']('');}super(_0x4ba781),this['result']='end',_0x4ba781[_0x1324c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1324c9([0x76,0x69,0x65,0x77])][_0x1324c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1324c9([0x61,0x75,0x74,0x6f]),_0x4ba781[_0x1324c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1324c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1324c9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1324c9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1324c9([0x6f,0x6b])});}}class k extends _0x4e23c9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x32cab4){if(super(_0x32cab4),!this['editor']['config']['get']('revisionHistory'))throw new _0x5c9d7f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x49c21b=>this['_showRevisionViewer']({..._0x49c21b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xccc3a=>this['_closeRevisionViewer'](_0xccc3a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x430cdb=>this['_restoreRevision'](_0x430cdb)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3a535b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3a535b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1c58fb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1c58fb);}['getRevision'](_0x94bd6c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x94bd6c);}['getRevisions'](_0x235674){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x235674||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4517e9=this['editor'],_0x427fb6=_0x43bed1(_0x4517e9,p),_0xf2ec6b=_0x4517e9['plugins']['get']('RevisionTracker'),_0x2c0304=_0x4517e9['plugins']['get']('Users')['users'];return _0x427fb6['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x427fb6['lazyRoots'],(_0x427fb6['plugins']['push'](_t,m,R,class extends _0x4e23c9{static get['requires'](){return[m,'Users'];}['init'](){const _0x34caa6=this['editor']['plugins']['get']('Users');for(const _0x563248 of _0x2c0304)_0x563248['isAnonymous']||_0x34caa6['getUser'](_0x563248['id'])||_0x34caa6['addUser'](_0x563248);const _0x441f43=_0xf2ec6b['repository']['getRevisions']();let _0x29e82c=null;const _0xc1d007=this['editor']['plugins']['get']('RevisionViewer');_0xc1d007['adapter']=_0xf2ec6b['adapter'],_0xc1d007['bind']('isEnabled')['to'](_0xf2ec6b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4517e9,'isReadOnly',_0x4179dd=>!_0x4179dd);for(const _0x4e9369 of _0x441f43){const _0x56ee92=null===_0x4e9369['creator'];if(_0x56ee92&&_0x4e9369['toVersion']===_0x4e9369['fromVersion'])continue;const _0x27a4bc=_0x4e9369['toJSON']();_0xc1d007['addRevisionData'](_0x27a4bc,(_0xb92818,_0xf63a02,_0x2ede12)=>{if(_0x56ee92){if(_0x29e82c)_0x29e82c['_update'](_0xb92818,_0xf63a02);else{if(!_0xf63a02){const _0x132607=_0x2ede12['toJSON']();_0x132607['id']=_0x5a7eff(),_0xf2ec6b['saveRevision'](_0x132607,_0x2ede12['toVersion'])['then'](_0x4f9724=>{_0x29e82c=_0x4f9724;});}}}else _0x4e9369['_update'](_0xb92818,_0xf63a02);});}}},d),_0x427fb6);}['_enhanceShowRevisionViewerCallback'](){const _0x33a250=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x41d827=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4b77e3=this['editor']['plugins']['get']('Autosave');await _0x4b77e3['save']();}else await _0x41d827['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1b0eca=this['editor']['plugins']['get']('Dialog');_0x1b0eca['isOpen']&&_0x1b0eca['hide']();}const _0x190f52=this['_getRevisionViewerEditorConfig']();return _0x33a250(_0x190f52)['then'](_0x3d33d2=>{return(this['_viewerEditor']=_0x3d33d2,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'),_0x3d33d2);})['catch'](_0x1617e5=>(console['error'](_0x1617e5),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x27040a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x27040a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3417f5=this['editor']['plugins']['get']('Annotations');_0x3417f5['refreshVisibility'](),_0x3417f5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x44cc8a){const _0x299967=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5c8c94=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x611826=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x611826,_0x44cc8a)['then'](_0x22141c=>(_0x5c8c94['style']['display']='block',_0x299967['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x22141c));}['_closeRevisionViewer'](_0x15b51d){const _0x4269f5=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4269f5['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x15b51d['destroy']();}async['_restoreRevision'](_0x2bd6bb){const _0x1e1b34=this['editor'],_0x16a4a2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1a9421=_0x1e1b34['plugins']['get']('RevisionTracker'),_0x2174c3=_0x1e1b34['plugins']['get']('RevisionHistoryUtils'),_0x15402f=_0x16a4a2['repository']['getRevision'](_0x2bd6bb);let _0x3e97bf,_0x529749,_0x385f47;try{await _0x2174c3['loadRevisionData'](_0x15402f,this['adapter']),_0x3e97bf=_0x2174c3['getRevisionDocumentData'](_0x15402f),_0x529749=_0x2174c3['getRevisionRootsAttributes'](_0x15402f);}catch(_0x19d67c){return void console['error'](_0x19d67c);}_0x1e1b34['model']['change'](_0x469c46=>{for(const _0x4180f1 of Array['from'](_0x1e1b34['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x469c46['removeMarker'](_0x4180f1);}),_0x16a4a2['isReady']=!0x1,_0x1e1b34['model']['enqueueChange'](_0xb62c4c=>{_0xb62c4c['setSelection'](null),_0xb62c4c['removeSelectionAttribute'](_0x1e1b34['model']['document']['selection']['getAttributeKeys']());const _0x5e9507=Object['keys'](_0x3e97bf);for(const _0x19ac78 of _0x1e1b34['model']['document']['roots'])'$graveyard'!=_0x19ac78['rootName']&&_0x19ac78['isAttached']()&&!_0x5e9507['includes'](_0x19ac78['rootName'])&&_0xb62c4c['detachRoot'](_0x19ac78);for(const _0x543885 of _0x5e9507){let _0x41dab5=_0x1e1b34['model']['document']['getRoot'](_0x543885);_0x41dab5&&_0x41dab5['isAttached']()||(_0x41dab5=_0xb62c4c['addRoot'](_0x543885));const _0x3b907e=_0x529749[_0x543885],_0x4f6cad=Object['keys'](_0x3b907e),_0x44a854=_0x3e97bf[_0x543885];for(const _0x885207 of _0x41dab5['getAttributeKeys']())_0x4f6cad['includes'](_0x885207)||_0xb62c4c['removeAttribute'](_0x885207,_0x41dab5);for(const _0xfac657 of _0x4f6cad)_0xb62c4c['setAttribute'](_0xfac657,_0x529749[_0x543885][_0xfac657],_0x41dab5);_0xb62c4c['remove'](_0xb62c4c['createRangeIn'](_0x41dab5)),_0xb62c4c['insert'](_0x1e1b34['data']['parse'](_0x44a854,_0x41dab5),_0x41dab5,0x0);}});const _0x53ccc4=g(_0x1e1b34['locale'],'Restored');if(_0x15402f['name'])_0x385f47=-0x1==_0x15402f['name']['indexOf'](_0x53ccc4)?_0x53ccc4+':\x20'+_0x15402f['name']:_0x15402f['name'];else _0x385f47=_0x53ccc4+':\x20'+(_0x15402f['createdAt']['toLocaleDateString'](_0x1e1b34['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x15402f['createdAt']['toLocaleTimeString'](_0x1e1b34['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1a9421['saveRevision']({'name':_0x385f47}),_0x16a4a2['isReady']=!0x0,_0x1e1b34['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|