@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250408.0 → 0.0.0-nightly-20250410.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +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
|
-
_0x5f9c8d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x522c34){super(),this['id']=_0x522c34['id']||_0x3f13b1(),this['creator']=_0x522c34['creator']||null,this['authors']=_0x522c34['authors']||[],this['diffData']=_0x522c34['diffData']||null,this['toVersion']=_0x522c34['toVersion']||0x0,this['fromVersion']=_0x522c34['fromVersion']||0x0,this['set']('name',_0x522c34['name']||''),this['set']('createdAt',_0x522c34['createdAt']||new Date()),this['set']('attributes',_0x522c34['attributes']||{});}['setName'](_0x5b6630){this['_update']({'name':_0x5b6630});}['setAttribute'](_0x298181,_0x4092f7){const _0x568581=_0x4d0c8a(this['attributes']);_0x4630f1(_0x568581,_0x298181,_0x4092f7),this['_update']({'attributes':_0x568581});}['removeAttribute'](_0x79f97e){const _0x21a3d3=_0x4d0c8a(this['attributes']);_0x47c7f8(_0x21a3d3,_0x79f97e),this['_update']({'attributes':_0x21a3d3});}['_update'](_0x404a28,_0x54b942=!0x1){let _0x509e27=!0x1;const _0x632be4={'id':this['id']},_0x312b95=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x180365 of _0x312b95){const _0x26105c=_0x404a28[_0x180365];void 0x0!==_0x26105c&&_0x26105c!==this[_0x180365]&&(this[_0x180365]=_0x26105c,_0x632be4[_0x180365]=_0x26105c,_0x509e27=!0x0);}_0x509e27&&(_0x632be4['authors']&&(_0x632be4['authorsIds']=_0x632be4['authors']['map'](_0x2a78aa=>_0x2a78aa['id']),delete _0x632be4['authors']),this['fire']('_update',_0x632be4,_0x54b942));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x34aa2e=>_0x34aa2e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x3edab6{['_revisions'];static get['requires'](){return[_0x2c4ff3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x8a572d){super(_0x8a572d),this['_revisions']=new _0x133f10();}['afterInit'](){!async function(_0x1ba974){const _0x22e6c1=_0x532282([0x71,0x34,0x37,0x4b,0x58,0x6f,0x63,0x69,0x72,0x4d,0x78,0x79,0x59,0x73,0x39,0x64,0x51,0x56,0x4e,0x7a,0x62,0x45,0x31,0x66,0x70,0x55,0x32,0x30,0x76,0x75,0x4c,0x35,0x33,0x48,0x67,0x43,0x42,0x65,0x6c,0x5a,0x41,0x47,0x61,0x4f,0x46,0x6a,0x53,0x54,0x4a,0x77,0x38,0x52,0x68,0x6d,0x44,0x74,0x36,0x6b,0x50,0x57,0x6e,0x49]),_0x1cbbfa=0xeb829,_0x59edd5=0x102169ba,_0x329c16=0x10260dca^_0x59edd5,_0x59ce5b=window[_0x532282([0x44,0x61,0x74,0x65])][_0x532282([0x6e,0x6f,0x77])](),_0x1a9480=_0x1ba974[_0x532282([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3602a5=new window[(_0x532282([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1446cd=>{_0x1a9480[_0x532282([0x6f,0x6e,0x63,0x65])](_0x532282([0x72,0x65,0x61,0x64,0x79]),_0x1446cd);}),_0x420a16={[_0x532282([0x6b,0x74,0x79])]:_0x532282([0x45,0x43]),[_0x532282([0x75,0x73,0x65])]:_0x532282([0x73,0x69,0x67]),[_0x532282([0x63,0x72,0x76])]:_0x532282([0x50,0x2d,0x32,0x35,0x36]),[_0x532282([0x78])]:_0x532282([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]),[_0x532282([0x79])]:_0x532282([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]),[_0x532282([0x61,0x6c,0x67])]:_0x532282([0x45,0x53,0x32,0x35,0x36])},_0x30b9a3=_0x1a9480[_0x532282([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x532282([0x67,0x65,0x74])](_0x532282([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1efa84(){let _0x22a9b3,_0x1ced02=null,_0xf16e52=null;try{if(_0x30b9a3==_0x532282([0x47,0x50,0x4c]))return _0x532282([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22a9b3=_0x64ed1f(),!_0x22a9b3)return _0x532282([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22a9b3[_0x532282([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf16e52=_0x22a955(_0x22a9b3[_0x532282([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22a9b3[_0x532282([0x6a,0x74,0x69])])),await _0x100981()?_0x590411()?_0x3aad49()?_0x532282([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cef0b()?(_0x22a9b3[_0x532282([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x532282([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ced02=_0x4f4cdb(_0x532282([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22a9b3[_0x532282([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x532282([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ced02=_0x4f4cdb(_0x532282([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22981c()):_0x532282([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x532282([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x532282([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xc10019){return _0x532282([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3aad49(){const _0x1afbbb=[_0x532282([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x532282([0x74,0x72,0x69,0x61,0x6c])][_0x532282([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22a9b3[_0x532282([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59ce5b/0x3e8:0xe10*_0x329c16;return _0x22a9b3[_0x532282([0x65,0x78,0x70])]<_0x1afbbb;}function _0x590411(){const _0x944f2d=_0x22a9b3[_0x532282([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x944f2d)return!0x1;if(_0x944f2d[_0x532282([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x532282([0x2a])))return!0x0;if(_0x944f2d[_0x532282([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x532282([0x52,0x48])))return!0x0;if(_0x944f2d[_0x532282([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x532282([0x52,0x52,0x48]))){if(_0x2de8ef())return!0x0;if(_0x55dc93()||_0xdaf991())return!0x0;}return!0x1;}function _0x4cef0b(){const _0x371e87=_0x22a9b3[_0x532282([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x371e87||0x0==_0x371e87[_0x532282([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x13dce3}=new URL(window[_0x532282([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x371e87[_0x532282([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13dce3))return!0x0;const _0x13e42a=_0x13dce3[_0x532282([0x73,0x70,0x6c,0x69,0x74])](_0x532282([0x2e]));return _0x371e87[_0x532282([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa76974=>_0xa76974[_0x532282([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x532282([0x2a])))[_0x532282([0x6d,0x61,0x70])](_0x5b2d72=>_0x5b2d72[_0x532282([0x73,0x70,0x6c,0x69,0x74])](_0x532282([0x2e])))[_0x532282([0x73,0x6f,0x6d,0x65])](_0x36caba=>_0x13e42a[_0x532282([0x65,0x76,0x65,0x72,0x79])]((_0x51a5b5,_0x1d7d70)=>_0x36caba[_0x1d7d70]===_0x51a5b5||_0x36caba[_0x1d7d70]===_0x532282([0x2a])));}function _0x22981c(){return _0x1ced02&&_0xf16e52?new window[(_0x532282([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x324839,_0x6725bf)=>{_0x1ced02[_0x532282([0x74,0x68,0x65,0x6e])](_0x324839,_0x6725bf),_0xf16e52[_0x532282([0x74,0x68,0x65,0x6e])](_0x5880b0=>{_0x5880b0!=_0x532282([0x56,0x61,0x6c,0x69,0x64])&&_0x324839(_0x5880b0);},_0x6725bf);}):_0x1ced02||_0xf16e52||_0x532282([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22a955(_0x27237d,_0x46c3bc){return new window[(_0x532282([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57abaa=>{if(_0x45f743())return _0x57abaa(_0x532282([0x56,0x61,0x6c,0x69,0x64]));_0x105909(),_0x1a9480[_0x532282([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x532282([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x203457=!0x1;const _0x35ada4=_0x3f13b1();function _0x4aa62d(_0xefd20d){return!!_0xefd20d&&(typeof _0xefd20d===_0x532282([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xefd20d===_0x532282([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xefd20d[_0x532282([0x74,0x68,0x65,0x6e])]===_0x532282([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xefd20d[_0x532282([0x63,0x61,0x74,0x63,0x68])]===_0x532282([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39f4e1(_0x21aca4){_0x3e370f(_0x21aca4)[_0x532282([0x74,0x68,0x65,0x6e])](_0xd31d0f=>{if(!_0xd31d0f||_0xd31d0f[_0x532282([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x532282([0x6f,0x6b]))return _0x532282([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x172ab4(_0x1d42a2(_0x35ada4+_0x46c3bc))!=_0xd31d0f[_0x532282([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x532282([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x532282([0x56,0x61,0x6c,0x69,0x64]);})[_0x532282([0x74,0x68,0x65,0x6e])](_0x1eef25=>(_0x47ec2c(),_0x1eef25),()=>{const _0x70ff85=_0x4fe34d();return null==_0x70ff85?(_0x47ec2c(),_0x532282([0x56,0x61,0x6c,0x69,0x64])):_0x532282(_0x59ce5b-_0x70ff85>(0x342dedba^_0x59edd5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x532282([0x74,0x68,0x65,0x6e])](_0x57abaa)[_0x532282([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57abaa(_0x532282([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16d7ba=0x1017873a^_0x59edd5;function _0x47ec2c(){const _0x25085c=_0x532282([0x6c,0x6c,0x63,0x74,0x2d])+_0x172ab4(_0x1d42a2(_0x27237d)),_0x5ce5a9=_0x29f7c8(_0x172ab4(window[_0x532282([0x4d,0x61,0x74,0x68])][_0x532282([0x63,0x65,0x69,0x6c])](_0x59ce5b/_0x16d7ba)));window[_0x532282([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x532282([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25085c,_0x5ce5a9);}function _0x4fe34d(){const _0x387cad=_0x532282([0x6c,0x6c,0x63,0x74,0x2d])+_0x172ab4(_0x1d42a2(_0x27237d)),_0xd9c5eb=window[_0x532282([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x532282([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x387cad);return _0xd9c5eb?window[_0x532282([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29f7c8(_0xd9c5eb),0x10)*_0x16d7ba:null;}function _0x3e370f(_0xc125dd){return new window[(_0x532282([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c6a2b,_0x25db95)=>{_0xc125dd[_0x532282([0x74,0x68,0x65,0x6e])](_0x3c6a2b,_0x25db95),window[_0x532282([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25db95,0x1020bd7a^_0x59edd5);});}}_0x1a9480[_0x532282([0x6f,0x6e])](_0x532282([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4cb8a3,_0x343762)=>{if(_0x343762[0x0]!=_0x27237d)return _0x57abaa(_0x532282([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x343762[0x1]={..._0x343762[0x1],[_0x532282([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35ada4};},{[_0x532282([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x532282([0x68,0x69,0x67,0x68])}),_0x1a9480[_0x532282([0x6f,0x6e])](_0x532282([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d1390=>{_0x4aa62d(_0x3d1390[_0x532282([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x203457=!0x0,_0x39f4e1(_0x3d1390[_0x532282([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x532282([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x532282([0x6c,0x6f,0x77])}),_0x3602a5[_0x532282([0x74,0x68,0x65,0x6e])](()=>{_0x203457||_0x57abaa(_0x532282([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45f743(){return _0x1a9480[_0x532282([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x532282([0x76,0x69,0x65,0x77])][_0x532282([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x532282([0x61,0x75,0x74,0x6f]);}function _0x105909(){_0x1a9480[_0x532282([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x532282([0x76,0x69,0x65,0x77])][_0x532282([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x532282([0x61,0x75,0x74,0x6f]);}}function _0x4f4cdb(_0x1b5c00){const _0xeef1cc=[new window[(_0x532282([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdb9da8=>setTimeout(_0xdb9da8,0x10285776^_0x59edd5)),_0x3602a5[_0x532282([0x74,0x68,0x65,0x6e])](()=>new window[(_0x532282([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e9f4a=>{const _0x8e57b6=0x102169bd^_0x59edd5,_0x389b58=_0x1ba974[_0x532282([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5766d7(){_0x389b58[_0x532282([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x8e57b6&&_0x1e9f4a();}_0x5766d7(),_0x389b58[_0x532282([0x6f,0x6e])](_0x532282([0x61,0x64,0x64]),_0x5766d7);})),new window[(_0x532282([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d7b0=>{function _0x4c667f(){for(const _0x15a208 in window)if(window[_0x532282([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x532282([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x15a208))&&window[_0x15a208]==_0x1cbbfa)return _0x54d7b0();_0x1a9480[_0x532282([0x73,0x74,0x61,0x74,0x65])]!=_0x532282([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x532282([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c667f,0x10217a32^_0x59edd5);}_0x3f1a40(_0x532282([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4c667f();})];return window[_0x532282([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x532282([0x72,0x61,0x63,0x65])](_0xeef1cc)[_0x532282([0x74,0x68,0x65,0x6e])](()=>_0x1b5c00);}async function _0x16e6fb(){if(await _0x3602a5,_0x3f1a40(_0x532282([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x434a2d=_0x1ba974[_0x532282([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2982cc=_0x1ba974[_0x532282([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])](_0x434a2d[_0x532282([0x69,0x64])]),_0x585cc9=_0x2a8d50(_0x532282([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x585cc9[_0x532282([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x434a2d['id'],_0x2982cc?_0x2982cc['id']:null,!0x0),_0x585cc9[_0x532282([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x532282([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x585cc9[_0x532282([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x585cc9[_0x532282([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x553f1e,void(_0x585cc9[_0x532282([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x553f1e);}if(_0x3f1a40(_0x532282([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x35d3d7=_0x2a8d50(_0x532282([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x35d3d7[_0x532282([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x532282([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x35d3d7[_0x532282([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x35d3d7[_0x532282([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x553f1e,_0x35d3d7[_0x532282([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x553f1e;}_0x1a9480[_0x532282([0x6d,0x6f,0x64,0x65,0x6c])][_0x532282([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x553f1e,_0x1a9480[_0x532282([0x6d,0x6f,0x64,0x65,0x6c])][_0x532282([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x553f1e,_0x1a9480[_0x532282([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x532282([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2de8ef(){return _0x3f1a40(_0x532282([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2a8d50(_0x532282([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x532282([0x73,0x74,0x61,0x74,0x65])]==_0x532282([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x55dc93(){return _0x3f1a40(_0x532282([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 _0xdaf991(){return _0x3f1a40(_0x532282([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b142a(_0x46e23a){const _0x5b6657=_0x38510c();_0x1a9480[_0x5b6657]=_0x532282([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])+_0x46e23a,_0x46e23a[_0x532282([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x532282([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x38510c()]=_0x1cbbfa),_0x46e23a!=_0x532282([0x56,0x61,0x6c,0x69,0x64])&&_0x16e6fb();}function _0x38510c(){const _0x1c31e6=window[_0x532282([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x532282([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x532282([0x6e,0x6f,0x77])]())[_0x532282([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x532282([0x2e]),'');let _0x7c03ac=_0x532282([0x71]);for(let _0xc8e141=0x0;_0xc8e141<_0x1c31e6[_0x532282([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc8e141+=0x2){let _0x3efd4c=window[_0x532282([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c31e6[_0x532282([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc8e141,_0xc8e141+0x2));_0x3efd4c>=_0x22e6c1[_0x532282([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3efd4c-=_0x22e6c1[_0x532282([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7c03ac+=_0x22e6c1[_0x3efd4c];}return _0x7c03ac;}function _0x64ed1f(){const _0x5abd0a=_0x30b9a3[_0x532282([0x73,0x70,0x6c,0x69,0x74])](_0x532282([0x2e]));if(0x3!=_0x5abd0a[_0x532282([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27201a(_0x5abd0a[0x1]);function _0x27201a(_0x18f067){const _0x36ade5=_0xc32dab(_0x18f067);return _0x36ade5&&_0x11978f()?_0x36ade5:null;function _0x11978f(){const _0x10eb1e=_0x36ade5[_0x532282([0x6a,0x74,0x69])],_0x4178ab=window[_0x532282([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10eb1e[_0x532282([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10eb1e[_0x532282([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29580a={..._0x36ade5,[_0x532282([0x6a,0x74,0x69])]:_0x10eb1e[_0x532282([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10eb1e[_0x532282([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29580a[_0x532282([0x76,0x63])],_0x1d42a2(_0x29580a)==_0x4178ab;}}}async function _0x100981(){let _0x1ca079=!0x0;try{const _0x4453ae=_0x30b9a3[_0x532282([0x73,0x70,0x6c,0x69,0x74])](_0x532282([0x2e])),[_0x136fdb,_0xe953b,_0x5f546b]=_0x4453ae;return _0xcb4ccd(_0x136fdb),await _0x1c5204(_0x136fdb,_0xe953b,_0x5f546b),_0x1ca079;}catch(_0x4d8a2d){return!0x1;}function _0xcb4ccd(_0x399139){const _0x371f68=_0xc32dab(_0x399139);_0x371f68&&_0x371f68[_0x532282([0x61,0x6c,0x67])]==_0x532282([0x45,0x53,0x32,0x35,0x36])||(_0x1ca079=!0x1);}async function _0x1c5204(_0x26033f,_0x538c3e,_0x3514dc){const _0x1dde4b=window[_0x532282([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x532282([0x66,0x72,0x6f,0x6d])](_0x1eb123(_0x3514dc),_0x4a2202=>_0x4a2202[_0x532282([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f5f5d=new window[(_0x532282([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x532282([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26033f+_0x532282([0x2e])+_0x538c3e),_0x11951a=window[_0x532282([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x532282([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11951a)return;const _0xbf2e8a=await _0x11951a[_0x532282([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x532282([0x6a,0x77,0x6b]),_0x420a16,{[_0x532282([0x6e,0x61,0x6d,0x65])]:_0x532282([0x45,0x43,0x44,0x53,0x41]),[_0x532282([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x532282([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x532282([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11951a[_0x532282([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x532282([0x6e,0x61,0x6d,0x65])]:_0x532282([0x45,0x43,0x44,0x53,0x41]),[_0x532282([0x68,0x61,0x73,0x68])]:{[_0x532282([0x6e,0x61,0x6d,0x65])]:_0x532282([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbf2e8a,_0x1dde4b,_0x2f5f5d)||(_0x1ca079=!0x1);}}function _0xc32dab(_0x1d1164){return _0x1d1164[_0x532282([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x532282([0x65,0x79]))?JSON[_0x532282([0x70,0x61,0x72,0x73,0x65])](_0x1eb123(_0x1d1164)):null;}function _0x1eb123(_0x41ec3c){return window[_0x532282([0x61,0x74,0x6f,0x62])](_0x41ec3c[_0x532282([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x532282([0x2b]))[_0x532282([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x532282([0x2f])));}function _0x1d42a2(_0x50edab){let _0x262281=0x1505;function _0x43a3be(_0x254d9b){for(let _0x2a941c=0x0;_0x2a941c<_0x254d9b[_0x532282([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a941c++){const _0x4b7810=_0x254d9b[_0x532282([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a941c);_0x262281=(_0x262281<<0x5)+_0x262281+_0x4b7810,_0x262281&=_0x262281;}}function _0x527080(_0x10f968){Array[_0x532282([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10f968)?_0x10f968[_0x532282([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x527080):_0x10f968&&typeof _0x10f968==_0x532282([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x532282([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10f968)[_0x532282([0x73,0x6f,0x72,0x74])]()[_0x532282([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f65f7,_0x103d1a])=>{_0x43a3be(_0x1f65f7),_0x527080(_0x103d1a);}):_0x43a3be(window[_0x532282([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10f968));}return _0x527080(_0x50edab),_0x262281>>>0x0;}function _0x172ab4(_0x2ead9b){return _0x2ead9b[_0x532282([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x532282([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x532282([0x30]));}function _0x29f7c8(_0xc3da63){return _0xc3da63[_0x532282([0x73,0x70,0x6c,0x69,0x74])]('')[_0x532282([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x532282([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f1a40(_0x17c753){return _0x1a9480[_0x532282([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x532282([0x68,0x61,0x73])](_0x17c753);}function _0x2a8d50(_0x3510f8){return _0x1a9480[_0x532282([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x532282([0x67,0x65,0x74])](_0x3510f8);}function _0x553f1e(){}function _0x532282(_0x33e34f){return _0x33e34f['map'](_0x473981=>String['fromCharCode'](_0x473981))['join']('');}_0x2b142a(await _0x1efa84());}(this);}['createRevision'](_0x232d1a){const _0x2956b4=this['editor']['plugins']['get']('Users');return new h({'id':_0x232d1a['id'],'name':_0x232d1a['name'],'creator':_0x232d1a['creatorId']?_0x2956b4['getUser'](_0x232d1a['creatorId']):null,'diffData':_0x232d1a['diffData']||_0x232d1a['data'],'authors':_0x232d1a['authorsIds']['map'](_0x56d861=>_0x2956b4['getUser'](_0x56d861)),'createdAt':new Date(_0x232d1a['createdAt']),'attributes':_0x232d1a['attributes'],'fromVersion':_0x232d1a['fromVersion'],'toVersion':_0x232d1a['toVersion']});}['addRevision'](_0x2d6cf8,_0x5e7c7f=0x0){this['_revisions']['add'](_0x2d6cf8,_0x5e7c7f);}['getRevision'](_0x5b2f10){return this['_revisions']['get'](_0x5b2f10);}['getRevisions'](_0x5b5cda={'toJSON':!0x1}){const _0x32ef25=Array['from'](this['_revisions']);return _0x32ef25['reverse'](),_0x5b5cda['toJSON']?_0x32ef25['map'](_0x45a95e=>_0x45a95e['toJSON']()):_0x32ef25;}['getIndex'](_0x2d67cb){return this['_revisions']['getIndex'](_0x2d67cb);}['getEarlierVisibleRevision'](_0x20fd49){const [,_0x8c3e7]=this['getRevisionsIterator'](_0x20fd49,{'direction':'earlier'});return _0x8c3e7;}['getLaterVisibleRevision'](_0x4d8b8f){const [,_0x40e241]=this['getRevisionsIterator'](_0x4d8b8f,{'direction':'later'});return _0x40e241;}['getRevisionsInDiff'](_0x55c7db){const _0x3a388f=[];for(const _0x1ed8d7 of this['getRevisionsIterator'](_0x55c7db['newRevisionId']))if(_0x3a388f['push'](_0x1ed8d7),_0x1ed8d7['id']===_0x55c7db['oldRevisionId'])break;return _0x3a388f;}*['getRevisionsIterator'](_0x1078fc,{direction:_0x574e60='earlier',filter:_0x17f086=()=>!0x0}={}){const _0x3072eb='earlier'===_0x574e60?0x1:-0x1;let _0xc3d3ef=this['_revisions']['get'](_0x1078fc),_0x4c9cb2=this['getIndex'](_0xc3d3ef);for(yield _0xc3d3ef;_0xc3d3ef;){if(_0x4c9cb2+=_0x3072eb,_0xc3d3ef=this['getRevision'](_0x4c9cb2),!_0xc3d3ef)return;_0x17f086(_0xc3d3ef)&&(yield _0xc3d3ef);}}}class V extends _0x3edab6{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x4a3f64,'c'],[_0x14b714,'a'],[_0x23ea8d,'e'],[_0x492b2e,'r'],[_0x4d6a0b,'u']]);['_typeCharToViewClass']=new Map([['c',_0x4a3f64],['a',_0x14b714],['e',_0x23ea8d],['r',_0x492b2e],['u',_0x4d6a0b]]);async['loadRevisionData'](_0x4c307b,_0x497574){if(_0x4c307b['diffData']||!_0x497574)return;const _0x57ff62=this['editor']['config']['get']('collaboration.channelId'),_0x18bc70=await _0x497574['getRevision']({'channelId':_0x57ff62,'revisionId':_0x4c307b['id']});_0x4c307b['diffData']=_0x18bc70['diffData'];}['getRevisionDocumentData'](_0x22f4ab){const _0x22319d={};for(const _0x29263f in _0x22f4ab['diffData']){if(_0x22f4ab['diffData'][_0x29263f]['attachChange']&&!_0x22f4ab['diffData'][_0x29263f]['attachChange']['isAttached'])continue;const _0x3e2525=this['_removeRevisionMarkers'](JSON['parse'](_0x22f4ab['diffData'][_0x29263f]['insertions'])),_0x3b7e2e=this['editor']['editing']['view']['document'],_0x56e0d8=new _0x5386e2(_0x3b7e2e,_0x3e2525['map'](_0x4948a5=>this['_getViewFromDiffObj'](_0x4948a5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x22319d[_0x29263f]=this['editor']['data']['processor']['toData'](_0x56e0d8),this['editor']['data']['processor']['useFillerType']('default');}return _0x22319d;}['getRevisionRootsAttributes'](_0x28f278){const _0x452458={};for(const _0x4a47cf in _0x28f278['diffData'])_0x28f278['diffData'][_0x4a47cf]['attachChange']&&!_0x28f278['diffData'][_0x4a47cf]['attachChange']['isAttached']||(_0x452458[_0x4a47cf]=_0x28f278['diffData'][_0x4a47cf]['attributesAfter']||{});return _0x452458;}['_getTypeCharForViewElement'](_0x58564c){return this['_viewClassToTypeChar']['get'](_0x58564c['constructor']);}['_getViewFromDiffObj'](_0x240163,_0x3de6d){const _0x4d0ed8=this['editor']['editing']['view']['document'];if('string'==typeof _0x240163)return new _0x440b9c(_0x4d0ed8,_0x240163);{let _0x32c31b,_0x28606a;_0x28606a='u'==_0x240163['type']||'r'==_0x240163['type']?[]:_0x240163['children']['map'](_0x2a478a=>this['_getViewFromDiffObj'](_0x2a478a,_0x3de6d));const _0x440f84=this['_typeCharToViewClass']['get'](_0x240163['type'])||_0x46e5f8,_0x3aed48=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x32c31b=new _0x440f84(_0x4d0ed8,_0x240163['name'],_0x240163['attributes'],_0x28606a),'u'==_0x240163['type']&&_0x240163['children'][0x0]){const _0x16e0e1=_0x240163['children'][0x0];if(_0x32c31b['render']=function(_0x802c3e){const _0x16bc09=_0x802c3e['createElement']('div');return _0x16bc09['innerHTML']=_0x16e0e1,_0x16bc09['childNodes'][0x0];},_0x3de6d){const _0x282a0b=new _0x5386e2(_0x4d0ed8);_0x282a0b['_appendChild'](_0x32c31b);const _0x1540a7=Array['from'](_0x3aed48['viewChildrenToDom'](_0x282a0b,{'bind':!0x1})),_0x36e31e=_0x3aed48['domDocument']['createElement']('div');_0x36e31e['append'](..._0x1540a7),_0x32c31b=Array['from'](_0x3aed48['domChildrenToView'](_0x36e31e))[0x0];}}else{if('r'==_0x240163['type']&&_0x240163['children'][0x0]){const _0x797085=_0x240163['children'][0x0];if(_0x32c31b['render']=function(_0x1e4bc5){_0x1e4bc5['innerHTML']=_0x797085;},_0x3de6d){const _0x270557=new _0x5386e2(_0x4d0ed8);_0x270557['_appendChild'](_0x32c31b);const _0x225913=Array['from'](_0x3aed48['viewChildrenToDom'](_0x270557,{'bind':!0x1})),_0x5a80a9=_0x3aed48['domDocument']['createElement']('div');_0x5a80a9['append'](..._0x225913);const _0x5130d8=Array['from'](_0x3aed48['domChildrenToView'](_0x5a80a9));_0x5130d8['length']>0x1?_0x32c31b['_appendChild'](_0x5130d8):_0x32c31b=_0x5130d8[0x0];}}}if(_0x240163['customProperties']){for(const [_0x2986a7,_0x25036d]of _0x240163['customProperties'])_0x32c31b['_setCustomProperty'](_0x2986a7,_0x25036d);}const _0x2f46e4=void 0x0===_0x240163['fillerOffset']?null:_0x240163['fillerOffset'];return null!==_0x2f46e4&&(_0x32c31b['getFillerOffset']=()=>_0x2f46e4),_0x32c31b;}}['_makeModelFromViewString'](_0x5b3bf3){const _0x4b09e3=JSON['parse'](_0x5b3bf3),_0x5d5d20=this['editor']['editing']['view']['document'],_0x288b5a=new _0x5386e2(_0x5d5d20,_0x4b09e3['map'](_0x441501=>this['_getViewFromDiffObj'](_0x441501,!0x0)));return this['editor']['data']['toModel'](_0x288b5a);}['_removeRevisionMarkers'](_0x2fc8cc){return(_0x2fc8cc=_0x2fc8cc['filter'](_0x275324=>!_0x275324['name']||'revision-start'!==_0x275324['name']&&'revision-end'!==_0x275324['name']))['forEach'](_0x13c0b0=>{'string'!=typeof _0x13c0b0&&(_0x13c0b0['children']=this['_removeRevisionMarkers'](_0x13c0b0['children']),_0x13c0b0['attributes']=_0x13c0b0['attributes']['filter'](_0x2770e8=>!_0x2770e8[0x0]['startsWith']('data-revision-')));}),_0x2fc8cc;}}function g(_0x264a16,_0xc7c966,_0x5a3324){const t=_0x264a16['t'];switch(_0xc7c966){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'},_0x5a3324);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a3324);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 _0x3edab6{['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[_0x2c4ff3,I,V,_0x1ac2a4];}constructor(_0x55d745){super(_0x55d745),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 _0x12d724=_0x3f13b1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x12d724},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 _0x3521d3=this['repository']['getRevision'](0x0),_0x307b52=_0x3521d3&&null===_0x3521d3['creator']?_0x3521d3:null;if(this['_continueCurrentRevision']=!!_0x307b52&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2a58c8=this['_source']['getCurrentRevisionId'](),_0x16696b=this['repository']['getRevision'](_0x2a58c8);if(_0x16696b)this['_startingVersion']=_0x16696b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x65b521=this['_source']['history']['_operations']['find'](_0x101241=>!_0x101241['_isInit']),_0x3f7bca=_0x65b521?_0x65b521['baseVersion']:this['_source']['history']['version'];_0x3521d3?(_0x3521d3['toVersion']<_0x3f7bca&&_0x3521d3['_update']({'toVersion':_0x3f7bca}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x307b52['id'],this['_startingVersion']=_0x307b52['fromVersion']):(this['_startingVersion']=_0x3521d3['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3f7bca,this['_continueCurrentRevision']=!0x1);}}else _0x307b52&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x307b52['toVersion'],this['editor']['model']['document']['history']['version']),_0x307b52['fromVersion']===_0x307b52['toVersion']?(0x0!==_0x307b52['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x307b52['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x307b52['id'],this['_startingVersion']=_0x307b52['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',_0x1f4694=>!_0x1f4694),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3efd9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x516a34;for(const _0x14331d in _0x3efd9d){const _0x39dfa7=_0x14331d,_0x23859a=_0x3efd9d[_0x39dfa7];if('revisionHistoryLicenseKeyValid'==_0x23859a||'revisionHistoryLicenseKeyInvalid'==_0x23859a||'revisionHistoryLicenseKeyExpired'==_0x23859a||'revisionHistoryLicenseKeyDomainLimit'==_0x23859a||'revisionHistoryLicenseKeyNotAllowed'==_0x23859a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x23859a||'revisionHistoryLicenseKeyTrialLimit'==_0x23859a||'revisionHistoryLicenseKeyUsageLimit'==_0x23859a){delete _0x3efd9d[_0x39dfa7],_0x516a34=_0x23859a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x516a34&&_0x3efd9d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x516a34&&_0x3efd9d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x516a34&&_0x3efd9d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x516a34&&_0x3efd9d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x516a34&&_0x3efd9d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x516a34&&_0x3efd9d['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x516a34&&_0x3efd9d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x271044=this['repository']['getRevision'](0x0),_0xb6ea84=await this['getRevisionDocumentData'](_0x271044),_0x2f33da=await this['getRevisionRootsAttributes'](_0x271044);this['_replaceEditorDataWithRevisionData'](_0xb6ea84,_0x2f33da);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3e27d0){this['_source']=_0x3e27d0;}async['update'](){const _0x32c397=await this['_source']['getLatestVersion']();if(_0x32c397>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4a7ea6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x32c397});_0x4a7ea6['authors']=_0x4a7ea6['authorsIds']['map'](_0x2c412b=>this['editor']['plugins']['get']('Users')['getUser'](_0x2c412b)),this['currentRevision']['_update'](_0x4a7ea6);}}async['saveRevision'](_0x3efd17={},_0xed3a5d=null){const _0x374567=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xed3a5d>this['currentRevision']['toVersion']&&(_0xed3a5d=null),null===_0xed3a5d&&(_0xed3a5d=await this['_source']['getLatestVersion']());const _0x336472=this['_getFromVersion'](_0xed3a5d),_0x5824c7=this['buildRevisionData']({'from':_0x336472,'to':_0xed3a5d});if(this['currentRevision']['toVersion']<_0xed3a5d){const _0x1a7a27=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xed3a5d,'to':_0xed3a5d});_0x1a7a27['authors']=[],_0x1a7a27['authorsIds']=[],_0x1a7a27['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1a7a27,!0x0),delete _0x1a7a27['authors'],_0x374567['push'](_0x1a7a27);}_0x3efd17['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3efd17['name']=_0x3efd17['name']||null,_0x3efd17['id']=_0x3efd17['id']||_0x3f13b1(),_0x3efd17={..._0x3efd17,..._0x5824c7};const _0x24a185=this['addRevisionData'](_0x3efd17);_0x374567['push'](_0x3efd17);const _0x83e793=this['repository']['getIndex'](_0x24a185);if(0x0!==_0x83e793){const _0x35c506=this['repository']['getRevision'](_0x83e793-0x1);if(_0x35c506['fromVersion']!==_0xed3a5d){const _0x243c10=this['_revisionDataBuilder']['getData'](_0xed3a5d,_0x35c506['toVersion']),_0x4296f1={'id':_0x35c506['id'],'diffData':_0x243c10['diffData'],'authorsIds':_0x243c10['authorsIds'],'authors':_0x243c10['authorsIds']['map'](_0x74ab61=>this['editor']['plugins']['get']('Users')['getUser'](_0x74ab61)),'fromVersion':_0xed3a5d};_0x35c506===this['currentRevision']&&(_0x4296f1['createdAt']=new Date(_0x3efd17['createdAt']['getTime']()+0xa)),_0x35c506['_update'](_0x4296f1,!0x0),delete _0x4296f1['authors'],_0x374567['push'](_0x4296f1);}}if(this['adapter']){for(const _0xf1c828 of _0x374567)this['_bufferUpdate'](_0xf1c828['id'],_0xf1c828,!0x0);this['sendBufferedUpdates']();}return _0x24a185;}['addRevisionData'](_0x27a0c6){const _0x5e5fb9=this['repository']['createRevision'](_0x27a0c6);return this['adapter']&&_0x5e5fb9['on']('_update',(_0x24f906,_0x30b3a1,_0x13c4d4)=>{_0x13c4d4||(this['_bufferUpdate'](_0x30b3a1['id'],_0x30b3a1,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5e5fb9,this['_findInsertionIndex'](_0x5e5fb9)),_0x5e5fb9;}async['getRevisionDocumentData'](_0x4a1290){return await this['_utils']['loadRevisionData'](_0x4a1290,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4a1290);}async['getRevisionRootsAttributes'](_0x325eec){return await this['_utils']['loadRevisionData'](_0x325eec,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x325eec);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x187590=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2ba0f6=0x0;_0x2ba0f6<_0x187590['length'];_0x2ba0f6++){const _0x51338c=_0x187590[_0x2ba0f6];let _0x3b4401=!0x1;for(const _0x5b6c10 of Object['keys'](_0x51338c))void 0x0===_0x51338c[_0x5b6c10]?delete _0x51338c[_0x5b6c10]:'id'!==_0x5b6c10&&(_0x3b4401=!0x0);_0x3b4401||(_0x187590[_0x2ba0f6]=null);}if(_0x187590=_0x187590['filter'](_0x1a1ab9=>null!==_0x1a1ab9),!_0x187590['length'])return;for(let _0x3c978c=0x0;_0x3c978c<_0x187590['length'];_0x3c978c++){const _0x51c317=_0x187590[_0x3c978c];void 0x0!==_0x51c317['fromVersion']&&void 0x0===_0x51c317['toVersion']&&(_0x51c317['toVersion']=this['repository']['getRevision'](_0x51c317['id'])['toVersion']),void 0x0!==_0x51c317['toVersion']&&void 0x0===_0x51c317['fromVersion']&&(_0x51c317['fromVersion']=this['repository']['getRevision'](_0x51c317['id'])['fromVersion']);}const _0x42f39d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x187590,_0x42f39d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x19cb95=>{if(_0x19cb95){for(const _0xff9937 of _0x19cb95)this['setRevisionData']({'id':_0xff9937['id'],'createdAt':_0xff9937['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x10eeb4=null,from:_0x17356f=null,to:_0x2d76d7=null}){_0x17356f=null!==_0x17356f?_0x17356f:_0x10eeb4['fromVersion'],_0x2d76d7=null!==_0x2d76d7?_0x2d76d7:_0x10eeb4['toVersion'];const _0x33d787=this['_revisionDataBuilder']['getData'](_0x17356f,_0x2d76d7),_0x4a6aef={'diffData':_0x33d787['diffData'],'authorsIds':_0x33d787['authorsIds'],'fromVersion':_0x17356f,'toVersion':_0x2d76d7};if(!_0x10eeb4||_0x2d76d7!==_0x10eeb4['toVersion']){const _0x2f0fd7=_0x2d76d7-0x1,_0x402066=this['_source']['history']['getOperation'](_0x2f0fd7);_0x4a6aef['createdAt']=_0x402066&&_0x402066['createdAt']||new Date();}if(this['_loadedStateData']&&_0x17356f===this['_loadedStateData']['fromVersion']){for(const _0x5204ad of this['_loadedStateData']['authors'])_0x4a6aef['authorsIds']['includes'](_0x5204ad['id'])||_0x4a6aef['authorsIds']['push'](_0x5204ad['id']);}return _0x4a6aef;}['_bufferUpdate'](_0x50459b,_0x427952,_0x3b890a){if(this['_bufferedUpdates']['has'](_0x50459b)){const _0x202216=this['_bufferedUpdates']['get'](_0x50459b);_0x427952=_0x3b890a?{..._0x202216,..._0x427952}:{..._0x427952,..._0x202216};}this['_bufferedUpdates']['set'](_0x50459b,_0x427952);}['setRevisionData'](_0x5dfd62){const _0x259b79=this['repository']['getRevision'](_0x5dfd62['id']);if(_0x5dfd62['createdAt']&&(_0x5dfd62['createdAt']=new Date(_0x5dfd62['createdAt'])),_0x5dfd62['authorsIds']){const _0x5860b4=this['editor']['plugins']['get']('Users');_0x5dfd62['authors']=_0x5dfd62['authorsIds']['map'](_0x2e77ee=>_0x5860b4['getUser'](_0x2e77ee));}_0x259b79['_update'](_0x5dfd62,!0x0);}['_createInitialRevision'](_0x3a3ddb){const _0x5af7dd=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5af7dd)this['_initialRevisionId']=_0x5af7dd['id'];else{const _0x6c0802=!this['editor']['model']['document']['roots']['find'](_0x3a2aaa=>this['editor']['model']['hasContent'](_0x3a2aaa)),_0xb764f2=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d38e0=g(this['editor']['locale'],_0x6c0802?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3a3ddb,'to':_0x3a3ddb,'id':this['_initialRevisionId'],'name':_0x2d38e0,'creatorId':_0xb764f2});}}['_createCurrentRevision'](_0x129c80){const _0x251c1a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x251c1a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x129c80,'to':_0x129c80,'id':_0x251c1a,'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'](_0x5aeddd,_0x5d5b4e){let _0x46972f=this['editor']['config']['get']('initialData'),_0x59ede=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x46972f){_0x46972f={};for(const _0x59b221 of this['editor']['model']['document']['getRootNames']())_0x46972f[_0x59b221]='';}if('string'==typeof _0x46972f&&(_0x46972f={'main':_0x46972f}),void 0x0===_0x59ede){_0x59ede={};for(const _0x23ed80 of this['editor']['model']['document']['getRootNames']())_0x59ede[_0x23ed80]={};}let _0x153e15=!0x1;const _0x2f7a97=Object['keys'](_0x46972f),_0x12f025=Object['keys'](_0x5aeddd);for(const _0x184a6b of _0x2f7a97){if(_0x46972f[_0x184a6b]!==_0x5aeddd[_0x184a6b]&&''!==_0x46972f[_0x184a6b]['trim']()){_0x153e15=!0x0;break;}if(!_0x1306cd(_0x59ede[_0x184a6b],_0x5d5b4e[_0x184a6b])&&Object['keys'](_0x59ede[_0x184a6b])['length']>0x0){_0x153e15=!0x0;break;}}_0x153e15||(_0x153e15=_0x12f025['some'](_0x4f107d=>!this['editor']['model']['document']['getRoot'](_0x4f107d))),_0x153e15&&_0x16bf25('editor-initial-data-replaced-with-revision-data',{'editorData':_0x46972f,'editorRootsAttributes':_0x59ede,'revisionData':_0x5aeddd,'revisionRootsAttributes':_0x5d5b4e}),this['editor']['config']['set']('initialData',_0x5aeddd),this['editor']['config']['set']('rootsAttributes',_0x5d5b4e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xdf4484=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xdf4484['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x284eab){const _0x2ee06a=this['repository']['getRevisions']();_0x2ee06a['reverse']();let _0x56462d=0x0;for(;_0x56462d<_0x2ee06a['length'];){const _0x428552=_0x2ee06a[_0x56462d];if(_0x428552===this['currentRevision']){_0x56462d++;continue;}if(_0x428552['id']===this['_initialRevisionId'])break;const _0x19bcf1=_0x284eab['toVersion']-_0x428552['toVersion']||_0x284eab['fromVersion']-_0x428552['fromVersion'];if(_0x19bcf1>0x0)break;if(_0x19bcf1<0x0)_0x56462d++;else{if(!_0x284eab['creator']&&_0x428552['creator'])break;if(_0x428552['creator']||!_0x284eab['creator']){if(_0x284eab['createdAt']>_0x428552['createdAt'])break;_0x56462d++;}else _0x56462d++;}}return _0x56462d;}['_getFromVersion'](_0x5af19a){const _0x10cc6e=this['repository']['getRevisions']();_0x10cc6e['reverse'](),_0x10cc6e['shift']();const _0x3ca832=_0x10cc6e['find'](_0x2bfb42=>_0x2bfb42['toVersion']<=_0x5af19a)['toVersion'];return _0x3ca832<this['_startingVersion']?this['_startingVersion']:_0x3ca832;}['_makeRevision']({name:_0x2d1e30,from:_0x52f82f,to:_0x1ade95,creatorId:_0x40c0d5,id:_0x94aae6}){const _0x4dd591=this['buildRevisionData']({'from':_0x52f82f,'to':_0x1ade95});_0x4dd591['name']=_0x2d1e30,_0x4dd591['creatorId']=_0x40c0d5,_0x4dd591['id']=_0x94aae6;const _0x5837b0=this['addRevisionData'](_0x4dd591);return this['adapter']&&this['_bufferUpdate'](_0x4dd591['id'],_0x4dd591,!0x0),_0x5837b0;}['_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(_0x8392a6){this['editor']=_0x8392a6,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'](_0x40caf4){this['source']=_0x40caf4;const _0x34f8f7=new Map(),_0x426807=new Map(),_0x5e0888=this['editor']['model']['document']['roots']['map'](_0x38f2c4=>_0x38f2c4['rootName']);for(const _0x3c51e0 of _0x5e0888){const _0x1807af=this['editor']['model']['document']['getRoot'](_0x3c51e0),_0x3c0b0e=N(_0x1807af);_0x34f8f7['set'](_0x3c51e0,_0x3c0b0e),_0x426807['set'](_0x3c51e0,Object['fromEntries'](_0x1807af['getAttributes']()));}const _0x315483=Array['from'](this['editor']['model']['markers'])['map'](_0x52c1e3=>[_0x52c1e3['name'],_0x52c1e3['getRange']()]),_0xe08a89=this['source']['version'];this['_saveMetaData'](_0xe08a89,_0x34f8f7,_0x315483,_0x426807),this['_startingRevisionId']=this['_revisionId'];const _0x561b26=new Map(),_0x1ae79c=new Map();for(const _0x3f929 of _0x5e0888){const _0x4f0739=P(_0x3f929);_0x561b26['set'](_0x3f929,_0x4f0739),_0x1ae79c['set'](_0x3f929,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x561b26,[],_0x1ae79c);}['getData'](_0xa42415,_0x5d970f){if(this['_lastFrom']===_0xa42415&&this['_lastTo']<=_0x5d970f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5d970f,!0x0);else{if(!this['_savedMetaData']['has'](_0xa42415)){const _0xe2f5dd=this['_getPreviousFrom'](_0xa42415);this['_calculateMetaData'](_0xe2f5dd,_0xa42415,!0x1);}this['_calculateMetaData'](_0xa42415,_0x5d970f,!0x0);}return this['_lastFrom']=_0xa42415,this['_lastTo']=_0x5d970f,this['_getState']();}['loadState'](_0x2dd139){const _0x3199fa=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x2dd139['fromVersion'],this['_lastTo']=_0x2dd139['toVersion'];for(const _0x4ac1df in _0x2dd139['diffData']){const _0x3f5a07=_0x2dd139['diffData'][_0x4ac1df]['attachChange'],_0x4b79eb=_0x4d0c8a(_0x2dd139['diffData'][_0x4ac1df]['attributesBefore'])||{},_0xec6e35=_0x3199fa['_makeModelFromViewString'](_0x2dd139['diffData'][_0x4ac1df]['deletions']);_0xec6e35['rootName']=_0x4ac1df,_0xec6e35['_isAttached']=!_0x3f5a07||!_0x3f5a07['isAttached'],_0xec6e35['isAttached']=()=>_0xec6e35['_isAttached'],this['_baseRoots']['set'](_0x4ac1df,_0xec6e35),this['_baseRootsAttributes']['set'](_0x4ac1df,_0x4b79eb),_0x3f5a07&&this['_touchedRoots']['set'](_0x4ac1df,_0x3f5a07);const _0x47376e=this['_makeIdsRoot'](_0xec6e35);this['_baseIdsRoots']['set'](_0x4ac1df,_0x47376e);for(const [_0x28e642,_0x2bf62d]of _0xec6e35['markers']){if(!_0x28e642['startsWith']('revision:'))continue;const _0x1efb5f=_0x28e642['split'](':')[0x2];for(const _0x534a39 of _0x2bf62d['getWalker']({'singleCharacters':!0x0})){const _0x2418a1=this['_getVidAttributeName'](_0x534a39),_0x3df114='elementEnd'==_0x534a39['type']?_0x534a39['previousPosition']['path']['slice'](0x0,-0x1):_0x534a39['previousPosition']['path'],_0x18db03=_0x47376e['getNodeByPath'](_0x3df114)['getAttribute'](_0x2418a1);this['_touched']['set'](_0x18db03,{'userId':_0x1efb5f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x48f472=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5a6019=>!this['_touched']['has'](_0x5a6019));let _0x185a69=0x0;const _0x4f55fb=new Map();for(const _0x51f943 in _0x2dd139['diffData']){const _0x7545f3=_0x2dd139['diffData'][_0x51f943]['attachChange'],_0x5c251a=_0x4d0c8a(_0x2dd139['diffData'][_0x51f943]['attributesAfter'])||{},_0x55f377=_0x3199fa['_makeModelFromViewString'](_0x2dd139['diffData'][_0x51f943]['insertions']);_0x55f377['rootName']=_0x51f943,_0x55f377['_isAttached']=!_0x7545f3||_0x7545f3['isAttached'],_0x55f377['isAttached']=()=>_0x55f377['_isAttached'],this['_diffRoots']['set'](_0x51f943,_0x55f377),this['_diffRootsAttributes']['set'](_0x51f943,_0x5c251a);const _0x208db4=this['_makeIdsRoot'](_0x55f377,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x51f943,_0x208db4),_0x4f55fb['set'](_0x51f943,_0x55f377['isAttached']()?_0x5c251a:{});for(const [_0x3c1184,_0x3d5a57]of _0x55f377['markers']){if(!_0x3c1184['startsWith']('revision:'))continue;const _0x59312f=_0x3c1184['split'](':')[0x2];for(const _0x67e659 of _0x3d5a57['getWalker']({'singleCharacters':!0x0})){const _0x4571e4=this['_getVidAttributeName'](_0x67e659),_0x46cc35=this['_revisionId']++,_0x2ca11d='elementEnd'==_0x67e659['type']?_0x67e659['previousPosition']['path']['slice'](0x0,-0x1):_0x67e659['previousPosition']['path'];_0x208db4['getNodeByPath'](_0x2ca11d)['_setAttribute'](_0x4571e4,_0x46cc35),this['_touched']['set'](_0x46cc35,{'userId':_0x59312f});}}for(const _0xd59ce4 of this['editor']['model']['createRangeIn'](_0x55f377)['getWalker']({'singleCharacters':!0x0})){const _0x2708c7=this['_getVidAttributeName'](_0xd59ce4),_0x3b046f='elementEnd'==_0xd59ce4['type']?_0xd59ce4['previousPosition']['path']['slice'](0x0,-0x1):_0xd59ce4['previousPosition']['path'],_0x4b9bc1=_0x208db4['getNodeByPath'](_0x3b046f);_0x4b9bc1['getAttribute'](_0x2708c7)>0x0||_0x4b9bc1['_setAttribute'](_0x2708c7,_0x48f472[_0x185a69++]);}for(const [_0x452fdf,_0x1fcf53]of _0x55f377['markers'])_0x452fdf['startsWith']('revision:')||this['_markers']['set'](_0x452fdf,_0x1fcf53);}const _0x5152c3=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5152c3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5152c3,0x1));const _0x4ef602=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4ef602),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4ef602,0x1));const _0x43d132=Array['from'](this['_diffRoots'])['map'](([_0x1a307f,_0x5968d0])=>[_0x1a307f,N(_0x5968d0)]);this['_saveMetaData'](this['_lastTo'],_0x43d132,this['_markers'],_0x4f55fb);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x52afa3,_0x40bf62,_0x300e3d,_0x5abfe4){const _0x38c527=new Map(_0x40bf62),_0x4a0c6d=new Map(_0x4d0c8a(_0x5abfe4)),_0x4d196c=new Map();for(const [_0x53f54e,_0x3788c1]of _0x300e3d)_0x4d196c['set'](_0x53f54e,{'start':_0x3788c1['start']['clone'](),'end':_0x3788c1['end']['clone'](),'rootName':_0x3788c1['root']['rootName']});this['_savedMetaData']['set'](_0x52afa3,{'roots':_0x38c527,'markers':_0x4d196c,'rootsAttributes':_0x4a0c6d});}['_removeMetaData'](_0x19ed61){this['_savedMetaData']['delete'](_0x19ed61);}['_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'](_0x10890c,_0x3973bb=null){let _0x3645a2=null;_0x10890c['is']('documentFragment')||(_0x3645a2=new ut(_0x10890c['name'],{'vid_start':null===_0x3973bb?this['_revisionId']++:_0x3973bb++}));const _0x3f0174=[];for(const _0x54bad6 of _0x10890c['getChildren']())if(_0x54bad6['is']('element')){_0x3f0174['push'](this['_makeIdsRoot'](_0x54bad6,_0x3973bb));const _0x41843b=_0x3f0174[_0x3f0174['length']-0x1];null!==_0x3973bb&&(_0x3973bb=_0x41843b['is']('element','$text')?_0x41843b['getAttribute']('vid')+0x1:_0x41843b['getAttribute']('vid_end')+0x1);}else{for(let _0x4203cb=0x0;_0x4203cb<_0x54bad6['offsetSize'];_0x4203cb++)_0x3f0174['push'](new ut('$text',{'vid':null===_0x3973bb?this['_revisionId']++:_0x3973bb++}));}if(_0x10890c['is']('documentFragment')){const _0x393719=P(_0x10890c['rootName']);return _0x393719['_insertChild'](0x0,_0x3f0174),_0x393719;}return _0x3645a2['_setAttribute']('vid_end',null===_0x3973bb?this['_revisionId']++:_0x3973bb++),_0x3645a2['_insertChild'](0x0,_0x3f0174),_0x3645a2;}['_calculateMetaData'](_0x33b2c7,_0x548bcb,_0x5863e2){this['_reset']();const {roots:_0xce8306,markers:_0x427313,rootsAttributes:_0xd858ca}=this['_savedMetaData']['get'](_0x33b2c7);this['_baseRoots']=new Map(_0xce8306),this['_baseRootsAttributes']=new Map(_0x4d0c8a(_0xd858ca));for(const [_0x53d9f5,_0x1a2fde]of this['_baseRoots'])if('$graveyard'!==_0x53d9f5&&(this['_diffRoots']['set'](_0x53d9f5,N(_0x1a2fde)),this['_diffRootsAttributes']=new Map(_0x4d0c8a(_0xd858ca)),_0x5863e2)){const _0x263bd3=this['_revisionId'];this['_idsRoots']['set'](_0x53d9f5,this['_makeIdsRoot'](_0x1a2fde)),this['_baseIdsRoots']['set'](_0x53d9f5,this['_makeIdsRoot'](_0x1a2fde,_0x263bd3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x5863e2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xd196af,_0x193300]of _0x427313){const _0x4bc029=this['_baseRoots']['get'](_0x193300['rootName']),_0x33fa00=this['_diffRoots']['get'](_0x193300['rootName']),_0x337545=new lt(this['_fixPosition'](_0x193300['start'],_0x4bc029),this['_fixPosition'](_0x193300['end'],_0x4bc029)),_0x26e28e=this['_fixRange'](_0x337545,_0x33fa00);_0x4bc029['markers']['set'](_0xd196af,_0x337545),this['_markers']['set'](_0xd196af,_0x26e28e);}this['_applyOperations'](_0x33b2c7,_0x548bcb,_0x5863e2);}['_applyOperations'](_0x4b70b4,_0xe12572,_0x3d1fd9){for(const _0x4ea064 of this['source']['getOperations'](_0x4b70b4,_0xe12572))this['_handleOperation'](_0x4ea064,_0x3d1fd9);for(const _0x29a64a of this['_diffRoots']['values']())_0x29a64a['markers']['clear']();for(const [_0x54328a,_0x2025b6]of this['_markers']){this['_diffRoots']['get'](_0x2025b6['root']['rootName'])['markers']['set'](_0x54328a,_0x2025b6['clone']());}const _0x4c4e2e=new Map(),_0x3ca483=new Map();for(const [_0x126788,_0x20b2e8]of this['_diffRoots'])_0x4c4e2e['set'](_0x126788,N(_0x20b2e8)),_0x3ca483['set'](_0x126788,this['_diffRootsAttributes']['get'](_0x126788));this['_saveMetaData'](_0xe12572,_0x4c4e2e,this['_markers'],_0x3ca483);}['_getPreviousFrom'](_0x1c27a8){const _0x4e19b3=Array['from'](this['_savedMetaData']['keys']());_0x4e19b3['sort']((_0x31cad1,_0x1b8dc6)=>_0x31cad1-_0x1b8dc6),_0x4e19b3['reverse']();for(const _0x3c21c7 of _0x4e19b3)if(_0x3c21c7<_0x1c27a8)return _0x3c21c7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xdca976,_0x1e8bac){const _0x2b3008=Array['from'](_0x1e8bac['markers'])['map'](([_0x2890a1,_0x31c429])=>[_0x2890a1,this['_fixRange'](_0x31c429,_0xdca976)]);_0xdca976['markers']=new Map(_0x2b3008);}['_transformMarkers'](_0x259e40){for(const _0x347cb2 of this['_markers']['values']()){const _0x1713a7=_0x347cb2['getTransformedByOperation'](_0x259e40),_0x573275=lt['_createFromRanges'](_0x1713a7);_0x347cb2['start']=_0x573275['start'],_0x347cb2['end']=_0x573275['end'];}}['_handleOperation'](_0x4729e2,_0x9db045){if('addRoot'!=_0x4729e2['type']&&'detachRoot'!=_0x4729e2['type']){if('insert'==_0x4729e2['type']){const _0x33ec19=_0x4729e2['position']['root']['rootName'];this['_diffRoots']['has'](_0x33ec19)||(this['_diffRoots']['set'](_0x33ec19,P(_0x33ec19,!0x0)),this['_diffRootsAttributes']['set'](_0x33ec19,{}),_0x9db045&&this['_idsRoots']['set'](_0x33ec19,P(_0x33ec19,!0x0)));}else{if('addRootAttribute'==_0x4729e2['type']||'removeRootAttribute'==_0x4729e2['type']||'changeRootAttribute'==_0x4729e2['type'])return void this['_handleRootAttributeOperation'](_0x4729e2);'marker'==_0x4729e2['type']&&this['_handleMarkerOperation'](_0x4729e2);}if('marker'!==_0x4729e2['type']){const _0x5c8ee7=this['_cloneOperation'](_0x4729e2,this['_diffRoots']);_0x5c8ee7['_execute'](),this['_transformMarkers'](_0x5c8ee7);}if(_0x9db045)switch(_0x4729e2['type']){case'insert':this['_handleInsertOperation'](_0x4729e2);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4729e2);break;case'merge':this['_handleMergeOperation'](_0x4729e2);break;case'split':this['_handleSplitOperation'](_0x4729e2);}}else this['_handleRootOperation'](_0x4729e2,_0x9db045);}['_cloneOperation'](_0x40301c,_0x45eea3){const _0x2c1097=_0x40301c['clone']();return _0x2c1097['_authorId']=_0x40301c['_authorId'],this['_fixOperation'](_0x2c1097,_0x45eea3),_0x2c1097;}['_getBaseVids'](_0x372601){return _0x372601['map'](_0x23ef59=>{const _0x4f7da8=this['_getVidAttributeName'](_0x23ef59);return Number(_0x23ef59['item']['getAttribute'](_0x4f7da8));});}['_generateTape'](_0x439448,_0x3b9bec){if(_0x439448['is']('element','$text'))_0x3b9bec['push']({'item':_0x439448,'type':'text'});else{_0x439448['is']('element')&&_0x3b9bec['push']({'item':_0x439448,'type':'elementStart'});for(const _0x33d7d3 of _0x439448['getChildren']())this['_generateTape'](_0x33d7d3,_0x3b9bec);_0x439448['is']('element')&&_0x3b9bec['push']({'item':_0x439448,'type':'elementEnd'});}return _0x3b9bec;}['_getState'](){const _0x318f1a=new Map(this['_touched']),_0x5ed827=new Map(_0x318f1a),_0x293285=new Map(),_0x4dd2d7={'insertions':{},'deletions':{}},_0x313e1b={'insertions':{},'deletions':{}},_0x424d9e=new Map(),_0x3269f7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3269f7['delete']('$graveyard');for(const _0x465401 of _0x3269f7){const _0x3b1333=this['_diffRoots']['get'](_0x465401)||P(_0x465401,!0x1),_0x5b1f77=this['_baseRoots']['get'](_0x465401)||P(_0x465401,!0x1);_0x3b1333['isAttached']()||_0x5b1f77['isAttached']()?(_0x4dd2d7['insertions'][_0x465401]=N(_0x3b1333),_0x4dd2d7['deletions'][_0x465401]=N(_0x5b1f77),this['_copyMarkers'](_0x4dd2d7['deletions'][_0x465401],_0x5b1f77),this['_copyMarkers'](_0x4dd2d7['insertions'][_0x465401],_0x3b1333),_0x313e1b['insertions'][_0x465401]=this['_generateTape'](this['_idsRoots']['get'](_0x465401),[]),_0x313e1b['deletions'][_0x465401]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x465401)||P(_0x465401,!0x1),[])):_0x3269f7['delete'](_0x465401);}for(const _0x13262e of _0x3269f7){const _0x3f7a15=_0x313e1b['insertions'][_0x13262e];for(const _0x445d48 of _0x3f7a15){const _0x401d35=this['_getVidAttributeName'](_0x445d48),_0xcb49de=_0x445d48['item']['getAttribute'](_0x401d35);_0x5ed827['delete'](_0xcb49de),_0xcb49de>=this['_startingRevisionId']&&_0x293285['set'](_0xcb49de,_0x318f1a['get'](_0xcb49de));}}for(const _0x24c85c of _0x3269f7){const _0xc663a=_0x313e1b['insertions'][_0x24c85c],_0x4cd9b1=this['_getBaseVids'](_0x313e1b['deletions'][_0x24c85c]);let _0x32ba21=0x0;for(const _0x30a530 of _0xc663a){const _0x2eb813=this['_getVidAttributeName'](_0x30a530),_0xe5693c=_0x30a530['item']['getAttribute'](_0x2eb813);if(!_0x293285['has'](_0xe5693c)&&!_0x424d9e['has'](_0xe5693c)){if(_0x5ed827['has'](_0xe5693c))_0x32ba21++;else{if(_0xe5693c!=_0x4cd9b1[_0x32ba21]){const _0x8d38be=_0x318f1a['get'](_0xe5693c)||_0x318f1a['get'](_0x4cd9b1[_0x32ba21]);for(;_0xe5693c!=_0x4cd9b1[_0x32ba21];)_0x5ed827['has'](_0x4cd9b1[_0x32ba21])||(_0x424d9e['set'](_0x4cd9b1[_0x32ba21],_0x8d38be),_0x318f1a['set'](_0x4cd9b1[_0x32ba21],_0x8d38be)),_0x32ba21++;}_0x32ba21++;}}}}for(const _0x5e712c of _0x3269f7){const _0x593fb4=_0x313e1b['insertions'][_0x5e712c];for(const _0x3590b1 of _0x593fb4){const _0x3f38c5=this['_getVidAttributeName'](_0x3590b1),_0x4eb7f4=_0x3590b1['item']['getAttribute'](_0x3f38c5);if(_0x424d9e['has'](_0x4eb7f4)){const _0x50ee0e=_0x424d9e['get'](_0x4eb7f4);_0x5ed827['has'](_0x4eb7f4)||_0x5ed827['set'](_0x4eb7f4,{..._0x50ee0e}),_0x293285['set'](_0x4eb7f4,{..._0x50ee0e});}}}for(const _0x68cb0 of _0x5ed827['keys']())_0x68cb0>=this['_startingRevisionId']&&_0x5ed827['delete'](_0x68cb0);const _0x1788bc=new Map();for(const _0x20e2d9 of _0x3269f7){let _0x5332cc=_0x313e1b['insertions'][_0x20e2d9];for(const _0x9f397b of _0x5332cc)if(_0x9f397b['item']['is']('element','tableCell')){const _0x5d2377=this['_getVidAttributeName'](_0x9f397b),_0x19c823=_0x9f397b['item']['getAttribute'](_0x5d2377);if(_0x293285['has'](_0x19c823)){const _0x4a5f37=_0x9f397b['item']['parent']['parent']['getAttribute']('vid_start'),_0x45698f=_0x1788bc['get'](_0x4a5f37)||new Set();_0x45698f['add'](_0x293285['get'](_0x19c823)['userId']),_0x1788bc['set'](_0x4a5f37,_0x45698f);}}_0x5332cc=_0x313e1b['deletions'][_0x20e2d9];for(const _0xd0db7 of _0x5332cc)if(_0xd0db7['item']['is']('element','tableCell')){const _0x78e327=this['_getVidAttributeName'](_0xd0db7),_0x5f32ad=_0xd0db7['item']['getAttribute'](_0x78e327);if(_0x5ed827['has'](_0x5f32ad)){const _0x2e5f65=_0xd0db7['item']['parent']['parent']['getAttribute']('vid_start'),_0x161b97=_0x1788bc['get'](_0x2e5f65)||new Set();_0x161b97['add'](_0x5ed827['get'](_0x5f32ad)['userId']),_0x1788bc['set'](_0x2e5f65,_0x161b97);}}for(const _0x3f37a0 of _0x1788bc['keys']())(_0x293285['has'](_0x3f37a0)||_0x5ed827['has'](_0x3f37a0))&&_0x1788bc['delete'](_0x3f37a0);}for(const _0x3db5a0 of _0x3269f7){const _0x577d6f=_0x313e1b['insertions'][_0x3db5a0];let _0x5444b3=null,_0x12a927=null;for(const _0x2eac21 of _0x577d6f){const _0xdd1051=this['_getVidAttributeName'](_0x2eac21),_0x24da05=_0x2eac21['item']['getAttribute'](_0xdd1051),_0x588888=_0x1788bc['get'](_0x24da05);_0x588888&&'elementStart'==_0x2eac21['type']&&(_0x5444b3=Array['from'](_0x588888)[0x0],_0x12a927=_0x2eac21['item']['getAttribute']('vid_end')),_0x5444b3&&(_0x5ed827['set'](_0x24da05,{'userId':_0x5444b3}),_0x293285['set'](_0x24da05,{'userId':_0x5444b3})),_0x24da05==_0x12a927&&(_0x5444b3=null,_0x12a927=null);}}const _0x41fe00={},_0x4c365f=new Set();for(const _0x9900e8 of _0x3269f7){const _0x1ed8fd=_0x4dd2d7['deletions'][_0x9900e8],_0x2123a2=_0x4dd2d7['insertions'][_0x9900e8];for(const {userId:_0x9b7b6f}of this['_touchedMarkers']['values']())null!==_0x9b7b6f&&_0x4c365f['add'](_0x9b7b6f);for(const {userId:_0x19c412}of this['_touchedRoots']['values']())null!==_0x19c412&&_0x4c365f['add'](_0x19c412);this['_markChanges'](_0x2123a2,_0x313e1b['insertions'][_0x9900e8],_0x293285,'insertion',_0x4c365f),this['_markChanges'](_0x1ed8fd,_0x313e1b['deletions'][_0x9900e8],_0x5ed827,'deletion',_0x4c365f),_0x41fe00[_0x9900e8]={'insertions':this['_prepareViewToSave'](_0x2123a2),'deletions':this['_prepareViewToSave'](_0x1ed8fd),'attachChange':this['_touchedRoots']['get'](_0x9900e8)||null,'attributesBefore':_0x4d0c8a(this['_baseRootsAttributes']['get'](_0x9900e8))||{},'attributesAfter':_0x4d0c8a(this['_diffRootsAttributes']['get'](_0x9900e8))};}return{'diffData':_0x41fe00,'authorsIds':Array['from'](_0x4c365f)};}['_processRootBeforeSave'](_0x160ee7){for(const [,_0x4d2f4d]of _0x160ee7['markers']){const _0x5ba31c=_0x4d2f4d['start']['getAncestors']()['filter'](_0x1a6300=>'tableCell'==_0x1a6300['name']);for(const _0x7c6a of _0x5ba31c)0x1==_0x7c6a['childCount']&&_0x7c6a['getChild'](0x0)['is']('element','paragraph')&&_0x7c6a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x435153){this['_processRootBeforeSave'](_0x435153);const _0x56e84b=this['editor']['data']['toView'](_0x435153,{}),_0x49b7c4=Array['from'](_0x56e84b['getChildren']())['map'](_0x39a181=>this['_getViewJson'](_0x39a181));return JSON['stringify'](_0x49b7c4);}['_getViewJson'](_0x811eaf){if(_0x811eaf['is']('$text'))return _0x811eaf['data'];{const _0xc80f71=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xc7a455=_0x811eaf,_0x4ee548=this['editor']['data']['htmlProcessor']['domConverter'],_0x2dda6a={'type':_0xc80f71['_getTypeCharForViewElement'](_0xc7a455),'name':_0xc7a455['name'],'attributes':Array['from'](_0xc7a455['getAttributes']()),'children':Array['from'](_0xc7a455['getChildren']())['map'](_0x295928=>this['_getViewJson'](_0x295928))};if(_0x811eaf['is']('uiElement')&&'$comment'!=_0x811eaf['name']){const _0x2763a7=_0x811eaf['render'](_0x4ee548['domDocument'],_0x4ee548);_0x2dda6a['children']['push'](_0x2763a7['outerHTML']);}else{if(_0x811eaf['is']('rawElement')){const _0xbb6e92=_0x4ee548['domDocument']['createElement'](_0xc7a455['name']);_0x811eaf['render'](_0xbb6e92,_0x4ee548),_0x2dda6a['children']['push'](_0xbb6e92['innerHTML']);}}const _0x47a2a0=Array['from'](_0xc7a455['getCustomProperties']());_0x47a2a0['length']>0x0&&(_0x2dda6a['customProperties']=_0x47a2a0);const _0x4098fe=_0xc7a455['getFillerOffset']();return null!==_0x4098fe&&(_0x2dda6a['fillerOffset']=_0x4098fe),_0x2dda6a;}}['_markChanges'](_0x16d388,_0x52f4c7,_0x465b1e,_0x3dab8c,_0x2b52e6){let _0x3a0077=null,_0x1a1b77=null,_0x1803ae=0x0;const _0x311a29=this['editor']['model'];for(let _0x792974=0x0;_0x792974<_0x52f4c7['length'];_0x792974++){const _0x27e2b9=this['_getVidAttributeName'](_0x52f4c7[_0x792974]),_0x7871cb=_0x52f4c7[_0x792974]['item']['getAttribute'](_0x27e2b9),_0x21871c=_0x465b1e['get'](_0x7871cb),_0x238a31=_0x792974==_0x52f4c7['length']-0x1;(!_0x3a0077&&_0x21871c&&(_0x3a0077=_0x21871c,_0x1a1b77=_0x52f4c7[_0x792974]),_0x3a0077&&(!_0x21871c||_0x21871c['userId']!=_0x3a0077['userId']))&&(_0x25758b(_0x21871c,F(_0x1a1b77,_0x16d388,_0x311a29),F(_0x52f4c7[_0x792974],_0x16d388,_0x311a29)),_0x3a0077=_0x21871c||null,_0x1a1b77=_0x21871c?_0x52f4c7[_0x792974]:null),_0x3a0077&&_0x238a31&&_0x25758b(_0x21871c,F(_0x1a1b77,_0x16d388,_0x311a29),B(_0x52f4c7[_0x792974],_0x16d388,_0x311a29));}function _0x25758b(_0x44875f,_0x504645,_0x15edef){const _0x977293=_0x3a0077['userId'],_0xe69ed3='revision:'+_0x3dab8c+':'+_0x977293+':'+_0x1803ae++,_0x301677=_0x311a29['createRange'](_0x504645,_0x15edef);_0x16d388['markers']['set'](_0xe69ed3,_0x301677),null!==_0x977293&&_0x2b52e6['add'](_0x977293);}}['_getVidAttributeName'](_0x167d14){switch(_0x167d14['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x575e49,_0x57cf58){_0x575e49['baseVersion']=null;for(const _0x137419 in _0x575e49){const _0xd0a3d7=_0x575e49[_0x137419];if(_0xd0a3d7 instanceof ft){const _0x201e21=_0x57cf58['get'](_0xd0a3d7['root']['rootName']);_0x575e49[_0x137419]=this['_fixPosition'](_0xd0a3d7,_0x201e21);}if(_0xd0a3d7 instanceof lt){const _0xfe6323=_0x57cf58['get'](_0xd0a3d7['root']['rootName']);_0x575e49[_0x137419]=this['_fixRange'](_0xd0a3d7,_0xfe6323);}'root'===_0x137419&&(_0x575e49['root']=_0x57cf58['get'](_0x575e49['root']['rootName']));}}['_fixRange'](_0x293cb1,_0x1c7295){return this['editor']['model']['createRange'](this['_fixPosition'](_0x293cb1['start'],_0x1c7295),this['_fixPosition'](_0x293cb1['end'],_0x1c7295));}['_fixPosition'](_0x1ed84a,_0x1af8aa){return this['editor']['model']['createPositionFromPath'](_0x1af8aa,_0x1ed84a['path'],_0x1ed84a['stickiness']);}['_handleInsertOperation'](_0x353613){const _0x33029e=this['_idsRoots']['get'](_0x353613['position']['root']['rootName']),_0x35f92d=this['_fixPosition'](_0x353613['position'],_0x33029e),_0x2b5fba=null===_0x353613['_authorId']?null:_0x353613['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf3c0e7=_0x35f92d['parent'],_0x13b89c=this['_revisionId'],_0xbee714=[];for(const _0x33cf87 of _0x353613['nodes'])if(_0x33cf87['is']('element'))_0xbee714['push'](this['_makeIdsRoot'](_0x33cf87));else{for(let _0x497fc5=0x0;_0x497fc5<_0x33cf87['offsetSize'];_0x497fc5++)_0xbee714['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x5bbe22=this['_revisionId'];for(let _0x4da636=_0x13b89c;_0x4da636<_0x5bbe22;_0x4da636++)this['_touched']['set'](_0x4da636,{'userId':_0x2b5fba});_0xf3c0e7['_insertChild'](_0x35f92d['offset'],_0xbee714);}['_handleMoveOperation'](_0x565f3e){(_0x565f3e=this['_cloneOperation'](_0x565f3e,this['_idsRoots']))['_execute']();const _0x5e5343=null===_0x565f3e['_authorId']?null:_0x565f3e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x470f66=_0x565f3e['getMovedRangeStart'](),_0x3e6e0d=_0x470f66['parent'],_0x3e6c7c=_0x470f66['offset'];!function _0x8ceb12(_0x2b27a4,_0x5225cc,_0x5744af,_0x123ff1){for(let _0xb2985a=_0x5744af;_0xb2985a<_0x123ff1;_0xb2985a++){const _0x49f11b=_0x5225cc['getChild'](_0xb2985a);_0x49f11b['is']('element','$text')?_0x2b27a4['set'](_0x49f11b['getAttribute']('vid'),{'userId':_0x5e5343}):(_0x2b27a4['set'](_0x49f11b['getAttribute']('vid_start'),{'userId':_0x5e5343}),_0x8ceb12(_0x2b27a4,_0x49f11b,0x0,_0x49f11b['childCount']),_0x2b27a4['set'](_0x49f11b['getAttribute']('vid_end'),{'userId':_0x5e5343}));}}(this['_touched'],_0x3e6e0d,_0x3e6c7c,_0x3e6c7c+_0x565f3e['howMany']);}['_handleMergeOperation'](_0x17c83d){const _0x2c2bf6=null===(_0x17c83d=this['_cloneOperation'](_0x17c83d,this['_idsRoots']))['_authorId']?null:_0x17c83d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2fe5b4=_0x17c83d['targetPosition']['parent'],_0x1360af=_0x17c83d['sourcePosition']['parent'],_0x2fe112=_0x2fe5b4['getAttribute']('vid_end'),_0x161f74=_0x1360af['getAttribute']('vid_start');_0x2fe5b4['_setAttribute']('vid_end',_0x1360af['getAttribute']('vid_end')),_0x1360af['_setAttribute']('vid_end',_0x2fe112),this['_touched']['set'](_0x161f74,{'userId':_0x2c2bf6}),this['_touched']['set'](_0x2fe112,{'userId':_0x2c2bf6}),_0x17c83d['_execute']();}['_handleSplitOperation'](_0x104613){const _0x31bdc3=null===(_0x104613=this['_cloneOperation'](_0x104613,this['_idsRoots']))['_authorId']?null:_0x104613['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa007b9=_0x104613['graveyardPosition'],_0x440754=_0x104613['splitPosition']['parent'];_0x104613['_execute']();const _0x4de571=_0x440754['getAttribute']('vid_end'),_0x214c1d=_0x104613['insertionPosition']['nodeAfter'];if(_0xa007b9){const _0x458d55=_0x214c1d['getAttribute']('vid_end'),_0x804d4a=_0x440754['getAttribute']('vid_end');_0x440754['_setAttribute']('vid_end',_0x458d55),_0x214c1d['_setAttribute']('vid_end',_0x804d4a),this['_touched']['set'](_0x440754['getAttribute']('vid_end'),{'userId':_0x31bdc3}),this['_touched']['set'](_0x214c1d['getAttribute']('vid_start'),{'userId':_0x31bdc3});}else{const _0x5e2f14=this['_revisionId']++,_0x5d1eb0=this['_revisionId']++;_0x440754['_setAttribute']('vid_end',_0x5e2f14),_0x214c1d['_setAttribute']('vid_start',_0x5d1eb0),_0x214c1d['_setAttribute']('vid_end',_0x4de571),this['_touched']['set'](_0x5e2f14,{'userId':_0x31bdc3}),this['_touched']['set'](_0x5d1eb0,{'userId':_0x31bdc3});}}['_handleMarkerOperation'](_0x5bc87a){if(!_0x5bc87a['affectsData'])return;const _0x26c757=(_0x5bc87a=this['_cloneOperation'](_0x5bc87a,this['_diffRoots']))['oldRange']?_0x5bc87a['oldRange']['root']:null,_0x2b7401=_0x5bc87a['newRange']?_0x5bc87a['newRange']['root']:null;_0x26c757&&this['_markers']['delete'](_0x5bc87a['name']),_0x2b7401&&this['_markers']['set'](_0x5bc87a['name'],_0x5bc87a['newRange']['clone']());const _0x3ddef9=null===_0x5bc87a['_authorId']?null:_0x5bc87a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x514f75=_0x5bc87a['name'];if(!this['_touchedMarkers']['has'](_0x514f75))return void this['_touchedMarkers']['set'](_0x514f75,{'range':_0x5bc87a['oldRange'],'userId':_0x3ddef9});const _0x5050cb=this['_touchedMarkers']['get'](_0x514f75),_0x3f5df1=_0x5050cb['range'],_0x34c109=_0x5bc87a['newRange'];null==_0x3f5df1&&null==_0x34c109||_0x3f5df1&&_0x34c109&&_0x3f5df1['isEqual'](_0x34c109)?this['_touchedMarkers']['delete'](_0x5bc87a['name']):_0x5050cb['userId']=_0x3ddef9;}['_handleRootOperation'](_0x466e32,_0x40beba){this['_diffRoots']['has'](_0x466e32['rootName'])?this['_diffRoots']['get'](_0x466e32['rootName'])['_isAttached']=_0x466e32['isAdd']:(this['_diffRoots']['set'](_0x466e32['rootName'],P(_0x466e32['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x466e32['rootName'],{}),_0x40beba&&this['_idsRoots']['set'](_0x466e32['rootName'],P(_0x466e32['rootName'],!0x0)));const _0x445a5e=null===_0x466e32['_authorId']?null:_0x466e32['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x670bab=this['_touchedRoots']['get'](_0x466e32['rootName']);_0x670bab&&_0x670bab['userId']===_0x445a5e?this['_touchedRoots']['delete'](_0x466e32['rootName']):this['_touchedRoots']['set'](_0x466e32['rootName'],{'userId':_0x445a5e,'isAttached':_0x466e32['isAdd']});}['_handleRootAttributeOperation'](_0x9b1d6){const _0x208453=this['_diffRootsAttributes']['get'](_0x9b1d6['root']['rootName']);null===_0x9b1d6['newValue']?delete _0x208453[_0x9b1d6['key']]:_0x208453[_0x9b1d6['key']]=_0x9b1d6['newValue'];}}function N(_0x21068d){const _0x5ed845=P(_0x21068d['rootName'],_0x21068d['isAttached']());for(const _0x56f1ee of _0x21068d['getChildren']()){const _0x588b00=_0x56f1ee['_clone'](!0x0);_0x5ed845['_appendChild'](_0x588b00);}return _0x5ed845;}function P(_0x397548,_0x2504b0=!0x0){const _0x2cfc03=new vt();return _0x2cfc03['rootName']=_0x397548,_0x2cfc03['_isAttached']=_0x2504b0,_0x2cfc03['isAttached']=()=>_0x2cfc03['_isAttached'],_0x2cfc03;}function F(_0x5612bc,_0x1a43a6,_0x42bdb3){const _0x18da72='elementEnd'==_0x5612bc['type']?_0x42bdb3['createPositionAt'](_0x5612bc['item'],'end'):_0x42bdb3['createPositionBefore'](_0x5612bc['item']);return _0x42bdb3['createPositionFromPath'](_0x1a43a6,_0x18da72['path'],_0x18da72['stickiness']);}function B(_0x462a87,_0x121ecf,_0x15f6e8){const _0x396842='elementStart'==_0x462a87['type']?_0x15f6e8['createPositionAt'](_0x462a87['item'],0x0):_0x15f6e8['createPositionAfter'](_0x462a87['item']);return _0x15f6e8['createPositionFromPath'](_0x121ecf,_0x396842['path'],_0x396842['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xd08d44,_0x2c59eb){super(_0xd08d44),this['focusTracker']=new _0x115a29(),this['keystrokes']=new _0x17e0c5(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c59eb),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5e28ec(this);}['render'](){super['render'](),_0x586a95({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x55427f=_0x4a3a95=>_0x4a3a95['stopPropagation']();this['keystrokes']['set']('arrowright',_0x55427f),this['keystrokes']['set']('arrowleft',_0x55427f),this['keystrokes']['set']('arrowup',_0x55427f),this['keystrokes']['set']('arrowdown',_0x55427f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x23391c){this['revisionNameInputView']['fieldView']['element']['value']=_0x23391c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x104900){const _0x54aee7=new _0x4403fd(this['locale'],_0x44c797),_0x33db53=_0x54aee7['fieldView'];_0x33db53['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3325ea=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x104900&&(_0x3325ea+='\x20('+g(this['locale'],'optional')+')'),(_0x54aee7['label']=_0x3325ea,_0x33db53['on']('input',()=>{this['revisionNameInputValue']=_0x33db53['element']['value']['trim']();}),_0x54aee7);}}class f extends _0x3edab6{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xeadb38=this['editor'],_0x31d6d7=_0xeadb38['plugins']['get']('RevisionTracker');_0xeadb38['ui']['componentFactory']['add']('revisionHistory',_0x2f25fd=>{const _0x1a5bd=_0x45e760(_0x2f25fd),_0x5ee620=_0x1a5bd['panelView']['children'],_0x4a2d3b=new _0x3ce9e8(_0x2f25fd),_0x2662da=new _0x2d4b0c(_0x2f25fd),_0x1d369f=new te(_0x2f25fd),_0x378990=new _0x2d4b0c(_0x2f25fd),_0x1ba788=new te(_0x2f25fd);return _0x1a5bd['bind']('isEnabled')['to'](_0x31d6d7,'isReady',_0x31d6d7,'isEnabled',_0xeadb38,'isReadOnly',(_0x68eba4,_0x3ff630,_0x1350da)=>_0x68eba4&&_0x3ff630&&!_0x1350da),_0x1a5bd['buttonView']['set']({'icon':_0x2267dd,'label':g(_0x2f25fd,'Revision\x20history'),'tooltip':!0x0}),_0x1d369f['set']({'label':g(_0x2f25fd,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1d369f['bind']('isEnabled')['to'](_0x31d6d7,'isReady',_0x31d6d7,'isEnabled',_0xeadb38,'isReadOnly',(_0xf0a3ff,_0x49d33b,_0x130ab3)=>_0xf0a3ff&&_0x49d33b&&!_0x130ab3),_0x1d369f['on']('execute',()=>this['_showDialog']()),_0x1ba788['set']({'label':g(_0x2f25fd,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1ba788['bind']('isEnabled')['to'](_0x31d6d7,'isReady',_0xeadb38,'isReadOnly',(_0x5d2ec9,_0x5ca4c7)=>_0x5d2ec9&&!_0x5ca4c7),_0x1ba788['on']('execute',()=>{_0xeadb38['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1a5bd['isOpen']=!0x1,_0xeadb38['editing']['view']['focus']();}),_0x2662da['children']['add'](_0x1d369f),_0x378990['children']['add'](_0x1ba788),_0x4a2d3b['role']='menu',_0x4a2d3b['items']['addMany']([_0x2662da,_0x378990]),_0x5ee620['add'](_0x4a2d3b),_0x1a5bd;}),_0xeadb38['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5db245=this['editor'],_0x28dac6=_0x5db245['locale'],_0x2368ee=new _0x25ebac(_0x28dac6),_0x3f7a10=new _0x406b21(_0x28dac6);_0x2368ee['buttonView']['set']({'icon':_0x2267dd,'label':g(_0x28dac6,'Revision\x20history')});const _0x4a9a80=new _0x3d83f5(_0x28dac6,_0x2368ee),_0x480c58=new _0x5da5b2(_0x28dac6);_0x480c58['set']({'label':g(_0x28dac6,'Save\x20current\x20revision')}),_0x480c58['delegate']('execute')['to'](_0x2368ee),_0x480c58['on']('execute',()=>{this['_showDialog']();}),_0x4a9a80['children']['add'](_0x480c58),_0x3f7a10['items']['add'](_0x4a9a80);const _0x5a2f12=new _0x3d83f5(_0x28dac6,_0x2368ee),_0x58cbfb=new _0x5da5b2(_0x28dac6);return _0x58cbfb['set']({'label':g(_0x28dac6,'Open\x20revision\x20history')}),_0x58cbfb['delegate']('execute')['to'](_0x2368ee),_0x58cbfb['on']('execute',()=>{_0x5db245['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5a2f12['children']['add'](_0x58cbfb),_0x3f7a10['items']['add'](_0x5a2f12),_0x2368ee['panelView']['children']['add'](_0x3f7a10),_0x2368ee;}['_showDialog'](){const _0x44addd=this['editor'],_0x59d9d0=_0x44addd['locale'],_0x1b4dd9=_0x44addd['plugins']['get']('Dialog'),_0x3f5826=_0x44addd['plugins']['get']('RevisionTracker');function _0x1e9487(_0x2d1746){_0x44addd['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2d1746['revisionName']?_0x2d1746['revisionNameInputView']['errorText']=g(_0x59d9d0,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x44addd['plugins']['get'](u)['saveRevision']({'name':_0x2d1746['revisionName']}),_0x1b4dd9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1e9487(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b4dd9['show']({'id':'revisionSave','title':g(_0x59d9d0,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x44addd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b4dd9['hide']()},{'label':g(_0x44addd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4d9cb4){_0x4d9cb4['bind']('isEnabled')['to'](_0x3f5826,'isReady',_0x3f5826,'isEnabled',_0x44addd,'isReadOnly',(_0x556a99,_0x589e31,_0x11e80d)=>_0x556a99&&_0x589e31&&!_0x11e80d);},'onExecute':()=>_0x1e9487(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4361ea=this['editor'],_0x172db1=_0x4361ea['locale'];this['_saveRevisionFormView']=new hs(_0x172db1,_0x4361ea['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x365dd5,_0x44c5f2){super(_0x365dd5),this['_model']=_0x44c5f2,this['changeId']=_0x44c5f2['id'];const _0x3c18ef=this['bindTemplate'],_0x854025=g(_0x365dd5,_0x44c5f2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x44c5f2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x44c5f2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3c18ef['to']('type',_0x38c24e=>'ck-revision-change__'+_0x38c24e)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x854025}]},{'text':'\x20'+_0x44c5f2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5f9c8d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2778ef){super(),this['id']=_0x2778ef['id']||_0x3f13b1(),this['author']=_0x2778ef['author'],this['type']=_0x2778ef['type'],this['data']=_0x2778ef['data']||{},this['rootName']=_0x2778ef['rootName'],this['set']('createdAt',_0x2778ef['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(_0x762b81,_0x4c638f){this['newRevisionId']=_0x762b81,this['oldRevisionId']=_0x4c638f,this['changes']=new _0x133f10();}['_setChanges'](_0x5019b9){for(const _0x5db378 of _0x5019b9)this['changes']['add'](_0x5db378);}}class m extends _0x3edab6{['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[_0x2c4ff3,_0x1ee4b5,I,V];}constructor(_0x593b51){super(_0x593b51),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',(_0x25e759,_0x5539dc,_0x4ed1b5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3459ef=>{for(const _0x299425 of this['editor']['editing']['view']['document']['roots'])_0x4ed1b5?_0x3459ef['removeClass']('ck-editor__editable__overlay',_0x299425):_0x3459ef['addClass']('ck-editor__editable__overlay',_0x299425);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x24e96e=>null!==_0x24e96e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4c6493,_0xc79ed3,_0x2e4fc2)=>_0x4c6493&&_0x2e4fc2?_0xc79ed3['changes']['getIndex'](_0x2e4fc2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x495433,_0x41a3fa)=>_0x495433?_0x41a3fa['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1ee4b5);}['init'](){const _0x53e900=this['editor'],_0x17dde1=new wt(_0x53e900,{'direction':'backward'}),_0x2dcba6=new wt(_0x53e900,{'direction':'forward'});(_0x53e900['commands']['add']('showPreviousChange',_0x17dde1),_0x53e900['commands']['add']('showNextChange',_0x2dcba6),_0x53e900['commands']['add']('restoreRevision',new mt(_0x53e900)),this['on']('change:numberOfChanges',()=>{_0x17dde1['refresh'](),_0x2dcba6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x53e900['enableReadOnlyMode']('revision-viewer'),_0x53e900['plugins']['has']('WidgetToolbarRepository'))&&_0x53e900['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x4faf69){return await this['_utils']['loadRevisionData'](_0x4faf69,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4faf69);}async['getRevisionRootsAttributes'](_0x2e2429){return await this['_utils']['loadRevisionData'](_0x2e2429,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2e2429);}async['compare'](_0x4d2f79,_0x55e5c2,_0x5aad62=!0x1){if(!this['isEnabled'])return;const _0x473e89=this['diff'],_0x401269=this['repository'],_0x1b6484='string'==typeof _0x4d2f79?_0x401269['getRevision'](_0x4d2f79):_0x4d2f79,_0x32f213='string'==typeof _0x55e5c2?_0x401269['getRevision'](_0x55e5c2):_0x55e5c2,_0x1a0161=_0x1b6484['id'],_0x481032=_0x32f213?_0x32f213['id']:null;if(!_0x5aad62&&this['diff']&&this['diff']['newRevisionId']===_0x1a0161&&this['diff']['oldRevisionId']===_0x481032)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1a0161,_0x481032);const _0x13a5fe=this['_getRevisionsRange'](_0x1b6484,_0x32f213,!0x0)['map'](_0x1d880f=>this['_utils']['loadRevisionData'](_0x1d880f,this['adapter']));return _0x13a5fe['push'](new Promise(_0x14a94b=>{setTimeout(_0x14a94b,0x14);})),Promise['all'](_0x13a5fe)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x273c58=this['_getDiff'](_0x1a0161,_0x481032);for(const _0x401b24 of _0x273c58['changes'])this['_changeIdToChange']['set'](_0x401b24['id'],_0x401b24);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x513b6e=>{for(const _0x1611e2 of this['editor']['model']['document']['getRootNames']())_0x513b6e['detachRoot'](_0x1611e2);for(const _0x27024b of Object['keys'](_0x273c58['model'])){const _0x184cb9=_0x513b6e['addRoot'](_0x27024b);for(const _0x27c058 of Object['keys'](_0x273c58['attributes'][_0x27024b]))_0x513b6e['setAttribute'](_0x27c058,_0x273c58['attributes'][_0x27024b][_0x27c058],_0x184cb9);_0x513b6e['insert'](_0x273c58['model'][_0x27024b],_0x184cb9,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x273c58['changes'])),this['isReady']=!0x0;})['catch'](_0x384e29=>{console['error'](_0x384e29),this['_cleanUp'](),_0x473e89&&(this['diff']=_0x473e89),this['isReady']=!0x0;});}['addRevisionData'](_0x11c487,_0x4bfd56){const _0x6862d6=this['repository']['createRevision'](_0x11c487);return _0x6862d6['on']('_update',(_0x43eaa1,_0x36ee0f,_0x3ae999)=>_0x4bfd56(_0x36ee0f,_0x3ae999,_0x6862d6)),this['repository']['addRevision'](_0x6862d6),_0x6862d6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x240ecb=>{for(const _0x38fe9d of this['editor']['model']['document']['getRootNames']())_0x240ecb['detachRoot'](_0x38fe9d);});}['_sortAndFilterDiffChanges'](_0x29cb14){const _0x10b5b4=[],_0x133925=new Map();for(const _0x4e0d43 of this['editor']['model']['document']['getRootNames']()){const _0x4a0835=this['editor']['editing']['view']['getDomRoot'](_0x4e0d43);if(!_0x4a0835)continue;const _0x376016=_0x4a0835['getClientRects']()['item'](0x0);_0x376016&&(_0x10b5b4['push'](_0x4e0d43),_0x133925['set'](_0x4e0d43,_0x376016));}return _0x10b5b4['sort']((_0x1f077c,_0xefd3c9)=>{const _0x52bab2=_0x133925['get'](_0x1f077c),_0x2b8d01=_0x133925['get'](_0xefd3c9);return _0x52bab2['y']-_0x2b8d01['y']||_0x52bab2['x']-_0x2b8d01['x'];}),(_0x29cb14=_0x29cb14['filter'](_0x5e0862=>_0x10b5b4['includes'](_0x5e0862['rootName'])))['sort']((_0x2d5254,_0x1e0f43)=>_0x10b5b4['indexOf'](_0x2d5254['rootName'])-_0x10b5b4['indexOf'](_0x1e0f43['rootName'])),_0x29cb14;}['_makeTape'](_0x19d2a2){const _0x249996=Array['from'](_0x19d2a2['markers'])['filter'](([_0x1ab7e7,_0x44d07d])=>_0x1ab7e7['startsWith']('revision:')&&!_0x44d07d['isCollapsed']),_0x180665=Array['from'](this['editor']['model']['createRangeIn'](_0x19d2a2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x249996['length'])for(const _0x8e6636 of _0x180665){const [_0x17775b,_0x291d0a]=_0x249996[0x0],[,_0xdf987c,_0x161c0e]=_0x17775b['split'](':');if(_0x291d0a['end']['isEqual'](_0x8e6636['nextPosition'])&&_0x249996['shift'](),(_0x8e6636['previousPosition']['isEqual'](_0x291d0a['start'])||_0x8e6636['previousPosition']['isAfter'](_0x291d0a['start']))&&('insertion'==_0xdf987c?_0x8e6636['isAdded']={'userId':_0x161c0e}:'deletion'==_0xdf987c&&(_0x8e6636['isRemoved']={'userId':_0x161c0e})),0x0==_0x249996['length'])break;}return _0x180665;}['_refreshStartEndIndex'](_0x22c65d){const _0x34c30e=new Map();for(let _0x6c38c3=0x0;_0x6c38c3<_0x22c65d['length'];_0x6c38c3++)'text'===_0x22c65d[_0x6c38c3]['type']?(_0x22c65d[_0x6c38c3]['item']['startIndex']=_0x6c38c3,_0x22c65d[_0x6c38c3]['item']['endIndex']=_0x6c38c3):('elementStart'===_0x22c65d[_0x6c38c3]['type']?_0x22c65d[_0x6c38c3]['item']['startIndex']=_0x6c38c3:'elementEnd'===_0x22c65d[_0x6c38c3]['type']&&(_0x22c65d[_0x6c38c3]['item']['endIndex']=_0x6c38c3),_0x34c30e['set'](_0x22c65d[_0x6c38c3]['id'],_0x6c38c3));for(const _0x2119cc of _0x34c30e['values']())'elementStart'===_0x22c65d[_0x2119cc]['type']?_0x22c65d[_0x2119cc]['item']['endIndex']=_0x34c30e['get'](_0x22c65d[_0x2119cc]['pairId']):'elementEnd'===_0x22c65d[_0x2119cc]['type']&&(_0x22c65d[_0x2119cc]['item']['startIndex']=_0x34c30e['get'](_0x22c65d[_0x2119cc]['pairId']));}['_processTape'](_0x3af3ce){for(let _0x272007=0x0;_0x272007<_0x3af3ce['length'];_0x272007++){if('elementStart'===_0x3af3ce[_0x272007]['type'])_0x3af3ce[_0x272007]['item']['startIndex']=_0x272007;else{if('elementEnd'===_0x3af3ce[_0x272007]['type']){_0x3af3ce[_0x272007]['item']['endIndex']=_0x272007;const _0x6d5404=_0x3af3ce[_0x272007]['item']['startIndex'];_0x3af3ce[_0x6d5404]['pairId']=_0x3af3ce[_0x272007]['id'],_0x3af3ce[_0x272007]['pairId']=_0x3af3ce[_0x6d5404]['id'];}else _0x3af3ce[_0x272007]['item']['startIndex']=_0x272007,_0x3af3ce[_0x272007]['item']['endIndex']=_0x272007,_0x3af3ce[_0x272007]['pairId']=null;}_0x3af3ce[_0x272007]['markersStart']||(_0x3af3ce[_0x272007]['markersStart']=[],_0x3af3ce[_0x272007]['markersEnd']=[]);}}['_markInsertions'](_0x49b2f0,_0x14f65e){const _0x23c473=_0x49b2f0['filter'](_0x400285=>!_0x400285['isAdded']);for(let _0x256eb8=0x0;_0x256eb8<_0x14f65e['length'];_0x256eb8++)_0x14f65e[_0x256eb8]['isAdded']&&(_0x23c473[_0x256eb8]['isAdded']=_0x14f65e[_0x256eb8]['isAdded']);}['_getDiff'](_0x50e154,_0x4fbe0b=null){const _0x3ab10d=this['repository']['getRevision'](_0x50e154),_0x1a5eb7=_0x4fbe0b?this['repository']['getRevision'](_0x4fbe0b):null,_0x36e7b5=this['_getRevisionsRange'](_0x3ab10d,_0x1a5eb7),_0x4532f2=_0x36e7b5[_0x36e7b5['length']-0x1],_0x57a7b2=new Map(),_0x38b71d={'model':{},'attributes':{},'changes':[]},_0x1fa8f2=new Set(),_0x177e2c=new Map();for(let _0x108d77=_0x36e7b5['length']-0x1;_0x108d77>=0x0;_0x108d77--){const _0x43c8a8=_0x36e7b5[_0x108d77];for(const _0x29259e of Object['keys'](_0x43c8a8['diffData']))if(_0x43c8a8['diffData'][_0x29259e]['attachChange']){const _0xdd9dfd=_0x43c8a8['diffData'][_0x29259e]['attachChange'];_0xdd9dfd['isAttached']?(_0x1fa8f2['add'](_0x29259e),_0x177e2c['has'](_0x29259e)&&_0x177e2c['get'](_0x29259e)['userId']==_0xdd9dfd['userId']?_0x177e2c['delete'](_0x29259e):_0x177e2c['set'](_0x29259e,_0xdd9dfd)):_0x177e2c['has'](_0x29259e)?(_0x1fa8f2['delete'](_0x29259e),_0x177e2c['delete'](_0x29259e)):(_0x1fa8f2['add'](_0x29259e),_0x177e2c['set'](_0x29259e,_0xdd9dfd));}else _0x1fa8f2['add'](_0x29259e);}for(const _0x336ca0 of _0x1fa8f2){const _0x3fc4c0=_0x177e2c['has'](_0x336ca0)&&!_0x177e2c['get'](_0x336ca0)['isAttached'];let _0x2ef735=_0x3fc4c0?_0x36e7b5['length']-0x1:0x0;const _0x346ef7=_0x3fc4c0?-0x1:0x1;for(;_0x36e7b5[_0x2ef735];){const _0x4048d5=_0x36e7b5[_0x2ef735];if(_0x4048d5['diffData'][_0x336ca0]){const _0x11861a=_0x3fc4c0?_0x4048d5['diffData'][_0x336ca0]['attributesBefore']:_0x4048d5['diffData'][_0x336ca0]['attributesAfter'];_0x38b71d['attributes'][_0x336ca0]=_0x11861a?_0x4d0c8a(_0x11861a):{};break;}_0x2ef735+=_0x346ef7;}}for(const _0xdb8024 of _0x36e7b5){_0xdb8024['model']={};for(const _0xa75397 of _0xdb8024['authors'])_0x57a7b2['set'](_0xa75397['id'],_0xa75397);for(const _0x598a5c of _0x1fa8f2){const _0x56b06b=_0xdb8024['diffData'][_0x598a5c]?_0xdb8024['diffData'][_0x598a5c]['insertions']:'[]',_0x4e2f97=_0xdb8024['diffData'][_0x598a5c]?_0xdb8024['diffData'][_0x598a5c]['deletions']:'[]';_0xdb8024['model'][_0x598a5c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x56b06b),'deletions':this['_utils']['_makeModelFromViewString'](_0x4e2f97)};}}for(const _0xb6c776 of _0x1fa8f2){let _0x36313e=null,_0x5a2c86=0x0;const _0x41d3e8=new Map(Array['from'](_0x3ab10d['model'][_0xb6c776]['insertions']['markers'])['filter'](([_0x475b33])=>!_0x475b33['startsWith']('revision:')));let _0x3b8756=0x0;for(const _0x15efd1 of _0x36e7b5){const _0x4a462f=this['_makeTape'](_0x15efd1['model'][_0xb6c776]['insertions']);_0x15efd1==_0x3ab10d?(_0x36313e=_0x4a462f,_0x5a2c86=_0x36313e['length'],_0x36313e['forEach'](_0x3312b2=>{_0x3312b2['id']=_0x3b8756++;}),this['_processTape'](_0x36313e)):this['_markInsertions'](_0x36313e,_0x4a462f);const _0x17b372=_0x36313e['filter'](_0x55d103=>!_0x55d103['isAdded'])['map'](_0x23dc6c=>_0x23dc6c['id']);let _0x1e6ea2=0x0;const _0x3dac91=this['_makeTape'](_0x15efd1['model'][_0xb6c776]['deletions']);_0x3dac91['forEach'](_0x502879=>{_0x502879['isRemoved']?_0x502879['id']=_0x5a2c86++:_0x502879['id']=_0x17b372[_0x1e6ea2++];}),this['_processTape'](_0x3dac91),this['_setDistance'](_0x36313e,'isAdded'),this['_setDistance'](_0x3dac91,'isRemoved'),_0x15efd1==_0x3ab10d&&this['_markMarkers'](_0x36313e,_0x41d3e8),_0x36313e=this['_joinTapes'](_0x36313e,_0x3dac91),this['_refreshStartEndIndex'](_0x36313e),this['_setDistance'](_0x36313e,'isRemoved');}_0x36313e=_0x36313e['filter'](_0x15ca01=>!(_0x15ca01['isAdded']&&_0x15ca01['isRemoved']));const _0x1e5d5b=new Map(_0x4532f2['model'][_0xb6c776]['deletions']['markers']),_0x818654=new Set(_0x41d3e8['keys']());for(const _0x3dd8b8 of _0x1e5d5b['keys']())_0x818654['delete'](_0x3dd8b8);this['_markSuggestions'](_0x36313e,_0x818654),this['_fixObsoleteTags'](_0x36313e),_0x36313e=this['_removeMissingPairs'](_0x36313e),_0x36313e=this['_markMismatchedRemovedTags'](_0x36313e),_0x36313e=this['_removeUnsupportedChanges'](_0x36313e);const {root:_0x3a35de,changes:_0x49dfaa}=this['_makeModelFromTape'](_0x36313e,_0x57a7b2,_0xb6c776);_0x38b71d['model'][_0xb6c776]=_0x3a35de;const _0x5e895e=_0x177e2c['get'](_0xb6c776);if(_0x5e895e){const _0x27b024=_0x57a7b2['get'](_0x5e895e['userId']),_0x56536a=new r({'author':_0x27b024,'type':_0x5e895e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xb6c776});_0x49dfaa['unshift'](_0x56536a),_0x38b71d['attributes'][_0xb6c776]['revisionHistoryAttachChange']=_0x56536a['id'];}_0x38b71d['changes']=_0x38b71d['changes']['concat'](_0x49dfaa);}return _0x38b71d;}['_markMarkers'](_0x88fd3,_0x26649d){for(let _0x1b02f6=0x0;_0x1b02f6<_0x88fd3['length'];_0x1b02f6++)for(const [_0x44a4d9,_0x3855f0]of _0x26649d)!_0x3855f0['isCollapsed']&&_0x3855f0['start']['isEqual'](_0x88fd3[_0x1b02f6]['previousPosition'])&&_0x88fd3[_0x1b02f6]['markersStart']['push'](_0x44a4d9),_0x3855f0['end']['isEqual'](_0x88fd3[_0x1b02f6]['nextPosition'])&&_0x88fd3[_0x1b02f6]['markersEnd']['push'](_0x44a4d9);}['_joinTapes'](_0x2a5999,_0x179a4d){let _0xbcdcda=[],_0xe209d=0x0,_0x5070c1=0x0;for(;_0xe209d<_0x2a5999['length']||_0x5070c1<_0x179a4d['length'];){const _0x1bd2a8=_0x2a5999[_0xe209d]||{},_0x2f3e48=_0x179a4d[_0x5070c1]||{};if(_0x1bd2a8['id']==_0x2f3e48['id'])_0xe209d++,_0x5070c1++,_0xbcdcda['push'](_0x1bd2a8);else{if(_0x2f3e48['isRemoved']&&_0x1bd2a8['isAdded']){const {commonTape:_0x5526ac,iEnd:_0x4aeca7,jEnd:_0x403f61}=this['_threeWayMerge'](_0x2a5999,_0xe209d,_0x179a4d,_0x5070c1);_0xbcdcda=_0xbcdcda['concat'](_0x5526ac),_0xe209d=_0x4aeca7,_0x5070c1=_0x403f61;}else _0x2f3e48['isRemoved']?(_0x5070c1++,_0xbcdcda['push'](_0x2f3e48)):(_0xe209d++,_0xbcdcda['push'](_0x1bd2a8));}}return _0xbcdcda;}['_markSuggestions'](_0x51c6d1,_0xeadbb){const _0xb31261=[];for(let _0x491305=0x0;_0x491305<_0x51c6d1['length'];_0x491305++){for(let _0x392bdd=0x0;_0x392bdd<_0x51c6d1[_0x491305]['markersStart']['length'];_0x392bdd++){const _0x287c1c=_0x51c6d1[_0x491305]['markersStart'][_0x392bdd];if(!_0xeadbb['has'](_0x287c1c))continue;const {group:_0x47daff,type:_0x24a569,authorId:_0x20e150}=_0x561990(_0x287c1c);'revision-suggestion'!=_0x47daff||'insertion'!=_0x24a569&&'deletion'!=_0x24a569||(_0xb31261['unshift']({'type':_0x24a569,'name':_0x287c1c,'userId':_0x20e150}),_0x51c6d1[_0x491305]['markersStart']['splice'](_0x392bdd,0x1),_0x392bdd--);}_0x4d4e06(_0x51c6d1[_0x491305]);for(let _0x18686e=0x0;_0x18686e<_0x51c6d1[_0x491305]['markersEnd']['length'];_0x18686e++){const _0x16aa40=_0x51c6d1[_0x491305]['markersEnd'][_0x18686e];if(!_0xeadbb['has'](_0x16aa40))continue;const {group:_0x501bdf,type:_0x29576f}=_0x561990(_0x16aa40);if('revision-suggestion'!=_0x501bdf||'insertion'!=_0x29576f&&'deletion'!=_0x29576f)continue;_0x51c6d1[_0x491305]['markersEnd']['splice'](_0x18686e,0x1),_0x18686e--;const _0xc4a7d2=_0xb31261['findIndex'](_0x3ece8c=>_0x3ece8c['name']==_0x16aa40);_0xc4a7d2>-0x1&&_0xb31261['splice'](_0xc4a7d2,0x1);}}function _0x561990(_0x50f551){const _0x207029=_0x50f551['split'](':');return{'group':_0x207029[0x0],'type':_0x207029[0x1],'subType':_0x207029['length']>=0x5?_0x207029[0x2]:null,'id':_0x207029['length']<0x5?_0x207029[0x2]:_0x207029[0x3],'authorId':_0x207029['length']<0x5?_0x207029[0x3]:_0x207029[0x4],'markerCount':0x6==_0x207029['length']?_0x207029[0x5]:null};}function _0x4d4e06(_0x3999f8){for(let _0x19cf89=0x0;_0x19cf89<_0xb31261['length'];_0x19cf89++){if(_0x3999f8['isAdded']&&'insertion'==_0xb31261[_0x19cf89]['type'])return _0x3999f8['isAddSuggestion']=_0xb31261[_0x19cf89],void delete _0x3999f8['isAdded'];if(!_0x3999f8['isAdded']&&!_0x3999f8['isRemoved']&&'deletion'==_0xb31261[_0x19cf89]['type'])return void(_0x3999f8['isRemoveSuggestion']=_0xb31261[_0x19cf89]);}}}['_setDistance'](_0x4fa9d8,_0x3b68ae){let _0x54adc5=0x0,_0x2d5203=!0x1;const _0x2f45e1=new Map();for(const _0x27528e of _0x4fa9d8)_0x27528e[_0x3b68ae]?_0x2d5203&&(_0x54adc5++,_0x2d5203=!0x1):(_0x54adc5++,_0x2d5203=!0x0),_0x2f45e1['set'](_0x27528e['id'],_0x54adc5);for(let _0x5b1e6c=0x0;_0x5b1e6c<_0x4fa9d8['length'];_0x5b1e6c++){if('isRemoved'==_0x3b68ae&&_0x4fa9d8[_0x5b1e6c]['isAdded']||'isAdded'==_0x3b68ae&&_0x4fa9d8[_0x5b1e6c]['isRemoved'])continue;if('text'==_0x4fa9d8[_0x5b1e6c]['type']){_0x4fa9d8[_0x5b1e6c]['distance']=0x0;continue;}const _0x3a395c=_0x2f45e1['get'](_0x4fa9d8[_0x5b1e6c]['pairId']),_0x385eb7=_0x2f45e1['get'](_0x4fa9d8[_0x5b1e6c]['id']);_0x4fa9d8[_0x5b1e6c]['distance']=_0x3a395c-_0x385eb7;}}['_getRevisionsRange'](_0x3f9e4f,_0x4a7938,_0x19b258=!0x1){const _0x32cb26=[];let _0x3e666b=this['repository']['getIndex'](_0x3f9e4f),_0x43167c=this['repository']['getIndex'](_0x4a7938);for(-0x1==_0x43167c&&(_0x43167c=this['repository']['_revisions']['length'],_0x19b258=!0x1);_0x3e666b<_0x43167c;)_0x32cb26['push'](this['repository']['getRevision'](_0x3e666b)),_0x3e666b++;return _0x19b258&&_0x32cb26['push'](this['repository']['getRevision'](_0x3e666b)),_0x32cb26;}['_threeWayMerge'](_0x19b9b,_0x222a5e,_0x561432,_0x4819c6){const _0x1f27bb=this['editor']['model']['schema'];let _0x30cbaa=_0x222a5e;for(;_0x19b9b[_0x30cbaa]&&_0x19b9b[_0x30cbaa]['isAdded'];)_0x30cbaa++;let _0x1c1e0c=_0x4819c6;for(;_0x561432[_0x1c1e0c]&&_0x561432[_0x1c1e0c]['isRemoved'];)_0x1c1e0c++;_0x577f96(_0x19b9b,_0x222a5e,_0x30cbaa),_0x577f96(_0x561432,_0x4819c6,_0x1c1e0c);const _0x5598a9=_0x561432['slice'](_0x4819c6,_0x1c1e0c)['concat'](_0x19b9b['slice'](_0x222a5e,_0x30cbaa));return _0x5598a9['sort']((_0x537308,_0x16bfdd)=>_0x537308['side']!=_0x16bfdd['side']?_0x537308['side']-_0x16bfdd['side']:_0x537308['level']!=_0x16bfdd['level']?_0x537308['level']-_0x16bfdd['level']:_0x537308['distance']!=_0x16bfdd['distance']?_0x16bfdd['distance']-_0x537308['distance']:!!_0x537308['isAdded']!=!!_0x16bfdd['isAdded']?-0x1==_0x537308['side']||0x0==_0x537308['side']?_0x537308['isAdded']?-0x1:0x1:_0x537308['isAdded']?0x1:-0x1:_0x537308['index']-_0x16bfdd['index']),{'commonTape':_0x5598a9,'iEnd':_0x30cbaa,'jEnd':_0x1c1e0c};function _0x577f96(_0x2cd146,_0x57cb61,_0x3792f5){let _0xb41466=-0x1,_0x5403ff=Number['POSITIVE_INFINITY'],_0x7d5d1c=!0x0;for(let _0x29fef5=_0x57cb61;_0x29fef5<_0x3792f5;_0x29fef5++)if(_0x1f27bb['isInline'](_0x2cd146[_0x29fef5]['item'])||(_0x7d5d1c=!0x1),_0x2cd146[_0x29fef5]['item']['startIndex']<_0x57cb61&&(_0xb41466=_0x29fef5),_0x2cd146[_0x29fef5]['item']['endIndex']>=_0x3792f5){_0x5403ff=_0x29fef5;break;}_0x7d5d1c&&(_0xb41466=_0x3792f5-0x1);for(let _0x295f19=_0x57cb61;_0x295f19<_0x3792f5;_0x295f19++)_0x2cd146[_0x295f19]['side']=_0x295f19<=_0xb41466?-0x1:_0x295f19<_0x5403ff?0x0:0x1,_0x2cd146[_0x295f19]['index']=_0x295f19;let _0x59302c=0x0;for(let _0x429f06=_0x57cb61;_0x429f06<=_0xb41466;_0x429f06++)0x0==_0x2cd146[_0x429f06]['distance']?_0x2cd146[_0x429f06]['level']=_0x59302c:(_0x59302c++,_0x2cd146[_0x429f06]['level']=_0x59302c,_0x59302c++);for(let _0x5cc99e=_0x57cb61;_0x5cc99e<_0x3792f5;_0x5cc99e++)0x0==_0x2cd146[_0x5cc99e]['side']&&(_0x2cd146[_0x5cc99e]['level']=_0x59302c);_0x59302c=0x0;for(let _0x5e3b43=_0x3792f5-0x1;_0x5e3b43>=_0x5403ff;_0x5e3b43--)0x0==_0x2cd146[_0x5e3b43]['distance']?_0x2cd146[_0x5e3b43]['level']=_0x59302c:(_0x59302c--,_0x2cd146[_0x5e3b43]['level']=_0x59302c,_0x59302c--);}}['_fixObsoleteTags'](_0x306757){const _0x5994cb=new Map(),_0x3fe8af=this['editor']['model']['schema'];for(let _0x13f1b9=0x1;_0x13f1b9<_0x306757['length'];_0x13f1b9++){let _0x52afec,_0x5af017,_0x2ffb78;const _0x3da00f=_0x306757[_0x13f1b9],_0x8f9548=_0x306757[_0x13f1b9-0x1];if('text'==_0x3da00f['type'])continue;if(_0x3da00f['type']!=_0x8f9548['type'])continue;if(!_0x3fe8af['isBlock'](_0x8f9548['item'])||_0x3fe8af['isLimit'](_0x8f9548['item']))continue;if(!_0x3fe8af['isBlock'](_0x3da00f['item'])||_0x3fe8af['isLimit'](_0x3da00f['item']))continue;if((_0x306757[_0x13f1b9]['isAdded']||_0x306757[_0x13f1b9]['isAddSuggestion'])&&_0x306757[_0x13f1b9-0x1]['isRemoved'])_0x52afec=_0x306757[_0x13f1b9],_0x5af017=_0x306757[_0x13f1b9-0x1],_0x2ffb78=_0x13f1b9-0x1;else{if(!_0x306757[_0x13f1b9]['isRemoved']||!_0x306757[_0x13f1b9-0x1]['isAdded']&&!_0x306757[_0x13f1b9-0x1]['isAddSuggestion'])continue;_0x52afec=_0x306757[_0x13f1b9-0x1],_0x5af017=_0x306757[_0x13f1b9],_0x2ffb78=_0x13f1b9;}const _0x17564c=_0x52afec['level']==_0x5af017['level'],_0x3a11c7=Math['abs'](_0x52afec['level'])<Math['abs'](_0x5af017['level'])&&0x0==_0x5af017['distance'];(_0x17564c||_0x3a11c7)&&(_0x5994cb['set'](_0x5af017['id'],_0x52afec['id']),_0x306757['splice'](_0x2ffb78,0x1),_0x13f1b9--,_0x52afec['isAdded']=!0x1);}for(let _0x148dba=0x0;_0x148dba<_0x306757['length'];_0x148dba++)_0x5994cb['has'](_0x306757[_0x148dba]['pairId'])&&(_0x306757[_0x148dba]['pairId']=_0x5994cb['get'](_0x306757[_0x148dba]['pairId']));}['_removeMissingPairs'](_0x38aa56){const _0x224238=new Set(_0x38aa56['map'](_0x370ea8=>_0x370ea8['id']));for(let _0x47b8f3=0x0;_0x47b8f3<_0x38aa56['length'];_0x47b8f3++)_0x224238['has'](_0x38aa56[_0x47b8f3]['pairId'])||0x0==_0x38aa56[_0x47b8f3]['distance']||(_0x38aa56[_0x47b8f3]['isIncorrect']=!0x0);return _0x38aa56['filter'](_0x36ad6a=>!_0x36ad6a['isIncorrect']);}['_markMismatchedRemovedTags'](_0xd1c0b){const _0x3354a=new Set();for(let _0x2a0c34=0x0;_0x2a0c34<_0xd1c0b['length'];_0x2a0c34++){if(_0x3354a['has'](_0xd1c0b[_0x2a0c34]['id'])&&_0xd1c0b[_0x2a0c34]['isRemoved']&&(_0xd1c0b[_0x2a0c34]['isIncorrect']=!0x0),_0xd1c0b[_0x2a0c34]['isIncorrect'])continue;if(0x0==_0xd1c0b[_0x2a0c34]['distance'])continue;if('elementStart'!=_0xd1c0b[_0x2a0c34]['type'])continue;if(null==_0xd1c0b[_0x2a0c34]['pairId'])continue;let _0x13af3e=_0x2a0c34+0x1,_0x24498e=0x0;for(;_0xd1c0b[_0x13af3e]['id']!=_0xd1c0b[_0x2a0c34]['pairId'];)'elementStart'==_0xd1c0b[_0x13af3e]['type']?_0x24498e++:'elementEnd'==_0xd1c0b[_0x13af3e]['type']&&_0x24498e--,_0x13af3e++;if(0x0!=_0x24498e){if(_0xd1c0b[_0x2a0c34]['isRemoved'])_0xd1c0b[_0x2a0c34]['isIncorrect']=!0x0;else{for(;_0x13af3e!=_0x2a0c34;)_0xd1c0b[_0x13af3e]['isRemoved']&&0x0!=_0xd1c0b[_0x13af3e]['distance']&&(_0xd1c0b[_0x13af3e]['isIncorrect']=!0x0,_0x3354a['add'](_0xd1c0b[_0x13af3e]['pairId'])),_0x13af3e--;}}}return _0xd1c0b['filter'](_0x4f402d=>!_0x4f402d['isIncorrect']);}['_removeUnsupportedChanges'](_0x200bd8){const _0x302af0=this['editor']['model']['schema'];for(let _0x27a2e1=0x0;_0x27a2e1<_0x200bd8['length'];_0x27a2e1++){if(!(_0x200bd8[_0x27a2e1]['isAdded']||_0x200bd8[_0x27a2e1]['isAddSuggestion']||_0x200bd8[_0x27a2e1]['isRemoved']||_0x200bd8[_0x27a2e1]['isRemoveSuggestion']))continue;if(0x0==_0x200bd8[_0x27a2e1]['distance'])continue;const _0x4d2d47=_0x200bd8[_0x27a2e1]['item'];_0x302af0['isBlock'](_0x4d2d47)||_0x302af0['isLimit'](_0x4d2d47)||(_0x200bd8[_0x27a2e1]['isAdded']&&delete _0x200bd8[_0x27a2e1]['isAdded'],_0x200bd8[_0x27a2e1]['isAddSuggestion']&&delete _0x200bd8[_0x27a2e1]['isAddSuggestion'],_0x200bd8[_0x27a2e1]['isRemoveSuggestion']&&delete _0x200bd8[_0x27a2e1]['isRemoveSuggestion'],_0x200bd8[_0x27a2e1]['isRemoved']&&(_0x200bd8[_0x27a2e1]['isIncorrect']=!0x0));}return _0x200bd8['filter'](_0x4bbf0c=>!_0x4bbf0c['isIncorrect']);}['_makeModelFromTape'](_0x52c19c,_0x5b3342,_0x35bde7){const _0x14605f=new vt(),_0x1a51fd=[],_0x53a9ba=new Map(),_0xc9ca3b=this['editor']['model'],_0x214668=_0xc9ca3b['schema'],_0x4d5215=[_0x14605f],_0x1b4cd8={},_0x1c7e8b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2203f=null;const _0x220d07=[0x0];for(let _0x12905b=0x0;_0x12905b<_0x52c19c['length'];_0x12905b++)if('elementStart'===_0x52c19c[_0x12905b]['type']){_0x52c19c[_0x12905b]['previousPosition']=_0xc9ca3b['createPositionFromPath'](_0x14605f,_0x220d07);const _0x4145ef=new ut(_0x52c19c[_0x12905b]['item']['name'],_0x52c19c[_0x12905b]['item']['getAttributes']());_0x4d5215[0x0]['_appendChild'](_0x4145ef),_0x220d07['push'](0x0),_0x4d5215['unshift'](_0x4145ef),_0x52c19c[_0x12905b]['nextPosition']=_0xc9ca3b['createPositionFromPath'](_0x14605f,_0x220d07);}else'elementEnd'===_0x52c19c[_0x12905b]['type']?(_0x4d5215['shift'](),_0x52c19c[_0x12905b]['previousPosition']=_0xc9ca3b['createPositionFromPath'](_0x14605f,_0x220d07),_0x220d07['pop'](),_0x220d07[_0x220d07['length']-0x1]++,_0x52c19c[_0x12905b]['nextPosition']=_0xc9ca3b['createPositionFromPath'](_0x14605f,_0x220d07)):(_0x52c19c[_0x12905b]['previousPosition']=_0xc9ca3b['createPositionFromPath'](_0x14605f,_0x220d07),_0x2203f?_0x2203f['_data']+=_0x52c19c[_0x12905b]['item']['data']:_0x2203f=new gt(_0x52c19c[_0x12905b]['item']['data'],_0x52c19c[_0x12905b]['item']['getAttributes']()),_0x52c19c[_0x12905b+0x1]&&'text'===_0x52c19c[_0x12905b+0x1]['type']&&_0x4632ed(_0x2203f,_0x52c19c[_0x12905b+0x1]['item'])||(_0x4d5215[0x0]['_appendChild'](_0x2203f),_0x2203f=null),_0x220d07[_0x220d07['length']-0x1]+=_0x52c19c[_0x12905b]['item']['offsetSize'],_0x52c19c[_0x12905b]['nextPosition']=_0xc9ca3b['createPositionFromPath'](_0x14605f,_0x220d07));for(let _0x3fc265=0x0;_0x3fc265<_0x52c19c['length'];_0x3fc265++){const _0x526f1f=_0x52c19c[_0x3fc265]['previousPosition'],_0x3621ed=_0x52c19c[_0x3fc265]['nextPosition'];for(const _0x24fbb3 of _0x52c19c[_0x3fc265]['markersStart'])_0x53a9ba['set'](_0x24fbb3,{'start':_0x526f1f,'end':null});_0xa0f886('isRemoveSuggestion',_0x3fc265,_0x526f1f,_0x3621ed),_0xa0f886('isAddSuggestion',_0x3fc265,_0x526f1f,_0x3621ed),_0xa0f886('isRemoved',_0x3fc265,_0x526f1f,_0x3621ed),_0xa0f886('isAdded',_0x3fc265,_0x526f1f,_0x3621ed);for(const _0x2c04a2 of _0x52c19c[_0x3fc265]['markersEnd']){const _0x39326e=_0x53a9ba['get'](_0x2c04a2);_0x39326e?_0x39326e['end']=_0x3621ed:_0x53a9ba['set'](_0x2c04a2,{'start':_0x3621ed,'end':_0x3621ed});}}for(const [_0x5875c1,_0xcedc9b]of _0x53a9ba){const _0xea7c61=this['editor']['model']['createRange'](_0xcedc9b['start'],_0xcedc9b['end']);_0x14605f['markers']['set'](_0x5875c1,_0xea7c61);}return _0x1a51fd['sort']((_0x50e6bf,_0x6ec783)=>{const _0x5b9c9f=_0x14605f['markers']['get']('revision:'+_0x50e6bf['id']),_0x38e28d=_0x14605f['markers']['get']('revision:'+_0x6ec783['id']);return _0x5b9c9f['start']['isBefore'](_0x38e28d['start'])?-0x1:_0x5b9c9f['start']['isAfter'](_0x38e28d['start'])?0x1:_0x5b9c9f['end']['isBefore'](_0x38e28d['end'])?-0x1:_0x5b9c9f['end']['isAfter'](_0x38e28d['end'])?0x1:'add'===_0x50e6bf['type']?-0x1:0x1;}),{'root':_0x14605f,'changes':_0x1a51fd};function _0xa0f886(_0x5da71e,_0x3bf6ef,_0x2bf76d,_0x2c7dd0){const _0x1c401a=!!_0x52c19c[_0x3bf6ef][_0x5da71e],_0x2ad4fc=_0x1c401a?_0x52c19c[_0x3bf6ef][_0x5da71e]['userId']:null,_0x1fce96=_0x3bf6ef===_0x52c19c['length']-0x1,_0x386215=_0x1c7e8b[_0x5da71e][0x0],_0x447121=_0x214668['isObject'](_0x52c19c[_0x3bf6ef]['item']);!_0x1b4cd8[_0x5da71e]&&_0x1c401a?_0x1b4cd8[_0x5da71e]={'start':_0x2bf76d,'tapeItem':_0x52c19c[_0x3bf6ef],'userId':_0x2ad4fc,'type':_0x5da71e}:_0x1b4cd8[_0x5da71e]&&!_0x1c401a?(_0x1b4cd8[_0x5da71e]['end']=_0x2bf76d,_0x39c97b(_0x1b4cd8[_0x5da71e]),_0x1b4cd8[_0x5da71e]=null):_0x1b4cd8[_0x5da71e]&&_0x1c401a&&_0x1b4cd8[_0x5da71e]['userId']!==_0x2ad4fc&&(_0x1b4cd8[_0x5da71e]['end']=_0x2bf76d,_0x386215&&_0x386215['userId']===_0x1b4cd8[_0x5da71e]['userId']||_0x39c97b(_0x1b4cd8[_0x5da71e]),_0x1b4cd8[_0x5da71e]={'start':_0x2bf76d,'tapeItem':_0x52c19c[_0x3bf6ef],'userId':_0x2ad4fc,'type':_0x5da71e}),_0x1b4cd8[_0x5da71e]&&_0x447121&&('elementStart'!==_0x52c19c[_0x3bf6ef]['type']||_0x386215&&_0x386215['userId']===_0x2ad4fc||_0x1c7e8b[_0x5da71e]['unshift']({'userId':_0x2ad4fc,'object':_0x52c19c[_0x3bf6ef]['item'],'change':_0x1b4cd8[_0x5da71e]}),'elementEnd'===_0x52c19c[_0x3bf6ef]['type']&&_0x386215&&_0x386215['object']===_0x52c19c[_0x3bf6ef]['item']&&(_0x1c7e8b[_0x5da71e]['shift'](),_0x1b4cd8[_0x5da71e]=_0x386215['change'])),_0x1b4cd8[_0x5da71e]&&_0x1fce96&&(_0x1b4cd8[_0x5da71e]['end']=_0x2c7dd0,_0x39c97b(_0x1b4cd8[_0x5da71e]),_0x1b4cd8[_0x5da71e]=null);}function _0x39c97b({start:_0x3080e7,end:_0x166ed3,tapeItem:_0x3763d5,userId:_0x389b92,type:_0x507f71}){const _0x41d1f3=_0x3763d5['item'],_0x4a3b52=_0xc9ca3b['schema']['isBlock'](_0x41d1f3)&&!_0xc9ca3b['schema']['isLimit'](_0x41d1f3),_0x1fa44e=_0x3080e7['nodeAfter']==_0x166ed3['parent']&&_0x166ed3['isAtStart'];if(_0x4a3b52&&_0x1fa44e)return;const _0x45d2dc=_0xc9ca3b['createRange'](_0x3080e7,_0x166ed3),_0x37cfea=_0x5b3342['get'](_0x389b92),_0x22dde4=new r({'author':_0x37cfea,'type':'isAdded'==_0x507f71||'isAddSuggestion'==_0x507f71?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x507f71||'isRemoveSuggestion'==_0x507f71},'createdAt':new Date(),'rootName':_0x35bde7});_0x1a51fd['push'](_0x22dde4),_0x14605f['markers']['set']('revision:'+_0x22dde4['id'],_0x45d2dc);}function _0x4632ed(_0x3d824a,_0x5357b6){const _0x129f81=_0x3d824a['getAttributes'](),_0x5d6cd3=_0x5357b6['getAttributes']();for(const _0x55ce01 of _0x129f81){if(_0x55ce01[0x1]!==_0x5357b6['getAttribute'](_0x55ce01[0x0]))return!0x1;_0x5d6cd3['next']();}return _0x5d6cd3['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2b40cc=>{const _0x477255=_0x2b40cc['markerName']['split'](':')[0x1],_0x285d0e=this['_getChangeFromId'](_0x477255);if(!_0x285d0e)return null;const _0x4ac39b='add'==_0x285d0e['type']?'insertion':'deletion',_0x56f286=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4ac39b];return _0x285d0e['data']['isSuggestion']&&_0x56f286['push']('ck-suggestion-marker-'+_0x4ac39b+'-new'),this['activeChange']==_0x285d0e&&_0x56f286['push']('ck-suggestion-marker--active'),{'classes':_0x56f286,'attributes':{'data-change-id':_0x477255}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xc60de2=>{_0xc60de2['on']('element:pre',(_0x16ceb7,_0x239591,_0x4fda77)=>{const _0x9243cc=_0x239591['viewItem']['getChild'](0x0);if(!_0x9243cc||!_0x9243cc['is']('element','code'))return;if(!_0x4fda77['consumable']['consume'](_0x9243cc,{'attributes':['vid_start','vid_end']}))return;const _0x4edc75=_0x239591['modelRange']['start']['nodeAfter'];_0x4fda77['writer']['setAttribute']('vid_start',_0x9243cc['getAttribute']('vid_start'),_0x4edc75),_0x4fda77['writer']['setAttribute']('vid_end',_0x9243cc['getAttribute']('vid_end'),_0x4edc75);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3c1340=>{_0x3c1340['on']('element',(_0x130cf9,_0x17b373,_0x5c4e07)=>{if(!_0x5c4e07['consumable']['consume'](_0x17b373['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x17b373['modelRange']['isCollapsed'])return;const _0x4fa757=_0x17b373['modelRange']['start']['nodeAfter'];_0x4fa757['hasAttribute']('vid_start')||_0x4fa757['hasAttribute']('vid')||(_0x5c4e07['writer']['setAttribute']('vid_start',_0x17b373['viewItem']['getAttribute']('vid_start'),_0x4fa757),_0x5c4e07['writer']['setAttribute']('vid_end',_0x17b373['viewItem']['getAttribute']('vid_end'),_0x4fa757));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x56e1c6=>_0x56e1c6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x34f15e,[,_0x2c796f])=>{['vid_start','vid_end','vid']['includes'](_0x2c796f)&&(_0x34f15e['return']=!0x0,_0x34f15e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x35224d=>{_0x35224d['on']('attribute:vid',(_0x540062,_0x27df4c,_0x2b072b)=>{if('\x20'!=_0x27df4c['item']['data']||_0x27df4c['item']['parent']['maxOffset']>0x1)return;if(!_0x2b072b['consumable']['consume'](_0x27df4c['item'],_0x540062['name']))return;const _0x52d0ac=_0x2b072b['writer'],_0x2143da=_0x2b072b['mapper']['toViewRange'](_0x27df4c['range']);_0x52d0ac['wrap'](_0x2143da,_0x52d0ac['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2daaef){const _0x8ae13=_0x2daaef['plugins']['get']('RevisionViewer');return(_0x16e284,_0x1aef63,_0x4f197a)=>{const _0x486a34=_0x1aef63['markerName']['split'](':')[0x1],_0x345bfc=_0x8ae13['_getChangeFromId'](_0x486a34);if(!_0x345bfc)return null;const _0x1ac892='add'==_0x345bfc['type']?'split':'merge';if(!_0x4f197a['consumable']['test'](_0x1aef63['markerRange'],_0x16e284['name']))return;const _0x3d062f=_0x1aef63['markerRange']['getWalker'](),_0x4d099b=_0x1aef63['markerRange']['start'],_0x5b8ec3=_0x2daaef['model']['schema'];let _0x27456c=null,_0xff6380=null,_0x19145b=!0x1,_0x13cd77=!0x1;for(const _0x3aa5a7 of _0x3d062f){const _0xc63dc4=_0x3aa5a7['item'];_0x19145b=_0x19145b||_0x5b8ec3['isContent'](_0xc63dc4);const _0x46abbc=_0x4f197a['mapper']['toViewElement'](_0xc63dc4);if(_0x46abbc&&_0x46abbc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3aa5a7['type']&&(_0x5b8ec3['isBlock'](_0xc63dc4)&&!_0x5b8ec3['isLimit'](_0xc63dc4)&&(_0xc63dc4['nextSibling']||_0x4d099b['isAtEnd']?_0x27456c&&_0x27456c['parent']==_0xc63dc4||(_0x27456c=_0xc63dc4,_0x3155d8(_0x3aa5a7['previousPosition']),_0x13cd77=!0x0):_0xff6380=_0xff6380||_0x3aa5a7['previousPosition']));}function _0x3155d8(_0x576e0f){const _0x4e83fa=_0x4f197a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ac892}),_0x24b4de=_0x4f197a['mapper']['toViewPosition'](_0x576e0f);_0x345bfc['data']['isSuggestion']&&_0x4f197a['writer']['addClass']('ck-suggestion-marker-'+_0x1ac892+'-new',_0x4e83fa),_0x8ae13['activeChange']==_0x345bfc&&_0x4f197a['writer']['addClass']('ck-suggestion-marker--active',_0x4e83fa),_0x4f197a['writer']['insert'](_0x24b4de,_0x4e83fa),_0x4f197a['mapper']['bindElementToMarker'](_0x4e83fa,_0x1aef63['markerName']);}_0x19145b||_0x13cd77||!_0xff6380||_0x3155d8(_0xff6380);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xf0a557,_0x57889a,_0x3a083d)=>{const _0x2ec0c0=_0x3a083d['mapper']['markerNameToElements'](_0x57889a['markerName']);if(_0x2ec0c0){for(const _0x50f71a of _0x2ec0c0)(_0x50f71a['hasClass']('ck-suggestion-marker-split')||_0x50f71a['hasClass']('ck-suggestion-marker-merge'))&&(_0x3a083d['mapper']['unbindElementFromMarkerName'](_0x50f71a,_0x57889a['markerName']),_0x3a083d['writer']['remove'](_0x50f71a));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xa4e9df,_0x41847e,_0x425510)=>{const _0x4d1147=_0x41847e['markerName']['split'](':')[0x1],_0x258014=this['_getChangeFromId'](_0x4d1147);if(!_0x258014)return null;const _0x33e51b='add'==_0x258014['type']?'split':'merge';if(_0x425510['consumable']['test'](_0x41847e['markerRange'],_0xa4e9df['name']))for(const _0x2b6c70 of _0x41847e['markerRange']['getItems']()){if(!_0x2b6c70['is']('element','softBreak'))continue;const _0x36283b=_0x425510['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33e51b}),_0x558710=_0x425510['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2b6c70));_0x258014['data']['isSuggestion']&&_0x425510['writer']['addClass']('ck-suggestion-marker-'+_0x33e51b+'-new',_0x36283b),this['activeChange']==_0x258014&&_0x425510['writer']['addClass']('ck-suggestion-marker--active',_0x36283b),_0x425510['writer']['insert'](_0x558710,_0x36283b),_0x425510['mapper']['bindElementToMarker'](_0x36283b,_0x41847e['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4b5f9d=>{for(const _0x1705b4 of this['editor']['model']['document']['getRootNames']()){const _0x2cd172=this['editor']['model']['document']['getRoot'](_0x1705b4),_0x32f66b=this['editor']['editing']['view']['document']['getRoot'](_0x1705b4);if(_0x32f66b){const _0x31109b=_0x2cd172['getAttribute']('revisionHistoryAttachChange');if(_0x4b5f9d['removeAttribute']('data-change-id',_0x32f66b),_0x4b5f9d['removeClass']('ck-revision-history-root-add',_0x32f66b),_0x4b5f9d['removeClass']('ck-revision-history-root-remove',_0x32f66b),_0x4b5f9d['removeClass']('ck-revision-history-root--active',_0x32f66b),_0x31109b){const _0x33690b=this['_getChangeFromId'](_0x31109b);if(!_0x33690b)return null;_0x4b5f9d['setAttribute']('data-change-id',_0x31109b,_0x32f66b),_0x4b5f9d['addClass']('ck-revision-history-root-'+_0x33690b['type'],_0x32f66b),this['activeChange']==_0x33690b&&_0x4b5f9d['addClass']('ck-revision-history-root--active',_0x32f66b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x58ceda=>'revision-comment:'+_0x58ceda,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x25336c=>'revision-suggestion:'+_0x25336c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x324909=>({'name':'suggestion:'+_0x324909,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4f7459=>{const _0x3b7aa7=_0x4f7459['markerName']['split'](':')[0x1];return'insertion'!=_0x3b7aa7&&'deletion'!=_0x3b7aa7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3b7aa7]};}}),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',(_0x52e196,_0x2a98da,_0x2f4c4b)=>{const _0xd6e74c=_0x2f4c4b['mapper']['markerNameToElements'](_0x2a98da['markerName']);if(_0xd6e74c){for(const _0x8d16ab of _0xd6e74c)_0x8d16ab['is']('uiElement')&&(_0x2f4c4b['mapper']['unbindElementFromMarkerName'](_0x8d16ab,_0x2a98da['markerName']),_0x2f4c4b['writer']['remove'](_0x8d16ab));}},{'priority':'high'});}['_getChangeFromId'](_0x5d480d){return this['_changeIdToChange']['get'](_0x5d480d);}['_getViewForChange'](_0x57ef0e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x57ef0e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x52297e,_0x1dd5a3,_0x1fb6cd,_0x142ca2)=>{_0x142ca2&&this['_balloon']['remove'](_0x142ca2),_0x1fb6cd&&(this['_balloon']['add']({'view':_0x1fb6cd,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x308eb=this['editor']['editing'],_0x485fc1=this['_getChangeFromId'](_0x1fb6cd['changeId']);let _0x278f43;if(_0x485fc1['data']['isOnRoot']){const _0x48f8fc=_0x308eb['view']['getDomRoot'](_0x485fc1['rootName']);_0x278f43=Array['from'](_0x48f8fc['getClientRects']());}else{const _0x158510=this['editor']['model']['markers']['get']('revision:'+_0x1fb6cd['changeId']);_0x278f43=Array['from'](_0x308eb['mapper']['markerNameToElements'](_0x158510['name']))['map'](_0x45b986=>_0x308eb['view']['domConverter']['mapViewToDom'](_0x45b986))['map'](_0x58ff86=>Array['from'](_0x58ff86['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x278f43[0x0];return _0x278f43['find'](_0x3e9ecc=>_0x3e9ecc['top']-0x3<=this['_activeViewTarget']['y']&&_0x3e9ecc['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3e9ecc['left']-0x3<=this['_activeViewTarget']['x']&&_0x3e9ecc['right']+0x3>=this['_activeViewTarget']['x'])||_0x278f43[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x52fd29,_0x229e8d,_0x15d087,_0x4bc346)=>{this['activeView']=_0x15d087?this['_getViewForChange'](_0x15d087):null,this['editor']['model']['change'](()=>{const _0xb9f7bf=this['editor']['editing'];_0x4bc346&&(_0x4bc346['data']['isOnRoot']?_0xb9f7bf['view']['change'](_0x2a0835=>{_0x2a0835['removeClass']('ck-revision-history-root--active',_0xb9f7bf['view']['document']['getRoot'](_0x4bc346['rootName']));}):_0xb9f7bf['reconvertMarker']('revision:'+_0x4bc346['id'])),_0x15d087&&(_0x15d087['data']['isOnRoot']?_0xb9f7bf['view']['change'](_0x736381=>{_0x736381['addClass']('ck-revision-history-root--active',_0xb9f7bf['view']['document']['getRoot'](_0x15d087['rootName']));}):_0xb9f7bf['reconvertMarker']('revision:'+_0x15d087['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x136786,_0x4b5ba0)=>{if(this['activeChange'])return;const _0x47127a=this['_findChangeIdFromDomTarget'](_0x4b5ba0['target']),_0x51b35e=this['_changeIdToChange']['get'](_0x47127a);_0x51b35e?(this['_activeViewTarget']={'x':_0x4b5ba0['domEvent']['x'],'y':_0x4b5ba0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x51b35e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x41b14d,_0x48af99)=>{const _0x3afc6b=this['_findChangeIdFromDomTarget'](_0x48af99['target']),_0x82499e=this['_changeIdToChange']['get'](_0x3afc6b);_0x82499e?(this['_activeViewTarget']={'x':_0x48af99['domEvent']['x'],'y':_0x48af99['domEvent']['y']},_0x82499e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x82499e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x29ec0d){do{const _0x302143=_0x29ec0d['getAttribute']('data-change-id');if(_0x302143)return _0x302143;_0x29ec0d=_0x29ec0d['parent'];}while(_0x29ec0d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5a0806=>{for(const _0x212e34 of this['editor']['model']['markers'])_0x5a0806['removeMarker'](_0x212e34);});}}function X(_0x111782,_0x1f5342){return(_0x283cfd,_0x3f272c,_0x184a10)=>{if(!_0x184a10['consumable']['test'](_0x3f272c['markerRange'],_0x283cfd['name']))return;const _0x1f7b11=_0x3f272c['markerRange']['getWalker'](),_0x394a35=_0x3f272c['markerRange']['start'],_0xc869e=_0x111782['model']['schema'];let _0x2285e3=null,_0x5708c1=null,_0x902573=!0x1,_0x238cff=!0x1;for(const _0x215cda of _0x1f7b11){const _0x2bddbd=_0x215cda['item'];_0x902573=_0x902573||_0xc869e['isContent'](_0x2bddbd);const _0x322a7e=_0x184a10['mapper']['toViewElement'](_0x2bddbd);if(_0x322a7e&&_0x322a7e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x215cda['type']&&(_0xc869e['isBlock'](_0x2bddbd)&&!_0xc869e['isLimit'](_0x2bddbd)&&(_0x2bddbd['nextSibling']||_0x394a35['isAtEnd']?_0x2285e3&&_0x2285e3['parent']==_0x2bddbd||(_0x2285e3=_0x2bddbd,_0x581fc2(_0x215cda['previousPosition']),_0x238cff=!0x0):_0x5708c1=_0x5708c1||_0x215cda['previousPosition']));}function _0x581fc2(_0xab9f90){const _0x57f9c3=_0x184a10['mapper']['toViewPosition'](_0xab9f90),_0x5796a7=_0x184a10['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1f5342});_0x184a10['writer']['insert'](_0x57f9c3,_0x5796a7),_0x184a10['mapper']['bindElementToMarker'](_0x5796a7,_0x3f272c['markerName']);}_0x902573||_0x238cff||!_0x5708c1||_0x581fc2(_0x5708c1);};}class mt extends _0x5052bf{constructor(_0x4a407a){super(_0x4a407a);const _0x25f413=_0x4a407a['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x25f413,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25f413,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x418cb4=this['editor'],_0x54e61a=_0x418cb4['plugins']['get'](m),_0xca756c=_0x54e61a['isReady']?_0x54e61a['diff']['newRevisionId']:null;_0x418cb4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xca756c);}['refresh'](){const {isReady:_0x3d2edb,isEnabled:_0x47bf42,repository:_0x3fd945,diff:_0x5ee789}=this['editor']['plugins']['get'](m),_0x2ba5c3=_0x5ee789&&_0x3fd945['getLaterVisibleRevision'](_0x5ee789['newRevisionId']);this['isEnabled']=_0x3d2edb&&_0x47bf42&&Boolean(_0x2ba5c3);}}class wt extends _0x5052bf{['_step'];constructor(_0x5ef8c0,{direction:_0x17b1f7}){super(_0x5ef8c0);const _0x23764b=_0x5ef8c0['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x17b1f7?0x1:-0x1,this['listenTo'](_0x23764b,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x23764b,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x23764b,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x51718d=this['editor'],_0x56514e=_0x51718d['plugins']['get'](m),{isNavigationMode:_0x33a133,currentChangeNumber:_0x58e12a}=_0x56514e;let _0x4c3a30;if(_0x56514e['activeChange']=_0x33a133?_0x56514e['diff']['changes']['get'](_0x58e12a+this['_step']):_0x56514e['diff']['changes']['first'],_0x56514e['activeChange']['data']['isOnRoot'])_0x4c3a30=_0x51718d['editing']['view']['getDomRoot'](_0x56514e['activeChange']['rootName']);else{const _0x498d05=_0x51718d['model']['markers']['get']('revision:'+_0x56514e['activeChange']['id']);_0x4c3a30=_0x839c63(_0x51718d['editing'],_0x498d05);}_0x25496f({'target':_0x4c3a30,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x40e3a5,currentChangeNumber:_0x544e8d,numberOfChanges:_0x16aeae,isReady:_0x352428,isEnabled:_0xc9dc2b}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0xc9dc2b&&_0x352428&&_0x16aeae)&&(!_0x40e3a5||(0x1===this['_step']?_0x544e8d<_0x16aeae-0x1:_0x544e8d>0x0));}}class di extends ts{constructor(_0x2986ad){super(_0x2986ad);const _0x285252=this['bindTemplate'],_0x39bb06=new te(_0x2986ad),_0x40aa0a=new te(_0x2986ad);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',(_0x4cb7a5,_0x29a4d9)=>_0x4cb7a5&&_0x29a4d9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x229506,_0x4e7268,_0x26a169,_0x3afc06)=>{if(!_0x229506)return g(_0x2986ad,'Loading...');if(!_0x26a169)return g(_0x2986ad,'No\x20changes');const _0x101856=g(_0x2986ad,'NUMBER_OF_CHANGES',_0x26a169);return _0x3afc06?g(_0x2986ad,'X_OF_Y_CHANGES',[_0x4e7268+0x1,_0x26a169]):_0x101856;}),_0x39bb06['set']({'label':g(_0x2986ad,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xbeb4d2}),_0x40aa0a['set']({'label':g(_0x2986ad,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5c3a70}),_0x39bb06['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x40aa0a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x39bb06['on']('execute',()=>this['fire']('execute','backward')),_0x40aa0a['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',_0x285252['if']('_isStatusLabelVisible','ck-hidden',_0x2a0166=>!_0x2a0166)]},'children':[{'text':_0x285252['to']('isNavigationMode',_0x325314=>_0x325314?g(_0x2986ad,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x2986ad,'Total')+':\x20')}]},{'text':_0x285252['to']('_statusText')}]},new _0x16798e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x39bb06,_0x40aa0a]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x3edab6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x57d1c1=this['editor']['editing']['view'];_0x57d1c1['change'](_0x24b559=>{for(const _0x4625d6 of _0x57d1c1['document']['roots'])_0x24b559['addClass'](le,_0x4625d6);});}['hide'](){const _0x39ab2c=this['editor']['editing']['view'];_0x39ab2c['change'](_0x8d3dbe=>{for(const _0x1e9519 of _0x39ab2c['document']['roots'])_0x8d3dbe['removeClass'](le,_0x1e9519);});}}class R extends _0x3edab6{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x69b48d=this['editor'],_0x22aa18=_0x69b48d['plugins']['get'](m),_0xd905f=_0x69b48d['plugins']['get'](de);_0x69b48d['ui']['componentFactory']['add']('exitToEditing',_0x22b2f2=>{const _0x262336=new te(_0x22b2f2);return _0x262336['set']({'label':g(_0x22b2f2,'Back\x20to\x20editing'),'icon':_0x19e875,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x262336,'execute',()=>{_0x69b48d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x262336;}),_0x69b48d['ui']['componentFactory']['add']('restoreRevision',_0x1e00d7=>{const _0x513eee=new te(_0x1e00d7);return _0x513eee['set']({'label':g(_0x1e00d7,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x513eee['bind']('isEnabled')['to'](_0x69b48d['commands']['get']('restoreRevision')),this['listenTo'](_0x513eee,'execute',()=>_0x69b48d['execute']('restoreRevision')),_0x513eee;}),_0x69b48d['ui']['componentFactory']['add']('changesNavigation',_0x3ceb1a=>{const _0x36a7fb=new di(_0x3ceb1a),_0x23e0d1=_0x69b48d['commands']['get']('showPreviousChange'),_0x25aa6b=_0x69b48d['commands']['get']('showNextChange');return _0x36a7fb['bind']('isBackwardNavigationEnabled')['to'](_0x23e0d1,'isEnabled'),_0x36a7fb['bind']('isForwardNavigationEnabled')['to'](_0x25aa6b,'isEnabled'),_0x36a7fb['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x22aa18),this['listenTo'](_0x36a7fb,'execute',(_0x1c7497,_0x3b319f)=>{_0x69b48d['execute']('forward'===_0x3b319f?'showNextChange':'showPreviousChange');}),_0x36a7fb;}),_0xd905f['show'](),_0x22aa18['on']('change:isReady',(_0x2f1d90,_0x1474ef,_0x479c38)=>{_0x479c38?_0xd905f['hide']():_0xd905f['show']();});}}class at extends _0x4403fd{['_resizeObserver']=null;constructor(_0x2f66d3,_0x251333){super(_0x2f66d3,_0x251333);const _0x44b02d=this['bindTemplate'];this['set']({'label':g(_0x2f66d3,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x2f66d3,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x44b02d['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 _0x451a74=this['fieldView']['element'];this['_tooltipString']=_0x451a74['scrollWidth']>_0x451a74['clientWidth']&&_0x451a74['value']||'';}}class si extends ts{constructor(_0x5cf806,_0x14df67,_0x38e359){super(_0x5cf806);const _0x511370=new _0x27a6cc();_0x511370['set']({'content':_0x201ae9,'viewBox':'0\x200\x2011\x2010'});const _0x1d564e=['ck','ck-revision-history-sidebar__revision-author'];_0x38e359&&_0x1d564e['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1b11cc=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5cf806,_0x38e359?'Revision\x20creator':'Revision\x20author')},'children':[_0x511370,_0x14df67['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1d564e},'children':_0x1b11cc});}}function oi(_0x26f77a,_0x432bf6){const _0x5e5410=_0x26f77a['bindTemplate'],_0x3b4a86=_0x26f77a['locale'],_0x5d3d16=_0x45e760(_0x3b4a86);_0x5d3d16['panelPosition']='sw';const _0x34a852=function(_0x542cbc,_0x16bb68){const _0x30f3b8=function(_0x25a3dd,_0x2e36c6){const _0x5468b0=_0x25a3dd['locale'],_0x257589={'Compare\x20against\x20selected':g(_0x5468b0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x5468b0,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x5468b0,'Restore\x20this\x20revision')};return _0x2e36c6['map'](_0x222b6b=>{const _0x2cc4a6=_0x257589[_0x222b6b['name']];return _0x2cc4a6&&_0x2cc4a6!==_0x222b6b['name']&&(_0x222b6b['name']=_0x2cc4a6),_0x222b6b;});}(_0x542cbc,_0x16bb68),_0x96a56c=new _0x133f10();for(const _0x4f04bb of _0x30f3b8){const _0x2ff1f4={'type':'button','model':new to({'label':_0x4f04bb['name'],'class':_0x4f04bb['class'],'withText':!0x0,'role':'menuitem','_action':_0x4f04bb['action']})};_0x2ff1f4['model']['bind']('isEnabled')['to'](_0x542cbc,'isActionsDropdownOpen',_0x32e25d=>'function'!=typeof _0x4f04bb['isEnabled']||(!_0x32e25d||_0x4f04bb['isEnabled'](_0x542cbc))),_0x96a56c['add'](_0x2ff1f4);}return _0x96a56c;}(_0x26f77a,_0x432bf6);return _0x26f77a['bind']('isActionsDropdownOpen')['to'](_0x5d3d16,'isOpen'),_0x5d3d16['buttonView']['set']({'label':g(_0x3b4a86,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x14114e}),_0x5d3d16['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5e5410['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5e5410['to'](_0x58543c=>_0x58543c['stopPropagation']())}}),_0x5d3d16['on']('execute',_0x502876=>{_0x26f77a['isReady']&&'function'==typeof _0x502876['source']['_action']&&_0x502876['source']['_action'](_0x26f77a);}),_0x22278b(_0x5d3d16,_0x34a852,{'role':'menu'}),_0x5d3d16['listenTo'](_0x26f77a,'change:isActionsDropdownOpen',(_0x14241c,_0x57a295,_0x40a7cf)=>{if(_0x40a7cf)for(const _0x14b63a of _0x5d3d16['listView']['items']){const _0x87c629=_0x14b63a['children']['first'],_0x100e02=_0x432bf6['find'](_0x57b201=>_0x57b201['action']===_0x87c629['_action'])['isVisible'];_0x14b63a['isVisible']=void 0x0===_0x100e02||_0x100e02(_0x26f77a);}}),_0x5d3d16;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x3fd0d6,uid as _0x423624,Collection as _0x5c68d2,logWarning as _0x970719,FocusTracker as _0x5c6e07,KeystrokeHandler as _0x1c65d2,scrollViewportToShowTarget as _0x389bf5,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x164733}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xf4506f,set as _0x2fdf23,unset as _0x9cf60a,isEqual as _0x3b0ba1}from'es-toolkit/compat';import{Plugin as _0x4eb38d,PendingActions as _0x38da1f,Command as _0x1baf86,ElementApiMixin as _0x155746,Editor as _0x1e2b0c}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x266938,getMarkerDomElement as _0x4b86d3,ConfirmMixin as _0x1c922f,sanitizeEditorConfig as _0x475b27}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x409962,ViewAttributeElement as _0x503f33,ViewEmptyElement as _0x2d2880,ViewRawElement as _0x4eedab,ViewUIElement as _0xcc1b16,ViewDocumentFragment as _0x5e4606,ViewText as _0x517936,ViewElement as _0x33b42d,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x2f0552,IconChevronUp as _0x422ec8,IconChevronDown as _0x233b7f,IconUndo as _0x566aea,IconUser as _0x40b491,IconThreeVerticalDots as _0xfbc26d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x745a8d,injectCssTransitionDisabler as ts,submitHandler as _0x1f975a,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x2fa9d9,ListView as _0x226ede,ListItemView as te,ButtonView as _0x537db8,MenuBarMenuView as _0x356cb3,MenuBarMenuListView as _0x28cf76,MenuBarMenuListItemView as _0x3e7b64,MenuBarMenuListItemButtonView as _0x514805,ContextualBalloon as _0x1b49dd,ToolbarSeparatorView as _0x4ec420,IconView as _0x22f298,addListToDropdown as _0x49e3dc,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 _0x9c31d5}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3fd0d6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x37f2a6){super(),this['id']=_0x37f2a6['id']||_0x423624(),this['creator']=_0x37f2a6['creator']||null,this['authors']=_0x37f2a6['authors']||[],this['diffData']=_0x37f2a6['diffData']||null,this['toVersion']=_0x37f2a6['toVersion']||0x0,this['fromVersion']=_0x37f2a6['fromVersion']||0x0,this['set']('name',_0x37f2a6['name']||''),this['set']('createdAt',_0x37f2a6['createdAt']||new Date()),this['set']('attributes',_0x37f2a6['attributes']||{});}['setName'](_0x1d6dd7){this['_update']({'name':_0x1d6dd7});}['setAttribute'](_0x4e82c4,_0x2f3e39){const _0x732ff1=_0xf4506f(this['attributes']);_0x2fdf23(_0x732ff1,_0x4e82c4,_0x2f3e39),this['_update']({'attributes':_0x732ff1});}['removeAttribute'](_0x4e5a77){const _0x3eff36=_0xf4506f(this['attributes']);_0x9cf60a(_0x3eff36,_0x4e5a77),this['_update']({'attributes':_0x3eff36});}['_update'](_0x3da51d,_0x5a6ca8=!0x1){let _0x5000ff=!0x1;const _0xf80b65={'id':this['id']},_0x40145e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x304d08 of _0x40145e){const _0x3e1885=_0x3da51d[_0x304d08];void 0x0!==_0x3e1885&&_0x3e1885!==this[_0x304d08]&&(this[_0x304d08]=_0x3e1885,_0xf80b65[_0x304d08]=_0x3e1885,_0x5000ff=!0x0);}_0x5000ff&&(_0xf80b65['authors']&&(_0xf80b65['authorsIds']=_0xf80b65['authors']['map'](_0x1406a1=>_0x1406a1['id']),delete _0xf80b65['authors']),this['fire']('_update',_0xf80b65,_0x5a6ca8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x41262c=>_0x41262c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x4eb38d{['_revisions'];static get['requires'](){return[_0x266938];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x32d066){super(_0x32d066),this['_revisions']=new _0x5c68d2();}['afterInit'](){!async function(_0x13b144){const _0x118e7a=_0x3d175a([0x67,0x50,0x73,0x6c,0x5a,0x63,0x55,0x71,0x61,0x6f,0x6d,0x4c,0x4f,0x38,0x72,0x4b,0x4a,0x65,0x68,0x45,0x47,0x54,0x7a,0x70,0x59,0x6b,0x44,0x74,0x43,0x39,0x78,0x32,0x75,0x30,0x6a,0x56,0x4d,0x49,0x66,0x53,0x69,0x52,0x57,0x36,0x62,0x31,0x37,0x35,0x41,0x77,0x58,0x4e,0x76,0x51,0x48,0x6e,0x46,0x42,0x34,0x79,0x33,0x64]),_0x383717=0xeb829,_0x1b58bd=0x3eb6c35d,_0x349a0d=0x3eb1a7fd^_0x1b58bd,_0x41467c=window[_0x3d175a([0x44,0x61,0x74,0x65])][_0x3d175a([0x6e,0x6f,0x77])](),_0x104d21=_0x13b144[_0x3d175a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58c798=new window[(_0x3d175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x206471=>{_0x104d21[_0x3d175a([0x6f,0x6e,0x63,0x65])](_0x3d175a([0x72,0x65,0x61,0x64,0x79]),_0x206471);}),_0x20d53f={[_0x3d175a([0x6b,0x74,0x79])]:_0x3d175a([0x45,0x43]),[_0x3d175a([0x75,0x73,0x65])]:_0x3d175a([0x73,0x69,0x67]),[_0x3d175a([0x63,0x72,0x76])]:_0x3d175a([0x50,0x2d,0x32,0x35,0x36]),[_0x3d175a([0x78])]:_0x3d175a([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]),[_0x3d175a([0x79])]:_0x3d175a([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]),[_0x3d175a([0x61,0x6c,0x67])]:_0x3d175a([0x45,0x53,0x32,0x35,0x36])},_0x17b0c5=_0x104d21[_0x3d175a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d175a([0x67,0x65,0x74])](_0x3d175a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cacac(){let _0x1f25e1,_0x36c18f=null,_0x263fc8=null;try{if(_0x17b0c5==_0x3d175a([0x47,0x50,0x4c]))return _0x3d175a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1f25e1=_0x4408d3(),!_0x1f25e1)return _0x3d175a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1f25e1[_0x3d175a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x263fc8=_0x503be2(_0x1f25e1[_0x3d175a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1f25e1[_0x3d175a([0x6a,0x74,0x69])])),await _0x36f165()?_0x33301a()?_0x4be595()?_0x3d175a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd1c869()?(_0x1f25e1[_0x3d175a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d175a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36c18f=_0x1668ae(_0x3d175a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1f25e1[_0x3d175a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d175a([0x74,0x72,0x69,0x61,0x6c])&&(_0x36c18f=_0x1668ae(_0x3d175a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31e6f9()):_0x3d175a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d175a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d175a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xeff243){return _0x3d175a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4be595(){const _0x4e958e=[_0x3d175a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d175a([0x74,0x72,0x69,0x61,0x6c])][_0x3d175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f25e1[_0x3d175a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41467c/0x3e8:0xe10*_0x349a0d;return _0x1f25e1[_0x3d175a([0x65,0x78,0x70])]<_0x4e958e;}function _0x33301a(){const _0x5dda07=_0x1f25e1[_0x3d175a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5dda07)return!0x1;if(_0x5dda07[_0x3d175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d175a([0x2a])))return!0x0;if(_0x5dda07[_0x3d175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d175a([0x52,0x48])))return!0x0;if(_0x5dda07[_0x3d175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d175a([0x52,0x52,0x48]))){if(_0x2c6bde())return!0x0;if(_0x1acb3c()||_0x8a6820())return!0x0;}return!0x1;}function _0xd1c869(){const _0x471f8b=_0x1f25e1[_0x3d175a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x471f8b||0x0==_0x471f8b[_0x3d175a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dd65c}=new URL(window[_0x3d175a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x471f8b[_0x3d175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dd65c))return!0x0;const _0x230e4a=_0x5dd65c[_0x3d175a([0x73,0x70,0x6c,0x69,0x74])](_0x3d175a([0x2e]));return _0x471f8b[_0x3d175a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x93023e=>_0x93023e[_0x3d175a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d175a([0x2a])))[_0x3d175a([0x6d,0x61,0x70])](_0x5d43b0=>_0x5d43b0[_0x3d175a([0x73,0x70,0x6c,0x69,0x74])](_0x3d175a([0x2e])))[_0x3d175a([0x73,0x6f,0x6d,0x65])](_0x33f8d7=>_0x230e4a[_0x3d175a([0x65,0x76,0x65,0x72,0x79])]((_0xcff66c,_0x189e23)=>_0x33f8d7[_0x189e23]===_0xcff66c||_0x33f8d7[_0x189e23]===_0x3d175a([0x2a])));}function _0x31e6f9(){return _0x36c18f&&_0x263fc8?new window[(_0x3d175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xecbc7b,_0x498738)=>{_0x36c18f[_0x3d175a([0x74,0x68,0x65,0x6e])](_0xecbc7b,_0x498738),_0x263fc8[_0x3d175a([0x74,0x68,0x65,0x6e])](_0x598de0=>{_0x598de0!=_0x3d175a([0x56,0x61,0x6c,0x69,0x64])&&_0xecbc7b(_0x598de0);},_0x498738);}):_0x36c18f||_0x263fc8||_0x3d175a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x503be2(_0x3bd9f4,_0x426448){return new window[(_0x3d175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x242474=>{if(_0x2d2ce1())return _0x242474(_0x3d175a([0x56,0x61,0x6c,0x69,0x64]));_0x58f7ba(),_0x104d21[_0x3d175a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d175a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ef6bf=!0x1;const _0x3e40b4=_0x423624();function _0x4b79d5(_0x70203){return!!_0x70203&&(typeof _0x70203===_0x3d175a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x70203===_0x3d175a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x70203[_0x3d175a([0x74,0x68,0x65,0x6e])]===_0x3d175a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x70203[_0x3d175a([0x63,0x61,0x74,0x63,0x68])]===_0x3d175a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18a0c6(_0x216479){_0x447f06(_0x216479)[_0x3d175a([0x74,0x68,0x65,0x6e])](_0x16bd3d=>{if(!_0x16bd3d||_0x16bd3d[_0x3d175a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d175a([0x6f,0x6b]))return _0x3d175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a493e(_0x5f4e47(_0x3e40b4+_0x426448))!=_0x16bd3d[_0x3d175a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d175a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d175a([0x74,0x68,0x65,0x6e])](_0x42ac07=>(_0x2930ce(),_0x42ac07),()=>{const _0x319b7b=_0x3be691();return null==_0x319b7b?(_0x2930ce(),_0x3d175a([0x56,0x61,0x6c,0x69,0x64])):_0x3d175a(_0x41467c-_0x319b7b>(0x1aba475d^_0x1b58bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d175a([0x74,0x68,0x65,0x6e])](_0x242474)[_0x3d175a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x242474(_0x3d175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x481356=0x3e802ddd^_0x1b58bd;function _0x2930ce(){const _0x187e42=_0x3d175a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a493e(_0x5f4e47(_0x3bd9f4)),_0x24fc13=_0x2c5767(_0x3a493e(window[_0x3d175a([0x4d,0x61,0x74,0x68])][_0x3d175a([0x63,0x65,0x69,0x6c])](_0x41467c/_0x481356)));window[_0x3d175a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d175a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x187e42,_0x24fc13);}function _0x3be691(){const _0x54c463=_0x3d175a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a493e(_0x5f4e47(_0x3bd9f4)),_0x369a42=window[_0x3d175a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d175a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54c463);return _0x369a42?window[_0x3d175a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c5767(_0x369a42),0x10)*_0x481356:null;}function _0x447f06(_0x174a5c){return new window[(_0x3d175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dec95,_0x29dc0a)=>{_0x174a5c[_0x3d175a([0x74,0x68,0x65,0x6e])](_0x2dec95,_0x29dc0a),window[_0x3d175a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29dc0a,0x3eb7179d^_0x1b58bd);});}}_0x104d21[_0x3d175a([0x6f,0x6e])](_0x3d175a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x370db6,_0x2ea669)=>{if(_0x2ea669[0x0]!=_0x3bd9f4)return _0x242474(_0x3d175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ea669[0x1]={..._0x2ea669[0x1],[_0x3d175a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e40b4};},{[_0x3d175a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d175a([0x68,0x69,0x67,0x68])}),_0x104d21[_0x3d175a([0x6f,0x6e])](_0x3d175a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf30d37=>{_0x4b79d5(_0xf30d37[_0x3d175a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ef6bf=!0x0,_0x18a0c6(_0xf30d37[_0x3d175a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d175a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d175a([0x6c,0x6f,0x77])}),_0x58c798[_0x3d175a([0x74,0x68,0x65,0x6e])](()=>{_0x5ef6bf||_0x242474(_0x3d175a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d2ce1(){return _0x104d21[_0x3d175a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d175a([0x76,0x69,0x65,0x77])][_0x3d175a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d175a([0x61,0x75,0x74,0x6f]);}function _0x58f7ba(){_0x104d21[_0x3d175a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d175a([0x76,0x69,0x65,0x77])][_0x3d175a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d175a([0x61,0x75,0x74,0x6f]);}}function _0x1668ae(_0x1a1111){const _0x7a2452=[new window[(_0x3d175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a236f=>setTimeout(_0x3a236f,0x3ebffd91^_0x1b58bd)),_0x58c798[_0x3d175a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4efed8=>{const _0x230627=0x3eb6c35a^_0x1b58bd,_0x39748f=_0x13b144[_0x3d175a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2fba65(){_0x39748f[_0x3d175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x230627&&_0x4efed8();}_0x2fba65(),_0x39748f[_0x3d175a([0x6f,0x6e])](_0x3d175a([0x61,0x64,0x64]),_0x2fba65);})),new window[(_0x3d175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13d670=>{function _0x22bbe0(){for(const _0x2d8945 in window)if(window[_0x3d175a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3d175a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2d8945))&&window[_0x2d8945]==_0x383717)return _0x13d670();_0x104d21[_0x3d175a([0x73,0x74,0x61,0x74,0x65])]!=_0x3d175a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3d175a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22bbe0,0x3eb6d0d5^_0x1b58bd);}_0x2944f0(_0x3d175a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x22bbe0();})];return window[_0x3d175a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d175a([0x72,0x61,0x63,0x65])](_0x7a2452)[_0x3d175a([0x74,0x68,0x65,0x6e])](()=>_0x1a1111);}async function _0x2debe8(){if(await _0x58c798,_0x2944f0(_0x3d175a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x226d6b=_0x13b144[_0x3d175a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x549e91=_0x13b144[_0x3d175a([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])](_0x226d6b[_0x3d175a([0x69,0x64])]),_0x1efd87=_0x2c236e(_0x3d175a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1efd87[_0x3d175a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x226d6b['id'],_0x549e91?_0x549e91['id']:null,!0x0),_0x1efd87[_0x3d175a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d175a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1efd87[_0x3d175a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1efd87[_0x3d175a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x880db0,void(_0x1efd87[_0x3d175a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x880db0);}if(_0x2944f0(_0x3d175a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x285bed=_0x2c236e(_0x3d175a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x285bed[_0x3d175a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d175a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x285bed[_0x3d175a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x285bed[_0x3d175a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x880db0,_0x285bed[_0x3d175a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x880db0;}_0x104d21[_0x3d175a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d175a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x880db0,_0x104d21[_0x3d175a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d175a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x880db0,_0x104d21[_0x3d175a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d175a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c6bde(){return _0x2944f0(_0x3d175a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2c236e(_0x3d175a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d175a([0x73,0x74,0x61,0x74,0x65])]==_0x3d175a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1acb3c(){return _0x2944f0(_0x3d175a([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 _0x8a6820(){return _0x2944f0(_0x3d175a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2d57d5(_0x4bb5c9){const _0x290bd8=_0x328a39();_0x104d21[_0x290bd8]=_0x3d175a([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])+_0x4bb5c9,_0x4bb5c9[_0x3d175a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3d175a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x328a39()]=_0x383717),_0x4bb5c9!=_0x3d175a([0x56,0x61,0x6c,0x69,0x64])&&_0x2debe8();}function _0x328a39(){const _0x44465e=window[_0x3d175a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d175a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d175a([0x6e,0x6f,0x77])]())[_0x3d175a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d175a([0x2e]),'');let _0x706bfe=_0x3d175a([0x67]);for(let _0x28a4a9=0x0;_0x28a4a9<_0x44465e[_0x3d175a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28a4a9+=0x2){let _0x2d1678=window[_0x3d175a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44465e[_0x3d175a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28a4a9,_0x28a4a9+0x2));_0x2d1678>=_0x118e7a[_0x3d175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d1678-=_0x118e7a[_0x3d175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x706bfe+=_0x118e7a[_0x2d1678];}return _0x706bfe;}function _0x4408d3(){const _0x18adc6=_0x17b0c5[_0x3d175a([0x73,0x70,0x6c,0x69,0x74])](_0x3d175a([0x2e]));if(0x3!=_0x18adc6[_0x3d175a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a34c5(_0x18adc6[0x1]);function _0x2a34c5(_0x3689a9){const _0x40c028=_0x5224c0(_0x3689a9);return _0x40c028&&_0x4c6fd7()?_0x40c028:null;function _0x4c6fd7(){const _0x416c6b=_0x40c028[_0x3d175a([0x6a,0x74,0x69])],_0x2182bd=window[_0x3d175a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x416c6b[_0x3d175a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x416c6b[_0x3d175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ac647={..._0x40c028,[_0x3d175a([0x6a,0x74,0x69])]:_0x416c6b[_0x3d175a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x416c6b[_0x3d175a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ac647[_0x3d175a([0x76,0x63])],_0x5f4e47(_0x2ac647)==_0x2182bd;}}}async function _0x36f165(){let _0x34d881=!0x0;try{const _0x21b02b=_0x17b0c5[_0x3d175a([0x73,0x70,0x6c,0x69,0x74])](_0x3d175a([0x2e])),[_0xf81715,_0x252043,_0x4e9417]=_0x21b02b;return _0x3a5df4(_0xf81715),await _0x230687(_0xf81715,_0x252043,_0x4e9417),_0x34d881;}catch(_0xc45708){return!0x1;}function _0x3a5df4(_0x450304){const _0x29baf9=_0x5224c0(_0x450304);_0x29baf9&&_0x29baf9[_0x3d175a([0x61,0x6c,0x67])]==_0x3d175a([0x45,0x53,0x32,0x35,0x36])||(_0x34d881=!0x1);}async function _0x230687(_0x3fcdc5,_0x50cb07,_0x45b64f){const _0x9e9887=window[_0x3d175a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d175a([0x66,0x72,0x6f,0x6d])](_0x21393b(_0x45b64f),_0x2d624b=>_0x2d624b[_0x3d175a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50f1c0=new window[(_0x3d175a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d175a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3fcdc5+_0x3d175a([0x2e])+_0x50cb07),_0x54ba3e=window[_0x3d175a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d175a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54ba3e)return;const _0x25d3e2=await _0x54ba3e[_0x3d175a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d175a([0x6a,0x77,0x6b]),_0x20d53f,{[_0x3d175a([0x6e,0x61,0x6d,0x65])]:_0x3d175a([0x45,0x43,0x44,0x53,0x41]),[_0x3d175a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d175a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d175a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54ba3e[_0x3d175a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d175a([0x6e,0x61,0x6d,0x65])]:_0x3d175a([0x45,0x43,0x44,0x53,0x41]),[_0x3d175a([0x68,0x61,0x73,0x68])]:{[_0x3d175a([0x6e,0x61,0x6d,0x65])]:_0x3d175a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25d3e2,_0x9e9887,_0x50f1c0)||(_0x34d881=!0x1);}}function _0x5224c0(_0x5c2395){return _0x5c2395[_0x3d175a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d175a([0x65,0x79]))?JSON[_0x3d175a([0x70,0x61,0x72,0x73,0x65])](_0x21393b(_0x5c2395)):null;}function _0x21393b(_0x4c038b){return window[_0x3d175a([0x61,0x74,0x6f,0x62])](_0x4c038b[_0x3d175a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d175a([0x2b]))[_0x3d175a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d175a([0x2f])));}function _0x5f4e47(_0x28331f){let _0x5656c8=0x1505;function _0x4cd73f(_0x1ba0f8){for(let _0x18470b=0x0;_0x18470b<_0x1ba0f8[_0x3d175a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18470b++){const _0x271b73=_0x1ba0f8[_0x3d175a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18470b);_0x5656c8=(_0x5656c8<<0x5)+_0x5656c8+_0x271b73,_0x5656c8&=_0x5656c8;}}function _0x5cd97d(_0x591c8f){Array[_0x3d175a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x591c8f)?_0x591c8f[_0x3d175a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5cd97d):_0x591c8f&&typeof _0x591c8f==_0x3d175a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d175a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x591c8f)[_0x3d175a([0x73,0x6f,0x72,0x74])]()[_0x3d175a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2afbe6,_0x2460f7])=>{_0x4cd73f(_0x2afbe6),_0x5cd97d(_0x2460f7);}):_0x4cd73f(window[_0x3d175a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x591c8f));}return _0x5cd97d(_0x28331f),_0x5656c8>>>0x0;}function _0x3a493e(_0x251cbf){return _0x251cbf[_0x3d175a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d175a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d175a([0x30]));}function _0x2c5767(_0x434c1e){return _0x434c1e[_0x3d175a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d175a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d175a([0x6a,0x6f,0x69,0x6e])]('');}function _0x2944f0(_0x3c0555){return _0x104d21[_0x3d175a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d175a([0x68,0x61,0x73])](_0x3c0555);}function _0x2c236e(_0x422b0a){return _0x104d21[_0x3d175a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d175a([0x67,0x65,0x74])](_0x422b0a);}function _0x880db0(){}function _0x3d175a(_0x4f214d){return _0x4f214d['map'](_0x5bf133=>String['fromCharCode'](_0x5bf133))['join']('');}_0x2d57d5(await _0x4cacac());}(this);}['createRevision'](_0x349d0e){const _0x196e59=this['editor']['plugins']['get']('Users');return new h({'id':_0x349d0e['id'],'name':_0x349d0e['name'],'creator':_0x349d0e['creatorId']?_0x196e59['getUser'](_0x349d0e['creatorId']):null,'diffData':_0x349d0e['diffData']||_0x349d0e['data'],'authors':_0x349d0e['authorsIds']['map'](_0x3070a3=>_0x196e59['getUser'](_0x3070a3)),'createdAt':new Date(_0x349d0e['createdAt']),'attributes':_0x349d0e['attributes'],'fromVersion':_0x349d0e['fromVersion'],'toVersion':_0x349d0e['toVersion']});}['addRevision'](_0x389e70,_0x1917b6=0x0){this['_revisions']['add'](_0x389e70,_0x1917b6);}['getRevision'](_0x15ad21){return this['_revisions']['get'](_0x15ad21);}['getRevisions'](_0x5b8077={'toJSON':!0x1}){const _0x5f0316=Array['from'](this['_revisions']);return _0x5f0316['reverse'](),_0x5b8077['toJSON']?_0x5f0316['map'](_0x2f4028=>_0x2f4028['toJSON']()):_0x5f0316;}['getIndex'](_0x737c7d){return this['_revisions']['getIndex'](_0x737c7d);}['getEarlierVisibleRevision'](_0x3d8d8f){const [,_0x1f8176]=this['getRevisionsIterator'](_0x3d8d8f,{'direction':'earlier'});return _0x1f8176;}['getLaterVisibleRevision'](_0x3197ce){const [,_0x3cae04]=this['getRevisionsIterator'](_0x3197ce,{'direction':'later'});return _0x3cae04;}['getRevisionsInDiff'](_0x526a18){const _0x31af89=[];for(const _0x52b4c4 of this['getRevisionsIterator'](_0x526a18['newRevisionId']))if(_0x31af89['push'](_0x52b4c4),_0x52b4c4['id']===_0x526a18['oldRevisionId'])break;return _0x31af89;}*['getRevisionsIterator'](_0x399d4c,{direction:_0x32ba7e='earlier',filter:_0x434733=()=>!0x0}={}){const _0x2f8659='earlier'===_0x32ba7e?0x1:-0x1;let _0x2c07a7=this['_revisions']['get'](_0x399d4c),_0xc9733e=this['getIndex'](_0x2c07a7);for(yield _0x2c07a7;_0x2c07a7;){if(_0xc9733e+=_0x2f8659,_0x2c07a7=this['getRevision'](_0xc9733e),!_0x2c07a7)return;_0x434733(_0x2c07a7)&&(yield _0x2c07a7);}}}class V extends _0x4eb38d{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x409962,'c'],[_0x503f33,'a'],[_0x2d2880,'e'],[_0x4eedab,'r'],[_0xcc1b16,'u']]);['_typeCharToViewClass']=new Map([['c',_0x409962],['a',_0x503f33],['e',_0x2d2880],['r',_0x4eedab],['u',_0xcc1b16]]);async['loadRevisionData'](_0x23e6f9,_0x3543be){if(_0x23e6f9['diffData']||!_0x3543be)return;const _0x2931ad=this['editor']['config']['get']('collaboration.channelId'),_0x497ba9=await _0x3543be['getRevision']({'channelId':_0x2931ad,'revisionId':_0x23e6f9['id']});_0x23e6f9['diffData']=_0x497ba9['diffData'];}['getRevisionDocumentData'](_0x1424d8){const _0x2e6eb8={};for(const _0x44be52 in _0x1424d8['diffData']){if(_0x1424d8['diffData'][_0x44be52]['attachChange']&&!_0x1424d8['diffData'][_0x44be52]['attachChange']['isAttached'])continue;const _0xd6442a=this['_removeRevisionMarkers'](JSON['parse'](_0x1424d8['diffData'][_0x44be52]['insertions'])),_0x579880=this['editor']['editing']['view']['document'],_0xed6f82=new _0x5e4606(_0x579880,_0xd6442a['map'](_0x32dd78=>this['_getViewFromDiffObj'](_0x32dd78,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2e6eb8[_0x44be52]=this['editor']['data']['processor']['toData'](_0xed6f82),this['editor']['data']['processor']['useFillerType']('default');}return _0x2e6eb8;}['getRevisionRootsAttributes'](_0x104026){const _0x5bc8e6={};for(const _0x1f4f3b in _0x104026['diffData'])_0x104026['diffData'][_0x1f4f3b]['attachChange']&&!_0x104026['diffData'][_0x1f4f3b]['attachChange']['isAttached']||(_0x5bc8e6[_0x1f4f3b]=_0x104026['diffData'][_0x1f4f3b]['attributesAfter']||{});return _0x5bc8e6;}['_getTypeCharForViewElement'](_0x2e5ac7){return this['_viewClassToTypeChar']['get'](_0x2e5ac7['constructor']);}['_getViewFromDiffObj'](_0x3d5a0f,_0x1283dc){const _0x23d038=this['editor']['editing']['view']['document'];if('string'==typeof _0x3d5a0f)return new _0x517936(_0x23d038,_0x3d5a0f);{let _0x25d1ee,_0x1820cf;_0x1820cf='u'==_0x3d5a0f['type']||'r'==_0x3d5a0f['type']?[]:_0x3d5a0f['children']['map'](_0x493650=>this['_getViewFromDiffObj'](_0x493650,_0x1283dc));const _0x534d5b=this['_typeCharToViewClass']['get'](_0x3d5a0f['type'])||_0x33b42d,_0x2a958d=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x25d1ee=new _0x534d5b(_0x23d038,_0x3d5a0f['name'],_0x3d5a0f['attributes'],_0x1820cf),'u'==_0x3d5a0f['type']&&_0x3d5a0f['children'][0x0]){const _0xe5738b=_0x3d5a0f['children'][0x0];if(_0x25d1ee['render']=function(_0x1dc7d2){const _0x16d0ce=_0x1dc7d2['createElement']('div');return _0x16d0ce['innerHTML']=_0xe5738b,_0x16d0ce['childNodes'][0x0];},_0x1283dc){const _0x9eaab1=new _0x5e4606(_0x23d038);_0x9eaab1['_appendChild'](_0x25d1ee);const _0x7b74b4=Array['from'](_0x2a958d['viewChildrenToDom'](_0x9eaab1,{'bind':!0x1})),_0x5a2f92=_0x2a958d['domDocument']['createElement']('div');_0x5a2f92['append'](..._0x7b74b4),_0x25d1ee=Array['from'](_0x2a958d['domChildrenToView'](_0x5a2f92))[0x0];}}else{if('r'==_0x3d5a0f['type']&&_0x3d5a0f['children'][0x0]){const _0x25c1ae=_0x3d5a0f['children'][0x0];if(_0x25d1ee['render']=function(_0x26c004){_0x26c004['innerHTML']=_0x25c1ae;},_0x1283dc){const _0x404807=new _0x5e4606(_0x23d038);_0x404807['_appendChild'](_0x25d1ee);const _0x655ab7=Array['from'](_0x2a958d['viewChildrenToDom'](_0x404807,{'bind':!0x1})),_0x2e549d=_0x2a958d['domDocument']['createElement']('div');_0x2e549d['append'](..._0x655ab7);const _0x8e9dad=Array['from'](_0x2a958d['domChildrenToView'](_0x2e549d));_0x8e9dad['length']>0x1?_0x25d1ee['_appendChild'](_0x8e9dad):_0x25d1ee=_0x8e9dad[0x0];}}}if(_0x3d5a0f['customProperties']){for(const [_0x59cc7a,_0x3ae9a5]of _0x3d5a0f['customProperties'])_0x25d1ee['_setCustomProperty'](_0x59cc7a,_0x3ae9a5);}const _0x22b58e=void 0x0===_0x3d5a0f['fillerOffset']?null:_0x3d5a0f['fillerOffset'];return null!==_0x22b58e&&(_0x25d1ee['getFillerOffset']=()=>_0x22b58e),_0x25d1ee;}}['_makeModelFromViewString'](_0x386ae1){const _0x3b4ab4=JSON['parse'](_0x386ae1),_0x11b5ae=this['editor']['editing']['view']['document'],_0x5d6433=new _0x5e4606(_0x11b5ae,_0x3b4ab4['map'](_0x4c4b61=>this['_getViewFromDiffObj'](_0x4c4b61,!0x0)));return this['editor']['data']['toModel'](_0x5d6433);}['_removeRevisionMarkers'](_0x3bcd81){return(_0x3bcd81=_0x3bcd81['filter'](_0x52f53d=>!_0x52f53d['name']||'revision-start'!==_0x52f53d['name']&&'revision-end'!==_0x52f53d['name']))['forEach'](_0x213966=>{'string'!=typeof _0x213966&&(_0x213966['children']=this['_removeRevisionMarkers'](_0x213966['children']),_0x213966['attributes']=_0x213966['attributes']['filter'](_0x2e06f4=>!_0x2e06f4[0x0]['startsWith']('data-revision-')));}),_0x3bcd81;}}function g(_0x3ba82f,_0x5a4b1c,_0x3ae338){const t=_0x3ba82f['t'];switch(_0x5a4b1c){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'},_0x3ae338);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3ae338);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 _0x4eb38d{['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[_0x266938,I,V,_0x38da1f];}constructor(_0x20cc1e){super(_0x20cc1e),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 _0x54feb8=_0x423624();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x54feb8},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 _0x5395ae=this['repository']['getRevision'](0x0),_0x3db3b1=_0x5395ae&&null===_0x5395ae['creator']?_0x5395ae:null;if(this['_continueCurrentRevision']=!!_0x3db3b1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1da84c=this['_source']['getCurrentRevisionId'](),_0x3b1346=this['repository']['getRevision'](_0x1da84c);if(_0x3b1346)this['_startingVersion']=_0x3b1346['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4c01cf=this['_source']['history']['_operations']['find'](_0x57d859=>!_0x57d859['_isInit']),_0x18dcc8=_0x4c01cf?_0x4c01cf['baseVersion']:this['_source']['history']['version'];_0x5395ae?(_0x5395ae['toVersion']<_0x18dcc8&&_0x5395ae['_update']({'toVersion':_0x18dcc8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3db3b1['id'],this['_startingVersion']=_0x3db3b1['fromVersion']):(this['_startingVersion']=_0x5395ae['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x18dcc8,this['_continueCurrentRevision']=!0x1);}}else _0x3db3b1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3db3b1['toVersion'],this['editor']['model']['document']['history']['version']),_0x3db3b1['fromVersion']===_0x3db3b1['toVersion']?(0x0!==_0x3db3b1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3db3b1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3db3b1['id'],this['_startingVersion']=_0x3db3b1['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',_0x5a46c7=>!_0x5a46c7),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x404840=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc1363b;for(const _0x3c20f6 in _0x404840){const _0x191b67=_0x3c20f6,_0xa8b075=_0x404840[_0x191b67];if('revisionHistoryLicenseKeyValid'==_0xa8b075||'revisionHistoryLicenseKeyInvalid'==_0xa8b075||'revisionHistoryLicenseKeyExpired'==_0xa8b075||'revisionHistoryLicenseKeyDomainLimit'==_0xa8b075||'revisionHistoryLicenseKeyNotAllowed'==_0xa8b075||'revisionHistoryLicenseKeyEvaluationLimit'==_0xa8b075||'revisionHistoryLicenseKeyTrialLimit'==_0xa8b075||'revisionHistoryLicenseKeyUsageLimit'==_0xa8b075){delete _0x404840[_0x191b67],_0xc1363b=_0xa8b075,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xc1363b&&_0x404840['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xc1363b&&_0x404840['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xc1363b&&_0x404840['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xc1363b&&_0x404840['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xc1363b&&_0x404840['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xc1363b&&_0x404840['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xc1363b&&_0x404840['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x58c924=this['repository']['getRevision'](0x0),_0x139355=await this['getRevisionDocumentData'](_0x58c924),_0x1857ef=await this['getRevisionRootsAttributes'](_0x58c924);this['_replaceEditorDataWithRevisionData'](_0x139355,_0x1857ef);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x290be3){this['_source']=_0x290be3;}async['update'](){const _0x2f7270=await this['_source']['getLatestVersion']();if(_0x2f7270>this['currentRevision']['toVersion']){await this['_loadState']();const _0x25ee37=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2f7270});_0x25ee37['authors']=_0x25ee37['authorsIds']['map'](_0x3a7f97=>this['editor']['plugins']['get']('Users')['getUser'](_0x3a7f97)),this['currentRevision']['_update'](_0x25ee37);}}async['saveRevision'](_0x16cbb2={},_0x328ced=null){const _0x307951=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x328ced>this['currentRevision']['toVersion']&&(_0x328ced=null),null===_0x328ced&&(_0x328ced=await this['_source']['getLatestVersion']());const _0xbf484d=this['_getFromVersion'](_0x328ced),_0x2a1d29=this['buildRevisionData']({'from':_0xbf484d,'to':_0x328ced});if(this['currentRevision']['toVersion']<_0x328ced){const _0x52dff3=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x328ced,'to':_0x328ced});_0x52dff3['authors']=[],_0x52dff3['authorsIds']=[],_0x52dff3['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x52dff3,!0x0),delete _0x52dff3['authors'],_0x307951['push'](_0x52dff3);}_0x16cbb2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x16cbb2['name']=_0x16cbb2['name']||null,_0x16cbb2['id']=_0x16cbb2['id']||_0x423624(),_0x16cbb2={..._0x16cbb2,..._0x2a1d29};const _0x5e36fa=this['addRevisionData'](_0x16cbb2);_0x307951['push'](_0x16cbb2);const _0x3370c7=this['repository']['getIndex'](_0x5e36fa);if(0x0!==_0x3370c7){const _0x25120b=this['repository']['getRevision'](_0x3370c7-0x1);if(_0x25120b['fromVersion']!==_0x328ced){const _0x440c9b=this['_revisionDataBuilder']['getData'](_0x328ced,_0x25120b['toVersion']),_0x584a3d={'id':_0x25120b['id'],'diffData':_0x440c9b['diffData'],'authorsIds':_0x440c9b['authorsIds'],'authors':_0x440c9b['authorsIds']['map'](_0x3919e3=>this['editor']['plugins']['get']('Users')['getUser'](_0x3919e3)),'fromVersion':_0x328ced};_0x25120b===this['currentRevision']&&(_0x584a3d['createdAt']=new Date(_0x16cbb2['createdAt']['getTime']()+0xa)),_0x25120b['_update'](_0x584a3d,!0x0),delete _0x584a3d['authors'],_0x307951['push'](_0x584a3d);}}if(this['adapter']){for(const _0x51027f of _0x307951)this['_bufferUpdate'](_0x51027f['id'],_0x51027f,!0x0);this['sendBufferedUpdates']();}return _0x5e36fa;}['addRevisionData'](_0x233c7c){const _0x4be550=this['repository']['createRevision'](_0x233c7c);return this['adapter']&&_0x4be550['on']('_update',(_0x136904,_0x750133,_0x26b4e8)=>{_0x26b4e8||(this['_bufferUpdate'](_0x750133['id'],_0x750133,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4be550,this['_findInsertionIndex'](_0x4be550)),_0x4be550;}async['getRevisionDocumentData'](_0x4c67be){return await this['_utils']['loadRevisionData'](_0x4c67be,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4c67be);}async['getRevisionRootsAttributes'](_0x3f4f7){return await this['_utils']['loadRevisionData'](_0x3f4f7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3f4f7);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x530b94=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5601d2=0x0;_0x5601d2<_0x530b94['length'];_0x5601d2++){const _0x2a43e5=_0x530b94[_0x5601d2];let _0x493f70=!0x1;for(const _0x33425c of Object['keys'](_0x2a43e5))void 0x0===_0x2a43e5[_0x33425c]?delete _0x2a43e5[_0x33425c]:'id'!==_0x33425c&&(_0x493f70=!0x0);_0x493f70||(_0x530b94[_0x5601d2]=null);}if(_0x530b94=_0x530b94['filter'](_0x2379c8=>null!==_0x2379c8),!_0x530b94['length'])return;for(let _0x441e47=0x0;_0x441e47<_0x530b94['length'];_0x441e47++){const _0x478a22=_0x530b94[_0x441e47];void 0x0!==_0x478a22['fromVersion']&&void 0x0===_0x478a22['toVersion']&&(_0x478a22['toVersion']=this['repository']['getRevision'](_0x478a22['id'])['toVersion']),void 0x0!==_0x478a22['toVersion']&&void 0x0===_0x478a22['fromVersion']&&(_0x478a22['fromVersion']=this['repository']['getRevision'](_0x478a22['id'])['fromVersion']);}const _0x40d3fa=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x530b94,_0x40d3fa)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x36a17d=>{if(_0x36a17d){for(const _0x58e9df of _0x36a17d)this['setRevisionData']({'id':_0x58e9df['id'],'createdAt':_0x58e9df['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2850ef=null,from:_0x324285=null,to:_0x2fbb89=null}){_0x324285=null!==_0x324285?_0x324285:_0x2850ef['fromVersion'],_0x2fbb89=null!==_0x2fbb89?_0x2fbb89:_0x2850ef['toVersion'];const _0x3f7656=this['_revisionDataBuilder']['getData'](_0x324285,_0x2fbb89),_0x12929f={'diffData':_0x3f7656['diffData'],'authorsIds':_0x3f7656['authorsIds'],'fromVersion':_0x324285,'toVersion':_0x2fbb89};if(!_0x2850ef||_0x2fbb89!==_0x2850ef['toVersion']){const _0x1fed77=_0x2fbb89-0x1,_0x4e9488=this['_source']['history']['getOperation'](_0x1fed77);_0x12929f['createdAt']=_0x4e9488&&_0x4e9488['createdAt']||new Date();}if(this['_loadedStateData']&&_0x324285===this['_loadedStateData']['fromVersion']){for(const _0x12a9f5 of this['_loadedStateData']['authors'])_0x12929f['authorsIds']['includes'](_0x12a9f5['id'])||_0x12929f['authorsIds']['push'](_0x12a9f5['id']);}return _0x12929f;}['_bufferUpdate'](_0x38ac19,_0xa02a4b,_0x17f241){if(this['_bufferedUpdates']['has'](_0x38ac19)){const _0x4ed969=this['_bufferedUpdates']['get'](_0x38ac19);_0xa02a4b=_0x17f241?{..._0x4ed969,..._0xa02a4b}:{..._0xa02a4b,..._0x4ed969};}this['_bufferedUpdates']['set'](_0x38ac19,_0xa02a4b);}['setRevisionData'](_0x31ff24){const _0x351f0a=this['repository']['getRevision'](_0x31ff24['id']);if(_0x31ff24['createdAt']&&(_0x31ff24['createdAt']=new Date(_0x31ff24['createdAt'])),_0x31ff24['authorsIds']){const _0x22c654=this['editor']['plugins']['get']('Users');_0x31ff24['authors']=_0x31ff24['authorsIds']['map'](_0x3d2fb5=>_0x22c654['getUser'](_0x3d2fb5));}_0x351f0a['_update'](_0x31ff24,!0x0);}['_createInitialRevision'](_0x100e12){const _0x17981e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x17981e)this['_initialRevisionId']=_0x17981e['id'];else{const _0x2ee02f=!this['editor']['model']['document']['roots']['find'](_0x1bb0fd=>this['editor']['model']['hasContent'](_0x1bb0fd)),_0x1c67ee=this['editor']['plugins']['get']('Users')['me']['id'],_0x45cac1=g(this['editor']['locale'],_0x2ee02f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x100e12,'to':_0x100e12,'id':this['_initialRevisionId'],'name':_0x45cac1,'creatorId':_0x1c67ee});}}['_createCurrentRevision'](_0x3b5b3f){const _0x2e6777=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2e6777),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3b5b3f,'to':_0x3b5b3f,'id':_0x2e6777,'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'](_0xbaa2d8,_0x148a33){let _0x47fdd6=this['editor']['config']['get']('initialData'),_0x31c562=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x47fdd6){_0x47fdd6={};for(const _0x1b1466 of this['editor']['model']['document']['getRootNames']())_0x47fdd6[_0x1b1466]='';}if('string'==typeof _0x47fdd6&&(_0x47fdd6={'main':_0x47fdd6}),void 0x0===_0x31c562){_0x31c562={};for(const _0x5a9419 of this['editor']['model']['document']['getRootNames']())_0x31c562[_0x5a9419]={};}let _0x52e2fa=!0x1;const _0xe5f943=Object['keys'](_0x47fdd6),_0x2fc0bf=Object['keys'](_0xbaa2d8);for(const _0x594672 of _0xe5f943){if(_0x47fdd6[_0x594672]!==_0xbaa2d8[_0x594672]&&''!==_0x47fdd6[_0x594672]['trim']()){_0x52e2fa=!0x0;break;}if(!_0x3b0ba1(_0x31c562[_0x594672],_0x148a33[_0x594672])&&Object['keys'](_0x31c562[_0x594672])['length']>0x0){_0x52e2fa=!0x0;break;}}_0x52e2fa||(_0x52e2fa=_0x2fc0bf['some'](_0x12ad57=>!this['editor']['model']['document']['getRoot'](_0x12ad57))),_0x52e2fa&&_0x970719('editor-initial-data-replaced-with-revision-data',{'editorData':_0x47fdd6,'editorRootsAttributes':_0x31c562,'revisionData':_0xbaa2d8,'revisionRootsAttributes':_0x148a33}),this['editor']['config']['set']('initialData',_0xbaa2d8),this['editor']['config']['set']('rootsAttributes',_0x148a33);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x280701=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x280701['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4627fb){const _0x536e8c=this['repository']['getRevisions']();_0x536e8c['reverse']();let _0x1c22b3=0x0;for(;_0x1c22b3<_0x536e8c['length'];){const _0x3cc433=_0x536e8c[_0x1c22b3];if(_0x3cc433===this['currentRevision']){_0x1c22b3++;continue;}if(_0x3cc433['id']===this['_initialRevisionId'])break;const _0x51140d=_0x4627fb['toVersion']-_0x3cc433['toVersion']||_0x4627fb['fromVersion']-_0x3cc433['fromVersion'];if(_0x51140d>0x0)break;if(_0x51140d<0x0)_0x1c22b3++;else{if(!_0x4627fb['creator']&&_0x3cc433['creator'])break;if(_0x3cc433['creator']||!_0x4627fb['creator']){if(_0x4627fb['createdAt']>_0x3cc433['createdAt'])break;_0x1c22b3++;}else _0x1c22b3++;}}return _0x1c22b3;}['_getFromVersion'](_0x2e8a9d){const _0x521e44=this['repository']['getRevisions']();_0x521e44['reverse'](),_0x521e44['shift']();const _0x322afd=_0x521e44['find'](_0x47d3dc=>_0x47d3dc['toVersion']<=_0x2e8a9d)['toVersion'];return _0x322afd<this['_startingVersion']?this['_startingVersion']:_0x322afd;}['_makeRevision']({name:_0x30a231,from:_0x245615,to:_0x1af53e,creatorId:_0x581f13,id:_0x22c85f}){const _0x9b0d60=this['buildRevisionData']({'from':_0x245615,'to':_0x1af53e});_0x9b0d60['name']=_0x30a231,_0x9b0d60['creatorId']=_0x581f13,_0x9b0d60['id']=_0x22c85f;const _0x5c4215=this['addRevisionData'](_0x9b0d60);return this['adapter']&&this['_bufferUpdate'](_0x9b0d60['id'],_0x9b0d60,!0x0),_0x5c4215;}['_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(_0x1e5b09){this['editor']=_0x1e5b09,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'](_0x3d62a9){this['source']=_0x3d62a9;const _0x48ea27=new Map(),_0x32df0e=new Map(),_0x5ab65e=this['editor']['model']['document']['roots']['map'](_0x4de44b=>_0x4de44b['rootName']);for(const _0x4027b7 of _0x5ab65e){const _0x243b53=this['editor']['model']['document']['getRoot'](_0x4027b7),_0x2b91e6=N(_0x243b53);_0x48ea27['set'](_0x4027b7,_0x2b91e6),_0x32df0e['set'](_0x4027b7,Object['fromEntries'](_0x243b53['getAttributes']()));}const _0x6fc51e=Array['from'](this['editor']['model']['markers'])['map'](_0x2f2d68=>[_0x2f2d68['name'],_0x2f2d68['getRange']()]),_0x5db6c2=this['source']['version'];this['_saveMetaData'](_0x5db6c2,_0x48ea27,_0x6fc51e,_0x32df0e),this['_startingRevisionId']=this['_revisionId'];const _0x1844d1=new Map(),_0x1c1f48=new Map();for(const _0x5f172b of _0x5ab65e){const _0x669a2b=P(_0x5f172b);_0x1844d1['set'](_0x5f172b,_0x669a2b),_0x1c1f48['set'](_0x5f172b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1844d1,[],_0x1c1f48);}['getData'](_0x2f577d,_0x26e04b){if(this['_lastFrom']===_0x2f577d&&this['_lastTo']<=_0x26e04b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x26e04b,!0x0);else{if(!this['_savedMetaData']['has'](_0x2f577d)){const _0x2c6da7=this['_getPreviousFrom'](_0x2f577d);this['_calculateMetaData'](_0x2c6da7,_0x2f577d,!0x1);}this['_calculateMetaData'](_0x2f577d,_0x26e04b,!0x0);}return this['_lastFrom']=_0x2f577d,this['_lastTo']=_0x26e04b,this['_getState']();}['loadState'](_0x7ce66e){const _0x3c7de6=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x7ce66e['fromVersion'],this['_lastTo']=_0x7ce66e['toVersion'];for(const _0xb09ddb in _0x7ce66e['diffData']){const _0x201798=_0x7ce66e['diffData'][_0xb09ddb]['attachChange'],_0xf220a2=_0xf4506f(_0x7ce66e['diffData'][_0xb09ddb]['attributesBefore'])||{},_0x4c9009=_0x3c7de6['_makeModelFromViewString'](_0x7ce66e['diffData'][_0xb09ddb]['deletions']);_0x4c9009['rootName']=_0xb09ddb,_0x4c9009['_isAttached']=!_0x201798||!_0x201798['isAttached'],_0x4c9009['isAttached']=()=>_0x4c9009['_isAttached'],this['_baseRoots']['set'](_0xb09ddb,_0x4c9009),this['_baseRootsAttributes']['set'](_0xb09ddb,_0xf220a2),_0x201798&&this['_touchedRoots']['set'](_0xb09ddb,_0x201798);const _0x748320=this['_makeIdsRoot'](_0x4c9009);this['_baseIdsRoots']['set'](_0xb09ddb,_0x748320);for(const [_0x629435,_0x2bf00c]of _0x4c9009['markers']){if(!_0x629435['startsWith']('revision:'))continue;const _0x470592=_0x629435['split'](':')[0x2];for(const _0x5a0b44 of _0x2bf00c['getWalker']({'singleCharacters':!0x0})){const _0x328e74=this['_getVidAttributeName'](_0x5a0b44),_0x1d7fe0='elementEnd'==_0x5a0b44['type']?_0x5a0b44['previousPosition']['path']['slice'](0x0,-0x1):_0x5a0b44['previousPosition']['path'],_0x36a220=_0x748320['getNodeByPath'](_0x1d7fe0)['getAttribute'](_0x328e74);this['_touched']['set'](_0x36a220,{'userId':_0x470592});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1b07af=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x27f3a7=>!this['_touched']['has'](_0x27f3a7));let _0x28ff27=0x0;const _0x2cd200=new Map();for(const _0x462f8c in _0x7ce66e['diffData']){const _0x3a46f4=_0x7ce66e['diffData'][_0x462f8c]['attachChange'],_0x274ca6=_0xf4506f(_0x7ce66e['diffData'][_0x462f8c]['attributesAfter'])||{},_0x37f200=_0x3c7de6['_makeModelFromViewString'](_0x7ce66e['diffData'][_0x462f8c]['insertions']);_0x37f200['rootName']=_0x462f8c,_0x37f200['_isAttached']=!_0x3a46f4||_0x3a46f4['isAttached'],_0x37f200['isAttached']=()=>_0x37f200['_isAttached'],this['_diffRoots']['set'](_0x462f8c,_0x37f200),this['_diffRootsAttributes']['set'](_0x462f8c,_0x274ca6);const _0x25495f=this['_makeIdsRoot'](_0x37f200,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x462f8c,_0x25495f),_0x2cd200['set'](_0x462f8c,_0x37f200['isAttached']()?_0x274ca6:{});for(const [_0xe2620a,_0x466db1]of _0x37f200['markers']){if(!_0xe2620a['startsWith']('revision:'))continue;const _0x29714f=_0xe2620a['split'](':')[0x2];for(const _0x364672 of _0x466db1['getWalker']({'singleCharacters':!0x0})){const _0x1c16e1=this['_getVidAttributeName'](_0x364672),_0x5eca2d=this['_revisionId']++,_0x10ca97='elementEnd'==_0x364672['type']?_0x364672['previousPosition']['path']['slice'](0x0,-0x1):_0x364672['previousPosition']['path'];_0x25495f['getNodeByPath'](_0x10ca97)['_setAttribute'](_0x1c16e1,_0x5eca2d),this['_touched']['set'](_0x5eca2d,{'userId':_0x29714f});}}for(const _0x2c7b89 of this['editor']['model']['createRangeIn'](_0x37f200)['getWalker']({'singleCharacters':!0x0})){const _0x14a29a=this['_getVidAttributeName'](_0x2c7b89),_0x498e50='elementEnd'==_0x2c7b89['type']?_0x2c7b89['previousPosition']['path']['slice'](0x0,-0x1):_0x2c7b89['previousPosition']['path'],_0x437670=_0x25495f['getNodeByPath'](_0x498e50);_0x437670['getAttribute'](_0x14a29a)>0x0||_0x437670['_setAttribute'](_0x14a29a,_0x1b07af[_0x28ff27++]);}for(const [_0x46ebe9,_0x19d563]of _0x37f200['markers'])_0x46ebe9['startsWith']('revision:')||this['_markers']['set'](_0x46ebe9,_0x19d563);}const _0x17c4b9=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x17c4b9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x17c4b9,0x1));const _0x37662b=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x37662b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x37662b,0x1));const _0x10913c=Array['from'](this['_diffRoots'])['map'](([_0xca4a5e,_0x40185c])=>[_0xca4a5e,N(_0x40185c)]);this['_saveMetaData'](this['_lastTo'],_0x10913c,this['_markers'],_0x2cd200);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x3f5573,_0xac61f5,_0x3c8d19,_0x4603a9){const _0x4b3df6=new Map(_0xac61f5),_0x431be1=new Map(_0xf4506f(_0x4603a9)),_0x52a91f=new Map();for(const [_0x35d28e,_0x30af4e]of _0x3c8d19)_0x52a91f['set'](_0x35d28e,{'start':_0x30af4e['start']['clone'](),'end':_0x30af4e['end']['clone'](),'rootName':_0x30af4e['root']['rootName']});this['_savedMetaData']['set'](_0x3f5573,{'roots':_0x4b3df6,'markers':_0x52a91f,'rootsAttributes':_0x431be1});}['_removeMetaData'](_0x449a9f){this['_savedMetaData']['delete'](_0x449a9f);}['_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'](_0x313966,_0x310cbf=null){let _0x56d613=null;_0x313966['is']('documentFragment')||(_0x56d613=new ut(_0x313966['name'],{'vid_start':null===_0x310cbf?this['_revisionId']++:_0x310cbf++}));const _0x584058=[];for(const _0x665f52 of _0x313966['getChildren']())if(_0x665f52['is']('element')){_0x584058['push'](this['_makeIdsRoot'](_0x665f52,_0x310cbf));const _0xce2e7=_0x584058[_0x584058['length']-0x1];null!==_0x310cbf&&(_0x310cbf=_0xce2e7['is']('element','$text')?_0xce2e7['getAttribute']('vid')+0x1:_0xce2e7['getAttribute']('vid_end')+0x1);}else{for(let _0x2a6e6c=0x0;_0x2a6e6c<_0x665f52['offsetSize'];_0x2a6e6c++)_0x584058['push'](new ut('$text',{'vid':null===_0x310cbf?this['_revisionId']++:_0x310cbf++}));}if(_0x313966['is']('documentFragment')){const _0x146df8=P(_0x313966['rootName']);return _0x146df8['_insertChild'](0x0,_0x584058),_0x146df8;}return _0x56d613['_setAttribute']('vid_end',null===_0x310cbf?this['_revisionId']++:_0x310cbf++),_0x56d613['_insertChild'](0x0,_0x584058),_0x56d613;}['_calculateMetaData'](_0x16831e,_0x37264b,_0x3c5424){this['_reset']();const {roots:_0x2cd6d9,markers:_0x5bd229,rootsAttributes:_0x16bbab}=this['_savedMetaData']['get'](_0x16831e);this['_baseRoots']=new Map(_0x2cd6d9),this['_baseRootsAttributes']=new Map(_0xf4506f(_0x16bbab));for(const [_0x4d492a,_0x1464da]of this['_baseRoots'])if('$graveyard'!==_0x4d492a&&(this['_diffRoots']['set'](_0x4d492a,N(_0x1464da)),this['_diffRootsAttributes']=new Map(_0xf4506f(_0x16bbab)),_0x3c5424)){const _0x3f4f8e=this['_revisionId'];this['_idsRoots']['set'](_0x4d492a,this['_makeIdsRoot'](_0x1464da)),this['_baseIdsRoots']['set'](_0x4d492a,this['_makeIdsRoot'](_0x1464da,_0x3f4f8e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x3c5424&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x8ce38,_0xb5dac5]of _0x5bd229){const _0x2e24df=this['_baseRoots']['get'](_0xb5dac5['rootName']),_0x41be12=this['_diffRoots']['get'](_0xb5dac5['rootName']),_0x336ac3=new ft(this['_fixPosition'](_0xb5dac5['start'],_0x2e24df),this['_fixPosition'](_0xb5dac5['end'],_0x2e24df)),_0x58272d=this['_fixRange'](_0x336ac3,_0x41be12);_0x2e24df['markers']['set'](_0x8ce38,_0x336ac3),this['_markers']['set'](_0x8ce38,_0x58272d);}this['_applyOperations'](_0x16831e,_0x37264b,_0x3c5424);}['_applyOperations'](_0x3b9ae8,_0xc2c52d,_0x3e41b5){for(const _0x585284 of this['source']['getOperations'](_0x3b9ae8,_0xc2c52d))this['_handleOperation'](_0x585284,_0x3e41b5);for(const _0x4daf40 of this['_diffRoots']['values']())_0x4daf40['markers']['clear']();for(const [_0x4d8ebe,_0x525f52]of this['_markers']){this['_diffRoots']['get'](_0x525f52['root']['rootName'])['markers']['set'](_0x4d8ebe,_0x525f52['clone']());}const _0x96a970=new Map(),_0x239e2c=new Map();for(const [_0x238456,_0x2d0ddd]of this['_diffRoots'])_0x96a970['set'](_0x238456,N(_0x2d0ddd)),_0x239e2c['set'](_0x238456,this['_diffRootsAttributes']['get'](_0x238456));this['_saveMetaData'](_0xc2c52d,_0x96a970,this['_markers'],_0x239e2c);}['_getPreviousFrom'](_0x2d970b){const _0x4be1c5=Array['from'](this['_savedMetaData']['keys']());_0x4be1c5['sort']((_0x202722,_0x61a83)=>_0x202722-_0x61a83),_0x4be1c5['reverse']();for(const _0x274262 of _0x4be1c5)if(_0x274262<_0x2d970b)return _0x274262;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x17b145,_0x1594d4){const _0x18604c=Array['from'](_0x1594d4['markers'])['map'](([_0x1d2e8b,_0x492fa5])=>[_0x1d2e8b,this['_fixRange'](_0x492fa5,_0x17b145)]);_0x17b145['markers']=new Map(_0x18604c);}['_transformMarkers'](_0xe24fd8){for(const _0x5b4c86 of this['_markers']['values']()){const _0x3f49ee=_0x5b4c86['getTransformedByOperation'](_0xe24fd8),_0x59ac65=ft['_createFromRanges'](_0x3f49ee);_0x5b4c86['start']=_0x59ac65['start'],_0x5b4c86['end']=_0x59ac65['end'];}}['_handleOperation'](_0x2035e9,_0x115e27){if('addRoot'!=_0x2035e9['type']&&'detachRoot'!=_0x2035e9['type']){if('insert'==_0x2035e9['type']){const _0x5bdaff=_0x2035e9['position']['root']['rootName'];this['_diffRoots']['has'](_0x5bdaff)||(this['_diffRoots']['set'](_0x5bdaff,P(_0x5bdaff,!0x0)),this['_diffRootsAttributes']['set'](_0x5bdaff,{}),_0x115e27&&this['_idsRoots']['set'](_0x5bdaff,P(_0x5bdaff,!0x0)));}else{if('addRootAttribute'==_0x2035e9['type']||'removeRootAttribute'==_0x2035e9['type']||'changeRootAttribute'==_0x2035e9['type'])return void this['_handleRootAttributeOperation'](_0x2035e9);'marker'==_0x2035e9['type']&&this['_handleMarkerOperation'](_0x2035e9);}if('marker'!==_0x2035e9['type']){const _0x3e1f18=this['_cloneOperation'](_0x2035e9,this['_diffRoots']);_0x3e1f18['_execute'](),this['_transformMarkers'](_0x3e1f18);}if(_0x115e27)switch(_0x2035e9['type']){case'insert':this['_handleInsertOperation'](_0x2035e9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2035e9);break;case'merge':this['_handleMergeOperation'](_0x2035e9);break;case'split':this['_handleSplitOperation'](_0x2035e9);}}else this['_handleRootOperation'](_0x2035e9,_0x115e27);}['_cloneOperation'](_0x3c02ad,_0x167ff5){const _0x21792=_0x3c02ad['clone']();return _0x21792['_authorId']=_0x3c02ad['_authorId'],this['_fixOperation'](_0x21792,_0x167ff5),_0x21792;}['_getBaseVids'](_0x6fed8d){return _0x6fed8d['map'](_0x59f3bf=>{const _0x45a8d6=this['_getVidAttributeName'](_0x59f3bf);return Number(_0x59f3bf['item']['getAttribute'](_0x45a8d6));});}['_generateTape'](_0x264753,_0x39f317){if(_0x264753['is']('element','$text'))_0x39f317['push']({'item':_0x264753,'type':'text'});else{_0x264753['is']('element')&&_0x39f317['push']({'item':_0x264753,'type':'elementStart'});for(const _0x4d25af of _0x264753['getChildren']())this['_generateTape'](_0x4d25af,_0x39f317);_0x264753['is']('element')&&_0x39f317['push']({'item':_0x264753,'type':'elementEnd'});}return _0x39f317;}['_getState'](){const _0x53dfb3=new Map(this['_touched']),_0x5de64a=new Map(_0x53dfb3),_0x2cae88=new Map(),_0x24a6d9={'insertions':{},'deletions':{}},_0xa08cd0={'insertions':{},'deletions':{}},_0x492df9=new Map(),_0xc6c42e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xc6c42e['delete']('$graveyard');for(const _0x53f949 of _0xc6c42e){const _0x11f9a4=this['_diffRoots']['get'](_0x53f949)||P(_0x53f949,!0x1),_0x53577d=this['_baseRoots']['get'](_0x53f949)||P(_0x53f949,!0x1);_0x11f9a4['isAttached']()||_0x53577d['isAttached']()?(_0x24a6d9['insertions'][_0x53f949]=N(_0x11f9a4),_0x24a6d9['deletions'][_0x53f949]=N(_0x53577d),this['_copyMarkers'](_0x24a6d9['deletions'][_0x53f949],_0x53577d),this['_copyMarkers'](_0x24a6d9['insertions'][_0x53f949],_0x11f9a4),_0xa08cd0['insertions'][_0x53f949]=this['_generateTape'](this['_idsRoots']['get'](_0x53f949),[]),_0xa08cd0['deletions'][_0x53f949]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x53f949)||P(_0x53f949,!0x1),[])):_0xc6c42e['delete'](_0x53f949);}for(const _0x1afdfd of _0xc6c42e){const _0x26d5eb=_0xa08cd0['insertions'][_0x1afdfd];for(const _0x1f9e70 of _0x26d5eb){const _0x2e0002=this['_getVidAttributeName'](_0x1f9e70),_0x92d505=_0x1f9e70['item']['getAttribute'](_0x2e0002);_0x5de64a['delete'](_0x92d505),_0x92d505>=this['_startingRevisionId']&&_0x2cae88['set'](_0x92d505,_0x53dfb3['get'](_0x92d505));}}for(const _0xea9dbc of _0xc6c42e){const _0x1c2145=_0xa08cd0['insertions'][_0xea9dbc],_0x39c26e=this['_getBaseVids'](_0xa08cd0['deletions'][_0xea9dbc]);let _0x41b536=0x0;for(const _0x145ae1 of _0x1c2145){const _0x4fc5f5=this['_getVidAttributeName'](_0x145ae1),_0x4300f3=_0x145ae1['item']['getAttribute'](_0x4fc5f5);if(!_0x2cae88['has'](_0x4300f3)&&!_0x492df9['has'](_0x4300f3)){if(_0x5de64a['has'](_0x4300f3))_0x41b536++;else{if(_0x4300f3!=_0x39c26e[_0x41b536]){const _0x203c8e=_0x53dfb3['get'](_0x4300f3)||_0x53dfb3['get'](_0x39c26e[_0x41b536]);for(;_0x4300f3!=_0x39c26e[_0x41b536];)_0x5de64a['has'](_0x39c26e[_0x41b536])||(_0x492df9['set'](_0x39c26e[_0x41b536],_0x203c8e),_0x53dfb3['set'](_0x39c26e[_0x41b536],_0x203c8e)),_0x41b536++;}_0x41b536++;}}}}for(const _0x280080 of _0xc6c42e){const _0x472eec=_0xa08cd0['insertions'][_0x280080];for(const _0x9606c0 of _0x472eec){const _0x55a2e5=this['_getVidAttributeName'](_0x9606c0),_0xdee1bb=_0x9606c0['item']['getAttribute'](_0x55a2e5);if(_0x492df9['has'](_0xdee1bb)){const _0x96b808=_0x492df9['get'](_0xdee1bb);_0x5de64a['has'](_0xdee1bb)||_0x5de64a['set'](_0xdee1bb,{..._0x96b808}),_0x2cae88['set'](_0xdee1bb,{..._0x96b808});}}}for(const _0x3e37ad of _0x5de64a['keys']())_0x3e37ad>=this['_startingRevisionId']&&_0x5de64a['delete'](_0x3e37ad);const _0xa503c5=new Map();for(const _0xc57dbc of _0xc6c42e){let _0x288e05=_0xa08cd0['insertions'][_0xc57dbc];for(const _0x3229f5 of _0x288e05)if(_0x3229f5['item']['is']('element','tableCell')){const _0x34528f=this['_getVidAttributeName'](_0x3229f5),_0x4daa6f=_0x3229f5['item']['getAttribute'](_0x34528f);if(_0x2cae88['has'](_0x4daa6f)){const _0x43cfb6=_0x3229f5['item']['parent']['parent']['getAttribute']('vid_start'),_0x167214=_0xa503c5['get'](_0x43cfb6)||new Set();_0x167214['add'](_0x2cae88['get'](_0x4daa6f)['userId']),_0xa503c5['set'](_0x43cfb6,_0x167214);}}_0x288e05=_0xa08cd0['deletions'][_0xc57dbc];for(const _0xe51940 of _0x288e05)if(_0xe51940['item']['is']('element','tableCell')){const _0x557b06=this['_getVidAttributeName'](_0xe51940),_0x51d16f=_0xe51940['item']['getAttribute'](_0x557b06);if(_0x5de64a['has'](_0x51d16f)){const _0x540e23=_0xe51940['item']['parent']['parent']['getAttribute']('vid_start'),_0x568902=_0xa503c5['get'](_0x540e23)||new Set();_0x568902['add'](_0x5de64a['get'](_0x51d16f)['userId']),_0xa503c5['set'](_0x540e23,_0x568902);}}for(const _0x5edf38 of _0xa503c5['keys']())(_0x2cae88['has'](_0x5edf38)||_0x5de64a['has'](_0x5edf38))&&_0xa503c5['delete'](_0x5edf38);}for(const _0xf45ccb of _0xc6c42e){const _0x4c0881=_0xa08cd0['insertions'][_0xf45ccb];let _0x1ef206=null,_0x5730d2=null;for(const _0x242732 of _0x4c0881){const _0x50a126=this['_getVidAttributeName'](_0x242732),_0x1e59a4=_0x242732['item']['getAttribute'](_0x50a126),_0x1bf986=_0xa503c5['get'](_0x1e59a4);_0x1bf986&&'elementStart'==_0x242732['type']&&(_0x1ef206=Array['from'](_0x1bf986)[0x0],_0x5730d2=_0x242732['item']['getAttribute']('vid_end')),_0x1ef206&&(_0x5de64a['set'](_0x1e59a4,{'userId':_0x1ef206}),_0x2cae88['set'](_0x1e59a4,{'userId':_0x1ef206})),_0x1e59a4==_0x5730d2&&(_0x1ef206=null,_0x5730d2=null);}}const _0x49562d={},_0x3d8d9d=new Set();for(const _0x1358f6 of _0xc6c42e){const _0x1a0a92=_0x24a6d9['deletions'][_0x1358f6],_0x217be5=_0x24a6d9['insertions'][_0x1358f6];for(const {userId:_0xd95917}of this['_touchedMarkers']['values']())null!==_0xd95917&&_0x3d8d9d['add'](_0xd95917);for(const {userId:_0x47e7bd}of this['_touchedRoots']['values']())null!==_0x47e7bd&&_0x3d8d9d['add'](_0x47e7bd);this['_markChanges'](_0x217be5,_0xa08cd0['insertions'][_0x1358f6],_0x2cae88,'insertion',_0x3d8d9d),this['_markChanges'](_0x1a0a92,_0xa08cd0['deletions'][_0x1358f6],_0x5de64a,'deletion',_0x3d8d9d),_0x49562d[_0x1358f6]={'insertions':this['_prepareViewToSave'](_0x217be5),'deletions':this['_prepareViewToSave'](_0x1a0a92),'attachChange':this['_touchedRoots']['get'](_0x1358f6)||null,'attributesBefore':_0xf4506f(this['_baseRootsAttributes']['get'](_0x1358f6))||{},'attributesAfter':_0xf4506f(this['_diffRootsAttributes']['get'](_0x1358f6))};}return{'diffData':_0x49562d,'authorsIds':Array['from'](_0x3d8d9d)};}['_processRootBeforeSave'](_0x1ed312){for(const [,_0x3580f4]of _0x1ed312['markers']){const _0x22b35f=_0x3580f4['start']['getAncestors']()['filter'](_0x5348b2=>'tableCell'==_0x5348b2['name']);for(const _0x4d1a22 of _0x22b35f)0x1==_0x4d1a22['childCount']&&_0x4d1a22['getChild'](0x0)['is']('element','paragraph')&&_0x4d1a22['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5958dc){this['_processRootBeforeSave'](_0x5958dc);const _0x2e65c8=this['editor']['data']['toView'](_0x5958dc,{}),_0x3e6224=Array['from'](_0x2e65c8['getChildren']())['map'](_0x5a4cb6=>this['_getViewJson'](_0x5a4cb6));return JSON['stringify'](_0x3e6224);}['_getViewJson'](_0x4900c9){if(_0x4900c9['is']('$text'))return _0x4900c9['data'];{const _0xe1c713=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xe5940=_0x4900c9,_0x2ebd01=this['editor']['data']['htmlProcessor']['domConverter'],_0x188555={'type':_0xe1c713['_getTypeCharForViewElement'](_0xe5940),'name':_0xe5940['name'],'attributes':Array['from'](_0xe5940['getAttributes']()),'children':Array['from'](_0xe5940['getChildren']())['map'](_0x4542d4=>this['_getViewJson'](_0x4542d4))};if(_0x4900c9['is']('uiElement')&&'$comment'!=_0x4900c9['name']){const _0x249999=_0x4900c9['render'](_0x2ebd01['domDocument'],_0x2ebd01);_0x188555['children']['push'](_0x249999['outerHTML']);}else{if(_0x4900c9['is']('rawElement')){const _0x26f845=_0x2ebd01['domDocument']['createElement'](_0xe5940['name']);_0x4900c9['render'](_0x26f845,_0x2ebd01),_0x188555['children']['push'](_0x26f845['innerHTML']);}}const _0x19002b=Array['from'](_0xe5940['getCustomProperties']());_0x19002b['length']>0x0&&(_0x188555['customProperties']=_0x19002b);const _0x3d113c=_0xe5940['getFillerOffset']();return null!==_0x3d113c&&(_0x188555['fillerOffset']=_0x3d113c),_0x188555;}}['_markChanges'](_0x5c5c8d,_0xa50c28,_0xfc7f1d,_0x4af3a1,_0x374144){let _0xfbc03e=null,_0x4d115c=null,_0x5e4d70=0x0;const _0x3e8f51=this['editor']['model'];for(let _0x8b649d=0x0;_0x8b649d<_0xa50c28['length'];_0x8b649d++){const _0x5bbbac=this['_getVidAttributeName'](_0xa50c28[_0x8b649d]),_0x13c3b3=_0xa50c28[_0x8b649d]['item']['getAttribute'](_0x5bbbac),_0x5e3680=_0xfc7f1d['get'](_0x13c3b3),_0x223204=_0x8b649d==_0xa50c28['length']-0x1;(!_0xfbc03e&&_0x5e3680&&(_0xfbc03e=_0x5e3680,_0x4d115c=_0xa50c28[_0x8b649d]),_0xfbc03e&&(!_0x5e3680||_0x5e3680['userId']!=_0xfbc03e['userId']))&&(_0x20f5dc(_0x5e3680,F(_0x4d115c,_0x5c5c8d,_0x3e8f51),F(_0xa50c28[_0x8b649d],_0x5c5c8d,_0x3e8f51)),_0xfbc03e=_0x5e3680||null,_0x4d115c=_0x5e3680?_0xa50c28[_0x8b649d]:null),_0xfbc03e&&_0x223204&&_0x20f5dc(_0x5e3680,F(_0x4d115c,_0x5c5c8d,_0x3e8f51),B(_0xa50c28[_0x8b649d],_0x5c5c8d,_0x3e8f51));}function _0x20f5dc(_0x1ce2b2,_0x4a7de2,_0x5dd6cf){const _0x20504e=_0xfbc03e['userId'],_0x3b85ba='revision:'+_0x4af3a1+':'+_0x20504e+':'+_0x5e4d70++,_0x5d74db=_0x3e8f51['createRange'](_0x4a7de2,_0x5dd6cf);_0x5c5c8d['markers']['set'](_0x3b85ba,_0x5d74db),null!==_0x20504e&&_0x374144['add'](_0x20504e);}}['_getVidAttributeName'](_0x4b375b){switch(_0x4b375b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x53a6c3,_0x1d11c3){_0x53a6c3['baseVersion']=null;for(const _0x301361 in _0x53a6c3){const _0x92c86a=_0x53a6c3[_0x301361];if(_0x92c86a instanceof vt){const _0x1f4ba7=_0x1d11c3['get'](_0x92c86a['root']['rootName']);_0x53a6c3[_0x301361]=this['_fixPosition'](_0x92c86a,_0x1f4ba7);}if(_0x92c86a instanceof ft){const _0x25ad6a=_0x1d11c3['get'](_0x92c86a['root']['rootName']);_0x53a6c3[_0x301361]=this['_fixRange'](_0x92c86a,_0x25ad6a);}'root'===_0x301361&&(_0x53a6c3['root']=_0x1d11c3['get'](_0x53a6c3['root']['rootName']));}}['_fixRange'](_0x30e5b6,_0x132388){return this['editor']['model']['createRange'](this['_fixPosition'](_0x30e5b6['start'],_0x132388),this['_fixPosition'](_0x30e5b6['end'],_0x132388));}['_fixPosition'](_0x35d830,_0x2663f1){return this['editor']['model']['createPositionFromPath'](_0x2663f1,_0x35d830['path'],_0x35d830['stickiness']);}['_handleInsertOperation'](_0x7361e0){const _0x4869b4=this['_idsRoots']['get'](_0x7361e0['position']['root']['rootName']),_0x4b39b2=this['_fixPosition'](_0x7361e0['position'],_0x4869b4),_0x4d158b=null===_0x7361e0['_authorId']?null:_0x7361e0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4aa057=_0x4b39b2['parent'],_0x3fe90a=this['_revisionId'],_0x596842=[];for(const _0x27e34d of _0x7361e0['nodes'])if(_0x27e34d['is']('element'))_0x596842['push'](this['_makeIdsRoot'](_0x27e34d));else{for(let _0x14ae2c=0x0;_0x14ae2c<_0x27e34d['offsetSize'];_0x14ae2c++)_0x596842['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x47b444=this['_revisionId'];for(let _0x2bd3be=_0x3fe90a;_0x2bd3be<_0x47b444;_0x2bd3be++)this['_touched']['set'](_0x2bd3be,{'userId':_0x4d158b});_0x4aa057['_insertChild'](_0x4b39b2['offset'],_0x596842);}['_handleMoveOperation'](_0x55b480){(_0x55b480=this['_cloneOperation'](_0x55b480,this['_idsRoots']))['_execute']();const _0x4689ce=null===_0x55b480['_authorId']?null:_0x55b480['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2388a9=_0x55b480['getMovedRangeStart'](),_0x325475=_0x2388a9['parent'],_0x53ef80=_0x2388a9['offset'];!function _0x4f45e3(_0x418a6d,_0x5e673a,_0x35670d,_0x36cc56){for(let _0x2841c4=_0x35670d;_0x2841c4<_0x36cc56;_0x2841c4++){const _0x3d90f4=_0x5e673a['getChild'](_0x2841c4);_0x3d90f4['is']('element','$text')?_0x418a6d['set'](_0x3d90f4['getAttribute']('vid'),{'userId':_0x4689ce}):(_0x418a6d['set'](_0x3d90f4['getAttribute']('vid_start'),{'userId':_0x4689ce}),_0x4f45e3(_0x418a6d,_0x3d90f4,0x0,_0x3d90f4['childCount']),_0x418a6d['set'](_0x3d90f4['getAttribute']('vid_end'),{'userId':_0x4689ce}));}}(this['_touched'],_0x325475,_0x53ef80,_0x53ef80+_0x55b480['howMany']);}['_handleMergeOperation'](_0x1259b0){const _0x307b0e=null===(_0x1259b0=this['_cloneOperation'](_0x1259b0,this['_idsRoots']))['_authorId']?null:_0x1259b0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x549c68=_0x1259b0['targetPosition']['parent'],_0x3f5e8c=_0x1259b0['sourcePosition']['parent'],_0xdfcb16=_0x549c68['getAttribute']('vid_end'),_0x5733af=_0x3f5e8c['getAttribute']('vid_start');_0x549c68['_setAttribute']('vid_end',_0x3f5e8c['getAttribute']('vid_end')),_0x3f5e8c['_setAttribute']('vid_end',_0xdfcb16),this['_touched']['set'](_0x5733af,{'userId':_0x307b0e}),this['_touched']['set'](_0xdfcb16,{'userId':_0x307b0e}),_0x1259b0['_execute']();}['_handleSplitOperation'](_0xf1bc73){const _0x920a85=null===(_0xf1bc73=this['_cloneOperation'](_0xf1bc73,this['_idsRoots']))['_authorId']?null:_0xf1bc73['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43128e=_0xf1bc73['graveyardPosition'],_0x2b2a34=_0xf1bc73['splitPosition']['parent'];_0xf1bc73['_execute']();const _0x12bfc2=_0x2b2a34['getAttribute']('vid_end'),_0x531e35=_0xf1bc73['insertionPosition']['nodeAfter'];if(_0x43128e){const _0x34b192=_0x531e35['getAttribute']('vid_end'),_0x56fdf4=_0x2b2a34['getAttribute']('vid_end');_0x2b2a34['_setAttribute']('vid_end',_0x34b192),_0x531e35['_setAttribute']('vid_end',_0x56fdf4),this['_touched']['set'](_0x2b2a34['getAttribute']('vid_end'),{'userId':_0x920a85}),this['_touched']['set'](_0x531e35['getAttribute']('vid_start'),{'userId':_0x920a85});}else{const _0x1f33f7=this['_revisionId']++,_0x30ecf7=this['_revisionId']++;_0x2b2a34['_setAttribute']('vid_end',_0x1f33f7),_0x531e35['_setAttribute']('vid_start',_0x30ecf7),_0x531e35['_setAttribute']('vid_end',_0x12bfc2),this['_touched']['set'](_0x1f33f7,{'userId':_0x920a85}),this['_touched']['set'](_0x30ecf7,{'userId':_0x920a85});}}['_handleMarkerOperation'](_0x3d0fe5){if(!_0x3d0fe5['affectsData'])return;const _0x29e813=(_0x3d0fe5=this['_cloneOperation'](_0x3d0fe5,this['_diffRoots']))['oldRange']?_0x3d0fe5['oldRange']['root']:null,_0x593397=_0x3d0fe5['newRange']?_0x3d0fe5['newRange']['root']:null;_0x29e813&&this['_markers']['delete'](_0x3d0fe5['name']),_0x593397&&this['_markers']['set'](_0x3d0fe5['name'],_0x3d0fe5['newRange']['clone']());const _0x3e2463=null===_0x3d0fe5['_authorId']?null:_0x3d0fe5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e8abf=_0x3d0fe5['name'];if(!this['_touchedMarkers']['has'](_0x2e8abf))return void this['_touchedMarkers']['set'](_0x2e8abf,{'range':_0x3d0fe5['oldRange'],'userId':_0x3e2463});const _0x2d1ebb=this['_touchedMarkers']['get'](_0x2e8abf),_0x103c3d=_0x2d1ebb['range'],_0x5ba265=_0x3d0fe5['newRange'];null==_0x103c3d&&null==_0x5ba265||_0x103c3d&&_0x5ba265&&_0x103c3d['isEqual'](_0x5ba265)?this['_touchedMarkers']['delete'](_0x3d0fe5['name']):_0x2d1ebb['userId']=_0x3e2463;}['_handleRootOperation'](_0x54eebf,_0x336785){this['_diffRoots']['has'](_0x54eebf['rootName'])?this['_diffRoots']['get'](_0x54eebf['rootName'])['_isAttached']=_0x54eebf['isAdd']:(this['_diffRoots']['set'](_0x54eebf['rootName'],P(_0x54eebf['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x54eebf['rootName'],{}),_0x336785&&this['_idsRoots']['set'](_0x54eebf['rootName'],P(_0x54eebf['rootName'],!0x0)));const _0x3475b1=null===_0x54eebf['_authorId']?null:_0x54eebf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e508c=this['_touchedRoots']['get'](_0x54eebf['rootName']);_0x1e508c&&_0x1e508c['userId']===_0x3475b1?this['_touchedRoots']['delete'](_0x54eebf['rootName']):this['_touchedRoots']['set'](_0x54eebf['rootName'],{'userId':_0x3475b1,'isAttached':_0x54eebf['isAdd']});}['_handleRootAttributeOperation'](_0x5804de){const _0x5ae24d=this['_diffRootsAttributes']['get'](_0x5804de['root']['rootName']);null===_0x5804de['newValue']?delete _0x5ae24d[_0x5804de['key']]:_0x5ae24d[_0x5804de['key']]=_0x5804de['newValue'];}}function N(_0x1b6989){const _0x2b9494=P(_0x1b6989['rootName'],_0x1b6989['isAttached']());for(const _0x2b73a4 of _0x1b6989['getChildren']()){const _0x595f27=_0x2b73a4['_clone'](!0x0);_0x2b9494['_appendChild'](_0x595f27);}return _0x2b9494;}function P(_0x422de4,_0x1f0cff=!0x0){const _0x505161=new gt();return _0x505161['rootName']=_0x422de4,_0x505161['_isAttached']=_0x1f0cff,_0x505161['isAttached']=()=>_0x505161['_isAttached'],_0x505161;}function F(_0x24b6ba,_0x192674,_0xd47300){const _0x12dc32='elementEnd'==_0x24b6ba['type']?_0xd47300['createPositionAt'](_0x24b6ba['item'],'end'):_0xd47300['createPositionBefore'](_0x24b6ba['item']);return _0xd47300['createPositionFromPath'](_0x192674,_0x12dc32['path'],_0x12dc32['stickiness']);}function B(_0x94049e,_0x5f0b38,_0x418395){const _0x20c7dd='elementStart'==_0x94049e['type']?_0x418395['createPositionAt'](_0x94049e['item'],0x0):_0x418395['createPositionAfter'](_0x94049e['item']);return _0x418395['createPositionFromPath'](_0x5f0b38,_0x20c7dd['path'],_0x20c7dd['stickiness']);}class os extends _0x745a8d{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4db681,_0x4032be){super(_0x4db681),this['focusTracker']=new _0x5c6e07(),this['keystrokes']=new _0x1c65d2(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4032be),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'](),_0x1f975a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x31d18e=_0x2bcc0f=>_0x2bcc0f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x31d18e),this['keystrokes']['set']('arrowleft',_0x31d18e),this['keystrokes']['set']('arrowup',_0x31d18e),this['keystrokes']['set']('arrowdown',_0x31d18e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1aa811){this['revisionNameInputView']['fieldView']['element']['value']=_0x1aa811['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x42280c){const _0x1e7c95=new nt(this['locale'],ti),_0x98146b=_0x1e7c95['fieldView'];_0x98146b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x27c5eb=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x42280c&&(_0x27c5eb+='\x20('+g(this['locale'],'optional')+')'),(_0x1e7c95['label']=_0x27c5eb,_0x98146b['on']('input',()=>{this['revisionNameInputValue']=_0x98146b['element']['value']['trim']();}),_0x1e7c95);}}class f extends _0x4eb38d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4e2be2=this['editor'],_0xf210ef=_0x4e2be2['plugins']['get']('RevisionTracker');_0x4e2be2['ui']['componentFactory']['add']('revisionHistory',_0x129cfa=>{const _0x5cb1b4=_0x2fa9d9(_0x129cfa),_0x2b6b26=_0x5cb1b4['panelView']['children'],_0x293356=new _0x226ede(_0x129cfa),_0x31a41d=new te(_0x129cfa),_0x58da40=new _0x537db8(_0x129cfa),_0x1a1441=new te(_0x129cfa),_0x294073=new _0x537db8(_0x129cfa);return _0x5cb1b4['bind']('isEnabled')['to'](_0xf210ef,'isReady',_0xf210ef,'isEnabled',_0x4e2be2,'isReadOnly',(_0x3f0c82,_0x4a3ec8,_0x26a77c)=>_0x3f0c82&&_0x4a3ec8&&!_0x26a77c),_0x5cb1b4['buttonView']['set']({'icon':_0x2f0552,'label':g(_0x129cfa,'Revision\x20history'),'tooltip':!0x0}),_0x58da40['set']({'label':g(_0x129cfa,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x58da40['bind']('isEnabled')['to'](_0xf210ef,'isReady',_0xf210ef,'isEnabled',_0x4e2be2,'isReadOnly',(_0x16ed05,_0x12ba33,_0x5ad901)=>_0x16ed05&&_0x12ba33&&!_0x5ad901),_0x58da40['on']('execute',()=>this['_showDialog']()),_0x294073['set']({'label':g(_0x129cfa,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x294073['bind']('isEnabled')['to'](_0xf210ef,'isReady',_0x4e2be2,'isReadOnly',(_0xb1f05e,_0x8f0e0a)=>_0xb1f05e&&!_0x8f0e0a),_0x294073['on']('execute',()=>{_0x4e2be2['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5cb1b4['isOpen']=!0x1,_0x4e2be2['editing']['view']['focus']();}),_0x31a41d['children']['add'](_0x58da40),_0x1a1441['children']['add'](_0x294073),_0x293356['role']='menu',_0x293356['items']['addMany']([_0x31a41d,_0x1a1441]),_0x2b6b26['add'](_0x293356),_0x5cb1b4;}),_0x4e2be2['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4a3883=this['editor'],_0x24c75d=_0x4a3883['locale'],_0x1d9b17=new _0x356cb3(_0x24c75d),_0x24f4eb=new _0x28cf76(_0x24c75d);_0x1d9b17['buttonView']['set']({'icon':_0x2f0552,'label':g(_0x24c75d,'Revision\x20history')});const _0x484ffb=new _0x3e7b64(_0x24c75d,_0x1d9b17),_0x12960e=new _0x514805(_0x24c75d);_0x12960e['set']({'label':g(_0x24c75d,'Save\x20current\x20revision')}),_0x12960e['delegate']('execute')['to'](_0x1d9b17),_0x12960e['on']('execute',()=>{this['_showDialog']();}),_0x484ffb['children']['add'](_0x12960e),_0x24f4eb['items']['add'](_0x484ffb);const _0x413994=new _0x3e7b64(_0x24c75d,_0x1d9b17),_0x4b6ce3=new _0x514805(_0x24c75d);return _0x4b6ce3['set']({'label':g(_0x24c75d,'Open\x20revision\x20history')}),_0x4b6ce3['delegate']('execute')['to'](_0x1d9b17),_0x4b6ce3['on']('execute',()=>{_0x4a3883['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x413994['children']['add'](_0x4b6ce3),_0x24f4eb['items']['add'](_0x413994),_0x1d9b17['panelView']['children']['add'](_0x24f4eb),_0x1d9b17;}['_showDialog'](){const _0x57d917=this['editor'],_0x374e77=_0x57d917['locale'],_0x1b94b8=_0x57d917['plugins']['get']('Dialog'),_0x143500=_0x57d917['plugins']['get']('RevisionTracker');function _0x1f6580(_0x2447fb){_0x57d917['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2447fb['revisionName']?_0x2447fb['revisionNameInputView']['errorText']=g(_0x374e77,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x57d917['plugins']['get'](u)['saveRevision']({'name':_0x2447fb['revisionName']}),_0x1b94b8['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1f6580(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b94b8['show']({'id':'revisionSave','title':g(_0x374e77,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x57d917['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b94b8['hide']()},{'label':g(_0x57d917['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4890ce){_0x4890ce['bind']('isEnabled')['to'](_0x143500,'isReady',_0x143500,'isEnabled',_0x57d917,'isReadOnly',(_0x5516d1,_0x2b7a6d,_0x248758)=>_0x5516d1&&_0x2b7a6d&&!_0x248758);},'onExecute':()=>_0x1f6580(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x493987=this['editor'],_0x4f0de1=_0x493987['locale'];this['_saveRevisionFormView']=new os(_0x4f0de1,_0x493987['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x745a8d{['changeId'];['_model'];constructor(_0x43c082,_0xb55a9e){super(_0x43c082),this['_model']=_0xb55a9e,this['changeId']=_0xb55a9e['id'];const _0x41a4f7=this['bindTemplate'],_0x121a43=g(_0x43c082,_0xb55a9e['data']['isSuggestion']?'Suggested\x20by':'add'==_0xb55a9e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xb55a9e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x41a4f7['to']('type',_0x3e8be8=>'ck-revision-change__'+_0x3e8be8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x121a43}]},{'text':'\x20'+_0xb55a9e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3fd0d6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5b8e28){super(),this['id']=_0x5b8e28['id']||_0x423624(),this['author']=_0x5b8e28['author'],this['type']=_0x5b8e28['type'],this['data']=_0x5b8e28['data']||{},this['rootName']=_0x5b8e28['rootName'],this['set']('createdAt',_0x5b8e28['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(_0x2ba367,_0xed8587){this['newRevisionId']=_0x2ba367,this['oldRevisionId']=_0xed8587,this['changes']=new _0x5c68d2();}['_setChanges'](_0xa39862){for(const _0x120ae0 of _0xa39862)this['changes']['add'](_0x120ae0);}}class m extends _0x4eb38d{['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[_0x266938,_0x1b49dd,I,V];}constructor(_0x23f960){super(_0x23f960),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',(_0x11f3a7,_0x55b4f2,_0x13090e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x26eed2=>{for(const _0x2160a9 of this['editor']['editing']['view']['document']['roots'])_0x13090e?_0x26eed2['removeClass']('ck-editor__editable__overlay',_0x2160a9):_0x26eed2['addClass']('ck-editor__editable__overlay',_0x2160a9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x196387=>null!==_0x196387),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2ffd53,_0x1f6d8d,_0x10aed6)=>_0x2ffd53&&_0x10aed6?_0x1f6d8d['changes']['getIndex'](_0x10aed6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2c80d6,_0x237bb1)=>_0x2c80d6?_0x237bb1['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1b49dd);}['init'](){const _0x220402=this['editor'],_0xee8514=new pt(_0x220402,{'direction':'backward'}),_0x3bf939=new pt(_0x220402,{'direction':'forward'});(_0x220402['commands']['add']('showPreviousChange',_0xee8514),_0x220402['commands']['add']('showNextChange',_0x3bf939),_0x220402['commands']['add']('restoreRevision',new wt(_0x220402)),this['on']('change:numberOfChanges',()=>{_0xee8514['refresh'](),_0x3bf939['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x220402['enableReadOnlyMode']('revision-viewer'),_0x220402['plugins']['has']('WidgetToolbarRepository'))&&_0x220402['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x552a0e){return await this['_utils']['loadRevisionData'](_0x552a0e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x552a0e);}async['getRevisionRootsAttributes'](_0x47b31d){return await this['_utils']['loadRevisionData'](_0x47b31d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x47b31d);}async['compare'](_0x435789,_0x4d3754,_0x479d38=!0x1){if(!this['isEnabled'])return;const _0x42a769=this['diff'],_0x2f063e=this['repository'],_0x3bb29d='string'==typeof _0x435789?_0x2f063e['getRevision'](_0x435789):_0x435789,_0x21638f='string'==typeof _0x4d3754?_0x2f063e['getRevision'](_0x4d3754):_0x4d3754,_0x135b67=_0x3bb29d['id'],_0x3e1323=_0x21638f?_0x21638f['id']:null;if(!_0x479d38&&this['diff']&&this['diff']['newRevisionId']===_0x135b67&&this['diff']['oldRevisionId']===_0x3e1323)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x135b67,_0x3e1323);const _0x17d6e8=this['_getRevisionsRange'](_0x3bb29d,_0x21638f,!0x0)['map'](_0x4dcbc4=>this['_utils']['loadRevisionData'](_0x4dcbc4,this['adapter']));return _0x17d6e8['push'](new Promise(_0x2e8739=>{setTimeout(_0x2e8739,0x14);})),Promise['all'](_0x17d6e8)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x118437=this['_getDiff'](_0x135b67,_0x3e1323);for(const _0x59d030 of _0x118437['changes'])this['_changeIdToChange']['set'](_0x59d030['id'],_0x59d030);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2ab8d5=>{for(const _0x1f544c of this['editor']['model']['document']['getRootNames']())_0x2ab8d5['detachRoot'](_0x1f544c);for(const _0x3c1e8d of Object['keys'](_0x118437['model'])){const _0x2a3f2c=_0x2ab8d5['addRoot'](_0x3c1e8d);for(const _0x8ccb51 of Object['keys'](_0x118437['attributes'][_0x3c1e8d]))_0x2ab8d5['setAttribute'](_0x8ccb51,_0x118437['attributes'][_0x3c1e8d][_0x8ccb51],_0x2a3f2c);_0x2ab8d5['insert'](_0x118437['model'][_0x3c1e8d],_0x2a3f2c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x118437['changes'])),this['isReady']=!0x0;})['catch'](_0x48fb3b=>{console['error'](_0x48fb3b),this['_cleanUp'](),_0x42a769&&(this['diff']=_0x42a769),this['isReady']=!0x0;});}['addRevisionData'](_0x4b252e,_0x192c8f){const _0x1086da=this['repository']['createRevision'](_0x4b252e);return _0x1086da['on']('_update',(_0x4b2368,_0x4a1077,_0x31e6f3)=>_0x192c8f(_0x4a1077,_0x31e6f3,_0x1086da)),this['repository']['addRevision'](_0x1086da),_0x1086da;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3ef69d=>{for(const _0x3eab50 of this['editor']['model']['document']['getRootNames']())_0x3ef69d['detachRoot'](_0x3eab50);});}['_sortAndFilterDiffChanges'](_0x5db70f){const _0x3edde9=[],_0x36ad4f=new Map();for(const _0x4455c7 of this['editor']['model']['document']['getRootNames']()){const _0x2f2934=this['editor']['editing']['view']['getDomRoot'](_0x4455c7);if(!_0x2f2934)continue;const _0x3a6f08=_0x2f2934['getClientRects']()['item'](0x0);_0x3a6f08&&(_0x3edde9['push'](_0x4455c7),_0x36ad4f['set'](_0x4455c7,_0x3a6f08));}return _0x3edde9['sort']((_0x3be640,_0x34a183)=>{const _0x1f3cd1=_0x36ad4f['get'](_0x3be640),_0x4e17a3=_0x36ad4f['get'](_0x34a183);return _0x1f3cd1['y']-_0x4e17a3['y']||_0x1f3cd1['x']-_0x4e17a3['x'];}),(_0x5db70f=_0x5db70f['filter'](_0x233500=>_0x3edde9['includes'](_0x233500['rootName'])))['sort']((_0x9a98aa,_0x5457a1)=>_0x3edde9['indexOf'](_0x9a98aa['rootName'])-_0x3edde9['indexOf'](_0x5457a1['rootName'])),_0x5db70f;}['_makeTape'](_0x249565){const _0x245e10=Array['from'](_0x249565['markers'])['filter'](([_0x483063,_0x37a821])=>_0x483063['startsWith']('revision:')&&!_0x37a821['isCollapsed']),_0x1bd65d=Array['from'](this['editor']['model']['createRangeIn'](_0x249565)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x245e10['length'])for(const _0x5242d2 of _0x1bd65d){const [_0x43b979,_0x24cb08]=_0x245e10[0x0],[,_0x1f43ce,_0x41ca46]=_0x43b979['split'](':');if(_0x24cb08['end']['isEqual'](_0x5242d2['nextPosition'])&&_0x245e10['shift'](),(_0x5242d2['previousPosition']['isEqual'](_0x24cb08['start'])||_0x5242d2['previousPosition']['isAfter'](_0x24cb08['start']))&&('insertion'==_0x1f43ce?_0x5242d2['isAdded']={'userId':_0x41ca46}:'deletion'==_0x1f43ce&&(_0x5242d2['isRemoved']={'userId':_0x41ca46})),0x0==_0x245e10['length'])break;}return _0x1bd65d;}['_refreshStartEndIndex'](_0x458cf1){const _0x1e9a08=new Map();for(let _0x3d71ae=0x0;_0x3d71ae<_0x458cf1['length'];_0x3d71ae++)'text'===_0x458cf1[_0x3d71ae]['type']?(_0x458cf1[_0x3d71ae]['item']['startIndex']=_0x3d71ae,_0x458cf1[_0x3d71ae]['item']['endIndex']=_0x3d71ae):('elementStart'===_0x458cf1[_0x3d71ae]['type']?_0x458cf1[_0x3d71ae]['item']['startIndex']=_0x3d71ae:'elementEnd'===_0x458cf1[_0x3d71ae]['type']&&(_0x458cf1[_0x3d71ae]['item']['endIndex']=_0x3d71ae),_0x1e9a08['set'](_0x458cf1[_0x3d71ae]['id'],_0x3d71ae));for(const _0x27893b of _0x1e9a08['values']())'elementStart'===_0x458cf1[_0x27893b]['type']?_0x458cf1[_0x27893b]['item']['endIndex']=_0x1e9a08['get'](_0x458cf1[_0x27893b]['pairId']):'elementEnd'===_0x458cf1[_0x27893b]['type']&&(_0x458cf1[_0x27893b]['item']['startIndex']=_0x1e9a08['get'](_0x458cf1[_0x27893b]['pairId']));}['_processTape'](_0x241978){for(let _0x10b185=0x0;_0x10b185<_0x241978['length'];_0x10b185++){if('elementStart'===_0x241978[_0x10b185]['type'])_0x241978[_0x10b185]['item']['startIndex']=_0x10b185;else{if('elementEnd'===_0x241978[_0x10b185]['type']){_0x241978[_0x10b185]['item']['endIndex']=_0x10b185;const _0x2f5460=_0x241978[_0x10b185]['item']['startIndex'];_0x241978[_0x2f5460]['pairId']=_0x241978[_0x10b185]['id'],_0x241978[_0x10b185]['pairId']=_0x241978[_0x2f5460]['id'];}else _0x241978[_0x10b185]['item']['startIndex']=_0x10b185,_0x241978[_0x10b185]['item']['endIndex']=_0x10b185,_0x241978[_0x10b185]['pairId']=null;}_0x241978[_0x10b185]['markersStart']||(_0x241978[_0x10b185]['markersStart']=[],_0x241978[_0x10b185]['markersEnd']=[]);}}['_markInsertions'](_0x5cde1b,_0x307a3e){const _0x367512=_0x5cde1b['filter'](_0x270eaa=>!_0x270eaa['isAdded']);for(let _0x286aae=0x0;_0x286aae<_0x307a3e['length'];_0x286aae++)_0x307a3e[_0x286aae]['isAdded']&&(_0x367512[_0x286aae]['isAdded']=_0x307a3e[_0x286aae]['isAdded']);}['_getDiff'](_0x31b9ed,_0x9833a=null){const _0x450dd4=this['repository']['getRevision'](_0x31b9ed),_0x2e6ba3=_0x9833a?this['repository']['getRevision'](_0x9833a):null,_0x112e79=this['_getRevisionsRange'](_0x450dd4,_0x2e6ba3),_0x98c70=_0x112e79[_0x112e79['length']-0x1],_0x111848=new Map(),_0x1a61b8={'model':{},'attributes':{},'changes':[]},_0x5135da=new Set(),_0x4bcb6f=new Map();for(let _0x32bcd0=_0x112e79['length']-0x1;_0x32bcd0>=0x0;_0x32bcd0--){const _0x2a3974=_0x112e79[_0x32bcd0];for(const _0x3ca0ef of Object['keys'](_0x2a3974['diffData']))if(_0x2a3974['diffData'][_0x3ca0ef]['attachChange']){const _0x2f5417=_0x2a3974['diffData'][_0x3ca0ef]['attachChange'];_0x2f5417['isAttached']?(_0x5135da['add'](_0x3ca0ef),_0x4bcb6f['has'](_0x3ca0ef)&&_0x4bcb6f['get'](_0x3ca0ef)['userId']==_0x2f5417['userId']?_0x4bcb6f['delete'](_0x3ca0ef):_0x4bcb6f['set'](_0x3ca0ef,_0x2f5417)):_0x4bcb6f['has'](_0x3ca0ef)?(_0x5135da['delete'](_0x3ca0ef),_0x4bcb6f['delete'](_0x3ca0ef)):(_0x5135da['add'](_0x3ca0ef),_0x4bcb6f['set'](_0x3ca0ef,_0x2f5417));}else _0x5135da['add'](_0x3ca0ef);}for(const _0x59258e of _0x5135da){const _0x2f8a9d=_0x4bcb6f['has'](_0x59258e)&&!_0x4bcb6f['get'](_0x59258e)['isAttached'];let _0x5b33b0=_0x2f8a9d?_0x112e79['length']-0x1:0x0;const _0x2acfa1=_0x2f8a9d?-0x1:0x1;for(;_0x112e79[_0x5b33b0];){const _0x2ca8c9=_0x112e79[_0x5b33b0];if(_0x2ca8c9['diffData'][_0x59258e]){const _0x2ffcda=_0x2f8a9d?_0x2ca8c9['diffData'][_0x59258e]['attributesBefore']:_0x2ca8c9['diffData'][_0x59258e]['attributesAfter'];_0x1a61b8['attributes'][_0x59258e]=_0x2ffcda?_0xf4506f(_0x2ffcda):{};break;}_0x5b33b0+=_0x2acfa1;}}for(const _0x348d08 of _0x112e79){_0x348d08['model']={};for(const _0x396c31 of _0x348d08['authors'])_0x111848['set'](_0x396c31['id'],_0x396c31);for(const _0x5ecf84 of _0x5135da){const _0x20ddb3=_0x348d08['diffData'][_0x5ecf84]?_0x348d08['diffData'][_0x5ecf84]['insertions']:'[]',_0x21d03d=_0x348d08['diffData'][_0x5ecf84]?_0x348d08['diffData'][_0x5ecf84]['deletions']:'[]';_0x348d08['model'][_0x5ecf84]={'insertions':this['_utils']['_makeModelFromViewString'](_0x20ddb3),'deletions':this['_utils']['_makeModelFromViewString'](_0x21d03d)};}}for(const _0x4768c4 of _0x5135da){let _0x116457=null,_0x3e3980=0x0;const _0x5c0907=new Map(Array['from'](_0x450dd4['model'][_0x4768c4]['insertions']['markers'])['filter'](([_0x2622d2])=>!_0x2622d2['startsWith']('revision:')));let _0xf5f033=0x0;for(const _0x5da4c4 of _0x112e79){const _0xd90915=this['_makeTape'](_0x5da4c4['model'][_0x4768c4]['insertions']);_0x5da4c4==_0x450dd4?(_0x116457=_0xd90915,_0x3e3980=_0x116457['length'],_0x116457['forEach'](_0x5e3b8b=>{_0x5e3b8b['id']=_0xf5f033++;}),this['_processTape'](_0x116457)):this['_markInsertions'](_0x116457,_0xd90915);const _0xef6317=_0x116457['filter'](_0x1b81d8=>!_0x1b81d8['isAdded'])['map'](_0x11ce2a=>_0x11ce2a['id']);let _0x2b2841=0x0;const _0x7c0007=this['_makeTape'](_0x5da4c4['model'][_0x4768c4]['deletions']);_0x7c0007['forEach'](_0xa7da6e=>{_0xa7da6e['isRemoved']?_0xa7da6e['id']=_0x3e3980++:_0xa7da6e['id']=_0xef6317[_0x2b2841++];}),this['_processTape'](_0x7c0007),this['_setDistance'](_0x116457,'isAdded'),this['_setDistance'](_0x7c0007,'isRemoved'),_0x5da4c4==_0x450dd4&&this['_markMarkers'](_0x116457,_0x5c0907),_0x116457=this['_joinTapes'](_0x116457,_0x7c0007),this['_refreshStartEndIndex'](_0x116457),this['_setDistance'](_0x116457,'isRemoved');}_0x116457=_0x116457['filter'](_0x55e563=>!(_0x55e563['isAdded']&&_0x55e563['isRemoved']));const _0x360659=new Map(_0x98c70['model'][_0x4768c4]['deletions']['markers']),_0xb9da61=new Set(_0x5c0907['keys']());for(const _0x2bffce of _0x360659['keys']())_0xb9da61['delete'](_0x2bffce);this['_markSuggestions'](_0x116457,_0xb9da61),this['_fixObsoleteTags'](_0x116457),_0x116457=this['_removeMissingPairs'](_0x116457),_0x116457=this['_markMismatchedRemovedTags'](_0x116457),_0x116457=this['_removeUnsupportedChanges'](_0x116457);const {root:_0x46573f,changes:_0x13165c}=this['_makeModelFromTape'](_0x116457,_0x111848,_0x4768c4);_0x1a61b8['model'][_0x4768c4]=_0x46573f;const _0x1c73f2=_0x4bcb6f['get'](_0x4768c4);if(_0x1c73f2){const _0x23f195=_0x111848['get'](_0x1c73f2['userId']),_0x35bd68=new r({'author':_0x23f195,'type':_0x1c73f2['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4768c4});_0x13165c['unshift'](_0x35bd68),_0x1a61b8['attributes'][_0x4768c4]['revisionHistoryAttachChange']=_0x35bd68['id'];}_0x1a61b8['changes']=_0x1a61b8['changes']['concat'](_0x13165c);}return _0x1a61b8;}['_markMarkers'](_0x3744ec,_0xe51f68){for(let _0x22a6fc=0x0;_0x22a6fc<_0x3744ec['length'];_0x22a6fc++)for(const [_0x4bc449,_0x468f6e]of _0xe51f68)!_0x468f6e['isCollapsed']&&_0x468f6e['start']['isEqual'](_0x3744ec[_0x22a6fc]['previousPosition'])&&_0x3744ec[_0x22a6fc]['markersStart']['push'](_0x4bc449),_0x468f6e['end']['isEqual'](_0x3744ec[_0x22a6fc]['nextPosition'])&&_0x3744ec[_0x22a6fc]['markersEnd']['push'](_0x4bc449);}['_joinTapes'](_0x34b5fe,_0xd93e2){let _0x4cb2a0=[],_0x13aab5=0x0,_0x131a9b=0x0;for(;_0x13aab5<_0x34b5fe['length']||_0x131a9b<_0xd93e2['length'];){const _0x31d843=_0x34b5fe[_0x13aab5]||{},_0x1eb9a8=_0xd93e2[_0x131a9b]||{};if(_0x31d843['id']==_0x1eb9a8['id'])_0x13aab5++,_0x131a9b++,_0x4cb2a0['push'](_0x31d843);else{if(_0x1eb9a8['isRemoved']&&_0x31d843['isAdded']){const {commonTape:_0x2b5378,iEnd:_0x474866,jEnd:_0x57e038}=this['_threeWayMerge'](_0x34b5fe,_0x13aab5,_0xd93e2,_0x131a9b);_0x4cb2a0=_0x4cb2a0['concat'](_0x2b5378),_0x13aab5=_0x474866,_0x131a9b=_0x57e038;}else _0x1eb9a8['isRemoved']?(_0x131a9b++,_0x4cb2a0['push'](_0x1eb9a8)):(_0x13aab5++,_0x4cb2a0['push'](_0x31d843));}}return _0x4cb2a0;}['_markSuggestions'](_0x1e7722,_0x462d49){const _0x1f5dcd=[];for(let _0x455d2e=0x0;_0x455d2e<_0x1e7722['length'];_0x455d2e++){for(let _0x500fc2=0x0;_0x500fc2<_0x1e7722[_0x455d2e]['markersStart']['length'];_0x500fc2++){const _0x3f52bb=_0x1e7722[_0x455d2e]['markersStart'][_0x500fc2];if(!_0x462d49['has'](_0x3f52bb))continue;const {group:_0x3c90bf,type:_0x10f917,authorId:_0x232393}=_0x3c4c1f(_0x3f52bb);'revision-suggestion'!=_0x3c90bf||'insertion'!=_0x10f917&&'deletion'!=_0x10f917||(_0x1f5dcd['unshift']({'type':_0x10f917,'name':_0x3f52bb,'userId':_0x232393}),_0x1e7722[_0x455d2e]['markersStart']['splice'](_0x500fc2,0x1),_0x500fc2--);}_0x334d54(_0x1e7722[_0x455d2e]);for(let _0x3e01da=0x0;_0x3e01da<_0x1e7722[_0x455d2e]['markersEnd']['length'];_0x3e01da++){const _0x14ede6=_0x1e7722[_0x455d2e]['markersEnd'][_0x3e01da];if(!_0x462d49['has'](_0x14ede6))continue;const {group:_0x2828da,type:_0x2a794f}=_0x3c4c1f(_0x14ede6);if('revision-suggestion'!=_0x2828da||'insertion'!=_0x2a794f&&'deletion'!=_0x2a794f)continue;_0x1e7722[_0x455d2e]['markersEnd']['splice'](_0x3e01da,0x1),_0x3e01da--;const _0x49b67e=_0x1f5dcd['findIndex'](_0x5da78a=>_0x5da78a['name']==_0x14ede6);_0x49b67e>-0x1&&_0x1f5dcd['splice'](_0x49b67e,0x1);}}function _0x3c4c1f(_0x3094e9){const _0x6250b4=_0x3094e9['split'](':');return{'group':_0x6250b4[0x0],'type':_0x6250b4[0x1],'subType':_0x6250b4['length']>=0x5?_0x6250b4[0x2]:null,'id':_0x6250b4['length']<0x5?_0x6250b4[0x2]:_0x6250b4[0x3],'authorId':_0x6250b4['length']<0x5?_0x6250b4[0x3]:_0x6250b4[0x4],'markerCount':0x6==_0x6250b4['length']?_0x6250b4[0x5]:null};}function _0x334d54(_0xa108d0){for(let _0x302d94=0x0;_0x302d94<_0x1f5dcd['length'];_0x302d94++){if(_0xa108d0['isAdded']&&'insertion'==_0x1f5dcd[_0x302d94]['type'])return _0xa108d0['isAddSuggestion']=_0x1f5dcd[_0x302d94],void delete _0xa108d0['isAdded'];if(!_0xa108d0['isAdded']&&!_0xa108d0['isRemoved']&&'deletion'==_0x1f5dcd[_0x302d94]['type'])return void(_0xa108d0['isRemoveSuggestion']=_0x1f5dcd[_0x302d94]);}}}['_setDistance'](_0x558c6a,_0x1b8c52){let _0x1a0f46=0x0,_0x50f3c4=!0x1;const _0x399ed8=new Map();for(const _0x17f38b of _0x558c6a)_0x17f38b[_0x1b8c52]?_0x50f3c4&&(_0x1a0f46++,_0x50f3c4=!0x1):(_0x1a0f46++,_0x50f3c4=!0x0),_0x399ed8['set'](_0x17f38b['id'],_0x1a0f46);for(let _0x49d395=0x0;_0x49d395<_0x558c6a['length'];_0x49d395++){if('isRemoved'==_0x1b8c52&&_0x558c6a[_0x49d395]['isAdded']||'isAdded'==_0x1b8c52&&_0x558c6a[_0x49d395]['isRemoved'])continue;if('text'==_0x558c6a[_0x49d395]['type']){_0x558c6a[_0x49d395]['distance']=0x0;continue;}const _0x12c440=_0x399ed8['get'](_0x558c6a[_0x49d395]['pairId']),_0x532662=_0x399ed8['get'](_0x558c6a[_0x49d395]['id']);_0x558c6a[_0x49d395]['distance']=_0x12c440-_0x532662;}}['_getRevisionsRange'](_0x182899,_0x55588b,_0x2d97cb=!0x1){const _0x49108a=[];let _0x527451=this['repository']['getIndex'](_0x182899),_0x3c600c=this['repository']['getIndex'](_0x55588b);for(-0x1==_0x3c600c&&(_0x3c600c=this['repository']['_revisions']['length'],_0x2d97cb=!0x1);_0x527451<_0x3c600c;)_0x49108a['push'](this['repository']['getRevision'](_0x527451)),_0x527451++;return _0x2d97cb&&_0x49108a['push'](this['repository']['getRevision'](_0x527451)),_0x49108a;}['_threeWayMerge'](_0x794983,_0x3c430c,_0x332a15,_0x52cc14){const _0x4a6a8b=this['editor']['model']['schema'];let _0x13e6e2=_0x3c430c;for(;_0x794983[_0x13e6e2]&&_0x794983[_0x13e6e2]['isAdded'];)_0x13e6e2++;let _0x5199ce=_0x52cc14;for(;_0x332a15[_0x5199ce]&&_0x332a15[_0x5199ce]['isRemoved'];)_0x5199ce++;_0x2289ad(_0x794983,_0x3c430c,_0x13e6e2),_0x2289ad(_0x332a15,_0x52cc14,_0x5199ce);const _0x44dfc2=_0x332a15['slice'](_0x52cc14,_0x5199ce)['concat'](_0x794983['slice'](_0x3c430c,_0x13e6e2));return _0x44dfc2['sort']((_0x2e7858,_0x3d6b88)=>_0x2e7858['side']!=_0x3d6b88['side']?_0x2e7858['side']-_0x3d6b88['side']:_0x2e7858['level']!=_0x3d6b88['level']?_0x2e7858['level']-_0x3d6b88['level']:_0x2e7858['distance']!=_0x3d6b88['distance']?_0x3d6b88['distance']-_0x2e7858['distance']:!!_0x2e7858['isAdded']!=!!_0x3d6b88['isAdded']?-0x1==_0x2e7858['side']||0x0==_0x2e7858['side']?_0x2e7858['isAdded']?-0x1:0x1:_0x2e7858['isAdded']?0x1:-0x1:_0x2e7858['index']-_0x3d6b88['index']),{'commonTape':_0x44dfc2,'iEnd':_0x13e6e2,'jEnd':_0x5199ce};function _0x2289ad(_0x30b717,_0x3d8a8d,_0x33a268){let _0x59fb62=-0x1,_0x35eb25=Number['POSITIVE_INFINITY'],_0x20d2f7=!0x0;for(let _0x4f33f8=_0x3d8a8d;_0x4f33f8<_0x33a268;_0x4f33f8++)if(_0x4a6a8b['isInline'](_0x30b717[_0x4f33f8]['item'])||(_0x20d2f7=!0x1),_0x30b717[_0x4f33f8]['item']['startIndex']<_0x3d8a8d&&(_0x59fb62=_0x4f33f8),_0x30b717[_0x4f33f8]['item']['endIndex']>=_0x33a268){_0x35eb25=_0x4f33f8;break;}_0x20d2f7&&(_0x59fb62=_0x33a268-0x1);for(let _0x9cb2c5=_0x3d8a8d;_0x9cb2c5<_0x33a268;_0x9cb2c5++)_0x30b717[_0x9cb2c5]['side']=_0x9cb2c5<=_0x59fb62?-0x1:_0x9cb2c5<_0x35eb25?0x0:0x1,_0x30b717[_0x9cb2c5]['index']=_0x9cb2c5;let _0x3cc926=0x0;for(let _0x5478c0=_0x3d8a8d;_0x5478c0<=_0x59fb62;_0x5478c0++)0x0==_0x30b717[_0x5478c0]['distance']?_0x30b717[_0x5478c0]['level']=_0x3cc926:(_0x3cc926++,_0x30b717[_0x5478c0]['level']=_0x3cc926,_0x3cc926++);for(let _0x25326=_0x3d8a8d;_0x25326<_0x33a268;_0x25326++)0x0==_0x30b717[_0x25326]['side']&&(_0x30b717[_0x25326]['level']=_0x3cc926);_0x3cc926=0x0;for(let _0x27f209=_0x33a268-0x1;_0x27f209>=_0x35eb25;_0x27f209--)0x0==_0x30b717[_0x27f209]['distance']?_0x30b717[_0x27f209]['level']=_0x3cc926:(_0x3cc926--,_0x30b717[_0x27f209]['level']=_0x3cc926,_0x3cc926--);}}['_fixObsoleteTags'](_0x1e932e){const _0x1d8242=new Map(),_0x315df8=this['editor']['model']['schema'];for(let _0x22d1ea=0x1;_0x22d1ea<_0x1e932e['length'];_0x22d1ea++){let _0x5c13dd,_0x24035f,_0xf38b95;const _0xe7e544=_0x1e932e[_0x22d1ea],_0x47aaa0=_0x1e932e[_0x22d1ea-0x1];if('text'==_0xe7e544['type'])continue;if(_0xe7e544['type']!=_0x47aaa0['type'])continue;if(!_0x315df8['isBlock'](_0x47aaa0['item'])||_0x315df8['isLimit'](_0x47aaa0['item']))continue;if(!_0x315df8['isBlock'](_0xe7e544['item'])||_0x315df8['isLimit'](_0xe7e544['item']))continue;if((_0x1e932e[_0x22d1ea]['isAdded']||_0x1e932e[_0x22d1ea]['isAddSuggestion'])&&_0x1e932e[_0x22d1ea-0x1]['isRemoved'])_0x5c13dd=_0x1e932e[_0x22d1ea],_0x24035f=_0x1e932e[_0x22d1ea-0x1],_0xf38b95=_0x22d1ea-0x1;else{if(!_0x1e932e[_0x22d1ea]['isRemoved']||!_0x1e932e[_0x22d1ea-0x1]['isAdded']&&!_0x1e932e[_0x22d1ea-0x1]['isAddSuggestion'])continue;_0x5c13dd=_0x1e932e[_0x22d1ea-0x1],_0x24035f=_0x1e932e[_0x22d1ea],_0xf38b95=_0x22d1ea;}const _0x2ad084=_0x5c13dd['level']==_0x24035f['level'],_0x425ff7=Math['abs'](_0x5c13dd['level'])<Math['abs'](_0x24035f['level'])&&0x0==_0x24035f['distance'];(_0x2ad084||_0x425ff7)&&(_0x1d8242['set'](_0x24035f['id'],_0x5c13dd['id']),_0x1e932e['splice'](_0xf38b95,0x1),_0x22d1ea--,_0x5c13dd['isAdded']=!0x1);}for(let _0x41c66d=0x0;_0x41c66d<_0x1e932e['length'];_0x41c66d++)_0x1d8242['has'](_0x1e932e[_0x41c66d]['pairId'])&&(_0x1e932e[_0x41c66d]['pairId']=_0x1d8242['get'](_0x1e932e[_0x41c66d]['pairId']));}['_removeMissingPairs'](_0x4f4398){const _0xa56a67=new Set(_0x4f4398['map'](_0x380f67=>_0x380f67['id']));for(let _0x1baaa4=0x0;_0x1baaa4<_0x4f4398['length'];_0x1baaa4++)_0xa56a67['has'](_0x4f4398[_0x1baaa4]['pairId'])||0x0==_0x4f4398[_0x1baaa4]['distance']||(_0x4f4398[_0x1baaa4]['isIncorrect']=!0x0);return _0x4f4398['filter'](_0x1c16fb=>!_0x1c16fb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1cee5c){const _0x406ac9=new Set();for(let _0x1507d0=0x0;_0x1507d0<_0x1cee5c['length'];_0x1507d0++){if(_0x406ac9['has'](_0x1cee5c[_0x1507d0]['id'])&&_0x1cee5c[_0x1507d0]['isRemoved']&&(_0x1cee5c[_0x1507d0]['isIncorrect']=!0x0),_0x1cee5c[_0x1507d0]['isIncorrect'])continue;if(0x0==_0x1cee5c[_0x1507d0]['distance'])continue;if('elementStart'!=_0x1cee5c[_0x1507d0]['type'])continue;if(null==_0x1cee5c[_0x1507d0]['pairId'])continue;let _0x650d05=_0x1507d0+0x1,_0x385789=0x0;for(;_0x1cee5c[_0x650d05]['id']!=_0x1cee5c[_0x1507d0]['pairId'];)'elementStart'==_0x1cee5c[_0x650d05]['type']?_0x385789++:'elementEnd'==_0x1cee5c[_0x650d05]['type']&&_0x385789--,_0x650d05++;if(0x0!=_0x385789){if(_0x1cee5c[_0x1507d0]['isRemoved'])_0x1cee5c[_0x1507d0]['isIncorrect']=!0x0;else{for(;_0x650d05!=_0x1507d0;)_0x1cee5c[_0x650d05]['isRemoved']&&0x0!=_0x1cee5c[_0x650d05]['distance']&&(_0x1cee5c[_0x650d05]['isIncorrect']=!0x0,_0x406ac9['add'](_0x1cee5c[_0x650d05]['pairId'])),_0x650d05--;}}}return _0x1cee5c['filter'](_0x4fd785=>!_0x4fd785['isIncorrect']);}['_removeUnsupportedChanges'](_0xb739f1){const _0x3b5710=this['editor']['model']['schema'];for(let _0x20929f=0x0;_0x20929f<_0xb739f1['length'];_0x20929f++){if(!(_0xb739f1[_0x20929f]['isAdded']||_0xb739f1[_0x20929f]['isAddSuggestion']||_0xb739f1[_0x20929f]['isRemoved']||_0xb739f1[_0x20929f]['isRemoveSuggestion']))continue;if(0x0==_0xb739f1[_0x20929f]['distance'])continue;const _0x2723b5=_0xb739f1[_0x20929f]['item'];_0x3b5710['isBlock'](_0x2723b5)||_0x3b5710['isLimit'](_0x2723b5)||(_0xb739f1[_0x20929f]['isAdded']&&delete _0xb739f1[_0x20929f]['isAdded'],_0xb739f1[_0x20929f]['isAddSuggestion']&&delete _0xb739f1[_0x20929f]['isAddSuggestion'],_0xb739f1[_0x20929f]['isRemoveSuggestion']&&delete _0xb739f1[_0x20929f]['isRemoveSuggestion'],_0xb739f1[_0x20929f]['isRemoved']&&(_0xb739f1[_0x20929f]['isIncorrect']=!0x0));}return _0xb739f1['filter'](_0x4b9aad=>!_0x4b9aad['isIncorrect']);}['_makeModelFromTape'](_0x4e7f0a,_0x203396,_0x24f201){const _0xd2860f=new gt(),_0x1c3a25=[],_0x33a8cc=new Map(),_0x3ac978=this['editor']['model'],_0x20fa8=_0x3ac978['schema'],_0x2297e7=[_0xd2860f],_0x217d55={},_0x1dba20={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5f308d=null;const _0x4ff237=[0x0];for(let _0x59e760=0x0;_0x59e760<_0x4e7f0a['length'];_0x59e760++)if('elementStart'===_0x4e7f0a[_0x59e760]['type']){_0x4e7f0a[_0x59e760]['previousPosition']=_0x3ac978['createPositionFromPath'](_0xd2860f,_0x4ff237);const _0x16751b=new ut(_0x4e7f0a[_0x59e760]['item']['name'],_0x4e7f0a[_0x59e760]['item']['getAttributes']());_0x2297e7[0x0]['_appendChild'](_0x16751b),_0x4ff237['push'](0x0),_0x2297e7['unshift'](_0x16751b),_0x4e7f0a[_0x59e760]['nextPosition']=_0x3ac978['createPositionFromPath'](_0xd2860f,_0x4ff237);}else'elementEnd'===_0x4e7f0a[_0x59e760]['type']?(_0x2297e7['shift'](),_0x4e7f0a[_0x59e760]['previousPosition']=_0x3ac978['createPositionFromPath'](_0xd2860f,_0x4ff237),_0x4ff237['pop'](),_0x4ff237[_0x4ff237['length']-0x1]++,_0x4e7f0a[_0x59e760]['nextPosition']=_0x3ac978['createPositionFromPath'](_0xd2860f,_0x4ff237)):(_0x4e7f0a[_0x59e760]['previousPosition']=_0x3ac978['createPositionFromPath'](_0xd2860f,_0x4ff237),_0x5f308d?_0x5f308d['_data']+=_0x4e7f0a[_0x59e760]['item']['data']:_0x5f308d=new mt(_0x4e7f0a[_0x59e760]['item']['data'],_0x4e7f0a[_0x59e760]['item']['getAttributes']()),_0x4e7f0a[_0x59e760+0x1]&&'text'===_0x4e7f0a[_0x59e760+0x1]['type']&&_0xda346(_0x5f308d,_0x4e7f0a[_0x59e760+0x1]['item'])||(_0x2297e7[0x0]['_appendChild'](_0x5f308d),_0x5f308d=null),_0x4ff237[_0x4ff237['length']-0x1]+=_0x4e7f0a[_0x59e760]['item']['offsetSize'],_0x4e7f0a[_0x59e760]['nextPosition']=_0x3ac978['createPositionFromPath'](_0xd2860f,_0x4ff237));for(let _0xe4f4d9=0x0;_0xe4f4d9<_0x4e7f0a['length'];_0xe4f4d9++){const _0x296de3=_0x4e7f0a[_0xe4f4d9]['previousPosition'],_0x3dbced=_0x4e7f0a[_0xe4f4d9]['nextPosition'];for(const _0x1c118b of _0x4e7f0a[_0xe4f4d9]['markersStart'])_0x33a8cc['set'](_0x1c118b,{'start':_0x296de3,'end':null});_0x331d65('isRemoveSuggestion',_0xe4f4d9,_0x296de3,_0x3dbced),_0x331d65('isAddSuggestion',_0xe4f4d9,_0x296de3,_0x3dbced),_0x331d65('isRemoved',_0xe4f4d9,_0x296de3,_0x3dbced),_0x331d65('isAdded',_0xe4f4d9,_0x296de3,_0x3dbced);for(const _0x5c9b77 of _0x4e7f0a[_0xe4f4d9]['markersEnd']){const _0x37dd7c=_0x33a8cc['get'](_0x5c9b77);_0x37dd7c?_0x37dd7c['end']=_0x3dbced:_0x33a8cc['set'](_0x5c9b77,{'start':_0x3dbced,'end':_0x3dbced});}}for(const [_0x5076d9,_0x5d5f06]of _0x33a8cc){const _0x449c10=this['editor']['model']['createRange'](_0x5d5f06['start'],_0x5d5f06['end']);_0xd2860f['markers']['set'](_0x5076d9,_0x449c10);}return _0x1c3a25['sort']((_0x4b7745,_0xb783e3)=>{const _0x167fd9=_0xd2860f['markers']['get']('revision:'+_0x4b7745['id']),_0x11ec85=_0xd2860f['markers']['get']('revision:'+_0xb783e3['id']);return _0x167fd9['start']['isBefore'](_0x11ec85['start'])?-0x1:_0x167fd9['start']['isAfter'](_0x11ec85['start'])?0x1:_0x167fd9['end']['isBefore'](_0x11ec85['end'])?-0x1:_0x167fd9['end']['isAfter'](_0x11ec85['end'])?0x1:'add'===_0x4b7745['type']?-0x1:0x1;}),{'root':_0xd2860f,'changes':_0x1c3a25};function _0x331d65(_0x599001,_0x8a7547,_0x5bb1a8,_0x45db45){const _0x1ca7d3=!!_0x4e7f0a[_0x8a7547][_0x599001],_0x3a3780=_0x1ca7d3?_0x4e7f0a[_0x8a7547][_0x599001]['userId']:null,_0x478877=_0x8a7547===_0x4e7f0a['length']-0x1,_0x3d1616=_0x1dba20[_0x599001][0x0],_0x597bff=_0x20fa8['isObject'](_0x4e7f0a[_0x8a7547]['item']);!_0x217d55[_0x599001]&&_0x1ca7d3?_0x217d55[_0x599001]={'start':_0x5bb1a8,'tapeItem':_0x4e7f0a[_0x8a7547],'userId':_0x3a3780,'type':_0x599001}:_0x217d55[_0x599001]&&!_0x1ca7d3?(_0x217d55[_0x599001]['end']=_0x5bb1a8,_0x3fd9c2(_0x217d55[_0x599001]),_0x217d55[_0x599001]=null):_0x217d55[_0x599001]&&_0x1ca7d3&&_0x217d55[_0x599001]['userId']!==_0x3a3780&&(_0x217d55[_0x599001]['end']=_0x5bb1a8,_0x3d1616&&_0x3d1616['userId']===_0x217d55[_0x599001]['userId']||_0x3fd9c2(_0x217d55[_0x599001]),_0x217d55[_0x599001]={'start':_0x5bb1a8,'tapeItem':_0x4e7f0a[_0x8a7547],'userId':_0x3a3780,'type':_0x599001}),_0x217d55[_0x599001]&&_0x597bff&&('elementStart'!==_0x4e7f0a[_0x8a7547]['type']||_0x3d1616&&_0x3d1616['userId']===_0x3a3780||_0x1dba20[_0x599001]['unshift']({'userId':_0x3a3780,'object':_0x4e7f0a[_0x8a7547]['item'],'change':_0x217d55[_0x599001]}),'elementEnd'===_0x4e7f0a[_0x8a7547]['type']&&_0x3d1616&&_0x3d1616['object']===_0x4e7f0a[_0x8a7547]['item']&&(_0x1dba20[_0x599001]['shift'](),_0x217d55[_0x599001]=_0x3d1616['change'])),_0x217d55[_0x599001]&&_0x478877&&(_0x217d55[_0x599001]['end']=_0x45db45,_0x3fd9c2(_0x217d55[_0x599001]),_0x217d55[_0x599001]=null);}function _0x3fd9c2({start:_0x402c15,end:_0x3483c6,tapeItem:_0x29f8fd,userId:_0x4a9581,type:_0x166a95}){const _0x19cf2b=_0x29f8fd['item'],_0x8bd28b=_0x3ac978['schema']['isBlock'](_0x19cf2b)&&!_0x3ac978['schema']['isLimit'](_0x19cf2b),_0x96f94b=_0x402c15['nodeAfter']==_0x3483c6['parent']&&_0x3483c6['isAtStart'];if(_0x8bd28b&&_0x96f94b)return;const _0x3adb39=_0x3ac978['createRange'](_0x402c15,_0x3483c6),_0x509549=_0x203396['get'](_0x4a9581),_0x27a898=new r({'author':_0x509549,'type':'isAdded'==_0x166a95||'isAddSuggestion'==_0x166a95?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x166a95||'isRemoveSuggestion'==_0x166a95},'createdAt':new Date(),'rootName':_0x24f201});_0x1c3a25['push'](_0x27a898),_0xd2860f['markers']['set']('revision:'+_0x27a898['id'],_0x3adb39);}function _0xda346(_0x28688d,_0x5b14d2){const _0x1523a5=_0x28688d['getAttributes'](),_0x1e483c=_0x5b14d2['getAttributes']();for(const _0x26b810 of _0x1523a5){if(_0x26b810[0x1]!==_0x5b14d2['getAttribute'](_0x26b810[0x0]))return!0x1;_0x1e483c['next']();}return _0x1e483c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xaf9be=>{const _0x3b5d6a=_0xaf9be['markerName']['split'](':')[0x1],_0x3daab8=this['_getChangeFromId'](_0x3b5d6a);if(!_0x3daab8)return null;const _0x43857f='add'==_0x3daab8['type']?'insertion':'deletion',_0x1ef8f9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x43857f];return _0x3daab8['data']['isSuggestion']&&_0x1ef8f9['push']('ck-suggestion-marker-'+_0x43857f+'-new'),this['activeChange']==_0x3daab8&&_0x1ef8f9['push']('ck-suggestion-marker--active'),{'classes':_0x1ef8f9,'attributes':{'data-change-id':_0x3b5d6a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x448c24=>{_0x448c24['on']('element:pre',(_0x32dd75,_0x15e3b2,_0x31e99e)=>{const _0x1b21d2=_0x15e3b2['viewItem']['getChild'](0x0);if(!_0x1b21d2||!_0x1b21d2['is']('element','code'))return;if(!_0x31e99e['consumable']['consume'](_0x1b21d2,{'attributes':['vid_start','vid_end']}))return;const _0x4f2885=_0x15e3b2['modelRange']['start']['nodeAfter'];_0x31e99e['writer']['setAttribute']('vid_start',_0x1b21d2['getAttribute']('vid_start'),_0x4f2885),_0x31e99e['writer']['setAttribute']('vid_end',_0x1b21d2['getAttribute']('vid_end'),_0x4f2885);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x31f377=>{_0x31f377['on']('element',(_0x465863,_0x4fd3e5,_0x25afca)=>{if(!_0x25afca['consumable']['consume'](_0x4fd3e5['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4fd3e5['modelRange']['isCollapsed'])return;const _0x439b3e=_0x4fd3e5['modelRange']['start']['nodeAfter'];_0x439b3e['hasAttribute']('vid_start')||_0x439b3e['hasAttribute']('vid')||(_0x25afca['writer']['setAttribute']('vid_start',_0x4fd3e5['viewItem']['getAttribute']('vid_start'),_0x439b3e),_0x25afca['writer']['setAttribute']('vid_end',_0x4fd3e5['viewItem']['getAttribute']('vid_end'),_0x439b3e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xcde1e9=>_0xcde1e9['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x43ea01,[,_0xcdde09])=>{['vid_start','vid_end','vid']['includes'](_0xcdde09)&&(_0x43ea01['return']=!0x0,_0x43ea01['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xd64716=>{_0xd64716['on']('attribute:vid',(_0x1638df,_0x5dea4a,_0x50aa3b)=>{if('\x20'!=_0x5dea4a['item']['data']||_0x5dea4a['item']['parent']['maxOffset']>0x1)return;if(!_0x50aa3b['consumable']['consume'](_0x5dea4a['item'],_0x1638df['name']))return;const _0x13f449=_0x50aa3b['writer'],_0x4c40bc=_0x50aa3b['mapper']['toViewRange'](_0x5dea4a['range']);_0x13f449['wrap'](_0x4c40bc,_0x13f449['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1ab87d){const _0x1c3daa=_0x1ab87d['plugins']['get']('RevisionViewer');return(_0x43048e,_0x24f1b2,_0x5d0d09)=>{const _0x3fe9ad=_0x24f1b2['markerName']['split'](':')[0x1],_0x4af00e=_0x1c3daa['_getChangeFromId'](_0x3fe9ad);if(!_0x4af00e)return null;const _0x587055='add'==_0x4af00e['type']?'split':'merge';if(!_0x5d0d09['consumable']['test'](_0x24f1b2['markerRange'],_0x43048e['name']))return;const _0x1e0ae1=_0x24f1b2['markerRange']['getWalker'](),_0x1a9448=_0x24f1b2['markerRange']['start'],_0x28fde8=_0x1ab87d['model']['schema'];let _0x56505d=null,_0x113af4=null,_0x166592=!0x1,_0x4cbdd2=!0x1;for(const _0x8dcc0 of _0x1e0ae1){const _0x4ea802=_0x8dcc0['item'];_0x166592=_0x166592||_0x28fde8['isContent'](_0x4ea802);const _0x120850=_0x5d0d09['mapper']['toViewElement'](_0x4ea802);if(_0x120850&&_0x120850['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x8dcc0['type']&&(_0x28fde8['isBlock'](_0x4ea802)&&!_0x28fde8['isLimit'](_0x4ea802)&&(_0x4ea802['nextSibling']||_0x1a9448['isAtEnd']?_0x56505d&&_0x56505d['parent']==_0x4ea802||(_0x56505d=_0x4ea802,_0x306f41(_0x8dcc0['previousPosition']),_0x4cbdd2=!0x0):_0x113af4=_0x113af4||_0x8dcc0['previousPosition']));}function _0x306f41(_0x168216){const _0x85960c=_0x5d0d09['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x587055}),_0x135846=_0x5d0d09['mapper']['toViewPosition'](_0x168216);_0x4af00e['data']['isSuggestion']&&_0x5d0d09['writer']['addClass']('ck-suggestion-marker-'+_0x587055+'-new',_0x85960c),_0x1c3daa['activeChange']==_0x4af00e&&_0x5d0d09['writer']['addClass']('ck-suggestion-marker--active',_0x85960c),_0x5d0d09['writer']['insert'](_0x135846,_0x85960c),_0x5d0d09['mapper']['bindElementToMarker'](_0x85960c,_0x24f1b2['markerName']);}_0x166592||_0x4cbdd2||!_0x113af4||_0x306f41(_0x113af4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x35af21,_0x303422,_0xaafb34)=>{const _0x24678b=_0xaafb34['mapper']['markerNameToElements'](_0x303422['markerName']);if(_0x24678b){for(const _0x4ef7f1 of _0x24678b)(_0x4ef7f1['hasClass']('ck-suggestion-marker-split')||_0x4ef7f1['hasClass']('ck-suggestion-marker-merge'))&&(_0xaafb34['mapper']['unbindElementFromMarkerName'](_0x4ef7f1,_0x303422['markerName']),_0xaafb34['writer']['remove'](_0x4ef7f1));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1484c9,_0x474ccf,_0x3b1a6b)=>{const _0x15639e=_0x474ccf['markerName']['split'](':')[0x1],_0x255c84=this['_getChangeFromId'](_0x15639e);if(!_0x255c84)return null;const _0x2c4992='add'==_0x255c84['type']?'split':'merge';if(_0x3b1a6b['consumable']['test'](_0x474ccf['markerRange'],_0x1484c9['name']))for(const _0x25d910 of _0x474ccf['markerRange']['getItems']()){if(!_0x25d910['is']('element','softBreak'))continue;const _0x207bb8=_0x3b1a6b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c4992}),_0x4abde6=_0x3b1a6b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x25d910));_0x255c84['data']['isSuggestion']&&_0x3b1a6b['writer']['addClass']('ck-suggestion-marker-'+_0x2c4992+'-new',_0x207bb8),this['activeChange']==_0x255c84&&_0x3b1a6b['writer']['addClass']('ck-suggestion-marker--active',_0x207bb8),_0x3b1a6b['writer']['insert'](_0x4abde6,_0x207bb8),_0x3b1a6b['mapper']['bindElementToMarker'](_0x207bb8,_0x474ccf['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3980ba=>{for(const _0x148be6 of this['editor']['model']['document']['getRootNames']()){const _0x116275=this['editor']['model']['document']['getRoot'](_0x148be6),_0x26af4a=this['editor']['editing']['view']['document']['getRoot'](_0x148be6);if(_0x26af4a){const _0x29c586=_0x116275['getAttribute']('revisionHistoryAttachChange');if(_0x3980ba['removeAttribute']('data-change-id',_0x26af4a),_0x3980ba['removeClass']('ck-revision-history-root-add',_0x26af4a),_0x3980ba['removeClass']('ck-revision-history-root-remove',_0x26af4a),_0x3980ba['removeClass']('ck-revision-history-root--active',_0x26af4a),_0x29c586){const _0x56aa1d=this['_getChangeFromId'](_0x29c586);if(!_0x56aa1d)return null;_0x3980ba['setAttribute']('data-change-id',_0x29c586,_0x26af4a),_0x3980ba['addClass']('ck-revision-history-root-'+_0x56aa1d['type'],_0x26af4a),this['activeChange']==_0x56aa1d&&_0x3980ba['addClass']('ck-revision-history-root--active',_0x26af4a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x10d996=>'revision-comment:'+_0x10d996,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x56bd47=>'revision-suggestion:'+_0x56bd47,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x46f5d2=>({'name':'suggestion:'+_0x46f5d2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4b1f32=>{const _0x15d741=_0x4b1f32['markerName']['split'](':')[0x1];return'insertion'!=_0x15d741&&'deletion'!=_0x15d741?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x15d741]};}}),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',(_0x5a7ee2,_0x883ea2,_0x27fc09)=>{const _0x504002=_0x27fc09['mapper']['markerNameToElements'](_0x883ea2['markerName']);if(_0x504002){for(const _0x3f8161 of _0x504002)_0x3f8161['is']('uiElement')&&(_0x27fc09['mapper']['unbindElementFromMarkerName'](_0x3f8161,_0x883ea2['markerName']),_0x27fc09['writer']['remove'](_0x3f8161));}},{'priority':'high'});}['_getChangeFromId'](_0x24421a){return this['_changeIdToChange']['get'](_0x24421a);}['_getViewForChange'](_0x238ae6){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x238ae6),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3a70c2,_0x5e9453,_0x32c75b,_0xf7556d)=>{_0xf7556d&&this['_balloon']['remove'](_0xf7556d),_0x32c75b&&(this['_balloon']['add']({'view':_0x32c75b,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x273d2d=this['editor']['editing'],_0x42fa2b=this['_getChangeFromId'](_0x32c75b['changeId']);let _0x4da1f4;if(_0x42fa2b['data']['isOnRoot']){const _0x38bf78=_0x273d2d['view']['getDomRoot'](_0x42fa2b['rootName']);_0x4da1f4=Array['from'](_0x38bf78['getClientRects']());}else{const _0x4f0fe8=this['editor']['model']['markers']['get']('revision:'+_0x32c75b['changeId']);_0x4da1f4=Array['from'](_0x273d2d['mapper']['markerNameToElements'](_0x4f0fe8['name']))['map'](_0x489f2f=>_0x273d2d['view']['domConverter']['mapViewToDom'](_0x489f2f))['map'](_0x3b8603=>Array['from'](_0x3b8603['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4da1f4[0x0];return _0x4da1f4['find'](_0xc323b9=>_0xc323b9['top']-0x3<=this['_activeViewTarget']['y']&&_0xc323b9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xc323b9['left']-0x3<=this['_activeViewTarget']['x']&&_0xc323b9['right']+0x3>=this['_activeViewTarget']['x'])||_0x4da1f4[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x39d894,_0x48a1f0,_0x18911d,_0x3c812b)=>{this['activeView']=_0x18911d?this['_getViewForChange'](_0x18911d):null,this['editor']['model']['change'](()=>{const _0x236a4f=this['editor']['editing'];_0x3c812b&&(_0x3c812b['data']['isOnRoot']?_0x236a4f['view']['change'](_0x461739=>{_0x461739['removeClass']('ck-revision-history-root--active',_0x236a4f['view']['document']['getRoot'](_0x3c812b['rootName']));}):_0x236a4f['reconvertMarker']('revision:'+_0x3c812b['id'])),_0x18911d&&(_0x18911d['data']['isOnRoot']?_0x236a4f['view']['change'](_0x1ef0e1=>{_0x1ef0e1['addClass']('ck-revision-history-root--active',_0x236a4f['view']['document']['getRoot'](_0x18911d['rootName']));}):_0x236a4f['reconvertMarker']('revision:'+_0x18911d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5e1d60,_0x4fa600)=>{if(this['activeChange'])return;const _0x3d8b60=this['_findChangeIdFromDomTarget'](_0x4fa600['target']),_0x45eb6a=this['_changeIdToChange']['get'](_0x3d8b60);_0x45eb6a?(this['_activeViewTarget']={'x':_0x4fa600['domEvent']['x'],'y':_0x4fa600['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x45eb6a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4e87da,_0x14cf20)=>{const _0x2e6e12=this['_findChangeIdFromDomTarget'](_0x14cf20['target']),_0x19e88f=this['_changeIdToChange']['get'](_0x2e6e12);_0x19e88f?(this['_activeViewTarget']={'x':_0x14cf20['domEvent']['x'],'y':_0x14cf20['domEvent']['y']},_0x19e88f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x19e88f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x288aba){do{const _0x446fd5=_0x288aba['getAttribute']('data-change-id');if(_0x446fd5)return _0x446fd5;_0x288aba=_0x288aba['parent'];}while(_0x288aba);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x372b25=>{for(const _0x55f92c of this['editor']['model']['markers'])_0x372b25['removeMarker'](_0x55f92c);});}}function X(_0x3783c1,_0x1ebeaa){return(_0xed6b71,_0x841f84,_0x286285)=>{if(!_0x286285['consumable']['test'](_0x841f84['markerRange'],_0xed6b71['name']))return;const _0x5900d1=_0x841f84['markerRange']['getWalker'](),_0x54fac6=_0x841f84['markerRange']['start'],_0x3a9bff=_0x3783c1['model']['schema'];let _0x4b1f1f=null,_0x37e38d=null,_0x3fcb0d=!0x1,_0x3a9adf=!0x1;for(const _0x46de34 of _0x5900d1){const _0x1ce57a=_0x46de34['item'];_0x3fcb0d=_0x3fcb0d||_0x3a9bff['isContent'](_0x1ce57a);const _0x542b33=_0x286285['mapper']['toViewElement'](_0x1ce57a);if(_0x542b33&&_0x542b33['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46de34['type']&&(_0x3a9bff['isBlock'](_0x1ce57a)&&!_0x3a9bff['isLimit'](_0x1ce57a)&&(_0x1ce57a['nextSibling']||_0x54fac6['isAtEnd']?_0x4b1f1f&&_0x4b1f1f['parent']==_0x1ce57a||(_0x4b1f1f=_0x1ce57a,_0x31ba19(_0x46de34['previousPosition']),_0x3a9adf=!0x0):_0x37e38d=_0x37e38d||_0x46de34['previousPosition']));}function _0x31ba19(_0x4c2083){const _0x143250=_0x286285['mapper']['toViewPosition'](_0x4c2083),_0x13f36b=_0x286285['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1ebeaa});_0x286285['writer']['insert'](_0x143250,_0x13f36b),_0x286285['mapper']['bindElementToMarker'](_0x13f36b,_0x841f84['markerName']);}_0x3fcb0d||_0x3a9adf||!_0x37e38d||_0x31ba19(_0x37e38d);};}class wt extends _0x1baf86{constructor(_0x461274){super(_0x461274);const _0x53c188=_0x461274['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x53c188,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x53c188,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x20977f=this['editor'],_0x5e2a26=_0x20977f['plugins']['get'](m),_0x168068=_0x5e2a26['isReady']?_0x5e2a26['diff']['newRevisionId']:null;_0x20977f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x168068);}['refresh'](){const {isReady:_0x186774,isEnabled:_0x30dfa2,repository:_0x296528,diff:_0xfb728c}=this['editor']['plugins']['get'](m),_0x3ed95f=_0xfb728c&&_0x296528['getLaterVisibleRevision'](_0xfb728c['newRevisionId']);this['isEnabled']=_0x186774&&_0x30dfa2&&Boolean(_0x3ed95f);}}class pt extends _0x1baf86{['_step'];constructor(_0x529086,{direction:_0x3cf4d5}){super(_0x529086);const _0x16ed98=_0x529086['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x3cf4d5?0x1:-0x1,this['listenTo'](_0x16ed98,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x16ed98,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x16ed98,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x10417d=this['editor'],_0x2195f3=_0x10417d['plugins']['get'](m),{isNavigationMode:_0x5649c9,currentChangeNumber:_0x6dd7e8}=_0x2195f3;let _0x5c1770;if(_0x2195f3['activeChange']=_0x5649c9?_0x2195f3['diff']['changes']['get'](_0x6dd7e8+this['_step']):_0x2195f3['diff']['changes']['first'],_0x2195f3['activeChange']['data']['isOnRoot'])_0x5c1770=_0x10417d['editing']['view']['getDomRoot'](_0x2195f3['activeChange']['rootName']);else{const _0x49fdd7=_0x10417d['model']['markers']['get']('revision:'+_0x2195f3['activeChange']['id']);_0x5c1770=_0x4b86d3(_0x10417d['editing'],_0x49fdd7);}_0x389bf5({'target':_0x5c1770,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x36fc88,currentChangeNumber:_0x5749c3,numberOfChanges:_0x55b492,isReady:_0x31affb,isEnabled:_0xa5998e}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0xa5998e&&_0x31affb&&_0x55b492)&&(!_0x36fc88||(0x1===this['_step']?_0x5749c3<_0x55b492-0x1:_0x5749c3>0x0));}}class _i extends _0x745a8d{constructor(_0x3e6748){super(_0x3e6748);const _0x331cd9=this['bindTemplate'],_0x334c46=new _0x537db8(_0x3e6748),_0xcc729b=new _0x537db8(_0x3e6748);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',(_0x2439b0,_0x3270c5)=>_0x2439b0&&_0x3270c5>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x297974,_0x38050d,_0x11e345,_0x45ebb2)=>{if(!_0x297974)return g(_0x3e6748,'Loading...');if(!_0x11e345)return g(_0x3e6748,'No\x20changes');const _0x4ad9f0=g(_0x3e6748,'NUMBER_OF_CHANGES',_0x11e345);return _0x45ebb2?g(_0x3e6748,'X_OF_Y_CHANGES',[_0x38050d+0x1,_0x11e345]):_0x4ad9f0;}),_0x334c46['set']({'label':g(_0x3e6748,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x422ec8}),_0xcc729b['set']({'label':g(_0x3e6748,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x233b7f}),_0x334c46['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xcc729b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x334c46['on']('execute',()=>this['fire']('execute','backward')),_0xcc729b['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',_0x331cd9['if']('_isStatusLabelVisible','ck-hidden',_0x2625c8=>!_0x2625c8)]},'children':[{'text':_0x331cd9['to']('isNavigationMode',_0x37d9f4=>_0x37d9f4?g(_0x3e6748,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x3e6748,'Total')+':\x20')}]},{'text':_0x331cd9['to']('_statusText')}]},new _0x4ec420(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x334c46,_0xcc729b]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4eb38d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5f3ee5=this['editor']['editing']['view'];_0x5f3ee5['change'](_0x567df5=>{for(const _0x335494 of _0x5f3ee5['document']['roots'])_0x567df5['addClass'](ce,_0x335494);});}['hide'](){const _0x2cacdf=this['editor']['editing']['view'];_0x2cacdf['change'](_0x1550e7=>{for(const _0x5f5be6 of _0x2cacdf['document']['roots'])_0x1550e7['removeClass'](ce,_0x5f5be6);});}}class R extends _0x4eb38d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x2f2ce1=this['editor'],_0x432b13=_0x2f2ce1['plugins']['get'](m),_0xbcb0b8=_0x2f2ce1['plugins']['get'](le);_0x2f2ce1['ui']['componentFactory']['add']('exitToEditing',_0x330935=>{const _0x1a4a0b=new _0x537db8(_0x330935);return _0x1a4a0b['set']({'label':g(_0x330935,'Back\x20to\x20editing'),'icon':_0x566aea,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1a4a0b,'execute',()=>{_0x2f2ce1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1a4a0b;}),_0x2f2ce1['ui']['componentFactory']['add']('restoreRevision',_0x1b4bb4=>{const _0x2f15f1=new _0x537db8(_0x1b4bb4);return _0x2f15f1['set']({'label':g(_0x1b4bb4,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2f15f1['bind']('isEnabled')['to'](_0x2f2ce1['commands']['get']('restoreRevision')),this['listenTo'](_0x2f15f1,'execute',()=>_0x2f2ce1['execute']('restoreRevision')),_0x2f15f1;}),_0x2f2ce1['ui']['componentFactory']['add']('changesNavigation',_0x59b71b=>{const _0x4ea05b=new _i(_0x59b71b),_0x158238=_0x2f2ce1['commands']['get']('showPreviousChange'),_0x17c0f3=_0x2f2ce1['commands']['get']('showNextChange');return _0x4ea05b['bind']('isBackwardNavigationEnabled')['to'](_0x158238,'isEnabled'),_0x4ea05b['bind']('isForwardNavigationEnabled')['to'](_0x17c0f3,'isEnabled'),_0x4ea05b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x432b13),this['listenTo'](_0x4ea05b,'execute',(_0x375518,_0x2ed95c)=>{_0x2f2ce1['execute']('forward'===_0x2ed95c?'showNextChange':'showPreviousChange');}),_0x4ea05b;}),_0xbcb0b8['show'](),_0x432b13['on']('change:isReady',(_0x5c1d19,_0x3019a4,_0x57356e)=>{_0x57356e?_0xbcb0b8['hide']():_0xbcb0b8['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x4cf29d,_0x562ffc){super(_0x4cf29d,_0x562ffc);const _0x29355f=this['bindTemplate'];this['set']({'label':g(_0x4cf29d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x4cf29d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x29355f['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 _0x8c2107=this['fieldView']['element'];this['_tooltipString']=_0x8c2107['scrollWidth']>_0x8c2107['clientWidth']&&_0x8c2107['value']||'';}}class oi extends _0x745a8d{constructor(_0x52d060,_0x278cca,_0x6fbb8c){super(_0x52d060);const _0x52c41a=new _0x22f298();_0x52c41a['set']({'content':_0x40b491,'viewBox':'0\x200\x2011\x2010'});const _0x5df436=['ck','ck-revision-history-sidebar__revision-author'];_0x6fbb8c&&_0x5df436['push']('ck-revision-history-sidebar__revision-author_creator');const _0x36e527=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x52d060,_0x6fbb8c?'Revision\x20creator':'Revision\x20author')},'children':[_0x52c41a,_0x278cca['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5df436},'children':_0x36e527});}}function ni(_0x566db3,_0x3b0072){const _0x11f7e2=_0x566db3['bindTemplate'],_0xa167ff=_0x566db3['locale'],_0x5ec049=_0x2fa9d9(_0xa167ff);_0x5ec049['panelPosition']='sw';const _0x22f037=function(_0xd00997,_0x2374e8){const _0x44eba9=function(_0x4edd65,_0x315871){const _0x554ec1=_0x4edd65['locale'],_0x1b31c5={'Compare\x20against\x20selected':g(_0x554ec1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x554ec1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x554ec1,'Restore\x20this\x20revision')};return _0x315871['map'](_0x5994cf=>{const _0x2a54ab=_0x1b31c5[_0x5994cf['name']];return _0x2a54ab&&_0x2a54ab!==_0x5994cf['name']&&(_0x5994cf['name']=_0x2a54ab),_0x5994cf;});}(_0xd00997,_0x2374e8),_0x474998=new _0x5c68d2();for(const _0xb39350 of _0x44eba9){const _0x25c656={'type':'button','model':new to({'label':_0xb39350['name'],'class':_0xb39350['class'],'withText':!0x0,'role':'menuitem','_action':_0xb39350['action']})};_0x25c656['model']['bind']('isEnabled')['to'](_0xd00997,'isActionsDropdownOpen',_0xe5a24f=>'function'!=typeof _0xb39350['isEnabled']||(!_0xe5a24f||_0xb39350['isEnabled'](_0xd00997))),_0x474998['add'](_0x25c656);}return _0x474998;}(_0x566db3,_0x3b0072);return _0x566db3['bind']('isActionsDropdownOpen')['to'](_0x5ec049,'isOpen'),_0x5ec049['buttonView']['set']({'label':g(_0xa167ff,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xfbc26d}),_0x5ec049['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x11f7e2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x11f7e2['to'](_0x2db976=>_0x2db976['stopPropagation']())}}),_0x5ec049['on']('execute',_0x1c28bc=>{_0x566db3['isReady']&&'function'==typeof _0x1c28bc['source']['_action']&&_0x1c28bc['source']['_action'](_0x566db3);}),_0x49e3dc(_0x5ec049,_0x22f037,{'role':'menu'}),_0x5ec049['listenTo'](_0x566db3,'change:isActionsDropdownOpen',(_0x4ec97a,_0x39c678,_0x5cf806)=>{if(_0x5cf806)for(const _0x51686e of _0x5ec049['listView']['items']){const _0x49914f=_0x51686e['children']['first'],_0x239e63=_0x3b0072['find'](_0x3aa1b9=>_0x3aa1b9['action']===_0x49914f['_action'])['isVisible'];_0x51686e['isVisible']=void 0x0===_0x239e63||_0x239e63(_0x566db3);}}),_0x5ec049;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1c922f(_0x745a8d){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x497fbd,_0x45f8a7,_0xbe222e,_0x434276){super(_0x497fbd);const _0x5a5f95=this['bindTemplate'],_0x159e34=function(_0x47d668,_0x3a1106){const _0x42a488=Array['from'](_0x3a1106['authors'])['filter'](_0x509ac3=>_0x509ac3!=_0x3a1106['creator']);return _0x3a1106['creator']&&_0x42a488['unshift'](_0x3a1106['creator']),_0x42a488['map'](_0x45797d=>new oi(_0x47d668,_0x45797d,_0x45797d==_0x3a1106['creator']));}(_0x497fbd,_0x45f8a7);this['id']=_0x45f8a7['id'],this['_revision']=_0x45f8a7,this['_requireRevisionName']=_0x434276,this['bind']('name','createdAt')['to'](_0x45f8a7),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x22c410=>{return _0x3e1de7=_0x497fbd['uiLanguage'],(_0x5aa59d=_0x22c410)['toLocaleDateString'](_0x3e1de7,{'month':'long','day':'numeric'})+',\x20'+_0x5aa59d['toLocaleTimeString'](_0x3e1de7,{'hour':'numeric','minute':'numeric'});var _0x3e1de7,_0x5aa59d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x497fbd,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4a2d34=>_0x4a2d34||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x57b09f,_0x1a4646)=>_0x57b09f&&_0x1a4646),this['revisionActionsView']=_0xbe222e&&_0xbe222e['length']?ni(this,_0xbe222e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5a5f95['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5a5f95['if']('isEnabled','ck-disabled',_0x52ff44=>!_0x52ff44),_0x5a5f95['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5a5f95['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5a5f95['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':_0x5a5f95['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':_0x159e34}]},this['revisionActionsView']],'on':{'click':_0x5a5f95['to'](_0xf9075b=>{_0xf9075b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2082b5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2082b5,'change',()=>{this['_requireRevisionName']&&!_0x2082b5['value']||this['fire']('setName',{'id':this['id'],'name':_0x2082b5['value']}),_0x2082b5['value']||(_0x2082b5['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x533861,_0x20f921){const _0x259df7=_0x9c31d5['fromJSDate'](_0x533861)['setLocale'](_0x20f921),_0x561a32=_0x9c31d5['local'](),_0x49abad=_0x561a32['minus']({'days':0x1})['startOf']('day');let _0x1d4694,_0x496b90;return _0x259df7['hasSame'](_0x561a32,'day')?(_0x1d4694=_0x259df7['startOf']('day')['toJSDate'](),_0x496b90=_0x259df7['toRelativeCalendar']()):_0x259df7['hasSame'](_0x49abad,'day')?(_0x1d4694=_0x49abad['toJSDate'](),_0x496b90=_0x259df7['toRelativeCalendar']()):_0x259df7['hasSame'](_0x561a32,'week')?(_0x1d4694=_0x259df7['startOf']('week')['toJSDate'](),_0x496b90=_0x259df7['weekdayLong']||''):_0x259df7['hasSame'](_0x561a32,'year')?(_0x1d4694=_0x259df7['startOf']('month')['toJSDate'](),_0x496b90=_0x259df7['monthLong']||''):(_0x1d4694=_0x259df7['startOf']('year')['toJSDate'](),_0x496b90=String(_0x259df7['year'])),{'startDate':_0x1d4694,'localizedPeriodName':_0x496b90};}class mi extends _0x745a8d{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2a96b7,_0x4de878,_0x536de9,_0x24fceb){super(_0x2a96b7);const _0x366a3f=vi(_0x4de878,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4de878,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x536de9,this['_requireRevisionName']=_0x24fceb,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':_0x366a3f}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4f4c13){const _0x138bb7=new ai(this['locale'],_0x4f4c13,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x138bb7);}['removeRevision'](_0x30c358){const _0x4edcb1=this['revisionViews']['find'](_0x3e78a6=>_0x3e78a6['id']===_0x30c358['id']);this['revisionViews']['remove'](_0x4edcb1);}}class as extends _0x745a8d{constructor(_0x3f598a){super(_0x3f598a);const _0x11da5a=new _0x22f298();_0x11da5a['content']=_0x2f0552,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x11da5a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x3f598a,'Revision\x20history')]}]});}}class di extends _0x745a8d{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x59336b,_0x5c41b8,_0xc8aa7c,_0x260fd7){super(_0x59336b);const _0x3f75d1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5c41b8,this['_revisionActions']=_0xc8aa7c,this['_requireRevisionName']=_0x260fd7,this['on']('select',(_0x26954f,_0x464d78)=>{this['fire']('revisionSelected',_0x464d78);}),this['on']('setName',(_0x289077,_0x86cad5)=>{this['fire']('revisionSetName',_0x86cad5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x59336b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3f75d1['if']('isEnabled','ck-disabled',_0xb229a9=>!_0xb229a9)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xf737ab of this['_revisions'])this['_addRevision'](_0xf737ab);this['_revisions']['on']('add',(_0x1fd826,_0x28acea)=>{this['_addRevision'](_0x28acea);}),this['_revisions']['on']('remove',(_0x9dbf88,_0x25ee67)=>{this['_removeRevision'](_0x25ee67);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4cd231=>_0x4cd231['revisionViews']['map'](_0x216ddb=>_0x216ddb))['flat']();}['selectRevision'](_0x1ce4a5){for(const _0x1668ee of this['revisionViews'])_0x1ce4a5&&_0x1ce4a5['id']===_0x1668ee['id']?_0x1668ee['select']():_0x1668ee['deselect']();}['highlightRevisions'](_0x3ffff6){for(const _0x36811e of this['revisionViews'])_0x3ffff6['some'](({id:_0x276a84})=>_0x276a84===_0x36811e['id'])?_0x36811e['highlight']():_0x36811e['unhighlight']();}['_addRevision'](_0x4acfbc){const _0x25fdf3=vi(_0x4acfbc['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2729ed=this['timePeriodViews']['get'](0x0);_0x2729ed&&_0x2729ed['startDate']['getTime']()===_0x25fdf3['getTime']()||(_0x2729ed=new mi(this['locale'],_0x25fdf3,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2729ed)),_0x2729ed['addRevision'](_0x4acfbc);}['_removeRevision'](_0x37791e){const _0x46c9ee=vi(_0x37791e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x46c9ee)['removeRevision'](_0x37791e);}['_getTimePeriodViewByStartDate'](_0x187b2b){return this['timePeriodViews']['find'](_0x366e4b=>_0x366e4b['startDate']['getTime']()===_0x187b2b['getTime']());}}class d extends _0x4eb38d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
_0x1f2948(_0xe0216){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x6c1542,_0x4eaa13){super(_0x4eaa13),this['sourceElement']=_0x6c1542,this['model']['document']['createRoot']();const _0xa78889=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0xa78889);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x7e1457,_0x5d66b2){const _0x1bc8e8=new this(_0x7e1457,_0x5d66b2);return await _0x1bc8e8['initPlugins'](),await _0x1bc8e8['ui']['init'](_0x7e1457),await _0x1bc8e8['data']['init'](_0x1bc8e8['config']['get']('initialData')||''),_0x1bc8e8['fire']('ready'),_0x1bc8e8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x3edab6{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20412a){function _0x56adc4(_0xb26ff3){return _0xb26ff3['map'](_0x248aee=>String['fromCharCode'](_0x248aee))['join']('');}super(_0x20412a),this['result']='end',_0x20412a[_0x56adc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56adc4([0x76,0x69,0x65,0x77])][_0x56adc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56adc4([0x61,0x75,0x74,0x6f]),_0x20412a[_0x56adc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x56adc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56adc4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x56adc4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x56adc4([0x6f,0x6b])});}}class k extends _0x3edab6{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x201218){if(super(_0x201218),!this['editor']['config']['get']('revisionHistory'))throw new _0x5203b4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x13f6bd=>this['_showRevisionViewer']({..._0x13f6bd,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1fe6b9=>this['_closeRevisionViewer'](_0x1fe6b9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x394784=>this['_restoreRevision'](_0x394784)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4aab25){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4aab25;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x16d990){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x16d990);}['getRevision'](_0x5889b3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5889b3);}['getRevisions'](_0x3e1ab4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3e1ab4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3cf8cc=this['editor'],_0x2f571a=_0x16e123(_0x3cf8cc,p),_0x237aa2=_0x3cf8cc['plugins']['get']('RevisionTracker'),_0x4b4ad3=_0x3cf8cc['plugins']['get']('Users')['users'];return _0x2f571a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2f571a['lazyRoots'],(_0x2f571a['plugins']['push'](_t,m,R,class extends _0x3edab6{static get['requires'](){return[m,'Users'];}['init'](){const _0x482fb6=this['editor']['plugins']['get']('Users');for(const _0x5696e0 of _0x4b4ad3)_0x5696e0['isAnonymous']||_0x482fb6['getUser'](_0x5696e0['id'])||_0x482fb6['addUser'](_0x5696e0);const _0x5e5af1=_0x237aa2['repository']['getRevisions']();let _0x5b6246=null;const _0x35e0b7=this['editor']['plugins']['get']('RevisionViewer');_0x35e0b7['adapter']=_0x237aa2['adapter'],_0x35e0b7['bind']('isEnabled')['to'](_0x237aa2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3cf8cc,'isReadOnly',_0x39025a=>!_0x39025a);for(const _0x197b44 of _0x5e5af1){const _0x309c51=null===_0x197b44['creator'];if(_0x309c51&&_0x197b44['toVersion']===_0x197b44['fromVersion'])continue;const _0x3e275f=_0x197b44['toJSON']();_0x35e0b7['addRevisionData'](_0x3e275f,(_0x48d7bb,_0x3e87a1,_0x45207e)=>{if(_0x309c51){if(_0x5b6246)_0x5b6246['_update'](_0x48d7bb,_0x3e87a1);else{if(!_0x3e87a1){const _0x4448d7=_0x45207e['toJSON']();_0x4448d7['id']=_0x3f13b1(),_0x237aa2['saveRevision'](_0x4448d7,_0x45207e['toVersion'])['then'](_0x2a8860=>{_0x5b6246=_0x2a8860;});}}}else _0x197b44['_update'](_0x48d7bb,_0x3e87a1);});}}},d),_0x2f571a);}['_enhanceShowRevisionViewerCallback'](){const _0x4c9ae=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1572b1=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4c4c5c=this['editor']['plugins']['get']('Autosave');await _0x4c4c5c['save']();}else await _0x1572b1['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5baf8e=this['editor']['plugins']['get']('Dialog');_0x5baf8e['isOpen']&&_0x5baf8e['hide']();}const _0x4aa50b=this['_getRevisionViewerEditorConfig']();return _0x4c9ae(_0x4aa50b)['then'](_0x3c882e=>{return(this['_viewerEditor']=_0x3c882e,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'),_0x3c882e);})['catch'](_0x97ee1f=>(console['error'](_0x97ee1f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x312bd9=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'](),_0x312bd9(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x53b8ef=this['editor']['plugins']['get']('Annotations');_0x53b8ef['refreshVisibility'](),_0x53b8ef['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2d406c){const _0x251054=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x355e0c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2e5016=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2e5016,_0x2d406c)['then'](_0x554394=>(_0x355e0c['style']['display']='block',_0x251054['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x554394));}['_closeRevisionViewer'](_0x3d870f){const _0x3c4314=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3c4314['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3d870f['destroy']();}async['_restoreRevision'](_0x5037a5){const _0x10ef55=this['editor'],_0x256ebf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x175be1=_0x10ef55['plugins']['get']('RevisionTracker'),_0x2ac194=_0x10ef55['plugins']['get']('RevisionHistoryUtils'),_0xc5ae55=_0x256ebf['repository']['getRevision'](_0x5037a5);let _0x1d65fc,_0x75ab36,_0x4d2b86;try{await _0x2ac194['loadRevisionData'](_0xc5ae55,this['adapter']),_0x1d65fc=_0x2ac194['getRevisionDocumentData'](_0xc5ae55),_0x75ab36=_0x2ac194['getRevisionRootsAttributes'](_0xc5ae55);}catch(_0x32e682){return void console['error'](_0x32e682);}_0x10ef55['model']['change'](_0x2ff3c0=>{for(const _0x2caf7a of Array['from'](_0x10ef55['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2ff3c0['removeMarker'](_0x2caf7a);}),_0x256ebf['isReady']=!0x1,_0x10ef55['model']['enqueueChange'](_0x45f552=>{_0x45f552['setSelection'](null),_0x45f552['removeSelectionAttribute'](_0x10ef55['model']['document']['selection']['getAttributeKeys']());const _0x13e25f=Object['keys'](_0x1d65fc);for(const _0x36388d of _0x10ef55['model']['document']['roots'])'$graveyard'!=_0x36388d['rootName']&&_0x36388d['isAttached']()&&!_0x13e25f['includes'](_0x36388d['rootName'])&&_0x45f552['detachRoot'](_0x36388d);for(const _0x5fbbab of _0x13e25f){let _0x4306c0=_0x10ef55['model']['document']['getRoot'](_0x5fbbab);_0x4306c0&&_0x4306c0['isAttached']()||(_0x4306c0=_0x45f552['addRoot'](_0x5fbbab));const _0x276aff=_0x75ab36[_0x5fbbab],_0x404d68=Object['keys'](_0x276aff),_0x4cd78e=_0x1d65fc[_0x5fbbab];for(const _0x37e2b of _0x4306c0['getAttributeKeys']())_0x404d68['includes'](_0x37e2b)||_0x45f552['removeAttribute'](_0x37e2b,_0x4306c0);for(const _0x3cca6d of _0x404d68)_0x45f552['setAttribute'](_0x3cca6d,_0x75ab36[_0x5fbbab][_0x3cca6d],_0x4306c0);_0x45f552['remove'](_0x45f552['createRangeIn'](_0x4306c0)),_0x45f552['insert'](_0x10ef55['data']['parse'](_0x4cd78e,_0x4306c0),_0x4306c0,0x0);}});const _0x207535=g(_0x10ef55['locale'],'Restored');if(_0xc5ae55['name'])_0x4d2b86=-0x1==_0xc5ae55['name']['indexOf'](_0x207535)?_0x207535+':\x20'+_0xc5ae55['name']:_0xc5ae55['name'];else _0x4d2b86=_0x207535+':\x20'+(_0xc5ae55['createdAt']['toLocaleDateString'](_0x10ef55['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xc5ae55['createdAt']['toLocaleTimeString'](_0x10ef55['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x175be1['saveRevision']({'name':_0x4d2b86}),_0x256ebf['isReady']=!0x0,_0x10ef55['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,de as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
|
|
28
|
+
_t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x1af2b1){super(_0x1af2b1),this['_revisionViewer']=_0x1af2b1['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0xd69048=this['_revisionsRepository']['_revisions'],_0x42fbc6=this['_createRevisionActions'](),_0xca2e0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0xd69048,_0x42fbc6,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',(_0x41b02b,_0x3c400f)=>{_0x3c400f['revisionViews']['on']('add',(_0xe3aa47,_0x4d8932)=>{_0x4d8932['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)),_0xca2e0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x206f91=this['_revisionsRepository']['getRevision'](0x0);if(_0x206f91){const _0x2e037c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x206f91['id']);this['_revisionViewer']['compare'](_0x206f91,_0x2e037c);}}['_handleRevisionSelected'](_0x168e3b,_0x8a44b4){const _0x230fb1=this['_revisionsRepository']['getRevision'](_0x8a44b4['id']),_0x1e262d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x230fb1['id']);this['_revisionViewer']['compare'](_0x230fb1,_0x1e262d);}['_handleRevisionSetName'](_0x1c5bb7,_0x3f885b){this['_revisionsRepository']['getRevision'](_0x3f885b['id'])['setName'](_0x3f885b['name']);}['_handleDiffChange'](_0x8b5e0e,_0xd5f016,_0x3015fb){const _0xa115e8=this['_revisionsRepository']['getRevisionsInDiff'](_0x3015fb);_0xa115e8['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xa115e8),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xa115e8[0x0]));}['_createRevisionActions'](){const _0x174da6=this['editor'],_0xc68e97=d['availableRevisionActions'],_0x300ac1=_0x174da6['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x300ac1['length'])return _0x300ac1['map'](_0x1df544=>{const _0x1dc568='string'==typeof _0x1df544?Object['assign']({},_0xc68e97[_0x1df544]):_0x1df544;return _0x1dc568['action']=_0x1dc568['action']['bind'](this,_0x174da6),_0x1dc568['isVisible']&&(_0x1dc568['isVisible']=_0x1dc568['isVisible']['bind'](this,_0x174da6)),_0x1dc568;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2c6916},_0x3d1b17)=>{const _0x22ef9d=_0x2c6916['get'](m),_0x29411c=_0x22ef9d['repository'];let _0x48b2dc=_0x22ef9d['diff']['newRevisionId'],_0x2882d5=_0x3d1b17['id'];_0x29411c['getIndex'](_0x48b2dc)>_0x29411c['getIndex'](_0x2882d5)&&([_0x48b2dc,_0x2882d5]=[_0x2882d5,_0x48b2dc]),_0x22ef9d['compare'](_0x48b2dc,_0x2882d5);},'isVisible':({plugins:_0x164a1b},_0xfcae47)=>{const _0x4e9c06=_0x164a1b['get'](m);return!(_0x4e9c06['repository']['getRevisionsInDiff'](_0x4e9c06['diff'])['length']>0x2)&&!_0xfcae47['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1e2b04,{id:_0x3b5b90})=>{_0x1e2b04['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3b5b90);},'isVisible':({plugins:_0x55b922},_0x2bdfe2)=>!!_0x55b922['get'](m)['repository']['getLaterVisibleRevision'](_0x2bdfe2['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x534cd3},{id:_0x4074e2,revisionNameView:_0x298827})=>{const _0x4b0dde=_0x534cd3['get'](m),_0x39d410=_0x4b0dde['repository']['getEarlierVisibleRevision'](_0x4074e2);_0x4b0dde['compare'](_0x4074e2,_0x39d410),_0x298827['focus'](),_0x298827['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x7d4413,_0x3fb4fe){super(_0x7d4413),this['_view']=_0x3fb4fe,this['_toolbarConfig']=et(_0x7d4413['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x380bac){const _0x26338a=this['editor'],_0x286f88=this['view'],_0x25adf9=_0x26338a['editing']['view'],_0x46e589=_0x286f88['editable'],_0x5d6f8d=_0x25adf9['document']['getRoot']();_0x46e589['name']=_0x5d6f8d['rootName'],_0x286f88['render']();const _0x1f26df=_0x46e589['element'];this['setEditableElement'](_0x46e589['name'],_0x1f26df),_0x286f88['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x25adf9['attachDomRoot'](_0x1f26df),this['_elementReplacer']['replace'](_0x380bac,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x47f202=this['view'],_0x44c201=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x44c201['detachDomRoot'](_0x47f202['editable']['name']),_0x47f202['destroy']();}['_initToolbar'](){const _0x48d601=this['view'];_0x48d601['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x48d601['stickyPanel']['limiterElement']=_0x48d601['element'],_0x48d601['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1e420a})=>_0x1e420a),_0x48d601['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x48d601['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x7497e4,_0x267b92,_0x14d7f2={}){super(_0x7497e4),this['stickyPanel']=new ht(_0x7497e4),this['toolbar']=new dt(_0x7497e4,{'shouldGroupWhenFull':_0x14d7f2['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x7497e4,_0x267b92);}['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
|
+
_0x155746(_0x1e2b0c){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4df168,_0x861b97){super(_0x861b97),this['sourceElement']=_0x4df168,this['model']['document']['createRoot']();const _0x4a30f9=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4a30f9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x942739,_0x4f00b2){const _0x199ae2=new this(_0x942739,_0x4f00b2);return await _0x199ae2['initPlugins'](),await _0x199ae2['ui']['init'](_0x942739),await _0x199ae2['data']['init'](_0x199ae2['config']['get']('initialData')||''),_0x199ae2['fire']('ready'),_0x199ae2;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x4eb38d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20fdb2){function _0x566d39(_0x32a3d7){return _0x32a3d7['map'](_0x172723=>String['fromCharCode'](_0x172723))['join']('');}super(_0x20fdb2),this['result']='end',_0x20fdb2[_0x566d39([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x566d39([0x76,0x69,0x65,0x77])][_0x566d39([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x566d39([0x61,0x75,0x74,0x6f]),_0x20fdb2[_0x566d39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x566d39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x566d39([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x566d39([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x566d39([0x6f,0x6b])});}}class k extends _0x4eb38d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x56bc39){if(super(_0x56bc39),!this['editor']['config']['get']('revisionHistory'))throw new _0x164733('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5205f0=>this['_showRevisionViewer']({..._0x5205f0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x375929=>this['_closeRevisionViewer'](_0x375929)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x21c090=>this['_restoreRevision'](_0x21c090)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1db3ac){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1db3ac;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3a0aae){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3a0aae);}['getRevision'](_0x116fb6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x116fb6);}['getRevisions'](_0x147e53){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x147e53||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x9f6632=this['editor'],_0x121e94=_0x475b27(_0x9f6632,p),_0x3b1196=_0x9f6632['plugins']['get']('RevisionTracker'),_0x116104=_0x9f6632['plugins']['get']('Users')['users'];return _0x121e94['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x121e94['lazyRoots'],(_0x121e94['plugins']['push'](yt,m,R,class extends _0x4eb38d{static get['requires'](){return[m,'Users'];}['init'](){const _0x16de54=this['editor']['plugins']['get']('Users');for(const _0xb5e46c of _0x116104)_0xb5e46c['isAnonymous']||_0x16de54['getUser'](_0xb5e46c['id'])||_0x16de54['addUser'](_0xb5e46c);const _0x237176=_0x3b1196['repository']['getRevisions']();let _0x172590=null;const _0x3e74ad=this['editor']['plugins']['get']('RevisionViewer');_0x3e74ad['adapter']=_0x3b1196['adapter'],_0x3e74ad['bind']('isEnabled')['to'](_0x3b1196),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x9f6632,'isReadOnly',_0x4a1c5f=>!_0x4a1c5f);for(const _0x277b32 of _0x237176){const _0x260f7d=null===_0x277b32['creator'];if(_0x260f7d&&_0x277b32['toVersion']===_0x277b32['fromVersion'])continue;const _0xac51cd=_0x277b32['toJSON']();_0x3e74ad['addRevisionData'](_0xac51cd,(_0x375698,_0x513ea8,_0xf2a9b9)=>{if(_0x260f7d){if(_0x172590)_0x172590['_update'](_0x375698,_0x513ea8);else{if(!_0x513ea8){const _0x471958=_0xf2a9b9['toJSON']();_0x471958['id']=_0x423624(),_0x3b1196['saveRevision'](_0x471958,_0xf2a9b9['toVersion'])['then'](_0x4b6ef9=>{_0x172590=_0x4b6ef9;});}}}else _0x277b32['_update'](_0x375698,_0x513ea8);});}}},d),_0x121e94);}['_enhanceShowRevisionViewerCallback'](){const _0x12756a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4cad67=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5e4c8c=this['editor']['plugins']['get']('Autosave');await _0x5e4c8c['save']();}else await _0x4cad67['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x16e6c4=this['editor']['plugins']['get']('Dialog');_0x16e6c4['isOpen']&&_0x16e6c4['hide']();}const _0x3945c2=this['_getRevisionViewerEditorConfig']();return _0x12756a(_0x3945c2)['then'](_0x360558=>{return(this['_viewerEditor']=_0x360558,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'),_0x360558);})['catch'](_0x38f5cd=>(console['error'](_0x38f5cd),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x31d653=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'](),_0x31d653(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x182c9f=this['editor']['plugins']['get']('Annotations');_0x182c9f['refreshVisibility'](),_0x182c9f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x112457){const _0x1a8718=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4171cf=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x486d56=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x486d56,_0x112457)['then'](_0x514bf6=>(_0x4171cf['style']['display']='block',_0x1a8718['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x514bf6));}['_closeRevisionViewer'](_0x5ca23b){const _0xe49a91=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xe49a91['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5ca23b['destroy']();}async['_restoreRevision'](_0xc8b865){const _0x1741d2=this['editor'],_0x3aad27=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5af476=_0x1741d2['plugins']['get']('RevisionTracker'),_0x83a42e=_0x1741d2['plugins']['get']('RevisionHistoryUtils'),_0x238663=_0x3aad27['repository']['getRevision'](_0xc8b865);let _0x5716a7,_0xff6b93,_0x256771;try{await _0x83a42e['loadRevisionData'](_0x238663,this['adapter']),_0x5716a7=_0x83a42e['getRevisionDocumentData'](_0x238663),_0xff6b93=_0x83a42e['getRevisionRootsAttributes'](_0x238663);}catch(_0x17a227){return void console['error'](_0x17a227);}_0x1741d2['model']['change'](_0x2d405b=>{for(const _0x1a950a of Array['from'](_0x1741d2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2d405b['removeMarker'](_0x1a950a);}),_0x3aad27['isReady']=!0x1,_0x1741d2['model']['enqueueChange'](_0x27b024=>{_0x27b024['setSelection'](null),_0x27b024['removeSelectionAttribute'](_0x1741d2['model']['document']['selection']['getAttributeKeys']());const _0x49d43b=Object['keys'](_0x5716a7);for(const _0x47b3e9 of _0x1741d2['model']['document']['roots'])'$graveyard'!=_0x47b3e9['rootName']&&_0x47b3e9['isAttached']()&&!_0x49d43b['includes'](_0x47b3e9['rootName'])&&_0x27b024['detachRoot'](_0x47b3e9);for(const _0x1dff92 of _0x49d43b){let _0x5e4abf=_0x1741d2['model']['document']['getRoot'](_0x1dff92);_0x5e4abf&&_0x5e4abf['isAttached']()||(_0x5e4abf=_0x27b024['addRoot'](_0x1dff92));const _0x2a6d5f=_0xff6b93[_0x1dff92],_0x258691=Object['keys'](_0x2a6d5f),_0x573067=_0x5716a7[_0x1dff92];for(const _0xef75c2 of _0x5e4abf['getAttributeKeys']())_0x258691['includes'](_0xef75c2)||_0x27b024['removeAttribute'](_0xef75c2,_0x5e4abf);for(const _0x3b0ef3 of _0x258691)_0x27b024['setAttribute'](_0x3b0ef3,_0xff6b93[_0x1dff92][_0x3b0ef3],_0x5e4abf);_0x27b024['remove'](_0x27b024['createRangeIn'](_0x5e4abf)),_0x27b024['insert'](_0x1741d2['data']['parse'](_0x573067,_0x5e4abf),_0x5e4abf,0x0);}});const _0x4a4bf8=g(_0x1741d2['locale'],'Restored');if(_0x238663['name'])_0x256771=-0x1==_0x238663['name']['indexOf'](_0x4a4bf8)?_0x4a4bf8+':\x20'+_0x238663['name']:_0x238663['name'];else _0x256771=_0x4a4bf8+':\x20'+(_0x238663['createdAt']['toLocaleDateString'](_0x1741d2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x238663['createdAt']['toLocaleTimeString'](_0x1741d2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5af476['saveRevision']({'name':_0x256771}),_0x3aad27['isReady']=!0x0,_0x1741d2['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};
|