@univer-cli/univer-collaboration-runtime-pool 1.6.2 → 1.7.0-alpha.0

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/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x165061=_0x517b;(function(_0x5ea378,_0x3b810d){const _0x2619fa=_0x517b,_0x20f248=_0x5ea378();while(!![]){try{const _0x1ff569=parseInt(_0x2619fa(0x109))/0x1+parseInt(_0x2619fa(0x158))/0x2*(-parseInt(_0x2619fa(0x130))/0x3)+parseInt(_0x2619fa(0xcf))/0x4*(-parseInt(_0x2619fa(0x138))/0x5)+-parseInt(_0x2619fa(0x10e))/0x6*(-parseInt(_0x2619fa(0xf9))/0x7)+-parseInt(_0x2619fa(0x14d))/0x8+-parseInt(_0x2619fa(0x116))/0x9*(-parseInt(_0x2619fa(0x14f))/0xa)+parseInt(_0x2619fa(0xdf))/0xb;if(_0x1ff569===_0x3b810d)break;else _0x20f248['push'](_0x20f248['shift']());}catch(_0x173e93){_0x20f248['push'](_0x20f248['shift']());}}}(_0x110c,0x9649f));import{InstancePoolError as _0x1cbd78,createGenericKeyedInstancePool as _0x3b68cf}from'@univer-cli/generic-keyed-instance-pool';import{fork as _0x1401ec}from'node:child_process';import{fileURLToPath as _0x385a56}from'node:url';var i=class extends Error{[_0x165061(0x125)];[_0x165061(0xd5)];constructor(_0x1112d0,_0x300b7a,_0x196bef={}){const _0xca3703=_0x165061;super(_0x300b7a,_0x196bef),this[_0xca3703(0xe5)]='UniverCollaborationRuntimePoolError',this[_0xca3703(0x125)]=_0x1112d0,this['invalidatesInstance']=_0x196bef[_0xca3703(0xd5)]??!0x1;}},a='CollaborationRuntimeError';function o(_0x438816){const _0x13bce7=_0x165061;return _0x438816 instanceof Error&&_0x438816[_0x13bce7(0xe5)]===_0x13bce7(0x142)&&_0x13bce7(0x125)in _0x438816&&typeof _0x438816[_0x13bce7(0x125)]==_0x13bce7(0xec);}function _0x110c(){const _0x560a4b=['691389dfXEMY','isFinite','mode','units','COLLABORATION_WORKER_CRASHED','exportUnitData','onEvent','entry\x20must\x20not\x20be\x20empty','pulled','replace-mutations','baseRevision','cache','exitCode','maxUnitsPerWorker','type','code','openTimeoutMs','Replacement\x20worker\x20for\x20','pendingMutationCount','values','reconnecting','ignore','Worker\x20returned\x20invalid\x20pending\x20mutations','bufferedChangesetCount','fetch','operation-complete','770721sReRVK','revision','COLLABORATION_LOAD_FAILED','mutationCount','Collaboration\x20runtime\x20lease\x20','unitType','execute-read','error','5ooOPJZ','COLLABORATION_WORKER_OPEN_TIMEOUT','executeWriteCode','open','nothing-to-commit','signalCode','retry','INSTANCE_POOL_CLOSED','permission-rejected','waitForExit','CollaborationRuntimeError','boolean','online','result','export','.ts','release','getPendingMutations','executeReadCode','mutations','exit','5486688NONXYu','message','130UezPCK','reason','COLLABORATION_WORKER_CLOSED','\x20is\x20closed','COLLABORATION_PROTOCOL_ERROR','env','available','pull','set','4YxZQRr','endsWith','once','COLLABORATION_POOL_INVALID_INPUT','commit','replacePendingMutations','from','isArray','reqId','all','disconnect','knownHeadRevision','entry','offline','3225868ilUoGp','operation','COLLABORATION_WORKER_','get-pending-mutations','unitId','transform-failed','invalidatesInstance','state','COLLABORATION_LEASE_CLOSED','timer','fetched','href','exited','close','now','delete','6130575odKbGe','sid','COLLABORATION_WORKER_PROTOCOL_ERROR','invalidate','maxEntries','every','name','acquire','COLLABORATION_WORKER_OPERATION_TIMEOUT','confirmed','reject','key','conflict','string','maxUnitsPerWorker\x20must\x20be\x20a\x20positive\x20integer','ipc','Worker\x20IPC\x20disconnected','isSafeInteger','./worker-child.mjs','request','read','number','terminate','send','up-to-date','Worker\x20returned\x20invalid\x20UnitData','7IAJRLF','instance','COLLABORATION_POOL_CAPACITY_EXCEEDED','get-state','stack','previousMutationCount','get','add','connection','unchanged','startsWith','value','assign','advanced','\x20is\x20unavailable','write','575713XmMGqJ','object','unknown','kill','getState','2939934FENjTd','\x20must\x20be\x20a\x20finite\x20positive\x20number','Worker\x20closed','Worker\x20','status','UNKNOWN','./worker-child.ts','operationTimeoutMs'];_0x110c=function(){return _0x560a4b;};return _0x110c();}function s(_0x2e9327){const _0x3e7863=_0x165061;let _0x5066cd=import.meta.url[_0x3e7863(0x159)](_0x3e7863(0x147))?_0x3e7863(0x114):_0x3e7863(0xf1),_0x5479f8=_0x1401ec(_0x385a56(new URL(_0x5066cd,import.meta.url)),[],{..._0x2e9327===void 0x0?{}:{'env':_0x2e9327},'serialization':_0x3e7863(0x106),'stdio':[_0x3e7863(0x12b),'ignore',_0x3e7863(0x12b),_0x3e7863(0xee)]}),_0x25843d=0x0,_0x384a1a,_0x1a0dbb=new Map(),_0x24b8c1=new Promise(_0x4d3fed=>_0x5479f8[_0x3e7863(0x15a)](_0x3e7863(0xdc),()=>_0x4d3fed()));_0x5479f8['on'](_0x3e7863(0x137),_0x47d908=>_0x23fcde(l(_0x47d908[_0x3e7863(0x14e)],_0x47d908))),_0x5479f8['on'](_0x3e7863(0x14c),(_0x384da1,_0x47adb0)=>_0x23fcde(l('Worker\x20exited\x20with\x20'+(_0x47adb0??_0x384da1)))),_0x5479f8['on'](_0x3e7863(0xcb),()=>_0x23fcde(l(_0x3e7863(0xef)))),_0x5479f8['on'](_0x3e7863(0x14e),_0x32eb78=>{const _0x5be0cf=_0x3e7863;if(!u(_0x32eb78))return;let _0x2b65f0=_0x1a0dbb[_0x5be0cf(0xff)](_0x32eb78['id']);_0x2b65f0&&(_0x1a0dbb['delete'](_0x32eb78['id']),clearTimeout(_0x2b65f0[_0x5be0cf(0xd8)]),_0x32eb78[_0x5be0cf(0x124)]===_0x5be0cf(0x137)?_0x2b65f0[_0x5be0cf(0xe9)](c(_0x32eb78[_0x5be0cf(0x137)])):_0x2b65f0['resolve'](_0x32eb78[_0x5be0cf(0x145)]));});function _0x23fcde(_0x5c400f){const _0x2bdfc0=_0x3e7863;if(!_0x384a1a){_0x384a1a=_0x5c400f;for(let _0x33cfc9 of _0x1a0dbb[_0x2bdfc0(0x129)]())clearTimeout(_0x33cfc9[_0x2bdfc0(0xd8)]),_0x33cfc9[_0x2bdfc0(0xe9)](_0x5c400f);_0x1a0dbb['clear'](),_0x5479f8[_0x2bdfc0(0x122)]===null&&_0x5479f8[_0x2bdfc0(0x13d)]===null&&_0x5479f8[_0x2bdfc0(0x10c)]('SIGKILL');}}return{'units':0x0,'exited':_0x24b8c1,get 'available'(){return!_0x384a1a;},'terminate'(){const _0x40301c=_0x3e7863;_0x23fcde(new i(_0x40301c(0x151),_0x40301c(0x110),{'invalidatesInstance':!0x0}));},async 'request'(_0x2303db,_0x540348,_0x1b475a){if(_0x384a1a)throw _0x384a1a;let _0x33e44b=++_0x25843d;return await new Promise((_0x435599,_0x23f86e)=>{const _0x229a87=_0x517b;let _0x4afe8f=setTimeout(()=>_0x23fcde(new i(_0x540348[_0x229a87(0x124)]===_0x229a87(0x13b)?_0x229a87(0x139):_0x229a87(0xe7),_0x229a87(0x111)+_0x540348[_0x229a87(0x124)]+'\x20timed\x20out\x20after\x20'+_0x1b475a+'ms',{'invalidatesInstance':!0x0})),_0x1b475a);_0x1a0dbb[_0x229a87(0x157)](_0x33e44b,{'reject':_0x23f86e,'resolve':_0x435599,'timer':_0x4afe8f});try{_0x5479f8[_0x229a87(0xf6)]({..._0x540348,'id':_0x33e44b,'runtimeId':_0x2303db},_0x1bab3a=>{const _0x49ef50=_0x229a87;_0x1bab3a&&_0x23fcde(l(_0x1bab3a[_0x49ef50(0x14e)],_0x1bab3a));});}catch(_0x27b139){clearTimeout(_0x4afe8f),_0x1a0dbb[_0x229a87(0xde)](_0x33e44b),_0x23f86e(_0x27b139);}});}};}function c(_0x36b588){const _0x346a6d=_0x165061;let _0x2344db=Error(_0x36b588[_0x346a6d(0x14e)]);return _0x36b588[_0x346a6d(0x125)]?.[_0x346a6d(0x103)]('COLLABORATION_')&&!_0x36b588[_0x346a6d(0x125)][_0x346a6d(0x103)](_0x346a6d(0xd1))?(_0x2344db['name']=a,Object[_0x346a6d(0x105)](_0x2344db,{'code':_0x36b588[_0x346a6d(0x125)],'retryable':_0x36b588['retryable']??!0x1})):(_0x2344db['name']=_0x36b588[_0x346a6d(0xe5)],_0x36b588[_0x346a6d(0x125)]!==void 0x0&&Object[_0x346a6d(0x105)](_0x2344db,{'code':_0x36b588['code']})),_0x36b588[_0x346a6d(0xd5)]&&Object[_0x346a6d(0x105)](_0x2344db,{'invalidatesInstance':!0x0}),_0x36b588[_0x346a6d(0xfd)]!==void 0x0&&(_0x2344db[_0x346a6d(0xfd)]=_0x36b588['stack']),_0x2344db;}function l(_0x3b5dcf,_0x257111){const _0x546666=_0x165061;return new i(_0x546666(0x11a),_0x3b5dcf,{..._0x257111===void 0x0?{}:{'cause':_0x257111},'invalidatesInstance':!0x0});}function u(_0x3faff3){const _0x155df8=_0x165061;return typeof _0x3faff3==_0x155df8(0x10a)&&!!_0x3faff3&&'id'in _0x3faff3&&_0x155df8(0x124)in _0x3faff3&&Number['isSafeInteger'](_0x3faff3['id'])&&(_0x3faff3[_0x155df8(0x124)]==='result'||_0x3faff3[_0x155df8(0x124)]===_0x155df8(0x137));}var d=0x1388;function f(_0x425b61){let _0xd07098=new Set(),_0x4ab89c=0x0;function _0x1fa3a9(){const _0x30b423=_0x517b;for(let _0x450d8e of _0xd07098)if(_0x450d8e[_0x30b423(0x155)]&&_0x450d8e[_0x30b423(0x119)]<_0x425b61['maxUnitsPerWorker'])return _0x450d8e['units']++,_0x450d8e;let _0x2db95b=s(_0x425b61[_0x30b423(0x154)]);return _0x2db95b['units']++,_0xd07098[_0x30b423(0x100)](_0x2db95b),_0x2db95b[_0x30b423(0xdb)]['then'](()=>_0xd07098[_0x30b423(0xde)](_0x2db95b)),_0x2db95b;}return{async 'create'({init:_0x8ee061}){const _0x1d1424=_0x517b;let _0x43ee76=_0x1fa3a9(),_0x18a4e9=++_0x4ab89c,_0xa55cf4=async()=>{const _0x358b9c=_0x517b;try{_0x43ee76[_0x358b9c(0x155)]&&await _0x43ee76[_0x358b9c(0xf2)](_0x18a4e9,{'type':'close'},d);}catch{_0x43ee76[_0x358b9c(0xf5)]();}finally{--_0x43ee76[_0x358b9c(0x119)]===0x0&&(_0x43ee76[_0x358b9c(0xf5)](),await _0x43ee76['exited']);}};try{return p(_0x43ee76,_0x18a4e9,m(await _0x43ee76[_0x1d1424(0xf2)](_0x18a4e9,{'entry':_0x425b61[_0x1d1424(0xcd)],'init':_0x8ee061,'type':_0x1d1424(0x13b)},_0x425b61[_0x1d1424(0x126)])),_0x425b61[_0x1d1424(0x115)],_0xa55cf4);}catch(_0x3aa031){throw await _0xa55cf4(),_0x3aa031;}},async 'destroy'({instance:_0x161e51}){const _0x2fc19e=_0x517b;await _0x161e51[_0x2fc19e(0xdc)]();},async 'waitForExit'(){const _0x47fdd8=_0x517b;await Promise[_0x47fdd8(0xca)](Array[_0x47fdd8(0xc7)](_0xd07098,_0x401ec5=>_0x401ec5[_0x47fdd8(0xdb)]));}};}function p(_0xf344c5,_0x268b38,_0x52d46b,_0x58626d,_0x310245){const _0x7793a0=_0x165061;let _0x36c786=_0x15b8f6=>_0xf344c5[_0x7793a0(0xf2)](_0x268b38,_0x15b8f6,_0x58626d);return{..._0x52d46b,get 'available'(){const _0xcff228=_0x7793a0;return _0xf344c5[_0xcff228(0x155)];},'close':_0x310245,async 'getState'(){const _0xcf36ed=_0x7793a0;return h(await _0x36c786({'type':_0xcf36ed(0xfc)}));},async 'getPendingMutations'(){const _0x5bc735=_0x7793a0;let _0x249920=await _0x36c786({'type':_0x5bc735(0xd2)});if(!C(_0x249920))throw v(_0x5bc735(0x12c));return _0x249920;},async 'executeReadCode'(_0x44ee3e){const _0x330283=_0x7793a0;let _0x2ebe28=g(await _0x36c786({'code':_0x44ee3e,'type':_0x330283(0x136)}));if(!(_0x330283(0x104)in _0x2ebe28)||!w(_0x2ebe28[_0x330283(0x104)]))throw v('Worker\x20returned\x20an\x20invalid\x20read\x20value');return _0x2ebe28;},async 'executeWriteCode'(_0x58f2b2){const _0x85a91d=_0x7793a0;let _0x1d57b6=g(await _0x36c786({'code':_0x58f2b2,'type':'execute-write'}));if(!w(_0x1d57b6['value'])||!C(_0x1d57b6[_0x85a91d(0x14b)]))throw v('Worker\x20returned\x20an\x20invalid\x20write\x20result');return _0x1d57b6;},async 'replacePendingMutations'(_0x2edb63){const _0x25df41=_0x7793a0;let _0x382ed0=g(await _0x36c786({'mutations':_0x2edb63,'type':_0x25df41(0x11f)}));if(!T(_0x382ed0[_0x25df41(0xfe)])||!T(_0x382ed0[_0x25df41(0x128)]))throw v('Worker\x20returned\x20an\x20invalid\x20mutation\x20replacement\x20result');return _0x382ed0;},async 'fetch'(){const _0xaea3e6=_0x7793a0;return _(await _0x36c786({'type':_0xaea3e6(0x12e)}),[_0xaea3e6(0x102),_0xaea3e6(0xd9)]);},async 'pull'(){const _0x17eac2=_0x7793a0;return _(await _0x36c786({'type':_0x17eac2(0x156)}),[_0x17eac2(0xf7),_0x17eac2(0x11e),_0x17eac2(0xeb)]);},async 'commit'(){const _0x4a488b=_0x7793a0;return _(await _0x36c786({'type':'commit'}),[_0x4a488b(0x13c),'pull-required',_0x4a488b(0xe8),_0x4a488b(0x13e),_0x4a488b(0x10b),_0x4a488b(0xeb)]);},async 'exportUnitData'(){const _0x5963d3=_0x7793a0;let _0x2a610a=await _0x36c786({'type':_0x5963d3(0x146)});if(!E(_0x2a610a))throw v(_0x5963d3(0xf8));return _0x2a610a;}};}function m(_0x12e64c){const _0x37e339=_0x165061;if(!E(_0x12e64c)||typeof _0x12e64c[_0x37e339(0xd3)]!=_0x37e339(0xec)||!y(_0x12e64c['unitType']))throw v('Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20metadata');return{'unitId':_0x12e64c['unitId'],'unitType':_0x12e64c[_0x37e339(0x135)]};}function h(_0x4d098a){const _0x17d9b0=_0x165061;if(!E(_0x4d098a)||!b(_0x4d098a[_0x17d9b0(0x101)])||!T(_0x4d098a[_0x17d9b0(0x120)])||!T(_0x4d098a[_0x17d9b0(0xcc)])||Number(_0x4d098a[_0x17d9b0(0xcc)])<Number(_0x4d098a[_0x17d9b0(0x120)])||!T(_0x4d098a[_0x17d9b0(0x128)])||!T(_0x4d098a[_0x17d9b0(0x12d)])||!x(_0x4d098a['awaitingChangeset'])||!S(_0x4d098a[_0x17d9b0(0xeb)]))throw v('Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20state');return _0x4d098a;}function g(_0x34099e){const _0x47a808=_0x165061;if(!E(_0x34099e))throw v('Worker\x20returned\x20an\x20invalid\x20operation\x20result');return{..._0x34099e,'state':h(_0x34099e[_0x47a808(0xd6)])};}function _(_0x567fb6,_0x7784cd){const _0x52df74=_0x165061;let _0xd49bff=g(_0x567fb6);if(typeof _0xd49bff[_0x52df74(0x112)]!='string'||!_0x7784cd['includes'](_0xd49bff['status']))throw v('Worker\x20returned\x20an\x20invalid\x20operation\x20status');return _0xd49bff;}function v(_0x1b7514){const _0x43fde8=_0x165061;return new i(_0x43fde8(0xe1),_0x1b7514,{'invalidatesInstance':!0x0});}function y(_0x506162){return _0x506162===0x1||_0x506162===0x2||_0x506162===0x3||_0x506162===0x5||_0x506162===0x6||_0x506162===0x7;}function b(_0x118b08){const _0x582b8e=_0x165061;return _0x118b08===_0x582b8e(0x144)||_0x118b08===_0x582b8e(0x12a)||_0x118b08===_0x582b8e(0xce)||_0x118b08==='closed';}function x(_0x413d17){const _0x4fb426=_0x165061;return _0x413d17===null||E(_0x413d17)&&T(_0x413d17['baseRevision'])&&T(_0x413d17[_0x4fb426(0x131)])&&T(_0x413d17[_0x4fb426(0x133)])&&(_0x413d17[_0x4fb426(0xe0)]===void 0x0||typeof _0x413d17[_0x4fb426(0xe0)]=='string')&&(_0x413d17[_0x4fb426(0xc9)]===void 0x0||T(_0x413d17[_0x4fb426(0xc9)]));}function S(_0x469b2d){const _0x24c787=_0x165061;return _0x469b2d===null||E(_0x469b2d)&&(_0x469b2d[_0x24c787(0xd0)]===_0x24c787(0x156)||_0x469b2d[_0x24c787(0xd0)]===_0x24c787(0xc5))&&(_0x469b2d['reason']===_0x24c787(0xd4)||_0x469b2d[_0x24c787(0x150)]==='changeset-rejected'||_0x469b2d['reason']===_0x24c787(0x140))&&typeof _0x469b2d[_0x24c787(0x14e)]==_0x24c787(0xec)&&(_0x469b2d[_0x24c787(0x125)]===void 0x0||Number['isInteger'](_0x469b2d[_0x24c787(0x125)]));}function C(_0x1db79a){const _0x41a7d9=_0x165061;return Array['isArray'](_0x1db79a)&&_0x1db79a[_0x41a7d9(0xe4)](_0x4f0a2e=>E(_0x4f0a2e)&&typeof _0x4f0a2e['id']==_0x41a7d9(0xec)&&_0x4f0a2e['id']['length']>0x0&&typeof _0x4f0a2e['data']=='string');}function w(_0x41c1aa){const _0x4942c8=_0x165061;return _0x41c1aa===null||typeof _0x41c1aa==_0x4942c8(0x143)||typeof _0x41c1aa==_0x4942c8(0xec)||typeof _0x41c1aa==_0x4942c8(0xf4)&&Number[_0x4942c8(0x117)](_0x41c1aa)?!0x0:Array[_0x4942c8(0xc8)](_0x41c1aa)?_0x41c1aa['every'](w):E(_0x41c1aa)&&Object['values'](_0x41c1aa)[_0x4942c8(0xe4)](w);}function T(_0x5efe64){const _0x3bc052=_0x165061;return Number[_0x3bc052(0xf0)](_0x5efe64)&&Number(_0x5efe64)>=0x0;}function E(_0x21bc1c){const _0x343971=_0x165061;return typeof _0x21bc1c==_0x343971(0x10a)&&!!_0x21bc1c&&!Array[_0x343971(0xc8)](_0x21bc1c);}var D=0x32,O=0xa,k=0x7530,A=0x7530;function j(_0x10652d){const _0x3fc90f=_0x165061;let _0x8cf724=M(_0x10652d[_0x3fc90f(0xcd)]),_0x2f32f7=_0x10652d[_0x3fc90f(0x126)]??k,_0xfb9f22=_0x10652d[_0x3fc90f(0x115)]??A;N(_0x2f32f7,'openTimeoutMs'),N(_0xfb9f22,_0x3fc90f(0x115));let _0x1d07a0=_0x10652d[_0x3fc90f(0x123)]??O;if(!Number[_0x3fc90f(0xf0)](_0x1d07a0)||_0x1d07a0<=0x0)throw new i(_0x3fc90f(0xc4),_0x3fc90f(0xed));let _0x4caa50=f({'entry':_0x8cf724,'maxUnitsPerWorker':_0x1d07a0,'openTimeoutMs':_0x2f32f7,'operationTimeoutMs':_0xfb9f22,..._0x10652d[_0x3fc90f(0x154)]===void 0x0?{}:{'env':_0x10652d['env']}}),_0x20ba00;try{_0x20ba00=_0x3b68cf({'factory':_0x4caa50,'cache':{..._0x10652d[_0x3fc90f(0x121)],'maxEntries':_0x10652d['cache']?.[_0x3fc90f(0xe3)]??D},'onEvent':_0x32144e});}catch(_0x56c4af){throw P(_0x56c4af);}return{async 'acquire'(_0x4cde58){const _0x3a55a3=_0x3fc90f;try{let _0x209725=await _0x20ba00[_0x3a55a3(0xe6)](_0x4cde58);if(_0x209725[_0x3a55a3(0xfa)][_0x3a55a3(0x155)])return _0x33df0a(_0x209725);let [,_0x1299d8]=await Promise[_0x3a55a3(0xca)]([_0x209725[_0x3a55a3(0xe2)](),_0x20ba00[_0x3a55a3(0xe6)](_0x4cde58)]);if(_0x1299d8[_0x3a55a3(0xfa)]['available'])return _0x33df0a(_0x1299d8);throw await _0x1299d8[_0x3a55a3(0xe2)](),new i('COLLABORATION_WORKER_CLOSED',_0x3a55a3(0x127)+_0x4cde58['key']+_0x3a55a3(0x107),{'invalidatesInstance':!0x0});}catch(_0x2e46b8){throw P(_0x2e46b8);}},async 'close'(){const _0x41181e=_0x3fc90f;try{await _0x20ba00[_0x41181e(0xdc)](),await _0x4caa50[_0x41181e(0x141)]();}catch(_0x244da8){throw P(_0x244da8);}}};function _0x33df0a(_0x5b8014){const _0xf7a914=_0x3fc90f;let _0x3b372c=_0x5b8014['instance'],_0x4dcca5=!0x1,_0x242fee,_0x10dad7=!0x1;return{'key':_0x5b8014[_0xf7a914(0xea)],'unitId':_0x3b372c[_0xf7a914(0xd3)],'unitType':_0x3b372c[_0xf7a914(0x135)],async 'getState'(){const _0x1fd9ed=_0xf7a914;return await _0x333651(_0x1fd9ed(0xd6),async()=>await _0x3b372c[_0x1fd9ed(0x10d)]());},async 'getPendingMutations'(){const _0x49442b=_0xf7a914;return await _0x333651('pending-mutations',async()=>await _0x3b372c[_0x49442b(0x149)]());},async 'execute'(_0x15710e){const _0x103874=_0xf7a914;return _0x15710e[_0x103874(0x118)]===_0x103874(0xf3)?await _0x333651(_0x103874(0xf3),async()=>await _0x3b372c[_0x103874(0x14a)](_0x15710e[_0x103874(0x125)])):await _0x333651(_0x103874(0x108),async()=>await _0x3b372c[_0x103874(0x13a)](_0x15710e['code']));},async 'replacePendingMutations'(_0x37c69f){const _0x40c116=_0xf7a914;return await _0x333651(_0x40c116(0x11f),async()=>await _0x3b372c[_0x40c116(0xc6)](_0x37c69f));},async 'fetch'(){const _0xd128eb=_0xf7a914;return await _0x333651('fetch',async()=>await _0x3b372c[_0xd128eb(0x12e)]());},async 'pull'(){const _0xd57a80=_0xf7a914;return await _0x333651(_0xd57a80(0x156),async()=>await _0x3b372c[_0xd57a80(0x156)]());},async 'commit'(){const _0x12c625=_0xf7a914;return await _0x333651(_0x12c625(0xc5),async()=>await _0x3b372c[_0x12c625(0xc5)]());},async 'exportUnitData'(){const _0x5ae502=_0xf7a914;return await _0x333651('export',async()=>await _0x3b372c[_0x5ae502(0x11b)]());},async 'invalidate'(){const _0x3d2598=_0xf7a914;_0x4dcca5||(_0x4dcca5=!0x0,await _0x5b8014[_0x3d2598(0xe2)]());},async 'release'(){const _0xb43dce=_0xf7a914;_0x4dcca5||(_0x4dcca5=!0x0,_0x10dad7||!_0x3b372c[_0xb43dce(0x155)]?await _0x5b8014[_0xb43dce(0xe2)]():await _0x5b8014[_0xb43dce(0x148)]());}};async function _0x333651(_0x30c711,_0x261fe5){const _0x319beb=_0xf7a914;_0x4539c2();try{return await _0xfddcde(_0x5b8014[_0x319beb(0xea)],_0x30c711,_0x261fe5);}catch(_0x3d3124){throw _0x2b8a91(_0x3d3124),_0x3d3124;}}function _0x4539c2(){const _0xdacc45=_0xf7a914;if(_0x4dcca5)throw new i(_0xdacc45(0xd7),_0xdacc45(0x134)+_0x5b8014[_0xdacc45(0xea)]+_0xdacc45(0x152));if(_0x242fee)throw _0x242fee;}function _0x2b8a91(_0xf7644e){const _0x539ed9=_0xf7a914;(_0xf7644e instanceof i&&_0xf7644e['invalidatesInstance']||o(_0xf7644e)&&(_0xf7644e[_0x539ed9(0x125)]===_0x539ed9(0x153)||_0xf7644e[_0x539ed9(0x125)]==='COLLABORATION_CLOSED'||_0xf7644e[_0x539ed9(0x125)]===_0x539ed9(0x132))||typeof _0xf7644e=='object'&&_0xf7644e&&_0x539ed9(0xd5)in _0xf7644e&&_0xf7644e[_0x539ed9(0xd5)]===!0x0)&&(_0x10dad7=!0x0,_0x242fee=_0xf7644e,_0x516c26({'errorCode':F(_0xf7644e),'key':_0x5b8014[_0x539ed9(0xea)],'type':'instance-failed'}));}}async function _0xfddcde(_0x51738c,_0x41fb89,_0x2ebcb2){const _0x34b5c2=_0x3fc90f;let _0x21dda0=Date[_0x34b5c2(0xdd)](),_0x479cce=await _0x2ebcb2();return _0x516c26({'durationMs':Date[_0x34b5c2(0xdd)]()-_0x21dda0,'key':_0x51738c,'operation':_0x41fb89,'type':_0x34b5c2(0x12f)}),_0x479cce;}function _0x32144e(_0xc21a93){_0x516c26(_0xc21a93);}function _0x516c26(_0x1ecf34){const _0x2545bf=_0x3fc90f;try{_0x10652d[_0x2545bf(0x11c)]?.(_0x1ecf34);}catch{}}}function M(_0x557bfd){const _0x308b46=_0x165061;let _0x483e04=_0x557bfd instanceof URL?_0x557bfd[_0x308b46(0xda)]:_0x557bfd;if(_0x483e04['length']===0x0)throw new i(_0x308b46(0xc4),_0x308b46(0x11d));try{return new URL(_0x483e04)['href'];}catch{throw new i('COLLABORATION_POOL_INVALID_INPUT','entry\x20must\x20be\x20an\x20absolute\x20file\x20URL\x20or\x20another\x20importable\x20URL');}}function N(_0x3f8a02,_0x3816ae){const _0x1a446c=_0x165061;if(!Number[_0x1a446c(0x117)](_0x3f8a02)||_0x3f8a02<=0x0)throw new i(_0x1a446c(0xc4),_0x3816ae+_0x1a446c(0x10f));}function P(_0x25e7ca){const _0x260124=_0x165061;return _0x25e7ca instanceof _0x1cbd78?new i(_0x25e7ca[_0x260124(0x125)]==='INSTANCE_POOL_CAPACITY_EXCEEDED'?_0x260124(0xfb):_0x25e7ca[_0x260124(0x125)]===_0x260124(0x13f)?'COLLABORATION_POOL_CLOSED':_0x260124(0xc4),_0x25e7ca[_0x260124(0x14e)],{'cause':_0x25e7ca}):_0x25e7ca;}function F(_0x31a8a2){const _0x1801fb=_0x165061;return typeof _0x31a8a2==_0x1801fb(0x10a)&&_0x31a8a2&&_0x1801fb(0x125)in _0x31a8a2&&typeof _0x31a8a2['code']=='string'?_0x31a8a2['code']:_0x1801fb(0x113);}function _0x517b(_0x159480,_0x4d6e56){_0x159480=_0x159480-0xc4;const _0x110cb7=_0x110c();let _0x517bc1=_0x110cb7[_0x159480];return _0x517bc1;}function I(_0x26c052){return _0x26c052;}export{i as UniverCollaborationRuntimePoolError,j as createUniverCollaborationRuntimePool,I as defineUniverCollaborationRuntimeWorker};
1
+ const _0x24e0ce=_0xa36f;(function(_0x688dc5,_0x46e2ad){const _0x1a86c8=_0xa36f,_0xdd2729=_0x688dc5();while(!![]){try{const _0x5b9623=parseInt(_0x1a86c8(0x235))/0x1*(parseInt(_0x1a86c8(0x1f7))/0x2)+parseInt(_0x1a86c8(0x1ef))/0x3*(-parseInt(_0x1a86c8(0x27a))/0x4)+-parseInt(_0x1a86c8(0x258))/0x5+-parseInt(_0x1a86c8(0x250))/0x6*(-parseInt(_0x1a86c8(0x276))/0x7)+-parseInt(_0x1a86c8(0x22a))/0x8+parseInt(_0x1a86c8(0x273))/0x9+-parseInt(_0x1a86c8(0x25b))/0xa*(parseInt(_0x1a86c8(0x1f4))/0xb);if(_0x5b9623===_0x46e2ad)break;else _0xdd2729['push'](_0xdd2729['shift']());}catch(_0xefd36b){_0xdd2729['push'](_0xdd2729['shift']());}}}(_0xa19d,0x32cb5));import{InstancePoolError as _0x46b027,createGenericKeyedInstancePool as _0xcb51c8}from'@univer-cli/generic-keyed-instance-pool';import{fork as _0x32be5b}from'node:child_process';import{fileURLToPath as _0x50571c}from'node:url';var i=class extends Error{[_0x24e0ce(0x20e)];[_0x24e0ce(0x229)];constructor(_0x15191f,_0x4369b9,_0x29bdfc={}){const _0x2499ed=_0x24e0ce;super(_0x4369b9,_0x29bdfc),this[_0x2499ed(0x232)]=_0x2499ed(0x1fe),this[_0x2499ed(0x20e)]=_0x15191f,this[_0x2499ed(0x229)]=_0x29bdfc[_0x2499ed(0x229)]??!0x1;}},a=_0x24e0ce(0x270);function o(_0x3c706d){const _0x4e6d13=_0x24e0ce;return _0x3c706d instanceof Error&&_0x3c706d[_0x4e6d13(0x232)]===_0x4e6d13(0x270)&&_0x4e6d13(0x20e)in _0x3c706d&&typeof _0x3c706d[_0x4e6d13(0x20e)]==_0x4e6d13(0x241);}function s(_0x448c8a){const _0xd884f6=_0x24e0ce;let _0x19b253=import.meta.url['endsWith']('.ts')?_0xd884f6(0x278):_0xd884f6(0x266),_0x1e2da3=_0x32be5b(_0x50571c(new URL(_0x19b253,import.meta.url)),[],{..._0x448c8a===void 0x0?{}:{'env':_0x448c8a},'serialization':_0xd884f6(0x23b),'stdio':['ignore',_0xd884f6(0x27e),_0xd884f6(0x27e),'ipc']}),_0x2ecb26=0x0,_0x7ceea9,_0x3e847e=new Map(),_0x2919c2=new Promise(_0x437054=>_0x1e2da3[_0xd884f6(0x22f)](_0xd884f6(0x1ff),()=>_0x437054()));_0x1e2da3['on'](_0xd884f6(0x206),_0x335757=>_0x4c7b5e(l(_0x335757[_0xd884f6(0x22c)],_0x335757))),_0x1e2da3['on']('exit',(_0x181c9c,_0x717fbf)=>_0x4c7b5e(l(_0xd884f6(0x21b)+(_0x717fbf??_0x181c9c)))),_0x1e2da3['on'](_0xd884f6(0x271),()=>_0x4c7b5e(l(_0xd884f6(0x23c)))),_0x1e2da3['on'](_0xd884f6(0x22c),_0x2adb47=>{const _0x48e79a=_0xd884f6;if(!u(_0x2adb47))return;let _0x1980e0=_0x3e847e[_0x48e79a(0x207)](_0x2adb47['id']);_0x1980e0&&(_0x3e847e['delete'](_0x2adb47['id']),clearTimeout(_0x1980e0[_0x48e79a(0x225)]),_0x2adb47['type']===_0x48e79a(0x206)?_0x1980e0[_0x48e79a(0x1fc)](c(_0x2adb47[_0x48e79a(0x206)])):_0x1980e0[_0x48e79a(0x200)](_0x2adb47[_0x48e79a(0x267)]));});function _0x4c7b5e(_0x4f2067){const _0x522a18=_0xd884f6;if(!_0x7ceea9){_0x7ceea9=_0x4f2067;for(let _0x25ee00 of _0x3e847e['values']())clearTimeout(_0x25ee00[_0x522a18(0x225)]),_0x25ee00[_0x522a18(0x1fc)](_0x4f2067);_0x3e847e[_0x522a18(0x245)](),_0x1e2da3[_0x522a18(0x262)]===null&&_0x1e2da3[_0x522a18(0x1f1)]===null&&_0x1e2da3['kill']('SIGKILL');}}return{'units':0x0,'exited':_0x2919c2,get 'available'(){return!_0x7ceea9;},'terminate'(){const _0x55738d=_0xd884f6;_0x4c7b5e(new i(_0x55738d(0x213),_0x55738d(0x1ed),{'invalidatesInstance':!0x0}));},async 'request'(_0x45d479,_0x314d33,_0x78f5a5){if(_0x7ceea9)throw _0x7ceea9;let _0x22bc64=++_0x2ecb26;return await new Promise((_0x235a44,_0x4e6186)=>{const _0xeffe0e=_0xa36f;let _0x31abc3=setTimeout(()=>_0x4c7b5e(new i(_0x314d33['type']===_0xeffe0e(0x217)?_0xeffe0e(0x211):_0xeffe0e(0x25c),'Worker\x20'+_0x314d33[_0xeffe0e(0x25e)]+_0xeffe0e(0x25f)+_0x78f5a5+'ms',{'invalidatesInstance':!0x0})),_0x78f5a5);_0x3e847e[_0xeffe0e(0x23d)](_0x22bc64,{'reject':_0x4e6186,'resolve':_0x235a44,'timer':_0x31abc3});try{_0x1e2da3[_0xeffe0e(0x24e)]({..._0x314d33,'id':_0x22bc64,'runtimeId':_0x45d479},_0x12f7bf=>{_0x12f7bf&&_0x4c7b5e(l(_0x12f7bf['message'],_0x12f7bf));});}catch(_0x43aa8d){clearTimeout(_0x31abc3),_0x3e847e[_0xeffe0e(0x21a)](_0x22bc64),_0x4e6186(_0x43aa8d);}});}};}function c(_0x1751c5){const _0x3a8ff0=_0x24e0ce;let _0x390a42=Error(_0x1751c5[_0x3a8ff0(0x22c)]);return _0x1751c5['code']?.[_0x3a8ff0(0x210)]('COLLABORATION_')&&!_0x1751c5[_0x3a8ff0(0x20e)][_0x3a8ff0(0x210)](_0x3a8ff0(0x205))?(_0x390a42[_0x3a8ff0(0x232)]=a,Object[_0x3a8ff0(0x277)](_0x390a42,{'code':_0x1751c5[_0x3a8ff0(0x20e)],'retryable':_0x1751c5[_0x3a8ff0(0x227)]??!0x1})):(_0x390a42['name']=_0x1751c5[_0x3a8ff0(0x232)],_0x1751c5[_0x3a8ff0(0x20e)]!==void 0x0&&Object[_0x3a8ff0(0x277)](_0x390a42,{'code':_0x1751c5[_0x3a8ff0(0x20e)]})),_0x1751c5['invalidatesInstance']&&Object[_0x3a8ff0(0x277)](_0x390a42,{'invalidatesInstance':!0x0}),_0x1751c5['stack']!==void 0x0&&(_0x390a42['stack']=_0x1751c5[_0x3a8ff0(0x268)]),_0x390a42;}function l(_0x263394,_0x1c59f1){return new i('COLLABORATION_WORKER_CRASHED',_0x263394,{..._0x1c59f1===void 0x0?{}:{'cause':_0x1c59f1},'invalidatesInstance':!0x0});}function u(_0xcd28c8){const _0xf36bba=_0x24e0ce;return typeof _0xcd28c8==_0xf36bba(0x269)&&!!_0xcd28c8&&'id'in _0xcd28c8&&_0xf36bba(0x25e)in _0xcd28c8&&Number[_0xf36bba(0x275)](_0xcd28c8['id'])&&(_0xcd28c8[_0xf36bba(0x25e)]===_0xf36bba(0x267)||_0xcd28c8['type']===_0xf36bba(0x206));}var d=0x1388;function f(_0x652cf3){let _0x33feff=new Set(),_0x371433=0x0;function _0x33f6e7(){const _0x5551bb=_0xa36f;for(let _0x20f73c of _0x33feff)if(_0x20f73c[_0x5551bb(0x256)]&&_0x20f73c[_0x5551bb(0x22d)]<_0x652cf3[_0x5551bb(0x1fb)])return _0x20f73c[_0x5551bb(0x22d)]++,_0x20f73c;let _0x32227a=s(_0x652cf3[_0x5551bb(0x1fd)]);return _0x32227a[_0x5551bb(0x22d)]++,_0x33feff[_0x5551bb(0x246)](_0x32227a),_0x32227a['exited'][_0x5551bb(0x20d)](()=>_0x33feff['delete'](_0x32227a)),_0x32227a;}return{async 'create'({init:_0x59abad}){const _0x2cfb8d=_0xa36f;let _0x1d3f16=_0x33f6e7(),_0x401413=++_0x371433,_0x7a781c=async()=>{const _0x412119=_0xa36f;try{_0x1d3f16[_0x412119(0x256)]&&await _0x1d3f16[_0x412119(0x255)](_0x401413,{'type':_0x412119(0x1ff)},d);}catch{_0x1d3f16['terminate']();}finally{--_0x1d3f16['units']===0x0&&(_0x1d3f16['terminate'](),await _0x1d3f16[_0x412119(0x263)]);}};try{return p(_0x1d3f16,_0x401413,m(await _0x1d3f16[_0x2cfb8d(0x255)](_0x401413,{'entry':_0x652cf3[_0x2cfb8d(0x244)],'init':_0x59abad,'type':'open'},_0x652cf3[_0x2cfb8d(0x228)])),_0x652cf3[_0x2cfb8d(0x1f2)],_0x7a781c);}catch(_0x4eee86){throw await _0x7a781c(),_0x4eee86;}},async 'destroy'({instance:_0x3ecac4}){const _0x365ee6=_0xa36f;await _0x3ecac4[_0x365ee6(0x1ff)]();},async 'waitForExit'(){const _0x384e2c=_0xa36f;await Promise['all'](Array['from'](_0x33feff,_0x28a194=>_0x28a194[_0x384e2c(0x263)]));}};}function p(_0x44d37b,_0x50dc04,_0x2704e2,_0x5f61ba,_0x1ac60d){let _0x24d56a=_0x9cadf7=>_0x44d37b['request'](_0x50dc04,_0x9cadf7,_0x5f61ba);return{..._0x2704e2,get 'available'(){return _0x44d37b['available'];},'close':_0x1ac60d,async 'getState'(){const _0x548fbf=_0xa36f;return h(await _0x24d56a({'type':_0x548fbf(0x26a)}));},async 'getPendingMutations'(){const _0x5809ba=_0xa36f;let _0x551c69=await _0x24d56a({'type':'get-pending-mutations'});if(!C(_0x551c69))throw v(_0x5809ba(0x226));return _0x551c69;},async 'executeReadCode'(_0x11df01){const _0x174d8c=_0xa36f;let _0x35ad10=g(await _0x24d56a({'code':_0x11df01,'type':'execute-read'}));if(!(_0x174d8c(0x219)in _0x35ad10)||!w(_0x35ad10[_0x174d8c(0x219)]))throw v('Worker\x20returned\x20an\x20invalid\x20read\x20value');return _0x35ad10;},async 'executeWriteCode'(_0x2f25bd){const _0x25722b=_0xa36f;let _0x2640c2=g(await _0x24d56a({'code':_0x2f25bd,'type':_0x25722b(0x236)}));if(!w(_0x2640c2['value'])||!C(_0x2640c2[_0x25722b(0x1f6)]))throw v(_0x25722b(0x1f5));return _0x2640c2;},async 'replacePendingMutations'(_0x3dc759){const _0x1c7be0=_0xa36f;let _0x148782=g(await _0x24d56a({'mutations':_0x3dc759,'type':_0x1c7be0(0x24d)}));if(!T(_0x148782['previousMutationCount'])||!T(_0x148782[_0x1c7be0(0x251)]))throw v(_0x1c7be0(0x252));return _0x148782;},async 'fetch'(){const _0x2990cf=_0xa36f;return _(await _0x24d56a({'type':_0x2990cf(0x20b)}),[_0x2990cf(0x247),'fetched']);},async 'pull'(){const _0x46fb35=_0xa36f;return _(await _0x24d56a({'type':_0x46fb35(0x214)}),[_0x46fb35(0x26d),'pulled',_0x46fb35(0x21c)]);},async 'commit'(){const _0x1bc972=_0xa36f;return _(await _0x24d56a({'type':_0x1bc972(0x25d)}),[_0x1bc972(0x259),_0x1bc972(0x222),'confirmed',_0x1bc972(0x24b),_0x1bc972(0x253),_0x1bc972(0x21c)]);},async 'exportUnitData'(){const _0x4c3044=_0xa36f;let _0x1a3259=await _0x24d56a({'type':_0x4c3044(0x204)});if(!E(_0x1a3259))throw v(_0x4c3044(0x231));return _0x1a3259;}};}function m(_0x2de674){const _0x259af8=_0x24e0ce;if(!E(_0x2de674)||typeof _0x2de674[_0x259af8(0x223)]!='string'||!y(_0x2de674[_0x259af8(0x264)]))throw v('Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20metadata');return{'unitId':_0x2de674[_0x259af8(0x223)],'unitType':_0x2de674['unitType']};}function h(_0x58f945){const _0xd0e043=_0x24e0ce;if(!E(_0x58f945)||!b(_0x58f945[_0xd0e043(0x221)])||!T(_0x58f945[_0xd0e043(0x27f)])||!T(_0x58f945[_0xd0e043(0x20f)])||Number(_0x58f945[_0xd0e043(0x20f)])<Number(_0x58f945['baseRevision'])||!T(_0x58f945[_0xd0e043(0x251)])||!T(_0x58f945[_0xd0e043(0x220)])||!x(_0x58f945[_0xd0e043(0x203)])||!S(_0x58f945['conflict']))throw v('Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20state');return _0x58f945;}function _0xa19d(){const _0x3a40c4=['Worker\x20returned\x20an\x20invalid\x20operation\x20result','includes','sid','fetch','mode','then','code','knownHeadRevision','startsWith','COLLABORATION_WORKER_OPEN_TIMEOUT','permission-rejected','COLLABORATION_WORKER_CLOSED','pull','number','COLLABORATION_PROTOCOL_ERROR','open','all','value','delete','Worker\x20exited\x20with\x20','conflict','operation','isFinite','reconnecting','bufferedChangesetCount','connection','pull-required','unitId','exportUnitData','timer','Worker\x20returned\x20invalid\x20pending\x20mutations','retryable','openTimeoutMs','invalidatesInstance','258624LdGsjS','COLLABORATION_CLOSED','message','units','\x20must\x20be\x20a\x20finite\x20positive\x20number','once','instance-failed','Worker\x20returned\x20invalid\x20UnitData','name','instance','INSTANCE_POOL_CLOSED','14hJPYHD','execute-write','every','cache','getPendingMutations','entry\x20must\x20be\x20an\x20absolute\x20file\x20URL\x20or\x20another\x20importable\x20URL','advanced','Worker\x20IPC\x20disconnected','set','status','maxEntries','getState','string','reqId','write','entry','clear','add','unchanged','online','INSTANCE_POOL_CAPACITY_EXCEEDED','COLLABORATION_POOL_INVALID_INPUT','retry','boolean','replace-mutations','send','state','310536vVsDRK','pendingMutationCount','Worker\x20returned\x20an\x20invalid\x20mutation\x20replacement\x20result','unknown','now','request','available','changeset-rejected','398755pTpWEV','nothing-to-commit','entry\x20must\x20not\x20be\x20empty','10YiMsVR','COLLABORATION_WORKER_OPERATION_TIMEOUT','commit','type','\x20timed\x20out\x20after\x20','waitForExit','acquire','exitCode','exited','unitType','values','./worker-child.mjs','result','stack','object','get-state','pending-mutations','key','up-to-date','COLLABORATION_WORKER_PROTOCOL_ERROR','executeReadCode','CollaborationRuntimeError','disconnect','isArray','3204756SuxHyN','reason','isSafeInteger','42VrhNvT','assign','./worker-child.ts','maxUnitsPerWorker\x20must\x20be\x20a\x20positive\x20integer','768YgLhbW','closed','COLLABORATION_LEASE_CLOSED','read','ignore','baseRevision','isInteger','COLLABORATION_POOL_CAPACITY_EXCEEDED','Worker\x20closed','replacePendingMutations','2901LecKZq','Worker\x20returned\x20an\x20invalid\x20operation\x20status','signalCode','operationTimeoutMs','invalidate','4508878QeDFds','Worker\x20returned\x20an\x20invalid\x20write\x20result','mutations','35582BZDKju','href','transform-failed','\x20is\x20unavailable','maxUnitsPerWorker','reject','env','UniverCollaborationRuntimePoolError','close','resolve','Collaboration\x20runtime\x20lease\x20','release','awaitingChangeset','export','COLLABORATION_WORKER_','error','get'];_0xa19d=function(){return _0x3a40c4;};return _0xa19d();}function g(_0x44c74a){const _0x18a394=_0x24e0ce;if(!E(_0x44c74a))throw v(_0x18a394(0x208));return{..._0x44c74a,'state':h(_0x44c74a[_0x18a394(0x24f)])};}function _(_0x4ccc76,_0x4a0140){const _0x398aa2=_0x24e0ce;let _0x3a799b=g(_0x4ccc76);if(typeof _0x3a799b['status']!=_0x398aa2(0x241)||!_0x4a0140[_0x398aa2(0x209)](_0x3a799b[_0x398aa2(0x23e)]))throw v(_0x398aa2(0x1f0));return _0x3a799b;}function _0xa36f(_0x23e13b,_0x5c44a2){_0x23e13b=_0x23e13b-0x1ec;const _0xa19de3=_0xa19d();let _0xa36f2e=_0xa19de3[_0x23e13b];return _0xa36f2e;}function v(_0x21195a){const _0x5bcb13=_0x24e0ce;return new i(_0x5bcb13(0x26e),_0x21195a,{'invalidatesInstance':!0x0});}function y(_0xa54a80){return _0xa54a80===0x1||_0xa54a80===0x2||_0xa54a80===0x3||_0xa54a80===0x5||_0xa54a80===0x6||_0xa54a80===0x7;}function b(_0x48b554){const _0x55a1e6=_0x24e0ce;return _0x48b554===_0x55a1e6(0x248)||_0x48b554===_0x55a1e6(0x21f)||_0x48b554==='offline'||_0x48b554===_0x55a1e6(0x27b);}function x(_0x400725){const _0x1760ba=_0x24e0ce;return _0x400725===null||E(_0x400725)&&T(_0x400725[_0x1760ba(0x27f)])&&T(_0x400725['revision'])&&T(_0x400725['mutationCount'])&&(_0x400725[_0x1760ba(0x20a)]===void 0x0||typeof _0x400725[_0x1760ba(0x20a)]==_0x1760ba(0x241))&&(_0x400725[_0x1760ba(0x242)]===void 0x0||T(_0x400725[_0x1760ba(0x242)]));}function S(_0x4aafb0){const _0x429f0a=_0x24e0ce;return _0x4aafb0===null||E(_0x4aafb0)&&(_0x4aafb0[_0x429f0a(0x21d)]===_0x429f0a(0x214)||_0x4aafb0[_0x429f0a(0x21d)]==='commit')&&(_0x4aafb0[_0x429f0a(0x274)]===_0x429f0a(0x1f9)||_0x4aafb0[_0x429f0a(0x274)]===_0x429f0a(0x257)||_0x4aafb0[_0x429f0a(0x274)]===_0x429f0a(0x212))&&typeof _0x4aafb0['message']==_0x429f0a(0x241)&&(_0x4aafb0[_0x429f0a(0x20e)]===void 0x0||Number[_0x429f0a(0x280)](_0x4aafb0[_0x429f0a(0x20e)]));}function C(_0x4de90a){const _0x16676d=_0x24e0ce;return Array[_0x16676d(0x272)](_0x4de90a)&&_0x4de90a['every'](_0xcfd755=>E(_0xcfd755)&&typeof _0xcfd755['id']==_0x16676d(0x241)&&_0xcfd755['id']['length']>0x0&&typeof _0xcfd755['data']==_0x16676d(0x241));}function w(_0x45146d){const _0x3dcce3=_0x24e0ce;return _0x45146d===null||typeof _0x45146d==_0x3dcce3(0x24c)||typeof _0x45146d==_0x3dcce3(0x241)||typeof _0x45146d==_0x3dcce3(0x215)&&Number[_0x3dcce3(0x21e)](_0x45146d)?!0x0:Array[_0x3dcce3(0x272)](_0x45146d)?_0x45146d[_0x3dcce3(0x237)](w):E(_0x45146d)&&Object[_0x3dcce3(0x265)](_0x45146d)[_0x3dcce3(0x237)](w);}function T(_0x2a1926){return Number['isSafeInteger'](_0x2a1926)&&Number(_0x2a1926)>=0x0;}function E(_0xb98b4c){const _0x4c0d28=_0x24e0ce;return typeof _0xb98b4c==_0x4c0d28(0x269)&&!!_0xb98b4c&&!Array[_0x4c0d28(0x272)](_0xb98b4c);}var D=0x32,O=0xa,k=0x7530,A=0x7530;function j(_0x433ad8){const _0x1d991f=_0x24e0ce;let _0x4dfd50=M(_0x433ad8[_0x1d991f(0x244)]),_0x394116=_0x433ad8[_0x1d991f(0x228)]??k,_0x5918b1=_0x433ad8[_0x1d991f(0x1f2)]??A;N(_0x394116,_0x1d991f(0x228)),N(_0x5918b1,_0x1d991f(0x1f2));let _0x14e63d=_0x433ad8[_0x1d991f(0x1fb)]??O;if(!Number[_0x1d991f(0x275)](_0x14e63d)||_0x14e63d<=0x0)throw new i('COLLABORATION_POOL_INVALID_INPUT',_0x1d991f(0x279));let _0x464c00=f({'entry':_0x4dfd50,'maxUnitsPerWorker':_0x14e63d,'openTimeoutMs':_0x394116,'operationTimeoutMs':_0x5918b1,..._0x433ad8[_0x1d991f(0x1fd)]===void 0x0?{}:{'env':_0x433ad8['env']}}),_0x139120;try{_0x139120=_0xcb51c8({'factory':_0x464c00,'cache':{..._0x433ad8[_0x1d991f(0x238)],'maxEntries':_0x433ad8[_0x1d991f(0x238)]?.[_0x1d991f(0x23f)]??D},'onEvent':_0x4abb90});}catch(_0x540c37){throw P(_0x540c37);}return{async 'acquire'(_0x33a1d5){const _0x4ef994=_0x1d991f;try{let _0x52b870=await _0x139120[_0x4ef994(0x261)](_0x33a1d5);if(_0x52b870[_0x4ef994(0x233)][_0x4ef994(0x256)])return _0x4ed93e(_0x52b870);let [,_0x172912]=await Promise[_0x4ef994(0x218)]([_0x52b870[_0x4ef994(0x1f3)](),_0x139120['acquire'](_0x33a1d5)]);if(_0x172912['instance'][_0x4ef994(0x256)])return _0x4ed93e(_0x172912);throw await _0x172912[_0x4ef994(0x1f3)](),new i(_0x4ef994(0x213),'Replacement\x20worker\x20for\x20'+_0x33a1d5[_0x4ef994(0x26c)]+_0x4ef994(0x1fa),{'invalidatesInstance':!0x0});}catch(_0x388962){throw P(_0x388962);}},async 'close'(){const _0x3459e5=_0x1d991f;try{await _0x139120[_0x3459e5(0x1ff)](),await _0x464c00[_0x3459e5(0x260)]();}catch(_0x20bdcf){throw P(_0x20bdcf);}}};function _0x4ed93e(_0x163b9f){const _0x4aa541=_0x1d991f;let _0x2bf8be=_0x163b9f[_0x4aa541(0x233)],_0x2cee32=!0x1,_0x1795cb,_0xee2b85=!0x1;return{'key':_0x163b9f['key'],'unitId':_0x2bf8be[_0x4aa541(0x223)],'unitType':_0x2bf8be[_0x4aa541(0x264)],async 'getState'(){const _0x1dde28=_0x4aa541;return await _0x1868e1(_0x1dde28(0x24f),async()=>await _0x2bf8be[_0x1dde28(0x240)]());},async 'getPendingMutations'(){const _0x17d98a=_0x4aa541;return await _0x1868e1(_0x17d98a(0x26b),async()=>await _0x2bf8be[_0x17d98a(0x239)]());},async 'execute'(_0x39924f){const _0x4c2a9a=_0x4aa541;return _0x39924f[_0x4c2a9a(0x20c)]===_0x4c2a9a(0x27d)?await _0x1868e1(_0x4c2a9a(0x27d),async()=>await _0x2bf8be[_0x4c2a9a(0x26f)](_0x39924f[_0x4c2a9a(0x20e)])):await _0x1868e1(_0x4c2a9a(0x243),async()=>await _0x2bf8be['executeWriteCode'](_0x39924f[_0x4c2a9a(0x20e)]));},async 'replacePendingMutations'(_0x47bd55){const _0x33e1ff=_0x4aa541;return await _0x1868e1(_0x33e1ff(0x24d),async()=>await _0x2bf8be[_0x33e1ff(0x1ee)](_0x47bd55));},async 'fetch'(){const _0x2a8e3d=_0x4aa541;return await _0x1868e1(_0x2a8e3d(0x20b),async()=>await _0x2bf8be[_0x2a8e3d(0x20b)]());},async 'pull'(){return await _0x1868e1('pull',async()=>await _0x2bf8be['pull']());},async 'commit'(){const _0x10e5e0=_0x4aa541;return await _0x1868e1(_0x10e5e0(0x25d),async()=>await _0x2bf8be[_0x10e5e0(0x25d)]());},async 'exportUnitData'(){const _0x1dbdb9=_0x4aa541;return await _0x1868e1('export',async()=>await _0x2bf8be[_0x1dbdb9(0x224)]());},async 'invalidate'(){_0x2cee32||(_0x2cee32=!0x0,await _0x163b9f['invalidate']());},async 'release'(){const _0x4e470a=_0x4aa541;_0x2cee32||(_0x2cee32=!0x0,_0xee2b85||!_0x2bf8be[_0x4e470a(0x256)]?await _0x163b9f[_0x4e470a(0x1f3)]():await _0x163b9f[_0x4e470a(0x202)]());}};async function _0x1868e1(_0x50a8f1,_0x4757a8){const _0x41f232=_0x4aa541;_0x2bcd27();try{return await _0x2befe7(_0x163b9f[_0x41f232(0x26c)],_0x50a8f1,_0x4757a8);}catch(_0x3b592b){throw _0x2f779a(_0x3b592b),_0x3b592b;}}function _0x2bcd27(){const _0x424e83=_0x4aa541;if(_0x2cee32)throw new i(_0x424e83(0x27c),_0x424e83(0x201)+_0x163b9f[_0x424e83(0x26c)]+'\x20is\x20closed');if(_0x1795cb)throw _0x1795cb;}function _0x2f779a(_0x3c277d){const _0x49711c=_0x4aa541;(_0x3c277d instanceof i&&_0x3c277d[_0x49711c(0x229)]||o(_0x3c277d)&&(_0x3c277d[_0x49711c(0x20e)]===_0x49711c(0x216)||_0x3c277d[_0x49711c(0x20e)]===_0x49711c(0x22b)||_0x3c277d[_0x49711c(0x20e)]==='COLLABORATION_LOAD_FAILED')||typeof _0x3c277d==_0x49711c(0x269)&&_0x3c277d&&_0x49711c(0x229)in _0x3c277d&&_0x3c277d[_0x49711c(0x229)]===!0x0)&&(_0xee2b85=!0x0,_0x1795cb=_0x3c277d,_0x57d41a({'errorCode':F(_0x3c277d),'key':_0x163b9f['key'],'type':_0x49711c(0x230)}));}}async function _0x2befe7(_0x4f08c1,_0x3529ff,_0x150398){const _0x32da98=_0x1d991f;let _0x3a5c81=Date[_0x32da98(0x254)](),_0x512d7d=await _0x150398();return _0x57d41a({'durationMs':Date[_0x32da98(0x254)]()-_0x3a5c81,'key':_0x4f08c1,'operation':_0x3529ff,'type':'operation-complete'}),_0x512d7d;}function _0x4abb90(_0x23cc66){_0x57d41a(_0x23cc66);}function _0x57d41a(_0x403356){try{_0x433ad8['onEvent']?.(_0x403356);}catch{}}}function M(_0x5f4847){const _0x3cd047=_0x24e0ce;let _0x107f24=_0x5f4847 instanceof URL?_0x5f4847[_0x3cd047(0x1f8)]:_0x5f4847;if(_0x107f24['length']===0x0)throw new i('COLLABORATION_POOL_INVALID_INPUT',_0x3cd047(0x25a));try{return new URL(_0x107f24)[_0x3cd047(0x1f8)];}catch{throw new i('COLLABORATION_POOL_INVALID_INPUT',_0x3cd047(0x23a));}}function N(_0x5cc59d,_0x2affb7){const _0x524caa=_0x24e0ce;if(!Number[_0x524caa(0x21e)](_0x5cc59d)||_0x5cc59d<=0x0)throw new i(_0x524caa(0x24a),_0x2affb7+_0x524caa(0x22e));}function P(_0x4021ca){const _0x373c59=_0x24e0ce;return _0x4021ca instanceof _0x46b027?new i(_0x4021ca['code']===_0x373c59(0x249)?_0x373c59(0x1ec):_0x4021ca[_0x373c59(0x20e)]===_0x373c59(0x234)?'COLLABORATION_POOL_CLOSED':_0x373c59(0x24a),_0x4021ca[_0x373c59(0x22c)],{'cause':_0x4021ca}):_0x4021ca;}function F(_0x35eb80){const _0x16717b=_0x24e0ce;return typeof _0x35eb80==_0x16717b(0x269)&&_0x35eb80&&_0x16717b(0x20e)in _0x35eb80&&typeof _0x35eb80[_0x16717b(0x20e)]=='string'?_0x35eb80['code']:'UNKNOWN';}function I(_0x40b9ce){return _0x40b9ce;}export{i as UniverCollaborationRuntimePoolError,j as createUniverCollaborationRuntimePool,I as defineUniverCollaborationRuntimeWorker};
@@ -1 +1 @@
1
- function _0x934c(_0x5f051b,_0x381ea8){_0x5f051b=_0x5f051b-0xdb;const _0x341258=_0x3412();let _0x934c65=_0x341258[_0x5f051b];return _0x934c65;}const _0x407132=_0x934c;(function(_0x11260c,_0xb04af8){const _0x4a4a1c=_0x934c,_0x2c6483=_0x11260c();while(!![]){try{const _0x28311d=parseInt(_0x4a4a1c(0x101))/0x1+parseInt(_0x4a4a1c(0xe8))/0x2*(-parseInt(_0x4a4a1c(0x106))/0x3)+-parseInt(_0x4a4a1c(0xde))/0x4*(-parseInt(_0x4a4a1c(0x102))/0x5)+parseInt(_0x4a4a1c(0xf7))/0x6+parseInt(_0x4a4a1c(0xe7))/0x7*(parseInt(_0x4a4a1c(0xe2))/0x8)+-parseInt(_0x4a4a1c(0xf0))/0x9*(parseInt(_0x4a4a1c(0x104))/0xa)+-parseInt(_0x4a4a1c(0xed))/0xb*(parseInt(_0x4a4a1c(0xff))/0xc);if(_0x28311d===_0xb04af8)break;else _0x2c6483['push'](_0x2c6483['shift']());}catch(_0x1a6a8a){_0x2c6483['push'](_0x2c6483['shift']());}}}(_0x3412,0x7ab9c));var e=new Map();process['on'](_0x407132(0xee),_0x3d9165=>{const _0x518ed3=_0x407132;i(_0x3d9165)&&t(_0x3d9165)[_0x518ed3(0xf9)](_0x5a97d4=>o({'id':_0x3d9165['id'],'result':_0x5a97d4,'type':'result'}),_0x2d7c2a=>o({'error':a(_0x2d7c2a,e['get'](_0x3d9165[_0x518ed3(0xeb)])?.['getState']()[_0x518ed3(0xdd)]==='closed'),'id':_0x3d9165['id'],'type':_0x518ed3(0xf1)}));});async function t(_0x12138f){const _0x10bc53=_0x407132;if(_0x12138f[_0x10bc53(0x10d)]===_0x10bc53(0xf5)){let _0x2990f3=await import(_0x12138f.entry);if(!r(_0x2990f3['default']))throw Error(_0x10bc53(0xe1));let _0x157af6=await _0x2990f3['default'][_0x10bc53(0xf3)](_0x12138f[_0x10bc53(0xfa)]);return e[_0x10bc53(0xf2)](_0x12138f['runtimeId'],_0x157af6),n(_0x157af6);}let _0x533f12=e['get'](_0x12138f['runtimeId']);if(_0x12138f['type']===_0x10bc53(0x10a))return await _0x533f12?.['close'](),e[_0x10bc53(0x10b)](_0x12138f[_0x10bc53(0xeb)]),null;if(!_0x533f12)throw Error(_0x10bc53(0x103));return _0x12138f['type']===_0x10bc53(0xe3)?_0x533f12[_0x10bc53(0x108)]():_0x12138f[_0x10bc53(0x10d)]==='get-pending-mutations'?_0x533f12[_0x10bc53(0x10c)]():_0x12138f[_0x10bc53(0x10d)]===_0x10bc53(0xe6)?await _0x533f12[_0x10bc53(0xf8)]({'code':_0x12138f[_0x10bc53(0xe0)],'mode':_0x10bc53(0x100)}):_0x12138f['type']==='execute-write'?await _0x533f12[_0x10bc53(0xf8)]({'code':_0x12138f[_0x10bc53(0xe0)],'mode':_0x10bc53(0xdb)}):_0x12138f['type']===_0x10bc53(0xfb)?await _0x533f12[_0x10bc53(0xfe)](_0x12138f['mutations']):_0x12138f[_0x10bc53(0x10d)]===_0x10bc53(0xe4)?await _0x533f12[_0x10bc53(0xe4)]():_0x12138f['type']===_0x10bc53(0xdc)?await _0x533f12[_0x10bc53(0xdc)]():_0x12138f[_0x10bc53(0x10d)]===_0x10bc53(0xdf)?await _0x533f12[_0x10bc53(0xdf)]():await _0x533f12['exportUnitData']();}function n(_0x4a5dd9){const _0x4b18fe=_0x407132;return{'unitId':_0x4a5dd9[_0x4b18fe(0xea)],'unitType':_0x4a5dd9[_0x4b18fe(0xe5)]};}function r(_0x3aff7f){const _0x3e8f51=_0x407132;return typeof _0x3aff7f==_0x3e8f51(0x107)&&!!_0x3aff7f&&_0x3e8f51(0xf3)in _0x3aff7f&&typeof _0x3aff7f[_0x3e8f51(0xf3)]==_0x3e8f51(0xef);}function i(_0x40f08c){const _0x18860a=_0x407132;return typeof _0x40f08c==_0x18860a(0x107)&&!!_0x40f08c&&'id'in _0x40f08c&&Number[_0x18860a(0xf6)](_0x40f08c['id'])&&_0x18860a(0xeb)in _0x40f08c&&Number[_0x18860a(0xf6)](_0x40f08c[_0x18860a(0xeb)])&&_0x18860a(0x10d)in _0x40f08c&&typeof _0x40f08c[_0x18860a(0x10d)]==_0x18860a(0xf4);}function a(_0xe6e1dc,_0x854013){const _0x13cfbd=_0x407132;if(!(_0xe6e1dc instanceof Error))return{'invalidatesInstance':_0x854013,'message':String(_0xe6e1dc),'name':_0x13cfbd(0xe9)};let _0x1509ea=_0xe6e1dc;return{...typeof _0x1509ea[_0x13cfbd(0xe0)]=='string'?{'code':_0x1509ea[_0x13cfbd(0xe0)]}:{},..._0x854013?{'invalidatesInstance':!0x0}:{},'message':_0xe6e1dc[_0x13cfbd(0xee)],'name':_0xe6e1dc['name'],...typeof _0x1509ea['retryable']==_0x13cfbd(0xec)?{'retryable':_0x1509ea[_0x13cfbd(0xfc)]}:{},..._0xe6e1dc[_0x13cfbd(0xfd)]===void 0x0?{}:{'stack':_0xe6e1dc[_0x13cfbd(0xfd)]}};}function o(_0x154e51){const _0x1101b4=_0x407132;process[_0x1101b4(0x109)]&&process[_0x1101b4(0x105)]?.(_0x154e51);}function _0x3412(){const _0x1b56dd=['pull','connection','1759156kHUMsb','commit','code','Collaboration\x20worker\x20entry\x20must\x20default-export\x20a\x20worker\x20definition','6888pALyaH','get-state','fetch','unitType','execute-read','2114FIrxai','132982MlmXbx','Error','unitId','runtimeId','boolean','1812635ukwIzE','message','function','369nAQccw','error','set','createRuntime','string','open','isSafeInteger','2989242hwjJGA','execute','then','init','replace-mutations','retryable','stack','replacePendingMutations','60KuoiLK','read','382705sUyYHM','10VpMwRz','Collaboration\x20runtime\x20is\x20not\x20open','136810UYmZZv','send','6BENIvl','object','getState','connected','close','delete','getPendingMutations','type','write'];_0x3412=function(){return _0x1b56dd;};return _0x3412();}
1
+ const _0x43b5d6=_0x32c7;(function(_0x4c70c8,_0x31c04c){const _0x22f4da=_0x32c7,_0x431d57=_0x4c70c8();while(!![]){try{const _0xd80117=-parseInt(_0x22f4da(0x1ce))/0x1*(parseInt(_0x22f4da(0x1b2))/0x2)+-parseInt(_0x22f4da(0x1d3))/0x3*(parseInt(_0x22f4da(0x1dc))/0x4)+parseInt(_0x22f4da(0x1b7))/0x5+-parseInt(_0x22f4da(0x1c4))/0x6+parseInt(_0x22f4da(0x1af))/0x7+parseInt(_0x22f4da(0x1c9))/0x8*(parseInt(_0x22f4da(0x1b3))/0x9)+-parseInt(_0x22f4da(0x1bd))/0xa*(-parseInt(_0x22f4da(0x1cb))/0xb);if(_0xd80117===_0x31c04c)break;else _0x431d57['push'](_0x431d57['shift']());}catch(_0xf26ce4){_0x431d57['push'](_0x431d57['shift']());}}}(_0x106d,0x1ae6e));var e=new Map();process['on'](_0x43b5d6(0x1d1),_0x711768=>{const _0x94d46e=_0x43b5d6;i(_0x711768)&&t(_0x711768)[_0x94d46e(0x1d7)](_0x4159f7=>o({'id':_0x711768['id'],'result':_0x4159f7,'type':_0x94d46e(0x1d0)}),_0x15fdb1=>o({'error':a(_0x15fdb1,e[_0x94d46e(0x1d4)](_0x711768[_0x94d46e(0x1ac)])?.['getState']()[_0x94d46e(0x1db)]==='closed'),'id':_0x711768['id'],'type':_0x94d46e(0x1ad)}));});async function t(_0x3f6d69){const _0x4b5f89=_0x43b5d6;if(_0x3f6d69['type']===_0x4b5f89(0x1b4)){let _0x221dc2=await import(_0x3f6d69.entry);if(!r(_0x221dc2[_0x4b5f89(0x1b0)]))throw Error(_0x4b5f89(0x1ca));let _0x495f05=await _0x221dc2[_0x4b5f89(0x1b0)]['createRuntime'](_0x3f6d69[_0x4b5f89(0x1be)]);return e[_0x4b5f89(0x1cf)](_0x3f6d69['runtimeId'],_0x495f05),n(_0x495f05);}let _0x197091=e[_0x4b5f89(0x1d4)](_0x3f6d69[_0x4b5f89(0x1ac)]);if(_0x3f6d69[_0x4b5f89(0x1ba)]===_0x4b5f89(0x1c7))return await _0x197091?.[_0x4b5f89(0x1c7)](),e[_0x4b5f89(0x1b5)](_0x3f6d69[_0x4b5f89(0x1ac)]),null;if(!_0x197091)throw Error(_0x4b5f89(0x1ab));return _0x3f6d69['type']==='get-state'?_0x197091['getState']():_0x3f6d69[_0x4b5f89(0x1ba)]===_0x4b5f89(0x1c2)?_0x197091[_0x4b5f89(0x1d8)]():_0x3f6d69[_0x4b5f89(0x1ba)]==='execute-read'?await _0x197091['execute']({'code':_0x3f6d69[_0x4b5f89(0x1c0)],'mode':_0x4b5f89(0x1b9)}):_0x3f6d69[_0x4b5f89(0x1ba)]==='execute-write'?await _0x197091[_0x4b5f89(0x1c5)]({'code':_0x3f6d69['code'],'mode':'write'}):_0x3f6d69[_0x4b5f89(0x1ba)]===_0x4b5f89(0x1d9)?await _0x197091[_0x4b5f89(0x1d2)](_0x3f6d69['mutations']):_0x3f6d69[_0x4b5f89(0x1ba)]===_0x4b5f89(0x1da)?await _0x197091['fetch']():_0x3f6d69[_0x4b5f89(0x1ba)]===_0x4b5f89(0x1cc)?await _0x197091[_0x4b5f89(0x1cc)]():_0x3f6d69['type']===_0x4b5f89(0x1c3)?await _0x197091['commit']():await _0x197091[_0x4b5f89(0x1b1)]();}function n(_0x27325c){const _0x395891=_0x43b5d6;return{'unitId':_0x27325c[_0x395891(0x1bb)],'unitType':_0x27325c[_0x395891(0x1c6)]};}function r(_0x5b93e4){const _0x15ae98=_0x43b5d6;return typeof _0x5b93e4==_0x15ae98(0x1bf)&&!!_0x5b93e4&&_0x15ae98(0x1c1)in _0x5b93e4&&typeof _0x5b93e4['createRuntime']=='function';}function _0x32c7(_0x25621f,_0x73d837){_0x25621f=_0x25621f-0x1ab;const _0x106df9=_0x106d();let _0x32c793=_0x106df9[_0x25621f];return _0x32c793;}function i(_0x52aea5){const _0x54ed23=_0x43b5d6;return typeof _0x52aea5=='object'&&!!_0x52aea5&&'id'in _0x52aea5&&Number['isSafeInteger'](_0x52aea5['id'])&&_0x54ed23(0x1ac)in _0x52aea5&&Number[_0x54ed23(0x1c8)](_0x52aea5[_0x54ed23(0x1ac)])&&_0x54ed23(0x1ba)in _0x52aea5&&typeof _0x52aea5[_0x54ed23(0x1ba)]==_0x54ed23(0x1b6);}function a(_0x2ef87d,_0x9b1794){const _0x4d7a75=_0x43b5d6;if(!(_0x2ef87d instanceof Error))return{'invalidatesInstance':_0x9b1794,'message':String(_0x2ef87d),'name':_0x4d7a75(0x1b8)};let _0x478ee6=_0x2ef87d;return{...typeof _0x478ee6['code']==_0x4d7a75(0x1b6)?{'code':_0x478ee6[_0x4d7a75(0x1c0)]}:{},..._0x9b1794?{'invalidatesInstance':!0x0}:{},'message':_0x2ef87d[_0x4d7a75(0x1d1)],'name':_0x2ef87d[_0x4d7a75(0x1d5)],...typeof _0x478ee6[_0x4d7a75(0x1ae)]==_0x4d7a75(0x1bc)?{'retryable':_0x478ee6[_0x4d7a75(0x1ae)]}:{},..._0x2ef87d[_0x4d7a75(0x1d6)]===void 0x0?{}:{'stack':_0x2ef87d[_0x4d7a75(0x1d6)]}};}function _0x106d(){const _0x541ee7=['Collaboration\x20runtime\x20is\x20not\x20open','runtimeId','error','retryable','30156SzAMNg','default','exportUnitData','230OuYMAW','9uuQlXj','open','delete','string','27805iQLDFq','Error','read','type','unitId','boolean','30pUKphI','init','object','code','createRuntime','get-pending-mutations','commit','850524XkmFbq','execute','unitType','close','isSafeInteger','305224PKKDYG','Collaboration\x20worker\x20entry\x20must\x20default-export\x20a\x20worker\x20definition','1375253bUwCCk','pull','connected','1167ccVrSv','set','result','message','replacePendingMutations','18wlrfQm','get','name','stack','then','getPendingMutations','replace-mutations','fetch','connection','24628sSVDWt'];_0x106d=function(){return _0x541ee7;};return _0x106d();}function o(_0x359c91){const _0x9e8f=_0x43b5d6;process[_0x9e8f(0x1cd)]&&process['send']?.(_0x359c91);}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@univer-cli/univer-collaboration-runtime-pool",
3
3
  "type": "module",
4
- "version": "1.6.2",
4
+ "version": "1.7.0-alpha.0",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "README.zh-CN.md"
19
19
  ],
20
20
  "dependencies": {
21
- "@univer-cli/generic-keyed-instance-pool": "1.6.2",
22
- "@univer-cli/univer-collaboration-runtime": "1.6.2",
23
- "@univerjs/protocol": "1.6.2"
21
+ "@univer-cli/generic-keyed-instance-pool": "1.7.0-alpha.0",
22
+ "@univer-cli/univer-collaboration-runtime": "1.7.0-alpha.0",
23
+ "@univerjs/protocol": "1.7.0-alpha.0"
24
24
  }
25
25
  }