@pen.dev/cli 0.3.9 → 0.3.10

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.
Files changed (30) hide show
  1. package/dist/browserAll-DN_YxOXQ.mjs +2 -0
  2. package/dist/esm-BHQtsEyo.mjs +2 -0
  3. package/dist/{esm-DBgQcoAH.mjs → esm-BYcFG9-N.mjs} +12 -12
  4. package/dist/index.mjs +2 -2
  5. package/dist/init-C4ANyG-9.mjs +2 -0
  6. package/dist/out/mcp-server-darwin-arm64 +0 -0
  7. package/dist/out/mcp-server-darwin-x64 +0 -0
  8. package/dist/out/mcp-server-linux-arm64 +0 -0
  9. package/dist/out/mcp-server-linux-x64 +0 -0
  10. package/dist/out/mcp-server-windows-arm64.exe +0 -0
  11. package/dist/out/mcp-server-windows-x64.exe +0 -0
  12. package/dist/out/skills/pen-dev/SKILL.md +3 -1
  13. package/dist/out/skills/pen-dev/pen-schema.md +14 -2
  14. package/dist/out/skills/pen-dev/whiteboard.md +120 -0
  15. package/dist/validate-response-DHB60j_7.mjs +3 -0
  16. package/dist/webworkerAll-FVvp_NgY.mjs +2 -0
  17. package/package.json +6 -4
  18. package/dist/browserAll-D_luQzBO.mjs +0 -2
  19. package/dist/emscripten-module.browser-F76W5DM6-CQ3fNT5V.mjs +0 -5147
  20. package/dist/emscripten-module.browser-XIKQQPVU-C295tmz_.mjs +0 -2160
  21. package/dist/esm-D7vjDQPJ.mjs +0 -2
  22. package/dist/ffi-CUJpv82f.mjs +0 -2
  23. package/dist/ffi-Cplg1Nas.mjs +0 -2
  24. package/dist/init-B5EVeDge.mjs +0 -2
  25. package/dist/validate-response-CezyBuEO.mjs +0 -3
  26. package/dist/webworkerAll-BPqqt3nL.mjs +0 -2
  27. /package/dist/{html-BzzLf-XM.mjs → html-C5EUiP3B.mjs} +0 -0
  28. /package/dist/{module-ES6BEMUI-2G5oIxui.mjs → module-ES6BEMUI-fiUywq2c.mjs} +0 -0
  29. /package/dist/{module-asyncify-2EFITU5U-CqIYQibj.mjs → module-asyncify-2EFITU5U-Ck30SKgw.mjs} +0 -0
  30. /package/dist/{standalone-BxPYxoeE.mjs → standalone-D4MlQZsr.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import{K as e,M as t,N as n,W as r,X as i,_t as a,c as o,dt as s,f as c,ft as l,g as u,i as d,j as f,l as p,o as m,pt as h,s as g,st as _,t as v,u as y}from"./validate-response-CezyBuEO.mjs";import{$ as b,X as x,Y as S,Z as C,it as w,nt as T,rt as E}from"./index.mjs";function D(){try{new Headers}catch{throw Error(`connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.`)}}var O=function(e){return this instanceof O?(this.v=e,this):new O(e)},k=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i={},s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof O?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};function A(s){D();let l=s.useBinaryFormat??!1;return{async unary(t,d,f,m,g,_,v){let{serialize:b,parse:x}=r(d,l,s.jsonOptions,s.binaryOptions);return m=m===void 0?s.defaultTimeoutMs:m<=0?void 0:m,await o({interceptors:s.interceptors,signal:f,timeoutMs:m,req:{stream:!1,service:t,method:d,url:i(s.baseUrl,t,d),init:{method:`POST`,credentials:s.credentials??`same-origin`,redirect:`error`,mode:`cors`},header:c(d.kind,l,m,g,!1),contextValues:v??h(),message:_},next:async r=>{let i=s.useHttpGet===!0&&d.idempotency===E.NoSideEffects,o=null;i?r=p(r,b(r.message),l):o=b(r.message);let c=await(s.fetch??globalThis.fetch)(r.url,Object.assign(Object.assign({},r.init),{headers:r.header,signal:r.signal,body:o})),{isUnaryError:f,unaryError:m}=y(d.kind,l,c.status,c.headers);if(f)throw n(await c.json(),a(...u(c.headers)),m);let[h,g]=u(c.headers);return{stream:!1,service:t,method:d,header:h,message:l?x(new Uint8Array(await c.arrayBuffer())):d.O.fromJson(await c.json(),e(s.jsonOptions)),trailer:g}}})},async stream(e,n,a,o,u,d,p){let{serialize:m,parse:_}=r(n,l,s.jsonOptions,s.binaryOptions);function v(e,n,r,i){return k(this,arguments,function*(){let a=S(e).getReader(),o=!1;for(;;){let e=yield O(a.read());if(e.done)break;let{flags:i,data:s}=e.value;if((i&C)===C)throw new b(`protocol error: received unsupported compressed output`,T.Internal);if((i&f)===f){o=!0;let e=t(s);if(e.error){let t=e.error;throw r.forEach((e,n)=>{t.metadata.append(n,e)}),t}e.metadata.forEach((e,t)=>n.set(t,e));continue}yield yield O(_(s))}if(`throwIfAborted`in i&&i.throwIfAborted(),!o)throw`missing EndStreamResponse`})}async function E(e){if(n.kind!=w.ServerStreaming)throw`The fetch API does not support streaming request bodies`;let t=await e[Symbol.asyncIterator]().next();if(t.done==1)throw`missing request message`;return x(0,m(t.value))}return o=o===void 0?s.defaultTimeoutMs:o<=0?void 0:o,await g({interceptors:s.interceptors,timeoutMs:o,signal:a,req:{stream:!0,service:e,method:n,url:i(s.baseUrl,e,n),init:{method:`POST`,credentials:s.credentials??`same-origin`,redirect:`error`,mode:`cors`},header:c(n.kind,l,o,u,!1),contextValues:p??h(),message:d},next:async e=>{let t=await(s.fetch??globalThis.fetch)(e.url,Object.assign(Object.assign({},e.init),{headers:e.header,signal:e.signal,body:await E(e.message)}));if(y(n.kind,l,t.status,t.headers),t.body===null)throw`missing response body`;let r=new Headers;return Object.assign(Object.assign({},e),{header:t.headers,trailer:r,message:v(t.body,r,t.headers,e.signal)})}})}}}var j=function(e){return this instanceof j?(this.v=e,this):new j(e)},M=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i={},s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof j?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};function N(e){D();let t=e.useBinaryFormat??!0;return{async unary(n,a,c,u,f,p,g){let{serialize:y,parse:w}=r(a,t,e.jsonOptions,e.binaryOptions);return u=u===void 0?e.defaultTimeoutMs:u<=0?void 0:u,await o({interceptors:e.interceptors,signal:c,timeoutMs:u,req:{stream:!1,service:n,method:a,url:i(e.baseUrl,n,a),init:{method:`POST`,credentials:e.credentials??`same-origin`,redirect:`error`,mode:`cors`},header:d(t,u,f,!1),contextValues:g??h(),message:p},next:async t=>{let r=await(e.fetch??globalThis.fetch)(t.url,Object.assign(Object.assign({},t.init),{headers:t.header,signal:t.signal,body:x(0,y(t.message))})),{headerError:i}=v(r.status,r.headers);if(!r.body)throw i===void 0?`missing response body`:i;let o=S(r.body).getReader(),c,u;for(;;){let e=await o.read();if(e.done)break;let{flags:t,data:n}=e.value;if((t&C)===C)throw new b(`protocol error: received unsupported compressed output`,T.Internal);if(t===s){if(c!==void 0)throw`extra trailer`;c=l(n);continue}if(u!==void 0)throw new b(`extra message`,T.Unimplemented);u=w(n)}if(c===void 0)throw i===void 0?new b(`missing trailer`,r.headers.has(_)?T.Unimplemented:T.Unknown):i;if(m(c,r.headers),u===void 0)throw new b(`missing message`,c.has(_)?T.Unimplemented:T.Unknown);return{stream:!1,service:n,method:a,header:r.headers,message:u,trailer:c}}})},async stream(n,a,o,c,u,f,p){let{serialize:_,parse:y}=r(a,t,e.jsonOptions,e.binaryOptions);function b(e,t,n,r,i){return M(this,arguments,function*(){let a=S(e).getReader();if(t){if(!(yield j(a.read())).done)throw`extra data for trailers-only`;return yield j(void 0)}let o=!1;for(;;){let e=yield j(a.read());if(e.done)break;let{flags:t,data:i}=e.value;if((t&s)===s){if(o)throw`extra trailer`;o=!0;let e=l(i);m(e,r),e.forEach((e,t)=>n.set(t,e));continue}if(o)throw`extra message`;yield yield j(y(i))}if(`throwIfAborted`in i&&i.throwIfAborted(),!o)throw`missing trailer`})}async function C(e){if(a.kind!=w.ServerStreaming)throw`The fetch API does not support streaming request bodies`;let t=await e[Symbol.asyncIterator]().next();if(t.done==1)throw`missing request message`;return x(0,_(t.value))}return c=c===void 0?e.defaultTimeoutMs:c<=0?void 0:c,g({interceptors:e.interceptors,signal:o,timeoutMs:c,req:{stream:!0,service:n,method:a,url:i(e.baseUrl,n,a),init:{method:`POST`,credentials:e.credentials??`same-origin`,redirect:`error`,mode:`cors`},header:d(t,c,u,!1),contextValues:p??h(),message:f},next:async t=>{let n=await(e.fetch??globalThis.fetch)(t.url,Object.assign(Object.assign({},t.init),{headers:t.header,signal:t.signal,body:await C(t.message)})),{foundStatus:r,headerError:i}=v(n.status,n.headers);if(i!=null)throw i;if(!n.body)throw`missing response body`;let a=new Headers;return Object.assign(Object.assign({},t),{header:n.headers,trailer:a,message:b(n.body,r,a,n.headers,t.signal)})}})}}}export{A as createConnectTransport,N as createGrpcWebTransport};
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import{o as e}from"./index.mjs";var t=class{constructor(t){this.module=t,this.DEBUG=!1,this.QTS_Throw=this.module.cwrap(`QTS_Throw`,`number`,[`number`,`number`]),this.QTS_NewError=this.module.cwrap(`QTS_NewError`,`number`,[`number`]),this.QTS_RuntimeSetMemoryLimit=this.module.cwrap(`QTS_RuntimeSetMemoryLimit`,null,[`number`,`number`]),this.QTS_RuntimeComputeMemoryUsage=this.module.cwrap(`QTS_RuntimeComputeMemoryUsage`,`number`,[`number`,`number`]),this.QTS_RuntimeDumpMemoryUsage=this.module.cwrap(`QTS_RuntimeDumpMemoryUsage`,`number`,[`number`]),this.QTS_RecoverableLeakCheck=this.module.cwrap(`QTS_RecoverableLeakCheck`,`number`,[]),this.QTS_BuildIsSanitizeLeak=this.module.cwrap(`QTS_BuildIsSanitizeLeak`,`number`,[]),this.QTS_RuntimeSetMaxStackSize=this.module.cwrap(`QTS_RuntimeSetMaxStackSize`,null,[`number`,`number`]),this.QTS_GetUndefined=this.module.cwrap(`QTS_GetUndefined`,`number`,[]),this.QTS_GetNull=this.module.cwrap(`QTS_GetNull`,`number`,[]),this.QTS_GetFalse=this.module.cwrap(`QTS_GetFalse`,`number`,[]),this.QTS_GetTrue=this.module.cwrap(`QTS_GetTrue`,`number`,[]),this.QTS_NewHostRef=this.module.cwrap(`QTS_NewHostRef`,`number`,[`number`,`number`]),this.QTS_GetHostRefId=this.module.cwrap(`QTS_GetHostRefId`,`number`,[`number`]),this.QTS_NewRuntime=this.module.cwrap(`QTS_NewRuntime`,`number`,[]),this.QTS_FreeRuntime=this.module.cwrap(`QTS_FreeRuntime`,null,[`number`]),this.QTS_NewContext=this.module.cwrap(`QTS_NewContext`,`number`,[`number`,`number`]),this.QTS_FreeContext=this.module.cwrap(`QTS_FreeContext`,null,[`number`]),this.QTS_FreeValuePointer=this.module.cwrap(`QTS_FreeValuePointer`,null,[`number`,`number`]),this.QTS_FreeValuePointerRuntime=this.module.cwrap(`QTS_FreeValuePointerRuntime`,null,[`number`,`number`]),this.QTS_FreeVoidPointer=this.module.cwrap(`QTS_FreeVoidPointer`,null,[`number`,`number`]),this.QTS_FreeCString=this.module.cwrap(`QTS_FreeCString`,null,[`number`,`number`]),this.QTS_DupValuePointer=this.module.cwrap(`QTS_DupValuePointer`,`number`,[`number`,`number`]),this.QTS_NewObject=this.module.cwrap(`QTS_NewObject`,`number`,[`number`]),this.QTS_NewObjectProto=this.module.cwrap(`QTS_NewObjectProto`,`number`,[`number`,`number`]),this.QTS_NewArray=this.module.cwrap(`QTS_NewArray`,`number`,[`number`]),this.QTS_NewArrayBuffer=this.module.cwrap(`QTS_NewArrayBuffer`,`number`,[`number`,`number`,`number`]),this.QTS_NewFloat64=this.module.cwrap(`QTS_NewFloat64`,`number`,[`number`,`number`]),this.QTS_GetFloat64=this.module.cwrap(`QTS_GetFloat64`,`number`,[`number`,`number`]),this.QTS_NewString=this.module.cwrap(`QTS_NewString`,`number`,[`number`,`number`]),this.QTS_GetString=this.module.cwrap(`QTS_GetString`,`number`,[`number`,`number`]),this.QTS_GetArrayBuffer=this.module.cwrap(`QTS_GetArrayBuffer`,`number`,[`number`,`number`]),this.QTS_GetArrayBufferLength=this.module.cwrap(`QTS_GetArrayBufferLength`,`number`,[`number`,`number`]),this.QTS_NewSymbol=this.module.cwrap(`QTS_NewSymbol`,`number`,[`number`,`number`,`number`]),this.QTS_GetSymbolDescriptionOrKey=e(this.module.cwrap(`QTS_GetSymbolDescriptionOrKey`,`number`,[`number`,`number`])),this.QTS_GetSymbolDescriptionOrKey_MaybeAsync=this.module.cwrap(`QTS_GetSymbolDescriptionOrKey`,`number`,[`number`,`number`]),this.QTS_IsGlobalSymbol=this.module.cwrap(`QTS_IsGlobalSymbol`,`number`,[`number`,`number`]),this.QTS_IsJobPending=this.module.cwrap(`QTS_IsJobPending`,`number`,[`number`]),this.QTS_ExecutePendingJob=e(this.module.cwrap(`QTS_ExecutePendingJob`,`number`,[`number`,`number`,`number`])),this.QTS_ExecutePendingJob_MaybeAsync=this.module.cwrap(`QTS_ExecutePendingJob`,`number`,[`number`,`number`,`number`]),this.QTS_GetProp=e(this.module.cwrap(`QTS_GetProp`,`number`,[`number`,`number`,`number`])),this.QTS_GetProp_MaybeAsync=this.module.cwrap(`QTS_GetProp`,`number`,[`number`,`number`,`number`]),this.QTS_GetPropNumber=e(this.module.cwrap(`QTS_GetPropNumber`,`number`,[`number`,`number`,`number`])),this.QTS_GetPropNumber_MaybeAsync=this.module.cwrap(`QTS_GetPropNumber`,`number`,[`number`,`number`,`number`]),this.QTS_SetProp=e(this.module.cwrap(`QTS_SetProp`,null,[`number`,`number`,`number`,`number`])),this.QTS_SetProp_MaybeAsync=this.module.cwrap(`QTS_SetProp`,null,[`number`,`number`,`number`,`number`]),this.QTS_DefineProp=this.module.cwrap(`QTS_DefineProp`,null,[`number`,`number`,`number`,`number`,`number`,`number`,`boolean`,`boolean`,`boolean`]),this.QTS_GetOwnPropertyNames=e(this.module.cwrap(`QTS_GetOwnPropertyNames`,`number`,[`number`,`number`,`number`,`number`,`number`])),this.QTS_GetOwnPropertyNames_MaybeAsync=this.module.cwrap(`QTS_GetOwnPropertyNames`,`number`,[`number`,`number`,`number`,`number`,`number`]),this.QTS_Call=e(this.module.cwrap(`QTS_Call`,`number`,[`number`,`number`,`number`,`number`,`number`])),this.QTS_Call_MaybeAsync=this.module.cwrap(`QTS_Call`,`number`,[`number`,`number`,`number`,`number`,`number`]),this.QTS_ResolveException=this.module.cwrap(`QTS_ResolveException`,`number`,[`number`,`number`]),this.QTS_Dump=e(this.module.cwrap(`QTS_Dump`,`number`,[`number`,`number`])),this.QTS_Dump_MaybeAsync=this.module.cwrap(`QTS_Dump`,`number`,[`number`,`number`]),this.QTS_Eval=e(this.module.cwrap(`QTS_Eval`,`number`,[`number`,`number`,`number`,`string`,`number`,`number`])),this.QTS_Eval_MaybeAsync=this.module.cwrap(`QTS_Eval`,`number`,[`number`,`number`,`number`,`string`,`number`,`number`]),this.QTS_GetModuleNamespace=this.module.cwrap(`QTS_GetModuleNamespace`,`number`,[`number`,`number`]),this.QTS_Typeof=this.module.cwrap(`QTS_Typeof`,`number`,[`number`,`number`]),this.QTS_GetLength=this.module.cwrap(`QTS_GetLength`,`number`,[`number`,`number`,`number`]),this.QTS_IsEqual=this.module.cwrap(`QTS_IsEqual`,`number`,[`number`,`number`,`number`,`number`]),this.QTS_GetGlobalObject=this.module.cwrap(`QTS_GetGlobalObject`,`number`,[`number`]),this.QTS_NewPromiseCapability=this.module.cwrap(`QTS_NewPromiseCapability`,`number`,[`number`,`number`]),this.QTS_PromiseState=this.module.cwrap(`QTS_PromiseState`,`number`,[`number`,`number`]),this.QTS_PromiseResult=this.module.cwrap(`QTS_PromiseResult`,`number`,[`number`,`number`]),this.QTS_TestStringArg=this.module.cwrap(`QTS_TestStringArg`,null,[`string`]),this.QTS_GetDebugLogEnabled=this.module.cwrap(`QTS_GetDebugLogEnabled`,`number`,[`number`]),this.QTS_SetDebugLogEnabled=this.module.cwrap(`QTS_SetDebugLogEnabled`,null,[`number`,`number`]),this.QTS_BuildIsDebug=this.module.cwrap(`QTS_BuildIsDebug`,`number`,[]),this.QTS_BuildIsAsyncify=this.module.cwrap(`QTS_BuildIsAsyncify`,`number`,[]),this.QTS_NewFunction=this.module.cwrap(`QTS_NewFunction`,`number`,[`number`,`string`,`number`,`boolean`,`number`]),this.QTS_ArgvGetJSValueConstPointer=this.module.cwrap(`QTS_ArgvGetJSValueConstPointer`,`number`,[`number`,`number`]),this.QTS_RuntimeEnableInterruptHandler=this.module.cwrap(`QTS_RuntimeEnableInterruptHandler`,null,[`number`]),this.QTS_RuntimeDisableInterruptHandler=this.module.cwrap(`QTS_RuntimeDisableInterruptHandler`,null,[`number`]),this.QTS_RuntimeEnableModuleLoader=this.module.cwrap(`QTS_RuntimeEnableModuleLoader`,null,[`number`,`number`]),this.QTS_RuntimeDisableModuleLoader=this.module.cwrap(`QTS_RuntimeDisableModuleLoader`,null,[`number`]),this.QTS_bjson_encode=this.module.cwrap(`QTS_bjson_encode`,`number`,[`number`,`number`]),this.QTS_bjson_decode=this.module.cwrap(`QTS_bjson_decode`,`number`,[`number`,`number`])}};export{t as QuickJSAsyncFFI};
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- var e=class{constructor(e){this.module=e,this.DEBUG=!1,this.QTS_Throw=this.module.cwrap(`QTS_Throw`,`number`,[`number`,`number`]),this.QTS_NewError=this.module.cwrap(`QTS_NewError`,`number`,[`number`]),this.QTS_RuntimeSetMemoryLimit=this.module.cwrap(`QTS_RuntimeSetMemoryLimit`,null,[`number`,`number`]),this.QTS_RuntimeComputeMemoryUsage=this.module.cwrap(`QTS_RuntimeComputeMemoryUsage`,`number`,[`number`,`number`]),this.QTS_RuntimeDumpMemoryUsage=this.module.cwrap(`QTS_RuntimeDumpMemoryUsage`,`number`,[`number`]),this.QTS_RecoverableLeakCheck=this.module.cwrap(`QTS_RecoverableLeakCheck`,`number`,[]),this.QTS_BuildIsSanitizeLeak=this.module.cwrap(`QTS_BuildIsSanitizeLeak`,`number`,[]),this.QTS_RuntimeSetMaxStackSize=this.module.cwrap(`QTS_RuntimeSetMaxStackSize`,null,[`number`,`number`]),this.QTS_GetUndefined=this.module.cwrap(`QTS_GetUndefined`,`number`,[]),this.QTS_GetNull=this.module.cwrap(`QTS_GetNull`,`number`,[]),this.QTS_GetFalse=this.module.cwrap(`QTS_GetFalse`,`number`,[]),this.QTS_GetTrue=this.module.cwrap(`QTS_GetTrue`,`number`,[]),this.QTS_NewHostRef=this.module.cwrap(`QTS_NewHostRef`,`number`,[`number`,`number`]),this.QTS_GetHostRefId=this.module.cwrap(`QTS_GetHostRefId`,`number`,[`number`]),this.QTS_NewRuntime=this.module.cwrap(`QTS_NewRuntime`,`number`,[]),this.QTS_FreeRuntime=this.module.cwrap(`QTS_FreeRuntime`,null,[`number`]),this.QTS_NewContext=this.module.cwrap(`QTS_NewContext`,`number`,[`number`,`number`]),this.QTS_FreeContext=this.module.cwrap(`QTS_FreeContext`,null,[`number`]),this.QTS_FreeValuePointer=this.module.cwrap(`QTS_FreeValuePointer`,null,[`number`,`number`]),this.QTS_FreeValuePointerRuntime=this.module.cwrap(`QTS_FreeValuePointerRuntime`,null,[`number`,`number`]),this.QTS_FreeVoidPointer=this.module.cwrap(`QTS_FreeVoidPointer`,null,[`number`,`number`]),this.QTS_FreeCString=this.module.cwrap(`QTS_FreeCString`,null,[`number`,`number`]),this.QTS_DupValuePointer=this.module.cwrap(`QTS_DupValuePointer`,`number`,[`number`,`number`]),this.QTS_NewObject=this.module.cwrap(`QTS_NewObject`,`number`,[`number`]),this.QTS_NewObjectProto=this.module.cwrap(`QTS_NewObjectProto`,`number`,[`number`,`number`]),this.QTS_NewArray=this.module.cwrap(`QTS_NewArray`,`number`,[`number`]),this.QTS_NewArrayBuffer=this.module.cwrap(`QTS_NewArrayBuffer`,`number`,[`number`,`number`,`number`]),this.QTS_NewFloat64=this.module.cwrap(`QTS_NewFloat64`,`number`,[`number`,`number`]),this.QTS_GetFloat64=this.module.cwrap(`QTS_GetFloat64`,`number`,[`number`,`number`]),this.QTS_NewString=this.module.cwrap(`QTS_NewString`,`number`,[`number`,`number`]),this.QTS_GetString=this.module.cwrap(`QTS_GetString`,`number`,[`number`,`number`]),this.QTS_GetArrayBuffer=this.module.cwrap(`QTS_GetArrayBuffer`,`number`,[`number`,`number`]),this.QTS_GetArrayBufferLength=this.module.cwrap(`QTS_GetArrayBufferLength`,`number`,[`number`,`number`]),this.QTS_NewSymbol=this.module.cwrap(`QTS_NewSymbol`,`number`,[`number`,`number`,`number`]),this.QTS_GetSymbolDescriptionOrKey=this.module.cwrap(`QTS_GetSymbolDescriptionOrKey`,`number`,[`number`,`number`]),this.QTS_IsGlobalSymbol=this.module.cwrap(`QTS_IsGlobalSymbol`,`number`,[`number`,`number`]),this.QTS_IsJobPending=this.module.cwrap(`QTS_IsJobPending`,`number`,[`number`]),this.QTS_ExecutePendingJob=this.module.cwrap(`QTS_ExecutePendingJob`,`number`,[`number`,`number`,`number`]),this.QTS_GetProp=this.module.cwrap(`QTS_GetProp`,`number`,[`number`,`number`,`number`]),this.QTS_GetPropNumber=this.module.cwrap(`QTS_GetPropNumber`,`number`,[`number`,`number`,`number`]),this.QTS_SetProp=this.module.cwrap(`QTS_SetProp`,null,[`number`,`number`,`number`,`number`]),this.QTS_DefineProp=this.module.cwrap(`QTS_DefineProp`,null,[`number`,`number`,`number`,`number`,`number`,`number`,`boolean`,`boolean`,`boolean`]),this.QTS_GetOwnPropertyNames=this.module.cwrap(`QTS_GetOwnPropertyNames`,`number`,[`number`,`number`,`number`,`number`,`number`]),this.QTS_Call=this.module.cwrap(`QTS_Call`,`number`,[`number`,`number`,`number`,`number`,`number`]),this.QTS_ResolveException=this.module.cwrap(`QTS_ResolveException`,`number`,[`number`,`number`]),this.QTS_Dump=this.module.cwrap(`QTS_Dump`,`number`,[`number`,`number`]),this.QTS_Eval=this.module.cwrap(`QTS_Eval`,`number`,[`number`,`number`,`number`,`string`,`number`,`number`]),this.QTS_GetModuleNamespace=this.module.cwrap(`QTS_GetModuleNamespace`,`number`,[`number`,`number`]),this.QTS_Typeof=this.module.cwrap(`QTS_Typeof`,`number`,[`number`,`number`]),this.QTS_GetLength=this.module.cwrap(`QTS_GetLength`,`number`,[`number`,`number`,`number`]),this.QTS_IsEqual=this.module.cwrap(`QTS_IsEqual`,`number`,[`number`,`number`,`number`,`number`]),this.QTS_GetGlobalObject=this.module.cwrap(`QTS_GetGlobalObject`,`number`,[`number`]),this.QTS_NewPromiseCapability=this.module.cwrap(`QTS_NewPromiseCapability`,`number`,[`number`,`number`]),this.QTS_PromiseState=this.module.cwrap(`QTS_PromiseState`,`number`,[`number`,`number`]),this.QTS_PromiseResult=this.module.cwrap(`QTS_PromiseResult`,`number`,[`number`,`number`]),this.QTS_TestStringArg=this.module.cwrap(`QTS_TestStringArg`,null,[`string`]),this.QTS_GetDebugLogEnabled=this.module.cwrap(`QTS_GetDebugLogEnabled`,`number`,[`number`]),this.QTS_SetDebugLogEnabled=this.module.cwrap(`QTS_SetDebugLogEnabled`,null,[`number`,`number`]),this.QTS_BuildIsDebug=this.module.cwrap(`QTS_BuildIsDebug`,`number`,[]),this.QTS_BuildIsAsyncify=this.module.cwrap(`QTS_BuildIsAsyncify`,`number`,[]),this.QTS_NewFunction=this.module.cwrap(`QTS_NewFunction`,`number`,[`number`,`string`,`number`,`boolean`,`number`]),this.QTS_ArgvGetJSValueConstPointer=this.module.cwrap(`QTS_ArgvGetJSValueConstPointer`,`number`,[`number`,`number`]),this.QTS_RuntimeEnableInterruptHandler=this.module.cwrap(`QTS_RuntimeEnableInterruptHandler`,null,[`number`]),this.QTS_RuntimeDisableInterruptHandler=this.module.cwrap(`QTS_RuntimeDisableInterruptHandler`,null,[`number`]),this.QTS_RuntimeEnableModuleLoader=this.module.cwrap(`QTS_RuntimeEnableModuleLoader`,null,[`number`,`number`]),this.QTS_RuntimeDisableModuleLoader=this.module.cwrap(`QTS_RuntimeDisableModuleLoader`,null,[`number`]),this.QTS_bjson_encode=this.module.cwrap(`QTS_bjson_encode`,`number`,[`number`,`number`]),this.QTS_bjson_decode=this.module.cwrap(`QTS_bjson_decode`,`number`,[`number`,`number`])}};export{e as QuickJSFFI};
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import{D as e,E as t,T as n,_ as r,b as i,d as a,f as o,g as s,h as c,j as l,l as u,m as d,p as f,u as p,v as m,x as h,y as g}from"./index.mjs";l.add(e),l.add(t),l.add(g),l.add(n),l.add(m),l.add(r),l.add(s),l.add(u),l.add(p),l.add(f),l.add(a),l.add(o),l.add(d),l.add(c),l.add(i),l.add(h);export{};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import{$ as e,K as t,at as n,et as r,it as i,nt as a,ot as o,q as s,st as c,tt as l}from"./index.mjs";var u=class e extends c{constructor(e){super(),this.typeUrl=``,this.value=new Uint8Array,n.util.initPartial(e,this)}toJson(e){if(this.typeUrl===``)return{};let t=this.typeUrlToName(this.typeUrl),n=(e?.typeRegistry)?.findMessage(t);if(!n)throw Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let r=n.fromBinary(this.value).toJson(e);return(t.startsWith(`google.protobuf.`)||r===null||Array.isArray(r)||typeof r!=`object`)&&(r={value:r}),r[`@type`]=this.typeUrl,r}fromJson(e,t){if(e===null||Array.isArray(e)||typeof e!=`object`)throw Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${e===null?`null`:Array.isArray(e)?`array`:typeof e}`);if(Object.keys(e).length==0)return this;let n=e[`@type`];if(typeof n!=`string`||n==``)throw Error(`cannot decode message google.protobuf.Any from JSON: "@type" is empty`);let r=this.typeUrlToName(n),i=(t?.typeRegistry)?.findMessage(r);if(!i)throw Error(`cannot decode message google.protobuf.Any from JSON: ${n} is not in the type registry`);let a;if(r.startsWith(`google.protobuf.`)&&Object.prototype.hasOwnProperty.call(e,`value`))a=i.fromJson(e.value,t);else{let n=Object.assign({},e);delete n[`@type`],a=i.fromJson(n,t)}return this.packFrom(a),this}packFrom(e){this.value=e.toBinary(),this.typeUrl=this.typeNameToUrl(e.getType().typeName)}unpackTo(e){return this.is(e.getType())?(e.fromBinary(this.value),!0):!1}unpack(e){if(this.typeUrl===``)return;let t=e.findMessage(this.typeUrlToName(this.typeUrl));if(t)return t.fromBinary(this.value)}is(e){if(this.typeUrl===``)return!1;let t=this.typeUrlToName(this.typeUrl),n=``;return n=typeof e==`string`?e:e.typeName,t===n}typeNameToUrl(e){return`type.googleapis.com/${e}`}typeUrlToName(e){if(!e.length)throw Error(`invalid type url: ${e}`);let t=e.lastIndexOf(`/`),n=t>=0?e.substring(t+1):e;if(!n.length)throw Error(`invalid type url: ${e}`);return n}static pack(t){let n=new e;return n.packFrom(t),n}static fromBinary(t,n){return new e().fromBinary(t,n)}static fromJson(t,n){return new e().fromJson(t,n)}static fromJsonString(t,n){return new e().fromJsonString(t,n)}static equals(t,r){return n.util.equals(e,t,r)}};u.runtime=n,u.typeName=`google.protobuf.Any`,u.fields=n.util.newFieldList(()=>[{no:1,name:`type_url`,kind:`scalar`,T:9},{no:2,name:`value`,kind:`scalar`,T:12}]);function ee(e){let t;return t=typeof e==`object`&&`getType`in e?e.toBinary():typeof e==`string`?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),o.enc(t).replace(/=+$/,``)}function te(t,n,r){try{let e=o.dec(t);return n?n.fromBinary(e,r):e}catch(t){throw e.from(t,a.DataLoss)}}function d(...e){let t=new Headers;for(let n of e)n.forEach((e,n)=>{t.append(n,e)});return t}function f(...e){let t=new AbortController,n=e.filter(e=>e!==void 0).concat(t.signal);for(let e of n){if(e.aborted){r.apply(e);break}e.addEventListener(`abort`,r)}function r(){t.signal.aborted||t.abort(m(this));for(let e of n)e.removeEventListener(`abort`,r)}return t}function p(t){let n=new AbortController,r=()=>{n.abort(new e(`the operation timed out`,a.DeadlineExceeded))},i;return t!==void 0&&(t<=0?r():i=setTimeout(r,t)),{signal:n.signal,cleanup:()=>clearTimeout(i)}}function m(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;let t=Error(`This operation was aborted`);return t.name=`AbortError`,t}function ne(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}const re=128;function h(e){let t=new Headers,n=new TextDecoder().decode(e).split(`\r
3
- `);for(let e of n){if(e===``)continue;let n=e.indexOf(`:`);if(n>0){let r=e.substring(0,n).trim(),i=e.substring(n+1).trim();t.append(r,i)}}return t}function ie(e){let t=[];return e.forEach((e,n)=>{t.push(`${n}: ${e}\r\n`)}),new TextEncoder().encode(t.join(``))}function ae(){return{serialize:ie,parse:h}}const g=`Content-Type`,_=`Grpc-Encoding`,v=`Grpc-Accept-Encoding`,y=`Grpc-Timeout`,b=`Grpc-Status`,x=`Grpc-Message`,S=`Grpc-Status-Details-Bin`,C=`User-Agent`,w=`X-User-Agent`,oe=/^application\/grpc-web(-text)?(?:\+(?:(json)(?:; ?charset=utf-?8)?|proto))?$/i,T=`application/grpc-web+proto`,E=`application/grpc-web+json`;function se(e){let t=e?.match(oe);if(t)return{text:!!t[1],binary:!t[2]}}var D=class e extends c{constructor(e){super(),this.code=0,this.message=``,this.details=[],n.util.initPartial(e,this)}static fromBinary(t,n){return new e().fromBinary(t,n)}static fromJson(t,n){return new e().fromJson(t,n)}static fromJsonString(t,n){return new e().fromJsonString(t,n)}static equals(t,r){return n.util.equals(e,t,r)}};D.runtime=n,D.typeName=`google.rpc.Status`,D.fields=n.util.newFieldList(()=>[{no:1,name:`code`,kind:`scalar`,T:5},{no:2,name:`message`,kind:`scalar`,T:9},{no:3,name:`details`,kind:`message`,T:u,repeated:!0}]);const ce=`0`;function le(e,t){if(t){if(e.set(b,t.code.toString(10)),e.set(x,encodeURIComponent(t.rawMessage)),t.details.length>0){let n=new D({code:t.code,message:t.rawMessage,details:t.details.map(e=>`getType`in e?u.pack(e):new u({typeUrl:`type.googleapis.com/${e.type}`,value:e.value}))});e.set(S,ee(n))}}else e.set(b,`0`);return e}function O(t){let n=t.get(S);if(n!=null){let r=te(n,D);if(r.code==0)return;let i=new e(r.message,r.code,t);return i.details=r.details.map(e=>({type:e.typeUrl.substring(e.typeUrl.lastIndexOf(`/`)+1),value:e.value})),i}let r=t.get(b);if(r!=null){if(r===`0`)return;let n=parseInt(r,10);return n in a?new e(decodeURIComponent(t.get(x)??``),n,t):new e(`invalid grpc-status: ${r}`,a.Internal,t)}}function ue(e,t,n){let r=typeof t==`string`?t:t.typeName,i=typeof n==`string`?n:n.name;return e.toString().replace(/\/?$/,`/${r}/${i}`)}function k(e,t){return t instanceof e?t:new e(t)}function A(e,t){function n(t){return t.done===!0?t:{done:t.done,value:k(e,t.value)}}return{[Symbol.asyncIterator](){let e=t[Symbol.asyncIterator](),r={next:()=>e.next().then(n)};return e.throw!==void 0&&(r.throw=t=>e.throw(t).then(n)),e.return!==void 0&&(r.return=t=>e.return(t).then(n)),r}}}function j(e,t){return t?.concat().reverse().reduce((e,t)=>t(e),e)??e}function M(e){let t=Object.assign({},e);return t.ignoreUnknownFields??=!0,t}function de(e,t,n,r){let i=N(P(e.I,t),r),a=N(F(e.I,n),r),o=N(P(e.O,t),r),s=N(F(e.O,n),r);return{getI(e){return e?i:a},getO(e){return e?o:s}}}function fe(e,t,n,r){let i=t?P(e.I,r):F(e.I,n);return{parse:(t?P(e.O,r):F(e.O,n)).parse,serialize:i.serialize}}function N(e,n){return{serialize(t){let r=e.serialize(t);return s(n.writeMaxBytes,r.byteLength),r},parse(r){return t(n.readMaxBytes,r.byteLength,!0),e.parse(r)}}}function P(t,n){return{parse(r){try{return t.fromBinary(r,n)}catch(t){throw new e(`parse binary: ${t instanceof Error?t.message:String(t)}`,a.Internal)}},serialize(t){try{return t.toBinary(n)}catch(t){throw new e(`serialize binary: ${t instanceof Error?t.message:String(t)}`,a.Internal)}}}}function F(t,n){let r=n?.textEncoder??new TextEncoder,i=n?.textDecoder??new TextDecoder,o=M(n);return{parse(n){try{let e=i.decode(n);return t.fromJsonString(e,o)}catch(t){throw e.from(t,a.InvalidArgument)}},serialize(t){try{let e=t.toJsonString(o);return r.encode(e)}catch(t){throw e.from(t,a.Internal)}}}}const pe=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i,me=/^application\/(?:json(?:; ?charset=utf-?8)?|proto)$/i,he=/^application\/connect\+?(?:json(?:; ?charset=utf-?8)?|proto)$/i,I=`application/proto`,L=`application/json`,R=`application/connect+proto`,z=`application/connect+json`;function B(e){let t=e?.match(pe);if(t)return{stream:!!t[1],binary:!!t[3]}}function ge(e){switch(e){case`proto`:return{stream:!1,binary:!0};case`json`:return{stream:!1,binary:!1};default:return}}var _e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function V(t,n,i){if(n&&new Headers(n).forEach((e,t)=>i.metadata.append(t,e)),typeof t!=`object`||!t||Array.isArray(t))throw i;let a=i.code;`code`in t&&typeof t.code==`string`&&(a=r(t.code)??a);let s=t.message;if(s!=null&&typeof s!=`string`)throw i;let c=new e(s??``,a,n);if(`details`in t&&Array.isArray(t.details))for(let e of t.details){if(typeof e!=`object`||!e||Array.isArray(e)||typeof e.type!=`string`||typeof e.value!=`string`)throw i;try{c.details.push({type:e.type,value:o.dec(e.value),debug:e.debug})}catch{throw i}}return c}function ve(e,t,n){let r;try{r=JSON.parse(new TextDecoder().decode(e))}catch{throw n}return V(r,t,n)}function H(e,t){let n={code:l(e.code)};return e.rawMessage.length>0&&(n.message=e.rawMessage),e.details.length>0&&(n.details=e.details.map(e=>{if(`getType`in e){let n={type:e.getType().typeName,value:e.toBinary()};try{n.debug=e.toJson(t)}catch{}return n}return e}).map(e=>{var{value:t}=e,n=_e(e,[`value`]);return Object.assign(Object.assign({},n),{value:o.enc(t).replace(/=+$/,``)})})),n}function ye(t,n){let r=new TextEncoder;try{let e=H(t,n),i=JSON.stringify(e);return r.encode(i)}catch(t){throw new e(`failed to serialize Connect Error: ${t instanceof Error?t.message:String(t)}`,a.Internal)}}const be=2;function U(t){let n=new e(`invalid end stream`,a.Unknown),r;try{r=JSON.parse(typeof t==`string`?t:new TextDecoder().decode(t))}catch{throw n}if(typeof r!=`object`||!r||Array.isArray(r))throw n;let i=new Headers;if(`metadata`in r){if(typeof r.metadata!=`object`||r.metadata==null||Array.isArray(r.metadata))throw n;for(let[e,t]of Object.entries(r.metadata)){if(!Array.isArray(t)||t.some(e=>typeof e!=`string`))throw n;for(let n of t)i.append(e,n)}}return{metadata:i,error:`error`in r&&r.error!=null?V(r.error,i,n):void 0}}function xe(e,t,n){let r={};t!==void 0&&(r.error=H(t,n),e=d(e,t.metadata));let i=!1,a={};return e.forEach((e,t)=>{i=!0,a[t]=[e]}),i&&(r.metadata=a),r}function Se(t){let n=new TextEncoder;return{serialize(r){try{let e=xe(r.metadata,r.error,t),i=JSON.stringify(e);return n.encode(i)}catch(t){throw new e(`failed to serialize EndStreamResponse: ${t instanceof Error?t.message:String(t)}`,a.Internal)}},parse(t){try{return U(t)}catch(t){throw new e(`failed to parse EndStreamResponse: ${t instanceof Error?t.message:String(t)}`,a.InvalidArgument)}}}}const W=`Content-Type`,G=`Content-Length`,K=`Content-Encoding`,q=`Connect-Content-Encoding`,J=`Accept-Encoding`,Y=`Connect-Accept-Encoding`,X=`Connect-Timeout-Ms`,Z=`Connect-Protocol-Version`,Q=`User-Agent`;function Ce(e){switch(e){case 400:return a.Internal;case 401:return a.Unauthenticated;case 403:return a.PermissionDenied;case 404:return a.Unimplemented;case 429:return a.Unavailable;case 502:return a.Unavailable;case 503:return a.Unavailable;case 504:return a.Unavailable;default:return a.Unknown}}function we(e){switch(e){case a.Canceled:return 499;case a.Unknown:return 500;case a.InvalidArgument:return 400;case a.DeadlineExceeded:return 504;case a.NotFound:return 404;case a.AlreadyExists:return 409;case a.PermissionDenied:return 403;case a.ResourceExhausted:return 429;case a.FailedPrecondition:return 400;case a.Aborted:return 409;case a.OutOfRange:return 400;case a.Unimplemented:return 501;case a.Internal:return 500;case a.Unavailable:return 503;case a.DataLoss:return 500;case a.Unauthenticated:return 401;default:return 500}}const $=`connect`,Te=`encoding`,Ee=`compression`,De=`base64`,Oe=`message`;function ke(e){let t=new Headers,n=new Headers;return e.forEach((e,r)=>{r.toLowerCase().startsWith(`trailer-`)?n.append(r.substring(8),e):t.append(r,e)}),[t,n]}function Ae(e,t){let n=new Headers(e);return t.forEach((e,t)=>{n.append(`trailer-${t}`,e)}),n}function je(t){let n=t.get(Z);if(n===null)throw new e(`missing required header: set ${Z} to "1"`,a.InvalidArgument);if(n!==`1`)throw new e(`${Z} must be "1": got "${n}"`,a.InvalidArgument)}function Me(t){let n=t.get($);if(n===null)throw new e(`missing required parameter: set ${$} to "v1"`,a.InvalidArgument);if(n!==`v1`)throw new e(`${$} must be "v1": got "${n}"`,a.InvalidArgument)}function Ne(e,t,n,r,a){let o=new Headers(r??{});return n!==void 0&&o.set(X,`${n}`),o.set(W,e==i.Unary?t?I:L:t?R:z),o.set(Z,`1`),a&&!o.has(Q)&&o.set(Q,`connect-es/1.7.0`),o}function Pe(e,t,n,r,a,o,s){let c=Ne(e,t,n,r,s);if(o!=null){let t=e==i.Unary?K:q;c.set(t,o.name)}if(a.length>0){let t=e==i.Unary?J:Y;c.set(t,a.map(e=>e.name).join(`,`))}return c}function Fe(t,n,r,o){let s=o.get(W),c=B(s);if(r!==200){let n=new e(`HTTP ${r}`,Ce(r),o);if(t==i.Unary&&c&&!c.binary)return{isUnaryError:!0,unaryError:n};throw n}let l={binary:n,stream:t!==i.Unary};if(c?.binary!==l.binary||c.stream!==l.stream)throw new e(`unsupported content type ${s}`,c===void 0?a.Unknown:a.Internal,o);return{isUnaryError:!1}}function Ie(t,n,r,o,s){let c,l=s.get(t==i.Unary?K:q);if(l!=null&&l.toLowerCase()!==`identity`&&(c=n.find(e=>e.name===l),!c))throw new e(`unsupported response encoding "${l}"`,a.Internal,s);return Object.assign({compression:c},Fe(t,r,o,s))}function Le(e,t){return t?o.enc(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``):encodeURIComponent(new TextDecoder().decode(e))}function Re(e,t,n){let r=`?connect=v1`,i=e.header.get(W);i?.indexOf(`application/`)===0&&(r+=`&encoding=`+encodeURIComponent(i.slice(12)));let a=e.header.get(K);a!==null&&a!==`identity`&&(r+=`&compression=`+encodeURIComponent(a),n=!0),n&&(r+=`&base64=1`),r+=`&message=`+Le(t,n);let o=e.url+r,s=new Headers(e.header);return[Z,W,G,K,J].forEach(e=>s.delete(e)),Object.assign(Object.assign({},e),{init:Object.assign(Object.assign({},e.init),{method:`GET`}),url:o,header:s})}function ze(e){let t=j(e.next,e.interceptors),[n,r,i]=Ve(e);return t(Object.assign(Object.assign({},e.req),{message:k(e.req.method.I,e.req.message),signal:n})).then(e=>(i(),e),r)}function Be(e){let t=j(e.next,e.interceptors),[n,r,i]=Ve(e),a=Object.assign(Object.assign({},e.req),{message:A(e.req.method.I,e.req.message),signal:n}),o=!1;return n.addEventListener(`abort`,function(){var t,n;let r=e.req.message[Symbol.asyncIterator]();o||(t=r.throw)==null||t.call(r,this.reason).catch(()=>{}),(n=r.return)==null||n.call(r).catch(()=>{})}),t(a).then(e=>Object.assign(Object.assign({},e),{message:{[Symbol.asyncIterator](){let t=e.message[Symbol.asyncIterator]();return{next(){return t.next().then(e=>(e.done==1&&(o=!0,i()),e),r)}}}}}),r)}function Ve(t){let{signal:n,cleanup:r}=p(t.timeoutMs),i=f(t.signal,n);return[i.signal,function(t){let a=e.from(n.aborted?m(n):t);return i.abort(a),r(),Promise.reject(a)},function(){r(),i.abort()}]}function He(t,n){let r=O(t);if(r)throw n.forEach((e,t)=>{r.metadata.append(t,e)}),r;if(!n.has(b)&&!t.has(b))throw new e(`protocol error: missing status`,a.Internal)}function Ue(e,t,n,r){let i=new Headers(n??{});i.set(g,e?T:E),i.set(`X-Grpc-Web`,`1`);let a=i.get(C)??i.get(w)??`connect-es/1.7.0`;return i.set(w,a),r&&i.set(C,a),t!==void 0&&i.set(y,`${t}m`),i}function We(e,t,n,r,i,a){let o=Ue(e,t,n,a);return i!=null&&o.set(_,i.name),r.length>0&&o.set(v,r.map(e=>e.name).join(`,`)),o}function Ge(e){switch(e){case 400:return a.Internal;case 401:return a.Unauthenticated;case 403:return a.PermissionDenied;case 404:return a.Unimplemented;case 429:return a.Unavailable;case 502:return a.Unavailable;case 503:return a.Unavailable;case 504:return a.Unavailable;default:return a.Unknown}}function Ke(t,n){if(t>=200&&t<300)return{foundStatus:n.has(b),headerError:O(n)};throw new e(decodeURIComponent(n.get(x)??`HTTP ${t}`),Ge(t),n)}function qe(t,n,r){let{foundStatus:i,headerError:o}=Ke(n,r),s,c=r.get(_);if(c!==null&&c.toLowerCase()!==`identity`&&(s=t.find(e=>e.name===c),!s))throw new e(`unsupported response encoding "${c}"`,a.Internal,r);return{foundStatus:i,compression:s,headerError:o}}export{le as $,Se as A,I as B,W as C,J as D,X as E,ye as F,de as G,B as H,z as I,k as J,M as K,R as L,U as M,V as N,G as O,ve as P,ce as Q,he as R,we as S,q as T,ge as U,me as V,fe as W,ue as X,A as Y,O as Z,Ae as _,d as _t,We as a,g as at,Te as b,ze as c,y as ct,Ie as d,re as dt,E as et,Ne as f,h as ft,ke as g,m as gt,Me as h,f as ht,Ue as i,v as it,be as j,K as k,Re as l,C as lt,je as m,p as mt,qe as n,oe as nt,He as o,_ as ot,Pe as p,ne as pt,j as q,Ge as r,se as rt,Be as s,b as st,Ke as t,T as tt,Fe as u,ae as ut,De as v,Y as w,Oe as x,Ee as y,L as z};
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import"./index.mjs";import"./init-B5EVeDge.mjs";export{};
File without changes