@univer-cli/univer-collaboration-runtime-pool 1.3.0 → 1.4.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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { InstancePoolCacheOptions } from "@univer-cli/generic-keyed-instance-pool";
2
1
  import { CollaborationCommitResult, CollaborationCommitResult as CollaborationCommitResult$1, CollaborationFetchResult, CollaborationFetchResult as CollaborationFetchResult$1, CollaborationPullResult, CollaborationPullResult as CollaborationPullResult$1, CollaborationReplaceMutationsResult, CollaborationReplaceMutationsResult as CollaborationReplaceMutationsResult$1, CollaborationRuntimeReadExecution, CollaborationRuntimeReadExecution as CollaborationRuntimeReadExecution$1, CollaborationRuntimeReadResult, CollaborationRuntimeReadResult as CollaborationRuntimeReadResult$1, CollaborationRuntimeState, CollaborationRuntimeState as CollaborationRuntimeState$1, CollaborationRuntimeWriteExecution, CollaborationRuntimeWriteExecution as CollaborationRuntimeWriteExecution$1, CollaborationRuntimeWriteResult, CollaborationRuntimeWriteResult as CollaborationRuntimeWriteResult$1, CollaborationUnitData, CollaborationUnitData as CollaborationUnitData$1, UniverCollaborationRuntime } from "@univer-cli/univer-collaboration-runtime";
2
+ import { InstancePoolCacheOptions } from "@univer-cli/generic-keyed-instance-pool";
3
3
  import { IMutation } from "@univerjs/protocol";
4
4
  //#region src/errors.d.ts
