@univerjs-pro/collaboration-client-node 0.25.0-insiders.20260623-012b5a8 → 0.25.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 _0x529030=_0x51cc;(function(_0x1b34dd,_0x6497a0){const _0x55126b=_0x51cc,_0x3637a0=_0x1b34dd();while(!![]){try{const _0x56ad49=-parseInt(_0x55126b(0x103))/0x1*(-parseInt(_0x55126b(0x10d))/0x2)+-parseInt(_0x55126b(0xf7))/0x3*(-parseInt(_0x55126b(0xe7))/0x4)+-parseInt(_0x55126b(0xd2))/0x5*(-parseInt(_0x55126b(0xdd))/0x6)+-parseInt(_0x55126b(0x104))/0x7+parseInt(_0x55126b(0x100))/0x8*(-parseInt(_0x55126b(0xe8))/0x9)+parseInt(_0x55126b(0xe3))/0xa+-parseInt(_0x55126b(0xcc))/0xb;if(_0x56ad49===_0x6497a0)break;else _0x3637a0['push'](_0x3637a0['shift']());}catch(_0x2d2e07){_0x3637a0['push'](_0x3637a0['shift']());}}}(_0xa2f9,0x81128),Object['defineProperty'](exports,Symbol[_0x529030(0xd6)],{'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=_0x529030(0xd8),s={};var c=_0x529030(0xf5),l=_0x529030(0xce);function _0x51cc(_0x125596,_0x5e8d37){_0x125596=_0x125596-0xcb;const _0xa2f955=_0xa2f9();let _0x51ccc1=_0xa2f955[_0x125596];return _0x51ccc1;}function u(_0x3c7c8d,_0x610e44){return function(_0x26d0a3,_0x1b97e){_0x610e44(_0x26d0a3,_0x1b97e,_0x3c7c8d);};}function d(_0xaabf1e,_0x457fdb,_0x3ad4ca,_0x4b89b6){const _0x40eb02=_0x529030;var _0x3fb6b2=arguments[_0x40eb02(0xf0)],_0xa637ed=_0x3fb6b2<0x3?_0x457fdb:_0x4b89b6===null?_0x4b89b6=Object['getOwnPropertyDescriptor'](_0x457fdb,_0x3ad4ca):_0x4b89b6,_0xbc118f;if(typeof Reflect==_0x40eb02(0xe6)&&typeof Reflect[_0x40eb02(0xdc)]==_0x40eb02(0x106))_0xa637ed=Reflect[_0x40eb02(0xdc)](_0xaabf1e,_0x457fdb,_0x3ad4ca,_0x4b89b6);else{for(var _0x46f3f3=_0xaabf1e[_0x40eb02(0xf0)]-0x1;_0x46f3f3>=0x0;_0x46f3f3--)(_0xbc118f=_0xaabf1e[_0x46f3f3])&&(_0xa637ed=(_0x3fb6b2<0x3?_0xbc118f(_0xa637ed):_0x3fb6b2>0x3?_0xbc118f(_0x457fdb,_0x3ad4ca,_0xa637ed):_0xbc118f(_0x457fdb,_0x3ad4ca))||_0xa637ed);}return _0x3fb6b2>0x3&&_0xa637ed&&Object[_0x40eb02(0xfa)](_0x457fdb,_0x3ad4ca,_0xa637ed),_0xa637ed;}let f=class extends t[_0x529030(0x10b)]{constructor(_0x4bb68c){const _0x1e3e2b=_0x529030;super(),this[_0x1e3e2b(0xcb)]=_0x4bb68c;}[_0x529030(0xde)](_0x30053b){const _0x58c58d=_0x529030;var _0x67dcbb;let _0x36e418=((_0x67dcbb=this[_0x58c58d(0xcb)][_0x58c58d(0xdf)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x67dcbb[_0x58c58d(0xf3)])||{};try{let _0x39ac27=new i[(_0x58c58d(0x108))](_0x30053b,{'headers':{..._0x36e418}}),_0x956082=new t[(_0x58c58d(0xcf))]();return{'URL':_0x30053b,'close':(_0x1be32c,_0x3c2b50)=>{const _0x4d0b5e=_0x58c58d;_0x39ac27[_0x4d0b5e(0xf2)](_0x1be32c,_0x3c2b50),_0x956082[_0x4d0b5e(0xf1)]();},'send':_0x535dc4=>{const _0x352cdf=_0x58c58d;_0x39ac27[_0x352cdf(0xd3)](_0x535dc4);},'open$':new r[(_0x58c58d(0x107))](_0x500009=>{const _0x299199=_0x58c58d;let _0x4ff4d3=_0x84658e=>_0x500009[_0x299199(0xda)](_0x84658e);_0x39ac27[_0x299199(0x10c)](_0x299199(0xe9),_0x4ff4d3),_0x956082[_0x299199(0xed)]((0x0,t[_0x299199(0xf4)])(()=>_0x39ac27['removeEventListener'](_0x299199(0xe9),_0x4ff4d3)));})[_0x58c58d(0xfe)]((0x0,r[_0x58c58d(0xfd)])()),'close$':new r[(_0x58c58d(0x107))](_0x769004=>{const _0x2fbcad=_0x58c58d;let _0x140d31=_0x1ebe9d=>_0x769004[_0x2fbcad(0xda)](_0x1ebe9d);_0x39ac27[_0x2fbcad(0x10c)]('close',_0x140d31),_0x956082['add']((0x0,t[_0x2fbcad(0xf4)])(()=>_0x39ac27[_0x2fbcad(0xd5)](_0x2fbcad(0xf2),_0x140d31)));})[_0x58c58d(0xfe)]((0x0,r[_0x58c58d(0xfd)])()),'error$':new r[(_0x58c58d(0x107))](_0x377d43=>{const _0x3d0fec=_0x58c58d;let _0x2e070e=_0x59bceb=>_0x377d43[_0x3d0fec(0xda)](_0x59bceb);_0x39ac27[_0x3d0fec(0x10c)](_0x3d0fec(0xcd),_0x2e070e),_0x956082[_0x3d0fec(0xed)]((0x0,t['toDisposable'])(()=>_0x39ac27[_0x3d0fec(0xd5)](_0x3d0fec(0xcd),_0x2e070e)));})[_0x58c58d(0xfe)]((0x0,r[_0x58c58d(0xfd)])()),'message$':new r['Observable'](_0x56fd3c=>{const _0x499206=_0x58c58d;let _0x24060c=_0x3833ec=>_0x56fd3c[_0x499206(0xda)](_0x3833ec);_0x39ac27['addEventListener'](_0x499206(0xe1),_0x24060c),_0x956082['add']((0x0,t[_0x499206(0xf4)])(()=>_0x39ac27[_0x499206(0xd5)](_0x499206(0xe1),_0x24060c)));})['pipe']((0x0,r[_0x58c58d(0xfd)])())};}catch(_0x2902f0){return console[_0x58c58d(0xcd)](_0x2902f0),null;}}};f=d([u(0x0,t[_0x529030(0x10e)])],f);function p(_0x4f4528){'@babel/helpers - typeof';const _0x4d782c=_0x529030;return p=typeof Symbol==_0x4d782c(0x106)&&typeof Symbol[_0x4d782c(0xd7)]=='symbol'?function(_0x5a05c4){return typeof _0x5a05c4;}:function(_0x58b2d8){const _0x3a599a=_0x4d782c;return _0x58b2d8&&typeof Symbol=='function'&&_0x58b2d8[_0x3a599a(0x105)]===Symbol&&_0x58b2d8!==Symbol['prototype']?_0x3a599a(0xd1):typeof _0x58b2d8;},p(_0x4f4528);}function m(_0x320352,_0x3993d5){const _0x1b55f1=_0x529030;if(p(_0x320352)!=_0x1b55f1(0xe6)||!_0x320352)return _0x320352;var _0x3b3d15=_0x320352[Symbol[_0x1b55f1(0xea)]];if(_0x3b3d15!==void 0x0){var _0x3e4a75=_0x3b3d15[_0x1b55f1(0x101)](_0x320352,_0x3993d5||'default');if(p(_0x3e4a75)!=_0x1b55f1(0xe6))return _0x3e4a75;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3993d5===_0x1b55f1(0xef)?String:Number)(_0x320352);}function h(_0x44c4c0){const _0x5212d3=_0x529030;var _0x46887f=m(_0x44c4c0,'string');return p(_0x46887f)==_0x5212d3(0xd1)?_0x46887f:_0x46887f+'';}function g(_0x19b6f7,_0x2b6669,_0x133c83){return(_0x2b6669=h(_0x2b6669))in _0x19b6f7?Object['defineProperty'](_0x19b6f7,_0x2b6669,{'value':_0x133c83,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x19b6f7[_0x2b6669]=_0x133c83,_0x19b6f7;}let _=class extends t[_0x529030(0xf8)]{constructor(_0x46a140=s,_0x23c8d9,_0x501ebb){const _0x5789be=_0x529030;super(),this['_configService']=_0x23c8d9,this[_0x5789be(0xf6)]=_0x501ebb,this[_0x5789be(0xcb)]['setConfig'](o,_0x46a140);}[_0x529030(0xd0)](){const _0x58f8b2=_0x529030;this[_0x58f8b2(0xe0)]();}[_0x529030(0xe0)](){const _0xa8af29=_0x529030;(0x0,t['registerDependencies'])(this[_0xa8af29(0xf6)],[[n[_0xa8af29(0xf9)],{'useClass':f}]]);}};g(_,_0x529030(0xdb),_0x529030(0xff)),g(_,_0x529030(0xfb),c),g(_,'version',l),_=d([(0x0,t[_0x529030(0xe5)])(e[_0x529030(0x10a)]),u(0x1,t[_0x529030(0x10e)]),u(0x2,(0x0,t[_0x529030(0xfc)])(t[_0x529030(0x109)]))],_);let v=class extends e[_0x529030(0xd9)]{constructor(_0x797621,_0x1b157d,_0xe01064,_0x5f3401,_0xe119bc){const _0xe85f63=_0x529030;super(_0x797621,_0x1b157d,_0xe01064,_0x5f3401,_0xe119bc);let _0x54c049=this[_0xe85f63(0xcb)][_0xe85f63(0xdf)](e[_0xe85f63(0xec)]);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0xb190d9,_0x11dea8)=>{const _0xcd8164=_0xe85f63;let _0x18f251=_0xb190d9['headers'];if(_0x54c049!=null&&_0x54c049[_0xcd8164(0xf3)]){for(let _0x5bb7f7 in _0x54c049[_0xcd8164(0xf3)])_0x18f251[_0xcd8164(0x102)](_0x5bb7f7,_0x54c049['customHeaders'][_0x5bb7f7]);}return _0x11dea8(_0xb190d9);}});}async['createSocket'](_0x45afe2){const _0x226b28=_0x529030;return this[_0x226b28(0xe4)](_0x45afe2);}};v=d([u(0x0,(0x0,t['Inject'])(t[_0x529030(0x109)])),u(0x1,(0x0,t[_0x529030(0xfc)])(n[_0x529030(0xd4)])),u(0x2,t[_0x529030(0x10e)]),u(0x3,t['ILogService']),u(0x4,a[_0x529030(0xe2)])],v),exports['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=o,Object['defineProperty'](exports,_0x529030(0xee),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x529030(0xfa)](exports,_0x529030(0xeb),{'enumerable':!0x0,'get':function(){return _;}});function _0xa2f9(){const _0x49e391=['pluginName','decorate','54486mAyFwe','createSocket','getConfig','_registerDependencies','message','ISnapshotServerService','3610120PcNDjA','_doCreateSocket','DependentOn','object','4BPsbnr','5770746gXtktL','open','toPrimitive','UniverCollaborationClientNodePlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','add','NodeCollaborationSocketService','string','length','dispose','close','customHeaders','toDisposable','@univerjs-pro/collaboration-client-node','_injector','2553270OopSif','Plugin','ISocketService','defineProperty','packageName','Inject','share','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','8zVAsVG','call','set','689503HMUsxh','2353001LKSuPS','constructor','function','Observable','WebSocket','Injector','UniverCollaborationClientPlugin','Disposable','addEventListener','2QRlhDH','IConfigService','_configService','10045255cTPEjS','error','0.25.0-insiders.20260623-012b5a8','DisposableCollection','onStarting','symbol','285xCgJXW','send','HTTPService','removeEventListener','toStringTag','iterator','collaboration-client-node.config','CollaborationSocketService','next'];_0xa2f9=function(){return _0x49e391;};return _0xa2f9();}
1
+ const _0x51a858=_0x3450;(function(_0x3c31ed,_0x1cc84e){const _0x5ea538=_0x3450,_0x463537=_0x3c31ed();while(!![]){try{const _0x3b864f=parseInt(_0x5ea538(0xdf))/0x1+-parseInt(_0x5ea538(0xd4))/0x2+-parseInt(_0x5ea538(0xf0))/0x3*(parseInt(_0x5ea538(0xb2))/0x4)+parseInt(_0x5ea538(0xb6))/0x5*(parseInt(_0x5ea538(0xc0))/0x6)+parseInt(_0x5ea538(0xda))/0x7+-parseInt(_0x5ea538(0xd2))/0x8*(-parseInt(_0x5ea538(0xf5))/0x9)+-parseInt(_0x5ea538(0xdd))/0xa;if(_0x3b864f===_0x1cc84e)break;else _0x463537['push'](_0x463537['shift']());}catch(_0x12a4df){_0x463537['push'](_0x463537['shift']());}}}(_0x7b9a,0x36049),Object[_0x51a858(0xd6)](exports,Symbol[_0x51a858(0xb7)],{'value':_0x51a858(0xcd)}));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='collaboration-client-node.config',s={};var c='@univerjs-pro/collaboration-client-node',l=_0x51a858(0xd3);function u(_0x5b6c72,_0x3aa126){return function(_0x1971d5,_0x16c70d){_0x3aa126(_0x1971d5,_0x16c70d,_0x5b6c72);};}function d(_0x1927e4,_0x18786e,_0x4f64f6,_0x2585b9){const _0x5b484f=_0x51a858;var _0x3ba81c=arguments[_0x5b484f(0xc8)],_0x24b127=_0x3ba81c<0x3?_0x18786e:_0x2585b9===null?_0x2585b9=Object['getOwnPropertyDescriptor'](_0x18786e,_0x4f64f6):_0x2585b9,_0x1d5fa9;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x24b127=Reflect[_0x5b484f(0xe8)](_0x1927e4,_0x18786e,_0x4f64f6,_0x2585b9);else{for(var _0x588a61=_0x1927e4[_0x5b484f(0xc8)]-0x1;_0x588a61>=0x0;_0x588a61--)(_0x1d5fa9=_0x1927e4[_0x588a61])&&(_0x24b127=(_0x3ba81c<0x3?_0x1d5fa9(_0x24b127):_0x3ba81c>0x3?_0x1d5fa9(_0x18786e,_0x4f64f6,_0x24b127):_0x1d5fa9(_0x18786e,_0x4f64f6))||_0x24b127);}return _0x3ba81c>0x3&&_0x24b127&&Object['defineProperty'](_0x18786e,_0x4f64f6,_0x24b127),_0x24b127;}let f=class extends t['Disposable']{constructor(_0x317caf){const _0x3301c3=_0x51a858;super(),this[_0x3301c3(0xb9)]=_0x317caf;}[_0x51a858(0xec)](_0x7ff2f7){const _0x354143=_0x51a858;var _0x4331f5;let _0x49ae28=((_0x4331f5=this['_configService']['getConfig'](e[_0x354143(0xb4)]))==null?void 0x0:_0x4331f5['customHeaders'])||{};try{let _0x6c37b3=new i[(_0x354143(0xcb))](_0x7ff2f7,{'headers':{..._0x49ae28}}),_0x3988a1=new t[(_0x354143(0xbd))]();return{'URL':_0x7ff2f7,'close':(_0x9e4baf,_0x1d9ff4)=>{const _0x2f5939=_0x354143;_0x6c37b3['close'](_0x9e4baf,_0x1d9ff4),_0x3988a1[_0x2f5939(0xcc)]();},'send':_0x144330=>{const _0x213d10=_0x354143;_0x6c37b3[_0x213d10(0xce)](_0x144330);},'open$':new r[(_0x354143(0xe6))](_0x401aaf=>{const _0x28b369=_0x354143;let _0x2456dc=_0xd83ed4=>_0x401aaf[_0x28b369(0xb8)](_0xd83ed4);_0x6c37b3[_0x28b369(0xc1)](_0x28b369(0xe9),_0x2456dc),_0x3988a1[_0x28b369(0xf1)]((0x0,t['toDisposable'])(()=>_0x6c37b3['removeEventListener']('open',_0x2456dc)));})['pipe']((0x0,r[_0x354143(0xbe)])()),'close$':new r[(_0x354143(0xe6))](_0x12c60f=>{const _0x52f250=_0x354143;let _0x422790=_0x37d97b=>_0x12c60f[_0x52f250(0xb8)](_0x37d97b);_0x6c37b3['addEventListener'](_0x52f250(0xba),_0x422790),_0x3988a1[_0x52f250(0xf1)]((0x0,t[_0x52f250(0xf4)])(()=>_0x6c37b3[_0x52f250(0xcf)]('close',_0x422790)));})[_0x354143(0xc9)]((0x0,r[_0x354143(0xbe)])()),'error$':new r[(_0x354143(0xe6))](_0x4d99c2=>{const _0x5629f1=_0x354143;let _0x9380bb=_0x1499f5=>_0x4d99c2[_0x5629f1(0xb8)](_0x1499f5);_0x6c37b3[_0x5629f1(0xc1)](_0x5629f1(0xe7),_0x9380bb),_0x3988a1[_0x5629f1(0xf1)]((0x0,t[_0x5629f1(0xf4)])(()=>_0x6c37b3[_0x5629f1(0xcf)](_0x5629f1(0xe7),_0x9380bb)));})[_0x354143(0xc9)]((0x0,r[_0x354143(0xbe)])()),'message$':new r[(_0x354143(0xe6))](_0x2363c4=>{const _0x712bc2=_0x354143;let _0x44138b=_0x49a05e=>_0x2363c4[_0x712bc2(0xb8)](_0x49a05e);_0x6c37b3[_0x712bc2(0xc1)]('message',_0x44138b),_0x3988a1[_0x712bc2(0xf1)]((0x0,t[_0x712bc2(0xf4)])(()=>_0x6c37b3[_0x712bc2(0xcf)]('message',_0x44138b)));})[_0x354143(0xc9)]((0x0,r['share'])())};}catch(_0x56cd65){return console['error'](_0x56cd65),null;}}};f=d([u(0x0,t[_0x51a858(0xe1)])],f);function _0x3450(_0x180796,_0x25667b){_0x180796=_0x180796-0xb2;const _0x7b9a3c=_0x7b9a();let _0x345089=_0x7b9a3c[_0x180796];return _0x345089;}function p(_0x3da99c){'@babel/helpers - typeof';const _0x40d0b4=_0x51a858;return p=typeof Symbol=='function'&&typeof Symbol[_0x40d0b4(0xd8)]=='symbol'?function(_0x26b012){return typeof _0x26b012;}:function(_0xb190bb){const _0x93c028=_0x40d0b4;return _0xb190bb&&typeof Symbol==_0x93c028(0xd7)&&_0xb190bb[_0x93c028(0xef)]===Symbol&&_0xb190bb!==Symbol[_0x93c028(0xc4)]?_0x93c028(0xbf):typeof _0xb190bb;},p(_0x3da99c);}function m(_0x31b925,_0x300b8c){const _0x682914=_0x51a858;if(p(_0x31b925)!=_0x682914(0xe0)||!_0x31b925)return _0x31b925;var _0x4dbd80=_0x31b925[Symbol[_0x682914(0xb5)]];if(_0x4dbd80!==void 0x0){var _0x14f37d=_0x4dbd80[_0x682914(0xdc)](_0x31b925,_0x300b8c||_0x682914(0xde));if(p(_0x14f37d)!=_0x682914(0xe0))return _0x14f37d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x300b8c===_0x682914(0xc5)?String:Number)(_0x31b925);}function h(_0x918b29){const _0x525aca=_0x51a858;var _0x5257ae=m(_0x918b29,'string');return p(_0x5257ae)==_0x525aca(0xbf)?_0x5257ae:_0x5257ae+'';}function _0x7b9a(){const _0x24147a=['setConfig','createSocket','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','getConfig','constructor','3rwkWCV','add','version','_doCreateSocket','toDisposable','69507BOXKhR','23204EaVmyo','_registerDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','toPrimitive','305065rfBMKH','toStringTag','next','_configService','close','set','UniverCollaborationClientPlugin','DisposableCollection','share','symbol','12dYWXED','addEventListener','_httpService','CollaborationSocketService','prototype','string','ISocketService','registerDependencies','length','pipe','headers','WebSocket','dispose','Module','send','removeEventListener','Inject','NodeCollaborationSocketService','40HIvMPd','0.25.1','174210mhdLGh','registerHTTPInterceptor','defineProperty','function','iterator','HTTPService','32935NGNTNg','_injector','call','1826230vVkHHe','default','331440zPSouq','object','IConfigService','packageName','customHeaders','DependentOn','Injector','Observable','error','decorate','open','COLLABORATION_CLIENT_NODE_CONFIG_KEY'];_0x7b9a=function(){return _0x24147a;};return _0x7b9a();}function g(_0x2f2bf7,_0x769362,_0x3622f2){const _0x5008b2=_0x51a858;return(_0x769362=h(_0x769362))in _0x2f2bf7?Object[_0x5008b2(0xd6)](_0x2f2bf7,_0x769362,{'value':_0x3622f2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f2bf7[_0x769362]=_0x3622f2,_0x2f2bf7;}let _=class extends t['Plugin']{constructor(_0x404211=s,_0x718ab6,_0x42ad2d){const _0x2001f3=_0x51a858;super(),this[_0x2001f3(0xb9)]=_0x718ab6,this[_0x2001f3(0xdb)]=_0x42ad2d,this[_0x2001f3(0xb9)][_0x2001f3(0xeb)](o,_0x404211);}['onStarting'](){const _0x348934=_0x51a858;this[_0x348934(0xb3)]();}['_registerDependencies'](){const _0x3937e5=_0x51a858;(0x0,t[_0x3937e5(0xc7)])(this[_0x3937e5(0xdb)],[[n[_0x3937e5(0xc6)],{'useClass':f}]]);}};g(_,'pluginName',_0x51a858(0xed)),g(_,_0x51a858(0xe2),c),g(_,_0x51a858(0xf2),l),_=d([(0x0,t[_0x51a858(0xe4)])(e[_0x51a858(0xbc)]),u(0x1,t[_0x51a858(0xe1)]),u(0x2,(0x0,t[_0x51a858(0xd0)])(t[_0x51a858(0xe5)]))],_);let v=class extends e[_0x51a858(0xc3)]{constructor(_0xcfa687,_0x2e1ecb,_0x2c4846,_0x1bdd51,_0x85ed91){const _0x2fed1c=_0x51a858;super(_0xcfa687,_0x2e1ecb,_0x2c4846,_0x1bdd51,_0x85ed91);let _0x2b1c38=this[_0x2fed1c(0xb9)][_0x2fed1c(0xee)](e[_0x2fed1c(0xb4)]);this[_0x2fed1c(0xc2)][_0x2fed1c(0xd5)]({'interceptor':(_0x1f1ae1,_0x548581)=>{const _0x1476c5=_0x2fed1c;let _0x5c756a=_0x1f1ae1[_0x1476c5(0xca)];if(_0x2b1c38!=null&&_0x2b1c38[_0x1476c5(0xe3)]){for(let _0x44b797 in _0x2b1c38[_0x1476c5(0xe3)])_0x5c756a[_0x1476c5(0xbb)](_0x44b797,_0x2b1c38[_0x1476c5(0xe3)][_0x44b797]);}return _0x548581(_0x1f1ae1);}});}async[_0x51a858(0xec)](_0x1dae89){const _0x48e0f9=_0x51a858;return this[_0x48e0f9(0xf3)](_0x1dae89);}};v=d([u(0x0,(0x0,t[_0x51a858(0xd0)])(t[_0x51a858(0xe5)])),u(0x1,(0x0,t['Inject'])(n[_0x51a858(0xd9)])),u(0x2,t[_0x51a858(0xe1)]),u(0x3,t['ILogService']),u(0x4,a['ISnapshotServerService'])],v),exports[_0x51a858(0xea)]=o,Object[_0x51a858(0xd6)](exports,_0x51a858(0xd1),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x51a858(0xd6)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3abc7e=_0x16cb;(function(_0x4baae1,_0x5db63c){const _0x56ee7d=_0x16cb,_0x51d21e=_0x4baae1();while(!![]){try{const _0x3c031a=parseInt(_0x56ee7d(0x1b2))/0x1+-parseInt(_0x56ee7d(0x1a1))/0x2*(parseInt(_0x56ee7d(0x1c3))/0x3)+parseInt(_0x56ee7d(0x1b6))/0x4+parseInt(_0x56ee7d(0x1b4))/0x5*(parseInt(_0x56ee7d(0x1c7))/0x6)+-parseInt(_0x56ee7d(0x1ad))/0x7*(parseInt(_0x56ee7d(0x19a))/0x8)+parseInt(_0x56ee7d(0x1b0))/0x9+parseInt(_0x56ee7d(0x1c5))/0xa;if(_0x3c031a===_0x5db63c)break;else _0x51d21e['push'](_0x51d21e['shift']());}catch(_0x5bb3b1){_0x51d21e['push'](_0x51d21e['shift']());}}}(_0x36bf,0x89ada));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xdc0c8a,CollaborationSocketService as _0x24ce48,UniverCollaborationClientPlugin as _0x5a2c12}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x11433c,Disposable as _0x50ebe7,DisposableCollection as _0x1beba5,IConfigService as _0x1df461,ILogService as _0x3297e2,Inject as _0x195147,Injector as _0x5e63e,Plugin as _0x509595,registerDependencies as _0x308d63,toDisposable as _0x2a8200}from'@univerjs/core';import{HTTPService as _0x239f7b,ISocketService as _0x5442eb}from'@univerjs/network';function _0x16cb(_0x3d3557,_0x1c29c9){_0x3d3557=_0x3d3557-0x19a;const _0x36bfa0=_0x36bf();let _0x16cb96=_0x36bfa0[_0x3d3557];return _0x16cb96;}import{Observable as _0x15efeb,share as _0x32ec48}from'rxjs';import{WebSocket as _0x31303f}from'ws';import{ISnapshotServerService as _0x34d9df}from'@univerjs-pro/collaboration';const y=_0x3abc7e(0x1bf),b={};var x=_0x3abc7e(0x1ca),S=_0x3abc7e(0x19e);function _0x36bf(){const _0x5001e5=['getConfig','278872YBbjlF','_doCreateSocket','function','_injector','addEventListener','default','decorate','createSocket','string','collaboration-client-node.config','prototype','setConfig','_httpService','843UmXSoP','registerHTTPInterceptor','670320sKOdFn','add','6JxKOEb','next','dispose','@univerjs-pro/collaboration-client-node','_registerDependencies','call','32XhRupg','customHeaders','symbol','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','0.25.0-insiders.20260623-012b5a8','close','open','5338fYWuOn','getOwnPropertyDescriptor','defineProperty','iterator','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','pluginName','set','message','constructor','error','458941rQEUvU','_configService','object','9931464nyrCKh','onStarting','174219pyUVwy','pipe','808530swUBQu'];_0x36bf=function(){return _0x5001e5;};return _0x36bf();}function C(_0x24af22,_0x14b7fc){return function(_0x50d4b6,_0x583ebf){_0x14b7fc(_0x50d4b6,_0x583ebf,_0x24af22);};}function w(_0x294cce,_0x431f5c,_0x5a10f6,_0x4c6f8e){const _0x211b41=_0x3abc7e;var _0x341dbc=arguments[_0x211b41(0x1a7)],_0x4cccea=_0x341dbc<0x3?_0x431f5c:_0x4c6f8e===null?_0x4c6f8e=Object[_0x211b41(0x1a2)](_0x431f5c,_0x5a10f6):_0x4c6f8e,_0x1db1da;if(typeof Reflect==_0x211b41(0x1af)&&typeof Reflect['decorate']==_0x211b41(0x1b8))_0x4cccea=Reflect[_0x211b41(0x1bc)](_0x294cce,_0x431f5c,_0x5a10f6,_0x4c6f8e);else{for(var _0x4e1b8d=_0x294cce['length']-0x1;_0x4e1b8d>=0x0;_0x4e1b8d--)(_0x1db1da=_0x294cce[_0x4e1b8d])&&(_0x4cccea=(_0x341dbc<0x3?_0x1db1da(_0x4cccea):_0x341dbc>0x3?_0x1db1da(_0x431f5c,_0x5a10f6,_0x4cccea):_0x1db1da(_0x431f5c,_0x5a10f6))||_0x4cccea);}return _0x341dbc>0x3&&_0x4cccea&&Object[_0x211b41(0x1a3)](_0x431f5c,_0x5a10f6,_0x4cccea),_0x4cccea;}let T=class extends _0x50ebe7{constructor(_0x4542dc){const _0x4dfc8c=_0x3abc7e;super(),this[_0x4dfc8c(0x1ae)]=_0x4542dc;}[_0x3abc7e(0x1bd)](_0x37650d){const _0x6752e8=_0x3abc7e;var _0x4608f3;let _0x26f5a5=((_0x4608f3=this[_0x6752e8(0x1ae)][_0x6752e8(0x1b5)](_0xdc0c8a))==null?void 0x0:_0x4608f3[_0x6752e8(0x19b)])||{};try{let _0x522569=new _0x31303f(_0x37650d,{'headers':{..._0x26f5a5}}),_0x128e9f=new _0x1beba5();return{'URL':_0x37650d,'close':(_0x278022,_0xa184af)=>{const _0x39f06c=_0x6752e8;_0x522569[_0x39f06c(0x19f)](_0x278022,_0xa184af),_0x128e9f[_0x39f06c(0x1c9)]();},'send':_0x1e441f=>{_0x522569['send'](_0x1e441f);},'open$':new _0x15efeb(_0x1cc72f=>{const _0x2188b7=_0x6752e8;let _0x1b7c89=_0x9642a5=>_0x1cc72f[_0x2188b7(0x1c8)](_0x9642a5);_0x522569[_0x2188b7(0x1ba)](_0x2188b7(0x1a0),_0x1b7c89),_0x128e9f['add'](_0x2a8200(()=>_0x522569[_0x2188b7(0x1a5)]('open',_0x1b7c89)));})['pipe'](_0x32ec48()),'close$':new _0x15efeb(_0x3025b3=>{const _0x508008=_0x6752e8;let _0x35000e=_0x4aa28d=>_0x3025b3[_0x508008(0x1c8)](_0x4aa28d);_0x522569[_0x508008(0x1ba)](_0x508008(0x19f),_0x35000e),_0x128e9f['add'](_0x2a8200(()=>_0x522569[_0x508008(0x1a5)](_0x508008(0x19f),_0x35000e)));})[_0x6752e8(0x1b3)](_0x32ec48()),'error$':new _0x15efeb(_0x55cb92=>{const _0x26d5bf=_0x6752e8;let _0xc0d000=_0x41e672=>_0x55cb92[_0x26d5bf(0x1c8)](_0x41e672);_0x522569['addEventListener'](_0x26d5bf(0x1ac),_0xc0d000),_0x128e9f[_0x26d5bf(0x1c6)](_0x2a8200(()=>_0x522569['removeEventListener'](_0x26d5bf(0x1ac),_0xc0d000)));})[_0x6752e8(0x1b3)](_0x32ec48()),'message$':new _0x15efeb(_0x35cf9b=>{const _0x5eb8b8=_0x6752e8;let _0x5d77be=_0x31e9c2=>_0x35cf9b[_0x5eb8b8(0x1c8)](_0x31e9c2);_0x522569[_0x5eb8b8(0x1ba)](_0x5eb8b8(0x1aa),_0x5d77be),_0x128e9f[_0x5eb8b8(0x1c6)](_0x2a8200(()=>_0x522569[_0x5eb8b8(0x1a5)](_0x5eb8b8(0x1aa),_0x5d77be)));})[_0x6752e8(0x1b3)](_0x32ec48())};}catch(_0x291e83){return console['error'](_0x291e83),null;}}};T=w([C(0x0,_0x1df461)],T);function E(_0x27702b){'@babel/helpers - typeof';const _0x437fa5=_0x3abc7e;return E=typeof Symbol==_0x437fa5(0x1b8)&&typeof Symbol[_0x437fa5(0x1a4)]==_0x437fa5(0x19c)?function(_0x3595a0){return typeof _0x3595a0;}:function(_0x417677){const _0x816dd9=_0x437fa5;return _0x417677&&typeof Symbol==_0x816dd9(0x1b8)&&_0x417677[_0x816dd9(0x1ab)]===Symbol&&_0x417677!==Symbol[_0x816dd9(0x1c0)]?_0x816dd9(0x19c):typeof _0x417677;},E(_0x27702b);}function D(_0x1106fa,_0x523b63){const _0x4b0185=_0x3abc7e;if(E(_0x1106fa)!='object'||!_0x1106fa)return _0x1106fa;var _0x21c806=_0x1106fa[Symbol['toPrimitive']];if(_0x21c806!==void 0x0){var _0x84831a=_0x21c806[_0x4b0185(0x1cc)](_0x1106fa,_0x523b63||_0x4b0185(0x1bb));if(E(_0x84831a)!=_0x4b0185(0x1af))return _0x84831a;throw TypeError(_0x4b0185(0x1a6));}return(_0x523b63===_0x4b0185(0x1be)?String:Number)(_0x1106fa);}function O(_0x34a786){const _0x3f43c0=_0x3abc7e;var _0x5202ac=D(_0x34a786,_0x3f43c0(0x1be));return E(_0x5202ac)==_0x3f43c0(0x19c)?_0x5202ac:_0x5202ac+'';}function k(_0x4786b3,_0x496537,_0x9a2924){const _0x57056d=_0x3abc7e;return(_0x496537=O(_0x496537))in _0x4786b3?Object[_0x57056d(0x1a3)](_0x4786b3,_0x496537,{'value':_0x9a2924,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4786b3[_0x496537]=_0x9a2924,_0x4786b3;}let A=class extends _0x509595{constructor(_0x1c9096=b,_0x44af24,_0x5c6c82){const _0x28a5a9=_0x3abc7e;super(),this[_0x28a5a9(0x1ae)]=_0x44af24,this['_injector']=_0x5c6c82,this[_0x28a5a9(0x1ae)][_0x28a5a9(0x1c1)](y,_0x1c9096);}[_0x3abc7e(0x1b1)](){const _0xe75c30=_0x3abc7e;this[_0xe75c30(0x1cb)]();}[_0x3abc7e(0x1cb)](){const _0x12494c=_0x3abc7e;_0x308d63(this[_0x12494c(0x1b9)],[[_0x5442eb,{'useClass':T}]]);}};k(A,_0x3abc7e(0x1a8),_0x3abc7e(0x19d)),k(A,'packageName',x),k(A,'version',S),A=w([_0x11433c(_0x5a2c12),C(0x1,_0x1df461),C(0x2,_0x195147(_0x5e63e))],A);let j=class extends _0x24ce48{constructor(_0x1b43eb,_0x1f6a90,_0x513015,_0x3176b8,_0x3d43d0){const _0x751388=_0x3abc7e;super(_0x1b43eb,_0x1f6a90,_0x513015,_0x3176b8,_0x3d43d0);let _0x2067e5=this[_0x751388(0x1ae)][_0x751388(0x1b5)](_0xdc0c8a);this[_0x751388(0x1c2)][_0x751388(0x1c4)]({'interceptor':(_0x98c5fe,_0x253aed)=>{const _0x3041cb=_0x751388;let _0x1fdd0f=_0x98c5fe['headers'];if(_0x2067e5!=null&&_0x2067e5['customHeaders']){for(let _0x1c15e0 in _0x2067e5[_0x3041cb(0x19b)])_0x1fdd0f[_0x3041cb(0x1a9)](_0x1c15e0,_0x2067e5[_0x3041cb(0x19b)][_0x1c15e0]);}return _0x253aed(_0x98c5fe);}});}async[_0x3abc7e(0x1bd)](_0xb6111c){const _0x47927a=_0x3abc7e;return this[_0x47927a(0x1b7)](_0xb6111c);}};j=w([C(0x0,_0x195147(_0x5e63e)),C(0x1,_0x195147(_0x239f7b)),C(0x2,_0x1df461),C(0x3,_0x3297e2),C(0x4,_0x34d9df)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x2ff42c=_0x3266;(function(_0x4eda03,_0x23a556){const _0x33c773=_0x3266,_0x17305f=_0x4eda03();while(!![]){try{const _0x5dc32e=parseInt(_0x33c773(0x12e))/0x1+-parseInt(_0x33c773(0x127))/0x2*(-parseInt(_0x33c773(0x13d))/0x3)+parseInt(_0x33c773(0x12c))/0x4*(-parseInt(_0x33c773(0x124))/0x5)+-parseInt(_0x33c773(0x145))/0x6*(parseInt(_0x33c773(0x14e))/0x7)+-parseInt(_0x33c773(0x131))/0x8+-parseInt(_0x33c773(0x138))/0x9+parseInt(_0x33c773(0x14f))/0xa;if(_0x5dc32e===_0x23a556)break;else _0x17305f['push'](_0x17305f['shift']());}catch(_0x1a60e8){_0x17305f['push'](_0x17305f['shift']());}}}(_0x368d,0x559a6));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x8f4bbd,CollaborationSocketService as _0x8a4bf2,UniverCollaborationClientPlugin as _0x4e0740}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x3eeab3,Disposable as _0x2640ba,DisposableCollection as _0x5b1e22,IConfigService as _0x50c13a,ILogService as _0x1b5bba,Inject as _0x4f7324,Injector as _0x175a86,Plugin as _0xc671d8,registerDependencies as _0x29bcdc,toDisposable as _0xf7b8a6}from'@univerjs/core';import{HTTPService as _0x1db5a9,ISocketService as _0x51c7d6}from'@univerjs/network';import{Observable as _0x4197d8,share as _0x49beba}from'rxjs';import{WebSocket as _0x5f4de1}from'ws';import{ISnapshotServerService as _0x5df9f4}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config',b={};var x=_0x2ff42c(0x133),S=_0x2ff42c(0x14c);function _0x368d(){const _0x4f6d22=['length','customHeaders','next','getOwnPropertyDescriptor','registerHTTPInterceptor','622014gjCGdJ','dispose','_configService','packageName','add','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','0.25.1','message','7iKVGWG','8645460HCEEXa','onStarting','function','string','decorate','344015KYxPjg','prototype','_registerDependencies','8rKozDD','object','defineProperty','iterator','open','36KKfvqB','error','384499XNjyLC','_httpService','pipe','1657784tXGJwq','addEventListener','@univerjs-pro/collaboration-client-node','call','close','version','setConfig','5013900fESHgN','getConfig','_injector','default','toPrimitive','441603OukrkV','symbol','send'];_0x368d=function(){return _0x4f6d22;};return _0x368d();}function C(_0x53ce0e,_0x4ed079){return function(_0x39e76d,_0x1c35c5){_0x4ed079(_0x39e76d,_0x1c35c5,_0x53ce0e);};}function _0x3266(_0x2dcbc1,_0x3577ca){_0x2dcbc1=_0x2dcbc1-0x123;const _0x368d42=_0x368d();let _0x326666=_0x368d42[_0x2dcbc1];return _0x326666;}function w(_0xb4d894,_0x5eab17,_0x13d577,_0x48477d){const _0x549a3f=_0x2ff42c;var _0x2f5f13=arguments[_0x549a3f(0x140)],_0x3e6a58=_0x2f5f13<0x3?_0x5eab17:_0x48477d===null?_0x48477d=Object[_0x549a3f(0x143)](_0x5eab17,_0x13d577):_0x48477d,_0x2284df;if(typeof Reflect=='object'&&typeof Reflect[_0x549a3f(0x123)]==_0x549a3f(0x151))_0x3e6a58=Reflect[_0x549a3f(0x123)](_0xb4d894,_0x5eab17,_0x13d577,_0x48477d);else{for(var _0x21e445=_0xb4d894[_0x549a3f(0x140)]-0x1;_0x21e445>=0x0;_0x21e445--)(_0x2284df=_0xb4d894[_0x21e445])&&(_0x3e6a58=(_0x2f5f13<0x3?_0x2284df(_0x3e6a58):_0x2f5f13>0x3?_0x2284df(_0x5eab17,_0x13d577,_0x3e6a58):_0x2284df(_0x5eab17,_0x13d577))||_0x3e6a58);}return _0x2f5f13>0x3&&_0x3e6a58&&Object[_0x549a3f(0x129)](_0x5eab17,_0x13d577,_0x3e6a58),_0x3e6a58;}let T=class extends _0x2640ba{constructor(_0x4873fe){const _0x58aac5=_0x2ff42c;super(),this[_0x58aac5(0x147)]=_0x4873fe;}['createSocket'](_0x4b6683){const _0x39c799=_0x2ff42c;var _0x2b82f5;let _0x286d83=((_0x2b82f5=this[_0x39c799(0x147)][_0x39c799(0x139)](_0x8f4bbd))==null?void 0x0:_0x2b82f5[_0x39c799(0x141)])||{};try{let _0x64bd70=new _0x5f4de1(_0x4b6683,{'headers':{..._0x286d83}}),_0x82c0be=new _0x5b1e22();return{'URL':_0x4b6683,'close':(_0x34a887,_0x144349)=>{const _0x44cf8a=_0x39c799;_0x64bd70[_0x44cf8a(0x135)](_0x34a887,_0x144349),_0x82c0be[_0x44cf8a(0x146)]();},'send':_0x400fe0=>{const _0x477e26=_0x39c799;_0x64bd70[_0x477e26(0x13f)](_0x400fe0);},'open$':new _0x4197d8(_0x58b816=>{const _0xbac2c0=_0x39c799;let _0x8cb705=_0xacc260=>_0x58b816['next'](_0xacc260);_0x64bd70[_0xbac2c0(0x132)](_0xbac2c0(0x12b),_0x8cb705),_0x82c0be[_0xbac2c0(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener']('open',_0x8cb705)));})[_0x39c799(0x130)](_0x49beba()),'close$':new _0x4197d8(_0x3cb741=>{const _0x1afe75=_0x39c799;let _0x4614f9=_0xd14224=>_0x3cb741['next'](_0xd14224);_0x64bd70[_0x1afe75(0x132)](_0x1afe75(0x135),_0x4614f9),_0x82c0be[_0x1afe75(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener'](_0x1afe75(0x135),_0x4614f9)));})[_0x39c799(0x130)](_0x49beba()),'error$':new _0x4197d8(_0x5ea3b7=>{const _0x76a1c0=_0x39c799;let _0x532bed=_0x184cf3=>_0x5ea3b7[_0x76a1c0(0x142)](_0x184cf3);_0x64bd70[_0x76a1c0(0x132)](_0x76a1c0(0x12d),_0x532bed),_0x82c0be[_0x76a1c0(0x149)](_0xf7b8a6(()=>_0x64bd70[_0x76a1c0(0x14a)]('error',_0x532bed)));})[_0x39c799(0x130)](_0x49beba()),'message$':new _0x4197d8(_0x2b45f5=>{const _0xa8d019=_0x39c799;let _0x584297=_0x3e42d3=>_0x2b45f5[_0xa8d019(0x142)](_0x3e42d3);_0x64bd70['addEventListener'](_0xa8d019(0x14d),_0x584297),_0x82c0be['add'](_0xf7b8a6(()=>_0x64bd70[_0xa8d019(0x14a)](_0xa8d019(0x14d),_0x584297)));})[_0x39c799(0x130)](_0x49beba())};}catch(_0x59147d){return console[_0x39c799(0x12d)](_0x59147d),null;}}};T=w([C(0x0,_0x50c13a)],T);function E(_0x5e176b){'@babel/helpers - typeof';const _0x383a60=_0x2ff42c;return E=typeof Symbol==_0x383a60(0x151)&&typeof Symbol[_0x383a60(0x12a)]==_0x383a60(0x13e)?function(_0x19fa4f){return typeof _0x19fa4f;}:function(_0x5b8dd1){const _0x7dfc80=_0x383a60;return _0x5b8dd1&&typeof Symbol=='function'&&_0x5b8dd1['constructor']===Symbol&&_0x5b8dd1!==Symbol[_0x7dfc80(0x125)]?_0x7dfc80(0x13e):typeof _0x5b8dd1;},E(_0x5e176b);}function D(_0x24dc4a,_0x2da77e){const _0x393ca9=_0x2ff42c;if(E(_0x24dc4a)!='object'||!_0x24dc4a)return _0x24dc4a;var _0x4a049c=_0x24dc4a[Symbol[_0x393ca9(0x13c)]];if(_0x4a049c!==void 0x0){var _0x423195=_0x4a049c[_0x393ca9(0x134)](_0x24dc4a,_0x2da77e||_0x393ca9(0x13b));if(E(_0x423195)!=_0x393ca9(0x128))return _0x423195;throw TypeError(_0x393ca9(0x14b));}return(_0x2da77e===_0x393ca9(0x152)?String:Number)(_0x24dc4a);}function O(_0x176cc4){const _0x304180=_0x2ff42c;var _0x5b7396=D(_0x176cc4,'string');return E(_0x5b7396)==_0x304180(0x13e)?_0x5b7396:_0x5b7396+'';}function k(_0x4becc7,_0x488f9f,_0x393492){const _0x3f4fad=_0x2ff42c;return(_0x488f9f=O(_0x488f9f))in _0x4becc7?Object[_0x3f4fad(0x129)](_0x4becc7,_0x488f9f,{'value':_0x393492,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4becc7[_0x488f9f]=_0x393492,_0x4becc7;}let A=class extends _0xc671d8{constructor(_0x233305=b,_0x26f45d,_0x182f5b){const _0x46bf88=_0x2ff42c;super(),this['_configService']=_0x26f45d,this[_0x46bf88(0x13a)]=_0x182f5b,this['_configService'][_0x46bf88(0x137)](y,_0x233305);}[_0x2ff42c(0x150)](){const _0x4c9aac=_0x2ff42c;this[_0x4c9aac(0x126)]();}[_0x2ff42c(0x126)](){const _0x40c58e=_0x2ff42c;_0x29bcdc(this[_0x40c58e(0x13a)],[[_0x51c7d6,{'useClass':T}]]);}};k(A,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x2ff42c(0x148),x),k(A,_0x2ff42c(0x136),S),A=w([_0x3eeab3(_0x4e0740),C(0x1,_0x50c13a),C(0x2,_0x4f7324(_0x175a86))],A);let j=class extends _0x8a4bf2{constructor(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67){const _0x1707ff=_0x2ff42c;super(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67);let _0x2e1eb9=this[_0x1707ff(0x147)][_0x1707ff(0x139)](_0x8f4bbd);this[_0x1707ff(0x12f)][_0x1707ff(0x144)]({'interceptor':(_0x557bd8,_0x5d95c8)=>{const _0xcbc345=_0x1707ff;let _0x2ae030=_0x557bd8['headers'];if(_0x2e1eb9!=null&&_0x2e1eb9[_0xcbc345(0x141)]){for(let _0x3410b1 in _0x2e1eb9['customHeaders'])_0x2ae030['set'](_0x3410b1,_0x2e1eb9['customHeaders'][_0x3410b1]);}return _0x5d95c8(_0x557bd8);}});}async['createSocket'](_0x14f773){return this['_doCreateSocket'](_0x14f773);}};j=w([C(0x0,_0x4f7324(_0x175a86)),C(0x1,_0x4f7324(_0x1db5a9)),C(0x2,_0x50c13a),C(0x3,_0x1b5bba),C(0x4,_0x5df9f4)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3abc7e=_0x16cb;(function(_0x4baae1,_0x5db63c){const _0x56ee7d=_0x16cb,_0x51d21e=_0x4baae1();while(!![]){try{const _0x3c031a=parseInt(_0x56ee7d(0x1b2))/0x1+-parseInt(_0x56ee7d(0x1a1))/0x2*(parseInt(_0x56ee7d(0x1c3))/0x3)+parseInt(_0x56ee7d(0x1b6))/0x4+parseInt(_0x56ee7d(0x1b4))/0x5*(parseInt(_0x56ee7d(0x1c7))/0x6)+-parseInt(_0x56ee7d(0x1ad))/0x7*(parseInt(_0x56ee7d(0x19a))/0x8)+parseInt(_0x56ee7d(0x1b0))/0x9+parseInt(_0x56ee7d(0x1c5))/0xa;if(_0x3c031a===_0x5db63c)break;else _0x51d21e['push'](_0x51d21e['shift']());}catch(_0x5bb3b1){_0x51d21e['push'](_0x51d21e['shift']());}}}(_0x36bf,0x89ada));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xdc0c8a,CollaborationSocketService as _0x24ce48,UniverCollaborationClientPlugin as _0x5a2c12}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x11433c,Disposable as _0x50ebe7,DisposableCollection as _0x1beba5,IConfigService as _0x1df461,ILogService as _0x3297e2,Inject as _0x195147,Injector as _0x5e63e,Plugin as _0x509595,registerDependencies as _0x308d63,toDisposable as _0x2a8200}from'@univerjs/core';import{HTTPService as _0x239f7b,ISocketService as _0x5442eb}from'@univerjs/network';function _0x16cb(_0x3d3557,_0x1c29c9){_0x3d3557=_0x3d3557-0x19a;const _0x36bfa0=_0x36bf();let _0x16cb96=_0x36bfa0[_0x3d3557];return _0x16cb96;}import{Observable as _0x15efeb,share as _0x32ec48}from'rxjs';import{WebSocket as _0x31303f}from'ws';import{ISnapshotServerService as _0x34d9df}from'@univerjs-pro/collaboration';const y=_0x3abc7e(0x1bf),b={};var x=_0x3abc7e(0x1ca),S=_0x3abc7e(0x19e);function _0x36bf(){const _0x5001e5=['getConfig','278872YBbjlF','_doCreateSocket','function','_injector','addEventListener','default','decorate','createSocket','string','collaboration-client-node.config','prototype','setConfig','_httpService','843UmXSoP','registerHTTPInterceptor','670320sKOdFn','add','6JxKOEb','next','dispose','@univerjs-pro/collaboration-client-node','_registerDependencies','call','32XhRupg','customHeaders','symbol','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','0.25.0-insiders.20260623-012b5a8','close','open','5338fYWuOn','getOwnPropertyDescriptor','defineProperty','iterator','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','pluginName','set','message','constructor','error','458941rQEUvU','_configService','object','9931464nyrCKh','onStarting','174219pyUVwy','pipe','808530swUBQu'];_0x36bf=function(){return _0x5001e5;};return _0x36bf();}function C(_0x24af22,_0x14b7fc){return function(_0x50d4b6,_0x583ebf){_0x14b7fc(_0x50d4b6,_0x583ebf,_0x24af22);};}function w(_0x294cce,_0x431f5c,_0x5a10f6,_0x4c6f8e){const _0x211b41=_0x3abc7e;var _0x341dbc=arguments[_0x211b41(0x1a7)],_0x4cccea=_0x341dbc<0x3?_0x431f5c:_0x4c6f8e===null?_0x4c6f8e=Object[_0x211b41(0x1a2)](_0x431f5c,_0x5a10f6):_0x4c6f8e,_0x1db1da;if(typeof Reflect==_0x211b41(0x1af)&&typeof Reflect['decorate']==_0x211b41(0x1b8))_0x4cccea=Reflect[_0x211b41(0x1bc)](_0x294cce,_0x431f5c,_0x5a10f6,_0x4c6f8e);else{for(var _0x4e1b8d=_0x294cce['length']-0x1;_0x4e1b8d>=0x0;_0x4e1b8d--)(_0x1db1da=_0x294cce[_0x4e1b8d])&&(_0x4cccea=(_0x341dbc<0x3?_0x1db1da(_0x4cccea):_0x341dbc>0x3?_0x1db1da(_0x431f5c,_0x5a10f6,_0x4cccea):_0x1db1da(_0x431f5c,_0x5a10f6))||_0x4cccea);}return _0x341dbc>0x3&&_0x4cccea&&Object[_0x211b41(0x1a3)](_0x431f5c,_0x5a10f6,_0x4cccea),_0x4cccea;}let T=class extends _0x50ebe7{constructor(_0x4542dc){const _0x4dfc8c=_0x3abc7e;super(),this[_0x4dfc8c(0x1ae)]=_0x4542dc;}[_0x3abc7e(0x1bd)](_0x37650d){const _0x6752e8=_0x3abc7e;var _0x4608f3;let _0x26f5a5=((_0x4608f3=this[_0x6752e8(0x1ae)][_0x6752e8(0x1b5)](_0xdc0c8a))==null?void 0x0:_0x4608f3[_0x6752e8(0x19b)])||{};try{let _0x522569=new _0x31303f(_0x37650d,{'headers':{..._0x26f5a5}}),_0x128e9f=new _0x1beba5();return{'URL':_0x37650d,'close':(_0x278022,_0xa184af)=>{const _0x39f06c=_0x6752e8;_0x522569[_0x39f06c(0x19f)](_0x278022,_0xa184af),_0x128e9f[_0x39f06c(0x1c9)]();},'send':_0x1e441f=>{_0x522569['send'](_0x1e441f);},'open$':new _0x15efeb(_0x1cc72f=>{const _0x2188b7=_0x6752e8;let _0x1b7c89=_0x9642a5=>_0x1cc72f[_0x2188b7(0x1c8)](_0x9642a5);_0x522569[_0x2188b7(0x1ba)](_0x2188b7(0x1a0),_0x1b7c89),_0x128e9f['add'](_0x2a8200(()=>_0x522569[_0x2188b7(0x1a5)]('open',_0x1b7c89)));})['pipe'](_0x32ec48()),'close$':new _0x15efeb(_0x3025b3=>{const _0x508008=_0x6752e8;let _0x35000e=_0x4aa28d=>_0x3025b3[_0x508008(0x1c8)](_0x4aa28d);_0x522569[_0x508008(0x1ba)](_0x508008(0x19f),_0x35000e),_0x128e9f['add'](_0x2a8200(()=>_0x522569[_0x508008(0x1a5)](_0x508008(0x19f),_0x35000e)));})[_0x6752e8(0x1b3)](_0x32ec48()),'error$':new _0x15efeb(_0x55cb92=>{const _0x26d5bf=_0x6752e8;let _0xc0d000=_0x41e672=>_0x55cb92[_0x26d5bf(0x1c8)](_0x41e672);_0x522569['addEventListener'](_0x26d5bf(0x1ac),_0xc0d000),_0x128e9f[_0x26d5bf(0x1c6)](_0x2a8200(()=>_0x522569['removeEventListener'](_0x26d5bf(0x1ac),_0xc0d000)));})[_0x6752e8(0x1b3)](_0x32ec48()),'message$':new _0x15efeb(_0x35cf9b=>{const _0x5eb8b8=_0x6752e8;let _0x5d77be=_0x31e9c2=>_0x35cf9b[_0x5eb8b8(0x1c8)](_0x31e9c2);_0x522569[_0x5eb8b8(0x1ba)](_0x5eb8b8(0x1aa),_0x5d77be),_0x128e9f[_0x5eb8b8(0x1c6)](_0x2a8200(()=>_0x522569[_0x5eb8b8(0x1a5)](_0x5eb8b8(0x1aa),_0x5d77be)));})[_0x6752e8(0x1b3)](_0x32ec48())};}catch(_0x291e83){return console['error'](_0x291e83),null;}}};T=w([C(0x0,_0x1df461)],T);function E(_0x27702b){'@babel/helpers - typeof';const _0x437fa5=_0x3abc7e;return E=typeof Symbol==_0x437fa5(0x1b8)&&typeof Symbol[_0x437fa5(0x1a4)]==_0x437fa5(0x19c)?function(_0x3595a0){return typeof _0x3595a0;}:function(_0x417677){const _0x816dd9=_0x437fa5;return _0x417677&&typeof Symbol==_0x816dd9(0x1b8)&&_0x417677[_0x816dd9(0x1ab)]===Symbol&&_0x417677!==Symbol[_0x816dd9(0x1c0)]?_0x816dd9(0x19c):typeof _0x417677;},E(_0x27702b);}function D(_0x1106fa,_0x523b63){const _0x4b0185=_0x3abc7e;if(E(_0x1106fa)!='object'||!_0x1106fa)return _0x1106fa;var _0x21c806=_0x1106fa[Symbol['toPrimitive']];if(_0x21c806!==void 0x0){var _0x84831a=_0x21c806[_0x4b0185(0x1cc)](_0x1106fa,_0x523b63||_0x4b0185(0x1bb));if(E(_0x84831a)!=_0x4b0185(0x1af))return _0x84831a;throw TypeError(_0x4b0185(0x1a6));}return(_0x523b63===_0x4b0185(0x1be)?String:Number)(_0x1106fa);}function O(_0x34a786){const _0x3f43c0=_0x3abc7e;var _0x5202ac=D(_0x34a786,_0x3f43c0(0x1be));return E(_0x5202ac)==_0x3f43c0(0x19c)?_0x5202ac:_0x5202ac+'';}function k(_0x4786b3,_0x496537,_0x9a2924){const _0x57056d=_0x3abc7e;return(_0x496537=O(_0x496537))in _0x4786b3?Object[_0x57056d(0x1a3)](_0x4786b3,_0x496537,{'value':_0x9a2924,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4786b3[_0x496537]=_0x9a2924,_0x4786b3;}let A=class extends _0x509595{constructor(_0x1c9096=b,_0x44af24,_0x5c6c82){const _0x28a5a9=_0x3abc7e;super(),this[_0x28a5a9(0x1ae)]=_0x44af24,this['_injector']=_0x5c6c82,this[_0x28a5a9(0x1ae)][_0x28a5a9(0x1c1)](y,_0x1c9096);}[_0x3abc7e(0x1b1)](){const _0xe75c30=_0x3abc7e;this[_0xe75c30(0x1cb)]();}[_0x3abc7e(0x1cb)](){const _0x12494c=_0x3abc7e;_0x308d63(this[_0x12494c(0x1b9)],[[_0x5442eb,{'useClass':T}]]);}};k(A,_0x3abc7e(0x1a8),_0x3abc7e(0x19d)),k(A,'packageName',x),k(A,'version',S),A=w([_0x11433c(_0x5a2c12),C(0x1,_0x1df461),C(0x2,_0x195147(_0x5e63e))],A);let j=class extends _0x24ce48{constructor(_0x1b43eb,_0x1f6a90,_0x513015,_0x3176b8,_0x3d43d0){const _0x751388=_0x3abc7e;super(_0x1b43eb,_0x1f6a90,_0x513015,_0x3176b8,_0x3d43d0);let _0x2067e5=this[_0x751388(0x1ae)][_0x751388(0x1b5)](_0xdc0c8a);this[_0x751388(0x1c2)][_0x751388(0x1c4)]({'interceptor':(_0x98c5fe,_0x253aed)=>{const _0x3041cb=_0x751388;let _0x1fdd0f=_0x98c5fe['headers'];if(_0x2067e5!=null&&_0x2067e5['customHeaders']){for(let _0x1c15e0 in _0x2067e5[_0x3041cb(0x19b)])_0x1fdd0f[_0x3041cb(0x1a9)](_0x1c15e0,_0x2067e5[_0x3041cb(0x19b)][_0x1c15e0]);}return _0x253aed(_0x98c5fe);}});}async[_0x3abc7e(0x1bd)](_0xb6111c){const _0x47927a=_0x3abc7e;return this[_0x47927a(0x1b7)](_0xb6111c);}};j=w([C(0x0,_0x195147(_0x5e63e)),C(0x1,_0x195147(_0x239f7b)),C(0x2,_0x1df461),C(0x3,_0x3297e2),C(0x4,_0x34d9df)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x2ff42c=_0x3266;(function(_0x4eda03,_0x23a556){const _0x33c773=_0x3266,_0x17305f=_0x4eda03();while(!![]){try{const _0x5dc32e=parseInt(_0x33c773(0x12e))/0x1+-parseInt(_0x33c773(0x127))/0x2*(-parseInt(_0x33c773(0x13d))/0x3)+parseInt(_0x33c773(0x12c))/0x4*(-parseInt(_0x33c773(0x124))/0x5)+-parseInt(_0x33c773(0x145))/0x6*(parseInt(_0x33c773(0x14e))/0x7)+-parseInt(_0x33c773(0x131))/0x8+-parseInt(_0x33c773(0x138))/0x9+parseInt(_0x33c773(0x14f))/0xa;if(_0x5dc32e===_0x23a556)break;else _0x17305f['push'](_0x17305f['shift']());}catch(_0x1a60e8){_0x17305f['push'](_0x17305f['shift']());}}}(_0x368d,0x559a6));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x8f4bbd,CollaborationSocketService as _0x8a4bf2,UniverCollaborationClientPlugin as _0x4e0740}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x3eeab3,Disposable as _0x2640ba,DisposableCollection as _0x5b1e22,IConfigService as _0x50c13a,ILogService as _0x1b5bba,Inject as _0x4f7324,Injector as _0x175a86,Plugin as _0xc671d8,registerDependencies as _0x29bcdc,toDisposable as _0xf7b8a6}from'@univerjs/core';import{HTTPService as _0x1db5a9,ISocketService as _0x51c7d6}from'@univerjs/network';import{Observable as _0x4197d8,share as _0x49beba}from'rxjs';import{WebSocket as _0x5f4de1}from'ws';import{ISnapshotServerService as _0x5df9f4}from'@univerjs-pro/collaboration';const y='collaboration-client-node.config',b={};var x=_0x2ff42c(0x133),S=_0x2ff42c(0x14c);function _0x368d(){const _0x4f6d22=['length','customHeaders','next','getOwnPropertyDescriptor','registerHTTPInterceptor','622014gjCGdJ','dispose','_configService','packageName','add','removeEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','0.25.1','message','7iKVGWG','8645460HCEEXa','onStarting','function','string','decorate','344015KYxPjg','prototype','_registerDependencies','8rKozDD','object','defineProperty','iterator','open','36KKfvqB','error','384499XNjyLC','_httpService','pipe','1657784tXGJwq','addEventListener','@univerjs-pro/collaboration-client-node','call','close','version','setConfig','5013900fESHgN','getConfig','_injector','default','toPrimitive','441603OukrkV','symbol','send'];_0x368d=function(){return _0x4f6d22;};return _0x368d();}function C(_0x53ce0e,_0x4ed079){return function(_0x39e76d,_0x1c35c5){_0x4ed079(_0x39e76d,_0x1c35c5,_0x53ce0e);};}function _0x3266(_0x2dcbc1,_0x3577ca){_0x2dcbc1=_0x2dcbc1-0x123;const _0x368d42=_0x368d();let _0x326666=_0x368d42[_0x2dcbc1];return _0x326666;}function w(_0xb4d894,_0x5eab17,_0x13d577,_0x48477d){const _0x549a3f=_0x2ff42c;var _0x2f5f13=arguments[_0x549a3f(0x140)],_0x3e6a58=_0x2f5f13<0x3?_0x5eab17:_0x48477d===null?_0x48477d=Object[_0x549a3f(0x143)](_0x5eab17,_0x13d577):_0x48477d,_0x2284df;if(typeof Reflect=='object'&&typeof Reflect[_0x549a3f(0x123)]==_0x549a3f(0x151))_0x3e6a58=Reflect[_0x549a3f(0x123)](_0xb4d894,_0x5eab17,_0x13d577,_0x48477d);else{for(var _0x21e445=_0xb4d894[_0x549a3f(0x140)]-0x1;_0x21e445>=0x0;_0x21e445--)(_0x2284df=_0xb4d894[_0x21e445])&&(_0x3e6a58=(_0x2f5f13<0x3?_0x2284df(_0x3e6a58):_0x2f5f13>0x3?_0x2284df(_0x5eab17,_0x13d577,_0x3e6a58):_0x2284df(_0x5eab17,_0x13d577))||_0x3e6a58);}return _0x2f5f13>0x3&&_0x3e6a58&&Object[_0x549a3f(0x129)](_0x5eab17,_0x13d577,_0x3e6a58),_0x3e6a58;}let T=class extends _0x2640ba{constructor(_0x4873fe){const _0x58aac5=_0x2ff42c;super(),this[_0x58aac5(0x147)]=_0x4873fe;}['createSocket'](_0x4b6683){const _0x39c799=_0x2ff42c;var _0x2b82f5;let _0x286d83=((_0x2b82f5=this[_0x39c799(0x147)][_0x39c799(0x139)](_0x8f4bbd))==null?void 0x0:_0x2b82f5[_0x39c799(0x141)])||{};try{let _0x64bd70=new _0x5f4de1(_0x4b6683,{'headers':{..._0x286d83}}),_0x82c0be=new _0x5b1e22();return{'URL':_0x4b6683,'close':(_0x34a887,_0x144349)=>{const _0x44cf8a=_0x39c799;_0x64bd70[_0x44cf8a(0x135)](_0x34a887,_0x144349),_0x82c0be[_0x44cf8a(0x146)]();},'send':_0x400fe0=>{const _0x477e26=_0x39c799;_0x64bd70[_0x477e26(0x13f)](_0x400fe0);},'open$':new _0x4197d8(_0x58b816=>{const _0xbac2c0=_0x39c799;let _0x8cb705=_0xacc260=>_0x58b816['next'](_0xacc260);_0x64bd70[_0xbac2c0(0x132)](_0xbac2c0(0x12b),_0x8cb705),_0x82c0be[_0xbac2c0(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener']('open',_0x8cb705)));})[_0x39c799(0x130)](_0x49beba()),'close$':new _0x4197d8(_0x3cb741=>{const _0x1afe75=_0x39c799;let _0x4614f9=_0xd14224=>_0x3cb741['next'](_0xd14224);_0x64bd70[_0x1afe75(0x132)](_0x1afe75(0x135),_0x4614f9),_0x82c0be[_0x1afe75(0x149)](_0xf7b8a6(()=>_0x64bd70['removeEventListener'](_0x1afe75(0x135),_0x4614f9)));})[_0x39c799(0x130)](_0x49beba()),'error$':new _0x4197d8(_0x5ea3b7=>{const _0x76a1c0=_0x39c799;let _0x532bed=_0x184cf3=>_0x5ea3b7[_0x76a1c0(0x142)](_0x184cf3);_0x64bd70[_0x76a1c0(0x132)](_0x76a1c0(0x12d),_0x532bed),_0x82c0be[_0x76a1c0(0x149)](_0xf7b8a6(()=>_0x64bd70[_0x76a1c0(0x14a)]('error',_0x532bed)));})[_0x39c799(0x130)](_0x49beba()),'message$':new _0x4197d8(_0x2b45f5=>{const _0xa8d019=_0x39c799;let _0x584297=_0x3e42d3=>_0x2b45f5[_0xa8d019(0x142)](_0x3e42d3);_0x64bd70['addEventListener'](_0xa8d019(0x14d),_0x584297),_0x82c0be['add'](_0xf7b8a6(()=>_0x64bd70[_0xa8d019(0x14a)](_0xa8d019(0x14d),_0x584297)));})[_0x39c799(0x130)](_0x49beba())};}catch(_0x59147d){return console[_0x39c799(0x12d)](_0x59147d),null;}}};T=w([C(0x0,_0x50c13a)],T);function E(_0x5e176b){'@babel/helpers - typeof';const _0x383a60=_0x2ff42c;return E=typeof Symbol==_0x383a60(0x151)&&typeof Symbol[_0x383a60(0x12a)]==_0x383a60(0x13e)?function(_0x19fa4f){return typeof _0x19fa4f;}:function(_0x5b8dd1){const _0x7dfc80=_0x383a60;return _0x5b8dd1&&typeof Symbol=='function'&&_0x5b8dd1['constructor']===Symbol&&_0x5b8dd1!==Symbol[_0x7dfc80(0x125)]?_0x7dfc80(0x13e):typeof _0x5b8dd1;},E(_0x5e176b);}function D(_0x24dc4a,_0x2da77e){const _0x393ca9=_0x2ff42c;if(E(_0x24dc4a)!='object'||!_0x24dc4a)return _0x24dc4a;var _0x4a049c=_0x24dc4a[Symbol[_0x393ca9(0x13c)]];if(_0x4a049c!==void 0x0){var _0x423195=_0x4a049c[_0x393ca9(0x134)](_0x24dc4a,_0x2da77e||_0x393ca9(0x13b));if(E(_0x423195)!=_0x393ca9(0x128))return _0x423195;throw TypeError(_0x393ca9(0x14b));}return(_0x2da77e===_0x393ca9(0x152)?String:Number)(_0x24dc4a);}function O(_0x176cc4){const _0x304180=_0x2ff42c;var _0x5b7396=D(_0x176cc4,'string');return E(_0x5b7396)==_0x304180(0x13e)?_0x5b7396:_0x5b7396+'';}function k(_0x4becc7,_0x488f9f,_0x393492){const _0x3f4fad=_0x2ff42c;return(_0x488f9f=O(_0x488f9f))in _0x4becc7?Object[_0x3f4fad(0x129)](_0x4becc7,_0x488f9f,{'value':_0x393492,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4becc7[_0x488f9f]=_0x393492,_0x4becc7;}let A=class extends _0xc671d8{constructor(_0x233305=b,_0x26f45d,_0x182f5b){const _0x46bf88=_0x2ff42c;super(),this['_configService']=_0x26f45d,this[_0x46bf88(0x13a)]=_0x182f5b,this['_configService'][_0x46bf88(0x137)](y,_0x233305);}[_0x2ff42c(0x150)](){const _0x4c9aac=_0x2ff42c;this[_0x4c9aac(0x126)]();}[_0x2ff42c(0x126)](){const _0x40c58e=_0x2ff42c;_0x29bcdc(this[_0x40c58e(0x13a)],[[_0x51c7d6,{'useClass':T}]]);}};k(A,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,_0x2ff42c(0x148),x),k(A,_0x2ff42c(0x136),S),A=w([_0x3eeab3(_0x4e0740),C(0x1,_0x50c13a),C(0x2,_0x4f7324(_0x175a86))],A);let j=class extends _0x8a4bf2{constructor(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67){const _0x1707ff=_0x2ff42c;super(_0x5ddd47,_0x3bf5f4,_0x525640,_0x11ab15,_0x5f2c67);let _0x2e1eb9=this[_0x1707ff(0x147)][_0x1707ff(0x139)](_0x8f4bbd);this[_0x1707ff(0x12f)][_0x1707ff(0x144)]({'interceptor':(_0x557bd8,_0x5d95c8)=>{const _0xcbc345=_0x1707ff;let _0x2ae030=_0x557bd8['headers'];if(_0x2e1eb9!=null&&_0x2e1eb9[_0xcbc345(0x141)]){for(let _0x3410b1 in _0x2e1eb9['customHeaders'])_0x2ae030['set'](_0x3410b1,_0x2e1eb9['customHeaders'][_0x3410b1]);}return _0x5d95c8(_0x557bd8);}});}async['createSocket'](_0x14f773){return this['_doCreateSocket'](_0x14f773);}};j=w([C(0x0,_0x4f7324(_0x175a86)),C(0x1,_0x4f7324(_0x1db5a9)),C(0x2,_0x50c13a),C(0x3,_0x1b5bba),C(0x4,_0x5df9f4)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
@@ -1,4 +1,4 @@
1
- export { COLLABORATION_CLIENT_NODE_CONFIG_KEY } from './config/config';
2
- export type { IUniverCollaborationClientNodeConfig } from './config/config';
1
+ export { COLLABORATION_CLIENT_NODE_CONFIG_KEY } from './config.schema';
2
+ export type { IUniverCollaborationClientNodeConfig } from './config.schema';
3
3
  export { UniverCollaborationClientNodePlugin } from './plugin';
4
4
  export { NodeCollaborationSocketService } from './services/collaboration-socket.service';
@@ -1,4 +1,4 @@
1
- import type { IUniverCollaborationClientNodeConfig } from './config/config';
1
+ import type { IUniverCollaborationClientNodeConfig } from './config.schema';
2
2
  import { IConfigService, Injector, Plugin } from '@univerjs/core';
3
3
  export declare class UniverCollaborationClientNodePlugin extends Plugin {
4
4
  private readonly _configService;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5247(){const _0x5766ec=['object','getConfig','addEventListener','UniverProCollaborationClientNode','IConfigService','ISocketService','Observable','6826qfXDlt','Module','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','135cPBUOj','toPrimitive','Disposable','registerHTTPInterceptor','share','2077376woSfqm','prototype','next','rxjs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeEventListener','pluginName','@univerjs/network','Injector','DisposableCollection','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs-pro/collaboration-client-node','WebSocket','add','CollaborationSocketService','HTTPService','101984iLRUks','onStarting','@univerjs/core','message','version','@univerjs-pro/collaboration-client','ILogService','71165bMAiCL','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','UniverProCollaborationClient','COLLABORATION_CLIENT_NODE_CONFIG_KEY','error','793272dsGVfN','_injector','321OegeUR','11dKWvLQ','packageName','DependentOn','send','iterator','ISnapshotServerService','7jvXOwI','headers','2062240TYgTrU','5415770YarINl','_configService','UniverCollaborationClientPlugin','function','open','Plugin','Inject','defineProperty','toDisposable','symbol','0.25.0-insiders.20260623-012b5a8','NodeCollaborationSocketService','set','_httpService','UniverNetwork','decorate','customHeaders','length','call','getOwnPropertyDescriptor','amd','string','pipe','@univerjs-pro/collaboration','collaboration-client-node.config','_doCreateSocket','_registerDependencies','constructor','exports','UniverCore','close'];_0x5247=function(){return _0x5766ec;};return _0x5247();}function _0xc760(_0x1ded47,_0x175295){_0x1ded47=_0x1ded47-0xef;const _0x524775=_0x5247();let _0xc760d9=_0x524775[_0x1ded47];return _0xc760d9;}(function(_0x56eb37,_0x2f3576){const _0x45509d=_0xc760,_0x2e88f5=_0x56eb37();while(!![]){try{const _0x39b37e=parseInt(_0x45509d(0x13d))/0x1+-parseInt(_0x45509d(0x11e))/0x2*(-parseInt(_0x45509d(0x144))/0x3)+parseInt(_0x45509d(0x126))/0x4+-parseInt(_0x45509d(0xf7))/0x5+parseInt(_0x45509d(0x142))/0x6*(parseInt(_0x45509d(0xf5))/0x7)+-parseInt(_0x45509d(0x136))/0x8*(-parseInt(_0x45509d(0x121))/0x9)+-parseInt(_0x45509d(0xf8))/0xa*(parseInt(_0x45509d(0xef))/0xb);if(_0x39b37e===_0x2f3576)break;else _0x2e88f5['push'](_0x2e88f5['shift']());}catch(_0x4eacc9){_0x2e88f5['push'](_0x2e88f5['shift']());}}}(_0x5247,0x4f5f3),function(_0x48995d,_0x510702){const _0x3f8862=_0xc760;typeof exports=='object'&&typeof module<'u'?_0x510702(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define=='function'&&define[_0x3f8862(0x10c)]?define([_0x3f8862(0x114),_0x3f8862(0x13b),_0x3f8862(0x138),_0x3f8862(0x12d),_0x3f8862(0x129),_0x3f8862(0x10f)],_0x510702):(_0x48995d=typeof globalThis<'u'?globalThis:_0x48995d||self,_0x510702(_0x48995d[_0x3f8862(0x11a)]={},_0x48995d[_0x3f8862(0x13f)],_0x48995d[_0x3f8862(0x115)],_0x48995d[_0x3f8862(0x106)],_0x48995d['rxjs'],_0x48995d['UniverProCollaboration']));}(this,function(_0x4d9536,_0x1d8bf6,_0x3efc8d,_0x559997,_0x280601,_0x20c0ca){const _0x3b773d=_0xc760;Object['defineProperty'](_0x4d9536,Symbol['toStringTag'],{'value':_0x3b773d(0x11f)});var _0x2c6d50=(_0x41296b,_0x5b7fbd)=>()=>(_0x5b7fbd||(_0x41296b((_0x5b7fbd={'exports':{}})['exports'],_0x5b7fbd),_0x41296b=null),_0x5b7fbd[_0x3b773d(0x114)]);let _0xe8db0b=_0x3b773d(0x110),_0x2ac4b3={};var _0x121b20=_0x3b773d(0x131),_0xa16f24=_0x3b773d(0x102),_0x83e997=_0x2c6d50((_0x51fd2e,_0x6bb276)=>{const _0x29c406=_0x3b773d;_0x6bb276[_0x29c406(0x114)]=function(){const _0x160af9=_0x29c406;throw Error(_0x160af9(0x120));};})();function _0x39b5a0(_0x1d42fd,_0x594f86){return function(_0x197d82,_0x4a34df){_0x594f86(_0x197d82,_0x4a34df,_0x1d42fd);};}function _0x1bd937(_0xc132f5,_0x4522b3,_0x1a48e9,_0x219409){const _0x37c2a8=_0x3b773d;var _0x1ec335=arguments[_0x37c2a8(0x109)],_0x146e93=_0x1ec335<0x3?_0x4522b3:_0x219409===null?_0x219409=Object[_0x37c2a8(0x10b)](_0x4522b3,_0x1a48e9):_0x219409,_0x415d78;if(typeof Reflect==_0x37c2a8(0x117)&&typeof Reflect[_0x37c2a8(0x107)]==_0x37c2a8(0xfb))_0x146e93=Reflect['decorate'](_0xc132f5,_0x4522b3,_0x1a48e9,_0x219409);else{for(var _0x58aa43=_0xc132f5[_0x37c2a8(0x109)]-0x1;_0x58aa43>=0x0;_0x58aa43--)(_0x415d78=_0xc132f5[_0x58aa43])&&(_0x146e93=(_0x1ec335<0x3?_0x415d78(_0x146e93):_0x1ec335>0x3?_0x415d78(_0x4522b3,_0x1a48e9,_0x146e93):_0x415d78(_0x4522b3,_0x1a48e9))||_0x146e93);}return _0x1ec335>0x3&&_0x146e93&&Object[_0x37c2a8(0xff)](_0x4522b3,_0x1a48e9,_0x146e93),_0x146e93;}let _0x35074b=class extends _0x3efc8d[_0x3b773d(0x123)]{constructor(_0x3b12c0){const _0x5f4688=_0x3b773d;super(),this[_0x5f4688(0xf9)]=_0x3b12c0;}['createSocket'](_0x39dffa){const _0x41adbb=_0x3b773d;var _0x398c24;let _0x44944c=((_0x398c24=this['_configService'][_0x41adbb(0x118)](_0x1d8bf6[_0x41adbb(0x130)]))==null?void 0x0:_0x398c24[_0x41adbb(0x108)])||{};try{let _0x45d45f=new _0x83e997[(_0x41adbb(0x132))](_0x39dffa,{'headers':{..._0x44944c}}),_0x546906=new _0x3efc8d[(_0x41adbb(0x12f))]();return{'URL':_0x39dffa,'close':(_0x31858c,_0x47c18d)=>{const _0x5b66ea=_0x41adbb;_0x45d45f[_0x5b66ea(0x116)](_0x31858c,_0x47c18d),_0x546906['dispose']();},'send':_0x19a02a=>{const _0x1b31a1=_0x41adbb;_0x45d45f[_0x1b31a1(0xf2)](_0x19a02a);},'open$':new _0x280601[(_0x41adbb(0x11d))](_0x1a0483=>{const _0x2484c3=_0x41adbb;let _0x568ce0=_0x4a245d=>_0x1a0483[_0x2484c3(0x128)](_0x4a245d);_0x45d45f[_0x2484c3(0x119)](_0x2484c3(0xfc),_0x568ce0),_0x546906['add']((0x0,_0x3efc8d['toDisposable'])(()=>_0x45d45f[_0x2484c3(0x12b)](_0x2484c3(0xfc),_0x568ce0)));})[_0x41adbb(0x10e)]((0x0,_0x280601[_0x41adbb(0x125)])()),'close$':new _0x280601['Observable'](_0xf7f4d0=>{const _0x502087=_0x41adbb;let _0x2fab0f=_0x7fad6e=>_0xf7f4d0[_0x502087(0x128)](_0x7fad6e);_0x45d45f[_0x502087(0x119)](_0x502087(0x116),_0x2fab0f),_0x546906[_0x502087(0x133)]((0x0,_0x3efc8d[_0x502087(0x100)])(()=>_0x45d45f['removeEventListener']('close',_0x2fab0f)));})[_0x41adbb(0x10e)]((0x0,_0x280601['share'])()),'error$':new _0x280601['Observable'](_0x50a653=>{const _0x10c387=_0x41adbb;let _0x2b130b=_0x60be85=>_0x50a653['next'](_0x60be85);_0x45d45f['addEventListener']('error',_0x2b130b),_0x546906[_0x10c387(0x133)]((0x0,_0x3efc8d[_0x10c387(0x100)])(()=>_0x45d45f[_0x10c387(0x12b)](_0x10c387(0x141),_0x2b130b)));})[_0x41adbb(0x10e)]((0x0,_0x280601[_0x41adbb(0x125)])()),'message$':new _0x280601['Observable'](_0x4ea549=>{const _0x481d02=_0x41adbb;let _0x18c96d=_0x21aeb9=>_0x4ea549[_0x481d02(0x128)](_0x21aeb9);_0x45d45f[_0x481d02(0x119)]('message',_0x18c96d),_0x546906['add']((0x0,_0x3efc8d[_0x481d02(0x100)])(()=>_0x45d45f[_0x481d02(0x12b)](_0x481d02(0x139),_0x18c96d)));})[_0x41adbb(0x10e)]((0x0,_0x280601[_0x41adbb(0x125)])())};}catch(_0x33674f){return console[_0x41adbb(0x141)](_0x33674f),null;}}};_0x35074b=_0x1bd937([_0x39b5a0(0x0,_0x3efc8d[_0x3b773d(0x11b)])],_0x35074b);function _0xfa0fad(_0x2d10ca){'@babel/helpers - typeof';const _0x34699b=_0x3b773d;return _0xfa0fad=typeof Symbol=='function'&&typeof Symbol[_0x34699b(0xf3)]==_0x34699b(0x101)?function(_0x139fee){return typeof _0x139fee;}:function(_0x5934ce){const _0x3e2973=_0x34699b;return _0x5934ce&&typeof Symbol==_0x3e2973(0xfb)&&_0x5934ce[_0x3e2973(0x113)]===Symbol&&_0x5934ce!==Symbol[_0x3e2973(0x127)]?_0x3e2973(0x101):typeof _0x5934ce;},_0xfa0fad(_0x2d10ca);}function _0x2ebfa8(_0x1f4440,_0x3a3ead){const _0x142266=_0x3b773d;if(_0xfa0fad(_0x1f4440)!=_0x142266(0x117)||!_0x1f4440)return _0x1f4440;var _0x607be6=_0x1f4440[Symbol[_0x142266(0x122)]];if(_0x607be6!==void 0x0){var _0x349c87=_0x607be6[_0x142266(0x10a)](_0x1f4440,_0x3a3ead||'default');if(_0xfa0fad(_0x349c87)!='object')return _0x349c87;throw TypeError(_0x142266(0x12a));}return(_0x3a3ead==='string'?String:Number)(_0x1f4440);}function _0x1dbb9d(_0x8568d7){const _0x2382c5=_0x3b773d;var _0x5036f5=_0x2ebfa8(_0x8568d7,_0x2382c5(0x10d));return _0xfa0fad(_0x5036f5)=='symbol'?_0x5036f5:_0x5036f5+'';}function _0x508c57(_0x22c96f,_0x502409,_0xdb3c9c){const _0x4a696e=_0x3b773d;return(_0x502409=_0x1dbb9d(_0x502409))in _0x22c96f?Object[_0x4a696e(0xff)](_0x22c96f,_0x502409,{'value':_0xdb3c9c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22c96f[_0x502409]=_0xdb3c9c,_0x22c96f;}let _0x488e94=class extends _0x3efc8d[_0x3b773d(0xfd)]{constructor(_0x4dc087=_0x2ac4b3,_0xfaccae,_0x29e518){const _0x3bbddb=_0x3b773d;super(),this[_0x3bbddb(0xf9)]=_0xfaccae,this[_0x3bbddb(0x143)]=_0x29e518,this['_configService']['setConfig'](_0xe8db0b,_0x4dc087);}[_0x3b773d(0x137)](){const _0x16968e=_0x3b773d;this[_0x16968e(0x112)]();}[_0x3b773d(0x112)](){const _0x53598f=_0x3b773d;(0x0,_0x3efc8d['registerDependencies'])(this[_0x53598f(0x143)],[[_0x559997[_0x53598f(0x11c)],{'useClass':_0x35074b}]]);}};_0x508c57(_0x488e94,_0x3b773d(0x12c),_0x3b773d(0x13e)),_0x508c57(_0x488e94,_0x3b773d(0xf0),_0x121b20),_0x508c57(_0x488e94,_0x3b773d(0x13a),_0xa16f24),_0x488e94=_0x1bd937([(0x0,_0x3efc8d[_0x3b773d(0xf1)])(_0x1d8bf6[_0x3b773d(0xfa)]),_0x39b5a0(0x1,_0x3efc8d[_0x3b773d(0x11b)]),_0x39b5a0(0x2,(0x0,_0x3efc8d[_0x3b773d(0xfe)])(_0x3efc8d[_0x3b773d(0x12e)]))],_0x488e94);let _0x326105=class extends _0x1d8bf6[_0x3b773d(0x134)]{constructor(_0xf25c6f,_0x4c2c29,_0x5bf274,_0x12160e,_0x1b1027){const _0x2f19ad=_0x3b773d;super(_0xf25c6f,_0x4c2c29,_0x5bf274,_0x12160e,_0x1b1027);let _0x323bcb=this[_0x2f19ad(0xf9)][_0x2f19ad(0x118)](_0x1d8bf6[_0x2f19ad(0x130)]);this[_0x2f19ad(0x105)][_0x2f19ad(0x124)]({'interceptor':(_0x8d2d90,_0xee3b6a)=>{const _0x356da9=_0x2f19ad;let _0xb6e456=_0x8d2d90[_0x356da9(0xf6)];if(_0x323bcb!=null&&_0x323bcb[_0x356da9(0x108)]){for(let _0x1e3e06 in _0x323bcb['customHeaders'])_0xb6e456[_0x356da9(0x104)](_0x1e3e06,_0x323bcb['customHeaders'][_0x1e3e06]);}return _0xee3b6a(_0x8d2d90);}});}async['createSocket'](_0x32b820){const _0x2cc53c=_0x3b773d;return this[_0x2cc53c(0x111)](_0x32b820);}};_0x326105=_0x1bd937([_0x39b5a0(0x0,(0x0,_0x3efc8d['Inject'])(_0x3efc8d['Injector'])),_0x39b5a0(0x1,(0x0,_0x3efc8d[_0x3b773d(0xfe)])(_0x559997[_0x3b773d(0x135)])),_0x39b5a0(0x2,_0x3efc8d[_0x3b773d(0x11b)]),_0x39b5a0(0x3,_0x3efc8d[_0x3b773d(0x13c)]),_0x39b5a0(0x4,_0x20c0ca[_0x3b773d(0xf4)])],_0x326105),_0x4d9536[_0x3b773d(0x140)]=_0xe8db0b,Object['defineProperty'](_0x4d9536,_0x3b773d(0x103),{'enumerable':!0x0,'get':function(){return _0x326105;}}),Object['defineProperty'](_0x4d9536,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x488e94;}});}));
1
+ function _0x2b8a(){const _0x2808d5=['Observable','_configService','Module','customHeaders','777184ohqwdy','packageName','version','registerDependencies','pipe','1tUdNXh','collaboration-client-node.config','error','DisposableCollection','ISocketService','length','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2072250AZfkif','prototype','removeEventListener','iterator','close','toDisposable','next','send','onStarting','UniverProCollaborationClient','toPrimitive','_doCreateSocket','Inject','pluginName','defineProperty','91758JSpybE','8954DaSsBu','toStringTag','string','object','IConfigService','Disposable','constructor','getConfig','ILogService','dispose','getOwnPropertyDescriptor','UniverCollaborationClientPlugin','function','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','share','12340940mSfpXL','WebSocket','UniverProCollaborationClientNode','rxjs','add','_httpService','@univerjs/core','exports','setConfig','_registerDependencies','_injector','49EeThRX','78HeCGVy','@univerjs/network','addEventListener','COLLABORATION_CLIENT_NODE_CONFIG_KEY','@univerjs-pro/collaboration-client','2232358LQPZrX','@univerjs-pro/collaboration-client-node','15576kvPyRY','68twZjjU','UniverCore','DependentOn','95075yhTmga','call','symbol','set','headers','decorate','0.25.1','UniverCollaborationClientNodePlugin','open','createSocket','message'];_0x2b8a=function(){return _0x2808d5;};return _0x2b8a();}function _0x48d1(_0x2409ac,_0x4a809c){_0x2409ac=_0x2409ac-0x175;const _0x2b8a3a=_0x2b8a();let _0x48d15c=_0x2b8a3a[_0x2409ac];return _0x48d15c;}(function(_0x1e840d,_0x33e99d){const _0x16ac59=_0x48d1,_0x53aee1=_0x1e840d();while(!![]){try{const _0x46c327=parseInt(_0x16ac59(0x19f))/0x1*(parseInt(_0x16ac59(0x185))/0x2)+parseInt(_0x16ac59(0x1b5))/0x3*(-parseInt(_0x16ac59(0x188))/0x4)+parseInt(_0x16ac59(0x18b))/0x5*(-parseInt(_0x16ac59(0x180))/0x6)+parseInt(_0x16ac59(0x17f))/0x7*(parseInt(_0x16ac59(0x19a))/0x8)+-parseInt(_0x16ac59(0x1a6))/0x9+-parseInt(_0x16ac59(0x1c5))/0xa+-parseInt(_0x16ac59(0x1b6))/0xb*(-parseInt(_0x16ac59(0x187))/0xc);if(_0x46c327===_0x33e99d)break;else _0x53aee1['push'](_0x53aee1['shift']());}catch(_0x471322){_0x53aee1['push'](_0x53aee1['shift']());}}}(_0x2b8a,0x97ae6),function(_0x467703,_0x3a88ca){const _0x1f10a8=_0x48d1;typeof exports==_0x1f10a8(0x1b9)&&typeof module<'u'?_0x3a88ca(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x1f10a8(0x1c2)&&define['amd']?define([_0x1f10a8(0x17b),_0x1f10a8(0x184),_0x1f10a8(0x17a),_0x1f10a8(0x181),_0x1f10a8(0x177),'@univerjs-pro/collaboration'],_0x3a88ca):(_0x467703=typeof globalThis<'u'?globalThis:_0x467703||self,_0x3a88ca(_0x467703[_0x1f10a8(0x176)]={},_0x467703[_0x1f10a8(0x1af)],_0x467703[_0x1f10a8(0x189)],_0x467703['UniverNetwork'],_0x467703[_0x1f10a8(0x177)],_0x467703['UniverProCollaboration']));}(this,function(_0x15283b,_0x48e5fc,_0x3d655c,_0x22bdc2,_0x12ab82,_0x246997){const _0x22725e=_0x48d1;Object[_0x22725e(0x1b4)](_0x15283b,Symbol[_0x22725e(0x1b7)],{'value':_0x22725e(0x198)});var _0x304f78=(_0x47af92,_0x1e1e90)=>()=>(_0x1e1e90||(_0x47af92((_0x1e1e90={'exports':{}})[_0x22725e(0x17b)],_0x1e1e90),_0x47af92=null),_0x1e1e90[_0x22725e(0x17b)]);let _0x28337d=_0x22725e(0x1a0),_0x377983={};var _0x167d18=_0x22725e(0x186),_0x1bf2e6=_0x22725e(0x191),_0x563f41=_0x304f78((_0x18cd6f,_0x35b448)=>{_0x35b448['exports']=function(){const _0x5cf9e2=_0x48d1;throw Error(_0x5cf9e2(0x1c3));};})();function _0x5148e7(_0x2ddabe,_0x4b39a8){return function(_0x191ca1,_0xa3eb52){_0x4b39a8(_0x191ca1,_0xa3eb52,_0x2ddabe);};}function _0x27b414(_0x586d69,_0x43fc2a,_0x260e36,_0x483a72){const _0x1bf9e2=_0x22725e;var _0x5ee182=arguments[_0x1bf9e2(0x1a4)],_0x5ddf12=_0x5ee182<0x3?_0x43fc2a:_0x483a72===null?_0x483a72=Object[_0x1bf9e2(0x1c0)](_0x43fc2a,_0x260e36):_0x483a72,_0x44241c;if(typeof Reflect==_0x1bf9e2(0x1b9)&&typeof Reflect[_0x1bf9e2(0x190)]==_0x1bf9e2(0x1c2))_0x5ddf12=Reflect['decorate'](_0x586d69,_0x43fc2a,_0x260e36,_0x483a72);else{for(var _0x4aa83a=_0x586d69[_0x1bf9e2(0x1a4)]-0x1;_0x4aa83a>=0x0;_0x4aa83a--)(_0x44241c=_0x586d69[_0x4aa83a])&&(_0x5ddf12=(_0x5ee182<0x3?_0x44241c(_0x5ddf12):_0x5ee182>0x3?_0x44241c(_0x43fc2a,_0x260e36,_0x5ddf12):_0x44241c(_0x43fc2a,_0x260e36))||_0x5ddf12);}return _0x5ee182>0x3&&_0x5ddf12&&Object[_0x1bf9e2(0x1b4)](_0x43fc2a,_0x260e36,_0x5ddf12),_0x5ddf12;}let _0xe371de=class extends _0x3d655c[_0x22725e(0x1bb)]{constructor(_0x535e91){const _0x125f80=_0x22725e;super(),this[_0x125f80(0x197)]=_0x535e91;}[_0x22725e(0x194)](_0x4a9e36){const _0x31d1f0=_0x22725e;var _0x39be3b;let _0x3d688d=((_0x39be3b=this[_0x31d1f0(0x197)]['getConfig'](_0x48e5fc['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x39be3b[_0x31d1f0(0x199)])||{};try{let _0x406098=new _0x563f41[(_0x31d1f0(0x175))](_0x4a9e36,{'headers':{..._0x3d688d}}),_0x2b2274=new _0x3d655c[(_0x31d1f0(0x1a2))]();return{'URL':_0x4a9e36,'close':(_0x4c61b9,_0x119371)=>{const _0x4e5e5a=_0x31d1f0;_0x406098[_0x4e5e5a(0x1aa)](_0x4c61b9,_0x119371),_0x2b2274[_0x4e5e5a(0x1bf)]();},'send':_0x1f0a37=>{const _0x2bb640=_0x31d1f0;_0x406098[_0x2bb640(0x1ad)](_0x1f0a37);},'open$':new _0x12ab82[(_0x31d1f0(0x196))](_0x2fde1f=>{const _0x3745c2=_0x31d1f0;let _0x50eba6=_0x38e848=>_0x2fde1f[_0x3745c2(0x1ac)](_0x38e848);_0x406098[_0x3745c2(0x182)](_0x3745c2(0x193),_0x50eba6),_0x2b2274[_0x3745c2(0x178)]((0x0,_0x3d655c[_0x3745c2(0x1ab)])(()=>_0x406098[_0x3745c2(0x1a8)](_0x3745c2(0x193),_0x50eba6)));})['pipe']((0x0,_0x12ab82[_0x31d1f0(0x1c4)])()),'close$':new _0x12ab82[(_0x31d1f0(0x196))](_0xe7ffa=>{const _0x55c304=_0x31d1f0;let _0x34fb96=_0x38ccd5=>_0xe7ffa[_0x55c304(0x1ac)](_0x38ccd5);_0x406098['addEventListener'](_0x55c304(0x1aa),_0x34fb96),_0x2b2274['add']((0x0,_0x3d655c[_0x55c304(0x1ab)])(()=>_0x406098[_0x55c304(0x1a8)](_0x55c304(0x1aa),_0x34fb96)));})['pipe']((0x0,_0x12ab82[_0x31d1f0(0x1c4)])()),'error$':new _0x12ab82[(_0x31d1f0(0x196))](_0x5b9195=>{const _0x48c73e=_0x31d1f0;let _0x42c0a6=_0x202681=>_0x5b9195[_0x48c73e(0x1ac)](_0x202681);_0x406098['addEventListener']('error',_0x42c0a6),_0x2b2274[_0x48c73e(0x178)]((0x0,_0x3d655c[_0x48c73e(0x1ab)])(()=>_0x406098[_0x48c73e(0x1a8)](_0x48c73e(0x1a1),_0x42c0a6)));})[_0x31d1f0(0x19e)]((0x0,_0x12ab82['share'])()),'message$':new _0x12ab82[(_0x31d1f0(0x196))](_0x1dc537=>{const _0x42b7d4=_0x31d1f0;let _0x592d92=_0x5052ba=>_0x1dc537[_0x42b7d4(0x1ac)](_0x5052ba);_0x406098[_0x42b7d4(0x182)](_0x42b7d4(0x195),_0x592d92),_0x2b2274[_0x42b7d4(0x178)]((0x0,_0x3d655c[_0x42b7d4(0x1ab)])(()=>_0x406098[_0x42b7d4(0x1a8)](_0x42b7d4(0x195),_0x592d92)));})[_0x31d1f0(0x19e)]((0x0,_0x12ab82[_0x31d1f0(0x1c4)])())};}catch(_0x267026){return console[_0x31d1f0(0x1a1)](_0x267026),null;}}};_0xe371de=_0x27b414([_0x5148e7(0x0,_0x3d655c[_0x22725e(0x1ba)])],_0xe371de);function _0x58f0c7(_0xaef784){'@babel/helpers - typeof';const _0x23fd38=_0x22725e;return _0x58f0c7=typeof Symbol=='function'&&typeof Symbol[_0x23fd38(0x1a9)]==_0x23fd38(0x18d)?function(_0x3113b5){return typeof _0x3113b5;}:function(_0x7612a8){const _0x8d7b2=_0x23fd38;return _0x7612a8&&typeof Symbol==_0x8d7b2(0x1c2)&&_0x7612a8[_0x8d7b2(0x1bc)]===Symbol&&_0x7612a8!==Symbol[_0x8d7b2(0x1a7)]?'symbol':typeof _0x7612a8;},_0x58f0c7(_0xaef784);}function _0x290c2c(_0x4a53cc,_0x23a520){const _0xa9e7d5=_0x22725e;if(_0x58f0c7(_0x4a53cc)!=_0xa9e7d5(0x1b9)||!_0x4a53cc)return _0x4a53cc;var _0x38214b=_0x4a53cc[Symbol[_0xa9e7d5(0x1b0)]];if(_0x38214b!==void 0x0){var _0x4b0134=_0x38214b[_0xa9e7d5(0x18c)](_0x4a53cc,_0x23a520||'default');if(_0x58f0c7(_0x4b0134)!=_0xa9e7d5(0x1b9))return _0x4b0134;throw TypeError(_0xa9e7d5(0x1a5));}return(_0x23a520===_0xa9e7d5(0x1b8)?String:Number)(_0x4a53cc);}function _0x274753(_0x3d52f3){const _0x230888=_0x22725e;var _0x23954c=_0x290c2c(_0x3d52f3,_0x230888(0x1b8));return _0x58f0c7(_0x23954c)==_0x230888(0x18d)?_0x23954c:_0x23954c+'';}function _0x4d2852(_0x1c714c,_0x12bb87,_0x37cb6c){return(_0x12bb87=_0x274753(_0x12bb87))in _0x1c714c?Object['defineProperty'](_0x1c714c,_0x12bb87,{'value':_0x37cb6c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c714c[_0x12bb87]=_0x37cb6c,_0x1c714c;}let _0x112177=class extends _0x3d655c['Plugin']{constructor(_0x46e35e=_0x377983,_0x554696,_0x2b5fa9){const _0x4ee512=_0x22725e;super(),this[_0x4ee512(0x197)]=_0x554696,this['_injector']=_0x2b5fa9,this['_configService'][_0x4ee512(0x17c)](_0x28337d,_0x46e35e);}[_0x22725e(0x1ae)](){const _0x2047b8=_0x22725e;this[_0x2047b8(0x17d)]();}['_registerDependencies'](){const _0x54984f=_0x22725e;(0x0,_0x3d655c[_0x54984f(0x19d)])(this[_0x54984f(0x17e)],[[_0x22bdc2[_0x54984f(0x1a3)],{'useClass':_0xe371de}]]);}};_0x4d2852(_0x112177,_0x22725e(0x1b3),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x4d2852(_0x112177,_0x22725e(0x19b),_0x167d18),_0x4d2852(_0x112177,_0x22725e(0x19c),_0x1bf2e6),_0x112177=_0x27b414([(0x0,_0x3d655c[_0x22725e(0x18a)])(_0x48e5fc[_0x22725e(0x1c1)]),_0x5148e7(0x1,_0x3d655c[_0x22725e(0x1ba)]),_0x5148e7(0x2,(0x0,_0x3d655c[_0x22725e(0x1b2)])(_0x3d655c['Injector']))],_0x112177);let _0x3b5f94=class extends _0x48e5fc['CollaborationSocketService']{constructor(_0x4f0042,_0x32cb12,_0x324866,_0x106b05,_0x531cc3){const _0x3ad32b=_0x22725e;super(_0x4f0042,_0x32cb12,_0x324866,_0x106b05,_0x531cc3);let _0x47d723=this[_0x3ad32b(0x197)][_0x3ad32b(0x1bd)](_0x48e5fc['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x3ad32b(0x179)]['registerHTTPInterceptor']({'interceptor':(_0x31b8a2,_0x5c3561)=>{const _0x1ecf12=_0x3ad32b;let _0x2fe1c8=_0x31b8a2[_0x1ecf12(0x18f)];if(_0x47d723!=null&&_0x47d723[_0x1ecf12(0x199)]){for(let _0x33d3a1 in _0x47d723['customHeaders'])_0x2fe1c8[_0x1ecf12(0x18e)](_0x33d3a1,_0x47d723[_0x1ecf12(0x199)][_0x33d3a1]);}return _0x5c3561(_0x31b8a2);}});}async[_0x22725e(0x194)](_0x3aa595){const _0x5d0584=_0x22725e;return this[_0x5d0584(0x1b1)](_0x3aa595);}};_0x3b5f94=_0x27b414([_0x5148e7(0x0,(0x0,_0x3d655c[_0x22725e(0x1b2)])(_0x3d655c['Injector'])),_0x5148e7(0x1,(0x0,_0x3d655c[_0x22725e(0x1b2)])(_0x22bdc2['HTTPService'])),_0x5148e7(0x2,_0x3d655c[_0x22725e(0x1ba)]),_0x5148e7(0x3,_0x3d655c[_0x22725e(0x1be)]),_0x5148e7(0x4,_0x246997['ISnapshotServerService'])],_0x3b5f94),_0x15283b[_0x22725e(0x183)]=_0x28337d,Object[_0x22725e(0x1b4)](_0x15283b,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x3b5f94;}}),Object[_0x22725e(0x1b4)](_0x15283b,_0x22725e(0x192),{'enumerable':!0x0,'get':function(){return _0x112177;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.25.0-insiders.20260623-012b5a8",
3
+ "version": "0.25.1",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -52,17 +52,17 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.20.1",
55
- "@univerjs-pro/collaboration": "0.25.0-insiders.20260623-012b5a8",
56
- "@univerjs-pro/collaboration-client": "0.25.0-insiders.20260623-012b5a8",
57
- "@univerjs/core": "0.25.0-insiders.20260623-012b5a8",
58
- "@univerjs/network": "0.25.0-insiders.20260623-012b5a8"
55
+ "@univerjs-pro/collaboration": "0.25.1",
56
+ "@univerjs/core": "0.25.1",
57
+ "@univerjs/network": "0.25.1",
58
+ "@univerjs-pro/collaboration-client": "0.25.1"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/ws": "8.18.1",
62
62
  "rxjs": "7.8.2",
63
63
  "typescript": "^6.0.3",
64
- "vitest": "^4.1.9",
65
- "@univerjs-infra/shared": "0.25.0"
64
+ "vitest": "^4.1.6",
65
+ "@univerjs-infra/shared": "0.25.1"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",