@univerjs-pro/collaboration-client-node 0.21.0-insiders.20260425-d7469e9 → 0.21.1

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 _0x2115ff=_0x54e3;(function(_0x449bb1,_0x4b51aa){const _0x37a8ed=_0x54e3,_0xcc7415=_0x449bb1();while(!![]){try{const _0x3f3273=parseInt(_0x37a8ed(0xc9))/0x1+-parseInt(_0x37a8ed(0xc1))/0x2+parseInt(_0x37a8ed(0x90))/0x3*(-parseInt(_0x37a8ed(0xaf))/0x4)+parseInt(_0x37a8ed(0xb3))/0x5*(-parseInt(_0x37a8ed(0x9f))/0x6)+parseInt(_0x37a8ed(0xaa))/0x7*(parseInt(_0x37a8ed(0xad))/0x8)+parseInt(_0x37a8ed(0x93))/0x9+parseInt(_0x37a8ed(0x98))/0xa;if(_0x3f3273===_0x4b51aa)break;else _0xcc7415['push'](_0xcc7415['shift']());}catch(_0x81d20d){_0xcc7415['push'](_0xcc7415['shift']());}}}(_0x3fa2,0xe88ef),Object[_0x2115ff(0xa3)](exports,Symbol['toStringTag'],{'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=_0x2115ff(0xbb),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x2115ff(0xb9),version=_0x2115ff(0xcf);function __decorateParam(_0x252328,_0x39884e){return function(_0x545bd2,_0x1dfeb2){_0x39884e(_0x545bd2,_0x1dfeb2,_0x252328);};}function __decorate(_0x3ff145,_0x441193,_0x335d42,_0x4fc790){const _0x127eee=_0x2115ff;var _0x17884f=arguments[_0x127eee(0xb0)],_0x1629d4=_0x17884f<0x3?_0x441193:_0x4fc790===null?_0x4fc790=Object['getOwnPropertyDescriptor'](_0x441193,_0x335d42):_0x4fc790,_0x47e3e5;if(typeof Reflect===_0x127eee(0x8e)&&typeof Reflect[_0x127eee(0x9a)]===_0x127eee(0x9b))_0x1629d4=Reflect[_0x127eee(0x9a)](_0x3ff145,_0x441193,_0x335d42,_0x4fc790);else{for(var _0x29c263=_0x3ff145[_0x127eee(0xb0)]-0x1;_0x29c263>=0x0;_0x29c263--)if(_0x47e3e5=_0x3ff145[_0x29c263])_0x1629d4=(_0x17884f<0x3?_0x47e3e5(_0x1629d4):_0x17884f>0x3?_0x47e3e5(_0x441193,_0x335d42,_0x1629d4):_0x47e3e5(_0x441193,_0x335d42))||_0x1629d4;}return _0x17884f>0x3&&_0x1629d4&&Object[_0x127eee(0xa3)](_0x441193,_0x335d42,_0x1629d4),_0x1629d4;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core[_0x2115ff(0xc0)]{constructor(_0x528f16){super(),this['_configService']=_0x528f16;}[_0x2115ff(0x97)](_0x408cb9){const _0x25fb2f=_0x2115ff;var _0x2161a0;const _0x4d44c0=((_0x2161a0=this[_0x25fb2f(0xb8)][_0x25fb2f(0xbd)](_univerjs_pro_collaboration_client[_0x25fb2f(0xb1)]))===null||_0x2161a0===void 0x0?void 0x0:_0x2161a0[_0x25fb2f(0xb2)])||{};try{const _0x481379=new ws[(_0x25fb2f(0xc7))](_0x408cb9,{'headers':{..._0x4d44c0}}),_0xad4e76=new _univerjs_core[(_0x25fb2f(0xd1))]();return{'URL':_0x408cb9,'close':(_0x4b3687,_0x45d93a)=>{const _0x197336=_0x25fb2f;_0x481379[_0x197336(0xb6)](_0x4b3687,_0x45d93a),_0xad4e76['dispose']();},'send':_0x50421f=>{const _0x2c9ff0=_0x25fb2f;_0x481379[_0x2c9ff0(0x9e)](_0x50421f);},'open$':new rxjs[(_0x25fb2f(0x99))](_0x62f539=>{const _0x5960bf=_0x25fb2f,_0x41f753=_0x258be0=>_0x62f539[_0x5960bf(0xa5)](_0x258be0);_0x481379['addEventListener'](_0x5960bf(0xbc),_0x41f753),_0xad4e76[_0x5960bf(0xa2)]((0x0,_univerjs_core['toDisposable'])(()=>_0x481379[_0x5960bf(0xc5)](_0x5960bf(0xbc),_0x41f753)));})[_0x25fb2f(0x92)]((0x0,rxjs[_0x25fb2f(0xbe)])()),'close$':new rxjs[(_0x25fb2f(0x99))](_0x528fa3=>{const _0x570d82=_0x25fb2f,_0x213822=_0x4c6457=>_0x528fa3['next'](_0x4c6457);_0x481379[_0x570d82(0x94)](_0x570d82(0xb6),_0x213822),_0xad4e76[_0x570d82(0xa2)]((0x0,_univerjs_core['toDisposable'])(()=>_0x481379[_0x570d82(0xc5)](_0x570d82(0xb6),_0x213822)));})[_0x25fb2f(0x92)]((0x0,rxjs['share'])()),'error$':new rxjs[(_0x25fb2f(0x99))](_0x54537e=>{const _0xb87368=_0x25fb2f,_0xe9a847=_0x1294e6=>_0x54537e[_0xb87368(0xa5)](_0x1294e6);_0x481379[_0xb87368(0x94)](_0xb87368(0xc6),_0xe9a847),_0xad4e76[_0xb87368(0xa2)]((0x0,_univerjs_core[_0xb87368(0xa9)])(()=>_0x481379[_0xb87368(0xc5)](_0xb87368(0xc6),_0xe9a847)));})[_0x25fb2f(0x92)]((0x0,rxjs[_0x25fb2f(0xbe)])()),'message$':new rxjs[(_0x25fb2f(0x99))](_0x4d635f=>{const _0x237045=_0x25fb2f,_0x1967a3=_0x314f9d=>_0x4d635f[_0x237045(0xa5)](_0x314f9d);_0x481379[_0x237045(0x94)](_0x237045(0xae),_0x1967a3),_0xad4e76[_0x237045(0xa2)]((0x0,_univerjs_core['toDisposable'])(()=>_0x481379['removeEventListener'](_0x237045(0xae),_0x1967a3)));})[_0x25fb2f(0x92)]((0x0,rxjs[_0x25fb2f(0xbe)])())};}catch(_0x1e1756){return console[_0x25fb2f(0xc6)](_0x1e1756),null;}}};function _0x54e3(_0x2156ae,_0x534fcd){_0x2156ae=_0x2156ae-0x8e;const _0x3fa287=_0x3fa2();let _0x54e36b=_0x3fa287[_0x2156ae];return _0x54e36b;}NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core[_0x2115ff(0x9d)])],NodeWebSocketService);function _typeof(_0x4cc1c4){'@babel/helpers - typeof';const _0x2e0928=_0x2115ff;return _typeof=_0x2e0928(0x9b)==typeof Symbol&&_0x2e0928(0xa8)==typeof Symbol[_0x2e0928(0x95)]?function(_0x178331){return typeof _0x178331;}:function(_0x475261){const _0x557d2f=_0x2e0928;return _0x475261&&'function'==typeof Symbol&&_0x475261[_0x557d2f(0xbf)]===Symbol&&_0x475261!==Symbol['prototype']?_0x557d2f(0xa8):typeof _0x475261;},_typeof(_0x4cc1c4);}function toPrimitive(_0x37180d,_0x5eaa7e){const _0x49d84c=_0x2115ff;if(_0x49d84c(0x8e)!=_typeof(_0x37180d)||!_0x37180d)return _0x37180d;var _0xeba2ab=_0x37180d[Symbol[_0x49d84c(0xb4)]];if(void 0x0!==_0xeba2ab){var _0x441274=_0xeba2ab[_0x49d84c(0x8f)](_0x37180d,_0x5eaa7e||_0x49d84c(0xc2));if(_0x49d84c(0x8e)!=_typeof(_0x441274))return _0x441274;throw new TypeError(_0x49d84c(0xb7));}return(_0x49d84c(0x91)===_0x5eaa7e?String:Number)(_0x37180d);}function toPropertyKey(_0x11022c){const _0x33cba0=_0x2115ff;var _0x3877fb=toPrimitive(_0x11022c,_0x33cba0(0x91));return'symbol'==_typeof(_0x3877fb)?_0x3877fb:_0x3877fb+'';}function _defineProperty(_0x5499a0,_0x60c6bd,_0x1bf5a7){const _0x5b242c=_0x2115ff;return(_0x60c6bd=toPropertyKey(_0x60c6bd))in _0x5499a0?Object[_0x5b242c(0xa3)](_0x5499a0,_0x60c6bd,{'value':_0x1bf5a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5499a0[_0x60c6bd]=_0x1bf5a7,_0x5499a0;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core['Plugin']{constructor(_0x2a73d4=defaultPluginConfig,_0x43e653,_0xaeffe1){const _0x11c9fc=_0x2115ff;super(),this['_configService']=_0x43e653,this[_0x11c9fc(0x9c)]=_0xaeffe1,this[_0x11c9fc(0xb8)][_0x11c9fc(0xcb)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x2a73d4);}[_0x2115ff(0xab)](){const _0x47769a=_0x2115ff;this[_0x47769a(0xac)]();}[_0x2115ff(0xac)](){const _0xb1ad12=_0x2115ff;(0x0,_univerjs_core[_0xb1ad12(0xa7)])(this[_0xb1ad12(0x9c)],[[_univerjs_network[_0xb1ad12(0xc8)],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,'pluginName',_0x2115ff(0xcc)),_defineProperty(UniverCollaborationClientNodePlugin,_0x2115ff(0xcd),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x2115ff(0xa0),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core[_0x2115ff(0x96)])(_univerjs_pro_collaboration_client['UniverCollaborationClientPlugin']),__decorateParam(0x1,_univerjs_core[_0x2115ff(0x9d)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x2115ff(0xd0)])(_univerjs_core['Injector']))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client[_0x2115ff(0xce)]{constructor(_0x298c0d,_0x3b5c88,_0x4a116c,_0x481a93,_0x2900cd){const _0x5583d6=_0x2115ff;super(_0x298c0d,_0x3b5c88,_0x4a116c,_0x481a93,_0x2900cd);const _0x563a34=this[_0x5583d6(0xb8)]['getConfig'](_univerjs_pro_collaboration_client['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService'][_0x5583d6(0xa4)]({'interceptor':(_0x240126,_0x397f49)=>{const _0x2649cf=_0x5583d6,_0x32e75b=_0x240126[_0x2649cf(0xba)];if(_0x563a34===null||_0x563a34===void 0x0?void 0x0:_0x563a34[_0x2649cf(0xb2)]){for(const _0x49ff68 in _0x563a34['customHeaders'])_0x32e75b[_0x2649cf(0xa6)](_0x49ff68,_0x563a34[_0x2649cf(0xb2)][_0x49ff68]);}return _0x397f49(_0x240126);}});}async[_0x2115ff(0x97)](_0x4f1812){return this['_doCreateSocket'](_0x4f1812);}};function _0x3fa2(){const _0x2013ac=['symbol','toDisposable','189vFHfmu','onStarting','_registerDependencies','492104zglpex','message','1981436bYVajY','length','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','customHeaders','972785rjoPuY','toPrimitive','HTTPService','close','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_configService','@univerjs-pro/collaboration-client-node','headers','collaboration-client-node.config','open','getConfig','share','constructor','Disposable','3603050jsfewb','default','COLLABORATION_CLIENT_NODE_CONFIG_KEY','ILogService','removeEventListener','error','WebSocket','ISocketService','1197049fevCFz','UniverCollaborationClientNodePlugin','setConfig','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','packageName','CollaborationSocketService','0.21.0-insiders.20260425-d7469e9','Inject','DisposableCollection','ISnapshotServerService','object','call','9QpVThA','string','pipe','5016420GQGuTE','addEventListener','iterator','DependentOn','createSocket','25758940BNpdCF','Observable','decorate','function','_injector','IConfigService','send','54qibnps','version','NodeCollaborationSocketService','add','defineProperty','registerHTTPInterceptor','next','set','registerDependencies'];_0x3fa2=function(){return _0x2013ac;};return _0x3fa2();}NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x2115ff(0xd0)])(_univerjs_core['Injector'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x2115ff(0xd0)])(_univerjs_network[_0x2115ff(0xb5)])),__decorateParam(0x2,_univerjs_core[_0x2115ff(0x9d)]),__decorateParam(0x3,_univerjs_core[_0x2115ff(0xc4)]),__decorateParam(0x4,_univerjs_pro_collaboration[_0x2115ff(0xd2)])],NodeCollaborationSocketService),exports[_0x2115ff(0xc3)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object[_0x2115ff(0xa3)](exports,_0x2115ff(0xa1),{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object['defineProperty'](exports,_0x2115ff(0xca),{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});
1
+ const _0xbacc9c=_0x2944;(function(_0x28092f,_0x4ff11a){const _0x1005b7=_0x2944,_0x37d692=_0x28092f();while(!![]){try{const _0x3683a6=parseInt(_0x1005b7(0x84))/0x1*(-parseInt(_0x1005b7(0xa8))/0x2)+parseInt(_0x1005b7(0xa4))/0x3+parseInt(_0x1005b7(0xb4))/0x4*(-parseInt(_0x1005b7(0x7e))/0x5)+-parseInt(_0x1005b7(0xb1))/0x6+parseInt(_0x1005b7(0xac))/0x7*(parseInt(_0x1005b7(0x89))/0x8)+parseInt(_0x1005b7(0xb8))/0x9+parseInt(_0x1005b7(0x8c))/0xa;if(_0x3683a6===_0x4ff11a)break;else _0x37d692['push'](_0x37d692['shift']());}catch(_0x584736){_0x37d692['push'](_0x37d692['shift']());}}}(_0x133a,0xbef4d),Object[_0xbacc9c(0x81)](exports,Symbol[_0xbacc9c(0x7b)],{'value':_0xbacc9c(0xa2)}));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=_0xbacc9c(0x90),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0xbacc9c(0xb3),version=_0xbacc9c(0x8e);function __decorateParam(_0x26aeeb,_0x4d5e4f){return function(_0x28e5a7,_0x271a5b){_0x4d5e4f(_0x28e5a7,_0x271a5b,_0x26aeeb);};}function _0x2944(_0x1d15b7,_0x1feffa){_0x1d15b7=_0x1d15b7-0x7a;const _0x133adc=_0x133a();let _0x29440e=_0x133adc[_0x1d15b7];return _0x29440e;}function __decorate(_0x32d15d,_0x2a4c61,_0x253907,_0x325a3b){const _0x2ac987=_0xbacc9c;var _0x21bee8=arguments[_0x2ac987(0x96)],_0x443371=_0x21bee8<0x3?_0x2a4c61:_0x325a3b===null?_0x325a3b=Object[_0x2ac987(0x87)](_0x2a4c61,_0x253907):_0x325a3b,_0x5e05a8;if(typeof Reflect==='object'&&typeof Reflect[_0x2ac987(0x91)]===_0x2ac987(0xbf))_0x443371=Reflect[_0x2ac987(0x91)](_0x32d15d,_0x2a4c61,_0x253907,_0x325a3b);else{for(var _0x4d1049=_0x32d15d['length']-0x1;_0x4d1049>=0x0;_0x4d1049--)if(_0x5e05a8=_0x32d15d[_0x4d1049])_0x443371=(_0x21bee8<0x3?_0x5e05a8(_0x443371):_0x21bee8>0x3?_0x5e05a8(_0x2a4c61,_0x253907,_0x443371):_0x5e05a8(_0x2a4c61,_0x253907))||_0x443371;}return _0x21bee8>0x3&&_0x443371&&Object[_0x2ac987(0x81)](_0x2a4c61,_0x253907,_0x443371),_0x443371;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core[_0xbacc9c(0xc3)]{constructor(_0x1c617d){const _0x1ef332=_0xbacc9c;super(),this[_0x1ef332(0x8b)]=_0x1c617d;}[_0xbacc9c(0xab)](_0xab7147){const _0x50c9d7=_0xbacc9c;var _0xb77d8b;const _0x1e7e9e=((_0xb77d8b=this[_0x50c9d7(0x8b)]['getConfig'](_univerjs_pro_collaboration_client[_0x50c9d7(0xbd)]))===null||_0xb77d8b===void 0x0?void 0x0:_0xb77d8b[_0x50c9d7(0xb6)])||{};try{const _0x5978de=new ws[(_0x50c9d7(0xbc))](_0xab7147,{'headers':{..._0x1e7e9e}}),_0x19b272=new _univerjs_core[(_0x50c9d7(0x9a))]();return{'URL':_0xab7147,'close':(_0x51c38e,_0x42a951)=>{const _0x5cf40e=_0x50c9d7;_0x5978de[_0x5cf40e(0xb9)](_0x51c38e,_0x42a951),_0x19b272[_0x5cf40e(0x85)]();},'send':_0x33091a=>{const _0x4b060e=_0x50c9d7;_0x5978de[_0x4b060e(0x8f)](_0x33091a);},'open$':new rxjs[(_0x50c9d7(0x9f))](_0x296e3f=>{const _0x27502d=_0x50c9d7,_0x446f96=_0x5b60e0=>_0x296e3f[_0x27502d(0xae)](_0x5b60e0);_0x5978de[_0x27502d(0x7f)](_0x27502d(0x7a),_0x446f96),_0x19b272['add']((0x0,_univerjs_core[_0x27502d(0x7d)])(()=>_0x5978de['removeEventListener']('open',_0x446f96)));})[_0x50c9d7(0x8d)]((0x0,rxjs[_0x50c9d7(0xbb)])()),'close$':new rxjs[(_0x50c9d7(0x9f))](_0x22c406=>{const _0x5efac4=_0x50c9d7,_0x350260=_0x3a16d5=>_0x22c406[_0x5efac4(0xae)](_0x3a16d5);_0x5978de[_0x5efac4(0x7f)]('close',_0x350260),_0x19b272[_0x5efac4(0xa5)]((0x0,_univerjs_core['toDisposable'])(()=>_0x5978de['removeEventListener'](_0x5efac4(0xb9),_0x350260)));})[_0x50c9d7(0x8d)]((0x0,rxjs['share'])()),'error$':new rxjs[(_0x50c9d7(0x9f))](_0xcc3713=>{const _0x4463a2=_0x50c9d7,_0x424d56=_0x3e2916=>_0xcc3713[_0x4463a2(0xae)](_0x3e2916);_0x5978de[_0x4463a2(0x7f)](_0x4463a2(0xb0),_0x424d56),_0x19b272[_0x4463a2(0xa5)]((0x0,_univerjs_core[_0x4463a2(0x7d)])(()=>_0x5978de['removeEventListener'](_0x4463a2(0xb0),_0x424d56)));})[_0x50c9d7(0x8d)]((0x0,rxjs[_0x50c9d7(0xbb)])()),'message$':new rxjs[(_0x50c9d7(0x9f))](_0xb51679=>{const _0x4f7a22=_0x50c9d7,_0x15070a=_0x2c1304=>_0xb51679[_0x4f7a22(0xae)](_0x2c1304);_0x5978de['addEventListener'](_0x4f7a22(0x7c),_0x15070a),_0x19b272['add']((0x0,_univerjs_core[_0x4f7a22(0x7d)])(()=>_0x5978de[_0x4f7a22(0xa3)]('message',_0x15070a)));})['pipe']((0x0,rxjs[_0x50c9d7(0xbb)])())};}catch(_0x10be02){return console['error'](_0x10be02),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core['IConfigService'])],NodeWebSocketService);function _typeof(_0x4573a1){'@babel/helpers - typeof';const _0x469be0=_0xbacc9c;return _typeof='function'==typeof Symbol&&_0x469be0(0x9d)==typeof Symbol[_0x469be0(0x88)]?function(_0x44986d){return typeof _0x44986d;}:function(_0x2b26d8){const _0x1236d0=_0x469be0;return _0x2b26d8&&'function'==typeof Symbol&&_0x2b26d8[_0x1236d0(0xa0)]===Symbol&&_0x2b26d8!==Symbol[_0x1236d0(0x99)]?_0x1236d0(0x9d):typeof _0x2b26d8;},_typeof(_0x4573a1);}function toPrimitive(_0x4440eb,_0x555771){const _0x36abde=_0xbacc9c;if(_0x36abde(0xa9)!=_typeof(_0x4440eb)||!_0x4440eb)return _0x4440eb;var _0x2ea076=_0x4440eb[Symbol['toPrimitive']];if(void 0x0!==_0x2ea076){var _0x3c0c38=_0x2ea076[_0x36abde(0xa1)](_0x4440eb,_0x555771||_0x36abde(0x83));if(_0x36abde(0xa9)!=_typeof(_0x3c0c38))return _0x3c0c38;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x36abde(0xaf)===_0x555771?String:Number)(_0x4440eb);}function toPropertyKey(_0x1922d9){const _0x5637d9=_0xbacc9c;var _0x34d2bd=toPrimitive(_0x1922d9,_0x5637d9(0xaf));return _0x5637d9(0x9d)==_typeof(_0x34d2bd)?_0x34d2bd:_0x34d2bd+'';}function _defineProperty(_0x1f34c0,_0x4095d9,_0x7f9068){const _0x4e27d0=_0xbacc9c;return(_0x4095d9=toPropertyKey(_0x4095d9))in _0x1f34c0?Object[_0x4e27d0(0x81)](_0x1f34c0,_0x4095d9,{'value':_0x7f9068,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1f34c0[_0x4095d9]=_0x7f9068,_0x1f34c0;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core[_0xbacc9c(0xb5)]{constructor(_0x2026f8=defaultPluginConfig,_0x4f761e,_0x1ff548){const _0x1e224a=_0xbacc9c;super(),this['_configService']=_0x4f761e,this[_0x1e224a(0x92)]=_0x1ff548,this['_configService'][_0x1e224a(0x9b)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x2026f8);}[_0xbacc9c(0x82)](){this['_registerDependencies']();}[_0xbacc9c(0x98)](){(0x0,_univerjs_core['registerDependencies'])(this['_injector'],[[_univerjs_network['ISocketService'],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0xbacc9c(0xc2),_0xbacc9c(0x8a)),_defineProperty(UniverCollaborationClientNodePlugin,_0xbacc9c(0xb2),name),_defineProperty(UniverCollaborationClientNodePlugin,_0xbacc9c(0x80),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core[_0xbacc9c(0xc4)])(_univerjs_pro_collaboration_client[_0xbacc9c(0x93)]),__decorateParam(0x1,_univerjs_core[_0xbacc9c(0x97)]),__decorateParam(0x2,(0x0,_univerjs_core[_0xbacc9c(0xa6)])(_univerjs_core[_0xbacc9c(0x95)]))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client[_0xbacc9c(0x86)]{constructor(_0x871437,_0x402506,_0xcda330,_0x41129f,_0x57d007){const _0x4de9f6=_0xbacc9c;super(_0x871437,_0x402506,_0xcda330,_0x41129f,_0x57d007);const _0x5e1cf9=this[_0x4de9f6(0x8b)][_0x4de9f6(0xbe)](_univerjs_pro_collaboration_client[_0x4de9f6(0xbd)]);this[_0x4de9f6(0xa7)]['registerHTTPInterceptor']({'interceptor':(_0x3dbb72,_0x25dde8)=>{const _0xeac0f5=_0x4de9f6,_0x2adfa6=_0x3dbb72[_0xeac0f5(0xad)];if(_0x5e1cf9===null||_0x5e1cf9===void 0x0?void 0x0:_0x5e1cf9[_0xeac0f5(0xb6)]){for(const _0x4f7e90 in _0x5e1cf9[_0xeac0f5(0xb6)])_0x2adfa6[_0xeac0f5(0xaa)](_0x4f7e90,_0x5e1cf9[_0xeac0f5(0xb6)][_0x4f7e90]);}return _0x25dde8(_0x3dbb72);}});}async[_0xbacc9c(0xab)](_0x2a1e3a){const _0x2442ff=_0xbacc9c;return this[_0x2442ff(0xba)](_0x2a1e3a);}};function _0x133a(){const _0x58b922=['1644249BuXHlP','add','Inject','_httpService','2188LjpvfU','object','set','createSocket','14mCUUPC','headers','next','string','error','8721066pEdVCA','packageName','@univerjs-pro/collaboration-client-node','4928964qsAOuA','Plugin','customHeaders','HTTPService','172170neHWKh','close','_doCreateSocket','share','WebSocket','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getConfig','function','NodeCollaborationSocketService','ILogService','pluginName','Disposable','DependentOn','open','toStringTag','message','toDisposable','5ZpZDIS','addEventListener','version','defineProperty','onStarting','default','1424rcZOVc','dispose','CollaborationSocketService','getOwnPropertyDescriptor','iterator','5698312ZDwXoE','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_configService','30339740MZhUfX','pipe','0.21.1','send','collaboration-client-node.config','decorate','_injector','UniverCollaborationClientPlugin','ISnapshotServerService','Injector','length','IConfigService','_registerDependencies','prototype','DisposableCollection','setConfig','COLLABORATION_CLIENT_NODE_CONFIG_KEY','symbol','UniverCollaborationClientNodePlugin','Observable','constructor','call','Module','removeEventListener'];_0x133a=function(){return _0x58b922;};return _0x133a();}NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0xbacc9c(0xa6)])(_univerjs_core[_0xbacc9c(0x95)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_network[_0xbacc9c(0xb7)])),__decorateParam(0x2,_univerjs_core[_0xbacc9c(0x97)]),__decorateParam(0x3,_univerjs_core[_0xbacc9c(0xc1)]),__decorateParam(0x4,_univerjs_pro_collaboration[_0xbacc9c(0x94)])],NodeCollaborationSocketService),exports[_0xbacc9c(0x9c)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object['defineProperty'](exports,_0xbacc9c(0xc0),{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object['defineProperty'](exports,_0xbacc9c(0x9e),{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x376485=_0x2865;(function(_0x21a78a,_0x3f84d1){const _0x149599=_0x2865,_0x37863e=_0x21a78a();while(!![]){try{const _0x5439ac=parseInt(_0x149599(0x98))/0x1*(parseInt(_0x149599(0xb1))/0x2)+-parseInt(_0x149599(0x9a))/0x3+-parseInt(_0x149599(0xac))/0x4*(parseInt(_0x149599(0x8b))/0x5)+-parseInt(_0x149599(0xa9))/0x6+parseInt(_0x149599(0x90))/0x7*(parseInt(_0x149599(0xa7))/0x8)+parseInt(_0x149599(0x86))/0x9+parseInt(_0x149599(0x84))/0xa;if(_0x5439ac===_0x3f84d1)break;else _0x37863e['push'](_0x37863e['shift']());}catch(_0x47ef0a){_0x37863e['push'](_0x37863e['shift']());}}}(_0x515c,0x1c852));function _0x2865(_0x52abc5,_0x4fba84){_0x52abc5=_0x52abc5-0x81;const _0x515cc4=_0x515c();let _0x28651f=_0x515cc4[_0x52abc5];return _0x28651f;}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=_0x376485(0xa6),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name='@univerjs-pro/collaboration-client-node',version=_0x376485(0xa1);function __decorateParam(_0x3b0674,_0xead4da){return function(_0x112c4d,_0x5775bf){_0xead4da(_0x112c4d,_0x5775bf,_0x3b0674);};}function __decorate(_0x45764f,_0x3f1982,_0x57c379,_0x4d6baa){const _0x2ce9d2=_0x376485;var _0xd5a700=arguments['length'],_0x2a4ff2=_0xd5a700<0x3?_0x3f1982:_0x4d6baa===null?_0x4d6baa=Object[_0x2ce9d2(0x92)](_0x3f1982,_0x57c379):_0x4d6baa,_0x3b40f4;if(typeof Reflect===_0x2ce9d2(0xab)&&typeof Reflect[_0x2ce9d2(0xa3)]===_0x2ce9d2(0x9d))_0x2a4ff2=Reflect[_0x2ce9d2(0xa3)](_0x45764f,_0x3f1982,_0x57c379,_0x4d6baa);else{for(var _0x34d2eb=_0x45764f['length']-0x1;_0x34d2eb>=0x0;_0x34d2eb--)if(_0x3b40f4=_0x45764f[_0x34d2eb])_0x2a4ff2=(_0xd5a700<0x3?_0x3b40f4(_0x2a4ff2):_0xd5a700>0x3?_0x3b40f4(_0x3f1982,_0x57c379,_0x2a4ff2):_0x3b40f4(_0x3f1982,_0x57c379))||_0x2a4ff2;}return _0xd5a700>0x3&&_0x2a4ff2&&Object[_0x2ce9d2(0xa2)](_0x3f1982,_0x57c379,_0x2a4ff2),_0x2a4ff2;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x573cbe){const _0x5de4b0=_0x376485;super(),this[_0x5de4b0(0xb2)]=_0x573cbe;}[_0x376485(0x85)](_0x2615c0){const _0x5cb379=_0x376485;var _0x510cdd;const _0x325c54=((_0x510cdd=this[_0x5cb379(0xb2)][_0x5cb379(0x95)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x510cdd===void 0x0?void 0x0:_0x510cdd[_0x5cb379(0xae)])||{};try{const _0x3e5a52=new WebSocket(_0x2615c0,{'headers':{..._0x325c54}}),_0x5972cc=new DisposableCollection();return{'URL':_0x2615c0,'close':(_0x1f3716,_0x4325a9)=>{const _0xb69459=_0x5cb379;_0x3e5a52[_0xb69459(0x8c)](_0x1f3716,_0x4325a9),_0x5972cc[_0xb69459(0x88)]();},'send':_0x22790d=>{const _0x26643b=_0x5cb379;_0x3e5a52[_0x26643b(0x96)](_0x22790d);},'open$':new Observable(_0x3e53a0=>{const _0x463c0c=_0x5cb379,_0x427ea4=_0x38861b=>_0x3e53a0['next'](_0x38861b);_0x3e5a52[_0x463c0c(0xa8)](_0x463c0c(0x89),_0x427ea4),_0x5972cc['add'](toDisposable(()=>_0x3e5a52[_0x463c0c(0x94)](_0x463c0c(0x89),_0x427ea4)));})[_0x5cb379(0x93)](share()),'close$':new Observable(_0x41f721=>{const _0x5831b6=_0x5cb379,_0x1e464a=_0x2449ae=>_0x41f721[_0x5831b6(0x9e)](_0x2449ae);_0x3e5a52[_0x5831b6(0xa8)]('close',_0x1e464a),_0x5972cc[_0x5831b6(0x9c)](toDisposable(()=>_0x3e5a52[_0x5831b6(0x94)](_0x5831b6(0x8c),_0x1e464a)));})[_0x5cb379(0x93)](share()),'error$':new Observable(_0x117151=>{const _0x504d22=_0x5cb379,_0x4270f2=_0x33d239=>_0x117151[_0x504d22(0x9e)](_0x33d239);_0x3e5a52['addEventListener'](_0x504d22(0x8f),_0x4270f2),_0x5972cc[_0x504d22(0x9c)](toDisposable(()=>_0x3e5a52['removeEventListener'](_0x504d22(0x8f),_0x4270f2)));})[_0x5cb379(0x93)](share()),'message$':new Observable(_0x760966=>{const _0x34af48=_0x5cb379,_0x5e275a=_0xfa94fa=>_0x760966['next'](_0xfa94fa);_0x3e5a52[_0x34af48(0xa8)](_0x34af48(0xad),_0x5e275a),_0x5972cc[_0x34af48(0x9c)](toDisposable(()=>_0x3e5a52[_0x34af48(0x94)](_0x34af48(0xad),_0x5e275a)));})['pipe'](share())};}catch(_0x3fd2f2){return console['error'](_0x3fd2f2),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x37e606){'@babel/helpers - typeof';const _0x519a81=_0x376485;return _typeof=_0x519a81(0x9d)==typeof Symbol&&_0x519a81(0x81)==typeof Symbol[_0x519a81(0x8e)]?function(_0x444cdf){return typeof _0x444cdf;}:function(_0xc4d0f){const _0x12acff=_0x519a81;return _0xc4d0f&&_0x12acff(0x9d)==typeof Symbol&&_0xc4d0f[_0x12acff(0x99)]===Symbol&&_0xc4d0f!==Symbol[_0x12acff(0x8a)]?_0x12acff(0x81):typeof _0xc4d0f;},_typeof(_0x37e606);}function toPrimitive(_0x64d536,_0x3c0488){const _0x2b83fe=_0x376485;if(_0x2b83fe(0xab)!=_typeof(_0x64d536)||!_0x64d536)return _0x64d536;var _0x25ecbc=_0x64d536[Symbol[_0x2b83fe(0x87)]];if(void 0x0!==_0x25ecbc){var _0xa48dd6=_0x25ecbc[_0x2b83fe(0x9f)](_0x64d536,_0x3c0488||_0x2b83fe(0xa4));if(_0x2b83fe(0xab)!=_typeof(_0xa48dd6))return _0xa48dd6;throw new TypeError(_0x2b83fe(0xa0));}return('string'===_0x3c0488?String:Number)(_0x64d536);}function toPropertyKey(_0x352c97){const _0xd2e714=_0x376485;var _0x8491b7=toPrimitive(_0x352c97,_0xd2e714(0x83));return'symbol'==_typeof(_0x8491b7)?_0x8491b7:_0x8491b7+'';}function _defineProperty(_0x570948,_0x3cad28,_0x147471){const _0x3f36b1=_0x376485;return(_0x3cad28=toPropertyKey(_0x3cad28))in _0x570948?Object[_0x3f36b1(0xa2)](_0x570948,_0x3cad28,{'value':_0x147471,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x570948[_0x3cad28]=_0x147471,_0x570948;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x4340ce=defaultPluginConfig,_0x2fd157,_0x2305dd){super(),this['_configService']=_0x2fd157,this['_injector']=_0x2305dd,this['_configService']['setConfig'](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x4340ce);}[_0x376485(0xb0)](){const _0x5d1a1c=_0x376485;this[_0x5d1a1c(0x97)]();}[_0x376485(0x97)](){const _0x470624=_0x376485;registerDependencies(this[_0x470624(0x82)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};function _0x515c(){const _0x56a7c2=['createSocket','1904742tWBxhW','toPrimitive','dispose','open','prototype','276635wFLhkE','close','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','iterator','error','44401fVMMvV','set','getOwnPropertyDescriptor','pipe','removeEventListener','getConfig','send','_registerDependencies','1kBFyDN','constructor','228762etEXBt','headers','add','function','next','call','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','0.21.0-insiders.20260425-d7469e9','defineProperty','decorate','default','version','collaboration-client-node.config','48tswctP','addEventListener','922566fFQvOO','_httpService','object','4mfoDUl','message','customHeaders','registerHTTPInterceptor','onStarting','105858BUbaRa','_configService','symbol','_injector','string','995350bdetBl'];_0x515c=function(){return _0x56a7c2;};return _0x515c();}_defineProperty(UniverCollaborationClientNodePlugin,'pluginName',_0x376485(0x8d)),_defineProperty(UniverCollaborationClientNodePlugin,'packageName',name),_defineProperty(UniverCollaborationClientNodePlugin,_0x376485(0xa5),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x3963a4,_0x3b77bc,_0x400338,_0x4f726a,_0x3020be){const _0x50a84f=_0x376485;super(_0x3963a4,_0x3b77bc,_0x400338,_0x4f726a,_0x3020be);const _0x320ff3=this[_0x50a84f(0xb2)][_0x50a84f(0x95)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x50a84f(0xaa)][_0x50a84f(0xaf)]({'interceptor':(_0x563a9a,_0x79a395)=>{const _0x5ee76a=_0x50a84f,_0x43956e=_0x563a9a[_0x5ee76a(0x9b)];if(_0x320ff3===null||_0x320ff3===void 0x0?void 0x0:_0x320ff3[_0x5ee76a(0xae)]){for(const _0x2c883a in _0x320ff3[_0x5ee76a(0xae)])_0x43956e[_0x5ee76a(0x91)](_0x2c883a,_0x320ff3[_0x5ee76a(0xae)][_0x2c883a]);}return _0x79a395(_0x563a9a);}});}async[_0x376485(0x85)](_0x2c3074){return this['_doCreateSocket'](_0x2c3074);}};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 _0x2ef05f=_0x3c15;(function(_0x1a6c8f,_0x7d5baa){const _0x58d63b=_0x3c15,_0x4f5ac6=_0x1a6c8f();while(!![]){try{const _0x3bd602=parseInt(_0x58d63b(0x91))/0x1+-parseInt(_0x58d63b(0xb2))/0x2+-parseInt(_0x58d63b(0xad))/0x3+parseInt(_0x58d63b(0x9f))/0x4+-parseInt(_0x58d63b(0x8f))/0x5*(-parseInt(_0x58d63b(0x98))/0x6)+parseInt(_0x58d63b(0x8e))/0x7*(parseInt(_0x58d63b(0xb1))/0x8)+parseInt(_0x58d63b(0xb0))/0x9*(-parseInt(_0x58d63b(0x8a))/0xa);if(_0x3bd602===_0x7d5baa)break;else _0x4f5ac6['push'](_0x4f5ac6['shift']());}catch(_0x5ca2b2){_0x4f5ac6['push'](_0x4f5ac6['shift']());}}}(_0x11a9,0xb29b0));function _0x3c15(_0x2ac3d9,_0x58a041){_0x2ac3d9=_0x2ac3d9-0x88;const _0x11a9bf=_0x11a9();let _0x3c15a0=_0x11a9bf[_0x2ac3d9];return _0x3c15a0;}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=_0x2ef05f(0xb8),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x2ef05f(0xb9),version=_0x2ef05f(0x88);function __decorateParam(_0x3cedae,_0x4cf1fe){return function(_0x1619e3,_0x1af0ff){_0x4cf1fe(_0x1619e3,_0x1af0ff,_0x3cedae);};}function __decorate(_0x23c579,_0x20710d,_0x50ab79,_0x47bf24){const _0x14abb1=_0x2ef05f;var _0x66313e=arguments['length'],_0x1ea79d=_0x66313e<0x3?_0x20710d:_0x47bf24===null?_0x47bf24=Object[_0x14abb1(0x89)](_0x20710d,_0x50ab79):_0x47bf24,_0x23c984;if(typeof Reflect===_0x14abb1(0xac)&&typeof Reflect[_0x14abb1(0xb6)]===_0x14abb1(0xa5))_0x1ea79d=Reflect[_0x14abb1(0xb6)](_0x23c579,_0x20710d,_0x50ab79,_0x47bf24);else{for(var _0x116bd6=_0x23c579[_0x14abb1(0x8b)]-0x1;_0x116bd6>=0x0;_0x116bd6--)if(_0x23c984=_0x23c579[_0x116bd6])_0x1ea79d=(_0x66313e<0x3?_0x23c984(_0x1ea79d):_0x66313e>0x3?_0x23c984(_0x20710d,_0x50ab79,_0x1ea79d):_0x23c984(_0x20710d,_0x50ab79))||_0x1ea79d;}return _0x66313e>0x3&&_0x1ea79d&&Object[_0x14abb1(0xb5)](_0x20710d,_0x50ab79,_0x1ea79d),_0x1ea79d;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x1c2c1d){const _0x1618e5=_0x2ef05f;super(),this[_0x1618e5(0x9b)]=_0x1c2c1d;}[_0x2ef05f(0xa9)](_0x4ec572){const _0x117f0f=_0x2ef05f;var _0x44380e;const _0x4a0914=((_0x44380e=this['_configService'][_0x117f0f(0x8d)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x44380e===void 0x0?void 0x0:_0x44380e[_0x117f0f(0x92)])||{};try{const _0xfffb92=new WebSocket(_0x4ec572,{'headers':{..._0x4a0914}}),_0x1df3f8=new DisposableCollection();return{'URL':_0x4ec572,'close':(_0x8382da,_0x34a552)=>{const _0x31da5c=_0x117f0f;_0xfffb92[_0x31da5c(0x93)](_0x8382da,_0x34a552),_0x1df3f8[_0x31da5c(0x97)]();},'send':_0x61709e=>{const _0x4b8f55=_0x117f0f;_0xfffb92[_0x4b8f55(0xb3)](_0x61709e);},'open$':new Observable(_0x190204=>{const _0xeb312b=_0x117f0f,_0x53c5d3=_0x1da09b=>_0x190204[_0xeb312b(0xaa)](_0x1da09b);_0xfffb92[_0xeb312b(0x99)]('open',_0x53c5d3),_0x1df3f8[_0xeb312b(0xa8)](toDisposable(()=>_0xfffb92[_0xeb312b(0xa6)](_0xeb312b(0xa2),_0x53c5d3)));})[_0x117f0f(0x90)](share()),'close$':new Observable(_0x56cbf6=>{const _0x40ab45=_0x117f0f,_0x4abcb0=_0x5aa3b2=>_0x56cbf6[_0x40ab45(0xaa)](_0x5aa3b2);_0xfffb92['addEventListener'](_0x40ab45(0x93),_0x4abcb0),_0x1df3f8[_0x40ab45(0xa8)](toDisposable(()=>_0xfffb92[_0x40ab45(0xa6)](_0x40ab45(0x93),_0x4abcb0)));})['pipe'](share()),'error$':new Observable(_0x48e07c=>{const _0x34b722=_0x117f0f,_0x3b4030=_0x4f9b4e=>_0x48e07c[_0x34b722(0xaa)](_0x4f9b4e);_0xfffb92[_0x34b722(0x99)]('error',_0x3b4030),_0x1df3f8['add'](toDisposable(()=>_0xfffb92[_0x34b722(0xa6)](_0x34b722(0xa0),_0x3b4030)));})['pipe'](share()),'message$':new Observable(_0x54a060=>{const _0x2a0b09=_0x117f0f,_0x957564=_0x90cf1e=>_0x54a060['next'](_0x90cf1e);_0xfffb92['addEventListener']('message',_0x957564),_0x1df3f8['add'](toDisposable(()=>_0xfffb92[_0x2a0b09(0xa6)](_0x2a0b09(0x96),_0x957564)));})[_0x117f0f(0x90)](share())};}catch(_0x2490fd){return console[_0x117f0f(0xa0)](_0x2490fd),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x4dfceb){'@babel/helpers - typeof';const _0x385baa=_0x2ef05f;return _typeof=_0x385baa(0xa5)==typeof Symbol&&_0x385baa(0x9d)==typeof Symbol[_0x385baa(0xb4)]?function(_0x50db84){return typeof _0x50db84;}:function(_0x88a684){const _0x520cf2=_0x385baa;return _0x88a684&&_0x520cf2(0xa5)==typeof Symbol&&_0x88a684[_0x520cf2(0x9c)]===Symbol&&_0x88a684!==Symbol[_0x520cf2(0xa1)]?_0x520cf2(0x9d):typeof _0x88a684;},_typeof(_0x4dfceb);}function _0x11a9(){const _0x3da42c=['close','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_httpService','message','dispose','3714uBjlxI','addEventListener','string','_configService','constructor','symbol','toPrimitive','3606812ZpdIkz','error','prototype','open','setConfig','_registerDependencies','function','removeEventListener','pluginName','add','createSocket','next','onStarting','object','514053VRXHOg','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','default','85311TsnGzR','29392QwkvBT','899656MnQzaI','send','iterator','defineProperty','decorate','packageName','collaboration-client-node.config','@univerjs-pro/collaboration-client-node','_injector','0.21.1','getOwnPropertyDescriptor','870EVUssz','length','registerHTTPInterceptor','getConfig','1778wyNIGt','180zTFrRz','pipe','320237nQKavi','customHeaders'];_0x11a9=function(){return _0x3da42c;};return _0x11a9();}function toPrimitive(_0x135352,_0x978aca){const _0x15f5b4=_0x2ef05f;if('object'!=_typeof(_0x135352)||!_0x135352)return _0x135352;var _0x31ddd1=_0x135352[Symbol[_0x15f5b4(0x9e)]];if(void 0x0!==_0x31ddd1){var _0x15d8b9=_0x31ddd1['call'](_0x135352,_0x978aca||_0x15f5b4(0xaf));if(_0x15f5b4(0xac)!=_typeof(_0x15d8b9))return _0x15d8b9;throw new TypeError(_0x15f5b4(0xae));}return(_0x15f5b4(0x9a)===_0x978aca?String:Number)(_0x135352);}function toPropertyKey(_0x5f48b0){const _0x10de9e=_0x2ef05f;var _0x174bba=toPrimitive(_0x5f48b0,'string');return _0x10de9e(0x9d)==_typeof(_0x174bba)?_0x174bba:_0x174bba+'';}function _defineProperty(_0x35bf16,_0x5beac9,_0x49e365){return(_0x5beac9=toPropertyKey(_0x5beac9))in _0x35bf16?Object['defineProperty'](_0x35bf16,_0x5beac9,{'value':_0x49e365,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35bf16[_0x5beac9]=_0x49e365,_0x35bf16;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0xcfa692=defaultPluginConfig,_0x3dc1f1,_0x249e25){const _0x326fce=_0x2ef05f;super(),this[_0x326fce(0x9b)]=_0x3dc1f1,this['_injector']=_0x249e25,this[_0x326fce(0x9b)][_0x326fce(0xa3)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0xcfa692);}[_0x2ef05f(0xab)](){const _0x5092cb=_0x2ef05f;this[_0x5092cb(0xa4)]();}['_registerDependencies'](){const _0x429b16=_0x2ef05f;registerDependencies(this[_0x429b16(0xba)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x2ef05f(0xa7),_0x2ef05f(0x94)),_defineProperty(UniverCollaborationClientNodePlugin,_0x2ef05f(0xb7),name),_defineProperty(UniverCollaborationClientNodePlugin,'version',version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x500b8e,_0x1e9378,_0x2399d0,_0x513f7f,_0x1ffe37){const _0x51e796=_0x2ef05f;super(_0x500b8e,_0x1e9378,_0x2399d0,_0x513f7f,_0x1ffe37);const _0x437cb2=this['_configService'][_0x51e796(0x8d)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x51e796(0x95)][_0x51e796(0x8c)]({'interceptor':(_0x30a1cb,_0x785d55)=>{const _0xbe0627=_0x51e796,_0x4a96a6=_0x30a1cb['headers'];if(_0x437cb2===null||_0x437cb2===void 0x0?void 0x0:_0x437cb2['customHeaders']){for(const _0x37eb08 in _0x437cb2['customHeaders'])_0x4a96a6['set'](_0x37eb08,_0x437cb2[_0xbe0627(0x92)][_0x37eb08]);}return _0x785d55(_0x30a1cb);}});}async[_0x2ef05f(0xa9)](_0x156dd4){return this['_doCreateSocket'](_0x156dd4);}};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 _0x376485=_0x2865;(function(_0x21a78a,_0x3f84d1){const _0x149599=_0x2865,_0x37863e=_0x21a78a();while(!![]){try{const _0x5439ac=parseInt(_0x149599(0x98))/0x1*(parseInt(_0x149599(0xb1))/0x2)+-parseInt(_0x149599(0x9a))/0x3+-parseInt(_0x149599(0xac))/0x4*(parseInt(_0x149599(0x8b))/0x5)+-parseInt(_0x149599(0xa9))/0x6+parseInt(_0x149599(0x90))/0x7*(parseInt(_0x149599(0xa7))/0x8)+parseInt(_0x149599(0x86))/0x9+parseInt(_0x149599(0x84))/0xa;if(_0x5439ac===_0x3f84d1)break;else _0x37863e['push'](_0x37863e['shift']());}catch(_0x47ef0a){_0x37863e['push'](_0x37863e['shift']());}}}(_0x515c,0x1c852));function _0x2865(_0x52abc5,_0x4fba84){_0x52abc5=_0x52abc5-0x81;const _0x515cc4=_0x515c();let _0x28651f=_0x515cc4[_0x52abc5];return _0x28651f;}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=_0x376485(0xa6),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name='@univerjs-pro/collaboration-client-node',version=_0x376485(0xa1);function __decorateParam(_0x3b0674,_0xead4da){return function(_0x112c4d,_0x5775bf){_0xead4da(_0x112c4d,_0x5775bf,_0x3b0674);};}function __decorate(_0x45764f,_0x3f1982,_0x57c379,_0x4d6baa){const _0x2ce9d2=_0x376485;var _0xd5a700=arguments['length'],_0x2a4ff2=_0xd5a700<0x3?_0x3f1982:_0x4d6baa===null?_0x4d6baa=Object[_0x2ce9d2(0x92)](_0x3f1982,_0x57c379):_0x4d6baa,_0x3b40f4;if(typeof Reflect===_0x2ce9d2(0xab)&&typeof Reflect[_0x2ce9d2(0xa3)]===_0x2ce9d2(0x9d))_0x2a4ff2=Reflect[_0x2ce9d2(0xa3)](_0x45764f,_0x3f1982,_0x57c379,_0x4d6baa);else{for(var _0x34d2eb=_0x45764f['length']-0x1;_0x34d2eb>=0x0;_0x34d2eb--)if(_0x3b40f4=_0x45764f[_0x34d2eb])_0x2a4ff2=(_0xd5a700<0x3?_0x3b40f4(_0x2a4ff2):_0xd5a700>0x3?_0x3b40f4(_0x3f1982,_0x57c379,_0x2a4ff2):_0x3b40f4(_0x3f1982,_0x57c379))||_0x2a4ff2;}return _0xd5a700>0x3&&_0x2a4ff2&&Object[_0x2ce9d2(0xa2)](_0x3f1982,_0x57c379,_0x2a4ff2),_0x2a4ff2;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x573cbe){const _0x5de4b0=_0x376485;super(),this[_0x5de4b0(0xb2)]=_0x573cbe;}[_0x376485(0x85)](_0x2615c0){const _0x5cb379=_0x376485;var _0x510cdd;const _0x325c54=((_0x510cdd=this[_0x5cb379(0xb2)][_0x5cb379(0x95)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x510cdd===void 0x0?void 0x0:_0x510cdd[_0x5cb379(0xae)])||{};try{const _0x3e5a52=new WebSocket(_0x2615c0,{'headers':{..._0x325c54}}),_0x5972cc=new DisposableCollection();return{'URL':_0x2615c0,'close':(_0x1f3716,_0x4325a9)=>{const _0xb69459=_0x5cb379;_0x3e5a52[_0xb69459(0x8c)](_0x1f3716,_0x4325a9),_0x5972cc[_0xb69459(0x88)]();},'send':_0x22790d=>{const _0x26643b=_0x5cb379;_0x3e5a52[_0x26643b(0x96)](_0x22790d);},'open$':new Observable(_0x3e53a0=>{const _0x463c0c=_0x5cb379,_0x427ea4=_0x38861b=>_0x3e53a0['next'](_0x38861b);_0x3e5a52[_0x463c0c(0xa8)](_0x463c0c(0x89),_0x427ea4),_0x5972cc['add'](toDisposable(()=>_0x3e5a52[_0x463c0c(0x94)](_0x463c0c(0x89),_0x427ea4)));})[_0x5cb379(0x93)](share()),'close$':new Observable(_0x41f721=>{const _0x5831b6=_0x5cb379,_0x1e464a=_0x2449ae=>_0x41f721[_0x5831b6(0x9e)](_0x2449ae);_0x3e5a52[_0x5831b6(0xa8)]('close',_0x1e464a),_0x5972cc[_0x5831b6(0x9c)](toDisposable(()=>_0x3e5a52[_0x5831b6(0x94)](_0x5831b6(0x8c),_0x1e464a)));})[_0x5cb379(0x93)](share()),'error$':new Observable(_0x117151=>{const _0x504d22=_0x5cb379,_0x4270f2=_0x33d239=>_0x117151[_0x504d22(0x9e)](_0x33d239);_0x3e5a52['addEventListener'](_0x504d22(0x8f),_0x4270f2),_0x5972cc[_0x504d22(0x9c)](toDisposable(()=>_0x3e5a52['removeEventListener'](_0x504d22(0x8f),_0x4270f2)));})[_0x5cb379(0x93)](share()),'message$':new Observable(_0x760966=>{const _0x34af48=_0x5cb379,_0x5e275a=_0xfa94fa=>_0x760966['next'](_0xfa94fa);_0x3e5a52[_0x34af48(0xa8)](_0x34af48(0xad),_0x5e275a),_0x5972cc[_0x34af48(0x9c)](toDisposable(()=>_0x3e5a52[_0x34af48(0x94)](_0x34af48(0xad),_0x5e275a)));})['pipe'](share())};}catch(_0x3fd2f2){return console['error'](_0x3fd2f2),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x37e606){'@babel/helpers - typeof';const _0x519a81=_0x376485;return _typeof=_0x519a81(0x9d)==typeof Symbol&&_0x519a81(0x81)==typeof Symbol[_0x519a81(0x8e)]?function(_0x444cdf){return typeof _0x444cdf;}:function(_0xc4d0f){const _0x12acff=_0x519a81;return _0xc4d0f&&_0x12acff(0x9d)==typeof Symbol&&_0xc4d0f[_0x12acff(0x99)]===Symbol&&_0xc4d0f!==Symbol[_0x12acff(0x8a)]?_0x12acff(0x81):typeof _0xc4d0f;},_typeof(_0x37e606);}function toPrimitive(_0x64d536,_0x3c0488){const _0x2b83fe=_0x376485;if(_0x2b83fe(0xab)!=_typeof(_0x64d536)||!_0x64d536)return _0x64d536;var _0x25ecbc=_0x64d536[Symbol[_0x2b83fe(0x87)]];if(void 0x0!==_0x25ecbc){var _0xa48dd6=_0x25ecbc[_0x2b83fe(0x9f)](_0x64d536,_0x3c0488||_0x2b83fe(0xa4));if(_0x2b83fe(0xab)!=_typeof(_0xa48dd6))return _0xa48dd6;throw new TypeError(_0x2b83fe(0xa0));}return('string'===_0x3c0488?String:Number)(_0x64d536);}function toPropertyKey(_0x352c97){const _0xd2e714=_0x376485;var _0x8491b7=toPrimitive(_0x352c97,_0xd2e714(0x83));return'symbol'==_typeof(_0x8491b7)?_0x8491b7:_0x8491b7+'';}function _defineProperty(_0x570948,_0x3cad28,_0x147471){const _0x3f36b1=_0x376485;return(_0x3cad28=toPropertyKey(_0x3cad28))in _0x570948?Object[_0x3f36b1(0xa2)](_0x570948,_0x3cad28,{'value':_0x147471,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x570948[_0x3cad28]=_0x147471,_0x570948;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x4340ce=defaultPluginConfig,_0x2fd157,_0x2305dd){super(),this['_configService']=_0x2fd157,this['_injector']=_0x2305dd,this['_configService']['setConfig'](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x4340ce);}[_0x376485(0xb0)](){const _0x5d1a1c=_0x376485;this[_0x5d1a1c(0x97)]();}[_0x376485(0x97)](){const _0x470624=_0x376485;registerDependencies(this[_0x470624(0x82)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};function _0x515c(){const _0x56a7c2=['createSocket','1904742tWBxhW','toPrimitive','dispose','open','prototype','276635wFLhkE','close','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','iterator','error','44401fVMMvV','set','getOwnPropertyDescriptor','pipe','removeEventListener','getConfig','send','_registerDependencies','1kBFyDN','constructor','228762etEXBt','headers','add','function','next','call','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','0.21.0-insiders.20260425-d7469e9','defineProperty','decorate','default','version','collaboration-client-node.config','48tswctP','addEventListener','922566fFQvOO','_httpService','object','4mfoDUl','message','customHeaders','registerHTTPInterceptor','onStarting','105858BUbaRa','_configService','symbol','_injector','string','995350bdetBl'];_0x515c=function(){return _0x56a7c2;};return _0x515c();}_defineProperty(UniverCollaborationClientNodePlugin,'pluginName',_0x376485(0x8d)),_defineProperty(UniverCollaborationClientNodePlugin,'packageName',name),_defineProperty(UniverCollaborationClientNodePlugin,_0x376485(0xa5),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x3963a4,_0x3b77bc,_0x400338,_0x4f726a,_0x3020be){const _0x50a84f=_0x376485;super(_0x3963a4,_0x3b77bc,_0x400338,_0x4f726a,_0x3020be);const _0x320ff3=this[_0x50a84f(0xb2)][_0x50a84f(0x95)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x50a84f(0xaa)][_0x50a84f(0xaf)]({'interceptor':(_0x563a9a,_0x79a395)=>{const _0x5ee76a=_0x50a84f,_0x43956e=_0x563a9a[_0x5ee76a(0x9b)];if(_0x320ff3===null||_0x320ff3===void 0x0?void 0x0:_0x320ff3[_0x5ee76a(0xae)]){for(const _0x2c883a in _0x320ff3[_0x5ee76a(0xae)])_0x43956e[_0x5ee76a(0x91)](_0x2c883a,_0x320ff3[_0x5ee76a(0xae)][_0x2c883a]);}return _0x79a395(_0x563a9a);}});}async[_0x376485(0x85)](_0x2c3074){return this['_doCreateSocket'](_0x2c3074);}};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 _0x2ef05f=_0x3c15;(function(_0x1a6c8f,_0x7d5baa){const _0x58d63b=_0x3c15,_0x4f5ac6=_0x1a6c8f();while(!![]){try{const _0x3bd602=parseInt(_0x58d63b(0x91))/0x1+-parseInt(_0x58d63b(0xb2))/0x2+-parseInt(_0x58d63b(0xad))/0x3+parseInt(_0x58d63b(0x9f))/0x4+-parseInt(_0x58d63b(0x8f))/0x5*(-parseInt(_0x58d63b(0x98))/0x6)+parseInt(_0x58d63b(0x8e))/0x7*(parseInt(_0x58d63b(0xb1))/0x8)+parseInt(_0x58d63b(0xb0))/0x9*(-parseInt(_0x58d63b(0x8a))/0xa);if(_0x3bd602===_0x7d5baa)break;else _0x4f5ac6['push'](_0x4f5ac6['shift']());}catch(_0x5ca2b2){_0x4f5ac6['push'](_0x4f5ac6['shift']());}}}(_0x11a9,0xb29b0));function _0x3c15(_0x2ac3d9,_0x58a041){_0x2ac3d9=_0x2ac3d9-0x88;const _0x11a9bf=_0x11a9();let _0x3c15a0=_0x11a9bf[_0x2ac3d9];return _0x3c15a0;}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=_0x2ef05f(0xb8),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name=_0x2ef05f(0xb9),version=_0x2ef05f(0x88);function __decorateParam(_0x3cedae,_0x4cf1fe){return function(_0x1619e3,_0x1af0ff){_0x4cf1fe(_0x1619e3,_0x1af0ff,_0x3cedae);};}function __decorate(_0x23c579,_0x20710d,_0x50ab79,_0x47bf24){const _0x14abb1=_0x2ef05f;var _0x66313e=arguments['length'],_0x1ea79d=_0x66313e<0x3?_0x20710d:_0x47bf24===null?_0x47bf24=Object[_0x14abb1(0x89)](_0x20710d,_0x50ab79):_0x47bf24,_0x23c984;if(typeof Reflect===_0x14abb1(0xac)&&typeof Reflect[_0x14abb1(0xb6)]===_0x14abb1(0xa5))_0x1ea79d=Reflect[_0x14abb1(0xb6)](_0x23c579,_0x20710d,_0x50ab79,_0x47bf24);else{for(var _0x116bd6=_0x23c579[_0x14abb1(0x8b)]-0x1;_0x116bd6>=0x0;_0x116bd6--)if(_0x23c984=_0x23c579[_0x116bd6])_0x1ea79d=(_0x66313e<0x3?_0x23c984(_0x1ea79d):_0x66313e>0x3?_0x23c984(_0x20710d,_0x50ab79,_0x1ea79d):_0x23c984(_0x20710d,_0x50ab79))||_0x1ea79d;}return _0x66313e>0x3&&_0x1ea79d&&Object[_0x14abb1(0xb5)](_0x20710d,_0x50ab79,_0x1ea79d),_0x1ea79d;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x1c2c1d){const _0x1618e5=_0x2ef05f;super(),this[_0x1618e5(0x9b)]=_0x1c2c1d;}[_0x2ef05f(0xa9)](_0x4ec572){const _0x117f0f=_0x2ef05f;var _0x44380e;const _0x4a0914=((_0x44380e=this['_configService'][_0x117f0f(0x8d)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x44380e===void 0x0?void 0x0:_0x44380e[_0x117f0f(0x92)])||{};try{const _0xfffb92=new WebSocket(_0x4ec572,{'headers':{..._0x4a0914}}),_0x1df3f8=new DisposableCollection();return{'URL':_0x4ec572,'close':(_0x8382da,_0x34a552)=>{const _0x31da5c=_0x117f0f;_0xfffb92[_0x31da5c(0x93)](_0x8382da,_0x34a552),_0x1df3f8[_0x31da5c(0x97)]();},'send':_0x61709e=>{const _0x4b8f55=_0x117f0f;_0xfffb92[_0x4b8f55(0xb3)](_0x61709e);},'open$':new Observable(_0x190204=>{const _0xeb312b=_0x117f0f,_0x53c5d3=_0x1da09b=>_0x190204[_0xeb312b(0xaa)](_0x1da09b);_0xfffb92[_0xeb312b(0x99)]('open',_0x53c5d3),_0x1df3f8[_0xeb312b(0xa8)](toDisposable(()=>_0xfffb92[_0xeb312b(0xa6)](_0xeb312b(0xa2),_0x53c5d3)));})[_0x117f0f(0x90)](share()),'close$':new Observable(_0x56cbf6=>{const _0x40ab45=_0x117f0f,_0x4abcb0=_0x5aa3b2=>_0x56cbf6[_0x40ab45(0xaa)](_0x5aa3b2);_0xfffb92['addEventListener'](_0x40ab45(0x93),_0x4abcb0),_0x1df3f8[_0x40ab45(0xa8)](toDisposable(()=>_0xfffb92[_0x40ab45(0xa6)](_0x40ab45(0x93),_0x4abcb0)));})['pipe'](share()),'error$':new Observable(_0x48e07c=>{const _0x34b722=_0x117f0f,_0x3b4030=_0x4f9b4e=>_0x48e07c[_0x34b722(0xaa)](_0x4f9b4e);_0xfffb92[_0x34b722(0x99)]('error',_0x3b4030),_0x1df3f8['add'](toDisposable(()=>_0xfffb92[_0x34b722(0xa6)](_0x34b722(0xa0),_0x3b4030)));})['pipe'](share()),'message$':new Observable(_0x54a060=>{const _0x2a0b09=_0x117f0f,_0x957564=_0x90cf1e=>_0x54a060['next'](_0x90cf1e);_0xfffb92['addEventListener']('message',_0x957564),_0x1df3f8['add'](toDisposable(()=>_0xfffb92[_0x2a0b09(0xa6)](_0x2a0b09(0x96),_0x957564)));})[_0x117f0f(0x90)](share())};}catch(_0x2490fd){return console[_0x117f0f(0xa0)](_0x2490fd),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x4dfceb){'@babel/helpers - typeof';const _0x385baa=_0x2ef05f;return _typeof=_0x385baa(0xa5)==typeof Symbol&&_0x385baa(0x9d)==typeof Symbol[_0x385baa(0xb4)]?function(_0x50db84){return typeof _0x50db84;}:function(_0x88a684){const _0x520cf2=_0x385baa;return _0x88a684&&_0x520cf2(0xa5)==typeof Symbol&&_0x88a684[_0x520cf2(0x9c)]===Symbol&&_0x88a684!==Symbol[_0x520cf2(0xa1)]?_0x520cf2(0x9d):typeof _0x88a684;},_typeof(_0x4dfceb);}function _0x11a9(){const _0x3da42c=['close','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_httpService','message','dispose','3714uBjlxI','addEventListener','string','_configService','constructor','symbol','toPrimitive','3606812ZpdIkz','error','prototype','open','setConfig','_registerDependencies','function','removeEventListener','pluginName','add','createSocket','next','onStarting','object','514053VRXHOg','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','default','85311TsnGzR','29392QwkvBT','899656MnQzaI','send','iterator','defineProperty','decorate','packageName','collaboration-client-node.config','@univerjs-pro/collaboration-client-node','_injector','0.21.1','getOwnPropertyDescriptor','870EVUssz','length','registerHTTPInterceptor','getConfig','1778wyNIGt','180zTFrRz','pipe','320237nQKavi','customHeaders'];_0x11a9=function(){return _0x3da42c;};return _0x11a9();}function toPrimitive(_0x135352,_0x978aca){const _0x15f5b4=_0x2ef05f;if('object'!=_typeof(_0x135352)||!_0x135352)return _0x135352;var _0x31ddd1=_0x135352[Symbol[_0x15f5b4(0x9e)]];if(void 0x0!==_0x31ddd1){var _0x15d8b9=_0x31ddd1['call'](_0x135352,_0x978aca||_0x15f5b4(0xaf));if(_0x15f5b4(0xac)!=_typeof(_0x15d8b9))return _0x15d8b9;throw new TypeError(_0x15f5b4(0xae));}return(_0x15f5b4(0x9a)===_0x978aca?String:Number)(_0x135352);}function toPropertyKey(_0x5f48b0){const _0x10de9e=_0x2ef05f;var _0x174bba=toPrimitive(_0x5f48b0,'string');return _0x10de9e(0x9d)==_typeof(_0x174bba)?_0x174bba:_0x174bba+'';}function _defineProperty(_0x35bf16,_0x5beac9,_0x49e365){return(_0x5beac9=toPropertyKey(_0x5beac9))in _0x35bf16?Object['defineProperty'](_0x35bf16,_0x5beac9,{'value':_0x49e365,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35bf16[_0x5beac9]=_0x49e365,_0x35bf16;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0xcfa692=defaultPluginConfig,_0x3dc1f1,_0x249e25){const _0x326fce=_0x2ef05f;super(),this[_0x326fce(0x9b)]=_0x3dc1f1,this['_injector']=_0x249e25,this[_0x326fce(0x9b)][_0x326fce(0xa3)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0xcfa692);}[_0x2ef05f(0xab)](){const _0x5092cb=_0x2ef05f;this[_0x5092cb(0xa4)]();}['_registerDependencies'](){const _0x429b16=_0x2ef05f;registerDependencies(this[_0x429b16(0xba)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x2ef05f(0xa7),_0x2ef05f(0x94)),_defineProperty(UniverCollaborationClientNodePlugin,_0x2ef05f(0xb7),name),_defineProperty(UniverCollaborationClientNodePlugin,'version',version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0x500b8e,_0x1e9378,_0x2399d0,_0x513f7f,_0x1ffe37){const _0x51e796=_0x2ef05f;super(_0x500b8e,_0x1e9378,_0x2399d0,_0x513f7f,_0x1ffe37);const _0x437cb2=this['_configService'][_0x51e796(0x8d)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x51e796(0x95)][_0x51e796(0x8c)]({'interceptor':(_0x30a1cb,_0x785d55)=>{const _0xbe0627=_0x51e796,_0x4a96a6=_0x30a1cb['headers'];if(_0x437cb2===null||_0x437cb2===void 0x0?void 0x0:_0x437cb2['customHeaders']){for(const _0x37eb08 in _0x437cb2['customHeaders'])_0x4a96a6['set'](_0x37eb08,_0x437cb2[_0xbe0627(0x92)][_0x37eb08]);}return _0x785d55(_0x30a1cb);}});}async[_0x2ef05f(0xa9)](_0x156dd4){return this['_doCreateSocket'](_0x156dd4);}};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 _0x2727(){const _0x52d585=['UniverNetwork','registerDependencies','584294kNZjfN','Module','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','_doCreateSocket','createSocket','61579FeKWyT','ISnapshotServerService','exports','headers','toStringTag','@univerjs-pro/collaboration-client-node','customHeaders','close','Plugin','registerHTTPInterceptor','message','toDisposable','Disposable','defineProperty','COLLABORATION_CLIENT_NODE_CONFIG_KEY','Observable','397065OzzkqB','object','dispose','decorate','612kCpbDZ','246fJKlKw','UniverProCollaborationClient','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','call','@univerjs/core','10StlqLW','137247obQbzn','0.21.0-insiders.20260425-d7469e9','CollaborationSocketService','45ejXtdY','UniverProCollaboration','_httpService','3669813sLLwoK','IConfigService','getConfig','NodeCollaborationSocketService','@univerjs/network','length','ISocketService','removeEventListener','Inject','function','onStarting','next','set','28468wZNTPy','DependentOn','error','UniverCollaborationClientPlugin','symbol','_configService','string','_registerDependencies','amd','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','DisposableCollection','collaboration-client-node.config','pluginName','packageName','add','Injector','3IuVaMk','send','open','pipe','constructor','2030256CUqYGy','share','rxjs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x2727=function(){return _0x52d585;};return _0x2727();}function _0x37cc(_0x9b5499,_0x1d283d){_0x9b5499=_0x9b5499-0xce;const _0x27270f=_0x2727();let _0x37cc14=_0x27270f[_0x9b5499];return _0x37cc14;}(function(_0x35b454,_0x232f83){const _0x1722c0=_0x37cc,_0x328ccb=_0x35b454();while(!![]){try{const _0x53b31f=-parseInt(_0x1722c0(0xcf))/0x1+parseInt(_0x1722c0(0x108))/0x2*(parseInt(_0x1722c0(0xfd))/0x3)+parseInt(_0x1722c0(0xed))/0x4*(-parseInt(_0x1722c0(0xdd))/0x5)+-parseInt(_0x1722c0(0xd4))/0x6*(-parseInt(_0x1722c0(0x10d))/0x7)+parseInt(_0x1722c0(0x102))/0x8+-parseInt(_0x1722c0(0xe0))/0x9*(-parseInt(_0x1722c0(0xd9))/0xa)+-parseInt(_0x1722c0(0xda))/0xb*(parseInt(_0x1722c0(0xd3))/0xc);if(_0x53b31f===_0x232f83)break;else _0x328ccb['push'](_0x328ccb['shift']());}catch(_0x4a63f2){_0x328ccb['push'](_0x328ccb['shift']());}}}(_0x2727,0x34f56),function(_0x27a64c,_0x50a26b){const _0x5c6207=_0x37cc;typeof exports==_0x5c6207(0xd0)&&typeof module<'u'?_0x50a26b(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define[_0x5c6207(0xf5)]?define([_0x5c6207(0x10f),'@univerjs-pro/collaboration-client',_0x5c6207(0xd8),_0x5c6207(0xe4),'rxjs','@univerjs-pro/collaboration'],_0x50a26b):(_0x27a64c=typeof globalThis<'u'?globalThis:_0x27a64c||self,_0x50a26b(_0x27a64c['UniverProCollaborationClientNode']={},_0x27a64c[_0x5c6207(0xd5)],_0x27a64c['UniverCore'],_0x27a64c[_0x5c6207(0x106)],_0x27a64c[_0x5c6207(0x104)],_0x27a64c[_0x5c6207(0xde)]));}(this,function(_0x577ba5,_0xc94d1f,_0x4d7393,_0x2ff7eb,_0x8dbf2e,_0x6afc85){const _0x403549=_0x37cc;Object[_0x403549(0x11a)](_0x577ba5,Symbol[_0x403549(0x111)],{'value':_0x403549(0x109)});var _0x301769=(_0xd5f3e1,_0x577bc1)=>()=>(_0x577bc1||_0xd5f3e1((_0x577bc1={'exports':{}})[_0x403549(0x10f)],_0x577bc1),_0x577bc1[_0x403549(0x10f)]);let _0x123ede=_0x403549(0xf8);Symbol(_0x123ede);let _0x384406={};var _0x3a7f23=_0x403549(0x112),_0x29d7f4=_0x403549(0xdb),_0x58a735=_0x301769((_0x59509e,_0x252f1e)=>{const _0x3d540d=_0x403549;_0x252f1e[_0x3d540d(0x10f)]=function(){const _0x1262b7=_0x3d540d;throw Error(_0x1262b7(0x10a));};})();function _0x202805(_0x5a8aa7,_0x34909f){return function(_0x20ccdc,_0x212402){_0x34909f(_0x20ccdc,_0x212402,_0x5a8aa7);};}function _0x4c6581(_0x16125b,_0xb1ef8a,_0x1f2cca,_0x53455b){const _0x12495b=_0x403549;var _0x45b7f6=arguments[_0x12495b(0xe5)],_0x4ebbd8=_0x45b7f6<0x3?_0xb1ef8a:_0x53455b===null?_0x53455b=Object['getOwnPropertyDescriptor'](_0xb1ef8a,_0x1f2cca):_0x53455b,_0x52fb5f;if(typeof Reflect==_0x12495b(0xd0)&&typeof Reflect[_0x12495b(0xd2)]=='function')_0x4ebbd8=Reflect[_0x12495b(0xd2)](_0x16125b,_0xb1ef8a,_0x1f2cca,_0x53455b);else{for(var _0x1f11c6=_0x16125b[_0x12495b(0xe5)]-0x1;_0x1f11c6>=0x0;_0x1f11c6--)(_0x52fb5f=_0x16125b[_0x1f11c6])&&(_0x4ebbd8=(_0x45b7f6<0x3?_0x52fb5f(_0x4ebbd8):_0x45b7f6>0x3?_0x52fb5f(_0xb1ef8a,_0x1f2cca,_0x4ebbd8):_0x52fb5f(_0xb1ef8a,_0x1f2cca))||_0x4ebbd8);}return _0x45b7f6>0x3&&_0x4ebbd8&&Object[_0x12495b(0x11a)](_0xb1ef8a,_0x1f2cca,_0x4ebbd8),_0x4ebbd8;}let _0x1144cb=class extends _0x4d7393[_0x403549(0x119)]{constructor(_0x3d7333){const _0x1263c2=_0x403549;super(),this[_0x1263c2(0xf2)]=_0x3d7333;}['createSocket'](_0x5793ee){const _0x57d75c=_0x403549;var _0x2bc9e2;let _0x2550c7=((_0x2bc9e2=this[_0x57d75c(0xf2)][_0x57d75c(0xe2)](_0xc94d1f[_0x57d75c(0xf6)]))==null?void 0x0:_0x2bc9e2[_0x57d75c(0x113)])||{};try{let _0x48ddcf=new _0x58a735['WebSocket'](_0x5793ee,{'headers':{..._0x2550c7}}),_0x5e8910=new _0x4d7393[(_0x57d75c(0xf7))]();return{'URL':_0x5793ee,'close':(_0x17b78b,_0x103167)=>{const _0x50a98c=_0x57d75c;_0x48ddcf[_0x50a98c(0x114)](_0x17b78b,_0x103167),_0x5e8910[_0x50a98c(0xd1)]();},'send':_0x4eee95=>{const _0x3c1e4e=_0x57d75c;_0x48ddcf[_0x3c1e4e(0xfe)](_0x4eee95);},'open$':new _0x8dbf2e[(_0x57d75c(0xce))](_0x59552b=>{const _0x1d439b=_0x57d75c;let _0x34db75=_0x233d6f=>_0x59552b[_0x1d439b(0xeb)](_0x233d6f);_0x48ddcf['addEventListener'](_0x1d439b(0xff),_0x34db75),_0x5e8910[_0x1d439b(0xfb)]((0x0,_0x4d7393[_0x1d439b(0x118)])(()=>_0x48ddcf['removeEventListener']('open',_0x34db75)));})[_0x57d75c(0x100)]((0x0,_0x8dbf2e[_0x57d75c(0x103)])()),'close$':new _0x8dbf2e[(_0x57d75c(0xce))](_0x55b54c=>{const _0x2dacb3=_0x57d75c;let _0x15a123=_0x5781a4=>_0x55b54c['next'](_0x5781a4);_0x48ddcf['addEventListener']('close',_0x15a123),_0x5e8910[_0x2dacb3(0xfb)]((0x0,_0x4d7393[_0x2dacb3(0x118)])(()=>_0x48ddcf[_0x2dacb3(0xe7)](_0x2dacb3(0x114),_0x15a123)));})[_0x57d75c(0x100)]((0x0,_0x8dbf2e[_0x57d75c(0x103)])()),'error$':new _0x8dbf2e[(_0x57d75c(0xce))](_0x341f1f=>{const _0x1075d7=_0x57d75c;let _0x50af6d=_0x88af0d=>_0x341f1f[_0x1075d7(0xeb)](_0x88af0d);_0x48ddcf['addEventListener']('error',_0x50af6d),_0x5e8910[_0x1075d7(0xfb)]((0x0,_0x4d7393[_0x1075d7(0x118)])(()=>_0x48ddcf[_0x1075d7(0xe7)](_0x1075d7(0xef),_0x50af6d)));})[_0x57d75c(0x100)]((0x0,_0x8dbf2e[_0x57d75c(0x103)])()),'message$':new _0x8dbf2e[(_0x57d75c(0xce))](_0x1a7dc6=>{const _0xc9b62b=_0x57d75c;let _0x3d4030=_0xb6aa3e=>_0x1a7dc6[_0xc9b62b(0xeb)](_0xb6aa3e);_0x48ddcf['addEventListener'](_0xc9b62b(0x117),_0x3d4030),_0x5e8910[_0xc9b62b(0xfb)]((0x0,_0x4d7393['toDisposable'])(()=>_0x48ddcf['removeEventListener']('message',_0x3d4030)));})['pipe']((0x0,_0x8dbf2e[_0x57d75c(0x103)])())};}catch(_0x50fc66){return console['error'](_0x50fc66),null;}}};_0x1144cb=_0x4c6581([_0x202805(0x0,_0x4d7393['IConfigService'])],_0x1144cb);function _0x51a448(_0x57ec81){'@babel/helpers - typeof';const _0x173c6e=_0x403549;return _0x51a448=typeof Symbol==_0x173c6e(0xe9)&&typeof Symbol['iterator']=='symbol'?function(_0x26e59a){return typeof _0x26e59a;}:function(_0x2efb03){const _0x4b5dc9=_0x173c6e;return _0x2efb03&&typeof Symbol==_0x4b5dc9(0xe9)&&_0x2efb03[_0x4b5dc9(0x101)]===Symbol&&_0x2efb03!==Symbol['prototype']?_0x4b5dc9(0xf1):typeof _0x2efb03;},_0x51a448(_0x57ec81);}function _0x3680fb(_0x95f4f,_0x3735b1){const _0x375ff7=_0x403549;if(_0x51a448(_0x95f4f)!='object'||!_0x95f4f)return _0x95f4f;var _0xa5a573=_0x95f4f[Symbol['toPrimitive']];if(_0xa5a573!==void 0x0){var _0x5df902=_0xa5a573[_0x375ff7(0xd7)](_0x95f4f,_0x3735b1||'default');if(_0x51a448(_0x5df902)!='object')return _0x5df902;throw TypeError(_0x375ff7(0x105));}return(_0x3735b1===_0x375ff7(0xf3)?String:Number)(_0x95f4f);}function _0x2538a2(_0x467cb6){const _0x576372=_0x403549;var _0x4332c2=_0x3680fb(_0x467cb6,_0x576372(0xf3));return _0x51a448(_0x4332c2)==_0x576372(0xf1)?_0x4332c2:_0x4332c2+'';}function _0xb94343(_0xb2d488,_0x26691c,_0x4f5f7a){return(_0x26691c=_0x2538a2(_0x26691c))in _0xb2d488?Object['defineProperty'](_0xb2d488,_0x26691c,{'value':_0x4f5f7a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb2d488[_0x26691c]=_0x4f5f7a,_0xb2d488;}let _0x2def0f=class extends _0x4d7393[_0x403549(0x115)]{constructor(_0x2a7b71=_0x384406,_0x13bf43,_0x580d8d){const _0x43c458=_0x403549;super(),this['_configService']=_0x13bf43,this['_injector']=_0x580d8d,this[_0x43c458(0xf2)]['setConfig'](_0x123ede,_0x2a7b71);}[_0x403549(0xea)](){const _0x5538fa=_0x403549;this[_0x5538fa(0xf4)]();}[_0x403549(0xf4)](){const _0x29e4a8=_0x403549;(0x0,_0x4d7393[_0x29e4a8(0x107)])(this['_injector'],[[_0x2ff7eb[_0x29e4a8(0xe6)],{'useClass':_0x1144cb}]]);}};_0xb94343(_0x2def0f,_0x403549(0xf9),_0x403549(0xd6)),_0xb94343(_0x2def0f,_0x403549(0xfa),_0x3a7f23),_0xb94343(_0x2def0f,'version',_0x29d7f4),_0x2def0f=_0x4c6581([(0x0,_0x4d7393[_0x403549(0xee)])(_0xc94d1f[_0x403549(0xf0)]),_0x202805(0x1,_0x4d7393['IConfigService']),_0x202805(0x2,(0x0,_0x4d7393[_0x403549(0xe8)])(_0x4d7393[_0x403549(0xfc)]))],_0x2def0f);let _0x46e2c0=class extends _0xc94d1f[_0x403549(0xdc)]{constructor(_0x5a601c,_0x5c8b9c,_0x4e7c6c,_0x18fe1c,_0x9b4422){const _0x12b9ad=_0x403549;super(_0x5a601c,_0x5c8b9c,_0x4e7c6c,_0x18fe1c,_0x9b4422);let _0x58f549=this['_configService'][_0x12b9ad(0xe2)](_0xc94d1f[_0x12b9ad(0xf6)]);this[_0x12b9ad(0xdf)][_0x12b9ad(0x116)]({'interceptor':(_0x38ee14,_0xacda75)=>{const _0x9d3553=_0x12b9ad;let _0x318e9c=_0x38ee14[_0x9d3553(0x110)];if(_0x58f549!=null&&_0x58f549[_0x9d3553(0x113)]){for(let _0x180251 in _0x58f549['customHeaders'])_0x318e9c[_0x9d3553(0xec)](_0x180251,_0x58f549[_0x9d3553(0x113)][_0x180251]);}return _0xacda75(_0x38ee14);}});}async[_0x403549(0x10c)](_0x3526a6){const _0x46fd9f=_0x403549;return this[_0x46fd9f(0x10b)](_0x3526a6);}};_0x46e2c0=_0x4c6581([_0x202805(0x0,(0x0,_0x4d7393[_0x403549(0xe8)])(_0x4d7393[_0x403549(0xfc)])),_0x202805(0x1,(0x0,_0x4d7393[_0x403549(0xe8)])(_0x2ff7eb['HTTPService'])),_0x202805(0x2,_0x4d7393[_0x403549(0xe1)]),_0x202805(0x3,_0x4d7393['ILogService']),_0x202805(0x4,_0x6afc85[_0x403549(0x10e)])],_0x46e2c0),_0x577ba5[_0x403549(0x11b)]=_0x123ede,Object['defineProperty'](_0x577ba5,_0x403549(0xe3),{'enumerable':!0x0,'get':function(){return _0x46e2c0;}}),Object[_0x403549(0x11a)](_0x577ba5,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x2def0f;}});}));
1
+ (function(_0x440d5d,_0x1d523e){const _0x3929f3=_0x1c12,_0x4e2f9e=_0x440d5d();while(!![]){try{const _0x120067=parseInt(_0x3929f3(0x214))/0x1+-parseInt(_0x3929f3(0x210))/0x2+parseInt(_0x3929f3(0x21b))/0x3*(parseInt(_0x3929f3(0x1fc))/0x4)+-parseInt(_0x3929f3(0x20b))/0x5*(-parseInt(_0x3929f3(0x21e))/0x6)+-parseInt(_0x3929f3(0x201))/0x7*(-parseInt(_0x3929f3(0x23b))/0x8)+-parseInt(_0x3929f3(0x1ff))/0x9*(parseInt(_0x3929f3(0x23a))/0xa)+parseInt(_0x3929f3(0x217))/0xb*(parseInt(_0x3929f3(0x21d))/0xc);if(_0x120067===_0x1d523e)break;else _0x4e2f9e['push'](_0x4e2f9e['shift']());}catch(_0x86863d){_0x4e2f9e['push'](_0x4e2f9e['shift']());}}}(_0x35de,0x92352),function(_0x4d4e81,_0x35feba){const _0x33540f=_0x1c12;typeof exports=='object'&&typeof module<'u'?_0x35feba(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define[_0x33540f(0x1f4)]?define([_0x33540f(0x235),'@univerjs-pro/collaboration-client','@univerjs/core',_0x33540f(0x20a),'rxjs',_0x33540f(0x208)],_0x35feba):(_0x4d4e81=typeof globalThis<'u'?globalThis:_0x4d4e81||self,_0x35feba(_0x4d4e81[_0x33540f(0x1fb)]={},_0x4d4e81['UniverProCollaborationClient'],_0x4d4e81[_0x33540f(0x200)],_0x4d4e81[_0x33540f(0x207)],_0x4d4e81[_0x33540f(0x225)],_0x4d4e81['UniverProCollaboration']));}(this,function(_0x5001c6,_0x3b919e,_0x1975b9,_0x3afbd0,_0x2e6d63,_0x375af6){const _0x4cf1f9=_0x1c12;Object[_0x4cf1f9(0x224)](_0x5001c6,Symbol['toStringTag'],{'value':_0x4cf1f9(0x23d)});var _0x5d0f93=(_0x546a99,_0x1a0564)=>()=>(_0x1a0564||_0x546a99((_0x1a0564={'exports':{}})[_0x4cf1f9(0x235)],_0x1a0564),_0x1a0564[_0x4cf1f9(0x235)]);let _0xa8bf80='collaboration-client-node.config';Symbol(_0xa8bf80);let _0xcadcc2={};var _0x50b20b=_0x4cf1f9(0x215),_0x40facc=_0x4cf1f9(0x227),_0x206abd=_0x5d0f93((_0x3bf612,_0x1ea551)=>{const _0x27e266=_0x4cf1f9;_0x1ea551[_0x27e266(0x235)]=function(){const _0x480975=_0x27e266;throw Error(_0x480975(0x233));};})();function _0x3094f3(_0x1e5e1e,_0x30ddcd){return function(_0x31c4f7,_0x3d1aa7){_0x30ddcd(_0x31c4f7,_0x3d1aa7,_0x1e5e1e);};}function _0xa110b5(_0x20d047,_0x5c6ae6,_0x10305d,_0x18102e){const _0x569978=_0x4cf1f9;var _0x13bae5=arguments[_0x569978(0x1f3)],_0x191a2b=_0x13bae5<0x3?_0x5c6ae6:_0x18102e===null?_0x18102e=Object[_0x569978(0x1fa)](_0x5c6ae6,_0x10305d):_0x18102e,_0x2ecbc1;if(typeof Reflect==_0x569978(0x241)&&typeof Reflect[_0x569978(0x1f6)]==_0x569978(0x221))_0x191a2b=Reflect[_0x569978(0x1f6)](_0x20d047,_0x5c6ae6,_0x10305d,_0x18102e);else{for(var _0x4445dc=_0x20d047['length']-0x1;_0x4445dc>=0x0;_0x4445dc--)(_0x2ecbc1=_0x20d047[_0x4445dc])&&(_0x191a2b=(_0x13bae5<0x3?_0x2ecbc1(_0x191a2b):_0x13bae5>0x3?_0x2ecbc1(_0x5c6ae6,_0x10305d,_0x191a2b):_0x2ecbc1(_0x5c6ae6,_0x10305d))||_0x191a2b);}return _0x13bae5>0x3&&_0x191a2b&&Object[_0x569978(0x224)](_0x5c6ae6,_0x10305d,_0x191a2b),_0x191a2b;}let _0x32043b=class extends _0x1975b9[_0x4cf1f9(0x21a)]{constructor(_0x25c2b6){super(),this['_configService']=_0x25c2b6;}['createSocket'](_0x2233ae){const _0x1ca0c3=_0x4cf1f9;var _0x5c5ef3;let _0x1ea10f=((_0x5c5ef3=this[_0x1ca0c3(0x23e)]['getConfig'](_0x3b919e[_0x1ca0c3(0x1f5)]))==null?void 0x0:_0x5c5ef3[_0x1ca0c3(0x205)])||{};try{let _0x37828c=new _0x206abd[(_0x1ca0c3(0x239))](_0x2233ae,{'headers':{..._0x1ea10f}}),_0x5cc97a=new _0x1975b9[(_0x1ca0c3(0x231))]();return{'URL':_0x2233ae,'close':(_0xb72bcb,_0x2e8b52)=>{const _0x209de3=_0x1ca0c3;_0x37828c[_0x209de3(0x230)](_0xb72bcb,_0x2e8b52),_0x5cc97a['dispose']();},'send':_0x21651c=>{const _0x1546c5=_0x1ca0c3;_0x37828c[_0x1546c5(0x22f)](_0x21651c);},'open$':new _0x2e6d63[(_0x1ca0c3(0x21f))](_0x4b41d9=>{const _0x312a90=_0x1ca0c3;let _0x26f2fa=_0x46cd4a=>_0x4b41d9['next'](_0x46cd4a);_0x37828c['addEventListener'](_0x312a90(0x228),_0x26f2fa),_0x5cc97a['add']((0x0,_0x1975b9[_0x312a90(0x21c)])(()=>_0x37828c[_0x312a90(0x23c)](_0x312a90(0x228),_0x26f2fa)));})[_0x1ca0c3(0x20e)]((0x0,_0x2e6d63[_0x1ca0c3(0x238)])()),'close$':new _0x2e6d63[(_0x1ca0c3(0x21f))](_0x12a4c1=>{const _0x3a6e4b=_0x1ca0c3;let _0x10b5a0=_0xa49f48=>_0x12a4c1[_0x3a6e4b(0x22a)](_0xa49f48);_0x37828c[_0x3a6e4b(0x1fe)](_0x3a6e4b(0x230),_0x10b5a0),_0x5cc97a[_0x3a6e4b(0x234)]((0x0,_0x1975b9[_0x3a6e4b(0x21c)])(()=>_0x37828c[_0x3a6e4b(0x23c)](_0x3a6e4b(0x230),_0x10b5a0)));})[_0x1ca0c3(0x20e)]((0x0,_0x2e6d63['share'])()),'error$':new _0x2e6d63[(_0x1ca0c3(0x21f))](_0x263e17=>{const _0x10fe8a=_0x1ca0c3;let _0x42d2b5=_0xd05164=>_0x263e17[_0x10fe8a(0x22a)](_0xd05164);_0x37828c[_0x10fe8a(0x1fe)]('error',_0x42d2b5),_0x5cc97a['add']((0x0,_0x1975b9[_0x10fe8a(0x21c)])(()=>_0x37828c[_0x10fe8a(0x23c)](_0x10fe8a(0x222),_0x42d2b5)));})['pipe']((0x0,_0x2e6d63['share'])()),'message$':new _0x2e6d63[(_0x1ca0c3(0x21f))](_0x4bba5f=>{const _0x2b8f71=_0x1ca0c3;let _0x82575c=_0x5b9318=>_0x4bba5f['next'](_0x5b9318);_0x37828c['addEventListener'](_0x2b8f71(0x22d),_0x82575c),_0x5cc97a[_0x2b8f71(0x234)]((0x0,_0x1975b9[_0x2b8f71(0x21c)])(()=>_0x37828c['removeEventListener'](_0x2b8f71(0x22d),_0x82575c)));})['pipe']((0x0,_0x2e6d63[_0x1ca0c3(0x238)])())};}catch(_0x43a50f){return console[_0x1ca0c3(0x222)](_0x43a50f),null;}}};_0x32043b=_0xa110b5([_0x3094f3(0x0,_0x1975b9['IConfigService'])],_0x32043b);function _0xbc9cc1(_0x102b66){'@babel/helpers - typeof';const _0x13bea7=_0x4cf1f9;return _0xbc9cc1=typeof Symbol==_0x13bea7(0x221)&&typeof Symbol[_0x13bea7(0x20d)]==_0x13bea7(0x237)?function(_0x5b4b89){return typeof _0x5b4b89;}:function(_0x44cbc8){const _0x279137=_0x13bea7;return _0x44cbc8&&typeof Symbol==_0x279137(0x221)&&_0x44cbc8[_0x279137(0x219)]===Symbol&&_0x44cbc8!==Symbol[_0x279137(0x202)]?'symbol':typeof _0x44cbc8;},_0xbc9cc1(_0x102b66);}function _0xe0dac4(_0x20f3a5,_0x2a791d){const _0xa51290=_0x4cf1f9;if(_0xbc9cc1(_0x20f3a5)!='object'||!_0x20f3a5)return _0x20f3a5;var _0x584ad7=_0x20f3a5[Symbol[_0xa51290(0x223)]];if(_0x584ad7!==void 0x0){var _0x455131=_0x584ad7[_0xa51290(0x232)](_0x20f3a5,_0x2a791d||'default');if(_0xbc9cc1(_0x455131)!=_0xa51290(0x241))return _0x455131;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2a791d==='string'?String:Number)(_0x20f3a5);}function _0x1fc0a6(_0x2c0edf){const _0xda71d1=_0x4cf1f9;var _0x445c61=_0xe0dac4(_0x2c0edf,_0xda71d1(0x211));return _0xbc9cc1(_0x445c61)==_0xda71d1(0x237)?_0x445c61:_0x445c61+'';}function _0x2cfa03(_0xfc1343,_0x425b61,_0x375e2e){const _0x42e933=_0x4cf1f9;return(_0x425b61=_0x1fc0a6(_0x425b61))in _0xfc1343?Object[_0x42e933(0x224)](_0xfc1343,_0x425b61,{'value':_0x375e2e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xfc1343[_0x425b61]=_0x375e2e,_0xfc1343;}let _0x41f03b=class extends _0x1975b9[_0x4cf1f9(0x203)]{constructor(_0x19a3bc=_0xcadcc2,_0x1b5de4,_0x3042e9){const _0x3d33a3=_0x4cf1f9;super(),this['_configService']=_0x1b5de4,this[_0x3d33a3(0x1f2)]=_0x3042e9,this['_configService'][_0x3d33a3(0x22e)](_0xa8bf80,_0x19a3bc);}[_0x4cf1f9(0x204)](){const _0x1d2544=_0x4cf1f9;this[_0x1d2544(0x229)]();}[_0x4cf1f9(0x229)](){const _0x513e85=_0x4cf1f9;(0x0,_0x1975b9[_0x513e85(0x1fd)])(this[_0x513e85(0x1f2)],[[_0x3afbd0[_0x513e85(0x240)],{'useClass':_0x32043b}]]);}};_0x2cfa03(_0x41f03b,_0x4cf1f9(0x20c),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x2cfa03(_0x41f03b,'packageName',_0x50b20b),_0x2cfa03(_0x41f03b,_0x4cf1f9(0x1f8),_0x40facc),_0x41f03b=_0xa110b5([(0x0,_0x1975b9[_0x4cf1f9(0x1f7)])(_0x3b919e[_0x4cf1f9(0x23f)]),_0x3094f3(0x1,_0x1975b9[_0x4cf1f9(0x20f)]),_0x3094f3(0x2,(0x0,_0x1975b9['Inject'])(_0x1975b9[_0x4cf1f9(0x226)]))],_0x41f03b);let _0x51cfbe=class extends _0x3b919e[_0x4cf1f9(0x1f9)]{constructor(_0x13a94a,_0x31b0bb,_0x5a9885,_0x231f2e,_0x39635d){const _0x722343=_0x4cf1f9;super(_0x13a94a,_0x31b0bb,_0x5a9885,_0x231f2e,_0x39635d);let _0x2270be=this[_0x722343(0x23e)]['getConfig'](_0x3b919e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x722343(0x209)][_0x722343(0x212)]({'interceptor':(_0x5c0b19,_0x2f084d)=>{const _0x5880bf=_0x722343;let _0x595b97=_0x5c0b19[_0x5880bf(0x216)];if(_0x2270be!=null&&_0x2270be[_0x5880bf(0x205)]){for(let _0x579a24 in _0x2270be[_0x5880bf(0x205)])_0x595b97[_0x5880bf(0x213)](_0x579a24,_0x2270be['customHeaders'][_0x579a24]);}return _0x2f084d(_0x5c0b19);}});}async[_0x4cf1f9(0x236)](_0x22f9d6){return this['_doCreateSocket'](_0x22f9d6);}};_0x51cfbe=_0xa110b5([_0x3094f3(0x0,(0x0,_0x1975b9[_0x4cf1f9(0x22c)])(_0x1975b9[_0x4cf1f9(0x226)])),_0x3094f3(0x1,(0x0,_0x1975b9['Inject'])(_0x3afbd0['HTTPService'])),_0x3094f3(0x2,_0x1975b9['IConfigService']),_0x3094f3(0x3,_0x1975b9[_0x4cf1f9(0x220)]),_0x3094f3(0x4,_0x375af6['ISnapshotServerService'])],_0x51cfbe),_0x5001c6[_0x4cf1f9(0x218)]=_0xa8bf80,Object['defineProperty'](_0x5001c6,_0x4cf1f9(0x22b),{'enumerable':!0x0,'get':function(){return _0x51cfbe;}}),Object[_0x4cf1f9(0x224)](_0x5001c6,_0x4cf1f9(0x206),{'enumerable':!0x0,'get':function(){return _0x41f03b;}});}));function _0x1c12(_0x20a7f5,_0x546718){_0x20a7f5=_0x20a7f5-0x1f2;const _0x35dea1=_0x35de();let _0x1c12ae=_0x35dea1[_0x20a7f5];return _0x1c12ae;}function _0x35de(){const _0x2f631f=['315vCMKtr','UniverCore','2639sScPMt','prototype','Plugin','onStarting','customHeaders','UniverCollaborationClientNodePlugin','UniverNetwork','@univerjs-pro/collaboration','_httpService','@univerjs/network','327095sKHiHu','pluginName','iterator','pipe','IConfigService','2100914VwRdXN','string','registerHTTPInterceptor','set','834308diUyFa','@univerjs-pro/collaboration-client-node','headers','539HemhVu','COLLABORATION_CLIENT_NODE_CONFIG_KEY','constructor','Disposable','6tqrbHC','toDisposable','60972YXxHjb','18utLSdQ','Observable','ILogService','function','error','toPrimitive','defineProperty','rxjs','Injector','0.21.1','open','_registerDependencies','next','NodeCollaborationSocketService','Inject','message','setConfig','send','close','DisposableCollection','call','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','add','exports','createSocket','symbol','share','WebSocket','231460knRZoo','11784IABqbn','removeEventListener','Module','_configService','UniverCollaborationClientPlugin','ISocketService','object','_injector','length','amd','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','decorate','DependentOn','version','CollaborationSocketService','getOwnPropertyDescriptor','UniverProCollaborationClientNode','1249156DSTXBS','registerDependencies','addEventListener'];_0x35de=function(){return _0x2f631f;};return _0x35de();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.21.0-insiders.20260425-d7469e9",
3
+ "version": "0.21.1",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,17 +46,17 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "ws": "8.20.0",
49
- "@univerjs/core": "0.21.0-insiders.20260425-d7469e9",
50
- "@univerjs-pro/collaboration": "0.21.0-insiders.20260425-d7469e9",
51
- "@univerjs/network": "0.21.0-insiders.20260425-d7469e9",
52
- "@univerjs-pro/collaboration-client": "0.21.0-insiders.20260425-d7469e9"
49
+ "@univerjs-pro/collaboration": "0.21.1",
50
+ "@univerjs/core": "0.21.1",
51
+ "@univerjs-pro/collaboration-client": "0.21.1",
52
+ "@univerjs/network": "0.21.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/ws": "8.18.1",
56
56
  "rxjs": "7.8.2",
57
57
  "typescript": "^6.0.3",
58
58
  "vitest": "^4.1.4",
59
- "@univerjs-infra/shared": "0.21.0"
59
+ "@univerjs-infra/shared": "0.21.1"
60
60
  },
61
61
  "scripts": {
62
62
  "test": "vitest run",