@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250226.0 → 0.0.0-nightly-next-20250227.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/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/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
|
-
_0x1b5ddc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2260d3){super(),this['id']=_0x2260d3['id']||_0x59cdb0(),this['creator']=_0x2260d3['creator']||null,this['authors']=_0x2260d3['authors']||[],this['diffData']=_0x2260d3['diffData']||null,this['toVersion']=_0x2260d3['toVersion']||0x0,this['fromVersion']=_0x2260d3['fromVersion']||0x0,this['set']('name',_0x2260d3['name']||''),this['set']('createdAt',_0x2260d3['createdAt']||new Date()),this['set']('attributes',_0x2260d3['attributes']||{});}['setName'](_0x55ac04){this['_update']({'name':_0x55ac04});}['setAttribute'](_0x25360e,_0x335887){const _0x3696a2=_0x312480(this['attributes']);_0x5694e6(_0x3696a2,_0x25360e,_0x335887),this['_update']({'attributes':_0x3696a2});}['removeAttribute'](_0x148dca){const _0x2201ab=_0x312480(this['attributes']);_0x2da12d(_0x2201ab,_0x148dca),this['_update']({'attributes':_0x2201ab});}['_update'](_0x4bacf,_0x4be354=!0x1){let _0x6a9734=!0x1;const _0x13b7f5={'id':this['id']},_0x5a419e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2608e0 of _0x5a419e){const _0x1df361=_0x4bacf[_0x2608e0];void 0x0!==_0x1df361&&_0x1df361!==this[_0x2608e0]&&(this[_0x2608e0]=_0x1df361,_0x13b7f5[_0x2608e0]=_0x1df361,_0x6a9734=!0x0);}_0x6a9734&&(_0x13b7f5['authors']&&(_0x13b7f5['authorsIds']=_0x13b7f5['authors']['map'](_0x22693f=>_0x22693f['id']),delete _0x13b7f5['authors']),this['fire']('_update',_0x13b7f5,_0x4be354));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x45791b=>_0x45791b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x34aee2{['_revisions'];static get['requires'](){return[_0x5bd49c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x131f09){super(_0x131f09),this['_revisions']=new _0x241ac4();}['afterInit'](){!async function(_0x43a542){const _0x2354c9=_0x3c590c([0x70,0x64,0x6d,0x63,0x37,0x76,0x75,0x48,0x78,0x54,0x33,0x6c,0x66,0x73,0x45,0x68,0x50,0x61,0x46,0x59,0x41,0x69,0x72,0x53,0x4c,0x71,0x38,0x6f,0x67,0x35,0x58,0x30,0x52,0x39,0x4d,0x62,0x36,0x56,0x77,0x65,0x7a,0x79,0x74,0x55,0x49,0x4b,0x6b,0x47,0x4a,0x51,0x6a,0x6e,0x31,0x43,0x44,0x4f,0x42,0x32,0x4e,0x57,0x34,0x5a]),_0x4a0113=0xeb829,_0x32cc3f=0x46d7f38d,_0x5c1591=0x46d09315^_0x32cc3f,_0x10b6e1=window[_0x3c590c([0x44,0x61,0x74,0x65])][_0x3c590c([0x6e,0x6f,0x77])](),_0x537ed7=_0x43a542[_0x3c590c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6e4a1d=new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3811d6=>{_0x537ed7[_0x3c590c([0x6f,0x6e,0x63,0x65])](_0x3c590c([0x72,0x65,0x61,0x64,0x79]),_0x3811d6);}),_0x411706={[_0x3c590c([0x6b,0x74,0x79])]:_0x3c590c([0x45,0x43]),[_0x3c590c([0x75,0x73,0x65])]:_0x3c590c([0x73,0x69,0x67]),[_0x3c590c([0x63,0x72,0x76])]:_0x3c590c([0x50,0x2d,0x32,0x35,0x36]),[_0x3c590c([0x78])]:_0x3c590c([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]),[_0x3c590c([0x79])]:_0x3c590c([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]),[_0x3c590c([0x61,0x6c,0x67])]:_0x3c590c([0x45,0x53,0x32,0x35,0x36])},_0x1b8797=_0x537ed7[_0x3c590c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c590c([0x67,0x65,0x74])](_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c7baf(){let _0x4a6096,_0x1585dc=null,_0x2f8f11=null;try{if(_0x1b8797==_0x3c590c([0x47,0x50,0x4c]))return _0x3c590c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a6096=_0x4cb3cb(),!_0x4a6096)return _0x3c590c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a6096[_0x3c590c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f8f11=_0x19447f(_0x4a6096[_0x3c590c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a6096[_0x3c590c([0x6a,0x74,0x69])])),await _0x7c116()?_0x4e7a5f()?_0x41750e()?_0x3c590c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x37e855()?(_0x4a6096[_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c590c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1585dc=_0x48cbe5(_0x3c590c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a6096[_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c590c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1585dc=_0x48cbe5(_0x3c590c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x129b4f()):_0x3c590c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c590c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c590c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3ca791){return _0x3c590c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41750e(){const _0x4ab23d=[_0x3c590c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c590c([0x74,0x72,0x69,0x61,0x6c])][_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a6096[_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10b6e1/0x3e8:0xe10*_0x5c1591;return _0x4a6096[_0x3c590c([0x65,0x78,0x70])]<_0x4ab23d;}function _0x4e7a5f(){const _0x4324a6=_0x4a6096[_0x3c590c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4324a6)return!0x1;if(_0x4324a6[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c590c([0x2a])))return!0x0;if(_0x4324a6[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c590c([0x52,0x48])))return!0x0;if(_0x4324a6[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c590c([0x52,0x52,0x48]))){if(_0x277b9e())return!0x0;if(_0x3ba934()||_0x4bcf26())return!0x0;}return!0x1;}function _0x37e855(){const _0x33fc6f=_0x4a6096[_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33fc6f||0x0==_0x33fc6f[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6bdd72}=new URL(window[_0x3c590c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33fc6f[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6bdd72))return!0x0;const _0x9d4bfc=_0x6bdd72[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])](_0x3c590c([0x2e]));return _0x33fc6f[_0x3c590c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfbd1c2=>_0xfbd1c2[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c590c([0x2a])))[_0x3c590c([0x6d,0x61,0x70])](_0x393b49=>_0x393b49[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])](_0x3c590c([0x2e])))[_0x3c590c([0x73,0x6f,0x6d,0x65])](_0xf4ba66=>_0x9d4bfc[_0x3c590c([0x65,0x76,0x65,0x72,0x79])]((_0x4162fb,_0x41149b)=>_0xf4ba66[_0x41149b]===_0x4162fb||_0xf4ba66[_0x41149b]===_0x3c590c([0x2a])));}function _0x129b4f(){return _0x1585dc&&_0x2f8f11?new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50c98a,_0xe05419)=>{_0x1585dc[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x50c98a,_0xe05419),_0x2f8f11[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x10779f=>{_0x10779f!=_0x3c590c([0x56,0x61,0x6c,0x69,0x64])&&_0x50c98a(_0x10779f);},_0xe05419);}):_0x1585dc||_0x2f8f11||_0x3c590c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19447f(_0x44eec4,_0x1b4e89){return new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1aeb=>{if(_0x2185c9())return _0x4e1aeb(_0x3c590c([0x56,0x61,0x6c,0x69,0x64]));_0x1cd7a6(),_0x537ed7[_0x3c590c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c590c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x507ee2=!0x1;const _0x50f70d=_0x59cdb0();function _0x4f4518(_0x57a546){return!!_0x57a546&&(typeof _0x57a546===_0x3c590c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57a546===_0x3c590c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57a546[_0x3c590c([0x74,0x68,0x65,0x6e])]===_0x3c590c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57a546[_0x3c590c([0x63,0x61,0x74,0x63,0x68])]===_0x3c590c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13f54e(_0xefb387){_0x2932b9(_0xefb387)[_0x3c590c([0x74,0x68,0x65,0x6e])](_0xc0a3a9=>{if(!_0xc0a3a9||_0xc0a3a9[_0x3c590c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c590c([0x6f,0x6b]))return _0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35c4f0(_0x3a48ff(_0x50f70d+_0x1b4e89))!=_0xc0a3a9[_0x3c590c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c590c([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x55ba9e=>(_0x34bb71(),_0x55ba9e),()=>{const _0xc09d19=_0x11309b();return null==_0xc09d19?(_0x34bb71(),_0x3c590c([0x56,0x61,0x6c,0x69,0x64])):_0x3c590c(_0x10b6e1-_0xc09d19>(0x62db778d^_0x32cc3f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x4e1aeb)[_0x3c590c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e1aeb(_0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12af1a=0x46e11d0d^_0x32cc3f;function _0x34bb71(){const _0x44b9fd=_0x3c590c([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c4f0(_0x3a48ff(_0x44eec4)),_0x5b124e=_0x174ee9(_0x35c4f0(window[_0x3c590c([0x4d,0x61,0x74,0x68])][_0x3c590c([0x63,0x65,0x69,0x6c])](_0x10b6e1/_0x12af1a)));window[_0x3c590c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c590c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b9fd,_0x5b124e);}function _0x11309b(){const _0x58dafa=_0x3c590c([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c4f0(_0x3a48ff(_0x44eec4)),_0xf46bb9=window[_0x3c590c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c590c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58dafa);return _0xf46bb9?window[_0x3c590c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x174ee9(_0xf46bb9),0x10)*_0x12af1a:null;}function _0x2932b9(_0x47d823){return new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b09d3,_0x38ef74)=>{_0x47d823[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x5b09d3,_0x38ef74),window[_0x3c590c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38ef74,0x46d6274d^_0x32cc3f);});}}_0x537ed7[_0x3c590c([0x6f,0x6e])](_0x3c590c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1125eb,_0x298a52)=>{if(_0x298a52[0x0]!=_0x44eec4)return _0x4e1aeb(_0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x298a52[0x1]={..._0x298a52[0x1],[_0x3c590c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50f70d};},{[_0x3c590c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c590c([0x68,0x69,0x67,0x68])}),_0x537ed7[_0x3c590c([0x6f,0x6e])](_0x3c590c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30fc22=>{_0x4f4518(_0x30fc22[_0x3c590c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x507ee2=!0x0,_0x13f54e(_0x30fc22[_0x3c590c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c590c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c590c([0x6c,0x6f,0x77])}),_0x6e4a1d[_0x3c590c([0x74,0x68,0x65,0x6e])](()=>{_0x507ee2||_0x4e1aeb(_0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2185c9(){return _0x537ed7[_0x3c590c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c590c([0x76,0x69,0x65,0x77])][_0x3c590c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c590c([0x61,0x75,0x74,0x6f]);}function _0x1cd7a6(){_0x537ed7[_0x3c590c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c590c([0x76,0x69,0x65,0x77])][_0x3c590c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c590c([0x61,0x75,0x74,0x6f]);}}function _0x48cbe5(_0x23524c){const _0xfa6c5d=[new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583c44=>setTimeout(_0x583c44,0x46decd41^_0x32cc3f)),_0x6e4a1d[_0x3c590c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17b313=>{const _0x5e5a82=0x46d7f38a^_0x32cc3f,_0x53a7eb=_0x43a542[_0x3c590c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x517d91(){_0x53a7eb[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5e5a82&&_0x17b313();}_0x517d91(),_0x53a7eb[_0x3c590c([0x6f,0x6e])](_0x3c590c([0x61,0x64,0x64]),_0x517d91);})),new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xccb1b2=>{function _0x5b2982(){for(const _0xe7e254 in window)if(window[_0x3c590c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3c590c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xe7e254))&&window[_0xe7e254]==_0x4a0113)return _0xccb1b2();_0x537ed7[_0x3c590c([0x73,0x74,0x61,0x74,0x65])]!=_0x3c590c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3c590c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b2982,0x46d7e005^_0x32cc3f);}_0x2cd41c(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5b2982();})];return window[_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c590c([0x72,0x61,0x63,0x65])](_0xfa6c5d)[_0x3c590c([0x74,0x68,0x65,0x6e])](()=>_0x23524c);}async function _0x222a3a(){if(await _0x6e4a1d,_0x2cd41c(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2ba78b=_0x43a542[_0x3c590c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3a3467=_0x43a542[_0x3c590c([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])](_0x2ba78b[_0x3c590c([0x69,0x64])]),_0x2fdc8c=_0x4c6b96(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2fdc8c[_0x3c590c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2ba78b['id'],_0x3a3467?_0x3a3467['id']:null,!0x0),_0x2fdc8c[_0x3c590c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3c590c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2fdc8c[_0x3c590c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2fdc8c[_0x3c590c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x43d24e,void(_0x2fdc8c[_0x3c590c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x43d24e);}if(_0x2cd41c(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x63c3d2=_0x4c6b96(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x63c3d2[_0x3c590c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3c590c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x63c3d2[_0x3c590c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x63c3d2[_0x3c590c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x43d24e,_0x63c3d2[_0x3c590c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x43d24e;}_0x537ed7[_0x3c590c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c590c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43d24e,_0x537ed7[_0x3c590c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c590c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43d24e,_0x537ed7[_0x3c590c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c590c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x277b9e(){return _0x2cd41c(_0x3c590c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c6b96(_0x3c590c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3c590c([0x73,0x74,0x61,0x74,0x65])]==_0x3c590c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3ba934(){return _0x2cd41c(_0x3c590c([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 _0x4bcf26(){return _0x2cd41c(_0x3c590c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x169183(_0x28e75a){const _0x3d580d=_0x282e8b();_0x537ed7[_0x3d580d]=_0x3c590c([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])+_0x28e75a,_0x28e75a[_0x3c590c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3c590c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x282e8b()]=_0x4a0113),_0x28e75a!=_0x3c590c([0x56,0x61,0x6c,0x69,0x64])&&_0x222a3a();}function _0x282e8b(){const _0x48cc0a=window[_0x3c590c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c590c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c590c([0x6e,0x6f,0x77])]())[_0x3c590c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c590c([0x2e]),'');let _0xa326a2=_0x3c590c([0x70]);for(let _0x114231=0x0;_0x114231<_0x48cc0a[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x114231+=0x2){let _0x53cfd2=window[_0x3c590c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48cc0a[_0x3c590c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x114231,_0x114231+0x2));_0x53cfd2>=_0x2354c9[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53cfd2-=_0x2354c9[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa326a2+=_0x2354c9[_0x53cfd2];}return _0xa326a2;}function _0x4cb3cb(){const _0x1aee97=_0x1b8797[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])](_0x3c590c([0x2e]));if(0x3!=_0x1aee97[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x183a1e(_0x1aee97[0x1]);function _0x183a1e(_0x5a7913){const _0x1fbdef=_0x3c9a25(_0x5a7913);return _0x1fbdef&&_0xf9c4bb()?_0x1fbdef:null;function _0xf9c4bb(){const _0x2bbfe9=_0x1fbdef[_0x3c590c([0x6a,0x74,0x69])],_0x101a93=window[_0x3c590c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bbfe9[_0x3c590c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bbfe9[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4da76f={..._0x1fbdef,[_0x3c590c([0x6a,0x74,0x69])]:_0x2bbfe9[_0x3c590c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bbfe9[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4da76f[_0x3c590c([0x76,0x63])],_0x3a48ff(_0x4da76f)==_0x101a93;}}}async function _0x7c116(){let _0x6ffa67=!0x0;try{const _0x464cd9=_0x1b8797[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])](_0x3c590c([0x2e])),[_0x509fcb,_0x2eb39e,_0x3a9e90]=_0x464cd9;return _0x3299f0(_0x509fcb),await _0x14c15a(_0x509fcb,_0x2eb39e,_0x3a9e90),_0x6ffa67;}catch(_0x2adfdd){return!0x1;}function _0x3299f0(_0x407152){const _0x22c997=_0x3c9a25(_0x407152);_0x22c997&&_0x22c997[_0x3c590c([0x61,0x6c,0x67])]==_0x3c590c([0x45,0x53,0x32,0x35,0x36])||(_0x6ffa67=!0x1);}async function _0x14c15a(_0x30e7da,_0x23ae43,_0x104ac9){const _0x52f820=window[_0x3c590c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c590c([0x66,0x72,0x6f,0x6d])](_0xbfb7fc(_0x104ac9),_0x140093=>_0x140093[_0x3c590c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9699fe=new window[(_0x3c590c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c590c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30e7da+_0x3c590c([0x2e])+_0x23ae43),_0x1acb2b=window[_0x3c590c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c590c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1acb2b)return;const _0x40532d=await _0x1acb2b[_0x3c590c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c590c([0x6a,0x77,0x6b]),_0x411706,{[_0x3c590c([0x6e,0x61,0x6d,0x65])]:_0x3c590c([0x45,0x43,0x44,0x53,0x41]),[_0x3c590c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c590c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c590c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1acb2b[_0x3c590c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c590c([0x6e,0x61,0x6d,0x65])]:_0x3c590c([0x45,0x43,0x44,0x53,0x41]),[_0x3c590c([0x68,0x61,0x73,0x68])]:{[_0x3c590c([0x6e,0x61,0x6d,0x65])]:_0x3c590c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40532d,_0x52f820,_0x9699fe)||(_0x6ffa67=!0x1);}}function _0x3c9a25(_0x50e64f){return _0x50e64f[_0x3c590c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c590c([0x65,0x79]))?JSON[_0x3c590c([0x70,0x61,0x72,0x73,0x65])](_0xbfb7fc(_0x50e64f)):null;}function _0xbfb7fc(_0x1be226){return window[_0x3c590c([0x61,0x74,0x6f,0x62])](_0x1be226[_0x3c590c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c590c([0x2b]))[_0x3c590c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c590c([0x2f])));}function _0x3a48ff(_0x52160f){let _0x568e19=0x1505;function _0x50c303(_0x7f403c){for(let _0x204cf7=0x0;_0x204cf7<_0x7f403c[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x204cf7++){const _0x3a9b54=_0x7f403c[_0x3c590c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x204cf7);_0x568e19=(_0x568e19<<0x5)+_0x568e19+_0x3a9b54,_0x568e19&=_0x568e19;}}function _0xf18941(_0x4b7b6a){Array[_0x3c590c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b7b6a)?_0x4b7b6a[_0x3c590c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf18941):_0x4b7b6a&&typeof _0x4b7b6a==_0x3c590c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c590c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b7b6a)[_0x3c590c([0x73,0x6f,0x72,0x74])]()[_0x3c590c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55a9c3,_0x31f0ac])=>{_0x50c303(_0x55a9c3),_0xf18941(_0x31f0ac);}):_0x50c303(window[_0x3c590c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b7b6a));}return _0xf18941(_0x52160f),_0x568e19>>>0x0;}function _0x35c4f0(_0x44f393){return _0x44f393[_0x3c590c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c590c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c590c([0x30]));}function _0x174ee9(_0x5a2778){return _0x5a2778[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c590c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c590c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2cd41c(_0x9e9d7f){return _0x537ed7[_0x3c590c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3c590c([0x68,0x61,0x73])](_0x9e9d7f);}function _0x4c6b96(_0x4a191c){return _0x537ed7[_0x3c590c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3c590c([0x67,0x65,0x74])](_0x4a191c);}function _0x43d24e(){}function _0x3c590c(_0x3e145b){return _0x3e145b['map'](_0x4934a8=>String['fromCharCode'](_0x4934a8))['join']('');}_0x169183(await _0x1c7baf());}(this);}['createRevision'](_0x3c78ab){const _0xe5ff40=this['editor']['plugins']['get']('Users');return new h({'id':_0x3c78ab['id'],'name':_0x3c78ab['name'],'creator':_0x3c78ab['creatorId']?_0xe5ff40['getUser'](_0x3c78ab['creatorId']):null,'diffData':_0x3c78ab['diffData']||_0x3c78ab['data'],'authors':_0x3c78ab['authorsIds']['map'](_0x29b119=>_0xe5ff40['getUser'](_0x29b119)),'createdAt':new Date(_0x3c78ab['createdAt']),'attributes':_0x3c78ab['attributes'],'fromVersion':_0x3c78ab['fromVersion'],'toVersion':_0x3c78ab['toVersion']});}['addRevision'](_0x2c8f9a,_0x36dd8e=0x0){this['_revisions']['add'](_0x2c8f9a,_0x36dd8e);}['getRevision'](_0x385b91){return this['_revisions']['get'](_0x385b91);}['getRevisions'](_0x54c289={'toJSON':!0x1}){const _0x484659=Array['from'](this['_revisions']);return _0x484659['reverse'](),_0x54c289['toJSON']?_0x484659['map'](_0x5edb01=>_0x5edb01['toJSON']()):_0x484659;}['getIndex'](_0xfa8fe4){return this['_revisions']['getIndex'](_0xfa8fe4);}['getEarlierVisibleRevision'](_0x25cf0e){const [,_0x5e9374]=this['getRevisionsIterator'](_0x25cf0e,{'direction':'earlier'});return _0x5e9374;}['getLaterVisibleRevision'](_0x54157f){const [,_0x323ac0]=this['getRevisionsIterator'](_0x54157f,{'direction':'later'});return _0x323ac0;}['getRevisionsInDiff'](_0xd8b6dd){const _0x57f3ab=[];for(const _0x4c1c07 of this['getRevisionsIterator'](_0xd8b6dd['newRevisionId']))if(_0x57f3ab['push'](_0x4c1c07),_0x4c1c07['id']===_0xd8b6dd['oldRevisionId'])break;return _0x57f3ab;}*['getRevisionsIterator'](_0x248d64,{direction:_0x2419ed='earlier',filter:_0x320214=()=>!0x0}={}){const _0x171d42='earlier'===_0x2419ed?0x1:-0x1;let _0x2cbd9c=this['_revisions']['get'](_0x248d64),_0x313c51=this['getIndex'](_0x2cbd9c);for(yield _0x2cbd9c;_0x2cbd9c;){if(_0x313c51+=_0x171d42,_0x2cbd9c=this['getRevision'](_0x313c51),!_0x2cbd9c)return;_0x320214(_0x2cbd9c)&&(yield _0x2cbd9c);}}}function m(_0x278018,_0x14fcf5,_0x3feee5){const t=_0x278018['t'];switch(_0x14fcf5){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'},_0x3feee5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3feee5);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'';}}const E={'c':_0x466714,'a':_0x50da04,'e':_0x3f014f,'r':_0x349135,'u':_0x415c93};class u extends _0x34aee2{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5bd49c,j,_0x4065ac];}constructor(_0x55d95d){super(_0x55d95d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4668db=_0x59cdb0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4668db},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['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x27e5a9=this['repository']['getRevision'](0x0),_0x1a76cb=_0x27e5a9&&null===_0x27e5a9['creator']?_0x27e5a9:null;if(this['_continueCurrentRevision']=!!_0x1a76cb&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf817d2=this['_source']['getCurrentRevisionId'](),_0x467099=this['repository']['getRevision'](_0xf817d2);if(_0x467099)this['_startingVersion']=_0x467099['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x36bbc7=this['_source']['history']['_operations']['find'](_0x482d66=>!_0x482d66['_isInit']),_0x556b5a=_0x36bbc7?_0x36bbc7['baseVersion']:this['_source']['history']['version'];_0x27e5a9?(_0x27e5a9['toVersion']<_0x556b5a&&_0x27e5a9['_update']({'toVersion':_0x556b5a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1a76cb['id'],this['_startingVersion']=_0x1a76cb['fromVersion']):(this['_startingVersion']=_0x27e5a9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x556b5a,this['_continueCurrentRevision']=!0x1);}}else _0x1a76cb&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1a76cb['toVersion'],this['editor']['model']['document']['history']['version']),_0x1a76cb['fromVersion']===_0x1a76cb['toVersion']?(0x0!==_0x1a76cb['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a76cb['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a76cb['id'],this['_startingVersion']=_0x1a76cb['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',_0x249d27=>!_0x249d27),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3190b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x83a5b5;for(const _0x1b1272 in _0x3190b9){const _0xe87a68=_0x1b1272,_0x257122=_0x3190b9[_0xe87a68];if('revisionHistoryLicenseKeyValid'==_0x257122||'revisionHistoryLicenseKeyInvalid'==_0x257122||'revisionHistoryLicenseKeyExpired'==_0x257122||'revisionHistoryLicenseKeyDomainLimit'==_0x257122||'revisionHistoryLicenseKeyNotAllowed'==_0x257122||'revisionHistoryLicenseKeyEvaluationLimit'==_0x257122||'revisionHistoryLicenseKeyTrialLimit'==_0x257122||'revisionHistoryLicenseKeyUsageLimit'==_0x257122){delete _0x3190b9[_0xe87a68],_0x83a5b5=_0x257122,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x83a5b5&&_0x3190b9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x83a5b5&&_0x3190b9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x83a5b5&&_0x3190b9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x83a5b5&&_0x3190b9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x83a5b5&&_0x3190b9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x83a5b5&&_0x3190b9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x83a5b5&&_0x3190b9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1237a2=this['repository']['getRevision'](0x0),_0x3bf88c=await this['getRevisionDocumentData'](_0x1237a2),_0x2235dd=await this['getRevisionRootsAttributes'](_0x1237a2);this['_replaceEditorDataWithRevisionData'](_0x3bf88c,_0x2235dd);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x22930a){this['_source']=_0x22930a;}async['update'](){const _0x581273=await this['_source']['getLatestVersion']();if(_0x581273>this['currentRevision']['toVersion']){await this['_loadState']();const _0x356a68=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x581273});_0x356a68['authors']=_0x356a68['authorsIds']['map'](_0x5cd38a=>this['editor']['plugins']['get']('Users')['getUser'](_0x5cd38a)),this['currentRevision']['_update'](_0x356a68);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x5004e7={},_0x1463ad=null){const _0x5bb363=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1463ad>this['currentRevision']['toVersion']&&(_0x1463ad=null),null===_0x1463ad&&(_0x1463ad=await this['_source']['getLatestVersion']());const _0x15cee3=this['_getFromVersion'](_0x1463ad),_0x34d548=this['buildRevisionData']({'from':_0x15cee3,'to':_0x1463ad});if(this['currentRevision']['toVersion']<_0x1463ad){const _0x2739fd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1463ad,'to':_0x1463ad});_0x2739fd['authors']=[],_0x2739fd['authorsIds']=[],_0x2739fd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2739fd,!0x0),delete _0x2739fd['authors'],_0x5bb363['push'](_0x2739fd);}_0x5004e7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5004e7['name']=_0x5004e7['name']||null,_0x5004e7['id']=_0x5004e7['id']||_0x59cdb0(),_0x5004e7={..._0x5004e7,..._0x34d548};const _0x3f022d=this['addRevisionData'](_0x5004e7);_0x5bb363['push'](_0x5004e7);const _0x2b71b0=this['repository']['getIndex'](_0x3f022d);if(0x0!==_0x2b71b0){const _0x346091=this['repository']['getRevision'](_0x2b71b0-0x1);if(_0x346091['fromVersion']!==_0x1463ad){const _0x574668=this['_revisionDataBuilder']['getData'](_0x1463ad,_0x346091['toVersion']),_0x4890e2={'id':_0x346091['id'],'diffData':_0x574668['diffData'],'authorsIds':_0x574668['authorsIds'],'authors':_0x574668['authorsIds']['map'](_0x638cfa=>this['editor']['plugins']['get']('Users')['getUser'](_0x638cfa)),'fromVersion':_0x1463ad};_0x346091===this['currentRevision']&&(_0x4890e2['createdAt']=new Date(_0x5004e7['createdAt']['getTime']()+0xa)),_0x346091['_update'](_0x4890e2,!0x0),delete _0x4890e2['authors'],_0x5bb363['push'](_0x4890e2);}}if(this['adapter']){for(const _0x577983 of _0x5bb363)this['_bufferUpdate'](_0x577983['id'],_0x577983,!0x0);this['sendBufferedUpdates']();}return _0x3f022d;}['addRevisionData'](_0x197f98){const _0x5356b2=this['repository']['createRevision'](_0x197f98);return this['adapter']&&_0x5356b2['on']('_update',(_0xf5528f,_0x27f63c,_0x31de25)=>{_0x31de25||(this['_bufferUpdate'](_0x27f63c['id'],_0x27f63c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5356b2,this['_findInsertionIndex'](_0x5356b2)),_0x5356b2;}async['getRevisionDocumentData'](_0x4a9dfb){await this['_loadRevisionData'](_0x4a9dfb);const _0x9bd59b={};for(const _0x4f6854 in _0x4a9dfb['diffData']){if(_0x4a9dfb['diffData'][_0x4f6854]['attachChange']&&!_0x4a9dfb['diffData'][_0x4f6854]['attachChange']['isAttached'])continue;const _0xaca682=this['_removeRevisionMarkers'](JSON['parse'](_0x4a9dfb['diffData'][_0x4f6854]['insertions'])),_0x4ac5b8=this['editor']['editing']['view']['document'],_0x26fa85=new _0x6888a3(_0x4ac5b8,_0xaca682['map'](_0x53388e=>P(_0x53388e,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x9bd59b[_0x4f6854]=this['editor']['data']['processor']['toData'](_0x26fa85),this['editor']['data']['processor']['useFillerType']('default');}return _0x9bd59b;}async['getRevisionRootsAttributes'](_0x32c2ab){await this['_loadRevisionData'](_0x32c2ab);const _0x5c9986={};for(const _0x30c903 in _0x32c2ab['diffData'])_0x32c2ab['diffData'][_0x30c903]['attachChange']&&!_0x32c2ab['diffData'][_0x30c903]['attachChange']['isAttached']||(_0x5c9986[_0x30c903]=_0x32c2ab['diffData'][_0x30c903]['attributesAfter']||{});return _0x5c9986;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x311cd3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5b3c3e=0x0;_0x5b3c3e<_0x311cd3['length'];_0x5b3c3e++){const _0x101503=_0x311cd3[_0x5b3c3e];let _0x17863e=!0x1;for(const _0x21dd41 of Object['keys'](_0x101503))void 0x0===_0x101503[_0x21dd41]?delete _0x101503[_0x21dd41]:'id'!==_0x21dd41&&(_0x17863e=!0x0);_0x17863e||(_0x311cd3[_0x5b3c3e]=null);}if(_0x311cd3=_0x311cd3['filter'](_0x511238=>null!==_0x511238),!_0x311cd3['length'])return;for(let _0x9f9ae4=0x0;_0x9f9ae4<_0x311cd3['length'];_0x9f9ae4++){const _0x3fc5de=_0x311cd3[_0x9f9ae4];void 0x0!==_0x3fc5de['fromVersion']&&void 0x0===_0x3fc5de['toVersion']&&(_0x3fc5de['toVersion']=this['repository']['getRevision'](_0x3fc5de['id'])['toVersion']),void 0x0!==_0x3fc5de['toVersion']&&void 0x0===_0x3fc5de['fromVersion']&&(_0x3fc5de['fromVersion']=this['repository']['getRevision'](_0x3fc5de['id'])['fromVersion']);}const _0x4a270f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x311cd3,_0x4a270f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x24f87c=>{if(_0x24f87c){for(const _0x3ab3bd of _0x24f87c)this['setRevisionData']({'id':_0x3ab3bd['id'],'createdAt':_0x3ab3bd['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1ce080,_0x40e154){let _0x2298c5=this['editor']['config']['get']('initialData'),_0x374bb4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2298c5){_0x2298c5={};for(const _0x421b4e of this['editor']['model']['document']['getRootNames']())_0x2298c5[_0x421b4e]='';}if('string'==typeof _0x2298c5&&(_0x2298c5={'main':_0x2298c5}),void 0x0===_0x374bb4){_0x374bb4={};for(const _0x4f03f1 of this['editor']['model']['document']['getRootNames']())_0x374bb4[_0x4f03f1]={};}let _0x42e2d1=!0x1;const _0x2f7977=Object['keys'](_0x2298c5),_0x5346f5=Object['keys'](_0x1ce080);for(const _0x31beab of _0x2f7977){if(_0x2298c5[_0x31beab]!==_0x1ce080[_0x31beab]&&''!==_0x2298c5[_0x31beab]['trim']()){_0x42e2d1=!0x0;break;}if(!_0x28c4fa(_0x374bb4[_0x31beab],_0x40e154[_0x31beab])&&Object['keys'](_0x374bb4[_0x31beab])['length']>0x0){_0x42e2d1=!0x0;break;}}_0x42e2d1||(_0x42e2d1=_0x5346f5['some'](_0x3fe2ae=>!this['editor']['model']['document']['getRoot'](_0x3fe2ae))),_0x42e2d1&&_0x13f012('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2298c5,'editorRootsAttributes':_0x374bb4,'revisionData':_0x1ce080,'revisionRootsAttributes':_0x40e154}),this['editor']['config']['set']('initialData',_0x1ce080),this['editor']['config']['set']('rootsAttributes',_0x40e154);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x25bea7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x25bea7['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x54a53a){const _0x36f951=this['repository']['getRevisions']();_0x36f951['reverse']();let _0x4ede0e=0x0;for(;_0x4ede0e<_0x36f951['length'];){const _0x3f3361=_0x36f951[_0x4ede0e];if(_0x3f3361===this['currentRevision']){_0x4ede0e++;continue;}if(_0x3f3361['id']===this['_initialRevisionId'])break;const _0x394760=_0x54a53a['toVersion']-_0x3f3361['toVersion']||_0x54a53a['fromVersion']-_0x3f3361['fromVersion'];if(_0x394760>0x0)break;if(_0x394760<0x0)_0x4ede0e++;else{if(!_0x54a53a['creator']&&_0x3f3361['creator'])break;if(_0x3f3361['creator']||!_0x54a53a['creator']){if(_0x54a53a['createdAt']>_0x3f3361['createdAt'])break;_0x4ede0e++;}else _0x4ede0e++;}}return _0x4ede0e;}['setRevisionData'](_0x148e54){const _0x269b78=this['repository']['getRevision'](_0x148e54['id']);if(_0x148e54['createdAt']&&(_0x148e54['createdAt']=new Date(_0x148e54['createdAt'])),_0x148e54['authorsIds']){const _0x3cee71=this['editor']['plugins']['get']('Users');_0x148e54['authors']=_0x148e54['authorsIds']['map'](_0x1ffb7d=>_0x3cee71['getUser'](_0x1ffb7d));}_0x269b78['_update'](_0x148e54,!0x0);}['buildRevisionData']({revision:_0x4268a5=null,from:_0x5e5742=null,to:_0x1acfae=null}){_0x5e5742=null!==_0x5e5742?_0x5e5742:_0x4268a5['fromVersion'],_0x1acfae=null!==_0x1acfae?_0x1acfae:_0x4268a5['toVersion'];const _0x49b68c=this['_revisionDataBuilder']['getData'](_0x5e5742,_0x1acfae),_0x402ce9={'diffData':_0x49b68c['diffData'],'authorsIds':_0x49b68c['authorsIds'],'fromVersion':_0x5e5742,'toVersion':_0x1acfae};if(!_0x4268a5||_0x1acfae!==_0x4268a5['toVersion']){const _0x476c80=_0x1acfae-0x1,_0x354b70=this['_source']['history']['getOperation'](_0x476c80);_0x402ce9['createdAt']=_0x354b70&&_0x354b70['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5e5742===this['_loadedStateData']['fromVersion']){for(const _0x301e31 of this['_loadedStateData']['authors'])_0x402ce9['authorsIds']['includes'](_0x301e31['id'])||_0x402ce9['authorsIds']['push'](_0x301e31['id']);}return _0x402ce9;}['_loadRevisionData'](_0x1d66e0){if(!_0x1d66e0||_0x1d66e0['diffData'])return Promise['resolve']();{const _0x7797c8=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x7797c8,'revisionId':_0x1d66e0['id']})['then'](_0x22b5ae=>{_0x1d66e0['diffData']=_0x22b5ae['diffData'];});}}['_bufferUpdate'](_0xea1d88,_0x47ee2a,_0x3e3866){if(this['_bufferedUpdates']['has'](_0xea1d88)){const _0x222d82=this['_bufferedUpdates']['get'](_0xea1d88);_0x47ee2a=_0x3e3866?{..._0x222d82,..._0x47ee2a}:{..._0x47ee2a,..._0x222d82};}this['_bufferedUpdates']['set'](_0xea1d88,_0x47ee2a);}['_getFromVersion'](_0x22acbd){const _0x140113=this['repository']['getRevisions']();_0x140113['reverse'](),_0x140113['shift']();const _0x41d3ba=_0x140113['find'](_0x4f4214=>_0x4f4214['toVersion']<=_0x22acbd)['toVersion'];return _0x41d3ba<this['_startingVersion']?this['_startingVersion']:_0x41d3ba;}['_createInitialRevision'](_0x49d177){const _0x462e3f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x462e3f)this['_initialRevisionId']=_0x462e3f['id'];else{const _0x484ae7=!this['editor']['model']['document']['roots']['find'](_0xebaa07=>this['editor']['model']['hasContent'](_0xebaa07)),_0x23c2f7=this['editor']['plugins']['get']('Users')['me']['id'],_0x184789=m(this['editor']['locale'],_0x484ae7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x49d177,'to':_0x49d177,'id':this['_initialRevisionId'],'name':_0x184789,'creatorId':_0x23c2f7});}}['_createCurrentRevision'](_0x4c11b3){const _0x505785=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x505785),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4c11b3,'to':_0x4c11b3,'id':_0x505785,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2d15dc,from:_0x1e0a49,to:_0x2bd8d7,creatorId:_0x28b5a9,id:_0x453cb6}){const _0x21f223=this['buildRevisionData']({'from':_0x1e0a49,'to':_0x2bd8d7});_0x21f223['name']=_0x2d15dc,_0x21f223['creatorId']=_0x28b5a9,_0x21f223['id']=_0x453cb6;const _0x123319=this['addRevisionData'](_0x21f223);return this['adapter']&&this['_bufferUpdate'](_0x21f223['id'],_0x21f223,!0x0),_0x123319;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x17c1a3){return(_0x17c1a3=_0x17c1a3['filter'](_0x1fd059=>!_0x1fd059['name']||'revision-start'!==_0x1fd059['name']&&'revision-end'!==_0x1fd059['name']))['forEach'](_0xfe2927=>{'string'!=typeof _0xfe2927&&(_0xfe2927['children']=this['_removeRevisionMarkers'](_0xfe2927['children']),_0xfe2927['attributes']=_0xfe2927['attributes']['filter'](_0x1509cb=>!_0x1509cb[0x0]['startsWith']('data-revision-')));}),_0x17c1a3;}}function P(_0x5a6d09,_0x57daea){const _0x1bf6b2=_0x57daea['editing']['view']['document'];if('string'==typeof _0x5a6d09)return new _0x24c62c(_0x1bf6b2,_0x5a6d09);{const _0xdf256e=_0x5a6d09['children']['map'](_0x52a92b=>P(_0x52a92b,_0x57daea));return new(E[_0x5a6d09['type']]||_0x40ee58)(_0x1bf6b2,_0x5a6d09['name'],_0x5a6d09['attributes'],_0xdf256e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5f2b38){this['editor']=_0x5f2b38,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'](_0x4592d9){this['source']=_0x4592d9;const _0x108871=new Map(),_0x53b901=new Map(),_0x762aeb=this['editor']['model']['document']['roots']['map'](_0x29bf08=>_0x29bf08['rootName']);for(const _0x58b4de of _0x762aeb){const _0xb6a259=this['editor']['model']['document']['getRoot'](_0x58b4de),_0x104765=T(_0xb6a259);_0x108871['set'](_0x58b4de,_0x104765),_0x53b901['set'](_0x58b4de,Object['fromEntries'](_0xb6a259['getAttributes']()));}const _0x267c00=Array['from'](this['editor']['model']['markers'])['map'](_0x55c822=>[_0x55c822['name'],_0x55c822['getRange']()]),_0x16bc60=this['source']['version'];this['_saveMetaData'](_0x16bc60,_0x108871,_0x267c00,_0x53b901),this['_startingRevisionId']=this['_revisionId'];const _0x18d501=new Map(),_0x4e74d4=new Map();for(const _0x77cdc3 of _0x762aeb){const _0x205ec2=F(_0x77cdc3);_0x18d501['set'](_0x77cdc3,_0x205ec2),_0x4e74d4['set'](_0x77cdc3,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x18d501,[],_0x4e74d4);}['getData'](_0x17ca4e,_0x20024a){if(this['_lastFrom']===_0x17ca4e&&this['_lastTo']<=_0x20024a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x20024a,!0x0);else{if(!this['_savedMetaData']['has'](_0x17ca4e)){const _0x4cb771=this['_getPreviousFrom'](_0x17ca4e);this['_calculateMetaData'](_0x4cb771,_0x17ca4e,!0x1);}this['_calculateMetaData'](_0x17ca4e,_0x20024a,!0x0);}return this['_lastFrom']=_0x17ca4e,this['_lastTo']=_0x20024a,this['_getState']();}['loadState'](_0x53674f){this['_reset'](),this['_lastFrom']=_0x53674f['fromVersion'],this['_lastTo']=_0x53674f['toVersion'];for(const _0x21daa1 in _0x53674f['diffData']){const _0xe0d7f8=_0x53674f['diffData'][_0x21daa1]['attachChange'],_0x3a6852=_0x312480(_0x53674f['diffData'][_0x21daa1]['attributesBefore'])||{},_0x60f00e=this['_makeModelFromViewString'](_0x53674f['diffData'][_0x21daa1]['deletions']);_0x60f00e['rootName']=_0x21daa1,_0x60f00e['_isAttached']=!_0xe0d7f8||!_0xe0d7f8['isAttached'],_0x60f00e['isAttached']=()=>_0x60f00e['_isAttached'],this['_baseRoots']['set'](_0x21daa1,_0x60f00e),this['_baseRootsAttributes']['set'](_0x21daa1,_0x3a6852),_0xe0d7f8&&this['_touchedRoots']['set'](_0x21daa1,_0xe0d7f8);const _0x2b1d12=this['_makeIdsRoot'](_0x60f00e);this['_baseIdsRoots']['set'](_0x21daa1,_0x2b1d12);for(const [_0x35fbeb,_0x522328]of _0x60f00e['markers']){if(!_0x35fbeb['startsWith']('revision:'))continue;const _0x1e6b85=_0x35fbeb['split'](':')[0x2];for(const _0x3edb90 of _0x522328['getWalker']({'singleCharacters':!0x0})){const _0x5bdfdf=this['_getVidAttributeName'](_0x3edb90),_0x1b66a2='elementEnd'==_0x3edb90['type']?_0x3edb90['previousPosition']['path']['slice'](0x0,-0x1):_0x3edb90['previousPosition']['path'],_0x463bbe=_0x2b1d12['getNodeByPath'](_0x1b66a2)['getAttribute'](_0x5bdfdf);this['_touched']['set'](_0x463bbe,{'userId':_0x1e6b85});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3f107a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xd05eae=>!this['_touched']['has'](_0xd05eae));let _0x1bea56=0x0;const _0x212b8a=new Map();for(const _0x1022f4 in _0x53674f['diffData']){const _0x379e50=_0x53674f['diffData'][_0x1022f4]['attachChange'],_0x5cbc75=_0x312480(_0x53674f['diffData'][_0x1022f4]['attributesAfter'])||{},_0x94d16f=this['_makeModelFromViewString'](_0x53674f['diffData'][_0x1022f4]['insertions']);_0x94d16f['rootName']=_0x1022f4,_0x94d16f['_isAttached']=!_0x379e50||_0x379e50['isAttached'],_0x94d16f['isAttached']=()=>_0x94d16f['_isAttached'],this['_diffRoots']['set'](_0x1022f4,_0x94d16f),this['_diffRootsAttributes']['set'](_0x1022f4,_0x5cbc75);const _0x541399=this['_makeIdsRoot'](_0x94d16f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1022f4,_0x541399),_0x212b8a['set'](_0x1022f4,_0x94d16f['isAttached']()?_0x5cbc75:{});for(const [_0x2af4ea,_0x2fb0a9]of _0x94d16f['markers']){if(!_0x2af4ea['startsWith']('revision:'))continue;const _0x48a54b=_0x2af4ea['split'](':')[0x2];for(const _0x58dc33 of _0x2fb0a9['getWalker']({'singleCharacters':!0x0})){const _0x581c5c=this['_getVidAttributeName'](_0x58dc33),_0x57cc2d=this['_revisionId']++,_0x211e65='elementEnd'==_0x58dc33['type']?_0x58dc33['previousPosition']['path']['slice'](0x0,-0x1):_0x58dc33['previousPosition']['path'];_0x541399['getNodeByPath'](_0x211e65)['_setAttribute'](_0x581c5c,_0x57cc2d),this['_touched']['set'](_0x57cc2d,{'userId':_0x48a54b});}}for(const _0x120b63 of this['editor']['model']['createRangeIn'](_0x94d16f)['getWalker']({'singleCharacters':!0x0})){const _0x18757f=this['_getVidAttributeName'](_0x120b63),_0x278e57='elementEnd'==_0x120b63['type']?_0x120b63['previousPosition']['path']['slice'](0x0,-0x1):_0x120b63['previousPosition']['path'],_0x40ffa6=_0x541399['getNodeByPath'](_0x278e57);_0x40ffa6['getAttribute'](_0x18757f)>0x0||_0x40ffa6['_setAttribute'](_0x18757f,_0x3f107a[_0x1bea56++]);}for(const [_0x36f08e,_0x3b1979]of _0x94d16f['markers'])_0x36f08e['startsWith']('revision:')||this['_markers']['set'](_0x36f08e,_0x3b1979);}const _0x4f21e2=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4f21e2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4f21e2,0x1));const _0x5c44bd=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5c44bd),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c44bd,0x1));const _0x22c0a4=Array['from'](this['_diffRoots'])['map'](([_0xe880c0,_0x3df861])=>[_0xe880c0,T(_0x3df861)]);this['_saveMetaData'](this['_lastTo'],_0x22c0a4,this['_markers'],_0x212b8a);}['_makeModelFromViewString'](_0x2b48f0){const _0x55018c=JSON['parse'](_0x2b48f0),_0x431264=this['editor']['editing']['view']['document'],_0x591525=new _0x6888a3(_0x431264,_0x55018c['map'](_0x53d034=>P(_0x53d034,this['editor'])));return this['editor']['data']['toModel'](_0x591525);}['_saveMetaData'](_0x30ea7f,_0x5a2555,_0x1d89ee,_0x33c95f){const _0x50f8a7=new Map(_0x5a2555),_0x27421c=new Map(_0x312480(_0x33c95f)),_0x2ff117=new Map();for(const [_0x31024e,_0x30158e]of _0x1d89ee)_0x2ff117['set'](_0x31024e,{'start':_0x30158e['start']['clone'](),'end':_0x30158e['end']['clone'](),'rootName':_0x30158e['root']['rootName']});this['_savedMetaData']['set'](_0x30ea7f,{'roots':_0x50f8a7,'markers':_0x2ff117,'rootsAttributes':_0x27421c});}['_removeMetaData'](_0x141264){this['_savedMetaData']['delete'](_0x141264);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_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'](_0x4b8860,_0x3996ac=null){let _0x16d515=null;_0x4b8860['is']('documentFragment')||(_0x16d515=new ut(_0x4b8860['name'],{'vid_start':null===_0x3996ac?this['_revisionId']++:_0x3996ac++}));const _0x1f682a=[];for(const _0x429304 of _0x4b8860['getChildren']())if(_0x429304['is']('element')){_0x1f682a['push'](this['_makeIdsRoot'](_0x429304,_0x3996ac));const _0x202fbe=_0x1f682a[_0x1f682a['length']-0x1];null!==_0x3996ac&&(_0x3996ac=_0x202fbe['is']('element','$text')?_0x202fbe['getAttribute']('vid')+0x1:_0x202fbe['getAttribute']('vid_end')+0x1);}else{for(let _0x3464b0=0x0;_0x3464b0<_0x429304['offsetSize'];_0x3464b0++)_0x1f682a['push'](new ut('$text',{'vid':null===_0x3996ac?this['_revisionId']++:_0x3996ac++}));}if(_0x4b8860['is']('documentFragment')){const _0x30a88a=F(_0x4b8860['rootName']);return _0x30a88a['_insertChild'](0x0,_0x1f682a),_0x30a88a;}return _0x16d515['_setAttribute']('vid_end',null===_0x3996ac?this['_revisionId']++:_0x3996ac++),_0x16d515['_insertChild'](0x0,_0x1f682a),_0x16d515;}['_calculateMetaData'](_0x52f0fb,_0x38e014,_0x3a1838){this['_reset']();const {roots:_0x333f0b,markers:_0xc08149,rootsAttributes:_0x402a5e}=this['_savedMetaData']['get'](_0x52f0fb);this['_baseRoots']=new Map(_0x333f0b),this['_baseRootsAttributes']=new Map(_0x312480(_0x402a5e));for(const [_0x1c9271,_0x188c50]of this['_baseRoots'])if('$graveyard'!==_0x1c9271&&(this['_diffRoots']['set'](_0x1c9271,T(_0x188c50)),this['_diffRootsAttributes']=new Map(_0x312480(_0x402a5e)),_0x3a1838)){const _0x10e1a1=this['_revisionId'];this['_idsRoots']['set'](_0x1c9271,this['_makeIdsRoot'](_0x188c50)),this['_baseIdsRoots']['set'](_0x1c9271,this['_makeIdsRoot'](_0x188c50,_0x10e1a1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3a1838&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x186411,_0x4fa6e8]of _0xc08149){const _0x17880d=this['_baseRoots']['get'](_0x4fa6e8['rootName']),_0x455bf3=this['_diffRoots']['get'](_0x4fa6e8['rootName']),_0x2342d6=new ft(this['_fixPosition'](_0x4fa6e8['start'],_0x17880d),this['_fixPosition'](_0x4fa6e8['end'],_0x17880d)),_0x111169=this['_fixRange'](_0x2342d6,_0x455bf3);_0x17880d['markers']['set'](_0x186411,_0x2342d6),this['_markers']['set'](_0x186411,_0x111169);}this['_applyOperations'](_0x52f0fb,_0x38e014,_0x3a1838);}['_applyOperations'](_0x5c2ada,_0x3cabff,_0xb7c693){for(const _0x551864 of this['source']['getOperations'](_0x5c2ada,_0x3cabff))this['_handleOperation'](_0x551864,_0xb7c693);for(const _0x17f69f of this['_diffRoots']['values']())_0x17f69f['markers']['clear']();for(const [_0x51c454,_0x326006]of this['_markers']){this['_diffRoots']['get'](_0x326006['root']['rootName'])['markers']['set'](_0x51c454,_0x326006['clone']());}const _0x1bff90=new Map(),_0x2d471a=new Map();for(const [_0x59b466,_0x252069]of this['_diffRoots'])_0x1bff90['set'](_0x59b466,T(_0x252069)),_0x2d471a['set'](_0x59b466,this['_diffRootsAttributes']['get'](_0x59b466));this['_saveMetaData'](_0x3cabff,_0x1bff90,this['_markers'],_0x2d471a);}['_getPreviousFrom'](_0x3e2508){const _0x6b7ba9=Array['from'](this['_savedMetaData']['keys']());_0x6b7ba9['sort']((_0x59d63c,_0x5547f5)=>_0x59d63c-_0x5547f5),_0x6b7ba9['reverse']();for(const _0x407c88 of _0x6b7ba9)if(_0x407c88<_0x3e2508)return _0x407c88;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3bdd97,_0x34eedf){const _0x5180a0=Array['from'](_0x34eedf['markers'])['map'](([_0x56bff7,_0x10a63d])=>[_0x56bff7,this['_fixRange'](_0x10a63d,_0x3bdd97)]);_0x3bdd97['markers']=new Map(_0x5180a0);}['_transformMarkers'](_0x2e0c13){for(const _0x51a47d of this['_markers']['values']()){const _0x34dc3e=_0x51a47d['getTransformedByOperation'](_0x2e0c13),_0x50be43=ft['_createFromRanges'](_0x34dc3e);_0x51a47d['start']=_0x50be43['start'],_0x51a47d['end']=_0x50be43['end'];}}['_handleOperation'](_0x1b9316,_0x5dc9b2){if('addRoot'!=_0x1b9316['type']&&'detachRoot'!=_0x1b9316['type']){if('insert'==_0x1b9316['type']){const _0x573f83=_0x1b9316['position']['root']['rootName'];this['_diffRoots']['has'](_0x573f83)||(this['_diffRoots']['set'](_0x573f83,F(_0x573f83,!0x0)),this['_diffRootsAttributes']['set'](_0x573f83,{}),_0x5dc9b2&&this['_idsRoots']['set'](_0x573f83,F(_0x573f83,!0x0)));}else{if('addRootAttribute'==_0x1b9316['type']||'removeRootAttribute'==_0x1b9316['type']||'changeRootAttribute'==_0x1b9316['type'])return void this['_handleRootAttributeOperation'](_0x1b9316);'marker'==_0x1b9316['type']&&this['_handleMarkerOperation'](_0x1b9316);}if('marker'!==_0x1b9316['type']){const _0x356eb3=this['_cloneOperation'](_0x1b9316,this['_diffRoots']);_0x356eb3['_execute'](),this['_transformMarkers'](_0x356eb3);}if(_0x5dc9b2)switch(_0x1b9316['type']){case'insert':this['_handleInsertOperation'](_0x1b9316);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1b9316);break;case'merge':this['_handleMergeOperation'](_0x1b9316);break;case'split':this['_handleSplitOperation'](_0x1b9316);}}else this['_handleRootOperation'](_0x1b9316,_0x5dc9b2);}['_cloneOperation'](_0x20a208,_0x145f68){const _0x37a150=_0x20a208['clone']();return _0x37a150['_authorId']=_0x20a208['_authorId'],this['_fixOperation'](_0x37a150,_0x145f68),_0x37a150;}['_getBaseVids'](_0x4c44ed){return _0x4c44ed['map'](_0x27ef23=>{const _0x4cb871=this['_getVidAttributeName'](_0x27ef23);return Number(_0x27ef23['item']['getAttribute'](_0x4cb871));});}['_generateTape'](_0x5c34b5,_0x3c408f){if(_0x5c34b5['is']('element','$text'))_0x3c408f['push']({'item':_0x5c34b5,'type':'text'});else{_0x5c34b5['is']('element')&&_0x3c408f['push']({'item':_0x5c34b5,'type':'elementStart'});for(const _0x163e83 of _0x5c34b5['getChildren']())this['_generateTape'](_0x163e83,_0x3c408f);_0x5c34b5['is']('element')&&_0x3c408f['push']({'item':_0x5c34b5,'type':'elementEnd'});}return _0x3c408f;}['_getState'](){const _0x48785a=new Map(this['_touched']),_0x596915=new Map(_0x48785a),_0x26ebaa=new Map(),_0x18db75={'insertions':{},'deletions':{}},_0xef33f5={'insertions':{},'deletions':{}},_0xd98071=new Map(),_0x5328ad=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5328ad['delete']('$graveyard');for(const _0x4a8f90 of _0x5328ad){const _0x478cc1=this['_diffRoots']['get'](_0x4a8f90)||F(_0x4a8f90,!0x1),_0x2f1293=this['_baseRoots']['get'](_0x4a8f90)||F(_0x4a8f90,!0x1);_0x478cc1['isAttached']()||_0x2f1293['isAttached']()?(_0x18db75['insertions'][_0x4a8f90]=T(_0x478cc1),_0x18db75['deletions'][_0x4a8f90]=T(_0x2f1293),this['_copyMarkers'](_0x18db75['deletions'][_0x4a8f90],_0x2f1293),this['_copyMarkers'](_0x18db75['insertions'][_0x4a8f90],_0x478cc1),_0xef33f5['insertions'][_0x4a8f90]=this['_generateTape'](this['_idsRoots']['get'](_0x4a8f90),[]),_0xef33f5['deletions'][_0x4a8f90]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4a8f90)||F(_0x4a8f90,!0x1),[])):_0x5328ad['delete'](_0x4a8f90);}for(const _0x20f7e9 of _0x5328ad){const _0x40efd6=_0xef33f5['insertions'][_0x20f7e9];for(const _0x579924 of _0x40efd6){const _0x49f0ac=this['_getVidAttributeName'](_0x579924),_0x5bd2b0=_0x579924['item']['getAttribute'](_0x49f0ac);_0x596915['delete'](_0x5bd2b0),_0x5bd2b0>=this['_startingRevisionId']&&_0x26ebaa['set'](_0x5bd2b0,_0x48785a['get'](_0x5bd2b0));}}for(const _0x158a67 of _0x5328ad){const _0xe39778=_0xef33f5['insertions'][_0x158a67],_0x568959=this['_getBaseVids'](_0xef33f5['deletions'][_0x158a67]);let _0x4bd892=0x0;for(const _0xb43e30 of _0xe39778){const _0xa5df1b=this['_getVidAttributeName'](_0xb43e30),_0x1936b9=_0xb43e30['item']['getAttribute'](_0xa5df1b);if(!_0x26ebaa['has'](_0x1936b9)&&!_0xd98071['has'](_0x1936b9)){if(_0x596915['has'](_0x1936b9))_0x4bd892++;else{if(_0x1936b9!=_0x568959[_0x4bd892]){const _0x35fb1d=_0x48785a['get'](_0x1936b9)||_0x48785a['get'](_0x568959[_0x4bd892]);for(;_0x1936b9!=_0x568959[_0x4bd892];)_0x596915['has'](_0x568959[_0x4bd892])||(_0xd98071['set'](_0x568959[_0x4bd892],_0x35fb1d),_0x48785a['set'](_0x568959[_0x4bd892],_0x35fb1d)),_0x4bd892++;}_0x4bd892++;}}}}for(const _0x1a860b of _0x5328ad){const _0x51c0c1=_0xef33f5['insertions'][_0x1a860b];for(const _0x1817fa of _0x51c0c1){const _0x2fb997=this['_getVidAttributeName'](_0x1817fa),_0x180dae=_0x1817fa['item']['getAttribute'](_0x2fb997);if(_0xd98071['has'](_0x180dae)){const _0x43f195=_0xd98071['get'](_0x180dae);_0x596915['has'](_0x180dae)||_0x596915['set'](_0x180dae,{..._0x43f195}),_0x26ebaa['set'](_0x180dae,{..._0x43f195});}}}for(const _0x539e3a of _0x596915['keys']())_0x539e3a>=this['_startingRevisionId']&&_0x596915['delete'](_0x539e3a);const _0x3fbbd4=new Map();for(const _0x354bd5 of _0x5328ad){let _0x47f61a=_0xef33f5['insertions'][_0x354bd5];for(const _0x253395 of _0x47f61a)if(_0x253395['item']['is']('element','tableCell')){const _0x1262c7=this['_getVidAttributeName'](_0x253395),_0x34ade3=_0x253395['item']['getAttribute'](_0x1262c7);if(_0x26ebaa['has'](_0x34ade3)){const _0x275048=_0x253395['item']['parent']['parent']['getAttribute']('vid_start'),_0x38787d=_0x3fbbd4['get'](_0x275048)||new Set();_0x38787d['add'](_0x26ebaa['get'](_0x34ade3)['userId']),_0x3fbbd4['set'](_0x275048,_0x38787d);}}_0x47f61a=_0xef33f5['deletions'][_0x354bd5];for(const _0x35c06a of _0x47f61a)if(_0x35c06a['item']['is']('element','tableCell')){const _0x1535e5=this['_getVidAttributeName'](_0x35c06a),_0x41bd7b=_0x35c06a['item']['getAttribute'](_0x1535e5);if(_0x596915['has'](_0x41bd7b)){const _0x456b99=_0x35c06a['item']['parent']['parent']['getAttribute']('vid_start'),_0x9a4b0=_0x3fbbd4['get'](_0x456b99)||new Set();_0x9a4b0['add'](_0x596915['get'](_0x41bd7b)['userId']),_0x3fbbd4['set'](_0x456b99,_0x9a4b0);}}for(const _0x333f9c of _0x3fbbd4['keys']())(_0x26ebaa['has'](_0x333f9c)||_0x596915['has'](_0x333f9c))&&_0x3fbbd4['delete'](_0x333f9c);}for(const _0x624daf of _0x5328ad){const _0x4966c9=_0xef33f5['insertions'][_0x624daf];let _0x313924=null,_0x290873=null;for(const _0x32a3a0 of _0x4966c9){const _0x4ab3f6=this['_getVidAttributeName'](_0x32a3a0),_0x3bbefd=_0x32a3a0['item']['getAttribute'](_0x4ab3f6),_0x51cdcb=_0x3fbbd4['get'](_0x3bbefd);_0x51cdcb&&'elementStart'==_0x32a3a0['type']&&(_0x313924=Array['from'](_0x51cdcb)[0x0],_0x290873=_0x32a3a0['item']['getAttribute']('vid_end')),_0x313924&&(_0x596915['set'](_0x3bbefd,{'userId':_0x313924}),_0x26ebaa['set'](_0x3bbefd,{'userId':_0x313924})),_0x3bbefd==_0x290873&&(_0x313924=null,_0x290873=null);}}const _0x4b539a={},_0x5d2c0c=new Set();for(const _0x1b52fe of _0x5328ad){const _0x473e4c=_0x18db75['deletions'][_0x1b52fe],_0x4edc99=_0x18db75['insertions'][_0x1b52fe];for(const {userId:_0x15ef42}of this['_touchedMarkers']['values']())null!==_0x15ef42&&_0x5d2c0c['add'](_0x15ef42);for(const {userId:_0x119bd3}of this['_touchedRoots']['values']())null!==_0x119bd3&&_0x5d2c0c['add'](_0x119bd3);this['_markChanges'](_0x4edc99,_0xef33f5['insertions'][_0x1b52fe],_0x26ebaa,'insertion',_0x5d2c0c),this['_markChanges'](_0x473e4c,_0xef33f5['deletions'][_0x1b52fe],_0x596915,'deletion',_0x5d2c0c),_0x4b539a[_0x1b52fe]={'insertions':this['_prepareViewToSave'](_0x4edc99),'deletions':this['_prepareViewToSave'](_0x473e4c),'attachChange':this['_touchedRoots']['get'](_0x1b52fe)||null,'attributesBefore':_0x312480(this['_baseRootsAttributes']['get'](_0x1b52fe))||{},'attributesAfter':_0x312480(this['_diffRootsAttributes']['get'](_0x1b52fe))};}return{'diffData':_0x4b539a,'authorsIds':Array['from'](_0x5d2c0c)};}['_processRootBeforeSave'](_0x2eade8){for(const [,_0x4c9260]of _0x2eade8['markers']){const _0x16e6ed=_0x4c9260['start']['getAncestors']()['filter'](_0x27f9a0=>'tableCell'==_0x27f9a0['name']);for(const _0x2a20d1 of _0x16e6ed)0x1==_0x2a20d1['childCount']&&_0x2a20d1['getChild'](0x0)['is']('element','paragraph')&&_0x2a20d1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x43cc2b){this['_processRootBeforeSave'](_0x43cc2b);const _0x27e312=this['editor']['data']['toView'](_0x43cc2b,{}),_0x41e389=Array['from'](_0x27e312['getChildren']())['map'](_0x475c95=>this['_getViewJson'](_0x475c95));return JSON['stringify'](_0x41e389);}['_getViewJson'](_0x31905b){if(_0x31905b['is']('$text'))return _0x31905b['data'];{const _0x5eac8c=_0x31905b;return{'type':Object['keys'](E)['find'](_0x8b6ea6=>_0x31905b instanceof E[_0x8b6ea6]),'name':_0x5eac8c['name'],'attributes':Array['from'](_0x5eac8c['getAttributes']()),'children':Array['from'](_0x5eac8c['getChildren']())['map'](_0x23f881=>this['_getViewJson'](_0x23f881))};}}['_markChanges'](_0x169944,_0x1f0734,_0x295e29,_0x5f107f,_0xc5d007){let _0x578851=null,_0x231c07=null,_0x5a8e0d=0x0;const _0x556f8e=this['editor']['model'];for(let _0x514ed4=0x0;_0x514ed4<_0x1f0734['length'];_0x514ed4++){const _0x135a2d=this['_getVidAttributeName'](_0x1f0734[_0x514ed4]),_0x5cce0a=_0x1f0734[_0x514ed4]['item']['getAttribute'](_0x135a2d),_0x9e95e4=_0x295e29['get'](_0x5cce0a),_0x2abc0b=_0x514ed4==_0x1f0734['length']-0x1;(!_0x578851&&_0x9e95e4&&(_0x578851=_0x9e95e4,_0x231c07=_0x1f0734[_0x514ed4]),_0x578851&&(!_0x9e95e4||_0x9e95e4['userId']!=_0x578851['userId']))&&(_0x4c4eba(_0x9e95e4,B(_0x231c07,_0x169944,_0x556f8e),B(_0x1f0734[_0x514ed4],_0x169944,_0x556f8e)),_0x578851=_0x9e95e4||null,_0x231c07=_0x9e95e4?_0x1f0734[_0x514ed4]:null),_0x578851&&_0x2abc0b&&_0x4c4eba(_0x9e95e4,B(_0x231c07,_0x169944,_0x556f8e),J(_0x1f0734[_0x514ed4],_0x169944,_0x556f8e));}function _0x4c4eba(_0x2784ff,_0x1eb151,_0x5755ec){const _0x4fef61=_0x578851['userId'],_0x11b3e6='revision:'+_0x5f107f+':'+_0x4fef61+':'+_0x5a8e0d++,_0x528ca7=_0x556f8e['createRange'](_0x1eb151,_0x5755ec);_0x169944['markers']['set'](_0x11b3e6,_0x528ca7),null!==_0x4fef61&&_0xc5d007['add'](_0x4fef61);}}['_getVidAttributeName'](_0x599593){switch(_0x599593['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5c3d75,_0x1d2f7a){_0x5c3d75['baseVersion']=null;for(const _0x4f166d in _0x5c3d75){const _0x1ae891=_0x5c3d75[_0x4f166d];if(_0x1ae891 instanceof vt){const _0x2a308c=_0x1d2f7a['get'](_0x1ae891['root']['rootName']);_0x5c3d75[_0x4f166d]=this['_fixPosition'](_0x1ae891,_0x2a308c);}if(_0x1ae891 instanceof ft){const _0x426fbd=_0x1d2f7a['get'](_0x1ae891['root']['rootName']);_0x5c3d75[_0x4f166d]=this['_fixRange'](_0x1ae891,_0x426fbd);}'root'===_0x4f166d&&(_0x5c3d75['root']=_0x1d2f7a['get'](_0x5c3d75['root']['rootName']));}}['_fixRange'](_0x3c0433,_0x532011){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3c0433['start'],_0x532011),this['_fixPosition'](_0x3c0433['end'],_0x532011));}['_fixPosition'](_0x203db2,_0x41ce82){return this['editor']['model']['createPositionFromPath'](_0x41ce82,_0x203db2['path'],_0x203db2['stickiness']);}['_handleInsertOperation'](_0x36c4ac){const _0x161db6=this['_idsRoots']['get'](_0x36c4ac['position']['root']['rootName']),_0x54416e=this['_fixPosition'](_0x36c4ac['position'],_0x161db6),_0x307ae3=null===_0x36c4ac['_authorId']?null:_0x36c4ac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x45faf1=_0x54416e['parent'],_0x5d990b=this['_revisionId'],_0x5327a9=[];for(const _0x72502a of _0x36c4ac['nodes'])if(_0x72502a['is']('element'))_0x5327a9['push'](this['_makeIdsRoot'](_0x72502a));else{for(let _0x5dfd4d=0x0;_0x5dfd4d<_0x72502a['offsetSize'];_0x5dfd4d++)_0x5327a9['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1d2363=this['_revisionId'];for(let _0x5ed416=_0x5d990b;_0x5ed416<_0x1d2363;_0x5ed416++)this['_touched']['set'](_0x5ed416,{'userId':_0x307ae3});_0x45faf1['_insertChild'](_0x54416e['offset'],_0x5327a9);}['_handleMoveOperation'](_0x5a2c69){(_0x5a2c69=this['_cloneOperation'](_0x5a2c69,this['_idsRoots']))['_execute']();const _0x2cbea5=null===_0x5a2c69['_authorId']?null:_0x5a2c69['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46b009=_0x5a2c69['getMovedRangeStart'](),_0x35ffa1=_0x46b009['parent'],_0x221a68=_0x46b009['offset'];!function _0x12a97f(_0xb28424,_0x71006e,_0x53e0b1,_0x35de35){for(let _0x54e93a=_0x53e0b1;_0x54e93a<_0x35de35;_0x54e93a++){const _0x5e0463=_0x71006e['getChild'](_0x54e93a);_0x5e0463['is']('element','$text')?_0xb28424['set'](_0x5e0463['getAttribute']('vid'),{'userId':_0x2cbea5}):(_0xb28424['set'](_0x5e0463['getAttribute']('vid_start'),{'userId':_0x2cbea5}),_0x12a97f(_0xb28424,_0x5e0463,0x0,_0x5e0463['childCount']),_0xb28424['set'](_0x5e0463['getAttribute']('vid_end'),{'userId':_0x2cbea5}));}}(this['_touched'],_0x35ffa1,_0x221a68,_0x221a68+_0x5a2c69['howMany']);}['_handleMergeOperation'](_0x5aba50){const _0x3d257a=null===(_0x5aba50=this['_cloneOperation'](_0x5aba50,this['_idsRoots']))['_authorId']?null:_0x5aba50['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2467b3=_0x5aba50['targetPosition']['parent'],_0x292faa=_0x5aba50['sourcePosition']['parent'],_0x11705a=_0x2467b3['getAttribute']('vid_end'),_0x16946d=_0x292faa['getAttribute']('vid_start');_0x2467b3['_setAttribute']('vid_end',_0x292faa['getAttribute']('vid_end')),_0x292faa['_setAttribute']('vid_end',_0x11705a),this['_touched']['set'](_0x16946d,{'userId':_0x3d257a}),this['_touched']['set'](_0x11705a,{'userId':_0x3d257a}),_0x5aba50['_execute']();}['_handleSplitOperation'](_0x393b11){const _0x28ff56=null===(_0x393b11=this['_cloneOperation'](_0x393b11,this['_idsRoots']))['_authorId']?null:_0x393b11['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2244b6=_0x393b11['graveyardPosition'],_0x11e2ee=_0x393b11['splitPosition']['parent'];_0x393b11['_execute']();const _0x493435=_0x11e2ee['getAttribute']('vid_end'),_0x3f73bf=_0x393b11['insertionPosition']['nodeAfter'];if(_0x2244b6){const _0x1afc5c=_0x3f73bf['getAttribute']('vid_end'),_0x4a4624=_0x11e2ee['getAttribute']('vid_end');_0x11e2ee['_setAttribute']('vid_end',_0x1afc5c),_0x3f73bf['_setAttribute']('vid_end',_0x4a4624),this['_touched']['set'](_0x11e2ee['getAttribute']('vid_end'),{'userId':_0x28ff56}),this['_touched']['set'](_0x3f73bf['getAttribute']('vid_start'),{'userId':_0x28ff56});}else{const _0x2da05a=this['_revisionId']++,_0x262021=this['_revisionId']++;_0x11e2ee['_setAttribute']('vid_end',_0x2da05a),_0x3f73bf['_setAttribute']('vid_start',_0x262021),_0x3f73bf['_setAttribute']('vid_end',_0x493435),this['_touched']['set'](_0x2da05a,{'userId':_0x28ff56}),this['_touched']['set'](_0x262021,{'userId':_0x28ff56});}}['_handleMarkerOperation'](_0x3b0042){if(!_0x3b0042['affectsData'])return;const _0x34b0b8=(_0x3b0042=this['_cloneOperation'](_0x3b0042,this['_diffRoots']))['oldRange']?_0x3b0042['oldRange']['root']:null,_0x2f610f=_0x3b0042['newRange']?_0x3b0042['newRange']['root']:null;_0x34b0b8&&this['_markers']['delete'](_0x3b0042['name']),_0x2f610f&&this['_markers']['set'](_0x3b0042['name'],_0x3b0042['newRange']['clone']());const _0x3ef283=null===_0x3b0042['_authorId']?null:_0x3b0042['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x430c26=_0x3b0042['name'];if(!this['_touchedMarkers']['has'](_0x430c26))return void this['_touchedMarkers']['set'](_0x430c26,{'range':_0x3b0042['oldRange'],'userId':_0x3ef283});const _0x17f066=this['_touchedMarkers']['get'](_0x430c26),_0x122b3b=_0x17f066['range'],_0x221bd5=_0x3b0042['newRange'];null==_0x122b3b&&null==_0x221bd5||_0x122b3b&&_0x221bd5&&_0x122b3b['isEqual'](_0x221bd5)?this['_touchedMarkers']['delete'](_0x3b0042['name']):_0x17f066['userId']=_0x3ef283;}['_handleRootOperation'](_0x2308ba,_0x4fb7cd){this['_diffRoots']['has'](_0x2308ba['rootName'])?this['_diffRoots']['get'](_0x2308ba['rootName'])['_isAttached']=_0x2308ba['isAdd']:(this['_diffRoots']['set'](_0x2308ba['rootName'],F(_0x2308ba['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2308ba['rootName'],{}),_0x4fb7cd&&this['_idsRoots']['set'](_0x2308ba['rootName'],F(_0x2308ba['rootName'],!0x0)));const _0x5aaa20=null===_0x2308ba['_authorId']?null:_0x2308ba['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xcd95c7=this['_touchedRoots']['get'](_0x2308ba['rootName']);_0xcd95c7&&_0xcd95c7['userId']===_0x5aaa20?this['_touchedRoots']['delete'](_0x2308ba['rootName']):this['_touchedRoots']['set'](_0x2308ba['rootName'],{'userId':_0x5aaa20,'isAttached':_0x2308ba['isAdd']});}['_handleRootAttributeOperation'](_0xd713f4){const _0x5f3054=this['_diffRootsAttributes']['get'](_0xd713f4['root']['rootName']);null===_0xd713f4['newValue']?delete _0x5f3054[_0xd713f4['key']]:_0x5f3054[_0xd713f4['key']]=_0xd713f4['newValue'];}}function T(_0x339d7c){const _0x403d72=F(_0x339d7c['rootName'],_0x339d7c['isAttached']());for(const _0x4e8645 of _0x339d7c['getChildren']()){const _0x38134c=_0x4e8645['_clone'](!0x0);_0x403d72['_appendChild'](_0x38134c);}return _0x403d72;}function F(_0x44bc8d,_0x25648d=!0x0){const _0x31526a=new gt();return _0x31526a['rootName']=_0x44bc8d,_0x31526a['_isAttached']=_0x25648d,_0x31526a['isAttached']=()=>_0x31526a['_isAttached'],_0x31526a;}function B(_0x2cb733,_0x229bbc,_0x485db9){const _0xc191be='elementEnd'==_0x2cb733['type']?_0x485db9['createPositionAt'](_0x2cb733['item'],'end'):_0x485db9['createPositionBefore'](_0x2cb733['item']);return _0x485db9['createPositionFromPath'](_0x229bbc,_0xc191be['path'],_0xc191be['stickiness']);}function J(_0x2a2b33,_0x475016,_0x4a7803){const _0x1a855e='elementStart'==_0x2a2b33['type']?_0x4a7803['createPositionAt'](_0x2a2b33['item'],0x0):_0x4a7803['createPositionAfter'](_0x2a2b33['item']);return _0x4a7803['createPositionFromPath'](_0x475016,_0x1a855e['path'],_0x1a855e['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x579811,_0x16d60c){super(_0x579811),this['focusTracker']=new _0x31fd42(),this['keystrokes']=new _0x18dafe(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x16d60c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x45c363(this);}['render'](){super['render'](),_0x572278({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x449aa0=_0x674b3d=>_0x674b3d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x449aa0),this['keystrokes']['set']('arrowleft',_0x449aa0),this['keystrokes']['set']('arrowup',_0x449aa0),this['keystrokes']['set']('arrowdown',_0x449aa0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1fef0d){this['revisionNameInputView']['fieldView']['element']['value']=_0x1fef0d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2c44da){const _0x121c9e=new _0x2de467(this['locale'],_0xb71fd5),_0x5764bd=_0x121c9e['fieldView'];_0x5764bd['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x41878d=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2c44da&&(_0x41878d+='\x20('+m(this['locale'],'optional')+')'),(_0x121c9e['label']=_0x41878d,_0x5764bd['on']('input',()=>{this['revisionNameInputValue']=_0x5764bd['element']['value']['trim']();}),_0x121c9e);}}class f extends _0x34aee2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5aaa2e=this['editor'],_0x5d85b8=_0x5aaa2e['plugins']['get']('RevisionTracker');_0x5aaa2e['ui']['componentFactory']['add']('revisionHistory',_0x1bd9ea=>{const _0x3d15a5=_0x323fc5(_0x1bd9ea),_0x5a5e6f=_0x3d15a5['panelView']['children'],_0x2ac2b8=new _0x66c3ad(_0x1bd9ea),_0x451953=new _0x1da26e(_0x1bd9ea),_0x26382c=new te(_0x1bd9ea),_0x2b147e=new _0x1da26e(_0x1bd9ea),_0x2d4c1a=new te(_0x1bd9ea);return _0x3d15a5['bind']('isEnabled')['to'](_0x5d85b8,'isReady',_0x5d85b8,'isEnabled',_0x5aaa2e,'isReadOnly',(_0xa221b3,_0xdd19b2,_0x1d4047)=>_0xa221b3&&_0xdd19b2&&!_0x1d4047),_0x3d15a5['buttonView']['set']({'icon':_0x495bf5,'label':m(_0x1bd9ea,'Revision\x20history'),'tooltip':!0x0}),_0x26382c['set']({'label':m(_0x1bd9ea,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x26382c['bind']('isEnabled')['to'](_0x5d85b8,'isReady',_0x5d85b8,'isEnabled',_0x5aaa2e,'isReadOnly',(_0xc180e5,_0x4da10e,_0x50afb3)=>_0xc180e5&&_0x4da10e&&!_0x50afb3),_0x26382c['on']('execute',()=>this['_showDialog']()),_0x2d4c1a['set']({'label':m(_0x1bd9ea,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2d4c1a['bind']('isEnabled')['to'](_0x5d85b8,'isReady',_0x5aaa2e,'isReadOnly',(_0x1662dd,_0x51686f)=>_0x1662dd&&!_0x51686f),_0x2d4c1a['on']('execute',()=>{_0x5aaa2e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3d15a5['isOpen']=!0x1,_0x5aaa2e['editing']['view']['focus']();}),_0x451953['children']['add'](_0x26382c),_0x2b147e['children']['add'](_0x2d4c1a),_0x2ac2b8['role']='menu',_0x2ac2b8['items']['addMany']([_0x451953,_0x2b147e]),_0x5a5e6f['add'](_0x2ac2b8),_0x3d15a5;}),_0x5aaa2e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1777d6=this['editor'],_0x1f1925=_0x1777d6['locale'],_0x510444=new _0x348fba(_0x1f1925),_0x3bfcf8=new _0x5727b3(_0x1f1925);_0x510444['buttonView']['set']({'icon':_0x495bf5,'label':m(_0x1f1925,'Revision\x20history')});const _0x364e26=new _0x24665d(_0x1f1925,_0x510444),_0x4fb6f2=new _0x152404(_0x1f1925);_0x4fb6f2['set']({'label':m(_0x1f1925,'Save\x20current\x20revision')}),_0x4fb6f2['delegate']('execute')['to'](_0x510444),_0x4fb6f2['on']('execute',()=>{this['_showDialog']();}),_0x364e26['children']['add'](_0x4fb6f2),_0x3bfcf8['items']['add'](_0x364e26);const _0x60cd8e=new _0x24665d(_0x1f1925,_0x510444),_0x213196=new _0x152404(_0x1f1925);return _0x213196['set']({'label':m(_0x1f1925,'Open\x20revision\x20history')}),_0x213196['delegate']('execute')['to'](_0x510444),_0x213196['on']('execute',()=>{_0x1777d6['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x60cd8e['children']['add'](_0x213196),_0x3bfcf8['items']['add'](_0x60cd8e),_0x510444['panelView']['children']['add'](_0x3bfcf8),_0x510444;}['_showDialog'](){const _0x23437b=this['editor'],_0x4d641d=_0x23437b['locale'],_0x300102=_0x23437b['plugins']['get']('Dialog'),_0x1f3ccf=_0x23437b['plugins']['get']('RevisionTracker');function _0x4c214e(_0x11e3cc){_0x23437b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x11e3cc['revisionName']?_0x11e3cc['revisionNameInputView']['errorText']=m(_0x4d641d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x23437b['plugins']['get'](u)['saveRevision']({'name':_0x11e3cc['revisionName']}),_0x300102['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c214e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x300102['show']({'id':'revisionSave','title':m(_0x4d641d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x23437b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x300102['hide']()},{'label':m(_0x23437b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5949f7){_0x5949f7['bind']('isEnabled')['to'](_0x1f3ccf,'isReady',_0x1f3ccf,'isEnabled',_0x23437b,'isReadOnly',(_0x244ea8,_0xa9605b,_0x13937b)=>_0x244ea8&&_0xa9605b&&!_0x13937b);},'onExecute':()=>_0x4c214e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x44fde6=this['editor'],_0x15054b=_0x44fde6['locale'];this['_saveRevisionFormView']=new hs(_0x15054b,_0x44fde6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x586612,_0x556c20){super(_0x586612),this['_model']=_0x556c20,this['changeId']=_0x556c20['id'];const _0x515ed2=this['bindTemplate'],_0xf254ad=m(_0x586612,_0x556c20['data']['isSuggestion']?'Suggested\x20by':'add'==_0x556c20['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x556c20['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x515ed2['to']('type',_0x14acc1=>'ck-revision-change__'+_0x14acc1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xf254ad}]},{'text':'\x20'+_0x556c20['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1b5ddc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xa380fa){super(),this['id']=_0xa380fa['id']||_0x59cdb0(),this['author']=_0xa380fa['author'],this['type']=_0xa380fa['type'],this['data']=_0xa380fa['data']||{},this['rootName']=_0xa380fa['rootName'],this['set']('createdAt',_0xa380fa['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(_0xefe709,_0x3af3af){this['newRevisionId']=_0xefe709,this['oldRevisionId']=_0x3af3af,this['changes']=new _0x241ac4();}['_setChanges'](_0x2bcd01){for(const _0x140b5f of _0x2bcd01)this['changes']['add'](_0x140b5f);}}const Y={'c':_0x466714,'a':_0x50da04,'e':_0x3f014f,'r':_0x349135,'u':_0x415c93};class d extends _0x34aee2{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5bd49c,_0x1351b9,j];}constructor(_0x232cda){super(_0x232cda),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),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',(_0x7e57da,_0x12caa2,_0x3549d0)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3e2a88=>{for(const _0x4b404c of this['editor']['editing']['view']['document']['roots'])_0x3549d0?_0x3e2a88['removeClass']('ck-editor__editable__overlay',_0x4b404c):_0x3e2a88['addClass']('ck-editor__editable__overlay',_0x4b404c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4816f0=>null!==_0x4816f0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4f6164,_0x1c9be8,_0x1a5a83)=>_0x4f6164&&_0x1a5a83?_0x1c9be8['changes']['getIndex'](_0x1a5a83):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x40d6a0,_0x2114f5)=>_0x40d6a0?_0x2114f5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1351b9);}['init'](){const _0xc41533=this['editor'],_0x4410b3=new _t(_0xc41533,{'direction':'backward'}),_0x541dcc=new _t(_0xc41533,{'direction':'forward'});(_0xc41533['commands']['add']('showPreviousChange',_0x4410b3),_0xc41533['commands']['add']('showNextChange',_0x541dcc),_0xc41533['commands']['add']('restoreRevision',new wt(_0xc41533)),this['on']('change:numberOfChanges',()=>{_0x4410b3['refresh'](),_0x541dcc['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xc41533['enableReadOnlyMode']('revision-viewer'),_0xc41533['plugins']['has']('WidgetToolbarRepository'))&&_0xc41533['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2a2d99){await this['loadRevisionData'](_0x2a2d99);const _0x460fe6={};for(const _0x15f3b2 in _0x2a2d99['diffData']){if(_0x2a2d99['diffData'][_0x15f3b2]['attachChange']&&!_0x2a2d99['diffData'][_0x15f3b2]['attachChange']['isAttached'])continue;const _0xd039b7=this['_removeRevisionMarkers'](JSON['parse'](_0x2a2d99['diffData'][_0x15f3b2]['insertions'])),_0x53e3cf=this['editor']['editing']['view']['document'],_0x16d081=new _0x6888a3(_0x53e3cf,_0xd039b7['map'](_0x6c06dc=>this['_getViewObj'](_0x6c06dc)));this['editor']['data']['processor']['useFillerType']('marked'),_0x460fe6[_0x15f3b2]=this['editor']['data']['processor']['toData'](_0x16d081),this['editor']['data']['processor']['useFillerType']('default');}return _0x460fe6;}async['getRevisionRootsAttributes'](_0x2d520f){await this['loadRevisionData'](_0x2d520f);const _0x3af8fb={};for(const _0xae2dd0 in _0x2d520f['diffData'])_0x2d520f['diffData'][_0xae2dd0]['attachChange']&&!_0x2d520f['diffData'][_0xae2dd0]['attachChange']['isAttached']||(_0x3af8fb[_0xae2dd0]=_0x2d520f['diffData'][_0xae2dd0]['attributesAfter']||{});return _0x3af8fb;}['_removeRevisionMarkers'](_0x34e246){return(_0x34e246=_0x34e246['filter'](_0x5ad0c7=>!_0x5ad0c7['name']||'revision-start'!==_0x5ad0c7['name']&&'revision-end'!==_0x5ad0c7['name']))['forEach'](_0x4b8904=>{'string'!=typeof _0x4b8904&&(_0x4b8904['children']=this['_removeRevisionMarkers'](_0x4b8904['children']),_0x4b8904['attributes']=_0x4b8904['attributes']['filter'](_0x20b362=>!_0x20b362[0x0]['startsWith']('data-revision-')));}),_0x34e246;}async['compare'](_0x4b3012,_0x2b44cc,_0x188544=!0x1){if(!this['isEnabled'])return;const _0x2200e4=this['diff'],_0x331764=this['repository'],_0x14df22='string'==typeof _0x4b3012?_0x331764['getRevision'](_0x4b3012):_0x4b3012,_0x4362b8='string'==typeof _0x2b44cc?_0x331764['getRevision'](_0x2b44cc):_0x2b44cc,_0x1ba697=_0x14df22['id'],_0x2f3957=_0x4362b8?_0x4362b8['id']:null;if(!_0x188544&&this['diff']&&this['diff']['newRevisionId']===_0x1ba697&&this['diff']['oldRevisionId']===_0x2f3957)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1ba697,_0x2f3957);const _0x42c86=this['_getRevisionsRange'](_0x14df22,_0x4362b8,!0x0)['map'](_0x4f0cbd=>this['loadRevisionData'](_0x4f0cbd));return _0x42c86['push'](new Promise(_0x670e50=>{setTimeout(_0x670e50,0x14);})),Promise['all'](_0x42c86)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x38d767=this['_getDiff'](_0x1ba697,_0x2f3957);for(const _0x160371 of _0x38d767['changes'])this['_changeIdToChange']['set'](_0x160371['id'],_0x160371);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1711ee=>{for(const _0x26edb6 of this['editor']['model']['document']['getRootNames']())_0x1711ee['detachRoot'](_0x26edb6);for(const _0x3f3e54 of Object['keys'](_0x38d767['model'])){const _0x4c46dc=_0x1711ee['addRoot'](_0x3f3e54);for(const _0x2d215a of Object['keys'](_0x38d767['attributes'][_0x3f3e54]))_0x1711ee['setAttribute'](_0x2d215a,_0x38d767['attributes'][_0x3f3e54][_0x2d215a],_0x4c46dc);_0x1711ee['insert'](_0x38d767['model'][_0x3f3e54],_0x4c46dc,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x38d767['changes'])),this['isReady']=!0x0;})['catch'](_0x567e2c=>{console['error'](_0x567e2c),this['_cleanUp'](),_0x2200e4&&(this['diff']=_0x2200e4),this['isReady']=!0x0;});}['addRevisionData'](_0x4541c3,_0x2075e1){const _0x2dba18=this['repository']['createRevision'](_0x4541c3);return _0x2dba18['on']('_update',(_0x4f7a63,_0x3e4542,_0x52bbcd)=>_0x2075e1(_0x3e4542,_0x52bbcd,_0x2dba18)),this['repository']['addRevision'](_0x2dba18),_0x2dba18;}['loadRevisionData'](_0x20f37a){if(!_0x20f37a||_0x20f37a['diffData'])return Promise['resolve']();{const _0x2b2bb6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b2bb6,'revisionId':_0x20f37a['id']})['then'](_0xb3402d=>{_0x20f37a['_update']({'diffData':_0xb3402d['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x210959=>{for(const _0x4b2dfa of this['editor']['model']['document']['getRootNames']())_0x210959['detachRoot'](_0x4b2dfa);});}['_sortAndFilterDiffChanges'](_0x498c52){const _0x331bf4=[],_0x4399fc=new Map();for(const _0x1e047c of this['editor']['model']['document']['getRootNames']()){const _0x220b0a=this['editor']['editing']['view']['getDomRoot'](_0x1e047c);if(!_0x220b0a)continue;const _0x515c60=_0x220b0a['getClientRects']()['item'](0x0);_0x515c60&&(_0x331bf4['push'](_0x1e047c),_0x4399fc['set'](_0x1e047c,_0x515c60));}return _0x331bf4['sort']((_0x2bd5ab,_0x5e76e3)=>{const _0x2deeec=_0x4399fc['get'](_0x2bd5ab),_0x529deb=_0x4399fc['get'](_0x5e76e3);return _0x2deeec['y']-_0x529deb['y']||_0x2deeec['x']-_0x529deb['x'];}),(_0x498c52=_0x498c52['filter'](_0x31763b=>_0x331bf4['includes'](_0x31763b['rootName'])))['sort']((_0x56b3e1,_0x35468a)=>_0x331bf4['indexOf'](_0x56b3e1['rootName'])-_0x331bf4['indexOf'](_0x35468a['rootName'])),_0x498c52;}['_makeTape'](_0x1c1b2a){const _0x31038a=Array['from'](_0x1c1b2a['markers'])['filter'](([_0x5d387c,_0x3c7e5f])=>_0x5d387c['startsWith']('revision:')&&!_0x3c7e5f['isCollapsed']),_0x130c78=Array['from'](this['editor']['model']['createRangeIn'](_0x1c1b2a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x31038a['length'])for(const _0x5108b7 of _0x130c78){const [_0x4ef0cf,_0xf61017]=_0x31038a[0x0],[,_0x1ba1f2,_0xab1343]=_0x4ef0cf['split'](':');if(_0xf61017['end']['isEqual'](_0x5108b7['nextPosition'])&&_0x31038a['shift'](),(_0x5108b7['previousPosition']['isEqual'](_0xf61017['start'])||_0x5108b7['previousPosition']['isAfter'](_0xf61017['start']))&&('insertion'==_0x1ba1f2?_0x5108b7['isAdded']={'userId':_0xab1343}:'deletion'==_0x1ba1f2&&(_0x5108b7['isRemoved']={'userId':_0xab1343})),0x0==_0x31038a['length'])break;}return _0x130c78;}['_refreshStartEndIndex'](_0xe4ef53){const _0xfbacad=new Map();for(let _0x410a3a=0x0;_0x410a3a<_0xe4ef53['length'];_0x410a3a++)'text'===_0xe4ef53[_0x410a3a]['type']?(_0xe4ef53[_0x410a3a]['item']['startIndex']=_0x410a3a,_0xe4ef53[_0x410a3a]['item']['endIndex']=_0x410a3a):('elementStart'===_0xe4ef53[_0x410a3a]['type']?_0xe4ef53[_0x410a3a]['item']['startIndex']=_0x410a3a:'elementEnd'===_0xe4ef53[_0x410a3a]['type']&&(_0xe4ef53[_0x410a3a]['item']['endIndex']=_0x410a3a),_0xfbacad['set'](_0xe4ef53[_0x410a3a]['id'],_0x410a3a));for(const _0x1f23e4 of _0xfbacad['values']())'elementStart'===_0xe4ef53[_0x1f23e4]['type']?_0xe4ef53[_0x1f23e4]['item']['endIndex']=_0xfbacad['get'](_0xe4ef53[_0x1f23e4]['pairId']):'elementEnd'===_0xe4ef53[_0x1f23e4]['type']&&(_0xe4ef53[_0x1f23e4]['item']['startIndex']=_0xfbacad['get'](_0xe4ef53[_0x1f23e4]['pairId']));}['_processTape'](_0x4d12df){for(let _0x1b8b82=0x0;_0x1b8b82<_0x4d12df['length'];_0x1b8b82++){if('elementStart'===_0x4d12df[_0x1b8b82]['type'])_0x4d12df[_0x1b8b82]['item']['startIndex']=_0x1b8b82;else{if('elementEnd'===_0x4d12df[_0x1b8b82]['type']){_0x4d12df[_0x1b8b82]['item']['endIndex']=_0x1b8b82;const _0x425f8f=_0x4d12df[_0x1b8b82]['item']['startIndex'];_0x4d12df[_0x425f8f]['pairId']=_0x4d12df[_0x1b8b82]['id'],_0x4d12df[_0x1b8b82]['pairId']=_0x4d12df[_0x425f8f]['id'];}else _0x4d12df[_0x1b8b82]['item']['startIndex']=_0x1b8b82,_0x4d12df[_0x1b8b82]['item']['endIndex']=_0x1b8b82,_0x4d12df[_0x1b8b82]['pairId']=null;}_0x4d12df[_0x1b8b82]['markersStart']||(_0x4d12df[_0x1b8b82]['markersStart']=[],_0x4d12df[_0x1b8b82]['markersEnd']=[]);}}['_markInsertions'](_0x61b712,_0x474083){const _0x3c615c=_0x61b712['filter'](_0x544563=>!_0x544563['isAdded']);for(let _0x194add=0x0;_0x194add<_0x474083['length'];_0x194add++)_0x474083[_0x194add]['isAdded']&&(_0x3c615c[_0x194add]['isAdded']=_0x474083[_0x194add]['isAdded']);}['_makeModelFromViewString'](_0x230701){const _0x5b29d8=JSON['parse'](_0x230701),_0x5c1191=this['editor']['editing']['view']['document'],_0x30bdd2=new _0x6888a3(_0x5c1191,_0x5b29d8['map'](_0x250f17=>this['_getViewObj'](_0x250f17)));return this['editor']['data']['toModel'](_0x30bdd2);}['_getViewObj'](_0x3d74c2){const _0x24aea7=this['editor']['editing']['view']['document'];if('string'==typeof _0x3d74c2)return new _0x24c62c(_0x24aea7,_0x3d74c2);{const _0x5671e4=_0x3d74c2['children']['map'](_0x1a1d28=>this['_getViewObj'](_0x1a1d28));return new(Y[_0x3d74c2['type']]||_0x40ee58)(_0x24aea7,_0x3d74c2['name'],_0x3d74c2['attributes'],_0x5671e4);}}['_getDiff'](_0x3fc8b7,_0x19dcde=null){const _0x75aa89=this['repository']['getRevision'](_0x3fc8b7),_0x118a87=_0x19dcde?this['repository']['getRevision'](_0x19dcde):null,_0x55252f=this['_getRevisionsRange'](_0x75aa89,_0x118a87),_0x26f70d=_0x55252f[_0x55252f['length']-0x1],_0x30b3ed=new Map(),_0xfbf4f8={'model':{},'attributes':{},'changes':[]},_0x375bc1=new Set(),_0x84ec4e=new Map();for(let _0x5ee5ec=_0x55252f['length']-0x1;_0x5ee5ec>=0x0;_0x5ee5ec--){const _0x1ab36d=_0x55252f[_0x5ee5ec];for(const _0x4f696c of Object['keys'](_0x1ab36d['diffData']))if(_0x1ab36d['diffData'][_0x4f696c]['attachChange']){const _0x3107c8=_0x1ab36d['diffData'][_0x4f696c]['attachChange'];_0x3107c8['isAttached']?(_0x375bc1['add'](_0x4f696c),_0x84ec4e['has'](_0x4f696c)&&_0x84ec4e['get'](_0x4f696c)['userId']==_0x3107c8['userId']?_0x84ec4e['delete'](_0x4f696c):_0x84ec4e['set'](_0x4f696c,_0x3107c8)):_0x84ec4e['has'](_0x4f696c)?(_0x375bc1['delete'](_0x4f696c),_0x84ec4e['delete'](_0x4f696c)):(_0x375bc1['add'](_0x4f696c),_0x84ec4e['set'](_0x4f696c,_0x3107c8));}else _0x375bc1['add'](_0x4f696c);}for(const _0x369299 of _0x375bc1){const _0x148a71=_0x84ec4e['has'](_0x369299)&&!_0x84ec4e['get'](_0x369299)['isAttached'];let _0x330f26=_0x148a71?_0x55252f['length']-0x1:0x0;const _0x4b6cd1=_0x148a71?-0x1:0x1;for(;_0x55252f[_0x330f26];){const _0x3f920d=_0x55252f[_0x330f26];if(_0x3f920d['diffData'][_0x369299]){const _0x1ae69b=_0x148a71?_0x3f920d['diffData'][_0x369299]['attributesBefore']:_0x3f920d['diffData'][_0x369299]['attributesAfter'];_0xfbf4f8['attributes'][_0x369299]=_0x1ae69b?_0x312480(_0x1ae69b):{};break;}_0x330f26+=_0x4b6cd1;}}for(const _0x92d357 of _0x55252f){_0x92d357['model']={};for(const _0x2fe9d2 of _0x92d357['authors'])_0x30b3ed['set'](_0x2fe9d2['id'],_0x2fe9d2);for(const _0x147663 of _0x375bc1){const _0x2eaf8d=_0x92d357['diffData'][_0x147663]?_0x92d357['diffData'][_0x147663]['insertions']:'[]',_0x2707ef=_0x92d357['diffData'][_0x147663]?_0x92d357['diffData'][_0x147663]['deletions']:'[]';_0x92d357['model'][_0x147663]={'insertions':this['_makeModelFromViewString'](_0x2eaf8d),'deletions':this['_makeModelFromViewString'](_0x2707ef)};}}for(const _0x3a020c of _0x375bc1){let _0x1e37b7=null,_0x3eb5d2=0x0;const _0x43d4e6=new Map(Array['from'](_0x75aa89['model'][_0x3a020c]['insertions']['markers'])['filter'](([_0x327f39])=>!_0x327f39['startsWith']('revision:')));let _0x10e9d9=0x0;for(const _0x4adeb8 of _0x55252f){const _0x3d5145=this['_makeTape'](_0x4adeb8['model'][_0x3a020c]['insertions']);_0x4adeb8==_0x75aa89?(_0x1e37b7=_0x3d5145,_0x3eb5d2=_0x1e37b7['length'],_0x1e37b7['forEach'](_0x48781a=>{_0x48781a['id']=_0x10e9d9++;}),this['_processTape'](_0x1e37b7)):this['_markInsertions'](_0x1e37b7,_0x3d5145);const _0x473925=_0x1e37b7['filter'](_0x3acabf=>!_0x3acabf['isAdded'])['map'](_0x20755a=>_0x20755a['id']);let _0x1aeb76=0x0;const _0x2adc1e=this['_makeTape'](_0x4adeb8['model'][_0x3a020c]['deletions']);_0x2adc1e['forEach'](_0x58d735=>{_0x58d735['isRemoved']?_0x58d735['id']=_0x3eb5d2++:_0x58d735['id']=_0x473925[_0x1aeb76++];}),this['_processTape'](_0x2adc1e),this['_setDistance'](_0x1e37b7,'isAdded'),this['_setDistance'](_0x2adc1e,'isRemoved'),_0x4adeb8==_0x75aa89&&this['_markMarkers'](_0x1e37b7,_0x43d4e6),_0x1e37b7=this['_joinTapes'](_0x1e37b7,_0x2adc1e),this['_refreshStartEndIndex'](_0x1e37b7),this['_setDistance'](_0x1e37b7,'isRemoved');}_0x1e37b7=_0x1e37b7['filter'](_0x505fb0=>!(_0x505fb0['isAdded']&&_0x505fb0['isRemoved']));const _0x591e02=new Map(_0x26f70d['model'][_0x3a020c]['deletions']['markers']),_0x536370=new Set(_0x43d4e6['keys']());for(const _0xe10dff of _0x591e02['keys']())_0x536370['delete'](_0xe10dff);this['_markSuggestions'](_0x1e37b7,_0x536370),this['_fixObsoleteTags'](_0x1e37b7),_0x1e37b7=this['_removeMissingPairs'](_0x1e37b7),_0x1e37b7=this['_markMismatchedRemovedTags'](_0x1e37b7),_0x1e37b7=this['_removeUnsupportedChanges'](_0x1e37b7);const {root:_0x1379e8,changes:_0x27b4fc}=this['_makeModelFromTape'](_0x1e37b7,_0x30b3ed,_0x3a020c);_0xfbf4f8['model'][_0x3a020c]=_0x1379e8;const _0x754c88=_0x84ec4e['get'](_0x3a020c);if(_0x754c88){const _0x377cbe=_0x30b3ed['get'](_0x754c88['userId']),_0xc4faa3=new r({'author':_0x377cbe,'type':_0x754c88['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3a020c});_0x27b4fc['unshift'](_0xc4faa3),_0xfbf4f8['attributes'][_0x3a020c]['revisionHistoryAttachChange']=_0xc4faa3['id'];}_0xfbf4f8['changes']=_0xfbf4f8['changes']['concat'](_0x27b4fc);}return _0xfbf4f8;}['_markMarkers'](_0x3e9018,_0x5981ae){for(let _0x9096bb=0x0;_0x9096bb<_0x3e9018['length'];_0x9096bb++)for(const [_0x4e23a6,_0x501999]of _0x5981ae)_0x501999['start']['isEqual'](_0x3e9018[_0x9096bb]['previousPosition'])&&_0x3e9018[_0x9096bb]['markersStart']['push'](_0x4e23a6),_0x501999['end']['isEqual'](_0x3e9018[_0x9096bb]['nextPosition'])&&_0x3e9018[_0x9096bb]['markersEnd']['push'](_0x4e23a6);}['_joinTapes'](_0x6abd6e,_0x54a989){let _0x1fab1e=[],_0x40cce2=0x0,_0x5936ef=0x0;for(;_0x40cce2<_0x6abd6e['length']||_0x5936ef<_0x54a989['length'];){const _0x93c36e=_0x6abd6e[_0x40cce2]||{},_0xe88c80=_0x54a989[_0x5936ef]||{};if(_0x93c36e['id']==_0xe88c80['id'])_0x40cce2++,_0x5936ef++,_0x1fab1e['push'](_0x93c36e);else{if(_0xe88c80['isRemoved']&&_0x93c36e['isAdded']){const {commonTape:_0x4277f5,iEnd:_0x33f27b,jEnd:_0x4f143d}=this['_threeWayMerge'](_0x6abd6e,_0x40cce2,_0x54a989,_0x5936ef);_0x1fab1e=_0x1fab1e['concat'](_0x4277f5),_0x40cce2=_0x33f27b,_0x5936ef=_0x4f143d;}else _0xe88c80['isRemoved']?(_0x5936ef++,_0x1fab1e['push'](_0xe88c80)):(_0x40cce2++,_0x1fab1e['push'](_0x93c36e));}}return _0x1fab1e;}['_markSuggestions'](_0x32810d,_0x561211){const _0x58a958=[];for(let _0xab11b9=0x0;_0xab11b9<_0x32810d['length'];_0xab11b9++){for(let _0x2f322b=0x0;_0x2f322b<_0x32810d[_0xab11b9]['markersStart']['length'];_0x2f322b++){const _0x1a06ce=_0x32810d[_0xab11b9]['markersStart'][_0x2f322b];if(!_0x561211['has'](_0x1a06ce))continue;const {group:_0x498a54,type:_0x1e0ec6,authorId:_0x1631d2}=_0x4c7b93(_0x1a06ce);'revision-suggestion'!=_0x498a54||'insertion'!=_0x1e0ec6&&'deletion'!=_0x1e0ec6||(_0x58a958['unshift']({'type':_0x1e0ec6,'name':_0x1a06ce,'userId':_0x1631d2}),_0x32810d[_0xab11b9]['markersStart']['splice'](_0x2f322b,0x1),_0x2f322b--);}_0x2b050d(_0x32810d[_0xab11b9]);for(let _0x2353f6=0x0;_0x2353f6<_0x32810d[_0xab11b9]['markersEnd']['length'];_0x2353f6++){const _0x2cda4f=_0x32810d[_0xab11b9]['markersEnd'][_0x2353f6];if(!_0x561211['has'](_0x2cda4f))continue;const {group:_0xf731b4,type:_0x5479fa}=_0x4c7b93(_0x2cda4f);if('revision-suggestion'!=_0xf731b4||'insertion'!=_0x5479fa&&'deletion'!=_0x5479fa)continue;_0x32810d[_0xab11b9]['markersEnd']['splice'](_0x2353f6,0x1),_0x2353f6--;const _0x3c47f3=_0x58a958['findIndex'](_0x4609ea=>_0x4609ea['name']==_0x2cda4f);_0x3c47f3>-0x1&&_0x58a958['splice'](_0x3c47f3,0x1);}}function _0x4c7b93(_0xb5971a){const _0x249d1e=_0xb5971a['split'](':');return{'group':_0x249d1e[0x0],'type':_0x249d1e[0x1],'subType':_0x249d1e['length']>=0x5?_0x249d1e[0x2]:null,'id':_0x249d1e['length']<0x5?_0x249d1e[0x2]:_0x249d1e[0x3],'authorId':_0x249d1e['length']<0x5?_0x249d1e[0x3]:_0x249d1e[0x4],'markerCount':0x6==_0x249d1e['length']?_0x249d1e[0x5]:null};}function _0x2b050d(_0xca4658){for(let _0x2ae8ed=0x0;_0x2ae8ed<_0x58a958['length'];_0x2ae8ed++){if(_0xca4658['isAdded']&&'insertion'==_0x58a958[_0x2ae8ed]['type'])return _0xca4658['isAddSuggestion']=_0x58a958[_0x2ae8ed],void delete _0xca4658['isAdded'];if(!_0xca4658['isAdded']&&!_0xca4658['isRemoved']&&'deletion'==_0x58a958[_0x2ae8ed]['type'])return void(_0xca4658['isRemoveSuggestion']=_0x58a958[_0x2ae8ed]);}}}['_setDistance'](_0x132594,_0x503869){let _0x1cbd84=0x0,_0x217f46=!0x1;const _0x59a606=new Map();for(const _0x7279e6 of _0x132594)_0x7279e6[_0x503869]?_0x217f46&&(_0x1cbd84++,_0x217f46=!0x1):(_0x1cbd84++,_0x217f46=!0x0),_0x59a606['set'](_0x7279e6['id'],_0x1cbd84);for(let _0x25fdd8=0x0;_0x25fdd8<_0x132594['length'];_0x25fdd8++){if('isRemoved'==_0x503869&&_0x132594[_0x25fdd8]['isAdded']||'isAdded'==_0x503869&&_0x132594[_0x25fdd8]['isRemoved'])continue;if('text'==_0x132594[_0x25fdd8]['type']){_0x132594[_0x25fdd8]['distance']=0x0;continue;}const _0x1897c7=_0x59a606['get'](_0x132594[_0x25fdd8]['pairId']),_0x2f1149=_0x59a606['get'](_0x132594[_0x25fdd8]['id']);_0x132594[_0x25fdd8]['distance']=_0x1897c7-_0x2f1149;}}['_getRevisionsRange'](_0x2ec532,_0x887458,_0x43e010=!0x1){const _0x515fba=[];let _0x59461f=this['repository']['getIndex'](_0x2ec532),_0x3644d9=this['repository']['getIndex'](_0x887458);for(-0x1==_0x3644d9&&(_0x3644d9=this['repository']['_revisions']['length'],_0x43e010=!0x1);_0x59461f<_0x3644d9;)_0x515fba['push'](this['repository']['getRevision'](_0x59461f)),_0x59461f++;return _0x43e010&&_0x515fba['push'](this['repository']['getRevision'](_0x59461f)),_0x515fba;}['_threeWayMerge'](_0x5c4dd3,_0x366730,_0x2cd042,_0x4d35fa){const _0x41bfd7=this['editor']['model']['schema'];let _0x5aeb14=_0x366730;for(;_0x5c4dd3[_0x5aeb14]&&_0x5c4dd3[_0x5aeb14]['isAdded'];)_0x5aeb14++;let _0x405f4f=_0x4d35fa;for(;_0x2cd042[_0x405f4f]&&_0x2cd042[_0x405f4f]['isRemoved'];)_0x405f4f++;_0x4e75e(_0x5c4dd3,_0x366730,_0x5aeb14),_0x4e75e(_0x2cd042,_0x4d35fa,_0x405f4f);const _0x2a80f2=_0x2cd042['slice'](_0x4d35fa,_0x405f4f)['concat'](_0x5c4dd3['slice'](_0x366730,_0x5aeb14));return _0x2a80f2['sort']((_0x361de0,_0xa13989)=>_0x361de0['side']!=_0xa13989['side']?_0x361de0['side']-_0xa13989['side']:_0x361de0['level']!=_0xa13989['level']?_0x361de0['level']-_0xa13989['level']:_0x361de0['distance']!=_0xa13989['distance']?_0xa13989['distance']-_0x361de0['distance']:!!_0x361de0['isAdded']!=!!_0xa13989['isAdded']?-0x1==_0x361de0['side']||0x0==_0x361de0['side']?_0x361de0['isAdded']?-0x1:0x1:_0x361de0['isAdded']?0x1:-0x1:_0x361de0['index']-_0xa13989['index']),{'commonTape':_0x2a80f2,'iEnd':_0x5aeb14,'jEnd':_0x405f4f};function _0x4e75e(_0x503adb,_0x4029ee,_0x249baf){let _0x42795f=-0x1,_0x552520=Number['POSITIVE_INFINITY'],_0x68f715=!0x0;for(let _0x5a250a=_0x4029ee;_0x5a250a<_0x249baf;_0x5a250a++)if(_0x41bfd7['isInline'](_0x503adb[_0x5a250a]['item'])||(_0x68f715=!0x1),_0x503adb[_0x5a250a]['item']['startIndex']<_0x4029ee&&(_0x42795f=_0x5a250a),_0x503adb[_0x5a250a]['item']['endIndex']>=_0x249baf){_0x552520=_0x5a250a;break;}_0x68f715&&(_0x42795f=_0x249baf-0x1);for(let _0xb49400=_0x4029ee;_0xb49400<_0x249baf;_0xb49400++)_0x503adb[_0xb49400]['side']=_0xb49400<=_0x42795f?-0x1:_0xb49400<_0x552520?0x0:0x1,_0x503adb[_0xb49400]['index']=_0xb49400;let _0x454dfb=0x0;for(let _0x49f0e7=_0x4029ee;_0x49f0e7<=_0x42795f;_0x49f0e7++)0x0==_0x503adb[_0x49f0e7]['distance']?_0x503adb[_0x49f0e7]['level']=_0x454dfb:(_0x454dfb++,_0x503adb[_0x49f0e7]['level']=_0x454dfb,_0x454dfb++);for(let _0x41a5ed=_0x4029ee;_0x41a5ed<_0x249baf;_0x41a5ed++)0x0==_0x503adb[_0x41a5ed]['side']&&(_0x503adb[_0x41a5ed]['level']=_0x454dfb);_0x454dfb=0x0;for(let _0xbe2c78=_0x249baf-0x1;_0xbe2c78>=_0x552520;_0xbe2c78--)0x0==_0x503adb[_0xbe2c78]['distance']?_0x503adb[_0xbe2c78]['level']=_0x454dfb:(_0x454dfb--,_0x503adb[_0xbe2c78]['level']=_0x454dfb,_0x454dfb--);}}['_fixObsoleteTags'](_0x1c2366){const _0x4d6414=new Map(),_0x1dc234=this['editor']['model']['schema'];for(let _0x472793=0x1;_0x472793<_0x1c2366['length'];_0x472793++){let _0x530713,_0x131b2d,_0x438018;const _0x59ff4f=_0x1c2366[_0x472793],_0x5b1f6c=_0x1c2366[_0x472793-0x1];if('text'==_0x59ff4f['type'])continue;if(_0x59ff4f['type']!=_0x5b1f6c['type'])continue;if(!_0x1dc234['isBlock'](_0x5b1f6c['item'])||_0x1dc234['isLimit'](_0x5b1f6c['item']))continue;if(!_0x1dc234['isBlock'](_0x59ff4f['item'])||_0x1dc234['isLimit'](_0x59ff4f['item']))continue;if((_0x1c2366[_0x472793]['isAdded']||_0x1c2366[_0x472793]['isAddSuggestion'])&&_0x1c2366[_0x472793-0x1]['isRemoved'])_0x530713=_0x1c2366[_0x472793],_0x131b2d=_0x1c2366[_0x472793-0x1],_0x438018=_0x472793-0x1;else{if(!_0x1c2366[_0x472793]['isRemoved']||!_0x1c2366[_0x472793-0x1]['isAdded']&&!_0x1c2366[_0x472793-0x1]['isAddSuggestion'])continue;_0x530713=_0x1c2366[_0x472793-0x1],_0x131b2d=_0x1c2366[_0x472793],_0x438018=_0x472793;}const _0x25077a=_0x530713['level']==_0x131b2d['level'],_0x3cc61a=Math['abs'](_0x530713['level'])<Math['abs'](_0x131b2d['level'])&&0x0==_0x131b2d['distance'];(_0x25077a||_0x3cc61a)&&(_0x4d6414['set'](_0x131b2d['id'],_0x530713['id']),_0x1c2366['splice'](_0x438018,0x1),_0x472793--,_0x530713['isAdded']=!0x1);}for(let _0x4b1da0=0x0;_0x4b1da0<_0x1c2366['length'];_0x4b1da0++)_0x4d6414['has'](_0x1c2366[_0x4b1da0]['pairId'])&&(_0x1c2366[_0x4b1da0]['pairId']=_0x4d6414['get'](_0x1c2366[_0x4b1da0]['pairId']));}['_removeMissingPairs'](_0x26751e){const _0x25f24b=new Set(_0x26751e['map'](_0x3f67fd=>_0x3f67fd['id']));for(let _0x584a84=0x0;_0x584a84<_0x26751e['length'];_0x584a84++)_0x25f24b['has'](_0x26751e[_0x584a84]['pairId'])||0x0==_0x26751e[_0x584a84]['distance']||(_0x26751e[_0x584a84]['isIncorrect']=!0x0);return _0x26751e['filter'](_0x24cf95=>!_0x24cf95['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2c6d21){const _0xf936c1=new Set();for(let _0x49b623=0x0;_0x49b623<_0x2c6d21['length'];_0x49b623++){if(_0xf936c1['has'](_0x2c6d21[_0x49b623]['id'])&&_0x2c6d21[_0x49b623]['isRemoved']&&(_0x2c6d21[_0x49b623]['isIncorrect']=!0x0),_0x2c6d21[_0x49b623]['isIncorrect'])continue;if(0x0==_0x2c6d21[_0x49b623]['distance'])continue;if('elementStart'!=_0x2c6d21[_0x49b623]['type'])continue;if(null==_0x2c6d21[_0x49b623]['pairId'])continue;let _0x581409=_0x49b623+0x1,_0x595414=0x0;for(;_0x2c6d21[_0x581409]['id']!=_0x2c6d21[_0x49b623]['pairId'];)'elementStart'==_0x2c6d21[_0x581409]['type']?_0x595414++:'elementEnd'==_0x2c6d21[_0x581409]['type']&&_0x595414--,_0x581409++;if(0x0!=_0x595414){if(_0x2c6d21[_0x49b623]['isRemoved'])_0x2c6d21[_0x49b623]['isIncorrect']=!0x0;else{for(;_0x581409!=_0x49b623;)_0x2c6d21[_0x581409]['isRemoved']&&0x0!=_0x2c6d21[_0x581409]['distance']&&(_0x2c6d21[_0x581409]['isIncorrect']=!0x0,_0xf936c1['add'](_0x2c6d21[_0x581409]['pairId'])),_0x581409--;}}}return _0x2c6d21['filter'](_0x442d83=>!_0x442d83['isIncorrect']);}['_removeUnsupportedChanges'](_0x334bbf){const _0x26945c=this['editor']['model']['schema'];for(let _0x28737a=0x0;_0x28737a<_0x334bbf['length'];_0x28737a++){if(!(_0x334bbf[_0x28737a]['isAdded']||_0x334bbf[_0x28737a]['isAddSuggestion']||_0x334bbf[_0x28737a]['isRemoved']||_0x334bbf[_0x28737a]['isRemoveSuggestion']))continue;if(0x0==_0x334bbf[_0x28737a]['distance'])continue;const _0x474efc=_0x334bbf[_0x28737a]['item'];_0x26945c['isBlock'](_0x474efc)||_0x26945c['isLimit'](_0x474efc)||(_0x334bbf[_0x28737a]['isAdded']&&delete _0x334bbf[_0x28737a]['isAdded'],_0x334bbf[_0x28737a]['isAddSuggestion']&&delete _0x334bbf[_0x28737a]['isAddSuggestion'],_0x334bbf[_0x28737a]['isRemoveSuggestion']&&delete _0x334bbf[_0x28737a]['isRemoveSuggestion'],_0x334bbf[_0x28737a]['isRemoved']&&(_0x334bbf[_0x28737a]['isIncorrect']=!0x0));}return _0x334bbf['filter'](_0x4ec945=>!_0x4ec945['isIncorrect']);}['_makeModelFromTape'](_0xc416ea,_0x2b5835,_0x46b1a7){const _0x12b3c8=new gt(),_0x47d6c7=[],_0x178a3a=new Map(),_0x540a65=this['editor']['model'],_0x3cb1f8=_0x540a65['schema'],_0x880657=[_0x12b3c8],_0x1d8cec={},_0x5e5841={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5d3555=null;const _0xa30be=[0x0];for(let _0x4dc44c=0x0;_0x4dc44c<_0xc416ea['length'];_0x4dc44c++)if('elementStart'===_0xc416ea[_0x4dc44c]['type']){_0xc416ea[_0x4dc44c]['previousPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be);const _0x3466e7=new ut(_0xc416ea[_0x4dc44c]['item']['name'],_0xc416ea[_0x4dc44c]['item']['getAttributes']());_0x880657[0x0]['_appendChild'](_0x3466e7),_0xa30be['push'](0x0),_0x880657['unshift'](_0x3466e7),_0xc416ea[_0x4dc44c]['nextPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be);}else'elementEnd'===_0xc416ea[_0x4dc44c]['type']?(_0x880657['shift'](),_0xc416ea[_0x4dc44c]['previousPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be),_0xa30be['pop'](),_0xa30be[_0xa30be['length']-0x1]++,_0xc416ea[_0x4dc44c]['nextPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be)):(_0xc416ea[_0x4dc44c]['previousPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be),_0x5d3555?_0x5d3555['_data']+=_0xc416ea[_0x4dc44c]['item']['data']:_0x5d3555=new mt(_0xc416ea[_0x4dc44c]['item']['data'],_0xc416ea[_0x4dc44c]['item']['getAttributes']()),_0xc416ea[_0x4dc44c+0x1]&&'text'===_0xc416ea[_0x4dc44c+0x1]['type']&&_0x43c3f1(_0x5d3555,_0xc416ea[_0x4dc44c+0x1]['item'])||(_0x880657[0x0]['_appendChild'](_0x5d3555),_0x5d3555=null),_0xa30be[_0xa30be['length']-0x1]+=_0xc416ea[_0x4dc44c]['item']['offsetSize'],_0xc416ea[_0x4dc44c]['nextPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be));for(let _0x47e1e4=0x0;_0x47e1e4<_0xc416ea['length'];_0x47e1e4++){const _0x333962=_0xc416ea[_0x47e1e4]['previousPosition'],_0x1f4b61=_0xc416ea[_0x47e1e4]['nextPosition'];for(const _0x219562 of _0xc416ea[_0x47e1e4]['markersStart'])_0x178a3a['set'](_0x219562,{'start':_0x333962,'end':null});_0x5ccb71('isRemoveSuggestion',_0x47e1e4,_0x333962,_0x1f4b61),_0x5ccb71('isAddSuggestion',_0x47e1e4,_0x333962,_0x1f4b61),_0x5ccb71('isRemoved',_0x47e1e4,_0x333962,_0x1f4b61),_0x5ccb71('isAdded',_0x47e1e4,_0x333962,_0x1f4b61);for(const _0x23b1b8 of _0xc416ea[_0x47e1e4]['markersEnd']){_0x178a3a['get'](_0x23b1b8)['end']=_0x1f4b61;}}for(const [_0x1fac4b,_0x188a3a]of _0x178a3a){const _0x5b4f92=this['editor']['model']['createRange'](_0x188a3a['start'],_0x188a3a['end']);_0x12b3c8['markers']['set'](_0x1fac4b,_0x5b4f92);}return _0x47d6c7['sort']((_0x198161,_0x4ffe48)=>{const _0x3093b9=_0x12b3c8['markers']['get']('revision:'+_0x198161['id']),_0x2fe72c=_0x12b3c8['markers']['get']('revision:'+_0x4ffe48['id']);return _0x3093b9['start']['isBefore'](_0x2fe72c['start'])?-0x1:_0x3093b9['start']['isAfter'](_0x2fe72c['start'])?0x1:_0x3093b9['end']['isBefore'](_0x2fe72c['end'])?-0x1:_0x3093b9['end']['isAfter'](_0x2fe72c['end'])?0x1:'add'===_0x198161['type']?-0x1:0x1;}),{'root':_0x12b3c8,'changes':_0x47d6c7};function _0x5ccb71(_0x488028,_0x193f64,_0x4fcd68,_0x5592ab){const _0x1191fc=!!_0xc416ea[_0x193f64][_0x488028],_0x2d9ccf=_0x1191fc?_0xc416ea[_0x193f64][_0x488028]['userId']:null,_0x5e1beb=_0x193f64===_0xc416ea['length']-0x1,_0x11ea13=_0x5e5841[_0x488028][0x0],_0x2502a5=_0x3cb1f8['isObject'](_0xc416ea[_0x193f64]['item']);!_0x1d8cec[_0x488028]&&_0x1191fc?_0x1d8cec[_0x488028]={'start':_0x4fcd68,'tapeItem':_0xc416ea[_0x193f64],'userId':_0x2d9ccf,'type':_0x488028}:_0x1d8cec[_0x488028]&&!_0x1191fc?(_0x1d8cec[_0x488028]['end']=_0x4fcd68,_0x3edee9(_0x1d8cec[_0x488028]),_0x1d8cec[_0x488028]=null):_0x1d8cec[_0x488028]&&_0x1191fc&&_0x1d8cec[_0x488028]['userId']!==_0x2d9ccf&&(_0x1d8cec[_0x488028]['end']=_0x4fcd68,_0x11ea13&&_0x11ea13['userId']===_0x1d8cec[_0x488028]['userId']||_0x3edee9(_0x1d8cec[_0x488028]),_0x1d8cec[_0x488028]={'start':_0x4fcd68,'tapeItem':_0xc416ea[_0x193f64],'userId':_0x2d9ccf,'type':_0x488028}),_0x1d8cec[_0x488028]&&_0x2502a5&&('elementStart'!==_0xc416ea[_0x193f64]['type']||_0x11ea13&&_0x11ea13['userId']===_0x2d9ccf||_0x5e5841[_0x488028]['unshift']({'userId':_0x2d9ccf,'object':_0xc416ea[_0x193f64]['item'],'change':_0x1d8cec[_0x488028]}),'elementEnd'===_0xc416ea[_0x193f64]['type']&&_0x11ea13&&_0x11ea13['object']===_0xc416ea[_0x193f64]['item']&&(_0x5e5841[_0x488028]['shift'](),_0x1d8cec[_0x488028]=_0x11ea13['change'])),_0x1d8cec[_0x488028]&&_0x5e1beb&&(_0x1d8cec[_0x488028]['end']=_0x5592ab,_0x3edee9(_0x1d8cec[_0x488028]),_0x1d8cec[_0x488028]=null);}function _0x3edee9({start:_0x15e050,end:_0x3892c2,tapeItem:_0x422289,userId:_0x44efee,type:_0x1061b2}){const _0x437199=_0x422289['item'],_0x311070=_0x540a65['schema']['isBlock'](_0x437199)&&!_0x540a65['schema']['isLimit'](_0x437199),_0x34d62a=_0x15e050['nodeAfter']==_0x3892c2['parent']&&_0x3892c2['isAtStart'];if(_0x311070&&_0x34d62a)return;const _0x9bc577=_0x540a65['createRange'](_0x15e050,_0x3892c2),_0x39d200=_0x2b5835['get'](_0x44efee),_0x4a158f=new r({'author':_0x39d200,'type':'isAdded'==_0x1061b2||'isAddSuggestion'==_0x1061b2?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1061b2||'isRemoveSuggestion'==_0x1061b2},'createdAt':new Date(),'rootName':_0x46b1a7});_0x47d6c7['push'](_0x4a158f),_0x12b3c8['markers']['set']('revision:'+_0x4a158f['id'],_0x9bc577);}function _0x43c3f1(_0x2e19b5,_0x493fff){const _0x450498=_0x2e19b5['getAttributes'](),_0x449903=_0x493fff['getAttributes']();for(const _0x22073a of _0x450498){if(_0x22073a[0x1]!==_0x493fff['getAttribute'](_0x22073a[0x0]))return!0x1;_0x449903['next']();}return _0x449903['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x524aed=>{const _0x4b758d=_0x524aed['markerName']['split'](':')[0x1],_0x208d54=this['_getChangeFromId'](_0x4b758d);if(!_0x208d54)return null;const _0x1fdf29='add'==_0x208d54['type']?'insertion':'deletion',_0x4aef57=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1fdf29];return _0x208d54['data']['isSuggestion']&&_0x4aef57['push']('ck-suggestion-marker-'+_0x1fdf29+'-new'),this['activeChange']==_0x208d54&&_0x4aef57['push']('ck-suggestion-marker--active'),{'classes':_0x4aef57,'attributes':{'data-change-id':_0x4b758d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x24c4a7=>{_0x24c4a7['on']('element:pre',(_0x164be1,_0x584a95,_0x5a9f52)=>{const _0x30564a=_0x584a95['viewItem']['getChild'](0x0);if(!_0x30564a||!_0x30564a['is']('element','code'))return;if(!_0x5a9f52['consumable']['consume'](_0x30564a,{'attributes':['vid_start','vid_end']}))return;const _0x549fbe=_0x584a95['modelRange']['start']['nodeAfter'];_0x5a9f52['writer']['setAttribute']('vid_start',_0x30564a['getAttribute']('vid_start'),_0x549fbe),_0x5a9f52['writer']['setAttribute']('vid_end',_0x30564a['getAttribute']('vid_end'),_0x549fbe);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3af4a=>{_0x3af4a['on']('element',(_0x5854e3,_0x554ffa,_0x42bc9e)=>{if(!_0x42bc9e['consumable']['consume'](_0x554ffa['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x554ffa['modelRange']['isCollapsed'])return;const _0x13759c=_0x554ffa['modelRange']['start']['nodeAfter'];_0x13759c['hasAttribute']('vid_start')||_0x13759c['hasAttribute']('vid')||(_0x42bc9e['writer']['setAttribute']('vid_start',_0x554ffa['viewItem']['getAttribute']('vid_start'),_0x13759c),_0x42bc9e['writer']['setAttribute']('vid_end',_0x554ffa['viewItem']['getAttribute']('vid_end'),_0x13759c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x13e371=>_0x13e371['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x468f28,[,_0x4801dd])=>{['vid_start','vid_end','vid']['includes'](_0x4801dd)&&(_0x468f28['return']=!0x0,_0x468f28['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3d2dca=>{_0x3d2dca['on']('attribute:vid',(_0x336f89,_0x2dd4ab,_0x512d16)=>{if('\x20'!=_0x2dd4ab['item']['data']||_0x2dd4ab['item']['parent']['maxOffset']>0x1)return;if(!_0x512d16['consumable']['consume'](_0x2dd4ab['item'],_0x336f89['name']))return;const _0x172fe6=_0x512d16['writer'],_0x4aab5d=_0x512d16['mapper']['toViewRange'](_0x2dd4ab['range']);_0x172fe6['wrap'](_0x4aab5d,_0x172fe6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x35fefd){const _0x5e87b7=_0x35fefd['plugins']['get']('RevisionViewer');return(_0x410b66,_0x3fe11,_0x5d15e5)=>{const _0x1c9cfb=_0x3fe11['markerName']['split'](':')[0x1],_0x3d70fb=_0x5e87b7['_getChangeFromId'](_0x1c9cfb);if(!_0x3d70fb)return null;const _0x304d84='add'==_0x3d70fb['type']?'split':'merge';if(!_0x5d15e5['consumable']['test'](_0x3fe11['markerRange'],_0x410b66['name']))return;const _0x18a024=_0x3fe11['markerRange']['getWalker'](),_0x451717=_0x3fe11['markerRange']['start'],_0x39ba7e=_0x35fefd['model']['schema'];let _0x15d2c9=null,_0x3101e6=null,_0x48da82=!0x1,_0xb5cb7d=!0x1;for(const _0x251b02 of _0x18a024){const _0x5a441f=_0x251b02['item'];_0x48da82=_0x48da82||_0x39ba7e['isContent'](_0x5a441f);const _0x52f23c=_0x5d15e5['mapper']['toViewElement'](_0x5a441f);if(_0x52f23c&&_0x52f23c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x251b02['type']&&(_0x39ba7e['isBlock'](_0x5a441f)&&!_0x39ba7e['isLimit'](_0x5a441f)&&(_0x5a441f['nextSibling']||_0x451717['isAtEnd']?_0x15d2c9&&_0x15d2c9['parent']==_0x5a441f||(_0x15d2c9=_0x5a441f,_0x2e74dd(_0x251b02['previousPosition']),_0xb5cb7d=!0x0):_0x3101e6=_0x3101e6||_0x251b02['previousPosition']));}function _0x2e74dd(_0x12b0b3){const _0x14c4bd=_0x5d15e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x304d84}),_0x5414fc=_0x5d15e5['mapper']['toViewPosition'](_0x12b0b3);_0x3d70fb['data']['isSuggestion']&&_0x5d15e5['writer']['addClass']('ck-suggestion-marker-'+_0x304d84+'-new',_0x14c4bd),_0x5e87b7['activeChange']==_0x3d70fb&&_0x5d15e5['writer']['addClass']('ck-suggestion-marker--active',_0x14c4bd),_0x5d15e5['writer']['insert'](_0x5414fc,_0x14c4bd),_0x5d15e5['mapper']['bindElementToMarker'](_0x14c4bd,_0x3fe11['markerName']);}_0x48da82||_0xb5cb7d||!_0x3101e6||_0x2e74dd(_0x3101e6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3d1ec9,_0x1a0842,_0x59d7c9)=>{const _0xe2667b=_0x59d7c9['mapper']['markerNameToElements'](_0x1a0842['markerName']);if(_0xe2667b){for(const _0x48d269 of _0xe2667b)(_0x48d269['hasClass']('ck-suggestion-marker-split')||_0x48d269['hasClass']('ck-suggestion-marker-merge'))&&(_0x59d7c9['mapper']['unbindElementFromMarkerName'](_0x48d269,_0x1a0842['markerName']),_0x59d7c9['writer']['remove'](_0x48d269));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xa5f4de,_0x57e1d7,_0x2b345c)=>{const _0x8e0ab9=_0x57e1d7['markerName']['split'](':')[0x1],_0x3c07ef=this['_getChangeFromId'](_0x8e0ab9);if(!_0x3c07ef)return null;const _0x3056bf='add'==_0x3c07ef['type']?'split':'merge';if(_0x2b345c['consumable']['test'](_0x57e1d7['markerRange'],_0xa5f4de['name']))for(const _0x135523 of _0x57e1d7['markerRange']['getItems']()){if(!_0x135523['is']('element','softBreak'))continue;const _0x5d6969=_0x2b345c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3056bf}),_0x5ecd59=_0x2b345c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x135523));_0x3c07ef['data']['isSuggestion']&&_0x2b345c['writer']['addClass']('ck-suggestion-marker-'+_0x3056bf+'-new',_0x5d6969),this['activeChange']==_0x3c07ef&&_0x2b345c['writer']['addClass']('ck-suggestion-marker--active',_0x5d6969),_0x2b345c['writer']['insert'](_0x5ecd59,_0x5d6969),_0x2b345c['mapper']['bindElementToMarker'](_0x5d6969,_0x57e1d7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3a4d06=>{for(const _0x51e7f8 of this['editor']['model']['document']['getRootNames']()){const _0x55d4ba=this['editor']['model']['document']['getRoot'](_0x51e7f8),_0x2cd9cb=this['editor']['editing']['view']['document']['getRoot'](_0x51e7f8);if(_0x2cd9cb){const _0x535880=_0x55d4ba['getAttribute']('revisionHistoryAttachChange');if(_0x3a4d06['removeAttribute']('data-change-id',_0x2cd9cb),_0x3a4d06['removeClass']('ck-revision-history-root-add',_0x2cd9cb),_0x3a4d06['removeClass']('ck-revision-history-root-remove',_0x2cd9cb),_0x3a4d06['removeClass']('ck-revision-history-root--active',_0x2cd9cb),_0x535880){const _0x3d8821=this['_getChangeFromId'](_0x535880);if(!_0x3d8821)return null;_0x3a4d06['setAttribute']('data-change-id',_0x535880,_0x2cd9cb),_0x3a4d06['addClass']('ck-revision-history-root-'+_0x3d8821['type'],_0x2cd9cb),this['activeChange']==_0x3d8821&&_0x3a4d06['addClass']('ck-revision-history-root--active',_0x2cd9cb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x180085=>'revision-comment:'+_0x180085,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x22e407=>'revision-suggestion:'+_0x22e407,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5e95f8=>({'name':'suggestion:'+_0x5e95f8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xc17316=>{const _0x3e94c0=_0xc17316['markerName']['split'](':')[0x1];return'insertion'!=_0x3e94c0&&'deletion'!=_0x3e94c0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3e94c0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xca9856,_0x148114,_0x407b17)=>{const _0x15d848=_0x407b17['mapper']['markerNameToElements'](_0x148114['markerName']);if(_0x15d848){for(const _0x5db679 of _0x15d848)_0x5db679['is']('uiElement')&&(_0x407b17['mapper']['unbindElementFromMarkerName'](_0x5db679,_0x148114['markerName']),_0x407b17['writer']['remove'](_0x5db679));}},{'priority':'high'});}['_getChangeFromId'](_0x365987){return this['_changeIdToChange']['get'](_0x365987);}['_getViewForChange'](_0x43e8fc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x43e8fc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2a3a15,_0x554651,_0x3837b6,_0x227964)=>{_0x227964&&this['_balloon']['remove'](_0x227964),_0x3837b6&&(this['_balloon']['add']({'view':_0x3837b6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1cbe68=this['editor']['editing'],_0x16d36f=this['_getChangeFromId'](_0x3837b6['changeId']);let _0x36e4fd;if(_0x16d36f['data']['isOnRoot']){const _0x462cd1=_0x1cbe68['view']['getDomRoot'](_0x16d36f['rootName']);_0x36e4fd=Array['from'](_0x462cd1['getClientRects']());}else{const _0x1d72e4=this['editor']['model']['markers']['get']('revision:'+_0x3837b6['changeId']);_0x36e4fd=Array['from'](_0x1cbe68['mapper']['markerNameToElements'](_0x1d72e4['name']))['map'](_0x472d89=>_0x1cbe68['view']['domConverter']['mapViewToDom'](_0x472d89))['map'](_0x731733=>Array['from'](_0x731733['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x36e4fd[0x0];return _0x36e4fd['find'](_0x30e39b=>_0x30e39b['top']-0x3<=this['_activeViewTarget']['y']&&_0x30e39b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x30e39b['left']-0x3<=this['_activeViewTarget']['x']&&_0x30e39b['right']+0x3>=this['_activeViewTarget']['x'])||_0x36e4fd[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1ee75b,_0x4cdd3e,_0x228c30,_0x3225de)=>{this['activeView']=_0x228c30?this['_getViewForChange'](_0x228c30):null,this['editor']['model']['change'](()=>{const _0x2ed578=this['editor']['editing'];_0x3225de&&(_0x3225de['data']['isOnRoot']?_0x2ed578['view']['change'](_0x1adc47=>{_0x1adc47['removeClass']('ck-revision-history-root--active',_0x2ed578['view']['document']['getRoot'](_0x3225de['rootName']));}):_0x2ed578['reconvertMarker']('revision:'+_0x3225de['id'])),_0x228c30&&(_0x228c30['data']['isOnRoot']?_0x2ed578['view']['change'](_0x39d01f=>{_0x39d01f['addClass']('ck-revision-history-root--active',_0x2ed578['view']['document']['getRoot'](_0x228c30['rootName']));}):_0x2ed578['reconvertMarker']('revision:'+_0x228c30['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2ff7dc,_0x10a6e2)=>{if(this['activeChange'])return;const _0x2a5722=this['_findChangeIdFromDomTarget'](_0x10a6e2['target']),_0x44fa28=this['_changeIdToChange']['get'](_0x2a5722);_0x44fa28?(this['_activeViewTarget']={'x':_0x10a6e2['domEvent']['x'],'y':_0x10a6e2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x44fa28)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x228865,_0x2a9ee4)=>{const _0x40929a=this['_findChangeIdFromDomTarget'](_0x2a9ee4['target']),_0xb37d31=this['_changeIdToChange']['get'](_0x40929a);_0xb37d31?(this['_activeViewTarget']={'x':_0x2a9ee4['domEvent']['x'],'y':_0x2a9ee4['domEvent']['y']},_0xb37d31===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xb37d31):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1b57f7){do{const _0x529d5a=_0x1b57f7['getAttribute']('data-change-id');if(_0x529d5a)return _0x529d5a;_0x1b57f7=_0x1b57f7['parent'];}while(_0x1b57f7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x13e9b4=>{for(const _0x383571 of this['editor']['model']['markers'])_0x13e9b4['removeMarker'](_0x383571);});}}function Z(_0x3b1fe4,_0x4992fd){return(_0x119f31,_0x3544fc,_0xd4e947)=>{if(!_0xd4e947['consumable']['test'](_0x3544fc['markerRange'],_0x119f31['name']))return;const _0x57857c=_0x3544fc['markerRange']['getWalker'](),_0x21ac06=_0x3544fc['markerRange']['start'],_0x4cde8c=_0x3b1fe4['model']['schema'];let _0x39465d=null,_0x2ac09b=null,_0x51d644=!0x1,_0x4a33e3=!0x1;for(const _0x33c69a of _0x57857c){const _0x52ae42=_0x33c69a['item'];_0x51d644=_0x51d644||_0x4cde8c['isContent'](_0x52ae42);const _0x3b8305=_0xd4e947['mapper']['toViewElement'](_0x52ae42);if(_0x3b8305&&_0x3b8305['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x33c69a['type']&&(_0x4cde8c['isBlock'](_0x52ae42)&&!_0x4cde8c['isLimit'](_0x52ae42)&&(_0x52ae42['nextSibling']||_0x21ac06['isAtEnd']?_0x39465d&&_0x39465d['parent']==_0x52ae42||(_0x39465d=_0x52ae42,_0x4a3d98(_0x33c69a['previousPosition']),_0x4a33e3=!0x0):_0x2ac09b=_0x2ac09b||_0x33c69a['previousPosition']));}function _0x4a3d98(_0x17901c){const _0x42fb20=_0xd4e947['mapper']['toViewPosition'](_0x17901c),_0x3093cc=_0xd4e947['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4992fd});_0xd4e947['writer']['insert'](_0x42fb20,_0x3093cc),_0xd4e947['mapper']['bindElementToMarker'](_0x3093cc,_0x3544fc['markerName']);}_0x51d644||_0x4a33e3||!_0x2ac09b||_0x4a3d98(_0x2ac09b);};}class wt extends _0x40f198{constructor(_0x4e004b){super(_0x4e004b);const _0x364fde=_0x4e004b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x364fde,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x364fde,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x48befa=this['editor'],_0x22d18c=_0x48befa['plugins']['get'](d),_0x183fd4=_0x22d18c['isReady']?_0x22d18c['diff']['newRevisionId']:null;_0x48befa['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x183fd4);}['refresh'](){const {isReady:_0x46dab5,isEnabled:_0x371c92,repository:_0x25ff70,diff:_0x20f0f9}=this['editor']['plugins']['get'](d),_0x15e31c=_0x20f0f9&&_0x25ff70['getLaterVisibleRevision'](_0x20f0f9['newRevisionId']);this['isEnabled']=_0x46dab5&&_0x371c92&&Boolean(_0x15e31c);}}class _t extends _0x40f198{['_step'];constructor(_0x18572b,{direction:_0x322901}){super(_0x18572b);const _0x1a23dc=_0x18572b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x322901?0x1:-0x1,this['listenTo'](_0x1a23dc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1a23dc,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1a23dc,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2ea0f4=this['editor'],_0x31bac8=_0x2ea0f4['plugins']['get'](d),{isNavigationMode:_0x306cf5,currentChangeNumber:_0x456f03}=_0x31bac8;let _0x11f924;if(_0x31bac8['activeChange']=_0x306cf5?_0x31bac8['diff']['changes']['get'](_0x456f03+this['_step']):_0x31bac8['diff']['changes']['first'],_0x31bac8['activeChange']['data']['isOnRoot'])_0x11f924=_0x2ea0f4['editing']['view']['getDomRoot'](_0x31bac8['activeChange']['rootName']);else{const _0xe588ed=_0x2ea0f4['model']['markers']['get']('revision:'+_0x31bac8['activeChange']['id']);_0x11f924=_0x3e2b51(_0x2ea0f4['editing'],_0xe588ed);}_0x15cae2({'target':_0x11f924,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4238f2,currentChangeNumber:_0x30f706,numberOfChanges:_0x41122b,isReady:_0x21219c,isEnabled:_0x51d4e7}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x51d4e7&&_0x21219c&&_0x41122b)&&(!_0x4238f2||(0x1===this['_step']?_0x30f706<_0x41122b-0x1:_0x30f706>0x0));}}class li extends ts{constructor(_0x550ef4){super(_0x550ef4);const _0x512118=this['bindTemplate'],_0x1fe010=new te(_0x550ef4),_0x656903=new te(_0x550ef4);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',(_0x13e203,_0x19a685)=>_0x13e203&&_0x19a685>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4aaf46,_0x4e57db,_0x499ae8,_0x1c943d)=>{if(!_0x4aaf46)return m(_0x550ef4,'Loading...');if(!_0x499ae8)return m(_0x550ef4,'No\x20changes');const _0x10df3d=m(_0x550ef4,'NUMBER_OF_CHANGES',_0x499ae8);return _0x1c943d?m(_0x550ef4,'X_OF_Y_CHANGES',[_0x4e57db+0x1,_0x499ae8]):_0x10df3d;}),_0x1fe010['set']({'label':m(_0x550ef4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x145f82}),_0x656903['set']({'label':m(_0x550ef4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2bf60d}),_0x1fe010['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x656903['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1fe010['on']('execute',()=>this['fire']('execute','backward')),_0x656903['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',_0x512118['if']('_isStatusLabelVisible','ck-hidden',_0x3db335=>!_0x3db335)]},'children':[{'text':_0x512118['to']('isNavigationMode',_0x2e8bbd=>_0x2e8bbd?m(_0x550ef4,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x550ef4,'Total')+':\x20')}]},{'text':_0x512118['to']('_statusText')}]},new _0x2bf156(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1fe010,_0x656903]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x34aee2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x9a198e=this['editor']['editing']['view'];_0x9a198e['change'](_0x4f73ac=>{for(const _0x1e9a2b of _0x9a198e['document']['roots'])_0x4f73ac['addClass'](le,_0x1e9a2b);});}['hide'](){const _0x13331e=this['editor']['editing']['view'];_0x13331e['change'](_0x290a17=>{for(const _0x3f5d96 of _0x13331e['document']['roots'])_0x290a17['removeClass'](le,_0x3f5d96);});}}class w extends _0x34aee2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1c0b2b=this['editor'],_0x44b6e4=_0x1c0b2b['plugins']['get'](d),_0x157280=_0x1c0b2b['plugins']['get'](ge);_0x1c0b2b['ui']['componentFactory']['add']('exitToEditing',_0x3e5830=>{const _0x3a0dd4=new te(_0x3e5830);return _0x3a0dd4['set']({'label':m(_0x3e5830,'Back\x20to\x20editing'),'icon':_0x263923,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3a0dd4,'execute',()=>{_0x1c0b2b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3a0dd4;}),_0x1c0b2b['ui']['componentFactory']['add']('restoreRevision',_0x5e07dd=>{const _0x5ac05c=new te(_0x5e07dd);return _0x5ac05c['set']({'label':m(_0x5e07dd,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5ac05c['bind']('isEnabled')['to'](_0x1c0b2b['commands']['get']('restoreRevision')),this['listenTo'](_0x5ac05c,'execute',()=>_0x1c0b2b['execute']('restoreRevision')),_0x5ac05c;}),_0x1c0b2b['ui']['componentFactory']['add']('changesNavigation',_0x32b046=>{const _0x423e47=new li(_0x32b046),_0xe82b39=_0x1c0b2b['commands']['get']('showPreviousChange'),_0xf1e15d=_0x1c0b2b['commands']['get']('showNextChange');return _0x423e47['bind']('isBackwardNavigationEnabled')['to'](_0xe82b39,'isEnabled'),_0x423e47['bind']('isForwardNavigationEnabled')['to'](_0xf1e15d,'isEnabled'),_0x423e47['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x44b6e4),this['listenTo'](_0x423e47,'execute',(_0x5bff98,_0x5a7f3b)=>{_0x1c0b2b['execute']('forward'===_0x5a7f3b?'showNextChange':'showPreviousChange');}),_0x423e47;}),_0x157280['show'](),_0x44b6e4['on']('change:isReady',(_0x1fc0a9,_0x464a8e,_0xfb476e)=>{_0xfb476e?_0x157280['hide']():_0x157280['show']();});}}class pt extends _0x2de467{['_resizeObserver']=null;constructor(_0x2b029c,_0x4455ca){super(_0x2b029c,_0x4455ca);const _0xc44e33=this['bindTemplate'];this['set']({'label':m(_0x2b029c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2b029c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xc44e33['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 _0xbaa088=this['fieldView']['element'];this['_tooltipString']=_0xbaa088['scrollWidth']>_0xbaa088['clientWidth']&&_0xbaa088['value']||'';}}class oi extends ts{constructor(_0x50057f,_0x3e63b8,_0x46440e){super(_0x50057f);const _0x44429d=new _0x287061();_0x44429d['set']({'content':_0x42cb62,'viewBox':'0\x200\x2011\x2010'});const _0xd6ccc2=['ck','ck-revision-history-sidebar__revision-author'];_0x46440e&&_0xd6ccc2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x56c77f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x50057f,_0x46440e?'Revision\x20creator':'Revision\x20author')},'children':[_0x44429d,_0x3e63b8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xd6ccc2},'children':_0x56c77f});}}function ai(_0x222892,_0x400f48){const _0x707633=_0x222892['bindTemplate'],_0x589abb=_0x222892['locale'],_0x3fab1b=_0x323fc5(_0x589abb);_0x3fab1b['panelPosition']='sw';const _0x50c173=function(_0x1e7d07,_0xdb13e3){const _0x274c13=function(_0xc0c6a0,_0x4a9c20){const _0x626c89=_0xc0c6a0['locale'],_0x5b01d6={'Compare\x20against\x20selected':m(_0x626c89,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x626c89,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x626c89,'Restore\x20this\x20revision')};return _0x4a9c20['map'](_0x34bf3c=>{const _0x1662ee=_0x5b01d6[_0x34bf3c['name']];return _0x1662ee&&_0x1662ee!==_0x34bf3c['name']&&(_0x34bf3c['name']=_0x1662ee),_0x34bf3c;});}(_0x1e7d07,_0xdb13e3),_0x4735e2=new _0x241ac4();for(const _0x53e804 of _0x274c13){const _0x18e19e={'type':'button','model':new to({'label':_0x53e804['name'],'class':_0x53e804['class'],'withText':!0x0,'role':'menuitem','_action':_0x53e804['action']})};_0x18e19e['model']['bind']('isEnabled')['to'](_0x1e7d07,'isActionsDropdownOpen',_0x27c4b4=>'function'!=typeof _0x53e804['isEnabled']||(!_0x27c4b4||_0x53e804['isEnabled'](_0x1e7d07))),_0x4735e2['add'](_0x18e19e);}return _0x4735e2;}(_0x222892,_0x400f48);return _0x222892['bind']('isActionsDropdownOpen')['to'](_0x3fab1b,'isOpen'),_0x3fab1b['buttonView']['set']({'label':m(_0x589abb,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x277556}),_0x3fab1b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x707633['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x707633['to'](_0x428156=>_0x428156['stopPropagation']())}}),_0x3fab1b['on']('execute',_0x3a2341=>{_0x222892['isReady']&&'function'==typeof _0x3a2341['source']['_action']&&_0x3a2341['source']['_action'](_0x222892);}),_0x351dcd(_0x3fab1b,_0x50c173,{'role':'menu'}),_0x3fab1b['listenTo'](_0x222892,'change:isActionsDropdownOpen',(_0x111d81,_0x428123,_0xa95248)=>{if(_0xa95248)for(const _0x1012b5 of _0x3fab1b['listView']['items']){const _0x4b475c=_0x1012b5['children']['first'],_0x19c4c7=_0x400f48['find'](_0x39ecab=>_0x39ecab['action']===_0x4b475c['_action'])['isVisible'];_0x1012b5['isVisible']=void 0x0===_0x19c4c7||_0x19c4c7(_0x222892);}}),_0x3fab1b;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0xdcdd68,uid as _0x3e3348,Collection as _0x53f381,logWarning as _0x545f7f,FocusTracker as _0x4f50ab,KeystrokeHandler as _0x44b11f,scrollViewportToShowTarget as _0x39bc6f,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x26d986}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1e9187,set as _0x46ace9,unset as _0x1827a9,isEqual as _0x379c84}from'es-toolkit/compat';import{Plugin as _0x3bbe91,PendingActions as _0x4bee6d,Command as _0x3b6fea,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1d77c1,getMarkerDomElement as _0x8839f0,ConfirmMixin as _0x3a0215,sanitizeEditorConfig as _0x4d3821}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2a849c,Element as ut,Range as ft,ViewUIElement as _0x18e058,ViewRawElement as _0x4fb728,ViewEmptyElement as _0x168201,ViewAttributeElement as _0x2e4914,ViewContainerElement as _0x44e871,Position as vt,ViewText as _0x12bdf6,ViewElement as _0x278e91,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x31b088,IconChevronUp as _0x26c743,IconChevronDown as _0x41cacb,IconUndo as _0x46436a,IconUser as _0x562d1c,IconThreeVerticalDots as _0x32589a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2cd61f,injectCssTransitionDisabler as ts,submitHandler as _0x35f696,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x2ac711,ListView as _0x467127,ListItemView as te,ButtonView as _0x8c758d,MenuBarMenuView as _0x56aff4,MenuBarMenuListView as _0x3fbc2f,MenuBarMenuListItemView as _0x288aa9,MenuBarMenuListItemButtonView as _0x5d599f,ContextualBalloon as _0x476e30,ToolbarSeparatorView as _0x439d4c,IconView as _0x2fe8ef,addListToDropdown as _0x322249,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x39a6f7}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xdcdd68(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3bd3b2){super(),this['id']=_0x3bd3b2['id']||_0x3e3348(),this['creator']=_0x3bd3b2['creator']||null,this['authors']=_0x3bd3b2['authors']||[],this['diffData']=_0x3bd3b2['diffData']||null,this['toVersion']=_0x3bd3b2['toVersion']||0x0,this['fromVersion']=_0x3bd3b2['fromVersion']||0x0,this['set']('name',_0x3bd3b2['name']||''),this['set']('createdAt',_0x3bd3b2['createdAt']||new Date()),this['set']('attributes',_0x3bd3b2['attributes']||{});}['setName'](_0x482c85){this['_update']({'name':_0x482c85});}['setAttribute'](_0x17e63a,_0x5b73a1){const _0x4222e2=_0x1e9187(this['attributes']);_0x46ace9(_0x4222e2,_0x17e63a,_0x5b73a1),this['_update']({'attributes':_0x4222e2});}['removeAttribute'](_0x53c5a2){const _0x138178=_0x1e9187(this['attributes']);_0x1827a9(_0x138178,_0x53c5a2),this['_update']({'attributes':_0x138178});}['_update'](_0x1fbf09,_0x4c91e7=!0x1){let _0x429791=!0x1;const _0x2bef9d={'id':this['id']},_0x2c1572=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x267887 of _0x2c1572){const _0x53571b=_0x1fbf09[_0x267887];void 0x0!==_0x53571b&&_0x53571b!==this[_0x267887]&&(this[_0x267887]=_0x53571b,_0x2bef9d[_0x267887]=_0x53571b,_0x429791=!0x0);}_0x429791&&(_0x2bef9d['authors']&&(_0x2bef9d['authorsIds']=_0x2bef9d['authors']['map'](_0x1cc431=>_0x1cc431['id']),delete _0x2bef9d['authors']),this['fire']('_update',_0x2bef9d,_0x4c91e7));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x86c423=>_0x86c423['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3bbe91{['_revisions'];static get['requires'](){return[_0x1d77c1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xfd721){super(_0xfd721),this['_revisions']=new _0x53f381();}['afterInit'](){!async function(_0x26a595){const _0x246565=_0x5b0d6a([0x31,0x52,0x66,0x6c,0x53,0x4d,0x64,0x65,0x30,0x63,0x34,0x44,0x4e,0x58,0x32,0x55,0x38,0x50,0x5a,0x75,0x59,0x68,0x4a,0x6f,0x6a,0x74,0x35,0x78,0x4f,0x54,0x61,0x62,0x4c,0x57,0x56,0x4b,0x6b,0x6d,0x41,0x69,0x49,0x36,0x70,0x79,0x43,0x73,0x77,0x45,0x33,0x71,0x47,0x42,0x7a,0x37,0x76,0x72,0x46,0x67,0x39,0x6e,0x48,0x51]),_0x1fac6c=0xeb829,_0x15e7cb=0x1f2578c,_0x1efd90=0x1f5373c^_0x15e7cb,_0x298b69=window[_0x5b0d6a([0x44,0x61,0x74,0x65])][_0x5b0d6a([0x6e,0x6f,0x77])](),_0x329620=_0x26a595[_0x5b0d6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36c68e=new window[(_0x5b0d6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f56a4=>{_0x329620[_0x5b0d6a([0x6f,0x6e,0x63,0x65])](_0x5b0d6a([0x72,0x65,0x61,0x64,0x79]),_0x1f56a4);}),_0x16200b={[_0x5b0d6a([0x6b,0x74,0x79])]:_0x5b0d6a([0x45,0x43]),[_0x5b0d6a([0x75,0x73,0x65])]:_0x5b0d6a([0x73,0x69,0x67]),[_0x5b0d6a([0x63,0x72,0x76])]:_0x5b0d6a([0x50,0x2d,0x32,0x35,0x36]),[_0x5b0d6a([0x78])]:_0x5b0d6a([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]),[_0x5b0d6a([0x79])]:_0x5b0d6a([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]),[_0x5b0d6a([0x61,0x6c,0x67])]:_0x5b0d6a([0x45,0x53,0x32,0x35,0x36])},_0x153ceb=_0x329620[_0x5b0d6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b0d6a([0x67,0x65,0x74])](_0x5b0d6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24874e(){let _0x2fa7d0,_0x1fe560=null,_0xd89a00=null;try{if(_0x153ceb==_0x5b0d6a([0x47,0x50,0x4c]))return _0x5b0d6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fa7d0=_0x133b85(),!_0x2fa7d0)return _0x5b0d6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fa7d0[_0x5b0d6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd89a00=_0x408867(_0x2fa7d0[_0x5b0d6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fa7d0[_0x5b0d6a([0x6a,0x74,0x69])])),await _0x5630a5()?_0xa4db16()?_0x4d33dc()?_0x5b0d6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43a5ed()?(_0x2fa7d0[_0x5b0d6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b0d6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fe560=_0x273cb6(_0x5b0d6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2fa7d0[_0x5b0d6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b0d6a([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fe560=_0x273cb6(_0x5b0d6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc12d62()):_0x5b0d6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b0d6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b0d6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x337ca3){return _0x5b0d6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d33dc(){const _0x20a942=[_0x5b0d6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b0d6a([0x74,0x72,0x69,0x61,0x6c])][_0x5b0d6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fa7d0[_0x5b0d6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x298b69/0x3e8:0xe10*_0x1efd90;return _0x2fa7d0[_0x5b0d6a([0x65,0x78,0x70])]<_0x20a942;}function _0xa4db16(){const _0xa31254=_0x2fa7d0[_0x5b0d6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa31254)return!0x1;if(_0xa31254[_0x5b0d6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0d6a([0x2a])))return!0x0;if(_0xa31254[_0x5b0d6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0d6a([0x52,0x48])))return!0x0;if(_0xa31254[_0x5b0d6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0d6a([0x52,0x52,0x48]))){if(_0x45b944())return!0x0;if(_0x449c88()||_0x156920())return!0x0;}return!0x1;}function _0x43a5ed(){const _0x339883=_0x2fa7d0[_0x5b0d6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x339883||0x0==_0x339883[_0x5b0d6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11fac6}=new URL(window[_0x5b0d6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x339883[_0x5b0d6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11fac6))return!0x0;const _0x530db2=_0x11fac6[_0x5b0d6a([0x73,0x70,0x6c,0x69,0x74])](_0x5b0d6a([0x2e]));return _0x339883[_0x5b0d6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x599054=>_0x599054[_0x5b0d6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b0d6a([0x2a])))[_0x5b0d6a([0x6d,0x61,0x70])](_0x32a7c2=>_0x32a7c2[_0x5b0d6a([0x73,0x70,0x6c,0x69,0x74])](_0x5b0d6a([0x2e])))[_0x5b0d6a([0x73,0x6f,0x6d,0x65])](_0xc174ea=>_0x530db2[_0x5b0d6a([0x65,0x76,0x65,0x72,0x79])]((_0x444716,_0x25d2f1)=>_0xc174ea[_0x25d2f1]===_0x444716||_0xc174ea[_0x25d2f1]===_0x5b0d6a([0x2a])));}function _0xc12d62(){return _0x1fe560&&_0xd89a00?new window[(_0x5b0d6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f1e05,_0x2cca84)=>{_0x1fe560[_0x5b0d6a([0x74,0x68,0x65,0x6e])](_0x2f1e05,_0x2cca84),_0xd89a00[_0x5b0d6a([0x74,0x68,0x65,0x6e])](_0x266fa4=>{_0x266fa4!=_0x5b0d6a([0x56,0x61,0x6c,0x69,0x64])&&_0x2f1e05(_0x266fa4);},_0x2cca84);}):_0x1fe560||_0xd89a00||_0x5b0d6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408867(_0x37f5af,_0x3da0f3){return new window[(_0x5b0d6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5848ab=>{if(_0x5c19b8())return _0x5848ab(_0x5b0d6a([0x56,0x61,0x6c,0x69,0x64]));_0xb60ef(),_0x329620[_0x5b0d6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b0d6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44a37b=!0x1;const _0x2c8b17=_0x3e3348();function _0xc86b6d(_0x4f0cb2){return!!_0x4f0cb2&&(typeof _0x4f0cb2===_0x5b0d6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f0cb2===_0x5b0d6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f0cb2[_0x5b0d6a([0x74,0x68,0x65,0x6e])]===_0x5b0d6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f0cb2[_0x5b0d6a([0x63,0x61,0x74,0x63,0x68])]===_0x5b0d6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40c908(_0x2086fd){_0x37f5f8(_0x2086fd)[_0x5b0d6a([0x74,0x68,0x65,0x6e])](_0x2571bd=>{if(!_0x2571bd||_0x2571bd[_0x5b0d6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b0d6a([0x6f,0x6b]))return _0x5b0d6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a4055(_0x439cf8(_0x2c8b17+_0x3da0f3))!=_0x2571bd[_0x5b0d6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b0d6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b0d6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b0d6a([0x74,0x68,0x65,0x6e])](_0x5a36d2=>(_0x2ccc4a(),_0x5a36d2),()=>{const _0x389937=_0x405bae();return null==_0x389937?(_0x2ccc4a(),_0x5b0d6a([0x56,0x61,0x6c,0x69,0x64])):_0x5b0d6a(_0x298b69-_0x389937>(0x25fed38c^_0x15e7cb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b0d6a([0x74,0x68,0x65,0x6e])](_0x5848ab)[_0x5b0d6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5848ab(_0x5b0d6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4758db=0x1c4b90c^_0x15e7cb;function _0x2ccc4a(){const _0x55983d=_0x5b0d6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a4055(_0x439cf8(_0x37f5af)),_0x279fd9=_0x33ea57(_0x1a4055(window[_0x5b0d6a([0x4d,0x61,0x74,0x68])][_0x5b0d6a([0x63,0x65,0x69,0x6c])](_0x298b69/_0x4758db)));window[_0x5b0d6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b0d6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55983d,_0x279fd9);}function _0x405bae(){const _0x5083e1=_0x5b0d6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a4055(_0x439cf8(_0x37f5af)),_0x1250e4=window[_0x5b0d6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b0d6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5083e1);return _0x1250e4?window[_0x5b0d6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33ea57(_0x1250e4),0x10)*_0x4758db:null;}function _0x37f5f8(_0xd3728e){return new window[(_0x5b0d6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50036d,_0xd918dc)=>{_0xd3728e[_0x5b0d6a([0x74,0x68,0x65,0x6e])](_0x50036d,_0xd918dc),window[_0x5b0d6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd918dc,0x1f3834c^_0x15e7cb);});}}_0x329620[_0x5b0d6a([0x6f,0x6e])](_0x5b0d6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15c3f8,_0xca7e71)=>{if(_0xca7e71[0x0]!=_0x37f5af)return _0x5848ab(_0x5b0d6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xca7e71[0x1]={..._0xca7e71[0x1],[_0x5b0d6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c8b17};},{[_0x5b0d6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b0d6a([0x68,0x69,0x67,0x68])}),_0x329620[_0x5b0d6a([0x6f,0x6e])](_0x5b0d6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf4d696=>{_0xc86b6d(_0xf4d696[_0x5b0d6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44a37b=!0x0,_0x40c908(_0xf4d696[_0x5b0d6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b0d6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b0d6a([0x6c,0x6f,0x77])}),_0x36c68e[_0x5b0d6a([0x74,0x68,0x65,0x6e])](()=>{_0x44a37b||_0x5848ab(_0x5b0d6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c19b8(){return _0x329620[_0x5b0d6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b0d6a([0x76,0x69,0x65,0x77])][_0x5b0d6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b0d6a([0x61,0x75,0x74,0x6f]);}function _0xb60ef(){_0x329620[_0x5b0d6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b0d6a([0x76,0x69,0x65,0x77])][_0x5b0d6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b0d6a([0x61,0x75,0x74,0x6f]);}}function _0x273cb6(_0x9a3821){const _0x4cad99=[new window[(_0x5b0d6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a6ee5=>setTimeout(_0x2a6ee5,0x1fb6940^_0x15e7cb)),_0x36c68e[_0x5b0d6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b0d6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x952e72=>{const _0x101569=0x1f2578b^_0x15e7cb,_0x2fe9dc=_0x26a595[_0x5b0d6a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2dc370(){_0x2fe9dc[_0x5b0d6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x101569&&_0x952e72();}_0x2dc370(),_0x2fe9dc[_0x5b0d6a([0x6f,0x6e])](_0x5b0d6a([0x61,0x64,0x64]),_0x2dc370);})),new window[(_0x5b0d6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49762f=>{function _0x54412e(){for(const _0x476b1f in window)if(window[_0x5b0d6a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5b0d6a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x476b1f))&&window[_0x476b1f]==_0x1fac6c)return _0x49762f();_0x329620[_0x5b0d6a([0x73,0x74,0x61,0x74,0x65])]!=_0x5b0d6a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5b0d6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54412e,0x1f24404^_0x15e7cb);}_0xf40048(_0x5b0d6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x54412e();})];return window[_0x5b0d6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b0d6a([0x72,0x61,0x63,0x65])](_0x4cad99)[_0x5b0d6a([0x74,0x68,0x65,0x6e])](()=>_0x9a3821);}async function _0xafb46(){if(await _0x36c68e,_0xf40048(_0x5b0d6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x201beb=_0x26a595[_0x5b0d6a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x353376=_0x26a595[_0x5b0d6a([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])](_0x201beb[_0x5b0d6a([0x69,0x64])]),_0x4d57ff=_0x9c5212(_0x5b0d6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4d57ff[_0x5b0d6a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x201beb['id'],_0x353376?_0x353376['id']:null,!0x0),_0x4d57ff[_0x5b0d6a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b0d6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4d57ff[_0x5b0d6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4d57ff[_0x5b0d6a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x41addc,void(_0x4d57ff[_0x5b0d6a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x41addc);}if(_0xf40048(_0x5b0d6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4c7c09=_0x9c5212(_0x5b0d6a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4c7c09[_0x5b0d6a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b0d6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4c7c09[_0x5b0d6a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4c7c09[_0x5b0d6a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x41addc,_0x4c7c09[_0x5b0d6a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x41addc;}_0x329620[_0x5b0d6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b0d6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41addc,_0x329620[_0x5b0d6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b0d6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41addc,_0x329620[_0x5b0d6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b0d6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45b944(){return _0xf40048(_0x5b0d6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x9c5212(_0x5b0d6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5b0d6a([0x73,0x74,0x61,0x74,0x65])]==_0x5b0d6a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x449c88(){return _0xf40048(_0x5b0d6a([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 _0x156920(){return _0xf40048(_0x5b0d6a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36c86d(_0x4839c1){const _0x137bb1=_0x2116f1();_0x329620[_0x137bb1]=_0x5b0d6a([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])+_0x4839c1,_0x4839c1[_0x5b0d6a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5b0d6a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2116f1()]=_0x1fac6c),_0x4839c1!=_0x5b0d6a([0x56,0x61,0x6c,0x69,0x64])&&_0xafb46();}function _0x2116f1(){const _0x50ab0f=window[_0x5b0d6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b0d6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b0d6a([0x6e,0x6f,0x77])]())[_0x5b0d6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b0d6a([0x2e]),'');let _0x22c79c=_0x5b0d6a([0x52]);for(let _0x5d3308=0x0;_0x5d3308<_0x50ab0f[_0x5b0d6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d3308+=0x2){let _0x3202ef=window[_0x5b0d6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50ab0f[_0x5b0d6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d3308,_0x5d3308+0x2));_0x3202ef>=_0x246565[_0x5b0d6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3202ef-=_0x246565[_0x5b0d6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22c79c+=_0x246565[_0x3202ef];}return _0x22c79c;}function _0x133b85(){const _0x5b1206=_0x153ceb[_0x5b0d6a([0x73,0x70,0x6c,0x69,0x74])](_0x5b0d6a([0x2e]));if(0x3!=_0x5b1206[_0x5b0d6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22e1f6(_0x5b1206[0x1]);function _0x22e1f6(_0x26f538){const _0x2d6734=_0x3f1eb4(_0x26f538);return _0x2d6734&&_0x456906()?_0x2d6734:null;function _0x456906(){const _0x6fa617=_0x2d6734[_0x5b0d6a([0x6a,0x74,0x69])],_0x24b86f=window[_0x5b0d6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6fa617[_0x5b0d6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6fa617[_0x5b0d6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fec40={..._0x2d6734,[_0x5b0d6a([0x6a,0x74,0x69])]:_0x6fa617[_0x5b0d6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6fa617[_0x5b0d6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fec40[_0x5b0d6a([0x76,0x63])],_0x439cf8(_0x3fec40)==_0x24b86f;}}}async function _0x5630a5(){let _0x501587=!0x0;try{const _0x25989f=_0x153ceb[_0x5b0d6a([0x73,0x70,0x6c,0x69,0x74])](_0x5b0d6a([0x2e])),[_0x1f1fa2,_0x3a71dd,_0x257e1f]=_0x25989f;return _0x1c85d9(_0x1f1fa2),await _0x463ea7(_0x1f1fa2,_0x3a71dd,_0x257e1f),_0x501587;}catch(_0xdbea7f){return!0x1;}function _0x1c85d9(_0x45b667){const _0x706f85=_0x3f1eb4(_0x45b667);_0x706f85&&_0x706f85[_0x5b0d6a([0x61,0x6c,0x67])]==_0x5b0d6a([0x45,0x53,0x32,0x35,0x36])||(_0x501587=!0x1);}async function _0x463ea7(_0x3e6a94,_0x5f2713,_0x4a6eea){const _0x57d72b=window[_0x5b0d6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b0d6a([0x66,0x72,0x6f,0x6d])](_0x14b0b3(_0x4a6eea),_0x38eb4d=>_0x38eb4d[_0x5b0d6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42fabe=new window[(_0x5b0d6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b0d6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e6a94+_0x5b0d6a([0x2e])+_0x5f2713),_0x36663c=window[_0x5b0d6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b0d6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36663c)return;const _0x5934f9=await _0x36663c[_0x5b0d6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b0d6a([0x6a,0x77,0x6b]),_0x16200b,{[_0x5b0d6a([0x6e,0x61,0x6d,0x65])]:_0x5b0d6a([0x45,0x43,0x44,0x53,0x41]),[_0x5b0d6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b0d6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b0d6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36663c[_0x5b0d6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b0d6a([0x6e,0x61,0x6d,0x65])]:_0x5b0d6a([0x45,0x43,0x44,0x53,0x41]),[_0x5b0d6a([0x68,0x61,0x73,0x68])]:{[_0x5b0d6a([0x6e,0x61,0x6d,0x65])]:_0x5b0d6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5934f9,_0x57d72b,_0x42fabe)||(_0x501587=!0x1);}}function _0x3f1eb4(_0x1a5547){return _0x1a5547[_0x5b0d6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b0d6a([0x65,0x79]))?JSON[_0x5b0d6a([0x70,0x61,0x72,0x73,0x65])](_0x14b0b3(_0x1a5547)):null;}function _0x14b0b3(_0x5e0f8c){return window[_0x5b0d6a([0x61,0x74,0x6f,0x62])](_0x5e0f8c[_0x5b0d6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b0d6a([0x2b]))[_0x5b0d6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b0d6a([0x2f])));}function _0x439cf8(_0x5220af){let _0x381495=0x1505;function _0x4ba946(_0x4f4d37){for(let _0x2c3968=0x0;_0x2c3968<_0x4f4d37[_0x5b0d6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c3968++){const _0x54d451=_0x4f4d37[_0x5b0d6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c3968);_0x381495=(_0x381495<<0x5)+_0x381495+_0x54d451,_0x381495&=_0x381495;}}function _0x2bfeb6(_0x2df5dd){Array[_0x5b0d6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2df5dd)?_0x2df5dd[_0x5b0d6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2bfeb6):_0x2df5dd&&typeof _0x2df5dd==_0x5b0d6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b0d6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2df5dd)[_0x5b0d6a([0x73,0x6f,0x72,0x74])]()[_0x5b0d6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b8b7b,_0x1b7ced])=>{_0x4ba946(_0x3b8b7b),_0x2bfeb6(_0x1b7ced);}):_0x4ba946(window[_0x5b0d6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2df5dd));}return _0x2bfeb6(_0x5220af),_0x381495>>>0x0;}function _0x1a4055(_0x4dce5d){return _0x4dce5d[_0x5b0d6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b0d6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b0d6a([0x30]));}function _0x33ea57(_0x279be6){return _0x279be6[_0x5b0d6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b0d6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b0d6a([0x6a,0x6f,0x69,0x6e])]('');}function _0xf40048(_0x1de4d6){return _0x329620[_0x5b0d6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b0d6a([0x68,0x61,0x73])](_0x1de4d6);}function _0x9c5212(_0x542a92){return _0x329620[_0x5b0d6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b0d6a([0x67,0x65,0x74])](_0x542a92);}function _0x41addc(){}function _0x5b0d6a(_0x29da11){return _0x29da11['map'](_0x1c9268=>String['fromCharCode'](_0x1c9268))['join']('');}_0x36c86d(await _0x24874e());}(this);}['createRevision'](_0x52267b){const _0xba0574=this['editor']['plugins']['get']('Users');return new h({'id':_0x52267b['id'],'name':_0x52267b['name'],'creator':_0x52267b['creatorId']?_0xba0574['getUser'](_0x52267b['creatorId']):null,'diffData':_0x52267b['diffData']||_0x52267b['data'],'authors':_0x52267b['authorsIds']['map'](_0xa6c51a=>_0xba0574['getUser'](_0xa6c51a)),'createdAt':new Date(_0x52267b['createdAt']),'attributes':_0x52267b['attributes'],'fromVersion':_0x52267b['fromVersion'],'toVersion':_0x52267b['toVersion']});}['addRevision'](_0x1d64d5,_0x19bb3d=0x0){this['_revisions']['add'](_0x1d64d5,_0x19bb3d);}['getRevision'](_0x217e3f){return this['_revisions']['get'](_0x217e3f);}['getRevisions'](_0x563413={'toJSON':!0x1}){const _0x356bb2=Array['from'](this['_revisions']);return _0x356bb2['reverse'](),_0x563413['toJSON']?_0x356bb2['map'](_0x1d47fc=>_0x1d47fc['toJSON']()):_0x356bb2;}['getIndex'](_0x584df0){return this['_revisions']['getIndex'](_0x584df0);}['getEarlierVisibleRevision'](_0x34b4ee){const [,_0x335e05]=this['getRevisionsIterator'](_0x34b4ee,{'direction':'earlier'});return _0x335e05;}['getLaterVisibleRevision'](_0x44e45b){const [,_0xf5c36a]=this['getRevisionsIterator'](_0x44e45b,{'direction':'later'});return _0xf5c36a;}['getRevisionsInDiff'](_0x453bd8){const _0x34891e=[];for(const _0x34d30f of this['getRevisionsIterator'](_0x453bd8['newRevisionId']))if(_0x34891e['push'](_0x34d30f),_0x34d30f['id']===_0x453bd8['oldRevisionId'])break;return _0x34891e;}*['getRevisionsIterator'](_0x41df88,{direction:_0x73bbba='earlier',filter:_0x3d75f4=()=>!0x0}={}){const _0x17f07a='earlier'===_0x73bbba?0x1:-0x1;let _0x17e1e7=this['_revisions']['get'](_0x41df88),_0xd95da=this['getIndex'](_0x17e1e7);for(yield _0x17e1e7;_0x17e1e7;){if(_0xd95da+=_0x17f07a,_0x17e1e7=this['getRevision'](_0xd95da),!_0x17e1e7)return;_0x3d75f4(_0x17e1e7)&&(yield _0x17e1e7);}}}function m(_0xc15736,_0x4eb183,_0x1e7023){const t=_0xc15736['t'];switch(_0x4eb183){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'},_0x1e7023);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1e7023);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'';}}const E={'c':_0x44e871,'a':_0x2e4914,'e':_0x168201,'r':_0x4fb728,'u':_0x18e058};class u extends _0x3bbe91{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1d77c1,j,_0x4bee6d];}constructor(_0x401788){super(_0x401788),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x23d84a=_0x3e3348();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x23d84a},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['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x6f435e=this['repository']['getRevision'](0x0),_0x231c8a=_0x6f435e&&null===_0x6f435e['creator']?_0x6f435e:null;if(this['_continueCurrentRevision']=!!_0x231c8a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x17251b=this['_source']['getCurrentRevisionId'](),_0x2766cc=this['repository']['getRevision'](_0x17251b);if(_0x2766cc)this['_startingVersion']=_0x2766cc['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x179ce7=this['_source']['history']['_operations']['find'](_0x5c2372=>!_0x5c2372['_isInit']),_0x33f4b3=_0x179ce7?_0x179ce7['baseVersion']:this['_source']['history']['version'];_0x6f435e?(_0x6f435e['toVersion']<_0x33f4b3&&_0x6f435e['_update']({'toVersion':_0x33f4b3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x231c8a['id'],this['_startingVersion']=_0x231c8a['fromVersion']):(this['_startingVersion']=_0x6f435e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x33f4b3,this['_continueCurrentRevision']=!0x1);}}else _0x231c8a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x231c8a['toVersion'],this['editor']['model']['document']['history']['version']),_0x231c8a['fromVersion']===_0x231c8a['toVersion']?(0x0!==_0x231c8a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x231c8a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x231c8a['id'],this['_startingVersion']=_0x231c8a['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',_0x2a2342=>!_0x2a2342),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3010f1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5abbef;for(const _0x136192 in _0x3010f1){const _0x1495e1=_0x136192,_0x4f10a1=_0x3010f1[_0x1495e1];if('revisionHistoryLicenseKeyValid'==_0x4f10a1||'revisionHistoryLicenseKeyInvalid'==_0x4f10a1||'revisionHistoryLicenseKeyExpired'==_0x4f10a1||'revisionHistoryLicenseKeyDomainLimit'==_0x4f10a1||'revisionHistoryLicenseKeyNotAllowed'==_0x4f10a1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4f10a1||'revisionHistoryLicenseKeyTrialLimit'==_0x4f10a1||'revisionHistoryLicenseKeyUsageLimit'==_0x4f10a1){delete _0x3010f1[_0x1495e1],_0x5abbef=_0x4f10a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5abbef&&_0x3010f1['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5abbef&&_0x3010f1['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5abbef&&_0x3010f1['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5abbef&&_0x3010f1['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5abbef&&_0x3010f1['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5abbef&&_0x3010f1['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5abbef&&_0x3010f1['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x52bd02=this['repository']['getRevision'](0x0),_0x11dc2a=await this['getRevisionDocumentData'](_0x52bd02),_0x17f4ef=await this['getRevisionRootsAttributes'](_0x52bd02);this['_replaceEditorDataWithRevisionData'](_0x11dc2a,_0x17f4ef);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1f9012){this['_source']=_0x1f9012;}async['update'](){const _0x248d61=await this['_source']['getLatestVersion']();if(_0x248d61>this['currentRevision']['toVersion']){await this['_loadState']();const _0x14d4d1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x248d61});_0x14d4d1['authors']=_0x14d4d1['authorsIds']['map'](_0xab028c=>this['editor']['plugins']['get']('Users')['getUser'](_0xab028c)),this['currentRevision']['_update'](_0x14d4d1);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x30ac99={},_0x4c5072=null){const _0x3765d6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4c5072>this['currentRevision']['toVersion']&&(_0x4c5072=null),null===_0x4c5072&&(_0x4c5072=await this['_source']['getLatestVersion']());const _0x55b81b=this['_getFromVersion'](_0x4c5072),_0x53a084=this['buildRevisionData']({'from':_0x55b81b,'to':_0x4c5072});if(this['currentRevision']['toVersion']<_0x4c5072){const _0x4de387=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4c5072,'to':_0x4c5072});_0x4de387['authors']=[],_0x4de387['authorsIds']=[],_0x4de387['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4de387,!0x0),delete _0x4de387['authors'],_0x3765d6['push'](_0x4de387);}_0x30ac99['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30ac99['name']=_0x30ac99['name']||null,_0x30ac99['id']=_0x30ac99['id']||_0x3e3348(),_0x30ac99={..._0x30ac99,..._0x53a084};const _0x40ded5=this['addRevisionData'](_0x30ac99);_0x3765d6['push'](_0x30ac99);const _0x49831a=this['repository']['getIndex'](_0x40ded5);if(0x0!==_0x49831a){const _0x446abf=this['repository']['getRevision'](_0x49831a-0x1);if(_0x446abf['fromVersion']!==_0x4c5072){const _0x218663=this['_revisionDataBuilder']['getData'](_0x4c5072,_0x446abf['toVersion']),_0x2ade95={'id':_0x446abf['id'],'diffData':_0x218663['diffData'],'authorsIds':_0x218663['authorsIds'],'authors':_0x218663['authorsIds']['map'](_0x31e1e1=>this['editor']['plugins']['get']('Users')['getUser'](_0x31e1e1)),'fromVersion':_0x4c5072};_0x446abf===this['currentRevision']&&(_0x2ade95['createdAt']=new Date(_0x30ac99['createdAt']['getTime']()+0xa)),_0x446abf['_update'](_0x2ade95,!0x0),delete _0x2ade95['authors'],_0x3765d6['push'](_0x2ade95);}}if(this['adapter']){for(const _0x556d7f of _0x3765d6)this['_bufferUpdate'](_0x556d7f['id'],_0x556d7f,!0x0);this['sendBufferedUpdates']();}return _0x40ded5;}['addRevisionData'](_0x4579b0){const _0x4e7b9a=this['repository']['createRevision'](_0x4579b0);return this['adapter']&&_0x4e7b9a['on']('_update',(_0x532ce1,_0x15e416,_0x536098)=>{_0x536098||(this['_bufferUpdate'](_0x15e416['id'],_0x15e416,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4e7b9a,this['_findInsertionIndex'](_0x4e7b9a)),_0x4e7b9a;}async['getRevisionDocumentData'](_0x494ea5){await this['_loadRevisionData'](_0x494ea5);const _0x4ade2f={};for(const _0x2f21e0 in _0x494ea5['diffData']){if(_0x494ea5['diffData'][_0x2f21e0]['attachChange']&&!_0x494ea5['diffData'][_0x2f21e0]['attachChange']['isAttached'])continue;const _0x2cceef=this['_removeRevisionMarkers'](JSON['parse'](_0x494ea5['diffData'][_0x2f21e0]['insertions'])),_0x4f1da0=this['editor']['editing']['view']['document'],_0xc28a82=new _0x2a849c(_0x4f1da0,_0x2cceef['map'](_0xbbf9c1=>P(_0xbbf9c1,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4ade2f[_0x2f21e0]=this['editor']['data']['processor']['toData'](_0xc28a82),this['editor']['data']['processor']['useFillerType']('default');}return _0x4ade2f;}async['getRevisionRootsAttributes'](_0x278e2d){await this['_loadRevisionData'](_0x278e2d);const _0x34beef={};for(const _0x4aa4ab in _0x278e2d['diffData'])_0x278e2d['diffData'][_0x4aa4ab]['attachChange']&&!_0x278e2d['diffData'][_0x4aa4ab]['attachChange']['isAttached']||(_0x34beef[_0x4aa4ab]=_0x278e2d['diffData'][_0x4aa4ab]['attributesAfter']||{});return _0x34beef;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4e98b4=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1a70bf=0x0;_0x1a70bf<_0x4e98b4['length'];_0x1a70bf++){const _0xd5953f=_0x4e98b4[_0x1a70bf];let _0x247ffb=!0x1;for(const _0xb2e1a8 of Object['keys'](_0xd5953f))void 0x0===_0xd5953f[_0xb2e1a8]?delete _0xd5953f[_0xb2e1a8]:'id'!==_0xb2e1a8&&(_0x247ffb=!0x0);_0x247ffb||(_0x4e98b4[_0x1a70bf]=null);}if(_0x4e98b4=_0x4e98b4['filter'](_0x46c3e5=>null!==_0x46c3e5),!_0x4e98b4['length'])return;for(let _0x1674f8=0x0;_0x1674f8<_0x4e98b4['length'];_0x1674f8++){const _0xd60884=_0x4e98b4[_0x1674f8];void 0x0!==_0xd60884['fromVersion']&&void 0x0===_0xd60884['toVersion']&&(_0xd60884['toVersion']=this['repository']['getRevision'](_0xd60884['id'])['toVersion']),void 0x0!==_0xd60884['toVersion']&&void 0x0===_0xd60884['fromVersion']&&(_0xd60884['fromVersion']=this['repository']['getRevision'](_0xd60884['id'])['fromVersion']);}const _0x2118e3=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4e98b4,_0x2118e3)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x50ede8=>{if(_0x50ede8){for(const _0x2294f2 of _0x50ede8)this['setRevisionData']({'id':_0x2294f2['id'],'createdAt':_0x2294f2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x38cbba,_0x3c2c61){let _0x36847a=this['editor']['config']['get']('initialData'),_0x2f6627=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x36847a){_0x36847a={};for(const _0x3f8af0 of this['editor']['model']['document']['getRootNames']())_0x36847a[_0x3f8af0]='';}if('string'==typeof _0x36847a&&(_0x36847a={'main':_0x36847a}),void 0x0===_0x2f6627){_0x2f6627={};for(const _0x2f7c01 of this['editor']['model']['document']['getRootNames']())_0x2f6627[_0x2f7c01]={};}let _0x1e5d03=!0x1;const _0xa93045=Object['keys'](_0x36847a),_0x441816=Object['keys'](_0x38cbba);for(const _0x344a01 of _0xa93045){if(_0x36847a[_0x344a01]!==_0x38cbba[_0x344a01]&&''!==_0x36847a[_0x344a01]['trim']()){_0x1e5d03=!0x0;break;}if(!_0x379c84(_0x2f6627[_0x344a01],_0x3c2c61[_0x344a01])&&Object['keys'](_0x2f6627[_0x344a01])['length']>0x0){_0x1e5d03=!0x0;break;}}_0x1e5d03||(_0x1e5d03=_0x441816['some'](_0x5236b8=>!this['editor']['model']['document']['getRoot'](_0x5236b8))),_0x1e5d03&&_0x545f7f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x36847a,'editorRootsAttributes':_0x2f6627,'revisionData':_0x38cbba,'revisionRootsAttributes':_0x3c2c61}),this['editor']['config']['set']('initialData',_0x38cbba),this['editor']['config']['set']('rootsAttributes',_0x3c2c61);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1f5d07=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1f5d07['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x13014f){const _0x4b6b35=this['repository']['getRevisions']();_0x4b6b35['reverse']();let _0x24e051=0x0;for(;_0x24e051<_0x4b6b35['length'];){const _0x18fffb=_0x4b6b35[_0x24e051];if(_0x18fffb===this['currentRevision']){_0x24e051++;continue;}if(_0x18fffb['id']===this['_initialRevisionId'])break;const _0x4946c8=_0x13014f['toVersion']-_0x18fffb['toVersion']||_0x13014f['fromVersion']-_0x18fffb['fromVersion'];if(_0x4946c8>0x0)break;if(_0x4946c8<0x0)_0x24e051++;else{if(!_0x13014f['creator']&&_0x18fffb['creator'])break;if(_0x18fffb['creator']||!_0x13014f['creator']){if(_0x13014f['createdAt']>_0x18fffb['createdAt'])break;_0x24e051++;}else _0x24e051++;}}return _0x24e051;}['setRevisionData'](_0x545921){const _0x4943a2=this['repository']['getRevision'](_0x545921['id']);if(_0x545921['createdAt']&&(_0x545921['createdAt']=new Date(_0x545921['createdAt'])),_0x545921['authorsIds']){const _0x2d9708=this['editor']['plugins']['get']('Users');_0x545921['authors']=_0x545921['authorsIds']['map'](_0x44b294=>_0x2d9708['getUser'](_0x44b294));}_0x4943a2['_update'](_0x545921,!0x0);}['buildRevisionData']({revision:_0x5c1203=null,from:_0x5c8bb6=null,to:_0x19cab7=null}){_0x5c8bb6=null!==_0x5c8bb6?_0x5c8bb6:_0x5c1203['fromVersion'],_0x19cab7=null!==_0x19cab7?_0x19cab7:_0x5c1203['toVersion'];const _0x1241bd=this['_revisionDataBuilder']['getData'](_0x5c8bb6,_0x19cab7),_0x5093d4={'diffData':_0x1241bd['diffData'],'authorsIds':_0x1241bd['authorsIds'],'fromVersion':_0x5c8bb6,'toVersion':_0x19cab7};if(!_0x5c1203||_0x19cab7!==_0x5c1203['toVersion']){const _0x9f2c51=_0x19cab7-0x1,_0x1fc33b=this['_source']['history']['getOperation'](_0x9f2c51);_0x5093d4['createdAt']=_0x1fc33b&&_0x1fc33b['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5c8bb6===this['_loadedStateData']['fromVersion']){for(const _0x6c357c of this['_loadedStateData']['authors'])_0x5093d4['authorsIds']['includes'](_0x6c357c['id'])||_0x5093d4['authorsIds']['push'](_0x6c357c['id']);}return _0x5093d4;}['_loadRevisionData'](_0x50a487){if(!_0x50a487||_0x50a487['diffData'])return Promise['resolve']();{const _0x681bef=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x681bef,'revisionId':_0x50a487['id']})['then'](_0x349ef6=>{_0x50a487['diffData']=_0x349ef6['diffData'];});}}['_bufferUpdate'](_0x492e92,_0x5a2dfe,_0x19a34a){if(this['_bufferedUpdates']['has'](_0x492e92)){const _0x1b2e9c=this['_bufferedUpdates']['get'](_0x492e92);_0x5a2dfe=_0x19a34a?{..._0x1b2e9c,..._0x5a2dfe}:{..._0x5a2dfe,..._0x1b2e9c};}this['_bufferedUpdates']['set'](_0x492e92,_0x5a2dfe);}['_getFromVersion'](_0xe7975c){const _0x3eaeb6=this['repository']['getRevisions']();_0x3eaeb6['reverse'](),_0x3eaeb6['shift']();const _0x4312a9=_0x3eaeb6['find'](_0xd6b0df=>_0xd6b0df['toVersion']<=_0xe7975c)['toVersion'];return _0x4312a9<this['_startingVersion']?this['_startingVersion']:_0x4312a9;}['_createInitialRevision'](_0x3f10b6){const _0x49b3af=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x49b3af)this['_initialRevisionId']=_0x49b3af['id'];else{const _0xbbccbc=!this['editor']['model']['document']['roots']['find'](_0x97223d=>this['editor']['model']['hasContent'](_0x97223d)),_0x14ee02=this['editor']['plugins']['get']('Users')['me']['id'],_0x919ef6=m(this['editor']['locale'],_0xbbccbc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3f10b6,'to':_0x3f10b6,'id':this['_initialRevisionId'],'name':_0x919ef6,'creatorId':_0x14ee02});}}['_createCurrentRevision'](_0xf2fa5){const _0xa86a76=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xa86a76),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xf2fa5,'to':_0xf2fa5,'id':_0xa86a76,'name':'','creatorId':null}));}['_makeRevision']({name:_0x645f84,from:_0x4a8c57,to:_0x2d0cd6,creatorId:_0x179f8f,id:_0x3266fd}){const _0x19c835=this['buildRevisionData']({'from':_0x4a8c57,'to':_0x2d0cd6});_0x19c835['name']=_0x645f84,_0x19c835['creatorId']=_0x179f8f,_0x19c835['id']=_0x3266fd;const _0x370bdc=this['addRevisionData'](_0x19c835);return this['adapter']&&this['_bufferUpdate'](_0x19c835['id'],_0x19c835,!0x0),_0x370bdc;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x52611e){return(_0x52611e=_0x52611e['filter'](_0x9f864b=>!_0x9f864b['name']||'revision-start'!==_0x9f864b['name']&&'revision-end'!==_0x9f864b['name']))['forEach'](_0xdf624e=>{'string'!=typeof _0xdf624e&&(_0xdf624e['children']=this['_removeRevisionMarkers'](_0xdf624e['children']),_0xdf624e['attributes']=_0xdf624e['attributes']['filter'](_0x39fe40=>!_0x39fe40[0x0]['startsWith']('data-revision-')));}),_0x52611e;}}function P(_0x3894d5,_0x7e4dcf){const _0x42e7e5=_0x7e4dcf['editing']['view']['document'];if('string'==typeof _0x3894d5)return new _0x12bdf6(_0x42e7e5,_0x3894d5);{const _0x108af5=_0x3894d5['children']['map'](_0x3a54fd=>P(_0x3a54fd,_0x7e4dcf));return new(E[_0x3894d5['type']]||_0x278e91)(_0x42e7e5,_0x3894d5['name'],_0x3894d5['attributes'],_0x108af5);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2a922f){this['editor']=_0x2a922f,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'](_0x2e3909){this['source']=_0x2e3909;const _0x1dd214=new Map(),_0x48d50f=new Map(),_0x27e99e=this['editor']['model']['document']['roots']['map'](_0x52a0b9=>_0x52a0b9['rootName']);for(const _0x1d086f of _0x27e99e){const _0xcd7dcf=this['editor']['model']['document']['getRoot'](_0x1d086f),_0x4d1f75=T(_0xcd7dcf);_0x1dd214['set'](_0x1d086f,_0x4d1f75),_0x48d50f['set'](_0x1d086f,Object['fromEntries'](_0xcd7dcf['getAttributes']()));}const _0x5bd77b=Array['from'](this['editor']['model']['markers'])['map'](_0x1891c6=>[_0x1891c6['name'],_0x1891c6['getRange']()]),_0x307c97=this['source']['version'];this['_saveMetaData'](_0x307c97,_0x1dd214,_0x5bd77b,_0x48d50f),this['_startingRevisionId']=this['_revisionId'];const _0x4437db=new Map(),_0x231d9c=new Map();for(const _0x4afb78 of _0x27e99e){const _0x5030d5=F(_0x4afb78);_0x4437db['set'](_0x4afb78,_0x5030d5),_0x231d9c['set'](_0x4afb78,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4437db,[],_0x231d9c);}['getData'](_0x3ecb42,_0x1cf591){if(this['_lastFrom']===_0x3ecb42&&this['_lastTo']<=_0x1cf591)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1cf591,!0x0);else{if(!this['_savedMetaData']['has'](_0x3ecb42)){const _0x5633aa=this['_getPreviousFrom'](_0x3ecb42);this['_calculateMetaData'](_0x5633aa,_0x3ecb42,!0x1);}this['_calculateMetaData'](_0x3ecb42,_0x1cf591,!0x0);}return this['_lastFrom']=_0x3ecb42,this['_lastTo']=_0x1cf591,this['_getState']();}['loadState'](_0x109ed6){this['_reset'](),this['_lastFrom']=_0x109ed6['fromVersion'],this['_lastTo']=_0x109ed6['toVersion'];for(const _0x457934 in _0x109ed6['diffData']){const _0x391584=_0x109ed6['diffData'][_0x457934]['attachChange'],_0x569618=_0x1e9187(_0x109ed6['diffData'][_0x457934]['attributesBefore'])||{},_0x3dc137=this['_makeModelFromViewString'](_0x109ed6['diffData'][_0x457934]['deletions']);_0x3dc137['rootName']=_0x457934,_0x3dc137['_isAttached']=!_0x391584||!_0x391584['isAttached'],_0x3dc137['isAttached']=()=>_0x3dc137['_isAttached'],this['_baseRoots']['set'](_0x457934,_0x3dc137),this['_baseRootsAttributes']['set'](_0x457934,_0x569618),_0x391584&&this['_touchedRoots']['set'](_0x457934,_0x391584);const _0xedfe54=this['_makeIdsRoot'](_0x3dc137);this['_baseIdsRoots']['set'](_0x457934,_0xedfe54);for(const [_0x404154,_0x563dcf]of _0x3dc137['markers']){if(!_0x404154['startsWith']('revision:'))continue;const _0x545586=_0x404154['split'](':')[0x2];for(const _0x2f8c24 of _0x563dcf['getWalker']({'singleCharacters':!0x0})){const _0x290331=this['_getVidAttributeName'](_0x2f8c24),_0x4254b5='elementEnd'==_0x2f8c24['type']?_0x2f8c24['previousPosition']['path']['slice'](0x0,-0x1):_0x2f8c24['previousPosition']['path'],_0x51011e=_0xedfe54['getNodeByPath'](_0x4254b5)['getAttribute'](_0x290331);this['_touched']['set'](_0x51011e,{'userId':_0x545586});}}}this['_startingRevisionId']=this['_revisionId'];const _0x692dbf=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x244bfd=>!this['_touched']['has'](_0x244bfd));let _0x145680=0x0;const _0x258b97=new Map();for(const _0x98780d in _0x109ed6['diffData']){const _0x5c1156=_0x109ed6['diffData'][_0x98780d]['attachChange'],_0x64095a=_0x1e9187(_0x109ed6['diffData'][_0x98780d]['attributesAfter'])||{},_0xbf86e3=this['_makeModelFromViewString'](_0x109ed6['diffData'][_0x98780d]['insertions']);_0xbf86e3['rootName']=_0x98780d,_0xbf86e3['_isAttached']=!_0x5c1156||_0x5c1156['isAttached'],_0xbf86e3['isAttached']=()=>_0xbf86e3['_isAttached'],this['_diffRoots']['set'](_0x98780d,_0xbf86e3),this['_diffRootsAttributes']['set'](_0x98780d,_0x64095a);const _0x3607cd=this['_makeIdsRoot'](_0xbf86e3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x98780d,_0x3607cd),_0x258b97['set'](_0x98780d,_0xbf86e3['isAttached']()?_0x64095a:{});for(const [_0x17ea6d,_0x4d6b7d]of _0xbf86e3['markers']){if(!_0x17ea6d['startsWith']('revision:'))continue;const _0x2fe94b=_0x17ea6d['split'](':')[0x2];for(const _0xcfb345 of _0x4d6b7d['getWalker']({'singleCharacters':!0x0})){const _0x2d4ce4=this['_getVidAttributeName'](_0xcfb345),_0x14bacf=this['_revisionId']++,_0x4e9b7d='elementEnd'==_0xcfb345['type']?_0xcfb345['previousPosition']['path']['slice'](0x0,-0x1):_0xcfb345['previousPosition']['path'];_0x3607cd['getNodeByPath'](_0x4e9b7d)['_setAttribute'](_0x2d4ce4,_0x14bacf),this['_touched']['set'](_0x14bacf,{'userId':_0x2fe94b});}}for(const _0x44cd42 of this['editor']['model']['createRangeIn'](_0xbf86e3)['getWalker']({'singleCharacters':!0x0})){const _0x5f3ddd=this['_getVidAttributeName'](_0x44cd42),_0x245859='elementEnd'==_0x44cd42['type']?_0x44cd42['previousPosition']['path']['slice'](0x0,-0x1):_0x44cd42['previousPosition']['path'],_0x40f604=_0x3607cd['getNodeByPath'](_0x245859);_0x40f604['getAttribute'](_0x5f3ddd)>0x0||_0x40f604['_setAttribute'](_0x5f3ddd,_0x692dbf[_0x145680++]);}for(const [_0x552318,_0x1ea099]of _0xbf86e3['markers'])_0x552318['startsWith']('revision:')||this['_markers']['set'](_0x552318,_0x1ea099);}const _0x583d1d=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x583d1d),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x583d1d,0x1));const _0x109101=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x109101),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x109101,0x1));const _0x34b303=Array['from'](this['_diffRoots'])['map'](([_0x1ddce8,_0x2cc739])=>[_0x1ddce8,T(_0x2cc739)]);this['_saveMetaData'](this['_lastTo'],_0x34b303,this['_markers'],_0x258b97);}['_makeModelFromViewString'](_0x431b82){const _0x6f6ba8=JSON['parse'](_0x431b82),_0x255255=this['editor']['editing']['view']['document'],_0x5dcd97=new _0x2a849c(_0x255255,_0x6f6ba8['map'](_0x4f1dd7=>P(_0x4f1dd7,this['editor'])));return this['editor']['data']['toModel'](_0x5dcd97);}['_saveMetaData'](_0x340101,_0xaf66f1,_0x5b4cec,_0x23bc6a){const _0x57b2dd=new Map(_0xaf66f1),_0x1bad9b=new Map(_0x1e9187(_0x23bc6a)),_0x51d469=new Map();for(const [_0x26ddb1,_0xa54005]of _0x5b4cec)_0x51d469['set'](_0x26ddb1,{'start':_0xa54005['start']['clone'](),'end':_0xa54005['end']['clone'](),'rootName':_0xa54005['root']['rootName']});this['_savedMetaData']['set'](_0x340101,{'roots':_0x57b2dd,'markers':_0x51d469,'rootsAttributes':_0x1bad9b});}['_removeMetaData'](_0x1ac3c4){this['_savedMetaData']['delete'](_0x1ac3c4);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_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'](_0x177a6a,_0x16c36e=null){let _0x3845dd=null;_0x177a6a['is']('documentFragment')||(_0x3845dd=new ut(_0x177a6a['name'],{'vid_start':null===_0x16c36e?this['_revisionId']++:_0x16c36e++}));const _0x5af538=[];for(const _0x4c4669 of _0x177a6a['getChildren']())if(_0x4c4669['is']('element')){_0x5af538['push'](this['_makeIdsRoot'](_0x4c4669,_0x16c36e));const _0x9f447e=_0x5af538[_0x5af538['length']-0x1];null!==_0x16c36e&&(_0x16c36e=_0x9f447e['is']('element','$text')?_0x9f447e['getAttribute']('vid')+0x1:_0x9f447e['getAttribute']('vid_end')+0x1);}else{for(let _0x2a2f65=0x0;_0x2a2f65<_0x4c4669['offsetSize'];_0x2a2f65++)_0x5af538['push'](new ut('$text',{'vid':null===_0x16c36e?this['_revisionId']++:_0x16c36e++}));}if(_0x177a6a['is']('documentFragment')){const _0x107cf6=F(_0x177a6a['rootName']);return _0x107cf6['_insertChild'](0x0,_0x5af538),_0x107cf6;}return _0x3845dd['_setAttribute']('vid_end',null===_0x16c36e?this['_revisionId']++:_0x16c36e++),_0x3845dd['_insertChild'](0x0,_0x5af538),_0x3845dd;}['_calculateMetaData'](_0x5daddf,_0x2792aa,_0x323d2b){this['_reset']();const {roots:_0x54b846,markers:_0x2a6e14,rootsAttributes:_0x2dcc11}=this['_savedMetaData']['get'](_0x5daddf);this['_baseRoots']=new Map(_0x54b846),this['_baseRootsAttributes']=new Map(_0x1e9187(_0x2dcc11));for(const [_0x142637,_0x59e3f4]of this['_baseRoots'])if('$graveyard'!==_0x142637&&(this['_diffRoots']['set'](_0x142637,T(_0x59e3f4)),this['_diffRootsAttributes']=new Map(_0x1e9187(_0x2dcc11)),_0x323d2b)){const _0x58e25d=this['_revisionId'];this['_idsRoots']['set'](_0x142637,this['_makeIdsRoot'](_0x59e3f4)),this['_baseIdsRoots']['set'](_0x142637,this['_makeIdsRoot'](_0x59e3f4,_0x58e25d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x323d2b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xe1fe54,_0x210a4c]of _0x2a6e14){const _0x7a12be=this['_baseRoots']['get'](_0x210a4c['rootName']),_0x54ed2c=this['_diffRoots']['get'](_0x210a4c['rootName']),_0x510a4c=new ft(this['_fixPosition'](_0x210a4c['start'],_0x7a12be),this['_fixPosition'](_0x210a4c['end'],_0x7a12be)),_0x42f251=this['_fixRange'](_0x510a4c,_0x54ed2c);_0x7a12be['markers']['set'](_0xe1fe54,_0x510a4c),this['_markers']['set'](_0xe1fe54,_0x42f251);}this['_applyOperations'](_0x5daddf,_0x2792aa,_0x323d2b);}['_applyOperations'](_0x527d03,_0x31c863,_0xffa3dd){for(const _0xfc4169 of this['source']['getOperations'](_0x527d03,_0x31c863))this['_handleOperation'](_0xfc4169,_0xffa3dd);for(const _0x52a871 of this['_diffRoots']['values']())_0x52a871['markers']['clear']();for(const [_0x2f69c6,_0x89d491]of this['_markers']){this['_diffRoots']['get'](_0x89d491['root']['rootName'])['markers']['set'](_0x2f69c6,_0x89d491['clone']());}const _0x5d0fc9=new Map(),_0x451ee4=new Map();for(const [_0x4f83dc,_0x253708]of this['_diffRoots'])_0x5d0fc9['set'](_0x4f83dc,T(_0x253708)),_0x451ee4['set'](_0x4f83dc,this['_diffRootsAttributes']['get'](_0x4f83dc));this['_saveMetaData'](_0x31c863,_0x5d0fc9,this['_markers'],_0x451ee4);}['_getPreviousFrom'](_0x651c69){const _0x3f362e=Array['from'](this['_savedMetaData']['keys']());_0x3f362e['sort']((_0x12597c,_0x30066a)=>_0x12597c-_0x30066a),_0x3f362e['reverse']();for(const _0x28cfdd of _0x3f362e)if(_0x28cfdd<_0x651c69)return _0x28cfdd;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5570b9,_0x56e132){const _0x21121e=Array['from'](_0x56e132['markers'])['map'](([_0x4a6771,_0x1fe235])=>[_0x4a6771,this['_fixRange'](_0x1fe235,_0x5570b9)]);_0x5570b9['markers']=new Map(_0x21121e);}['_transformMarkers'](_0xe6ab67){for(const _0x324f3d of this['_markers']['values']()){const _0x3ce3f0=_0x324f3d['getTransformedByOperation'](_0xe6ab67),_0x20c8ba=ft['_createFromRanges'](_0x3ce3f0);_0x324f3d['start']=_0x20c8ba['start'],_0x324f3d['end']=_0x20c8ba['end'];}}['_handleOperation'](_0x1ee341,_0x118631){if('addRoot'!=_0x1ee341['type']&&'detachRoot'!=_0x1ee341['type']){if('insert'==_0x1ee341['type']){const _0x1e35ed=_0x1ee341['position']['root']['rootName'];this['_diffRoots']['has'](_0x1e35ed)||(this['_diffRoots']['set'](_0x1e35ed,F(_0x1e35ed,!0x0)),this['_diffRootsAttributes']['set'](_0x1e35ed,{}),_0x118631&&this['_idsRoots']['set'](_0x1e35ed,F(_0x1e35ed,!0x0)));}else{if('addRootAttribute'==_0x1ee341['type']||'removeRootAttribute'==_0x1ee341['type']||'changeRootAttribute'==_0x1ee341['type'])return void this['_handleRootAttributeOperation'](_0x1ee341);'marker'==_0x1ee341['type']&&this['_handleMarkerOperation'](_0x1ee341);}if('marker'!==_0x1ee341['type']){const _0x216d80=this['_cloneOperation'](_0x1ee341,this['_diffRoots']);_0x216d80['_execute'](),this['_transformMarkers'](_0x216d80);}if(_0x118631)switch(_0x1ee341['type']){case'insert':this['_handleInsertOperation'](_0x1ee341);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1ee341);break;case'merge':this['_handleMergeOperation'](_0x1ee341);break;case'split':this['_handleSplitOperation'](_0x1ee341);}}else this['_handleRootOperation'](_0x1ee341,_0x118631);}['_cloneOperation'](_0x250600,_0x4198c7){const _0x52e980=_0x250600['clone']();return _0x52e980['_authorId']=_0x250600['_authorId'],this['_fixOperation'](_0x52e980,_0x4198c7),_0x52e980;}['_getBaseVids'](_0x5a113d){return _0x5a113d['map'](_0x358c1e=>{const _0x10201a=this['_getVidAttributeName'](_0x358c1e);return Number(_0x358c1e['item']['getAttribute'](_0x10201a));});}['_generateTape'](_0x3f10a9,_0x6b711d){if(_0x3f10a9['is']('element','$text'))_0x6b711d['push']({'item':_0x3f10a9,'type':'text'});else{_0x3f10a9['is']('element')&&_0x6b711d['push']({'item':_0x3f10a9,'type':'elementStart'});for(const _0x3ccbc0 of _0x3f10a9['getChildren']())this['_generateTape'](_0x3ccbc0,_0x6b711d);_0x3f10a9['is']('element')&&_0x6b711d['push']({'item':_0x3f10a9,'type':'elementEnd'});}return _0x6b711d;}['_getState'](){const _0x2bb445=new Map(this['_touched']),_0x35bd18=new Map(_0x2bb445),_0x1639e8=new Map(),_0x5449cc={'insertions':{},'deletions':{}},_0x2614bb={'insertions':{},'deletions':{}},_0x4cca9e=new Map(),_0x3bc2b8=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3bc2b8['delete']('$graveyard');for(const _0x1bb8af of _0x3bc2b8){const _0x33f78b=this['_diffRoots']['get'](_0x1bb8af)||F(_0x1bb8af,!0x1),_0xf13cb4=this['_baseRoots']['get'](_0x1bb8af)||F(_0x1bb8af,!0x1);_0x33f78b['isAttached']()||_0xf13cb4['isAttached']()?(_0x5449cc['insertions'][_0x1bb8af]=T(_0x33f78b),_0x5449cc['deletions'][_0x1bb8af]=T(_0xf13cb4),this['_copyMarkers'](_0x5449cc['deletions'][_0x1bb8af],_0xf13cb4),this['_copyMarkers'](_0x5449cc['insertions'][_0x1bb8af],_0x33f78b),_0x2614bb['insertions'][_0x1bb8af]=this['_generateTape'](this['_idsRoots']['get'](_0x1bb8af),[]),_0x2614bb['deletions'][_0x1bb8af]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1bb8af)||F(_0x1bb8af,!0x1),[])):_0x3bc2b8['delete'](_0x1bb8af);}for(const _0x838f03 of _0x3bc2b8){const _0x3242e7=_0x2614bb['insertions'][_0x838f03];for(const _0x4980a5 of _0x3242e7){const _0x23a4d1=this['_getVidAttributeName'](_0x4980a5),_0x1da588=_0x4980a5['item']['getAttribute'](_0x23a4d1);_0x35bd18['delete'](_0x1da588),_0x1da588>=this['_startingRevisionId']&&_0x1639e8['set'](_0x1da588,_0x2bb445['get'](_0x1da588));}}for(const _0x30083e of _0x3bc2b8){const _0x573db5=_0x2614bb['insertions'][_0x30083e],_0x2f2812=this['_getBaseVids'](_0x2614bb['deletions'][_0x30083e]);let _0x134f44=0x0;for(const _0x17c23c of _0x573db5){const _0x5bdadf=this['_getVidAttributeName'](_0x17c23c),_0x3f9446=_0x17c23c['item']['getAttribute'](_0x5bdadf);if(!_0x1639e8['has'](_0x3f9446)&&!_0x4cca9e['has'](_0x3f9446)){if(_0x35bd18['has'](_0x3f9446))_0x134f44++;else{if(_0x3f9446!=_0x2f2812[_0x134f44]){const _0x573a1e=_0x2bb445['get'](_0x3f9446)||_0x2bb445['get'](_0x2f2812[_0x134f44]);for(;_0x3f9446!=_0x2f2812[_0x134f44];)_0x35bd18['has'](_0x2f2812[_0x134f44])||(_0x4cca9e['set'](_0x2f2812[_0x134f44],_0x573a1e),_0x2bb445['set'](_0x2f2812[_0x134f44],_0x573a1e)),_0x134f44++;}_0x134f44++;}}}}for(const _0x33bf3e of _0x3bc2b8){const _0x5b7739=_0x2614bb['insertions'][_0x33bf3e];for(const _0x40522b of _0x5b7739){const _0x4a6ac4=this['_getVidAttributeName'](_0x40522b),_0x4cb039=_0x40522b['item']['getAttribute'](_0x4a6ac4);if(_0x4cca9e['has'](_0x4cb039)){const _0x5aab4e=_0x4cca9e['get'](_0x4cb039);_0x35bd18['has'](_0x4cb039)||_0x35bd18['set'](_0x4cb039,{..._0x5aab4e}),_0x1639e8['set'](_0x4cb039,{..._0x5aab4e});}}}for(const _0xbe4ccb of _0x35bd18['keys']())_0xbe4ccb>=this['_startingRevisionId']&&_0x35bd18['delete'](_0xbe4ccb);const _0x314787=new Map();for(const _0x1752b4 of _0x3bc2b8){let _0x9ce527=_0x2614bb['insertions'][_0x1752b4];for(const _0x373cf7 of _0x9ce527)if(_0x373cf7['item']['is']('element','tableCell')){const _0x75a024=this['_getVidAttributeName'](_0x373cf7),_0x3a6d01=_0x373cf7['item']['getAttribute'](_0x75a024);if(_0x1639e8['has'](_0x3a6d01)){const _0x28bcc4=_0x373cf7['item']['parent']['parent']['getAttribute']('vid_start'),_0x2331e5=_0x314787['get'](_0x28bcc4)||new Set();_0x2331e5['add'](_0x1639e8['get'](_0x3a6d01)['userId']),_0x314787['set'](_0x28bcc4,_0x2331e5);}}_0x9ce527=_0x2614bb['deletions'][_0x1752b4];for(const _0x217658 of _0x9ce527)if(_0x217658['item']['is']('element','tableCell')){const _0x1e09d9=this['_getVidAttributeName'](_0x217658),_0x1c03f4=_0x217658['item']['getAttribute'](_0x1e09d9);if(_0x35bd18['has'](_0x1c03f4)){const _0x2e24b9=_0x217658['item']['parent']['parent']['getAttribute']('vid_start'),_0x29e652=_0x314787['get'](_0x2e24b9)||new Set();_0x29e652['add'](_0x35bd18['get'](_0x1c03f4)['userId']),_0x314787['set'](_0x2e24b9,_0x29e652);}}for(const _0x171ff9 of _0x314787['keys']())(_0x1639e8['has'](_0x171ff9)||_0x35bd18['has'](_0x171ff9))&&_0x314787['delete'](_0x171ff9);}for(const _0x547d71 of _0x3bc2b8){const _0x132a79=_0x2614bb['insertions'][_0x547d71];let _0x1b4ce1=null,_0x130755=null;for(const _0x1c72fb of _0x132a79){const _0x47fc77=this['_getVidAttributeName'](_0x1c72fb),_0x130096=_0x1c72fb['item']['getAttribute'](_0x47fc77),_0x5c1242=_0x314787['get'](_0x130096);_0x5c1242&&'elementStart'==_0x1c72fb['type']&&(_0x1b4ce1=Array['from'](_0x5c1242)[0x0],_0x130755=_0x1c72fb['item']['getAttribute']('vid_end')),_0x1b4ce1&&(_0x35bd18['set'](_0x130096,{'userId':_0x1b4ce1}),_0x1639e8['set'](_0x130096,{'userId':_0x1b4ce1})),_0x130096==_0x130755&&(_0x1b4ce1=null,_0x130755=null);}}const _0x51981e={},_0x3eb200=new Set();for(const _0x2f7dc1 of _0x3bc2b8){const _0x540a72=_0x5449cc['deletions'][_0x2f7dc1],_0x53b6d2=_0x5449cc['insertions'][_0x2f7dc1];for(const {userId:_0x397361}of this['_touchedMarkers']['values']())null!==_0x397361&&_0x3eb200['add'](_0x397361);for(const {userId:_0xdd4c00}of this['_touchedRoots']['values']())null!==_0xdd4c00&&_0x3eb200['add'](_0xdd4c00);this['_markChanges'](_0x53b6d2,_0x2614bb['insertions'][_0x2f7dc1],_0x1639e8,'insertion',_0x3eb200),this['_markChanges'](_0x540a72,_0x2614bb['deletions'][_0x2f7dc1],_0x35bd18,'deletion',_0x3eb200),_0x51981e[_0x2f7dc1]={'insertions':this['_prepareViewToSave'](_0x53b6d2),'deletions':this['_prepareViewToSave'](_0x540a72),'attachChange':this['_touchedRoots']['get'](_0x2f7dc1)||null,'attributesBefore':_0x1e9187(this['_baseRootsAttributes']['get'](_0x2f7dc1))||{},'attributesAfter':_0x1e9187(this['_diffRootsAttributes']['get'](_0x2f7dc1))};}return{'diffData':_0x51981e,'authorsIds':Array['from'](_0x3eb200)};}['_processRootBeforeSave'](_0x39ac28){for(const [,_0xf641a1]of _0x39ac28['markers']){const _0x334a05=_0xf641a1['start']['getAncestors']()['filter'](_0x1e35d5=>'tableCell'==_0x1e35d5['name']);for(const _0x31acca of _0x334a05)0x1==_0x31acca['childCount']&&_0x31acca['getChild'](0x0)['is']('element','paragraph')&&_0x31acca['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x21a97b){this['_processRootBeforeSave'](_0x21a97b);const _0x10e354=this['editor']['data']['toView'](_0x21a97b,{}),_0x4236d0=Array['from'](_0x10e354['getChildren']())['map'](_0x40283b=>this['_getViewJson'](_0x40283b));return JSON['stringify'](_0x4236d0);}['_getViewJson'](_0x4156ad){if(_0x4156ad['is']('$text'))return _0x4156ad['data'];{const _0x57722c=_0x4156ad;return{'type':Object['keys'](E)['find'](_0x1aa97d=>_0x4156ad instanceof E[_0x1aa97d]),'name':_0x57722c['name'],'attributes':Array['from'](_0x57722c['getAttributes']()),'children':Array['from'](_0x57722c['getChildren']())['map'](_0x1ee0c9=>this['_getViewJson'](_0x1ee0c9))};}}['_markChanges'](_0x1efa68,_0x2786eb,_0x5ee064,_0xeac652,_0x3a5da8){let _0x421fcb=null,_0x106826=null,_0x261a66=0x0;const _0x2fc692=this['editor']['model'];for(let _0x11e9d4=0x0;_0x11e9d4<_0x2786eb['length'];_0x11e9d4++){const _0x28c6a3=this['_getVidAttributeName'](_0x2786eb[_0x11e9d4]),_0x31d064=_0x2786eb[_0x11e9d4]['item']['getAttribute'](_0x28c6a3),_0x474981=_0x5ee064['get'](_0x31d064),_0x2bf1ca=_0x11e9d4==_0x2786eb['length']-0x1;(!_0x421fcb&&_0x474981&&(_0x421fcb=_0x474981,_0x106826=_0x2786eb[_0x11e9d4]),_0x421fcb&&(!_0x474981||_0x474981['userId']!=_0x421fcb['userId']))&&(_0x325bbf(_0x474981,B(_0x106826,_0x1efa68,_0x2fc692),B(_0x2786eb[_0x11e9d4],_0x1efa68,_0x2fc692)),_0x421fcb=_0x474981||null,_0x106826=_0x474981?_0x2786eb[_0x11e9d4]:null),_0x421fcb&&_0x2bf1ca&&_0x325bbf(_0x474981,B(_0x106826,_0x1efa68,_0x2fc692),J(_0x2786eb[_0x11e9d4],_0x1efa68,_0x2fc692));}function _0x325bbf(_0x1c3a26,_0x1a8a15,_0x1c66f1){const _0x37693f=_0x421fcb['userId'],_0x574c16='revision:'+_0xeac652+':'+_0x37693f+':'+_0x261a66++,_0x291526=_0x2fc692['createRange'](_0x1a8a15,_0x1c66f1);_0x1efa68['markers']['set'](_0x574c16,_0x291526),null!==_0x37693f&&_0x3a5da8['add'](_0x37693f);}}['_getVidAttributeName'](_0x187fe3){switch(_0x187fe3['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1c4e8d,_0x5b464d){_0x1c4e8d['baseVersion']=null;for(const _0x229df4 in _0x1c4e8d){const _0x21345f=_0x1c4e8d[_0x229df4];if(_0x21345f instanceof vt){const _0x5945e0=_0x5b464d['get'](_0x21345f['root']['rootName']);_0x1c4e8d[_0x229df4]=this['_fixPosition'](_0x21345f,_0x5945e0);}if(_0x21345f instanceof ft){const _0x4e2d04=_0x5b464d['get'](_0x21345f['root']['rootName']);_0x1c4e8d[_0x229df4]=this['_fixRange'](_0x21345f,_0x4e2d04);}'root'===_0x229df4&&(_0x1c4e8d['root']=_0x5b464d['get'](_0x1c4e8d['root']['rootName']));}}['_fixRange'](_0x436210,_0xd54bd){return this['editor']['model']['createRange'](this['_fixPosition'](_0x436210['start'],_0xd54bd),this['_fixPosition'](_0x436210['end'],_0xd54bd));}['_fixPosition'](_0x72c7fd,_0x26d6f3){return this['editor']['model']['createPositionFromPath'](_0x26d6f3,_0x72c7fd['path'],_0x72c7fd['stickiness']);}['_handleInsertOperation'](_0x536358){const _0x1c660c=this['_idsRoots']['get'](_0x536358['position']['root']['rootName']),_0x14c80e=this['_fixPosition'](_0x536358['position'],_0x1c660c),_0x554715=null===_0x536358['_authorId']?null:_0x536358['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x18bf69=_0x14c80e['parent'],_0xa5c32c=this['_revisionId'],_0x44c727=[];for(const _0x2da807 of _0x536358['nodes'])if(_0x2da807['is']('element'))_0x44c727['push'](this['_makeIdsRoot'](_0x2da807));else{for(let _0x5c8f8d=0x0;_0x5c8f8d<_0x2da807['offsetSize'];_0x5c8f8d++)_0x44c727['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1bd2ae=this['_revisionId'];for(let _0x489696=_0xa5c32c;_0x489696<_0x1bd2ae;_0x489696++)this['_touched']['set'](_0x489696,{'userId':_0x554715});_0x18bf69['_insertChild'](_0x14c80e['offset'],_0x44c727);}['_handleMoveOperation'](_0x1196e8){(_0x1196e8=this['_cloneOperation'](_0x1196e8,this['_idsRoots']))['_execute']();const _0x5be9d7=null===_0x1196e8['_authorId']?null:_0x1196e8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x40d023=_0x1196e8['getMovedRangeStart'](),_0x529a9d=_0x40d023['parent'],_0x299d06=_0x40d023['offset'];!function _0x7362d7(_0x72276d,_0x42e314,_0x3324dc,_0x19f147){for(let _0x5c7f48=_0x3324dc;_0x5c7f48<_0x19f147;_0x5c7f48++){const _0x1f6b3e=_0x42e314['getChild'](_0x5c7f48);_0x1f6b3e['is']('element','$text')?_0x72276d['set'](_0x1f6b3e['getAttribute']('vid'),{'userId':_0x5be9d7}):(_0x72276d['set'](_0x1f6b3e['getAttribute']('vid_start'),{'userId':_0x5be9d7}),_0x7362d7(_0x72276d,_0x1f6b3e,0x0,_0x1f6b3e['childCount']),_0x72276d['set'](_0x1f6b3e['getAttribute']('vid_end'),{'userId':_0x5be9d7}));}}(this['_touched'],_0x529a9d,_0x299d06,_0x299d06+_0x1196e8['howMany']);}['_handleMergeOperation'](_0x2b14cf){const _0x451da3=null===(_0x2b14cf=this['_cloneOperation'](_0x2b14cf,this['_idsRoots']))['_authorId']?null:_0x2b14cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16f150=_0x2b14cf['targetPosition']['parent'],_0x48c36f=_0x2b14cf['sourcePosition']['parent'],_0x309c2e=_0x16f150['getAttribute']('vid_end'),_0x4dad9d=_0x48c36f['getAttribute']('vid_start');_0x16f150['_setAttribute']('vid_end',_0x48c36f['getAttribute']('vid_end')),_0x48c36f['_setAttribute']('vid_end',_0x309c2e),this['_touched']['set'](_0x4dad9d,{'userId':_0x451da3}),this['_touched']['set'](_0x309c2e,{'userId':_0x451da3}),_0x2b14cf['_execute']();}['_handleSplitOperation'](_0x215bd2){const _0x34e8ab=null===(_0x215bd2=this['_cloneOperation'](_0x215bd2,this['_idsRoots']))['_authorId']?null:_0x215bd2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x72d632=_0x215bd2['graveyardPosition'],_0x28e74c=_0x215bd2['splitPosition']['parent'];_0x215bd2['_execute']();const _0x5c5080=_0x28e74c['getAttribute']('vid_end'),_0x4e01ad=_0x215bd2['insertionPosition']['nodeAfter'];if(_0x72d632){const _0x17c006=_0x4e01ad['getAttribute']('vid_end'),_0x121d9e=_0x28e74c['getAttribute']('vid_end');_0x28e74c['_setAttribute']('vid_end',_0x17c006),_0x4e01ad['_setAttribute']('vid_end',_0x121d9e),this['_touched']['set'](_0x28e74c['getAttribute']('vid_end'),{'userId':_0x34e8ab}),this['_touched']['set'](_0x4e01ad['getAttribute']('vid_start'),{'userId':_0x34e8ab});}else{const _0x35bed=this['_revisionId']++,_0x36b44b=this['_revisionId']++;_0x28e74c['_setAttribute']('vid_end',_0x35bed),_0x4e01ad['_setAttribute']('vid_start',_0x36b44b),_0x4e01ad['_setAttribute']('vid_end',_0x5c5080),this['_touched']['set'](_0x35bed,{'userId':_0x34e8ab}),this['_touched']['set'](_0x36b44b,{'userId':_0x34e8ab});}}['_handleMarkerOperation'](_0x556f0a){if(!_0x556f0a['affectsData'])return;const _0x33b215=(_0x556f0a=this['_cloneOperation'](_0x556f0a,this['_diffRoots']))['oldRange']?_0x556f0a['oldRange']['root']:null,_0x9f35df=_0x556f0a['newRange']?_0x556f0a['newRange']['root']:null;_0x33b215&&this['_markers']['delete'](_0x556f0a['name']),_0x9f35df&&this['_markers']['set'](_0x556f0a['name'],_0x556f0a['newRange']['clone']());const _0x5936fa=null===_0x556f0a['_authorId']?null:_0x556f0a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x331607=_0x556f0a['name'];if(!this['_touchedMarkers']['has'](_0x331607))return void this['_touchedMarkers']['set'](_0x331607,{'range':_0x556f0a['oldRange'],'userId':_0x5936fa});const _0xd3d1c0=this['_touchedMarkers']['get'](_0x331607),_0x24cb1a=_0xd3d1c0['range'],_0x35d8c0=_0x556f0a['newRange'];null==_0x24cb1a&&null==_0x35d8c0||_0x24cb1a&&_0x35d8c0&&_0x24cb1a['isEqual'](_0x35d8c0)?this['_touchedMarkers']['delete'](_0x556f0a['name']):_0xd3d1c0['userId']=_0x5936fa;}['_handleRootOperation'](_0x35c317,_0x3c3362){this['_diffRoots']['has'](_0x35c317['rootName'])?this['_diffRoots']['get'](_0x35c317['rootName'])['_isAttached']=_0x35c317['isAdd']:(this['_diffRoots']['set'](_0x35c317['rootName'],F(_0x35c317['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x35c317['rootName'],{}),_0x3c3362&&this['_idsRoots']['set'](_0x35c317['rootName'],F(_0x35c317['rootName'],!0x0)));const _0x17f334=null===_0x35c317['_authorId']?null:_0x35c317['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x13d984=this['_touchedRoots']['get'](_0x35c317['rootName']);_0x13d984&&_0x13d984['userId']===_0x17f334?this['_touchedRoots']['delete'](_0x35c317['rootName']):this['_touchedRoots']['set'](_0x35c317['rootName'],{'userId':_0x17f334,'isAttached':_0x35c317['isAdd']});}['_handleRootAttributeOperation'](_0x36d8ee){const _0x2878b6=this['_diffRootsAttributes']['get'](_0x36d8ee['root']['rootName']);null===_0x36d8ee['newValue']?delete _0x2878b6[_0x36d8ee['key']]:_0x2878b6[_0x36d8ee['key']]=_0x36d8ee['newValue'];}}function T(_0x85da52){const _0x1bf44d=F(_0x85da52['rootName'],_0x85da52['isAttached']());for(const _0x410ae5 of _0x85da52['getChildren']()){const _0x2f5db4=_0x410ae5['_clone'](!0x0);_0x1bf44d['_appendChild'](_0x2f5db4);}return _0x1bf44d;}function F(_0xbb7d7b,_0x436983=!0x0){const _0x22c94a=new gt();return _0x22c94a['rootName']=_0xbb7d7b,_0x22c94a['_isAttached']=_0x436983,_0x22c94a['isAttached']=()=>_0x22c94a['_isAttached'],_0x22c94a;}function B(_0x2233d7,_0x5e1933,_0x5937b1){const _0x4bab63='elementEnd'==_0x2233d7['type']?_0x5937b1['createPositionAt'](_0x2233d7['item'],'end'):_0x5937b1['createPositionBefore'](_0x2233d7['item']);return _0x5937b1['createPositionFromPath'](_0x5e1933,_0x4bab63['path'],_0x4bab63['stickiness']);}function J(_0x1be6a5,_0x4086c4,_0x2c6d35){const _0x571b80='elementStart'==_0x1be6a5['type']?_0x2c6d35['createPositionAt'](_0x1be6a5['item'],0x0):_0x2c6d35['createPositionAfter'](_0x1be6a5['item']);return _0x2c6d35['createPositionFromPath'](_0x4086c4,_0x571b80['path'],_0x571b80['stickiness']);}class os extends _0x2cd61f{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4bfda7,_0x3e21e1){super(_0x4bfda7),this['focusTracker']=new _0x4f50ab(),this['keystrokes']=new _0x44b11f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3e21e1),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'](),_0x35f696({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x311b26=_0x1f05f0=>_0x1f05f0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x311b26),this['keystrokes']['set']('arrowleft',_0x311b26),this['keystrokes']['set']('arrowup',_0x311b26),this['keystrokes']['set']('arrowdown',_0x311b26);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x480ace){this['revisionNameInputView']['fieldView']['element']['value']=_0x480ace['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x46a7c2){const _0x5a2f4b=new at(this['locale'],ti),_0x12409a=_0x5a2f4b['fieldView'];_0x12409a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x11ffba=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x46a7c2&&(_0x11ffba+='\x20('+m(this['locale'],'optional')+')'),(_0x5a2f4b['label']=_0x11ffba,_0x12409a['on']('input',()=>{this['revisionNameInputValue']=_0x12409a['element']['value']['trim']();}),_0x5a2f4b);}}class f extends _0x3bbe91{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2ba0d0=this['editor'],_0x3bc736=_0x2ba0d0['plugins']['get']('RevisionTracker');_0x2ba0d0['ui']['componentFactory']['add']('revisionHistory',_0xd394f4=>{const _0x43a78c=_0x2ac711(_0xd394f4),_0x311e7d=_0x43a78c['panelView']['children'],_0x54b277=new _0x467127(_0xd394f4),_0x27ceb1=new te(_0xd394f4),_0x16f8a2=new _0x8c758d(_0xd394f4),_0x58e60d=new te(_0xd394f4),_0x62c4bc=new _0x8c758d(_0xd394f4);return _0x43a78c['bind']('isEnabled')['to'](_0x3bc736,'isReady',_0x3bc736,'isEnabled',_0x2ba0d0,'isReadOnly',(_0x535e12,_0x4809b0,_0x2c79ce)=>_0x535e12&&_0x4809b0&&!_0x2c79ce),_0x43a78c['buttonView']['set']({'icon':_0x31b088,'label':m(_0xd394f4,'Revision\x20history'),'tooltip':!0x0}),_0x16f8a2['set']({'label':m(_0xd394f4,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x16f8a2['bind']('isEnabled')['to'](_0x3bc736,'isReady',_0x3bc736,'isEnabled',_0x2ba0d0,'isReadOnly',(_0x54a927,_0xed6878,_0x12d825)=>_0x54a927&&_0xed6878&&!_0x12d825),_0x16f8a2['on']('execute',()=>this['_showDialog']()),_0x62c4bc['set']({'label':m(_0xd394f4,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x62c4bc['bind']('isEnabled')['to'](_0x3bc736,'isReady',_0x2ba0d0,'isReadOnly',(_0x12b1c5,_0x372800)=>_0x12b1c5&&!_0x372800),_0x62c4bc['on']('execute',()=>{_0x2ba0d0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x43a78c['isOpen']=!0x1,_0x2ba0d0['editing']['view']['focus']();}),_0x27ceb1['children']['add'](_0x16f8a2),_0x58e60d['children']['add'](_0x62c4bc),_0x54b277['role']='menu',_0x54b277['items']['addMany']([_0x27ceb1,_0x58e60d]),_0x311e7d['add'](_0x54b277),_0x43a78c;}),_0x2ba0d0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x140497=this['editor'],_0x3e8e31=_0x140497['locale'],_0x30b416=new _0x56aff4(_0x3e8e31),_0x4ba3c2=new _0x3fbc2f(_0x3e8e31);_0x30b416['buttonView']['set']({'icon':_0x31b088,'label':m(_0x3e8e31,'Revision\x20history')});const _0x221111=new _0x288aa9(_0x3e8e31,_0x30b416),_0x4d136e=new _0x5d599f(_0x3e8e31);_0x4d136e['set']({'label':m(_0x3e8e31,'Save\x20current\x20revision')}),_0x4d136e['delegate']('execute')['to'](_0x30b416),_0x4d136e['on']('execute',()=>{this['_showDialog']();}),_0x221111['children']['add'](_0x4d136e),_0x4ba3c2['items']['add'](_0x221111);const _0x157640=new _0x288aa9(_0x3e8e31,_0x30b416),_0x433636=new _0x5d599f(_0x3e8e31);return _0x433636['set']({'label':m(_0x3e8e31,'Open\x20revision\x20history')}),_0x433636['delegate']('execute')['to'](_0x30b416),_0x433636['on']('execute',()=>{_0x140497['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x157640['children']['add'](_0x433636),_0x4ba3c2['items']['add'](_0x157640),_0x30b416['panelView']['children']['add'](_0x4ba3c2),_0x30b416;}['_showDialog'](){const _0x335f8b=this['editor'],_0x3abaab=_0x335f8b['locale'],_0x5e2975=_0x335f8b['plugins']['get']('Dialog'),_0x20889c=_0x335f8b['plugins']['get']('RevisionTracker');function _0x59222b(_0x3771f8){_0x335f8b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3771f8['revisionName']?_0x3771f8['revisionNameInputView']['errorText']=m(_0x3abaab,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x335f8b['plugins']['get'](u)['saveRevision']({'name':_0x3771f8['revisionName']}),_0x5e2975['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x59222b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5e2975['show']({'id':'revisionSave','title':m(_0x3abaab,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x335f8b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5e2975['hide']()},{'label':m(_0x335f8b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x248b88){_0x248b88['bind']('isEnabled')['to'](_0x20889c,'isReady',_0x20889c,'isEnabled',_0x335f8b,'isReadOnly',(_0x205c2f,_0x297364,_0x36e8ac)=>_0x205c2f&&_0x297364&&!_0x36e8ac);},'onExecute':()=>_0x59222b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4ac4c2=this['editor'],_0x34bb80=_0x4ac4c2['locale'];this['_saveRevisionFormView']=new os(_0x34bb80,_0x4ac4c2['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x2cd61f{['changeId'];['_model'];constructor(_0x46b722,_0xa80f3c){super(_0x46b722),this['_model']=_0xa80f3c,this['changeId']=_0xa80f3c['id'];const _0x4da7f6=this['bindTemplate'],_0x187236=m(_0x46b722,_0xa80f3c['data']['isSuggestion']?'Suggested\x20by':'add'==_0xa80f3c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xa80f3c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4da7f6['to']('type',_0x5d08fc=>'ck-revision-change__'+_0x5d08fc)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x187236}]},{'text':'\x20'+_0xa80f3c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xdcdd68(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x557cbc){super(),this['id']=_0x557cbc['id']||_0x3e3348(),this['author']=_0x557cbc['author'],this['type']=_0x557cbc['type'],this['data']=_0x557cbc['data']||{},this['rootName']=_0x557cbc['rootName'],this['set']('createdAt',_0x557cbc['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(_0x9066e7,_0x268988){this['newRevisionId']=_0x9066e7,this['oldRevisionId']=_0x268988,this['changes']=new _0x53f381();}['_setChanges'](_0x27518c){for(const _0x29fef8 of _0x27518c)this['changes']['add'](_0x29fef8);}}const Y={'c':_0x44e871,'a':_0x2e4914,'e':_0x168201,'r':_0x4fb728,'u':_0x18e058};class d extends _0x3bbe91{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1d77c1,_0x476e30,j];}constructor(_0x539f25){super(_0x539f25),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),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',(_0x34673f,_0x2e1328,_0x10ef31)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x34025c=>{for(const _0x5b4f11 of this['editor']['editing']['view']['document']['roots'])_0x10ef31?_0x34025c['removeClass']('ck-editor__editable__overlay',_0x5b4f11):_0x34025c['addClass']('ck-editor__editable__overlay',_0x5b4f11);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x58d642=>null!==_0x58d642),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x25e19b,_0x2a6b05,_0xa0c7aa)=>_0x25e19b&&_0xa0c7aa?_0x2a6b05['changes']['getIndex'](_0xa0c7aa):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x6b2987,_0x102098)=>_0x6b2987?_0x102098['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x476e30);}['init'](){const _0x5d40de=this['editor'],_0x5e261c=new yt(_0x5d40de,{'direction':'backward'}),_0x359955=new yt(_0x5d40de,{'direction':'forward'});(_0x5d40de['commands']['add']('showPreviousChange',_0x5e261c),_0x5d40de['commands']['add']('showNextChange',_0x359955),_0x5d40de['commands']['add']('restoreRevision',new _t(_0x5d40de)),this['on']('change:numberOfChanges',()=>{_0x5e261c['refresh'](),_0x359955['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5d40de['enableReadOnlyMode']('revision-viewer'),_0x5d40de['plugins']['has']('WidgetToolbarRepository'))&&_0x5d40de['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x1a8282){await this['loadRevisionData'](_0x1a8282);const _0x285291={};for(const _0x5b7854 in _0x1a8282['diffData']){if(_0x1a8282['diffData'][_0x5b7854]['attachChange']&&!_0x1a8282['diffData'][_0x5b7854]['attachChange']['isAttached'])continue;const _0x12786d=this['_removeRevisionMarkers'](JSON['parse'](_0x1a8282['diffData'][_0x5b7854]['insertions'])),_0x6cd0fe=this['editor']['editing']['view']['document'],_0x1cfcdc=new _0x2a849c(_0x6cd0fe,_0x12786d['map'](_0x4dd587=>this['_getViewObj'](_0x4dd587)));this['editor']['data']['processor']['useFillerType']('marked'),_0x285291[_0x5b7854]=this['editor']['data']['processor']['toData'](_0x1cfcdc),this['editor']['data']['processor']['useFillerType']('default');}return _0x285291;}async['getRevisionRootsAttributes'](_0x574b10){await this['loadRevisionData'](_0x574b10);const _0x10b10a={};for(const _0x55c679 in _0x574b10['diffData'])_0x574b10['diffData'][_0x55c679]['attachChange']&&!_0x574b10['diffData'][_0x55c679]['attachChange']['isAttached']||(_0x10b10a[_0x55c679]=_0x574b10['diffData'][_0x55c679]['attributesAfter']||{});return _0x10b10a;}['_removeRevisionMarkers'](_0x40c5eb){return(_0x40c5eb=_0x40c5eb['filter'](_0x2ed7af=>!_0x2ed7af['name']||'revision-start'!==_0x2ed7af['name']&&'revision-end'!==_0x2ed7af['name']))['forEach'](_0x111429=>{'string'!=typeof _0x111429&&(_0x111429['children']=this['_removeRevisionMarkers'](_0x111429['children']),_0x111429['attributes']=_0x111429['attributes']['filter'](_0x6f88c3=>!_0x6f88c3[0x0]['startsWith']('data-revision-')));}),_0x40c5eb;}async['compare'](_0x9645d9,_0x310d4f,_0x5dfa27=!0x1){if(!this['isEnabled'])return;const _0x522ed9=this['diff'],_0x46570e=this['repository'],_0x24b813='string'==typeof _0x9645d9?_0x46570e['getRevision'](_0x9645d9):_0x9645d9,_0x2f3592='string'==typeof _0x310d4f?_0x46570e['getRevision'](_0x310d4f):_0x310d4f,_0x5f3bed=_0x24b813['id'],_0x40bd12=_0x2f3592?_0x2f3592['id']:null;if(!_0x5dfa27&&this['diff']&&this['diff']['newRevisionId']===_0x5f3bed&&this['diff']['oldRevisionId']===_0x40bd12)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5f3bed,_0x40bd12);const _0x375f68=this['_getRevisionsRange'](_0x24b813,_0x2f3592,!0x0)['map'](_0x40a8e0=>this['loadRevisionData'](_0x40a8e0));return _0x375f68['push'](new Promise(_0x158f90=>{setTimeout(_0x158f90,0x14);})),Promise['all'](_0x375f68)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4dd06e=this['_getDiff'](_0x5f3bed,_0x40bd12);for(const _0x18f237 of _0x4dd06e['changes'])this['_changeIdToChange']['set'](_0x18f237['id'],_0x18f237);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x68ef0c=>{for(const _0x100bed of this['editor']['model']['document']['getRootNames']())_0x68ef0c['detachRoot'](_0x100bed);for(const _0x5b2e54 of Object['keys'](_0x4dd06e['model'])){const _0x47718d=_0x68ef0c['addRoot'](_0x5b2e54);for(const _0x154856 of Object['keys'](_0x4dd06e['attributes'][_0x5b2e54]))_0x68ef0c['setAttribute'](_0x154856,_0x4dd06e['attributes'][_0x5b2e54][_0x154856],_0x47718d);_0x68ef0c['insert'](_0x4dd06e['model'][_0x5b2e54],_0x47718d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4dd06e['changes'])),this['isReady']=!0x0;})['catch'](_0x165760=>{console['error'](_0x165760),this['_cleanUp'](),_0x522ed9&&(this['diff']=_0x522ed9),this['isReady']=!0x0;});}['addRevisionData'](_0x5f029a,_0xa626bf){const _0xf0c8f2=this['repository']['createRevision'](_0x5f029a);return _0xf0c8f2['on']('_update',(_0x11cee7,_0xa2a9d,_0x56af1e)=>_0xa626bf(_0xa2a9d,_0x56af1e,_0xf0c8f2)),this['repository']['addRevision'](_0xf0c8f2),_0xf0c8f2;}['loadRevisionData'](_0x1e0cdc){if(!_0x1e0cdc||_0x1e0cdc['diffData'])return Promise['resolve']();{const _0x59781e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x59781e,'revisionId':_0x1e0cdc['id']})['then'](_0x194056=>{_0x1e0cdc['_update']({'diffData':_0x194056['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x7b79e6=>{for(const _0x2eae33 of this['editor']['model']['document']['getRootNames']())_0x7b79e6['detachRoot'](_0x2eae33);});}['_sortAndFilterDiffChanges'](_0x17f6af){const _0x54956b=[],_0x194ee6=new Map();for(const _0x32d587 of this['editor']['model']['document']['getRootNames']()){const _0x44d0ff=this['editor']['editing']['view']['getDomRoot'](_0x32d587);if(!_0x44d0ff)continue;const _0x399634=_0x44d0ff['getClientRects']()['item'](0x0);_0x399634&&(_0x54956b['push'](_0x32d587),_0x194ee6['set'](_0x32d587,_0x399634));}return _0x54956b['sort']((_0x5e6dbc,_0x3596fd)=>{const _0x52cef1=_0x194ee6['get'](_0x5e6dbc),_0x4cfe68=_0x194ee6['get'](_0x3596fd);return _0x52cef1['y']-_0x4cfe68['y']||_0x52cef1['x']-_0x4cfe68['x'];}),(_0x17f6af=_0x17f6af['filter'](_0x221352=>_0x54956b['includes'](_0x221352['rootName'])))['sort']((_0x57bb5f,_0x54f7ac)=>_0x54956b['indexOf'](_0x57bb5f['rootName'])-_0x54956b['indexOf'](_0x54f7ac['rootName'])),_0x17f6af;}['_makeTape'](_0x3070cf){const _0x56459b=Array['from'](_0x3070cf['markers'])['filter'](([_0x399da3,_0x33b495])=>_0x399da3['startsWith']('revision:')&&!_0x33b495['isCollapsed']),_0x421a2b=Array['from'](this['editor']['model']['createRangeIn'](_0x3070cf)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x56459b['length'])for(const _0x296518 of _0x421a2b){const [_0x3ed670,_0x5ed1db]=_0x56459b[0x0],[,_0x140ae5,_0x33ce1d]=_0x3ed670['split'](':');if(_0x5ed1db['end']['isEqual'](_0x296518['nextPosition'])&&_0x56459b['shift'](),(_0x296518['previousPosition']['isEqual'](_0x5ed1db['start'])||_0x296518['previousPosition']['isAfter'](_0x5ed1db['start']))&&('insertion'==_0x140ae5?_0x296518['isAdded']={'userId':_0x33ce1d}:'deletion'==_0x140ae5&&(_0x296518['isRemoved']={'userId':_0x33ce1d})),0x0==_0x56459b['length'])break;}return _0x421a2b;}['_refreshStartEndIndex'](_0x544f5b){const _0x5e8b53=new Map();for(let _0x4ecebd=0x0;_0x4ecebd<_0x544f5b['length'];_0x4ecebd++)'text'===_0x544f5b[_0x4ecebd]['type']?(_0x544f5b[_0x4ecebd]['item']['startIndex']=_0x4ecebd,_0x544f5b[_0x4ecebd]['item']['endIndex']=_0x4ecebd):('elementStart'===_0x544f5b[_0x4ecebd]['type']?_0x544f5b[_0x4ecebd]['item']['startIndex']=_0x4ecebd:'elementEnd'===_0x544f5b[_0x4ecebd]['type']&&(_0x544f5b[_0x4ecebd]['item']['endIndex']=_0x4ecebd),_0x5e8b53['set'](_0x544f5b[_0x4ecebd]['id'],_0x4ecebd));for(const _0x3a3d0e of _0x5e8b53['values']())'elementStart'===_0x544f5b[_0x3a3d0e]['type']?_0x544f5b[_0x3a3d0e]['item']['endIndex']=_0x5e8b53['get'](_0x544f5b[_0x3a3d0e]['pairId']):'elementEnd'===_0x544f5b[_0x3a3d0e]['type']&&(_0x544f5b[_0x3a3d0e]['item']['startIndex']=_0x5e8b53['get'](_0x544f5b[_0x3a3d0e]['pairId']));}['_processTape'](_0x4a4d81){for(let _0x3388fe=0x0;_0x3388fe<_0x4a4d81['length'];_0x3388fe++){if('elementStart'===_0x4a4d81[_0x3388fe]['type'])_0x4a4d81[_0x3388fe]['item']['startIndex']=_0x3388fe;else{if('elementEnd'===_0x4a4d81[_0x3388fe]['type']){_0x4a4d81[_0x3388fe]['item']['endIndex']=_0x3388fe;const _0x388735=_0x4a4d81[_0x3388fe]['item']['startIndex'];_0x4a4d81[_0x388735]['pairId']=_0x4a4d81[_0x3388fe]['id'],_0x4a4d81[_0x3388fe]['pairId']=_0x4a4d81[_0x388735]['id'];}else _0x4a4d81[_0x3388fe]['item']['startIndex']=_0x3388fe,_0x4a4d81[_0x3388fe]['item']['endIndex']=_0x3388fe,_0x4a4d81[_0x3388fe]['pairId']=null;}_0x4a4d81[_0x3388fe]['markersStart']||(_0x4a4d81[_0x3388fe]['markersStart']=[],_0x4a4d81[_0x3388fe]['markersEnd']=[]);}}['_markInsertions'](_0x5a07b6,_0x56a726){const _0x2ac828=_0x5a07b6['filter'](_0x39438f=>!_0x39438f['isAdded']);for(let _0x176f01=0x0;_0x176f01<_0x56a726['length'];_0x176f01++)_0x56a726[_0x176f01]['isAdded']&&(_0x2ac828[_0x176f01]['isAdded']=_0x56a726[_0x176f01]['isAdded']);}['_makeModelFromViewString'](_0x790703){const _0x1d0928=JSON['parse'](_0x790703),_0x6c7b91=this['editor']['editing']['view']['document'],_0x52bcbb=new _0x2a849c(_0x6c7b91,_0x1d0928['map'](_0xbbb378=>this['_getViewObj'](_0xbbb378)));return this['editor']['data']['toModel'](_0x52bcbb);}['_getViewObj'](_0x53dbac){const _0x2feebd=this['editor']['editing']['view']['document'];if('string'==typeof _0x53dbac)return new _0x12bdf6(_0x2feebd,_0x53dbac);{const _0x571269=_0x53dbac['children']['map'](_0x4c5f0c=>this['_getViewObj'](_0x4c5f0c));return new(Y[_0x53dbac['type']]||_0x278e91)(_0x2feebd,_0x53dbac['name'],_0x53dbac['attributes'],_0x571269);}}['_getDiff'](_0x444091,_0x193cad=null){const _0x4e6c14=this['repository']['getRevision'](_0x444091),_0x246a50=_0x193cad?this['repository']['getRevision'](_0x193cad):null,_0x168fed=this['_getRevisionsRange'](_0x4e6c14,_0x246a50),_0x1755b8=_0x168fed[_0x168fed['length']-0x1],_0x38889c=new Map(),_0x2636fb={'model':{},'attributes':{},'changes':[]},_0x234ade=new Set(),_0xd8c060=new Map();for(let _0x92f8d4=_0x168fed['length']-0x1;_0x92f8d4>=0x0;_0x92f8d4--){const _0x3ce0a9=_0x168fed[_0x92f8d4];for(const _0x264268 of Object['keys'](_0x3ce0a9['diffData']))if(_0x3ce0a9['diffData'][_0x264268]['attachChange']){const _0x3369df=_0x3ce0a9['diffData'][_0x264268]['attachChange'];_0x3369df['isAttached']?(_0x234ade['add'](_0x264268),_0xd8c060['has'](_0x264268)&&_0xd8c060['get'](_0x264268)['userId']==_0x3369df['userId']?_0xd8c060['delete'](_0x264268):_0xd8c060['set'](_0x264268,_0x3369df)):_0xd8c060['has'](_0x264268)?(_0x234ade['delete'](_0x264268),_0xd8c060['delete'](_0x264268)):(_0x234ade['add'](_0x264268),_0xd8c060['set'](_0x264268,_0x3369df));}else _0x234ade['add'](_0x264268);}for(const _0x95f87a of _0x234ade){const _0x2961a3=_0xd8c060['has'](_0x95f87a)&&!_0xd8c060['get'](_0x95f87a)['isAttached'];let _0x551242=_0x2961a3?_0x168fed['length']-0x1:0x0;const _0x4fa84c=_0x2961a3?-0x1:0x1;for(;_0x168fed[_0x551242];){const _0x1d848c=_0x168fed[_0x551242];if(_0x1d848c['diffData'][_0x95f87a]){const _0x4805a5=_0x2961a3?_0x1d848c['diffData'][_0x95f87a]['attributesBefore']:_0x1d848c['diffData'][_0x95f87a]['attributesAfter'];_0x2636fb['attributes'][_0x95f87a]=_0x4805a5?_0x1e9187(_0x4805a5):{};break;}_0x551242+=_0x4fa84c;}}for(const _0x5846fd of _0x168fed){_0x5846fd['model']={};for(const _0x5334fc of _0x5846fd['authors'])_0x38889c['set'](_0x5334fc['id'],_0x5334fc);for(const _0x36cd2b of _0x234ade){const _0x270551=_0x5846fd['diffData'][_0x36cd2b]?_0x5846fd['diffData'][_0x36cd2b]['insertions']:'[]',_0x584fe9=_0x5846fd['diffData'][_0x36cd2b]?_0x5846fd['diffData'][_0x36cd2b]['deletions']:'[]';_0x5846fd['model'][_0x36cd2b]={'insertions':this['_makeModelFromViewString'](_0x270551),'deletions':this['_makeModelFromViewString'](_0x584fe9)};}}for(const _0x804392 of _0x234ade){let _0x176d44=null,_0x4c6508=0x0;const _0x52a19a=new Map(Array['from'](_0x4e6c14['model'][_0x804392]['insertions']['markers'])['filter'](([_0x35d4ec])=>!_0x35d4ec['startsWith']('revision:')));let _0x3484b5=0x0;for(const _0x4b6d54 of _0x168fed){const _0x480f14=this['_makeTape'](_0x4b6d54['model'][_0x804392]['insertions']);_0x4b6d54==_0x4e6c14?(_0x176d44=_0x480f14,_0x4c6508=_0x176d44['length'],_0x176d44['forEach'](_0x319163=>{_0x319163['id']=_0x3484b5++;}),this['_processTape'](_0x176d44)):this['_markInsertions'](_0x176d44,_0x480f14);const _0x141167=_0x176d44['filter'](_0x37c2df=>!_0x37c2df['isAdded'])['map'](_0x10a511=>_0x10a511['id']);let _0x2f4cb5=0x0;const _0x568eb3=this['_makeTape'](_0x4b6d54['model'][_0x804392]['deletions']);_0x568eb3['forEach'](_0x57a1bd=>{_0x57a1bd['isRemoved']?_0x57a1bd['id']=_0x4c6508++:_0x57a1bd['id']=_0x141167[_0x2f4cb5++];}),this['_processTape'](_0x568eb3),this['_setDistance'](_0x176d44,'isAdded'),this['_setDistance'](_0x568eb3,'isRemoved'),_0x4b6d54==_0x4e6c14&&this['_markMarkers'](_0x176d44,_0x52a19a),_0x176d44=this['_joinTapes'](_0x176d44,_0x568eb3),this['_refreshStartEndIndex'](_0x176d44),this['_setDistance'](_0x176d44,'isRemoved');}_0x176d44=_0x176d44['filter'](_0x445d97=>!(_0x445d97['isAdded']&&_0x445d97['isRemoved']));const _0x55428a=new Map(_0x1755b8['model'][_0x804392]['deletions']['markers']),_0x57ad24=new Set(_0x52a19a['keys']());for(const _0x459814 of _0x55428a['keys']())_0x57ad24['delete'](_0x459814);this['_markSuggestions'](_0x176d44,_0x57ad24),this['_fixObsoleteTags'](_0x176d44),_0x176d44=this['_removeMissingPairs'](_0x176d44),_0x176d44=this['_markMismatchedRemovedTags'](_0x176d44),_0x176d44=this['_removeUnsupportedChanges'](_0x176d44);const {root:_0x4083c4,changes:_0x568a73}=this['_makeModelFromTape'](_0x176d44,_0x38889c,_0x804392);_0x2636fb['model'][_0x804392]=_0x4083c4;const _0x246ea4=_0xd8c060['get'](_0x804392);if(_0x246ea4){const _0x377ce3=_0x38889c['get'](_0x246ea4['userId']),_0x2589ab=new r({'author':_0x377ce3,'type':_0x246ea4['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x804392});_0x568a73['unshift'](_0x2589ab),_0x2636fb['attributes'][_0x804392]['revisionHistoryAttachChange']=_0x2589ab['id'];}_0x2636fb['changes']=_0x2636fb['changes']['concat'](_0x568a73);}return _0x2636fb;}['_markMarkers'](_0x488f0c,_0x571999){for(let _0x400462=0x0;_0x400462<_0x488f0c['length'];_0x400462++)for(const [_0x3c95d0,_0x2f44aa]of _0x571999)_0x2f44aa['start']['isEqual'](_0x488f0c[_0x400462]['previousPosition'])&&_0x488f0c[_0x400462]['markersStart']['push'](_0x3c95d0),_0x2f44aa['end']['isEqual'](_0x488f0c[_0x400462]['nextPosition'])&&_0x488f0c[_0x400462]['markersEnd']['push'](_0x3c95d0);}['_joinTapes'](_0x4942da,_0x29f4a7){let _0x5c6ea3=[],_0x39a068=0x0,_0x531387=0x0;for(;_0x39a068<_0x4942da['length']||_0x531387<_0x29f4a7['length'];){const _0x17c14e=_0x4942da[_0x39a068]||{},_0x356306=_0x29f4a7[_0x531387]||{};if(_0x17c14e['id']==_0x356306['id'])_0x39a068++,_0x531387++,_0x5c6ea3['push'](_0x17c14e);else{if(_0x356306['isRemoved']&&_0x17c14e['isAdded']){const {commonTape:_0x5759a4,iEnd:_0xaf60ca,jEnd:_0x10d530}=this['_threeWayMerge'](_0x4942da,_0x39a068,_0x29f4a7,_0x531387);_0x5c6ea3=_0x5c6ea3['concat'](_0x5759a4),_0x39a068=_0xaf60ca,_0x531387=_0x10d530;}else _0x356306['isRemoved']?(_0x531387++,_0x5c6ea3['push'](_0x356306)):(_0x39a068++,_0x5c6ea3['push'](_0x17c14e));}}return _0x5c6ea3;}['_markSuggestions'](_0x459abf,_0xa55449){const _0xe9e422=[];for(let _0x2919c5=0x0;_0x2919c5<_0x459abf['length'];_0x2919c5++){for(let _0x1d7291=0x0;_0x1d7291<_0x459abf[_0x2919c5]['markersStart']['length'];_0x1d7291++){const _0x55fbdf=_0x459abf[_0x2919c5]['markersStart'][_0x1d7291];if(!_0xa55449['has'](_0x55fbdf))continue;const {group:_0x60d4ea,type:_0x35c799,authorId:_0x4e2c0a}=_0x5df2bf(_0x55fbdf);'revision-suggestion'!=_0x60d4ea||'insertion'!=_0x35c799&&'deletion'!=_0x35c799||(_0xe9e422['unshift']({'type':_0x35c799,'name':_0x55fbdf,'userId':_0x4e2c0a}),_0x459abf[_0x2919c5]['markersStart']['splice'](_0x1d7291,0x1),_0x1d7291--);}_0x554fe5(_0x459abf[_0x2919c5]);for(let _0x3a484d=0x0;_0x3a484d<_0x459abf[_0x2919c5]['markersEnd']['length'];_0x3a484d++){const _0x4e02c4=_0x459abf[_0x2919c5]['markersEnd'][_0x3a484d];if(!_0xa55449['has'](_0x4e02c4))continue;const {group:_0x542d91,type:_0x1b41a4}=_0x5df2bf(_0x4e02c4);if('revision-suggestion'!=_0x542d91||'insertion'!=_0x1b41a4&&'deletion'!=_0x1b41a4)continue;_0x459abf[_0x2919c5]['markersEnd']['splice'](_0x3a484d,0x1),_0x3a484d--;const _0x19c345=_0xe9e422['findIndex'](_0x4fdf8c=>_0x4fdf8c['name']==_0x4e02c4);_0x19c345>-0x1&&_0xe9e422['splice'](_0x19c345,0x1);}}function _0x5df2bf(_0x68dde8){const _0x292ea8=_0x68dde8['split'](':');return{'group':_0x292ea8[0x0],'type':_0x292ea8[0x1],'subType':_0x292ea8['length']>=0x5?_0x292ea8[0x2]:null,'id':_0x292ea8['length']<0x5?_0x292ea8[0x2]:_0x292ea8[0x3],'authorId':_0x292ea8['length']<0x5?_0x292ea8[0x3]:_0x292ea8[0x4],'markerCount':0x6==_0x292ea8['length']?_0x292ea8[0x5]:null};}function _0x554fe5(_0xe87275){for(let _0x47025f=0x0;_0x47025f<_0xe9e422['length'];_0x47025f++){if(_0xe87275['isAdded']&&'insertion'==_0xe9e422[_0x47025f]['type'])return _0xe87275['isAddSuggestion']=_0xe9e422[_0x47025f],void delete _0xe87275['isAdded'];if(!_0xe87275['isAdded']&&!_0xe87275['isRemoved']&&'deletion'==_0xe9e422[_0x47025f]['type'])return void(_0xe87275['isRemoveSuggestion']=_0xe9e422[_0x47025f]);}}}['_setDistance'](_0x1a8a3f,_0x5bf988){let _0x4d5492=0x0,_0x3461d9=!0x1;const _0x4223f6=new Map();for(const _0x4438b7 of _0x1a8a3f)_0x4438b7[_0x5bf988]?_0x3461d9&&(_0x4d5492++,_0x3461d9=!0x1):(_0x4d5492++,_0x3461d9=!0x0),_0x4223f6['set'](_0x4438b7['id'],_0x4d5492);for(let _0x2433fc=0x0;_0x2433fc<_0x1a8a3f['length'];_0x2433fc++){if('isRemoved'==_0x5bf988&&_0x1a8a3f[_0x2433fc]['isAdded']||'isAdded'==_0x5bf988&&_0x1a8a3f[_0x2433fc]['isRemoved'])continue;if('text'==_0x1a8a3f[_0x2433fc]['type']){_0x1a8a3f[_0x2433fc]['distance']=0x0;continue;}const _0x43436d=_0x4223f6['get'](_0x1a8a3f[_0x2433fc]['pairId']),_0x3af490=_0x4223f6['get'](_0x1a8a3f[_0x2433fc]['id']);_0x1a8a3f[_0x2433fc]['distance']=_0x43436d-_0x3af490;}}['_getRevisionsRange'](_0x2b6c71,_0x2d8d7b,_0x261b63=!0x1){const _0x17ceda=[];let _0x23bda2=this['repository']['getIndex'](_0x2b6c71),_0x810064=this['repository']['getIndex'](_0x2d8d7b);for(-0x1==_0x810064&&(_0x810064=this['repository']['_revisions']['length'],_0x261b63=!0x1);_0x23bda2<_0x810064;)_0x17ceda['push'](this['repository']['getRevision'](_0x23bda2)),_0x23bda2++;return _0x261b63&&_0x17ceda['push'](this['repository']['getRevision'](_0x23bda2)),_0x17ceda;}['_threeWayMerge'](_0x804384,_0x2b3959,_0x1519aa,_0x5c3c3b){const _0xa4a17f=this['editor']['model']['schema'];let _0x11b27b=_0x2b3959;for(;_0x804384[_0x11b27b]&&_0x804384[_0x11b27b]['isAdded'];)_0x11b27b++;let _0x4dee3c=_0x5c3c3b;for(;_0x1519aa[_0x4dee3c]&&_0x1519aa[_0x4dee3c]['isRemoved'];)_0x4dee3c++;_0x1a31ed(_0x804384,_0x2b3959,_0x11b27b),_0x1a31ed(_0x1519aa,_0x5c3c3b,_0x4dee3c);const _0x241049=_0x1519aa['slice'](_0x5c3c3b,_0x4dee3c)['concat'](_0x804384['slice'](_0x2b3959,_0x11b27b));return _0x241049['sort']((_0xa50d62,_0x48f334)=>_0xa50d62['side']!=_0x48f334['side']?_0xa50d62['side']-_0x48f334['side']:_0xa50d62['level']!=_0x48f334['level']?_0xa50d62['level']-_0x48f334['level']:_0xa50d62['distance']!=_0x48f334['distance']?_0x48f334['distance']-_0xa50d62['distance']:!!_0xa50d62['isAdded']!=!!_0x48f334['isAdded']?-0x1==_0xa50d62['side']||0x0==_0xa50d62['side']?_0xa50d62['isAdded']?-0x1:0x1:_0xa50d62['isAdded']?0x1:-0x1:_0xa50d62['index']-_0x48f334['index']),{'commonTape':_0x241049,'iEnd':_0x11b27b,'jEnd':_0x4dee3c};function _0x1a31ed(_0x3650e7,_0x2ebf9f,_0x4c4f21){let _0x30077c=-0x1,_0xf8d71d=Number['POSITIVE_INFINITY'],_0x280d04=!0x0;for(let _0x28f99d=_0x2ebf9f;_0x28f99d<_0x4c4f21;_0x28f99d++)if(_0xa4a17f['isInline'](_0x3650e7[_0x28f99d]['item'])||(_0x280d04=!0x1),_0x3650e7[_0x28f99d]['item']['startIndex']<_0x2ebf9f&&(_0x30077c=_0x28f99d),_0x3650e7[_0x28f99d]['item']['endIndex']>=_0x4c4f21){_0xf8d71d=_0x28f99d;break;}_0x280d04&&(_0x30077c=_0x4c4f21-0x1);for(let _0x2fc5b6=_0x2ebf9f;_0x2fc5b6<_0x4c4f21;_0x2fc5b6++)_0x3650e7[_0x2fc5b6]['side']=_0x2fc5b6<=_0x30077c?-0x1:_0x2fc5b6<_0xf8d71d?0x0:0x1,_0x3650e7[_0x2fc5b6]['index']=_0x2fc5b6;let _0x3bad4e=0x0;for(let _0x308407=_0x2ebf9f;_0x308407<=_0x30077c;_0x308407++)0x0==_0x3650e7[_0x308407]['distance']?_0x3650e7[_0x308407]['level']=_0x3bad4e:(_0x3bad4e++,_0x3650e7[_0x308407]['level']=_0x3bad4e,_0x3bad4e++);for(let _0x2122f5=_0x2ebf9f;_0x2122f5<_0x4c4f21;_0x2122f5++)0x0==_0x3650e7[_0x2122f5]['side']&&(_0x3650e7[_0x2122f5]['level']=_0x3bad4e);_0x3bad4e=0x0;for(let _0x348fd1=_0x4c4f21-0x1;_0x348fd1>=_0xf8d71d;_0x348fd1--)0x0==_0x3650e7[_0x348fd1]['distance']?_0x3650e7[_0x348fd1]['level']=_0x3bad4e:(_0x3bad4e--,_0x3650e7[_0x348fd1]['level']=_0x3bad4e,_0x3bad4e--);}}['_fixObsoleteTags'](_0xe32d6a){const _0x3deaec=new Map(),_0x248b75=this['editor']['model']['schema'];for(let _0xb0fc45=0x1;_0xb0fc45<_0xe32d6a['length'];_0xb0fc45++){let _0x2220eb,_0x2091f4,_0x2e8a4b;const _0x266576=_0xe32d6a[_0xb0fc45],_0x3024c5=_0xe32d6a[_0xb0fc45-0x1];if('text'==_0x266576['type'])continue;if(_0x266576['type']!=_0x3024c5['type'])continue;if(!_0x248b75['isBlock'](_0x3024c5['item'])||_0x248b75['isLimit'](_0x3024c5['item']))continue;if(!_0x248b75['isBlock'](_0x266576['item'])||_0x248b75['isLimit'](_0x266576['item']))continue;if((_0xe32d6a[_0xb0fc45]['isAdded']||_0xe32d6a[_0xb0fc45]['isAddSuggestion'])&&_0xe32d6a[_0xb0fc45-0x1]['isRemoved'])_0x2220eb=_0xe32d6a[_0xb0fc45],_0x2091f4=_0xe32d6a[_0xb0fc45-0x1],_0x2e8a4b=_0xb0fc45-0x1;else{if(!_0xe32d6a[_0xb0fc45]['isRemoved']||!_0xe32d6a[_0xb0fc45-0x1]['isAdded']&&!_0xe32d6a[_0xb0fc45-0x1]['isAddSuggestion'])continue;_0x2220eb=_0xe32d6a[_0xb0fc45-0x1],_0x2091f4=_0xe32d6a[_0xb0fc45],_0x2e8a4b=_0xb0fc45;}const _0x1e27b7=_0x2220eb['level']==_0x2091f4['level'],_0xf66af1=Math['abs'](_0x2220eb['level'])<Math['abs'](_0x2091f4['level'])&&0x0==_0x2091f4['distance'];(_0x1e27b7||_0xf66af1)&&(_0x3deaec['set'](_0x2091f4['id'],_0x2220eb['id']),_0xe32d6a['splice'](_0x2e8a4b,0x1),_0xb0fc45--,_0x2220eb['isAdded']=!0x1);}for(let _0x5df5c3=0x0;_0x5df5c3<_0xe32d6a['length'];_0x5df5c3++)_0x3deaec['has'](_0xe32d6a[_0x5df5c3]['pairId'])&&(_0xe32d6a[_0x5df5c3]['pairId']=_0x3deaec['get'](_0xe32d6a[_0x5df5c3]['pairId']));}['_removeMissingPairs'](_0x59fa9d){const _0x4d40ac=new Set(_0x59fa9d['map'](_0x5ba89a=>_0x5ba89a['id']));for(let _0x48df76=0x0;_0x48df76<_0x59fa9d['length'];_0x48df76++)_0x4d40ac['has'](_0x59fa9d[_0x48df76]['pairId'])||0x0==_0x59fa9d[_0x48df76]['distance']||(_0x59fa9d[_0x48df76]['isIncorrect']=!0x0);return _0x59fa9d['filter'](_0x1b7e85=>!_0x1b7e85['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2776b4){const _0x4a3a93=new Set();for(let _0x3b6fb4=0x0;_0x3b6fb4<_0x2776b4['length'];_0x3b6fb4++){if(_0x4a3a93['has'](_0x2776b4[_0x3b6fb4]['id'])&&_0x2776b4[_0x3b6fb4]['isRemoved']&&(_0x2776b4[_0x3b6fb4]['isIncorrect']=!0x0),_0x2776b4[_0x3b6fb4]['isIncorrect'])continue;if(0x0==_0x2776b4[_0x3b6fb4]['distance'])continue;if('elementStart'!=_0x2776b4[_0x3b6fb4]['type'])continue;if(null==_0x2776b4[_0x3b6fb4]['pairId'])continue;let _0x234eec=_0x3b6fb4+0x1,_0x1d853b=0x0;for(;_0x2776b4[_0x234eec]['id']!=_0x2776b4[_0x3b6fb4]['pairId'];)'elementStart'==_0x2776b4[_0x234eec]['type']?_0x1d853b++:'elementEnd'==_0x2776b4[_0x234eec]['type']&&_0x1d853b--,_0x234eec++;if(0x0!=_0x1d853b){if(_0x2776b4[_0x3b6fb4]['isRemoved'])_0x2776b4[_0x3b6fb4]['isIncorrect']=!0x0;else{for(;_0x234eec!=_0x3b6fb4;)_0x2776b4[_0x234eec]['isRemoved']&&0x0!=_0x2776b4[_0x234eec]['distance']&&(_0x2776b4[_0x234eec]['isIncorrect']=!0x0,_0x4a3a93['add'](_0x2776b4[_0x234eec]['pairId'])),_0x234eec--;}}}return _0x2776b4['filter'](_0x4d53a4=>!_0x4d53a4['isIncorrect']);}['_removeUnsupportedChanges'](_0x3c1e32){const _0x4dcafe=this['editor']['model']['schema'];for(let _0x1048de=0x0;_0x1048de<_0x3c1e32['length'];_0x1048de++){if(!(_0x3c1e32[_0x1048de]['isAdded']||_0x3c1e32[_0x1048de]['isAddSuggestion']||_0x3c1e32[_0x1048de]['isRemoved']||_0x3c1e32[_0x1048de]['isRemoveSuggestion']))continue;if(0x0==_0x3c1e32[_0x1048de]['distance'])continue;const _0x2ed6f6=_0x3c1e32[_0x1048de]['item'];_0x4dcafe['isBlock'](_0x2ed6f6)||_0x4dcafe['isLimit'](_0x2ed6f6)||(_0x3c1e32[_0x1048de]['isAdded']&&delete _0x3c1e32[_0x1048de]['isAdded'],_0x3c1e32[_0x1048de]['isAddSuggestion']&&delete _0x3c1e32[_0x1048de]['isAddSuggestion'],_0x3c1e32[_0x1048de]['isRemoveSuggestion']&&delete _0x3c1e32[_0x1048de]['isRemoveSuggestion'],_0x3c1e32[_0x1048de]['isRemoved']&&(_0x3c1e32[_0x1048de]['isIncorrect']=!0x0));}return _0x3c1e32['filter'](_0x4b3f43=>!_0x4b3f43['isIncorrect']);}['_makeModelFromTape'](_0x5af2b8,_0x51e600,_0x2aeb90){const _0x4425bc=new gt(),_0x53215d=[],_0xa47685=new Map(),_0x531499=this['editor']['model'],_0x466224=_0x531499['schema'],_0x2f82ce=[_0x4425bc],_0x239a5d={},_0x38d8d3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5dcada=null;const _0x41828e=[0x0];for(let _0x327025=0x0;_0x327025<_0x5af2b8['length'];_0x327025++)if('elementStart'===_0x5af2b8[_0x327025]['type']){_0x5af2b8[_0x327025]['previousPosition']=_0x531499['createPositionFromPath'](_0x4425bc,_0x41828e);const _0x30d682=new ut(_0x5af2b8[_0x327025]['item']['name'],_0x5af2b8[_0x327025]['item']['getAttributes']());_0x2f82ce[0x0]['_appendChild'](_0x30d682),_0x41828e['push'](0x0),_0x2f82ce['unshift'](_0x30d682),_0x5af2b8[_0x327025]['nextPosition']=_0x531499['createPositionFromPath'](_0x4425bc,_0x41828e);}else'elementEnd'===_0x5af2b8[_0x327025]['type']?(_0x2f82ce['shift'](),_0x5af2b8[_0x327025]['previousPosition']=_0x531499['createPositionFromPath'](_0x4425bc,_0x41828e),_0x41828e['pop'](),_0x41828e[_0x41828e['length']-0x1]++,_0x5af2b8[_0x327025]['nextPosition']=_0x531499['createPositionFromPath'](_0x4425bc,_0x41828e)):(_0x5af2b8[_0x327025]['previousPosition']=_0x531499['createPositionFromPath'](_0x4425bc,_0x41828e),_0x5dcada?_0x5dcada['_data']+=_0x5af2b8[_0x327025]['item']['data']:_0x5dcada=new wt(_0x5af2b8[_0x327025]['item']['data'],_0x5af2b8[_0x327025]['item']['getAttributes']()),_0x5af2b8[_0x327025+0x1]&&'text'===_0x5af2b8[_0x327025+0x1]['type']&&_0x4b8f9e(_0x5dcada,_0x5af2b8[_0x327025+0x1]['item'])||(_0x2f82ce[0x0]['_appendChild'](_0x5dcada),_0x5dcada=null),_0x41828e[_0x41828e['length']-0x1]+=_0x5af2b8[_0x327025]['item']['offsetSize'],_0x5af2b8[_0x327025]['nextPosition']=_0x531499['createPositionFromPath'](_0x4425bc,_0x41828e));for(let _0x9f5957=0x0;_0x9f5957<_0x5af2b8['length'];_0x9f5957++){const _0x42c876=_0x5af2b8[_0x9f5957]['previousPosition'],_0x4c2cb8=_0x5af2b8[_0x9f5957]['nextPosition'];for(const _0x55acf4 of _0x5af2b8[_0x9f5957]['markersStart'])_0xa47685['set'](_0x55acf4,{'start':_0x42c876,'end':null});_0x506b23('isRemoveSuggestion',_0x9f5957,_0x42c876,_0x4c2cb8),_0x506b23('isAddSuggestion',_0x9f5957,_0x42c876,_0x4c2cb8),_0x506b23('isRemoved',_0x9f5957,_0x42c876,_0x4c2cb8),_0x506b23('isAdded',_0x9f5957,_0x42c876,_0x4c2cb8);for(const _0x37b55c of _0x5af2b8[_0x9f5957]['markersEnd']){_0xa47685['get'](_0x37b55c)['end']=_0x4c2cb8;}}for(const [_0x58b4cc,_0x31cbcf]of _0xa47685){const _0x1c46c9=this['editor']['model']['createRange'](_0x31cbcf['start'],_0x31cbcf['end']);_0x4425bc['markers']['set'](_0x58b4cc,_0x1c46c9);}return _0x53215d['sort']((_0x693aed,_0x21c60a)=>{const _0x55b2b6=_0x4425bc['markers']['get']('revision:'+_0x693aed['id']),_0x2e258b=_0x4425bc['markers']['get']('revision:'+_0x21c60a['id']);return _0x55b2b6['start']['isBefore'](_0x2e258b['start'])?-0x1:_0x55b2b6['start']['isAfter'](_0x2e258b['start'])?0x1:_0x55b2b6['end']['isBefore'](_0x2e258b['end'])?-0x1:_0x55b2b6['end']['isAfter'](_0x2e258b['end'])?0x1:'add'===_0x693aed['type']?-0x1:0x1;}),{'root':_0x4425bc,'changes':_0x53215d};function _0x506b23(_0x420d34,_0x114e55,_0x34abad,_0x5c46c8){const _0x8160b=!!_0x5af2b8[_0x114e55][_0x420d34],_0x1d4338=_0x8160b?_0x5af2b8[_0x114e55][_0x420d34]['userId']:null,_0x5ea61d=_0x114e55===_0x5af2b8['length']-0x1,_0x438c42=_0x38d8d3[_0x420d34][0x0],_0x45d09f=_0x466224['isObject'](_0x5af2b8[_0x114e55]['item']);!_0x239a5d[_0x420d34]&&_0x8160b?_0x239a5d[_0x420d34]={'start':_0x34abad,'tapeItem':_0x5af2b8[_0x114e55],'userId':_0x1d4338,'type':_0x420d34}:_0x239a5d[_0x420d34]&&!_0x8160b?(_0x239a5d[_0x420d34]['end']=_0x34abad,_0x1dec0c(_0x239a5d[_0x420d34]),_0x239a5d[_0x420d34]=null):_0x239a5d[_0x420d34]&&_0x8160b&&_0x239a5d[_0x420d34]['userId']!==_0x1d4338&&(_0x239a5d[_0x420d34]['end']=_0x34abad,_0x438c42&&_0x438c42['userId']===_0x239a5d[_0x420d34]['userId']||_0x1dec0c(_0x239a5d[_0x420d34]),_0x239a5d[_0x420d34]={'start':_0x34abad,'tapeItem':_0x5af2b8[_0x114e55],'userId':_0x1d4338,'type':_0x420d34}),_0x239a5d[_0x420d34]&&_0x45d09f&&('elementStart'!==_0x5af2b8[_0x114e55]['type']||_0x438c42&&_0x438c42['userId']===_0x1d4338||_0x38d8d3[_0x420d34]['unshift']({'userId':_0x1d4338,'object':_0x5af2b8[_0x114e55]['item'],'change':_0x239a5d[_0x420d34]}),'elementEnd'===_0x5af2b8[_0x114e55]['type']&&_0x438c42&&_0x438c42['object']===_0x5af2b8[_0x114e55]['item']&&(_0x38d8d3[_0x420d34]['shift'](),_0x239a5d[_0x420d34]=_0x438c42['change'])),_0x239a5d[_0x420d34]&&_0x5ea61d&&(_0x239a5d[_0x420d34]['end']=_0x5c46c8,_0x1dec0c(_0x239a5d[_0x420d34]),_0x239a5d[_0x420d34]=null);}function _0x1dec0c({start:_0x5647b9,end:_0x5d19e1,tapeItem:_0x501e19,userId:_0x417b6f,type:_0x93ebeb}){const _0x608ec3=_0x501e19['item'],_0x362f92=_0x531499['schema']['isBlock'](_0x608ec3)&&!_0x531499['schema']['isLimit'](_0x608ec3),_0x1b7c6f=_0x5647b9['nodeAfter']==_0x5d19e1['parent']&&_0x5d19e1['isAtStart'];if(_0x362f92&&_0x1b7c6f)return;const _0x2268e8=_0x531499['createRange'](_0x5647b9,_0x5d19e1),_0x16c1f0=_0x51e600['get'](_0x417b6f),_0x81a319=new r({'author':_0x16c1f0,'type':'isAdded'==_0x93ebeb||'isAddSuggestion'==_0x93ebeb?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x93ebeb||'isRemoveSuggestion'==_0x93ebeb},'createdAt':new Date(),'rootName':_0x2aeb90});_0x53215d['push'](_0x81a319),_0x4425bc['markers']['set']('revision:'+_0x81a319['id'],_0x2268e8);}function _0x4b8f9e(_0xe94a3f,_0x176566){const _0x41c151=_0xe94a3f['getAttributes'](),_0x51051e=_0x176566['getAttributes']();for(const _0xca2057 of _0x41c151){if(_0xca2057[0x1]!==_0x176566['getAttribute'](_0xca2057[0x0]))return!0x1;_0x51051e['next']();}return _0x51051e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4b1ce5=>{const _0x3a7818=_0x4b1ce5['markerName']['split'](':')[0x1],_0x156205=this['_getChangeFromId'](_0x3a7818);if(!_0x156205)return null;const _0x3f1a27='add'==_0x156205['type']?'insertion':'deletion',_0x146da6=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3f1a27];return _0x156205['data']['isSuggestion']&&_0x146da6['push']('ck-suggestion-marker-'+_0x3f1a27+'-new'),this['activeChange']==_0x156205&&_0x146da6['push']('ck-suggestion-marker--active'),{'classes':_0x146da6,'attributes':{'data-change-id':_0x3a7818}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x463f58=>{_0x463f58['on']('element:pre',(_0x403a67,_0x2abfef,_0x56041a)=>{const _0x461fcd=_0x2abfef['viewItem']['getChild'](0x0);if(!_0x461fcd||!_0x461fcd['is']('element','code'))return;if(!_0x56041a['consumable']['consume'](_0x461fcd,{'attributes':['vid_start','vid_end']}))return;const _0x197afb=_0x2abfef['modelRange']['start']['nodeAfter'];_0x56041a['writer']['setAttribute']('vid_start',_0x461fcd['getAttribute']('vid_start'),_0x197afb),_0x56041a['writer']['setAttribute']('vid_end',_0x461fcd['getAttribute']('vid_end'),_0x197afb);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x123e84=>{_0x123e84['on']('element',(_0x345ed7,_0x15579d,_0x38a77f)=>{if(!_0x38a77f['consumable']['consume'](_0x15579d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x15579d['modelRange']['isCollapsed'])return;const _0x428f62=_0x15579d['modelRange']['start']['nodeAfter'];_0x428f62['hasAttribute']('vid_start')||_0x428f62['hasAttribute']('vid')||(_0x38a77f['writer']['setAttribute']('vid_start',_0x15579d['viewItem']['getAttribute']('vid_start'),_0x428f62),_0x38a77f['writer']['setAttribute']('vid_end',_0x15579d['viewItem']['getAttribute']('vid_end'),_0x428f62));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x20376b=>_0x20376b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x175d80,[,_0x72bc5b])=>{['vid_start','vid_end','vid']['includes'](_0x72bc5b)&&(_0x175d80['return']=!0x0,_0x175d80['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2b131e=>{_0x2b131e['on']('attribute:vid',(_0x2a2f1a,_0x1ea8a1,_0x5e63f6)=>{if('\x20'!=_0x1ea8a1['item']['data']||_0x1ea8a1['item']['parent']['maxOffset']>0x1)return;if(!_0x5e63f6['consumable']['consume'](_0x1ea8a1['item'],_0x2a2f1a['name']))return;const _0x1ffa20=_0x5e63f6['writer'],_0x5c32a5=_0x5e63f6['mapper']['toViewRange'](_0x1ea8a1['range']);_0x1ffa20['wrap'](_0x5c32a5,_0x1ffa20['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5ecc55){const _0x4c41d0=_0x5ecc55['plugins']['get']('RevisionViewer');return(_0x38dcd5,_0x12ada7,_0x436425)=>{const _0x351698=_0x12ada7['markerName']['split'](':')[0x1],_0x192941=_0x4c41d0['_getChangeFromId'](_0x351698);if(!_0x192941)return null;const _0x2c8d49='add'==_0x192941['type']?'split':'merge';if(!_0x436425['consumable']['test'](_0x12ada7['markerRange'],_0x38dcd5['name']))return;const _0x14cc91=_0x12ada7['markerRange']['getWalker'](),_0x5b5be0=_0x12ada7['markerRange']['start'],_0x19cce4=_0x5ecc55['model']['schema'];let _0x5742b0=null,_0x598cfb=null,_0x20ad20=!0x1,_0x4a4e17=!0x1;for(const _0x105ce7 of _0x14cc91){const _0x565b30=_0x105ce7['item'];_0x20ad20=_0x20ad20||_0x19cce4['isContent'](_0x565b30);const _0x1707ba=_0x436425['mapper']['toViewElement'](_0x565b30);if(_0x1707ba&&_0x1707ba['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x105ce7['type']&&(_0x19cce4['isBlock'](_0x565b30)&&!_0x19cce4['isLimit'](_0x565b30)&&(_0x565b30['nextSibling']||_0x5b5be0['isAtEnd']?_0x5742b0&&_0x5742b0['parent']==_0x565b30||(_0x5742b0=_0x565b30,_0x3c05e1(_0x105ce7['previousPosition']),_0x4a4e17=!0x0):_0x598cfb=_0x598cfb||_0x105ce7['previousPosition']));}function _0x3c05e1(_0x21053b){const _0x10b73d=_0x436425['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c8d49}),_0x3df2c0=_0x436425['mapper']['toViewPosition'](_0x21053b);_0x192941['data']['isSuggestion']&&_0x436425['writer']['addClass']('ck-suggestion-marker-'+_0x2c8d49+'-new',_0x10b73d),_0x4c41d0['activeChange']==_0x192941&&_0x436425['writer']['addClass']('ck-suggestion-marker--active',_0x10b73d),_0x436425['writer']['insert'](_0x3df2c0,_0x10b73d),_0x436425['mapper']['bindElementToMarker'](_0x10b73d,_0x12ada7['markerName']);}_0x20ad20||_0x4a4e17||!_0x598cfb||_0x3c05e1(_0x598cfb);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4d9679,_0x403bb1,_0x207d04)=>{const _0x2a833b=_0x207d04['mapper']['markerNameToElements'](_0x403bb1['markerName']);if(_0x2a833b){for(const _0x38b254 of _0x2a833b)(_0x38b254['hasClass']('ck-suggestion-marker-split')||_0x38b254['hasClass']('ck-suggestion-marker-merge'))&&(_0x207d04['mapper']['unbindElementFromMarkerName'](_0x38b254,_0x403bb1['markerName']),_0x207d04['writer']['remove'](_0x38b254));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2739fb,_0x2cd2d8,_0x48d8bf)=>{const _0x4ee033=_0x2cd2d8['markerName']['split'](':')[0x1],_0x400ec5=this['_getChangeFromId'](_0x4ee033);if(!_0x400ec5)return null;const _0x55f1e5='add'==_0x400ec5['type']?'split':'merge';if(_0x48d8bf['consumable']['test'](_0x2cd2d8['markerRange'],_0x2739fb['name']))for(const _0x2c8b2a of _0x2cd2d8['markerRange']['getItems']()){if(!_0x2c8b2a['is']('element','softBreak'))continue;const _0x138195=_0x48d8bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55f1e5}),_0x54ba32=_0x48d8bf['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2c8b2a));_0x400ec5['data']['isSuggestion']&&_0x48d8bf['writer']['addClass']('ck-suggestion-marker-'+_0x55f1e5+'-new',_0x138195),this['activeChange']==_0x400ec5&&_0x48d8bf['writer']['addClass']('ck-suggestion-marker--active',_0x138195),_0x48d8bf['writer']['insert'](_0x54ba32,_0x138195),_0x48d8bf['mapper']['bindElementToMarker'](_0x138195,_0x2cd2d8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3846ba=>{for(const _0x53e178 of this['editor']['model']['document']['getRootNames']()){const _0x1cdaed=this['editor']['model']['document']['getRoot'](_0x53e178),_0x4e9790=this['editor']['editing']['view']['document']['getRoot'](_0x53e178);if(_0x4e9790){const _0x18c8d2=_0x1cdaed['getAttribute']('revisionHistoryAttachChange');if(_0x3846ba['removeAttribute']('data-change-id',_0x4e9790),_0x3846ba['removeClass']('ck-revision-history-root-add',_0x4e9790),_0x3846ba['removeClass']('ck-revision-history-root-remove',_0x4e9790),_0x3846ba['removeClass']('ck-revision-history-root--active',_0x4e9790),_0x18c8d2){const _0x48abf4=this['_getChangeFromId'](_0x18c8d2);if(!_0x48abf4)return null;_0x3846ba['setAttribute']('data-change-id',_0x18c8d2,_0x4e9790),_0x3846ba['addClass']('ck-revision-history-root-'+_0x48abf4['type'],_0x4e9790),this['activeChange']==_0x48abf4&&_0x3846ba['addClass']('ck-revision-history-root--active',_0x4e9790);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1edbc1=>'revision-comment:'+_0x1edbc1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2124e5=>'revision-suggestion:'+_0x2124e5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1b17b7=>({'name':'suggestion:'+_0x1b17b7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x520c70=>{const _0x43bbfa=_0x520c70['markerName']['split'](':')[0x1];return'insertion'!=_0x43bbfa&&'deletion'!=_0x43bbfa?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x43bbfa]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x9d232,_0x31e8e2,_0x522349)=>{const _0x5a5a24=_0x522349['mapper']['markerNameToElements'](_0x31e8e2['markerName']);if(_0x5a5a24){for(const _0x167be6 of _0x5a5a24)_0x167be6['is']('uiElement')&&(_0x522349['mapper']['unbindElementFromMarkerName'](_0x167be6,_0x31e8e2['markerName']),_0x522349['writer']['remove'](_0x167be6));}},{'priority':'high'});}['_getChangeFromId'](_0x3d0099){return this['_changeIdToChange']['get'](_0x3d0099);}['_getViewForChange'](_0x1eb889){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1eb889),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1cadd0,_0x53925a,_0x207533,_0x57291a)=>{_0x57291a&&this['_balloon']['remove'](_0x57291a),_0x207533&&(this['_balloon']['add']({'view':_0x207533,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x25deb4=this['editor']['editing'],_0x52a5d5=this['_getChangeFromId'](_0x207533['changeId']);let _0x81498e;if(_0x52a5d5['data']['isOnRoot']){const _0x199885=_0x25deb4['view']['getDomRoot'](_0x52a5d5['rootName']);_0x81498e=Array['from'](_0x199885['getClientRects']());}else{const _0x51ffa6=this['editor']['model']['markers']['get']('revision:'+_0x207533['changeId']);_0x81498e=Array['from'](_0x25deb4['mapper']['markerNameToElements'](_0x51ffa6['name']))['map'](_0x40bcab=>_0x25deb4['view']['domConverter']['mapViewToDom'](_0x40bcab))['map'](_0x3ccff1=>Array['from'](_0x3ccff1['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x81498e[0x0];return _0x81498e['find'](_0x3c040d=>_0x3c040d['top']-0x3<=this['_activeViewTarget']['y']&&_0x3c040d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3c040d['left']-0x3<=this['_activeViewTarget']['x']&&_0x3c040d['right']+0x3>=this['_activeViewTarget']['x'])||_0x81498e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x541cb5,_0x3f099c,_0x5ef016,_0xb5eb30)=>{this['activeView']=_0x5ef016?this['_getViewForChange'](_0x5ef016):null,this['editor']['model']['change'](()=>{const _0x5ed1ee=this['editor']['editing'];_0xb5eb30&&(_0xb5eb30['data']['isOnRoot']?_0x5ed1ee['view']['change'](_0x595993=>{_0x595993['removeClass']('ck-revision-history-root--active',_0x5ed1ee['view']['document']['getRoot'](_0xb5eb30['rootName']));}):_0x5ed1ee['reconvertMarker']('revision:'+_0xb5eb30['id'])),_0x5ef016&&(_0x5ef016['data']['isOnRoot']?_0x5ed1ee['view']['change'](_0xd3ee19=>{_0xd3ee19['addClass']('ck-revision-history-root--active',_0x5ed1ee['view']['document']['getRoot'](_0x5ef016['rootName']));}):_0x5ed1ee['reconvertMarker']('revision:'+_0x5ef016['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x132899,_0x307048)=>{if(this['activeChange'])return;const _0x55dc61=this['_findChangeIdFromDomTarget'](_0x307048['target']),_0x59b180=this['_changeIdToChange']['get'](_0x55dc61);_0x59b180?(this['_activeViewTarget']={'x':_0x307048['domEvent']['x'],'y':_0x307048['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x59b180)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x53d742,_0x3b98f3)=>{const _0x5a0b30=this['_findChangeIdFromDomTarget'](_0x3b98f3['target']),_0x2b3b28=this['_changeIdToChange']['get'](_0x5a0b30);_0x2b3b28?(this['_activeViewTarget']={'x':_0x3b98f3['domEvent']['x'],'y':_0x3b98f3['domEvent']['y']},_0x2b3b28===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2b3b28):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2747c9){do{const _0x3fe401=_0x2747c9['getAttribute']('data-change-id');if(_0x3fe401)return _0x3fe401;_0x2747c9=_0x2747c9['parent'];}while(_0x2747c9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x394a16=>{for(const _0x17e7bb of this['editor']['model']['markers'])_0x394a16['removeMarker'](_0x17e7bb);});}}function Z(_0x67494c,_0x333b52){return(_0x13042b,_0x2a688a,_0x25afbf)=>{if(!_0x25afbf['consumable']['test'](_0x2a688a['markerRange'],_0x13042b['name']))return;const _0x292565=_0x2a688a['markerRange']['getWalker'](),_0x54a998=_0x2a688a['markerRange']['start'],_0x4b5360=_0x67494c['model']['schema'];let _0x3917d2=null,_0x549362=null,_0x3964f4=!0x1,_0x8dfc94=!0x1;for(const _0x5cba75 of _0x292565){const _0x5338bf=_0x5cba75['item'];_0x3964f4=_0x3964f4||_0x4b5360['isContent'](_0x5338bf);const _0x465a33=_0x25afbf['mapper']['toViewElement'](_0x5338bf);if(_0x465a33&&_0x465a33['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5cba75['type']&&(_0x4b5360['isBlock'](_0x5338bf)&&!_0x4b5360['isLimit'](_0x5338bf)&&(_0x5338bf['nextSibling']||_0x54a998['isAtEnd']?_0x3917d2&&_0x3917d2['parent']==_0x5338bf||(_0x3917d2=_0x5338bf,_0x3f5c43(_0x5cba75['previousPosition']),_0x8dfc94=!0x0):_0x549362=_0x549362||_0x5cba75['previousPosition']));}function _0x3f5c43(_0x9a341a){const _0x136308=_0x25afbf['mapper']['toViewPosition'](_0x9a341a),_0x4054b0=_0x25afbf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x333b52});_0x25afbf['writer']['insert'](_0x136308,_0x4054b0),_0x25afbf['mapper']['bindElementToMarker'](_0x4054b0,_0x2a688a['markerName']);}_0x3964f4||_0x8dfc94||!_0x549362||_0x3f5c43(_0x549362);};}class _t extends _0x3b6fea{constructor(_0x12ee48){super(_0x12ee48);const _0x4be823=_0x12ee48['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4be823,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4be823,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2db11d=this['editor'],_0x562692=_0x2db11d['plugins']['get'](d),_0x6f5f44=_0x562692['isReady']?_0x562692['diff']['newRevisionId']:null;_0x2db11d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x6f5f44);}['refresh'](){const {isReady:_0xb9db7,isEnabled:_0x121c60,repository:_0x5038f0,diff:_0x4f5830}=this['editor']['plugins']['get'](d),_0x30d43a=_0x4f5830&&_0x5038f0['getLaterVisibleRevision'](_0x4f5830['newRevisionId']);this['isEnabled']=_0xb9db7&&_0x121c60&&Boolean(_0x30d43a);}}class yt extends _0x3b6fea{['_step'];constructor(_0x320646,{direction:_0x34b870}){super(_0x320646);const _0x213129=_0x320646['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x34b870?0x1:-0x1,this['listenTo'](_0x213129,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x213129,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x213129,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x117eb1=this['editor'],_0x41d193=_0x117eb1['plugins']['get'](d),{isNavigationMode:_0x52394a,currentChangeNumber:_0x29f5a9}=_0x41d193;let _0x16251f;if(_0x41d193['activeChange']=_0x52394a?_0x41d193['diff']['changes']['get'](_0x29f5a9+this['_step']):_0x41d193['diff']['changes']['first'],_0x41d193['activeChange']['data']['isOnRoot'])_0x16251f=_0x117eb1['editing']['view']['getDomRoot'](_0x41d193['activeChange']['rootName']);else{const _0x2e644d=_0x117eb1['model']['markers']['get']('revision:'+_0x41d193['activeChange']['id']);_0x16251f=_0x8839f0(_0x117eb1['editing'],_0x2e644d);}_0x39bc6f({'target':_0x16251f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x472eb8,currentChangeNumber:_0x3599ff,numberOfChanges:_0x356460,isReady:_0xab0c0b,isEnabled:_0x26f8b7}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x26f8b7&&_0xab0c0b&&_0x356460)&&(!_0x472eb8||(0x1===this['_step']?_0x3599ff<_0x356460-0x1:_0x3599ff>0x0));}}class _i extends _0x2cd61f{constructor(_0x3ad940){super(_0x3ad940);const _0x68952a=this['bindTemplate'],_0x371e88=new _0x8c758d(_0x3ad940),_0x3f0215=new _0x8c758d(_0x3ad940);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',(_0x4014ef,_0x10622c)=>_0x4014ef&&_0x10622c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4aa7e2,_0x40c8f8,_0x22ae64,_0x1408d6)=>{if(!_0x4aa7e2)return m(_0x3ad940,'Loading...');if(!_0x22ae64)return m(_0x3ad940,'No\x20changes');const _0x4b2802=m(_0x3ad940,'NUMBER_OF_CHANGES',_0x22ae64);return _0x1408d6?m(_0x3ad940,'X_OF_Y_CHANGES',[_0x40c8f8+0x1,_0x22ae64]):_0x4b2802;}),_0x371e88['set']({'label':m(_0x3ad940,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x26c743}),_0x3f0215['set']({'label':m(_0x3ad940,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x41cacb}),_0x371e88['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3f0215['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x371e88['on']('execute',()=>this['fire']('execute','backward')),_0x3f0215['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',_0x68952a['if']('_isStatusLabelVisible','ck-hidden',_0x169ff7=>!_0x169ff7)]},'children':[{'text':_0x68952a['to']('isNavigationMode',_0x1a3a98=>_0x1a3a98?m(_0x3ad940,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3ad940,'Total')+':\x20')}]},{'text':_0x68952a['to']('_statusText')}]},new _0x439d4c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x371e88,_0x3f0215]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3bbe91{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x353938=this['editor']['editing']['view'];_0x353938['change'](_0x44f3dc=>{for(const _0x4107a3 of _0x353938['document']['roots'])_0x44f3dc['addClass'](ce,_0x4107a3);});}['hide'](){const _0x2edfc3=this['editor']['editing']['view'];_0x2edfc3['change'](_0x4ac6e7=>{for(const _0x32486c of _0x2edfc3['document']['roots'])_0x4ac6e7['removeClass'](ce,_0x32486c);});}}class w extends _0x3bbe91{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x2854b0=this['editor'],_0x4f8728=_0x2854b0['plugins']['get'](d),_0x1be7e7=_0x2854b0['plugins']['get'](le);_0x2854b0['ui']['componentFactory']['add']('exitToEditing',_0x3553fa=>{const _0x20ce99=new _0x8c758d(_0x3553fa);return _0x20ce99['set']({'label':m(_0x3553fa,'Back\x20to\x20editing'),'icon':_0x46436a,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x20ce99,'execute',()=>{_0x2854b0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x20ce99;}),_0x2854b0['ui']['componentFactory']['add']('restoreRevision',_0x39522a=>{const _0x9830d2=new _0x8c758d(_0x39522a);return _0x9830d2['set']({'label':m(_0x39522a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x9830d2['bind']('isEnabled')['to'](_0x2854b0['commands']['get']('restoreRevision')),this['listenTo'](_0x9830d2,'execute',()=>_0x2854b0['execute']('restoreRevision')),_0x9830d2;}),_0x2854b0['ui']['componentFactory']['add']('changesNavigation',_0x101f34=>{const _0x52d591=new _i(_0x101f34),_0x537cfb=_0x2854b0['commands']['get']('showPreviousChange'),_0x5b71eb=_0x2854b0['commands']['get']('showNextChange');return _0x52d591['bind']('isBackwardNavigationEnabled')['to'](_0x537cfb,'isEnabled'),_0x52d591['bind']('isForwardNavigationEnabled')['to'](_0x5b71eb,'isEnabled'),_0x52d591['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4f8728),this['listenTo'](_0x52d591,'execute',(_0x2d2081,_0x2c4900)=>{_0x2854b0['execute']('forward'===_0x2c4900?'showNextChange':'showPreviousChange');}),_0x52d591;}),_0x1be7e7['show'](),_0x4f8728['on']('change:isReady',(_0x3add6b,_0x2b9c54,_0x3ff63e)=>{_0x3ff63e?_0x1be7e7['hide']():_0x1be7e7['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x57c466,_0x26cde6){super(_0x57c466,_0x26cde6);const _0x334efa=this['bindTemplate'];this['set']({'label':m(_0x57c466,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x57c466,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x334efa['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x29f633=this['fieldView']['element'];this['_tooltipString']=_0x29f633['scrollWidth']>_0x29f633['clientWidth']&&_0x29f633['value']||'';}}class oi extends _0x2cd61f{constructor(_0x86ccbb,_0x45e13f,_0x366e97){super(_0x86ccbb);const _0x569869=new _0x2fe8ef();_0x569869['set']({'content':_0x562d1c,'viewBox':'0\x200\x2011\x2010'});const _0x169d65=['ck','ck-revision-history-sidebar__revision-author'];_0x366e97&&_0x169d65['push']('ck-revision-history-sidebar__revision-author_creator');const _0xa3d75d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x86ccbb,_0x366e97?'Revision\x20creator':'Revision\x20author')},'children':[_0x569869,_0x45e13f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x169d65},'children':_0xa3d75d});}}function ni(_0x827084,_0x44a3ca){const _0x32097a=_0x827084['bindTemplate'],_0x4170c4=_0x827084['locale'],_0x5b86ef=_0x2ac711(_0x4170c4);_0x5b86ef['panelPosition']='sw';const _0x183a8b=function(_0x5011a2,_0x18921b){const _0x157567=function(_0x1f0646,_0x3a8b46){const _0x2ff45d=_0x1f0646['locale'],_0x2e01b4={'Compare\x20against\x20selected':m(_0x2ff45d,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2ff45d,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2ff45d,'Restore\x20this\x20revision')};return _0x3a8b46['map'](_0x28185f=>{const _0x1bbfa2=_0x2e01b4[_0x28185f['name']];return _0x1bbfa2&&_0x1bbfa2!==_0x28185f['name']&&(_0x28185f['name']=_0x1bbfa2),_0x28185f;});}(_0x5011a2,_0x18921b),_0x2c5fbf=new _0x53f381();for(const _0x2ff75b of _0x157567){const _0xb13e8c={'type':'button','model':new to({'label':_0x2ff75b['name'],'class':_0x2ff75b['class'],'withText':!0x0,'role':'menuitem','_action':_0x2ff75b['action']})};_0xb13e8c['model']['bind']('isEnabled')['to'](_0x5011a2,'isActionsDropdownOpen',_0x337e12=>'function'!=typeof _0x2ff75b['isEnabled']||(!_0x337e12||_0x2ff75b['isEnabled'](_0x5011a2))),_0x2c5fbf['add'](_0xb13e8c);}return _0x2c5fbf;}(_0x827084,_0x44a3ca);return _0x827084['bind']('isActionsDropdownOpen')['to'](_0x5b86ef,'isOpen'),_0x5b86ef['buttonView']['set']({'label':m(_0x4170c4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x32589a}),_0x5b86ef['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x32097a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x32097a['to'](_0x19c711=>_0x19c711['stopPropagation']())}}),_0x5b86ef['on']('execute',_0x3540f7=>{_0x827084['isReady']&&'function'==typeof _0x3540f7['source']['_action']&&_0x3540f7['source']['_action'](_0x827084);}),_0x322249(_0x5b86ef,_0x183a8b,{'role':'menu'}),_0x5b86ef['listenTo'](_0x827084,'change:isActionsDropdownOpen',(_0x36bdf1,_0x2eb257,_0x432dd7)=>{if(_0x432dd7)for(const _0x7ecca1 of _0x5b86ef['listView']['items']){const _0x44f7d1=_0x7ecca1['children']['first'],_0xfa6be=_0x44a3ca['find'](_0x2d741d=>_0x2d741d['action']===_0x44f7d1['_action'])['isVisible'];_0x7ecca1['isVisible']=void 0x0===_0xfa6be||_0xfa6be(_0x827084);}}),_0x5b86ef;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3a0215(_0x2cd61f){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4d9f0e,_0x3ea859,_0x309b2b,_0xdcbcd8){super(_0x4d9f0e);const _0x5b925f=this['bindTemplate'],_0x25a915=function(_0x304af3,_0x4471ff){const _0x33ade3=Array['from'](_0x4471ff['authors'])['filter'](_0x114a98=>_0x114a98!=_0x4471ff['creator']);return _0x4471ff['creator']&&_0x33ade3['unshift'](_0x4471ff['creator']),_0x33ade3['map'](_0x5b98a8=>new oi(_0x304af3,_0x5b98a8,_0x5b98a8==_0x4471ff['creator']));}(_0x4d9f0e,_0x3ea859);this['id']=_0x3ea859['id'],this['_revision']=_0x3ea859,this['_requireRevisionName']=_0xdcbcd8,this['bind']('name','createdAt')['to'](_0x3ea859),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4403f6=>{return _0x4a1952=_0x4d9f0e['uiLanguage'],(_0x248f05=_0x4403f6)['toLocaleDateString'](_0x4a1952,{'month':'long','day':'numeric'})+',\x20'+_0x248f05['toLocaleTimeString'](_0x4a1952,{'hour':'numeric','minute':'numeric'});var _0x4a1952,_0x248f05;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x4d9f0e,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5bceb6=>_0x5bceb6||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5eeae4,_0x333039)=>_0x5eeae4&&_0x333039),this['revisionActionsView']=_0x309b2b&&_0x309b2b['length']?ni(this,_0x309b2b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5b925f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5b925f['if']('isEnabled','ck-disabled',_0x2c0a6f=>!_0x2c0a6f),_0x5b925f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5b925f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5b925f['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':_0x5b925f['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':_0x25a915}]},this['revisionActionsView']],'on':{'click':_0x5b925f['to'](_0x11e603=>{_0x11e603['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4a7af4=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4a7af4,'change',()=>{this['_requireRevisionName']&&!_0x4a7af4['value']||this['fire']('setName',{'id':this['id'],'name':_0x4a7af4['value']}),_0x4a7af4['value']||(_0x4a7af4['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(_0xa096dc,_0x11b797){const _0x33c505=_0x39a6f7['fromJSDate'](_0xa096dc)['setLocale'](_0x11b797),_0x3367c2=_0x39a6f7['local'](),_0x4ad503=_0x3367c2['minus']({'days':0x1})['startOf']('day');let _0x3118e9,_0x52747b;return _0x33c505['hasSame'](_0x3367c2,'day')?(_0x3118e9=_0x33c505['startOf']('day')['toJSDate'](),_0x52747b=_0x33c505['toRelativeCalendar']()):_0x33c505['hasSame'](_0x4ad503,'day')?(_0x3118e9=_0x4ad503['toJSDate'](),_0x52747b=_0x33c505['toRelativeCalendar']()):_0x33c505['hasSame'](_0x3367c2,'week')?(_0x3118e9=_0x33c505['startOf']('week')['toJSDate'](),_0x52747b=_0x33c505['weekdayLong']||''):_0x33c505['hasSame'](_0x3367c2,'year')?(_0x3118e9=_0x33c505['startOf']('month')['toJSDate'](),_0x52747b=_0x33c505['monthLong']||''):(_0x3118e9=_0x33c505['startOf']('year')['toJSDate'](),_0x52747b=String(_0x33c505['year'])),{'startDate':_0x3118e9,'localizedPeriodName':_0x52747b};}class mi extends _0x2cd61f{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4656c8,_0x1b78ff,_0x4cc5ea,_0x7971ae){super(_0x4656c8);const _0x2e9632=vi(_0x1b78ff,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1b78ff,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4cc5ea,this['_requireRevisionName']=_0x7971ae,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':_0x2e9632}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5dd4fb){const _0x3fcb46=new ai(this['locale'],_0x5dd4fb,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3fcb46);}['removeRevision'](_0x1ed963){const _0x592ffe=this['revisionViews']['find'](_0x581a9e=>_0x581a9e['id']===_0x1ed963['id']);this['revisionViews']['remove'](_0x592ffe);}}class as extends _0x2cd61f{constructor(_0x1a0651){super(_0x1a0651);const _0x169fb4=new _0x2fe8ef();_0x169fb4['content']=_0x31b088,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x169fb4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1a0651,'Revision\x20history')]}]});}}class di extends _0x2cd61f{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x261b0d,_0x40792a,_0x42d124,_0x2afffd){super(_0x261b0d);const _0x389ae0=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x40792a,this['_revisionActions']=_0x42d124,this['_requireRevisionName']=_0x2afffd,this['on']('select',(_0xeddb44,_0x52f340)=>{this['fire']('revisionSelected',_0x52f340);}),this['on']('setName',(_0x4d89c8,_0xc54af6)=>{this['fire']('revisionSetName',_0xc54af6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x261b0d),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x389ae0['if']('isEnabled','ck-disabled',_0x464438=>!_0x464438)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x17fc86 of this['_revisions'])this['_addRevision'](_0x17fc86);this['_revisions']['on']('add',(_0x414306,_0x28d2b0)=>{this['_addRevision'](_0x28d2b0);}),this['_revisions']['on']('remove',(_0x46ccc3,_0x301eb2)=>{this['_removeRevision'](_0x301eb2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x422db6=>_0x422db6['revisionViews']['map'](_0x499b64=>_0x499b64))['flat']();}['selectRevision'](_0x5f2700){for(const _0x2e6fa7 of this['revisionViews'])_0x5f2700&&_0x5f2700['id']===_0x2e6fa7['id']?_0x2e6fa7['select']():_0x2e6fa7['deselect']();}['highlightRevisions'](_0x32344b){for(const _0x1924ae of this['revisionViews'])_0x32344b['some'](({id:_0x443a85})=>_0x443a85===_0x1924ae['id'])?_0x1924ae['highlight']():_0x1924ae['unhighlight']();}['_addRevision'](_0x71d101){const _0x38840b=vi(_0x71d101['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x155797=this['timePeriodViews']['get'](0x0);_0x155797&&_0x155797['startDate']['getTime']()===_0x38840b['getTime']()||(_0x155797=new mi(this['locale'],_0x38840b,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x155797)),_0x155797['addRevision'](_0x71d101);}['_removeRevision'](_0x871bea){const _0x4b8a9c=vi(_0x871bea['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4b8a9c)['removeRevision'](_0x871bea);}['_getTimePeriodViewByStartDate'](_0x3686d8){return this['timePeriodViews']['find'](_0x2bd93a=>_0x2bd93a['startDate']['getTime']()===_0x3686d8['getTime']());}}class g extends _0x3bbe91{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5e71db,_0x4d8a66){super(_0x4d8a66),this['sourceElement']=_0x5e71db,this['model']['document']['createRoot']();const _0x3330d9=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3330d9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x44d1e4,_0x40fef7){const _0xb08b51=new this(_0x44d1e4,_0x40fef7);return await _0xb08b51['initPlugins'](),await _0xb08b51['ui']['init'](_0x44d1e4),await _0xb08b51['data']['init'](_0xb08b51['config']['get']('initialData')||''),_0xb08b51['fire']('ready'),_0xb08b51;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x34aee2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f9609){function _0x3bf98a(_0x4aaa5e){return _0x4aaa5e['map'](_0x5e4ca5=>String['fromCharCode'](_0x5e4ca5))['join']('');}super(_0x1f9609),this['result']='end',_0x1f9609[_0x3bf98a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bf98a([0x76,0x69,0x65,0x77])][_0x3bf98a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bf98a([0x61,0x75,0x74,0x6f]),_0x1f9609[_0x3bf98a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3bf98a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bf98a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3bf98a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3bf98a([0x6f,0x6b])});}}class k extends _0x34aee2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4f1214){if(super(_0x4f1214),!this['editor']['config']['get']('revisionHistory'))throw new _0x290f45('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3afece=>this['_showRevisionViewer']({..._0x3afece,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5133fc=>this['_closeRevisionViewer'](_0x5133fc)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x58be19=>this['_restoreRevision'](_0x58be19)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x10e68d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x10e68d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1ba14c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1ba14c);}['getRevision'](_0x5e1f90){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5e1f90);}['getRevisions'](_0x436ce7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x436ce7||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x10f455=this['editor'],_0x16774a=_0x5f41c0(_0x10f455,p),_0x30d3f3=_0x10f455['plugins']['get']('RevisionTracker'),_0x2ab77b=_0x10f455['plugins']['get']('Users')['users'];return _0x16774a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x16774a['lazyRoots'],(_0x16774a['plugins']['push'](bt,d,w,class extends _0x34aee2{static get['requires'](){return[d,'Users'];}['init'](){const _0x366be9=this['editor']['plugins']['get']('Users');for(const _0x44e7df of _0x2ab77b)_0x44e7df['isAnonymous']||_0x366be9['getUser'](_0x44e7df['id'])||_0x366be9['addUser'](_0x44e7df);const _0xe40917=_0x30d3f3['repository']['getRevisions']();let _0x246569=null;const _0x477c39=this['editor']['plugins']['get']('RevisionViewer');_0x477c39['adapter']=_0x30d3f3['adapter'],_0x477c39['bind']('isEnabled')['to'](_0x30d3f3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x10f455,'isReadOnly',_0x3fd755=>!_0x3fd755);for(const _0x5528fc of _0xe40917){const _0x18eb8f=null===_0x5528fc['creator'];if(_0x18eb8f&&_0x5528fc['toVersion']===_0x5528fc['fromVersion'])continue;const _0x522063=_0x5528fc['toJSON']();_0x477c39['addRevisionData'](_0x522063,(_0x20a39f,_0x158d35,_0x1502ac)=>{if(_0x18eb8f){if(_0x246569)_0x246569['_update'](_0x20a39f,_0x158d35);else{if(!_0x158d35){const _0x44cb6d=_0x1502ac['toJSON']();_0x44cb6d['id']=_0x59cdb0(),_0x30d3f3['saveRevision'](_0x44cb6d,_0x1502ac['toVersion'])['then'](_0x367cde=>{_0x246569=_0x367cde;});}}}else _0x5528fc['_update'](_0x20a39f,_0x158d35);});}}},g),_0x16774a);}['_enhanceShowRevisionViewerCallback'](){const _0xfa039c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x481ceb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4e1049=this['editor']['plugins']['get']('Autosave');await _0x4e1049['save']();}else await _0x481ceb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5271d2=this['editor']['plugins']['get']('Dialog');_0x5271d2['isOpen']&&_0x5271d2['hide']();}const _0xccd265=this['_getRevisionViewerEditorConfig']();return _0xfa039c(_0xccd265)['then'](_0x2f2281=>{return(this['_viewerEditor']=_0x2f2281,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2f2281;})['catch'](_0x5e5690=>(console['error'](_0x5e5690),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x7be97a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x7be97a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5c073e=this['editor']['plugins']['get']('Annotations');_0x5c073e['refreshVisibility'](),_0x5c073e['refreshPositioning']();}})));}['_showRevisionViewer'](_0x150a42){const _0x1df620=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1de657=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x37e4e7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x37e4e7,_0x150a42)['then'](_0x2472cb=>(_0x1de657['style']['display']='block',_0x1df620['style']['display']='none',_0x2472cb));}['_closeRevisionViewer'](_0x3b4884){const _0x51bcf1=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x51bcf1['style']['display']='',_0x3b4884['destroy']();}async['_restoreRevision'](_0x3919ce){const _0x179716=this['editor'],_0x393ae5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1b32fa=_0x179716['plugins']['get']('RevisionTracker'),_0x2b7e32=_0x393ae5['repository']['getRevision'](_0x3919ce);let _0x266cf4,_0x535aa1,_0x30152a;try{_0x266cf4=await _0x393ae5['getRevisionData'](_0x2b7e32),_0x535aa1=await _0x393ae5['getRevisionRootsAttributes'](_0x2b7e32);}catch(_0x22431f){return void console['error'](_0x22431f);}_0x179716['model']['change'](_0xde574a=>{for(const _0x12609c of Array['from'](_0x179716['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xde574a['removeMarker'](_0x12609c);}),_0x393ae5['isReady']=!0x1,_0x179716['model']['enqueueChange'](_0x30ec91=>{_0x30ec91['setSelection'](null),_0x30ec91['removeSelectionAttribute'](_0x179716['model']['document']['selection']['getAttributeKeys']());const _0x20ac12=Object['keys'](_0x266cf4);for(const _0x561de4 of _0x179716['model']['document']['roots'])'$graveyard'!=_0x561de4['rootName']&&_0x561de4['isAttached']()&&!_0x20ac12['includes'](_0x561de4['rootName'])&&_0x30ec91['detachRoot'](_0x561de4);for(const _0x545eb4 of _0x20ac12){let _0x4b172a=_0x179716['model']['document']['getRoot'](_0x545eb4);_0x4b172a&&_0x4b172a['isAttached']()||(_0x4b172a=_0x30ec91['addRoot'](_0x545eb4));const _0xa594b9=_0x535aa1[_0x545eb4],_0x28a64e=Object['keys'](_0xa594b9),_0x534afc=_0x266cf4[_0x545eb4];for(const _0x23fbf6 of _0x4b172a['getAttributeKeys']())_0x28a64e['includes'](_0x23fbf6)||_0x30ec91['removeAttribute'](_0x23fbf6,_0x4b172a);for(const _0xad1e0c of _0x28a64e)_0x30ec91['setAttribute'](_0xad1e0c,_0x535aa1[_0x545eb4][_0xad1e0c],_0x4b172a);_0x30ec91['remove'](_0x30ec91['createRangeIn'](_0x4b172a)),_0x30ec91['insert'](_0x179716['data']['parse'](_0x534afc,_0x4b172a),_0x4b172a,0x0);}});const _0x2765c8=m(_0x179716['locale'],'Restored');if(_0x2b7e32['name'])_0x30152a=-0x1==_0x2b7e32['name']['indexOf'](_0x2765c8)?_0x2765c8+':\x20'+_0x2b7e32['name']:_0x2b7e32['name'];else _0x30152a=_0x2765c8+':\x20'+(_0x2b7e32['createdAt']['toLocaleDateString'](_0x179716['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2b7e32['createdAt']['toLocaleTimeString'](_0x179716['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1b32fa['saveRevision']({'name':_0x30152a}),_0x393ae5['isReady']=!0x0,_0x179716['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x64a73e){super(_0x64a73e),this['_revisionViewer']=_0x64a73e['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x31de77=this['_revisionsRepository']['_revisions'],_0x18743c=this['_createRevisionActions'](),_0x4c1cd0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x31de77,_0x18743c,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',(_0x3d861e,_0x466efd)=>{_0x466efd['revisionViews']['on']('add',(_0x49ade9,_0x52d77a)=>{_0x52d77a['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)),_0x4c1cd0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x377b67=this['_revisionsRepository']['getRevision'](0x0);if(_0x377b67){const _0x13cd4c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x377b67['id']);this['_revisionViewer']['compare'](_0x377b67,_0x13cd4c);}}['_handleRevisionSelected'](_0x2d94bc,_0x233e1d){const _0x2a57d3=this['_revisionsRepository']['getRevision'](_0x233e1d['id']),_0x352903=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2a57d3['id']);this['_revisionViewer']['compare'](_0x2a57d3,_0x352903);}['_handleRevisionSetName'](_0x2c04c8,_0x13cd24){this['_revisionsRepository']['getRevision'](_0x13cd24['id'])['setName'](_0x13cd24['name']);}['_handleDiffChange'](_0x56ebe2,_0x2df8d5,_0x4b608e){const _0x4b01fd=this['_revisionsRepository']['getRevisionsInDiff'](_0x4b608e);_0x4b01fd['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4b01fd),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4b01fd[0x0]));}['_createRevisionActions'](){const _0x1122ff=this['editor'],_0x16058d=g['availableRevisionActions'],_0x5990b4=_0x1122ff['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5990b4['length'])return _0x5990b4['map'](_0x44b906=>{const _0x574179='string'==typeof _0x44b906?Object['assign']({},_0x16058d[_0x44b906]):_0x44b906;return _0x574179['action']=_0x574179['action']['bind'](this,_0x1122ff),_0x574179['isVisible']&&(_0x574179['isVisible']=_0x574179['isVisible']['bind'](this,_0x1122ff)),_0x574179;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1f3f85},_0x15922b)=>{const _0x495ce4=_0x1f3f85['get'](d),_0x105f5b=_0x495ce4['repository'];let _0x193b36=_0x495ce4['diff']['newRevisionId'],_0x5a472a=_0x15922b['id'];_0x105f5b['getIndex'](_0x193b36)>_0x105f5b['getIndex'](_0x5a472a)&&([_0x193b36,_0x5a472a]=[_0x5a472a,_0x193b36]),_0x495ce4['compare'](_0x193b36,_0x5a472a);},'isVisible':({plugins:_0x2dc1c6},_0x1ac108)=>{const _0x3cf2ad=_0x2dc1c6['get'](d);return!(_0x3cf2ad['repository']['getRevisionsInDiff'](_0x3cf2ad['diff'])['length']>0x2)&&!_0x1ac108['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x40b4de,{id:_0x57e324})=>{_0x40b4de['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x57e324);},'isVisible':({plugins:_0x56efe2},_0x4df499)=>!!_0x56efe2['get'](d)['repository']['getLaterVisibleRevision'](_0x4df499['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x546239},{id:_0x310e7b,revisionNameView:_0x1e953a})=>{const _0x4a887e=_0x546239['get'](d),_0x5af83d=_0x4a887e['repository']['getEarlierVisibleRevision'](_0x310e7b);_0x4a887e['compare'](_0x310e7b,_0x5af83d),_0x1e953a['focus'](),_0x1e953a['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x13b3a8,_0x4cda15){super(_0x13b3a8),this['_view']=_0x4cda15,this['_toolbarConfig']=ot(_0x13b3a8['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2123d5){const _0x5e9949=this['editor'],_0x48297e=this['view'],_0xba980c=_0x5e9949['editing']['view'],_0x321acd=_0x48297e['editable'],_0x4edfbb=_0xba980c['document']['getRoot']();_0x321acd['name']=_0x4edfbb['rootName'],_0x48297e['render']();const _0x385ca3=_0x321acd['element'];this['setEditableElement'](_0x321acd['name'],_0x385ca3),_0x48297e['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xba980c['attachDomRoot'](_0x385ca3),this['_elementReplacer']['replace'](_0x2123d5,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x444cfc=this['view'],_0x700b36=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x700b36['detachDomRoot'](_0x444cfc['editable']['name']),_0x444cfc['destroy']();}['_initToolbar'](){const _0x31020e=this['view'];_0x31020e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x31020e['stickyPanel']['limiterElement']=_0x31020e['element'],_0x31020e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x32c125})=>_0x32c125),_0x31020e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x31020e['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x902c41,_0x32f0f5,_0x3305d6={}){super(_0x902c41),this['stickyPanel']=new lt(_0x902c41),this['toolbar']=new nt(_0x902c41,{'shouldGroupWhenFull':_0x3305d6['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x902c41,_0x32f0f5);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x22f11d,_0x26063e){super(_0x26063e),this['sourceElement']=_0x22f11d,this['model']['document']['createRoot']();const _0x5df927=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x5df927);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2a7fc3,_0x3ed720){const _0x38a1d2=new this(_0x2a7fc3,_0x3ed720);return await _0x38a1d2['initPlugins'](),await _0x38a1d2['ui']['init'](_0x2a7fc3),await _0x38a1d2['data']['init'](_0x38a1d2['config']['get']('initialData')||''),_0x38a1d2['fire']('ready'),_0x38a1d2;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3bbe91{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x520445){function _0x4df7fd(_0x56b915){return _0x56b915['map'](_0x566370=>String['fromCharCode'](_0x566370))['join']('');}super(_0x520445),this['result']='end',_0x520445[_0x4df7fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4df7fd([0x76,0x69,0x65,0x77])][_0x4df7fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4df7fd([0x61,0x75,0x74,0x6f]),_0x520445[_0x4df7fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4df7fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4df7fd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4df7fd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4df7fd([0x6f,0x6b])});}}class k extends _0x3bbe91{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1bab4a){if(super(_0x1bab4a),!this['editor']['config']['get']('revisionHistory'))throw new _0x26d986('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x475f72=>this['_showRevisionViewer']({..._0x475f72,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xec41a1=>this['_closeRevisionViewer'](_0xec41a1)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xc490a9=>this['_restoreRevision'](_0xc490a9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x563115){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x563115;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3a2303){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3a2303);}['getRevision'](_0x8db054){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x8db054);}['getRevisions'](_0x436768){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x436768||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x54dfb8=this['editor'],_0x5a1ee1=_0x4d3821(_0x54dfb8,p),_0x4b4d1a=_0x54dfb8['plugins']['get']('RevisionTracker'),_0x3262b1=_0x54dfb8['plugins']['get']('Users')['users'];return _0x5a1ee1['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5a1ee1['lazyRoots'],(_0x5a1ee1['plugins']['push'](Rt,d,w,class extends _0x3bbe91{static get['requires'](){return[d,'Users'];}['init'](){const _0x542395=this['editor']['plugins']['get']('Users');for(const _0x2dd213 of _0x3262b1)_0x2dd213['isAnonymous']||_0x542395['getUser'](_0x2dd213['id'])||_0x542395['addUser'](_0x2dd213);const _0x41205e=_0x4b4d1a['repository']['getRevisions']();let _0x494883=null;const _0x2fbc86=this['editor']['plugins']['get']('RevisionViewer');_0x2fbc86['adapter']=_0x4b4d1a['adapter'],_0x2fbc86['bind']('isEnabled')['to'](_0x4b4d1a),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x54dfb8,'isReadOnly',_0x255953=>!_0x255953);for(const _0x345c87 of _0x41205e){const _0x520ad9=null===_0x345c87['creator'];if(_0x520ad9&&_0x345c87['toVersion']===_0x345c87['fromVersion'])continue;const _0x56600f=_0x345c87['toJSON']();_0x2fbc86['addRevisionData'](_0x56600f,(_0x569f55,_0xc165b,_0x1863e7)=>{if(_0x520ad9){if(_0x494883)_0x494883['_update'](_0x569f55,_0xc165b);else{if(!_0xc165b){const _0x21db08=_0x1863e7['toJSON']();_0x21db08['id']=_0x3e3348(),_0x4b4d1a['saveRevision'](_0x21db08,_0x1863e7['toVersion'])['then'](_0x5c9c27=>{_0x494883=_0x5c9c27;});}}}else _0x345c87['_update'](_0x569f55,_0xc165b);});}}},g),_0x5a1ee1);}['_enhanceShowRevisionViewerCallback'](){const _0x858f30=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x42b8e5=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a44c8=this['editor']['plugins']['get']('Autosave');await _0x4a44c8['save']();}else await _0x42b8e5['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3d249c=this['editor']['plugins']['get']('Dialog');_0x3d249c['isOpen']&&_0x3d249c['hide']();}const _0x1905c2=this['_getRevisionViewerEditorConfig']();return _0x858f30(_0x1905c2)['then'](_0x17fbe4=>{return(this['_viewerEditor']=_0x17fbe4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x17fbe4;})['catch'](_0x152d88=>(console['error'](_0x152d88),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x37d585=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x37d585(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x53d27f=this['editor']['plugins']['get']('Annotations');_0x53d27f['refreshVisibility'](),_0x53d27f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5a9b54){const _0x1b597a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xa6396c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x55cc0a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x55cc0a,_0x5a9b54)['then'](_0x161b2b=>(_0xa6396c['style']['display']='block',_0x1b597a['style']['display']='none',_0x161b2b));}['_closeRevisionViewer'](_0x2292d6){const _0x2038b9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2038b9['style']['display']='',_0x2292d6['destroy']();}async['_restoreRevision'](_0x2f8556){const _0x56e0c1=this['editor'],_0x38e9ea=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x28bc1d=_0x56e0c1['plugins']['get']('RevisionTracker'),_0x2afdc1=_0x38e9ea['repository']['getRevision'](_0x2f8556);let _0x133e45,_0x9834f4,_0x339980;try{_0x133e45=await _0x38e9ea['getRevisionData'](_0x2afdc1),_0x9834f4=await _0x38e9ea['getRevisionRootsAttributes'](_0x2afdc1);}catch(_0x1b6ca0){return void console['error'](_0x1b6ca0);}_0x56e0c1['model']['change'](_0xa9c4d2=>{for(const _0x5b49d5 of Array['from'](_0x56e0c1['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xa9c4d2['removeMarker'](_0x5b49d5);}),_0x38e9ea['isReady']=!0x1,_0x56e0c1['model']['enqueueChange'](_0x1be0c7=>{_0x1be0c7['setSelection'](null),_0x1be0c7['removeSelectionAttribute'](_0x56e0c1['model']['document']['selection']['getAttributeKeys']());const _0x381cc3=Object['keys'](_0x133e45);for(const _0x4ff877 of _0x56e0c1['model']['document']['roots'])'$graveyard'!=_0x4ff877['rootName']&&_0x4ff877['isAttached']()&&!_0x381cc3['includes'](_0x4ff877['rootName'])&&_0x1be0c7['detachRoot'](_0x4ff877);for(const _0x4411f4 of _0x381cc3){let _0x142caa=_0x56e0c1['model']['document']['getRoot'](_0x4411f4);_0x142caa&&_0x142caa['isAttached']()||(_0x142caa=_0x1be0c7['addRoot'](_0x4411f4));const _0x209b1c=_0x9834f4[_0x4411f4],_0x54fe00=Object['keys'](_0x209b1c),_0x4ef5fa=_0x133e45[_0x4411f4];for(const _0x57b5e1 of _0x142caa['getAttributeKeys']())_0x54fe00['includes'](_0x57b5e1)||_0x1be0c7['removeAttribute'](_0x57b5e1,_0x142caa);for(const _0x2a2e22 of _0x54fe00)_0x1be0c7['setAttribute'](_0x2a2e22,_0x9834f4[_0x4411f4][_0x2a2e22],_0x142caa);_0x1be0c7['remove'](_0x1be0c7['createRangeIn'](_0x142caa)),_0x1be0c7['insert'](_0x56e0c1['data']['parse'](_0x4ef5fa,_0x142caa),_0x142caa,0x0);}});const _0x8ddb4f=m(_0x56e0c1['locale'],'Restored');if(_0x2afdc1['name'])_0x339980=-0x1==_0x2afdc1['name']['indexOf'](_0x8ddb4f)?_0x8ddb4f+':\x20'+_0x2afdc1['name']:_0x2afdc1['name'];else _0x339980=_0x8ddb4f+':\x20'+(_0x2afdc1['createdAt']['toLocaleDateString'](_0x56e0c1['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2afdc1['createdAt']['toLocaleTimeString'](_0x56e0c1['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x28bc1d['saveRevision']({'name':_0x339980}),_0x38e9ea['isReady']=!0x0,_0x56e0c1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|