5
5
  type UniverCollaborationRuntimePoolErrorCode = "COLLABORATION_POOL_INVALID_INPUT" | "COLLABORATION_POOL_CLOSED" | "COLLABORATION_POOL_CAPACITY_EXCEEDED" | "COLLABORATION_LEASE_CLOSED" | "COLLABORATION_WORKER_OPEN_TIMEOUT" | "COLLABORATION_WORKER_OPERATION_TIMEOUT" | "COLLABORATION_WORKER_CRASHED" | "COLLABORATION_WORKER_PROTOCOL_ERROR" | "COLLABORATION_WORKER_CLOSED";
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x47465d=_0x47d1;(function(_0xd0ec83,_0xdea663){const _0x5be2d2=_0x47d1,_0x249b0e=_0xd0ec83();while(!![]){try{const _0x5a9eee=parseInt(_0x5be2d2(0xdc))/0x1*(-parseInt(_0x5be2d2(0xf9))/0x2)+-parseInt(_0x5be2d2(0xdf))/0x3+-parseInt(_0x5be2d2(0x109))/0x4+-parseInt(_0x5be2d2(0xa2))/0x5*(-parseInt(_0x5be2d2(0xea))/0x6)+parseInt(_0x5be2d2(0xa7))/0x7*(-parseInt(_0x5be2d2(0xfc))/0x8)+-parseInt(_0x5be2d2(0xb4))/0x9*(parseInt(_0x5be2d2(0xd5))/0xa)+parseInt(_0x5be2d2(0xd3))/0xb;if(_0x5a9eee===_0xdea663)break;else _0x249b0e['push'](_0x249b0e['shift']());}catch(_0xa5cd1b){_0x249b0e['push'](_0x249b0e['shift']());}}}(_0x1dfe,0x916f7));function _0x47d1(_0x24a413,_0x121f46){_0x24a413=_0x24a413-0x7f;const _0x1dfebd=_0x1dfe();let _0x47d1c9=_0x1dfebd[_0x24a413];return _0x47d1c9;}import{InstancePoolError as _0x2acb97,createGenericKeyedInstancePool as _0x4c19d9}from'@univer-cli/generic-keyed-instance-pool';import{CollaborationRuntimeError as _0x3a2dbc}from'@univer-cli/univer-collaboration-runtime';import{fork as _0x23e3d6}from'node:child_process';import{dirname as _0x327efe,extname as _0x326a42,join as _0x21070a}from'node:path';import{fileURLToPath as _0x13519e}from'node:url';var c=class extends Error{[_0x47465d(0x101)];[_0x47465d(0x10a)];constructor(_0x3b83fd,_0x415d99,_0x51684c={}){const _0x9e4b9=_0x47465d;super(_0x415d99,_0x51684c),this[_0x9e4b9(0x98)]=_0x9e4b9(0xde),this[_0x9e4b9(0x101)]=_0x3b83fd,this['invalidatesInstance']=_0x51684c[_0x9e4b9(0x10a)]??!0x1;}};async function l(_0x2d771f){const _0x244880=_0x47465d;let _0x419119=_0x13519e(import.meta.url),_0x36c4aa=_0x327efe(_0x419119),_0x267782=_0x21070a(_0x36c4aa,_0x326a42(_0x419119)==='.ts'?_0x244880(0xf3):'worker-child.mjs'),_0x20a546=u(_0x23e3d6(_0x267782,[],{..._0x2d771f[_0x244880(0x9f)]===void 0x0?{}:{'env':_0x2d771f[_0x244880(0x9f)]},'serialization':_0x244880(0xf1),'stdio':[_0x244880(0xda),_0x244880(0xda),'ignore',_0x244880(0x102)]}),_0x2d771f[_0x244880(0xb3)]);try{let _0x3adace=d(await _0x20a546[_0x244880(0xb6)]({'entry':_0x2d771f[_0x244880(0x107)],'id':_0x20a546[_0x244880(0x82)](),'init':_0x2d771f[_0x244880(0x100)],'type':_0x244880(0xc6)},_0x2d771f[_0x244880(0x10e)],_0x244880(0xab))),_0x148c24,_0x1c5c82=async _0x3036cb=>await _0x20a546['request']({..._0x3036cb,'id':_0x20a546[_0x244880(0x82)]()},_0x2d771f['operationTimeoutMs']);return{..._0x3adace,async 'close'(){const _0x2cf4e0=_0x244880;_0x148c24??=_0x20a546[_0x2cf4e0(0xae)](),await _0x148c24;},async 'getState'(){const _0x4217e9=_0x244880;return f(await _0x1c5c82({'type':_0x4217e9(0xf4)}));},async 'getPendingMutations'(){const _0x3489d2=_0x244880;let _0xf72fac=await _0x1c5c82({'type':_0x3489d2(0x10f)});if(!C(_0xf72fac))throw _('Worker\x20returned\x20invalid\x20pending\x20mutations');return _0xf72fac;},async 'executeReadCode'(_0x1da56f){const _0x439189=_0x244880;let _0x5d97fd=p(await _0x1c5c82({'code':_0x1da56f,'type':_0x439189(0x99)}));if(!(_0x439189(0xcc)in _0x5d97fd)||!w(_0x5d97fd['value']))throw _(_0x439189(0x104));return _0x5d97fd;},async 'executeWriteCode'(_0x59dc09){const _0x1050db=_0x244880;let _0x3f87f0=p(await _0x1c5c82({'code':_0x59dc09,'type':_0x1050db(0xca)}));if(!w(_0x3f87f0['value'])||!C(_0x3f87f0[_0x1050db(0xfe)]))throw _(_0x1050db(0x10b));return _0x3f87f0;},async 'replacePendingMutations'(_0x20ea5c){const _0x3abc1e=_0x244880;let _0x3d2886=p(await _0x1c5c82({'mutations':_0x20ea5c,'type':'replace-mutations'}));if(!T(_0x3d2886[_0x3abc1e(0xeb)])||!T(_0x3d2886[_0x3abc1e(0xf7)]))throw _(_0x3abc1e(0xec));return _0x3d2886;},async 'fetch'(){const _0x537e9a=_0x244880;return m(await _0x1c5c82({'type':'fetch'}),['unchanged',_0x537e9a(0xed)]);},async 'pull'(){const _0x4d04f6=_0x244880;return m(await _0x1c5c82({'type':'pull'}),['up-to-date',_0x4d04f6(0xd8),_0x4d04f6(0xe1)]);},async 'commit'(){const _0x56652c=_0x244880;return m(await _0x1c5c82({'type':_0x56652c(0xb8)}),[_0x56652c(0xa4),_0x56652c(0x84),_0x56652c(0x86),_0x56652c(0xe5),_0x56652c(0x8b),_0x56652c(0xe1)]);},async 'exportUnitData'(){const _0x2f4af1=_0x244880;let _0x22d4a1=await _0x1c5c82({'type':_0x2f4af1(0xd2)});if(!E(_0x22d4a1))throw _(_0x2f4af1(0xc9));return _0x22d4a1;}};}catch(_0x353104){throw await _0x20a546[_0x244880(0xae)](),_0x353104;}}function u(_0x83237b,_0xeccdd){const _0x2e7ded=_0x47465d;let _0x4a62cb=new Map(),_0x2bcb1c=0x0,_0x1457c2,_0x537cbb=!0x1,_0x4ef5a1,_0x18b2eb,_0x5c3997=new Promise(_0x1f6343=>{_0x18b2eb=_0x1f6343;});return _0x83237b['on']('message',_0xc058f1=>{const _0x42364d=_0x47d1;if(!v(_0xc058f1))return;let _0x5124f8=_0x4a62cb[_0x42364d(0x80)](_0xc058f1['id']);_0x5124f8&&(_0x4a62cb['delete'](_0xc058f1['id']),_0x5124f8[_0x42364d(0xaf)]&&clearTimeout(_0x5124f8['timer']),_0xc058f1[_0x42364d(0xe8)]===_0x42364d(0x95)?_0x5124f8[_0x42364d(0xd1)](h(_0xc058f1['error'])):_0x5124f8[_0x42364d(0xbf)](_0xc058f1['result']));}),_0x83237b['on'](_0x2e7ded(0x95),_0x9d5598=>_0x155a4b(g(_0x2e7ded(0x8f)+_0xeccdd+_0x2e7ded(0x96)+_0x9d5598[_0x2e7ded(0xa6)],_0x9d5598))),_0x83237b['on'](_0x2e7ded(0x9a),(_0x226c07,_0x5dd513)=>{const _0x589f9b=_0x2e7ded;_0x537cbb||_0x155a4b(g(_0x589f9b(0x8f)+_0xeccdd+_0x589f9b(0x7f)+(_0x5dd513?'signal\x20'+_0x5dd513:_0x589f9b(0xbb)+String(_0x226c07))));}),_0x83237b['on'](_0x2e7ded(0xae),()=>_0x18b2eb()),{async 'close'(){if(_0x4ef5a1)return await _0x4ef5a1;_0x4ef5a1=_0x3ad952(),await _0x4ef5a1;},'nextId'(){return++_0x2bcb1c;},async 'request'(_0x42ee09,_0x2d4370,_0x2189be=_0x2e7ded(0xb7)){if(_0x1457c2)throw _0x1457c2;return await new Promise((_0x5080df,_0x40a356)=>{const _0x255ff7=_0x47d1;let _0x24dced={'reject':_0x40a356,'resolve':_0x5080df,'timer':setTimeout(()=>{const _0x46b1aa=_0x47d1;_0x155a4b(new c(_0x2189be,'Collaboration\x20worker\x20'+_0xeccdd+_0x46b1aa(0xc4)+_0x2d4370+'ms',{'invalidatesInstance':!0x0})),_0xe188eb();},_0x2d4370)};_0x4a62cb[_0x255ff7(0xad)](_0x42ee09['id'],_0x24dced),_0x83237b['send'](_0x42ee09,_0x4570ff=>{const _0x48dd00=_0x255ff7;_0x4570ff&&_0x155a4b(g(_0x48dd00(0xe3)+_0xeccdd,_0x4570ff));});});}};async function _0x3ad952(){const _0x4c756e=_0x2e7ded;if(_0x537cbb=!0x0,!_0x1457c2&&_0x83237b[_0x4c756e(0x89)])try{await Promise[_0x4c756e(0xef)]([new Promise((_0x32c2b5,_0x3d4648)=>{const _0x18f582=_0x4c756e;let _0x36cdb2=++_0x2bcb1c;_0x4a62cb[_0x18f582(0xad)](_0x36cdb2,{'reject':_0x3d4648,'resolve':_0x32c2b5}),_0x83237b[_0x18f582(0xc2)]({'id':_0x36cdb2,'type':'close'},_0x42942d=>{_0x42942d&&_0x3d4648(_0x42942d);});}),new Promise((_0x24591f,_0x5238ca)=>{const _0x13f711=_0x4c756e;setTimeout(()=>_0x5238ca(Error(_0x13f711(0x8d))),0x1388)[_0x13f711(0x8c)]();})]);}catch{}_0xe188eb(),await _0x5c3997,_0x155a4b(new c(_0x4c756e(0xf8),_0x4c756e(0xe0)+_0xeccdd+_0x4c756e(0xb9),{'invalidatesInstance':!0x0}));}function _0x155a4b(_0x229d21){const _0x92eef2=_0x2e7ded;_0x1457c2??=_0x229d21;for(let _0x57fc09 of _0x4a62cb[_0x92eef2(0xb2)]())_0x57fc09['timer']&&clearTimeout(_0x57fc09['timer']),_0x57fc09[_0x92eef2(0xd1)](_0x1457c2);_0x4a62cb[_0x92eef2(0xc1)]();}function _0xe188eb(){const _0x415053=_0x2e7ded;_0x83237b[_0x415053(0xcf)]===null&&_0x83237b['signalCode']===null&&_0x83237b[_0x415053(0xc3)](_0x415053(0xc5));}}function _0x1dfe(){const _0x59f2bb=['invalidatesInstance','Worker\x20returned\x20an\x20invalid\x20write\x20result','instance','COLLABORATION_WORKER_CRASHED','openTimeoutMs','get-pending-mutations','COLLABORATION_POOL_INVALID_INPUT','executeWriteCode','href','\x20exited\x20unexpectedly\x20with\x20','get','INSTANCE_POOL_CAPACITY_EXCEEDED','nextId','pending-mutations','pull-required','INSTANCE_POOL_CLOSED','confirmed','assign','reqId','connected','Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20state','unknown','unref','Worker\x20close\x20timed\x20out','\x20must\x20be\x20a\x20finite\x20positive\x20number','Worker\x20','online','state','changeset-rejected','object','write','error','\x20failed:\x20','mode','name','execute-read','exit','closed','COLLABORATION_','stack','isInteger','env','isArray','onEvent','3301835JmlnwU','includes','nothing-to-commit','Worker\x20returned\x20an\x20invalid\x20operation\x20status','message','37688JfxuDO','exportUnitData','Collaboration\x20runtime\x20lease\x20','retryable','COLLABORATION_WORKER_OPEN_TIMEOUT','getState','set','close','timer','now','mutationCount','values','key','401337aXuzMg','entry\x20must\x20not\x20be\x20empty','request','COLLABORATION_WORKER_OPERATION_TIMEOUT','commit','\x20is\x20closed','unitId','exit\x20code\x20','reconnecting','invalidate','number','resolve','offline','clear','send','kill','\x20timed\x20out\x20after\x20','SIGKILL','open','reason','string','Worker\x20returned\x20invalid\x20UnitData','execute-write','COLLABORATION_LEASE_CLOSED','value','bufferedChangesetCount','revision','exitCode','operation','reject','export','46506801veKQbk','read','230BrbiSJ','COLLABORATION_CLOSED','Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20metadata','pulled','COLLABORATION_PROTOCOL_ERROR','ignore','isSafeInteger','7FzCbwL','connection','UniverCollaborationRuntimePoolError','2178582lVzfqJ','Collaboration\x20worker\x20','conflict','baseRevision','Failed\x20to\x20send\x20a\x20request\x20to\x20worker\x20','acquire','retry','pull','cache','type','every','6PDcpPB','previousMutationCount','Worker\x20returned\x20an\x20invalid\x20mutation\x20replacement\x20result','fetched','result','race','knownHeadRevision','advanced','fetch','worker-child.ts','get-state','permission-rejected','COLLABORATION_POOL_CAPACITY_EXCEEDED','pendingMutationCount','COLLABORATION_WORKER_CLOSED','64006HANccr','isFinite','Worker\x20returned\x20an\x20invalid\x20operation\x20result','1688VnGSZo','operation-complete','mutations','instance-failed','init','code','ipc','length','Worker\x20returned\x20an\x20invalid\x20read\x20value','unitType','startsWith','entry','UNKNOWN','4722708MDxHhh'];_0x1dfe=function(){return _0x59f2bb;};return _0x1dfe();}function d(_0x52d010){const _0x1d3b61=_0x47465d;if(!E(_0x52d010)||typeof _0x52d010[_0x1d3b61(0xba)]!=_0x1d3b61(0xc8)||!y(_0x52d010['unitType']))throw _(_0x1d3b61(0xd7));return{'unitId':_0x52d010['unitId'],'unitType':_0x52d010[_0x1d3b61(0x105)]};}function f(_0x4d1e2e){const _0x59a855=_0x47465d;if(!E(_0x4d1e2e)||!b(_0x4d1e2e[_0x59a855(0xdd)])||!T(_0x4d1e2e[_0x59a855(0xe2)])||!T(_0x4d1e2e[_0x59a855(0xf0)])||Number(_0x4d1e2e[_0x59a855(0xf0)])<Number(_0x4d1e2e[_0x59a855(0xe2)])||!T(_0x4d1e2e[_0x59a855(0xf7)])||!T(_0x4d1e2e[_0x59a855(0xcd)])||!x(_0x4d1e2e['awaitingChangeset'])||!S(_0x4d1e2e[_0x59a855(0xe1)]))throw _(_0x59a855(0x8a));return _0x4d1e2e;}function p(_0x55e151){const _0x19110a=_0x47465d;if(!E(_0x55e151))throw _(_0x19110a(0xfb));return{..._0x55e151,'state':f(_0x55e151['state'])};}function m(_0x298d77,_0x4240d6){const _0x1c8f95=_0x47465d;let _0x3011df=p(_0x298d77);if(typeof _0x3011df['status']!=_0x1c8f95(0xc8)||!_0x4240d6[_0x1c8f95(0xa3)](_0x3011df['status']))throw _(_0x1c8f95(0xa5));return _0x3011df;}function h(_0x4f12ee){const _0x53baf0=_0x47465d;if(_0x4f12ee['code']?.[_0x53baf0(0x106)](_0x53baf0(0x9c))&&!_0x4f12ee[_0x53baf0(0x101)][_0x53baf0(0x106)]('COLLABORATION_WORKER_')){let _0x5aef0e=new _0x3a2dbc(_0x4f12ee[_0x53baf0(0x101)],_0x4f12ee[_0x53baf0(0xa6)],{'retryable':_0x4f12ee[_0x53baf0(0xaa)]??!0x1});return _0x4f12ee[_0x53baf0(0x9d)]!==void 0x0&&(_0x5aef0e[_0x53baf0(0x9d)]=_0x4f12ee[_0x53baf0(0x9d)]),_0x4f12ee[_0x53baf0(0x10a)]&&Object[_0x53baf0(0x87)](_0x5aef0e,{'invalidatesInstance':!0x0}),_0x5aef0e;}let _0x5cfa2d=Error(_0x4f12ee['message']);return _0x5cfa2d[_0x53baf0(0x98)]=_0x4f12ee[_0x53baf0(0x98)],_0x4f12ee[_0x53baf0(0x101)]!==void 0x0&&Object[_0x53baf0(0x87)](_0x5cfa2d,{'code':_0x4f12ee[_0x53baf0(0x101)]}),_0x4f12ee[_0x53baf0(0x10a)]&&Object[_0x53baf0(0x87)](_0x5cfa2d,{'invalidatesInstance':!0x0}),_0x4f12ee[_0x53baf0(0x9d)]!==void 0x0&&(_0x5cfa2d[_0x53baf0(0x9d)]=_0x4f12ee[_0x53baf0(0x9d)]),_0x5cfa2d;}function g(_0x4063a2,_0xa34b4e){const _0x40bde0=_0x47465d;return new c(_0x40bde0(0x10d),_0x4063a2,{..._0xa34b4e===void 0x0?{}:{'cause':_0xa34b4e},'invalidatesInstance':!0x0});}function _(_0x21effe){return new c('COLLABORATION_WORKER_PROTOCOL_ERROR',_0x21effe,{'invalidatesInstance':!0x0});}function v(_0x1a79e1){const _0x3f12d9=_0x47465d;return E(_0x1a79e1)&&Number['isSafeInteger'](_0x1a79e1['id'])&&(_0x1a79e1[_0x3f12d9(0xe8)]===_0x3f12d9(0xee)||_0x1a79e1[_0x3f12d9(0xe8)]===_0x3f12d9(0x95));}function y(_0x3da223){return _0x3da223===0x1||_0x3da223===0x2||_0x3da223===0x3||_0x3da223===0x5||_0x3da223===0x6;}function b(_0x3273dd){const _0x34255f=_0x47465d;return _0x3273dd===_0x34255f(0x90)||_0x3273dd===_0x34255f(0xbc)||_0x3273dd===_0x34255f(0xc0)||_0x3273dd===_0x34255f(0x9b);}function x(_0x1faabb){const _0x449d97=_0x47465d;return _0x1faabb===null||E(_0x1faabb)&&T(_0x1faabb[_0x449d97(0xe2)])&&T(_0x1faabb[_0x449d97(0xce)])&&T(_0x1faabb[_0x449d97(0xb1)])&&(_0x1faabb['sid']===void 0x0||typeof _0x1faabb['sid']=='string')&&(_0x1faabb[_0x449d97(0x88)]===void 0x0||T(_0x1faabb[_0x449d97(0x88)]));}function S(_0x336842){const _0x37d985=_0x47465d;return _0x336842===null||E(_0x336842)&&(_0x336842[_0x37d985(0xd0)]==='pull'||_0x336842[_0x37d985(0xd0)]===_0x37d985(0xb8))&&(_0x336842[_0x37d985(0xc7)]==='transform-failed'||_0x336842[_0x37d985(0xc7)]===_0x37d985(0x92)||_0x336842[_0x37d985(0xc7)]===_0x37d985(0xf5))&&typeof _0x336842[_0x37d985(0xa6)]==_0x37d985(0xc8)&&(_0x336842['code']===void 0x0||Number[_0x37d985(0x9e)](_0x336842[_0x37d985(0x101)]));}function C(_0x47b118){const _0x2c9400=_0x47465d;return Array[_0x2c9400(0xa0)](_0x47b118)&&_0x47b118[_0x2c9400(0xe9)](_0x33a059=>E(_0x33a059)&&typeof _0x33a059['id']=='string'&&_0x33a059['id'][_0x2c9400(0x103)]>0x0&&typeof _0x33a059['data']==_0x2c9400(0xc8));}function w(_0x4e9309){const _0x45c13e=_0x47465d;return _0x4e9309===null||typeof _0x4e9309=='boolean'||typeof _0x4e9309==_0x45c13e(0xc8)||typeof _0x4e9309==_0x45c13e(0xbe)&&Number[_0x45c13e(0xfa)](_0x4e9309)?!0x0:Array[_0x45c13e(0xa0)](_0x4e9309)?_0x4e9309['every'](w):E(_0x4e9309)&&Object['values'](_0x4e9309)[_0x45c13e(0xe9)](w);}function T(_0x537ed1){const _0x2752c2=_0x47465d;return Number[_0x2752c2(0xdb)](_0x537ed1)&&Number(_0x537ed1)>=0x0;}function E(_0x4a17b7){const _0xaf46c4=_0x47465d;return typeof _0x4a17b7=='object'&&!!_0x4a17b7&&!Array[_0xaf46c4(0xa0)](_0x4a17b7);}var D=0x7530,O=0x7530;function k(_0x33e6ae){const _0x530ed0=_0x47465d;let _0x14690e=A(_0x33e6ae[_0x530ed0(0x107)]),_0x4f3056=_0x33e6ae[_0x530ed0(0x10e)]??D,_0x41539f=_0x33e6ae['operationTimeoutMs']??O;j(_0x4f3056,_0x530ed0(0x10e)),j(_0x41539f,'operationTimeoutMs');let _0x4d54ca;try{_0x4d54ca=_0x4c19d9({'factory':{async 'create'(_0x2e9430){const _0x333731=_0x530ed0;return await l({'entry':_0x14690e,..._0x33e6ae[_0x333731(0x9f)]===void 0x0?{}:{'env':_0x33e6ae[_0x333731(0x9f)]},'init':_0x2e9430[_0x333731(0x100)],'key':_0x2e9430[_0x333731(0xb3)],'openTimeoutMs':_0x4f3056,'operationTimeoutMs':_0x41539f});},async 'destroy'({instance:_0x1d306b}){const _0x24abff=_0x530ed0;await _0x1d306b[_0x24abff(0xae)]();}},..._0x33e6ae['cache']===void 0x0?{}:{'cache':_0x33e6ae[_0x530ed0(0xe7)]},'onEvent':_0x4b165e});}catch(_0x35fe81){throw M(_0x35fe81);}return{async 'acquire'(_0x407336){const _0x2135d8=_0x530ed0;let _0x24a874;try{_0x24a874=await _0x4d54ca[_0x2135d8(0xe4)](_0x407336);}catch(_0x2666f4){throw M(_0x2666f4);}return _0x23eb6d(_0x24a874);},async 'close'(){const _0x4a9d66=_0x530ed0;try{await _0x4d54ca[_0x4a9d66(0xae)]();}catch(_0x7c6302){throw M(_0x7c6302);}}};function _0x23eb6d(_0x1251f6){const _0x9a4ed3=_0x530ed0;let _0x5df179=_0x1251f6[_0x9a4ed3(0x10c)],_0x425c29=!0x1,_0x5a7074,_0x559c7f=!0x1;return{'key':_0x1251f6[_0x9a4ed3(0xb3)],'unitId':_0x5df179[_0x9a4ed3(0xba)],'unitType':_0x5df179['unitType'],async 'getState'(){const _0x32d5d6=_0x9a4ed3;return await _0x5e173c(_0x32d5d6(0x91),async()=>await _0x5df179[_0x32d5d6(0xac)]());},async 'getPendingMutations'(){const _0x3da853=_0x9a4ed3;return await _0x5e173c(_0x3da853(0x83),async()=>await _0x5df179['getPendingMutations']());},async 'execute'(_0x5279d7){const _0x25be53=_0x9a4ed3;return _0x5279d7[_0x25be53(0x97)]===_0x25be53(0xd4)?await _0x5e173c(_0x25be53(0xd4),async()=>await _0x5df179['executeReadCode'](_0x5279d7[_0x25be53(0x101)])):await _0x5e173c(_0x25be53(0x94),async()=>await _0x5df179[_0x25be53(0x111)](_0x5279d7['code']));},async 'replacePendingMutations'(_0x10b2c2){return await _0x5e173c('replace-mutations',async()=>await _0x5df179['replacePendingMutations'](_0x10b2c2));},async 'fetch'(){const _0x546052=_0x9a4ed3;return await _0x5e173c(_0x546052(0xf2),async()=>await _0x5df179[_0x546052(0xf2)]());},async 'pull'(){const _0x5179a3=_0x9a4ed3;return await _0x5e173c(_0x5179a3(0xe6),async()=>await _0x5df179[_0x5179a3(0xe6)]());},async 'commit'(){const _0x4b1c26=_0x9a4ed3;return await _0x5e173c(_0x4b1c26(0xb8),async()=>await _0x5df179[_0x4b1c26(0xb8)]());},async 'exportUnitData'(){const _0x1fe394=_0x9a4ed3;return await _0x5e173c(_0x1fe394(0xd2),async()=>await _0x5df179[_0x1fe394(0xa8)]());},async 'invalidate'(){const _0x3a83b3=_0x9a4ed3;_0x425c29||(_0x425c29=!0x0,await _0x1251f6[_0x3a83b3(0xbd)]());},async 'release'(){const _0x1da696=_0x9a4ed3;_0x425c29||(_0x425c29=!0x0,_0x559c7f?await _0x1251f6[_0x1da696(0xbd)]():await _0x1251f6['release']());}};async function _0x5e173c(_0x43448d,_0x29f5e1){const _0x98bb69=_0x9a4ed3;_0x3e37de();try{return await _0x131f7e(_0x1251f6[_0x98bb69(0xb3)],_0x43448d,_0x29f5e1);}catch(_0x1d4624){throw _0x48ec8c(_0x1d4624),_0x1d4624;}}function _0x3e37de(){const _0x2ebfeb=_0x9a4ed3;if(_0x425c29)throw new c(_0x2ebfeb(0xcb),_0x2ebfeb(0xa9)+_0x1251f6['key']+_0x2ebfeb(0xb9));if(_0x5a7074)throw _0x5a7074;}function _0x48ec8c(_0x5a9db5){const _0xc98ab4=_0x9a4ed3;(_0x5a9db5 instanceof c&&_0x5a9db5[_0xc98ab4(0x10a)]||_0x5a9db5 instanceof _0x3a2dbc&&(_0x5a9db5[_0xc98ab4(0x101)]===_0xc98ab4(0xd9)||_0x5a9db5[_0xc98ab4(0x101)]===_0xc98ab4(0xd6)||_0x5a9db5[_0xc98ab4(0x101)]==='COLLABORATION_LOAD_FAILED')||typeof _0x5a9db5==_0xc98ab4(0x93)&&_0x5a9db5&&_0xc98ab4(0x10a)in _0x5a9db5&&_0x5a9db5[_0xc98ab4(0x10a)]===!0x0)&&(_0x559c7f=!0x0,_0x5a7074=_0x5a9db5,_0x397f5f({'errorCode':N(_0x5a9db5),'key':_0x1251f6[_0xc98ab4(0xb3)],'type':_0xc98ab4(0xff)}));}}async function _0x131f7e(_0x426adf,_0xfbeb98,_0x24e545){const _0x102c19=_0x530ed0;let _0x2dc90c=Date[_0x102c19(0xb0)](),_0x2dae94=await _0x24e545();return _0x397f5f({'durationMs':Date[_0x102c19(0xb0)]()-_0x2dc90c,'key':_0x426adf,'operation':_0xfbeb98,'type':_0x102c19(0xfd)}),_0x2dae94;}function _0x4b165e(_0x1f2291){_0x397f5f(_0x1f2291);}function _0x397f5f(_0x2c8749){const _0x5bf0df=_0x530ed0;try{_0x33e6ae[_0x5bf0df(0xa1)]?.(_0x2c8749);}catch{}}}function A(_0x16b7f2){const _0x4a48bc=_0x47465d;let _0xce43cd=_0x16b7f2 instanceof URL?_0x16b7f2[_0x4a48bc(0x112)]:_0x16b7f2;if(_0xce43cd[_0x4a48bc(0x103)]===0x0)throw new c(_0x4a48bc(0x110),_0x4a48bc(0xb5));try{return new URL(_0xce43cd)[_0x4a48bc(0x112)];}catch{throw new c(_0x4a48bc(0x110),'entry\x20must\x20be\x20an\x20absolute\x20file\x20URL\x20or\x20another\x20importable\x20URL');}}function j(_0x272966,_0x4a7756){const _0x4b133e=_0x47465d;if(!Number[_0x4b133e(0xfa)](_0x272966)||_0x272966<=0x0)throw new c(_0x4b133e(0x110),_0x4a7756+_0x4b133e(0x8e));}function M(_0x413f14){const _0x433f53=_0x47465d;return _0x413f14 instanceof _0x2acb97?new c(_0x413f14[_0x433f53(0x101)]===_0x433f53(0x81)?_0x433f53(0xf6):_0x413f14[_0x433f53(0x101)]===_0x433f53(0x85)?'COLLABORATION_POOL_CLOSED':_0x433f53(0x110),_0x413f14['message'],{'cause':_0x413f14}):_0x413f14;}function N(_0x11151b){const _0x5c8483=_0x47465d;return typeof _0x11151b==_0x5c8483(0x93)&&_0x11151b&&'code'in _0x11151b&&typeof _0x11151b[_0x5c8483(0x101)]==_0x5c8483(0xc8)?_0x11151b[_0x5c8483(0x101)]:_0x5c8483(0x108);}function P(_0x2c67aa){return _0x2c67aa;}export{c as UniverCollaborationRuntimePoolError,k as createUniverCollaborationRuntimePool,P as defineUniverCollaborationRuntimeWorker};
1
+ const _0x5f4dee=_0x45d8;(function(_0xcd757f,_0x3249ca){const _0x57ad3e=_0x45d8,_0x440325=_0xcd757f();while(!![]){try{const _0x5d50aa=parseInt(_0x57ad3e(0x184))/0x1*(-parseInt(_0x57ad3e(0x1ba))/0x2)+parseInt(_0x57ad3e(0x169))/0x3*(parseInt(_0x57ad3e(0x194))/0x4)+-parseInt(_0x57ad3e(0x1d9))/0x5*(parseInt(_0x57ad3e(0x177))/0x6)+parseInt(_0x57ad3e(0x1be))/0x7*(-parseInt(_0x57ad3e(0x1d6))/0x8)+parseInt(_0x57ad3e(0x1ce))/0x9+parseInt(_0x57ad3e(0x1c4))/0xa+parseInt(_0x57ad3e(0x18b))/0xb;if(_0x5d50aa===_0x3249ca)break;else _0x440325['push'](_0x440325['shift']());}catch(_0x31e817){_0x440325['push'](_0x440325['shift']());}}}(_0x4e57,0xc00f3));import{InstancePoolError as _0x3dac63,createGenericKeyedInstancePool as _0x5c4d3}from'@univer-cli/generic-keyed-instance-pool';import{fork as _0x53282c}from'node:child_process';import{dirname as _0x5628a7,extname as _0x12c634,join as _0x1e69f6}from'node:path';import{fileURLToPath as _0x31dc22}from'node:url';var s=class extends Error{[_0x5f4dee(0x181)];[_0x5f4dee(0x168)];constructor(_0xceb83c,_0x11477f,_0x4d541c={}){const _0x1e394e=_0x5f4dee;super(_0x11477f,_0x4d541c),this['name']=_0x1e394e(0x15a),this[_0x1e394e(0x181)]=_0xceb83c,this['invalidatesInstance']=_0x4d541c[_0x1e394e(0x168)]??!0x1;}},c=_0x5f4dee(0x163);function l(_0x5b46a2){const _0x137906=_0x5f4dee;return _0x5b46a2 instanceof Error&&_0x5b46a2['name']==='CollaborationRuntimeError'&&_0x137906(0x181)in _0x5b46a2&&typeof _0x5b46a2['code']==_0x137906(0x16c);}async function u(_0x4540eb){const _0x24799b=_0x5f4dee;let _0x6350a9=_0x31dc22(import.meta.url),_0x5a9a6a=_0x5628a7(_0x6350a9),_0x56a707=_0x1e69f6(_0x5a9a6a,_0x12c634(_0x6350a9)===_0x24799b(0x156)?_0x24799b(0x19e):_0x24799b(0x182)),_0x14d8b6=d(_0x53282c(_0x56a707,[],{..._0x4540eb[_0x24799b(0x1db)]===void 0x0?{}:{'env':_0x4540eb[_0x24799b(0x1db)]},'serialization':'advanced','stdio':[_0x24799b(0x1da),_0x24799b(0x1da),'ignore',_0x24799b(0x192)]}),_0x4540eb[_0x24799b(0x17f)]);try{let _0x2954b0=f(await _0x14d8b6[_0x24799b(0x191)]({'entry':_0x4540eb[_0x24799b(0x1b9)],'id':_0x14d8b6[_0x24799b(0x1bb)](),'init':_0x4540eb[_0x24799b(0x1d8)],'type':_0x24799b(0x17c)},_0x4540eb[_0x24799b(0x16a)],_0x24799b(0x18a))),_0x5a2020,_0x5339a5=async _0x1fb187=>await _0x14d8b6['request']({..._0x1fb187,'id':_0x14d8b6[_0x24799b(0x1bb)]()},_0x4540eb[_0x24799b(0x17b)]);return{..._0x2954b0,async 'close'(){_0x5a2020??=_0x14d8b6['close'](),await _0x5a2020;},async 'getState'(){const _0x1f0852=_0x24799b;return p(await _0x5339a5({'type':_0x1f0852(0x19d)}));},async 'getPendingMutations'(){const _0x35cea5=_0x24799b;let _0x428181=await _0x5339a5({'type':'get-pending-mutations'});if(!w(_0x428181))throw v(_0x35cea5(0x1a9));return _0x428181;},async 'executeReadCode'(_0x84d06a){const _0x557a2b=_0x24799b;let _0x385acf=m(await _0x5339a5({'code':_0x84d06a,'type':_0x557a2b(0x1a5)}));if(!(_0x557a2b(0x1d5)in _0x385acf)||!T(_0x385acf['value']))throw v(_0x557a2b(0x165));return _0x385acf;},async 'executeWriteCode'(_0xa52246){const _0x1d838f=_0x24799b;let _0x3c8a47=m(await _0x5339a5({'code':_0xa52246,'type':_0x1d838f(0x158)}));if(!T(_0x3c8a47['value'])||!w(_0x3c8a47[_0x1d838f(0x1e2)]))throw v(_0x1d838f(0x1dd));return _0x3c8a47;},async 'replacePendingMutations'(_0x4031fc){const _0x32af21=_0x24799b;let _0x1f0823=m(await _0x5339a5({'mutations':_0x4031fc,'type':_0x32af21(0x18e)}));if(!E(_0x1f0823['previousMutationCount'])||!E(_0x1f0823[_0x32af21(0x1d0)]))throw v(_0x32af21(0x1e9));return _0x1f0823;},async 'fetch'(){const _0x510dab=_0x24799b;return h(await _0x5339a5({'type':_0x510dab(0x16e)}),[_0x510dab(0x167),_0x510dab(0x1cf)]);},async 'pull'(){const _0x57871e=_0x24799b;return h(await _0x5339a5({'type':_0x57871e(0x1c3)}),[_0x57871e(0x1d7),_0x57871e(0x1b5),'conflict']);},async 'commit'(){const _0x34accb=_0x24799b;return h(await _0x5339a5({'type':'commit'}),[_0x34accb(0x1c1),_0x34accb(0x171),_0x34accb(0x1ea),_0x34accb(0x1dc),_0x34accb(0x185),'conflict']);},async 'exportUnitData'(){const _0xe03232=_0x24799b;let _0x37ebdc=await _0x5339a5({'type':_0xe03232(0x1e5)});if(!D(_0x37ebdc))throw v(_0xe03232(0x1cb));return _0x37ebdc;}};}catch(_0x21e089){throw await _0x14d8b6['close'](),_0x21e089;}}function d(_0x5cc439,_0x318e8d){const _0x4abca2=_0x5f4dee;let _0x5e6f5e=new Map(),_0x3f47fe=0x0,_0x41696f,_0x5a67a4=!0x1,_0x8afaf9,_0x40a028,_0x3d6bb3=new Promise(_0x423c0b=>{_0x40a028=_0x423c0b;});return _0x5cc439['on'](_0x4abca2(0x1a3),_0x246fb3=>{const _0x59ed32=_0x4abca2;if(!y(_0x246fb3))return;let _0x51df6c=_0x5e6f5e[_0x59ed32(0x162)](_0x246fb3['id']);_0x51df6c&&(_0x5e6f5e[_0x59ed32(0x17a)](_0x246fb3['id']),_0x51df6c[_0x59ed32(0x1ae)]&&clearTimeout(_0x51df6c[_0x59ed32(0x1ae)]),_0x246fb3[_0x59ed32(0x1b7)]===_0x59ed32(0x179)?_0x51df6c[_0x59ed32(0x176)](g(_0x246fb3['error'])):_0x51df6c[_0x59ed32(0x1ca)](_0x246fb3[_0x59ed32(0x175)]));}),_0x5cc439['on']('error',_0x29ff24=>_0x58dd50(_(_0x4abca2(0x18f)+_0x318e8d+_0x4abca2(0x1c9)+_0x29ff24[_0x4abca2(0x1a3)],_0x29ff24))),_0x5cc439['on']('exit',(_0x2197e7,_0x2346ec)=>{const _0x5da1f1=_0x4abca2;_0x5a67a4||_0x58dd50(_('Worker\x20'+_0x318e8d+_0x5da1f1(0x18d)+(_0x2346ec?'signal\x20'+_0x2346ec:_0x5da1f1(0x161)+String(_0x2197e7))));}),_0x5cc439['on'](_0x4abca2(0x1c0),()=>_0x40a028()),{async 'close'(){if(_0x8afaf9)return await _0x8afaf9;_0x8afaf9=_0x1e3cc2(),await _0x8afaf9;},'nextId'(){return++_0x3f47fe;},async 'request'(_0x460e5b,_0x3de8d0,_0x27f847=_0x4abca2(0x1de)){if(_0x41696f)throw _0x41696f;return await new Promise((_0x5cb9c7,_0x3d1090)=>{const _0x492c4a=_0x45d8;let _0x7109ee={'reject':_0x3d1090,'resolve':_0x5cb9c7,'timer':setTimeout(()=>{const _0x42d3eb=_0x45d8;_0x58dd50(new s(_0x27f847,'Collaboration\x20worker\x20'+_0x318e8d+_0x42d3eb(0x1bd)+_0x3de8d0+'ms',{'invalidatesInstance':!0x0})),_0x501e97();},_0x3de8d0)};_0x5e6f5e[_0x492c4a(0x1e6)](_0x460e5b['id'],_0x7109ee),_0x5cc439['send'](_0x460e5b,_0xc2a5a3=>{const _0x5abd2c=_0x492c4a;_0xc2a5a3&&_0x58dd50(_(_0x5abd2c(0x1b6)+_0x318e8d,_0xc2a5a3));});});}};async function _0x1e3cc2(){const _0x327915=_0x4abca2;if(_0x5a67a4=!0x0,!_0x41696f&&_0x5cc439[_0x327915(0x1bc)])try{await Promise[_0x327915(0x19c)]([new Promise((_0x3311ec,_0x5d345b)=>{const _0x1577cd=_0x327915;let _0x171b3d=++_0x3f47fe;_0x5e6f5e[_0x1577cd(0x1e6)](_0x171b3d,{'reject':_0x5d345b,'resolve':_0x3311ec}),_0x5cc439[_0x1577cd(0x15b)]({'id':_0x171b3d,'type':_0x1577cd(0x1c0)},_0x515e0f=>{_0x515e0f&&_0x5d345b(_0x515e0f);});}),new Promise((_0x5a480f,_0x369394)=>{const _0x98c603=_0x327915;setTimeout(()=>_0x369394(Error(_0x98c603(0x1e3))),0x1388)[_0x98c603(0x1d3)]();})]);}catch{}_0x501e97(),await _0x3d6bb3,_0x58dd50(new s(_0x327915(0x198),_0x327915(0x16d)+_0x318e8d+_0x327915(0x183),{'invalidatesInstance':!0x0}));}function _0x58dd50(_0x4dfe1c){const _0x5e6a5d=_0x4abca2;_0x41696f??=_0x4dfe1c;for(let _0x1d3c14 of _0x5e6f5e[_0x5e6a5d(0x1ad)]())_0x1d3c14[_0x5e6a5d(0x1ae)]&&clearTimeout(_0x1d3c14[_0x5e6a5d(0x1ae)]),_0x1d3c14[_0x5e6a5d(0x176)](_0x41696f);_0x5e6f5e[_0x5e6a5d(0x1c2)]();}function _0x501e97(){const _0x29c560=_0x4abca2;_0x5cc439[_0x29c560(0x195)]===null&&_0x5cc439['signalCode']===null&&_0x5cc439[_0x29c560(0x17e)]('SIGKILL');}}function f(_0x5a1c24){const _0x3c85c4=_0x5f4dee;if(!D(_0x5a1c24)||typeof _0x5a1c24[_0x3c85c4(0x199)]!=_0x3c85c4(0x16c)||!b(_0x5a1c24[_0x3c85c4(0x1af)]))throw v(_0x3c85c4(0x1ac));return{'unitId':_0x5a1c24['unitId'],'unitType':_0x5a1c24[_0x3c85c4(0x1af)]};}function p(_0x31fcb2){const _0x577a43=_0x5f4dee;if(!D(_0x31fcb2)||!x(_0x31fcb2[_0x577a43(0x1c8)])||!E(_0x31fcb2[_0x577a43(0x1ab)])||!E(_0x31fcb2['knownHeadRevision'])||Number(_0x31fcb2[_0x577a43(0x1b4)])<Number(_0x31fcb2['baseRevision'])||!E(_0x31fcb2[_0x577a43(0x1d0)])||!E(_0x31fcb2[_0x577a43(0x1c7)])||!S(_0x31fcb2[_0x577a43(0x172)])||!C(_0x31fcb2[_0x577a43(0x155)]))throw v(_0x577a43(0x160));return _0x31fcb2;}function m(_0x53df26){const _0x52016f=_0x5f4dee;if(!D(_0x53df26))throw v(_0x52016f(0x1a7));return{..._0x53df26,'state':p(_0x53df26['state'])};}function h(_0x3f9e58,_0x57e219){const _0x1809a7=_0x5f4dee;let _0x13dc7b=m(_0x3f9e58);if(typeof _0x13dc7b[_0x1809a7(0x1e1)]!=_0x1809a7(0x16c)||!_0x57e219['includes'](_0x13dc7b['status']))throw v(_0x1809a7(0x1e4));return _0x13dc7b;}function g(_0x216f86){const _0x2dc6e8=_0x5f4dee;let _0x37388f=Error(_0x216f86[_0x2dc6e8(0x1a3)]);return _0x216f86[_0x2dc6e8(0x181)]?.[_0x2dc6e8(0x1c6)](_0x2dc6e8(0x174))&&!_0x216f86[_0x2dc6e8(0x181)][_0x2dc6e8(0x1c6)](_0x2dc6e8(0x1a4))?(_0x37388f[_0x2dc6e8(0x1cd)]=c,Object[_0x2dc6e8(0x188)](_0x37388f,{'code':_0x216f86['code'],'retryable':_0x216f86[_0x2dc6e8(0x1e7)]??!0x1})):(_0x37388f[_0x2dc6e8(0x1cd)]=_0x216f86[_0x2dc6e8(0x1cd)],_0x216f86[_0x2dc6e8(0x181)]!==void 0x0&&Object[_0x2dc6e8(0x188)](_0x37388f,{'code':_0x216f86[_0x2dc6e8(0x181)]})),_0x216f86[_0x2dc6e8(0x168)]&&Object['assign'](_0x37388f,{'invalidatesInstance':!0x0}),_0x216f86['stack']!==void 0x0&&(_0x37388f[_0x2dc6e8(0x16f)]=_0x216f86[_0x2dc6e8(0x16f)]),_0x37388f;}function _(_0x478039,_0x15bac3){return new s('COLLABORATION_WORKER_CRASHED',_0x478039,{..._0x15bac3===void 0x0?{}:{'cause':_0x15bac3},'invalidatesInstance':!0x0});}function v(_0x34842d){return new s('COLLABORATION_WORKER_PROTOCOL_ERROR',_0x34842d,{'invalidatesInstance':!0x0});}function y(_0x2e6cce){const _0xdf3a49=_0x5f4dee;return D(_0x2e6cce)&&Number[_0xdf3a49(0x157)](_0x2e6cce['id'])&&(_0x2e6cce[_0xdf3a49(0x1b7)]===_0xdf3a49(0x175)||_0x2e6cce[_0xdf3a49(0x1b7)]===_0xdf3a49(0x179));}function b(_0x1f5d16){return _0x1f5d16===0x1||_0x1f5d16===0x2||_0x1f5d16===0x3||_0x1f5d16===0x5||_0x1f5d16===0x6||_0x1f5d16===0x7;}function x(_0x3f2c6d){const _0x21c8b9=_0x5f4dee;return _0x3f2c6d===_0x21c8b9(0x15d)||_0x3f2c6d===_0x21c8b9(0x1a1)||_0x3f2c6d===_0x21c8b9(0x1cc)||_0x3f2c6d===_0x21c8b9(0x186);}function S(_0x4c2b88){const _0x54d659=_0x5f4dee;return _0x4c2b88===null||D(_0x4c2b88)&&E(_0x4c2b88['baseRevision'])&&E(_0x4c2b88['revision'])&&E(_0x4c2b88[_0x54d659(0x16b)])&&(_0x4c2b88[_0x54d659(0x1a8)]===void 0x0||typeof _0x4c2b88[_0x54d659(0x1a8)]==_0x54d659(0x16c))&&(_0x4c2b88[_0x54d659(0x1a2)]===void 0x0||E(_0x4c2b88[_0x54d659(0x1a2)]));}function C(_0x3c7c52){const _0x4486ac=_0x5f4dee;return _0x3c7c52===null||D(_0x3c7c52)&&(_0x3c7c52[_0x4486ac(0x190)]===_0x4486ac(0x1c3)||_0x3c7c52[_0x4486ac(0x190)]===_0x4486ac(0x1b2))&&(_0x3c7c52[_0x4486ac(0x196)]==='transform-failed'||_0x3c7c52[_0x4486ac(0x196)]===_0x4486ac(0x1a6)||_0x3c7c52['reason']===_0x4486ac(0x159))&&typeof _0x3c7c52[_0x4486ac(0x1a3)]=='string'&&(_0x3c7c52[_0x4486ac(0x181)]===void 0x0||Number[_0x4486ac(0x1c5)](_0x3c7c52['code']));}function w(_0x18697c){const _0x1ca93e=_0x5f4dee;return Array[_0x1ca93e(0x193)](_0x18697c)&&_0x18697c[_0x1ca93e(0x1d4)](_0xdd2c64=>D(_0xdd2c64)&&typeof _0xdd2c64['id']=='string'&&_0xdd2c64['id']['length']>0x0&&typeof _0xdd2c64['data']==_0x1ca93e(0x16c));}function T(_0x1bdb45){const _0x2d5fcb=_0x5f4dee;return _0x1bdb45===null||typeof _0x1bdb45=='boolean'||typeof _0x1bdb45==_0x2d5fcb(0x16c)||typeof _0x1bdb45==_0x2d5fcb(0x187)&&Number[_0x2d5fcb(0x15e)](_0x1bdb45)?!0x0:Array['isArray'](_0x1bdb45)?_0x1bdb45[_0x2d5fcb(0x1d4)](T):D(_0x1bdb45)&&Object['values'](_0x1bdb45)[_0x2d5fcb(0x1d4)](T);}function E(_0x30fd63){const _0x3e6bf3=_0x5f4dee;return Number[_0x3e6bf3(0x157)](_0x30fd63)&&Number(_0x30fd63)>=0x0;}function _0x45d8(_0x5340c7,_0x29ebc7){_0x5340c7=_0x5340c7-0x155;const _0x4e574f=_0x4e57();let _0x45d814=_0x4e574f[_0x5340c7];return _0x45d814;}function D(_0x2e4be0){return typeof _0x2e4be0=='object'&&!!_0x2e4be0&&!Array['isArray'](_0x2e4be0);}var O=0x7530,k=0x7530;function _0x4e57(){const _0x1fdb6e=['Worker\x20returned\x20an\x20invalid\x20operation\x20result','sid','Worker\x20returned\x20invalid\x20pending\x20mutations','href','baseRevision','Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20metadata','values','timer','unitType','\x20must\x20be\x20a\x20finite\x20positive\x20number','instance-failed','commit','state','knownHeadRevision','pulled','Failed\x20to\x20send\x20a\x20request\x20to\x20worker\x20','type','COLLABORATION_POOL_CLOSED','entry','198shyPIq','nextId','connected','\x20timed\x20out\x20after\x20','9863OKGuTO','length','close','nothing-to-commit','clear','pull','15559010DBInqH','isInteger','startsWith','bufferedChangesetCount','connection','\x20failed:\x20','resolve','Worker\x20returned\x20invalid\x20UnitData','offline','name','6345990ycKVUv','fetched','pendingMutationCount','INSTANCE_POOL_CLOSED','instance','unref','every','value','152mNmFTz','up-to-date','init','6799010aDupCY','ignore','env','retry','Worker\x20returned\x20an\x20invalid\x20write\x20result','COLLABORATION_WORKER_OPERATION_TIMEOUT','COLLABORATION_LEASE_CLOSED','pending-mutations','status','mutations','Worker\x20close\x20timed\x20out','Worker\x20returned\x20an\x20invalid\x20operation\x20status','export','set','retryable','getPendingMutations','Worker\x20returned\x20an\x20invalid\x20mutation\x20replacement\x20result','confirmed','conflict','.ts','isSafeInteger','execute-write','permission-rejected','UniverCollaborationRuntimePoolError','send','now','online','isFinite','COLLABORATION_PROTOCOL_ERROR','Worker\x20returned\x20invalid\x20collaboration\x20runtime\x20state','exit\x20code\x20','get','CollaborationRuntimeError','onEvent','Worker\x20returned\x20an\x20invalid\x20read\x20value','entry\x20must\x20be\x20an\x20absolute\x20file\x20URL\x20or\x20another\x20importable\x20URL','unchanged','invalidatesInstance','1122MqeDnj','openTimeoutMs','mutationCount','string','Collaboration\x20worker\x20','fetch','stack','COLLABORATION_POOL_INVALID_INPUT','pull-required','awaitingChangeset','invalidate','COLLABORATION_','result','reject','6DVmrWV','read','error','delete','operationTimeoutMs','open','replacePendingMutations','kill','key','object','code','worker-child.mjs','\x20is\x20closed','7796KAjfkp','unknown','closed','number','assign','getState','COLLABORATION_WORKER_OPEN_TIMEOUT','1949981UjMLPn','COLLABORATION_CLOSED','\x20exited\x20unexpectedly\x20with\x20','replace-mutations','Worker\x20','operation','request','ipc','isArray','5420rcoeJX','exitCode','reason','COLLABORATION_LOAD_FAILED','COLLABORATION_WORKER_CLOSED','unitId','operation-complete','entry\x20must\x20not\x20be\x20empty','race','get-state','worker-child.ts','cache','mode','reconnecting','reqId','message','COLLABORATION_WORKER_','execute-read','changeset-rejected'];_0x4e57=function(){return _0x1fdb6e;};return _0x4e57();}function A(_0xb69d21){const _0x133b1a=_0x5f4dee;let _0x5b0730=j(_0xb69d21['entry']),_0x5326d9=_0xb69d21[_0x133b1a(0x16a)]??O,_0x2d098e=_0xb69d21['operationTimeoutMs']??k;M(_0x5326d9,_0x133b1a(0x16a)),M(_0x2d098e,'operationTimeoutMs');let _0x1f9ede;try{_0x1f9ede=_0x5c4d3({'factory':{async 'create'(_0x4d4297){const _0x1614e8=_0x133b1a;return await u({'entry':_0x5b0730,..._0xb69d21[_0x1614e8(0x1db)]===void 0x0?{}:{'env':_0xb69d21[_0x1614e8(0x1db)]},'init':_0x4d4297[_0x1614e8(0x1d8)],'key':_0x4d4297['key'],'openTimeoutMs':_0x5326d9,'operationTimeoutMs':_0x2d098e});},async 'destroy'({instance:_0x4984a6}){const _0xb64a99=_0x133b1a;await _0x4984a6[_0xb64a99(0x1c0)]();}},..._0xb69d21[_0x133b1a(0x19f)]===void 0x0?{}:{'cache':_0xb69d21['cache']},'onEvent':_0x444cdc});}catch(_0x1bd6ce){throw N(_0x1bd6ce);}return{async 'acquire'(_0x10c7dd){let _0x593624;try{_0x593624=await _0x1f9ede['acquire'](_0x10c7dd);}catch(_0xc6faf){throw N(_0xc6faf);}return _0x380768(_0x593624);},async 'close'(){const _0x1e8750=_0x133b1a;try{await _0x1f9ede[_0x1e8750(0x1c0)]();}catch(_0x585941){throw N(_0x585941);}}};function _0x380768(_0x2917a7){const _0x837a1c=_0x133b1a;let _0x11b214=_0x2917a7[_0x837a1c(0x1d2)],_0x467ea1=!0x1,_0x47030e,_0x388d0c=!0x1;return{'key':_0x2917a7[_0x837a1c(0x17f)],'unitId':_0x11b214[_0x837a1c(0x199)],'unitType':_0x11b214[_0x837a1c(0x1af)],async 'getState'(){const _0x4f68e5=_0x837a1c;return await _0xf725db(_0x4f68e5(0x1b3),async()=>await _0x11b214[_0x4f68e5(0x189)]());},async 'getPendingMutations'(){const _0x5f0edf=_0x837a1c;return await _0xf725db(_0x5f0edf(0x1e0),async()=>await _0x11b214[_0x5f0edf(0x1e8)]());},async 'execute'(_0x5b734a){const _0x1709bb=_0x837a1c;return _0x5b734a[_0x1709bb(0x1a0)]===_0x1709bb(0x178)?await _0xf725db(_0x1709bb(0x178),async()=>await _0x11b214['executeReadCode'](_0x5b734a[_0x1709bb(0x181)])):await _0xf725db('write',async()=>await _0x11b214['executeWriteCode'](_0x5b734a[_0x1709bb(0x181)]));},async 'replacePendingMutations'(_0x2722de){const _0x3a367e=_0x837a1c;return await _0xf725db(_0x3a367e(0x18e),async()=>await _0x11b214[_0x3a367e(0x17d)](_0x2722de));},async 'fetch'(){const _0xaa8c30=_0x837a1c;return await _0xf725db('fetch',async()=>await _0x11b214[_0xaa8c30(0x16e)]());},async 'pull'(){const _0x3f60d6=_0x837a1c;return await _0xf725db('pull',async()=>await _0x11b214[_0x3f60d6(0x1c3)]());},async 'commit'(){const _0x640b9=_0x837a1c;return await _0xf725db(_0x640b9(0x1b2),async()=>await _0x11b214['commit']());},async 'exportUnitData'(){const _0x1fe6fc=_0x837a1c;return await _0xf725db(_0x1fe6fc(0x1e5),async()=>await _0x11b214['exportUnitData']());},async 'invalidate'(){const _0x2549ef=_0x837a1c;_0x467ea1||(_0x467ea1=!0x0,await _0x2917a7[_0x2549ef(0x173)]());},async 'release'(){const _0x5dcead=_0x837a1c;_0x467ea1||(_0x467ea1=!0x0,_0x388d0c?await _0x2917a7[_0x5dcead(0x173)]():await _0x2917a7['release']());}};async function _0xf725db(_0x437ec9,_0x59b1ba){const _0x321406=_0x837a1c;_0x3706f1();try{return await _0x44556e(_0x2917a7[_0x321406(0x17f)],_0x437ec9,_0x59b1ba);}catch(_0x10e5c3){throw _0x17e1bf(_0x10e5c3),_0x10e5c3;}}function _0x3706f1(){const _0x56d4e8=_0x837a1c;if(_0x467ea1)throw new s(_0x56d4e8(0x1df),'Collaboration\x20runtime\x20lease\x20'+_0x2917a7['key']+_0x56d4e8(0x183));if(_0x47030e)throw _0x47030e;}function _0x17e1bf(_0x3f9cba){const _0x3fcbd0=_0x837a1c;(_0x3f9cba instanceof s&&_0x3f9cba[_0x3fcbd0(0x168)]||l(_0x3f9cba)&&(_0x3f9cba['code']===_0x3fcbd0(0x15f)||_0x3f9cba[_0x3fcbd0(0x181)]===_0x3fcbd0(0x18c)||_0x3f9cba['code']===_0x3fcbd0(0x197))||typeof _0x3f9cba=='object'&&_0x3f9cba&&'invalidatesInstance'in _0x3f9cba&&_0x3f9cba[_0x3fcbd0(0x168)]===!0x0)&&(_0x388d0c=!0x0,_0x47030e=_0x3f9cba,_0xbb4e30({'errorCode':P(_0x3f9cba),'key':_0x2917a7[_0x3fcbd0(0x17f)],'type':_0x3fcbd0(0x1b1)}));}}async function _0x44556e(_0x23366b,_0x19eaa0,_0x276e4c){const _0xd35ee0=_0x133b1a;let _0x4a6866=Date[_0xd35ee0(0x15c)](),_0x586cc9=await _0x276e4c();return _0xbb4e30({'durationMs':Date[_0xd35ee0(0x15c)]()-_0x4a6866,'key':_0x23366b,'operation':_0x19eaa0,'type':_0xd35ee0(0x19a)}),_0x586cc9;}function _0x444cdc(_0x3dab2d){_0xbb4e30(_0x3dab2d);}function _0xbb4e30(_0x8da220){const _0x44594b=_0x133b1a;try{_0xb69d21[_0x44594b(0x164)]?.(_0x8da220);}catch{}}}function j(_0x3ba067){const _0x1e2edc=_0x5f4dee;let _0x56c8f6=_0x3ba067 instanceof URL?_0x3ba067[_0x1e2edc(0x1aa)]:_0x3ba067;if(_0x56c8f6[_0x1e2edc(0x1bf)]===0x0)throw new s(_0x1e2edc(0x170),_0x1e2edc(0x19b));try{return new URL(_0x56c8f6)[_0x1e2edc(0x1aa)];}catch{throw new s(_0x1e2edc(0x170),_0x1e2edc(0x166));}}function M(_0x1dea3a,_0x33e4e9){const _0x1de778=_0x5f4dee;if(!Number[_0x1de778(0x15e)](_0x1dea3a)||_0x1dea3a<=0x0)throw new s(_0x1de778(0x170),_0x33e4e9+_0x1de778(0x1b0));}function N(_0x2dfa6a){const _0x43acf0=_0x5f4dee;return _0x2dfa6a instanceof _0x3dac63?new s(_0x2dfa6a[_0x43acf0(0x181)]==='INSTANCE_POOL_CAPACITY_EXCEEDED'?'COLLABORATION_POOL_CAPACITY_EXCEEDED':_0x2dfa6a[_0x43acf0(0x181)]===_0x43acf0(0x1d1)?_0x43acf0(0x1b8):_0x43acf0(0x170),_0x2dfa6a[_0x43acf0(0x1a3)],{'cause':_0x2dfa6a}):_0x2dfa6a;}function P(_0x5e35e6){const _0x2c5ea3=_0x5f4dee;return typeof _0x5e35e6==_0x2c5ea3(0x180)&&_0x5e35e6&&_0x2c5ea3(0x181)in _0x5e35e6&&typeof _0x5e35e6['code']==_0x2c5ea3(0x16c)?_0x5e35e6[_0x2c5ea3(0x181)]:'UNKNOWN';}function F(_0x1e4e10){return _0x1e4e10;}export{s as UniverCollaborationRuntimePoolError,A as createUniverCollaborationRuntimePool,F as defineUniverCollaborationRuntimeWorker};
@@ -1 +1 @@
1
- const _0x2ffafc=_0x113b;(function(_0x1565c3,_0x72ab93){const _0x17893b=_0x113b,_0x33f640=_0x1565c3();while(!![]){try{const _0x54bff2=-parseInt(_0x17893b(0x118))/0x1*(-parseInt(_0x17893b(0x11e))/0x2)+-parseInt(_0x17893b(0x127))/0x3+-parseInt(_0x17893b(0x131))/0x4*(-parseInt(_0x17893b(0x119))/0x5)+-parseInt(_0x17893b(0x121))/0x6+-parseInt(_0x17893b(0x11f))/0x7*(parseInt(_0x17893b(0x128))/0x8)+parseInt(_0x17893b(0x13c))/0x9+parseInt(_0x17893b(0x117))/0xa*(parseInt(_0x17893b(0x123))/0xb);if(_0x54bff2===_0x72ab93)break;else _0x33f640['push'](_0x33f640['shift']());}catch(_0x45a26c){_0x33f640['push'](_0x33f640['shift']());}}}(_0x5753,0xbdeae));var e;process['on'](_0x2ffafc(0x142),_0x3e4241=>{const _0x58a796=_0x2ffafc;a(_0x3e4241)&&t(_0x3e4241)[_0x58a796(0x12d)](_0x11a6de=>s({'id':_0x3e4241['id'],'result':_0x11a6de,'type':_0x58a796(0x11a)}),_0xc2a18b=>s({'error':o(_0xc2a18b,e?.[_0x58a796(0x12e)]()['connection']===_0x58a796(0x141)),'id':_0x3e4241['id'],'type':_0x58a796(0x138)}));});async function t(_0x1d10b8){const _0x4a0242=_0x2ffafc;if(_0x1d10b8[_0x4a0242(0x11c)]===_0x4a0242(0x132)){if(e!==void 0x0)throw Error('Collaboration\x20worker\x20is\x20already\x20open');let _0x43650a=await import(_0x1d10b8.entry);if(!i(_0x43650a[_0x4a0242(0x12f)]))throw Error(_0x4a0242(0x135));return e=await _0x43650a['default'][_0x4a0242(0x143)](_0x1d10b8[_0x4a0242(0x13d)]),r(e);}if(_0x1d10b8[_0x4a0242(0x11c)]===_0x4a0242(0x116))return await e?.['close'](),e=void 0x0,null;let _0x29da8e=n();return _0x1d10b8[_0x4a0242(0x11c)]===_0x4a0242(0x13b)?_0x29da8e[_0x4a0242(0x12e)]():_0x1d10b8[_0x4a0242(0x11c)]===_0x4a0242(0x137)?_0x29da8e[_0x4a0242(0x136)]():_0x1d10b8[_0x4a0242(0x11c)]===_0x4a0242(0x12c)?await _0x29da8e[_0x4a0242(0x12a)]({'code':_0x1d10b8['code'],'mode':'read'}):_0x1d10b8[_0x4a0242(0x11c)]===_0x4a0242(0x129)?await _0x29da8e[_0x4a0242(0x12a)]({'code':_0x1d10b8['code'],'mode':_0x4a0242(0x122)}):_0x1d10b8[_0x4a0242(0x11c)]==='replace-mutations'?await _0x29da8e[_0x4a0242(0x139)](_0x1d10b8[_0x4a0242(0x134)]):_0x1d10b8[_0x4a0242(0x11c)]===_0x4a0242(0x12b)?await _0x29da8e[_0x4a0242(0x12b)]():_0x1d10b8[_0x4a0242(0x11c)]===_0x4a0242(0x125)?await _0x29da8e[_0x4a0242(0x125)]():_0x1d10b8['type']==='commit'?await _0x29da8e['commit']():await _0x29da8e[_0x4a0242(0x13e)]();}function n(){const _0x421007=_0x2ffafc;if(!e)throw Error(_0x421007(0x13f));return e;}function _0x113b(_0x2fc882,_0x1dd998){_0x2fc882=_0x2fc882-0x116;const _0x575337=_0x5753();let _0x113b00=_0x575337[_0x2fc882];return _0x113b00;}function r(_0x3d2802){const _0x2e4c78=_0x2ffafc;return{'unitId':_0x3d2802[_0x2e4c78(0x140)],'unitType':_0x3d2802[_0x2e4c78(0x124)]};}function i(_0x41076a){const _0x1e8466=_0x2ffafc;return typeof _0x41076a==_0x1e8466(0x13a)&&!!_0x41076a&&_0x1e8466(0x143)in _0x41076a&&typeof _0x41076a[_0x1e8466(0x143)]==_0x1e8466(0x120);}function _0x5753(){const _0x27c57e=['connected','3547539RvEMeD','8HNuWNU','execute-write','execute','fetch','execute-read','then','getState','default','name','370348XMmxwk','open','string','mutations','Collaboration\x20worker\x20entry\x20must\x20default-export\x20a\x20worker\x20definition','getPendingMutations','get-pending-mutations','error','replacePendingMutations','object','get-state','13171392bGUoSp','init','exportUnitData','Collaboration\x20worker\x20is\x20not\x20open','unitId','closed','message','createRuntime','close','2955770FAnrWI','18427uNkhJs','15ubExhK','result','code','type','stack','114mRiJEf','4388503VqjIIV','function','8319312uRaSzl','write','44IXqMgN','unitType','pull'];_0x5753=function(){return _0x27c57e;};return _0x5753();}function a(_0x565a4e){const _0x17f516=_0x2ffafc;return typeof _0x565a4e=='object'&&!!_0x565a4e&&'id'in _0x565a4e&&Number['isSafeInteger'](_0x565a4e['id'])&&_0x17f516(0x11c)in _0x565a4e&&typeof _0x565a4e[_0x17f516(0x11c)]==_0x17f516(0x133);}function o(_0x554729,_0x41180b){const _0xa48af4=_0x2ffafc;if(!(_0x554729 instanceof Error))return{'invalidatesInstance':_0x41180b,'message':String(_0x554729),'name':'Error'};let _0x2356de=_0x554729;return{...typeof _0x2356de[_0xa48af4(0x11b)]=='string'?{'code':_0x2356de[_0xa48af4(0x11b)]}:{},..._0x41180b?{'invalidatesInstance':!0x0}:{},'message':_0x554729[_0xa48af4(0x142)],'name':_0x554729[_0xa48af4(0x130)],...typeof _0x2356de['retryable']=='boolean'?{'retryable':_0x2356de['retryable']}:{},..._0x554729['stack']===void 0x0?{}:{'stack':_0x554729[_0xa48af4(0x11d)]}};}function s(_0x9f5533){const _0x14a9ec=_0x2ffafc;process[_0x14a9ec(0x126)]&&process['send']?.(_0x9f5533);}
1
+ const _0x3d8843=_0x3076;(function(_0x428e70,_0x47da92){const _0x19f39a=_0x3076,_0x4f54c1=_0x428e70();while(!![]){try{const _0x3eaebe=-parseInt(_0x19f39a(0x9a))/0x1+-parseInt(_0x19f39a(0xa9))/0x2*(parseInt(_0x19f39a(0xa4))/0x3)+-parseInt(_0x19f39a(0xa5))/0x4+-parseInt(_0x19f39a(0xa1))/0x5+-parseInt(_0x19f39a(0x90))/0x6*(-parseInt(_0x19f39a(0x99))/0x7)+parseInt(_0x19f39a(0xa6))/0x8+parseInt(_0x19f39a(0x95))/0x9;if(_0x3eaebe===_0x47da92)break;else _0x4f54c1['push'](_0x4f54c1['shift']());}catch(_0x31701e){_0x4f54c1['push'](_0x4f54c1['shift']());}}}(_0x2391,0x44f7d));var e;process['on'](_0x3d8843(0x9d),_0x17a3d8=>{const _0x288e98=_0x3d8843;a(_0x17a3d8)&&t(_0x17a3d8)['then'](_0x5a06f3=>s({'id':_0x17a3d8['id'],'result':_0x5a06f3,'type':'result'}),_0x5a1d6e=>s({'error':o(_0x5a1d6e,e?.[_0x288e98(0x8f)]()[_0x288e98(0x98)]===_0x288e98(0xa0)),'id':_0x17a3d8['id'],'type':_0x288e98(0x8e)}));});async function t(_0x1b48c0){const _0x17a010=_0x3d8843;if(_0x1b48c0['type']===_0x17a010(0x88)){if(e!==void 0x0)throw Error(_0x17a010(0x94));let _0xf3f42c=await import(_0x1b48c0.entry);if(!i(_0xf3f42c['default']))throw Error(_0x17a010(0x83));return e=await _0xf3f42c[_0x17a010(0x86)][_0x17a010(0x9b)](_0x1b48c0['init']),r(e);}if(_0x1b48c0[_0x17a010(0xaa)]===_0x17a010(0x82))return await e?.[_0x17a010(0x82)](),e=void 0x0,null;let _0x264474=n();return _0x1b48c0[_0x17a010(0xaa)]===_0x17a010(0xa7)?_0x264474[_0x17a010(0x8f)]():_0x1b48c0[_0x17a010(0xaa)]===_0x17a010(0x9f)?_0x264474['getPendingMutations']():_0x1b48c0[_0x17a010(0xaa)]===_0x17a010(0x91)?await _0x264474[_0x17a010(0x96)]({'code':_0x1b48c0[_0x17a010(0x84)],'mode':_0x17a010(0x85)}):_0x1b48c0['type']===_0x17a010(0xa2)?await _0x264474[_0x17a010(0x96)]({'code':_0x1b48c0[_0x17a010(0x84)],'mode':_0x17a010(0x97)}):_0x1b48c0[_0x17a010(0xaa)]===_0x17a010(0x8c)?await _0x264474[_0x17a010(0x9c)](_0x1b48c0['mutations']):_0x1b48c0[_0x17a010(0xaa)]==='fetch'?await _0x264474[_0x17a010(0x93)]():_0x1b48c0[_0x17a010(0xaa)]==='pull'?await _0x264474[_0x17a010(0x8d)]():_0x1b48c0['type']==='commit'?await _0x264474['commit']():await _0x264474[_0x17a010(0xa3)]();}function n(){const _0x1b5816=_0x3d8843;if(!e)throw Error(_0x1b5816(0x9e));return e;}function r(_0x3b73f6){const _0x354c14=_0x3d8843;return{'unitId':_0x3b73f6[_0x354c14(0xa8)],'unitType':_0x3b73f6[_0x354c14(0x89)]};}function i(_0x5c4c76){const _0x43898e=_0x3d8843;return typeof _0x5c4c76==_0x43898e(0x8a)&&!!_0x5c4c76&&_0x43898e(0x9b)in _0x5c4c76&&typeof _0x5c4c76['createRuntime']=='function';}function a(_0x1b2c82){const _0x51feae=_0x3d8843;return typeof _0x1b2c82==_0x51feae(0x8a)&&!!_0x1b2c82&&'id'in _0x1b2c82&&Number['isSafeInteger'](_0x1b2c82['id'])&&_0x51feae(0xaa)in _0x1b2c82&&typeof _0x1b2c82[_0x51feae(0xaa)]==_0x51feae(0xab);}function o(_0x1a7e8a,_0x1943ac){const _0x412938=_0x3d8843;if(!(_0x1a7e8a instanceof Error))return{'invalidatesInstance':_0x1943ac,'message':String(_0x1a7e8a),'name':'Error'};let _0xf61170=_0x1a7e8a;return{...typeof _0xf61170[_0x412938(0x84)]==_0x412938(0xab)?{'code':_0xf61170[_0x412938(0x84)]}:{},..._0x1943ac?{'invalidatesInstance':!0x0}:{},'message':_0x1a7e8a[_0x412938(0x9d)],'name':_0x1a7e8a[_0x412938(0x92)],...typeof _0xf61170['retryable']==_0x412938(0x8b)?{'retryable':_0xf61170[_0x412938(0x87)]}:{},..._0x1a7e8a[_0x412938(0xac)]===void 0x0?{}:{'stack':_0x1a7e8a[_0x412938(0xac)]}};}function _0x3076(_0x36b0af,_0x4669e6){_0x36b0af=_0x36b0af-0x82;const _0x23915e=_0x2391();let _0x307670=_0x23915e[_0x36b0af];return _0x307670;}function _0x2391(){const _0x399710=['retryable','open','unitType','object','boolean','replace-mutations','pull','error','getState','2926218pkurhz','execute-read','name','fetch','Collaboration\x20worker\x20is\x20already\x20open','5648931NOrgCX','execute','write','connection','7VJZmJp','287854eVoGaR','createRuntime','replacePendingMutations','message','Collaboration\x20worker\x20is\x20not\x20open','get-pending-mutations','closed','1111970sRMLDh','execute-write','exportUnitData','391635vQDUMl','382384pDmdQw','272520oeCShz','get-state','unitId','4frYXTp','type','string','stack','close','Collaboration\x20worker\x20entry\x20must\x20default-export\x20a\x20worker\x20definition','code','read','default'];_0x2391=function(){return _0x399710;};return _0x2391();}function s(_0x516ec3){process['connected']&&process['send']?.(_0x516ec3);}
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.3.0",
4
+ "version": "1.4.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.3.0",
22
- "@univer-cli/univer-collaboration-runtime": "1.3.0",
23
- "@univerjs/protocol": "1.3.0"
21
+ "@univer-cli/generic-keyed-instance-pool": "1.4.0",
22
+ "@univer-cli/univer-collaboration-runtime": "1.4.0",
23
+ "@univerjs/protocol": "1.4.0"
24
24
  }
25
25
  }