@univerjs-pro/collaboration-client-node 0.20.0 → 0.20.1-insiders.20260418-3a69981

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 _0x40ad66=_0x1c69;(function(_0x533617,_0x3d8847){const _0x11a8af=_0x1c69,_0x20a09d=_0x533617();while(!![]){try{const _0xe6db8d=parseInt(_0x11a8af(0x167))/0x1+-parseInt(_0x11a8af(0x177))/0x2+parseInt(_0x11a8af(0x17a))/0x3+parseInt(_0x11a8af(0x172))/0x4+-parseInt(_0x11a8af(0x173))/0x5*(-parseInt(_0x11a8af(0x162))/0x6)+parseInt(_0x11a8af(0x190))/0x7*(-parseInt(_0x11a8af(0x179))/0x8)+-parseInt(_0x11a8af(0x17f))/0x9;if(_0xe6db8d===_0x3d8847)break;else _0x20a09d['push'](_0x20a09d['shift']());}catch(_0x3518cd){_0x20a09d['push'](_0x20a09d['shift']());}}}(_0x5598,0xa153a),Object[_0x40ad66(0x174)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require(`@univerjs-pro/collaboration-client`),t=require(`@univerjs/core`),n=require(`@univerjs/network`),r=require(`rxjs`),i=require(`ws`),a=require(`@univerjs-pro/collaboration`);const o=_0x40ad66(0x18b);Symbol(o);const s={};var c=_0x40ad66(0x193),l=_0x40ad66(0x17c);function u(_0x5c43b2,_0xcd0567){return function(_0x468132,_0x57a197){_0xcd0567(_0x468132,_0x57a197,_0x5c43b2);};}function d(_0x254364,_0x1e1949,_0x504861,_0x1bdb62){const _0x563924=_0x40ad66;var _0x5b0c3e=arguments[_0x563924(0x18a)],_0x160013=_0x5b0c3e<0x3?_0x1e1949:_0x1bdb62===null?_0x1bdb62=Object[_0x563924(0x180)](_0x1e1949,_0x504861):_0x1bdb62,_0x41e3af;if(typeof Reflect==_0x563924(0x185)&&typeof Reflect['decorate']==_0x563924(0x19b))_0x160013=Reflect[_0x563924(0x189)](_0x254364,_0x1e1949,_0x504861,_0x1bdb62);else{for(var _0x2b7003=_0x254364['length']-0x1;_0x2b7003>=0x0;_0x2b7003--)(_0x41e3af=_0x254364[_0x2b7003])&&(_0x160013=(_0x5b0c3e<0x3?_0x41e3af(_0x160013):_0x5b0c3e>0x3?_0x41e3af(_0x1e1949,_0x504861,_0x160013):_0x41e3af(_0x1e1949,_0x504861))||_0x160013);}return _0x5b0c3e>0x3&&_0x160013&&Object[_0x563924(0x174)](_0x1e1949,_0x504861,_0x160013),_0x160013;}let f=class extends t[_0x40ad66(0x16e)]{constructor(_0x187915){const _0x2f21da=_0x40ad66;super(),this[_0x2f21da(0x182)]=_0x187915;}['createSocket'](_0x51d00f){const _0x302d51=_0x40ad66;var _0x5c5367;let _0x1bcf62=((_0x5c5367=this[_0x302d51(0x182)][_0x302d51(0x181)](e[_0x302d51(0x188)]))==null?void 0x0:_0x5c5367[_0x302d51(0x165)])||{};try{let _0xdbf122=new i[(_0x302d51(0x195))](_0x51d00f,{'headers':{..._0x1bcf62}}),_0x525583=new t['DisposableCollection']();return{'URL':_0x51d00f,'close':(_0x1502e9,_0x47bf58)=>{const _0x3153e5=_0x302d51;_0xdbf122[_0x3153e5(0x196)](_0x1502e9,_0x47bf58),_0x525583[_0x3153e5(0x163)]();},'send':_0x24da84=>{const _0x420685=_0x302d51;_0xdbf122[_0x420685(0x16d)](_0x24da84);},'open$':new r[(_0x302d51(0x18d))](_0xf0f5eb=>{const _0x56758b=_0x302d51;let _0x3bf93e=_0x45b548=>_0xf0f5eb[_0x56758b(0x171)](_0x45b548);_0xdbf122[_0x56758b(0x16a)](_0x56758b(0x168),_0x3bf93e),_0x525583['add']((0x0,t[_0x56758b(0x191)])(()=>_0xdbf122[_0x56758b(0x18c)](_0x56758b(0x168),_0x3bf93e)));})[_0x302d51(0x15a)]((0x0,r[_0x302d51(0x164)])()),'close$':new r[(_0x302d51(0x18d))](_0x3af4d3=>{const _0x489f33=_0x302d51;let _0x1bf2e2=_0x1fded2=>_0x3af4d3[_0x489f33(0x171)](_0x1fded2);_0xdbf122[_0x489f33(0x16a)](_0x489f33(0x196),_0x1bf2e2),_0x525583[_0x489f33(0x15d)]((0x0,t[_0x489f33(0x191)])(()=>_0xdbf122[_0x489f33(0x18c)](_0x489f33(0x196),_0x1bf2e2)));})['pipe']((0x0,r[_0x302d51(0x164)])()),'error$':new r['Observable'](_0x1ae996=>{const _0x1237cf=_0x302d51;let _0x11914a=_0x240a37=>_0x1ae996[_0x1237cf(0x171)](_0x240a37);_0xdbf122[_0x1237cf(0x16a)](_0x1237cf(0x197),_0x11914a),_0x525583[_0x1237cf(0x15d)]((0x0,t[_0x1237cf(0x191)])(()=>_0xdbf122['removeEventListener'](_0x1237cf(0x197),_0x11914a)));})[_0x302d51(0x15a)]((0x0,r['share'])()),'message$':new r['Observable'](_0x3769f1=>{const _0x443c00=_0x302d51;let _0x44d71e=_0x5c0075=>_0x3769f1[_0x443c00(0x171)](_0x5c0075);_0xdbf122[_0x443c00(0x16a)](_0x443c00(0x186),_0x44d71e),_0x525583[_0x443c00(0x15d)]((0x0,t[_0x443c00(0x191)])(()=>_0xdbf122['removeEventListener'](_0x443c00(0x186),_0x44d71e)));})['pipe']((0x0,r[_0x302d51(0x164)])())};}catch(_0x596672){return console[_0x302d51(0x197)](_0x596672),null;}}};f=d([u(0x0,t[_0x40ad66(0x18e)])],f);function p(_0x59ebc4){'@babel/helpers - typeof';const _0x36b5b3=_0x40ad66;return p=typeof Symbol==_0x36b5b3(0x19b)&&typeof Symbol[_0x36b5b3(0x175)]==_0x36b5b3(0x15e)?function(_0x2dce03){return typeof _0x2dce03;}:function(_0x2ab27e){const _0x488bd2=_0x36b5b3;return _0x2ab27e&&typeof Symbol==_0x488bd2(0x19b)&&_0x2ab27e[_0x488bd2(0x187)]===Symbol&&_0x2ab27e!==Symbol[_0x488bd2(0x15c)]?_0x488bd2(0x15e):typeof _0x2ab27e;},p(_0x59ebc4);}function m(_0xad84c1,_0x5335a7){const _0x2c4e50=_0x40ad66;if(p(_0xad84c1)!=_0x2c4e50(0x185)||!_0xad84c1)return _0xad84c1;var _0x4d59fb=_0xad84c1[Symbol['toPrimitive']];if(_0x4d59fb!==void 0x0){var _0x4867ac=_0x4d59fb[_0x2c4e50(0x16f)](_0xad84c1,_0x5335a7||_0x2c4e50(0x18f));if(p(_0x4867ac)!=_0x2c4e50(0x185))return _0x4867ac;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5335a7===_0x2c4e50(0x166)?String:Number)(_0xad84c1);}function h(_0x467175){const _0x2d2ccf=_0x40ad66;var _0x2fed43=m(_0x467175,_0x2d2ccf(0x166));return p(_0x2fed43)=='symbol'?_0x2fed43:_0x2fed43+'';}function g(_0x1c9b5e,_0x4b5fc2,_0x27a4d6){const _0x3eeac2=_0x40ad66;return(_0x4b5fc2=h(_0x4b5fc2))in _0x1c9b5e?Object[_0x3eeac2(0x174)](_0x1c9b5e,_0x4b5fc2,{'value':_0x27a4d6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c9b5e[_0x4b5fc2]=_0x27a4d6,_0x1c9b5e;}let _=class extends t[_0x40ad66(0x198)]{constructor(_0x488e63=s,_0x27ab24,_0x11f91b){const _0x3d99f2=_0x40ad66;super(),this['_configService']=_0x27ab24,this[_0x3d99f2(0x161)]=_0x11f91b,this[_0x3d99f2(0x182)][_0x3d99f2(0x15b)](o,_0x488e63);}[_0x40ad66(0x184)](){const _0x335b03=_0x40ad66;this[_0x335b03(0x17e)]();}[_0x40ad66(0x17e)](){const _0x58b65b=_0x40ad66;(0x0,t['registerDependencies'])(this['_injector'],[[n[_0x58b65b(0x183)],{'useClass':f}]]);}};function _0x1c69(_0x3b4f0e,_0x3ec684){_0x3b4f0e=_0x3b4f0e-0x15a;const _0x5598ac=_0x5598();let _0x1c6995=_0x5598ac[_0x3b4f0e];return _0x1c6995;}function _0x5598(){const _0x425b18=['send','Disposable','call','ISnapshotServerService','next','3158040ccNrLB','200595OKFjjq','defineProperty','iterator','_doCreateSocket','216484csyiLc','COLLABORATION_CLIENT_NODE_CONFIG_KEY','311696hZmfKo','2429817PaZjPv','UniverCollaborationClientPlugin','0.20.0','createSocket','_registerDependencies','6964218WuvERO','getOwnPropertyDescriptor','getConfig','_configService','ISocketService','onStarting','object','message','constructor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','decorate','length','collaboration-client-node.config','removeEventListener','Observable','IConfigService','default','210uJQtBz','toDisposable','CollaborationSocketService','@univerjs-pro/collaboration-client-node','NodeCollaborationSocketService','WebSocket','close','error','Plugin','set','Injector','function','packageName','pipe','setConfig','prototype','add','symbol','UniverCollaborationClientNodePlugin','Inject','_injector','54AZNSEg','dispose','share','customHeaders','string','751178JXrSci','open','pluginName','addEventListener','version','HTTPService'];_0x5598=function(){return _0x425b18;};return _0x5598();}g(_,_0x40ad66(0x169),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,_0x40ad66(0x19c),c),g(_,_0x40ad66(0x16b),l),_=d([(0x0,t['DependentOn'])(e[_0x40ad66(0x17b)]),u(0x1,t['IConfigService']),u(0x2,(0x0,t[_0x40ad66(0x160)])(t[_0x40ad66(0x19a)]))],_);let v=class extends e[_0x40ad66(0x192)]{constructor(_0x5f4b70,_0xf7e16,_0x1b4150,_0x126aff,_0x8282e1){const _0x474de7=_0x40ad66;super(_0x5f4b70,_0xf7e16,_0x1b4150,_0x126aff,_0x8282e1);let _0x1b2661=this[_0x474de7(0x182)][_0x474de7(0x181)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x5dc457,_0x3c0cd7)=>{const _0x54e2df=_0x474de7;let _0x153d9a=_0x5dc457['headers'];if(_0x1b2661!=null&&_0x1b2661[_0x54e2df(0x165)]){for(let _0xac4ea9 in _0x1b2661[_0x54e2df(0x165)])_0x153d9a[_0x54e2df(0x199)](_0xac4ea9,_0x1b2661[_0x54e2df(0x165)][_0xac4ea9]);}return _0x3c0cd7(_0x5dc457);}});}async[_0x40ad66(0x17d)](_0x3fc963){const _0x17d9aa=_0x40ad66;return this[_0x17d9aa(0x176)](_0x3fc963);}};v=d([u(0x0,(0x0,t[_0x40ad66(0x160)])(t[_0x40ad66(0x19a)])),u(0x1,(0x0,t[_0x40ad66(0x160)])(n[_0x40ad66(0x16c)])),u(0x2,t['IConfigService']),u(0x3,t['ILogService']),u(0x4,a[_0x40ad66(0x170)])],v),exports[_0x40ad66(0x178)]=o,Object[_0x40ad66(0x174)](exports,_0x40ad66(0x194),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x40ad66(0x174)](exports,_0x40ad66(0x15f),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x49d990=_0x436d;(function(_0x1dbf30,_0x5d36c8){const _0x5bcc43=_0x436d,_0x4a8ed5=_0x1dbf30();while(!![]){try{const _0x14eaa5=parseInt(_0x5bcc43(0x203))/0x1+parseInt(_0x5bcc43(0x1de))/0x2*(parseInt(_0x5bcc43(0x1ee))/0x3)+parseInt(_0x5bcc43(0x200))/0x4+-parseInt(_0x5bcc43(0x1fd))/0x5*(-parseInt(_0x5bcc43(0x209))/0x6)+-parseInt(_0x5bcc43(0x1f9))/0x7+parseInt(_0x5bcc43(0x211))/0x8*(parseInt(_0x5bcc43(0x1e1))/0x9)+parseInt(_0x5bcc43(0x204))/0xa*(-parseInt(_0x5bcc43(0x1fc))/0xb);if(_0x14eaa5===_0x5d36c8)break;else _0x4a8ed5['push'](_0x4a8ed5['shift']());}catch(_0x3a7b67){_0x4a8ed5['push'](_0x4a8ed5['shift']());}}}(_0x6310,0x1af1a),Object['defineProperty'](exports,Symbol[_0x49d990(0x20f)],{'value':_0x49d990(0x1f8)}));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='collaboration-client-node.config',configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};var name='@univerjs-pro/collaboration-client-node',version='0.20.1-insiders.20260418-3a69981';function __decorateParam(_0x4376de,_0x15fdb9){return function(_0x365b1c,_0x1ecdbe){_0x15fdb9(_0x365b1c,_0x1ecdbe,_0x4376de);};}function __decorate(_0x3fe6e6,_0x4ddc3a,_0x598457,_0x211cbd){const _0x316a5e=_0x49d990;var _0x2d3708=arguments[_0x316a5e(0x1eb)],_0x388f80=_0x2d3708<0x3?_0x4ddc3a:_0x211cbd===null?_0x211cbd=Object['getOwnPropertyDescriptor'](_0x4ddc3a,_0x598457):_0x211cbd,_0x123259;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x316a5e(0x20b))_0x388f80=Reflect[_0x316a5e(0x1e4)](_0x3fe6e6,_0x4ddc3a,_0x598457,_0x211cbd);else{for(var _0x4d13dd=_0x3fe6e6[_0x316a5e(0x1eb)]-0x1;_0x4d13dd>=0x0;_0x4d13dd--)if(_0x123259=_0x3fe6e6[_0x4d13dd])_0x388f80=(_0x2d3708<0x3?_0x123259(_0x388f80):_0x2d3708>0x3?_0x123259(_0x4ddc3a,_0x598457,_0x388f80):_0x123259(_0x4ddc3a,_0x598457))||_0x388f80;}return _0x2d3708>0x3&&_0x388f80&&Object[_0x316a5e(0x208)](_0x4ddc3a,_0x598457,_0x388f80),_0x388f80;}let NodeWebSocketService=class NodeWebSocketService extends _univerjs_core[_0x49d990(0x1e2)]{constructor(_0x161b9d){const _0x4ed4dd=_0x49d990;super(),this[_0x4ed4dd(0x1da)]=_0x161b9d;}[_0x49d990(0x1fa)](_0xa14949){const _0x56224a=_0x49d990;var _0x380549;const _0x165857=((_0x380549=this[_0x56224a(0x1da)][_0x56224a(0x215)](_univerjs_pro_collaboration_client[_0x56224a(0x216)]))===null||_0x380549===void 0x0?void 0x0:_0x380549[_0x56224a(0x20a)])||{};try{const _0x436e3b=new ws[(_0x56224a(0x1e0))](_0xa14949,{'headers':{..._0x165857}}),_0x191122=new _univerjs_core[(_0x56224a(0x1ff))]();return{'URL':_0xa14949,'close':(_0x57df80,_0x7adc23)=>{const _0x547b98=_0x56224a;_0x436e3b[_0x547b98(0x1f0)](_0x57df80,_0x7adc23),_0x191122[_0x547b98(0x1ec)]();},'send':_0x1204fb=>{const _0x2aba1f=_0x56224a;_0x436e3b[_0x2aba1f(0x1f2)](_0x1204fb);},'open$':new rxjs[(_0x56224a(0x1f4))](_0x3d3fc0=>{const _0x171348=_0x56224a,_0x349fac=_0x15a145=>_0x3d3fc0[_0x171348(0x1dc)](_0x15a145);_0x436e3b[_0x171348(0x1d8)](_0x171348(0x1ea),_0x349fac),_0x191122[_0x171348(0x1fe)]((0x0,_univerjs_core[_0x171348(0x1fb)])(()=>_0x436e3b['removeEventListener'](_0x171348(0x1ea),_0x349fac)));})['pipe']((0x0,rxjs['share'])()),'close$':new rxjs[(_0x56224a(0x1f4))](_0x391457=>{const _0x1c523c=_0x56224a,_0x3c2dc0=_0x470e1f=>_0x391457[_0x1c523c(0x1dc)](_0x470e1f);_0x436e3b[_0x1c523c(0x1d8)](_0x1c523c(0x1f0),_0x3c2dc0),_0x191122[_0x1c523c(0x1fe)]((0x0,_univerjs_core[_0x1c523c(0x1fb)])(()=>_0x436e3b[_0x1c523c(0x214)](_0x1c523c(0x1f0),_0x3c2dc0)));})[_0x56224a(0x210)]((0x0,rxjs[_0x56224a(0x202)])()),'error$':new rxjs[(_0x56224a(0x1f4))](_0x357829=>{const _0x8f5398=_0x56224a,_0x5b9389=_0x20fb9f=>_0x357829[_0x8f5398(0x1dc)](_0x20fb9f);_0x436e3b[_0x8f5398(0x1d8)](_0x8f5398(0x20d),_0x5b9389),_0x191122['add']((0x0,_univerjs_core[_0x8f5398(0x1fb)])(()=>_0x436e3b['removeEventListener'](_0x8f5398(0x20d),_0x5b9389)));})[_0x56224a(0x210)]((0x0,rxjs['share'])()),'message$':new rxjs[(_0x56224a(0x1f4))](_0x1a641e=>{const _0x27d057=_0x56224a,_0x1e7daf=_0x4fc2a6=>_0x1a641e[_0x27d057(0x1dc)](_0x4fc2a6);_0x436e3b['addEventListener'](_0x27d057(0x1f7),_0x1e7daf),_0x191122[_0x27d057(0x1fe)]((0x0,_univerjs_core[_0x27d057(0x1fb)])(()=>_0x436e3b['removeEventListener']('message',_0x1e7daf)));})[_0x56224a(0x210)]((0x0,rxjs['share'])())};}catch(_0x43a922){return console[_0x56224a(0x20d)](_0x43a922),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,_univerjs_core[_0x49d990(0x1ed)])],NodeWebSocketService);function _typeof(_0x15cdb7){'@babel/helpers - typeof';const _0x4274b8=_0x49d990;return _typeof=_0x4274b8(0x20b)==typeof Symbol&&_0x4274b8(0x20e)==typeof Symbol[_0x4274b8(0x1db)]?function(_0x2ec3d9){return typeof _0x2ec3d9;}:function(_0x1d0a1e){const _0x337607=_0x4274b8;return _0x1d0a1e&&'function'==typeof Symbol&&_0x1d0a1e['constructor']===Symbol&&_0x1d0a1e!==Symbol[_0x337607(0x1e5)]?'symbol':typeof _0x1d0a1e;},_typeof(_0x15cdb7);}function toPrimitive(_0x2deccc,_0x430ab3){const _0x4d294e=_0x49d990;if('object'!=_typeof(_0x2deccc)||!_0x2deccc)return _0x2deccc;var _0x51c0d6=_0x2deccc[Symbol[_0x4d294e(0x1d9)]];if(void 0x0!==_0x51c0d6){var _0x786df9=_0x51c0d6[_0x4d294e(0x212)](_0x2deccc,_0x430ab3||'default');if('object'!=_typeof(_0x786df9))return _0x786df9;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return('string'===_0x430ab3?String:Number)(_0x2deccc);}function toPropertyKey(_0x4d7a1e){const _0x347459=_0x49d990;var _0x230e2d=toPrimitive(_0x4d7a1e,_0x347459(0x213));return _0x347459(0x20e)==_typeof(_0x230e2d)?_0x230e2d:_0x230e2d+'';}function _0x436d(_0x5ef74f,_0x336988){_0x5ef74f=_0x5ef74f-0x1d8;const _0x631040=_0x6310();let _0x436d44=_0x631040[_0x5ef74f];return _0x436d44;}function _0x6310(){const _0x4a6fe6=['string','removeEventListener','getConfig','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','addEventListener','toPrimitive','_configService','iterator','next','ISocketService','76186MNMYuu','Inject','WebSocket','9ODxlBZ','Disposable','onStarting','decorate','prototype','UniverCollaborationClientPlugin','setConfig','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','registerDependencies','open','length','dispose','IConfigService','6WPqqRm','_httpService','close','_injector','send','DependentOn','Observable','HTTPService','headers','message','Module','915089hetVGy','createSocket','toDisposable','33WIGNjO','863035CShmnZ','add','DisposableCollection','533944GQvnNP','Injector','share','63988SATeUJ','805470CqIRFA','COLLABORATION_CLIENT_NODE_CONFIG_KEY','NodeCollaborationSocketService','pluginName','defineProperty','6DLtQBo','customHeaders','function','version','error','symbol','toStringTag','pipe','291704IuEKEi','call'];_0x6310=function(){return _0x4a6fe6;};return _0x6310();}function _defineProperty(_0x2d9d97,_0xd3f080,_0x56ba22){return(_0xd3f080=toPropertyKey(_0xd3f080))in _0x2d9d97?Object['defineProperty'](_0x2d9d97,_0xd3f080,{'value':_0x56ba22,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d9d97[_0xd3f080]=_0x56ba22,_0x2d9d97;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends _univerjs_core['Plugin']{constructor(_0xb21295=defaultPluginConfig,_0x137644,_0x345b46){const _0x1399d0=_0x49d990;super(),this['_configService']=_0x137644,this[_0x1399d0(0x1f1)]=_0x345b46,this[_0x1399d0(0x1da)][_0x1399d0(0x1e7)](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0xb21295);}[_0x49d990(0x1e3)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x2b6dce=_0x49d990;(0x0,_univerjs_core[_0x2b6dce(0x1e9)])(this['_injector'],[[_univerjs_network[_0x2b6dce(0x1dd)],{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x49d990(0x207),_0x49d990(0x1e8)),_defineProperty(UniverCollaborationClientNodePlugin,'packageName',name),_defineProperty(UniverCollaborationClientNodePlugin,_0x49d990(0x20c),version),UniverCollaborationClientNodePlugin=__decorate([(0x0,_univerjs_core[_0x49d990(0x1f3)])(_univerjs_pro_collaboration_client[_0x49d990(0x1e6)]),__decorateParam(0x1,_univerjs_core[_0x49d990(0x1ed)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x49d990(0x1df)])(_univerjs_core[_0x49d990(0x201)]))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends _univerjs_pro_collaboration_client['CollaborationSocketService']{constructor(_0x155344,_0x5d634b,_0x5af83a,_0x359205,_0x35f6c2){const _0x3f01cf=_0x49d990;super(_0x155344,_0x5d634b,_0x5af83a,_0x359205,_0x35f6c2);const _0xbce9c6=this['_configService'][_0x3f01cf(0x215)](_univerjs_pro_collaboration_client[_0x3f01cf(0x216)]);this[_0x3f01cf(0x1ef)]['registerHTTPInterceptor']({'interceptor':(_0x38c7bf,_0x57b844)=>{const _0x7afc0d=_0x3f01cf,_0x43ca04=_0x38c7bf[_0x7afc0d(0x1f6)];if(_0xbce9c6===null||_0xbce9c6===void 0x0?void 0x0:_0xbce9c6[_0x7afc0d(0x20a)]){for(const _0x19508a in _0xbce9c6['customHeaders'])_0x43ca04['set'](_0x19508a,_0xbce9c6[_0x7afc0d(0x20a)][_0x19508a]);}return _0x57b844(_0x38c7bf);}});}async['createSocket'](_0x2bd08e){return this['_doCreateSocket'](_0x2bd08e);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x49d990(0x1df)])(_univerjs_core['Injector'])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_network[_0x49d990(0x1f5)])),__decorateParam(0x2,_univerjs_core[_0x49d990(0x1ed)]),__decorateParam(0x3,_univerjs_core['ILogService']),__decorateParam(0x4,_univerjs_pro_collaboration['ISnapshotServerService'])],NodeCollaborationSocketService),exports[_0x49d990(0x205)]=COLLABORATION_CLIENT_NODE_CONFIG_KEY,Object[_0x49d990(0x208)](exports,_0x49d990(0x206),{'enumerable':!![],'get':function(){return NodeCollaborationSocketService;}}),Object[_0x49d990(0x208)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!![],'get':function(){return UniverCollaborationClientNodePlugin;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x281941=_0x3be8;(function(_0x23017a,_0x9522ed){const _0x541b25=_0x3be8,_0x1b3f51=_0x23017a();while(!![]){try{const _0x2c3d19=-parseInt(_0x541b25(0x10d))/0x1+parseInt(_0x541b25(0x109))/0x2+parseInt(_0x541b25(0xfb))/0x3*(-parseInt(_0x541b25(0xef))/0x4)+-parseInt(_0x541b25(0x112))/0x5+-parseInt(_0x541b25(0xf6))/0x6*(-parseInt(_0x541b25(0xf7))/0x7)+-parseInt(_0x541b25(0x110))/0x8*(parseInt(_0x541b25(0xf5))/0x9)+parseInt(_0x541b25(0xf9))/0xa;if(_0x2c3d19===_0x9522ed)break;else _0x1b3f51['push'](_0x1b3f51['shift']());}catch(_0x451c16){_0x1b3f51['push'](_0x1b3f51['shift']());}}}(_0x17c2,0xb079e));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e9332,CollaborationSocketService as _0xd62d0,UniverCollaborationClientPlugin as _0xaac7ea}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x487f2c,Disposable as _0x12017b,DisposableCollection as _0x39501d,IConfigService as _0x568e84,ILogService as _0x1e6864,Inject as _0x561dee,Injector as _0xf2a2f,Plugin as _0x25149c,registerDependencies as _0x110fdc,toDisposable as _0x54ce44}from'@univerjs/core';function _0x3be8(_0x15e1e9,_0xc5d2b1){_0x15e1e9=_0x15e1e9-0xe9;const _0x17c2ed=_0x17c2();let _0x3be8e2=_0x17c2ed[_0x15e1e9];return _0x3be8e2;}import{HTTPService as _0x4d4276,ISocketService as _0x486c76}from'@univerjs/network';import{Observable as _0x199b68,share as _0x2c5b53}from'rxjs';import{WebSocket as _0x2cb203}from'ws';import{ISnapshotServerService as _0x135542}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config';Symbol(y);const b={};var x=_0x281941(0x102),S=_0x281941(0x104);function C(_0x3ab6e7,_0xebd428){return function(_0x3e44e5,_0x3bfb3f){_0xebd428(_0x3e44e5,_0x3bfb3f,_0x3ab6e7);};}function w(_0x3e4808,_0x3dc8fe,_0x2a72ab,_0x17ebb2){const _0x17b10e=_0x281941;var _0x2a6893=arguments[_0x17b10e(0xee)],_0x426be5=_0x2a6893<0x3?_0x3dc8fe:_0x17ebb2===null?_0x17ebb2=Object['getOwnPropertyDescriptor'](_0x3dc8fe,_0x2a72ab):_0x17ebb2,_0x242fe3;if(typeof Reflect==_0x17b10e(0x10a)&&typeof Reflect[_0x17b10e(0xec)]==_0x17b10e(0x100))_0x426be5=Reflect[_0x17b10e(0xec)](_0x3e4808,_0x3dc8fe,_0x2a72ab,_0x17ebb2);else{for(var _0x37ab45=_0x3e4808[_0x17b10e(0xee)]-0x1;_0x37ab45>=0x0;_0x37ab45--)(_0x242fe3=_0x3e4808[_0x37ab45])&&(_0x426be5=(_0x2a6893<0x3?_0x242fe3(_0x426be5):_0x2a6893>0x3?_0x242fe3(_0x3dc8fe,_0x2a72ab,_0x426be5):_0x242fe3(_0x3dc8fe,_0x2a72ab))||_0x426be5);}return _0x2a6893>0x3&&_0x426be5&&Object[_0x17b10e(0xff)](_0x3dc8fe,_0x2a72ab,_0x426be5),_0x426be5;}let T=class extends _0x12017b{constructor(_0xaea20){const _0x1fc9bf=_0x281941;super(),this[_0x1fc9bf(0x10e)]=_0xaea20;}[_0x281941(0xf8)](_0x51db60){const _0x400ca2=_0x281941;var _0x3fa05d;let _0x3e7fcc=((_0x3fa05d=this[_0x400ca2(0x10e)][_0x400ca2(0xfd)](_0x5e9332))==null?void 0x0:_0x3fa05d[_0x400ca2(0x101)])||{};try{let _0x96f6e4=new _0x2cb203(_0x51db60,{'headers':{..._0x3e7fcc}}),_0x1d9911=new _0x39501d();return{'URL':_0x51db60,'close':(_0x32a9c3,_0x26b835)=>{const _0x194b2f=_0x400ca2;_0x96f6e4[_0x194b2f(0x116)](_0x32a9c3,_0x26b835),_0x1d9911[_0x194b2f(0x10c)]();},'send':_0x2ceb39=>{_0x96f6e4['send'](_0x2ceb39);},'open$':new _0x199b68(_0x1a3406=>{const _0x272e4b=_0x400ca2;let _0x1b871d=_0x6dc277=>_0x1a3406[_0x272e4b(0x103)](_0x6dc277);_0x96f6e4[_0x272e4b(0xf0)](_0x272e4b(0xf2),_0x1b871d),_0x1d9911[_0x272e4b(0xfe)](_0x54ce44(()=>_0x96f6e4[_0x272e4b(0x108)](_0x272e4b(0xf2),_0x1b871d)));})[_0x400ca2(0xfc)](_0x2c5b53()),'close$':new _0x199b68(_0x57e6b4=>{const _0x32139e=_0x400ca2;let _0x57603e=_0x5449a0=>_0x57e6b4[_0x32139e(0x103)](_0x5449a0);_0x96f6e4[_0x32139e(0xf0)](_0x32139e(0x116),_0x57603e),_0x1d9911[_0x32139e(0xfe)](_0x54ce44(()=>_0x96f6e4[_0x32139e(0x108)](_0x32139e(0x116),_0x57603e)));})['pipe'](_0x2c5b53()),'error$':new _0x199b68(_0x4310d5=>{const _0x2c9d68=_0x400ca2;let _0x4b3d20=_0x3b0609=>_0x4310d5[_0x2c9d68(0x103)](_0x3b0609);_0x96f6e4[_0x2c9d68(0xf0)](_0x2c9d68(0x114),_0x4b3d20),_0x1d9911['add'](_0x54ce44(()=>_0x96f6e4[_0x2c9d68(0x108)](_0x2c9d68(0x114),_0x4b3d20)));})[_0x400ca2(0xfc)](_0x2c5b53()),'message$':new _0x199b68(_0x46645d=>{const _0x2a2e1f=_0x400ca2;let _0x5ea23c=_0x5d3b28=>_0x46645d[_0x2a2e1f(0x103)](_0x5d3b28);_0x96f6e4[_0x2a2e1f(0xf0)](_0x2a2e1f(0x106),_0x5ea23c),_0x1d9911['add'](_0x54ce44(()=>_0x96f6e4['removeEventListener'](_0x2a2e1f(0x106),_0x5ea23c)));})['pipe'](_0x2c5b53())};}catch(_0x14e24b){return console[_0x400ca2(0x114)](_0x14e24b),null;}}};T=w([C(0x0,_0x568e84)],T);function _0x17c2(){const _0xdac35=['_registerDependencies','set','decorate','default','length','1610364CfWBwK','addEventListener','toPrimitive','open','call','headers','81PQKleS','8988kRwvfA','3143eZCQdh','createSocket','26416910zmETFP','setConfig','9kTeWSD','pipe','getConfig','add','defineProperty','function','customHeaders','@univerjs-pro/collaboration-client-node','next','0.20.0','_injector','message','pluginName','removeEventListener','1428326MXnpGB','object','version','dispose','664787wgfTxK','_configService','packageName','342776gtKwlT','_httpService','5237135WHDACJ','prototype','error','_doCreateSocket','close','symbol'];_0x17c2=function(){return _0xdac35;};return _0x17c2();}function E(_0xfe3ed5){'@babel/helpers - typeof';const _0x7ee222=_0x281941;return E=typeof Symbol==_0x7ee222(0x100)&&typeof Symbol['iterator']==_0x7ee222(0xe9)?function(_0x421bba){return typeof _0x421bba;}:function(_0x209131){const _0x8ca021=_0x7ee222;return _0x209131&&typeof Symbol==_0x8ca021(0x100)&&_0x209131['constructor']===Symbol&&_0x209131!==Symbol[_0x8ca021(0x113)]?_0x8ca021(0xe9):typeof _0x209131;},E(_0xfe3ed5);}function D(_0x2347f0,_0x2b6465){const _0x4fd00f=_0x281941;if(E(_0x2347f0)!='object'||!_0x2347f0)return _0x2347f0;var _0x2b7a2c=_0x2347f0[Symbol[_0x4fd00f(0xf1)]];if(_0x2b7a2c!==void 0x0){var _0xd1efbf=_0x2b7a2c[_0x4fd00f(0xf3)](_0x2347f0,_0x2b6465||_0x4fd00f(0xed));if(E(_0xd1efbf)!=_0x4fd00f(0x10a))return _0xd1efbf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2b6465==='string'?String:Number)(_0x2347f0);}function O(_0xc12ec7){var _0x557478=D(_0xc12ec7,'string');return E(_0x557478)=='symbol'?_0x557478:_0x557478+'';}function k(_0x409d69,_0x165d69,_0x4ce17b){const _0x47d4b0=_0x281941;return(_0x165d69=O(_0x165d69))in _0x409d69?Object[_0x47d4b0(0xff)](_0x409d69,_0x165d69,{'value':_0x4ce17b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x409d69[_0x165d69]=_0x4ce17b,_0x409d69;}let A=class extends _0x25149c{constructor(_0x916411=b,_0x5bce19,_0x588938){const _0x5de727=_0x281941;super(),this['_configService']=_0x5bce19,this[_0x5de727(0x105)]=_0x588938,this[_0x5de727(0x10e)][_0x5de727(0xfa)](y,_0x916411);}['onStarting'](){const _0x3d0904=_0x281941;this[_0x3d0904(0xea)]();}['_registerDependencies'](){const _0xfaff80=_0x281941;_0x110fdc(this[_0xfaff80(0x105)],[[_0x486c76,{'useClass':T}]]);}};k(A,_0x281941(0x107),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x281941(0x10f),x),k(A,_0x281941(0x10b),S),A=w([_0x487f2c(_0xaac7ea),C(0x1,_0x568e84),C(0x2,_0x561dee(_0xf2a2f))],A);let j=class extends _0xd62d0{constructor(_0x2baffc,_0x4d8ecd,_0x56db7d,_0x206f2e,_0x2dec88){const _0x1d443c=_0x281941;super(_0x2baffc,_0x4d8ecd,_0x56db7d,_0x206f2e,_0x2dec88);let _0x23252f=this[_0x1d443c(0x10e)][_0x1d443c(0xfd)](_0x5e9332);this[_0x1d443c(0x111)]['registerHTTPInterceptor']({'interceptor':(_0x551d37,_0x130df8)=>{const _0x1a7489=_0x1d443c;let _0x36b4d9=_0x551d37[_0x1a7489(0xf4)];if(_0x23252f!=null&&_0x23252f[_0x1a7489(0x101)]){for(let _0x2648d4 in _0x23252f[_0x1a7489(0x101)])_0x36b4d9[_0x1a7489(0xeb)](_0x2648d4,_0x23252f[_0x1a7489(0x101)][_0x2648d4]);}return _0x130df8(_0x551d37);}});}async[_0x281941(0xf8)](_0x45adbd){const _0x33c92e=_0x281941;return this[_0x33c92e(0x115)](_0x45adbd);}};j=w([C(0x0,_0x561dee(_0xf2a2f)),C(0x1,_0x561dee(_0x4d4276)),C(0x2,_0x568e84),C(0x3,_0x1e6864),C(0x4,_0x135542)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x2ee3bd=_0x4c76;(function(_0x45e1ae,_0x496b5d){const _0x37882f=_0x4c76,_0x534e85=_0x45e1ae();while(!![]){try{const _0x3c9e4e=-parseInt(_0x37882f(0x11b))/0x1*(-parseInt(_0x37882f(0x149))/0x2)+-parseInt(_0x37882f(0x125))/0x3*(parseInt(_0x37882f(0x139))/0x4)+-parseInt(_0x37882f(0x12f))/0x5*(-parseInt(_0x37882f(0x122))/0x6)+parseInt(_0x37882f(0x147))/0x7+parseInt(_0x37882f(0x135))/0x8+parseInt(_0x37882f(0x11e))/0x9+-parseInt(_0x37882f(0x131))/0xa;if(_0x3c9e4e===_0x496b5d)break;else _0x534e85['push'](_0x534e85['shift']());}catch(_0x32934e){_0x534e85['push'](_0x534e85['shift']());}}}(_0x5135,0x57b09));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=_0x2ee3bd(0x13b),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};function _0x4c76(_0x4f01d0,_0x426c5e){_0x4f01d0=_0x4f01d0-0x118;const _0x513578=_0x5135();let _0x4c76ec=_0x513578[_0x4f01d0];return _0x4c76ec;}var name=_0x2ee3bd(0x136),version=_0x2ee3bd(0x123);function __decorateParam(_0x18beb0,_0x425974){return function(_0x371bc8,_0x418853){_0x425974(_0x371bc8,_0x418853,_0x18beb0);};}function __decorate(_0x7b89e4,_0x3e42f8,_0x20c7a1,_0x1657de){const _0x115afa=_0x2ee3bd;var _0x435e20=arguments[_0x115afa(0x13a)],_0x42dc53=_0x435e20<0x3?_0x3e42f8:_0x1657de===null?_0x1657de=Object[_0x115afa(0x145)](_0x3e42f8,_0x20c7a1):_0x1657de,_0xe631e9;if(typeof Reflect===_0x115afa(0x118)&&typeof Reflect['decorate']===_0x115afa(0x144))_0x42dc53=Reflect['decorate'](_0x7b89e4,_0x3e42f8,_0x20c7a1,_0x1657de);else{for(var _0x423df5=_0x7b89e4[_0x115afa(0x13a)]-0x1;_0x423df5>=0x0;_0x423df5--)if(_0xe631e9=_0x7b89e4[_0x423df5])_0x42dc53=(_0x435e20<0x3?_0xe631e9(_0x42dc53):_0x435e20>0x3?_0xe631e9(_0x3e42f8,_0x20c7a1,_0x42dc53):_0xe631e9(_0x3e42f8,_0x20c7a1))||_0x42dc53;}return _0x435e20>0x3&&_0x42dc53&&Object[_0x115afa(0x138)](_0x3e42f8,_0x20c7a1,_0x42dc53),_0x42dc53;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x52e0f6){const _0x1cffc6=_0x2ee3bd;super(),this[_0x1cffc6(0x148)]=_0x52e0f6;}[_0x2ee3bd(0x129)](_0x39e6c9){const _0x520e53=_0x2ee3bd;var _0x274fb4;const _0x249b21=((_0x274fb4=this[_0x520e53(0x148)][_0x520e53(0x143)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x274fb4===void 0x0?void 0x0:_0x274fb4[_0x520e53(0x13f)])||{};try{const _0x26710c=new WebSocket(_0x39e6c9,{'headers':{..._0x249b21}}),_0x2633eb=new DisposableCollection();return{'URL':_0x39e6c9,'close':(_0x41e061,_0x2df5fc)=>{const _0x486799=_0x520e53;_0x26710c[_0x486799(0x12b)](_0x41e061,_0x2df5fc),_0x2633eb[_0x486799(0x130)]();},'send':_0x1aa2b5=>{const _0x20fab0=_0x520e53;_0x26710c[_0x20fab0(0x146)](_0x1aa2b5);},'open$':new Observable(_0x2d97d2=>{const _0x125090=_0x520e53,_0xc1efc=_0xd7f3d3=>_0x2d97d2[_0x125090(0x121)](_0xd7f3d3);_0x26710c[_0x125090(0x11d)](_0x125090(0x140),_0xc1efc),_0x2633eb[_0x125090(0x13c)](toDisposable(()=>_0x26710c[_0x125090(0x142)]('open',_0xc1efc)));})[_0x520e53(0x126)](share()),'close$':new Observable(_0xcd4ed=>{const _0x1ee082=_0x520e53,_0x3ad7f2=_0x53b65c=>_0xcd4ed[_0x1ee082(0x121)](_0x53b65c);_0x26710c[_0x1ee082(0x11d)](_0x1ee082(0x12b),_0x3ad7f2),_0x2633eb[_0x1ee082(0x13c)](toDisposable(()=>_0x26710c['removeEventListener'](_0x1ee082(0x12b),_0x3ad7f2)));})['pipe'](share()),'error$':new Observable(_0x55a8b0=>{const _0x138484=_0x520e53,_0x1bbb36=_0x27bed5=>_0x55a8b0['next'](_0x27bed5);_0x26710c[_0x138484(0x11d)](_0x138484(0x119),_0x1bbb36),_0x2633eb[_0x138484(0x13c)](toDisposable(()=>_0x26710c['removeEventListener'](_0x138484(0x119),_0x1bbb36)));})[_0x520e53(0x126)](share()),'message$':new Observable(_0x3bd83e=>{const _0x460097=_0x520e53,_0x24e0e5=_0x5cedcc=>_0x3bd83e[_0x460097(0x121)](_0x5cedcc);_0x26710c[_0x460097(0x11d)](_0x460097(0x137),_0x24e0e5),_0x2633eb['add'](toDisposable(()=>_0x26710c[_0x460097(0x142)](_0x460097(0x137),_0x24e0e5)));})[_0x520e53(0x126)](share())};}catch(_0x132032){return console[_0x520e53(0x119)](_0x132032),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x4a4b18){'@babel/helpers - typeof';const _0x1a56c8=_0x2ee3bd;return _typeof=_0x1a56c8(0x144)==typeof Symbol&&_0x1a56c8(0x12a)==typeof Symbol[_0x1a56c8(0x134)]?function(_0x2d6c60){return typeof _0x2d6c60;}:function(_0x1821dd){const _0x28b3e5=_0x1a56c8;return _0x1821dd&&_0x28b3e5(0x144)==typeof Symbol&&_0x1821dd[_0x28b3e5(0x141)]===Symbol&&_0x1821dd!==Symbol[_0x28b3e5(0x132)]?_0x28b3e5(0x12a):typeof _0x1821dd;},_typeof(_0x4a4b18);}function toPrimitive(_0x5996e3,_0xfe75c5){const _0x56e991=_0x2ee3bd;if(_0x56e991(0x118)!=_typeof(_0x5996e3)||!_0x5996e3)return _0x5996e3;var _0x1a8343=_0x5996e3[Symbol['toPrimitive']];if(void 0x0!==_0x1a8343){var _0x5d61c3=_0x1a8343[_0x56e991(0x11f)](_0x5996e3,_0xfe75c5||_0x56e991(0x13d));if(_0x56e991(0x118)!=_typeof(_0x5d61c3))return _0x5d61c3;throw new TypeError(_0x56e991(0x128));}return(_0x56e991(0x11c)===_0xfe75c5?String:Number)(_0x5996e3);}function toPropertyKey(_0x35087c){const _0x3d49f3=_0x2ee3bd;var _0x4eeb55=toPrimitive(_0x35087c,_0x3d49f3(0x11c));return _0x3d49f3(0x12a)==_typeof(_0x4eeb55)?_0x4eeb55:_0x4eeb55+'';}function _defineProperty(_0x347492,_0x1314df,_0x12a6a3){const _0x36d86f=_0x2ee3bd;return(_0x1314df=toPropertyKey(_0x1314df))in _0x347492?Object[_0x36d86f(0x138)](_0x347492,_0x1314df,{'value':_0x12a6a3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x347492[_0x1314df]=_0x12a6a3,_0x347492;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x1ec6b5=defaultPluginConfig,_0x17b2eb,_0x77a809){super(),this['_configService']=_0x17b2eb,this['_injector']=_0x77a809,this['_configService']['setConfig'](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x1ec6b5);}['onStarting'](){this['_registerDependencies']();}[_0x2ee3bd(0x12d)](){const _0x59a60d=_0x2ee3bd;registerDependencies(this[_0x59a60d(0x124)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x2ee3bd(0x11a),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_defineProperty(UniverCollaborationClientNodePlugin,_0x2ee3bd(0x120),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x2ee3bd(0x13e),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0xf5c2d,_0x142bd4,_0x376dd6,_0x4e2719,_0x5092ea){const _0x517425=_0x2ee3bd;super(_0xf5c2d,_0x142bd4,_0x376dd6,_0x4e2719,_0x5092ea);const _0x577403=this['_configService'][_0x517425(0x143)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x517425(0x127)][_0x517425(0x12c)]({'interceptor':(_0x4747af,_0x4886e0)=>{const _0x27c21d=_0x517425,_0x5e2398=_0x4747af['headers'];if(_0x577403===null||_0x577403===void 0x0?void 0x0:_0x577403[_0x27c21d(0x13f)]){for(const _0x2a0f87 in _0x577403['customHeaders'])_0x5e2398[_0x27c21d(0x133)](_0x2a0f87,_0x577403[_0x27c21d(0x13f)][_0x2a0f87]);}return _0x4886e0(_0x4747af);}});}async[_0x2ee3bd(0x129)](_0x26718d){const _0x556f7a=_0x2ee3bd;return this[_0x556f7a(0x12e)](_0x26718d);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);function _0x5135(){const _0x538dbd=['1795734hBfSlz','call','packageName','next','726LxIdTU','0.20.1-insiders.20260418-3a69981','_injector','2157THGBvr','pipe','_httpService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createSocket','symbol','close','registerHTTPInterceptor','_registerDependencies','_doCreateSocket','10170VwzdcS','dispose','11052270OAcavk','prototype','set','iterator','1281776ZGBpDz','@univerjs-pro/collaboration-client-node','message','defineProperty','1948oVYElF','length','collaboration-client-node.config','add','default','version','customHeaders','open','constructor','removeEventListener','getConfig','function','getOwnPropertyDescriptor','send','3462025EsqGzv','_configService','16YLhqSo','object','error','pluginName','89265RLCXlr','string','addEventListener'];_0x5135=function(){return _0x538dbd;};return _0x5135();}export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x281941=_0x3be8;(function(_0x23017a,_0x9522ed){const _0x541b25=_0x3be8,_0x1b3f51=_0x23017a();while(!![]){try{const _0x2c3d19=-parseInt(_0x541b25(0x10d))/0x1+parseInt(_0x541b25(0x109))/0x2+parseInt(_0x541b25(0xfb))/0x3*(-parseInt(_0x541b25(0xef))/0x4)+-parseInt(_0x541b25(0x112))/0x5+-parseInt(_0x541b25(0xf6))/0x6*(-parseInt(_0x541b25(0xf7))/0x7)+-parseInt(_0x541b25(0x110))/0x8*(parseInt(_0x541b25(0xf5))/0x9)+parseInt(_0x541b25(0xf9))/0xa;if(_0x2c3d19===_0x9522ed)break;else _0x1b3f51['push'](_0x1b3f51['shift']());}catch(_0x451c16){_0x1b3f51['push'](_0x1b3f51['shift']());}}}(_0x17c2,0xb079e));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e9332,CollaborationSocketService as _0xd62d0,UniverCollaborationClientPlugin as _0xaac7ea}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x487f2c,Disposable as _0x12017b,DisposableCollection as _0x39501d,IConfigService as _0x568e84,ILogService as _0x1e6864,Inject as _0x561dee,Injector as _0xf2a2f,Plugin as _0x25149c,registerDependencies as _0x110fdc,toDisposable as _0x54ce44}from'@univerjs/core';function _0x3be8(_0x15e1e9,_0xc5d2b1){_0x15e1e9=_0x15e1e9-0xe9;const _0x17c2ed=_0x17c2();let _0x3be8e2=_0x17c2ed[_0x15e1e9];return _0x3be8e2;}import{HTTPService as _0x4d4276,ISocketService as _0x486c76}from'@univerjs/network';import{Observable as _0x199b68,share as _0x2c5b53}from'rxjs';import{WebSocket as _0x2cb203}from'ws';import{ISnapshotServerService as _0x135542}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config';Symbol(y);const b={};var x=_0x281941(0x102),S=_0x281941(0x104);function C(_0x3ab6e7,_0xebd428){return function(_0x3e44e5,_0x3bfb3f){_0xebd428(_0x3e44e5,_0x3bfb3f,_0x3ab6e7);};}function w(_0x3e4808,_0x3dc8fe,_0x2a72ab,_0x17ebb2){const _0x17b10e=_0x281941;var _0x2a6893=arguments[_0x17b10e(0xee)],_0x426be5=_0x2a6893<0x3?_0x3dc8fe:_0x17ebb2===null?_0x17ebb2=Object['getOwnPropertyDescriptor'](_0x3dc8fe,_0x2a72ab):_0x17ebb2,_0x242fe3;if(typeof Reflect==_0x17b10e(0x10a)&&typeof Reflect[_0x17b10e(0xec)]==_0x17b10e(0x100))_0x426be5=Reflect[_0x17b10e(0xec)](_0x3e4808,_0x3dc8fe,_0x2a72ab,_0x17ebb2);else{for(var _0x37ab45=_0x3e4808[_0x17b10e(0xee)]-0x1;_0x37ab45>=0x0;_0x37ab45--)(_0x242fe3=_0x3e4808[_0x37ab45])&&(_0x426be5=(_0x2a6893<0x3?_0x242fe3(_0x426be5):_0x2a6893>0x3?_0x242fe3(_0x3dc8fe,_0x2a72ab,_0x426be5):_0x242fe3(_0x3dc8fe,_0x2a72ab))||_0x426be5);}return _0x2a6893>0x3&&_0x426be5&&Object[_0x17b10e(0xff)](_0x3dc8fe,_0x2a72ab,_0x426be5),_0x426be5;}let T=class extends _0x12017b{constructor(_0xaea20){const _0x1fc9bf=_0x281941;super(),this[_0x1fc9bf(0x10e)]=_0xaea20;}[_0x281941(0xf8)](_0x51db60){const _0x400ca2=_0x281941;var _0x3fa05d;let _0x3e7fcc=((_0x3fa05d=this[_0x400ca2(0x10e)][_0x400ca2(0xfd)](_0x5e9332))==null?void 0x0:_0x3fa05d[_0x400ca2(0x101)])||{};try{let _0x96f6e4=new _0x2cb203(_0x51db60,{'headers':{..._0x3e7fcc}}),_0x1d9911=new _0x39501d();return{'URL':_0x51db60,'close':(_0x32a9c3,_0x26b835)=>{const _0x194b2f=_0x400ca2;_0x96f6e4[_0x194b2f(0x116)](_0x32a9c3,_0x26b835),_0x1d9911[_0x194b2f(0x10c)]();},'send':_0x2ceb39=>{_0x96f6e4['send'](_0x2ceb39);},'open$':new _0x199b68(_0x1a3406=>{const _0x272e4b=_0x400ca2;let _0x1b871d=_0x6dc277=>_0x1a3406[_0x272e4b(0x103)](_0x6dc277);_0x96f6e4[_0x272e4b(0xf0)](_0x272e4b(0xf2),_0x1b871d),_0x1d9911[_0x272e4b(0xfe)](_0x54ce44(()=>_0x96f6e4[_0x272e4b(0x108)](_0x272e4b(0xf2),_0x1b871d)));})[_0x400ca2(0xfc)](_0x2c5b53()),'close$':new _0x199b68(_0x57e6b4=>{const _0x32139e=_0x400ca2;let _0x57603e=_0x5449a0=>_0x57e6b4[_0x32139e(0x103)](_0x5449a0);_0x96f6e4[_0x32139e(0xf0)](_0x32139e(0x116),_0x57603e),_0x1d9911[_0x32139e(0xfe)](_0x54ce44(()=>_0x96f6e4[_0x32139e(0x108)](_0x32139e(0x116),_0x57603e)));})['pipe'](_0x2c5b53()),'error$':new _0x199b68(_0x4310d5=>{const _0x2c9d68=_0x400ca2;let _0x4b3d20=_0x3b0609=>_0x4310d5[_0x2c9d68(0x103)](_0x3b0609);_0x96f6e4[_0x2c9d68(0xf0)](_0x2c9d68(0x114),_0x4b3d20),_0x1d9911['add'](_0x54ce44(()=>_0x96f6e4[_0x2c9d68(0x108)](_0x2c9d68(0x114),_0x4b3d20)));})[_0x400ca2(0xfc)](_0x2c5b53()),'message$':new _0x199b68(_0x46645d=>{const _0x2a2e1f=_0x400ca2;let _0x5ea23c=_0x5d3b28=>_0x46645d[_0x2a2e1f(0x103)](_0x5d3b28);_0x96f6e4[_0x2a2e1f(0xf0)](_0x2a2e1f(0x106),_0x5ea23c),_0x1d9911['add'](_0x54ce44(()=>_0x96f6e4['removeEventListener'](_0x2a2e1f(0x106),_0x5ea23c)));})['pipe'](_0x2c5b53())};}catch(_0x14e24b){return console[_0x400ca2(0x114)](_0x14e24b),null;}}};T=w([C(0x0,_0x568e84)],T);function _0x17c2(){const _0xdac35=['_registerDependencies','set','decorate','default','length','1610364CfWBwK','addEventListener','toPrimitive','open','call','headers','81PQKleS','8988kRwvfA','3143eZCQdh','createSocket','26416910zmETFP','setConfig','9kTeWSD','pipe','getConfig','add','defineProperty','function','customHeaders','@univerjs-pro/collaboration-client-node','next','0.20.0','_injector','message','pluginName','removeEventListener','1428326MXnpGB','object','version','dispose','664787wgfTxK','_configService','packageName','342776gtKwlT','_httpService','5237135WHDACJ','prototype','error','_doCreateSocket','close','symbol'];_0x17c2=function(){return _0xdac35;};return _0x17c2();}function E(_0xfe3ed5){'@babel/helpers - typeof';const _0x7ee222=_0x281941;return E=typeof Symbol==_0x7ee222(0x100)&&typeof Symbol['iterator']==_0x7ee222(0xe9)?function(_0x421bba){return typeof _0x421bba;}:function(_0x209131){const _0x8ca021=_0x7ee222;return _0x209131&&typeof Symbol==_0x8ca021(0x100)&&_0x209131['constructor']===Symbol&&_0x209131!==Symbol[_0x8ca021(0x113)]?_0x8ca021(0xe9):typeof _0x209131;},E(_0xfe3ed5);}function D(_0x2347f0,_0x2b6465){const _0x4fd00f=_0x281941;if(E(_0x2347f0)!='object'||!_0x2347f0)return _0x2347f0;var _0x2b7a2c=_0x2347f0[Symbol[_0x4fd00f(0xf1)]];if(_0x2b7a2c!==void 0x0){var _0xd1efbf=_0x2b7a2c[_0x4fd00f(0xf3)](_0x2347f0,_0x2b6465||_0x4fd00f(0xed));if(E(_0xd1efbf)!=_0x4fd00f(0x10a))return _0xd1efbf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2b6465==='string'?String:Number)(_0x2347f0);}function O(_0xc12ec7){var _0x557478=D(_0xc12ec7,'string');return E(_0x557478)=='symbol'?_0x557478:_0x557478+'';}function k(_0x409d69,_0x165d69,_0x4ce17b){const _0x47d4b0=_0x281941;return(_0x165d69=O(_0x165d69))in _0x409d69?Object[_0x47d4b0(0xff)](_0x409d69,_0x165d69,{'value':_0x4ce17b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x409d69[_0x165d69]=_0x4ce17b,_0x409d69;}let A=class extends _0x25149c{constructor(_0x916411=b,_0x5bce19,_0x588938){const _0x5de727=_0x281941;super(),this['_configService']=_0x5bce19,this[_0x5de727(0x105)]=_0x588938,this[_0x5de727(0x10e)][_0x5de727(0xfa)](y,_0x916411);}['onStarting'](){const _0x3d0904=_0x281941;this[_0x3d0904(0xea)]();}['_registerDependencies'](){const _0xfaff80=_0x281941;_0x110fdc(this[_0xfaff80(0x105)],[[_0x486c76,{'useClass':T}]]);}};k(A,_0x281941(0x107),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x281941(0x10f),x),k(A,_0x281941(0x10b),S),A=w([_0x487f2c(_0xaac7ea),C(0x1,_0x568e84),C(0x2,_0x561dee(_0xf2a2f))],A);let j=class extends _0xd62d0{constructor(_0x2baffc,_0x4d8ecd,_0x56db7d,_0x206f2e,_0x2dec88){const _0x1d443c=_0x281941;super(_0x2baffc,_0x4d8ecd,_0x56db7d,_0x206f2e,_0x2dec88);let _0x23252f=this[_0x1d443c(0x10e)][_0x1d443c(0xfd)](_0x5e9332);this[_0x1d443c(0x111)]['registerHTTPInterceptor']({'interceptor':(_0x551d37,_0x130df8)=>{const _0x1a7489=_0x1d443c;let _0x36b4d9=_0x551d37[_0x1a7489(0xf4)];if(_0x23252f!=null&&_0x23252f[_0x1a7489(0x101)]){for(let _0x2648d4 in _0x23252f[_0x1a7489(0x101)])_0x36b4d9[_0x1a7489(0xeb)](_0x2648d4,_0x23252f[_0x1a7489(0x101)][_0x2648d4]);}return _0x130df8(_0x551d37);}});}async[_0x281941(0xf8)](_0x45adbd){const _0x33c92e=_0x281941;return this[_0x33c92e(0x115)](_0x45adbd);}};j=w([C(0x0,_0x561dee(_0xf2a2f)),C(0x1,_0x561dee(_0x4d4276)),C(0x2,_0x568e84),C(0x3,_0x1e6864),C(0x4,_0x135542)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x2ee3bd=_0x4c76;(function(_0x45e1ae,_0x496b5d){const _0x37882f=_0x4c76,_0x534e85=_0x45e1ae();while(!![]){try{const _0x3c9e4e=-parseInt(_0x37882f(0x11b))/0x1*(-parseInt(_0x37882f(0x149))/0x2)+-parseInt(_0x37882f(0x125))/0x3*(parseInt(_0x37882f(0x139))/0x4)+-parseInt(_0x37882f(0x12f))/0x5*(-parseInt(_0x37882f(0x122))/0x6)+parseInt(_0x37882f(0x147))/0x7+parseInt(_0x37882f(0x135))/0x8+parseInt(_0x37882f(0x11e))/0x9+-parseInt(_0x37882f(0x131))/0xa;if(_0x3c9e4e===_0x496b5d)break;else _0x534e85['push'](_0x534e85['shift']());}catch(_0x32934e){_0x534e85['push'](_0x534e85['shift']());}}}(_0x5135,0x57b09));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=_0x2ee3bd(0x13b),configSymbol=Symbol(COLLABORATION_CLIENT_NODE_CONFIG_KEY),defaultPluginConfig={};function _0x4c76(_0x4f01d0,_0x426c5e){_0x4f01d0=_0x4f01d0-0x118;const _0x513578=_0x5135();let _0x4c76ec=_0x513578[_0x4f01d0];return _0x4c76ec;}var name=_0x2ee3bd(0x136),version=_0x2ee3bd(0x123);function __decorateParam(_0x18beb0,_0x425974){return function(_0x371bc8,_0x418853){_0x425974(_0x371bc8,_0x418853,_0x18beb0);};}function __decorate(_0x7b89e4,_0x3e42f8,_0x20c7a1,_0x1657de){const _0x115afa=_0x2ee3bd;var _0x435e20=arguments[_0x115afa(0x13a)],_0x42dc53=_0x435e20<0x3?_0x3e42f8:_0x1657de===null?_0x1657de=Object[_0x115afa(0x145)](_0x3e42f8,_0x20c7a1):_0x1657de,_0xe631e9;if(typeof Reflect===_0x115afa(0x118)&&typeof Reflect['decorate']===_0x115afa(0x144))_0x42dc53=Reflect['decorate'](_0x7b89e4,_0x3e42f8,_0x20c7a1,_0x1657de);else{for(var _0x423df5=_0x7b89e4[_0x115afa(0x13a)]-0x1;_0x423df5>=0x0;_0x423df5--)if(_0xe631e9=_0x7b89e4[_0x423df5])_0x42dc53=(_0x435e20<0x3?_0xe631e9(_0x42dc53):_0x435e20>0x3?_0xe631e9(_0x3e42f8,_0x20c7a1,_0x42dc53):_0xe631e9(_0x3e42f8,_0x20c7a1))||_0x42dc53;}return _0x435e20>0x3&&_0x42dc53&&Object[_0x115afa(0x138)](_0x3e42f8,_0x20c7a1,_0x42dc53),_0x42dc53;}let NodeWebSocketService=class NodeWebSocketService extends Disposable{constructor(_0x52e0f6){const _0x1cffc6=_0x2ee3bd;super(),this[_0x1cffc6(0x148)]=_0x52e0f6;}[_0x2ee3bd(0x129)](_0x39e6c9){const _0x520e53=_0x2ee3bd;var _0x274fb4;const _0x249b21=((_0x274fb4=this[_0x520e53(0x148)][_0x520e53(0x143)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x274fb4===void 0x0?void 0x0:_0x274fb4[_0x520e53(0x13f)])||{};try{const _0x26710c=new WebSocket(_0x39e6c9,{'headers':{..._0x249b21}}),_0x2633eb=new DisposableCollection();return{'URL':_0x39e6c9,'close':(_0x41e061,_0x2df5fc)=>{const _0x486799=_0x520e53;_0x26710c[_0x486799(0x12b)](_0x41e061,_0x2df5fc),_0x2633eb[_0x486799(0x130)]();},'send':_0x1aa2b5=>{const _0x20fab0=_0x520e53;_0x26710c[_0x20fab0(0x146)](_0x1aa2b5);},'open$':new Observable(_0x2d97d2=>{const _0x125090=_0x520e53,_0xc1efc=_0xd7f3d3=>_0x2d97d2[_0x125090(0x121)](_0xd7f3d3);_0x26710c[_0x125090(0x11d)](_0x125090(0x140),_0xc1efc),_0x2633eb[_0x125090(0x13c)](toDisposable(()=>_0x26710c[_0x125090(0x142)]('open',_0xc1efc)));})[_0x520e53(0x126)](share()),'close$':new Observable(_0xcd4ed=>{const _0x1ee082=_0x520e53,_0x3ad7f2=_0x53b65c=>_0xcd4ed[_0x1ee082(0x121)](_0x53b65c);_0x26710c[_0x1ee082(0x11d)](_0x1ee082(0x12b),_0x3ad7f2),_0x2633eb[_0x1ee082(0x13c)](toDisposable(()=>_0x26710c['removeEventListener'](_0x1ee082(0x12b),_0x3ad7f2)));})['pipe'](share()),'error$':new Observable(_0x55a8b0=>{const _0x138484=_0x520e53,_0x1bbb36=_0x27bed5=>_0x55a8b0['next'](_0x27bed5);_0x26710c[_0x138484(0x11d)](_0x138484(0x119),_0x1bbb36),_0x2633eb[_0x138484(0x13c)](toDisposable(()=>_0x26710c['removeEventListener'](_0x138484(0x119),_0x1bbb36)));})[_0x520e53(0x126)](share()),'message$':new Observable(_0x3bd83e=>{const _0x460097=_0x520e53,_0x24e0e5=_0x5cedcc=>_0x3bd83e[_0x460097(0x121)](_0x5cedcc);_0x26710c[_0x460097(0x11d)](_0x460097(0x137),_0x24e0e5),_0x2633eb['add'](toDisposable(()=>_0x26710c[_0x460097(0x142)](_0x460097(0x137),_0x24e0e5)));})[_0x520e53(0x126)](share())};}catch(_0x132032){return console[_0x520e53(0x119)](_0x132032),null;}}};NodeWebSocketService=__decorate([__decorateParam(0x0,IConfigService)],NodeWebSocketService);function _typeof(_0x4a4b18){'@babel/helpers - typeof';const _0x1a56c8=_0x2ee3bd;return _typeof=_0x1a56c8(0x144)==typeof Symbol&&_0x1a56c8(0x12a)==typeof Symbol[_0x1a56c8(0x134)]?function(_0x2d6c60){return typeof _0x2d6c60;}:function(_0x1821dd){const _0x28b3e5=_0x1a56c8;return _0x1821dd&&_0x28b3e5(0x144)==typeof Symbol&&_0x1821dd[_0x28b3e5(0x141)]===Symbol&&_0x1821dd!==Symbol[_0x28b3e5(0x132)]?_0x28b3e5(0x12a):typeof _0x1821dd;},_typeof(_0x4a4b18);}function toPrimitive(_0x5996e3,_0xfe75c5){const _0x56e991=_0x2ee3bd;if(_0x56e991(0x118)!=_typeof(_0x5996e3)||!_0x5996e3)return _0x5996e3;var _0x1a8343=_0x5996e3[Symbol['toPrimitive']];if(void 0x0!==_0x1a8343){var _0x5d61c3=_0x1a8343[_0x56e991(0x11f)](_0x5996e3,_0xfe75c5||_0x56e991(0x13d));if(_0x56e991(0x118)!=_typeof(_0x5d61c3))return _0x5d61c3;throw new TypeError(_0x56e991(0x128));}return(_0x56e991(0x11c)===_0xfe75c5?String:Number)(_0x5996e3);}function toPropertyKey(_0x35087c){const _0x3d49f3=_0x2ee3bd;var _0x4eeb55=toPrimitive(_0x35087c,_0x3d49f3(0x11c));return _0x3d49f3(0x12a)==_typeof(_0x4eeb55)?_0x4eeb55:_0x4eeb55+'';}function _defineProperty(_0x347492,_0x1314df,_0x12a6a3){const _0x36d86f=_0x2ee3bd;return(_0x1314df=toPropertyKey(_0x1314df))in _0x347492?Object[_0x36d86f(0x138)](_0x347492,_0x1314df,{'value':_0x12a6a3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x347492[_0x1314df]=_0x12a6a3,_0x347492;}let UniverCollaborationClientNodePlugin=class UniverCollaborationClientNodePlugin extends Plugin{constructor(_0x1ec6b5=defaultPluginConfig,_0x17b2eb,_0x77a809){super(),this['_configService']=_0x17b2eb,this['_injector']=_0x77a809,this['_configService']['setConfig'](COLLABORATION_CLIENT_NODE_CONFIG_KEY,_0x1ec6b5);}['onStarting'](){this['_registerDependencies']();}[_0x2ee3bd(0x12d)](){const _0x59a60d=_0x2ee3bd;registerDependencies(this[_0x59a60d(0x124)],[[ISocketService,{'useClass':NodeWebSocketService}]]);}};_defineProperty(UniverCollaborationClientNodePlugin,_0x2ee3bd(0x11a),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_defineProperty(UniverCollaborationClientNodePlugin,_0x2ee3bd(0x120),name),_defineProperty(UniverCollaborationClientNodePlugin,_0x2ee3bd(0x13e),version),UniverCollaborationClientNodePlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(Injector))],UniverCollaborationClientNodePlugin);let NodeCollaborationSocketService=class NodeCollaborationSocketService extends CollaborationSocketService{constructor(_0xf5c2d,_0x142bd4,_0x376dd6,_0x4e2719,_0x5092ea){const _0x517425=_0x2ee3bd;super(_0xf5c2d,_0x142bd4,_0x376dd6,_0x4e2719,_0x5092ea);const _0x577403=this['_configService'][_0x517425(0x143)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);this[_0x517425(0x127)][_0x517425(0x12c)]({'interceptor':(_0x4747af,_0x4886e0)=>{const _0x27c21d=_0x517425,_0x5e2398=_0x4747af['headers'];if(_0x577403===null||_0x577403===void 0x0?void 0x0:_0x577403[_0x27c21d(0x13f)]){for(const _0x2a0f87 in _0x577403['customHeaders'])_0x5e2398[_0x27c21d(0x133)](_0x2a0f87,_0x577403[_0x27c21d(0x13f)][_0x2a0f87]);}return _0x4886e0(_0x4747af);}});}async[_0x2ee3bd(0x129)](_0x26718d){const _0x556f7a=_0x2ee3bd;return this[_0x556f7a(0x12e)](_0x26718d);}};NodeCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],NodeCollaborationSocketService);function _0x5135(){const _0x538dbd=['1795734hBfSlz','call','packageName','next','726LxIdTU','0.20.1-insiders.20260418-3a69981','_injector','2157THGBvr','pipe','_httpService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createSocket','symbol','close','registerHTTPInterceptor','_registerDependencies','_doCreateSocket','10170VwzdcS','dispose','11052270OAcavk','prototype','set','iterator','1281776ZGBpDz','@univerjs-pro/collaboration-client-node','message','defineProperty','1948oVYElF','length','collaboration-client-node.config','add','default','version','customHeaders','open','constructor','removeEventListener','getConfig','function','getOwnPropertyDescriptor','send','3462025EsqGzv','_configService','16YLhqSo','object','error','pluginName','89265RLCXlr','string','addEventListener'];_0x5135=function(){return _0x538dbd;};return _0x5135();}export{COLLABORATION_CLIENT_NODE_CONFIG_KEY,NodeCollaborationSocketService,UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4cd1(_0xade83a,_0x3a9a60){_0xade83a=_0xade83a-0x108;const _0x23c96a=_0x23c9();let _0x4cd1ec=_0x23c96a[_0xade83a];return _0x4cd1ec;}function _0x23c9(){const _0x3d123b=['setConfig','3540RpdMdv','UniverProCollaborationClientNode','COLLABORATION_CLIENT_NODE_CONFIG_KEY','symbol','toPrimitive','exports','string','createSocket','function','defineProperty','UniverCore','send','version','1669676kcFZvZ','_injector','set','@univerjs/core','addEventListener','6541030sPVeje','Observable','_registerDependencies','Injector','21xBwASj','next','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','open','prototype','add','HTTPService','close','UniverCollaborationClientPlugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','UniverNetwork','Plugin','error','NodeCollaborationSocketService','5ORYmuT','iterator','pipe','removeEventListener','object','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','customHeaders','default','toStringTag','200cMGXOd','toDisposable','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','headers','IConfigService','length','rxjs','UniverProCollaborationClient','_configService','registerDependencies','0.20.0','ILogService','_httpService','ISocketService','@univerjs-pro/collaboration-client','188203Zcoyla','18802641JXkEGN','share','@univerjs/network','UniverCollaborationClientNodePlugin','dispose','Module','192771hAsPXn','728154LorquS','collaboration-client-node.config','472oeGmPN','getConfig','registerHTTPInterceptor','Inject'];_0x23c9=function(){return _0x3d123b;};return _0x23c9();}(function(_0x5caaab,_0x5f331e){const _0x4f5c9b=_0x4cd1,_0x9a09cb=_0x5caaab();while(!![]){try{const _0x552108=-parseInt(_0x4f5c9b(0x134))/0x1+-parseInt(_0x4f5c9b(0x13e))/0x2*(parseInt(_0x4f5c9b(0x143))/0x3)+parseInt(_0x4f5c9b(0x150))/0x4*(-parseInt(_0x4f5c9b(0x11c))/0x5)+-parseInt(_0x4f5c9b(0x13c))/0x6*(parseInt(_0x4f5c9b(0x10d))/0x7)+parseInt(_0x4f5c9b(0x125))/0x8*(parseInt(_0x4f5c9b(0x13b))/0x9)+-parseInt(_0x4f5c9b(0x109))/0xa+parseInt(_0x4f5c9b(0x135))/0xb;if(_0x552108===_0x5f331e)break;else _0x9a09cb['push'](_0x9a09cb['shift']());}catch(_0x533433){_0x9a09cb['push'](_0x9a09cb['shift']());}}}(_0x23c9,0x539fc),function(_0x5c1e97,_0x34903e){const _0x2841d1=_0x4cd1;typeof exports==_0x2841d1(0x120)&&typeof module<'u'?_0x34903e(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x2841d1(0x14b)&&define['amd']?define(['exports',_0x2841d1(0x133),_0x2841d1(0x153),_0x2841d1(0x137),_0x2841d1(0x12b),'@univerjs-pro/collaboration'],_0x34903e):(_0x5c1e97=typeof globalThis<'u'?globalThis:_0x5c1e97||self,_0x34903e(_0x5c1e97[_0x2841d1(0x144)]={},_0x5c1e97[_0x2841d1(0x12c)],_0x5c1e97[_0x2841d1(0x14d)],_0x5c1e97[_0x2841d1(0x118)],_0x5c1e97[_0x2841d1(0x12b)],_0x5c1e97['UniverProCollaboration']));}(this,function(_0x3cff4e,_0x2d81f0,_0x340ba7,_0x3da3e4,_0x57bdd2,_0x5c6add){const _0x522df2=_0x4cd1;Object[_0x522df2(0x14c)](_0x3cff4e,Symbol[_0x522df2(0x124)],{'value':_0x522df2(0x13a)});var _0x4138bc=(_0x1ce507,_0x5ef11e)=>()=>(_0x5ef11e||_0x1ce507((_0x5ef11e={'exports':{}})[_0x522df2(0x148)],_0x5ef11e),_0x5ef11e[_0x522df2(0x148)]);let _0x35bb47=_0x522df2(0x13d);Symbol(_0x35bb47);let _0x53393d={};var _0x50093a='@univerjs-pro/collaboration-client-node',_0xfd64ec=_0x522df2(0x12f),_0x197a8b=_0x4138bc((_0x27e4d1,_0x4ddb57)=>{const _0xbebb94=_0x522df2;_0x4ddb57[_0xbebb94(0x148)]=function(){const _0x2356ca=_0xbebb94;throw Error(_0x2356ca(0x127));};})();function _0x1bb5ce(_0x1f1806,_0x57432d){return function(_0x2de770,_0x2cb262){_0x57432d(_0x2de770,_0x2cb262,_0x1f1806);};}function _0x5790e0(_0x3d1d04,_0x507f56,_0x265c0c,_0x2a8b18){const _0x2d2810=_0x522df2;var _0x152391=arguments[_0x2d2810(0x12a)],_0x328020=_0x152391<0x3?_0x507f56:_0x2a8b18===null?_0x2a8b18=Object['getOwnPropertyDescriptor'](_0x507f56,_0x265c0c):_0x2a8b18,_0x55a190;if(typeof Reflect==_0x2d2810(0x120)&&typeof Reflect[_0x2d2810(0x117)]==_0x2d2810(0x14b))_0x328020=Reflect['decorate'](_0x3d1d04,_0x507f56,_0x265c0c,_0x2a8b18);else{for(var _0x18d961=_0x3d1d04['length']-0x1;_0x18d961>=0x0;_0x18d961--)(_0x55a190=_0x3d1d04[_0x18d961])&&(_0x328020=(_0x152391<0x3?_0x55a190(_0x328020):_0x152391>0x3?_0x55a190(_0x507f56,_0x265c0c,_0x328020):_0x55a190(_0x507f56,_0x265c0c))||_0x328020);}return _0x152391>0x3&&_0x328020&&Object['defineProperty'](_0x507f56,_0x265c0c,_0x328020),_0x328020;}let _0x390d84=class extends _0x340ba7['Disposable']{constructor(_0x1c2d0f){const _0x570cd4=_0x522df2;super(),this[_0x570cd4(0x12d)]=_0x1c2d0f;}[_0x522df2(0x14a)](_0x3f56c7){const _0x158b03=_0x522df2;var _0x572b36;let _0x54b631=((_0x572b36=this[_0x158b03(0x12d)][_0x158b03(0x13f)](_0x2d81f0[_0x158b03(0x10f)]))==null?void 0x0:_0x572b36[_0x158b03(0x122)])||{};try{let _0x2135ff=new _0x197a8b['WebSocket'](_0x3f56c7,{'headers':{..._0x54b631}}),_0x1b1d1d=new _0x340ba7['DisposableCollection']();return{'URL':_0x3f56c7,'close':(_0x344b36,_0x2ef46b)=>{const _0x3fa5a9=_0x158b03;_0x2135ff[_0x3fa5a9(0x114)](_0x344b36,_0x2ef46b),_0x1b1d1d[_0x3fa5a9(0x139)]();},'send':_0x449be5=>{const _0x3de4=_0x158b03;_0x2135ff[_0x3de4(0x14e)](_0x449be5);},'open$':new _0x57bdd2[(_0x158b03(0x10a))](_0x16f916=>{const _0x4bc1ff=_0x158b03;let _0x4ac334=_0x4158c0=>_0x16f916[_0x4bc1ff(0x10e)](_0x4158c0);_0x2135ff['addEventListener'](_0x4bc1ff(0x110),_0x4ac334),_0x1b1d1d['add']((0x0,_0x340ba7[_0x4bc1ff(0x126)])(()=>_0x2135ff[_0x4bc1ff(0x11f)](_0x4bc1ff(0x110),_0x4ac334)));})[_0x158b03(0x11e)]((0x0,_0x57bdd2[_0x158b03(0x136)])()),'close$':new _0x57bdd2[(_0x158b03(0x10a))](_0x1e0497=>{const _0x5b1d18=_0x158b03;let _0x1fafb2=_0xab8cbd=>_0x1e0497['next'](_0xab8cbd);_0x2135ff[_0x5b1d18(0x108)]('close',_0x1fafb2),_0x1b1d1d[_0x5b1d18(0x112)]((0x0,_0x340ba7[_0x5b1d18(0x126)])(()=>_0x2135ff[_0x5b1d18(0x11f)](_0x5b1d18(0x114),_0x1fafb2)));})['pipe']((0x0,_0x57bdd2[_0x158b03(0x136)])()),'error$':new _0x57bdd2[(_0x158b03(0x10a))](_0x1c31a2=>{const _0x35345f=_0x158b03;let _0x5ebd12=_0x1f0d7a=>_0x1c31a2['next'](_0x1f0d7a);_0x2135ff[_0x35345f(0x108)]('error',_0x5ebd12),_0x1b1d1d[_0x35345f(0x112)]((0x0,_0x340ba7[_0x35345f(0x126)])(()=>_0x2135ff[_0x35345f(0x11f)](_0x35345f(0x11a),_0x5ebd12)));})['pipe']((0x0,_0x57bdd2[_0x158b03(0x136)])()),'message$':new _0x57bdd2[(_0x158b03(0x10a))](_0x5f41e2=>{const _0x1f8ca3=_0x158b03;let _0x221222=_0x510e06=>_0x5f41e2[_0x1f8ca3(0x10e)](_0x510e06);_0x2135ff[_0x1f8ca3(0x108)]('message',_0x221222),_0x1b1d1d[_0x1f8ca3(0x112)]((0x0,_0x340ba7[_0x1f8ca3(0x126)])(()=>_0x2135ff[_0x1f8ca3(0x11f)]('message',_0x221222)));})[_0x158b03(0x11e)]((0x0,_0x57bdd2[_0x158b03(0x136)])())};}catch(_0x49c7d7){return console['error'](_0x49c7d7),null;}}};_0x390d84=_0x5790e0([_0x1bb5ce(0x0,_0x340ba7[_0x522df2(0x129)])],_0x390d84);function _0xa97341(_0x5d13d3){'@babel/helpers - typeof';const _0x3da095=_0x522df2;return _0xa97341=typeof Symbol==_0x3da095(0x14b)&&typeof Symbol[_0x3da095(0x11d)]==_0x3da095(0x146)?function(_0x4b3b24){return typeof _0x4b3b24;}:function(_0x4e1cc1){const _0x2d71c3=_0x3da095;return _0x4e1cc1&&typeof Symbol=='function'&&_0x4e1cc1['constructor']===Symbol&&_0x4e1cc1!==Symbol[_0x2d71c3(0x111)]?'symbol':typeof _0x4e1cc1;},_0xa97341(_0x5d13d3);}function _0x13dfe8(_0x4e1f1c,_0x1be553){const _0x52389b=_0x522df2;if(_0xa97341(_0x4e1f1c)!='object'||!_0x4e1f1c)return _0x4e1f1c;var _0x42b14b=_0x4e1f1c[Symbol[_0x52389b(0x147)]];if(_0x42b14b!==void 0x0){var _0xddbf1c=_0x42b14b['call'](_0x4e1f1c,_0x1be553||_0x52389b(0x123));if(_0xa97341(_0xddbf1c)!=_0x52389b(0x120))return _0xddbf1c;throw TypeError(_0x52389b(0x116));}return(_0x1be553===_0x52389b(0x149)?String:Number)(_0x4e1f1c);}function _0x26767b(_0x334a06){const _0x46a745=_0x522df2;var _0x1925ae=_0x13dfe8(_0x334a06,_0x46a745(0x149));return _0xa97341(_0x1925ae)==_0x46a745(0x146)?_0x1925ae:_0x1925ae+'';}function _0x13169c(_0x43295e,_0x38528b,_0x147ace){const _0x4a8066=_0x522df2;return(_0x38528b=_0x26767b(_0x38528b))in _0x43295e?Object[_0x4a8066(0x14c)](_0x43295e,_0x38528b,{'value':_0x147ace,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43295e[_0x38528b]=_0x147ace,_0x43295e;}let _0x2b7bd9=class extends _0x340ba7[_0x522df2(0x119)]{constructor(_0x17c7ac=_0x53393d,_0x405410,_0x39e520){const _0x568514=_0x522df2;super(),this[_0x568514(0x12d)]=_0x405410,this[_0x568514(0x151)]=_0x39e520,this[_0x568514(0x12d)][_0x568514(0x142)](_0x35bb47,_0x17c7ac);}['onStarting'](){const _0x93ae13=_0x522df2;this[_0x93ae13(0x10b)]();}[_0x522df2(0x10b)](){const _0x465627=_0x522df2;(0x0,_0x340ba7[_0x465627(0x12e)])(this['_injector'],[[_0x3da3e4[_0x465627(0x132)],{'useClass':_0x390d84}]]);}};_0x13169c(_0x2b7bd9,'pluginName',_0x522df2(0x121)),_0x13169c(_0x2b7bd9,'packageName',_0x50093a),_0x13169c(_0x2b7bd9,_0x522df2(0x14f),_0xfd64ec),_0x2b7bd9=_0x5790e0([(0x0,_0x340ba7['DependentOn'])(_0x2d81f0[_0x522df2(0x115)]),_0x1bb5ce(0x1,_0x340ba7[_0x522df2(0x129)]),_0x1bb5ce(0x2,(0x0,_0x340ba7[_0x522df2(0x141)])(_0x340ba7[_0x522df2(0x10c)]))],_0x2b7bd9);let _0x24b170=class extends _0x2d81f0['CollaborationSocketService']{constructor(_0x467a69,_0x1ecc05,_0x2c6999,_0x34cab6,_0x38b96d){const _0x4bd529=_0x522df2;super(_0x467a69,_0x1ecc05,_0x2c6999,_0x34cab6,_0x38b96d);let _0x1f7af1=this['_configService'][_0x4bd529(0x13f)](_0x2d81f0[_0x4bd529(0x10f)]);this[_0x4bd529(0x131)][_0x4bd529(0x140)]({'interceptor':(_0x47182d,_0x522c2b)=>{const _0x2d6afa=_0x4bd529;let _0x414800=_0x47182d[_0x2d6afa(0x128)];if(_0x1f7af1!=null&&_0x1f7af1[_0x2d6afa(0x122)]){for(let _0x50b6f6 in _0x1f7af1[_0x2d6afa(0x122)])_0x414800[_0x2d6afa(0x152)](_0x50b6f6,_0x1f7af1['customHeaders'][_0x50b6f6]);}return _0x522c2b(_0x47182d);}});}async[_0x522df2(0x14a)](_0x2472d4){return this['_doCreateSocket'](_0x2472d4);}};_0x24b170=_0x5790e0([_0x1bb5ce(0x0,(0x0,_0x340ba7[_0x522df2(0x141)])(_0x340ba7[_0x522df2(0x10c)])),_0x1bb5ce(0x1,(0x0,_0x340ba7['Inject'])(_0x3da3e4[_0x522df2(0x113)])),_0x1bb5ce(0x2,_0x340ba7['IConfigService']),_0x1bb5ce(0x3,_0x340ba7[_0x522df2(0x130)]),_0x1bb5ce(0x4,_0x5c6add['ISnapshotServerService'])],_0x24b170),_0x3cff4e[_0x522df2(0x145)]=_0x35bb47,Object[_0x522df2(0x14c)](_0x3cff4e,_0x522df2(0x11b),{'enumerable':!0x0,'get':function(){return _0x24b170;}}),Object[_0x522df2(0x14c)](_0x3cff4e,_0x522df2(0x138),{'enumerable':!0x0,'get':function(){return _0x2b7bd9;}});}));
1
+ function _0x3797(_0x29930f,_0x1da017){_0x29930f=_0x29930f-0x11a;const _0x1e3f46=_0x1e3f();let _0x3797db=_0x1e3f46[_0x29930f];return _0x3797db;}function _0x1e3f(){const _0x2cae4c=['close','DependentOn','UniverCore','length','constructor','ILogService','symbol','ISocketService','rxjs','264FprGgC','383694twGniD','2242312LWHgQt','default','411bOEWgE','3430LxXsyn','_injector','send','IConfigService','open','toStringTag','UniverProCollaborationClient','next','message','error','call','prototype','share','UniverCollaborationClientPlugin','Inject','CollaborationSocketService','add','Injector','object','Disposable','_configService','936dEMwLp','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','pluginName','createSocket','@univerjs-pro/collaboration-client','Module','0.20.1-insiders.20260418-3a69981','Observable','setConfig','pipe','collaboration-client-node.config','UniverCollaborationClientNodePlugin','function','customHeaders','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','removeEventListener','addEventListener','5157042BPfOQW','31766ENQutu','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','toPrimitive','version','DisposableCollection','string','toDisposable','onStarting','exports','registerHTTPInterceptor','decorate','headers','28OHxQaH','packageName','WebSocket','defineProperty','set','332ZMNcmR','registerDependencies','UniverProCollaborationClientNode','149890pdVtSZ','UniverNetwork'];_0x1e3f=function(){return _0x2cae4c;};return _0x1e3f();}(function(_0x20d83e,_0x566128){const _0x5b1401=_0x3797,_0x46e397=_0x20d83e();while(!![]){try{const _0x2a0c42=parseInt(_0x5b1401(0x135))/0x1*(-parseInt(_0x5b1401(0x123))/0x2)+-parseInt(_0x5b1401(0x132))/0x3+parseInt(_0x5b1401(0x11e))/0x4*(-parseInt(_0x5b1401(0x126))/0x5)+parseInt(_0x5b1401(0x131))/0x6*(-parseInt(_0x5b1401(0x15d))/0x7)+parseInt(_0x5b1401(0x133))/0x8+parseInt(_0x5b1401(0x14b))/0x9*(parseInt(_0x5b1401(0x136))/0xa)+parseInt(_0x5b1401(0x15c))/0xb;if(_0x2a0c42===_0x566128)break;else _0x46e397['push'](_0x46e397['shift']());}catch(_0x5c5ec2){_0x46e397['push'](_0x46e397['shift']());}}}(_0x1e3f,0x2bbc5),function(_0x3c3571,_0x2f4453){const _0x540507=_0x3797;typeof exports=='object'&&typeof module<'u'?_0x2f4453(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define=='function'&&define['amd']?define([_0x540507(0x11a),_0x540507(0x14f),'@univerjs/core','@univerjs/network',_0x540507(0x130),'@univerjs-pro/collaboration'],_0x2f4453):(_0x3c3571=typeof globalThis<'u'?globalThis:_0x3c3571||self,_0x2f4453(_0x3c3571[_0x540507(0x125)]={},_0x3c3571[_0x540507(0x13c)],_0x3c3571[_0x540507(0x12a)],_0x3c3571[_0x540507(0x127)],_0x3c3571[_0x540507(0x130)],_0x3c3571['UniverProCollaboration']));}(this,function(_0x564a50,_0x26b9bc,_0x4b77a4,_0x1441ee,_0x327ce8,_0x8473ac){const _0x55abbf=_0x3797;Object['defineProperty'](_0x564a50,Symbol[_0x55abbf(0x13b)],{'value':_0x55abbf(0x150)});var _0x2ddac7=(_0x42f165,_0x1a1e35)=>()=>(_0x1a1e35||_0x42f165((_0x1a1e35={'exports':{}})['exports'],_0x1a1e35),_0x1a1e35[_0x55abbf(0x11a)]);let _0x3fd30a=_0x55abbf(0x155);Symbol(_0x3fd30a);let _0xc71be2={};var _0x1b7050='@univerjs-pro/collaboration-client-node',_0x1b8fa9=_0x55abbf(0x151),_0x107bc6=_0x2ddac7((_0x1cfbf9,_0x23bd1b)=>{const _0x5866a0=_0x55abbf;_0x23bd1b[_0x5866a0(0x11a)]=function(){const _0x38ed09=_0x5866a0;throw Error(_0x38ed09(0x14c));};})();function _0x1acda2(_0x375447,_0x18ea91){return function(_0x57ddac,_0x7d73d1){_0x18ea91(_0x57ddac,_0x7d73d1,_0x375447);};}function _0x4f0998(_0x3ac92d,_0x392aa6,_0x8bf216,_0x2fdea6){const _0x29ab92=_0x55abbf;var _0x1ddd52=arguments[_0x29ab92(0x12b)],_0x4ff6e1=_0x1ddd52<0x3?_0x392aa6:_0x2fdea6===null?_0x2fdea6=Object['getOwnPropertyDescriptor'](_0x392aa6,_0x8bf216):_0x2fdea6,_0x433940;if(typeof Reflect==_0x29ab92(0x148)&&typeof Reflect[_0x29ab92(0x11c)]==_0x29ab92(0x157))_0x4ff6e1=Reflect[_0x29ab92(0x11c)](_0x3ac92d,_0x392aa6,_0x8bf216,_0x2fdea6);else{for(var _0x56da0b=_0x3ac92d[_0x29ab92(0x12b)]-0x1;_0x56da0b>=0x0;_0x56da0b--)(_0x433940=_0x3ac92d[_0x56da0b])&&(_0x4ff6e1=(_0x1ddd52<0x3?_0x433940(_0x4ff6e1):_0x1ddd52>0x3?_0x433940(_0x392aa6,_0x8bf216,_0x4ff6e1):_0x433940(_0x392aa6,_0x8bf216))||_0x4ff6e1);}return _0x1ddd52>0x3&&_0x4ff6e1&&Object[_0x29ab92(0x121)](_0x392aa6,_0x8bf216,_0x4ff6e1),_0x4ff6e1;}let _0x3ecc4b=class extends _0x4b77a4[_0x55abbf(0x149)]{constructor(_0x5b4a93){super(),this['_configService']=_0x5b4a93;}[_0x55abbf(0x14e)](_0x42c5c4){const _0x293667=_0x55abbf;var _0x3e994b;let _0x42e5fd=((_0x3e994b=this[_0x293667(0x14a)]['getConfig'](_0x26b9bc[_0x293667(0x159)]))==null?void 0x0:_0x3e994b[_0x293667(0x158)])||{};try{let _0x5031b3=new _0x107bc6[(_0x293667(0x120))](_0x42c5c4,{'headers':{..._0x42e5fd}}),_0x2cc6df=new _0x4b77a4[(_0x293667(0x161))]();return{'URL':_0x42c5c4,'close':(_0x239767,_0x3517c6)=>{const _0x4fdc22=_0x293667;_0x5031b3[_0x4fdc22(0x128)](_0x239767,_0x3517c6),_0x2cc6df['dispose']();},'send':_0x2674ee=>{const _0x435a85=_0x293667;_0x5031b3[_0x435a85(0x138)](_0x2674ee);},'open$':new _0x327ce8[(_0x293667(0x152))](_0x2c25f4=>{const _0x1af80e=_0x293667;let _0x3672d1=_0x5371af=>_0x2c25f4[_0x1af80e(0x13d)](_0x5371af);_0x5031b3[_0x1af80e(0x15b)](_0x1af80e(0x13a),_0x3672d1),_0x2cc6df[_0x1af80e(0x146)]((0x0,_0x4b77a4[_0x1af80e(0x163)])(()=>_0x5031b3[_0x1af80e(0x15a)](_0x1af80e(0x13a),_0x3672d1)));})[_0x293667(0x154)]((0x0,_0x327ce8['share'])()),'close$':new _0x327ce8[(_0x293667(0x152))](_0x4ce812=>{const _0x1a1b0f=_0x293667;let _0x574c6c=_0x3114d6=>_0x4ce812[_0x1a1b0f(0x13d)](_0x3114d6);_0x5031b3[_0x1a1b0f(0x15b)]('close',_0x574c6c),_0x2cc6df[_0x1a1b0f(0x146)]((0x0,_0x4b77a4[_0x1a1b0f(0x163)])(()=>_0x5031b3[_0x1a1b0f(0x15a)](_0x1a1b0f(0x128),_0x574c6c)));})[_0x293667(0x154)]((0x0,_0x327ce8[_0x293667(0x142)])()),'error$':new _0x327ce8['Observable'](_0x14d78d=>{const _0x42c5fa=_0x293667;let _0x417439=_0x16eb88=>_0x14d78d['next'](_0x16eb88);_0x5031b3['addEventListener']('error',_0x417439),_0x2cc6df[_0x42c5fa(0x146)]((0x0,_0x4b77a4[_0x42c5fa(0x163)])(()=>_0x5031b3[_0x42c5fa(0x15a)](_0x42c5fa(0x13f),_0x417439)));})[_0x293667(0x154)]((0x0,_0x327ce8[_0x293667(0x142)])()),'message$':new _0x327ce8[(_0x293667(0x152))](_0x1729ff=>{const _0x226f2f=_0x293667;let _0x556fa6=_0x7b74de=>_0x1729ff[_0x226f2f(0x13d)](_0x7b74de);_0x5031b3[_0x226f2f(0x15b)]('message',_0x556fa6),_0x2cc6df[_0x226f2f(0x146)]((0x0,_0x4b77a4[_0x226f2f(0x163)])(()=>_0x5031b3[_0x226f2f(0x15a)](_0x226f2f(0x13e),_0x556fa6)));})['pipe']((0x0,_0x327ce8[_0x293667(0x142)])())};}catch(_0x393aa6){return console[_0x293667(0x13f)](_0x393aa6),null;}}};_0x3ecc4b=_0x4f0998([_0x1acda2(0x0,_0x4b77a4[_0x55abbf(0x139)])],_0x3ecc4b);function _0x27ecfb(_0x2bb804){'@babel/helpers - typeof';const _0x208b1a=_0x55abbf;return _0x27ecfb=typeof Symbol==_0x208b1a(0x157)&&typeof Symbol['iterator']==_0x208b1a(0x12e)?function(_0x4bee44){return typeof _0x4bee44;}:function(_0x457974){const _0x3d6b81=_0x208b1a;return _0x457974&&typeof Symbol==_0x3d6b81(0x157)&&_0x457974[_0x3d6b81(0x12c)]===Symbol&&_0x457974!==Symbol[_0x3d6b81(0x141)]?_0x3d6b81(0x12e):typeof _0x457974;},_0x27ecfb(_0x2bb804);}function _0x54eb43(_0x30cac7,_0x2318a9){const _0x58259b=_0x55abbf;if(_0x27ecfb(_0x30cac7)!=_0x58259b(0x148)||!_0x30cac7)return _0x30cac7;var _0x29ad49=_0x30cac7[Symbol[_0x58259b(0x15f)]];if(_0x29ad49!==void 0x0){var _0x169178=_0x29ad49[_0x58259b(0x140)](_0x30cac7,_0x2318a9||_0x58259b(0x134));if(_0x27ecfb(_0x169178)!=_0x58259b(0x148))return _0x169178;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2318a9===_0x58259b(0x162)?String:Number)(_0x30cac7);}function _0x25083f(_0x13c6ba){const _0x269cae=_0x55abbf;var _0x4f69bf=_0x54eb43(_0x13c6ba,_0x269cae(0x162));return _0x27ecfb(_0x4f69bf)==_0x269cae(0x12e)?_0x4f69bf:_0x4f69bf+'';}function _0x4a998d(_0x3ce971,_0x42c54e,_0xf88879){const _0xb99e80=_0x55abbf;return(_0x42c54e=_0x25083f(_0x42c54e))in _0x3ce971?Object[_0xb99e80(0x121)](_0x3ce971,_0x42c54e,{'value':_0xf88879,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ce971[_0x42c54e]=_0xf88879,_0x3ce971;}let _0x413669=class extends _0x4b77a4['Plugin']{constructor(_0x483b26=_0xc71be2,_0x15e624,_0x3027da){const _0x263b23=_0x55abbf;super(),this['_configService']=_0x15e624,this[_0x263b23(0x137)]=_0x3027da,this[_0x263b23(0x14a)][_0x263b23(0x153)](_0x3fd30a,_0x483b26);}[_0x55abbf(0x164)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x4ef592=_0x55abbf;(0x0,_0x4b77a4[_0x4ef592(0x124)])(this['_injector'],[[_0x1441ee[_0x4ef592(0x12f)],{'useClass':_0x3ecc4b}]]);}};_0x4a998d(_0x413669,_0x55abbf(0x14d),_0x55abbf(0x15e)),_0x4a998d(_0x413669,_0x55abbf(0x11f),_0x1b7050),_0x4a998d(_0x413669,_0x55abbf(0x160),_0x1b8fa9),_0x413669=_0x4f0998([(0x0,_0x4b77a4[_0x55abbf(0x129)])(_0x26b9bc[_0x55abbf(0x143)]),_0x1acda2(0x1,_0x4b77a4[_0x55abbf(0x139)]),_0x1acda2(0x2,(0x0,_0x4b77a4['Inject'])(_0x4b77a4[_0x55abbf(0x147)]))],_0x413669);let _0x163e1a=class extends _0x26b9bc[_0x55abbf(0x145)]{constructor(_0x33c16d,_0xa6c812,_0x36be0a,_0x17c154,_0x34cf9c){const _0x569e04=_0x55abbf;super(_0x33c16d,_0xa6c812,_0x36be0a,_0x17c154,_0x34cf9c);let _0x229368=this[_0x569e04(0x14a)]['getConfig'](_0x26b9bc['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService'][_0x569e04(0x11b)]({'interceptor':(_0x3acce5,_0x9c14e9)=>{const _0x304360=_0x569e04;let _0x993b0=_0x3acce5[_0x304360(0x11d)];if(_0x229368!=null&&_0x229368[_0x304360(0x158)]){for(let _0x57102a in _0x229368[_0x304360(0x158)])_0x993b0[_0x304360(0x122)](_0x57102a,_0x229368[_0x304360(0x158)][_0x57102a]);}return _0x9c14e9(_0x3acce5);}});}async['createSocket'](_0x21dbc2){return this['_doCreateSocket'](_0x21dbc2);}};_0x163e1a=_0x4f0998([_0x1acda2(0x0,(0x0,_0x4b77a4[_0x55abbf(0x144)])(_0x4b77a4[_0x55abbf(0x147)])),_0x1acda2(0x1,(0x0,_0x4b77a4[_0x55abbf(0x144)])(_0x1441ee['HTTPService'])),_0x1acda2(0x2,_0x4b77a4[_0x55abbf(0x139)]),_0x1acda2(0x3,_0x4b77a4[_0x55abbf(0x12d)]),_0x1acda2(0x4,_0x8473ac['ISnapshotServerService'])],_0x163e1a),_0x564a50['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=_0x3fd30a,Object[_0x55abbf(0x121)](_0x564a50,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x163e1a;}}),Object[_0x55abbf(0x121)](_0x564a50,_0x55abbf(0x156),{'enumerable':!0x0,'get':function(){return _0x413669;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.20.0",
3
+ "version": "0.20.1-insiders.20260418-3a69981",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,18 +45,18 @@
45
45
  "rxjs": ">=7.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "ws": "8.19.0",
49
- "@univerjs-pro/collaboration": "0.20.0",
50
- "@univerjs/network": "0.20.0",
51
- "@univerjs-pro/collaboration-client": "0.20.0",
52
- "@univerjs/core": "0.20.0"
48
+ "ws": "8.20.0",
49
+ "@univerjs-pro/collaboration": "0.20.1-insiders.20260418-3a69981",
50
+ "@univerjs-pro/collaboration-client": "0.20.1-insiders.20260418-3a69981",
51
+ "@univerjs/network": "0.20.1-insiders.20260418-3a69981",
52
+ "@univerjs/core": "0.20.1-insiders.20260418-3a69981"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/ws": "8.18.1",
56
56
  "rxjs": "7.8.2",
57
- "typescript": "^6.0.2",
58
- "vitest": "^4.1.1",
59
- "@univerjs-infra/shared": "0.20.0"
57
+ "typescript": "^6.0.3",
58
+ "vitest": "^4.1.4",
59
+ "@univerjs-infra/shared": "0.20.1"
60
60
  },
61
61
  "scripts": {
62
62
  "test": "vitest run",