@ckeditor/ckeditor5-real-time-collaboration 47.7.0-alpha.2 → 47.7.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x121579=_0x3932;(function(_0x36cab8,_0x220355){const _0x24dd1a=_0x3932,_0x39eb12=_0x36cab8();while(!![]){try{const _0x2b36b6=parseInt(_0x24dd1a(0x151))/0x1*(parseInt(_0x24dd1a(0x146))/0x2)+parseInt(_0x24dd1a(0x15a))/0x3*(-parseInt(_0x24dd1a(0x127))/0x4)+parseInt(_0x24dd1a(0x139))/0x5*(-parseInt(_0x24dd1a(0x13a))/0x6)+-parseInt(_0x24dd1a(0x116))/0x7*(parseInt(_0x24dd1a(0x155))/0x8)+parseInt(_0x24dd1a(0x129))/0x9*(-parseInt(_0x24dd1a(0x125))/0xa)+parseInt(_0x24dd1a(0x117))/0xb*(-parseInt(_0x24dd1a(0x13f))/0xc)+parseInt(_0x24dd1a(0x159))/0xd;if(_0x2b36b6===_0x220355)break;else _0x39eb12['push'](_0x39eb12['shift']());}catch(_0x4714cb){_0x39eb12['push'](_0x39eb12['shift']());}}}(_0x5ad6,0xb64c7));import{ContextPlugin as _0x23bc73}from'ckeditor5/src/core.js';function _0x3932(_0x5dc816,_0x1430b9){const _0x5ad6d5=_0x5ad6();return _0x3932=function(_0x393220,_0xc7b724){_0x393220=_0x393220-0x112;let _0x9a06e6=_0x5ad6d5[_0x393220];return _0x9a06e6;},_0x3932(_0x5dc816,_0x1430b9);}import{DomEmitterMixin as _0x5cb8e7,CKEditorError as _0x2b5ca5}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x29c705,WEB_SOCKET_GATEWAY_STATES as _0x2b4065}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x2a45d6}from'ckeditor5/src/ui.js';function _0x5ad6(){const _0x398314=['listenTo','CONNECTED','connection','_reconnectionStack','removeFromReconnectionStack','CONNECTING','offline','266eTbFog','11cfzCpK','online','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.','set','websocketgateway-missing-websocket-url','isPremiumPlugin','Connected\x20users\x20limit\x20exceeded','change:me','cloudServices.connectionTimeout','connect','WebSocketGateway','_shouldPluginsReconnect','bind','isInReconnectionStack','10pvmvuc','add','4564072Busrzt','has','12959442mVRplY','from','context','_reconnect','pluginName','function','limitExceeded','delete','cloudservices-reconnection-error','state','catch','websocketgateway-plugin-already-registered','_isBrowserOffline','real-time-collaboration','stopListening','destroy','3422415WJdawM','12PtGvEE','_domEmitter','CloudServices','showWarning','config','1483668hWrtyA','define','DISCONNECTED','code','connected','webSocketUrl','websocketgateway-invalid-plugin-interface','2IfouQi','disconnect','isOfficialPlugin','all','addToReconnectionStack','get','websocketgateway-missing-token','then','reconnect','token','cloudservices-init','1095287ISRFFH','constructor','requires','init','102064ggKVqA','error','plugins','initialReconnectionInterval','54727049CWOhka','3WQIRqU','cloudServices.requestTimeout'];_0x5ad6=function(){return _0x398314;};return _0x5ad6();}export class WebSocketGateway extends _0x23bc73{static [_0x121579(0x121)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x29c705)());static [_0x121579(0x158)]=0x3e8;[_0x121579(0x15e)];[_0x121579(0x112)];[_0x121579(0x122)];[_0x121579(0x13b)];static get[_0x121579(0x153)](){const _0x252549=_0x121579;return[_0x252549(0x13c),_0x2a45d6];}static get[_0x121579(0x12d)](){const _0x2e31ad=_0x121579;return _0x2e31ad(0x121);}static get[_0x121579(0x148)](){return!0x0;}static get[_0x121579(0x11c)](){return!0x0;}constructor(_0x5ab8a2){const _0x10224b=_0x121579;super(_0x5ab8a2),this[_0x10224b(0x11a)](_0x10224b(0x132),_0x2b4065[_0x10224b(0x15d)]),this[_0x10224b(0x11a)](_0x10224b(0x135),!0x1),this[_0x10224b(0x112)]=new Set(),this[_0x10224b(0x122)]=!0x1,this[_0x10224b(0x13b)]=new(_0x5cb8e7())();}[_0x121579(0x154)](){const _0x4ec4ab=_0x121579,_0x40619f=this[_0x4ec4ab(0x12b)],_0x55ae35=_0x40619f[_0x4ec4ab(0x157)][_0x4ec4ab(0x14b)](_0x4ec4ab(0x13c)),_0x3bf76f=_0x40619f[_0x4ec4ab(0x157)][_0x4ec4ab(0x14b)](_0x2a45d6);if(!_0x55ae35[_0x4ec4ab(0x14f)])throw new _0x2b5ca5(_0x4ec4ab(0x14c),this);if(!_0x55ae35[_0x4ec4ab(0x144)])throw new _0x2b5ca5(_0x4ec4ab(0x11b),this);return this[_0x4ec4ab(0x13b)][_0x4ec4ab(0x15c)](window,_0x4ec4ab(0x115),()=>this[_0x4ec4ab(0x135)]=!0x0),this[_0x4ec4ab(0x13b)][_0x4ec4ab(0x15c)](window,_0x4ec4ab(0x118),()=>this[_0x4ec4ab(0x135)]=!0x1),this[_0x4ec4ab(0x12b)][_0x4ec4ab(0x13e)][_0x4ec4ab(0x140)](_0x4ec4ab(0x11f),0xa),this[_0x4ec4ab(0x12b)][_0x4ec4ab(0x13e)][_0x4ec4ab(0x140)](_0x4ec4ab(0x15b),0x14),WebSocketGateway[_0x4ec4ab(0x121)][_0x4ec4ab(0x120)](_0x55ae35[_0x4ec4ab(0x14f)],_0x55ae35[_0x4ec4ab(0x144)],{'timeout':0x3e8*this[_0x4ec4ab(0x12b)][_0x4ec4ab(0x13e)][_0x4ec4ab(0x14b)](_0x4ec4ab(0x11f)),'requestTimeout':0x3e8*this[_0x4ec4ab(0x12b)][_0x4ec4ab(0x13e)][_0x4ec4ab(0x14b)](_0x4ec4ab(0x15b))})[_0x4ec4ab(0x14d)](_0x28df52=>{const _0x3672ac=_0x4ec4ab;if(this[_0x3672ac(0x15e)]=_0x28df52,this[_0x3672ac(0x123)](_0x3672ac(0x132))['to'](_0x28df52,_0x3672ac(0x132),this,_0x3672ac(0x135),(_0x586f40,_0x637a61)=>(_0x3672ac(0x143)!==_0x586f40&&(this[_0x3672ac(0x122)]=!0x0),_0x637a61||_0x586f40!==_0x2b4065[_0x3672ac(0x15d)]?_0x2b4065[_0x3672ac(0x141)]:this[_0x3672ac(0x132)]==_0x2b4065[_0x3672ac(0x141)]&&this[_0x3672ac(0x122)]?(this[_0x3672ac(0x122)]=!0x1,this[_0x3672ac(0x12c)](),_0x2b4065[_0x3672ac(0x114)]):_0x2b4065[_0x3672ac(0x15d)])),this[_0x3672ac(0x15e)]['on'](_0x3672ac(0x156),(_0x57a9b1,_0x5708fc)=>{const _0x3cb0d5=_0x3672ac;if(_0x3cb0d5(0x12f)!==_0x5708fc[_0x3cb0d5(0x142)])throw console[_0x3cb0d5(0x156)](_0x5708fc),new _0x2b5ca5(_0x3cb0d5(0x150),null,{'originalError':_0x5708fc});_0x3bf76f[_0x3cb0d5(0x13d)](_0x3cb0d5(0x119),{'title':_0x3cb0d5(0x11d),'namespace':_0x3cb0d5(0x136)});}),!_0x28df52['me'])return new Promise(_0x597b97=>_0x28df52['on'](_0x3672ac(0x11e),_0x597b97));})[_0x4ec4ab(0x133)](_0x1f924f=>{const _0x1a44cf=_0x4ec4ab;throw console[_0x1a44cf(0x156)](_0x1f924f),new _0x2b5ca5(_0x1a44cf(0x150),null,{'originalError':_0x1f924f});});}[_0x121579(0x14a)](_0x46403e){const _0x121262=_0x121579;if(_0x121262(0x12e)!=typeof _0x46403e[_0x121262(0x14e)])throw new _0x2b5ca5(_0x121262(0x145),this);if(this[_0x121262(0x124)](_0x46403e))throw new _0x2b5ca5(_0x121262(0x134),this,{'name':_0x46403e[_0x121262(0x152)][_0x121262(0x12d)]});this[_0x121262(0x112)][_0x121262(0x126)](_0x46403e);}[_0x121579(0x113)](_0x3bc0c4){const _0x597474=_0x121579;this[_0x597474(0x112)][_0x597474(0x130)](_0x3bc0c4);}[_0x121579(0x124)](_0x3d684e){const _0x2259fe=_0x121579;return this[_0x2259fe(0x112)][_0x2259fe(0x128)](_0x3d684e);}[_0x121579(0x12c)](){const _0x4ebbcc=_0x121579;return this[_0x4ebbcc(0x15e)][_0x4ebbcc(0x14e)]()[_0x4ebbcc(0x14d)](()=>Promise[_0x4ebbcc(0x149)](Array[_0x4ebbcc(0x12a)](this[_0x4ebbcc(0x112)],_0x1ec5ef=>_0x1ec5ef[_0x4ebbcc(0x14e)]())))[_0x4ebbcc(0x14d)](()=>this[_0x4ebbcc(0x132)]=_0x2b4065[_0x4ebbcc(0x15d)])[_0x4ebbcc(0x133)](_0x2f11e6=>{const _0x5e0c03=_0x4ebbcc;throw console[_0x5e0c03(0x156)](_0x2f11e6),new _0x2b5ca5(_0x5e0c03(0x131),this[_0x5e0c03(0x12b)]);});}[_0x121579(0x147)](){const _0x2ef40b=_0x121579;this[_0x2ef40b(0x15e)]&&this[_0x2ef40b(0x15e)][_0x2ef40b(0x147)](),this[_0x2ef40b(0x132)]=_0x2b4065[_0x2ef40b(0x141)],this[_0x2ef40b(0x13b)][_0x2ef40b(0x137)]();}[_0x121579(0x138)](){const _0x5194f4=_0x121579;this[_0x5194f4(0x147)](),super[_0x5194f4(0x138)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
((()=>_0x269a65)());[_0x3b25f4(0x150)];[_0x3b25f4(0x1b4)];[_0x3b25f4(0x172)];[_0x3b25f4(0x148)];static get[_0x3b25f4(0x18a)](){const _0x168807=_0x3b25f4;return[_0x474fd2,_0x733927,_0x168807(0x167),_0x4527b9,_0x234b00];}static get[_0x3b25f4(0x161)](){const _0x297f21=_0x3b25f4;return _0x297f21(0x158);}static get[_0x3b25f4(0x1ab)](){return!0x0;}static get[_0x3b25f4(0x152)](){return!0x0;}constructor(_0x25337c){const _0x31edf7=_0x3b25f4;super(_0x25337c);const _0x2d5f9b=this[_0x31edf7(0x1a4)][_0x31edf7(0x166)][_0x31edf7(0x177)](_0x31edf7(0x197));this[_0x31edf7(0x150)]=null,this[_0x31edf7(0x1b4)]=this[_0x31edf7(0x1a4)][_0x31edf7(0x195)][_0x31edf7(0x177)](_0x31edf7(0x165)),this[_0x31edf7(0x172)]=new CloudServicesRevisionHistoryAdapter[(_0x31edf7(0x16d))](_0x2d5f9b);}async[_0x3b25f4(0x1b2)](){const _0xd2e695=_0x3b25f4,_0x1d8303=this[_0xd2e695(0x1a4)][_0xd2e695(0x195)][_0xd2e695(0x177)](_0x733927),_0x113f83=_0x1d8303[_0xd2e695(0x145)],_0x2b94ee=this[_0xd2e695(0x1a4)][_0xd2e695(0x195)][_0xd2e695(0x177)](_0x474fd2);this[_0xd2e695(0x1b4)][_0xd2e695(0x1b7)]({'history':_0x113f83,'getLatestVersion':()=>this[_0xd2e695(0x157)](),'getCurrentRevisionId':()=>_0x1d8303[_0xd2e695(0x19f)]});const _0xaf80e5=this[_0xd2e695(0x1a4)][_0xd2e695(0x166)][_0xd2e695(0x177)](_0xd2e695(0x159))||_0x51a7d5,_0x232309=await _0x42dbd3[_0xd2e695(0x184)](_0x2b94ee[_0xd2e695(0x16c)],_0xaf80e5);this[_0xd2e695(0x1a4)][_0xd2e695(0x195)][_0xd2e695(0x177)](_0xd2e695(0x167))[_0xd2e695(0x1b1)]={'getRevision':async({revisionId:_0x5cf6dd})=>(await this[_0xd2e695(0x19c)](),await this[_0xd2e695(0x172)][_0xd2e695(0x168)](_0x5cf6dd)),'updateRevisions':async _0x238fac=>{const _0x7ee4e9=_0xd2e695;await this[_0x7ee4e9(0x19c)]();const _0x3336d3=this[_0x7ee4e9(0x1b4)][_0x7ee4e9(0x193)];if(_0x232309&&0x1===_0x238fac[_0x7ee4e9(0x192)]&&_0x238fac[0x0]['id']===_0x3336d3['id'])return _0x238fac;for(const _0x5b49b5 of _0x238fac)_0x5b49b5['id']===_0x3336d3['id']&&(_0x5b49b5[_0x7ee4e9(0x17d)]=_0x5b49b5[_0x7ee4e9(0x154)]===_0x5b49b5[_0x7ee4e9(0x190)]);return this[_0x7ee4e9(0x172)][_0x7ee4e9(0x16e)](_0x238fac,this[_0x7ee4e9(0x150)])[_0x7ee4e9(0x187)](_0x4e8d50=>(this[_0x7ee4e9(0x150)]=_0x4e8d50,_0x238fac))[_0x7ee4e9(0x143)](_0x3eb7b4=>{const _0x5186eb=_0x7ee4e9;if(b(_0x3eb7b4)||_0x5186eb(0x194)===_0x3eb7b4[_0x5186eb(0x18d)]&&void 0x0!==_0x3eb7b4[_0x5186eb(0x15a)][_0x5186eb(0x181)]){for(const _0x8213b9 of _0x238fac){!this[_0x5186eb(0x1b4)][_0x5186eb(0x14a)][_0x5186eb(0x168)](_0x8213b9['id'])||this[_0x5186eb(0x1b4)][_0x5186eb(0x16a)](_0x8213b9['id'],_0x8213b9,!0x1);}if(b(_0x3eb7b4))throw _0x3eb7b4;return _0x238fac;}throw _0x3eb7b4;});}},this[_0xd2e695(0x1a2)](this[_0xd2e695(0x172)],_0xd2e695(0x175),(_0x20f4d5,{revisionsData:_0x84f2a6,requestId:_0x46658a})=>{const _0x15efdb=_0xd2e695;Math[_0x15efdb(0x169)](..._0x84f2a6[_0x15efdb(0x1aa)](_0x3d5da3=>_0x3d5da3[_0x15efdb(0x190)]))>this[_0x15efdb(0x1b0)]()-0x1?this[_0x15efdb(0x157)]()[_0x15efdb(0x187)](()=>{const _0x3f4ab7=_0x15efdb;this[_0x3f4ab7(0x149)](_0x84f2a6,_0x46658a);}):this[_0x15efdb(0x149)](_0x84f2a6,_0x46658a);});const {revisions:_0x2d5742,requestId:_0x2e21dd}=await this[_0xd2e695(0x172)][_0xd2e695(0x1b5)](_0x2b94ee[_0xd2e695(0x16c)]);_0x2b94ee[_0xd2e695(0x163)](this),this[_0xd2e695(0x150)]=_0x2e21dd,await this[_0xd2e695(0x1a6)](_0x2d5742);for(const _0x5a34bc of _0x2d5742)this[_0xd2e695(0x1b4)][_0xd2e695(0x183)](_0x5a34bc);this[_0xd2e695(0x1a2)](_0x1d8303,_0xd2e695(0x14e),(_0xf6ca3b,_0xd7fe02,_0x483941)=>{const _0x2a8885=_0xd2e695;_0x483941&&(this[_0x2a8885(0x148)]=_0x1d8303[_0x2a8885(0x15c)],_0xf6ca3b[_0x2a8885(0x155)]());}),this[_0xd2e695(0x1b4)][_0xd2e695(0x1a8)](_0xd2e695(0x180))['to'](_0x2b94ee,_0xd2e695(0x146),_0xcca02f=>_0xcca02f===_0x35a25f[_0xd2e695(0x14f)]);}async[_0x3b25f4(0x179)](){const _0x1dde05=_0x3b25f4,_0x4edcd3=this[_0x1dde05(0x1a4)][_0x1dde05(0x195)][_0x1dde05(0x177)](_0x474fd2),_0x34cf97=this[_0x1dde05(0x1a4)][_0x1dde05(0x195)][_0x1dde05(0x177)](_0x733927),_0x52150a=async()=>{const _0xdd3a36=_0x1dde05,_0x441096=this[_0xdd3a36(0x1b4)][_0xdd3a36(0x193)],_0x27eec4=_0x441096['id'],_0x130558=_0x27eec4!==_0x34cf97[_0xdd3a36(0x19f)];if(_0x130558){const _0xfa028=_0x34cf97[_0xdd3a36(0x15c)]-this[_0xdd3a36(0x148)],_0x4f3886=this[_0xdd3a36(0x1b0)]();this[_0xdd3a36(0x1b4)][_0xdd3a36(0x14d)][_0xdd3a36(0x18f)]();if(_0x441096[_0xdd3a36(0x190)]+_0xfa028!==_0x4f3886){const _0x5a621f=_0x441096[_0xdd3a36(0x154)]+_0xfa028,_0x2e82cc=this[_0xdd3a36(0x1a4)][_0xdd3a36(0x195)][_0xdd3a36(0x177)](_0x234b00),_0x2edbc8=this[_0xdd3a36(0x1b4)][_0xdd3a36(0x162)]({'revision':_0x441096,'from':_0x5a621f,'to':_0x4f3886});_0x2edbc8['id']=_0x441096['id'];const _0x58c03a=_0x2edbc8[_0xdd3a36(0x14b)][_0xdd3a36(0x1aa)](_0x489f3e=>_0x2e82cc[_0xdd3a36(0x19d)](_0x489f3e));_0x441096[_0xdd3a36(0x186)]({..._0x2edbc8,'authors':_0x58c03a},!0x0),this[_0xdd3a36(0x1b4)][_0xdd3a36(0x16a)](_0x441096['id'],_0x2edbc8,!0x0);}this[_0xdd3a36(0x1b4)][_0xdd3a36(0x1a0)]=_0x4f3886,(_0x441096[_0xdd3a36(0x190)]===_0x441096[_0xdd3a36(0x154)]&&!this[_0xdd3a36(0x1b4)][_0xdd3a36(0x15f)][_0xdd3a36(0x17f)](_0x27eec4)&&this[_0xdd3a36(0x1b4)][_0xdd3a36(0x14a)][_0xdd3a36(0x19a)][_0xdd3a36(0x151)](_0x27eec4),this[_0xdd3a36(0x1b4)][_0xdd3a36(0x15e)](_0x4f3886));}const {revisions:_0x51d2cb,requestId:_0x1a925d}=await this[_0xdd3a36(0x172)][_0xdd3a36(0x179)](_0x4edcd3[_0xdd3a36(0x16c)],this[_0xdd3a36(0x150)]);_0x130558&&_0x51d2cb[_0xdd3a36(0x192)]>0x0?_0x34cf97[_0xdd3a36(0x16f)]():(await this[_0xdd3a36(0x1a6)](_0x51d2cb),this[_0xdd3a36(0x149)](_0x51d2cb,_0x1a925d),this[_0xdd3a36(0x1b4)][_0xdd3a36(0x1ad)]());};return _0x34cf97[_0x1dde05(0x14c)]?_0x52150a():new Promise((_0x5cd70f,_0x576d4d)=>{const _0x59cfca=_0x1dde05;_0x34cf97[_0x59cfca(0x173)](_0x59cfca(0x14e),()=>{const _0x5ce585=_0x59cfca;_0x52150a()[_0x5ce585(0x187)](_0x5cd70f)[_0x5ce585(0x143)](_0x576d4d);});});}[_0x3b25f4(0x1a9)](){const _0x3b7cc1=_0x3b25f4;super[_0x3b7cc1(0x1a9)]();}async[_0x3b25f4(0x19c)](){const _0x4b0577=_0x3b25f4;this[_0x4b0577(0x172)][_0x4b0577(0x18c)]||await new Promise(_0x24cb44=>{const _0x4080d5=_0x4b0577;this[_0x4080d5(0x1a2)](this[_0x4080d5(0x172)],_0x4080d5(0x1a1),_0x49d058=>{const _0x3672ae=_0x4080d5;_0x49d058[_0x3672ae(0x155)](),_0x24cb44();});});}[_0x3b25f4(0x1b0)](){const _0x522be1=_0x3b25f4,_0x40a9aa=this[_0x522be1(0x1a4)][_0x522be1(0x195)][_0x522be1(0x177)](_0x733927)[_0x522be1(0x145)][_0x522be1(0x198)]()[_0x522be1(0x1a7)]();for(const _0x12043f of _0x40a9aa)if(_0x522be1(0x156)!==_0x12043f[_0x522be1(0x164)]||_0x12043f[_0x522be1(0x15b)])return _0x12043f[_0x522be1(0x171)]+0x1;}[_0x3b25f4(0x157)](){const _0x12facf=_0x3b25f4,_0x251013=this[_0x12facf(0x1a4)][_0x12facf(0x195)][_0x12facf(0x177)](_0x733927);return new Promise(_0x3e40cf=>{const _0x4158e7=_0x12facf;_0x251013[_0x4158e7(0x17e)]?_0x251013[_0x4158e7(0x173)](_0x4158e7(0x176),()=>{const _0x2395d9=_0x4158e7;_0x3e40cf(this[_0x2395d9(0x1b0)]());}):_0x3e40cf(this[_0x4158e7(0x1b0)]());});}[_0x3b25f4(0x149)](_0x1acea8,_0x2fc359){const _0x452b5d=_0x3b25f4,_0x5bb729=this[_0x452b5d(0x1b4)][_0x452b5d(0x14a)];this[_0x452b5d(0x150)]=_0x2fc359;for(const _0x45167b of _0x1acea8){const _0x23dd58=_0x5bb729[_0x452b5d(0x168)](_0x45167b['id']);if(_0x23dd58){if((_0x45167b[_0x452b5d(0x154)]||_0x45167b[_0x452b5d(0x190)])&&(_0x45167b[_0x452b5d(0x19b)]=null),_0x23dd58===this[_0x452b5d(0x1b4)][_0x452b5d(0x193)]){const _0x1cc179=Math[_0x452b5d(0x169)](_0x23dd58[_0x452b5d(0x190)],_0x45167b[_0x452b5d(0x190)]),_0x2d777f=Math[_0x452b5d(0x169)](_0x23dd58[_0x452b5d(0x154)],_0x45167b[_0x452b5d(0x154)]);let _0x5e51a5;_0x23dd58[_0x452b5d(0x190)]===_0x45167b[_0x452b5d(0x190)]&&_0x23dd58[_0x452b5d(0x154)]===_0x45167b[_0x452b5d(0x154)]?(_0x5e51a5=!0x0,this[_0x452b5d(0x1a3)](_0x45167b)):_0x45167b[_0x452b5d(0x190)]===_0x1cc179&&_0x45167b[_0x452b5d(0x154)]===_0x2d777f?_0x5e51a5=!0x1:(_0x23dd58[_0x452b5d(0x190)]===_0x1cc179&&_0x23dd58[_0x452b5d(0x154)]===_0x2d777f||this[_0x452b5d(0x18b)]({'revision':_0x23dd58,'from':_0x2d777f,'to':_0x1cc179}),_0x5e51a5=!0x0),_0x5e51a5&&(delete _0x45167b[_0x452b5d(0x154)],delete _0x45167b[_0x452b5d(0x190)],delete _0x45167b[_0x452b5d(0x19b)],delete _0x45167b[_0x452b5d(0x1ae)],delete _0x45167b[_0x452b5d(0x14b)]);}this[_0x452b5d(0x1b4)][_0x452b5d(0x144)](_0x45167b),this[_0x452b5d(0x1a3)](_0x45167b);}else this[_0x452b5d(0x1b4)][_0x452b5d(0x183)](_0x45167b);}const _0x3f8aec=_0x5bb729[_0x452b5d(0x196)]();_0x3f8aec[_0x452b5d(0x1a7)]();for(let _0x4af83e=0x0;_0x4af83e<_0x3f8aec[_0x452b5d(0x192)]-0x1;_0x4af83e++){const _0x49fbf2=_0x3f8aec[_0x4af83e],_0x5ecf29=_0x3f8aec[_0x4af83e+0x1];if(_0x49fbf2[_0x452b5d(0x154)]<_0x5ecf29[_0x452b5d(0x190)]){const _0x51083f=_0x5ecf29[_0x452b5d(0x190)],_0x4fe95f=Math[_0x452b5d(0x169)](_0x51083f,_0x49fbf2[_0x452b5d(0x190)]);this[_0x452b5d(0x18b)]({'revision':_0x49fbf2,'from':_0x51083f,'to':_0x4fe95f});}}}[_0x3b25f4(0x18b)]({revision:_0x419aac,from:_0x2e5a8e,to:_0x1594a2}={}){const _0x70dec1=_0x3b25f4,_0x5a8ead=this[_0x70dec1(0x1a4)][_0x70dec1(0x195)][_0x70dec1(0x177)](_0x234b00),_0xdbb8d1=this[_0x70dec1(0x1b4)][_0x70dec1(0x162)]({'revision':_0x419aac,'from':_0x2e5a8e,'to':_0x1594a2});_0xdbb8d1[_0x70dec1(0x189)]=_0xdbb8d1[_0x70dec1(0x14b)][_0x70dec1(0x1aa)](_0x121ce8=>_0x5a8ead[_0x70dec1(0x19d)](_0x121ce8)),_0x419aac[_0x70dec1(0x186)](_0xdbb8d1);}[_0x3b25f4(0x1a3)](_0x2e3087){const _0x17c8a9=_0x3b25f4,_0x23617a={};_0x23617a['id']=_0x2e3087['id'];for(const _0x465576 of Object[_0x17c8a9(0x185)](_0x2e3087))'id'!==_0x465576&&(_0x23617a[_0x465576]=void 0x0);this[_0x17c8a9(0x1b4)][_0x17c8a9(0x16a)](_0x23617a['id'],_0x23617a,!0x0);}async[_0x3b25f4(0x1a6)](_0x3d042d){const _0x26bf54=_0x3b25f4,_0x59c7fd=this[_0x26bf54(0x1a4)][_0x26bf54(0x195)][_0x26bf54(0x177)](_0x234b00),{connection:_0x563deb}=this[_0x26bf54(0x1a4)][_0x26bf54(0x195)][_0x26bf54(0x177)](_0x474fd2),_0x44f475=new Set();for(const _0xc55099 of _0x3d042d){for(const _0x149a9d of _0xc55099[_0x26bf54(0x14b)])_0x447f9d(_0x149a9d);_0xc55099[_0x26bf54(0x191)]&&_0x447f9d(_0xc55099[_0x26bf54(0x191)]);}if(0x0===_0x44f475[_0x26bf54(0x1b6)])return;const _0x2cfd81=await _0x3a48e6[_0x26bf54(0x17a)](_0x563deb,Array[_0x26bf54(0x18e)](_0x44f475));for(const _0x4f393a of _0x2cfd81)_0x59c7fd[_0x26bf54(0x19d)](_0x4f393a['id'])||_0x59c7fd[_0x26bf54(0x1ac)](_0x4f393a);function _0x447f9d(_0x1b431f){const _0x41a3fb=_0x26bf54;_0x59c7fd[_0x41a3fb(0x19d)](_0x1b431f)||_0x44f475[_0x41a3fb(0x188)](_0x1b431f);}}}function b(_0xcbd2db){const _0x5a9676=_0x3b25f4;return _0xcbd2db[_0x5a9676(0x19e)][_0x5a9676(0x16b)](_0x5a9676(0x1a5))||_0xcbd2db[_0x5a9676(0x19e)][_0x5a9676(0x16b)](_0x5a9676(0x147))||_0xcbd2db[_0x5a9676(0x19e)][_0x5a9676(0x16b)](_0x5a9676(0x178));}
|
|
23
|
+
const _0x3abeee=_0x27db;function _0x27db(_0x31e563,_0x5900c6){const _0x36ebc8=_0x36eb();return _0x27db=function(_0x27db83,_0x2aa149){_0x27db83=_0x27db83-0x188;let _0x278fc6=_0x36ebc8[_0x27db83];return _0x278fc6;},_0x27db(_0x31e563,_0x5900c6);}function _0x36eb(){const _0x221162=['authorsIds','destroy','startsWith','change:_isPendingUpdate','data','getRevisions','connection','59922ovVbUD','max','buildRevisionData','baseVersion','50bARLWS','reconnect','connected','35ixncRn','setSource','sessionId','13503015GxYKpc','3198825gXqIaf','getUser','wrongRequestId','reInit','_getLatestVersionFromServerOperations','size','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_getLatestVersion','isConnected','_bufferUpdate','_revisionTracker','_waitForServiceReady','remove','addToReconnectionStack','cloud-services-internal-error:\x20Not\x20connected.','creatorId','_handleReconnectionError','getOperations','type','_startingVersion','editor','CONNECTED','isOfficialPlugin','length','connect','isEnabled','isBundleUploaded','authors','message','affectsData','_lastRequestId','sendBufferedUpdates','isPremiumPlugin','getMany','config','_offset','off','_createCurrentRevision','currentRevision','RevisionHistory','state','requires','8965308rXmZwy','_revisionHistoryService','updateRevisions','_revisionDataBuilder','init','change:_isConnected','setRevisionData','_update','listenTo','1914448YybnUy','createdAt','_preventResendingRevisionData','diffData','_fetchMissingUsers','bind','_handleRevisionsUpdate','revisionsUpdated','then','_isPendingUpdate','isEmptyCurrent','addRevisionData','310HSekNz','22hUdqLm','adapter','toVersion','_isConnected','_revisions','marker','get','from','_fixRevision','plugins','repository','CloudServicesRevisionHistoryAdapter','catch','add','code','cloud-services-internal-error:\x20Request\x20timeout.','RevisionTracker','5297020stERLs','collaboration.channelId','map','getRevision','once','75282QhQrAQ','RevisionHistoryService','_bufferedUpdates','reverse','pluginName','400','_oldOffset','fromVersion','has','cloudServices.bundleVersion','keys','serverHistory','addUser'];_0x36eb=function(){return _0x221162;};return _0x36eb();}(function(_0x2080de,_0x631a2e){const _0x532005=_0x27db,_0x4f4356=_0x2080de();while(!![]){try{const _0x502254=-parseInt(_0x532005(0x1cc))/0x1*(parseInt(_0x532005(0x1b6))/0x2)+parseInt(_0x532005(0x1eb))/0x3+-parseInt(_0x532005(0x1c7))/0x4+parseInt(_0x532005(0x1b5))/0x5*(parseInt(_0x532005(0x1e0))/0x6)+parseInt(_0x532005(0x1e7))/0x7*(-parseInt(_0x532005(0x1a9))/0x8)+-parseInt(_0x532005(0x1ea))/0x9+parseInt(_0x532005(0x1e4))/0xa*(parseInt(_0x532005(0x1a0))/0xb);if(_0x502254===_0x631a2e)break;else _0x4f4356['push'](_0x4f4356['shift']());}catch(_0x5ce70c){_0x4f4356['push'](_0x4f4356['shift']());}}}(_0x36eb,0xde81b));import{Plugin as _0x2839f8}from'ckeditor5/src/core.js';import{version as _0x5b5f44}from'ckeditor5/src/utils.js';import{Users as _0x417d50}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x236608}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x2f493d}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x1fda96}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x222741,RevisionHistoryService as _0x10e37b,User as _0x2adf6d,WEB_SOCKET_GATEWAY_STATES as _0x2e5d90}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x2839f8{static [_0x3abeee(0x1cd)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x10e37b)());[_0x3abeee(0x194)];[_0x3abeee(0x1f5)];[_0x3abeee(0x1a1)];[_0x3abeee(0x1d2)];static get[_0x3abeee(0x19f)](){const _0x40067d=_0x3abeee;return[_0x2f493d,_0x236608,_0x40067d(0x19d),_0x1fda96,_0x417d50];}static get[_0x3abeee(0x1d0)](){const _0x37f4c7=_0x3abeee;return _0x37f4c7(0x1c1);}static get[_0x3abeee(0x18c)](){return!0x0;}static get[_0x3abeee(0x196)](){return!0x0;}constructor(_0x1fbaad){const _0x1da839=_0x3abeee;super(_0x1fbaad);const _0x4b8476=this[_0x1da839(0x18a)][_0x1da839(0x198)][_0x1da839(0x1bc)](_0x1da839(0x1c8));this[_0x1da839(0x194)]=null,this[_0x1da839(0x1f5)]=this[_0x1da839(0x18a)][_0x1da839(0x1bf)][_0x1da839(0x1bc)](_0x1da839(0x1c6)),this[_0x1da839(0x1a1)]=new CloudServicesRevisionHistoryAdapter[(_0x1da839(0x1cd))](_0x4b8476);}async[_0x3abeee(0x1a4)](){const _0x295c00=_0x3abeee,_0x1076b4=this[_0x295c00(0x18a)][_0x295c00(0x1bf)][_0x295c00(0x1bc)](_0x236608),_0x5bd16c=_0x1076b4[_0x295c00(0x1d7)],_0x4d6a23=this[_0x295c00(0x18a)][_0x295c00(0x1bf)][_0x295c00(0x1bc)](_0x2f493d);this[_0x295c00(0x1f5)][_0x295c00(0x1e8)]({'history':_0x5bd16c,'getLatestVersion':()=>this[_0x295c00(0x1f2)](),'getCurrentRevisionId':()=>_0x1076b4[_0x295c00(0x1e9)]});const _0x1db899=this[_0x295c00(0x18a)][_0x295c00(0x198)][_0x295c00(0x1bc)](_0x295c00(0x1d5))||_0x5b5f44,_0x55252=await _0x222741[_0x295c00(0x190)](_0x4d6a23[_0x295c00(0x1df)],_0x1db899);this[_0x295c00(0x18a)][_0x295c00(0x1bf)][_0x295c00(0x1bc)](_0x295c00(0x19d))[_0x295c00(0x1b7)]={'getRevision':async({revisionId:_0x4f8d78})=>(await this[_0x295c00(0x1f6)](),await this[_0x295c00(0x1a1)][_0x295c00(0x1ca)](_0x4f8d78)),'updateRevisions':async _0x2540ff=>{const _0x362078=_0x295c00;await this[_0x362078(0x1f6)]();const _0x3cfe5e=this[_0x362078(0x1f5)][_0x362078(0x19c)];if(_0x55252&&0x1===_0x2540ff[_0x362078(0x18d)]&&_0x2540ff[0x0]['id']===_0x3cfe5e['id'])return _0x2540ff;for(const _0x1a53a9 of _0x2540ff)_0x1a53a9['id']===_0x3cfe5e['id']&&(_0x1a53a9[_0x362078(0x1b3)]=_0x1a53a9[_0x362078(0x1d3)]===_0x1a53a9[_0x362078(0x1b8)]);return this[_0x362078(0x1a1)][_0x362078(0x1a2)](_0x2540ff,this[_0x362078(0x194)])[_0x362078(0x1b1)](_0x13fb65=>(this[_0x362078(0x194)]=_0x13fb65,_0x2540ff))[_0x362078(0x1c2)](_0x214ee5=>{const _0x21d708=_0x362078;if(q(_0x214ee5)||_0x21d708(0x1d1)===_0x214ee5[_0x21d708(0x1c4)]&&void 0x0!==_0x214ee5[_0x21d708(0x1dd)][_0x21d708(0x1ed)]){for(const _0x168294 of _0x2540ff){!this[_0x21d708(0x1f5)][_0x21d708(0x1c0)][_0x21d708(0x1ca)](_0x168294['id'])||this[_0x21d708(0x1f5)][_0x21d708(0x1f4)](_0x168294['id'],_0x168294,!0x1);}if(q(_0x214ee5))throw _0x214ee5;return _0x2540ff;}throw _0x214ee5;});}},this[_0x295c00(0x1a8)](this[_0x295c00(0x1a1)],_0x295c00(0x1b0),(_0x104111,{revisionsData:_0x5c4c72,requestId:_0x129108})=>{const _0x4f15c7=_0x295c00;Math[_0x4f15c7(0x1e1)](..._0x5c4c72[_0x4f15c7(0x1c9)](_0x82bbff=>_0x82bbff[_0x4f15c7(0x1b8)]))>this[_0x4f15c7(0x1ef)]()-0x1?this[_0x4f15c7(0x1f2)]()[_0x4f15c7(0x1b1)](()=>{const _0x387469=_0x4f15c7;this[_0x387469(0x1af)](_0x5c4c72,_0x129108);}):this[_0x4f15c7(0x1af)](_0x5c4c72,_0x129108);});const {revisions:_0x4c1e33,requestId:_0x36ed2c}=await this[_0x295c00(0x1a1)][_0x295c00(0x18e)](_0x4d6a23[_0x295c00(0x1df)]);_0x4d6a23[_0x295c00(0x1f8)](this),this[_0x295c00(0x194)]=_0x36ed2c,await this[_0x295c00(0x1ad)](_0x4c1e33);for(const _0x4c0e1e of _0x4c1e33)this[_0x295c00(0x1f5)][_0x295c00(0x1b4)](_0x4c0e1e);this[_0x295c00(0x1a8)](_0x1076b4,_0x295c00(0x1a5),(_0x29fe96,_0x555ebd,_0x4722fb)=>{const _0x443021=_0x295c00;_0x4722fb&&(this[_0x443021(0x1d2)]=_0x1076b4[_0x443021(0x199)],_0x29fe96[_0x443021(0x19a)]());}),this[_0x295c00(0x1f5)][_0x295c00(0x1ae)](_0x295c00(0x18f))['to'](_0x4d6a23,_0x295c00(0x19e),_0xe3dbca=>_0xe3dbca===_0x2e5d90[_0x295c00(0x18b)]);}async[_0x3abeee(0x1e5)](){const _0x26c219=_0x3abeee,_0x4a293f=this[_0x26c219(0x18a)][_0x26c219(0x1bf)][_0x26c219(0x1bc)](_0x2f493d),_0x5d1c13=this[_0x26c219(0x18a)][_0x26c219(0x1bf)][_0x26c219(0x1bc)](_0x236608),_0x542470=async()=>{const _0xc20b4c=_0x26c219,_0x5cd3e4=this[_0xc20b4c(0x1f5)][_0xc20b4c(0x19c)],_0x4df3b3=_0x5cd3e4['id'],_0x32421e=_0x4df3b3!==_0x5d1c13[_0xc20b4c(0x1e9)];if(_0x32421e){const _0x453ca9=_0x5d1c13[_0xc20b4c(0x199)]-this[_0xc20b4c(0x1d2)],_0x216abf=this[_0xc20b4c(0x1ef)]();this[_0xc20b4c(0x1f5)][_0xc20b4c(0x1a3)][_0xc20b4c(0x1ee)]();if(_0x5cd3e4[_0xc20b4c(0x1b8)]+_0x453ca9!==_0x216abf){const _0x13a9db=_0x5cd3e4[_0xc20b4c(0x1d3)]+_0x453ca9,_0x27a6db=this[_0xc20b4c(0x18a)][_0xc20b4c(0x1bf)][_0xc20b4c(0x1bc)](_0x417d50),_0x2999ab=this[_0xc20b4c(0x1f5)][_0xc20b4c(0x1e2)]({'revision':_0x5cd3e4,'from':_0x13a9db,'to':_0x216abf});_0x2999ab['id']=_0x5cd3e4['id'];const _0x52ea1c=_0x2999ab[_0xc20b4c(0x1d9)][_0xc20b4c(0x1c9)](_0x2f3487=>_0x27a6db[_0xc20b4c(0x1ec)](_0x2f3487));_0x5cd3e4[_0xc20b4c(0x1a7)]({..._0x2999ab,'authors':_0x52ea1c},!0x0),this[_0xc20b4c(0x1f5)][_0xc20b4c(0x1f4)](_0x5cd3e4['id'],_0x2999ab,!0x0);}this[_0xc20b4c(0x1f5)][_0xc20b4c(0x189)]=_0x216abf,(_0x5cd3e4[_0xc20b4c(0x1b8)]===_0x5cd3e4[_0xc20b4c(0x1d3)]&&!this[_0xc20b4c(0x1f5)][_0xc20b4c(0x1ce)][_0xc20b4c(0x1d4)](_0x4df3b3)&&this[_0xc20b4c(0x1f5)][_0xc20b4c(0x1c0)][_0xc20b4c(0x1ba)][_0xc20b4c(0x1f7)](_0x4df3b3),this[_0xc20b4c(0x1f5)][_0xc20b4c(0x19b)](_0x216abf));}const {revisions:_0x4df5db,requestId:_0x525677}=await this[_0xc20b4c(0x1a1)][_0xc20b4c(0x1e5)](_0x4a293f[_0xc20b4c(0x1df)],this[_0xc20b4c(0x194)]);_0x32421e&&_0x4df5db[_0xc20b4c(0x18d)]>0x0?_0x5d1c13[_0xc20b4c(0x1fb)]():(await this[_0xc20b4c(0x1ad)](_0x4df5db),this[_0xc20b4c(0x1af)](_0x4df5db,_0x525677),this[_0xc20b4c(0x1f5)][_0xc20b4c(0x195)]());};return _0x5d1c13[_0x26c219(0x1b9)]?_0x542470():new Promise((_0x36f068,_0x6576c1)=>{const _0x5589ae=_0x26c219;_0x5d1c13[_0x5589ae(0x1cb)](_0x5589ae(0x1a5),()=>{const _0x5ee8ea=_0x5589ae;_0x542470()[_0x5ee8ea(0x1b1)](_0x36f068)[_0x5ee8ea(0x1c2)](_0x6576c1);});});}[_0x3abeee(0x1da)](){const _0xac5abf=_0x3abeee;super[_0xac5abf(0x1da)]();}async[_0x3abeee(0x1f6)](){const _0x523533=_0x3abeee;this[_0x523533(0x1a1)][_0x523533(0x1f3)]||await new Promise(_0x47a3de=>{const _0x52230b=_0x523533;this[_0x52230b(0x1a8)](this[_0x52230b(0x1a1)],_0x52230b(0x1e6),_0x2b7238=>{const _0x4d9614=_0x52230b;_0x2b7238[_0x4d9614(0x19a)](),_0x47a3de();});});}[_0x3abeee(0x1ef)](){const _0x2d24ed=_0x3abeee,_0x3444a6=this[_0x2d24ed(0x18a)][_0x2d24ed(0x1bf)][_0x2d24ed(0x1bc)](_0x236608)[_0x2d24ed(0x1d7)][_0x2d24ed(0x1fc)]()[_0x2d24ed(0x1cf)]();for(const _0x453847 of _0x3444a6)if(_0x2d24ed(0x1bb)!==_0x453847[_0x2d24ed(0x188)]||_0x453847[_0x2d24ed(0x193)])return _0x453847[_0x2d24ed(0x1e3)]+0x1;}[_0x3abeee(0x1f2)](){const _0x30f0f9=_0x3abeee,_0x45dfdf=this[_0x30f0f9(0x18a)][_0x30f0f9(0x1bf)][_0x30f0f9(0x1bc)](_0x236608);return new Promise(_0x57aa49=>{const _0x47e9b1=_0x30f0f9;_0x45dfdf[_0x47e9b1(0x1b2)]?_0x45dfdf[_0x47e9b1(0x1cb)](_0x47e9b1(0x1dc),()=>{const _0x40b634=_0x47e9b1;_0x57aa49(this[_0x40b634(0x1ef)]());}):_0x57aa49(this[_0x47e9b1(0x1ef)]());});}[_0x3abeee(0x1af)](_0x34fe76,_0x9c13a5){const _0x41471f=_0x3abeee,_0x175dfc=this[_0x41471f(0x1f5)][_0x41471f(0x1c0)];this[_0x41471f(0x194)]=_0x9c13a5;for(const _0x311c56 of _0x34fe76){const _0x122677=_0x175dfc[_0x41471f(0x1ca)](_0x311c56['id']);if(_0x122677){if((_0x311c56[_0x41471f(0x1d3)]||_0x311c56[_0x41471f(0x1b8)])&&(_0x311c56[_0x41471f(0x1ac)]=null),_0x122677===this[_0x41471f(0x1f5)][_0x41471f(0x19c)]){const _0x3619a2=Math[_0x41471f(0x1e1)](_0x122677[_0x41471f(0x1b8)],_0x311c56[_0x41471f(0x1b8)]),_0x3c73e6=Math[_0x41471f(0x1e1)](_0x122677[_0x41471f(0x1d3)],_0x311c56[_0x41471f(0x1d3)]);let _0x4514cf;_0x122677[_0x41471f(0x1b8)]===_0x311c56[_0x41471f(0x1b8)]&&_0x122677[_0x41471f(0x1d3)]===_0x311c56[_0x41471f(0x1d3)]?(_0x4514cf=!0x0,this[_0x41471f(0x1ab)](_0x311c56)):_0x311c56[_0x41471f(0x1b8)]===_0x3619a2&&_0x311c56[_0x41471f(0x1d3)]===_0x3c73e6?_0x4514cf=!0x1:(_0x122677[_0x41471f(0x1b8)]===_0x3619a2&&_0x122677[_0x41471f(0x1d3)]===_0x3c73e6||this[_0x41471f(0x1be)]({'revision':_0x122677,'from':_0x3c73e6,'to':_0x3619a2}),_0x4514cf=!0x0),_0x4514cf&&(delete _0x311c56[_0x41471f(0x1d3)],delete _0x311c56[_0x41471f(0x1b8)],delete _0x311c56[_0x41471f(0x1ac)],delete _0x311c56[_0x41471f(0x1aa)],delete _0x311c56[_0x41471f(0x1d9)]);}this[_0x41471f(0x1f5)][_0x41471f(0x1a6)](_0x311c56),this[_0x41471f(0x1ab)](_0x311c56);}else this[_0x41471f(0x1f5)][_0x41471f(0x1b4)](_0x311c56);}const _0xf9bb87=_0x175dfc[_0x41471f(0x1de)]();_0xf9bb87[_0x41471f(0x1cf)]();for(let _0x59fa64=0x0;_0x59fa64<_0xf9bb87[_0x41471f(0x18d)]-0x1;_0x59fa64++){const _0x2469eb=_0xf9bb87[_0x59fa64],_0x55c823=_0xf9bb87[_0x59fa64+0x1];if(_0x2469eb[_0x41471f(0x1d3)]<_0x55c823[_0x41471f(0x1b8)]){const _0x130f18=_0x55c823[_0x41471f(0x1b8)],_0x300375=Math[_0x41471f(0x1e1)](_0x130f18,_0x2469eb[_0x41471f(0x1b8)]);this[_0x41471f(0x1be)]({'revision':_0x2469eb,'from':_0x130f18,'to':_0x300375});}}}[_0x3abeee(0x1be)]({revision:_0x174f26,from:_0x3a3159,to:_0x5da2db}={}){const _0x394f1e=_0x3abeee,_0xf61b57=this[_0x394f1e(0x18a)][_0x394f1e(0x1bf)][_0x394f1e(0x1bc)](_0x417d50),_0xcf0e16=this[_0x394f1e(0x1f5)][_0x394f1e(0x1e2)]({'revision':_0x174f26,'from':_0x3a3159,'to':_0x5da2db});_0xcf0e16[_0x394f1e(0x191)]=_0xcf0e16[_0x394f1e(0x1d9)][_0x394f1e(0x1c9)](_0x1f1d50=>_0xf61b57[_0x394f1e(0x1ec)](_0x1f1d50)),_0x174f26[_0x394f1e(0x1a7)](_0xcf0e16);}[_0x3abeee(0x1ab)](_0x1c2563){const _0x5d4269=_0x3abeee,_0x5044ca={};_0x5044ca['id']=_0x1c2563['id'];for(const _0x2d773e of Object[_0x5d4269(0x1d6)](_0x1c2563))'id'!==_0x2d773e&&(_0x5044ca[_0x2d773e]=void 0x0);this[_0x5d4269(0x1f5)][_0x5d4269(0x1f4)](_0x5044ca['id'],_0x5044ca,!0x0);}async[_0x3abeee(0x1ad)](_0x2aaca8){const _0x475dd1=_0x3abeee,_0x2c4c64=this[_0x475dd1(0x18a)][_0x475dd1(0x1bf)][_0x475dd1(0x1bc)](_0x417d50),{connection:_0x36219b}=this[_0x475dd1(0x18a)][_0x475dd1(0x1bf)][_0x475dd1(0x1bc)](_0x2f493d),_0x2c22a1=new Set();for(const _0x27a603 of _0x2aaca8){for(const _0x953208 of _0x27a603[_0x475dd1(0x1d9)])_0x3f9673(_0x953208);_0x27a603[_0x475dd1(0x1fa)]&&_0x3f9673(_0x27a603[_0x475dd1(0x1fa)]);}if(0x0===_0x2c22a1[_0x475dd1(0x1f0)])return;const _0x5792c0=await _0x2adf6d[_0x475dd1(0x197)](_0x36219b,Array[_0x475dd1(0x1bd)](_0x2c22a1));for(const _0x3692fa of _0x5792c0)_0x2c4c64[_0x475dd1(0x1ec)](_0x3692fa['id'])||_0x2c4c64[_0x475dd1(0x1d8)](_0x3692fa);function _0x3f9673(_0x4f56b2){const _0x62d689=_0x475dd1;_0x2c4c64[_0x62d689(0x1ec)](_0x4f56b2)||_0x2c22a1[_0x62d689(0x1c3)](_0x4f56b2);}}}function q(_0x343636){const _0x3df894=_0x3abeee;return _0x343636[_0x3df894(0x192)][_0x3df894(0x1db)](_0x3df894(0x1f1))||_0x343636[_0x3df894(0x192)][_0x3df894(0x1db)](_0x3df894(0x1f9))||_0x343636[_0x3df894(0x192)][_0x3df894(0x1db)](_0x3df894(0x1c5));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
function _0x1f2d(_0x2e9250,_0xc4e1ef){const _0x42b598=_0x42b5();return _0x1f2d=function(_0x1f2d6a,_0xae75fb){_0x1f2d6a=_0x1f2d6a-0xd6;let _0x742ba5=_0x42b598[_0x1f2d6a];return _0x742ba5;},_0x1f2d(_0x2e9250,_0xc4e1ef);}const _0x1c6b62=_0x1f2d;(function(_0x21ee78,_0x331473){const _0x236cc6=_0x1f2d,_0x434e3c=_0x21ee78();while(!![]){try{const _0x4523e1=parseInt(_0x236cc6(0xff))/0x1+parseInt(_0x236cc6(0x10c))/0x2+parseInt(_0x236cc6(0xfe))/0x3*(parseInt(_0x236cc6(0xf1))/0x4)+-parseInt(_0x236cc6(0x111))/0x5+-parseInt(_0x236cc6(0x108))/0x6+-parseInt(_0x236cc6(0xe8))/0x7+parseInt(_0x236cc6(0xdd))/0x8*(parseInt(_0x236cc6(0x10d))/0x9);if(_0x4523e1===_0x331473)break;else _0x434e3c['push'](_0x434e3c['shift']());}catch(_0x1723f1){_0x434e3c['push'](_0x434e3c['shift']());}}}(_0x42b5,0x2da7e));import{Plugin as _0x3154aa}from'ckeditor5/src/core.js';import{User as _0x3914cf,TrackChangesService as _0x1d348a}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x534ad6}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x116247}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x30097f}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x3154aa{static [_0x1c6b62(0xf9)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x1d348a)());[_0x1c6b62(0x112)];[_0x1c6b62(0x109)];static get[_0x1c6b62(0x10f)](){const _0x29ae38=_0x1c6b62;return[_0x116247,_0x29ae38(0xee),_0x534ad6];}static get[_0x1c6b62(0xdb)](){const _0x4c1f47=_0x1c6b62;return _0x4c1f47(0x104);}static get[_0x1c6b62(0xf6)](){return!0x0;}static get[_0x1c6b62(0x110)](){return!0x0;}constructor(_0x1a121a){const _0x2de949=_0x1c6b62;super(_0x1a121a);const _0x15a5a8=this[_0x2de949(0xe0)][_0x2de949(0xf0)][_0x2de949(0x10a)](_0x2de949(0xd8));this[_0x2de949(0x112)]=new Map(),this[_0x2de949(0x109)]=new CloudServicesTrackChangesAdapter[(_0x2de949(0xf9))](_0x15a5a8);}[_0x1c6b62(0x113)](){const _0x4777c6=_0x1c6b62,_0x2bb2e7=this[_0x4777c6(0xe0)][_0x4777c6(0xf3)][_0x4777c6(0x10a)](_0x534ad6),_0x5581da=this[_0x4777c6(0xe0)][_0x4777c6(0xf3)][_0x4777c6(0x10a)](_0x4777c6(0xee));return _0x5581da[_0x4777c6(0xf7)]={'getSuggestion':async _0x5cf297=>{const _0x21a683=_0x4777c6;await this[_0x21a683(0xf4)]();const _0x2d21d1=await this[_0x21a683(0x109)][_0x21a683(0x10a)](_0x5cf297)[_0x21a683(0xfc)](k);return await this[_0x21a683(0x107)]([_0x2d21d1]),_0x2d21d1;},'addSuggestion':async({id:_0x3f2aa8,type:_0x4def9c,data:_0x4a6edc,originalSuggestionId:_0x4bde32,attributes:_0x21a593})=>{const _0x3cd5c3=_0x4777c6;await this[_0x3cd5c3(0xf4)]();const _0xa9c27={'id':_0x3f2aa8,'type':_0x4def9c,'data':_0x4a6edc,'originalSuggestionId':_0x4bde32,'attributes':_0x21a593},_0x4d2a7e=await this[_0x3cd5c3(0x109)][_0x3cd5c3(0xe5)](_0x3f2aa8,_0x4def9c,_0x4a6edc,_0x4bde32,_0x21a593)[_0x3cd5c3(0xfc)](_0x323eea=>{if(q(_0x323eea))return new Promise(_0x523e31=>{const _0x16e26e=_0x1f2d;this[_0x16e26e(0x112)][_0x16e26e(0xe9)](_0x3f2aa8,{'resolve':_0x523e31,'suggestionData':_0xa9c27});});throw _0x323eea;});return this[_0x3cd5c3(0x112)][_0x3cd5c3(0xe7)](_0x3f2aa8),_0x4d2a7e;},'updateSuggestion':async(_0x38a32e,_0x26bf78)=>{const _0x852332=_0x4777c6;if(await this[_0x852332(0xf4)](),_0x852332(0xdf)!==_0x26bf78[_0x852332(0x114)])return this[_0x852332(0x109)][_0x852332(0xe2)](_0x38a32e,_0x26bf78)[_0x852332(0xfc)](k);}},this[_0x4777c6(0xd9)](this[_0x4777c6(0x109)],_0x4777c6(0xd6),(_0x7d23a5,_0x5b7f77)=>{const _0x2ad214=_0x4777c6;_0x5581da[_0x2ad214(0xde)](_0x5b7f77['id'])&&(_0x5581da[_0x2ad214(0xed)](_0x5b7f77['id'])[_0x2ad214(0x105)]=_0x5b7f77[_0x2ad214(0x105)]);}),this[_0x4777c6(0x109)][_0x4777c6(0xe6)](_0x2bb2e7[_0x4777c6(0x106)])[_0x4777c6(0x102)](_0x4407e6=>(_0x2bb2e7[_0x4777c6(0xe1)](this),this[_0x4777c6(0x107)](_0x4407e6)[_0x4777c6(0x102)](()=>{const _0x2b739b=_0x4777c6;for(const _0x5ed4d5 of _0x4407e6){_0x5581da[_0x2b739b(0xe4)](_0x5ed4d5)[_0x2b739b(0xeb)]=!0x0;}})));}async[_0x1c6b62(0x10e)](){const _0x4cb0ae=_0x1c6b62,_0x1af664=this[_0x4cb0ae(0xe0)][_0x4cb0ae(0xf3)][_0x4cb0ae(0x10a)](_0x4cb0ae(0xee)),{connection:_0x2a5860}=this[_0x4cb0ae(0xe0)][_0x4cb0ae(0xf3)][_0x4cb0ae(0x10a)](_0x534ad6),_0xea78c8=await this[_0x4cb0ae(0x109)][_0x4cb0ae(0xe6)](_0x2a5860);await this[_0x4cb0ae(0x107)](_0xea78c8);for(const {suggestionData:_0x5a0337,resolve:_0x3f2ff5}of this[_0x4cb0ae(0x112)][_0x4cb0ae(0xda)]()){let _0x567821=_0xea78c8[_0x4cb0ae(0x10b)](_0x1ca091=>_0x1ca091['id']===_0x5a0337['id']);_0x567821||(_0x567821=await this[_0x4cb0ae(0x109)][_0x4cb0ae(0xe5)](_0x5a0337['id'],_0x5a0337[_0x4cb0ae(0x101)],_0x5a0337[_0x4cb0ae(0xf5)],_0x5a0337[_0x4cb0ae(0xef)])),_0x3f2ff5(_0x567821);}for(const _0x3f00ce of _0xea78c8)_0x1af664[_0x4cb0ae(0xde)](_0x3f00ce['id'])||_0x1af664[_0x4cb0ae(0xe4)](_0x3f00ce);}async[_0x1c6b62(0xf4)](){const _0x1ceab3=_0x1c6b62;this[_0x1ceab3(0x109)][_0x1ceab3(0xea)]||await new Promise(_0x41291d=>{const _0x1b5d10=_0x1ceab3;this[_0x1b5d10(0xd9)](this[_0x1b5d10(0x109)],_0x1b5d10(0xfb),_0x1470d7=>{const _0x7c299e=_0x1b5d10;_0x1470d7[_0x7c299e(0xf2)](),_0x41291d();});});}async[_0x1c6b62(0x107)](_0x289bfc){const _0x4f6643=_0x1c6b62,_0x345470=this[_0x4f6643(0xe0)][_0x4f6643(0xf3)][_0x4f6643(0x10a)](_0x30097f),{connection:_0x10b429}=this[_0x4f6643(0xe0)][_0x4f6643(0xf3)][_0x4f6643(0x10a)](_0x534ad6),_0x393891=new Set();for(const {authorId:_0x325f4c}of _0x289bfc)_0x345470[_0x4f6643(0xf8)](_0x325f4c)||_0x393891[_0x4f6643(0xe5)](_0x325f4c);if(0x0===_0x393891[_0x4f6643(0xfd)])return;const _0x43ac49=await _0x3914cf[_0x4f6643(0xfa)](_0x10b429,Array[_0x4f6643(0x100)](_0x393891));for(const _0x5c6187 of _0x43ac49)_0x345470[_0x4f6643(0xf8)](_0x5c6187['id'])||_0x345470[_0x4f6643(0xdc)](_0x5c6187);}}function _0x42b5(){const _0x1388b1=['isPremiumPlugin','1332245LiAaBh','_bufferedRequests','init','state','suggestionUpdated','cloud-services-internal-error:\x20Request\x20timeout.','collaboration.channelId','listenTo','values','pluginName','addUser','16zqYwHB','hasSuggestion','open','editor','addToReconnectionStack','update','startsWith','addSuggestionData','add','connect','delete','858795mtQYIh','set','isConnected','_saved','cloud-services-internal-error:\x20Not\x20connected.','getSuggestion','TrackChangesEditing','originalSuggestionId','config','690208OCPEyt','off','plugins','_waitForServiceReady','data','isOfficialPlugin','adapter','getUser','TrackChangesService','getMany','connected','catch','size','3xRnLFc','200003KRRUaN','from','type','then','message','CloudServicesTrackChangesAdapter','attributes','connection','_fetchMissingUsersForThreads','846666LqsDVI','_trackChangesService','get','find','220076oIwhNp','1055961JUfIJs','reconnect','requires'];_0x42b5=function(){return _0x1388b1;};return _0x42b5();}function k(_0x372dc6){if(q(_0x372dc6))return new Promise(()=>{});throw _0x372dc6;}function q(_0x546bea){const _0x258ae4=_0x1c6b62;return _0x546bea[_0x258ae4(0x103)][_0x258ae4(0xe3)](_0x258ae4(0xec))||_0x546bea[_0x258ae4(0x103)][_0x258ae4(0xe3)](_0x258ae4(0xd7));}
|