@ckeditor/ckeditor5-revision-history 44.0.0-alpha.7 → 44.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +7 -7
- package/README.md +13 -10
- 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 +8 -8
- 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
|
-
_0x5c7d88(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x419778){super(),this['id']=_0x419778['id']||_0x4dce4d(),this['creator']=_0x419778['creator']||null,this['authors']=_0x419778['authors']||[],this['diffData']=_0x419778['diffData']||null,this['toVersion']=_0x419778['toVersion']||0x0,this['fromVersion']=_0x419778['fromVersion']||0x0,this['set']('name',_0x419778['name']||''),this['set']('createdAt',_0x419778['createdAt']||new Date()),this['set']('attributes',_0x419778['attributes']||{});}['setName'](_0x1e9d96){this['_update']({'name':_0x1e9d96});}['setAttribute'](_0x4c8012,_0x144a76){const _0x33fd19=_0x295472(this['attributes']);_0x8cbf8d(_0x33fd19,_0x4c8012,_0x144a76),this['_update']({'attributes':_0x33fd19});}['removeAttribute'](_0x524985){const _0x373fb5=_0x295472(this['attributes']);_0x222f53(_0x373fb5,_0x524985),this['_update']({'attributes':_0x373fb5});}['_update'](_0x50adb9,_0x4a7be8=!0x1){let _0x54e226=!0x1;const _0x40973c={'id':this['id']},_0x4f02ce=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xc9892f of _0x4f02ce){const _0x38850b=_0x50adb9[_0xc9892f];void 0x0!==_0x38850b&&_0x38850b!==this[_0xc9892f]&&(this[_0xc9892f]=_0x38850b,_0x40973c[_0xc9892f]=_0x38850b,_0x54e226=!0x0);}_0x54e226&&(_0x40973c['authors']&&(_0x40973c['authorsIds']=_0x40973c['authors']['map'](_0x1ea1a2=>_0x1ea1a2['id']),delete _0x40973c['authors']),this['fire']('_update',_0x40973c,_0x4a7be8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x19791a=>_0x19791a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x24aabd{['_revisions'];static get['requires'](){return[_0x4943c5];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xa1d20c){super(_0xa1d20c),this['_revisions']=new _0x2ad968();}['afterInit'](){!async function(_0x5340a2){const _0x464530=_0x3ad719([0x36,0x69,0x38,0x32,0x59,0x67,0x51,0x41,0x47,0x31,0x70,0x6a,0x35,0x48,0x6d,0x37,0x57,0x7a,0x50,0x76,0x44,0x5a,0x63,0x45,0x6b,0x79,0x73,0x33,0x4e,0x72,0x46,0x64,0x55,0x39,0x6f,0x77,0x30,0x62,0x34,0x61,0x4d,0x4b,0x6c,0x56,0x58,0x4f,0x4c,0x49,0x65,0x68,0x75,0x43,0x53,0x6e,0x66,0x71,0x4a,0x52,0x78,0x74,0x54,0x42]),_0x3bb680=0xeb829,_0x2e7537=0x7d72a7d8,_0x7c16ea=0x7d75ffc8^_0x2e7537,_0x53780f=window[_0x3ad719([0x44,0x61,0x74,0x65])][_0x3ad719([0x6e,0x6f,0x77])](),_0x9e3d64=_0x5340a2[_0x3ad719([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a878b=new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546cc6=>{_0x9e3d64[_0x3ad719([0x6f,0x6e,0x63,0x65])](_0x3ad719([0x72,0x65,0x61,0x64,0x79]),_0x546cc6);}),_0x1c9644={[_0x3ad719([0x6b,0x74,0x79])]:_0x3ad719([0x45,0x43]),[_0x3ad719([0x75,0x73,0x65])]:_0x3ad719([0x73,0x69,0x67]),[_0x3ad719([0x63,0x72,0x76])]:_0x3ad719([0x50,0x2d,0x32,0x35,0x36]),[_0x3ad719([0x78])]:_0x3ad719([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]),[_0x3ad719([0x79])]:_0x3ad719([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]),[_0x3ad719([0x61,0x6c,0x67])]:_0x3ad719([0x45,0x53,0x32,0x35,0x36])},_0x3c14c5=_0x9e3d64[_0x3ad719([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ad719([0x67,0x65,0x74])](_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cfcf4(){let _0x45d878,_0x4850af=null,_0x23882f=null;try{if(_0x3c14c5==_0x3ad719([0x47,0x50,0x4c]))return _0x3ad719([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45d878=_0x36fe8e(),!_0x45d878)return _0x3ad719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45d878[_0x3ad719([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23882f=_0x914192(_0x45d878[_0x3ad719([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45d878[_0x3ad719([0x6a,0x74,0x69])])),await _0x3e43f8()?_0x194bb2()?_0x124c20()?_0x3ad719([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x113eae()?(_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad719([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4850af=_0x3b4a67(_0x3ad719([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad719([0x74,0x72,0x69,0x61,0x6c])&&(_0x4850af=_0x3b4a67(_0x3ad719([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad719([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4850af=_0x3b4a67(_0x3ad719([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x64c4a8()):_0x3ad719([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ad719([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ad719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x27fe0e){return _0x3ad719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x124c20(){const _0x333b1a=[_0x3ad719([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ad719([0x74,0x72,0x69,0x61,0x6c])][_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53780f/0x3e8:0xe10*_0x7c16ea;return _0x45d878[_0x3ad719([0x65,0x78,0x70])]<_0x333b1a;}function _0x194bb2(){const _0x5943e8=_0x45d878[_0x3ad719([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5943e8&&(!!_0x5943e8[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x2a]))||(!!_0x5943e8[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x52,0x48]))||!(!_0x5943e8[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x52,0x52,0x48]))||!_0x90a7f3())));}function _0x113eae(){const _0x495904=_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x495904||0x0==_0x495904[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ae30a}=new URL(window[_0x3ad719([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x495904[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ae30a))return!0x0;const _0x247f55=_0x3ae30a[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e]));return _0x495904[_0x3ad719([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d884e=>_0x5d884e[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x2a])))[_0x3ad719([0x6d,0x61,0x70])](_0x271f71=>_0x271f71[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e])))[_0x3ad719([0x73,0x6f,0x6d,0x65])](_0x36fa03=>_0x247f55[_0x3ad719([0x65,0x76,0x65,0x72,0x79])]((_0x1957cb,_0x1ffe7f)=>_0x36fa03[_0x1ffe7f]===_0x1957cb||_0x36fa03[_0x1ffe7f]===_0x3ad719([0x2a])));}function _0x64c4a8(){return _0x4850af&&_0x23882f?new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf31d60,_0x2f3b48)=>{_0x4850af[_0x3ad719([0x74,0x68,0x65,0x6e])](_0xf31d60,_0x2f3b48),_0x23882f[_0x3ad719([0x74,0x68,0x65,0x6e])](_0xa9e8e7=>{_0xa9e8e7!=_0x3ad719([0x56,0x61,0x6c,0x69,0x64])&&_0xf31d60(_0xa9e8e7);},_0x2f3b48);}):_0x4850af||_0x23882f||_0x3ad719([0x56,0x61,0x6c,0x69,0x64]);}}function _0x914192(_0x28296f,_0x171217){return new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46b17a=>{if(_0x82c58f())return _0x46b17a(_0x3ad719([0x56,0x61,0x6c,0x69,0x64]));_0x3c0545(),_0x9e3d64[_0x3ad719([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ad719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27bb41=!0x1;const _0x4ea5ca=_0x4dce4d();function _0x54eeaf(_0xde3533){return!!_0xde3533&&(typeof _0xde3533===_0x3ad719([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xde3533===_0x3ad719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xde3533[_0x3ad719([0x74,0x68,0x65,0x6e])]===_0x3ad719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xde3533[_0x3ad719([0x63,0x61,0x74,0x63,0x68])]===_0x3ad719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c9605(_0x3ff4b8){_0x2c73fa(_0x3ff4b8)[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x1dae87=>{if(!_0x1dae87||_0x1dae87[_0x3ad719([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ad719([0x6f,0x6b]))return _0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3173fe(_0xc42e86(_0x4ea5ca+_0x171217))!=_0x1dae87[_0x3ad719([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ad719([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x44c666=>(_0x3b0c74(),_0x44c666),()=>{const _0x4d334b=_0x5e1f60();return null==_0x4d334b?(_0x3b0c74(),_0x3ad719([0x56,0x61,0x6c,0x69,0x64])):_0x3ad719(_0x53780f-_0x4d334b>(0x597e23d8^_0x2e7537)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x46b17a)[_0x3ad719([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46b17a(_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47a8e0=0x7d444958^_0x2e7537;function _0x3b0c74(){const _0x4ad696=_0x3ad719([0x6c,0x6c,0x63,0x74,0x2d])+_0x3173fe(_0xc42e86(_0x28296f)),_0x29b374=_0x343095(_0x3173fe(window[_0x3ad719([0x4d,0x61,0x74,0x68])][_0x3ad719([0x63,0x65,0x69,0x6c])](_0x53780f/_0x47a8e0)));window[_0x3ad719([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ad719([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ad696,_0x29b374);}function _0x5e1f60(){const _0x461d7e=_0x3ad719([0x6c,0x6c,0x63,0x74,0x2d])+_0x3173fe(_0xc42e86(_0x28296f)),_0x59d759=window[_0x3ad719([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ad719([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x461d7e);return _0x59d759?window[_0x3ad719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x343095(_0x59d759),0x10)*_0x47a8e0:null;}function _0x2c73fa(_0x310102){return new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50619e,_0x263214)=>{_0x310102[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x50619e,_0x263214),window[_0x3ad719([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x263214,0x7d737318^_0x2e7537);});}}_0x9e3d64[_0x3ad719([0x6f,0x6e])](_0x3ad719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x467090,_0xd0ec25)=>{if(_0xd0ec25[0x0]!=_0x28296f)return _0x46b17a(_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd0ec25[0x1]={..._0xd0ec25[0x1],[_0x3ad719([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ea5ca};},{[_0x3ad719([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ad719([0x68,0x69,0x67,0x68])}),_0x9e3d64[_0x3ad719([0x6f,0x6e])](_0x3ad719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19e3b7=>{_0x54eeaf(_0x19e3b7[_0x3ad719([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27bb41=!0x0,_0x4c9605(_0x19e3b7[_0x3ad719([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ad719([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ad719([0x6c,0x6f,0x77])}),_0x3a878b[_0x3ad719([0x74,0x68,0x65,0x6e])](()=>{_0x27bb41||_0x46b17a(_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x82c58f(){return _0x9e3d64[_0x3ad719([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ad719([0x76,0x69,0x65,0x77])][_0x3ad719([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ad719([0x61,0x75,0x74,0x6f]);}function _0x3c0545(){_0x9e3d64[_0x3ad719([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ad719([0x76,0x69,0x65,0x77])][_0x3ad719([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ad719([0x61,0x75,0x74,0x6f]);}}function _0x3b4a67(_0x26b156){const _0x4fa974=[new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513be9=>setTimeout(_0x513be9,0x7d7b9914^_0x2e7537)),_0x3a878b[_0x3ad719([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55141b=>{const _0xfb3db7=0x7d72a7df^_0x2e7537,_0x160a88=_0x5340a2[_0x3ad719([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1597c2(){_0x160a88[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xfb3db7&&_0x55141b();}_0x1597c2(),_0x160a88[_0x3ad719([0x6f,0x6e])](_0x3ad719([0x61,0x64,0x64]),_0x1597c2);})),new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c705=>{function _0x271cd5(){for(const _0x103f6e in window)if(window[_0x3ad719([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3ad719([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x103f6e))&&window[_0x103f6e]==_0x3bb680)return _0x26c705();_0x9e3d64[_0x3ad719([0x73,0x74,0x61,0x74,0x65])]!=_0x3ad719([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3ad719([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x271cd5,0x7d72b450^_0x2e7537);}_0x57b27f(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x271cd5();})];return window[_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ad719([0x72,0x61,0x63,0x65])](_0x4fa974)[_0x3ad719([0x74,0x68,0x65,0x6e])](()=>_0x26b156);}async function _0x3c9295(){if(await _0x3a878b,_0x57b27f(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x33f97f=_0x5340a2[_0x3ad719([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3b7aea=_0x5340a2[_0x3ad719([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])](_0x33f97f[_0x3ad719([0x69,0x64])]),_0x538961=_0x55d28e(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x538961[_0x3ad719([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x33f97f['id'],_0x3b7aea?_0x3b7aea['id']:null,!0x0),_0x538961[_0x3ad719([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x538961[_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x538961[_0x3ad719([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5858e7,void(_0x538961[_0x3ad719([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5858e7);}if(_0x57b27f(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5314ba=_0x55d28e(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5314ba[_0x3ad719([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5314ba[_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5314ba[_0x3ad719([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5858e7,_0x5314ba[_0x3ad719([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5858e7;}_0x9e3d64[_0x3ad719([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ad719([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5858e7,_0x9e3d64[_0x3ad719([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ad719([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5858e7,_0x9e3d64[_0x3ad719([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ad719([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x90a7f3(){return _0x57b27f(_0x3ad719([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x55d28e(_0x3ad719([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ad719([0x73,0x74,0x61,0x74,0x65])]==_0x3ad719([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ab29c(_0x7f47a){const _0x6b9d8d=_0x1ecb84();_0x9e3d64[_0x6b9d8d]=_0x3ad719([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])+_0x7f47a,_0x7f47a[_0x3ad719([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3ad719([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1ecb84()]=_0x3bb680),_0x7f47a!=_0x3ad719([0x56,0x61,0x6c,0x69,0x64])&&_0x3c9295();}function _0x1ecb84(){const _0x324195=window[_0x3ad719([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ad719([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ad719([0x6e,0x6f,0x77])]())[_0x3ad719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ad719([0x2e]),'');let _0x366eb3=_0x3ad719([0x69]);for(let _0x3a6e50=0x0;_0x3a6e50<_0x324195[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a6e50+=0x2){let _0x5bfec0=window[_0x3ad719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x324195[_0x3ad719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6e50,_0x3a6e50+0x2));_0x5bfec0>=_0x464530[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bfec0-=_0x464530[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x366eb3+=_0x464530[_0x5bfec0];}return _0x366eb3;}function _0x36fe8e(){const _0x41017e=_0x3c14c5[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e]));if(0x3!=_0x41017e[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x489464(_0x41017e[0x1]);function _0x489464(_0x436751){const _0x2450c7=_0x355f1f(_0x436751);return _0x2450c7&&_0x4bd888()?_0x2450c7:null;function _0x4bd888(){const _0x49bb6c=_0x2450c7[_0x3ad719([0x6a,0x74,0x69])],_0x2a1123=window[_0x3ad719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49bb6c[_0x3ad719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49bb6c[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b7d3a={..._0x2450c7,[_0x3ad719([0x6a,0x74,0x69])]:_0x49bb6c[_0x3ad719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49bb6c[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b7d3a[_0x3ad719([0x76,0x63])],_0xc42e86(_0x3b7d3a)==_0x2a1123;}}}async function _0x3e43f8(){let _0x4a5957=!0x0;try{const _0x50a9d7=_0x3c14c5[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e])),[_0x3235c7,_0x91a284,_0x5b6fa8]=_0x50a9d7;return _0x41b661(_0x3235c7),await _0x126fae(_0x3235c7,_0x91a284,_0x5b6fa8),_0x4a5957;}catch(_0x15a9f7){return!0x1;}function _0x41b661(_0xcdd0e5){const _0x5dadb4=_0x355f1f(_0xcdd0e5);_0x5dadb4&&_0x5dadb4[_0x3ad719([0x61,0x6c,0x67])]==_0x3ad719([0x45,0x53,0x32,0x35,0x36])||(_0x4a5957=!0x1);}async function _0x126fae(_0x34e43e,_0x5cec72,_0x2e0af0){const _0x54203e=window[_0x3ad719([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ad719([0x66,0x72,0x6f,0x6d])](_0x38a00d(_0x2e0af0),_0x34559e=>_0x34559e[_0x3ad719([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x98e63a=new window[(_0x3ad719([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ad719([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34e43e+_0x3ad719([0x2e])+_0x5cec72),_0x4f12b8=window[_0x3ad719([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ad719([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f12b8)return;const _0x4f57aa=await _0x4f12b8[_0x3ad719([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ad719([0x6a,0x77,0x6b]),_0x1c9644,{[_0x3ad719([0x6e,0x61,0x6d,0x65])]:_0x3ad719([0x45,0x43,0x44,0x53,0x41]),[_0x3ad719([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ad719([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ad719([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f12b8[_0x3ad719([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ad719([0x6e,0x61,0x6d,0x65])]:_0x3ad719([0x45,0x43,0x44,0x53,0x41]),[_0x3ad719([0x68,0x61,0x73,0x68])]:{[_0x3ad719([0x6e,0x61,0x6d,0x65])]:_0x3ad719([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f57aa,_0x54203e,_0x98e63a)||(_0x4a5957=!0x1);}}function _0x355f1f(_0x3842c4){return _0x3842c4[_0x3ad719([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ad719([0x65,0x79]))?JSON[_0x3ad719([0x70,0x61,0x72,0x73,0x65])](_0x38a00d(_0x3842c4)):null;}function _0x38a00d(_0x57205a){return window[_0x3ad719([0x61,0x74,0x6f,0x62])](_0x57205a[_0x3ad719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ad719([0x2b]))[_0x3ad719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ad719([0x2f])));}function _0xc42e86(_0xe12558){let _0x1f90a6=0x1505;function _0x185fd4(_0x4c4d6e){for(let _0x34aeca=0x0;_0x34aeca<_0x4c4d6e[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34aeca++){const _0x48680c=_0x4c4d6e[_0x3ad719([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34aeca);_0x1f90a6=(_0x1f90a6<<0x5)+_0x1f90a6+_0x48680c,_0x1f90a6&=_0x1f90a6;}}function _0x5e3522(_0x2519c0){Array[_0x3ad719([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2519c0)?_0x2519c0[_0x3ad719([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e3522):_0x2519c0&&typeof _0x2519c0==_0x3ad719([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ad719([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2519c0)[_0x3ad719([0x73,0x6f,0x72,0x74])]()[_0x3ad719([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c34e9,_0x7aa52f])=>{_0x185fd4(_0x2c34e9),_0x5e3522(_0x7aa52f);}):_0x185fd4(window[_0x3ad719([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2519c0));}return _0x5e3522(_0xe12558),_0x1f90a6>>>0x0;}function _0x3173fe(_0x45437b){return _0x45437b[_0x3ad719([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ad719([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ad719([0x30]));}function _0x343095(_0x480e14){return _0x480e14[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ad719([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ad719([0x6a,0x6f,0x69,0x6e])]('');}function _0x57b27f(_0x3b9ba4){return _0x9e3d64[_0x3ad719([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ad719([0x68,0x61,0x73])](_0x3b9ba4);}function _0x55d28e(_0x597b9c){return _0x9e3d64[_0x3ad719([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ad719([0x67,0x65,0x74])](_0x597b9c);}function _0x5858e7(){}function _0x3ad719(_0x12aca5){return _0x12aca5['map'](_0x11ab20=>String['fromCharCode'](_0x11ab20))['join']('');}_0x1ab29c(await _0x4cfcf4());}(this);}['createRevision'](_0x16f426){const _0x42bfdf=this['editor']['plugins']['get']('Users');return new a({'id':_0x16f426['id'],'name':_0x16f426['name'],'creator':_0x16f426['creatorId']?_0x42bfdf['getUser'](_0x16f426['creatorId']):null,'diffData':_0x16f426['diffData']||_0x16f426['data'],'authors':_0x16f426['authorsIds']['map'](_0x5139d5=>_0x42bfdf['getUser'](_0x5139d5)),'createdAt':new Date(_0x16f426['createdAt']),'attributes':_0x16f426['attributes'],'fromVersion':_0x16f426['fromVersion'],'toVersion':_0x16f426['toVersion']});}['addRevision'](_0x1a7bf7,_0x26d4ba=0x0){this['_revisions']['add'](_0x1a7bf7,_0x26d4ba);}['getRevision'](_0x354f2d){return this['_revisions']['get'](_0x354f2d);}['getRevisions'](_0x20ef89={'toJSON':!0x1}){const _0x5e235d=Array['from'](this['_revisions']);return _0x5e235d['reverse'](),_0x20ef89['toJSON']?_0x5e235d['map'](_0x2f753d=>_0x2f753d['toJSON']()):_0x5e235d;}['getIndex'](_0x25ed66){return this['_revisions']['getIndex'](_0x25ed66);}['getEarlierVisibleRevision'](_0xc891e4){const [,_0x32af89]=this['getRevisionsIterator'](_0xc891e4,{'direction':'earlier'});return _0x32af89;}['getLaterVisibleRevision'](_0x4b87e8){const [,_0x2244ed]=this['getRevisionsIterator'](_0x4b87e8,{'direction':'later'});return _0x2244ed;}['getRevisionsInDiff'](_0x215673){const _0x309e8d=[];for(const _0x252723 of this['getRevisionsIterator'](_0x215673['newRevisionId']))if(_0x309e8d['push'](_0x252723),_0x252723['id']===_0x215673['oldRevisionId'])break;return _0x309e8d;}*['getRevisionsIterator'](_0x18d91e,{direction:_0x55fe8b='earlier',filter:_0xced462=()=>!0x0}={}){const _0x46e6f4='earlier'===_0x55fe8b?0x1:-0x1;let _0x3e7cd8=this['_revisions']['get'](_0x18d91e),_0x5d2645=this['getIndex'](_0x3e7cd8);for(yield _0x3e7cd8;_0x3e7cd8;){if(_0x5d2645+=_0x46e6f4,_0x3e7cd8=this['getRevision'](_0x5d2645),!_0x3e7cd8)return;_0xced462(_0x3e7cd8)&&(yield _0x3e7cd8);}}}function R(_0xa9f3c2,_0x2a22b2,_0x2c03ec){const t=_0xa9f3c2['t'];switch(_0x2a22b2){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'},_0x2c03ec);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c03ec);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 C={'c':_0x23c6b9,'a':_0x3e4e99,'e':_0x46de0e,'r':_0xcf47a2,'u':_0x131e84};class l extends _0x24aabd{['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[_0x4943c5,j,_0x23b549];}constructor(_0x8f3592){super(_0x8f3592),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x18a83f=_0x4dce4d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18a83f},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 _0x448b50=this['repository']['getRevision'](0x0),_0x5f3425=_0x448b50&&null===_0x448b50['creator']?_0x448b50:null;if(this['_continueCurrentRevision']=!!_0x5f3425&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5eb682=this['_source']['getCurrentRevisionId'](),_0x5aeb13=this['repository']['getRevision'](_0x5eb682);if(_0x5aeb13)this['_startingVersion']=_0x5aeb13['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5e90be=this['_source']['history']['_operations']['find'](_0x5a09b3=>!_0x5a09b3['_isInit']),_0x2cd52e=_0x5e90be?_0x5e90be['baseVersion']:this['_source']['history']['version'];_0x448b50?(_0x448b50['toVersion']<_0x2cd52e&&_0x448b50['_update']({'toVersion':_0x2cd52e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5f3425['id'],this['_startingVersion']=_0x5f3425['fromVersion']):(this['_startingVersion']=_0x448b50['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2cd52e,this['_continueCurrentRevision']=!0x1);}}else _0x5f3425&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5f3425['toVersion'],this['editor']['model']['document']['history']['version']),_0x5f3425['fromVersion']===_0x5f3425['toVersion']?(0x0!==_0x5f3425['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f3425['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f3425['id'],this['_startingVersion']=_0x5f3425['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',_0x59d97e=>!_0x59d97e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ffbe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2767e0;for(const _0x3c4f0f in _0x3ffbe){const _0x22386c=_0x3c4f0f,_0x2ca479=_0x3ffbe[_0x22386c];if('revisionHistoryLicenseKeyValid'==_0x2ca479||'revisionHistoryLicenseKeyInvalid'==_0x2ca479||'revisionHistoryLicenseKeyExpired'==_0x2ca479||'revisionHistoryLicenseKeyDomainLimit'==_0x2ca479||'revisionHistoryLicenseKeyNotAllowed'==_0x2ca479||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2ca479||'revisionHistoryLicenseKeyTrialLimit'==_0x2ca479||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2ca479||'revisionHistoryLicenseKeyUsageLimit'==_0x2ca479){delete _0x3ffbe[_0x22386c],_0x2767e0=_0x2ca479,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2767e0&&_0x3ffbe['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2767e0&&_0x3ffbe['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2767e0&&_0x3ffbe['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x168faa=this['repository']['getRevision'](0x0),_0xa2f83=await this['getRevisionDocumentData'](_0x168faa),_0x2afe14=await this['getRevisionRootsAttributes'](_0x168faa);this['_replaceEditorDataWithRevisionData'](_0xa2f83,_0x2afe14);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5a6034){this['_source']=_0x5a6034;}async['update'](){const _0x13ebaf=await this['_source']['getLatestVersion']();if(_0x13ebaf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e6d83=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x13ebaf});_0x4e6d83['authors']=_0x4e6d83['authorsIds']['map'](_0x4ec68f=>this['editor']['plugins']['get']('Users')['getUser'](_0x4ec68f)),this['currentRevision']['_update'](_0x4e6d83);}}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'](_0x3a952c={},_0x2b599b=null){const _0xfe899=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2b599b>this['currentRevision']['toVersion']&&(_0x2b599b=null),null===_0x2b599b&&(_0x2b599b=await this['_source']['getLatestVersion']());const _0x599efa=this['_getFromVersion'](_0x2b599b),_0x4c46e9=this['buildRevisionData']({'from':_0x599efa,'to':_0x2b599b});if(this['currentRevision']['toVersion']<_0x2b599b){const _0x14548d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2b599b,'to':_0x2b599b});_0x14548d['authors']=[],_0x14548d['authorsIds']=[],_0x14548d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x14548d,!0x0),delete _0x14548d['authors'],_0xfe899['push'](_0x14548d);}_0x3a952c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a952c['name']=_0x3a952c['name']||null,_0x3a952c['id']=_0x3a952c['id']||_0x4dce4d(),_0x3a952c={..._0x3a952c,..._0x4c46e9};const _0x504914=this['addRevisionData'](_0x3a952c);_0xfe899['push'](_0x3a952c);const _0x3e29da=this['repository']['getIndex'](_0x504914);if(0x0!==_0x3e29da){const _0x49a848=this['repository']['getRevision'](_0x3e29da-0x1);if(_0x49a848['fromVersion']!==_0x2b599b){const _0x43f4aa=this['_revisionDataBuilder']['getData'](_0x2b599b,_0x49a848['toVersion']),_0x6bfc2f={'id':_0x49a848['id'],'diffData':_0x43f4aa['diffData'],'authorsIds':_0x43f4aa['authorsIds'],'authors':_0x43f4aa['authorsIds']['map'](_0x3e51aa=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e51aa)),'fromVersion':_0x2b599b};_0x49a848===this['currentRevision']&&(_0x6bfc2f['createdAt']=new Date(_0x3a952c['createdAt']['getTime']()+0xa)),_0x49a848['_update'](_0x6bfc2f,!0x0),delete _0x6bfc2f['authors'],_0xfe899['push'](_0x6bfc2f);}}if(this['adapter']){for(const _0x4f8e91 of _0xfe899)this['_bufferUpdate'](_0x4f8e91['id'],_0x4f8e91,!0x0);this['sendBufferedUpdates']();}return _0x504914;}['addRevisionData'](_0x1def92){const _0x1cc712=this['repository']['createRevision'](_0x1def92);return this['adapter']&&_0x1cc712['on']('_update',(_0x24d07c,_0x493151,_0x524323)=>{_0x524323||(this['_bufferUpdate'](_0x493151['id'],_0x493151,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1cc712,this['_findInsertionIndex'](_0x1cc712)),_0x1cc712;}async['getRevisionDocumentData'](_0x4866ad){await this['_loadRevisionData'](_0x4866ad);const _0x44729b={};for(const _0x4cf61d in _0x4866ad['diffData']){if(_0x4866ad['diffData'][_0x4cf61d]['attachChange']&&!_0x4866ad['diffData'][_0x4cf61d]['attachChange']['isAttached'])continue;const _0x1b1d9f=this['_removeRevisionMarkers'](JSON['parse'](_0x4866ad['diffData'][_0x4cf61d]['insertions'])),_0xb39278=this['editor']['editing']['view']['document'],_0x5b9a43=new _0x4833c1(_0xb39278,_0x1b1d9f['map'](_0x2d6a11=>V(_0x2d6a11,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x44729b[_0x4cf61d]=this['editor']['data']['processor']['toData'](_0x5b9a43),this['editor']['data']['processor']['useFillerType']('default');}return _0x44729b;}async['getRevisionRootsAttributes'](_0x11e137){await this['_loadRevisionData'](_0x11e137);const _0x50cad7={};for(const _0x15961a in _0x11e137['diffData'])_0x11e137['diffData'][_0x15961a]['attachChange']&&!_0x11e137['diffData'][_0x15961a]['attachChange']['isAttached']||(_0x50cad7[_0x15961a]=_0x11e137['diffData'][_0x15961a]['attributesAfter']||{});return _0x50cad7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x504d98=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1f686f=0x0;_0x1f686f<_0x504d98['length'];_0x1f686f++){const _0x5d9cef=_0x504d98[_0x1f686f];let _0x29261f=!0x1;for(const _0x19bc96 of Object['keys'](_0x5d9cef))void 0x0===_0x5d9cef[_0x19bc96]?delete _0x5d9cef[_0x19bc96]:'id'!==_0x19bc96&&(_0x29261f=!0x0);_0x29261f||(_0x504d98[_0x1f686f]=null);}if(_0x504d98=_0x504d98['filter'](_0x55aada=>null!==_0x55aada),!_0x504d98['length'])return;for(let _0x20f2af=0x0;_0x20f2af<_0x504d98['length'];_0x20f2af++){const _0x519030=_0x504d98[_0x20f2af];void 0x0!==_0x519030['fromVersion']&&void 0x0===_0x519030['toVersion']&&(_0x519030['toVersion']=this['repository']['getRevision'](_0x519030['id'])['toVersion']),void 0x0!==_0x519030['toVersion']&&void 0x0===_0x519030['fromVersion']&&(_0x519030['fromVersion']=this['repository']['getRevision'](_0x519030['id'])['fromVersion']);}const _0x7e91de=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x504d98,_0x7e91de)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1621c5=>{if(_0x1621c5){for(const _0x31f75a of _0x1621c5)this['setRevisionData']({'id':_0x31f75a['id'],'createdAt':_0x31f75a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3a3076,_0xcc1fe2){let _0x46c766=this['editor']['config']['get']('initialData'),_0x4acca2=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x46c766){_0x46c766={};for(const _0x5b667d of this['editor']['model']['document']['getRootNames']())_0x46c766[_0x5b667d]='';}if('string'==typeof _0x46c766&&(_0x46c766={'main':_0x46c766}),void 0x0===_0x4acca2){_0x4acca2={};for(const _0x66ac65 of this['editor']['model']['document']['getRootNames']())_0x4acca2[_0x66ac65]={};}let _0x5e6a44=!0x1;const _0x3e77c3=Object['keys'](_0x46c766),_0xd4831=Object['keys'](_0x3a3076);for(const _0x21ca3e of _0x3e77c3){if(_0x46c766[_0x21ca3e]!==_0x3a3076[_0x21ca3e]&&''!==_0x46c766[_0x21ca3e]['trim']()){_0x5e6a44=!0x0;break;}if(!_0x23c23a(_0x4acca2[_0x21ca3e],_0xcc1fe2[_0x21ca3e])&&Object['keys'](_0x4acca2[_0x21ca3e])['length']>0x0){_0x5e6a44=!0x0;break;}}_0x5e6a44||(_0x5e6a44=_0xd4831['some'](_0x22193d=>!this['editor']['model']['document']['getRoot'](_0x22193d))),_0x5e6a44&&_0x482cd7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x46c766,'editorRootsAttributes':_0x4acca2,'revisionData':_0x3a3076,'revisionRootsAttributes':_0xcc1fe2}),this['editor']['config']['set']('initialData',_0x3a3076),this['editor']['config']['set']('rootsAttributes',_0xcc1fe2);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4f3ec5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4f3ec5['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x102773){const _0x5bd694=this['repository']['getRevisions']();_0x5bd694['reverse']();let _0x29bf75=0x0;for(;_0x29bf75<_0x5bd694['length'];){const _0x432dcb=_0x5bd694[_0x29bf75];if(_0x432dcb===this['currentRevision']){_0x29bf75++;continue;}if(_0x432dcb['id']===this['_initialRevisionId'])break;const _0x4a43fc=_0x102773['toVersion']-_0x432dcb['toVersion']||_0x102773['fromVersion']-_0x432dcb['fromVersion'];if(_0x4a43fc>0x0)break;if(_0x4a43fc<0x0)_0x29bf75++;else{if(!_0x102773['creator']&&_0x432dcb['creator'])break;if(_0x432dcb['creator']||!_0x102773['creator']){if(_0x102773['createdAt']>_0x432dcb['createdAt'])break;_0x29bf75++;}else _0x29bf75++;}}return _0x29bf75;}['setRevisionData'](_0x47b951){const _0x36f34a=this['repository']['getRevision'](_0x47b951['id']);if(_0x47b951['createdAt']&&(_0x47b951['createdAt']=new Date(_0x47b951['createdAt'])),_0x47b951['authorsIds']){const _0x312c8f=this['editor']['plugins']['get']('Users');_0x47b951['authors']=_0x47b951['authorsIds']['map'](_0x2e00d0=>_0x312c8f['getUser'](_0x2e00d0));}_0x36f34a['_update'](_0x47b951,!0x0);}['buildRevisionData']({revision:_0x4842c8=null,from:_0x4f7818=null,to:_0x30b6d1=null}){_0x4f7818=null!==_0x4f7818?_0x4f7818:_0x4842c8['fromVersion'],_0x30b6d1=null!==_0x30b6d1?_0x30b6d1:_0x4842c8['toVersion'];const _0x2e8ef4=this['_revisionDataBuilder']['getData'](_0x4f7818,_0x30b6d1),_0xd79ed4={'diffData':_0x2e8ef4['diffData'],'authorsIds':_0x2e8ef4['authorsIds'],'fromVersion':_0x4f7818,'toVersion':_0x30b6d1};if(!_0x4842c8||_0x30b6d1!==_0x4842c8['toVersion']){const _0xcbf99c=_0x30b6d1-0x1,_0x41b4ca=this['_source']['history']['getOperation'](_0xcbf99c);_0xd79ed4['createdAt']=_0x41b4ca&&_0x41b4ca['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4f7818===this['_loadedStateData']['fromVersion']){for(const _0x111ac8 of this['_loadedStateData']['authors'])_0xd79ed4['authorsIds']['includes'](_0x111ac8['id'])||_0xd79ed4['authorsIds']['push'](_0x111ac8['id']);}return _0xd79ed4;}['_loadRevisionData'](_0x165b8b){if(!_0x165b8b||_0x165b8b['diffData'])return Promise['resolve']();{const _0x364aed=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x364aed,'revisionId':_0x165b8b['id']})['then'](_0x2e5e60=>{_0x165b8b['diffData']=_0x2e5e60['diffData'];});}}['_bufferUpdate'](_0x39bfb8,_0x24f75b,_0xb9e1a2){if(this['_bufferedUpdates']['has'](_0x39bfb8)){const _0x3bdbc8=this['_bufferedUpdates']['get'](_0x39bfb8);_0x24f75b=_0xb9e1a2?{..._0x3bdbc8,..._0x24f75b}:{..._0x24f75b,..._0x3bdbc8};}this['_bufferedUpdates']['set'](_0x39bfb8,_0x24f75b);}['_getFromVersion'](_0x33b2f0){const _0x3be4a6=this['repository']['getRevisions']();_0x3be4a6['reverse'](),_0x3be4a6['shift']();const _0x1947ba=_0x3be4a6['find'](_0x5ee92b=>_0x5ee92b['toVersion']<=_0x33b2f0)['toVersion'];return _0x1947ba<this['_startingVersion']?this['_startingVersion']:_0x1947ba;}['_createInitialRevision'](_0x2077ad){const _0x7268b1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x7268b1)this['_initialRevisionId']=_0x7268b1['id'];else{const _0x1fff2a=!this['editor']['model']['document']['roots']['find'](_0x338930=>this['editor']['model']['hasContent'](_0x338930)),_0xa52812=this['editor']['plugins']['get']('Users')['me']['id'],_0x239c44=R(this['editor']['locale'],_0x1fff2a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2077ad,'to':_0x2077ad,'id':this['_initialRevisionId'],'name':_0x239c44,'creatorId':_0xa52812});}}['_createCurrentRevision'](_0x1e6ce2){const _0x3e31c2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3e31c2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1e6ce2,'to':_0x1e6ce2,'id':_0x3e31c2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x42b386,from:_0x2a1c15,to:_0x50a8e4,creatorId:_0x858237,id:_0x41c25c}){const _0x1d5e83=this['buildRevisionData']({'from':_0x2a1c15,'to':_0x50a8e4});_0x1d5e83['name']=_0x42b386,_0x1d5e83['creatorId']=_0x858237,_0x1d5e83['id']=_0x41c25c;const _0x27fc23=this['addRevisionData'](_0x1d5e83);return this['adapter']&&this['_bufferUpdate'](_0x1d5e83['id'],_0x1d5e83,!0x0),_0x27fc23;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x58bf7e){return(_0x58bf7e=_0x58bf7e['filter'](_0x241d9c=>!_0x241d9c['name']||'revision-start'!==_0x241d9c['name']&&'revision-end'!==_0x241d9c['name']))['forEach'](_0x1006f0=>{'string'!=typeof _0x1006f0&&(_0x1006f0['children']=this['_removeRevisionMarkers'](_0x1006f0['children']),_0x1006f0['attributes']=_0x1006f0['attributes']['filter'](_0x1cdc68=>!_0x1cdc68[0x0]['startsWith']('data-revision-')));}),_0x58bf7e;}}function V(_0xa0927e,_0x599793){const _0x5c606e=_0x599793['editing']['view']['document'];if('string'==typeof _0xa0927e)return new _0xd57083(_0x5c606e,_0xa0927e);{const _0xe687a5=_0xa0927e['children']['map'](_0x46296c=>V(_0x46296c,_0x599793));return new(C[_0xa0927e['type']]||_0x2c4196)(_0x5c606e,_0xa0927e['name'],_0xa0927e['attributes'],_0xe687a5);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x7176c4){this['editor']=_0x7176c4,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'](_0x2dd5df){this['source']=_0x2dd5df;const _0x38c5cc=new Map(),_0x50144d=new Map(),_0x27b84b=this['editor']['model']['document']['roots']['map'](_0x176634=>_0x176634['rootName']);for(const _0x4bee9e of _0x27b84b){const _0x15680e=this['editor']['model']['document']['getRoot'](_0x4bee9e),_0x1bcd76=F(_0x15680e);_0x38c5cc['set'](_0x4bee9e,_0x1bcd76),_0x50144d['set'](_0x4bee9e,Object['fromEntries'](_0x15680e['getAttributes']()));}const _0x601a8e=Array['from'](this['editor']['model']['markers'])['map'](_0x5e7e91=>[_0x5e7e91['name'],_0x5e7e91['getRange']()]),_0x4e6098=this['source']['version'];this['_saveMetaData'](_0x4e6098,_0x38c5cc,_0x601a8e,_0x50144d),this['_startingRevisionId']=this['_revisionId'];const _0x2967c2=new Map(),_0x992431=new Map();for(const _0x38fecc of _0x27b84b){const _0x52be48=B(_0x38fecc);_0x2967c2['set'](_0x38fecc,_0x52be48),_0x992431['set'](_0x38fecc,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2967c2,[],_0x992431);}['getData'](_0x56a22a,_0x46df74){if(this['_lastFrom']===_0x56a22a&&this['_lastTo']<=_0x46df74)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x46df74,!0x0);else{if(!this['_savedMetaData']['has'](_0x56a22a)){const _0x37c1cb=this['_getPreviousFrom'](_0x56a22a);this['_calculateMetaData'](_0x37c1cb,_0x56a22a,!0x1);}this['_calculateMetaData'](_0x56a22a,_0x46df74,!0x0);}return this['_lastFrom']=_0x56a22a,this['_lastTo']=_0x46df74,this['_getState']();}['loadState'](_0xf75fcc){this['_reset'](),this['_lastFrom']=_0xf75fcc['fromVersion'],this['_lastTo']=_0xf75fcc['toVersion'];for(const _0x4acb8e in _0xf75fcc['diffData']){const _0x19aec5=_0xf75fcc['diffData'][_0x4acb8e]['attachChange'],_0x3c300a=_0x295472(_0xf75fcc['diffData'][_0x4acb8e]['attributesBefore'])||{},_0x1b5c64=this['_makeModelFromViewString'](_0xf75fcc['diffData'][_0x4acb8e]['deletions']);_0x1b5c64['rootName']=_0x4acb8e,_0x1b5c64['_isAttached']=!_0x19aec5||!_0x19aec5['isAttached'],_0x1b5c64['isAttached']=()=>_0x1b5c64['_isAttached'],this['_baseRoots']['set'](_0x4acb8e,_0x1b5c64),this['_baseRootsAttributes']['set'](_0x4acb8e,_0x3c300a),_0x19aec5&&this['_touchedRoots']['set'](_0x4acb8e,_0x19aec5);const _0x581fa7=this['_makeIdsRoot'](_0x1b5c64);this['_baseIdsRoots']['set'](_0x4acb8e,_0x581fa7);for(const [_0x2a86ae,_0x2b0e68]of _0x1b5c64['markers']){if(!_0x2a86ae['startsWith']('revision:'))continue;const _0x3e958e=_0x2a86ae['split'](':')[0x2];for(const _0x38b83e of _0x2b0e68['getWalker']({'singleCharacters':!0x0})){const _0x21a904=this['_getVidAttributeName'](_0x38b83e),_0x3cf5f4='elementEnd'==_0x38b83e['type']?_0x38b83e['previousPosition']['path']['slice'](0x0,-0x1):_0x38b83e['previousPosition']['path'],_0x3e3b5a=_0x581fa7['getNodeByPath'](_0x3cf5f4)['getAttribute'](_0x21a904);this['_touched']['set'](_0x3e3b5a,{'userId':_0x3e958e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5aefdf=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x40fb45=>!this['_touched']['has'](_0x40fb45));let _0x6b50a7=0x0;const _0x94b8cb=new Map();for(const _0x482faf in _0xf75fcc['diffData']){const _0x4dfd9f=_0xf75fcc['diffData'][_0x482faf]['attachChange'],_0x46d6e1=_0x295472(_0xf75fcc['diffData'][_0x482faf]['attributesAfter'])||{},_0x317cac=this['_makeModelFromViewString'](_0xf75fcc['diffData'][_0x482faf]['insertions']);_0x317cac['rootName']=_0x482faf,_0x317cac['_isAttached']=!_0x4dfd9f||_0x4dfd9f['isAttached'],_0x317cac['isAttached']=()=>_0x317cac['_isAttached'],this['_diffRoots']['set'](_0x482faf,_0x317cac),this['_diffRootsAttributes']['set'](_0x482faf,_0x46d6e1);const _0x377408=this['_makeIdsRoot'](_0x317cac,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x482faf,_0x377408),_0x94b8cb['set'](_0x482faf,_0x317cac['isAttached']()?_0x46d6e1:{});for(const [_0x15d77b,_0x5d51a0]of _0x317cac['markers']){if(!_0x15d77b['startsWith']('revision:'))continue;const _0x217ca3=_0x15d77b['split'](':')[0x2];for(const _0x14c650 of _0x5d51a0['getWalker']({'singleCharacters':!0x0})){const _0x3363d4=this['_getVidAttributeName'](_0x14c650),_0x1d7d11=this['_revisionId']++,_0x5d4fab='elementEnd'==_0x14c650['type']?_0x14c650['previousPosition']['path']['slice'](0x0,-0x1):_0x14c650['previousPosition']['path'];_0x377408['getNodeByPath'](_0x5d4fab)['_setAttribute'](_0x3363d4,_0x1d7d11),this['_touched']['set'](_0x1d7d11,{'userId':_0x217ca3});}}for(const _0x46ba32 of this['editor']['model']['createRangeIn'](_0x317cac)['getWalker']({'singleCharacters':!0x0})){const _0x576e85=this['_getVidAttributeName'](_0x46ba32),_0x1aee12='elementEnd'==_0x46ba32['type']?_0x46ba32['previousPosition']['path']['slice'](0x0,-0x1):_0x46ba32['previousPosition']['path'],_0x18c9cb=_0x377408['getNodeByPath'](_0x1aee12);_0x18c9cb['getAttribute'](_0x576e85)>0x0||_0x18c9cb['_setAttribute'](_0x576e85,_0x5aefdf[_0x6b50a7++]);}for(const [_0x5e6276,_0x56b5bb]of _0x317cac['markers'])_0x5e6276['startsWith']('revision:')||this['_markers']['set'](_0x5e6276,_0x56b5bb);}const _0x29a107=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x29a107),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29a107,0x1));const _0x1e691b=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1e691b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1e691b,0x1));const _0x4e68e7=Array['from'](this['_diffRoots'])['map'](([_0x4aac75,_0xddb746])=>[_0x4aac75,F(_0xddb746)]);this['_saveMetaData'](this['_lastTo'],_0x4e68e7,this['_markers'],_0x94b8cb);}['_makeModelFromViewString'](_0x8cc927){const _0x504161=JSON['parse'](_0x8cc927),_0x2de130=this['editor']['editing']['view']['document'],_0x3cd7b4=new _0x4833c1(_0x2de130,_0x504161['map'](_0x345261=>V(_0x345261,this['editor'])));return this['editor']['data']['toModel'](_0x3cd7b4);}['_saveMetaData'](_0x2d6865,_0x51d6c7,_0x4fcf06,_0x5bca5c){const _0x585d86=new Map(_0x51d6c7),_0x2c7919=new Map(_0x295472(_0x5bca5c)),_0x3a82c2=new Map();for(const [_0x2a774d,_0x11b64e]of _0x4fcf06)_0x3a82c2['set'](_0x2a774d,{'start':_0x11b64e['start']['clone'](),'end':_0x11b64e['end']['clone'](),'rootName':_0x11b64e['root']['rootName']});this['_savedMetaData']['set'](_0x2d6865,{'roots':_0x585d86,'markers':_0x3a82c2,'rootsAttributes':_0x2c7919});}['_removeMetaData'](_0x2fa536){this['_savedMetaData']['delete'](_0x2fa536);}['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'](_0x130843,_0x322b7d=null){let _0x234976=null;_0x130843['is']('documentFragment')||(_0x234976=new ft(_0x130843['name'],{'vid_start':null===_0x322b7d?this['_revisionId']++:_0x322b7d++}));const _0x4cd76d=[];for(const _0x2886af of _0x130843['getChildren']())if(_0x2886af['is']('element')){_0x4cd76d['push'](this['_makeIdsRoot'](_0x2886af,_0x322b7d));const _0x57de46=_0x4cd76d[_0x4cd76d['length']-0x1];null!==_0x322b7d&&(_0x322b7d=_0x57de46['is']('element','$text')?_0x57de46['getAttribute']('vid')+0x1:_0x57de46['getAttribute']('vid_end')+0x1);}else{for(let _0x32d205=0x0;_0x32d205<_0x2886af['offsetSize'];_0x32d205++)_0x4cd76d['push'](new ft('$text',{'vid':null===_0x322b7d?this['_revisionId']++:_0x322b7d++}));}if(_0x130843['is']('documentFragment')){const _0x2b5907=B(_0x130843['rootName']);return _0x2b5907['_insertChild'](0x0,_0x4cd76d),_0x2b5907;}return _0x234976['_setAttribute']('vid_end',null===_0x322b7d?this['_revisionId']++:_0x322b7d++),_0x234976['_insertChild'](0x0,_0x4cd76d),_0x234976;}['_calculateMetaData'](_0x2a3da3,_0x5ee7f0,_0x2e0edb){this['_reset']();const {roots:_0x35c342,markers:_0x3c04ab,rootsAttributes:_0x41a080}=this['_savedMetaData']['get'](_0x2a3da3);this['_baseRoots']=new Map(_0x35c342),this['_baseRootsAttributes']=new Map(_0x295472(_0x41a080));for(const [_0xe6d4e1,_0x354587]of this['_baseRoots'])if('$graveyard'!==_0xe6d4e1&&(this['_diffRoots']['set'](_0xe6d4e1,F(_0x354587)),this['_diffRootsAttributes']=new Map(_0x295472(_0x41a080)),_0x2e0edb)){const _0x1f0fe5=this['_revisionId'];this['_idsRoots']['set'](_0xe6d4e1,this['_makeIdsRoot'](_0x354587)),this['_baseIdsRoots']['set'](_0xe6d4e1,this['_makeIdsRoot'](_0x354587,_0x1f0fe5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x2e0edb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3446e4,_0x3430f9]of _0x3c04ab){const _0x105724=this['_baseRoots']['get'](_0x3430f9['rootName']),_0x3610c9=this['_diffRoots']['get'](_0x3430f9['rootName']),_0x3d5e23=new vt(this['_fixPosition'](_0x3430f9['start'],_0x105724),this['_fixPosition'](_0x3430f9['end'],_0x105724)),_0x486db8=this['_fixRange'](_0x3d5e23,_0x3610c9);_0x105724['markers']['set'](_0x3446e4,_0x3d5e23),this['_markers']['set'](_0x3446e4,_0x486db8);}this['_applyOperations'](_0x2a3da3,_0x5ee7f0,_0x2e0edb);}['_applyOperations'](_0x21f882,_0x28d697,_0x2e3c47){for(const _0x49ebad of this['source']['getOperations'](_0x21f882,_0x28d697))this['_handleOperation'](_0x49ebad,_0x2e3c47);for(const _0x54fbce of this['_diffRoots']['values']())_0x54fbce['markers']['clear']();for(const [_0x4f08e2,_0x38bde5]of this['_markers']){this['_diffRoots']['get'](_0x38bde5['root']['rootName'])['markers']['set'](_0x4f08e2,_0x38bde5['clone']());}const _0x3b7a39=new Map(),_0x261118=new Map();for(const [_0x19644a,_0xef3e2a]of this['_diffRoots'])_0x3b7a39['set'](_0x19644a,F(_0xef3e2a)),_0x261118['set'](_0x19644a,this['_diffRootsAttributes']['get'](_0x19644a));this['_saveMetaData'](_0x28d697,_0x3b7a39,this['_markers'],_0x261118);}['_getPreviousFrom'](_0x109d04){const _0x4e52a7=Array['from'](this['_savedMetaData']['keys']());_0x4e52a7['sort']((_0x138aa2,_0xcfcac3)=>_0x138aa2-_0xcfcac3),_0x4e52a7['reverse']();for(const _0x56f07b of _0x4e52a7)if(_0x56f07b<_0x109d04)return _0x56f07b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x45c659,_0x1d9185){const _0xd6603d=Array['from'](_0x1d9185['markers'])['map'](([_0x26b0d6,_0xd7f4f9])=>[_0x26b0d6,this['_fixRange'](_0xd7f4f9,_0x45c659)]);_0x45c659['markers']=new Map(_0xd6603d);}['_transformMarkers'](_0x1aac4e){for(const _0x25e8e5 of this['_markers']['values']()){const _0x256a47=_0x25e8e5['getTransformedByOperation'](_0x1aac4e),_0x33333e=vt['_createFromRanges'](_0x256a47);_0x25e8e5['start']=_0x33333e['start'],_0x25e8e5['end']=_0x33333e['end'];}}['_handleOperation'](_0x37db7d,_0x49c079){if('addRoot'!=_0x37db7d['type']&&'detachRoot'!=_0x37db7d['type']){if('insert'==_0x37db7d['type']){const _0x241511=_0x37db7d['position']['root']['rootName'];this['_diffRoots']['has'](_0x241511)||(this['_diffRoots']['set'](_0x241511,B(_0x241511,!0x0)),this['_diffRootsAttributes']['set'](_0x241511,{}),_0x49c079&&this['_idsRoots']['set'](_0x241511,B(_0x241511,!0x0)));}else{if('addRootAttribute'==_0x37db7d['type']||'removeRootAttribute'==_0x37db7d['type']||'changeRootAttribute'==_0x37db7d['type'])return void this['_handleRootAttributeOperation'](_0x37db7d);'marker'==_0x37db7d['type']&&this['_handleMarkerOperation'](_0x37db7d);}if('marker'!==_0x37db7d['type']){const _0x58c1bf=this['_cloneOperation'](_0x37db7d,this['_diffRoots']);_0x58c1bf['_execute'](),this['_transformMarkers'](_0x58c1bf);}if(_0x49c079)switch(_0x37db7d['type']){case'insert':this['_handleInsertOperation'](_0x37db7d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x37db7d);break;case'merge':this['_handleMergeOperation'](_0x37db7d);break;case'split':this['_handleSplitOperation'](_0x37db7d);}}else this['_handleRootOperation'](_0x37db7d,_0x49c079);}['_cloneOperation'](_0x5ebee1,_0x461f07){const _0x545928=_0x5ebee1['clone']();return _0x545928['_authorId']=_0x5ebee1['_authorId'],this['_fixOperation'](_0x545928,_0x461f07),_0x545928;}['_getBaseVids'](_0x19e478){return _0x19e478['map'](_0x144e5c=>{const _0x506b38=this['_getVidAttributeName'](_0x144e5c);return Number(_0x144e5c['item']['getAttribute'](_0x506b38));});}['_generateTape'](_0x3dbe3a,_0x5ccc90){if(_0x3dbe3a['is']('element','$text'))_0x5ccc90['push']({'item':_0x3dbe3a,'type':'text'});else{_0x3dbe3a['is']('element')&&_0x5ccc90['push']({'item':_0x3dbe3a,'type':'elementStart'});for(const _0x2e2687 of _0x3dbe3a['getChildren']())this['_generateTape'](_0x2e2687,_0x5ccc90);_0x3dbe3a['is']('element')&&_0x5ccc90['push']({'item':_0x3dbe3a,'type':'elementEnd'});}return _0x5ccc90;}['_getState'](){const _0x24e574=new Map(this['_touched']),_0x46670f=new Map(_0x24e574),_0x3798b4=new Map(),_0x12ac6f={'insertions':{},'deletions':{}},_0x143e89={'insertions':{},'deletions':{}},_0x128694=new Map(),_0x2f2993=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2f2993['delete']('$graveyard');for(const _0x3bbb7d of _0x2f2993){const _0x51c9b4=this['_diffRoots']['get'](_0x3bbb7d)||B(_0x3bbb7d,!0x1),_0x19c1cc=this['_baseRoots']['get'](_0x3bbb7d)||B(_0x3bbb7d,!0x1);_0x51c9b4['isAttached']()||_0x19c1cc['isAttached']()?(_0x12ac6f['insertions'][_0x3bbb7d]=F(_0x51c9b4),_0x12ac6f['deletions'][_0x3bbb7d]=F(_0x19c1cc),this['_copyMarkers'](_0x12ac6f['deletions'][_0x3bbb7d],_0x19c1cc),this['_copyMarkers'](_0x12ac6f['insertions'][_0x3bbb7d],_0x51c9b4),_0x143e89['insertions'][_0x3bbb7d]=this['_generateTape'](this['_idsRoots']['get'](_0x3bbb7d),[]),_0x143e89['deletions'][_0x3bbb7d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3bbb7d)||B(_0x3bbb7d,!0x1),[])):_0x2f2993['delete'](_0x3bbb7d);}for(const _0x55eb81 of _0x2f2993){const _0x131c25=_0x143e89['insertions'][_0x55eb81];for(const _0x10aaad of _0x131c25){const _0x19ce73=this['_getVidAttributeName'](_0x10aaad),_0x842c4d=_0x10aaad['item']['getAttribute'](_0x19ce73);_0x46670f['delete'](_0x842c4d),_0x842c4d>=this['_startingRevisionId']&&_0x3798b4['set'](_0x842c4d,_0x24e574['get'](_0x842c4d));}}for(const _0x5201ab of _0x2f2993){const _0xe18253=_0x143e89['insertions'][_0x5201ab],_0x8bd45b=this['_getBaseVids'](_0x143e89['deletions'][_0x5201ab]);let _0x54fb92=0x0;for(const _0x12b5ac of _0xe18253){const _0xa82039=this['_getVidAttributeName'](_0x12b5ac),_0x2727c1=_0x12b5ac['item']['getAttribute'](_0xa82039);if(!_0x3798b4['has'](_0x2727c1)&&!_0x128694['has'](_0x2727c1)){if(_0x46670f['has'](_0x2727c1))_0x54fb92++;else{if(_0x2727c1!=_0x8bd45b[_0x54fb92]){const _0x551d2f=_0x24e574['get'](_0x2727c1)||_0x24e574['get'](_0x8bd45b[_0x54fb92]);for(;_0x2727c1!=_0x8bd45b[_0x54fb92];)_0x46670f['has'](_0x8bd45b[_0x54fb92])||(_0x128694['set'](_0x8bd45b[_0x54fb92],_0x551d2f),_0x24e574['set'](_0x8bd45b[_0x54fb92],_0x551d2f)),_0x54fb92++;}_0x54fb92++;}}}}for(const _0x433476 of _0x2f2993){const _0x51bfec=_0x143e89['insertions'][_0x433476];for(const _0x15b8d6 of _0x51bfec){const _0x19b115=this['_getVidAttributeName'](_0x15b8d6),_0x24feb5=_0x15b8d6['item']['getAttribute'](_0x19b115);if(_0x128694['has'](_0x24feb5)){const _0x421661=_0x128694['get'](_0x24feb5);_0x46670f['has'](_0x24feb5)||_0x46670f['set'](_0x24feb5,{..._0x421661}),_0x3798b4['set'](_0x24feb5,{..._0x421661});}}}for(const _0x31d48e of _0x46670f['keys']())_0x31d48e>=this['_startingRevisionId']&&_0x46670f['delete'](_0x31d48e);const _0x5d6a29=new Map();for(const _0x5562c4 of _0x2f2993){let _0x378b5d=_0x143e89['insertions'][_0x5562c4];for(const _0x294540 of _0x378b5d)if(_0x294540['item']['is']('element','tableCell')){const _0x49d477=this['_getVidAttributeName'](_0x294540),_0x1d5a37=_0x294540['item']['getAttribute'](_0x49d477);if(_0x3798b4['has'](_0x1d5a37)){const _0x2200f3=_0x294540['item']['parent']['parent']['getAttribute']('vid_start'),_0x40d1b8=_0x5d6a29['get'](_0x2200f3)||new Set();_0x40d1b8['add'](_0x3798b4['get'](_0x1d5a37)['userId']),_0x5d6a29['set'](_0x2200f3,_0x40d1b8);}}_0x378b5d=_0x143e89['deletions'][_0x5562c4];for(const _0x20fca5 of _0x378b5d)if(_0x20fca5['item']['is']('element','tableCell')){const _0x5ded06=this['_getVidAttributeName'](_0x20fca5),_0x1842ea=_0x20fca5['item']['getAttribute'](_0x5ded06);if(_0x46670f['has'](_0x1842ea)){const _0x34e1ad=_0x20fca5['item']['parent']['parent']['getAttribute']('vid_start'),_0x5de7ab=_0x5d6a29['get'](_0x34e1ad)||new Set();_0x5de7ab['add'](_0x46670f['get'](_0x1842ea)['userId']),_0x5d6a29['set'](_0x34e1ad,_0x5de7ab);}}for(const _0x28a1ef of _0x5d6a29['keys']())(_0x3798b4['has'](_0x28a1ef)||_0x46670f['has'](_0x28a1ef))&&_0x5d6a29['delete'](_0x28a1ef);}for(const _0x50cea2 of _0x2f2993){const _0x396edc=_0x143e89['insertions'][_0x50cea2];let _0x5c3628=null,_0x1aff6f=null;for(const _0x119f96 of _0x396edc){const _0x4c6349=this['_getVidAttributeName'](_0x119f96),_0x2ce2d7=_0x119f96['item']['getAttribute'](_0x4c6349),_0x5bc010=_0x5d6a29['get'](_0x2ce2d7);_0x5bc010&&'elementStart'==_0x119f96['type']&&(_0x5c3628=Array['from'](_0x5bc010)[0x0],_0x1aff6f=_0x119f96['item']['getAttribute']('vid_end')),_0x5c3628&&(_0x46670f['set'](_0x2ce2d7,{'userId':_0x5c3628}),_0x3798b4['set'](_0x2ce2d7,{'userId':_0x5c3628})),_0x2ce2d7==_0x1aff6f&&(_0x5c3628=null,_0x1aff6f=null);}}const _0x5ca6ce={},_0x79e4e4=new Set();for(const _0x265ff5 of _0x2f2993){const _0x4e83f2=_0x12ac6f['deletions'][_0x265ff5],_0x2ee800=_0x12ac6f['insertions'][_0x265ff5];for(const {userId:_0x22c1b1}of this['_touchedMarkers']['values']())null!==_0x22c1b1&&_0x79e4e4['add'](_0x22c1b1);for(const {userId:_0x3ea17a}of this['_touchedRoots']['values']())null!==_0x3ea17a&&_0x79e4e4['add'](_0x3ea17a);this['_markChanges'](_0x2ee800,_0x143e89['insertions'][_0x265ff5],_0x3798b4,'insertion',_0x79e4e4),this['_markChanges'](_0x4e83f2,_0x143e89['deletions'][_0x265ff5],_0x46670f,'deletion',_0x79e4e4),_0x5ca6ce[_0x265ff5]={'insertions':this['_prepareViewToSave'](_0x2ee800),'deletions':this['_prepareViewToSave'](_0x4e83f2),'attachChange':this['_touchedRoots']['get'](_0x265ff5)||null,'attributesBefore':_0x295472(this['_baseRootsAttributes']['get'](_0x265ff5))||{},'attributesAfter':_0x295472(this['_diffRootsAttributes']['get'](_0x265ff5))};}return{'diffData':_0x5ca6ce,'authorsIds':Array['from'](_0x79e4e4)};}['_processRootBeforeSave'](_0x19f406){for(const [,_0x5f1473]of _0x19f406['markers']){const _0x47ff96=_0x5f1473['start']['getAncestors']()['filter'](_0x49bb5d=>'tableCell'==_0x49bb5d['name']);for(const _0x291458 of _0x47ff96)0x1==_0x291458['childCount']&&_0x291458['getChild'](0x0)['is']('element','paragraph')&&_0x291458['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2add00){this['_processRootBeforeSave'](_0x2add00);const _0x299e8f=this['editor']['data']['toView'](_0x2add00,{}),_0x29eada=Array['from'](_0x299e8f['getChildren']())['map'](_0x2dc3ad=>this['_getViewJson'](_0x2dc3ad));return JSON['stringify'](_0x29eada);}['_getViewJson'](_0x14899e){if(_0x14899e['is']('$text'))return _0x14899e['data'];{const _0x421e12=_0x14899e;return{'type':Object['keys'](C)['find'](_0x2512f5=>_0x14899e instanceof C[_0x2512f5]),'name':_0x421e12['name'],'attributes':Array['from'](_0x421e12['getAttributes']()),'children':Array['from'](_0x421e12['getChildren']())['map'](_0x73a231=>this['_getViewJson'](_0x73a231))};}}['_markChanges'](_0x3990d6,_0x58b58a,_0xbb3167,_0x5df67f,_0x224bbe){let _0x406aa4=null,_0xe685d4=null,_0x3be966=0x0;const _0x18592c=this['editor']['model'];for(let _0x5d7a97=0x0;_0x5d7a97<_0x58b58a['length'];_0x5d7a97++){const _0x405fec=this['_getVidAttributeName'](_0x58b58a[_0x5d7a97]),_0x2cc560=_0x58b58a[_0x5d7a97]['item']['getAttribute'](_0x405fec),_0x5c010d=_0xbb3167['get'](_0x2cc560),_0x4bf5d7=_0x5d7a97==_0x58b58a['length']-0x1;(!_0x406aa4&&_0x5c010d&&(_0x406aa4=_0x5c010d,_0xe685d4=_0x58b58a[_0x5d7a97]),_0x406aa4&&(!_0x5c010d||_0x5c010d['userId']!=_0x406aa4['userId']))&&(_0x1eb6ba(_0x5c010d,J(_0xe685d4,_0x3990d6,_0x18592c),J(_0x58b58a[_0x5d7a97],_0x3990d6,_0x18592c)),_0x406aa4=_0x5c010d||null,_0xe685d4=_0x5c010d?_0x58b58a[_0x5d7a97]:null),_0x406aa4&&_0x4bf5d7&&_0x1eb6ba(_0x5c010d,J(_0xe685d4,_0x3990d6,_0x18592c),q(_0x58b58a[_0x5d7a97],_0x3990d6,_0x18592c));}function _0x1eb6ba(_0x10d366,_0x1dcf7f,_0x5778d5){const _0x9e9607=_0x406aa4['userId'],_0x12301c='revision:'+_0x5df67f+':'+_0x9e9607+':'+_0x3be966++,_0x370d83=_0x18592c['createRange'](_0x1dcf7f,_0x5778d5);_0x3990d6['markers']['set'](_0x12301c,_0x370d83),null!==_0x9e9607&&_0x224bbe['add'](_0x9e9607);}}['_getVidAttributeName'](_0x2624d5){switch(_0x2624d5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1c31dd,_0x55ae2d){_0x1c31dd['baseVersion']=null;for(const _0x2650a0 in _0x1c31dd){const _0xfe793c=_0x1c31dd[_0x2650a0];if(_0xfe793c instanceof gt){const _0x1038d7=_0x55ae2d['get'](_0xfe793c['root']['rootName']);_0x1c31dd[_0x2650a0]=this['_fixPosition'](_0xfe793c,_0x1038d7);}if(_0xfe793c instanceof vt){const _0x2b143b=_0x55ae2d['get'](_0xfe793c['root']['rootName']);_0x1c31dd[_0x2650a0]=this['_fixRange'](_0xfe793c,_0x2b143b);}'root'===_0x2650a0&&(_0x1c31dd['root']=_0x55ae2d['get'](_0x1c31dd['root']['rootName']));}}['_fixRange'](_0x1394e4,_0x317ff7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1394e4['start'],_0x317ff7),this['_fixPosition'](_0x1394e4['end'],_0x317ff7));}['_fixPosition'](_0x3d2c5b,_0x1d43b0){return this['editor']['model']['createPositionFromPath'](_0x1d43b0,_0x3d2c5b['path'],_0x3d2c5b['stickiness']);}['_handleInsertOperation'](_0x59256a){const _0x37dd52=this['_idsRoots']['get'](_0x59256a['position']['root']['rootName']),_0x18aa61=this['_fixPosition'](_0x59256a['position'],_0x37dd52),_0x59ea7d=null===_0x59256a['_authorId']?null:_0x59256a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d06bf=_0x18aa61['parent'],_0xd207b6=this['_revisionId'],_0x5ac66c=[];for(const _0x287382 of _0x59256a['nodes'])if(_0x287382['is']('element'))_0x5ac66c['push'](this['_makeIdsRoot'](_0x287382));else{for(let _0x35968f=0x0;_0x35968f<_0x287382['offsetSize'];_0x35968f++)_0x5ac66c['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x382b39=this['_revisionId'];for(let _0x45d6c5=_0xd207b6;_0x45d6c5<_0x382b39;_0x45d6c5++)this['_touched']['set'](_0x45d6c5,{'userId':_0x59ea7d});_0x3d06bf['_insertChild'](_0x18aa61['offset'],_0x5ac66c);}['_handleMoveOperation'](_0x192e87){(_0x192e87=this['_cloneOperation'](_0x192e87,this['_idsRoots']))['_execute']();const _0x409134=null===_0x192e87['_authorId']?null:_0x192e87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1754ce=_0x192e87['getMovedRangeStart'](),_0xdc582c=_0x1754ce['parent'],_0x51212e=_0x1754ce['offset'];!function _0x1e3518(_0x255c5c,_0x467b8c,_0x498460,_0x50a4dd){for(let _0x12a31d=_0x498460;_0x12a31d<_0x50a4dd;_0x12a31d++){const _0x100e4b=_0x467b8c['getChild'](_0x12a31d);_0x100e4b['is']('element','$text')?_0x255c5c['set'](_0x100e4b['getAttribute']('vid'),{'userId':_0x409134}):(_0x255c5c['set'](_0x100e4b['getAttribute']('vid_start'),{'userId':_0x409134}),_0x1e3518(_0x255c5c,_0x100e4b,0x0,_0x100e4b['childCount']),_0x255c5c['set'](_0x100e4b['getAttribute']('vid_end'),{'userId':_0x409134}));}}(this['_touched'],_0xdc582c,_0x51212e,_0x51212e+_0x192e87['howMany']);}['_handleMergeOperation'](_0x2c441e){const _0x31380c=null===(_0x2c441e=this['_cloneOperation'](_0x2c441e,this['_idsRoots']))['_authorId']?null:_0x2c441e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x251d38=_0x2c441e['targetPosition']['parent'],_0x3510d0=_0x2c441e['sourcePosition']['parent'],_0xe0a236=_0x251d38['getAttribute']('vid_end'),_0x249217=_0x3510d0['getAttribute']('vid_start');_0x251d38['_setAttribute']('vid_end',_0x3510d0['getAttribute']('vid_end')),_0x3510d0['_setAttribute']('vid_end',_0xe0a236),this['_touched']['set'](_0x249217,{'userId':_0x31380c}),this['_touched']['set'](_0xe0a236,{'userId':_0x31380c}),_0x2c441e['_execute']();}['_handleSplitOperation'](_0x1b0239){const _0x27d995=null===(_0x1b0239=this['_cloneOperation'](_0x1b0239,this['_idsRoots']))['_authorId']?null:_0x1b0239['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28caa6=_0x1b0239['graveyardPosition'],_0x39f2e3=_0x1b0239['splitPosition']['parent'];_0x1b0239['_execute']();const _0x44e156=_0x39f2e3['getAttribute']('vid_end'),_0x3ffe2c=_0x1b0239['insertionPosition']['nodeAfter'];if(_0x28caa6){const _0x435ac6=_0x3ffe2c['getAttribute']('vid_end'),_0x3cfebe=_0x39f2e3['getAttribute']('vid_end');_0x39f2e3['_setAttribute']('vid_end',_0x435ac6),_0x3ffe2c['_setAttribute']('vid_end',_0x3cfebe),this['_touched']['set'](_0x39f2e3['getAttribute']('vid_end'),{'userId':_0x27d995}),this['_touched']['set'](_0x3ffe2c['getAttribute']('vid_start'),{'userId':_0x27d995});}else{const _0x29dab3=this['_revisionId']++,_0x4b89ce=this['_revisionId']++;_0x39f2e3['_setAttribute']('vid_end',_0x29dab3),_0x3ffe2c['_setAttribute']('vid_start',_0x4b89ce),_0x3ffe2c['_setAttribute']('vid_end',_0x44e156),this['_touched']['set'](_0x29dab3,{'userId':_0x27d995}),this['_touched']['set'](_0x4b89ce,{'userId':_0x27d995});}}['_handleMarkerOperation'](_0x2a2564){if(!_0x2a2564['affectsData'])return;const _0x3998da=(_0x2a2564=this['_cloneOperation'](_0x2a2564,this['_diffRoots']))['oldRange']?_0x2a2564['oldRange']['root']:null,_0x3b1bf4=_0x2a2564['newRange']?_0x2a2564['newRange']['root']:null;_0x3998da&&this['_markers']['delete'](_0x2a2564['name']),_0x3b1bf4&&this['_markers']['set'](_0x2a2564['name'],_0x2a2564['newRange']['clone']());const _0x19ee5d=null===_0x2a2564['_authorId']?null:_0x2a2564['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x575309=_0x2a2564['name'];if(!this['_touchedMarkers']['has'](_0x575309))return void this['_touchedMarkers']['set'](_0x575309,{'range':_0x2a2564['oldRange'],'userId':_0x19ee5d});const _0x3ef388=this['_touchedMarkers']['get'](_0x575309),_0x587342=_0x3ef388['range'],_0xc390fa=_0x2a2564['newRange'];null==_0x587342&&null==_0xc390fa||_0x587342&&_0xc390fa&&_0x587342['isEqual'](_0xc390fa)?this['_touchedMarkers']['delete'](_0x2a2564['name']):_0x3ef388['userId']=_0x19ee5d;}['_handleRootOperation'](_0x408399,_0x43ec6c){this['_diffRoots']['has'](_0x408399['rootName'])?this['_diffRoots']['get'](_0x408399['rootName'])['_isAttached']=_0x408399['isAdd']:(this['_diffRoots']['set'](_0x408399['rootName'],B(_0x408399['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x408399['rootName'],{}),_0x43ec6c&&this['_idsRoots']['set'](_0x408399['rootName'],B(_0x408399['rootName'],!0x0)));const _0x17c5d9=null===_0x408399['_authorId']?null:_0x408399['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x762f70=this['_touchedRoots']['get'](_0x408399['rootName']);_0x762f70&&_0x762f70['userId']===_0x17c5d9?this['_touchedRoots']['delete'](_0x408399['rootName']):this['_touchedRoots']['set'](_0x408399['rootName'],{'userId':_0x17c5d9,'isAttached':_0x408399['isAdd']});}['_handleRootAttributeOperation'](_0x847968){const _0x162c93=this['_diffRootsAttributes']['get'](_0x847968['root']['rootName']);null===_0x847968['newValue']?delete _0x162c93[_0x847968['key']]:_0x162c93[_0x847968['key']]=_0x847968['newValue'];}}function F(_0x51e79c){const _0x3081c5=B(_0x51e79c['rootName'],_0x51e79c['isAttached']());for(const _0x587a1b of _0x51e79c['getChildren']()){const _0x3e10aa=_0x587a1b['_clone'](!0x0);_0x3081c5['_appendChild'](_0x3e10aa);}return _0x3081c5;}function B(_0x1290c2,_0x6e1acf=!0x0){const _0x19edfd=new wt();return _0x19edfd['rootName']=_0x1290c2,_0x19edfd['_isAttached']=_0x6e1acf,_0x19edfd['isAttached']=()=>_0x19edfd['_isAttached'],_0x19edfd;}function J(_0xa7ba6,_0x5ceb4e,_0x186ed5){const _0x2ac71a='elementEnd'==_0xa7ba6['type']?_0x186ed5['createPositionAt'](_0xa7ba6['item'],'end'):_0x186ed5['createPositionBefore'](_0xa7ba6['item']);return _0x186ed5['createPositionFromPath'](_0x5ceb4e,_0x2ac71a['path'],_0x2ac71a['stickiness']);}function q(_0x4b4325,_0x16126c,_0x29308d){const _0x2338ac='elementStart'==_0x4b4325['type']?_0x29308d['createPositionAt'](_0x4b4325['item'],0x0):_0x29308d['createPositionAfter'](_0x4b4325['item']);return _0x29308d['createPositionFromPath'](_0x16126c,_0x2338ac['path'],_0x2338ac['stickiness']);}class ns extends _0x2c43c9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x509ee3,_0x48cbbe){super(_0x509ee3),this['focusTracker']=new _0x5cf0e0(),this['keystrokes']=new _0x3a2814(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x48cbbe),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'](),_0x5b1924({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xdd905d=_0x118df9=>_0x118df9['stopPropagation']();this['keystrokes']['set']('arrowright',_0xdd905d),this['keystrokes']['set']('arrowleft',_0xdd905d),this['keystrokes']['set']('arrowup',_0xdd905d),this['keystrokes']['set']('arrowdown',_0xdd905d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x36a197){this['revisionNameInputView']['fieldView']['element']['value']=_0x36a197['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4cc47d){const _0x4bb1dc=new at(this['locale'],_0x4fabfa),_0x196073=_0x4bb1dc['fieldView'];_0x196073['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x20564a=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4cc47d&&(_0x20564a+='\x20('+R(this['locale'],'optional')+')'),(_0x4bb1dc['label']=_0x20564a,_0x196073['on']('input',()=>{this['revisionNameInputValue']=_0x196073['element']['value']['trim']();}),_0x4bb1dc);}}class u extends _0x24aabd{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2b95b0=this['editor'],_0xbc630c=_0x2b95b0['plugins']['get']('RevisionTracker');_0x2b95b0['ui']['componentFactory']['add']('revisionHistory',_0x534a0a=>{const _0x212096=_0x20789c(_0x534a0a),_0xf81698=_0x212096['panelView']['children'],_0x41302d=new te(_0x534a0a),_0x4694db=new _0x4e494e(_0x534a0a),_0x20f1e6=new _0x15a92a(_0x534a0a),_0x3d873b=new _0x4e494e(_0x534a0a),_0x1fd945=new _0x15a92a(_0x534a0a);return _0x212096['bind']('isEnabled')['to'](_0xbc630c,'isReady',_0xbc630c,'isEnabled',_0x2b95b0,'isReadOnly',(_0x37081a,_0x9d7e75,_0x5e67b0)=>_0x37081a&&_0x9d7e75&&!_0x5e67b0),_0x212096['buttonView']['set']({'icon':_0x888a61['history'],'label':R(_0x534a0a,'Revision\x20history'),'tooltip':!0x0}),_0x20f1e6['set']({'label':R(_0x534a0a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x20f1e6['bind']('isEnabled')['to'](_0xbc630c,'isReady',_0xbc630c,'isEnabled',_0x2b95b0,'isReadOnly',(_0x4fbefa,_0x1bedeb,_0x1100f8)=>_0x4fbefa&&_0x1bedeb&&!_0x1100f8),_0x20f1e6['on']('execute',()=>this['_showDialog']()),_0x1fd945['set']({'label':R(_0x534a0a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1fd945['bind']('isEnabled')['to'](_0xbc630c,'isReady',_0x2b95b0,'isReadOnly',(_0x5a6635,_0x41be6c)=>_0x5a6635&&!_0x41be6c),_0x1fd945['on']('execute',()=>{_0x2b95b0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x212096['isOpen']=!0x1,_0x2b95b0['editing']['view']['focus']();}),_0x4694db['children']['add'](_0x20f1e6),_0x3d873b['children']['add'](_0x1fd945),_0x41302d['role']='menu',_0x41302d['items']['addMany']([_0x4694db,_0x3d873b]),_0xf81698['add'](_0x41302d),_0x212096;}),_0x2b95b0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x32c57f=this['editor'],_0x5ce71d=_0x32c57f['locale'],_0x446330=new _0x5320cf(_0x5ce71d),_0x48597e=new _0xae8b9(_0x5ce71d);_0x446330['buttonView']['set']({'icon':_0x888a61['history'],'label':R(_0x5ce71d,'Revision\x20history')});const _0x32273a=new _0x414113(_0x5ce71d,_0x446330),_0x50b1a6=new _0x1ea6c3(_0x5ce71d);_0x50b1a6['set']({'label':R(_0x5ce71d,'Save\x20current\x20revision')}),_0x50b1a6['delegate']('execute')['to'](_0x446330),_0x50b1a6['on']('execute',()=>{this['_showDialog']();}),_0x32273a['children']['add'](_0x50b1a6),_0x48597e['items']['add'](_0x32273a);const _0x1f2674=new _0x414113(_0x5ce71d,_0x446330),_0x166ed1=new _0x1ea6c3(_0x5ce71d);return _0x166ed1['set']({'label':R(_0x5ce71d,'Open\x20revision\x20history')}),_0x166ed1['delegate']('execute')['to'](_0x446330),_0x166ed1['on']('execute',()=>{_0x32c57f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1f2674['children']['add'](_0x166ed1),_0x48597e['items']['add'](_0x1f2674),_0x446330['panelView']['children']['add'](_0x48597e),_0x446330;}['_showDialog'](){const _0x25e441=this['editor'],_0x5014bb=_0x25e441['locale'],_0x239a38=_0x25e441['plugins']['get']('Dialog'),_0x45d2f8=_0x25e441['plugins']['get']('RevisionTracker');function _0x4c32af(_0x41dbfc){_0x25e441['config']['get']('revisionHistory.requireRevisionName')&&''===_0x41dbfc['revisionName']?_0x41dbfc['revisionNameInputView']['errorText']=R(_0x5014bb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x25e441['plugins']['get'](l)['saveRevision']({'name':_0x41dbfc['revisionName']}),_0x239a38['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c32af(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x239a38['show']({'id':'revisionSave','title':R(_0x5014bb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x25e441['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x239a38['hide']()},{'label':R(_0x25e441['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xcc2988){_0xcc2988['bind']('isEnabled')['to'](_0x45d2f8,'isReady',_0x45d2f8,'isEnabled',_0x25e441,'isReadOnly',(_0x1be6e2,_0x9320dd,_0x2a09ff)=>_0x1be6e2&&_0x9320dd&&!_0x2a09ff);},'onExecute':()=>_0x4c32af(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2e050e=this['editor'],_0x422836=_0x2e050e['locale'];this['_saveRevisionFormView']=new ns(_0x422836,_0x2e050e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x2c43c9{['changeId'];['_model'];constructor(_0x5cbbeb,_0x5ef592){super(_0x5cbbeb),this['_model']=_0x5ef592,this['changeId']=_0x5ef592['id'];const _0x5d40d0=this['bindTemplate'],_0x355751=R(_0x5cbbeb,_0x5ef592['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5ef592['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5ef592['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5d40d0['to']('type',_0x517949=>'ck-revision-change__'+_0x517949)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x355751}]},{'text':'\x20'+_0x5ef592['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5c7d88(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x292ad7){super(),this['id']=_0x292ad7['id']||_0x4dce4d(),this['author']=_0x292ad7['author'],this['type']=_0x292ad7['type'],this['data']=_0x292ad7['data']||{},this['rootName']=_0x292ad7['rootName'],this['set']('createdAt',_0x292ad7['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2afd34,_0x1590ae){this['newRevisionId']=_0x2afd34,this['oldRevisionId']=_0x1590ae,this['changes']=new _0x2ad968();}['_setChanges'](_0x56a35c){for(const _0xcae32c of _0x56a35c)this['changes']['add'](_0xcae32c);}}const Z={'c':_0x23c6b9,'a':_0x3e4e99,'e':_0x46de0e,'r':_0xcf47a2,'u':_0x131e84};class d extends _0x24aabd{['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[_0x4943c5,_0x276f8f,j];}constructor(_0x3e28e3){super(_0x3e28e3),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',(_0x234696,_0x927a59,_0x4ccb61)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xa2dbe0=>{for(const _0x36b414 of this['editor']['editing']['view']['document']['roots'])_0x4ccb61?_0xa2dbe0['removeClass']('ck-editor__editable__overlay',_0x36b414):_0xa2dbe0['addClass']('ck-editor__editable__overlay',_0x36b414);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x51ee7a=>null!==_0x51ee7a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x16ef7f,_0x3b8007,_0x331292)=>_0x16ef7f&&_0x331292?_0x3b8007['changes']['getIndex'](_0x331292):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4fd678,_0x574be7)=>_0x4fd678?_0x574be7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x276f8f);}['init'](){const _0x277f92=this['editor'],_0x4e5aee=new bt(_0x277f92,{'direction':'backward'}),_0xb84a9a=new bt(_0x277f92,{'direction':'forward'});(_0x277f92['commands']['add']('showPreviousChange',_0x4e5aee),_0x277f92['commands']['add']('showNextChange',_0xb84a9a),_0x277f92['commands']['add']('restoreRevision',new yt(_0x277f92)),this['on']('change:numberOfChanges',()=>{_0x4e5aee['refresh'](),_0xb84a9a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x277f92['enableReadOnlyMode']('revision-viewer'),_0x277f92['plugins']['has']('WidgetToolbarRepository'))&&_0x277f92['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3019e2){await this['loadRevisionData'](_0x3019e2);const _0x49eeb3={};for(const _0x42f227 in _0x3019e2['diffData']){if(_0x3019e2['diffData'][_0x42f227]['attachChange']&&!_0x3019e2['diffData'][_0x42f227]['attachChange']['isAttached'])continue;const _0x54bc17=this['_removeRevisionMarkers'](JSON['parse'](_0x3019e2['diffData'][_0x42f227]['insertions'])),_0x489995=this['editor']['editing']['view']['document'],_0x204556=new _0x4833c1(_0x489995,_0x54bc17['map'](_0x1aaa78=>this['_getViewObj'](_0x1aaa78)));this['editor']['data']['processor']['useFillerType']('marked'),_0x49eeb3[_0x42f227]=this['editor']['data']['processor']['toData'](_0x204556),this['editor']['data']['processor']['useFillerType']('default');}return _0x49eeb3;}async['getRevisionRootsAttributes'](_0x28776f){await this['loadRevisionData'](_0x28776f);const _0x427492={};for(const _0x43174d in _0x28776f['diffData'])_0x28776f['diffData'][_0x43174d]['attachChange']&&!_0x28776f['diffData'][_0x43174d]['attachChange']['isAttached']||(_0x427492[_0x43174d]=_0x28776f['diffData'][_0x43174d]['attributesAfter']||{});return _0x427492;}['_removeRevisionMarkers'](_0x1738cd){return(_0x1738cd=_0x1738cd['filter'](_0x3bd105=>!_0x3bd105['name']||'revision-start'!==_0x3bd105['name']&&'revision-end'!==_0x3bd105['name']))['forEach'](_0x26b757=>{'string'!=typeof _0x26b757&&(_0x26b757['children']=this['_removeRevisionMarkers'](_0x26b757['children']),_0x26b757['attributes']=_0x26b757['attributes']['filter'](_0x41dcc4=>!_0x41dcc4[0x0]['startsWith']('data-revision-')));}),_0x1738cd;}async['compare'](_0x1bf94e,_0xd3e591,_0x4329c8=!0x1){if(!this['isEnabled'])return;const _0x481aa7=this['diff'],_0x2be1f0=this['repository'],_0x576362='string'==typeof _0x1bf94e?_0x2be1f0['getRevision'](_0x1bf94e):_0x1bf94e,_0x2cb11a='string'==typeof _0xd3e591?_0x2be1f0['getRevision'](_0xd3e591):_0xd3e591,_0x5d6e1c=_0x576362['id'],_0x5a0be9=_0x2cb11a?_0x2cb11a['id']:null;if(!_0x4329c8&&this['diff']&&this['diff']['newRevisionId']===_0x5d6e1c&&this['diff']['oldRevisionId']===_0x5a0be9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5d6e1c,_0x5a0be9);const _0x264e5f=this['_getRevisionsRange'](_0x576362,_0x2cb11a,!0x0)['map'](_0x431fe0=>this['loadRevisionData'](_0x431fe0));return _0x264e5f['push'](new Promise(_0x4eea36=>{setTimeout(_0x4eea36,0x14);})),Promise['all'](_0x264e5f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x7be1c9=this['_getDiff'](_0x5d6e1c,_0x5a0be9);for(const _0x54b90a of _0x7be1c9['changes'])this['_changeIdToChange']['set'](_0x54b90a['id'],_0x54b90a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x198a9d=>{for(const _0xcabfb of this['editor']['model']['document']['getRootNames']())_0x198a9d['detachRoot'](_0xcabfb);for(const _0xa434f0 of Object['keys'](_0x7be1c9['model'])){const _0x44faee=_0x198a9d['addRoot'](_0xa434f0);for(const _0x57475d of Object['keys'](_0x7be1c9['attributes'][_0xa434f0]))_0x198a9d['setAttribute'](_0x57475d,_0x7be1c9['attributes'][_0xa434f0][_0x57475d],_0x44faee);_0x198a9d['insert'](_0x7be1c9['model'][_0xa434f0],_0x44faee,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x7be1c9['changes'])),this['isReady']=!0x0;})['catch'](_0x498f6a=>{console['error'](_0x498f6a),this['_cleanUp'](),_0x481aa7&&(this['diff']=_0x481aa7),this['isReady']=!0x0;});}['addRevisionData'](_0x9aa945,_0x20abdb){const _0x382283=this['repository']['createRevision'](_0x9aa945);return _0x382283['on']('_update',(_0x56c4eb,_0x96a66b,_0x3d693c)=>_0x20abdb(_0x96a66b,_0x3d693c,_0x382283)),this['repository']['addRevision'](_0x382283),_0x382283;}['loadRevisionData'](_0x42947b){if(!_0x42947b||_0x42947b['diffData'])return Promise['resolve']();{const _0x28b187=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x28b187,'revisionId':_0x42947b['id']})['then'](_0x301714=>{_0x42947b['_update']({'diffData':_0x301714['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},_0x2bbe6d=>{for(const _0x37800d of this['editor']['model']['document']['getRootNames']())_0x2bbe6d['detachRoot'](_0x37800d);});}['_sortAndFilterDiffChanges'](_0x297f2){const _0x10125c=[],_0x3915d6=new Map();for(const _0x55c1a2 of this['editor']['model']['document']['getRootNames']()){const _0x5bcf50=this['editor']['editing']['view']['getDomRoot'](_0x55c1a2);if(!_0x5bcf50)continue;const _0x3be814=_0x5bcf50['getClientRects']()['item'](0x0);_0x3be814&&(_0x10125c['push'](_0x55c1a2),_0x3915d6['set'](_0x55c1a2,_0x3be814));}return _0x10125c['sort']((_0x3f811a,_0x3a5c11)=>{const _0x242912=_0x3915d6['get'](_0x3f811a),_0x5b7361=_0x3915d6['get'](_0x3a5c11);return _0x242912['y']-_0x5b7361['y']||_0x242912['x']-_0x5b7361['x'];}),(_0x297f2=_0x297f2['filter'](_0x187d0a=>_0x10125c['includes'](_0x187d0a['rootName'])))['sort']((_0x3d2702,_0x3d5aad)=>_0x10125c['indexOf'](_0x3d2702['rootName'])-_0x10125c['indexOf'](_0x3d5aad['rootName'])),_0x297f2;}['_makeTape'](_0xfcda5){const _0x333295=Array['from'](_0xfcda5['markers'])['filter'](([_0x185ba5,_0x46036c])=>_0x185ba5['startsWith']('revision:')&&!_0x46036c['isCollapsed']),_0x474f31=Array['from'](this['editor']['model']['createRangeIn'](_0xfcda5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x333295['length'])for(const _0x1d3b4b of _0x474f31){const [_0x47232e,_0x40a640]=_0x333295[0x0],[,_0x4d6ffa,_0x2bc427]=_0x47232e['split'](':');if(_0x40a640['end']['isEqual'](_0x1d3b4b['nextPosition'])&&_0x333295['shift'](),(_0x1d3b4b['previousPosition']['isEqual'](_0x40a640['start'])||_0x1d3b4b['previousPosition']['isAfter'](_0x40a640['start']))&&('insertion'==_0x4d6ffa?_0x1d3b4b['isAdded']={'userId':_0x2bc427}:'deletion'==_0x4d6ffa&&(_0x1d3b4b['isRemoved']={'userId':_0x2bc427})),0x0==_0x333295['length'])break;}return _0x474f31;}['_refreshStartEndIndex'](_0x2ff1d0){const _0xa5cb1=new Map();for(let _0x126803=0x0;_0x126803<_0x2ff1d0['length'];_0x126803++)'text'===_0x2ff1d0[_0x126803]['type']?(_0x2ff1d0[_0x126803]['item']['startIndex']=_0x126803,_0x2ff1d0[_0x126803]['item']['endIndex']=_0x126803):('elementStart'===_0x2ff1d0[_0x126803]['type']?_0x2ff1d0[_0x126803]['item']['startIndex']=_0x126803:'elementEnd'===_0x2ff1d0[_0x126803]['type']&&(_0x2ff1d0[_0x126803]['item']['endIndex']=_0x126803),_0xa5cb1['set'](_0x2ff1d0[_0x126803]['id'],_0x126803));for(const _0x3fd35a of _0xa5cb1['values']())'elementStart'===_0x2ff1d0[_0x3fd35a]['type']?_0x2ff1d0[_0x3fd35a]['item']['endIndex']=_0xa5cb1['get'](_0x2ff1d0[_0x3fd35a]['pairId']):'elementEnd'===_0x2ff1d0[_0x3fd35a]['type']&&(_0x2ff1d0[_0x3fd35a]['item']['startIndex']=_0xa5cb1['get'](_0x2ff1d0[_0x3fd35a]['pairId']));}['_processTape'](_0x354f61){for(let _0x261b6a=0x0;_0x261b6a<_0x354f61['length'];_0x261b6a++){if('elementStart'===_0x354f61[_0x261b6a]['type'])_0x354f61[_0x261b6a]['item']['startIndex']=_0x261b6a;else{if('elementEnd'===_0x354f61[_0x261b6a]['type']){_0x354f61[_0x261b6a]['item']['endIndex']=_0x261b6a;const _0x28b58b=_0x354f61[_0x261b6a]['item']['startIndex'];_0x354f61[_0x28b58b]['pairId']=_0x354f61[_0x261b6a]['id'],_0x354f61[_0x261b6a]['pairId']=_0x354f61[_0x28b58b]['id'];}else _0x354f61[_0x261b6a]['item']['startIndex']=_0x261b6a,_0x354f61[_0x261b6a]['item']['endIndex']=_0x261b6a,_0x354f61[_0x261b6a]['pairId']=null;}_0x354f61[_0x261b6a]['markersStart']||(_0x354f61[_0x261b6a]['markersStart']=[],_0x354f61[_0x261b6a]['markersEnd']=[]);}}['_markInsertions'](_0x598f08,_0x43e6c5){const _0x296cab=_0x598f08['filter'](_0x1fccb3=>!_0x1fccb3['isAdded']);for(let _0x5e87c7=0x0;_0x5e87c7<_0x43e6c5['length'];_0x5e87c7++)_0x43e6c5[_0x5e87c7]['isAdded']&&(_0x296cab[_0x5e87c7]['isAdded']=_0x43e6c5[_0x5e87c7]['isAdded']);}['_makeModelFromViewString'](_0x7e8d2e){const _0x283a5f=JSON['parse'](_0x7e8d2e),_0xf75380=this['editor']['editing']['view']['document'],_0x42811a=new _0x4833c1(_0xf75380,_0x283a5f['map'](_0x427313=>this['_getViewObj'](_0x427313)));return this['editor']['data']['toModel'](_0x42811a);}['_getViewObj'](_0x4cc5a5){const _0x3b2f53=this['editor']['editing']['view']['document'];if('string'==typeof _0x4cc5a5)return new _0xd57083(_0x3b2f53,_0x4cc5a5);{const _0x5d64a6=_0x4cc5a5['children']['map'](_0x1bbedf=>this['_getViewObj'](_0x1bbedf));return new(Z[_0x4cc5a5['type']]||_0x2c4196)(_0x3b2f53,_0x4cc5a5['name'],_0x4cc5a5['attributes'],_0x5d64a6);}}['_getDiff'](_0x18c7dc,_0x439e9b=null){const _0x1beb89=this['repository']['getRevision'](_0x18c7dc),_0x27872b=_0x439e9b?this['repository']['getRevision'](_0x439e9b):null,_0x3dbdd2=this['_getRevisionsRange'](_0x1beb89,_0x27872b),_0x499c2b=_0x3dbdd2[_0x3dbdd2['length']-0x1],_0x3ad2c6=new Map(),_0x16af63={'model':{},'attributes':{},'changes':[]},_0x578150=new Set(),_0x2387b8=new Map();for(let _0x28b50a=_0x3dbdd2['length']-0x1;_0x28b50a>=0x0;_0x28b50a--){const _0x19b842=_0x3dbdd2[_0x28b50a];for(const _0x579c8c of Object['keys'](_0x19b842['diffData']))if(_0x19b842['diffData'][_0x579c8c]['attachChange']){const _0x24bf2e=_0x19b842['diffData'][_0x579c8c]['attachChange'];_0x24bf2e['isAttached']?(_0x578150['add'](_0x579c8c),_0x2387b8['has'](_0x579c8c)&&_0x2387b8['get'](_0x579c8c)['userId']==_0x24bf2e['userId']?_0x2387b8['delete'](_0x579c8c):_0x2387b8['set'](_0x579c8c,_0x24bf2e)):_0x2387b8['has'](_0x579c8c)?(_0x578150['delete'](_0x579c8c),_0x2387b8['delete'](_0x579c8c)):(_0x578150['add'](_0x579c8c),_0x2387b8['set'](_0x579c8c,_0x24bf2e));}else _0x578150['add'](_0x579c8c);}for(const _0x17f8b2 of _0x578150){const _0x3956d0=_0x2387b8['has'](_0x17f8b2)&&!_0x2387b8['get'](_0x17f8b2)['isAttached'];let _0x1ebb8d=_0x3956d0?_0x3dbdd2['length']-0x1:0x0;const _0x467f8c=_0x3956d0?-0x1:0x1;for(;_0x3dbdd2[_0x1ebb8d];){const _0x2a917f=_0x3dbdd2[_0x1ebb8d];if(_0x2a917f['diffData'][_0x17f8b2]){const _0x3e87a9=_0x3956d0?_0x2a917f['diffData'][_0x17f8b2]['attributesBefore']:_0x2a917f['diffData'][_0x17f8b2]['attributesAfter'];_0x16af63['attributes'][_0x17f8b2]=_0x3e87a9?_0x295472(_0x3e87a9):{};break;}_0x1ebb8d+=_0x467f8c;}}for(const _0x3bdb87 of _0x3dbdd2){_0x3bdb87['model']={};for(const _0x4bd6c2 of _0x3bdb87['authors'])_0x3ad2c6['set'](_0x4bd6c2['id'],_0x4bd6c2);for(const _0x544f46 of _0x578150){const _0x2c7004=_0x3bdb87['diffData'][_0x544f46]?_0x3bdb87['diffData'][_0x544f46]['insertions']:'[]',_0x483aac=_0x3bdb87['diffData'][_0x544f46]?_0x3bdb87['diffData'][_0x544f46]['deletions']:'[]';_0x3bdb87['model'][_0x544f46]={'insertions':this['_makeModelFromViewString'](_0x2c7004),'deletions':this['_makeModelFromViewString'](_0x483aac)};}}for(const _0x5d1d87 of _0x578150){let _0x427d9b=null,_0x74499a=0x0;const _0x4202f5=new Map(Array['from'](_0x1beb89['model'][_0x5d1d87]['insertions']['markers'])['filter'](([_0x328df5])=>!_0x328df5['startsWith']('revision:')));let _0x50b348=0x0;for(const _0x259823 of _0x3dbdd2){const _0x198d6f=this['_makeTape'](_0x259823['model'][_0x5d1d87]['insertions']);_0x259823==_0x1beb89?(_0x427d9b=_0x198d6f,_0x74499a=_0x427d9b['length'],_0x427d9b['forEach'](_0x508e01=>{_0x508e01['id']=_0x50b348++;}),this['_processTape'](_0x427d9b)):this['_markInsertions'](_0x427d9b,_0x198d6f);const _0x3ef541=_0x427d9b['filter'](_0x3d4985=>!_0x3d4985['isAdded'])['map'](_0x5030f9=>_0x5030f9['id']);let _0x589642=0x0;const _0x58790c=this['_makeTape'](_0x259823['model'][_0x5d1d87]['deletions']);_0x58790c['forEach'](_0x41d4cb=>{_0x41d4cb['isRemoved']?_0x41d4cb['id']=_0x74499a++:_0x41d4cb['id']=_0x3ef541[_0x589642++];}),this['_processTape'](_0x58790c),this['_setDistance'](_0x427d9b,'isAdded'),this['_setDistance'](_0x58790c,'isRemoved'),_0x259823==_0x1beb89&&this['_markMarkers'](_0x427d9b,_0x4202f5),_0x427d9b=this['_joinTapes'](_0x427d9b,_0x58790c),this['_refreshStartEndIndex'](_0x427d9b),this['_setDistance'](_0x427d9b,'isRemoved');}_0x427d9b=_0x427d9b['filter'](_0xce7c44=>!(_0xce7c44['isAdded']&&_0xce7c44['isRemoved']));const _0x19949b=new Map(_0x499c2b['model'][_0x5d1d87]['deletions']['markers']),_0x19dd8e=new Set(_0x4202f5['keys']());for(const _0x459230 of _0x19949b['keys']())_0x19dd8e['delete'](_0x459230);this['_markSuggestions'](_0x427d9b,_0x19dd8e),this['_fixObsoleteTags'](_0x427d9b),_0x427d9b=this['_removeMissingPairs'](_0x427d9b),_0x427d9b=this['_markMismatchedRemovedTags'](_0x427d9b),_0x427d9b=this['_removeUnsupportedChanges'](_0x427d9b);const {root:_0x212927,changes:_0x3a78aa}=this['_makeModelFromTape'](_0x427d9b,_0x3ad2c6,_0x5d1d87);_0x16af63['model'][_0x5d1d87]=_0x212927;const _0x3540e6=_0x2387b8['get'](_0x5d1d87);if(_0x3540e6){const _0x2b978a=_0x3ad2c6['get'](_0x3540e6['userId']),_0x1bc2bc=new r({'author':_0x2b978a,'type':_0x3540e6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d1d87});_0x3a78aa['unshift'](_0x1bc2bc),_0x16af63['attributes'][_0x5d1d87]['revisionHistoryAttachChange']=_0x1bc2bc['id'];}_0x16af63['changes']=_0x16af63['changes']['concat'](_0x3a78aa);}return _0x16af63;}['_markMarkers'](_0x257b62,_0x2b768f){for(let _0x1d4892=0x0;_0x1d4892<_0x257b62['length'];_0x1d4892++)for(const [_0x50712c,_0x3b5094]of _0x2b768f)_0x3b5094['start']['isEqual'](_0x257b62[_0x1d4892]['previousPosition'])&&_0x257b62[_0x1d4892]['markersStart']['push'](_0x50712c),_0x3b5094['end']['isEqual'](_0x257b62[_0x1d4892]['nextPosition'])&&_0x257b62[_0x1d4892]['markersEnd']['push'](_0x50712c);}['_joinTapes'](_0x4d828d,_0x263598){let _0x564555=[],_0x32ca2e=0x0,_0x545e2a=0x0;for(;_0x32ca2e<_0x4d828d['length']||_0x545e2a<_0x263598['length'];){const _0x4011d4=_0x4d828d[_0x32ca2e]||{},_0x55d00e=_0x263598[_0x545e2a]||{};if(_0x4011d4['id']==_0x55d00e['id'])_0x32ca2e++,_0x545e2a++,_0x564555['push'](_0x4011d4);else{if(_0x55d00e['isRemoved']&&_0x4011d4['isAdded']){const {commonTape:_0x1fea78,iEnd:_0x2b3555,jEnd:_0x35795c}=this['_threeWayMerge'](_0x4d828d,_0x32ca2e,_0x263598,_0x545e2a);_0x564555=_0x564555['concat'](_0x1fea78),_0x32ca2e=_0x2b3555,_0x545e2a=_0x35795c;}else _0x55d00e['isRemoved']?(_0x545e2a++,_0x564555['push'](_0x55d00e)):(_0x32ca2e++,_0x564555['push'](_0x4011d4));}}return _0x564555;}['_markSuggestions'](_0x57bcaf,_0x4bd173){const _0x32cf2b=[];for(let _0x460be3=0x0;_0x460be3<_0x57bcaf['length'];_0x460be3++){for(let _0x3d4fa7=0x0;_0x3d4fa7<_0x57bcaf[_0x460be3]['markersStart']['length'];_0x3d4fa7++){const _0x563ec4=_0x57bcaf[_0x460be3]['markersStart'][_0x3d4fa7];if(!_0x4bd173['has'](_0x563ec4))continue;const {group:_0x5226b5,type:_0x53cb37,authorId:_0x2dd7c2}=_0x1d71f0(_0x563ec4);'revision-suggestion'!=_0x5226b5||'insertion'!=_0x53cb37&&'deletion'!=_0x53cb37||(_0x32cf2b['unshift']({'type':_0x53cb37,'name':_0x563ec4,'userId':_0x2dd7c2}),_0x57bcaf[_0x460be3]['markersStart']['splice'](_0x3d4fa7,0x1),_0x3d4fa7--);}_0x45504b(_0x57bcaf[_0x460be3]);for(let _0x18f018=0x0;_0x18f018<_0x57bcaf[_0x460be3]['markersEnd']['length'];_0x18f018++){const _0x526bdd=_0x57bcaf[_0x460be3]['markersEnd'][_0x18f018];if(!_0x4bd173['has'](_0x526bdd))continue;const {group:_0x5d4593,type:_0x144d85}=_0x1d71f0(_0x526bdd);if('revision-suggestion'!=_0x5d4593||'insertion'!=_0x144d85&&'deletion'!=_0x144d85)continue;_0x57bcaf[_0x460be3]['markersEnd']['splice'](_0x18f018,0x1),_0x18f018--;const _0x32fc79=_0x32cf2b['findIndex'](_0x562bb8=>_0x562bb8['name']==_0x526bdd);_0x32fc79>-0x1&&_0x32cf2b['splice'](_0x32fc79,0x1);}}function _0x1d71f0(_0x164c57){const _0x571db3=_0x164c57['split'](':');return{'group':_0x571db3[0x0],'type':_0x571db3[0x1],'subType':_0x571db3['length']>=0x5?_0x571db3[0x2]:null,'id':_0x571db3['length']<0x5?_0x571db3[0x2]:_0x571db3[0x3],'authorId':_0x571db3['length']<0x5?_0x571db3[0x3]:_0x571db3[0x4],'markerCount':0x6==_0x571db3['length']?_0x571db3[0x5]:null};}function _0x45504b(_0x2a3afb){for(let _0xbdb32e=0x0;_0xbdb32e<_0x32cf2b['length'];_0xbdb32e++){if(_0x2a3afb['isAdded']&&'insertion'==_0x32cf2b[_0xbdb32e]['type'])return _0x2a3afb['isAddSuggestion']=_0x32cf2b[_0xbdb32e],void delete _0x2a3afb['isAdded'];if(!_0x2a3afb['isAdded']&&!_0x2a3afb['isRemoved']&&'deletion'==_0x32cf2b[_0xbdb32e]['type'])return void(_0x2a3afb['isRemoveSuggestion']=_0x32cf2b[_0xbdb32e]);}}}['_setDistance'](_0x451955,_0x2bdbb7){let _0x1a066f=0x0,_0x52bcd2=!0x1;const _0x49ee95=new Map();for(const _0x4fe36a of _0x451955)_0x4fe36a[_0x2bdbb7]?_0x52bcd2&&(_0x1a066f++,_0x52bcd2=!0x1):(_0x1a066f++,_0x52bcd2=!0x0),_0x49ee95['set'](_0x4fe36a['id'],_0x1a066f);for(let _0x5b6132=0x0;_0x5b6132<_0x451955['length'];_0x5b6132++){if('isRemoved'==_0x2bdbb7&&_0x451955[_0x5b6132]['isAdded']||'isAdded'==_0x2bdbb7&&_0x451955[_0x5b6132]['isRemoved'])continue;if('text'==_0x451955[_0x5b6132]['type']){_0x451955[_0x5b6132]['distance']=0x0;continue;}const _0x547043=_0x49ee95['get'](_0x451955[_0x5b6132]['pairId']),_0x1fbfe6=_0x49ee95['get'](_0x451955[_0x5b6132]['id']);_0x451955[_0x5b6132]['distance']=_0x547043-_0x1fbfe6;}}['_getRevisionsRange'](_0x5e62bd,_0x1d9637,_0x480789=!0x1){const _0x5b0ff8=[];let _0x5c21ea=this['repository']['getIndex'](_0x5e62bd),_0x4427d8=this['repository']['getIndex'](_0x1d9637);for(-0x1==_0x4427d8&&(_0x4427d8=this['repository']['_revisions']['length'],_0x480789=!0x1);_0x5c21ea<_0x4427d8;)_0x5b0ff8['push'](this['repository']['getRevision'](_0x5c21ea)),_0x5c21ea++;return _0x480789&&_0x5b0ff8['push'](this['repository']['getRevision'](_0x5c21ea)),_0x5b0ff8;}['_threeWayMerge'](_0x5976c4,_0x2fe1ec,_0x475c73,_0x3cf5c8){const _0x32e60e=this['editor']['model']['schema'];let _0x58643c=_0x2fe1ec;for(;_0x5976c4[_0x58643c]&&_0x5976c4[_0x58643c]['isAdded'];)_0x58643c++;let _0x462413=_0x3cf5c8;for(;_0x475c73[_0x462413]&&_0x475c73[_0x462413]['isRemoved'];)_0x462413++;_0x43bca3(_0x5976c4,_0x2fe1ec,_0x58643c),_0x43bca3(_0x475c73,_0x3cf5c8,_0x462413);const _0xd7db85=_0x475c73['slice'](_0x3cf5c8,_0x462413)['concat'](_0x5976c4['slice'](_0x2fe1ec,_0x58643c));return _0xd7db85['sort']((_0x52bd34,_0x41d8d3)=>_0x52bd34['side']!=_0x41d8d3['side']?_0x52bd34['side']-_0x41d8d3['side']:_0x52bd34['level']!=_0x41d8d3['level']?_0x52bd34['level']-_0x41d8d3['level']:_0x52bd34['distance']!=_0x41d8d3['distance']?_0x41d8d3['distance']-_0x52bd34['distance']:!!_0x52bd34['isAdded']!=!!_0x41d8d3['isAdded']?-0x1==_0x52bd34['side']||0x0==_0x52bd34['side']?_0x52bd34['isAdded']?-0x1:0x1:_0x52bd34['isAdded']?0x1:-0x1:_0x52bd34['index']-_0x41d8d3['index']),{'commonTape':_0xd7db85,'iEnd':_0x58643c,'jEnd':_0x462413};function _0x43bca3(_0x18ca20,_0x222bd1,_0x22c3b9){let _0x4e6231=-0x1,_0x53cafa=Number['POSITIVE_INFINITY'],_0xf1a558=!0x0;for(let _0x55c1f4=_0x222bd1;_0x55c1f4<_0x22c3b9;_0x55c1f4++)if(_0x32e60e['isInline'](_0x18ca20[_0x55c1f4]['item'])||(_0xf1a558=!0x1),_0x18ca20[_0x55c1f4]['item']['startIndex']<_0x222bd1&&(_0x4e6231=_0x55c1f4),_0x18ca20[_0x55c1f4]['item']['endIndex']>=_0x22c3b9){_0x53cafa=_0x55c1f4;break;}_0xf1a558&&(_0x4e6231=_0x22c3b9-0x1);for(let _0x3ea76d=_0x222bd1;_0x3ea76d<_0x22c3b9;_0x3ea76d++)_0x18ca20[_0x3ea76d]['side']=_0x3ea76d<=_0x4e6231?-0x1:_0x3ea76d<_0x53cafa?0x0:0x1,_0x18ca20[_0x3ea76d]['index']=_0x3ea76d;let _0x4a5a12=0x0;for(let _0x549d25=_0x222bd1;_0x549d25<=_0x4e6231;_0x549d25++)0x0==_0x18ca20[_0x549d25]['distance']?_0x18ca20[_0x549d25]['level']=_0x4a5a12:(_0x4a5a12++,_0x18ca20[_0x549d25]['level']=_0x4a5a12,_0x4a5a12++);for(let _0x1f0f0e=_0x222bd1;_0x1f0f0e<_0x22c3b9;_0x1f0f0e++)0x0==_0x18ca20[_0x1f0f0e]['side']&&(_0x18ca20[_0x1f0f0e]['level']=_0x4a5a12);_0x4a5a12=0x0;for(let _0x17824b=_0x22c3b9-0x1;_0x17824b>=_0x53cafa;_0x17824b--)0x0==_0x18ca20[_0x17824b]['distance']?_0x18ca20[_0x17824b]['level']=_0x4a5a12:(_0x4a5a12--,_0x18ca20[_0x17824b]['level']=_0x4a5a12,_0x4a5a12--);}}['_fixObsoleteTags'](_0x4a3208){const _0x181a91=new Map(),_0x44e74d=this['editor']['model']['schema'];for(let _0x205369=0x1;_0x205369<_0x4a3208['length'];_0x205369++){let _0x32c756,_0x552ba3,_0x4dea1d;const _0x118765=_0x4a3208[_0x205369],_0x253c04=_0x4a3208[_0x205369-0x1];if('text'==_0x118765['type'])continue;if(_0x118765['type']!=_0x253c04['type'])continue;if(!_0x44e74d['isBlock'](_0x253c04['item'])||_0x44e74d['isLimit'](_0x253c04['item']))continue;if(!_0x44e74d['isBlock'](_0x118765['item'])||_0x44e74d['isLimit'](_0x118765['item']))continue;if((_0x4a3208[_0x205369]['isAdded']||_0x4a3208[_0x205369]['isAddSuggestion'])&&_0x4a3208[_0x205369-0x1]['isRemoved'])_0x32c756=_0x4a3208[_0x205369],_0x552ba3=_0x4a3208[_0x205369-0x1],_0x4dea1d=_0x205369-0x1;else{if(!_0x4a3208[_0x205369]['isRemoved']||!_0x4a3208[_0x205369-0x1]['isAdded']&&!_0x4a3208[_0x205369-0x1]['isAddSuggestion'])continue;_0x32c756=_0x4a3208[_0x205369-0x1],_0x552ba3=_0x4a3208[_0x205369],_0x4dea1d=_0x205369;}const _0x224d41=_0x32c756['level']==_0x552ba3['level'],_0x1a7f7e=Math['abs'](_0x32c756['level'])<Math['abs'](_0x552ba3['level'])&&0x0==_0x552ba3['distance'];(_0x224d41||_0x1a7f7e)&&(_0x181a91['set'](_0x552ba3['id'],_0x32c756['id']),_0x4a3208['splice'](_0x4dea1d,0x1),_0x205369--,_0x32c756['isAdded']=!0x1);}for(let _0xab0966=0x0;_0xab0966<_0x4a3208['length'];_0xab0966++)_0x181a91['has'](_0x4a3208[_0xab0966]['pairId'])&&(_0x4a3208[_0xab0966]['pairId']=_0x181a91['get'](_0x4a3208[_0xab0966]['pairId']));}['_removeMissingPairs'](_0x4e2ddc){const _0x517902=new Set(_0x4e2ddc['map'](_0xc0b0a7=>_0xc0b0a7['id']));for(let _0x51a75e=0x0;_0x51a75e<_0x4e2ddc['length'];_0x51a75e++)_0x517902['has'](_0x4e2ddc[_0x51a75e]['pairId'])||0x0==_0x4e2ddc[_0x51a75e]['distance']||(_0x4e2ddc[_0x51a75e]['isIncorrect']=!0x0);return _0x4e2ddc['filter'](_0x10a331=>!_0x10a331['isIncorrect']);}['_markMismatchedRemovedTags'](_0x137910){const _0x3cb612=new Set();for(let _0x3916ed=0x0;_0x3916ed<_0x137910['length'];_0x3916ed++){if(_0x3cb612['has'](_0x137910[_0x3916ed]['id'])&&_0x137910[_0x3916ed]['isRemoved']&&(_0x137910[_0x3916ed]['isIncorrect']=!0x0),_0x137910[_0x3916ed]['isIncorrect'])continue;if(0x0==_0x137910[_0x3916ed]['distance'])continue;if('elementStart'!=_0x137910[_0x3916ed]['type'])continue;if(null==_0x137910[_0x3916ed]['pairId'])continue;let _0x4faded=_0x3916ed+0x1,_0x3ca314=0x0;for(;_0x137910[_0x4faded]['id']!=_0x137910[_0x3916ed]['pairId'];)'elementStart'==_0x137910[_0x4faded]['type']?_0x3ca314++:'elementEnd'==_0x137910[_0x4faded]['type']&&_0x3ca314--,_0x4faded++;if(0x0!=_0x3ca314){if(_0x137910[_0x3916ed]['isRemoved'])_0x137910[_0x3916ed]['isIncorrect']=!0x0;else{for(;_0x4faded!=_0x3916ed;)_0x137910[_0x4faded]['isRemoved']&&0x0!=_0x137910[_0x4faded]['distance']&&(_0x137910[_0x4faded]['isIncorrect']=!0x0,_0x3cb612['add'](_0x137910[_0x4faded]['pairId'])),_0x4faded--;}}}return _0x137910['filter'](_0x4b9710=>!_0x4b9710['isIncorrect']);}['_removeUnsupportedChanges'](_0x2d2e39){const _0x4fed9c=this['editor']['model']['schema'];for(let _0xede69e=0x0;_0xede69e<_0x2d2e39['length'];_0xede69e++){if(!(_0x2d2e39[_0xede69e]['isAdded']||_0x2d2e39[_0xede69e]['isAddSuggestion']||_0x2d2e39[_0xede69e]['isRemoved']||_0x2d2e39[_0xede69e]['isRemoveSuggestion']))continue;if(0x0==_0x2d2e39[_0xede69e]['distance'])continue;const _0x493aeb=_0x2d2e39[_0xede69e]['item'];_0x4fed9c['isBlock'](_0x493aeb)||_0x4fed9c['isLimit'](_0x493aeb)||(_0x2d2e39[_0xede69e]['isAdded']&&delete _0x2d2e39[_0xede69e]['isAdded'],_0x2d2e39[_0xede69e]['isAddSuggestion']&&delete _0x2d2e39[_0xede69e]['isAddSuggestion'],_0x2d2e39[_0xede69e]['isRemoveSuggestion']&&delete _0x2d2e39[_0xede69e]['isRemoveSuggestion'],_0x2d2e39[_0xede69e]['isRemoved']&&(_0x2d2e39[_0xede69e]['isIncorrect']=!0x0));}return _0x2d2e39['filter'](_0x196297=>!_0x196297['isIncorrect']);}['_makeModelFromTape'](_0x3aaf89,_0x2630d9,_0x475fb6){const _0xdb00a4=new wt(),_0x3b3af9=[],_0x2a1b51=new Map(),_0x1c9470=this['editor']['model'],_0x372309=_0x1c9470['schema'],_0x274d50=[_0xdb00a4],_0x114564={},_0x491bd7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3808d4=null;const _0x34af5f=[0x0];for(let _0x2f1d0b=0x0;_0x2f1d0b<_0x3aaf89['length'];_0x2f1d0b++)if('elementStart'===_0x3aaf89[_0x2f1d0b]['type']){_0x3aaf89[_0x2f1d0b]['previousPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f);const _0x129676=new ft(_0x3aaf89[_0x2f1d0b]['item']['name'],_0x3aaf89[_0x2f1d0b]['item']['getAttributes']());_0x274d50[0x0]['_appendChild'](_0x129676),_0x34af5f['push'](0x0),_0x274d50['unshift'](_0x129676),_0x3aaf89[_0x2f1d0b]['nextPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f);}else'elementEnd'===_0x3aaf89[_0x2f1d0b]['type']?(_0x274d50['shift'](),_0x3aaf89[_0x2f1d0b]['previousPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f),_0x34af5f['pop'](),_0x34af5f[_0x34af5f['length']-0x1]++,_0x3aaf89[_0x2f1d0b]['nextPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f)):(_0x3aaf89[_0x2f1d0b]['previousPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f),_0x3808d4?_0x3808d4['_data']+=_0x3aaf89[_0x2f1d0b]['item']['data']:_0x3808d4=new _t(_0x3aaf89[_0x2f1d0b]['item']['data'],_0x3aaf89[_0x2f1d0b]['item']['getAttributes']()),_0x3aaf89[_0x2f1d0b+0x1]&&'text'===_0x3aaf89[_0x2f1d0b+0x1]['type']&&_0x1082d1(_0x3808d4,_0x3aaf89[_0x2f1d0b+0x1]['item'])||(_0x274d50[0x0]['_appendChild'](_0x3808d4),_0x3808d4=null),_0x34af5f[_0x34af5f['length']-0x1]+=_0x3aaf89[_0x2f1d0b]['item']['offsetSize'],_0x3aaf89[_0x2f1d0b]['nextPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f));for(let _0x2f07ee=0x0;_0x2f07ee<_0x3aaf89['length'];_0x2f07ee++){const _0x499324=_0x3aaf89[_0x2f07ee]['previousPosition'],_0x135cc9=_0x3aaf89[_0x2f07ee]['nextPosition'];for(const _0x13f00a of _0x3aaf89[_0x2f07ee]['markersStart'])_0x2a1b51['set'](_0x13f00a,{'start':_0x499324,'end':null});_0x4bc19d('isRemoveSuggestion',_0x2f07ee,_0x499324,_0x135cc9),_0x4bc19d('isAddSuggestion',_0x2f07ee,_0x499324,_0x135cc9),_0x4bc19d('isRemoved',_0x2f07ee,_0x499324,_0x135cc9),_0x4bc19d('isAdded',_0x2f07ee,_0x499324,_0x135cc9);for(const _0x128f8e of _0x3aaf89[_0x2f07ee]['markersEnd']){_0x2a1b51['get'](_0x128f8e)['end']=_0x135cc9;}}for(const [_0x55b556,_0x2c481c]of _0x2a1b51){const _0x483481=this['editor']['model']['createRange'](_0x2c481c['start'],_0x2c481c['end']);_0xdb00a4['markers']['set'](_0x55b556,_0x483481);}return _0x3b3af9['sort']((_0x48ea01,_0x2b7795)=>{const _0x3cac0e=_0xdb00a4['markers']['get']('revision:'+_0x48ea01['id']),_0x773f7=_0xdb00a4['markers']['get']('revision:'+_0x2b7795['id']);return _0x3cac0e['start']['isBefore'](_0x773f7['start'])?-0x1:_0x3cac0e['start']['isAfter'](_0x773f7['start'])?0x1:_0x3cac0e['end']['isBefore'](_0x773f7['end'])?-0x1:_0x3cac0e['end']['isAfter'](_0x773f7['end'])?0x1:'add'===_0x48ea01['type']?-0x1:0x1;}),{'root':_0xdb00a4,'changes':_0x3b3af9};function _0x4bc19d(_0x255722,_0x343552,_0x509cfd,_0x5e2c57){const _0x44de08=!!_0x3aaf89[_0x343552][_0x255722],_0x4b3dd1=_0x44de08?_0x3aaf89[_0x343552][_0x255722]['userId']:null,_0x4f3e11=_0x343552===_0x3aaf89['length']-0x1,_0x35a031=_0x491bd7[_0x255722][0x0],_0x553602=_0x372309['isObject'](_0x3aaf89[_0x343552]['item']);!_0x114564[_0x255722]&&_0x44de08?_0x114564[_0x255722]={'start':_0x509cfd,'tapeItem':_0x3aaf89[_0x343552],'userId':_0x4b3dd1,'type':_0x255722}:_0x114564[_0x255722]&&!_0x44de08?(_0x114564[_0x255722]['end']=_0x509cfd,_0x2c50ce(_0x114564[_0x255722]),_0x114564[_0x255722]=null):_0x114564[_0x255722]&&_0x44de08&&_0x114564[_0x255722]['userId']!==_0x4b3dd1&&(_0x114564[_0x255722]['end']=_0x509cfd,_0x35a031&&_0x35a031['userId']===_0x114564[_0x255722]['userId']||_0x2c50ce(_0x114564[_0x255722]),_0x114564[_0x255722]={'start':_0x509cfd,'tapeItem':_0x3aaf89[_0x343552],'userId':_0x4b3dd1,'type':_0x255722}),_0x114564[_0x255722]&&_0x553602&&('elementStart'!==_0x3aaf89[_0x343552]['type']||_0x35a031&&_0x35a031['userId']===_0x4b3dd1||_0x491bd7[_0x255722]['unshift']({'userId':_0x4b3dd1,'object':_0x3aaf89[_0x343552]['item'],'change':_0x114564[_0x255722]}),'elementEnd'===_0x3aaf89[_0x343552]['type']&&_0x35a031&&_0x35a031['object']===_0x3aaf89[_0x343552]['item']&&(_0x491bd7[_0x255722]['shift'](),_0x114564[_0x255722]=_0x35a031['change'])),_0x114564[_0x255722]&&_0x4f3e11&&(_0x114564[_0x255722]['end']=_0x5e2c57,_0x2c50ce(_0x114564[_0x255722]),_0x114564[_0x255722]=null);}function _0x2c50ce({start:_0x1e6024,end:_0x23d7ef,tapeItem:_0x5f5417,userId:_0x23837e,type:_0x5bed2d}){const _0x2b6bba=_0x5f5417['item'],_0xa5ff27=_0x1c9470['schema']['isBlock'](_0x2b6bba)&&!_0x1c9470['schema']['isLimit'](_0x2b6bba),_0x4a5556=_0x1e6024['nodeAfter']==_0x23d7ef['parent']&&_0x23d7ef['isAtStart'];if(_0xa5ff27&&_0x4a5556)return;const _0x57d3f7=_0x1c9470['createRange'](_0x1e6024,_0x23d7ef),_0x185204=_0x2630d9['get'](_0x23837e),_0x150e21=new r({'author':_0x185204,'type':'isAdded'==_0x5bed2d||'isAddSuggestion'==_0x5bed2d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5bed2d||'isRemoveSuggestion'==_0x5bed2d},'createdAt':new Date(),'rootName':_0x475fb6});_0x3b3af9['push'](_0x150e21),_0xdb00a4['markers']['set']('revision:'+_0x150e21['id'],_0x57d3f7);}function _0x1082d1(_0x15b065,_0x4b98c5){const _0x245d9f=_0x15b065['getAttributes'](),_0x304056=_0x4b98c5['getAttributes']();for(const _0x49bdb6 of _0x245d9f){if(_0x49bdb6[0x1]!==_0x4b98c5['getAttribute'](_0x49bdb6[0x0]))return!0x1;_0x304056['next']();}return _0x304056['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3f34e1=>{const _0x5e0c66=_0x3f34e1['markerName']['split'](':')[0x1],_0x565b66=this['_getChangeFromId'](_0x5e0c66);if(!_0x565b66)return null;const _0x3ece90='add'==_0x565b66['type']?'insertion':'deletion',_0x2cd11a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3ece90];return _0x565b66['data']['isSuggestion']&&_0x2cd11a['push']('ck-suggestion-marker-'+_0x3ece90+'-new'),this['activeChange']==_0x565b66&&_0x2cd11a['push']('ck-suggestion-marker--active'),{'classes':_0x2cd11a,'attributes':{'data-change-id':_0x5e0c66}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3abe2e=>{_0x3abe2e['on']('element:pre',(_0x468efd,_0x14a68f,_0x3112b8)=>{const _0x3279da=_0x14a68f['viewItem']['getChild'](0x0);if(!_0x3279da||!_0x3279da['is']('element','code'))return;if(!_0x3112b8['consumable']['consume'](_0x3279da,{'attributes':['vid_start','vid_end']}))return;const _0x5aaf4b=_0x14a68f['modelRange']['start']['nodeAfter'];_0x3112b8['writer']['setAttribute']('vid_start',_0x3279da['getAttribute']('vid_start'),_0x5aaf4b),_0x3112b8['writer']['setAttribute']('vid_end',_0x3279da['getAttribute']('vid_end'),_0x5aaf4b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x193fd7=>{_0x193fd7['on']('element',(_0x22d3d6,_0x397cec,_0x74f73d)=>{if(!_0x74f73d['consumable']['consume'](_0x397cec['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x397cec['modelRange']['isCollapsed'])return;const _0x1dc4cb=_0x397cec['modelRange']['start']['nodeAfter'];_0x1dc4cb['hasAttribute']('vid_start')||_0x1dc4cb['hasAttribute']('vid')||(_0x74f73d['writer']['setAttribute']('vid_start',_0x397cec['viewItem']['getAttribute']('vid_start'),_0x1dc4cb),_0x74f73d['writer']['setAttribute']('vid_end',_0x397cec['viewItem']['getAttribute']('vid_end'),_0x1dc4cb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x40d1a8=>_0x40d1a8['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x368526,[,_0x2f0691])=>{['vid_start','vid_end','vid']['includes'](_0x2f0691)&&(_0x368526['return']=!0x0,_0x368526['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x13e606=>{_0x13e606['on']('attribute:vid',(_0x68016c,_0x10ff5e,_0x22bce0)=>{if('\x20'!=_0x10ff5e['item']['data']||_0x10ff5e['item']['parent']['maxOffset']>0x1)return;if(!_0x22bce0['consumable']['consume'](_0x10ff5e['item'],_0x68016c['name']))return;const _0x5b43dd=_0x22bce0['writer'],_0x37672e=_0x22bce0['mapper']['toViewRange'](_0x10ff5e['range']);_0x5b43dd['wrap'](_0x37672e,_0x5b43dd['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x9c69a4){const _0x1dcde9=_0x9c69a4['plugins']['get']('RevisionViewer');return(_0x321421,_0x73afe2,_0x533549)=>{const _0x2ccabf=_0x73afe2['markerName']['split'](':')[0x1],_0x36bbfa=_0x1dcde9['_getChangeFromId'](_0x2ccabf);if(!_0x36bbfa)return null;const _0x4f48c7='add'==_0x36bbfa['type']?'split':'merge';if(!_0x533549['consumable']['test'](_0x73afe2['markerRange'],_0x321421['name']))return;const _0x2fc0b8=_0x73afe2['markerRange']['getWalker'](),_0x1ef924=_0x73afe2['markerRange']['start'],_0x5eea7b=_0x9c69a4['model']['schema'];let _0x27345c=null,_0x96f11f=null,_0x12f46e=!0x1,_0x54be47=!0x1;for(const _0x5b547a of _0x2fc0b8){const _0x5f26a2=_0x5b547a['item'];_0x12f46e=_0x12f46e||_0x5eea7b['isContent'](_0x5f26a2);const _0x3606eb=_0x533549['mapper']['toViewElement'](_0x5f26a2);if(_0x3606eb&&_0x3606eb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b547a['type']&&(_0x5eea7b['isBlock'](_0x5f26a2)&&!_0x5eea7b['isLimit'](_0x5f26a2)&&(_0x5f26a2['nextSibling']||_0x1ef924['isAtEnd']?_0x27345c&&_0x27345c['parent']==_0x5f26a2||(_0x27345c=_0x5f26a2,_0x229a75(_0x5b547a['previousPosition']),_0x54be47=!0x0):_0x96f11f=_0x96f11f||_0x5b547a['previousPosition']));}function _0x229a75(_0x12b5d7){const _0x34387f=_0x533549['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f48c7}),_0x41ce10=_0x533549['mapper']['toViewPosition'](_0x12b5d7);_0x36bbfa['data']['isSuggestion']&&_0x533549['writer']['addClass']('ck-suggestion-marker-'+_0x4f48c7+'-new',_0x34387f),_0x1dcde9['activeChange']==_0x36bbfa&&_0x533549['writer']['addClass']('ck-suggestion-marker--active',_0x34387f),_0x533549['writer']['insert'](_0x41ce10,_0x34387f),_0x533549['mapper']['bindElementToMarker'](_0x34387f,_0x73afe2['markerName']);}_0x12f46e||_0x54be47||!_0x96f11f||_0x229a75(_0x96f11f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4128f0,_0x22bc93,_0x403402)=>{const _0x1de816=_0x403402['mapper']['markerNameToElements'](_0x22bc93['markerName']);if(_0x1de816){for(const _0x2d4921 of _0x1de816)(_0x2d4921['hasClass']('ck-suggestion-marker-split')||_0x2d4921['hasClass']('ck-suggestion-marker-merge'))&&(_0x403402['mapper']['unbindElementFromMarkerName'](_0x2d4921,_0x22bc93['markerName']),_0x403402['writer']['remove'](_0x2d4921));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3e5661,_0x138d70,_0x209b09)=>{const _0x4f9f9c=_0x138d70['markerName']['split'](':')[0x1],_0x175451=this['_getChangeFromId'](_0x4f9f9c);if(!_0x175451)return null;const _0x6a61ee='add'==_0x175451['type']?'split':'merge';if(_0x209b09['consumable']['test'](_0x138d70['markerRange'],_0x3e5661['name']))for(const _0x468ae3 of _0x138d70['markerRange']['getItems']()){if(!_0x468ae3['is']('element','softBreak'))continue;const _0x2344bd=_0x209b09['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6a61ee}),_0x69b92e=_0x209b09['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x468ae3));_0x175451['data']['isSuggestion']&&_0x209b09['writer']['addClass']('ck-suggestion-marker-'+_0x6a61ee+'-new',_0x2344bd),this['activeChange']==_0x175451&&_0x209b09['writer']['addClass']('ck-suggestion-marker--active',_0x2344bd),_0x209b09['writer']['insert'](_0x69b92e,_0x2344bd),_0x209b09['mapper']['bindElementToMarker'](_0x2344bd,_0x138d70['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x20d1ed=>{for(const _0x314768 of this['editor']['model']['document']['getRootNames']()){const _0x42097c=this['editor']['model']['document']['getRoot'](_0x314768),_0xc51b24=this['editor']['editing']['view']['document']['getRoot'](_0x314768);if(_0xc51b24){const _0x1583d6=_0x42097c['getAttribute']('revisionHistoryAttachChange');if(_0x20d1ed['removeAttribute']('data-change-id',_0xc51b24),_0x20d1ed['removeClass']('ck-revision-history-root-add',_0xc51b24),_0x20d1ed['removeClass']('ck-revision-history-root-remove',_0xc51b24),_0x20d1ed['removeClass']('ck-revision-history-root--active',_0xc51b24),_0x1583d6){const _0x2db85a=this['_getChangeFromId'](_0x1583d6);if(!_0x2db85a)return null;_0x20d1ed['setAttribute']('data-change-id',_0x1583d6,_0xc51b24),_0x20d1ed['addClass']('ck-revision-history-root-'+_0x2db85a['type'],_0xc51b24),this['activeChange']==_0x2db85a&&_0x20d1ed['addClass']('ck-revision-history-root--active',_0xc51b24);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x22583e=>'revision-comment:'+_0x22583e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5ba6d8=>'revision-suggestion:'+_0x5ba6d8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x15d4bf=>({'name':'suggestion:'+_0x15d4bf,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2fe35b=>{const _0x525ee6=_0x2fe35b['markerName']['split'](':')[0x1];return'insertion'!=_0x525ee6&&'deletion'!=_0x525ee6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x525ee6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x31a284,_0x578ccf,_0x5d85cc)=>{const _0x3980b7=_0x5d85cc['mapper']['markerNameToElements'](_0x578ccf['markerName']);if(_0x3980b7){for(const _0x5c88fc of _0x3980b7)_0x5c88fc['is']('uiElement')&&(_0x5d85cc['mapper']['unbindElementFromMarkerName'](_0x5c88fc,_0x578ccf['markerName']),_0x5d85cc['writer']['remove'](_0x5c88fc));}},{'priority':'high'});}['_getChangeFromId'](_0x1b01cb){return this['_changeIdToChange']['get'](_0x1b01cb);}['_getViewForChange'](_0x439308){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x439308),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5e4c9e,_0x535177,_0x474b19,_0x3ef1ed)=>{_0x3ef1ed&&this['_balloon']['remove'](_0x3ef1ed),_0x474b19&&(this['_balloon']['add']({'view':_0x474b19,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xe10cb0=this['editor']['editing'],_0x2ab02d=this['_getChangeFromId'](_0x474b19['changeId']);let _0x3cd958;if(_0x2ab02d['data']['isOnRoot']){const _0x55d641=_0xe10cb0['view']['getDomRoot'](_0x2ab02d['rootName']);_0x3cd958=Array['from'](_0x55d641['getClientRects']());}else{const _0x5dfe50=this['editor']['model']['markers']['get']('revision:'+_0x474b19['changeId']);_0x3cd958=Array['from'](_0xe10cb0['mapper']['markerNameToElements'](_0x5dfe50['name']))['map'](_0x256d3c=>_0xe10cb0['view']['domConverter']['mapViewToDom'](_0x256d3c))['map'](_0x2e1cb3=>Array['from'](_0x2e1cb3['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3cd958[0x0];return _0x3cd958['find'](_0x59021b=>_0x59021b['top']-0x3<=this['_activeViewTarget']['y']&&_0x59021b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x59021b['left']-0x3<=this['_activeViewTarget']['x']&&_0x59021b['right']+0x3>=this['_activeViewTarget']['x'])||_0x3cd958[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3bb7bf,_0x107390,_0x446a6b,_0x3b9759)=>{this['activeView']=_0x446a6b?this['_getViewForChange'](_0x446a6b):null,this['editor']['model']['change'](()=>{const _0x4cb634=this['editor']['editing'];_0x3b9759&&(_0x3b9759['data']['isOnRoot']?_0x4cb634['view']['change'](_0x226984=>{_0x226984['removeClass']('ck-revision-history-root--active',_0x4cb634['view']['document']['getRoot'](_0x3b9759['rootName']));}):_0x4cb634['reconvertMarker']('revision:'+_0x3b9759['id'])),_0x446a6b&&(_0x446a6b['data']['isOnRoot']?_0x4cb634['view']['change'](_0x4e1381=>{_0x4e1381['addClass']('ck-revision-history-root--active',_0x4cb634['view']['document']['getRoot'](_0x446a6b['rootName']));}):_0x4cb634['reconvertMarker']('revision:'+_0x446a6b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3bae6c,_0x11c7bc)=>{if(this['activeChange'])return;const _0x34b2f9=this['_findChangeIdFromDomTarget'](_0x11c7bc['target']),_0x31ba0f=this['_changeIdToChange']['get'](_0x34b2f9);_0x31ba0f?(this['_activeViewTarget']={'x':_0x11c7bc['domEvent']['x'],'y':_0x11c7bc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x31ba0f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xa18566,_0x4bdd74)=>{const _0x928a11=this['_findChangeIdFromDomTarget'](_0x4bdd74['target']),_0x373308=this['_changeIdToChange']['get'](_0x928a11);_0x373308?(this['_activeViewTarget']={'x':_0x4bdd74['domEvent']['x'],'y':_0x4bdd74['domEvent']['y']},_0x373308===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x373308):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x291ebb){do{const _0x1352c7=_0x291ebb['getAttribute']('data-change-id');if(_0x1352c7)return _0x1352c7;_0x291ebb=_0x291ebb['parent'];}while(_0x291ebb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x43b56d=>{for(const _0x4f22f8 of this['editor']['model']['markers'])_0x43b56d['removeMarker'](_0x4f22f8);});}}function tt(_0x403237,_0x2b380f){return(_0x157b12,_0x160c7a,_0x3011ca)=>{if(!_0x3011ca['consumable']['test'](_0x160c7a['markerRange'],_0x157b12['name']))return;const _0x4c93d4=_0x160c7a['markerRange']['getWalker'](),_0x1f50e3=_0x160c7a['markerRange']['start'],_0x2a78cb=_0x403237['model']['schema'];let _0x4e4ecf=null,_0x35267c=null,_0x1d6c2c=!0x1,_0x52e107=!0x1;for(const _0x2e6428 of _0x4c93d4){const _0x2e0528=_0x2e6428['item'];_0x1d6c2c=_0x1d6c2c||_0x2a78cb['isContent'](_0x2e0528);const _0x44a668=_0x3011ca['mapper']['toViewElement'](_0x2e0528);if(_0x44a668&&_0x44a668['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e6428['type']&&(_0x2a78cb['isBlock'](_0x2e0528)&&!_0x2a78cb['isLimit'](_0x2e0528)&&(_0x2e0528['nextSibling']||_0x1f50e3['isAtEnd']?_0x4e4ecf&&_0x4e4ecf['parent']==_0x2e0528||(_0x4e4ecf=_0x2e0528,_0x105347(_0x2e6428['previousPosition']),_0x52e107=!0x0):_0x35267c=_0x35267c||_0x2e6428['previousPosition']));}function _0x105347(_0x23eae6){const _0x2bdbdc=_0x3011ca['mapper']['toViewPosition'](_0x23eae6),_0x2a5fb1=_0x3011ca['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b380f});_0x3011ca['writer']['insert'](_0x2bdbdc,_0x2a5fb1),_0x3011ca['mapper']['bindElementToMarker'](_0x2a5fb1,_0x160c7a['markerName']);}_0x1d6c2c||_0x52e107||!_0x35267c||_0x105347(_0x35267c);};}class yt extends _0xf66950{constructor(_0x215e7b){super(_0x215e7b);const _0x105b5e=_0x215e7b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x105b5e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x105b5e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x206b48=this['editor'],_0x28818c=_0x206b48['plugins']['get'](d),_0x5b466b=_0x28818c['isReady']?_0x28818c['diff']['newRevisionId']:null;_0x206b48['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b466b);}['refresh'](){const {isReady:_0x515b45,isEnabled:_0x105197}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x515b45&&_0x105197;}}class bt extends _0xf66950{['_step'];constructor(_0x19f96c,{direction:_0x5d2bfb}){super(_0x19f96c);const _0x208407=_0x19f96c['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5d2bfb?0x1:-0x1,this['listenTo'](_0x208407,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x208407,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x208407,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2585a5=this['editor'],_0x4893b5=_0x2585a5['plugins']['get'](d),{isNavigationMode:_0x4c4bfc,currentChangeNumber:_0x4a397f}=_0x4893b5;let _0x44a8ac;if(_0x4893b5['activeChange']=_0x4c4bfc?_0x4893b5['diff']['changes']['get'](_0x4a397f+this['_step']):_0x4893b5['diff']['changes']['first'],_0x4893b5['activeChange']['data']['isOnRoot'])_0x44a8ac=_0x2585a5['editing']['view']['getDomRoot'](_0x4893b5['activeChange']['rootName']);else{const _0x442c28=_0x2585a5['model']['markers']['get']('revision:'+_0x4893b5['activeChange']['id']);_0x44a8ac=_0x218286(_0x2585a5['editing'],_0x442c28);}_0x277b74({'target':_0x44a8ac,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xa2c776,currentChangeNumber:_0x422560,numberOfChanges:_0x4bbf44,isReady:_0x4af0be,isEnabled:_0x3301d0}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3301d0&&_0x4af0be&&_0x4bbf44)&&(!_0xa2c776||(0x1===this['_step']?_0x422560<_0x4bbf44-0x1:_0x422560>0x0));}}class _i extends _0x2c43c9{constructor(_0x316ee7){super(_0x316ee7);const _0x2da79c=this['bindTemplate'],_0x124bfa=new _0x15a92a(_0x316ee7),_0x506ccb=new _0x15a92a(_0x316ee7);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',(_0x5c29bb,_0x3a7ce0)=>_0x5c29bb&&_0x3a7ce0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4783e8,_0x4fe40b,_0x26b87c,_0x1afc4f)=>{if(!_0x4783e8)return R(_0x316ee7,'Loading...');if(!_0x26b87c)return R(_0x316ee7,'No\x20changes');const _0x5b71f4=R(_0x316ee7,'NUMBER_OF_CHANGES',_0x26b87c);return _0x1afc4f?R(_0x316ee7,'X_OF_Y_CHANGES',[_0x4fe40b+0x1,_0x26b87c]):_0x5b71f4;}),_0x124bfa['set']({'label':R(_0x316ee7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x506ccb['set']({'label':R(_0x316ee7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x124bfa['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x506ccb['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x124bfa['on']('execute',()=>this['fire']('execute','backward')),_0x506ccb['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',_0x2da79c['if']('_isStatusLabelVisible','ck-hidden',_0x5715b1=>!_0x5715b1)]},'children':[{'text':_0x2da79c['to']('isNavigationMode',_0x541b6e=>_0x541b6e?R(_0x316ee7,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x316ee7,'Total')+':\x20')}]},{'text':_0x2da79c['to']('_statusText')}]},new _0x372320(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x124bfa,_0x506ccb]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x24aabd{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3dbd4c=this['editor']['editing']['view'];_0x3dbd4c['change'](_0x8f5126=>{for(const _0x2f6d48 of _0x3dbd4c['document']['roots'])_0x8f5126['addClass'](ce,_0x2f6d48);});}['hide'](){const _0x1ab7e7=this['editor']['editing']['view'];_0x1ab7e7['change'](_0x4122b0=>{for(const _0x132a12 of _0x1ab7e7['document']['roots'])_0x4122b0['removeClass'](ce,_0x132a12);});}}class m extends _0x24aabd{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x14cee4=this['editor'],_0x474734=_0x14cee4['plugins']['get'](d),_0x32a771=_0x14cee4['plugins']['get'](le);_0x14cee4['ui']['componentFactory']['add']('exitToEditing',_0x2a65f7=>{const _0x2447c6=new _0x15a92a(_0x2a65f7);return _0x2447c6['set']({'label':R(_0x2a65f7,'Back\x20to\x20editing'),'icon':_0x888a61['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2447c6,'execute',()=>{_0x14cee4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2447c6;}),_0x14cee4['ui']['componentFactory']['add']('restoreRevision',_0x53c57e=>{const _0x5cb4b2=new _0x15a92a(_0x53c57e);return _0x5cb4b2['set']({'label':R(_0x53c57e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5cb4b2['bind']('isEnabled')['to'](_0x14cee4['commands']['get']('restoreRevision')),this['listenTo'](_0x5cb4b2,'execute',()=>_0x14cee4['execute']('restoreRevision')),_0x5cb4b2;}),_0x14cee4['ui']['componentFactory']['add']('changesNavigation',_0x398727=>{const _0x90d155=new _i(_0x398727),_0x4f7525=_0x14cee4['commands']['get']('showPreviousChange'),_0x14da1c=_0x14cee4['commands']['get']('showNextChange');return _0x90d155['bind']('isBackwardNavigationEnabled')['to'](_0x4f7525,'isEnabled'),_0x90d155['bind']('isForwardNavigationEnabled')['to'](_0x14da1c,'isEnabled'),_0x90d155['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x474734),this['listenTo'](_0x90d155,'execute',(_0x4150fb,_0xaa58b)=>{_0x14cee4['execute']('forward'===_0xaa58b?'showNextChange':'showPreviousChange');}),_0x90d155;}),_0x32a771['show'](),_0x474734['on']('change:isReady',(_0x2abb09,_0x45974a,_0x393bf4)=>{_0x393bf4?_0x32a771['hide']():_0x32a771['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x19513d,_0x45f2e4){super(_0x19513d,_0x45f2e4);const _0x60952c=this['bindTemplate'];this['set']({'label':R(_0x19513d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x19513d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x60952c['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 _0x38ffce=this['fieldView']['element'];this['_tooltipString']=_0x38ffce['scrollWidth']>_0x38ffce['clientWidth']&&_0x38ffce['value']||'';}}class ti extends _0x2c43c9{constructor(_0x478222,_0x4347f3,_0x4a2034){super(_0x478222);const _0x323a21=new _0x544954();_0x323a21['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x261530=['ck','ck-revision-history-sidebar__revision-author'];_0x4a2034&&_0x261530['push']('ck-revision-history-sidebar__revision-author_creator');const _0x57b687=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x478222,_0x4a2034?'Revision\x20creator':'Revision\x20author')},'children':[_0x323a21,_0x4347f3['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x261530},'children':_0x57b687});}}function ni(_0x2a9079,_0x2d2159){const _0x4fbdeb=_0x2a9079['bindTemplate'],_0x3e248b=_0x2a9079['locale'],_0x5660ec=_0x20789c(_0x3e248b);_0x5660ec['panelPosition']='sw';const _0x3ab3ea=function(_0x537b8b,_0x546701){const _0x16da37=function(_0x1cf03a,_0x3c3303){const _0x117e11=_0x1cf03a['locale'],_0xcd3b1b={'Compare\x20against\x20selected':R(_0x117e11,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x117e11,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x117e11,'Restore\x20this\x20revision')};return _0x3c3303['map'](_0x271354=>{const _0x5e6cf8=_0xcd3b1b[_0x271354['name']];return _0x5e6cf8&&_0x5e6cf8!==_0x271354['name']&&(_0x271354['name']=_0x5e6cf8),_0x271354;});}(_0x537b8b,_0x546701),_0x22424c=new _0x2ad968();for(const _0x33c59e of _0x16da37){const _0xbf0e06={'type':'button','model':new to({'label':_0x33c59e['name'],'class':_0x33c59e['class'],'withText':!0x0,'role':'menuitem','_action':_0x33c59e['action']})};_0xbf0e06['model']['bind']('isEnabled')['to'](_0x537b8b,'isActionsDropdownOpen',_0x5973f3=>'function'!=typeof _0x33c59e['isEnabled']||(!_0x5973f3||_0x33c59e['isEnabled'](_0x537b8b))),_0x22424c['add'](_0xbf0e06);}return _0x22424c;}(_0x2a9079,_0x2d2159);return _0x2a9079['bind']('isActionsDropdownOpen')['to'](_0x5660ec,'isOpen'),_0x5660ec['buttonView']['set']({'label':R(_0x3e248b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x888a61['threeVerticalDots']}),_0x5660ec['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4fbdeb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4fbdeb['to'](_0x4fad9f=>_0x4fad9f['stopPropagation']())}}),_0x5660ec['on']('execute',_0xcacd75=>{_0x2a9079['isReady']&&'function'==typeof _0xcacd75['source']['_action']&&_0xcacd75['source']['_action'](_0x2a9079);}),_0x3d32c0(_0x5660ec,_0x3ab3ea,{'role':'menu'}),_0x5660ec['listenTo'](_0x2a9079,'change:isActionsDropdownOpen',(_0x1080aa,_0x6ffbf0,_0x2965eb)=>{if(_0x2965eb)for(const _0x4cec23 of _0x5660ec['listView']['items']){const _0x5b8c30=_0x4cec23['children']['first'],_0x233bc5=_0x2d2159['find'](_0x3b46af=>_0x3b46af['action']===_0x5b8c30['_action'])['isVisible'];_0x4cec23['isVisible']=void 0x0===_0x233bc5||_0x233bc5(_0x2a9079);}}),_0x5660ec;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x2e28f3,uid as _0x545ed9,Collection as _0x4d04fc,logWarning as _0x462677,FocusTracker as _0x5a4af8,KeystrokeHandler as _0x4cc9b1,scrollViewportToShowTarget as _0x3acc83,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x5aaa91}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2df5ea,set as _0x1e75f8,unset as _0xa369aa,isEqual as _0x379349}from'lodash-es';import{Plugin as _0x3a656b,PendingActions as _0x5a85fa,icons as _0x5bd77f,Command as _0x1770c0,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x476bfb,getMarkerDomElement as _0x2602da,ConfirmMixin as _0x19b81a,sanitizeEditorConfig as _0x547848}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0xee78eb,ViewText as _0x2c1532,ViewElement as _0x173c9e,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x2e2da7,ViewAttributeElement as _0x487bc6,ViewEmptyElement as _0x46baa4,ViewRawElement as _0x243517,ViewUIElement as _0x544cb2,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x1377ad,injectCssTransitionDisabler as ts,submitHandler as _0x19216e,LabeledFieldView as at,createLabeledInputText as _0x189690,createDropdown as _0x46d3ea,ListView as te,ListItemView as _0x59897c,ButtonView as _0x51e14f,MenuBarMenuView as _0x26466c,MenuBarMenuListView as _0x216938,MenuBarMenuListItemView as _0x56d93c,MenuBarMenuListItemButtonView as _0xed5ff6,ContextualBalloon as _0x4f686a,ToolbarSeparatorView as _0x267a03,IconView as _0x373c0a,addListToDropdown as _0x9be4ae,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1532ff}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2e28f3(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3de17b){super(),this['id']=_0x3de17b['id']||_0x545ed9(),this['creator']=_0x3de17b['creator']||null,this['authors']=_0x3de17b['authors']||[],this['diffData']=_0x3de17b['diffData']||null,this['toVersion']=_0x3de17b['toVersion']||0x0,this['fromVersion']=_0x3de17b['fromVersion']||0x0,this['set']('name',_0x3de17b['name']||''),this['set']('createdAt',_0x3de17b['createdAt']||new Date()),this['set']('attributes',_0x3de17b['attributes']||{});}['setName'](_0x39a027){this['_update']({'name':_0x39a027});}['setAttribute'](_0x4ace1e,_0x4ad080){const _0x5d0876=_0x2df5ea(this['attributes']);_0x1e75f8(_0x5d0876,_0x4ace1e,_0x4ad080),this['_update']({'attributes':_0x5d0876});}['removeAttribute'](_0x4803b0){const _0x432054=_0x2df5ea(this['attributes']);_0xa369aa(_0x432054,_0x4803b0),this['_update']({'attributes':_0x432054});}['_update'](_0x3d9e9e,_0x22322=!0x1){let _0x3f7cda=!0x1;const _0x3be6bc={'id':this['id']},_0x4a9209=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x34eecd of _0x4a9209){const _0x3a2112=_0x3d9e9e[_0x34eecd];void 0x0!==_0x3a2112&&_0x3a2112!==this[_0x34eecd]&&(this[_0x34eecd]=_0x3a2112,_0x3be6bc[_0x34eecd]=_0x3a2112,_0x3f7cda=!0x0);}_0x3f7cda&&(_0x3be6bc['authors']&&(_0x3be6bc['authorsIds']=_0x3be6bc['authors']['map'](_0x231272=>_0x231272['id']),delete _0x3be6bc['authors']),this['fire']('_update',_0x3be6bc,_0x22322));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x17e83d=>_0x17e83d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3a656b{['_revisions'];static get['requires'](){return[_0x476bfb];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x555a5f){super(_0x555a5f),this['_revisions']=new _0x4d04fc();}['afterInit'](){!async function(_0xc95fd0){const _0x19e4d4=_0x363b6d([0x33,0x48,0x36,0x75,0x43,0x66,0x52,0x46,0x4a,0x53,0x56,0x6b,0x6a,0x6c,0x71,0x39,0x76,0x62,0x6d,0x58,0x30,0x34,0x7a,0x74,0x54,0x69,0x4f,0x78,0x6f,0x44,0x72,0x51,0x50,0x63,0x64,0x59,0x4b,0x4e,0x79,0x67,0x32,0x5a,0x37,0x45,0x47,0x4c,0x41,0x35,0x38,0x68,0x70,0x55,0x61,0x31,0x57,0x73,0x6e,0x42,0x77,0x4d,0x65,0x49]),_0x566eba=0xeb829,_0x58ca1b=0x1bab2527,_0x54c259=0x1bac7d0f^_0x58ca1b,_0x498fd4=window[_0x363b6d([0x44,0x61,0x74,0x65])][_0x363b6d([0x6e,0x6f,0x77])](),_0x332336=_0xc95fd0[_0x363b6d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4701a4=new window[(_0x363b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dcd79=>{_0x332336[_0x363b6d([0x6f,0x6e,0x63,0x65])](_0x363b6d([0x72,0x65,0x61,0x64,0x79]),_0x2dcd79);}),_0x3b1c67={[_0x363b6d([0x6b,0x74,0x79])]:_0x363b6d([0x45,0x43]),[_0x363b6d([0x75,0x73,0x65])]:_0x363b6d([0x73,0x69,0x67]),[_0x363b6d([0x63,0x72,0x76])]:_0x363b6d([0x50,0x2d,0x32,0x35,0x36]),[_0x363b6d([0x78])]:_0x363b6d([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]),[_0x363b6d([0x79])]:_0x363b6d([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]),[_0x363b6d([0x61,0x6c,0x67])]:_0x363b6d([0x45,0x53,0x32,0x35,0x36])},_0x137506=_0x332336[_0x363b6d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x363b6d([0x67,0x65,0x74])](_0x363b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2adcc1(){let _0x245536,_0x1f18b3=null,_0x4d4761=null;try{if(_0x137506==_0x363b6d([0x47,0x50,0x4c]))return _0x363b6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x245536=_0x28655d(),!_0x245536)return _0x363b6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x245536[_0x363b6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d4761=_0x8a2a29(_0x245536[_0x363b6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x245536[_0x363b6d([0x6a,0x74,0x69])])),await _0x2a5c06()?_0x436113()?_0x50d102()?_0x363b6d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c0a63()?(_0x245536[_0x363b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x363b6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f18b3=_0x3d34c6(_0x363b6d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x245536[_0x363b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x363b6d([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f18b3=_0x3d34c6(_0x363b6d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x245536[_0x363b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x363b6d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1f18b3=_0x3d34c6(_0x363b6d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23122c()):_0x363b6d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x363b6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x363b6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x210f4e){return _0x363b6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50d102(){const _0x150080=[_0x363b6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x363b6d([0x74,0x72,0x69,0x61,0x6c])][_0x363b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x245536[_0x363b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x498fd4/0x3e8:0xe10*_0x54c259;return _0x245536[_0x363b6d([0x65,0x78,0x70])]<_0x150080;}function _0x436113(){const _0x31745f=_0x245536[_0x363b6d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31745f&&(!!_0x31745f[_0x363b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363b6d([0x2a]))||(!!_0x31745f[_0x363b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363b6d([0x52,0x48]))||!(!_0x31745f[_0x363b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363b6d([0x52,0x52,0x48]))||!_0x16ade5())));}function _0x3c0a63(){const _0x187376=_0x245536[_0x363b6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x187376||0x0==_0x187376[_0x363b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4635ed}=new URL(window[_0x363b6d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x187376[_0x363b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4635ed))return!0x0;const _0x3246c9=_0x4635ed[_0x363b6d([0x73,0x70,0x6c,0x69,0x74])](_0x363b6d([0x2e]));return _0x187376[_0x363b6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cd9b9=>_0x3cd9b9[_0x363b6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x363b6d([0x2a])))[_0x363b6d([0x6d,0x61,0x70])](_0x16cab4=>_0x16cab4[_0x363b6d([0x73,0x70,0x6c,0x69,0x74])](_0x363b6d([0x2e])))[_0x363b6d([0x73,0x6f,0x6d,0x65])](_0x2e7389=>_0x3246c9[_0x363b6d([0x65,0x76,0x65,0x72,0x79])]((_0x4082ab,_0x36012e)=>_0x2e7389[_0x36012e]===_0x4082ab||_0x2e7389[_0x36012e]===_0x363b6d([0x2a])));}function _0x23122c(){return _0x1f18b3&&_0x4d4761?new window[(_0x363b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e20ce,_0x38dcae)=>{_0x1f18b3[_0x363b6d([0x74,0x68,0x65,0x6e])](_0x4e20ce,_0x38dcae),_0x4d4761[_0x363b6d([0x74,0x68,0x65,0x6e])](_0x4f6112=>{_0x4f6112!=_0x363b6d([0x56,0x61,0x6c,0x69,0x64])&&_0x4e20ce(_0x4f6112);},_0x38dcae);}):_0x1f18b3||_0x4d4761||_0x363b6d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8a2a29(_0x3a9177,_0x5c3869){return new window[(_0x363b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0b9d=>{if(_0x37fd33())return _0x5f0b9d(_0x363b6d([0x56,0x61,0x6c,0x69,0x64]));_0x104b7d(),_0x332336[_0x363b6d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x363b6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37140c=!0x1;const _0x4cd548=_0x545ed9();function _0x44508e(_0x47d7ca){return!!_0x47d7ca&&(typeof _0x47d7ca===_0x363b6d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47d7ca===_0x363b6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47d7ca[_0x363b6d([0x74,0x68,0x65,0x6e])]===_0x363b6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47d7ca[_0x363b6d([0x63,0x61,0x74,0x63,0x68])]===_0x363b6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f6b2c(_0x367491){_0x3e3489(_0x367491)[_0x363b6d([0x74,0x68,0x65,0x6e])](_0x329af4=>{if(!_0x329af4||_0x329af4[_0x363b6d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x363b6d([0x6f,0x6b]))return _0x363b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43261f(_0x108f1e(_0x4cd548+_0x5c3869))!=_0x329af4[_0x363b6d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x363b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x363b6d([0x56,0x61,0x6c,0x69,0x64]);})[_0x363b6d([0x74,0x68,0x65,0x6e])](_0x267e64=>(_0x57e825(),_0x267e64),()=>{const _0x167381=_0x244399();return null==_0x167381?(_0x57e825(),_0x363b6d([0x56,0x61,0x6c,0x69,0x64])):_0x363b6d(_0x498fd4-_0x167381>(0x3fa7a127^_0x58ca1b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x363b6d([0x74,0x68,0x65,0x6e])](_0x5f0b9d)[_0x363b6d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f0b9d(_0x363b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ca0fa=0x1b9dcba7^_0x58ca1b;function _0x57e825(){const _0x2e2937=_0x363b6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x43261f(_0x108f1e(_0x3a9177)),_0x415f38=_0x7b433a(_0x43261f(window[_0x363b6d([0x4d,0x61,0x74,0x68])][_0x363b6d([0x63,0x65,0x69,0x6c])](_0x498fd4/_0x3ca0fa)));window[_0x363b6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x363b6d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e2937,_0x415f38);}function _0x244399(){const _0x2bc97b=_0x363b6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x43261f(_0x108f1e(_0x3a9177)),_0x37148f=window[_0x363b6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x363b6d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bc97b);return _0x37148f?window[_0x363b6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7b433a(_0x37148f),0x10)*_0x3ca0fa:null;}function _0x3e3489(_0x542a3f){return new window[(_0x363b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52bd22,_0x9cf25e)=>{_0x542a3f[_0x363b6d([0x74,0x68,0x65,0x6e])](_0x52bd22,_0x9cf25e),window[_0x363b6d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9cf25e,0x1baaf1e7^_0x58ca1b);});}}_0x332336[_0x363b6d([0x6f,0x6e])](_0x363b6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2efcc2,_0x1bad20)=>{if(_0x1bad20[0x0]!=_0x3a9177)return _0x5f0b9d(_0x363b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bad20[0x1]={..._0x1bad20[0x1],[_0x363b6d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cd548};},{[_0x363b6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x363b6d([0x68,0x69,0x67,0x68])}),_0x332336[_0x363b6d([0x6f,0x6e])](_0x363b6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x461d3e=>{_0x44508e(_0x461d3e[_0x363b6d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37140c=!0x0,_0x1f6b2c(_0x461d3e[_0x363b6d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x363b6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x363b6d([0x6c,0x6f,0x77])}),_0x4701a4[_0x363b6d([0x74,0x68,0x65,0x6e])](()=>{_0x37140c||_0x5f0b9d(_0x363b6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37fd33(){return _0x332336[_0x363b6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x363b6d([0x76,0x69,0x65,0x77])][_0x363b6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x363b6d([0x61,0x75,0x74,0x6f]);}function _0x104b7d(){_0x332336[_0x363b6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x363b6d([0x76,0x69,0x65,0x77])][_0x363b6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x363b6d([0x61,0x75,0x74,0x6f]);}}function _0x3d34c6(_0xb6036d){const _0x4cbf62=[new window[(_0x363b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25e442=>setTimeout(_0x25e442,0x1ba21beb^_0x58ca1b)),_0x4701a4[_0x363b6d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x363b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41d7b4=>{const _0x3db8b7=0x1bab2520^_0x58ca1b,_0x6955db=_0xc95fd0[_0x363b6d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1e1d5d(){_0x6955db[_0x363b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3db8b7&&_0x41d7b4();}_0x1e1d5d(),_0x6955db[_0x363b6d([0x6f,0x6e])](_0x363b6d([0x61,0x64,0x64]),_0x1e1d5d);})),new window[(_0x363b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xee3e3b=>{function _0x2fea96(){for(const _0x176fb2 in window)if(window[_0x363b6d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x363b6d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x176fb2))&&window[_0x176fb2]==_0x566eba)return _0xee3e3b();_0x332336[_0x363b6d([0x73,0x74,0x61,0x74,0x65])]!=_0x363b6d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x363b6d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fea96,0x1bab36af^_0x58ca1b);}_0x527a5(_0x363b6d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2fea96();})];return window[_0x363b6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x363b6d([0x72,0x61,0x63,0x65])](_0x4cbf62)[_0x363b6d([0x74,0x68,0x65,0x6e])](()=>_0xb6036d);}async function _0x394de4(){if(await _0x4701a4,_0x527a5(_0x363b6d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x561717=_0xc95fd0[_0x363b6d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x57f8cb=_0xc95fd0[_0x363b6d([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])](_0x561717[_0x363b6d([0x69,0x64])]),_0x4befdb=_0x3c5dd0(_0x363b6d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4befdb[_0x363b6d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x561717['id'],_0x57f8cb?_0x57f8cb['id']:null,!0x0),_0x4befdb[_0x363b6d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x363b6d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4befdb[_0x363b6d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4befdb[_0x363b6d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x531b84,void(_0x4befdb[_0x363b6d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x531b84);}if(_0x527a5(_0x363b6d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x123e8d=_0x3c5dd0(_0x363b6d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x123e8d[_0x363b6d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x363b6d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x123e8d[_0x363b6d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x123e8d[_0x363b6d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x531b84,_0x123e8d[_0x363b6d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x531b84;}_0x332336[_0x363b6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x363b6d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x531b84,_0x332336[_0x363b6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x363b6d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x531b84,_0x332336[_0x363b6d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x363b6d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16ade5(){return _0x527a5(_0x363b6d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3c5dd0(_0x363b6d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x363b6d([0x73,0x74,0x61,0x74,0x65])]==_0x363b6d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2572be(_0x52abd1){const _0x569e77=_0x5d15de();_0x332336[_0x569e77]=_0x363b6d([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])+_0x52abd1,_0x52abd1[_0x363b6d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x363b6d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5d15de()]=_0x566eba),_0x52abd1!=_0x363b6d([0x56,0x61,0x6c,0x69,0x64])&&_0x394de4();}function _0x5d15de(){const _0xe14858=window[_0x363b6d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x363b6d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x363b6d([0x6e,0x6f,0x77])]())[_0x363b6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x363b6d([0x2e]),'');let _0x487444=_0x363b6d([0x48]);for(let _0x2ed1ff=0x0;_0x2ed1ff<_0xe14858[_0x363b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ed1ff+=0x2){let _0x189bee=window[_0x363b6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe14858[_0x363b6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ed1ff,_0x2ed1ff+0x2));_0x189bee>=_0x19e4d4[_0x363b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x189bee-=_0x19e4d4[_0x363b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x487444+=_0x19e4d4[_0x189bee];}return _0x487444;}function _0x28655d(){const _0x2094b9=_0x137506[_0x363b6d([0x73,0x70,0x6c,0x69,0x74])](_0x363b6d([0x2e]));if(0x3!=_0x2094b9[_0x363b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a8b66(_0x2094b9[0x1]);function _0x5a8b66(_0x3cf005){const _0x59295c=_0x3e8521(_0x3cf005);return _0x59295c&&_0x27d48a()?_0x59295c:null;function _0x27d48a(){const _0x335e4f=_0x59295c[_0x363b6d([0x6a,0x74,0x69])],_0x548add=window[_0x363b6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x335e4f[_0x363b6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x335e4f[_0x363b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xee3a6e={..._0x59295c,[_0x363b6d([0x6a,0x74,0x69])]:_0x335e4f[_0x363b6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x335e4f[_0x363b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xee3a6e[_0x363b6d([0x76,0x63])],_0x108f1e(_0xee3a6e)==_0x548add;}}}async function _0x2a5c06(){let _0x3b0f49=!0x0;try{const _0x391b5e=_0x137506[_0x363b6d([0x73,0x70,0x6c,0x69,0x74])](_0x363b6d([0x2e])),[_0x34545a,_0x186812,_0x496647]=_0x391b5e;return _0x83d657(_0x34545a),await _0x501cd3(_0x34545a,_0x186812,_0x496647),_0x3b0f49;}catch(_0x5a847c){return!0x1;}function _0x83d657(_0x1e617a){const _0x81d736=_0x3e8521(_0x1e617a);_0x81d736&&_0x81d736[_0x363b6d([0x61,0x6c,0x67])]==_0x363b6d([0x45,0x53,0x32,0x35,0x36])||(_0x3b0f49=!0x1);}async function _0x501cd3(_0x2bc23d,_0x231862,_0x5eeac7){const _0xd000be=window[_0x363b6d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x363b6d([0x66,0x72,0x6f,0x6d])](_0x316e9a(_0x5eeac7),_0x4f16c0=>_0x4f16c0[_0x363b6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4660dc=new window[(_0x363b6d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x363b6d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bc23d+_0x363b6d([0x2e])+_0x231862),_0x537400=window[_0x363b6d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x363b6d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x537400)return;const _0x2c51a7=await _0x537400[_0x363b6d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x363b6d([0x6a,0x77,0x6b]),_0x3b1c67,{[_0x363b6d([0x6e,0x61,0x6d,0x65])]:_0x363b6d([0x45,0x43,0x44,0x53,0x41]),[_0x363b6d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x363b6d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x363b6d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x537400[_0x363b6d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x363b6d([0x6e,0x61,0x6d,0x65])]:_0x363b6d([0x45,0x43,0x44,0x53,0x41]),[_0x363b6d([0x68,0x61,0x73,0x68])]:{[_0x363b6d([0x6e,0x61,0x6d,0x65])]:_0x363b6d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c51a7,_0xd000be,_0x4660dc)||(_0x3b0f49=!0x1);}}function _0x3e8521(_0x560634){return _0x560634[_0x363b6d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x363b6d([0x65,0x79]))?JSON[_0x363b6d([0x70,0x61,0x72,0x73,0x65])](_0x316e9a(_0x560634)):null;}function _0x316e9a(_0x1d6504){return window[_0x363b6d([0x61,0x74,0x6f,0x62])](_0x1d6504[_0x363b6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x363b6d([0x2b]))[_0x363b6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x363b6d([0x2f])));}function _0x108f1e(_0x16cd71){let _0x4feb63=0x1505;function _0x413ae2(_0x363c2f){for(let _0x34e4f5=0x0;_0x34e4f5<_0x363c2f[_0x363b6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34e4f5++){const _0x532e34=_0x363c2f[_0x363b6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34e4f5);_0x4feb63=(_0x4feb63<<0x5)+_0x4feb63+_0x532e34,_0x4feb63&=_0x4feb63;}}function _0x5d1ced(_0x386ecc){Array[_0x363b6d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x386ecc)?_0x386ecc[_0x363b6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d1ced):_0x386ecc&&typeof _0x386ecc==_0x363b6d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x363b6d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x386ecc)[_0x363b6d([0x73,0x6f,0x72,0x74])]()[_0x363b6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x540515,_0xf6e0f0])=>{_0x413ae2(_0x540515),_0x5d1ced(_0xf6e0f0);}):_0x413ae2(window[_0x363b6d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x386ecc));}return _0x5d1ced(_0x16cd71),_0x4feb63>>>0x0;}function _0x43261f(_0x13ca36){return _0x13ca36[_0x363b6d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x363b6d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x363b6d([0x30]));}function _0x7b433a(_0x2a96c9){return _0x2a96c9[_0x363b6d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x363b6d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x363b6d([0x6a,0x6f,0x69,0x6e])]('');}function _0x527a5(_0x42b370){return _0x332336[_0x363b6d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x363b6d([0x68,0x61,0x73])](_0x42b370);}function _0x3c5dd0(_0x36043e){return _0x332336[_0x363b6d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x363b6d([0x67,0x65,0x74])](_0x36043e);}function _0x531b84(){}function _0x363b6d(_0x1c8c5f){return _0x1c8c5f['map'](_0x414eab=>String['fromCharCode'](_0x414eab))['join']('');}_0x2572be(await _0x2adcc1());}(this);}['createRevision'](_0x25d6db){const _0x407841=this['editor']['plugins']['get']('Users');return new a({'id':_0x25d6db['id'],'name':_0x25d6db['name'],'creator':_0x25d6db['creatorId']?_0x407841['getUser'](_0x25d6db['creatorId']):null,'diffData':_0x25d6db['diffData']||_0x25d6db['data'],'authors':_0x25d6db['authorsIds']['map'](_0x286e4b=>_0x407841['getUser'](_0x286e4b)),'createdAt':new Date(_0x25d6db['createdAt']),'attributes':_0x25d6db['attributes'],'fromVersion':_0x25d6db['fromVersion'],'toVersion':_0x25d6db['toVersion']});}['addRevision'](_0x4e3e2d,_0x3284e5=0x0){this['_revisions']['add'](_0x4e3e2d,_0x3284e5);}['getRevision'](_0x166dd8){return this['_revisions']['get'](_0x166dd8);}['getRevisions'](_0x2032cf={'toJSON':!0x1}){const _0x5f314e=Array['from'](this['_revisions']);return _0x5f314e['reverse'](),_0x2032cf['toJSON']?_0x5f314e['map'](_0x1f125c=>_0x1f125c['toJSON']()):_0x5f314e;}['getIndex'](_0x56b84a){return this['_revisions']['getIndex'](_0x56b84a);}['getEarlierVisibleRevision'](_0x4470c3){const [,_0x5dc2f4]=this['getRevisionsIterator'](_0x4470c3,{'direction':'earlier'});return _0x5dc2f4;}['getLaterVisibleRevision'](_0x4e4f3c){const [,_0x55484b]=this['getRevisionsIterator'](_0x4e4f3c,{'direction':'later'});return _0x55484b;}['getRevisionsInDiff'](_0x2b2bf8){const _0x3e034d=[];for(const _0x1972e5 of this['getRevisionsIterator'](_0x2b2bf8['newRevisionId']))if(_0x3e034d['push'](_0x1972e5),_0x1972e5['id']===_0x2b2bf8['oldRevisionId'])break;return _0x3e034d;}*['getRevisionsIterator'](_0xd34d94,{direction:_0x13e08c='earlier',filter:_0x5bf3e7=()=>!0x0}={}){const _0xcd6979='earlier'===_0x13e08c?0x1:-0x1;let _0x3f3798=this['_revisions']['get'](_0xd34d94),_0x331a6e=this['getIndex'](_0x3f3798);for(yield _0x3f3798;_0x3f3798;){if(_0x331a6e+=_0xcd6979,_0x3f3798=this['getRevision'](_0x331a6e),!_0x3f3798)return;_0x5bf3e7(_0x3f3798)&&(yield _0x3f3798);}}}function R(_0x5d9350,_0x36aa1d,_0x4ea868){const t=_0x5d9350['t'];switch(_0x36aa1d){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'},_0x4ea868);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ea868);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 C={'c':_0x2e2da7,'a':_0x487bc6,'e':_0x46baa4,'r':_0x243517,'u':_0x544cb2};class l extends _0x3a656b{['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[_0x476bfb,j,_0x5a85fa];}constructor(_0x4f7bb9){super(_0x4f7bb9),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3a4864=_0x545ed9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3a4864},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 _0x49b25d=this['repository']['getRevision'](0x0),_0x750875=_0x49b25d&&null===_0x49b25d['creator']?_0x49b25d:null;if(this['_continueCurrentRevision']=!!_0x750875&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xba8b5e=this['_source']['getCurrentRevisionId'](),_0x5d182d=this['repository']['getRevision'](_0xba8b5e);if(_0x5d182d)this['_startingVersion']=_0x5d182d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x587d1e=this['_source']['history']['_operations']['find'](_0x58da6e=>!_0x58da6e['_isInit']),_0x57118b=_0x587d1e?_0x587d1e['baseVersion']:this['_source']['history']['version'];_0x49b25d?(_0x49b25d['toVersion']<_0x57118b&&_0x49b25d['_update']({'toVersion':_0x57118b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x750875['id'],this['_startingVersion']=_0x750875['fromVersion']):(this['_startingVersion']=_0x49b25d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x57118b,this['_continueCurrentRevision']=!0x1);}}else _0x750875&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x750875['toVersion'],this['editor']['model']['document']['history']['version']),_0x750875['fromVersion']===_0x750875['toVersion']?(0x0!==_0x750875['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x750875['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x750875['id'],this['_startingVersion']=_0x750875['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',_0x17b5cc=>!_0x17b5cc),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x492588=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x28c580;for(const _0x3abe66 in _0x492588){const _0xb36d36=_0x3abe66,_0xf4f2fa=_0x492588[_0xb36d36];if('revisionHistoryLicenseKeyValid'==_0xf4f2fa||'revisionHistoryLicenseKeyInvalid'==_0xf4f2fa||'revisionHistoryLicenseKeyExpired'==_0xf4f2fa||'revisionHistoryLicenseKeyDomainLimit'==_0xf4f2fa||'revisionHistoryLicenseKeyNotAllowed'==_0xf4f2fa||'revisionHistoryLicenseKeyEvaluationLimit'==_0xf4f2fa||'revisionHistoryLicenseKeyTrialLimit'==_0xf4f2fa||'revisionHistoryLicenseKeyDevelopmentLimit'==_0xf4f2fa||'revisionHistoryLicenseKeyUsageLimit'==_0xf4f2fa){delete _0x492588[_0xb36d36],_0x28c580=_0xf4f2fa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x28c580&&_0x492588['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x28c580&&_0x492588['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x28c580&&_0x492588['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x28c580&&_0x492588['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x28c580&&_0x492588['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x28c580&&_0x492588['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x28c580&&_0x492588['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x28c580&&_0x492588['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x59c304=this['repository']['getRevision'](0x0),_0x5e9977=await this['getRevisionDocumentData'](_0x59c304),_0x47e43b=await this['getRevisionRootsAttributes'](_0x59c304);this['_replaceEditorDataWithRevisionData'](_0x5e9977,_0x47e43b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xb6813){this['_source']=_0xb6813;}async['update'](){const _0x176b23=await this['_source']['getLatestVersion']();if(_0x176b23>this['currentRevision']['toVersion']){await this['_loadState']();const _0x40d982=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x176b23});_0x40d982['authors']=_0x40d982['authorsIds']['map'](_0x1d9a7d=>this['editor']['plugins']['get']('Users')['getUser'](_0x1d9a7d)),this['currentRevision']['_update'](_0x40d982);}}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'](_0x4986fb={},_0x2834d5=null){const _0x1cafca=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2834d5>this['currentRevision']['toVersion']&&(_0x2834d5=null),null===_0x2834d5&&(_0x2834d5=await this['_source']['getLatestVersion']());const _0x2d9ff4=this['_getFromVersion'](_0x2834d5),_0x3bf2d5=this['buildRevisionData']({'from':_0x2d9ff4,'to':_0x2834d5});if(this['currentRevision']['toVersion']<_0x2834d5){const _0x2ad4ff=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2834d5,'to':_0x2834d5});_0x2ad4ff['authors']=[],_0x2ad4ff['authorsIds']=[],_0x2ad4ff['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2ad4ff,!0x0),delete _0x2ad4ff['authors'],_0x1cafca['push'](_0x2ad4ff);}_0x4986fb['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4986fb['name']=_0x4986fb['name']||null,_0x4986fb['id']=_0x4986fb['id']||_0x545ed9(),_0x4986fb={..._0x4986fb,..._0x3bf2d5};const _0x238172=this['addRevisionData'](_0x4986fb);_0x1cafca['push'](_0x4986fb);const _0x329d8b=this['repository']['getIndex'](_0x238172);if(0x0!==_0x329d8b){const _0x1a4bcc=this['repository']['getRevision'](_0x329d8b-0x1);if(_0x1a4bcc['fromVersion']!==_0x2834d5){const _0x3df855=this['_revisionDataBuilder']['getData'](_0x2834d5,_0x1a4bcc['toVersion']),_0x334dbc={'id':_0x1a4bcc['id'],'diffData':_0x3df855['diffData'],'authorsIds':_0x3df855['authorsIds'],'authors':_0x3df855['authorsIds']['map'](_0x2ea17b=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ea17b)),'fromVersion':_0x2834d5};_0x1a4bcc===this['currentRevision']&&(_0x334dbc['createdAt']=new Date(_0x4986fb['createdAt']['getTime']()+0xa)),_0x1a4bcc['_update'](_0x334dbc,!0x0),delete _0x334dbc['authors'],_0x1cafca['push'](_0x334dbc);}}if(this['adapter']){for(const _0x4e3fbe of _0x1cafca)this['_bufferUpdate'](_0x4e3fbe['id'],_0x4e3fbe,!0x0);this['sendBufferedUpdates']();}return _0x238172;}['addRevisionData'](_0x2d7ba7){const _0x2b2677=this['repository']['createRevision'](_0x2d7ba7);return this['adapter']&&_0x2b2677['on']('_update',(_0x3dcd76,_0x503ed5,_0x49a6a3)=>{_0x49a6a3||(this['_bufferUpdate'](_0x503ed5['id'],_0x503ed5,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2b2677,this['_findInsertionIndex'](_0x2b2677)),_0x2b2677;}async['getRevisionDocumentData'](_0x84a2b5){await this['_loadRevisionData'](_0x84a2b5);const _0x47e986={};for(const _0x400dd1 in _0x84a2b5['diffData']){if(_0x84a2b5['diffData'][_0x400dd1]['attachChange']&&!_0x84a2b5['diffData'][_0x400dd1]['attachChange']['isAttached'])continue;const _0x1d7c07=this['_removeRevisionMarkers'](JSON['parse'](_0x84a2b5['diffData'][_0x400dd1]['insertions'])),_0x1a0d1b=this['editor']['editing']['view']['document'],_0x1122b4=new _0xee78eb(_0x1a0d1b,_0x1d7c07['map'](_0x47392b=>V(_0x47392b,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x47e986[_0x400dd1]=this['editor']['data']['processor']['toData'](_0x1122b4),this['editor']['data']['processor']['useFillerType']('default');}return _0x47e986;}async['getRevisionRootsAttributes'](_0x2fd51a){await this['_loadRevisionData'](_0x2fd51a);const _0x473fe3={};for(const _0x4578b6 in _0x2fd51a['diffData'])_0x2fd51a['diffData'][_0x4578b6]['attachChange']&&!_0x2fd51a['diffData'][_0x4578b6]['attachChange']['isAttached']||(_0x473fe3[_0x4578b6]=_0x2fd51a['diffData'][_0x4578b6]['attributesAfter']||{});return _0x473fe3;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x49543e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4c2dae=0x0;_0x4c2dae<_0x49543e['length'];_0x4c2dae++){const _0x477579=_0x49543e[_0x4c2dae];let _0xe64493=!0x1;for(const _0x4d536d of Object['keys'](_0x477579))void 0x0===_0x477579[_0x4d536d]?delete _0x477579[_0x4d536d]:'id'!==_0x4d536d&&(_0xe64493=!0x0);_0xe64493||(_0x49543e[_0x4c2dae]=null);}if(_0x49543e=_0x49543e['filter'](_0x17b194=>null!==_0x17b194),!_0x49543e['length'])return;for(let _0x5f1e50=0x0;_0x5f1e50<_0x49543e['length'];_0x5f1e50++){const _0x498e78=_0x49543e[_0x5f1e50];void 0x0!==_0x498e78['fromVersion']&&void 0x0===_0x498e78['toVersion']&&(_0x498e78['toVersion']=this['repository']['getRevision'](_0x498e78['id'])['toVersion']),void 0x0!==_0x498e78['toVersion']&&void 0x0===_0x498e78['fromVersion']&&(_0x498e78['fromVersion']=this['repository']['getRevision'](_0x498e78['id'])['fromVersion']);}const _0x536fc7=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x49543e,_0x536fc7)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xaf38d7=>{if(_0xaf38d7){for(const _0x324858 of _0xaf38d7)this['setRevisionData']({'id':_0x324858['id'],'createdAt':_0x324858['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x56fb41,_0x496a48){let _0x491a8e=this['editor']['config']['get']('initialData'),_0xca270f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x491a8e){_0x491a8e={};for(const _0x50283c of this['editor']['model']['document']['getRootNames']())_0x491a8e[_0x50283c]='';}if('string'==typeof _0x491a8e&&(_0x491a8e={'main':_0x491a8e}),void 0x0===_0xca270f){_0xca270f={};for(const _0x70a0e of this['editor']['model']['document']['getRootNames']())_0xca270f[_0x70a0e]={};}let _0x44a6fb=!0x1;const _0x20b1b6=Object['keys'](_0x491a8e),_0x462abe=Object['keys'](_0x56fb41);for(const _0x5cdf91 of _0x20b1b6){if(_0x491a8e[_0x5cdf91]!==_0x56fb41[_0x5cdf91]&&''!==_0x491a8e[_0x5cdf91]['trim']()){_0x44a6fb=!0x0;break;}if(!_0x379349(_0xca270f[_0x5cdf91],_0x496a48[_0x5cdf91])&&Object['keys'](_0xca270f[_0x5cdf91])['length']>0x0){_0x44a6fb=!0x0;break;}}_0x44a6fb||(_0x44a6fb=_0x462abe['some'](_0x29550d=>!this['editor']['model']['document']['getRoot'](_0x29550d))),_0x44a6fb&&_0x462677('editor-initial-data-replaced-with-revision-data',{'editorData':_0x491a8e,'editorRootsAttributes':_0xca270f,'revisionData':_0x56fb41,'revisionRootsAttributes':_0x496a48}),this['editor']['config']['set']('initialData',_0x56fb41),this['editor']['config']['set']('rootsAttributes',_0x496a48);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2080ef=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2080ef['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x46b235){const _0x30d4c8=this['repository']['getRevisions']();_0x30d4c8['reverse']();let _0x233ff4=0x0;for(;_0x233ff4<_0x30d4c8['length'];){const _0x22e436=_0x30d4c8[_0x233ff4];if(_0x22e436===this['currentRevision']){_0x233ff4++;continue;}if(_0x22e436['id']===this['_initialRevisionId'])break;const _0x17448d=_0x46b235['toVersion']-_0x22e436['toVersion']||_0x46b235['fromVersion']-_0x22e436['fromVersion'];if(_0x17448d>0x0)break;if(_0x17448d<0x0)_0x233ff4++;else{if(!_0x46b235['creator']&&_0x22e436['creator'])break;if(_0x22e436['creator']||!_0x46b235['creator']){if(_0x46b235['createdAt']>_0x22e436['createdAt'])break;_0x233ff4++;}else _0x233ff4++;}}return _0x233ff4;}['setRevisionData'](_0x11ac33){const _0x11c49c=this['repository']['getRevision'](_0x11ac33['id']);if(_0x11ac33['createdAt']&&(_0x11ac33['createdAt']=new Date(_0x11ac33['createdAt'])),_0x11ac33['authorsIds']){const _0x307ef9=this['editor']['plugins']['get']('Users');_0x11ac33['authors']=_0x11ac33['authorsIds']['map'](_0x4170c9=>_0x307ef9['getUser'](_0x4170c9));}_0x11c49c['_update'](_0x11ac33,!0x0);}['buildRevisionData']({revision:_0x24abf3=null,from:_0x3f2903=null,to:_0x26da1d=null}){_0x3f2903=null!==_0x3f2903?_0x3f2903:_0x24abf3['fromVersion'],_0x26da1d=null!==_0x26da1d?_0x26da1d:_0x24abf3['toVersion'];const _0x5bc44d=this['_revisionDataBuilder']['getData'](_0x3f2903,_0x26da1d),_0x16669b={'diffData':_0x5bc44d['diffData'],'authorsIds':_0x5bc44d['authorsIds'],'fromVersion':_0x3f2903,'toVersion':_0x26da1d};if(!_0x24abf3||_0x26da1d!==_0x24abf3['toVersion']){const _0x35113f=_0x26da1d-0x1,_0x2710b1=this['_source']['history']['getOperation'](_0x35113f);_0x16669b['createdAt']=_0x2710b1&&_0x2710b1['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3f2903===this['_loadedStateData']['fromVersion']){for(const _0x46570b of this['_loadedStateData']['authors'])_0x16669b['authorsIds']['includes'](_0x46570b['id'])||_0x16669b['authorsIds']['push'](_0x46570b['id']);}return _0x16669b;}['_loadRevisionData'](_0x3df92d){if(!_0x3df92d||_0x3df92d['diffData'])return Promise['resolve']();{const _0x55643f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x55643f,'revisionId':_0x3df92d['id']})['then'](_0x19ac1c=>{_0x3df92d['diffData']=_0x19ac1c['diffData'];});}}['_bufferUpdate'](_0x234f41,_0x3c45d6,_0x4251fe){if(this['_bufferedUpdates']['has'](_0x234f41)){const _0x2d438e=this['_bufferedUpdates']['get'](_0x234f41);_0x3c45d6=_0x4251fe?{..._0x2d438e,..._0x3c45d6}:{..._0x3c45d6,..._0x2d438e};}this['_bufferedUpdates']['set'](_0x234f41,_0x3c45d6);}['_getFromVersion'](_0x914470){const _0x1af8a4=this['repository']['getRevisions']();_0x1af8a4['reverse'](),_0x1af8a4['shift']();const _0x2ba2a8=_0x1af8a4['find'](_0x4e0f09=>_0x4e0f09['toVersion']<=_0x914470)['toVersion'];return _0x2ba2a8<this['_startingVersion']?this['_startingVersion']:_0x2ba2a8;}['_createInitialRevision'](_0x4fc144){const _0x29a8e0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x29a8e0)this['_initialRevisionId']=_0x29a8e0['id'];else{const _0x15dacf=!this['editor']['model']['document']['roots']['find'](_0x527750=>this['editor']['model']['hasContent'](_0x527750)),_0x4f5205=this['editor']['plugins']['get']('Users')['me']['id'],_0x745bc3=R(this['editor']['locale'],_0x15dacf?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4fc144,'to':_0x4fc144,'id':this['_initialRevisionId'],'name':_0x745bc3,'creatorId':_0x4f5205});}}['_createCurrentRevision'](_0x148a89){const _0x44956f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x44956f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x148a89,'to':_0x148a89,'id':_0x44956f,'name':'','creatorId':null}));}['_makeRevision']({name:_0x527cc4,from:_0x41aac7,to:_0x468dc6,creatorId:_0x4b53a2,id:_0x151f47}){const _0x15c32d=this['buildRevisionData']({'from':_0x41aac7,'to':_0x468dc6});_0x15c32d['name']=_0x527cc4,_0x15c32d['creatorId']=_0x4b53a2,_0x15c32d['id']=_0x151f47;const _0x3c0945=this['addRevisionData'](_0x15c32d);return this['adapter']&&this['_bufferUpdate'](_0x15c32d['id'],_0x15c32d,!0x0),_0x3c0945;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4b53b2){return(_0x4b53b2=_0x4b53b2['filter'](_0x4dc2fa=>!_0x4dc2fa['name']||'revision-start'!==_0x4dc2fa['name']&&'revision-end'!==_0x4dc2fa['name']))['forEach'](_0x4ba8c6=>{'string'!=typeof _0x4ba8c6&&(_0x4ba8c6['children']=this['_removeRevisionMarkers'](_0x4ba8c6['children']),_0x4ba8c6['attributes']=_0x4ba8c6['attributes']['filter'](_0x5a3f8e=>!_0x5a3f8e[0x0]['startsWith']('data-revision-')));}),_0x4b53b2;}}function V(_0x101656,_0x5553c7){const _0x2c5cbf=_0x5553c7['editing']['view']['document'];if('string'==typeof _0x101656)return new _0x2c1532(_0x2c5cbf,_0x101656);{const _0xcfb911=_0x101656['children']['map'](_0x39d3eb=>V(_0x39d3eb,_0x5553c7));return new(C[_0x101656['type']]||_0x173c9e)(_0x2c5cbf,_0x101656['name'],_0x101656['attributes'],_0xcfb911);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1fc5dc){this['editor']=_0x1fc5dc,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'](_0xb9baec){this['source']=_0xb9baec;const _0x30b181=new Map(),_0x4c6540=new Map(),_0x241116=this['editor']['model']['document']['roots']['map'](_0x215355=>_0x215355['rootName']);for(const _0x4570db of _0x241116){const _0x3a6e69=this['editor']['model']['document']['getRoot'](_0x4570db),_0x2dc6b0=F(_0x3a6e69);_0x30b181['set'](_0x4570db,_0x2dc6b0),_0x4c6540['set'](_0x4570db,Object['fromEntries'](_0x3a6e69['getAttributes']()));}const _0x513810=Array['from'](this['editor']['model']['markers'])['map'](_0x3bcbd4=>[_0x3bcbd4['name'],_0x3bcbd4['getRange']()]),_0x45b590=this['source']['version'];this['_saveMetaData'](_0x45b590,_0x30b181,_0x513810,_0x4c6540),this['_startingRevisionId']=this['_revisionId'];const _0x31349b=new Map(),_0x4efb66=new Map();for(const _0x28df56 of _0x241116){const _0x1506f4=B(_0x28df56);_0x31349b['set'](_0x28df56,_0x1506f4),_0x4efb66['set'](_0x28df56,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x31349b,[],_0x4efb66);}['getData'](_0x15b0be,_0x464d87){if(this['_lastFrom']===_0x15b0be&&this['_lastTo']<=_0x464d87)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x464d87,!0x0);else{if(!this['_savedMetaData']['has'](_0x15b0be)){const _0x366573=this['_getPreviousFrom'](_0x15b0be);this['_calculateMetaData'](_0x366573,_0x15b0be,!0x1);}this['_calculateMetaData'](_0x15b0be,_0x464d87,!0x0);}return this['_lastFrom']=_0x15b0be,this['_lastTo']=_0x464d87,this['_getState']();}['loadState'](_0x530565){this['_reset'](),this['_lastFrom']=_0x530565['fromVersion'],this['_lastTo']=_0x530565['toVersion'];for(const _0x41c035 in _0x530565['diffData']){const _0xae27c6=_0x530565['diffData'][_0x41c035]['attachChange'],_0x512551=_0x2df5ea(_0x530565['diffData'][_0x41c035]['attributesBefore'])||{},_0x5433dd=this['_makeModelFromViewString'](_0x530565['diffData'][_0x41c035]['deletions']);_0x5433dd['rootName']=_0x41c035,_0x5433dd['_isAttached']=!_0xae27c6||!_0xae27c6['isAttached'],_0x5433dd['isAttached']=()=>_0x5433dd['_isAttached'],this['_baseRoots']['set'](_0x41c035,_0x5433dd),this['_baseRootsAttributes']['set'](_0x41c035,_0x512551),_0xae27c6&&this['_touchedRoots']['set'](_0x41c035,_0xae27c6);const _0x3a2483=this['_makeIdsRoot'](_0x5433dd);this['_baseIdsRoots']['set'](_0x41c035,_0x3a2483);for(const [_0x29adca,_0x47c18b]of _0x5433dd['markers']){if(!_0x29adca['startsWith']('revision:'))continue;const _0xec5035=_0x29adca['split'](':')[0x2];for(const _0xafb833 of _0x47c18b['getWalker']({'singleCharacters':!0x0})){const _0x1c2c31=this['_getVidAttributeName'](_0xafb833),_0x14afde='elementEnd'==_0xafb833['type']?_0xafb833['previousPosition']['path']['slice'](0x0,-0x1):_0xafb833['previousPosition']['path'],_0x39f26f=_0x3a2483['getNodeByPath'](_0x14afde)['getAttribute'](_0x1c2c31);this['_touched']['set'](_0x39f26f,{'userId':_0xec5035});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4b3e8f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x32f078=>!this['_touched']['has'](_0x32f078));let _0x3aeadd=0x0;const _0x52a6be=new Map();for(const _0x227e63 in _0x530565['diffData']){const _0x1205c5=_0x530565['diffData'][_0x227e63]['attachChange'],_0x3f8d49=_0x2df5ea(_0x530565['diffData'][_0x227e63]['attributesAfter'])||{},_0x35b16e=this['_makeModelFromViewString'](_0x530565['diffData'][_0x227e63]['insertions']);_0x35b16e['rootName']=_0x227e63,_0x35b16e['_isAttached']=!_0x1205c5||_0x1205c5['isAttached'],_0x35b16e['isAttached']=()=>_0x35b16e['_isAttached'],this['_diffRoots']['set'](_0x227e63,_0x35b16e),this['_diffRootsAttributes']['set'](_0x227e63,_0x3f8d49);const _0x180c09=this['_makeIdsRoot'](_0x35b16e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x227e63,_0x180c09),_0x52a6be['set'](_0x227e63,_0x35b16e['isAttached']()?_0x3f8d49:{});for(const [_0x4173f2,_0x33bc7c]of _0x35b16e['markers']){if(!_0x4173f2['startsWith']('revision:'))continue;const _0x303a6b=_0x4173f2['split'](':')[0x2];for(const _0x897280 of _0x33bc7c['getWalker']({'singleCharacters':!0x0})){const _0x341469=this['_getVidAttributeName'](_0x897280),_0x69c88b=this['_revisionId']++,_0x5b4850='elementEnd'==_0x897280['type']?_0x897280['previousPosition']['path']['slice'](0x0,-0x1):_0x897280['previousPosition']['path'];_0x180c09['getNodeByPath'](_0x5b4850)['_setAttribute'](_0x341469,_0x69c88b),this['_touched']['set'](_0x69c88b,{'userId':_0x303a6b});}}for(const _0x9be3dc of this['editor']['model']['createRangeIn'](_0x35b16e)['getWalker']({'singleCharacters':!0x0})){const _0x2915a4=this['_getVidAttributeName'](_0x9be3dc),_0x263269='elementEnd'==_0x9be3dc['type']?_0x9be3dc['previousPosition']['path']['slice'](0x0,-0x1):_0x9be3dc['previousPosition']['path'],_0x42c49a=_0x180c09['getNodeByPath'](_0x263269);_0x42c49a['getAttribute'](_0x2915a4)>0x0||_0x42c49a['_setAttribute'](_0x2915a4,_0x4b3e8f[_0x3aeadd++]);}for(const [_0x1eadbb,_0x49ad23]of _0x35b16e['markers'])_0x1eadbb['startsWith']('revision:')||this['_markers']['set'](_0x1eadbb,_0x49ad23);}const _0x321c97=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x321c97),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x321c97,0x1));const _0x4c8084=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4c8084),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c8084,0x1));const _0x54f6ff=Array['from'](this['_diffRoots'])['map'](([_0x5af9bd,_0x450555])=>[_0x5af9bd,F(_0x450555)]);this['_saveMetaData'](this['_lastTo'],_0x54f6ff,this['_markers'],_0x52a6be);}['_makeModelFromViewString'](_0x2c29c0){const _0x56dd48=JSON['parse'](_0x2c29c0),_0x24dd74=this['editor']['editing']['view']['document'],_0x48f183=new _0xee78eb(_0x24dd74,_0x56dd48['map'](_0x349d83=>V(_0x349d83,this['editor'])));return this['editor']['data']['toModel'](_0x48f183);}['_saveMetaData'](_0x5db83c,_0x563fff,_0x3c521e,_0x332fc0){const _0x763e64=new Map(_0x563fff),_0x408421=new Map(_0x2df5ea(_0x332fc0)),_0x2447db=new Map();for(const [_0x11f665,_0x5086c9]of _0x3c521e)_0x2447db['set'](_0x11f665,{'start':_0x5086c9['start']['clone'](),'end':_0x5086c9['end']['clone'](),'rootName':_0x5086c9['root']['rootName']});this['_savedMetaData']['set'](_0x5db83c,{'roots':_0x763e64,'markers':_0x2447db,'rootsAttributes':_0x408421});}['_removeMetaData'](_0x1f1028){this['_savedMetaData']['delete'](_0x1f1028);}['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'](_0x2ef045,_0x435216=null){let _0x269d97=null;_0x2ef045['is']('documentFragment')||(_0x269d97=new ft(_0x2ef045['name'],{'vid_start':null===_0x435216?this['_revisionId']++:_0x435216++}));const _0x5a5f5b=[];for(const _0x7aedd4 of _0x2ef045['getChildren']())if(_0x7aedd4['is']('element')){_0x5a5f5b['push'](this['_makeIdsRoot'](_0x7aedd4,_0x435216));const _0x401f55=_0x5a5f5b[_0x5a5f5b['length']-0x1];null!==_0x435216&&(_0x435216=_0x401f55['is']('element','$text')?_0x401f55['getAttribute']('vid')+0x1:_0x401f55['getAttribute']('vid_end')+0x1);}else{for(let _0x3b80d7=0x0;_0x3b80d7<_0x7aedd4['offsetSize'];_0x3b80d7++)_0x5a5f5b['push'](new ft('$text',{'vid':null===_0x435216?this['_revisionId']++:_0x435216++}));}if(_0x2ef045['is']('documentFragment')){const _0x2b7392=B(_0x2ef045['rootName']);return _0x2b7392['_insertChild'](0x0,_0x5a5f5b),_0x2b7392;}return _0x269d97['_setAttribute']('vid_end',null===_0x435216?this['_revisionId']++:_0x435216++),_0x269d97['_insertChild'](0x0,_0x5a5f5b),_0x269d97;}['_calculateMetaData'](_0x5c5f13,_0x4ba342,_0x54daea){this['_reset']();const {roots:_0x38a5e4,markers:_0x296d42,rootsAttributes:_0x6c4d81}=this['_savedMetaData']['get'](_0x5c5f13);this['_baseRoots']=new Map(_0x38a5e4),this['_baseRootsAttributes']=new Map(_0x2df5ea(_0x6c4d81));for(const [_0x4d559d,_0x545669]of this['_baseRoots'])if('$graveyard'!==_0x4d559d&&(this['_diffRoots']['set'](_0x4d559d,F(_0x545669)),this['_diffRootsAttributes']=new Map(_0x2df5ea(_0x6c4d81)),_0x54daea)){const _0x8ef3d5=this['_revisionId'];this['_idsRoots']['set'](_0x4d559d,this['_makeIdsRoot'](_0x545669)),this['_baseIdsRoots']['set'](_0x4d559d,this['_makeIdsRoot'](_0x545669,_0x8ef3d5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x54daea&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x15c831,_0x4d8b54]of _0x296d42){const _0x292deb=this['_baseRoots']['get'](_0x4d8b54['rootName']),_0x282f0a=this['_diffRoots']['get'](_0x4d8b54['rootName']),_0x465cbd=new vt(this['_fixPosition'](_0x4d8b54['start'],_0x292deb),this['_fixPosition'](_0x4d8b54['end'],_0x292deb)),_0x508a0c=this['_fixRange'](_0x465cbd,_0x282f0a);_0x292deb['markers']['set'](_0x15c831,_0x465cbd),this['_markers']['set'](_0x15c831,_0x508a0c);}this['_applyOperations'](_0x5c5f13,_0x4ba342,_0x54daea);}['_applyOperations'](_0x4dade6,_0x5e3093,_0x46c3ff){for(const _0x116601 of this['source']['getOperations'](_0x4dade6,_0x5e3093))this['_handleOperation'](_0x116601,_0x46c3ff);for(const _0x448aad of this['_diffRoots']['values']())_0x448aad['markers']['clear']();for(const [_0x24c993,_0x90e6ff]of this['_markers']){this['_diffRoots']['get'](_0x90e6ff['root']['rootName'])['markers']['set'](_0x24c993,_0x90e6ff['clone']());}const _0x2562bd=new Map(),_0xf02e8b=new Map();for(const [_0x1b2c19,_0x421cf5]of this['_diffRoots'])_0x2562bd['set'](_0x1b2c19,F(_0x421cf5)),_0xf02e8b['set'](_0x1b2c19,this['_diffRootsAttributes']['get'](_0x1b2c19));this['_saveMetaData'](_0x5e3093,_0x2562bd,this['_markers'],_0xf02e8b);}['_getPreviousFrom'](_0x159a2f){const _0x20ea5a=Array['from'](this['_savedMetaData']['keys']());_0x20ea5a['sort']((_0x52ed1a,_0x2e5e52)=>_0x52ed1a-_0x2e5e52),_0x20ea5a['reverse']();for(const _0x3386ac of _0x20ea5a)if(_0x3386ac<_0x159a2f)return _0x3386ac;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4240e8,_0x13a033){const _0xd19099=Array['from'](_0x13a033['markers'])['map'](([_0x155bc3,_0x2aef4c])=>[_0x155bc3,this['_fixRange'](_0x2aef4c,_0x4240e8)]);_0x4240e8['markers']=new Map(_0xd19099);}['_transformMarkers'](_0x3c2e33){for(const _0x582c14 of this['_markers']['values']()){const _0x370628=_0x582c14['getTransformedByOperation'](_0x3c2e33),_0x49c5c9=vt['_createFromRanges'](_0x370628);_0x582c14['start']=_0x49c5c9['start'],_0x582c14['end']=_0x49c5c9['end'];}}['_handleOperation'](_0x5c94c5,_0x572d47){if('addRoot'!=_0x5c94c5['type']&&'detachRoot'!=_0x5c94c5['type']){if('insert'==_0x5c94c5['type']){const _0x408e9c=_0x5c94c5['position']['root']['rootName'];this['_diffRoots']['has'](_0x408e9c)||(this['_diffRoots']['set'](_0x408e9c,B(_0x408e9c,!0x0)),this['_diffRootsAttributes']['set'](_0x408e9c,{}),_0x572d47&&this['_idsRoots']['set'](_0x408e9c,B(_0x408e9c,!0x0)));}else{if('addRootAttribute'==_0x5c94c5['type']||'removeRootAttribute'==_0x5c94c5['type']||'changeRootAttribute'==_0x5c94c5['type'])return void this['_handleRootAttributeOperation'](_0x5c94c5);'marker'==_0x5c94c5['type']&&this['_handleMarkerOperation'](_0x5c94c5);}if('marker'!==_0x5c94c5['type']){const _0x13e6e5=this['_cloneOperation'](_0x5c94c5,this['_diffRoots']);_0x13e6e5['_execute'](),this['_transformMarkers'](_0x13e6e5);}if(_0x572d47)switch(_0x5c94c5['type']){case'insert':this['_handleInsertOperation'](_0x5c94c5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5c94c5);break;case'merge':this['_handleMergeOperation'](_0x5c94c5);break;case'split':this['_handleSplitOperation'](_0x5c94c5);}}else this['_handleRootOperation'](_0x5c94c5,_0x572d47);}['_cloneOperation'](_0xd6782a,_0x1f2d3b){const _0x25b572=_0xd6782a['clone']();return _0x25b572['_authorId']=_0xd6782a['_authorId'],this['_fixOperation'](_0x25b572,_0x1f2d3b),_0x25b572;}['_getBaseVids'](_0x224111){return _0x224111['map'](_0x274c35=>{const _0x52a2e8=this['_getVidAttributeName'](_0x274c35);return Number(_0x274c35['item']['getAttribute'](_0x52a2e8));});}['_generateTape'](_0x10fbfe,_0x39d4c7){if(_0x10fbfe['is']('element','$text'))_0x39d4c7['push']({'item':_0x10fbfe,'type':'text'});else{_0x10fbfe['is']('element')&&_0x39d4c7['push']({'item':_0x10fbfe,'type':'elementStart'});for(const _0x4e147e of _0x10fbfe['getChildren']())this['_generateTape'](_0x4e147e,_0x39d4c7);_0x10fbfe['is']('element')&&_0x39d4c7['push']({'item':_0x10fbfe,'type':'elementEnd'});}return _0x39d4c7;}['_getState'](){const _0x2d57e0=new Map(this['_touched']),_0x1a37fa=new Map(_0x2d57e0),_0x1e15d6=new Map(),_0x4131cf={'insertions':{},'deletions':{}},_0x4c8ded={'insertions':{},'deletions':{}},_0x3388d7=new Map(),_0x1be0a7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1be0a7['delete']('$graveyard');for(const _0x59844e of _0x1be0a7){const _0x5d1116=this['_diffRoots']['get'](_0x59844e)||B(_0x59844e,!0x1),_0x13e022=this['_baseRoots']['get'](_0x59844e)||B(_0x59844e,!0x1);_0x5d1116['isAttached']()||_0x13e022['isAttached']()?(_0x4131cf['insertions'][_0x59844e]=F(_0x5d1116),_0x4131cf['deletions'][_0x59844e]=F(_0x13e022),this['_copyMarkers'](_0x4131cf['deletions'][_0x59844e],_0x13e022),this['_copyMarkers'](_0x4131cf['insertions'][_0x59844e],_0x5d1116),_0x4c8ded['insertions'][_0x59844e]=this['_generateTape'](this['_idsRoots']['get'](_0x59844e),[]),_0x4c8ded['deletions'][_0x59844e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x59844e)||B(_0x59844e,!0x1),[])):_0x1be0a7['delete'](_0x59844e);}for(const _0x54871e of _0x1be0a7){const _0x452874=_0x4c8ded['insertions'][_0x54871e];for(const _0x5eb411 of _0x452874){const _0x4b21ae=this['_getVidAttributeName'](_0x5eb411),_0x58e0f4=_0x5eb411['item']['getAttribute'](_0x4b21ae);_0x1a37fa['delete'](_0x58e0f4),_0x58e0f4>=this['_startingRevisionId']&&_0x1e15d6['set'](_0x58e0f4,_0x2d57e0['get'](_0x58e0f4));}}for(const _0x11646e of _0x1be0a7){const _0x2fcf77=_0x4c8ded['insertions'][_0x11646e],_0x3e76e1=this['_getBaseVids'](_0x4c8ded['deletions'][_0x11646e]);let _0xc6fcf5=0x0;for(const _0x10773c of _0x2fcf77){const _0x4ecec5=this['_getVidAttributeName'](_0x10773c),_0x1620f5=_0x10773c['item']['getAttribute'](_0x4ecec5);if(!_0x1e15d6['has'](_0x1620f5)&&!_0x3388d7['has'](_0x1620f5)){if(_0x1a37fa['has'](_0x1620f5))_0xc6fcf5++;else{if(_0x1620f5!=_0x3e76e1[_0xc6fcf5]){const _0x40bf10=_0x2d57e0['get'](_0x1620f5)||_0x2d57e0['get'](_0x3e76e1[_0xc6fcf5]);for(;_0x1620f5!=_0x3e76e1[_0xc6fcf5];)_0x1a37fa['has'](_0x3e76e1[_0xc6fcf5])||(_0x3388d7['set'](_0x3e76e1[_0xc6fcf5],_0x40bf10),_0x2d57e0['set'](_0x3e76e1[_0xc6fcf5],_0x40bf10)),_0xc6fcf5++;}_0xc6fcf5++;}}}}for(const _0x218825 of _0x1be0a7){const _0x36ba11=_0x4c8ded['insertions'][_0x218825];for(const _0x1d5d00 of _0x36ba11){const _0x292ac8=this['_getVidAttributeName'](_0x1d5d00),_0x1161b2=_0x1d5d00['item']['getAttribute'](_0x292ac8);if(_0x3388d7['has'](_0x1161b2)){const _0x73af2e=_0x3388d7['get'](_0x1161b2);_0x1a37fa['has'](_0x1161b2)||_0x1a37fa['set'](_0x1161b2,{..._0x73af2e}),_0x1e15d6['set'](_0x1161b2,{..._0x73af2e});}}}for(const _0x234313 of _0x1a37fa['keys']())_0x234313>=this['_startingRevisionId']&&_0x1a37fa['delete'](_0x234313);const _0x41347f=new Map();for(const _0x437c2c of _0x1be0a7){let _0x1888c0=_0x4c8ded['insertions'][_0x437c2c];for(const _0xb600eb of _0x1888c0)if(_0xb600eb['item']['is']('element','tableCell')){const _0x32f1c0=this['_getVidAttributeName'](_0xb600eb),_0x4ba6db=_0xb600eb['item']['getAttribute'](_0x32f1c0);if(_0x1e15d6['has'](_0x4ba6db)){const _0x1f0c93=_0xb600eb['item']['parent']['parent']['getAttribute']('vid_start'),_0x58490a=_0x41347f['get'](_0x1f0c93)||new Set();_0x58490a['add'](_0x1e15d6['get'](_0x4ba6db)['userId']),_0x41347f['set'](_0x1f0c93,_0x58490a);}}_0x1888c0=_0x4c8ded['deletions'][_0x437c2c];for(const _0x418d10 of _0x1888c0)if(_0x418d10['item']['is']('element','tableCell')){const _0x180fbe=this['_getVidAttributeName'](_0x418d10),_0x155d37=_0x418d10['item']['getAttribute'](_0x180fbe);if(_0x1a37fa['has'](_0x155d37)){const _0x37e1a9=_0x418d10['item']['parent']['parent']['getAttribute']('vid_start'),_0x3de996=_0x41347f['get'](_0x37e1a9)||new Set();_0x3de996['add'](_0x1a37fa['get'](_0x155d37)['userId']),_0x41347f['set'](_0x37e1a9,_0x3de996);}}for(const _0x2e0bbe of _0x41347f['keys']())(_0x1e15d6['has'](_0x2e0bbe)||_0x1a37fa['has'](_0x2e0bbe))&&_0x41347f['delete'](_0x2e0bbe);}for(const _0x1b7999 of _0x1be0a7){const _0x8c2a4a=_0x4c8ded['insertions'][_0x1b7999];let _0x4ce64f=null,_0x219327=null;for(const _0x3cc997 of _0x8c2a4a){const _0x46a365=this['_getVidAttributeName'](_0x3cc997),_0x15ad14=_0x3cc997['item']['getAttribute'](_0x46a365),_0x1435a5=_0x41347f['get'](_0x15ad14);_0x1435a5&&'elementStart'==_0x3cc997['type']&&(_0x4ce64f=Array['from'](_0x1435a5)[0x0],_0x219327=_0x3cc997['item']['getAttribute']('vid_end')),_0x4ce64f&&(_0x1a37fa['set'](_0x15ad14,{'userId':_0x4ce64f}),_0x1e15d6['set'](_0x15ad14,{'userId':_0x4ce64f})),_0x15ad14==_0x219327&&(_0x4ce64f=null,_0x219327=null);}}const _0x407e9e={},_0xf9d7bc=new Set();for(const _0x417918 of _0x1be0a7){const _0x3ab657=_0x4131cf['deletions'][_0x417918],_0x7b7fc=_0x4131cf['insertions'][_0x417918];for(const {userId:_0x4b1c41}of this['_touchedMarkers']['values']())null!==_0x4b1c41&&_0xf9d7bc['add'](_0x4b1c41);for(const {userId:_0x27a463}of this['_touchedRoots']['values']())null!==_0x27a463&&_0xf9d7bc['add'](_0x27a463);this['_markChanges'](_0x7b7fc,_0x4c8ded['insertions'][_0x417918],_0x1e15d6,'insertion',_0xf9d7bc),this['_markChanges'](_0x3ab657,_0x4c8ded['deletions'][_0x417918],_0x1a37fa,'deletion',_0xf9d7bc),_0x407e9e[_0x417918]={'insertions':this['_prepareViewToSave'](_0x7b7fc),'deletions':this['_prepareViewToSave'](_0x3ab657),'attachChange':this['_touchedRoots']['get'](_0x417918)||null,'attributesBefore':_0x2df5ea(this['_baseRootsAttributes']['get'](_0x417918))||{},'attributesAfter':_0x2df5ea(this['_diffRootsAttributes']['get'](_0x417918))};}return{'diffData':_0x407e9e,'authorsIds':Array['from'](_0xf9d7bc)};}['_processRootBeforeSave'](_0x279cb1){for(const [,_0x9e49ef]of _0x279cb1['markers']){const _0x2cc1f6=_0x9e49ef['start']['getAncestors']()['filter'](_0x56979c=>'tableCell'==_0x56979c['name']);for(const _0x577c25 of _0x2cc1f6)0x1==_0x577c25['childCount']&&_0x577c25['getChild'](0x0)['is']('element','paragraph')&&_0x577c25['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3a0eb3){this['_processRootBeforeSave'](_0x3a0eb3);const _0x1bd27c=this['editor']['data']['toView'](_0x3a0eb3,{}),_0x2d15e0=Array['from'](_0x1bd27c['getChildren']())['map'](_0x55b02b=>this['_getViewJson'](_0x55b02b));return JSON['stringify'](_0x2d15e0);}['_getViewJson'](_0x47f5ba){if(_0x47f5ba['is']('$text'))return _0x47f5ba['data'];{const _0x545048=_0x47f5ba;return{'type':Object['keys'](C)['find'](_0x1b8267=>_0x47f5ba instanceof C[_0x1b8267]),'name':_0x545048['name'],'attributes':Array['from'](_0x545048['getAttributes']()),'children':Array['from'](_0x545048['getChildren']())['map'](_0x18a602=>this['_getViewJson'](_0x18a602))};}}['_markChanges'](_0x507e5b,_0x5ca940,_0x2e0f27,_0x32f01b,_0x220abd){let _0xb5923e=null,_0x5438d8=null,_0x391905=0x0;const _0x3cb2e0=this['editor']['model'];for(let _0x3cc710=0x0;_0x3cc710<_0x5ca940['length'];_0x3cc710++){const _0x42bf53=this['_getVidAttributeName'](_0x5ca940[_0x3cc710]),_0x138c11=_0x5ca940[_0x3cc710]['item']['getAttribute'](_0x42bf53),_0x579e07=_0x2e0f27['get'](_0x138c11),_0x4dcfb7=_0x3cc710==_0x5ca940['length']-0x1;(!_0xb5923e&&_0x579e07&&(_0xb5923e=_0x579e07,_0x5438d8=_0x5ca940[_0x3cc710]),_0xb5923e&&(!_0x579e07||_0x579e07['userId']!=_0xb5923e['userId']))&&(_0x968832(_0x579e07,J(_0x5438d8,_0x507e5b,_0x3cb2e0),J(_0x5ca940[_0x3cc710],_0x507e5b,_0x3cb2e0)),_0xb5923e=_0x579e07||null,_0x5438d8=_0x579e07?_0x5ca940[_0x3cc710]:null),_0xb5923e&&_0x4dcfb7&&_0x968832(_0x579e07,J(_0x5438d8,_0x507e5b,_0x3cb2e0),q(_0x5ca940[_0x3cc710],_0x507e5b,_0x3cb2e0));}function _0x968832(_0x5841c3,_0x369bb2,_0x36ea3b){const _0x37b375=_0xb5923e['userId'],_0xb264f4='revision:'+_0x32f01b+':'+_0x37b375+':'+_0x391905++,_0x528a97=_0x3cb2e0['createRange'](_0x369bb2,_0x36ea3b);_0x507e5b['markers']['set'](_0xb264f4,_0x528a97),null!==_0x37b375&&_0x220abd['add'](_0x37b375);}}['_getVidAttributeName'](_0x2fba7b){switch(_0x2fba7b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x53bad1,_0x23fe9b){_0x53bad1['baseVersion']=null;for(const _0x4577a5 in _0x53bad1){const _0x107a69=_0x53bad1[_0x4577a5];if(_0x107a69 instanceof gt){const _0x4139e8=_0x23fe9b['get'](_0x107a69['root']['rootName']);_0x53bad1[_0x4577a5]=this['_fixPosition'](_0x107a69,_0x4139e8);}if(_0x107a69 instanceof vt){const _0x3fe4a6=_0x23fe9b['get'](_0x107a69['root']['rootName']);_0x53bad1[_0x4577a5]=this['_fixRange'](_0x107a69,_0x3fe4a6);}'root'===_0x4577a5&&(_0x53bad1['root']=_0x23fe9b['get'](_0x53bad1['root']['rootName']));}}['_fixRange'](_0xb4cd73,_0x1012be){return this['editor']['model']['createRange'](this['_fixPosition'](_0xb4cd73['start'],_0x1012be),this['_fixPosition'](_0xb4cd73['end'],_0x1012be));}['_fixPosition'](_0x4f03a9,_0xa685fc){return this['editor']['model']['createPositionFromPath'](_0xa685fc,_0x4f03a9['path'],_0x4f03a9['stickiness']);}['_handleInsertOperation'](_0xa3f4cf){const _0x12aaeb=this['_idsRoots']['get'](_0xa3f4cf['position']['root']['rootName']),_0x5ec517=this['_fixPosition'](_0xa3f4cf['position'],_0x12aaeb),_0x10bc69=null===_0xa3f4cf['_authorId']?null:_0xa3f4cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e3695=_0x5ec517['parent'],_0x4a9d25=this['_revisionId'],_0x221bb0=[];for(const _0xc8b9b of _0xa3f4cf['nodes'])if(_0xc8b9b['is']('element'))_0x221bb0['push'](this['_makeIdsRoot'](_0xc8b9b));else{for(let _0x32299c=0x0;_0x32299c<_0xc8b9b['offsetSize'];_0x32299c++)_0x221bb0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5a0820=this['_revisionId'];for(let _0x34a322=_0x4a9d25;_0x34a322<_0x5a0820;_0x34a322++)this['_touched']['set'](_0x34a322,{'userId':_0x10bc69});_0x4e3695['_insertChild'](_0x5ec517['offset'],_0x221bb0);}['_handleMoveOperation'](_0x3d5d19){(_0x3d5d19=this['_cloneOperation'](_0x3d5d19,this['_idsRoots']))['_execute']();const _0x4d091d=null===_0x3d5d19['_authorId']?null:_0x3d5d19['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x33ac9b=_0x3d5d19['getMovedRangeStart'](),_0x4510f1=_0x33ac9b['parent'],_0x419ce4=_0x33ac9b['offset'];!function _0x37b035(_0x268499,_0x2525c3,_0x5addc,_0x3b5608){for(let _0x5b1472=_0x5addc;_0x5b1472<_0x3b5608;_0x5b1472++){const _0x50a301=_0x2525c3['getChild'](_0x5b1472);_0x50a301['is']('element','$text')?_0x268499['set'](_0x50a301['getAttribute']('vid'),{'userId':_0x4d091d}):(_0x268499['set'](_0x50a301['getAttribute']('vid_start'),{'userId':_0x4d091d}),_0x37b035(_0x268499,_0x50a301,0x0,_0x50a301['childCount']),_0x268499['set'](_0x50a301['getAttribute']('vid_end'),{'userId':_0x4d091d}));}}(this['_touched'],_0x4510f1,_0x419ce4,_0x419ce4+_0x3d5d19['howMany']);}['_handleMergeOperation'](_0x34e5a5){const _0x524edb=null===(_0x34e5a5=this['_cloneOperation'](_0x34e5a5,this['_idsRoots']))['_authorId']?null:_0x34e5a5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3789bc=_0x34e5a5['targetPosition']['parent'],_0x3c6b7c=_0x34e5a5['sourcePosition']['parent'],_0x1bcb54=_0x3789bc['getAttribute']('vid_end'),_0x4c4b9a=_0x3c6b7c['getAttribute']('vid_start');_0x3789bc['_setAttribute']('vid_end',_0x3c6b7c['getAttribute']('vid_end')),_0x3c6b7c['_setAttribute']('vid_end',_0x1bcb54),this['_touched']['set'](_0x4c4b9a,{'userId':_0x524edb}),this['_touched']['set'](_0x1bcb54,{'userId':_0x524edb}),_0x34e5a5['_execute']();}['_handleSplitOperation'](_0x428916){const _0x7c5664=null===(_0x428916=this['_cloneOperation'](_0x428916,this['_idsRoots']))['_authorId']?null:_0x428916['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38b0ca=_0x428916['graveyardPosition'],_0x5649d4=_0x428916['splitPosition']['parent'];_0x428916['_execute']();const _0x45804b=_0x5649d4['getAttribute']('vid_end'),_0x42b8f5=_0x428916['insertionPosition']['nodeAfter'];if(_0x38b0ca){const _0x3a35b1=_0x42b8f5['getAttribute']('vid_end'),_0xff59f5=_0x5649d4['getAttribute']('vid_end');_0x5649d4['_setAttribute']('vid_end',_0x3a35b1),_0x42b8f5['_setAttribute']('vid_end',_0xff59f5),this['_touched']['set'](_0x5649d4['getAttribute']('vid_end'),{'userId':_0x7c5664}),this['_touched']['set'](_0x42b8f5['getAttribute']('vid_start'),{'userId':_0x7c5664});}else{const _0xfc79b=this['_revisionId']++,_0x565702=this['_revisionId']++;_0x5649d4['_setAttribute']('vid_end',_0xfc79b),_0x42b8f5['_setAttribute']('vid_start',_0x565702),_0x42b8f5['_setAttribute']('vid_end',_0x45804b),this['_touched']['set'](_0xfc79b,{'userId':_0x7c5664}),this['_touched']['set'](_0x565702,{'userId':_0x7c5664});}}['_handleMarkerOperation'](_0x532e5f){if(!_0x532e5f['affectsData'])return;const _0x290fc0=(_0x532e5f=this['_cloneOperation'](_0x532e5f,this['_diffRoots']))['oldRange']?_0x532e5f['oldRange']['root']:null,_0x55a372=_0x532e5f['newRange']?_0x532e5f['newRange']['root']:null;_0x290fc0&&this['_markers']['delete'](_0x532e5f['name']),_0x55a372&&this['_markers']['set'](_0x532e5f['name'],_0x532e5f['newRange']['clone']());const _0x34eaec=null===_0x532e5f['_authorId']?null:_0x532e5f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x36267=_0x532e5f['name'];if(!this['_touchedMarkers']['has'](_0x36267))return void this['_touchedMarkers']['set'](_0x36267,{'range':_0x532e5f['oldRange'],'userId':_0x34eaec});const _0xaef10a=this['_touchedMarkers']['get'](_0x36267),_0x24b4a9=_0xaef10a['range'],_0x30fb87=_0x532e5f['newRange'];null==_0x24b4a9&&null==_0x30fb87||_0x24b4a9&&_0x30fb87&&_0x24b4a9['isEqual'](_0x30fb87)?this['_touchedMarkers']['delete'](_0x532e5f['name']):_0xaef10a['userId']=_0x34eaec;}['_handleRootOperation'](_0x1b943f,_0x5720a6){this['_diffRoots']['has'](_0x1b943f['rootName'])?this['_diffRoots']['get'](_0x1b943f['rootName'])['_isAttached']=_0x1b943f['isAdd']:(this['_diffRoots']['set'](_0x1b943f['rootName'],B(_0x1b943f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1b943f['rootName'],{}),_0x5720a6&&this['_idsRoots']['set'](_0x1b943f['rootName'],B(_0x1b943f['rootName'],!0x0)));const _0x17e036=null===_0x1b943f['_authorId']?null:_0x1b943f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41991b=this['_touchedRoots']['get'](_0x1b943f['rootName']);_0x41991b&&_0x41991b['userId']===_0x17e036?this['_touchedRoots']['delete'](_0x1b943f['rootName']):this['_touchedRoots']['set'](_0x1b943f['rootName'],{'userId':_0x17e036,'isAttached':_0x1b943f['isAdd']});}['_handleRootAttributeOperation'](_0x8af996){const _0x3d2e16=this['_diffRootsAttributes']['get'](_0x8af996['root']['rootName']);null===_0x8af996['newValue']?delete _0x3d2e16[_0x8af996['key']]:_0x3d2e16[_0x8af996['key']]=_0x8af996['newValue'];}}function F(_0x2b3784){const _0x7c2e4a=B(_0x2b3784['rootName'],_0x2b3784['isAttached']());for(const _0xeaddfd of _0x2b3784['getChildren']()){const _0x3f3b73=_0xeaddfd['_clone'](!0x0);_0x7c2e4a['_appendChild'](_0x3f3b73);}return _0x7c2e4a;}function B(_0x33ac15,_0x4c3c86=!0x0){const _0x3a5944=new wt();return _0x3a5944['rootName']=_0x33ac15,_0x3a5944['_isAttached']=_0x4c3c86,_0x3a5944['isAttached']=()=>_0x3a5944['_isAttached'],_0x3a5944;}function J(_0x3ca993,_0x243308,_0x5c3b24){const _0x20aa36='elementEnd'==_0x3ca993['type']?_0x5c3b24['createPositionAt'](_0x3ca993['item'],'end'):_0x5c3b24['createPositionBefore'](_0x3ca993['item']);return _0x5c3b24['createPositionFromPath'](_0x243308,_0x20aa36['path'],_0x20aa36['stickiness']);}function q(_0x3262f0,_0x28efa1,_0x2cbf12){const _0x5e90c1='elementStart'==_0x3262f0['type']?_0x2cbf12['createPositionAt'](_0x3262f0['item'],0x0):_0x2cbf12['createPositionAfter'](_0x3262f0['item']);return _0x2cbf12['createPositionFromPath'](_0x28efa1,_0x5e90c1['path'],_0x5e90c1['stickiness']);}class ns extends _0x1377ad{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2a5e52,_0x44a0d8){super(_0x2a5e52),this['focusTracker']=new _0x5a4af8(),this['keystrokes']=new _0x4cc9b1(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x44a0d8),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'](),_0x19216e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x256999=_0x15269b=>_0x15269b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x256999),this['keystrokes']['set']('arrowleft',_0x256999),this['keystrokes']['set']('arrowup',_0x256999),this['keystrokes']['set']('arrowdown',_0x256999);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3c6b33){this['revisionNameInputView']['fieldView']['element']['value']=_0x3c6b33['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3cebbc){const _0x52bd1f=new at(this['locale'],_0x189690),_0x3dd04c=_0x52bd1f['fieldView'];_0x3dd04c['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x6b373a=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3cebbc&&(_0x6b373a+='\x20('+R(this['locale'],'optional')+')'),(_0x52bd1f['label']=_0x6b373a,_0x3dd04c['on']('input',()=>{this['revisionNameInputValue']=_0x3dd04c['element']['value']['trim']();}),_0x52bd1f);}}class u extends _0x3a656b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x581c7f=this['editor'],_0x7d06ea=_0x581c7f['plugins']['get']('RevisionTracker');_0x581c7f['ui']['componentFactory']['add']('revisionHistory',_0x44ff33=>{const _0x585305=_0x46d3ea(_0x44ff33),_0x45b36e=_0x585305['panelView']['children'],_0x5da705=new te(_0x44ff33),_0x6c65bb=new _0x59897c(_0x44ff33),_0x88ed96=new _0x51e14f(_0x44ff33),_0x58fe02=new _0x59897c(_0x44ff33),_0x1aa9ae=new _0x51e14f(_0x44ff33);return _0x585305['bind']('isEnabled')['to'](_0x7d06ea,'isReady',_0x7d06ea,'isEnabled',_0x581c7f,'isReadOnly',(_0x48fbc4,_0x3380b7,_0x537f55)=>_0x48fbc4&&_0x3380b7&&!_0x537f55),_0x585305['buttonView']['set']({'icon':_0x5bd77f['history'],'label':R(_0x44ff33,'Revision\x20history'),'tooltip':!0x0}),_0x88ed96['set']({'label':R(_0x44ff33,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x88ed96['bind']('isEnabled')['to'](_0x7d06ea,'isReady',_0x7d06ea,'isEnabled',_0x581c7f,'isReadOnly',(_0x4c4713,_0x54fac8,_0x4be697)=>_0x4c4713&&_0x54fac8&&!_0x4be697),_0x88ed96['on']('execute',()=>this['_showDialog']()),_0x1aa9ae['set']({'label':R(_0x44ff33,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1aa9ae['bind']('isEnabled')['to'](_0x7d06ea,'isReady',_0x581c7f,'isReadOnly',(_0x39331a,_0x3ce3da)=>_0x39331a&&!_0x3ce3da),_0x1aa9ae['on']('execute',()=>{_0x581c7f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x585305['isOpen']=!0x1,_0x581c7f['editing']['view']['focus']();}),_0x6c65bb['children']['add'](_0x88ed96),_0x58fe02['children']['add'](_0x1aa9ae),_0x5da705['role']='menu',_0x5da705['items']['addMany']([_0x6c65bb,_0x58fe02]),_0x45b36e['add'](_0x5da705),_0x585305;}),_0x581c7f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x199b8e=this['editor'],_0xab9546=_0x199b8e['locale'],_0x2de827=new _0x26466c(_0xab9546),_0x574cc5=new _0x216938(_0xab9546);_0x2de827['buttonView']['set']({'icon':_0x5bd77f['history'],'label':R(_0xab9546,'Revision\x20history')});const _0x45ad3a=new _0x56d93c(_0xab9546,_0x2de827),_0x3275e7=new _0xed5ff6(_0xab9546);_0x3275e7['set']({'label':R(_0xab9546,'Save\x20current\x20revision')}),_0x3275e7['delegate']('execute')['to'](_0x2de827),_0x3275e7['on']('execute',()=>{this['_showDialog']();}),_0x45ad3a['children']['add'](_0x3275e7),_0x574cc5['items']['add'](_0x45ad3a);const _0x273cb6=new _0x56d93c(_0xab9546,_0x2de827),_0x522192=new _0xed5ff6(_0xab9546);return _0x522192['set']({'label':R(_0xab9546,'Open\x20revision\x20history')}),_0x522192['delegate']('execute')['to'](_0x2de827),_0x522192['on']('execute',()=>{_0x199b8e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x273cb6['children']['add'](_0x522192),_0x574cc5['items']['add'](_0x273cb6),_0x2de827['panelView']['children']['add'](_0x574cc5),_0x2de827;}['_showDialog'](){const _0x169aec=this['editor'],_0x336f39=_0x169aec['locale'],_0x434e6d=_0x169aec['plugins']['get']('Dialog'),_0x4fa0d7=_0x169aec['plugins']['get']('RevisionTracker');function _0x203582(_0x1afa66){_0x169aec['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1afa66['revisionName']?_0x1afa66['revisionNameInputView']['errorText']=R(_0x336f39,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x169aec['plugins']['get'](l)['saveRevision']({'name':_0x1afa66['revisionName']}),_0x434e6d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x203582(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x434e6d['show']({'id':'revisionSave','title':R(_0x336f39,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x169aec['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x434e6d['hide']()},{'label':R(_0x169aec['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x391877){_0x391877['bind']('isEnabled')['to'](_0x4fa0d7,'isReady',_0x4fa0d7,'isEnabled',_0x169aec,'isReadOnly',(_0x237c38,_0x42c05f,_0x5e616d)=>_0x237c38&&_0x42c05f&&!_0x5e616d);},'onExecute':()=>_0x203582(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3063ae=this['editor'],_0x207e79=_0x3063ae['locale'];this['_saveRevisionFormView']=new ns(_0x207e79,_0x3063ae['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x1377ad{['changeId'];['_model'];constructor(_0x49c28f,_0x1bc60e){super(_0x49c28f),this['_model']=_0x1bc60e,this['changeId']=_0x1bc60e['id'];const _0x40f15c=this['bindTemplate'],_0x1aec5c=R(_0x49c28f,_0x1bc60e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1bc60e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1bc60e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x40f15c['to']('type',_0x46e2e8=>'ck-revision-change__'+_0x46e2e8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1aec5c}]},{'text':'\x20'+_0x1bc60e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2e28f3(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x384c5e){super(),this['id']=_0x384c5e['id']||_0x545ed9(),this['author']=_0x384c5e['author'],this['type']=_0x384c5e['type'],this['data']=_0x384c5e['data']||{},this['rootName']=_0x384c5e['rootName'],this['set']('createdAt',_0x384c5e['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3f15a3,_0x196a18){this['newRevisionId']=_0x3f15a3,this['oldRevisionId']=_0x196a18,this['changes']=new _0x4d04fc();}['_setChanges'](_0x1f252e){for(const _0x375742 of _0x1f252e)this['changes']['add'](_0x375742);}}const Z={'c':_0x2e2da7,'a':_0x487bc6,'e':_0x46baa4,'r':_0x243517,'u':_0x544cb2};class d extends _0x3a656b{['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[_0x476bfb,_0x4f686a,j];}constructor(_0xda6905){super(_0xda6905),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',(_0x3d759e,_0x5c07fb,_0x444c69)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x16aa24=>{for(const _0x558700 of this['editor']['editing']['view']['document']['roots'])_0x444c69?_0x16aa24['removeClass']('ck-editor__editable__overlay',_0x558700):_0x16aa24['addClass']('ck-editor__editable__overlay',_0x558700);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x465966=>null!==_0x465966),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1465b5,_0x209489,_0x5ac38f)=>_0x1465b5&&_0x5ac38f?_0x209489['changes']['getIndex'](_0x5ac38f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2d4c57,_0x2885e8)=>_0x2d4c57?_0x2885e8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4f686a);}['init'](){const _0x3237e8=this['editor'],_0x270f39=new bt(_0x3237e8,{'direction':'backward'}),_0x4673c3=new bt(_0x3237e8,{'direction':'forward'});(_0x3237e8['commands']['add']('showPreviousChange',_0x270f39),_0x3237e8['commands']['add']('showNextChange',_0x4673c3),_0x3237e8['commands']['add']('restoreRevision',new yt(_0x3237e8)),this['on']('change:numberOfChanges',()=>{_0x270f39['refresh'](),_0x4673c3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3237e8['enableReadOnlyMode']('revision-viewer'),_0x3237e8['plugins']['has']('WidgetToolbarRepository'))&&_0x3237e8['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2a9662){await this['loadRevisionData'](_0x2a9662);const _0x232b98={};for(const _0x222b0e in _0x2a9662['diffData']){if(_0x2a9662['diffData'][_0x222b0e]['attachChange']&&!_0x2a9662['diffData'][_0x222b0e]['attachChange']['isAttached'])continue;const _0x41d178=this['_removeRevisionMarkers'](JSON['parse'](_0x2a9662['diffData'][_0x222b0e]['insertions'])),_0x52d1ef=this['editor']['editing']['view']['document'],_0x22f164=new _0xee78eb(_0x52d1ef,_0x41d178['map'](_0x33fc20=>this['_getViewObj'](_0x33fc20)));this['editor']['data']['processor']['useFillerType']('marked'),_0x232b98[_0x222b0e]=this['editor']['data']['processor']['toData'](_0x22f164),this['editor']['data']['processor']['useFillerType']('default');}return _0x232b98;}async['getRevisionRootsAttributes'](_0x244990){await this['loadRevisionData'](_0x244990);const _0x30988e={};for(const _0x4fd015 in _0x244990['diffData'])_0x244990['diffData'][_0x4fd015]['attachChange']&&!_0x244990['diffData'][_0x4fd015]['attachChange']['isAttached']||(_0x30988e[_0x4fd015]=_0x244990['diffData'][_0x4fd015]['attributesAfter']||{});return _0x30988e;}['_removeRevisionMarkers'](_0x190751){return(_0x190751=_0x190751['filter'](_0x4c11a3=>!_0x4c11a3['name']||'revision-start'!==_0x4c11a3['name']&&'revision-end'!==_0x4c11a3['name']))['forEach'](_0x70c242=>{'string'!=typeof _0x70c242&&(_0x70c242['children']=this['_removeRevisionMarkers'](_0x70c242['children']),_0x70c242['attributes']=_0x70c242['attributes']['filter'](_0xa715f6=>!_0xa715f6[0x0]['startsWith']('data-revision-')));}),_0x190751;}async['compare'](_0x232dbd,_0x1ddd8e,_0x2f511a=!0x1){if(!this['isEnabled'])return;const _0x445043=this['diff'],_0x560208=this['repository'],_0x5d61d1='string'==typeof _0x232dbd?_0x560208['getRevision'](_0x232dbd):_0x232dbd,_0x32028f='string'==typeof _0x1ddd8e?_0x560208['getRevision'](_0x1ddd8e):_0x1ddd8e,_0x3d26bc=_0x5d61d1['id'],_0x56c1ba=_0x32028f?_0x32028f['id']:null;if(!_0x2f511a&&this['diff']&&this['diff']['newRevisionId']===_0x3d26bc&&this['diff']['oldRevisionId']===_0x56c1ba)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3d26bc,_0x56c1ba);const _0x5f4364=this['_getRevisionsRange'](_0x5d61d1,_0x32028f,!0x0)['map'](_0x5cf3e8=>this['loadRevisionData'](_0x5cf3e8));return _0x5f4364['push'](new Promise(_0x2afacb=>{setTimeout(_0x2afacb,0x14);})),Promise['all'](_0x5f4364)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5f17d5=this['_getDiff'](_0x3d26bc,_0x56c1ba);for(const _0x3c5248 of _0x5f17d5['changes'])this['_changeIdToChange']['set'](_0x3c5248['id'],_0x3c5248);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x826b36=>{for(const _0x5ad0bc of this['editor']['model']['document']['getRootNames']())_0x826b36['detachRoot'](_0x5ad0bc);for(const _0x2e595f of Object['keys'](_0x5f17d5['model'])){const _0x3c07bf=_0x826b36['addRoot'](_0x2e595f);for(const _0x5db115 of Object['keys'](_0x5f17d5['attributes'][_0x2e595f]))_0x826b36['setAttribute'](_0x5db115,_0x5f17d5['attributes'][_0x2e595f][_0x5db115],_0x3c07bf);_0x826b36['insert'](_0x5f17d5['model'][_0x2e595f],_0x3c07bf,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5f17d5['changes'])),this['isReady']=!0x0;})['catch'](_0x3ff136=>{console['error'](_0x3ff136),this['_cleanUp'](),_0x445043&&(this['diff']=_0x445043),this['isReady']=!0x0;});}['addRevisionData'](_0x352839,_0x454117){const _0x3ecaa3=this['repository']['createRevision'](_0x352839);return _0x3ecaa3['on']('_update',(_0x1d934f,_0x5a13fb,_0xf1efbb)=>_0x454117(_0x5a13fb,_0xf1efbb,_0x3ecaa3)),this['repository']['addRevision'](_0x3ecaa3),_0x3ecaa3;}['loadRevisionData'](_0x208a51){if(!_0x208a51||_0x208a51['diffData'])return Promise['resolve']();{const _0x3c850c=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3c850c,'revisionId':_0x208a51['id']})['then'](_0x33ff2c=>{_0x208a51['_update']({'diffData':_0x33ff2c['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},_0x3a6571=>{for(const _0x11c9c0 of this['editor']['model']['document']['getRootNames']())_0x3a6571['detachRoot'](_0x11c9c0);});}['_sortAndFilterDiffChanges'](_0x34a15b){const _0x2ba0d5=[],_0x267e61=new Map();for(const _0x134bce of this['editor']['model']['document']['getRootNames']()){const _0x2a1a79=this['editor']['editing']['view']['getDomRoot'](_0x134bce);if(!_0x2a1a79)continue;const _0x2cc915=_0x2a1a79['getClientRects']()['item'](0x0);_0x2cc915&&(_0x2ba0d5['push'](_0x134bce),_0x267e61['set'](_0x134bce,_0x2cc915));}return _0x2ba0d5['sort']((_0x177979,_0x5a781a)=>{const _0x4de650=_0x267e61['get'](_0x177979),_0x32e3c1=_0x267e61['get'](_0x5a781a);return _0x4de650['y']-_0x32e3c1['y']||_0x4de650['x']-_0x32e3c1['x'];}),(_0x34a15b=_0x34a15b['filter'](_0x5e96cb=>_0x2ba0d5['includes'](_0x5e96cb['rootName'])))['sort']((_0x647e80,_0x2f54f0)=>_0x2ba0d5['indexOf'](_0x647e80['rootName'])-_0x2ba0d5['indexOf'](_0x2f54f0['rootName'])),_0x34a15b;}['_makeTape'](_0x32b621){const _0x4f608e=Array['from'](_0x32b621['markers'])['filter'](([_0x5c4598,_0x2f97bf])=>_0x5c4598['startsWith']('revision:')&&!_0x2f97bf['isCollapsed']),_0x1a22d5=Array['from'](this['editor']['model']['createRangeIn'](_0x32b621)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4f608e['length'])for(const _0xa5eb80 of _0x1a22d5){const [_0x43becd,_0x2c66a6]=_0x4f608e[0x0],[,_0x2766ef,_0x219786]=_0x43becd['split'](':');if(_0x2c66a6['end']['isEqual'](_0xa5eb80['nextPosition'])&&_0x4f608e['shift'](),(_0xa5eb80['previousPosition']['isEqual'](_0x2c66a6['start'])||_0xa5eb80['previousPosition']['isAfter'](_0x2c66a6['start']))&&('insertion'==_0x2766ef?_0xa5eb80['isAdded']={'userId':_0x219786}:'deletion'==_0x2766ef&&(_0xa5eb80['isRemoved']={'userId':_0x219786})),0x0==_0x4f608e['length'])break;}return _0x1a22d5;}['_refreshStartEndIndex'](_0x4c5ebb){const _0x4a059d=new Map();for(let _0x38028a=0x0;_0x38028a<_0x4c5ebb['length'];_0x38028a++)'text'===_0x4c5ebb[_0x38028a]['type']?(_0x4c5ebb[_0x38028a]['item']['startIndex']=_0x38028a,_0x4c5ebb[_0x38028a]['item']['endIndex']=_0x38028a):('elementStart'===_0x4c5ebb[_0x38028a]['type']?_0x4c5ebb[_0x38028a]['item']['startIndex']=_0x38028a:'elementEnd'===_0x4c5ebb[_0x38028a]['type']&&(_0x4c5ebb[_0x38028a]['item']['endIndex']=_0x38028a),_0x4a059d['set'](_0x4c5ebb[_0x38028a]['id'],_0x38028a));for(const _0x4a980c of _0x4a059d['values']())'elementStart'===_0x4c5ebb[_0x4a980c]['type']?_0x4c5ebb[_0x4a980c]['item']['endIndex']=_0x4a059d['get'](_0x4c5ebb[_0x4a980c]['pairId']):'elementEnd'===_0x4c5ebb[_0x4a980c]['type']&&(_0x4c5ebb[_0x4a980c]['item']['startIndex']=_0x4a059d['get'](_0x4c5ebb[_0x4a980c]['pairId']));}['_processTape'](_0x37817){for(let _0x4b4efe=0x0;_0x4b4efe<_0x37817['length'];_0x4b4efe++){if('elementStart'===_0x37817[_0x4b4efe]['type'])_0x37817[_0x4b4efe]['item']['startIndex']=_0x4b4efe;else{if('elementEnd'===_0x37817[_0x4b4efe]['type']){_0x37817[_0x4b4efe]['item']['endIndex']=_0x4b4efe;const _0x399cdf=_0x37817[_0x4b4efe]['item']['startIndex'];_0x37817[_0x399cdf]['pairId']=_0x37817[_0x4b4efe]['id'],_0x37817[_0x4b4efe]['pairId']=_0x37817[_0x399cdf]['id'];}else _0x37817[_0x4b4efe]['item']['startIndex']=_0x4b4efe,_0x37817[_0x4b4efe]['item']['endIndex']=_0x4b4efe,_0x37817[_0x4b4efe]['pairId']=null;}_0x37817[_0x4b4efe]['markersStart']||(_0x37817[_0x4b4efe]['markersStart']=[],_0x37817[_0x4b4efe]['markersEnd']=[]);}}['_markInsertions'](_0x2a4259,_0x4905ee){const _0x4a76cd=_0x2a4259['filter'](_0x471cf9=>!_0x471cf9['isAdded']);for(let _0x52a3e8=0x0;_0x52a3e8<_0x4905ee['length'];_0x52a3e8++)_0x4905ee[_0x52a3e8]['isAdded']&&(_0x4a76cd[_0x52a3e8]['isAdded']=_0x4905ee[_0x52a3e8]['isAdded']);}['_makeModelFromViewString'](_0x394948){const _0x2810c1=JSON['parse'](_0x394948),_0x4a3597=this['editor']['editing']['view']['document'],_0x360f5d=new _0xee78eb(_0x4a3597,_0x2810c1['map'](_0x80bdb5=>this['_getViewObj'](_0x80bdb5)));return this['editor']['data']['toModel'](_0x360f5d);}['_getViewObj'](_0x1e49c1){const _0x104ec4=this['editor']['editing']['view']['document'];if('string'==typeof _0x1e49c1)return new _0x2c1532(_0x104ec4,_0x1e49c1);{const _0x14e3bb=_0x1e49c1['children']['map'](_0x5b42cf=>this['_getViewObj'](_0x5b42cf));return new(Z[_0x1e49c1['type']]||_0x173c9e)(_0x104ec4,_0x1e49c1['name'],_0x1e49c1['attributes'],_0x14e3bb);}}['_getDiff'](_0x463015,_0x559e5d=null){const _0x26ed2b=this['repository']['getRevision'](_0x463015),_0x2c774b=_0x559e5d?this['repository']['getRevision'](_0x559e5d):null,_0x7c82d8=this['_getRevisionsRange'](_0x26ed2b,_0x2c774b),_0x80de79=_0x7c82d8[_0x7c82d8['length']-0x1],_0x55e5f9=new Map(),_0xccf772={'model':{},'attributes':{},'changes':[]},_0x428c0d=new Set(),_0x1e66fc=new Map();for(let _0xee85bd=_0x7c82d8['length']-0x1;_0xee85bd>=0x0;_0xee85bd--){const _0x1a7bb8=_0x7c82d8[_0xee85bd];for(const _0x58961d of Object['keys'](_0x1a7bb8['diffData']))if(_0x1a7bb8['diffData'][_0x58961d]['attachChange']){const _0x4a661a=_0x1a7bb8['diffData'][_0x58961d]['attachChange'];_0x4a661a['isAttached']?(_0x428c0d['add'](_0x58961d),_0x1e66fc['has'](_0x58961d)&&_0x1e66fc['get'](_0x58961d)['userId']==_0x4a661a['userId']?_0x1e66fc['delete'](_0x58961d):_0x1e66fc['set'](_0x58961d,_0x4a661a)):_0x1e66fc['has'](_0x58961d)?(_0x428c0d['delete'](_0x58961d),_0x1e66fc['delete'](_0x58961d)):(_0x428c0d['add'](_0x58961d),_0x1e66fc['set'](_0x58961d,_0x4a661a));}else _0x428c0d['add'](_0x58961d);}for(const _0x3c2366 of _0x428c0d){const _0x2ceb59=_0x1e66fc['has'](_0x3c2366)&&!_0x1e66fc['get'](_0x3c2366)['isAttached'];let _0x3553c6=_0x2ceb59?_0x7c82d8['length']-0x1:0x0;const _0x4c39e9=_0x2ceb59?-0x1:0x1;for(;_0x7c82d8[_0x3553c6];){const _0x3bea05=_0x7c82d8[_0x3553c6];if(_0x3bea05['diffData'][_0x3c2366]){const _0x2c1ae5=_0x2ceb59?_0x3bea05['diffData'][_0x3c2366]['attributesBefore']:_0x3bea05['diffData'][_0x3c2366]['attributesAfter'];_0xccf772['attributes'][_0x3c2366]=_0x2c1ae5?_0x2df5ea(_0x2c1ae5):{};break;}_0x3553c6+=_0x4c39e9;}}for(const _0x279fea of _0x7c82d8){_0x279fea['model']={};for(const _0xaf8187 of _0x279fea['authors'])_0x55e5f9['set'](_0xaf8187['id'],_0xaf8187);for(const _0x3f52c5 of _0x428c0d){const _0x83977f=_0x279fea['diffData'][_0x3f52c5]?_0x279fea['diffData'][_0x3f52c5]['insertions']:'[]',_0xc9885a=_0x279fea['diffData'][_0x3f52c5]?_0x279fea['diffData'][_0x3f52c5]['deletions']:'[]';_0x279fea['model'][_0x3f52c5]={'insertions':this['_makeModelFromViewString'](_0x83977f),'deletions':this['_makeModelFromViewString'](_0xc9885a)};}}for(const _0x1d483f of _0x428c0d){let _0x1ddea2=null,_0x15857c=0x0;const _0x618507=new Map(Array['from'](_0x26ed2b['model'][_0x1d483f]['insertions']['markers'])['filter'](([_0x45054c])=>!_0x45054c['startsWith']('revision:')));let _0x3a8582=0x0;for(const _0x5651fd of _0x7c82d8){const _0xccb2b0=this['_makeTape'](_0x5651fd['model'][_0x1d483f]['insertions']);_0x5651fd==_0x26ed2b?(_0x1ddea2=_0xccb2b0,_0x15857c=_0x1ddea2['length'],_0x1ddea2['forEach'](_0x59ed14=>{_0x59ed14['id']=_0x3a8582++;}),this['_processTape'](_0x1ddea2)):this['_markInsertions'](_0x1ddea2,_0xccb2b0);const _0x5cc018=_0x1ddea2['filter'](_0xd663a0=>!_0xd663a0['isAdded'])['map'](_0x1fff3e=>_0x1fff3e['id']);let _0x4e8852=0x0;const _0x35ebaf=this['_makeTape'](_0x5651fd['model'][_0x1d483f]['deletions']);_0x35ebaf['forEach'](_0x478e06=>{_0x478e06['isRemoved']?_0x478e06['id']=_0x15857c++:_0x478e06['id']=_0x5cc018[_0x4e8852++];}),this['_processTape'](_0x35ebaf),this['_setDistance'](_0x1ddea2,'isAdded'),this['_setDistance'](_0x35ebaf,'isRemoved'),_0x5651fd==_0x26ed2b&&this['_markMarkers'](_0x1ddea2,_0x618507),_0x1ddea2=this['_joinTapes'](_0x1ddea2,_0x35ebaf),this['_refreshStartEndIndex'](_0x1ddea2),this['_setDistance'](_0x1ddea2,'isRemoved');}_0x1ddea2=_0x1ddea2['filter'](_0x9c4e4a=>!(_0x9c4e4a['isAdded']&&_0x9c4e4a['isRemoved']));const _0x4fead5=new Map(_0x80de79['model'][_0x1d483f]['deletions']['markers']),_0x10d31c=new Set(_0x618507['keys']());for(const _0x413397 of _0x4fead5['keys']())_0x10d31c['delete'](_0x413397);this['_markSuggestions'](_0x1ddea2,_0x10d31c),this['_fixObsoleteTags'](_0x1ddea2),_0x1ddea2=this['_removeMissingPairs'](_0x1ddea2),_0x1ddea2=this['_markMismatchedRemovedTags'](_0x1ddea2),_0x1ddea2=this['_removeUnsupportedChanges'](_0x1ddea2);const {root:_0x3bb81e,changes:_0x3292d6}=this['_makeModelFromTape'](_0x1ddea2,_0x55e5f9,_0x1d483f);_0xccf772['model'][_0x1d483f]=_0x3bb81e;const _0x5e5553=_0x1e66fc['get'](_0x1d483f);if(_0x5e5553){const _0x513c00=_0x55e5f9['get'](_0x5e5553['userId']),_0x17b482=new r({'author':_0x513c00,'type':_0x5e5553['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1d483f});_0x3292d6['unshift'](_0x17b482),_0xccf772['attributes'][_0x1d483f]['revisionHistoryAttachChange']=_0x17b482['id'];}_0xccf772['changes']=_0xccf772['changes']['concat'](_0x3292d6);}return _0xccf772;}['_markMarkers'](_0x129a66,_0x2980f2){for(let _0x4c2ac6=0x0;_0x4c2ac6<_0x129a66['length'];_0x4c2ac6++)for(const [_0x1a74ec,_0x30601e]of _0x2980f2)_0x30601e['start']['isEqual'](_0x129a66[_0x4c2ac6]['previousPosition'])&&_0x129a66[_0x4c2ac6]['markersStart']['push'](_0x1a74ec),_0x30601e['end']['isEqual'](_0x129a66[_0x4c2ac6]['nextPosition'])&&_0x129a66[_0x4c2ac6]['markersEnd']['push'](_0x1a74ec);}['_joinTapes'](_0x4df235,_0x395705){let _0x504198=[],_0x3fda6a=0x0,_0x539417=0x0;for(;_0x3fda6a<_0x4df235['length']||_0x539417<_0x395705['length'];){const _0x5eb7ac=_0x4df235[_0x3fda6a]||{},_0x439ba3=_0x395705[_0x539417]||{};if(_0x5eb7ac['id']==_0x439ba3['id'])_0x3fda6a++,_0x539417++,_0x504198['push'](_0x5eb7ac);else{if(_0x439ba3['isRemoved']&&_0x5eb7ac['isAdded']){const {commonTape:_0x3f3fc5,iEnd:_0x10fd50,jEnd:_0x566a84}=this['_threeWayMerge'](_0x4df235,_0x3fda6a,_0x395705,_0x539417);_0x504198=_0x504198['concat'](_0x3f3fc5),_0x3fda6a=_0x10fd50,_0x539417=_0x566a84;}else _0x439ba3['isRemoved']?(_0x539417++,_0x504198['push'](_0x439ba3)):(_0x3fda6a++,_0x504198['push'](_0x5eb7ac));}}return _0x504198;}['_markSuggestions'](_0x1e8b05,_0x11c2bc){const _0x2f3564=[];for(let _0x31ca36=0x0;_0x31ca36<_0x1e8b05['length'];_0x31ca36++){for(let _0x2f9d69=0x0;_0x2f9d69<_0x1e8b05[_0x31ca36]['markersStart']['length'];_0x2f9d69++){const _0x5b862c=_0x1e8b05[_0x31ca36]['markersStart'][_0x2f9d69];if(!_0x11c2bc['has'](_0x5b862c))continue;const {group:_0x449e27,type:_0x2c8899,authorId:_0x326a13}=_0x3997c(_0x5b862c);'revision-suggestion'!=_0x449e27||'insertion'!=_0x2c8899&&'deletion'!=_0x2c8899||(_0x2f3564['unshift']({'type':_0x2c8899,'name':_0x5b862c,'userId':_0x326a13}),_0x1e8b05[_0x31ca36]['markersStart']['splice'](_0x2f9d69,0x1),_0x2f9d69--);}_0x3e22a2(_0x1e8b05[_0x31ca36]);for(let _0x2086af=0x0;_0x2086af<_0x1e8b05[_0x31ca36]['markersEnd']['length'];_0x2086af++){const _0x312be4=_0x1e8b05[_0x31ca36]['markersEnd'][_0x2086af];if(!_0x11c2bc['has'](_0x312be4))continue;const {group:_0x5d3dbe,type:_0x509542}=_0x3997c(_0x312be4);if('revision-suggestion'!=_0x5d3dbe||'insertion'!=_0x509542&&'deletion'!=_0x509542)continue;_0x1e8b05[_0x31ca36]['markersEnd']['splice'](_0x2086af,0x1),_0x2086af--;const _0x3d3641=_0x2f3564['findIndex'](_0x312755=>_0x312755['name']==_0x312be4);_0x3d3641>-0x1&&_0x2f3564['splice'](_0x3d3641,0x1);}}function _0x3997c(_0x7c3f95){const _0x5b2132=_0x7c3f95['split'](':');return{'group':_0x5b2132[0x0],'type':_0x5b2132[0x1],'subType':_0x5b2132['length']>=0x5?_0x5b2132[0x2]:null,'id':_0x5b2132['length']<0x5?_0x5b2132[0x2]:_0x5b2132[0x3],'authorId':_0x5b2132['length']<0x5?_0x5b2132[0x3]:_0x5b2132[0x4],'markerCount':0x6==_0x5b2132['length']?_0x5b2132[0x5]:null};}function _0x3e22a2(_0x121cd1){for(let _0x210c81=0x0;_0x210c81<_0x2f3564['length'];_0x210c81++){if(_0x121cd1['isAdded']&&'insertion'==_0x2f3564[_0x210c81]['type'])return _0x121cd1['isAddSuggestion']=_0x2f3564[_0x210c81],void delete _0x121cd1['isAdded'];if(!_0x121cd1['isAdded']&&!_0x121cd1['isRemoved']&&'deletion'==_0x2f3564[_0x210c81]['type'])return void(_0x121cd1['isRemoveSuggestion']=_0x2f3564[_0x210c81]);}}}['_setDistance'](_0x14ecdf,_0xcd873e){let _0x999c73=0x0,_0x2b5a04=!0x1;const _0x2a92f8=new Map();for(const _0x50dc0e of _0x14ecdf)_0x50dc0e[_0xcd873e]?_0x2b5a04&&(_0x999c73++,_0x2b5a04=!0x1):(_0x999c73++,_0x2b5a04=!0x0),_0x2a92f8['set'](_0x50dc0e['id'],_0x999c73);for(let _0x45aa6a=0x0;_0x45aa6a<_0x14ecdf['length'];_0x45aa6a++){if('isRemoved'==_0xcd873e&&_0x14ecdf[_0x45aa6a]['isAdded']||'isAdded'==_0xcd873e&&_0x14ecdf[_0x45aa6a]['isRemoved'])continue;if('text'==_0x14ecdf[_0x45aa6a]['type']){_0x14ecdf[_0x45aa6a]['distance']=0x0;continue;}const _0x544c42=_0x2a92f8['get'](_0x14ecdf[_0x45aa6a]['pairId']),_0x468373=_0x2a92f8['get'](_0x14ecdf[_0x45aa6a]['id']);_0x14ecdf[_0x45aa6a]['distance']=_0x544c42-_0x468373;}}['_getRevisionsRange'](_0x456523,_0x578125,_0x1a2a99=!0x1){const _0x2edbf4=[];let _0xf0d1a6=this['repository']['getIndex'](_0x456523),_0x58a7d1=this['repository']['getIndex'](_0x578125);for(-0x1==_0x58a7d1&&(_0x58a7d1=this['repository']['_revisions']['length'],_0x1a2a99=!0x1);_0xf0d1a6<_0x58a7d1;)_0x2edbf4['push'](this['repository']['getRevision'](_0xf0d1a6)),_0xf0d1a6++;return _0x1a2a99&&_0x2edbf4['push'](this['repository']['getRevision'](_0xf0d1a6)),_0x2edbf4;}['_threeWayMerge'](_0x5b7d01,_0x59297e,_0x516262,_0xa7c2d4){const _0x53fbe8=this['editor']['model']['schema'];let _0x48d92e=_0x59297e;for(;_0x5b7d01[_0x48d92e]&&_0x5b7d01[_0x48d92e]['isAdded'];)_0x48d92e++;let _0x5771b8=_0xa7c2d4;for(;_0x516262[_0x5771b8]&&_0x516262[_0x5771b8]['isRemoved'];)_0x5771b8++;_0x4c39da(_0x5b7d01,_0x59297e,_0x48d92e),_0x4c39da(_0x516262,_0xa7c2d4,_0x5771b8);const _0x1a1c63=_0x516262['slice'](_0xa7c2d4,_0x5771b8)['concat'](_0x5b7d01['slice'](_0x59297e,_0x48d92e));return _0x1a1c63['sort']((_0x4b84da,_0x52a59a)=>_0x4b84da['side']!=_0x52a59a['side']?_0x4b84da['side']-_0x52a59a['side']:_0x4b84da['level']!=_0x52a59a['level']?_0x4b84da['level']-_0x52a59a['level']:_0x4b84da['distance']!=_0x52a59a['distance']?_0x52a59a['distance']-_0x4b84da['distance']:!!_0x4b84da['isAdded']!=!!_0x52a59a['isAdded']?-0x1==_0x4b84da['side']||0x0==_0x4b84da['side']?_0x4b84da['isAdded']?-0x1:0x1:_0x4b84da['isAdded']?0x1:-0x1:_0x4b84da['index']-_0x52a59a['index']),{'commonTape':_0x1a1c63,'iEnd':_0x48d92e,'jEnd':_0x5771b8};function _0x4c39da(_0x10811f,_0x36f82f,_0x3ff7bf){let _0x52706c=-0x1,_0x40c9fe=Number['POSITIVE_INFINITY'],_0x14d66b=!0x0;for(let _0x17470a=_0x36f82f;_0x17470a<_0x3ff7bf;_0x17470a++)if(_0x53fbe8['isInline'](_0x10811f[_0x17470a]['item'])||(_0x14d66b=!0x1),_0x10811f[_0x17470a]['item']['startIndex']<_0x36f82f&&(_0x52706c=_0x17470a),_0x10811f[_0x17470a]['item']['endIndex']>=_0x3ff7bf){_0x40c9fe=_0x17470a;break;}_0x14d66b&&(_0x52706c=_0x3ff7bf-0x1);for(let _0x21af5c=_0x36f82f;_0x21af5c<_0x3ff7bf;_0x21af5c++)_0x10811f[_0x21af5c]['side']=_0x21af5c<=_0x52706c?-0x1:_0x21af5c<_0x40c9fe?0x0:0x1,_0x10811f[_0x21af5c]['index']=_0x21af5c;let _0x557d76=0x0;for(let _0x6ef6ac=_0x36f82f;_0x6ef6ac<=_0x52706c;_0x6ef6ac++)0x0==_0x10811f[_0x6ef6ac]['distance']?_0x10811f[_0x6ef6ac]['level']=_0x557d76:(_0x557d76++,_0x10811f[_0x6ef6ac]['level']=_0x557d76,_0x557d76++);for(let _0x1f032e=_0x36f82f;_0x1f032e<_0x3ff7bf;_0x1f032e++)0x0==_0x10811f[_0x1f032e]['side']&&(_0x10811f[_0x1f032e]['level']=_0x557d76);_0x557d76=0x0;for(let _0x4ab3b4=_0x3ff7bf-0x1;_0x4ab3b4>=_0x40c9fe;_0x4ab3b4--)0x0==_0x10811f[_0x4ab3b4]['distance']?_0x10811f[_0x4ab3b4]['level']=_0x557d76:(_0x557d76--,_0x10811f[_0x4ab3b4]['level']=_0x557d76,_0x557d76--);}}['_fixObsoleteTags'](_0x5ec8c9){const _0x9bbba3=new Map(),_0x5999c1=this['editor']['model']['schema'];for(let _0x51a830=0x1;_0x51a830<_0x5ec8c9['length'];_0x51a830++){let _0x35a65e,_0x55ffa0,_0xe259eb;const _0x4ede77=_0x5ec8c9[_0x51a830],_0x163ceb=_0x5ec8c9[_0x51a830-0x1];if('text'==_0x4ede77['type'])continue;if(_0x4ede77['type']!=_0x163ceb['type'])continue;if(!_0x5999c1['isBlock'](_0x163ceb['item'])||_0x5999c1['isLimit'](_0x163ceb['item']))continue;if(!_0x5999c1['isBlock'](_0x4ede77['item'])||_0x5999c1['isLimit'](_0x4ede77['item']))continue;if((_0x5ec8c9[_0x51a830]['isAdded']||_0x5ec8c9[_0x51a830]['isAddSuggestion'])&&_0x5ec8c9[_0x51a830-0x1]['isRemoved'])_0x35a65e=_0x5ec8c9[_0x51a830],_0x55ffa0=_0x5ec8c9[_0x51a830-0x1],_0xe259eb=_0x51a830-0x1;else{if(!_0x5ec8c9[_0x51a830]['isRemoved']||!_0x5ec8c9[_0x51a830-0x1]['isAdded']&&!_0x5ec8c9[_0x51a830-0x1]['isAddSuggestion'])continue;_0x35a65e=_0x5ec8c9[_0x51a830-0x1],_0x55ffa0=_0x5ec8c9[_0x51a830],_0xe259eb=_0x51a830;}const _0x48dd15=_0x35a65e['level']==_0x55ffa0['level'],_0x2ac667=Math['abs'](_0x35a65e['level'])<Math['abs'](_0x55ffa0['level'])&&0x0==_0x55ffa0['distance'];(_0x48dd15||_0x2ac667)&&(_0x9bbba3['set'](_0x55ffa0['id'],_0x35a65e['id']),_0x5ec8c9['splice'](_0xe259eb,0x1),_0x51a830--,_0x35a65e['isAdded']=!0x1);}for(let _0x5cf6f2=0x0;_0x5cf6f2<_0x5ec8c9['length'];_0x5cf6f2++)_0x9bbba3['has'](_0x5ec8c9[_0x5cf6f2]['pairId'])&&(_0x5ec8c9[_0x5cf6f2]['pairId']=_0x9bbba3['get'](_0x5ec8c9[_0x5cf6f2]['pairId']));}['_removeMissingPairs'](_0x24bb3d){const _0x581139=new Set(_0x24bb3d['map'](_0xa8ff73=>_0xa8ff73['id']));for(let _0x140ce7=0x0;_0x140ce7<_0x24bb3d['length'];_0x140ce7++)_0x581139['has'](_0x24bb3d[_0x140ce7]['pairId'])||0x0==_0x24bb3d[_0x140ce7]['distance']||(_0x24bb3d[_0x140ce7]['isIncorrect']=!0x0);return _0x24bb3d['filter'](_0x214806=>!_0x214806['isIncorrect']);}['_markMismatchedRemovedTags'](_0xd3d775){const _0x8f6450=new Set();for(let _0x5ba72a=0x0;_0x5ba72a<_0xd3d775['length'];_0x5ba72a++){if(_0x8f6450['has'](_0xd3d775[_0x5ba72a]['id'])&&_0xd3d775[_0x5ba72a]['isRemoved']&&(_0xd3d775[_0x5ba72a]['isIncorrect']=!0x0),_0xd3d775[_0x5ba72a]['isIncorrect'])continue;if(0x0==_0xd3d775[_0x5ba72a]['distance'])continue;if('elementStart'!=_0xd3d775[_0x5ba72a]['type'])continue;if(null==_0xd3d775[_0x5ba72a]['pairId'])continue;let _0x3e6919=_0x5ba72a+0x1,_0x5c2bdf=0x0;for(;_0xd3d775[_0x3e6919]['id']!=_0xd3d775[_0x5ba72a]['pairId'];)'elementStart'==_0xd3d775[_0x3e6919]['type']?_0x5c2bdf++:'elementEnd'==_0xd3d775[_0x3e6919]['type']&&_0x5c2bdf--,_0x3e6919++;if(0x0!=_0x5c2bdf){if(_0xd3d775[_0x5ba72a]['isRemoved'])_0xd3d775[_0x5ba72a]['isIncorrect']=!0x0;else{for(;_0x3e6919!=_0x5ba72a;)_0xd3d775[_0x3e6919]['isRemoved']&&0x0!=_0xd3d775[_0x3e6919]['distance']&&(_0xd3d775[_0x3e6919]['isIncorrect']=!0x0,_0x8f6450['add'](_0xd3d775[_0x3e6919]['pairId'])),_0x3e6919--;}}}return _0xd3d775['filter'](_0x535fb4=>!_0x535fb4['isIncorrect']);}['_removeUnsupportedChanges'](_0x3f6770){const _0x389db4=this['editor']['model']['schema'];for(let _0x3a8dac=0x0;_0x3a8dac<_0x3f6770['length'];_0x3a8dac++){if(!(_0x3f6770[_0x3a8dac]['isAdded']||_0x3f6770[_0x3a8dac]['isAddSuggestion']||_0x3f6770[_0x3a8dac]['isRemoved']||_0x3f6770[_0x3a8dac]['isRemoveSuggestion']))continue;if(0x0==_0x3f6770[_0x3a8dac]['distance'])continue;const _0x8bdaab=_0x3f6770[_0x3a8dac]['item'];_0x389db4['isBlock'](_0x8bdaab)||_0x389db4['isLimit'](_0x8bdaab)||(_0x3f6770[_0x3a8dac]['isAdded']&&delete _0x3f6770[_0x3a8dac]['isAdded'],_0x3f6770[_0x3a8dac]['isAddSuggestion']&&delete _0x3f6770[_0x3a8dac]['isAddSuggestion'],_0x3f6770[_0x3a8dac]['isRemoveSuggestion']&&delete _0x3f6770[_0x3a8dac]['isRemoveSuggestion'],_0x3f6770[_0x3a8dac]['isRemoved']&&(_0x3f6770[_0x3a8dac]['isIncorrect']=!0x0));}return _0x3f6770['filter'](_0x138680=>!_0x138680['isIncorrect']);}['_makeModelFromTape'](_0x213a82,_0x4f45c3,_0x4cf3e9){const _0xf423a1=new wt(),_0x5bccd7=[],_0x567bec=new Map(),_0x469dd4=this['editor']['model'],_0x3e7cb4=_0x469dd4['schema'],_0x44d98a=[_0xf423a1],_0x1c6020={},_0x456db9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x46cb3b=null;const _0x38c865=[0x0];for(let _0x517891=0x0;_0x517891<_0x213a82['length'];_0x517891++)if('elementStart'===_0x213a82[_0x517891]['type']){_0x213a82[_0x517891]['previousPosition']=_0x469dd4['createPositionFromPath'](_0xf423a1,_0x38c865);const _0x16a644=new ft(_0x213a82[_0x517891]['item']['name'],_0x213a82[_0x517891]['item']['getAttributes']());_0x44d98a[0x0]['_appendChild'](_0x16a644),_0x38c865['push'](0x0),_0x44d98a['unshift'](_0x16a644),_0x213a82[_0x517891]['nextPosition']=_0x469dd4['createPositionFromPath'](_0xf423a1,_0x38c865);}else'elementEnd'===_0x213a82[_0x517891]['type']?(_0x44d98a['shift'](),_0x213a82[_0x517891]['previousPosition']=_0x469dd4['createPositionFromPath'](_0xf423a1,_0x38c865),_0x38c865['pop'](),_0x38c865[_0x38c865['length']-0x1]++,_0x213a82[_0x517891]['nextPosition']=_0x469dd4['createPositionFromPath'](_0xf423a1,_0x38c865)):(_0x213a82[_0x517891]['previousPosition']=_0x469dd4['createPositionFromPath'](_0xf423a1,_0x38c865),_0x46cb3b?_0x46cb3b['_data']+=_0x213a82[_0x517891]['item']['data']:_0x46cb3b=new _t(_0x213a82[_0x517891]['item']['data'],_0x213a82[_0x517891]['item']['getAttributes']()),_0x213a82[_0x517891+0x1]&&'text'===_0x213a82[_0x517891+0x1]['type']&&_0x2f4180(_0x46cb3b,_0x213a82[_0x517891+0x1]['item'])||(_0x44d98a[0x0]['_appendChild'](_0x46cb3b),_0x46cb3b=null),_0x38c865[_0x38c865['length']-0x1]+=_0x213a82[_0x517891]['item']['offsetSize'],_0x213a82[_0x517891]['nextPosition']=_0x469dd4['createPositionFromPath'](_0xf423a1,_0x38c865));for(let _0x550f7f=0x0;_0x550f7f<_0x213a82['length'];_0x550f7f++){const _0x490384=_0x213a82[_0x550f7f]['previousPosition'],_0x497cdc=_0x213a82[_0x550f7f]['nextPosition'];for(const _0x2b3d33 of _0x213a82[_0x550f7f]['markersStart'])_0x567bec['set'](_0x2b3d33,{'start':_0x490384,'end':null});_0x5ac4b3('isRemoveSuggestion',_0x550f7f,_0x490384,_0x497cdc),_0x5ac4b3('isAddSuggestion',_0x550f7f,_0x490384,_0x497cdc),_0x5ac4b3('isRemoved',_0x550f7f,_0x490384,_0x497cdc),_0x5ac4b3('isAdded',_0x550f7f,_0x490384,_0x497cdc);for(const _0xa25ac8 of _0x213a82[_0x550f7f]['markersEnd']){_0x567bec['get'](_0xa25ac8)['end']=_0x497cdc;}}for(const [_0x341a50,_0x43a78c]of _0x567bec){const _0x5ba8f9=this['editor']['model']['createRange'](_0x43a78c['start'],_0x43a78c['end']);_0xf423a1['markers']['set'](_0x341a50,_0x5ba8f9);}return _0x5bccd7['sort']((_0x53a843,_0x5979ef)=>{const _0x170b17=_0xf423a1['markers']['get']('revision:'+_0x53a843['id']),_0x5a9f4c=_0xf423a1['markers']['get']('revision:'+_0x5979ef['id']);return _0x170b17['start']['isBefore'](_0x5a9f4c['start'])?-0x1:_0x170b17['start']['isAfter'](_0x5a9f4c['start'])?0x1:_0x170b17['end']['isBefore'](_0x5a9f4c['end'])?-0x1:_0x170b17['end']['isAfter'](_0x5a9f4c['end'])?0x1:'add'===_0x53a843['type']?-0x1:0x1;}),{'root':_0xf423a1,'changes':_0x5bccd7};function _0x5ac4b3(_0x5cc020,_0x1800a2,_0x1b8a24,_0x2ce2f2){const _0x5b7ee7=!!_0x213a82[_0x1800a2][_0x5cc020],_0x4d1b2c=_0x5b7ee7?_0x213a82[_0x1800a2][_0x5cc020]['userId']:null,_0x1eebf6=_0x1800a2===_0x213a82['length']-0x1,_0x51cd68=_0x456db9[_0x5cc020][0x0],_0x46195e=_0x3e7cb4['isObject'](_0x213a82[_0x1800a2]['item']);!_0x1c6020[_0x5cc020]&&_0x5b7ee7?_0x1c6020[_0x5cc020]={'start':_0x1b8a24,'tapeItem':_0x213a82[_0x1800a2],'userId':_0x4d1b2c,'type':_0x5cc020}:_0x1c6020[_0x5cc020]&&!_0x5b7ee7?(_0x1c6020[_0x5cc020]['end']=_0x1b8a24,_0x89ed59(_0x1c6020[_0x5cc020]),_0x1c6020[_0x5cc020]=null):_0x1c6020[_0x5cc020]&&_0x5b7ee7&&_0x1c6020[_0x5cc020]['userId']!==_0x4d1b2c&&(_0x1c6020[_0x5cc020]['end']=_0x1b8a24,_0x51cd68&&_0x51cd68['userId']===_0x1c6020[_0x5cc020]['userId']||_0x89ed59(_0x1c6020[_0x5cc020]),_0x1c6020[_0x5cc020]={'start':_0x1b8a24,'tapeItem':_0x213a82[_0x1800a2],'userId':_0x4d1b2c,'type':_0x5cc020}),_0x1c6020[_0x5cc020]&&_0x46195e&&('elementStart'!==_0x213a82[_0x1800a2]['type']||_0x51cd68&&_0x51cd68['userId']===_0x4d1b2c||_0x456db9[_0x5cc020]['unshift']({'userId':_0x4d1b2c,'object':_0x213a82[_0x1800a2]['item'],'change':_0x1c6020[_0x5cc020]}),'elementEnd'===_0x213a82[_0x1800a2]['type']&&_0x51cd68&&_0x51cd68['object']===_0x213a82[_0x1800a2]['item']&&(_0x456db9[_0x5cc020]['shift'](),_0x1c6020[_0x5cc020]=_0x51cd68['change'])),_0x1c6020[_0x5cc020]&&_0x1eebf6&&(_0x1c6020[_0x5cc020]['end']=_0x2ce2f2,_0x89ed59(_0x1c6020[_0x5cc020]),_0x1c6020[_0x5cc020]=null);}function _0x89ed59({start:_0x25e308,end:_0x361270,tapeItem:_0x4d8d51,userId:_0x466b27,type:_0x1bc434}){const _0x3589df=_0x4d8d51['item'],_0x23d59c=_0x469dd4['schema']['isBlock'](_0x3589df)&&!_0x469dd4['schema']['isLimit'](_0x3589df),_0x5a841f=_0x25e308['nodeAfter']==_0x361270['parent']&&_0x361270['isAtStart'];if(_0x23d59c&&_0x5a841f)return;const _0x49fc33=_0x469dd4['createRange'](_0x25e308,_0x361270),_0x489718=_0x4f45c3['get'](_0x466b27),_0x4603ec=new r({'author':_0x489718,'type':'isAdded'==_0x1bc434||'isAddSuggestion'==_0x1bc434?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1bc434||'isRemoveSuggestion'==_0x1bc434},'createdAt':new Date(),'rootName':_0x4cf3e9});_0x5bccd7['push'](_0x4603ec),_0xf423a1['markers']['set']('revision:'+_0x4603ec['id'],_0x49fc33);}function _0x2f4180(_0x14f2cc,_0x1033c8){const _0x48996a=_0x14f2cc['getAttributes'](),_0x239ce4=_0x1033c8['getAttributes']();for(const _0x3c08a8 of _0x48996a){if(_0x3c08a8[0x1]!==_0x1033c8['getAttribute'](_0x3c08a8[0x0]))return!0x1;_0x239ce4['next']();}return _0x239ce4['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3ab7c5=>{const _0x1f8b75=_0x3ab7c5['markerName']['split'](':')[0x1],_0x427ad3=this['_getChangeFromId'](_0x1f8b75);if(!_0x427ad3)return null;const _0x200908='add'==_0x427ad3['type']?'insertion':'deletion',_0x5020a3=['ck-suggestion-marker','ck-suggestion-marker-'+_0x200908];return _0x427ad3['data']['isSuggestion']&&_0x5020a3['push']('ck-suggestion-marker-'+_0x200908+'-new'),this['activeChange']==_0x427ad3&&_0x5020a3['push']('ck-suggestion-marker--active'),{'classes':_0x5020a3,'attributes':{'data-change-id':_0x1f8b75}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1b0f90=>{_0x1b0f90['on']('element:pre',(_0x38fcf1,_0x49d0c1,_0x1a70bf)=>{const _0x1efdbd=_0x49d0c1['viewItem']['getChild'](0x0);if(!_0x1efdbd||!_0x1efdbd['is']('element','code'))return;if(!_0x1a70bf['consumable']['consume'](_0x1efdbd,{'attributes':['vid_start','vid_end']}))return;const _0x545d2a=_0x49d0c1['modelRange']['start']['nodeAfter'];_0x1a70bf['writer']['setAttribute']('vid_start',_0x1efdbd['getAttribute']('vid_start'),_0x545d2a),_0x1a70bf['writer']['setAttribute']('vid_end',_0x1efdbd['getAttribute']('vid_end'),_0x545d2a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x29e24f=>{_0x29e24f['on']('element',(_0x419e96,_0x3141e3,_0x2e62a5)=>{if(!_0x2e62a5['consumable']['consume'](_0x3141e3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3141e3['modelRange']['isCollapsed'])return;const _0x34a6ff=_0x3141e3['modelRange']['start']['nodeAfter'];_0x34a6ff['hasAttribute']('vid_start')||_0x34a6ff['hasAttribute']('vid')||(_0x2e62a5['writer']['setAttribute']('vid_start',_0x3141e3['viewItem']['getAttribute']('vid_start'),_0x34a6ff),_0x2e62a5['writer']['setAttribute']('vid_end',_0x3141e3['viewItem']['getAttribute']('vid_end'),_0x34a6ff));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1756ec=>_0x1756ec['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4f2cd2,[,_0x41312a])=>{['vid_start','vid_end','vid']['includes'](_0x41312a)&&(_0x4f2cd2['return']=!0x0,_0x4f2cd2['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x39ee81=>{_0x39ee81['on']('attribute:vid',(_0x4329a0,_0x270e0d,_0x573572)=>{if('\x20'!=_0x270e0d['item']['data']||_0x270e0d['item']['parent']['maxOffset']>0x1)return;if(!_0x573572['consumable']['consume'](_0x270e0d['item'],_0x4329a0['name']))return;const _0x10374c=_0x573572['writer'],_0x551068=_0x573572['mapper']['toViewRange'](_0x270e0d['range']);_0x10374c['wrap'](_0x551068,_0x10374c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x176d29){const _0x1cbd32=_0x176d29['plugins']['get']('RevisionViewer');return(_0x43b659,_0xeacf06,_0x5e82be)=>{const _0x255bbf=_0xeacf06['markerName']['split'](':')[0x1],_0x189e62=_0x1cbd32['_getChangeFromId'](_0x255bbf);if(!_0x189e62)return null;const _0x3a49b1='add'==_0x189e62['type']?'split':'merge';if(!_0x5e82be['consumable']['test'](_0xeacf06['markerRange'],_0x43b659['name']))return;const _0x4bfd9e=_0xeacf06['markerRange']['getWalker'](),_0x3661ec=_0xeacf06['markerRange']['start'],_0x416899=_0x176d29['model']['schema'];let _0x4a4842=null,_0xd73e85=null,_0x352e00=!0x1,_0x34ea13=!0x1;for(const _0x2c89d6 of _0x4bfd9e){const _0x2823f6=_0x2c89d6['item'];_0x352e00=_0x352e00||_0x416899['isContent'](_0x2823f6);const _0x35a3bd=_0x5e82be['mapper']['toViewElement'](_0x2823f6);if(_0x35a3bd&&_0x35a3bd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c89d6['type']&&(_0x416899['isBlock'](_0x2823f6)&&!_0x416899['isLimit'](_0x2823f6)&&(_0x2823f6['nextSibling']||_0x3661ec['isAtEnd']?_0x4a4842&&_0x4a4842['parent']==_0x2823f6||(_0x4a4842=_0x2823f6,_0x94c95e(_0x2c89d6['previousPosition']),_0x34ea13=!0x0):_0xd73e85=_0xd73e85||_0x2c89d6['previousPosition']));}function _0x94c95e(_0xb4ffec){const _0x4d7e5f=_0x5e82be['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a49b1}),_0x4daa62=_0x5e82be['mapper']['toViewPosition'](_0xb4ffec);_0x189e62['data']['isSuggestion']&&_0x5e82be['writer']['addClass']('ck-suggestion-marker-'+_0x3a49b1+'-new',_0x4d7e5f),_0x1cbd32['activeChange']==_0x189e62&&_0x5e82be['writer']['addClass']('ck-suggestion-marker--active',_0x4d7e5f),_0x5e82be['writer']['insert'](_0x4daa62,_0x4d7e5f),_0x5e82be['mapper']['bindElementToMarker'](_0x4d7e5f,_0xeacf06['markerName']);}_0x352e00||_0x34ea13||!_0xd73e85||_0x94c95e(_0xd73e85);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x47c974,_0x2db9c3,_0x2b385a)=>{const _0x3fc659=_0x2b385a['mapper']['markerNameToElements'](_0x2db9c3['markerName']);if(_0x3fc659){for(const _0x4d3b52 of _0x3fc659)(_0x4d3b52['hasClass']('ck-suggestion-marker-split')||_0x4d3b52['hasClass']('ck-suggestion-marker-merge'))&&(_0x2b385a['mapper']['unbindElementFromMarkerName'](_0x4d3b52,_0x2db9c3['markerName']),_0x2b385a['writer']['remove'](_0x4d3b52));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2d49ea,_0x201178,_0x553c45)=>{const _0x43b83b=_0x201178['markerName']['split'](':')[0x1],_0x439c11=this['_getChangeFromId'](_0x43b83b);if(!_0x439c11)return null;const _0x5be3f7='add'==_0x439c11['type']?'split':'merge';if(_0x553c45['consumable']['test'](_0x201178['markerRange'],_0x2d49ea['name']))for(const _0x3f8c6d of _0x201178['markerRange']['getItems']()){if(!_0x3f8c6d['is']('element','softBreak'))continue;const _0x57cc89=_0x553c45['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5be3f7}),_0x5ef7d4=_0x553c45['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3f8c6d));_0x439c11['data']['isSuggestion']&&_0x553c45['writer']['addClass']('ck-suggestion-marker-'+_0x5be3f7+'-new',_0x57cc89),this['activeChange']==_0x439c11&&_0x553c45['writer']['addClass']('ck-suggestion-marker--active',_0x57cc89),_0x553c45['writer']['insert'](_0x5ef7d4,_0x57cc89),_0x553c45['mapper']['bindElementToMarker'](_0x57cc89,_0x201178['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xc6952f=>{for(const _0x53460a of this['editor']['model']['document']['getRootNames']()){const _0x21f333=this['editor']['model']['document']['getRoot'](_0x53460a),_0x26cc3b=this['editor']['editing']['view']['document']['getRoot'](_0x53460a);if(_0x26cc3b){const _0x48a440=_0x21f333['getAttribute']('revisionHistoryAttachChange');if(_0xc6952f['removeAttribute']('data-change-id',_0x26cc3b),_0xc6952f['removeClass']('ck-revision-history-root-add',_0x26cc3b),_0xc6952f['removeClass']('ck-revision-history-root-remove',_0x26cc3b),_0xc6952f['removeClass']('ck-revision-history-root--active',_0x26cc3b),_0x48a440){const _0x3f2697=this['_getChangeFromId'](_0x48a440);if(!_0x3f2697)return null;_0xc6952f['setAttribute']('data-change-id',_0x48a440,_0x26cc3b),_0xc6952f['addClass']('ck-revision-history-root-'+_0x3f2697['type'],_0x26cc3b),this['activeChange']==_0x3f2697&&_0xc6952f['addClass']('ck-revision-history-root--active',_0x26cc3b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x27c3fe=>'revision-comment:'+_0x27c3fe,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xd5f21=>'revision-suggestion:'+_0xd5f21,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x9fea4=>({'name':'suggestion:'+_0x9fea4,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x469677=>{const _0x357f53=_0x469677['markerName']['split'](':')[0x1];return'insertion'!=_0x357f53&&'deletion'!=_0x357f53?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x357f53]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2e61fc,_0x54e971,_0x4b93f1)=>{const _0x2bf34b=_0x4b93f1['mapper']['markerNameToElements'](_0x54e971['markerName']);if(_0x2bf34b){for(const _0x59f8e6 of _0x2bf34b)_0x59f8e6['is']('uiElement')&&(_0x4b93f1['mapper']['unbindElementFromMarkerName'](_0x59f8e6,_0x54e971['markerName']),_0x4b93f1['writer']['remove'](_0x59f8e6));}},{'priority':'high'});}['_getChangeFromId'](_0x32fff6){return this['_changeIdToChange']['get'](_0x32fff6);}['_getViewForChange'](_0x80175e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x80175e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1f91f5,_0x376c49,_0x2ed017,_0x11aebd)=>{_0x11aebd&&this['_balloon']['remove'](_0x11aebd),_0x2ed017&&(this['_balloon']['add']({'view':_0x2ed017,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x309411=this['editor']['editing'],_0x2168be=this['_getChangeFromId'](_0x2ed017['changeId']);let _0x3a13d3;if(_0x2168be['data']['isOnRoot']){const _0x161a6d=_0x309411['view']['getDomRoot'](_0x2168be['rootName']);_0x3a13d3=Array['from'](_0x161a6d['getClientRects']());}else{const _0x2e51da=this['editor']['model']['markers']['get']('revision:'+_0x2ed017['changeId']);_0x3a13d3=Array['from'](_0x309411['mapper']['markerNameToElements'](_0x2e51da['name']))['map'](_0x53588d=>_0x309411['view']['domConverter']['mapViewToDom'](_0x53588d))['map'](_0xaa5ff6=>Array['from'](_0xaa5ff6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3a13d3[0x0];return _0x3a13d3['find'](_0x14b7d1=>_0x14b7d1['top']-0x3<=this['_activeViewTarget']['y']&&_0x14b7d1['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x14b7d1['left']-0x3<=this['_activeViewTarget']['x']&&_0x14b7d1['right']+0x3>=this['_activeViewTarget']['x'])||_0x3a13d3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x96d707,_0x395990,_0x3d8034,_0x1aa5af)=>{this['activeView']=_0x3d8034?this['_getViewForChange'](_0x3d8034):null,this['editor']['model']['change'](()=>{const _0x3b05bd=this['editor']['editing'];_0x1aa5af&&(_0x1aa5af['data']['isOnRoot']?_0x3b05bd['view']['change'](_0x1cef90=>{_0x1cef90['removeClass']('ck-revision-history-root--active',_0x3b05bd['view']['document']['getRoot'](_0x1aa5af['rootName']));}):_0x3b05bd['reconvertMarker']('revision:'+_0x1aa5af['id'])),_0x3d8034&&(_0x3d8034['data']['isOnRoot']?_0x3b05bd['view']['change'](_0x3a9fc5=>{_0x3a9fc5['addClass']('ck-revision-history-root--active',_0x3b05bd['view']['document']['getRoot'](_0x3d8034['rootName']));}):_0x3b05bd['reconvertMarker']('revision:'+_0x3d8034['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x336a30,_0x22e3c3)=>{if(this['activeChange'])return;const _0x8fdbb3=this['_findChangeIdFromDomTarget'](_0x22e3c3['target']),_0x5b429e=this['_changeIdToChange']['get'](_0x8fdbb3);_0x5b429e?(this['_activeViewTarget']={'x':_0x22e3c3['domEvent']['x'],'y':_0x22e3c3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5b429e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2d793a,_0x115b91)=>{const _0x168306=this['_findChangeIdFromDomTarget'](_0x115b91['target']),_0x3df172=this['_changeIdToChange']['get'](_0x168306);_0x3df172?(this['_activeViewTarget']={'x':_0x115b91['domEvent']['x'],'y':_0x115b91['domEvent']['y']},_0x3df172===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3df172):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3f5ec3){do{const _0xdc9ac3=_0x3f5ec3['getAttribute']('data-change-id');if(_0xdc9ac3)return _0xdc9ac3;_0x3f5ec3=_0x3f5ec3['parent'];}while(_0x3f5ec3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1587b0=>{for(const _0x13f782 of this['editor']['model']['markers'])_0x1587b0['removeMarker'](_0x13f782);});}}function tt(_0x585ba0,_0x1c8348){return(_0x53a7fd,_0x5f33f5,_0x195f3e)=>{if(!_0x195f3e['consumable']['test'](_0x5f33f5['markerRange'],_0x53a7fd['name']))return;const _0x145e96=_0x5f33f5['markerRange']['getWalker'](),_0x103d9d=_0x5f33f5['markerRange']['start'],_0x8b2de0=_0x585ba0['model']['schema'];let _0x61acd1=null,_0x19d691=null,_0x2b4d2f=!0x1,_0x5d2f19=!0x1;for(const _0x456e7c of _0x145e96){const _0x42d748=_0x456e7c['item'];_0x2b4d2f=_0x2b4d2f||_0x8b2de0['isContent'](_0x42d748);const _0x90c82e=_0x195f3e['mapper']['toViewElement'](_0x42d748);if(_0x90c82e&&_0x90c82e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x456e7c['type']&&(_0x8b2de0['isBlock'](_0x42d748)&&!_0x8b2de0['isLimit'](_0x42d748)&&(_0x42d748['nextSibling']||_0x103d9d['isAtEnd']?_0x61acd1&&_0x61acd1['parent']==_0x42d748||(_0x61acd1=_0x42d748,_0x26b5e9(_0x456e7c['previousPosition']),_0x5d2f19=!0x0):_0x19d691=_0x19d691||_0x456e7c['previousPosition']));}function _0x26b5e9(_0x276ff9){const _0x2c3926=_0x195f3e['mapper']['toViewPosition'](_0x276ff9),_0x4beef9=_0x195f3e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1c8348});_0x195f3e['writer']['insert'](_0x2c3926,_0x4beef9),_0x195f3e['mapper']['bindElementToMarker'](_0x4beef9,_0x5f33f5['markerName']);}_0x2b4d2f||_0x5d2f19||!_0x19d691||_0x26b5e9(_0x19d691);};}class yt extends _0x1770c0{constructor(_0x5603de){super(_0x5603de);const _0x446089=_0x5603de['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x446089,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x446089,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5739bf=this['editor'],_0x273a99=_0x5739bf['plugins']['get'](d),_0x37f959=_0x273a99['isReady']?_0x273a99['diff']['newRevisionId']:null;_0x5739bf['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x37f959);}['refresh'](){const {isReady:_0x3a1d00,isEnabled:_0x1b1e26}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x3a1d00&&_0x1b1e26;}}class bt extends _0x1770c0{['_step'];constructor(_0x2bd9bb,{direction:_0x216afa}){super(_0x2bd9bb);const _0x567025=_0x2bd9bb['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x216afa?0x1:-0x1,this['listenTo'](_0x567025,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x567025,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x567025,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x575d22=this['editor'],_0x2667ad=_0x575d22['plugins']['get'](d),{isNavigationMode:_0x5e9334,currentChangeNumber:_0x2ae635}=_0x2667ad;let _0x119d8e;if(_0x2667ad['activeChange']=_0x5e9334?_0x2667ad['diff']['changes']['get'](_0x2ae635+this['_step']):_0x2667ad['diff']['changes']['first'],_0x2667ad['activeChange']['data']['isOnRoot'])_0x119d8e=_0x575d22['editing']['view']['getDomRoot'](_0x2667ad['activeChange']['rootName']);else{const _0x3a276a=_0x575d22['model']['markers']['get']('revision:'+_0x2667ad['activeChange']['id']);_0x119d8e=_0x2602da(_0x575d22['editing'],_0x3a276a);}_0x3acc83({'target':_0x119d8e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x402693,currentChangeNumber:_0x116f15,numberOfChanges:_0x179e88,isReady:_0x333ff2,isEnabled:_0x3a5891}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3a5891&&_0x333ff2&&_0x179e88)&&(!_0x402693||(0x1===this['_step']?_0x116f15<_0x179e88-0x1:_0x116f15>0x0));}}class _i extends _0x1377ad{constructor(_0x441a51){super(_0x441a51);const _0x2aa381=this['bindTemplate'],_0x7f2ed6=new _0x51e14f(_0x441a51),_0x527dda=new _0x51e14f(_0x441a51);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',(_0x561395,_0xd12e4a)=>_0x561395&&_0xd12e4a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3b4b44,_0x170ae3,_0x52f4e9,_0xa8b9a6)=>{if(!_0x3b4b44)return R(_0x441a51,'Loading...');if(!_0x52f4e9)return R(_0x441a51,'No\x20changes');const _0xccd473=R(_0x441a51,'NUMBER_OF_CHANGES',_0x52f4e9);return _0xa8b9a6?R(_0x441a51,'X_OF_Y_CHANGES',[_0x170ae3+0x1,_0x52f4e9]):_0xccd473;}),_0x7f2ed6['set']({'label':R(_0x441a51,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x527dda['set']({'label':R(_0x441a51,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x7f2ed6['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x527dda['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x7f2ed6['on']('execute',()=>this['fire']('execute','backward')),_0x527dda['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',_0x2aa381['if']('_isStatusLabelVisible','ck-hidden',_0x8c29ce=>!_0x8c29ce)]},'children':[{'text':_0x2aa381['to']('isNavigationMode',_0x2393f0=>_0x2393f0?R(_0x441a51,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x441a51,'Total')+':\x20')}]},{'text':_0x2aa381['to']('_statusText')}]},new _0x267a03(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x7f2ed6,_0x527dda]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3a656b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3f902b=this['editor']['editing']['view'];_0x3f902b['change'](_0x35b4c8=>{for(const _0xd2f905 of _0x3f902b['document']['roots'])_0x35b4c8['addClass'](ce,_0xd2f905);});}['hide'](){const _0x3323af=this['editor']['editing']['view'];_0x3323af['change'](_0x3082a9=>{for(const _0x701f23 of _0x3323af['document']['roots'])_0x3082a9['removeClass'](ce,_0x701f23);});}}class m extends _0x3a656b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x31054a=this['editor'],_0x5736ad=_0x31054a['plugins']['get'](d),_0x322597=_0x31054a['plugins']['get'](le);_0x31054a['ui']['componentFactory']['add']('exitToEditing',_0x4ca58b=>{const _0x14804f=new _0x51e14f(_0x4ca58b);return _0x14804f['set']({'label':R(_0x4ca58b,'Back\x20to\x20editing'),'icon':_0x5bd77f['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x14804f,'execute',()=>{_0x31054a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x14804f;}),_0x31054a['ui']['componentFactory']['add']('restoreRevision',_0x33ff06=>{const _0x4270fe=new _0x51e14f(_0x33ff06);return _0x4270fe['set']({'label':R(_0x33ff06,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4270fe['bind']('isEnabled')['to'](_0x31054a['commands']['get']('restoreRevision')),this['listenTo'](_0x4270fe,'execute',()=>_0x31054a['execute']('restoreRevision')),_0x4270fe;}),_0x31054a['ui']['componentFactory']['add']('changesNavigation',_0xc412e5=>{const _0x5c0a7f=new _i(_0xc412e5),_0x52b6d7=_0x31054a['commands']['get']('showPreviousChange'),_0x235373=_0x31054a['commands']['get']('showNextChange');return _0x5c0a7f['bind']('isBackwardNavigationEnabled')['to'](_0x52b6d7,'isEnabled'),_0x5c0a7f['bind']('isForwardNavigationEnabled')['to'](_0x235373,'isEnabled'),_0x5c0a7f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5736ad),this['listenTo'](_0x5c0a7f,'execute',(_0x12ca6d,_0x46565a)=>{_0x31054a['execute']('forward'===_0x46565a?'showNextChange':'showPreviousChange');}),_0x5c0a7f;}),_0x322597['show'](),_0x5736ad['on']('change:isReady',(_0x15f7ee,_0x592f2d,_0x15b038)=>{_0x15b038?_0x322597['hide']():_0x322597['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x14b517,_0x17ff5d){super(_0x14b517,_0x17ff5d);const _0x31dcbe=this['bindTemplate'];this['set']({'label':R(_0x14b517,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x14b517,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x31dcbe['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 _0x6a872=this['fieldView']['element'];this['_tooltipString']=_0x6a872['scrollWidth']>_0x6a872['clientWidth']&&_0x6a872['value']||'';}}class ti extends _0x1377ad{constructor(_0x48a560,_0x38a6d3,_0x37e66e){super(_0x48a560);const _0x1425ea=new _0x373c0a();_0x1425ea['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x264ae8=['ck','ck-revision-history-sidebar__revision-author'];_0x37e66e&&_0x264ae8['push']('ck-revision-history-sidebar__revision-author_creator');const _0x21eb05=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x48a560,_0x37e66e?'Revision\x20creator':'Revision\x20author')},'children':[_0x1425ea,_0x38a6d3['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x264ae8},'children':_0x21eb05});}}function ni(_0x4ce8fa,_0x24338c){const _0x1b5d88=_0x4ce8fa['bindTemplate'],_0x35177b=_0x4ce8fa['locale'],_0x39c88c=_0x46d3ea(_0x35177b);_0x39c88c['panelPosition']='sw';const _0x21dcda=function(_0x12d0fc,_0x2b324e){const _0x446a24=function(_0xd21f6f,_0x38d8b6){const _0x21a0bf=_0xd21f6f['locale'],_0x191981={'Compare\x20against\x20selected':R(_0x21a0bf,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x21a0bf,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x21a0bf,'Restore\x20this\x20revision')};return _0x38d8b6['map'](_0x41ca3f=>{const _0x478b2a=_0x191981[_0x41ca3f['name']];return _0x478b2a&&_0x478b2a!==_0x41ca3f['name']&&(_0x41ca3f['name']=_0x478b2a),_0x41ca3f;});}(_0x12d0fc,_0x2b324e),_0x4b1470=new _0x4d04fc();for(const _0x550780 of _0x446a24){const _0x2ec19a={'type':'button','model':new to({'label':_0x550780['name'],'class':_0x550780['class'],'withText':!0x0,'role':'menuitem','_action':_0x550780['action']})};_0x2ec19a['model']['bind']('isEnabled')['to'](_0x12d0fc,'isActionsDropdownOpen',_0x341347=>'function'!=typeof _0x550780['isEnabled']||(!_0x341347||_0x550780['isEnabled'](_0x12d0fc))),_0x4b1470['add'](_0x2ec19a);}return _0x4b1470;}(_0x4ce8fa,_0x24338c);return _0x4ce8fa['bind']('isActionsDropdownOpen')['to'](_0x39c88c,'isOpen'),_0x39c88c['buttonView']['set']({'label':R(_0x35177b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5bd77f['threeVerticalDots']}),_0x39c88c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1b5d88['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1b5d88['to'](_0x43a971=>_0x43a971['stopPropagation']())}}),_0x39c88c['on']('execute',_0xba6979=>{_0x4ce8fa['isReady']&&'function'==typeof _0xba6979['source']['_action']&&_0xba6979['source']['_action'](_0x4ce8fa);}),_0x9be4ae(_0x39c88c,_0x21dcda,{'role':'menu'}),_0x39c88c['listenTo'](_0x4ce8fa,'change:isActionsDropdownOpen',(_0x2b08b5,_0x3079d3,_0x168953)=>{if(_0x168953)for(const _0x26a41d of _0x39c88c['listView']['items']){const _0x4dcf1f=_0x26a41d['children']['first'],_0x2dd3bb=_0x24338c['find'](_0x54e01a=>_0x54e01a['action']===_0x4dcf1f['_action'])['isVisible'];_0x26a41d['isVisible']=void 0x0===_0x2dd3bb||_0x2dd3bb(_0x4ce8fa);}}),_0x39c88c;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x19b81a(_0x1377ad){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x455b31,_0x264c25,_0x35fde0,_0x828787){super(_0x455b31);const _0x26aca1=this['bindTemplate'],_0x4dbfcd=function(_0x3ee111,_0x387e8f){const _0x32ae6b=Array['from'](_0x387e8f['authors'])['filter'](_0x4c98c7=>_0x4c98c7!=_0x387e8f['creator']);return _0x387e8f['creator']&&_0x32ae6b['unshift'](_0x387e8f['creator']),_0x32ae6b['map'](_0x77f45f=>new ti(_0x3ee111,_0x77f45f,_0x77f45f==_0x387e8f['creator']));}(_0x455b31,_0x264c25);this['id']=_0x264c25['id'],this['_revision']=_0x264c25,this['_requireRevisionName']=_0x828787,this['bind']('name','createdAt')['to'](_0x264c25),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x171c4a=>{return _0x591bb5=_0x455b31['uiLanguage'],(_0x32ed92=_0x171c4a)['toLocaleDateString'](_0x591bb5,{'month':'long','day':'numeric'})+',\x20'+_0x32ed92['toLocaleTimeString'](_0x591bb5,{'hour':'numeric','minute':'numeric'});var _0x591bb5,_0x32ed92;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x455b31,_0x189690),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x50d39c=>_0x50d39c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1c53ce,_0x116bf2)=>_0x1c53ce&&_0x116bf2),this['revisionActionsView']=_0x35fde0&&_0x35fde0['length']?ni(this,_0x35fde0):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x26aca1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x26aca1['if']('isEnabled','ck-disabled',_0x64d00a=>!_0x64d00a),_0x26aca1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x26aca1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x26aca1['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':_0x26aca1['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':_0x4dbfcd}]},this['revisionActionsView']],'on':{'click':_0x26aca1['to'](_0x23d4c6=>{_0x23d4c6['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3ac851=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3ac851,'change',()=>{this['_requireRevisionName']&&!_0x3ac851['value']||this['fire']('setName',{'id':this['id'],'name':_0x3ac851['value']}),_0x3ac851['value']||(_0x3ac851['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x3ab680,_0x594948){const _0x362cb2=_0x1532ff['fromJSDate'](_0x3ab680)['setLocale'](_0x594948),_0x1153b4=_0x1532ff['local'](),_0xce7621=_0x1153b4['minus']({'days':0x1})['startOf']('day');let _0x4ef82c,_0x4ddf3c;return _0x362cb2['hasSame'](_0x1153b4,'day')?(_0x4ef82c=_0x362cb2['startOf']('day')['toJSDate'](),_0x4ddf3c=_0x362cb2['toRelativeCalendar']()):_0x362cb2['hasSame'](_0xce7621,'day')?(_0x4ef82c=_0xce7621['toJSDate'](),_0x4ddf3c=_0x362cb2['toRelativeCalendar']()):_0x362cb2['hasSame'](_0x1153b4,'week')?(_0x4ef82c=_0x362cb2['startOf']('week')['toJSDate'](),_0x4ddf3c=_0x362cb2['weekdayLong']||''):_0x362cb2['hasSame'](_0x1153b4,'year')?(_0x4ef82c=_0x362cb2['startOf']('month')['toJSDate'](),_0x4ddf3c=_0x362cb2['monthLong']||''):(_0x4ef82c=_0x362cb2['startOf']('year')['toJSDate'](),_0x4ddf3c=String(_0x362cb2['year'])),{'startDate':_0x4ef82c,'localizedPeriodName':_0x4ddf3c};}class mi extends _0x1377ad{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x390e6a,_0x3857a8,_0x5557ab,_0x1dbc62){super(_0x390e6a);const _0x536906=di(_0x3857a8,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3857a8,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5557ab,this['_requireRevisionName']=_0x1dbc62,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':_0x536906}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5b69e9){const _0x264a8b=new ai(this['locale'],_0x5b69e9,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x264a8b);}['removeRevision'](_0x4261ee){const _0x1d1439=this['revisionViews']['find'](_0x449845=>_0x449845['id']===_0x4261ee['id']);this['revisionViews']['remove'](_0x1d1439);}}class as extends _0x1377ad{constructor(_0x26a9a5){super(_0x26a9a5);const _0x1e6867=new _0x373c0a();_0x1e6867['content']=_0x5bd77f['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1e6867,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x26a9a5,'Revision\x20history')]}]});}}class ci extends _0x1377ad{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x9e331,_0x56994f,_0x2c4472,_0x1e4f31){super(_0x9e331);const _0x5196db=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x56994f,this['_revisionActions']=_0x2c4472,this['_requireRevisionName']=_0x1e4f31,this['on']('select',(_0xe4a741,_0x37521e)=>{this['fire']('revisionSelected',_0x37521e);}),this['on']('setName',(_0x421116,_0x4d68de)=>{this['fire']('revisionSetName',_0x4d68de);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x9e331),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5196db['if']('isEnabled','ck-disabled',_0x9e8fad=>!_0x9e8fad)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x38ce91 of this['_revisions'])this['_addRevision'](_0x38ce91);this['_revisions']['on']('add',(_0x5de9ee,_0x316e25)=>{this['_addRevision'](_0x316e25);}),this['_revisions']['on']('remove',(_0x4eb45a,_0x3bdf51)=>{this['_removeRevision'](_0x3bdf51);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4e5e4c=>_0x4e5e4c['revisionViews']['map'](_0x1463b3=>_0x1463b3))['flat']();}['selectRevision'](_0x21812f){for(const _0x2f118e of this['revisionViews'])_0x21812f&&_0x21812f['id']===_0x2f118e['id']?_0x2f118e['select']():_0x2f118e['deselect']();}['highlightRevisions'](_0x32c841){for(const _0x5745d5 of this['revisionViews'])_0x32c841['some'](({id:_0x2ee636})=>_0x2ee636===_0x5745d5['id'])?_0x5745d5['highlight']():_0x5745d5['unhighlight']();}['_addRevision'](_0x58d218){const _0x6af040=di(_0x58d218['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4fbcb9=this['timePeriodViews']['get'](0x0);_0x4fbcb9&&_0x4fbcb9['startDate']['getTime']()===_0x6af040['getTime']()||(_0x4fbcb9=new mi(this['locale'],_0x6af040,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4fbcb9)),_0x4fbcb9['addRevision'](_0x58d218);}['_removeRevision'](_0x23e938){const _0x2b51c5=di(_0x23e938['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2b51c5)['removeRevision'](_0x23e938);}['_getTimePeriodViewByStartDate'](_0x488224){return this['timePeriodViews']['find'](_0x42c9bd=>_0x42c9bd['startDate']['getTime']()===_0x488224['getTime']());}}class g extends _0x3a656b{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4e6451,_0x207961){super(_0x207961),this['sourceElement']=_0x4e6451,this['model']['document']['createRoot']();const _0x3e7d71=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x3e7d71);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2c64eb,_0xd816b0){const _0x3a1126=new this(_0x2c64eb,_0xd816b0);return await _0x3a1126['initPlugins'](),await _0x3a1126['ui']['init'](_0x2c64eb),await _0x3a1126['data']['init'](_0x3a1126['config']['get']('initialData')||''),_0x3a1126['fire']('ready'),_0x3a1126;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x24aabd{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x202c14){function _0x624173(_0xc03c99){return _0xc03c99['map'](_0x4d03b9=>String['fromCharCode'](_0x4d03b9))['join']('');}super(_0x202c14),this['result']='end',_0x202c14[_0x624173([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x624173([0x76,0x69,0x65,0x77])][_0x624173([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x624173([0x61,0x75,0x74,0x6f]),_0x202c14[_0x624173([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x624173([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x624173([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x624173([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x624173([0x6f,0x6b])});}}class H extends _0x24aabd{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1dfd5a){if(super(_0x1dfd5a),!this['editor']['config']['get']('revisionHistory'))throw new _0x2c83c4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1216e0=>this['_showRevisionViewer']({..._0x1216e0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x6efeaa=>this['_closeRevisionViewer'](_0x6efeaa)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xb5d5d8=>this['_restoreRevision'](_0xb5d5d8)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xc5b1a4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xc5b1a4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4f7658){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4f7658);}['getRevision'](_0x4ae114){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4ae114);}['getRevisions'](_0x4705cd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4705cd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xbc5759=this['editor'],_0x1fdf79=_0x3f5003(_0xbc5759,p),_0x940aad=_0xbc5759['plugins']['get']('RevisionTracker'),_0x3e2218=_0xbc5759['plugins']['get']('Users')['users'];return _0x1fdf79['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1fdf79['lazyRoots'],(_0x1fdf79['plugins']['push'](k,d,m,class extends _0x24aabd{static get['requires'](){return[d,'Users'];}['init'](){const _0x123115=this['editor']['plugins']['get']('Users');for(const _0x19854 of _0x3e2218)_0x19854['isAnonymous']||_0x123115['getUser'](_0x19854['id'])||_0x123115['addUser'](_0x19854);const _0x267ceb=_0x940aad['repository']['getRevisions']();let _0xb13620=null;const _0x487488=this['editor']['plugins']['get']('RevisionViewer');_0x487488['adapter']=_0x940aad['adapter'],_0x487488['bind']('isEnabled')['to'](_0x940aad),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xbc5759,'isReadOnly',_0x48c847=>!_0x48c847);for(const _0x1fb415 of _0x267ceb){const _0x383b33=null===_0x1fb415['creator'];if(_0x383b33&&_0x1fb415['toVersion']===_0x1fb415['fromVersion'])continue;const _0x37fc85=_0x1fb415['toJSON']();_0x487488['addRevisionData'](_0x37fc85,(_0x53cc82,_0xa2d568,_0x3a5440)=>{if(_0x383b33){if(_0xb13620)_0xb13620['_update'](_0x53cc82,_0xa2d568);else{if(!_0xa2d568){const _0x4e9e4a=_0x3a5440['toJSON']();_0x4e9e4a['id']=_0x4dce4d(),_0x940aad['saveRevision'](_0x4e9e4a,_0x3a5440['toVersion'])['then'](_0x295998=>{_0xb13620=_0x295998;});}}}else _0x1fb415['_update'](_0x53cc82,_0xa2d568);});}}},g),_0x1fdf79);}['_enhanceShowRevisionViewerCallback'](){const _0x3cf8d4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4aca0f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xd67fa3=this['editor']['plugins']['get']('Autosave');await _0xd67fa3['save']();}else await _0x4aca0f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x131d81=this['editor']['plugins']['get']('Dialog');_0x131d81['isOpen']&&_0x131d81['hide']();}const _0x3e0d66=this['_getRevisionViewerEditorConfig']();return _0x3cf8d4(_0x3e0d66)['then'](_0x1ef73c=>{return(this['_viewerEditor']=_0x1ef73c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1ef73c;})['catch'](_0x16e2ee=>(console['error'](_0x16e2ee),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x379bdb=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'](),_0x379bdb(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x18c973=this['editor']['plugins']['get']('Annotations');_0x18c973['refreshVisibility'](),_0x18c973['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3e7318){const _0x3ff5db=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4ce097=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x55675a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x55675a,_0x3e7318)['then'](_0x3797e2=>(_0x4ce097['style']['display']='block',_0x3ff5db['style']['display']='none',_0x3797e2));}['_closeRevisionViewer'](_0xa5822b){const _0x53de07=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x53de07['style']['display']='',_0xa5822b['destroy']();}async['_restoreRevision'](_0x127aeb){const _0x4e113b=this['editor'],_0x35eba0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x232de0=_0x4e113b['plugins']['get']('RevisionTracker'),_0xc6cc98=_0x35eba0['repository']['getRevision'](_0x127aeb);let _0x5633e6,_0x157a61,_0x50aa91;try{_0x5633e6=await _0x35eba0['getRevisionData'](_0xc6cc98),_0x157a61=await _0x35eba0['getRevisionRootsAttributes'](_0xc6cc98);}catch(_0xdebb31){return void console['error'](_0xdebb31);}_0x4e113b['model']['change'](_0x463336=>{for(const _0x14d38e of Array['from'](_0x4e113b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x463336['removeMarker'](_0x14d38e);}),_0x35eba0['isReady']=!0x1,_0x4e113b['model']['enqueueChange'](_0x23b062=>{_0x23b062['setSelection'](null),_0x23b062['removeSelectionAttribute'](_0x4e113b['model']['document']['selection']['getAttributeKeys']());const _0x1ae232=Object['keys'](_0x5633e6);for(const _0x1604a2 of _0x4e113b['model']['document']['roots'])'$graveyard'!=_0x1604a2['rootName']&&_0x1604a2['isAttached']()&&!_0x1ae232['includes'](_0x1604a2['rootName'])&&_0x23b062['detachRoot'](_0x1604a2);for(const _0x13a001 of _0x1ae232){let _0x56ca54=_0x4e113b['model']['document']['getRoot'](_0x13a001);_0x56ca54&&_0x56ca54['isAttached']()||(_0x56ca54=_0x23b062['addRoot'](_0x13a001));const _0x3b905a=_0x157a61[_0x13a001],_0x16d16e=Object['keys'](_0x3b905a),_0x148f41=_0x5633e6[_0x13a001];for(const _0x8b8e0a of _0x56ca54['getAttributeKeys']())_0x16d16e['includes'](_0x8b8e0a)||_0x23b062['removeAttribute'](_0x8b8e0a,_0x56ca54);for(const _0x584244 of _0x16d16e)_0x23b062['setAttribute'](_0x584244,_0x157a61[_0x13a001][_0x584244],_0x56ca54);_0x23b062['remove'](_0x23b062['createRangeIn'](_0x56ca54)),_0x23b062['insert'](_0x4e113b['data']['parse'](_0x148f41,_0x56ca54),_0x56ca54,0x0);}});const _0x41a15b=R(_0x4e113b['locale'],'Restored');if(_0xc6cc98['name'])_0x50aa91=-0x1==_0xc6cc98['name']['indexOf'](_0x41a15b)?_0x41a15b+':\x20'+_0xc6cc98['name']:_0xc6cc98['name'];else _0x50aa91=_0x41a15b+':\x20'+(_0xc6cc98['createdAt']['toLocaleDateString'](_0x4e113b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xc6cc98['createdAt']['toLocaleTimeString'](_0x4e113b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x232de0['saveRevision']({'name':_0x50aa91}),_0x35eba0['isReady']=!0x0,_0x4e113b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1c4969){super(_0x1c4969),this['_revisionViewer']=_0x1c4969['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x17ce88=this['_revisionsRepository']['_revisions'],_0xa39f8a=this['_createRevisionActions'](),_0x4f3435=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x17ce88,_0xa39f8a,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',(_0x46dcf1,_0xa3a131)=>{_0xa3a131['revisionViews']['on']('add',(_0x3e22e7,_0x1c91e0)=>{_0x1c91e0['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)),_0x4f3435['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x990a02=this['_revisionsRepository']['getRevision'](0x0);if(_0x990a02){const _0x1e08e4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x990a02['id']);this['_revisionViewer']['compare'](_0x990a02,_0x1e08e4);}}['_handleRevisionSelected'](_0x1829d5,_0x161833){const _0x2b4797=this['_revisionsRepository']['getRevision'](_0x161833['id']),_0xb963d6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2b4797['id']);this['_revisionViewer']['compare'](_0x2b4797,_0xb963d6);}['_handleRevisionSetName'](_0x3a1400,_0x513454){this['_revisionsRepository']['getRevision'](_0x513454['id'])['setName'](_0x513454['name']);}['_handleDiffChange'](_0x47615e,_0x36b59e,_0x220658){const _0x4fc32a=this['_revisionsRepository']['getRevisionsInDiff'](_0x220658);_0x4fc32a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4fc32a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4fc32a[0x0]));}['_createRevisionActions'](){const _0x4e2911=this['editor'],_0x48aa96=g['availableRevisionActions'],_0x1bb0f1=_0x4e2911['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1bb0f1['length'])return _0x1bb0f1['map'](_0x3ba075=>{const _0x10cd02='string'==typeof _0x3ba075?Object['assign']({},_0x48aa96[_0x3ba075]):_0x3ba075;return _0x10cd02['action']=_0x10cd02['action']['bind'](this,_0x4e2911),_0x10cd02['isVisible']&&(_0x10cd02['isVisible']=_0x10cd02['isVisible']['bind'](this,_0x4e2911)),_0x10cd02;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x135a01},_0x297e9c)=>{const _0x4f2a29=_0x135a01['get'](d),_0x15168a=_0x4f2a29['repository'];let _0x249bb9=_0x4f2a29['diff']['newRevisionId'],_0x5d4193=_0x297e9c['id'];_0x15168a['getIndex'](_0x249bb9)>_0x15168a['getIndex'](_0x5d4193)&&([_0x249bb9,_0x5d4193]=[_0x5d4193,_0x249bb9]),_0x4f2a29['compare'](_0x249bb9,_0x5d4193);},'isVisible':({plugins:_0x2ea760},_0x4b2dfa)=>{const _0xa5c580=_0x2ea760['get'](d);return!(_0xa5c580['repository']['getRevisionsInDiff'](_0xa5c580['diff'])['length']>0x2)&&!_0x4b2dfa['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x35d07f,{id:_0x56a21b})=>{_0x35d07f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x56a21b);},'isVisible':({plugins:_0x5f2d58},_0x7daa62)=>!!_0x5f2d58['get'](d)['repository']['getLaterVisibleRevision'](_0x7daa62['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1e532d},{id:_0x5e3438,revisionNameView:_0x53aea5})=>{const _0x382969=_0x1e532d['get'](d),_0x1ec3e5=_0x382969['repository']['getEarlierVisibleRevision'](_0x5e3438);_0x382969['compare'](_0x5e3438,_0x1ec3e5),_0x53aea5['focus'](),_0x53aea5['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x52c3a1,_0x5badd9){super(_0x52c3a1),this['_view']=_0x5badd9,this['_toolbarConfig']=ht(_0x52c3a1['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x18f5eb){const _0x379dbb=this['editor'],_0x28b957=this['view'],_0x36469b=_0x379dbb['editing']['view'],_0x3e32fe=_0x28b957['editable'],_0x2dae16=_0x36469b['document']['getRoot']();_0x3e32fe['name']=_0x2dae16['rootName'],_0x28b957['render']();const _0x3ea8bc=_0x3e32fe['element'];this['setEditableElement'](_0x3e32fe['name'],_0x3ea8bc),_0x28b957['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x36469b['attachDomRoot'](_0x3ea8bc),this['_elementReplacer']['replace'](_0x18f5eb,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x543132=this['view'],_0x5674f=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5674f['detachDomRoot'](_0x543132['editable']['name']),_0x543132['destroy']();}['_initToolbar'](){const _0x77b3=this['view'];_0x77b3['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x77b3['stickyPanel']['limiterElement']=_0x77b3['element'],_0x77b3['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3f7163})=>_0x3f7163),_0x77b3['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x77b3['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4c0117,_0x46a0f2,_0x27c628={}){super(_0x4c0117),this['stickyPanel']=new lt(_0x4c0117),this['toolbar']=new nt(_0x4c0117,{'shouldGroupWhenFull':_0x27c628['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x4c0117,_0x46a0f2);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3317ef,_0x50807f){super(_0x50807f),this['sourceElement']=_0x3317ef,this['model']['document']['createRoot']();const _0x31895e=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x31895e);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x400d8c,_0x5d307c){const _0x55c76d=new this(_0x400d8c,_0x5d307c);return await _0x55c76d['initPlugins'](),await _0x55c76d['ui']['init'](_0x400d8c),await _0x55c76d['data']['init'](_0x55c76d['config']['get']('initialData')||''),_0x55c76d['fire']('ready'),_0x55c76d;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x3a656b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53bdd0){function _0x41554b(_0x7e92a2){return _0x7e92a2['map'](_0x583896=>String['fromCharCode'](_0x583896))['join']('');}super(_0x53bdd0),this['result']='end',_0x53bdd0[_0x41554b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41554b([0x76,0x69,0x65,0x77])][_0x41554b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41554b([0x61,0x75,0x74,0x6f]),_0x53bdd0[_0x41554b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x41554b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41554b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x41554b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x41554b([0x6f,0x6b])});}}class H extends _0x3a656b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x52aa41){if(super(_0x52aa41),!this['editor']['config']['get']('revisionHistory'))throw new _0x5aaa91('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x37fdd8=>this['_showRevisionViewer']({..._0x37fdd8,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x50f278=>this['_closeRevisionViewer'](_0x50f278)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xbdf677=>this['_restoreRevision'](_0xbdf677)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3784db){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3784db;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5d12d7){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5d12d7);}['getRevision'](_0x458afe){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x458afe);}['getRevisions'](_0x2e1f4c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2e1f4c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x21c57d=this['editor'],_0xe15111=_0x547848(_0x21c57d,p),_0x5d3f0c=_0x21c57d['plugins']['get']('RevisionTracker'),_0x8bc179=_0x21c57d['plugins']['get']('Users')['users'];return _0xe15111['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xe15111['lazyRoots'],(_0xe15111['plugins']['push'](k,d,m,class extends _0x3a656b{static get['requires'](){return[d,'Users'];}['init'](){const _0x3b595d=this['editor']['plugins']['get']('Users');for(const _0x5d3c5e of _0x8bc179)_0x5d3c5e['isAnonymous']||_0x3b595d['getUser'](_0x5d3c5e['id'])||_0x3b595d['addUser'](_0x5d3c5e);const _0x12460c=_0x5d3f0c['repository']['getRevisions']();let _0x569aed=null;const _0x117e75=this['editor']['plugins']['get']('RevisionViewer');_0x117e75['adapter']=_0x5d3f0c['adapter'],_0x117e75['bind']('isEnabled')['to'](_0x5d3f0c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x21c57d,'isReadOnly',_0x1522b6=>!_0x1522b6);for(const _0x791fbf of _0x12460c){const _0x2725b0=null===_0x791fbf['creator'];if(_0x2725b0&&_0x791fbf['toVersion']===_0x791fbf['fromVersion'])continue;const _0x54911d=_0x791fbf['toJSON']();_0x117e75['addRevisionData'](_0x54911d,(_0x11a535,_0x3f1811,_0xce869d)=>{if(_0x2725b0){if(_0x569aed)_0x569aed['_update'](_0x11a535,_0x3f1811);else{if(!_0x3f1811){const _0xf31d44=_0xce869d['toJSON']();_0xf31d44['id']=_0x545ed9(),_0x5d3f0c['saveRevision'](_0xf31d44,_0xce869d['toVersion'])['then'](_0x2882b1=>{_0x569aed=_0x2882b1;});}}}else _0x791fbf['_update'](_0x11a535,_0x3f1811);});}}},g),_0xe15111);}['_enhanceShowRevisionViewerCallback'](){const _0x198864=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x230c4c=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x8ee862=this['editor']['plugins']['get']('Autosave');await _0x8ee862['save']();}else await _0x230c4c['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x33502d=this['editor']['plugins']['get']('Dialog');_0x33502d['isOpen']&&_0x33502d['hide']();}const _0x48e813=this['_getRevisionViewerEditorConfig']();return _0x198864(_0x48e813)['then'](_0x12f380=>{return(this['_viewerEditor']=_0x12f380,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x12f380;})['catch'](_0x4f160a=>(console['error'](_0x4f160a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2499a7=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'](),_0x2499a7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3abb24=this['editor']['plugins']['get']('Annotations');_0x3abb24['refreshVisibility'](),_0x3abb24['refreshPositioning']();}})));}['_showRevisionViewer'](_0x194763){const _0x34f2e4=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2cab74=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2f9aa0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2f9aa0,_0x194763)['then'](_0x3d860e=>(_0x2cab74['style']['display']='block',_0x34f2e4['style']['display']='none',_0x3d860e));}['_closeRevisionViewer'](_0x5c2476){const _0x4dff98=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4dff98['style']['display']='',_0x5c2476['destroy']();}async['_restoreRevision'](_0x2f849d){const _0x27d517=this['editor'],_0x1358f4=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x54f7b5=_0x27d517['plugins']['get']('RevisionTracker'),_0x54f04e=_0x1358f4['repository']['getRevision'](_0x2f849d);let _0x58be0a,_0x12c5a0,_0x36e1c4;try{_0x58be0a=await _0x1358f4['getRevisionData'](_0x54f04e),_0x12c5a0=await _0x1358f4['getRevisionRootsAttributes'](_0x54f04e);}catch(_0x2ca677){return void console['error'](_0x2ca677);}_0x27d517['model']['change'](_0xbe5542=>{for(const _0x4bcc39 of Array['from'](_0x27d517['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xbe5542['removeMarker'](_0x4bcc39);}),_0x1358f4['isReady']=!0x1,_0x27d517['model']['enqueueChange'](_0x2863ec=>{_0x2863ec['setSelection'](null),_0x2863ec['removeSelectionAttribute'](_0x27d517['model']['document']['selection']['getAttributeKeys']());const _0x5f30b3=Object['keys'](_0x58be0a);for(const _0x115fd8 of _0x27d517['model']['document']['roots'])'$graveyard'!=_0x115fd8['rootName']&&_0x115fd8['isAttached']()&&!_0x5f30b3['includes'](_0x115fd8['rootName'])&&_0x2863ec['detachRoot'](_0x115fd8);for(const _0x4a4a29 of _0x5f30b3){let _0x152b29=_0x27d517['model']['document']['getRoot'](_0x4a4a29);_0x152b29&&_0x152b29['isAttached']()||(_0x152b29=_0x2863ec['addRoot'](_0x4a4a29));const _0x1ffb2f=_0x12c5a0[_0x4a4a29],_0x2ce67e=Object['keys'](_0x1ffb2f),_0x17e0c7=_0x58be0a[_0x4a4a29];for(const _0x4cb397 of _0x152b29['getAttributeKeys']())_0x2ce67e['includes'](_0x4cb397)||_0x2863ec['removeAttribute'](_0x4cb397,_0x152b29);for(const _0x452003 of _0x2ce67e)_0x2863ec['setAttribute'](_0x452003,_0x12c5a0[_0x4a4a29][_0x452003],_0x152b29);_0x2863ec['remove'](_0x2863ec['createRangeIn'](_0x152b29)),_0x2863ec['insert'](_0x27d517['data']['parse'](_0x17e0c7,_0x152b29),_0x152b29,0x0);}});const _0x5d3c98=R(_0x27d517['locale'],'Restored');if(_0x54f04e['name'])_0x36e1c4=-0x1==_0x54f04e['name']['indexOf'](_0x5d3c98)?_0x5d3c98+':\x20'+_0x54f04e['name']:_0x54f04e['name'];else _0x36e1c4=_0x5d3c98+':\x20'+(_0x54f04e['createdAt']['toLocaleDateString'](_0x27d517['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x54f04e['createdAt']['toLocaleTimeString'](_0x27d517['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x54f7b5['saveRevision']({'name':_0x36e1c4}),_0x1358f4['isReady']=!0x0,_0x27d517['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|