@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250311.0 → 0.0.0-nightly-20250313.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
|
-
_0xd86b79(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1781ec){super(),this['id']=_0x1781ec['id']||_0x5b3171(),this['creator']=_0x1781ec['creator']||null,this['authors']=_0x1781ec['authors']||[],this['diffData']=_0x1781ec['diffData']||null,this['toVersion']=_0x1781ec['toVersion']||0x0,this['fromVersion']=_0x1781ec['fromVersion']||0x0,this['set']('name',_0x1781ec['name']||''),this['set']('createdAt',_0x1781ec['createdAt']||new Date()),this['set']('attributes',_0x1781ec['attributes']||{});}['setName'](_0x2e7af6){this['_update']({'name':_0x2e7af6});}['setAttribute'](_0x131980,_0x479a09){const _0x429dfa=_0x377d2c(this['attributes']);_0x560b1d(_0x429dfa,_0x131980,_0x479a09),this['_update']({'attributes':_0x429dfa});}['removeAttribute'](_0x44c4c0){const _0x3ce885=_0x377d2c(this['attributes']);_0x507038(_0x3ce885,_0x44c4c0),this['_update']({'attributes':_0x3ce885});}['_update'](_0x4500d2,_0x3e1e96=!0x1){let _0x4ff6eb=!0x1;const _0x25db6f={'id':this['id']},_0x1ee516=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x12fd30 of _0x1ee516){const _0x930dc8=_0x4500d2[_0x12fd30];void 0x0!==_0x930dc8&&_0x930dc8!==this[_0x12fd30]&&(this[_0x12fd30]=_0x930dc8,_0x25db6f[_0x12fd30]=_0x930dc8,_0x4ff6eb=!0x0);}_0x4ff6eb&&(_0x25db6f['authors']&&(_0x25db6f['authorsIds']=_0x25db6f['authors']['map'](_0x157b9a=>_0x157b9a['id']),delete _0x25db6f['authors']),this['fire']('_update',_0x25db6f,_0x3e1e96));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x59e40f=>_0x59e40f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x45244f{['_revisions'];static get['requires'](){return[_0x499f02];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4a92d4){super(_0x4a92d4),this['_revisions']=new _0x3d47b3();}['afterInit'](){!async function(_0x3aa978){const _0x5b9fc1=_0xaa6223([0x5a,0x4f,0x50,0x6c,0x42,0x77,0x44,0x68,0x47,0x61,0x69,0x46,0x6d,0x4d,0x78,0x30,0x73,0x52,0x75,0x36,0x56,0x4e,0x31,0x32,0x6b,0x65,0x57,0x64,0x66,0x72,0x76,0x6e,0x58,0x4a,0x43,0x49,0x41,0x33,0x45,0x54,0x7a,0x6f,0x37,0x51,0x35,0x67,0x79,0x63,0x53,0x70,0x34,0x71,0x48,0x6a,0x39,0x38,0x4c,0x62,0x55,0x4b,0x59,0x74]),_0x8e1f08=0xeb829,_0xef59f5=0x346e6546,_0x1cb203=0x34690496^_0xef59f5,_0x45291b=window[_0xaa6223([0x44,0x61,0x74,0x65])][_0xaa6223([0x6e,0x6f,0x77])](),_0x21d086=_0x3aa978[_0xaa6223([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x485227=new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9416=>{_0x21d086[_0xaa6223([0x6f,0x6e,0x63,0x65])](_0xaa6223([0x72,0x65,0x61,0x64,0x79]),_0x2e9416);}),_0x1325de={[_0xaa6223([0x6b,0x74,0x79])]:_0xaa6223([0x45,0x43]),[_0xaa6223([0x75,0x73,0x65])]:_0xaa6223([0x73,0x69,0x67]),[_0xaa6223([0x63,0x72,0x76])]:_0xaa6223([0x50,0x2d,0x32,0x35,0x36]),[_0xaa6223([0x78])]:_0xaa6223([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]),[_0xaa6223([0x79])]:_0xaa6223([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]),[_0xaa6223([0x61,0x6c,0x67])]:_0xaa6223([0x45,0x53,0x32,0x35,0x36])},_0x5864e6=_0x21d086[_0xaa6223([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xaa6223([0x67,0x65,0x74])](_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48a356(){let _0x16bab7,_0x2f79ef=null,_0x2909d7=null;try{if(_0x5864e6==_0xaa6223([0x47,0x50,0x4c]))return _0xaa6223([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16bab7=_0x12d15e(),!_0x16bab7)return _0xaa6223([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16bab7[_0xaa6223([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2909d7=_0x126720(_0x16bab7[_0xaa6223([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16bab7[_0xaa6223([0x6a,0x74,0x69])])),await _0x55b001()?_0x376b84()?_0x1748d3()?_0xaa6223([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4fca2e()?(_0x16bab7[_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xaa6223([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f79ef=_0xc52c2(_0xaa6223([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16bab7[_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xaa6223([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f79ef=_0xc52c2(_0xaa6223([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15a0fe()):_0xaa6223([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xaa6223([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xaa6223([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x31652b){return _0xaa6223([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1748d3(){const _0x5a1fd5=[_0xaa6223([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xaa6223([0x74,0x72,0x69,0x61,0x6c])][_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16bab7[_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45291b/0x3e8:0xe10*_0x1cb203;return _0x16bab7[_0xaa6223([0x65,0x78,0x70])]<_0x5a1fd5;}function _0x376b84(){const _0x4ca809=_0x16bab7[_0xaa6223([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4ca809)return!0x1;if(_0x4ca809[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa6223([0x2a])))return!0x0;if(_0x4ca809[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa6223([0x52,0x48])))return!0x0;if(_0x4ca809[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa6223([0x52,0x52,0x48]))){if(_0x55a92f())return!0x0;if(_0x3762d8()||_0x4e648a())return!0x0;}return!0x1;}function _0x4fca2e(){const _0x5b5f5b=_0x16bab7[_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b5f5b||0x0==_0x5b5f5b[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4544a4}=new URL(window[_0xaa6223([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b5f5b[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4544a4))return!0x0;const _0x29c6f9=_0x4544a4[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])](_0xaa6223([0x2e]));return _0x5b5f5b[_0xaa6223([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18ba3a=>_0x18ba3a[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa6223([0x2a])))[_0xaa6223([0x6d,0x61,0x70])](_0x4bab4f=>_0x4bab4f[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])](_0xaa6223([0x2e])))[_0xaa6223([0x73,0x6f,0x6d,0x65])](_0x31ad31=>_0x29c6f9[_0xaa6223([0x65,0x76,0x65,0x72,0x79])]((_0x47fa98,_0x1969a0)=>_0x31ad31[_0x1969a0]===_0x47fa98||_0x31ad31[_0x1969a0]===_0xaa6223([0x2a])));}function _0x15a0fe(){return _0x2f79ef&&_0x2909d7?new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a87cd,_0x5247df)=>{_0x2f79ef[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x2a87cd,_0x5247df),_0x2909d7[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x2efdcd=>{_0x2efdcd!=_0xaa6223([0x56,0x61,0x6c,0x69,0x64])&&_0x2a87cd(_0x2efdcd);},_0x5247df);}):_0x2f79ef||_0x2909d7||_0xaa6223([0x56,0x61,0x6c,0x69,0x64]);}}function _0x126720(_0x4a6f88,_0x5ac058){return new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17a7f4=>{if(_0x4b7aab())return _0x17a7f4(_0xaa6223([0x56,0x61,0x6c,0x69,0x64]));_0x19ddf7(),_0x21d086[_0xaa6223([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xaa6223([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10bf59=!0x1;const _0x37d090=_0x5b3171();function _0x2412e4(_0x36d6fa){return!!_0x36d6fa&&(typeof _0x36d6fa===_0xaa6223([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36d6fa===_0xaa6223([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36d6fa[_0xaa6223([0x74,0x68,0x65,0x6e])]===_0xaa6223([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36d6fa[_0xaa6223([0x63,0x61,0x74,0x63,0x68])]===_0xaa6223([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2198dc(_0x502c19){_0x3e8446(_0x502c19)[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x44ba79=>{if(!_0x44ba79||_0x44ba79[_0xaa6223([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xaa6223([0x6f,0x6b]))return _0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27ed2a(_0x3e9dd3(_0x37d090+_0x5ac058))!=_0x44ba79[_0xaa6223([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xaa6223([0x56,0x61,0x6c,0x69,0x64]);})[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x582187=>(_0x55d94e(),_0x582187),()=>{const _0x5b1ab9=_0x59c4c6();return null==_0x5b1ab9?(_0x55d94e(),_0xaa6223([0x56,0x61,0x6c,0x69,0x64])):_0xaa6223(_0x45291b-_0x5b1ab9>(0x1062e146^_0xef59f5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x17a7f4)[_0xaa6223([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17a7f4(_0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x26f2ad=0x34588bc6^_0xef59f5;function _0x55d94e(){const _0x2f5e97=_0xaa6223([0x6c,0x6c,0x63,0x74,0x2d])+_0x27ed2a(_0x3e9dd3(_0x4a6f88)),_0x580fad=_0x4d0d48(_0x27ed2a(window[_0xaa6223([0x4d,0x61,0x74,0x68])][_0xaa6223([0x63,0x65,0x69,0x6c])](_0x45291b/_0x26f2ad)));window[_0xaa6223([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaa6223([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f5e97,_0x580fad);}function _0x59c4c6(){const _0x1e7618=_0xaa6223([0x6c,0x6c,0x63,0x74,0x2d])+_0x27ed2a(_0x3e9dd3(_0x4a6f88)),_0x558599=window[_0xaa6223([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaa6223([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e7618);return _0x558599?window[_0xaa6223([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0d48(_0x558599),0x10)*_0x26f2ad:null;}function _0x3e8446(_0x1d0f31){return new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x247066,_0x5b45f0)=>{_0x1d0f31[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x247066,_0x5b45f0),window[_0xaa6223([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b45f0,0x346fb186^_0xef59f5);});}}_0x21d086[_0xaa6223([0x6f,0x6e])](_0xaa6223([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x411560,_0x1dd07f)=>{if(_0x1dd07f[0x0]!=_0x4a6f88)return _0x17a7f4(_0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1dd07f[0x1]={..._0x1dd07f[0x1],[_0xaa6223([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37d090};},{[_0xaa6223([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaa6223([0x68,0x69,0x67,0x68])}),_0x21d086[_0xaa6223([0x6f,0x6e])](_0xaa6223([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x346d50=>{_0x2412e4(_0x346d50[_0xaa6223([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10bf59=!0x0,_0x2198dc(_0x346d50[_0xaa6223([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xaa6223([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaa6223([0x6c,0x6f,0x77])}),_0x485227[_0xaa6223([0x74,0x68,0x65,0x6e])](()=>{_0x10bf59||_0x17a7f4(_0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b7aab(){return _0x21d086[_0xaa6223([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaa6223([0x76,0x69,0x65,0x77])][_0xaa6223([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xaa6223([0x61,0x75,0x74,0x6f]);}function _0x19ddf7(){_0x21d086[_0xaa6223([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaa6223([0x76,0x69,0x65,0x77])][_0xaa6223([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xaa6223([0x61,0x75,0x74,0x6f]);}}function _0xc52c2(_0x3aa4d0){const _0x5d440d=[new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37ee09=>setTimeout(_0x37ee09,0x34675b8a^_0xef59f5)),_0x485227[_0xaa6223([0x74,0x68,0x65,0x6e])](()=>new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405de4=>{const _0x49d0d=0x346e6541^_0xef59f5,_0x3f8224=_0x3aa978[_0xaa6223([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x13911b(){_0x3f8224[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x49d0d&&_0x405de4();}_0x13911b(),_0x3f8224[_0xaa6223([0x6f,0x6e])](_0xaa6223([0x61,0x64,0x64]),_0x13911b);})),new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c61f5=>{function _0x19e3d6(){for(const _0x66fb64 in window)if(window[_0xaa6223([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xaa6223([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x66fb64))&&window[_0x66fb64]==_0x8e1f08)return _0x4c61f5();_0x21d086[_0xaa6223([0x73,0x74,0x61,0x74,0x65])]!=_0xaa6223([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xaa6223([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19e3d6,0x346e76ce^_0xef59f5);}_0x506d94(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x19e3d6();})];return window[_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xaa6223([0x72,0x61,0x63,0x65])](_0x5d440d)[_0xaa6223([0x74,0x68,0x65,0x6e])](()=>_0x3aa4d0);}async function _0x14d7e9(){if(await _0x485227,_0x506d94(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x598815=_0x3aa978[_0xaa6223([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x167c61=_0x3aa978[_0xaa6223([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])](_0x598815[_0xaa6223([0x69,0x64])]),_0x50e847=_0x55d5fd(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x50e847[_0xaa6223([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x598815['id'],_0x167c61?_0x167c61['id']:null,!0x0),_0x50e847[_0xaa6223([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xaa6223([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x50e847[_0xaa6223([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x50e847[_0xaa6223([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x155213,void(_0x50e847[_0xaa6223([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x155213);}if(_0x506d94(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x43018c=_0x55d5fd(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x43018c[_0xaa6223([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xaa6223([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x43018c[_0xaa6223([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x43018c[_0xaa6223([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x155213,_0x43018c[_0xaa6223([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x155213;}_0x21d086[_0xaa6223([0x6d,0x6f,0x64,0x65,0x6c])][_0xaa6223([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x155213,_0x21d086[_0xaa6223([0x6d,0x6f,0x64,0x65,0x6c])][_0xaa6223([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x155213,_0x21d086[_0xaa6223([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xaa6223([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55a92f(){return _0x506d94(_0xaa6223([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x55d5fd(_0xaa6223([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xaa6223([0x73,0x74,0x61,0x74,0x65])]==_0xaa6223([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3762d8(){return _0x506d94(_0xaa6223([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 _0x4e648a(){return _0x506d94(_0xaa6223([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x345299(_0x4fcdd6){const _0x3f25f9=_0x36369f();_0x21d086[_0x3f25f9]=_0xaa6223([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])+_0x4fcdd6,_0x4fcdd6[_0xaa6223([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xaa6223([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x36369f()]=_0x8e1f08),_0x4fcdd6!=_0xaa6223([0x56,0x61,0x6c,0x69,0x64])&&_0x14d7e9();}function _0x36369f(){const _0x292270=window[_0xaa6223([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xaa6223([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xaa6223([0x6e,0x6f,0x77])]())[_0xaa6223([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xaa6223([0x2e]),'');let _0x5a209d=_0xaa6223([0x5a]);for(let _0x29bd85=0x0;_0x29bd85<_0x292270[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29bd85+=0x2){let _0x4bf1c1=window[_0xaa6223([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x292270[_0xaa6223([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29bd85,_0x29bd85+0x2));_0x4bf1c1>=_0x5b9fc1[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4bf1c1-=_0x5b9fc1[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a209d+=_0x5b9fc1[_0x4bf1c1];}return _0x5a209d;}function _0x12d15e(){const _0x9fdab5=_0x5864e6[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])](_0xaa6223([0x2e]));if(0x3!=_0x9fdab5[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51c14d(_0x9fdab5[0x1]);function _0x51c14d(_0x1fe582){const _0xcc2b02=_0x3a3494(_0x1fe582);return _0xcc2b02&&_0x58ae03()?_0xcc2b02:null;function _0x58ae03(){const _0x3bd9ba=_0xcc2b02[_0xaa6223([0x6a,0x74,0x69])],_0xc27b23=window[_0xaa6223([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bd9ba[_0xaa6223([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bd9ba[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44b8f0={..._0xcc2b02,[_0xaa6223([0x6a,0x74,0x69])]:_0x3bd9ba[_0xaa6223([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bd9ba[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44b8f0[_0xaa6223([0x76,0x63])],_0x3e9dd3(_0x44b8f0)==_0xc27b23;}}}async function _0x55b001(){let _0x33d17e=!0x0;try{const _0x450d00=_0x5864e6[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])](_0xaa6223([0x2e])),[_0x2bea57,_0x570e66,_0x3efbc9]=_0x450d00;return _0x4b928b(_0x2bea57),await _0x2023fa(_0x2bea57,_0x570e66,_0x3efbc9),_0x33d17e;}catch(_0x11972a){return!0x1;}function _0x4b928b(_0x433089){const _0x2013b6=_0x3a3494(_0x433089);_0x2013b6&&_0x2013b6[_0xaa6223([0x61,0x6c,0x67])]==_0xaa6223([0x45,0x53,0x32,0x35,0x36])||(_0x33d17e=!0x1);}async function _0x2023fa(_0x45de4c,_0x43bd0c,_0x36e579){const _0x35f890=window[_0xaa6223([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xaa6223([0x66,0x72,0x6f,0x6d])](_0x47e2cb(_0x36e579),_0x23e86b=>_0x23e86b[_0xaa6223([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26d4eb=new window[(_0xaa6223([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xaa6223([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45de4c+_0xaa6223([0x2e])+_0x43bd0c),_0xb7769c=window[_0xaa6223([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xaa6223([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb7769c)return;const _0xcf164d=await _0xb7769c[_0xaa6223([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xaa6223([0x6a,0x77,0x6b]),_0x1325de,{[_0xaa6223([0x6e,0x61,0x6d,0x65])]:_0xaa6223([0x45,0x43,0x44,0x53,0x41]),[_0xaa6223([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xaa6223([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xaa6223([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb7769c[_0xaa6223([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xaa6223([0x6e,0x61,0x6d,0x65])]:_0xaa6223([0x45,0x43,0x44,0x53,0x41]),[_0xaa6223([0x68,0x61,0x73,0x68])]:{[_0xaa6223([0x6e,0x61,0x6d,0x65])]:_0xaa6223([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xcf164d,_0x35f890,_0x26d4eb)||(_0x33d17e=!0x1);}}function _0x3a3494(_0x21fb7b){return _0x21fb7b[_0xaa6223([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xaa6223([0x65,0x79]))?JSON[_0xaa6223([0x70,0x61,0x72,0x73,0x65])](_0x47e2cb(_0x21fb7b)):null;}function _0x47e2cb(_0x45f8bb){return window[_0xaa6223([0x61,0x74,0x6f,0x62])](_0x45f8bb[_0xaa6223([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xaa6223([0x2b]))[_0xaa6223([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xaa6223([0x2f])));}function _0x3e9dd3(_0x1703ec){let _0x27da5e=0x1505;function _0x3ddee5(_0x4930ed){for(let _0xfad3b6=0x0;_0xfad3b6<_0x4930ed[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfad3b6++){const _0x5613cd=_0x4930ed[_0xaa6223([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfad3b6);_0x27da5e=(_0x27da5e<<0x5)+_0x27da5e+_0x5613cd,_0x27da5e&=_0x27da5e;}}function _0x2771c0(_0x3d674c){Array[_0xaa6223([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d674c)?_0x3d674c[_0xaa6223([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2771c0):_0x3d674c&&typeof _0x3d674c==_0xaa6223([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xaa6223([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d674c)[_0xaa6223([0x73,0x6f,0x72,0x74])]()[_0xaa6223([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24f8b2,_0x14beed])=>{_0x3ddee5(_0x24f8b2),_0x2771c0(_0x14beed);}):_0x3ddee5(window[_0xaa6223([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d674c));}return _0x2771c0(_0x1703ec),_0x27da5e>>>0x0;}function _0x27ed2a(_0x4875de){return _0x4875de[_0xaa6223([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xaa6223([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xaa6223([0x30]));}function _0x4d0d48(_0x4e1fa7){return _0x4e1fa7[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])]('')[_0xaa6223([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xaa6223([0x6a,0x6f,0x69,0x6e])]('');}function _0x506d94(_0x59cf25){return _0x21d086[_0xaa6223([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xaa6223([0x68,0x61,0x73])](_0x59cf25);}function _0x55d5fd(_0x42ca55){return _0x21d086[_0xaa6223([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xaa6223([0x67,0x65,0x74])](_0x42ca55);}function _0x155213(){}function _0xaa6223(_0x5f1c56){return _0x5f1c56['map'](_0x2ca1da=>String['fromCharCode'](_0x2ca1da))['join']('');}_0x345299(await _0x48a356());}(this);}['createRevision'](_0x4503d1){const _0x597f3c=this['editor']['plugins']['get']('Users');return new h({'id':_0x4503d1['id'],'name':_0x4503d1['name'],'creator':_0x4503d1['creatorId']?_0x597f3c['getUser'](_0x4503d1['creatorId']):null,'diffData':_0x4503d1['diffData']||_0x4503d1['data'],'authors':_0x4503d1['authorsIds']['map'](_0x309b13=>_0x597f3c['getUser'](_0x309b13)),'createdAt':new Date(_0x4503d1['createdAt']),'attributes':_0x4503d1['attributes'],'fromVersion':_0x4503d1['fromVersion'],'toVersion':_0x4503d1['toVersion']});}['addRevision'](_0x42c687,_0x45b82b=0x0){this['_revisions']['add'](_0x42c687,_0x45b82b);}['getRevision'](_0x2f35d8){return this['_revisions']['get'](_0x2f35d8);}['getRevisions'](_0x670687={'toJSON':!0x1}){const _0x5b000e=Array['from'](this['_revisions']);return _0x5b000e['reverse'](),_0x670687['toJSON']?_0x5b000e['map'](_0x3df4f5=>_0x3df4f5['toJSON']()):_0x5b000e;}['getIndex'](_0x44e1f6){return this['_revisions']['getIndex'](_0x44e1f6);}['getEarlierVisibleRevision'](_0x1af0ce){const [,_0xc3d884]=this['getRevisionsIterator'](_0x1af0ce,{'direction':'earlier'});return _0xc3d884;}['getLaterVisibleRevision'](_0x1404f1){const [,_0x485959]=this['getRevisionsIterator'](_0x1404f1,{'direction':'later'});return _0x485959;}['getRevisionsInDiff'](_0x46a783){const _0x6fde64=[];for(const _0x1f8227 of this['getRevisionsIterator'](_0x46a783['newRevisionId']))if(_0x6fde64['push'](_0x1f8227),_0x1f8227['id']===_0x46a783['oldRevisionId'])break;return _0x6fde64;}*['getRevisionsIterator'](_0x26d4ca,{direction:_0x367bcb='earlier',filter:_0x1aa924=()=>!0x0}={}){const _0x6ca925='earlier'===_0x367bcb?0x1:-0x1;let _0x23db92=this['_revisions']['get'](_0x26d4ca),_0x5bb9e7=this['getIndex'](_0x23db92);for(yield _0x23db92;_0x23db92;){if(_0x5bb9e7+=_0x6ca925,_0x23db92=this['getRevision'](_0x5bb9e7),!_0x23db92)return;_0x1aa924(_0x23db92)&&(yield _0x23db92);}}}function m(_0x579584,_0x174393,_0x4d919a){const t=_0x579584['t'];switch(_0x174393){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'},_0x4d919a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4d919a);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':_0x2acc3d,'a':_0x1690f0,'e':_0x510328,'r':_0x1a03fd,'u':_0x91a45c};class u extends _0x45244f{['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[_0x499f02,j,_0x20fd9f];}constructor(_0xfd71f1){super(_0xfd71f1),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 _0x39c73a=_0x5b3171();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x39c73a},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 _0x4edb70=this['repository']['getRevision'](0x0),_0x52e006=_0x4edb70&&null===_0x4edb70['creator']?_0x4edb70:null;if(this['_continueCurrentRevision']=!!_0x52e006&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xa9774f=this['_source']['getCurrentRevisionId'](),_0x107c7f=this['repository']['getRevision'](_0xa9774f);if(_0x107c7f)this['_startingVersion']=_0x107c7f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x54cb27=this['_source']['history']['_operations']['find'](_0x4bf0c4=>!_0x4bf0c4['_isInit']),_0x2a3594=_0x54cb27?_0x54cb27['baseVersion']:this['_source']['history']['version'];_0x4edb70?(_0x4edb70['toVersion']<_0x2a3594&&_0x4edb70['_update']({'toVersion':_0x2a3594}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x52e006['id'],this['_startingVersion']=_0x52e006['fromVersion']):(this['_startingVersion']=_0x4edb70['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2a3594,this['_continueCurrentRevision']=!0x1);}}else _0x52e006&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x52e006['toVersion'],this['editor']['model']['document']['history']['version']),_0x52e006['fromVersion']===_0x52e006['toVersion']?(0x0!==_0x52e006['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x52e006['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x52e006['id'],this['_startingVersion']=_0x52e006['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',_0x3664c5=>!_0x3664c5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x37bb29=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d5b4c;for(const _0x5bcdb2 in _0x37bb29){const _0x58e91f=_0x5bcdb2,_0x32f1a0=_0x37bb29[_0x58e91f];if('revisionHistoryLicenseKeyValid'==_0x32f1a0||'revisionHistoryLicenseKeyInvalid'==_0x32f1a0||'revisionHistoryLicenseKeyExpired'==_0x32f1a0||'revisionHistoryLicenseKeyDomainLimit'==_0x32f1a0||'revisionHistoryLicenseKeyNotAllowed'==_0x32f1a0||'revisionHistoryLicenseKeyEvaluationLimit'==_0x32f1a0||'revisionHistoryLicenseKeyTrialLimit'==_0x32f1a0||'revisionHistoryLicenseKeyUsageLimit'==_0x32f1a0){delete _0x37bb29[_0x58e91f],_0x1d5b4c=_0x32f1a0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2fe145=this['repository']['getRevision'](0x0),_0x5b96c2=await this['getRevisionDocumentData'](_0x2fe145),_0x1ab4d5=await this['getRevisionRootsAttributes'](_0x2fe145);this['_replaceEditorDataWithRevisionData'](_0x5b96c2,_0x1ab4d5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x190def){this['_source']=_0x190def;}async['update'](){const _0x362e88=await this['_source']['getLatestVersion']();if(_0x362e88>this['currentRevision']['toVersion']){await this['_loadState']();const _0x39b196=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x362e88});_0x39b196['authors']=_0x39b196['authorsIds']['map'](_0x1699d7=>this['editor']['plugins']['get']('Users')['getUser'](_0x1699d7)),this['currentRevision']['_update'](_0x39b196);}}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'](_0x172c0b={},_0x426ba8=null){const _0x3b3836=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x426ba8>this['currentRevision']['toVersion']&&(_0x426ba8=null),null===_0x426ba8&&(_0x426ba8=await this['_source']['getLatestVersion']());const _0x1fcd0d=this['_getFromVersion'](_0x426ba8),_0xfb9ffb=this['buildRevisionData']({'from':_0x1fcd0d,'to':_0x426ba8});if(this['currentRevision']['toVersion']<_0x426ba8){const _0x4ed1b8=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x426ba8,'to':_0x426ba8});_0x4ed1b8['authors']=[],_0x4ed1b8['authorsIds']=[],_0x4ed1b8['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4ed1b8,!0x0),delete _0x4ed1b8['authors'],_0x3b3836['push'](_0x4ed1b8);}_0x172c0b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x172c0b['name']=_0x172c0b['name']||null,_0x172c0b['id']=_0x172c0b['id']||_0x5b3171(),_0x172c0b={..._0x172c0b,..._0xfb9ffb};const _0x2c1261=this['addRevisionData'](_0x172c0b);_0x3b3836['push'](_0x172c0b);const _0x372fd6=this['repository']['getIndex'](_0x2c1261);if(0x0!==_0x372fd6){const _0x14ee4c=this['repository']['getRevision'](_0x372fd6-0x1);if(_0x14ee4c['fromVersion']!==_0x426ba8){const _0x3830f9=this['_revisionDataBuilder']['getData'](_0x426ba8,_0x14ee4c['toVersion']),_0x2c373d={'id':_0x14ee4c['id'],'diffData':_0x3830f9['diffData'],'authorsIds':_0x3830f9['authorsIds'],'authors':_0x3830f9['authorsIds']['map'](_0x721216=>this['editor']['plugins']['get']('Users')['getUser'](_0x721216)),'fromVersion':_0x426ba8};_0x14ee4c===this['currentRevision']&&(_0x2c373d['createdAt']=new Date(_0x172c0b['createdAt']['getTime']()+0xa)),_0x14ee4c['_update'](_0x2c373d,!0x0),delete _0x2c373d['authors'],_0x3b3836['push'](_0x2c373d);}}if(this['adapter']){for(const _0x496698 of _0x3b3836)this['_bufferUpdate'](_0x496698['id'],_0x496698,!0x0);this['sendBufferedUpdates']();}return _0x2c1261;}['addRevisionData'](_0x185253){const _0xed68a4=this['repository']['createRevision'](_0x185253);return this['adapter']&&_0xed68a4['on']('_update',(_0x583510,_0x4e1e35,_0x2b88f6)=>{_0x2b88f6||(this['_bufferUpdate'](_0x4e1e35['id'],_0x4e1e35,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xed68a4,this['_findInsertionIndex'](_0xed68a4)),_0xed68a4;}async['getRevisionDocumentData'](_0x13261f){await this['_loadRevisionData'](_0x13261f);const _0x22d80e={};for(const _0x254276 in _0x13261f['diffData']){if(_0x13261f['diffData'][_0x254276]['attachChange']&&!_0x13261f['diffData'][_0x254276]['attachChange']['isAttached'])continue;const _0x27555a=this['_removeRevisionMarkers'](JSON['parse'](_0x13261f['diffData'][_0x254276]['insertions'])),_0x4cfa8a=this['editor']['editing']['view']['document'],_0x57b541=new _0x17d136(_0x4cfa8a,_0x27555a['map'](_0x2b081c=>P(_0x2b081c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x22d80e[_0x254276]=this['editor']['data']['processor']['toData'](_0x57b541),this['editor']['data']['processor']['useFillerType']('default');}return _0x22d80e;}async['getRevisionRootsAttributes'](_0x4f4cfe){await this['_loadRevisionData'](_0x4f4cfe);const _0x2db3f6={};for(const _0x42fde4 in _0x4f4cfe['diffData'])_0x4f4cfe['diffData'][_0x42fde4]['attachChange']&&!_0x4f4cfe['diffData'][_0x42fde4]['attachChange']['isAttached']||(_0x2db3f6[_0x42fde4]=_0x4f4cfe['diffData'][_0x42fde4]['attributesAfter']||{});return _0x2db3f6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5153f5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x533a14=0x0;_0x533a14<_0x5153f5['length'];_0x533a14++){const _0x4eb919=_0x5153f5[_0x533a14];let _0x36a72f=!0x1;for(const _0x10e821 of Object['keys'](_0x4eb919))void 0x0===_0x4eb919[_0x10e821]?delete _0x4eb919[_0x10e821]:'id'!==_0x10e821&&(_0x36a72f=!0x0);_0x36a72f||(_0x5153f5[_0x533a14]=null);}if(_0x5153f5=_0x5153f5['filter'](_0x48517f=>null!==_0x48517f),!_0x5153f5['length'])return;for(let _0x3547f4=0x0;_0x3547f4<_0x5153f5['length'];_0x3547f4++){const _0xbd1786=_0x5153f5[_0x3547f4];void 0x0!==_0xbd1786['fromVersion']&&void 0x0===_0xbd1786['toVersion']&&(_0xbd1786['toVersion']=this['repository']['getRevision'](_0xbd1786['id'])['toVersion']),void 0x0!==_0xbd1786['toVersion']&&void 0x0===_0xbd1786['fromVersion']&&(_0xbd1786['fromVersion']=this['repository']['getRevision'](_0xbd1786['id'])['fromVersion']);}const _0x2e7531=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5153f5,_0x2e7531)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x54a6f7=>{if(_0x54a6f7){for(const _0x585e83 of _0x54a6f7)this['setRevisionData']({'id':_0x585e83['id'],'createdAt':_0x585e83['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4541a9,_0x5cc550){let _0x3266db=this['editor']['config']['get']('initialData'),_0x307e40=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3266db){_0x3266db={};for(const _0x131f89 of this['editor']['model']['document']['getRootNames']())_0x3266db[_0x131f89]='';}if('string'==typeof _0x3266db&&(_0x3266db={'main':_0x3266db}),void 0x0===_0x307e40){_0x307e40={};for(const _0x789433 of this['editor']['model']['document']['getRootNames']())_0x307e40[_0x789433]={};}let _0x1fb8ee=!0x1;const _0x300754=Object['keys'](_0x3266db),_0x2ea202=Object['keys'](_0x4541a9);for(const _0x81b6b4 of _0x300754){if(_0x3266db[_0x81b6b4]!==_0x4541a9[_0x81b6b4]&&''!==_0x3266db[_0x81b6b4]['trim']()){_0x1fb8ee=!0x0;break;}if(!_0x2cbd47(_0x307e40[_0x81b6b4],_0x5cc550[_0x81b6b4])&&Object['keys'](_0x307e40[_0x81b6b4])['length']>0x0){_0x1fb8ee=!0x0;break;}}_0x1fb8ee||(_0x1fb8ee=_0x2ea202['some'](_0x2ce029=>!this['editor']['model']['document']['getRoot'](_0x2ce029))),_0x1fb8ee&&_0x4a5a5a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3266db,'editorRootsAttributes':_0x307e40,'revisionData':_0x4541a9,'revisionRootsAttributes':_0x5cc550}),this['editor']['config']['set']('initialData',_0x4541a9),this['editor']['config']['set']('rootsAttributes',_0x5cc550);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x131f2d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x131f2d['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x23dd86){const _0x58ce13=this['repository']['getRevisions']();_0x58ce13['reverse']();let _0x4f7531=0x0;for(;_0x4f7531<_0x58ce13['length'];){const _0x4df3d8=_0x58ce13[_0x4f7531];if(_0x4df3d8===this['currentRevision']){_0x4f7531++;continue;}if(_0x4df3d8['id']===this['_initialRevisionId'])break;const _0x14156f=_0x23dd86['toVersion']-_0x4df3d8['toVersion']||_0x23dd86['fromVersion']-_0x4df3d8['fromVersion'];if(_0x14156f>0x0)break;if(_0x14156f<0x0)_0x4f7531++;else{if(!_0x23dd86['creator']&&_0x4df3d8['creator'])break;if(_0x4df3d8['creator']||!_0x23dd86['creator']){if(_0x23dd86['createdAt']>_0x4df3d8['createdAt'])break;_0x4f7531++;}else _0x4f7531++;}}return _0x4f7531;}['setRevisionData'](_0x2d18f0){const _0x4d2987=this['repository']['getRevision'](_0x2d18f0['id']);if(_0x2d18f0['createdAt']&&(_0x2d18f0['createdAt']=new Date(_0x2d18f0['createdAt'])),_0x2d18f0['authorsIds']){const _0x4999bc=this['editor']['plugins']['get']('Users');_0x2d18f0['authors']=_0x2d18f0['authorsIds']['map'](_0x1dd2a0=>_0x4999bc['getUser'](_0x1dd2a0));}_0x4d2987['_update'](_0x2d18f0,!0x0);}['buildRevisionData']({revision:_0x4bbf5a=null,from:_0x5c4908=null,to:_0x38cd66=null}){_0x5c4908=null!==_0x5c4908?_0x5c4908:_0x4bbf5a['fromVersion'],_0x38cd66=null!==_0x38cd66?_0x38cd66:_0x4bbf5a['toVersion'];const _0x2b633f=this['_revisionDataBuilder']['getData'](_0x5c4908,_0x38cd66),_0x3f3fa8={'diffData':_0x2b633f['diffData'],'authorsIds':_0x2b633f['authorsIds'],'fromVersion':_0x5c4908,'toVersion':_0x38cd66};if(!_0x4bbf5a||_0x38cd66!==_0x4bbf5a['toVersion']){const _0x100525=_0x38cd66-0x1,_0x5702d8=this['_source']['history']['getOperation'](_0x100525);_0x3f3fa8['createdAt']=_0x5702d8&&_0x5702d8['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5c4908===this['_loadedStateData']['fromVersion']){for(const _0x16fb10 of this['_loadedStateData']['authors'])_0x3f3fa8['authorsIds']['includes'](_0x16fb10['id'])||_0x3f3fa8['authorsIds']['push'](_0x16fb10['id']);}return _0x3f3fa8;}['_loadRevisionData'](_0x49fbba){if(!_0x49fbba||_0x49fbba['diffData'])return Promise['resolve']();{const _0x176481=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x176481,'revisionId':_0x49fbba['id']})['then'](_0x2d4013=>{_0x49fbba['diffData']=_0x2d4013['diffData'];});}}['_bufferUpdate'](_0x2657d0,_0x380e91,_0x5169e9){if(this['_bufferedUpdates']['has'](_0x2657d0)){const _0x53ee0b=this['_bufferedUpdates']['get'](_0x2657d0);_0x380e91=_0x5169e9?{..._0x53ee0b,..._0x380e91}:{..._0x380e91,..._0x53ee0b};}this['_bufferedUpdates']['set'](_0x2657d0,_0x380e91);}['_getFromVersion'](_0x275da0){const _0x710078=this['repository']['getRevisions']();_0x710078['reverse'](),_0x710078['shift']();const _0xeb35bf=_0x710078['find'](_0xdd05ef=>_0xdd05ef['toVersion']<=_0x275da0)['toVersion'];return _0xeb35bf<this['_startingVersion']?this['_startingVersion']:_0xeb35bf;}['_createInitialRevision'](_0x36f9cf){const _0x3eac78=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3eac78)this['_initialRevisionId']=_0x3eac78['id'];else{const _0x4c5949=!this['editor']['model']['document']['roots']['find'](_0xfa6360=>this['editor']['model']['hasContent'](_0xfa6360)),_0x315bb0=this['editor']['plugins']['get']('Users')['me']['id'],_0x3622d8=m(this['editor']['locale'],_0x4c5949?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x36f9cf,'to':_0x36f9cf,'id':this['_initialRevisionId'],'name':_0x3622d8,'creatorId':_0x315bb0});}}['_createCurrentRevision'](_0x2bcfcd){const _0x20b445=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x20b445),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2bcfcd,'to':_0x2bcfcd,'id':_0x20b445,'name':'','creatorId':null}));}['_makeRevision']({name:_0x298910,from:_0x172492,to:_0x27ebd5,creatorId:_0x4cb08c,id:_0x3b3cee}){const _0x3d60fc=this['buildRevisionData']({'from':_0x172492,'to':_0x27ebd5});_0x3d60fc['name']=_0x298910,_0x3d60fc['creatorId']=_0x4cb08c,_0x3d60fc['id']=_0x3b3cee;const _0x1e5e94=this['addRevisionData'](_0x3d60fc);return this['adapter']&&this['_bufferUpdate'](_0x3d60fc['id'],_0x3d60fc,!0x0),_0x1e5e94;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x54fe1c){return(_0x54fe1c=_0x54fe1c['filter'](_0x39ea99=>!_0x39ea99['name']||'revision-start'!==_0x39ea99['name']&&'revision-end'!==_0x39ea99['name']))['forEach'](_0x1eef48=>{'string'!=typeof _0x1eef48&&(_0x1eef48['children']=this['_removeRevisionMarkers'](_0x1eef48['children']),_0x1eef48['attributes']=_0x1eef48['attributes']['filter'](_0x39f718=>!_0x39f718[0x0]['startsWith']('data-revision-')));}),_0x54fe1c;}}function P(_0x23508c,_0x5a1ab0){const _0x29b580=_0x5a1ab0['editing']['view']['document'];if('string'==typeof _0x23508c)return new _0xf4d2d1(_0x29b580,_0x23508c);{const _0x18a9bb=_0x23508c['children']['map'](_0x20e004=>P(_0x20e004,_0x5a1ab0));return new(E[_0x23508c['type']]||_0x3a93a8)(_0x29b580,_0x23508c['name'],_0x23508c['attributes'],_0x18a9bb);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3f9e2b){this['editor']=_0x3f9e2b,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'](_0x29fd28){this['source']=_0x29fd28;const _0x103879=new Map(),_0x389846=new Map(),_0x2dde48=this['editor']['model']['document']['roots']['map'](_0x127185=>_0x127185['rootName']);for(const _0x191b84 of _0x2dde48){const _0x25add5=this['editor']['model']['document']['getRoot'](_0x191b84),_0x40f50d=T(_0x25add5);_0x103879['set'](_0x191b84,_0x40f50d),_0x389846['set'](_0x191b84,Object['fromEntries'](_0x25add5['getAttributes']()));}const _0x347742=Array['from'](this['editor']['model']['markers'])['map'](_0x1fe913=>[_0x1fe913['name'],_0x1fe913['getRange']()]),_0x24d3cf=this['source']['version'];this['_saveMetaData'](_0x24d3cf,_0x103879,_0x347742,_0x389846),this['_startingRevisionId']=this['_revisionId'];const _0x4b5fe8=new Map(),_0x4925c0=new Map();for(const _0x459de6 of _0x2dde48){const _0x1d44fe=F(_0x459de6);_0x4b5fe8['set'](_0x459de6,_0x1d44fe),_0x4925c0['set'](_0x459de6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4b5fe8,[],_0x4925c0);}['getData'](_0x35ae3b,_0x34b54a){if(this['_lastFrom']===_0x35ae3b&&this['_lastTo']<=_0x34b54a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x34b54a,!0x0);else{if(!this['_savedMetaData']['has'](_0x35ae3b)){const _0xe41c06=this['_getPreviousFrom'](_0x35ae3b);this['_calculateMetaData'](_0xe41c06,_0x35ae3b,!0x1);}this['_calculateMetaData'](_0x35ae3b,_0x34b54a,!0x0);}return this['_lastFrom']=_0x35ae3b,this['_lastTo']=_0x34b54a,this['_getState']();}['loadState'](_0x3b9055){this['_reset'](),this['_lastFrom']=_0x3b9055['fromVersion'],this['_lastTo']=_0x3b9055['toVersion'];for(const _0x513b38 in _0x3b9055['diffData']){const _0x3797ee=_0x3b9055['diffData'][_0x513b38]['attachChange'],_0x25a5b4=_0x377d2c(_0x3b9055['diffData'][_0x513b38]['attributesBefore'])||{},_0x59ea78=this['_makeModelFromViewString'](_0x3b9055['diffData'][_0x513b38]['deletions']);_0x59ea78['rootName']=_0x513b38,_0x59ea78['_isAttached']=!_0x3797ee||!_0x3797ee['isAttached'],_0x59ea78['isAttached']=()=>_0x59ea78['_isAttached'],this['_baseRoots']['set'](_0x513b38,_0x59ea78),this['_baseRootsAttributes']['set'](_0x513b38,_0x25a5b4),_0x3797ee&&this['_touchedRoots']['set'](_0x513b38,_0x3797ee);const _0x1f196e=this['_makeIdsRoot'](_0x59ea78);this['_baseIdsRoots']['set'](_0x513b38,_0x1f196e);for(const [_0x13f17f,_0x58e46c]of _0x59ea78['markers']){if(!_0x13f17f['startsWith']('revision:'))continue;const _0x15653f=_0x13f17f['split'](':')[0x2];for(const _0x2ce5c6 of _0x58e46c['getWalker']({'singleCharacters':!0x0})){const _0x5d6d9c=this['_getVidAttributeName'](_0x2ce5c6),_0x1b2d06='elementEnd'==_0x2ce5c6['type']?_0x2ce5c6['previousPosition']['path']['slice'](0x0,-0x1):_0x2ce5c6['previousPosition']['path'],_0x340901=_0x1f196e['getNodeByPath'](_0x1b2d06)['getAttribute'](_0x5d6d9c);this['_touched']['set'](_0x340901,{'userId':_0x15653f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x23e1a9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2c9a3c=>!this['_touched']['has'](_0x2c9a3c));let _0x22ea54=0x0;const _0xb3ab55=new Map();for(const _0x501b19 in _0x3b9055['diffData']){const _0x39ca72=_0x3b9055['diffData'][_0x501b19]['attachChange'],_0x5128b=_0x377d2c(_0x3b9055['diffData'][_0x501b19]['attributesAfter'])||{},_0x1fd786=this['_makeModelFromViewString'](_0x3b9055['diffData'][_0x501b19]['insertions']);_0x1fd786['rootName']=_0x501b19,_0x1fd786['_isAttached']=!_0x39ca72||_0x39ca72['isAttached'],_0x1fd786['isAttached']=()=>_0x1fd786['_isAttached'],this['_diffRoots']['set'](_0x501b19,_0x1fd786),this['_diffRootsAttributes']['set'](_0x501b19,_0x5128b);const _0x4d6860=this['_makeIdsRoot'](_0x1fd786,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x501b19,_0x4d6860),_0xb3ab55['set'](_0x501b19,_0x1fd786['isAttached']()?_0x5128b:{});for(const [_0x53274f,_0x1b9537]of _0x1fd786['markers']){if(!_0x53274f['startsWith']('revision:'))continue;const _0x604b6d=_0x53274f['split'](':')[0x2];for(const _0xa7c263 of _0x1b9537['getWalker']({'singleCharacters':!0x0})){const _0x1efe1f=this['_getVidAttributeName'](_0xa7c263),_0x2de0c7=this['_revisionId']++,_0x46dc9f='elementEnd'==_0xa7c263['type']?_0xa7c263['previousPosition']['path']['slice'](0x0,-0x1):_0xa7c263['previousPosition']['path'];_0x4d6860['getNodeByPath'](_0x46dc9f)['_setAttribute'](_0x1efe1f,_0x2de0c7),this['_touched']['set'](_0x2de0c7,{'userId':_0x604b6d});}}for(const _0x35a508 of this['editor']['model']['createRangeIn'](_0x1fd786)['getWalker']({'singleCharacters':!0x0})){const _0x25c8b8=this['_getVidAttributeName'](_0x35a508),_0x26ed14='elementEnd'==_0x35a508['type']?_0x35a508['previousPosition']['path']['slice'](0x0,-0x1):_0x35a508['previousPosition']['path'],_0x542698=_0x4d6860['getNodeByPath'](_0x26ed14);_0x542698['getAttribute'](_0x25c8b8)>0x0||_0x542698['_setAttribute'](_0x25c8b8,_0x23e1a9[_0x22ea54++]);}for(const [_0x212807,_0x3484f9]of _0x1fd786['markers'])_0x212807['startsWith']('revision:')||this['_markers']['set'](_0x212807,_0x3484f9);}const _0x5b1023=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5b1023),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5b1023,0x1));const _0x4ae1a5=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4ae1a5),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4ae1a5,0x1));const _0x129e9a=Array['from'](this['_diffRoots'])['map'](([_0x48a6a1,_0xdd8132])=>[_0x48a6a1,T(_0xdd8132)]);this['_saveMetaData'](this['_lastTo'],_0x129e9a,this['_markers'],_0xb3ab55);}['_makeModelFromViewString'](_0x282df9){const _0x202637=JSON['parse'](_0x282df9),_0x41aa0e=this['editor']['editing']['view']['document'],_0x1aea55=new _0x17d136(_0x41aa0e,_0x202637['map'](_0x45b14c=>P(_0x45b14c,this['editor'])));return this['editor']['data']['toModel'](_0x1aea55);}['_saveMetaData'](_0x579ba4,_0x441761,_0x5f12c7,_0x5556e4){const _0x5ecd04=new Map(_0x441761),_0xde542f=new Map(_0x377d2c(_0x5556e4)),_0x4e09b5=new Map();for(const [_0x1860ae,_0x164adf]of _0x5f12c7)_0x4e09b5['set'](_0x1860ae,{'start':_0x164adf['start']['clone'](),'end':_0x164adf['end']['clone'](),'rootName':_0x164adf['root']['rootName']});this['_savedMetaData']['set'](_0x579ba4,{'roots':_0x5ecd04,'markers':_0x4e09b5,'rootsAttributes':_0xde542f});}['_removeMetaData'](_0x2db92a){this['_savedMetaData']['delete'](_0x2db92a);}['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'](_0x5ba0f4,_0x28ca46=null){let _0x113424=null;_0x5ba0f4['is']('documentFragment')||(_0x113424=new ut(_0x5ba0f4['name'],{'vid_start':null===_0x28ca46?this['_revisionId']++:_0x28ca46++}));const _0x5d188f=[];for(const _0x3f199c of _0x5ba0f4['getChildren']())if(_0x3f199c['is']('element')){_0x5d188f['push'](this['_makeIdsRoot'](_0x3f199c,_0x28ca46));const _0x4fec5e=_0x5d188f[_0x5d188f['length']-0x1];null!==_0x28ca46&&(_0x28ca46=_0x4fec5e['is']('element','$text')?_0x4fec5e['getAttribute']('vid')+0x1:_0x4fec5e['getAttribute']('vid_end')+0x1);}else{for(let _0x311389=0x0;_0x311389<_0x3f199c['offsetSize'];_0x311389++)_0x5d188f['push'](new ut('$text',{'vid':null===_0x28ca46?this['_revisionId']++:_0x28ca46++}));}if(_0x5ba0f4['is']('documentFragment')){const _0x4359a0=F(_0x5ba0f4['rootName']);return _0x4359a0['_insertChild'](0x0,_0x5d188f),_0x4359a0;}return _0x113424['_setAttribute']('vid_end',null===_0x28ca46?this['_revisionId']++:_0x28ca46++),_0x113424['_insertChild'](0x0,_0x5d188f),_0x113424;}['_calculateMetaData'](_0x1bb3c5,_0x268e58,_0x24b5e6){this['_reset']();const {roots:_0x4b5a79,markers:_0x66e1a9,rootsAttributes:_0x4e6327}=this['_savedMetaData']['get'](_0x1bb3c5);this['_baseRoots']=new Map(_0x4b5a79),this['_baseRootsAttributes']=new Map(_0x377d2c(_0x4e6327));for(const [_0x1d0600,_0x45c5bd]of this['_baseRoots'])if('$graveyard'!==_0x1d0600&&(this['_diffRoots']['set'](_0x1d0600,T(_0x45c5bd)),this['_diffRootsAttributes']=new Map(_0x377d2c(_0x4e6327)),_0x24b5e6)){const _0x21113c=this['_revisionId'];this['_idsRoots']['set'](_0x1d0600,this['_makeIdsRoot'](_0x45c5bd)),this['_baseIdsRoots']['set'](_0x1d0600,this['_makeIdsRoot'](_0x45c5bd,_0x21113c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x24b5e6&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x34432a,_0x220fdc]of _0x66e1a9){const _0x1fb4f5=this['_baseRoots']['get'](_0x220fdc['rootName']),_0x18a00a=this['_diffRoots']['get'](_0x220fdc['rootName']),_0x14182c=new ft(this['_fixPosition'](_0x220fdc['start'],_0x1fb4f5),this['_fixPosition'](_0x220fdc['end'],_0x1fb4f5)),_0x42a4e2=this['_fixRange'](_0x14182c,_0x18a00a);_0x1fb4f5['markers']['set'](_0x34432a,_0x14182c),this['_markers']['set'](_0x34432a,_0x42a4e2);}this['_applyOperations'](_0x1bb3c5,_0x268e58,_0x24b5e6);}['_applyOperations'](_0x391e59,_0x523154,_0x3dd83e){for(const _0x1942a3 of this['source']['getOperations'](_0x391e59,_0x523154))this['_handleOperation'](_0x1942a3,_0x3dd83e);for(const _0xb36939 of this['_diffRoots']['values']())_0xb36939['markers']['clear']();for(const [_0xad3747,_0x2f99f8]of this['_markers']){this['_diffRoots']['get'](_0x2f99f8['root']['rootName'])['markers']['set'](_0xad3747,_0x2f99f8['clone']());}const _0x3dd16a=new Map(),_0x469b79=new Map();for(const [_0x4dc0b1,_0xb7f34b]of this['_diffRoots'])_0x3dd16a['set'](_0x4dc0b1,T(_0xb7f34b)),_0x469b79['set'](_0x4dc0b1,this['_diffRootsAttributes']['get'](_0x4dc0b1));this['_saveMetaData'](_0x523154,_0x3dd16a,this['_markers'],_0x469b79);}['_getPreviousFrom'](_0xb75fa0){const _0x120aa2=Array['from'](this['_savedMetaData']['keys']());_0x120aa2['sort']((_0x4613c9,_0x479506)=>_0x4613c9-_0x479506),_0x120aa2['reverse']();for(const _0x28a011 of _0x120aa2)if(_0x28a011<_0xb75fa0)return _0x28a011;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4d143c,_0x4c7fc7){const _0x7cf703=Array['from'](_0x4c7fc7['markers'])['map'](([_0x21305,_0x38a5e6])=>[_0x21305,this['_fixRange'](_0x38a5e6,_0x4d143c)]);_0x4d143c['markers']=new Map(_0x7cf703);}['_transformMarkers'](_0x45595a){for(const _0x16b8f0 of this['_markers']['values']()){const _0x5b75b5=_0x16b8f0['getTransformedByOperation'](_0x45595a),_0x54f99e=ft['_createFromRanges'](_0x5b75b5);_0x16b8f0['start']=_0x54f99e['start'],_0x16b8f0['end']=_0x54f99e['end'];}}['_handleOperation'](_0x3ef87f,_0x42713c){if('addRoot'!=_0x3ef87f['type']&&'detachRoot'!=_0x3ef87f['type']){if('insert'==_0x3ef87f['type']){const _0x2c4550=_0x3ef87f['position']['root']['rootName'];this['_diffRoots']['has'](_0x2c4550)||(this['_diffRoots']['set'](_0x2c4550,F(_0x2c4550,!0x0)),this['_diffRootsAttributes']['set'](_0x2c4550,{}),_0x42713c&&this['_idsRoots']['set'](_0x2c4550,F(_0x2c4550,!0x0)));}else{if('addRootAttribute'==_0x3ef87f['type']||'removeRootAttribute'==_0x3ef87f['type']||'changeRootAttribute'==_0x3ef87f['type'])return void this['_handleRootAttributeOperation'](_0x3ef87f);'marker'==_0x3ef87f['type']&&this['_handleMarkerOperation'](_0x3ef87f);}if('marker'!==_0x3ef87f['type']){const _0x4940fd=this['_cloneOperation'](_0x3ef87f,this['_diffRoots']);_0x4940fd['_execute'](),this['_transformMarkers'](_0x4940fd);}if(_0x42713c)switch(_0x3ef87f['type']){case'insert':this['_handleInsertOperation'](_0x3ef87f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3ef87f);break;case'merge':this['_handleMergeOperation'](_0x3ef87f);break;case'split':this['_handleSplitOperation'](_0x3ef87f);}}else this['_handleRootOperation'](_0x3ef87f,_0x42713c);}['_cloneOperation'](_0x43b60d,_0x2ea5cf){const _0x20d9d7=_0x43b60d['clone']();return _0x20d9d7['_authorId']=_0x43b60d['_authorId'],this['_fixOperation'](_0x20d9d7,_0x2ea5cf),_0x20d9d7;}['_getBaseVids'](_0x5e4f66){return _0x5e4f66['map'](_0x5bf166=>{const _0x30ece6=this['_getVidAttributeName'](_0x5bf166);return Number(_0x5bf166['item']['getAttribute'](_0x30ece6));});}['_generateTape'](_0x1e949e,_0x56fa25){if(_0x1e949e['is']('element','$text'))_0x56fa25['push']({'item':_0x1e949e,'type':'text'});else{_0x1e949e['is']('element')&&_0x56fa25['push']({'item':_0x1e949e,'type':'elementStart'});for(const _0x50ca9a of _0x1e949e['getChildren']())this['_generateTape'](_0x50ca9a,_0x56fa25);_0x1e949e['is']('element')&&_0x56fa25['push']({'item':_0x1e949e,'type':'elementEnd'});}return _0x56fa25;}['_getState'](){const _0x39f802=new Map(this['_touched']),_0x3598c5=new Map(_0x39f802),_0x225f36=new Map(),_0x4fe0ba={'insertions':{},'deletions':{}},_0x5c12c8={'insertions':{},'deletions':{}},_0x310f20=new Map(),_0x123a20=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x123a20['delete']('$graveyard');for(const _0x33fd6f of _0x123a20){const _0x2066cc=this['_diffRoots']['get'](_0x33fd6f)||F(_0x33fd6f,!0x1),_0x4674c7=this['_baseRoots']['get'](_0x33fd6f)||F(_0x33fd6f,!0x1);_0x2066cc['isAttached']()||_0x4674c7['isAttached']()?(_0x4fe0ba['insertions'][_0x33fd6f]=T(_0x2066cc),_0x4fe0ba['deletions'][_0x33fd6f]=T(_0x4674c7),this['_copyMarkers'](_0x4fe0ba['deletions'][_0x33fd6f],_0x4674c7),this['_copyMarkers'](_0x4fe0ba['insertions'][_0x33fd6f],_0x2066cc),_0x5c12c8['insertions'][_0x33fd6f]=this['_generateTape'](this['_idsRoots']['get'](_0x33fd6f),[]),_0x5c12c8['deletions'][_0x33fd6f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x33fd6f)||F(_0x33fd6f,!0x1),[])):_0x123a20['delete'](_0x33fd6f);}for(const _0x41ff51 of _0x123a20){const _0x35070c=_0x5c12c8['insertions'][_0x41ff51];for(const _0xb2901c of _0x35070c){const _0x4fa5a8=this['_getVidAttributeName'](_0xb2901c),_0x43f00b=_0xb2901c['item']['getAttribute'](_0x4fa5a8);_0x3598c5['delete'](_0x43f00b),_0x43f00b>=this['_startingRevisionId']&&_0x225f36['set'](_0x43f00b,_0x39f802['get'](_0x43f00b));}}for(const _0x15f79e of _0x123a20){const _0x5cf01b=_0x5c12c8['insertions'][_0x15f79e],_0x57f430=this['_getBaseVids'](_0x5c12c8['deletions'][_0x15f79e]);let _0x5d61ef=0x0;for(const _0x152412 of _0x5cf01b){const _0x5d629e=this['_getVidAttributeName'](_0x152412),_0x568367=_0x152412['item']['getAttribute'](_0x5d629e);if(!_0x225f36['has'](_0x568367)&&!_0x310f20['has'](_0x568367)){if(_0x3598c5['has'](_0x568367))_0x5d61ef++;else{if(_0x568367!=_0x57f430[_0x5d61ef]){const _0x570bf7=_0x39f802['get'](_0x568367)||_0x39f802['get'](_0x57f430[_0x5d61ef]);for(;_0x568367!=_0x57f430[_0x5d61ef];)_0x3598c5['has'](_0x57f430[_0x5d61ef])||(_0x310f20['set'](_0x57f430[_0x5d61ef],_0x570bf7),_0x39f802['set'](_0x57f430[_0x5d61ef],_0x570bf7)),_0x5d61ef++;}_0x5d61ef++;}}}}for(const _0x138e64 of _0x123a20){const _0x542348=_0x5c12c8['insertions'][_0x138e64];for(const _0x515155 of _0x542348){const _0xd0806=this['_getVidAttributeName'](_0x515155),_0x5c0ee1=_0x515155['item']['getAttribute'](_0xd0806);if(_0x310f20['has'](_0x5c0ee1)){const _0x6c2524=_0x310f20['get'](_0x5c0ee1);_0x3598c5['has'](_0x5c0ee1)||_0x3598c5['set'](_0x5c0ee1,{..._0x6c2524}),_0x225f36['set'](_0x5c0ee1,{..._0x6c2524});}}}for(const _0x54dee0 of _0x3598c5['keys']())_0x54dee0>=this['_startingRevisionId']&&_0x3598c5['delete'](_0x54dee0);const _0x7b50e0=new Map();for(const _0x1c1d54 of _0x123a20){let _0x1e59ad=_0x5c12c8['insertions'][_0x1c1d54];for(const _0x4f5668 of _0x1e59ad)if(_0x4f5668['item']['is']('element','tableCell')){const _0x20f1cc=this['_getVidAttributeName'](_0x4f5668),_0x30d429=_0x4f5668['item']['getAttribute'](_0x20f1cc);if(_0x225f36['has'](_0x30d429)){const _0x2268a5=_0x4f5668['item']['parent']['parent']['getAttribute']('vid_start'),_0x2908b2=_0x7b50e0['get'](_0x2268a5)||new Set();_0x2908b2['add'](_0x225f36['get'](_0x30d429)['userId']),_0x7b50e0['set'](_0x2268a5,_0x2908b2);}}_0x1e59ad=_0x5c12c8['deletions'][_0x1c1d54];for(const _0x37b278 of _0x1e59ad)if(_0x37b278['item']['is']('element','tableCell')){const _0x351b34=this['_getVidAttributeName'](_0x37b278),_0x3e8c85=_0x37b278['item']['getAttribute'](_0x351b34);if(_0x3598c5['has'](_0x3e8c85)){const _0x5d5c9b=_0x37b278['item']['parent']['parent']['getAttribute']('vid_start'),_0x5820af=_0x7b50e0['get'](_0x5d5c9b)||new Set();_0x5820af['add'](_0x3598c5['get'](_0x3e8c85)['userId']),_0x7b50e0['set'](_0x5d5c9b,_0x5820af);}}for(const _0x4868d4 of _0x7b50e0['keys']())(_0x225f36['has'](_0x4868d4)||_0x3598c5['has'](_0x4868d4))&&_0x7b50e0['delete'](_0x4868d4);}for(const _0x1d87b5 of _0x123a20){const _0x57df28=_0x5c12c8['insertions'][_0x1d87b5];let _0x5b6365=null,_0x4cf3db=null;for(const _0x138208 of _0x57df28){const _0x4b7424=this['_getVidAttributeName'](_0x138208),_0xfba688=_0x138208['item']['getAttribute'](_0x4b7424),_0x1059dd=_0x7b50e0['get'](_0xfba688);_0x1059dd&&'elementStart'==_0x138208['type']&&(_0x5b6365=Array['from'](_0x1059dd)[0x0],_0x4cf3db=_0x138208['item']['getAttribute']('vid_end')),_0x5b6365&&(_0x3598c5['set'](_0xfba688,{'userId':_0x5b6365}),_0x225f36['set'](_0xfba688,{'userId':_0x5b6365})),_0xfba688==_0x4cf3db&&(_0x5b6365=null,_0x4cf3db=null);}}const _0x13003d={},_0x2ca2fd=new Set();for(const _0x3dde8e of _0x123a20){const _0x40321e=_0x4fe0ba['deletions'][_0x3dde8e],_0x1fd578=_0x4fe0ba['insertions'][_0x3dde8e];for(const {userId:_0x256e44}of this['_touchedMarkers']['values']())null!==_0x256e44&&_0x2ca2fd['add'](_0x256e44);for(const {userId:_0x4638c7}of this['_touchedRoots']['values']())null!==_0x4638c7&&_0x2ca2fd['add'](_0x4638c7);this['_markChanges'](_0x1fd578,_0x5c12c8['insertions'][_0x3dde8e],_0x225f36,'insertion',_0x2ca2fd),this['_markChanges'](_0x40321e,_0x5c12c8['deletions'][_0x3dde8e],_0x3598c5,'deletion',_0x2ca2fd),_0x13003d[_0x3dde8e]={'insertions':this['_prepareViewToSave'](_0x1fd578),'deletions':this['_prepareViewToSave'](_0x40321e),'attachChange':this['_touchedRoots']['get'](_0x3dde8e)||null,'attributesBefore':_0x377d2c(this['_baseRootsAttributes']['get'](_0x3dde8e))||{},'attributesAfter':_0x377d2c(this['_diffRootsAttributes']['get'](_0x3dde8e))};}return{'diffData':_0x13003d,'authorsIds':Array['from'](_0x2ca2fd)};}['_processRootBeforeSave'](_0x270b19){for(const [,_0x1fda07]of _0x270b19['markers']){const _0x47aefb=_0x1fda07['start']['getAncestors']()['filter'](_0x3fad35=>'tableCell'==_0x3fad35['name']);for(const _0x1a484d of _0x47aefb)0x1==_0x1a484d['childCount']&&_0x1a484d['getChild'](0x0)['is']('element','paragraph')&&_0x1a484d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x284474){this['_processRootBeforeSave'](_0x284474);const _0x21cc8c=this['editor']['data']['toView'](_0x284474,{}),_0x1aca4c=Array['from'](_0x21cc8c['getChildren']())['map'](_0xea4e3=>this['_getViewJson'](_0xea4e3));return JSON['stringify'](_0x1aca4c);}['_getViewJson'](_0x3b502b){if(_0x3b502b['is']('$text'))return _0x3b502b['data'];{const _0x3618b2=_0x3b502b;return{'type':Object['keys'](E)['find'](_0x8cfa3a=>_0x3b502b instanceof E[_0x8cfa3a]),'name':_0x3618b2['name'],'attributes':Array['from'](_0x3618b2['getAttributes']()),'children':Array['from'](_0x3618b2['getChildren']())['map'](_0x787ced=>this['_getViewJson'](_0x787ced))};}}['_markChanges'](_0x2422f5,_0x66a1fc,_0x25e155,_0x3c4f42,_0x577516){let _0x167dea=null,_0x6f16a9=null,_0x34f1b7=0x0;const _0x4737ff=this['editor']['model'];for(let _0x5dec10=0x0;_0x5dec10<_0x66a1fc['length'];_0x5dec10++){const _0x51801f=this['_getVidAttributeName'](_0x66a1fc[_0x5dec10]),_0x4d6580=_0x66a1fc[_0x5dec10]['item']['getAttribute'](_0x51801f),_0x45f659=_0x25e155['get'](_0x4d6580),_0x4c419a=_0x5dec10==_0x66a1fc['length']-0x1;(!_0x167dea&&_0x45f659&&(_0x167dea=_0x45f659,_0x6f16a9=_0x66a1fc[_0x5dec10]),_0x167dea&&(!_0x45f659||_0x45f659['userId']!=_0x167dea['userId']))&&(_0x338953(_0x45f659,B(_0x6f16a9,_0x2422f5,_0x4737ff),B(_0x66a1fc[_0x5dec10],_0x2422f5,_0x4737ff)),_0x167dea=_0x45f659||null,_0x6f16a9=_0x45f659?_0x66a1fc[_0x5dec10]:null),_0x167dea&&_0x4c419a&&_0x338953(_0x45f659,B(_0x6f16a9,_0x2422f5,_0x4737ff),J(_0x66a1fc[_0x5dec10],_0x2422f5,_0x4737ff));}function _0x338953(_0x2c609b,_0x506d24,_0x2172c3){const _0x1f220e=_0x167dea['userId'],_0x54c1f8='revision:'+_0x3c4f42+':'+_0x1f220e+':'+_0x34f1b7++,_0x5bd36c=_0x4737ff['createRange'](_0x506d24,_0x2172c3);_0x2422f5['markers']['set'](_0x54c1f8,_0x5bd36c),null!==_0x1f220e&&_0x577516['add'](_0x1f220e);}}['_getVidAttributeName'](_0x14be62){switch(_0x14be62['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x59e7a9,_0xbc15b6){_0x59e7a9['baseVersion']=null;for(const _0x44155e in _0x59e7a9){const _0x41b78e=_0x59e7a9[_0x44155e];if(_0x41b78e instanceof vt){const _0xa4dbd6=_0xbc15b6['get'](_0x41b78e['root']['rootName']);_0x59e7a9[_0x44155e]=this['_fixPosition'](_0x41b78e,_0xa4dbd6);}if(_0x41b78e instanceof ft){const _0x425cbf=_0xbc15b6['get'](_0x41b78e['root']['rootName']);_0x59e7a9[_0x44155e]=this['_fixRange'](_0x41b78e,_0x425cbf);}'root'===_0x44155e&&(_0x59e7a9['root']=_0xbc15b6['get'](_0x59e7a9['root']['rootName']));}}['_fixRange'](_0x5f4313,_0x59b7f3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5f4313['start'],_0x59b7f3),this['_fixPosition'](_0x5f4313['end'],_0x59b7f3));}['_fixPosition'](_0xed2a44,_0x1f9163){return this['editor']['model']['createPositionFromPath'](_0x1f9163,_0xed2a44['path'],_0xed2a44['stickiness']);}['_handleInsertOperation'](_0x31edb0){const _0x25ebd4=this['_idsRoots']['get'](_0x31edb0['position']['root']['rootName']),_0x138e76=this['_fixPosition'](_0x31edb0['position'],_0x25ebd4),_0x29cf5e=null===_0x31edb0['_authorId']?null:_0x31edb0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x500b0e=_0x138e76['parent'],_0x3bcccc=this['_revisionId'],_0x1577fa=[];for(const _0x2beded of _0x31edb0['nodes'])if(_0x2beded['is']('element'))_0x1577fa['push'](this['_makeIdsRoot'](_0x2beded));else{for(let _0x59d1a1=0x0;_0x59d1a1<_0x2beded['offsetSize'];_0x59d1a1++)_0x1577fa['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x290f5b=this['_revisionId'];for(let _0x1c6971=_0x3bcccc;_0x1c6971<_0x290f5b;_0x1c6971++)this['_touched']['set'](_0x1c6971,{'userId':_0x29cf5e});_0x500b0e['_insertChild'](_0x138e76['offset'],_0x1577fa);}['_handleMoveOperation'](_0x1549f1){(_0x1549f1=this['_cloneOperation'](_0x1549f1,this['_idsRoots']))['_execute']();const _0x440698=null===_0x1549f1['_authorId']?null:_0x1549f1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5dee84=_0x1549f1['getMovedRangeStart'](),_0xd14ab4=_0x5dee84['parent'],_0x3ea7da=_0x5dee84['offset'];!function _0x1902c9(_0x4f2165,_0x199d24,_0x104951,_0x303209){for(let _0x2ac40e=_0x104951;_0x2ac40e<_0x303209;_0x2ac40e++){const _0x18139c=_0x199d24['getChild'](_0x2ac40e);_0x18139c['is']('element','$text')?_0x4f2165['set'](_0x18139c['getAttribute']('vid'),{'userId':_0x440698}):(_0x4f2165['set'](_0x18139c['getAttribute']('vid_start'),{'userId':_0x440698}),_0x1902c9(_0x4f2165,_0x18139c,0x0,_0x18139c['childCount']),_0x4f2165['set'](_0x18139c['getAttribute']('vid_end'),{'userId':_0x440698}));}}(this['_touched'],_0xd14ab4,_0x3ea7da,_0x3ea7da+_0x1549f1['howMany']);}['_handleMergeOperation'](_0x551ad7){const _0x2af88e=null===(_0x551ad7=this['_cloneOperation'](_0x551ad7,this['_idsRoots']))['_authorId']?null:_0x551ad7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47567f=_0x551ad7['targetPosition']['parent'],_0x1e2286=_0x551ad7['sourcePosition']['parent'],_0x5595da=_0x47567f['getAttribute']('vid_end'),_0x18c461=_0x1e2286['getAttribute']('vid_start');_0x47567f['_setAttribute']('vid_end',_0x1e2286['getAttribute']('vid_end')),_0x1e2286['_setAttribute']('vid_end',_0x5595da),this['_touched']['set'](_0x18c461,{'userId':_0x2af88e}),this['_touched']['set'](_0x5595da,{'userId':_0x2af88e}),_0x551ad7['_execute']();}['_handleSplitOperation'](_0x548ea2){const _0x33134b=null===(_0x548ea2=this['_cloneOperation'](_0x548ea2,this['_idsRoots']))['_authorId']?null:_0x548ea2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e3d67=_0x548ea2['graveyardPosition'],_0x9fbdc9=_0x548ea2['splitPosition']['parent'];_0x548ea2['_execute']();const _0x106aac=_0x9fbdc9['getAttribute']('vid_end'),_0xee16ac=_0x548ea2['insertionPosition']['nodeAfter'];if(_0x1e3d67){const _0x45c9d9=_0xee16ac['getAttribute']('vid_end'),_0x43a425=_0x9fbdc9['getAttribute']('vid_end');_0x9fbdc9['_setAttribute']('vid_end',_0x45c9d9),_0xee16ac['_setAttribute']('vid_end',_0x43a425),this['_touched']['set'](_0x9fbdc9['getAttribute']('vid_end'),{'userId':_0x33134b}),this['_touched']['set'](_0xee16ac['getAttribute']('vid_start'),{'userId':_0x33134b});}else{const _0x1e02ab=this['_revisionId']++,_0x31fd7e=this['_revisionId']++;_0x9fbdc9['_setAttribute']('vid_end',_0x1e02ab),_0xee16ac['_setAttribute']('vid_start',_0x31fd7e),_0xee16ac['_setAttribute']('vid_end',_0x106aac),this['_touched']['set'](_0x1e02ab,{'userId':_0x33134b}),this['_touched']['set'](_0x31fd7e,{'userId':_0x33134b});}}['_handleMarkerOperation'](_0x360e1b){if(!_0x360e1b['affectsData'])return;const _0x355187=(_0x360e1b=this['_cloneOperation'](_0x360e1b,this['_diffRoots']))['oldRange']?_0x360e1b['oldRange']['root']:null,_0x2ea7dc=_0x360e1b['newRange']?_0x360e1b['newRange']['root']:null;_0x355187&&this['_markers']['delete'](_0x360e1b['name']),_0x2ea7dc&&this['_markers']['set'](_0x360e1b['name'],_0x360e1b['newRange']['clone']());const _0x352090=null===_0x360e1b['_authorId']?null:_0x360e1b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e4f83=_0x360e1b['name'];if(!this['_touchedMarkers']['has'](_0x1e4f83))return void this['_touchedMarkers']['set'](_0x1e4f83,{'range':_0x360e1b['oldRange'],'userId':_0x352090});const _0x58b36b=this['_touchedMarkers']['get'](_0x1e4f83),_0x395929=_0x58b36b['range'],_0x7a486a=_0x360e1b['newRange'];null==_0x395929&&null==_0x7a486a||_0x395929&&_0x7a486a&&_0x395929['isEqual'](_0x7a486a)?this['_touchedMarkers']['delete'](_0x360e1b['name']):_0x58b36b['userId']=_0x352090;}['_handleRootOperation'](_0xaf49b8,_0x3ced84){this['_diffRoots']['has'](_0xaf49b8['rootName'])?this['_diffRoots']['get'](_0xaf49b8['rootName'])['_isAttached']=_0xaf49b8['isAdd']:(this['_diffRoots']['set'](_0xaf49b8['rootName'],F(_0xaf49b8['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xaf49b8['rootName'],{}),_0x3ced84&&this['_idsRoots']['set'](_0xaf49b8['rootName'],F(_0xaf49b8['rootName'],!0x0)));const _0x4a34dc=null===_0xaf49b8['_authorId']?null:_0xaf49b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x100880=this['_touchedRoots']['get'](_0xaf49b8['rootName']);_0x100880&&_0x100880['userId']===_0x4a34dc?this['_touchedRoots']['delete'](_0xaf49b8['rootName']):this['_touchedRoots']['set'](_0xaf49b8['rootName'],{'userId':_0x4a34dc,'isAttached':_0xaf49b8['isAdd']});}['_handleRootAttributeOperation'](_0x2dd743){const _0x3bcdd4=this['_diffRootsAttributes']['get'](_0x2dd743['root']['rootName']);null===_0x2dd743['newValue']?delete _0x3bcdd4[_0x2dd743['key']]:_0x3bcdd4[_0x2dd743['key']]=_0x2dd743['newValue'];}}function T(_0x2ed531){const _0x427821=F(_0x2ed531['rootName'],_0x2ed531['isAttached']());for(const _0x5014ae of _0x2ed531['getChildren']()){const _0x1f580f=_0x5014ae['_clone'](!0x0);_0x427821['_appendChild'](_0x1f580f);}return _0x427821;}function F(_0x4ff572,_0x4d0186=!0x0){const _0x26a28f=new gt();return _0x26a28f['rootName']=_0x4ff572,_0x26a28f['_isAttached']=_0x4d0186,_0x26a28f['isAttached']=()=>_0x26a28f['_isAttached'],_0x26a28f;}function B(_0x4878dc,_0x46b191,_0xd4cca2){const _0x507336='elementEnd'==_0x4878dc['type']?_0xd4cca2['createPositionAt'](_0x4878dc['item'],'end'):_0xd4cca2['createPositionBefore'](_0x4878dc['item']);return _0xd4cca2['createPositionFromPath'](_0x46b191,_0x507336['path'],_0x507336['stickiness']);}function J(_0x49c7b9,_0x29e958,_0x31f5d0){const _0x4bc755='elementStart'==_0x49c7b9['type']?_0x31f5d0['createPositionAt'](_0x49c7b9['item'],0x0):_0x31f5d0['createPositionAfter'](_0x49c7b9['item']);return _0x31f5d0['createPositionFromPath'](_0x29e958,_0x4bc755['path'],_0x4bc755['stickiness']);}class os extends _0x1119f9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x23d698,_0x1a66ee){super(_0x23d698),this['focusTracker']=new _0x41476a(),this['keystrokes']=new _0x72e416(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1a66ee),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'](),_0x582dad({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2828a4=_0x53dabd=>_0x53dabd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2828a4),this['keystrokes']['set']('arrowleft',_0x2828a4),this['keystrokes']['set']('arrowup',_0x2828a4),this['keystrokes']['set']('arrowdown',_0x2828a4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xfca1ce){this['revisionNameInputView']['fieldView']['element']['value']=_0xfca1ce['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3750b7){const _0x11d4ee=new at(this['locale'],ti),_0x5ef0b4=_0x11d4ee['fieldView'];_0x5ef0b4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x17d8a0=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3750b7&&(_0x17d8a0+='\x20('+m(this['locale'],'optional')+')'),(_0x11d4ee['label']=_0x17d8a0,_0x5ef0b4['on']('input',()=>{this['revisionNameInputValue']=_0x5ef0b4['element']['value']['trim']();}),_0x11d4ee);}}class f extends _0x45244f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5617dd=this['editor'],_0x59d84c=_0x5617dd['plugins']['get']('RevisionTracker');_0x5617dd['ui']['componentFactory']['add']('revisionHistory',_0x2baa45=>{const _0x23005b=_0x369c57(_0x2baa45),_0x1f2102=_0x23005b['panelView']['children'],_0xfa8202=new _0x1cc131(_0x2baa45),_0x4858bc=new te(_0x2baa45),_0x1ce870=new _0x521e80(_0x2baa45),_0x131e82=new te(_0x2baa45),_0x3ab9b1=new _0x521e80(_0x2baa45);return _0x23005b['bind']('isEnabled')['to'](_0x59d84c,'isReady',_0x59d84c,'isEnabled',_0x5617dd,'isReadOnly',(_0x583fcd,_0xa852ff,_0x51091e)=>_0x583fcd&&_0xa852ff&&!_0x51091e),_0x23005b['buttonView']['set']({'icon':_0x3ba4d1,'label':m(_0x2baa45,'Revision\x20history'),'tooltip':!0x0}),_0x1ce870['set']({'label':m(_0x2baa45,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ce870['bind']('isEnabled')['to'](_0x59d84c,'isReady',_0x59d84c,'isEnabled',_0x5617dd,'isReadOnly',(_0x5383b1,_0xefaa6,_0x42419d)=>_0x5383b1&&_0xefaa6&&!_0x42419d),_0x1ce870['on']('execute',()=>this['_showDialog']()),_0x3ab9b1['set']({'label':m(_0x2baa45,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3ab9b1['bind']('isEnabled')['to'](_0x59d84c,'isReady',_0x5617dd,'isReadOnly',(_0x5f5dbd,_0xffb3e9)=>_0x5f5dbd&&!_0xffb3e9),_0x3ab9b1['on']('execute',()=>{_0x5617dd['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x23005b['isOpen']=!0x1,_0x5617dd['editing']['view']['focus']();}),_0x4858bc['children']['add'](_0x1ce870),_0x131e82['children']['add'](_0x3ab9b1),_0xfa8202['role']='menu',_0xfa8202['items']['addMany']([_0x4858bc,_0x131e82]),_0x1f2102['add'](_0xfa8202),_0x23005b;}),_0x5617dd['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x885d3c=this['editor'],_0x27efe6=_0x885d3c['locale'],_0x1bac39=new _0xfe8b5f(_0x27efe6),_0x311bfb=new _0x2382a3(_0x27efe6);_0x1bac39['buttonView']['set']({'icon':_0x3ba4d1,'label':m(_0x27efe6,'Revision\x20history')});const _0x2be497=new _0x5675cc(_0x27efe6,_0x1bac39),_0x3e2b5b=new _0x5c7168(_0x27efe6);_0x3e2b5b['set']({'label':m(_0x27efe6,'Save\x20current\x20revision')}),_0x3e2b5b['delegate']('execute')['to'](_0x1bac39),_0x3e2b5b['on']('execute',()=>{this['_showDialog']();}),_0x2be497['children']['add'](_0x3e2b5b),_0x311bfb['items']['add'](_0x2be497);const _0x46e8ec=new _0x5675cc(_0x27efe6,_0x1bac39),_0x188e02=new _0x5c7168(_0x27efe6);return _0x188e02['set']({'label':m(_0x27efe6,'Open\x20revision\x20history')}),_0x188e02['delegate']('execute')['to'](_0x1bac39),_0x188e02['on']('execute',()=>{_0x885d3c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x46e8ec['children']['add'](_0x188e02),_0x311bfb['items']['add'](_0x46e8ec),_0x1bac39['panelView']['children']['add'](_0x311bfb),_0x1bac39;}['_showDialog'](){const _0x29da67=this['editor'],_0x6e843f=_0x29da67['locale'],_0x4edad9=_0x29da67['plugins']['get']('Dialog'),_0x3483df=_0x29da67['plugins']['get']('RevisionTracker');function _0x3c085e(_0x2730ac){_0x29da67['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2730ac['revisionName']?_0x2730ac['revisionNameInputView']['errorText']=m(_0x6e843f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x29da67['plugins']['get'](u)['saveRevision']({'name':_0x2730ac['revisionName']}),_0x4edad9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3c085e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4edad9['show']({'id':'revisionSave','title':m(_0x6e843f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x29da67['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4edad9['hide']()},{'label':m(_0x29da67['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2ade83){_0x2ade83['bind']('isEnabled')['to'](_0x3483df,'isReady',_0x3483df,'isEnabled',_0x29da67,'isReadOnly',(_0x129739,_0x5926ce,_0x22486a)=>_0x129739&&_0x5926ce&&!_0x22486a);},'onExecute':()=>_0x3c085e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x361e9a=this['editor'],_0x2c95f7=_0x361e9a['locale'];this['_saveRevisionFormView']=new os(_0x2c95f7,_0x361e9a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x1119f9{['changeId'];['_model'];constructor(_0x256376,_0x2a07e2){super(_0x256376),this['_model']=_0x2a07e2,this['changeId']=_0x2a07e2['id'];const _0x5f4d40=this['bindTemplate'],_0x3ac8f0=m(_0x256376,_0x2a07e2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2a07e2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2a07e2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5f4d40['to']('type',_0x5ed35c=>'ck-revision-change__'+_0x5ed35c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3ac8f0}]},{'text':'\x20'+_0x2a07e2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xd86b79(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5889c3){super(),this['id']=_0x5889c3['id']||_0x5b3171(),this['author']=_0x5889c3['author'],this['type']=_0x5889c3['type'],this['data']=_0x5889c3['data']||{},this['rootName']=_0x5889c3['rootName'],this['set']('createdAt',_0x5889c3['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(_0x1f0061,_0x32e76a){this['newRevisionId']=_0x1f0061,this['oldRevisionId']=_0x32e76a,this['changes']=new _0x3d47b3();}['_setChanges'](_0x88ae50){for(const _0x53380d of _0x88ae50)this['changes']['add'](_0x53380d);}}const Y={'c':_0x2acc3d,'a':_0x1690f0,'e':_0x510328,'r':_0x1a03fd,'u':_0x91a45c};class d extends _0x45244f{['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[_0x499f02,_0x367829,j];}constructor(_0x1cb210){super(_0x1cb210),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',(_0x5e3171,_0x233d74,_0xf912b2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x22518f=>{for(const _0x5bc0b9 of this['editor']['editing']['view']['document']['roots'])_0xf912b2?_0x22518f['removeClass']('ck-editor__editable__overlay',_0x5bc0b9):_0x22518f['addClass']('ck-editor__editable__overlay',_0x5bc0b9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xee288a=>null!==_0xee288a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x644fcd,_0x268ffd,_0x3620f7)=>_0x644fcd&&_0x3620f7?_0x268ffd['changes']['getIndex'](_0x3620f7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x20ded5,_0x5a46cd)=>_0x20ded5?_0x5a46cd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x367829);}['init'](){const _0x1f7812=this['editor'],_0x4c327c=new yt(_0x1f7812,{'direction':'backward'}),_0xa26441=new yt(_0x1f7812,{'direction':'forward'});(_0x1f7812['commands']['add']('showPreviousChange',_0x4c327c),_0x1f7812['commands']['add']('showNextChange',_0xa26441),_0x1f7812['commands']['add']('restoreRevision',new _t(_0x1f7812)),this['on']('change:numberOfChanges',()=>{_0x4c327c['refresh'](),_0xa26441['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f7812['enableReadOnlyMode']('revision-viewer'),_0x1f7812['plugins']['has']('WidgetToolbarRepository'))&&_0x1f7812['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4a66f0){await this['loadRevisionData'](_0x4a66f0);const _0x2afe06={};for(const _0x340ace in _0x4a66f0['diffData']){if(_0x4a66f0['diffData'][_0x340ace]['attachChange']&&!_0x4a66f0['diffData'][_0x340ace]['attachChange']['isAttached'])continue;const _0x2c05e0=this['_removeRevisionMarkers'](JSON['parse'](_0x4a66f0['diffData'][_0x340ace]['insertions'])),_0x179317=this['editor']['editing']['view']['document'],_0x857eb9=new _0x17d136(_0x179317,_0x2c05e0['map'](_0x5f378a=>this['_getViewObj'](_0x5f378a)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2afe06[_0x340ace]=this['editor']['data']['processor']['toData'](_0x857eb9),this['editor']['data']['processor']['useFillerType']('default');}return _0x2afe06;}async['getRevisionRootsAttributes'](_0x2bcbb4){await this['loadRevisionData'](_0x2bcbb4);const _0x4a8506={};for(const _0x427543 in _0x2bcbb4['diffData'])_0x2bcbb4['diffData'][_0x427543]['attachChange']&&!_0x2bcbb4['diffData'][_0x427543]['attachChange']['isAttached']||(_0x4a8506[_0x427543]=_0x2bcbb4['diffData'][_0x427543]['attributesAfter']||{});return _0x4a8506;}['_removeRevisionMarkers'](_0x4e57e7){return(_0x4e57e7=_0x4e57e7['filter'](_0xdc53af=>!_0xdc53af['name']||'revision-start'!==_0xdc53af['name']&&'revision-end'!==_0xdc53af['name']))['forEach'](_0x406ca0=>{'string'!=typeof _0x406ca0&&(_0x406ca0['children']=this['_removeRevisionMarkers'](_0x406ca0['children']),_0x406ca0['attributes']=_0x406ca0['attributes']['filter'](_0x230242=>!_0x230242[0x0]['startsWith']('data-revision-')));}),_0x4e57e7;}async['compare'](_0xc6f59a,_0x1ddf31,_0x5e408d=!0x1){if(!this['isEnabled'])return;const _0x5eb786=this['diff'],_0x43b0be=this['repository'],_0x227f45='string'==typeof _0xc6f59a?_0x43b0be['getRevision'](_0xc6f59a):_0xc6f59a,_0xdc14d='string'==typeof _0x1ddf31?_0x43b0be['getRevision'](_0x1ddf31):_0x1ddf31,_0x48b813=_0x227f45['id'],_0x5052f9=_0xdc14d?_0xdc14d['id']:null;if(!_0x5e408d&&this['diff']&&this['diff']['newRevisionId']===_0x48b813&&this['diff']['oldRevisionId']===_0x5052f9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x48b813,_0x5052f9);const _0x22e7c9=this['_getRevisionsRange'](_0x227f45,_0xdc14d,!0x0)['map'](_0x2a7169=>this['loadRevisionData'](_0x2a7169));return _0x22e7c9['push'](new Promise(_0x18af09=>{setTimeout(_0x18af09,0x14);})),Promise['all'](_0x22e7c9)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4abe12=this['_getDiff'](_0x48b813,_0x5052f9);for(const _0x3d7077 of _0x4abe12['changes'])this['_changeIdToChange']['set'](_0x3d7077['id'],_0x3d7077);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x31086f=>{for(const _0x4fbe5b of this['editor']['model']['document']['getRootNames']())_0x31086f['detachRoot'](_0x4fbe5b);for(const _0x250aaa of Object['keys'](_0x4abe12['model'])){const _0x5dba75=_0x31086f['addRoot'](_0x250aaa);for(const _0x1a0f62 of Object['keys'](_0x4abe12['attributes'][_0x250aaa]))_0x31086f['setAttribute'](_0x1a0f62,_0x4abe12['attributes'][_0x250aaa][_0x1a0f62],_0x5dba75);_0x31086f['insert'](_0x4abe12['model'][_0x250aaa],_0x5dba75,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4abe12['changes'])),this['isReady']=!0x0;})['catch'](_0x41468d=>{console['error'](_0x41468d),this['_cleanUp'](),_0x5eb786&&(this['diff']=_0x5eb786),this['isReady']=!0x0;});}['addRevisionData'](_0x3bf7b9,_0x40d2d2){const _0x3ffda7=this['repository']['createRevision'](_0x3bf7b9);return _0x3ffda7['on']('_update',(_0x48ccca,_0x287118,_0x164391)=>_0x40d2d2(_0x287118,_0x164391,_0x3ffda7)),this['repository']['addRevision'](_0x3ffda7),_0x3ffda7;}['loadRevisionData'](_0x1ef334){if(!_0x1ef334||_0x1ef334['diffData'])return Promise['resolve']();{const _0x39edfd=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x39edfd,'revisionId':_0x1ef334['id']})['then'](_0xa9b441=>{_0x1ef334['_update']({'diffData':_0xa9b441['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},_0x1d38de=>{for(const _0x5b2d34 of this['editor']['model']['document']['getRootNames']())_0x1d38de['detachRoot'](_0x5b2d34);});}['_sortAndFilterDiffChanges'](_0x2e543c){const _0x1dcfd0=[],_0xfe1a1b=new Map();for(const _0xefee5f of this['editor']['model']['document']['getRootNames']()){const _0x480d79=this['editor']['editing']['view']['getDomRoot'](_0xefee5f);if(!_0x480d79)continue;const _0xbea575=_0x480d79['getClientRects']()['item'](0x0);_0xbea575&&(_0x1dcfd0['push'](_0xefee5f),_0xfe1a1b['set'](_0xefee5f,_0xbea575));}return _0x1dcfd0['sort']((_0x4b20f8,_0x2a704d)=>{const _0x4547dc=_0xfe1a1b['get'](_0x4b20f8),_0x1c8959=_0xfe1a1b['get'](_0x2a704d);return _0x4547dc['y']-_0x1c8959['y']||_0x4547dc['x']-_0x1c8959['x'];}),(_0x2e543c=_0x2e543c['filter'](_0x28801f=>_0x1dcfd0['includes'](_0x28801f['rootName'])))['sort']((_0x59ed49,_0x3519a8)=>_0x1dcfd0['indexOf'](_0x59ed49['rootName'])-_0x1dcfd0['indexOf'](_0x3519a8['rootName'])),_0x2e543c;}['_makeTape'](_0x3c3d04){const _0x30f312=Array['from'](_0x3c3d04['markers'])['filter'](([_0x252f55,_0xae688e])=>_0x252f55['startsWith']('revision:')&&!_0xae688e['isCollapsed']),_0x427c1a=Array['from'](this['editor']['model']['createRangeIn'](_0x3c3d04)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x30f312['length'])for(const _0x2e7e7c of _0x427c1a){const [_0x34c75e,_0xee9e6f]=_0x30f312[0x0],[,_0x5455cf,_0x3339dc]=_0x34c75e['split'](':');if(_0xee9e6f['end']['isEqual'](_0x2e7e7c['nextPosition'])&&_0x30f312['shift'](),(_0x2e7e7c['previousPosition']['isEqual'](_0xee9e6f['start'])||_0x2e7e7c['previousPosition']['isAfter'](_0xee9e6f['start']))&&('insertion'==_0x5455cf?_0x2e7e7c['isAdded']={'userId':_0x3339dc}:'deletion'==_0x5455cf&&(_0x2e7e7c['isRemoved']={'userId':_0x3339dc})),0x0==_0x30f312['length'])break;}return _0x427c1a;}['_refreshStartEndIndex'](_0x2fd048){const _0x2e5d58=new Map();for(let _0x4a7992=0x0;_0x4a7992<_0x2fd048['length'];_0x4a7992++)'text'===_0x2fd048[_0x4a7992]['type']?(_0x2fd048[_0x4a7992]['item']['startIndex']=_0x4a7992,_0x2fd048[_0x4a7992]['item']['endIndex']=_0x4a7992):('elementStart'===_0x2fd048[_0x4a7992]['type']?_0x2fd048[_0x4a7992]['item']['startIndex']=_0x4a7992:'elementEnd'===_0x2fd048[_0x4a7992]['type']&&(_0x2fd048[_0x4a7992]['item']['endIndex']=_0x4a7992),_0x2e5d58['set'](_0x2fd048[_0x4a7992]['id'],_0x4a7992));for(const _0x5cafa4 of _0x2e5d58['values']())'elementStart'===_0x2fd048[_0x5cafa4]['type']?_0x2fd048[_0x5cafa4]['item']['endIndex']=_0x2e5d58['get'](_0x2fd048[_0x5cafa4]['pairId']):'elementEnd'===_0x2fd048[_0x5cafa4]['type']&&(_0x2fd048[_0x5cafa4]['item']['startIndex']=_0x2e5d58['get'](_0x2fd048[_0x5cafa4]['pairId']));}['_processTape'](_0x53b58b){for(let _0x49c2b4=0x0;_0x49c2b4<_0x53b58b['length'];_0x49c2b4++){if('elementStart'===_0x53b58b[_0x49c2b4]['type'])_0x53b58b[_0x49c2b4]['item']['startIndex']=_0x49c2b4;else{if('elementEnd'===_0x53b58b[_0x49c2b4]['type']){_0x53b58b[_0x49c2b4]['item']['endIndex']=_0x49c2b4;const _0x63e5f=_0x53b58b[_0x49c2b4]['item']['startIndex'];_0x53b58b[_0x63e5f]['pairId']=_0x53b58b[_0x49c2b4]['id'],_0x53b58b[_0x49c2b4]['pairId']=_0x53b58b[_0x63e5f]['id'];}else _0x53b58b[_0x49c2b4]['item']['startIndex']=_0x49c2b4,_0x53b58b[_0x49c2b4]['item']['endIndex']=_0x49c2b4,_0x53b58b[_0x49c2b4]['pairId']=null;}_0x53b58b[_0x49c2b4]['markersStart']||(_0x53b58b[_0x49c2b4]['markersStart']=[],_0x53b58b[_0x49c2b4]['markersEnd']=[]);}}['_markInsertions'](_0xcb521f,_0x19e1c1){const _0x3fcca2=_0xcb521f['filter'](_0x4be195=>!_0x4be195['isAdded']);for(let _0x49729d=0x0;_0x49729d<_0x19e1c1['length'];_0x49729d++)_0x19e1c1[_0x49729d]['isAdded']&&(_0x3fcca2[_0x49729d]['isAdded']=_0x19e1c1[_0x49729d]['isAdded']);}['_makeModelFromViewString'](_0x3c31aa){const _0x5b0e1c=JSON['parse'](_0x3c31aa),_0x63852d=this['editor']['editing']['view']['document'],_0x1be2b3=new _0x17d136(_0x63852d,_0x5b0e1c['map'](_0x2a326b=>this['_getViewObj'](_0x2a326b)));return this['editor']['data']['toModel'](_0x1be2b3);}['_getViewObj'](_0x345ffd){const _0x2cf872=this['editor']['editing']['view']['document'];if('string'==typeof _0x345ffd)return new _0xf4d2d1(_0x2cf872,_0x345ffd);{const _0xeec1c8=_0x345ffd['children']['map'](_0xe25e94=>this['_getViewObj'](_0xe25e94));return new(Y[_0x345ffd['type']]||_0x3a93a8)(_0x2cf872,_0x345ffd['name'],_0x345ffd['attributes'],_0xeec1c8);}}['_getDiff'](_0x162418,_0x503da4=null){const _0x408d4a=this['repository']['getRevision'](_0x162418),_0x3ad950=_0x503da4?this['repository']['getRevision'](_0x503da4):null,_0x533ac5=this['_getRevisionsRange'](_0x408d4a,_0x3ad950),_0x23d804=_0x533ac5[_0x533ac5['length']-0x1],_0x1224da=new Map(),_0x16c077={'model':{},'attributes':{},'changes':[]},_0x108c63=new Set(),_0xdee3bc=new Map();for(let _0x73d3c5=_0x533ac5['length']-0x1;_0x73d3c5>=0x0;_0x73d3c5--){const _0x1c62fe=_0x533ac5[_0x73d3c5];for(const _0x528f76 of Object['keys'](_0x1c62fe['diffData']))if(_0x1c62fe['diffData'][_0x528f76]['attachChange']){const _0x5d94e4=_0x1c62fe['diffData'][_0x528f76]['attachChange'];_0x5d94e4['isAttached']?(_0x108c63['add'](_0x528f76),_0xdee3bc['has'](_0x528f76)&&_0xdee3bc['get'](_0x528f76)['userId']==_0x5d94e4['userId']?_0xdee3bc['delete'](_0x528f76):_0xdee3bc['set'](_0x528f76,_0x5d94e4)):_0xdee3bc['has'](_0x528f76)?(_0x108c63['delete'](_0x528f76),_0xdee3bc['delete'](_0x528f76)):(_0x108c63['add'](_0x528f76),_0xdee3bc['set'](_0x528f76,_0x5d94e4));}else _0x108c63['add'](_0x528f76);}for(const _0x2848af of _0x108c63){const _0x428dea=_0xdee3bc['has'](_0x2848af)&&!_0xdee3bc['get'](_0x2848af)['isAttached'];let _0x4509c6=_0x428dea?_0x533ac5['length']-0x1:0x0;const _0x296aa4=_0x428dea?-0x1:0x1;for(;_0x533ac5[_0x4509c6];){const _0x246168=_0x533ac5[_0x4509c6];if(_0x246168['diffData'][_0x2848af]){const _0x13ecf5=_0x428dea?_0x246168['diffData'][_0x2848af]['attributesBefore']:_0x246168['diffData'][_0x2848af]['attributesAfter'];_0x16c077['attributes'][_0x2848af]=_0x13ecf5?_0x377d2c(_0x13ecf5):{};break;}_0x4509c6+=_0x296aa4;}}for(const _0x15a5b3 of _0x533ac5){_0x15a5b3['model']={};for(const _0x4a4bdf of _0x15a5b3['authors'])_0x1224da['set'](_0x4a4bdf['id'],_0x4a4bdf);for(const _0x277e86 of _0x108c63){const _0x2a062b=_0x15a5b3['diffData'][_0x277e86]?_0x15a5b3['diffData'][_0x277e86]['insertions']:'[]',_0x18cf54=_0x15a5b3['diffData'][_0x277e86]?_0x15a5b3['diffData'][_0x277e86]['deletions']:'[]';_0x15a5b3['model'][_0x277e86]={'insertions':this['_makeModelFromViewString'](_0x2a062b),'deletions':this['_makeModelFromViewString'](_0x18cf54)};}}for(const _0x75f4e of _0x108c63){let _0x589916=null,_0x4d6b51=0x0;const _0x4ab496=new Map(Array['from'](_0x408d4a['model'][_0x75f4e]['insertions']['markers'])['filter'](([_0x20c449])=>!_0x20c449['startsWith']('revision:')));let _0x592b6d=0x0;for(const _0x149ebe of _0x533ac5){const _0x4b73a5=this['_makeTape'](_0x149ebe['model'][_0x75f4e]['insertions']);_0x149ebe==_0x408d4a?(_0x589916=_0x4b73a5,_0x4d6b51=_0x589916['length'],_0x589916['forEach'](_0x440bbd=>{_0x440bbd['id']=_0x592b6d++;}),this['_processTape'](_0x589916)):this['_markInsertions'](_0x589916,_0x4b73a5);const _0x3acc21=_0x589916['filter'](_0x5cc7bd=>!_0x5cc7bd['isAdded'])['map'](_0x5af4a6=>_0x5af4a6['id']);let _0xa388b2=0x0;const _0x5502b9=this['_makeTape'](_0x149ebe['model'][_0x75f4e]['deletions']);_0x5502b9['forEach'](_0x3a5fcd=>{_0x3a5fcd['isRemoved']?_0x3a5fcd['id']=_0x4d6b51++:_0x3a5fcd['id']=_0x3acc21[_0xa388b2++];}),this['_processTape'](_0x5502b9),this['_setDistance'](_0x589916,'isAdded'),this['_setDistance'](_0x5502b9,'isRemoved'),_0x149ebe==_0x408d4a&&this['_markMarkers'](_0x589916,_0x4ab496),_0x589916=this['_joinTapes'](_0x589916,_0x5502b9),this['_refreshStartEndIndex'](_0x589916),this['_setDistance'](_0x589916,'isRemoved');}_0x589916=_0x589916['filter'](_0x54ea8c=>!(_0x54ea8c['isAdded']&&_0x54ea8c['isRemoved']));const _0x4d7c62=new Map(_0x23d804['model'][_0x75f4e]['deletions']['markers']),_0x1ed129=new Set(_0x4ab496['keys']());for(const _0x1001ae of _0x4d7c62['keys']())_0x1ed129['delete'](_0x1001ae);this['_markSuggestions'](_0x589916,_0x1ed129),this['_fixObsoleteTags'](_0x589916),_0x589916=this['_removeMissingPairs'](_0x589916),_0x589916=this['_markMismatchedRemovedTags'](_0x589916),_0x589916=this['_removeUnsupportedChanges'](_0x589916);const {root:_0x1a2a5c,changes:_0x379713}=this['_makeModelFromTape'](_0x589916,_0x1224da,_0x75f4e);_0x16c077['model'][_0x75f4e]=_0x1a2a5c;const _0x4a28f8=_0xdee3bc['get'](_0x75f4e);if(_0x4a28f8){const _0xa10b9f=_0x1224da['get'](_0x4a28f8['userId']),_0x3ab134=new r({'author':_0xa10b9f,'type':_0x4a28f8['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x75f4e});_0x379713['unshift'](_0x3ab134),_0x16c077['attributes'][_0x75f4e]['revisionHistoryAttachChange']=_0x3ab134['id'];}_0x16c077['changes']=_0x16c077['changes']['concat'](_0x379713);}return _0x16c077;}['_markMarkers'](_0x41bc01,_0x282c6){for(let _0x351c36=0x0;_0x351c36<_0x41bc01['length'];_0x351c36++)for(const [_0x3f47e8,_0x1495da]of _0x282c6)_0x1495da['start']['isEqual'](_0x41bc01[_0x351c36]['previousPosition'])&&_0x41bc01[_0x351c36]['markersStart']['push'](_0x3f47e8),_0x1495da['end']['isEqual'](_0x41bc01[_0x351c36]['nextPosition'])&&_0x41bc01[_0x351c36]['markersEnd']['push'](_0x3f47e8);}['_joinTapes'](_0x56a174,_0x40179a){let _0x5e087c=[],_0x420b14=0x0,_0x5d36f7=0x0;for(;_0x420b14<_0x56a174['length']||_0x5d36f7<_0x40179a['length'];){const _0x4a26b5=_0x56a174[_0x420b14]||{},_0xe05cfc=_0x40179a[_0x5d36f7]||{};if(_0x4a26b5['id']==_0xe05cfc['id'])_0x420b14++,_0x5d36f7++,_0x5e087c['push'](_0x4a26b5);else{if(_0xe05cfc['isRemoved']&&_0x4a26b5['isAdded']){const {commonTape:_0x3c85c4,iEnd:_0x3b81cf,jEnd:_0x3b92ec}=this['_threeWayMerge'](_0x56a174,_0x420b14,_0x40179a,_0x5d36f7);_0x5e087c=_0x5e087c['concat'](_0x3c85c4),_0x420b14=_0x3b81cf,_0x5d36f7=_0x3b92ec;}else _0xe05cfc['isRemoved']?(_0x5d36f7++,_0x5e087c['push'](_0xe05cfc)):(_0x420b14++,_0x5e087c['push'](_0x4a26b5));}}return _0x5e087c;}['_markSuggestions'](_0x261c71,_0x5c170a){const _0x566a73=[];for(let _0x4ed555=0x0;_0x4ed555<_0x261c71['length'];_0x4ed555++){for(let _0x2ae753=0x0;_0x2ae753<_0x261c71[_0x4ed555]['markersStart']['length'];_0x2ae753++){const _0x59d3a9=_0x261c71[_0x4ed555]['markersStart'][_0x2ae753];if(!_0x5c170a['has'](_0x59d3a9))continue;const {group:_0x224e9b,type:_0xfe4adf,authorId:_0x2d8559}=_0x36a69e(_0x59d3a9);'revision-suggestion'!=_0x224e9b||'insertion'!=_0xfe4adf&&'deletion'!=_0xfe4adf||(_0x566a73['unshift']({'type':_0xfe4adf,'name':_0x59d3a9,'userId':_0x2d8559}),_0x261c71[_0x4ed555]['markersStart']['splice'](_0x2ae753,0x1),_0x2ae753--);}_0x2b467b(_0x261c71[_0x4ed555]);for(let _0x5e8136=0x0;_0x5e8136<_0x261c71[_0x4ed555]['markersEnd']['length'];_0x5e8136++){const _0x215c4f=_0x261c71[_0x4ed555]['markersEnd'][_0x5e8136];if(!_0x5c170a['has'](_0x215c4f))continue;const {group:_0x1cb704,type:_0x3be342}=_0x36a69e(_0x215c4f);if('revision-suggestion'!=_0x1cb704||'insertion'!=_0x3be342&&'deletion'!=_0x3be342)continue;_0x261c71[_0x4ed555]['markersEnd']['splice'](_0x5e8136,0x1),_0x5e8136--;const _0x1a116a=_0x566a73['findIndex'](_0x4c376f=>_0x4c376f['name']==_0x215c4f);_0x1a116a>-0x1&&_0x566a73['splice'](_0x1a116a,0x1);}}function _0x36a69e(_0x29491e){const _0x59e9d1=_0x29491e['split'](':');return{'group':_0x59e9d1[0x0],'type':_0x59e9d1[0x1],'subType':_0x59e9d1['length']>=0x5?_0x59e9d1[0x2]:null,'id':_0x59e9d1['length']<0x5?_0x59e9d1[0x2]:_0x59e9d1[0x3],'authorId':_0x59e9d1['length']<0x5?_0x59e9d1[0x3]:_0x59e9d1[0x4],'markerCount':0x6==_0x59e9d1['length']?_0x59e9d1[0x5]:null};}function _0x2b467b(_0x3b7441){for(let _0x37a592=0x0;_0x37a592<_0x566a73['length'];_0x37a592++){if(_0x3b7441['isAdded']&&'insertion'==_0x566a73[_0x37a592]['type'])return _0x3b7441['isAddSuggestion']=_0x566a73[_0x37a592],void delete _0x3b7441['isAdded'];if(!_0x3b7441['isAdded']&&!_0x3b7441['isRemoved']&&'deletion'==_0x566a73[_0x37a592]['type'])return void(_0x3b7441['isRemoveSuggestion']=_0x566a73[_0x37a592]);}}}['_setDistance'](_0x2231ea,_0x366d42){let _0x4fae10=0x0,_0x427a45=!0x1;const _0x56adc3=new Map();for(const _0x3f5d28 of _0x2231ea)_0x3f5d28[_0x366d42]?_0x427a45&&(_0x4fae10++,_0x427a45=!0x1):(_0x4fae10++,_0x427a45=!0x0),_0x56adc3['set'](_0x3f5d28['id'],_0x4fae10);for(let _0x2408bf=0x0;_0x2408bf<_0x2231ea['length'];_0x2408bf++){if('isRemoved'==_0x366d42&&_0x2231ea[_0x2408bf]['isAdded']||'isAdded'==_0x366d42&&_0x2231ea[_0x2408bf]['isRemoved'])continue;if('text'==_0x2231ea[_0x2408bf]['type']){_0x2231ea[_0x2408bf]['distance']=0x0;continue;}const _0x2665c0=_0x56adc3['get'](_0x2231ea[_0x2408bf]['pairId']),_0x230214=_0x56adc3['get'](_0x2231ea[_0x2408bf]['id']);_0x2231ea[_0x2408bf]['distance']=_0x2665c0-_0x230214;}}['_getRevisionsRange'](_0x228df8,_0xd8bea4,_0x40e2d5=!0x1){const _0x1637ab=[];let _0x80056b=this['repository']['getIndex'](_0x228df8),_0xae6f8=this['repository']['getIndex'](_0xd8bea4);for(-0x1==_0xae6f8&&(_0xae6f8=this['repository']['_revisions']['length'],_0x40e2d5=!0x1);_0x80056b<_0xae6f8;)_0x1637ab['push'](this['repository']['getRevision'](_0x80056b)),_0x80056b++;return _0x40e2d5&&_0x1637ab['push'](this['repository']['getRevision'](_0x80056b)),_0x1637ab;}['_threeWayMerge'](_0x1de72b,_0xa1110d,_0xdb3535,_0x36faed){const _0x448d83=this['editor']['model']['schema'];let _0x1d7366=_0xa1110d;for(;_0x1de72b[_0x1d7366]&&_0x1de72b[_0x1d7366]['isAdded'];)_0x1d7366++;let _0x4b9a4f=_0x36faed;for(;_0xdb3535[_0x4b9a4f]&&_0xdb3535[_0x4b9a4f]['isRemoved'];)_0x4b9a4f++;_0x416208(_0x1de72b,_0xa1110d,_0x1d7366),_0x416208(_0xdb3535,_0x36faed,_0x4b9a4f);const _0x59d71c=_0xdb3535['slice'](_0x36faed,_0x4b9a4f)['concat'](_0x1de72b['slice'](_0xa1110d,_0x1d7366));return _0x59d71c['sort']((_0x42f3d7,_0x26ecdc)=>_0x42f3d7['side']!=_0x26ecdc['side']?_0x42f3d7['side']-_0x26ecdc['side']:_0x42f3d7['level']!=_0x26ecdc['level']?_0x42f3d7['level']-_0x26ecdc['level']:_0x42f3d7['distance']!=_0x26ecdc['distance']?_0x26ecdc['distance']-_0x42f3d7['distance']:!!_0x42f3d7['isAdded']!=!!_0x26ecdc['isAdded']?-0x1==_0x42f3d7['side']||0x0==_0x42f3d7['side']?_0x42f3d7['isAdded']?-0x1:0x1:_0x42f3d7['isAdded']?0x1:-0x1:_0x42f3d7['index']-_0x26ecdc['index']),{'commonTape':_0x59d71c,'iEnd':_0x1d7366,'jEnd':_0x4b9a4f};function _0x416208(_0x1fd7f9,_0x3c28bc,_0xe0925b){let _0x5d37a2=-0x1,_0x34711f=Number['POSITIVE_INFINITY'],_0x558b2e=!0x0;for(let _0x686754=_0x3c28bc;_0x686754<_0xe0925b;_0x686754++)if(_0x448d83['isInline'](_0x1fd7f9[_0x686754]['item'])||(_0x558b2e=!0x1),_0x1fd7f9[_0x686754]['item']['startIndex']<_0x3c28bc&&(_0x5d37a2=_0x686754),_0x1fd7f9[_0x686754]['item']['endIndex']>=_0xe0925b){_0x34711f=_0x686754;break;}_0x558b2e&&(_0x5d37a2=_0xe0925b-0x1);for(let _0x14ec10=_0x3c28bc;_0x14ec10<_0xe0925b;_0x14ec10++)_0x1fd7f9[_0x14ec10]['side']=_0x14ec10<=_0x5d37a2?-0x1:_0x14ec10<_0x34711f?0x0:0x1,_0x1fd7f9[_0x14ec10]['index']=_0x14ec10;let _0x1bcc42=0x0;for(let _0x418988=_0x3c28bc;_0x418988<=_0x5d37a2;_0x418988++)0x0==_0x1fd7f9[_0x418988]['distance']?_0x1fd7f9[_0x418988]['level']=_0x1bcc42:(_0x1bcc42++,_0x1fd7f9[_0x418988]['level']=_0x1bcc42,_0x1bcc42++);for(let _0x1b8fec=_0x3c28bc;_0x1b8fec<_0xe0925b;_0x1b8fec++)0x0==_0x1fd7f9[_0x1b8fec]['side']&&(_0x1fd7f9[_0x1b8fec]['level']=_0x1bcc42);_0x1bcc42=0x0;for(let _0x5716f9=_0xe0925b-0x1;_0x5716f9>=_0x34711f;_0x5716f9--)0x0==_0x1fd7f9[_0x5716f9]['distance']?_0x1fd7f9[_0x5716f9]['level']=_0x1bcc42:(_0x1bcc42--,_0x1fd7f9[_0x5716f9]['level']=_0x1bcc42,_0x1bcc42--);}}['_fixObsoleteTags'](_0x77280e){const _0x9c3b7b=new Map(),_0x2002cb=this['editor']['model']['schema'];for(let _0x527199=0x1;_0x527199<_0x77280e['length'];_0x527199++){let _0x268fe6,_0x2ad5c4,_0x544349;const _0x25dea1=_0x77280e[_0x527199],_0x3201be=_0x77280e[_0x527199-0x1];if('text'==_0x25dea1['type'])continue;if(_0x25dea1['type']!=_0x3201be['type'])continue;if(!_0x2002cb['isBlock'](_0x3201be['item'])||_0x2002cb['isLimit'](_0x3201be['item']))continue;if(!_0x2002cb['isBlock'](_0x25dea1['item'])||_0x2002cb['isLimit'](_0x25dea1['item']))continue;if((_0x77280e[_0x527199]['isAdded']||_0x77280e[_0x527199]['isAddSuggestion'])&&_0x77280e[_0x527199-0x1]['isRemoved'])_0x268fe6=_0x77280e[_0x527199],_0x2ad5c4=_0x77280e[_0x527199-0x1],_0x544349=_0x527199-0x1;else{if(!_0x77280e[_0x527199]['isRemoved']||!_0x77280e[_0x527199-0x1]['isAdded']&&!_0x77280e[_0x527199-0x1]['isAddSuggestion'])continue;_0x268fe6=_0x77280e[_0x527199-0x1],_0x2ad5c4=_0x77280e[_0x527199],_0x544349=_0x527199;}const _0x41e5fd=_0x268fe6['level']==_0x2ad5c4['level'],_0x4a3d12=Math['abs'](_0x268fe6['level'])<Math['abs'](_0x2ad5c4['level'])&&0x0==_0x2ad5c4['distance'];(_0x41e5fd||_0x4a3d12)&&(_0x9c3b7b['set'](_0x2ad5c4['id'],_0x268fe6['id']),_0x77280e['splice'](_0x544349,0x1),_0x527199--,_0x268fe6['isAdded']=!0x1);}for(let _0x3def77=0x0;_0x3def77<_0x77280e['length'];_0x3def77++)_0x9c3b7b['has'](_0x77280e[_0x3def77]['pairId'])&&(_0x77280e[_0x3def77]['pairId']=_0x9c3b7b['get'](_0x77280e[_0x3def77]['pairId']));}['_removeMissingPairs'](_0x58a62a){const _0x508788=new Set(_0x58a62a['map'](_0x34a1ba=>_0x34a1ba['id']));for(let _0x5d07e8=0x0;_0x5d07e8<_0x58a62a['length'];_0x5d07e8++)_0x508788['has'](_0x58a62a[_0x5d07e8]['pairId'])||0x0==_0x58a62a[_0x5d07e8]['distance']||(_0x58a62a[_0x5d07e8]['isIncorrect']=!0x0);return _0x58a62a['filter'](_0xed8607=>!_0xed8607['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4793f4){const _0xa37003=new Set();for(let _0x483a1d=0x0;_0x483a1d<_0x4793f4['length'];_0x483a1d++){if(_0xa37003['has'](_0x4793f4[_0x483a1d]['id'])&&_0x4793f4[_0x483a1d]['isRemoved']&&(_0x4793f4[_0x483a1d]['isIncorrect']=!0x0),_0x4793f4[_0x483a1d]['isIncorrect'])continue;if(0x0==_0x4793f4[_0x483a1d]['distance'])continue;if('elementStart'!=_0x4793f4[_0x483a1d]['type'])continue;if(null==_0x4793f4[_0x483a1d]['pairId'])continue;let _0xad6848=_0x483a1d+0x1,_0x1f2b8e=0x0;for(;_0x4793f4[_0xad6848]['id']!=_0x4793f4[_0x483a1d]['pairId'];)'elementStart'==_0x4793f4[_0xad6848]['type']?_0x1f2b8e++:'elementEnd'==_0x4793f4[_0xad6848]['type']&&_0x1f2b8e--,_0xad6848++;if(0x0!=_0x1f2b8e){if(_0x4793f4[_0x483a1d]['isRemoved'])_0x4793f4[_0x483a1d]['isIncorrect']=!0x0;else{for(;_0xad6848!=_0x483a1d;)_0x4793f4[_0xad6848]['isRemoved']&&0x0!=_0x4793f4[_0xad6848]['distance']&&(_0x4793f4[_0xad6848]['isIncorrect']=!0x0,_0xa37003['add'](_0x4793f4[_0xad6848]['pairId'])),_0xad6848--;}}}return _0x4793f4['filter'](_0xaabf6b=>!_0xaabf6b['isIncorrect']);}['_removeUnsupportedChanges'](_0x1fb50c){const _0x5d70f8=this['editor']['model']['schema'];for(let _0x135c48=0x0;_0x135c48<_0x1fb50c['length'];_0x135c48++){if(!(_0x1fb50c[_0x135c48]['isAdded']||_0x1fb50c[_0x135c48]['isAddSuggestion']||_0x1fb50c[_0x135c48]['isRemoved']||_0x1fb50c[_0x135c48]['isRemoveSuggestion']))continue;if(0x0==_0x1fb50c[_0x135c48]['distance'])continue;const _0x215231=_0x1fb50c[_0x135c48]['item'];_0x5d70f8['isBlock'](_0x215231)||_0x5d70f8['isLimit'](_0x215231)||(_0x1fb50c[_0x135c48]['isAdded']&&delete _0x1fb50c[_0x135c48]['isAdded'],_0x1fb50c[_0x135c48]['isAddSuggestion']&&delete _0x1fb50c[_0x135c48]['isAddSuggestion'],_0x1fb50c[_0x135c48]['isRemoveSuggestion']&&delete _0x1fb50c[_0x135c48]['isRemoveSuggestion'],_0x1fb50c[_0x135c48]['isRemoved']&&(_0x1fb50c[_0x135c48]['isIncorrect']=!0x0));}return _0x1fb50c['filter'](_0x4ad0db=>!_0x4ad0db['isIncorrect']);}['_makeModelFromTape'](_0x1f61c3,_0x44fad0,_0x3c602f){const _0x465f2e=new gt(),_0x540d77=[],_0x311b95=new Map(),_0x5238a0=this['editor']['model'],_0x2810a7=_0x5238a0['schema'],_0x5ee14e=[_0x465f2e],_0x3c066c={},_0x47c484={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x251c37=null;const _0x2d7421=[0x0];for(let _0x112349=0x0;_0x112349<_0x1f61c3['length'];_0x112349++)if('elementStart'===_0x1f61c3[_0x112349]['type']){_0x1f61c3[_0x112349]['previousPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421);const _0x28c3f7=new ut(_0x1f61c3[_0x112349]['item']['name'],_0x1f61c3[_0x112349]['item']['getAttributes']());_0x5ee14e[0x0]['_appendChild'](_0x28c3f7),_0x2d7421['push'](0x0),_0x5ee14e['unshift'](_0x28c3f7),_0x1f61c3[_0x112349]['nextPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421);}else'elementEnd'===_0x1f61c3[_0x112349]['type']?(_0x5ee14e['shift'](),_0x1f61c3[_0x112349]['previousPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421),_0x2d7421['pop'](),_0x2d7421[_0x2d7421['length']-0x1]++,_0x1f61c3[_0x112349]['nextPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421)):(_0x1f61c3[_0x112349]['previousPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421),_0x251c37?_0x251c37['_data']+=_0x1f61c3[_0x112349]['item']['data']:_0x251c37=new wt(_0x1f61c3[_0x112349]['item']['data'],_0x1f61c3[_0x112349]['item']['getAttributes']()),_0x1f61c3[_0x112349+0x1]&&'text'===_0x1f61c3[_0x112349+0x1]['type']&&_0x184a4a(_0x251c37,_0x1f61c3[_0x112349+0x1]['item'])||(_0x5ee14e[0x0]['_appendChild'](_0x251c37),_0x251c37=null),_0x2d7421[_0x2d7421['length']-0x1]+=_0x1f61c3[_0x112349]['item']['offsetSize'],_0x1f61c3[_0x112349]['nextPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421));for(let _0x48dea8=0x0;_0x48dea8<_0x1f61c3['length'];_0x48dea8++){const _0x276c23=_0x1f61c3[_0x48dea8]['previousPosition'],_0x9184ae=_0x1f61c3[_0x48dea8]['nextPosition'];for(const _0x1686b4 of _0x1f61c3[_0x48dea8]['markersStart'])_0x311b95['set'](_0x1686b4,{'start':_0x276c23,'end':null});_0x412789('isRemoveSuggestion',_0x48dea8,_0x276c23,_0x9184ae),_0x412789('isAddSuggestion',_0x48dea8,_0x276c23,_0x9184ae),_0x412789('isRemoved',_0x48dea8,_0x276c23,_0x9184ae),_0x412789('isAdded',_0x48dea8,_0x276c23,_0x9184ae);for(const _0x39c2c0 of _0x1f61c3[_0x48dea8]['markersEnd']){_0x311b95['get'](_0x39c2c0)['end']=_0x9184ae;}}for(const [_0x397881,_0x5c0776]of _0x311b95){const _0x5ee2ae=this['editor']['model']['createRange'](_0x5c0776['start'],_0x5c0776['end']);_0x465f2e['markers']['set'](_0x397881,_0x5ee2ae);}return _0x540d77['sort']((_0x22b4b7,_0x342f8e)=>{const _0x164779=_0x465f2e['markers']['get']('revision:'+_0x22b4b7['id']),_0x5ad109=_0x465f2e['markers']['get']('revision:'+_0x342f8e['id']);return _0x164779['start']['isBefore'](_0x5ad109['start'])?-0x1:_0x164779['start']['isAfter'](_0x5ad109['start'])?0x1:_0x164779['end']['isBefore'](_0x5ad109['end'])?-0x1:_0x164779['end']['isAfter'](_0x5ad109['end'])?0x1:'add'===_0x22b4b7['type']?-0x1:0x1;}),{'root':_0x465f2e,'changes':_0x540d77};function _0x412789(_0x4cf872,_0x184196,_0x59546c,_0x55c9ec){const _0x23a1ed=!!_0x1f61c3[_0x184196][_0x4cf872],_0x2f7b3e=_0x23a1ed?_0x1f61c3[_0x184196][_0x4cf872]['userId']:null,_0x2c231e=_0x184196===_0x1f61c3['length']-0x1,_0x2a7c30=_0x47c484[_0x4cf872][0x0],_0x1a25c7=_0x2810a7['isObject'](_0x1f61c3[_0x184196]['item']);!_0x3c066c[_0x4cf872]&&_0x23a1ed?_0x3c066c[_0x4cf872]={'start':_0x59546c,'tapeItem':_0x1f61c3[_0x184196],'userId':_0x2f7b3e,'type':_0x4cf872}:_0x3c066c[_0x4cf872]&&!_0x23a1ed?(_0x3c066c[_0x4cf872]['end']=_0x59546c,_0x53107d(_0x3c066c[_0x4cf872]),_0x3c066c[_0x4cf872]=null):_0x3c066c[_0x4cf872]&&_0x23a1ed&&_0x3c066c[_0x4cf872]['userId']!==_0x2f7b3e&&(_0x3c066c[_0x4cf872]['end']=_0x59546c,_0x2a7c30&&_0x2a7c30['userId']===_0x3c066c[_0x4cf872]['userId']||_0x53107d(_0x3c066c[_0x4cf872]),_0x3c066c[_0x4cf872]={'start':_0x59546c,'tapeItem':_0x1f61c3[_0x184196],'userId':_0x2f7b3e,'type':_0x4cf872}),_0x3c066c[_0x4cf872]&&_0x1a25c7&&('elementStart'!==_0x1f61c3[_0x184196]['type']||_0x2a7c30&&_0x2a7c30['userId']===_0x2f7b3e||_0x47c484[_0x4cf872]['unshift']({'userId':_0x2f7b3e,'object':_0x1f61c3[_0x184196]['item'],'change':_0x3c066c[_0x4cf872]}),'elementEnd'===_0x1f61c3[_0x184196]['type']&&_0x2a7c30&&_0x2a7c30['object']===_0x1f61c3[_0x184196]['item']&&(_0x47c484[_0x4cf872]['shift'](),_0x3c066c[_0x4cf872]=_0x2a7c30['change'])),_0x3c066c[_0x4cf872]&&_0x2c231e&&(_0x3c066c[_0x4cf872]['end']=_0x55c9ec,_0x53107d(_0x3c066c[_0x4cf872]),_0x3c066c[_0x4cf872]=null);}function _0x53107d({start:_0x3a5e60,end:_0x4991a4,tapeItem:_0x189c04,userId:_0x4dba1a,type:_0x14fb33}){const _0x29717c=_0x189c04['item'],_0x3f3a2a=_0x5238a0['schema']['isBlock'](_0x29717c)&&!_0x5238a0['schema']['isLimit'](_0x29717c),_0x8cea51=_0x3a5e60['nodeAfter']==_0x4991a4['parent']&&_0x4991a4['isAtStart'];if(_0x3f3a2a&&_0x8cea51)return;const _0x1d1396=_0x5238a0['createRange'](_0x3a5e60,_0x4991a4),_0x496ea5=_0x44fad0['get'](_0x4dba1a),_0xc60b93=new r({'author':_0x496ea5,'type':'isAdded'==_0x14fb33||'isAddSuggestion'==_0x14fb33?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x14fb33||'isRemoveSuggestion'==_0x14fb33},'createdAt':new Date(),'rootName':_0x3c602f});_0x540d77['push'](_0xc60b93),_0x465f2e['markers']['set']('revision:'+_0xc60b93['id'],_0x1d1396);}function _0x184a4a(_0x569f03,_0x34a256){const _0x20e017=_0x569f03['getAttributes'](),_0x277d3d=_0x34a256['getAttributes']();for(const _0xe96ce6 of _0x20e017){if(_0xe96ce6[0x1]!==_0x34a256['getAttribute'](_0xe96ce6[0x0]))return!0x1;_0x277d3d['next']();}return _0x277d3d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x589c35=>{const _0x50a5f0=_0x589c35['markerName']['split'](':')[0x1],_0x2abfe8=this['_getChangeFromId'](_0x50a5f0);if(!_0x2abfe8)return null;const _0x2b64dc='add'==_0x2abfe8['type']?'insertion':'deletion',_0x1bded8=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2b64dc];return _0x2abfe8['data']['isSuggestion']&&_0x1bded8['push']('ck-suggestion-marker-'+_0x2b64dc+'-new'),this['activeChange']==_0x2abfe8&&_0x1bded8['push']('ck-suggestion-marker--active'),{'classes':_0x1bded8,'attributes':{'data-change-id':_0x50a5f0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2bcf9c=>{_0x2bcf9c['on']('element:pre',(_0x145af5,_0x36bb11,_0x45f0cf)=>{const _0x1d5e80=_0x36bb11['viewItem']['getChild'](0x0);if(!_0x1d5e80||!_0x1d5e80['is']('element','code'))return;if(!_0x45f0cf['consumable']['consume'](_0x1d5e80,{'attributes':['vid_start','vid_end']}))return;const _0x4dcf57=_0x36bb11['modelRange']['start']['nodeAfter'];_0x45f0cf['writer']['setAttribute']('vid_start',_0x1d5e80['getAttribute']('vid_start'),_0x4dcf57),_0x45f0cf['writer']['setAttribute']('vid_end',_0x1d5e80['getAttribute']('vid_end'),_0x4dcf57);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4306fc=>{_0x4306fc['on']('element',(_0x95bbd3,_0x2120e7,_0xc74236)=>{if(!_0xc74236['consumable']['consume'](_0x2120e7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2120e7['modelRange']['isCollapsed'])return;const _0x3a818d=_0x2120e7['modelRange']['start']['nodeAfter'];_0x3a818d['hasAttribute']('vid_start')||_0x3a818d['hasAttribute']('vid')||(_0xc74236['writer']['setAttribute']('vid_start',_0x2120e7['viewItem']['getAttribute']('vid_start'),_0x3a818d),_0xc74236['writer']['setAttribute']('vid_end',_0x2120e7['viewItem']['getAttribute']('vid_end'),_0x3a818d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x420d7b=>_0x420d7b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x15d3a2,[,_0x173cf9])=>{['vid_start','vid_end','vid']['includes'](_0x173cf9)&&(_0x15d3a2['return']=!0x0,_0x15d3a2['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c38ef=>{_0x1c38ef['on']('attribute:vid',(_0xf0efb5,_0x2dce1d,_0x290441)=>{if('\x20'!=_0x2dce1d['item']['data']||_0x2dce1d['item']['parent']['maxOffset']>0x1)return;if(!_0x290441['consumable']['consume'](_0x2dce1d['item'],_0xf0efb5['name']))return;const _0x2c8478=_0x290441['writer'],_0x138a19=_0x290441['mapper']['toViewRange'](_0x2dce1d['range']);_0x2c8478['wrap'](_0x138a19,_0x2c8478['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4baecd){const _0x4778ad=_0x4baecd['plugins']['get']('RevisionViewer');return(_0x20f2fc,_0x583aef,_0x3bf5a4)=>{const _0x458326=_0x583aef['markerName']['split'](':')[0x1],_0x5489b1=_0x4778ad['_getChangeFromId'](_0x458326);if(!_0x5489b1)return null;const _0x18cfd1='add'==_0x5489b1['type']?'split':'merge';if(!_0x3bf5a4['consumable']['test'](_0x583aef['markerRange'],_0x20f2fc['name']))return;const _0x40fd6e=_0x583aef['markerRange']['getWalker'](),_0x4f0e25=_0x583aef['markerRange']['start'],_0x143251=_0x4baecd['model']['schema'];let _0xc05ed2=null,_0xee717d=null,_0x232f6d=!0x1,_0x12ba93=!0x1;for(const _0x5b64b4 of _0x40fd6e){const _0x472bef=_0x5b64b4['item'];_0x232f6d=_0x232f6d||_0x143251['isContent'](_0x472bef);const _0x2dc8ab=_0x3bf5a4['mapper']['toViewElement'](_0x472bef);if(_0x2dc8ab&&_0x2dc8ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b64b4['type']&&(_0x143251['isBlock'](_0x472bef)&&!_0x143251['isLimit'](_0x472bef)&&(_0x472bef['nextSibling']||_0x4f0e25['isAtEnd']?_0xc05ed2&&_0xc05ed2['parent']==_0x472bef||(_0xc05ed2=_0x472bef,_0x5f11eb(_0x5b64b4['previousPosition']),_0x12ba93=!0x0):_0xee717d=_0xee717d||_0x5b64b4['previousPosition']));}function _0x5f11eb(_0x11c3ea){const _0x19709a=_0x3bf5a4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18cfd1}),_0x3364c7=_0x3bf5a4['mapper']['toViewPosition'](_0x11c3ea);_0x5489b1['data']['isSuggestion']&&_0x3bf5a4['writer']['addClass']('ck-suggestion-marker-'+_0x18cfd1+'-new',_0x19709a),_0x4778ad['activeChange']==_0x5489b1&&_0x3bf5a4['writer']['addClass']('ck-suggestion-marker--active',_0x19709a),_0x3bf5a4['writer']['insert'](_0x3364c7,_0x19709a),_0x3bf5a4['mapper']['bindElementToMarker'](_0x19709a,_0x583aef['markerName']);}_0x232f6d||_0x12ba93||!_0xee717d||_0x5f11eb(_0xee717d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4e25a5,_0x58f566,_0x50b574)=>{const _0x39762d=_0x50b574['mapper']['markerNameToElements'](_0x58f566['markerName']);if(_0x39762d){for(const _0x186160 of _0x39762d)(_0x186160['hasClass']('ck-suggestion-marker-split')||_0x186160['hasClass']('ck-suggestion-marker-merge'))&&(_0x50b574['mapper']['unbindElementFromMarkerName'](_0x186160,_0x58f566['markerName']),_0x50b574['writer']['remove'](_0x186160));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4035ad,_0x59798a,_0x2976cf)=>{const _0xd3981a=_0x59798a['markerName']['split'](':')[0x1],_0x3ef698=this['_getChangeFromId'](_0xd3981a);if(!_0x3ef698)return null;const _0x3f35eb='add'==_0x3ef698['type']?'split':'merge';if(_0x2976cf['consumable']['test'](_0x59798a['markerRange'],_0x4035ad['name']))for(const _0x3ea645 of _0x59798a['markerRange']['getItems']()){if(!_0x3ea645['is']('element','softBreak'))continue;const _0x462df8=_0x2976cf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3f35eb}),_0x33225f=_0x2976cf['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3ea645));_0x3ef698['data']['isSuggestion']&&_0x2976cf['writer']['addClass']('ck-suggestion-marker-'+_0x3f35eb+'-new',_0x462df8),this['activeChange']==_0x3ef698&&_0x2976cf['writer']['addClass']('ck-suggestion-marker--active',_0x462df8),_0x2976cf['writer']['insert'](_0x33225f,_0x462df8),_0x2976cf['mapper']['bindElementToMarker'](_0x462df8,_0x59798a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3244fc=>{for(const _0x4c000f of this['editor']['model']['document']['getRootNames']()){const _0x50d4af=this['editor']['model']['document']['getRoot'](_0x4c000f),_0xc564f6=this['editor']['editing']['view']['document']['getRoot'](_0x4c000f);if(_0xc564f6){const _0xf1ab8=_0x50d4af['getAttribute']('revisionHistoryAttachChange');if(_0x3244fc['removeAttribute']('data-change-id',_0xc564f6),_0x3244fc['removeClass']('ck-revision-history-root-add',_0xc564f6),_0x3244fc['removeClass']('ck-revision-history-root-remove',_0xc564f6),_0x3244fc['removeClass']('ck-revision-history-root--active',_0xc564f6),_0xf1ab8){const _0x21cd27=this['_getChangeFromId'](_0xf1ab8);if(!_0x21cd27)return null;_0x3244fc['setAttribute']('data-change-id',_0xf1ab8,_0xc564f6),_0x3244fc['addClass']('ck-revision-history-root-'+_0x21cd27['type'],_0xc564f6),this['activeChange']==_0x21cd27&&_0x3244fc['addClass']('ck-revision-history-root--active',_0xc564f6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x349afd=>'revision-comment:'+_0x349afd,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x251169=>'revision-suggestion:'+_0x251169,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1dceca=>({'name':'suggestion:'+_0x1dceca,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1830e1=>{const _0x290308=_0x1830e1['markerName']['split'](':')[0x1];return'insertion'!=_0x290308&&'deletion'!=_0x290308?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x290308]};}}),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',(_0x576e1f,_0x280beb,_0x15320d)=>{const _0x2cb1ce=_0x15320d['mapper']['markerNameToElements'](_0x280beb['markerName']);if(_0x2cb1ce){for(const _0x55df08 of _0x2cb1ce)_0x55df08['is']('uiElement')&&(_0x15320d['mapper']['unbindElementFromMarkerName'](_0x55df08,_0x280beb['markerName']),_0x15320d['writer']['remove'](_0x55df08));}},{'priority':'high'});}['_getChangeFromId'](_0x368ecc){return this['_changeIdToChange']['get'](_0x368ecc);}['_getViewForChange'](_0x2642b0){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x2642b0),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x22a1ca,_0x488c05,_0x3058a0,_0x10acdf)=>{_0x10acdf&&this['_balloon']['remove'](_0x10acdf),_0x3058a0&&(this['_balloon']['add']({'view':_0x3058a0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2deabe=this['editor']['editing'],_0x588589=this['_getChangeFromId'](_0x3058a0['changeId']);let _0x1bad28;if(_0x588589['data']['isOnRoot']){const _0x5496a3=_0x2deabe['view']['getDomRoot'](_0x588589['rootName']);_0x1bad28=Array['from'](_0x5496a3['getClientRects']());}else{const _0x5ad768=this['editor']['model']['markers']['get']('revision:'+_0x3058a0['changeId']);_0x1bad28=Array['from'](_0x2deabe['mapper']['markerNameToElements'](_0x5ad768['name']))['map'](_0xb884a1=>_0x2deabe['view']['domConverter']['mapViewToDom'](_0xb884a1))['map'](_0x58f956=>Array['from'](_0x58f956['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1bad28[0x0];return _0x1bad28['find'](_0x3ee751=>_0x3ee751['top']-0x3<=this['_activeViewTarget']['y']&&_0x3ee751['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3ee751['left']-0x3<=this['_activeViewTarget']['x']&&_0x3ee751['right']+0x3>=this['_activeViewTarget']['x'])||_0x1bad28[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3d976a,_0x9324d9,_0x4765d6,_0x47ca78)=>{this['activeView']=_0x4765d6?this['_getViewForChange'](_0x4765d6):null,this['editor']['model']['change'](()=>{const _0x305020=this['editor']['editing'];_0x47ca78&&(_0x47ca78['data']['isOnRoot']?_0x305020['view']['change'](_0x359409=>{_0x359409['removeClass']('ck-revision-history-root--active',_0x305020['view']['document']['getRoot'](_0x47ca78['rootName']));}):_0x305020['reconvertMarker']('revision:'+_0x47ca78['id'])),_0x4765d6&&(_0x4765d6['data']['isOnRoot']?_0x305020['view']['change'](_0x11930f=>{_0x11930f['addClass']('ck-revision-history-root--active',_0x305020['view']['document']['getRoot'](_0x4765d6['rootName']));}):_0x305020['reconvertMarker']('revision:'+_0x4765d6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2e3cd5,_0x3dd89c)=>{if(this['activeChange'])return;const _0x24372e=this['_findChangeIdFromDomTarget'](_0x3dd89c['target']),_0x2f2f1d=this['_changeIdToChange']['get'](_0x24372e);_0x2f2f1d?(this['_activeViewTarget']={'x':_0x3dd89c['domEvent']['x'],'y':_0x3dd89c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2f2f1d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1b96eb,_0x58a887)=>{const _0x76ee92=this['_findChangeIdFromDomTarget'](_0x58a887['target']),_0x5ba338=this['_changeIdToChange']['get'](_0x76ee92);_0x5ba338?(this['_activeViewTarget']={'x':_0x58a887['domEvent']['x'],'y':_0x58a887['domEvent']['y']},_0x5ba338===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5ba338):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4d77ed){do{const _0x50388=_0x4d77ed['getAttribute']('data-change-id');if(_0x50388)return _0x50388;_0x4d77ed=_0x4d77ed['parent'];}while(_0x4d77ed);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25b5ae=>{for(const _0x13bc9f of this['editor']['model']['markers'])_0x25b5ae['removeMarker'](_0x13bc9f);});}}function Z(_0x39e879,_0x11df1e){return(_0x578d3b,_0x134fc8,_0x99b1b2)=>{if(!_0x99b1b2['consumable']['test'](_0x134fc8['markerRange'],_0x578d3b['name']))return;const _0x1058d7=_0x134fc8['markerRange']['getWalker'](),_0x3a3097=_0x134fc8['markerRange']['start'],_0x1ed8b8=_0x39e879['model']['schema'];let _0x216848=null,_0x31018f=null,_0x489a60=!0x1,_0x5c3843=!0x1;for(const _0x56eca6 of _0x1058d7){const _0x422db6=_0x56eca6['item'];_0x489a60=_0x489a60||_0x1ed8b8['isContent'](_0x422db6);const _0x42f2b3=_0x99b1b2['mapper']['toViewElement'](_0x422db6);if(_0x42f2b3&&_0x42f2b3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56eca6['type']&&(_0x1ed8b8['isBlock'](_0x422db6)&&!_0x1ed8b8['isLimit'](_0x422db6)&&(_0x422db6['nextSibling']||_0x3a3097['isAtEnd']?_0x216848&&_0x216848['parent']==_0x422db6||(_0x216848=_0x422db6,_0x5ab07f(_0x56eca6['previousPosition']),_0x5c3843=!0x0):_0x31018f=_0x31018f||_0x56eca6['previousPosition']));}function _0x5ab07f(_0x49c400){const _0x27ae67=_0x99b1b2['mapper']['toViewPosition'](_0x49c400),_0x2ea358=_0x99b1b2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x11df1e});_0x99b1b2['writer']['insert'](_0x27ae67,_0x2ea358),_0x99b1b2['mapper']['bindElementToMarker'](_0x2ea358,_0x134fc8['markerName']);}_0x489a60||_0x5c3843||!_0x31018f||_0x5ab07f(_0x31018f);};}class _t extends _0x2748ad{constructor(_0x305d89){super(_0x305d89);const _0x446b0a=_0x305d89['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x446b0a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x446b0a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4db362=this['editor'],_0xaad6da=_0x4db362['plugins']['get'](d),_0xf9a2b0=_0xaad6da['isReady']?_0xaad6da['diff']['newRevisionId']:null;_0x4db362['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xf9a2b0);}['refresh'](){const {isReady:_0x47efde,isEnabled:_0xaf4e8e,repository:_0x40fcbd,diff:_0x591d07}=this['editor']['plugins']['get'](d),_0x1388d4=_0x591d07&&_0x40fcbd['getLaterVisibleRevision'](_0x591d07['newRevisionId']);this['isEnabled']=_0x47efde&&_0xaf4e8e&&Boolean(_0x1388d4);}}class yt extends _0x2748ad{['_step'];constructor(_0x4295fa,{direction:_0x2f49fb}){super(_0x4295fa);const _0x104864=_0x4295fa['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2f49fb?0x1:-0x1,this['listenTo'](_0x104864,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x104864,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x104864,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x232963=this['editor'],_0x5a14b4=_0x232963['plugins']['get'](d),{isNavigationMode:_0x3e71db,currentChangeNumber:_0x3ac35d}=_0x5a14b4;let _0x471122;if(_0x5a14b4['activeChange']=_0x3e71db?_0x5a14b4['diff']['changes']['get'](_0x3ac35d+this['_step']):_0x5a14b4['diff']['changes']['first'],_0x5a14b4['activeChange']['data']['isOnRoot'])_0x471122=_0x232963['editing']['view']['getDomRoot'](_0x5a14b4['activeChange']['rootName']);else{const _0x271b2a=_0x232963['model']['markers']['get']('revision:'+_0x5a14b4['activeChange']['id']);_0x471122=_0x5b8dd5(_0x232963['editing'],_0x271b2a);}_0x8cec50({'target':_0x471122,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xd3729d,currentChangeNumber:_0x27c9d0,numberOfChanges:_0x23ec17,isReady:_0x139ae8,isEnabled:_0x136ee1}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x136ee1&&_0x139ae8&&_0x23ec17)&&(!_0xd3729d||(0x1===this['_step']?_0x27c9d0<_0x23ec17-0x1:_0x27c9d0>0x0));}}class _i extends _0x1119f9{constructor(_0x366ff3){super(_0x366ff3);const _0xd8506=this['bindTemplate'],_0x6be257=new _0x521e80(_0x366ff3),_0x70dfca=new _0x521e80(_0x366ff3);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',(_0x16c57d,_0x13c5e9)=>_0x16c57d&&_0x13c5e9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3c3d60,_0x41c0fd,_0x41a8c0,_0x24e5a0)=>{if(!_0x3c3d60)return m(_0x366ff3,'Loading...');if(!_0x41a8c0)return m(_0x366ff3,'No\x20changes');const _0x2831f1=m(_0x366ff3,'NUMBER_OF_CHANGES',_0x41a8c0);return _0x24e5a0?m(_0x366ff3,'X_OF_Y_CHANGES',[_0x41c0fd+0x1,_0x41a8c0]):_0x2831f1;}),_0x6be257['set']({'label':m(_0x366ff3,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x30dd98}),_0x70dfca['set']({'label':m(_0x366ff3,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4e9473}),_0x6be257['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x70dfca['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x6be257['on']('execute',()=>this['fire']('execute','backward')),_0x70dfca['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',_0xd8506['if']('_isStatusLabelVisible','ck-hidden',_0x5f051d=>!_0x5f051d)]},'children':[{'text':_0xd8506['to']('isNavigationMode',_0x1b7394=>_0x1b7394?m(_0x366ff3,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x366ff3,'Total')+':\x20')}]},{'text':_0xd8506['to']('_statusText')}]},new _0x51cb7a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x6be257,_0x70dfca]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x45244f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1b44ea=this['editor']['editing']['view'];_0x1b44ea['change'](_0x2dc5fb=>{for(const _0x1f5102 of _0x1b44ea['document']['roots'])_0x2dc5fb['addClass'](ce,_0x1f5102);});}['hide'](){const _0x44c65a=this['editor']['editing']['view'];_0x44c65a['change'](_0x1e14b8=>{for(const _0x28a6ba of _0x44c65a['document']['roots'])_0x1e14b8['removeClass'](ce,_0x28a6ba);});}}class w extends _0x45244f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x58614d=this['editor'],_0x15a022=_0x58614d['plugins']['get'](d),_0x5f3675=_0x58614d['plugins']['get'](le);_0x58614d['ui']['componentFactory']['add']('exitToEditing',_0x1c6e71=>{const _0x45d315=new _0x521e80(_0x1c6e71);return _0x45d315['set']({'label':m(_0x1c6e71,'Back\x20to\x20editing'),'icon':_0x42a8bb,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x45d315,'execute',()=>{_0x58614d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x45d315;}),_0x58614d['ui']['componentFactory']['add']('restoreRevision',_0x8d66ea=>{const _0x4e3ed6=new _0x521e80(_0x8d66ea);return _0x4e3ed6['set']({'label':m(_0x8d66ea,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e3ed6['bind']('isEnabled')['to'](_0x58614d['commands']['get']('restoreRevision')),this['listenTo'](_0x4e3ed6,'execute',()=>_0x58614d['execute']('restoreRevision')),_0x4e3ed6;}),_0x58614d['ui']['componentFactory']['add']('changesNavigation',_0x57555c=>{const _0x1a84c3=new _i(_0x57555c),_0x44e654=_0x58614d['commands']['get']('showPreviousChange'),_0x20a616=_0x58614d['commands']['get']('showNextChange');return _0x1a84c3['bind']('isBackwardNavigationEnabled')['to'](_0x44e654,'isEnabled'),_0x1a84c3['bind']('isForwardNavigationEnabled')['to'](_0x20a616,'isEnabled'),_0x1a84c3['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x15a022),this['listenTo'](_0x1a84c3,'execute',(_0xa98fe3,_0x19ec54)=>{_0x58614d['execute']('forward'===_0x19ec54?'showNextChange':'showPreviousChange');}),_0x1a84c3;}),_0x5f3675['show'](),_0x15a022['on']('change:isReady',(_0x37ff8a,_0x2c239b,_0x10d96f)=>{_0x10d96f?_0x5f3675['hide']():_0x5f3675['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x58068a,_0x18f5d6){super(_0x58068a,_0x18f5d6);const _0x1587d3=this['bindTemplate'];this['set']({'label':m(_0x58068a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x58068a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1587d3['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 _0x2ae2dd=this['fieldView']['element'];this['_tooltipString']=_0x2ae2dd['scrollWidth']>_0x2ae2dd['clientWidth']&&_0x2ae2dd['value']||'';}}class oi extends _0x1119f9{constructor(_0x5bd1f7,_0x172554,_0x2bf17f){super(_0x5bd1f7);const _0x5ebad5=new _0x4acca1();_0x5ebad5['set']({'content':_0x274ce6,'viewBox':'0\x200\x2011\x2010'});const _0x253d35=['ck','ck-revision-history-sidebar__revision-author'];_0x2bf17f&&_0x253d35['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4428c5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5bd1f7,_0x2bf17f?'Revision\x20creator':'Revision\x20author')},'children':[_0x5ebad5,_0x172554['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x253d35},'children':_0x4428c5});}}function ni(_0x22c1c0,_0x6de618){const _0x32e1de=_0x22c1c0['bindTemplate'],_0x213de9=_0x22c1c0['locale'],_0x381eca=_0x369c57(_0x213de9);_0x381eca['panelPosition']='sw';const _0x2d09c5=function(_0x4dfaca,_0x511eac){const _0xead5e=function(_0x376d8a,_0x17f291){const _0x334819=_0x376d8a['locale'],_0x4650db={'Compare\x20against\x20selected':m(_0x334819,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x334819,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x334819,'Restore\x20this\x20revision')};return _0x17f291['map'](_0x3a0386=>{const _0x5256fb=_0x4650db[_0x3a0386['name']];return _0x5256fb&&_0x5256fb!==_0x3a0386['name']&&(_0x3a0386['name']=_0x5256fb),_0x3a0386;});}(_0x4dfaca,_0x511eac),_0x112b6e=new _0x3d47b3();for(const _0x5ba2ba of _0xead5e){const _0x1cd6fe={'type':'button','model':new to({'label':_0x5ba2ba['name'],'class':_0x5ba2ba['class'],'withText':!0x0,'role':'menuitem','_action':_0x5ba2ba['action']})};_0x1cd6fe['model']['bind']('isEnabled')['to'](_0x4dfaca,'isActionsDropdownOpen',_0x312d8e=>'function'!=typeof _0x5ba2ba['isEnabled']||(!_0x312d8e||_0x5ba2ba['isEnabled'](_0x4dfaca))),_0x112b6e['add'](_0x1cd6fe);}return _0x112b6e;}(_0x22c1c0,_0x6de618);return _0x22c1c0['bind']('isActionsDropdownOpen')['to'](_0x381eca,'isOpen'),_0x381eca['buttonView']['set']({'label':m(_0x213de9,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2b00bd}),_0x381eca['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x32e1de['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x32e1de['to'](_0x3f9dc3=>_0x3f9dc3['stopPropagation']())}}),_0x381eca['on']('execute',_0x25adff=>{_0x22c1c0['isReady']&&'function'==typeof _0x25adff['source']['_action']&&_0x25adff['source']['_action'](_0x22c1c0);}),_0x37b5c7(_0x381eca,_0x2d09c5,{'role':'menu'}),_0x381eca['listenTo'](_0x22c1c0,'change:isActionsDropdownOpen',(_0x9e4fb9,_0x1988aa,_0x38b6e7)=>{if(_0x38b6e7)for(const _0x40da20 of _0x381eca['listView']['items']){const _0x33d6fb=_0x40da20['children']['first'],_0x1a7f22=_0x6de618['find'](_0x1ad37e=>_0x1ad37e['action']===_0x33d6fb['_action'])['isVisible'];_0x40da20['isVisible']=void 0x0===_0x1a7f22||_0x1a7f22(_0x22c1c0);}}),_0x381eca;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x252101,uid as _0xeab9bf,Collection as _0x1f0832,logWarning as _0x50003d,FocusTracker as _0x585ae3,KeystrokeHandler as _0x44b8a9,scrollViewportToShowTarget as _0x589c88,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x754647}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x282115,set as _0x3f42ec,unset as _0x529fdc,isEqual as _0x67f154}from'es-toolkit/compat';import{Plugin as _0xed64d3,PendingActions as _0x221a22,Command as _0x4a9c85,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x468992,getMarkerDomElement as _0x1b839e,ConfirmMixin as _0x2a6970,sanitizeEditorConfig as _0x2bd90d}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1dd2da,Element as ut,Range as ft,ViewUIElement as _0x2172b3,ViewRawElement as _0x4554df,ViewEmptyElement as _0x2e68ba,ViewAttributeElement as _0x16f432,ViewContainerElement as _0x4112f4,Position as vt,ViewText as _0x131fce,ViewElement as _0x48370f,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x27a9d6,IconChevronUp as _0x3543ae,IconChevronDown as _0x554ef1,IconUndo as _0x5c0204,IconUser as _0x5ac541,IconThreeVerticalDots as _0x42993c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x49045a,injectCssTransitionDisabler as ts,submitHandler as _0x5413fd,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x3f5b17,ListView as _0x52ad3b,ListItemView as te,ButtonView as _0x43db63,MenuBarMenuView as _0xc91616,MenuBarMenuListView as _0x21b77a,MenuBarMenuListItemView as _0x121605,MenuBarMenuListItemButtonView as _0x41f61a,ContextualBalloon as _0x59a95c,ToolbarSeparatorView as _0x25c8d1,IconView as _0x5d4899,addListToDropdown as _0x405229,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 _0x2a4664}from'luxon';class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x252101(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2c946a){super(),this['id']=_0x2c946a['id']||_0xeab9bf(),this['creator']=_0x2c946a['creator']||null,this['authors']=_0x2c946a['authors']||[],this['diffData']=_0x2c946a['diffData']||null,this['toVersion']=_0x2c946a['toVersion']||0x0,this['fromVersion']=_0x2c946a['fromVersion']||0x0,this['set']('name',_0x2c946a['name']||''),this['set']('createdAt',_0x2c946a['createdAt']||new Date()),this['set']('attributes',_0x2c946a['attributes']||{});}['setName'](_0x5a0038){this['_update']({'name':_0x5a0038});}['setAttribute'](_0x10d678,_0x2f1c19){const _0x39b2e1=_0x282115(this['attributes']);_0x3f42ec(_0x39b2e1,_0x10d678,_0x2f1c19),this['_update']({'attributes':_0x39b2e1});}['removeAttribute'](_0x2b958f){const _0x1b666e=_0x282115(this['attributes']);_0x529fdc(_0x1b666e,_0x2b958f),this['_update']({'attributes':_0x1b666e});}['_update'](_0x30c876,_0x42124a=!0x1){let _0x1f9b7f=!0x1;const _0x6a6951={'id':this['id']},_0x2bc898=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x36a27e of _0x2bc898){const _0x50ec85=_0x30c876[_0x36a27e];void 0x0!==_0x50ec85&&_0x50ec85!==this[_0x36a27e]&&(this[_0x36a27e]=_0x50ec85,_0x6a6951[_0x36a27e]=_0x50ec85,_0x1f9b7f=!0x0);}_0x1f9b7f&&(_0x6a6951['authors']&&(_0x6a6951['authorsIds']=_0x6a6951['authors']['map'](_0x4d338c=>_0x4d338c['id']),delete _0x6a6951['authors']),this['fire']('_update',_0x6a6951,_0x42124a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4c042d=>_0x4c042d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0xed64d3{['_revisions'];static get['requires'](){return[_0x468992];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d7983){super(_0x4d7983),this['_revisions']=new _0x1f0832();}['afterInit'](){!async function(_0x55fd60){const _0x240f2e=_0x45a171([0x61,0x78,0x6f,0x79,0x76,0x72,0x4e,0x44,0x6d,0x41,0x50,0x4b,0x34,0x65,0x45,0x38,0x66,0x49,0x35,0x62,0x57,0x48,0x6a,0x31,0x64,0x6b,0x46,0x77,0x32,0x55,0x73,0x42,0x58,0x47,0x70,0x39,0x69,0x52,0x6c,0x63,0x68,0x4d,0x51,0x4c,0x4a,0x43,0x67,0x59,0x53,0x75,0x5a,0x36,0x56,0x33,0x71,0x4f,0x7a,0x37,0x74,0x30,0x6e,0x54]),_0x40ab0b=0xeb829,_0x229be1=0x1f47ae66,_0x2b2e20=0x1f40cc66^_0x229be1,_0x79851b=window[_0x45a171([0x44,0x61,0x74,0x65])][_0x45a171([0x6e,0x6f,0x77])](),_0x1ebf74=_0x55fd60[_0x45a171([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b53c2=new window[(_0x45a171([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32a945=>{_0x1ebf74[_0x45a171([0x6f,0x6e,0x63,0x65])](_0x45a171([0x72,0x65,0x61,0x64,0x79]),_0x32a945);}),_0x18cc6f={[_0x45a171([0x6b,0x74,0x79])]:_0x45a171([0x45,0x43]),[_0x45a171([0x75,0x73,0x65])]:_0x45a171([0x73,0x69,0x67]),[_0x45a171([0x63,0x72,0x76])]:_0x45a171([0x50,0x2d,0x32,0x35,0x36]),[_0x45a171([0x78])]:_0x45a171([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]),[_0x45a171([0x79])]:_0x45a171([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]),[_0x45a171([0x61,0x6c,0x67])]:_0x45a171([0x45,0x53,0x32,0x35,0x36])},_0xf7f6cd=_0x1ebf74[_0x45a171([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45a171([0x67,0x65,0x74])](_0x45a171([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x299094(){let _0x5ffd66,_0x16350e=null,_0x3afdc4=null;try{if(_0xf7f6cd==_0x45a171([0x47,0x50,0x4c]))return _0x45a171([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ffd66=_0x5d58ac(),!_0x5ffd66)return _0x45a171([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ffd66[_0x45a171([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3afdc4=_0x10dc4a(_0x5ffd66[_0x45a171([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ffd66[_0x45a171([0x6a,0x74,0x69])])),await _0x58c6cc()?_0x4d2594()?_0x4708d4()?_0x45a171([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e480a()?(_0x5ffd66[_0x45a171([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45a171([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16350e=_0x1df544(_0x45a171([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ffd66[_0x45a171([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45a171([0x74,0x72,0x69,0x61,0x6c])&&(_0x16350e=_0x1df544(_0x45a171([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57c99b()):_0x45a171([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45a171([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45a171([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xfdfd9e){return _0x45a171([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4708d4(){const _0x18217b=[_0x45a171([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45a171([0x74,0x72,0x69,0x61,0x6c])][_0x45a171([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ffd66[_0x45a171([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x79851b/0x3e8:0xe10*_0x2b2e20;return _0x5ffd66[_0x45a171([0x65,0x78,0x70])]<_0x18217b;}function _0x4d2594(){const _0xab64fb=_0x5ffd66[_0x45a171([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xab64fb)return!0x1;if(_0xab64fb[_0x45a171([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45a171([0x2a])))return!0x0;if(_0xab64fb[_0x45a171([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45a171([0x52,0x48])))return!0x0;if(_0xab64fb[_0x45a171([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45a171([0x52,0x52,0x48]))){if(_0x10e378())return!0x0;if(_0x39b0bf()||_0x1d60c3())return!0x0;}return!0x1;}function _0x1e480a(){const _0x345cee=_0x5ffd66[_0x45a171([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x345cee||0x0==_0x345cee[_0x45a171([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a8743}=new URL(window[_0x45a171([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x345cee[_0x45a171([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8743))return!0x0;const _0x28be7d=_0x4a8743[_0x45a171([0x73,0x70,0x6c,0x69,0x74])](_0x45a171([0x2e]));return _0x345cee[_0x45a171([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d42c5=>_0x5d42c5[_0x45a171([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45a171([0x2a])))[_0x45a171([0x6d,0x61,0x70])](_0x4cc62b=>_0x4cc62b[_0x45a171([0x73,0x70,0x6c,0x69,0x74])](_0x45a171([0x2e])))[_0x45a171([0x73,0x6f,0x6d,0x65])](_0x1a40c1=>_0x28be7d[_0x45a171([0x65,0x76,0x65,0x72,0x79])]((_0x4896d7,_0x1f6ba2)=>_0x1a40c1[_0x1f6ba2]===_0x4896d7||_0x1a40c1[_0x1f6ba2]===_0x45a171([0x2a])));}function _0x57c99b(){return _0x16350e&&_0x3afdc4?new window[(_0x45a171([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c4477,_0x545aba)=>{_0x16350e[_0x45a171([0x74,0x68,0x65,0x6e])](_0x5c4477,_0x545aba),_0x3afdc4[_0x45a171([0x74,0x68,0x65,0x6e])](_0x426cf6=>{_0x426cf6!=_0x45a171([0x56,0x61,0x6c,0x69,0x64])&&_0x5c4477(_0x426cf6);},_0x545aba);}):_0x16350e||_0x3afdc4||_0x45a171([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10dc4a(_0x559e68,_0x59784a){return new window[(_0x45a171([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50e916=>{if(_0x3789d9())return _0x50e916(_0x45a171([0x56,0x61,0x6c,0x69,0x64]));_0x3995f6(),_0x1ebf74[_0x45a171([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45a171([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18f487=!0x1;const _0x431f02=_0xeab9bf();function _0x1bbe4b(_0x3e6088){return!!_0x3e6088&&(typeof _0x3e6088===_0x45a171([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e6088===_0x45a171([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e6088[_0x45a171([0x74,0x68,0x65,0x6e])]===_0x45a171([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e6088[_0x45a171([0x63,0x61,0x74,0x63,0x68])]===_0x45a171([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33c4f4(_0x4e0b9f){_0x2e9ada(_0x4e0b9f)[_0x45a171([0x74,0x68,0x65,0x6e])](_0x159df1=>{if(!_0x159df1||_0x159df1[_0x45a171([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45a171([0x6f,0x6b]))return _0x45a171([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ca639(_0x35a361(_0x431f02+_0x59784a))!=_0x159df1[_0x45a171([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45a171([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45a171([0x56,0x61,0x6c,0x69,0x64]);})[_0x45a171([0x74,0x68,0x65,0x6e])](_0x142d31=>(_0x23dfe6(),_0x142d31),()=>{const _0x2ad1a9=_0x4a430e();return null==_0x2ad1a9?(_0x23dfe6(),_0x45a171([0x56,0x61,0x6c,0x69,0x64])):_0x45a171(_0x79851b-_0x2ad1a9>(0x3b4b2a66^_0x229be1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45a171([0x74,0x68,0x65,0x6e])](_0x50e916)[_0x45a171([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50e916(_0x45a171([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4241dc=0x1f7140e6^_0x229be1;function _0x23dfe6(){const _0x11cdfe=_0x45a171([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ca639(_0x35a361(_0x559e68)),_0xb65a15=_0x126595(_0x2ca639(window[_0x45a171([0x4d,0x61,0x74,0x68])][_0x45a171([0x63,0x65,0x69,0x6c])](_0x79851b/_0x4241dc)));window[_0x45a171([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45a171([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11cdfe,_0xb65a15);}function _0x4a430e(){const _0x379dda=_0x45a171([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ca639(_0x35a361(_0x559e68)),_0xc6ffa2=window[_0x45a171([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45a171([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x379dda);return _0xc6ffa2?window[_0x45a171([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x126595(_0xc6ffa2),0x10)*_0x4241dc:null;}function _0x2e9ada(_0x1d2f24){return new window[(_0x45a171([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x133f4e,_0x2aeee8)=>{_0x1d2f24[_0x45a171([0x74,0x68,0x65,0x6e])](_0x133f4e,_0x2aeee8),window[_0x45a171([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2aeee8,0x1f467aa6^_0x229be1);});}}_0x1ebf74[_0x45a171([0x6f,0x6e])](_0x45a171([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x205333,_0x749d72)=>{if(_0x749d72[0x0]!=_0x559e68)return _0x50e916(_0x45a171([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x749d72[0x1]={..._0x749d72[0x1],[_0x45a171([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x431f02};},{[_0x45a171([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45a171([0x68,0x69,0x67,0x68])}),_0x1ebf74[_0x45a171([0x6f,0x6e])](_0x45a171([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58aa50=>{_0x1bbe4b(_0x58aa50[_0x45a171([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18f487=!0x0,_0x33c4f4(_0x58aa50[_0x45a171([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45a171([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45a171([0x6c,0x6f,0x77])}),_0x1b53c2[_0x45a171([0x74,0x68,0x65,0x6e])](()=>{_0x18f487||_0x50e916(_0x45a171([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3789d9(){return _0x1ebf74[_0x45a171([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45a171([0x76,0x69,0x65,0x77])][_0x45a171([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45a171([0x61,0x75,0x74,0x6f]);}function _0x3995f6(){_0x1ebf74[_0x45a171([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45a171([0x76,0x69,0x65,0x77])][_0x45a171([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45a171([0x61,0x75,0x74,0x6f]);}}function _0x1df544(_0x44cd99){const _0x2cd721=[new window[(_0x45a171([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11c8ef=>setTimeout(_0x11c8ef,0x1f4e90aa^_0x229be1)),_0x1b53c2[_0x45a171([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45a171([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49e628=>{const _0x116507=0x1f47ae61^_0x229be1,_0x5bba86=_0x55fd60[_0x45a171([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1ee1bd(){_0x5bba86[_0x45a171([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x116507&&_0x49e628();}_0x1ee1bd(),_0x5bba86[_0x45a171([0x6f,0x6e])](_0x45a171([0x61,0x64,0x64]),_0x1ee1bd);})),new window[(_0x45a171([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4edb37=>{function _0x133c94(){for(const _0x42ccb2 in window)if(window[_0x45a171([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x45a171([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x42ccb2))&&window[_0x42ccb2]==_0x40ab0b)return _0x4edb37();_0x1ebf74[_0x45a171([0x73,0x74,0x61,0x74,0x65])]!=_0x45a171([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x45a171([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x133c94,0x1f47bdee^_0x229be1);}_0x3fdc95(_0x45a171([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x133c94();})];return window[_0x45a171([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45a171([0x72,0x61,0x63,0x65])](_0x2cd721)[_0x45a171([0x74,0x68,0x65,0x6e])](()=>_0x44cd99);}async function _0x104184(){if(await _0x1b53c2,_0x3fdc95(_0x45a171([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x20c5e9=_0x55fd60[_0x45a171([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x34f5ba=_0x55fd60[_0x45a171([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])](_0x20c5e9[_0x45a171([0x69,0x64])]),_0x5a351e=_0x1b217c(_0x45a171([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5a351e[_0x45a171([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x20c5e9['id'],_0x34f5ba?_0x34f5ba['id']:null,!0x0),_0x5a351e[_0x45a171([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x45a171([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5a351e[_0x45a171([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5a351e[_0x45a171([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3ca735,void(_0x5a351e[_0x45a171([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3ca735);}if(_0x3fdc95(_0x45a171([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x201d13=_0x1b217c(_0x45a171([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x201d13[_0x45a171([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x45a171([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x201d13[_0x45a171([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x201d13[_0x45a171([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3ca735,_0x201d13[_0x45a171([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3ca735;}_0x1ebf74[_0x45a171([0x6d,0x6f,0x64,0x65,0x6c])][_0x45a171([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ca735,_0x1ebf74[_0x45a171([0x6d,0x6f,0x64,0x65,0x6c])][_0x45a171([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ca735,_0x1ebf74[_0x45a171([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45a171([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10e378(){return _0x3fdc95(_0x45a171([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1b217c(_0x45a171([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x45a171([0x73,0x74,0x61,0x74,0x65])]==_0x45a171([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x39b0bf(){return _0x3fdc95(_0x45a171([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 _0x1d60c3(){return _0x3fdc95(_0x45a171([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2900eb(_0x4225b6){const _0x741c11=_0x35e3b1();_0x1ebf74[_0x741c11]=_0x45a171([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])+_0x4225b6,_0x4225b6[_0x45a171([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x45a171([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x35e3b1()]=_0x40ab0b),_0x4225b6!=_0x45a171([0x56,0x61,0x6c,0x69,0x64])&&_0x104184();}function _0x35e3b1(){const _0x494c00=window[_0x45a171([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45a171([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45a171([0x6e,0x6f,0x77])]())[_0x45a171([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45a171([0x2e]),'');let _0x14304d=_0x45a171([0x61]);for(let _0x514028=0x0;_0x514028<_0x494c00[_0x45a171([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x514028+=0x2){let _0x7acb83=window[_0x45a171([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x494c00[_0x45a171([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x514028,_0x514028+0x2));_0x7acb83>=_0x240f2e[_0x45a171([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7acb83-=_0x240f2e[_0x45a171([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14304d+=_0x240f2e[_0x7acb83];}return _0x14304d;}function _0x5d58ac(){const _0x4495a9=_0xf7f6cd[_0x45a171([0x73,0x70,0x6c,0x69,0x74])](_0x45a171([0x2e]));if(0x3!=_0x4495a9[_0x45a171([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8e0ef4(_0x4495a9[0x1]);function _0x8e0ef4(_0x51c7c3){const _0x4a7aa2=_0x4ed910(_0x51c7c3);return _0x4a7aa2&&_0xa3b3c9()?_0x4a7aa2:null;function _0xa3b3c9(){const _0x1108f5=_0x4a7aa2[_0x45a171([0x6a,0x74,0x69])],_0x3ca8d3=window[_0x45a171([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1108f5[_0x45a171([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1108f5[_0x45a171([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31622c={..._0x4a7aa2,[_0x45a171([0x6a,0x74,0x69])]:_0x1108f5[_0x45a171([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1108f5[_0x45a171([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31622c[_0x45a171([0x76,0x63])],_0x35a361(_0x31622c)==_0x3ca8d3;}}}async function _0x58c6cc(){let _0x2832e4=!0x0;try{const _0x1f85c1=_0xf7f6cd[_0x45a171([0x73,0x70,0x6c,0x69,0x74])](_0x45a171([0x2e])),[_0x30e16f,_0x238d34,_0x523f95]=_0x1f85c1;return _0x4d01ff(_0x30e16f),await _0x424d77(_0x30e16f,_0x238d34,_0x523f95),_0x2832e4;}catch(_0x321c57){return!0x1;}function _0x4d01ff(_0x200b32){const _0x2f7c80=_0x4ed910(_0x200b32);_0x2f7c80&&_0x2f7c80[_0x45a171([0x61,0x6c,0x67])]==_0x45a171([0x45,0x53,0x32,0x35,0x36])||(_0x2832e4=!0x1);}async function _0x424d77(_0x5df029,_0x464d1f,_0x1ef015){const _0xac0d27=window[_0x45a171([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45a171([0x66,0x72,0x6f,0x6d])](_0x376da1(_0x1ef015),_0xf25154=>_0xf25154[_0x45a171([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f66e1=new window[(_0x45a171([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45a171([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5df029+_0x45a171([0x2e])+_0x464d1f),_0x3dacbd=window[_0x45a171([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45a171([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3dacbd)return;const _0x3a9b6f=await _0x3dacbd[_0x45a171([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45a171([0x6a,0x77,0x6b]),_0x18cc6f,{[_0x45a171([0x6e,0x61,0x6d,0x65])]:_0x45a171([0x45,0x43,0x44,0x53,0x41]),[_0x45a171([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45a171([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45a171([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3dacbd[_0x45a171([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45a171([0x6e,0x61,0x6d,0x65])]:_0x45a171([0x45,0x43,0x44,0x53,0x41]),[_0x45a171([0x68,0x61,0x73,0x68])]:{[_0x45a171([0x6e,0x61,0x6d,0x65])]:_0x45a171([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a9b6f,_0xac0d27,_0x3f66e1)||(_0x2832e4=!0x1);}}function _0x4ed910(_0x52edc2){return _0x52edc2[_0x45a171([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45a171([0x65,0x79]))?JSON[_0x45a171([0x70,0x61,0x72,0x73,0x65])](_0x376da1(_0x52edc2)):null;}function _0x376da1(_0x35cd56){return window[_0x45a171([0x61,0x74,0x6f,0x62])](_0x35cd56[_0x45a171([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45a171([0x2b]))[_0x45a171([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45a171([0x2f])));}function _0x35a361(_0x5ce008){let _0x411b76=0x1505;function _0x2dcdbb(_0x2dd011){for(let _0x9a6837=0x0;_0x9a6837<_0x2dd011[_0x45a171([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9a6837++){const _0x35d612=_0x2dd011[_0x45a171([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9a6837);_0x411b76=(_0x411b76<<0x5)+_0x411b76+_0x35d612,_0x411b76&=_0x411b76;}}function _0x175d4d(_0x1253a8){Array[_0x45a171([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1253a8)?_0x1253a8[_0x45a171([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x175d4d):_0x1253a8&&typeof _0x1253a8==_0x45a171([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45a171([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1253a8)[_0x45a171([0x73,0x6f,0x72,0x74])]()[_0x45a171([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x484adf,_0xfbc2e7])=>{_0x2dcdbb(_0x484adf),_0x175d4d(_0xfbc2e7);}):_0x2dcdbb(window[_0x45a171([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1253a8));}return _0x175d4d(_0x5ce008),_0x411b76>>>0x0;}function _0x2ca639(_0x3fd536){return _0x3fd536[_0x45a171([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45a171([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45a171([0x30]));}function _0x126595(_0x87e53){return _0x87e53[_0x45a171([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45a171([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45a171([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fdc95(_0x246534){return _0x1ebf74[_0x45a171([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x45a171([0x68,0x61,0x73])](_0x246534);}function _0x1b217c(_0x1347da){return _0x1ebf74[_0x45a171([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x45a171([0x67,0x65,0x74])](_0x1347da);}function _0x3ca735(){}function _0x45a171(_0x165c0e){return _0x165c0e['map'](_0x350030=>String['fromCharCode'](_0x350030))['join']('');}_0x2900eb(await _0x299094());}(this);}['createRevision'](_0x11c637){const _0x594e38=this['editor']['plugins']['get']('Users');return new h({'id':_0x11c637['id'],'name':_0x11c637['name'],'creator':_0x11c637['creatorId']?_0x594e38['getUser'](_0x11c637['creatorId']):null,'diffData':_0x11c637['diffData']||_0x11c637['data'],'authors':_0x11c637['authorsIds']['map'](_0x59ad86=>_0x594e38['getUser'](_0x59ad86)),'createdAt':new Date(_0x11c637['createdAt']),'attributes':_0x11c637['attributes'],'fromVersion':_0x11c637['fromVersion'],'toVersion':_0x11c637['toVersion']});}['addRevision'](_0x508c6e,_0xed7483=0x0){this['_revisions']['add'](_0x508c6e,_0xed7483);}['getRevision'](_0x2af188){return this['_revisions']['get'](_0x2af188);}['getRevisions'](_0x44fce0={'toJSON':!0x1}){const _0x488292=Array['from'](this['_revisions']);return _0x488292['reverse'](),_0x44fce0['toJSON']?_0x488292['map'](_0x3ad76b=>_0x3ad76b['toJSON']()):_0x488292;}['getIndex'](_0x42fd5b){return this['_revisions']['getIndex'](_0x42fd5b);}['getEarlierVisibleRevision'](_0x21d5b8){const [,_0x4e7a02]=this['getRevisionsIterator'](_0x21d5b8,{'direction':'earlier'});return _0x4e7a02;}['getLaterVisibleRevision'](_0x324713){const [,_0x3214fd]=this['getRevisionsIterator'](_0x324713,{'direction':'later'});return _0x3214fd;}['getRevisionsInDiff'](_0x2f32df){const _0x101834=[];for(const _0x263ecd of this['getRevisionsIterator'](_0x2f32df['newRevisionId']))if(_0x101834['push'](_0x263ecd),_0x263ecd['id']===_0x2f32df['oldRevisionId'])break;return _0x101834;}*['getRevisionsIterator'](_0x5a706f,{direction:_0x407ad6='earlier',filter:_0x5de064=()=>!0x0}={}){const _0x335bfa='earlier'===_0x407ad6?0x1:-0x1;let _0x31b8a8=this['_revisions']['get'](_0x5a706f),_0x53ffef=this['getIndex'](_0x31b8a8);for(yield _0x31b8a8;_0x31b8a8;){if(_0x53ffef+=_0x335bfa,_0x31b8a8=this['getRevision'](_0x53ffef),!_0x31b8a8)return;_0x5de064(_0x31b8a8)&&(yield _0x31b8a8);}}}function m(_0x576433,_0x3d2711,_0x1b705a){const t=_0x576433['t'];switch(_0x3d2711){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'},_0x1b705a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1b705a);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':_0x4112f4,'a':_0x16f432,'e':_0x2e68ba,'r':_0x4554df,'u':_0x2172b3};class u extends _0xed64d3{['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[_0x468992,j,_0x221a22];}constructor(_0x1cc819){super(_0x1cc819),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 _0x586d3c=_0xeab9bf();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x586d3c},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 _0x3674a9=this['repository']['getRevision'](0x0),_0x1984eb=_0x3674a9&&null===_0x3674a9['creator']?_0x3674a9:null;if(this['_continueCurrentRevision']=!!_0x1984eb&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x521ca1=this['_source']['getCurrentRevisionId'](),_0x23da87=this['repository']['getRevision'](_0x521ca1);if(_0x23da87)this['_startingVersion']=_0x23da87['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x52effa=this['_source']['history']['_operations']['find'](_0x3398e3=>!_0x3398e3['_isInit']),_0x46ff80=_0x52effa?_0x52effa['baseVersion']:this['_source']['history']['version'];_0x3674a9?(_0x3674a9['toVersion']<_0x46ff80&&_0x3674a9['_update']({'toVersion':_0x46ff80}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1984eb['id'],this['_startingVersion']=_0x1984eb['fromVersion']):(this['_startingVersion']=_0x3674a9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x46ff80,this['_continueCurrentRevision']=!0x1);}}else _0x1984eb&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1984eb['toVersion'],this['editor']['model']['document']['history']['version']),_0x1984eb['fromVersion']===_0x1984eb['toVersion']?(0x0!==_0x1984eb['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1984eb['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1984eb['id'],this['_startingVersion']=_0x1984eb['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',_0x1f21a6=>!_0x1f21a6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x346295=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x346ef2;for(const _0x491322 in _0x346295){const _0xe2c3dd=_0x491322,_0x58bc29=_0x346295[_0xe2c3dd];if('revisionHistoryLicenseKeyValid'==_0x58bc29||'revisionHistoryLicenseKeyInvalid'==_0x58bc29||'revisionHistoryLicenseKeyExpired'==_0x58bc29||'revisionHistoryLicenseKeyDomainLimit'==_0x58bc29||'revisionHistoryLicenseKeyNotAllowed'==_0x58bc29||'revisionHistoryLicenseKeyEvaluationLimit'==_0x58bc29||'revisionHistoryLicenseKeyTrialLimit'==_0x58bc29||'revisionHistoryLicenseKeyUsageLimit'==_0x58bc29){delete _0x346295[_0xe2c3dd],_0x346ef2=_0x58bc29,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x346ef2&&_0x346295['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x346ef2&&_0x346295['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x346ef2&&_0x346295['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x346ef2&&_0x346295['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x346ef2&&_0x346295['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x346ef2&&_0x346295['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x346ef2&&_0x346295['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x430ff8=this['repository']['getRevision'](0x0),_0x5f090d=await this['getRevisionDocumentData'](_0x430ff8),_0xb14af1=await this['getRevisionRootsAttributes'](_0x430ff8);this['_replaceEditorDataWithRevisionData'](_0x5f090d,_0xb14af1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x927cd5){this['_source']=_0x927cd5;}async['update'](){const _0x4b7bd1=await this['_source']['getLatestVersion']();if(_0x4b7bd1>this['currentRevision']['toVersion']){await this['_loadState']();const _0xf9adb5=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4b7bd1});_0xf9adb5['authors']=_0xf9adb5['authorsIds']['map'](_0x4ffff5=>this['editor']['plugins']['get']('Users')['getUser'](_0x4ffff5)),this['currentRevision']['_update'](_0xf9adb5);}}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'](_0x395094={},_0x1fd3d8=null){const _0x336b06=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1fd3d8>this['currentRevision']['toVersion']&&(_0x1fd3d8=null),null===_0x1fd3d8&&(_0x1fd3d8=await this['_source']['getLatestVersion']());const _0xf65a78=this['_getFromVersion'](_0x1fd3d8),_0x1658b7=this['buildRevisionData']({'from':_0xf65a78,'to':_0x1fd3d8});if(this['currentRevision']['toVersion']<_0x1fd3d8){const _0x43c2ab=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1fd3d8,'to':_0x1fd3d8});_0x43c2ab['authors']=[],_0x43c2ab['authorsIds']=[],_0x43c2ab['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x43c2ab,!0x0),delete _0x43c2ab['authors'],_0x336b06['push'](_0x43c2ab);}_0x395094['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x395094['name']=_0x395094['name']||null,_0x395094['id']=_0x395094['id']||_0xeab9bf(),_0x395094={..._0x395094,..._0x1658b7};const _0x276b01=this['addRevisionData'](_0x395094);_0x336b06['push'](_0x395094);const _0x5d5cc6=this['repository']['getIndex'](_0x276b01);if(0x0!==_0x5d5cc6){const _0x240a78=this['repository']['getRevision'](_0x5d5cc6-0x1);if(_0x240a78['fromVersion']!==_0x1fd3d8){const _0x503a34=this['_revisionDataBuilder']['getData'](_0x1fd3d8,_0x240a78['toVersion']),_0x28b8bc={'id':_0x240a78['id'],'diffData':_0x503a34['diffData'],'authorsIds':_0x503a34['authorsIds'],'authors':_0x503a34['authorsIds']['map'](_0x1fd250=>this['editor']['plugins']['get']('Users')['getUser'](_0x1fd250)),'fromVersion':_0x1fd3d8};_0x240a78===this['currentRevision']&&(_0x28b8bc['createdAt']=new Date(_0x395094['createdAt']['getTime']()+0xa)),_0x240a78['_update'](_0x28b8bc,!0x0),delete _0x28b8bc['authors'],_0x336b06['push'](_0x28b8bc);}}if(this['adapter']){for(const _0x2052e0 of _0x336b06)this['_bufferUpdate'](_0x2052e0['id'],_0x2052e0,!0x0);this['sendBufferedUpdates']();}return _0x276b01;}['addRevisionData'](_0x1e04b4){const _0x435ea2=this['repository']['createRevision'](_0x1e04b4);return this['adapter']&&_0x435ea2['on']('_update',(_0x5968d3,_0x3bd9a9,_0x2b06b3)=>{_0x2b06b3||(this['_bufferUpdate'](_0x3bd9a9['id'],_0x3bd9a9,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x435ea2,this['_findInsertionIndex'](_0x435ea2)),_0x435ea2;}async['getRevisionDocumentData'](_0x497f5e){await this['_loadRevisionData'](_0x497f5e);const _0x1bc8c0={};for(const _0x7148c8 in _0x497f5e['diffData']){if(_0x497f5e['diffData'][_0x7148c8]['attachChange']&&!_0x497f5e['diffData'][_0x7148c8]['attachChange']['isAttached'])continue;const _0x2743cf=this['_removeRevisionMarkers'](JSON['parse'](_0x497f5e['diffData'][_0x7148c8]['insertions'])),_0x37e285=this['editor']['editing']['view']['document'],_0x378537=new _0x1dd2da(_0x37e285,_0x2743cf['map'](_0x3f5acf=>P(_0x3f5acf,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1bc8c0[_0x7148c8]=this['editor']['data']['processor']['toData'](_0x378537),this['editor']['data']['processor']['useFillerType']('default');}return _0x1bc8c0;}async['getRevisionRootsAttributes'](_0x5420ea){await this['_loadRevisionData'](_0x5420ea);const _0x2e3264={};for(const _0x2b57b7 in _0x5420ea['diffData'])_0x5420ea['diffData'][_0x2b57b7]['attachChange']&&!_0x5420ea['diffData'][_0x2b57b7]['attachChange']['isAttached']||(_0x2e3264[_0x2b57b7]=_0x5420ea['diffData'][_0x2b57b7]['attributesAfter']||{});return _0x2e3264;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4377d8=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x429f00=0x0;_0x429f00<_0x4377d8['length'];_0x429f00++){const _0x452847=_0x4377d8[_0x429f00];let _0x4cee06=!0x1;for(const _0x368027 of Object['keys'](_0x452847))void 0x0===_0x452847[_0x368027]?delete _0x452847[_0x368027]:'id'!==_0x368027&&(_0x4cee06=!0x0);_0x4cee06||(_0x4377d8[_0x429f00]=null);}if(_0x4377d8=_0x4377d8['filter'](_0x1b22f9=>null!==_0x1b22f9),!_0x4377d8['length'])return;for(let _0x25a6d4=0x0;_0x25a6d4<_0x4377d8['length'];_0x25a6d4++){const _0x3805e8=_0x4377d8[_0x25a6d4];void 0x0!==_0x3805e8['fromVersion']&&void 0x0===_0x3805e8['toVersion']&&(_0x3805e8['toVersion']=this['repository']['getRevision'](_0x3805e8['id'])['toVersion']),void 0x0!==_0x3805e8['toVersion']&&void 0x0===_0x3805e8['fromVersion']&&(_0x3805e8['fromVersion']=this['repository']['getRevision'](_0x3805e8['id'])['fromVersion']);}const _0x192b99=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4377d8,_0x192b99)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x595340=>{if(_0x595340){for(const _0x1cbf7c of _0x595340)this['setRevisionData']({'id':_0x1cbf7c['id'],'createdAt':_0x1cbf7c['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x255809,_0x47aa89){let _0x1b9f1e=this['editor']['config']['get']('initialData'),_0x4d29ab=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1b9f1e){_0x1b9f1e={};for(const _0x428f08 of this['editor']['model']['document']['getRootNames']())_0x1b9f1e[_0x428f08]='';}if('string'==typeof _0x1b9f1e&&(_0x1b9f1e={'main':_0x1b9f1e}),void 0x0===_0x4d29ab){_0x4d29ab={};for(const _0x3a141e of this['editor']['model']['document']['getRootNames']())_0x4d29ab[_0x3a141e]={};}let _0x4bf9c9=!0x1;const _0x398e09=Object['keys'](_0x1b9f1e),_0x589650=Object['keys'](_0x255809);for(const _0x43c4b8 of _0x398e09){if(_0x1b9f1e[_0x43c4b8]!==_0x255809[_0x43c4b8]&&''!==_0x1b9f1e[_0x43c4b8]['trim']()){_0x4bf9c9=!0x0;break;}if(!_0x67f154(_0x4d29ab[_0x43c4b8],_0x47aa89[_0x43c4b8])&&Object['keys'](_0x4d29ab[_0x43c4b8])['length']>0x0){_0x4bf9c9=!0x0;break;}}_0x4bf9c9||(_0x4bf9c9=_0x589650['some'](_0x4f1467=>!this['editor']['model']['document']['getRoot'](_0x4f1467))),_0x4bf9c9&&_0x50003d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1b9f1e,'editorRootsAttributes':_0x4d29ab,'revisionData':_0x255809,'revisionRootsAttributes':_0x47aa89}),this['editor']['config']['set']('initialData',_0x255809),this['editor']['config']['set']('rootsAttributes',_0x47aa89);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x52ac82=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x52ac82['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3b49ba){const _0x24d654=this['repository']['getRevisions']();_0x24d654['reverse']();let _0x523b55=0x0;for(;_0x523b55<_0x24d654['length'];){const _0x1d6489=_0x24d654[_0x523b55];if(_0x1d6489===this['currentRevision']){_0x523b55++;continue;}if(_0x1d6489['id']===this['_initialRevisionId'])break;const _0x47b53b=_0x3b49ba['toVersion']-_0x1d6489['toVersion']||_0x3b49ba['fromVersion']-_0x1d6489['fromVersion'];if(_0x47b53b>0x0)break;if(_0x47b53b<0x0)_0x523b55++;else{if(!_0x3b49ba['creator']&&_0x1d6489['creator'])break;if(_0x1d6489['creator']||!_0x3b49ba['creator']){if(_0x3b49ba['createdAt']>_0x1d6489['createdAt'])break;_0x523b55++;}else _0x523b55++;}}return _0x523b55;}['setRevisionData'](_0x1e5c90){const _0x39d5d8=this['repository']['getRevision'](_0x1e5c90['id']);if(_0x1e5c90['createdAt']&&(_0x1e5c90['createdAt']=new Date(_0x1e5c90['createdAt'])),_0x1e5c90['authorsIds']){const _0x2bd388=this['editor']['plugins']['get']('Users');_0x1e5c90['authors']=_0x1e5c90['authorsIds']['map'](_0x1ea04f=>_0x2bd388['getUser'](_0x1ea04f));}_0x39d5d8['_update'](_0x1e5c90,!0x0);}['buildRevisionData']({revision:_0x3ecfac=null,from:_0x495e1c=null,to:_0x2feade=null}){_0x495e1c=null!==_0x495e1c?_0x495e1c:_0x3ecfac['fromVersion'],_0x2feade=null!==_0x2feade?_0x2feade:_0x3ecfac['toVersion'];const _0x548e7d=this['_revisionDataBuilder']['getData'](_0x495e1c,_0x2feade),_0x344fee={'diffData':_0x548e7d['diffData'],'authorsIds':_0x548e7d['authorsIds'],'fromVersion':_0x495e1c,'toVersion':_0x2feade};if(!_0x3ecfac||_0x2feade!==_0x3ecfac['toVersion']){const _0x3f2568=_0x2feade-0x1,_0x21da55=this['_source']['history']['getOperation'](_0x3f2568);_0x344fee['createdAt']=_0x21da55&&_0x21da55['createdAt']||new Date();}if(this['_loadedStateData']&&_0x495e1c===this['_loadedStateData']['fromVersion']){for(const _0x4eefd3 of this['_loadedStateData']['authors'])_0x344fee['authorsIds']['includes'](_0x4eefd3['id'])||_0x344fee['authorsIds']['push'](_0x4eefd3['id']);}return _0x344fee;}['_loadRevisionData'](_0x77f8e9){if(!_0x77f8e9||_0x77f8e9['diffData'])return Promise['resolve']();{const _0x559e72=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x559e72,'revisionId':_0x77f8e9['id']})['then'](_0x59a3a9=>{_0x77f8e9['diffData']=_0x59a3a9['diffData'];});}}['_bufferUpdate'](_0x57c97a,_0x47fb2a,_0x338e7d){if(this['_bufferedUpdates']['has'](_0x57c97a)){const _0x7b8895=this['_bufferedUpdates']['get'](_0x57c97a);_0x47fb2a=_0x338e7d?{..._0x7b8895,..._0x47fb2a}:{..._0x47fb2a,..._0x7b8895};}this['_bufferedUpdates']['set'](_0x57c97a,_0x47fb2a);}['_getFromVersion'](_0x4333cd){const _0x567a75=this['repository']['getRevisions']();_0x567a75['reverse'](),_0x567a75['shift']();const _0x1c68e9=_0x567a75['find'](_0x40e992=>_0x40e992['toVersion']<=_0x4333cd)['toVersion'];return _0x1c68e9<this['_startingVersion']?this['_startingVersion']:_0x1c68e9;}['_createInitialRevision'](_0x21a468){const _0x219ecc=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x219ecc)this['_initialRevisionId']=_0x219ecc['id'];else{const _0x3215d9=!this['editor']['model']['document']['roots']['find'](_0x45b671=>this['editor']['model']['hasContent'](_0x45b671)),_0x39d355=this['editor']['plugins']['get']('Users')['me']['id'],_0x261229=m(this['editor']['locale'],_0x3215d9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x21a468,'to':_0x21a468,'id':this['_initialRevisionId'],'name':_0x261229,'creatorId':_0x39d355});}}['_createCurrentRevision'](_0x39869d){const _0x2a5fdc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2a5fdc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x39869d,'to':_0x39869d,'id':_0x2a5fdc,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2e07de,from:_0x41e8f3,to:_0x1d8e85,creatorId:_0xa6382,id:_0x55b634}){const _0x1ac435=this['buildRevisionData']({'from':_0x41e8f3,'to':_0x1d8e85});_0x1ac435['name']=_0x2e07de,_0x1ac435['creatorId']=_0xa6382,_0x1ac435['id']=_0x55b634;const _0x3c050e=this['addRevisionData'](_0x1ac435);return this['adapter']&&this['_bufferUpdate'](_0x1ac435['id'],_0x1ac435,!0x0),_0x3c050e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1ba0f8){return(_0x1ba0f8=_0x1ba0f8['filter'](_0x457517=>!_0x457517['name']||'revision-start'!==_0x457517['name']&&'revision-end'!==_0x457517['name']))['forEach'](_0x28ca23=>{'string'!=typeof _0x28ca23&&(_0x28ca23['children']=this['_removeRevisionMarkers'](_0x28ca23['children']),_0x28ca23['attributes']=_0x28ca23['attributes']['filter'](_0x5aa443=>!_0x5aa443[0x0]['startsWith']('data-revision-')));}),_0x1ba0f8;}}function P(_0x3775e5,_0x1b4e08){const _0x4a5bf6=_0x1b4e08['editing']['view']['document'];if('string'==typeof _0x3775e5)return new _0x131fce(_0x4a5bf6,_0x3775e5);{const _0x42822a=_0x3775e5['children']['map'](_0x306c2a=>P(_0x306c2a,_0x1b4e08));return new(E[_0x3775e5['type']]||_0x48370f)(_0x4a5bf6,_0x3775e5['name'],_0x3775e5['attributes'],_0x42822a);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x562988){this['editor']=_0x562988,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'](_0x337022){this['source']=_0x337022;const _0x535d48=new Map(),_0x661b13=new Map(),_0x46c486=this['editor']['model']['document']['roots']['map'](_0x3bedb1=>_0x3bedb1['rootName']);for(const _0x5d563c of _0x46c486){const _0x4e790b=this['editor']['model']['document']['getRoot'](_0x5d563c),_0x3baab7=T(_0x4e790b);_0x535d48['set'](_0x5d563c,_0x3baab7),_0x661b13['set'](_0x5d563c,Object['fromEntries'](_0x4e790b['getAttributes']()));}const _0x5d8d67=Array['from'](this['editor']['model']['markers'])['map'](_0x11dd10=>[_0x11dd10['name'],_0x11dd10['getRange']()]),_0x1e700f=this['source']['version'];this['_saveMetaData'](_0x1e700f,_0x535d48,_0x5d8d67,_0x661b13),this['_startingRevisionId']=this['_revisionId'];const _0x35dcb1=new Map(),_0x129b78=new Map();for(const _0xbfa2ee of _0x46c486){const _0x16df20=F(_0xbfa2ee);_0x35dcb1['set'](_0xbfa2ee,_0x16df20),_0x129b78['set'](_0xbfa2ee,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x35dcb1,[],_0x129b78);}['getData'](_0x51eb2e,_0x4161c9){if(this['_lastFrom']===_0x51eb2e&&this['_lastTo']<=_0x4161c9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4161c9,!0x0);else{if(!this['_savedMetaData']['has'](_0x51eb2e)){const _0x5ebdb8=this['_getPreviousFrom'](_0x51eb2e);this['_calculateMetaData'](_0x5ebdb8,_0x51eb2e,!0x1);}this['_calculateMetaData'](_0x51eb2e,_0x4161c9,!0x0);}return this['_lastFrom']=_0x51eb2e,this['_lastTo']=_0x4161c9,this['_getState']();}['loadState'](_0x53c346){this['_reset'](),this['_lastFrom']=_0x53c346['fromVersion'],this['_lastTo']=_0x53c346['toVersion'];for(const _0x2d43af in _0x53c346['diffData']){const _0x2d528c=_0x53c346['diffData'][_0x2d43af]['attachChange'],_0xa2d224=_0x282115(_0x53c346['diffData'][_0x2d43af]['attributesBefore'])||{},_0x4aa8d2=this['_makeModelFromViewString'](_0x53c346['diffData'][_0x2d43af]['deletions']);_0x4aa8d2['rootName']=_0x2d43af,_0x4aa8d2['_isAttached']=!_0x2d528c||!_0x2d528c['isAttached'],_0x4aa8d2['isAttached']=()=>_0x4aa8d2['_isAttached'],this['_baseRoots']['set'](_0x2d43af,_0x4aa8d2),this['_baseRootsAttributes']['set'](_0x2d43af,_0xa2d224),_0x2d528c&&this['_touchedRoots']['set'](_0x2d43af,_0x2d528c);const _0x2b8f2c=this['_makeIdsRoot'](_0x4aa8d2);this['_baseIdsRoots']['set'](_0x2d43af,_0x2b8f2c);for(const [_0x59ecec,_0x3cf2e5]of _0x4aa8d2['markers']){if(!_0x59ecec['startsWith']('revision:'))continue;const _0x4a90f4=_0x59ecec['split'](':')[0x2];for(const _0x3cd6e9 of _0x3cf2e5['getWalker']({'singleCharacters':!0x0})){const _0xd3278d=this['_getVidAttributeName'](_0x3cd6e9),_0x4dde33='elementEnd'==_0x3cd6e9['type']?_0x3cd6e9['previousPosition']['path']['slice'](0x0,-0x1):_0x3cd6e9['previousPosition']['path'],_0x4b7acd=_0x2b8f2c['getNodeByPath'](_0x4dde33)['getAttribute'](_0xd3278d);this['_touched']['set'](_0x4b7acd,{'userId':_0x4a90f4});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2d1bc8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2ebd92=>!this['_touched']['has'](_0x2ebd92));let _0x5198ae=0x0;const _0x14d25a=new Map();for(const _0x444633 in _0x53c346['diffData']){const _0x58bc76=_0x53c346['diffData'][_0x444633]['attachChange'],_0x592298=_0x282115(_0x53c346['diffData'][_0x444633]['attributesAfter'])||{},_0x2a2438=this['_makeModelFromViewString'](_0x53c346['diffData'][_0x444633]['insertions']);_0x2a2438['rootName']=_0x444633,_0x2a2438['_isAttached']=!_0x58bc76||_0x58bc76['isAttached'],_0x2a2438['isAttached']=()=>_0x2a2438['_isAttached'],this['_diffRoots']['set'](_0x444633,_0x2a2438),this['_diffRootsAttributes']['set'](_0x444633,_0x592298);const _0x19fd9f=this['_makeIdsRoot'](_0x2a2438,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x444633,_0x19fd9f),_0x14d25a['set'](_0x444633,_0x2a2438['isAttached']()?_0x592298:{});for(const [_0x209eae,_0x4b0422]of _0x2a2438['markers']){if(!_0x209eae['startsWith']('revision:'))continue;const _0x357f6b=_0x209eae['split'](':')[0x2];for(const _0x10efe2 of _0x4b0422['getWalker']({'singleCharacters':!0x0})){const _0x110f9e=this['_getVidAttributeName'](_0x10efe2),_0x37e54f=this['_revisionId']++,_0x2d58e4='elementEnd'==_0x10efe2['type']?_0x10efe2['previousPosition']['path']['slice'](0x0,-0x1):_0x10efe2['previousPosition']['path'];_0x19fd9f['getNodeByPath'](_0x2d58e4)['_setAttribute'](_0x110f9e,_0x37e54f),this['_touched']['set'](_0x37e54f,{'userId':_0x357f6b});}}for(const _0x2a9629 of this['editor']['model']['createRangeIn'](_0x2a2438)['getWalker']({'singleCharacters':!0x0})){const _0x5111ba=this['_getVidAttributeName'](_0x2a9629),_0x4c541f='elementEnd'==_0x2a9629['type']?_0x2a9629['previousPosition']['path']['slice'](0x0,-0x1):_0x2a9629['previousPosition']['path'],_0x16923e=_0x19fd9f['getNodeByPath'](_0x4c541f);_0x16923e['getAttribute'](_0x5111ba)>0x0||_0x16923e['_setAttribute'](_0x5111ba,_0x2d1bc8[_0x5198ae++]);}for(const [_0x5a2d6f,_0x58d240]of _0x2a2438['markers'])_0x5a2d6f['startsWith']('revision:')||this['_markers']['set'](_0x5a2d6f,_0x58d240);}const _0x4b3ee9=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4b3ee9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4b3ee9,0x1));const _0x3debb7=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3debb7),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3debb7,0x1));const _0x4a7325=Array['from'](this['_diffRoots'])['map'](([_0x5cd09f,_0x413268])=>[_0x5cd09f,T(_0x413268)]);this['_saveMetaData'](this['_lastTo'],_0x4a7325,this['_markers'],_0x14d25a);}['_makeModelFromViewString'](_0x569b01){const _0x1c8772=JSON['parse'](_0x569b01),_0x174bd9=this['editor']['editing']['view']['document'],_0x5649cd=new _0x1dd2da(_0x174bd9,_0x1c8772['map'](_0x5bb544=>P(_0x5bb544,this['editor'])));return this['editor']['data']['toModel'](_0x5649cd);}['_saveMetaData'](_0x4cb3c6,_0x16ed65,_0x305f70,_0x192e6c){const _0x25f6c3=new Map(_0x16ed65),_0xd2c60b=new Map(_0x282115(_0x192e6c)),_0x2056f3=new Map();for(const [_0x5ed746,_0x1c6275]of _0x305f70)_0x2056f3['set'](_0x5ed746,{'start':_0x1c6275['start']['clone'](),'end':_0x1c6275['end']['clone'](),'rootName':_0x1c6275['root']['rootName']});this['_savedMetaData']['set'](_0x4cb3c6,{'roots':_0x25f6c3,'markers':_0x2056f3,'rootsAttributes':_0xd2c60b});}['_removeMetaData'](_0x10b600){this['_savedMetaData']['delete'](_0x10b600);}['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'](_0x5abd52,_0x23f352=null){let _0x4e330c=null;_0x5abd52['is']('documentFragment')||(_0x4e330c=new ut(_0x5abd52['name'],{'vid_start':null===_0x23f352?this['_revisionId']++:_0x23f352++}));const _0x96bfdc=[];for(const _0x1c45ec of _0x5abd52['getChildren']())if(_0x1c45ec['is']('element')){_0x96bfdc['push'](this['_makeIdsRoot'](_0x1c45ec,_0x23f352));const _0x153d73=_0x96bfdc[_0x96bfdc['length']-0x1];null!==_0x23f352&&(_0x23f352=_0x153d73['is']('element','$text')?_0x153d73['getAttribute']('vid')+0x1:_0x153d73['getAttribute']('vid_end')+0x1);}else{for(let _0x266f3f=0x0;_0x266f3f<_0x1c45ec['offsetSize'];_0x266f3f++)_0x96bfdc['push'](new ut('$text',{'vid':null===_0x23f352?this['_revisionId']++:_0x23f352++}));}if(_0x5abd52['is']('documentFragment')){const _0x371d14=F(_0x5abd52['rootName']);return _0x371d14['_insertChild'](0x0,_0x96bfdc),_0x371d14;}return _0x4e330c['_setAttribute']('vid_end',null===_0x23f352?this['_revisionId']++:_0x23f352++),_0x4e330c['_insertChild'](0x0,_0x96bfdc),_0x4e330c;}['_calculateMetaData'](_0x4cc02b,_0x2be236,_0x49cf8d){this['_reset']();const {roots:_0x347fb3,markers:_0x32897c,rootsAttributes:_0x561b7e}=this['_savedMetaData']['get'](_0x4cc02b);this['_baseRoots']=new Map(_0x347fb3),this['_baseRootsAttributes']=new Map(_0x282115(_0x561b7e));for(const [_0x1757e4,_0x2f32c9]of this['_baseRoots'])if('$graveyard'!==_0x1757e4&&(this['_diffRoots']['set'](_0x1757e4,T(_0x2f32c9)),this['_diffRootsAttributes']=new Map(_0x282115(_0x561b7e)),_0x49cf8d)){const _0x10b068=this['_revisionId'];this['_idsRoots']['set'](_0x1757e4,this['_makeIdsRoot'](_0x2f32c9)),this['_baseIdsRoots']['set'](_0x1757e4,this['_makeIdsRoot'](_0x2f32c9,_0x10b068));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x49cf8d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3778de,_0x34d39f]of _0x32897c){const _0xa108cc=this['_baseRoots']['get'](_0x34d39f['rootName']),_0x394b5e=this['_diffRoots']['get'](_0x34d39f['rootName']),_0x56c9fe=new ft(this['_fixPosition'](_0x34d39f['start'],_0xa108cc),this['_fixPosition'](_0x34d39f['end'],_0xa108cc)),_0x4832a4=this['_fixRange'](_0x56c9fe,_0x394b5e);_0xa108cc['markers']['set'](_0x3778de,_0x56c9fe),this['_markers']['set'](_0x3778de,_0x4832a4);}this['_applyOperations'](_0x4cc02b,_0x2be236,_0x49cf8d);}['_applyOperations'](_0x57602c,_0x57d649,_0xd6add){for(const _0x422b91 of this['source']['getOperations'](_0x57602c,_0x57d649))this['_handleOperation'](_0x422b91,_0xd6add);for(const _0x5434b7 of this['_diffRoots']['values']())_0x5434b7['markers']['clear']();for(const [_0x1ed276,_0xc5ebd2]of this['_markers']){this['_diffRoots']['get'](_0xc5ebd2['root']['rootName'])['markers']['set'](_0x1ed276,_0xc5ebd2['clone']());}const _0x1caf91=new Map(),_0x23c7b0=new Map();for(const [_0x16350f,_0x560f4d]of this['_diffRoots'])_0x1caf91['set'](_0x16350f,T(_0x560f4d)),_0x23c7b0['set'](_0x16350f,this['_diffRootsAttributes']['get'](_0x16350f));this['_saveMetaData'](_0x57d649,_0x1caf91,this['_markers'],_0x23c7b0);}['_getPreviousFrom'](_0x31404e){const _0xf2f8b9=Array['from'](this['_savedMetaData']['keys']());_0xf2f8b9['sort']((_0x5e8d9b,_0x2e55a3)=>_0x5e8d9b-_0x2e55a3),_0xf2f8b9['reverse']();for(const _0x472deb of _0xf2f8b9)if(_0x472deb<_0x31404e)return _0x472deb;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x59968d,_0x6285a4){const _0x549fbf=Array['from'](_0x6285a4['markers'])['map'](([_0xc2e6c1,_0x32d513])=>[_0xc2e6c1,this['_fixRange'](_0x32d513,_0x59968d)]);_0x59968d['markers']=new Map(_0x549fbf);}['_transformMarkers'](_0x50d969){for(const _0x33d5dc of this['_markers']['values']()){const _0x3dada8=_0x33d5dc['getTransformedByOperation'](_0x50d969),_0x5c9071=ft['_createFromRanges'](_0x3dada8);_0x33d5dc['start']=_0x5c9071['start'],_0x33d5dc['end']=_0x5c9071['end'];}}['_handleOperation'](_0x4931dc,_0x3f3250){if('addRoot'!=_0x4931dc['type']&&'detachRoot'!=_0x4931dc['type']){if('insert'==_0x4931dc['type']){const _0x487eca=_0x4931dc['position']['root']['rootName'];this['_diffRoots']['has'](_0x487eca)||(this['_diffRoots']['set'](_0x487eca,F(_0x487eca,!0x0)),this['_diffRootsAttributes']['set'](_0x487eca,{}),_0x3f3250&&this['_idsRoots']['set'](_0x487eca,F(_0x487eca,!0x0)));}else{if('addRootAttribute'==_0x4931dc['type']||'removeRootAttribute'==_0x4931dc['type']||'changeRootAttribute'==_0x4931dc['type'])return void this['_handleRootAttributeOperation'](_0x4931dc);'marker'==_0x4931dc['type']&&this['_handleMarkerOperation'](_0x4931dc);}if('marker'!==_0x4931dc['type']){const _0x5492ce=this['_cloneOperation'](_0x4931dc,this['_diffRoots']);_0x5492ce['_execute'](),this['_transformMarkers'](_0x5492ce);}if(_0x3f3250)switch(_0x4931dc['type']){case'insert':this['_handleInsertOperation'](_0x4931dc);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4931dc);break;case'merge':this['_handleMergeOperation'](_0x4931dc);break;case'split':this['_handleSplitOperation'](_0x4931dc);}}else this['_handleRootOperation'](_0x4931dc,_0x3f3250);}['_cloneOperation'](_0x253ebe,_0x58cb35){const _0x41ad05=_0x253ebe['clone']();return _0x41ad05['_authorId']=_0x253ebe['_authorId'],this['_fixOperation'](_0x41ad05,_0x58cb35),_0x41ad05;}['_getBaseVids'](_0x10bf68){return _0x10bf68['map'](_0xf687d4=>{const _0x284a6e=this['_getVidAttributeName'](_0xf687d4);return Number(_0xf687d4['item']['getAttribute'](_0x284a6e));});}['_generateTape'](_0x863e2d,_0x5c6283){if(_0x863e2d['is']('element','$text'))_0x5c6283['push']({'item':_0x863e2d,'type':'text'});else{_0x863e2d['is']('element')&&_0x5c6283['push']({'item':_0x863e2d,'type':'elementStart'});for(const _0x4cbe29 of _0x863e2d['getChildren']())this['_generateTape'](_0x4cbe29,_0x5c6283);_0x863e2d['is']('element')&&_0x5c6283['push']({'item':_0x863e2d,'type':'elementEnd'});}return _0x5c6283;}['_getState'](){const _0xf3a3ba=new Map(this['_touched']),_0x3fcf57=new Map(_0xf3a3ba),_0x515661=new Map(),_0x47605c={'insertions':{},'deletions':{}},_0x9d7dc0={'insertions':{},'deletions':{}},_0x2d2992=new Map(),_0x2b4860=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2b4860['delete']('$graveyard');for(const _0x1dec19 of _0x2b4860){const _0x2c0a20=this['_diffRoots']['get'](_0x1dec19)||F(_0x1dec19,!0x1),_0x13dbec=this['_baseRoots']['get'](_0x1dec19)||F(_0x1dec19,!0x1);_0x2c0a20['isAttached']()||_0x13dbec['isAttached']()?(_0x47605c['insertions'][_0x1dec19]=T(_0x2c0a20),_0x47605c['deletions'][_0x1dec19]=T(_0x13dbec),this['_copyMarkers'](_0x47605c['deletions'][_0x1dec19],_0x13dbec),this['_copyMarkers'](_0x47605c['insertions'][_0x1dec19],_0x2c0a20),_0x9d7dc0['insertions'][_0x1dec19]=this['_generateTape'](this['_idsRoots']['get'](_0x1dec19),[]),_0x9d7dc0['deletions'][_0x1dec19]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1dec19)||F(_0x1dec19,!0x1),[])):_0x2b4860['delete'](_0x1dec19);}for(const _0x199256 of _0x2b4860){const _0x4c75d2=_0x9d7dc0['insertions'][_0x199256];for(const _0x23d73e of _0x4c75d2){const _0x272db4=this['_getVidAttributeName'](_0x23d73e),_0x5ea6cc=_0x23d73e['item']['getAttribute'](_0x272db4);_0x3fcf57['delete'](_0x5ea6cc),_0x5ea6cc>=this['_startingRevisionId']&&_0x515661['set'](_0x5ea6cc,_0xf3a3ba['get'](_0x5ea6cc));}}for(const _0x58ffd2 of _0x2b4860){const _0x4df539=_0x9d7dc0['insertions'][_0x58ffd2],_0x4adf13=this['_getBaseVids'](_0x9d7dc0['deletions'][_0x58ffd2]);let _0x40b608=0x0;for(const _0x52dab5 of _0x4df539){const _0x1c2cd9=this['_getVidAttributeName'](_0x52dab5),_0x1464fe=_0x52dab5['item']['getAttribute'](_0x1c2cd9);if(!_0x515661['has'](_0x1464fe)&&!_0x2d2992['has'](_0x1464fe)){if(_0x3fcf57['has'](_0x1464fe))_0x40b608++;else{if(_0x1464fe!=_0x4adf13[_0x40b608]){const _0x392269=_0xf3a3ba['get'](_0x1464fe)||_0xf3a3ba['get'](_0x4adf13[_0x40b608]);for(;_0x1464fe!=_0x4adf13[_0x40b608];)_0x3fcf57['has'](_0x4adf13[_0x40b608])||(_0x2d2992['set'](_0x4adf13[_0x40b608],_0x392269),_0xf3a3ba['set'](_0x4adf13[_0x40b608],_0x392269)),_0x40b608++;}_0x40b608++;}}}}for(const _0x43a070 of _0x2b4860){const _0x1fca01=_0x9d7dc0['insertions'][_0x43a070];for(const _0x4e47f5 of _0x1fca01){const _0x1b9cda=this['_getVidAttributeName'](_0x4e47f5),_0x414679=_0x4e47f5['item']['getAttribute'](_0x1b9cda);if(_0x2d2992['has'](_0x414679)){const _0x4c94f7=_0x2d2992['get'](_0x414679);_0x3fcf57['has'](_0x414679)||_0x3fcf57['set'](_0x414679,{..._0x4c94f7}),_0x515661['set'](_0x414679,{..._0x4c94f7});}}}for(const _0x4c0de1 of _0x3fcf57['keys']())_0x4c0de1>=this['_startingRevisionId']&&_0x3fcf57['delete'](_0x4c0de1);const _0x1fed94=new Map();for(const _0x59a51c of _0x2b4860){let _0x14f403=_0x9d7dc0['insertions'][_0x59a51c];for(const _0x25ebea of _0x14f403)if(_0x25ebea['item']['is']('element','tableCell')){const _0x42e3=this['_getVidAttributeName'](_0x25ebea),_0x4bc230=_0x25ebea['item']['getAttribute'](_0x42e3);if(_0x515661['has'](_0x4bc230)){const _0x5b6c1b=_0x25ebea['item']['parent']['parent']['getAttribute']('vid_start'),_0x51b74d=_0x1fed94['get'](_0x5b6c1b)||new Set();_0x51b74d['add'](_0x515661['get'](_0x4bc230)['userId']),_0x1fed94['set'](_0x5b6c1b,_0x51b74d);}}_0x14f403=_0x9d7dc0['deletions'][_0x59a51c];for(const _0x3a0993 of _0x14f403)if(_0x3a0993['item']['is']('element','tableCell')){const _0x56e281=this['_getVidAttributeName'](_0x3a0993),_0x3589e9=_0x3a0993['item']['getAttribute'](_0x56e281);if(_0x3fcf57['has'](_0x3589e9)){const _0x1c148f=_0x3a0993['item']['parent']['parent']['getAttribute']('vid_start'),_0x31438c=_0x1fed94['get'](_0x1c148f)||new Set();_0x31438c['add'](_0x3fcf57['get'](_0x3589e9)['userId']),_0x1fed94['set'](_0x1c148f,_0x31438c);}}for(const _0x378d89 of _0x1fed94['keys']())(_0x515661['has'](_0x378d89)||_0x3fcf57['has'](_0x378d89))&&_0x1fed94['delete'](_0x378d89);}for(const _0x3f8d8d of _0x2b4860){const _0x54e7cd=_0x9d7dc0['insertions'][_0x3f8d8d];let _0x57bb84=null,_0x1018a1=null;for(const _0x34f1d5 of _0x54e7cd){const _0x3b5977=this['_getVidAttributeName'](_0x34f1d5),_0x34a240=_0x34f1d5['item']['getAttribute'](_0x3b5977),_0x5e526c=_0x1fed94['get'](_0x34a240);_0x5e526c&&'elementStart'==_0x34f1d5['type']&&(_0x57bb84=Array['from'](_0x5e526c)[0x0],_0x1018a1=_0x34f1d5['item']['getAttribute']('vid_end')),_0x57bb84&&(_0x3fcf57['set'](_0x34a240,{'userId':_0x57bb84}),_0x515661['set'](_0x34a240,{'userId':_0x57bb84})),_0x34a240==_0x1018a1&&(_0x57bb84=null,_0x1018a1=null);}}const _0x39f220={},_0x59c862=new Set();for(const _0x3e1761 of _0x2b4860){const _0x545555=_0x47605c['deletions'][_0x3e1761],_0x1fa5c6=_0x47605c['insertions'][_0x3e1761];for(const {userId:_0x11c26b}of this['_touchedMarkers']['values']())null!==_0x11c26b&&_0x59c862['add'](_0x11c26b);for(const {userId:_0x46fa73}of this['_touchedRoots']['values']())null!==_0x46fa73&&_0x59c862['add'](_0x46fa73);this['_markChanges'](_0x1fa5c6,_0x9d7dc0['insertions'][_0x3e1761],_0x515661,'insertion',_0x59c862),this['_markChanges'](_0x545555,_0x9d7dc0['deletions'][_0x3e1761],_0x3fcf57,'deletion',_0x59c862),_0x39f220[_0x3e1761]={'insertions':this['_prepareViewToSave'](_0x1fa5c6),'deletions':this['_prepareViewToSave'](_0x545555),'attachChange':this['_touchedRoots']['get'](_0x3e1761)||null,'attributesBefore':_0x282115(this['_baseRootsAttributes']['get'](_0x3e1761))||{},'attributesAfter':_0x282115(this['_diffRootsAttributes']['get'](_0x3e1761))};}return{'diffData':_0x39f220,'authorsIds':Array['from'](_0x59c862)};}['_processRootBeforeSave'](_0x41907f){for(const [,_0x46634b]of _0x41907f['markers']){const _0x1688c3=_0x46634b['start']['getAncestors']()['filter'](_0x13726e=>'tableCell'==_0x13726e['name']);for(const _0x36a117 of _0x1688c3)0x1==_0x36a117['childCount']&&_0x36a117['getChild'](0x0)['is']('element','paragraph')&&_0x36a117['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1eb755){this['_processRootBeforeSave'](_0x1eb755);const _0xc1e3ce=this['editor']['data']['toView'](_0x1eb755,{}),_0x27a699=Array['from'](_0xc1e3ce['getChildren']())['map'](_0x1328e2=>this['_getViewJson'](_0x1328e2));return JSON['stringify'](_0x27a699);}['_getViewJson'](_0x389786){if(_0x389786['is']('$text'))return _0x389786['data'];{const _0x216341=_0x389786;return{'type':Object['keys'](E)['find'](_0x337259=>_0x389786 instanceof E[_0x337259]),'name':_0x216341['name'],'attributes':Array['from'](_0x216341['getAttributes']()),'children':Array['from'](_0x216341['getChildren']())['map'](_0x5b1493=>this['_getViewJson'](_0x5b1493))};}}['_markChanges'](_0x191144,_0x1f765e,_0x5ef4fa,_0x5f223b,_0x8d72ba){let _0x422d05=null,_0x2a046d=null,_0x28feda=0x0;const _0x437312=this['editor']['model'];for(let _0xefcaab=0x0;_0xefcaab<_0x1f765e['length'];_0xefcaab++){const _0x1721b2=this['_getVidAttributeName'](_0x1f765e[_0xefcaab]),_0x2f7251=_0x1f765e[_0xefcaab]['item']['getAttribute'](_0x1721b2),_0x12acf6=_0x5ef4fa['get'](_0x2f7251),_0x500628=_0xefcaab==_0x1f765e['length']-0x1;(!_0x422d05&&_0x12acf6&&(_0x422d05=_0x12acf6,_0x2a046d=_0x1f765e[_0xefcaab]),_0x422d05&&(!_0x12acf6||_0x12acf6['userId']!=_0x422d05['userId']))&&(_0x2e92b0(_0x12acf6,B(_0x2a046d,_0x191144,_0x437312),B(_0x1f765e[_0xefcaab],_0x191144,_0x437312)),_0x422d05=_0x12acf6||null,_0x2a046d=_0x12acf6?_0x1f765e[_0xefcaab]:null),_0x422d05&&_0x500628&&_0x2e92b0(_0x12acf6,B(_0x2a046d,_0x191144,_0x437312),J(_0x1f765e[_0xefcaab],_0x191144,_0x437312));}function _0x2e92b0(_0x1c18f9,_0x1d3ed0,_0x34b0a6){const _0xc56ec3=_0x422d05['userId'],_0x3fbc94='revision:'+_0x5f223b+':'+_0xc56ec3+':'+_0x28feda++,_0x1a33b6=_0x437312['createRange'](_0x1d3ed0,_0x34b0a6);_0x191144['markers']['set'](_0x3fbc94,_0x1a33b6),null!==_0xc56ec3&&_0x8d72ba['add'](_0xc56ec3);}}['_getVidAttributeName'](_0x592147){switch(_0x592147['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x37b438,_0x3d625b){_0x37b438['baseVersion']=null;for(const _0x2f3d84 in _0x37b438){const _0x293b2a=_0x37b438[_0x2f3d84];if(_0x293b2a instanceof vt){const _0x1b891e=_0x3d625b['get'](_0x293b2a['root']['rootName']);_0x37b438[_0x2f3d84]=this['_fixPosition'](_0x293b2a,_0x1b891e);}if(_0x293b2a instanceof ft){const _0xbb09c2=_0x3d625b['get'](_0x293b2a['root']['rootName']);_0x37b438[_0x2f3d84]=this['_fixRange'](_0x293b2a,_0xbb09c2);}'root'===_0x2f3d84&&(_0x37b438['root']=_0x3d625b['get'](_0x37b438['root']['rootName']));}}['_fixRange'](_0x59def2,_0xf10c12){return this['editor']['model']['createRange'](this['_fixPosition'](_0x59def2['start'],_0xf10c12),this['_fixPosition'](_0x59def2['end'],_0xf10c12));}['_fixPosition'](_0x5c3c3a,_0x432b41){return this['editor']['model']['createPositionFromPath'](_0x432b41,_0x5c3c3a['path'],_0x5c3c3a['stickiness']);}['_handleInsertOperation'](_0x4c8612){const _0x567224=this['_idsRoots']['get'](_0x4c8612['position']['root']['rootName']),_0x59627b=this['_fixPosition'](_0x4c8612['position'],_0x567224),_0xa7beae=null===_0x4c8612['_authorId']?null:_0x4c8612['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b8d90=_0x59627b['parent'],_0x909a8b=this['_revisionId'],_0x55b797=[];for(const _0x29f577 of _0x4c8612['nodes'])if(_0x29f577['is']('element'))_0x55b797['push'](this['_makeIdsRoot'](_0x29f577));else{for(let _0xa6566c=0x0;_0xa6566c<_0x29f577['offsetSize'];_0xa6566c++)_0x55b797['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x347543=this['_revisionId'];for(let _0x11491f=_0x909a8b;_0x11491f<_0x347543;_0x11491f++)this['_touched']['set'](_0x11491f,{'userId':_0xa7beae});_0x3b8d90['_insertChild'](_0x59627b['offset'],_0x55b797);}['_handleMoveOperation'](_0x46a1b1){(_0x46a1b1=this['_cloneOperation'](_0x46a1b1,this['_idsRoots']))['_execute']();const _0x2c7287=null===_0x46a1b1['_authorId']?null:_0x46a1b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f5361=_0x46a1b1['getMovedRangeStart'](),_0x112515=_0x2f5361['parent'],_0x349645=_0x2f5361['offset'];!function _0x4cd25f(_0x5c549b,_0x4add41,_0x5683f9,_0x3cd149){for(let _0x4411a7=_0x5683f9;_0x4411a7<_0x3cd149;_0x4411a7++){const _0x56db08=_0x4add41['getChild'](_0x4411a7);_0x56db08['is']('element','$text')?_0x5c549b['set'](_0x56db08['getAttribute']('vid'),{'userId':_0x2c7287}):(_0x5c549b['set'](_0x56db08['getAttribute']('vid_start'),{'userId':_0x2c7287}),_0x4cd25f(_0x5c549b,_0x56db08,0x0,_0x56db08['childCount']),_0x5c549b['set'](_0x56db08['getAttribute']('vid_end'),{'userId':_0x2c7287}));}}(this['_touched'],_0x112515,_0x349645,_0x349645+_0x46a1b1['howMany']);}['_handleMergeOperation'](_0x257ad4){const _0x19ee5a=null===(_0x257ad4=this['_cloneOperation'](_0x257ad4,this['_idsRoots']))['_authorId']?null:_0x257ad4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x381b68=_0x257ad4['targetPosition']['parent'],_0x305c1a=_0x257ad4['sourcePosition']['parent'],_0x3db971=_0x381b68['getAttribute']('vid_end'),_0x10cf38=_0x305c1a['getAttribute']('vid_start');_0x381b68['_setAttribute']('vid_end',_0x305c1a['getAttribute']('vid_end')),_0x305c1a['_setAttribute']('vid_end',_0x3db971),this['_touched']['set'](_0x10cf38,{'userId':_0x19ee5a}),this['_touched']['set'](_0x3db971,{'userId':_0x19ee5a}),_0x257ad4['_execute']();}['_handleSplitOperation'](_0x1e8e8a){const _0x39bdd6=null===(_0x1e8e8a=this['_cloneOperation'](_0x1e8e8a,this['_idsRoots']))['_authorId']?null:_0x1e8e8a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x297c38=_0x1e8e8a['graveyardPosition'],_0x4f91cc=_0x1e8e8a['splitPosition']['parent'];_0x1e8e8a['_execute']();const _0x363f38=_0x4f91cc['getAttribute']('vid_end'),_0x3db31d=_0x1e8e8a['insertionPosition']['nodeAfter'];if(_0x297c38){const _0x5e366a=_0x3db31d['getAttribute']('vid_end'),_0x1a9bf8=_0x4f91cc['getAttribute']('vid_end');_0x4f91cc['_setAttribute']('vid_end',_0x5e366a),_0x3db31d['_setAttribute']('vid_end',_0x1a9bf8),this['_touched']['set'](_0x4f91cc['getAttribute']('vid_end'),{'userId':_0x39bdd6}),this['_touched']['set'](_0x3db31d['getAttribute']('vid_start'),{'userId':_0x39bdd6});}else{const _0x1485c1=this['_revisionId']++,_0x31942b=this['_revisionId']++;_0x4f91cc['_setAttribute']('vid_end',_0x1485c1),_0x3db31d['_setAttribute']('vid_start',_0x31942b),_0x3db31d['_setAttribute']('vid_end',_0x363f38),this['_touched']['set'](_0x1485c1,{'userId':_0x39bdd6}),this['_touched']['set'](_0x31942b,{'userId':_0x39bdd6});}}['_handleMarkerOperation'](_0x45db0b){if(!_0x45db0b['affectsData'])return;const _0x6fb83=(_0x45db0b=this['_cloneOperation'](_0x45db0b,this['_diffRoots']))['oldRange']?_0x45db0b['oldRange']['root']:null,_0x2c7f99=_0x45db0b['newRange']?_0x45db0b['newRange']['root']:null;_0x6fb83&&this['_markers']['delete'](_0x45db0b['name']),_0x2c7f99&&this['_markers']['set'](_0x45db0b['name'],_0x45db0b['newRange']['clone']());const _0x31c81f=null===_0x45db0b['_authorId']?null:_0x45db0b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2955bd=_0x45db0b['name'];if(!this['_touchedMarkers']['has'](_0x2955bd))return void this['_touchedMarkers']['set'](_0x2955bd,{'range':_0x45db0b['oldRange'],'userId':_0x31c81f});const _0x32c753=this['_touchedMarkers']['get'](_0x2955bd),_0x5e2601=_0x32c753['range'],_0x3a326=_0x45db0b['newRange'];null==_0x5e2601&&null==_0x3a326||_0x5e2601&&_0x3a326&&_0x5e2601['isEqual'](_0x3a326)?this['_touchedMarkers']['delete'](_0x45db0b['name']):_0x32c753['userId']=_0x31c81f;}['_handleRootOperation'](_0x59aa2d,_0x59c691){this['_diffRoots']['has'](_0x59aa2d['rootName'])?this['_diffRoots']['get'](_0x59aa2d['rootName'])['_isAttached']=_0x59aa2d['isAdd']:(this['_diffRoots']['set'](_0x59aa2d['rootName'],F(_0x59aa2d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x59aa2d['rootName'],{}),_0x59c691&&this['_idsRoots']['set'](_0x59aa2d['rootName'],F(_0x59aa2d['rootName'],!0x0)));const _0x29b91f=null===_0x59aa2d['_authorId']?null:_0x59aa2d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x590929=this['_touchedRoots']['get'](_0x59aa2d['rootName']);_0x590929&&_0x590929['userId']===_0x29b91f?this['_touchedRoots']['delete'](_0x59aa2d['rootName']):this['_touchedRoots']['set'](_0x59aa2d['rootName'],{'userId':_0x29b91f,'isAttached':_0x59aa2d['isAdd']});}['_handleRootAttributeOperation'](_0x3b1b33){const _0x388a34=this['_diffRootsAttributes']['get'](_0x3b1b33['root']['rootName']);null===_0x3b1b33['newValue']?delete _0x388a34[_0x3b1b33['key']]:_0x388a34[_0x3b1b33['key']]=_0x3b1b33['newValue'];}}function T(_0x30487c){const _0xab7df8=F(_0x30487c['rootName'],_0x30487c['isAttached']());for(const _0x206853 of _0x30487c['getChildren']()){const _0x975022=_0x206853['_clone'](!0x0);_0xab7df8['_appendChild'](_0x975022);}return _0xab7df8;}function F(_0x2bda9c,_0x46465e=!0x0){const _0x3ed428=new gt();return _0x3ed428['rootName']=_0x2bda9c,_0x3ed428['_isAttached']=_0x46465e,_0x3ed428['isAttached']=()=>_0x3ed428['_isAttached'],_0x3ed428;}function B(_0xd4a090,_0x3475d2,_0x395aed){const _0x1f953c='elementEnd'==_0xd4a090['type']?_0x395aed['createPositionAt'](_0xd4a090['item'],'end'):_0x395aed['createPositionBefore'](_0xd4a090['item']);return _0x395aed['createPositionFromPath'](_0x3475d2,_0x1f953c['path'],_0x1f953c['stickiness']);}function J(_0x2374c4,_0x27c0cd,_0x4019b0){const _0x5bf68b='elementStart'==_0x2374c4['type']?_0x4019b0['createPositionAt'](_0x2374c4['item'],0x0):_0x4019b0['createPositionAfter'](_0x2374c4['item']);return _0x4019b0['createPositionFromPath'](_0x27c0cd,_0x5bf68b['path'],_0x5bf68b['stickiness']);}class os extends _0x49045a{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2b22b8,_0x1cc323){super(_0x2b22b8),this['focusTracker']=new _0x585ae3(),this['keystrokes']=new _0x44b8a9(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1cc323),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'](),_0x5413fd({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4dd28b=_0x28e0ee=>_0x28e0ee['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4dd28b),this['keystrokes']['set']('arrowleft',_0x4dd28b),this['keystrokes']['set']('arrowup',_0x4dd28b),this['keystrokes']['set']('arrowdown',_0x4dd28b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x500fba){this['revisionNameInputView']['fieldView']['element']['value']=_0x500fba['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3d9eb6){const _0xc78943=new at(this['locale'],ti),_0x174283=_0xc78943['fieldView'];_0x174283['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x323be0=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3d9eb6&&(_0x323be0+='\x20('+m(this['locale'],'optional')+')'),(_0xc78943['label']=_0x323be0,_0x174283['on']('input',()=>{this['revisionNameInputValue']=_0x174283['element']['value']['trim']();}),_0xc78943);}}class f extends _0xed64d3{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5dac6f=this['editor'],_0x16fdd6=_0x5dac6f['plugins']['get']('RevisionTracker');_0x5dac6f['ui']['componentFactory']['add']('revisionHistory',_0x11a4f0=>{const _0x2ad869=_0x3f5b17(_0x11a4f0),_0x1c781b=_0x2ad869['panelView']['children'],_0x5466aa=new _0x52ad3b(_0x11a4f0),_0x24343c=new te(_0x11a4f0),_0x5970ad=new _0x43db63(_0x11a4f0),_0x124092=new te(_0x11a4f0),_0x1bc545=new _0x43db63(_0x11a4f0);return _0x2ad869['bind']('isEnabled')['to'](_0x16fdd6,'isReady',_0x16fdd6,'isEnabled',_0x5dac6f,'isReadOnly',(_0x54d6c2,_0x1a6e9b,_0x35cca6)=>_0x54d6c2&&_0x1a6e9b&&!_0x35cca6),_0x2ad869['buttonView']['set']({'icon':_0x27a9d6,'label':m(_0x11a4f0,'Revision\x20history'),'tooltip':!0x0}),_0x5970ad['set']({'label':m(_0x11a4f0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5970ad['bind']('isEnabled')['to'](_0x16fdd6,'isReady',_0x16fdd6,'isEnabled',_0x5dac6f,'isReadOnly',(_0x2e86f5,_0x21875f,_0x2be4ab)=>_0x2e86f5&&_0x21875f&&!_0x2be4ab),_0x5970ad['on']('execute',()=>this['_showDialog']()),_0x1bc545['set']({'label':m(_0x11a4f0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1bc545['bind']('isEnabled')['to'](_0x16fdd6,'isReady',_0x5dac6f,'isReadOnly',(_0x42d4a9,_0x1a794c)=>_0x42d4a9&&!_0x1a794c),_0x1bc545['on']('execute',()=>{_0x5dac6f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2ad869['isOpen']=!0x1,_0x5dac6f['editing']['view']['focus']();}),_0x24343c['children']['add'](_0x5970ad),_0x124092['children']['add'](_0x1bc545),_0x5466aa['role']='menu',_0x5466aa['items']['addMany']([_0x24343c,_0x124092]),_0x1c781b['add'](_0x5466aa),_0x2ad869;}),_0x5dac6f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1e729c=this['editor'],_0x43f4a3=_0x1e729c['locale'],_0x2c55e5=new _0xc91616(_0x43f4a3),_0x1f424d=new _0x21b77a(_0x43f4a3);_0x2c55e5['buttonView']['set']({'icon':_0x27a9d6,'label':m(_0x43f4a3,'Revision\x20history')});const _0x3c5a16=new _0x121605(_0x43f4a3,_0x2c55e5),_0x5b3aaa=new _0x41f61a(_0x43f4a3);_0x5b3aaa['set']({'label':m(_0x43f4a3,'Save\x20current\x20revision')}),_0x5b3aaa['delegate']('execute')['to'](_0x2c55e5),_0x5b3aaa['on']('execute',()=>{this['_showDialog']();}),_0x3c5a16['children']['add'](_0x5b3aaa),_0x1f424d['items']['add'](_0x3c5a16);const _0x1d2db7=new _0x121605(_0x43f4a3,_0x2c55e5),_0xa1565f=new _0x41f61a(_0x43f4a3);return _0xa1565f['set']({'label':m(_0x43f4a3,'Open\x20revision\x20history')}),_0xa1565f['delegate']('execute')['to'](_0x2c55e5),_0xa1565f['on']('execute',()=>{_0x1e729c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1d2db7['children']['add'](_0xa1565f),_0x1f424d['items']['add'](_0x1d2db7),_0x2c55e5['panelView']['children']['add'](_0x1f424d),_0x2c55e5;}['_showDialog'](){const _0x1b530b=this['editor'],_0x11c8bc=_0x1b530b['locale'],_0x12762e=_0x1b530b['plugins']['get']('Dialog'),_0x3b756=_0x1b530b['plugins']['get']('RevisionTracker');function _0x564e36(_0x4665b8){_0x1b530b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4665b8['revisionName']?_0x4665b8['revisionNameInputView']['errorText']=m(_0x11c8bc,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1b530b['plugins']['get'](u)['saveRevision']({'name':_0x4665b8['revisionName']}),_0x12762e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x564e36(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x12762e['show']({'id':'revisionSave','title':m(_0x11c8bc,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1b530b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x12762e['hide']()},{'label':m(_0x1b530b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x92ec77){_0x92ec77['bind']('isEnabled')['to'](_0x3b756,'isReady',_0x3b756,'isEnabled',_0x1b530b,'isReadOnly',(_0x2541a7,_0x2b8039,_0x24cae6)=>_0x2541a7&&_0x2b8039&&!_0x24cae6);},'onExecute':()=>_0x564e36(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x336b01=this['editor'],_0xd0ffe1=_0x336b01['locale'];this['_saveRevisionFormView']=new os(_0xd0ffe1,_0x336b01['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x49045a{['changeId'];['_model'];constructor(_0x5ef92e,_0x5e4442){super(_0x5ef92e),this['_model']=_0x5e4442,this['changeId']=_0x5e4442['id'];const _0x100823=this['bindTemplate'],_0x2d9767=m(_0x5ef92e,_0x5e4442['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5e4442['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5e4442['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x100823['to']('type',_0x23228f=>'ck-revision-change__'+_0x23228f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2d9767}]},{'text':'\x20'+_0x5e4442['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x252101(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1811b9){super(),this['id']=_0x1811b9['id']||_0xeab9bf(),this['author']=_0x1811b9['author'],this['type']=_0x1811b9['type'],this['data']=_0x1811b9['data']||{},this['rootName']=_0x1811b9['rootName'],this['set']('createdAt',_0x1811b9['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(_0x36c32b,_0xaafee8){this['newRevisionId']=_0x36c32b,this['oldRevisionId']=_0xaafee8,this['changes']=new _0x1f0832();}['_setChanges'](_0x1becea){for(const _0x3dcefb of _0x1becea)this['changes']['add'](_0x3dcefb);}}const Y={'c':_0x4112f4,'a':_0x16f432,'e':_0x2e68ba,'r':_0x4554df,'u':_0x2172b3};class d extends _0xed64d3{['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[_0x468992,_0x59a95c,j];}constructor(_0x3b2e6d){super(_0x3b2e6d),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',(_0x5cccb8,_0x23aab2,_0x49ad8b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4d1832=>{for(const _0x5735db of this['editor']['editing']['view']['document']['roots'])_0x49ad8b?_0x4d1832['removeClass']('ck-editor__editable__overlay',_0x5735db):_0x4d1832['addClass']('ck-editor__editable__overlay',_0x5735db);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4875c6=>null!==_0x4875c6),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1696c2,_0x25bc03,_0x5b4013)=>_0x1696c2&&_0x5b4013?_0x25bc03['changes']['getIndex'](_0x5b4013):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3058ca,_0x5c74a6)=>_0x3058ca?_0x5c74a6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x59a95c);}['init'](){const _0x17fe8d=this['editor'],_0x4345ba=new yt(_0x17fe8d,{'direction':'backward'}),_0x1285e3=new yt(_0x17fe8d,{'direction':'forward'});(_0x17fe8d['commands']['add']('showPreviousChange',_0x4345ba),_0x17fe8d['commands']['add']('showNextChange',_0x1285e3),_0x17fe8d['commands']['add']('restoreRevision',new _t(_0x17fe8d)),this['on']('change:numberOfChanges',()=>{_0x4345ba['refresh'](),_0x1285e3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x17fe8d['enableReadOnlyMode']('revision-viewer'),_0x17fe8d['plugins']['has']('WidgetToolbarRepository'))&&_0x17fe8d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5e9c70){await this['loadRevisionData'](_0x5e9c70);const _0x4b619d={};for(const _0x44cfd0 in _0x5e9c70['diffData']){if(_0x5e9c70['diffData'][_0x44cfd0]['attachChange']&&!_0x5e9c70['diffData'][_0x44cfd0]['attachChange']['isAttached'])continue;const _0x7aec0a=this['_removeRevisionMarkers'](JSON['parse'](_0x5e9c70['diffData'][_0x44cfd0]['insertions'])),_0x16def2=this['editor']['editing']['view']['document'],_0x4f27b6=new _0x1dd2da(_0x16def2,_0x7aec0a['map'](_0xc067d2=>this['_getViewObj'](_0xc067d2)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4b619d[_0x44cfd0]=this['editor']['data']['processor']['toData'](_0x4f27b6),this['editor']['data']['processor']['useFillerType']('default');}return _0x4b619d;}async['getRevisionRootsAttributes'](_0x5eefc5){await this['loadRevisionData'](_0x5eefc5);const _0x17e1c1={};for(const _0x813d8c in _0x5eefc5['diffData'])_0x5eefc5['diffData'][_0x813d8c]['attachChange']&&!_0x5eefc5['diffData'][_0x813d8c]['attachChange']['isAttached']||(_0x17e1c1[_0x813d8c]=_0x5eefc5['diffData'][_0x813d8c]['attributesAfter']||{});return _0x17e1c1;}['_removeRevisionMarkers'](_0x36ecf6){return(_0x36ecf6=_0x36ecf6['filter'](_0x5bb638=>!_0x5bb638['name']||'revision-start'!==_0x5bb638['name']&&'revision-end'!==_0x5bb638['name']))['forEach'](_0x51d7df=>{'string'!=typeof _0x51d7df&&(_0x51d7df['children']=this['_removeRevisionMarkers'](_0x51d7df['children']),_0x51d7df['attributes']=_0x51d7df['attributes']['filter'](_0x1dc28a=>!_0x1dc28a[0x0]['startsWith']('data-revision-')));}),_0x36ecf6;}async['compare'](_0x169e3f,_0x4cb32e,_0x45e586=!0x1){if(!this['isEnabled'])return;const _0x3ebfe9=this['diff'],_0x49e56d=this['repository'],_0x47ca60='string'==typeof _0x169e3f?_0x49e56d['getRevision'](_0x169e3f):_0x169e3f,_0x3dab83='string'==typeof _0x4cb32e?_0x49e56d['getRevision'](_0x4cb32e):_0x4cb32e,_0x322dd3=_0x47ca60['id'],_0x4ffa7b=_0x3dab83?_0x3dab83['id']:null;if(!_0x45e586&&this['diff']&&this['diff']['newRevisionId']===_0x322dd3&&this['diff']['oldRevisionId']===_0x4ffa7b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x322dd3,_0x4ffa7b);const _0x3da602=this['_getRevisionsRange'](_0x47ca60,_0x3dab83,!0x0)['map'](_0x221a38=>this['loadRevisionData'](_0x221a38));return _0x3da602['push'](new Promise(_0x49d2cb=>{setTimeout(_0x49d2cb,0x14);})),Promise['all'](_0x3da602)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x293dd5=this['_getDiff'](_0x322dd3,_0x4ffa7b);for(const _0x386ca9 of _0x293dd5['changes'])this['_changeIdToChange']['set'](_0x386ca9['id'],_0x386ca9);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x46ec9e=>{for(const _0xbb6b96 of this['editor']['model']['document']['getRootNames']())_0x46ec9e['detachRoot'](_0xbb6b96);for(const _0x361e89 of Object['keys'](_0x293dd5['model'])){const _0x49bb84=_0x46ec9e['addRoot'](_0x361e89);for(const _0x3f1431 of Object['keys'](_0x293dd5['attributes'][_0x361e89]))_0x46ec9e['setAttribute'](_0x3f1431,_0x293dd5['attributes'][_0x361e89][_0x3f1431],_0x49bb84);_0x46ec9e['insert'](_0x293dd5['model'][_0x361e89],_0x49bb84,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x293dd5['changes'])),this['isReady']=!0x0;})['catch'](_0x72139c=>{console['error'](_0x72139c),this['_cleanUp'](),_0x3ebfe9&&(this['diff']=_0x3ebfe9),this['isReady']=!0x0;});}['addRevisionData'](_0x4ab0b1,_0x5274c0){const _0x44d67a=this['repository']['createRevision'](_0x4ab0b1);return _0x44d67a['on']('_update',(_0x10da76,_0x36ba1c,_0x291409)=>_0x5274c0(_0x36ba1c,_0x291409,_0x44d67a)),this['repository']['addRevision'](_0x44d67a),_0x44d67a;}['loadRevisionData'](_0x1cfada){if(!_0x1cfada||_0x1cfada['diffData'])return Promise['resolve']();{const _0x3a7d7a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3a7d7a,'revisionId':_0x1cfada['id']})['then'](_0x331820=>{_0x1cfada['_update']({'diffData':_0x331820['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},_0x186bac=>{for(const _0x32125d of this['editor']['model']['document']['getRootNames']())_0x186bac['detachRoot'](_0x32125d);});}['_sortAndFilterDiffChanges'](_0x4e0b8b){const _0x334269=[],_0x30a492=new Map();for(const _0x27beb4 of this['editor']['model']['document']['getRootNames']()){const _0x240ace=this['editor']['editing']['view']['getDomRoot'](_0x27beb4);if(!_0x240ace)continue;const _0x20510b=_0x240ace['getClientRects']()['item'](0x0);_0x20510b&&(_0x334269['push'](_0x27beb4),_0x30a492['set'](_0x27beb4,_0x20510b));}return _0x334269['sort']((_0x5b5fb5,_0x4568b1)=>{const _0x1c784f=_0x30a492['get'](_0x5b5fb5),_0x13f5df=_0x30a492['get'](_0x4568b1);return _0x1c784f['y']-_0x13f5df['y']||_0x1c784f['x']-_0x13f5df['x'];}),(_0x4e0b8b=_0x4e0b8b['filter'](_0x54a212=>_0x334269['includes'](_0x54a212['rootName'])))['sort']((_0x2c2ed3,_0x3896f9)=>_0x334269['indexOf'](_0x2c2ed3['rootName'])-_0x334269['indexOf'](_0x3896f9['rootName'])),_0x4e0b8b;}['_makeTape'](_0x2fc1f4){const _0x565b1f=Array['from'](_0x2fc1f4['markers'])['filter'](([_0x5eab12,_0x3bbe60])=>_0x5eab12['startsWith']('revision:')&&!_0x3bbe60['isCollapsed']),_0x5d7e4c=Array['from'](this['editor']['model']['createRangeIn'](_0x2fc1f4)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x565b1f['length'])for(const _0x54f197 of _0x5d7e4c){const [_0x8b96d6,_0x3e64f3]=_0x565b1f[0x0],[,_0x2e93e5,_0x3a3d5d]=_0x8b96d6['split'](':');if(_0x3e64f3['end']['isEqual'](_0x54f197['nextPosition'])&&_0x565b1f['shift'](),(_0x54f197['previousPosition']['isEqual'](_0x3e64f3['start'])||_0x54f197['previousPosition']['isAfter'](_0x3e64f3['start']))&&('insertion'==_0x2e93e5?_0x54f197['isAdded']={'userId':_0x3a3d5d}:'deletion'==_0x2e93e5&&(_0x54f197['isRemoved']={'userId':_0x3a3d5d})),0x0==_0x565b1f['length'])break;}return _0x5d7e4c;}['_refreshStartEndIndex'](_0x31e6e4){const _0x3eb897=new Map();for(let _0x4424e2=0x0;_0x4424e2<_0x31e6e4['length'];_0x4424e2++)'text'===_0x31e6e4[_0x4424e2]['type']?(_0x31e6e4[_0x4424e2]['item']['startIndex']=_0x4424e2,_0x31e6e4[_0x4424e2]['item']['endIndex']=_0x4424e2):('elementStart'===_0x31e6e4[_0x4424e2]['type']?_0x31e6e4[_0x4424e2]['item']['startIndex']=_0x4424e2:'elementEnd'===_0x31e6e4[_0x4424e2]['type']&&(_0x31e6e4[_0x4424e2]['item']['endIndex']=_0x4424e2),_0x3eb897['set'](_0x31e6e4[_0x4424e2]['id'],_0x4424e2));for(const _0x4386cc of _0x3eb897['values']())'elementStart'===_0x31e6e4[_0x4386cc]['type']?_0x31e6e4[_0x4386cc]['item']['endIndex']=_0x3eb897['get'](_0x31e6e4[_0x4386cc]['pairId']):'elementEnd'===_0x31e6e4[_0x4386cc]['type']&&(_0x31e6e4[_0x4386cc]['item']['startIndex']=_0x3eb897['get'](_0x31e6e4[_0x4386cc]['pairId']));}['_processTape'](_0x36505e){for(let _0x131c4d=0x0;_0x131c4d<_0x36505e['length'];_0x131c4d++){if('elementStart'===_0x36505e[_0x131c4d]['type'])_0x36505e[_0x131c4d]['item']['startIndex']=_0x131c4d;else{if('elementEnd'===_0x36505e[_0x131c4d]['type']){_0x36505e[_0x131c4d]['item']['endIndex']=_0x131c4d;const _0x3e6bd0=_0x36505e[_0x131c4d]['item']['startIndex'];_0x36505e[_0x3e6bd0]['pairId']=_0x36505e[_0x131c4d]['id'],_0x36505e[_0x131c4d]['pairId']=_0x36505e[_0x3e6bd0]['id'];}else _0x36505e[_0x131c4d]['item']['startIndex']=_0x131c4d,_0x36505e[_0x131c4d]['item']['endIndex']=_0x131c4d,_0x36505e[_0x131c4d]['pairId']=null;}_0x36505e[_0x131c4d]['markersStart']||(_0x36505e[_0x131c4d]['markersStart']=[],_0x36505e[_0x131c4d]['markersEnd']=[]);}}['_markInsertions'](_0x1a7733,_0x1c4389){const _0x288649=_0x1a7733['filter'](_0x5ce839=>!_0x5ce839['isAdded']);for(let _0x3c52ee=0x0;_0x3c52ee<_0x1c4389['length'];_0x3c52ee++)_0x1c4389[_0x3c52ee]['isAdded']&&(_0x288649[_0x3c52ee]['isAdded']=_0x1c4389[_0x3c52ee]['isAdded']);}['_makeModelFromViewString'](_0x4b1b9f){const _0x1e9a49=JSON['parse'](_0x4b1b9f),_0x3a2d38=this['editor']['editing']['view']['document'],_0x2c9fe7=new _0x1dd2da(_0x3a2d38,_0x1e9a49['map'](_0x5693bc=>this['_getViewObj'](_0x5693bc)));return this['editor']['data']['toModel'](_0x2c9fe7);}['_getViewObj'](_0x86d38d){const _0x4d26dd=this['editor']['editing']['view']['document'];if('string'==typeof _0x86d38d)return new _0x131fce(_0x4d26dd,_0x86d38d);{const _0x2fc3eb=_0x86d38d['children']['map'](_0x562157=>this['_getViewObj'](_0x562157));return new(Y[_0x86d38d['type']]||_0x48370f)(_0x4d26dd,_0x86d38d['name'],_0x86d38d['attributes'],_0x2fc3eb);}}['_getDiff'](_0x36fcba,_0x37f543=null){const _0x22dde7=this['repository']['getRevision'](_0x36fcba),_0x672e09=_0x37f543?this['repository']['getRevision'](_0x37f543):null,_0x473e18=this['_getRevisionsRange'](_0x22dde7,_0x672e09),_0x20d3b9=_0x473e18[_0x473e18['length']-0x1],_0x2a28cf=new Map(),_0x5d9e88={'model':{},'attributes':{},'changes':[]},_0x456bd1=new Set(),_0x35fb7e=new Map();for(let _0x5416e9=_0x473e18['length']-0x1;_0x5416e9>=0x0;_0x5416e9--){const _0x207b23=_0x473e18[_0x5416e9];for(const _0x4f57ff of Object['keys'](_0x207b23['diffData']))if(_0x207b23['diffData'][_0x4f57ff]['attachChange']){const _0x1f064c=_0x207b23['diffData'][_0x4f57ff]['attachChange'];_0x1f064c['isAttached']?(_0x456bd1['add'](_0x4f57ff),_0x35fb7e['has'](_0x4f57ff)&&_0x35fb7e['get'](_0x4f57ff)['userId']==_0x1f064c['userId']?_0x35fb7e['delete'](_0x4f57ff):_0x35fb7e['set'](_0x4f57ff,_0x1f064c)):_0x35fb7e['has'](_0x4f57ff)?(_0x456bd1['delete'](_0x4f57ff),_0x35fb7e['delete'](_0x4f57ff)):(_0x456bd1['add'](_0x4f57ff),_0x35fb7e['set'](_0x4f57ff,_0x1f064c));}else _0x456bd1['add'](_0x4f57ff);}for(const _0x3a3882 of _0x456bd1){const _0x5993af=_0x35fb7e['has'](_0x3a3882)&&!_0x35fb7e['get'](_0x3a3882)['isAttached'];let _0x2d388a=_0x5993af?_0x473e18['length']-0x1:0x0;const _0x236b8d=_0x5993af?-0x1:0x1;for(;_0x473e18[_0x2d388a];){const _0xf2755d=_0x473e18[_0x2d388a];if(_0xf2755d['diffData'][_0x3a3882]){const _0x3f206c=_0x5993af?_0xf2755d['diffData'][_0x3a3882]['attributesBefore']:_0xf2755d['diffData'][_0x3a3882]['attributesAfter'];_0x5d9e88['attributes'][_0x3a3882]=_0x3f206c?_0x282115(_0x3f206c):{};break;}_0x2d388a+=_0x236b8d;}}for(const _0x13a790 of _0x473e18){_0x13a790['model']={};for(const _0x2dfdc6 of _0x13a790['authors'])_0x2a28cf['set'](_0x2dfdc6['id'],_0x2dfdc6);for(const _0x1868e8 of _0x456bd1){const _0x4d8a89=_0x13a790['diffData'][_0x1868e8]?_0x13a790['diffData'][_0x1868e8]['insertions']:'[]',_0x1f0d0c=_0x13a790['diffData'][_0x1868e8]?_0x13a790['diffData'][_0x1868e8]['deletions']:'[]';_0x13a790['model'][_0x1868e8]={'insertions':this['_makeModelFromViewString'](_0x4d8a89),'deletions':this['_makeModelFromViewString'](_0x1f0d0c)};}}for(const _0x8b457b of _0x456bd1){let _0x4a99f7=null,_0x37efdb=0x0;const _0x17c115=new Map(Array['from'](_0x22dde7['model'][_0x8b457b]['insertions']['markers'])['filter'](([_0x1970f0])=>!_0x1970f0['startsWith']('revision:')));let _0x1d51b5=0x0;for(const _0xb0ee5c of _0x473e18){const _0x35a6d3=this['_makeTape'](_0xb0ee5c['model'][_0x8b457b]['insertions']);_0xb0ee5c==_0x22dde7?(_0x4a99f7=_0x35a6d3,_0x37efdb=_0x4a99f7['length'],_0x4a99f7['forEach'](_0x27de34=>{_0x27de34['id']=_0x1d51b5++;}),this['_processTape'](_0x4a99f7)):this['_markInsertions'](_0x4a99f7,_0x35a6d3);const _0x41e5f0=_0x4a99f7['filter'](_0x33ed4f=>!_0x33ed4f['isAdded'])['map'](_0x5eaf8b=>_0x5eaf8b['id']);let _0x3bf9d3=0x0;const _0x7aa8f4=this['_makeTape'](_0xb0ee5c['model'][_0x8b457b]['deletions']);_0x7aa8f4['forEach'](_0xd02cc3=>{_0xd02cc3['isRemoved']?_0xd02cc3['id']=_0x37efdb++:_0xd02cc3['id']=_0x41e5f0[_0x3bf9d3++];}),this['_processTape'](_0x7aa8f4),this['_setDistance'](_0x4a99f7,'isAdded'),this['_setDistance'](_0x7aa8f4,'isRemoved'),_0xb0ee5c==_0x22dde7&&this['_markMarkers'](_0x4a99f7,_0x17c115),_0x4a99f7=this['_joinTapes'](_0x4a99f7,_0x7aa8f4),this['_refreshStartEndIndex'](_0x4a99f7),this['_setDistance'](_0x4a99f7,'isRemoved');}_0x4a99f7=_0x4a99f7['filter'](_0x5774d5=>!(_0x5774d5['isAdded']&&_0x5774d5['isRemoved']));const _0x2da75e=new Map(_0x20d3b9['model'][_0x8b457b]['deletions']['markers']),_0x24fbba=new Set(_0x17c115['keys']());for(const _0x421fa8 of _0x2da75e['keys']())_0x24fbba['delete'](_0x421fa8);this['_markSuggestions'](_0x4a99f7,_0x24fbba),this['_fixObsoleteTags'](_0x4a99f7),_0x4a99f7=this['_removeMissingPairs'](_0x4a99f7),_0x4a99f7=this['_markMismatchedRemovedTags'](_0x4a99f7),_0x4a99f7=this['_removeUnsupportedChanges'](_0x4a99f7);const {root:_0x5b6fd9,changes:_0x240a47}=this['_makeModelFromTape'](_0x4a99f7,_0x2a28cf,_0x8b457b);_0x5d9e88['model'][_0x8b457b]=_0x5b6fd9;const _0x443966=_0x35fb7e['get'](_0x8b457b);if(_0x443966){const _0x43d343=_0x2a28cf['get'](_0x443966['userId']),_0x735e12=new r({'author':_0x43d343,'type':_0x443966['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x8b457b});_0x240a47['unshift'](_0x735e12),_0x5d9e88['attributes'][_0x8b457b]['revisionHistoryAttachChange']=_0x735e12['id'];}_0x5d9e88['changes']=_0x5d9e88['changes']['concat'](_0x240a47);}return _0x5d9e88;}['_markMarkers'](_0x33422c,_0x5ca312){for(let _0x21aff3=0x0;_0x21aff3<_0x33422c['length'];_0x21aff3++)for(const [_0xef66b5,_0x50ae93]of _0x5ca312)_0x50ae93['start']['isEqual'](_0x33422c[_0x21aff3]['previousPosition'])&&_0x33422c[_0x21aff3]['markersStart']['push'](_0xef66b5),_0x50ae93['end']['isEqual'](_0x33422c[_0x21aff3]['nextPosition'])&&_0x33422c[_0x21aff3]['markersEnd']['push'](_0xef66b5);}['_joinTapes'](_0x49e6ed,_0x3343f3){let _0x5ec133=[],_0x23bc78=0x0,_0x4382b4=0x0;for(;_0x23bc78<_0x49e6ed['length']||_0x4382b4<_0x3343f3['length'];){const _0x5c86e5=_0x49e6ed[_0x23bc78]||{},_0x4ddd7c=_0x3343f3[_0x4382b4]||{};if(_0x5c86e5['id']==_0x4ddd7c['id'])_0x23bc78++,_0x4382b4++,_0x5ec133['push'](_0x5c86e5);else{if(_0x4ddd7c['isRemoved']&&_0x5c86e5['isAdded']){const {commonTape:_0xc92380,iEnd:_0x2cb178,jEnd:_0xb1d3ca}=this['_threeWayMerge'](_0x49e6ed,_0x23bc78,_0x3343f3,_0x4382b4);_0x5ec133=_0x5ec133['concat'](_0xc92380),_0x23bc78=_0x2cb178,_0x4382b4=_0xb1d3ca;}else _0x4ddd7c['isRemoved']?(_0x4382b4++,_0x5ec133['push'](_0x4ddd7c)):(_0x23bc78++,_0x5ec133['push'](_0x5c86e5));}}return _0x5ec133;}['_markSuggestions'](_0xa90408,_0x1115c0){const _0x3ba19d=[];for(let _0x51b499=0x0;_0x51b499<_0xa90408['length'];_0x51b499++){for(let _0x32f7b1=0x0;_0x32f7b1<_0xa90408[_0x51b499]['markersStart']['length'];_0x32f7b1++){const _0xb9d093=_0xa90408[_0x51b499]['markersStart'][_0x32f7b1];if(!_0x1115c0['has'](_0xb9d093))continue;const {group:_0x1fc4e5,type:_0x5a8671,authorId:_0x4e7cc5}=_0xc2595f(_0xb9d093);'revision-suggestion'!=_0x1fc4e5||'insertion'!=_0x5a8671&&'deletion'!=_0x5a8671||(_0x3ba19d['unshift']({'type':_0x5a8671,'name':_0xb9d093,'userId':_0x4e7cc5}),_0xa90408[_0x51b499]['markersStart']['splice'](_0x32f7b1,0x1),_0x32f7b1--);}_0xdb107e(_0xa90408[_0x51b499]);for(let _0x5817cd=0x0;_0x5817cd<_0xa90408[_0x51b499]['markersEnd']['length'];_0x5817cd++){const _0x27cbf7=_0xa90408[_0x51b499]['markersEnd'][_0x5817cd];if(!_0x1115c0['has'](_0x27cbf7))continue;const {group:_0x523648,type:_0x2a4382}=_0xc2595f(_0x27cbf7);if('revision-suggestion'!=_0x523648||'insertion'!=_0x2a4382&&'deletion'!=_0x2a4382)continue;_0xa90408[_0x51b499]['markersEnd']['splice'](_0x5817cd,0x1),_0x5817cd--;const _0x3f240a=_0x3ba19d['findIndex'](_0x563f04=>_0x563f04['name']==_0x27cbf7);_0x3f240a>-0x1&&_0x3ba19d['splice'](_0x3f240a,0x1);}}function _0xc2595f(_0xe0aeb9){const _0x272d1b=_0xe0aeb9['split'](':');return{'group':_0x272d1b[0x0],'type':_0x272d1b[0x1],'subType':_0x272d1b['length']>=0x5?_0x272d1b[0x2]:null,'id':_0x272d1b['length']<0x5?_0x272d1b[0x2]:_0x272d1b[0x3],'authorId':_0x272d1b['length']<0x5?_0x272d1b[0x3]:_0x272d1b[0x4],'markerCount':0x6==_0x272d1b['length']?_0x272d1b[0x5]:null};}function _0xdb107e(_0x108128){for(let _0x4333fe=0x0;_0x4333fe<_0x3ba19d['length'];_0x4333fe++){if(_0x108128['isAdded']&&'insertion'==_0x3ba19d[_0x4333fe]['type'])return _0x108128['isAddSuggestion']=_0x3ba19d[_0x4333fe],void delete _0x108128['isAdded'];if(!_0x108128['isAdded']&&!_0x108128['isRemoved']&&'deletion'==_0x3ba19d[_0x4333fe]['type'])return void(_0x108128['isRemoveSuggestion']=_0x3ba19d[_0x4333fe]);}}}['_setDistance'](_0x17d4d7,_0x1ccec0){let _0x27f22c=0x0,_0x45a048=!0x1;const _0x34cfed=new Map();for(const _0x312697 of _0x17d4d7)_0x312697[_0x1ccec0]?_0x45a048&&(_0x27f22c++,_0x45a048=!0x1):(_0x27f22c++,_0x45a048=!0x0),_0x34cfed['set'](_0x312697['id'],_0x27f22c);for(let _0x184c1a=0x0;_0x184c1a<_0x17d4d7['length'];_0x184c1a++){if('isRemoved'==_0x1ccec0&&_0x17d4d7[_0x184c1a]['isAdded']||'isAdded'==_0x1ccec0&&_0x17d4d7[_0x184c1a]['isRemoved'])continue;if('text'==_0x17d4d7[_0x184c1a]['type']){_0x17d4d7[_0x184c1a]['distance']=0x0;continue;}const _0x2012d1=_0x34cfed['get'](_0x17d4d7[_0x184c1a]['pairId']),_0x20f4fb=_0x34cfed['get'](_0x17d4d7[_0x184c1a]['id']);_0x17d4d7[_0x184c1a]['distance']=_0x2012d1-_0x20f4fb;}}['_getRevisionsRange'](_0x33a9c7,_0x3d5774,_0x34b337=!0x1){const _0x2d49fd=[];let _0x344916=this['repository']['getIndex'](_0x33a9c7),_0x256094=this['repository']['getIndex'](_0x3d5774);for(-0x1==_0x256094&&(_0x256094=this['repository']['_revisions']['length'],_0x34b337=!0x1);_0x344916<_0x256094;)_0x2d49fd['push'](this['repository']['getRevision'](_0x344916)),_0x344916++;return _0x34b337&&_0x2d49fd['push'](this['repository']['getRevision'](_0x344916)),_0x2d49fd;}['_threeWayMerge'](_0x8eda5f,_0x442bb7,_0x2cbb31,_0x37964b){const _0x334a7f=this['editor']['model']['schema'];let _0x25d57a=_0x442bb7;for(;_0x8eda5f[_0x25d57a]&&_0x8eda5f[_0x25d57a]['isAdded'];)_0x25d57a++;let _0x1d47e8=_0x37964b;for(;_0x2cbb31[_0x1d47e8]&&_0x2cbb31[_0x1d47e8]['isRemoved'];)_0x1d47e8++;_0x259f44(_0x8eda5f,_0x442bb7,_0x25d57a),_0x259f44(_0x2cbb31,_0x37964b,_0x1d47e8);const _0x5bfd86=_0x2cbb31['slice'](_0x37964b,_0x1d47e8)['concat'](_0x8eda5f['slice'](_0x442bb7,_0x25d57a));return _0x5bfd86['sort']((_0xf085f5,_0x2e6e9f)=>_0xf085f5['side']!=_0x2e6e9f['side']?_0xf085f5['side']-_0x2e6e9f['side']:_0xf085f5['level']!=_0x2e6e9f['level']?_0xf085f5['level']-_0x2e6e9f['level']:_0xf085f5['distance']!=_0x2e6e9f['distance']?_0x2e6e9f['distance']-_0xf085f5['distance']:!!_0xf085f5['isAdded']!=!!_0x2e6e9f['isAdded']?-0x1==_0xf085f5['side']||0x0==_0xf085f5['side']?_0xf085f5['isAdded']?-0x1:0x1:_0xf085f5['isAdded']?0x1:-0x1:_0xf085f5['index']-_0x2e6e9f['index']),{'commonTape':_0x5bfd86,'iEnd':_0x25d57a,'jEnd':_0x1d47e8};function _0x259f44(_0x3177de,_0xbc93e1,_0xa80bf3){let _0xffe6aa=-0x1,_0x57ccac=Number['POSITIVE_INFINITY'],_0x431cb1=!0x0;for(let _0x1964ce=_0xbc93e1;_0x1964ce<_0xa80bf3;_0x1964ce++)if(_0x334a7f['isInline'](_0x3177de[_0x1964ce]['item'])||(_0x431cb1=!0x1),_0x3177de[_0x1964ce]['item']['startIndex']<_0xbc93e1&&(_0xffe6aa=_0x1964ce),_0x3177de[_0x1964ce]['item']['endIndex']>=_0xa80bf3){_0x57ccac=_0x1964ce;break;}_0x431cb1&&(_0xffe6aa=_0xa80bf3-0x1);for(let _0x54ca85=_0xbc93e1;_0x54ca85<_0xa80bf3;_0x54ca85++)_0x3177de[_0x54ca85]['side']=_0x54ca85<=_0xffe6aa?-0x1:_0x54ca85<_0x57ccac?0x0:0x1,_0x3177de[_0x54ca85]['index']=_0x54ca85;let _0x4102e5=0x0;for(let _0x4c73bb=_0xbc93e1;_0x4c73bb<=_0xffe6aa;_0x4c73bb++)0x0==_0x3177de[_0x4c73bb]['distance']?_0x3177de[_0x4c73bb]['level']=_0x4102e5:(_0x4102e5++,_0x3177de[_0x4c73bb]['level']=_0x4102e5,_0x4102e5++);for(let _0x4fefe7=_0xbc93e1;_0x4fefe7<_0xa80bf3;_0x4fefe7++)0x0==_0x3177de[_0x4fefe7]['side']&&(_0x3177de[_0x4fefe7]['level']=_0x4102e5);_0x4102e5=0x0;for(let _0x57fba4=_0xa80bf3-0x1;_0x57fba4>=_0x57ccac;_0x57fba4--)0x0==_0x3177de[_0x57fba4]['distance']?_0x3177de[_0x57fba4]['level']=_0x4102e5:(_0x4102e5--,_0x3177de[_0x57fba4]['level']=_0x4102e5,_0x4102e5--);}}['_fixObsoleteTags'](_0x3db813){const _0x75fbcb=new Map(),_0x1665d2=this['editor']['model']['schema'];for(let _0x1f55f7=0x1;_0x1f55f7<_0x3db813['length'];_0x1f55f7++){let _0x259e8c,_0x5c3e9e,_0x4493f7;const _0x49ccd8=_0x3db813[_0x1f55f7],_0x41e066=_0x3db813[_0x1f55f7-0x1];if('text'==_0x49ccd8['type'])continue;if(_0x49ccd8['type']!=_0x41e066['type'])continue;if(!_0x1665d2['isBlock'](_0x41e066['item'])||_0x1665d2['isLimit'](_0x41e066['item']))continue;if(!_0x1665d2['isBlock'](_0x49ccd8['item'])||_0x1665d2['isLimit'](_0x49ccd8['item']))continue;if((_0x3db813[_0x1f55f7]['isAdded']||_0x3db813[_0x1f55f7]['isAddSuggestion'])&&_0x3db813[_0x1f55f7-0x1]['isRemoved'])_0x259e8c=_0x3db813[_0x1f55f7],_0x5c3e9e=_0x3db813[_0x1f55f7-0x1],_0x4493f7=_0x1f55f7-0x1;else{if(!_0x3db813[_0x1f55f7]['isRemoved']||!_0x3db813[_0x1f55f7-0x1]['isAdded']&&!_0x3db813[_0x1f55f7-0x1]['isAddSuggestion'])continue;_0x259e8c=_0x3db813[_0x1f55f7-0x1],_0x5c3e9e=_0x3db813[_0x1f55f7],_0x4493f7=_0x1f55f7;}const _0x28ca27=_0x259e8c['level']==_0x5c3e9e['level'],_0x44d647=Math['abs'](_0x259e8c['level'])<Math['abs'](_0x5c3e9e['level'])&&0x0==_0x5c3e9e['distance'];(_0x28ca27||_0x44d647)&&(_0x75fbcb['set'](_0x5c3e9e['id'],_0x259e8c['id']),_0x3db813['splice'](_0x4493f7,0x1),_0x1f55f7--,_0x259e8c['isAdded']=!0x1);}for(let _0x4ac173=0x0;_0x4ac173<_0x3db813['length'];_0x4ac173++)_0x75fbcb['has'](_0x3db813[_0x4ac173]['pairId'])&&(_0x3db813[_0x4ac173]['pairId']=_0x75fbcb['get'](_0x3db813[_0x4ac173]['pairId']));}['_removeMissingPairs'](_0x551f80){const _0x2556d0=new Set(_0x551f80['map'](_0x2fadf6=>_0x2fadf6['id']));for(let _0x72c515=0x0;_0x72c515<_0x551f80['length'];_0x72c515++)_0x2556d0['has'](_0x551f80[_0x72c515]['pairId'])||0x0==_0x551f80[_0x72c515]['distance']||(_0x551f80[_0x72c515]['isIncorrect']=!0x0);return _0x551f80['filter'](_0x20c2f8=>!_0x20c2f8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x135b54){const _0x12a82b=new Set();for(let _0x3ea0a4=0x0;_0x3ea0a4<_0x135b54['length'];_0x3ea0a4++){if(_0x12a82b['has'](_0x135b54[_0x3ea0a4]['id'])&&_0x135b54[_0x3ea0a4]['isRemoved']&&(_0x135b54[_0x3ea0a4]['isIncorrect']=!0x0),_0x135b54[_0x3ea0a4]['isIncorrect'])continue;if(0x0==_0x135b54[_0x3ea0a4]['distance'])continue;if('elementStart'!=_0x135b54[_0x3ea0a4]['type'])continue;if(null==_0x135b54[_0x3ea0a4]['pairId'])continue;let _0x367207=_0x3ea0a4+0x1,_0x2a7cc4=0x0;for(;_0x135b54[_0x367207]['id']!=_0x135b54[_0x3ea0a4]['pairId'];)'elementStart'==_0x135b54[_0x367207]['type']?_0x2a7cc4++:'elementEnd'==_0x135b54[_0x367207]['type']&&_0x2a7cc4--,_0x367207++;if(0x0!=_0x2a7cc4){if(_0x135b54[_0x3ea0a4]['isRemoved'])_0x135b54[_0x3ea0a4]['isIncorrect']=!0x0;else{for(;_0x367207!=_0x3ea0a4;)_0x135b54[_0x367207]['isRemoved']&&0x0!=_0x135b54[_0x367207]['distance']&&(_0x135b54[_0x367207]['isIncorrect']=!0x0,_0x12a82b['add'](_0x135b54[_0x367207]['pairId'])),_0x367207--;}}}return _0x135b54['filter'](_0x4664df=>!_0x4664df['isIncorrect']);}['_removeUnsupportedChanges'](_0x21c0f3){const _0xe4d37e=this['editor']['model']['schema'];for(let _0xc73f39=0x0;_0xc73f39<_0x21c0f3['length'];_0xc73f39++){if(!(_0x21c0f3[_0xc73f39]['isAdded']||_0x21c0f3[_0xc73f39]['isAddSuggestion']||_0x21c0f3[_0xc73f39]['isRemoved']||_0x21c0f3[_0xc73f39]['isRemoveSuggestion']))continue;if(0x0==_0x21c0f3[_0xc73f39]['distance'])continue;const _0xc09f6e=_0x21c0f3[_0xc73f39]['item'];_0xe4d37e['isBlock'](_0xc09f6e)||_0xe4d37e['isLimit'](_0xc09f6e)||(_0x21c0f3[_0xc73f39]['isAdded']&&delete _0x21c0f3[_0xc73f39]['isAdded'],_0x21c0f3[_0xc73f39]['isAddSuggestion']&&delete _0x21c0f3[_0xc73f39]['isAddSuggestion'],_0x21c0f3[_0xc73f39]['isRemoveSuggestion']&&delete _0x21c0f3[_0xc73f39]['isRemoveSuggestion'],_0x21c0f3[_0xc73f39]['isRemoved']&&(_0x21c0f3[_0xc73f39]['isIncorrect']=!0x0));}return _0x21c0f3['filter'](_0x14f3c1=>!_0x14f3c1['isIncorrect']);}['_makeModelFromTape'](_0x355b7b,_0x1f80c9,_0x1e974e){const _0x3079a7=new gt(),_0x1a5030=[],_0x280041=new Map(),_0x2fffc5=this['editor']['model'],_0x291873=_0x2fffc5['schema'],_0x29dce6=[_0x3079a7],_0x30065c={},_0x33f14c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x262d99=null;const _0x56b38a=[0x0];for(let _0x22342c=0x0;_0x22342c<_0x355b7b['length'];_0x22342c++)if('elementStart'===_0x355b7b[_0x22342c]['type']){_0x355b7b[_0x22342c]['previousPosition']=_0x2fffc5['createPositionFromPath'](_0x3079a7,_0x56b38a);const _0x31d679=new ut(_0x355b7b[_0x22342c]['item']['name'],_0x355b7b[_0x22342c]['item']['getAttributes']());_0x29dce6[0x0]['_appendChild'](_0x31d679),_0x56b38a['push'](0x0),_0x29dce6['unshift'](_0x31d679),_0x355b7b[_0x22342c]['nextPosition']=_0x2fffc5['createPositionFromPath'](_0x3079a7,_0x56b38a);}else'elementEnd'===_0x355b7b[_0x22342c]['type']?(_0x29dce6['shift'](),_0x355b7b[_0x22342c]['previousPosition']=_0x2fffc5['createPositionFromPath'](_0x3079a7,_0x56b38a),_0x56b38a['pop'](),_0x56b38a[_0x56b38a['length']-0x1]++,_0x355b7b[_0x22342c]['nextPosition']=_0x2fffc5['createPositionFromPath'](_0x3079a7,_0x56b38a)):(_0x355b7b[_0x22342c]['previousPosition']=_0x2fffc5['createPositionFromPath'](_0x3079a7,_0x56b38a),_0x262d99?_0x262d99['_data']+=_0x355b7b[_0x22342c]['item']['data']:_0x262d99=new wt(_0x355b7b[_0x22342c]['item']['data'],_0x355b7b[_0x22342c]['item']['getAttributes']()),_0x355b7b[_0x22342c+0x1]&&'text'===_0x355b7b[_0x22342c+0x1]['type']&&_0x11c376(_0x262d99,_0x355b7b[_0x22342c+0x1]['item'])||(_0x29dce6[0x0]['_appendChild'](_0x262d99),_0x262d99=null),_0x56b38a[_0x56b38a['length']-0x1]+=_0x355b7b[_0x22342c]['item']['offsetSize'],_0x355b7b[_0x22342c]['nextPosition']=_0x2fffc5['createPositionFromPath'](_0x3079a7,_0x56b38a));for(let _0x5be562=0x0;_0x5be562<_0x355b7b['length'];_0x5be562++){const _0x552814=_0x355b7b[_0x5be562]['previousPosition'],_0x5ee62f=_0x355b7b[_0x5be562]['nextPosition'];for(const _0x41fab7 of _0x355b7b[_0x5be562]['markersStart'])_0x280041['set'](_0x41fab7,{'start':_0x552814,'end':null});_0x43aaa4('isRemoveSuggestion',_0x5be562,_0x552814,_0x5ee62f),_0x43aaa4('isAddSuggestion',_0x5be562,_0x552814,_0x5ee62f),_0x43aaa4('isRemoved',_0x5be562,_0x552814,_0x5ee62f),_0x43aaa4('isAdded',_0x5be562,_0x552814,_0x5ee62f);for(const _0x115973 of _0x355b7b[_0x5be562]['markersEnd']){_0x280041['get'](_0x115973)['end']=_0x5ee62f;}}for(const [_0x41cc53,_0x35a5ee]of _0x280041){const _0x348543=this['editor']['model']['createRange'](_0x35a5ee['start'],_0x35a5ee['end']);_0x3079a7['markers']['set'](_0x41cc53,_0x348543);}return _0x1a5030['sort']((_0x2bd28a,_0x51efd4)=>{const _0x2e99f0=_0x3079a7['markers']['get']('revision:'+_0x2bd28a['id']),_0x1494c1=_0x3079a7['markers']['get']('revision:'+_0x51efd4['id']);return _0x2e99f0['start']['isBefore'](_0x1494c1['start'])?-0x1:_0x2e99f0['start']['isAfter'](_0x1494c1['start'])?0x1:_0x2e99f0['end']['isBefore'](_0x1494c1['end'])?-0x1:_0x2e99f0['end']['isAfter'](_0x1494c1['end'])?0x1:'add'===_0x2bd28a['type']?-0x1:0x1;}),{'root':_0x3079a7,'changes':_0x1a5030};function _0x43aaa4(_0x148725,_0x49f28b,_0x68e430,_0x5f3c40){const _0x300001=!!_0x355b7b[_0x49f28b][_0x148725],_0x3cba5a=_0x300001?_0x355b7b[_0x49f28b][_0x148725]['userId']:null,_0x2a3295=_0x49f28b===_0x355b7b['length']-0x1,_0x50cf4b=_0x33f14c[_0x148725][0x0],_0x379449=_0x291873['isObject'](_0x355b7b[_0x49f28b]['item']);!_0x30065c[_0x148725]&&_0x300001?_0x30065c[_0x148725]={'start':_0x68e430,'tapeItem':_0x355b7b[_0x49f28b],'userId':_0x3cba5a,'type':_0x148725}:_0x30065c[_0x148725]&&!_0x300001?(_0x30065c[_0x148725]['end']=_0x68e430,_0x2727e3(_0x30065c[_0x148725]),_0x30065c[_0x148725]=null):_0x30065c[_0x148725]&&_0x300001&&_0x30065c[_0x148725]['userId']!==_0x3cba5a&&(_0x30065c[_0x148725]['end']=_0x68e430,_0x50cf4b&&_0x50cf4b['userId']===_0x30065c[_0x148725]['userId']||_0x2727e3(_0x30065c[_0x148725]),_0x30065c[_0x148725]={'start':_0x68e430,'tapeItem':_0x355b7b[_0x49f28b],'userId':_0x3cba5a,'type':_0x148725}),_0x30065c[_0x148725]&&_0x379449&&('elementStart'!==_0x355b7b[_0x49f28b]['type']||_0x50cf4b&&_0x50cf4b['userId']===_0x3cba5a||_0x33f14c[_0x148725]['unshift']({'userId':_0x3cba5a,'object':_0x355b7b[_0x49f28b]['item'],'change':_0x30065c[_0x148725]}),'elementEnd'===_0x355b7b[_0x49f28b]['type']&&_0x50cf4b&&_0x50cf4b['object']===_0x355b7b[_0x49f28b]['item']&&(_0x33f14c[_0x148725]['shift'](),_0x30065c[_0x148725]=_0x50cf4b['change'])),_0x30065c[_0x148725]&&_0x2a3295&&(_0x30065c[_0x148725]['end']=_0x5f3c40,_0x2727e3(_0x30065c[_0x148725]),_0x30065c[_0x148725]=null);}function _0x2727e3({start:_0x395dfa,end:_0x304a17,tapeItem:_0x23f3cf,userId:_0x562cca,type:_0x2084f6}){const _0x1d89fc=_0x23f3cf['item'],_0x495d23=_0x2fffc5['schema']['isBlock'](_0x1d89fc)&&!_0x2fffc5['schema']['isLimit'](_0x1d89fc),_0x4fc7d7=_0x395dfa['nodeAfter']==_0x304a17['parent']&&_0x304a17['isAtStart'];if(_0x495d23&&_0x4fc7d7)return;const _0x3505ed=_0x2fffc5['createRange'](_0x395dfa,_0x304a17),_0x4ce9a1=_0x1f80c9['get'](_0x562cca),_0x5b8ff8=new r({'author':_0x4ce9a1,'type':'isAdded'==_0x2084f6||'isAddSuggestion'==_0x2084f6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2084f6||'isRemoveSuggestion'==_0x2084f6},'createdAt':new Date(),'rootName':_0x1e974e});_0x1a5030['push'](_0x5b8ff8),_0x3079a7['markers']['set']('revision:'+_0x5b8ff8['id'],_0x3505ed);}function _0x11c376(_0xfbfedb,_0x4ddd0b){const _0xbeb81=_0xfbfedb['getAttributes'](),_0x422811=_0x4ddd0b['getAttributes']();for(const _0x3d54f7 of _0xbeb81){if(_0x3d54f7[0x1]!==_0x4ddd0b['getAttribute'](_0x3d54f7[0x0]))return!0x1;_0x422811['next']();}return _0x422811['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x25c229=>{const _0xcc5a70=_0x25c229['markerName']['split'](':')[0x1],_0x5b4a31=this['_getChangeFromId'](_0xcc5a70);if(!_0x5b4a31)return null;const _0x57e8ec='add'==_0x5b4a31['type']?'insertion':'deletion',_0x1dd510=['ck-suggestion-marker','ck-suggestion-marker-'+_0x57e8ec];return _0x5b4a31['data']['isSuggestion']&&_0x1dd510['push']('ck-suggestion-marker-'+_0x57e8ec+'-new'),this['activeChange']==_0x5b4a31&&_0x1dd510['push']('ck-suggestion-marker--active'),{'classes':_0x1dd510,'attributes':{'data-change-id':_0xcc5a70}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x17a813=>{_0x17a813['on']('element:pre',(_0xa2f98d,_0x22ccff,_0x2bddfd)=>{const _0x34a71b=_0x22ccff['viewItem']['getChild'](0x0);if(!_0x34a71b||!_0x34a71b['is']('element','code'))return;if(!_0x2bddfd['consumable']['consume'](_0x34a71b,{'attributes':['vid_start','vid_end']}))return;const _0x597336=_0x22ccff['modelRange']['start']['nodeAfter'];_0x2bddfd['writer']['setAttribute']('vid_start',_0x34a71b['getAttribute']('vid_start'),_0x597336),_0x2bddfd['writer']['setAttribute']('vid_end',_0x34a71b['getAttribute']('vid_end'),_0x597336);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x40da0e=>{_0x40da0e['on']('element',(_0xcafb44,_0x5823c9,_0x120cfd)=>{if(!_0x120cfd['consumable']['consume'](_0x5823c9['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5823c9['modelRange']['isCollapsed'])return;const _0x54234b=_0x5823c9['modelRange']['start']['nodeAfter'];_0x54234b['hasAttribute']('vid_start')||_0x54234b['hasAttribute']('vid')||(_0x120cfd['writer']['setAttribute']('vid_start',_0x5823c9['viewItem']['getAttribute']('vid_start'),_0x54234b),_0x120cfd['writer']['setAttribute']('vid_end',_0x5823c9['viewItem']['getAttribute']('vid_end'),_0x54234b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x92b308=>_0x92b308['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5da35c,[,_0x576735])=>{['vid_start','vid_end','vid']['includes'](_0x576735)&&(_0x5da35c['return']=!0x0,_0x5da35c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x20ca36=>{_0x20ca36['on']('attribute:vid',(_0x2bb423,_0x29c982,_0x5cb448)=>{if('\x20'!=_0x29c982['item']['data']||_0x29c982['item']['parent']['maxOffset']>0x1)return;if(!_0x5cb448['consumable']['consume'](_0x29c982['item'],_0x2bb423['name']))return;const _0x281b69=_0x5cb448['writer'],_0xcaf9b5=_0x5cb448['mapper']['toViewRange'](_0x29c982['range']);_0x281b69['wrap'](_0xcaf9b5,_0x281b69['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x20a833){const _0x3ead0d=_0x20a833['plugins']['get']('RevisionViewer');return(_0x10713d,_0x11ceae,_0xb6e34a)=>{const _0x430f86=_0x11ceae['markerName']['split'](':')[0x1],_0xceab9=_0x3ead0d['_getChangeFromId'](_0x430f86);if(!_0xceab9)return null;const _0x508836='add'==_0xceab9['type']?'split':'merge';if(!_0xb6e34a['consumable']['test'](_0x11ceae['markerRange'],_0x10713d['name']))return;const _0x554193=_0x11ceae['markerRange']['getWalker'](),_0x1e6e6a=_0x11ceae['markerRange']['start'],_0x191fab=_0x20a833['model']['schema'];let _0x3e053d=null,_0x1d0bda=null,_0x1d3783=!0x1,_0x381d8b=!0x1;for(const _0x5db0af of _0x554193){const _0x542de8=_0x5db0af['item'];_0x1d3783=_0x1d3783||_0x191fab['isContent'](_0x542de8);const _0x2cc8ad=_0xb6e34a['mapper']['toViewElement'](_0x542de8);if(_0x2cc8ad&&_0x2cc8ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5db0af['type']&&(_0x191fab['isBlock'](_0x542de8)&&!_0x191fab['isLimit'](_0x542de8)&&(_0x542de8['nextSibling']||_0x1e6e6a['isAtEnd']?_0x3e053d&&_0x3e053d['parent']==_0x542de8||(_0x3e053d=_0x542de8,_0x176d03(_0x5db0af['previousPosition']),_0x381d8b=!0x0):_0x1d0bda=_0x1d0bda||_0x5db0af['previousPosition']));}function _0x176d03(_0x4d230e){const _0x56b71c=_0xb6e34a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x508836}),_0x1390dc=_0xb6e34a['mapper']['toViewPosition'](_0x4d230e);_0xceab9['data']['isSuggestion']&&_0xb6e34a['writer']['addClass']('ck-suggestion-marker-'+_0x508836+'-new',_0x56b71c),_0x3ead0d['activeChange']==_0xceab9&&_0xb6e34a['writer']['addClass']('ck-suggestion-marker--active',_0x56b71c),_0xb6e34a['writer']['insert'](_0x1390dc,_0x56b71c),_0xb6e34a['mapper']['bindElementToMarker'](_0x56b71c,_0x11ceae['markerName']);}_0x1d3783||_0x381d8b||!_0x1d0bda||_0x176d03(_0x1d0bda);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x25ed47,_0x4d5d0f,_0x40234d)=>{const _0x13abf7=_0x40234d['mapper']['markerNameToElements'](_0x4d5d0f['markerName']);if(_0x13abf7){for(const _0x490ccf of _0x13abf7)(_0x490ccf['hasClass']('ck-suggestion-marker-split')||_0x490ccf['hasClass']('ck-suggestion-marker-merge'))&&(_0x40234d['mapper']['unbindElementFromMarkerName'](_0x490ccf,_0x4d5d0f['markerName']),_0x40234d['writer']['remove'](_0x490ccf));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1bc7a5,_0x446cc3,_0x55fab8)=>{const _0x424b00=_0x446cc3['markerName']['split'](':')[0x1],_0x475b37=this['_getChangeFromId'](_0x424b00);if(!_0x475b37)return null;const _0x4509f0='add'==_0x475b37['type']?'split':'merge';if(_0x55fab8['consumable']['test'](_0x446cc3['markerRange'],_0x1bc7a5['name']))for(const _0x30a7b3 of _0x446cc3['markerRange']['getItems']()){if(!_0x30a7b3['is']('element','softBreak'))continue;const _0x132d2d=_0x55fab8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4509f0}),_0x212a43=_0x55fab8['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x30a7b3));_0x475b37['data']['isSuggestion']&&_0x55fab8['writer']['addClass']('ck-suggestion-marker-'+_0x4509f0+'-new',_0x132d2d),this['activeChange']==_0x475b37&&_0x55fab8['writer']['addClass']('ck-suggestion-marker--active',_0x132d2d),_0x55fab8['writer']['insert'](_0x212a43,_0x132d2d),_0x55fab8['mapper']['bindElementToMarker'](_0x132d2d,_0x446cc3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x158315=>{for(const _0x1345c2 of this['editor']['model']['document']['getRootNames']()){const _0x24e520=this['editor']['model']['document']['getRoot'](_0x1345c2),_0x1f4b7f=this['editor']['editing']['view']['document']['getRoot'](_0x1345c2);if(_0x1f4b7f){const _0x1930ab=_0x24e520['getAttribute']('revisionHistoryAttachChange');if(_0x158315['removeAttribute']('data-change-id',_0x1f4b7f),_0x158315['removeClass']('ck-revision-history-root-add',_0x1f4b7f),_0x158315['removeClass']('ck-revision-history-root-remove',_0x1f4b7f),_0x158315['removeClass']('ck-revision-history-root--active',_0x1f4b7f),_0x1930ab){const _0x2f834b=this['_getChangeFromId'](_0x1930ab);if(!_0x2f834b)return null;_0x158315['setAttribute']('data-change-id',_0x1930ab,_0x1f4b7f),_0x158315['addClass']('ck-revision-history-root-'+_0x2f834b['type'],_0x1f4b7f),this['activeChange']==_0x2f834b&&_0x158315['addClass']('ck-revision-history-root--active',_0x1f4b7f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4cc6a6=>'revision-comment:'+_0x4cc6a6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x21ca67=>'revision-suggestion:'+_0x21ca67,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3d065d=>({'name':'suggestion:'+_0x3d065d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3c29cf=>{const _0x2bc4e7=_0x3c29cf['markerName']['split'](':')[0x1];return'insertion'!=_0x2bc4e7&&'deletion'!=_0x2bc4e7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2bc4e7]};}}),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',(_0x190dfe,_0x4aeebb,_0x1af946)=>{const _0x1c0e22=_0x1af946['mapper']['markerNameToElements'](_0x4aeebb['markerName']);if(_0x1c0e22){for(const _0xd9eb8b of _0x1c0e22)_0xd9eb8b['is']('uiElement')&&(_0x1af946['mapper']['unbindElementFromMarkerName'](_0xd9eb8b,_0x4aeebb['markerName']),_0x1af946['writer']['remove'](_0xd9eb8b));}},{'priority':'high'});}['_getChangeFromId'](_0x2dcdd0){return this['_changeIdToChange']['get'](_0x2dcdd0);}['_getViewForChange'](_0x15691f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x15691f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3fa500,_0x204f67,_0x5252b6,_0x4e7f70)=>{_0x4e7f70&&this['_balloon']['remove'](_0x4e7f70),_0x5252b6&&(this['_balloon']['add']({'view':_0x5252b6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x33e0b3=this['editor']['editing'],_0x5d8cba=this['_getChangeFromId'](_0x5252b6['changeId']);let _0xc149a5;if(_0x5d8cba['data']['isOnRoot']){const _0x15f030=_0x33e0b3['view']['getDomRoot'](_0x5d8cba['rootName']);_0xc149a5=Array['from'](_0x15f030['getClientRects']());}else{const _0x148813=this['editor']['model']['markers']['get']('revision:'+_0x5252b6['changeId']);_0xc149a5=Array['from'](_0x33e0b3['mapper']['markerNameToElements'](_0x148813['name']))['map'](_0x4af161=>_0x33e0b3['view']['domConverter']['mapViewToDom'](_0x4af161))['map'](_0x2a00c1=>Array['from'](_0x2a00c1['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc149a5[0x0];return _0xc149a5['find'](_0x5dad75=>_0x5dad75['top']-0x3<=this['_activeViewTarget']['y']&&_0x5dad75['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5dad75['left']-0x3<=this['_activeViewTarget']['x']&&_0x5dad75['right']+0x3>=this['_activeViewTarget']['x'])||_0xc149a5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x48377e,_0x41dee3,_0x2196ea,_0x51413e)=>{this['activeView']=_0x2196ea?this['_getViewForChange'](_0x2196ea):null,this['editor']['model']['change'](()=>{const _0x35a042=this['editor']['editing'];_0x51413e&&(_0x51413e['data']['isOnRoot']?_0x35a042['view']['change'](_0x115b12=>{_0x115b12['removeClass']('ck-revision-history-root--active',_0x35a042['view']['document']['getRoot'](_0x51413e['rootName']));}):_0x35a042['reconvertMarker']('revision:'+_0x51413e['id'])),_0x2196ea&&(_0x2196ea['data']['isOnRoot']?_0x35a042['view']['change'](_0x4d18ed=>{_0x4d18ed['addClass']('ck-revision-history-root--active',_0x35a042['view']['document']['getRoot'](_0x2196ea['rootName']));}):_0x35a042['reconvertMarker']('revision:'+_0x2196ea['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x7831c5,_0x5d734b)=>{if(this['activeChange'])return;const _0x13805f=this['_findChangeIdFromDomTarget'](_0x5d734b['target']),_0x4aa07d=this['_changeIdToChange']['get'](_0x13805f);_0x4aa07d?(this['_activeViewTarget']={'x':_0x5d734b['domEvent']['x'],'y':_0x5d734b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4aa07d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5133a8,_0x507e2d)=>{const _0x3be304=this['_findChangeIdFromDomTarget'](_0x507e2d['target']),_0x1db79b=this['_changeIdToChange']['get'](_0x3be304);_0x1db79b?(this['_activeViewTarget']={'x':_0x507e2d['domEvent']['x'],'y':_0x507e2d['domEvent']['y']},_0x1db79b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1db79b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x455101){do{const _0x2b0b61=_0x455101['getAttribute']('data-change-id');if(_0x2b0b61)return _0x2b0b61;_0x455101=_0x455101['parent'];}while(_0x455101);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xcefd8e=>{for(const _0x13725e of this['editor']['model']['markers'])_0xcefd8e['removeMarker'](_0x13725e);});}}function Z(_0x59d1d5,_0x413d64){return(_0x119783,_0x7976fe,_0x9aba98)=>{if(!_0x9aba98['consumable']['test'](_0x7976fe['markerRange'],_0x119783['name']))return;const _0x1a1cb8=_0x7976fe['markerRange']['getWalker'](),_0xd7874b=_0x7976fe['markerRange']['start'],_0x2f0fdc=_0x59d1d5['model']['schema'];let _0x474333=null,_0x348688=null,_0x18a5f6=!0x1,_0x533f06=!0x1;for(const _0x1be796 of _0x1a1cb8){const _0x4feed4=_0x1be796['item'];_0x18a5f6=_0x18a5f6||_0x2f0fdc['isContent'](_0x4feed4);const _0x3a999f=_0x9aba98['mapper']['toViewElement'](_0x4feed4);if(_0x3a999f&&_0x3a999f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1be796['type']&&(_0x2f0fdc['isBlock'](_0x4feed4)&&!_0x2f0fdc['isLimit'](_0x4feed4)&&(_0x4feed4['nextSibling']||_0xd7874b['isAtEnd']?_0x474333&&_0x474333['parent']==_0x4feed4||(_0x474333=_0x4feed4,_0x56d24d(_0x1be796['previousPosition']),_0x533f06=!0x0):_0x348688=_0x348688||_0x1be796['previousPosition']));}function _0x56d24d(_0x531779){const _0x43da4d=_0x9aba98['mapper']['toViewPosition'](_0x531779),_0xf95e04=_0x9aba98['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x413d64});_0x9aba98['writer']['insert'](_0x43da4d,_0xf95e04),_0x9aba98['mapper']['bindElementToMarker'](_0xf95e04,_0x7976fe['markerName']);}_0x18a5f6||_0x533f06||!_0x348688||_0x56d24d(_0x348688);};}class _t extends _0x4a9c85{constructor(_0x4810f6){super(_0x4810f6);const _0x58e850=_0x4810f6['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x58e850,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58e850,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4de196=this['editor'],_0x57c304=_0x4de196['plugins']['get'](d),_0x4ebafc=_0x57c304['isReady']?_0x57c304['diff']['newRevisionId']:null;_0x4de196['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4ebafc);}['refresh'](){const {isReady:_0x32bf1e,isEnabled:_0x4293e,repository:_0x3af678,diff:_0x154f01}=this['editor']['plugins']['get'](d),_0x121d2e=_0x154f01&&_0x3af678['getLaterVisibleRevision'](_0x154f01['newRevisionId']);this['isEnabled']=_0x32bf1e&&_0x4293e&&Boolean(_0x121d2e);}}class yt extends _0x4a9c85{['_step'];constructor(_0x431410,{direction:_0x385bc3}){super(_0x431410);const _0x5732e5=_0x431410['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x385bc3?0x1:-0x1,this['listenTo'](_0x5732e5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5732e5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5732e5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4ab861=this['editor'],_0x4361b4=_0x4ab861['plugins']['get'](d),{isNavigationMode:_0x2e885c,currentChangeNumber:_0x928747}=_0x4361b4;let _0x209ad3;if(_0x4361b4['activeChange']=_0x2e885c?_0x4361b4['diff']['changes']['get'](_0x928747+this['_step']):_0x4361b4['diff']['changes']['first'],_0x4361b4['activeChange']['data']['isOnRoot'])_0x209ad3=_0x4ab861['editing']['view']['getDomRoot'](_0x4361b4['activeChange']['rootName']);else{const _0x2258cb=_0x4ab861['model']['markers']['get']('revision:'+_0x4361b4['activeChange']['id']);_0x209ad3=_0x1b839e(_0x4ab861['editing'],_0x2258cb);}_0x589c88({'target':_0x209ad3,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1b4e0f,currentChangeNumber:_0x280ef1,numberOfChanges:_0x583747,isReady:_0x17ade8,isEnabled:_0x787f61}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x787f61&&_0x17ade8&&_0x583747)&&(!_0x1b4e0f||(0x1===this['_step']?_0x280ef1<_0x583747-0x1:_0x280ef1>0x0));}}class _i extends _0x49045a{constructor(_0x527b6f){super(_0x527b6f);const _0x2a4b62=this['bindTemplate'],_0xbbb134=new _0x43db63(_0x527b6f),_0x172c73=new _0x43db63(_0x527b6f);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',(_0x5b7981,_0x2ea3a0)=>_0x5b7981&&_0x2ea3a0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5a714f,_0x1610e7,_0x2f42ba,_0x38f0cf)=>{if(!_0x5a714f)return m(_0x527b6f,'Loading...');if(!_0x2f42ba)return m(_0x527b6f,'No\x20changes');const _0x4f9d56=m(_0x527b6f,'NUMBER_OF_CHANGES',_0x2f42ba);return _0x38f0cf?m(_0x527b6f,'X_OF_Y_CHANGES',[_0x1610e7+0x1,_0x2f42ba]):_0x4f9d56;}),_0xbbb134['set']({'label':m(_0x527b6f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3543ae}),_0x172c73['set']({'label':m(_0x527b6f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x554ef1}),_0xbbb134['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x172c73['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xbbb134['on']('execute',()=>this['fire']('execute','backward')),_0x172c73['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',_0x2a4b62['if']('_isStatusLabelVisible','ck-hidden',_0x3d3a7f=>!_0x3d3a7f)]},'children':[{'text':_0x2a4b62['to']('isNavigationMode',_0x56772e=>_0x56772e?m(_0x527b6f,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x527b6f,'Total')+':\x20')}]},{'text':_0x2a4b62['to']('_statusText')}]},new _0x25c8d1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xbbb134,_0x172c73]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0xed64d3{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x223d6a=this['editor']['editing']['view'];_0x223d6a['change'](_0x3c427c=>{for(const _0x4b6486 of _0x223d6a['document']['roots'])_0x3c427c['addClass'](ce,_0x4b6486);});}['hide'](){const _0x4cb144=this['editor']['editing']['view'];_0x4cb144['change'](_0x518e55=>{for(const _0x1d6df7 of _0x4cb144['document']['roots'])_0x518e55['removeClass'](ce,_0x1d6df7);});}}class w extends _0xed64d3{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x2da38b=this['editor'],_0x5556bd=_0x2da38b['plugins']['get'](d),_0x38e529=_0x2da38b['plugins']['get'](le);_0x2da38b['ui']['componentFactory']['add']('exitToEditing',_0x2a963a=>{const _0x30859d=new _0x43db63(_0x2a963a);return _0x30859d['set']({'label':m(_0x2a963a,'Back\x20to\x20editing'),'icon':_0x5c0204,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x30859d,'execute',()=>{_0x2da38b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x30859d;}),_0x2da38b['ui']['componentFactory']['add']('restoreRevision',_0x59a261=>{const _0x575a45=new _0x43db63(_0x59a261);return _0x575a45['set']({'label':m(_0x59a261,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x575a45['bind']('isEnabled')['to'](_0x2da38b['commands']['get']('restoreRevision')),this['listenTo'](_0x575a45,'execute',()=>_0x2da38b['execute']('restoreRevision')),_0x575a45;}),_0x2da38b['ui']['componentFactory']['add']('changesNavigation',_0x2d23e6=>{const _0x15a70c=new _i(_0x2d23e6),_0x477383=_0x2da38b['commands']['get']('showPreviousChange'),_0x1ca460=_0x2da38b['commands']['get']('showNextChange');return _0x15a70c['bind']('isBackwardNavigationEnabled')['to'](_0x477383,'isEnabled'),_0x15a70c['bind']('isForwardNavigationEnabled')['to'](_0x1ca460,'isEnabled'),_0x15a70c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5556bd),this['listenTo'](_0x15a70c,'execute',(_0x248582,_0x50a325)=>{_0x2da38b['execute']('forward'===_0x50a325?'showNextChange':'showPreviousChange');}),_0x15a70c;}),_0x38e529['show'](),_0x5556bd['on']('change:isReady',(_0x45111a,_0x54e9f8,_0x5767a9)=>{_0x5767a9?_0x38e529['hide']():_0x38e529['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x2a8d53,_0x39b8ac){super(_0x2a8d53,_0x39b8ac);const _0xee7985=this['bindTemplate'];this['set']({'label':m(_0x2a8d53,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2a8d53,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xee7985['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 _0x128fef=this['fieldView']['element'];this['_tooltipString']=_0x128fef['scrollWidth']>_0x128fef['clientWidth']&&_0x128fef['value']||'';}}class oi extends _0x49045a{constructor(_0x17de35,_0x1a1fca,_0x5f36a3){super(_0x17de35);const _0x596135=new _0x5d4899();_0x596135['set']({'content':_0x5ac541,'viewBox':'0\x200\x2011\x2010'});const _0x3b89d3=['ck','ck-revision-history-sidebar__revision-author'];_0x5f36a3&&_0x3b89d3['push']('ck-revision-history-sidebar__revision-author_creator');const _0x38e6d0=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x17de35,_0x5f36a3?'Revision\x20creator':'Revision\x20author')},'children':[_0x596135,_0x1a1fca['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3b89d3},'children':_0x38e6d0});}}function ni(_0x4c4a05,_0x20772b){const _0x4eac1b=_0x4c4a05['bindTemplate'],_0x33c5c8=_0x4c4a05['locale'],_0x1117d4=_0x3f5b17(_0x33c5c8);_0x1117d4['panelPosition']='sw';const _0x361b34=function(_0x58dfc3,_0xc050e7){const _0x3be657=function(_0x5dfabc,_0x42aa2e){const _0x465f40=_0x5dfabc['locale'],_0x51b7d7={'Compare\x20against\x20selected':m(_0x465f40,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x465f40,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x465f40,'Restore\x20this\x20revision')};return _0x42aa2e['map'](_0x4870fa=>{const _0x5e53b0=_0x51b7d7[_0x4870fa['name']];return _0x5e53b0&&_0x5e53b0!==_0x4870fa['name']&&(_0x4870fa['name']=_0x5e53b0),_0x4870fa;});}(_0x58dfc3,_0xc050e7),_0x26b320=new _0x1f0832();for(const _0x44faac of _0x3be657){const _0x298d76={'type':'button','model':new to({'label':_0x44faac['name'],'class':_0x44faac['class'],'withText':!0x0,'role':'menuitem','_action':_0x44faac['action']})};_0x298d76['model']['bind']('isEnabled')['to'](_0x58dfc3,'isActionsDropdownOpen',_0x24e440=>'function'!=typeof _0x44faac['isEnabled']||(!_0x24e440||_0x44faac['isEnabled'](_0x58dfc3))),_0x26b320['add'](_0x298d76);}return _0x26b320;}(_0x4c4a05,_0x20772b);return _0x4c4a05['bind']('isActionsDropdownOpen')['to'](_0x1117d4,'isOpen'),_0x1117d4['buttonView']['set']({'label':m(_0x33c5c8,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x42993c}),_0x1117d4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4eac1b['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4eac1b['to'](_0x2f6dce=>_0x2f6dce['stopPropagation']())}}),_0x1117d4['on']('execute',_0x2c44be=>{_0x4c4a05['isReady']&&'function'==typeof _0x2c44be['source']['_action']&&_0x2c44be['source']['_action'](_0x4c4a05);}),_0x405229(_0x1117d4,_0x361b34,{'role':'menu'}),_0x1117d4['listenTo'](_0x4c4a05,'change:isActionsDropdownOpen',(_0x4e40c0,_0x36d1ad,_0x236cb8)=>{if(_0x236cb8)for(const _0x26f14a of _0x1117d4['listView']['items']){const _0x3540d3=_0x26f14a['children']['first'],_0x5c833a=_0x20772b['find'](_0x2bcab9=>_0x2bcab9['action']===_0x3540d3['_action'])['isVisible'];_0x26f14a['isVisible']=void 0x0===_0x5c833a||_0x5c833a(_0x4c4a05);}}),_0x1117d4;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2a6970(_0x49045a){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3dcbf7,_0x457f87,_0x54d68b,_0x531958){super(_0x3dcbf7);const _0x270cb9=this['bindTemplate'],_0x8f655c=function(_0x164a36,_0x434c52){const _0x19e294=Array['from'](_0x434c52['authors'])['filter'](_0x201a39=>_0x201a39!=_0x434c52['creator']);return _0x434c52['creator']&&_0x19e294['unshift'](_0x434c52['creator']),_0x19e294['map'](_0x2149b1=>new oi(_0x164a36,_0x2149b1,_0x2149b1==_0x434c52['creator']));}(_0x3dcbf7,_0x457f87);this['id']=_0x457f87['id'],this['_revision']=_0x457f87,this['_requireRevisionName']=_0x531958,this['bind']('name','createdAt')['to'](_0x457f87),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4180ce=>{return _0x17bb29=_0x3dcbf7['uiLanguage'],(_0x4b6d7a=_0x4180ce)['toLocaleDateString'](_0x17bb29,{'month':'long','day':'numeric'})+',\x20'+_0x4b6d7a['toLocaleTimeString'](_0x17bb29,{'hour':'numeric','minute':'numeric'});var _0x17bb29,_0x4b6d7a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x3dcbf7,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2a3b4f=>_0x2a3b4f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x8bd7c6,_0x47f734)=>_0x8bd7c6&&_0x47f734),this['revisionActionsView']=_0x54d68b&&_0x54d68b['length']?ni(this,_0x54d68b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x270cb9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x270cb9['if']('isEnabled','ck-disabled',_0x13ac4f=>!_0x13ac4f),_0x270cb9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x270cb9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x270cb9['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':_0x270cb9['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':_0x8f655c}]},this['revisionActionsView']],'on':{'click':_0x270cb9['to'](_0x29b9c5=>{_0x29b9c5['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x400c7c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x400c7c,'change',()=>{this['_requireRevisionName']&&!_0x400c7c['value']||this['fire']('setName',{'id':this['id'],'name':_0x400c7c['value']}),_0x400c7c['value']||(_0x400c7c['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(_0x33d7d7,_0x31c13b){const _0x35efee=_0x2a4664['fromJSDate'](_0x33d7d7)['setLocale'](_0x31c13b),_0x3f10c4=_0x2a4664['local'](),_0x4c327f=_0x3f10c4['minus']({'days':0x1})['startOf']('day');let _0x5ee739,_0x4c00b5;return _0x35efee['hasSame'](_0x3f10c4,'day')?(_0x5ee739=_0x35efee['startOf']('day')['toJSDate'](),_0x4c00b5=_0x35efee['toRelativeCalendar']()):_0x35efee['hasSame'](_0x4c327f,'day')?(_0x5ee739=_0x4c327f['toJSDate'](),_0x4c00b5=_0x35efee['toRelativeCalendar']()):_0x35efee['hasSame'](_0x3f10c4,'week')?(_0x5ee739=_0x35efee['startOf']('week')['toJSDate'](),_0x4c00b5=_0x35efee['weekdayLong']||''):_0x35efee['hasSame'](_0x3f10c4,'year')?(_0x5ee739=_0x35efee['startOf']('month')['toJSDate'](),_0x4c00b5=_0x35efee['monthLong']||''):(_0x5ee739=_0x35efee['startOf']('year')['toJSDate'](),_0x4c00b5=String(_0x35efee['year'])),{'startDate':_0x5ee739,'localizedPeriodName':_0x4c00b5};}class mi extends _0x49045a{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x44f802,_0x26761b,_0x323799,_0x2f85f3){super(_0x44f802);const _0x190d10=vi(_0x26761b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x26761b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x323799,this['_requireRevisionName']=_0x2f85f3,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':_0x190d10}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xa316b4){const _0x1d387d=new ai(this['locale'],_0xa316b4,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1d387d);}['removeRevision'](_0xd0e5ae){const _0x3fa013=this['revisionViews']['find'](_0x25763e=>_0x25763e['id']===_0xd0e5ae['id']);this['revisionViews']['remove'](_0x3fa013);}}class as extends _0x49045a{constructor(_0x131e4c){super(_0x131e4c);const _0x507c84=new _0x5d4899();_0x507c84['content']=_0x27a9d6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x507c84,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x131e4c,'Revision\x20history')]}]});}}class di extends _0x49045a{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d5bec,_0xdad1a4,_0x4ec097,_0x41e694){super(_0x3d5bec);const _0x322c6d=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xdad1a4,this['_revisionActions']=_0x4ec097,this['_requireRevisionName']=_0x41e694,this['on']('select',(_0x441aaf,_0x388649)=>{this['fire']('revisionSelected',_0x388649);}),this['on']('setName',(_0x238c62,_0x106757)=>{this['fire']('revisionSetName',_0x106757);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3d5bec),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x322c6d['if']('isEnabled','ck-disabled',_0x3e9118=>!_0x3e9118)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x58a5fb of this['_revisions'])this['_addRevision'](_0x58a5fb);this['_revisions']['on']('add',(_0x4c442f,_0x511c06)=>{this['_addRevision'](_0x511c06);}),this['_revisions']['on']('remove',(_0x2ed4a9,_0x31ba04)=>{this['_removeRevision'](_0x31ba04);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4436b8=>_0x4436b8['revisionViews']['map'](_0x2a4e1d=>_0x2a4e1d))['flat']();}['selectRevision'](_0x411960){for(const _0x22b42f of this['revisionViews'])_0x411960&&_0x411960['id']===_0x22b42f['id']?_0x22b42f['select']():_0x22b42f['deselect']();}['highlightRevisions'](_0x1103f2){for(const _0x3e2dac of this['revisionViews'])_0x1103f2['some'](({id:_0x473783})=>_0x473783===_0x3e2dac['id'])?_0x3e2dac['highlight']():_0x3e2dac['unhighlight']();}['_addRevision'](_0x136f4c){const _0xfb38fd=vi(_0x136f4c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xc58535=this['timePeriodViews']['get'](0x0);_0xc58535&&_0xc58535['startDate']['getTime']()===_0xfb38fd['getTime']()||(_0xc58535=new mi(this['locale'],_0xfb38fd,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xc58535)),_0xc58535['addRevision'](_0x136f4c);}['_removeRevision'](_0x638abe){const _0xc38fa3=vi(_0x638abe['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xc38fa3)['removeRevision'](_0x638abe);}['_getTimePeriodViewByStartDate'](_0x13e994){return this['timePeriodViews']['find'](_0xa11adb=>_0xa11adb['startDate']['getTime']()===_0x13e994['getTime']());}}class g extends _0xed64d3{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x323555,_0x299885){super(_0x299885),this['sourceElement']=_0x323555,this['model']['document']['createRoot']();const _0x128027=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x128027);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x386c08,_0x17338a){const _0x1aa185=new this(_0x386c08,_0x17338a);return await _0x1aa185['initPlugins'](),await _0x1aa185['ui']['init'](_0x386c08),await _0x1aa185['data']['init'](_0x1aa185['config']['get']('initialData')||''),_0x1aa185['fire']('ready'),_0x1aa185;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x45244f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55abb8){function _0x18fb36(_0x408610){return _0x408610['map'](_0x38eb5d=>String['fromCharCode'](_0x38eb5d))['join']('');}super(_0x55abb8),this['result']='end',_0x55abb8[_0x18fb36([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18fb36([0x76,0x69,0x65,0x77])][_0x18fb36([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18fb36([0x61,0x75,0x74,0x6f]),_0x55abb8[_0x18fb36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x18fb36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18fb36([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x18fb36([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x18fb36([0x6f,0x6b])});}}class k extends _0x45244f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x5656e1){if(super(_0x5656e1),!this['editor']['config']['get']('revisionHistory'))throw new _0x4d9fd9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x169dce=>this['_showRevisionViewer']({..._0x169dce,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x193386=>this['_closeRevisionViewer'](_0x193386)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x8c2d12=>this['_restoreRevision'](_0x8c2d12)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2c0fe7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2c0fe7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x439277){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x439277);}['getRevision'](_0x53b0d3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x53b0d3);}['getRevisions'](_0x431107){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x431107||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x21689e=this['editor'],_0x2b1fd8=_0x15971f(_0x21689e,p),_0x458caf=_0x21689e['plugins']['get']('RevisionTracker'),_0x31d42e=_0x21689e['plugins']['get']('Users')['users'];return _0x2b1fd8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2b1fd8['lazyRoots'],(_0x2b1fd8['plugins']['push'](Rt,d,w,class extends _0x45244f{static get['requires'](){return[d,'Users'];}['init'](){const _0x3bfc8c=this['editor']['plugins']['get']('Users');for(const _0x511787 of _0x31d42e)_0x511787['isAnonymous']||_0x3bfc8c['getUser'](_0x511787['id'])||_0x3bfc8c['addUser'](_0x511787);const _0x1a717b=_0x458caf['repository']['getRevisions']();let _0x5695a1=null;const _0x2e8772=this['editor']['plugins']['get']('RevisionViewer');_0x2e8772['adapter']=_0x458caf['adapter'],_0x2e8772['bind']('isEnabled')['to'](_0x458caf),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x21689e,'isReadOnly',_0x5a7552=>!_0x5a7552);for(const _0x122781 of _0x1a717b){const _0x2a65ef=null===_0x122781['creator'];if(_0x2a65ef&&_0x122781['toVersion']===_0x122781['fromVersion'])continue;const _0xd207e7=_0x122781['toJSON']();_0x2e8772['addRevisionData'](_0xd207e7,(_0x1359c1,_0x3f65fc,_0x1fd82)=>{if(_0x2a65ef){if(_0x5695a1)_0x5695a1['_update'](_0x1359c1,_0x3f65fc);else{if(!_0x3f65fc){const _0x493f25=_0x1fd82['toJSON']();_0x493f25['id']=_0x5b3171(),_0x458caf['saveRevision'](_0x493f25,_0x1fd82['toVersion'])['then'](_0xeead56=>{_0x5695a1=_0xeead56;});}}}else _0x122781['_update'](_0x1359c1,_0x3f65fc);});}}},g),_0x2b1fd8);}['_enhanceShowRevisionViewerCallback'](){const _0x4c9a04=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4979a2=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x45febc=this['editor']['plugins']['get']('Autosave');await _0x45febc['save']();}else await _0x4979a2['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2eb7f0=this['editor']['plugins']['get']('Dialog');_0x2eb7f0['isOpen']&&_0x2eb7f0['hide']();}const _0x2ad70f=this['_getRevisionViewerEditorConfig']();return _0x4c9a04(_0x2ad70f)['then'](_0x384a4d=>{return(this['_viewerEditor']=_0x384a4d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x384a4d;})['catch'](_0x2e33af=>(console['error'](_0x2e33af),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2bcc9d=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'](),_0x2bcc9d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5a808c=this['editor']['plugins']['get']('Annotations');_0x5a808c['refreshVisibility'](),_0x5a808c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x597666){const _0x2fb59d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x33cd1c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x10d1a2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x10d1a2,_0x597666)['then'](_0x3d789e=>(_0x33cd1c['style']['display']='block',_0x2fb59d['style']['display']='none',_0x3d789e));}['_closeRevisionViewer'](_0x12ca69){const _0x2da433=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2da433['style']['display']='',_0x12ca69['destroy']();}async['_restoreRevision'](_0x14efcd){const _0x84dc19=this['editor'],_0x548915=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4f1537=_0x84dc19['plugins']['get']('RevisionTracker'),_0x12d2ae=_0x548915['repository']['getRevision'](_0x14efcd);let _0x24ffd3,_0x116786,_0x38ccbf;try{_0x24ffd3=await _0x548915['getRevisionData'](_0x12d2ae),_0x116786=await _0x548915['getRevisionRootsAttributes'](_0x12d2ae);}catch(_0x7074e1){return void console['error'](_0x7074e1);}_0x84dc19['model']['change'](_0x29ae43=>{for(const _0x557a9f of Array['from'](_0x84dc19['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x29ae43['removeMarker'](_0x557a9f);}),_0x548915['isReady']=!0x1,_0x84dc19['model']['enqueueChange'](_0x529675=>{_0x529675['setSelection'](null),_0x529675['removeSelectionAttribute'](_0x84dc19['model']['document']['selection']['getAttributeKeys']());const _0x15c9a8=Object['keys'](_0x24ffd3);for(const _0x1af8c5 of _0x84dc19['model']['document']['roots'])'$graveyard'!=_0x1af8c5['rootName']&&_0x1af8c5['isAttached']()&&!_0x15c9a8['includes'](_0x1af8c5['rootName'])&&_0x529675['detachRoot'](_0x1af8c5);for(const _0x554080 of _0x15c9a8){let _0x7cc0fb=_0x84dc19['model']['document']['getRoot'](_0x554080);_0x7cc0fb&&_0x7cc0fb['isAttached']()||(_0x7cc0fb=_0x529675['addRoot'](_0x554080));const _0x3f612f=_0x116786[_0x554080],_0x19950b=Object['keys'](_0x3f612f),_0x32237e=_0x24ffd3[_0x554080];for(const _0x1ef992 of _0x7cc0fb['getAttributeKeys']())_0x19950b['includes'](_0x1ef992)||_0x529675['removeAttribute'](_0x1ef992,_0x7cc0fb);for(const _0x5379ff of _0x19950b)_0x529675['setAttribute'](_0x5379ff,_0x116786[_0x554080][_0x5379ff],_0x7cc0fb);_0x529675['remove'](_0x529675['createRangeIn'](_0x7cc0fb)),_0x529675['insert'](_0x84dc19['data']['parse'](_0x32237e,_0x7cc0fb),_0x7cc0fb,0x0);}});const _0x44fd21=m(_0x84dc19['locale'],'Restored');if(_0x12d2ae['name'])_0x38ccbf=-0x1==_0x12d2ae['name']['indexOf'](_0x44fd21)?_0x44fd21+':\x20'+_0x12d2ae['name']:_0x12d2ae['name'];else _0x38ccbf=_0x44fd21+':\x20'+(_0x12d2ae['createdAt']['toLocaleDateString'](_0x84dc19['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x12d2ae['createdAt']['toLocaleTimeString'](_0x84dc19['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4f1537['saveRevision']({'name':_0x38ccbf}),_0x548915['isReady']=!0x0,_0x84dc19['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};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x344060){super(_0x344060),this['_revisionViewer']=_0x344060['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2f97ae=this['_revisionsRepository']['_revisions'],_0x2cae8b=this['_createRevisionActions'](),_0x7691a7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2f97ae,_0x2cae8b,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',(_0x37b8b9,_0x14db5b)=>{_0x14db5b['revisionViews']['on']('add',(_0x4d1e33,_0x12f4cb)=>{_0x12f4cb['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)),_0x7691a7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x37eddf=this['_revisionsRepository']['getRevision'](0x0);if(_0x37eddf){const _0x2195a6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x37eddf['id']);this['_revisionViewer']['compare'](_0x37eddf,_0x2195a6);}}['_handleRevisionSelected'](_0x2ed47e,_0x4fa137){const _0x29bea6=this['_revisionsRepository']['getRevision'](_0x4fa137['id']),_0x3e8aac=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x29bea6['id']);this['_revisionViewer']['compare'](_0x29bea6,_0x3e8aac);}['_handleRevisionSetName'](_0x36c8b3,_0x4ba86d){this['_revisionsRepository']['getRevision'](_0x4ba86d['id'])['setName'](_0x4ba86d['name']);}['_handleDiffChange'](_0x2c969c,_0x988ada,_0x4c4d1f){const _0x598d6d=this['_revisionsRepository']['getRevisionsInDiff'](_0x4c4d1f);_0x598d6d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x598d6d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x598d6d[0x0]));}['_createRevisionActions'](){const _0x2347ba=this['editor'],_0x3acea3=g['availableRevisionActions'],_0x2f30b5=_0x2347ba['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2f30b5['length'])return _0x2f30b5['map'](_0x3a61fb=>{const _0x139c1f='string'==typeof _0x3a61fb?Object['assign']({},_0x3acea3[_0x3a61fb]):_0x3a61fb;return _0x139c1f['action']=_0x139c1f['action']['bind'](this,_0x2347ba),_0x139c1f['isVisible']&&(_0x139c1f['isVisible']=_0x139c1f['isVisible']['bind'](this,_0x2347ba)),_0x139c1f;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2a9c23},_0x5447f8)=>{const _0x4b5d5c=_0x2a9c23['get'](d),_0x465032=_0x4b5d5c['repository'];let _0x1d260a=_0x4b5d5c['diff']['newRevisionId'],_0x1e6148=_0x5447f8['id'];_0x465032['getIndex'](_0x1d260a)>_0x465032['getIndex'](_0x1e6148)&&([_0x1d260a,_0x1e6148]=[_0x1e6148,_0x1d260a]),_0x4b5d5c['compare'](_0x1d260a,_0x1e6148);},'isVisible':({plugins:_0x146186},_0xc8628e)=>{const _0x3c25d2=_0x146186['get'](d);return!(_0x3c25d2['repository']['getRevisionsInDiff'](_0x3c25d2['diff'])['length']>0x2)&&!_0xc8628e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xf86a79,{id:_0x3252ac})=>{_0xf86a79['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3252ac);},'isVisible':({plugins:_0x1847ee},_0x2b51aa)=>!!_0x1847ee['get'](d)['repository']['getLaterVisibleRevision'](_0x2b51aa['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4c6730},{id:_0x595977,revisionNameView:_0x3ed577})=>{const _0x17e027=_0x4c6730['get'](d),_0x25da0b=_0x17e027['repository']['getEarlierVisibleRevision'](_0x595977);_0x17e027['compare'](_0x595977,_0x25da0b),_0x3ed577['focus'](),_0x3ed577['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4624a0,_0x55331b){super(_0x4624a0),this['_view']=_0x55331b,this['_toolbarConfig']=ot(_0x4624a0['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3326c3){const _0x3906cc=this['editor'],_0x5cb50a=this['view'],_0x1494f8=_0x3906cc['editing']['view'],_0x241545=_0x5cb50a['editable'],_0x4ff140=_0x1494f8['document']['getRoot']();_0x241545['name']=_0x4ff140['rootName'],_0x5cb50a['render']();const _0x4bee85=_0x241545['element'];this['setEditableElement'](_0x241545['name'],_0x4bee85),_0x5cb50a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1494f8['attachDomRoot'](_0x4bee85),this['_elementReplacer']['replace'](_0x3326c3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4f103a=this['view'],_0x37b490=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x37b490['detachDomRoot'](_0x4f103a['editable']['name']),_0x4f103a['destroy']();}['_initToolbar'](){const _0x5bb674=this['view'];_0x5bb674['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5bb674['stickyPanel']['limiterElement']=_0x5bb674['element'],_0x5bb674['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x31aec3})=>_0x31aec3),_0x5bb674['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5bb674['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x113b61,_0x347414,_0x202436={}){super(_0x113b61),this['stickyPanel']=new lt(_0x113b61),this['toolbar']=new nt(_0x113b61,{'shouldGroupWhenFull':_0x202436['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x113b61,_0x347414);}['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(_0x2a67e6,_0x10b8b1){super(_0x10b8b1),this['sourceElement']=_0x2a67e6,this['model']['document']['createRoot']();const _0x53333f=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x53333f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3c57a7,_0x4f2967){const _0x11c7d7=new this(_0x3c57a7,_0x4f2967);return await _0x11c7d7['initPlugins'](),await _0x11c7d7['ui']['init'](_0x3c57a7),await _0x11c7d7['data']['init'](_0x11c7d7['config']['get']('initialData')||''),_0x11c7d7['fire']('ready'),_0x11c7d7;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0xed64d3{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b096c){function _0x4280f6(_0x3a3d05){return _0x3a3d05['map'](_0xcb9b1c=>String['fromCharCode'](_0xcb9b1c))['join']('');}super(_0x5b096c),this['result']='end',_0x5b096c[_0x4280f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4280f6([0x76,0x69,0x65,0x77])][_0x4280f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4280f6([0x61,0x75,0x74,0x6f]),_0x5b096c[_0x4280f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4280f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4280f6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4280f6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4280f6([0x6f,0x6b])});}}class k extends _0xed64d3{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x53dc84){if(super(_0x53dc84),!this['editor']['config']['get']('revisionHistory'))throw new _0x754647('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2f4ea1=>this['_showRevisionViewer']({..._0x2f4ea1,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2f7cb6=>this['_closeRevisionViewer'](_0x2f7cb6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1ad91e=>this['_restoreRevision'](_0x1ad91e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4eed96){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4eed96;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2d7bb2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2d7bb2);}['getRevision'](_0x2dcf4f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2dcf4f);}['getRevisions'](_0x2dbc9a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2dbc9a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4c6ee8=this['editor'],_0x4fdccc=_0x2bd90d(_0x4c6ee8,p),_0x4e6ff8=_0x4c6ee8['plugins']['get']('RevisionTracker'),_0x4d2783=_0x4c6ee8['plugins']['get']('Users')['users'];return _0x4fdccc['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4fdccc['lazyRoots'],(_0x4fdccc['plugins']['push'](Rt,d,w,class extends _0xed64d3{static get['requires'](){return[d,'Users'];}['init'](){const _0x28e4f0=this['editor']['plugins']['get']('Users');for(const _0x4daa90 of _0x4d2783)_0x4daa90['isAnonymous']||_0x28e4f0['getUser'](_0x4daa90['id'])||_0x28e4f0['addUser'](_0x4daa90);const _0x2205bf=_0x4e6ff8['repository']['getRevisions']();let _0x53e82a=null;const _0x4c535e=this['editor']['plugins']['get']('RevisionViewer');_0x4c535e['adapter']=_0x4e6ff8['adapter'],_0x4c535e['bind']('isEnabled')['to'](_0x4e6ff8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4c6ee8,'isReadOnly',_0xf22748=>!_0xf22748);for(const _0x20b0cf of _0x2205bf){const _0x2657ef=null===_0x20b0cf['creator'];if(_0x2657ef&&_0x20b0cf['toVersion']===_0x20b0cf['fromVersion'])continue;const _0x440f06=_0x20b0cf['toJSON']();_0x4c535e['addRevisionData'](_0x440f06,(_0x2f61ed,_0x56c445,_0x18ddd9)=>{if(_0x2657ef){if(_0x53e82a)_0x53e82a['_update'](_0x2f61ed,_0x56c445);else{if(!_0x56c445){const _0x167ff0=_0x18ddd9['toJSON']();_0x167ff0['id']=_0xeab9bf(),_0x4e6ff8['saveRevision'](_0x167ff0,_0x18ddd9['toVersion'])['then'](_0x1d0920=>{_0x53e82a=_0x1d0920;});}}}else _0x20b0cf['_update'](_0x2f61ed,_0x56c445);});}}},g),_0x4fdccc);}['_enhanceShowRevisionViewerCallback'](){const _0x25501a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1cf76d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x2cedd4=this['editor']['plugins']['get']('Autosave');await _0x2cedd4['save']();}else await _0x1cf76d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3e7793=this['editor']['plugins']['get']('Dialog');_0x3e7793['isOpen']&&_0x3e7793['hide']();}const _0x4b30cf=this['_getRevisionViewerEditorConfig']();return _0x25501a(_0x4b30cf)['then'](_0x1a66e0=>{return(this['_viewerEditor']=_0x1a66e0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1a66e0;})['catch'](_0x256a39=>(console['error'](_0x256a39),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x42c4a4=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'](),_0x42c4a4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x22ba9c=this['editor']['plugins']['get']('Annotations');_0x22ba9c['refreshVisibility'](),_0x22ba9c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x21a87e){const _0x7419be=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3dd437=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x54820b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x54820b,_0x21a87e)['then'](_0x4d81f3=>(_0x3dd437['style']['display']='block',_0x7419be['style']['display']='none',_0x4d81f3));}['_closeRevisionViewer'](_0x4900ef){const _0x3db98d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3db98d['style']['display']='',_0x4900ef['destroy']();}async['_restoreRevision'](_0x482516){const _0x561341=this['editor'],_0x52437f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4d72cd=_0x561341['plugins']['get']('RevisionTracker'),_0x295a63=_0x52437f['repository']['getRevision'](_0x482516);let _0x35d49c,_0x1bcc35,_0x24f3b0;try{_0x35d49c=await _0x52437f['getRevisionData'](_0x295a63),_0x1bcc35=await _0x52437f['getRevisionRootsAttributes'](_0x295a63);}catch(_0x457a1b){return void console['error'](_0x457a1b);}_0x561341['model']['change'](_0x2c1aac=>{for(const _0x288e98 of Array['from'](_0x561341['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2c1aac['removeMarker'](_0x288e98);}),_0x52437f['isReady']=!0x1,_0x561341['model']['enqueueChange'](_0x7f367b=>{_0x7f367b['setSelection'](null),_0x7f367b['removeSelectionAttribute'](_0x561341['model']['document']['selection']['getAttributeKeys']());const _0x10182e=Object['keys'](_0x35d49c);for(const _0x480f6d of _0x561341['model']['document']['roots'])'$graveyard'!=_0x480f6d['rootName']&&_0x480f6d['isAttached']()&&!_0x10182e['includes'](_0x480f6d['rootName'])&&_0x7f367b['detachRoot'](_0x480f6d);for(const _0x34a52c of _0x10182e){let _0x42f51a=_0x561341['model']['document']['getRoot'](_0x34a52c);_0x42f51a&&_0x42f51a['isAttached']()||(_0x42f51a=_0x7f367b['addRoot'](_0x34a52c));const _0x4de8e3=_0x1bcc35[_0x34a52c],_0x59f184=Object['keys'](_0x4de8e3),_0x8afc82=_0x35d49c[_0x34a52c];for(const _0x1879ef of _0x42f51a['getAttributeKeys']())_0x59f184['includes'](_0x1879ef)||_0x7f367b['removeAttribute'](_0x1879ef,_0x42f51a);for(const _0x34961a of _0x59f184)_0x7f367b['setAttribute'](_0x34961a,_0x1bcc35[_0x34a52c][_0x34961a],_0x42f51a);_0x7f367b['remove'](_0x7f367b['createRangeIn'](_0x42f51a)),_0x7f367b['insert'](_0x561341['data']['parse'](_0x8afc82,_0x42f51a),_0x42f51a,0x0);}});const _0x354496=m(_0x561341['locale'],'Restored');if(_0x295a63['name'])_0x24f3b0=-0x1==_0x295a63['name']['indexOf'](_0x354496)?_0x354496+':\x20'+_0x295a63['name']:_0x295a63['name'];else _0x24f3b0=_0x354496+':\x20'+(_0x295a63['createdAt']['toLocaleDateString'](_0x561341['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x295a63['createdAt']['toLocaleTimeString'](_0x561341['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4d72cd['saveRevision']({'name':_0x24f3b0}),_0x52437f['isReady']=!0x0,_0x561341['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};
|