@aventurevc/aventure-cli 0.8.361 → 0.8.362

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 (102) hide show
  1. package/dist/aventure-cli/index.js +1 -1
  2. package/dist/aventure-cli/unified-operations.json +1 -1
  3. package/dist/chunks/{allowance-type-DBLLduSR.js → allowance-type-BVr12WiL.js} +1 -1
  4. package/dist/chunks/{api-key-bearer-credential-BfVMDmpO.js → api-key-bearer-credential-BYDkWAC6.js} +1 -1
  5. package/dist/chunks/{api-key-bearer-credential-54DE5Jqj.js → api-key-bearer-credential-Dl6PWeoS.js} +1 -1
  6. package/dist/chunks/{api-key-credential-D0XR5jZK.js → api-key-credential-CSLdhpHF.js} +1 -1
  7. package/dist/chunks/{api-key-credential-dy6pu7RL.js → api-key-credential-Di6V4b2G.js} +1 -1
  8. package/dist/chunks/{api-key-credential-verification-Bq1jMn3e.js → api-key-credential-verification-ChvEQdO1.js} +1 -1
  9. package/dist/chunks/{api-key-credential-verification-DpkM9xk8.js → api-key-credential-verification-DNTyxajG.js} +1 -1
  10. package/dist/chunks/{api-key-login-D5GS-LOr.js → api-key-login-B_4nhryt.js} +1 -1
  11. package/dist/chunks/{auth-BNDyLTqp-GYAzJXBe.js → auth-BNDyLTqp-z6VNZXaE.js} +1 -1
  12. package/dist/chunks/{auth-resolver-BCWzvCE4.js → auth-resolver--sxtbJdO.js} +1 -1
  13. package/dist/chunks/auth-resolver-CoALK1Zi.js +1 -0
  14. package/dist/chunks/{auth-status-check-DEQlYHqM.js → auth-status-check-BsDWnU6a.js} +1 -1
  15. package/dist/chunks/{auth-status-check-B1VGND-w.js → auth-status-check-DNjlUuAl.js} +1 -1
  16. package/dist/chunks/{auth-status-render-1iBKOAR2.js → auth-status-render-Bqlx8xT0.js} +1 -1
  17. package/dist/chunks/{aventure-cli-CXZfaKFj.js → aventure-cli-Cv9q_DTG.js} +5 -5
  18. package/dist/chunks/{batch-io-Ma571xGK.js → batch-io-hh6QxqTP.js} +1 -1
  19. package/dist/chunks/{builtin-auth-De9i2qJd.js → builtin-auth-B6oWs22n.js} +4 -4
  20. package/dist/chunks/{builtin-run-wait-DbZthhA8.js → builtin-run-wait-CRWABPIq.js} +1 -1
  21. package/dist/chunks/{builtin-update-D6mBsYnV.js → builtin-update-BTnLOzx1.js} +1 -1
  22. package/dist/chunks/{cli-help-policy-z_NzDfVs.js → cli-help-policy-B2iBhuKp.js} +1 -1
  23. package/dist/chunks/client-C-w059lW.js +1 -0
  24. package/dist/chunks/{completion-D448ibtp.js → completion-D2xd4FtJ.js} +1 -1
  25. package/dist/chunks/confidence-CjeYTBnf.js +1 -0
  26. package/dist/chunks/{contract-D_MGwQwG.js → contract-Cp9CsVvr.js} +1 -1
  27. package/dist/chunks/{contract-parameter-BKnu8Wz_.js → contract-parameter-GJPGb0i7.js} +1 -1
  28. package/dist/chunks/{credential-redaction-BpaNjjm9.js → credential-redaction-CZTqltuD.js} +1 -1
  29. package/dist/chunks/{credential-store-D0YIGs_c.js → credential-store-CHhhFiyx.js} +1 -1
  30. package/dist/chunks/detail-B4Hh_a_Q.js +1 -0
  31. package/dist/chunks/{detail-vCTpb4Ja.js → detail-MOFWzD1E.js} +1 -1
  32. package/dist/chunks/dist-DGMIRNW7.js +1 -0
  33. package/dist/chunks/{dist-DL7QmxmX.js → dist-Dt0qAmdj.js} +1 -1
  34. package/dist/chunks/dist-oUS6BQ43.js +1 -0
  35. package/dist/chunks/{env-NNOxjaEI.js → env-Dz7VHbix.js} +1 -1
  36. package/dist/chunks/{generated-option-order-D6W-PSuI.js → generated-option-order-D0Bceao5.js} +1 -1
  37. package/dist/chunks/help-catalog-BxKgve76.js +2 -0
  38. package/dist/chunks/{help-intent-DntVwSe0.js → help-intent-BsMjUTm7.js} +1 -1
  39. package/dist/chunks/internal-oUS6BQ43.js +1 -0
  40. package/dist/chunks/iso-DzqMxtky.js +56 -0
  41. package/dist/chunks/{logging-CpQQJUNl.js → logging-BBbHQDjM.js} +1 -1
  42. package/dist/chunks/{logging-BcbZVQxq.js → logging-RSFS14_8.js} +1 -1
  43. package/dist/chunks/{logout-BbTfFtf-.js → logout-Bqh2nXwH.js} +1 -1
  44. package/dist/chunks/logout-CpRhP-VX.js +1 -0
  45. package/dist/chunks/mcp-generation-contract-ChRJsBKY.js +1 -0
  46. package/dist/chunks/{mcp-generation-contract-Cn-UdNrL.js → mcp-generation-contract-CtPJKtpb.js} +1 -1
  47. package/dist/chunks/oauth-bearer-credential-Bk_FTuET.js +1 -0
  48. package/dist/chunks/{oauth-bearer-credential-COLNUoER.js → oauth-bearer-credential-D0oJeKSP.js} +1 -1
  49. package/dist/chunks/{oauth-credential-DEQJ2kVM.js → oauth-credential-CIKuSTeV.js} +1 -1
  50. package/dist/chunks/{oauth-credential-CixAZZ6C.js → oauth-credential-YdFBPNrH.js} +1 -1
  51. package/dist/chunks/{oauth-login-xA37taTL.js → oauth-login-Cp0bfpfn.js} +1 -1
  52. package/dist/chunks/{oauth-login-BJoqHILK.js → oauth-login-S_sZELbU.js} +1 -1
  53. package/dist/chunks/openapi-call-C9C0vy-j.js +102 -0
  54. package/dist/chunks/{openapi-call-Ck0YiwPf.js → openapi-call-CLFSwjb3.js} +1 -1
  55. package/dist/chunks/{openapi-commands-CBa0rL_i.js → openapi-commands-BG3R7B8L.js} +1 -1
  56. package/dist/chunks/openapi-commands-DpjlDL4W.js +1 -0
  57. package/dist/chunks/openapi-snapshot.json +1 -1
  58. package/dist/chunks/{operations-a8s7F6vA.js → operations-BvKQjBqd.js} +2 -2
  59. package/dist/chunks/operations-catalog-CVHhRyzv.js +1 -0
  60. package/dist/chunks/{operations-catalog-BMbNX3qy.js → operations-catalog-DuaNuWL8.js} +1 -1
  61. package/dist/chunks/{operations-metadata-DvCaDlPb.js → operations-metadata-DEK3grN8.js} +1 -1
  62. package/dist/chunks/{output-B9nIRUsu.js → output-DFgF3LwI.js} +1 -1
  63. package/dist/chunks/{output-CKM2jtEY.js → output-Dn--psbq.js} +1 -1
  64. package/dist/chunks/{output-mode-Hy9GQWXU.js → output-mode-D8XR9zgg.js} +1 -1
  65. package/dist/chunks/output-mode-Mc6nJLgH.js +1 -0
  66. package/dist/chunks/{output-spill-CaXh7SlW.js → output-spill-DfZwiqZb.js} +1 -1
  67. package/dist/chunks/{parse-error-hint-Do__X9lj.js → parse-error-hint-Y5ZY7egH.js} +1 -1
  68. package/dist/chunks/{payload-operand-guard-CnUZHVF6.js → payload-operand-guard-DkrmjdDL.js} +1 -1
  69. package/dist/chunks/person-owner-BW4xz8uH.js +1 -0
  70. package/dist/chunks/provider-catalog-CT1LnhCO.js +1 -0
  71. package/dist/chunks/{request-replay-BIRzi7OE.js → request-replay-8F0-y_38.js} +1 -1
  72. package/dist/chunks/{request-replay-QkZ758vV.js → request-replay-CmCiVqKr.js} +1 -1
  73. package/dist/chunks/response-problem-B6WvvOTG.js +1 -0
  74. package/dist/chunks/{response-problem-D9Jixfj8.js → response-problem-CBQvPxQc.js} +1 -1
  75. package/dist/chunks/{result-envelope-CiOoDKaK.js → result-envelope-B8wB63dd.js} +1 -1
  76. package/dist/chunks/{run-DPMPxtCR.js → run-BaWFP48s.js} +1 -1
  77. package/dist/chunks/{run-detail-BJskCjKr.js → run-detail-Dada_KYG.js} +1 -1
  78. package/dist/chunks/{startup-auth-BishBRk7.js → startup-auth-CUe2ZuEz.js} +1 -1
  79. package/dist/chunks/{startup-auth-5eY6n7KR.js → startup-auth-DjYJ43sC.js} +1 -1
  80. package/dist/chunks/{system-build-z_cn0X5C.js → system-build-DFy8edPI.js} +1 -1
  81. package/dist/chunks/{text-response-D7VgXPAt.js → text-response-DG_Zr_ly.js} +2 -2
  82. package/dist/chunks/{tool-policy-Dht5crb8.js → tool-policy-DyZpOAQx.js} +1 -1
  83. package/package.json +3 -3
  84. package/dist/chunks/auth-resolver-Cd2V9KIU.js +0 -1
  85. package/dist/chunks/client-BwCSrdti.js +0 -1
  86. package/dist/chunks/confidence-DmTRnwhU.js +0 -1
  87. package/dist/chunks/detail-dPPrepmO.js +0 -1
  88. package/dist/chunks/dist-DaW7WEqw.js +0 -1
  89. package/dist/chunks/dist-tIPA3BCL.js +0 -1
  90. package/dist/chunks/help-catalog-CqyT8GYQ.js +0 -2
  91. package/dist/chunks/internal-DaW7WEqw.js +0 -1
  92. package/dist/chunks/iso-l1vOidnb.js +0 -56
  93. package/dist/chunks/logout-DO-zEkwK.js +0 -1
  94. package/dist/chunks/mcp-generation-contract-BR2EMRJv.js +0 -1
  95. package/dist/chunks/oauth-bearer-credential-B3se79Pn.js +0 -1
  96. package/dist/chunks/openapi-call-DFcI7xZD.js +0 -96
  97. package/dist/chunks/openapi-commands-CtCQxSFj.js +0 -1
  98. package/dist/chunks/operations-catalog-VfAtFSQG.js +0 -1
  99. package/dist/chunks/output-mode-2fLW7tf2.js +0 -1
  100. package/dist/chunks/person-owner-BRGa5Dee.js +0 -1
  101. package/dist/chunks/provider-catalog-k5VPfOoO.js +0 -1
  102. package/dist/chunks/response-problem-DeThD3Rc.js +0 -1
