@univer-cli/univer-collaboration-runtime-pool 1.0.0-beta.2 → 1.0.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/README.md CHANGED
@@ -62,7 +62,7 @@ The lease proxies the collaboration runtime's complete public interface, so call
62
62
 
63
63
  ## Pool behavior
64
64
 
65
- Creation for a key is single-flight, and leases for the same key are granted in FIFO order. Idle runtimes can be evicted by TTL and LRU; idle eviction never interrupts an active lease. Invalidation marks a worker/runtime as untrustworthy, so it is destroyed during release. Pool events can feed logs and metrics.
65
+ Creation for a key is single-flight, and leases for the same key are granted in FIFO order. Idle runtimes can be evicted by TTL and LRU; idle eviction never interrupts an active lease. Invalidation marks a worker/runtime as untrustworthy, so it is destroyed during release. For invalidation, TTL, and LRU eviction, `destroy-start` is emitted synchronously before worker destruction starts; generation-specific state should be discarded then rather than waiting for the later `evicted` event. Pool events can feed logs and metrics.
66
66
 
67
67
  The application defines both key and initialization data. The pool knows nothing about Workspace, Worktree, URLs, authentication, or target-to-key algorithms, and does not verify whether two initialization values for the same key are semantically compatible.
68
68
 
package/README.zh-CN.md CHANGED
@@ -66,7 +66,9 @@ Lease 代理 collaboration runtime 的完整 public interface;调用方不需
66
66
  ## Pool 行为
67
67
 
68
68
  同一个 key 使用 single-flight 创建和 FIFO lease;idle runtime 可按 TTL 与 LRU 回收。Active lease 不会被 idle
69
- eviction 中断。Invalidate 表示 worker/runtime 已不可信,会在 release 时销毁。Pool event 可用于日志和 metrics。
69
+ eviction 中断。Invalidate 表示 worker/runtime 已不可信,会在 release 时销毁。Invalidate、TTL 与 LRU eviction 会在
70
+ worker 销毁开始前同步发出 `destroy-start`;与该 generation 绑定的状态应在此清理,不要等待随后发出的 `evicted`。
71
+ Pool event 可用于日志和 metrics。
70
72
 
71
73
  Key 与 init 完全由 application 定义。Pool 不知道 Workspace、Worktree、URL、认证或 target-to-key 算法,也不会
72
74
  验证相同 key 的两次 init 是否语义兼容。
