@ckeditor/ckeditor5-real-time-collaboration 47.4.0-alpha.5 → 47.4.0-alpha.6

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.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4abc12=_0x23c6;(function(_0x1c6607,_0x42a1ed){const _0x1f9beb=_0x23c6,_0xe7bc0a=_0x1c6607();while(!![]){try{const _0x40491f=-parseInt(_0x1f9beb(0x18d))/0x1+-parseInt(_0x1f9beb(0x174))/0x2*(parseInt(_0x1f9beb(0x186))/0x3)+-parseInt(_0x1f9beb(0x173))/0x4*(parseInt(_0x1f9beb(0x18f))/0x5)+-parseInt(_0x1f9beb(0x140))/0x6*(parseInt(_0x1f9beb(0x13c))/0x7)+-parseInt(_0x1f9beb(0x189))/0x8*(-parseInt(_0x1f9beb(0x14b))/0x9)+parseInt(_0x1f9beb(0x151))/0xa*(-parseInt(_0x1f9beb(0x150))/0xb)+parseInt(_0x1f9beb(0x13d))/0xc;if(_0x40491f===_0x42a1ed)break;else _0xe7bc0a['push'](_0xe7bc0a['shift']());}catch(_0x87be90){_0xe7bc0a['push'](_0xe7bc0a['shift']());}}}(_0x5558,0xc7afc));function _0x5558(){const _0x33c4ea=['code','plugins','1677639qOVhQU','marker','length','7780304WmqZRM','reverse','getMany','RevisionTracker','943632mktvZG','then','487735seaszP','_getLatestVersionFromServerOperations','change:_isConnected','RevisionHistory','buildRevisionData','map','message','wrongRequestId','_revisions','_update','_offset','editor','_fixRevision','_isPendingUpdate','diffData','isConnected','getOperations','_revisionHistoryService','state','_isConnected','affectsData','isEmptyCurrent','data','max','_handleReconnectionError','cloud-services-internal-error:\x20Request\x20timeout.','type','CloudServicesRevisionHistoryAdapter','remove','_getLatestVersion','adapter','has','get','repository','addUser','546630uyNWZm','43518552eItwxA','sendBufferedUpdates','400','30ymSJuk','_bufferUpdate','_preventResendingRevisionData','toVersion','setSource','sessionId','cloudServices.bundleVersion','creatorId','pluginName','from','bind','9ujFHKf','startsWith','_handleRevisionsUpdate','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','fromVersion','13145MluXvQ','4370wVzmAt','connection','size','off','revisionsUpdated','_waitForServiceReady','createdAt','getRevisions','isEnabled','RevisionHistoryService','reconnect','catch','authorsIds','init','currentRevision','once','requires','addToReconnectionStack','add','_revisionDataBuilder','serverHistory','getRevision','updateRevisions','_lastRequestId','_fetchMissingUsers','collaboration.channelId','connect','_oldOffset','isOfficialPlugin','connected','authors','config','_revisionTracker','setRevisionData','56lmQMtd','2ISSyNR','isBundleUploaded','_createCurrentRevision','_bufferedUpdates','cloud-services-internal-error:\x20Not\x20connected.','reInit','change:_isPendingUpdate','CONNECTED','getUser','keys','isPremiumPlugin','listenTo','baseVersion','destroy','addRevisionData','_startingVersion'];_0x5558=function(){return _0x33c4ea;};return _0x5558();}import{Plugin as _0x4f8775}from'ckeditor5/src/core.js';function _0x23c6(_0x5d01d1,_0xf30deb){const _0x5558a5=_0x5558();return _0x23c6=function(_0x23c616,_0x1ced81){_0x23c616=_0x23c616-0x125;let _0x295e43=_0x5558a5[_0x23c616];return _0x295e43;},_0x23c6(_0x5d01d1,_0xf30deb);}import{version as _0x202d4f}from'ckeditor5/src/utils.js';import{Users as _0x55a398}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x27f9b7}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x5ac8cc}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x60f7c6}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x4cb801,RevisionHistoryService as _0x46ea87,User as _0xbf68f0,WEB_SOCKET_GATEWAY_STATES as _0x3d54ec}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x4f8775{static [_0x4abc12(0x15a)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x46ea87)());[_0x4abc12(0x168)];[_0x4abc12(0x171)];[_0x4abc12(0x12a)];[_0x4abc12(0x16c)];static get[_0x4abc12(0x161)](){const _0x344a81=_0x4abc12;return[_0x5ac8cc,_0x27f9b7,_0x344a81(0x192),_0x60f7c6,_0x55a398];}static get[_0x4abc12(0x148)](){const _0x7fce80=_0x4abc12;return _0x7fce80(0x134);}static get[_0x4abc12(0x16d)](){return!0x0;}static get[_0x4abc12(0x17e)](){return!0x0;}constructor(_0x567e87){const _0x48675a=_0x4abc12;super(_0x567e87);const _0x15257b=this[_0x48675a(0x19a)][_0x48675a(0x170)][_0x48675a(0x139)](_0x48675a(0x16a));this[_0x48675a(0x168)]=null,this[_0x48675a(0x171)]=this[_0x48675a(0x19a)][_0x48675a(0x185)][_0x48675a(0x139)](_0x48675a(0x18c)),this[_0x48675a(0x12a)]=new CloudServicesRevisionHistoryAdapter[(_0x48675a(0x15a))](_0x15257b);}async[_0x4abc12(0x15e)](){const _0x5c0c02=_0x4abc12,_0x333cf8=this[_0x5c0c02(0x19a)][_0x5c0c02(0x185)][_0x5c0c02(0x139)](_0x27f9b7),_0x17480a=_0x333cf8[_0x5c0c02(0x165)],_0x28b077=this[_0x5c0c02(0x19a)][_0x5c0c02(0x185)][_0x5c0c02(0x139)](_0x5ac8cc);this[_0x5c0c02(0x171)][_0x5c0c02(0x144)]({'history':_0x17480a,'getLatestVersion':()=>this[_0x5c0c02(0x136)](),'getCurrentRevisionId':()=>_0x333cf8[_0x5c0c02(0x145)]});const _0x2e0187=this[_0x5c0c02(0x19a)][_0x5c0c02(0x170)][_0x5c0c02(0x139)](_0x5c0c02(0x146))||_0x202d4f,_0x58c8e5=await _0x4cb801[_0x5c0c02(0x175)](_0x28b077[_0x5c0c02(0x152)],_0x2e0187);this[_0x5c0c02(0x19a)][_0x5c0c02(0x185)][_0x5c0c02(0x139)](_0x5c0c02(0x192))[_0x5c0c02(0x137)]={'getRevision':async({revisionId:_0xfcb5b6})=>(await this[_0x5c0c02(0x156)](),await this[_0x5c0c02(0x12a)][_0x5c0c02(0x166)](_0xfcb5b6)),'updateRevisions':async _0x128a24=>{const _0x46169f=_0x5c0c02;await this[_0x46169f(0x156)]();const _0x2f828d=this[_0x46169f(0x171)][_0x46169f(0x15f)];if(_0x58c8e5&&0x1===_0x128a24[_0x46169f(0x188)]&&_0x128a24[0x0]['id']===_0x2f828d['id'])return _0x128a24;for(const _0x440f71 of _0x128a24)_0x440f71['id']===_0x2f828d['id']&&(_0x440f71[_0x46169f(0x12e)]=_0x440f71[_0x46169f(0x14f)]===_0x440f71[_0x46169f(0x143)]);return this[_0x46169f(0x12a)][_0x46169f(0x167)](_0x128a24,this[_0x46169f(0x168)])[_0x46169f(0x18e)](_0x149066=>(this[_0x46169f(0x168)]=_0x149066,_0x128a24))[_0x46169f(0x15c)](_0x55b510=>{const _0x4c4805=_0x46169f;if(_(_0x55b510)||_0x4c4805(0x13f)===_0x55b510[_0x4c4805(0x184)]&&void 0x0!==_0x55b510[_0x4c4805(0x12f)][_0x4c4805(0x196)]){for(const _0x1b2dfe of _0x128a24){!this[_0x4c4805(0x171)][_0x4c4805(0x13a)][_0x4c4805(0x166)](_0x1b2dfe['id'])||this[_0x4c4805(0x171)][_0x4c4805(0x141)](_0x1b2dfe['id'],_0x1b2dfe,!0x1);}if(_(_0x55b510))throw _0x55b510;return _0x128a24;}throw _0x55b510;});}},this[_0x5c0c02(0x17f)](this[_0x5c0c02(0x12a)],_0x5c0c02(0x155),(_0x98a65b,{revisionsData:_0xc55a82,requestId:_0x2f157a})=>{const _0x17ff65=_0x5c0c02;Math[_0x17ff65(0x130)](..._0xc55a82[_0x17ff65(0x194)](_0x1d4595=>_0x1d4595[_0x17ff65(0x143)]))>this[_0x17ff65(0x190)]()-0x1?this[_0x17ff65(0x136)]()[_0x17ff65(0x18e)](()=>{const _0x3cbfa0=_0x17ff65;this[_0x3cbfa0(0x14d)](_0xc55a82,_0x2f157a);}):this[_0x17ff65(0x14d)](_0xc55a82,_0x2f157a);});const {revisions:_0x3ac8a3,requestId:_0x4f9c53}=await this[_0x5c0c02(0x12a)][_0x5c0c02(0x16b)](_0x28b077[_0x5c0c02(0x152)]);_0x28b077[_0x5c0c02(0x162)](this),this[_0x5c0c02(0x168)]=_0x4f9c53,await this[_0x5c0c02(0x169)](_0x3ac8a3);for(const _0xb5ffa of _0x3ac8a3)this[_0x5c0c02(0x171)][_0x5c0c02(0x182)](_0xb5ffa);this[_0x5c0c02(0x17f)](_0x333cf8,_0x5c0c02(0x191),(_0x74637a,_0x5314f5,_0x15839f)=>{const _0x352682=_0x5c0c02;_0x15839f&&(this[_0x352682(0x16c)]=_0x333cf8[_0x352682(0x199)],_0x74637a[_0x352682(0x154)]());}),this[_0x5c0c02(0x171)][_0x5c0c02(0x14a)](_0x5c0c02(0x159))['to'](_0x28b077,_0x5c0c02(0x12b),_0x5afa35=>_0x5afa35===_0x3d54ec[_0x5c0c02(0x17b)]);}async[_0x4abc12(0x15b)](){const _0x49268a=_0x4abc12,_0x103d63=this[_0x49268a(0x19a)][_0x49268a(0x185)][_0x49268a(0x139)](_0x5ac8cc),_0x18ca1a=this[_0x49268a(0x19a)][_0x49268a(0x185)][_0x49268a(0x139)](_0x27f9b7),_0x38b3d6=async()=>{const _0x4d2b62=_0x49268a,_0x106ff2=this[_0x4d2b62(0x171)][_0x4d2b62(0x15f)],_0xd2a9d8=_0x106ff2['id'],_0x3636ba=_0xd2a9d8!==_0x18ca1a[_0x4d2b62(0x145)];if(_0x3636ba){const _0x3179b=_0x18ca1a[_0x4d2b62(0x199)]-this[_0x4d2b62(0x16c)],_0x1027ff=this[_0x4d2b62(0x190)]();this[_0x4d2b62(0x171)][_0x4d2b62(0x164)][_0x4d2b62(0x179)]();if(_0x106ff2[_0x4d2b62(0x143)]+_0x3179b!==_0x1027ff){const _0xaf251=_0x106ff2[_0x4d2b62(0x14f)]+_0x3179b,_0x10eb51=this[_0x4d2b62(0x19a)][_0x4d2b62(0x185)][_0x4d2b62(0x139)](_0x55a398),_0x4e5ccb=this[_0x4d2b62(0x171)][_0x4d2b62(0x193)]({'revision':_0x106ff2,'from':_0xaf251,'to':_0x1027ff});_0x4e5ccb['id']=_0x106ff2['id'];const _0x5cc2d7=_0x4e5ccb[_0x4d2b62(0x15d)][_0x4d2b62(0x194)](_0x45e036=>_0x10eb51[_0x4d2b62(0x17c)](_0x45e036));_0x106ff2[_0x4d2b62(0x198)]({..._0x4e5ccb,'authors':_0x5cc2d7},!0x0),this[_0x4d2b62(0x171)][_0x4d2b62(0x141)](_0x106ff2['id'],_0x4e5ccb,!0x0);}this[_0x4d2b62(0x171)][_0x4d2b62(0x183)]=_0x1027ff,(_0x106ff2[_0x4d2b62(0x143)]===_0x106ff2[_0x4d2b62(0x14f)]&&!this[_0x4d2b62(0x171)][_0x4d2b62(0x177)][_0x4d2b62(0x138)](_0xd2a9d8)&&this[_0x4d2b62(0x171)][_0x4d2b62(0x13a)][_0x4d2b62(0x197)][_0x4d2b62(0x135)](_0xd2a9d8),this[_0x4d2b62(0x171)][_0x4d2b62(0x176)](_0x1027ff));}const {revisions:_0x4f6cd9,requestId:_0x49051c}=await this[_0x4d2b62(0x12a)][_0x4d2b62(0x15b)](_0x103d63[_0x4d2b62(0x152)],this[_0x4d2b62(0x168)]);_0x3636ba&&_0x4f6cd9[_0x4d2b62(0x188)]>0x0?_0x18ca1a[_0x4d2b62(0x131)]():(await this[_0x4d2b62(0x169)](_0x4f6cd9),this[_0x4d2b62(0x14d)](_0x4f6cd9,_0x49051c),this[_0x4d2b62(0x171)][_0x4d2b62(0x13e)]());};return _0x18ca1a[_0x49268a(0x12c)]?_0x38b3d6():new Promise((_0x392d8e,_0x2a442a)=>{const _0x49e264=_0x49268a;_0x18ca1a[_0x49e264(0x160)](_0x49e264(0x191),()=>{const _0x41cfb5=_0x49e264;_0x38b3d6()[_0x41cfb5(0x18e)](_0x392d8e)[_0x41cfb5(0x15c)](_0x2a442a);});});}[_0x4abc12(0x181)](){const _0x5ed8fa=_0x4abc12;super[_0x5ed8fa(0x181)]();}async[_0x4abc12(0x156)](){const _0x36fdad=_0x4abc12;this[_0x36fdad(0x12a)][_0x36fdad(0x128)]||await new Promise(_0x1b8cdd=>{const _0xd2467f=_0x36fdad;this[_0xd2467f(0x17f)](this[_0xd2467f(0x12a)],_0xd2467f(0x16e),_0xa1a291=>{const _0x164969=_0xd2467f;_0xa1a291[_0x164969(0x154)](),_0x1b8cdd();});});}[_0x4abc12(0x190)](){const _0x1a915a=_0x4abc12,_0x18385d=this[_0x1a915a(0x19a)][_0x1a915a(0x185)][_0x1a915a(0x139)](_0x27f9b7)[_0x1a915a(0x165)][_0x1a915a(0x129)]()[_0x1a915a(0x18a)]();for(const _0x3686ac of _0x18385d)if(_0x1a915a(0x187)!==_0x3686ac[_0x1a915a(0x133)]||_0x3686ac[_0x1a915a(0x12d)])return _0x3686ac[_0x1a915a(0x180)]+0x1;}[_0x4abc12(0x136)](){const _0x517b65=_0x4abc12,_0xa0dee8=this[_0x517b65(0x19a)][_0x517b65(0x185)][_0x517b65(0x139)](_0x27f9b7);return new Promise(_0x53f7cb=>{const _0x477a1d=_0x517b65;_0xa0dee8[_0x477a1d(0x126)]?_0xa0dee8[_0x477a1d(0x160)](_0x477a1d(0x17a),()=>{const _0x1291e0=_0x477a1d;_0x53f7cb(this[_0x1291e0(0x190)]());}):_0x53f7cb(this[_0x477a1d(0x190)]());});}[_0x4abc12(0x14d)](_0x19250c,_0x53883b){const _0x3d5bae=_0x4abc12,_0x59bdd4=this[_0x3d5bae(0x171)][_0x3d5bae(0x13a)];this[_0x3d5bae(0x168)]=_0x53883b;for(const _0x1e8149 of _0x19250c){const _0x40746b=_0x59bdd4[_0x3d5bae(0x166)](_0x1e8149['id']);if(_0x40746b){if((_0x1e8149[_0x3d5bae(0x14f)]||_0x1e8149[_0x3d5bae(0x143)])&&(_0x1e8149[_0x3d5bae(0x127)]=null),_0x40746b===this[_0x3d5bae(0x171)][_0x3d5bae(0x15f)]){const _0x513bb0=Math[_0x3d5bae(0x130)](_0x40746b[_0x3d5bae(0x143)],_0x1e8149[_0x3d5bae(0x143)]),_0x4c3854=Math[_0x3d5bae(0x130)](_0x40746b[_0x3d5bae(0x14f)],_0x1e8149[_0x3d5bae(0x14f)]);let _0x58f759;_0x40746b[_0x3d5bae(0x143)]===_0x1e8149[_0x3d5bae(0x143)]&&_0x40746b[_0x3d5bae(0x14f)]===_0x1e8149[_0x3d5bae(0x14f)]?(_0x58f759=!0x0,this[_0x3d5bae(0x142)](_0x1e8149)):_0x1e8149[_0x3d5bae(0x143)]===_0x513bb0&&_0x1e8149[_0x3d5bae(0x14f)]===_0x4c3854?_0x58f759=!0x1:(_0x40746b[_0x3d5bae(0x143)]===_0x513bb0&&_0x40746b[_0x3d5bae(0x14f)]===_0x4c3854||this[_0x3d5bae(0x125)]({'revision':_0x40746b,'from':_0x4c3854,'to':_0x513bb0}),_0x58f759=!0x0),_0x58f759&&(delete _0x1e8149[_0x3d5bae(0x14f)],delete _0x1e8149[_0x3d5bae(0x143)],delete _0x1e8149[_0x3d5bae(0x127)],delete _0x1e8149[_0x3d5bae(0x157)],delete _0x1e8149[_0x3d5bae(0x15d)]);}this[_0x3d5bae(0x171)][_0x3d5bae(0x172)](_0x1e8149),this[_0x3d5bae(0x142)](_0x1e8149);}else this[_0x3d5bae(0x171)][_0x3d5bae(0x182)](_0x1e8149);}const _0x4d00e8=_0x59bdd4[_0x3d5bae(0x158)]();_0x4d00e8[_0x3d5bae(0x18a)]();for(let _0xb10bbf=0x0;_0xb10bbf<_0x4d00e8[_0x3d5bae(0x188)]-0x1;_0xb10bbf++){const _0x1be422=_0x4d00e8[_0xb10bbf],_0xc444ec=_0x4d00e8[_0xb10bbf+0x1];if(_0x1be422[_0x3d5bae(0x14f)]<_0xc444ec[_0x3d5bae(0x143)]){const _0x40ac1f=_0xc444ec[_0x3d5bae(0x143)],_0x3d3d83=Math[_0x3d5bae(0x130)](_0x40ac1f,_0x1be422[_0x3d5bae(0x143)]);this[_0x3d5bae(0x125)]({'revision':_0x1be422,'from':_0x40ac1f,'to':_0x3d3d83});}}}[_0x4abc12(0x125)]({revision:_0x528795,from:_0x5d91e4,to:_0x57e184}={}){const _0x4f3dea=_0x4abc12,_0x33527b=this[_0x4f3dea(0x19a)][_0x4f3dea(0x185)][_0x4f3dea(0x139)](_0x55a398),_0x392d27=this[_0x4f3dea(0x171)][_0x4f3dea(0x193)]({'revision':_0x528795,'from':_0x5d91e4,'to':_0x57e184});_0x392d27[_0x4f3dea(0x16f)]=_0x392d27[_0x4f3dea(0x15d)][_0x4f3dea(0x194)](_0x39e1b9=>_0x33527b[_0x4f3dea(0x17c)](_0x39e1b9)),_0x528795[_0x4f3dea(0x198)](_0x392d27);}[_0x4abc12(0x142)](_0x103c25){const _0x4f613b=_0x4abc12,_0x1505f3={};_0x1505f3['id']=_0x103c25['id'];for(const _0x455825 of Object[_0x4f613b(0x17d)](_0x103c25))'id'!==_0x455825&&(_0x1505f3[_0x455825]=void 0x0);this[_0x4f613b(0x171)][_0x4f613b(0x141)](_0x1505f3['id'],_0x1505f3,!0x0);}async[_0x4abc12(0x169)](_0x36e577){const _0x3e108a=_0x4abc12,_0x16c3d2=this[_0x3e108a(0x19a)][_0x3e108a(0x185)][_0x3e108a(0x139)](_0x55a398),{connection:_0x25746e}=this[_0x3e108a(0x19a)][_0x3e108a(0x185)][_0x3e108a(0x139)](_0x5ac8cc),_0x41863d=new Set();for(const _0x195379 of _0x36e577){for(const _0x1f3927 of _0x195379[_0x3e108a(0x15d)])_0x1d84ea(_0x1f3927);_0x195379[_0x3e108a(0x147)]&&_0x1d84ea(_0x195379[_0x3e108a(0x147)]);}if(0x0===_0x41863d[_0x3e108a(0x153)])return;const _0x1f1604=await _0xbf68f0[_0x3e108a(0x18b)](_0x25746e,Array[_0x3e108a(0x149)](_0x41863d));for(const _0x5e0cf5 of _0x1f1604)_0x16c3d2[_0x3e108a(0x17c)](_0x5e0cf5['id'])||_0x16c3d2[_0x3e108a(0x13b)](_0x5e0cf5);function _0x1d84ea(_0x4ffd21){const _0x231091=_0x3e108a;_0x16c3d2[_0x231091(0x17c)](_0x4ffd21)||_0x41863d[_0x231091(0x163)](_0x4ffd21);}}}function _(_0x432450){const _0x2b6055=_0x4abc12;return _0x432450[_0x2b6055(0x195)][_0x2b6055(0x14c)](_0x2b6055(0x14e))||_0x432450[_0x2b6055(0x195)][_0x2b6055(0x14c)](_0x2b6055(0x178))||_0x432450[_0x2b6055(0x195)][_0x2b6055(0x14c)](_0x2b6055(0x132));}
23
+ const _0x8a2e0a=_0x42d3;function _0x42d3(_0x5617fa,_0x5f4407){const _0x433df3=_0x433d();return _0x42d3=function(_0x42d3dc,_0x25ef89){_0x42d3dc=_0x42d3dc-0x1db;let _0x3ab758=_0x433df3[_0x42d3dc];return _0x3ab758;},_0x42d3(_0x5617fa,_0x5f4407);}(function(_0x55c476,_0x8af840){const _0x297549=_0x42d3,_0x49b997=_0x55c476();while(!![]){try{const _0xba266=-parseInt(_0x297549(0x1f5))/0x1*(parseInt(_0x297549(0x202))/0x2)+-parseInt(_0x297549(0x23f))/0x3*(-parseInt(_0x297549(0x223))/0x4)+parseInt(_0x297549(0x1ee))/0x5+parseInt(_0x297549(0x214))/0x6*(parseInt(_0x297549(0x24b))/0x7)+parseInt(_0x297549(0x206))/0x8*(-parseInt(_0x297549(0x230))/0x9)+parseInt(_0x297549(0x200))/0xa*(-parseInt(_0x297549(0x227))/0xb)+parseInt(_0x297549(0x1eb))/0xc*(parseInt(_0x297549(0x217))/0xd);if(_0xba266===_0x8af840)break;else _0x49b997['push'](_0x49b997['shift']());}catch(_0x190b08){_0x49b997['push'](_0x49b997['shift']());}}}(_0x433d,0x45fb4));import{Plugin as _0x3ea6b0}from'ckeditor5/src/core.js';import{version as _0x1230ec}from'ckeditor5/src/utils.js';function _0x433d(){const _0x4efae2=['connection','wrongRequestId','CloudServicesRevisionHistoryAdapter','type','addRevisionData','diffData','8212BlNIMg','get','toVersion','message','setRevisionData','destroy','CONNECTED','getMany','cloud-services-internal-error:\x20Request\x20timeout.','affectsData','_revisionTracker','1330xFmvFZ','adapter','12XDKZKq','off','_preventResendingRevisionData','isBundleUploaded','559464lqnogA','_update','_revisionHistoryService','marker','pluginName','_handleReconnectionError','repository','updateRevisions','_handleRevisionsUpdate','RevisionHistoryService','listenTo','isEmptyCurrent','_oldOffset','creatorId','3228ZCmFAx','sendBufferedUpdates','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','13zGLeju','collaboration.channelId','cloudServices.bundleVersion','startsWith','_createCurrentRevision','isPremiumPlugin','connected','currentRevision','_revisionDataBuilder','serverHistory','editor','reverse','1311628OrdNNh','authors','getRevisions','sessionId','14179hozNeO','addToReconnectionStack','once','_getLatestVersion','isEnabled','authorsIds','change:_isPendingUpdate','addUser','createdAt','18gtOynE','_isConnected','config','connect','_bufferedUpdates','reconnect','add','isConnected','fromVersion','state','RevisionTracker','bind','getOperations','change:_isConnected','_waitForServiceReady','3nMlZob','400','_isPendingUpdate','length','_revisions','max','keys','size','from','setSource','code','baseVersion','2331CrSvgD','_startingVersion','revisionsUpdated','remove','_getLatestVersionFromServerOperations','has','then','plugins','map','catch','_bufferUpdate','_fixRevision','_lastRequestId','cloud-services-internal-error:\x20Not\x20connected.','RevisionHistory','reInit','getUser','requires','_offset','data','init','getRevision','buildRevisionData','925068jpUWPq','isOfficialPlugin','_fetchMissingUsers','315345QGutXC'];_0x433d=function(){return _0x4efae2;};return _0x433d();}import{Users as _0x215f55}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x4e41c2}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x4c6e0f}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x228f8b}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0xcf9255,RevisionHistoryService as _0x12d124,User as _0x48595c,WEB_SOCKET_GATEWAY_STATES as _0x45f7b1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x3ea6b0{static [_0x8a2e0a(0x20f)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x12d124)());[_0x8a2e0a(0x1e0)];[_0x8a2e0a(0x1ff)];[_0x8a2e0a(0x208)];[_0x8a2e0a(0x212)];static get[_0x8a2e0a(0x1e5)](){const _0x1ed95a=_0x8a2e0a;return[_0x4c6e0f,_0x4e41c2,_0x1ed95a(0x1e2),_0x228f8b,_0x215f55];}static get[_0x8a2e0a(0x20a)](){const _0x4bf618=_0x8a2e0a;return _0x4bf618(0x1f1);}static get[_0x8a2e0a(0x1ec)](){return!0x0;}static get[_0x8a2e0a(0x21c)](){return!0x0;}constructor(_0x325acf){const _0x36fa15=_0x8a2e0a;super(_0x325acf);const _0xbdbfaa=this[_0x36fa15(0x221)][_0x36fa15(0x232)][_0x36fa15(0x1f6)](_0x36fa15(0x218));this[_0x36fa15(0x1e0)]=null,this[_0x36fa15(0x1ff)]=this[_0x36fa15(0x221)][_0x36fa15(0x1db)][_0x36fa15(0x1f6)](_0x36fa15(0x23a)),this[_0x36fa15(0x208)]=new CloudServicesRevisionHistoryAdapter[(_0x36fa15(0x20f))](_0xbdbfaa);}async[_0x8a2e0a(0x1e8)](){const _0x564318=_0x8a2e0a,_0xc27ca9=this[_0x564318(0x221)][_0x564318(0x1db)][_0x564318(0x1f6)](_0x4e41c2),_0x174935=_0xc27ca9[_0x564318(0x220)],_0x1bf681=this[_0x564318(0x221)][_0x564318(0x1db)][_0x564318(0x1f6)](_0x4c6e0f);this[_0x564318(0x1ff)][_0x564318(0x248)]({'history':_0x174935,'getLatestVersion':()=>this[_0x564318(0x22a)](),'getCurrentRevisionId':()=>_0xc27ca9[_0x564318(0x226)]});const _0x3ef562=this[_0x564318(0x221)][_0x564318(0x232)][_0x564318(0x1f6)](_0x564318(0x219))||_0x1230ec,_0x10fc99=await _0xcf9255[_0x564318(0x205)](_0x1bf681[_0x564318(0x1ef)],_0x3ef562);this[_0x564318(0x221)][_0x564318(0x1db)][_0x564318(0x1f6)](_0x564318(0x1e2))[_0x564318(0x201)]={'getRevision':async({revisionId:_0x449451})=>(await this[_0x564318(0x23e)](),await this[_0x564318(0x208)][_0x564318(0x1e9)](_0x449451)),'updateRevisions':async _0x53498d=>{const _0x3651fd=_0x564318;await this[_0x3651fd(0x23e)]();const _0x4556bf=this[_0x3651fd(0x1ff)][_0x3651fd(0x21e)];if(_0x10fc99&&0x1===_0x53498d[_0x3651fd(0x242)]&&_0x53498d[0x0]['id']===_0x4556bf['id'])return _0x53498d;for(const _0x59af61 of _0x53498d)_0x59af61['id']===_0x4556bf['id']&&(_0x59af61[_0x3651fd(0x211)]=_0x59af61[_0x3651fd(0x238)]===_0x59af61[_0x3651fd(0x1f7)]);return this[_0x3651fd(0x208)][_0x3651fd(0x20d)](_0x53498d,this[_0x3651fd(0x1e0)])[_0x3651fd(0x251)](_0x40dcbd=>(this[_0x3651fd(0x1e0)]=_0x40dcbd,_0x53498d))[_0x3651fd(0x1dd)](_0x2c342b=>{const _0x25dea2=_0x3651fd;if(st(_0x2c342b)||_0x25dea2(0x240)===_0x2c342b[_0x25dea2(0x249)]&&void 0x0!==_0x2c342b[_0x25dea2(0x1e7)][_0x25dea2(0x1f0)]){for(const _0x52e371 of _0x53498d){!this[_0x25dea2(0x1ff)][_0x25dea2(0x20c)][_0x25dea2(0x1e9)](_0x52e371['id'])||this[_0x25dea2(0x1ff)][_0x25dea2(0x1de)](_0x52e371['id'],_0x52e371,!0x1);}if(st(_0x2c342b))throw _0x2c342b;return _0x53498d;}throw _0x2c342b;});}},this[_0x564318(0x210)](this[_0x564318(0x208)],_0x564318(0x24d),(_0x4dd4b5,{revisionsData:_0x412f42,requestId:_0x542333})=>{const _0x4d0f49=_0x564318;Math[_0x4d0f49(0x244)](..._0x412f42[_0x4d0f49(0x1dc)](_0x354298=>_0x354298[_0x4d0f49(0x1f7)]))>this[_0x4d0f49(0x24f)]()-0x1?this[_0x4d0f49(0x22a)]()[_0x4d0f49(0x251)](()=>{const _0x385488=_0x4d0f49;this[_0x385488(0x20e)](_0x412f42,_0x542333);}):this[_0x4d0f49(0x20e)](_0x412f42,_0x542333);});const {revisions:_0x3aa47c,requestId:_0x3a4524}=await this[_0x564318(0x208)][_0x564318(0x233)](_0x1bf681[_0x564318(0x1ef)]);_0x1bf681[_0x564318(0x228)](this),this[_0x564318(0x1e0)]=_0x3a4524,await this[_0x564318(0x1ed)](_0x3aa47c);for(const _0x28a32c of _0x3aa47c)this[_0x564318(0x1ff)][_0x564318(0x1f3)](_0x28a32c);this[_0x564318(0x210)](_0xc27ca9,_0x564318(0x23d),(_0x4f6efa,_0x3b2be1,_0x3447bb)=>{const _0x5eb548=_0x564318;_0x3447bb&&(this[_0x5eb548(0x212)]=_0xc27ca9[_0x5eb548(0x1e6)],_0x4f6efa[_0x5eb548(0x203)]());}),this[_0x564318(0x1ff)][_0x564318(0x23b)](_0x564318(0x22b))['to'](_0x1bf681,_0x564318(0x239),_0x556e86=>_0x556e86===_0x45f7b1[_0x564318(0x1fb)]);}async[_0x8a2e0a(0x235)](){const _0x3a903d=_0x8a2e0a,_0xf59597=this[_0x3a903d(0x221)][_0x3a903d(0x1db)][_0x3a903d(0x1f6)](_0x4c6e0f),_0x131858=this[_0x3a903d(0x221)][_0x3a903d(0x1db)][_0x3a903d(0x1f6)](_0x4e41c2),_0x3dd54d=async()=>{const _0x598849=_0x3a903d,_0x5cf362=this[_0x598849(0x1ff)][_0x598849(0x21e)],_0x3a22cd=_0x5cf362['id'],_0x14d2fc=_0x3a22cd!==_0x131858[_0x598849(0x226)];if(_0x14d2fc){const _0x7aaf57=_0x131858[_0x598849(0x1e6)]-this[_0x598849(0x212)],_0x1f6d40=this[_0x598849(0x24f)]();this[_0x598849(0x1ff)][_0x598849(0x21f)][_0x598849(0x1e3)]();if(_0x5cf362[_0x598849(0x1f7)]+_0x7aaf57!==_0x1f6d40){const _0x4f64e8=_0x5cf362[_0x598849(0x238)]+_0x7aaf57,_0xfc2a19=this[_0x598849(0x221)][_0x598849(0x1db)][_0x598849(0x1f6)](_0x215f55),_0x51ae8e=this[_0x598849(0x1ff)][_0x598849(0x1ea)]({'revision':_0x5cf362,'from':_0x4f64e8,'to':_0x1f6d40});_0x51ae8e['id']=_0x5cf362['id'];const _0x1cbcff=_0x51ae8e[_0x598849(0x22c)][_0x598849(0x1dc)](_0x473c86=>_0xfc2a19[_0x598849(0x1e4)](_0x473c86));_0x5cf362[_0x598849(0x207)]({..._0x51ae8e,'authors':_0x1cbcff},!0x0),this[_0x598849(0x1ff)][_0x598849(0x1de)](_0x5cf362['id'],_0x51ae8e,!0x0);}this[_0x598849(0x1ff)][_0x598849(0x24c)]=_0x1f6d40,(_0x5cf362[_0x598849(0x1f7)]===_0x5cf362[_0x598849(0x238)]&&!this[_0x598849(0x1ff)][_0x598849(0x234)][_0x598849(0x250)](_0x3a22cd)&&this[_0x598849(0x1ff)][_0x598849(0x20c)][_0x598849(0x243)][_0x598849(0x24e)](_0x3a22cd),this[_0x598849(0x1ff)][_0x598849(0x21b)](_0x1f6d40));}const {revisions:_0x372b4d,requestId:_0x52fb5d}=await this[_0x598849(0x208)][_0x598849(0x235)](_0xf59597[_0x598849(0x1ef)],this[_0x598849(0x1e0)]);_0x14d2fc&&_0x372b4d[_0x598849(0x242)]>0x0?_0x131858[_0x598849(0x20b)]():(await this[_0x598849(0x1ed)](_0x372b4d),this[_0x598849(0x20e)](_0x372b4d,_0x52fb5d),this[_0x598849(0x1ff)][_0x598849(0x215)]());};return _0x131858[_0x3a903d(0x231)]?_0x3dd54d():new Promise((_0x399bb3,_0x4bbc4e)=>{const _0xcd44bd=_0x3a903d;_0x131858[_0xcd44bd(0x229)](_0xcd44bd(0x23d),()=>{const _0x7bfbb4=_0xcd44bd;_0x3dd54d()[_0x7bfbb4(0x251)](_0x399bb3)[_0x7bfbb4(0x1dd)](_0x4bbc4e);});});}[_0x8a2e0a(0x1fa)](){const _0x46a835=_0x8a2e0a;super[_0x46a835(0x1fa)]();}async[_0x8a2e0a(0x23e)](){const _0x309a38=_0x8a2e0a;this[_0x309a38(0x208)][_0x309a38(0x237)]||await new Promise(_0x198cdd=>{const _0x148ffa=_0x309a38;this[_0x148ffa(0x210)](this[_0x148ffa(0x208)],_0x148ffa(0x21d),_0x56eb44=>{const _0x5c61cc=_0x148ffa;_0x56eb44[_0x5c61cc(0x203)](),_0x198cdd();});});}[_0x8a2e0a(0x24f)](){const _0x13e3ac=_0x8a2e0a,_0x14ca36=this[_0x13e3ac(0x221)][_0x13e3ac(0x1db)][_0x13e3ac(0x1f6)](_0x4e41c2)[_0x13e3ac(0x220)][_0x13e3ac(0x23c)]()[_0x13e3ac(0x222)]();for(const _0x77e78d of _0x14ca36)if(_0x13e3ac(0x209)!==_0x77e78d[_0x13e3ac(0x1f2)]||_0x77e78d[_0x13e3ac(0x1fe)])return _0x77e78d[_0x13e3ac(0x24a)]+0x1;}[_0x8a2e0a(0x22a)](){const _0x5ec8fa=_0x8a2e0a,_0x2d556a=this[_0x5ec8fa(0x221)][_0x5ec8fa(0x1db)][_0x5ec8fa(0x1f6)](_0x4e41c2);return new Promise(_0x325971=>{const _0x180160=_0x5ec8fa;_0x2d556a[_0x180160(0x241)]?_0x2d556a[_0x180160(0x229)](_0x180160(0x22d),()=>{const _0x2578c8=_0x180160;_0x325971(this[_0x2578c8(0x24f)]());}):_0x325971(this[_0x180160(0x24f)]());});}[_0x8a2e0a(0x20e)](_0x4d9836,_0x21e699){const _0x951f0c=_0x8a2e0a,_0x1bb361=this[_0x951f0c(0x1ff)][_0x951f0c(0x20c)];this[_0x951f0c(0x1e0)]=_0x21e699;for(const _0x31be5c of _0x4d9836){const _0x25fb4b=_0x1bb361[_0x951f0c(0x1e9)](_0x31be5c['id']);if(_0x25fb4b){if((_0x31be5c[_0x951f0c(0x238)]||_0x31be5c[_0x951f0c(0x1f7)])&&(_0x31be5c[_0x951f0c(0x1f4)]=null),_0x25fb4b===this[_0x951f0c(0x1ff)][_0x951f0c(0x21e)]){const _0x4a60a5=Math[_0x951f0c(0x244)](_0x25fb4b[_0x951f0c(0x1f7)],_0x31be5c[_0x951f0c(0x1f7)]),_0x46f6fc=Math[_0x951f0c(0x244)](_0x25fb4b[_0x951f0c(0x238)],_0x31be5c[_0x951f0c(0x238)]);let _0x4903ea;_0x25fb4b[_0x951f0c(0x1f7)]===_0x31be5c[_0x951f0c(0x1f7)]&&_0x25fb4b[_0x951f0c(0x238)]===_0x31be5c[_0x951f0c(0x238)]?(_0x4903ea=!0x0,this[_0x951f0c(0x204)](_0x31be5c)):_0x31be5c[_0x951f0c(0x1f7)]===_0x4a60a5&&_0x31be5c[_0x951f0c(0x238)]===_0x46f6fc?_0x4903ea=!0x1:(_0x25fb4b[_0x951f0c(0x1f7)]===_0x4a60a5&&_0x25fb4b[_0x951f0c(0x238)]===_0x46f6fc||this[_0x951f0c(0x1df)]({'revision':_0x25fb4b,'from':_0x46f6fc,'to':_0x4a60a5}),_0x4903ea=!0x0),_0x4903ea&&(delete _0x31be5c[_0x951f0c(0x238)],delete _0x31be5c[_0x951f0c(0x1f7)],delete _0x31be5c[_0x951f0c(0x1f4)],delete _0x31be5c[_0x951f0c(0x22f)],delete _0x31be5c[_0x951f0c(0x22c)]);}this[_0x951f0c(0x1ff)][_0x951f0c(0x1f9)](_0x31be5c),this[_0x951f0c(0x204)](_0x31be5c);}else this[_0x951f0c(0x1ff)][_0x951f0c(0x1f3)](_0x31be5c);}const _0x3ca38c=_0x1bb361[_0x951f0c(0x225)]();_0x3ca38c[_0x951f0c(0x222)]();for(let _0xa56ef4=0x0;_0xa56ef4<_0x3ca38c[_0x951f0c(0x242)]-0x1;_0xa56ef4++){const _0x531b29=_0x3ca38c[_0xa56ef4],_0xb99988=_0x3ca38c[_0xa56ef4+0x1];if(_0x531b29[_0x951f0c(0x238)]<_0xb99988[_0x951f0c(0x1f7)]){const _0x3e3497=_0xb99988[_0x951f0c(0x1f7)],_0x32f9d6=Math[_0x951f0c(0x244)](_0x3e3497,_0x531b29[_0x951f0c(0x1f7)]);this[_0x951f0c(0x1df)]({'revision':_0x531b29,'from':_0x3e3497,'to':_0x32f9d6});}}}[_0x8a2e0a(0x1df)]({revision:_0x604748,from:_0x5b77a8,to:_0x20ad53}={}){const _0xc3c705=_0x8a2e0a,_0x55849e=this[_0xc3c705(0x221)][_0xc3c705(0x1db)][_0xc3c705(0x1f6)](_0x215f55),_0x56e805=this[_0xc3c705(0x1ff)][_0xc3c705(0x1ea)]({'revision':_0x604748,'from':_0x5b77a8,'to':_0x20ad53});_0x56e805[_0xc3c705(0x224)]=_0x56e805[_0xc3c705(0x22c)][_0xc3c705(0x1dc)](_0x4be6d4=>_0x55849e[_0xc3c705(0x1e4)](_0x4be6d4)),_0x604748[_0xc3c705(0x207)](_0x56e805);}[_0x8a2e0a(0x204)](_0x3f4d1a){const _0x22e553=_0x8a2e0a,_0x414074={};_0x414074['id']=_0x3f4d1a['id'];for(const _0xb41e44 of Object[_0x22e553(0x245)](_0x3f4d1a))'id'!==_0xb41e44&&(_0x414074[_0xb41e44]=void 0x0);this[_0x22e553(0x1ff)][_0x22e553(0x1de)](_0x414074['id'],_0x414074,!0x0);}async[_0x8a2e0a(0x1ed)](_0x5204d4){const _0x4c5f62=_0x8a2e0a,_0x3f18f5=this[_0x4c5f62(0x221)][_0x4c5f62(0x1db)][_0x4c5f62(0x1f6)](_0x215f55),{connection:_0x34e6ea}=this[_0x4c5f62(0x221)][_0x4c5f62(0x1db)][_0x4c5f62(0x1f6)](_0x4c6e0f),_0x4005ec=new Set();for(const _0x1eeeea of _0x5204d4){for(const _0x37c565 of _0x1eeeea[_0x4c5f62(0x22c)])_0x4f486a(_0x37c565);_0x1eeeea[_0x4c5f62(0x213)]&&_0x4f486a(_0x1eeeea[_0x4c5f62(0x213)]);}if(0x0===_0x4005ec[_0x4c5f62(0x246)])return;const _0x58005b=await _0x48595c[_0x4c5f62(0x1fc)](_0x34e6ea,Array[_0x4c5f62(0x247)](_0x4005ec));for(const _0x4d55a1 of _0x58005b)_0x3f18f5[_0x4c5f62(0x1e4)](_0x4d55a1['id'])||_0x3f18f5[_0x4c5f62(0x22e)](_0x4d55a1);function _0x4f486a(_0x35c203){const _0x235a92=_0x4c5f62;_0x3f18f5[_0x235a92(0x1e4)](_0x35c203)||_0x4005ec[_0x235a92(0x236)](_0x35c203);}}}function st(_0x529c84){const _0x55bd6c=_0x8a2e0a;return _0x529c84[_0x55bd6c(0x1f8)][_0x55bd6c(0x21a)](_0x55bd6c(0x216))||_0x529c84[_0x55bd6c(0x1f8)][_0x55bd6c(0x21a)](_0x55bd6c(0x1e1))||_0x529c84[_0x55bd6c(0x1f8)][_0x55bd6c(0x21a)](_0x55bd6c(0x1fd));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cbf72=_0x76a1;(function(_0x3bebb8,_0x7e58c4){const _0x35e256=_0x76a1,_0x53a001=_0x3bebb8();while(!![]){try{const _0x455491=parseInt(_0x35e256(0x11f))/0x1*(parseInt(_0x35e256(0x107))/0x2)+-parseInt(_0x35e256(0x103))/0x3*(parseInt(_0x35e256(0x109))/0x4)+-parseInt(_0x35e256(0x111))/0x5+-parseInt(_0x35e256(0x133))/0x6*(-parseInt(_0x35e256(0xf9))/0x7)+parseInt(_0x35e256(0x102))/0x8+parseInt(_0x35e256(0x125))/0x9+parseInt(_0x35e256(0x110))/0xa*(parseInt(_0x35e256(0x12d))/0xb);if(_0x455491===_0x7e58c4)break;else _0x53a001['push'](_0x53a001['shift']());}catch(_0x323dfc){_0x53a001['push'](_0x53a001['shift']());}}}(_0x3ae0,0x50266));function _0x3ae0(){const _0x2c6e6b=['connected','get','getMany','CloudServicesTrackChangesAdapter','message','pluginName','then','_bufferedRequests','addUser','editor','open','from','startsWith','953dbxJxU','_trackChangesService','set','delete','TrackChangesService','addToReconnectionStack','1904148HZhNuy','_fetchMissingUsersForThreads','isPremiumPlugin','suggestionUpdated','getUser','originalSuggestionId','listenTo','connect','22vxbQjI','reconnect','config','isConnected','data','requires','6icuAHL','find','cloud-services-internal-error:\x20Request\x20timeout.','isOfficialPlugin','collaboration.channelId','_waitForServiceReady','hasSuggestion','299873JcsnLB','catch','getSuggestion','state','values','update','attributes','type','cloud-services-internal-error:\x20Not\x20connected.','2805496YrAyZr','57qxsyPo','off','add','connection','178nwagyh','plugins','98664Tlmyqt','init','_saved','adapter','TrackChangesEditing','addSuggestionData','size','1593010QooymZ','1057845plSWYp'];_0x3ae0=function(){return _0x2c6e6b;};return _0x3ae0();}import{Plugin as _0x10d891}from'ckeditor5/src/core.js';import{User as _0xb4f6a0,TrackChangesService as _0x224b98}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x3456bd}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x32c5ea}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x76a1(_0x535ace,_0x4dadf9){const _0x3ae09e=_0x3ae0();return _0x76a1=function(_0x76a1a6,_0xac170f){_0x76a1a6=_0x76a1a6-0xf3;let _0x286f3b=_0x3ae09e[_0x76a1a6];return _0x286f3b;},_0x76a1(_0x535ace,_0x4dadf9);}import{Users as _0x2021b7}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x10d891{static [_0x4cbf72(0x123)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x224b98)());[_0x4cbf72(0x119)];[_0x4cbf72(0x120)];static get[_0x4cbf72(0x132)](){const _0x1db372=_0x4cbf72;return[_0x32c5ea,_0x1db372(0x10d),_0x3456bd];}static get[_0x4cbf72(0x117)](){const _0x3e125c=_0x4cbf72;return _0x3e125c(0x115);}static get[_0x4cbf72(0xf5)](){return!0x0;}static get[_0x4cbf72(0x127)](){return!0x0;}constructor(_0x405127){const _0x4a938a=_0x4cbf72;super(_0x405127);const _0x1b2211=this[_0x4a938a(0x11b)][_0x4a938a(0x12f)][_0x4a938a(0x113)](_0x4a938a(0xf6));this[_0x4a938a(0x119)]=new Map(),this[_0x4a938a(0x120)]=new CloudServicesTrackChangesAdapter[(_0x4a938a(0x123))](_0x1b2211);}[_0x4cbf72(0x10a)](){const _0x39102c=_0x4cbf72,_0x525d13=this[_0x39102c(0x11b)][_0x39102c(0x108)][_0x39102c(0x113)](_0x3456bd),_0x1b9763=this[_0x39102c(0x11b)][_0x39102c(0x108)][_0x39102c(0x113)](_0x39102c(0x10d));return _0x1b9763[_0x39102c(0x10c)]={'getSuggestion':async _0x3023bb=>{const _0x4b1f94=_0x39102c;await this[_0x4b1f94(0xf7)]();const _0x1dec1d=await this[_0x4b1f94(0x120)][_0x4b1f94(0x113)](_0x3023bb)[_0x4b1f94(0xfa)](k);return await this[_0x4b1f94(0x126)]([_0x1dec1d]),_0x1dec1d;},'addSuggestion':async({id:_0x2fa27c,type:_0x5b7e22,data:_0x4d1c48,originalSuggestionId:_0xaa0801,attributes:_0x4a8911})=>{const _0x302785=_0x39102c;await this[_0x302785(0xf7)]();const _0x3e913d={'id':_0x2fa27c,'type':_0x5b7e22,'data':_0x4d1c48,'originalSuggestionId':_0xaa0801,'attributes':_0x4a8911},_0x55e7f0=await this[_0x302785(0x120)][_0x302785(0x105)](_0x2fa27c,_0x5b7e22,_0x4d1c48,_0xaa0801,_0x4a8911)[_0x302785(0xfa)](_0x4c10b0=>{if(_(_0x4c10b0))return new Promise(_0xe1cef=>{const _0x394d27=_0x76a1;this[_0x394d27(0x119)][_0x394d27(0x121)](_0x2fa27c,{'resolve':_0xe1cef,'suggestionData':_0x3e913d});});throw _0x4c10b0;});return this[_0x302785(0x119)][_0x302785(0x122)](_0x2fa27c),_0x55e7f0;},'updateSuggestion':async(_0x3870dc,_0x189168)=>{const _0x1346ba=_0x39102c;if(await this[_0x1346ba(0xf7)](),_0x1346ba(0x11c)!==_0x189168[_0x1346ba(0xfc)])return this[_0x1346ba(0x120)][_0x1346ba(0xfe)](_0x3870dc,_0x189168)[_0x1346ba(0xfa)](k);}},this[_0x39102c(0x12b)](this[_0x39102c(0x120)],_0x39102c(0x128),(_0x2d092b,_0xbdc2af)=>{const _0x10d2ae=_0x39102c;_0x1b9763[_0x10d2ae(0xf8)](_0xbdc2af['id'])&&(_0x1b9763[_0x10d2ae(0xfb)](_0xbdc2af['id'])[_0x10d2ae(0xff)]=_0xbdc2af[_0x10d2ae(0xff)]);}),this[_0x39102c(0x120)][_0x39102c(0x12c)](_0x525d13[_0x39102c(0x106)])[_0x39102c(0x118)](_0x54efd8=>(_0x525d13[_0x39102c(0x124)](this),this[_0x39102c(0x126)](_0x54efd8)[_0x39102c(0x118)](()=>{const _0x4b1f47=_0x39102c;for(const _0x4f5814 of _0x54efd8){_0x1b9763[_0x4b1f47(0x10e)](_0x4f5814)[_0x4b1f47(0x10b)]=!0x0;}})));}async[_0x4cbf72(0x12e)](){const _0x4123a1=_0x4cbf72,_0x3900ce=this[_0x4123a1(0x11b)][_0x4123a1(0x108)][_0x4123a1(0x113)](_0x4123a1(0x10d)),{connection:_0xee8bac}=this[_0x4123a1(0x11b)][_0x4123a1(0x108)][_0x4123a1(0x113)](_0x3456bd),_0x8eba9=await this[_0x4123a1(0x120)][_0x4123a1(0x12c)](_0xee8bac);await this[_0x4123a1(0x126)](_0x8eba9);for(const {suggestionData:_0x2bf645,resolve:_0x3208e0}of this[_0x4123a1(0x119)][_0x4123a1(0xfd)]()){let _0x3c406c=_0x8eba9[_0x4123a1(0xf3)](_0x27de27=>_0x27de27['id']===_0x2bf645['id']);_0x3c406c||(_0x3c406c=await this[_0x4123a1(0x120)][_0x4123a1(0x105)](_0x2bf645['id'],_0x2bf645[_0x4123a1(0x100)],_0x2bf645[_0x4123a1(0x131)],_0x2bf645[_0x4123a1(0x12a)])),_0x3208e0(_0x3c406c);}for(const _0x458d05 of _0x8eba9)_0x3900ce[_0x4123a1(0xf8)](_0x458d05['id'])||_0x3900ce[_0x4123a1(0x10e)](_0x458d05);}async[_0x4cbf72(0xf7)](){const _0x20eef7=_0x4cbf72;this[_0x20eef7(0x120)][_0x20eef7(0x130)]||await new Promise(_0x5e9d90=>{const _0x199a77=_0x20eef7;this[_0x199a77(0x12b)](this[_0x199a77(0x120)],_0x199a77(0x112),_0x4a50e4=>{const _0x4a3cfc=_0x199a77;_0x4a50e4[_0x4a3cfc(0x104)](),_0x5e9d90();});});}async[_0x4cbf72(0x126)](_0x1f4be2){const _0x5c2f3f=_0x4cbf72,_0x5d973f=this[_0x5c2f3f(0x11b)][_0x5c2f3f(0x108)][_0x5c2f3f(0x113)](_0x2021b7),{connection:_0x18149c}=this[_0x5c2f3f(0x11b)][_0x5c2f3f(0x108)][_0x5c2f3f(0x113)](_0x3456bd),_0x522fd3=new Set();for(const {authorId:_0x1ff704}of _0x1f4be2)_0x5d973f[_0x5c2f3f(0x129)](_0x1ff704)||_0x522fd3[_0x5c2f3f(0x105)](_0x1ff704);if(0x0===_0x522fd3[_0x5c2f3f(0x10f)])return;const _0x3e4068=await _0xb4f6a0[_0x5c2f3f(0x114)](_0x18149c,Array[_0x5c2f3f(0x11d)](_0x522fd3));for(const _0x1a5c9d of _0x3e4068)_0x5d973f[_0x5c2f3f(0x129)](_0x1a5c9d['id'])||_0x5d973f[_0x5c2f3f(0x11a)](_0x1a5c9d);}}function k(_0x3a4bc9){if(_(_0x3a4bc9))return new Promise(()=>{});throw _0x3a4bc9;}function _(_0x1c5493){const _0x4ed979=_0x4cbf72;return _0x1c5493[_0x4ed979(0x116)][_0x4ed979(0x11e)](_0x4ed979(0x101))||_0x1c5493[_0x4ed979(0x116)][_0x4ed979(0x11e)](_0x4ed979(0xf4));}
23
+ function _0x2fa3(){const _0x5e914e=['getUser','TrackChangesEditing','values','isConnected','30499nefYkH','22GUwihn','connect','delete','requires','connection','add','850794qvuPzi','1039800spsJZE','collaboration.channelId','size','8693KtYAIQ','154590FLfuSq','911152TwvfuK','addSuggestionData','12OWTsVB','connected','then','pluginName','addUser','init','get','14XsNLya','plugins','state','_waitForServiceReady','open','168EWjoDE','_saved','update','message','from','isOfficialPlugin','_trackChangesService','cloud-services-internal-error:\x20Not\x20connected.','hasSuggestion','_fetchMissingUsersForThreads','TrackChangesService','reconnect','listenTo','config','startsWith','_bufferedRequests','type','isPremiumPlugin','find','adapter','getMany','suggestionUpdated','set','originalSuggestionId','off','data','editor','catch','getSuggestion','attributes','CloudServicesTrackChangesAdapter','416304OegLph','cloud-services-internal-error:\x20Request\x20timeout.','addToReconnectionStack'];_0x2fa3=function(){return _0x5e914e;};return _0x2fa3();}const _0x3c0042=_0x4fdf;function _0x4fdf(_0x1423b9,_0x501b16){const _0x2fa307=_0x2fa3();return _0x4fdf=function(_0x4fdfd5,_0x612ee2){_0x4fdfd5=_0x4fdfd5-0x6d;let _0xb752ed=_0x2fa307[_0x4fdfd5];return _0xb752ed;},_0x4fdf(_0x1423b9,_0x501b16);}(function(_0x2ad240,_0x30efe3){const _0x2d6d92=_0x4fdf,_0x43cb4e=_0x2ad240();while(!![]){try{const _0x5923a4=parseInt(_0x2d6d92(0x7f))/0x1*(-parseInt(_0x2d6d92(0x8a))/0x2)+parseInt(_0x2d6d92(0x7b))/0x3+-parseInt(_0x2d6d92(0x81))/0x4+parseInt(_0x2d6d92(0x80))/0x5*(-parseInt(_0x2d6d92(0x83))/0x6)+-parseInt(_0x2d6d92(0x74))/0x7*(-parseInt(_0x2d6d92(0x8f))/0x8)+-parseInt(_0x2d6d92(0x6d))/0x9+parseInt(_0x2d6d92(0x7c))/0xa*(parseInt(_0x2d6d92(0x75))/0xb);if(_0x5923a4===_0x30efe3)break;else _0x43cb4e['push'](_0x43cb4e['shift']());}catch(_0x36d1a8){_0x43cb4e['push'](_0x43cb4e['shift']());}}}(_0x2fa3,0x2d7d4));import{Plugin as _0x147575}from'ckeditor5/src/core.js';import{User as _0x4645f7,TrackChangesService as _0x45dd8f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x9b151f}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0xb34fa2}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x50f13b}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x147575{static [_0x3c0042(0x99)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x45dd8f)());[_0x3c0042(0x9e)];[_0x3c0042(0x95)];static get[_0x3c0042(0x78)](){const _0x433359=_0x3c0042;return[_0xb34fa2,_0x433359(0x71),_0x9b151f];}static get[_0x3c0042(0x86)](){const _0xbdadab=_0x3c0042;return _0xbdadab(0xad);}static get[_0x3c0042(0x94)](){return!0x0;}static get[_0x3c0042(0xa0)](){return!0x0;}constructor(_0x569610){const _0x325c00=_0x3c0042;super(_0x569610);const _0x4b74de=this[_0x325c00(0xa9)][_0x325c00(0x9c)][_0x325c00(0x89)](_0x325c00(0x7d));this[_0x325c00(0x9e)]=new Map(),this[_0x325c00(0x95)]=new CloudServicesTrackChangesAdapter[(_0x325c00(0x99))](_0x4b74de);}[_0x3c0042(0x88)](){const _0x12f0f3=_0x3c0042,_0x39fd51=this[_0x12f0f3(0xa9)][_0x12f0f3(0x8b)][_0x12f0f3(0x89)](_0x9b151f),_0x3c498c=this[_0x12f0f3(0xa9)][_0x12f0f3(0x8b)][_0x12f0f3(0x89)](_0x12f0f3(0x71));return _0x3c498c[_0x12f0f3(0xa2)]={'getSuggestion':async _0x138c85=>{const _0x1ca66f=_0x12f0f3;await this[_0x1ca66f(0x8d)]();const _0x31931e=await this[_0x1ca66f(0x95)][_0x1ca66f(0x89)](_0x138c85)[_0x1ca66f(0xaa)](k);return await this[_0x1ca66f(0x98)]([_0x31931e]),_0x31931e;},'addSuggestion':async({id:_0x4347d0,type:_0x369737,data:_0x5adbd0,originalSuggestionId:_0x160665,attributes:_0x509dd4})=>{const _0x29888e=_0x12f0f3;await this[_0x29888e(0x8d)]();const _0x1269a5={'id':_0x4347d0,'type':_0x369737,'data':_0x5adbd0,'originalSuggestionId':_0x160665,'attributes':_0x509dd4},_0x102ac5=await this[_0x29888e(0x95)][_0x29888e(0x7a)](_0x4347d0,_0x369737,_0x5adbd0,_0x160665,_0x509dd4)[_0x29888e(0xaa)](_0x4ed7c6=>{if(st(_0x4ed7c6))return new Promise(_0x34bf11=>{const _0x37a141=_0x4fdf;this[_0x37a141(0x9e)][_0x37a141(0xa5)](_0x4347d0,{'resolve':_0x34bf11,'suggestionData':_0x1269a5});});throw _0x4ed7c6;});return this[_0x29888e(0x9e)][_0x29888e(0x77)](_0x4347d0),_0x102ac5;},'updateSuggestion':async(_0x5879fc,_0x3ddf21)=>{const _0x21bb7d=_0x12f0f3;if(await this[_0x21bb7d(0x8d)](),_0x21bb7d(0x8e)!==_0x3ddf21[_0x21bb7d(0x8c)])return this[_0x21bb7d(0x95)][_0x21bb7d(0x91)](_0x5879fc,_0x3ddf21)[_0x21bb7d(0xaa)](k);}},this[_0x12f0f3(0x9b)](this[_0x12f0f3(0x95)],_0x12f0f3(0xa4),(_0xce5993,_0x5b3123)=>{const _0x5ca2d9=_0x12f0f3;_0x3c498c[_0x5ca2d9(0x97)](_0x5b3123['id'])&&(_0x3c498c[_0x5ca2d9(0xab)](_0x5b3123['id'])[_0x5ca2d9(0xac)]=_0x5b3123[_0x5ca2d9(0xac)]);}),this[_0x12f0f3(0x95)][_0x12f0f3(0x76)](_0x39fd51[_0x12f0f3(0x79)])[_0x12f0f3(0x85)](_0x1cbe9d=>(_0x39fd51[_0x12f0f3(0x6f)](this),this[_0x12f0f3(0x98)](_0x1cbe9d)[_0x12f0f3(0x85)](()=>{const _0x2db0bd=_0x12f0f3;for(const _0x4befa3 of _0x1cbe9d){_0x3c498c[_0x2db0bd(0x82)](_0x4befa3)[_0x2db0bd(0x90)]=!0x0;}})));}async[_0x3c0042(0x9a)](){const _0x300417=_0x3c0042,_0xe5cf5c=this[_0x300417(0xa9)][_0x300417(0x8b)][_0x300417(0x89)](_0x300417(0x71)),{connection:_0x529e4b}=this[_0x300417(0xa9)][_0x300417(0x8b)][_0x300417(0x89)](_0x9b151f),_0x1cd5d8=await this[_0x300417(0x95)][_0x300417(0x76)](_0x529e4b);await this[_0x300417(0x98)](_0x1cd5d8);for(const {suggestionData:_0x78910,resolve:_0x35482f}of this[_0x300417(0x9e)][_0x300417(0x72)]()){let _0x10661d=_0x1cd5d8[_0x300417(0xa1)](_0x19844d=>_0x19844d['id']===_0x78910['id']);_0x10661d||(_0x10661d=await this[_0x300417(0x95)][_0x300417(0x7a)](_0x78910['id'],_0x78910[_0x300417(0x9f)],_0x78910[_0x300417(0xa8)],_0x78910[_0x300417(0xa6)])),_0x35482f(_0x10661d);}for(const _0x4318c9 of _0x1cd5d8)_0xe5cf5c[_0x300417(0x97)](_0x4318c9['id'])||_0xe5cf5c[_0x300417(0x82)](_0x4318c9);}async[_0x3c0042(0x8d)](){const _0x394105=_0x3c0042;this[_0x394105(0x95)][_0x394105(0x73)]||await new Promise(_0xadc614=>{const _0xfb2327=_0x394105;this[_0xfb2327(0x9b)](this[_0xfb2327(0x95)],_0xfb2327(0x84),_0x3ab83d=>{const _0x1ef787=_0xfb2327;_0x3ab83d[_0x1ef787(0xa7)](),_0xadc614();});});}async[_0x3c0042(0x98)](_0x5bfbc6){const _0x2648ad=_0x3c0042,_0x1e400f=this[_0x2648ad(0xa9)][_0x2648ad(0x8b)][_0x2648ad(0x89)](_0x50f13b),{connection:_0x1664ac}=this[_0x2648ad(0xa9)][_0x2648ad(0x8b)][_0x2648ad(0x89)](_0x9b151f),_0x4141b6=new Set();for(const {authorId:_0x593d2c}of _0x5bfbc6)_0x1e400f[_0x2648ad(0x70)](_0x593d2c)||_0x4141b6[_0x2648ad(0x7a)](_0x593d2c);if(0x0===_0x4141b6[_0x2648ad(0x7e)])return;const _0x24e855=await _0x4645f7[_0x2648ad(0xa3)](_0x1664ac,Array[_0x2648ad(0x93)](_0x4141b6));for(const _0x18a190 of _0x24e855)_0x1e400f[_0x2648ad(0x70)](_0x18a190['id'])||_0x1e400f[_0x2648ad(0x87)](_0x18a190);}}function k(_0x2f64e3){if(st(_0x2f64e3))return new Promise(()=>{});throw _0x2f64e3;}function st(_0x36af5a){const _0x107a95=_0x3c0042;return _0x36af5a[_0x107a95(0x92)][_0x107a95(0x9d)](_0x107a95(0x96))||_0x36af5a[_0x107a95(0x92)][_0x107a95(0x9d)](_0x107a95(0x6e));}