@@ -1 +1 @@
1
- import{n as e}from"./commander-DEj7N1b9.js";import{c as t}from"./tool-policy-Dht5crb8.js";import{a as n,i as r}from"./cli-help-policy-z_NzDfVs.js";import{n as i,t as a}from"./contract-parameter-BKnu8Wz_.js";function o(e){return e.toSorted((e,t)=>e.projection.cliPath.length-t.projection.cliPath.length||e.projection.cliPath.join(` `).localeCompare(t.projection.cliPath.join(` `))||e.operationId.localeCompare(t.operationId)).map(e=>{let{security:t,parameter:n,projection:r,response:a,...o}=e,s=n.flatMap(t=>{if(t.in!==`path`&&t.in!==`query`&&t.in!==`header`)return[];let n=t.in;return(t.in===`query`&&t.itemProperty!==void 0?t.itemProperty:[t]).map(t=>{let r=d(t,i(e,t),n);if(t.legacyName===void 0)return r;let a=d(t,i(e,t,t.legacyName),n).flag;return a===r.flag?r:Object.assign(r,{legacyFlag:a})})}),u=e.requestBody?.map(t=>{let n=l(e,s,t),r=c(t.cliConflicts,n),i=r.length===0?{}:{cliConflicts:r};return Object.assign({},t,{parameter:n},i)}),f=a.find(({status:e})=>e.startsWith(`2`)),p=f?.schemaName?.replace(/Schema$/,``);return Object.assign(o,{cliPath:r.cliPath,binaryResponse:e.binaryResponse?!0:void 0,explain:e.explain?!0:void 0,deprecated:e.deprecated?!0:void 0,requestBody:u,scope:r.scope,auth:r.auth,visibility:r.visibility,mutates:r.mutates,selfCredential:r.selfCredential,successResponse:p,detailField:f?.detailField,header:f?.header,parameters:s})})}function s(e,t){let[n,r]=e.filter(e=>e.role===t);if(n===void 0||r!==void 0)throw Error(`Generated composite CLI role '${t}' is incomplete`);return n}function c(e,t){let n=new Map(t.map(({name:e,optionKey:t})=>[e,t]));return(e??[]).map(e=>e.map(e=>{let t=n.get(e);if(t===void 0)throw Error(`x-aventure-cli-conflicts field '${e}' was removed from the generated CLI projection`);return t}))}function l(e,t,n){let r=new Set(t.map(e=>e.optionKey));(e.requestBody?.length??0)>1&&r.add(`contentType`);let i=new Set(t.filter(e=>e.location===`path`).map(e=>e.name));return n.parameter.toSorted((e,t)=>u(e.name)-u(t.name)).flatMap(t=>{if(!t.required&&(r.has(t.inputName)||i.has(t.name)))return[];let n=a(e,t,r);return r.add(n),[d(t,n,`body`)]})}function u(e){let t=e.split(`.`).at(-1);return t===`min`?0:t===`max`?1:2}function d(i,a,o){let s=i.itemSchemaEnum??i.schemaEnum,c=n(i.schemaType,i.itemSchemaType,i.schemaFormat,a),l=`${t(a)} ${i.schemaType===`boolean`?`[${c}]`:`<${c}>`}`;return{name:i.name,optionKey:new e(l).attributeName(),flag:l,required:i.required&&i.schemaDefault===void 0,description:r(i.description,s),schemaType:i.schemaType,schemaFormat:i.schemaFormat,itemSchemaType:i.itemSchemaType,defaultValue:f(i.schemaDefault),choices:s,...i.envName===void 0?{}:{envName:i.envName},...i.visibility&&{visibility:i.visibility},location:o}}var f=e=>Array.isArray(e)?e.map(String):typeof e==`number`?String(e):e;export{s as n,o as t};
1
+ import{n as e}from"./commander-DEj7N1b9.js";import{c as t}from"./tool-policy-DyZpOAQx.js";import{a as n,i as r}from"./cli-help-policy-B2iBhuKp.js";import{n as i,t as a}from"./contract-parameter-GJPGb0i7.js";function o(e){return e.toSorted((e,t)=>e.projection.cliPath.length-t.projection.cliPath.length||e.projection.cliPath.join(` `).localeCompare(t.projection.cliPath.join(` `))||e.operationId.localeCompare(t.operationId)).map(e=>{let{security:t,parameter:n,projection:r,response:a,...o}=e,s=n.flatMap(t=>{if(t.in!==`path`&&t.in!==`query`&&t.in!==`header`)return[];let n=t.in;return(t.in===`query`&&t.itemProperty!==void 0?t.itemProperty:[t]).map(t=>{let r=d(t,i(e,t),n);if(t.legacyName===void 0)return r;let a=d(t,i(e,t,t.legacyName),n).flag;return a===r.flag?r:Object.assign(r,{legacyFlag:a})})}),u=e.requestBody?.map(t=>{let n=l(e,s,t),r=c(t.cliConflicts,n),i=r.length===0?{}:{cliConflicts:r};return Object.assign({},t,{parameter:n},i)}),f=a.find(({status:e})=>e.startsWith(`2`)),p=f?.schemaName?.replace(/Schema$/,``);return Object.assign(o,{cliPath:r.cliPath,binaryResponse:e.binaryResponse?!0:void 0,explain:e.explain?!0:void 0,deprecated:e.deprecated?!0:void 0,requestBody:u,scope:r.scope,auth:r.auth,visibility:r.visibility,mutates:r.mutates,selfCredential:r.selfCredential,successResponse:p,detailField:f?.detailField,header:f?.header,parameters:s})})}function s(e,t){let[n,r]=e.filter(e=>e.role===t);if(n===void 0||r!==void 0)throw Error(`Generated composite CLI role '${t}' is incomplete`);return n}function c(e,t){let n=new Map(t.map(({name:e,optionKey:t})=>[e,t]));return(e??[]).map(e=>e.map(e=>{let t=n.get(e);if(t===void 0)throw Error(`x-aventure-cli-conflicts field '${e}' was removed from the generated CLI projection`);return t}))}function l(e,t,n){let r=new Set(t.map(e=>e.optionKey));(e.requestBody?.length??0)>1&&r.add(`contentType`);let i=new Set(t.filter(e=>e.location===`path`).map(e=>e.name));return n.parameter.toSorted((e,t)=>u(e.name)-u(t.name)).flatMap(t=>{if(!t.required&&(r.has(t.inputName)||i.has(t.name)))return[];let n=a(e,t,r);return r.add(n),[d(t,n,`body`)]})}function u(e){let t=e.split(`.`).at(-1);return t===`min`?0:t===`max`?1:2}function d(i,a,o){let s=i.itemSchemaEnum??i.schemaEnum,c=n(i.schemaType,i.itemSchemaType,i.schemaFormat,a),l=`${t(a)} ${i.schemaType===`boolean`?`[${c}]`:`<${c}>`}`;return{name:i.name,optionKey:new e(l).attributeName(),flag:l,required:i.required&&i.schemaDefault===void 0,description:r(i.description,s),schemaType:i.schemaType,schemaFormat:i.schemaFormat,itemSchemaType:i.itemSchemaType,defaultValue:f(i.schemaDefault),choices:s,...i.envName===void 0?{}:{envName:i.envName},...i.visibility&&{visibility:i.visibility},location:o}}var f=e=>Array.isArray(e)?e.map(String):typeof e==`number`?String(e):e;export{s as n,o as t};
@@ -1 +1 @@
1
- import"./tool-policy-Dht5crb8.js";function e(e,t,n=t.inputName){if(t.in===`body`)return n;let r=f.find(t=>n===t.name&&e.path.includes(t.path));return r===void 0?d(c(n!==`id`&&n!==`slug`?n:`${i(e.path)}${s(n)}`),t):r.inputName}function t(e,t,r=o(e)){return n(a(e,t),new Set(r))}function n(e,t){if(!t.has(e))return e;let n=`body${s(e)}`,r=n;for(let e=2;t.has(r);e+=1)r=`${n}${e}`;return r}function r(e,t,n){return`${e}[${t}].${n}`}function i(e){return p.find(([,t])=>t.test(e))?.[0]??`record`}function a(e,t){if(t.name===`id`&&e.path===`/v1/app/url-slug-redirects`)return`recordId`;let n=l(t);return d(e.intent===`search`&&(t.name.startsWith(`filter.`)||t.name.startsWith(`search.`))?c(n.replace(/^(?:filter|search)/u,``).replace(/^./u,e=>e.toLowerCase())):n,t)}function o(t){return new Set(t.parameter.filter(e=>e.in===`path`||e.in===`query`||e.in===`header`).map(n=>e(t,n)))}function s(e){return e.replace(/^./u,e=>e.toUpperCase())}function c(e){return e.replace(/^addressAddress/u,`address`).replace(/^arrayFilterAmountInvestedRange/u,`fundraiseAmountInvestedRange`).replace(/^arrayFilterAmountRaisedRange/u,`fundraiseAmountRaisedRange`).replace(/^arrayFilterEntityName$/u,`entityName`).replace(/^arrayFilterInvestedCompany$/u,`fundraiseInvestedCompanyName`).replace(/^arrayFilterPersonTitle$/u,`personTitle`).replace(/^arrayFilterRound$/u,`fundraiseRound`).replace(/^arrayFilterTotalInvestmentCount/u,`totalInvestmentCount`).replace(/^arrayFilterTypeRecord$/u,`typeRecord`).replace(/^createEntity/u,`entity`).replace(/^createUrlLink/u,`urlLink`).replace(/^fundraiseActivity/u,`fundraise`).replace(/FundraiseActivity/gu,`Fundraise`).replace(/^logoOption/u,`logo`).replace(/LogoOption/gu,`Logo`).replace(/^researchDetailTypeResearchDetail$/u,`researchDetailType`).replace(/^researchDetailValueResearchDetail$/u,`researchDetailValue`).replace(/^textText$/u,`text`).replace(/^textTextName$/u,`textName`).replace(/^textTextType$/u,`textType`)}function l(e){let t=c(e.inputName);return/(?:^|\.)nameAlias\[\]\./u.test(e.name)?t.replace(/^entityNameAlias/u,`alias`):/(?:^|\.)urlLink\[\]\./u.test(e.name)?u(t):/(?:^|\.)manualLogo\./u.test(e.name)?t.replace(/^manualLogo/u,`logo`):t}function u(e){return e===`urlLinkUrl`?`url`:e===`urlLinkUrlType`?`urlType`:e.replace(/^urlLink/u,`url`)}function d(e,t){return e===`text`?/(?:^|\.)text(?:\[\])?\.text$/u.test(t.name)?`textBody`:`inputText`:e}var f=[{name:`detailId`,path:`/research-details/{detailId}`,inputName:`researchDetailId`},{name:`version`,path:`/instructions/`,inputName:`instructionVersion`},{name:`detailId`,path:`/financial/valuation/{detailId}`,inputName:`valuationDetailId`},{name:`joinId`,path:`/fundraise-investor-joins`,inputName:`fundraiseInvestorJoinId`}],p=[[`entity`,/^\/v1\/entities(?:$|\/detail|\/lookup|\/summary|\/duplicate-check)/u],[`person`,/^\/v1\/people(?:\/detail|\/lookup|\/duplicate-check|\/\{slug\})/u],[`news`,/^\/v1\/(?:news\/|jobs\/news\/)/u],[`screenshot`,/^\/v1\/media\/screenshots\//u],[`media`,/^\/v1\/media/u],[`article`,/^\/v1\/app\/blog\/articles/u],[`page`,/^\/v1\/app\/pages/u],[`contact`,/^\/v1\/contacts\//u],[`provenance`,/^\/v1\/provenance\//u],[`location`,/^\/v1\/addresses\/locations\//u]];export{e as n,r,t};
1
+ import"./tool-policy-DyZpOAQx.js";function e(e,t,n=t.inputName){if(t.in===`body`)return n;let r=f.find(t=>n===t.name&&e.path.includes(t.path));return r===void 0?d(c(n!==`id`&&n!==`slug`?n:`${i(e.path)}${s(n)}`),t):r.inputName}function t(e,t,r=o(e)){return n(a(e,t),new Set(r))}function n(e,t){if(!t.has(e))return e;let n=`body${s(e)}`,r=n;for(let e=2;t.has(r);e+=1)r=`${n}${e}`;return r}function r(e,t,n){return`${e}[${t}].${n}`}function i(e){return p.find(([,t])=>t.test(e))?.[0]??`record`}function a(e,t){if(t.name===`id`&&e.path===`/v1/app/url-slug-redirects`)return`recordId`;let n=l(t);return d(e.intent===`search`&&(t.name.startsWith(`filter.`)||t.name.startsWith(`search.`))?c(n.replace(/^(?:filter|search)/u,``).replace(/^./u,e=>e.toLowerCase())):n,t)}function o(t){return new Set(t.parameter.filter(e=>e.in===`path`||e.in===`query`||e.in===`header`).map(n=>e(t,n)))}function s(e){return e.replace(/^./u,e=>e.toUpperCase())}function c(e){return e.replace(/^addressAddress/u,`address`).replace(/^arrayFilterAmountInvestedRange/u,`fundraiseAmountInvestedRange`).replace(/^arrayFilterAmountRaisedRange/u,`fundraiseAmountRaisedRange`).replace(/^arrayFilterEntityName$/u,`entityName`).replace(/^arrayFilterInvestedCompany$/u,`fundraiseInvestedCompanyName`).replace(/^arrayFilterPersonTitle$/u,`personTitle`).replace(/^arrayFilterRound$/u,`fundraiseRound`).replace(/^arrayFilterTotalInvestmentCount/u,`totalInvestmentCount`).replace(/^arrayFilterTypeRecord$/u,`typeRecord`).replace(/^createEntity/u,`entity`).replace(/^createUrlLink/u,`urlLink`).replace(/^fundraiseActivity/u,`fundraise`).replace(/FundraiseActivity/gu,`Fundraise`).replace(/^logoOption/u,`logo`).replace(/LogoOption/gu,`Logo`).replace(/^researchDetailTypeResearchDetail$/u,`researchDetailType`).replace(/^researchDetailValueResearchDetail$/u,`researchDetailValue`).replace(/^textText$/u,`text`).replace(/^textTextName$/u,`textName`).replace(/^textTextType$/u,`textType`)}function l(e){let t=c(e.inputName);return/(?:^|\.)nameAlias\[\]\./u.test(e.name)?t.replace(/^entityNameAlias/u,`alias`):/(?:^|\.)urlLink\[\]\./u.test(e.name)?u(t):/(?:^|\.)manualLogo\./u.test(e.name)?t.replace(/^manualLogo/u,`logo`):t}function u(e){return e===`urlLinkUrl`?`url`:e===`urlLinkUrlType`?`urlType`:e.replace(/^urlLink/u,`url`)}function d(e,t){return e===`text`?/(?:^|\.)text(?:\[\])?\.text$/u.test(t.name)?`textBody`:`inputText`:e}var f=[{name:`detailId`,path:`/research-details/{detailId}`,inputName:`researchDetailId`},{name:`version`,path:`/instructions/`,inputName:`instructionVersion`},{name:`detailId`,path:`/financial/valuation/{detailId}`,inputName:`valuationDetailId`},{name:`joinId`,path:`/fundraise-investor-joins`,inputName:`fundraiseInvestorJoinId`}],p=[[`entity`,/^\/v1\/entities(?:$|\/detail|\/lookup|\/summary|\/duplicate-check)/u],[`person`,/^\/v1\/people(?:\/detail|\/lookup|\/duplicate-check|\/\{slug\})/u],[`news`,/^\/v1\/(?:news\/|jobs\/news\/)/u],[`screenshot`,/^\/v1\/media\/screenshots\//u],[`media`,/^\/v1\/media/u],[`article`,/^\/v1\/app\/blog\/articles/u],[`page`,/^\/v1\/app\/pages/u],[`contact`,/^\/v1\/contacts\//u],[`provenance`,/^\/v1\/provenance\//u],[`location`,/^\/v1\/addresses\/locations\//u]];export{e as n,r,t};
@@ -1 +1 @@
1
- import{i as e}from"./response-problem-D9Jixfj8.js";function t(t,n=[]){let r=t instanceof Error?t.message:String(t);return e(r,n)}function n(t,n=[]){let r=e(t.title,n),i=e(t.detail?.trim()??``,n);return`${t.status} ${r}${i?` — ${i}`:``}`}export{n,t};
1
+ import{i as e}from"./response-problem-CBQvPxQc.js";function t(t,n=[]){let r=t instanceof Error?t.message:String(t);return e(r,n)}function n(t,n=[]){let r=e(t.title,n),i=e(t.detail?.trim()??``,n);return`${t.status} ${r}${i?` — ${i}`:``}`}export{n,t};
@@ -1,3 +1,3 @@
1
- import{a as e}from"./package-DEeHDoOT.js";import{n as t,t as n}from"./auth-resolver-BCWzvCE4.js";import{o as r}from"./logging-BcbZVQxq.js";import{i}from"./api-target-vxev2RKl.js";import{t as a}from"./credential-redaction-BpaNjjm9.js";import{execFile as o}from"node:child_process";import{dirname as s,join as c}from"node:path";import{stderr as l}from"node:process";import{platform as u}from"node:os";import{chmod as d,mkdir as f,readFile as p,rename as m,rm as h,stat as g,writeFile as _}from"node:fs/promises";import{AsyncLocalStorage as v}from"node:async_hooks";import{setTimeout as y}from"node:timers/promises";import{randomUUID as b}from"node:crypto";var x=2;function S(e,t,n){let r=e.state===`opened`;return!r&&!l.isTTY?!1:(l.write([r?`Browser approval opened for this request.`:`Browser not opened automatically (${e.reason}).`,...l.isTTY?[`Open this one-time approval URL in your browser:`,t.verificationUrl]:[`Approval reference: ${n}`],`Comparison code: ${t.comparisonCode}`,`Confirm that the browser shows the same code before approving.`,``].join(`
1
+ import{a as e}from"./package-DEeHDoOT.js";import{n as t,t as n}from"./auth-resolver--sxtbJdO.js";import{o as r}from"./logging-RSFS14_8.js";import{i}from"./api-target-vxev2RKl.js";import{t as a}from"./credential-redaction-CZTqltuD.js";import{execFile as o}from"node:child_process";import{dirname as s,join as c}from"node:path";import{stderr as l}from"node:process";import{platform as u}from"node:os";import{chmod as d,mkdir as f,readFile as p,rename as m,rm as h,stat as g,writeFile as _}from"node:fs/promises";import{AsyncLocalStorage as v}from"node:async_hooks";import{setTimeout as y}from"node:timers/promises";import{randomUUID as b}from"node:crypto";var x=2;function S(e,t,n){let r=e.state===`opened`;return!r&&!l.isTTY?!1:(l.write([r?`Browser approval opened for this request.`:`Browser not opened automatically (${e.reason}).`,...l.isTTY?[`Open this one-time approval URL in your browser:`,t.verificationUrl]:[`Approval reference: ${n}`],`Comparison code: ${t.comparisonCode}`,`Confirm that the browser shows the same code before approving.`,``].join(`
2
2
  `)),!0)}function C(e,t){return E(e,t).redactedUrl}async function w(e,t,n){let r=E(e,t);return await T(new URL(r.openerUrl),n)}async function T(e,t){let n=t.environment??process.env,r=t.operatingSystem??u(),i=D(t.noBrowser,n,r);if(i!==null)return{state:`skipped`,reason:i};let a=O(r,e.toString());if(a===null)return{state:`failed`,reason:`unsupported browser-opening platform: ${r}`};try{return await k(a.command,a.arguments),{state:`opened`,reason:null}}catch{return{state:`failed`,reason:`browser opener failed`}}}function E(e,t){let{id:n,verificationUrl:r,pollSecret:a}=e,o,s;try{o=new URL(r),s=new URL(t)}catch{throw Error(`broker returned an invalid browser verification URL`)}if(s.username.length>0||s.password.length>0||s.pathname!==`/`||s.search.length>0||s.hash.length>0)throw Error(`configured browser origin must contain only an origin`);let c=i(s.hostname);if(s.protocol!==`https:`&&!(s.protocol===`http:`&&c))throw Error(`configured browser origin must use HTTPS except for loopback development`);let l=new URLSearchParams(o.hash.slice(1)),u=[...l.keys()],d=l.getAll(`cliAuthorizationId`),f=l.getAll(`browserSecret`),p=f[0]??``;if(o.origin!==s.origin||o.protocol!==s.protocol||o.username.length>0||o.password.length>0||o.pathname!==`/settings/developer`||o.search.length>0||u.length!==x||d.length!==1||d[0]!==n||f.length!==1||p.length===0||a.length===0||p===a)throw Error(`broker returned a browser verification URL outside the configured first-party approval flow`);let m;try{m=decodeURIComponent(r)}catch{throw Error(`broker returned a browser verification URL outside the configured first-party approval flow`)}if(r.includes(a)||m.includes(a))throw Error(`broker returned a browser verification URL outside the configured first-party approval flow`);let h=new URL(o);return h.hash=new URLSearchParams({cliAuthorizationId:n,browserSecret:`<redacted>`}).toString(),{openerUrl:r,redactedUrl:h.toString()}}function D(e,t,n){return e?`--no-browser was set`:n===`darwin`&&t.CODEX_SESSION_ID?`macOS Codex browser process boundary`:t.SSH_CONNECTION||t.SSH_CLIENT||t.SSH_TTY?`SSH/headless session detected`:(n===`linux`||n===`freebsd`)&&!t.DISPLAY&&!t.WAYLAND_DISPLAY?`no graphical display detected`:null}function O(e,t){return e===`darwin`?{command:`open`,arguments:[t]}:e===`win32`?{command:`rundll32.exe`,arguments:[`url.dll,FileProtocolHandler`,t]}:e===`linux`||e===`freebsd`?{command:`xdg-open`,arguments:[t]}:null}function k(e,t){return new Promise((n,r)=>{o(e,[...t],{timeout:5e3,windowsHide:!0},e=>e?r(e):n())})}var A=100,j=3e4,M=6e4,N=new v;function P(){return c(s(n()),`credentials.json`)}function F(){let e=u();return e===`linux`||e===`freebsd`?D(!1,process.env,e):null}function I(e){let t=`${P()} (mode 0600)`;if(e!==void 0)return`OS keyring is unusable (${e}); the credential will be stored in ${t}.\n`;let n=F();return n===null?null:`${n}: the credential will be stored in ${t}; no OS keyring is needed.\n`}async function L(e,t){let n=(await G())[e]?.[t];if(n!==void 0)return{record:{provider:`file`,value:n}};if(F()!==null)return{};try{let n=await(await W(e,t)).getPassword()??void 0;return n===void 0?{}:{record:{provider:`keyring`,value:n}}}catch(e){return{keyringFailure:U(e)}}}async function R(e,t,n){if((await G())[e]?.[t]!==void 0)return await z(e,t,n,`file store holds this account`);let r=F();if(r!==null)return await z(e,t,n,`not used (${r})`);let i;try{let r=await W(e,t);if(await r.setPassword(n),await r.getPassword()===n)return await J(e,t,void 0),`keyring`;i=`Error: keyring readback did not match`}catch(e){i=U(e,[n])}return await z(e,t,n,i)}async function z(e,t,n,r){if(await J(e,t,n),(await G())[e]?.[t]!==n)throw Error(`credential storage did not confirm a durable write (keyring: ${r}; file: readback did not match)`);return`file`}async function B(e,t){if(F()!==null)await J(e,t,void 0);else try{let n=await W(e,t),r;try{await n.deleteCredential()}catch(e){r=e}let i;try{i=await n.getPassword()??void 0}catch(e){throw Error(`OS keyring removal outcome is unknown (${U(r??e)})`,{cause:e})}if(i!==void 0)throw Error(`OS keyring did not confirm removal (${U(r)})`,r===void 0?void 0:{cause:r})}finally{await J(e,t,void 0)}}async function V(e,t){let n=`${t}:probe:${b()}`,r=`aventure-cli-credential-probe:${b()}`,i=F();if(i!==null)return await H(e,n,r,`not used (${i})`),{provider:`file`};let a;try{let t=await W(e,n);await t.setPassword(r);let i=await(await W(e,n)).getPassword(),o=await t.deleteCredential(),s=await(await W(e,n)).getPassword()??void 0;if(i!==r)a=`Error: probe readback did not match`;else if(!o||s!==void 0)a=`Error: probe cleanup was not confirmed`;else return{provider:`keyring`}}catch(e){a=U(e,[r])}return await H(e,n,r,a),{provider:`file`,keyringFailure:a}}async function H(e,t,n,r){try{await q(async()=>{await J(e,t,n);let r=(await G())[e]?.[t];if(await J(e,t,void 0),r!==n)throw Error(`probe readback did not match`)})}catch(e){throw Error(`credential storage is unavailable (keyring: ${r}; file ${P()}: ${U(e,[n])})`,{cause:e})}}function U(e,t=[]){if(!(e instanceof Error))return`Error`;let n=e.name||`Error`,[r=``]=a(e,t).trim().split(`
3
3
  `,1);return r&&r!==n?`${n}: ${r}`:n}async function W(e,t){let{AsyncEntry:n}=await import(`@napi-rs/keyring`);return new n(e,t)}async function G(){let e=P(),n;try{n=await p(e,`utf8`)}catch(e){if(t(e,`ENOENT`))return{};throw e}let r;try{r=JSON.parse(n)}catch(t){return await K(e,t)}return X(r)?r:await K(e,void 0)}async function K(n,i){let a=`${n}.corrupt-${new Date().toISOString().replace(/[:.]/gu,`-`)}`;try{await m(n,a)}catch(e){if(t(e,`ENOENT`))return{};throw Error(`${n} is not a valid credential file and could not be moved aside`,{cause:e})}return r({component:e().bin[0],event:`credential_file_quarantined`,message:`${n} is not a valid credential file; moved it to ${a} and continuing with an empty file store`,...i===void 0?{}:{error:i}}),{}}async function q(e){if(N.getStore()===!0)return await e();let n=`${P()}.lock`;await f(s(n),{recursive:!0,mode:448});let r=Date.now()+j,i=b();for(;;){try{await _(n,i,{flag:`wx`,mode:384});break}catch(e){if(!t(e,`EEXIST`))throw e}if(await g(n).then(e=>Date.now()-e.mtimeMs,()=>0)>M)await h(n,{force:!0});else if(Date.now()>r)throw Error(`credential store is locked by another CLI process (${n})`);else await y(A)}try{return await N.run(!0,e)}finally{await p(n,`utf8`).catch(()=>``)===i&&await h(n,{force:!0})}}async function J(e,t,n){await q(async()=>await Y(e,t,n))}async function Y(e,t,n){let r=P(),i=await G(),a={...i[e]};if(n===void 0?delete a[t]:a[t]=n,Object.keys(a).length===0?delete i[e]:i[e]=a,Object.keys(i).length===0){await h(r,{force:!0});return}await f(s(r),{recursive:!0,mode:448});let o=`${r}.${b()}.tmp`;await _(o,`${JSON.stringify(i,null,2)}\n`,{mode:384}),await d(o,384),await m(o,r)}function X(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.values(e).every(e=>typeof e==`string`))}export{q as a,w as c,L as i,S as l,I as n,R as o,V as r,T as s,B as t,C as u};
@@ -0,0 +1 @@
1
+ export{t as EntityDetailSchema}from"./detail-MOFWzD1E.js";
@@ -1 +1 @@
1
- import{C as e,E as t,S as n,_ as r,c as i,d as a,f as ee,g as o,i as s,n as c,p as l,s as u,t as d}from"./iso-l1vOidnb.js";import{t as f}from"./person-owner-BRGa5Dee.js";import{a as p,i as te,o as ne,r as m,t as re}from"./run-DPMPxtCR.js";import{n as h}from"./allowance-type-DBLLduSR.js";import{t as ie}from"./confidence-DmTRnwhU.js";var ae=s([`domicile`,`dominant`,`origin`]),oe=r({endDate:d().nullish(),id:a(),isCurrent:i(),role:ae.nullish(),startDate:d().nullish()}),se=r({id:a().nullish(),name:n()}),ce=r({countryCodeChar2:n().nullish(),countryCodeChar3:n().nullish(),id:a().nullish(),name:n(),unRegion:n().nullish(),unSubregion:n().nullish()}),le=r({id:a().nullish(),name:n(),stateAbbrev:n().nullish()}),g=r({address:a().nullish(),addressLine1:n().nullish(),addressLine2:n().nullish(),association:u(oe).optional(),city:se.nullish(),country:ce.nullish(),countryAbbrev:n().nullish(),createdAt:c({offset:!0}).nullish(),fullAddress:n().nullish(),id:a().nullish(),isCurrent:i().nullish(),isHq:i().nullish(),isPrimary:i().nullish(),latitude:o().nullish(),longitude:o().nullish(),postalCode:n().nullish(),state:le.nullish(),stateAbbrev:n().nullish(),street:n().nullish(),updatedAt:c({offset:!0}).nullish()}),ue=s([`editorial`,`standardized`]),de=Object.assign(e([ue,n()]),{enum:ue.enum}),fe=r({isCurrent:i().nullish(),isPrimary:i().nullish(),name:n().max(255),registry:de}),_=ee(fe,r({bucket:n().nullish(),classificationId:a().nullish(),createdAt:c({offset:!0}).nullish(),id:a(),isCurrent:i().nullish(),isPrimary:i().nullish(),name:n().max(255),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),type:n(),updatedAt:c({offset:!0}).nullish()})),pe=r({category:n(),classificationId:a().nullish(),code:a().nullish(),codeText:n().max(255).nullish(),createdAt:c({offset:!0}).nullish(),edition:n().max(128).nullish(),id:a(),isCurrent:i().nullish(),isPrimary:i().nullish(),level:a().nullish(),name:n().max(255),registry:de,updatedAt:c({offset:!0}).nullish()}),me=r({geoLocationExposure:u(_).default([]).optional(),industry:u(_).default([]).optional(),mainProduct:u(_).default([]).optional(),standardizedClassification:u(pe).default([]).optional(),tag:u(_).default([]).optional(),typeCustomer:u(_).default([]).optional(),typeModel:u(_).default([]).optional(),typeOwnership:u(_).default([]).optional(),typeRevenue:u(_).default([]).optional(),typeTechnologyUsed:u(_).default([]).optional()}),he=s([`fundraiseRound`,`researchDetail`]),ge=s([`preMoney`,`postMoney`,`reported`]),_e=r({amount:n().regex(/^-?[0-9]+(\.[0-9]+)?$/),asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),basis:ge.nullish(),currency:n().nullish(),postMoneyUsd:n().regex(/^-?[0-9]+(\.[0-9]+)?$/).nullish(),referenceValue:n().nullish(),source:he,sourceRef:n()}),ve=s([`UNKNOWN`,`NOT_APPLICABLE`,`RECORDED`]),ye=s(`Angel.Pre-Seed.Seed.Series A.Series B.Series C.Series D.Series E.Series F.Series G.Series H.Series I.Series J.Series K.Series L.Series M.Series N.Series O.Series P.Series Q.Series R.Series S.Series T.Series U.Series V.Series W.Series X.Series Y.Series Z.Late Stage Private.Investment Firm.Fund.Nonprofit.Government.Public.Acquired.Acquired Subsidiary.Bankrupt`.split(`.`)),be=Object.assign(e([ye,n()]),{enum:ye.enum}),v=r({applicability:ve.nullish(),currency:n().nullish(),currentValuation:_e.nullish(),disclosedStage:n().nullish(),disclosedStageTransactionId:t().nullish(),fundingRoundCount:a(),investorCount:a(),latestValuation:o().nullish(),mostRecentAmount:o().nullish(),mostRecentDate:d().nullish(),stage:be.nullish(),totalRaised:o(),totalRaisedAmountRoundCount:a().nullish(),totalRaisedRoundCount:a().nullish(),totalRaisedUsd:o().nullish(),totalRaisedUsdRoundCount:a().nullish(),unconvertedRoundCount:a()}),y=r({expanded:n().nullish(),generatedDescription:n().nullish(),short:n().nullish()}),xe=s([`cloudflare`,`akamai`,`fastly`,`awsCloudfront`,`vercel`,`netlify`,`sucuri`,`incapsula`,`bunny`,`keycdn`,`cdn77`,`gcore`,`cdnetworks`,`azureCdn`,`leaseweb`,`digitalocean`,`stackpath`,`googlecloudCdn`,`none`,`unknown`]),Se=s([`static`,`jsRequired`,`jsEnhanced`]),b=n(),x=r({crawlCdnProvider:xe.nullish(),crawlRenderMode:Se.nullish(),createdAt:c({offset:!0}).nullish(),id:a().nullish(),isCurrent:i().nullish(),isPrimary:i().nullish(),owner:f.nullish(),sourceId:n().nullish(),status:n().nullish(),statusChecked:c({offset:!0}).nullish(),updatedAt:c({offset:!0}).nullish(),url:n(),urlType:b}),S=r({address:u(g),classification:me,fundingDetail:v.nullish(),headquartersAddressId:a().nullish(),headquartersRemoteAsOf:c({offset:!0}).nullish(),publicControllingParentId:t().nullish(),text:y,urlLink:u(x)}),C=r({lastFetchedAt:c({offset:!0}).nullish(),publishedAt:c({offset:!0}).nullish(),recordedAt:c({offset:!0}),sourceDetail:n()}),w=s([`SAFE`,`Convertible Note`,`Preferred Stock`,`Common Stock`,`Other Equity`,`Bond`,`Loan`,`Other Debt`,`Grant`,`Token`]),T=r({amountInvested:o().nullish(),createdAt:c({offset:!0}),financialInstrumentType:w.nullish(),id:t(),investor:f,investorName:n().nullish(),investorSlug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),leadInvestor:i(),publicSource:C.nullish(),transactionId:t(),updatedAt:c({offset:!0})}),E=r({acquirer:m.nullish(),core:m,fundingDetail:v.nullish()}),D=s([`High`,`Medium`,`Low`,`Verified`]),Ce=s([`direct`,`managedFund`]),O=r({round:n()}),k=r({amountInvested:o().nullish(),attributionType:Ce,beneficialEntityId:t().nullish(),fundManagerRelationshipId:a().nullish(),joinId:t(),leadInvestor:i(),recordedEntityId:t().nullish(),round:O.nullish(),transactionId:t()}),we=s([`round`,`roundType`,`financialInstrumentType`,`investorCount`,`amountRaised`,`currency`,`dateAnnounced`,`dateFundingComplete`,`valuationPostMoney`,`valuationPreMoney`,`dateInvestorExit`,`status`]),A=r({amountRaised:o().int().nullish(),createdAt:c({offset:!0}).nullish(),currency:n().nullish(),dataConfidence:D.nullish(),dateAnnounced:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),dateFundingComplete:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),dateInvestorExit:c({offset:!0}).nullish(),entity:E.nullish(),financialInstrumentType:w.nullish(),id:t(),investor:u(T).nullish(),investorAttribution:k.nullish(),investorCount:a().nullish(),publicSource:C.nullish(),rawInvestorCount:a().nullish(),rawRoundLabel:n().nullish(),round:n().nullish(),roundType:n().nullish(),sourceAttribution:u(k),unsupportedField:u(we).optional(),updatedAt:c({offset:!0}).nullish(),valuationPostMoney:o().int().nullish(),valuationPreMoney:o().int().nullish()}),j=s([`Company`,`Private company`,`Public company`,`Public`,`Investment Firm`,`Fund`,`Nonprofit`,`Government`,`Business Line`,`Product`,`Service`,`Acquired Subsidiary`,`Acquired`,`Closed`,`Closed (Acquihire)`,`Inactive`]),Te=Object.assign(e([j,n()]),{enum:j.enum}),M=r({headline:Te,isAcquired:i().nullish(),isClosed:i().nullish(),isTerminal:i().nullish()}),N=r({entity:m,headquarters:g.nullish(),relationshipType:s([`fundManagerFirm`,`productService`])}),Ee=r({acquirer:m.nullish(),fundingStage:be.nullish(),ownership:u(n()),pricingModel:u(n()),profileStatus:M.optional(),sellsTo:u(n()),totalRaised:o().nullish(),website:n().nullish()}),P=r({asOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),comparisonSignals:Ee.nullish(),createdAt:c({offset:!0}).nullish(),detail:n().nullish(),entity:m,id:a().nullish(),isCurrent:i().nullish(),isPrimary:i().nullish(),profileStatus:M.nullish(),publicSource:C.nullish(),get relationship(){return u(P)},relationshipType:n(),sourceEntityId:t().nullish(),targetEntityId:t().nullish(),updatedAt:c({offset:!0}).nullish()}),F=P,I=r({accelerator:m,acceleratorName:n(),asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/),batch:n().nullish(),id:n(),program:n().nullish(),status:n().nullish()}),L=s([`text`,`numeric`,`monetary`,`percentage`,`date`]),De=s([`pastDue`,`withinThreeMonths`,`threeToSixMonths`,`sixToTwelveMonths`,`twelveToTwentyFourMonths`,`beyondTwoYears`]),Oe=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/),bucket:De,monthsFromNow:a(),targetDate:c({offset:!0})}),R=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),currentEligible:i().nullish(),decimalValue:n().nullish(),derivedRange:Oe.nullish(),discreteValue:o().nullish(),entityId:t(),id:a(),measurementBasis:n().nullish(),publicSource:C.nullish(),reportingScope:n().nullish(),textValue:n().nullish(),typeResearchDetail:n(),updatedAt:c({offset:!0}).nullish(),valueResearchDetail:n().nullish(),valueType:L}),z=r({characterCount:a(),meetsRequirements:i(),violation:u(n()),wordCount:a()}),B=r({compliance:z.nullish(),entityId:t(),id:a(),publicSource:C.nullish(),text:n(),textType:n(),updatedAt:c({offset:!0}).nullish()}),ke=r({acceleratorParticipation:u(I),detail:u(R),snippet:u(B)}),V=s([`auto-match`,`needs-review`,`approved`,`rejected`]),H=r({createdAt:c({offset:!0}),entityId:t(),href:n().nullish(),internal:i(),matchStatus:V.nullish(),mention:n().nullish(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),typeRecord:h.nullish(),updatedAt:c({offset:!0})}),Ae=r({createdAt:c({offset:!0}),href:n().nullish(),matchStatus:V.nullish(),mention:n().nullish(),personId:t(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),updatedAt:c({offset:!0})}),je=r({end:a().min(1),entity:H.nullish(),person:Ae.nullish(),start:a().min(0)}),U=r({author:n().nullish(),category:n().nullish(),createdAt:c({offset:!0}).nullish(),excerpt:n().nullish(),externalNewsArticle:i().nullish(),id:a(),newsImageThumbnail:n().nullish(),newsUrlOriginal:n().nullish(),publication:n().nullish(),publishedAt:c({offset:!0}).nullish(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),title:n(),titleMention:u(je).optional(),updatedAt:c({offset:!0}).nullish()}),Me=s([`aventureBlog`,`personalBlog`,`employerBlog`,`linkedin`,`xTwitter`,`medium`,`substack`,`other`]),Ne=r({author:n().nullish(),createdAt:c({offset:!0}),externalId:n().nullish(),id:t(),isCurrent:i(),lastFetchedAt:c({offset:!0}).nullish(),mentionedEntityId:u(t()),mentionedPersonId:u(t()),owner:f,publishedAt:c({offset:!0}).nullish(),summary:n().nullish(),summaryGeneratedAt:c({offset:!0}).nullish(),title:n().nullish(),topic:n().nullish(),type:Me,updatedAt:c({offset:!0}),url:n()}),Pe=s([`OPERATING`,`ACQUIRED`,`CLOSED`,`PUBLIC`,`UNKNOWN`]),Fe=Object.assign(e([Pe,n()]),{enum:Pe.enum}),Ie=s([`low`,`medium`,`high`]),Le=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),currentEligible:i().nullish(),dataConfidence:Ie.nullish(),dateValue:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),decimalValue:n().nullish(),measurementBasis:n().nullish(),numericValue:o().nullish(),referenceValue:n().nullish(),reportingScope:n().nullish(),source:n().nullish(),textValue:n().nullish(),updatedAt:c({offset:!0}).nullish(),valueType:L}),Re=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),fact:Le,id:n()}),ze=r({fundraiseInvestorJoin:i(),fundraiseTransaction:i(),operatingStatus:i(),relationship:i()}),Be=s([`Acquisition`,`Acquired`,`Acquired Subsidiary`]),Ve=s([`Announced`,`Announced; subject to approvals and closing conditions`,`Active`,`Closed`,`Completed`,`In Progress`,`Open`]),He=r({acquiredEntity:m,acquirerEntity:m,amount:o().int().nullish(),announcedAt:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),asOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),completedAt:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),createdAt:c({offset:!0}).nullish(),currency:n().nullish(),dataConfidence:D.nullish(),evidence:ze,fundraiseTransactionId:t().nullish(),investorJoinId:t().nullish(),isCurrent:i().nullish(),publicSource:C.nullish(),relationshipId:a(),status:Be,transactionStatus:Ve.nullish(),updatedAt:c({offset:!0}).nullish()}),Ue=r({entity:l(()=>$),investorAttribution:u(k),round:u(O),roundCount:a()}),We=s([`entity`,`person`,`newsArticle`,`blogPost`,`text`,`classificationTag`,`classificationCode`,`product`,`service`,`agentHelpDoc`,`researchSnippet`,`sourceDocument`]),Ge=Object.assign(e([We,n()]),{enum:We.enum}),W=r({computedAt:c({offset:!0}),cosineDistance:o(),cosineScore:o(),modelVersion:n(),rank:a(),sourceHash:n(),sourceId:n(),sourceType:Ge}),Ke=r({acceleratorParticipation:u(I),detail:u(R)}),G=r({acquirer:m.nullish(),core:m,enrichment:S,fundraiseRound:u(A),profileStatus:M.optional(),provider:N.nullish(),research:Ke,semanticMatch:W.nullish()}),K=r({isMonogram:i(),picture:n().nullish(),pictureVariant:u(ne).nullish()}),q=r({associationId:a(),endDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),entityAddress:u(g),entityId:t(),entityLogo:p,entityName:n().nullish(),entityOperatingStatus:n().nullish(),entitySlug:n().regex(/^[a-z0-9_-]+$/).max(255),entityType:h.nullish(),entityUrlLink:u(x),isCurrent:i().nullish(),personAddress:u(g),personId:t(),personImage:K,personName:n(),personSlug:n().regex(/^[a-z0-9_-]+$/).max(255),personUrlLink:u(x),score:a().nullish(),startDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),titleFunction:n().nullish(),titleId:a().nullish(),titleLevel:n().nullish(),titleName:n().nullish()}),qe=s([`curated`,`semantic`,`precomputed`,`derived`,`computed`]),Je=r({compositeScore:o().nullish(),cosineScore:o().nullish(),curatedAsOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),curatedRelationshipType:n().nullish(),curatedSource:n().nullish(),derivedFromEntityId:t().nullish(),matchedSectionWeight:o().nullish(),origin:qe,rank:a(),sharedSectionCount:a().nullish()}),Ye=r({entity:G,similarity:Je}),Xe=r({core:m,fundingDetail:v.nullish(),similarity:Je,urlLink:u(x)}),Ze=r({compliance:z.nullish(),createdAt:c({offset:!0}).nullish(),get expandedText(){return Ze.nullish()},expandedTextId:a().nullish(),id:a(),isCurrent:i().nullish(),isPrimary:i().nullish(),language:n().nullish(),owner:f,text:n(),textName:n().nullish(),textType:n(),updatedAt:c({offset:!0}).nullish()}),Qe=Ze,$e=s([`stored`,`derivedFromPreAndRaised`,`derivedFromPostMinusRaised`,`reportedAssumedPost`]),et=r({amountRaised:o().int().nullish(),asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/),confidence:Ie,currency:n(),decimalValue:n().nullish(),declaredBasis:ge,derivation:$e,detailId:a().nullish(),label:n().nullish(),measurementBasis:n().nullish(),reportingScope:n().nullish(),source:he,sourceRef:n(),valuationPostMoney:o().int().nullish(),valuationPreMoney:o().int().nullish()}),tt=r({createdAt:c({offset:!0}).nullish(),description:n().nullish(),forkCount:a(),githubId:o().int(),homepageUrl:n().nullish(),id:o().int(),isArchived:i(),isFork:i(),language:n().nullish(),license:n().nullish(),name:n(),ownerLogin:n(),repoCreatedAt:c({offset:!0}).nullish(),repoPushedAt:c({offset:!0}).nullish(),stargazerCount:a(),topic:u(n()),updatedAt:c({offset:!0}).nullish(),url:n()}),nt=r({entity:m,funding:v}),rt=r({industry:_,recipientCount:a()}),J=r({empty:i().optional(),sorted:i().optional(),unsorted:i().optional()}),Y=r({offset:o().int().optional(),paged:i().optional(),pageNumber:a().optional(),pageSize:a().optional(),sort:J.optional(),unpaged:i().optional()}),it=r({amountRaised:o().nullish(),dateAnnounced:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),id:t(),image:p,investorCount:a().nullish(),nameBrand:n(),round:n().nullish(),status:n().nullish(),valuationPostMoney:o().nullish()}),at=r({entity:m,headquartersCity:n().nullish(),headquartersCountry:n().nullish(),headquartersRegion:n().nullish(),industry:n().nullish()}),ot=r({amount:o().nullish(),company:at,date:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),fundraiseTransaction:it.nullish(),fundraiseTransactionId:t(),id:n(),investmentDate:c({offset:!0}),investorAttribution:k.nullish(),round:n().nullish()}),st=r({investorAttribution:u(k),person:l(()=>Q),round:u(O),roundCount:a()}),ct=s([`maidenName`,`formerName`,`stageName`]),lt=r({displayable:i().nullish(),name:n(),type:ct.nullish()}),X=r({bioUpdatedAt:c({offset:!0}).nullish(),createdAt:c({offset:!0}).nullish(),gender:n().nullish(),id:t(),image:K,lastModifiedAt:c({offset:!0}).nullish(),nameAlias:u(lt),nameDisplay:n(),nameFirst:n().nullish(),nameFull:n(),nameLast:n().nullish(),nameMiddle:n().nullish(),nickname:n().nullish(),publicId:n().regex(/^p[0-9A-Za-z]{12}$/).nullish(),semanticMatch:W.nullish(),slug:n().regex(/^[a-z0-9_-]+$/).max(255),suffix:n().nullish(),text:y,updatedAt:c({offset:!0}).nullish()}),ut=s([`precomputed`,`live`]),dt=r({compositeScore:o().nullish(),cosineScore:o().nullish(),matchedSectionWeight:o().nullish(),origin:ut,rank:a(),sharedSectionCount:a().nullish()}),ft=r({currentRole:q.nullish(),person:X,similarity:dt}),pt=s([`by`,`about`]),mt=s([`newsArticle`,`blogPost`,`externalSocialPost`,`repositoryOwner`,`repository`,`webSite`,`webPage`,`researchPaper`]),ht=r({canonicalUrl:n().nullish(),contentId:n(),contentType:mt,createdAt:c({offset:!0}).nullish(),publishedAt:c({offset:!0}).nullish(),relation:pt.nullish(),sourceDomain:n().nullish(),sourceName:n().nullish(),summary:n().nullish(),title:n(),topic:n().nullish(),updatedAt:c({offset:!0}).nullish(),url:n().nullish(),year:a().nullish()}),gt=s([`listed`,`suspended`,`delisted`]),_t=Object.assign(e([gt,n()]),{enum:gt.enum}),vt=s(`ein.secCik.ticker.lei.duns.isin.cusip.crd.firmCrd.secPrivateFundId.npi.usptoPractitioner.nyAttorneyRegistration.ipedsUnitId.ncesSchoolId.ncesLeaId.ncesPssId.orcid.fdicCert.ncuaCharter.rssd.holdingCompanyRssd.naicCompanyCode.samUei.federalAgencyCode.signalNfxFirm.signalNfxPerson.signalNfxCompany.folk`.split(`.`)),yt=Object.assign(e([vt,n()]),{enum:vt.enum}),bt=r({createdAt:c({offset:!0}),effectiveFrom:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),effectiveTo:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),id:a(),identifier:n(),idType:yt,listingStanding:_t.nullish(),owner:f,shareClass:n().nullish(),source:n().nullish(),standingAsOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),updatedAt:c({offset:!0}),venue:n().nullish()});r({content:u(Ne).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(e([_,pe])).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Re).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(m).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(He).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>$)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(T).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(A).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>Ue)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(G).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(q).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(F).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(R).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(B).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Ye).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Xe).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Qe).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(x).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(et).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(tt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(re).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()});var xt=r({content:u(nt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),St=r({content:u(rt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()});r({content:u(U).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(X).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>Q)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(ot).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>st)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(ft).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(ht).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()});var Ct=r({content:u(G),number:a(),size:a(),totalElements:o().int(),totalPages:a()}),wt=r({content:u(U),number:a(),size:a(),totalElements:o().int(),totalPages:a()}),Tt=r({content:u(X),number:a(),size:a(),totalElements:o().int(),totalPages:a()});r({content:u(bt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()});var Et=r({ambiguousSectorCount:a(),classifiedRecipientCount:a(),observedAt:c({offset:!0}),outcome:Fe,rankableRecipientCount:a(),recipient:l(()=>xt),recipientCount:a(),sector:l(()=>St),unknownSectorCount:a()}),Dt=r({count:a(),stage:n()}),Ot=r({acquiredRecipientCount:a().nullish(),attributedInvestmentCount:a(),averageAmountInvestedUsd:o().nullish(),closedRecipientCount:a().nullish(),currentPortfolioCount:a(),largestAmountInvestedUsd:o().nullish(),operatingRecipientCount:a().nullish(),portfolio:l(()=>Et).nullish(),portfolioCompanyCount:a(),publicRecipientCount:a().nullish(),smallestAmountInvestedUsd:o().nullish(),topInvestmentStage:u(Dt),totalAmountInvestedUsd:o().nullish(),totalInvestment:a(),totalPortfolioExit:a(),totalWriteOff:a()}),kt=r({address:u(g),urlLink:u(x)}),Z=r({isCurrent:i().nullish(),personId:t(),personImage:K,personName:n(),personSlug:n().regex(/^[a-z0-9_-]+$/).max(255),titleName:n().nullish()}),At=r({entity:E,keyPerson:u(Z)}),jt=r({colleague:u(Z),employeeCount:Re.nullish(),entity:E,primaryAddress:g.nullish(),recentNews:u(U),similarEntity:u(At)}),Mt=r({overlapCount:a(),person:Z,round:n().nullish(),sharedEntity:m.nullish(),transactionId:t().nullish()}),Nt=r({careerContext:u(jt),coInvestor:u(Mt),computedAt:c({offset:!0}).nullish()}),Q=r({articleCount:a().nullish(),association:u(q),blogPost:u(Ne).nullish(),core:X,coveringRunId:t().nullish(),enrichment:kt,graph:Nt.nullish(),investment:u(ot),investorActivity:l(()=>Ot).nullish(),nameAlias:u(lt),similar:u(ft).nullish()}),Pt=s([`entityRecord`,`researchSnippet`,`newsArticle`,`personRecord`,`fundraiseTransaction`,`webProfile`]),Ft=Object.assign(e([Pt,n()]),{enum:Pt.enum}),It=r({entityId:t(),source:Ft,sourceId:n()}),Lt=r({title:n(),url:n()}),Rt=r({citation:u(It),text:n(),topic:n().nullish(),webSource:u(Lt).optional()}),zt=r({citation:u(It),confidence:ie,description:n().nullish(),heading:n().nullish(),paragraph:u(Rt),relatedQuery:u(n()),shareable:i(),text:n(),title:n().nullish()}),$=r({acquirer:m.nullish(),comparisonAnswer:zt.nullish(),core:m,coveringRunId:t().nullish(),enrichment:S,fundraiseRound:u(A),newsArticle:u(U),person:u(l(()=>Q)),profileStatus:M.optional(),provider:N.nullish(),publicUrl:n().nullish(),relationship:u(F),research:ke,sitemap:te,uniqueId:u(bt)});export{Ct as a,Ye as c,H as d,A as f,Q as i,G as l,zt as n,wt as o,b as p,Ft as r,Tt as s,$ as t,W as u};
1
+ import{C as e,E as t,S as n,_ as r,c as i,d as a,f as ee,g as o,i as s,n as c,p as l,s as u,t as d}from"./iso-DzqMxtky.js";import{t as f}from"./person-owner-BW4xz8uH.js";import{a as p,i as te,o as ne,r as m,t as re}from"./run-BaWFP48s.js";import{n as h}from"./allowance-type-BVr12WiL.js";import{t as ie}from"./confidence-CjeYTBnf.js";var ae=s([`domicile`,`dominant`,`origin`]),oe=r({endDate:d().nullish(),id:a(),isCurrent:i(),role:ae.nullish(),startDate:d().nullish()}),se=r({id:a().nullish(),name:n()}),ce=r({countryCodeChar2:n().nullish(),countryCodeChar3:n().nullish(),id:a().nullish(),name:n(),unRegion:n().nullish(),unSubregion:n().nullish()}),le=r({id:a().nullish(),name:n(),stateAbbrev:n().nullish()}),g=r({address:a().nullish(),addressLine1:n().nullish(),addressLine2:n().nullish(),association:u(oe).optional(),city:se.nullish(),country:ce.nullish(),countryAbbrev:n().nullish(),createdAt:c({offset:!0}).nullish(),fullAddress:n().nullish(),id:a().nullish(),isCurrent:i().nullish(),isHq:i().nullish(),isPrimary:i().nullish(),latitude:o().nullish(),longitude:o().nullish(),postalCode:n().nullish(),state:le.nullish(),stateAbbrev:n().nullish(),street:n().nullish(),updatedAt:c({offset:!0}).nullish()}),ue=s([`editorial`,`standardized`]),de=Object.assign(e([ue,n()]),{enum:ue.enum}),fe=r({isCurrent:i().nullish(),isPrimary:i().nullish(),name:n().max(255),registry:de}),_=ee(fe,r({bucket:n().nullish(),classificationId:a().nullish(),createdAt:c({offset:!0}).nullish(),id:a(),isCurrent:i().nullish(),isPrimary:i().nullish(),name:n().max(255),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),type:n(),updatedAt:c({offset:!0}).nullish()})),pe=r({category:n(),classificationId:a().nullish(),code:a().nullish(),codeText:n().max(255).nullish(),createdAt:c({offset:!0}).nullish(),edition:n().max(128).nullish(),id:a(),isCurrent:i().nullish(),isPrimary:i().nullish(),level:a().nullish(),name:n().max(255),registry:de,updatedAt:c({offset:!0}).nullish()}),me=r({geoLocationExposure:u(_).default([]).optional(),industry:u(_).default([]).optional(),mainProduct:u(_).default([]).optional(),standardizedClassification:u(pe).default([]).optional(),tag:u(_).default([]).optional(),typeCustomer:u(_).default([]).optional(),typeModel:u(_).default([]).optional(),typeOwnership:u(_).default([]).optional(),typeRevenue:u(_).default([]).optional(),typeTechnologyUsed:u(_).default([]).optional()}),he=s([`fundraiseRound`,`researchDetail`]),ge=s([`preMoney`,`postMoney`,`reported`]),_e=r({amount:n().regex(/^-?[0-9]+(\.[0-9]+)?$/),asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),basis:ge.nullish(),currency:n().nullish(),postMoneyUsd:n().regex(/^-?[0-9]+(\.[0-9]+)?$/).nullish(),referenceValue:n().nullish(),source:he,sourceRef:n()}),ve=s([`UNKNOWN`,`NOT_APPLICABLE`,`RECORDED`]),ye=s(`Angel.Pre-Seed.Seed.Series A.Series B.Series C.Series D.Series E.Series F.Series G.Series H.Series I.Series J.Series K.Series L.Series M.Series N.Series O.Series P.Series Q.Series R.Series S.Series T.Series U.Series V.Series W.Series X.Series Y.Series Z.Late Stage Private.Investment Firm.Fund.Nonprofit.Government.Public.Acquired.Acquired Subsidiary.Bankrupt`.split(`.`)),be=Object.assign(e([ye,n()]),{enum:ye.enum}),v=r({applicability:ve.nullish(),currency:n().nullish(),currentValuation:_e.nullish(),disclosedStage:n().nullish(),disclosedStageTransactionId:t().nullish(),fundingRoundCount:a(),investorCount:a(),latestValuation:o().nullish(),mostRecentAmount:o().nullish(),mostRecentDate:d().nullish(),stage:be.nullish(),totalRaised:o(),totalRaisedAmountRoundCount:a().nullish(),totalRaisedRoundCount:a().nullish(),totalRaisedUsd:o().nullish(),totalRaisedUsdRoundCount:a().nullish(),unconvertedRoundCount:a()}),y=r({expanded:n().nullish(),generatedDescription:n().nullish(),short:n().nullish()}),xe=s([`cloudflare`,`akamai`,`fastly`,`awsCloudfront`,`vercel`,`netlify`,`sucuri`,`incapsula`,`bunny`,`keycdn`,`cdn77`,`gcore`,`cdnetworks`,`azureCdn`,`leaseweb`,`digitalocean`,`stackpath`,`googlecloudCdn`,`none`,`unknown`]),Se=s([`static`,`jsRequired`,`jsEnhanced`]),b=n(),x=r({crawlCdnProvider:xe.nullish(),crawlRenderMode:Se.nullish(),createdAt:c({offset:!0}).nullish(),id:a().nullish(),isCurrent:i().nullish(),isPrimary:i().nullish(),owner:f.nullish(),sourceId:n().nullish(),status:n().nullish(),statusChecked:c({offset:!0}).nullish(),updatedAt:c({offset:!0}).nullish(),url:n(),urlType:b}),S=r({address:u(g),classification:me,fundingDetail:v.nullish(),headquartersAddressId:a().nullish(),headquartersRemoteAsOf:c({offset:!0}).nullish(),publicControllingParentId:t().nullish(),text:y,urlLink:u(x)}),C=r({lastFetchedAt:c({offset:!0}).nullish(),publishedAt:c({offset:!0}).nullish(),recordedAt:c({offset:!0}),sourceDetail:n()}),w=s([`SAFE`,`Convertible Note`,`Preferred Stock`,`Common Stock`,`Other Equity`,`Bond`,`Loan`,`Other Debt`,`Grant`,`Token`]),T=r({amountInvested:o().nullish(),createdAt:c({offset:!0}),financialInstrumentType:w.nullish(),id:t(),investor:f,investorName:n().nullish(),investorSlug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),leadInvestor:i(),publicSource:C.nullish(),transactionId:t(),updatedAt:c({offset:!0})}),E=r({acquirer:m.nullish(),core:m,fundingDetail:v.nullish()}),D=s([`High`,`Medium`,`Low`,`Verified`]),Ce=s([`direct`,`managedFund`]),O=r({round:n()}),k=r({amountInvested:o().nullish(),attributionType:Ce,beneficialEntityId:t().nullish(),fundManagerRelationshipId:a().nullish(),joinId:t(),leadInvestor:i(),recordedEntityId:t().nullish(),round:O.nullish(),transactionId:t()}),we=s([`round`,`roundType`,`financialInstrumentType`,`investorCount`,`amountRaised`,`currency`,`dateAnnounced`,`dateFundingComplete`,`valuationPostMoney`,`valuationPreMoney`,`dateInvestorExit`,`status`]),A=r({amountRaised:o().int().nullish(),createdAt:c({offset:!0}).nullish(),currency:n().nullish(),dataConfidence:D.nullish(),dateAnnounced:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),dateFundingComplete:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),dateInvestorExit:c({offset:!0}).nullish(),entity:E.nullish(),financialInstrumentType:w.nullish(),id:t(),investor:u(T).nullish(),investorAttribution:k.nullish(),investorCount:a().nullish(),publicSource:C.nullish(),rawInvestorCount:a().nullish(),rawRoundLabel:n().nullish(),round:n().nullish(),roundType:n().nullish(),sourceAttribution:u(k),unsupportedField:u(we).optional(),updatedAt:c({offset:!0}).nullish(),valuationPostMoney:o().int().nullish(),valuationPreMoney:o().int().nullish()}),j=s([`Company`,`Private company`,`Public company`,`Public`,`Investment Firm`,`Fund`,`Nonprofit`,`Government`,`Business Line`,`Product`,`Service`,`Acquired Subsidiary`,`Acquired`,`Closed`,`Closed (Acquihire)`,`Inactive`]),Te=Object.assign(e([j,n()]),{enum:j.enum}),M=r({headline:Te,isAcquired:i().nullish(),isClosed:i().nullish(),isTerminal:i().nullish()}),N=r({entity:m,headquarters:g.nullish(),relationshipType:s([`fundManagerFirm`,`productService`])}),Ee=r({acquirer:m.nullish(),fundingStage:be.nullish(),ownership:u(n()),pricingModel:u(n()),profileStatus:M.optional(),sellsTo:u(n()),totalRaised:o().nullish(),website:n().nullish()}),P=r({asOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),comparisonSignals:Ee.nullish(),createdAt:c({offset:!0}).nullish(),detail:n().nullish(),entity:m,id:a().nullish(),isCurrent:i().nullish(),isPrimary:i().nullish(),profileStatus:M.nullish(),publicSource:C.nullish(),get relationship(){return u(P)},relationshipType:n(),sourceEntityId:t().nullish(),targetEntityId:t().nullish(),updatedAt:c({offset:!0}).nullish()}),F=P,I=r({accelerator:m,acceleratorName:n(),asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/),batch:n().nullish(),id:n(),program:n().nullish(),status:n().nullish()}),L=s([`text`,`numeric`,`monetary`,`percentage`,`date`]),De=s([`pastDue`,`withinThreeMonths`,`threeToSixMonths`,`sixToTwelveMonths`,`twelveToTwentyFourMonths`,`beyondTwoYears`]),Oe=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/),bucket:De,monthsFromNow:a(),targetDate:c({offset:!0})}),R=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),currentEligible:i().nullish(),decimalValue:n().nullish(),derivedRange:Oe.nullish(),discreteValue:o().nullish(),entityId:t(),id:a(),measurementBasis:n().nullish(),publicSource:C.nullish(),reportingScope:n().nullish(),textValue:n().nullish(),typeResearchDetail:n(),updatedAt:c({offset:!0}).nullish(),valueResearchDetail:n().nullish(),valueType:L}),z=r({characterCount:a(),meetsRequirements:i(),violation:u(n()),wordCount:a()}),B=r({compliance:z.nullish(),entityId:t(),id:a(),publicSource:C.nullish(),text:n(),textType:n(),updatedAt:c({offset:!0}).nullish()}),ke=r({acceleratorParticipation:u(I),detail:u(R),snippet:u(B)}),V=s([`auto-match`,`needs-review`,`approved`,`rejected`]),H=r({createdAt:c({offset:!0}),entityId:t(),href:n().nullish(),internal:i(),matchStatus:V.nullish(),mention:n().nullish(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),typeRecord:h.nullish(),updatedAt:c({offset:!0})}),Ae=r({createdAt:c({offset:!0}),href:n().nullish(),matchStatus:V.nullish(),mention:n().nullish(),personId:t(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),updatedAt:c({offset:!0})}),je=r({end:a().min(1),entity:H.nullish(),person:Ae.nullish(),start:a().min(0)}),U=r({author:n().nullish(),category:n().nullish(),createdAt:c({offset:!0}).nullish(),excerpt:n().nullish(),externalNewsArticle:i().nullish(),id:a(),newsImageThumbnail:n().nullish(),newsUrlOriginal:n().nullish(),publication:n().nullish(),publishedAt:c({offset:!0}).nullish(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),title:n(),titleMention:u(je).optional(),updatedAt:c({offset:!0}).nullish()}),Me=s([`aventureBlog`,`personalBlog`,`employerBlog`,`linkedin`,`xTwitter`,`medium`,`substack`,`other`]),Ne=r({author:n().nullish(),createdAt:c({offset:!0}),externalId:n().nullish(),id:t(),isCurrent:i(),lastFetchedAt:c({offset:!0}).nullish(),mentionedEntityId:u(t()),mentionedPersonId:u(t()),owner:f,publishedAt:c({offset:!0}).nullish(),summary:n().nullish(),summaryGeneratedAt:c({offset:!0}).nullish(),title:n().nullish(),topic:n().nullish(),type:Me,updatedAt:c({offset:!0}),url:n()}),Pe=s([`OPERATING`,`ACQUIRED`,`CLOSED`,`PUBLIC`,`UNKNOWN`]),Fe=Object.assign(e([Pe,n()]),{enum:Pe.enum}),Ie=s([`low`,`medium`,`high`]),Le=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),currentEligible:i().nullish(),dataConfidence:Ie.nullish(),dateValue:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),decimalValue:n().nullish(),measurementBasis:n().nullish(),numericValue:o().nullish(),referenceValue:n().nullish(),reportingScope:n().nullish(),source:n().nullish(),textValue:n().nullish(),updatedAt:c({offset:!0}).nullish(),valueType:L}),Re=r({asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),fact:Le,id:n()}),ze=r({fundraiseInvestorJoin:i(),fundraiseTransaction:i(),operatingStatus:i(),relationship:i()}),Be=s([`Acquisition`,`Acquired`,`Acquired Subsidiary`]),Ve=s([`Announced`,`Announced; subject to approvals and closing conditions`,`Active`,`Closed`,`Completed`,`In Progress`,`Open`]),He=r({acquiredEntity:m,acquirerEntity:m,amount:o().int().nullish(),announcedAt:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),asOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),completedAt:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),createdAt:c({offset:!0}).nullish(),currency:n().nullish(),dataConfidence:D.nullish(),evidence:ze,fundraiseTransactionId:t().nullish(),investorJoinId:t().nullish(),isCurrent:i().nullish(),publicSource:C.nullish(),relationshipId:a(),status:Be,transactionStatus:Ve.nullish(),updatedAt:c({offset:!0}).nullish()}),Ue=r({entity:l(()=>$),investorAttribution:u(k),round:u(O),roundCount:a()}),We=s([`entity`,`person`,`newsArticle`,`blogPost`,`text`,`classificationTag`,`classificationCode`,`product`,`service`,`agentHelpDoc`,`researchSnippet`,`sourceDocument`]),Ge=Object.assign(e([We,n()]),{enum:We.enum}),W=r({computedAt:c({offset:!0}),cosineDistance:o(),cosineScore:o(),modelVersion:n(),rank:a(),sourceHash:n(),sourceId:n(),sourceType:Ge}),Ke=r({acceleratorParticipation:u(I),detail:u(R)}),G=r({acquirer:m.nullish(),core:m,enrichment:S,fundraiseRound:u(A),profileStatus:M.optional(),provider:N.nullish(),research:Ke,semanticMatch:W.nullish()}),K=r({isMonogram:i(),picture:n().nullish(),pictureVariant:u(ne).nullish()}),q=r({associationId:a(),endDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),entityAddress:u(g),entityId:t(),entityLogo:p,entityName:n().nullish(),entityOperatingStatus:n().nullish(),entitySlug:n().regex(/^[a-z0-9_-]+$/).max(255),entityType:h.nullish(),entityUrlLink:u(x),isCurrent:i().nullish(),personAddress:u(g),personId:t(),personImage:K,personName:n(),personSlug:n().regex(/^[a-z0-9_-]+$/).max(255),personUrlLink:u(x),score:a().nullish(),startDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),titleFunction:n().nullish(),titleId:a().nullish(),titleLevel:n().nullish(),titleName:n().nullish()}),qe=s([`curated`,`semantic`,`precomputed`,`derived`,`computed`]),Je=r({compositeScore:o().nullish(),cosineScore:o().nullish(),curatedAsOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),curatedRelationshipType:n().nullish(),curatedSource:n().nullish(),derivedFromEntityId:t().nullish(),matchedSectionWeight:o().nullish(),origin:qe,rank:a(),sharedSectionCount:a().nullish()}),Ye=r({entity:G,similarity:Je}),Xe=r({core:m,fundingDetail:v.nullish(),similarity:Je,urlLink:u(x)}),Ze=r({compliance:z.nullish(),createdAt:c({offset:!0}).nullish(),get expandedText(){return Ze.nullish()},expandedTextId:a().nullish(),id:a(),isCurrent:i().nullish(),isPrimary:i().nullish(),language:n().nullish(),owner:f,text:n(),textName:n().nullish(),textType:n(),updatedAt:c({offset:!0}).nullish()}),Qe=Ze,$e=s([`stored`,`derivedFromPreAndRaised`,`derivedFromPostMinusRaised`,`reportedAssumedPost`]),et=r({amountRaised:o().int().nullish(),asOfDate:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/),confidence:Ie,currency:n(),decimalValue:n().nullish(),declaredBasis:ge,derivation:$e,detailId:a().nullish(),label:n().nullish(),measurementBasis:n().nullish(),reportingScope:n().nullish(),source:he,sourceRef:n(),valuationPostMoney:o().int().nullish(),valuationPreMoney:o().int().nullish()}),tt=r({createdAt:c({offset:!0}).nullish(),description:n().nullish(),forkCount:a(),githubId:o().int(),homepageUrl:n().nullish(),id:o().int(),isArchived:i(),isFork:i(),language:n().nullish(),license:n().nullish(),name:n(),ownerLogin:n(),repoCreatedAt:c({offset:!0}).nullish(),repoPushedAt:c({offset:!0}).nullish(),stargazerCount:a(),topic:u(n()),updatedAt:c({offset:!0}).nullish(),url:n()}),nt=r({entity:m,funding:v}),rt=r({industry:_,recipientCount:a()}),J=r({empty:i().optional(),sorted:i().optional(),unsorted:i().optional()}),Y=r({offset:o().int().optional(),paged:i().optional(),pageNumber:a().optional(),pageSize:a().optional(),sort:J.optional(),unpaged:i().optional()}),it=r({amountRaised:o().nullish(),dateAnnounced:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),id:t(),image:p,investorCount:a().nullish(),nameBrand:n(),round:n().nullish(),status:n().nullish(),valuationPostMoney:o().nullish()}),at=r({entity:m,headquartersCity:n().nullish(),headquartersCountry:n().nullish(),headquartersRegion:n().nullish(),industry:n().nullish()}),ot=r({amount:o().nullish(),company:at,date:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),fundraiseTransaction:it.nullish(),fundraiseTransactionId:t(),id:n(),investmentDate:c({offset:!0}),investorAttribution:k.nullish(),round:n().nullish()}),st=r({investorAttribution:u(k),person:l(()=>Q),round:u(O),roundCount:a()}),ct=s([`maidenName`,`formerName`,`stageName`]),lt=r({displayable:i().nullish(),name:n(),type:ct.nullish()}),X=r({bioUpdatedAt:c({offset:!0}).nullish(),createdAt:c({offset:!0}).nullish(),gender:n().nullish(),id:t(),image:K,lastModifiedAt:c({offset:!0}).nullish(),nameAlias:u(lt),nameDisplay:n(),nameFirst:n().nullish(),nameFull:n(),nameLast:n().nullish(),nameMiddle:n().nullish(),nickname:n().nullish(),publicId:n().regex(/^p[0-9A-Za-z]{12}$/).nullish(),semanticMatch:W.nullish(),slug:n().regex(/^[a-z0-9_-]+$/).max(255),suffix:n().nullish(),text:y,updatedAt:c({offset:!0}).nullish()}),ut=s([`precomputed`,`live`]),dt=r({compositeScore:o().nullish(),cosineScore:o().nullish(),matchedSectionWeight:o().nullish(),origin:ut,rank:a(),sharedSectionCount:a().nullish()}),ft=r({currentRole:q.nullish(),person:X,similarity:dt}),pt=s([`by`,`about`]),mt=s([`newsArticle`,`blogPost`,`externalSocialPost`,`repositoryOwner`,`repository`,`webSite`,`webPage`,`researchPaper`]),ht=r({canonicalUrl:n().nullish(),contentId:n(),contentType:mt,createdAt:c({offset:!0}).nullish(),publishedAt:c({offset:!0}).nullish(),relation:pt.nullish(),sourceDomain:n().nullish(),sourceName:n().nullish(),summary:n().nullish(),title:n(),topic:n().nullish(),updatedAt:c({offset:!0}).nullish(),url:n().nullish(),year:a().nullish()}),gt=s([`listed`,`suspended`,`delisted`]),_t=Object.assign(e([gt,n()]),{enum:gt.enum}),vt=s(`ein.secCik.ticker.lei.duns.isin.cusip.crd.firmCrd.secPrivateFundId.npi.usptoPractitioner.nyAttorneyRegistration.ipedsUnitId.ncesSchoolId.ncesLeaId.ncesPssId.orcid.fdicCert.ncuaCharter.rssd.holdingCompanyRssd.naicCompanyCode.samUei.federalAgencyCode.signalNfxFirm.signalNfxPerson.signalNfxCompany.folk`.split(`.`)),yt=Object.assign(e([vt,n()]),{enum:vt.enum}),bt=r({createdAt:c({offset:!0}),effectiveFrom:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),effectiveTo:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),id:a(),identifier:n(),idType:yt,listingStanding:_t.nullish(),owner:f,shareClass:n().nullish(),source:n().nullish(),standingAsOf:n().regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-](?:(?:0[0-9]|1[0-7]):[0-5][0-9]|18:00)))?)?)?$/).nullish(),updatedAt:c({offset:!0}),venue:n().nullish()});r({content:u(Ne).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(e([_,pe])).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Re).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(m).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(He).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>$)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(T).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(A).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>Ue)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(G).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(q).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(F).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(R).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(B).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Ye).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Xe).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(Qe).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(x).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(et).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(tt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(re).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()});var xt=r({content:u(nt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),St=r({content:u(rt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()});r({content:u(U).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(X).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>Q)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(ot).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(l(()=>st)).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(ft).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()}),r({content:u(ht).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()});var Ct=r({content:u(G),number:a(),size:a(),totalElements:o().int(),totalPages:a()}),wt=r({content:u(U),number:a(),size:a(),totalElements:o().int(),totalPages:a()}),Tt=r({content:u(X),number:a(),size:a(),totalElements:o().int(),totalPages:a()});r({content:u(bt).optional(),empty:i().optional(),first:i().optional(),last:i().optional(),number:a().optional(),numberOfElements:a().optional(),pageable:Y.optional(),size:a().optional(),sort:J.optional(),totalElements:o().int().optional(),totalPages:a().optional()});var Et=r({ambiguousSectorCount:a(),classifiedRecipientCount:a(),observedAt:c({offset:!0}),outcome:Fe,rankableRecipientCount:a(),recipient:l(()=>xt),recipientCount:a(),sector:l(()=>St),unknownSectorCount:a()}),Dt=r({count:a(),stage:n()}),Ot=r({acquiredRecipientCount:a().nullish(),attributedInvestmentCount:a(),averageAmountInvestedUsd:o().nullish(),closedRecipientCount:a().nullish(),currentPortfolioCount:a(),largestAmountInvestedUsd:o().nullish(),operatingRecipientCount:a().nullish(),portfolio:l(()=>Et).nullish(),portfolioCompanyCount:a(),publicRecipientCount:a().nullish(),smallestAmountInvestedUsd:o().nullish(),topInvestmentStage:u(Dt),totalAmountInvestedUsd:o().nullish(),totalInvestment:a(),totalPortfolioExit:a(),totalWriteOff:a()}),kt=r({address:u(g),urlLink:u(x)}),Z=r({isCurrent:i().nullish(),personId:t(),personImage:K,personName:n(),personSlug:n().regex(/^[a-z0-9_-]+$/).max(255),titleName:n().nullish()}),At=r({entity:E,keyPerson:u(Z)}),jt=r({colleague:u(Z),employeeCount:Re.nullish(),entity:E,primaryAddress:g.nullish(),recentNews:u(U),similarEntity:u(At)}),Mt=r({overlapCount:a(),person:Z,round:n().nullish(),sharedEntity:m.nullish(),transactionId:t().nullish()}),Nt=r({careerContext:u(jt),coInvestor:u(Mt),computedAt:c({offset:!0}).nullish()}),Q=r({articleCount:a().nullish(),association:u(q),blogPost:u(Ne).nullish(),core:X,coveringRunId:t().nullish(),enrichment:kt,graph:Nt.nullish(),investment:u(ot),investorActivity:l(()=>Ot).nullish(),nameAlias:u(lt),similar:u(ft).nullish()}),Pt=s([`entityRecord`,`researchSnippet`,`newsArticle`,`personRecord`,`fundraiseTransaction`,`webProfile`]),Ft=Object.assign(e([Pt,n()]),{enum:Pt.enum}),It=r({entityId:t(),source:Ft,sourceId:n()}),Lt=r({title:n(),url:n()}),Rt=r({citation:u(It),text:n(),topic:n().nullish(),webSource:u(Lt).optional()}),zt=r({citation:u(It),confidence:ie,description:n().nullish(),heading:n().nullish(),paragraph:u(Rt),relatedQuery:u(n()),shareable:i(),text:n(),title:n().nullish()}),$=r({acquirer:m.nullish(),comparisonAnswer:zt.nullish(),core:m,coveringRunId:t().nullish(),enrichment:S,fundraiseRound:u(A),newsArticle:u(U),person:u(l(()=>Q)),profileStatus:M.optional(),provider:N.nullish(),publicUrl:n().nullish(),relationship:u(F),research:ke,sitemap:te,uniqueId:u(bt)});export{Ct as a,Ye as c,H as d,A as f,Q as i,G as l,zt as n,wt as o,b as p,Ft as r,Tt as s,$ as t,W as u};
@@ -0,0 +1 @@
1
+ import"./auth-BNDyLTqp-z6VNZXaE.js";export{h as OAuthError,g as OAuthErrorCode}from"./dist-Dt0qAmdj.js";
@@ -1,4 +1,4 @@
1
- import{D as e,O as t,T as n,n as r,t as i,u as a}from"./iso-l1vOidnb.js";import{$ as o,$n as s,$t as c,A as l,An as u,At as d,B as f,Bn as p,Bt as m,C as h,Cn as g,Cr as _,Ct as v,D as y,Dn as b,Dr as x,Dt as S,E as C,En as w,Er as T,Et as E,F as D,Ft as O,G as k,Gn as A,Gt as j,H as M,Hn as N,Ht as P,I as ee,It as te,J as F,Jn as ne,Jt as re,K as ie,Kn as ae,Kt as I,L as oe,Lt as se,Mn as ce,Mt as le,N as ue,Nn as de,Nt as fe,O as pe,On as me,Ot as he,P as ge,Pn as _e,Pt as ve,Q as ye,Qn as be,R as xe,Rn as Se,Rt as Ce,S as we,Sn as Te,Sr as Ee,St as De,T as Oe,Tn as ke,Tr as Ae,Tt as je,U as Me,Un as Ne,Ut as Pe,V as Fe,Vn as Ie,Vt as Le,W as Re,Wn as ze,Wt as Be,X as Ve,Xn as He,Xt as Ue,Y as We,Yn as Ge,Yt as Ke,Z as qe,Zn as Je,Zt as Ye,_ as Xe,_n as Ze,_r as Qe,a as $e,an as et,at as tt,b as nt,bn as rt,br as it,bt as at,cn as ot,cr as st,ct,d as lt,dn as ut,dr as dt,dt as ft,en as pt,er as mt,et as ht,f as gt,fn as _t,fr as vt,ft as yt,g as bt,gn as xt,gr as St,gt as Ct,h as wt,hn as Tt,hr as Et,ht as Dt,i as Ot,in as kt,ir as At,it as jt,j as Mt,jn as Nt,jt as Pt,k as Ft,kn as It,kt as Lt,l as Rt,ln as zt,lr as Bt,lt as Vt,m as Ht,mn as Ut,mr as Wt,mt as Gt,n as Kt,nn as qt,nr as Jt,nt as Yt,o as Xt,on as Zt,or as Qt,ot as $t,p as en,pr as tn,pt as nn,q as rn,qn as an,qt as on,r as sn,rn as cn,rr as ln,rt as un,sn as dn,sr as fn,st as pn,t as mn,tn as hn,tr as gn,tt as _n,u as vn,un as yn,ur as bn,ut as xn,v as Sn,vn as Cn,vr as wn,vt as Tn,w as En,wn as Dn,wr as On,wt as kn,x as An,xn as jn,xr as Mn,xt as Nn,y as Pn,yn as Fn,yr as In,yt as Ln,z as Rn,zn,zt as Bn}from"./auth-BNDyLTqp-GYAzJXBe.js";import"./internal-DaW7WEqw.js";var Vn=Object.create,L=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,Un=Object.getOwnPropertyNames,Wn=Object.getPrototypeOf,Gn=Object.prototype.hasOwnProperty,R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kn=(e,t)=>{let n={};for(var r in e)L(n,r,{get:e[r],enumerable:!0});return t&&L(n,Symbol.toStringTag,{value:`Module`}),n},qn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Un(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Gn.call(e,s)&&s!==n&&L(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Hn(t,s))||r.enumerable});return e},Jn=(e,t,n)=>(n=e==null?{}:Vn(Wn(e)),qn(t||!e||!e.__esModule?L(n,`default`,{value:e,enumerable:!0}):n,e)),Yn=Symbol.for(`mcp.sdk.errorBrands`);function z(e,t){let n=new Set,r=t;for(;typeof r==`function`;){let e=r.mcpBrand;Object.prototype.hasOwnProperty.call(r,`mcpBrand`)&&typeof e==`string`&&n.add(e),r=Object.getPrototypeOf(r)}n.size!==0&&Object.defineProperty(e,Yn,{value:n,enumerable:!1,configurable:!0})}function B(e,t){try{if(typeof t==`object`&&t&&Object.prototype.hasOwnProperty.call(e,`mcpBrand`)&&typeof e.mcpBrand==`string`&&Object.prototype.hasOwnProperty.call(t,Yn)){let n=t[Yn];if(n&&typeof n.has==`function`&&n.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}var Xn=function(e){return e.InvalidRequest=`invalid_request`,e.InvalidClient=`invalid_client`,e.InvalidGrant=`invalid_grant`,e.UnauthorizedClient=`unauthorized_client`,e.UnsupportedGrantType=`unsupported_grant_type`,e.InvalidScope=`invalid_scope`,e.AccessDenied=`access_denied`,e.ServerError=`server_error`,e.TemporarilyUnavailable=`temporarily_unavailable`,e.UnsupportedResponseType=`unsupported_response_type`,e.UnsupportedTokenType=`unsupported_token_type`,e.InvalidToken=`invalid_token`,e.MethodNotAllowed=`method_not_allowed`,e.TooManyRequests=`too_many_requests`,e.InvalidClientMetadata=`invalid_client_metadata`,e.InvalidRedirectUri=`invalid_redirect_uri`,e.InsufficientScope=`insufficient_scope`,e.InvalidTarget=`invalid_target`,e.InvalidDpopProof=`invalid_dpop_proof`,e.UseDpopNonce=`use_dpop_nonce`,e}({}),Zn=class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.OAuthError`})}static[Symbol.hasInstance](e){return B(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return B(this,e)}constructor(e,t,n){super(t),this.code=e,this.errorUri=n,this.name=`OAuthError`,z(this,new.target)}toResponseObject(){let e={error:this.code,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}static fromResponse(t){return new e(t.error,t.error_description??t.error,t.error_uri)}},Qn=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkError`})}static[Symbol.hasInstance](e){return B(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return B(this,e)}constructor(e,t,n,r){super(t,r),this.code=e,this.data=n,this.name=`SdkError`,z(this,new.target)}};(class extends Qn{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkHttpError`})}constructor(e,t,n,r){super(e,t,n,r),this.name=`SdkHttpError`}get status(){return this.data.status}get statusText(){return this.data.statusText}});function $n(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={...e};return delete t.issuer,t}var V=function(e){return e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.ResourceNotFound=-32002]=`ResourceNotFound`,e[e.MissingRequiredClientCapability=-32021]=`MissingRequiredClientCapability`,e[e.UnsupportedProtocolVersion=-32022]=`UnsupportedProtocolVersion`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`,e}({}),H=class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ProtocolError`})}static[Symbol.hasInstance](e){return B(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return B(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name=`ProtocolError`,z(this,new.target)}static fromError(t,n,r){if(t===V.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new tr(e.elicitations,n)}if(t===V.UnsupportedProtocolVersion&&r){let e=r;if(Array.isArray(e.supported)&&typeof e.requested==`string`)return new nr({supported:e.supported,requested:e.requested},n)}if(t===V.InvalidParams||t===V.ResourceNotFound){let e=r;if(typeof e?.uri==`string`&&(t===V.ResourceNotFound||Object.keys(e).length===1))return new er(e.uri,n)}if(t===V.MissingRequiredClientCapability&&r){let e=r;if(e.requiredCapabilities!==null&&typeof e.requiredCapabilities==`object`&&!Array.isArray(e.requiredCapabilities))return new rr({requiredCapabilities:e.requiredCapabilities},n)}return new e(t,n,r)}},er=class extends H{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ResourceNotFoundError`})}constructor(e,t=`Resource not found: ${e}`){super(V.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},tr=class extends H{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UrlElicitationRequiredError`})}constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(V.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},nr=class extends H{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UnsupportedProtocolVersionError`})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(V.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},rr=class extends H{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.MissingRequiredClientCapabilityError`})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(`, `)}`){super(V.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},ir=Kn({AnnotationsSchema:()=>mn,AudioContentSchema:()=>Kt,BaseMetadataSchema:()=>sn,BaseRequestParamsSchema:()=>Ot,BlobResourceContentsSchema:()=>$e,BooleanSchemaSchema:()=>Xt,CallToolRequestParamsSchema:()=>Rt,CallToolRequestSchema:()=>vn,CallToolResultSchema:()=>lt,CancelTaskRequestSchema:()=>gt,CancelTaskResultSchema:()=>en,CancelledNotificationParamsSchema:()=>Ht,CancelledNotificationSchema:()=>wt,ClientCapabilitiesSchema:()=>bt,ClientNotificationSchema:()=>Xe,ClientRequestSchema:()=>Sn,ClientResultSchema:()=>Pn,ClientTasksCapabilitySchema:()=>nt,CompatibilityCallToolResultSchema:()=>An,CompleteRequestParamsSchema:()=>we,CompleteRequestSchema:()=>h,CompleteResultSchema:()=>En,ContentBlockSchema:()=>Oe,CreateMessageRequestParamsSchema:()=>C,CreateMessageRequestSchema:()=>y,CreateMessageResultSchema:()=>pe,CreateMessageResultWithToolsSchema:()=>Ft,CreateTaskResultSchema:()=>l,CursorSchema:()=>Mt,DiscoverRequestSchema:()=>ue,DiscoverResultSchema:()=>ge,ElicitRequestFormParamsSchema:()=>D,ElicitRequestParamsSchema:()=>ee,ElicitRequestSchema:()=>oe,ElicitRequestURLParamsSchema:()=>xe,ElicitResultSchema:()=>Rn,ElicitationCompleteNotificationParamsSchema:()=>f,ElicitationCompleteNotificationSchema:()=>Fe,EmbeddedResourceSchema:()=>M,EmptyResultSchema:()=>Me,EnumSchemaSchema:()=>Re,GetPromptRequestParamsSchema:()=>k,GetPromptRequestSchema:()=>ie,GetPromptResultSchema:()=>rn,GetTaskPayloadRequestSchema:()=>F,GetTaskPayloadResultSchema:()=>We,GetTaskRequestSchema:()=>Ve,GetTaskResultSchema:()=>qe,IconSchema:()=>ye,IconsSchema:()=>o,ImageContentSchema:()=>_n,ImplementationSchema:()=>Yt,InitializeRequestParamsSchema:()=>un,InitializeRequestSchema:()=>jt,InitializeResultSchema:()=>tt,InitializedNotificationSchema:()=>$t,JSONArraySchema:()=>pn,JSONObjectSchema:()=>ct,JSONRPCErrorResponseSchema:()=>Vt,JSONRPCMessageSchema:()=>xn,JSONRPCNotificationSchema:()=>ft,JSONRPCRequestSchema:()=>yt,JSONRPCResponseSchema:()=>nn,JSONRPCResultResponseSchema:()=>Gt,JSONValueSchema:()=>Dt,LegacyTitledEnumSchemaSchema:()=>Tn,ListChangedOptionsBaseSchema:()=>Ln,ListPromptsRequestSchema:()=>at,ListPromptsResultSchema:()=>Nn,ListResourceTemplatesRequestSchema:()=>De,ListResourceTemplatesResultSchema:()=>v,ListResourcesRequestSchema:()=>kn,ListResourcesResultSchema:()=>je,ListRootsRequestSchema:()=>E,ListRootsResultSchema:()=>S,ListTasksRequestSchema:()=>he,ListTasksResultSchema:()=>Lt,ListToolsRequestSchema:()=>d,ListToolsResultSchema:()=>Pt,LoggingLevelSchema:()=>le,LoggingMessageNotificationParamsSchema:()=>fe,LoggingMessageNotificationSchema:()=>ve,ModelHintSchema:()=>O,ModelPreferencesSchema:()=>te,MultiSelectEnumSchemaSchema:()=>se,NotificationSchema:()=>Ce,NotificationsParamsSchema:()=>Bn,NumberSchemaSchema:()=>m,PaginatedRequestParamsSchema:()=>c,PaginatedRequestSchema:()=>pt,PaginatedResultSchema:()=>hn,PingRequestSchema:()=>qt,PrimitiveSchemaDefinitionSchema:()=>cn,ProgressNotificationParamsSchema:()=>kt,ProgressNotificationSchema:()=>et,ProgressSchema:()=>Zt,ProgressTokenSchema:()=>dn,PromptArgumentSchema:()=>ot,PromptListChangedNotificationSchema:()=>zt,PromptMessageSchema:()=>yn,PromptReferenceSchema:()=>ut,PromptSchema:()=>_t,ReadResourceRequestParamsSchema:()=>Ut,ReadResourceRequestSchema:()=>Tt,ReadResourceResultSchema:()=>xt,RelatedTaskMetadataSchema:()=>Ze,RequestIdSchema:()=>Cn,RequestMetaSchema:()=>Fn,RequestSchema:()=>rt,ResourceContentsSchema:()=>jn,ResourceLinkSchema:()=>Te,ResourceListChangedNotificationSchema:()=>g,ResourceRequestParamsSchema:()=>Dn,ResourceSchema:()=>ke,ResourceTemplateReferenceSchema:()=>w,ResourceTemplateSchema:()=>b,ResourceUpdatedNotificationParamsSchema:()=>me,ResourceUpdatedNotificationSchema:()=>It,ResultMetaObjectSchema:()=>u,ResultSchema:()=>Nt,RoleSchema:()=>ce,RootSchema:()=>de,RootsListChangedNotificationSchema:()=>_e,SamplingContentSchema:()=>Se,SamplingMessageContentBlockSchema:()=>zn,SamplingMessageSchema:()=>p,ServerCapabilitiesSchema:()=>Ie,ServerNotificationSchema:()=>N,ServerRequestSchema:()=>Ne,ServerResultSchema:()=>ze,ServerTasksCapabilitySchema:()=>A,SetLevelRequestParamsSchema:()=>ae,SetLevelRequestSchema:()=>an,SingleSelectEnumSchemaSchema:()=>ne,StringSchemaSchema:()=>Ge,SubscribeRequestParamsSchema:()=>He,SubscribeRequestSchema:()=>Je,SubscriptionFilterSchema:()=>be,SubscriptionsAcknowledgedNotificationParamsSchema:()=>s,SubscriptionsAcknowledgedNotificationSchema:()=>mt,SubscriptionsListenRequestParamsSchema:()=>gn,SubscriptionsListenRequestSchema:()=>Jt,SubscriptionsListenResultMetaSchema:()=>ln,SubscriptionsListenResultSchema:()=>At,TaskAugmentedRequestParamsSchema:()=>Qt,TaskCreationParamsSchema:()=>fn,TaskMetadataSchema:()=>st,TaskSchema:()=>Bt,TaskStatusNotificationParamsSchema:()=>bn,TaskStatusNotificationSchema:()=>dt,TaskStatusSchema:()=>vt,TextContentSchema:()=>tn,TextResourceContentsSchema:()=>Wt,TitledMultiSelectEnumSchemaSchema:()=>Et,TitledSingleSelectEnumSchemaSchema:()=>St,ToolAnnotationsSchema:()=>Qe,ToolChoiceSchema:()=>wn,ToolExecutionSchema:()=>In,ToolListChangedNotificationSchema:()=>it,ToolResultContentSchema:()=>Mn,ToolSchema:()=>Ee,ToolUseContentSchema:()=>_,UnsubscribeRequestParamsSchema:()=>On,UnsubscribeRequestSchema:()=>Ae,UntitledMultiSelectEnumSchemaSchema:()=>T,UntitledSingleSelectEnumSchemaSchema:()=>x});V.InvalidRequest,V.UnsupportedProtocolVersion,V.InvalidParams,V.MethodNotFound,V.InvalidParams,V.MissingRequiredClientCapability,V.ParseError,V.InvalidRequest,V.MethodNotFound,V.UnsupportedProtocolVersion,V.MissingRequiredClientCapability;function ar(t,n){return e(t,n)}function U(e){return new Set(e.flatMap(e=>Object.keys(e.shape)))}function or(e){if(e==null)return!1;let t=typeof e;return t!==`object`&&t!==`function`||!(`~standard`in e)?!1:typeof e[`~standard`]?.validate==`function`}var sr=!1,cr=`draft-2020-12`;function lr(e,n=`input`){let r=e[`~standard`],i;if(r.jsonSchema)i=r.jsonSchema[n]({target:cr});else if(r.vendor===`zod`){if(!(`_zod`in e))throw Error(`Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().`);sr||(sr=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),i=t(e,{target:cr,io:n})}else throw Error(`Schema library "${r.vendor}" does not implement StandardJSONSchemaV1 (\`~standard.jsonSchema\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(n===`output`)return i.type===void 0&&ur(i)?{type:`object`,...i}:i;if(i.type!==void 0&&i.type!==`object`)throw Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(i.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:`object`,...i}}function ur(e){if(`properties`in e||`patternProperties`in e||`additionalProperties`in e||`required`in e)return!0;for(let t of[`oneOf`,`anyOf`,`allOf`]){let n=e[t];if(Array.isArray(n)&&n.length>0)return n.every(e=>typeof e==`object`&&!!e&&(e.type===`object`||ur(e)))}return!1}function dr(e){let n=t(e,{target:cr,io:`input`});return typeof n.pattern==`string`?n.pattern:void 0}var fr=/\\\.\\d\{(\d+)\}/;function pr(e){let t=fr.exec(e),n=[void 0,-1,0];return t&&n.push(Number(t[1])),[!1,!0].flatMap(e=>[!1,!0].flatMap(t=>n.map(n=>r({local:e,offset:t,precision:n}))))}function mr(e,t){let r;switch(e){case`email`:r=[a()];break;case`uri`:r=[n()];break;case`date`:r=[i()];break;case`date-time`:r=pr(t)}return new Set(r.map(e=>dr(e)).filter(e=>e!==void 0))}function hr(e,t,n){return n!==`zod`||mr(e,t).has(t)}function W(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function gr(e){try{return lr(e,`input`)}catch(e){let t=e instanceof Error?e.message:String(e);throw new H(V.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${t}`)}}var _r=new Set([`$comment`,`deprecated`,`description`,`examples`,`readOnly`,`title`,`writeOnly`]);function vr(e){return _r.has(e)||e.startsWith(`x-`)}var yr=new Set([`$schema`,...Object.keys(D.shape.requestedSchema.shape)]),br={string:U([Ge,x,St,Tn]),number:U([m]),integer:U([m]),boolean:U([Xt]),array:U([T,Et])},xr=new Set(Ge.shape.format.unwrap().options);function Sr(e,t,n,r){if(!W(e))return e;let i=typeof e.type==`string`&&Object.hasOwn(br,e.type)?br[e.type]:void 0;if(i===void 0)return e;let a={};for(let[o,s]of Object.entries(e))i.has(o)||vr(o)?a[o]=s:o===`pattern`&&e.type===`string`&&typeof e.format==`string`?xr.has(e.format)?typeof s==`string`&&hr(e.format,s,n)||r.push(`${t}.${o}`):a[o]=s:r.push(`${t}.${o}`);return a}function Cr(e,t){let n={},r=[];for(let[i,a]of Object.entries(e))i===`properties`&&W(a)?n[i]=Object.fromEntries(Object.entries(a).map(([e,n])=>[e,Sr(n,`properties.${e}`,t,r)])):yr.has(i)?n[i]=a:vr(i)||r.push(i);if(r.length>0)throw new H(V.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(`, `)}`);return n}function wr(e,t){if(!W(e.properties))return t;let n=Object.entries(e.properties).filter(([,e])=>!ar(cn,e).success).map(([e])=>`properties.${e}`);return n.length>0?n.join(`, `):t}function Tr(e,t,n=``){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((e,r)=>Tr(e,t[r],`${n}[${r}]`)):!W(e)||!W(t)?[]:Object.entries(e).flatMap(([e,r])=>{let i=n?`${n}.${e}`:e;return Object.prototype.hasOwnProperty.call(t,e)?Tr(r,t[e],i):vr(e)?[]:[i]})}function Er(e){if(!or(e.requestedSchema))return{...e,mode:`form`,requestedSchema:e.requestedSchema};let t=e.requestedSchema[`~standard`].vendor,n=Cr(gr(e.requestedSchema),t),r=ar(D.shape.requestedSchema,n);if(!r.success)throw new H(V.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${wr(n,r.error.message)}`);let i=Tr(n,r.data);if(i.length>0)throw new H(V.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${i.join(`, `)}`);let a=(r.data.required??[]).filter(e=>!Object.prototype.hasOwnProperty.call(r.data.properties,e));if(a.length>0)throw new H(V.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${a.join(`, `)}`);return{...e,mode:`form`,requestedSchema:r.data}}function Dr(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,n=typeof e.requestState==`string`;if(!t&&!n)throw TypeError(`inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)`);return{resultType:`input_required`,...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}Object.assign(Dr,{elicit(e){try{return{method:`elicitation/create`,params:Er(e)}}catch(e){throw e instanceof H?TypeError(e.message,{cause:e}):e}},elicitUrl(e){return{method:`elicitation/create`,params:{...e,mode:`url`}}},createMessage(e){return{method:`sampling/createMessage`,params:e}},listRoots(){return{method:`roots/list`}}});var Or=`AnnotationsSchema.AudioContentSchema.BaseMetadataSchema.BlobResourceContentsSchema.BooleanSchemaSchema.CallToolRequestSchema.CallToolRequestParamsSchema.CallToolResultSchema.CancelledNotificationSchema.CancelledNotificationParamsSchema.CancelTaskRequestSchema.CancelTaskResultSchema.ClientCapabilitiesSchema.ClientNotificationSchema.ClientRequestSchema.ClientResultSchema.CompatibilityCallToolResultSchema.CompleteRequestSchema.CompleteRequestParamsSchema.CompleteResultSchema.ContentBlockSchema.CreateMessageRequestSchema.CreateMessageRequestParamsSchema.CreateMessageResultSchema.CreateMessageResultWithToolsSchema.CreateTaskResultSchema.CursorSchema.DiscoverRequestSchema.DiscoverResultSchema.ElicitationCompleteNotificationSchema.ElicitationCompleteNotificationParamsSchema.ElicitRequestSchema.ElicitRequestFormParamsSchema.ElicitRequestParamsSchema.ElicitRequestURLParamsSchema.ElicitResultSchema.EmbeddedResourceSchema.EmptyResultSchema.EnumSchemaSchema.GetPromptRequestSchema.GetPromptRequestParamsSchema.GetPromptResultSchema.GetTaskPayloadRequestSchema.GetTaskPayloadResultSchema.GetTaskRequestSchema.GetTaskResultSchema.IconSchema.IconsSchema.ImageContentSchema.ImplementationSchema.InitializedNotificationSchema.InitializeRequestSchema.InitializeRequestParamsSchema.InitializeResultSchema.JSONArraySchema.JSONObjectSchema.JSONRPCErrorResponseSchema.JSONRPCMessageSchema.JSONRPCNotificationSchema.JSONRPCRequestSchema.JSONRPCResponseSchema.JSONRPCResultResponseSchema.JSONValueSchema.LegacyTitledEnumSchemaSchema.ListPromptsRequestSchema.ListPromptsResultSchema.ListResourcesRequestSchema.ListResourcesResultSchema.ListResourceTemplatesRequestSchema.ListResourceTemplatesResultSchema.ListRootsRequestSchema.ListRootsResultSchema.ListTasksRequestSchema.ListTasksResultSchema.ListToolsRequestSchema.ListToolsResultSchema.LoggingLevelSchema.LoggingMessageNotificationSchema.LoggingMessageNotificationParamsSchema.ModelHintSchema.ModelPreferencesSchema.MultiSelectEnumSchemaSchema.NotificationSchema.NumberSchemaSchema.PaginatedRequestSchema.PaginatedRequestParamsSchema.PaginatedResultSchema.PingRequestSchema.PrimitiveSchemaDefinitionSchema.ProgressSchema.ProgressNotificationSchema.ProgressNotificationParamsSchema.ProgressTokenSchema.PromptSchema.PromptArgumentSchema.PromptListChangedNotificationSchema.PromptMessageSchema.PromptReferenceSchema.ReadResourceRequestSchema.ReadResourceRequestParamsSchema.ReadResourceResultSchema.RelatedTaskMetadataSchema.RequestSchema.RequestIdSchema.RequestMetaSchema.ResourceSchema.ResourceContentsSchema.ResourceLinkSchema.ResourceListChangedNotificationSchema.ResourceRequestParamsSchema.ResourceTemplateSchema.ResourceTemplateReferenceSchema.ResourceUpdatedNotificationSchema.ResourceUpdatedNotificationParamsSchema.ResultMetaObjectSchema.ResultSchema.RoleSchema.RootSchema.RootsListChangedNotificationSchema.SamplingContentSchema.SamplingMessageSchema.SamplingMessageContentBlockSchema.ServerCapabilitiesSchema.ServerNotificationSchema.ServerRequestSchema.ServerResultSchema.SetLevelRequestSchema.SetLevelRequestParamsSchema.SingleSelectEnumSchemaSchema.StringSchemaSchema.SubscribeRequestSchema.SubscribeRequestParamsSchema.SubscriptionFilterSchema.SubscriptionsAcknowledgedNotificationSchema.SubscriptionsAcknowledgedNotificationParamsSchema.SubscriptionsListenRequestSchema.SubscriptionsListenRequestParamsSchema.SubscriptionsListenResultSchema.SubscriptionsListenResultMetaSchema.TaskAugmentedRequestParamsSchema.TaskCreationParamsSchema.TaskMetadataSchema.TaskSchema.TaskStatusSchema.TaskStatusNotificationSchema.TaskStatusNotificationParamsSchema.TextContentSchema.TextResourceContentsSchema.TitledMultiSelectEnumSchemaSchema.TitledSingleSelectEnumSchemaSchema.ToolSchema.ToolAnnotationsSchema.ToolChoiceSchema.ToolExecutionSchema.ToolListChangedNotificationSchema.ToolResultContentSchema.ToolUseContentSchema.UnsubscribeRequestSchema.UnsubscribeRequestParamsSchema.UntitledMultiSelectEnumSchemaSchema.UntitledSingleSelectEnumSchemaSchema`.split(`.`),kr={IdJagTokenExchangeResponseSchema:ht,OAuthClientInformationFullSchema:Le,OAuthClientInformationSchema:P,OAuthClientMetadataSchema:Pe,OAuthClientRegistrationErrorSchema:Be,OAuthErrorResponseSchema:j,OAuthMetadataSchema:I,OAuthProtectedResourceMetadataSchema:on,OAuthTokenRevocationRequestSchema:re,OAuthTokensSchema:Ke,OpenIdProviderDiscoveryMetadataSchema:Ue,OpenIdProviderMetadataSchema:Ye},Ar={},jr={};function Mr(e,t){let n=e.slice(0,-6);Ar[n]=t,jr[n]=e=>t.safeParse(e).success}for(let e of Or)Mr(e,ir[e]);for(let[e,t]of Object.entries(kr))Mr(e,t);Object.freeze(Ar),Object.freeze(jr),R((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,r=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=i;function i(e){if(!e)throw TypeError(`argument string is required`);var i=typeof e==`object`?a(e):e;if(typeof i!=`string`)throw TypeError(`argument string is required to be a string`);var s=i.indexOf(`;`),c=s===-1?i.trim():i.slice(0,s).trim();if(!r.test(c))throw TypeError(`invalid media type`);var l=new o(c.toLowerCase());if(s!==-1){var u,d,f;for(t.lastIndex=s;d=t.exec(i);){if(d.index!==s)throw TypeError(`invalid parameter format`);s+=d[0].length,u=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(n,`$1`))),l.parameters[u]=f}if(s!==i.length)throw TypeError(`invalid parameter format`)}return l}function a(e){var t;if(typeof e.getHeader==`function`?t=e.getHeader(`content-type`):typeof e.headers==`object`&&(t=e.headers&&e.headers[`content-type`]),typeof t!=`string`)throw TypeError(`content-type header is missing from object`);return t}function o(e){this.parameters=Object.create(null),this.type=e}}))();var Nr=new Set([301,302,303,307,308]),Pr=5;function Fr(e,t){return e.protocol===t.protocol&&e.host===t.host||e.protocol===`http:`&&t.protocol===`https:`&&e.hostname===t.hostname&&!e.port&&!t.port}function Ir(e,t){let n=Nr.has(t.status)?t.headers?.get(`location`):void 0;if(n)try{return new URL(n,e)}catch{return}}var Lr=new WeakSet;function Rr(e){return Lr.has(e)?e:async(t,n)=>{if(n?.redirect===`error`||n?.redirect===`manual`)return e(t,n);let r=(n?.method??`GET`).toUpperCase(),i=t;for(let t=0;;t++){let a=await e(i,{...n,redirect:`manual`}),o=Ir(i,a);if(!o||t===Pr)return a;let s=new URL(i),c=r===`GET`||a.status===307||a.status===308,l=!(o.username||o.password)||o.username===s.username&&o.password===s.password;if(!c||!l||!Fr(s,o))return a;await a.text?.().catch(()=>{}),i=o}}}var G=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i<t.length;)s(n,t[i]),n.push(e[++i]);return new r(n)}e._=i;let a=new r(`+`);function o(e,...t){let n=[p(e[0])],i=0;for(;i<t.length;)n.push(a),s(n,t[i]),n.push(a,p(e[++i]));return c(n),new r(n)}e.str=o;function s(e,t){t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push(d(t))}e.addCodeArg=s;function c(e){let t=1;for(;t<e.length-1;){if(e[t]===a){let n=l(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=`+`}t++}}function l(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof n||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof n))return`"${e}${t.slice(1)}`}function u(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`}e.strConcat=u;function d(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:p(Array.isArray(e)?e.join(`,`):e)}function f(e){return new r(p(e))}e.stringify=f;function p(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=p;function m(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`}e.getProperty=m;function h(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new r(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=h;function g(e){return new r(e.toString())}e.regexpCode=g})),zr=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;let t=G();var n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;let o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}})),K=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;let t=G(),n=zr();var r=G();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=zr();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=k(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=k(this.rhs,e,n),this}get names(){return O(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=k(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(A(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>D(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(j(t),n instanceof e?[n]:n.nodes);if(t!==!1&&this.nodes.length)return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=k(this.condition,e,t),this}get names(){let e=super.names;return O(e,this.condition),this.else&&D(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=k(this.iteration,e,t),this}get names(){return D(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return O(O(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=k(this.iterable,e,t),this}get names(){return D(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var w=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&D(e,this.catch.names),this.finally&&D(e,this.finally.names),e}},T=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};T.kind=`catch`;var E=class extends m{render(e){return`finally`+super.render(e)}};E.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
1
+ import{D as e,O as t,T as n,n as r,t as i,u as a}from"./iso-DzqMxtky.js";import{$ as o,$n as s,$t as c,A as l,An as u,At as d,B as f,Bn as p,Bt as m,C as h,Cn as g,Cr as _,Ct as v,D as y,Dn as b,Dr as x,Dt as S,E as C,En as w,Er as T,Et as E,F as D,Ft as O,G as k,Gn as A,Gt as j,H as M,Hn as N,Ht as P,I as ee,It as te,J as F,Jn as ne,Jt as re,K as ie,Kn as ae,Kt as I,L as oe,Lt as se,Mn as ce,Mt as le,N as ue,Nn as de,Nt as fe,O as pe,On as me,Ot as he,P as ge,Pn as _e,Pt as ve,Q as ye,Qn as be,R as xe,Rn as Se,Rt as Ce,S as we,Sn as Te,Sr as Ee,St as De,T as Oe,Tn as ke,Tr as Ae,Tt as je,U as Me,Un as Ne,Ut as Pe,V as Fe,Vn as Ie,Vt as Le,W as Re,Wn as ze,Wt as Be,X as Ve,Xn as He,Xt as Ue,Y as We,Yn as Ge,Yt as Ke,Z as qe,Zn as Je,Zt as Ye,_ as Xe,_n as Ze,_r as Qe,a as $e,an as et,at as tt,b as nt,bn as rt,br as it,bt as at,cn as ot,cr as st,ct,d as lt,dn as ut,dr as dt,dt as ft,en as pt,er as mt,et as ht,f as gt,fn as _t,fr as vt,ft as yt,g as bt,gn as xt,gr as St,gt as Ct,h as wt,hn as Tt,hr as Et,ht as Dt,i as Ot,in as kt,ir as At,it as jt,j as Mt,jn as Nt,jt as Pt,k as Ft,kn as It,kt as Lt,l as Rt,ln as zt,lr as Bt,lt as Vt,m as Ht,mn as Ut,mr as Wt,mt as Gt,n as Kt,nn as qt,nr as Jt,nt as Yt,o as Xt,on as Zt,or as Qt,ot as $t,p as en,pr as tn,pt as nn,q as rn,qn as an,qt as on,r as sn,rn as cn,rr as ln,rt as un,sn as dn,sr as fn,st as pn,t as mn,tn as hn,tr as gn,tt as _n,u as vn,un as yn,ur as bn,ut as xn,v as Sn,vn as Cn,vr as wn,vt as Tn,w as En,wn as Dn,wr as On,wt as kn,x as An,xn as jn,xr as Mn,xt as Nn,y as Pn,yn as Fn,yr as In,yt as Ln,z as Rn,zn,zt as Bn}from"./auth-BNDyLTqp-z6VNZXaE.js";import"./internal-oUS6BQ43.js";var Vn=Object.create,L=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,Un=Object.getOwnPropertyNames,Wn=Object.getPrototypeOf,Gn=Object.prototype.hasOwnProperty,R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kn=(e,t)=>{let n={};for(var r in e)L(n,r,{get:e[r],enumerable:!0});return t&&L(n,Symbol.toStringTag,{value:`Module`}),n},qn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Un(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Gn.call(e,s)&&s!==n&&L(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Hn(t,s))||r.enumerable});return e},Jn=(e,t,n)=>(n=e==null?{}:Vn(Wn(e)),qn(t||!e||!e.__esModule?L(n,`default`,{value:e,enumerable:!0}):n,e)),Yn=Symbol.for(`mcp.sdk.errorBrands`);function z(e,t){let n=new Set,r=t;for(;typeof r==`function`;){let e=r.mcpBrand;Object.prototype.hasOwnProperty.call(r,`mcpBrand`)&&typeof e==`string`&&n.add(e),r=Object.getPrototypeOf(r)}n.size!==0&&Object.defineProperty(e,Yn,{value:n,enumerable:!1,configurable:!0})}function B(e,t){try{if(typeof t==`object`&&t&&Object.prototype.hasOwnProperty.call(e,`mcpBrand`)&&typeof e.mcpBrand==`string`&&Object.prototype.hasOwnProperty.call(t,Yn)){let n=t[Yn];if(n&&typeof n.has==`function`&&n.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}var Xn=function(e){return e.InvalidRequest=`invalid_request`,e.InvalidClient=`invalid_client`,e.InvalidGrant=`invalid_grant`,e.UnauthorizedClient=`unauthorized_client`,e.UnsupportedGrantType=`unsupported_grant_type`,e.InvalidScope=`invalid_scope`,e.AccessDenied=`access_denied`,e.ServerError=`server_error`,e.TemporarilyUnavailable=`temporarily_unavailable`,e.UnsupportedResponseType=`unsupported_response_type`,e.UnsupportedTokenType=`unsupported_token_type`,e.InvalidToken=`invalid_token`,e.MethodNotAllowed=`method_not_allowed`,e.TooManyRequests=`too_many_requests`,e.InvalidClientMetadata=`invalid_client_metadata`,e.InvalidRedirectUri=`invalid_redirect_uri`,e.InsufficientScope=`insufficient_scope`,e.InvalidTarget=`invalid_target`,e.InvalidDpopProof=`invalid_dpop_proof`,e.UseDpopNonce=`use_dpop_nonce`,e}({}),Zn=class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.OAuthError`})}static[Symbol.hasInstance](e){return B(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return B(this,e)}constructor(e,t,n){super(t),this.code=e,this.errorUri=n,this.name=`OAuthError`,z(this,new.target)}toResponseObject(){let e={error:this.code,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}static fromResponse(t){return new e(t.error,t.error_description??t.error,t.error_uri)}},Qn=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkError`})}static[Symbol.hasInstance](e){return B(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return B(this,e)}constructor(e,t,n,r){super(t,r),this.code=e,this.data=n,this.name=`SdkError`,z(this,new.target)}};(class extends Qn{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkHttpError`})}constructor(e,t,n,r){super(e,t,n,r),this.name=`SdkHttpError`}get status(){return this.data.status}get statusText(){return this.data.statusText}});function $n(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={...e};return delete t.issuer,t}var V=function(e){return e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.ResourceNotFound=-32002]=`ResourceNotFound`,e[e.MissingRequiredClientCapability=-32021]=`MissingRequiredClientCapability`,e[e.UnsupportedProtocolVersion=-32022]=`UnsupportedProtocolVersion`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`,e}({}),H=class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ProtocolError`})}static[Symbol.hasInstance](e){return B(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return B(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name=`ProtocolError`,z(this,new.target)}static fromError(t,n,r){if(t===V.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new tr(e.elicitations,n)}if(t===V.UnsupportedProtocolVersion&&r){let e=r;if(Array.isArray(e.supported)&&typeof e.requested==`string`)return new nr({supported:e.supported,requested:e.requested},n)}if(t===V.InvalidParams||t===V.ResourceNotFound){let e=r;if(typeof e?.uri==`string`&&(t===V.ResourceNotFound||Object.keys(e).length===1))return new er(e.uri,n)}if(t===V.MissingRequiredClientCapability&&r){let e=r;if(e.requiredCapabilities!==null&&typeof e.requiredCapabilities==`object`&&!Array.isArray(e.requiredCapabilities))return new rr({requiredCapabilities:e.requiredCapabilities},n)}return new e(t,n,r)}},er=class extends H{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ResourceNotFoundError`})}constructor(e,t=`Resource not found: ${e}`){super(V.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},tr=class extends H{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UrlElicitationRequiredError`})}constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(V.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},nr=class extends H{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UnsupportedProtocolVersionError`})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(V.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},rr=class extends H{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.MissingRequiredClientCapabilityError`})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(`, `)}`){super(V.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},ir=Kn({AnnotationsSchema:()=>mn,AudioContentSchema:()=>Kt,BaseMetadataSchema:()=>sn,BaseRequestParamsSchema:()=>Ot,BlobResourceContentsSchema:()=>$e,BooleanSchemaSchema:()=>Xt,CallToolRequestParamsSchema:()=>Rt,CallToolRequestSchema:()=>vn,CallToolResultSchema:()=>lt,CancelTaskRequestSchema:()=>gt,CancelTaskResultSchema:()=>en,CancelledNotificationParamsSchema:()=>Ht,CancelledNotificationSchema:()=>wt,ClientCapabilitiesSchema:()=>bt,ClientNotificationSchema:()=>Xe,ClientRequestSchema:()=>Sn,ClientResultSchema:()=>Pn,ClientTasksCapabilitySchema:()=>nt,CompatibilityCallToolResultSchema:()=>An,CompleteRequestParamsSchema:()=>we,CompleteRequestSchema:()=>h,CompleteResultSchema:()=>En,ContentBlockSchema:()=>Oe,CreateMessageRequestParamsSchema:()=>C,CreateMessageRequestSchema:()=>y,CreateMessageResultSchema:()=>pe,CreateMessageResultWithToolsSchema:()=>Ft,CreateTaskResultSchema:()=>l,CursorSchema:()=>Mt,DiscoverRequestSchema:()=>ue,DiscoverResultSchema:()=>ge,ElicitRequestFormParamsSchema:()=>D,ElicitRequestParamsSchema:()=>ee,ElicitRequestSchema:()=>oe,ElicitRequestURLParamsSchema:()=>xe,ElicitResultSchema:()=>Rn,ElicitationCompleteNotificationParamsSchema:()=>f,ElicitationCompleteNotificationSchema:()=>Fe,EmbeddedResourceSchema:()=>M,EmptyResultSchema:()=>Me,EnumSchemaSchema:()=>Re,GetPromptRequestParamsSchema:()=>k,GetPromptRequestSchema:()=>ie,GetPromptResultSchema:()=>rn,GetTaskPayloadRequestSchema:()=>F,GetTaskPayloadResultSchema:()=>We,GetTaskRequestSchema:()=>Ve,GetTaskResultSchema:()=>qe,IconSchema:()=>ye,IconsSchema:()=>o,ImageContentSchema:()=>_n,ImplementationSchema:()=>Yt,InitializeRequestParamsSchema:()=>un,InitializeRequestSchema:()=>jt,InitializeResultSchema:()=>tt,InitializedNotificationSchema:()=>$t,JSONArraySchema:()=>pn,JSONObjectSchema:()=>ct,JSONRPCErrorResponseSchema:()=>Vt,JSONRPCMessageSchema:()=>xn,JSONRPCNotificationSchema:()=>ft,JSONRPCRequestSchema:()=>yt,JSONRPCResponseSchema:()=>nn,JSONRPCResultResponseSchema:()=>Gt,JSONValueSchema:()=>Dt,LegacyTitledEnumSchemaSchema:()=>Tn,ListChangedOptionsBaseSchema:()=>Ln,ListPromptsRequestSchema:()=>at,ListPromptsResultSchema:()=>Nn,ListResourceTemplatesRequestSchema:()=>De,ListResourceTemplatesResultSchema:()=>v,ListResourcesRequestSchema:()=>kn,ListResourcesResultSchema:()=>je,ListRootsRequestSchema:()=>E,ListRootsResultSchema:()=>S,ListTasksRequestSchema:()=>he,ListTasksResultSchema:()=>Lt,ListToolsRequestSchema:()=>d,ListToolsResultSchema:()=>Pt,LoggingLevelSchema:()=>le,LoggingMessageNotificationParamsSchema:()=>fe,LoggingMessageNotificationSchema:()=>ve,ModelHintSchema:()=>O,ModelPreferencesSchema:()=>te,MultiSelectEnumSchemaSchema:()=>se,NotificationSchema:()=>Ce,NotificationsParamsSchema:()=>Bn,NumberSchemaSchema:()=>m,PaginatedRequestParamsSchema:()=>c,PaginatedRequestSchema:()=>pt,PaginatedResultSchema:()=>hn,PingRequestSchema:()=>qt,PrimitiveSchemaDefinitionSchema:()=>cn,ProgressNotificationParamsSchema:()=>kt,ProgressNotificationSchema:()=>et,ProgressSchema:()=>Zt,ProgressTokenSchema:()=>dn,PromptArgumentSchema:()=>ot,PromptListChangedNotificationSchema:()=>zt,PromptMessageSchema:()=>yn,PromptReferenceSchema:()=>ut,PromptSchema:()=>_t,ReadResourceRequestParamsSchema:()=>Ut,ReadResourceRequestSchema:()=>Tt,ReadResourceResultSchema:()=>xt,RelatedTaskMetadataSchema:()=>Ze,RequestIdSchema:()=>Cn,RequestMetaSchema:()=>Fn,RequestSchema:()=>rt,ResourceContentsSchema:()=>jn,ResourceLinkSchema:()=>Te,ResourceListChangedNotificationSchema:()=>g,ResourceRequestParamsSchema:()=>Dn,ResourceSchema:()=>ke,ResourceTemplateReferenceSchema:()=>w,ResourceTemplateSchema:()=>b,ResourceUpdatedNotificationParamsSchema:()=>me,ResourceUpdatedNotificationSchema:()=>It,ResultMetaObjectSchema:()=>u,ResultSchema:()=>Nt,RoleSchema:()=>ce,RootSchema:()=>de,RootsListChangedNotificationSchema:()=>_e,SamplingContentSchema:()=>Se,SamplingMessageContentBlockSchema:()=>zn,SamplingMessageSchema:()=>p,ServerCapabilitiesSchema:()=>Ie,ServerNotificationSchema:()=>N,ServerRequestSchema:()=>Ne,ServerResultSchema:()=>ze,ServerTasksCapabilitySchema:()=>A,SetLevelRequestParamsSchema:()=>ae,SetLevelRequestSchema:()=>an,SingleSelectEnumSchemaSchema:()=>ne,StringSchemaSchema:()=>Ge,SubscribeRequestParamsSchema:()=>He,SubscribeRequestSchema:()=>Je,SubscriptionFilterSchema:()=>be,SubscriptionsAcknowledgedNotificationParamsSchema:()=>s,SubscriptionsAcknowledgedNotificationSchema:()=>mt,SubscriptionsListenRequestParamsSchema:()=>gn,SubscriptionsListenRequestSchema:()=>Jt,SubscriptionsListenResultMetaSchema:()=>ln,SubscriptionsListenResultSchema:()=>At,TaskAugmentedRequestParamsSchema:()=>Qt,TaskCreationParamsSchema:()=>fn,TaskMetadataSchema:()=>st,TaskSchema:()=>Bt,TaskStatusNotificationParamsSchema:()=>bn,TaskStatusNotificationSchema:()=>dt,TaskStatusSchema:()=>vt,TextContentSchema:()=>tn,TextResourceContentsSchema:()=>Wt,TitledMultiSelectEnumSchemaSchema:()=>Et,TitledSingleSelectEnumSchemaSchema:()=>St,ToolAnnotationsSchema:()=>Qe,ToolChoiceSchema:()=>wn,ToolExecutionSchema:()=>In,ToolListChangedNotificationSchema:()=>it,ToolResultContentSchema:()=>Mn,ToolSchema:()=>Ee,ToolUseContentSchema:()=>_,UnsubscribeRequestParamsSchema:()=>On,UnsubscribeRequestSchema:()=>Ae,UntitledMultiSelectEnumSchemaSchema:()=>T,UntitledSingleSelectEnumSchemaSchema:()=>x});V.InvalidRequest,V.UnsupportedProtocolVersion,V.InvalidParams,V.MethodNotFound,V.InvalidParams,V.MissingRequiredClientCapability,V.ParseError,V.InvalidRequest,V.MethodNotFound,V.UnsupportedProtocolVersion,V.MissingRequiredClientCapability;function ar(t,n){return e(t,n)}function U(e){return new Set(e.flatMap(e=>Object.keys(e.shape)))}function or(e){if(e==null)return!1;let t=typeof e;return t!==`object`&&t!==`function`||!(`~standard`in e)?!1:typeof e[`~standard`]?.validate==`function`}var sr=!1,cr=`draft-2020-12`;function lr(e,n=`input`){let r=e[`~standard`],i;if(r.jsonSchema)i=r.jsonSchema[n]({target:cr});else if(r.vendor===`zod`){if(!(`_zod`in e))throw Error(`Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().`);sr||(sr=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),i=t(e,{target:cr,io:n})}else throw Error(`Schema library "${r.vendor}" does not implement StandardJSONSchemaV1 (\`~standard.jsonSchema\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(n===`output`)return i.type===void 0&&ur(i)?{type:`object`,...i}:i;if(i.type!==void 0&&i.type!==`object`)throw Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(i.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:`object`,...i}}function ur(e){if(`properties`in e||`patternProperties`in e||`additionalProperties`in e||`required`in e)return!0;for(let t of[`oneOf`,`anyOf`,`allOf`]){let n=e[t];if(Array.isArray(n)&&n.length>0)return n.every(e=>typeof e==`object`&&!!e&&(e.type===`object`||ur(e)))}return!1}function dr(e){let n=t(e,{target:cr,io:`input`});return typeof n.pattern==`string`?n.pattern:void 0}var fr=/\\\.\\d\{(\d+)\}/;function pr(e){let t=fr.exec(e),n=[void 0,-1,0];return t&&n.push(Number(t[1])),[!1,!0].flatMap(e=>[!1,!0].flatMap(t=>n.map(n=>r({local:e,offset:t,precision:n}))))}function mr(e,t){let r;switch(e){case`email`:r=[a()];break;case`uri`:r=[n()];break;case`date`:r=[i()];break;case`date-time`:r=pr(t)}return new Set(r.map(e=>dr(e)).filter(e=>e!==void 0))}function hr(e,t,n){return n!==`zod`||mr(e,t).has(t)}function W(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function gr(e){try{return lr(e,`input`)}catch(e){let t=e instanceof Error?e.message:String(e);throw new H(V.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${t}`)}}var _r=new Set([`$comment`,`deprecated`,`description`,`examples`,`readOnly`,`title`,`writeOnly`]);function vr(e){return _r.has(e)||e.startsWith(`x-`)}var yr=new Set([`$schema`,...Object.keys(D.shape.requestedSchema.shape)]),br={string:U([Ge,x,St,Tn]),number:U([m]),integer:U([m]),boolean:U([Xt]),array:U([T,Et])},xr=new Set(Ge.shape.format.unwrap().options);function Sr(e,t,n,r){if(!W(e))return e;let i=typeof e.type==`string`&&Object.hasOwn(br,e.type)?br[e.type]:void 0;if(i===void 0)return e;let a={};for(let[o,s]of Object.entries(e))i.has(o)||vr(o)?a[o]=s:o===`pattern`&&e.type===`string`&&typeof e.format==`string`?xr.has(e.format)?typeof s==`string`&&hr(e.format,s,n)||r.push(`${t}.${o}`):a[o]=s:r.push(`${t}.${o}`);return a}function Cr(e,t){let n={},r=[];for(let[i,a]of Object.entries(e))i===`properties`&&W(a)?n[i]=Object.fromEntries(Object.entries(a).map(([e,n])=>[e,Sr(n,`properties.${e}`,t,r)])):yr.has(i)?n[i]=a:vr(i)||r.push(i);if(r.length>0)throw new H(V.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(`, `)}`);return n}function wr(e,t){if(!W(e.properties))return t;let n=Object.entries(e.properties).filter(([,e])=>!ar(cn,e).success).map(([e])=>`properties.${e}`);return n.length>0?n.join(`, `):t}function Tr(e,t,n=``){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((e,r)=>Tr(e,t[r],`${n}[${r}]`)):!W(e)||!W(t)?[]:Object.entries(e).flatMap(([e,r])=>{let i=n?`${n}.${e}`:e;return Object.prototype.hasOwnProperty.call(t,e)?Tr(r,t[e],i):vr(e)?[]:[i]})}function Er(e){if(!or(e.requestedSchema))return{...e,mode:`form`,requestedSchema:e.requestedSchema};let t=e.requestedSchema[`~standard`].vendor,n=Cr(gr(e.requestedSchema),t),r=ar(D.shape.requestedSchema,n);if(!r.success)throw new H(V.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${wr(n,r.error.message)}`);let i=Tr(n,r.data);if(i.length>0)throw new H(V.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${i.join(`, `)}`);let a=(r.data.required??[]).filter(e=>!Object.prototype.hasOwnProperty.call(r.data.properties,e));if(a.length>0)throw new H(V.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${a.join(`, `)}`);return{...e,mode:`form`,requestedSchema:r.data}}function Dr(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,n=typeof e.requestState==`string`;if(!t&&!n)throw TypeError(`inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)`);return{resultType:`input_required`,...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}Object.assign(Dr,{elicit(e){try{return{method:`elicitation/create`,params:Er(e)}}catch(e){throw e instanceof H?TypeError(e.message,{cause:e}):e}},elicitUrl(e){return{method:`elicitation/create`,params:{...e,mode:`url`}}},createMessage(e){return{method:`sampling/createMessage`,params:e}},listRoots(){return{method:`roots/list`}}});var Or=`AnnotationsSchema.AudioContentSchema.BaseMetadataSchema.BlobResourceContentsSchema.BooleanSchemaSchema.CallToolRequestSchema.CallToolRequestParamsSchema.CallToolResultSchema.CancelledNotificationSchema.CancelledNotificationParamsSchema.CancelTaskRequestSchema.CancelTaskResultSchema.ClientCapabilitiesSchema.ClientNotificationSchema.ClientRequestSchema.ClientResultSchema.CompatibilityCallToolResultSchema.CompleteRequestSchema.CompleteRequestParamsSchema.CompleteResultSchema.ContentBlockSchema.CreateMessageRequestSchema.CreateMessageRequestParamsSchema.CreateMessageResultSchema.CreateMessageResultWithToolsSchema.CreateTaskResultSchema.CursorSchema.DiscoverRequestSchema.DiscoverResultSchema.ElicitationCompleteNotificationSchema.ElicitationCompleteNotificationParamsSchema.ElicitRequestSchema.ElicitRequestFormParamsSchema.ElicitRequestParamsSchema.ElicitRequestURLParamsSchema.ElicitResultSchema.EmbeddedResourceSchema.EmptyResultSchema.EnumSchemaSchema.GetPromptRequestSchema.GetPromptRequestParamsSchema.GetPromptResultSchema.GetTaskPayloadRequestSchema.GetTaskPayloadResultSchema.GetTaskRequestSchema.GetTaskResultSchema.IconSchema.IconsSchema.ImageContentSchema.ImplementationSchema.InitializedNotificationSchema.InitializeRequestSchema.InitializeRequestParamsSchema.InitializeResultSchema.JSONArraySchema.JSONObjectSchema.JSONRPCErrorResponseSchema.JSONRPCMessageSchema.JSONRPCNotificationSchema.JSONRPCRequestSchema.JSONRPCResponseSchema.JSONRPCResultResponseSchema.JSONValueSchema.LegacyTitledEnumSchemaSchema.ListPromptsRequestSchema.ListPromptsResultSchema.ListResourcesRequestSchema.ListResourcesResultSchema.ListResourceTemplatesRequestSchema.ListResourceTemplatesResultSchema.ListRootsRequestSchema.ListRootsResultSchema.ListTasksRequestSchema.ListTasksResultSchema.ListToolsRequestSchema.ListToolsResultSchema.LoggingLevelSchema.LoggingMessageNotificationSchema.LoggingMessageNotificationParamsSchema.ModelHintSchema.ModelPreferencesSchema.MultiSelectEnumSchemaSchema.NotificationSchema.NumberSchemaSchema.PaginatedRequestSchema.PaginatedRequestParamsSchema.PaginatedResultSchema.PingRequestSchema.PrimitiveSchemaDefinitionSchema.ProgressSchema.ProgressNotificationSchema.ProgressNotificationParamsSchema.ProgressTokenSchema.PromptSchema.PromptArgumentSchema.PromptListChangedNotificationSchema.PromptMessageSchema.PromptReferenceSchema.ReadResourceRequestSchema.ReadResourceRequestParamsSchema.ReadResourceResultSchema.RelatedTaskMetadataSchema.RequestSchema.RequestIdSchema.RequestMetaSchema.ResourceSchema.ResourceContentsSchema.ResourceLinkSchema.ResourceListChangedNotificationSchema.ResourceRequestParamsSchema.ResourceTemplateSchema.ResourceTemplateReferenceSchema.ResourceUpdatedNotificationSchema.ResourceUpdatedNotificationParamsSchema.ResultMetaObjectSchema.ResultSchema.RoleSchema.RootSchema.RootsListChangedNotificationSchema.SamplingContentSchema.SamplingMessageSchema.SamplingMessageContentBlockSchema.ServerCapabilitiesSchema.ServerNotificationSchema.ServerRequestSchema.ServerResultSchema.SetLevelRequestSchema.SetLevelRequestParamsSchema.SingleSelectEnumSchemaSchema.StringSchemaSchema.SubscribeRequestSchema.SubscribeRequestParamsSchema.SubscriptionFilterSchema.SubscriptionsAcknowledgedNotificationSchema.SubscriptionsAcknowledgedNotificationParamsSchema.SubscriptionsListenRequestSchema.SubscriptionsListenRequestParamsSchema.SubscriptionsListenResultSchema.SubscriptionsListenResultMetaSchema.TaskAugmentedRequestParamsSchema.TaskCreationParamsSchema.TaskMetadataSchema.TaskSchema.TaskStatusSchema.TaskStatusNotificationSchema.TaskStatusNotificationParamsSchema.TextContentSchema.TextResourceContentsSchema.TitledMultiSelectEnumSchemaSchema.TitledSingleSelectEnumSchemaSchema.ToolSchema.ToolAnnotationsSchema.ToolChoiceSchema.ToolExecutionSchema.ToolListChangedNotificationSchema.ToolResultContentSchema.ToolUseContentSchema.UnsubscribeRequestSchema.UnsubscribeRequestParamsSchema.UntitledMultiSelectEnumSchemaSchema.UntitledSingleSelectEnumSchemaSchema`.split(`.`),kr={IdJagTokenExchangeResponseSchema:ht,OAuthClientInformationFullSchema:Le,OAuthClientInformationSchema:P,OAuthClientMetadataSchema:Pe,OAuthClientRegistrationErrorSchema:Be,OAuthErrorResponseSchema:j,OAuthMetadataSchema:I,OAuthProtectedResourceMetadataSchema:on,OAuthTokenRevocationRequestSchema:re,OAuthTokensSchema:Ke,OpenIdProviderDiscoveryMetadataSchema:Ue,OpenIdProviderMetadataSchema:Ye},Ar={},jr={};function Mr(e,t){let n=e.slice(0,-6);Ar[n]=t,jr[n]=e=>t.safeParse(e).success}for(let e of Or)Mr(e,ir[e]);for(let[e,t]of Object.entries(kr))Mr(e,t);Object.freeze(Ar),Object.freeze(jr),R((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,r=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=i;function i(e){if(!e)throw TypeError(`argument string is required`);var i=typeof e==`object`?a(e):e;if(typeof i!=`string`)throw TypeError(`argument string is required to be a string`);var s=i.indexOf(`;`),c=s===-1?i.trim():i.slice(0,s).trim();if(!r.test(c))throw TypeError(`invalid media type`);var l=new o(c.toLowerCase());if(s!==-1){var u,d,f;for(t.lastIndex=s;d=t.exec(i);){if(d.index!==s)throw TypeError(`invalid parameter format`);s+=d[0].length,u=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(n,`$1`))),l.parameters[u]=f}if(s!==i.length)throw TypeError(`invalid parameter format`)}return l}function a(e){var t;if(typeof e.getHeader==`function`?t=e.getHeader(`content-type`):typeof e.headers==`object`&&(t=e.headers&&e.headers[`content-type`]),typeof t!=`string`)throw TypeError(`content-type header is missing from object`);return t}function o(e){this.parameters=Object.create(null),this.type=e}}))();var Nr=new Set([301,302,303,307,308]),Pr=5;function Fr(e,t){return e.protocol===t.protocol&&e.host===t.host||e.protocol===`http:`&&t.protocol===`https:`&&e.hostname===t.hostname&&!e.port&&!t.port}function Ir(e,t){let n=Nr.has(t.status)?t.headers?.get(`location`):void 0;if(n)try{return new URL(n,e)}catch{return}}var Lr=new WeakSet;function Rr(e){return Lr.has(e)?e:async(t,n)=>{if(n?.redirect===`error`||n?.redirect===`manual`)return e(t,n);let r=(n?.method??`GET`).toUpperCase(),i=t;for(let t=0;;t++){let a=await e(i,{...n,redirect:`manual`}),o=Ir(i,a);if(!o||t===Pr)return a;let s=new URL(i),c=r===`GET`||a.status===307||a.status===308,l=!(o.username||o.password)||o.username===s.username&&o.password===s.password;if(!c||!l||!Fr(s,o))return a;await a.text?.().catch(()=>{}),i=o}}}var G=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i<t.length;)s(n,t[i]),n.push(e[++i]);return new r(n)}e._=i;let a=new r(`+`);function o(e,...t){let n=[p(e[0])],i=0;for(;i<t.length;)n.push(a),s(n,t[i]),n.push(a,p(e[++i]));return c(n),new r(n)}e.str=o;function s(e,t){t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push(d(t))}e.addCodeArg=s;function c(e){let t=1;for(;t<e.length-1;){if(e[t]===a){let n=l(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=`+`}t++}}function l(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof n||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof n))return`"${e}${t.slice(1)}`}function u(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`}e.strConcat=u;function d(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:p(Array.isArray(e)?e.join(`,`):e)}function f(e){return new r(p(e))}e.stringify=f;function p(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=p;function m(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`}e.getProperty=m;function h(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new r(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=h;function g(e){return new r(e.toString())}e.regexpCode=g})),zr=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;let t=G();var n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;let o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}})),K=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;let t=G(),n=zr();var r=G();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=zr();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=k(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=k(this.rhs,e,n),this}get names(){return O(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=k(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(A(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>D(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(j(t),n instanceof e?[n]:n.nodes);if(t!==!1&&this.nodes.length)return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=k(this.condition,e,t),this}get names(){let e=super.names;return O(e,this.condition),this.else&&D(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=k(this.iteration,e,t),this}get names(){return D(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return O(O(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=k(this.iterable,e,t),this}get names(){return D(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var w=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&D(e,this.catch.names),this.finally&&D(e,this.finally.names),e}},T=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};T.kind=`catch`;var E=class extends m{render(e){return`finally`+super.render(e)}};E.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
2
2
  `:``},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let i=this._scope.toName(t);return n!==void 0&&r&&(this._constants[i.str]=n),this._leafNode(new o(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new c(t,e.operators.ADD,n))}code(e){return typeof e==`function`?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){let n=[`{`];for(let[r,i]of e)n.length>1&&n.push(`,`),n.push(r),(r!==i||this.opts.es5)&&(n.push(`:`),(0,t.addCodeArg)(n,i));return n.push(`}`),new t._Code(n)}if(e,t,n){if(this._blockNode(new _(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(_,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.let){let o=this._scope.toName(e);return this._for(new b(a,o,t,r),()=>i(o))}forOf(e,r,i,a=n.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=r instanceof t.Name?r:this.var(`_arr`,r);return this.forRange(`_i`,0,(0,t._)`${e}.length`,n=>{this.var(o,(0,t._)`${e}[${n}]`),i(o)})}return this._for(new x(`of`,a,o,r),()=>i(o))}forIn(e,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,t._)`Object.keys(${r})`,i);let o=this._scope.toName(e);return this._for(new x(`in`,a,o,r),()=>i(o))}endFor(){return this._endBlockNode(v)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new u(e))}return(e){let t=new C;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error(`CodeGen: "return" should have one node`);return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw Error(`CodeGen: "try" without "catch" and "finally"`);let r=new w;if(this._blockNode(r),this.code(e),t){let e=this.name(`e`);this._currNode=r.catch=new T(e),t(e)}return n&&(this._currNode=r.finally=new E,this.code(n)),this._endBlockNode(T,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new S(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-->0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof _))throw Error(`CodeGen: "else" without "if"`);return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function D(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function O(e,n){return n instanceof t._CodeOrName?D(e,n.names):e}function k(e,n,r){return e instanceof t.Name?i(e):a(e)?new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[])):e;function i(e){let t=r[e.str];return t===void 0||n[e.str]!==1?e:(delete n[e.str],t)}function a(e){return e instanceof t._Code&&e._items.some(e=>e instanceof t.Name&&n[e.str]===1&&r[e.str]!==void 0)}}function A(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function j(e){return typeof e==`boolean`||typeof e==`number`||e===null?!e:(0,t._)`!${F(e)}`}e.not=j;let M=te(e.operators.AND);function N(...e){return e.reduce(M)}e.and=N;let P=te(e.operators.OR);function ee(...e){return e.reduce(P)}e.or=ee;function te(e){return(n,r)=>n===t.nil?r:r===t.nil?n:(0,t._)`${F(n)} ${e} ${F(r)}`}function F(e){return e instanceof t.Name?e:(0,t._)`(${e})`}})),q=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;let t=K(),n=G();function r(e){let t={};for(let n of e)t[n]=!0;return t}e.toHash=r;function i(e,t){return typeof t==`boolean`?t:Object.keys(t).length===0||(a(e,t),!o(t,e.self.RULES.all))}e.alwaysValidSchema=i;function a(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t==`boolean`)return;let i=r.RULES.keywords;for(let n in t)i[n]||x(e,`unknown keyword: "${n}"`)}e.checkUnknownRules=a;function o(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(t[n])return!0;return!1}e.schemaHasRules=o;function s(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(n!==`$ref`&&t.all[n])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:e,schemaPath:n},r,i,a){if(!a){if(typeof r==`number`||typeof r==`boolean`)return r;if(typeof r==`string`)return(0,t._)`${r}`}return(0,t._)`${e}${n}${(0,t.getProperty)(i)}`}e.schemaRefOrVal=c;function l(e){return f(decodeURIComponent(e))}e.unescapeFragment=l;function u(e){return encodeURIComponent(d(e))}e.escapeFragment=u;function d(e){return typeof e==`number`?`${e}`:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.escapeJsonPointer=d;function f(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}e.unescapeJsonPointer=f;function p(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}e.eachItem=p;function m({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:i}){return(a,o,s,c)=>{let l=s===void 0?o:s instanceof t.Name?(o instanceof t.Name?e(a,o,s):n(a,o,s),s):o instanceof t.Name?(n(a,s,o),o):r(o,s);return c===t.Name&&!(l instanceof t.Name)?i(a,l):l}}e.mergeEvaluated={props:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>{e.if((0,t._)`${n} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,t._)`${r} || {}`).code((0,t._)`Object.assign(${r}, ${n})`))}),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>{n===!0?e.assign(r,!0):(e.assign(r,(0,t._)`${r} || {}`),g(e,r,n))}),mergeValues:(e,t)=>e===!0||{...e,...t},resultToName:h}),items:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>e.assign(r,(0,t._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>e.assign(r,n===!0||(0,t._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(e,t)=>e===!0||Math.max(e,t),resultToName:(e,t)=>e.var(`items`,t)})};function h(e,n){if(n===!0)return e.var(`props`,!0);let r=e.var(`props`,(0,t._)`{}`);return n!==void 0&&g(e,r,n),r}e.evaluatedPropsToName=h;function g(e,n,r){Object.keys(r).forEach(r=>e.assign((0,t._)`${n}${(0,t.getProperty)(r)}`,!0))}e.setEvaluated=g;let _={};function v(e,t){return e.scopeValue(`func`,{ref:t,code:_[t.code]||(_[t.code]=new n._Code(t.code))})}e.useFunc=v;var y;(function(e){e[e.Num=0]=`Num`,e[e.Str=1]=`Str`})(y||(e.Type=y={}));function b(e,n,r){if(e instanceof t.Name){let i=n===y.Num;return r?i?(0,t._)`"[" + ${e} + "]"`:(0,t._)`"['" + ${e} + "']"`:i?(0,t._)`"/" + ${e}`:(0,t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():`/`+d(e)}e.getErrorPath=b;function x(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}}e.checkStrictMode=x})),J=R((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=K();e.default={data:new t.Name(`data`),valCxt:new t.Name(`valCxt`),instancePath:new t.Name(`instancePath`),parentData:new t.Name(`parentData`),parentDataProperty:new t.Name(`parentDataProperty`),rootData:new t.Name(`rootData`),dynamicAnchors:new t.Name(`dynamicAnchors`),vErrors:new t.Name(`vErrors`),errors:new t.Name(`errors`),this:new t.Name(`this`),self:new t.Name(`self`),scope:new t.Name(`scope`),json:new t.Name(`json`),jsonPos:new t.Name(`jsonPos`),jsonLen:new t.Name(`jsonLen`),jsonPart:new t.Name(`jsonPart`)}})),Br=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;let t=K(),n=q(),r=J();e.keywordError={message:({keyword:e})=>(0,t.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?(0,t.str)`"${e}" keyword must be ${n} ($data)`:(0,t.str)`"${e}" keyword is invalid ($data)`};function i(n,r=e.keywordError,i,a){let{it:o}=n,{gen:s,compositeRule:u,allErrors:f}=o,p=d(n,r,i);a??(u||f)?c(s,p):l(o,(0,t._)`[${p}]`)}e.reportError=i;function a(t,n=e.keywordError,i){let{it:a}=t,{gen:o,compositeRule:s,allErrors:u}=a;c(o,d(t,n,i)),s||u||l(a,r.default.vErrors)}e.reportExtraError=a;function o(e,n){e.assign(r.default.errors,n),e.if((0,t._)`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign((0,t._)`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:e,keyword:n,schemaValue:i,data:a,errsCount:o,it:s}){if(o===void 0)throw Error(`ajv implementation error`);let c=e.name(`err`);e.forRange(`i`,o,r.default.errors,o=>{e.const(c,(0,t._)`${r.default.vErrors}[${o}]`),e.if((0,t._)`${c}.instancePath === undefined`,()=>e.assign((0,t._)`${c}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign((0,t._)`${c}.schemaPath`,(0,t.str)`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign((0,t._)`${c}.schema`,i),e.assign((0,t._)`${c}.data`,a))})}e.extendErrors=s;function c(e,n){let i=e.const(`err`,n);e.if((0,t._)`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,(0,t._)`[${i}]`),(0,t._)`${r.default.vErrors}.push(${i})`),e.code((0,t._)`${r.default.errors}++`)}function l(e,n){let{gen:r,validateName:i,schemaEnv:a}=e;a.$async?r.throw((0,t._)`new ${e.ValidationError}(${n})`):(r.assign((0,t._)`${i}.errors`,n),r.return(!1))}let u={keyword:new t.Name(`keyword`),schemaPath:new t.Name(`schemaPath`),params:new t.Name(`params`),propertyName:new t.Name(`propertyName`),message:new t.Name(`message`),schema:new t.Name(`schema`),parentSchema:new t.Name(`parentSchema`)};function d(e,n,r){let{createErrors:i}=e.it;return i===!1?(0,t._)`{}`:f(e,n,r)}function f(e,t,n={}){let{gen:r,it:i}=e,a=[p(i,n),m(e,n)];return h(e,t,a),r.object(...a)}function p({errorPath:e},{instancePath:i}){let a=i?(0,t.str)`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function m({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:a}){let o=a?r:(0,t.str)`${r}/${e}`;return i&&(o=(0,t.str)`${o}${(0,n.getErrorPath)(i,n.Type.Str)}`),[u.schemaPath,o]}function h(e,{params:n,message:i},a){let{keyword:o,data:s,schemaValue:c,it:l}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=l;a.push([u.keyword,o],[u.params,typeof n==`function`?n(e):n||(0,t._)`{}`]),d.messages&&a.push([u.message,typeof i==`function`?i(e):i]),d.verbose&&a.push([u.schema,c],[u.parentSchema,(0,t._)`${p}${m}`],[r.default.data,s]),f&&a.push([u.propertyName,f])}})),Vr=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;let t=Br(),n=K(),r=J(),i={message:`boolean schema is false`};function a(e){let{gen:t,schema:i,validateName:a}=e;i===!1?s(e,!1):typeof i==`object`&&i.$async===!0?t.return(r.default.data):(t.assign((0,n._)`${a}.errors`,null),t.return(!0))}e.topBoolOrEmptySchema=a;function o(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),s(e)):n.var(t,!0)}e.boolOrEmptySchema=o;function s(e,n){let{gen:r,data:a}=e,o={gen:r,keyword:`false schema`,data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,t.reportError)(o,i,void 0,n)}})),Hr=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;let t=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function n(e){return typeof e==`string`&&t.has(e)}e.isJSONType=n;function r(){let e={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=r})),Ur=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&n(e,i)}e.schemaHasRulesForType=t;function n(e,t){return t.rules.some(t=>r(e,t))}e.shouldUseGroup=n;function r(e,t){return e[t.keyword]!==void 0||t.definition.implements?.some(t=>e[t]!==void 0)}e.shouldUseRule=r})),Wr=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;let t=Hr(),n=Ur(),r=Br(),i=K(),a=q();var o;(function(e){e[e.Correct=0]=`Correct`,e[e.Wrong=1]=`Wrong`})(o||(e.DataType=o={}));function s(e){let t=c(e.type);if(t.includes(`null`)){if(e.nullable===!1)throw Error(`type: null contradicts nullable: false`)}else{if(!t.length&&e.nullable!==void 0)throw Error(`"nullable" cannot be used without "type"`);e.nullable===!0&&t.push(`null`)}return t}e.getSchemaTypes=s;function c(e){let n=Array.isArray(e)?e:e?[e]:[];if(n.every(t.isJSONType))return n;throw Error(`type must be JSONType or JSONType[]: `+n.join(`,`))}e.getJSONTypes=c;function l(e,t){let{gen:r,data:i,opts:a}=e,s=d(t,a.coerceTypes),c=t.length>0&&!(s.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(c){let n=h(t,i,a.strictNumbers,o.Wrong);r.if(n,()=>{s.length?f(e,t,s):_(e)})}return c}e.coerceAndCheckDataType=l;let u=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function d(e,t){return t?e.filter(e=>u.has(e)||t===`array`&&e===`array`):[]}function f(e,t,n){let{gen:r,data:a,opts:o}=e,s=r.let(`dataType`,(0,i._)`typeof ${a}`),c=r.let(`coerced`,(0,i._)`undefined`);o.coerceTypes===`array`&&r.if((0,i._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>r.assign(a,(0,i._)`${a}[0]`).assign(s,(0,i._)`typeof ${a}`).if(h(t,a,o.strictNumbers),()=>r.assign(c,a))),r.if((0,i._)`${c} !== undefined`);for(let e of n)(u.has(e)||e===`array`&&o.coerceTypes===`array`)&&l(e);r.else(),_(e),r.endIf(),r.if((0,i._)`${c} !== undefined`,()=>{r.assign(a,c),p(e,c)});function l(e){switch(e){case`string`:r.elseIf((0,i._)`${s} == "number" || ${s} == "boolean"`).assign(c,(0,i._)`"" + ${a}`).elseIf((0,i._)`${a} === null`).assign(c,(0,i._)`""`);return;case`number`:r.elseIf((0,i._)`${s} == "boolean" || ${a} === null
3
3
  || (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,(0,i._)`+${a}`);return;case`integer`:r.elseIf((0,i._)`${s} === "boolean" || ${a} === null
4
4
  || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,(0,i._)`+${a}`);return;case`boolean`:r.elseIf((0,i._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf((0,i._)`${a} === "true" || ${a} === 1`).assign(c,!0);return;case`null`:r.elseIf((0,i._)`${a} === "" || ${a} === 0 || ${a} === false`),r.assign(c,null);return;case`array`:r.elseIf((0,i._)`${s} === "string" || ${s} === "number"
@@ -0,0 +1 @@
1
+ import"./auth-BNDyLTqp-z6VNZXaE.js";export{};
@@ -1 +1 @@
1
- import{c as e,r as t}from"./result-envelope-CiOoDKaK.js";var n=[`localhost`,`127.0.0.1`,`0.0.0.0`,`[::1]`];function r(e){let t=e.trim().toLowerCase().replace(/^https?:\/\//,``).split(`/`)[0]??``;return n.some(e=>t===e||t.startsWith(`${e}:`))}var i={authToken:`AUTH_TOKEN`},a=[i.authToken],o=`production`,s={production:{host:`api.aventure.vc`},local:{host:`localhost:8080`}},c=`https://${s.production.host}`,l=`https://aventure.vc`;function u(){return{host:v(process.env.API_URL)??g(process.env.API_ENV)?.host??f(),userBearerToken:process.env[i.authToken]}}function d(){let e=u().host,t=r(e)?null:h(process.env.API_ENV);return(t===null?void 0:s[t]?.host)??e}function f(){let e=s[o]?.host;if(e===void 0)throw Error(`Default API environment is unavailable`);return e}function p(e){if(!e.userBearerToken)throw Error(`Sign in with \`auth login\`, or set ${i.authToken} to an aVenture API key from ${l}/settings/api-keys`);return{Authorization:`Bearer ${e.userBearerToken}`}}function m(){return Object.keys(s)}function h(e){let t=e?.trim().toLowerCase();if(!t)return null;switch(t){case`stage`:case`staging`:return`staging`;case`prod`:case`production`:return`production`;case`dev`:case`development`:case`localhost`:case`local`:return`local`;default:return null}}function g(e){let t=h(e);if(t===null){if(!e?.trim())return null;throw Error(`Unknown aVenture environment '${e}'. Use one of: ${m().join(`, `)}`)}let n=s[t];if(n===void 0)throw Error(`Environment '${t}' is unavailable in this distribution`);return n}function _(n){try{let t=u();return e(`env ready`,n===`none`?{env:t,headers:{},credential:null}:{env:t,headers:p(t),credential:i.authToken})}catch(e){return t(e.message)}}function v(...e){return e.find(e=>e!==void 0&&e.trim().length>0)}export{l as a,m as c,d,u as f,c as i,h as l,a as n,p as o,r as p,o as r,f as s,i as t,_ as u};
1
+ import{c as e,r as t}from"./result-envelope-B8wB63dd.js";var n=[`localhost`,`127.0.0.1`,`0.0.0.0`,`[::1]`];function r(e){let t=e.trim().toLowerCase().replace(/^https?:\/\//,``).split(`/`)[0]??``;return n.some(e=>t===e||t.startsWith(`${e}:`))}var i={authToken:`AUTH_TOKEN`},a=[i.authToken],o=`production`,s={production:{host:`api.aventure.vc`},local:{host:`localhost:8080`}},c=`https://${s.production.host}`,l=`https://aventure.vc`;function u(){return{host:v(process.env.API_URL)??g(process.env.API_ENV)?.host??f(),userBearerToken:process.env[i.authToken]}}function d(){let e=u().host,t=r(e)?null:h(process.env.API_ENV);return(t===null?void 0:s[t]?.host)??e}function f(){let e=s[o]?.host;if(e===void 0)throw Error(`Default API environment is unavailable`);return e}function p(e){if(!e.userBearerToken)throw Error(`Sign in with \`auth login\`, or set ${i.authToken} to an aVenture API key from ${l}/settings/api-keys`);return{Authorization:`Bearer ${e.userBearerToken}`}}function m(){return Object.keys(s)}function h(e){let t=e?.trim().toLowerCase();if(!t)return null;switch(t){case`stage`:case`staging`:return`staging`;case`prod`:case`production`:return`production`;case`dev`:case`development`:case`localhost`:case`local`:return`local`;default:return null}}function g(e){let t=h(e);if(t===null){if(!e?.trim())return null;throw Error(`Unknown aVenture environment '${e}'. Use one of: ${m().join(`, `)}`)}let n=s[t];if(n===void 0)throw Error(`Environment '${t}' is unavailable in this distribution`);return n}function _(n){try{let t=u();return e(`env ready`,n===`none`?{env:t,headers:{},credential:null}:{env:t,headers:p(t),credential:i.authToken})}catch(e){return t(e.message)}}function v(...e){return e.find(e=>e!==void 0&&e.trim().length>0)}export{l as a,m as c,d,u as f,c as i,h as l,a as n,p as o,r as p,o as r,f as s,i as t,_ as u};
@@ -1 +1 @@
1
- import{c as e,r as t}from"./result-envelope-CiOoDKaK.js";import{t as n}from"./private-readback-7E7i5Pwk.js";import{c as r,i,o as a,s as o}from"./cli-help-policy-z_NzDfVs.js";function s(n,r,i){let a={...i};for(let e of r.parameter){let r=e.envName;if(r===void 0)continue;let i=process.env[r]?.trim();if(i===void 0||i.length===0)continue;let o=a[e.optionKey];if(o!==void 0&&(typeof o!=`string`||o!==i))return{...t(`${n} ${e.flag.split(` `)[0]??e.name} conflicts with ${r}; omit the flag or use ${i}.`),data:a};o===void 0&&(a[e.optionKey]=i)}return e(`Environment-bound options applied`,a)}function c(e,t,n){if(!k(n))return null;for(let r of t.parameter){let t=r.envName,i=t===void 0?void 0:process.env[t]?.trim();if(t===void 0||i===void 0||i.length===0||!w(n,r.name))continue;let a=C(n,r.name);if(typeof a!=`string`||a!==i)return`${e} ${r.name} in --from-file conflicts with ${t}; omit the field or use ${i}.`}return null}function l(e){let t=new Set(e.parameter.map(({name:e})=>e));return e.kind===`multipart`?e.requiredPath:e.requiredPath.filter(e=>!t.has(e))}function u(t,n,r,i=!1){if(i||!D(n)||!Array.isArray(r))return A(t,n,r);for(let[e,i]of r.entries()){let r=A(t,n,i,e);if(!r.ok)return r}return e(`Body value assigned`,null)}function d(e,t,n,r){return A(e,t,r,n)}function f(e){let t=[];for(let n of e.split(`.`)){let e=M(n);if(t.push(e.key),e.isArray)return t.join(`.`)}return null}function p(e,t){let n=f(t);if(n===null)return null;let r=S(e,n.split(`.`));return Array.isArray(r)?{path:n,rowCount:r.length,firstHole:x(r)}:null}function m(n,r){if(D(n.name)||n.schemaType===`array`)return e(`Repeated body option selected`,typeof r==`string`?[r]:r);if(!Array.isArray(r))return e(`Scalar body option selected`,r);let i=n.flag.split(` `)[0]??n.name;return r.length===1?e(`Scalar body option selected`,r[0]):t(`${i} was already given; pass it once.`)}var h=/^(?<row>\d+):(?<item>.*)$/su;function g(e,t,n){let r=_(n,t[n.optionKey]);return r===null||n.schemaType===`array`||e.parameter.filter(e=>e.schemaType!==`array`&&f(e.name)===r.container&&_(e,t[e.optionKey])?.plain.length===0).length>1?r:null}function _(e,t){let n=f(e.name);if(n===null||t===void 0||typeof t==`boolean`)return null;let r=new Map,i=[];for(let e of typeof t==`string`?[t]:t){let t=h.exec(e)?.groups,n=t?.row,a=t?.item;if(n===void 0||a===void 0){i.push(e);continue}let o=r.get(Number(n));o===void 0?r.set(Number(n),[a]):o.push(a)}return r.size===0?null:{container:n,rows:r,plain:i}}function v(e,t,n,{container:r,rows:i,plain:a}){let o=n.flag.split(` `)[0]??n.name;if(a.length>0)return`${o} mixes row-form values with plain value(s): ${a.join(`, `)} — prefix every value with its 0-based ${r}[] row index, as 0:value.`;let s=y(e,t,r);for(let[e,t]of i){if(e>=s)return`${o} names ${r}[] row ${e}, but these options build at most ${s} ${r}[] row(s) — number rows from 0, and name the row of a value that itself starts with digits and a colon, as 0:0:00 for the value 0:00.`;if(n.schemaType!==`array`&&t.length>1)return`${o} names ${r}[] row ${e} ${t.length} times — give each ${r}[] row one value.`}return null}function y(e,t,n){let r=0,i=0;for(let a of e.parameter){let o=t[a.optionKey];if(o===void 0||typeof o==`boolean`||f(a.name)!==n)continue;let s=typeof o==`string`?1:o.length;r=Math.max(r,s),a.schemaType!==`array`&&g(e,t,a)!==null&&(i+=s)}return Math.max(r,i)}function b(e,n,r,i){for(let a of n.parameter){if(r[a.optionKey]===void 0)continue;let o=p(i,a.name);if(o===null)continue;if(o.firstHole!==null)return t(`${e} has no ${o.path}[] row ${o.firstHole} — number ${o.path}[] rows from 0 with no gaps.`);if(a.schemaType!==`array`||o.rowCount<=1||g(n,r,a)!==null)continue;let s=a.flag.split(` `)[0]??a.name;return t(`${s} fills one ${o.path}[] row's list, so ${e} cannot also build ${o.rowCount} ${o.path}[] rows from direct options — prefix each value with its 0-based ${o.path}[] row index, as 0:value, or pass the rows with --from-file.`)}return null}function x(e){for(let t=0;t<e.length;t+=1)if(e[t]===void 0)return t;return null}function S(e,t){let n=e;for(let e of t){if(!k(n))return;n=n[e]??null}return n}function C(e,t){if(!D(t))return S(e,t.split(`.`))}function w(e,t){return E(e,t.split(`.`))}function T(e,t,n){if(!k(n))return null;let r=new Set(t.parameter.map(({name:e})=>e));for(let i of e)if(i!==t){for(let e of i.parameter)if(!r.has(e.name)&&w(n,e.name))return`${e.name} in --from-file requires --content-type ${i.contentType}.`}return null}function E(e,t){let[n,...r]=t;if(n===void 0)return!0;let i=M(n);if(!k(e)||!Object.hasOwn(e,i.key))return!1;let a=e[i.key]??null;return i.isArray?Array.isArray(a)&&a.every(e=>E(e,r)):E(a,r)}function D(e){return e.split(`.`).some(e=>M(e).isArray)}function O(e,t){return e.parameter.length===0||!k(t)?null:P(t,[],N(e.parameter))}function k(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function A(n,r,i,a=0){let o=r.split(`.`),s=n;for(let[n,c]of o.entries()){let l=M(c),u=n===o.length-1,d=j(s,l,r,u,i,a);if(!d.ok||d.data===null)return t(d.summary,d.warnings);if(u)return e(`Body value assigned`,null);s=d.data}return t(`${r} is not a valid body option path.`)}function j(n,r,i,a,o,s){let c=()=>t(`${i} cannot be combined with another body option at ${r.key}.`),l=n[r.key];if(r.isArray){if(l!==void 0&&!Array.isArray(l))return c();let t=l??[];if(l===void 0&&(n[r.key]=t),a)return t[s]===void 0?(t[s]=o,e(`Body value assigned`,n)):c();let i=t[s];if(i===void 0){let n={};return t[s]=n,e(`Body path created`,n)}return k(i)?e(`Body path stepped`,i):c()}if(a)return l===void 0?(n[r.key]=o,e(`Body value assigned`,n)):c();if(l===void 0){let t={};return n[r.key]=t,e(`Body path created`,t)}return k(l)?e(`Body path stepped`,l):c()}function M(e){let t=e.endsWith(`[]`);return{key:t?e.slice(0,-2):e,isArray:t}}function N(e){let t=new Set,n=new Set;for(let r of e){let e=`${r.name}${r.schemaType===`array`?`[]`:``}`;t.add(e);let i=e.split(`.`);for(let e=1;e<i.length;e+=1)n.add(i.slice(0,e).join(`.`))}return{leaf:t,prefix:n}}function P(e,t,n){if(Array.isArray(e)){if(e.length===0)return null;for(let r of e){let e=P(r,t,n);if(e!==null)return e}return null}if(!k(e))return null;for(let[r,i]of Object.entries(e)){let e=[...t,Array.isArray(i)?`${r}[]`:r],a=e.join(`.`);if(i===null&&F(`${a}[]`,n))continue;if(!F(a,n)){if(!I(e))continue;let r=[...new Set([...n.leaf,...n.prefix])].filter(e=>e.split(`.`).slice(0,-1).join(`.`)===t.join(`.`)),i=r.map(e=>e.split(`.`).at(-1)??``),o=R(e,r);return{path:a,message:`unknown JSON path ${a}. ${o===void 0?`Admitted keys: ${i.join(`, `)||`(none)`}.`:`Use ${o}.`}`}}let o=P(i,e,n);if(o!==null)return o}return null}function F(e,t){return t.prefix.has(e)||t.leaf.has(e)}function I(e){return e.slice(0,-1).some(e=>e.endsWith(`[]`))}var L=4;function R(e,t){let n=e.at(-1)?.replace(/\[\]$/u,``).toLowerCase()??``,r=t.map(e=>({path:e,score:z(n,e.split(`.`).at(-1)??``)})).filter(({score:e})=>e<1/0).toSorted((e,t)=>e.score-t.score||e.path.localeCompare(t.path));return r[0]?.score===r[1]?.score?void 0:r[0]?.path}function z(e,t){let n=t.replace(/\[\]$/u,``).toLowerCase();if(n===e)return 0;if(Math.min(e.length,n.length)<L)return 1/0;let r=e.length<=n.length?e:n,i=e.length<=n.length?n:e;if(i.length-r.length>1)return 1/0;let a=0;for(;a<r.length&&r[a]===i[a];)a+=1;return r.slice(a+ +(r.length===i.length))===i.slice(a+1)?1:1/0}var B=e=>Array.isArray(e)&&!Object.isFrozen(e);function V(e,t){let r=new Map;for(let e of t){let t=e.flag?.split(` `)[0];t!==void 0&&r.set(t,t===`--from-file`?{...e,inputType:`file`}:e)}for(let t of e){let e=t.long===void 0?void 0:r.get(t.long);e!==void 0&&(t.helpGroup(o(e)),t.description=n(t.description,{...e,hasParseDefault:t.defaultValue!==void 0}))}if(!B(e))throw Error(`Commander option list is frozen; generated option help cannot be ordered.`);e.sort((e,t)=>{let n=e.long===void 0?void 0:r.get(e.long),i=t.long===void 0?void 0:r.get(t.long);return n!==void 0&&i!==void 0?Y(n,i):n===void 0?i===void 0?0:1:-1})}function H(e){let t=new Map;for(let n of e)for(let e of n.parameter){let r=e.flag.split(` `)[0]??e.flag,i=t.get(r);i===void 0?t.set(r,{variant:[{descriptor:n,parameter:e}]}):t.set(r,{variant:[...i.variant,{descriptor:n,parameter:e}]})}return[...t.values()]}function U(e){let{flag:t}=e.variant[0].parameter;return e.variant.every(({parameter:e})=>e.flag===t)?t:`${t.split(` `)[0]??t} <value>`}function W(e){let t=e.variant.map(({descriptor:e,parameter:t})=>({contentType:e.contentType,text:q(e,t)})),n=t[0];return n===void 0?``:t.every(({text:e})=>e===n.text)?`${n.text===``?``:`${n.text} `}Request content: ${t.map(({contentType:e})=>e).join(`, `)}.`:t.map(({contentType:e,text:t})=>`${e}: ${t}`).join(` `)}function G(e,t){return[...new Set((e.cliConflicts??[]).filter(e=>e.includes(t)).flatMap(e=>e.filter(e=>e!==t)))]}function K(e,t){let n=e.kind===`multipart`?`Read a JSON object keyed by multipart part name from a file, or use - for stdin`:`Read the JSON request body from a file, or use - for stdin`,i=t.filter(e=>!t.some(t=>t.startsWith(`${e}.`)||t.startsWith(`${e}[].`)));return i.length===0?r(n):`${r(n)} Required JSON paths: ${i.join(`, `)}.`}function q(e,t){let n=i(t.description,void 0),r=e.kind!==`multipart`&&D(t.name),a=e.kind!==`multipart`&&t.optionKey!==t.name&&/^\w+$/u.test(t.name);return`${n}${r?` Repeat to add another value.`:``}${a?` --from-file JSON key: ${t.name}.`:``}${J(e,t)}`}function J(e,t){if(e.kind===`multipart`)return``;let n=f(t.name);if(n===null)return``;let[r,i]=t.schemaType===`array`?[``,``]:[` on two or more ${n}[] flags`,` then`];return` Prefix each value with its 0-based ${n}[] row index, as 0:value${r}, to fill more than one ${n}[] row. A leading digits-and-colon is${i} always read as that index, so name the row of a value that starts the same way, as 0:0:00 for the value 0:00.`}function Y(e,t){return a(e)-a(t)||Number(e.required!==!0)-Number(t.required!==!0)}export{O as S,w as _,K as a,l as b,q as c,b as d,u as f,c as g,T as h,U as i,g as l,s as m,Y as n,H as o,d as p,W as r,G as s,V as t,v as u,D as v,m as x,k as y};
1
+ import{c as e,r as t}from"./result-envelope-B8wB63dd.js";import{t as n}from"./private-readback-7E7i5Pwk.js";import{c as r,i,o as a,s as o}from"./cli-help-policy-B2iBhuKp.js";function s(n,r,i){let a={...i};for(let e of r.parameter){let r=e.envName;if(r===void 0)continue;let i=process.env[r]?.trim();if(i===void 0||i.length===0)continue;let o=a[e.optionKey];if(o!==void 0&&(typeof o!=`string`||o!==i))return{...t(`${n} ${e.flag.split(` `)[0]??e.name} conflicts with ${r}; omit the flag or use ${i}.`),data:a};o===void 0&&(a[e.optionKey]=i)}return e(`Environment-bound options applied`,a)}function c(e,t,n){if(!k(n))return null;for(let r of t.parameter){let t=r.envName,i=t===void 0?void 0:process.env[t]?.trim();if(t===void 0||i===void 0||i.length===0||!w(n,r.name))continue;let a=C(n,r.name);if(typeof a!=`string`||a!==i)return`${e} ${r.name} in --from-file conflicts with ${t}; omit the field or use ${i}.`}return null}function l(e){let t=new Set(e.parameter.map(({name:e})=>e));return e.kind===`multipart`?e.requiredPath:e.requiredPath.filter(e=>!t.has(e))}function u(t,n,r,i=!1){if(i||!D(n)||!Array.isArray(r))return A(t,n,r);for(let[e,i]of r.entries()){let r=A(t,n,i,e);if(!r.ok)return r}return e(`Body value assigned`,null)}function d(e,t,n,r){return A(e,t,r,n)}function f(e){let t=[];for(let n of e.split(`.`)){let e=M(n);if(t.push(e.key),e.isArray)return t.join(`.`)}return null}function p(e,t){let n=f(t);if(n===null)return null;let r=S(e,n.split(`.`));return Array.isArray(r)?{path:n,rowCount:r.length,firstHole:x(r)}:null}function m(n,r){if(D(n.name)||n.schemaType===`array`)return e(`Repeated body option selected`,typeof r==`string`?[r]:r);if(!Array.isArray(r))return e(`Scalar body option selected`,r);let i=n.flag.split(` `)[0]??n.name;return r.length===1?e(`Scalar body option selected`,r[0]):t(`${i} was already given; pass it once.`)}var h=/^(?<row>\d+):(?<item>.*)$/su;function g(e,t,n){let r=_(n,t[n.optionKey]);return r===null||n.schemaType===`array`||e.parameter.filter(e=>e.schemaType!==`array`&&f(e.name)===r.container&&_(e,t[e.optionKey])?.plain.length===0).length>1?r:null}function _(e,t){let n=f(e.name);if(n===null||t===void 0||typeof t==`boolean`)return null;let r=new Map,i=[];for(let e of typeof t==`string`?[t]:t){let t=h.exec(e)?.groups,n=t?.row,a=t?.item;if(n===void 0||a===void 0){i.push(e);continue}let o=r.get(Number(n));o===void 0?r.set(Number(n),[a]):o.push(a)}return r.size===0?null:{container:n,rows:r,plain:i}}function v(e,t,n,{container:r,rows:i,plain:a}){let o=n.flag.split(` `)[0]??n.name;if(a.length>0)return`${o} mixes row-form values with plain value(s): ${a.join(`, `)} — prefix every value with its 0-based ${r}[] row index, as 0:value.`;let s=y(e,t,r);for(let[e,t]of i){if(e>=s)return`${o} names ${r}[] row ${e}, but these options build at most ${s} ${r}[] row(s) — number rows from 0, and name the row of a value that itself starts with digits and a colon, as 0:0:00 for the value 0:00.`;if(n.schemaType!==`array`&&t.length>1)return`${o} names ${r}[] row ${e} ${t.length} times — give each ${r}[] row one value.`}return null}function y(e,t,n){let r=0,i=0;for(let a of e.parameter){let o=t[a.optionKey];if(o===void 0||typeof o==`boolean`||f(a.name)!==n)continue;let s=typeof o==`string`?1:o.length;r=Math.max(r,s),a.schemaType!==`array`&&g(e,t,a)!==null&&(i+=s)}return Math.max(r,i)}function b(e,n,r,i){for(let a of n.parameter){if(r[a.optionKey]===void 0)continue;let o=p(i,a.name);if(o===null)continue;if(o.firstHole!==null)return t(`${e} has no ${o.path}[] row ${o.firstHole} — number ${o.path}[] rows from 0 with no gaps.`);if(a.schemaType!==`array`||o.rowCount<=1||g(n,r,a)!==null)continue;let s=a.flag.split(` `)[0]??a.name;return t(`${s} fills one ${o.path}[] row's list, so ${e} cannot also build ${o.rowCount} ${o.path}[] rows from direct options — prefix each value with its 0-based ${o.path}[] row index, as 0:value, or pass the rows with --from-file.`)}return null}function x(e){for(let t=0;t<e.length;t+=1)if(e[t]===void 0)return t;return null}function S(e,t){let n=e;for(let e of t){if(!k(n))return;n=n[e]??null}return n}function C(e,t){if(!D(t))return S(e,t.split(`.`))}function w(e,t){return E(e,t.split(`.`))}function T(e,t,n){if(!k(n))return null;let r=new Set(t.parameter.map(({name:e})=>e));for(let i of e)if(i!==t){for(let e of i.parameter)if(!r.has(e.name)&&w(n,e.name))return`${e.name} in --from-file requires --content-type ${i.contentType}.`}return null}function E(e,t){let[n,...r]=t;if(n===void 0)return!0;let i=M(n);if(!k(e)||!Object.hasOwn(e,i.key))return!1;let a=e[i.key]??null;return i.isArray?Array.isArray(a)&&a.every(e=>E(e,r)):E(a,r)}function D(e){return e.split(`.`).some(e=>M(e).isArray)}function O(e,t){return e.parameter.length===0||!k(t)?null:P(t,[],N(e.parameter))}function k(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function A(n,r,i,a=0){let o=r.split(`.`),s=n;for(let[n,c]of o.entries()){let l=M(c),u=n===o.length-1,d=j(s,l,r,u,i,a);if(!d.ok||d.data===null)return t(d.summary,d.warnings);if(u)return e(`Body value assigned`,null);s=d.data}return t(`${r} is not a valid body option path.`)}function j(n,r,i,a,o,s){let c=()=>t(`${i} cannot be combined with another body option at ${r.key}.`),l=n[r.key];if(r.isArray){if(l!==void 0&&!Array.isArray(l))return c();let t=l??[];if(l===void 0&&(n[r.key]=t),a)return t[s]===void 0?(t[s]=o,e(`Body value assigned`,n)):c();let i=t[s];if(i===void 0){let n={};return t[s]=n,e(`Body path created`,n)}return k(i)?e(`Body path stepped`,i):c()}if(a)return l===void 0?(n[r.key]=o,e(`Body value assigned`,n)):c();if(l===void 0){let t={};return n[r.key]=t,e(`Body path created`,t)}return k(l)?e(`Body path stepped`,l):c()}function M(e){let t=e.endsWith(`[]`);return{key:t?e.slice(0,-2):e,isArray:t}}function N(e){let t=new Set,n=new Set;for(let r of e){let e=`${r.name}${r.schemaType===`array`?`[]`:``}`;t.add(e);let i=e.split(`.`);for(let e=1;e<i.length;e+=1)n.add(i.slice(0,e).join(`.`))}return{leaf:t,prefix:n}}function P(e,t,n){if(Array.isArray(e)){if(e.length===0)return null;for(let r of e){let e=P(r,t,n);if(e!==null)return e}return null}if(!k(e))return null;for(let[r,i]of Object.entries(e)){let e=[...t,Array.isArray(i)?`${r}[]`:r],a=e.join(`.`);if(i===null&&F(`${a}[]`,n))continue;if(!F(a,n)){if(!I(e))continue;let r=[...new Set([...n.leaf,...n.prefix])].filter(e=>e.split(`.`).slice(0,-1).join(`.`)===t.join(`.`)),i=r.map(e=>e.split(`.`).at(-1)??``),o=R(e,r);return{path:a,message:`unknown JSON path ${a}. ${o===void 0?`Admitted keys: ${i.join(`, `)||`(none)`}.`:`Use ${o}.`}`}}let o=P(i,e,n);if(o!==null)return o}return null}function F(e,t){return t.prefix.has(e)||t.leaf.has(e)}function I(e){return e.slice(0,-1).some(e=>e.endsWith(`[]`))}var L=4;function R(e,t){let n=e.at(-1)?.replace(/\[\]$/u,``).toLowerCase()??``,r=t.map(e=>({path:e,score:z(n,e.split(`.`).at(-1)??``)})).filter(({score:e})=>e<1/0).toSorted((e,t)=>e.score-t.score||e.path.localeCompare(t.path));return r[0]?.score===r[1]?.score?void 0:r[0]?.path}function z(e,t){let n=t.replace(/\[\]$/u,``).toLowerCase();if(n===e)return 0;if(Math.min(e.length,n.length)<L)return 1/0;let r=e.length<=n.length?e:n,i=e.length<=n.length?n:e;if(i.length-r.length>1)return 1/0;let a=0;for(;a<r.length&&r[a]===i[a];)a+=1;return r.slice(a+ +(r.length===i.length))===i.slice(a+1)?1:1/0}var B=e=>Array.isArray(e)&&!Object.isFrozen(e);function V(e,t){let r=new Map;for(let e of t){let t=e.flag?.split(` `)[0];t!==void 0&&r.set(t,t===`--from-file`?{...e,inputType:`file`}:e)}for(let t of e){let e=t.long===void 0?void 0:r.get(t.long);e!==void 0&&(t.helpGroup(o(e)),t.description=n(t.description,{...e,hasParseDefault:t.defaultValue!==void 0}))}if(!B(e))throw Error(`Commander option list is frozen; generated option help cannot be ordered.`);e.sort((e,t)=>{let n=e.long===void 0?void 0:r.get(e.long),i=t.long===void 0?void 0:r.get(t.long);return n!==void 0&&i!==void 0?Y(n,i):n===void 0?i===void 0?0:1:-1})}function H(e){let t=new Map;for(let n of e)for(let e of n.parameter){let r=e.flag.split(` `)[0]??e.flag,i=t.get(r);i===void 0?t.set(r,{variant:[{descriptor:n,parameter:e}]}):t.set(r,{variant:[...i.variant,{descriptor:n,parameter:e}]})}return[...t.values()]}function U(e){let{flag:t}=e.variant[0].parameter;return e.variant.every(({parameter:e})=>e.flag===t)?t:`${t.split(` `)[0]??t} <value>`}function W(e){let t=e.variant.map(({descriptor:e,parameter:t})=>({contentType:e.contentType,text:q(e,t)})),n=t[0];return n===void 0?``:t.every(({text:e})=>e===n.text)?`${n.text===``?``:`${n.text} `}Request content: ${t.map(({contentType:e})=>e).join(`, `)}.`:t.map(({contentType:e,text:t})=>`${e}: ${t}`).join(` `)}function G(e,t){return[...new Set((e.cliConflicts??[]).filter(e=>e.includes(t)).flatMap(e=>e.filter(e=>e!==t)))]}function K(e,t){let n=e.kind===`multipart`?`Read a JSON object keyed by multipart part name from a file, or use - for stdin`:`Read the JSON request body from a file, or use - for stdin`,i=t.filter(e=>!t.some(t=>t.startsWith(`${e}.`)||t.startsWith(`${e}[].`)));return i.length===0?r(n):`${r(n)} Required JSON paths: ${i.join(`, `)}.`}function q(e,t){let n=i(t.description,void 0),r=e.kind!==`multipart`&&D(t.name),a=e.kind!==`multipart`&&t.optionKey!==t.name&&/^\w+$/u.test(t.name);return`${n}${r?` Repeat to add another value.`:``}${a?` --from-file JSON key: ${t.name}.`:``}${J(e,t)}`}function J(e,t){if(e.kind===`multipart`)return``;let n=f(t.name);if(n===null)return``;let[r,i]=t.schemaType===`array`?[``,``]:[` on two or more ${n}[] flags`,` then`];return` Prefix each value with its 0-based ${n}[] row index, as 0:value${r}, to fill more than one ${n}[] row. A leading digits-and-colon is${i} always read as that index, so name the row of a value that starts the same way, as 0:0:00 for the value 0:00.`}function Y(e,t){return a(e)-a(t)||Number(e.required!==!0)-Number(t.required!==!0)}export{O as S,w as _,K as a,l as b,q as c,b as d,u as f,c as g,T as h,U as i,g as l,s as m,Y as n,H as o,d as p,W as r,G as s,V as t,v as u,D as v,m as x,k as y};
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./package-DEeHDoOT.js";import{C as t,S as n,_ as r,c as i,d as a,g as o,i as s,s as c}from"./iso-DzqMxtky.js";import{t as l}from"./confidence-CjeYTBnf.js";import{c as u,d as ee,l as te,s as d,u as ne}from"./tool-policy-DyZpOAQx.js";import{i as re,t as f}from"./human-text-cap-dR2SJQJC.js";import{n as ie,t as ae}from"./contract-parameter-GJPGb0i7.js";var p=2,oe=new Set(`a.an.the.and.or.for.to.of.in.on.at.by.with.from.into.is.are.be.do.does.how.what.which.that.this.these.those.i.me.my.we.our.you.your.it.its.please.want.need.can.could.should.would`.split(`.`));function m(e,t){let n=v(t);if(n.length!==0){e.add(n),(n===`individual`||n===`individuals`)&&m(e,`person`);for(let t of se(n))h(e,t,n);h(e,ce(n),n)}}function se(e){if(e===`people`)return[`person`];let t=e.endsWith(`ies`)?e.slice(0,-3):``;if(t.length>=p&&!t.endsWith(`v`)&&/[^aeiou]$/u.test(t))return[`${t}y`];let n=e.endsWith(`es`)?e.slice(0,-2):``;return n.length>=p&&n!==`us`&&/(?:s|ss|sh|ch|x|z)$/u.test(n)?[n,`${n}e`]:e.length>p&&e.endsWith(`s`)&&!e.endsWith(`ss`)&&!e.endsWith(`us`)&&e!==`news`?[e.slice(0,-1)]:[]}function ce(e){if(e===`person`)return`people`;if(e!==`new`&&e!==`news`&&e!==`status`&&e!==`us`){if(e.length>=p&&e.endsWith(`y`)&&/[^aeiou]y$/u.test(e))return`${e.slice(0,-1)}ies`;if(!(e.length>=p&&e.endsWith(`es`)))return e.length>=p&&/(?:s|ss|sh|ch|x|z)$/u.test(e)?`${e}es`:e.endsWith(`s`)?void 0:`${e}s`}}function h(e,t,n){t!==void 0&&t!==n&&t.length>=p&&/^[a-z]+$/u.test(t)&&e.add(t)}function g(e){let t=new Set(_(e)),n=Array.from(t);for(let e of n)m(t,e);return t}function le(e){return _(e).map(g)}function ue(e,t){if(e.length===0)return!1;let n=g(t.join(` `));return e.every(e=>[...e].some(e=>n.has(e)))}function _(e){return v(e).split(/[^a-z0-9]+/u).filter(e=>e.length>0&&!oe.has(e))}function v(e){return e.trim().replace(/([a-z0-9])([A-Z])/gu,`$1 $2`).replace(/[_-]/gu,` `).replace(/\s+/gu,` `).toLowerCase().replace(/\blook up\b/gu,`lookup`)}function y(e,t){return e.map(e=>{let n=e.requestBody??[],r=[...e.parameters.map(e=>b(e)),...n.flatMap(e=>e.parameter.map(t=>b(t,n.length>1?e.contentType:void 0))),...de(n)],i=[t,...e.cliPath].join(` `),a=e.mutates===!0||ne(e.intent),o=n[0];return{operationId:e.operationId,method:e.method,path:e.path,resource:e.resource,intent:e.intent,scope:e.scope,mutates:a,destructive:te(e.method,e.intent),auth:e.auth,cli:{command:i,path:e.cliPath},mcpTool:e.binaryResponse?null:ee(e,`public`),body:{hasBody:o!==void 0,kind:o?.kind??null,...o!==void 0&&n.length>1?{contentType:o.contentType}:{},required:o?.required??!1,description:o?.description??``,requiredPath:o?.requiredPath??[]},flags:r,errorResponse:e.errorResponse,...e.successResponse===void 0?{}:{successResponse:e.successResponse},...e.header===void 0||e.header.length===0?{}:{header:e.header},summary:e.summary,description:e.description,...e.deprecated===void 0?{}:{deprecated:e.deprecated}}})}function b(e,t){let n=e.flag.split(/\s+/u);return{name:n[0]??e.flag,optionKey:e.optionKey,wireName:e.name,location:e.location,required:e.required,placeholder:n.length<=1?null:n.slice(1).join(` `),description:e.description,choices:e.choices??[],...t===void 0?{}:{contentType:t}}}function de(e){if((e?.length??0)<=1)return[];let t=e?.map(({contentType:e})=>e)??[];return[{name:`--content-type`,optionKey:`contentType`,wireName:`Content-Type`,location:`body`,required:!1,placeholder:`<media-type>`,description:`Select the request body encoding, never an uploaded file's media type; omit for ${t[0]}.`,choices:t}]}function x(e){return e.flags.filter(({contentType:t})=>t===void 0||t===e.body.contentType)}var fe=[`-id`,`-slug`,`-url`],pe=[`--id`,`--slug`,`--url`],me=`/v1/lookup`,he=`--from-file "<path>"`;function ge(t,n,r=e().bin[0]){let i=y(n,r),a=i.find(e=>e.operationId===t);return a===void 0?[]:w(a,i)}function S(t,n,r=e().bin[0]){let i=n.find(e=>e.operationId===t),[a]=i===void 0?[]:y([i],r);return a&&C(a,E(a,!1))}function _e(t,n,r,i=e().bin[0]){let a=e=>{let t=e.findIndex((e,t)=>r[t]!==e);return t===-1?e.length:t},o=`${r[0]} get`,[s,c]=n.filter(({method:e,path:n,parameters:r,cliPath:i})=>{let s=r.filter(({location:e})=>e===`path`),[c]=s;return e===`GET`&&s.length===1&&c?.flag.split(/\s+/u)[0]===t&&n.endsWith(`/{${c.name}}`)&&(a(i)>1||i.join(` `)===o)}).toSorted((e,t)=>a(t.cliPath)-a(e.cliPath));if(s!==void 0&&(c===void 0||a(c.cliPath)!==a(s.cliPath)))return S(s.operationId,n,i)}function C(e,t){return[e.cli.command,...t,`--data`].join(` `)}function w(e,t){return[`example: ${C(e,E(e))}`,...ve(e,t)]}function ve(e,t){return x(e).flatMap(e=>{if(!e.required||!e.optionKey.endsWith(`Id`))return[];let n=`${e.optionKey.slice(0,-2)}Slug`,r=t.find(e=>e.method===`GET`&&/\/lookup(?:-exact)?$/u.test(e.path)&&e.flags.some(e=>e.optionKey===n)),i=r?.flags.find(e=>e.optionKey===n);if(r===void 0||i===void 0)return[];let a=`${r.cli.command} ${D(i)} --data`,o=t.find(e=>e.method===`POST`&&e.path===me),s=o?.flags.find(e=>e.optionKey===`name`),c=o?.flags.find(e=>e.optionKey===`kind`),l=c?.choices.find(t=>e.optionKey.toUpperCase().startsWith(t)),u=`lookup: ${e.name} from a slug: ${a}`;return o===void 0||s===void 0||c===void 0||l===void 0?[u]:[u,`lookup: ${e.name} from a name or URL: ${o.cli.command} ${c.name} ${l} ${D(s)} --data, then match.owner.${e.optionKey} when status is MATCHED`]})}var T=/(?:^|\.)text$/u;function E(e,t=!0){let n=x(e),r=n.filter(e=>e.required),i=e.body.kind===`json`&&n.some(e=>e.location===`body`&&T.test(e.wireName)&&(e.required||!e.wireName.includes(`.`))),a=i?r.filter(e=>e.location!==`body`):r,o=(r.length>0||!t?a:ye(e)).map(D);return i||(e.body.required||e.body.requiredPath.length>0)&&!a.some(e=>e.location===`body`)?[...o,he]:o}function ye(e){let t=new Set;m(t,e.resource);for(let n of fe)for(let r of t){let t=e.flags.find(e=>e.name===`--${r}${n}`);if(t!==void 0)return[t]}for(let t of pe){let n=e.flags.find(e=>e.name===t);if(n!==void 0)return[n]}return[]}function D(e){return e.placeholder===null?e.name:`${e.name} "${e.placeholder}"`}var be=s([`PAID_PLAN`,`DAILY_ALLOWANCE`]),O=s([`OPERATION`,`SKILL`,`PROMPT`,`COMPLETION_GATE`,`RESEARCH_DETAIL_TYPE`,`RESEARCH_SNIPPET_TYPE`,`TEXT_TYPE`]),k=Object.assign(t([O,n()]),{enum:O.enum}),A=r({billingAccess:be.nullish(),excerpt:n(),sourceId:n(),sourceType:k,sourceVersion:n().nullish()}),xe=r({instruction:n(),operationId:n(),planTaskKey:c(n()).optional(),publishesAnalysis:i().optional(),stepKey:n().optional(),title:n().nullish()}),j=r({body:n(),expectation:n(),method:c(n()),override:n(),reject:c(n()),typeCatalog:n()}),M=r({cliCommand:n(),mcpTool:n().nullish(),step:xe,title:n().nullish(),writeGuidance:j.nullish()}),N=s([`ENTITY`,`NEWS`,`TEXT`,`FACT`,`WRITER_BRIEF`]),Se=Object.assign(t([N,n()]),{enum:N.enum}),Ce=r({allowedValue:n().nullish(),description:n(),key:n(),required:i().default(!0).optional(),type:Se}),P=r({catalogRevision:a().optional(),gateId:c(n()).optional(),input:c(Ce),step:c(M),taskKey:n().optional()}),F=s([`TASK_PLAN`,`OPERATION_ADVICE`,`CLARIFY`,`ABSTAIN`]),we=r({candidate:c(A),operationId:n().nullish(),outcome:F,probability:o().nullish(),taskKey:n().nullish(),taskPlan:P.nullish()}),Te=r({answer:n(),citation:c(A),confidence:l,resolution:we.nullish()});function I(e){let t=e.requestBody?.[0],n=e.parameter.map(t=>L(t,ie(e,t))),r=(t?.parameter??[]).map(t=>L(t,ae(e,t)));return{selector:n.filter(e=>e.location===`path`||R(e)),pagination:n.filter(z),filter:[...n.filter(B),...r.filter(B)],body:r.filter(e=>!B(e))}}function L(e,t){let{in:n,inputName:r,...i}=e;return{...i,flag:u(t),location:n,description:e.description||`${e.name} ${e.in} parameter`}}function R(e){return/(^|[A-Z])(id|slug)$/u.test(e.name)}function z(e){return[`page`,`size`,`sort`,`cursor`,`mode`,`projection`].includes(e.name)}function B(e){return e.location!==`path`&&!R(e)&&!z(e)}function V(e){return{operationId:e.operationId,method:e.method,path:e.path,summary:e.summary,cli:e.projection.cliPath.join(` `),intent:e.intent,tool:d(e),scope:e.projection.scope,requiredInput:U(e),responseContentType:[...new Set(e.response.filter(({status:e})=>e.startsWith(`2`)).flatMap(({contentType:e})=>e??[]))]}}function H(e,t){let n=e.requestBody?.[0],r=V(e),i=W(e);return t?{...r,...i===void 0?{}:{paidPlan:i},resource:e.resource,bodyKind:n?.kind??null,bodyRequired:n?.required??!1,requiredBodyPath:n?.requiredPath??[],argument:I(e)}:{...r,optionalInput:Oe(e),arrayInput:ke(e),...i===void 0?{}:{paidPlan:i}}}function Ee(e){let t=I(e),n=e=>e.filter(e=>e.required);return{...H(e,!1),arrayInput:void 0,optionalDetailOmitted:!0,argument:{selector:n(t.selector),pagination:n(t.pagination),filter:n(t.filter),body:n(t.body)}}}function De(e){let{cli:t,scope:n,...r}=V(e),i=W(e);return{...r,...i===void 0?{}:{paidPlan:i},optionalDetailOmitted:!0}}function U(e){return[...e.parameter.filter(({required:e})=>e).map(({name:e})=>e),...e.requestBody?.[0]?.requiredPath??[]]}function Oe(e){let t=e.requestBody?.[0],n=new Set(t?.requiredPath??[]);return{query:e.parameter.filter(e=>e.in===`query`&&!e.required).map(({name:e})=>e),body:(t?.parameter??[]).filter(({name:e})=>!n.has(e)).map(({name:e})=>e)}}function W(e){return e.response.find(({status:e})=>e===`402`)?.description}function ke(e){return[...e.parameter,...e.requestBody?.[0]?.parameter??[]].filter(({schemaType:e})=>e===`array`).map(({name:e})=>e)}var G=160,K=`Operation catalog matches`,Ae=[`whole`,`described`,`requiredDescribed`,`optionalNamed`,`optionalGrouped`],q=e=>`${[K,...e].join(`
2
+ `)}\n`;function je(e,t=[],n=`mcp`){if(!Array.isArray(e)||e.length===0||!e.every(Pe))return null;let r=e,i=n===`mcp`?`structuredContent.data`:`the --data --to-file <path> output`,a=e=>re([K,...e,...t]);for(let e of Ae){let t=[...r.flatMap(t=>X(t,e)),...Y(r,e,i)];if(a(t))return q(t)}let o=(e,t=r.length-e)=>{let n=r.slice(e),a=n.length-t;return[...r.slice(0,e).flatMap(e=>X(e,`optionalGrouped`)),...Y(r.slice(0,e),`optionalGrouped`,i),...n.length===0?[]:[`... ${n.length} more operations omitted to fit ${f} UTF-8 bytes: ${[...n.slice(0,t).map(({operationId:e})=>e),...a>0?[`and ${a} more in ${i}`]:[]].join(`, `)}; call aventure_help with q=<operationId> and limit=1 to read one.`]]},s=[...r.keys()].findLast(e=>a(o(e)));return q(s===void 0?o(0,[...r.keys()].findLast(e=>a(o(0,e)))??0):o(s))}var J=e=>`call aventure_help with q=<operationId> and limit=1; inspect argument and optionalInput in ${e} for the retained inputs`;function Y(e,t,n){let r=t===`optionalGrouped`&&e.some(e=>X(e,t).some(e=>e.includes(`.{`)))?[`... optional input names sharing a prefix are grouped: a.{b, c} names a.b and a.c.`]:[];return[...Me(e,t,n),...r]}function Me(e,t,n){let r=e.flatMap(e=>`argument`in e?Object.values(e.argument).flat():[]),i=t===`whole`?0:r.filter(e=>e.description.length>G&&(t===`described`||e.required)).length,a=i===0?[]:[`... ${i} argument descriptions shortened; inspect each row's argument in ${n} for full descriptions.`];if(e.some(e=>`optionalDetailOmitted`in e))return[...a,e.some(e=>`argument`in e)?`... optional argument details omitted: the full list exceeds the result cap; ${J(n)}.`:`... optional inputs omitted: the full list exceeds the result cap; call aventure_help with q=<operationId> and limit=1 to read one operation's inputs.`];if(t===`whole`||!e.some(e=>`argument`in e))return[];if(t===`described`)return a;let o=t===`requiredDescribed`?`optional argument descriptions`:`optional argument details`,s=r.filter(({required:e})=>!e).length;return[...a,`... ${s} ${o} omitted to fit ${f} UTF-8 bytes; ${n} carries them, and ${J(n)}.`]}function X(e,t){let n=`argument`in e?Object.values(e.argument).flat():[],r=n.filter(({required:e})=>!e).map(({name:e})=>e);return[`${e.operationId} ${e.method} ${e.path} (${e.tool})`,` ${e.summary}`,` required: ${e.requiredInput.length===0?`none`:e.requiredInput.join(`, `)}`,` responseContentType: ${e.responseContentType.length===0?`none`:e.responseContentType.join(`, `)}`,...`optionalInput`in e?Object.entries(e.optionalInput).filter(([,e])=>e.length>0).map(([e,n])=>` optional ${e}: ${Z(n,t)}`):[],...`arrayInput`in e&&e.arrayInput?.length?[` JSON array inputs: ${e.arrayInput.join(`, `)}`]:[],...`paidPlan`in e&&e.paidPlan!==void 0?[` paid plan: ${e.paidPlan}`]:[],...n.filter(({required:e})=>e||t!==`optionalNamed`&&t!==`optionalGrouped`).map(e=>Ne(e,e.required||t!==`requiredDescribed`,t)),...(t===`optionalNamed`||t===`optionalGrouped`)&&r.length>0?[` optional inputs: ${Z(r,t)}`]:[]]}function Z(e,t){if(t!==`optionalGrouped`)return e.join(`, `);let n=new Map;for(let t of e){let e=n,r=t.split(`.`);r.forEach((t,n)=>{let i=e.get(t)??{end:!1,child:new Map};e.set(t,i),n===r.length-1&&(i.end=!0),e=i.child})}let r=(e,t)=>{let n=[...t.child].flatMap(([n,i])=>t.child.size===1?r(`${e}.${n}`,i):r(n,i));return[...t.end?[e]:[],...t.child.size>1?[`${e}.{${n.join(`, `)}}`]:n]};return[...n].flatMap(([e,t])=>r(e,t)).join(`, `)}function Ne(e,t,n){let r=[e.location,e.required?`required`:void 0,e.schemaType,e.schemaFormat,e.schemaEnum===void 0?void 0:`choices: ${e.schemaEnum.join(`, `)}`,e.itemSchemaEnum===void 0?void 0:`item choices: ${e.itemSchemaEnum.join(`, `)}`,e.schemaDefault===void 0?void 0:`default: ${JSON.stringify(e.schemaDefault)}`,e.itemSchemaType===void 0?void 0:`items: ${e.itemSchemaType}${e.itemSchemaFormat===void 0?``:` (${e.itemSchemaFormat})`}`].filter(e=>e!==void 0).join(`, `),i=` ${e.name} (${r})`;return t?`${i}: ${n===`whole`||e.description.length<=G?e.description:`${e.description.slice(0,157)}...`}`:i}function Pe(e){return typeof e==`object`&&!!e&&`operationId`in e&&typeof e.operationId==`string`&&`requiredInput`in e&&Array.isArray(e.requiredInput)&&`intent`in e&&`summary`in e}function Q(e){let t=t=>{let n=(`parameter`in e?e.parameter:e.parameters.map(e=>({...e,in:e.location,schemaDefault:e.defaultValue}))).filter(e=>e.in===t&&e.required&&e.schemaDefault===void 0).map(({name:e})=>[e,`<${e}>`]);return n.length===0?void 0:Object.fromEntries(n)},n=t(`path`),r=t(`query`);return{tool:d(e),arguments:{operationId:e.operationId,...n===void 0?{}:{pathParams:n},...r===void 0?{}:{query:r},...e.requestBody===void 0?{}:{body:Ie(e)}}}}var Fe=4;function Ie(e){let t=e.requestBody?.[0];if(t===void 0)return{};if(t.requiredPath.length>0||e.intent!==`lookup`||t.schemaType===`array`)return Le(t.requiredPath);let n=t.parameter;return Object.fromEntries(n.flatMap(e=>{let{name:t,schemaType:n,schemaFormat:r}=e,i=`optionKey`in e?e.choices:e.schemaEnum;return t.includes(`.`)||n!==`string`||r!==void 0?[]:i===void 0?[[t,`<${t}>`]]:i.length>Fe?[]:[[t,`<${i.join(`|`)}>`]]}))}function Le(e){let t={},n=e.filter(t=>!e.some(e=>e.startsWith(`${t}.`)||e.startsWith(`${t}[]`)));for(let e of n){let n=e.split(`.`),r=n.slice(0,-1).reduce(Re,t);r[n.at(-1)??e]=`<${e}>`}return t}function Re(e,t){let n=t.replace(/\[\]$/u,``),r=e[n],i=Array.isArray(r)?r[0]:r;if(typeof i==`object`&&i&&!Array.isArray(i))return i;let a={};return e[n]=t.endsWith(`[]`)?[a]:a,a}function ze(e){let t=W(e);return{mcpCall:Q(e),...t===void 0?{}:{paidPlan:t}}}function Be(e){let t=$(e.description);return{useFor:t.useFor||e.summary||e.description||`${e.method} ${e.path}`,notFor:t.notFor}}function $(e){let t=e.match(/USE FOR:\s*([\s\S]*?)(?:NOT FOR:|$)/iu),n=e.match(/NOT FOR:\s*([\s\S]*?)$/iu);return{useFor:t?.[1]?.trim()??``,notFor:n?.[1]?.trim()??``}}export{g as C,le as E,ue as S,v as T,_e as _,je as a,S as b,De as c,F as d,P as f,ge as g,x as h,ze as i,Ee as l,T as m,$ as n,Q as o,k as p,Be as r,H as s,K as t,Te as u,w as v,_ as w,m as x,y};