@univerjs-pro/collaboration-client-node 0.22.0 → 0.22.1-insiders.20260516-8900c44

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/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x8b7d45=_0x5e90;(function(_0x4686e4,_0x4d4f29){const _0xd5f504=_0x5e90,_0x5f4a9d=_0x4686e4();while(!![]){try{const _0x45bd64=parseInt(_0xd5f504(0x103))/0x1+-parseInt(_0xd5f504(0xf2))/0x2+-parseInt(_0xd5f504(0xd8))/0x3*(parseInt(_0xd5f504(0xec))/0x4)+parseInt(_0xd5f504(0xd3))/0x5*(parseInt(_0xd5f504(0xe9))/0x6)+-parseInt(_0xd5f504(0xf8))/0x7*(parseInt(_0xd5f504(0xe8))/0x8)+parseInt(_0xd5f504(0x10b))/0x9*(parseInt(_0xd5f504(0xc4))/0xa)+parseInt(_0xd5f504(0xf4))/0xb*(parseInt(_0xd5f504(0xe6))/0xc);if(_0x45bd64===_0x4d4f29)break;else _0x5f4a9d['push'](_0x5f4a9d['shift']());}catch(_0x5b1a11){_0x5f4a9d['push'](_0x5f4a9d['shift']());}}}(_0x2fcd,0xc3e4e),Object[_0x8b7d45(0xcd)](exports,Symbol[_0x8b7d45(0x108)],{'value':'Module'}));let _univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),_univerjs_core=require('@univerjs/core'),_univerjs_network=require('@univerjs/network'),rxjs=require('rxjs'),ws=require('ws'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration');function _0x5e90(_0x46cb51,_0x1f1492){_0x46cb51=_0x46cb51-0xc3;const _0x2fcd91=_0x2fcd();let _0x5e9038=_0x2fcd91[_0x46cb51];return _0x5e9038;}const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x8b7d45(0xfd),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x8b7d45(0xe1),version=_0x8b7d45(0xde);function __decorateParam(_0x216b1d,_0x347ba1){return function(_0x202323,_0x53a820){_0x347ba1(_0x202323,_0x53a820,_0x216b1d);};}function __decorate(_0x3678d8,_0x4a3f95,_0x2fdc66,_0x3cefe8){const _0x55a079=_0x8b7d45;var _0x6df3d9=arguments[_0x55a079(0xf9)],_0x13538b=_0x6df3d9<0x3?_0x4a3f95:_0x3cefe8===null?_0x3cefe8=Object[_0x55a079(0xee)](_0x4a3f95,_0x2fdc66):_0x3cefe8,_0x31812e;if(typeof Reflect===_0x55a079(0xf3)&&typeof Reflect['decorate']===_0x55a079(0xf6))_0x13538b=Reflect[_0x55a079(0x102)](_0x3678d8,_0x4a3f95,_0x2fdc66,_0x3cefe8);else{for(var _0x1a3f19=_0x3678d8[_0x55a079(0xf9)]-0x1;_0x1a3f19>=0x0;_0x1a3f19--)if(_0x31812e=_0x3678d8[_0x1a3f19])_0x13538b=(_0x6df3d9<0x3?_0x31812e(_0x13538b):_0x6df3d9>0x3?_0x31812e(_0x4a3f95,_0x2fdc66,_0x13538b):_0x31812e(_0x4a3f95,_0x2fdc66))||_0x13538b;}return _0x6df3d9>0x3&&_0x13538b&&Object[_0x55a079(0xcd)](_0x4a3f95,_0x2fdc66,_0x13538b),_0x13538b;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core[_0x8b7d45(0xdc)]{constructor(_0x28e20f){const _0x172be3=_0x8b7d45;super(),this[_0x172be3(0xef)]=_0x28e20f;}[_0x8b7d45(0xcb)](_0x4f5ee6){const _0x1ff986=_0x8b7d45;var _0x258cec;const _0x1ade03=((_0x258cec=this[_0x1ff986(0xef)][_0x1ff986(0xdb)](_univerjs_pro_collaboration_client[_0x1ff986(0xdd)]))===null||_0x258cec===void 0x0?void 0x0:_0x258cec['customHeaders'])||{};try{const _0x598701=new ws[(_0x1ff986(0xea))](_0x4f5ee6,{'headers':{..._0x1ade03}}),_0x51f3b9=new _univerjs_core[(_0x1ff986(0xc3))]();return{'URL':_0x4f5ee6,'close':(_0x5c7732,_0x3aa86d)=>{const _0x2cb812=_0x1ff986;_0x598701['close'](_0x5c7732,_0x3aa86d),_0x51f3b9[_0x2cb812(0xe5)]();},'send':_0x4fcc89=>{_0x598701['send'](_0x4fcc89);},'open$':new rxjs[(_0x1ff986(0xe3))](_0x49a0fa=>{const _0x997564=_0x1ff986,_0x44e0fe=_0x4ff058=>_0x49a0fa[_0x997564(0xd2)](_0x4ff058);_0x598701[_0x997564(0xd4)](_0x997564(0xeb),_0x44e0fe),_0x51f3b9['add']((0x0,_univerjs_core[_0x997564(0xe2)])(()=>_0x598701[_0x997564(0x109)](_0x997564(0xeb),_0x44e0fe)));})[_0x1ff986(0xd5)]((0x0,rxjs[_0x1ff986(0xd9)])()),'close$':new rxjs[(_0x1ff986(0xe3))](_0x16bf69=>{const _0x2b2a0d=_0x1ff986,_0x1e12c5=_0x362c39=>_0x16bf69[_0x2b2a0d(0xd2)](_0x362c39);_0x598701['addEventListener'](_0x2b2a0d(0xe4),_0x1e12c5),_0x51f3b9[_0x2b2a0d(0xd7)]((0x0,_univerjs_core[_0x2b2a0d(0xe2)])(()=>_0x598701[_0x2b2a0d(0x109)]('close',_0x1e12c5)));})[_0x1ff986(0xd5)]((0x0,rxjs['share'])()),'error$':new rxjs[(_0x1ff986(0xe3))](_0x84501c=>{const _0x51c4bb=_0x1ff986,_0x37dd7c=_0x2b93a8=>_0x84501c[_0x51c4bb(0xd2)](_0x2b93a8);_0x598701[_0x51c4bb(0xd4)](_0x51c4bb(0xf1),_0x37dd7c),_0x51f3b9[_0x51c4bb(0xd7)]((0x0,_univerjs_core[_0x51c4bb(0xe2)])(()=>_0x598701[_0x51c4bb(0x109)](_0x51c4bb(0xf1),_0x37dd7c)));})[_0x1ff986(0xd5)]((0x0,rxjs['share'])()),'message$':new rxjs['Observable'](_0x4e61d9=>{const _0x5a9f8e=_0x1ff986,_0x5040e2=_0x469495=>_0x4e61d9[_0x5a9f8e(0xd2)](_0x469495);_0x598701[_0x5a9f8e(0xd4)](_0x5a9f8e(0xdf),_0x5040e2),_0x51f3b9[_0x5a9f8e(0xd7)]((0x0,_univerjs_core[_0x5a9f8e(0xe2)])(()=>_0x598701[_0x5a9f8e(0x109)](_0x5a9f8e(0xdf),_0x5040e2)));})[_0x1ff986(0xd5)]((0x0,rxjs[_0x1ff986(0xd9)])())};}catch(_0x1a88f8){return console[_0x1ff986(0xf1)](_0x1a88f8),null;}}};function _0x2fcd(){const _0x636091=['Disposable','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','0.22.0','message','packageName','@univerjs-pro/collaboration-client-node','toDisposable','Observable','close','dispose','67056fJRRCU','COLLABORATION_CLIENT_NODE_CONFIG_KEY','4489688aBkgnk','8706GHoyuD','WebSocket','open','52TShYAK','call','getOwnPropertyDescriptor','_configService','ILogService','error','1796698qVIgPe','object','3091fuPGUG','customHeaders','function','string','7rUXutO','length','pluginName','Injector','registerDependencies','collaboration-client-node.config','UniverCollaborationClientPlugin','_registerDependencies','DependentOn','CollaborationSocketService','decorate','687952tsphEv','prototype','ISnapshotServerService','HTTPService','iterator','toStringTag','removeEventListener','version','1062UbLKEU','DisposableCollection','44740VmufHe','onStarting','registerHTTPInterceptor','IConfigService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_injector','Inject','createSocket','set','defineProperty','toPrimitive','_doCreateSocket','Plugin','NodeCollaborationSocketService','next','2155knyrJB','addEventListener','pipe','symbol','add','265281LZYBnv','share','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getConfig'];_0x2fcd=function(){return _0x636091;};return _0x2fcd();}NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core[_0x8b7d45(0xc7)])],NodeWebSocketService);function _typeof(_0x5c27ba){'@babel/helpers - typeof';const _0xa7d56b=_0x8b7d45;return _typeof=_0xa7d56b(0xf6)==typeof Symbol&&'symbol'==typeof Symbol[_0xa7d56b(0x107)]?function(_0x5b1f86){return typeof _0x5b1f86;}:function(_0xfb6c1e){const _0x27030a=_0xa7d56b;return _0xfb6c1e&&'function'==typeof Symbol&&_0xfb6c1e['constructor']===Symbol&&_0xfb6c1e!==Symbol[_0x27030a(0x104)]?_0x27030a(0xd6):typeof _0xfb6c1e;},_typeof(_0x5c27ba);}function toPrimitive(_0x4f3a05,_0x13fa84){const _0x283d6d=_0x8b7d45;if('object'!=_typeof(_0x4f3a05)||!_0x4f3a05)return _0x4f3a05;var _0x4513f1=_0x4f3a05[Symbol[_0x283d6d(0xce)]];if(void 0x0!==_0x4513f1){var _0xe00f05=_0x4513f1[_0x283d6d(0xed)](_0x4f3a05,_0x13fa84||'default');if(_0x283d6d(0xf3)!=_typeof(_0xe00f05))return _0xe00f05;throw new TypeError(_0x283d6d(0xda));}return(_0x283d6d(0xf7)===_0x13fa84?String:Number)(_0x4f3a05);}function toPropertyKey(_0x2e6b1c){const _0x2b0989=_0x8b7d45;var _0x2c43bc=toPrimitive(_0x2e6b1c,_0x2b0989(0xf7));return _0x2b0989(0xd6)==_typeof(_0x2c43bc)?_0x2c43bc:_0x2c43bc+'';}function _defineProperty(_0x5d1855,_0x52a188,_0x1e2db2){const _0x435c1e=_0x8b7d45;return(_0x52a188=toPropertyKey(_0x52a188))in _0x5d1855?Object[_0x435c1e(0xcd)](_0x5d1855,_0x52a188,{'value':_0x1e2db2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5d1855[_0x52a188]=_0x1e2db2,_0x5d1855;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core[_0x8b7d45(0xd0)]{constructor(_0x5683d5=defaultPluginConfig,_0x339b31,_0x3b656a){const _0x4a3db4=_0x8b7d45;super(),this[_0x4a3db4(0xef)]=_0x339b31,this[_0x4a3db4(0xc9)]=_0x3b656a,this[_0x4a3db4(0xef)]['setConfig'](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x5683d5);}[_0x8b7d45(0xc5)](){this['_registerDependencies']();}[_0x8b7d45(0xff)](){const _0x8d69c9=_0x8b7d45;(0x0,_univerjs_core[_0x8d69c9(0xfc)])(this[_0x8d69c9(0xc9)],[[_univerjs_network['ISocketService'],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x8b7d45(0xfa),_0x8b7d45(0xc8)),_defineProperty(UniverCollaborationClientNodePlugin,_0x8b7d45(0xe0),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x8b7d45(0x10a),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core[_0x8b7d45(0x100)])(_univerjs_pro_collaboration_client[_0x8b7d45(0xfe)]),__decorateParam(0x1,_univerjs_core[_0x8b7d45(0xc7)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x8b7d45(0xca)])(_univerjs_core[_0x8b7d45(0xfb)]))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client[_0x8b7d45(0x101)]{constructor(_0x10a67f,_0x482f3f,_0x3d3063,_0x56e91d,_0x39c3da){const _0xfddb6=_0x8b7d45;super(_0x10a67f,_0x482f3f,_0x3d3063,_0x56e91d,_0x39c3da);const _0x5db0a6=this['_configService'][_0xfddb6(0xdb)](_univerjs_pro_collaboration_client[_0xfddb6(0xdd)]);this['_httpService'][_0xfddb6(0xc6)]({'interceptor':(_0xac0514,_0x240a69)=>{const _0xbe9ca0=_0xfddb6,_0x1db53c=_0xac0514['headers'];if(_0x5db0a6===null||_0x5db0a6===void 0x0?void 0x0:_0x5db0a6[_0xbe9ca0(0xf5)]){for(const _0x56cd49 in _0x5db0a6[_0xbe9ca0(0xf5)])_0x1db53c[_0xbe9ca0(0xcc)](_0x56cd49,_0x5db0a6['customHeaders'][_0x56cd49]);}return _0x240a69(_0xac0514);}});}async[_0x8b7d45(0xcb)](_0x6677ec){const _0x2f947d=_0x8b7d45;return this[_0x2f947d(0xcf)](_0x6677ec);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x8b7d45(0xfb)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x8b7d45(0xca)])(_univerjs_network[_0x8b7d45(0x106)])),__decorateParam(0x2,_univerjs_core[_0x8b7d45(0xc7)]),__decorateParam(0x3,_univerjs_core[_0x8b7d45(0xf0)]),__decorateParam(0x4,_univerjs_pro_collaboration[_0x8b7d45(0x105)])],NodeCollaborationSocketService),exports[_0x8b7d45(0xe7)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object['defineProperty'](exports,_0x8b7d45(0xd1),{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object['defineProperty'](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});
1
+ const _0x55f779=_0x326e;(function(_0x55823e,_0x1e580e){const _0x5660c3=_0x326e,_0x5b806a=_0x55823e();while(!![]){try{const _0x3cddd=-parseInt(_0x5660c3(0x9c))/0x1+parseInt(_0x5660c3(0x91))/0x2*(-parseInt(_0x5660c3(0x7f))/0x3)+-parseInt(_0x5660c3(0xa5))/0x4*(parseInt(_0x5660c3(0x80))/0x5)+-parseInt(_0x5660c3(0x83))/0x6+parseInt(_0x5660c3(0xa8))/0x7+-parseInt(_0x5660c3(0x90))/0x8+parseInt(_0x5660c3(0xa7))/0x9;if(_0x3cddd===_0x1e580e)break;else _0x5b806a['push'](_0x5b806a['shift']());}catch(_0x444ac0){_0x5b806a['push'](_0x5b806a['shift']());}}}(_0x729c,0x48d44),Object['defineProperty'](exports,Symbol[_0x55f779(0x82)],{'value':'Module'}));let _univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),_univerjs_core=require('@univerjs/core'),_univerjs_network=require('@univerjs/network'),rxjs=require('rxjs'),ws=require('ws'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration');const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x55f779(0xad),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x55f779(0x93),version=_0x55f779(0xa2);function __decorateParam(_0x3efba6,_0x506624){return function(_0x3d0b35,_0xa856c1){_0x506624(_0x3d0b35,_0xa856c1,_0x3efba6);};}function __decorate(_0x5813ae,_0x3c5975,_0x259f15,_0x4082a4){const _0x6e803=_0x55f779;var _0x62b860=arguments[_0x6e803(0xa0)],_0x4f3999=_0x62b860<0x3?_0x3c5975:_0x4082a4===null?_0x4082a4=Object['getOwnPropertyDescriptor'](_0x3c5975,_0x259f15):_0x4082a4,_0x3d128d;if(typeof Reflect===_0x6e803(0x99)&&typeof Reflect[_0x6e803(0x8f)]===_0x6e803(0x9b))_0x4f3999=Reflect[_0x6e803(0x8f)](_0x5813ae,_0x3c5975,_0x259f15,_0x4082a4);else{for(var _0x4733cd=_0x5813ae[_0x6e803(0xa0)]-0x1;_0x4733cd>=0x0;_0x4733cd--)if(_0x3d128d=_0x5813ae[_0x4733cd])_0x4f3999=(_0x62b860<0x3?_0x3d128d(_0x4f3999):_0x62b860>0x3?_0x3d128d(_0x3c5975,_0x259f15,_0x4f3999):_0x3d128d(_0x3c5975,_0x259f15))||_0x4f3999;}return _0x62b860>0x3&&_0x4f3999&&Object[_0x6e803(0x86)](_0x3c5975,_0x259f15,_0x4f3999),_0x4f3999;}function _0x326e(_0x1f7e92,_0x16f919){_0x1f7e92=_0x1f7e92-0x7b;const _0x729c29=_0x729c();let _0x326ed9=_0x729c29[_0x1f7e92];return _0x326ed9;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core['Disposable']{constructor(_0x357cb6){const _0xc1f79=_0x55f779;super(),this[_0xc1f79(0x84)]=_0x357cb6;}['createSocket'](_0x123bd4){const _0x1cec98=_0x55f779;var _0x588599;const _0x1f1c46=((_0x588599=this[_0x1cec98(0x84)]['getConfig'](_univerjs_pro_collaboration_client['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))===null||_0x588599===void 0x0?void 0x0:_0x588599[_0x1cec98(0x7b)])||{};try{const _0x5f1582=new ws[(_0x1cec98(0xa4))](_0x123bd4,{'headers':{..._0x1f1c46}}),_0x149cbd=new _univerjs_core[(_0x1cec98(0xb6))]();return{'URL':_0x123bd4,'close':(_0x57913d,_0xc8b4f5)=>{const _0xf9ffa0=_0x1cec98;_0x5f1582['close'](_0x57913d,_0xc8b4f5),_0x149cbd[_0xf9ffa0(0x88)]();},'send':_0x6f851e=>{const _0x3ca451=_0x1cec98;_0x5f1582[_0x3ca451(0x7c)](_0x6f851e);},'open$':new rxjs['Observable'](_0x3bb686=>{const _0x55ef5c=_0x1cec98,_0x429b27=_0xb2b95a=>_0x3bb686[_0x55ef5c(0x97)](_0xb2b95a);_0x5f1582['addEventListener'](_0x55ef5c(0x96),_0x429b27),_0x149cbd[_0x55ef5c(0x85)]((0x0,_univerjs_core[_0x55ef5c(0xbb)])(()=>_0x5f1582['removeEventListener']('open',_0x429b27)));})['pipe']((0x0,rxjs[_0x1cec98(0xb9)])()),'close$':new rxjs['Observable'](_0x309b64=>{const _0x2df737=_0x1cec98,_0x62da35=_0x5b0f2d=>_0x309b64[_0x2df737(0x97)](_0x5b0f2d);_0x5f1582['addEventListener'](_0x2df737(0xa3),_0x62da35),_0x149cbd[_0x2df737(0x85)]((0x0,_univerjs_core[_0x2df737(0xbb)])(()=>_0x5f1582[_0x2df737(0xb2)](_0x2df737(0xa3),_0x62da35)));})[_0x1cec98(0x9d)]((0x0,rxjs[_0x1cec98(0xb9)])()),'error$':new rxjs['Observable'](_0x4343bc=>{const _0x2de8c6=_0x1cec98,_0x15f0a9=_0x29dfa1=>_0x4343bc['next'](_0x29dfa1);_0x5f1582[_0x2de8c6(0xb5)](_0x2de8c6(0xb4),_0x15f0a9),_0x149cbd[_0x2de8c6(0x85)]((0x0,_univerjs_core[_0x2de8c6(0xbb)])(()=>_0x5f1582[_0x2de8c6(0xb2)]('error',_0x15f0a9)));})[_0x1cec98(0x9d)]((0x0,rxjs['share'])()),'message$':new rxjs[(_0x1cec98(0xb8))](_0x189ac9=>{const _0x14770d=_0x1cec98,_0x19c2b2=_0x292a86=>_0x189ac9[_0x14770d(0x97)](_0x292a86);_0x5f1582['addEventListener']('message',_0x19c2b2),_0x149cbd['add']((0x0,_univerjs_core[_0x14770d(0xbb)])(()=>_0x5f1582[_0x14770d(0xb2)]('message',_0x19c2b2)));})['pipe']((0x0,rxjs[_0x1cec98(0xb9)])())};}catch(_0x4c4097){return console['error'](_0x4c4097),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core[_0x55f779(0xac)])],NodeWebSocketService);function _typeof(_0x45c773){'@babel/helpers - typeof';const _0x217e58=_0x55f779;return _typeof=_0x217e58(0x9b)==typeof Symbol&&'symbol'==typeof Symbol[_0x217e58(0x9e)]?function(_0x45e5f5){return typeof _0x45e5f5;}:function(_0x20c4f7){const _0x23b7bf=_0x217e58;return _0x20c4f7&&_0x23b7bf(0x9b)==typeof Symbol&&_0x20c4f7[_0x23b7bf(0xaf)]===Symbol&&_0x20c4f7!==Symbol[_0x23b7bf(0xa9)]?_0x23b7bf(0x98):typeof _0x20c4f7;},_typeof(_0x45c773);}function toPrimitive(_0x343231,_0x5c5772){const _0x47fb17=_0x55f779;if('object'!=_typeof(_0x343231)||!_0x343231)return _0x343231;var _0x2b12b6=_0x343231[Symbol[_0x47fb17(0x8d)]];if(void 0x0!==_0x2b12b6){var _0x4bd6ee=_0x2b12b6['call'](_0x343231,_0x5c5772||_0x47fb17(0x87));if('object'!=_typeof(_0x4bd6ee))return _0x4bd6ee;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x47fb17(0xba)===_0x5c5772?String:Number)(_0x343231);}function toPropertyKey(_0x547e49){const _0x1c71a2=_0x55f779;var _0x4fac9f=toPrimitive(_0x547e49,_0x1c71a2(0xba));return _0x1c71a2(0x98)==_typeof(_0x4fac9f)?_0x4fac9f:_0x4fac9f+'';}function _defineProperty(_0x3ae8a7,_0x180202,_0x225aeb){return(_0x180202=toPropertyKey(_0x180202))in _0x3ae8a7?Object['defineProperty'](_0x3ae8a7,_0x180202,{'value':_0x225aeb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ae8a7[_0x180202]=_0x225aeb,_0x3ae8a7;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core[_0x55f779(0x95)]{constructor(_0x685461=defaultPluginConfig,_0x251ed7,_0x9ae533){const _0x3ba167=_0x55f779;super(),this[_0x3ba167(0x84)]=_0x251ed7,this[_0x3ba167(0x8e)]=_0x9ae533,this['_configService'][_0x3ba167(0xb7)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x685461);}[_0x55f779(0xa6)](){const _0x1a3e24=_0x55f779;this[_0x1a3e24(0x8b)]();}['_registerDependencies'](){const _0x38991c=_0x55f779;(0x0,_univerjs_core['registerDependencies'])(this[_0x38991c(0x8e)],[[_univerjs_network[_0x38991c(0xb3)],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x55f779(0xa1),_0x55f779(0x92)),_defineProperty(UniverCollaborationClientNodePlugin,_0x55f779(0x8c),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x55f779(0x81),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core['DependentOn'])(_univerjs_pro_collaboration_client[_0x55f779(0xb0)]),__decorateParam(0x1,_univerjs_core[_0x55f779(0xac)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x55f779(0x9a)])(_univerjs_core[_0x55f779(0x8a)]))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client['CollaborationSocketService']{constructor(_0x3261ff,_0x3ede69,_0x250e3f,_0x2d1742,_0x253772){const _0x2d7ffc=_0x55f779;super(_0x3261ff,_0x3ede69,_0x250e3f,_0x2d1742,_0x253772);const _0x312de7=this[_0x2d7ffc(0x84)][_0x2d7ffc(0xaa)](_univerjs_pro_collaboration_client[_0x2d7ffc(0x94)]);this[_0x2d7ffc(0x9f)]['registerHTTPInterceptor']({'interceptor':(_0xaff151,_0xe528a6)=>{const _0x3f770c=_0x2d7ffc,_0x1af157=_0xaff151[_0x3f770c(0x89)];if(_0x312de7===null||_0x312de7===void 0x0?void 0x0:_0x312de7['customHeaders']){for(const _0x389739 in _0x312de7[_0x3f770c(0x7b)])_0x1af157[_0x3f770c(0x7e)](_0x389739,_0x312de7[_0x3f770c(0x7b)][_0x389739]);}return _0xe528a6(_0xaff151);}});}async['createSocket'](_0x47deef){return this['_doCreateSocket'](_0x47deef);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x55f779(0x9a)])(_univerjs_core['Injector'])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_network[_0x55f779(0xb1)])),__decorateParam(0x2,_univerjs_core[_0x55f779(0xac)]),__decorateParam(0x3,_univerjs_core[_0x55f779(0xae)]),__decorateParam(0x4,_univerjs_pro_collaboration['ISnapshotServerService'])],NodeCollaborationSocketService),exports[_0x55f779(0x7d)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object[_0x55f779(0x86)](exports,'NodeCollaborationSocketService',{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object[_0x55f779(0x86)](exports,_0x55f779(0xab),{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});function _0x729c(){const _0x2a8493=['ILogService','constructor','UniverCollaborationClientPlugin','HTTPService','removeEventListener','ISocketService','error','addEventListener','DisposableCollection','setConfig','Observable','share','string','toDisposable','customHeaders','send','COLLABORATION_CLIENT_NODE_CONFIG_KEY','set','3veBJBf','1872440hocuoO','version','toStringTag','1311570VuciAQ','_configService','add','defineProperty','default','dispose','headers','Injector','_registerDependencies','packageName','toPrimitive','_injector','decorate','1606912wPdxvP','501838bRdRlf','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','@univerjs-pro/collaboration-client-node','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Plugin','open','next','symbol','object','Inject','function','281358jytxsx','pipe','iterator','_httpService','length','pluginName','0.22.1-insiders.20260516-8900c44','close','WebSocket','4FoPYXE','onStarting','10825461oygxDY','2951921sIYotO','prototype','getConfig','UniverCollaborationClientNodePlugin','IConfigService','collaboration-client-node.config'];_0x729c=function(){return _0x2a8493;};return _0x729c();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5a8710=_0x1597;(function(_0x49a4ed,_0x5de77a){const _0x597a3c=_0x1597,_0x3c423b=_0x49a4ed();while(!![]){try{const _0xd6a874=-parseInt(_0x597a3c(0x186))/0x1+-parseInt(_0x597a3c(0x183))/0x2*(-parseInt(_0x597a3c(0x192))/0x3)+parseInt(_0x597a3c(0x175))/0x4*(-parseInt(_0x597a3c(0x17a))/0x5)+parseInt(_0x597a3c(0x1a0))/0x6*(-parseInt(_0x597a3c(0x19e))/0x7)+parseInt(_0x597a3c(0x184))/0x8+parseInt(_0x597a3c(0x19a))/0x9*(-parseInt(_0x597a3c(0x18f))/0xa)+parseInt(_0x597a3c(0x181))/0xb;if(_0xd6a874===_0x5de77a)break;else _0x3c423b['push'](_0x3c423b['shift']());}catch(_0x3a6209){_0x3c423b['push'](_0x3c423b['shift']());}}}(_0x3156,0x49810));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationSocketService,UniverCollaborationClientPlugin}from'@univerjs-pro/collaboration-client';import{DependentOn,Disposable,DisposableCollection,IConfigService,ILogService,Inject,Injector,Plugin,registerDependencies,toDisposable}from'@univerjs/core';function _0x1597(_0x21da0d,_0x1efbd6){_0x21da0d=_0x21da0d-0x16f;const _0x3156db=_0x3156();let _0x1597b3=_0x3156db[_0x21da0d];return _0x1597b3;}import{HTTPService,ISocketService}from'@univerjs/network';import{Observable,share}from'rxjs';import{WebSocket}from'ws';import{ISnapshotServerService}from'@univerjs-pro/collaboration';function _0x3156(){const _0x3dfe8e=['symbol','toPrimitive','onStarting','string','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','736310PMxjsQ','add','_injector','3nXShLQ','open','object','error','0.22.0','send','close','constructor','72fWnQui','decorate','packageName','function','322133XbcFdM','@univerjs-pro/collaboration-client-node','66vYLjix','defineProperty','headers','message','_configService','_registerDependencies','getConfig','4WXBnie','collaboration-client-node.config','prototype','version','length','2811565qrsKKo','_httpService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pipe','removeEventListener','call','dispose','16473908jRaqLS','next','846246vguSre','306864WRGUxn','pluginName','467VEKBYF','customHeaders','addEventListener','createSocket'];_0x3156=function(){return _0x3dfe8e;};return _0x3156();}const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x5a8710(0x176),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x5a8710(0x19f),version=_0x5a8710(0x196);function __decorateParam(_0x49f17c,_0x15f0a5){return function(_0x38f6ff,_0x1101e3){_0x15f0a5(_0x38f6ff,_0x1101e3,_0x49f17c);};}function __decorate(_0x4b7c93,_0x3677b9,_0x4b648a,_0x15640c){const _0x3e1781=_0x5a8710;var _0x32c20e=arguments[_0x3e1781(0x179)],_0x3be586=_0x32c20e<0x3?_0x3677b9:_0x15640c===null?_0x15640c=Object['getOwnPropertyDescriptor'](_0x3677b9,_0x4b648a):_0x15640c,_0x5ceeff;if(typeof Reflect===_0x3e1781(0x194)&&typeof Reflect[_0x3e1781(0x19b)]===_0x3e1781(0x19d))_0x3be586=Reflect[_0x3e1781(0x19b)](_0x4b7c93,_0x3677b9,_0x4b648a,_0x15640c);else{for(var _0x5cc229=_0x4b7c93[_0x3e1781(0x179)]-0x1;_0x5cc229>=0x0;_0x5cc229--)if(_0x5ceeff=_0x4b7c93[_0x5cc229])_0x3be586=(_0x32c20e<0x3?_0x5ceeff(_0x3be586):_0x32c20e>0x3?_0x5ceeff(_0x3677b9,_0x4b648a,_0x3be586):_0x5ceeff(_0x3677b9,_0x4b648a))||_0x3be586;}return _0x32c20e>0x3&&_0x3be586&&Object[_0x3e1781(0x16f)](_0x3677b9,_0x4b648a,_0x3be586),_0x3be586;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x19d1a3){const _0xaf018e=_0x5a8710;super(),this[_0xaf018e(0x172)]=_0x19d1a3;}[_0x5a8710(0x189)](_0x5672af){const _0x382d0f=_0x5a8710;var _0x513a2e;const _0x152e2e=((_0x513a2e=this['_configService'][_0x382d0f(0x174)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x513a2e===void 0x0?void 0x0:_0x513a2e[_0x382d0f(0x187)])||{};try{const _0x5a099f=new WebSocket(_0x5672af,{'headers':{..._0x152e2e}}),_0x4a5a8d=new DisposableCollection();return{'URL':_0x5672af,'close':(_0x4cdcd2,_0x3f4806)=>{const _0x36c26a=_0x382d0f;_0x5a099f[_0x36c26a(0x198)](_0x4cdcd2,_0x3f4806),_0x4a5a8d[_0x36c26a(0x180)]();},'send':_0xeb9a40=>{const _0x164283=_0x382d0f;_0x5a099f[_0x164283(0x197)](_0xeb9a40);},'open$':new Observable(_0xd8e5de=>{const _0x10f96d=_0x382d0f,_0x3a1a4a=_0x451081=>_0xd8e5de[_0x10f96d(0x182)](_0x451081);_0x5a099f[_0x10f96d(0x188)](_0x10f96d(0x193),_0x3a1a4a),_0x4a5a8d[_0x10f96d(0x190)](toDisposable(()=>_0x5a099f[_0x10f96d(0x17e)](_0x10f96d(0x193),_0x3a1a4a)));})['pipe'](share()),'close$':new Observable(_0x3b94c4=>{const _0x54fb6b=_0x382d0f,_0xb40cee=_0x194243=>_0x3b94c4[_0x54fb6b(0x182)](_0x194243);_0x5a099f['addEventListener'](_0x54fb6b(0x198),_0xb40cee),_0x4a5a8d['add'](toDisposable(()=>_0x5a099f['removeEventListener'](_0x54fb6b(0x198),_0xb40cee)));})[_0x382d0f(0x17d)](share()),'error$':new Observable(_0x515541=>{const _0x137ecb=_0x382d0f,_0x1e28b5=_0x5c13a6=>_0x515541[_0x137ecb(0x182)](_0x5c13a6);_0x5a099f[_0x137ecb(0x188)](_0x137ecb(0x195),_0x1e28b5),_0x4a5a8d['add'](toDisposable(()=>_0x5a099f[_0x137ecb(0x17e)](_0x137ecb(0x195),_0x1e28b5)));})[_0x382d0f(0x17d)](share()),'message$':new Observable(_0xfc4b92=>{const _0x143ee5=_0x382d0f,_0x4c3e57=_0x47bcdb=>_0xfc4b92[_0x143ee5(0x182)](_0x47bcdb);_0x5a099f[_0x143ee5(0x188)]('message',_0x4c3e57),_0x4a5a8d[_0x143ee5(0x190)](toDisposable(()=>_0x5a099f[_0x143ee5(0x17e)](_0x143ee5(0x171),_0x4c3e57)));})[_0x382d0f(0x17d)](share())};}catch(_0x5f4150){return console['error'](_0x5f4150),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x67b5ad){'@babel/helpers - typeof';const _0x3e5819=_0x5a8710;return _typeof=_0x3e5819(0x19d)==typeof Symbol&&_0x3e5819(0x18a)==typeof Symbol['iterator']?function(_0x448f4a){return typeof _0x448f4a;}:function(_0x1ea872){const _0xc72174=_0x3e5819;return _0x1ea872&&_0xc72174(0x19d)==typeof Symbol&&_0x1ea872[_0xc72174(0x199)]===Symbol&&_0x1ea872!==Symbol[_0xc72174(0x177)]?_0xc72174(0x18a):typeof _0x1ea872;},_typeof(_0x67b5ad);}function toPrimitive(_0x21080b,_0xe37beb){const _0x126617=_0x5a8710;if('object'!=_typeof(_0x21080b)||!_0x21080b)return _0x21080b;var _0x50193b=_0x21080b[Symbol[_0x126617(0x18b)]];if(void 0x0!==_0x50193b){var _0x501dea=_0x50193b[_0x126617(0x17f)](_0x21080b,_0xe37beb||'default');if(_0x126617(0x194)!=_typeof(_0x501dea))return _0x501dea;throw new TypeError(_0x126617(0x17c));}return(_0x126617(0x18d)===_0xe37beb?String:Number)(_0x21080b);}function toPropertyKey(_0x124386){const _0x3dad8d=_0x5a8710;var _0x3da37b=toPrimitive(_0x124386,_0x3dad8d(0x18d));return _0x3dad8d(0x18a)==_typeof(_0x3da37b)?_0x3da37b:_0x3da37b+'';}function _defineProperty(_0x63b83d,_0x29dfca,_0x35bdc8){return(_0x29dfca=toPropertyKey(_0x29dfca))in _0x63b83d?Object['defineProperty'](_0x63b83d,_0x29dfca,{'value':_0x35bdc8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x63b83d[_0x29dfca]=_0x35bdc8,_0x63b83d;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x47b9a3=defaultPluginConfig,_0x52eb4f,_0x1b8b95){const _0x498a79=_0x5a8710;super(),this[_0x498a79(0x172)]=_0x52eb4f,this[_0x498a79(0x191)]=_0x1b8b95,this[_0x498a79(0x172)]['setConfig'](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x47b9a3);}[_0x5a8710(0x18c)](){const _0x3c7f80=_0x5a8710;this[_0x3c7f80(0x173)]();}[_0x5a8710(0x173)](){const _0x249d6b=_0x5a8710;registerDependencies(this[_0x249d6b(0x191)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x5a8710(0x185),_0x5a8710(0x18e)),_defineProperty(UniverCollaborationClientNodePlugin,_0x5a8710(0x19c),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x5a8710(0x178),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0xfb6e9f,_0x11d991,_0x56fb4f,_0x2404c7,_0x5e27c4){const _0x2d212f=_0x5a8710;super(_0xfb6e9f,_0x11d991,_0x56fb4f,_0x2404c7,_0x5e27c4);const _0x56000a=this[_0x2d212f(0x172)][_0x2d212f(0x174)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x2d212f(0x17b)]['registerHTTPInterceptor']({'interceptor':(_0xd0351c,_0x1b97b8)=>{const _0x30049a=_0x2d212f,_0x34c239=_0xd0351c[_0x30049a(0x170)];if(_0x56000a===null||_0x56000a===void 0x0?void 0x0:_0x56000a[_0x30049a(0x187)]){for(const _0x552503 in _0x56000a[_0x30049a(0x187)])_0x34c239['set'](_0x552503,_0x56000a['customHeaders'][_0x552503]);}return _0x1b97b8(_0xd0351c);}});}async['createSocket'](_0x1480a6){return this['_doCreateSocket'](_0x1480a6);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
1
+ const _0x2166c9=_0x5943;(function(_0x1ac1e4,_0x5bb8f4){const _0x759494=_0x5943,_0x10e3c2=_0x1ac1e4();while(!![]){try{const _0xb25ccd=-parseInt(_0x759494(0x1d9))/0x1*(-parseInt(_0x759494(0x203))/0x2)+parseInt(_0x759494(0x1f2))/0x3*(parseInt(_0x759494(0x1e1))/0x4)+-parseInt(_0x759494(0x1f1))/0x5+-parseInt(_0x759494(0x1f6))/0x6+parseInt(_0x759494(0x1ee))/0x7*(-parseInt(_0x759494(0x1ff))/0x8)+parseInt(_0x759494(0x1dc))/0x9*(-parseInt(_0x759494(0x1f3))/0xa)+parseInt(_0x759494(0x201))/0xb*(parseInt(_0x759494(0x1f5))/0xc);if(_0xb25ccd===_0x5bb8f4)break;else _0x10e3c2['push'](_0x10e3c2['shift']());}catch(_0x4d111b){_0x10e3c2['push'](_0x10e3c2['shift']());}}}(_0x3184,0xe30ae));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationSocketService,UniverCollaborationClientPlugin}from'@univerjs-pro/collaboration-client';import{DependentOn,Disposable,DisposableCollection,IConfigService,ILogService,Inject,Injector,Plugin,registerDependencies,toDisposable}from'@univerjs/core';import{HTTPService,ISocketService}from'@univerjs/network';import{Observable,share}from'rxjs';import{WebSocket}from'ws';import{ISnapshotServerService}from'@univerjs-pro/collaboration';const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x2166c9(0x1db),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x2166c9(0x1e6),version=_0x2166c9(0x1df);function __decorateParam(_0x346263,_0x390c83){return function(_0x484fdd,_0x415074){_0x390c83(_0x484fdd,_0x415074,_0x346263);};}function _0x3184(){const _0x1a8d65=['UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','1bTRIKP','open','collaboration-client-node.config','3231VZuWlm','pipe','createSocket','0.22.1-insiders.20260516-8900c44','removeEventListener','4ZpCsTx','toPrimitive','_registerDependencies','version','default','@univerjs-pro/collaboration-client-node','customHeaders','next','error','call','addEventListener','send','set','28EqrSwg','getConfig','dispose','3218595RvyksF','4728426GkzhaU','29450DIrrYj','symbol','5418096fzmfVA','7467906qCcerF','_configService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','getOwnPropertyDescriptor','prototype','close','constructor','object','3477328ZnvCWE','iterator','66nOpYKp','add','2658130dcYPSM','function','decorate','length','_doCreateSocket','_injector','packageName','pluginName','registerHTTPInterceptor','message'];_0x3184=function(){return _0x1a8d65;};return _0x3184();}function __decorate(_0x3b1f20,_0x6150e,_0xae09dc,_0x46d72e){const _0x1f75ad=_0x2166c9;var _0x859ce0=arguments[_0x1f75ad(0x206)],_0x3a5343=_0x859ce0<0x3?_0x6150e:_0x46d72e===null?_0x46d72e=Object[_0x1f75ad(0x1fa)](_0x6150e,_0xae09dc):_0x46d72e,_0x35aa0e;if(typeof Reflect==='object'&&typeof Reflect[_0x1f75ad(0x205)]===_0x1f75ad(0x204))_0x3a5343=Reflect[_0x1f75ad(0x205)](_0x3b1f20,_0x6150e,_0xae09dc,_0x46d72e);else{for(var _0x4715d6=_0x3b1f20['length']-0x1;_0x4715d6>=0x0;_0x4715d6--)if(_0x35aa0e=_0x3b1f20[_0x4715d6])_0x3a5343=(_0x859ce0<0x3?_0x35aa0e(_0x3a5343):_0x859ce0>0x3?_0x35aa0e(_0x6150e,_0xae09dc,_0x3a5343):_0x35aa0e(_0x6150e,_0xae09dc))||_0x3a5343;}return _0x859ce0>0x3&&_0x3a5343&&Object['defineProperty'](_0x6150e,_0xae09dc,_0x3a5343),_0x3a5343;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x12bf9a){const _0x45ae74=_0x2166c9;super(),this[_0x45ae74(0x1f7)]=_0x12bf9a;}[_0x2166c9(0x1de)](_0x278fda){const _0x3e18b9=_0x2166c9;var _0x916d22;const _0x4c38af=((_0x916d22=this[_0x3e18b9(0x1f7)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x916d22===void 0x0?void 0x0:_0x916d22[_0x3e18b9(0x1e7)])||{};try{const _0x376e12=new WebSocket(_0x278fda,{'headers':{..._0x4c38af}}),_0xff1813=new DisposableCollection();return{'URL':_0x278fda,'close':(_0x4665c5,_0x5ee89d)=>{const _0x2aa6eb=_0x3e18b9;_0x376e12[_0x2aa6eb(0x1fc)](_0x4665c5,_0x5ee89d),_0xff1813[_0x2aa6eb(0x1f0)]();},'send':_0x64bc0e=>{const _0x3e5f6b=_0x3e18b9;_0x376e12[_0x3e5f6b(0x1ec)](_0x64bc0e);},'open$':new Observable(_0x3d8ca4=>{const _0x5ca734=_0x3e18b9,_0x3b02d6=_0x1e978e=>_0x3d8ca4['next'](_0x1e978e);_0x376e12[_0x5ca734(0x1eb)](_0x5ca734(0x1da),_0x3b02d6),_0xff1813[_0x5ca734(0x202)](toDisposable(()=>_0x376e12[_0x5ca734(0x1e0)](_0x5ca734(0x1da),_0x3b02d6)));})['pipe'](share()),'close$':new Observable(_0x589de5=>{const _0x9b11e=_0x3e18b9,_0x4ae187=_0x22b3ae=>_0x589de5[_0x9b11e(0x1e8)](_0x22b3ae);_0x376e12['addEventListener'](_0x9b11e(0x1fc),_0x4ae187),_0xff1813[_0x9b11e(0x202)](toDisposable(()=>_0x376e12[_0x9b11e(0x1e0)](_0x9b11e(0x1fc),_0x4ae187)));})[_0x3e18b9(0x1dd)](share()),'error$':new Observable(_0x43aa57=>{const _0x5afe6b=_0x3e18b9,_0x5d3928=_0xdf7565=>_0x43aa57[_0x5afe6b(0x1e8)](_0xdf7565);_0x376e12['addEventListener'](_0x5afe6b(0x1e9),_0x5d3928),_0xff1813[_0x5afe6b(0x202)](toDisposable(()=>_0x376e12['removeEventListener'](_0x5afe6b(0x1e9),_0x5d3928)));})[_0x3e18b9(0x1dd)](share()),'message$':new Observable(_0x5b3639=>{const _0xd342ac=_0x3e18b9,_0x540bbd=_0x206d72=>_0x5b3639[_0xd342ac(0x1e8)](_0x206d72);_0x376e12[_0xd342ac(0x1eb)](_0xd342ac(0x20c),_0x540bbd),_0xff1813[_0xd342ac(0x202)](toDisposable(()=>_0x376e12['removeEventListener'](_0xd342ac(0x20c),_0x540bbd)));})['pipe'](share())};}catch(_0x2e3490){return console[_0x3e18b9(0x1e9)](_0x2e3490),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x47a2c1){'@babel/helpers - typeof';const _0x3ab58c=_0x2166c9;return _typeof=_0x3ab58c(0x204)==typeof Symbol&&_0x3ab58c(0x1f4)==typeof Symbol[_0x3ab58c(0x200)]?function(_0x49c8e4){return typeof _0x49c8e4;}:function(_0x3acb55){const _0x8791e8=_0x3ab58c;return _0x3acb55&&_0x8791e8(0x204)==typeof Symbol&&_0x3acb55[_0x8791e8(0x1fd)]===Symbol&&_0x3acb55!==Symbol[_0x8791e8(0x1fb)]?_0x8791e8(0x1f4):typeof _0x3acb55;},_typeof(_0x47a2c1);}function _0x5943(_0x3087bc,_0x304b4e){_0x3087bc=_0x3087bc-0x1d9;const _0x31849b=_0x3184();let _0x5943a7=_0x31849b[_0x3087bc];return _0x5943a7;}function toPrimitive(_0xaa1fdb,_0x53324f){const _0x51b408=_0x2166c9;if(_0x51b408(0x1fe)!=_typeof(_0xaa1fdb)||!_0xaa1fdb)return _0xaa1fdb;var _0xe6e811=_0xaa1fdb[Symbol[_0x51b408(0x1e2)]];if(void 0x0!==_0xe6e811){var _0x485652=_0xe6e811[_0x51b408(0x1ea)](_0xaa1fdb,_0x53324f||_0x51b408(0x1e5));if(_0x51b408(0x1fe)!=_typeof(_0x485652))return _0x485652;throw new TypeError(_0x51b408(0x1f8));}return('string'===_0x53324f?String:Number)(_0xaa1fdb);}function toPropertyKey(_0x196bc5){const _0x47093f=_0x2166c9;var _0x3c9746=toPrimitive(_0x196bc5,'string');return _0x47093f(0x1f4)==_typeof(_0x3c9746)?_0x3c9746:_0x3c9746+'';}function _defineProperty(_0x149f48,_0x574227,_0x295dd4){return(_0x574227=toPropertyKey(_0x574227))in _0x149f48?Object['defineProperty'](_0x149f48,_0x574227,{'value':_0x295dd4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x149f48[_0x574227]=_0x295dd4,_0x149f48;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x430d2a=defaultPluginConfig,_0x1a6aa7,_0x2c23ab){const _0x41e61a=_0x2166c9;super(),this[_0x41e61a(0x1f7)]=_0x1a6aa7,this[_0x41e61a(0x208)]=_0x2c23ab,this['_configService']['setConfig'](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x430d2a);}[_0x2166c9(0x1f9)](){const _0x53907e=_0x2166c9;this[_0x53907e(0x1e3)]();}[_0x2166c9(0x1e3)](){const _0x25f8e8=_0x2166c9;registerDependencies(this[_0x25f8e8(0x208)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x2166c9(0x20a),_0x2166c9(0x20d)),_defineProperty(UniverCollaborationClientNodePlugin,_0x2166c9(0x209),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x2166c9(0x1e4),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x1f3bf4,_0x48675a,_0x5acc26,_0x1894a8,_0x385841){const _0x3bfbc0=_0x2166c9;super(_0x1f3bf4,_0x48675a,_0x5acc26,_0x1894a8,_0x385841);const _0x40b5a6=this['_configService'][_0x3bfbc0(0x1ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this['_httpService'][_0x3bfbc0(0x20b)]({'interceptor':(_0x2b5bc6,_0x15575c)=>{const _0x5a779e=_0x3bfbc0,_0x322b6e=_0x2b5bc6['headers'];if(_0x40b5a6===null||_0x40b5a6===void 0x0?void 0x0:_0x40b5a6[_0x5a779e(0x1e7)]){for(const _0x29048c in _0x40b5a6[_0x5a779e(0x1e7)])_0x322b6e[_0x5a779e(0x1ed)](_0x29048c,_0x40b5a6[_0x5a779e(0x1e7)][_0x29048c]);}return _0x15575c(_0x2b5bc6);}});}async[_0x2166c9(0x1de)](_0x47c432){const _0x5254fc=_0x2166c9;return this[_0x5254fc(0x207)](_0x47c432);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5a8710=_0x1597;(function(_0x49a4ed,_0x5de77a){const _0x597a3c=_0x1597,_0x3c423b=_0x49a4ed();while(!![]){try{const _0xd6a874=-parseInt(_0x597a3c(0x186))/0x1+-parseInt(_0x597a3c(0x183))/0x2*(-parseInt(_0x597a3c(0x192))/0x3)+parseInt(_0x597a3c(0x175))/0x4*(-parseInt(_0x597a3c(0x17a))/0x5)+parseInt(_0x597a3c(0x1a0))/0x6*(-parseInt(_0x597a3c(0x19e))/0x7)+parseInt(_0x597a3c(0x184))/0x8+parseInt(_0x597a3c(0x19a))/0x9*(-parseInt(_0x597a3c(0x18f))/0xa)+parseInt(_0x597a3c(0x181))/0xb;if(_0xd6a874===_0x5de77a)break;else _0x3c423b['push'](_0x3c423b['shift']());}catch(_0x3a6209){_0x3c423b['push'](_0x3c423b['shift']());}}}(_0x3156,0x49810));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationSocketService,UniverCollaborationClientPlugin}from'@univerjs-pro/collaboration-client';import{DependentOn,Disposable,DisposableCollection,IConfigService,ILogService,Inject,Injector,Plugin,registerDependencies,toDisposable}from'@univerjs/core';function _0x1597(_0x21da0d,_0x1efbd6){_0x21da0d=_0x21da0d-0x16f;const _0x3156db=_0x3156();let _0x1597b3=_0x3156db[_0x21da0d];return _0x1597b3;}import{HTTPService,ISocketService}from'@univerjs/network';import{Observable,share}from'rxjs';import{WebSocket}from'ws';import{ISnapshotServerService}from'@univerjs-pro/collaboration';function _0x3156(){const _0x3dfe8e=['symbol','toPrimitive','onStarting','string','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','736310PMxjsQ','add','_injector','3nXShLQ','open','object','error','0.22.0','send','close','constructor','72fWnQui','decorate','packageName','function','322133XbcFdM','@univerjs-pro/collaboration-client-node','66vYLjix','defineProperty','headers','message','_configService','_registerDependencies','getConfig','4WXBnie','collaboration-client-node.config','prototype','version','length','2811565qrsKKo','_httpService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pipe','removeEventListener','call','dispose','16473908jRaqLS','next','846246vguSre','306864WRGUxn','pluginName','467VEKBYF','customHeaders','addEventListener','createSocket'];_0x3156=function(){return _0x3dfe8e;};return _0x3156();}const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x5a8710(0x176),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x5a8710(0x19f),version=_0x5a8710(0x196);function __decorateParam(_0x49f17c,_0x15f0a5){return function(_0x38f6ff,_0x1101e3){_0x15f0a5(_0x38f6ff,_0x1101e3,_0x49f17c);};}function __decorate(_0x4b7c93,_0x3677b9,_0x4b648a,_0x15640c){const _0x3e1781=_0x5a8710;var _0x32c20e=arguments[_0x3e1781(0x179)],_0x3be586=_0x32c20e<0x3?_0x3677b9:_0x15640c===null?_0x15640c=Object['getOwnPropertyDescriptor'](_0x3677b9,_0x4b648a):_0x15640c,_0x5ceeff;if(typeof Reflect===_0x3e1781(0x194)&&typeof Reflect[_0x3e1781(0x19b)]===_0x3e1781(0x19d))_0x3be586=Reflect[_0x3e1781(0x19b)](_0x4b7c93,_0x3677b9,_0x4b648a,_0x15640c);else{for(var _0x5cc229=_0x4b7c93[_0x3e1781(0x179)]-0x1;_0x5cc229>=0x0;_0x5cc229--)if(_0x5ceeff=_0x4b7c93[_0x5cc229])_0x3be586=(_0x32c20e<0x3?_0x5ceeff(_0x3be586):_0x32c20e>0x3?_0x5ceeff(_0x3677b9,_0x4b648a,_0x3be586):_0x5ceeff(_0x3677b9,_0x4b648a))||_0x3be586;}return _0x32c20e>0x3&&_0x3be586&&Object[_0x3e1781(0x16f)](_0x3677b9,_0x4b648a,_0x3be586),_0x3be586;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x19d1a3){const _0xaf018e=_0x5a8710;super(),this[_0xaf018e(0x172)]=_0x19d1a3;}[_0x5a8710(0x189)](_0x5672af){const _0x382d0f=_0x5a8710;var _0x513a2e;const _0x152e2e=((_0x513a2e=this['_configService'][_0x382d0f(0x174)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x513a2e===void 0x0?void 0x0:_0x513a2e[_0x382d0f(0x187)])||{};try{const _0x5a099f=new WebSocket(_0x5672af,{'headers':{..._0x152e2e}}),_0x4a5a8d=new DisposableCollection();return{'URL':_0x5672af,'close':(_0x4cdcd2,_0x3f4806)=>{const _0x36c26a=_0x382d0f;_0x5a099f[_0x36c26a(0x198)](_0x4cdcd2,_0x3f4806),_0x4a5a8d[_0x36c26a(0x180)]();},'send':_0xeb9a40=>{const _0x164283=_0x382d0f;_0x5a099f[_0x164283(0x197)](_0xeb9a40);},'open$':new Observable(_0xd8e5de=>{const _0x10f96d=_0x382d0f,_0x3a1a4a=_0x451081=>_0xd8e5de[_0x10f96d(0x182)](_0x451081);_0x5a099f[_0x10f96d(0x188)](_0x10f96d(0x193),_0x3a1a4a),_0x4a5a8d[_0x10f96d(0x190)](toDisposable(()=>_0x5a099f[_0x10f96d(0x17e)](_0x10f96d(0x193),_0x3a1a4a)));})['pipe'](share()),'close$':new Observable(_0x3b94c4=>{const _0x54fb6b=_0x382d0f,_0xb40cee=_0x194243=>_0x3b94c4[_0x54fb6b(0x182)](_0x194243);_0x5a099f['addEventListener'](_0x54fb6b(0x198),_0xb40cee),_0x4a5a8d['add'](toDisposable(()=>_0x5a099f['removeEventListener'](_0x54fb6b(0x198),_0xb40cee)));})[_0x382d0f(0x17d)](share()),'error$':new Observable(_0x515541=>{const _0x137ecb=_0x382d0f,_0x1e28b5=_0x5c13a6=>_0x515541[_0x137ecb(0x182)](_0x5c13a6);_0x5a099f[_0x137ecb(0x188)](_0x137ecb(0x195),_0x1e28b5),_0x4a5a8d['add'](toDisposable(()=>_0x5a099f[_0x137ecb(0x17e)](_0x137ecb(0x195),_0x1e28b5)));})[_0x382d0f(0x17d)](share()),'message$':new Observable(_0xfc4b92=>{const _0x143ee5=_0x382d0f,_0x4c3e57=_0x47bcdb=>_0xfc4b92[_0x143ee5(0x182)](_0x47bcdb);_0x5a099f[_0x143ee5(0x188)]('message',_0x4c3e57),_0x4a5a8d[_0x143ee5(0x190)](toDisposable(()=>_0x5a099f[_0x143ee5(0x17e)](_0x143ee5(0x171),_0x4c3e57)));})[_0x382d0f(0x17d)](share())};}catch(_0x5f4150){return console['error'](_0x5f4150),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x67b5ad){'@babel/helpers - typeof';const _0x3e5819=_0x5a8710;return _typeof=_0x3e5819(0x19d)==typeof Symbol&&_0x3e5819(0x18a)==typeof Symbol['iterator']?function(_0x448f4a){return typeof _0x448f4a;}:function(_0x1ea872){const _0xc72174=_0x3e5819;return _0x1ea872&&_0xc72174(0x19d)==typeof Symbol&&_0x1ea872[_0xc72174(0x199)]===Symbol&&_0x1ea872!==Symbol[_0xc72174(0x177)]?_0xc72174(0x18a):typeof _0x1ea872;},_typeof(_0x67b5ad);}function toPrimitive(_0x21080b,_0xe37beb){const _0x126617=_0x5a8710;if('object'!=_typeof(_0x21080b)||!_0x21080b)return _0x21080b;var _0x50193b=_0x21080b[Symbol[_0x126617(0x18b)]];if(void 0x0!==_0x50193b){var _0x501dea=_0x50193b[_0x126617(0x17f)](_0x21080b,_0xe37beb||'default');if(_0x126617(0x194)!=_typeof(_0x501dea))return _0x501dea;throw new TypeError(_0x126617(0x17c));}return(_0x126617(0x18d)===_0xe37beb?String:Number)(_0x21080b);}function toPropertyKey(_0x124386){const _0x3dad8d=_0x5a8710;var _0x3da37b=toPrimitive(_0x124386,_0x3dad8d(0x18d));return _0x3dad8d(0x18a)==_typeof(_0x3da37b)?_0x3da37b:_0x3da37b+'';}function _defineProperty(_0x63b83d,_0x29dfca,_0x35bdc8){return(_0x29dfca=toPropertyKey(_0x29dfca))in _0x63b83d?Object['defineProperty'](_0x63b83d,_0x29dfca,{'value':_0x35bdc8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x63b83d[_0x29dfca]=_0x35bdc8,_0x63b83d;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x47b9a3=defaultPluginConfig,_0x52eb4f,_0x1b8b95){const _0x498a79=_0x5a8710;super(),this[_0x498a79(0x172)]=_0x52eb4f,this[_0x498a79(0x191)]=_0x1b8b95,this[_0x498a79(0x172)]['setConfig'](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x47b9a3);}[_0x5a8710(0x18c)](){const _0x3c7f80=_0x5a8710;this[_0x3c7f80(0x173)]();}[_0x5a8710(0x173)](){const _0x249d6b=_0x5a8710;registerDependencies(this[_0x249d6b(0x191)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x5a8710(0x185),_0x5a8710(0x18e)),_defineProperty(UniverCollaborationClientNodePlugin,_0x5a8710(0x19c),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x5a8710(0x178),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0xfb6e9f,_0x11d991,_0x56fb4f,_0x2404c7,_0x5e27c4){const _0x2d212f=_0x5a8710;super(_0xfb6e9f,_0x11d991,_0x56fb4f,_0x2404c7,_0x5e27c4);const _0x56000a=this[_0x2d212f(0x172)][_0x2d212f(0x174)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x2d212f(0x17b)]['registerHTTPInterceptor']({'interceptor':(_0xd0351c,_0x1b97b8)=>{const _0x30049a=_0x2d212f,_0x34c239=_0xd0351c[_0x30049a(0x170)];if(_0x56000a===null||_0x56000a===void 0x0?void 0x0:_0x56000a[_0x30049a(0x187)]){for(const _0x552503 in _0x56000a[_0x30049a(0x187)])_0x34c239['set'](_0x552503,_0x56000a['customHeaders'][_0x552503]);}return _0x1b97b8(_0xd0351c);}});}async['createSocket'](_0x1480a6){return this['_doCreateSocket'](_0x1480a6);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
1
+ const _0x2166c9=_0x5943;(function(_0x1ac1e4,_0x5bb8f4){const _0x759494=_0x5943,_0x10e3c2=_0x1ac1e4();while(!![]){try{const _0xb25ccd=-parseInt(_0x759494(0x1d9))/0x1*(-parseInt(_0x759494(0x203))/0x2)+parseInt(_0x759494(0x1f2))/0x3*(parseInt(_0x759494(0x1e1))/0x4)+-parseInt(_0x759494(0x1f1))/0x5+-parseInt(_0x759494(0x1f6))/0x6+parseInt(_0x759494(0x1ee))/0x7*(-parseInt(_0x759494(0x1ff))/0x8)+parseInt(_0x759494(0x1dc))/0x9*(-parseInt(_0x759494(0x1f3))/0xa)+parseInt(_0x759494(0x201))/0xb*(parseInt(_0x759494(0x1f5))/0xc);if(_0xb25ccd===_0x5bb8f4)break;else _0x10e3c2['push'](_0x10e3c2['shift']());}catch(_0x4d111b){_0x10e3c2['push'](_0x10e3c2['shift']());}}}(_0x3184,0xe30ae));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationSocketService,UniverCollaborationClientPlugin}from'@univerjs-pro/collaboration-client';import{DependentOn,Disposable,DisposableCollection,IConfigService,ILogService,Inject,Injector,Plugin,registerDependencies,toDisposable}from'@univerjs/core';import{HTTPService,ISocketService}from'@univerjs/network';import{Observable,share}from'rxjs';import{WebSocket}from'ws';import{ISnapshotServerService}from'@univerjs-pro/collaboration';const COLLABORATION_CLIENT_NODE_CONFIG_KEY=_0x2166c9(0x1db),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x2166c9(0x1e6),version=_0x2166c9(0x1df);function __decorateParam(_0x346263,_0x390c83){return function(_0x484fdd,_0x415074){_0x390c83(_0x484fdd,_0x415074,_0x346263);};}function _0x3184(){const _0x1a8d65=['UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','1bTRIKP','open','collaboration-client-node.config','3231VZuWlm','pipe','createSocket','0.22.1-insiders.20260516-8900c44','removeEventListener','4ZpCsTx','toPrimitive','_registerDependencies','version','default','@univerjs-pro/collaboration-client-node','customHeaders','next','error','call','addEventListener','send','set','28EqrSwg','getConfig','dispose','3218595RvyksF','4728426GkzhaU','29450DIrrYj','symbol','5418096fzmfVA','7467906qCcerF','_configService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','getOwnPropertyDescriptor','prototype','close','constructor','object','3477328ZnvCWE','iterator','66nOpYKp','add','2658130dcYPSM','function','decorate','length','_doCreateSocket','_injector','packageName','pluginName','registerHTTPInterceptor','message'];_0x3184=function(){return _0x1a8d65;};return _0x3184();}function __decorate(_0x3b1f20,_0x6150e,_0xae09dc,_0x46d72e){const _0x1f75ad=_0x2166c9;var _0x859ce0=arguments[_0x1f75ad(0x206)],_0x3a5343=_0x859ce0<0x3?_0x6150e:_0x46d72e===null?_0x46d72e=Object[_0x1f75ad(0x1fa)](_0x6150e,_0xae09dc):_0x46d72e,_0x35aa0e;if(typeof Reflect==='object'&&typeof Reflect[_0x1f75ad(0x205)]===_0x1f75ad(0x204))_0x3a5343=Reflect[_0x1f75ad(0x205)](_0x3b1f20,_0x6150e,_0xae09dc,_0x46d72e);else{for(var _0x4715d6=_0x3b1f20['length']-0x1;_0x4715d6>=0x0;_0x4715d6--)if(_0x35aa0e=_0x3b1f20[_0x4715d6])_0x3a5343=(_0x859ce0<0x3?_0x35aa0e(_0x3a5343):_0x859ce0>0x3?_0x35aa0e(_0x6150e,_0xae09dc,_0x3a5343):_0x35aa0e(_0x6150e,_0xae09dc))||_0x3a5343;}return _0x859ce0>0x3&&_0x3a5343&&Object['defineProperty'](_0x6150e,_0xae09dc,_0x3a5343),_0x3a5343;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x12bf9a){const _0x45ae74=_0x2166c9;super(),this[_0x45ae74(0x1f7)]=_0x12bf9a;}[_0x2166c9(0x1de)](_0x278fda){const _0x3e18b9=_0x2166c9;var _0x916d22;const _0x4c38af=((_0x916d22=this[_0x3e18b9(0x1f7)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x916d22===void 0x0?void 0x0:_0x916d22[_0x3e18b9(0x1e7)])||{};try{const _0x376e12=new WebSocket(_0x278fda,{'headers':{..._0x4c38af}}),_0xff1813=new DisposableCollection();return{'URL':_0x278fda,'close':(_0x4665c5,_0x5ee89d)=>{const _0x2aa6eb=_0x3e18b9;_0x376e12[_0x2aa6eb(0x1fc)](_0x4665c5,_0x5ee89d),_0xff1813[_0x2aa6eb(0x1f0)]();},'send':_0x64bc0e=>{const _0x3e5f6b=_0x3e18b9;_0x376e12[_0x3e5f6b(0x1ec)](_0x64bc0e);},'open$':new Observable(_0x3d8ca4=>{const _0x5ca734=_0x3e18b9,_0x3b02d6=_0x1e978e=>_0x3d8ca4['next'](_0x1e978e);_0x376e12[_0x5ca734(0x1eb)](_0x5ca734(0x1da),_0x3b02d6),_0xff1813[_0x5ca734(0x202)](toDisposable(()=>_0x376e12[_0x5ca734(0x1e0)](_0x5ca734(0x1da),_0x3b02d6)));})['pipe'](share()),'close$':new Observable(_0x589de5=>{const _0x9b11e=_0x3e18b9,_0x4ae187=_0x22b3ae=>_0x589de5[_0x9b11e(0x1e8)](_0x22b3ae);_0x376e12['addEventListener'](_0x9b11e(0x1fc),_0x4ae187),_0xff1813[_0x9b11e(0x202)](toDisposable(()=>_0x376e12[_0x9b11e(0x1e0)](_0x9b11e(0x1fc),_0x4ae187)));})[_0x3e18b9(0x1dd)](share()),'error$':new Observable(_0x43aa57=>{const _0x5afe6b=_0x3e18b9,_0x5d3928=_0xdf7565=>_0x43aa57[_0x5afe6b(0x1e8)](_0xdf7565);_0x376e12['addEventListener'](_0x5afe6b(0x1e9),_0x5d3928),_0xff1813[_0x5afe6b(0x202)](toDisposable(()=>_0x376e12['removeEventListener'](_0x5afe6b(0x1e9),_0x5d3928)));})[_0x3e18b9(0x1dd)](share()),'message$':new Observable(_0x5b3639=>{const _0xd342ac=_0x3e18b9,_0x540bbd=_0x206d72=>_0x5b3639[_0xd342ac(0x1e8)](_0x206d72);_0x376e12[_0xd342ac(0x1eb)](_0xd342ac(0x20c),_0x540bbd),_0xff1813[_0xd342ac(0x202)](toDisposable(()=>_0x376e12['removeEventListener'](_0xd342ac(0x20c),_0x540bbd)));})['pipe'](share())};}catch(_0x2e3490){return console[_0x3e18b9(0x1e9)](_0x2e3490),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x47a2c1){'@babel/helpers - typeof';const _0x3ab58c=_0x2166c9;return _typeof=_0x3ab58c(0x204)==typeof Symbol&&_0x3ab58c(0x1f4)==typeof Symbol[_0x3ab58c(0x200)]?function(_0x49c8e4){return typeof _0x49c8e4;}:function(_0x3acb55){const _0x8791e8=_0x3ab58c;return _0x3acb55&&_0x8791e8(0x204)==typeof Symbol&&_0x3acb55[_0x8791e8(0x1fd)]===Symbol&&_0x3acb55!==Symbol[_0x8791e8(0x1fb)]?_0x8791e8(0x1f4):typeof _0x3acb55;},_typeof(_0x47a2c1);}function _0x5943(_0x3087bc,_0x304b4e){_0x3087bc=_0x3087bc-0x1d9;const _0x31849b=_0x3184();let _0x5943a7=_0x31849b[_0x3087bc];return _0x5943a7;}function toPrimitive(_0xaa1fdb,_0x53324f){const _0x51b408=_0x2166c9;if(_0x51b408(0x1fe)!=_typeof(_0xaa1fdb)||!_0xaa1fdb)return _0xaa1fdb;var _0xe6e811=_0xaa1fdb[Symbol[_0x51b408(0x1e2)]];if(void 0x0!==_0xe6e811){var _0x485652=_0xe6e811[_0x51b408(0x1ea)](_0xaa1fdb,_0x53324f||_0x51b408(0x1e5));if(_0x51b408(0x1fe)!=_typeof(_0x485652))return _0x485652;throw new TypeError(_0x51b408(0x1f8));}return('string'===_0x53324f?String:Number)(_0xaa1fdb);}function toPropertyKey(_0x196bc5){const _0x47093f=_0x2166c9;var _0x3c9746=toPrimitive(_0x196bc5,'string');return _0x47093f(0x1f4)==_typeof(_0x3c9746)?_0x3c9746:_0x3c9746+'';}function _defineProperty(_0x149f48,_0x574227,_0x295dd4){return(_0x574227=toPropertyKey(_0x574227))in _0x149f48?Object['defineProperty'](_0x149f48,_0x574227,{'value':_0x295dd4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x149f48[_0x574227]=_0x295dd4,_0x149f48;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x430d2a=defaultPluginConfig,_0x1a6aa7,_0x2c23ab){const _0x41e61a=_0x2166c9;super(),this[_0x41e61a(0x1f7)]=_0x1a6aa7,this[_0x41e61a(0x208)]=_0x2c23ab,this['_configService']['setConfig'](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x430d2a);}[_0x2166c9(0x1f9)](){const _0x53907e=_0x2166c9;this[_0x53907e(0x1e3)]();}[_0x2166c9(0x1e3)](){const _0x25f8e8=_0x2166c9;registerDependencies(this[_0x25f8e8(0x208)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x2166c9(0x20a),_0x2166c9(0x20d)),_defineProperty(UniverCollaborationClientNodePlugin,_0x2166c9(0x209),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x2166c9(0x1e4),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x1f3bf4,_0x48675a,_0x5acc26,_0x1894a8,_0x385841){const _0x3bfbc0=_0x2166c9;super(_0x1f3bf4,_0x48675a,_0x5acc26,_0x1894a8,_0x385841);const _0x40b5a6=this['_configService'][_0x3bfbc0(0x1ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this['_httpService'][_0x3bfbc0(0x20b)]({'interceptor':(_0x2b5bc6,_0x15575c)=>{const _0x5a779e=_0x3bfbc0,_0x322b6e=_0x2b5bc6['headers'];if(_0x40b5a6===null||_0x40b5a6===void 0x0?void 0x0:_0x40b5a6[_0x5a779e(0x1e7)]){for(const _0x29048c in _0x40b5a6[_0x5a779e(0x1e7)])_0x322b6e[_0x5a779e(0x1ed)](_0x29048c,_0x40b5a6[_0x5a779e(0x1e7)][_0x29048c]);}return _0x15575c(_0x2b5bc6);}});}async[_0x2166c9(0x1de)](_0x47c432){const _0x5254fc=_0x2166c9;return this[_0x5254fc(0x207)](_0x47c432);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xc71a(){const _0x9f3e98=['toPrimitive','Disposable','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverProCollaboration','ISocketService','rxjs','constructor','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','addEventListener','close','collaboration-client-node.config','function','142688zkcsAt','UniverProCollaborationClient','ILogService','set','decorate','504iCYKZJ','registerDependencies','@univerjs/network','6Ojzukh','add','iterator','COLLABORATION_CLIENT_NODE_CONFIG_KEY','Plugin','share','defineProperty','pipe','exports','getConfig','message','WebSocket','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','17495bNfAsi','Injector','HTTPService','_httpService','CollaborationSocketService','pluginName','_configService','toDisposable','_injector','UniverCollaborationClientPlugin','removeEventListener','DependentOn','getOwnPropertyDescriptor','dispose','open','createSocket','1283673xMPWEb','string','_doCreateSocket','default','version','10699770ycCHNS','error','call','UniverProCollaborationClientNode','next','IConfigService','UniverCore','headers','1845KDGwWs','length','symbol','0.22.0','send','NodeCollaborationSocketService','customHeaders','DisposableCollection','_registerDependencies','15728JBXnOT','Observable','prototype','packageName','toStringTag','Inject','1133153ezMXNU','541162KyaDpq','onStarting','@univerjs-pro/collaboration-client-node'];_0xc71a=function(){return _0x9f3e98;};return _0xc71a();}function _0x1d05(_0x107a8a,_0x254433){_0x107a8a=_0x107a8a-0x1b9;const _0xc71a3d=_0xc71a();let _0x1d051d=_0xc71a3d[_0x107a8a];return _0x1d051d;}(function(_0x4f514f,_0x3ac54d){const _0x33487c=_0x1d05,_0x122681=_0x4f514f();while(!![]){try{const _0x5171f2=parseInt(_0x33487c(0x1e9))/0x1+-parseInt(_0x33487c(0x1d9))/0x2+parseInt(_0x33487c(0x1bc))/0x3+-parseInt(_0x33487c(0x1ee))/0x4*(-parseInt(_0x33487c(0x1ff))/0x5)+-parseInt(_0x33487c(0x1f1))/0x6*(-parseInt(_0x33487c(0x1d8))/0x7)+-parseInt(_0x33487c(0x1d2))/0x8*(-parseInt(_0x33487c(0x1c9))/0x9)+-parseInt(_0x33487c(0x1c1))/0xa;if(_0x5171f2===_0x3ac54d)break;else _0x122681['push'](_0x122681['shift']());}catch(_0x1c2581){_0x122681['push'](_0x122681['shift']());}}}(_0xc71a,0x3991c),function(_0x4a3ed1,_0x1fbb4d){const _0x50734b=_0x1d05;typeof exports==_0x50734b(0x1fd)&&typeof module<'u'?_0x1fbb4d(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x50734b(0x1e8)&&define['amd']?define(['exports',_0x50734b(0x1e4),'@univerjs/core',_0x50734b(0x1f0),'rxjs',_0x50734b(0x1e3)],_0x1fbb4d):(_0x4a3ed1=typeof globalThis<'u'?globalThis:_0x4a3ed1||self,_0x1fbb4d(_0x4a3ed1[_0x50734b(0x1c4)]={},_0x4a3ed1[_0x50734b(0x1ea)],_0x4a3ed1[_0x50734b(0x1c7)],_0x4a3ed1['UniverNetwork'],_0x4a3ed1[_0x50734b(0x1e1)],_0x4a3ed1[_0x50734b(0x1df)]));}(this,function(_0x2a5b29,_0x2eb05a,_0x42bedd,_0x448c4d,_0x5b8349,_0x2d4475){const _0x150a23=_0x1d05;Object[_0x150a23(0x1f7)](_0x2a5b29,Symbol[_0x150a23(0x1d6)],{'value':'Module'});var _0x2cf107=(_0x40b8ba,_0x1a52bb)=>()=>(_0x1a52bb||(_0x40b8ba((_0x1a52bb={'exports':{}})[_0x150a23(0x1f9)],_0x1a52bb),_0x40b8ba=null),_0x1a52bb[_0x150a23(0x1f9)]);let _0xe8a30d=_0x150a23(0x1e7);Symbol(_0xe8a30d);let _0x4f5ba5={};var _0x3d430a=_0x150a23(0x1db),_0x4f07ea=_0x150a23(0x1cc),_0x1fe297=_0x2cf107((_0x4939fb,_0x4f70c2)=>{const _0x409d3f=_0x150a23;_0x4f70c2[_0x409d3f(0x1f9)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x274e90(_0x546db4,_0xf641d7){return function(_0x297049,_0x2624e5){_0xf641d7(_0x297049,_0x2624e5,_0x546db4);};}function _0x42c225(_0x8122ce,_0x34767b,_0x1e5d9f,_0x451d28){const _0x168f63=_0x150a23;var _0x5b55d1=arguments[_0x168f63(0x1ca)],_0x104b0c=_0x5b55d1<0x3?_0x34767b:_0x451d28===null?_0x451d28=Object[_0x168f63(0x20b)](_0x34767b,_0x1e5d9f):_0x451d28,_0x5c816f;if(typeof Reflect==_0x168f63(0x1fd)&&typeof Reflect['decorate']==_0x168f63(0x1e8))_0x104b0c=Reflect[_0x168f63(0x1ed)](_0x8122ce,_0x34767b,_0x1e5d9f,_0x451d28);else{for(var _0x42ca15=_0x8122ce[_0x168f63(0x1ca)]-0x1;_0x42ca15>=0x0;_0x42ca15--)(_0x5c816f=_0x8122ce[_0x42ca15])&&(_0x104b0c=(_0x5b55d1<0x3?_0x5c816f(_0x104b0c):_0x5b55d1>0x3?_0x5c816f(_0x34767b,_0x1e5d9f,_0x104b0c):_0x5c816f(_0x34767b,_0x1e5d9f))||_0x104b0c);}return _0x5b55d1>0x3&&_0x104b0c&&Object['defineProperty'](_0x34767b,_0x1e5d9f,_0x104b0c),_0x104b0c;}let _0x22874b=class extends _0x42bedd[_0x150a23(0x1dd)]{constructor(_0x3a0b55){const _0x16198b=_0x150a23;super(),this[_0x16198b(0x205)]=_0x3a0b55;}[_0x150a23(0x1bb)](_0x5c2058){const _0x14d8ab=_0x150a23;var _0x33849f;let _0x526801=((_0x33849f=this[_0x14d8ab(0x205)][_0x14d8ab(0x1fa)](_0x2eb05a[_0x14d8ab(0x1de)]))==null?void 0x0:_0x33849f[_0x14d8ab(0x1cf)])||{};try{let _0x37911e=new _0x1fe297[(_0x14d8ab(0x1fc))](_0x5c2058,{'headers':{..._0x526801}}),_0x56831f=new _0x42bedd[(_0x14d8ab(0x1d0))]();return{'URL':_0x5c2058,'close':(_0x732551,_0x371363)=>{const _0x1985f7=_0x14d8ab;_0x37911e[_0x1985f7(0x1e6)](_0x732551,_0x371363),_0x56831f[_0x1985f7(0x1b9)]();},'send':_0x565cf4=>{const _0x2767e4=_0x14d8ab;_0x37911e[_0x2767e4(0x1cd)](_0x565cf4);},'open$':new _0x5b8349[(_0x14d8ab(0x1d3))](_0x5abe09=>{const _0x246c10=_0x14d8ab;let _0xf2612d=_0x4ab86a=>_0x5abe09[_0x246c10(0x1c5)](_0x4ab86a);_0x37911e[_0x246c10(0x1e5)](_0x246c10(0x1ba),_0xf2612d),_0x56831f['add']((0x0,_0x42bedd[_0x246c10(0x206)])(()=>_0x37911e[_0x246c10(0x209)](_0x246c10(0x1ba),_0xf2612d)));})['pipe']((0x0,_0x5b8349[_0x14d8ab(0x1f6)])()),'close$':new _0x5b8349['Observable'](_0x594d23=>{const _0x16ef77=_0x14d8ab;let _0x262beb=_0x2be8d3=>_0x594d23[_0x16ef77(0x1c5)](_0x2be8d3);_0x37911e['addEventListener'](_0x16ef77(0x1e6),_0x262beb),_0x56831f['add']((0x0,_0x42bedd['toDisposable'])(()=>_0x37911e[_0x16ef77(0x209)](_0x16ef77(0x1e6),_0x262beb)));})[_0x14d8ab(0x1f8)]((0x0,_0x5b8349[_0x14d8ab(0x1f6)])()),'error$':new _0x5b8349[(_0x14d8ab(0x1d3))](_0xbaa418=>{const _0x4b6bc8=_0x14d8ab;let _0x228300=_0x34389d=>_0xbaa418['next'](_0x34389d);_0x37911e['addEventListener'](_0x4b6bc8(0x1c2),_0x228300),_0x56831f[_0x4b6bc8(0x1f2)]((0x0,_0x42bedd[_0x4b6bc8(0x206)])(()=>_0x37911e[_0x4b6bc8(0x209)](_0x4b6bc8(0x1c2),_0x228300)));})['pipe']((0x0,_0x5b8349['share'])()),'message$':new _0x5b8349[(_0x14d8ab(0x1d3))](_0xa6e77c=>{const _0x5d1b65=_0x14d8ab;let _0x3c57a=_0x1a1bf1=>_0xa6e77c['next'](_0x1a1bf1);_0x37911e[_0x5d1b65(0x1e5)](_0x5d1b65(0x1fb),_0x3c57a),_0x56831f[_0x5d1b65(0x1f2)]((0x0,_0x42bedd[_0x5d1b65(0x206)])(()=>_0x37911e[_0x5d1b65(0x209)](_0x5d1b65(0x1fb),_0x3c57a)));})[_0x14d8ab(0x1f8)]((0x0,_0x5b8349['share'])())};}catch(_0x40669d){return console[_0x14d8ab(0x1c2)](_0x40669d),null;}}};_0x22874b=_0x42c225([_0x274e90(0x0,_0x42bedd[_0x150a23(0x1c6)])],_0x22874b);function _0x50b263(_0x20e370){'@babel/helpers - typeof';const _0x5b8458=_0x150a23;return _0x50b263=typeof Symbol=='function'&&typeof Symbol[_0x5b8458(0x1f3)]==_0x5b8458(0x1cb)?function(_0x2653fa){return typeof _0x2653fa;}:function(_0x3b227c){const _0x50064a=_0x5b8458;return _0x3b227c&&typeof Symbol==_0x50064a(0x1e8)&&_0x3b227c[_0x50064a(0x1e2)]===Symbol&&_0x3b227c!==Symbol[_0x50064a(0x1d4)]?'symbol':typeof _0x3b227c;},_0x50b263(_0x20e370);}function _0x5e6d60(_0x1c4c9d,_0x3d7c6d){const _0x566757=_0x150a23;if(_0x50b263(_0x1c4c9d)!=_0x566757(0x1fd)||!_0x1c4c9d)return _0x1c4c9d;var _0x25a101=_0x1c4c9d[Symbol[_0x566757(0x1dc)]];if(_0x25a101!==void 0x0){var _0x1be12e=_0x25a101[_0x566757(0x1c3)](_0x1c4c9d,_0x3d7c6d||_0x566757(0x1bf));if(_0x50b263(_0x1be12e)!=_0x566757(0x1fd))return _0x1be12e;throw TypeError(_0x566757(0x1fe));}return(_0x3d7c6d===_0x566757(0x1bd)?String:Number)(_0x1c4c9d);}function _0x43a547(_0x11e4b2){const _0x3984fc=_0x150a23;var _0x9486d6=_0x5e6d60(_0x11e4b2,_0x3984fc(0x1bd));return _0x50b263(_0x9486d6)==_0x3984fc(0x1cb)?_0x9486d6:_0x9486d6+'';}function _0x244488(_0x3c7a7b,_0x20b18b,_0x436aa3){const _0x52a992=_0x150a23;return(_0x20b18b=_0x43a547(_0x20b18b))in _0x3c7a7b?Object[_0x52a992(0x1f7)](_0x3c7a7b,_0x20b18b,{'value':_0x436aa3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3c7a7b[_0x20b18b]=_0x436aa3,_0x3c7a7b;}let _0x3101d4=class extends _0x42bedd[_0x150a23(0x1f5)]{constructor(_0x3c61ff=_0x4f5ba5,_0x4743c8,_0x41d90e){const _0x184224=_0x150a23;super(),this[_0x184224(0x205)]=_0x4743c8,this[_0x184224(0x207)]=_0x41d90e,this[_0x184224(0x205)]['setConfig'](_0xe8a30d,_0x3c61ff);}[_0x150a23(0x1da)](){const _0xa0b676=_0x150a23;this[_0xa0b676(0x1d1)]();}[_0x150a23(0x1d1)](){const _0x3d4218=_0x150a23;(0x0,_0x42bedd[_0x3d4218(0x1ef)])(this[_0x3d4218(0x207)],[[_0x448c4d[_0x3d4218(0x1e0)],{'useClass':_0x22874b}]]);}};_0x244488(_0x3101d4,_0x150a23(0x204),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x244488(_0x3101d4,_0x150a23(0x1d5),_0x3d430a),_0x244488(_0x3101d4,_0x150a23(0x1c0),_0x4f07ea),_0x3101d4=_0x42c225([(0x0,_0x42bedd[_0x150a23(0x20a)])(_0x2eb05a[_0x150a23(0x208)]),_0x274e90(0x1,_0x42bedd[_0x150a23(0x1c6)]),_0x274e90(0x2,(0x0,_0x42bedd[_0x150a23(0x1d7)])(_0x42bedd[_0x150a23(0x200)]))],_0x3101d4);let _0x58e246=class extends _0x2eb05a[_0x150a23(0x203)]{constructor(_0x5a4d77,_0x1a2457,_0x2449f7,_0x1e69e8,_0x33eed7){const _0x2cb67c=_0x150a23;super(_0x5a4d77,_0x1a2457,_0x2449f7,_0x1e69e8,_0x33eed7);let _0x52e8ca=this[_0x2cb67c(0x205)][_0x2cb67c(0x1fa)](_0x2eb05a[_0x2cb67c(0x1de)]);this[_0x2cb67c(0x202)]['registerHTTPInterceptor']({'interceptor':(_0x41febd,_0x6d50b3)=>{const _0x44c7de=_0x2cb67c;let _0xc0d222=_0x41febd[_0x44c7de(0x1c8)];if(_0x52e8ca!=null&&_0x52e8ca[_0x44c7de(0x1cf)]){for(let _0x5ad6df in _0x52e8ca[_0x44c7de(0x1cf)])_0xc0d222[_0x44c7de(0x1ec)](_0x5ad6df,_0x52e8ca[_0x44c7de(0x1cf)][_0x5ad6df]);}return _0x6d50b3(_0x41febd);}});}async[_0x150a23(0x1bb)](_0x391bab){const _0x192fe7=_0x150a23;return this[_0x192fe7(0x1be)](_0x391bab);}};_0x58e246=_0x42c225([_0x274e90(0x0,(0x0,_0x42bedd[_0x150a23(0x1d7)])(_0x42bedd[_0x150a23(0x200)])),_0x274e90(0x1,(0x0,_0x42bedd[_0x150a23(0x1d7)])(_0x448c4d[_0x150a23(0x201)])),_0x274e90(0x2,_0x42bedd[_0x150a23(0x1c6)]),_0x274e90(0x3,_0x42bedd[_0x150a23(0x1eb)]),_0x274e90(0x4,_0x2d4475['ISnapshotServerService'])],_0x58e246),_0x2a5b29[_0x150a23(0x1f4)]=_0xe8a30d,Object[_0x150a23(0x1f7)](_0x2a5b29,_0x150a23(0x1ce),{'enumerable':!0x0,'get':function(){return _0x58e246;}}),Object['defineProperty'](_0x2a5b29,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x3101d4;}});}));
1
+ (function(_0x57a5d6,_0x3a97ca){const _0x4f02cd=_0x2e99,_0x240349=_0x57a5d6();while(!![]){try{const _0x5542f9=-parseInt(_0x4f02cd(0xbc))/0x1+parseInt(_0x4f02cd(0xcc))/0x2*(-parseInt(_0x4f02cd(0xae))/0x3)+-parseInt(_0x4f02cd(0xb8))/0x4*(-parseInt(_0x4f02cd(0xed))/0x5)+-parseInt(_0x4f02cd(0xec))/0x6*(parseInt(_0x4f02cd(0xbf))/0x7)+-parseInt(_0x4f02cd(0xbe))/0x8*(-parseInt(_0x4f02cd(0xb9))/0x9)+parseInt(_0x4f02cd(0xcd))/0xa*(parseInt(_0x4f02cd(0xbd))/0xb)+-parseInt(_0x4f02cd(0xd2))/0xc*(-parseInt(_0x4f02cd(0xe8))/0xd);if(_0x5542f9===_0x3a97ca)break;else _0x240349['push'](_0x240349['shift']());}catch(_0x32dbcc){_0x240349['push'](_0x240349['shift']());}}}(_0x3f8d,0xb66c4),function(_0x272964,_0x5e9f41){const _0x4b2837=_0x2e99;typeof exports=='object'&&typeof module<'u'?_0x5e9f41(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x4b2837(0xfb)&&define[_0x4b2837(0xf1)]?define(['exports','@univerjs-pro/collaboration-client','@univerjs/core',_0x4b2837(0xf2),_0x4b2837(0xc0),_0x4b2837(0xab)],_0x5e9f41):(_0x272964=typeof globalThis<'u'?globalThis:_0x272964||self,_0x5e9f41(_0x272964[_0x4b2837(0xf4)]={},_0x272964[_0x4b2837(0xf3)],_0x272964[_0x4b2837(0xc8)],_0x272964[_0x4b2837(0xb5)],_0x272964[_0x4b2837(0xc0)],_0x272964[_0x4b2837(0xef)]));}(this,function(_0x346649,_0x25fab4,_0x2b293c,_0x5bc3e7,_0x1d4112,_0x546c7e){const _0x5cf34a=_0x2e99;Object[_0x5cf34a(0xdc)](_0x346649,Symbol['toStringTag'],{'value':_0x5cf34a(0xd5)});var _0x2a4403=(_0x342e8b,_0x3b7f01)=>()=>(_0x3b7f01||(_0x342e8b((_0x3b7f01={'exports':{}})['exports'],_0x3b7f01),_0x342e8b=null),_0x3b7f01[_0x5cf34a(0xfd)]);let _0x28509c=_0x5cf34a(0xad);Symbol(_0x28509c);let _0xe8db43={};var _0x58e9fc=_0x5cf34a(0xdd),_0x53a320=_0x5cf34a(0xd7),_0x1ed5d2=_0x2a4403((_0xacf3f2,_0x37e897)=>{const _0x277df9=_0x5cf34a;_0x37e897[_0x277df9(0xfd)]=function(){const _0x43e338=_0x277df9;throw Error(_0x43e338(0xe4));};})();function _0x467c7a(_0x195a41,_0x234827){return function(_0x9adce4,_0x104259){_0x234827(_0x9adce4,_0x104259,_0x195a41);};}function _0x362deb(_0x49fba3,_0x1823b9,_0x560448,_0x5dc92b){const _0x1b6599=_0x5cf34a;var _0x34bdb0=arguments['length'],_0x51bf98=_0x34bdb0<0x3?_0x1823b9:_0x5dc92b===null?_0x5dc92b=Object['getOwnPropertyDescriptor'](_0x1823b9,_0x560448):_0x5dc92b,_0x268534;if(typeof Reflect==_0x1b6599(0xe7)&&typeof Reflect[_0x1b6599(0xf0)]==_0x1b6599(0xfb))_0x51bf98=Reflect[_0x1b6599(0xf0)](_0x49fba3,_0x1823b9,_0x560448,_0x5dc92b);else{for(var _0x6d24f8=_0x49fba3['length']-0x1;_0x6d24f8>=0x0;_0x6d24f8--)(_0x268534=_0x49fba3[_0x6d24f8])&&(_0x51bf98=(_0x34bdb0<0x3?_0x268534(_0x51bf98):_0x34bdb0>0x3?_0x268534(_0x1823b9,_0x560448,_0x51bf98):_0x268534(_0x1823b9,_0x560448))||_0x51bf98);}return _0x34bdb0>0x3&&_0x51bf98&&Object[_0x1b6599(0xdc)](_0x1823b9,_0x560448,_0x51bf98),_0x51bf98;}let _0x4ccff1=class extends _0x2b293c[_0x5cf34a(0xb7)]{constructor(_0x273413){const _0xd716f4=_0x5cf34a;super(),this[_0xd716f4(0xb3)]=_0x273413;}[_0x5cf34a(0xf7)](_0x57769a){const _0x3b42ee=_0x5cf34a;var _0xd9f0ab;let _0x3d4b94=((_0xd9f0ab=this['_configService'][_0x3b42ee(0xe5)](_0x25fab4[_0x3b42ee(0xe0)]))==null?void 0x0:_0xd9f0ab[_0x3b42ee(0xb6)])||{};try{let _0x32a9b7=new _0x1ed5d2[(_0x3b42ee(0xd8))](_0x57769a,{'headers':{..._0x3d4b94}}),_0x48b8e7=new _0x2b293c[(_0x3b42ee(0xac))]();return{'URL':_0x57769a,'close':(_0x5554a2,_0x56262c)=>{const _0x518b46=_0x3b42ee;_0x32a9b7[_0x518b46(0xc4)](_0x5554a2,_0x56262c),_0x48b8e7['dispose']();},'send':_0x118bb3=>{const _0x5e08b9=_0x3b42ee;_0x32a9b7[_0x5e08b9(0xca)](_0x118bb3);},'open$':new _0x1d4112[(_0x3b42ee(0xb4))](_0x38ec17=>{const _0x3d651b=_0x3b42ee;let _0x19c040=_0x206080=>_0x38ec17[_0x3d651b(0xf9)](_0x206080);_0x32a9b7[_0x3d651b(0xc5)](_0x3d651b(0xb0),_0x19c040),_0x48b8e7['add']((0x0,_0x2b293c[_0x3d651b(0xea)])(()=>_0x32a9b7['removeEventListener']('open',_0x19c040)));})[_0x3b42ee(0xf6)]((0x0,_0x1d4112[_0x3b42ee(0xaf)])()),'close$':new _0x1d4112['Observable'](_0xd8bf56=>{const _0x260de1=_0x3b42ee;let _0x59e4a0=_0x22ef72=>_0xd8bf56[_0x260de1(0xf9)](_0x22ef72);_0x32a9b7[_0x260de1(0xc5)](_0x260de1(0xc4),_0x59e4a0),_0x48b8e7['add']((0x0,_0x2b293c[_0x260de1(0xea)])(()=>_0x32a9b7[_0x260de1(0xcf)](_0x260de1(0xc4),_0x59e4a0)));})['pipe']((0x0,_0x1d4112[_0x3b42ee(0xaf)])()),'error$':new _0x1d4112[(_0x3b42ee(0xb4))](_0x1210ae=>{const _0x212a7e=_0x3b42ee;let _0x1aadb3=_0x23c6d1=>_0x1210ae['next'](_0x23c6d1);_0x32a9b7[_0x212a7e(0xc5)](_0x212a7e(0xd4),_0x1aadb3),_0x48b8e7[_0x212a7e(0xd9)]((0x0,_0x2b293c['toDisposable'])(()=>_0x32a9b7['removeEventListener']('error',_0x1aadb3)));})[_0x3b42ee(0xf6)]((0x0,_0x1d4112[_0x3b42ee(0xaf)])()),'message$':new _0x1d4112['Observable'](_0x2f123b=>{const _0x355c1d=_0x3b42ee;let _0x2afd6f=_0x261984=>_0x2f123b[_0x355c1d(0xf9)](_0x261984);_0x32a9b7[_0x355c1d(0xc5)](_0x355c1d(0xc1),_0x2afd6f),_0x48b8e7[_0x355c1d(0xd9)]((0x0,_0x2b293c[_0x355c1d(0xea)])(()=>_0x32a9b7['removeEventListener'](_0x355c1d(0xc1),_0x2afd6f)));})[_0x3b42ee(0xf6)]((0x0,_0x1d4112['share'])())};}catch(_0x544e9e){return console[_0x3b42ee(0xd4)](_0x544e9e),null;}}};_0x4ccff1=_0x362deb([_0x467c7a(0x0,_0x2b293c['IConfigService'])],_0x4ccff1);function _0x446174(_0x2dde8d){'@babel/helpers - typeof';const _0x2a363a=_0x5cf34a;return _0x446174=typeof Symbol==_0x2a363a(0xfb)&&typeof Symbol[_0x2a363a(0xf8)]=='symbol'?function(_0x4d5a27){return typeof _0x4d5a27;}:function(_0x589cdd){const _0x5f5ae4=_0x2a363a;return _0x589cdd&&typeof Symbol==_0x5f5ae4(0xfb)&&_0x589cdd['constructor']===Symbol&&_0x589cdd!==Symbol['prototype']?'symbol':typeof _0x589cdd;},_0x446174(_0x2dde8d);}function _0x3a0d5c(_0x2bc97c,_0x258fab){const _0x120767=_0x5cf34a;if(_0x446174(_0x2bc97c)!=_0x120767(0xe7)||!_0x2bc97c)return _0x2bc97c;var _0x48e1fa=_0x2bc97c[Symbol[_0x120767(0xd3)]];if(_0x48e1fa!==void 0x0){var _0x1f9de0=_0x48e1fa[_0x120767(0xe9)](_0x2bc97c,_0x258fab||_0x120767(0xfc));if(_0x446174(_0x1f9de0)!=_0x120767(0xe7))return _0x1f9de0;throw TypeError(_0x120767(0xdf));}return(_0x258fab===_0x120767(0xbb)?String:Number)(_0x2bc97c);}function _0x3b6d62(_0xad91c){const _0x8c8cda=_0x5cf34a;var _0x3395a0=_0x3a0d5c(_0xad91c,_0x8c8cda(0xbb));return _0x446174(_0x3395a0)=='symbol'?_0x3395a0:_0x3395a0+'';}function _0x57220c(_0x5353ab,_0x338bfa,_0x2c155e){const _0x35c3e3=_0x5cf34a;return(_0x338bfa=_0x3b6d62(_0x338bfa))in _0x5353ab?Object[_0x35c3e3(0xdc)](_0x5353ab,_0x338bfa,{'value':_0x2c155e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5353ab[_0x338bfa]=_0x2c155e,_0x5353ab;}let _0x1a4fb2=class extends _0x2b293c['Plugin']{constructor(_0x1c39d7=_0xe8db43,_0x42a926,_0x4e879c){const _0x41515f=_0x5cf34a;super(),this['_configService']=_0x42a926,this[_0x41515f(0xd6)]=_0x4e879c,this[_0x41515f(0xb3)][_0x41515f(0xfa)](_0x28509c,_0x1c39d7);}[_0x5cf34a(0xc6)](){const _0x5bcc6b=_0x5cf34a;this[_0x5bcc6b(0xde)]();}[_0x5cf34a(0xde)](){const _0xc2ec5=_0x5cf34a;(0x0,_0x2b293c[_0xc2ec5(0xd0)])(this['_injector'],[[_0x5bc3e7[_0xc2ec5(0xda)],{'useClass':_0x4ccff1}]]);}};_0x57220c(_0x1a4fb2,_0x5cf34a(0xee),_0x5cf34a(0xba)),_0x57220c(_0x1a4fb2,_0x5cf34a(0xe3),_0x58e9fc),_0x57220c(_0x1a4fb2,_0x5cf34a(0xc7),_0x53a320),_0x1a4fb2=_0x362deb([(0x0,_0x2b293c[_0x5cf34a(0xb2)])(_0x25fab4['UniverCollaborationClientPlugin']),_0x467c7a(0x1,_0x2b293c['IConfigService']),_0x467c7a(0x2,(0x0,_0x2b293c[_0x5cf34a(0xe6)])(_0x2b293c[_0x5cf34a(0xd1)]))],_0x1a4fb2);let _0x42a9a2=class extends _0x25fab4[_0x5cf34a(0xeb)]{constructor(_0x47c73a,_0x33a85b,_0x4ccd6d,_0x13db2c,_0x2a76e2){const _0x4f90b1=_0x5cf34a;super(_0x47c73a,_0x33a85b,_0x4ccd6d,_0x13db2c,_0x2a76e2);let _0x5edb02=this[_0x4f90b1(0xb3)][_0x4f90b1(0xe5)](_0x25fab4[_0x4f90b1(0xe0)]);this[_0x4f90b1(0xc9)][_0x4f90b1(0xf5)]({'interceptor':(_0x2be09d,_0x1e9307)=>{const _0x480a0c=_0x4f90b1;let _0x4dd01b=_0x2be09d[_0x480a0c(0xb1)];if(_0x5edb02!=null&&_0x5edb02[_0x480a0c(0xb6)]){for(let _0x7a1413 in _0x5edb02['customHeaders'])_0x4dd01b[_0x480a0c(0xe1)](_0x7a1413,_0x5edb02['customHeaders'][_0x7a1413]);}return _0x1e9307(_0x2be09d);}});}async['createSocket'](_0x9c4860){const _0x4a0c32=_0x5cf34a;return this[_0x4a0c32(0xc2)](_0x9c4860);}};_0x42a9a2=_0x362deb([_0x467c7a(0x0,(0x0,_0x2b293c[_0x5cf34a(0xe6)])(_0x2b293c[_0x5cf34a(0xd1)])),_0x467c7a(0x1,(0x0,_0x2b293c[_0x5cf34a(0xe6)])(_0x5bc3e7['HTTPService'])),_0x467c7a(0x2,_0x2b293c['IConfigService']),_0x467c7a(0x3,_0x2b293c[_0x5cf34a(0xc3)]),_0x467c7a(0x4,_0x546c7e[_0x5cf34a(0xcb)])],_0x42a9a2),_0x346649[_0x5cf34a(0xdb)]=_0x28509c,Object[_0x5cf34a(0xdc)](_0x346649,_0x5cf34a(0xe2),{'enumerable':!0x0,'get':function(){return _0x42a9a2;}}),Object[_0x5cf34a(0xdc)](_0x346649,_0x5cf34a(0xce),{'enumerable':!0x0,'get':function(){return _0x1a4fb2;}});}));function _0x2e99(_0x1f721e,_0x50c0bb){_0x1f721e=_0x1f721e-0xab;const _0x3f8d5c=_0x3f8d();let _0x2e9971=_0x3f8d5c[_0x1f721e];return _0x2e9971;}function _0x3f8d(){const _0xd9955c=['call','toDisposable','CollaborationSocketService','902946WXlIIu','318525NzPiKI','pluginName','UniverProCollaboration','decorate','amd','@univerjs/network','UniverProCollaborationClient','UniverProCollaborationClientNode','registerHTTPInterceptor','pipe','createSocket','iterator','next','setConfig','function','default','exports','@univerjs-pro/collaboration','DisposableCollection','collaboration-client-node.config','45oXLTlM','share','open','headers','DependentOn','_configService','Observable','UniverNetwork','customHeaders','Disposable','44MEvdJx','9klkSDK','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','string','958875CcAzhN','6446ZgHJZR','5728648DcWjXH','63UhMIKd','rxjs','message','_doCreateSocket','ILogService','close','addEventListener','onStarting','version','UniverCore','_httpService','send','ISnapshotServerService','165610BedXpk','13270VqwhSs','UniverCollaborationClientNodePlugin','removeEventListener','registerDependencies','Injector','8432460UoExCs','toPrimitive','error','Module','_injector','0.22.1-insiders.20260516-8900c44','WebSocket','add','ISocketService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','defineProperty','@univerjs-pro/collaboration-client-node','_registerDependencies','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','set','NodeCollaborationSocketService','packageName','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','getConfig','Inject','object','39brnDKf'];_0x3f8d=function(){return _0xd9955c;};return _0x3f8d();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.22.0",
3
+ "version": "0.22.1-insiders.20260516-8900c44",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -52,17 +52,17 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.20.0",
55
- "@univerjs-pro/collaboration-client": "0.22.0",
56
- "@univerjs-pro/collaboration": "0.22.0",
57
- "@univerjs/core": "0.22.0",
58
- "@univerjs/network": "0.22.0"
55
+ "@univerjs-pro/collaboration": "0.22.1-insiders.20260516-8900c44",
56
+ "@univerjs-pro/collaboration-client": "0.22.1-insiders.20260516-8900c44",
57
+ "@univerjs/core": "0.22.1-insiders.20260516-8900c44",
58
+ "@univerjs/network": "0.22.1-insiders.20260516-8900c44"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/ws": "8.18.1",
62
62
  "rxjs": "7.8.2",
63
63
  "typescript": "^6.0.3",
64
64
  "vitest": "^4.1.4",
65
- "@univerjs-infra/shared": "0.22.0"
65
+ "@univerjs-infra/shared": "0.22.1"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",