@ckeditor/ckeditor5-real-time-collaboration 47.0.0-alpha.9 → 47.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "47.0.0-alpha.9",
3
+ "version": "47.0.0",
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.1",
50
- "@ckeditor/ckeditor5-cloud-services": "47.0.0-alpha.9",
51
- "@ckeditor/ckeditor5-comments": "47.0.0-alpha.9",
52
- "@ckeditor/ckeditor5-core": "47.0.0-alpha.9",
53
- "@ckeditor/ckeditor5-editor-multi-root": "47.0.0-alpha.9",
54
- "@ckeditor/ckeditor5-engine": "47.0.0-alpha.9",
55
- "@ckeditor/ckeditor5-operations-compressor": "47.0.0-alpha.9",
56
- "@ckeditor/ckeditor5-revision-history": "47.0.0-alpha.9",
57
- "@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.9",
58
- "@ckeditor/ckeditor5-track-changes": "47.0.0-alpha.9",
59
- "@ckeditor/ckeditor5-ui": "47.0.0-alpha.9",
60
- "@ckeditor/ckeditor5-utils": "47.0.0-alpha.9",
61
- "ckeditor5": "47.0.0-alpha.9",
62
- "ckeditor5-collaboration": "47.0.0-alpha.9",
50
+ "@ckeditor/ckeditor5-cloud-services": "47.0.0",
51
+ "@ckeditor/ckeditor5-comments": "47.0.0",
52
+ "@ckeditor/ckeditor5-core": "47.0.0",
53
+ "@ckeditor/ckeditor5-editor-multi-root": "47.0.0",
54
+ "@ckeditor/ckeditor5-engine": "47.0.0",
55
+ "@ckeditor/ckeditor5-operations-compressor": "47.0.0",
56
+ "@ckeditor/ckeditor5-revision-history": "47.0.0",
57
+ "@ckeditor/ckeditor5-theme-lark": "47.0.0",
58
+ "@ckeditor/ckeditor5-track-changes": "47.0.0",
59
+ "@ckeditor/ckeditor5-ui": "47.0.0",
60
+ "@ckeditor/ckeditor5-utils": "47.0.0",
61
+ "ckeditor5": "47.0.0",
62
+ "ckeditor5-collaboration": "47.0.0",
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
- const _0x567e16=_0x4859;(function(_0x3b55ea,_0x33c37a){const _0x285ed1=_0x4859,_0x19fd82=_0x3b55ea();while(!![]){try{const _0x4ab21a=parseInt(_0x285ed1(0x1ee))/0x1*(-parseInt(_0x285ed1(0x1d7))/0x2)+-parseInt(_0x285ed1(0x1db))/0x3+-parseInt(_0x285ed1(0x1e9))/0x4*(parseInt(_0x285ed1(0x1df))/0x5)+parseInt(_0x285ed1(0x1e4))/0x6+parseInt(_0x285ed1(0x1e3))/0x7*(-parseInt(_0x285ed1(0x1e7))/0x8)+-parseInt(_0x285ed1(0x1ea))/0x9+parseInt(_0x285ed1(0x1de))/0xa;if(_0x4ab21a===_0x33c37a)break;else _0x19fd82['push'](_0x19fd82['shift']());}catch(_0x2241d4){_0x19fd82['push'](_0x19fd82['shift']());}}}(_0x5ca3,0x79cc7));import{ListItemView as _0x23045e}from'ckeditor5/src/ui.js';import{UserView as _0x1d500e}from'ckeditor5-collaboration/src/collaboration-core.js';export class PresenceDropdownListItemView extends _0x23045e{[_0x567e16(0x1e1)];constructor(_0x2f74a4,_0x1be165,_0x1927db){const _0x28517f=_0x567e16;super(_0x2f74a4);const _0x338d81=this[_0x28517f(0x1ec)];this[_0x28517f(0x1e1)]=new _0x1d500e(_0x2f74a4,_0x1be165);const _0x11da9d={'tag':'li','attributes':{'class':['ck',_0x28517f(0x1e5)],'tabindex':-0x1,'role':_0x28517f(0x1dd),'aria-label':_0x1be165[_0x28517f(0x1e8)]},'children':[this[_0x28517f(0x1e1)],{'tag':_0x28517f(0x1d6),'attributes':{'class':['ck',_0x28517f(0x1d9)]},'children':[{'text':_0x1be165[_0x28517f(0x1e8)]}]},{'tag':_0x28517f(0x1d6),'attributes':{'class':['ck',_0x28517f(0x1e0),_0x1be165[_0x28517f(0x1e2)][_0x28517f(0x1eb)]()],'aria-hidden':_0x28517f(0x1dc)}}]};_0x1927db&&(_0x11da9d[_0x28517f(0x1f0)]=_0x28517f(0x1d8),_0x11da9d['on']={'click':_0x338d81['to'](()=>this[_0x28517f(0x1ef)](_0x28517f(0x1da)))}),this[_0x28517f(0x1d5)](_0x11da9d);}[_0x567e16(0x1e6)](){const _0x59b579=_0x567e16;this[_0x59b579(0x1ed)][_0x59b579(0x1e6)]();}}function _0x4859(_0x3226e4,_0x5b4489){const _0x5ca385=_0x5ca3();return _0x4859=function(_0x48595c,_0x39c6d9){_0x48595c=_0x48595c-0x1d5;let _0x19d4f9=_0x5ca385[_0x48595c];return _0x19d4f9;},_0x4859(_0x3226e4,_0x5b4489);}function _0x5ca3(){const _0xda2692=['presentation','24642520qTOhoG','877465iwMUFj','ck-presence-list__marker','userView','color','4113739FQqDVO','1394538jfqxxS','ck-presence-list__dropdown-list-item','focus','8tuIPvZ','name','8ZuGTow','2462094ZGgiBr','getBackgroundColorClass','bindTemplate','element','1HnWtQd','fire','tag','setTemplate','span','1601534NvvYEg','button','ck-user__full-name','execute','554376ddlRhx','true'];_0x5ca3=function(){return _0xda2692;};return _0x5ca3();}
23
+ function _0x152a(){const _0x4f0c24=['16kaUvYJ','1689429UfkYSB','name','2kLZlqZ','30bCGpkP','12250leXGVS','tag','getBackgroundColorClass','747150IjVYTU','bindTemplate','presentation','focus','color','51337bzahFQ','245711MLfkej','span','element','button','fire','true','2676iBhwAn','userView','setTemplate','1079950UTTGoU','1659915yniwHP','ck-presence-list__marker','ck-user__full-name','ck-presence-list__dropdown-list-item','execute','3232wXMVRx'];_0x152a=function(){return _0x4f0c24;};return _0x152a();}const _0x182935=_0x43c5;(function(_0x24d22e,_0x433a24){const _0x290a0c=_0x43c5,_0x1ca472=_0x24d22e();while(!![]){try{const _0x42089d=-parseInt(_0x290a0c(0xaa))/0x1*(-parseInt(_0x290a0c(0xbd))/0x2)+-parseInt(_0x290a0c(0xbb))/0x3+parseInt(_0x290a0c(0xba))/0x4*(parseInt(_0x290a0c(0xb3))/0x5)+-parseInt(_0x290a0c(0xa4))/0x6+parseInt(_0x290a0c(0xa1))/0x7*(parseInt(_0x290a0c(0xb9))/0x8)+-parseInt(_0x290a0c(0xb4))/0x9*(-parseInt(_0x290a0c(0xbe))/0xa)+parseInt(_0x290a0c(0xa9))/0xb*(-parseInt(_0x290a0c(0xb0))/0xc);if(_0x42089d===_0x433a24)break;else _0x1ca472['push'](_0x1ca472['shift']());}catch(_0x14d775){_0x1ca472['push'](_0x1ca472['shift']());}}}(_0x152a,0x9ca1f));function _0x43c5(_0xcce1f9,_0x4bbf07){const _0x152a94=_0x152a();return _0x43c5=function(_0x43c584,_0x283e5d){_0x43c584=_0x43c584-0xa1;let _0x5e83c9=_0x152a94[_0x43c584];return _0x5e83c9;},_0x43c5(_0xcce1f9,_0x4bbf07);}import{ListItemView as _0x27e3a7}from'ckeditor5/src/ui.js';import{UserView as _0x1d5fbd}from'ckeditor5-collaboration/src/collaboration-core.js';export class PresenceDropdownListItemView extends _0x27e3a7{[_0x182935(0xb1)];constructor(_0x4bb2cc,_0x333f5a,_0x40809d){const _0x19583a=_0x182935;super(_0x4bb2cc);const _0xb3bbab=this[_0x19583a(0xa5)];this[_0x19583a(0xb1)]=new _0x1d5fbd(_0x4bb2cc,_0x333f5a);const _0x284c40={'tag':'li','attributes':{'class':['ck',_0x19583a(0xb7)],'tabindex':-0x1,'role':_0x19583a(0xa6),'aria-label':_0x333f5a[_0x19583a(0xbc)]},'children':[this[_0x19583a(0xb1)],{'tag':_0x19583a(0xab),'attributes':{'class':['ck',_0x19583a(0xb6)]},'children':[{'text':_0x333f5a[_0x19583a(0xbc)]}]},{'tag':_0x19583a(0xab),'attributes':{'class':['ck',_0x19583a(0xb5),_0x333f5a[_0x19583a(0xa8)][_0x19583a(0xa3)]()],'aria-hidden':_0x19583a(0xaf)}}]};_0x40809d&&(_0x284c40[_0x19583a(0xa2)]=_0x19583a(0xad),_0x284c40['on']={'click':_0xb3bbab['to'](()=>this[_0x19583a(0xae)](_0x19583a(0xb8)))}),this[_0x19583a(0xb2)](_0x284c40);}[_0x182935(0xa7)](){const _0x5d807e=_0x182935;this[_0x5d807e(0xac)][_0x5d807e(0xa7)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x140b07=_0xcbcc;function _0xcbcc(_0x2a5130,_0x13809){const _0x547c89=_0x547c();return _0xcbcc=function(_0xcbcce2,_0x55568a){_0xcbcce2=_0xcbcce2-0x18c;let _0x30d56e=_0x547c89[_0xcbcce2];return _0x30d56e;},_0xcbcc(_0x2a5130,_0x13809);}(function(_0x503656,_0x460a20){const _0x3b5746=_0xcbcc,_0x4429d7=_0x503656();while(!![]){try{const _0x5596d0=parseInt(_0x3b5746(0x190))/0x1*(parseInt(_0x3b5746(0x1ac))/0x2)+parseInt(_0x3b5746(0x191))/0x3+parseInt(_0x3b5746(0x1a2))/0x4+-parseInt(_0x3b5746(0x19e))/0x5+-parseInt(_0x3b5746(0x192))/0x6*(parseInt(_0x3b5746(0x198))/0x7)+-parseInt(_0x3b5746(0x1aa))/0x8*(-parseInt(_0x3b5746(0x194))/0x9)+-parseInt(_0x3b5746(0x1a9))/0xa;if(_0x5596d0===_0x460a20)break;else _0x4429d7['push'](_0x4429d7['shift']());}catch(_0x84f262){_0x4429d7['push'](_0x4429d7['shift']());}}}(_0x547c,0xedab2));import{LabelView as _0x10d46a,View as _0xe6e65e}from'ckeditor5/src/ui.js';import{UserView as _0x4ff378}from'ckeditor5-collaboration/src/collaboration-core.js';export class PresenceInlineListItemView extends _0xe6e65e{[_0x140b07(0x197)];[_0x140b07(0x1ad)];constructor(_0x1d6550,_0x4a331c,_0x59a78d){const _0x429871=_0x140b07;super(_0x1d6550);const _0x18158e=this[_0x429871(0x18d)];this[_0x429871(0x199)](_0x429871(0x19f),!0x1),this[_0x429871(0x199)](_0x429871(0x1a6),!0x0),this[_0x429871(0x199)](_0x429871(0x19b),''),this[_0x429871(0x197)]=new _0x4ff378(_0x1d6550,_0x4a331c),this[_0x429871(0x1ad)]=new nt(_0x1d6550,_0x4a331c);const _0x2bd9bf=new _0x10d46a(_0x1d6550);_0x2bd9bf[_0x429871(0x1a0)][_0x429871(0x1a7)]=_0x429871(0x19d),_0x2bd9bf[_0x429871(0x1ab)]=_0x4a331c[_0x429871(0x1a8)];const _0x3af9cc={'tag':_0x429871(0x196),'attributes':{'class':['ck',_0x429871(0x195)],'role':_0x429871(0x18c),'tabindex':_0x18158e['to'](_0x429871(0x19f),_0xe2affd=>!!_0xe2affd&&0x0),'aria-labelledby':_0x2bd9bf['id'],'data-cke-tooltip-text':this[_0x429871(0x197)][_0x429871(0x1a8)],'data-cke-tooltip-position':_0x18158e['to'](_0x429871(0x19b)),'data-cke-tooltip-disabled':_0x18158e['to'](_0x429871(0x1a6),_0x6cc94e=>!_0x6cc94e),'data-cke-tooltip-class':_0x429871(0x1a5)},'children':[this[_0x429871(0x197)],this[_0x429871(0x1ad)],_0x2bd9bf]};_0x59a78d&&(_0x3af9cc[_0x429871(0x1a7)]=_0x429871(0x19a),_0x3af9cc['on']={'click':_0x18158e['to'](()=>this[_0x429871(0x18f)](_0x429871(0x1a4)))}),this[_0x429871(0x1a1)](_0x3af9cc);}}class nt extends _0xe6e65e{constructor(_0x4a6b09,_0x3ea375){const _0x545223=_0x140b07;super(_0x4a6b09),this[_0x545223(0x1a1)]({'tag':_0x545223(0x19d),'attributes':{'class':['ck',_0x545223(0x1a3),_0x3ea375[_0x545223(0x18e)][_0x545223(0x19c)]()],'aria-hidden':_0x545223(0x193)}});}}function _0x547c(){const _0x366d55=['isFocusable','template','setTemplate','5882740rhQBCL','ck-presence-list__marker','execute','ck-presence-list__list-item__tooltip','hasTooltip','tag','name','17184960OYnRss','8mfXObC','text','3686168SjYRSQ','markerView','listitem','bindTemplate','color','fire','1ZtRBCq','104460quoebX','24fvUcsA','true','6688557XgiPQS','ck-presence-list__list-item','div','userView','2197951yWIRcE','set','button','tooltipPosition','getBackgroundColorClass','span','719020vimytn'];_0x547c=function(){return _0x366d55;};return _0x547c();}
23
+ function _0x42d2(_0x1b6e41,_0x420291){const _0x170252=_0x1702();return _0x42d2=function(_0x42d23f,_0x3de64a){_0x42d23f=_0x42d23f-0x1a1;let _0x5108af=_0x170252[_0x42d23f];return _0x5108af;},_0x42d2(_0x1b6e41,_0x420291);}const _0x219a33=_0x42d2;(function(_0x35d93b,_0x1f9e40){const _0x2878ed=_0x42d2,_0xe670ec=_0x35d93b();while(!![]){try{const _0x564668=parseInt(_0x2878ed(0x1a8))/0x1+-parseInt(_0x2878ed(0x1b0))/0x2+-parseInt(_0x2878ed(0x1a5))/0x3+parseInt(_0x2878ed(0x1b5))/0x4+parseInt(_0x2878ed(0x1b1))/0x5+parseInt(_0x2878ed(0x1c0))/0x6+parseInt(_0x2878ed(0x1ab))/0x7*(-parseInt(_0x2878ed(0x1a2))/0x8);if(_0x564668===_0x1f9e40)break;else _0xe670ec['push'](_0xe670ec['shift']());}catch(_0x3eaf2f){_0xe670ec['push'](_0xe670ec['shift']());}}}(_0x1702,0xda154));function _0x1702(){const _0x10d55c=['bindTemplate','template','execute','tooltipPosition','4578024OZYuZr','userView','23391160KMZcXv','fire','ck-presence-list__list-item','2449881VQGgJc','setTemplate','listitem','1736142ABEmSS','isFocusable','button','7syyVis','set','color','name','hasTooltip','536880LDZdzu','5400620ZzKDdO','ck-presence-list__marker','span','text','5291840AhYEKI','true','getBackgroundColorClass','tag','div','ck-presence-list__list-item__tooltip','markerView'];_0x1702=function(){return _0x10d55c;};return _0x1702();}import{LabelView as _0x78a9f9,View as _0x2c10f2}from'ckeditor5/src/ui.js';import{UserView as _0x2f6a79}from'ckeditor5-collaboration/src/collaboration-core.js';export class PresenceInlineListItemView extends _0x2c10f2{[_0x219a33(0x1a1)];[_0x219a33(0x1bb)];constructor(_0x1321c6,_0x1c5bab,_0xcd2495){const _0x224ef0=_0x219a33;super(_0x1321c6);const _0x3bf6a0=this[_0x224ef0(0x1bc)];this[_0x224ef0(0x1ac)](_0x224ef0(0x1a9),!0x1),this[_0x224ef0(0x1ac)](_0x224ef0(0x1af),!0x0),this[_0x224ef0(0x1ac)](_0x224ef0(0x1bf),''),this[_0x224ef0(0x1a1)]=new _0x2f6a79(_0x1321c6,_0x1c5bab),this[_0x224ef0(0x1bb)]=new lt(_0x1321c6,_0x1c5bab);const _0x4873a3=new _0x78a9f9(_0x1321c6);_0x4873a3[_0x224ef0(0x1bd)][_0x224ef0(0x1b8)]=_0x224ef0(0x1b3),_0x4873a3[_0x224ef0(0x1b4)]=_0x1c5bab[_0x224ef0(0x1ae)];const _0x2fe0a5={'tag':_0x224ef0(0x1b9),'attributes':{'class':['ck',_0x224ef0(0x1a4)],'role':_0x224ef0(0x1a7),'tabindex':_0x3bf6a0['to'](_0x224ef0(0x1a9),_0x3e888b=>!!_0x3e888b&&0x0),'aria-labelledby':_0x4873a3['id'],'data-cke-tooltip-text':this[_0x224ef0(0x1a1)][_0x224ef0(0x1ae)],'data-cke-tooltip-position':_0x3bf6a0['to'](_0x224ef0(0x1bf)),'data-cke-tooltip-disabled':_0x3bf6a0['to'](_0x224ef0(0x1af),_0x540bfa=>!_0x540bfa),'data-cke-tooltip-class':_0x224ef0(0x1ba)},'children':[this[_0x224ef0(0x1a1)],this[_0x224ef0(0x1bb)],_0x4873a3]};_0xcd2495&&(_0x2fe0a5[_0x224ef0(0x1b8)]=_0x224ef0(0x1aa),_0x2fe0a5['on']={'click':_0x3bf6a0['to'](()=>this[_0x224ef0(0x1a3)](_0x224ef0(0x1be)))}),this[_0x224ef0(0x1a6)](_0x2fe0a5);}}class lt extends _0x2c10f2{constructor(_0x11c7ee,_0x41ac18){const _0x5ed387=_0x219a33;super(_0x11c7ee),this[_0x5ed387(0x1a6)]({'tag':_0x5ed387(0x1b3),'attributes':{'class':['ck',_0x5ed387(0x1b2),_0x41ac18[_0x5ed387(0x1ad)][_0x5ed387(0x1b7)]()],'aria-hidden':_0x5ed387(0x1b6)}});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e85dd=_0x3a79;(function(_0x4d6181,_0xba58c4){const _0x22742a=_0x3a79,_0x1bffbd=_0x4d6181();while(!![]){try{const _0xedb94a=-parseInt(_0x22742a(0x14b))/0x1+parseInt(_0x22742a(0x11f))/0x2*(parseInt(_0x22742a(0x140))/0x3)+parseInt(_0x22742a(0x166))/0x4+-parseInt(_0x22742a(0x131))/0x5+-parseInt(_0x22742a(0x15b))/0x6*(parseInt(_0x22742a(0x145))/0x7)+-parseInt(_0x22742a(0x143))/0x8+parseInt(_0x22742a(0x129))/0x9;if(_0xedb94a===_0xba58c4)break;else _0x1bffbd['push'](_0x1bffbd['shift']());}catch(_0xac53f6){_0x1bffbd['push'](_0x1bffbd['shift']());}}}(_0x34fb,0xb0a77));import{Context as _0x2e2dee,ContextPlugin as _0x100d5b}from'ckeditor5/src/core.js';import{CKEditorError as _0x3b19a0}from'ckeditor5/src/utils.js';import{Users as _0x3c62d8}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x553710,User as _0x456c0d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5145dc}from'../realtimecollaborativeediting/websocketgateway.js';function _0x3a79(_0x115ba4,_0x28711e){const _0x34fb65=_0x34fb();return _0x3a79=function(_0x3a794b,_0x2fd631){_0x3a794b=_0x3a794b-0x11a;let _0x223c63=_0x34fb65[_0x3a794b];return _0x223c63;},_0x3a79(_0x115ba4,_0x28711e);}import{Sessions as _0x581d11}from'../realtimecollaborativeediting/sessions.js';export class CloudServicesCommentsAdapter extends _0x100d5b{static [_0x1e85dd(0x132)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x553710)());[_0x1e85dd(0x155)];static get[_0x1e85dd(0x14d)](){const _0x4520d6=_0x1e85dd;return[_0x5145dc,_0x4520d6(0x13c),_0x581d11,_0x3c62d8];}static get[_0x1e85dd(0x157)](){const _0x465f5e=_0x1e85dd;return _0x465f5e(0x12a);}static get[_0x1e85dd(0x169)](){return!0x0;}static get[_0x1e85dd(0x158)](){return!0x0;}constructor(_0x2622cb){const _0x29dfbe=_0x1e85dd;super(_0x2622cb),this[_0x29dfbe(0x155)]=new Map();}async[_0x1e85dd(0x176)](){const _0x1fe44a=_0x1e85dd,_0x136207=this[_0x1fe44a(0x175)],_0xfe84b=_0x136207[_0x1fe44a(0x150)][_0x1fe44a(0x13f)](_0x1fe44a(0x13c));if(_0x136207[_0x1fe44a(0x150)][_0x1fe44a(0x13f)](_0x5145dc)[_0x1fe44a(0x17d)](this),_0xfe84b[_0x1fe44a(0x123)]={'addCommentThread':async({channelId:_0x30e548,threadId:_0x3161eb,comments:_0x423f13,resolvedAt:_0x4a7375,resolvedBy:_0x434edc,context:_0x56db53,attributes:_0x5d4c64})=>{const _0x282ec8=_0x1fe44a,_0x1fedb2=await this[_0x282ec8(0x11b)](_0x30e548)[_0x282ec8(0x12f)]({'commentThreadId':_0x3161eb,'comments':_0x423f13[_0x282ec8(0x154)](_0x5b4e73=>function(_0x257656,_0x4cf46a,_0x46d727){const _0x4b4d6d=_0x282ec8;return{'commentThreadId':_0x46d727,'commentId':_0x257656[_0x4b4d6d(0x164)],'userId':_0x257656[_0x4b4d6d(0x121)],'content':_0x257656[_0x4b4d6d(0x122)],'documentId':_0x4cf46a,'createdAt':_0x257656[_0x4b4d6d(0x136)],'attributes':_0x257656[_0x4b4d6d(0x11a)]||{}};}(_0x5b4e73,_0x30e548,_0x3161eb)),'resolvedAt':_0x4a7375,'resolvedBy':_0x434edc,'context':_0x56db53,'attributes':_0x5d4c64})[_0x282ec8(0x11e)](tt);return{'threadId':_0x1fedb2[_0x282ec8(0x15a)],'comments':_0x1fedb2[_0x282ec8(0x151)]};},'getCommentThread':async({channelId:_0x464eb8,threadId:_0x47bcdf})=>{const _0x12b9cf=_0x1fe44a,_0x23e50c=await this[_0x12b9cf(0x11b)](_0x464eb8)[_0x12b9cf(0x172)](_0x47bcdf)[_0x12b9cf(0x11e)](Z)[_0x12b9cf(0x11e)](tt);return _0x23e50c?_0x23e50c[_0x12b9cf(0x139)]?null:(await this[_0x12b9cf(0x15f)]([_0x23e50c]),{'threadId':_0x23e50c[_0x12b9cf(0x15a)],'comments':_0x23e50c[_0x12b9cf(0x151)][_0x12b9cf(0x154)](et),'context':_0x23e50c[_0x12b9cf(0x175)],'resolvedAt':_0x23e50c[_0x12b9cf(0x171)],'resolvedBy':_0x23e50c[_0x12b9cf(0x17b)],'attributes':_0x23e50c[_0x12b9cf(0x11a)]||{}}):null;},'updateCommentThread':async({channelId:_0x432aea,threadId:_0x5bf73f,context:_0x4083a4,unlinkedAt:_0x1f03f2,attributes:_0x56e40c})=>this[_0x1fe44a(0x11b)](_0x432aea)[_0x1fe44a(0x126)]({'commentThreadId':_0x5bf73f,'context':_0x4083a4,'attributes':_0x56e40c,'unlinkedAt':_0x1f03f2})[_0x1fe44a(0x11e)](Z)[_0x1fe44a(0x11e)](tt),'resolveCommentThread':async({channelId:_0x55f5ec,threadId:_0x4a6f40})=>{const _0x4774ba=_0x1fe44a,_0x252144=await this[_0x4774ba(0x11b)](_0x55f5ec)[_0x4774ba(0x134)](_0x4a6f40)[_0x4774ba(0x11e)](Z)[_0x4774ba(0x11e)](tt);return{'threadId':_0x252144[_0x4774ba(0x15a)],'resolvedAt':_0x252144[_0x4774ba(0x171)],'resolvedBy':_0x252144[_0x4774ba(0x17b)]};},'reopenCommentThread':async({channelId:_0x4cb944,threadId:_0x2d1852})=>this[_0x1fe44a(0x11b)](_0x4cb944)[_0x1fe44a(0x15d)](_0x2d1852)[_0x1fe44a(0x11e)](Z)[_0x1fe44a(0x11e)](tt),'removeCommentThread':({channelId:_0x32ecd7,threadId:_0x4082fd})=>this[_0x1fe44a(0x11b)](_0x32ecd7)[_0x1fe44a(0x14f)](_0x4082fd)[_0x1fe44a(0x11e)](Z)[_0x1fe44a(0x11e)](tt),'addComment':({channelId:_0x422559,threadId:_0x1e5095,commentId:_0x42e956,content:_0x1b2b4a,attributes:_0x2a6d5a})=>this[_0x1fe44a(0x11b)](_0x422559)[_0x1fe44a(0x163)](_0x1e5095,_0x42e956,_0x1b2b4a,_0x2a6d5a)[_0x1fe44a(0x11e)](tt),'updateComment':({channelId:_0x187599,threadId:_0x26ac9b,commentId:_0x36cbe4,content:_0x429cfc,attributes:_0x5cf6b3})=>this[_0x1fe44a(0x11b)](_0x187599)[_0x1fe44a(0x13e)](_0x26ac9b,_0x36cbe4,_0x429cfc,_0x5cf6b3)[_0x1fe44a(0x11e)](Z)[_0x1fe44a(0x11e)](tt),'removeComment':({channelId:_0x2b88af,threadId:_0x1451fb,commentId:_0x47edde})=>this[_0x1fe44a(0x11b)](_0x2b88af)[_0x1fe44a(0x177)](_0x1451fb,_0x47edde)[_0x1fe44a(0x11e)](Z)[_0x1fe44a(0x11e)](tt)},_0x136207 instanceof _0x2e2dee){const _0x53cc11=_0x136207[_0x1fe44a(0x17c)][_0x1fe44a(0x13f)](_0x1fe44a(0x120)),_0x16386d=_0x136207[_0x1fe44a(0x150)][_0x1fe44a(0x13f)](_0x581d11);await this[_0x1fe44a(0x174)](_0x53cc11);const _0x4287a7=await this[_0x1fe44a(0x155)][_0x1fe44a(0x13f)](_0x53cc11)[_0x1fe44a(0x17a)]();this[_0x1fe44a(0x156)](_0x16386d,_0x1fe44a(0x162)+_0x53cc11,(_0x437da0,{session:_0x5e57dc})=>{const _0x238858=_0x1fe44a;_0x5e57dc['id']===_0x16386d[_0x238858(0x16e)]&&(_0x437da0[_0x238858(0x147)](),this[_0x238858(0x175)][_0x238858(0x150)][_0x238858(0x13f)](_0x238858(0x127))[_0x238858(0x142)](_0x5e57dc[_0x238858(0x12d)],_0x53cc11));}),_0x16386d[_0x1fe44a(0x16d)](_0x53cc11,_0x4287a7);}}async[_0x1e85dd(0x174)](_0x1df836){const _0x304ab2=_0x1e85dd;if(this[_0x304ab2(0x155)][_0x304ab2(0x15c)](_0x1df836))throw new _0x3b19a0(_0x304ab2(0x149),null,{'channelId':_0x1df836});const _0x5410ba=this[_0x304ab2(0x175)][_0x304ab2(0x150)][_0x304ab2(0x13f)](_0x304ab2(0x13c)),_0xd2cc7=new CloudServicesCommentsAdapter[(_0x304ab2(0x132))](_0x1df836);this[_0x304ab2(0x155)][_0x304ab2(0x153)](_0x1df836,_0xd2cc7),this[_0x304ab2(0x156)](_0xd2cc7,_0x304ab2(0x13b),(_0x2c19b7,_0x518a15)=>{const _0x283a66=_0x304ab2,{commentThreadId:_0x22f265,documentId:_0x4db9de,context:_0x448464,attributes:_0x5da7e3,resolvedAt:_0x369da3,resolvedBy:_0x1bfe68,comments:_0x20752b}=_0x518a15;_0x5410ba[_0x283a66(0x172)](_0x22f265)||_0x5410ba[_0x283a66(0x12f)]({'threadId':_0x22f265,'channelId':_0x4db9de,'comments':_0x20752b?_0x20752b[_0x283a66(0x154)](et):[],'context':_0x448464,'attributes':_0x5da7e3,'resolvedAt':_0x369da3,'resolvedBy':_0x1bfe68,'isFromAdapter':!0x0});}),this[_0x304ab2(0x156)](_0xd2cc7,_0x304ab2(0x168),(_0x4eeeed,{commentThreadId:_0xb83bcc,documentId:_0x33df01,context:_0x2fd5b3,unlinkedAt:_0x455a12,attributes:_0x408a0f})=>{const _0x2823b6=_0x304ab2;_0x5410ba[_0x2823b6(0x172)](_0xb83bcc)&&_0x5410ba[_0x2823b6(0x126)]({'threadId':_0xb83bcc,'channelId':_0x33df01,'context':_0x2fd5b3,'unlinkedAt':_0x455a12,'attributes':_0x408a0f,'isFromAdapter':!0x0});}),this[_0x304ab2(0x156)](_0xd2cc7,_0x304ab2(0x170),(_0x43027e,{commentThreadId:_0x1c2ea8,resolvedBy:_0x518352,resolvedAt:_0x23931d})=>{const _0x389842=_0x304ab2,_0x54dff1=_0x5410ba[_0x389842(0x172)](_0x1c2ea8);_0x54dff1&&_0x54dff1[_0x389842(0x152)]({'resolvedBy':_0x518352,'resolvedAt':_0x23931d,'isFromAdapter':!0x0});}),this[_0x304ab2(0x156)](_0xd2cc7,_0x304ab2(0x178),(_0x2de898,{commentThreadId:_0x73468})=>{const _0x1b59dd=_0x304ab2,_0x495e89=_0x5410ba[_0x1b59dd(0x172)](_0x73468);_0x495e89&&_0x495e89[_0x1b59dd(0x15e)]({'isFromAdapter':!0x0});}),this[_0x304ab2(0x156)](_0xd2cc7,_0x304ab2(0x16c),(_0xb43bea,{commentThreadId:_0x50ac30})=>{const _0x1fe000=_0x304ab2,_0x43ba18=_0x5410ba[_0x1fe000(0x172)](_0x50ac30);_0x43ba18&&_0x43ba18[_0x1fe000(0x173)]({'isFromAdapter':!0x0});}),this[_0x304ab2(0x156)](_0xd2cc7,_0x304ab2(0x17e),(_0x3846fb,_0x2b1c89)=>{const _0x190ddc=_0x304ab2,_0x564b46=_0x2b1c89[_0x190ddc(0x15a)],_0x58d149=_0x5410ba[_0x190ddc(0x172)](_0x564b46);_0x58d149&&_0x58d149[_0x190ddc(0x163)]({...et(_0x2b1c89),'isFromAdapter':!0x0});}),this[_0x304ab2(0x156)](_0xd2cc7,_0x304ab2(0x161),(_0x291085,{commentThreadId:_0x324608,commentId:_0x3e3825,content:_0x3f0412,attributes:_0x203ff2})=>{const _0x239ed3=_0x304ab2,_0x40263e=_0x5410ba[_0x239ed3(0x172)](_0x324608);if(_0x40263e){const _0x13f474=_0x40263e[_0x239ed3(0x135)](_0x3e3825);_0x13f474&&_0x13f474[_0x239ed3(0x16b)]({'content':_0x3f0412,'attributes':_0x203ff2,'isFromAdapter':!0x0});}}),this[_0x304ab2(0x156)](_0xd2cc7,_0x304ab2(0x12b),(_0x469984,{commentThreadId:_0x566efb,commentId:_0x5b7e66})=>{const _0xead5c=_0x304ab2,_0x101101=_0x5410ba[_0xead5c(0x172)](_0x566efb);if(_0x101101){const _0x2fa0bb=_0x101101[_0xead5c(0x135)](_0x5b7e66);_0x2fa0bb&&_0x2fa0bb[_0xead5c(0x173)]({'isFromAdapter':!0x0});}}),await this[_0x304ab2(0x160)](_0x1df836);}[_0x1e85dd(0x144)](){const _0x1dad5f=_0x1e85dd;if(this[_0x1dad5f(0x175)]instanceof _0x2e2dee){const _0x18fc4b=this[_0x1dad5f(0x175)][_0x1dad5f(0x17c)][_0x1dad5f(0x13f)](_0x1dad5f(0x120));this[_0x1dad5f(0x137)](_0x18fc4b);}}[_0x1e85dd(0x137)](_0x4df582){const _0x1c905e=_0x1e85dd;if(!this[_0x1c905e(0x155)][_0x1c905e(0x15c)](_0x4df582))throw new _0x3b19a0(_0x1c905e(0x16f),null,{'channelId':_0x4df582});this[_0x1c905e(0x11b)](_0x4df582)[_0x1c905e(0x16a)](),this[_0x1c905e(0x155)][_0x1c905e(0x12e)](_0x4df582);}async[_0x1e85dd(0x14e)](){const _0x2c101d=_0x1e85dd;for(const _0x1bacea of this[_0x2c101d(0x155)][_0x2c101d(0x146)]())await this[_0x2c101d(0x160)](_0x1bacea);if(this[_0x2c101d(0x175)]instanceof _0x2e2dee){const _0x1d6be7=this[_0x2c101d(0x175)][_0x2c101d(0x17c)][_0x2c101d(0x13f)](_0x2c101d(0x120)),_0x3dfe95=this[_0x2c101d(0x175)][_0x2c101d(0x150)][_0x2c101d(0x13f)](_0x581d11);_0x3dfe95[_0x2c101d(0x11c)](_0x1d6be7);const _0x14cc4a=await this[_0x2c101d(0x155)][_0x2c101d(0x13f)](_0x1d6be7)[_0x2c101d(0x17a)]();_0x3dfe95[_0x2c101d(0x16d)](_0x1d6be7,_0x14cc4a);}}async[_0x1e85dd(0x160)](_0x5b8a4e){const _0x19d0a3=_0x1e85dd,{connection:_0x2372f7}=this[_0x19d0a3(0x175)][_0x19d0a3(0x150)][_0x19d0a3(0x13f)](_0x5145dc),_0xebf527=this[_0x19d0a3(0x175)][_0x19d0a3(0x150)][_0x19d0a3(0x13f)](_0x19d0a3(0x13c)),_0x406685=this[_0x19d0a3(0x155)][_0x19d0a3(0x13f)](_0x5b8a4e),_0x3552f4=await _0x406685[_0x19d0a3(0x124)](_0x2372f7);await this[_0x19d0a3(0x15f)](_0x3552f4);const _0x29ae27=new Set(Array[_0x19d0a3(0x148)](_0xebf527[_0x19d0a3(0x179)]({'channelId':_0x5b8a4e}),_0x40cfc6=>_0x40cfc6['id']));for(const _0x9a7cb2 of _0x3552f4)_0x9a7cb2[_0x19d0a3(0x139)]||_0x29ae27[_0x19d0a3(0x12e)](_0x9a7cb2[_0x19d0a3(0x15a)]);for(const _0x361ac0 of _0x29ae27)_0xebf527[_0x19d0a3(0x172)](_0x361ac0)[_0x19d0a3(0x173)]({'isFromAdapter':!0x0});for(const _0x1cbb18 of _0x3552f4){let _0x181d96=_0xebf527[_0x19d0a3(0x172)](_0x1cbb18[_0x19d0a3(0x15a)]);const {commentThreadId:_0x3271b5,context:_0x5cac9f,attributes:_0x2c2593,resolvedBy:_0x3e30de,resolvedAt:_0x2ad1aa,unlinkedAt:_0x187311,deletedAt:_0x20a982}=_0x1cbb18;if(_0x20a982)continue;_0x181d96||(_0x181d96=_0xebf527[_0x19d0a3(0x12f)]({'channelId':_0x5b8a4e,'threadId':_0x3271b5,'context':_0x5cac9f,'attributes':_0x2c2593||{},'resolvedBy':_0x3e30de,'resolvedAt':_0x2ad1aa,'unlinkedAt':_0x187311,'isFromAdapter':!0x0}));const _0x20cd40=new Set(Array[_0x19d0a3(0x148)](_0x181d96[_0x19d0a3(0x151)],_0x5980cd=>_0x5980cd['id']));for(const _0x5b4027 of _0x1cbb18[_0x19d0a3(0x151)])_0x20cd40[_0x19d0a3(0x12e)](_0x5b4027[_0x19d0a3(0x164)]);for(const _0x5440ea of _0x20cd40)_0x181d96[_0x19d0a3(0x135)](_0x5440ea)[_0x19d0a3(0x173)]({'isFromAdapter':!0x0});for(const _0x5c3cf0 of _0x1cbb18[_0x19d0a3(0x151)]){const _0x3cfd57=_0x181d96[_0x19d0a3(0x135)](_0x5c3cf0[_0x19d0a3(0x164)]);_0x3cfd57?_0x3cfd57[_0x19d0a3(0x122)]!==_0x5c3cf0[_0x19d0a3(0x122)]&&_0x3cfd57[_0x19d0a3(0x16b)]({'content':_0x5c3cf0[_0x19d0a3(0x122)],'isFromAdapter':!0x0}):_0x181d96[_0x19d0a3(0x163)](Object[_0x19d0a3(0x13a)](et(_0x5c3cf0),{'isFromAdapter':!0x0}));}}}[_0x1e85dd(0x11b)](_0xa78c22){const _0x554440=_0x1e85dd;if(!this[_0x554440(0x155)][_0x554440(0x15c)](_0xa78c22))throw new _0x3b19a0(_0x554440(0x11d),null,{'channelId':_0xa78c22});return this[_0x554440(0x155)][_0x554440(0x13f)](_0xa78c22);}async[_0x1e85dd(0x15f)](_0x28f106){const _0xebd082=_0x1e85dd,_0x5db8c8=this[_0xebd082(0x175)][_0xebd082(0x150)][_0xebd082(0x13f)](_0x3c62d8),{connection:_0x2ee950}=this[_0xebd082(0x175)][_0xebd082(0x150)][_0xebd082(0x13f)](_0x5145dc),_0x4a05aa=new Set();for(const {resolvedBy:_0x51029d,comments:_0x142097}of _0x28f106){_0x51029d&&!_0x5db8c8[_0xebd082(0x130)](_0x51029d)&&_0x4a05aa[_0xebd082(0x12c)](_0x51029d);for(const {userId:_0x378d3d}of _0x142097)_0x5db8c8[_0xebd082(0x130)](_0x378d3d)||_0x4a05aa[_0xebd082(0x12c)](_0x378d3d);}if(0x0===_0x4a05aa[_0xebd082(0x138)])return;const _0x2f0c17=await _0x456c0d[_0xebd082(0x14a)](_0x2ee950,Array[_0xebd082(0x148)](_0x4a05aa));for(const _0x2cbf95 of _0x2f0c17)_0x5db8c8[_0xebd082(0x130)](_0x2cbf95['id'])||_0x5db8c8[_0xebd082(0x13d)](_0x2cbf95);}}async function Z(_0x3df6fd){const _0x3134d7=_0x1e85dd;if(_0x3134d7(0x165)!==_0x3df6fd[_0x3134d7(0x141)])throw _0x3df6fd;}function tt(_0x24f813){const _0x39fde0=_0x1e85dd;if((_0x3daeb6=_0x24f813)[_0x39fde0(0x128)][_0x39fde0(0x133)](_0x39fde0(0x159))||_0x3daeb6[_0x39fde0(0x128)][_0x39fde0(0x133)](_0x39fde0(0x167))||_0x3daeb6[_0x39fde0(0x128)][_0x39fde0(0x133)](_0x39fde0(0x125)))return new Promise(()=>{});var _0x3daeb6;throw _0x24f813;}function et(_0x265316){const _0x105b52=_0x1e85dd;return{'threadId':_0x265316[_0x105b52(0x15a)],'commentId':_0x265316[_0x105b52(0x164)],'content':_0x265316[_0x105b52(0x122)],'createdAt':_0x265316[_0x105b52(0x136)],'authorId':_0x265316[_0x105b52(0x14c)],'attributes':_0x265316[_0x105b52(0x11a)]||{}};}function _0x34fb(){const _0xdee2f1=['getConnectedSessions','resolvedBy','config','addToReconnectionStack','commentAdded','attributes','_getService','unregister','cloudservicescommentsadapter-service-not-exist','catch','413454huMAbw','collaboration.channelId','authorId','content','adapter','connect','cloud-services-internal-error:\x20Request\x20timeout.','updateCommentThread','Permissions','message','20985507rKHDwf','CloudServicesCommentsAdapter','commentRemoved','add','permissions','delete','addCommentThread','getUser','6315815ulQrxQ','CommentsService','startsWith','resolveCommentThread','getComment','createdAt','_terminateService','size','deletedAt','assign','commentThreadAdded','CommentsRepository','addUser','updateComment','get','15kearbC','code','setPermissions','8689272syjUQz','destroy','7bnESQe','keys','off','from','cloudservicescommentsadapter-connect-already-connected','getMany','258445uNGkyF','userId','requires','reconnect','removeCommentThread','plugins','comments','resolve','set','map','_services','listenTo','pluginName','isPremiumPlugin','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','commentThreadId','2367888acawVE','has','reopenCommentThread','reopen','_fetchMissingUsersForThreads','_connectService','commentUpdated','sessionAdd:','addComment','commentId','404','1442528RqbkNk','cloud-services-internal-error:\x20Not\x20connected.','commentThreadUpdated','isOfficialPlugin','disconnect','update','commentThreadRemoved','register','mySessionId','cloudservicescommentsadapter-disconnect-not-exist','commentThreadResolved','resolvedAt','getCommentThread','remove','_setUpService','context','init','removeComment','commentThreadReopened','getCommentThreads'];_0x34fb=function(){return _0xdee2f1;};return _0x34fb();}
23
+ function _0x5c53(){const _0x5c272e=['removeCommentThread','reopen','getMany','destroy','_fetchMissingUsersForThreads','adapter','code','commentThreadRemoved','_terminateService','createdAt','commentThreadReopened','delete','CloudServicesCommentsAdapter','connect','_connectService','Permissions','cloudservicescommentsadapter-disconnect-not-exist','510UhzsSw','commentThreadUpdated','cloud-services-internal-error:\x20Request\x20timeout.','cloudservicescommentsadapter-service-not-exist','config','keys','commentThreadResolved','listenTo','pluginName','1048FxrWNN','disconnect','isOfficialPlugin','commentUpdated','resolveCommentThread','init','content','permissions','plugins','getConnectedSessions','register','cloudservicescommentsadapter-connect-already-connected','CommentsService','commentThreadAdded','cloud-services-internal-error:\x20Not\x20connected.','75500EnKZtL','remove','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','CommentsRepository','updateCommentThread','get','getComment','resolve','resolvedAt','context','597750yXbUNr','update','has','_setUpService','from','addComment','45038IdgPsT','authorId','mySessionId','_getService','commentId','resolvedBy','comments','map','reopenCommentThread','userId','removeComment','set','_services','addToReconnectionStack','requires','addCommentThread','126duPvYz','assign','commentThreadId','add','startsWith','unregister','1002023yFhOEH','reconnect','catch','message','getCommentThreads','getCommentThread','attributes','404','commentRemoved','isPremiumPlugin','size','582LvWomF','setPermissions','4551952zfOuzQ','sessionAdd:','commentAdded','435510eAIafX','1213FaETFb','off','addUser','collaboration.channelId','deletedAt','updateComment','getUser'];_0x5c53=function(){return _0x5c272e;};return _0x5c53();}const _0x4f98fb=_0x517b;(function(_0x21760e,_0x5c141c){const _0x2c6108=_0x517b,_0x18a8c6=_0x21760e();while(!![]){try{const _0x37a274=-parseInt(_0x2c6108(0xa8))/0x1*(parseInt(_0x2c6108(0xc0))/0x2)+-parseInt(_0x2c6108(0x7b))/0x3+parseInt(_0x2c6108(0xa4))/0x4+parseInt(_0x2c6108(0xd8))/0x5*(parseInt(_0x2c6108(0xa2))/0x6)+-parseInt(_0x2c6108(0x81))/0x7*(parseInt(_0x2c6108(0xc9))/0x8)+-parseInt(_0x2c6108(0x91))/0x9*(parseInt(_0x2c6108(0xa7))/0xa)+parseInt(_0x2c6108(0x97))/0xb;if(_0x37a274===_0x5c141c)break;else _0x18a8c6['push'](_0x18a8c6['shift']());}catch(_0x2a8674){_0x18a8c6['push'](_0x18a8c6['shift']());}}}(_0x5c53,0xb2de8));import{Context as _0x144ab2,ContextPlugin as _0x3a8588}from'ckeditor5/src/core.js';import{CKEditorError as _0x3a3941}from'ckeditor5/src/utils.js';import{Users as _0x5598a2}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x4553b2,User as _0x354364}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x519236}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x485949}from'../realtimecollaborativeediting/sessions.js';export class CloudServicesCommentsAdapter extends _0x3a8588{static [_0x4f98fb(0xd5)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x4553b2)());[_0x4f98fb(0x8d)];static get[_0x4f98fb(0x8f)](){const _0x283263=_0x4f98fb;return[_0x519236,_0x283263(0xdb),_0x485949,_0x5598a2];}static get[_0x4f98fb(0xc8)](){const _0x1f0343=_0x4f98fb;return _0x1f0343(0xbb);}static get[_0x4f98fb(0xcb)](){return!0x0;}static get[_0x4f98fb(0xa0)](){return!0x0;}constructor(_0x11ceab){const _0xa2b3c1=_0x4f98fb;super(_0x11ceab),this[_0xa2b3c1(0x8d)]=new Map();}async[_0x4f98fb(0xce)](){const _0x1d1506=_0x4f98fb,_0x8036cf=this[_0x1d1506(0x7a)],_0x4f4923=_0x8036cf[_0x1d1506(0xd1)][_0x1d1506(0xdd)](_0x1d1506(0xdb));if(_0x8036cf[_0x1d1506(0xd1)][_0x1d1506(0xdd)](_0x519236)[_0x1d1506(0x8e)](this),_0x4f4923[_0x1d1506(0xb4)]={'addCommentThread':async({channelId:_0x332a20,threadId:_0x3f1e9e,comments:_0x39f096,resolvedAt:_0x2b22f8,resolvedBy:_0x270306,context:_0x14b577,attributes:_0x3047b8})=>{const _0x47098b=_0x1d1506,_0x55f174=await this[_0x47098b(0x84)](_0x332a20)[_0x47098b(0x90)]({'commentThreadId':_0x3f1e9e,'comments':_0x39f096[_0x47098b(0x88)](_0x19bc27=>function(_0x1370be,_0xc04893,_0x5c1255){const _0x5b7ded=_0x47098b;return{'commentThreadId':_0x5c1255,'commentId':_0x1370be[_0x5b7ded(0x85)],'userId':_0x1370be[_0x5b7ded(0x82)],'content':_0x1370be[_0x5b7ded(0xcf)],'documentId':_0xc04893,'createdAt':_0x1370be[_0x5b7ded(0xb8)],'attributes':_0x1370be[_0x5b7ded(0x9d)]||{}};}(_0x19bc27,_0x332a20,_0x3f1e9e)),'resolvedAt':_0x2b22f8,'resolvedBy':_0x270306,'context':_0x14b577,'attributes':_0x3047b8})[_0x47098b(0x99)](Y);return{'threadId':_0x55f174[_0x47098b(0x93)],'comments':_0x55f174[_0x47098b(0x87)]};},'getCommentThread':async({channelId:_0x1eb955,threadId:_0x1f9833})=>{const _0x394080=_0x1d1506,_0x487d61=await this[_0x394080(0x84)](_0x1eb955)[_0x394080(0x9c)](_0x1f9833)[_0x394080(0x99)](nt)[_0x394080(0x99)](Y);return _0x487d61?_0x487d61[_0x394080(0xac)]?null:(await this[_0x394080(0xb3)]([_0x487d61]),{'threadId':_0x487d61[_0x394080(0x93)],'comments':_0x487d61[_0x394080(0x87)][_0x394080(0x88)](st),'context':_0x487d61[_0x394080(0x7a)],'resolvedAt':_0x487d61[_0x394080(0x79)],'resolvedBy':_0x487d61[_0x394080(0x86)],'attributes':_0x487d61[_0x394080(0x9d)]||{}}):null;},'updateCommentThread':async({channelId:_0x5b9b42,threadId:_0x525516,context:_0x5dc19e,unlinkedAt:_0x3d6aab,attributes:_0xc4b15f})=>this[_0x1d1506(0x84)](_0x5b9b42)[_0x1d1506(0xdc)]({'commentThreadId':_0x525516,'context':_0x5dc19e,'attributes':_0xc4b15f,'unlinkedAt':_0x3d6aab})[_0x1d1506(0x99)](nt)[_0x1d1506(0x99)](Y),'resolveCommentThread':async({channelId:_0x1b4660,threadId:_0x29843e})=>{const _0x5151b4=_0x1d1506,_0x39a8d7=await this[_0x5151b4(0x84)](_0x1b4660)[_0x5151b4(0xcd)](_0x29843e)[_0x5151b4(0x99)](nt)[_0x5151b4(0x99)](Y);return{'threadId':_0x39a8d7[_0x5151b4(0x93)],'resolvedAt':_0x39a8d7[_0x5151b4(0x79)],'resolvedBy':_0x39a8d7[_0x5151b4(0x86)]};},'reopenCommentThread':async({channelId:_0x2096fa,threadId:_0x171da4})=>this[_0x1d1506(0x84)](_0x2096fa)[_0x1d1506(0x89)](_0x171da4)[_0x1d1506(0x99)](nt)[_0x1d1506(0x99)](Y),'removeCommentThread':({channelId:_0x3ea8ae,threadId:_0x4da414})=>this[_0x1d1506(0x84)](_0x3ea8ae)[_0x1d1506(0xaf)](_0x4da414)[_0x1d1506(0x99)](nt)[_0x1d1506(0x99)](Y),'addComment':({channelId:_0x51c4e9,threadId:_0x24807d,commentId:_0x2581a0,content:_0x563f9d,attributes:_0xe4b9fd})=>this[_0x1d1506(0x84)](_0x51c4e9)[_0x1d1506(0x80)](_0x24807d,_0x2581a0,_0x563f9d,_0xe4b9fd)[_0x1d1506(0x99)](Y),'updateComment':({channelId:_0xbd36b,threadId:_0x2972e1,commentId:_0x1dd4f6,content:_0x2f44a5,attributes:_0x23bf37})=>this[_0x1d1506(0x84)](_0xbd36b)[_0x1d1506(0xad)](_0x2972e1,_0x1dd4f6,_0x2f44a5,_0x23bf37)[_0x1d1506(0x99)](nt)[_0x1d1506(0x99)](Y),'removeComment':({channelId:_0x37050a,threadId:_0x46bc2a,commentId:_0x3fc094})=>this[_0x1d1506(0x84)](_0x37050a)[_0x1d1506(0x8b)](_0x46bc2a,_0x3fc094)[_0x1d1506(0x99)](nt)[_0x1d1506(0x99)](Y)},_0x8036cf instanceof _0x144ab2){const _0x5ea4b8=_0x8036cf[_0x1d1506(0xc4)][_0x1d1506(0xdd)](_0x1d1506(0xab)),_0x1c7649=_0x8036cf[_0x1d1506(0xd1)][_0x1d1506(0xdd)](_0x485949);await this[_0x1d1506(0x7e)](_0x5ea4b8);const _0x529805=await this[_0x1d1506(0x8d)][_0x1d1506(0xdd)](_0x5ea4b8)[_0x1d1506(0xd2)]();this[_0x1d1506(0xc7)](_0x1c7649,_0x1d1506(0xa5)+_0x5ea4b8,(_0x3b3e44,{session:_0x56728f})=>{const _0x5524b4=_0x1d1506;_0x56728f['id']===_0x1c7649[_0x5524b4(0x83)]&&(_0x3b3e44[_0x5524b4(0xa9)](),this[_0x5524b4(0x7a)][_0x5524b4(0xd1)][_0x5524b4(0xdd)](_0x5524b4(0xbe))[_0x5524b4(0xa3)](_0x56728f[_0x5524b4(0xd0)],_0x5ea4b8));}),_0x1c7649[_0x1d1506(0xd3)](_0x5ea4b8,_0x529805);}}async[_0x4f98fb(0x7e)](_0x24be91){const _0x1cf1bf=_0x4f98fb;if(this[_0x1cf1bf(0x8d)][_0x1cf1bf(0x7d)](_0x24be91))throw new _0x3a3941(_0x1cf1bf(0xd4),null,{'channelId':_0x24be91});const _0x3adc8f=this[_0x1cf1bf(0x7a)][_0x1cf1bf(0xd1)][_0x1cf1bf(0xdd)](_0x1cf1bf(0xdb)),_0x37b5b3=new CloudServicesCommentsAdapter[(_0x1cf1bf(0xd5))](_0x24be91);this[_0x1cf1bf(0x8d)][_0x1cf1bf(0x8c)](_0x24be91,_0x37b5b3),this[_0x1cf1bf(0xc7)](_0x37b5b3,_0x1cf1bf(0xd6),(_0x34b688,_0x25054f)=>{const _0x5294d3=_0x1cf1bf,{commentThreadId:_0x591341,documentId:_0x266178,context:_0x57bf80,attributes:_0x1b12f1,resolvedAt:_0x15a57a,resolvedBy:_0x4ad0d6,comments:_0x18d85c}=_0x25054f;_0x3adc8f[_0x5294d3(0x9c)](_0x591341)||_0x3adc8f[_0x5294d3(0x90)]({'threadId':_0x591341,'channelId':_0x266178,'comments':_0x18d85c?_0x18d85c[_0x5294d3(0x88)](st):[],'context':_0x57bf80,'attributes':_0x1b12f1,'resolvedAt':_0x15a57a,'resolvedBy':_0x4ad0d6,'isFromAdapter':!0x0});}),this[_0x1cf1bf(0xc7)](_0x37b5b3,_0x1cf1bf(0xc1),(_0x28a187,{commentThreadId:_0x43b825,documentId:_0x5ec33f,context:_0x4761fd,unlinkedAt:_0x53e5a6,attributes:_0x144ba7})=>{const _0x35e712=_0x1cf1bf;_0x3adc8f[_0x35e712(0x9c)](_0x43b825)&&_0x3adc8f[_0x35e712(0xdc)]({'threadId':_0x43b825,'channelId':_0x5ec33f,'context':_0x4761fd,'unlinkedAt':_0x53e5a6,'attributes':_0x144ba7,'isFromAdapter':!0x0});}),this[_0x1cf1bf(0xc7)](_0x37b5b3,_0x1cf1bf(0xc6),(_0x33efd6,{commentThreadId:_0x1b092a,resolvedBy:_0x37bfde,resolvedAt:_0x23bbfd})=>{const _0x506545=_0x1cf1bf,_0x5158f5=_0x3adc8f[_0x506545(0x9c)](_0x1b092a);_0x5158f5&&_0x5158f5[_0x506545(0x78)]({'resolvedBy':_0x37bfde,'resolvedAt':_0x23bbfd,'isFromAdapter':!0x0});}),this[_0x1cf1bf(0xc7)](_0x37b5b3,_0x1cf1bf(0xb9),(_0x14bc6d,{commentThreadId:_0x100106})=>{const _0x525099=_0x1cf1bf,_0x14da1b=_0x3adc8f[_0x525099(0x9c)](_0x100106);_0x14da1b&&_0x14da1b[_0x525099(0xb0)]({'isFromAdapter':!0x0});}),this[_0x1cf1bf(0xc7)](_0x37b5b3,_0x1cf1bf(0xb6),(_0x5818fb,{commentThreadId:_0x4b4008})=>{const _0x52cfd9=_0x1cf1bf,_0x63230c=_0x3adc8f[_0x52cfd9(0x9c)](_0x4b4008);_0x63230c&&_0x63230c[_0x52cfd9(0xd9)]({'isFromAdapter':!0x0});}),this[_0x1cf1bf(0xc7)](_0x37b5b3,_0x1cf1bf(0xa6),(_0x22690b,_0x4fd427)=>{const _0x557ee6=_0x1cf1bf,_0x214894=_0x4fd427[_0x557ee6(0x93)],_0x2cfa3b=_0x3adc8f[_0x557ee6(0x9c)](_0x214894);_0x2cfa3b&&_0x2cfa3b[_0x557ee6(0x80)]({...st(_0x4fd427),'isFromAdapter':!0x0});}),this[_0x1cf1bf(0xc7)](_0x37b5b3,_0x1cf1bf(0xcc),(_0x303393,{commentThreadId:_0x48ca1b,commentId:_0x1561fd,content:_0x587eff,attributes:_0xefb38c})=>{const _0x422cff=_0x1cf1bf,_0x280f92=_0x3adc8f[_0x422cff(0x9c)](_0x48ca1b);if(_0x280f92){const _0x44cd6b=_0x280f92[_0x422cff(0xde)](_0x1561fd);_0x44cd6b&&_0x44cd6b[_0x422cff(0x7c)]({'content':_0x587eff,'attributes':_0xefb38c,'isFromAdapter':!0x0});}}),this[_0x1cf1bf(0xc7)](_0x37b5b3,_0x1cf1bf(0x9f),(_0x208aca,{commentThreadId:_0x7ca879,commentId:_0x5790f0})=>{const _0x11ce38=_0x1cf1bf,_0x24715d=_0x3adc8f[_0x11ce38(0x9c)](_0x7ca879);if(_0x24715d){const _0x10c70c=_0x24715d[_0x11ce38(0xde)](_0x5790f0);_0x10c70c&&_0x10c70c[_0x11ce38(0xd9)]({'isFromAdapter':!0x0});}}),await this[_0x1cf1bf(0xbd)](_0x24be91);}[_0x4f98fb(0xb2)](){const _0x151f7e=_0x4f98fb;if(this[_0x151f7e(0x7a)]instanceof _0x144ab2){const _0x38b661=this[_0x151f7e(0x7a)][_0x151f7e(0xc4)][_0x151f7e(0xdd)](_0x151f7e(0xab));this[_0x151f7e(0xb7)](_0x38b661);}}[_0x4f98fb(0xb7)](_0x15d08c){const _0x3b619c=_0x4f98fb;if(!this[_0x3b619c(0x8d)][_0x3b619c(0x7d)](_0x15d08c))throw new _0x3a3941(_0x3b619c(0xbf),null,{'channelId':_0x15d08c});this[_0x3b619c(0x84)](_0x15d08c)[_0x3b619c(0xca)](),this[_0x3b619c(0x8d)][_0x3b619c(0xba)](_0x15d08c);}async[_0x4f98fb(0x98)](){const _0x101d2c=_0x4f98fb;for(const _0x386b60 of this[_0x101d2c(0x8d)][_0x101d2c(0xc5)]())await this[_0x101d2c(0xbd)](_0x386b60);if(this[_0x101d2c(0x7a)]instanceof _0x144ab2){const _0x2a4420=this[_0x101d2c(0x7a)][_0x101d2c(0xc4)][_0x101d2c(0xdd)](_0x101d2c(0xab)),_0x1527a7=this[_0x101d2c(0x7a)][_0x101d2c(0xd1)][_0x101d2c(0xdd)](_0x485949);_0x1527a7[_0x101d2c(0x96)](_0x2a4420);const _0x77f14e=await this[_0x101d2c(0x8d)][_0x101d2c(0xdd)](_0x2a4420)[_0x101d2c(0xd2)]();_0x1527a7[_0x101d2c(0xd3)](_0x2a4420,_0x77f14e);}}async[_0x4f98fb(0xbd)](_0x52f144){const _0x645647=_0x4f98fb,{connection:_0x2b2b0e}=this[_0x645647(0x7a)][_0x645647(0xd1)][_0x645647(0xdd)](_0x519236),_0x254dfc=this[_0x645647(0x7a)][_0x645647(0xd1)][_0x645647(0xdd)](_0x645647(0xdb)),_0x60bac4=this[_0x645647(0x8d)][_0x645647(0xdd)](_0x52f144),_0x13d6f6=await _0x60bac4[_0x645647(0xbc)](_0x2b2b0e);await this[_0x645647(0xb3)](_0x13d6f6);const _0x19deef=new Set(Array[_0x645647(0x7f)](_0x254dfc[_0x645647(0x9b)]({'channelId':_0x52f144}),_0x1ebdcc=>_0x1ebdcc['id']));for(const _0x4a2546 of _0x13d6f6)_0x4a2546[_0x645647(0xac)]||_0x19deef[_0x645647(0xba)](_0x4a2546[_0x645647(0x93)]);for(const _0x208a00 of _0x19deef)_0x254dfc[_0x645647(0x9c)](_0x208a00)[_0x645647(0xd9)]({'isFromAdapter':!0x0});for(const _0x3dbef3 of _0x13d6f6){let _0x1e98a5=_0x254dfc[_0x645647(0x9c)](_0x3dbef3[_0x645647(0x93)]);const {commentThreadId:_0x119762,context:_0x452903,attributes:_0x8b5a6c,resolvedBy:_0xccb60f,resolvedAt:_0x29075e,unlinkedAt:_0x194070,deletedAt:_0x2b904d}=_0x3dbef3;if(_0x2b904d)continue;_0x1e98a5||(_0x1e98a5=_0x254dfc[_0x645647(0x90)]({'channelId':_0x52f144,'threadId':_0x119762,'context':_0x452903,'attributes':_0x8b5a6c||{},'resolvedBy':_0xccb60f,'resolvedAt':_0x29075e,'unlinkedAt':_0x194070,'isFromAdapter':!0x0}));const _0x4585ca=new Set(Array[_0x645647(0x7f)](_0x1e98a5[_0x645647(0x87)],_0x2d447b=>_0x2d447b['id']));for(const _0x44280d of _0x3dbef3[_0x645647(0x87)])_0x4585ca[_0x645647(0xba)](_0x44280d[_0x645647(0x85)]);for(const _0x1e13c9 of _0x4585ca)_0x1e98a5[_0x645647(0xde)](_0x1e13c9)[_0x645647(0xd9)]({'isFromAdapter':!0x0});for(const _0x5ec792 of _0x3dbef3[_0x645647(0x87)]){const _0x222f27=_0x1e98a5[_0x645647(0xde)](_0x5ec792[_0x645647(0x85)]);_0x222f27?_0x222f27[_0x645647(0xcf)]!==_0x5ec792[_0x645647(0xcf)]&&_0x222f27[_0x645647(0x7c)]({'content':_0x5ec792[_0x645647(0xcf)],'isFromAdapter':!0x0}):_0x1e98a5[_0x645647(0x80)](Object[_0x645647(0x92)](st(_0x5ec792),{'isFromAdapter':!0x0}));}}}[_0x4f98fb(0x84)](_0x10a05b){const _0x18a117=_0x4f98fb;if(!this[_0x18a117(0x8d)][_0x18a117(0x7d)](_0x10a05b))throw new _0x3a3941(_0x18a117(0xc3),null,{'channelId':_0x10a05b});return this[_0x18a117(0x8d)][_0x18a117(0xdd)](_0x10a05b);}async[_0x4f98fb(0xb3)](_0x2d7805){const _0x348a78=_0x4f98fb,_0x2c3b48=this[_0x348a78(0x7a)][_0x348a78(0xd1)][_0x348a78(0xdd)](_0x5598a2),{connection:_0x3e5cb5}=this[_0x348a78(0x7a)][_0x348a78(0xd1)][_0x348a78(0xdd)](_0x519236),_0x51bff4=new Set();for(const {resolvedBy:_0x214e8b,comments:_0xc5b376}of _0x2d7805){_0x214e8b&&!_0x2c3b48[_0x348a78(0xae)](_0x214e8b)&&_0x51bff4[_0x348a78(0x94)](_0x214e8b);for(const {userId:_0x47e2eb}of _0xc5b376)_0x2c3b48[_0x348a78(0xae)](_0x47e2eb)||_0x51bff4[_0x348a78(0x94)](_0x47e2eb);}if(0x0===_0x51bff4[_0x348a78(0xa1)])return;const _0x7806ed=await _0x354364[_0x348a78(0xb1)](_0x3e5cb5,Array[_0x348a78(0x7f)](_0x51bff4));for(const _0x4545cf of _0x7806ed)_0x2c3b48[_0x348a78(0xae)](_0x4545cf['id'])||_0x2c3b48[_0x348a78(0xaa)](_0x4545cf);}}function _0x517b(_0x1d103c,_0x39203c){const _0x5c53d6=_0x5c53();return _0x517b=function(_0x517b1e,_0x2e5aac){_0x517b1e=_0x517b1e-0x78;let _0x2e7792=_0x5c53d6[_0x517b1e];return _0x2e7792;},_0x517b(_0x1d103c,_0x39203c);}async function nt(_0x586a62){const _0x23f807=_0x4f98fb;if(_0x23f807(0x9e)!==_0x586a62[_0x23f807(0xb5)])throw _0x586a62;}function Y(_0x58cc47){const _0x24b03c=_0x4f98fb;if((_0x3786ce=_0x58cc47)[_0x24b03c(0x9a)][_0x24b03c(0x95)](_0x24b03c(0xda))||_0x3786ce[_0x24b03c(0x9a)][_0x24b03c(0x95)](_0x24b03c(0xd7))||_0x3786ce[_0x24b03c(0x9a)][_0x24b03c(0x95)](_0x24b03c(0xc2)))return new Promise(()=>{});var _0x3786ce;throw _0x58cc47;}function st(_0x322b40){const _0x29966f=_0x4f98fb;return{'threadId':_0x322b40[_0x29966f(0x93)],'commentId':_0x322b40[_0x29966f(0x85)],'content':_0x322b40[_0x29966f(0xcf)],'createdAt':_0x322b40[_0x29966f(0xb8)],'authorId':_0x322b40[_0x29966f(0x8a)],'attributes':_0x322b40[_0x29966f(0x9d)]||{}};}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c42f6=_0x2301;(function(_0x10235d,_0x1e9c2c){const _0x2486bb=_0x2301,_0x15ba92=_0x10235d();while(!![]){try{const _0x39493c=parseInt(_0x2486bb(0x201))/0x1*(-parseInt(_0x2486bb(0x1ed))/0x2)+-parseInt(_0x2486bb(0x211))/0x3*(parseInt(_0x2486bb(0x1d1))/0x4)+parseInt(_0x2486bb(0x20c))/0x5*(-parseInt(_0x2486bb(0x224))/0x6)+-parseInt(_0x2486bb(0x1f3))/0x7+-parseInt(_0x2486bb(0x1ee))/0x8*(parseInt(_0x2486bb(0x243))/0x9)+-parseInt(_0x2486bb(0x21d))/0xa+parseInt(_0x2486bb(0x21e))/0xb;if(_0x39493c===_0x1e9c2c)break;else _0x15ba92['push'](_0x15ba92['shift']());}catch(_0x67c4b0){_0x15ba92['push'](_0x15ba92['shift']());}}}(_0x4e94,0x25a23));import{Plugin as _0x3dad3a}from'ckeditor5/src/core.js';import{version as _0x2d426f}from'ckeditor5/src/utils.js';import{Users as _0x33a081}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x4006aa}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x64a31c}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x484ef0}from'../realtimecollaborativeediting/sessions.js';function _0x4e94(){const _0x6ff580=['reconnect','connected','RevisionTracker','toVersion','length','_revisionHistoryService','startsWith','config','_fetchMissingUsers','_handleReconnectionError','_offset','baseVersion','setRevisionData','get','off','RevisionHistoryService','add','marker','createdAt','_preventResendingRevisionData','isConnected','from','cloudServices.bundleVersion','once','9QpkEoY','message','isPremiumPlugin','4qWumAl','CONNECTED','creatorId','reInit','buildRevisionData','addRevisionData','_fixRevision','_getLatestVersionFromServerOperations','editor','cloud-services-internal-error:\x20Request\x20timeout.','connect','_bufferUpdate','code','addToReconnectionStack','change:_isConnected','RevisionHistory','getRevision','400','isEnabled','adapter','fromVersion','_revisionDataBuilder','getMany','type','requires','authors','_update','affectsData','468EDJcCk','267328VPSGwx','diffData','serverHistory','_startingVersion','state','245994CoEOFn','_isPendingUpdate','catch','_revisionTracker','isEmptyCurrent','collaboration.channelId','getRevisions','_revisions','change:_isPendingUpdate','sessionId','data','currentRevision','CloudServicesRevisionHistoryAdapter','wrongRequestId','686IHJFZd','_getLatestVersion','size','_handleRevisionsUpdate','getUser','getOperations','max','setSource','bind','has','authorsIds','1315eUazYT','isBundleUploaded','_lastRequestId','_bufferedUpdates','isOfficialPlugin','128517QuLgzZ','listenTo','destroy','_createCurrentRevision','map','plugins','remove','repository','revisionsUpdated','then','updateRevisions','pluginName','2298130DxhrCM','10046938FUesKZ','keys','sendBufferedUpdates','cloud-services-internal-error:\x20Not\x20connected.','_isConnected','_oldOffset','5874GszNQu','reverse','_waitForServiceReady','init','connection','addUser','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.'];_0x4e94=function(){return _0x6ff580;};return _0x4e94();}import{EditorService as _0x509f3a,RevisionHistoryService as _0x2bffc3,User as _0x2ddc94,WEB_SOCKET_GATEWAY_STATES as _0x33b7db}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x2301(_0x288f20,_0xe3082f){const _0x4e9421=_0x4e94();return _0x2301=function(_0x2301d0,_0x5bd692){_0x2301d0=_0x2301d0-0x1d1;let _0x17a96e=_0x4e9421[_0x2301d0];return _0x17a96e;},_0x2301(_0x288f20,_0xe3082f);}export class CloudServicesRevisionHistoryAdapter extends _0x3dad3a{static [_0x5c42f6(0x23a)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x2bffc3)());[_0x5c42f6(0x20e)];[_0x5c42f6(0x1f6)];[_0x5c42f6(0x230)];[_0x5c42f6(0x223)];static get[_0x5c42f6(0x1e9)](){const _0xc52792=_0x5c42f6;return[_0x64a31c,_0x4006aa,_0xc52792(0x1e0),_0x484ef0,_0x33a081];}static get[_0x5c42f6(0x21c)](){const _0xad652=_0x5c42f6;return _0xad652(0x1ff);}static get[_0x5c42f6(0x210)](){return!0x0;}static get[_0x5c42f6(0x245)](){return!0x0;}constructor(_0x45ec13){const _0x5ce75f=_0x5c42f6;super(_0x45ec13);const _0x1a9dd5=this[_0x5ce75f(0x1d9)][_0x5ce75f(0x232)][_0x5ce75f(0x238)](_0x5ce75f(0x1f8));this[_0x5ce75f(0x20e)]=null,this[_0x5ce75f(0x1f6)]=this[_0x5ce75f(0x1d9)][_0x5ce75f(0x216)][_0x5ce75f(0x238)](_0x5ce75f(0x22d)),this[_0x5ce75f(0x230)]=new CloudServicesRevisionHistoryAdapter[(_0x5ce75f(0x23a))](_0x1a9dd5);}async[_0x5c42f6(0x227)](){const _0x2e78db=_0x5c42f6,_0x4ab419=this[_0x2e78db(0x1d9)][_0x2e78db(0x216)][_0x2e78db(0x238)](_0x4006aa),_0x42371b=_0x4ab419[_0x2e78db(0x1f0)],_0x574db8=this[_0x2e78db(0x1d9)][_0x2e78db(0x216)][_0x2e78db(0x238)](_0x64a31c);this[_0x2e78db(0x1f6)][_0x2e78db(0x208)]({'history':_0x42371b,'getLatestVersion':()=>this[_0x2e78db(0x202)](),'getCurrentRevisionId':()=>_0x4ab419[_0x2e78db(0x1fc)]});const _0x45d76b=this[_0x2e78db(0x1d9)][_0x2e78db(0x232)][_0x2e78db(0x238)](_0x2e78db(0x241))||_0x2d426f,_0x455ad7=await _0x509f3a[_0x2e78db(0x20d)](_0x574db8[_0x2e78db(0x228)],_0x45d76b);this[_0x2e78db(0x1d9)][_0x2e78db(0x216)][_0x2e78db(0x238)](_0x2e78db(0x1e0))[_0x2e78db(0x1e4)]={'getRevision':async({revisionId:_0x2cdc93})=>(await this[_0x2e78db(0x226)](),await this[_0x2e78db(0x230)][_0x2e78db(0x1e1)](_0x2cdc93)),'updateRevisions':async _0x1a033b=>{const _0x10c108=_0x2e78db;await this[_0x10c108(0x226)]();const _0x504bc1=this[_0x10c108(0x1f6)][_0x10c108(0x1fe)];if(_0x455ad7&&0x1===_0x1a033b[_0x10c108(0x22f)]&&_0x1a033b[0x0]['id']===_0x504bc1['id'])return _0x1a033b;for(const _0x50d491 of _0x1a033b)_0x50d491['id']===_0x504bc1['id']&&(_0x50d491[_0x10c108(0x1f7)]=_0x50d491[_0x10c108(0x1e5)]===_0x50d491[_0x10c108(0x22e)]);return this[_0x10c108(0x230)][_0x10c108(0x21b)](_0x1a033b,this[_0x10c108(0x20e)])[_0x10c108(0x21a)](_0x41de90=>(this[_0x10c108(0x20e)]=_0x41de90,_0x1a033b))[_0x10c108(0x1f5)](_0x170770=>{const _0x4ab4b5=_0x10c108;if(st(_0x170770)||_0x4ab4b5(0x1e2)===_0x170770[_0x4ab4b5(0x1dd)]&&void 0x0!==_0x170770[_0x4ab4b5(0x1fd)][_0x4ab4b5(0x200)]){for(const _0x21a676 of _0x1a033b){!this[_0x4ab4b5(0x1f6)][_0x4ab4b5(0x218)][_0x4ab4b5(0x1e1)](_0x21a676['id'])||this[_0x4ab4b5(0x1f6)][_0x4ab4b5(0x1dc)](_0x21a676['id'],_0x21a676,!0x1);}if(st(_0x170770))throw _0x170770;return _0x1a033b;}throw _0x170770;});}},this[_0x2e78db(0x212)](this[_0x2e78db(0x230)],_0x2e78db(0x219),(_0x2a41ed,{revisionsData:_0x3cee25,requestId:_0x423b09})=>{const _0x473908=_0x2e78db;Math[_0x473908(0x207)](..._0x3cee25[_0x473908(0x215)](_0x5baf54=>_0x5baf54[_0x473908(0x22e)]))>this[_0x473908(0x1d8)]()-0x1?this[_0x473908(0x202)]()[_0x473908(0x21a)](()=>{const _0x468e7c=_0x473908;this[_0x468e7c(0x204)](_0x3cee25,_0x423b09);}):this[_0x473908(0x204)](_0x3cee25,_0x423b09);});const {revisions:_0x2a86e8,requestId:_0x3169e1}=await this[_0x2e78db(0x230)][_0x2e78db(0x1db)](_0x574db8[_0x2e78db(0x228)]);_0x574db8[_0x2e78db(0x1de)](this),this[_0x2e78db(0x20e)]=_0x3169e1,await this[_0x2e78db(0x233)](_0x2a86e8);for(const _0x13c708 of _0x2a86e8)this[_0x2e78db(0x1f6)][_0x2e78db(0x1d6)](_0x13c708);this[_0x2e78db(0x212)](_0x4ab419,_0x2e78db(0x1df),(_0xfa29fb,_0x4deaf1,_0x502232)=>{const _0x17d994=_0x2e78db;_0x502232&&(this[_0x17d994(0x223)]=_0x4ab419[_0x17d994(0x235)],_0xfa29fb[_0x17d994(0x239)]());}),this[_0x2e78db(0x1f6)][_0x2e78db(0x209)](_0x2e78db(0x1e3))['to'](_0x574db8,_0x2e78db(0x1f2),_0x196999=>_0x196999===_0x33b7db[_0x2e78db(0x1d2)]);}async[_0x5c42f6(0x22b)](){const _0x24d3f2=_0x5c42f6,_0x31031b=this[_0x24d3f2(0x1d9)][_0x24d3f2(0x216)][_0x24d3f2(0x238)](_0x64a31c),_0x4ee18e=this[_0x24d3f2(0x1d9)][_0x24d3f2(0x216)][_0x24d3f2(0x238)](_0x4006aa),_0x5daa4b=async()=>{const _0x252701=_0x24d3f2,_0x1b6cc9=this[_0x252701(0x1f6)][_0x252701(0x1fe)],_0x9e52f1=_0x1b6cc9['id'],_0x46c70f=_0x9e52f1!==_0x4ee18e[_0x252701(0x1fc)];if(_0x46c70f){const _0x1550ca=_0x4ee18e[_0x252701(0x235)]-this[_0x252701(0x223)],_0x4d6b23=this[_0x252701(0x1d8)]();this[_0x252701(0x1f6)][_0x252701(0x1e6)][_0x252701(0x1d4)]();if(_0x1b6cc9[_0x252701(0x22e)]+_0x1550ca!==_0x4d6b23){const _0xa03f35=_0x1b6cc9[_0x252701(0x1e5)]+_0x1550ca,_0x1f3369=this[_0x252701(0x1d9)][_0x252701(0x216)][_0x252701(0x238)](_0x33a081),_0xd3937c=this[_0x252701(0x1f6)][_0x252701(0x1d5)]({'revision':_0x1b6cc9,'from':_0xa03f35,'to':_0x4d6b23});_0xd3937c['id']=_0x1b6cc9['id'];const _0x4eb9a5=_0xd3937c[_0x252701(0x20b)][_0x252701(0x215)](_0x3c54f5=>_0x1f3369[_0x252701(0x205)](_0x3c54f5));_0x1b6cc9[_0x252701(0x1eb)]({..._0xd3937c,'authors':_0x4eb9a5},!0x0),this[_0x252701(0x1f6)][_0x252701(0x1dc)](_0x1b6cc9['id'],_0xd3937c,!0x0);}this[_0x252701(0x1f6)][_0x252701(0x1f1)]=_0x4d6b23,(_0x1b6cc9[_0x252701(0x22e)]===_0x1b6cc9[_0x252701(0x1e5)]&&!this[_0x252701(0x1f6)][_0x252701(0x20f)][_0x252701(0x20a)](_0x9e52f1)&&this[_0x252701(0x1f6)][_0x252701(0x218)][_0x252701(0x1fa)][_0x252701(0x217)](_0x9e52f1),this[_0x252701(0x1f6)][_0x252701(0x214)](_0x4d6b23));}const {revisions:_0x2a5790,requestId:_0x139be0}=await this[_0x252701(0x230)][_0x252701(0x22b)](_0x31031b[_0x252701(0x228)],this[_0x252701(0x20e)]);_0x46c70f&&_0x2a5790[_0x252701(0x22f)]>0x0?_0x4ee18e[_0x252701(0x234)]():(await this[_0x252701(0x233)](_0x2a5790),this[_0x252701(0x204)](_0x2a5790,_0x139be0),this[_0x252701(0x1f6)][_0x252701(0x220)]());};return _0x4ee18e[_0x24d3f2(0x222)]?_0x5daa4b():new Promise((_0x2db15e,_0x3526cc)=>{const _0x5e1271=_0x24d3f2;_0x4ee18e[_0x5e1271(0x242)](_0x5e1271(0x1df),()=>{const _0x335eca=_0x5e1271;_0x5daa4b()[_0x335eca(0x21a)](_0x2db15e)[_0x335eca(0x1f5)](_0x3526cc);});});}[_0x5c42f6(0x213)](){const _0x55cffb=_0x5c42f6;super[_0x55cffb(0x213)]();}async[_0x5c42f6(0x226)](){const _0x2f9f36=_0x5c42f6;this[_0x2f9f36(0x230)][_0x2f9f36(0x23f)]||await new Promise(_0x42f205=>{const _0x1c8f57=_0x2f9f36;this[_0x1c8f57(0x212)](this[_0x1c8f57(0x230)],_0x1c8f57(0x22c),_0x3d2e4d=>{const _0x37ebe7=_0x1c8f57;_0x3d2e4d[_0x37ebe7(0x239)](),_0x42f205();});});}[_0x5c42f6(0x1d8)](){const _0x2b2dfb=_0x5c42f6,_0x46db9a=this[_0x2b2dfb(0x1d9)][_0x2b2dfb(0x216)][_0x2b2dfb(0x238)](_0x4006aa)[_0x2b2dfb(0x1f0)][_0x2b2dfb(0x206)]()[_0x2b2dfb(0x225)]();for(const _0x13f658 of _0x46db9a)if(_0x2b2dfb(0x23c)!==_0x13f658[_0x2b2dfb(0x1e8)]||_0x13f658[_0x2b2dfb(0x1ec)])return _0x13f658[_0x2b2dfb(0x236)]+0x1;}[_0x5c42f6(0x202)](){const _0x43e93c=_0x5c42f6,_0x139958=this[_0x43e93c(0x1d9)][_0x43e93c(0x216)][_0x43e93c(0x238)](_0x4006aa);return new Promise(_0x225af3=>{const _0x411ce1=_0x43e93c;_0x139958[_0x411ce1(0x1f4)]?_0x139958[_0x411ce1(0x242)](_0x411ce1(0x1fb),()=>{const _0x1bdd9d=_0x411ce1;_0x225af3(this[_0x1bdd9d(0x1d8)]());}):_0x225af3(this[_0x411ce1(0x1d8)]());});}[_0x5c42f6(0x204)](_0x3bdb5f,_0x4e5179){const _0x20adb4=_0x5c42f6,_0x4a65e9=this[_0x20adb4(0x1f6)][_0x20adb4(0x218)];this[_0x20adb4(0x20e)]=_0x4e5179;for(const _0x240325 of _0x3bdb5f){const _0x275041=_0x4a65e9[_0x20adb4(0x1e1)](_0x240325['id']);if(_0x275041){if((_0x240325[_0x20adb4(0x1e5)]||_0x240325[_0x20adb4(0x22e)])&&(_0x240325[_0x20adb4(0x1ef)]=null),_0x275041===this[_0x20adb4(0x1f6)][_0x20adb4(0x1fe)]){const _0x5eec36=Math[_0x20adb4(0x207)](_0x275041[_0x20adb4(0x22e)],_0x240325[_0x20adb4(0x22e)]),_0x1eefcd=Math[_0x20adb4(0x207)](_0x275041[_0x20adb4(0x1e5)],_0x240325[_0x20adb4(0x1e5)]);let _0x5d0be8;_0x275041[_0x20adb4(0x22e)]===_0x240325[_0x20adb4(0x22e)]&&_0x275041[_0x20adb4(0x1e5)]===_0x240325[_0x20adb4(0x1e5)]?(_0x5d0be8=!0x0,this[_0x20adb4(0x23e)](_0x240325)):_0x240325[_0x20adb4(0x22e)]===_0x5eec36&&_0x240325[_0x20adb4(0x1e5)]===_0x1eefcd?_0x5d0be8=!0x1:(_0x275041[_0x20adb4(0x22e)]===_0x5eec36&&_0x275041[_0x20adb4(0x1e5)]===_0x1eefcd||this[_0x20adb4(0x1d7)]({'revision':_0x275041,'from':_0x1eefcd,'to':_0x5eec36}),_0x5d0be8=!0x0),_0x5d0be8&&(delete _0x240325[_0x20adb4(0x1e5)],delete _0x240325[_0x20adb4(0x22e)],delete _0x240325[_0x20adb4(0x1ef)],delete _0x240325[_0x20adb4(0x23d)],delete _0x240325[_0x20adb4(0x20b)]);}this[_0x20adb4(0x1f6)][_0x20adb4(0x237)](_0x240325),this[_0x20adb4(0x23e)](_0x240325);}else this[_0x20adb4(0x1f6)][_0x20adb4(0x1d6)](_0x240325);}const _0x1e9cdc=_0x4a65e9[_0x20adb4(0x1f9)]();_0x1e9cdc[_0x20adb4(0x225)]();for(let _0x500e1b=0x0;_0x500e1b<_0x1e9cdc[_0x20adb4(0x22f)]-0x1;_0x500e1b++){const _0x5b0711=_0x1e9cdc[_0x500e1b],_0x4b139a=_0x1e9cdc[_0x500e1b+0x1];if(_0x5b0711[_0x20adb4(0x1e5)]<_0x4b139a[_0x20adb4(0x22e)]){const _0xbf30e8=_0x4b139a[_0x20adb4(0x22e)],_0x58dd30=Math[_0x20adb4(0x207)](_0xbf30e8,_0x5b0711[_0x20adb4(0x22e)]);this[_0x20adb4(0x1d7)]({'revision':_0x5b0711,'from':_0xbf30e8,'to':_0x58dd30});}}}[_0x5c42f6(0x1d7)]({revision:_0x455482,from:_0x1eb628,to:_0x3517d0}={}){const _0x1417ad=_0x5c42f6,_0x4c9043=this[_0x1417ad(0x1d9)][_0x1417ad(0x216)][_0x1417ad(0x238)](_0x33a081),_0x30ebd8=this[_0x1417ad(0x1f6)][_0x1417ad(0x1d5)]({'revision':_0x455482,'from':_0x1eb628,'to':_0x3517d0});_0x30ebd8[_0x1417ad(0x1ea)]=_0x30ebd8[_0x1417ad(0x20b)][_0x1417ad(0x215)](_0x5c2af1=>_0x4c9043[_0x1417ad(0x205)](_0x5c2af1)),_0x455482[_0x1417ad(0x1eb)](_0x30ebd8);}[_0x5c42f6(0x23e)](_0x8d173d){const _0x14165c=_0x5c42f6,_0x121e14={};_0x121e14['id']=_0x8d173d['id'];for(const _0x39b805 of Object[_0x14165c(0x21f)](_0x8d173d))'id'!==_0x39b805&&(_0x121e14[_0x39b805]=void 0x0);this[_0x14165c(0x1f6)][_0x14165c(0x1dc)](_0x121e14['id'],_0x121e14,!0x0);}async[_0x5c42f6(0x233)](_0x3d9dd6){const _0x80ef87=_0x5c42f6,_0x73b4ce=this[_0x80ef87(0x1d9)][_0x80ef87(0x216)][_0x80ef87(0x238)](_0x33a081),{connection:_0x53f335}=this[_0x80ef87(0x1d9)][_0x80ef87(0x216)][_0x80ef87(0x238)](_0x64a31c),_0xe037f4=new Set();for(const _0x59808d of _0x3d9dd6){for(const _0x17585b of _0x59808d[_0x80ef87(0x20b)])_0x47e72c(_0x17585b);_0x59808d[_0x80ef87(0x1d3)]&&_0x47e72c(_0x59808d[_0x80ef87(0x1d3)]);}if(0x0===_0xe037f4[_0x80ef87(0x203)])return;const _0x394572=await _0x2ddc94[_0x80ef87(0x1e7)](_0x53f335,Array[_0x80ef87(0x240)](_0xe037f4));for(const _0x33f597 of _0x394572)_0x73b4ce[_0x80ef87(0x205)](_0x33f597['id'])||_0x73b4ce[_0x80ef87(0x229)](_0x33f597);function _0x47e72c(_0x3b4df4){const _0x21fd2c=_0x80ef87;_0x73b4ce[_0x21fd2c(0x205)](_0x3b4df4)||_0xe037f4[_0x21fd2c(0x23b)](_0x3b4df4);}}}function st(_0x350603){const _0xd82bbe=_0x5c42f6;return _0x350603[_0xd82bbe(0x244)][_0xd82bbe(0x231)](_0xd82bbe(0x22a))||_0x350603[_0xd82bbe(0x244)][_0xd82bbe(0x231)](_0xd82bbe(0x221))||_0x350603[_0xd82bbe(0x244)][_0xd82bbe(0x231)](_0xd82bbe(0x1da));}
23
+ const _0x449a51=_0x5928;(function(_0xd541c1,_0x3da615){const _0x39439a=_0x5928,_0xca187a=_0xd541c1();while(!![]){try{const _0x173450=-parseInt(_0x39439a(0x15f))/0x1+parseInt(_0x39439a(0x171))/0x2*(-parseInt(_0x39439a(0x12a))/0x3)+parseInt(_0x39439a(0x158))/0x4+parseInt(_0x39439a(0x16c))/0x5*(parseInt(_0x39439a(0x150))/0x6)+parseInt(_0x39439a(0x14f))/0x7*(-parseInt(_0x39439a(0x145))/0x8)+parseInt(_0x39439a(0x141))/0x9+parseInt(_0x39439a(0x128))/0xa;if(_0x173450===_0x3da615)break;else _0xca187a['push'](_0xca187a['shift']());}catch(_0x50e12d){_0xca187a['push'](_0xca187a['shift']());}}}(_0x4006,0x442f5));import{Plugin as _0x17528c}from'ckeditor5/src/core.js';import{version as _0x228de0}from'ckeditor5/src/utils.js';import{Users as _0x465549}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x2e55c0}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0xa23541}from'../realtimecollaborativeediting/websocketgateway.js';function _0x4006(){const _0x426b1a=['currentRevision','311496WJobjg','reInit','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','authors','_fixRevision','RevisionHistory','then','_isConnected','add','_getLatestVersion','84egiXLc','6WhhXjv','CloudServicesRevisionHistoryAdapter','_bufferUpdate','code','change:_isPendingUpdate','init','sessionId','_revisions','205776meJvaz','destroy','addRevisionData','_waitForServiceReady','type','change:_isConnected','_fetchMissingUsers','115661mYJaty','_isPendingUpdate','getOperations','requires','connect','getUser','connection','addUser','wrongRequestId','createdAt','affectsData','bind','fromVersion','1939585YgMCSl','RevisionHistoryService','RevisionTracker','state','isPremiumPlugin','11896iymtOc','isConnected','isEmptyCurrent','setSource','cloud-services-internal-error:\x20Request\x20timeout.','repository','toVersion','_revisionHistoryService','_handleRevisionsUpdate','_revisionTracker','_startingVersion','isEnabled','baseVersion','_handleReconnectionError','getRevisions','_offset','sendBufferedUpdates','diffData','once','_getLatestVersionFromServerOperations','isBundleUploaded','cloud-services-internal-error:\x20Not\x20connected.','400','pluginName','startsWith','from','setRevisionData','isOfficialPlugin','reconnect','map','has','data','listenTo','max','reverse','creatorId','_update','length','marker','config','keys','serverHistory','remove','4145250QXVlKi','cloudServices.bundleVersion','246siwVLv','get','adapter','_oldOffset','authorsIds','_lastRequestId','updateRevisions','buildRevisionData','editor','off','_preventResendingRevisionData','_revisionDataBuilder','size','_bufferedUpdates','collaboration.channelId','revisionsUpdated','getMany','getRevision','_createCurrentRevision','catch','plugins','addToReconnectionStack','connected','4464360rTtzTq','message','CONNECTED'];_0x4006=function(){return _0x426b1a;};return _0x4006();}function _0x5928(_0x67d96f,_0x10bf0a){const _0x400645=_0x4006();return _0x5928=function(_0x5928b1,_0x4820bb){_0x5928b1=_0x5928b1-0x120;let _0x4b8f16=_0x400645[_0x5928b1];return _0x4b8f16;},_0x5928(_0x67d96f,_0x10bf0a);}import{Sessions as _0x4db965}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x3f21d6,RevisionHistoryService as _0x350cfb,User as _0x831465,WEB_SOCKET_GATEWAY_STATES as _0x472d78}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x17528c{static [_0x449a51(0x16d)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x350cfb)());[_0x449a51(0x12f)];[_0x449a51(0x17a)];[_0x449a51(0x178)];[_0x449a51(0x12d)];static get[_0x449a51(0x162)](){const _0x469dc4=_0x449a51;return[_0xa23541,_0x2e55c0,_0x469dc4(0x14a),_0x4db965,_0x465549];}static get[_0x449a51(0x188)](){const _0xf9558f=_0x449a51;return _0xf9558f(0x151);}static get[_0x449a51(0x18c)](){return!0x0;}static get[_0x449a51(0x170)](){return!0x0;}constructor(_0x31297c){const _0x3c9c71=_0x449a51;super(_0x31297c);const _0x1622fe=this[_0x3c9c71(0x132)][_0x3c9c71(0x124)][_0x3c9c71(0x12b)](_0x3c9c71(0x138));this[_0x3c9c71(0x12f)]=null,this[_0x3c9c71(0x17a)]=this[_0x3c9c71(0x132)][_0x3c9c71(0x13e)][_0x3c9c71(0x12b)](_0x3c9c71(0x16e)),this[_0x3c9c71(0x178)]=new CloudServicesRevisionHistoryAdapter[(_0x3c9c71(0x16d))](_0x1622fe);}async[_0x449a51(0x155)](){const _0x58ed89=_0x449a51,_0x558adb=this[_0x58ed89(0x132)][_0x58ed89(0x13e)][_0x58ed89(0x12b)](_0x2e55c0),_0x1e8e93=_0x558adb[_0x58ed89(0x126)],_0x4ce023=this[_0x58ed89(0x132)][_0x58ed89(0x13e)][_0x58ed89(0x12b)](_0xa23541);this[_0x58ed89(0x17a)][_0x58ed89(0x174)]({'history':_0x1e8e93,'getLatestVersion':()=>this[_0x58ed89(0x14e)](),'getCurrentRevisionId':()=>_0x558adb[_0x58ed89(0x156)]});const _0x7f48ea=this[_0x58ed89(0x132)][_0x58ed89(0x124)][_0x58ed89(0x12b)](_0x58ed89(0x129))||_0x228de0,_0x325961=await _0x3f21d6[_0x58ed89(0x185)](_0x4ce023[_0x58ed89(0x165)],_0x7f48ea);this[_0x58ed89(0x132)][_0x58ed89(0x13e)][_0x58ed89(0x12b)](_0x58ed89(0x14a))[_0x58ed89(0x12c)]={'getRevision':async({revisionId:_0x350755})=>(await this[_0x58ed89(0x15b)](),await this[_0x58ed89(0x178)][_0x58ed89(0x13b)](_0x350755)),'updateRevisions':async _0x465a78=>{const _0x450cf0=_0x58ed89;await this[_0x450cf0(0x15b)]();const _0x28e80b=this[_0x450cf0(0x17a)][_0x450cf0(0x144)];if(_0x325961&&0x1===_0x465a78[_0x450cf0(0x122)]&&_0x465a78[0x0]['id']===_0x28e80b['id'])return _0x465a78;for(const _0x3b12aa of _0x465a78)_0x3b12aa['id']===_0x28e80b['id']&&(_0x3b12aa[_0x450cf0(0x173)]=_0x3b12aa[_0x450cf0(0x16b)]===_0x3b12aa[_0x450cf0(0x177)]);return this[_0x450cf0(0x178)][_0x450cf0(0x130)](_0x465a78,this[_0x450cf0(0x12f)])[_0x450cf0(0x14b)](_0x5a7d00=>(this[_0x450cf0(0x12f)]=_0x5a7d00,_0x465a78))[_0x450cf0(0x13d)](_0x347194=>{const _0x38a80b=_0x450cf0;if(Z(_0x347194)||_0x38a80b(0x187)===_0x347194[_0x38a80b(0x153)]&&void 0x0!==_0x347194[_0x38a80b(0x190)][_0x38a80b(0x167)]){for(const _0x3151f0 of _0x465a78){!this[_0x38a80b(0x17a)][_0x38a80b(0x176)][_0x38a80b(0x13b)](_0x3151f0['id'])||this[_0x38a80b(0x17a)][_0x38a80b(0x152)](_0x3151f0['id'],_0x3151f0,!0x1);}if(Z(_0x347194))throw _0x347194;return _0x465a78;}throw _0x347194;});}},this[_0x58ed89(0x191)](this[_0x58ed89(0x178)],_0x58ed89(0x139),(_0x779ded,{revisionsData:_0x536505,requestId:_0x333b7c})=>{const _0x17133e=_0x58ed89;Math[_0x17133e(0x192)](..._0x536505[_0x17133e(0x18e)](_0x8f2867=>_0x8f2867[_0x17133e(0x177)]))>this[_0x17133e(0x184)]()-0x1?this[_0x17133e(0x14e)]()[_0x17133e(0x14b)](()=>{const _0x14b610=_0x17133e;this[_0x14b610(0x179)](_0x536505,_0x333b7c);}):this[_0x17133e(0x179)](_0x536505,_0x333b7c);});const {revisions:_0x317f54,requestId:_0x52860a}=await this[_0x58ed89(0x178)][_0x58ed89(0x163)](_0x4ce023[_0x58ed89(0x165)]);_0x4ce023[_0x58ed89(0x13f)](this),this[_0x58ed89(0x12f)]=_0x52860a,await this[_0x58ed89(0x15e)](_0x317f54);for(const _0x3fb259 of _0x317f54)this[_0x58ed89(0x17a)][_0x58ed89(0x15a)](_0x3fb259);this[_0x58ed89(0x191)](_0x558adb,_0x58ed89(0x15d),(_0x4f403c,_0xef6336,_0x14a995)=>{const _0x114098=_0x58ed89;_0x14a995&&(this[_0x114098(0x12d)]=_0x558adb[_0x114098(0x180)],_0x4f403c[_0x114098(0x133)]());}),this[_0x58ed89(0x17a)][_0x58ed89(0x16a)](_0x58ed89(0x17c))['to'](_0x4ce023,_0x58ed89(0x16f),_0x6ea67b=>_0x6ea67b===_0x472d78[_0x58ed89(0x143)]);}async[_0x449a51(0x18d)](){const _0x39e608=_0x449a51,_0x47fca8=this[_0x39e608(0x132)][_0x39e608(0x13e)][_0x39e608(0x12b)](_0xa23541),_0x5d990b=this[_0x39e608(0x132)][_0x39e608(0x13e)][_0x39e608(0x12b)](_0x2e55c0),_0x5400f6=async()=>{const _0x54361a=_0x39e608,_0x297dd2=this[_0x54361a(0x17a)][_0x54361a(0x144)],_0xbdad60=_0x297dd2['id'],_0x5a3a67=_0xbdad60!==_0x5d990b[_0x54361a(0x156)];if(_0x5a3a67){const _0x2ebbf3=_0x5d990b[_0x54361a(0x180)]-this[_0x54361a(0x12d)],_0x1a8e31=this[_0x54361a(0x184)]();this[_0x54361a(0x17a)][_0x54361a(0x135)][_0x54361a(0x146)]();if(_0x297dd2[_0x54361a(0x177)]+_0x2ebbf3!==_0x1a8e31){const _0x3e4881=_0x297dd2[_0x54361a(0x16b)]+_0x2ebbf3,_0x773120=this[_0x54361a(0x132)][_0x54361a(0x13e)][_0x54361a(0x12b)](_0x465549),_0x5ef916=this[_0x54361a(0x17a)][_0x54361a(0x131)]({'revision':_0x297dd2,'from':_0x3e4881,'to':_0x1a8e31});_0x5ef916['id']=_0x297dd2['id'];const _0x296bea=_0x5ef916[_0x54361a(0x12e)][_0x54361a(0x18e)](_0x272c13=>_0x773120[_0x54361a(0x164)](_0x272c13));_0x297dd2[_0x54361a(0x121)]({..._0x5ef916,'authors':_0x296bea},!0x0),this[_0x54361a(0x17a)][_0x54361a(0x152)](_0x297dd2['id'],_0x5ef916,!0x0);}this[_0x54361a(0x17a)][_0x54361a(0x17b)]=_0x1a8e31,(_0x297dd2[_0x54361a(0x177)]===_0x297dd2[_0x54361a(0x16b)]&&!this[_0x54361a(0x17a)][_0x54361a(0x137)][_0x54361a(0x18f)](_0xbdad60)&&this[_0x54361a(0x17a)][_0x54361a(0x176)][_0x54361a(0x157)][_0x54361a(0x127)](_0xbdad60),this[_0x54361a(0x17a)][_0x54361a(0x13c)](_0x1a8e31));}const {revisions:_0x2a0634,requestId:_0x67f4ec}=await this[_0x54361a(0x178)][_0x54361a(0x18d)](_0x47fca8[_0x54361a(0x165)],this[_0x54361a(0x12f)]);_0x5a3a67&&_0x2a0634[_0x54361a(0x122)]>0x0?_0x5d990b[_0x54361a(0x17e)]():(await this[_0x54361a(0x15e)](_0x2a0634),this[_0x54361a(0x179)](_0x2a0634,_0x67f4ec),this[_0x54361a(0x17a)][_0x54361a(0x181)]());};return _0x5d990b[_0x39e608(0x14c)]?_0x5400f6():new Promise((_0xad02fa,_0xefbee0)=>{const _0x2e5590=_0x39e608;_0x5d990b[_0x2e5590(0x183)](_0x2e5590(0x15d),()=>{const _0x475bd6=_0x2e5590;_0x5400f6()[_0x475bd6(0x14b)](_0xad02fa)[_0x475bd6(0x13d)](_0xefbee0);});});}[_0x449a51(0x159)](){const _0x1be945=_0x449a51;super[_0x1be945(0x159)]();}async[_0x449a51(0x15b)](){const _0x3cffc9=_0x449a51;this[_0x3cffc9(0x178)][_0x3cffc9(0x172)]||await new Promise(_0x3e3191=>{const _0x29bf6e=_0x3cffc9;this[_0x29bf6e(0x191)](this[_0x29bf6e(0x178)],_0x29bf6e(0x140),_0xff6b09=>{const _0x3176fe=_0x29bf6e;_0xff6b09[_0x3176fe(0x133)](),_0x3e3191();});});}[_0x449a51(0x184)](){const _0x31b021=_0x449a51,_0x3f0e7f=this[_0x31b021(0x132)][_0x31b021(0x13e)][_0x31b021(0x12b)](_0x2e55c0)[_0x31b021(0x126)][_0x31b021(0x161)]()[_0x31b021(0x193)]();for(const _0x69e5e4 of _0x3f0e7f)if(_0x31b021(0x123)!==_0x69e5e4[_0x31b021(0x15c)]||_0x69e5e4[_0x31b021(0x169)])return _0x69e5e4[_0x31b021(0x17d)]+0x1;}[_0x449a51(0x14e)](){const _0x5ac397=_0x449a51,_0x542cc6=this[_0x5ac397(0x132)][_0x5ac397(0x13e)][_0x5ac397(0x12b)](_0x2e55c0);return new Promise(_0x25452c=>{const _0x262d5d=_0x5ac397;_0x542cc6[_0x262d5d(0x160)]?_0x542cc6[_0x262d5d(0x183)](_0x262d5d(0x154),()=>{const _0x38c007=_0x262d5d;_0x25452c(this[_0x38c007(0x184)]());}):_0x25452c(this[_0x262d5d(0x184)]());});}[_0x449a51(0x179)](_0x46ab1a,_0x57939c){const _0x4e11e9=_0x449a51,_0x21bda9=this[_0x4e11e9(0x17a)][_0x4e11e9(0x176)];this[_0x4e11e9(0x12f)]=_0x57939c;for(const _0x40bf68 of _0x46ab1a){const _0x58f044=_0x21bda9[_0x4e11e9(0x13b)](_0x40bf68['id']);if(_0x58f044){if((_0x40bf68[_0x4e11e9(0x16b)]||_0x40bf68[_0x4e11e9(0x177)])&&(_0x40bf68[_0x4e11e9(0x182)]=null),_0x58f044===this[_0x4e11e9(0x17a)][_0x4e11e9(0x144)]){const _0x37da5a=Math[_0x4e11e9(0x192)](_0x58f044[_0x4e11e9(0x177)],_0x40bf68[_0x4e11e9(0x177)]),_0x3c909f=Math[_0x4e11e9(0x192)](_0x58f044[_0x4e11e9(0x16b)],_0x40bf68[_0x4e11e9(0x16b)]);let _0x4bedbd;_0x58f044[_0x4e11e9(0x177)]===_0x40bf68[_0x4e11e9(0x177)]&&_0x58f044[_0x4e11e9(0x16b)]===_0x40bf68[_0x4e11e9(0x16b)]?(_0x4bedbd=!0x0,this[_0x4e11e9(0x134)](_0x40bf68)):_0x40bf68[_0x4e11e9(0x177)]===_0x37da5a&&_0x40bf68[_0x4e11e9(0x16b)]===_0x3c909f?_0x4bedbd=!0x1:(_0x58f044[_0x4e11e9(0x177)]===_0x37da5a&&_0x58f044[_0x4e11e9(0x16b)]===_0x3c909f||this[_0x4e11e9(0x149)]({'revision':_0x58f044,'from':_0x3c909f,'to':_0x37da5a}),_0x4bedbd=!0x0),_0x4bedbd&&(delete _0x40bf68[_0x4e11e9(0x16b)],delete _0x40bf68[_0x4e11e9(0x177)],delete _0x40bf68[_0x4e11e9(0x182)],delete _0x40bf68[_0x4e11e9(0x168)],delete _0x40bf68[_0x4e11e9(0x12e)]);}this[_0x4e11e9(0x17a)][_0x4e11e9(0x18b)](_0x40bf68),this[_0x4e11e9(0x134)](_0x40bf68);}else this[_0x4e11e9(0x17a)][_0x4e11e9(0x15a)](_0x40bf68);}const _0x166e3c=_0x21bda9[_0x4e11e9(0x17f)]();_0x166e3c[_0x4e11e9(0x193)]();for(let _0x409be7=0x0;_0x409be7<_0x166e3c[_0x4e11e9(0x122)]-0x1;_0x409be7++){const _0x109bea=_0x166e3c[_0x409be7],_0x1dd026=_0x166e3c[_0x409be7+0x1];if(_0x109bea[_0x4e11e9(0x16b)]<_0x1dd026[_0x4e11e9(0x177)]){const _0x225218=_0x1dd026[_0x4e11e9(0x177)],_0x56c128=Math[_0x4e11e9(0x192)](_0x225218,_0x109bea[_0x4e11e9(0x177)]);this[_0x4e11e9(0x149)]({'revision':_0x109bea,'from':_0x225218,'to':_0x56c128});}}}[_0x449a51(0x149)]({revision:_0x3d9290,from:_0x336135,to:_0x594882}={}){const _0x153f89=_0x449a51,_0x265498=this[_0x153f89(0x132)][_0x153f89(0x13e)][_0x153f89(0x12b)](_0x465549),_0x3173b2=this[_0x153f89(0x17a)][_0x153f89(0x131)]({'revision':_0x3d9290,'from':_0x336135,'to':_0x594882});_0x3173b2[_0x153f89(0x148)]=_0x3173b2[_0x153f89(0x12e)][_0x153f89(0x18e)](_0x984ce8=>_0x265498[_0x153f89(0x164)](_0x984ce8)),_0x3d9290[_0x153f89(0x121)](_0x3173b2);}[_0x449a51(0x134)](_0x3812cb){const _0x48ba62=_0x449a51,_0x224f88={};_0x224f88['id']=_0x3812cb['id'];for(const _0x38bb32 of Object[_0x48ba62(0x125)](_0x3812cb))'id'!==_0x38bb32&&(_0x224f88[_0x38bb32]=void 0x0);this[_0x48ba62(0x17a)][_0x48ba62(0x152)](_0x224f88['id'],_0x224f88,!0x0);}async[_0x449a51(0x15e)](_0x32a17a){const _0x81f35f=_0x449a51,_0x104390=this[_0x81f35f(0x132)][_0x81f35f(0x13e)][_0x81f35f(0x12b)](_0x465549),{connection:_0x559a49}=this[_0x81f35f(0x132)][_0x81f35f(0x13e)][_0x81f35f(0x12b)](_0xa23541),_0x14b1d3=new Set();for(const _0x10b3d3 of _0x32a17a){for(const _0x25c3b8 of _0x10b3d3[_0x81f35f(0x12e)])_0x4c5227(_0x25c3b8);_0x10b3d3[_0x81f35f(0x120)]&&_0x4c5227(_0x10b3d3[_0x81f35f(0x120)]);}if(0x0===_0x14b1d3[_0x81f35f(0x136)])return;const _0x3ee636=await _0x831465[_0x81f35f(0x13a)](_0x559a49,Array[_0x81f35f(0x18a)](_0x14b1d3));for(const _0x16789c of _0x3ee636)_0x104390[_0x81f35f(0x164)](_0x16789c['id'])||_0x104390[_0x81f35f(0x166)](_0x16789c);function _0x4c5227(_0x217371){const _0x11e486=_0x81f35f;_0x104390[_0x11e486(0x164)](_0x217371)||_0x14b1d3[_0x11e486(0x14d)](_0x217371);}}}function Z(_0x23ec5a){const _0x4833f2=_0x449a51;return _0x23ec5a[_0x4833f2(0x142)][_0x4833f2(0x189)](_0x4833f2(0x147))||_0x23ec5a[_0x4833f2(0x142)][_0x4833f2(0x189)](_0x4833f2(0x186))||_0x23ec5a[_0x4833f2(0x142)][_0x4833f2(0x189)](_0x4833f2(0x175));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa3e508=_0xd40d;(function(_0x536e27,_0x1bd8b5){const _0x362577=_0xd40d,_0x2f4530=_0x536e27();while(!![]){try{const _0x16aa35=parseInt(_0x362577(0x1db))/0x1+parseInt(_0x362577(0x1ac))/0x2*(-parseInt(_0x362577(0x1b8))/0x3)+-parseInt(_0x362577(0x1e0))/0x4*(-parseInt(_0x362577(0x1aa))/0x5)+parseInt(_0x362577(0x1cc))/0x6*(-parseInt(_0x362577(0x1a5))/0x7)+parseInt(_0x362577(0x1a9))/0x8+parseInt(_0x362577(0x1d2))/0x9+-parseInt(_0x362577(0x1bd))/0xa*(parseInt(_0x362577(0x1b6))/0xb);if(_0x16aa35===_0x1bd8b5)break;else _0x2f4530['push'](_0x2f4530['shift']());}catch(_0x5755be){_0x2f4530['push'](_0x2f4530['shift']());}}}(_0x4646,0xca1a4));import{Plugin as _0x1ce945}from'ckeditor5/src/core.js';import{User as _0x27603a,TrackChangesService as _0x551c33}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x24d5a2}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x2f80b8}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x38d134}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x1ce945{static [_0xa3e508(0x1bf)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x551c33)());[_0xa3e508(0x1d5)];[_0xa3e508(0x1ca)];static get[_0xa3e508(0x1b1)](){const _0x2915c9=_0xa3e508;return[_0x2f80b8,_0x2915c9(0x1b0),_0x24d5a2];}static get[_0xa3e508(0x1a3)](){const _0x401dd5=_0xa3e508;return _0x401dd5(0x1c6);}static get[_0xa3e508(0x1c5)](){return!0x0;}static get[_0xa3e508(0x1d3)](){return!0x0;}constructor(_0x4debed){const _0x2faea2=_0xa3e508;super(_0x4debed);const _0x3ed37c=this[_0x2faea2(0x1b4)][_0x2faea2(0x1b2)][_0x2faea2(0x1d4)](_0x2faea2(0x1c1));this[_0x2faea2(0x1d5)]=new Map(),this[_0x2faea2(0x1ca)]=new CloudServicesTrackChangesAdapter[(_0x2faea2(0x1bf))](_0x3ed37c);}[_0xa3e508(0x1af)](){const _0x2eef00=_0xa3e508,_0x100c1e=this[_0x2eef00(0x1b4)][_0x2eef00(0x1ad)][_0x2eef00(0x1d4)](_0x24d5a2),_0x1b88ce=this[_0x2eef00(0x1b4)][_0x2eef00(0x1ad)][_0x2eef00(0x1d4)](_0x2eef00(0x1b0));return _0x1b88ce[_0x2eef00(0x1a6)]={'getSuggestion':async _0x1d440a=>{const _0x4ddb87=_0x2eef00;await this[_0x4ddb87(0x1da)]();const _0x5737b0=await this[_0x4ddb87(0x1ca)][_0x4ddb87(0x1d4)](_0x1d440a)[_0x4ddb87(0x1d6)](tt);return await this[_0x4ddb87(0x1b7)]([_0x5737b0]),_0x5737b0;},'addSuggestion':async({id:_0x115957,type:_0x527664,data:_0x2ed06d,originalSuggestionId:_0x3a1fb6,attributes:_0x3e0629})=>{const _0x2b8c4d=_0x2eef00;await this[_0x2b8c4d(0x1da)]();const _0x911ab4={'id':_0x115957,'type':_0x527664,'data':_0x2ed06d,'originalSuggestionId':_0x3a1fb6,'attributes':_0x3e0629},_0x54a084=await this[_0x2b8c4d(0x1ca)][_0x2b8c4d(0x1c4)](_0x115957,_0x527664,_0x2ed06d,_0x3a1fb6,_0x3e0629)[_0x2b8c4d(0x1d6)](_0x185991=>{if(st(_0x185991))return new Promise(_0x3a6516=>{const _0x582b62=_0xd40d;this[_0x582b62(0x1d5)][_0x582b62(0x1cd)](_0x115957,{'resolve':_0x3a6516,'suggestionData':_0x911ab4});});throw _0x185991;});return this[_0x2b8c4d(0x1d5)][_0x2b8c4d(0x1cb)](_0x115957),_0x54a084;},'updateSuggestion':async(_0xecdd62,_0x5d3e45)=>{const _0x29c4a4=_0x2eef00;if(await this[_0x29c4a4(0x1da)](),_0x29c4a4(0x1bb)!==_0x5d3e45[_0x29c4a4(0x1c7)])return this[_0x29c4a4(0x1ca)][_0x29c4a4(0x1c8)](_0xecdd62,_0x5d3e45)[_0x29c4a4(0x1d6)](tt);}},this[_0x2eef00(0x1cf)](this[_0x2eef00(0x1ca)],_0x2eef00(0x1b5),(_0x1f4b39,_0x32b52f)=>{const _0x29a7cd=_0x2eef00;_0x1b88ce[_0x29a7cd(0x1d1)](_0x32b52f['id'])&&(_0x1b88ce[_0x29a7cd(0x1a1)](_0x32b52f['id'])[_0x29a7cd(0x1dc)]=_0x32b52f[_0x29a7cd(0x1dc)]);}),this[_0x2eef00(0x1ca)][_0x2eef00(0x1a4)](_0x100c1e[_0x2eef00(0x1de)])[_0x2eef00(0x1d8)](_0x160a99=>(_0x100c1e[_0x2eef00(0x1ce)](this),this[_0x2eef00(0x1b7)](_0x160a99)[_0x2eef00(0x1d8)](()=>{const _0x314cd2=_0x2eef00;for(const _0x242871 of _0x160a99){_0x1b88ce[_0x314cd2(0x1a8)](_0x242871)[_0x314cd2(0x1df)]=!0x0;}})));}async[_0xa3e508(0x1be)](){const _0x2fdffa=_0xa3e508,_0x1de4ff=this[_0x2fdffa(0x1b4)][_0x2fdffa(0x1ad)][_0x2fdffa(0x1d4)](_0x2fdffa(0x1b0)),{connection:_0xc3bbff}=this[_0x2fdffa(0x1b4)][_0x2fdffa(0x1ad)][_0x2fdffa(0x1d4)](_0x24d5a2),_0x40fbe8=await this[_0x2fdffa(0x1ca)][_0x2fdffa(0x1a4)](_0xc3bbff);await this[_0x2fdffa(0x1b7)](_0x40fbe8);for(const {suggestionData:_0x5df240,resolve:_0x3e43a6}of this[_0x2fdffa(0x1d5)][_0x2fdffa(0x1a2)]()){let _0x3b742a=_0x40fbe8[_0x2fdffa(0x1d0)](_0x16ea76=>_0x16ea76['id']===_0x5df240['id']);_0x3b742a||(_0x3b742a=await this[_0x2fdffa(0x1ca)][_0x2fdffa(0x1c4)](_0x5df240['id'],_0x5df240[_0x2fdffa(0x1c2)],_0x5df240[_0x2fdffa(0x1e1)],_0x5df240[_0x2fdffa(0x1ba)])),_0x3e43a6(_0x3b742a);}for(const _0x4b9744 of _0x40fbe8)_0x1de4ff[_0x2fdffa(0x1d1)](_0x4b9744['id'])||_0x1de4ff[_0x2fdffa(0x1a8)](_0x4b9744);}async[_0xa3e508(0x1da)](){const _0x4aa47c=_0xa3e508;this[_0x4aa47c(0x1ca)][_0x4aa47c(0x1ab)]||await new Promise(_0x360a59=>{const _0x4b8525=_0x4aa47c;this[_0x4b8525(0x1cf)](this[_0x4b8525(0x1ca)],_0x4b8525(0x1a7),_0x3512d8=>{const _0x2878dc=_0x4b8525;_0x3512d8[_0x2878dc(0x1b3)](),_0x360a59();});});}async[_0xa3e508(0x1b7)](_0x20594c){const _0x55e78d=_0xa3e508,_0x7dfaa2=this[_0x55e78d(0x1b4)][_0x55e78d(0x1ad)][_0x55e78d(0x1d4)](_0x38d134),{connection:_0x444873}=this[_0x55e78d(0x1b4)][_0x55e78d(0x1ad)][_0x55e78d(0x1d4)](_0x24d5a2),_0x1219c2=new Set();for(const {authorId:_0x4a43c3}of _0x20594c)_0x7dfaa2[_0x55e78d(0x1bc)](_0x4a43c3)||_0x1219c2[_0x55e78d(0x1c4)](_0x4a43c3);if(0x0===_0x1219c2[_0x55e78d(0x1dd)])return;const _0x219f43=await _0x27603a[_0x55e78d(0x1d7)](_0x444873,Array[_0x55e78d(0x1c3)](_0x1219c2));for(const _0x2a56ca of _0x219f43)_0x7dfaa2[_0x55e78d(0x1bc)](_0x2a56ca['id'])||_0x7dfaa2[_0x55e78d(0x1c0)](_0x2a56ca);}}function tt(_0x29eed2){if(st(_0x29eed2))return new Promise(()=>{});throw _0x29eed2;}function _0x4646(){const _0x346055=['TrackChangesEditing','requires','config','off','editor','suggestionUpdated','737RZXbtP','_fetchMissingUsersForThreads','1408539uSALaC','cloud-services-internal-error:\x20Request\x20timeout.','originalSuggestionId','open','getUser','208160IAwRst','reconnect','TrackChangesService','addUser','collaboration.channelId','type','from','add','isOfficialPlugin','CloudServicesTrackChangesAdapter','state','update','startsWith','_trackChangesService','delete','696eCNAva','set','addToReconnectionStack','listenTo','find','hasSuggestion','8799660bMwGSw','isPremiumPlugin','get','_bufferedRequests','catch','getMany','then','message','_waitForServiceReady','1466054ODnCSR','attributes','size','connection','_saved','4ddxncr','data','getSuggestion','values','pluginName','connect','9429kLAJnn','adapter','connected','addSuggestionData','622968qBCjJs','3980485PGsVcU','isConnected','4SXczAg','plugins','cloud-services-internal-error:\x20Not\x20connected.','init'];_0x4646=function(){return _0x346055;};return _0x4646();}function _0xd40d(_0x49e4ce,_0x15068e){const _0x464600=_0x4646();return _0xd40d=function(_0xd40dfa,_0xe4614){_0xd40dfa=_0xd40dfa-0x1a1;let _0x509afa=_0x464600[_0xd40dfa];return _0x509afa;},_0xd40d(_0x49e4ce,_0x15068e);}function st(_0x5e9cfe){const _0x3d7d52=_0xa3e508;return _0x5e9cfe[_0x3d7d52(0x1d9)][_0x3d7d52(0x1c9)](_0x3d7d52(0x1ae))||_0x5e9cfe[_0x3d7d52(0x1d9)][_0x3d7d52(0x1c9)](_0x3d7d52(0x1b9));}
23
+ const _0x5842e6=_0x1528;(function(_0x4510ea,_0x4232c5){const _0x24e7d0=_0x1528,_0x197c2a=_0x4510ea();while(!![]){try{const _0x3fdb0c=parseInt(_0x24e7d0(0xfe))/0x1+-parseInt(_0x24e7d0(0x118))/0x2+-parseInt(_0x24e7d0(0x109))/0x3*(parseInt(_0x24e7d0(0x126))/0x4)+parseInt(_0x24e7d0(0x10e))/0x5+parseInt(_0x24e7d0(0xf1))/0x6+parseInt(_0x24e7d0(0x11f))/0x7+-parseInt(_0x24e7d0(0xeb))/0x8;if(_0x3fdb0c===_0x4232c5)break;else _0x197c2a['push'](_0x197c2a['shift']());}catch(_0xd4c5c7){_0x197c2a['push'](_0x197c2a['shift']());}}}(_0x459d,0x6a395));function _0x1528(_0xdc774a,_0x33f439){const _0x459d75=_0x459d();return _0x1528=function(_0x152820,_0x987027){_0x152820=_0x152820-0xea;let _0xf9786a=_0x459d75[_0x152820];return _0xf9786a;},_0x1528(_0xdc774a,_0x33f439);}import{Plugin as _0x1df3a7}from'ckeditor5/src/core.js';import{User as _0x1cb972,TrackChangesService as _0x1b8d48}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x389a17}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x2b4cd5}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x22255b}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x1df3a7{static [_0x5842e6(0xf2)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x1b8d48)());[_0x5842e6(0x103)];[_0x5842e6(0xed)];static get[_0x5842e6(0xf7)](){const _0x3fe778=_0x5842e6;return[_0x2b4cd5,_0x3fe778(0x108),_0x389a17];}static get[_0x5842e6(0xef)](){const _0x25bed0=_0x5842e6;return _0x25bed0(0x11d);}static get[_0x5842e6(0x11e)](){return!0x0;}static get[_0x5842e6(0xee)](){return!0x0;}constructor(_0x51f385){const _0x234270=_0x5842e6;super(_0x51f385);const _0x3aed42=this[_0x234270(0x122)][_0x234270(0x127)][_0x234270(0x11c)](_0x234270(0x105));this[_0x234270(0x103)]=new Map(),this[_0x234270(0xed)]=new CloudServicesTrackChangesAdapter[(_0x234270(0xf2))](_0x3aed42);}[_0x5842e6(0x104)](){const _0xaceee=_0x5842e6,_0x4fbee1=this[_0xaceee(0x122)][_0xaceee(0xf6)][_0xaceee(0x11c)](_0x389a17),_0xa23bc6=this[_0xaceee(0x122)][_0xaceee(0xf6)][_0xaceee(0x11c)](_0xaceee(0x108));return _0xa23bc6[_0xaceee(0x10a)]={'getSuggestion':async _0x4f2f92=>{const _0x317ac7=_0xaceee;await this[_0x317ac7(0x114)]();const _0x405ecd=await this[_0x317ac7(0xed)][_0x317ac7(0x11c)](_0x4f2f92)[_0x317ac7(0x121)](Y);return await this[_0x317ac7(0x119)]([_0x405ecd]),_0x405ecd;},'addSuggestion':async({id:_0x8a442a,type:_0x14b46e,data:_0x285add,originalSuggestionId:_0x231e22,attributes:_0xca315f})=>{const _0x5255a3=_0xaceee;await this[_0x5255a3(0x114)]();const _0xff9c73={'id':_0x8a442a,'type':_0x14b46e,'data':_0x285add,'originalSuggestionId':_0x231e22,'attributes':_0xca315f},_0x1cf55d=await this[_0x5255a3(0xed)][_0x5255a3(0x10b)](_0x8a442a,_0x14b46e,_0x285add,_0x231e22,_0xca315f)[_0x5255a3(0x121)](_0x652994=>{if(Z(_0x652994))return new Promise(_0x5a197a=>{const _0x3a6975=_0x1528;this[_0x3a6975(0x103)][_0x3a6975(0xf8)](_0x8a442a,{'resolve':_0x5a197a,'suggestionData':_0xff9c73});});throw _0x652994;});return this[_0x5255a3(0x103)][_0x5255a3(0x123)](_0x8a442a),_0x1cf55d;},'updateSuggestion':async(_0x2cb194,_0xe8b5aa)=>{const _0x5e92ba=_0xaceee;if(await this[_0x5e92ba(0x114)](),_0x5e92ba(0x10c)!==_0xe8b5aa[_0x5e92ba(0x102)])return this[_0x5e92ba(0xed)][_0x5e92ba(0xf9)](_0x2cb194,_0xe8b5aa)[_0x5e92ba(0x121)](Y);}},this[_0xaceee(0x116)](this[_0xaceee(0xed)],_0xaceee(0x113),(_0x2cc47d,_0x5ae577)=>{const _0x224208=_0xaceee;_0xa23bc6[_0x224208(0xf5)](_0x5ae577['id'])&&(_0xa23bc6[_0x224208(0xfd)](_0x5ae577['id'])[_0x224208(0x115)]=_0x5ae577[_0x224208(0x115)]);}),this[_0xaceee(0xed)][_0xaceee(0x112)](_0x4fbee1[_0xaceee(0x111)])[_0xaceee(0xea)](_0x3758b0=>(_0x4fbee1[_0xaceee(0xfa)](this),this[_0xaceee(0x119)](_0x3758b0)[_0xaceee(0xea)](()=>{const _0x29f3b8=_0xaceee;for(const _0x54a2d2 of _0x3758b0){_0xa23bc6[_0x29f3b8(0xfc)](_0x54a2d2)[_0x29f3b8(0x125)]=!0x0;}})));}async[_0x5842e6(0x110)](){const _0xda2094=_0x5842e6,_0x3daea1=this[_0xda2094(0x122)][_0xda2094(0xf6)][_0xda2094(0x11c)](_0xda2094(0x108)),{connection:_0x2a8b7b}=this[_0xda2094(0x122)][_0xda2094(0xf6)][_0xda2094(0x11c)](_0x389a17),_0x412567=await this[_0xda2094(0xed)][_0xda2094(0x112)](_0x2a8b7b);await this[_0xda2094(0x119)](_0x412567);for(const {suggestionData:_0x5d9750,resolve:_0x2427b9}of this[_0xda2094(0x103)][_0xda2094(0x10d)]()){let _0x2ee1bf=_0x412567[_0xda2094(0x124)](_0x3b0263=>_0x3b0263['id']===_0x5d9750['id']);_0x2ee1bf||(_0x2ee1bf=await this[_0xda2094(0xed)][_0xda2094(0x10b)](_0x5d9750['id'],_0x5d9750[_0xda2094(0x11a)],_0x5d9750[_0xda2094(0x106)],_0x5d9750[_0xda2094(0x10f)])),_0x2427b9(_0x2ee1bf);}for(const _0x148952 of _0x412567)_0x3daea1[_0xda2094(0xf5)](_0x148952['id'])||_0x3daea1[_0xda2094(0xfc)](_0x148952);}async[_0x5842e6(0x114)](){const _0x1a3cbf=_0x5842e6;this[_0x1a3cbf(0xed)][_0x1a3cbf(0xec)]||await new Promise(_0xa6f9b1=>{const _0x1ed9f5=_0x1a3cbf;this[_0x1ed9f5(0x116)](this[_0x1ed9f5(0xed)],_0x1ed9f5(0xff),_0x1d5264=>{const _0x2a9905=_0x1ed9f5;_0x1d5264[_0x2a9905(0xf3)](),_0xa6f9b1();});});}async[_0x5842e6(0x119)](_0x5f29f7){const _0xe2be9=_0x5842e6,_0x409f5d=this[_0xe2be9(0x122)][_0xe2be9(0xf6)][_0xe2be9(0x11c)](_0x22255b),{connection:_0x39dfee}=this[_0xe2be9(0x122)][_0xe2be9(0xf6)][_0xe2be9(0x11c)](_0x389a17),_0x4f54a6=new Set();for(const {authorId:_0x57a826}of _0x5f29f7)_0x409f5d[_0xe2be9(0x107)](_0x57a826)||_0x4f54a6[_0xe2be9(0x10b)](_0x57a826);if(0x0===_0x4f54a6[_0xe2be9(0x100)])return;const _0x348152=await _0x1cb972[_0xe2be9(0x117)](_0x39dfee,Array[_0xe2be9(0x120)](_0x4f54a6));for(const _0x7ad335 of _0x348152)_0x409f5d[_0xe2be9(0x107)](_0x7ad335['id'])||_0x409f5d[_0xe2be9(0x11b)](_0x7ad335);}}function _0x459d(){const _0x2fe020=['addUser','get','CloudServicesTrackChangesAdapter','isOfficialPlugin','22708JCYpwA','from','catch','editor','delete','find','_saved','36PhvlFu','config','then','6967512CdvKSd','isConnected','_trackChangesService','isPremiumPlugin','pluginName','startsWith','1504830XzqUYz','TrackChangesService','off','cloud-services-internal-error:\x20Not\x20connected.','hasSuggestion','plugins','requires','set','update','addToReconnectionStack','message','addSuggestionData','getSuggestion','738281CEMcaW','connected','size','cloud-services-internal-error:\x20Request\x20timeout.','state','_bufferedRequests','init','collaboration.channelId','data','getUser','TrackChangesEditing','39429GFVQyO','adapter','add','open','values','2609765gYAXKt','originalSuggestionId','reconnect','connection','connect','suggestionUpdated','_waitForServiceReady','attributes','listenTo','getMany','179928whDsJC','_fetchMissingUsersForThreads','type'];_0x459d=function(){return _0x2fe020;};return _0x459d();}function Y(_0x44ab6f){if(Z(_0x44ab6f))return new Promise(()=>{});throw _0x44ab6f;}function Z(_0x5df7f6){const _0x392b79=_0x5842e6;return _0x5df7f6[_0x392b79(0xfb)][_0x392b79(0xf0)](_0x392b79(0xf4))||_0x5df7f6[_0x392b79(0xfb)][_0x392b79(0xf0)](_0x392b79(0x101));}