package/dist/index.d.ts CHANGED
@@ -52,6 +52,10 @@ type UniverCollaborationRuntimePoolEvent = {
52
52
  } | {
53
53
  readonly key: string;
54
54
  readonly type: "cache-hit";
55
+ } | {
56
+ readonly key: string;
57
+ readonly reason: "invalidate" | "lru" | "ttl";
58
+ readonly type: "destroy-start";
55
59
  } | {
56
60
  readonly key: string;
57
61
  readonly reason: "invalidate" | "lru" | "ttl";
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x38413c=_0x1657;(function(_0x21f983,_0x314797){const _0x5ad315=_0x1657,_0x535c60=_0x21f983();while(!![]){try{const _0x5b4e3b=parseInt(_0x5ad315(0x1b6))/0x1+parseInt(_0x5ad315(0x225))/0x2*(-parseInt(_0x5ad315(0x1cb))/0x3)+parseInt(_0x5ad315(0x1cd))/0x4+-parseInt(_0x5ad315(0x227))/0x5+parseInt(_0x5ad315(0x211))/0x6*(-parseInt(_0x5ad315(0x215))/0x7)+-parseInt(_0x5ad315(0x210))/0x8+parseInt(_0x5ad315(0x1e4))/0x9;if(_0x5b4e3b===_0x314797)break;else _0x535c60['push'](_0x535c60['shift']());}catch(_0x4db8d9){_0x535c60['push'](_0x535c60['shift']());}}}(_0x4986,0xc2d72));import{InstancePoolError as _0x2c54fc,createGenericKeyedInstancePool as _0x534d32}from'@univer-cli/generic-keyed-instance-pool';import{CollaborationRuntimeError as _0x33013f}from'@univer-cli/univer-collaboration-runtime';import{fork as _0x5d1cd4}from'node:child_process';import{dirname as _0x160833,extname as _0x3a8f78,join as _0x15b21d}from'node:path';import{fileURLToPath as _0x1bbb87}from'node:url';var c=class extends Error{[_0x38413c(0x1dc)];[_0x38413c(0x202)];constructor(_0x346ea7,_0x2768aa,_0x6f5958={}){const _0x2df228=_0x38413c;super(_0x2768aa,_0x6f5958),this[_0x2df228(0x209)]=_0x2df228(0x21e),this[_0x2df228(0x1dc)]=_0x346ea7,this[_0x2df228(0x202)]=_0x6f5958[_0x2df228(0x202)]??!0x1;}};async function l(_0x22ef9c){const _0x239e41=_0x38413c;let _0x413433=_0x1bbb87(import.meta.url),_0x23f0f9=_0x160833(_0x413433),_0x571d38=_0x15b21d(_0x23f0f9,_0x3a8f78(_0x413433)===_0x239e41(0x1f7)?_0x239e41(0x1ba):_0x239e41(0x1f0)),_0xc8425e=u(_0x5d1cd4(_0x571d38,[],{..._0x22ef9c['env']===void 0x0?{}:{'env':_0x22ef9c['env']},'serialization':_0x239e41(0x220),'stdio':[_0x239e41(0x1df),_0x239e41(0x1df),'ignore',_0x239e41(0x201)]}),_0x22ef9c[_0x239e41(0x20a)]);try{let _0xaf7b91=d(await _0xc8425e[_0x239e41(0x1a4)]({'entry':_0x22ef9c[_0x239e41(0x1d9)],'id':_0xc8425e['nextId'](),'init':_0x22ef9c[_0x239e41(0x207)],'type':_0x239e41(0x22c)},_0x22ef9c['openTimeoutMs'],_0x239e41(0x1ab))),_0x8c547,_0x14d157=async _0x8fa896=>await _0xc8425e['request']({..._0x8fa896,'id':_0xc8425e[_0x239e41(0x1f2)]()},_0x22ef9c['operationTimeoutMs']);return{..._0xaf7b91,async 'close'(){const _0x4f2280=_0x239e41;_0x8c547??=_0xc8425e[_0x4f2280(0x1d7)](),await _0x8c547;},async 'getState'(){const _0x57073d=_0x239e41;return f(await _0x14d157({'type':_0x57073d(0x1b7)}));},async 'getPendingMutations'(){const _0x5228bc=_0x239e41;let _0x3f5305=await _0x14d157({'type':'get-pending-mutations'});if(!C(_0x3f5305))throw _(_0x5228bc(0x1af));return _0x3f5305;},async 'executeReadCode'(_0x57a6c8){const _0x2f9838=_0x239e41;let _0xe3197c=p(await _0x14d157({'code':_0x57a6c8,'type':_0x2f9838(0x1ed)}));if(!(_0x2f9838(0x20e)in _0xe3197c)||!w(_0xe3197c[_0x2f9838(0x20e)]))throw _(_0x2f9838(0x1a8));return _0xe3197c;},async 'executeWriteCode'(_0x5ba130){const _0x97a429=_0x239e41;let _0xdb7a82=p(await _0x14d157({'code':_0x5ba130,'type':_0x97a429(0x1d4)}));if(!w(_0xdb7a82[_0x97a429(0x20e)])||!C(_0xdb7a82[_0x97a429(0x200)]))throw _(_0x97a429(0x223));return _0xdb7a82;},async 'replacePendingMutations'(_0x3e24f6){const _0x285eef=_0x239e41;let _0x557b53=p(await _0x14d157({'mutations':_0x3e24f6,'type':_0x285eef(0x1ee)}));if(!T(_0x557b53[_0x285eef(0x1ad)])||!T(_0x557b53[_0x285eef(0x1c3)]))throw _(_0x285eef(0x1c4));return _0x557b53;},async 'fetch'(){const _0x4b2bbb=_0x239e41;return m(await _0x14d157({'type':_0x4b2bbb(0x1a1)}),[_0x4b2bbb(0x20c),_0x4b2bbb(0x21a)]);},async 'pull'(){const _0x10dba0=_0x239e41;return m(await _0x14d157({'type':_0x10dba0(0x1bd)}),[_0x10dba0(0x1c9),_0x10dba0(0x1c8),_0x10dba0(0x229)]);},async 'commit'(){const _0x57faee=_0x239e41;return m(await _0x14d157({'type':'commit'}),[_0x57faee(0x1eb),_0x57faee(0x1e6),'confirmed','retry',_0x57faee(0x218),_0x57faee(0x229)]);},async 'exportUnitData'(){const _0x491f33=_0x239e41;let _0x59847e=await _0x14d157({'type':'export'});if(!E(_0x59847e))throw _(_0x491f33(0x1fb));return _0x59847e;}};}catch(_0x1987fc){throw await _0xc8425e[_0x239e41(0x1d7)](),_0x1987fc;}}function u(_0xf6533c,_0x5322cc){const _0x32de35=_0x38413c;let _0x94b44e=new Map(),_0x3e397a=0x0,_0x1943ec,_0x597d26=!0x1,_0x4bb8dd,_0x1e9f78,_0x10e383=new Promise(_0xa3ccc=>{_0x1e9f78=_0xa3ccc;});return _0xf6533c['on']('message',_0x2cf22f=>{const _0x30f7ac=_0x1657;if(!v(_0x2cf22f))return;let _0x5b0102=_0x94b44e[_0x30f7ac(0x1c0)](_0x2cf22f['id']);_0x5b0102&&(_0x94b44e['delete'](_0x2cf22f['id']),_0x5b0102[_0x30f7ac(0x224)]&&clearTimeout(_0x5b0102[_0x30f7ac(0x224)]),_0x2cf22f[_0x30f7ac(0x204)]===_0x30f7ac(0x1fe)?_0x5b0102[_0x30f7ac(0x1d6)](h(_0x2cf22f[_0x30f7ac(0x1fe)])):_0x5b0102['resolve'](_0x2cf22f[_0x30f7ac(0x1e7)]));}),_0xf6533c['on'](_0x32de35(0x1fe),_0xef3b79=>_0xed8d9e(g(_0x32de35(0x1c2)+_0x5322cc+'\x20failed:\x20'+_0xef3b79[_0x32de35(0x1be)],_0xef3b79))),_0xf6533c['on'](_0x32de35(0x1f3),(_0x1ccdab,_0x4d4e70)=>{const _0x733b42=_0x32de35;_0x597d26||_0xed8d9e(g(_0x733b42(0x1c2)+_0x5322cc+'\x20exited\x20unexpectedly\x20with\x20'+(_0x4d4e70?'signal\x20'+_0x4d4e70:_0x733b42(0x1e1)+String(_0x1ccdab))));}),_0xf6533c['on'](_0x32de35(0x1d7),()=>_0x1e9f78()),{async 'close'(){if(_0x4bb8dd)return await _0x4bb8dd;_0x4bb8dd=_0x420d8a(),await _0x4bb8dd;},'nextId'(){return++_0x3e397a;},async 'request'(_0x42553c,_0x301de5,_0x332ef5=_0x32de35(0x228)){if(_0x1943ec)throw _0x1943ec;return await new Promise((_0x55845b,_0x349e02)=>{const _0xe3209b=_0x1657;let _0x4ae013={'reject':_0x349e02,'resolve':_0x55845b,'timer':setTimeout(()=>{_0xed8d9e(new c(_0x332ef5,'Collaboration\x20worker\x20'+_0x5322cc+'\x20timed\x20out\x20after\x20'+_0x301de5+'ms',{'invalidatesInstance':!0x0})),_0x51960c();},_0x301de5)};_0x94b44e[_0xe3209b(0x1b8)](_0x42553c['id'],_0x4ae013),_0xf6533c[_0xe3209b(0x1cc)](_0x42553c,_0x423951=>{const _0x288ccf=_0xe3209b;_0x423951&&_0xed8d9e(g(_0x288ccf(0x222)+_0x5322cc,_0x423951));});});}};async function _0x420d8a(){const _0x22ce5e=_0x32de35;if(_0x597d26=!0x0,!_0x1943ec&&_0xf6533c[_0x22ce5e(0x21c)])try{await Promise[_0x22ce5e(0x1b4)]([new Promise((_0x5e3dbb,_0x3446c7)=>{const _0x2eb8ac=_0x22ce5e;let _0x3c7ceb=++_0x3e397a;_0x94b44e[_0x2eb8ac(0x1b8)](_0x3c7ceb,{'reject':_0x3446c7,'resolve':_0x5e3dbb}),_0xf6533c[_0x2eb8ac(0x1cc)]({'id':_0x3c7ceb,'type':_0x2eb8ac(0x1d7)},_0x143ace=>{_0x143ace&&_0x3446c7(_0x143ace);});}),new Promise((_0x391072,_0x1fc5e8)=>{const _0x2f18bf=_0x22ce5e;setTimeout(()=>_0x1fc5e8(Error(_0x2f18bf(0x1ca))),0x1388)[_0x2f18bf(0x1ac)]();})]);}catch{}_0x51960c(),await _0x10e383,_0xed8d9e(new c(_0x22ce5e(0x217),_0x22ce5e(0x1f1)+_0x5322cc+'\x20is\x20closed',{'invalidatesInstance':!0x0}));}function _0xed8d9e(_0x2ff675){const _0x4546ff=_0x32de35;_0x1943ec??=_0x2ff675;for(let _0xa0ed86 of _0x94b44e[_0x4546ff(0x1e2)]())_0xa0ed86[_0x4546ff(0x224)]&&clearTimeout(_0xa0ed86[_0x4546ff(0x224)]),_0xa0ed86[_0x4546ff(0x1d6)](_0x1943ec);_0x94b44e['clear']();}function _0x51960c(){const _0x24b4dd=_0x32de35;_0xf6533c[_0x24b4dd(0x1f4)]===null&&_0xf6533c[_0x24b4dd(0x20d)]===null&&_0xf6533c[_0x24b4dd(0x1a3)](_0x24b4dd(0x1d1));}}function _0x1657(_0x25f24e,_0x1e2ed0){_0x25f24e=_0x25f24e-0x1a1;const _0x49860a=_0x4986();let _0x165791=_0x49860a[_0x25f24e];return _0x165791;}function d(_0x2afb76){const _0x425468=_0x38413c;if(!E(_0x2afb76)||typeof _0x2afb76[_0x425468(0x1f9)]!=_0x425468(0x1ff)||!y(_0x2afb76['unitType']))throw _(_0x425468(0x1c7));return{'unitId':_0x2afb76['unitId'],'unitType':_0x2afb76['unitType']};}function f(_0x541bdd){const _0x5b5581=_0x38413c;if(!E(_0x541bdd)||!b(_0x541bdd['connection'])||!T(_0x541bdd['baseRevision'])||!T(_0x541bdd[_0x5b5581(0x1d2)])||Number(_0x541bdd['knownHeadRevision'])<Number(_0x541bdd[_0x5b5581(0x1fd)])||!T(_0x541bdd[_0x5b5581(0x1c3)])||!T(_0x541bdd[_0x5b5581(0x1a9)])||!x(_0x541bdd['awaitingChangeset'])||!S(_0x541bdd[_0x5b5581(0x229)]))throw _(_0x5b5581(0x1da));return _0x541bdd;}function p(_0x4a81d1){const _0x23431a=_0x38413c;if(!E(_0x4a81d1))throw _(_0x23431a(0x203));return{..._0x4a81d1,'state':f(_0x4a81d1[_0x23431a(0x1ef)])};}function _0x4986(){const _0x35c313=['reconnecting','race','release','391462vhplvR','get-state','set','entry\x20must\x20not\x20be\x20empty','worker-child.ts','online','export','pull','message','COLLABORATION_WORKER_PROTOCOL_ERROR','get','pending-mutations','Worker\x20','pendingMutationCount','Worker\x20returned\x20an\x20invalid\x20mutation\x20replacement\x20result','COLLABORATION_WORKER_CRASHED','openTimeoutMs','Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20metadata','pulled','up-to-date','Worker\x20close\x20timed\x20out','4450614ECMLXx','send','2410136FUFPOF','number','acquire','isFinite','SIGKILL','knownHeadRevision','onEvent','execute-write','assign','reject','close','INSTANCE_POOL_CAPACITY_EXCEEDED','entry','Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20state','Collaboration\x20runtime\x20lease\x20','code','executeWriteCode','includes','ignore','isArray','exit\x20code\x20','values','operation','43842951TsLHkz','length','pull-required','result','COLLABORATION_POOL_CLOSED','reason','now','nothing-to-commit','reqId','execute-read','replace-mutations','state','worker-child.mjs','Collaboration\x20worker\x20','nextId','exit','exitCode','href','status','.ts','exportUnitData','unitId','mutationCount','Worker\x20returned\x20invalid\x20UnitData','stack','baseRevision','error','string','mutations','ipc','invalidatesInstance','Worker\x20returned\x20an\x20invalid\x20operation\x20result','type','Worker\x20returned\x20an\x20invalid\x20operation\x20status','COLLABORATION_POOL_CAPACITY_EXCEEDED','init','sid','name','key','read','unchanged','signalCode','value','operationTimeoutMs','10816096QkpQJt','618IeYsth','cache','COLLABORATION_POOL_INVALID_INPUT','COLLABORATION_','89922aIUFJH','executeReadCode','COLLABORATION_WORKER_CLOSED','unknown','\x20must\x20be\x20a\x20finite\x20positive\x20number','fetched','instance-failed','connected','retryable','UniverCollaborationRuntimePoolError','COLLABORATION_LEASE_CLOSED','advanced','mode','Failed\x20to\x20send\x20a\x20request\x20to\x20worker\x20','Worker\x20returned\x20an\x20invalid\x20write\x20result','timer','2JJfSir','offline','4543405xxyNId','COLLABORATION_WORKER_OPERATION_TIMEOUT','conflict','env','revision','open','getPendingMutations','fetch','closed','kill','request','isSafeInteger','operation-complete','every','Worker\x20returned\x20an\x20invalid\x20read\x20value','bufferedChangesetCount','startsWith','COLLABORATION_WORKER_OPEN_TIMEOUT','unref','previousMutationCount','invalidate','Worker\x20returned\x20invalid\x20pending\x20mutations','transform-failed','commit','unitType'];_0x4986=function(){return _0x35c313;};return _0x4986();}function m(_0x4aa6fb,_0xd5be6d){const _0x446059=_0x38413c;let _0x4effdd=p(_0x4aa6fb);if(typeof _0x4effdd[_0x446059(0x1f6)]!='string'||!_0xd5be6d[_0x446059(0x1de)](_0x4effdd[_0x446059(0x1f6)]))throw _(_0x446059(0x205));return _0x4effdd;}function h(_0x3fe16f){const _0x2c5136=_0x38413c;if(_0x3fe16f['code']?.[_0x2c5136(0x1aa)](_0x2c5136(0x214))&&!_0x3fe16f[_0x2c5136(0x1dc)][_0x2c5136(0x1aa)]('COLLABORATION_WORKER_')){let _0x565555=new _0x33013f(_0x3fe16f[_0x2c5136(0x1dc)],_0x3fe16f[_0x2c5136(0x1be)],{'retryable':_0x3fe16f[_0x2c5136(0x21d)]??!0x1});return _0x3fe16f[_0x2c5136(0x1fc)]!==void 0x0&&(_0x565555[_0x2c5136(0x1fc)]=_0x3fe16f[_0x2c5136(0x1fc)]),_0x3fe16f[_0x2c5136(0x202)]&&Object[_0x2c5136(0x1d5)](_0x565555,{'invalidatesInstance':!0x0}),_0x565555;}let _0xe7b35b=Error(_0x3fe16f[_0x2c5136(0x1be)]);return _0xe7b35b[_0x2c5136(0x209)]=_0x3fe16f[_0x2c5136(0x209)],_0x3fe16f[_0x2c5136(0x1dc)]!==void 0x0&&Object[_0x2c5136(0x1d5)](_0xe7b35b,{'code':_0x3fe16f['code']}),_0x3fe16f['invalidatesInstance']&&Object[_0x2c5136(0x1d5)](_0xe7b35b,{'invalidatesInstance':!0x0}),_0x3fe16f['stack']!==void 0x0&&(_0xe7b35b[_0x2c5136(0x1fc)]=_0x3fe16f[_0x2c5136(0x1fc)]),_0xe7b35b;}function g(_0x565754,_0x1e4ccc){const _0x34c6b8=_0x38413c;return new c(_0x34c6b8(0x1c5),_0x565754,{..._0x1e4ccc===void 0x0?{}:{'cause':_0x1e4ccc},'invalidatesInstance':!0x0});}function _(_0x3c89ff){const _0x480986=_0x38413c;return new c(_0x480986(0x1bf),_0x3c89ff,{'invalidatesInstance':!0x0});}function v(_0x38832a){const _0x751cd1=_0x38413c;return E(_0x38832a)&&Number[_0x751cd1(0x1a5)](_0x38832a['id'])&&(_0x38832a[_0x751cd1(0x204)]===_0x751cd1(0x1e7)||_0x38832a[_0x751cd1(0x204)]===_0x751cd1(0x1fe));}function y(_0x218014){return _0x218014===0x1||_0x218014===0x2||_0x218014===0x3||_0x218014===0x5||_0x218014===0x6;}function b(_0x3ca808){const _0x101475=_0x38413c;return _0x3ca808===_0x101475(0x1bb)||_0x3ca808===_0x101475(0x1b3)||_0x3ca808===_0x101475(0x226)||_0x3ca808===_0x101475(0x1a2);}function x(_0x3510c4){const _0x5c0143=_0x38413c;return _0x3510c4===null||E(_0x3510c4)&&T(_0x3510c4[_0x5c0143(0x1fd)])&&T(_0x3510c4[_0x5c0143(0x22b)])&&T(_0x3510c4[_0x5c0143(0x1fa)])&&(_0x3510c4[_0x5c0143(0x208)]===void 0x0||typeof _0x3510c4['sid']=='string')&&(_0x3510c4[_0x5c0143(0x1ec)]===void 0x0||T(_0x3510c4[_0x5c0143(0x1ec)]));}function S(_0x5197b5){const _0x27addf=_0x38413c;return _0x5197b5===null||E(_0x5197b5)&&(_0x5197b5[_0x27addf(0x1e3)]===_0x27addf(0x1bd)||_0x5197b5[_0x27addf(0x1e3)]===_0x27addf(0x1b1))&&(_0x5197b5[_0x27addf(0x1e9)]===_0x27addf(0x1b0)||_0x5197b5[_0x27addf(0x1e9)]==='changeset-rejected'||_0x5197b5['reason']==='permission-rejected')&&typeof _0x5197b5['message']=='string';}function C(_0x94bf6f){const _0x50ef29=_0x38413c;return Array[_0x50ef29(0x1e0)](_0x94bf6f)&&_0x94bf6f[_0x50ef29(0x1a7)](_0x567112=>E(_0x567112)&&typeof _0x567112['id']==_0x50ef29(0x1ff)&&_0x567112['id'][_0x50ef29(0x1e5)]>0x0&&typeof _0x567112['data']=='string');}function w(_0x1899fc){const _0x33a55e=_0x38413c;return _0x1899fc===null||typeof _0x1899fc=='boolean'||typeof _0x1899fc==_0x33a55e(0x1ff)||typeof _0x1899fc==_0x33a55e(0x1ce)&&Number['isFinite'](_0x1899fc)?!0x0:Array[_0x33a55e(0x1e0)](_0x1899fc)?_0x1899fc[_0x33a55e(0x1a7)](w):E(_0x1899fc)&&Object[_0x33a55e(0x1e2)](_0x1899fc)[_0x33a55e(0x1a7)](w);}function T(_0x45116b){const _0x1cddb8=_0x38413c;return Number[_0x1cddb8(0x1a5)](_0x45116b)&&Number(_0x45116b)>=0x0;}function E(_0x506820){const _0x32c2bc=_0x38413c;return typeof _0x506820=='object'&&!!_0x506820&&!Array[_0x32c2bc(0x1e0)](_0x506820);}var D=0x7530,O=0x7530;function k(_0x257a44){const _0x39b952=_0x38413c;let _0x48dc71=A(_0x257a44[_0x39b952(0x1d9)]),_0x1e164e=_0x257a44['openTimeoutMs']??D,_0x4b2599=_0x257a44['operationTimeoutMs']??O;j(_0x1e164e,_0x39b952(0x1c6)),j(_0x4b2599,_0x39b952(0x20f));let _0x233a45;try{_0x233a45=_0x534d32({'factory':{async 'create'(_0x228313){const _0xa987b1=_0x39b952;return await l({'entry':_0x48dc71,..._0x257a44[_0xa987b1(0x22a)]===void 0x0?{}:{'env':_0x257a44[_0xa987b1(0x22a)]},'init':_0x228313[_0xa987b1(0x207)],'key':_0x228313[_0xa987b1(0x20a)],'openTimeoutMs':_0x1e164e,'operationTimeoutMs':_0x4b2599});},async 'destroy'({instance:_0x34b455}){const _0x53705b=_0x39b952;await _0x34b455[_0x53705b(0x1d7)]();}},..._0x257a44[_0x39b952(0x212)]===void 0x0?{}:{'cache':_0x257a44['cache']},'onEvent':_0x13cf47});}catch(_0x57e397){throw M(_0x57e397);}return{async 'acquire'(_0x4dd775){const _0x7d692f=_0x39b952;let _0x3b8afb;try{_0x3b8afb=await _0x233a45[_0x7d692f(0x1cf)](_0x4dd775);}catch(_0x2fc4e){throw M(_0x2fc4e);}return _0x490685(_0x3b8afb);},async 'close'(){const _0x17abbd=_0x39b952;try{await _0x233a45[_0x17abbd(0x1d7)]();}catch(_0x591d2e){throw M(_0x591d2e);}}};function _0x490685(_0x449c6c){const _0x243f89=_0x39b952;let _0x8d5d86=_0x449c6c['instance'],_0x3bba7f=!0x1,_0x4e43d1,_0x57c303=!0x1;return{'key':_0x449c6c[_0x243f89(0x20a)],'unitId':_0x8d5d86['unitId'],'unitType':_0x8d5d86[_0x243f89(0x1b2)],async 'getState'(){const _0x3fe269=_0x243f89;return await _0x493232(_0x3fe269(0x1ef),async()=>await _0x8d5d86['getState']());},async 'getPendingMutations'(){const _0xe43be6=_0x243f89;return await _0x493232(_0xe43be6(0x1c1),async()=>await _0x8d5d86[_0xe43be6(0x22d)]());},async 'execute'(_0x1df187){const _0x4825d9=_0x243f89;return _0x1df187[_0x4825d9(0x221)]===_0x4825d9(0x20b)?await _0x493232(_0x4825d9(0x20b),async()=>await _0x8d5d86[_0x4825d9(0x216)](_0x1df187[_0x4825d9(0x1dc)])):await _0x493232('write',async()=>await _0x8d5d86[_0x4825d9(0x1dd)](_0x1df187[_0x4825d9(0x1dc)]));},async 'replacePendingMutations'(_0x96e65b){return await _0x493232('replace-mutations',async()=>await _0x8d5d86['replacePendingMutations'](_0x96e65b));},async 'fetch'(){const _0x188fa5=_0x243f89;return await _0x493232(_0x188fa5(0x1a1),async()=>await _0x8d5d86[_0x188fa5(0x1a1)]());},async 'pull'(){const _0x48988a=_0x243f89;return await _0x493232(_0x48988a(0x1bd),async()=>await _0x8d5d86[_0x48988a(0x1bd)]());},async 'commit'(){const _0x547c69=_0x243f89;return await _0x493232(_0x547c69(0x1b1),async()=>await _0x8d5d86[_0x547c69(0x1b1)]());},async 'exportUnitData'(){const _0x3d1bcc=_0x243f89;return await _0x493232(_0x3d1bcc(0x1bc),async()=>await _0x8d5d86[_0x3d1bcc(0x1f8)]());},async 'invalidate'(){_0x3bba7f||(_0x3bba7f=!0x0,await _0x449c6c['invalidate']());},async 'release'(){const _0x521543=_0x243f89;_0x3bba7f||(_0x3bba7f=!0x0,_0x57c303?await _0x449c6c[_0x521543(0x1ae)]():await _0x449c6c[_0x521543(0x1b5)]());}};async function _0x493232(_0xdf7897,_0x21b9e0){const _0xe24dd4=_0x243f89;_0x53ef36();try{return await _0x482576(_0x449c6c[_0xe24dd4(0x20a)],_0xdf7897,_0x21b9e0);}catch(_0x208350){throw _0x131e39(_0x208350),_0x208350;}}function _0x53ef36(){const _0x672125=_0x243f89;if(_0x3bba7f)throw new c(_0x672125(0x21f),_0x672125(0x1db)+_0x449c6c['key']+'\x20is\x20closed');if(_0x4e43d1)throw _0x4e43d1;}function _0x131e39(_0x3a3b62){const _0x11abeb=_0x243f89;(_0x3a3b62 instanceof c&&_0x3a3b62[_0x11abeb(0x202)]||_0x3a3b62 instanceof _0x33013f&&(_0x3a3b62[_0x11abeb(0x1dc)]==='COLLABORATION_PROTOCOL_ERROR'||_0x3a3b62['code']==='COLLABORATION_CLOSED'||_0x3a3b62[_0x11abeb(0x1dc)]==='COLLABORATION_LOAD_FAILED')||typeof _0x3a3b62=='object'&&_0x3a3b62&&_0x11abeb(0x202)in _0x3a3b62&&_0x3a3b62['invalidatesInstance']===!0x0)&&(_0x57c303=!0x0,_0x4e43d1=_0x3a3b62,_0x35ca01({'errorCode':N(_0x3a3b62),'key':_0x449c6c[_0x11abeb(0x20a)],'type':_0x11abeb(0x21b)}));}}async function _0x482576(_0x5c7a30,_0x7dd907,_0x7c135c){const _0xa54ce=_0x39b952;let _0xe82570=Date[_0xa54ce(0x1ea)](),_0x2bd7b9=await _0x7c135c();return _0x35ca01({'durationMs':Date[_0xa54ce(0x1ea)]()-_0xe82570,'key':_0x5c7a30,'operation':_0x7dd907,'type':_0xa54ce(0x1a6)}),_0x2bd7b9;}function _0x13cf47(_0x139e4a){_0x35ca01(_0x139e4a);}function _0x35ca01(_0x6d0e1a){const _0x356b98=_0x39b952;try{_0x257a44[_0x356b98(0x1d3)]?.(_0x6d0e1a);}catch{}}}function A(_0x31b657){const _0xeccdd8=_0x38413c;let _0x123f95=_0x31b657 instanceof URL?_0x31b657['href']:_0x31b657;if(_0x123f95[_0xeccdd8(0x1e5)]===0x0)throw new c(_0xeccdd8(0x213),_0xeccdd8(0x1b9));try{return new URL(_0x123f95)[_0xeccdd8(0x1f5)];}catch{throw new c(_0xeccdd8(0x213),'entry\x20must\x20be\x20an\x20absolute\x20file\x20URL\x20or\x20another\x20importable\x20URL');}}function j(_0x32a428,_0x13a156){const _0x140e28=_0x38413c;if(!Number[_0x140e28(0x1d0)](_0x32a428)||_0x32a428<=0x0)throw new c(_0x140e28(0x213),_0x13a156+_0x140e28(0x219));}function M(_0xb2bacb){const _0x43b78c=_0x38413c;return _0xb2bacb instanceof _0x2c54fc?new c(_0xb2bacb[_0x43b78c(0x1dc)]===_0x43b78c(0x1d8)?_0x43b78c(0x206):_0xb2bacb['code']==='INSTANCE_POOL_CLOSED'?_0x43b78c(0x1e8):_0x43b78c(0x213),_0xb2bacb[_0x43b78c(0x1be)],{'cause':_0xb2bacb}):_0xb2bacb;}function N(_0x45afbf){const _0x323fae=_0x38413c;return typeof _0x45afbf=='object'&&_0x45afbf&&'code'in _0x45afbf&&typeof _0x45afbf['code']==_0x323fae(0x1ff)?_0x45afbf[_0x323fae(0x1dc)]:'UNKNOWN';}function P(_0x1df8af){return _0x1df8af;}export{c as UniverCollaborationRuntimePoolError,k as createUniverCollaborationRuntimePool,P as defineUniverCollaborationRuntimeWorker};
1
+ const _0x33a59d=_0x5a27;(function(_0x53dcf5,_0x1c669b){const _0x35eed7=_0x5a27,_0x46a832=_0x53dcf5();while(!![]){try{const _0x5bfc31=-parseInt(_0x35eed7(0x1f1))/0x1+-parseInt(_0x35eed7(0x266))/0x2+parseInt(_0x35eed7(0x265))/0x3+parseInt(_0x35eed7(0x239))/0x4+parseInt(_0x35eed7(0x261))/0x5+parseInt(_0x35eed7(0x1f0))/0x6*(parseInt(_0x35eed7(0x249))/0x7)+-parseInt(_0x35eed7(0x1e9))/0x8;if(_0x5bfc31===_0x1c669b)break;else _0x46a832['push'](_0x46a832['shift']());}catch(_0x4588cd){_0x46a832['push'](_0x46a832['shift']());}}}(_0x1ead,0xac6e2));import{InstancePoolError as _0x46f132,createGenericKeyedInstancePool as _0xbf1442}from'@univer-cli/generic-keyed-instance-pool';function _0x1ead(){const _0x5af798=['message','pulled','operationTimeoutMs','\x20is\x20closed','21581eJseGK','COLLABORATION_WORKER_OPERATION_TIMEOUT','name','COLLABORATION_LEASE_CLOSED','kill','type','Worker\x20returned\x20invalid\x20pending\x20mutations','execute-write','commit','closed','signalCode','result','pull','reason','string','open','previousMutationCount','Collaboration\x20worker\x20','confirmed','href','bufferedChangesetCount','sid','unref','reqId','1949850MCXKXV','UniverCollaborationRuntimePoolError','Worker\x20','COLLABORATION_WORKER_CLOSED','2509050oYFZvT','686090GVVutN','length','entry\x20must\x20be\x20an\x20absolute\x20file\x20URL\x20or\x20another\x20importable\x20URL','Worker\x20returned\x20an\x20invalid\x20read\x20value','exitCode','pull-required','includes','retry','mode','nothing-to-commit','number','get','SIGKILL','pendingMutationCount','instance-failed','COLLABORATION_CLOSED','value','fetched','baseRevision','8706416VfSudm','unitType','exit\x20code\x20','close','nextId','replace-mutations','signal\x20','2094VjFbTx','1389760vfsYWb','revision','conflict','status','exportUnitData','code','connected','env','connection','unchanged','reject','entry\x20must\x20not\x20be\x20empty','export','state','entry','object','.ts','assign','send','unitId','isSafeInteger','COLLABORATION_WORKER_CRASHED','now','boolean','stack','set','mutations','fetch','getPendingMutations','read','Worker\x20returned\x20an\x20invalid\x20mutation\x20replacement\x20result','pending-mutations','worker-child.mjs','Worker\x20returned\x20an\x20invalid\x20operation\x20result','operation','isArray','error','ignore','COLLABORATION_LOAD_FAILED','up-to-date','every','delete','ipc','knownHeadRevision','race','values','onEvent','UNKNOWN','COLLABORATION_POOL_INVALID_INPUT','exit','worker-child.ts','mutationCount','Worker\x20close\x20timed\x20out','timer','unknown','cache','operation-complete','Collaboration\x20runtime\x20lease\x20','init','key','request','awaitingChangeset','INSTANCE_POOL_CLOSED','\x20failed:\x20','reconnecting','instance','COLLABORATION_WORKER_OPEN_TIMEOUT','COLLABORATION_PROTOCOL_ERROR','executeWriteCode','getState','Failed\x20to\x20send\x20a\x20request\x20to\x20worker\x20','release','4900376xCibiz','invalidate','Worker\x20returned\x20an\x20invalid\x20operation\x20status','invalidatesInstance','COLLABORATION_','\x20must\x20be\x20a\x20finite\x20positive\x20number','startsWith','openTimeoutMs','isFinite','get-state','\x20timed\x20out\x20after\x20','INSTANCE_POOL_CAPACITY_EXCEEDED'];_0x1ead=function(){return _0x5af798;};return _0x1ead();}import{CollaborationRuntimeError as _0x4ea9fe}from'@univer-cli/univer-collaboration-runtime';import{fork as _0x4c9f56}from'node:child_process';import{dirname as _0x295d54,extname as _0x58b58d,join as _0x3d0618}from'node:path';import{fileURLToPath as _0x11fdd5}from'node:url';var c=class extends Error{[_0x33a59d(0x1f6)];[_0x33a59d(0x23c)];constructor(_0xdd1d5d,_0x484673,_0xd25478={}){const _0xdc9d=_0x33a59d;super(_0x484673,_0xd25478),this['name']=_0xdc9d(0x262),this[_0xdc9d(0x1f6)]=_0xdd1d5d,this['invalidatesInstance']=_0xd25478[_0xdc9d(0x23c)]??!0x1;}};async function l(_0x50efce){const _0x512de4=_0x33a59d;let _0x75246f=_0x11fdd5(import.meta.url),_0x5d1aa2=_0x295d54(_0x75246f),_0x1462f9=_0x3d0618(_0x5d1aa2,_0x58b58d(_0x75246f)===_0x512de4(0x201)?_0x512de4(0x223):_0x512de4(0x211)),_0x56f06e=u(_0x4c9f56(_0x1462f9,[],{..._0x50efce['env']===void 0x0?{}:{'env':_0x50efce[_0x512de4(0x1f8)]},'serialization':'advanced','stdio':[_0x512de4(0x216),_0x512de4(0x216),_0x512de4(0x216),_0x512de4(0x21b)]}),_0x50efce[_0x512de4(0x22c)]);try{let _0x124704=d(await _0x56f06e[_0x512de4(0x22d)]({'entry':_0x50efce[_0x512de4(0x1ff)],'id':_0x56f06e[_0x512de4(0x1ed)](),'init':_0x50efce['init'],'type':_0x512de4(0x258)},_0x50efce[_0x512de4(0x240)],_0x512de4(0x233))),_0x503312,_0x56dd60=async _0x113436=>await _0x56f06e[_0x512de4(0x22d)]({..._0x113436,'id':_0x56f06e[_0x512de4(0x1ed)]()},_0x50efce[_0x512de4(0x247)]);return{..._0x124704,async 'close'(){_0x503312??=_0x56f06e['close'](),await _0x503312;},async 'getState'(){const _0x4de3a6=_0x512de4;return f(await _0x56dd60({'type':_0x4de3a6(0x242)}));},async 'getPendingMutations'(){const _0x2f4263=_0x512de4;let _0x2be797=await _0x56dd60({'type':'get-pending-mutations'});if(!C(_0x2be797))throw _(_0x2f4263(0x24f));return _0x2be797;},async 'executeReadCode'(_0x340675){const _0x343250=_0x512de4;let _0xd9c041=p(await _0x56dd60({'code':_0x340675,'type':'execute-read'}));if(!(_0x343250(0x276)in _0xd9c041)||!w(_0xd9c041[_0x343250(0x276)]))throw _(_0x343250(0x269));return _0xd9c041;},async 'executeWriteCode'(_0x4d379a){const _0xf5df80=_0x512de4;let _0x165780=p(await _0x56dd60({'code':_0x4d379a,'type':_0xf5df80(0x250)}));if(!w(_0x165780['value'])||!C(_0x165780[_0xf5df80(0x20b)]))throw _('Worker\x20returned\x20an\x20invalid\x20write\x20result');return _0x165780;},async 'replacePendingMutations'(_0x4ba9bc){const _0xf19f03=_0x512de4;let _0x24653c=p(await _0x56dd60({'mutations':_0x4ba9bc,'type':_0xf19f03(0x1ee)}));if(!T(_0x24653c[_0xf19f03(0x259)])||!T(_0x24653c[_0xf19f03(0x273)]))throw _(_0xf19f03(0x20f));return _0x24653c;},async 'fetch'(){const _0x3ae484=_0x512de4;return m(await _0x56dd60({'type':_0x3ae484(0x20c)}),[_0x3ae484(0x1fa),_0x3ae484(0x1e7)]);},async 'pull'(){const _0x5a8d0e=_0x512de4;return m(await _0x56dd60({'type':_0x5a8d0e(0x255)}),[_0x5a8d0e(0x218),_0x5a8d0e(0x246),_0x5a8d0e(0x1f3)]);},async 'commit'(){const _0x184f53=_0x512de4;return m(await _0x56dd60({'type':_0x184f53(0x251)}),[_0x184f53(0x26f),_0x184f53(0x26b),_0x184f53(0x25b),_0x184f53(0x26d),_0x184f53(0x227),'conflict']);},async 'exportUnitData'(){const _0x59a359=_0x512de4;let _0x4708c3=await _0x56dd60({'type':_0x59a359(0x1fd)});if(!E(_0x4708c3))throw _('Worker\x20returned\x20invalid\x20UnitData');return _0x4708c3;}};}catch(_0x2b6f47){throw await _0x56f06e[_0x512de4(0x1ec)](),_0x2b6f47;}}function u(_0x30ca56,_0xff08dc){const _0x4d891c=_0x33a59d;let _0x515535=new Map(),_0x533200=0x0,_0x54f481,_0x417269=!0x1,_0xaa3ffb,_0x2dfa8a,_0xabfea6=new Promise(_0xd4b80c=>{_0x2dfa8a=_0xd4b80c;});return _0x30ca56['on'](_0x4d891c(0x245),_0x2e4f1e=>{const _0x3a1d44=_0x4d891c;if(!v(_0x2e4f1e))return;let _0x3cc0c6=_0x515535[_0x3a1d44(0x271)](_0x2e4f1e['id']);_0x3cc0c6&&(_0x515535[_0x3a1d44(0x21a)](_0x2e4f1e['id']),_0x3cc0c6['timer']&&clearTimeout(_0x3cc0c6[_0x3a1d44(0x226)]),_0x2e4f1e[_0x3a1d44(0x24e)]==='error'?_0x3cc0c6[_0x3a1d44(0x1fb)](h(_0x2e4f1e['error'])):_0x3cc0c6['resolve'](_0x2e4f1e[_0x3a1d44(0x254)]));}),_0x30ca56['on']('error',_0x36ba2a=>_0x3c58f7(g(_0x4d891c(0x263)+_0xff08dc+_0x4d891c(0x230)+_0x36ba2a['message'],_0x36ba2a))),_0x30ca56['on'](_0x4d891c(0x222),(_0x2c5063,_0xfb461f)=>{const _0x366f2=_0x4d891c;_0x417269||_0x3c58f7(g(_0x366f2(0x263)+_0xff08dc+'\x20exited\x20unexpectedly\x20with\x20'+(_0xfb461f?_0x366f2(0x1ef)+_0xfb461f:_0x366f2(0x1eb)+String(_0x2c5063))));}),_0x30ca56['on'](_0x4d891c(0x1ec),()=>_0x2dfa8a()),{async 'close'(){if(_0xaa3ffb)return await _0xaa3ffb;_0xaa3ffb=_0x425fec(),await _0xaa3ffb;},'nextId'(){return++_0x533200;},async 'request'(_0x325fb1,_0x4037d7,_0x1e609c=_0x4d891c(0x24a)){if(_0x54f481)throw _0x54f481;return await new Promise((_0x1dbb7b,_0x303597)=>{const _0x40e300=_0x5a27;let _0x5cf8af={'reject':_0x303597,'resolve':_0x1dbb7b,'timer':setTimeout(()=>{const _0xfbca56=_0x5a27;_0x3c58f7(new c(_0x1e609c,'Collaboration\x20worker\x20'+_0xff08dc+_0xfbca56(0x243)+_0x4037d7+'ms',{'invalidatesInstance':!0x0})),_0x4bfb85();},_0x4037d7)};_0x515535['set'](_0x325fb1['id'],_0x5cf8af),_0x30ca56[_0x40e300(0x203)](_0x325fb1,_0x29fc4a=>{const _0x46bd6d=_0x40e300;_0x29fc4a&&_0x3c58f7(g(_0x46bd6d(0x237)+_0xff08dc,_0x29fc4a));});});}};async function _0x425fec(){const _0x332e1b=_0x4d891c;if(_0x417269=!0x0,!_0x54f481&&_0x30ca56[_0x332e1b(0x1f7)])try{await Promise[_0x332e1b(0x21d)]([new Promise((_0x30ec51,_0x7dd14d)=>{const _0x12594c=_0x332e1b;let _0x334a16=++_0x533200;_0x515535[_0x12594c(0x20a)](_0x334a16,{'reject':_0x7dd14d,'resolve':_0x30ec51}),_0x30ca56['send']({'id':_0x334a16,'type':_0x12594c(0x1ec)},_0x193e42=>{_0x193e42&&_0x7dd14d(_0x193e42);});}),new Promise((_0x43c984,_0x44dd7e)=>{const _0x41f270=_0x332e1b;setTimeout(()=>_0x44dd7e(Error(_0x41f270(0x225))),0x1388)[_0x41f270(0x25f)]();})]);}catch{}_0x4bfb85(),await _0xabfea6,_0x3c58f7(new c(_0x332e1b(0x264),_0x332e1b(0x25a)+_0xff08dc+_0x332e1b(0x248),{'invalidatesInstance':!0x0}));}function _0x3c58f7(_0x163662){const _0x2d7c83=_0x4d891c;_0x54f481??=_0x163662;for(let _0x2a04bb of _0x515535[_0x2d7c83(0x21e)]())_0x2a04bb[_0x2d7c83(0x226)]&&clearTimeout(_0x2a04bb['timer']),_0x2a04bb[_0x2d7c83(0x1fb)](_0x54f481);_0x515535['clear']();}function _0x4bfb85(){const _0x1c3a2d=_0x4d891c;_0x30ca56[_0x1c3a2d(0x26a)]===null&&_0x30ca56[_0x1c3a2d(0x253)]===null&&_0x30ca56[_0x1c3a2d(0x24d)](_0x1c3a2d(0x272));}}function d(_0x3eeae3){const _0x33dc47=_0x33a59d;if(!E(_0x3eeae3)||typeof _0x3eeae3[_0x33dc47(0x204)]!=_0x33dc47(0x257)||!y(_0x3eeae3[_0x33dc47(0x1ea)]))throw _('Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20metadata');return{'unitId':_0x3eeae3['unitId'],'unitType':_0x3eeae3[_0x33dc47(0x1ea)]};}function f(_0x4b0f48){const _0x52bf8f=_0x33a59d;if(!E(_0x4b0f48)||!b(_0x4b0f48[_0x52bf8f(0x1f9)])||!T(_0x4b0f48['baseRevision'])||!T(_0x4b0f48[_0x52bf8f(0x21c)])||Number(_0x4b0f48[_0x52bf8f(0x21c)])<Number(_0x4b0f48['baseRevision'])||!T(_0x4b0f48[_0x52bf8f(0x273)])||!T(_0x4b0f48[_0x52bf8f(0x25d)])||!x(_0x4b0f48[_0x52bf8f(0x22e)])||!S(_0x4b0f48[_0x52bf8f(0x1f3)]))throw _('Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20state');return _0x4b0f48;}function p(_0x483ab2){const _0x43c18f=_0x33a59d;if(!E(_0x483ab2))throw _(_0x43c18f(0x212));return{..._0x483ab2,'state':f(_0x483ab2[_0x43c18f(0x1fe)])};}function m(_0x5856c8,_0x59cf1c){const _0x9caaf=_0x33a59d;let _0x10b984=p(_0x5856c8);if(typeof _0x10b984[_0x9caaf(0x1f4)]!=_0x9caaf(0x257)||!_0x59cf1c[_0x9caaf(0x26c)](_0x10b984['status']))throw _(_0x9caaf(0x23b));return _0x10b984;}function h(_0x4c7150){const _0x225bad=_0x33a59d;if(_0x4c7150[_0x225bad(0x1f6)]?.[_0x225bad(0x23f)](_0x225bad(0x23d))&&!_0x4c7150[_0x225bad(0x1f6)][_0x225bad(0x23f)]('COLLABORATION_WORKER_')){let _0x5b577a=new _0x4ea9fe(_0x4c7150[_0x225bad(0x1f6)],_0x4c7150['message'],{'retryable':_0x4c7150['retryable']??!0x1});return _0x4c7150[_0x225bad(0x209)]!==void 0x0&&(_0x5b577a['stack']=_0x4c7150[_0x225bad(0x209)]),_0x4c7150[_0x225bad(0x23c)]&&Object[_0x225bad(0x202)](_0x5b577a,{'invalidatesInstance':!0x0}),_0x5b577a;}let _0x56bcf5=Error(_0x4c7150['message']);return _0x56bcf5[_0x225bad(0x24b)]=_0x4c7150[_0x225bad(0x24b)],_0x4c7150[_0x225bad(0x1f6)]!==void 0x0&&Object[_0x225bad(0x202)](_0x56bcf5,{'code':_0x4c7150[_0x225bad(0x1f6)]}),_0x4c7150[_0x225bad(0x23c)]&&Object[_0x225bad(0x202)](_0x56bcf5,{'invalidatesInstance':!0x0}),_0x4c7150[_0x225bad(0x209)]!==void 0x0&&(_0x56bcf5[_0x225bad(0x209)]=_0x4c7150[_0x225bad(0x209)]),_0x56bcf5;}function g(_0xb42b11,_0x1e2d24){const _0x377bce=_0x33a59d;return new c(_0x377bce(0x206),_0xb42b11,{..._0x1e2d24===void 0x0?{}:{'cause':_0x1e2d24},'invalidatesInstance':!0x0});}function _(_0x3905d1){return new c('COLLABORATION_WORKER_PROTOCOL_ERROR',_0x3905d1,{'invalidatesInstance':!0x0});}function v(_0x572a11){const _0x26be74=_0x33a59d;return E(_0x572a11)&&Number[_0x26be74(0x205)](_0x572a11['id'])&&(_0x572a11[_0x26be74(0x24e)]===_0x26be74(0x254)||_0x572a11[_0x26be74(0x24e)]===_0x26be74(0x215));}function y(_0x409948){return _0x409948===0x1||_0x409948===0x2||_0x409948===0x3||_0x409948===0x5||_0x409948===0x6;}function b(_0x24aa60){const _0x1c9c3e=_0x33a59d;return _0x24aa60==='online'||_0x24aa60===_0x1c9c3e(0x231)||_0x24aa60==='offline'||_0x24aa60===_0x1c9c3e(0x252);}function x(_0x11b494){const _0x5cbde8=_0x33a59d;return _0x11b494===null||E(_0x11b494)&&T(_0x11b494[_0x5cbde8(0x1e8)])&&T(_0x11b494[_0x5cbde8(0x1f2)])&&T(_0x11b494[_0x5cbde8(0x224)])&&(_0x11b494[_0x5cbde8(0x25e)]===void 0x0||typeof _0x11b494[_0x5cbde8(0x25e)]==_0x5cbde8(0x257))&&(_0x11b494['reqId']===void 0x0||T(_0x11b494[_0x5cbde8(0x260)]));}function _0x5a27(_0x45a1a2,_0x3105c2){_0x45a1a2=_0x45a1a2-0x1e7;const _0x1eadbc=_0x1ead();let _0x5a2768=_0x1eadbc[_0x45a1a2];return _0x5a2768;}function S(_0x25823d){const _0x16f786=_0x33a59d;return _0x25823d===null||E(_0x25823d)&&(_0x25823d[_0x16f786(0x213)]===_0x16f786(0x255)||_0x25823d[_0x16f786(0x213)]==='commit')&&(_0x25823d['reason']==='transform-failed'||_0x25823d[_0x16f786(0x256)]==='changeset-rejected'||_0x25823d[_0x16f786(0x256)]==='permission-rejected')&&typeof _0x25823d[_0x16f786(0x245)]==_0x16f786(0x257);}function C(_0x163569){const _0x326b1c=_0x33a59d;return Array[_0x326b1c(0x214)](_0x163569)&&_0x163569[_0x326b1c(0x219)](_0x10cb36=>E(_0x10cb36)&&typeof _0x10cb36['id']==_0x326b1c(0x257)&&_0x10cb36['id'][_0x326b1c(0x267)]>0x0&&typeof _0x10cb36['data']==_0x326b1c(0x257));}function w(_0x39b880){const _0x558554=_0x33a59d;return _0x39b880===null||typeof _0x39b880==_0x558554(0x208)||typeof _0x39b880==_0x558554(0x257)||typeof _0x39b880==_0x558554(0x270)&&Number['isFinite'](_0x39b880)?!0x0:Array[_0x558554(0x214)](_0x39b880)?_0x39b880['every'](w):E(_0x39b880)&&Object[_0x558554(0x21e)](_0x39b880)[_0x558554(0x219)](w);}function T(_0x3862f6){return Number['isSafeInteger'](_0x3862f6)&&Number(_0x3862f6)>=0x0;}function E(_0x2598c3){const _0x2ae375=_0x33a59d;return typeof _0x2598c3==_0x2ae375(0x200)&&!!_0x2598c3&&!Array['isArray'](_0x2598c3);}var D=0x7530,O=0x7530;function k(_0x63fd29){const _0x20d487=_0x33a59d;let _0x1f6abf=A(_0x63fd29[_0x20d487(0x1ff)]),_0x23610e=_0x63fd29[_0x20d487(0x240)]??D,_0x1a30bd=_0x63fd29[_0x20d487(0x247)]??O;j(_0x23610e,_0x20d487(0x240)),j(_0x1a30bd,_0x20d487(0x247));let _0x44bce6;try{_0x44bce6=_0xbf1442({'factory':{async 'create'(_0x136785){const _0x8e1085=_0x20d487;return await l({'entry':_0x1f6abf,..._0x63fd29[_0x8e1085(0x1f8)]===void 0x0?{}:{'env':_0x63fd29[_0x8e1085(0x1f8)]},'init':_0x136785[_0x8e1085(0x22b)],'key':_0x136785[_0x8e1085(0x22c)],'openTimeoutMs':_0x23610e,'operationTimeoutMs':_0x1a30bd});},async 'destroy'({instance:_0x421e95}){await _0x421e95['close']();}},..._0x63fd29[_0x20d487(0x228)]===void 0x0?{}:{'cache':_0x63fd29[_0x20d487(0x228)]},'onEvent':_0x26f0b0});}catch(_0x34899d){throw M(_0x34899d);}return{async 'acquire'(_0x25919f){let _0xcf5d2c;try{_0xcf5d2c=await _0x44bce6['acquire'](_0x25919f);}catch(_0x159f0a){throw M(_0x159f0a);}return _0xf0d03d(_0xcf5d2c);},async 'close'(){const _0x96af7a=_0x20d487;try{await _0x44bce6[_0x96af7a(0x1ec)]();}catch(_0x30e3ab){throw M(_0x30e3ab);}}};function _0xf0d03d(_0x46d5ce){const _0x1d9467=_0x20d487;let _0x1c7651=_0x46d5ce[_0x1d9467(0x232)],_0x204712=!0x1,_0x2a6dae,_0x5090a1=!0x1;return{'key':_0x46d5ce[_0x1d9467(0x22c)],'unitId':_0x1c7651[_0x1d9467(0x204)],'unitType':_0x1c7651[_0x1d9467(0x1ea)],async 'getState'(){const _0x269aa7=_0x1d9467;return await _0x242255(_0x269aa7(0x1fe),async()=>await _0x1c7651[_0x269aa7(0x236)]());},async 'getPendingMutations'(){const _0x579efe=_0x1d9467;return await _0x242255(_0x579efe(0x210),async()=>await _0x1c7651[_0x579efe(0x20d)]());},async 'execute'(_0x4bd3e8){const _0x408b02=_0x1d9467;return _0x4bd3e8[_0x408b02(0x26e)]===_0x408b02(0x20e)?await _0x242255(_0x408b02(0x20e),async()=>await _0x1c7651['executeReadCode'](_0x4bd3e8['code'])):await _0x242255('write',async()=>await _0x1c7651[_0x408b02(0x235)](_0x4bd3e8[_0x408b02(0x1f6)]));},async 'replacePendingMutations'(_0x5c1753){const _0x66a94a=_0x1d9467;return await _0x242255(_0x66a94a(0x1ee),async()=>await _0x1c7651['replacePendingMutations'](_0x5c1753));},async 'fetch'(){const _0x514735=_0x1d9467;return await _0x242255(_0x514735(0x20c),async()=>await _0x1c7651[_0x514735(0x20c)]());},async 'pull'(){const _0x5db9bc=_0x1d9467;return await _0x242255(_0x5db9bc(0x255),async()=>await _0x1c7651[_0x5db9bc(0x255)]());},async 'commit'(){const _0x31469b=_0x1d9467;return await _0x242255(_0x31469b(0x251),async()=>await _0x1c7651['commit']());},async 'exportUnitData'(){const _0x56dead=_0x1d9467;return await _0x242255('export',async()=>await _0x1c7651[_0x56dead(0x1f5)]());},async 'invalidate'(){const _0x494690=_0x1d9467;_0x204712||(_0x204712=!0x0,await _0x46d5ce[_0x494690(0x23a)]());},async 'release'(){const _0x1d5909=_0x1d9467;_0x204712||(_0x204712=!0x0,_0x5090a1?await _0x46d5ce['invalidate']():await _0x46d5ce[_0x1d5909(0x238)]());}};async function _0x242255(_0x52cba9,_0x2c7a88){_0x6b2d5d();try{return await _0x5a8f9d(_0x46d5ce['key'],_0x52cba9,_0x2c7a88);}catch(_0xa88e5d){throw _0x58536b(_0xa88e5d),_0xa88e5d;}}function _0x6b2d5d(){const _0x4356a5=_0x1d9467;if(_0x204712)throw new c(_0x4356a5(0x24c),_0x4356a5(0x22a)+_0x46d5ce['key']+_0x4356a5(0x248));if(_0x2a6dae)throw _0x2a6dae;}function _0x58536b(_0x5cc226){const _0x17903f=_0x1d9467;(_0x5cc226 instanceof c&&_0x5cc226[_0x17903f(0x23c)]||_0x5cc226 instanceof _0x4ea9fe&&(_0x5cc226[_0x17903f(0x1f6)]===_0x17903f(0x234)||_0x5cc226[_0x17903f(0x1f6)]===_0x17903f(0x275)||_0x5cc226['code']===_0x17903f(0x217))||typeof _0x5cc226==_0x17903f(0x200)&&_0x5cc226&&_0x17903f(0x23c)in _0x5cc226&&_0x5cc226['invalidatesInstance']===!0x0)&&(_0x5090a1=!0x0,_0x2a6dae=_0x5cc226,_0x1f3eed({'errorCode':N(_0x5cc226),'key':_0x46d5ce[_0x17903f(0x22c)],'type':_0x17903f(0x274)}));}}async function _0x5a8f9d(_0x41e1c3,_0x52877d,_0xc708a3){const _0x386529=_0x20d487;let _0x1d1437=Date['now'](),_0x32c6e2=await _0xc708a3();return _0x1f3eed({'durationMs':Date[_0x386529(0x207)]()-_0x1d1437,'key':_0x41e1c3,'operation':_0x52877d,'type':_0x386529(0x229)}),_0x32c6e2;}function _0x26f0b0(_0x2511d7){_0x1f3eed(_0x2511d7);}function _0x1f3eed(_0x3a6b39){const _0x1a4c40=_0x20d487;try{_0x63fd29[_0x1a4c40(0x21f)]?.(_0x3a6b39);}catch{}}}function A(_0x384cc9){const _0x23e393=_0x33a59d;let _0x1a9be6=_0x384cc9 instanceof URL?_0x384cc9[_0x23e393(0x25c)]:_0x384cc9;if(_0x1a9be6[_0x23e393(0x267)]===0x0)throw new c(_0x23e393(0x221),_0x23e393(0x1fc));try{return new URL(_0x1a9be6)['href'];}catch{throw new c(_0x23e393(0x221),_0x23e393(0x268));}}function j(_0x51c95c,_0x469449){const _0x21719a=_0x33a59d;if(!Number[_0x21719a(0x241)](_0x51c95c)||_0x51c95c<=0x0)throw new c(_0x21719a(0x221),_0x469449+_0x21719a(0x23e));}function M(_0x5be0c4){const _0x1bff2b=_0x33a59d;return _0x5be0c4 instanceof _0x46f132?new c(_0x5be0c4[_0x1bff2b(0x1f6)]===_0x1bff2b(0x244)?'COLLABORATION_POOL_CAPACITY_EXCEEDED':_0x5be0c4[_0x1bff2b(0x1f6)]===_0x1bff2b(0x22f)?'COLLABORATION_POOL_CLOSED':'COLLABORATION_POOL_INVALID_INPUT',_0x5be0c4[_0x1bff2b(0x245)],{'cause':_0x5be0c4}):_0x5be0c4;}function N(_0x184215){const _0x681bad=_0x33a59d;return typeof _0x184215=='object'&&_0x184215&&'code'in _0x184215&&typeof _0x184215['code']==_0x681bad(0x257)?_0x184215['code']:_0x681bad(0x220);}function P(_0x169e10){return _0x169e10;}export{c as UniverCollaborationRuntimePoolError,k as createUniverCollaborationRuntimePool,P as defineUniverCollaborationRuntimeWorker};
@@ -1 +1 @@
1
- const _0x485521=_0x3b6b;function _0x3b6b(_0x43e6f8,_0x3da3ba){_0x43e6f8=_0x43e6f8-0x124;const _0x511453=_0x5114();let _0x3b6bd8=_0x511453[_0x43e6f8];return _0x3b6bd8;}(function(_0x344bce,_0x9b081f){const _0x3ff87d=_0x3b6b,_0xe399e=_0x344bce();while(!![]){try{const _0x17138b=-parseInt(_0x3ff87d(0x13d))/0x1*(-parseInt(_0x3ff87d(0x151))/0x2)+parseInt(_0x3ff87d(0x14b))/0x3+parseInt(_0x3ff87d(0x127))/0x4+-parseInt(_0x3ff87d(0x13b))/0x5*(parseInt(_0x3ff87d(0x12d))/0x6)+-parseInt(_0x3ff87d(0x124))/0x7*(parseInt(_0x3ff87d(0x12f))/0x8)+parseInt(_0x3ff87d(0x12c))/0x9*(parseInt(_0x3ff87d(0x14c))/0xa)+-parseInt(_0x3ff87d(0x14d))/0xb;if(_0x17138b===_0x9b081f)break;else _0xe399e['push'](_0xe399e['shift']());}catch(_0x2345a1){_0xe399e['push'](_0xe399e['shift']());}}}(_0x5114,0xa4766));var e;process['on'](_0x485521(0x149),_0x3a5151=>{const _0x344ae7=_0x485521;a(_0x3a5151)&&t(_0x3a5151)[_0x344ae7(0x13c)](_0x2ee59e=>s({'id':_0x3a5151['id'],'result':_0x2ee59e,'type':'result'}),_0x1dbc1a=>s({'error':o(_0x1dbc1a,e?.[_0x344ae7(0x14f)]()[_0x344ae7(0x12b)]===_0x344ae7(0x14e)),'id':_0x3a5151['id'],'type':_0x344ae7(0x137)}));});async function t(_0x27e73f){const _0x1e30bc=_0x485521;if(_0x27e73f[_0x1e30bc(0x148)]===_0x1e30bc(0x128)){if(e!==void 0x0)throw Error(_0x1e30bc(0x126));let _0x490bcc=await import(_0x27e73f.entry);if(!i(_0x490bcc['default']))throw Error(_0x1e30bc(0x143));return e=await _0x490bcc['default'][_0x1e30bc(0x134)](_0x27e73f[_0x1e30bc(0x139)]),r(e);}if(_0x27e73f[_0x1e30bc(0x148)]===_0x1e30bc(0x138))return await e?.[_0x1e30bc(0x138)](),e=void 0x0,null;let _0x190bf7=n();return _0x27e73f[_0x1e30bc(0x148)]===_0x1e30bc(0x13e)?_0x190bf7[_0x1e30bc(0x14f)]():_0x27e73f['type']==='get-pending-mutations'?_0x190bf7['getPendingMutations']():_0x27e73f[_0x1e30bc(0x148)]===_0x1e30bc(0x125)?await _0x190bf7[_0x1e30bc(0x142)]({'code':_0x27e73f[_0x1e30bc(0x141)],'mode':_0x1e30bc(0x152)}):_0x27e73f['type']===_0x1e30bc(0x135)?await _0x190bf7[_0x1e30bc(0x142)]({'code':_0x27e73f[_0x1e30bc(0x141)],'mode':'write'}):_0x27e73f[_0x1e30bc(0x148)]===_0x1e30bc(0x144)?await _0x190bf7[_0x1e30bc(0x147)](_0x27e73f[_0x1e30bc(0x146)]):_0x27e73f[_0x1e30bc(0x148)]==='fetch'?await _0x190bf7['fetch']():_0x27e73f[_0x1e30bc(0x148)]==='pull'?await _0x190bf7[_0x1e30bc(0x12a)]():_0x27e73f[_0x1e30bc(0x148)]===_0x1e30bc(0x140)?await _0x190bf7[_0x1e30bc(0x140)]():await _0x190bf7['exportUnitData']();}function n(){const _0xd5fcd7=_0x485521;if(!e)throw Error(_0xd5fcd7(0x136));return e;}function r(_0x235f0e){const _0x548292=_0x485521;return{'unitId':_0x235f0e[_0x548292(0x132)],'unitType':_0x235f0e['unitType']};}function _0x5114(){const _0x5f390d=['message','name','2122227KoEShE','150vYndPZ','3916440fLDAZr','closed','getState','send','2978NHrIic','read','64232yDphkw','execute-read','Collaboration\x20worker\x20is\x20already\x20open','2128156fylXvU','open','connected','pull','connection','248679ZhyRQt','2067078DddAYd','boolean','744jvarba','string','retryable','unitId','isSafeInteger','createRuntime','execute-write','Collaboration\x20worker\x20is\x20not\x20open','error','close','init','stack','15ZvTtRo','then','848mHJQPZ','get-state','Error','commit','code','execute','Collaboration\x20worker\x20entry\x20must\x20default-export\x20a\x20worker\x20definition','replace-mutations','object','mutations','replacePendingMutations','type'];_0x5114=function(){return _0x5f390d;};return _0x5114();}function i(_0xe2d2f4){const _0x449159=_0x485521;return typeof _0xe2d2f4=='object'&&!!_0xe2d2f4&&'createRuntime'in _0xe2d2f4&&typeof _0xe2d2f4[_0x449159(0x134)]=='function';}function a(_0x1143ec){const _0x4522b5=_0x485521;return typeof _0x1143ec==_0x4522b5(0x145)&&!!_0x1143ec&&'id'in _0x1143ec&&Number[_0x4522b5(0x133)](_0x1143ec['id'])&&'type'in _0x1143ec&&typeof _0x1143ec[_0x4522b5(0x148)]==_0x4522b5(0x130);}function o(_0x323b7f,_0x41bcf3){const _0x4de646=_0x485521;if(!(_0x323b7f instanceof Error))return{'invalidatesInstance':_0x41bcf3,'message':String(_0x323b7f),'name':_0x4de646(0x13f)};let _0x36fffe=_0x323b7f;return{...typeof _0x36fffe[_0x4de646(0x141)]==_0x4de646(0x130)?{'code':_0x36fffe[_0x4de646(0x141)]}:{},..._0x41bcf3?{'invalidatesInstance':!0x0}:{},'message':_0x323b7f[_0x4de646(0x149)],'name':_0x323b7f[_0x4de646(0x14a)],...typeof _0x36fffe['retryable']==_0x4de646(0x12e)?{'retryable':_0x36fffe[_0x4de646(0x131)]}:{},..._0x323b7f[_0x4de646(0x13a)]===void 0x0?{}:{'stack':_0x323b7f['stack']}};}function s(_0xc31a6f){const _0x3163a7=_0x485521;process[_0x3163a7(0x129)]&&process[_0x3163a7(0x150)]?.(_0xc31a6f);}
1
+ function _0x49d2(){const _0xa94917=['write','unitType','string','8950777UaNYCz','stack','16216XUyFYy','default','Collaboration\x20worker\x20is\x20already\x20open','2144108YuEKoL','code','811605kRwgpE','function','getPendingMutations','replacePendingMutations','open','20hjHoSc','pull','type','connection','unitId','closed','Collaboration\x20worker\x20entry\x20must\x20default-export\x20a\x20worker\x20definition','1746ptXxDw','message','isSafeInteger','object','result','init','2912014euQjjg','1870833nYDiYg','commit','retryable','send','close','6CzkmKo','boolean','1113LntvGQ','exportUnitData','getState','connected','fetch','error','execute','name','then','createRuntime','218OvKMrh','mutations'];_0x49d2=function(){return _0xa94917;};return _0x49d2();}(function(_0x208692,_0x21a756){const _0x335801=_0x4d27,_0x2e08ac=_0x208692();while(!![]){try{const _0x7bb369=parseInt(_0x335801(0x125))/0x1*(parseInt(_0x335801(0x12f))/0x2)+-parseInt(_0x335801(0x11e))/0x3+-parseInt(_0x335801(0x139))/0x4+-parseInt(_0x335801(0x13b))/0x5+parseInt(_0x335801(0x123))/0x6*(parseInt(_0x335801(0x11d))/0x7)+-parseInt(_0x335801(0x136))/0x8*(parseInt(_0x335801(0x117))/0x9)+parseInt(_0x335801(0x110))/0xa*(parseInt(_0x335801(0x134))/0xb);if(_0x7bb369===_0x21a756)break;else _0x2e08ac['push'](_0x2e08ac['shift']());}catch(_0x1e1443){_0x2e08ac['push'](_0x2e08ac['shift']());}}}(_0x49d2,0x6dc00));var e;process['on']('message',_0x11f735=>{const _0x41d5b0=_0x4d27;a(_0x11f735)&&t(_0x11f735)[_0x41d5b0(0x12d)](_0x4e6886=>s({'id':_0x11f735['id'],'result':_0x4e6886,'type':_0x41d5b0(0x11b)}),_0x5ef6c5=>s({'error':o(_0x5ef6c5,e?.['getState']()[_0x41d5b0(0x113)]===_0x41d5b0(0x115)),'id':_0x11f735['id'],'type':_0x41d5b0(0x12a)}));});async function t(_0x4b239f){const _0x700aac=_0x4d27;if(_0x4b239f[_0x700aac(0x112)]===_0x700aac(0x10f)){if(e!==void 0x0)throw Error(_0x700aac(0x138));let _0x4b6cf0=await import(_0x4b239f.entry);if(!i(_0x4b6cf0[_0x700aac(0x137)]))throw Error(_0x700aac(0x116));return e=await _0x4b6cf0[_0x700aac(0x137)][_0x700aac(0x12e)](_0x4b239f[_0x700aac(0x11c)]),r(e);}if(_0x4b239f['type']===_0x700aac(0x122))return await e?.['close'](),e=void 0x0,null;let _0x51869b=n();return _0x4b239f['type']==='get-state'?_0x51869b[_0x700aac(0x127)]():_0x4b239f[_0x700aac(0x112)]==='get-pending-mutations'?_0x51869b[_0x700aac(0x10d)]():_0x4b239f[_0x700aac(0x112)]==='execute-read'?await _0x51869b[_0x700aac(0x12b)]({'code':_0x4b239f[_0x700aac(0x13a)],'mode':'read'}):_0x4b239f['type']==='execute-write'?await _0x51869b[_0x700aac(0x12b)]({'code':_0x4b239f[_0x700aac(0x13a)],'mode':_0x700aac(0x131)}):_0x4b239f[_0x700aac(0x112)]==='replace-mutations'?await _0x51869b[_0x700aac(0x10e)](_0x4b239f[_0x700aac(0x130)]):_0x4b239f['type']===_0x700aac(0x129)?await _0x51869b['fetch']():_0x4b239f[_0x700aac(0x112)]===_0x700aac(0x111)?await _0x51869b[_0x700aac(0x111)]():_0x4b239f[_0x700aac(0x112)]===_0x700aac(0x11f)?await _0x51869b[_0x700aac(0x11f)]():await _0x51869b[_0x700aac(0x126)]();}function n(){if(!e)throw Error('Collaboration\x20worker\x20is\x20not\x20open');return e;}function r(_0x114777){const _0x4753d0=_0x4d27;return{'unitId':_0x114777[_0x4753d0(0x114)],'unitType':_0x114777[_0x4753d0(0x132)]};}function _0x4d27(_0x352f0e,_0x6005c2){_0x352f0e=_0x352f0e-0x10c;const _0x49d2cd=_0x49d2();let _0x4d27e9=_0x49d2cd[_0x352f0e];return _0x4d27e9;}function i(_0x4ac105){const _0x2fbe4b=_0x4d27;return typeof _0x4ac105=='object'&&!!_0x4ac105&&'createRuntime'in _0x4ac105&&typeof _0x4ac105[_0x2fbe4b(0x12e)]==_0x2fbe4b(0x10c);}function a(_0x41474b){const _0x3e6001=_0x4d27;return typeof _0x41474b==_0x3e6001(0x11a)&&!!_0x41474b&&'id'in _0x41474b&&Number[_0x3e6001(0x119)](_0x41474b['id'])&&_0x3e6001(0x112)in _0x41474b&&typeof _0x41474b['type']==_0x3e6001(0x133);}function o(_0x9c680e,_0x578822){const _0x2dddc3=_0x4d27;if(!(_0x9c680e instanceof Error))return{'invalidatesInstance':_0x578822,'message':String(_0x9c680e),'name':'Error'};let _0x41c090=_0x9c680e;return{...typeof _0x41c090[_0x2dddc3(0x13a)]==_0x2dddc3(0x133)?{'code':_0x41c090[_0x2dddc3(0x13a)]}:{},..._0x578822?{'invalidatesInstance':!0x0}:{},'message':_0x9c680e[_0x2dddc3(0x118)],'name':_0x9c680e[_0x2dddc3(0x12c)],...typeof _0x41c090['retryable']==_0x2dddc3(0x124)?{'retryable':_0x41c090[_0x2dddc3(0x120)]}:{},..._0x9c680e[_0x2dddc3(0x135)]===void 0x0?{}:{'stack':_0x9c680e['stack']}};}function s(_0x18dc65){const _0x33c512=_0x4d27;process[_0x33c512(0x128)]&&process[_0x33c512(0x121)]?.(_0x18dc65);}
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.0.0-beta.2",
4
+ "version": "1.0.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.0.0-beta.2",
22
- "@univer-cli/univer-collaboration-runtime": "1.0.0-beta.2",
23
- "@univerjs/protocol": "1.0.0-beta.2"
21
+ "@univer-cli/generic-keyed-instance-pool": "1.0.0",
22
+ "@univer-cli/univer-collaboration-runtime": "1.0.0",
23
+ "@univerjs/protocol": "1.0.0"
24
24
  }
25
25
  }