@ckeditor/ckeditor5-real-time-collaboration 44.0.0-alpha.3 → 44.0.0-alpha.5
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 +9 -9
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x328a16=_0x403b;(function(_0x152fcd,_0x14abf5){const _0xeed79c=_0x403b,_0x2554d8=_0x152fcd();while(!![]){try{const _0x41fbc0=parseInt(_0xeed79c(0x88))/0x1*(-parseInt(_0xeed79c(0xb0))/0x2)+-parseInt(_0xeed79c(0xb5))/0x3+parseInt(_0xeed79c(0xa4))/0x4+parseInt(_0xeed79c(0xcb))/0x5*(-parseInt(_0xeed79c(0x8b))/0x6)+parseInt(_0xeed79c(0x8e))/0x7+-parseInt(_0xeed79c(0xad))/0x8*(parseInt(_0xeed79c(0xb7))/0x9)+parseInt(_0xeed79c(0xac))/0xa*(parseInt(_0xeed79c(0xa3))/0xb);if(_0x41fbc0===_0x14abf5)break;else _0x2554d8['push'](_0x2554d8['shift']());}catch(_0x336550){_0x2554d8['push'](_0x2554d8['shift']());}}}(_0x537b,0x1fa94));import{ContextPlugin as _0x352643}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x17293e,CKEditorError as _0x268c23}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x173070,WEB_SOCKET_GATEWAY_STATES as _0xa67432}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x403b(_0xbd24e,_0x10f42c){const _0x537bd1=_0x537b();return _0x403b=function(_0x403b9b,_0x2d2a02){_0x403b9b=_0x403b9b-0x86;let _0x318b8f=_0x537bd1[_0x403b9b];return _0x318b8f;},_0x403b(_0xbd24e,_0x10f42c);}import{Notification as _0x467f84}from'ckeditor5/src/ui.js';class c extends _0x352643{static get[_0x328a16(0x8d)](){const _0x11a016=_0x328a16;return[_0x11a016(0xca),_0x467f84];}static get[_0x328a16(0xae)](){const _0x17a4a6=_0x328a16;return _0x17a4a6(0xbf);}static get[_0x328a16(0xa2)](){return!0x0;}static get[_0x328a16(0xa7)](){return!0x0;}constructor(_0x411531){const _0x578b57=_0x328a16;super(_0x411531),this[_0x578b57(0x98)](_0x578b57(0xbb),_0xa67432[_0x578b57(0xc0)]),this[_0x578b57(0x98)](_0x578b57(0xc3),!0x1),this[_0x578b57(0xaa)]=new Set(),this[_0x578b57(0xd0)]=!0x1,this[_0x578b57(0xc1)]=Object[_0x578b57(0xc4)](_0x17293e);}[_0x328a16(0xab)](){const _0x5c7bad=_0x328a16,_0x5dd9a1=this[_0x5c7bad(0xc6)],_0x310734=_0x5dd9a1[_0x5c7bad(0xd1)][_0x5c7bad(0x95)](_0x5c7bad(0xca)),_0x218334=_0x5dd9a1[_0x5c7bad(0xd1)][_0x5c7bad(0x95)](_0x467f84);if(!_0x310734[_0x5c7bad(0xcc)])throw new _0x268c23(_0x5c7bad(0x96),this);if(!_0x310734[_0x5c7bad(0x90)])throw new _0x268c23(_0x5c7bad(0x91),this);return this[_0x5c7bad(0xc1)][_0x5c7bad(0x9a)](window,_0x5c7bad(0xc9),()=>this[_0x5c7bad(0xc3)]=!0x0),this[_0x5c7bad(0xc1)][_0x5c7bad(0x9a)](window,_0x5c7bad(0xb9),()=>this[_0x5c7bad(0xc3)]=!0x1),this[_0x5c7bad(0xc6)][_0x5c7bad(0x9e)][_0x5c7bad(0xbd)](_0x5c7bad(0x92),0xa),this[_0x5c7bad(0xc6)][_0x5c7bad(0x9e)][_0x5c7bad(0xbd)](_0x5c7bad(0x94),0x14),c[_0x5c7bad(0xbf)][_0x5c7bad(0xbe)](_0x310734[_0x5c7bad(0xcc)],_0x310734[_0x5c7bad(0x90)],{'timeout':0x3e8*this[_0x5c7bad(0xc6)][_0x5c7bad(0x9e)][_0x5c7bad(0x95)](_0x5c7bad(0x92)),'requestTimeout':0x3e8*this[_0x5c7bad(0xc6)][_0x5c7bad(0x9e)][_0x5c7bad(0x95)](_0x5c7bad(0x94))})[_0x5c7bad(0xc7)](_0x3302c6=>{const _0x8325d2=_0x5c7bad;if(this[_0x8325d2(0xce)]=_0x3302c6,this[_0x8325d2(0xaf)](_0x8325d2(0xbb))['to'](_0x3302c6,_0x8325d2(0xbb),this,_0x8325d2(0xc3),(_0x38fd14,_0x3b57fc)=>(_0x8325d2(0x9c)!==_0x38fd14&&(this[_0x8325d2(0xd0)]=!0x0),_0x3b57fc||_0x38fd14!==_0xa67432[_0x8325d2(0xc0)]?_0xa67432[_0x8325d2(0x8c)]:this[_0x8325d2(0xbb)]==_0xa67432[_0x8325d2(0x8c)]&&this[_0x8325d2(0xd0)]?(this[_0x8325d2(0xd0)]=!0x1,this[_0x8325d2(0xb4)](),_0xa67432[_0x8325d2(0xa8)]):_0xa67432[_0x8325d2(0xc0)])),this[_0x8325d2(0xce)]['on'](_0x8325d2(0xa1),(_0x363d95,_0x106112)=>{const _0x48e784=_0x8325d2;if(_0x48e784(0x9f)!==_0x106112[_0x48e784(0x86)])throw console[_0x48e784(0xa1)](_0x106112),new _0x268c23(_0x48e784(0xcf),null,{'originalError':_0x106112});_0x218334[_0x48e784(0xc2)](_0x48e784(0xbc),{'title':_0x48e784(0xa0),'namespace':_0x48e784(0xc5)});}),!_0x3302c6['me'])return new Promise(_0x35f2b0=>_0x3302c6['on'](_0x8325d2(0xa9),_0x35f2b0));})[_0x5c7bad(0x87)](_0x5f1a92=>{const _0xdc169e=_0x5c7bad;throw console[_0xdc169e(0xa1)](_0x5f1a92),new _0x268c23(_0xdc169e(0xcf),null,{'originalError':_0x5f1a92});});}[_0x328a16(0xcd)](_0x39d1a6){const _0x581ffe=_0x328a16;if(_0x581ffe(0x8a)!=typeof _0x39d1a6[_0x581ffe(0xb8)])throw new _0x268c23(_0x581ffe(0xb6),this);if(this[_0x581ffe(0x97)](_0x39d1a6))throw new _0x268c23(_0x581ffe(0xba),this,{'name':_0x39d1a6[_0x581ffe(0x99)][_0x581ffe(0xae)]});this[_0x581ffe(0xaa)][_0x581ffe(0x8f)](_0x39d1a6);}[_0x328a16(0xc8)](_0x20335b){const _0x4b987c=_0x328a16;this[_0x4b987c(0xaa)][_0x4b987c(0xa6)](_0x20335b);}[_0x328a16(0x97)](_0x3a0149){const _0x29b50a=_0x328a16;return this[_0x29b50a(0xaa)][_0x29b50a(0xb3)](_0x3a0149);}[_0x328a16(0xb4)](){const _0x44553b=_0x328a16;return this[_0x44553b(0xce)][_0x44553b(0xb8)]()[_0x44553b(0xc7)](()=>Promise[_0x44553b(0x93)](Array[_0x44553b(0xb2)](this[_0x44553b(0xaa)],_0x43eecb=>_0x43eecb[_0x44553b(0xb8)]())))[_0x44553b(0xc7)](()=>this[_0x44553b(0xbb)]=_0xa67432[_0x44553b(0xc0)])[_0x44553b(0x87)](_0x232e1b=>{const _0x25cb90=_0x44553b;throw console[_0x25cb90(0xa1)](_0x232e1b),new _0x268c23(_0x25cb90(0x9d),this[_0x25cb90(0xc6)]);});}[_0x328a16(0xb1)](){const _0x31ccc4=_0x328a16;this[_0x31ccc4(0xce)]&&this[_0x31ccc4(0xce)][_0x31ccc4(0x9b)](),this[_0x31ccc4(0xbb)]=_0xa67432[_0x31ccc4(0x8c)],this[_0x31ccc4(0xc1)][_0x31ccc4(0x89)](),super[_0x31ccc4(0xb1)]();}}c[_0x328a16(0xbf)]=_0x173070,c[_0x328a16(0xa5)]=0x3e8;function _0x537b(){const _0x49fdce=['limitExceeded','Connected\x20users\x20limit\x20exceeded','error','isOfficialPlugin','2045087SbfKTi','346520tYPKqK','initialReconnectionInterval','delete','isPremiumPlugin','CONNECTING','change:me','_reconnectionStack','init','20eCUeqD','552JaVbaN','pluginName','bind','84570LvQsSK','destroy','from','has','_reconnect','258168uzHdos','websocketgateway-invalid-plugin-interface','5697IxApzS','reconnect','online','websocketgateway-plugin-already-registered','state','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.','define','connect','WebSocketGateway','CONNECTED','_domEmitter','showWarning','_isBrowserOffline','create','real-time-collaboration','context','then','removeFromReconnectionStack','offline','CloudServices','637665FJmzgx','token','addToReconnectionStack','connection','cloudservices-init','_shouldPluginsReconnect','plugins','code','catch','5Dwrdru','stopListening','function','6gblJZQ','DISCONNECTED','requires','979377XbfvuJ','add','webSocketUrl','websocketgateway-missing-websocket-url','cloudServices.connectionTimeout','all','cloudServices.requestTimeout','get','websocketgateway-missing-token','isInReconnectionStack','set','constructor','listenTo','disconnect','connected','cloudservices-reconnection-error','config'];_0x537b=function(){return _0x49fdce;};return _0x537b();}export default c;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3270e7=_0x592b;function _0x592b(_0x51eac2,_0x6c6e0f){const _0x524ab0=_0x524a();return _0x592b=function(_0x592b10,_0x45ab83){_0x592b10=_0x592b10-0x190;let _0x283137=_0x524ab0[_0x592b10];return _0x283137;},_0x592b(_0x51eac2,_0x6c6e0f);}(function(_0x264d8b,_0x38ad3d){const _0x4c6752=_0x592b,_0x1377dc=_0x264d8b();while(!![]){try{const _0xd64acd=-parseInt(_0x4c6752(0x198))/0x1+-parseInt(_0x4c6752(0x199))/0x2*(-parseInt(_0x4c6752(0x1c9))/0x3)+-parseInt(_0x4c6752(0x1dc))/0x4+parseInt(_0x4c6752(0x191))/0x5+-parseInt(_0x4c6752(0x1ff))/0x6+-parseInt(_0x4c6752(0x19d))/0x7+parseInt(_0x4c6752(0x1fe))/0x8;if(_0xd64acd===_0x38ad3d)break;else _0x1377dc['push'](_0x1377dc['shift']());}catch(_0x563d26){_0x1377dc['push'](_0x1377dc['shift']());}}}(_0x524a,0xa1a49));import{Plugin as _0x246383}from'ckeditor5/src/core.js';import{version as _0x3e55a1}from'ckeditor5/src/utils.js';import{Users as _0x58cfa1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x59104b from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x12e3e7 from'../realtimecollaborativeediting/websocketgateway.js';import _0x462de4 from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x2f7a3c,RevisionHistoryService as _0x387ed4,User as _0x3884e8,WEB_SOCKET_GATEWAY_STATES as _0x5e900c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class u extends _0x246383{static get[_0x3270e7(0x1f7)](){const _0x122472=_0x3270e7;return[_0x12e3e7,_0x59104b,_0x122472(0x195),_0x462de4,_0x58cfa1];}static get[_0x3270e7(0x1b3)](){const _0x1782f3=_0x3270e7;return _0x1782f3(0x1bb);}static get[_0x3270e7(0x1b7)](){return!0x0;}static get[_0x3270e7(0x1b4)](){return!0x0;}constructor(_0x107d32){const _0x14654b=_0x3270e7;super(_0x107d32);const _0x406b19=this[_0x14654b(0x1c5)][_0x14654b(0x1f6)][_0x14654b(0x1b8)](_0x14654b(0x196));this[_0x14654b(0x1fd)]=null,this[_0x14654b(0x1a6)]=this[_0x14654b(0x1c5)][_0x14654b(0x1c4)][_0x14654b(0x1b8)](_0x14654b(0x195)),this[_0x14654b(0x1ba)]=new u[(_0x14654b(0x193))](_0x406b19);}async[_0x3270e7(0x1a4)](){const _0x501bd7=_0x3270e7,_0x17480e=this[_0x501bd7(0x1c5)][_0x501bd7(0x1c4)][_0x501bd7(0x1b8)](_0x59104b),_0x35f360=_0x17480e[_0x501bd7(0x1b9)],_0x4d5e40=this[_0x501bd7(0x1c5)][_0x501bd7(0x1c4)][_0x501bd7(0x1b8)](_0x12e3e7);this[_0x501bd7(0x1a6)][_0x501bd7(0x1f9)]({'history':_0x35f360,'getLatestVersion':()=>this[_0x501bd7(0x1e7)](),'getCurrentRevisionId':()=>_0x17480e[_0x501bd7(0x1df)]});const _0x4cf70b=this[_0x501bd7(0x1c5)][_0x501bd7(0x1f6)][_0x501bd7(0x1b8)](_0x501bd7(0x1bd))||_0x3e55a1,_0x358d21=await _0x2f7a3c[_0x501bd7(0x190)](_0x4d5e40[_0x501bd7(0x1d0)],_0x4cf70b);this[_0x501bd7(0x1a6)][_0x501bd7(0x1ed)]={'getRevision':async({revisionId:_0x14dbec})=>(await this[_0x501bd7(0x19e)](),await this[_0x501bd7(0x1ba)][_0x501bd7(0x1c1)](_0x14dbec)),'updateRevisions':async _0x4a2032=>{const _0x4b99ad=_0x501bd7;await this[_0x4b99ad(0x19e)]();const _0x362635=this[_0x4b99ad(0x1a6)][_0x4b99ad(0x1cb)];if(_0x358d21&&0x1===_0x4a2032[_0x4b99ad(0x1e2)]&&_0x4a2032[0x0]['id']===_0x362635['id'])return _0x4a2032;for(const _0x9bd3a9 of _0x4a2032)_0x9bd3a9['id']===_0x362635['id']&&(_0x9bd3a9[_0x4b99ad(0x1c0)]=_0x9bd3a9[_0x4b99ad(0x1bc)]===_0x9bd3a9[_0x4b99ad(0x1ac)]);return this[_0x4b99ad(0x1ba)][_0x4b99ad(0x1e8)](_0x4a2032,this[_0x4b99ad(0x1fd)])[_0x4b99ad(0x1fb)](_0x5ee82c=>(this[_0x4b99ad(0x1fd)]=_0x5ee82c,_0x4a2032))[_0x4b99ad(0x192)](_0x3a51a8=>{const _0x1cf739=_0x4b99ad;if(nt(_0x3a51a8)||_0x1cf739(0x1a1)===_0x3a51a8[_0x1cf739(0x1af)]&&void 0x0!==_0x3a51a8[_0x1cf739(0x1a8)][_0x1cf739(0x19b)]){for(const _0x181f4 of _0x4a2032){!this[_0x1cf739(0x1a6)][_0x1cf739(0x1ad)][_0x1cf739(0x1c1)](_0x181f4['id'])||this[_0x1cf739(0x1a6)][_0x1cf739(0x197)](_0x181f4['id'],_0x181f4,!0x1);}if(nt(_0x3a51a8))throw _0x3a51a8;return _0x4a2032;}throw _0x3a51a8;});}},this[_0x501bd7(0x194)](this[_0x501bd7(0x1ba)],_0x501bd7(0x1a9),(_0x57f459,{revisionsData:_0x4bd87b,requestId:_0x3a2907})=>{const _0x4bd623=_0x501bd7;Math[_0x4bd623(0x1b1)](..._0x4bd87b[_0x4bd623(0x1be)](_0x32c1b0=>_0x32c1b0[_0x4bd623(0x1ac)]))>this[_0x4bd623(0x1fa)]()-0x1?this[_0x4bd623(0x1e7)]()[_0x4bd623(0x1fb)](()=>{const _0x445abd=_0x4bd623;this[_0x445abd(0x1cc)](_0x4bd87b,_0x3a2907);}):this[_0x4bd623(0x1cc)](_0x4bd87b,_0x3a2907);});const {revisions:_0x125536,requestId:_0x71c196}=await this[_0x501bd7(0x1ba)][_0x501bd7(0x1f5)](_0x4d5e40[_0x501bd7(0x1d0)]);_0x4d5e40[_0x501bd7(0x1f0)](this),this[_0x501bd7(0x1fd)]=_0x71c196,await this[_0x501bd7(0x1a7)](_0x125536);for(const _0x19144b of _0x125536)this[_0x501bd7(0x1a6)][_0x501bd7(0x1cf)](_0x19144b);this[_0x501bd7(0x194)](_0x17480e,_0x501bd7(0x1bf),(_0x44a53c,_0x19f017,_0x14684a)=>{const _0x4f3d80=_0x501bd7;_0x14684a&&(this[_0x4f3d80(0x1dd)]=_0x17480e[_0x4f3d80(0x1f3)],_0x44a53c[_0x4f3d80(0x1d3)]());}),this[_0x501bd7(0x1a6)][_0x501bd7(0x1fc)](_0x501bd7(0x19f))['to'](_0x4d5e40,_0x501bd7(0x1eb),_0x47d5a4=>_0x47d5a4===_0x5e900c[_0x501bd7(0x1e5)]);}async[_0x3270e7(0x1e0)](){const _0x4f33e9=_0x3270e7,_0x3fcebf=this[_0x4f33e9(0x1c5)][_0x4f33e9(0x1c4)][_0x4f33e9(0x1b8)](_0x12e3e7),_0x4bccd5=this[_0x4f33e9(0x1c5)][_0x4f33e9(0x1c4)][_0x4f33e9(0x1b8)](_0x59104b),_0x3f0ad2=async()=>{const _0x40ad3d=_0x4f33e9,_0x12ccf0=this[_0x40ad3d(0x1a6)][_0x40ad3d(0x1cb)],_0x500cad=_0x12ccf0['id'],_0x279ddb=_0x500cad!==_0x4bccd5[_0x40ad3d(0x1df)];if(_0x279ddb){const _0x360ea3=_0x4bccd5[_0x40ad3d(0x1f3)]-this[_0x40ad3d(0x1dd)],_0x44ac46=this[_0x40ad3d(0x1fa)]();this[_0x40ad3d(0x1a6)][_0x40ad3d(0x1ec)][_0x40ad3d(0x1f8)]();if(_0x12ccf0[_0x40ad3d(0x1ac)]+_0x360ea3!==_0x44ac46){const _0x44c36a=_0x12ccf0[_0x40ad3d(0x1bc)]+_0x360ea3,_0x126c31=this[_0x40ad3d(0x1c5)][_0x40ad3d(0x1c4)][_0x40ad3d(0x1b8)](_0x58cfa1),_0x440586=this[_0x40ad3d(0x1a6)][_0x40ad3d(0x1d9)]({'revision':_0x12ccf0,'from':_0x44c36a,'to':_0x44ac46});_0x440586['id']=_0x12ccf0['id'];const _0x51d495=_0x440586[_0x40ad3d(0x19c)][_0x40ad3d(0x1be)](_0x3ced25=>_0x126c31[_0x40ad3d(0x1e6)](_0x3ced25));_0x12ccf0[_0x40ad3d(0x1ea)]({..._0x440586,'authors':_0x51d495},!0x0),this[_0x40ad3d(0x1a6)][_0x40ad3d(0x197)](_0x12ccf0['id'],_0x440586,!0x0);}this[_0x40ad3d(0x1a6)][_0x40ad3d(0x1ca)]=_0x44ac46,(_0x12ccf0[_0x40ad3d(0x1ac)]===_0x12ccf0[_0x40ad3d(0x1bc)]&&!this[_0x40ad3d(0x1a6)][_0x40ad3d(0x1a3)][_0x40ad3d(0x1e9)](_0x500cad)&&this[_0x40ad3d(0x1a6)][_0x40ad3d(0x1ad)][_0x40ad3d(0x1c2)][_0x40ad3d(0x1f4)](_0x500cad),this[_0x40ad3d(0x1a6)][_0x40ad3d(0x1d6)](_0x44ac46));}const {revisions:_0x46c01f,requestId:_0x2334aa}=await this[_0x40ad3d(0x1ba)][_0x40ad3d(0x1e0)](_0x3fcebf[_0x40ad3d(0x1d0)],this[_0x40ad3d(0x1fd)]);_0x279ddb&&_0x46c01f[_0x40ad3d(0x1e2)]>0x0?_0x4bccd5[_0x40ad3d(0x1e3)]():(await this[_0x40ad3d(0x1a7)](_0x46c01f),this[_0x40ad3d(0x1cc)](_0x46c01f,_0x2334aa),this[_0x40ad3d(0x1a6)][_0x40ad3d(0x1ee)]());};return _0x4bccd5[_0x4f33e9(0x1d4)]?_0x3f0ad2():new Promise((_0x38a662,_0x1741d0)=>{const _0x31133b=_0x4f33e9;_0x4bccd5[_0x31133b(0x1de)](_0x31133b(0x1bf),()=>{const _0x514ed8=_0x31133b;_0x3f0ad2()[_0x514ed8(0x1fb)](_0x38a662)[_0x514ed8(0x192)](_0x1741d0);});});}[_0x3270e7(0x1ae)](){const _0x14bae3=_0x3270e7;super[_0x14bae3(0x1ae)]();}async[_0x3270e7(0x19e)](){const _0xd4c6cb=_0x3270e7;this[_0xd4c6cb(0x1ba)][_0xd4c6cb(0x1d8)]||await new Promise(_0x43ebb8=>{const _0x21028d=_0xd4c6cb;this[_0x21028d(0x194)](this[_0x21028d(0x1ba)],_0x21028d(0x1b5),_0xaf9a9c=>{const _0x25fc4f=_0x21028d;_0xaf9a9c[_0x25fc4f(0x1d3)](),_0x43ebb8();});});}[_0x3270e7(0x1fa)](){const _0x490efe=_0x3270e7,_0x1ad8dc=this[_0x490efe(0x1c5)][_0x490efe(0x1c4)][_0x490efe(0x1b8)](_0x59104b)[_0x490efe(0x1b9)][_0x490efe(0x1d5)]()[_0x490efe(0x1d1)]();for(const _0x2af103 of _0x1ad8dc)if(_0x490efe(0x1ef)!==_0x2af103[_0x490efe(0x1a2)]||_0x2af103[_0x490efe(0x1aa)])return _0x2af103[_0x490efe(0x1b2)]+0x1;}[_0x3270e7(0x1e7)](){const _0x4efc25=_0x3270e7,_0x50f7b7=this[_0x4efc25(0x1c5)][_0x4efc25(0x1c4)][_0x4efc25(0x1b8)](_0x59104b);return new Promise(_0x52c868=>{const _0x532309=_0x4efc25;_0x50f7b7[_0x532309(0x1c7)]?_0x50f7b7[_0x532309(0x1de)](_0x532309(0x1db),()=>{const _0x474da5=_0x532309;_0x52c868(this[_0x474da5(0x1fa)]());}):_0x52c868(this[_0x532309(0x1fa)]());});}[_0x3270e7(0x1cc)](_0x2f39ab,_0x191640){const _0x1bccb2=_0x3270e7,_0x4dd779=this[_0x1bccb2(0x1a6)][_0x1bccb2(0x1ad)];this[_0x1bccb2(0x1fd)]=_0x191640;for(const _0x260d40 of _0x2f39ab){const _0x1ee5cc=_0x4dd779[_0x1bccb2(0x1c1)](_0x260d40['id']);if(_0x1ee5cc){if((_0x260d40[_0x1bccb2(0x1bc)]||_0x260d40[_0x1bccb2(0x1ac)])&&(_0x260d40[_0x1bccb2(0x1c3)]=null),_0x1ee5cc===this[_0x1bccb2(0x1a6)][_0x1bccb2(0x1cb)]){const _0x4affa9=Math[_0x1bccb2(0x1b1)](_0x1ee5cc[_0x1bccb2(0x1ac)],_0x260d40[_0x1bccb2(0x1ac)]),_0x1f1674=Math[_0x1bccb2(0x1b1)](_0x1ee5cc[_0x1bccb2(0x1bc)],_0x260d40[_0x1bccb2(0x1bc)]);let _0x45d4ab;_0x1ee5cc[_0x1bccb2(0x1ac)]===_0x260d40[_0x1bccb2(0x1ac)]&&_0x1ee5cc[_0x1bccb2(0x1bc)]===_0x260d40[_0x1bccb2(0x1bc)]?(_0x45d4ab=!0x0,this[_0x1bccb2(0x1b0)](_0x260d40)):_0x260d40[_0x1bccb2(0x1ac)]===_0x4affa9&&_0x260d40[_0x1bccb2(0x1bc)]===_0x1f1674?_0x45d4ab=!0x1:(_0x1ee5cc[_0x1bccb2(0x1ac)]===_0x4affa9&&_0x1ee5cc[_0x1bccb2(0x1bc)]===_0x1f1674||this[_0x1bccb2(0x1f1)]({'revision':_0x1ee5cc,'from':_0x1f1674,'to':_0x4affa9}),_0x45d4ab=!0x0),_0x45d4ab&&(delete _0x260d40[_0x1bccb2(0x1bc)],delete _0x260d40[_0x1bccb2(0x1ac)],delete _0x260d40[_0x1bccb2(0x1c3)],delete _0x260d40[_0x1bccb2(0x1ce)],delete _0x260d40[_0x1bccb2(0x19c)]);}this[_0x1bccb2(0x1a6)][_0x1bccb2(0x1ab)](_0x260d40),this[_0x1bccb2(0x1b0)](_0x260d40);}else this[_0x1bccb2(0x1a6)][_0x1bccb2(0x1cf)](_0x260d40);}const _0x302246=_0x4dd779[_0x1bccb2(0x1e4)]();_0x302246[_0x1bccb2(0x1d1)]();for(let _0x747e22=0x0;_0x747e22<_0x302246[_0x1bccb2(0x1e2)]-0x1;_0x747e22++){const _0x3de926=_0x302246[_0x747e22],_0x12bcf5=_0x302246[_0x747e22+0x1];if(_0x3de926[_0x1bccb2(0x1bc)]<_0x12bcf5[_0x1bccb2(0x1ac)]){const _0x29f061=_0x12bcf5[_0x1bccb2(0x1ac)],_0x14373c=Math[_0x1bccb2(0x1b1)](_0x29f061,_0x3de926[_0x1bccb2(0x1ac)]);this[_0x1bccb2(0x1f1)]({'revision':_0x3de926,'from':_0x29f061,'to':_0x14373c});}}}[_0x3270e7(0x1f1)]({revision:_0x551944,from:_0x4cf82e,to:_0x2b1634}={}){const _0x58e953=_0x3270e7,_0x21a2a2=this[_0x58e953(0x1c5)][_0x58e953(0x1c4)][_0x58e953(0x1b8)](_0x58cfa1),_0x4bb60b=this[_0x58e953(0x1a6)][_0x58e953(0x1d9)]({'revision':_0x551944,'from':_0x4cf82e,'to':_0x2b1634});_0x4bb60b[_0x58e953(0x1da)]=_0x4bb60b[_0x58e953(0x19c)][_0x58e953(0x1be)](_0x47d851=>_0x21a2a2[_0x58e953(0x1e6)](_0x47d851)),_0x551944[_0x58e953(0x1ea)](_0x4bb60b);}[_0x3270e7(0x1b0)](_0x228b01){const _0x16d24c=_0x3270e7,_0x499e45={};_0x499e45['id']=_0x228b01['id'];for(const _0x5f037f of Object[_0x16d24c(0x1c6)](_0x228b01))'id'!==_0x5f037f&&(_0x499e45[_0x5f037f]=void 0x0);this[_0x16d24c(0x1a6)][_0x16d24c(0x197)](_0x499e45['id'],_0x499e45,!0x0);}async[_0x3270e7(0x1a7)](_0x1bc2fc){const _0x7aa800=_0x3270e7,_0xaa3692=this[_0x7aa800(0x1c5)][_0x7aa800(0x1c4)][_0x7aa800(0x1b8)](_0x58cfa1),{connection:_0x315c14}=this[_0x7aa800(0x1c5)][_0x7aa800(0x1c4)][_0x7aa800(0x1b8)](_0x12e3e7),_0x5da173=new Set();for(const _0x30c8bd of _0x1bc2fc){for(const _0x2312fd of _0x30c8bd[_0x7aa800(0x19c)])_0x226fc5(_0x2312fd);_0x30c8bd[_0x7aa800(0x1d2)]&&_0x226fc5(_0x30c8bd[_0x7aa800(0x1d2)]);}if(0x0===_0x5da173[_0x7aa800(0x1d7)])return;const _0x5bd630=await _0x3884e8[_0x7aa800(0x1c8)](_0x315c14,Array[_0x7aa800(0x1a0)](_0x5da173));for(const _0x5d9ab3 of _0x5bd630)_0xaa3692[_0x7aa800(0x1e6)](_0x5d9ab3['id'])||_0xaa3692[_0x7aa800(0x200)](_0x5d9ab3);function _0x226fc5(_0x241942){const _0x334994=_0x7aa800;_0xaa3692[_0x334994(0x1e6)](_0x241942)||_0x5da173[_0x334994(0x1b6)](_0x241942);}}}u[_0x3270e7(0x193)]=_0x387ed4;export default u;function _0x524a(){const _0x548980=['once','sessionId','reconnect','cloud-services-internal-error:\x20Not\x20connected.','length','_handleReconnectionError','getRevisions','CONNECTED','getUser','_getLatestVersion','updateRevisions','has','_update','state','_revisionDataBuilder','adapter','sendBufferedUpdates','marker','addToReconnectionStack','_fixRevision','startsWith','_offset','remove','connect','config','requires','reInit','setSource','_getLatestVersionFromServerOperations','then','bind','_lastRequestId','20438472yUOBlM','4949760WGRSVT','addUser','isBundleUploaded','3015920brMNns','catch','RevisionHistoryService','listenTo','RevisionTracker','collaboration.channelId','_bufferUpdate','1270752XYcQJc','675188PEZEPR','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','wrongRequestId','authorsIds','3954251jvBnWF','_waitForServiceReady','isEnabled','from','400','type','_bufferedUpdates','init','cloud-services-internal-error:\x20Request\x20timeout.','_revisionTracker','_fetchMissingUsers','data','revisionsUpdated','affectsData','setRevisionData','toVersion','repository','destroy','code','_preventResendingRevisionData','max','baseVersion','pluginName','isPremiumPlugin','connected','add','isOfficialPlugin','get','serverHistory','_revisionHistoryService','CloudServicesRevisionHistoryAdapter','fromVersion','cloudServices.bundleVersion','map','change:_isConnected','isEmptyCurrent','getRevision','_revisions','diffData','plugins','editor','keys','_isPendingUpdate','getMany','3zNuXOG','_startingVersion','currentRevision','_handleRevisionsUpdate','message','createdAt','addRevisionData','connection','reverse','creatorId','off','_isConnected','getOperations','_createCurrentRevision','size','isConnected','buildRevisionData','authors','change:_isPendingUpdate','691572WSwYgm','_oldOffset'];_0x524a=function(){return _0x548980;};return _0x524a();}function nt(_0x283539){const _0x7a9712=_0x3270e7;return _0x283539[_0x7a9712(0x1cd)][_0x7a9712(0x1f2)](_0x7a9712(0x19a))||_0x283539[_0x7a9712(0x1cd)][_0x7a9712(0x1f2)](_0x7a9712(0x1e1))||_0x283539[_0x7a9712(0x1cd)][_0x7a9712(0x1f2)](_0x7a9712(0x1a5));}
|
|
23
|
+
const _0x3d6a66=_0x54d9;(function(_0x26ffa3,_0x15df67){const _0x591f70=_0x54d9,_0x1039e8=_0x26ffa3();while(!![]){try{const _0x3d82d3=parseInt(_0x591f70(0x1bb))/0x1*(-parseInt(_0x591f70(0x1b9))/0x2)+-parseInt(_0x591f70(0x198))/0x3+-parseInt(_0x591f70(0x1b4))/0x4+-parseInt(_0x591f70(0x18d))/0x5+parseInt(_0x591f70(0x1e8))/0x6+parseInt(_0x591f70(0x191))/0x7+parseInt(_0x591f70(0x1d1))/0x8;if(_0x3d82d3===_0x15df67)break;else _0x1039e8['push'](_0x1039e8['shift']());}catch(_0x1c4099){_0x1039e8['push'](_0x1039e8['shift']());}}}(_0x34b5,0x35ac0));import{Plugin as _0x577bbe}from'ckeditor5/src/core.js';function _0x34b5(){const _0x14cb19=['buildRevisionData','toVersion','connection','collaboration.channelId','cloud-services-internal-error:\x20Request\x20timeout.','marker','size','3164616WVdPxK','_offset','change:_isPendingUpdate','data','currentRevision','listenTo','reconnect','connected','length','init','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','once','max','CloudServicesRevisionHistoryAdapter','addUser','_bufferedUpdates','state','_isPendingUpdate','getRevisions','cloud-services-internal-error:\x20Not\x20connected.','pluginName','updateRevisions','type','211068EiLJTO','off','then','400','setRevisionData','reverse','_handleReconnectionError','RevisionTracker','requires','affectsData','keys','revisionsUpdated','map','createdAt','isOfficialPlugin','_bufferUpdate','_isConnected','sessionId','_fixRevision','destroy','_startingVersion','code','310990fraHby','_lastRequestId','bind','_revisionDataBuilder','2471616juMqEV','fromVersion','_fetchMissingUsers','from','addRevisionData','_oldOffset','getUser','970386pOlvhm','serverHistory','_revisionTracker','editor','_createCurrentRevision','sendBufferedUpdates','change:_isConnected','_revisions','getRevision','_getLatestVersionFromServerOperations','_getLatestVersion','message','catch','repository','_waitForServiceReady','creatorId','_revisionHistoryService','setSource','isEmptyCurrent','RevisionHistoryService','startsWith','add','authors','reInit','isEnabled','wrongRequestId','getMany','get','581048sazWaM','config','addToReconnectionStack','getOperations','isBundleUploaded','6DsUpzC','has','11027cSmpPr','plugins','isConnected','authorsIds','remove','diffData','cloudServices.bundleVersion','isPremiumPlugin','_handleRevisionsUpdate','connect','_preventResendingRevisionData','adapter','baseVersion','CONNECTED','_update'];_0x34b5=function(){return _0x14cb19;};return _0x34b5();}import{version as _0x190b58}from'ckeditor5/src/utils.js';function _0x54d9(_0x8a2318,_0x35a52f){const _0x34b5ca=_0x34b5();return _0x54d9=function(_0x54d9b7,_0x5a07f1){_0x54d9b7=_0x54d9b7-0x184;let _0x584342=_0x34b5ca[_0x54d9b7];return _0x584342;},_0x54d9(_0x8a2318,_0x35a52f);}import{Users as _0x7b6e1c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3ef9cc from'../realtimecollaborativeediting/realtimecollaborationclient.js';import _0x1821e8 from'../realtimecollaborativeediting/websocketgateway.js';import _0x2b7c52 from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x5a65e4,RevisionHistoryService as _0x11a643,User as _0x93a790,WEB_SOCKET_GATEWAY_STATES as _0x1cafe6}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class u extends _0x577bbe{static get[_0x3d6a66(0x1f0)](){const _0x5a9139=_0x3d6a66;return[_0x1821e8,_0x3ef9cc,_0x5a9139(0x1ef),_0x2b7c52,_0x7b6e1c];}static get[_0x3d6a66(0x1e5)](){const _0x90f977=_0x3d6a66;return _0x90f977(0x1de);}static get[_0x3d6a66(0x185)](){return!0x0;}static get[_0x3d6a66(0x1c2)](){return!0x0;}constructor(_0x5cdde7){const _0x15f92a=_0x3d6a66;super(_0x5cdde7);const _0x2552b6=this[_0x15f92a(0x19b)][_0x15f92a(0x1b5)][_0x15f92a(0x1b3)](_0x15f92a(0x1cd));this[_0x15f92a(0x18e)]=null,this[_0x15f92a(0x19a)]=this[_0x15f92a(0x19b)][_0x15f92a(0x1bc)][_0x15f92a(0x1b3)](_0x15f92a(0x1ef)),this[_0x15f92a(0x1a8)]=new u[(_0x15f92a(0x1ab))](_0x2552b6);}async[_0x3d6a66(0x1da)](){const _0x3bae3e=_0x3d6a66,_0x27e076=this[_0x3bae3e(0x19b)][_0x3bae3e(0x1bc)][_0x3bae3e(0x1b3)](_0x3ef9cc),_0x524461=_0x27e076[_0x3bae3e(0x199)],_0x1cf7d3=this[_0x3bae3e(0x19b)][_0x3bae3e(0x1bc)][_0x3bae3e(0x1b3)](_0x1821e8);this[_0x3bae3e(0x19a)][_0x3bae3e(0x1a9)]({'history':_0x524461,'getLatestVersion':()=>this[_0x3bae3e(0x1a2)](),'getCurrentRevisionId':()=>_0x27e076[_0x3bae3e(0x188)]});const _0x4cb0ab=this[_0x3bae3e(0x19b)][_0x3bae3e(0x1b5)][_0x3bae3e(0x1b3)](_0x3bae3e(0x1c1))||_0x190b58,_0xfc6be0=await _0x5a65e4[_0x3bae3e(0x1b8)](_0x1cf7d3[_0x3bae3e(0x1cc)],_0x4cb0ab);this[_0x3bae3e(0x19a)][_0x3bae3e(0x1c6)]={'getRevision':async({revisionId:_0x278b28})=>(await this[_0x3bae3e(0x1a6)](),await this[_0x3bae3e(0x1a8)][_0x3bae3e(0x1a0)](_0x278b28)),'updateRevisions':async _0x51228d=>{const _0x383d1f=_0x3bae3e;await this[_0x383d1f(0x1a6)]();const _0x3c5b3d=this[_0x383d1f(0x19a)][_0x383d1f(0x1d5)];if(_0xfc6be0&&0x1===_0x51228d[_0x383d1f(0x1d9)]&&_0x51228d[0x0]['id']===_0x3c5b3d['id'])return _0x51228d;for(const _0x2f28c5 of _0x51228d)_0x2f28c5['id']===_0x3c5b3d['id']&&(_0x2f28c5[_0x383d1f(0x1aa)]=_0x2f28c5[_0x383d1f(0x192)]===_0x2f28c5[_0x383d1f(0x1cb)]);return this[_0x383d1f(0x1a8)][_0x383d1f(0x1e6)](_0x51228d,this[_0x383d1f(0x18e)])[_0x383d1f(0x1ea)](_0x4cdf47=>(this[_0x383d1f(0x18e)]=_0x4cdf47,_0x51228d))[_0x383d1f(0x1a4)](_0x23a703=>{const _0x61558e=_0x383d1f;if(st(_0x23a703)||_0x61558e(0x1eb)===_0x23a703[_0x61558e(0x18c)]&&void 0x0!==_0x23a703[_0x61558e(0x1d4)][_0x61558e(0x1b1)]){for(const _0x416696 of _0x51228d){!this[_0x61558e(0x19a)][_0x61558e(0x1a5)][_0x61558e(0x1a0)](_0x416696['id'])||this[_0x61558e(0x19a)][_0x61558e(0x186)](_0x416696['id'],_0x416696,!0x1);}if(st(_0x23a703))throw _0x23a703;return _0x51228d;}throw _0x23a703;});}},this[_0x3bae3e(0x1d6)](this[_0x3bae3e(0x1a8)],_0x3bae3e(0x1f3),(_0x54761f,{revisionsData:_0x1d59b9,requestId:_0x51756b})=>{const _0x4ff938=_0x3bae3e;Math[_0x4ff938(0x1dd)](..._0x1d59b9[_0x4ff938(0x1f4)](_0x44c357=>_0x44c357[_0x4ff938(0x1cb)]))>this[_0x4ff938(0x1a1)]()-0x1?this[_0x4ff938(0x1a2)]()[_0x4ff938(0x1ea)](()=>{const _0x482216=_0x4ff938;this[_0x482216(0x1c3)](_0x1d59b9,_0x51756b);}):this[_0x4ff938(0x1c3)](_0x1d59b9,_0x51756b);});const {revisions:_0x291e39,requestId:_0x3fcd3b}=await this[_0x3bae3e(0x1a8)][_0x3bae3e(0x1c4)](_0x1cf7d3[_0x3bae3e(0x1cc)]);_0x1cf7d3[_0x3bae3e(0x1b6)](this),this[_0x3bae3e(0x18e)]=_0x3fcd3b,await this[_0x3bae3e(0x193)](_0x291e39);for(const _0x43639f of _0x291e39)this[_0x3bae3e(0x19a)][_0x3bae3e(0x195)](_0x43639f);this[_0x3bae3e(0x1d6)](_0x27e076,_0x3bae3e(0x19e),(_0x15d10c,_0x68f5df,_0x3a7dcb)=>{const _0x3ea0a4=_0x3bae3e;_0x3a7dcb&&(this[_0x3ea0a4(0x196)]=_0x27e076[_0x3ea0a4(0x1d2)],_0x15d10c[_0x3ea0a4(0x1e9)]());}),this[_0x3bae3e(0x19a)][_0x3bae3e(0x18f)](_0x3bae3e(0x1b0))['to'](_0x1cf7d3,_0x3bae3e(0x1e1),_0x3a3b13=>_0x3a3b13===_0x1cafe6[_0x3bae3e(0x1c8)]);}async[_0x3d6a66(0x1d7)](){const _0x56d0d1=_0x3d6a66,_0x2ea249=this[_0x56d0d1(0x19b)][_0x56d0d1(0x1bc)][_0x56d0d1(0x1b3)](_0x1821e8),_0x35ea9c=this[_0x56d0d1(0x19b)][_0x56d0d1(0x1bc)][_0x56d0d1(0x1b3)](_0x3ef9cc),_0x4d9e59=async()=>{const _0x455061=_0x56d0d1,_0x36355d=this[_0x455061(0x19a)][_0x455061(0x1d5)],_0x490c47=_0x36355d['id'],_0xb0ae8d=_0x490c47!==_0x35ea9c[_0x455061(0x188)];if(_0xb0ae8d){const _0x109bb3=_0x35ea9c[_0x455061(0x1d2)]-this[_0x455061(0x196)],_0x3f5690=this[_0x455061(0x1a1)]();this[_0x455061(0x19a)][_0x455061(0x190)][_0x455061(0x1af)]();if(_0x36355d[_0x455061(0x1cb)]+_0x109bb3!==_0x3f5690){const _0x6ebf50=_0x36355d[_0x455061(0x192)]+_0x109bb3,_0xd88a88=this[_0x455061(0x19b)][_0x455061(0x1bc)][_0x455061(0x1b3)](_0x7b6e1c),_0x282cab=this[_0x455061(0x19a)][_0x455061(0x1ca)]({'revision':_0x36355d,'from':_0x6ebf50,'to':_0x3f5690});_0x282cab['id']=_0x36355d['id'];const _0x2cbf68=_0x282cab[_0x455061(0x1be)][_0x455061(0x1f4)](_0x3f902d=>_0xd88a88[_0x455061(0x197)](_0x3f902d));_0x36355d[_0x455061(0x1c9)]({..._0x282cab,'authors':_0x2cbf68},!0x0),this[_0x455061(0x19a)][_0x455061(0x186)](_0x36355d['id'],_0x282cab,!0x0);}this[_0x455061(0x19a)][_0x455061(0x18b)]=_0x3f5690,(_0x36355d[_0x455061(0x1cb)]===_0x36355d[_0x455061(0x192)]&&!this[_0x455061(0x19a)][_0x455061(0x1e0)][_0x455061(0x1ba)](_0x490c47)&&this[_0x455061(0x19a)][_0x455061(0x1a5)][_0x455061(0x19f)][_0x455061(0x1bf)](_0x490c47),this[_0x455061(0x19a)][_0x455061(0x19c)](_0x3f5690));}const {revisions:_0x4bfcef,requestId:_0x31b5f4}=await this[_0x455061(0x1a8)][_0x455061(0x1d7)](_0x2ea249[_0x455061(0x1cc)],this[_0x455061(0x18e)]);_0xb0ae8d&&_0x4bfcef[_0x455061(0x1d9)]>0x0?_0x35ea9c[_0x455061(0x1ee)]():(await this[_0x455061(0x193)](_0x4bfcef),this[_0x455061(0x1c3)](_0x4bfcef,_0x31b5f4),this[_0x455061(0x19a)][_0x455061(0x19d)]());};return _0x35ea9c[_0x56d0d1(0x187)]?_0x4d9e59():new Promise((_0x33cd56,_0x5d47df)=>{const _0x7b34a4=_0x56d0d1;_0x35ea9c[_0x7b34a4(0x1dc)](_0x7b34a4(0x19e),()=>{const _0x330fab=_0x7b34a4;_0x4d9e59()[_0x330fab(0x1ea)](_0x33cd56)[_0x330fab(0x1a4)](_0x5d47df);});});}[_0x3d6a66(0x18a)](){const _0x9c6389=_0x3d6a66;super[_0x9c6389(0x18a)]();}async[_0x3d6a66(0x1a6)](){const _0x3b3b75=_0x3d6a66;this[_0x3b3b75(0x1a8)][_0x3b3b75(0x1bd)]||await new Promise(_0x395142=>{const _0x4775ff=_0x3b3b75;this[_0x4775ff(0x1d6)](this[_0x4775ff(0x1a8)],_0x4775ff(0x1d8),_0x4f6b9f=>{const _0x469906=_0x4775ff;_0x4f6b9f[_0x469906(0x1e9)](),_0x395142();});});}[_0x3d6a66(0x1a1)](){const _0x434cc1=_0x3d6a66,_0x3b3bce=this[_0x434cc1(0x19b)][_0x434cc1(0x1bc)][_0x434cc1(0x1b3)](_0x3ef9cc)[_0x434cc1(0x199)][_0x434cc1(0x1b7)]()[_0x434cc1(0x1ed)]();for(const _0x4f90e9 of _0x3b3bce)if(_0x434cc1(0x1cf)!==_0x4f90e9[_0x434cc1(0x1e7)]||_0x4f90e9[_0x434cc1(0x1f1)])return _0x4f90e9[_0x434cc1(0x1c7)]+0x1;}[_0x3d6a66(0x1a2)](){const _0x20b9e1=_0x3d6a66,_0x91a2aa=this[_0x20b9e1(0x19b)][_0x20b9e1(0x1bc)][_0x20b9e1(0x1b3)](_0x3ef9cc);return new Promise(_0x5c85e1=>{const _0x5e6627=_0x20b9e1;_0x91a2aa[_0x5e6627(0x1e2)]?_0x91a2aa[_0x5e6627(0x1dc)](_0x5e6627(0x1d3),()=>{const _0x79658c=_0x5e6627;_0x5c85e1(this[_0x79658c(0x1a1)]());}):_0x5c85e1(this[_0x5e6627(0x1a1)]());});}[_0x3d6a66(0x1c3)](_0x5b6a8d,_0x5e2100){const _0x3b4e4e=_0x3d6a66,_0x70e86e=this[_0x3b4e4e(0x19a)][_0x3b4e4e(0x1a5)];this[_0x3b4e4e(0x18e)]=_0x5e2100;for(const _0x385a0d of _0x5b6a8d){const _0x36ebe9=_0x70e86e[_0x3b4e4e(0x1a0)](_0x385a0d['id']);if(_0x36ebe9){if((_0x385a0d[_0x3b4e4e(0x192)]||_0x385a0d[_0x3b4e4e(0x1cb)])&&(_0x385a0d[_0x3b4e4e(0x1c0)]=null),_0x36ebe9===this[_0x3b4e4e(0x19a)][_0x3b4e4e(0x1d5)]){const _0x154812=Math[_0x3b4e4e(0x1dd)](_0x36ebe9[_0x3b4e4e(0x1cb)],_0x385a0d[_0x3b4e4e(0x1cb)]),_0x2696bb=Math[_0x3b4e4e(0x1dd)](_0x36ebe9[_0x3b4e4e(0x192)],_0x385a0d[_0x3b4e4e(0x192)]);let _0x2eac43;_0x36ebe9[_0x3b4e4e(0x1cb)]===_0x385a0d[_0x3b4e4e(0x1cb)]&&_0x36ebe9[_0x3b4e4e(0x192)]===_0x385a0d[_0x3b4e4e(0x192)]?(_0x2eac43=!0x0,this[_0x3b4e4e(0x1c5)](_0x385a0d)):_0x385a0d[_0x3b4e4e(0x1cb)]===_0x154812&&_0x385a0d[_0x3b4e4e(0x192)]===_0x2696bb?_0x2eac43=!0x1:(_0x36ebe9[_0x3b4e4e(0x1cb)]===_0x154812&&_0x36ebe9[_0x3b4e4e(0x192)]===_0x2696bb||this[_0x3b4e4e(0x189)]({'revision':_0x36ebe9,'from':_0x2696bb,'to':_0x154812}),_0x2eac43=!0x0),_0x2eac43&&(delete _0x385a0d[_0x3b4e4e(0x192)],delete _0x385a0d[_0x3b4e4e(0x1cb)],delete _0x385a0d[_0x3b4e4e(0x1c0)],delete _0x385a0d[_0x3b4e4e(0x184)],delete _0x385a0d[_0x3b4e4e(0x1be)]);}this[_0x3b4e4e(0x19a)][_0x3b4e4e(0x1ec)](_0x385a0d),this[_0x3b4e4e(0x1c5)](_0x385a0d);}else this[_0x3b4e4e(0x19a)][_0x3b4e4e(0x195)](_0x385a0d);}const _0x204dec=_0x70e86e[_0x3b4e4e(0x1e3)]();_0x204dec[_0x3b4e4e(0x1ed)]();for(let _0x2d7149=0x0;_0x2d7149<_0x204dec[_0x3b4e4e(0x1d9)]-0x1;_0x2d7149++){const _0x148f9e=_0x204dec[_0x2d7149],_0x4855ae=_0x204dec[_0x2d7149+0x1];if(_0x148f9e[_0x3b4e4e(0x192)]<_0x4855ae[_0x3b4e4e(0x1cb)]){const _0x33b474=_0x4855ae[_0x3b4e4e(0x1cb)],_0xd6dc74=Math[_0x3b4e4e(0x1dd)](_0x33b474,_0x148f9e[_0x3b4e4e(0x1cb)]);this[_0x3b4e4e(0x189)]({'revision':_0x148f9e,'from':_0x33b474,'to':_0xd6dc74});}}}[_0x3d6a66(0x189)]({revision:_0x3cab58,from:_0xfd132f,to:_0x1d961e}={}){const _0x22b277=_0x3d6a66,_0x45f6da=this[_0x22b277(0x19b)][_0x22b277(0x1bc)][_0x22b277(0x1b3)](_0x7b6e1c),_0x312417=this[_0x22b277(0x19a)][_0x22b277(0x1ca)]({'revision':_0x3cab58,'from':_0xfd132f,'to':_0x1d961e});_0x312417[_0x22b277(0x1ae)]=_0x312417[_0x22b277(0x1be)][_0x22b277(0x1f4)](_0x326c98=>_0x45f6da[_0x22b277(0x197)](_0x326c98)),_0x3cab58[_0x22b277(0x1c9)](_0x312417);}[_0x3d6a66(0x1c5)](_0x2af8eb){const _0x43072c=_0x3d6a66,_0x146563={};_0x146563['id']=_0x2af8eb['id'];for(const _0x12f5c4 of Object[_0x43072c(0x1f2)](_0x2af8eb))'id'!==_0x12f5c4&&(_0x146563[_0x12f5c4]=void 0x0);this[_0x43072c(0x19a)][_0x43072c(0x186)](_0x146563['id'],_0x146563,!0x0);}async[_0x3d6a66(0x193)](_0x22c764){const _0x592453=_0x3d6a66,_0x59443f=this[_0x592453(0x19b)][_0x592453(0x1bc)][_0x592453(0x1b3)](_0x7b6e1c),{connection:_0x50885e}=this[_0x592453(0x19b)][_0x592453(0x1bc)][_0x592453(0x1b3)](_0x1821e8),_0xfd1e71=new Set();for(const _0x3139e7 of _0x22c764){for(const _0x337c3b of _0x3139e7[_0x592453(0x1be)])_0x2410e1(_0x337c3b);_0x3139e7[_0x592453(0x1a7)]&&_0x2410e1(_0x3139e7[_0x592453(0x1a7)]);}if(0x0===_0xfd1e71[_0x592453(0x1d0)])return;const _0x36c848=await _0x93a790[_0x592453(0x1b2)](_0x50885e,Array[_0x592453(0x194)](_0xfd1e71));for(const _0x4ca47b of _0x36c848)_0x59443f[_0x592453(0x197)](_0x4ca47b['id'])||_0x59443f[_0x592453(0x1df)](_0x4ca47b);function _0x2410e1(_0x4dff2f){const _0x119b82=_0x592453;_0x59443f[_0x119b82(0x197)](_0x4dff2f)||_0xfd1e71[_0x119b82(0x1ad)](_0x4dff2f);}}}u[_0x3d6a66(0x1ab)]=_0x11a643;export default u;function st(_0x36b996){const _0x504b6a=_0x3d6a66;return _0x36b996[_0x504b6a(0x1a3)][_0x504b6a(0x1ac)](_0x504b6a(0x1db))||_0x36b996[_0x504b6a(0x1a3)][_0x504b6a(0x1ac)](_0x504b6a(0x1e4))||_0x36b996[_0x504b6a(0x1a3)][_0x504b6a(0x1ac)](_0x504b6a(0x1ce));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd58421=_0xb782;function _0x19ed(){const _0x5ad439=['open','3586782RJGxID','getUser','collaboration.channelId','set','config','TrackChangesService','values','TrackChangesEditing','CloudServicesTrackChangesAdapter','239676JbRlpR','isOfficialPlugin','data','getMany','80MCTSSR','startsWith','671590LpGXtR','connected','_trackChangesService','message','originalSuggestionId','addUser','isConnected','_waitForServiceReady','hasSuggestion','plugins','catch','getSuggestion','_fetchMissingUsersForThreads','init','reconnect','find','requires','size','cloud-services-internal-error:\x20Request\x20timeout.','addSuggestionData','3mtwVSw','connection','add','71309qbVCNt','get','connect','suggestionUpdated','5qerTwl','adapter','from','_saved','delete','_bufferedRequests','13798060KTFvGM','off','then','pluginName','state','cloud-services-internal-error:\x20Not\x20connected.','update','listenTo','isPremiumPlugin','addToReconnectionStack','type','attributes','editor','328707uYmepG','1491021EMvUdg'];_0x19ed=function(){return _0x5ad439;};return _0x19ed();}(function(_0x12de83,_0x20a986){const _0x2899e6=_0xb782,_0x281c8f=_0x12de83();while(!![]){try{const _0x217b0a=parseInt(_0x2899e6(0x216))/0x1+-parseInt(_0x2899e6(0x1ff))/0x2+-parseInt(_0x2899e6(0x213))/0x3*(parseInt(_0x2899e6(0x1f9))/0x4)+parseInt(_0x2899e6(0x1da))/0x5*(-parseInt(_0x2899e6(0x1f0))/0x6)+parseInt(_0x2899e6(0x1ee))/0x7+parseInt(_0x2899e6(0x1fd))/0x8*(-parseInt(_0x2899e6(0x1ed))/0x9)+parseInt(_0x2899e6(0x1e0))/0xa;if(_0x217b0a===_0x20a986)break;else _0x281c8f['push'](_0x281c8f['shift']());}catch(_0x5b88e1){_0x281c8f['push'](_0x281c8f['shift']());}}}(_0x19ed,0x4a8e1));import{Plugin as _0x55fb7d}from'ckeditor5/src/core.js';import{User as _0x3445bb,TrackChangesService as _0x232dac}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x597c6b from'../realtimecollaborativeediting/websocketgateway.js';import _0x41543e from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x55c3cc}from'ckeditor5-collaboration/src/collaboration-core.js';class f extends _0x55fb7d{static get[_0xd58421(0x20f)](){const _0x3b694b=_0xd58421;return[_0x41543e,_0x3b694b(0x1f7),_0x597c6b];}static get[_0xd58421(0x1e3)](){const _0x2c0b59=_0xd58421;return _0x2c0b59(0x1f8);}static get[_0xd58421(0x1fa)](){return!0x0;}static get[_0xd58421(0x1e8)](){return!0x0;}constructor(_0x53f487){const _0x7467e9=_0xd58421;super(_0x53f487);const _0x4d9114=this[_0x7467e9(0x1ec)][_0x7467e9(0x1f4)][_0x7467e9(0x217)](_0x7467e9(0x1f2));this[_0x7467e9(0x1df)]=new Map(),this[_0x7467e9(0x201)]=new f[(_0x7467e9(0x1f5))](_0x4d9114);}[_0xd58421(0x20c)](){const _0x2b74aa=_0xd58421,_0x289498=this[_0x2b74aa(0x1ec)][_0x2b74aa(0x208)][_0x2b74aa(0x217)](_0x597c6b),_0x5d3484=this[_0x2b74aa(0x1ec)][_0x2b74aa(0x208)][_0x2b74aa(0x217)](_0x2b74aa(0x1f7));return _0x5d3484[_0x2b74aa(0x1db)]={'getSuggestion':async _0x276db0=>{const _0x4af942=_0x2b74aa;await this[_0x4af942(0x206)]();const _0x51f4df=await this[_0x4af942(0x201)][_0x4af942(0x217)](_0x276db0)[_0x4af942(0x209)](w);return await this[_0x4af942(0x20b)]([_0x51f4df]),_0x51f4df;},'addSuggestion':async({id:_0x136526,type:_0x1ef637,data:_0x4f615f,originalSuggestionId:_0x2a2304,attributes:_0x43f10a})=>{const _0x42fd8b=_0x2b74aa;await this[_0x42fd8b(0x206)]();const _0x3f0e80={'id':_0x136526,'type':_0x1ef637,'data':_0x4f615f,'originalSuggestionId':_0x2a2304,'attributes':_0x43f10a},_0xa6566f=await this[_0x42fd8b(0x201)][_0x42fd8b(0x215)](_0x136526,_0x1ef637,_0x4f615f,_0x2a2304,_0x43f10a)[_0x42fd8b(0x209)](_0x4d5511=>{if(st(_0x4d5511))return new Promise(_0x498b3b=>{const _0x226c74=_0xb782;this[_0x226c74(0x1df)][_0x226c74(0x1f3)](_0x136526,{'resolve':_0x498b3b,'suggestionData':_0x3f0e80});});throw _0x4d5511;});return this[_0x42fd8b(0x1df)][_0x42fd8b(0x1de)](_0x136526),_0xa6566f;},'updateSuggestion':async(_0x54eb2a,_0x454757)=>{const _0x5cccde=_0x2b74aa;if(await this[_0x5cccde(0x206)](),_0x5cccde(0x1ef)!==_0x454757[_0x5cccde(0x1e4)])return this[_0x5cccde(0x201)][_0x5cccde(0x1e6)](_0x54eb2a,_0x454757)[_0x5cccde(0x209)](w);}},this[_0x2b74aa(0x1e7)](this[_0x2b74aa(0x201)],_0x2b74aa(0x1d9),(_0x169ae4,_0x2bd4db)=>{const _0x3f894f=_0x2b74aa;_0x5d3484[_0x3f894f(0x207)](_0x2bd4db['id'])&&(_0x5d3484[_0x3f894f(0x20a)](_0x2bd4db['id'])[_0x3f894f(0x1eb)]=_0x2bd4db[_0x3f894f(0x1eb)]);}),this[_0x2b74aa(0x201)][_0x2b74aa(0x1d8)](_0x289498[_0x2b74aa(0x214)])[_0x2b74aa(0x1e2)](_0x40d9a6=>(_0x289498[_0x2b74aa(0x1e9)](this),this[_0x2b74aa(0x20b)](_0x40d9a6)[_0x2b74aa(0x1e2)](()=>{const _0x1d9122=_0x2b74aa;for(const _0x17aed4 of _0x40d9a6){_0x5d3484[_0x1d9122(0x212)](_0x17aed4)[_0x1d9122(0x1dd)]=!0x0;}})));}async[_0xd58421(0x20d)](){const _0x85ba99=_0xd58421,_0x5b119c=this[_0x85ba99(0x1ec)][_0x85ba99(0x208)][_0x85ba99(0x217)](_0x85ba99(0x1f7)),{connection:_0x15b33b}=this[_0x85ba99(0x1ec)][_0x85ba99(0x208)][_0x85ba99(0x217)](_0x597c6b),_0x5382f5=await this[_0x85ba99(0x201)][_0x85ba99(0x1d8)](_0x15b33b);await this[_0x85ba99(0x20b)](_0x5382f5);for(const {suggestionData:_0x4c7a9c,resolve:_0x41d098}of this[_0x85ba99(0x1df)][_0x85ba99(0x1f6)]()){let _0x68dc92=_0x5382f5[_0x85ba99(0x20e)](_0x529b34=>_0x529b34['id']===_0x4c7a9c['id']);_0x68dc92||(_0x68dc92=await this[_0x85ba99(0x201)][_0x85ba99(0x215)](_0x4c7a9c['id'],_0x4c7a9c[_0x85ba99(0x1ea)],_0x4c7a9c[_0x85ba99(0x1fb)],_0x4c7a9c[_0x85ba99(0x203)])),_0x41d098(_0x68dc92);}for(const _0xe27cdb of _0x5382f5)_0x5b119c[_0x85ba99(0x207)](_0xe27cdb['id'])||_0x5b119c[_0x85ba99(0x212)](_0xe27cdb);}async[_0xd58421(0x206)](){const _0x330761=_0xd58421;this[_0x330761(0x201)][_0x330761(0x205)]||await new Promise(_0x1c7cd4=>{const _0x460ad3=_0x330761;this[_0x460ad3(0x1e7)](this[_0x460ad3(0x201)],_0x460ad3(0x200),_0x375758=>{const _0xfbbd2e=_0x460ad3;_0x375758[_0xfbbd2e(0x1e1)](),_0x1c7cd4();});});}async[_0xd58421(0x20b)](_0xf1055c){const _0x55f366=_0xd58421,_0x6f3f7d=this[_0x55f366(0x1ec)][_0x55f366(0x208)][_0x55f366(0x217)](_0x55c3cc),{connection:_0x4047b9}=this[_0x55f366(0x1ec)][_0x55f366(0x208)][_0x55f366(0x217)](_0x597c6b),_0x2d128b=new Set();for(const {authorId:_0x18cf7f}of _0xf1055c)_0x6f3f7d[_0x55f366(0x1f1)](_0x18cf7f)||_0x2d128b[_0x55f366(0x215)](_0x18cf7f);if(0x0===_0x2d128b[_0x55f366(0x210)])return;const _0x2c7080=await _0x3445bb[_0x55f366(0x1fc)](_0x4047b9,Array[_0x55f366(0x1dc)](_0x2d128b));for(const _0x3961e2 of _0x2c7080)_0x6f3f7d[_0x55f366(0x1f1)](_0x3961e2['id'])||_0x6f3f7d[_0x55f366(0x204)](_0x3961e2);}}function _0xb782(_0x29911b,_0x51af01){const _0x19ed7b=_0x19ed();return _0xb782=function(_0xb78224,_0x38b5ac){_0xb78224=_0xb78224-0x1d8;let _0x162ab=_0x19ed7b[_0xb78224];return _0x162ab;},_0xb782(_0x29911b,_0x51af01);}f[_0xd58421(0x1f5)]=_0x232dac;export default f;function w(_0x625732){if(st(_0x625732))return new Promise(()=>{});throw _0x625732;}function st(_0x1971ff){const _0x1810e3=_0xd58421;return _0x1971ff[_0x1810e3(0x202)][_0x1810e3(0x1fe)](_0x1810e3(0x1e5))||_0x1971ff[_0x1810e3(0x202)][_0x1810e3(0x1fe)](_0x1810e3(0x211));}
|