@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.0 → 46.0.1-alpha.1
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 +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- 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/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-real-time-collaboration",
|
|
3
|
-
"version": "46.0.1-alpha.
|
|
3
|
+
"version": "46.0.1-alpha.1",
|
|
4
4
|
"description": "A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@ckeditor/ckeditor-cloud-services-collaboration": "53.0.0",
|
|
50
|
-
"@ckeditor/ckeditor5-cloud-services": "46.0.1-alpha.
|
|
51
|
-
"@ckeditor/ckeditor5-comments": "46.0.1-alpha.
|
|
52
|
-
"@ckeditor/ckeditor5-core": "46.0.1-alpha.
|
|
53
|
-
"@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.
|
|
54
|
-
"@ckeditor/ckeditor5-engine": "46.0.1-alpha.
|
|
55
|
-
"@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.
|
|
56
|
-
"@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.
|
|
57
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.
|
|
58
|
-
"@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.
|
|
59
|
-
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.
|
|
60
|
-
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.
|
|
61
|
-
"ckeditor5": "46.0.1-alpha.
|
|
62
|
-
"ckeditor5-collaboration": "46.0.1-alpha.
|
|
50
|
+
"@ckeditor/ckeditor5-cloud-services": "46.0.1-alpha.1",
|
|
51
|
+
"@ckeditor/ckeditor5-comments": "46.0.1-alpha.1",
|
|
52
|
+
"@ckeditor/ckeditor5-core": "46.0.1-alpha.1",
|
|
53
|
+
"@ckeditor/ckeditor5-editor-multi-root": "46.0.1-alpha.1",
|
|
54
|
+
"@ckeditor/ckeditor5-engine": "46.0.1-alpha.1",
|
|
55
|
+
"@ckeditor/ckeditor5-operations-compressor": "46.0.1-alpha.1",
|
|
56
|
+
"@ckeditor/ckeditor5-revision-history": "46.0.1-alpha.1",
|
|
57
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.1",
|
|
58
|
+
"@ckeditor/ckeditor5-track-changes": "46.0.1-alpha.1",
|
|
59
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.1",
|
|
60
|
+
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.1",
|
|
61
|
+
"ckeditor5": "46.0.1-alpha.1",
|
|
62
|
+
"ckeditor5-collaboration": "46.0.1-alpha.1",
|
|
63
63
|
"es-toolkit": "1.39.5"
|
|
64
64
|
},
|
|
65
65
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xe636e7=_0xf9de;(function(_0x419577,_0x5c8938){const _0x469e6e=_0xf9de,_0x4be457=_0x419577();while(!![]){try{const _0x29d7e4=-parseInt(_0x469e6e(0x6e))/0x1+-parseInt(_0x469e6e(0x7e))/0x2+parseInt(_0x469e6e(0x73))/0x3+parseInt(_0x469e6e(0x7d))/0x4*(-parseInt(_0x469e6e(0x6c))/0x5)+-parseInt(_0x469e6e(0x68))/0x6*(-parseInt(_0x469e6e(0x78))/0x7)+parseInt(_0x469e6e(0x72))/0x8*(-parseInt(_0x469e6e(0x6a))/0x9)+parseInt(_0x469e6e(0x6b))/0xa;if(_0x29d7e4===_0x5c8938)break;else _0x4be457['push'](_0x4be457['shift']());}catch(_0x34ca6c){_0x4be457['push'](_0x4be457['shift']());}}}(_0x43d4,0xbf4c7));import{ListItemView as _0x10e30b}from'ckeditor5/src/ui.js';import{UserView as _0x20b96c}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x43d4(){const _0x549467=['ck-presence-list__marker','color','295024wbAAcS','2726262loDBga','presentation','userView','execute','true','name','1014DywPdK','bindTemplate','1170sREwrC','29129720HxBnvT','70IOqvJp','setTemplate','364794VBTHvJ','focus','getBackgroundColorClass','ck-presence-list__dropdown-list-item','43816taSurc','2296392RzpjwK','tag','span','ck-user__full-name','button','23926thtfRU','fire','element'];_0x43d4=function(){return _0x549467;};return _0x43d4();}function _0xf9de(_0x4192f2,_0x58d0d2){const _0x43d4d3=_0x43d4();return _0xf9de=function(_0xf9de51,_0x1ee1c6){_0xf9de51=_0xf9de51-0x65;let _0x37997f=_0x43d4d3[_0xf9de51];return _0x37997f;},_0xf9de(_0x4192f2,_0x58d0d2);}export class PresenceDropdownListItemView extends _0x10e30b{[_0xe636e7(0x80)];constructor(_0x15c08f,_0x182740,_0x4c8b06){const _0x29178d=_0xe636e7;super(_0x15c08f);const _0x28aa3e=this[_0x29178d(0x69)];this[_0x29178d(0x80)]=new _0x20b96c(_0x15c08f,_0x182740);const _0x167d93={'tag':'li','attributes':{'class':['ck',_0x29178d(0x71)],'tabindex':-0x1,'role':_0x29178d(0x7f),'aria-label':_0x182740[_0x29178d(0x67)]},'children':[this[_0x29178d(0x80)],{'tag':_0x29178d(0x75),'attributes':{'class':['ck',_0x29178d(0x76)]},'children':[{'text':_0x182740[_0x29178d(0x67)]}]},{'tag':_0x29178d(0x75),'attributes':{'class':['ck',_0x29178d(0x7b),_0x182740[_0x29178d(0x7c)][_0x29178d(0x70)]()],'aria-hidden':_0x29178d(0x66)}}]};_0x4c8b06&&(_0x167d93[_0x29178d(0x74)]=_0x29178d(0x77),_0x167d93['on']={'click':_0x28aa3e['to'](()=>this[_0x29178d(0x79)](_0x29178d(0x65)))}),this[_0x29178d(0x6d)](_0x167d93);}[_0xe636e7(0x6f)](){const _0x1ed69f=_0xe636e7;this[_0x1ed69f(0x7a)][_0x1ed69f(0x6f)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e116c=_0x3a49;(function(_0x228ba4,_0x44e224){const _0x3ad02f=_0x3a49,_0x1ea694=_0x228ba4();while(!![]){try{const _0xccbcd0=-parseInt(_0x3ad02f(0x1a6))/0x1*(parseInt(_0x3ad02f(0x1a9))/0x2)+-parseInt(_0x3ad02f(0x191))/0x3*(parseInt(_0x3ad02f(0x18f))/0x4)+-parseInt(_0x3ad02f(0x186))/0x5*(-parseInt(_0x3ad02f(0x1a7))/0x6)+parseInt(_0x3ad02f(0x19a))/0x7*(parseInt(_0x3ad02f(0x19f))/0x8)+parseInt(_0x3ad02f(0x190))/0x9+-parseInt(_0x3ad02f(0x1ae))/0xa+parseInt(_0x3ad02f(0x187))/0xb;if(_0xccbcd0===_0x44e224)break;else _0x1ea694['push'](_0x1ea694['shift']());}catch(_0x19df86){_0x1ea694['push'](_0x1ea694['shift']());}}}(_0x4677,0x97fe9));import{ListView as _0x3d4061,View as _0x54d013}from'ckeditor5/src/ui.js';import{global as _0x202972}from'ckeditor5/src/utils.js';import{getTranslation as _0x5e949d}from'../../common-translations.js';function _0x3a49(_0x4a5422,_0x168ddb){const _0x4677e1=_0x4677();return _0x3a49=function(_0x3a49ae,_0x395b50){_0x3a49ae=_0x3a49ae-0x181;let _0xd6bfa3=_0x4677e1[_0x3a49ae];return _0xd6bfa3;},_0x3a49(_0x4a5422,_0x168ddb);}function _0x4677(){const _0x1f28e0=['listWrapperView','contains','listenTo','role','fire','3WaSdPT','84VYlMjF','render','42502mvAqBs','ck-presence-list__dropdown-list','div','presencelist:hide','bindTemplate','4005430RqDvyl','application','relatedTarget','.ck-presence-list__list','resize','window','396145nWGGJd','2024946OiUdBM','Connected\x20users\x20list\x20dropdown\x20menu','ariaLabelledBy','innerHeight','max','set','ck-presence-list__dropdown-list-wrapper','ck-reset','229016ovSwJD','813753QtzQMD','33hdmXnG','ariaLabel','scrollHeight','setTemplate','items','querySelector','ck-list','ck-presence-list__dropdown-list-wrapper_scrollable','element','1165325QepenG','clientHeight','_isScrollable','change','checkIfScrollable','16woFSWV','.ck-balloon-panel_with-arrow'];_0x4677=function(){return _0x1f28e0;};return _0x4677();}export class PresenceDropdownListView extends _0x54d013{[_0x5e116c(0x1a1)];constructor(_0x386733,_0xc3377f){const _0x15b282=_0x5e116c;super(_0x386733);const _0x26d55a=this[_0x15b282(0x1ad)];this[_0x15b282(0x1a1)]=new PresenceDropdownListWrapperView(_0x386733,_0xc3377f),this[_0x15b282(0x194)]({'tag':_0x15b282(0x1ab),'attributes':{'tabindex':-0x1,'role':_0x15b282(0x181),'class':['ck',_0x15b282(0x1aa)],'aria-label':_0x5e949d(_0x386733,_0x15b282(0x188))},'children':[this[_0x15b282(0x1a1)]],'on':{'mouseleave':_0x26d55a['to'](_0x259911=>{const _0x599601=_0x15b282,_0x5afe40=_0x259911,_0x3f95b5=document[_0x599601(0x196)](_0x599601(0x183)),_0x418e86=document[_0x599601(0x196)](_0x599601(0x1a0));_0x3f95b5?.[_0x599601(0x1a2)](_0x5afe40[_0x599601(0x182)])||_0x418e86?.[_0x599601(0x1a2)](_0x5afe40[_0x599601(0x182)])||this[_0x599601(0x1a5)](_0x599601(0x1ac));})}});}}export class PresenceDropdownListWrapperView extends _0x3d4061{constructor(_0x381119,_0x1af3cd){const _0x301c4b=_0x5e116c;super(_0x381119);const _0x4d7c83=this[_0x301c4b(0x1ad)];this[_0x301c4b(0x18c)](_0x301c4b(0x19c),!0x1),this[_0x301c4b(0x194)]({'tag':_0x1af3cd?_0x301c4b(0x1ab):'ul','attributes':{'class':['ck',_0x301c4b(0x18e),_0x301c4b(0x197),_0x301c4b(0x18d),_0x4d7c83['if'](_0x301c4b(0x19c),_0x301c4b(0x198))],'role':_0x4d7c83['to'](_0x301c4b(0x1a4)),'aria-label':_0x4d7c83['to'](_0x301c4b(0x192)),'aria-labelledby':_0x4d7c83['to'](_0x301c4b(0x189))},'children':this[_0x301c4b(0x195)]}),this[_0x301c4b(0x1a3)](_0x202972[_0x301c4b(0x185)],_0x301c4b(0x184),()=>this[_0x301c4b(0x19e)]()),this[_0x301c4b(0x195)]['on'](_0x301c4b(0x19d),()=>this[_0x301c4b(0x19e)]());}[_0x5e116c(0x1a8)](){const _0x1bf8b8=_0x5e116c;super[_0x1bf8b8(0x1a8)](),this[_0x1bf8b8(0x19e)]();}[_0x5e116c(0x19e)](){const _0x2796f6=_0x5e116c,_0x44807e=this[_0x2796f6(0x199)];_0x44807e&&(this[_0x2796f6(0x19c)]=Math[_0x2796f6(0x18b)](_0x44807e[_0x2796f6(0x193)],_0x44807e[_0x2796f6(0x19b)])>0.8*window[_0x2796f6(0x18a)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x228c(_0x3ad60b,_0x2fdc7f){const _0x4e8c9c=_0x4e8c();return _0x228c=function(_0x228cd6,_0x465355){_0x228cd6=_0x228cd6-0x7e;let _0x561ac9=_0x4e8c9c[_0x228cd6];return _0x561ac9;},_0x228c(_0x3ad60b,_0x2fdc7f);}const _0x562afc=_0x228c;(function(_0x1a67ed,_0x30ba66){const _0x51e592=_0x228c,_0x590bfa=_0x1a67ed();while(!![]){try{const _0x414841=-parseInt(_0x51e592(0x7f))/0x1*(parseInt(_0x51e592(0x85))/0x2)+parseInt(_0x51e592(0x80))/0x3+parseInt(_0x51e592(0x91))/0x4*(-parseInt(_0x51e592(0x8d))/0x5)+parseInt(_0x51e592(0x8a))/0x6+-parseInt(_0x51e592(0x9e))/0x7*(parseInt(_0x51e592(0x88))/0x8)+parseInt(_0x51e592(0x97))/0x9+-parseInt(_0x51e592(0x95))/0xa*(parseInt(_0x51e592(0x84))/0xb);if(_0x414841===_0x30ba66)break;else _0x590bfa['push'](_0x590bfa['shift']());}catch(_0x43fc29){_0x590bfa['push'](_0x590bfa['shift']());}}}(_0x4e8c,0x85570));function _0x4e8c(){const _0x4877fb=['tag','bindTemplate','152GbGbte','execute','4709400Reeyfm','ck-presence-list__list-item__tooltip','ck-presence-list__marker','5LzYFMG','template','color','fire','1555516PxEdSD','userView','set','isFocusable','237230fcBCAu','ck-presence-list__list-item','869094FTOXxQ','true','markerView','text','button','name','getBackgroundColorClass','36393IOVqoS','tooltipPosition','listitem','div','78762qwApiZ','2281845bpNehL','span','hasTooltip','setTemplate','209woRtXR','4iIELrU'];_0x4e8c=function(){return _0x4877fb;};return _0x4e8c();}import{LabelView as _0x1b63eb,View as _0x53c9f6}from'ckeditor5/src/ui.js';import{UserView as _0x5e515f}from'ckeditor5-collaboration/src/collaboration-core.js';export class PresenceInlineListItemView extends _0x53c9f6{[_0x562afc(0x92)];[_0x562afc(0x99)];constructor(_0x36efce,_0x311817,_0x469fcc){const _0x3bf302=_0x562afc;super(_0x36efce);const _0x1eecae=this[_0x3bf302(0x87)];this[_0x3bf302(0x93)](_0x3bf302(0x94),!0x1),this[_0x3bf302(0x93)](_0x3bf302(0x82),!0x0),this[_0x3bf302(0x93)](_0x3bf302(0x9f),''),this[_0x3bf302(0x92)]=new _0x5e515f(_0x36efce,_0x311817),this[_0x3bf302(0x99)]=new ot(_0x36efce,_0x311817);const _0x396e04=new _0x1b63eb(_0x36efce);_0x396e04[_0x3bf302(0x8e)][_0x3bf302(0x86)]=_0x3bf302(0x81),_0x396e04[_0x3bf302(0x9a)]=_0x311817[_0x3bf302(0x9c)];const _0xfe95b7={'tag':_0x3bf302(0x7e),'attributes':{'class':['ck',_0x3bf302(0x96)],'role':_0x3bf302(0xa0),'tabindex':_0x1eecae['to'](_0x3bf302(0x94),_0x4ae7d7=>!!_0x4ae7d7&&0x0),'aria-labelledby':_0x396e04['id'],'data-cke-tooltip-text':this[_0x3bf302(0x92)][_0x3bf302(0x9c)],'data-cke-tooltip-position':_0x1eecae['to'](_0x3bf302(0x9f)),'data-cke-tooltip-disabled':_0x1eecae['to'](_0x3bf302(0x82),_0x832751=>!_0x832751),'data-cke-tooltip-class':_0x3bf302(0x8b)},'children':[this[_0x3bf302(0x92)],this[_0x3bf302(0x99)],_0x396e04]};_0x469fcc&&(_0xfe95b7[_0x3bf302(0x86)]=_0x3bf302(0x9b),_0xfe95b7['on']={'click':_0x1eecae['to'](()=>this[_0x3bf302(0x90)](_0x3bf302(0x89)))}),this[_0x3bf302(0x83)](_0xfe95b7);}}class ot extends _0x53c9f6{constructor(_0xc87bc2,_0x42337a){const _0x55a096=_0x562afc;super(_0xc87bc2),this[_0x55a096(0x83)]({'tag':_0x55a096(0x81),'attributes':{'class':['ck',_0x55a096(0x8c),_0x42337a[_0x55a096(0x8f)][_0x55a096(0x9d)]()],'aria-hidden':_0x55a096(0x98)}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe63486=_0x42e4;(function(_0x453234,_0x35f684){const _0x1bdab5=_0x42e4,_0x20f61e=_0x453234();while(!![]){try{const _0x2e233a=-parseInt(_0x1bdab5(0x145))/0x1+parseInt(_0x1bdab5(0x149))/0x2*(parseInt(_0x1bdab5(0x152))/0x3)+-parseInt(_0x1bdab5(0x144))/0x4*(parseInt(_0x1bdab5(0x15b))/0x5)+parseInt(_0x1bdab5(0x15c))/0x6+-parseInt(_0x1bdab5(0x154))/0x7+parseInt(_0x1bdab5(0x15d))/0x8+parseInt(_0x1bdab5(0x13a))/0x9;if(_0x2e233a===_0x35f684)break;else _0x20f61e['push'](_0x20f61e['shift']());}catch(_0x3ef1d7){_0x20f61e['push'](_0x20f61e['shift']());}}}(_0x4318,0x95444));function _0x4318(){const _0x14d6f7=['isExpanded','createCollection','141604leabZc','361254UTajJq','aria-expanded','setAttribute','relatedTarget','6FKzwbH','bindTemplate','items','div','list','presencelist:show','element','contains','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','981921vMtQLr','hasPopup','7996891SRQJeB','setTemplate','.ck-presence-list__dropdown-list','removeAttribute','.ck-balloon-panel_with-arrow','keystrokes','Connected\x20users\x20list','95Gkgvmp','6237198rodlBJ','1832504jQFrTb','focus','ck-presence-list__list','4834485DmepsI','render','listenTo','querySelector','change:hasPopup','set','fire','presencelist:hide'];_0x4318=function(){return _0x14d6f7;};return _0x4318();}import{View as _0x329ed3}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x5821be}from'ckeditor5/src/utils.js';function _0x42e4(_0x3b536b,_0x22c77a){const _0x4318ef=_0x4318();return _0x42e4=function(_0x42e4cc,_0x5be952){_0x42e4cc=_0x42e4cc-0x138;let _0x16e519=_0x4318ef[_0x42e4cc];return _0x16e519;},_0x42e4(_0x3b536b,_0x22c77a);}import{getTranslation as _0x4bf61d}from'../../common-translations.js';export class PresenceInlineListView extends _0x329ed3{[_0xe63486(0x14b)];[_0xe63486(0x159)];constructor(_0x2ab1a5){const _0x473417=_0xe63486;super(_0x2ab1a5);const _0x3b8506=this[_0x473417(0x14a)];this[_0x473417(0x14b)]=this[_0x473417(0x143)](),this[_0x473417(0x159)]=new _0x5821be(),this[_0x473417(0x13f)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x473417(0x155)]({'tag':_0x473417(0x14c),'attributes':{'aria-haspopup':_0x3b8506['if'](_0x473417(0x153)),'aria-expanded':_0x3b8506['to'](_0x473417(0x142),_0x1bb529=>this[_0x473417(0x153)]&&String(_0x1bb529)),'aria-label':_0x3b8506['to'](_0x473417(0x153),_0x522621=>_0x4bf61d(_0x2ab1a5,_0x522621?_0x473417(0x151):_0x473417(0x15a))),'role':_0x473417(0x14d),'tabindex':_0x3b8506['to'](_0x473417(0x153),_0xa86f09=>!!_0xa86f09&&0x0),'class':['ck',_0x473417(0x139)]},'children':this[_0x473417(0x14b)],'on':{'mouseenter':_0x3b8506['to'](()=>this[_0x473417(0x140)](_0x473417(0x14e))),'mouseleave':_0x3b8506['to'](_0x2cc39c=>{const _0x24aa94=_0x473417,_0xe9b3e5=_0x2cc39c,_0x5de73a=document[_0x24aa94(0x13d)](_0x24aa94(0x156)),_0x59ae13=document[_0x24aa94(0x13d)](_0x24aa94(0x158));_0x5de73a?.[_0x24aa94(0x150)](_0xe9b3e5[_0x24aa94(0x148)])||_0x59ae13?.[_0x24aa94(0x150)](_0xe9b3e5[_0x24aa94(0x148)])||this[_0x24aa94(0x140)](_0x24aa94(0x141));})}}),this['on'](_0x473417(0x13e),(_0x293d38,_0x486582,_0x576062)=>{const _0x570dfe=_0x473417;this[_0x570dfe(0x14f)]&&(_0x576062?this[_0x570dfe(0x14f)][_0x570dfe(0x147)](_0x570dfe(0x146),String(this[_0x570dfe(0x142)])):this[_0x570dfe(0x14f)][_0x570dfe(0x157)](_0x570dfe(0x146)));});}[_0xe63486(0x138)](){const _0x41a7d2=_0xe63486;this[_0x41a7d2(0x14f)][_0x41a7d2(0x138)]();}[_0xe63486(0x13b)](){const _0x491cd0=_0xe63486;super[_0x491cd0(0x13b)](),this[_0x491cd0(0x159)][_0x491cd0(0x13c)](this[_0x491cd0(0x14f)]);}}
|
|
@@ -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
|
+
const _0x5d8795=_0x3add;(function(_0x1813fa,_0x22dee8){const _0x8275f6=_0x3add,_0x1751bb=_0x1813fa();while(!![]){try{const _0x162fa5=-parseInt(_0x8275f6(0x1e9))/0x1*(-parseInt(_0x8275f6(0x1db))/0x2)+-parseInt(_0x8275f6(0x182))/0x3*(-parseInt(_0x8275f6(0x21b))/0x4)+-parseInt(_0x8275f6(0x222))/0x5+parseInt(_0x8275f6(0x180))/0x6*(parseInt(_0x8275f6(0x186))/0x7)+parseInt(_0x8275f6(0x1d3))/0x8+-parseInt(_0x8275f6(0x240))/0x9+parseInt(_0x8275f6(0x197))/0xa;if(_0x162fa5===_0x22dee8)break;else _0x1751bb['push'](_0x1751bb['shift']());}catch(_0x7ca211){_0x1751bb['push'](_0x1751bb['shift']());}}}(_0x3d7c,0xb909a));import{Plugin as _0x5df69f,PendingActions as _0x476eb8}from'ckeditor5/src/core.js';import{CKEditorError as _0x46630e,version as _0x4d9ab4,uid as _0x1f3b4e}from'ckeditor5/src/utils.js';import{Notification as _0x42fec3}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x205bc5,NoOperation as _0x5eda03,InsertOperation as _0x148a98,MarkerOperation as _0xd539d,RootAttributeOperation as _0x486427,OperationFactory as _0x409321,History as _0x140a69}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x138e5a}from'./websocketgateway.js';import{Sessions as _0x39741a}from'./sessions.js';import{UserMarkers as _0x3e28e8}from'./usermarkers.js';import{getTranslation as _0x5af1b4}from'../common-translations.js';import{Compressor as _0x1447ce}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x54e9ca}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x3add(_0x5453e6,_0x3b81ad){const _0x3d7cdc=_0x3d7c();return _0x3add=function(_0x3add1c,_0x1015a2){_0x3add1c=_0x3add1c-0x14e;let _0x287c72=_0x3d7cdc[_0x3add1c];return _0x287c72;},_0x3add(_0x5453e6,_0x3b81ad);}import{User as _0x42bc8d,CollaborativeEditingService as _0x252501}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let X=0x1;function _0x3d7c(){const _0x499735=['_connectService','requires','addRootAttribute','_bufferedOperations','InsertOperation','_crash','multi-root-editor-root-attributes-no-root','_offset','createdAt','RealTimeCollaborationClient','length','4485300wgUNfh','removeFromReconnectionStack','isOfficialPlugin','_handleExternalOperations','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.','409','_addKnownRoot','serverHistory','Permissions','CommentsOnly','get','_lastSyncedOperationId','_waitUntilSynced','_hasSynchronizationProblem','permissions','$root','model','rootsAttributes','bind','reconnection:\x20flushed\x20session','document:write','_handleReceivedOperations','push','createRange','view','_compressor','disconnect','_hasSelectionChanged','apply','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','getRoot','_shouldSendSelectionUpdate','path','_service','_authorId','batch','realtimecollaborationclient-init-service-incorrect-server-operation','_knownOperations','_initThrowingOnDataSet','remove','locale','destroy','__className','type','_document','wasUndone','offset','_applyOperationsSet','state','editor','_currentBufferDelay','_isConnected','move','_disconnectionOperations','attributes','set','reconnect','rootName','getOperationAuthor','_initSessionsHandling','2011584HOwlig','_fetchMissingUsers','roots','addOperation','collaboration-missing-channelid','code','addUser','cloudServices.bundleVersion','4eTqxDR','realtimecollaborationclient-init-non-existent-root','wereChangesApplied','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','_isDisconnection','_handleServerResponse','decompress','filter','then','ready','channelSessions','differ','clone','_isEditingAllowed','30511meSNYo','_lastServerVersion','_channelId','applyOperation','_isLoaded','metadata','createPositionAt','_getOperationsFromInitData','sessionCreatedAt','operationsReceived','isPremiumPlugin','_isAttached','getConnectedSessions','sessionId','_shouldSendUpdate','realtimecollaborationclient-init-connection-failed','createRoot','position','collaboration','finally','_setPendingAction','register','connection','rtc-offline','setIdForTheLastOperation','rtc-destroyed','change:_isPendingUpdate','targetPosition','_clearPendingAction','fromJSON','parse','toJSON','currentDocumentSession','_handleReconnectionError','_refreshUserSelectionMarkers','selection','_isInit','newRange','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','lastDocumentSession','createPositionFromPath','root','realtimecollaborationclient-sendbufferedoperations','realtimecollaborationclient-init-document-already-initialized','listenTo','keys','_operationIdentifier','realtimecollaborationclient-init-service-internal-error','PENDING_ACTION_SENDING_DATA','userId','553108Yppuvu','catch','config','connect','real-time-collaboration','getDocumentDetails','_baseBufferDelay','627450atxhmN','connected','string','version','cloudDocumentVersion','_isPendingUpdate','isReadOnly','initData','isUndoneOperation','unregister','map','_decompressOperations','change:hasDomSelection','sessionAdd:','enqueueChange','_sendBufferedOperationsDelayId','getMany','fire','_knownRootNames','Synchronization\x20issue','editing','message','Notification','from','sendOperations','history','loadRoot','_loadRoot','isDocumentOperation','404','9279036KRLPHJ','pluginName','addToReconnectionStack','enableReadOnlyMode','entries','_sendBufferedOperationsDelayed','marker','_updateServerHistory','_sendBufferedOperations','createUserMarkerOperations','baseVersion','_connectAfterSessionHasBeenFlushed','showWarning','realtimecollaborationclient-error','change:_isEditingAllowed','has','collaboration.channelId','addRoot','_disconnectService','_getAffectedRoot','slice','_operationToId','getIdOfTheLastOperation','realtimecollaborationclient','forEach','getOperations','startsWith','includes','getUser','round','affectedSelectable','directChange','realtimecollaborationclient-init-session-connection-error','_saveOperationInBuffer','isEnabled','data','markers','stopListening','disableReadOnlyMode','_compressOperations','cloud-services-internal-error:\x20Request\x20timeout.','realtimecollaborationclient-handleserverresponse','add','plugins','high','reset','stop','insert','size','lastOperationId','mySessionId','CollaborativeEditingService','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','error','_bufferRootLoad','define','end','off','lastOperationAcceptedAt','init','_pendingAction','change:range','_handleSendingSelectionMarkers','cloud-services-internal-error:\x20Not\x20connected.','suppressErrorInCollaboration','_handleReconnectionResponse','lastSyncVersion','cs:removeUser','_handleInitialConnectionData','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.','114hGLTZk','_ignoredOperations','15zbuAWQ','start','compress','_setUpDataInit','170219jzWDnQ','return','disconnected','setPermissions','document','affectsData'];_0x3d7c=function(){return _0x499735;};return _0x3d7c();}class l extends _0x5df69f{static [_0x5d8795(0x16d)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x252501)());[_0x5d8795(0x193)];[_0x5d8795(0x1f6)];[_0x5d8795(0x19e)];[_0x5d8795(0x1eb)];[_0x5d8795(0x1b8)];[_0x5d8795(0x1c3)];[_0x5d8795(0x1b0)];[_0x5d8795(0x18f)];[_0x5d8795(0x1bc)];[_0x5d8795(0x234)];[_0x5d8795(0x176)];[_0x5d8795(0x1b2)];[_0x5d8795(0x231)];[_0x5d8795(0x221)];[_0x5d8795(0x1c9)];[_0x5d8795(0x1a2)];[_0x5d8795(0x1cc)];[_0x5d8795(0x217)];static get[_0x5d8795(0x18d)](){return[_0x138e5a,_0x39741a,_0x3e28e8,_0x476eb8,_0x54e9ca,_0x42fec3];}static get[_0x5d8795(0x241)](){const _0xcf2ce6=_0x5d8795;return _0xcf2ce6(0x195);}static get[_0x5d8795(0x199)](){return!0x0;}static get[_0x5d8795(0x1f3)](){return!0x0;}get[_0x5d8795(0x226)](){const _0x5077df=_0x5d8795;return this[_0x5077df(0x1ea)]+this[_0x5077df(0x193)];}get[_0x5d8795(0x1ea)](){const _0x4962cb=_0x5d8795;return this[_0x4962cb(0x19e)][_0x4962cb(0x225)]-this[_0x4962cb(0x193)];}get[_0x5d8795(0x17c)](){const _0x489251=_0x5d8795,_0x555f9e=this[_0x489251(0x19e)][_0x489251(0x153)]();for(let _0x1d46c0=_0x555f9e[_0x489251(0x196)]-0x1;_0x1d46c0>=0x0;_0x1d46c0--){const _0x20fef5=_0x555f9e[_0x1d46c0];if(!this[_0x489251(0x1cc)][_0x489251(0x24f)](_0x20fef5))return _0x20fef5[_0x489251(0x24a)]+0x1-this[_0x489251(0x193)];}return 0x0;}constructor(_0x13f22f){const _0x2717a1=_0x5d8795;if(super(_0x13f22f),this[_0x2717a1(0x193)]=0x0,this[_0x2717a1(0x1f6)]=null,this[_0x2717a1(0x19e)]=new _0x140a69(),this[_0x2717a1(0x1c8)][_0x2717a1(0x21d)][_0x2717a1(0x171)](_0x2717a1(0x1fb),{}),this[_0x2717a1(0x1eb)]=this[_0x2717a1(0x1c8)][_0x2717a1(0x21d)][_0x2717a1(0x1a1)](_0x2717a1(0x250)),!this[_0x2717a1(0x1eb)])throw new _0x46630e(_0x2717a1(0x1d7),this);const _0x8bb56d=_0x13f22f[_0x2717a1(0x21d)][_0x2717a1(0x1a1)](_0x2717a1(0x1da))||_0x4d9ab4;this[_0x2717a1(0x1b8)]=new l[(_0x2717a1(0x16d))](_0x8bb56d,this[_0x2717a1(0x1eb)]),this[_0x2717a1(0x1c3)]=this[_0x2717a1(0x1c8)][_0x2717a1(0x1a7)][_0x2717a1(0x18a)],this[_0x2717a1(0x1b0)]=new _0x1447ce(),this[_0x2717a1(0x18f)]=[],this[_0x2717a1(0x1bc)]=new WeakSet(),this[_0x2717a1(0x234)]=new Set(),this[_0x2717a1(0x1ce)](_0x2717a1(0x227),!0x1),this[_0x2717a1(0x1ce)](_0x2717a1(0x1a4),!0x1),this[_0x2717a1(0x176)]=null,this[_0x2717a1(0x1b2)]=!0x1,this[_0x2717a1(0x231)]=null,this[_0x2717a1(0x221)]=0x12c,this[_0x2717a1(0x1c9)]=this[_0x2717a1(0x221)],this[_0x2717a1(0x1a2)]=null,this[_0x2717a1(0x1cc)]=new WeakSet(),this[_0x2717a1(0x217)]=new tt(this[_0x2717a1(0x1cc)]);}[_0x5d8795(0x175)](){const _0x57dcf6=_0x5d8795,_0x4a0aa7=this[_0x57dcf6(0x1c8)],_0x20dcaf=_0x4a0aa7[_0x57dcf6(0x165)][_0x57dcf6(0x1a1)](_0x54e9ca),_0xdd960b=_0x4a0aa7[_0x57dcf6(0x165)][_0x57dcf6(0x1a1)](_0x138e5a);this[_0x57dcf6(0x215)](_0x20dcaf,_0x57dcf6(0x1d1),(_0x4f94c3,_0x29375a)=>{const _0x19cbe1=_0x57dcf6,_0x1f137f=_0x29375a[0x0];_0x1f137f[_0x19cbe1(0x1b9)]&&(_0x4f94c3[_0x19cbe1(0x187)]=_0x20dcaf[_0x19cbe1(0x156)](_0x1f137f[_0x19cbe1(0x1b9)]),_0x4f94c3[_0x19cbe1(0x168)]()),null===_0x1f137f[_0x19cbe1(0x1b9)]&&(_0x4f94c3[_0x19cbe1(0x187)]=null,_0x4f94c3[_0x19cbe1(0x168)]());},{'priority':_0x57dcf6(0x166)}),this[_0x57dcf6(0x215)](_0x4a0aa7[_0x57dcf6(0x1a7)][_0x57dcf6(0x18a)][_0x57dcf6(0x20c)],_0x57dcf6(0x177),(_0x24f6f3,_0x2ae749)=>{const _0x4115f5=_0x57dcf6;_0x2ae749[_0x4115f5(0x159)]&&this[_0x4115f5(0x20b)]();}),this[_0x57dcf6(0x215)](_0x4a0aa7[_0x57dcf6(0x236)][_0x57dcf6(0x1af)],_0x57dcf6(0x22e),()=>{const _0xd71c88=_0x57dcf6;this[_0xd71c88(0x20b)]();}),this[_0x57dcf6(0x1bd)](),_0x4a0aa7[_0x57dcf6(0x1a7)]['on'](_0x57dcf6(0x1ec),(_0x13f585,_0x2389ed)=>{const _0x26c21e=_0x57dcf6,_0x38de50=_0x2389ed[0x0];_0x38de50[_0x26c21e(0x23e)]&&(this[_0x26c21e(0x15b)](_0x38de50),this[_0x26c21e(0x1f7)]()&&this[_0x26c21e(0x245)]());}),this[_0x57dcf6(0x185)](),this[_0x57dcf6(0x1a9)](_0x57dcf6(0x1e8))['to'](_0xdd960b,_0x57dcf6(0x1c7),this,_0x57dcf6(0x1a4),(_0x4d5fc8,_0x53dc1c)=>_0x57dcf6(0x223)===_0x4d5fc8&&!_0x53dc1c),this['on'](_0x57dcf6(0x24e),()=>{const _0x166863=_0x57dcf6;this[_0x166863(0x1e8)]?_0x4a0aa7[_0x166863(0x160)](_0x166863(0x200)):_0x4a0aa7[_0x166863(0x243)](_0x166863(0x200));}),this[_0x57dcf6(0x1e8)]?_0x4a0aa7[_0x57dcf6(0x160)](_0x57dcf6(0x200)):_0x4a0aa7[_0x57dcf6(0x243)](_0x57dcf6(0x200)),this[_0x57dcf6(0x1ce)](_0x57dcf6(0x1ca),!0x1);}async[_0x5d8795(0x1cf)](){const _0x522c1e=_0x5d8795,_0x353e7d=this[_0x522c1e(0x1c8)][_0x522c1e(0x165)][_0x522c1e(0x1a1)](_0x39741a),_0x2152d0=this[_0x522c1e(0x1c8)][_0x522c1e(0x165)][_0x522c1e(0x1a1)](_0x138e5a);try{this[_0x522c1e(0x227)]=!0x0,_0x353e7d[_0x522c1e(0x22b)](this[_0x522c1e(0x1eb)]);const _0x5a9658=await this[_0x522c1e(0x1b8)][_0x522c1e(0x1cf)](_0x2152d0[_0x522c1e(0x1ff)],this[_0x522c1e(0x17c)]);await this[_0x522c1e(0x17b)](_0x5a9658)&&(this[_0x522c1e(0x227)]=!0x1,this[_0x522c1e(0x205)]());const _0x15f46b=await this[_0x522c1e(0x1b8)][_0x522c1e(0x1f5)]();_0x353e7d[_0x522c1e(0x1fe)](this[_0x522c1e(0x1eb)],_0x15f46b),this[_0x522c1e(0x178)](),this[_0x522c1e(0x1ca)]=!0x0;}catch(_0x491282){if(function(_0x5f1065){const _0x44d689=_0x522c1e;return _0x44d689(0x23f)===_0x5f1065[_0x44d689(0x1d8)];}(_0x491282)&&this[_0x522c1e(0x1f6)])await this[_0x522c1e(0x24b)]();else{if(function(_0x1799d8){const _0xbdc1ee=_0x522c1e;return _0xbdc1ee(0x19c)===_0x1799d8[_0xbdc1ee(0x1d8)];}(_0x491282)){const _0x2aac75=_0x5af1b4(this[_0x522c1e(0x1c8)][_0x522c1e(0x1bf)],_0x522c1e(0x16e));this[_0x522c1e(0x20a)](_0x2aac75);}else{if(!(_0x491282 instanceof Y))throw _0x491282;this[_0x522c1e(0x20a)]();}}}}[_0x5d8795(0x1c0)](){const _0x504756=_0x5d8795,_0x1deeaf=this[_0x504756(0x1c8)][_0x504756(0x165)][_0x504756(0x1a1)](_0x138e5a),_0x341767=this[_0x504756(0x1c8)][_0x504756(0x165)][_0x504756(0x1a1)](_0x39741a);this[_0x504756(0x1c8)][_0x504756(0x243)](_0x504756(0x202)),_0x341767[_0x504756(0x1e5)][_0x504756(0x24f)](this[_0x504756(0x1eb)])&&_0x341767[_0x504756(0x22b)](this[_0x504756(0x1eb)]),_0x1deeaf[_0x504756(0x198)](this),this[_0x504756(0x252)](),super[_0x504756(0x1c0)]();}async[_0x5d8795(0x17b)](_0x367953){const _0x5f3d54=_0x5d8795;if(this[_0x5f3d54(0x1f6)]!==_0x367953[_0x5f3d54(0x1f6)]&&this[_0x5f3d54(0x1a2)]!==_0x367953[_0x5f3d54(0x16b)])throw new Y();return this[_0x5f3d54(0x1f6)]=_0x367953[_0x5f3d54(0x1f6)],this[_0x5f3d54(0x1e0)]([],{..._0x367953,'wereChangesApplied':!0x1,'data':_0x367953[_0x5f3d54(0x15d)]},_0x5f3d54(0x1cf));}async[_0x5d8795(0x18c)](_0x331df1,_0x594047=!0x1){const _0x598466=_0x5d8795,{connection:_0x4b276c}=this[_0x598466(0x1c8)][_0x598466(0x165)][_0x598466(0x1a1)](_0x138e5a);l[_0x598466(0x16d)][_0x598466(0x1f5)](_0x4b276c,this[_0x598466(0x1eb)])[_0x598466(0x1e3)](_0x1315e5=>this[_0x598466(0x1d2)](_0x1315e5))[_0x598466(0x21c)](_0x4b74a5=>{const _0x4ca513=_0x598466;this[_0x4ca513(0x191)](_0x4ca513(0x15a),_0x4b74a5);}),this[_0x598466(0x215)](this[_0x598466(0x1b8)],_0x598466(0x1f2),this[_0x598466(0x1ac)][_0x598466(0x1a9)](this)),this[_0x598466(0x215)](this[_0x598466(0x1b8)],_0x598466(0x16f),(_0x2447c1,_0x51f88a)=>{const _0x4dc6a0=_0x598466;this[_0x4dc6a0(0x191)](_0x4dc6a0(0x218),_0x51f88a);}),this[_0x598466(0x215)](this[_0x598466(0x1b8)],_0x598466(0x188),()=>{const _0x15f2b6=_0x598466;this[_0x15f2b6(0x1ca)]=!0x1;});const _0x5786db=this[_0x598466(0x217)][_0x598466(0x150)](_0x331df1);this[_0x598466(0x227)]=!0x0;const _0x6d39f7=await this[_0x598466(0x1b8)][_0x598466(0x21e)](_0x4b276c,this[_0x598466(0x161)](_0x331df1),_0x5786db);if(this[_0x598466(0x1f6)]=_0x6d39f7[_0x598466(0x1f6)],_0x594047){if(!_0x6d39f7[_0x598466(0x1dd)])return void this[_0x598466(0x20a)]();this[_0x598466(0x227)]=!0x1,this[_0x598466(0x205)](),this[_0x598466(0x19e)][_0x598466(0x167)](),this[_0x598466(0x193)]=_0x6d39f7[_0x598466(0x1c5)],this[_0x598466(0x19e)][_0x598466(0x225)]=this[_0x598466(0x193)],await this[_0x598466(0x1e0)](_0x331df1,_0x6d39f7,_0x598466(0x1aa));}else await this[_0x598466(0x17e)](_0x6d39f7,_0x331df1);this[_0x598466(0x178)](),this[_0x598466(0x1ca)]=!0x0;}[_0x5d8795(0x178)](){const _0x1d4475=_0x5d8795,_0x8c95a1=this[_0x1d4475(0x1c8)][_0x1d4475(0x165)][_0x1d4475(0x1a1)](_0x39741a),_0x4dc181=this[_0x1d4475(0x1c8)][_0x1d4475(0x165)][_0x1d4475(0x1a1)](_0x3e28e8),_0x5e1d60=_0x8c95a1[_0x1d4475(0x1e5)][_0x1d4475(0x1a1)](this[_0x1d4475(0x1eb)]);_0x5e1d60&&_0x5e1d60[_0x1d4475(0x196)]>0x1?_0x4dc181[_0x1d4475(0x249)]():this[_0x1d4475(0x215)](_0x8c95a1,_0x1d4475(0x22f)+this[_0x1d4475(0x1eb)],()=>{const _0x5a85da=_0x1d4475;0x2===_0x8c95a1[_0x5a85da(0x1e5)][_0x5a85da(0x1a1)](this[_0x5a85da(0x1eb)])[_0x5a85da(0x196)]&&_0x4dc181[_0x5a85da(0x249)]();});}async[_0x5d8795(0x1ac)](_0x1676e7,_0x57f235,_0x35ce96,_0x5d2936){const _0x517763=_0x5d8795;if(!this[_0x517763(0x227)]&&this[_0x517763(0x1c3)][_0x517763(0x225)]==_0x57f235){const _0x4d9601=this[_0x517763(0x22d)](_0x35ce96,_0x5d2936);await this[_0x517763(0x1d4)](_0x4d9601),this[_0x517763(0x19a)](_0x4d9601,_0x57f235,_0x35ce96[_0x517763(0x16b)])||this[_0x517763(0x191)](_0x517763(0x1bb));}}async[_0x5d8795(0x24b)](){const _0x238b21=_0x5d8795;this[_0x238b21(0x252)]();const {locale:_0x317d7d}=this[_0x238b21(0x1c8)];let _0x2858b2;try{_0x2858b2=await this[_0x238b21(0x1b8)][_0x238b21(0x220)]();}catch{const _0x22a0af=_0x5af1b4(_0x317d7d,_0x238b21(0x20f));return void this[_0x238b21(0x20a)](_0x22a0af);}const _0x5b9d97=_0x2858b2[_0x238b21(0x209)]||_0x2858b2[_0x238b21(0x210)];if(this[_0x238b21(0x1a2)]!==_0x5b9d97[_0x238b21(0x16b)]){const _0x514f1e=_0x5af1b4(_0x317d7d,_0x238b21(0x17f));return void this[_0x238b21(0x20a)](_0x514f1e);}await this[_0x238b21(0x18c)](this[_0x238b21(0x1c8)][_0x238b21(0x1a7)][_0x238b21(0x18a)][_0x238b21(0x23b)][_0x238b21(0x153)](),!0x0);}[_0x5d8795(0x252)](){const _0x49f5fa=_0x5d8795;this[_0x49f5fa(0x1b8)][_0x49f5fa(0x1b1)](),this[_0x49f5fa(0x18f)]=[],clearTimeout(this[_0x49f5fa(0x231)]),this[_0x49f5fa(0x15f)](this[_0x49f5fa(0x1b8)]);}[_0x5d8795(0x1d2)](_0x4c6f2){const _0x2b096a=_0x5d8795,_0x5e24a4=this[_0x2b096a(0x1c8)][_0x2b096a(0x165)][_0x2b096a(0x1a1)](_0x39741a);this[_0x2b096a(0x215)](_0x5e24a4,_0x2b096a(0x22f)+this[_0x2b096a(0x1eb)],(_0xae48b3,{session:_0x1fc167})=>{const _0x391a07=_0x2b096a;if(_0x1fc167['id']===_0x5e24a4[_0x391a07(0x16c)]){_0xae48b3[_0x391a07(0x173)]();const _0x396e2c=this[_0x391a07(0x1c8)][_0x391a07(0x165)][_0x391a07(0x24f)](_0x391a07(0x1a0))&&this[_0x391a07(0x1c8)][_0x391a07(0x165)][_0x391a07(0x1a1)](_0x391a07(0x1a0));let _0x2c419a=_0x1fc167[_0x391a07(0x1a5)];_0x396e2c&&_0x396e2c[_0x391a07(0x15c)]&&(_0x2c419a=_0x2c419a[_0x391a07(0x1e2)](_0x5ec1f2=>_0x391a07(0x1ab)!==_0x5ec1f2)),this[_0x391a07(0x1c8)][_0x391a07(0x165)][_0x391a07(0x1a1)](_0x391a07(0x19f))[_0x391a07(0x189)](_0x2c419a,this[_0x391a07(0x1eb)]);}}),_0x5e24a4[_0x2b096a(0x1fe)](this[_0x2b096a(0x1eb)],_0x4c6f2);}[_0x5d8795(0x1bd)](){const _0x1d4404=_0x5d8795,_0x1e4d4f=this[_0x1d4404(0x1c8)][_0x1d4404(0x15d)][_0x1d4404(0x1ce)];this[_0x1d4404(0x1c8)][_0x1d4404(0x15d)][_0x1d4404(0x1ce)]=(..._0x26440f)=>{const _0xd5f23f=_0x1d4404;if(!_0x26440f[_0x26440f[_0xd5f23f(0x196)]-0x1][_0xd5f23f(0x17a)])throw new _0x46630e(_0xd5f23f(0x1b4),this);_0x1e4d4f[_0xd5f23f(0x1b3)](this[_0xd5f23f(0x1c8)][_0xd5f23f(0x15d)],_0x26440f);};}[_0x5d8795(0x185)](){const _0x1a5e97=_0x5d8795;this[_0x1a5e97(0x1c8)][_0x1a5e97(0x15d)]['on'](_0x1a5e97(0x175),(_0x288a6b,[_0x4b6f51])=>{const _0x4702f8=_0x1a5e97;if(this[_0x4702f8(0x1c3)][_0x4702f8(0x225)])throw new _0x46630e(_0x4702f8(0x214),this);_0x288a6b[_0x4702f8(0x168)](),this[_0x4702f8(0x1fd)]();const _0xf14564=this[_0x4702f8(0x1c8)][_0x4702f8(0x21d)][_0x4702f8(0x1a1)](_0x4702f8(0x1a8)),_0x2170be=this[_0x4702f8(0x1f0)](_0x4b6f51,_0xf14564);0x0==_0x2170be[_0x4702f8(0x196)]&&_0x2170be[_0x4702f8(0x1ad)](new _0x5eda03(0x0)),_0x288a6b[_0x4702f8(0x187)]=this[_0x4702f8(0x18c)](_0x2170be)[_0x4702f8(0x1e3)](()=>{const _0x146406=_0x4702f8;this[_0x146406(0x1c8)][_0x146406(0x165)][_0x146406(0x1a1)](_0x138e5a)[_0x146406(0x242)](this),this[_0x146406(0x1c8)][_0x146406(0x15d)][_0x146406(0x233)](_0x146406(0x1e4));})[_0x4702f8(0x21c)](_0x55ba8b=>this[_0x4702f8(0x191)](_0x4702f8(0x1f8),_0x55ba8b))[_0x4702f8(0x1fc)](()=>this[_0x4702f8(0x205)]());},{'priority':_0x1a5e97(0x166)}),this[_0x1a5e97(0x1c8)]['on'](_0x1a5e97(0x23c),async(_0x4299a8,[_0x48328d,_0x455b05])=>{const _0x23fefa=_0x1a5e97;_0x4299a8[_0x23fefa(0x168)]();const _0x51feb3=this[_0x23fefa(0x1c8)][_0x23fefa(0x1a7)][_0x23fefa(0x18a)][_0x23fefa(0x1b5)](_0x48328d);if(!this[_0x23fefa(0x234)][_0x23fefa(0x24f)](_0x48328d)){const _0x507d31=_0x455b05&&_0x455b05[_0x23fefa(0x15d)]?_0x455b05[_0x23fefa(0x15d)]:'',_0x1e435c=_0x455b05&&_0x455b05[_0x23fefa(0x1cd)]?_0x455b05[_0x23fefa(0x1cd)]:{};await this[_0x23fefa(0x23d)](_0x48328d,_0x507d31,_0x1e435c);}this[_0x23fefa(0x1c8)][_0x23fefa(0x1a7)][_0x23fefa(0x230)]({'isUndoable':!0x1},()=>{const _0x9c401c=_0x23fefa;_0x51feb3[_0x9c401c(0x1ed)]=!0x0,this[_0x9c401c(0x1c8)][_0x9c401c(0x1a7)][_0x9c401c(0x18a)][_0x9c401c(0x1e6)][_0x9c401c(0x170)](_0x51feb3);});},{'priority':_0x1a5e97(0x166)});}async[_0x5d8795(0x1d4)](_0x32e554){const _0x908dc9=_0x5d8795,_0x25c8bc=this[_0x908dc9(0x1c8)][_0x908dc9(0x165)][_0x908dc9(0x1a1)](_0x54e9ca),{connection:_0x135624}=this[_0x908dc9(0x1c8)][_0x908dc9(0x165)][_0x908dc9(0x1a1)](_0x138e5a),_0x387b06=new Set();for(const _0x25f550 of _0x32e554){const _0x247cd4=_0x25f550[_0x908dc9(0x1b9)];_0x247cd4&&!_0x25c8bc[_0x908dc9(0x156)](_0x247cd4)&&_0x387b06[_0x908dc9(0x164)](_0x247cd4);}if(0x0===_0x387b06[_0x908dc9(0x16a)])return;const _0x6c0eb1=await _0x42bc8d[_0x908dc9(0x232)](_0x135624,Array[_0x908dc9(0x239)](_0x387b06));for(const _0x4e6dd8 of _0x6c0eb1)_0x25c8bc[_0x908dc9(0x156)](_0x4e6dd8['id'])||_0x25c8bc[_0x908dc9(0x1d9)](_0x4e6dd8);}[_0x5d8795(0x1f0)](_0x4f1bc3,_0x3bf9ef={}){const _0x5b66cf=_0x5d8795,_0x59efa5=this[_0x5b66cf(0x1c8)][_0x5b66cf(0x1a7)],_0xfcbf45=[];let _0x21fed6=0x0;const _0x427432=_0x5b66cf(0x224)==typeof _0x4f1bc3?{'main':_0x4f1bc3}:_0x4f1bc3;for(const _0xeb9ad of Object[_0x5b66cf(0x216)](_0x427432)){if(!this[_0x5b66cf(0x1c3)][_0x5b66cf(0x1d5)][_0x5b66cf(0x24f)](_0xeb9ad))throw new _0x46630e(_0x5b66cf(0x1dc),this);const _0x40e8b1=this[_0x5b66cf(0x1c8)][_0x5b66cf(0x15d)][_0x5b66cf(0x207)](_0x427432[_0xeb9ad]),_0x1720b5=this[_0x5b66cf(0x1c3)][_0x5b66cf(0x1b5)](_0xeb9ad),_0x213a4d=new _0x148a98(_0x59efa5[_0x5b66cf(0x1ef)](_0x1720b5,0x0),_0x40e8b1,_0x21fed6++);_0xfcbf45[_0x5b66cf(0x1ad)](_0x213a4d);for(const [_0x16a677,_0x50305a]of _0x40e8b1[_0x5b66cf(0x15e)]){const _0x2d9d3f=_0x59efa5[_0x5b66cf(0x1ae)](_0x59efa5[_0x5b66cf(0x211)](_0x1720b5,_0x50305a[_0x5b66cf(0x183)][_0x5b66cf(0x1b7)][_0x5b66cf(0x14e)]()),_0x59efa5[_0x5b66cf(0x211)](_0x1720b5,_0x50305a[_0x5b66cf(0x172)][_0x5b66cf(0x1b7)][_0x5b66cf(0x14e)]())),_0x4796fa=new _0xd539d(_0x16a677,null,_0x2d9d3f,_0x59efa5[_0x5b66cf(0x15e)],!0x0,_0x21fed6++);_0xfcbf45[_0x5b66cf(0x1ad)](_0x4796fa);}}if(_0x3bf9ef)for(const [_0x917966,_0x286f4f]of Object[_0x5b66cf(0x244)](_0x3bf9ef)){const _0x28e57d=_0x59efa5[_0x5b66cf(0x18a)][_0x5b66cf(0x1b5)](_0x917966);if(!_0x28e57d)throw new _0x46630e(_0x5b66cf(0x192),null);for(const [_0x2f9cbc,_0x3c72ef]of Object[_0x5b66cf(0x244)](_0x286f4f))if(null!==_0x3c72ef){const _0x1686c1=new _0x486427(_0x28e57d,_0x2f9cbc,null,_0x3c72ef,_0x21fed6++);_0xfcbf45[_0x5b66cf(0x1ad)](_0x1686c1);}}return _0xfcbf45;}async[_0x5d8795(0x23d)](_0x667904,_0x5e8b0c,_0x270dde){const _0x12472e=_0x5d8795;this[_0x12472e(0x1f0)]({[_0x667904]:_0x5e8b0c},{[_0x667904]:_0x270dde})[_0x12472e(0x152)]((_0x3a372d,_0x5157f1)=>{const _0x2a92b9=_0x12472e;_0x3a372d[_0x2a92b9(0x24a)]=this[_0x2a92b9(0x1c3)][_0x2a92b9(0x225)]+_0x5157f1,_0x3a372d[_0x2a92b9(0x20d)]=!0x0,this[_0x2a92b9(0x15b)](_0x3a372d);}),this[_0x12472e(0x245)](),await this[_0x12472e(0x1a3)]();}async[_0x5d8795(0x17e)](_0x138cd9,_0x23f731){const _0x35cde1=_0x5d8795;let _0x451ef5;this[_0x35cde1(0x193)]=_0x138cd9[_0x35cde1(0x1c5)];const _0x49a892=_0x138cd9[_0x35cde1(0x1dd)]&&!_0x138cd9[_0x35cde1(0x229)],_0x6d096f=_0x49a892?0x0:_0x138cd9[_0x35cde1(0x15d)][_0x35cde1(0x24a)];if(_0x23f731[_0x35cde1(0x152)](_0x290649=>{const _0x44893c=_0x35cde1;_0x290649[_0x44893c(0x20d)]=!0x0,_0x290649[_0x44893c(0x194)]=_0x138cd9[_0x44893c(0x1f1)],_0x290649[_0x44893c(0x1b9)]=null;}),_0x49a892)_0x451ef5=_0x23f731,this[_0x35cde1(0x1c6)](_0x451ef5,_0x49a892);else{if(_0x138cd9[_0x35cde1(0x229)]){const _0x545c4d=this[_0x35cde1(0x1f0)](_0x138cd9[_0x35cde1(0x229)]);this[_0x35cde1(0x1c3)][_0x35cde1(0x23b)][_0x35cde1(0x225)]=-_0x545c4d[_0x35cde1(0x196)],_0x545c4d[_0x35cde1(0x152)](_0xe6130b=>{const _0xdf6a4a=_0x35cde1;_0xe6130b[_0xdf6a4a(0x24a)]-=_0x545c4d[_0xdf6a4a(0x196)],_0xe6130b[_0xdf6a4a(0x194)]=_0x138cd9[_0xdf6a4a(0x1f1)],_0xe6130b[_0xdf6a4a(0x20d)]=!0x0,_0xe6130b[_0xdf6a4a(0x1b9)]=null;}),this[_0x35cde1(0x1c6)](_0x545c4d,!0x0),this[_0x35cde1(0x19e)][_0x35cde1(0x225)]=-_0x545c4d[_0x35cde1(0x196)]+this[_0x35cde1(0x193)],this[_0x35cde1(0x247)](_0x545c4d);}this[_0x35cde1(0x1c3)][_0x35cde1(0x23b)][_0x35cde1(0x225)]=_0x6d096f,_0x451ef5=this[_0x35cde1(0x22d)](_0x138cd9[_0x35cde1(0x15d)],_0x138cd9[_0x35cde1(0x1ee)]),await this[_0x35cde1(0x1d4)](_0x451ef5),this[_0x35cde1(0x1c6)](_0x451ef5,_0x49a892);}_0x138cd9[_0x35cde1(0x16b)]&&(this[_0x35cde1(0x217)][_0x35cde1(0x201)](_0x451ef5,_0x138cd9[_0x35cde1(0x16b)]),this[_0x35cde1(0x1a2)]=_0x138cd9[_0x35cde1(0x16b)]),this[_0x35cde1(0x19e)][_0x35cde1(0x225)]=_0x6d096f+this[_0x35cde1(0x193)],this[_0x35cde1(0x247)](_0x451ef5),_0x23f731[_0x35cde1(0x1e2)](_0x17cd00=>{const _0x39f72f=_0x35cde1,_0x335b86=this[_0x39f72f(0x253)](_0x17cd00);return _0x335b86&&!this[_0x39f72f(0x234)][_0x39f72f(0x24f)](_0x335b86);})[_0x35cde1(0x152)]((_0x5453ff,_0x27b6ee)=>{const _0x437202=_0x35cde1;_0x5453ff[_0x437202(0x24a)]=this[_0x437202(0x1c3)][_0x437202(0x225)]+_0x27b6ee,this[_0x437202(0x15b)](_0x5453ff);}),this[_0x35cde1(0x1f7)]()?(this[_0x35cde1(0x1c9)]=0x0,this[_0x35cde1(0x245)](!0x0),await this[_0x35cde1(0x1a3)]()):(this[_0x35cde1(0x227)]=!0x1,this[_0x35cde1(0x205)]());}[_0x5d8795(0x191)](_0x37b559,_0x5bdd4e){const _0x4b48eb=_0x5d8795,_0x2b79cf=_0x5bdd4e&&_0x5bdd4e[_0x4b48eb(0x237)];if(_0x2b79cf&&_0x2b79cf[_0x4b48eb(0x154)](_0x4b48eb(0x151)))throw _0x5bdd4e;const _0x4b89d6=this[_0x4b48eb(0x1c8)][_0x4b48eb(0x165)][_0x4b48eb(0x1a1)](_0x138e5a);throw this[_0x4b48eb(0x227)]=!0x0,_0x4b89d6[_0x4b48eb(0x1b1)](),this[_0x4b48eb(0x1c8)][_0x4b48eb(0x243)](_0x4b48eb(0x24d)),new _0x46630e(_0x37b559,this[_0x4b48eb(0x1c8)],_0x2b79cf?{'originalError':_0x2b79cf}:void 0x0);}[_0x5d8795(0x15b)](_0x3b5c45){const _0x15a784=_0x5d8795;this[_0x15a784(0x1bc)][_0x15a784(0x24f)](_0x3b5c45)||(this[_0x15a784(0x1bc)][_0x15a784(0x164)](_0x3b5c45),this[_0x15a784(0x18f)][_0x15a784(0x1ad)](_0x3b5c45),this[_0x15a784(0x176)]||_0x15a784(0x246)==_0x3b5c45[_0x15a784(0x1c2)]&&!_0x3b5c45[_0x15a784(0x18b)]||this[_0x15a784(0x1fd)]());}[_0x5d8795(0x245)](_0x54897c=!0x1){const _0x352cb0=_0x5d8795;!_0x54897c&&this[_0x352cb0(0x227)]||(this[_0x352cb0(0x227)]=!0x0,clearTimeout(this[_0x352cb0(0x231)]),this[_0x352cb0(0x231)]=setTimeout(()=>{const _0x119bd0=_0x352cb0;this[_0x119bd0(0x248)]()[_0x119bd0(0x1e3)](_0x20cd48=>{const _0x190f84=_0x119bd0;_0x20cd48&&(this[_0x190f84(0x205)](),this[_0x190f84(0x227)]=!0x1);})[_0x119bd0(0x21c)](_0x39bf27=>{const _0x51b75d=_0x119bd0;this[_0x51b75d(0x205)](),this[_0x51b75d(0x227)]=!0x1,function(_0xeea102){const _0x886840=_0x51b75d;return _0xeea102[_0x886840(0x237)][_0x886840(0x154)](_0x886840(0x179))||_0xeea102[_0x886840(0x237)][_0x886840(0x154)](_0x886840(0x1de))||_0xeea102[_0x886840(0x237)][_0x886840(0x154)](_0x886840(0x162));}(_0x39bf27)||this[_0x51b75d(0x191)](_0x39bf27[_0x51b75d(0x237)],_0x39bf27);});},this[_0x352cb0(0x1c9)]));}[_0x5d8795(0x1a3)](){return new Promise(_0x1f7ffe=>{const _0x148c7d=_0x3add;this['on'](_0x148c7d(0x203),()=>{_0x1f7ffe();});});}async[_0x5d8795(0x248)](){const _0x1a3f2f=_0x5d8795,_0xd152c8=this[_0x1a3f2f(0x1c8)][_0x1a3f2f(0x165)][_0x1a3f2f(0x1a1)](_0x3e28e8);if(this[_0x1a3f2f(0x1b6)]()&&(_0xd152c8[_0x1a3f2f(0x249)](),this[_0x1a3f2f(0x1b2)]=!0x1),!this[_0x1a3f2f(0x1f7)]())return!0x0;const _0xaa6d80=[...this[_0x1a3f2f(0x18f)]];for(const _0x2a360a of _0xaa6d80)_0x2a360a[_0x1a3f2f(0x1c4)]=this[_0x1a3f2f(0x1c3)][_0x1a3f2f(0x23b)][_0x1a3f2f(0x22a)](_0x2a360a);const _0x37c614=this[_0x1a3f2f(0x217)][_0x1a3f2f(0x150)](_0xaa6d80),_0x1f9b18=X++,_0x50eba4=this[_0x1a3f2f(0x161)](_0xaa6d80),_0x4efffc=await this[_0x1a3f2f(0x1b8)][_0x1a3f2f(0x23a)](_0x50eba4,_0x50eba4[_0x1a3f2f(0x24a)],_0x37c614);try{return await this[_0x1a3f2f(0x1e0)](_0xaa6d80,_0x4efffc,_0x1f9b18);}catch(_0x15c8a2){return this[_0x1a3f2f(0x191)](_0x1a3f2f(0x213),_0x15c8a2);}}async[_0x5d8795(0x1e0)](_0x516050,_0x264704,_0x1fbd3a){const _0x3bdb0a=_0x5d8795;if(_0x3bdb0a(0x16f)in _0x264704)throw _0x264704[_0x3bdb0a(0x16f)];let _0x51bc56=!0x1;if(_0x264704[_0x3bdb0a(0x1dd)]){_0x264704[_0x3bdb0a(0x16b)]&&(this[_0x3bdb0a(0x1a2)]=_0x264704[_0x3bdb0a(0x16b)]),this[_0x3bdb0a(0x18f)]=this[_0x3bdb0a(0x18f)][_0x3bdb0a(0x1e2)](_0x51f997=>!_0x516050[_0x3bdb0a(0x155)](_0x51f997));for(const _0x22892c of _0x516050)_0x22892c[_0x3bdb0a(0x194)]=_0x3bdb0a(0x174)in _0x264704&&_0x264704[_0x3bdb0a(0x174)]||void 0x0;Z(_0x516050,_0x264704[_0x3bdb0a(0x225)]-_0x516050[_0x3bdb0a(0x196)]),this[_0x3bdb0a(0x247)](_0x516050);const _0x59d1d9=_0x516050[_0x3bdb0a(0x1e2)](_0x3d90cf=>{const _0x40f8f0=_0x3bdb0a;if(!_0x3d90cf[_0x40f8f0(0x20d)])return!0x1;const _0x93e319=this[_0x40f8f0(0x253)](_0x3d90cf);return _0x93e319&&!this[_0x40f8f0(0x234)][_0x40f8f0(0x24f)](_0x93e319);});Z(_0x59d1d9,this[_0x3bdb0a(0x1c3)][_0x3bdb0a(0x225)]),this[_0x3bdb0a(0x1c6)](_0x59d1d9),_0x51bc56=!0x0,this[_0x3bdb0a(0x1c9)]=this[_0x3bdb0a(0x221)];}else{const _0x5a8474=this[_0x3bdb0a(0x22d)](_0x264704[_0x3bdb0a(0x15d)],_0x264704[_0x3bdb0a(0x1ee)])[_0x3bdb0a(0x1e2)](_0x40af1a=>_0x40af1a[_0x3bdb0a(0x24a)]>=this[_0x3bdb0a(0x1ea)]);_0x5a8474[_0x3bdb0a(0x152)](_0x3ce614=>this[_0x3bdb0a(0x19d)](_0x3ce614)),this[_0x3bdb0a(0x18f)]=this[_0x3bdb0a(0x18f)][_0x3bdb0a(0x1e2)](_0x4641da=>!_0x4641da[_0x3bdb0a(0x20d)]||!this[_0x3bdb0a(0x234)][_0x3bdb0a(0x24f)](this[_0x3bdb0a(0x253)](_0x4641da))),this[_0x3bdb0a(0x18f)][_0x3bdb0a(0x196)]&&Z(this[_0x3bdb0a(0x18f)],this[_0x3bdb0a(0x18f)][0x0][_0x3bdb0a(0x24a)]),await this[_0x3bdb0a(0x1d4)](_0x5a8474),_0x51bc56=this[_0x3bdb0a(0x19a)](_0x5a8474,_0x264704[_0x3bdb0a(0x225)],_0x264704[_0x3bdb0a(0x16b)]),this[_0x3bdb0a(0x1c9)]=Math[_0x3bdb0a(0x157)](this[_0x3bdb0a(0x1c9)]/0x2);}return _0x51bc56?!this[_0x3bdb0a(0x1f7)]()||(this[_0x3bdb0a(0x245)](!0x0),!0x1):this[_0x3bdb0a(0x191)](_0x3bdb0a(0x163));}[_0x5d8795(0x19a)](_0x30e2f5,_0x1f7e0d,_0x5efdbc){const _0x176408=_0x5d8795;try{const _0x185a54={'document':this[_0x176408(0x1c3)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x338335,operationsB:_0x1234cc,originalOperations:_0x405fe2}=_0x205bc5(_0x30e2f5,this[_0x176408(0x18f)],_0x185a54);Z(_0x338335,this[_0x176408(0x1c3)][_0x176408(0x225)]),Z(_0x1234cc,_0x1f7e0d);for(const _0x2c54c7 of _0x338335){const _0xac1fa8=_0x405fe2[_0x176408(0x1a1)](_0x2c54c7);_0x2c54c7[_0x176408(0x1b9)]=_0xac1fa8?_0xac1fa8[_0x176408(0x1b9)]:null;}_0x5efdbc&&(this[_0x176408(0x217)][_0x176408(0x201)](_0x30e2f5,_0x5efdbc),this[_0x176408(0x1a2)]=_0x5efdbc),this[_0x176408(0x18f)]=[..._0x1234cc],this[_0x176408(0x1c6)](_0x338335),this[_0x176408(0x247)](_0x30e2f5);}catch(_0x5a2373){return console[_0x176408(0x16f)](_0x5a2373),!0x1;}return!0x0;}[_0x5d8795(0x1c6)](_0x30e2ed,_0x503b9f=!0x1){const _0x403569=_0x5d8795;this[_0x403569(0x1c8)][_0x403569(0x1a7)][_0x403569(0x230)]({'isUndoable':!0x1,'isLocal':!0x1},_0x3f2c7d=>{const _0x4259a8=_0x403569;for(const _0x550746 of _0x30e2ed)this[_0x4259a8(0x1bc)][_0x4259a8(0x164)](_0x550746),this[_0x4259a8(0x19d)](_0x550746),_0x3f2c7d[_0x4259a8(0x1ba)][_0x4259a8(0x1d6)](_0x550746),this[_0x4259a8(0x1c8)][_0x4259a8(0x1a7)][_0x4259a8(0x1ec)](_0x550746);});}[_0x5d8795(0x19d)](_0x325e5d){const _0x5256e2=_0x5d8795,_0x4e6d8c=this[_0x5256e2(0x253)](_0x325e5d);_0x4e6d8c&&this[_0x5256e2(0x234)][_0x5256e2(0x164)](_0x4e6d8c);}[_0x5d8795(0x253)](_0x2f839e){const _0x1cd881=_0x5d8795;let _0xed4da3,_0x1a011a;switch(_0x2f839e[_0x1cd881(0x1c2)]){case _0x1cd881(0x169):_0xed4da3=_0x2f839e[_0x1cd881(0x1fa)][_0x1cd881(0x212)];break;case _0x1cd881(0x246):if(_0x1a011a=_0x2f839e[_0x1cd881(0x20e)],!_0x1a011a)return null;_0xed4da3=_0x1a011a[_0x1cd881(0x212)];break;case _0x1cd881(0x18e):_0xed4da3=_0x2f839e[_0x1cd881(0x212)];break;case _0x1cd881(0x251):_0xed4da3=_0x2f839e[_0x1cd881(0x158)];break;case _0x1cd881(0x1cb):_0xed4da3=_0x2f839e[_0x1cd881(0x204)][_0x1cd881(0x212)];break;default:return null;}return _0xed4da3[_0x1cd881(0x1d0)];}[_0x5d8795(0x247)](_0x4ba19a){const _0x32f99b=_0x5d8795;_0x4ba19a[_0x32f99b(0x152)](_0x214a4d=>{const _0x114eb5=_0x32f99b,_0x3ab14e=_0x214a4d[_0x114eb5(0x1e7)]();_0x3ab14e[_0x114eb5(0x1b9)]=_0x214a4d[_0x114eb5(0x1b9)],_0x3ab14e[_0x114eb5(0x20d)]=!!_0x214a4d[_0x114eb5(0x20d)],_0x3ab14e[_0x114eb5(0x194)]=_0x214a4d[_0x114eb5(0x194)],_0x3ab14e[_0x114eb5(0x24a)]+=this[_0x114eb5(0x193)],_0x214a4d[_0x114eb5(0x1df)]&&this[_0x114eb5(0x1cc)][_0x114eb5(0x164)](_0x3ab14e),this[_0x114eb5(0x19e)][_0x114eb5(0x1d6)](_0x3ab14e);});}[_0x5d8795(0x20a)](_0x257eed){const _0x1b9aa7=_0x5d8795,_0x2d530b=this[_0x1b9aa7(0x1c8)][_0x1b9aa7(0x165)][_0x1b9aa7(0x1a1)](_0x1b9aa7(0x238)),_0x2a888c=this[_0x1b9aa7(0x1c8)][_0x1b9aa7(0x1bf)];_0x257eed||(_0x257eed=_0x5af1b4(_0x2a888c,_0x1b9aa7(0x19b))),_0x2d530b[_0x1b9aa7(0x24c)](_0x257eed,{'title':_0x5af1b4(_0x2a888c,_0x1b9aa7(0x235)),'namespace':_0x1b9aa7(0x21f)}),this[_0x1b9aa7(0x1a4)]=!0x0,clearTimeout(this[_0x1b9aa7(0x231)]),this[_0x1b9aa7(0x18f)]=[],this[_0x1b9aa7(0x1c8)][_0x1b9aa7(0x165)][_0x1b9aa7(0x1a1)](_0x138e5a)[_0x1b9aa7(0x1b1)]();}[_0x5d8795(0x1fd)](){const _0x1c3ccf=_0x5d8795;this[_0x1c3ccf(0x176)]||(this[_0x1c3ccf(0x176)]=this[_0x1c3ccf(0x1c8)][_0x1c3ccf(0x165)][_0x1c3ccf(0x1a1)](_0x476eb8)[_0x1c3ccf(0x164)](_0x5af1b4(this[_0x1c3ccf(0x1c8)][_0x1c3ccf(0x1bf)],_0x1c3ccf(0x219))));}[_0x5d8795(0x205)](){const _0x9b4d14=_0x5d8795;this[_0x9b4d14(0x176)]&&(this[_0x9b4d14(0x1c8)][_0x9b4d14(0x165)][_0x9b4d14(0x1a1)](_0x476eb8)[_0x9b4d14(0x1be)](this[_0x9b4d14(0x176)]),this[_0x9b4d14(0x176)]=null);}[_0x5d8795(0x161)](_0x2e9fc3){const _0x4e1f8c=_0x5d8795,_0x44024b=_0x2e9fc3[_0x4e1f8c(0x22c)](_0x368d8c=>_0x368d8c[_0x4e1f8c(0x208)]());return this[_0x4e1f8c(0x1b0)][_0x4e1f8c(0x184)](_0x44024b);}[_0x5d8795(0x22d)](_0x280d4f,_0x4f4306){const _0x36af32=_0x5d8795;return this[_0x36af32(0x1b0)][_0x36af32(0x1e1)](_0x280d4f)[_0x36af32(0x22c)]((_0x27c1e9,_0x4bcede)=>{const _0x4aefdc=_0x36af32,_0x359792=_0x4aefdc(0x175)==_0x4f4306[_0x4bcede][_0x4aefdc(0x1c2)];if(_0x4aefdc(0x190)==_0x27c1e9[_0x4aefdc(0x1c1)]){const _0xa8d6ed=_0x27c1e9[_0x4aefdc(0x1fa)][_0x4aefdc(0x212)];!this[_0x4aefdc(0x1c3)][_0x4aefdc(0x1b5)](_0xa8d6ed)&&(this[_0x4aefdc(0x1c3)][_0x4aefdc(0x1f9)](_0x4aefdc(0x1a6),_0xa8d6ed)[_0x4aefdc(0x1f4)]=!0x1);}const _0x20b414=_0x409321[_0x4aefdc(0x206)](_0x27c1e9,this[_0x4aefdc(0x1c3)]);return _0x20b414[_0x4aefdc(0x1c4)]=_0x27c1e9[_0x4aefdc(0x1c4)],_0x20b414[_0x4aefdc(0x20d)]=_0x359792,_0x20b414[_0x4aefdc(0x1b9)]=_0x359792?null:_0x4f4306[_0x4bcede][_0x4aefdc(0x21a)],_0x20b414[_0x4aefdc(0x1df)]=_0x4aefdc(0x17d)===_0x4f4306[_0x4bcede][_0x4aefdc(0x1c2)],_0x20b414[_0x4aefdc(0x194)]=_0x4f4306[_0x4bcede][_0x4aefdc(0x194)],_0x20b414;});}[_0x5d8795(0x20b)](){const _0x36af92=_0x5d8795;this[_0x36af92(0x1b2)]=!0x0,this[_0x36af92(0x1b6)]()?this[_0x36af92(0x245)]():this[_0x36af92(0x1b2)]=!0x1;}[_0x5d8795(0x1b6)](){const _0x4719a1=_0x5d8795,_0x352b81=this[_0x4719a1(0x1c8)][_0x4719a1(0x165)][_0x4719a1(0x1a1)](_0x39741a)[_0x4719a1(0x1e5)][_0x4719a1(0x1a1)](this[_0x4719a1(0x1eb)]);return!this[_0x4719a1(0x1c8)][_0x4719a1(0x228)]&&!!_0x352b81&&_0x352b81[_0x4719a1(0x196)]>0x1&&this[_0x4719a1(0x1b2)];}[_0x5d8795(0x1f7)](){const _0x5409b=_0x5d8795;return this[_0x5409b(0x18f)][_0x5409b(0x196)]>0x0||this[_0x5409b(0x1b6)]();}}export{l as RealTimeCollaborationClient};class Y extends Error{}function Z(_0x44644e,_0x191df7){const _0x162da0=_0x5d8795;for(const _0x2465c6 of _0x44644e)_0x2465c6[_0x162da0(0x24a)]=_0x191df7++;}class tt{[_0x5d8795(0x181)];[_0x5d8795(0x14f)];constructor(_0x481027){const _0x31e9e9=_0x5d8795;this[_0x31e9e9(0x181)]=_0x481027,this[_0x31e9e9(0x14f)]=new WeakMap();}[_0x5d8795(0x150)](_0x4af751){const _0x3a591d=_0x5d8795;let _0x458f34=_0x4af751[_0x3a591d(0x196)];for(;_0x458f34--;){const _0x5baa60=_0x4af751[_0x458f34];if(!this[_0x3a591d(0x181)][_0x3a591d(0x24f)](_0x5baa60)){if(!this[_0x3a591d(0x14f)][_0x3a591d(0x24f)](_0x5baa60)){const _0x4ae0e8=_0x1f3b4e()[_0x3a591d(0x14e)](0x1,0x12);this[_0x3a591d(0x14f)][_0x3a591d(0x1ce)](_0x5baa60,_0x4ae0e8);}return this[_0x3a591d(0x14f)][_0x3a591d(0x1a1)](_0x5baa60);}}}[_0x5d8795(0x201)](_0x3af255,_0x569f5d){const _0x5a74d4=_0x5d8795;if(!_0x569f5d)return;let _0x494571=_0x3af255[_0x5a74d4(0x196)];for(;_0x494571--;){const _0x136a5c=_0x3af255[_0x494571];this[_0x5a74d4(0x181)][_0x5a74d4(0x24f)](_0x136a5c)||this[_0x5a74d4(0x14f)][_0x5a74d4(0x1ce)](_0x136a5c,_0x569f5d);}}}
|
|
@@ -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
|
+
const _0x2f290a=_0x2c1a;(function(_0x2e7f69,_0x25f7fd){const _0x42e592=_0x2c1a,_0x199985=_0x2e7f69();while(!![]){try{const _0x4daa3a=parseInt(_0x42e592(0x22a))/0x1*(parseInt(_0x42e592(0x211))/0x2)+-parseInt(_0x42e592(0x22c))/0x3+parseInt(_0x42e592(0x1ca))/0x4*(parseInt(_0x42e592(0x1fa))/0x5)+-parseInt(_0x42e592(0x1bd))/0x6*(parseInt(_0x42e592(0x22b))/0x7)+-parseInt(_0x42e592(0x208))/0x8+-parseInt(_0x42e592(0x1e4))/0x9*(parseInt(_0x42e592(0x20a))/0xa)+parseInt(_0x42e592(0x222))/0xb;if(_0x4daa3a===_0x25f7fd)break;else _0x199985['push'](_0x199985['shift']());}catch(_0x167de9){_0x199985['push'](_0x199985['shift']());}}}(_0x16f1,0x1c531));function _0x16f1(){const _0x52429f=['parent','mouseleave','setCustomProperty','$text','markers','add','element','user:position','user:range','split','333HelRAz','user:position:','size','rootName','has','isPremiumPlugin','schema','user:','plugins','delete','markerName','getNearestSelectionRange','classList','Escape','afterInit','fromRange','spellcheck','getAttribute','addEventListener','applyOperation','ck-user__marker\x20','toRange','135TviBtk','editing','hasDomSelection','innerHTML','isOfficialPlugin','isInline','end','userPositionMarker','removeMarker','color','textContent','contenteditable','selection','enqueueChange','1680784ErtZsE','start','25630hYfNap','highest','type','startsWith','getFirstRange','conversion','getRange','2FVACzo','model','isObject','isSimilar','createUserMarkerOperations','user:range:','removeClass','mapper','clear','update:user:range','getSelectionClass','requires','name','getCustomProperty','batch','isCollapsed','markerNameToElements','4250323bVXVwt','mouseenter','get','change:range','view','isLimit','pluginName','commands','83106WUKMnh','1321173rDQdtV','14412DrPvID','remove','UserMarkers','editingDowncast','reconvertMarker','getPositions','setAttribute','detach','editor','getContainedElement','createElement','for','oldRange','markerToElement','deletionPosition','destroy','outerHTML','undo','ck-user__selection','nodeAfter','ck-user__marker-tooltip','isDocumentOperation','updateMarker','$graveyard','getMarkerClass','marker','_domEmitter','hasContent','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','6cRlCYi','tableCell','mySessionId','stopListening','listenTo','checkChild','toDomElement','span','_createdBatches','createUIElement','getStart','data-session-id','false','21480yzwEVQ','document','init','ck-user__marker_hovered','markerToHighlight','createRange','newRange','set','root','change','render','orderNumber','keydown','getUserBySessionId','markerRange','addMarker'];_0x16f1=function(){return _0x52429f;};return _0x16f1();}import{Plugin as _0x42f0d5}from'ckeditor5/src/core.js';import{global as _0x1107f4,DomEmitterMixin as _0x15394c}from'ckeditor5/src/utils.js';import{Sessions as _0x5ea26b}from'./sessions.js';import{ModelLiveRange as _0x23f0f9}from'ckeditor5/src/engine.js';function _0x2c1a(_0x15b3e5,_0x1259a7){const _0x16f1cd=_0x16f1();return _0x2c1a=function(_0x2c1abe,_0x2573cb){_0x2c1abe=_0x2c1abe-0x1af;let _0x397ecc=_0x16f1cd[_0x2c1abe];return _0x397ecc;},_0x2c1a(_0x15b3e5,_0x1259a7);}import'../../theme/usermarkers.css';export class UserMarkers extends _0x42f0d5{[_0x2f290a(0x1ba)]=new(_0x15394c())();static get[_0x2f290a(0x21c)](){return[_0x5ea26b];}static get[_0x2f290a(0x228)](){const _0x31b0ed=_0x2f290a;return _0x31b0ed(0x22e);}static get[_0x2f290a(0x1fe)](){return!0x0;}static get[_0x2f290a(0x1e9)](){return!0x0;}[_0x2f290a(0x1cc)](){const _0x373867=_0x2f290a,_0x3ca1a1=this[_0x373867(0x234)],_0x3005fa=_0x3ca1a1[_0x373867(0x1ec)][_0x373867(0x224)](_0x5ea26b);_0x3ca1a1[_0x373867(0x20f)][_0x373867(0x237)](_0x373867(0x22f))[_0x373867(0x239)]({'model':_0x373867(0x1e1),'view':(_0x367324,{writer:_0x448552})=>function(_0x35ab33,_0x371f85,_0xe77588,_0x1b799b){const _0x4658c6=_0x373867,_0x1fb8fa=_0x35ab33[_0x4658c6(0x1ee)][_0x4658c6(0x1e3)](':')[0x2],_0x14aa86=_0xe77588[_0x4658c6(0x1d7)](_0x1fb8fa);if(!_0x14aa86||_0x1fb8fa===_0xe77588[_0x4658c6(0x1bf)])return;if(!_0x1b799b[_0x4658c6(0x212)][_0x4658c6(0x1ea)][_0x4658c6(0x1c2)](_0x35ab33[_0x4658c6(0x1d8)][_0x4658c6(0x209)],_0x4658c6(0x1dd)))return;const _0x343634={'class':_0x4658c6(0x1f8)+_0x14aa86[_0x4658c6(0x203)][_0x4658c6(0x1b8)](),'data-name':_0x14aa86[_0x4658c6(0x21d)],'data-session-id':_0x1fb8fa},_0x13ba7d=_0x1b799b[_0x4658c6(0x212)][_0x4658c6(0x1de)][_0x4658c6(0x224)](_0x35ab33[_0x4658c6(0x1ee)]),_0x1d546f=_0x13ba7d[_0x4658c6(0x1c7)](),_0x55a2cd=_0x1d546f[_0x4658c6(0x1b3)],_0x309db6=_0x1b799b[_0x4658c6(0x212)][_0x4658c6(0x1ea)];if(_0x55a2cd&&_0x309db6[_0x4658c6(0x213)](_0x55a2cd)&&_0x309db6[_0x4658c6(0x1ff)](_0x55a2cd)&&!_0x1b799b[_0x4658c6(0x212)][_0x4658c6(0x1de)][_0x4658c6(0x224)](_0x4658c6(0x216)+_0x1fb8fa)[_0x4658c6(0x210)]()[_0x4658c6(0x220)])return;const _0x2504b1=_0x1d546f[_0x4658c6(0x1da)];return _0x1b799b[_0x4658c6(0x212)][_0x4658c6(0x1ea)][_0x4658c6(0x227)](_0x2504b1)&&!_0x1b799b[_0x4658c6(0x212)][_0x4658c6(0x1bb)](_0x2504b1)&&(_0x343634[_0x4658c6(0x205)]=!0x1),function(_0x2f3336,_0x3cd5e2,_0x21cea3){const _0x23b84=_0x4658c6,_0x9452d3=_0x2f3336[_0x23b84(0x1c6)](_0x23b84(0x1c4),_0x3cd5e2);return _0x2f3336[_0x23b84(0x1dc)](_0x23b84(0x201),!0x0,_0x9452d3),_0x9452d3[_0x23b84(0x1d4)]=function(_0x4075a9){const _0x45ba11=_0x23b84,_0x19217c=this[_0x45ba11(0x1c3)](_0x4075a9),_0x4e331b=document[_0x45ba11(0x236)](_0x45ba11(0x1c4));return _0x4e331b[_0x45ba11(0x1f0)][_0x45ba11(0x1df)](_0x45ba11(0x1b4)),_0x4e331b[_0x45ba11(0x232)](_0x45ba11(0x205),_0x45ba11(0x1c9)),_0x4e331b[_0x45ba11(0x232)](_0x45ba11(0x1f4),_0x45ba11(0x1c9)),_0x4e331b[_0x45ba11(0x204)]=_0x21cea3[_0x45ba11(0x21d)],_0x19217c[_0x45ba11(0x1fd)]=_0x45ba11(0x1bc)+_0x4e331b[_0x45ba11(0x1b0)]+'',_0x19217c[_0x45ba11(0x1f6)](_0x45ba11(0x223),()=>{const _0x11f3f8=_0x45ba11;_0x19217c[_0x11f3f8(0x1f0)][_0x11f3f8(0x1df)](_0x11f3f8(0x1cd));}),_0x19217c[_0x45ba11(0x1f6)](_0x45ba11(0x1db),()=>{const _0x4cb233=_0x45ba11;_0x19217c[_0x4cb233(0x1f0)][_0x4cb233(0x22d)](_0x4cb233(0x1cd));}),_0x19217c;},_0x9452d3[_0x23b84(0x214)]=function(_0x418ddb){const _0x54f999=_0x23b84;return!(!this[_0x54f999(0x21e)](_0x54f999(0x201))||!_0x418ddb[_0x54f999(0x21e)](_0x54f999(0x201))||this[_0x54f999(0x1f5)](_0x54f999(0x1c8))!=_0x418ddb[_0x54f999(0x1f5)](_0x54f999(0x1c8)));},_0x9452d3;}(_0x371f85,_0x343634,_0x14aa86);}(_0x367324,_0x448552,_0x3005fa,_0x3ca1a1)}),_0x3ca1a1[_0x373867(0x20f)][_0x373867(0x237)](_0x373867(0x22f))[_0x373867(0x1ce)]({'model':_0x373867(0x1e2),'view':_0x2ad77e=>function(_0xe404af,_0x3e9427){const _0x548229=_0x373867,_0x34d216=_0xe404af[_0x548229(0x1ee)][_0x548229(0x1e3)](':')[0x2];if(_0x34d216===_0x3e9427[_0x548229(0x1bf)])return null;const _0x224344=_0x3e9427[_0x548229(0x1d7)](_0x34d216);if(!_0x224344)return{'id':_0x34d216,'classes':[]};return{'id':_0x34d216,'classes':[_0x548229(0x1b2),_0x224344[_0x548229(0x203)][_0x548229(0x21b)]()],'attributes':{'data-session-id':_0x34d216},'priority':0x7d0+_0x224344[_0x548229(0x1d5)]};}(_0x2ad77e,_0x3005fa)}),function(_0x2a125d){const _0x12d50f=_0x373867,_0x57528e=_0x2a125d[_0x12d50f(0x212)],_0x103108=new Map(),_0x3f7e23=_0x2a125d[_0x12d50f(0x1ec)][_0x12d50f(0x224)](_0x5ea26b);_0x57528e[_0x12d50f(0x1de)]['on'](_0x12d50f(0x21a),(_0x9b9cf9,_0x2b48c8,_0x11ef91,_0x43cbac)=>{const _0x1d812a=_0x12d50f;if(!_0x43cbac&&_0x103108[_0x1d812a(0x224)](_0x2b48c8[_0x1d812a(0x21d)]))return _0x103108[_0x1d812a(0x224)](_0x2b48c8[_0x1d812a(0x21d)])[_0x1d812a(0x233)](),void _0x103108[_0x1d812a(0x1ed)](_0x2b48c8[_0x1d812a(0x21d)]);const _0x5231a0=_0x2b48c8[_0x1d812a(0x21d)][_0x1d812a(0x1e3)](':')[0x2];if(_0x5231a0===_0x3f7e23[_0x1d812a(0x1bf)])return;const _0x382dca=_0x1d812a(0x1e5)+_0x5231a0;_0x57528e[_0x1d812a(0x1de)][_0x1d812a(0x1e8)](_0x382dca)&&_0x2a125d[_0x1d812a(0x1fb)][_0x1d812a(0x230)](_0x382dca),_0x2b48c8['on'](_0x1d812a(0x225),(_0x4f0eb8,_0x5dd138,_0x59fd7f)=>{const _0x32ac7d=_0x1d812a;if(_0x32ac7d(0x1b7)!=_0x5dd138[_0x32ac7d(0x1d2)][_0x32ac7d(0x1e7)]&&_0x32ac7d(0x1b7)==_0x2b48c8[_0x32ac7d(0x210)]()[_0x32ac7d(0x1d2)][_0x32ac7d(0x1e7)]&&!_0x103108[_0x32ac7d(0x1e8)](_0x2b48c8[_0x32ac7d(0x21d)])){const _0x1dc92a=_0x57528e[_0x32ac7d(0x1ea)][_0x32ac7d(0x1ef)](_0x59fd7f[_0x32ac7d(0x23a)]);if(_0x1dc92a){const _0x2006c3=_0x23f0f9[_0x32ac7d(0x1f3)](_0x1dc92a);_0x103108[_0x32ac7d(0x1d1)](_0x2b48c8[_0x32ac7d(0x21d)],_0x2006c3),_0x2006c3['on'](_0x32ac7d(0x225),(_0xec3af2,_0x16a94d,_0x258e8e)=>{const _0x59f67f=_0x32ac7d;if(_0x59f67f(0x1b7)==_0x2006c3[_0x59f67f(0x1d2)][_0x59f67f(0x1e7)]){const _0x884255=_0x57528e[_0x59f67f(0x1ea)][_0x59f67f(0x1ef)](_0x258e8e[_0x59f67f(0x23a)]);_0x884255?(_0x2006c3[_0x59f67f(0x209)]=_0x884255[_0x59f67f(0x209)],_0x2006c3[_0x59f67f(0x200)]=_0x884255[_0x59f67f(0x200)]):(_0x103108[_0x59f67f(0x1ed)](_0x2b48c8[_0x59f67f(0x21d)]),_0x2006c3[_0x59f67f(0x233)]());}});}}});}),_0x57528e[_0x12d50f(0x1cb)]['on'](_0x12d50f(0x1d3),()=>{const _0x1995b5=_0x12d50f;_0x103108[_0x1995b5(0x1e6)]>0x0&&_0x57528e[_0x1995b5(0x207)]({'isUndoable':!0x1},_0x45532d=>{const _0x21a5bf=_0x1995b5;for(const [_0x6039b7,_0x2857db]of _0x103108)_0x21a5bf(0x1b7)==_0x57528e[_0x21a5bf(0x1de)][_0x21a5bf(0x224)](_0x6039b7)[_0x21a5bf(0x210)]()[_0x21a5bf(0x1d2)][_0x21a5bf(0x1e7)]&&(te(_0x6039b7[_0x21a5bf(0x1e3)](':')[0x2],_0x2857db[_0x21a5bf(0x1f9)](),_0x57528e,_0x45532d),_0x2857db[_0x21a5bf(0x233)]());_0x103108[_0x21a5bf(0x219)]();});});}(_0x3ca1a1),this[_0x373867(0x1ba)][_0x373867(0x1c1)](_0x1107f4[_0x373867(0x1cb)],_0x373867(0x1d6),(_0x306754,{key:_0x55e8df})=>{const _0x46bb36=_0x373867;_0x46bb36(0x1f1)===_0x55e8df&&function(_0xf19cbc){const _0xeae5d9=_0x46bb36;_0xf19cbc[_0xeae5d9(0x1fb)][_0xeae5d9(0x226)][_0xeae5d9(0x1d3)](_0x36cf82=>{const _0xcde2c8=_0xeae5d9;for(const _0x3435fb of _0xf19cbc[_0xcde2c8(0x212)][_0xcde2c8(0x1de)]){if(!_0x3435fb[_0xcde2c8(0x21d)][_0xcde2c8(0x20d)](_0xcde2c8(0x1e1)))continue;const _0x184820=_0xf19cbc[_0xcde2c8(0x1fb)][_0xcde2c8(0x218)][_0xcde2c8(0x221)](_0x3435fb[_0xcde2c8(0x21d)]);if(_0x184820){for(const _0x2136ed of _0x184820)_0x36cf82[_0xcde2c8(0x217)](_0xcde2c8(0x1cd),_0x2136ed);}}});}(_0x3ca1a1);},{'useCapture':!0x0});}[_0x2f290a(0x1f2)](){const _0x5b9bb8=_0x2f290a,_0x927713=this[_0x5b9bb8(0x234)],_0x1696df=_0x927713[_0x5b9bb8(0x229)][_0x5b9bb8(0x224)](_0x5b9bb8(0x1b1));_0x1696df&&_0x927713[_0x5b9bb8(0x212)]['on'](_0x5b9bb8(0x1f7),(_0x381efe,_0x3867d3)=>{const _0x469011=_0x5b9bb8,_0x1ff97=_0x3867d3[0x0];if(!_0x1ff97[_0x469011(0x1b5)])return;if(_0x469011(0x1b9)!=_0x1ff97[_0x469011(0x20c)]||!_0x1ff97[_0x469011(0x21d)][_0x469011(0x20d)](_0x469011(0x1eb)))return;const _0x2b4dd9=_0x1ff97[_0x469011(0x21f)];_0x1696df[_0x469011(0x1c5)][_0x469011(0x1e8)](_0x2b4dd9)&&(_0x1ff97[_0x469011(0x1d0)]=_0x1ff97[_0x469011(0x238)]?_0x927713[_0x469011(0x212)][_0x469011(0x1cf)](_0x1ff97[_0x469011(0x238)][_0x469011(0x209)],_0x1ff97[_0x469011(0x238)][_0x469011(0x200)]):null);},{'priority':_0x5b9bb8(0x20b)});}[_0x2f290a(0x1af)](){const _0x83bcec=_0x2f290a;return this[_0x83bcec(0x1ba)][_0x83bcec(0x1c0)](),super[_0x83bcec(0x1af)]();}[_0x2f290a(0x215)](){const _0x35bfec=_0x2f290a,_0x17d012=this[_0x35bfec(0x234)],_0x3c2798=_0x17d012[_0x35bfec(0x212)][_0x35bfec(0x1cb)],_0x4597fe=_0x17d012[_0x35bfec(0x1ec)][_0x35bfec(0x224)](_0x5ea26b);_0x17d012[_0x35bfec(0x212)][_0x35bfec(0x207)]({'isUndoable':!0x1},_0x195533=>{const _0x39d58c=_0x35bfec,_0x37d3c9=_0x39d58c(0x216)+_0x4597fe[_0x39d58c(0x1bf)],_0x15d0a0=_0x39d58c(0x1e5)+_0x4597fe[_0x39d58c(0x1bf)],_0x302324=_0x17d012[_0x39d58c(0x212)][_0x39d58c(0x1de)][_0x39d58c(0x1e8)](_0x37d3c9);_0x17d012[_0x39d58c(0x1fb)][_0x39d58c(0x226)][_0x39d58c(0x1fc)]?te(_0x4597fe[_0x39d58c(0x1bf)],_0x3c2798[_0x39d58c(0x206)][_0x39d58c(0x20e)](),_0x17d012[_0x39d58c(0x212)],_0x195533):_0x302324&&(_0x195533[_0x39d58c(0x202)](_0x37d3c9),_0x195533[_0x39d58c(0x202)](_0x15d0a0));});}}function te(_0x2b78ff,_0x5ac116,_0x4a05d3,_0x57bd9b){const _0x5d8f3f=_0x2f290a,_0x159897=_0x5d8f3f(0x216)+_0x2b78ff,_0x5f49ac=_0x5d8f3f(0x1e5)+_0x2b78ff,_0x5d827a=_0x5ac116[_0x5d8f3f(0x235)]();let _0x6c03a3=_0x5ac116[_0x5d8f3f(0x209)];if(_0x5d827a&&_0x5d827a['is'](_0x5d8f3f(0x1e0),_0x5d8f3f(0x1be))){const _0x4b7278=function(_0x176edf,_0x55a5b7){const _0x13d9b5=_0x5d8f3f;for(const _0x27af2f of _0x176edf[_0x13d9b5(0x231)]())if(_0x55a5b7[_0x13d9b5(0x1ea)][_0x13d9b5(0x1c2)](_0x27af2f,_0x13d9b5(0x1dd)))return _0x27af2f;}(_0x5ac116,_0x4a05d3);_0x4b7278&&(_0x6c03a3=_0x4b7278,_0x5ac116=_0x57bd9b[_0x5d8f3f(0x1cf)](_0x6c03a3));}const _0x1f8711=_0x57bd9b[_0x5d8f3f(0x1cf)](_0x6c03a3);_0x4a05d3[_0x5d8f3f(0x1de)][_0x5d8f3f(0x1e8)](_0x159897)?(_0x57bd9b[_0x5d8f3f(0x1b6)](_0x159897,{'range':_0x5ac116}),_0x57bd9b[_0x5d8f3f(0x1b6)](_0x5f49ac,{'range':_0x1f8711})):(_0x57bd9b[_0x5d8f3f(0x1d9)](_0x159897,{'range':_0x5ac116,'usingOperation':!0x0}),_0x57bd9b[_0x5d8f3f(0x1d9)](_0x5f49ac,{'range':_0x1f8711,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0xab6cb=_0x2474;(function(_0x3abdf1,_0xfd4811){const _0x2fb801=_0x2474,_0x333f2b=_0x3abdf1();while(!![]){try{const _0xf0ee3e=parseInt(_0x2fb801(0xb5))/0x1+parseInt(_0x2fb801(0x90))/0x2*(parseInt(_0x2fb801(0xc1))/0x3)+parseInt(_0x2fb801(0xc2))/0x4+parseInt(_0x2fb801(0xbd))/0x5+parseInt(_0x2fb801(0x84))/0x6+parseInt(_0x2fb801(0x8c))/0x7*(parseInt(_0x2fb801(0x7b))/0x8)+parseInt(_0x2fb801(0xb6))/0x9*(-parseInt(_0x2fb801(0x9b))/0xa);if(_0xf0ee3e===_0xfd4811)break;else _0x333f2b['push'](_0x333f2b['shift']());}catch(_0x212cd1){_0x333f2b['push'](_0x333f2b['shift']());}}}(_0x24e5,0xb288d));import{ContextPlugin as _0x365287}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x6edeb4,CKEditorError as _0xcb7c7c}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x365b77,WEB_SOCKET_GATEWAY_STATES as _0x513476}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x34b45f}from'ckeditor5/src/ui.js';class n extends _0x365287{static [_0xab6cb(0x83)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x365b77)());static [_0xab6cb(0xbf)]=0x3e8;[_0xab6cb(0x91)];[_0xab6cb(0xa9)];[_0xab6cb(0xb1)];[_0xab6cb(0x8e)];static get[_0xab6cb(0x8f)](){const _0x4cc95f=_0xab6cb;return[_0x4cc95f(0xa7),_0x34b45f];}static get[_0xab6cb(0xb7)](){const _0x2d1379=_0xab6cb;return _0x2d1379(0x83);}static get[_0xab6cb(0xb8)](){return!0x0;}static get[_0xab6cb(0x98)](){return!0x0;}constructor(_0x79964b){const _0x440728=_0xab6cb;super(_0x79964b),this[_0x440728(0xc0)](_0x440728(0x85),_0x513476[_0x440728(0x9d)]),this[_0x440728(0xc0)](_0x440728(0xac),!0x1),this[_0x440728(0xa9)]=new Set(),this[_0x440728(0xb1)]=!0x1,this[_0x440728(0x8e)]=new(_0x6edeb4())();}[_0xab6cb(0xbb)](){const _0x2f7f33=_0xab6cb,_0x3b4f67=this[_0x2f7f33(0xc3)],_0x1c6237=_0x3b4f67[_0x2f7f33(0x93)][_0x2f7f33(0x8d)](_0x2f7f33(0xa7)),_0xad7415=_0x3b4f67[_0x2f7f33(0x93)][_0x2f7f33(0x8d)](_0x34b45f);if(!_0x1c6237[_0x2f7f33(0xa1)])throw new _0xcb7c7c(_0x2f7f33(0x86),this);if(!_0x1c6237[_0x2f7f33(0x9f)])throw new _0xcb7c7c(_0x2f7f33(0x88),this);return this[_0x2f7f33(0x8e)][_0x2f7f33(0xbe)](window,_0x2f7f33(0x89),()=>this[_0x2f7f33(0xac)]=!0x0),this[_0x2f7f33(0x8e)][_0x2f7f33(0xbe)](window,_0x2f7f33(0x87),()=>this[_0x2f7f33(0xac)]=!0x1),this[_0x2f7f33(0xc3)][_0x2f7f33(0xb3)][_0x2f7f33(0xbc)](_0x2f7f33(0xa8),0xa),this[_0x2f7f33(0xc3)][_0x2f7f33(0xb3)][_0x2f7f33(0xbc)](_0x2f7f33(0xb2),0x14),n[_0x2f7f33(0x83)][_0x2f7f33(0x97)](_0x1c6237[_0x2f7f33(0xa1)],_0x1c6237[_0x2f7f33(0x9f)],{'timeout':0x3e8*this[_0x2f7f33(0xc3)][_0x2f7f33(0xb3)][_0x2f7f33(0x8d)](_0x2f7f33(0xa8)),'requestTimeout':0x3e8*this[_0x2f7f33(0xc3)][_0x2f7f33(0xb3)][_0x2f7f33(0x8d)](_0x2f7f33(0xb2))})[_0x2f7f33(0x80)](_0x29937a=>{const _0x2adeb1=_0x2f7f33;if(this[_0x2adeb1(0x91)]=_0x29937a,this[_0x2adeb1(0xaa)](_0x2adeb1(0x85))['to'](_0x29937a,_0x2adeb1(0x85),this,_0x2adeb1(0xac),(_0x4e26c2,_0x2b11a6)=>(_0x2adeb1(0x96)!==_0x4e26c2&&(this[_0x2adeb1(0xb1)]=!0x0),_0x2b11a6||_0x4e26c2!==_0x513476[_0x2adeb1(0x9d)]?_0x513476[_0x2adeb1(0xba)]:this[_0x2adeb1(0x85)]==_0x513476[_0x2adeb1(0xba)]&&this[_0x2adeb1(0xb1)]?(this[_0x2adeb1(0xb1)]=!0x1,this[_0x2adeb1(0xab)](),_0x513476[_0x2adeb1(0x9a)]):_0x513476[_0x2adeb1(0x9d)])),this[_0x2adeb1(0x91)]['on'](_0x2adeb1(0xa0),(_0x386893,_0x1b8daf)=>{const _0x303946=_0x2adeb1;if(_0x303946(0x7f)!==_0x1b8daf[_0x303946(0x99)])throw console[_0x303946(0xa0)](_0x1b8daf),new _0xcb7c7c(_0x303946(0x82),null,{'originalError':_0x1b8daf});_0xad7415[_0x303946(0x8a)](_0x303946(0x7d),{'title':_0x303946(0xa2),'namespace':_0x303946(0xa3)});}),!_0x29937a['me'])return new Promise(_0x4c2c90=>_0x29937a['on'](_0x2adeb1(0xaf),_0x4c2c90));})[_0x2f7f33(0xa5)](_0x8e53a2=>{const _0x4bbac2=_0x2f7f33;throw console[_0x4bbac2(0xa0)](_0x8e53a2),new _0xcb7c7c(_0x4bbac2(0x82),null,{'originalError':_0x8e53a2});});}[_0xab6cb(0xa4)](_0xaaedec){const _0x4d094c=_0xab6cb;if(_0x4d094c(0x94)!=typeof _0xaaedec[_0x4d094c(0xb4)])throw new _0xcb7c7c(_0x4d094c(0xae),this);if(this[_0x4d094c(0x7e)](_0xaaedec))throw new _0xcb7c7c(_0x4d094c(0xc4),this,{'name':_0xaaedec[_0x4d094c(0x92)][_0x4d094c(0xb7)]});this[_0x4d094c(0xa9)][_0x4d094c(0x81)](_0xaaedec);}[_0xab6cb(0xad)](_0x33cce7){const _0x5a28bc=_0xab6cb;this[_0x5a28bc(0xa9)][_0x5a28bc(0x8b)](_0x33cce7);}[_0xab6cb(0x7e)](_0x40d1a3){const _0x47e62b=_0xab6cb;return this[_0x47e62b(0xa9)][_0x47e62b(0xa6)](_0x40d1a3);}[_0xab6cb(0xab)](){const _0x90da22=_0xab6cb;return this[_0x90da22(0x91)][_0x90da22(0xb4)]()[_0x90da22(0x80)](()=>Promise[_0x90da22(0xb9)](Array[_0x90da22(0xb0)](this[_0x90da22(0xa9)],_0x227553=>_0x227553[_0x90da22(0xb4)]())))[_0x90da22(0x80)](()=>this[_0x90da22(0x85)]=_0x513476[_0x90da22(0x9d)])[_0x90da22(0xa5)](_0x593dbe=>{const _0x405c41=_0x90da22;throw console[_0x405c41(0xa0)](_0x593dbe),new _0xcb7c7c(_0x405c41(0x95),this[_0x405c41(0xc3)]);});}[_0xab6cb(0x7c)](){const _0x192c83=_0xab6cb;this[_0x192c83(0x91)]&&this[_0x192c83(0x91)][_0x192c83(0x7c)](),this[_0x192c83(0x85)]=_0x513476[_0x192c83(0xba)],this[_0x192c83(0x8e)][_0x192c83(0x9e)]();}[_0xab6cb(0x9c)](){const _0x462141=_0xab6cb;this[_0x462141(0x7c)](),super[_0x462141(0x9c)]();}}function _0x24e5(){const _0x3ca580=['addToReconnectionStack','catch','has','CloudServices','cloudServices.connectionTimeout','_reconnectionStack','bind','_reconnect','_isBrowserOffline','removeFromReconnectionStack','websocketgateway-invalid-plugin-interface','change:me','from','_shouldPluginsReconnect','cloudServices.requestTimeout','config','reconnect','586608ZtGxtq','37242207WtgpcK','pluginName','isOfficialPlugin','all','DISCONNECTED','init','define','1483620IyqIsa','listenTo','initialReconnectionInterval','set','69tBkNVs','3511924vByVqS','context','websocketgateway-plugin-already-registered','1776cLkkEn','disconnect','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','isInReconnectionStack','limitExceeded','then','add','cloudservices-init','WebSocketGateway','7503108OyXPBG','state','websocketgateway-missing-token','online','websocketgateway-missing-websocket-url','offline','showWarning','delete','20678OdwUtc','get','_domEmitter','requires','104494ayadZu','connection','constructor','plugins','function','cloudservices-reconnection-error','connected','connect','isPremiumPlugin','code','CONNECTING','10kaNkmp','destroy','CONNECTED','stopListening','webSocketUrl','error','token','Connected\x20users\x20limit\x20exceeded','real-time-collaboration'];_0x24e5=function(){return _0x3ca580;};return _0x24e5();}function _0x2474(_0x5ee482,_0x56d663){const _0x24e5ad=_0x24e5();return _0x2474=function(_0x2474d5,_0x166912){_0x2474d5=_0x2474d5-0x7b;let _0x582173=_0x24e5ad[_0x2474d5];return _0x582173;},_0x2474(_0x5ee482,_0x56d663);}export{n as WebSocketGateway};
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>_0x30fd3c)());[_0x23c666(0x132)];[_0x23c666(0x179)];[_0x23c666(0x187)];[_0x23c666(0x191)];static get[_0x23c666(0x11e)](){const _0x51cc8d=_0x23c666;return[_0x3e244c,_0x383190,_0x51cc8d(0x181),_0x128960,_0x552183];}static get[_0x23c666(0x16c)](){const _0x5e63b6=_0x23c666;return _0x5e63b6(0x15b);}static get[_0x23c666(0x17f)](){return!0x0;}static get[_0x23c666(0x152)](){return!0x0;}constructor(_0x24dd97){const _0x146231=_0x23c666;super(_0x24dd97);const _0x49180f=this[_0x146231(0x182)][_0x146231(0x160)][_0x146231(0x13b)](_0x146231(0x151));this[_0x146231(0x132)]=null,this[_0x146231(0x179)]=this[_0x146231(0x182)][_0x146231(0x148)][_0x146231(0x13b)](_0x146231(0x18c)),this[_0x146231(0x187)]=new c[(_0x146231(0x140))](_0x49180f);}async[_0x23c666(0x14a)](){const _0x3d4155=_0x23c666,_0x13fd19=this[_0x3d4155(0x182)][_0x3d4155(0x148)][_0x3d4155(0x13b)](_0x383190),_0x47b948=_0x13fd19[_0x3d4155(0x159)],_0x24cf1b=this[_0x3d4155(0x182)][_0x3d4155(0x148)][_0x3d4155(0x13b)](_0x3e244c);this[_0x3d4155(0x179)][_0x3d4155(0x175)]({'history':_0x47b948,'getLatestVersion':()=>this[_0x3d4155(0x17d)](),'getCurrentRevisionId':()=>_0x13fd19[_0x3d4155(0x190)]});const _0x255ae7=this[_0x3d4155(0x182)][_0x3d4155(0x160)][_0x3d4155(0x13b)](_0x3d4155(0x183))||_0x4f0072,_0x15cd4f=await _0x3abcff[_0x3d4155(0x186)](_0x24cf1b[_0x3d4155(0x155)],_0x255ae7);this[_0x3d4155(0x182)][_0x3d4155(0x148)][_0x3d4155(0x13b)](_0x3d4155(0x181))[_0x3d4155(0x120)]={'getRevision':async({revisionId:_0x4799d7})=>(await this[_0x3d4155(0x170)](),await this[_0x3d4155(0x187)][_0x3d4155(0x18e)](_0x4799d7)),'updateRevisions':async _0x327caf=>{const _0x3f86e3=_0x3d4155;await this[_0x3f86e3(0x170)]();const _0x58c461=this[_0x3f86e3(0x179)][_0x3f86e3(0x18b)];if(_0x15cd4f&&0x1===_0x327caf[_0x3f86e3(0x16e)]&&_0x327caf[0x0]['id']===_0x58c461['id'])return _0x327caf;for(const _0x2b0597 of _0x327caf)_0x2b0597['id']===_0x58c461['id']&&(_0x2b0597[_0x3f86e3(0x17a)]=_0x2b0597[_0x3f86e3(0x161)]===_0x2b0597[_0x3f86e3(0x13a)]);return this[_0x3f86e3(0x187)][_0x3f86e3(0x128)](_0x327caf,this[_0x3f86e3(0x132)])[_0x3f86e3(0x12f)](_0x9d4579=>(this[_0x3f86e3(0x132)]=_0x9d4579,_0x327caf))[_0x3f86e3(0x134)](_0x219727=>{const _0x419093=_0x3f86e3;if(st(_0x219727)||_0x419093(0x167)===_0x219727[_0x419093(0x171)]&&void 0x0!==_0x219727[_0x419093(0x177)][_0x419093(0x144)]){for(const _0x3e60d7 of _0x327caf){!this[_0x419093(0x179)][_0x419093(0x153)][_0x419093(0x18e)](_0x3e60d7['id'])||this[_0x419093(0x179)][_0x419093(0x185)](_0x3e60d7['id'],_0x3e60d7,!0x1);}if(st(_0x219727))throw _0x219727;return _0x327caf;}throw _0x219727;});}},this[_0x3d4155(0x121)](this[_0x3d4155(0x187)],_0x3d4155(0x14d),(_0x524652,{revisionsData:_0x1c61d1,requestId:_0x399e3a})=>{const _0x52b1d4=_0x3d4155;Math[_0x52b1d4(0x12c)](..._0x1c61d1[_0x52b1d4(0x15f)](_0x3e08c2=>_0x3e08c2[_0x52b1d4(0x13a)]))>this[_0x52b1d4(0x13d)]()-0x1?this[_0x52b1d4(0x17d)]()[_0x52b1d4(0x12f)](()=>{const _0x1ba6f4=_0x52b1d4;this[_0x1ba6f4(0x12d)](_0x1c61d1,_0x399e3a);}):this[_0x52b1d4(0x12d)](_0x1c61d1,_0x399e3a);});const {revisions:_0x5bf914,requestId:_0x3ecd27}=await this[_0x3d4155(0x187)][_0x3d4155(0x13e)](_0x24cf1b[_0x3d4155(0x155)]);_0x24cf1b[_0x3d4155(0x163)](this),this[_0x3d4155(0x132)]=_0x3ecd27,await this[_0x3d4155(0x139)](_0x5bf914);for(const _0x2bfaf6 of _0x5bf914)this[_0x3d4155(0x179)][_0x3d4155(0x178)](_0x2bfaf6);this[_0x3d4155(0x121)](_0x13fd19,_0x3d4155(0x141),(_0x269069,_0x20a9e5,_0x4cb19e)=>{const _0x1f42f2=_0x3d4155;_0x4cb19e&&(this[_0x1f42f2(0x191)]=_0x13fd19[_0x1f42f2(0x18f)],_0x269069[_0x1f42f2(0x127)]());}),this[_0x3d4155(0x179)][_0x3d4155(0x12b)](_0x3d4155(0x169))['to'](_0x24cf1b,_0x3d4155(0x133),_0x73b00c=>_0x73b00c===_0x47d10a[_0x3d4155(0x18a)]);}async[_0x23c666(0x11c)](){const _0x3fed32=_0x23c666,_0x29ef8e=this[_0x3fed32(0x182)][_0x3fed32(0x148)][_0x3fed32(0x13b)](_0x3e244c),_0x2c57a9=this[_0x3fed32(0x182)][_0x3fed32(0x148)][_0x3fed32(0x13b)](_0x383190),_0x311403=async()=>{const _0x11f6c4=_0x3fed32,_0x4e79d7=this[_0x11f6c4(0x179)][_0x11f6c4(0x18b)],_0x15f009=_0x4e79d7['id'],_0x13bb30=_0x15f009!==_0x2c57a9[_0x11f6c4(0x190)];if(_0x13bb30){const _0x2604fa=_0x2c57a9[_0x11f6c4(0x18f)]-this[_0x11f6c4(0x191)],_0x138a9c=this[_0x11f6c4(0x13d)]();this[_0x11f6c4(0x179)][_0x11f6c4(0x122)][_0x11f6c4(0x126)]();if(_0x4e79d7[_0x11f6c4(0x13a)]+_0x2604fa!==_0x138a9c){const _0x47adda=_0x4e79d7[_0x11f6c4(0x161)]+_0x2604fa,_0xb8fc08=this[_0x11f6c4(0x182)][_0x11f6c4(0x148)][_0x11f6c4(0x13b)](_0x552183),_0x1d9a5c=this[_0x11f6c4(0x179)][_0x11f6c4(0x12a)]({'revision':_0x4e79d7,'from':_0x47adda,'to':_0x138a9c});_0x1d9a5c['id']=_0x4e79d7['id'];const _0x2114a1=_0x1d9a5c[_0x11f6c4(0x135)][_0x11f6c4(0x15f)](_0x365d6d=>_0xb8fc08[_0x11f6c4(0x174)](_0x365d6d));_0x4e79d7[_0x11f6c4(0x15e)]({..._0x1d9a5c,'authors':_0x2114a1},!0x0),this[_0x11f6c4(0x179)][_0x11f6c4(0x185)](_0x4e79d7['id'],_0x1d9a5c,!0x0);}this[_0x11f6c4(0x179)][_0x11f6c4(0x143)]=_0x138a9c,(_0x4e79d7[_0x11f6c4(0x13a)]===_0x4e79d7[_0x11f6c4(0x161)]&&!this[_0x11f6c4(0x179)][_0x11f6c4(0x173)][_0x11f6c4(0x14c)](_0x15f009)&&this[_0x11f6c4(0x179)][_0x11f6c4(0x153)][_0x11f6c4(0x189)][_0x11f6c4(0x13f)](_0x15f009),this[_0x11f6c4(0x179)][_0x11f6c4(0x162)](_0x138a9c));}const {revisions:_0x2d7e83,requestId:_0x438931}=await this[_0x11f6c4(0x187)][_0x11f6c4(0x11c)](_0x29ef8e[_0x11f6c4(0x155)],this[_0x11f6c4(0x132)]);_0x13bb30&&_0x2d7e83[_0x11f6c4(0x16e)]>0x0?_0x2c57a9[_0x11f6c4(0x129)]():(await this[_0x11f6c4(0x139)](_0x2d7e83),this[_0x11f6c4(0x12d)](_0x2d7e83,_0x438931),this[_0x11f6c4(0x179)][_0x11f6c4(0x13c)]());};return _0x2c57a9[_0x3fed32(0x131)]?_0x311403():new Promise((_0x54ddaa,_0x5eb65c)=>{const _0x1e2734=_0x3fed32;_0x2c57a9[_0x1e2734(0x15a)](_0x1e2734(0x141),()=>{const _0x23a0ff=_0x1e2734;_0x311403()[_0x23a0ff(0x12f)](_0x54ddaa)[_0x23a0ff(0x134)](_0x5eb65c);});});}[_0x23c666(0x165)](){const _0x2f16cf=_0x23c666;super[_0x2f16cf(0x165)]();}async[_0x23c666(0x170)](){const _0xbf7d8a=_0x23c666;this[_0xbf7d8a(0x187)][_0xbf7d8a(0x14e)]||await new Promise(_0x39e491=>{const _0x474f97=_0xbf7d8a;this[_0x474f97(0x121)](this[_0x474f97(0x187)],_0x474f97(0x124),_0xbebe45=>{const _0x3e68d6=_0x474f97;_0xbebe45[_0x3e68d6(0x127)](),_0x39e491();});});}[_0x23c666(0x13d)](){const _0x137b99=_0x23c666,_0x1d69ba=this[_0x137b99(0x182)][_0x137b99(0x148)][_0x137b99(0x13b)](_0x383190)[_0x137b99(0x159)][_0x137b99(0x150)]()[_0x137b99(0x16a)]();for(const _0x48f8e8 of _0x1d69ba)if(_0x137b99(0x168)!==_0x48f8e8[_0x137b99(0x11f)]||_0x48f8e8[_0x137b99(0x16b)])return _0x48f8e8[_0x137b99(0x158)]+0x1;}[_0x23c666(0x17d)](){const _0x2f5603=_0x23c666,_0x271899=this[_0x2f5603(0x182)][_0x2f5603(0x148)][_0x2f5603(0x13b)](_0x383190);return new Promise(_0x389dcb=>{const _0x521a81=_0x2f5603;_0x271899[_0x521a81(0x164)]?_0x271899[_0x521a81(0x15a)](_0x521a81(0x137),()=>{const _0x20f1e6=_0x521a81;_0x389dcb(this[_0x20f1e6(0x13d)]());}):_0x389dcb(this[_0x521a81(0x13d)]());});}[_0x23c666(0x12d)](_0x4f33e1,_0x435cd9){const _0x2e1007=_0x23c666,_0x5db98d=this[_0x2e1007(0x179)][_0x2e1007(0x153)];this[_0x2e1007(0x132)]=_0x435cd9;for(const _0x382edc of _0x4f33e1){const _0x26713e=_0x5db98d[_0x2e1007(0x18e)](_0x382edc['id']);if(_0x26713e){if((_0x382edc[_0x2e1007(0x161)]||_0x382edc[_0x2e1007(0x13a)])&&(_0x382edc[_0x2e1007(0x123)]=null),_0x26713e===this[_0x2e1007(0x179)][_0x2e1007(0x18b)]){const _0x5c5027=Math[_0x2e1007(0x12c)](_0x26713e[_0x2e1007(0x13a)],_0x382edc[_0x2e1007(0x13a)]),_0x177ae6=Math[_0x2e1007(0x12c)](_0x26713e[_0x2e1007(0x161)],_0x382edc[_0x2e1007(0x161)]);let _0xef2f3;_0x26713e[_0x2e1007(0x13a)]===_0x382edc[_0x2e1007(0x13a)]&&_0x26713e[_0x2e1007(0x161)]===_0x382edc[_0x2e1007(0x161)]?(_0xef2f3=!0x0,this[_0x2e1007(0x142)](_0x382edc)):_0x382edc[_0x2e1007(0x13a)]===_0x5c5027&&_0x382edc[_0x2e1007(0x161)]===_0x177ae6?_0xef2f3=!0x1:(_0x26713e[_0x2e1007(0x13a)]===_0x5c5027&&_0x26713e[_0x2e1007(0x161)]===_0x177ae6||this[_0x2e1007(0x125)]({'revision':_0x26713e,'from':_0x177ae6,'to':_0x5c5027}),_0xef2f3=!0x0),_0xef2f3&&(delete _0x382edc[_0x2e1007(0x161)],delete _0x382edc[_0x2e1007(0x13a)],delete _0x382edc[_0x2e1007(0x123)],delete _0x382edc[_0x2e1007(0x136)],delete _0x382edc[_0x2e1007(0x135)]);}this[_0x2e1007(0x179)][_0x2e1007(0x172)](_0x382edc),this[_0x2e1007(0x142)](_0x382edc);}else this[_0x2e1007(0x179)][_0x2e1007(0x178)](_0x382edc);}const _0x198596=_0x5db98d[_0x2e1007(0x138)]();_0x198596[_0x2e1007(0x16a)]();for(let _0x2911ad=0x0;_0x2911ad<_0x198596[_0x2e1007(0x16e)]-0x1;_0x2911ad++){const _0xbc4fcf=_0x198596[_0x2911ad],_0x1318bd=_0x198596[_0x2911ad+0x1];if(_0xbc4fcf[_0x2e1007(0x161)]<_0x1318bd[_0x2e1007(0x13a)]){const _0x1efc5e=_0x1318bd[_0x2e1007(0x13a)],_0x18b797=Math[_0x2e1007(0x12c)](_0x1efc5e,_0xbc4fcf[_0x2e1007(0x13a)]);this[_0x2e1007(0x125)]({'revision':_0xbc4fcf,'from':_0x1efc5e,'to':_0x18b797});}}}[_0x23c666(0x125)]({revision:_0x176c7d,from:_0xff7997,to:_0x353a69}={}){const _0x281d91=_0x23c666,_0x3d30ae=this[_0x281d91(0x182)][_0x281d91(0x148)][_0x281d91(0x13b)](_0x552183),_0x40a2fe=this[_0x281d91(0x179)][_0x281d91(0x12a)]({'revision':_0x176c7d,'from':_0xff7997,'to':_0x353a69});_0x40a2fe[_0x281d91(0x184)]=_0x40a2fe[_0x281d91(0x135)][_0x281d91(0x15f)](_0x589818=>_0x3d30ae[_0x281d91(0x174)](_0x589818)),_0x176c7d[_0x281d91(0x15e)](_0x40a2fe);}[_0x23c666(0x142)](_0x1f63fb){const _0x47a5e7=_0x23c666,_0x5b33dd={};_0x5b33dd['id']=_0x1f63fb['id'];for(const _0x4562be of Object[_0x47a5e7(0x147)](_0x1f63fb))'id'!==_0x4562be&&(_0x5b33dd[_0x4562be]=void 0x0);this[_0x47a5e7(0x179)][_0x47a5e7(0x185)](_0x5b33dd['id'],_0x5b33dd,!0x0);}async[_0x23c666(0x139)](_0x3929eb){const _0x196b7d=_0x23c666,_0x152308=this[_0x196b7d(0x182)][_0x196b7d(0x148)][_0x196b7d(0x13b)](_0x552183),{connection:_0x3fb140}=this[_0x196b7d(0x182)][_0x196b7d(0x148)][_0x196b7d(0x13b)](_0x3e244c),_0x254f48=new Set();for(const _0x3ade40 of _0x3929eb){for(const _0x2d4607 of _0x3ade40[_0x196b7d(0x135)])_0x34acb4(_0x2d4607);_0x3ade40[_0x196b7d(0x14b)]&&_0x34acb4(_0x3ade40[_0x196b7d(0x14b)]);}if(0x0===_0x254f48[_0x196b7d(0x16d)])return;const _0x39c8b3=await _0x42ae13[_0x196b7d(0x17b)](_0x3fb140,Array[_0x196b7d(0x14f)](_0x254f48));for(const _0x57326f of _0x39c8b3)_0x152308[_0x196b7d(0x174)](_0x57326f['id'])||_0x152308[_0x196b7d(0x145)](_0x57326f);function _0x34acb4(_0x56934f){const _0xf8442=_0x196b7d;_0x152308[_0xf8442(0x174)](_0x56934f)||_0x254f48[_0xf8442(0x157)](_0x56934f);}}}export{c as CloudServicesRevisionHistoryAdapter};function st(_0x190fe3){const _0x309695=_0x23c666;return _0x190fe3[_0x309695(0x18d)][_0x309695(0x15c)](_0x309695(0x156))||_0x190fe3[_0x309695(0x18d)][_0x309695(0x15c)](_0x309695(0x154))||_0x190fe3[_0x309695(0x18d)][_0x309695(0x15c)](_0x309695(0x17e));}function _0xc2f9(){const _0x11716b=['then','1406040ZWCDEz','_isConnected','_lastRequestId','state','catch','authorsIds','createdAt','change:_isPendingUpdate','getRevisions','_fetchMissingUsers','toVersion','get','sendBufferedUpdates','_getLatestVersionFromServerOperations','connect','remove','RevisionHistoryService','change:_isConnected','_preventResendingRevisionData','_startingVersion','wrongRequestId','addUser','1532096TeLsLk','keys','plugins','33fNpXQr','init','creatorId','has','revisionsUpdated','isConnected','from','getOperations','collaboration.channelId','isPremiumPlugin','repository','cloud-services-internal-error:\x20Not\x20connected.','connection','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','add','baseVersion','serverHistory','once','CloudServicesRevisionHistoryAdapter','startsWith','695416NBRxWT','_update','map','config','fromVersion','_createCurrentRevision','addToReconnectionStack','_isPendingUpdate','destroy','7HZdzhx','400','marker','isEnabled','reverse','affectsData','pluginName','size','length','9QuQJwD','_waitForServiceReady','code','setRevisionData','_bufferedUpdates','getUser','setSource','2061078hFPfda','data','addRevisionData','_revisionTracker','isEmptyCurrent','getMany','3750ibphYB','_getLatestVersion','cloud-services-internal-error:\x20Request\x20timeout.','isOfficialPlugin','7646160dpwnhA','RevisionHistory','editor','cloudServices.bundleVersion','authors','_bufferUpdate','isBundleUploaded','_revisionHistoryService','10rbXrki','_revisions','CONNECTED','currentRevision','RevisionTracker','message','getRevision','_offset','sessionId','_oldOffset','reconnect','66icSRkm','requires','type','adapter','listenTo','_revisionDataBuilder','diffData','connected','_fixRevision','reInit','off','updateRevisions','_handleReconnectionError','buildRevisionData','bind','max','_handleRevisionsUpdate','1072788gAZkQx'];_0xc2f9=function(){return _0x11716b;};return _0xc2f9();}
|
|
23
|
+
const _0x23083a=_0x42ec;(function(_0x427a18,_0x4d1438){const _0x104e01=_0x42ec,_0x5a8553=_0x427a18();while(!![]){try{const _0x4a99fb=parseInt(_0x104e01(0xa3))/0x1*(-parseInt(_0x104e01(0x89))/0x2)+parseInt(_0x104e01(0x8d))/0x3*(-parseInt(_0x104e01(0x80))/0x4)+parseInt(_0x104e01(0xae))/0x5+-parseInt(_0x104e01(0x87))/0x6+-parseInt(_0x104e01(0x8f))/0x7*(parseInt(_0x104e01(0x6f))/0x8)+parseInt(_0x104e01(0x9a))/0x9+parseInt(_0x104e01(0x70))/0xa;if(_0x4a99fb===_0x4d1438)break;else _0x5a8553['push'](_0x5a8553['shift']());}catch(_0x56d6bb){_0x5a8553['push'](_0x5a8553['shift']());}}}(_0x1d72,0xa941a));import{Plugin as _0x30a505}from'ckeditor5/src/core.js';import{version as _0x1a6ac9}from'ckeditor5/src/utils.js';import{Users as _0x620728}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x2bf3c0}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x4ec363}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x598cbf}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x4b0edf,RevisionHistoryService as _0x10b53e,User as _0x2da03f,WEB_SOCKET_GATEWAY_STATES as _0x48f2d1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x30a505{static [_0x23083a(0x9f)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x10b53e)());[_0x23083a(0xc6)];[_0x23083a(0x7f)];[_0x23083a(0xd6)];[_0x23083a(0xa0)];static get[_0x23083a(0xa2)](){const _0x39a22a=_0x23083a;return[_0x4ec363,_0x2bf3c0,_0x39a22a(0xba),_0x598cbf,_0x620728];}static get[_0x23083a(0xb5)](){const _0x160639=_0x23083a;return _0x160639(0xd5);}static get[_0x23083a(0x83)](){return!0x0;}static get[_0x23083a(0x82)](){return!0x0;}constructor(_0x42ec3e){const _0x10ff26=_0x23083a;super(_0x42ec3e);const _0x10d766=this[_0x10ff26(0xd2)][_0x10ff26(0xb1)][_0x10ff26(0xc5)](_0x10ff26(0x8c));this[_0x10ff26(0xc6)]=null,this[_0x10ff26(0x7f)]=this[_0x10ff26(0xd2)][_0x10ff26(0x7d)][_0x10ff26(0xc5)](_0x10ff26(0x93)),this[_0x10ff26(0xd6)]=new c[(_0x10ff26(0x9f))](_0x10d766);}async[_0x23083a(0x6e)](){const _0x3850b8=_0x23083a,_0xaaa1cb=this[_0x3850b8(0xd2)][_0x3850b8(0x7d)][_0x3850b8(0xc5)](_0x2bf3c0),_0x98eb33=_0xaaa1cb[_0x3850b8(0xbb)],_0x3b3013=this[_0x3850b8(0xd2)][_0x3850b8(0x7d)][_0x3850b8(0xc5)](_0x4ec363);this[_0x3850b8(0x7f)][_0x3850b8(0x79)]({'history':_0x98eb33,'getLatestVersion':()=>this[_0x3850b8(0xb0)](),'getCurrentRevisionId':()=>_0xaaa1cb[_0x3850b8(0x86)]});const _0x556f97=this[_0x3850b8(0xd2)][_0x3850b8(0xb1)][_0x3850b8(0xc5)](_0x3850b8(0xc0))||_0x1a6ac9,_0x19b6e2=await _0x4b0edf[_0x3850b8(0xa9)](_0x3b3013[_0x3850b8(0x7c)],_0x556f97);this[_0x3850b8(0xd2)][_0x3850b8(0x7d)][_0x3850b8(0xc5)](_0x3850b8(0xba))[_0x3850b8(0x9b)]={'getRevision':async({revisionId:_0x165cd1})=>(await this[_0x3850b8(0xd7)](),await this[_0x3850b8(0xd6)][_0x3850b8(0xd3)](_0x165cd1)),'updateRevisions':async _0x344c44=>{const _0x29e9a7=_0x3850b8;await this[_0x29e9a7(0xd7)]();const _0x3dad16=this[_0x29e9a7(0x7f)][_0x29e9a7(0x96)];if(_0x19b6e2&&0x1===_0x344c44[_0x29e9a7(0x84)]&&_0x344c44[0x0]['id']===_0x3dad16['id'])return _0x344c44;for(const _0x7059b9 of _0x344c44)_0x7059b9['id']===_0x3dad16['id']&&(_0x7059b9[_0x29e9a7(0xb8)]=_0x7059b9[_0x29e9a7(0xaa)]===_0x7059b9[_0x29e9a7(0xbf)]);return this[_0x29e9a7(0xd6)][_0x29e9a7(0xcb)](_0x344c44,this[_0x29e9a7(0xc6)])[_0x29e9a7(0x69)](_0x4b5070=>(this[_0x29e9a7(0xc6)]=_0x4b5070,_0x344c44))[_0x29e9a7(0xab)](_0x1623ed=>{const _0x4d9e99=_0x29e9a7;if(M(_0x1623ed)||_0x4d9e99(0x92)===_0x1623ed[_0x4d9e99(0xa6)]&&void 0x0!==_0x1623ed[_0x4d9e99(0x7e)][_0x4d9e99(0xc4)]){for(const _0x2809c7 of _0x344c44){!this[_0x4d9e99(0x7f)][_0x4d9e99(0x98)][_0x4d9e99(0xd3)](_0x2809c7['id'])||this[_0x4d9e99(0x7f)][_0x4d9e99(0xad)](_0x2809c7['id'],_0x2809c7,!0x1);}if(M(_0x1623ed))throw _0x1623ed;return _0x344c44;}throw _0x1623ed;});}},this[_0x3850b8(0xb4)](this[_0x3850b8(0xd6)],_0x3850b8(0xb2),(_0x721183,{revisionsData:_0x4248c6,requestId:_0x1ec906})=>{const _0x2be0b3=_0x3850b8;Math[_0x2be0b3(0x6d)](..._0x4248c6[_0x2be0b3(0xd9)](_0x30b166=>_0x30b166[_0x2be0b3(0xbf)]))>this[_0x2be0b3(0xc9)]()-0x1?this[_0x2be0b3(0xb0)]()[_0x2be0b3(0x69)](()=>{const _0x50dd05=_0x2be0b3;this[_0x50dd05(0xa7)](_0x4248c6,_0x1ec906);}):this[_0x2be0b3(0xa7)](_0x4248c6,_0x1ec906);});const {revisions:_0x1380ba,requestId:_0x2871ef}=await this[_0x3850b8(0xd6)][_0x3850b8(0x74)](_0x3b3013[_0x3850b8(0x7c)]);_0x3b3013[_0x3850b8(0x6b)](this),this[_0x3850b8(0xc6)]=_0x2871ef,await this[_0x3850b8(0xa1)](_0x1380ba);for(const _0x133398 of _0x1380ba)this[_0x3850b8(0x7f)][_0x3850b8(0x9d)](_0x133398);this[_0x3850b8(0xb4)](_0xaaa1cb,_0x3850b8(0xb7),(_0x153579,_0x30e55d,_0x3b6357)=>{const _0x3aac4f=_0x3850b8;_0x3b6357&&(this[_0x3aac4f(0xa0)]=_0xaaa1cb[_0x3aac4f(0xdc)],_0x153579[_0x3aac4f(0x78)]());}),this[_0x3850b8(0x7f)][_0x3850b8(0xce)](_0x3850b8(0xbc))['to'](_0x3b3013,_0x3850b8(0xb3),_0x46b029=>_0x46b029===_0x48f2d1[_0x3850b8(0x6c)]);}async[_0x23083a(0xa5)](){const _0x42465a=_0x23083a,_0xbd35c8=this[_0x42465a(0xd2)][_0x42465a(0x7d)][_0x42465a(0xc5)](_0x4ec363),_0x3556fd=this[_0x42465a(0xd2)][_0x42465a(0x7d)][_0x42465a(0xc5)](_0x2bf3c0),_0x32bd4a=async()=>{const _0x47ebe7=_0x42465a,_0x446a5d=this[_0x47ebe7(0x7f)][_0x47ebe7(0x96)],_0xe51ebc=_0x446a5d['id'],_0x438dc4=_0xe51ebc!==_0x3556fd[_0x47ebe7(0x86)];if(_0x438dc4){const _0x11ad25=_0x3556fd[_0x47ebe7(0xdc)]-this[_0x47ebe7(0xa0)],_0x50bd22=this[_0x47ebe7(0xc9)]();this[_0x47ebe7(0x7f)][_0x47ebe7(0x90)][_0x47ebe7(0x88)]();if(_0x446a5d[_0x47ebe7(0xbf)]+_0x11ad25!==_0x50bd22){const _0x1e14c1=_0x446a5d[_0x47ebe7(0xaa)]+_0x11ad25,_0x54cdbb=this[_0x47ebe7(0xd2)][_0x47ebe7(0x7d)][_0x47ebe7(0xc5)](_0x620728),_0x8043c8=this[_0x47ebe7(0x7f)][_0x47ebe7(0xaf)]({'revision':_0x446a5d,'from':_0x1e14c1,'to':_0x50bd22});_0x8043c8['id']=_0x446a5d['id'];const _0x1e7c37=_0x8043c8[_0x47ebe7(0xc8)][_0x47ebe7(0xd9)](_0x4bc30c=>_0x54cdbb[_0x47ebe7(0xc3)](_0x4bc30c));_0x446a5d[_0x47ebe7(0xca)]({..._0x8043c8,'authors':_0x1e7c37},!0x0),this[_0x47ebe7(0x7f)][_0x47ebe7(0xad)](_0x446a5d['id'],_0x8043c8,!0x0);}this[_0x47ebe7(0x7f)][_0x47ebe7(0xac)]=_0x50bd22,(_0x446a5d[_0x47ebe7(0xbf)]===_0x446a5d[_0x47ebe7(0xaa)]&&!this[_0x47ebe7(0x7f)][_0x47ebe7(0x9e)][_0x47ebe7(0xcd)](_0xe51ebc)&&this[_0x47ebe7(0x7f)][_0x47ebe7(0x98)][_0x47ebe7(0xdb)][_0x47ebe7(0x85)](_0xe51ebc),this[_0x47ebe7(0x7f)][_0x47ebe7(0xa8)](_0x50bd22));}const {revisions:_0x27701f,requestId:_0x5dbc78}=await this[_0x47ebe7(0xd6)][_0x47ebe7(0xa5)](_0xbd35c8[_0x47ebe7(0x7c)],this[_0x47ebe7(0xc6)]);_0x438dc4&&_0x27701f[_0x47ebe7(0x84)]>0x0?_0x3556fd[_0x47ebe7(0xb9)]():(await this[_0x47ebe7(0xa1)](_0x27701f),this[_0x47ebe7(0xa7)](_0x27701f,_0x5dbc78),this[_0x47ebe7(0x7f)][_0x47ebe7(0x6a)]());};return _0x3556fd[_0x42465a(0xda)]?_0x32bd4a():new Promise((_0x429758,_0x2d2d1f)=>{const _0x743eaf=_0x42465a;_0x3556fd[_0x743eaf(0x99)](_0x743eaf(0xb7),()=>{const _0x21ad49=_0x743eaf;_0x32bd4a()[_0x21ad49(0x69)](_0x429758)[_0x21ad49(0xab)](_0x2d2d1f);});});}[_0x23083a(0x97)](){const _0x3b9fb7=_0x23083a;super[_0x3b9fb7(0x97)]();}async[_0x23083a(0xd7)](){const _0x429a42=_0x23083a;this[_0x429a42(0xd6)][_0x429a42(0xd8)]||await new Promise(_0x573222=>{const _0x91e690=_0x429a42;this[_0x91e690(0xb4)](this[_0x91e690(0xd6)],_0x91e690(0x7a),_0x2e3006=>{const _0x4189c7=_0x91e690;_0x2e3006[_0x4189c7(0x78)](),_0x573222();});});}[_0x23083a(0xc9)](){const _0x3950cd=_0x23083a,_0x1a43fe=this[_0x3950cd(0xd2)][_0x3950cd(0x7d)][_0x3950cd(0xc5)](_0x2bf3c0)[_0x3950cd(0xbb)][_0x3950cd(0x71)]()[_0x3950cd(0xb6)]();for(const _0x42d3af of _0x1a43fe)if(_0x3950cd(0xc7)!==_0x42d3af[_0x3950cd(0xbd)]||_0x42d3af[_0x3950cd(0x91)])return _0x42d3af[_0x3950cd(0xbe)]+0x1;}[_0x23083a(0xb0)](){const _0x2911bb=_0x23083a,_0x3f8378=this[_0x2911bb(0xd2)][_0x2911bb(0x7d)][_0x2911bb(0xc5)](_0x2bf3c0);return new Promise(_0x33355b=>{const _0x531382=_0x2911bb;_0x3f8378[_0x531382(0xc2)]?_0x3f8378[_0x531382(0x99)](_0x531382(0x95),()=>{const _0x11f39d=_0x531382;_0x33355b(this[_0x11f39d(0xc9)]());}):_0x33355b(this[_0x531382(0xc9)]());});}[_0x23083a(0xa7)](_0x12f28a,_0x46beb8){const _0x524837=_0x23083a,_0x15d05c=this[_0x524837(0x7f)][_0x524837(0x98)];this[_0x524837(0xc6)]=_0x46beb8;for(const _0x9cba88 of _0x12f28a){const _0x30c906=_0x15d05c[_0x524837(0xd3)](_0x9cba88['id']);if(_0x30c906){if((_0x9cba88[_0x524837(0xaa)]||_0x9cba88[_0x524837(0xbf)])&&(_0x9cba88[_0x524837(0x81)]=null),_0x30c906===this[_0x524837(0x7f)][_0x524837(0x96)]){const _0x3cb7ea=Math[_0x524837(0x6d)](_0x30c906[_0x524837(0xbf)],_0x9cba88[_0x524837(0xbf)]),_0x487828=Math[_0x524837(0x6d)](_0x30c906[_0x524837(0xaa)],_0x9cba88[_0x524837(0xaa)]);let _0x128d7a;_0x30c906[_0x524837(0xbf)]===_0x9cba88[_0x524837(0xbf)]&&_0x30c906[_0x524837(0xaa)]===_0x9cba88[_0x524837(0xaa)]?(_0x128d7a=!0x0,this[_0x524837(0xa4)](_0x9cba88)):_0x9cba88[_0x524837(0xbf)]===_0x3cb7ea&&_0x9cba88[_0x524837(0xaa)]===_0x487828?_0x128d7a=!0x1:(_0x30c906[_0x524837(0xbf)]===_0x3cb7ea&&_0x30c906[_0x524837(0xaa)]===_0x487828||this[_0x524837(0xd1)]({'revision':_0x30c906,'from':_0x487828,'to':_0x3cb7ea}),_0x128d7a=!0x0),_0x128d7a&&(delete _0x9cba88[_0x524837(0xaa)],delete _0x9cba88[_0x524837(0xbf)],delete _0x9cba88[_0x524837(0x81)],delete _0x9cba88[_0x524837(0xd4)],delete _0x9cba88[_0x524837(0xc8)]);}this[_0x524837(0x7f)][_0x524837(0x7b)](_0x9cba88),this[_0x524837(0xa4)](_0x9cba88);}else this[_0x524837(0x7f)][_0x524837(0x9d)](_0x9cba88);}const _0x1643fc=_0x15d05c[_0x524837(0xc1)]();_0x1643fc[_0x524837(0xb6)]();for(let _0x2858ac=0x0;_0x2858ac<_0x1643fc[_0x524837(0x84)]-0x1;_0x2858ac++){const _0x135630=_0x1643fc[_0x2858ac],_0x3e6f91=_0x1643fc[_0x2858ac+0x1];if(_0x135630[_0x524837(0xaa)]<_0x3e6f91[_0x524837(0xbf)]){const _0x3ec7a4=_0x3e6f91[_0x524837(0xbf)],_0x4efd65=Math[_0x524837(0x6d)](_0x3ec7a4,_0x135630[_0x524837(0xbf)]);this[_0x524837(0xd1)]({'revision':_0x135630,'from':_0x3ec7a4,'to':_0x4efd65});}}}[_0x23083a(0xd1)]({revision:_0x2afbdc,from:_0x418da7,to:_0x3a2b06}={}){const _0x184a3d=_0x23083a,_0x5bbb3c=this[_0x184a3d(0xd2)][_0x184a3d(0x7d)][_0x184a3d(0xc5)](_0x620728),_0xede869=this[_0x184a3d(0x7f)][_0x184a3d(0xaf)]({'revision':_0x2afbdc,'from':_0x418da7,'to':_0x3a2b06});_0xede869[_0x184a3d(0xcc)]=_0xede869[_0x184a3d(0xc8)][_0x184a3d(0xd9)](_0x43be98=>_0x5bbb3c[_0x184a3d(0xc3)](_0x43be98)),_0x2afbdc[_0x184a3d(0xca)](_0xede869);}[_0x23083a(0xa4)](_0x168bca){const _0x3372f2=_0x23083a,_0xf099f9={};_0xf099f9['id']=_0x168bca['id'];for(const _0x555482 of Object[_0x3372f2(0x76)](_0x168bca))'id'!==_0x555482&&(_0xf099f9[_0x555482]=void 0x0);this[_0x3372f2(0x7f)][_0x3372f2(0xad)](_0xf099f9['id'],_0xf099f9,!0x0);}async[_0x23083a(0xa1)](_0x22d053){const _0x31e20b=_0x23083a,_0x5a6c71=this[_0x31e20b(0xd2)][_0x31e20b(0x7d)][_0x31e20b(0xc5)](_0x620728),{connection:_0x1d307f}=this[_0x31e20b(0xd2)][_0x31e20b(0x7d)][_0x31e20b(0xc5)](_0x4ec363),_0x39e407=new Set();for(const _0x17dfff of _0x22d053){for(const _0xfa9163 of _0x17dfff[_0x31e20b(0xc8)])_0x1b2074(_0xfa9163);_0x17dfff[_0x31e20b(0xd0)]&&_0x1b2074(_0x17dfff[_0x31e20b(0xd0)]);}if(0x0===_0x39e407[_0x31e20b(0x94)])return;const _0x20c7c3=await _0x2da03f[_0x31e20b(0x73)](_0x1d307f,Array[_0x31e20b(0x8b)](_0x39e407));for(const _0x5f4a16 of _0x20c7c3)_0x5a6c71[_0x31e20b(0xc3)](_0x5f4a16['id'])||_0x5a6c71[_0x31e20b(0xcf)](_0x5f4a16);function _0x1b2074(_0x46febf){const _0x20371d=_0x31e20b;_0x5a6c71[_0x20371d(0xc3)](_0x46febf)||_0x39e407[_0x20371d(0x9c)](_0x46febf);}}}export{c as CloudServicesRevisionHistoryAdapter};function M(_0x1c1345){const _0x5437e4=_0x23083a;return _0x1c1345[_0x5437e4(0x8e)][_0x5437e4(0x8a)](_0x5437e4(0x75))||_0x1c1345[_0x5437e4(0x8e)][_0x5437e4(0x8a)](_0x5437e4(0x72))||_0x1c1345[_0x5437e4(0x8e)][_0x5437e4(0x8a)](_0x5437e4(0x77));}function _0x42ec(_0x573939,_0x5b4c4c){const _0x1d721a=_0x1d72();return _0x42ec=function(_0x42ecd7,_0x4a1a6b){_0x42ecd7=_0x42ecd7-0x69;let _0x408ce6=_0x1d721a[_0x42ecd7];return _0x408ce6;},_0x42ec(_0x573939,_0x5b4c4c);}function _0x1d72(){const _0x49792b=['updateRevisions','authors','has','bind','addUser','creatorId','_fixRevision','editor','getRevision','createdAt','CloudServicesRevisionHistoryAdapter','_revisionHistoryService','_waitForServiceReady','isConnected','map','_isConnected','_revisions','_offset','then','sendBufferedUpdates','addToReconnectionStack','CONNECTED','max','init','464NUzilf','14075510EAzrLQ','getOperations','cloud-services-internal-error:\x20Not\x20connected.','getMany','connect','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','keys','cloud-services-internal-error:\x20Request\x20timeout.','off','setSource','connected','setRevisionData','connection','plugins','data','_revisionTracker','187228pTXBPb','diffData','isPremiumPlugin','isOfficialPlugin','length','remove','sessionId','3595620hnvvjE','reInit','193878JbtEuI','startsWith','from','collaboration.channelId','15YJNaWE','message','50582ETyhpi','_revisionDataBuilder','affectsData','400','RevisionTracker','size','change:_isPendingUpdate','currentRevision','destroy','repository','once','7489764qCKetY','adapter','add','addRevisionData','_bufferedUpdates','RevisionHistoryService','_oldOffset','_fetchMissingUsers','requires','11aFOOEr','_preventResendingRevisionData','reconnect','code','_handleRevisionsUpdate','_createCurrentRevision','isBundleUploaded','fromVersion','catch','_startingVersion','_bufferUpdate','3861345vatZUm','buildRevisionData','_getLatestVersion','config','revisionsUpdated','state','listenTo','pluginName','reverse','change:_isConnected','isEmptyCurrent','_handleReconnectionError','RevisionHistory','serverHistory','isEnabled','type','baseVersion','toVersion','cloudServices.bundleVersion','getRevisions','_isPendingUpdate','getUser','wrongRequestId','get','_lastRequestId','marker','authorsIds','_getLatestVersionFromServerOperations','_update'];_0x1d72=function(){return _0x49792b;};return _0x1d72();}
|