@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.0 → 46.0.1-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +2 -2
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +14 -14
- package/src/common-translations.js +1 -1
- package/src/index.js +1 -1
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/presencelist.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativecomments.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativeediting.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativerevisionhistory.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f0a89=_0x544e;function _0x544e(_0x1c1219,_0x276962){const _0x32a77c=_0x32a7();return _0x544e=function(_0x544ec8,_0x1d30c7){_0x544ec8=_0x544ec8-0x1dd;let _0x52357e=_0x32a77c[_0x544ec8];return _0x52357e;},_0x544e(_0x1c1219,_0x276962);}(function(_0x79db9e,_0x4bb3f4){const _0x2a8435=_0x544e,_0xad4165=_0x79db9e();while(!![]){try{const _0x437c80=-parseInt(_0x2a8435(0x1df))/0x1*(-parseInt(_0x2a8435(0x1e0))/0x2)+-parseInt(_0x2a8435(0x202))/0x3*(parseInt(_0x2a8435(0x1f2))/0x4)+parseInt(_0x2a8435(0x1fc))/0x5*(parseInt(_0x2a8435(0x1f5))/0x6)+parseInt(_0x2a8435(0x1ea))/0x7*(parseInt(_0x2a8435(0x1e8))/0x8)+parseInt(_0x2a8435(0x206))/0x9*(parseInt(_0x2a8435(0x1f6))/0xa)+parseInt(_0x2a8435(0x1f4))/0xb+-parseInt(_0x2a8435(0x1e5))/0xc*(parseInt(_0x2a8435(0x1e2))/0xd);if(_0x437c80===_0x4bb3f4)break;else _0xad4165['push'](_0xad4165['shift']());}catch(_0x659486){_0xad4165['push'](_0xad4165['shift']());}}}(_0x32a7,0xa9b18));import{View as _0x2949ee}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x47419e}from'ckeditor5/src/utils.js';function _0x32a7(){const _0x3d40d2=['ck-presence-list__list','46149AVWAsm','setTemplate','.ck-balloon-panel_with-arrow','hasPopup','47493swxhPy','set','change:hasPopup','5EBQkWh','406398vNftcf','fire','11479MkBnlK','removeAttribute','createCollection','5172lxFubG','presencelist:hide','contains','4811656AkHBGy','render','7wvXQsg','Connected\x20users\x20list','presencelist:show','keystrokes','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','bindTemplate','aria-expanded','focus','220FwkWyn','div','738287EQQVLv','120GdbqxE','90lOLxpB','relatedTarget','setAttribute','element','listenTo','.ck-presence-list__dropdown-list','47410pdkbUN','querySelector','items','isExpanded','list'];_0x32a7=function(){return _0x3d40d2;};return _0x32a7();}import{getTranslation as _0x2a9d09}from'../../common-translations.js';export class PresenceInlineListView extends _0x2949ee{[_0x3f0a89(0x1fe)];[_0x3f0a89(0x1ed)];constructor(_0xb4231){const _0x3f7f83=_0x3f0a89;super(_0xb4231);const _0x3e5f17=this[_0x3f7f83(0x1ef)];this[_0x3f7f83(0x1fe)]=this[_0x3f7f83(0x1e4)](),this[_0x3f7f83(0x1ed)]=new _0x47419e(),this[_0x3f7f83(0x1dd)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x3f7f83(0x203)]({'tag':_0x3f7f83(0x1f3),'attributes':{'aria-haspopup':_0x3e5f17['if'](_0x3f7f83(0x205)),'aria-expanded':_0x3e5f17['to'](_0x3f7f83(0x1ff),_0x32182c=>this[_0x3f7f83(0x205)]&&String(_0x32182c)),'aria-label':_0x3e5f17['to'](_0x3f7f83(0x205),_0x1cbc63=>_0x2a9d09(_0xb4231,_0x1cbc63?_0x3f7f83(0x1ee):_0x3f7f83(0x1eb))),'role':_0x3f7f83(0x200),'tabindex':_0x3e5f17['to'](_0x3f7f83(0x205),_0x3b8cba=>!!_0x3b8cba&&0x0),'class':['ck',_0x3f7f83(0x201)]},'children':this[_0x3f7f83(0x1fe)],'on':{'mouseenter':_0x3e5f17['to'](()=>this[_0x3f7f83(0x1e1)](_0x3f7f83(0x1ec))),'mouseleave':_0x3e5f17['to'](_0x2ea9ee=>{const _0x42484f=_0x3f7f83,_0x461767=_0x2ea9ee,_0x2c8f02=document[_0x42484f(0x1fd)](_0x42484f(0x1fb)),_0x8d293e=document[_0x42484f(0x1fd)](_0x42484f(0x204));_0x2c8f02?.[_0x42484f(0x1e7)](_0x461767[_0x42484f(0x1f7)])||_0x8d293e?.[_0x42484f(0x1e7)](_0x461767[_0x42484f(0x1f7)])||this[_0x42484f(0x1e1)](_0x42484f(0x1e6));})}}),this['on'](_0x3f7f83(0x1de),(_0x8db2dc,_0x51e17c,_0x1b9644)=>{const _0x3a45a7=_0x3f7f83;this[_0x3a45a7(0x1f9)]&&(_0x1b9644?this[_0x3a45a7(0x1f9)][_0x3a45a7(0x1f8)](_0x3a45a7(0x1f0),String(this[_0x3a45a7(0x1ff)])):this[_0x3a45a7(0x1f9)][_0x3a45a7(0x1e3)](_0x3a45a7(0x1f0)));});}[_0x3f0a89(0x1f1)](){const _0x1db3ef=_0x3f0a89;this[_0x1db3ef(0x1f9)][_0x1db3ef(0x1f1)]();}[_0x3f0a89(0x1e9)](){const _0x1eb74f=_0x3f0a89;super[_0x1eb74f(0x1e9)](),this[_0x1eb74f(0x1ed)][_0x1eb74f(0x1fa)](this[_0x1eb74f(0x1f9)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4195(_0x532465,_0x5f0811){const _0x62f4fb=_0x62f4();return _0x4195=function(_0x419573,_0x2e247a){_0x419573=_0x419573-0x13e;let _0x23ed2c=_0x62f4fb[_0x419573];return _0x23ed2c;},_0x4195(_0x532465,_0x5f0811);}const _0x3ca4cd=_0x4195;(function(_0x28e939,_0x352484){const _0xf5ec31=_0x4195,_0x332884=_0x28e939();while(!![]){try{const _0x25fa5a=parseInt(_0xf5ec31(0x153))/0x1+-parseInt(_0xf5ec31(0x150))/0x2+-parseInt(_0xf5ec31(0x14b))/0x3+-parseInt(_0xf5ec31(0x145))/0x4*(-parseInt(_0xf5ec31(0x142))/0x5)+-parseInt(_0xf5ec31(0x152))/0x6+parseInt(_0xf5ec31(0x146))/0x7+-parseInt(_0xf5ec31(0x159))/0x8*(-parseInt(_0xf5ec31(0x149))/0x9);if(_0x25fa5a===_0x352484)break;else _0x332884['push'](_0x332884['shift']());}catch(_0x186340){_0x332884['push'](_0x332884['shift']());}}}(_0x62f4,0xa66f9));import{View as _0x322735}from'ckeditor5/src/ui.js';import{PresenceCounterView as _0x26c9f3}from'./presencecounterview.js';import{PresenceInlineListView as _0x435fba}from'./presenceinlinelistview.js';import'../../../theme/presencelist.css';export class PresenceListView extends _0x322735{[_0x3ca4cd(0x154)];[_0x3ca4cd(0x13f)];constructor(_0x3a3c0e,_0x316ca5=0x6){const _0x4a2540=_0x3ca4cd;super(_0x3a3c0e);const _0x443e0f=this[_0x4a2540(0x14d)];this[_0x4a2540(0x141)](_0x4a2540(0x14e),!0x0),this[_0x4a2540(0x154)]=new _0x26c9f3(this[_0x4a2540(0x140)],_0x316ca5),this[_0x4a2540(0x13f)]=new _0x435fba(_0x3a3c0e),this[_0x4a2540(0x13f)][_0x4a2540(0x148)](_0x4a2540(0x158))['to'](this,_0x4a2540(0x14e)),this[_0x4a2540(0x13e)](this[_0x4a2540(0x13f)][_0x4a2540(0x151)],_0x4a2540(0x147),()=>{const _0x54f620=_0x4a2540;for(const _0x423807 of this[_0x54f620(0x13f)][_0x54f620(0x151)])_0x423807[_0x54f620(0x157)]='s';this[_0x54f620(0x13f)][_0x54f620(0x151)][_0x54f620(0x143)]&&(this[_0x54f620(0x13f)][_0x54f620(0x151)][_0x54f620(0x143)][_0x54f620(0x157)]='se');}),this[_0x4a2540(0x144)]({'tag':_0x4a2540(0x14f),'attributes':{'class':['ck',_0x4a2540(0x155),_0x4a2540(0x156),_0x4a2540(0x14c),_0x443e0f['if'](_0x4a2540(0x14e),_0x4a2540(0x14a))]},'children':[this[_0x4a2540(0x13f)]]});}}function _0x62f4(){const _0x564aa5=['listenTo','inlineListView','locale','set','13990NBTLCV','first','setTemplate','908ZLCSGy','5183724jizjLJ','change','bind','10161yKWuak','ck-presence-list--collapsed','3882963LEkNmK','ck-rounded-corners','bindTemplate','isCollapsed','div','1423344HpQITI','items','4213086ceBais','48628YMrKCI','counterView','ck-presence-list','ck-reset','tooltipPosition','hasPopup','13928voKgxD'];_0x62f4=function(){return _0x564aa5;};return _0x62f4();}
|
package/src/presencelist.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x592754=_0x6645;(function(_0x393296,_0x16223d){var _0x5614d6=_0x6645,_0xa2758d=_0x393296();while(!![]){try{var _0x2f1ef1=parseInt(_0x5614d6(0xd1))/0x1*(-parseInt(_0x5614d6(0xd2))/0x2)+parseInt(_0x5614d6(0xce))/0x3*(-parseInt(_0x5614d6(0xd6))/0x4)+-parseInt(_0x5614d6(0xd4))/0x5+parseInt(_0x5614d6(0xd8))/0x6+parseInt(_0x5614d6(0xcd))/0x7+parseInt(_0x5614d6(0xda))/0x8*(-parseInt(_0x5614d6(0xd0))/0x9)+parseInt(_0x5614d6(0xdb))/0xa;if(_0x2f1ef1===_0x16223d)break;else _0xa2758d['push'](_0xa2758d['shift']());}catch(_0x89609b){_0xa2758d['push'](_0xa2758d['shift']());}}}(_0x49bb,0xa31d5));function _0x6645(_0x32213e,_0x1f10f1){var _0x49bbd4=_0x49bb();return _0x6645=function(_0x66454,_0x4218a9){_0x66454=_0x66454-0xcd;var _0x2aa320=_0x49bbd4[_0x66454];return _0x2aa320;},_0x6645(_0x32213e,_0x1f10f1);}import{ContextPlugin as _0x507bb2}from'ckeditor5/src/core.js';import{Sessions as _0x278544}from'./realtimecollaborativeediting/sessions.js';import{PresenceListUI as _0x316bb0}from'./presencelist/presencelistui.js';export class PresenceList extends _0x507bb2{static get[_0x592754(0xcf)](){return[_0x278544,_0x316bb0];}static get[_0x592754(0xd9)](){var _0x425684=_0x592754;return _0x425684(0xd7);}static get[_0x592754(0xd3)](){return!0x0;}static get[_0x592754(0xd5)](){return!0x0;}}function _0x49bb(){var _0x2475cb=['isPremiumPlugin','121164KWSRao','PresenceList','3846186KqJDcz','pluginName','24UFsRbE','5587390PkDAJU','8225959NRsTnN','93kDbpRt','requires','80469mcLlAS','169004HhqSmJ','6ihYGSD','isOfficialPlugin','1169670ahclhK'];_0x49bb=function(){return _0x2475cb;};return _0x49bb();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x17cb90)());[_0x253042(0x187)];static get[_0x253042(0x1a6)](){const _0x5d0074=_0x253042;return[_0x489c5b,_0x5d0074(0x1bd),_0x5b5a0b,_0x434c12];}static get[_0x253042(0x193)](){const _0x412a93=_0x253042;return _0x412a93(0x179);}static get[_0x253042(0x1bc)](){return!0x0;}static get[_0x253042(0x1b9)](){return!0x0;}constructor(_0x3ff6d5){const _0x1b61a3=_0x253042;super(_0x3ff6d5),this[_0x1b61a3(0x187)]=new Map();}async[_0x253042(0x18c)](){const _0x2ff66a=_0x253042,_0x97adee=this[_0x2ff66a(0x170)],_0x518c4b=_0x97adee[_0x2ff66a(0x16d)][_0x2ff66a(0x1b0)](_0x2ff66a(0x1bd));if(_0x97adee[_0x2ff66a(0x16d)][_0x2ff66a(0x1b0)](_0x489c5b)[_0x2ff66a(0x1bf)](this),_0x518c4b[_0x2ff66a(0x1b5)]={'addCommentThread':async({channelId:_0x21778a,threadId:_0x46ba53,comments:_0x2b7154,resolvedAt:_0x30224a,resolvedBy:_0xbbd2fd,context:_0x3017c5,attributes:_0x4fbda6})=>{const _0x2107b0=_0x2ff66a,_0x5057d5=await this[_0x2107b0(0x1aa)](_0x21778a)[_0x2107b0(0x171)]({'commentThreadId':_0x46ba53,'comments':_0x2b7154[_0x2107b0(0x197)](_0x1c8911=>function(_0x273a50,_0x470a8f,_0x148c71){const _0x37962c=_0x2107b0;return{'commentThreadId':_0x148c71,'commentId':_0x273a50[_0x37962c(0x1b8)],'userId':_0x273a50[_0x37962c(0x195)],'content':_0x273a50[_0x37962c(0x163)],'documentId':_0x470a8f,'createdAt':_0x273a50[_0x37962c(0x19d)],'attributes':_0x273a50[_0x37962c(0x1be)]||{}};}(_0x1c8911,_0x21778a,_0x46ba53)),'resolvedAt':_0x30224a,'resolvedBy':_0xbbd2fd,'context':_0x3017c5,'attributes':_0x4fbda6})[_0x2107b0(0x17b)](A);return{'threadId':_0x5057d5[_0x2107b0(0x1a5)],'comments':_0x5057d5[_0x2107b0(0x184)]};},'getCommentThread':async({channelId:_0x3e78fe,threadId:_0x28513f})=>{const _0x4b38f2=_0x2ff66a,_0x1dc108=await this[_0x4b38f2(0x1aa)](_0x3e78fe)[_0x4b38f2(0x162)](_0x28513f)[_0x4b38f2(0x17b)](A);return _0x1dc108[_0x4b38f2(0x174)]?null:(await this[_0x4b38f2(0x16b)]([_0x1dc108]),{'threadId':_0x1dc108[_0x4b38f2(0x1a5)],'comments':_0x1dc108[_0x4b38f2(0x184)][_0x4b38f2(0x197)](p),'context':_0x1dc108[_0x4b38f2(0x170)],'resolvedAt':_0x1dc108[_0x4b38f2(0x166)],'resolvedBy':_0x1dc108[_0x4b38f2(0x16f)],'attributes':_0x1dc108[_0x4b38f2(0x1be)]||{}});},'updateCommentThread':async({channelId:_0x1640ae,threadId:_0x530c17,context:_0x1b6d69,unlinkedAt:_0x390b6f,attributes:_0x1f698e})=>this[_0x2ff66a(0x1aa)](_0x1640ae)[_0x2ff66a(0x19f)]({'commentThreadId':_0x530c17,'context':_0x1b6d69,'attributes':_0x1f698e,'unlinkedAt':_0x390b6f})[_0x2ff66a(0x17b)](v)[_0x2ff66a(0x17b)](A),'resolveCommentThread':async({channelId:_0x39eee1,threadId:_0x1c9797})=>{const _0x2e390a=_0x2ff66a,_0x4d0f59=await this[_0x2e390a(0x1aa)](_0x39eee1)[_0x2e390a(0x189)](_0x1c9797)[_0x2e390a(0x17b)](v)[_0x2e390a(0x17b)](A);return{'threadId':_0x4d0f59[_0x2e390a(0x1a5)],'resolvedAt':_0x4d0f59[_0x2e390a(0x166)],'resolvedBy':_0x4d0f59[_0x2e390a(0x16f)]};},'reopenCommentThread':async({channelId:_0x33472c,threadId:_0x15ad71})=>this[_0x2ff66a(0x1aa)](_0x33472c)[_0x2ff66a(0x1ad)](_0x15ad71)[_0x2ff66a(0x17b)](v)[_0x2ff66a(0x17b)](A),'removeCommentThread':({channelId:_0x223af8,threadId:_0x3c81b8})=>this[_0x2ff66a(0x1aa)](_0x223af8)[_0x2ff66a(0x167)](_0x3c81b8)[_0x2ff66a(0x17b)](v)[_0x2ff66a(0x17b)](A),'addComment':({channelId:_0x516dc4,threadId:_0x284309,commentId:_0x14d9d6,content:_0x33dd10,attributes:_0x2dcaf5})=>this[_0x2ff66a(0x1aa)](_0x516dc4)[_0x2ff66a(0x185)](_0x284309,_0x14d9d6,_0x33dd10,_0x2dcaf5)[_0x2ff66a(0x17b)](A),'updateComment':({channelId:_0xb49b25,threadId:_0x506214,commentId:_0x5e6bd8,content:_0x2c9a72,attributes:_0x336108})=>this[_0x2ff66a(0x1aa)](_0xb49b25)[_0x2ff66a(0x1af)](_0x506214,_0x5e6bd8,_0x2c9a72,_0x336108)[_0x2ff66a(0x17b)](v)[_0x2ff66a(0x17b)](A),'removeComment':({channelId:_0x4e6344,threadId:_0x48339d,commentId:_0x5bfb59})=>this[_0x2ff66a(0x1aa)](_0x4e6344)[_0x2ff66a(0x19b)](_0x48339d,_0x5bfb59)[_0x2ff66a(0x17b)](v)[_0x2ff66a(0x17b)](A)},_0x97adee instanceof _0x54af93){const _0x240ec0=_0x97adee[_0x2ff66a(0x164)][_0x2ff66a(0x1b0)](_0x2ff66a(0x1b3)),_0x25ebc7=_0x97adee[_0x2ff66a(0x16d)][_0x2ff66a(0x1b0)](_0x5b5a0b);await this[_0x2ff66a(0x186)](_0x240ec0);const _0x4eafb4=await this[_0x2ff66a(0x187)][_0x2ff66a(0x1b0)](_0x240ec0)[_0x2ff66a(0x15c)]();this[_0x2ff66a(0x15a)](_0x25ebc7,_0x2ff66a(0x1b7)+_0x240ec0,(_0x22dc90,{session:_0x1f1522})=>{const _0x4a0a06=_0x2ff66a;_0x1f1522['id']===_0x25ebc7[_0x4a0a06(0x198)]&&(_0x22dc90[_0x4a0a06(0x1a1)](),this[_0x4a0a06(0x170)][_0x4a0a06(0x16d)][_0x4a0a06(0x1b0)](_0x4a0a06(0x16c))[_0x4a0a06(0x1ba)](_0x1f1522[_0x4a0a06(0x1a2)],_0x240ec0));}),_0x25ebc7[_0x2ff66a(0x1a7)](_0x240ec0,_0x4eafb4);}}async[_0x253042(0x186)](_0x578925){const _0x57cad2=_0x253042;if(this[_0x57cad2(0x187)][_0x57cad2(0x17e)](_0x578925))throw new _0xc48a6f(_0x57cad2(0x159),null,{'channelId':_0x578925});const _0x4044c5=this[_0x57cad2(0x170)][_0x57cad2(0x16d)][_0x57cad2(0x1b0)](_0x57cad2(0x1bd)),_0xd18a04=new s[(_0x57cad2(0x191))](_0x578925);this[_0x57cad2(0x187)][_0x57cad2(0x178)](_0x578925,_0xd18a04),this[_0x57cad2(0x15a)](_0xd18a04,_0x57cad2(0x18e),(_0x1a1482,_0x9dd339)=>{const _0x53a41f=_0x57cad2,{commentThreadId:_0x4465eb,documentId:_0x457558,context:_0x17d42e,attributes:_0x144b13,resolvedAt:_0x54f3aa,resolvedBy:_0x3ed9bc,comments:_0x57ab45}=_0x9dd339;_0x4044c5[_0x53a41f(0x162)](_0x4465eb)||_0x4044c5[_0x53a41f(0x171)]({'threadId':_0x4465eb,'channelId':_0x457558,'comments':_0x57ab45?_0x57ab45[_0x53a41f(0x197)](p):[],'context':_0x17d42e,'attributes':_0x144b13,'resolvedAt':_0x54f3aa,'resolvedBy':_0x3ed9bc,'isFromAdapter':!0x0});}),this[_0x57cad2(0x15a)](_0xd18a04,_0x57cad2(0x18a),(_0x4a0174,{commentThreadId:_0x24dd52,documentId:_0x7b5157,context:_0x3c5072,unlinkedAt:_0x3e77b9,attributes:_0x4b2da6})=>{const _0x38e494=_0x57cad2;_0x4044c5[_0x38e494(0x162)](_0x24dd52)&&_0x4044c5[_0x38e494(0x19f)]({'threadId':_0x24dd52,'channelId':_0x7b5157,'context':_0x3c5072,'unlinkedAt':_0x3e77b9,'attributes':_0x4b2da6,'isFromAdapter':!0x0});}),this[_0x57cad2(0x15a)](_0xd18a04,_0x57cad2(0x169),(_0x1eacbd,{commentThreadId:_0x48afd8,resolvedBy:_0x2b24cf,resolvedAt:_0x22a247})=>{const _0x16a294=_0x57cad2,_0x325a40=_0x4044c5[_0x16a294(0x162)](_0x48afd8);_0x325a40&&_0x325a40[_0x16a294(0x194)]({'resolvedBy':_0x2b24cf,'resolvedAt':_0x22a247,'isFromAdapter':!0x0});}),this[_0x57cad2(0x15a)](_0xd18a04,_0x57cad2(0x16e),(_0x511723,{commentThreadId:_0x4edc09})=>{const _0x4e4bfc=_0x57cad2,_0x5333a9=_0x4044c5[_0x4e4bfc(0x162)](_0x4edc09);_0x5333a9&&_0x5333a9[_0x4e4bfc(0x15f)]({'isFromAdapter':!0x0});}),this[_0x57cad2(0x15a)](_0xd18a04,_0x57cad2(0x17a),(_0x21bff7,{commentThreadId:_0x63e87c})=>{const _0x1f6100=_0x57cad2,_0x12423c=_0x4044c5[_0x1f6100(0x162)](_0x63e87c);_0x12423c&&_0x12423c[_0x1f6100(0x17d)]({'isFromAdapter':!0x0});}),this[_0x57cad2(0x15a)](_0xd18a04,_0x57cad2(0x172),(_0x594600,_0x1d3fa6)=>{const _0x362def=_0x57cad2,_0x78f69b=_0x1d3fa6[_0x362def(0x1a5)],_0x5c3be4=_0x4044c5[_0x362def(0x162)](_0x78f69b);_0x5c3be4&&_0x5c3be4[_0x362def(0x185)]({...p(_0x1d3fa6),'isFromAdapter':!0x0});}),this[_0x57cad2(0x15a)](_0xd18a04,_0x57cad2(0x1b1),(_0x36fb79,{commentThreadId:_0x56ad0e,commentId:_0x5350c5,content:_0x4d9fea,attributes:_0x4f528a})=>{const _0x5f390a=_0x57cad2,_0x399483=_0x4044c5[_0x5f390a(0x162)](_0x56ad0e);if(_0x399483){const _0x24c278=_0x399483[_0x5f390a(0x188)](_0x5350c5);_0x24c278&&_0x24c278[_0x5f390a(0x181)]({'content':_0x4d9fea,'attributes':_0x4f528a,'isFromAdapter':!0x0});}}),this[_0x57cad2(0x15a)](_0xd18a04,_0x57cad2(0x1ae),(_0x5acc95,{commentThreadId:_0x4eedf6,commentId:_0x115404})=>{const _0x505ee3=_0x57cad2,_0x3b4a47=_0x4044c5[_0x505ee3(0x162)](_0x4eedf6);if(_0x3b4a47){const _0x1f5c90=_0x3b4a47[_0x505ee3(0x188)](_0x115404);_0x1f5c90&&_0x1f5c90[_0x505ee3(0x17d)]({'isFromAdapter':!0x0});}}),await this[_0x57cad2(0x1b4)](_0x578925);}[_0x253042(0x1bb)](){const _0x41981e=_0x253042;if(this[_0x41981e(0x170)]instanceof _0x54af93){const _0x541084=this[_0x41981e(0x170)][_0x41981e(0x164)][_0x41981e(0x1b0)](_0x41981e(0x1b3));this[_0x41981e(0x182)](_0x541084);}}[_0x253042(0x182)](_0x1f163f){const _0x6488c5=_0x253042;if(!this[_0x6488c5(0x187)][_0x6488c5(0x17e)](_0x1f163f))throw new _0xc48a6f(_0x6488c5(0x196),null,{'channelId':_0x1f163f});this[_0x6488c5(0x1aa)](_0x1f163f)[_0x6488c5(0x165)](),this[_0x6488c5(0x187)][_0x6488c5(0x1ac)](_0x1f163f);}async[_0x253042(0x177)](){const _0x5db5c0=_0x253042;for(const _0x5bdebf of this[_0x5db5c0(0x187)][_0x5db5c0(0x199)]())await this[_0x5db5c0(0x1b4)](_0x5bdebf);if(this[_0x5db5c0(0x170)]instanceof _0x54af93){const _0x3946ae=this[_0x5db5c0(0x170)][_0x5db5c0(0x164)][_0x5db5c0(0x1b0)](_0x5db5c0(0x1b3)),_0x29d442=this[_0x5db5c0(0x170)][_0x5db5c0(0x16d)][_0x5db5c0(0x1b0)](_0x5b5a0b);_0x29d442[_0x5db5c0(0x161)](_0x3946ae);const _0x5d30c2=await this[_0x5db5c0(0x187)][_0x5db5c0(0x1b0)](_0x3946ae)[_0x5db5c0(0x15c)]();_0x29d442[_0x5db5c0(0x1a7)](_0x3946ae,_0x5d30c2);}}async[_0x253042(0x1b4)](_0x4b39b7){const _0x1160da=_0x253042,{connection:_0x2cd781}=this[_0x1160da(0x170)][_0x1160da(0x16d)][_0x1160da(0x1b0)](_0x489c5b),_0x320e12=this[_0x1160da(0x170)][_0x1160da(0x16d)][_0x1160da(0x1b0)](_0x1160da(0x1bd)),_0x19cc5e=this[_0x1160da(0x187)][_0x1160da(0x1b0)](_0x4b39b7),_0x293509=await _0x19cc5e[_0x1160da(0x168)](_0x2cd781);await this[_0x1160da(0x16b)](_0x293509);const _0x3841e9=new Set(Array[_0x1160da(0x18f)](_0x320e12[_0x1160da(0x17c)]({'channelId':_0x4b39b7}),_0x2d4a8f=>_0x2d4a8f['id']));for(const _0x5e0ad4 of _0x293509)_0x5e0ad4[_0x1160da(0x174)]||_0x3841e9[_0x1160da(0x1ac)](_0x5e0ad4[_0x1160da(0x1a5)]);for(const _0x2af326 of _0x3841e9)_0x320e12[_0x1160da(0x162)](_0x2af326)[_0x1160da(0x17d)]({'isFromAdapter':!0x0});for(const _0x1f20d9 of _0x293509){let _0x33b8e5=_0x320e12[_0x1160da(0x162)](_0x1f20d9[_0x1160da(0x1a5)]);const {commentThreadId:_0x944204,context:_0x4214aa,attributes:_0x12b730,resolvedBy:_0x41a63b,resolvedAt:_0x393406,unlinkedAt:_0x26696a,deletedAt:_0x842da0}=_0x1f20d9;if(_0x842da0)continue;_0x33b8e5||(_0x33b8e5=_0x320e12[_0x1160da(0x171)]({'channelId':_0x4b39b7,'threadId':_0x944204,'context':_0x4214aa,'attributes':_0x12b730||{},'resolvedBy':_0x41a63b,'resolvedAt':_0x393406,'unlinkedAt':_0x26696a,'isFromAdapter':!0x0}));const _0x4ad1d8=new Set(Array[_0x1160da(0x18f)](_0x33b8e5[_0x1160da(0x184)],_0x583234=>_0x583234['id']));for(const _0x292968 of _0x1f20d9[_0x1160da(0x184)])_0x4ad1d8[_0x1160da(0x1ac)](_0x292968[_0x1160da(0x1b8)]);for(const _0x1a2030 of _0x4ad1d8)_0x33b8e5[_0x1160da(0x188)](_0x1a2030)[_0x1160da(0x17d)]({'isFromAdapter':!0x0});for(const _0x16b84c of _0x1f20d9[_0x1160da(0x184)]){const _0x8dccda=_0x33b8e5[_0x1160da(0x188)](_0x16b84c[_0x1160da(0x1b8)]);_0x8dccda?_0x8dccda[_0x1160da(0x163)]!==_0x16b84c[_0x1160da(0x163)]&&_0x8dccda[_0x1160da(0x181)]({'content':_0x16b84c[_0x1160da(0x163)],'isFromAdapter':!0x0}):_0x33b8e5[_0x1160da(0x185)](Object[_0x1160da(0x1b6)](p(_0x16b84c),{'isFromAdapter':!0x0}));}}}[_0x253042(0x1aa)](_0xf0a474){const _0x445fd3=_0x253042;if(!this[_0x445fd3(0x187)][_0x445fd3(0x17e)](_0xf0a474))throw new _0xc48a6f(_0x445fd3(0x17f),null,{'channelId':_0xf0a474});return this[_0x445fd3(0x187)][_0x445fd3(0x1b0)](_0xf0a474);}async[_0x253042(0x16b)](_0x1825f3){const _0x4d8a49=_0x253042,_0x5b5944=this[_0x4d8a49(0x170)][_0x4d8a49(0x16d)][_0x4d8a49(0x1b0)](_0x434c12),{connection:_0xcd880c}=this[_0x4d8a49(0x170)][_0x4d8a49(0x16d)][_0x4d8a49(0x1b0)](_0x489c5b),_0xe47080=new Set();for(const {resolvedBy:_0x5488e0,comments:_0x1179e7}of _0x1825f3){_0x5488e0&&!_0x5b5944[_0x4d8a49(0x175)](_0x5488e0)&&_0xe47080[_0x4d8a49(0x192)](_0x5488e0);for(const {userId:_0xf070ab}of _0x1179e7)_0x5b5944[_0x4d8a49(0x175)](_0xf070ab)||_0xe47080[_0x4d8a49(0x192)](_0xf070ab);}if(0x0===_0xe47080[_0x4d8a49(0x183)])return;const _0x5f1346=await _0x55d0b0[_0x4d8a49(0x1a8)](_0xcd880c,Array[_0x4d8a49(0x18f)](_0xe47080));for(const _0x59bf62 of _0x5f1346)_0x5b5944[_0x4d8a49(0x175)](_0x59bf62['id'])||_0x5b5944[_0x4d8a49(0x15d)](_0x59bf62);}}export{s as CloudServicesCommentsAdapter};async function v(_0x5922e3){const _0x1e1a34=_0x253042;if(_0x1e1a34(0x190)!==_0x5922e3[_0x1e1a34(0x1ab)])throw _0x5922e3;}function _0x5d7a(){const _0xf470c4=['cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','reconnect','set','CloudServicesCommentsAdapter','commentThreadRemoved','catch','getCommentThreads','remove','has','cloudservicescommentsadapter-service-not-exist','cloud-services-internal-error:\x20Request\x20timeout.','update','_terminateService','size','comments','addComment','_setUpService','_services','getComment','resolveCommentThread','commentThreadUpdated','message','init','432930qQZZMU','commentThreadAdded','from','404','CommentsService','add','pluginName','resolve','authorId','cloudservicescommentsadapter-disconnect-not-exist','map','mySessionId','keys','254364cDsQTN','removeComment','userId','createdAt','189202LNtKaH','updateCommentThread','9792QWwgzH','off','permissions','385bmaiDP','startsWith','commentThreadId','requires','register','getMany','1128757urHcJy','_getService','code','delete','reopenCommentThread','commentRemoved','updateComment','get','commentUpdated','124ySbVOx','collaboration.channelId','_connectService','adapter','assign','sessionAdd:','commentId','isPremiumPlugin','setPermissions','destroy','isOfficialPlugin','CommentsRepository','attributes','addToReconnectionStack','cloudservicescommentsadapter-connect-already-connected','listenTo','7255NQZeVR','getConnectedSessions','addUser','1734JiXagA','reopen','7011mKAvsm','unregister','getCommentThread','content','config','disconnect','resolvedAt','removeCommentThread','connect','commentThreadResolved','2736pOnGVD','_fetchMissingUsersForThreads','Permissions','plugins','commentThreadReopened','resolvedBy','context','addCommentThread','commentAdded','cloud-services-internal-error:\x20Not\x20connected.','deletedAt','getUser'];_0x5d7a=function(){return _0xf470c4;};return _0x5d7a();}function A(_0x16677d){const _0x57e445=_0x253042;if((_0x2e9004=_0x16677d)[_0x57e445(0x18b)][_0x57e445(0x1a4)](_0x57e445(0x176))||_0x2e9004[_0x57e445(0x18b)][_0x57e445(0x1a4)](_0x57e445(0x173))||_0x2e9004[_0x57e445(0x18b)][_0x57e445(0x1a4)](_0x57e445(0x180)))return new Promise(()=>{});var _0x2e9004;throw _0x16677d;}function p(_0x165119){const _0x1c32dc=_0x253042;return{'threadId':_0x165119[_0x1c32dc(0x1a5)],'commentId':_0x165119[_0x1c32dc(0x1b8)],'content':_0x165119[_0x1c32dc(0x163)],'createdAt':_0x165119[_0x1c32dc(0x19d)],'authorId':_0x165119[_0x1c32dc(0x19c)],'attributes':_0x165119[_0x1c32dc(0x1be)]||{}};}
|
|
23
|
+
const _0x5978ba=_0xc745;(function(_0x5e735e,_0x365498){const _0x52c8db=_0xc745,_0x3d679c=_0x5e735e();while(!![]){try{const _0x1ec092=-parseInt(_0x52c8db(0x160))/0x1+-parseInt(_0x52c8db(0x11a))/0x2+-parseInt(_0x52c8db(0x118))/0x3+parseInt(_0x52c8db(0x13f))/0x4+parseInt(_0x52c8db(0x14f))/0x5+-parseInt(_0x52c8db(0x15f))/0x6+-parseInt(_0x52c8db(0x148))/0x7*(-parseInt(_0x52c8db(0x141))/0x8);if(_0x1ec092===_0x365498)break;else _0x3d679c['push'](_0x3d679c['shift']());}catch(_0x15a27d){_0x3d679c['push'](_0x3d679c['shift']());}}}(_0x4f7f,0xaef55));import{Context as _0xd9e416,ContextPlugin as _0x587ca1}from'ckeditor5/src/core.js';import{CKEditorError as _0x3e6126}from'ckeditor5/src/utils.js';import{Users as _0x38b31f}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x50a5d8,User as _0x1a216e}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0xa2343e}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x1ec7be}from'../realtimecollaborativeediting/sessions.js';class s extends _0x587ca1{static [_0x5978ba(0x135)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x50a5d8)());[_0x5978ba(0x14e)];static get[_0x5978ba(0x108)](){const _0x1cd81b=_0x5978ba;return[_0xa2343e,_0x1cd81b(0x10c),_0x1ec7be,_0x38b31f];}static get[_0x5978ba(0x12c)](){const _0x461491=_0x5978ba;return _0x461491(0x14b);}static get[_0x5978ba(0x137)](){return!0x0;}static get[_0x5978ba(0x129)](){return!0x0;}constructor(_0x470b43){const _0x2c569f=_0x5978ba;super(_0x470b43),this[_0x2c569f(0x14e)]=new Map();}async[_0x5978ba(0x11e)](){const _0x2392d7=_0x5978ba,_0x2c19bd=this[_0x2392d7(0x125)],_0x14da2a=_0x2c19bd[_0x2392d7(0x128)][_0x2392d7(0x100)](_0x2392d7(0x10c));if(_0x2c19bd[_0x2392d7(0x128)][_0x2392d7(0x100)](_0xa2343e)[_0x2392d7(0x11b)](this),_0x14da2a[_0x2392d7(0x110)]={'addCommentThread':async({channelId:_0x5caf1d,threadId:_0x4ff80a,comments:_0x25098f,resolvedAt:_0x4aa55b,resolvedBy:_0x14c9e1,context:_0x1370d2,attributes:_0x47699e})=>{const _0x23b13c=_0x2392d7,_0x476e41=await this[_0x23b13c(0x133)](_0x5caf1d)[_0x23b13c(0x162)]({'commentThreadId':_0x4ff80a,'comments':_0x25098f[_0x23b13c(0x151)](_0x513448=>function(_0x554639,_0x4d9353,_0x3bad9f){const _0x186a2c=_0x23b13c;return{'commentThreadId':_0x3bad9f,'commentId':_0x554639[_0x186a2c(0x112)],'userId':_0x554639[_0x186a2c(0x102)],'content':_0x554639[_0x186a2c(0x113)],'documentId':_0x4d9353,'createdAt':_0x554639[_0x186a2c(0x105)],'attributes':_0x554639[_0x186a2c(0x117)]||{}};}(_0x513448,_0x5caf1d,_0x4ff80a)),'resolvedAt':_0x4aa55b,'resolvedBy':_0x14c9e1,'context':_0x1370d2,'attributes':_0x47699e})[_0x23b13c(0x126)](k);return{'threadId':_0x476e41[_0x23b13c(0x106)],'comments':_0x476e41[_0x23b13c(0x13e)]};},'getCommentThread':async({channelId:_0x4b2ad9,threadId:_0x2cb33e})=>{const _0x59e738=_0x2392d7,_0x25733e=await this[_0x59e738(0x133)](_0x4b2ad9)[_0x59e738(0x120)](_0x2cb33e)[_0x59e738(0x126)](k);return _0x25733e[_0x59e738(0x115)]?null:(await this[_0x59e738(0x138)]([_0x25733e]),{'threadId':_0x25733e[_0x59e738(0x106)],'comments':_0x25733e[_0x59e738(0x13e)][_0x59e738(0x151)](B),'context':_0x25733e[_0x59e738(0x125)],'resolvedAt':_0x25733e[_0x59e738(0x109)],'resolvedBy':_0x25733e[_0x59e738(0x14c)],'attributes':_0x25733e[_0x59e738(0x117)]||{}});},'updateCommentThread':async({channelId:_0x2fcfd7,threadId:_0x39e43c,context:_0x2a828d,unlinkedAt:_0x59c339,attributes:_0x405d5d})=>this[_0x2392d7(0x133)](_0x2fcfd7)[_0x2392d7(0x145)]({'commentThreadId':_0x39e43c,'context':_0x2a828d,'attributes':_0x405d5d,'unlinkedAt':_0x59c339})[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'resolveCommentThread':async({channelId:_0x424c5c,threadId:_0x8ff56b})=>{const _0x3e8647=_0x2392d7,_0x1978b1=await this[_0x3e8647(0x133)](_0x424c5c)[_0x3e8647(0x149)](_0x8ff56b)[_0x3e8647(0x126)](F)[_0x3e8647(0x126)](k);return{'threadId':_0x1978b1[_0x3e8647(0x106)],'resolvedAt':_0x1978b1[_0x3e8647(0x109)],'resolvedBy':_0x1978b1[_0x3e8647(0x14c)]};},'reopenCommentThread':async({channelId:_0x3e9a3d,threadId:_0x363db7})=>this[_0x2392d7(0x133)](_0x3e9a3d)[_0x2392d7(0x142)](_0x363db7)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'removeCommentThread':({channelId:_0x493d86,threadId:_0x392df8})=>this[_0x2392d7(0x133)](_0x493d86)[_0x2392d7(0x127)](_0x392df8)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'addComment':({channelId:_0xb4b11c,threadId:_0x14c3b7,commentId:_0x5c62ef,content:_0x5b667f,attributes:_0xc67d8})=>this[_0x2392d7(0x133)](_0xb4b11c)[_0x2392d7(0x12a)](_0x14c3b7,_0x5c62ef,_0x5b667f,_0xc67d8)[_0x2392d7(0x126)](k),'updateComment':({channelId:_0x2da85f,threadId:_0x46116c,commentId:_0x26df21,content:_0x48d175,attributes:_0x38c2d6})=>this[_0x2392d7(0x133)](_0x2da85f)[_0x2392d7(0x121)](_0x46116c,_0x26df21,_0x48d175,_0x38c2d6)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k),'removeComment':({channelId:_0xf1b676,threadId:_0xd22aae,commentId:_0x4fbe4a})=>this[_0x2392d7(0x133)](_0xf1b676)[_0x2392d7(0x157)](_0xd22aae,_0x4fbe4a)[_0x2392d7(0x126)](F)[_0x2392d7(0x126)](k)},_0x2c19bd instanceof _0xd9e416){const _0x2aa8c8=_0x2c19bd[_0x2392d7(0x154)][_0x2392d7(0x100)](_0x2392d7(0x13b)),_0x60928=_0x2c19bd[_0x2392d7(0x128)][_0x2392d7(0x100)](_0x1ec7be);await this[_0x2392d7(0x14d)](_0x2aa8c8);const _0x381b9f=await this[_0x2392d7(0x14e)][_0x2392d7(0x100)](_0x2aa8c8)[_0x2392d7(0x143)]();this[_0x2392d7(0x10b)](_0x60928,_0x2392d7(0x12b)+_0x2aa8c8,(_0x13cefc,{session:_0x5bdac4})=>{const _0x32a407=_0x2392d7;_0x5bdac4['id']===_0x60928[_0x32a407(0x158)]&&(_0x13cefc[_0x32a407(0x15c)](),this[_0x32a407(0x125)][_0x32a407(0x128)][_0x32a407(0x100)](_0x32a407(0x10a))[_0x32a407(0x136)](_0x5bdac4[_0x32a407(0x13c)],_0x2aa8c8));}),_0x60928[_0x2392d7(0x139)](_0x2aa8c8,_0x381b9f);}}async[_0x5978ba(0x14d)](_0x547369){const _0x5619db=_0x5978ba;if(this[_0x5619db(0x14e)][_0x5619db(0x12e)](_0x547369))throw new _0x3e6126(_0x5619db(0x152),null,{'channelId':_0x547369});const _0x54ed9b=this[_0x5619db(0x125)][_0x5619db(0x128)][_0x5619db(0x100)](_0x5619db(0x10c)),_0x28ca3b=new s[(_0x5619db(0x135))](_0x547369);this[_0x5619db(0x14e)][_0x5619db(0x140)](_0x547369,_0x28ca3b),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x130),(_0x1cc209,_0x5d6eda)=>{const _0x3dbcaf=_0x5619db,{commentThreadId:_0x5d7738,documentId:_0x554b7f,context:_0x116d37,attributes:_0x577385,resolvedAt:_0x472898,resolvedBy:_0xf6c788,comments:_0x71c8f6}=_0x5d6eda;_0x54ed9b[_0x3dbcaf(0x120)](_0x5d7738)||_0x54ed9b[_0x3dbcaf(0x162)]({'threadId':_0x5d7738,'channelId':_0x554b7f,'comments':_0x71c8f6?_0x71c8f6[_0x3dbcaf(0x151)](B):[],'context':_0x116d37,'attributes':_0x577385,'resolvedAt':_0x472898,'resolvedBy':_0xf6c788,'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x123),(_0x48dba1,{commentThreadId:_0x377a71,documentId:_0x40235e,context:_0x4390aa,unlinkedAt:_0x3d248d,attributes:_0x13b4ab})=>{const _0x3dab66=_0x5619db;_0x54ed9b[_0x3dab66(0x120)](_0x377a71)&&_0x54ed9b[_0x3dab66(0x145)]({'threadId':_0x377a71,'channelId':_0x40235e,'context':_0x4390aa,'unlinkedAt':_0x3d248d,'attributes':_0x13b4ab,'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x13d),(_0x2253ba,{commentThreadId:_0x4f1ab8,resolvedBy:_0xd55283,resolvedAt:_0x583f96})=>{const _0x15342c=_0x5619db,_0x3d360b=_0x54ed9b[_0x15342c(0x120)](_0x4f1ab8);_0x3d360b&&_0x3d360b[_0x15342c(0x101)]({'resolvedBy':_0xd55283,'resolvedAt':_0x583f96,'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x15e),(_0x519c54,{commentThreadId:_0x27c08f})=>{const _0x2cb0f1=_0x5619db,_0x4832a2=_0x54ed9b[_0x2cb0f1(0x120)](_0x27c08f);_0x4832a2&&_0x4832a2[_0x2cb0f1(0x161)]({'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x13a),(_0x3febc6,{commentThreadId:_0x264255})=>{const _0x29c220=_0x5619db,_0x47bd97=_0x54ed9b[_0x29c220(0x120)](_0x264255);_0x47bd97&&_0x47bd97[_0x29c220(0x119)]({'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x11f),(_0xddab49,_0x257507)=>{const _0x36d65b=_0x5619db,_0xa21499=_0x257507[_0x36d65b(0x106)],_0xfd79a9=_0x54ed9b[_0x36d65b(0x120)](_0xa21499);_0xfd79a9&&_0xfd79a9[_0x36d65b(0x12a)]({...B(_0x257507),'isFromAdapter':!0x0});}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x107),(_0x20b365,{commentThreadId:_0x28ef75,commentId:_0x535a8b,content:_0x36603f,attributes:_0x1ffc9c})=>{const _0x1b6049=_0x5619db,_0x26bda0=_0x54ed9b[_0x1b6049(0x120)](_0x28ef75);if(_0x26bda0){const _0x58f1eb=_0x26bda0[_0x1b6049(0x11c)](_0x535a8b);_0x58f1eb&&_0x58f1eb[_0x1b6049(0x10d)]({'content':_0x36603f,'attributes':_0x1ffc9c,'isFromAdapter':!0x0});}}),this[_0x5619db(0x10b)](_0x28ca3b,_0x5619db(0x111),(_0x417d88,{commentThreadId:_0x50bb07,commentId:_0x539bd5})=>{const _0x114bd6=_0x5619db,_0x41a5d0=_0x54ed9b[_0x114bd6(0x120)](_0x50bb07);if(_0x41a5d0){const _0x39445b=_0x41a5d0[_0x114bd6(0x11c)](_0x539bd5);_0x39445b&&_0x39445b[_0x114bd6(0x119)]({'isFromAdapter':!0x0});}}),await this[_0x5619db(0x14a)](_0x547369);}[_0x5978ba(0x12f)](){const _0x383f32=_0x5978ba;if(this[_0x383f32(0x125)]instanceof _0xd9e416){const _0x51bcf6=this[_0x383f32(0x125)][_0x383f32(0x154)][_0x383f32(0x100)](_0x383f32(0x13b));this[_0x383f32(0x116)](_0x51bcf6);}}[_0x5978ba(0x116)](_0x4ca759){const _0x1ea23f=_0x5978ba;if(!this[_0x1ea23f(0x14e)][_0x1ea23f(0x12e)](_0x4ca759))throw new _0x3e6126(_0x1ea23f(0x132),null,{'channelId':_0x4ca759});this[_0x1ea23f(0x133)](_0x4ca759)[_0x1ea23f(0x156)](),this[_0x1ea23f(0x14e)][_0x1ea23f(0x10e)](_0x4ca759);}async[_0x5978ba(0x150)](){const _0x26bfc9=_0x5978ba;for(const _0x5c69d7 of this[_0x26bfc9(0x14e)][_0x26bfc9(0x159)]())await this[_0x26bfc9(0x14a)](_0x5c69d7);if(this[_0x26bfc9(0x125)]instanceof _0xd9e416){const _0x28bd3a=this[_0x26bfc9(0x125)][_0x26bfc9(0x154)][_0x26bfc9(0x100)](_0x26bfc9(0x13b)),_0x355379=this[_0x26bfc9(0x125)][_0x26bfc9(0x128)][_0x26bfc9(0x100)](_0x1ec7be);_0x355379[_0x26bfc9(0x163)](_0x28bd3a);const _0x329b13=await this[_0x26bfc9(0x14e)][_0x26bfc9(0x100)](_0x28bd3a)[_0x26bfc9(0x143)]();_0x355379[_0x26bfc9(0x139)](_0x28bd3a,_0x329b13);}}async[_0x5978ba(0x14a)](_0x19f991){const _0x4ac3ba=_0x5978ba,{connection:_0x5a38a1}=this[_0x4ac3ba(0x125)][_0x4ac3ba(0x128)][_0x4ac3ba(0x100)](_0xa2343e),_0x3d9664=this[_0x4ac3ba(0x125)][_0x4ac3ba(0x128)][_0x4ac3ba(0x100)](_0x4ac3ba(0x10c)),_0xfb24b=this[_0x4ac3ba(0x14e)][_0x4ac3ba(0x100)](_0x19f991),_0x507c6b=await _0xfb24b[_0x4ac3ba(0x134)](_0x5a38a1);await this[_0x4ac3ba(0x138)](_0x507c6b);const _0x12443e=new Set(Array[_0x4ac3ba(0x144)](_0x3d9664[_0x4ac3ba(0x114)]({'channelId':_0x19f991}),_0x4d821a=>_0x4d821a['id']));for(const _0x428cf0 of _0x507c6b)_0x428cf0[_0x4ac3ba(0x115)]||_0x12443e[_0x4ac3ba(0x10e)](_0x428cf0[_0x4ac3ba(0x106)]);for(const _0x1b4c4d of _0x12443e)_0x3d9664[_0x4ac3ba(0x120)](_0x1b4c4d)[_0x4ac3ba(0x119)]({'isFromAdapter':!0x0});for(const _0x315f52 of _0x507c6b){let _0x5a3250=_0x3d9664[_0x4ac3ba(0x120)](_0x315f52[_0x4ac3ba(0x106)]);const {commentThreadId:_0x18bd1a,context:_0x22d3f2,attributes:_0x377fab,resolvedBy:_0xa395c7,resolvedAt:_0x1ecd43,unlinkedAt:_0x337f02,deletedAt:_0x4351d1}=_0x315f52;if(_0x4351d1)continue;_0x5a3250||(_0x5a3250=_0x3d9664[_0x4ac3ba(0x162)]({'channelId':_0x19f991,'threadId':_0x18bd1a,'context':_0x22d3f2,'attributes':_0x377fab||{},'resolvedBy':_0xa395c7,'resolvedAt':_0x1ecd43,'unlinkedAt':_0x337f02,'isFromAdapter':!0x0}));const _0x3d48b9=new Set(Array[_0x4ac3ba(0x144)](_0x5a3250[_0x4ac3ba(0x13e)],_0x1483ba=>_0x1483ba['id']));for(const _0x1b066f of _0x315f52[_0x4ac3ba(0x13e)])_0x3d48b9[_0x4ac3ba(0x10e)](_0x1b066f[_0x4ac3ba(0x112)]);for(const _0x4844c6 of _0x3d48b9)_0x5a3250[_0x4ac3ba(0x11c)](_0x4844c6)[_0x4ac3ba(0x119)]({'isFromAdapter':!0x0});for(const _0x3573d8 of _0x315f52[_0x4ac3ba(0x13e)]){const _0x183018=_0x5a3250[_0x4ac3ba(0x11c)](_0x3573d8[_0x4ac3ba(0x112)]);_0x183018?_0x183018[_0x4ac3ba(0x113)]!==_0x3573d8[_0x4ac3ba(0x113)]&&_0x183018[_0x4ac3ba(0x10d)]({'content':_0x3573d8[_0x4ac3ba(0x113)],'isFromAdapter':!0x0}):_0x5a3250[_0x4ac3ba(0x12a)](Object[_0x4ac3ba(0x104)](B(_0x3573d8),{'isFromAdapter':!0x0}));}}}[_0x5978ba(0x133)](_0x2a2710){const _0xce857e=_0x5978ba;if(!this[_0xce857e(0x14e)][_0xce857e(0x12e)](_0x2a2710))throw new _0x3e6126(_0xce857e(0x103),null,{'channelId':_0x2a2710});return this[_0xce857e(0x14e)][_0xce857e(0x100)](_0x2a2710);}async[_0x5978ba(0x138)](_0x14abf4){const _0x103538=_0x5978ba,_0x36c52e=this[_0x103538(0x125)][_0x103538(0x128)][_0x103538(0x100)](_0x38b31f),{connection:_0xdf6730}=this[_0x103538(0x125)][_0x103538(0x128)][_0x103538(0x100)](_0xa2343e),_0x143655=new Set();for(const {resolvedBy:_0x13e663,comments:_0x16c997}of _0x14abf4){_0x13e663&&!_0x36c52e[_0x103538(0x11d)](_0x13e663)&&_0x143655[_0x103538(0x122)](_0x13e663);for(const {userId:_0x1950fd}of _0x16c997)_0x36c52e[_0x103538(0x11d)](_0x1950fd)||_0x143655[_0x103538(0x122)](_0x1950fd);}if(0x0===_0x143655[_0x103538(0x12d)])return;const _0x4c2bbe=await _0x1a216e[_0x103538(0x153)](_0xdf6730,Array[_0x103538(0x144)](_0x143655));for(const _0x209a8e of _0x4c2bbe)_0x36c52e[_0x103538(0x11d)](_0x209a8e['id'])||_0x36c52e[_0x103538(0x15b)](_0x209a8e);}}export{s as CloudServicesCommentsAdapter};function _0xc745(_0x3f4574,_0x1f29b0){const _0x4f7f6f=_0x4f7f();return _0xc745=function(_0xc74527,_0x1d26a2){_0xc74527=_0xc74527-0x100;let _0x48f646=_0x4f7f6f[_0xc74527];return _0x48f646;},_0xc745(_0x3f4574,_0x1f29b0);}async function F(_0x9b2f31){const _0x4c9901=_0x5978ba;if(_0x4c9901(0x146)!==_0x9b2f31[_0x4c9901(0x10f)])throw _0x9b2f31;}function _0x4f7f(){const _0x3ae55c=['disconnect','removeComment','mySessionId','keys','cloud-services-internal-error:\x20Not\x20connected.','addUser','off','userId','commentThreadReopened','3568374ztNIMr','536483IginHK','reopen','addCommentThread','unregister','get','resolve','authorId','cloudservicescommentsadapter-service-not-exist','assign','createdAt','commentThreadId','commentUpdated','requires','resolvedAt','Permissions','listenTo','CommentsRepository','update','delete','code','adapter','commentRemoved','commentId','content','getCommentThreads','deletedAt','_terminateService','attributes','1634145xfQfXj','remove','918688sIKsVL','addToReconnectionStack','getComment','getUser','init','commentAdded','getCommentThread','updateComment','add','commentThreadUpdated','message','context','catch','removeCommentThread','plugins','isPremiumPlugin','addComment','sessionAdd:','pluginName','size','has','destroy','commentThreadAdded','startsWith','cloudservicescommentsadapter-disconnect-not-exist','_getService','connect','CommentsService','setPermissions','isOfficialPlugin','_fetchMissingUsersForThreads','register','commentThreadRemoved','collaboration.channelId','permissions','commentThreadResolved','comments','5423292mBuJcr','set','1912048rktdQA','reopenCommentThread','getConnectedSessions','from','updateCommentThread','404','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','7SfcnHL','resolveCommentThread','_connectService','CloudServicesCommentsAdapter','resolvedBy','_setUpService','_services','6285355FHDkkm','reconnect','map','cloudservicescommentsadapter-connect-already-connected','getMany','config','cloud-services-internal-error:\x20Request\x20timeout.'];_0x4f7f=function(){return _0x3ae55c;};return _0x4f7f();}function k(_0x36e8e9){const _0x51e2c3=_0x5978ba;if((_0x4ce9d2=_0x36e8e9)[_0x51e2c3(0x124)][_0x51e2c3(0x131)](_0x51e2c3(0x147))||_0x4ce9d2[_0x51e2c3(0x124)][_0x51e2c3(0x131)](_0x51e2c3(0x15a))||_0x4ce9d2[_0x51e2c3(0x124)][_0x51e2c3(0x131)](_0x51e2c3(0x155)))return new Promise(()=>{});var _0x4ce9d2;throw _0x36e8e9;}function B(_0x5bff90){const _0x2ffaca=_0x5978ba;return{'threadId':_0x5bff90[_0x2ffaca(0x106)],'commentId':_0x5bff90[_0x2ffaca(0x112)],'content':_0x5bff90[_0x2ffaca(0x113)],'createdAt':_0x5bff90[_0x2ffaca(0x105)],'authorId':_0x5bff90[_0x2ffaca(0x15d)],'attributes':_0x5bff90[_0x2ffaca(0x117)]||{}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5a86(_0xc59439,_0x4c9366){const _0x1f78e4=_0x1f78();return _0x5a86=function(_0x5a8676,_0x50116f){_0x5a8676=_0x5a8676-0x1e3;let _0x330ec5=_0x1f78e4[_0x5a8676];return _0x330ec5;},_0x5a86(_0xc59439,_0x4c9366);}const _0x2b2291=_0x5a86;function _0x1f78(){const _0x4f367b=['change:state','Comments','listenTo','718YHPhXz','config','4588591rEjTUo','isThreadsLoadingPaused','81444HHHMno','once','isOfficialPlugin','ready','2881917BowijY','19301880AIyhUw','470heCpUZ','plugins','connected','init','pluginName','data','_setUpService','_terminateService','3560980JYmbGQ','isPremiumPlugin','4259232ZiichJ','editor','switchReadOnly','get','RealTimeCollaborativeComments','collaboration.channelId','32PGtFWL','destroy','CommentsRepository','CommentsEditing','requires','3037gVTrlQ'];_0x1f78=function(){return _0x4f367b;};return _0x1f78();}(function(_0x5939dd,_0x53a6f1){const _0x54e835=_0x5a86,_0x4a8f2c=_0x5939dd();while(!![]){try{const _0x55062a=-parseInt(_0x54e835(0x1e7))/0x1*(-parseInt(_0x54e835(0x1eb))/0x2)+parseInt(_0x54e835(0x1ff))/0x3+parseInt(_0x54e835(0x1fd))/0x4+parseInt(_0x54e835(0x1f5))/0x5*(-parseInt(_0x54e835(0x1ef))/0x6)+-parseInt(_0x54e835(0x1ed))/0x7+parseInt(_0x54e835(0x205))/0x8*(parseInt(_0x54e835(0x1f3))/0x9)+-parseInt(_0x54e835(0x1f4))/0xa;if(_0x55062a===_0x53a6f1)break;else _0x4a8f2c['push'](_0x4a8f2c['shift']());}catch(_0x3e728b){_0x4a8f2c['push'](_0x4a8f2c['shift']());}}}(_0x1f78,0xc810b));import{Plugin as _0x566792}from'ckeditor5/src/core.js';import{CloudServicesCommentsAdapter as _0x48f121}from'./realtimecollaborativecomments/cloudservicescommentsadapter.js';import{RealTimeCollaborativeEditing as _0x57d247}from'./realtimecollaborativeediting.js';import{WebSocketGateway as _0x174ed5}from'./realtimecollaborativeediting/websocketgateway.js';export class RealTimeCollaborativeComments extends _0x566792{static get[_0x2b2291(0x1e6)](){const _0x5a84f0=_0x2b2291;return[_0x5a84f0(0x1e9),_0x48f121,_0x57d247,_0x174ed5];}static get[_0x2b2291(0x1f9)](){const _0x1f139d=_0x2b2291;return _0x1f139d(0x203);}static get[_0x2b2291(0x1f1)](){return!0x0;}static get[_0x2b2291(0x1fe)](){return!0x0;}[_0x2b2291(0x1f8)](){const _0xcedebe=_0x2b2291,_0x37743c=this[_0xcedebe(0x200)][_0xcedebe(0x1f6)][_0xcedebe(0x202)](_0x174ed5),_0x3072f0=this[_0xcedebe(0x200)][_0xcedebe(0x1f6)][_0xcedebe(0x202)](_0xcedebe(0x1e5)),_0x6efbb8=this[_0xcedebe(0x200)][_0xcedebe(0x1f6)][_0xcedebe(0x202)](_0x48f121);return this[_0xcedebe(0x200)][_0xcedebe(0x1fa)][_0xcedebe(0x1f0)](_0xcedebe(0x1f2),()=>{const _0x5d3c32=_0xcedebe;this[_0x5d3c32(0x1ea)](_0x37743c,_0x5d3c32(0x1e8),(_0x3ea2f0,_0x1a8567,_0x1f6595)=>{const _0x16b936=_0x5d3c32;_0x3072f0[_0x16b936(0x1ee)]=_0x16b936(0x1f7)!==_0x1f6595;});}),this[_0xcedebe(0x1ea)](_0x37743c,_0xcedebe(0x1e8),(_0x234cdc,_0x22f795,_0x2e4b45)=>{const _0x2ba4fc=_0xcedebe;this[_0x2ba4fc(0x200)][_0x2ba4fc(0x1f6)][_0x2ba4fc(0x202)](_0x2ba4fc(0x1e4))[_0x2ba4fc(0x201)](_0x2ba4fc(0x1f7)!==_0x2e4b45);}),_0x6efbb8[_0xcedebe(0x1fb)](this[_0xcedebe(0x200)][_0xcedebe(0x1ec)][_0xcedebe(0x202)](_0xcedebe(0x204)));}[_0x2b2291(0x1e3)](){const _0x31a06e=_0x2b2291;this[_0x31a06e(0x200)][_0x31a06e(0x1f6)][_0x31a06e(0x202)](_0x48f121)[_0x31a06e(0x1fc)](this[_0x31a06e(0x200)][_0x31a06e(0x1ec)][_0x31a06e(0x202)](_0x31a06e(0x204))),super[_0x31a06e(0x1e3)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x18bac9)());[_0x563395(0x2aa)];[_0x563395(0x223)];[_0x563395(0x217)];[_0x563395(0x2ad)];[_0x563395(0x205)];[_0x563395(0x299)];[_0x563395(0x26f)];[_0x563395(0x1db)];[_0x563395(0x294)];[_0x563395(0x29b)];[_0x563395(0x284)];[_0x563395(0x2b8)];[_0x563395(0x271)];[_0x563395(0x263)];[_0x563395(0x261)];[_0x563395(0x1fa)];[_0x563395(0x264)];[_0x563395(0x1e6)];static get[_0x563395(0x215)](){return[_0x27bbb7,_0x476ffd,_0x1cf422,_0x27b87e,_0x8da8de,_0x52a8e8];}static get[_0x563395(0x238)](){const _0x5d9405=_0x563395;return _0x5d9405(0x256);}static get[_0x563395(0x267)](){return!0x0;}static get[_0x563395(0x1d5)](){return!0x0;}get[_0x563395(0x24b)](){const _0x5b8d56=_0x563395;return this[_0x5b8d56(0x2ba)]+this[_0x5b8d56(0x2aa)];}get[_0x563395(0x2ba)](){const _0x5541e7=_0x563395;return this[_0x5541e7(0x217)][_0x5541e7(0x287)]-this[_0x5541e7(0x2aa)];}get[_0x563395(0x1d9)](){const _0x4df1ce=_0x563395,_0x7abd2d=this[_0x4df1ce(0x217)][_0x4df1ce(0x1ea)]();for(let _0x15fb24=_0x7abd2d[_0x4df1ce(0x2bb)]-0x1;_0x15fb24>=0x0;_0x15fb24--){const _0x2e2587=_0x7abd2d[_0x15fb24];if(!this[_0x4df1ce(0x264)][_0x4df1ce(0x22e)](_0x2e2587))return _0x2e2587[_0x4df1ce(0x2c6)]+0x1-this[_0x4df1ce(0x2aa)];}return 0x0;}constructor(_0x21d5a9){const _0x53eb74=_0x563395;if(super(_0x21d5a9),this[_0x53eb74(0x2aa)]=0x0,this[_0x53eb74(0x223)]=null,this[_0x53eb74(0x217)]=new _0x584afd(),this[_0x53eb74(0x272)][_0x53eb74(0x203)][_0x53eb74(0x1f4)](_0x53eb74(0x2b2),{}),this[_0x53eb74(0x2ad)]=this[_0x53eb74(0x272)][_0x53eb74(0x203)][_0x53eb74(0x1c7)](_0x53eb74(0x2af)),!this[_0x53eb74(0x2ad)])throw new _0x3ed81d(_0x53eb74(0x2a3),this);const _0x2f33cf=_0x21d5a9[_0x53eb74(0x203)][_0x53eb74(0x1c7)](_0x53eb74(0x27e))||_0x456c12;this[_0x53eb74(0x205)]=new l[(_0x53eb74(0x276))](_0x2f33cf,this[_0x53eb74(0x2ad)]),this[_0x53eb74(0x299)]=this[_0x53eb74(0x272)][_0x53eb74(0x2a1)][_0x53eb74(0x2b5)],this[_0x53eb74(0x26f)]=new _0xb4b325(),this[_0x53eb74(0x1db)]=[],this[_0x53eb74(0x294)]=new WeakSet(),this[_0x53eb74(0x29b)]=new Set(),this[_0x53eb74(0x1ed)](_0x53eb74(0x1cf),!0x1),this[_0x53eb74(0x1ed)](_0x53eb74(0x2a8),!0x1),this[_0x53eb74(0x284)]=null,this[_0x53eb74(0x2b8)]=!0x1,this[_0x53eb74(0x271)]=null,this[_0x53eb74(0x263)]=0x12c,this[_0x53eb74(0x261)]=this[_0x53eb74(0x263)],this[_0x53eb74(0x1fa)]=null,this[_0x53eb74(0x264)]=new WeakSet(),this[_0x53eb74(0x1e6)]=new J(this[_0x53eb74(0x264)]);}[_0x563395(0x23d)](){const _0x589769=_0x563395,_0x4f8de1=this[_0x589769(0x272)],_0x225a7d=_0x4f8de1[_0x589769(0x275)][_0x589769(0x1c7)](_0x8da8de),_0x51490f=_0x4f8de1[_0x589769(0x275)][_0x589769(0x1c7)](_0x27bbb7);this[_0x589769(0x23a)](_0x225a7d,_0x589769(0x201),(_0x26f614,_0xf8de86)=>{const _0x37f217=_0x589769,_0x284e19=_0xf8de86[0x0];_0x284e19[_0x37f217(0x1d1)]&&(_0x26f614[_0x37f217(0x211)]=_0x225a7d[_0x37f217(0x210)](_0x284e19[_0x37f217(0x1d1)]),_0x26f614[_0x37f217(0x2ae)]()),null===_0x284e19[_0x37f217(0x1d1)]&&(_0x26f614[_0x37f217(0x211)]=null,_0x26f614[_0x37f217(0x2ae)]());},{'priority':_0x589769(0x2bc)}),this[_0x589769(0x23a)](_0x4f8de1[_0x589769(0x2a1)][_0x589769(0x2b5)][_0x589769(0x23e)],_0x589769(0x25c),(_0xd5ff5a,_0x2b3d2f)=>{const _0x2cfdac=_0x589769;_0x2b3d2f[_0x2cfdac(0x29d)]&&this[_0x2cfdac(0x28d)]();}),this[_0x589769(0x23a)](_0x4f8de1[_0x589769(0x291)][_0x589769(0x1c6)],_0x589769(0x20f),()=>{const _0x5aaade=_0x589769;this[_0x5aaade(0x28d)]();}),this[_0x589769(0x23c)](),_0x4f8de1[_0x589769(0x2a1)]['on'](_0x589769(0x208),(_0x5e481d,_0x310fd7)=>{const _0x1b0ec1=_0x589769,_0x4da998=_0x310fd7[0x0];_0x4da998[_0x1b0ec1(0x1c5)]&&(this[_0x1b0ec1(0x1f2)](_0x4da998),this[_0x1b0ec1(0x248)]()&&this[_0x1b0ec1(0x27d)]());}),this[_0x589769(0x234)](),this[_0x589769(0x1d6)](_0x589769(0x242))['to'](_0x51490f,_0x589769(0x260),this,_0x589769(0x2a8),(_0x5ca473,_0x388b9e)=>_0x589769(0x2a4)===_0x5ca473&&!_0x388b9e),this['on'](_0x589769(0x26e),()=>{const _0x1b058d=_0x589769;this[_0x1b058d(0x242)]?_0x4f8de1[_0x1b058d(0x229)](_0x1b058d(0x1c8)):_0x4f8de1[_0x1b058d(0x26a)](_0x1b058d(0x1c8));}),this[_0x589769(0x242)]?_0x4f8de1[_0x589769(0x229)](_0x589769(0x1c8)):_0x4f8de1[_0x589769(0x26a)](_0x589769(0x1c8)),this[_0x589769(0x1ed)](_0x589769(0x1f7),!0x1);}async[_0x563395(0x259)](){const _0x1183a6=_0x563395,_0x2dbae2=this[_0x1183a6(0x272)][_0x1183a6(0x275)][_0x1183a6(0x1c7)](_0x476ffd),_0x392bad=this[_0x1183a6(0x272)][_0x1183a6(0x275)][_0x1183a6(0x1c7)](_0x27bbb7);try{this[_0x1183a6(0x1cf)]=!0x0,_0x2dbae2[_0x1183a6(0x1e9)](this[_0x1183a6(0x2ad)]);const _0x3cc861=await this[_0x1183a6(0x205)][_0x1183a6(0x259)](_0x392bad[_0x1183a6(0x265)],this[_0x1183a6(0x1d9)]);await this[_0x1183a6(0x239)](_0x3cc861)&&(this[_0x1183a6(0x1cf)]=!0x1,this[_0x1183a6(0x206)]());const _0x49076c=await this[_0x1183a6(0x205)][_0x1183a6(0x1f8)]();_0x2dbae2[_0x1183a6(0x247)](this[_0x1183a6(0x2ad)],_0x49076c),this[_0x1183a6(0x1fd)](),this[_0x1183a6(0x1f7)]=!0x0;}catch(_0x3c4e7c){if(function(_0x4dad8f){const _0xa3af00=_0x1183a6;return _0xa3af00(0x22d)===_0x4dad8f[_0xa3af00(0x283)];}(_0x3c4e7c)&&this[_0x1183a6(0x223)])await this[_0x1183a6(0x253)]();else{if(function(_0x5a60ba){const _0x414cfa=_0x1183a6;return _0x414cfa(0x245)===_0x5a60ba[_0x414cfa(0x283)];}(_0x3c4e7c)){const _0x13ad2c=_0x4651ae(this[_0x1183a6(0x272)][_0x1183a6(0x202)],_0x1183a6(0x2c3));this[_0x1183a6(0x1c9)](_0x13ad2c);}else{if(!(_0x3c4e7c instanceof $))throw _0x3c4e7c;this[_0x1183a6(0x1c9)]();}}}}[_0x563395(0x1da)](){const _0x5dde4f=_0x563395,_0x501fbd=this[_0x5dde4f(0x272)][_0x5dde4f(0x275)][_0x5dde4f(0x1c7)](_0x27bbb7),_0x29bbf6=this[_0x5dde4f(0x272)][_0x5dde4f(0x275)][_0x5dde4f(0x1c7)](_0x476ffd);this[_0x5dde4f(0x272)][_0x5dde4f(0x26a)](_0x5dde4f(0x230)),_0x29bbf6[_0x5dde4f(0x1f0)][_0x5dde4f(0x22e)](this[_0x5dde4f(0x2ad)])&&_0x29bbf6[_0x5dde4f(0x1e9)](this[_0x5dde4f(0x2ad)]),_0x501fbd[_0x5dde4f(0x1ff)](this),this[_0x5dde4f(0x219)](),super[_0x5dde4f(0x1da)]();}async[_0x563395(0x239)](_0x4f84bc){const _0x258df6=_0x563395;if(this[_0x258df6(0x223)]!==_0x4f84bc[_0x258df6(0x223)]&&this[_0x258df6(0x1fa)]!==_0x4f84bc[_0x258df6(0x2a2)])throw new $();return this[_0x258df6(0x223)]=_0x4f84bc[_0x258df6(0x223)],this[_0x258df6(0x236)]([],{..._0x4f84bc,'wereChangesApplied':!0x1,'data':_0x4f84bc[_0x258df6(0x21d)]},_0x258df6(0x259));}async[_0x563395(0x292)](_0x51540e,_0x2ca268=!0x1){const _0x5165fa=_0x563395,{connection:_0x1e99b3}=this[_0x5165fa(0x272)][_0x5165fa(0x275)][_0x5165fa(0x1c7)](_0x27bbb7);l[_0x5165fa(0x276)][_0x5165fa(0x1f8)](_0x1e99b3,this[_0x5165fa(0x2ad)])[_0x5165fa(0x222)](_0x243dd2=>this[_0x5165fa(0x207)](_0x243dd2))[_0x5165fa(0x1f9)](_0x472704=>{const _0x6e8577=_0x5165fa;this[_0x6e8577(0x2b1)](_0x6e8577(0x25b),_0x472704);}),this[_0x5165fa(0x23a)](this[_0x5165fa(0x205)],_0x5165fa(0x273),this[_0x5165fa(0x212)][_0x5165fa(0x1d6)](this)),this[_0x5165fa(0x23a)](this[_0x5165fa(0x205)],_0x5165fa(0x252),(_0x2e76bc,_0xdc18eb)=>{const _0x5de763=_0x5165fa;this[_0x5de763(0x2b1)](_0x5de763(0x2b9),_0xdc18eb);}),this[_0x5165fa(0x23a)](this[_0x5165fa(0x205)],_0x5165fa(0x1f3),()=>{const _0x267525=_0x5165fa;this[_0x267525(0x1f7)]=!0x1;});const _0x187940=this[_0x5165fa(0x1e6)][_0x5165fa(0x1d7)](_0x51540e);this[_0x5165fa(0x1cf)]=!0x0;const _0x27eafb=await this[_0x5165fa(0x205)][_0x5165fa(0x1cd)](_0x1e99b3,this[_0x5165fa(0x28b)](_0x51540e),_0x187940);if(this[_0x5165fa(0x223)]=_0x27eafb[_0x5165fa(0x223)],_0x2ca268){if(!_0x27eafb[_0x5165fa(0x280)])return void this[_0x5165fa(0x1c9)]();this[_0x5165fa(0x1cf)]=!0x1,this[_0x5165fa(0x206)](),this[_0x5165fa(0x217)][_0x5165fa(0x26b)](),this[_0x5165fa(0x2aa)]=_0x27eafb[_0x5165fa(0x228)],this[_0x5165fa(0x217)][_0x5165fa(0x287)]=this[_0x5165fa(0x2aa)],await this[_0x5165fa(0x236)](_0x51540e,_0x27eafb,_0x5165fa(0x249));}else await this[_0x5165fa(0x22c)](_0x27eafb,_0x51540e);this[_0x5165fa(0x1fd)](),this[_0x5165fa(0x1f7)]=!0x0;}[_0x563395(0x1fd)](){const _0x447978=_0x563395,_0x1f7758=this[_0x447978(0x272)][_0x447978(0x275)][_0x447978(0x1c7)](_0x476ffd),_0x594eba=this[_0x447978(0x272)][_0x447978(0x275)][_0x447978(0x1c7)](_0x1cf422),_0x4dba16=_0x1f7758[_0x447978(0x1f0)][_0x447978(0x1c7)](this[_0x447978(0x2ad)]);_0x4dba16&&_0x4dba16[_0x447978(0x2bb)]>0x1?_0x594eba[_0x447978(0x2a6)]():this[_0x447978(0x23a)](_0x1f7758,_0x447978(0x251)+this[_0x447978(0x2ad)],()=>{const _0x4d1eec=_0x447978;0x2===_0x1f7758[_0x4d1eec(0x1f0)][_0x4d1eec(0x1c7)](this[_0x4d1eec(0x2ad)])[_0x4d1eec(0x2bb)]&&_0x594eba[_0x4d1eec(0x2a6)]();});}async[_0x563395(0x212)](_0x4da756,_0x262150,_0x6c4cfe,_0x5a8714){const _0x244016=_0x563395;if(!this[_0x244016(0x1cf)]&&this[_0x244016(0x299)][_0x244016(0x287)]==_0x262150){const _0x391fad=this[_0x244016(0x28e)](_0x6c4cfe,_0x5a8714);await this[_0x244016(0x2ab)](_0x391fad),this[_0x244016(0x25f)](_0x391fad,_0x262150,_0x6c4cfe[_0x244016(0x2a2)])||this[_0x244016(0x2b1)](_0x244016(0x2bf));}}async[_0x563395(0x253)](){const _0x487ac9=_0x563395;this[_0x487ac9(0x219)]();const {locale:_0x4535a2}=this[_0x487ac9(0x272)];let _0x450376;try{_0x450376=await this[_0x487ac9(0x205)][_0x487ac9(0x25a)]();}catch{const _0x5c9258=_0x4651ae(_0x4535a2,_0x487ac9(0x246));return void this[_0x487ac9(0x1c9)](_0x5c9258);}const _0x292f2e=_0x450376[_0x487ac9(0x286)]||_0x450376[_0x487ac9(0x2bd)];if(this[_0x487ac9(0x1fa)]!==_0x292f2e[_0x487ac9(0x2a2)]){const _0xf7f97c=_0x4651ae(_0x4535a2,_0x487ac9(0x2a9));return void this[_0x487ac9(0x1c9)](_0xf7f97c);}await this[_0x487ac9(0x292)](this[_0x487ac9(0x272)][_0x487ac9(0x2a1)][_0x487ac9(0x2b5)][_0x487ac9(0x27f)][_0x487ac9(0x1ea)](),!0x0);}[_0x563395(0x219)](){const _0x38ef91=_0x563395;this[_0x38ef91(0x205)][_0x38ef91(0x27a)](),this[_0x38ef91(0x1db)]=[],clearTimeout(this[_0x38ef91(0x271)]),this[_0x38ef91(0x1ec)](this[_0x38ef91(0x205)]);}[_0x563395(0x207)](_0x57a9e5){const _0x435dd6=_0x563395,_0x13413c=this[_0x435dd6(0x272)][_0x435dd6(0x275)][_0x435dd6(0x1c7)](_0x476ffd);this[_0x435dd6(0x23a)](_0x13413c,_0x435dd6(0x251)+this[_0x435dd6(0x2ad)],(_0x361607,{session:_0x28a346})=>{const _0x25477e=_0x435dd6;if(_0x28a346['id']===_0x13413c[_0x25477e(0x2b0)]){_0x361607[_0x25477e(0x1df)]();const _0x21db62=this[_0x25477e(0x272)][_0x25477e(0x275)][_0x25477e(0x22e)](_0x25477e(0x2c5))&&this[_0x25477e(0x272)][_0x25477e(0x275)][_0x25477e(0x1c7)](_0x25477e(0x2c5));let _0x46f6de=_0x28a346[_0x25477e(0x27c)];_0x21db62&&_0x21db62[_0x25477e(0x21b)]&&(_0x46f6de=_0x46f6de[_0x25477e(0x20b)](_0x26b315=>_0x25477e(0x1ee)!==_0x26b315)),this[_0x25477e(0x272)][_0x25477e(0x275)][_0x25477e(0x1c7)](_0x25477e(0x220))[_0x25477e(0x24c)](_0x46f6de,this[_0x25477e(0x2ad)]);}}),_0x13413c[_0x435dd6(0x247)](this[_0x435dd6(0x2ad)],_0x57a9e5);}[_0x563395(0x23c)](){const _0x5ae56e=_0x563395,_0x4d627a=this[_0x5ae56e(0x272)][_0x5ae56e(0x21d)][_0x5ae56e(0x1ed)];this[_0x5ae56e(0x272)][_0x5ae56e(0x21d)][_0x5ae56e(0x1ed)]=(..._0x12a5b1)=>{const _0x80c65a=_0x5ae56e;if(!_0x12a5b1[_0x12a5b1[_0x80c65a(0x2bb)]-0x1][_0x80c65a(0x20e)])throw new _0x3ed81d(_0x80c65a(0x290),this);_0x4d627a[_0x80c65a(0x22f)](this[_0x80c65a(0x272)][_0x80c65a(0x21d)],_0x12a5b1);};}[_0x563395(0x234)](){const _0x2a2a96=_0x563395;this[_0x2a2a96(0x272)][_0x2a2a96(0x21d)]['on'](_0x2a2a96(0x23d),(_0x1f4864,[_0x2d99ed])=>{const _0x2abc27=_0x2a2a96;if(this[_0x2abc27(0x299)][_0x2abc27(0x287)])throw new _0x3ed81d(_0x2abc27(0x270),this);_0x1f4864[_0x2abc27(0x2ae)](),this[_0x2abc27(0x1dd)]();const _0x4c294f=this[_0x2abc27(0x272)][_0x2abc27(0x203)][_0x2abc27(0x1c7)](_0x2abc27(0x24a)),_0xd07ed1=this[_0x2abc27(0x274)](_0x2d99ed,_0x4c294f);0x0==_0xd07ed1[_0x2abc27(0x2bb)]&&_0xd07ed1[_0x2abc27(0x1fe)](new _0x2f9c27(0x0)),_0x1f4864[_0x2abc27(0x211)]=this[_0x2abc27(0x292)](_0xd07ed1)[_0x2abc27(0x222)](()=>{const _0x1f6c8d=_0x2abc27;this[_0x1f6c8d(0x272)][_0x1f6c8d(0x275)][_0x1f6c8d(0x1c7)](_0x27bbb7)[_0x1f6c8d(0x213)](this),this[_0x1f6c8d(0x272)][_0x1f6c8d(0x21d)][_0x1f6c8d(0x250)](_0x1f6c8d(0x279));})[_0x2abc27(0x1f9)](_0x3f4234=>this[_0x2abc27(0x2b1)](_0x2abc27(0x2b3),_0x3f4234))[_0x2abc27(0x1e2)](()=>this[_0x2abc27(0x206)]());},{'priority':_0x2a2a96(0x2bc)}),this[_0x2a2a96(0x272)]['on'](_0x2a2a96(0x257),async(_0xca538a,[_0x244646,_0x19d540])=>{const _0x2be052=_0x2a2a96;_0xca538a[_0x2be052(0x2ae)]();const _0x17e3bb=this[_0x2be052(0x272)][_0x2be052(0x2a1)][_0x2be052(0x2b5)][_0x2be052(0x227)](_0x244646);if(!this[_0x2be052(0x29b)][_0x2be052(0x22e)](_0x244646)){const _0x3da448=_0x19d540&&_0x19d540[_0x2be052(0x21d)]?_0x19d540[_0x2be052(0x21d)]:'',_0x2b5204=_0x19d540&&_0x19d540[_0x2be052(0x1ef)]?_0x19d540[_0x2be052(0x1ef)]:{};await this[_0x2be052(0x1cb)](_0x244646,_0x3da448,_0x2b5204);}this[_0x2be052(0x272)][_0x2be052(0x2a1)][_0x2be052(0x26c)]({'isUndoable':!0x1},()=>{const _0x12d91f=_0x2be052;_0x17e3bb[_0x12d91f(0x22a)]=!0x0,this[_0x12d91f(0x272)][_0x12d91f(0x2a1)][_0x12d91f(0x2b5)][_0x12d91f(0x278)][_0x12d91f(0x25d)](_0x17e3bb);});},{'priority':_0x2a2a96(0x2bc)});}async[_0x563395(0x2ab)](_0x558543){const _0x4ef48c=_0x563395,_0x230cea=this[_0x4ef48c(0x272)][_0x4ef48c(0x275)][_0x4ef48c(0x1c7)](_0x8da8de),{connection:_0x321e7d}=this[_0x4ef48c(0x272)][_0x4ef48c(0x275)][_0x4ef48c(0x1c7)](_0x27bbb7),_0x4b11b8=new Set();for(const _0x57a08c of _0x558543){const _0x56e2ac=_0x57a08c[_0x4ef48c(0x1d1)];_0x56e2ac&&!_0x230cea[_0x4ef48c(0x210)](_0x56e2ac)&&_0x4b11b8[_0x4ef48c(0x2a7)](_0x56e2ac);}if(0x0===_0x4b11b8[_0x4ef48c(0x2c7)])return;const _0x51e836=await _0x58ffd5[_0x4ef48c(0x27b)](_0x321e7d,Array[_0x4ef48c(0x218)](_0x4b11b8));for(const _0x87c399 of _0x51e836)_0x230cea[_0x4ef48c(0x210)](_0x87c399['id'])||_0x230cea[_0x4ef48c(0x277)](_0x87c399);}[_0x563395(0x274)](_0x4f8e3d,_0xc07dac={}){const _0x3e05cd=_0x563395,_0x37a619=this[_0x3e05cd(0x272)][_0x3e05cd(0x2a1)],_0x506f61=[];let _0x18fc49=0x0;const _0x6b2149=_0x3e05cd(0x225)==typeof _0x4f8e3d?{'main':_0x4f8e3d}:_0x4f8e3d;for(const _0x49f9c7 of Object[_0x3e05cd(0x268)](_0x6b2149)){if(!this[_0x3e05cd(0x299)][_0x3e05cd(0x221)][_0x3e05cd(0x22e)](_0x49f9c7))throw new _0x3ed81d(_0x3e05cd(0x24d),this);const _0x3cbeb0=this[_0x3e05cd(0x272)][_0x3e05cd(0x21d)][_0x3e05cd(0x1f6)](_0x6b2149[_0x49f9c7]),_0x2a7bfb=this[_0x3e05cd(0x299)][_0x3e05cd(0x227)](_0x49f9c7),_0x2cdee4=new _0x2fdfca(_0x37a619[_0x3e05cd(0x235)](_0x2a7bfb,0x0),_0x3cbeb0,_0x18fc49++);_0x506f61[_0x3e05cd(0x1fe)](_0x2cdee4);for(const [_0x294b82,_0x324459]of _0x3cbeb0[_0x3e05cd(0x1e3)]){const _0x4849c5=_0x37a619[_0x3e05cd(0x1f5)](_0x37a619[_0x3e05cd(0x216)](_0x2a7bfb,_0x324459[_0x3e05cd(0x233)][_0x3e05cd(0x2ac)][_0x3e05cd(0x22b)]()),_0x37a619[_0x3e05cd(0x216)](_0x2a7bfb,_0x324459[_0x3e05cd(0x243)][_0x3e05cd(0x2ac)][_0x3e05cd(0x22b)]())),_0x16123d=new _0x26f800(_0x294b82,null,_0x4849c5,_0x37a619[_0x3e05cd(0x1e3)],!0x0,_0x18fc49++);_0x506f61[_0x3e05cd(0x1fe)](_0x16123d);}}if(_0xc07dac)for(const [_0x5b9f98,_0x5cfc86]of Object[_0x3e05cd(0x2a5)](_0xc07dac)){const _0x52c524=_0x37a619[_0x3e05cd(0x2b5)][_0x3e05cd(0x227)](_0x5b9f98);if(!_0x52c524)throw new _0x3ed81d(_0x3e05cd(0x1cc),null);for(const [_0x3e6ae7,_0x4e3f4f]of Object[_0x3e05cd(0x2a5)](_0x5cfc86))if(null!==_0x4e3f4f){const _0x540166=new _0x141fa3(_0x52c524,_0x3e6ae7,null,_0x4e3f4f,_0x18fc49++);_0x506f61[_0x3e05cd(0x1fe)](_0x540166);}}return _0x506f61;}async[_0x563395(0x1cb)](_0x30a4ea,_0x244ab6,_0x1766a0){const _0x26ab34=_0x563395;this[_0x26ab34(0x274)]({[_0x30a4ea]:_0x244ab6},{[_0x30a4ea]:_0x1766a0})[_0x26ab34(0x262)]((_0x3e6296,_0x548229)=>{const _0x312d36=_0x26ab34;_0x3e6296[_0x312d36(0x2c6)]=this[_0x312d36(0x299)][_0x312d36(0x287)]+_0x548229,_0x3e6296[_0x312d36(0x1e5)]=!0x0,this[_0x312d36(0x1f2)](_0x3e6296);}),this[_0x26ab34(0x27d)](),await this[_0x26ab34(0x2c0)]();}async[_0x563395(0x22c)](_0x446b9d,_0x37bca0){const _0x168fea=_0x563395;let _0x4d5c61;this[_0x168fea(0x2aa)]=_0x446b9d[_0x168fea(0x228)];const _0x23da1e=_0x446b9d[_0x168fea(0x280)]&&!_0x446b9d[_0x168fea(0x1e8)],_0x913f1b=_0x23da1e?0x0:_0x446b9d[_0x168fea(0x21d)][_0x168fea(0x2c6)];if(_0x37bca0[_0x168fea(0x262)](_0x37e772=>{const _0x127876=_0x168fea;_0x37e772[_0x127876(0x1e5)]=!0x0,_0x37e772[_0x127876(0x204)]=_0x446b9d[_0x127876(0x224)],_0x37e772[_0x127876(0x1d1)]=null;}),_0x23da1e)_0x4d5c61=_0x37bca0,this[_0x168fea(0x231)](_0x4d5c61,_0x23da1e);else{if(_0x446b9d[_0x168fea(0x1e8)]){const _0x1fca48=this[_0x168fea(0x274)](_0x446b9d[_0x168fea(0x1e8)]);this[_0x168fea(0x299)][_0x168fea(0x27f)][_0x168fea(0x287)]=-_0x1fca48[_0x168fea(0x2bb)],_0x1fca48[_0x168fea(0x262)](_0xae380f=>{const _0x221d3b=_0x168fea;_0xae380f[_0x221d3b(0x2c6)]-=_0x1fca48[_0x221d3b(0x2bb)],_0xae380f[_0x221d3b(0x204)]=_0x446b9d[_0x221d3b(0x224)],_0xae380f[_0x221d3b(0x1e5)]=!0x0,_0xae380f[_0x221d3b(0x1d1)]=null;}),this[_0x168fea(0x231)](_0x1fca48,!0x0),this[_0x168fea(0x217)][_0x168fea(0x287)]=-_0x1fca48[_0x168fea(0x2bb)]+this[_0x168fea(0x2aa)],this[_0x168fea(0x297)](_0x1fca48);}this[_0x168fea(0x299)][_0x168fea(0x27f)][_0x168fea(0x287)]=_0x913f1b,_0x4d5c61=this[_0x168fea(0x28e)](_0x446b9d[_0x168fea(0x21d)],_0x446b9d[_0x168fea(0x24f)]),await this[_0x168fea(0x2ab)](_0x4d5c61),this[_0x168fea(0x231)](_0x4d5c61,_0x23da1e);}_0x446b9d[_0x168fea(0x2a2)]&&(this[_0x168fea(0x1e6)][_0x168fea(0x1fc)](_0x4d5c61,_0x446b9d[_0x168fea(0x2a2)]),this[_0x168fea(0x1fa)]=_0x446b9d[_0x168fea(0x2a2)]),this[_0x168fea(0x217)][_0x168fea(0x287)]=_0x913f1b+this[_0x168fea(0x2aa)],this[_0x168fea(0x297)](_0x4d5c61),_0x37bca0[_0x168fea(0x20b)](_0x4563f8=>{const _0x1e85f7=_0x168fea,_0x224fbd=this[_0x1e85f7(0x2c8)](_0x4563f8);return _0x224fbd&&!this[_0x1e85f7(0x29b)][_0x1e85f7(0x22e)](_0x224fbd);})[_0x168fea(0x262)]((_0x1bbf05,_0x5f13ed)=>{const _0xd1f00c=_0x168fea;_0x1bbf05[_0xd1f00c(0x2c6)]=this[_0xd1f00c(0x299)][_0xd1f00c(0x287)]+_0x5f13ed,this[_0xd1f00c(0x1f2)](_0x1bbf05);}),this[_0x168fea(0x248)]()?(this[_0x168fea(0x261)]=0x0,this[_0x168fea(0x27d)](!0x0),await this[_0x168fea(0x2c0)]()):(this[_0x168fea(0x1cf)]=!0x1,this[_0x168fea(0x206)]());}[_0x563395(0x2b1)](_0x7cc935,_0x38d1da){const _0x3be4f0=_0x563395,_0x9f8543=_0x38d1da&&_0x38d1da[_0x3be4f0(0x240)];if(_0x9f8543&&_0x9f8543[_0x3be4f0(0x29f)](_0x3be4f0(0x26d)))throw _0x38d1da;const _0x5329a1=this[_0x3be4f0(0x272)][_0x3be4f0(0x275)][_0x3be4f0(0x1c7)](_0x27bbb7);throw this[_0x3be4f0(0x1cf)]=!0x0,_0x5329a1[_0x3be4f0(0x27a)](),this[_0x3be4f0(0x272)][_0x3be4f0(0x26a)](_0x3be4f0(0x282)),new _0x3ed81d(_0x7cc935,this[_0x3be4f0(0x272)],_0x9f8543?{'originalError':_0x9f8543}:void 0x0);}[_0x563395(0x1f2)](_0x2ff70a){const _0x2cbc9d=_0x563395;this[_0x2cbc9d(0x294)][_0x2cbc9d(0x22e)](_0x2ff70a)||(this[_0x2cbc9d(0x294)][_0x2cbc9d(0x2a7)](_0x2ff70a),this[_0x2cbc9d(0x1db)][_0x2cbc9d(0x1fe)](_0x2ff70a),this[_0x2cbc9d(0x284)]||_0x2cbc9d(0x1e4)==_0x2ff70a[_0x2cbc9d(0x295)]&&!_0x2ff70a[_0x2cbc9d(0x1e0)]||this[_0x2cbc9d(0x1dd)]());}[_0x563395(0x27d)](_0x3e2de7=!0x1){const _0x5d7e73=_0x563395;!_0x3e2de7&&this[_0x5d7e73(0x1cf)]||(this[_0x5d7e73(0x1cf)]=!0x0,clearTimeout(this[_0x5d7e73(0x271)]),this[_0x5d7e73(0x271)]=setTimeout(()=>{const _0x213d63=_0x5d7e73;this[_0x213d63(0x2c4)]()[_0x213d63(0x222)](_0x5454b5=>{const _0xc737e8=_0x213d63;_0x5454b5&&(this[_0xc737e8(0x206)](),this[_0xc737e8(0x1cf)]=!0x1);})[_0x213d63(0x1f9)](_0x359b31=>{const _0x54e0e8=_0x213d63;this[_0x54e0e8(0x206)](),this[_0x54e0e8(0x1cf)]=!0x1,function(_0xe0837){const _0x13877a=_0x54e0e8;return _0xe0837[_0x13877a(0x240)][_0x13877a(0x29f)](_0x13877a(0x288))||_0xe0837[_0x13877a(0x240)][_0x13877a(0x29f)](_0x13877a(0x2b4))||_0xe0837[_0x13877a(0x240)][_0x13877a(0x29f)](_0x13877a(0x298));}(_0x359b31)||this[_0x54e0e8(0x2b1)](_0x359b31[_0x54e0e8(0x240)],_0x359b31);});},this[_0x5d7e73(0x261)]));}[_0x563395(0x2c0)](){return new Promise(_0x2edb9a=>{const _0xb2be77=_0x4a75;this['on'](_0xb2be77(0x21f),()=>{_0x2edb9a();});});}async[_0x563395(0x2c4)](){const _0x5d719e=_0x563395,_0x20014f=this[_0x5d719e(0x272)][_0x5d719e(0x275)][_0x5d719e(0x1c7)](_0x1cf422);if(this[_0x5d719e(0x2b6)]()&&(_0x20014f[_0x5d719e(0x2a6)](),this[_0x5d719e(0x2b8)]=!0x1),!this[_0x5d719e(0x248)]())return!0x0;const _0x165ff6=[...this[_0x5d719e(0x1db)]];for(const _0x43c9aa of _0x165ff6)_0x43c9aa[_0x5d719e(0x296)]=this[_0x5d719e(0x299)][_0x5d719e(0x27f)][_0x5d719e(0x255)](_0x43c9aa);const _0x470821=this[_0x5d719e(0x1e6)][_0x5d719e(0x1d7)](_0x165ff6),_0x5af77d=G++,_0x3c44a9=this[_0x5d719e(0x28b)](_0x165ff6),_0x3039cf=await this[_0x5d719e(0x205)][_0x5d719e(0x1de)](_0x3c44a9,_0x3c44a9[_0x5d719e(0x2c6)],_0x470821);try{return await this[_0x5d719e(0x236)](_0x165ff6,_0x3039cf,_0x5af77d);}catch(_0x51efea){return this[_0x5d719e(0x2b1)](_0x5d719e(0x266),_0x51efea);}}async[_0x563395(0x236)](_0x56745b,_0x2ace21,_0x50e9e4){const _0x15194c=_0x563395;if(_0x15194c(0x252)in _0x2ace21)throw _0x2ace21[_0x15194c(0x252)];let _0x435ff6=!0x1;if(_0x2ace21[_0x15194c(0x280)]){_0x2ace21[_0x15194c(0x2a2)]&&(this[_0x15194c(0x1fa)]=_0x2ace21[_0x15194c(0x2a2)]),this[_0x15194c(0x1db)]=this[_0x15194c(0x1db)][_0x15194c(0x20b)](_0x40299b=>!_0x56745b[_0x15194c(0x28c)](_0x40299b));for(const _0x42adb5 of _0x56745b)_0x42adb5[_0x15194c(0x204)]=_0x15194c(0x20c)in _0x2ace21&&_0x2ace21[_0x15194c(0x20c)]||void 0x0;K(_0x56745b,_0x2ace21[_0x15194c(0x287)]-_0x56745b[_0x15194c(0x2bb)]),this[_0x15194c(0x297)](_0x56745b);const _0x51bed6=_0x56745b[_0x15194c(0x20b)](_0x1c637f=>{const _0x324e86=_0x15194c;if(!_0x1c637f[_0x324e86(0x1e5)])return!0x1;const _0xb1f6=this[_0x324e86(0x2c8)](_0x1c637f);return _0xb1f6&&!this[_0x324e86(0x29b)][_0x324e86(0x22e)](_0xb1f6);});K(_0x51bed6,this[_0x15194c(0x299)][_0x15194c(0x287)]),this[_0x15194c(0x231)](_0x51bed6),_0x435ff6=!0x0,this[_0x15194c(0x261)]=this[_0x15194c(0x263)];}else{const _0x350bb7=this[_0x15194c(0x28e)](_0x2ace21[_0x15194c(0x21d)],_0x2ace21[_0x15194c(0x24f)])[_0x15194c(0x20b)](_0x38899f=>_0x38899f[_0x15194c(0x2c6)]>=this[_0x15194c(0x2ba)]);_0x350bb7[_0x15194c(0x262)](_0x5ec007=>this[_0x15194c(0x1e1)](_0x5ec007)),this[_0x15194c(0x1db)]=this[_0x15194c(0x1db)][_0x15194c(0x20b)](_0x569fda=>!_0x569fda[_0x15194c(0x1e5)]||!this[_0x15194c(0x29b)][_0x15194c(0x22e)](this[_0x15194c(0x2c8)](_0x569fda))),this[_0x15194c(0x1db)][_0x15194c(0x2bb)]&&K(this[_0x15194c(0x1db)],this[_0x15194c(0x1db)][0x0][_0x15194c(0x2c6)]),await this[_0x15194c(0x2ab)](_0x350bb7),_0x435ff6=this[_0x15194c(0x25f)](_0x350bb7,_0x2ace21[_0x15194c(0x287)],_0x2ace21[_0x15194c(0x2a2)]),this[_0x15194c(0x261)]=Math[_0x15194c(0x1d2)](this[_0x15194c(0x261)]/0x2);}return _0x435ff6?!this[_0x15194c(0x248)]()||(this[_0x15194c(0x27d)](!0x0),!0x1):this[_0x15194c(0x2b1)](_0x15194c(0x1d4));}[_0x563395(0x25f)](_0x1978aa,_0x57206e,_0x314bd3){const _0x2753b6=_0x563395;try{const _0x2dbd15={'document':this[_0x2753b6(0x299)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x1b3245,operationsB:_0x378498,originalOperations:_0x5aa04b}=_0x24882b(_0x1978aa,this[_0x2753b6(0x1db)],_0x2dbd15);K(_0x1b3245,this[_0x2753b6(0x299)][_0x2753b6(0x287)]),K(_0x378498,_0x57206e);for(const _0x12b111 of _0x1b3245){const _0x5315e9=_0x5aa04b[_0x2753b6(0x1c7)](_0x12b111);_0x12b111[_0x2753b6(0x1d1)]=_0x5315e9?_0x5315e9[_0x2753b6(0x1d1)]:null;}_0x314bd3&&(this[_0x2753b6(0x1e6)][_0x2753b6(0x1fc)](_0x1978aa,_0x314bd3),this[_0x2753b6(0x1fa)]=_0x314bd3),this[_0x2753b6(0x1db)]=[..._0x378498],this[_0x2753b6(0x231)](_0x1b3245),this[_0x2753b6(0x297)](_0x1978aa);}catch(_0x286634){return console[_0x2753b6(0x252)](_0x286634),!0x1;}return!0x0;}[_0x563395(0x231)](_0x41530b,_0x158a2b=!0x1){const _0x936675=_0x563395;this[_0x936675(0x272)][_0x936675(0x2a1)][_0x936675(0x26c)]({'isUndoable':!0x1,'isLocal':!0x1},_0x5917bc=>{const _0x294a84=_0x936675;for(const _0x379bfd of _0x41530b)this[_0x294a84(0x294)][_0x294a84(0x2a7)](_0x379bfd),this[_0x294a84(0x1e1)](_0x379bfd),_0x5917bc[_0x294a84(0x1dc)][_0x294a84(0x1ce)](_0x379bfd),this[_0x294a84(0x272)][_0x294a84(0x2a1)][_0x294a84(0x208)](_0x379bfd);});}[_0x563395(0x1e1)](_0x5e2fbe){const _0x5ee9ab=_0x563395,_0x34d8a3=this[_0x5ee9ab(0x2c8)](_0x5e2fbe);_0x34d8a3&&this[_0x5ee9ab(0x29b)][_0x5ee9ab(0x2a7)](_0x34d8a3);}[_0x563395(0x2c8)](_0x29d9fc){const _0x20229b=_0x563395;let _0x415782,_0x3137b2;switch(_0x29d9fc[_0x20229b(0x295)]){case _0x20229b(0x2c2):_0x415782=_0x29d9fc[_0x20229b(0x28a)][_0x20229b(0x21e)];break;case _0x20229b(0x1e4):if(_0x3137b2=_0x29d9fc[_0x20229b(0x209)],!_0x3137b2)return null;_0x415782=_0x3137b2[_0x20229b(0x21e)];break;case _0x20229b(0x1eb):_0x415782=_0x29d9fc[_0x20229b(0x21e)];break;case _0x20229b(0x1fb):_0x415782=_0x29d9fc[_0x20229b(0x29e)];break;case _0x20229b(0x2be):_0x415782=_0x29d9fc[_0x20229b(0x25e)][_0x20229b(0x21e)];break;default:return null;}return _0x415782[_0x20229b(0x24e)];}[_0x563395(0x297)](_0x4d2b70){const _0x2c21e7=_0x563395;_0x4d2b70[_0x2c21e7(0x262)](_0x500fae=>{const _0x52a5e6=_0x2c21e7,_0x50daac=_0x500fae[_0x52a5e6(0x232)]();_0x50daac[_0x52a5e6(0x1d1)]=_0x500fae[_0x52a5e6(0x1d1)],_0x50daac[_0x52a5e6(0x1e5)]=!!_0x500fae[_0x52a5e6(0x1e5)],_0x50daac[_0x52a5e6(0x204)]=_0x500fae[_0x52a5e6(0x204)],_0x50daac[_0x52a5e6(0x2c6)]+=this[_0x52a5e6(0x2aa)],_0x500fae[_0x52a5e6(0x23f)]&&this[_0x52a5e6(0x264)][_0x52a5e6(0x2a7)](_0x50daac),this[_0x52a5e6(0x217)][_0x52a5e6(0x1ce)](_0x50daac);});}[_0x563395(0x1c9)](_0x46ce8a){const _0x1e04dd=_0x563395,_0x2478e7=this[_0x1e04dd(0x272)][_0x1e04dd(0x275)][_0x1e04dd(0x1c7)](_0x1e04dd(0x29c)),_0x7f07df=this[_0x1e04dd(0x272)][_0x1e04dd(0x202)];_0x46ce8a||(_0x46ce8a=_0x4651ae(_0x7f07df,_0x1e04dd(0x28f))),_0x2478e7[_0x1e04dd(0x2a0)](_0x46ce8a,{'title':_0x4651ae(_0x7f07df,_0x1e04dd(0x269)),'namespace':_0x1e04dd(0x1ca)}),this[_0x1e04dd(0x2a8)]=!0x0,clearTimeout(this[_0x1e04dd(0x271)]),this[_0x1e04dd(0x1db)]=[],this[_0x1e04dd(0x272)][_0x1e04dd(0x275)][_0x1e04dd(0x1c7)](_0x27bbb7)[_0x1e04dd(0x27a)]();}[_0x563395(0x1dd)](){const _0x5d3aeb=_0x563395;this[_0x5d3aeb(0x284)]||(this[_0x5d3aeb(0x284)]=this[_0x5d3aeb(0x272)][_0x5d3aeb(0x275)][_0x5d3aeb(0x1c7)](_0x27b87e)[_0x5d3aeb(0x2a7)](_0x4651ae(this[_0x5d3aeb(0x272)][_0x5d3aeb(0x202)],_0x5d3aeb(0x258))));}[_0x563395(0x206)](){const _0x321e78=_0x563395;this[_0x321e78(0x284)]&&(this[_0x321e78(0x272)][_0x321e78(0x275)][_0x321e78(0x1c7)](_0x27b87e)[_0x321e78(0x21c)](this[_0x321e78(0x284)]),this[_0x321e78(0x284)]=null);}[_0x563395(0x28b)](_0x11d602){const _0x2fe138=_0x563395,_0x2ff158=_0x11d602[_0x2fe138(0x293)](_0x3d3748=>_0x3d3748[_0x2fe138(0x20d)]());return this[_0x2fe138(0x26f)][_0x2fe138(0x241)](_0x2ff158);}[_0x563395(0x28e)](_0x4fbb8b,_0xbd269e){const _0x1caea6=_0x563395;return this[_0x1caea6(0x26f)][_0x1caea6(0x1e7)](_0x4fbb8b)[_0x1caea6(0x293)]((_0x31092d,_0x98faa8)=>{const _0xe28982=_0x1caea6,_0x3377ff=_0xe28982(0x23d)==_0xbd269e[_0x98faa8][_0xe28982(0x295)];if(_0xe28982(0x1f1)==_0x31092d[_0xe28982(0x1d3)]){const _0x458a3a=_0x31092d[_0xe28982(0x28a)][_0xe28982(0x21e)];!this[_0xe28982(0x299)][_0xe28982(0x227)](_0x458a3a)&&(this[_0xe28982(0x299)][_0xe28982(0x281)](_0xe28982(0x23b),_0x458a3a)[_0xe28982(0x254)]=!0x1);}const _0x367c3a=_0x23f92f[_0xe28982(0x1d8)](_0x31092d,this[_0xe28982(0x299)]);return _0x367c3a[_0xe28982(0x296)]=_0x31092d[_0xe28982(0x296)],_0x367c3a[_0xe28982(0x1e5)]=_0x3377ff,_0x367c3a[_0xe28982(0x1d1)]=_0x3377ff?null:_0xbd269e[_0x98faa8][_0xe28982(0x214)],_0x367c3a[_0xe28982(0x23f)]=_0xe28982(0x29a)===_0xbd269e[_0x98faa8][_0xe28982(0x295)],_0x367c3a[_0xe28982(0x204)]=_0xbd269e[_0x98faa8][_0xe28982(0x204)],_0x367c3a;});}[_0x563395(0x28d)](){const _0x268dfc=_0x563395;this[_0x268dfc(0x2b8)]=!0x0,this[_0x268dfc(0x2b6)]()?this[_0x268dfc(0x27d)]():this[_0x268dfc(0x2b8)]=!0x1;}[_0x563395(0x2b6)](){const _0x322b68=_0x563395,_0x26cd89=this[_0x322b68(0x272)][_0x322b68(0x275)][_0x322b68(0x1c7)](_0x476ffd)[_0x322b68(0x1f0)][_0x322b68(0x1c7)](this[_0x322b68(0x2ad)]);return!this[_0x322b68(0x272)][_0x322b68(0x20a)]&&!!_0x26cd89&&_0x26cd89[_0x322b68(0x2bb)]>0x1&&this[_0x322b68(0x2b8)];}[_0x563395(0x248)](){const _0x580b90=_0x563395;return this[_0x580b90(0x1db)][_0x580b90(0x2bb)]>0x0||this[_0x580b90(0x2b6)]();}}export{l as RealTimeCollaborationClient};class $ extends Error{}function K(_0x49f93c,_0x536e2f){const _0x165453=_0x563395;for(const _0x5576f2 of _0x49f93c)_0x5576f2[_0x165453(0x2c6)]=_0x536e2f++;}function _0x4871(){const _0x3f3e7e=['_handleSendingSelectionMarkers','push','removeFromReconnectionStack','30618672DKPAaG','getOperationAuthor','locale','config','createdAt','_service','_clearPendingAction','_initSessionsHandling','applyOperation','newRange','isReadOnly','filter','lastOperationAcceptedAt','toJSON','suppressErrorInCollaboration','change:hasDomSelection','getUser','return','_handleReceivedOperations','addToReconnectionStack','userId','requires','createPositionFromPath','serverHistory','from','_disconnectService','_ignoredOperations','isEnabled','remove','data','root','change:_isPendingUpdate','Permissions','roots','then','sessionId','sessionCreatedAt','string','842672hcIFkT','getRoot','offset','disableReadOnlyMode','_isLoaded','slice','_handleInitialConnectionData','404','has','apply','rtc-destroyed','_applyOperationsSet','clone','start','_setUpDataInit','createPositionAt','_handleServerResponse','1260740RtKONx','pluginName','_handleReconnectionResponse','listenTo','$root','_initThrowingOnDataSet','init','selection','_isDisconnection','message','compress','_isEditingAllowed','end','7795164FHzWZB','409','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','register','_shouldSendUpdate','reconnection:\x20flushed\x20session','rootsAttributes','cloudDocumentVersion','setPermissions','realtimecollaborationclient-init-non-existent-root','rootName','metadata','fire','sessionAdd:','error','_connectAfterSessionHasBeenFlushed','_isAttached','isUndoneOperation','RealTimeCollaborationClient','loadRoot','PENDING_ACTION_SENDING_DATA','reconnect','getDocumentDetails','realtimecollaborationclient-init-session-connection-error','change:range','_bufferRootLoad','targetPosition','_handleExternalOperations','state','_currentBufferDelay','forEach','_baseBufferDelay','_disconnectionOperations','connection','realtimecollaborationclient-sendbufferedoperations','isOfficialPlugin','keys','Synchronization\x20issue','enableReadOnlyMode','reset','enqueueChange','realtimecollaborationclient','change:_isEditingAllowed','_compressor','realtimecollaborationclient-init-document-already-initialized','_sendBufferedOperationsDelayId','editor','operationsReceived','_getOperationsFromInitData','plugins','CollaborativeEditingService','addUser','differ','ready','disconnect','getMany','permissions','_sendBufferedOperationsDelayed','cloudServices.bundleVersion','history','wereChangesApplied','createRoot','realtimecollaborationclient-error','code','_pendingAction','3hjRCFj','currentDocumentSession','version','cloud-services-internal-error:\x20Not\x20connected.','29346jlhSrZ','position','_compressOperations','includes','_refreshUserSelectionMarkers','_decompressOperations','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','editing','_connectService','map','_knownOperations','type','wasUndone','_updateServerHistory','cloud-services-internal-error:\x20Request\x20timeout.','_document','cs:removeUser','_knownRootNames','Notification','directChange','affectedSelectable','startsWith','showWarning','model','lastOperationId','collaboration-missing-channelid','connected','entries','createUserMarkerOperations','add','_hasSynchronizationProblem','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_offset','_fetchMissingUsers','path','_channelId','stop','collaboration.channelId','mySessionId','_crash','collaboration','realtimecollaborationclient-init-connection-failed','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','document','_shouldSendSelectionUpdate','3978002rZOQSB','_hasSelectionChanged','realtimecollaborationclient-init-service-internal-error','_lastServerVersion','length','high','lastDocumentSession','move','realtimecollaborationclient-init-service-incorrect-server-operation','_waitUntilSynced','_operationToId','insert','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_sendBufferedOperations','CommentsOnly','baseVersion','size','_getAffectedRoot','isDocumentOperation','view','get','rtc-offline','_handleReconnectionError','real-time-collaboration','_loadRoot','multi-root-editor-root-attributes-no-root','connect','addOperation','_isPendingUpdate','2718950YxpEwv','_authorId','round','__className','realtimecollaborationclient-handleserverresponse','isPremiumPlugin','bind','getIdOfTheLastOperation','fromJSON','lastSyncVersion','destroy','_bufferedOperations','batch','_setPendingAction','sendOperations','off','affectsData','_addKnownRoot','finally','markers','marker','_isInit','_operationIdentifier','decompress','initData','unregister','getOperations','addRootAttribute','stopListening','set','document:write','attributes','channelSessions','InsertOperation','_saveOperationInBuffer','disconnected','define','createRange','parse','_isConnected','getConnectedSessions','catch','_lastSyncedOperationId','addRoot','setIdForTheLastOperation'];_0x4871=function(){return _0x3f3e7e;};return _0x4871();}class J{[_0x563395(0x21a)];[_0x563395(0x2c1)];constructor(_0x4a315c){const _0x12c4d0=_0x563395;this[_0x12c4d0(0x21a)]=_0x4a315c,this[_0x12c4d0(0x2c1)]=new WeakMap();}[_0x563395(0x1d7)](_0xd4ac11){const _0x3f12a5=_0x563395;let _0x4b6e48=_0xd4ac11[_0x3f12a5(0x2bb)];for(;_0x4b6e48--;){const _0x790509=_0xd4ac11[_0x4b6e48];if(!this[_0x3f12a5(0x21a)][_0x3f12a5(0x22e)](_0x790509)){if(!this[_0x3f12a5(0x2c1)][_0x3f12a5(0x22e)](_0x790509)){const _0x3df27=_0x1f7307()[_0x3f12a5(0x22b)](0x1,0x12);this[_0x3f12a5(0x2c1)][_0x3f12a5(0x1ed)](_0x790509,_0x3df27);}return this[_0x3f12a5(0x2c1)][_0x3f12a5(0x1c7)](_0x790509);}}}[_0x563395(0x1fc)](_0x4152fb,_0x447127){const _0x37142a=_0x563395;if(!_0x447127)return;let _0xd37b36=_0x4152fb[_0x37142a(0x2bb)];for(;_0xd37b36--;){const _0x1aa219=_0x4152fb[_0xd37b36];this[_0x37142a(0x21a)][_0x37142a(0x22e)](_0x1aa219)||this[_0x37142a(0x2c1)][_0x37142a(0x1ed)](_0x1aa219,_0x447127);}}}
|
|
23
|
+
function _0x44e0(){const _0x32c47a=['710XfdKGC','3864786BNIokZ','_disconnectService','sendOperations','sessionCreatedAt','decompress','view','reconnection:\x20flushed\x20session','ready','wereChangesApplied','realtimecollaborationclient','_isPendingUpdate','_hasSynchronizationProblem','change:hasDomSelection','end','_knownOperations','_isDisconnection','CommentsOnly','setPermissions','document:write','_decompressOperations','disableReadOnlyMode','_channelId','_isLoaded','isEnabled','_refreshUserSelectionMarkers','_connectService','createRange','change:_isPendingUpdate','string','_sendBufferedOperationsDelayed','_lastSyncedOperationId','connection','Notification','_handleInitialConnectionData','_handleReconnectionError','loadRoot','_lastServerVersion','_getAffectedRoot','5TUnmmM','_connectAfterSessionHasBeenFlushed','_bufferRootLoad','_handleSendingSelectionMarkers','bind','add','round','_operationToId','createUserMarkerOperations','change:_isEditingAllowed','from','_disconnectionOperations','markers','_saveOperationInBuffer','state','collaboration-missing-channelid','plugins','version','fromJSON','realtimecollaborationclient-init-connection-failed','_isInit','_knownRootNames','addOperation','metadata','getOperationAuthor','remove','lastSyncVersion','5218136DgewjU','_fetchMissingUsers','offset','entries','connected','selection','lastOperationAcceptedAt','init','isPremiumPlugin','set','multi-root-editor-root-attributes-no-root','stop','enqueueChange','destroy','path','_isConnected','_handleReceivedOperations','getConnectedSessions','_crash','compress','isReadOnly','rootName','getUser','marker','editor','rootsAttributes','forEach','affectsData','start','_addKnownRoot','_getOperationsFromInitData','cloudDocumentVersion','realtimecollaborationclient-sendbufferedoperations','map','isUndoneOperation','model','_isEditingAllowed','channelSessions','startsWith','message','getOperations','position','return','isDocumentOperation','length','batch','163684dmbTDM','enableReadOnlyMode','_waitUntilSynced','realtimecollaborationclient-error','slice','operationsReceived','unregister','_compressOperations','initData','data','catch','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','createRoot','history','serverHistory','push','_handleReconnectionResponse','finally','removeFromReconnectionStack','document','error','createPositionAt','size','rtc-offline','_compressor','off','realtimecollaborationclient-init-session-connection-error','requires','_sendBufferedOperations','_initThrowingOnDataSet','_initSessionsHandling','_loadRoot','409','getDocumentDetails','disconnected','1gmdqIC','pluginName','addRoot','isOfficialPlugin','83493SSjiDN','collaboration.channelId','sessionAdd:','_currentBufferDelay','realtimecollaborationclient-init-document-already-initialized','__className','_isAttached','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_shouldSendSelectionUpdate','createdAt','insert','directChange','_ignoredOperations','InsertOperation','realtimecollaborationclient-init-service-internal-error','affectedSelectable','CollaborativeEditingService','applyOperation','rtc-destroyed','_setPendingAction','locale','fire','lastDocumentSession','permissions','RealTimeCollaborationClient','reset','connect','_updateServerHistory','root','_handleServerResponse','cloudServices.bundleVersion','currentDocumentSession','disconnect','includes','addUser','_handleExternalOperations','reconnect','editing','createPositionFromPath','mySessionId','register','_baseBufferDelay','type','cs:removeUser','getRoot','collaboration','code','real-time-collaboration','addRootAttribute','get','_shouldSendUpdate','targetPosition','then','realtimecollaborationclient-init-non-existent-root','_pendingAction','_hasSelectionChanged','realtimecollaborationclient-init-service-incorrect-server-operation','_document','realtimecollaborationclient-handleserverresponse','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','differ','cloud-services-internal-error:\x20Request\x20timeout.','listenTo','clone','setIdForTheLastOperation','1094694hlGVlJ','_service','sessionId','addToReconnectionStack','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','config','Synchronization\x20issue','PENDING_ACTION_SENDING_DATA','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','Permissions','cloud-services-internal-error:\x20Not\x20connected.','baseVersion','parse','define','filter','_setUpDataInit','_applyOperationsSet','404','1352184FEREVQ','high','keys','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','showWarning','_authorId','getIdOfTheLastOperation','lastOperationId','apply','_operationIdentifier','move','has','roots','wasUndone','_bufferedOperations','_clearPendingAction','3610776MaGVsh','newRange','toJSON','_offset','_sendBufferedOperationsDelayId','userId','suppressErrorInCollaboration','getMany','$root','stopListening','attributes','change:range'];_0x44e0=function(){return _0x32c47a;};return _0x44e0();}function _0xd4c1(_0x4170a8,_0x2216c0){const _0x44e011=_0x44e0();return _0xd4c1=function(_0xd4c155,_0xe77dcf){_0xd4c155=_0xd4c155-0x11c;let _0x39cd48=_0x44e011[_0xd4c155];return _0x39cd48;},_0xd4c1(_0x4170a8,_0x2216c0);}const _0x42067f=_0xd4c1;(function(_0x16399c,_0x354050){const _0x270772=_0xd4c1,_0x38f7f3=_0x16399c();while(!![]){try{const _0x485e1d=-parseInt(_0x270772(0x1b9))/0x1*(parseInt(_0x270772(0x196))/0x2)+-parseInt(_0x270772(0x1fe))/0x3+-parseInt(_0x270772(0x210))/0x4+parseInt(_0x270772(0x14d))/0x5*(-parseInt(_0x270772(0x127))/0x6)+parseInt(_0x270772(0x168))/0x7+parseInt(_0x270772(0x220))/0x8+parseInt(_0x270772(0x1bd))/0x9*(parseInt(_0x270772(0x126))/0xa);if(_0x485e1d===_0x354050)break;else _0x38f7f3['push'](_0x38f7f3['shift']());}catch(_0x24180f){_0x38f7f3['push'](_0x38f7f3['shift']());}}}(_0x44e0,0x68231));import{Plugin as _0x155f6a,PendingActions as _0x5ef522}from'ckeditor5/src/core.js';import{CKEditorError as _0x43f757,version as _0x3bc043,uid as _0xb55173}from'ckeditor5/src/utils.js';import{Notification as _0x39dea8}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x3783a2,NoOperation as _0x5ee1d1,InsertOperation as _0x49f3d1,MarkerOperation as _0x1afab6,RootAttributeOperation as _0x2192ac,OperationFactory as _0x17d136,History as _0x1ff3cb}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x3f52fe}from'./websocketgateway.js';import{Sessions as _0x587e9e}from'./sessions.js';import{UserMarkers as _0x130729}from'./usermarkers.js';import{getTranslation as _0x538ef1}from'../common-translations.js';import{Compressor as _0x26ca9c}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x2d907d}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x4cd910,CollaborativeEditingService as _0x5c98f1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let G=0x1;class l extends _0x155f6a{static [_0x42067f(0x1cd)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x5c98f1)());[_0x42067f(0x11d)];[_0x42067f(0x200)];[_0x42067f(0x1a4)];[_0x42067f(0x13c)];[_0x42067f(0x1ff)];[_0x42067f(0x1f6)];[_0x42067f(0x1ae)];[_0x42067f(0x21e)];[_0x42067f(0x135)];[_0x42067f(0x162)];[_0x42067f(0x1f3)];[_0x42067f(0x1f4)];[_0x42067f(0x11e)];[_0x42067f(0x1e6)];[_0x42067f(0x1c0)];[_0x42067f(0x145)];[_0x42067f(0x158)];[_0x42067f(0x219)];static get[_0x42067f(0x1b1)](){return[_0x3f52fe,_0x587e9e,_0x130729,_0x5ef522,_0x2d907d,_0x39dea8];}static get[_0x42067f(0x1ba)](){const _0x109565=_0x42067f;return _0x109565(0x1d5);}static get[_0x42067f(0x1bc)](){return!0x0;}static get[_0x42067f(0x170)](){return!0x0;}get[_0x42067f(0x187)](){const _0x4b8b53=_0x42067f;return this[_0x4b8b53(0x14b)]+this[_0x4b8b53(0x11d)];}get[_0x42067f(0x14b)](){const _0x363308=_0x42067f;return this[_0x363308(0x1a4)][_0x363308(0x15e)]-this[_0x363308(0x11d)];}get[_0x42067f(0x167)](){const _0x470a12=_0x42067f,_0x41e50a=this[_0x470a12(0x1a4)][_0x470a12(0x190)]();for(let _0x87c3df=_0x41e50a[_0x470a12(0x194)]-0x1;_0x87c3df>=0x0;_0x87c3df--){const _0x36aa9a=_0x41e50a[_0x87c3df];if(!this[_0x470a12(0x158)][_0x470a12(0x21b)](_0x36aa9a))return _0x36aa9a[_0x470a12(0x209)]+0x1-this[_0x470a12(0x11d)];}return 0x0;}constructor(_0x24f184){const _0xae21fc=_0x42067f;if(super(_0x24f184),this[_0xae21fc(0x11d)]=0x0,this[_0xae21fc(0x200)]=null,this[_0xae21fc(0x1a4)]=new _0x1ff3cb(),this[_0xae21fc(0x180)][_0xae21fc(0x203)][_0xae21fc(0x20b)](_0xae21fc(0x1ea),{}),this[_0xae21fc(0x13c)]=this[_0xae21fc(0x180)][_0xae21fc(0x203)][_0xae21fc(0x1ee)](_0xae21fc(0x1be)),!this[_0xae21fc(0x13c)])throw new _0x43f757(_0xae21fc(0x15c),this);const _0x4309a3=_0x24f184[_0xae21fc(0x203)][_0xae21fc(0x1ee)](_0xae21fc(0x1db))||_0x3bc043;this[_0xae21fc(0x1ff)]=new l[(_0xae21fc(0x1cd))](_0x4309a3,this[_0xae21fc(0x13c)]),this[_0xae21fc(0x1f6)]=this[_0xae21fc(0x180)][_0xae21fc(0x18b)][_0xae21fc(0x1a9)],this[_0xae21fc(0x1ae)]=new _0x26ca9c(),this[_0xae21fc(0x21e)]=[],this[_0xae21fc(0x135)]=new WeakSet(),this[_0xae21fc(0x162)]=new Set(),this[_0xae21fc(0x171)](_0xae21fc(0x131),!0x1),this[_0xae21fc(0x171)](_0xae21fc(0x132),!0x1),this[_0xae21fc(0x1f3)]=null,this[_0xae21fc(0x1f4)]=!0x1,this[_0xae21fc(0x11e)]=null,this[_0xae21fc(0x1e6)]=0x12c,this[_0xae21fc(0x1c0)]=this[_0xae21fc(0x1e6)],this[_0xae21fc(0x145)]=null,this[_0xae21fc(0x158)]=new WeakSet(),this[_0xae21fc(0x219)]=new J(this[_0xae21fc(0x158)]);}[_0x42067f(0x16f)](){const _0x21ea9d=_0x42067f,_0x576f3a=this[_0x21ea9d(0x180)],_0x2a671c=_0x576f3a[_0x21ea9d(0x15d)][_0x21ea9d(0x1ee)](_0x2d907d),_0xe4c2d6=_0x576f3a[_0x21ea9d(0x15d)][_0x21ea9d(0x1ee)](_0x3f52fe);this[_0x21ea9d(0x1fb)](_0x2a671c,_0x21ea9d(0x165),(_0x259cb6,_0xa28b06)=>{const _0x5cc81f=_0x21ea9d,_0x2fcef1=_0xa28b06[0x0];_0x2fcef1[_0x5cc81f(0x215)]&&(_0x259cb6[_0x5cc81f(0x192)]=_0x2a671c[_0x5cc81f(0x17e)](_0x2fcef1[_0x5cc81f(0x215)]),_0x259cb6[_0x5cc81f(0x173)]()),null===_0x2fcef1[_0x5cc81f(0x215)]&&(_0x259cb6[_0x5cc81f(0x192)]=null,_0x259cb6[_0x5cc81f(0x173)]());},{'priority':_0x21ea9d(0x211)}),this[_0x21ea9d(0x1fb)](_0x576f3a[_0x21ea9d(0x18b)][_0x21ea9d(0x1a9)][_0x21ea9d(0x16d)],_0x21ea9d(0x125),(_0x14d026,_0x4f7d06)=>{const _0xef776f=_0x21ea9d;_0x4f7d06[_0xef776f(0x1c8)]&&this[_0xef776f(0x13f)]();}),this[_0x21ea9d(0x1fb)](_0x576f3a[_0x21ea9d(0x1e2)][_0x21ea9d(0x12c)],_0x21ea9d(0x133),()=>{const _0x5041a0=_0x21ea9d;this[_0x5041a0(0x13f)]();}),this[_0x21ea9d(0x1b3)](),_0x576f3a[_0x21ea9d(0x18b)]['on'](_0x21ea9d(0x1ce),(_0x531125,_0x5532c1)=>{const _0x2f1b43=_0x21ea9d,_0x1cecf0=_0x5532c1[0x0];_0x1cecf0[_0x2f1b43(0x193)]&&(this[_0x2f1b43(0x15a)](_0x1cecf0),this[_0x2f1b43(0x1ef)]()&&this[_0x2f1b43(0x144)]());}),this[_0x21ea9d(0x20d)](),this[_0x21ea9d(0x151)](_0x21ea9d(0x18c))['to'](_0xe4c2d6,_0x21ea9d(0x15b),this,_0x21ea9d(0x132),(_0x540fcd,_0xd8fa11)=>_0x21ea9d(0x16c)===_0x540fcd&&!_0xd8fa11),this['on'](_0x21ea9d(0x156),()=>{const _0x51a4ca=_0x21ea9d;this[_0x51a4ca(0x18c)]?_0x576f3a[_0x51a4ca(0x13b)](_0x51a4ca(0x1ad)):_0x576f3a[_0x51a4ca(0x197)](_0x51a4ca(0x1ad));}),this[_0x21ea9d(0x18c)]?_0x576f3a[_0x21ea9d(0x13b)](_0x21ea9d(0x1ad)):_0x576f3a[_0x21ea9d(0x197)](_0x21ea9d(0x1ad)),this[_0x21ea9d(0x171)](_0x21ea9d(0x177),!0x1);}async[_0x42067f(0x1e1)](){const _0x5a9b2d=_0x42067f,_0x567bda=this[_0x5a9b2d(0x180)][_0x5a9b2d(0x15d)][_0x5a9b2d(0x1ee)](_0x587e9e),_0x4ceb19=this[_0x5a9b2d(0x180)][_0x5a9b2d(0x15d)][_0x5a9b2d(0x1ee)](_0x3f52fe);try{this[_0x5a9b2d(0x131)]=!0x0,_0x567bda[_0x5a9b2d(0x19c)](this[_0x5a9b2d(0x13c)]);const _0x41524d=await this[_0x5a9b2d(0x1ff)][_0x5a9b2d(0x1e1)](_0x4ceb19[_0x5a9b2d(0x146)],this[_0x5a9b2d(0x167)]);await this[_0x5a9b2d(0x1a6)](_0x41524d)&&(this[_0x5a9b2d(0x131)]=!0x1,this[_0x5a9b2d(0x21f)]());const _0x100f21=await this[_0x5a9b2d(0x1ff)][_0x5a9b2d(0x179)]();_0x567bda[_0x5a9b2d(0x1e5)](this[_0x5a9b2d(0x13c)],_0x100f21),this[_0x5a9b2d(0x150)](),this[_0x5a9b2d(0x177)]=!0x0;}catch(_0x4de59f){if(function(_0x2022dc){const _0x3a59b5=_0x5a9b2d;return _0x3a59b5(0x20f)===_0x2022dc[_0x3a59b5(0x1eb)];}(_0x4de59f)&&this[_0x5a9b2d(0x200)])await this[_0x5a9b2d(0x14e)]();else{if(function(_0x3f48da){const _0x1f2960=_0x5a9b2d;return _0x1f2960(0x1b6)===_0x3f48da[_0x1f2960(0x1eb)];}(_0x4de59f)){const _0x105340=_0x538ef1(this[_0x5a9b2d(0x180)][_0x5a9b2d(0x1d1)],_0x5a9b2d(0x1c4));this[_0x5a9b2d(0x149)](_0x105340);}else{if(!(_0x4de59f instanceof $))throw _0x4de59f;this[_0x5a9b2d(0x149)]();}}}}[_0x42067f(0x175)](){const _0x2d2460=_0x42067f,_0x20c8dd=this[_0x2d2460(0x180)][_0x2d2460(0x15d)][_0x2d2460(0x1ee)](_0x3f52fe),_0xa3bd3d=this[_0x2d2460(0x180)][_0x2d2460(0x15d)][_0x2d2460(0x1ee)](_0x587e9e);this[_0x2d2460(0x180)][_0x2d2460(0x197)](_0x2d2460(0x1cf)),_0xa3bd3d[_0x2d2460(0x18d)][_0x2d2460(0x21b)](this[_0x2d2460(0x13c)])&&_0xa3bd3d[_0x2d2460(0x19c)](this[_0x2d2460(0x13c)]),_0x20c8dd[_0x2d2460(0x1a8)](this),this[_0x2d2460(0x128)](),super[_0x2d2460(0x175)]();}async[_0x42067f(0x1a6)](_0x152b5d){const _0x330558=_0x42067f;if(this[_0x330558(0x200)]!==_0x152b5d[_0x330558(0x200)]&&this[_0x330558(0x145)]!==_0x152b5d[_0x330558(0x217)])throw new $();return this[_0x330558(0x200)]=_0x152b5d[_0x330558(0x200)],this[_0x330558(0x1da)]([],{..._0x152b5d,'wereChangesApplied':!0x1,'data':_0x152b5d[_0x330558(0x19f)]},_0x330558(0x1e1));}async[_0x42067f(0x140)](_0x1b0ec3,_0x2f6ce0=!0x1){const _0x2c9836=_0x42067f,{connection:_0x128ae3}=this[_0x2c9836(0x180)][_0x2c9836(0x15d)][_0x2c9836(0x1ee)](_0x3f52fe);l[_0x2c9836(0x1cd)][_0x2c9836(0x179)](_0x128ae3,this[_0x2c9836(0x13c)])[_0x2c9836(0x1f1)](_0x13f747=>this[_0x2c9836(0x1b4)](_0x13f747))[_0x2c9836(0x1a0)](_0x28bd47=>{const _0x1231c8=_0x2c9836;this[_0x1231c8(0x17a)](_0x1231c8(0x1b0),_0x28bd47);}),this[_0x2c9836(0x1fb)](this[_0x2c9836(0x1ff)],_0x2c9836(0x19b),this[_0x2c9836(0x178)][_0x2c9836(0x151)](this)),this[_0x2c9836(0x1fb)](this[_0x2c9836(0x1ff)],_0x2c9836(0x1aa),(_0x3e9d30,_0x3ae1eb)=>{const _0x1a3681=_0x2c9836;this[_0x1a3681(0x17a)](_0x1a3681(0x1cb),_0x3ae1eb);}),this[_0x2c9836(0x1fb)](this[_0x2c9836(0x1ff)],_0x2c9836(0x1b8),()=>{const _0x1e3fcf=_0x2c9836;this[_0x1e3fcf(0x177)]=!0x1;});const _0x2af421=this[_0x2c9836(0x219)][_0x2c9836(0x216)](_0x1b0ec3);this[_0x2c9836(0x131)]=!0x0;const _0x353cf5=await this[_0x2c9836(0x1ff)][_0x2c9836(0x1d7)](_0x128ae3,this[_0x2c9836(0x19d)](_0x1b0ec3),_0x2af421);if(this[_0x2c9836(0x200)]=_0x353cf5[_0x2c9836(0x200)],_0x2f6ce0){if(!_0x353cf5[_0x2c9836(0x12f)])return void this[_0x2c9836(0x149)]();this[_0x2c9836(0x131)]=!0x1,this[_0x2c9836(0x21f)](),this[_0x2c9836(0x1a4)][_0x2c9836(0x1d6)](),this[_0x2c9836(0x11d)]=_0x353cf5[_0x2c9836(0x16a)],this[_0x2c9836(0x1a4)][_0x2c9836(0x15e)]=this[_0x2c9836(0x11d)],await this[_0x2c9836(0x1da)](_0x1b0ec3,_0x353cf5,_0x2c9836(0x12d));}else await this[_0x2c9836(0x148)](_0x353cf5,_0x1b0ec3);this[_0x2c9836(0x150)](),this[_0x2c9836(0x177)]=!0x0;}[_0x42067f(0x150)](){const _0x18e09e=_0x42067f,_0x26e138=this[_0x18e09e(0x180)][_0x18e09e(0x15d)][_0x18e09e(0x1ee)](_0x587e9e),_0xddb8e2=this[_0x18e09e(0x180)][_0x18e09e(0x15d)][_0x18e09e(0x1ee)](_0x130729),_0x3fbc7b=_0x26e138[_0x18e09e(0x18d)][_0x18e09e(0x1ee)](this[_0x18e09e(0x13c)]);_0x3fbc7b&&_0x3fbc7b[_0x18e09e(0x194)]>0x1?_0xddb8e2[_0x18e09e(0x155)]():this[_0x18e09e(0x1fb)](_0x26e138,_0x18e09e(0x1bf)+this[_0x18e09e(0x13c)],()=>{const _0x236e15=_0x18e09e;0x2===_0x26e138[_0x236e15(0x18d)][_0x236e15(0x1ee)](this[_0x236e15(0x13c)])[_0x236e15(0x194)]&&_0xddb8e2[_0x236e15(0x155)]();});}async[_0x42067f(0x178)](_0x336601,_0x2a2f3d,_0x358386,_0xbbd051){const _0x326d13=_0x42067f;if(!this[_0x326d13(0x131)]&&this[_0x326d13(0x1f6)][_0x326d13(0x15e)]==_0x2a2f3d){const _0x48d7f4=this[_0x326d13(0x13a)](_0x358386,_0xbbd051);await this[_0x326d13(0x169)](_0x48d7f4),this[_0x326d13(0x1e0)](_0x48d7f4,_0x2a2f3d,_0x358386[_0x326d13(0x217)])||this[_0x326d13(0x17a)](_0x326d13(0x1f5));}}async[_0x42067f(0x14e)](){const _0x57788a=_0x42067f;this[_0x57788a(0x128)]();const {locale:_0x3e2f8c}=this[_0x57788a(0x180)];let _0x4fe3cd;try{_0x4fe3cd=await this[_0x57788a(0x1ff)][_0x57788a(0x1b7)]();}catch{const _0x2ebef6=_0x538ef1(_0x3e2f8c,_0x57788a(0x202));return void this[_0x57788a(0x149)](_0x2ebef6);}const _0x319df4=_0x4fe3cd[_0x57788a(0x1dc)]||_0x4fe3cd[_0x57788a(0x1d3)];if(this[_0x57788a(0x145)]!==_0x319df4[_0x57788a(0x217)]){const _0x384ac6=_0x538ef1(_0x3e2f8c,_0x57788a(0x1f8));return void this[_0x57788a(0x149)](_0x384ac6);}await this[_0x57788a(0x140)](this[_0x57788a(0x180)][_0x57788a(0x18b)][_0x57788a(0x1a9)][_0x57788a(0x1a3)][_0x57788a(0x190)](),!0x0);}[_0x42067f(0x128)](){const _0x42fe7b=_0x42067f;this[_0x42fe7b(0x1ff)][_0x42fe7b(0x1dd)](),this[_0x42fe7b(0x21e)]=[],clearTimeout(this[_0x42fe7b(0x11e)]),this[_0x42fe7b(0x123)](this[_0x42fe7b(0x1ff)]);}[_0x42067f(0x1b4)](_0x393f85){const _0x499ec2=_0x42067f,_0xb32dc7=this[_0x499ec2(0x180)][_0x499ec2(0x15d)][_0x499ec2(0x1ee)](_0x587e9e);this[_0x499ec2(0x1fb)](_0xb32dc7,_0x499ec2(0x1bf)+this[_0x499ec2(0x13c)],(_0x4ff9dc,{session:_0xf174bc})=>{const _0x23a988=_0x499ec2;if(_0xf174bc['id']===_0xb32dc7[_0x23a988(0x1e4)]){_0x4ff9dc[_0x23a988(0x1af)]();const _0x51f1a9=this[_0x23a988(0x180)][_0x23a988(0x15d)][_0x23a988(0x21b)](_0x23a988(0x137))&&this[_0x23a988(0x180)][_0x23a988(0x15d)][_0x23a988(0x1ee)](_0x23a988(0x137));let _0x4fd6a3=_0xf174bc[_0x23a988(0x1d4)];_0x51f1a9&&_0x51f1a9[_0x23a988(0x13e)]&&(_0x4fd6a3=_0x4fd6a3[_0x23a988(0x20c)](_0x29667a=>_0x23a988(0x139)!==_0x29667a)),this[_0x23a988(0x180)][_0x23a988(0x15d)][_0x23a988(0x1ee)](_0x23a988(0x207))[_0x23a988(0x138)](_0x4fd6a3,this[_0x23a988(0x13c)]);}}),_0xb32dc7[_0x499ec2(0x1e5)](this[_0x499ec2(0x13c)],_0x393f85);}[_0x42067f(0x1b3)](){const _0x3a7683=_0x42067f,_0xf68642=this[_0x3a7683(0x180)][_0x3a7683(0x19f)][_0x3a7683(0x171)];this[_0x3a7683(0x180)][_0x3a7683(0x19f)][_0x3a7683(0x171)]=(..._0x52ae45)=>{const _0x3389eb=_0x3a7683;if(!_0x52ae45[_0x52ae45[_0x3389eb(0x194)]-0x1][_0x3389eb(0x120)])throw new _0x43f757(_0x3389eb(0x213),this);_0xf68642[_0x3389eb(0x218)](this[_0x3389eb(0x180)][_0x3389eb(0x19f)],_0x52ae45);};}[_0x42067f(0x20d)](){const _0x379672=_0x42067f;this[_0x379672(0x180)][_0x379672(0x19f)]['on'](_0x379672(0x16f),(_0x327dce,[_0x14fc9a])=>{const _0x178ee8=_0x379672;if(this[_0x178ee8(0x1f6)][_0x178ee8(0x15e)])throw new _0x43f757(_0x178ee8(0x1c1),this);_0x327dce[_0x178ee8(0x173)](),this[_0x178ee8(0x1d0)]();const _0x49496a=this[_0x178ee8(0x180)][_0x178ee8(0x203)][_0x178ee8(0x1ee)](_0x178ee8(0x181)),_0x5be0c2=this[_0x178ee8(0x186)](_0x14fc9a,_0x49496a);0x0==_0x5be0c2[_0x178ee8(0x194)]&&_0x5be0c2[_0x178ee8(0x1a5)](new _0x5ee1d1(0x0)),_0x327dce[_0x178ee8(0x192)]=this[_0x178ee8(0x140)](_0x5be0c2)[_0x178ee8(0x1f1)](()=>{const _0x404241=_0x178ee8;this[_0x404241(0x180)][_0x404241(0x15d)][_0x404241(0x1ee)](_0x3f52fe)[_0x404241(0x201)](this),this[_0x404241(0x180)][_0x404241(0x19f)][_0x404241(0x1d2)](_0x404241(0x12e));})[_0x178ee8(0x1a0)](_0x2b8a72=>this[_0x178ee8(0x17a)](_0x178ee8(0x160),_0x2b8a72))[_0x178ee8(0x1a7)](()=>this[_0x178ee8(0x21f)]());},{'priority':_0x379672(0x211)}),this[_0x379672(0x180)]['on'](_0x379672(0x14a),async(_0x3f6341,[_0x11c678,_0x568fd2])=>{const _0x4f3f3d=_0x379672;_0x3f6341[_0x4f3f3d(0x173)]();const _0x56f5f0=this[_0x4f3f3d(0x180)][_0x4f3f3d(0x18b)][_0x4f3f3d(0x1a9)][_0x4f3f3d(0x1e9)](_0x11c678);if(!this[_0x4f3f3d(0x162)][_0x4f3f3d(0x21b)](_0x11c678)){const _0x53819b=_0x568fd2&&_0x568fd2[_0x4f3f3d(0x19f)]?_0x568fd2[_0x4f3f3d(0x19f)]:'',_0x424584=_0x568fd2&&_0x568fd2[_0x4f3f3d(0x124)]?_0x568fd2[_0x4f3f3d(0x124)]:{};await this[_0x4f3f3d(0x1b5)](_0x11c678,_0x53819b,_0x424584);}this[_0x4f3f3d(0x180)][_0x4f3f3d(0x18b)][_0x4f3f3d(0x174)]({'isUndoable':!0x1},()=>{const _0x36d49b=_0x4f3f3d;_0x56f5f0[_0x36d49b(0x13d)]=!0x0,this[_0x36d49b(0x180)][_0x36d49b(0x18b)][_0x36d49b(0x1a9)][_0x36d49b(0x1f9)][_0x36d49b(0x14f)](_0x56f5f0);});},{'priority':_0x379672(0x211)});}async[_0x42067f(0x169)](_0xda126e){const _0x3b08da=_0x42067f,_0x13a2e4=this[_0x3b08da(0x180)][_0x3b08da(0x15d)][_0x3b08da(0x1ee)](_0x2d907d),{connection:_0x572626}=this[_0x3b08da(0x180)][_0x3b08da(0x15d)][_0x3b08da(0x1ee)](_0x3f52fe),_0x2b91b8=new Set();for(const _0x32b90f of _0xda126e){const _0x538e67=_0x32b90f[_0x3b08da(0x215)];_0x538e67&&!_0x13a2e4[_0x3b08da(0x17e)](_0x538e67)&&_0x2b91b8[_0x3b08da(0x152)](_0x538e67);}if(0x0===_0x2b91b8[_0x3b08da(0x1ac)])return;const _0x4c100f=await _0x4cd910[_0x3b08da(0x121)](_0x572626,Array[_0x3b08da(0x157)](_0x2b91b8));for(const _0x29ebf of _0x4c100f)_0x13a2e4[_0x3b08da(0x17e)](_0x29ebf['id'])||_0x13a2e4[_0x3b08da(0x1df)](_0x29ebf);}[_0x42067f(0x186)](_0x3ab96c,_0xe98d96={}){const _0x2dbcd5=_0x42067f,_0x463c18=this[_0x2dbcd5(0x180)][_0x2dbcd5(0x18b)],_0x536582=[];let _0x1b1359=0x0;const _0x5b2684=_0x2dbcd5(0x143)==typeof _0x3ab96c?{'main':_0x3ab96c}:_0x3ab96c;for(const _0x18f26d of Object[_0x2dbcd5(0x212)](_0x5b2684)){if(!this[_0x2dbcd5(0x1f6)][_0x2dbcd5(0x21c)][_0x2dbcd5(0x21b)](_0x18f26d))throw new _0x43f757(_0x2dbcd5(0x1f2),this);const _0x14af9b=this[_0x2dbcd5(0x180)][_0x2dbcd5(0x19f)][_0x2dbcd5(0x20a)](_0x5b2684[_0x18f26d]),_0x1c5d59=this[_0x2dbcd5(0x1f6)][_0x2dbcd5(0x1e9)](_0x18f26d),_0x2e5f7a=new _0x49f3d1(_0x463c18[_0x2dbcd5(0x1ab)](_0x1c5d59,0x0),_0x14af9b,_0x1b1359++);_0x536582[_0x2dbcd5(0x1a5)](_0x2e5f7a);for(const [_0xc1b7e2,_0x52e422]of _0x14af9b[_0x2dbcd5(0x159)]){const _0x1f4e54=_0x463c18[_0x2dbcd5(0x141)](_0x463c18[_0x2dbcd5(0x1e3)](_0x1c5d59,_0x52e422[_0x2dbcd5(0x184)][_0x2dbcd5(0x176)][_0x2dbcd5(0x19a)]()),_0x463c18[_0x2dbcd5(0x1e3)](_0x1c5d59,_0x52e422[_0x2dbcd5(0x134)][_0x2dbcd5(0x176)][_0x2dbcd5(0x19a)]())),_0x4bc2dd=new _0x1afab6(_0xc1b7e2,null,_0x1f4e54,_0x463c18[_0x2dbcd5(0x159)],!0x0,_0x1b1359++);_0x536582[_0x2dbcd5(0x1a5)](_0x4bc2dd);}}if(_0xe98d96)for(const [_0x328b70,_0x14190f]of Object[_0x2dbcd5(0x16b)](_0xe98d96)){const _0x4489be=_0x463c18[_0x2dbcd5(0x1a9)][_0x2dbcd5(0x1e9)](_0x328b70);if(!_0x4489be)throw new _0x43f757(_0x2dbcd5(0x172),null);for(const [_0x45b24f,_0x1a113f]of Object[_0x2dbcd5(0x16b)](_0x14190f))if(null!==_0x1a113f){const _0x4b2ff5=new _0x2192ac(_0x4489be,_0x45b24f,null,_0x1a113f,_0x1b1359++);_0x536582[_0x2dbcd5(0x1a5)](_0x4b2ff5);}}return _0x536582;}async[_0x42067f(0x1b5)](_0x5ef910,_0x2dd3ca,_0x57ad19){const _0x596fda=_0x42067f;this[_0x596fda(0x186)]({[_0x5ef910]:_0x2dd3ca},{[_0x5ef910]:_0x57ad19})[_0x596fda(0x182)]((_0x49a007,_0x586fe5)=>{const _0x1207df=_0x596fda;_0x49a007[_0x1207df(0x209)]=this[_0x1207df(0x1f6)][_0x1207df(0x15e)]+_0x586fe5,_0x49a007[_0x1207df(0x161)]=!0x0,this[_0x1207df(0x15a)](_0x49a007);}),this[_0x596fda(0x144)](),await this[_0x596fda(0x198)]();}async[_0x42067f(0x148)](_0x43d593,_0x4007ec){const _0x3e6fca=_0x42067f;let _0x3efe51;this[_0x3e6fca(0x11d)]=_0x43d593[_0x3e6fca(0x16a)];const _0xb3f53f=_0x43d593[_0x3e6fca(0x12f)]&&!_0x43d593[_0x3e6fca(0x19e)],_0x35608f=_0xb3f53f?0x0:_0x43d593[_0x3e6fca(0x19f)][_0x3e6fca(0x209)];if(_0x4007ec[_0x3e6fca(0x182)](_0x3e597f=>{const _0x340e89=_0x3e6fca;_0x3e597f[_0x340e89(0x161)]=!0x0,_0x3e597f[_0x340e89(0x1c6)]=_0x43d593[_0x340e89(0x12a)],_0x3e597f[_0x340e89(0x215)]=null;}),_0xb3f53f)_0x3efe51=_0x4007ec,this[_0x3e6fca(0x20e)](_0x3efe51,_0xb3f53f);else{if(_0x43d593[_0x3e6fca(0x19e)]){const _0x202fd6=this[_0x3e6fca(0x186)](_0x43d593[_0x3e6fca(0x19e)]);this[_0x3e6fca(0x1f6)][_0x3e6fca(0x1a3)][_0x3e6fca(0x15e)]=-_0x202fd6[_0x3e6fca(0x194)],_0x202fd6[_0x3e6fca(0x182)](_0x24d2c2=>{const _0x2ced2f=_0x3e6fca;_0x24d2c2[_0x2ced2f(0x209)]-=_0x202fd6[_0x2ced2f(0x194)],_0x24d2c2[_0x2ced2f(0x1c6)]=_0x43d593[_0x2ced2f(0x12a)],_0x24d2c2[_0x2ced2f(0x161)]=!0x0,_0x24d2c2[_0x2ced2f(0x215)]=null;}),this[_0x3e6fca(0x20e)](_0x202fd6,!0x0),this[_0x3e6fca(0x1a4)][_0x3e6fca(0x15e)]=-_0x202fd6[_0x3e6fca(0x194)]+this[_0x3e6fca(0x11d)],this[_0x3e6fca(0x1d8)](_0x202fd6);}this[_0x3e6fca(0x1f6)][_0x3e6fca(0x1a3)][_0x3e6fca(0x15e)]=_0x35608f,_0x3efe51=this[_0x3e6fca(0x13a)](_0x43d593[_0x3e6fca(0x19f)],_0x43d593[_0x3e6fca(0x164)]),await this[_0x3e6fca(0x169)](_0x3efe51),this[_0x3e6fca(0x20e)](_0x3efe51,_0xb3f53f);}_0x43d593[_0x3e6fca(0x217)]&&(this[_0x3e6fca(0x219)][_0x3e6fca(0x1fd)](_0x3efe51,_0x43d593[_0x3e6fca(0x217)]),this[_0x3e6fca(0x145)]=_0x43d593[_0x3e6fca(0x217)]),this[_0x3e6fca(0x1a4)][_0x3e6fca(0x15e)]=_0x35608f+this[_0x3e6fca(0x11d)],this[_0x3e6fca(0x1d8)](_0x3efe51),_0x4007ec[_0x3e6fca(0x20c)](_0x5ae409=>{const _0x4966b1=_0x3e6fca,_0x97031d=this[_0x4966b1(0x14c)](_0x5ae409);return _0x97031d&&!this[_0x4966b1(0x162)][_0x4966b1(0x21b)](_0x97031d);})[_0x3e6fca(0x182)]((_0x4dc980,_0x138f2)=>{const _0x5bf6c7=_0x3e6fca;_0x4dc980[_0x5bf6c7(0x209)]=this[_0x5bf6c7(0x1f6)][_0x5bf6c7(0x15e)]+_0x138f2,this[_0x5bf6c7(0x15a)](_0x4dc980);}),this[_0x3e6fca(0x1ef)]()?(this[_0x3e6fca(0x1c0)]=0x0,this[_0x3e6fca(0x144)](!0x0),await this[_0x3e6fca(0x198)]()):(this[_0x3e6fca(0x131)]=!0x1,this[_0x3e6fca(0x21f)]());}[_0x42067f(0x17a)](_0x23349f,_0x27c781){const _0x486c2f=_0x42067f,_0x428202=_0x27c781&&_0x27c781[_0x486c2f(0x18f)];if(_0x428202&&_0x428202[_0x486c2f(0x18e)](_0x486c2f(0x130)))throw _0x27c781;const _0x4504d9=this[_0x486c2f(0x180)][_0x486c2f(0x15d)][_0x486c2f(0x1ee)](_0x3f52fe);throw this[_0x486c2f(0x131)]=!0x0,_0x4504d9[_0x486c2f(0x1dd)](),this[_0x486c2f(0x180)][_0x486c2f(0x197)](_0x486c2f(0x199)),new _0x43f757(_0x23349f,this[_0x486c2f(0x180)],_0x428202?{'originalError':_0x428202}:void 0x0);}[_0x42067f(0x15a)](_0x3494c7){const _0x4771e5=_0x42067f;this[_0x4771e5(0x135)][_0x4771e5(0x21b)](_0x3494c7)||(this[_0x4771e5(0x135)][_0x4771e5(0x152)](_0x3494c7),this[_0x4771e5(0x21e)][_0x4771e5(0x1a5)](_0x3494c7),this[_0x4771e5(0x1f3)]||_0x4771e5(0x17f)==_0x3494c7[_0x4771e5(0x1e7)]&&!_0x3494c7[_0x4771e5(0x183)]||this[_0x4771e5(0x1d0)]());}[_0x42067f(0x144)](_0x3fbc5c=!0x1){const _0x13e550=_0x42067f;!_0x3fbc5c&&this[_0x13e550(0x131)]||(this[_0x13e550(0x131)]=!0x0,clearTimeout(this[_0x13e550(0x11e)]),this[_0x13e550(0x11e)]=setTimeout(()=>{const _0x4491dc=_0x13e550;this[_0x4491dc(0x1b2)]()[_0x4491dc(0x1f1)](_0x504383=>{const _0x45a9d3=_0x4491dc;_0x504383&&(this[_0x45a9d3(0x21f)](),this[_0x45a9d3(0x131)]=!0x1);})[_0x4491dc(0x1a0)](_0x4b326e=>{const _0x329acb=_0x4491dc;this[_0x329acb(0x21f)](),this[_0x329acb(0x131)]=!0x1,function(_0x543c3a){const _0xc0ae1d=_0x329acb;return _0x543c3a[_0xc0ae1d(0x18f)][_0xc0ae1d(0x18e)](_0xc0ae1d(0x208))||_0x543c3a[_0xc0ae1d(0x18f)][_0xc0ae1d(0x18e)](_0xc0ae1d(0x1a1))||_0x543c3a[_0xc0ae1d(0x18f)][_0xc0ae1d(0x18e)](_0xc0ae1d(0x1fa));}(_0x4b326e)||this[_0x329acb(0x17a)](_0x4b326e[_0x329acb(0x18f)],_0x4b326e);});},this[_0x13e550(0x1c0)]));}[_0x42067f(0x198)](){return new Promise(_0x2a3dcc=>{const _0x3c5955=_0xd4c1;this['on'](_0x3c5955(0x142),()=>{_0x2a3dcc();});});}async[_0x42067f(0x1b2)](){const _0x35560d=_0x42067f,_0x1cbfe2=this[_0x35560d(0x180)][_0x35560d(0x15d)][_0x35560d(0x1ee)](_0x130729);if(this[_0x35560d(0x1c5)]()&&(_0x1cbfe2[_0x35560d(0x155)](),this[_0x35560d(0x1f4)]=!0x1),!this[_0x35560d(0x1ef)]())return!0x0;const _0x4f8f30=[...this[_0x35560d(0x21e)]];for(const _0x5db295 of _0x4f8f30)_0x5db295[_0x35560d(0x21d)]=this[_0x35560d(0x1f6)][_0x35560d(0x1a3)][_0x35560d(0x18a)](_0x5db295);const _0x2d588d=this[_0x35560d(0x219)][_0x35560d(0x216)](_0x4f8f30),_0x239c56=G++,_0x382e82=this[_0x35560d(0x19d)](_0x4f8f30),_0x29d6ea=await this[_0x35560d(0x1ff)][_0x35560d(0x129)](_0x382e82,_0x382e82[_0x35560d(0x209)],_0x2d588d);try{return await this[_0x35560d(0x1da)](_0x4f8f30,_0x29d6ea,_0x239c56);}catch(_0x59b79a){return this[_0x35560d(0x17a)](_0x35560d(0x188),_0x59b79a);}}async[_0x42067f(0x1da)](_0x3d6764,_0x47d84d,_0xc2eab6){const _0x1c10d0=_0x42067f;if(_0x1c10d0(0x1aa)in _0x47d84d)throw _0x47d84d[_0x1c10d0(0x1aa)];let _0x1186b2=!0x1;if(_0x47d84d[_0x1c10d0(0x12f)]){_0x47d84d[_0x1c10d0(0x217)]&&(this[_0x1c10d0(0x145)]=_0x47d84d[_0x1c10d0(0x217)]),this[_0x1c10d0(0x21e)]=this[_0x1c10d0(0x21e)][_0x1c10d0(0x20c)](_0x3dfc03=>!_0x3d6764[_0x1c10d0(0x1de)](_0x3dfc03));for(const _0x33469d of _0x3d6764)_0x33469d[_0x1c10d0(0x1c6)]=_0x1c10d0(0x16e)in _0x47d84d&&_0x47d84d[_0x1c10d0(0x16e)]||void 0x0;K(_0x3d6764,_0x47d84d[_0x1c10d0(0x15e)]-_0x3d6764[_0x1c10d0(0x194)]),this[_0x1c10d0(0x1d8)](_0x3d6764);const _0x4ce15e=_0x3d6764[_0x1c10d0(0x20c)](_0x5cb6f9=>{const _0x1d504b=_0x1c10d0;if(!_0x5cb6f9[_0x1d504b(0x161)])return!0x1;const _0x46796d=this[_0x1d504b(0x14c)](_0x5cb6f9);return _0x46796d&&!this[_0x1d504b(0x162)][_0x1d504b(0x21b)](_0x46796d);});K(_0x4ce15e,this[_0x1c10d0(0x1f6)][_0x1c10d0(0x15e)]),this[_0x1c10d0(0x20e)](_0x4ce15e),_0x1186b2=!0x0,this[_0x1c10d0(0x1c0)]=this[_0x1c10d0(0x1e6)];}else{const _0x2d7e11=this[_0x1c10d0(0x13a)](_0x47d84d[_0x1c10d0(0x19f)],_0x47d84d[_0x1c10d0(0x164)])[_0x1c10d0(0x20c)](_0x2c0346=>_0x2c0346[_0x1c10d0(0x209)]>=this[_0x1c10d0(0x14b)]);_0x2d7e11[_0x1c10d0(0x182)](_0x5d746a=>this[_0x1c10d0(0x185)](_0x5d746a)),this[_0x1c10d0(0x21e)]=this[_0x1c10d0(0x21e)][_0x1c10d0(0x20c)](_0x212697=>!_0x212697[_0x1c10d0(0x161)]||!this[_0x1c10d0(0x162)][_0x1c10d0(0x21b)](this[_0x1c10d0(0x14c)](_0x212697))),this[_0x1c10d0(0x21e)][_0x1c10d0(0x194)]&&K(this[_0x1c10d0(0x21e)],this[_0x1c10d0(0x21e)][0x0][_0x1c10d0(0x209)]),await this[_0x1c10d0(0x169)](_0x2d7e11),_0x1186b2=this[_0x1c10d0(0x1e0)](_0x2d7e11,_0x47d84d[_0x1c10d0(0x15e)],_0x47d84d[_0x1c10d0(0x217)]),this[_0x1c10d0(0x1c0)]=Math[_0x1c10d0(0x153)](this[_0x1c10d0(0x1c0)]/0x2);}return _0x1186b2?!this[_0x1c10d0(0x1ef)]()||(this[_0x1c10d0(0x144)](!0x0),!0x1):this[_0x1c10d0(0x17a)](_0x1c10d0(0x1f7));}[_0x42067f(0x1e0)](_0x446fc4,_0x2714fc,_0x2e69f4){const _0x44e0d0=_0x42067f;try{const _0x400032={'document':this[_0x44e0d0(0x1f6)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x40097e,operationsB:_0x47b6e7,originalOperations:_0x3e9b15}=_0x3783a2(_0x446fc4,this[_0x44e0d0(0x21e)],_0x400032);K(_0x40097e,this[_0x44e0d0(0x1f6)][_0x44e0d0(0x15e)]),K(_0x47b6e7,_0x2714fc);for(const _0x40a0ea of _0x40097e){const _0x1237e7=_0x3e9b15[_0x44e0d0(0x1ee)](_0x40a0ea);_0x40a0ea[_0x44e0d0(0x215)]=_0x1237e7?_0x1237e7[_0x44e0d0(0x215)]:null;}_0x2e69f4&&(this[_0x44e0d0(0x219)][_0x44e0d0(0x1fd)](_0x446fc4,_0x2e69f4),this[_0x44e0d0(0x145)]=_0x2e69f4),this[_0x44e0d0(0x21e)]=[..._0x47b6e7],this[_0x44e0d0(0x20e)](_0x40097e),this[_0x44e0d0(0x1d8)](_0x446fc4);}catch(_0x3f6674){return console[_0x44e0d0(0x1aa)](_0x3f6674),!0x1;}return!0x0;}[_0x42067f(0x20e)](_0x26f6b2,_0x54ed80=!0x1){const _0x561fce=_0x42067f;this[_0x561fce(0x180)][_0x561fce(0x18b)][_0x561fce(0x174)]({'isUndoable':!0x1,'isLocal':!0x1},_0x31b458=>{const _0x297ba8=_0x561fce;for(const _0xf347a3 of _0x26f6b2)this[_0x297ba8(0x135)][_0x297ba8(0x152)](_0xf347a3),this[_0x297ba8(0x185)](_0xf347a3),_0x31b458[_0x297ba8(0x195)][_0x297ba8(0x163)](_0xf347a3),this[_0x297ba8(0x180)][_0x297ba8(0x18b)][_0x297ba8(0x1ce)](_0xf347a3);});}[_0x42067f(0x185)](_0x1ef906){const _0x5cbba9=_0x42067f,_0x531bcf=this[_0x5cbba9(0x14c)](_0x1ef906);_0x531bcf&&this[_0x5cbba9(0x162)][_0x5cbba9(0x152)](_0x531bcf);}[_0x42067f(0x14c)](_0xa0ca84){const _0xaf20b8=_0x42067f;let _0x57c405,_0x592988;switch(_0xa0ca84[_0xaf20b8(0x1e7)]){case _0xaf20b8(0x1c7):_0x57c405=_0xa0ca84[_0xaf20b8(0x191)][_0xaf20b8(0x1d9)];break;case _0xaf20b8(0x17f):if(_0x592988=_0xa0ca84[_0xaf20b8(0x221)],!_0x592988)return null;_0x57c405=_0x592988[_0xaf20b8(0x1d9)];break;case _0xaf20b8(0x1ed):_0x57c405=_0xa0ca84[_0xaf20b8(0x1d9)];break;case _0xaf20b8(0x1bb):_0x57c405=_0xa0ca84[_0xaf20b8(0x1cc)];break;case _0xaf20b8(0x21a):_0x57c405=_0xa0ca84[_0xaf20b8(0x1f0)][_0xaf20b8(0x1d9)];break;default:return null;}return _0x57c405[_0xaf20b8(0x17d)];}[_0x42067f(0x1d8)](_0x38e129){const _0x578fe3=_0x42067f;_0x38e129[_0x578fe3(0x182)](_0x1f021a=>{const _0x4df0f8=_0x578fe3,_0x58a37f=_0x1f021a[_0x4df0f8(0x1fc)]();_0x58a37f[_0x4df0f8(0x215)]=_0x1f021a[_0x4df0f8(0x215)],_0x58a37f[_0x4df0f8(0x161)]=!!_0x1f021a[_0x4df0f8(0x161)],_0x58a37f[_0x4df0f8(0x1c6)]=_0x1f021a[_0x4df0f8(0x1c6)],_0x58a37f[_0x4df0f8(0x209)]+=this[_0x4df0f8(0x11d)],_0x1f021a[_0x4df0f8(0x136)]&&this[_0x4df0f8(0x158)][_0x4df0f8(0x152)](_0x58a37f),this[_0x4df0f8(0x1a4)][_0x4df0f8(0x163)](_0x58a37f);});}[_0x42067f(0x149)](_0x129042){const _0x5f1bee=_0x42067f,_0x5cbdcf=this[_0x5f1bee(0x180)][_0x5f1bee(0x15d)][_0x5f1bee(0x1ee)](_0x5f1bee(0x147)),_0x444bcd=this[_0x5f1bee(0x180)][_0x5f1bee(0x1d1)];_0x129042||(_0x129042=_0x538ef1(_0x444bcd,_0x5f1bee(0x206))),_0x5cbdcf[_0x5f1bee(0x214)](_0x129042,{'title':_0x538ef1(_0x444bcd,_0x5f1bee(0x204)),'namespace':_0x5f1bee(0x1ec)}),this[_0x5f1bee(0x132)]=!0x0,clearTimeout(this[_0x5f1bee(0x11e)]),this[_0x5f1bee(0x21e)]=[],this[_0x5f1bee(0x180)][_0x5f1bee(0x15d)][_0x5f1bee(0x1ee)](_0x3f52fe)[_0x5f1bee(0x1dd)]();}[_0x42067f(0x1d0)](){const _0x41765b=_0x42067f;this[_0x41765b(0x1f3)]||(this[_0x41765b(0x1f3)]=this[_0x41765b(0x180)][_0x41765b(0x15d)][_0x41765b(0x1ee)](_0x5ef522)[_0x41765b(0x152)](_0x538ef1(this[_0x41765b(0x180)][_0x41765b(0x1d1)],_0x41765b(0x205))));}[_0x42067f(0x21f)](){const _0x213b72=_0x42067f;this[_0x213b72(0x1f3)]&&(this[_0x213b72(0x180)][_0x213b72(0x15d)][_0x213b72(0x1ee)](_0x5ef522)[_0x213b72(0x166)](this[_0x213b72(0x1f3)]),this[_0x213b72(0x1f3)]=null);}[_0x42067f(0x19d)](_0x571718){const _0x472b7c=_0x42067f,_0x35a526=_0x571718[_0x472b7c(0x189)](_0x24225d=>_0x24225d[_0x472b7c(0x11c)]());return this[_0x472b7c(0x1ae)][_0x472b7c(0x17b)](_0x35a526);}[_0x42067f(0x13a)](_0x3e34ef,_0xbbcb92){const _0x44cb04=_0x42067f;return this[_0x44cb04(0x1ae)][_0x44cb04(0x12b)](_0x3e34ef)[_0x44cb04(0x189)]((_0x35fea5,_0x54e815)=>{const _0x242c64=_0x44cb04,_0x33ef44=_0x242c64(0x16f)==_0xbbcb92[_0x54e815][_0x242c64(0x1e7)];if(_0x242c64(0x1ca)==_0x35fea5[_0x242c64(0x1c2)]){const _0x42c91c=_0x35fea5[_0x242c64(0x191)][_0x242c64(0x1d9)];!this[_0x242c64(0x1f6)][_0x242c64(0x1e9)](_0x42c91c)&&(this[_0x242c64(0x1f6)][_0x242c64(0x1a2)](_0x242c64(0x122),_0x42c91c)[_0x242c64(0x1c3)]=!0x1);}const _0x20953b=_0x17d136[_0x242c64(0x15f)](_0x35fea5,this[_0x242c64(0x1f6)]);return _0x20953b[_0x242c64(0x21d)]=_0x35fea5[_0x242c64(0x21d)],_0x20953b[_0x242c64(0x161)]=_0x33ef44,_0x20953b[_0x242c64(0x215)]=_0x33ef44?null:_0xbbcb92[_0x54e815][_0x242c64(0x11f)],_0x20953b[_0x242c64(0x136)]=_0x242c64(0x1e8)===_0xbbcb92[_0x54e815][_0x242c64(0x1e7)],_0x20953b[_0x242c64(0x1c6)]=_0xbbcb92[_0x54e815][_0x242c64(0x1c6)],_0x20953b;});}[_0x42067f(0x13f)](){const _0x3d399a=_0x42067f;this[_0x3d399a(0x1f4)]=!0x0,this[_0x3d399a(0x1c5)]()?this[_0x3d399a(0x144)]():this[_0x3d399a(0x1f4)]=!0x1;}[_0x42067f(0x1c5)](){const _0x2936dd=_0x42067f,_0x103709=this[_0x2936dd(0x180)][_0x2936dd(0x15d)][_0x2936dd(0x1ee)](_0x587e9e)[_0x2936dd(0x18d)][_0x2936dd(0x1ee)](this[_0x2936dd(0x13c)]);return!this[_0x2936dd(0x180)][_0x2936dd(0x17c)]&&!!_0x103709&&_0x103709[_0x2936dd(0x194)]>0x1&&this[_0x2936dd(0x1f4)];}[_0x42067f(0x1ef)](){const _0x38af34=_0x42067f;return this[_0x38af34(0x21e)][_0x38af34(0x194)]>0x0||this[_0x38af34(0x1c5)]();}}export{l as RealTimeCollaborationClient};class $ extends Error{}function K(_0x58118d,_0x4b34fa){const _0x142f73=_0x42067f;for(const _0x17158d of _0x58118d)_0x17158d[_0x142f73(0x209)]=_0x4b34fa++;}class J{[_0x42067f(0x1c9)];[_0x42067f(0x154)];constructor(_0x5a90ab){const _0x24bb8c=_0x42067f;this[_0x24bb8c(0x1c9)]=_0x5a90ab,this[_0x24bb8c(0x154)]=new WeakMap();}[_0x42067f(0x216)](_0x2353ed){const _0x3d7189=_0x42067f;let _0x36352c=_0x2353ed[_0x3d7189(0x194)];for(;_0x36352c--;){const _0x2139fb=_0x2353ed[_0x36352c];if(!this[_0x3d7189(0x1c9)][_0x3d7189(0x21b)](_0x2139fb)){if(!this[_0x3d7189(0x154)][_0x3d7189(0x21b)](_0x2139fb)){const _0xeaf9b3=_0xb55173()[_0x3d7189(0x19a)](0x1,0x12);this[_0x3d7189(0x154)][_0x3d7189(0x171)](_0x2139fb,_0xeaf9b3);}return this[_0x3d7189(0x154)][_0x3d7189(0x1ee)](_0x2139fb);}}}[_0x42067f(0x1fd)](_0x272678,_0x451b9a){const _0x3ff649=_0x42067f;if(!_0x451b9a)return;let _0x83c5c3=_0x272678[_0x3ff649(0x194)];for(;_0x83c5c3--;){const _0x595ec8=_0x272678[_0x83c5c3];this[_0x3ff649(0x1c9)][_0x3ff649(0x21b)](_0x595ec8)||this[_0x3ff649(0x154)][_0x3ff649(0x171)](_0x595ec8,_0x451b9a);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3e4d(_0x2d55de,_0x56eb5c){const _0x15c668=_0x15c6();return _0x3e4d=function(_0x3e4dbb,_0x50b437){_0x3e4dbb=_0x3e4dbb-0x1ac;let _0x482cc3=_0x15c668[_0x3e4dbb];return _0x482cc3;},_0x3e4d(_0x2d55de,_0x56eb5c);}const _0x53158c=_0x3e4d;(function(_0x4167f4,_0x273f0d){const _0x220f89=_0x3e4d,_0x298f95=_0x4167f4();while(!![]){try{const _0x4fcaeb=parseInt(_0x220f89(0x1c5))/0x1+parseInt(_0x220f89(0x1b6))/0x2*(parseInt(_0x220f89(0x1ca))/0x3)+parseInt(_0x220f89(0x1bc))/0x4+parseInt(_0x220f89(0x1e2))/0x5*(-parseInt(_0x220f89(0x1d9))/0x6)+parseInt(_0x220f89(0x1eb))/0x7*(-parseInt(_0x220f89(0x1c9))/0x8)+-parseInt(_0x220f89(0x1ae))/0x9*(parseInt(_0x220f89(0x1b3))/0xa)+parseInt(_0x220f89(0x1db))/0xb*(parseInt(_0x220f89(0x1cd))/0xc);if(_0x4fcaeb===_0x273f0d)break;else _0x298f95['push'](_0x298f95['shift']());}catch(_0x117e47){_0x298f95['push'](_0x298f95['shift']());}}}(_0x15c6,0x1916c));import{ContextPlugin as _0x2537db}from'ckeditor5/src/core.js';import{Collection as _0x2183aa,CKEditorError as _0x481306}from'ckeditor5/src/utils.js';function _0x15c6(){const _0x14b185=['channelSessions','unregister','add','757864UMMPUB','3849aTjjEN','allConnectedUsers','remove','290148UKffVC','getUserBySessionId','sessions-register-already-registered','getUserRole','defineMe','getUser','user','addUser','mySessionId','pluginName','delete','clear','33960wNTfzz','has','77ALmKMm','orderNumber','sessionAdd:','plugins','role','set','size','120MtvKTc','channelConnectedUsers','context','connected','_registeredSessions','get','isOfficialPlugin','connection','sessions-unregister-not-exist','14zbNWFr','register','isPremiumPlugin','20187DKpHWR','_createUser','_handleSessionAdd','forEach','isMe','710Iqslfi','Sessions','_users','74VEuFIx','fire','sessionId','values','getUserSessions','state','806828XPnfbx','assign','_uniqueUsersCount','init','change:state','listenTo','stopListening','requires','_handleSessionRemove','168892hjxPLE'];_0x15c6=function(){return _0x14b185;};return _0x15c6();}import{WebSocketGateway as _0x2f00e0}from'./websocketgateway.js';import{Users as _0x2fc6b8}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x2537db{[_0x53158c(0x1c6)];[_0x53158c(0x1e3)];[_0x53158c(0x1cb)];[_0x53158c(0x1e6)];[_0x53158c(0x1be)];[_0x53158c(0x1b5)];static get[_0x53158c(0x1d6)](){const _0x4f82c8=_0x53158c;return _0x4f82c8(0x1b4);}static get[_0x53158c(0x1e8)](){return!0x0;}static get[_0x53158c(0x1ad)](){return!0x0;}static get[_0x53158c(0x1c3)](){return[_0x2f00e0,_0x2fc6b8];}constructor(_0x5b5563){const _0x24ebd4=_0x53158c;super(_0x5b5563),this[_0x24ebd4(0x1c6)]=new Map(),this[_0x24ebd4(0x1e3)]=new Map(),this[_0x24ebd4(0x1cb)]=new _0x2183aa(),this[_0x24ebd4(0x1e6)]=new Map(),this[_0x24ebd4(0x1be)]=0x0,this[_0x24ebd4(0x1b5)]=this[_0x24ebd4(0x1e4)][_0x24ebd4(0x1de)][_0x24ebd4(0x1e7)](_0x2fc6b8);}[_0x53158c(0x1bf)](){const _0x151ca4=_0x53158c,_0x11f4f5=this[_0x151ca4(0x1e4)][_0x151ca4(0x1de)][_0x151ca4(0x1e7)](_0x2f00e0);this[_0x151ca4(0x1c1)](_0x11f4f5,_0x151ca4(0x1c0),(_0x3a7431,_0x59f85c,_0x279b5b)=>{const _0x1bd9b8=_0x151ca4;if(_0x1bd9b8(0x1e5)!==_0x279b5b)this[_0x1bd9b8(0x1c6)][_0x1bd9b8(0x1b1)](_0x52250f=>_0x52250f[_0x1bd9b8(0x1d8)]()),this[_0x1bd9b8(0x1e3)][_0x1bd9b8(0x1b1)](_0x19e1d3=>_0x19e1d3[_0x1bd9b8(0x1d8)]()),this[_0x1bd9b8(0x1cb)][_0x1bd9b8(0x1d8)]();else{for(const [_0xd8399e,_0x15d3fe]of this[_0x1bd9b8(0x1e6)])for(const _0x5a32dc of _0x15d3fe)this[_0x1bd9b8(0x1b0)](_0xd8399e,_0x5a32dc);}}),this[_0x151ca4(0x1af)](_0x11f4f5[_0x151ca4(0x1e9)]['me'],!0x0);}[_0x53158c(0x1ac)](_0x3915f5,_0x43ddd0){const _0x320e7d=_0x53158c;if(this[_0x320e7d(0x1e6)][_0x320e7d(0x1da)](_0x3915f5))throw new _0x481306(_0x320e7d(0x1cf),null,{'channelId':_0x3915f5});this[_0x320e7d(0x1e6)][_0x320e7d(0x1e0)](_0x3915f5,_0x43ddd0),this[_0x320e7d(0x1c6)][_0x320e7d(0x1e0)](_0x3915f5,new _0x2183aa()),this[_0x320e7d(0x1e3)][_0x320e7d(0x1e0)](_0x3915f5,new _0x2183aa()),this[_0x320e7d(0x1c1)](_0x43ddd0,_0x320e7d(0x1c8),(_0x22b525,_0x316780)=>this[_0x320e7d(0x1b0)](_0x3915f5,_0x316780)),this[_0x320e7d(0x1c1)](_0x43ddd0,_0x320e7d(0x1cc),(_0x5f2e85,_0x9dab98)=>this[_0x320e7d(0x1c4)](_0x3915f5,_0x9dab98));for(const _0x3ccd93 of _0x43ddd0)this[_0x320e7d(0x1b0)](_0x3915f5,_0x3ccd93);}[_0x53158c(0x1c7)](_0x4b1316){const _0x41c506=_0x53158c;if(!this[_0x41c506(0x1e6)][_0x41c506(0x1da)](_0x4b1316))throw new _0x481306(_0x41c506(0x1ea),null,{'channelId':_0x4b1316});const _0x66c579=this[_0x41c506(0x1e6)][_0x41c506(0x1e7)](_0x4b1316);this[_0x41c506(0x1c2)](_0x66c579);for(const _0x22ca2f of _0x66c579)_0x41c506(0x1e5)===this[_0x41c506(0x1e4)][_0x41c506(0x1de)][_0x41c506(0x1e7)](_0x2f00e0)[_0x41c506(0x1bb)]&&this[_0x41c506(0x1c4)](_0x4b1316,_0x22ca2f);this[_0x41c506(0x1e6)][_0x41c506(0x1d7)](_0x4b1316),this[_0x41c506(0x1c6)][_0x41c506(0x1d7)](_0x4b1316),this[_0x41c506(0x1e3)][_0x41c506(0x1d7)](_0x4b1316);}get[_0x53158c(0x1d5)](){const _0x529ee1=_0x53158c;return this[_0x529ee1(0x1e4)][_0x529ee1(0x1de)][_0x529ee1(0x1e7)](_0x2f00e0)[_0x529ee1(0x1e9)][_0x529ee1(0x1b8)];}[_0x53158c(0x1ce)](_0x17487d){const _0x50e7c3=_0x53158c;for(const _0x49bb6c of this[_0x50e7c3(0x1c6)][_0x50e7c3(0x1b9)]())for(const _0x479186 of _0x49bb6c)if(_0x479186['id']===_0x17487d)return _0x479186[_0x50e7c3(0x1d3)];}[_0x53158c(0x1ba)](_0x31a454,_0x1864e1){const _0x5e37e8=_0x53158c,_0x3b4426=_0x1864e1?[this[_0x5e37e8(0x1c6)][_0x5e37e8(0x1e7)](_0x1864e1)]:this[_0x5e37e8(0x1c6)][_0x5e37e8(0x1b9)](),_0x4cafba=new Set();for(const _0x47b059 of _0x3b4426)for(const _0x3badf8 of _0x47b059)_0x3badf8[_0x5e37e8(0x1d3)]['id']===_0x31a454['id']&&_0x4cafba[_0x5e37e8(0x1c8)](_0x3badf8['id']);return _0x4cafba;}[_0x53158c(0x1d0)](_0x31b4a0){const _0x37eedb=_0x53158c;for(const _0x55b0e1 of this[_0x37eedb(0x1c6)][_0x37eedb(0x1b9)]())for(const _0x5dd56f of _0x55b0e1)if(_0x5dd56f[_0x37eedb(0x1d3)]===_0x31b4a0)return _0x5dd56f[_0x37eedb(0x1df)];}[_0x53158c(0x1b0)](_0x416321,_0x91b37e){const _0x31bc6e=_0x53158c;if(_0x31bc6e(0x1e5)!==this[_0x31bc6e(0x1e4)][_0x31bc6e(0x1de)][_0x31bc6e(0x1e7)](_0x2f00e0)[_0x31bc6e(0x1bb)])return;const _0x54c78a=_0x91b37e[_0x31bc6e(0x1d3)],_0x2bd67c=this[_0x31bc6e(0x1b5)][_0x31bc6e(0x1d2)](_0x54c78a['id'])||this[_0x31bc6e(0x1af)](_0x54c78a),_0x2c0342=Object[_0x31bc6e(0x1bd)]({},_0x91b37e,{'user':_0x2bd67c});this[_0x31bc6e(0x1c6)][_0x31bc6e(0x1e7)](_0x416321)[_0x31bc6e(0x1c8)](_0x2c0342);const _0x417fb7=this[_0x31bc6e(0x1e3)][_0x31bc6e(0x1e7)](_0x416321);_0x417fb7[_0x31bc6e(0x1da)](_0x2bd67c['id'])||_0x417fb7[_0x31bc6e(0x1c8)](_0x2bd67c),this[_0x31bc6e(0x1cb)][_0x31bc6e(0x1da)](_0x2bd67c['id'])||this[_0x31bc6e(0x1cb)][_0x31bc6e(0x1c8)](_0x2bd67c,_0x2bd67c[_0x31bc6e(0x1b2)]?0x0:void 0x0),this[_0x31bc6e(0x1b7)](_0x31bc6e(0x1dd)+_0x416321,{'channelId':_0x416321,'session':_0x2c0342});}[_0x53158c(0x1c4)](_0x4f9940,_0xe6714d){const _0x5675ae=_0x53158c;if(_0x5675ae(0x1e5)!==this[_0x5675ae(0x1e4)][_0x5675ae(0x1de)][_0x5675ae(0x1e7)](_0x2f00e0)[_0x5675ae(0x1bb)])return;const _0x5ccc0c=this[_0x5675ae(0x1e3)][_0x5675ae(0x1e7)](_0x4f9940),_0x41e456=_0xe6714d[_0x5675ae(0x1d3)];_0x41e456['id']&&(this[_0x5675ae(0x1c6)][_0x5675ae(0x1e7)](_0x4f9940)[_0x5675ae(0x1cc)](_0xe6714d['id']),_0x5ccc0c[_0x5675ae(0x1da)](_0x41e456['id'])&&!this[_0x5675ae(0x1ba)](_0x41e456,_0x4f9940)[_0x5675ae(0x1e1)]&&_0x5ccc0c[_0x5675ae(0x1cc)](_0x41e456['id']),this[_0x5675ae(0x1cb)][_0x5675ae(0x1e7)](_0x41e456['id'])&&!this[_0x5675ae(0x1ba)](_0x41e456)[_0x5675ae(0x1e1)]&&this[_0x5675ae(0x1cb)][_0x5675ae(0x1cc)](_0x41e456['id']));}[_0x53158c(0x1af)](_0x3c81a2,_0x47678d){const _0x53c62f=_0x53158c,_0x22807=this[_0x53c62f(0x1b5)][_0x53c62f(0x1d4)](_0x3c81a2);return _0x47678d&&this[_0x53c62f(0x1b5)][_0x53c62f(0x1d1)](_0x3c81a2['id']),_0x22807[_0x53c62f(0x1dc)]=this[_0x53c62f(0x1be)]++,_0x22807;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1b99(){const _0x3f6610=['markerToHighlight','update:user:range','327990zKLjwh','isCollapsed','remove','tableCell','name','mySessionId','getPositions','markers','isLimit','markerRange','isDocumentOperation','oldRange','listenTo','getCustomProperty','user:','mapper','size','innerHTML','createUIElement','ck-user__marker\x20','hasContent','editor','enqueueChange','stopListening','color','isInline','setAttribute','600028izKICG','mouseenter','fromRange','selection','highest','mouseleave','type','removeClass','_createdBatches','set','getFirstRange','orderNumber','requires','getSelectionClass','2220NVKECs','6qMOeSl','ck-user__marker-tooltip','document','9416GUXUvK','markerToElement','isPremiumPlugin','conversion','removeMarker','$text','marker','end','keydown','textContent','add','1916925UVIHlb','reconvertMarker','split','for','setCustomProperty','markerNameToElements','detach','deletionPosition','startsWith','hasDomSelection','_domEmitter','getNearestSelectionRange','model','updateMarker','getMarkerClass','root','classList','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','batch','afterInit','editing','isSimilar','147585CeySaN','isObject','pluginName','isOfficialPlugin','6ACxNGv','init','change:range','delete','element','parent','user:range','plugins','contenteditable','schema','view','userPositionMarker','addMarker','addEventListener','getStart','undo','nodeAfter','has','getUserBySessionId','18CvauMj','span','6486312RYSZyD','getContainedElement','ck-user__selection','render','destroy','commands','getRange','start','get','clear','createElement','createUserMarkerOperations','$graveyard','spellcheck','getAttribute','toRange','UserMarkers','createRange','false','outerHTML','user:range:','checkChild','applyOperation','toDomElement','data-session-id','newRange','markerName','user:position:','ck-user__marker_hovered','rootName','user:position','editingDowncast','7070248UkquVO','change','Escape'];_0x1b99=function(){return _0x3f6610;};return _0x1b99();}const _0x415507=_0x5523;(function(_0x1ab840,_0x306bb7){const _0x11c7cc=_0x5523,_0x449847=_0x1ab840();while(!![]){try{const _0x12b234=parseInt(_0x11c7cc(0x215))/0x1+parseInt(_0x11c7cc(0x1b3))/0x2*(parseInt(_0x11c7cc(0x1d7))/0x3)+parseInt(_0x11c7cc(0x1a4))/0x4+-parseInt(_0x11c7cc(0x1c1))/0x5+parseInt(_0x11c7cc(0x1db))/0x6*(-parseInt(_0x11c7cc(0x1f0))/0x7)+-parseInt(_0x11c7cc(0x210))/0x8*(-parseInt(_0x11c7cc(0x1ee))/0x9)+-parseInt(_0x11c7cc(0x1b2))/0xa*(parseInt(_0x11c7cc(0x1b6))/0xb);if(_0x12b234===_0x306bb7)break;else _0x449847['push'](_0x449847['shift']());}catch(_0x1b0295){_0x449847['push'](_0x449847['shift']());}}}(_0x1b99,0xda0b7));import{Plugin as _0x39a480}from'ckeditor5/src/core.js';import{global as _0x563d8f,DomEmitterMixin as _0x1ebc40}from'ckeditor5/src/utils.js';import{Sessions as _0x9b4e7f}from'./sessions.js';import{ModelLiveRange as _0x464264}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';function _0x5523(_0x285302,_0x3e8030){const _0x1b9949=_0x1b99();return _0x5523=function(_0x552307,_0x32b6a2){_0x552307=_0x552307-0x18b;let _0x50123d=_0x1b9949[_0x552307];return _0x50123d;},_0x5523(_0x285302,_0x3e8030);}export class UserMarkers extends _0x39a480{[_0x415507(0x1cb)]=new(_0x1ebc40())();static get[_0x415507(0x1b0)](){return[_0x9b4e7f];}static get[_0x415507(0x1d9)](){const _0x357737=_0x415507;return _0x357737(0x200);}static get[_0x415507(0x1da)](){return!0x0;}static get[_0x415507(0x1b8)](){return!0x0;}[_0x415507(0x1dc)](){const _0xbdacf4=_0x415507,_0x36cc79=this[_0xbdacf4(0x19e)],_0x1ec1a1=_0x36cc79[_0xbdacf4(0x1e2)][_0xbdacf4(0x1f8)](_0x9b4e7f);_0x36cc79[_0xbdacf4(0x1b9)][_0xbdacf4(0x1c4)](_0xbdacf4(0x20f))[_0xbdacf4(0x1b7)]({'model':_0xbdacf4(0x20e),'view':(_0xb13797,{writer:_0x5d4123})=>function(_0xb83b0a,_0x2ef077,_0x242794,_0x460dc9){const _0x98b15f=_0xbdacf4,_0x56a7f5=_0xb83b0a[_0x98b15f(0x20a)][_0x98b15f(0x1c3)](':')[0x2],_0x3c3675=_0x242794[_0x98b15f(0x1ed)](_0x56a7f5);if(!_0x3c3675||_0x56a7f5===_0x242794[_0x98b15f(0x18e)])return;if(!_0x460dc9[_0x98b15f(0x1cd)][_0x98b15f(0x1e4)][_0x98b15f(0x205)](_0xb83b0a[_0x98b15f(0x192)][_0x98b15f(0x1f7)],_0x98b15f(0x1bb)))return;const _0x37b5a0={'class':_0x98b15f(0x19c)+_0x3c3675[_0x98b15f(0x1a1)][_0x98b15f(0x1cf)](),'data-name':_0x3c3675[_0x98b15f(0x18d)],'data-session-id':_0x56a7f5},_0x1de6c8=_0x460dc9[_0x98b15f(0x1cd)][_0x98b15f(0x190)][_0x98b15f(0x1f8)](_0xb83b0a[_0x98b15f(0x20a)]),_0x4439d6=_0x1de6c8[_0x98b15f(0x1e9)](),_0x4a41e1=_0x4439d6[_0x98b15f(0x1eb)],_0x992044=_0x460dc9[_0x98b15f(0x1cd)][_0x98b15f(0x1e4)];if(_0x4a41e1&&_0x992044[_0x98b15f(0x1d8)](_0x4a41e1)&&_0x992044[_0x98b15f(0x1a2)](_0x4a41e1)&&!_0x460dc9[_0x98b15f(0x1cd)][_0x98b15f(0x190)][_0x98b15f(0x1f8)](_0x98b15f(0x204)+_0x56a7f5)[_0x98b15f(0x1f6)]()[_0x98b15f(0x216)])return;const _0x29f6c5=_0x4439d6[_0x98b15f(0x1e0)];return _0x460dc9[_0x98b15f(0x1cd)][_0x98b15f(0x1e4)][_0x98b15f(0x191)](_0x29f6c5)&&!_0x460dc9[_0x98b15f(0x1cd)][_0x98b15f(0x19d)](_0x29f6c5)&&(_0x37b5a0[_0x98b15f(0x1e3)]=!0x1),function(_0x27b795,_0x2d422b,_0x3e23bf){const _0x26012a=_0x98b15f,_0x7edfe1=_0x27b795[_0x26012a(0x19b)](_0x26012a(0x1ef),_0x2d422b);return _0x27b795[_0x26012a(0x1c5)](_0x26012a(0x1e6),!0x0,_0x7edfe1),_0x7edfe1[_0x26012a(0x1f3)]=function(_0x3e65ae){const _0x23a5cc=_0x26012a,_0x596cdc=this[_0x23a5cc(0x207)](_0x3e65ae),_0x1e1ed0=document[_0x23a5cc(0x1fa)](_0x23a5cc(0x1ef));return _0x1e1ed0[_0x23a5cc(0x1d1)][_0x23a5cc(0x1c0)](_0x23a5cc(0x1b4)),_0x1e1ed0[_0x23a5cc(0x1a3)](_0x23a5cc(0x1e3),_0x23a5cc(0x202)),_0x1e1ed0[_0x23a5cc(0x1a3)](_0x23a5cc(0x1fd),_0x23a5cc(0x202)),_0x1e1ed0[_0x23a5cc(0x1bf)]=_0x3e23bf[_0x23a5cc(0x18d)],_0x596cdc[_0x23a5cc(0x19a)]=_0x23a5cc(0x1d2)+_0x1e1ed0[_0x23a5cc(0x203)]+'',_0x596cdc[_0x23a5cc(0x1e8)](_0x23a5cc(0x1a5),()=>{const _0x4739fc=_0x23a5cc;_0x596cdc[_0x4739fc(0x1d1)][_0x4739fc(0x1c0)](_0x4739fc(0x20c));}),_0x596cdc[_0x23a5cc(0x1e8)](_0x23a5cc(0x1a9),()=>{const _0x24a3bb=_0x23a5cc;_0x596cdc[_0x24a3bb(0x1d1)][_0x24a3bb(0x18b)](_0x24a3bb(0x20c));}),_0x596cdc;},_0x7edfe1[_0x26012a(0x1d6)]=function(_0x186fc7){const _0x18aac3=_0x26012a;return!(!this[_0x18aac3(0x196)](_0x18aac3(0x1e6))||!_0x186fc7[_0x18aac3(0x196)](_0x18aac3(0x1e6))||this[_0x18aac3(0x1fe)](_0x18aac3(0x208))!=_0x186fc7[_0x18aac3(0x1fe)](_0x18aac3(0x208)));},_0x7edfe1;}(_0x2ef077,_0x37b5a0,_0x3c3675);}(_0xb13797,_0x5d4123,_0x1ec1a1,_0x36cc79)}),_0x36cc79[_0xbdacf4(0x1b9)][_0xbdacf4(0x1c4)](_0xbdacf4(0x20f))[_0xbdacf4(0x213)]({'model':_0xbdacf4(0x1e1),'view':_0x20613d=>function(_0x46e797,_0x32691b){const _0x5389c3=_0xbdacf4,_0x401da6=_0x46e797[_0x5389c3(0x20a)][_0x5389c3(0x1c3)](':')[0x2];if(_0x401da6===_0x32691b[_0x5389c3(0x18e)])return null;const _0x482bff=_0x32691b[_0x5389c3(0x1ed)](_0x401da6);if(!_0x482bff)return{'id':_0x401da6,'classes':[]};return{'id':_0x401da6,'classes':[_0x5389c3(0x1f2),_0x482bff[_0x5389c3(0x1a1)][_0x5389c3(0x1b1)]()],'attributes':{'data-session-id':_0x401da6},'priority':0x7d0+_0x482bff[_0x5389c3(0x1af)]};}(_0x20613d,_0x1ec1a1)}),function(_0x5d5a1d){const _0x5bf1c9=_0xbdacf4,_0xfe4b44=_0x5d5a1d[_0x5bf1c9(0x1cd)],_0x167ea4=new Map(),_0x44a296=_0x5d5a1d[_0x5bf1c9(0x1e2)][_0x5bf1c9(0x1f8)](_0x9b4e7f);_0xfe4b44[_0x5bf1c9(0x190)]['on'](_0x5bf1c9(0x214),(_0xbcd540,_0x98557,_0x28e436,_0x5589ce)=>{const _0x236c7d=_0x5bf1c9;if(!_0x5589ce&&_0x167ea4[_0x236c7d(0x1f8)](_0x98557[_0x236c7d(0x18d)]))return _0x167ea4[_0x236c7d(0x1f8)](_0x98557[_0x236c7d(0x18d)])[_0x236c7d(0x1c7)](),void _0x167ea4[_0x236c7d(0x1de)](_0x98557[_0x236c7d(0x18d)]);const _0x251501=_0x98557[_0x236c7d(0x18d)][_0x236c7d(0x1c3)](':')[0x2];if(_0x251501===_0x44a296[_0x236c7d(0x18e)])return;const _0x3dbc96=_0x236c7d(0x20b)+_0x251501;_0xfe4b44[_0x236c7d(0x190)][_0x236c7d(0x1ec)](_0x3dbc96)&&_0x5d5a1d[_0x236c7d(0x1d5)][_0x236c7d(0x1c2)](_0x3dbc96),_0x98557['on'](_0x236c7d(0x1dd),(_0x3f743d,_0x16d7dd,_0x4b9d8a)=>{const _0x4f3e64=_0x236c7d;if(_0x4f3e64(0x1fc)!=_0x16d7dd[_0x4f3e64(0x1d0)][_0x4f3e64(0x20d)]&&_0x4f3e64(0x1fc)==_0x98557[_0x4f3e64(0x1f6)]()[_0x4f3e64(0x1d0)][_0x4f3e64(0x20d)]&&!_0x167ea4[_0x4f3e64(0x1ec)](_0x98557[_0x4f3e64(0x18d)])){const _0x422f08=_0xfe4b44[_0x4f3e64(0x1e4)][_0x4f3e64(0x1cc)](_0x4b9d8a[_0x4f3e64(0x1c8)]);if(_0x422f08){const _0x1603c9=_0x464264[_0x4f3e64(0x1a6)](_0x422f08);_0x167ea4[_0x4f3e64(0x1ad)](_0x98557[_0x4f3e64(0x18d)],_0x1603c9),_0x1603c9['on'](_0x4f3e64(0x1dd),(_0x44d17e,_0x4d666b,_0x48b721)=>{const _0x29972a=_0x4f3e64;if(_0x29972a(0x1fc)==_0x1603c9[_0x29972a(0x1d0)][_0x29972a(0x20d)]){const _0x4212eb=_0xfe4b44[_0x29972a(0x1e4)][_0x29972a(0x1cc)](_0x48b721[_0x29972a(0x1c8)]);_0x4212eb?(_0x1603c9[_0x29972a(0x1f7)]=_0x4212eb[_0x29972a(0x1f7)],_0x1603c9[_0x29972a(0x1bd)]=_0x4212eb[_0x29972a(0x1bd)]):(_0x167ea4[_0x29972a(0x1de)](_0x98557[_0x29972a(0x18d)]),_0x1603c9[_0x29972a(0x1c7)]());}});}}});}),_0xfe4b44[_0x5bf1c9(0x1b5)]['on'](_0x5bf1c9(0x211),()=>{const _0x47a3dd=_0x5bf1c9;_0x167ea4[_0x47a3dd(0x199)]>0x0&&_0xfe4b44[_0x47a3dd(0x19f)]({'isUndoable':!0x1},_0x48263c=>{const _0x537639=_0x47a3dd;for(const [_0xfe1f93,_0x181b63]of _0x167ea4)_0x537639(0x1fc)==_0xfe4b44[_0x537639(0x190)][_0x537639(0x1f8)](_0xfe1f93)[_0x537639(0x1f6)]()[_0x537639(0x1d0)][_0x537639(0x20d)]&&(Z(_0xfe1f93[_0x537639(0x1c3)](':')[0x2],_0x181b63[_0x537639(0x1ff)](),_0xfe4b44,_0x48263c),_0x181b63[_0x537639(0x1c7)]());_0x167ea4[_0x537639(0x1f9)]();});});}(_0x36cc79),this[_0xbdacf4(0x1cb)][_0xbdacf4(0x195)](_0x563d8f[_0xbdacf4(0x1b5)],_0xbdacf4(0x1be),(_0x154b7d,{key:_0x2f1736})=>{const _0x4857e9=_0xbdacf4;_0x4857e9(0x212)===_0x2f1736&&function(_0x32eb85){const _0x3608db=_0x4857e9;_0x32eb85[_0x3608db(0x1d5)][_0x3608db(0x1e5)][_0x3608db(0x211)](_0x24f24e=>{const _0x3ecc08=_0x3608db;for(const _0x4eee5c of _0x32eb85[_0x3ecc08(0x1cd)][_0x3ecc08(0x190)]){if(!_0x4eee5c[_0x3ecc08(0x18d)][_0x3ecc08(0x1c9)](_0x3ecc08(0x20e)))continue;const _0xa1c7c4=_0x32eb85[_0x3ecc08(0x1d5)][_0x3ecc08(0x198)][_0x3ecc08(0x1c6)](_0x4eee5c[_0x3ecc08(0x18d)]);if(_0xa1c7c4){for(const _0x4f942e of _0xa1c7c4)_0x24f24e[_0x3ecc08(0x1ab)](_0x3ecc08(0x20c),_0x4f942e);}}});}(_0x36cc79);},{'useCapture':!0x0});}[_0x415507(0x1d4)](){const _0x3a289e=_0x415507,_0x3f5a58=this[_0x3a289e(0x19e)],_0x32da60=_0x3f5a58[_0x3a289e(0x1f5)][_0x3a289e(0x1f8)](_0x3a289e(0x1ea));_0x32da60&&_0x3f5a58[_0x3a289e(0x1cd)]['on'](_0x3a289e(0x206),(_0x2bb791,_0x2c3006)=>{const _0x491320=_0x3a289e,_0x41c1f7=_0x2c3006[0x0];if(!_0x41c1f7[_0x491320(0x193)])return;if(_0x491320(0x1bc)!=_0x41c1f7[_0x491320(0x1aa)]||!_0x41c1f7[_0x491320(0x18d)][_0x491320(0x1c9)](_0x491320(0x197)))return;const _0x31178d=_0x41c1f7[_0x491320(0x1d3)];_0x32da60[_0x491320(0x1ac)][_0x491320(0x1ec)](_0x31178d)&&(_0x41c1f7[_0x491320(0x209)]=_0x41c1f7[_0x491320(0x194)]?_0x3f5a58[_0x491320(0x1cd)][_0x491320(0x201)](_0x41c1f7[_0x491320(0x194)][_0x491320(0x1f7)],_0x41c1f7[_0x491320(0x194)][_0x491320(0x1bd)]):null);},{'priority':_0x3a289e(0x1a8)});}[_0x415507(0x1f4)](){const _0x25db28=_0x415507;return this[_0x25db28(0x1cb)][_0x25db28(0x1a0)](),super[_0x25db28(0x1f4)]();}[_0x415507(0x1fb)](){const _0x494b14=_0x415507,_0x30a0f4=this[_0x494b14(0x19e)],_0x430a23=_0x30a0f4[_0x494b14(0x1cd)][_0x494b14(0x1b5)],_0x502b5a=_0x30a0f4[_0x494b14(0x1e2)][_0x494b14(0x1f8)](_0x9b4e7f);_0x30a0f4[_0x494b14(0x1cd)][_0x494b14(0x19f)]({'isUndoable':!0x1},_0x5c56fd=>{const _0x1394bb=_0x494b14,_0x1840b5=_0x1394bb(0x204)+_0x502b5a[_0x1394bb(0x18e)],_0x29cbe9=_0x1394bb(0x20b)+_0x502b5a[_0x1394bb(0x18e)],_0xa16f2c=_0x30a0f4[_0x1394bb(0x1cd)][_0x1394bb(0x190)][_0x1394bb(0x1ec)](_0x1840b5);_0x30a0f4[_0x1394bb(0x1d5)][_0x1394bb(0x1e5)][_0x1394bb(0x1ca)]?Z(_0x502b5a[_0x1394bb(0x18e)],_0x430a23[_0x1394bb(0x1a7)][_0x1394bb(0x1ae)](),_0x30a0f4[_0x1394bb(0x1cd)],_0x5c56fd):_0xa16f2c&&(_0x5c56fd[_0x1394bb(0x1ba)](_0x1840b5),_0x5c56fd[_0x1394bb(0x1ba)](_0x29cbe9));});}}function Z(_0x58b7f5,_0x26aa1e,_0x414c78,_0x4cc20d){const _0x431d36=_0x415507,_0x4ccd65=_0x431d36(0x204)+_0x58b7f5,_0x142d8b=_0x431d36(0x20b)+_0x58b7f5,_0x25c1ec=_0x26aa1e[_0x431d36(0x1f1)]();let _0x24f840=_0x26aa1e[_0x431d36(0x1f7)];if(_0x25c1ec&&_0x25c1ec['is'](_0x431d36(0x1df),_0x431d36(0x18c))){const _0x443e72=function(_0x59c1ba,_0x1b0419){const _0x16351f=_0x431d36;for(const _0x50e82b of _0x59c1ba[_0x16351f(0x18f)]())if(_0x1b0419[_0x16351f(0x1e4)][_0x16351f(0x205)](_0x50e82b,_0x16351f(0x1bb)))return _0x50e82b;}(_0x26aa1e,_0x414c78);_0x443e72&&(_0x24f840=_0x443e72,_0x26aa1e=_0x4cc20d[_0x431d36(0x201)](_0x24f840));}const _0x86d717=_0x4cc20d[_0x431d36(0x201)](_0x24f840);_0x414c78[_0x431d36(0x190)][_0x431d36(0x1ec)](_0x4ccd65)?(_0x4cc20d[_0x431d36(0x1ce)](_0x4ccd65,{'range':_0x26aa1e}),_0x4cc20d[_0x431d36(0x1ce)](_0x142d8b,{'range':_0x86d717})):(_0x4cc20d[_0x431d36(0x1e7)](_0x4ccd65,{'range':_0x26aa1e,'usingOperation':!0x0}),_0x4cc20d[_0x431d36(0x1e7)](_0x142d8b,{'range':_0x86d717,'usingOperation':!0x0}));}
|
|
23
|
+
function _0x3e34(){const _0x44f7ed=['addMarker','getAttribute','user:range','getFirstRange','view','classList','fromRange','428746YtvWYd','507717ZyAZkF','getStart','nodeAfter','checkChild','listenTo','element','false','setCustomProperty','ck-user__marker-tooltip','start','isCollapsed','isOfficialPlugin','41111ZiOdIp','786ilfvPd','mapper','has','markerToHighlight','highest','getCustomProperty','user:','markerName','user:position:','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','_domEmitter','createUIElement','isInline','marker','contenteditable','markerToElement','detach','user:position','size','parent','mySessionId','change','editingDowncast','clear','tableCell','updateMarker','for','getMarkerClass','end','createRange','6653163tmIgna','plugins','markerNameToElements','deletionPosition','destroy','get','createElement','getNearestSelectionRange','afterInit','10JGJgnJ','ck-user__selection','2208HLbGvk','17428TUjpRS','isSimilar','40LYvpzB','update:user:range','isObject','4930PUyRUm','spellcheck','requires','startsWith','outerHTML','delete','selection','markerRange','conversion','getUserBySessionId','editing','getPositions','isPremiumPlugin','getContainedElement','hasDomSelection','userPositionMarker','batch','mouseenter','mouseleave','_createdBatches','$graveyard','toDomElement','getSelectionClass','addEventListener','applyOperation','6705216sUNnUi','span','rootName','color','remove','UserMarkers','change:range','init','hasContent','setAttribute','ck-user__marker_hovered','markers','189tasMWO','editor','keydown','newRange','document','toRange','removeClass','innerHTML','reconvertMarker','split','schema','createUserMarkerOperations','$text','isDocumentOperation','data-session-id','textContent','getRange','isLimit','pluginName','oldRange','Escape','undo','enqueueChange','orderNumber','ck-user__marker\x20','stopListening','model','render','set','removeMarker','user:range:','root','name','commands','add','type'];_0x3e34=function(){return _0x44f7ed;};return _0x3e34();}const _0x41bf8e=_0xb169;function _0xb169(_0x7df444,_0x4d44a2){const _0x3e34c9=_0x3e34();return _0xb169=function(_0xb169d2,_0x2dfddc){_0xb169d2=_0xb169d2-0x151;let _0x48c3d2=_0x3e34c9[_0xb169d2];return _0x48c3d2;},_0xb169(_0x7df444,_0x4d44a2);}(function(_0x8b517d,_0x3c68ab){const _0x3b841c=_0xb169,_0x4d924d=_0x8b517d();while(!![]){try{const _0x2c5fc9=parseInt(_0x3b841c(0x1a5))/0x1+parseInt(_0x3b841c(0x1dd))/0x2*(-parseInt(_0x3b841c(0x17a))/0x3)+-parseInt(_0x3b841c(0x1dc))/0x4*(parseInt(_0x3b841c(0x155))/0x5)+-parseInt(_0x3b841c(0x1b3))/0x6*(-parseInt(_0x3b841c(0x1b2))/0x7)+parseInt(_0x3b841c(0x152))/0x8*(parseInt(_0x3b841c(0x1a6))/0x9)+parseInt(_0x3b841c(0x1da))/0xa*(parseInt(_0x3b841c(0x1d1))/0xb)+-parseInt(_0x3b841c(0x16e))/0xc;if(_0x2c5fc9===_0x3c68ab)break;else _0x4d924d['push'](_0x4d924d['shift']());}catch(_0x3961b1){_0x4d924d['push'](_0x4d924d['shift']());}}}(_0x3e34,0x69b59));import{Plugin as _0x3aa639}from'ckeditor5/src/core.js';import{global as _0x201c02,DomEmitterMixin as _0x8d07ca}from'ckeditor5/src/utils.js';import{Sessions as _0x46106e}from'./sessions.js';import{ModelLiveRange as _0x6cb2b9}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x3aa639{[_0x41bf8e(0x1bd)]=new(_0x8d07ca())();static get[_0x41bf8e(0x157)](){return[_0x46106e];}static get[_0x41bf8e(0x18c)](){const _0x47096b=_0x41bf8e;return _0x47096b(0x173);}static get[_0x41bf8e(0x1b1)](){return!0x0;}static get[_0x41bf8e(0x161)](){return!0x0;}[_0x41bf8e(0x175)](){const _0x101a9e=_0x41bf8e,_0x55f384=this[_0x101a9e(0x17b)],_0x2c7a87=_0x55f384[_0x101a9e(0x1d2)][_0x101a9e(0x1d6)](_0x46106e);_0x55f384[_0x101a9e(0x15d)][_0x101a9e(0x1cd)](_0x101a9e(0x1c9))[_0x101a9e(0x1c2)]({'model':_0x101a9e(0x1c4),'view':(_0x5aae0e,{writer:_0x6cd5d8})=>function(_0x38a9bb,_0x2b7753,_0x155cf8,_0x32336f){const _0x216290=_0x101a9e,_0xc52062=_0x38a9bb[_0x216290(0x1ba)][_0x216290(0x183)](':')[0x2],_0x71f1dd=_0x155cf8[_0x216290(0x15e)](_0xc52062);if(!_0x71f1dd||_0xc52062===_0x155cf8[_0x216290(0x1c7)])return;if(!_0x32336f[_0x216290(0x194)][_0x216290(0x184)][_0x216290(0x1a9)](_0x38a9bb[_0x216290(0x15c)][_0x216290(0x1af)],_0x216290(0x186)))return;const _0x568db3={'class':_0x216290(0x192)+_0x71f1dd[_0x216290(0x171)][_0x216290(0x1ce)](),'data-name':_0x71f1dd[_0x216290(0x19a)],'data-session-id':_0xc52062},_0x2276fa=_0x32336f[_0x216290(0x194)][_0x216290(0x179)][_0x216290(0x1d6)](_0x38a9bb[_0x216290(0x1ba)]),_0x35f457=_0x2276fa[_0x216290(0x1a7)](),_0x415ff6=_0x35f457[_0x216290(0x1a8)],_0x28d94e=_0x32336f[_0x216290(0x194)][_0x216290(0x184)];if(_0x415ff6&&_0x28d94e[_0x216290(0x154)](_0x415ff6)&&_0x28d94e[_0x216290(0x1bf)](_0x415ff6)&&!_0x32336f[_0x216290(0x194)][_0x216290(0x179)][_0x216290(0x1d6)](_0x216290(0x198)+_0xc52062)[_0x216290(0x18a)]()[_0x216290(0x1b0)])return;const _0x2f6bdc=_0x35f457[_0x216290(0x1c6)];return _0x32336f[_0x216290(0x194)][_0x216290(0x184)][_0x216290(0x18b)](_0x2f6bdc)&&!_0x32336f[_0x216290(0x194)][_0x216290(0x176)](_0x2f6bdc)&&(_0x568db3[_0x216290(0x1c1)]=!0x1),function(_0x25f313,_0x5ff1e5,_0x15ca8e){const _0x2c4b5a=_0x216290,_0x1959e8=_0x25f313[_0x2c4b5a(0x1be)](_0x2c4b5a(0x16f),_0x5ff1e5);return _0x25f313[_0x2c4b5a(0x1ad)](_0x2c4b5a(0x164),!0x0,_0x1959e8),_0x1959e8[_0x2c4b5a(0x195)]=function(_0x4bb306){const _0xfbfa6f=_0x2c4b5a,_0x21c1dc=this[_0xfbfa6f(0x16a)](_0x4bb306),_0x9a7c4e=document[_0xfbfa6f(0x1d7)](_0xfbfa6f(0x16f));return _0x9a7c4e[_0xfbfa6f(0x1a3)][_0xfbfa6f(0x19c)](_0xfbfa6f(0x1ae)),_0x9a7c4e[_0xfbfa6f(0x177)](_0xfbfa6f(0x1c1),_0xfbfa6f(0x1ac)),_0x9a7c4e[_0xfbfa6f(0x177)](_0xfbfa6f(0x156),_0xfbfa6f(0x1ac)),_0x9a7c4e[_0xfbfa6f(0x189)]=_0x15ca8e[_0xfbfa6f(0x19a)],_0x21c1dc[_0xfbfa6f(0x181)]=_0xfbfa6f(0x1bc)+_0x9a7c4e[_0xfbfa6f(0x159)]+'',_0x21c1dc[_0xfbfa6f(0x16c)](_0xfbfa6f(0x166),()=>{const _0x4743a7=_0xfbfa6f;_0x21c1dc[_0x4743a7(0x1a3)][_0x4743a7(0x19c)](_0x4743a7(0x178));}),_0x21c1dc[_0xfbfa6f(0x16c)](_0xfbfa6f(0x167),()=>{const _0x3491ee=_0xfbfa6f;_0x21c1dc[_0x3491ee(0x1a3)][_0x3491ee(0x172)](_0x3491ee(0x178));}),_0x21c1dc;},_0x1959e8[_0x2c4b5a(0x151)]=function(_0x2a2a19){const _0x46546e=_0x2c4b5a;return!(!this[_0x46546e(0x1b8)](_0x46546e(0x164))||!_0x2a2a19[_0x46546e(0x1b8)](_0x46546e(0x164))||this[_0x46546e(0x19f)](_0x46546e(0x188))!=_0x2a2a19[_0x46546e(0x19f)](_0x46546e(0x188)));},_0x1959e8;}(_0x2b7753,_0x568db3,_0x71f1dd);}(_0x5aae0e,_0x6cd5d8,_0x2c7a87,_0x55f384)}),_0x55f384[_0x101a9e(0x15d)][_0x101a9e(0x1cd)](_0x101a9e(0x1c9))[_0x101a9e(0x1b6)]({'model':_0x101a9e(0x1a0),'view':_0x512841=>function(_0xd66d9f,_0x245a5b){const _0x4fa622=_0x101a9e,_0x475c34=_0xd66d9f[_0x4fa622(0x1ba)][_0x4fa622(0x183)](':')[0x2];if(_0x475c34===_0x245a5b[_0x4fa622(0x1c7)])return null;const _0x551cda=_0x245a5b[_0x4fa622(0x15e)](_0x475c34);if(!_0x551cda)return{'id':_0x475c34,'classes':[]};return{'id':_0x475c34,'classes':[_0x4fa622(0x1db),_0x551cda[_0x4fa622(0x171)][_0x4fa622(0x16b)]()],'attributes':{'data-session-id':_0x475c34},'priority':0x7d0+_0x551cda[_0x4fa622(0x191)]};}(_0x512841,_0x2c7a87)}),function(_0x294131){const _0xa32717=_0x101a9e,_0x2991a8=_0x294131[_0xa32717(0x194)],_0x571089=new Map(),_0xc9e75e=_0x294131[_0xa32717(0x1d2)][_0xa32717(0x1d6)](_0x46106e);_0x2991a8[_0xa32717(0x179)]['on'](_0xa32717(0x153),(_0x312764,_0x5cc366,_0x2f8c25,_0x50627d)=>{const _0x130699=_0xa32717;if(!_0x50627d&&_0x571089[_0x130699(0x1d6)](_0x5cc366[_0x130699(0x19a)]))return _0x571089[_0x130699(0x1d6)](_0x5cc366[_0x130699(0x19a)])[_0x130699(0x1c3)](),void _0x571089[_0x130699(0x15a)](_0x5cc366[_0x130699(0x19a)]);const _0x5e107c=_0x5cc366[_0x130699(0x19a)][_0x130699(0x183)](':')[0x2];if(_0x5e107c===_0xc9e75e[_0x130699(0x1c7)])return;const _0x15d789=_0x130699(0x1bb)+_0x5e107c;_0x2991a8[_0x130699(0x179)][_0x130699(0x1b5)](_0x15d789)&&_0x294131[_0x130699(0x15f)][_0x130699(0x182)](_0x15d789),_0x5cc366['on'](_0x130699(0x174),(_0x16af3f,_0x2a4db7,_0x29ef36)=>{const _0x3f97f6=_0x130699;if(_0x3f97f6(0x169)!=_0x2a4db7[_0x3f97f6(0x199)][_0x3f97f6(0x170)]&&_0x3f97f6(0x169)==_0x5cc366[_0x3f97f6(0x18a)]()[_0x3f97f6(0x199)][_0x3f97f6(0x170)]&&!_0x571089[_0x3f97f6(0x1b5)](_0x5cc366[_0x3f97f6(0x19a)])){const _0x4e27d1=_0x2991a8[_0x3f97f6(0x184)][_0x3f97f6(0x1d8)](_0x29ef36[_0x3f97f6(0x1d4)]);if(_0x4e27d1){const _0x25e40f=_0x6cb2b9[_0x3f97f6(0x1a4)](_0x4e27d1);_0x571089[_0x3f97f6(0x196)](_0x5cc366[_0x3f97f6(0x19a)],_0x25e40f),_0x25e40f['on'](_0x3f97f6(0x174),(_0x5d6665,_0x1f867c,_0x251d4f)=>{const _0x139cf1=_0x3f97f6;if(_0x139cf1(0x169)==_0x25e40f[_0x139cf1(0x199)][_0x139cf1(0x170)]){const _0x5c6e89=_0x2991a8[_0x139cf1(0x184)][_0x139cf1(0x1d8)](_0x251d4f[_0x139cf1(0x1d4)]);_0x5c6e89?(_0x25e40f[_0x139cf1(0x1af)]=_0x5c6e89[_0x139cf1(0x1af)],_0x25e40f[_0x139cf1(0x1cf)]=_0x5c6e89[_0x139cf1(0x1cf)]):(_0x571089[_0x139cf1(0x15a)](_0x5cc366[_0x139cf1(0x19a)]),_0x25e40f[_0x139cf1(0x1c3)]());}});}}});}),_0x2991a8[_0xa32717(0x17e)]['on'](_0xa32717(0x1c8),()=>{const _0x5cacff=_0xa32717;_0x571089[_0x5cacff(0x1c5)]>0x0&&_0x2991a8[_0x5cacff(0x190)]({'isUndoable':!0x1},_0x4ce38f=>{const _0x27fa47=_0x5cacff;for(const [_0x1a2082,_0x2ffb38]of _0x571089)_0x27fa47(0x169)==_0x2991a8[_0x27fa47(0x179)][_0x27fa47(0x1d6)](_0x1a2082)[_0x27fa47(0x18a)]()[_0x27fa47(0x199)][_0x27fa47(0x170)]&&(Z(_0x1a2082[_0x27fa47(0x183)](':')[0x2],_0x2ffb38[_0x27fa47(0x17f)](),_0x2991a8,_0x4ce38f),_0x2ffb38[_0x27fa47(0x1c3)]());_0x571089[_0x27fa47(0x1ca)]();});});}(_0x55f384),this[_0x101a9e(0x1bd)][_0x101a9e(0x1aa)](_0x201c02[_0x101a9e(0x17e)],_0x101a9e(0x17c),(_0x46727d,{key:_0x2a0182})=>{const _0x541ab5=_0x101a9e;_0x541ab5(0x18e)===_0x2a0182&&function(_0x428220){const _0x3e396b=_0x541ab5;_0x428220[_0x3e396b(0x15f)][_0x3e396b(0x1a2)][_0x3e396b(0x1c8)](_0x11e9c4=>{const _0x599d35=_0x3e396b;for(const _0x8851a7 of _0x428220[_0x599d35(0x194)][_0x599d35(0x179)]){if(!_0x8851a7[_0x599d35(0x19a)][_0x599d35(0x158)](_0x599d35(0x1c4)))continue;const _0x6473f5=_0x428220[_0x599d35(0x15f)][_0x599d35(0x1b4)][_0x599d35(0x1d3)](_0x8851a7[_0x599d35(0x19a)]);if(_0x6473f5){for(const _0x48f4b1 of _0x6473f5)_0x11e9c4[_0x599d35(0x180)](_0x599d35(0x178),_0x48f4b1);}}});}(_0x55f384);},{'useCapture':!0x0});}[_0x41bf8e(0x1d9)](){const _0x1f55c4=_0x41bf8e,_0x3b3c36=this[_0x1f55c4(0x17b)],_0xe68c47=_0x3b3c36[_0x1f55c4(0x19b)][_0x1f55c4(0x1d6)](_0x1f55c4(0x18f));_0xe68c47&&_0x3b3c36[_0x1f55c4(0x194)]['on'](_0x1f55c4(0x16d),(_0x286321,_0x2dcbb7)=>{const _0x269f7d=_0x1f55c4,_0x4dbead=_0x2dcbb7[0x0];if(!_0x4dbead[_0x269f7d(0x187)])return;if(_0x269f7d(0x1c0)!=_0x4dbead[_0x269f7d(0x19d)]||!_0x4dbead[_0x269f7d(0x19a)][_0x269f7d(0x158)](_0x269f7d(0x1b9)))return;const _0x3d461f=_0x4dbead[_0x269f7d(0x165)];_0xe68c47[_0x269f7d(0x168)][_0x269f7d(0x1b5)](_0x3d461f)&&(_0x4dbead[_0x269f7d(0x17d)]=_0x4dbead[_0x269f7d(0x18d)]?_0x3b3c36[_0x269f7d(0x194)][_0x269f7d(0x1d0)](_0x4dbead[_0x269f7d(0x18d)][_0x269f7d(0x1af)],_0x4dbead[_0x269f7d(0x18d)][_0x269f7d(0x1cf)]):null);},{'priority':_0x1f55c4(0x1b7)});}[_0x41bf8e(0x1d5)](){const _0xbf3388=_0x41bf8e;return this[_0xbf3388(0x1bd)][_0xbf3388(0x193)](),super[_0xbf3388(0x1d5)]();}[_0x41bf8e(0x185)](){const _0x268631=_0x41bf8e,_0x56d9a2=this[_0x268631(0x17b)],_0x1e2114=_0x56d9a2[_0x268631(0x194)][_0x268631(0x17e)],_0x5ecec0=_0x56d9a2[_0x268631(0x1d2)][_0x268631(0x1d6)](_0x46106e);_0x56d9a2[_0x268631(0x194)][_0x268631(0x190)]({'isUndoable':!0x1},_0x230df8=>{const _0x140578=_0x268631,_0x167a60=_0x140578(0x198)+_0x5ecec0[_0x140578(0x1c7)],_0x3f1ed6=_0x140578(0x1bb)+_0x5ecec0[_0x140578(0x1c7)],_0x2cd6c6=_0x56d9a2[_0x140578(0x194)][_0x140578(0x179)][_0x140578(0x1b5)](_0x167a60);_0x56d9a2[_0x140578(0x15f)][_0x140578(0x1a2)][_0x140578(0x163)]?Z(_0x5ecec0[_0x140578(0x1c7)],_0x1e2114[_0x140578(0x15b)][_0x140578(0x1a1)](),_0x56d9a2[_0x140578(0x194)],_0x230df8):_0x2cd6c6&&(_0x230df8[_0x140578(0x197)](_0x167a60),_0x230df8[_0x140578(0x197)](_0x3f1ed6));});}}function Z(_0x50febd,_0x23a28f,_0x15eea2,_0x1f44bb){const _0x2e3b4a=_0x41bf8e,_0x1d1c72=_0x2e3b4a(0x198)+_0x50febd,_0x207cf5=_0x2e3b4a(0x1bb)+_0x50febd,_0x185210=_0x23a28f[_0x2e3b4a(0x162)]();let _0xbf9d2d=_0x23a28f[_0x2e3b4a(0x1af)];if(_0x185210&&_0x185210['is'](_0x2e3b4a(0x1ab),_0x2e3b4a(0x1cb))){const _0x2a7d84=function(_0x4aa28b,_0xe4141e){const _0x400d64=_0x2e3b4a;for(const _0x172348 of _0x4aa28b[_0x400d64(0x160)]())if(_0xe4141e[_0x400d64(0x184)][_0x400d64(0x1a9)](_0x172348,_0x400d64(0x186)))return _0x172348;}(_0x23a28f,_0x15eea2);_0x2a7d84&&(_0xbf9d2d=_0x2a7d84,_0x23a28f=_0x1f44bb[_0x2e3b4a(0x1d0)](_0xbf9d2d));}const _0x3e00b8=_0x1f44bb[_0x2e3b4a(0x1d0)](_0xbf9d2d);_0x15eea2[_0x2e3b4a(0x179)][_0x2e3b4a(0x1b5)](_0x1d1c72)?(_0x1f44bb[_0x2e3b4a(0x1cc)](_0x1d1c72,{'range':_0x23a28f}),_0x1f44bb[_0x2e3b4a(0x1cc)](_0x207cf5,{'range':_0x3e00b8})):(_0x1f44bb[_0x2e3b4a(0x19e)](_0x1d1c72,{'range':_0x23a28f,'usingOperation':!0x0}),_0x1f44bb[_0x2e3b4a(0x19e)](_0x207cf5,{'range':_0x3e00b8,'usingOperation':!0x0}));}
|