trybeacon 0.1.66 → 0.1.67

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 (142) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.next/BUILD_ID +1 -1
  3. package/.next/app-path-routes-manifest.json +8 -8
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  7. package/.next/server/app/_global-error.html +1 -1
  8. package/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/server/app/_not-found.html +1 -1
  17. package/.next/server/app/_not-found.rsc +11 -11
  18. package/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
  19. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_index.segment.rsc +11 -11
  21. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  22. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  24. package/.next/server/app/api/lesson/close/route.js +1 -1
  25. package/.next/server/app/api/lesson/questions/route.js +1 -1
  26. package/.next/server/app/api/lesson/route.js +1 -1
  27. package/.next/server/app/api/lesson/save/route.js +1 -1
  28. package/.next/server/app/api/lesson/verdict/route.js +1 -1
  29. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/docs.html +1 -1
  31. package/.next/server/app/docs.rsc +11 -11
  32. package/.next/server/app/docs.segments/_full.segment.rsc +11 -11
  33. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  34. package/.next/server/app/docs.segments/_index.segment.rsc +11 -11
  35. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  36. package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  37. package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  38. package/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app/feedback.html +1 -1
  40. package/.next/server/app/feedback.rsc +11 -11
  41. package/.next/server/app/feedback.segments/_full.segment.rsc +11 -11
  42. package/.next/server/app/feedback.segments/_head.segment.rsc +1 -1
  43. package/.next/server/app/feedback.segments/_index.segment.rsc +11 -11
  44. package/.next/server/app/feedback.segments/_tree.segment.rsc +2 -2
  45. package/.next/server/app/feedback.segments/feedback/__PAGE__.segment.rsc +1 -1
  46. package/.next/server/app/feedback.segments/feedback.segment.rsc +1 -1
  47. package/.next/server/app/help/page_client-reference-manifest.js +1 -1
  48. package/.next/server/app/help.html +1 -1
  49. package/.next/server/app/help.rsc +11 -11
  50. package/.next/server/app/help.segments/_full.segment.rsc +11 -11
  51. package/.next/server/app/help.segments/_head.segment.rsc +1 -1
  52. package/.next/server/app/help.segments/_index.segment.rsc +11 -11
  53. package/.next/server/app/help.segments/_tree.segment.rsc +2 -2
  54. package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +1 -1
  55. package/.next/server/app/help.segments/help.segment.rsc +1 -1
  56. package/.next/server/app/index.html +1 -1
  57. package/.next/server/app/index.rsc +12 -12
  58. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  59. package/.next/server/app/index.segments/_full.segment.rsc +12 -12
  60. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  61. package/.next/server/app/index.segments/_index.segment.rsc +11 -11
  62. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  63. package/.next/server/app/learn/page.js +5 -3
  64. package/.next/server/app/learn/page.js.nft.json +1 -1
  65. package/.next/server/app/learn/page_client-reference-manifest.js +1 -1
  66. package/.next/server/app/map/page.js +2 -2
  67. package/.next/server/app/map/page.js.nft.json +1 -1
  68. package/.next/server/app/map/page_client-reference-manifest.js +1 -1
  69. package/.next/server/app/page.js +2 -2
  70. package/.next/server/app/page.js.nft.json +1 -1
  71. package/.next/server/app/page_client-reference-manifest.js +1 -1
  72. package/.next/server/app/plan/page.js +2 -2
  73. package/.next/server/app/plan/page.js.nft.json +1 -1
  74. package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
  75. package/.next/server/app/s/[token]/page.js +2 -2
  76. package/.next/server/app/s/[token]/page.js.nft.json +1 -1
  77. package/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
  78. package/.next/server/app/settings/page.js +1 -1
  79. package/.next/server/app/settings/page.js.nft.json +1 -1
  80. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  81. package/.next/server/app-paths-manifest.json +8 -8
  82. package/.next/server/chunks/2025.js +1 -0
  83. package/.next/server/chunks/2994.js +2 -0
  84. package/.next/server/chunks/4046.js +3 -3
  85. package/.next/server/chunks/5683.js +1 -0
  86. package/.next/server/chunks/5719.js +1 -0
  87. package/.next/server/chunks/7720.js +154 -0
  88. package/.next/server/middleware-build-manifest.js +1 -1
  89. package/.next/server/pages/404.html +1 -1
  90. package/.next/server/pages/500.html +1 -1
  91. package/.next/server/server-reference-manifest.js +1 -1
  92. package/.next/server/server-reference-manifest.json +1 -1
  93. package/.next/static/chunks/1276-b84f61ec9c0df862.js +1 -0
  94. package/.next/static/chunks/1a258343-954e0e6619585d3c.js +2 -0
  95. package/.next/static/chunks/2059-fba06ba63ba64522.js +62 -0
  96. package/.next/static/chunks/4607-a668ea431c41e60e.js +1 -0
  97. package/.next/static/chunks/4853-6dc402b4ce452fa5.js +1 -0
  98. package/.next/static/chunks/{7043-254590cf9891391f.js → 4888-911c0da3c2d785d2.js} +1 -1
  99. package/.next/static/chunks/5957-83f611fcd5a08b45.js +1 -0
  100. package/.next/static/chunks/766-242213d211df0afd.js +1 -0
  101. package/.next/static/chunks/8997-78a359d0d238622e.js +1 -0
  102. package/.next/static/chunks/app/{layout-0c993f55d3a798f4.js → layout-9f0f4d8e4534a62e.js} +1 -1
  103. package/.next/static/chunks/app/learn/page-03acad0a37068966.js +7 -0
  104. package/.next/static/chunks/app/map/page-5cfad64d5feea695.js +1 -0
  105. package/.next/static/chunks/app/page-d08947a671077569.js +1 -0
  106. package/.next/static/chunks/app/plan/page-5eacb6b83bd4873d.js +1 -0
  107. package/.next/static/chunks/app/s/[token]/page-1a350cf50a45500c.js +1 -0
  108. package/.next/static/chunks/app/settings/page-7e176d120b1effa9.js +1 -0
  109. package/.next/static/css/63986592e2be7d62.css +1 -0
  110. package/.next/trace +43 -43
  111. package/.next/trace-build +1 -1
  112. package/dist/bin/beacon.js +14 -12
  113. package/dist/bin/doctor.js +22 -15
  114. package/dist/bin/hook.js +18 -11
  115. package/dist/bin/mcp.js +41 -34
  116. package/dist/bin/plan.js +21 -14
  117. package/dist/bin/uninstall.js +26 -19
  118. package/dist/lib/assets.js +7 -0
  119. package/dist/lib/codex-install.js +28 -21
  120. package/dist/lib/global-install.js +27 -20
  121. package/package.json +1 -1
  122. package/plugin/skills/beacon-explain/SKILL.md +7 -0
  123. package/.next/server/chunks/3584.js +0 -154
  124. package/.next/server/chunks/6024.js +0 -2
  125. package/.next/server/chunks/7187.js +0 -1
  126. package/.next/server/chunks/8035.js +0 -1
  127. package/.next/static/chunks/1936-7fea5225b5bfcfda.js +0 -1
  128. package/.next/static/chunks/1a258343-6baccd9e573fdfaf.js +0 -2
  129. package/.next/static/chunks/2019-3be80edc82176878.js +0 -1
  130. package/.next/static/chunks/3845-6fe7e66d4bf82eb5.js +0 -1
  131. package/.next/static/chunks/4549-591415d55ca009a3.js +0 -62
  132. package/.next/static/chunks/6638-4e53879181b1df75.js +0 -1
  133. package/.next/static/chunks/7643-6c7ff4b9400f68fc.js +0 -1
  134. package/.next/static/chunks/app/learn/page-797d74e02b98fa88.js +0 -5
  135. package/.next/static/chunks/app/map/page-634b6d5d98e921b3.js +0 -1
  136. package/.next/static/chunks/app/page-84dc684d45002cfb.js +0 -1
  137. package/.next/static/chunks/app/plan/page-df829b2054c40611.js +0 -1
  138. package/.next/static/chunks/app/s/[token]/page-f97dec75856a7952.js +0 -1
  139. package/.next/static/chunks/app/settings/page-59d90685cd17fc1f.js +0 -1
  140. package/.next/static/css/b3d3212da726bbfb.css +0 -1
  141. /package/.next/static/{P3uXQySdS-m6_bxuiezYe → hkOIw5DQW9WSwBwZrD8_9}/_buildManifest.js +0 -0
  142. /package/.next/static/{P3uXQySdS-m6_bxuiezYe → hkOIw5DQW9WSwBwZrD8_9}/_ssgManifest.js +0 -0
@@ -1,62 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4549],{874:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]])},1275:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},5736:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},5937:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},5989:(e,t,r)=>{"use strict";var n,i;function o(e,t,r){function n(r,n){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:n,constr:a,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,n);let i=a.prototype,o=Object.keys(i);for(let e=0;e<o.length;e++){let t=o[e];t in r||(r[t]=i[t].bind(r))}}let i=r?.Parent??Object;class o extends i{}function a(e){var t;let i=r?.Parent?new o:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}r.d(t,{EB:()=>rh,bz:()=>rL,YO:()=>rq,zM:()=>rC,gM:()=>rX,k5:()=>rQ,eu:()=>r1,ai:()=>rT,Ik:()=>rH,Yj:()=>rf}),Symbol("zod_brand");class a extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class s extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(n=globalThis).__zod_globalConfig??(n.__zod_globalConfig={});let l=globalThis.__zod_globalConfig;function u(e){return e&&Object.assign(l,e),l}let c=/^[cC][0-9a-z]{6,}$/,d=/^[0-9a-z]+$/,f=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,h=/^[0-9a-vA-V]{20}$/,p=/^[A-Za-z0-9]{27}$/,y=/^[a-zA-Z0-9_-]{21}$/,m=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,g=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,v=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,k=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,w=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,b=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,z=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,x=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,A=/^[A-Za-z0-9_-]*$/,O=/^https?$/,$=/^\+[1-9]\d{6,14}$/,S="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",M=RegExp(`^${S}$`);function E(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let N=/^-?\d+$/,Z=/^-?\d+(?:\.\d+)?$/,j=/^(?:true|false)$/i,T=/^[^A-Z]*$/,P=/^[^a-z]*$/;function I(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function R(e,t){return"bigint"==typeof t?t.toString():t}function C(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function U(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}let L=Symbol("evaluating");function F(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==L)return void 0===n&&(n=L,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function D(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function V(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function J(e){return JSON.stringify(e)}let q="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function B(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let H=C(()=>{if(l.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function W(e){if(!1===B(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==B(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function G(e){return W(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let X=new Set(["string","number","symbol"]);function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function Q(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}let ee={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function et(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function er(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function en(e){return"string"==typeof e?e:e?.message}function ei(e,t,r){let n=e.message?e.message:en(e.inst?._zod.def?.error?.(e))??en(t?.error?.(e))??en(r.customError?.(e))??en(r.localeError?.(e))??"Invalid input",{inst:i,continue:o,input:a,...s}=e;return s.path??(s.path=[]),s.message=n,t?.reportInput&&(s.input=a),s}function eo(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ea(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}let es=o("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),el={number:"number",bigint:"bigint",object:"date"},eu=o("$ZodCheckLessThan",(e,t)=>{es.init(e,t);let r=el[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ec=o("$ZodCheckGreaterThan",(e,t)=>{es.init(e,t);let r=el[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ed=o("$ZodCheckMultipleOf",(e,t)=>{es.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{let n,i,o;if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0==(i=Math.round(n=r.value/t.value),o=Number.EPSILON*Math.max(Math.abs(n),1),Math.abs(n-i)<o?0:n-i))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ef=o("$ZodCheckNumberFormat",(e,t)=>{es.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,o]=ee[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=o,r&&(n.pattern=N)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s))return void a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}))}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),eh=o("$ZodCheckMaxLength",(e,t)=>{var r;es.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=eo(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ep=o("$ZodCheckMinLength",(e,t)=>{var r;es.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=eo(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ey=o("$ZodCheckLengthEquals",(e,t)=>{var r;es.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let o=eo(n),a=i>t.length;r.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),em=o("$ZodCheckStringFormat",(e,t)=>{var r,n;es.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),eg=o("$ZodCheckRegex",(e,t)=>{em.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ev=o("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=T),em.init(e,t)}),e_=o("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=P),em.init(e,t)}),ek=o("$ZodCheckIncludes",(e,t)=>{es.init(e,t);let r=K(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),ew=o("$ZodCheckStartsWith",(e,t)=>{es.init(e,t);let r=RegExp(`^${K(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),eb=o("$ZodCheckEndsWith",(e,t)=>{es.init(e,t);let r=RegExp(`.*${K(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),ez=o("$ZodCheckOverwrite",(e,t)=>{es.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class ex{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let eA=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,R,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eO=o("$ZodError",eA),e$=o("$ZodError",eA,{Parent:Error}),eS=e=>(t,r,n,i)=>{let o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new a;if(s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ei(e,o,u())));throw q(t,i?.callee),t}return s.value},eM=e=>async(t,r,n,i)=>{let o=n?{...n,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let t=new(i?.Err??e)(a.issues.map(e=>ei(e,o,u())));throw q(t,i?.callee),t}return a.value},eE=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},i);if(o instanceof Promise)throw new a;return o.issues.length?{success:!1,error:new(e??eO)(o.issues.map(e=>ei(e,i,u())))}:{success:!0,data:o.value}},eN=eE(e$),eZ=e=>async(t,r,n)=>{let i=n?{...n,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>ei(e,i,u())))}:{success:!0,data:o.value}},ej=eZ(e$),eT={major:4,minor:4,patch:3},eP=o("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eT;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,i=et(e);for(let o of t){if(o._zod.def.when){if(function(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}(e)||!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new a;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||(i=et(e,t)))});else{if(e.issues.length===t)continue;i||(i=et(e,t))}}return n?n.then(()=>e):e},r=(r,i,o)=>{if(et(r))return r.aborted=!0,r;let s=t(i,n,o);if(s instanceof Promise){if(!1===o.async)throw new a;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(i,o)=>{if(o.skipChecks)return e._zod.parse(i,o);if("backward"===o.direction){let t=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,i,o)):r(t,i,o)}let s=e._zod.parse(i,o);if(s instanceof Promise){if(!1===o.async)throw new a;return s.then(e=>t(e,n,o))}return t(s,n,o)}}F(e,"~standard",()=>({validate:t=>{try{let r=eN(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return ej(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),eI=o("$ZodString",(e,t)=>{var r;let n;eP.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(n=(r=e._zod.bag)?`[\\s\\S]{${r?.minimum??0},${r?.maximum??""}}`:"[\\s\\S]*",RegExp(`^${n}$`)),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),eR=o("$ZodStringFormat",(e,t)=>{em.init(e,t),eI.init(e,t)}),eC=o("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=g),eR.init(e,t)}),eU=o("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=v(e))}else t.pattern??(t.pattern=v());eR.init(e,t)}),eL=o("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=_),eR.init(e,t)}),eF=o("$ZodURL",(e,t)=>{eR.init(e,t),e._zod.check=r=>{try{let n=r.value.trim();if(!t.normalize&&t.protocol?.source===O.source&&!/^https?:\/\//i.test(n))return void r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});let i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),eD=o("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),eR.init(e,t)}),eV=o("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=y),eR.init(e,t)}),eJ=o("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=c),eR.init(e,t)}),eq=o("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=d),eR.init(e,t)}),eB=o("$ZodULID",(e,t)=>{t.pattern??(t.pattern=f),eR.init(e,t)}),eH=o("$ZodXID",(e,t)=>{t.pattern??(t.pattern=h),eR.init(e,t)}),eW=o("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=p),eR.init(e,t)}),eG=o("$ZodISODateTime",(e,t)=>{let r,n,i;t.pattern??(r=E({precision:t.precision}),n=["Z"],t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),i=`${r}(?:${n.join("|")})`,t.pattern=RegExp(`^${S}T(?:${i})$`)),eR.init(e,t)}),eX=o("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=M),eR.init(e,t)}),eK=o("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${E(t)}$`)),eR.init(e,t)}),eY=o("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=m),eR.init(e,t)}),eQ=o("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=k),eR.init(e,t),e._zod.bag.format="ipv4"}),e0=o("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=w),eR.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),e1=o("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=b),eR.init(e,t)}),e2=o("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=z),eR.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(2!==n.length)throw Error();let[e,t]=n;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function e4(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let e7=o("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=x),eR.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{e4(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),e3=o("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=A),eR.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{!function(e){if(!A.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return e4(t.padEnd(4*Math.ceil(t.length/4),"="))}(r.value)&&r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),e5=o("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$),eR.init(e,t)}),e8=o("$ZodJWT",(e,t)=>{eR.init(e,t),e._zod.check=r=>{!function(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(r.value,t.alg)&&r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),e9=o("$ZodNumber",(e,t)=>{eP.init(e,t),e._zod.pattern=e._zod.bag.pattern??Z,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),e6=o("$ZodNumberFormat",(e,t)=>{ef.init(e,t),e9.init(e,t)}),te=o("$ZodBoolean",(e,t)=>{eP.init(e,t),e._zod.pattern=j,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),tt=o("$ZodAny",(e,t)=>{eP.init(e,t),e._zod.parse=e=>e}),tr=o("$ZodUnknown",(e,t)=>{eP.init(e,t),e._zod.parse=e=>e}),tn=o("$ZodNever",(e,t)=>{eP.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function ti(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues)),t.value[r]=e.value}let to=o("$ZodArray",(e,t)=>{eP.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let o=[];for(let e=0;e<i.length;e++){let a=i[e],s=t.element._zod.run({value:a,issues:[]},n);s instanceof Promise?o.push(s.then(t=>ti(t,r,e))):ti(s,r,e)}return o.length?Promise.all(o).then(()=>r):r}});function ta(e,t,r,n,i,o){let a=r in n;if(e.issues.length){if(i&&o&&!a)return;t.issues.push(...er(r,e.issues))}if(!a&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}void 0===e.value?a&&(t.value[r]=void 0):t.value[r]=e.value}function ts(e){var t;let r=Object.keys(e.shape);for(let t of r)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${t}": expected a Zod schema`);let n=Object.keys(t=e.shape).filter(e=>"optional"===t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function tl(e,t,r,n,i,o){let a=[],s=i.keySet,l=i.catchall._zod,u=l.def.type,c="optional"===l.optin,d="optional"===l.optout;for(let i in t){if("__proto__"===i||s.has(i))continue;if("never"===u){a.push(i);continue}let o=l.run({value:t[i],issues:[]},n);o instanceof Promise?e.push(o.then(e=>ta(e,r,i,t,c,d))):ta(o,r,i,t,c,d)}return(a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length)?Promise.all(e).then(()=>r):r}let tu=o("$ZodObject",(e,t)=>{let r;eP.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let i=C(()=>ts(t));F(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let o=t.catchall;e._zod.parse=(t,n)=>{r??(r=i.value);let a=t.value;if(!B(a))return t.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),t;t.value={};let s=[],l=r.shape;for(let e of r.keys){let r=l[e],i="optional"===r._zod.optin,o="optional"===r._zod.optout,u=r._zod.run({value:a[e],issues:[]},n);u instanceof Promise?s.push(u.then(r=>ta(r,t,e,a,i,o))):ta(u,t,e,a,i,o)}return o?tl(s,a,t,n,i.value,e):s.length?Promise.all(s).then(()=>t):t}}),tc=o("$ZodObjectJIT",(e,t)=>{let r,n;tu.init(e,t);let i=e._zod.parse,o=C(()=>ts(t)),a=!l.jitless,s=a&&H.value,u=t.catchall;e._zod.parse=(l,c)=>{n??(n=o.value);let d=l.value;return B(d)?a&&s&&c?.async===!1&&!0!==c.jitless?(r||(r=(e=>{let t=new ex(["shape","payload","ctx"]),r=o.value,n=e=>{let t=J(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),a=0;for(let e of r.keys)i[e]=`key_${a++}`;for(let o of(t.write("const newResult = {};"),r.keys)){let r=i[o],a=J(o),s=e[o],l=s?._zod?.optin==="optional",u=s?._zod?.optout==="optional";t.write(`const ${r} = ${n(o)};`),l&&u?t.write(`
2
- if (${r}.issues.length) {
3
- if (${a} in input) {
4
- payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
5
- ...iss,
6
- path: iss.path ? [${a}, ...iss.path] : [${a}]
7
- })));
8
- }
9
- }
10
-
11
- if (${r}.value === undefined) {
12
- if (${a} in input) {
13
- newResult[${a}] = undefined;
14
- }
15
- } else {
16
- newResult[${a}] = ${r}.value;
17
- }
18
-
19
- `):l?t.write(`
20
- if (${r}.issues.length) {
21
- payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
22
- ...iss,
23
- path: iss.path ? [${a}, ...iss.path] : [${a}]
24
- })));
25
- }
26
-
27
- if (${r}.value === undefined) {
28
- if (${a} in input) {
29
- newResult[${a}] = undefined;
30
- }
31
- } else {
32
- newResult[${a}] = ${r}.value;
33
- }
34
-
35
- `):t.write(`
36
- const ${r}_present = ${a} in input;
37
- if (${r}.issues.length) {
38
- payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
39
- ...iss,
40
- path: iss.path ? [${a}, ...iss.path] : [${a}]
41
- })));
42
- }
43
- if (!${r}_present && !${r}.issues.length) {
44
- payload.issues.push({
45
- code: "invalid_type",
46
- expected: "nonoptional",
47
- input: undefined,
48
- path: [${a}]
49
- });
50
- }
51
-
52
- if (${r}_present) {
53
- if (${r}.value === undefined) {
54
- newResult[${a}] = undefined;
55
- } else {
56
- newResult[${a}] = ${r}.value;
57
- }
58
- }
59
-
60
- `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),l=r(l,c),u)?tl([],d,l,c,n,e):l:i(l,c):(l.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),l)}});function td(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let i=e.filter(e=>!et(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ei(e,n,u())))}),t)}let tf=o("$ZodUnion",(e,t)=>{eP.init(e,t),F(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),F(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),F(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),F(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>U(e.source)).join("|")})$`)}});let r=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(n,i)=>{if(r)return r(n,i);let o=!1,a=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},i);if(t instanceof Promise)a.push(t),o=!0;else{if(0===t.issues.length)return t;a.push(t)}}return o?Promise.all(a).then(t=>td(t,n,e,i)):td(a,n,e,i)}}),th=o("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,tf.init(e,t);let r=e._zod.parse;F(e._zod,"propValues",()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),r))e[t].add(n)}return e});let n=C(()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r});e._zod.parse=(i,o)=>{let a=i.value;if(!B(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let s=n.value.get(a?.[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback||"backward"===o.direction?r(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(n.value.keys()),input:a,path:[t.discriminator],inst:e}),i)}}),tp=o("$ZodIntersection",(e,t)=>{eP.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),o=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,r])=>ty(e,t,r)):ty(e,i,o)}});function ty(e,t,r){let n,i=new Map;for(let r of t.issues)if("unrecognized_keys"===r.code)for(let e of(n??(n=r),r.keys))i.has(e)||i.set(e,{}),i.get(e).l=!0;else e.issues.push(r);for(let t of r.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);let o=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(o.length&&n&&e.issues.push({...n,keys:o}),et(e))return e;let a=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(W(t)&&W(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};o[n]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let o=e(t[i],r[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!a.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}let tm=o("$ZodEnum",(e,t)=>{eP.init(e,t);let r=I(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=RegExp(`^(${r.filter(e=>X.has(typeof e)).map(e=>"string"==typeof e?K(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let o=t.value;return n.has(o)||t.issues.push({code:"invalid_value",values:r,input:o,inst:e}),t}}),tg=o("$ZodLiteral",(e,t)=>{if(eP.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?K(e):e?K(e.toString()):String(e)).join("|")})$`),e._zod.parse=(n,i)=>{let o=n.value;return r.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),tv=o("$ZodTransform",(e,t)=>{eP.init(e,t),e._zod.optin="optional",e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new s(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(r.value=e,r.fallback=!0,r));if(i instanceof Promise)throw new a;return r.value=i,r.fallback=!0,r}});function t_(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let tk=o("$ZodOptional",(e,t)=>{eP.init(e,t),e._zod.optin="optional",e._zod.optout="optional",F(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),F(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${U(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let n=e.value,i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(e=>t_(e,n)):t_(i,n)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),tw=o("$ZodExactOptional",(e,t)=>{tk.init(e,t),F(e._zod,"values",()=>t.innerType._zod.values),F(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),tb=o("$ZodNullable",(e,t)=>{eP.init(e,t),F(e._zod,"optin",()=>t.innerType._zod.optin),F(e._zod,"optout",()=>t.innerType._zod.optout),F(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${U(e.source)}|null)$`):void 0}),F(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),tz=o("$ZodDefault",(e,t)=>{eP.init(e,t),e._zod.optin="optional",F(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>tx(e,t)):tx(n,t)}});function tx(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let tA=o("$ZodPrefault",(e,t)=>{eP.init(e,t),e._zod.optin="optional",F(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),tO=o("$ZodNonOptional",(e,t)=>{eP.init(e,t),F(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>t$(t,e)):t$(i,e)}});function t$(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let tS=o("$ZodCatch",(e,t)=>{eP.init(e,t),e._zod.optin="optional",F(e._zod,"optout",()=>t.innerType._zod.optout),F(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ei(e,r,u()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ei(e,r,u()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),tM=o("$ZodPipe",(e,t)=>{eP.init(e,t),F(e._zod,"values",()=>t.in._zod.values),F(e._zod,"optin",()=>t.in._zod.optin),F(e._zod,"optout",()=>t.out._zod.optout),F(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>tE(e,t.in,r)):tE(n,t.in,r)}let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>tE(e,t.out,r)):tE(n,t.out,r)}});function tE(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}let tN=o("$ZodReadonly",(e,t)=>{eP.init(e,t),F(e._zod,"propValues",()=>t.innerType._zod.propValues),F(e._zod,"values",()=>t.innerType._zod.values),F(e._zod,"optin",()=>t.innerType?._zod?.optin),F(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(tZ):tZ(n)}});function tZ(e){return e.value=Object.freeze(e.value),e}let tj=o("$ZodCustom",(e,t)=>{es.init(e,t),eP.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>tT(t,r,n,e));tT(i,r,n,e)}});function tT(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(ea(e))}}Symbol("ZodOutput"),Symbol("ZodInput");class tP{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}(i=globalThis).__zod_globalRegistry??(i.__zod_globalRegistry=new tP);let tI=globalThis.__zod_globalRegistry;function tR(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Q(t)})}function tC(e,t){return new eu({check:"less_than",...Q(t),value:e,inclusive:!1})}function tU(e,t){return new eu({check:"less_than",...Q(t),value:e,inclusive:!0})}function tL(e,t){return new ec({check:"greater_than",...Q(t),value:e,inclusive:!1})}function tF(e,t){return new ec({check:"greater_than",...Q(t),value:e,inclusive:!0})}function tD(e,t){return new ed({check:"multiple_of",...Q(t),value:e})}function tV(e,t){return new eh({check:"max_length",...Q(t),maximum:e})}function tJ(e,t){return new ep({check:"min_length",...Q(t),minimum:e})}function tq(e,t){return new ey({check:"length_equals",...Q(t),length:e})}function tB(e){return new ez({check:"overwrite",tx:e})}function tH(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??tI,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function tW(e,t,r={path:[],schemaPath:[]}){var n;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let n={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,n);else{let r=a.schema,o=t.processors[i.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(e,t,r,n)}let o=e._zod.parent;o&&(a.ref||(a.ref=o),tW(o,t,n),t.seen.get(o).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),"input"===t.io&&function e(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,n);if("set"===i.type)return e(i.valueType,n);if("lazy"===i.type)return e(i.getter(),n);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return e(i.innerType,n);if("intersection"===i.type)return e(i.left,n)||e(i.right,n);if("record"===i.type||"map"===i.type)return e(i.keyType,n)||e(i.valueType,n);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,n)||e(i.out,n);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],n))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,n))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,n))return!0;if(i.rest&&e(i.rest,n))return!0}return!1}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===t.io&&"_prefault"in a.schema&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function tG(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let t of e.seen.entries()){let r=e.metadataRegistry.get(t[0])?.id;if(r){let e=n.get(r);if(e&&e!==t[0])throw Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(r,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let n=t[1],{ref:i,defId:o}=(t=>{let n="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(r)return{ref:i(r)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${i("__shared")}#/${n}/${o}`}}if(t[1]===r)return{ref:"#"};let i=`#/${n}/`,o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:i+o}})(t);n.def={...n.schema},o&&(n.defId=o);let a=n.schema;for(let e in a)delete a[e];a.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
61
-
62
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let n=r[1];if(t===r[0]){i(r);continue}if(e.external){let n=e.external.registry.get(r[0])?.id;if(t!==r[0]&&n){i(r);continue}}if(e.metadataRegistry.get(r[0])?.id||n.cycle||n.count>1&&"ref"===e.reused){i(r);continue}}}function tX(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{let r=e.seen.get(t);if(null===r.ref)return;let i=r.def??r.schema,o={...i},a=r.ref;if(r.ref=null,a){n(a);let r=e.seen.get(a),s=r.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,o),t._zod.parent===a)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in o||delete i[e]);if(s.$ref&&r.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(i[e])===JSON.stringify(r.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==a){n(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())n(t[0]);let i={};if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(r)}Object.assign(i,r.def??r.schema);let o=e.metadataRegistry.get(t)?.id;void 0!==o&&i.id===o&&delete i.id;let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?i.$defs=a:i.definitions=a);try{let r=JSON.parse(JSON.stringify(i));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:tK(t,"input",e.processors),output:tK(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(e){throw Error("Error converting schema to JSON.")}}let tK=(e,t,r={})=>n=>{let{libraryOptions:i,target:o}=n??{},a=tH({...i??{},target:o,io:t,processors:r});return tW(e,a),tG(a,e),tX(a,e)},tY={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tQ=(e,t,r,n)=>{let i=e._zod.def;tW(i.innerType,t,n),t.seen.get(e).ref=i.innerType},t0=o("ZodISODateTime",(e,t)=>{eG.init(e,t),rh.init(e,t)}),t1=o("ZodISODate",(e,t)=>{eX.init(e,t),rh.init(e,t)}),t2=o("ZodISOTime",(e,t)=>{eK.init(e,t),rh.init(e,t)}),t4=o("ZodISODuration",(e,t)=>{eY.init(e,t),rh.init(e,t)}),t7=o("ZodError",(e,t)=>{eO.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>(function(e,t=e=>e.message){let r={_errors:[]},n=(e,i=[])=>{for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>n({issues:e},[...i,...o.path]));else if("invalid_key"===o.code)n({issues:o.issues},[...i,...o.path]);else if("invalid_element"===o.code)n({issues:o.issues},[...i,...o.path]);else{let e=[...i,...o.path];if(0===e.length)r._errors.push(t(o));else{let n=r,i=0;for(;i<e.length;){let r=e[i];i===e.length-1?(n[r]=n[r]||{_errors:[]},n[r]._errors.push(t(o))):n[r]=n[r]||{_errors:[]},n=n[r],i++}}}};return n(e),r})(e,t)},flatten:{value:t=>(function(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}})(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,R,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,R,2)}},isEmpty:{get:()=>0===e.issues.length}})},{Parent:Error}),t3=eS(t7),t5=eM(t7),t8=eE(t7),t9=eZ(t7),t6=(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eS(t7)(e,t,n)},re=(e,t,r)=>eS(t7)(e,t,r),rt=async(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eM(t7)(e,t,n)},rr=async(e,t,r)=>eM(t7)(e,t,r),rn=(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eE(t7)(e,t,n)},ri=(e,t,r)=>eE(t7)(e,t,r),ro=async(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eZ(t7)(e,t,n)},ra=async(e,t,r)=>eZ(t7)(e,t,r),rs=new WeakMap;function rl(e,t,r){let n=Object.getPrototypeOf(e),i=rs.get(n);if(i||(i=new Set,rs.set(n,i)),!i.has(t))for(let e in i.add(t),r){let t=r[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,get(){let r=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:r}),r},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let ru=o("ZodType",(e,t)=>(eP.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tK(e,"input"),output:tK(e,"output")}}),e.toJSONSchema=((e,t={})=>r=>{let n=tH({...r,processors:t});return tW(e,n),tG(n,e),tX(n,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,r)=>t3(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>t8(e,t,r),e.parseAsync=async(t,r)=>t5(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>t9(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>t6(e,t,r),e.decode=(t,r)=>re(e,t,r),e.encodeAsync=async(t,r)=>rt(e,t,r),e.decodeAsync=async(t,r)=>rr(e,t,r),e.safeEncode=(t,r)=>rn(e,t,r),e.safeDecode=(t,r)=>ri(e,t,r),e.safeEncodeAsync=async(t,r)=>ro(e,t,r),e.safeDecodeAsync=async(t,r)=>ra(e,t,r),rl(e,"ZodType",{check(...e){let t=this.def;return this.clone(V(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Y(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return new no({type:"custom",check:"custom",fn:e,...Q(t)})}(e,t))},superRefine(e,t){return this.check(function(e,t){var r;let n,i;return r=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(ea(e,t.value,n._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=n),e.continue??(e.continue=!n._zod.def.abort),t.issues.push(ea(e)))},e(t.value,t)),(i=new es({check:"custom",...Q(t)}))._zod.check=r,n=i}(e,t))},overwrite(e){return this.check(tB(e))},optional(){return r7(this)},exactOptional(){var e;return e=this,new r3({type:"optional",innerType:e})},nullable(){return r8(this)},nullish(){return r7(r8(this))},nonoptional(e){var t;return t=this,new ne({type:"nonoptional",innerType:t,...Q(e)})},array(){return rq(this)},or(e){return new rW({type:"union",options:[this,e],...Q(void 0)})},and(e){var t;return t=this,new rK({type:"intersection",left:t,right:e})},transform(e){return nn(this,new r2({type:"transform",transform:e}))},default(e){var t,r;return t=this,r=e,new r9({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():G(r)}})},prefault(e){var t,r;return t=this,r=e,new r6({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof r?r():G(r)}})},catch(e){var t,r;return t=this,new nt({type:"catch",innerType:t,catchValue:"function"==typeof(r=e)?r:()=>r})},pipe(e){return nn(this,e)},readonly(){var e;return e=this,new ni({type:"readonly",innerType:e})},describe(e){let t=this.clone();return tI.add(t,{description:e}),t},meta(...e){if(0===e.length)return tI.get(this);let t=this.clone();return tI.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>tI.get(e)?.description,configurable:!0}),e)),rc=o("_ZodString",(e,t)=>{eI.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{r.type="string";let{minimum:i,maximum:o,format:a,patterns:s,contentEncoding:l}=e._zod.bag;if("number"==typeof i&&(r.minLength=i),"number"==typeof o&&(r.maxLength=o),a&&(r.format=tY[a]??a,""===r.format&&delete r.format,"time"===a&&delete r.format),l&&(r.contentEncoding=l),s&&s.size>0){let e=[...s];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,r,0);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,rl(e,"_ZodString",{regex(...e){return this.check(function(e,t){return new eg({check:"string_format",format:"regex",...Q(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new ek({check:"string_format",format:"includes",...Q(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new ew({check:"string_format",format:"starts_with",...Q(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new eb({check:"string_format",format:"ends_with",...Q(t),suffix:e})}(...e))},min(...e){return this.check(tJ(...e))},max(...e){return this.check(tV(...e))},length(...e){return this.check(tq(...e))},nonempty(...e){return this.check(tJ(1,...e))},lowercase(e){return this.check(new ev({check:"string_format",format:"lowercase",...Q(e)}))},uppercase(e){return this.check(new e_({check:"string_format",format:"uppercase",...Q(e)}))},trim(){return this.check(tB(e=>e.trim()))},normalize(...e){return this.check(function(e){return tB(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(tB(e=>e.toLowerCase()))},toUpperCase(){return this.check(tB(e=>e.toUpperCase()))},slugify(){return this.check(tB(e=>e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")))}})}),rd=o("ZodString",(e,t)=>{eI.init(e,t),rc.init(e,t),e.email=t=>e.check(new rp({type:"string",format:"email",check:"string_format",abort:!1,...Q(t)})),e.url=t=>e.check(new rg({type:"string",format:"url",check:"string_format",abort:!1,...Q(t)})),e.jwt=t=>e.check(new rZ({type:"string",format:"jwt",check:"string_format",abort:!1,...Q(t)})),e.emoji=t=>e.check(new rv({type:"string",format:"emoji",check:"string_format",abort:!1,...Q(t)})),e.guid=t=>e.check(tR(ry,t)),e.uuid=t=>e.check(new rm({type:"string",format:"uuid",check:"string_format",abort:!1,...Q(t)})),e.uuidv4=t=>e.check(new rm({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Q(t)})),e.uuidv6=t=>e.check(new rm({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Q(t)})),e.uuidv7=t=>e.check(new rm({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Q(t)})),e.nanoid=t=>e.check(new r_({type:"string",format:"nanoid",check:"string_format",abort:!1,...Q(t)})),e.guid=t=>e.check(tR(ry,t)),e.cuid=t=>e.check(new rk({type:"string",format:"cuid",check:"string_format",abort:!1,...Q(t)})),e.cuid2=t=>e.check(new rw({type:"string",format:"cuid2",check:"string_format",abort:!1,...Q(t)})),e.ulid=t=>e.check(new rb({type:"string",format:"ulid",check:"string_format",abort:!1,...Q(t)})),e.base64=t=>e.check(new rM({type:"string",format:"base64",check:"string_format",abort:!1,...Q(t)})),e.base64url=t=>e.check(new rE({type:"string",format:"base64url",check:"string_format",abort:!1,...Q(t)})),e.xid=t=>e.check(new rz({type:"string",format:"xid",check:"string_format",abort:!1,...Q(t)})),e.ksuid=t=>e.check(new rx({type:"string",format:"ksuid",check:"string_format",abort:!1,...Q(t)})),e.ipv4=t=>e.check(new rA({type:"string",format:"ipv4",check:"string_format",abort:!1,...Q(t)})),e.ipv6=t=>e.check(new rO({type:"string",format:"ipv6",check:"string_format",abort:!1,...Q(t)})),e.cidrv4=t=>e.check(new r$({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Q(t)})),e.cidrv6=t=>e.check(new rS({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Q(t)})),e.e164=t=>e.check(new rN({type:"string",format:"e164",check:"string_format",abort:!1,...Q(t)})),e.datetime=t=>e.check(new t0({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Q(t)})),e.date=t=>e.check(new t1({type:"string",format:"date",check:"string_format",...Q(t)})),e.time=t=>e.check(new t2({type:"string",format:"time",check:"string_format",precision:null,...Q(t)})),e.duration=t=>e.check(new t4({type:"string",format:"duration",check:"string_format",...Q(t)}))});function rf(e){return new rd({type:"string",...Q(e)})}let rh=o("ZodStringFormat",(e,t)=>{eR.init(e,t),rc.init(e,t)}),rp=o("ZodEmail",(e,t)=>{eL.init(e,t),rh.init(e,t)}),ry=o("ZodGUID",(e,t)=>{eC.init(e,t),rh.init(e,t)}),rm=o("ZodUUID",(e,t)=>{eU.init(e,t),rh.init(e,t)}),rg=o("ZodURL",(e,t)=>{eF.init(e,t),rh.init(e,t)}),rv=o("ZodEmoji",(e,t)=>{eD.init(e,t),rh.init(e,t)}),r_=o("ZodNanoID",(e,t)=>{eV.init(e,t),rh.init(e,t)}),rk=o("ZodCUID",(e,t)=>{eJ.init(e,t),rh.init(e,t)}),rw=o("ZodCUID2",(e,t)=>{eq.init(e,t),rh.init(e,t)}),rb=o("ZodULID",(e,t)=>{eB.init(e,t),rh.init(e,t)}),rz=o("ZodXID",(e,t)=>{eH.init(e,t),rh.init(e,t)}),rx=o("ZodKSUID",(e,t)=>{eW.init(e,t),rh.init(e,t)}),rA=o("ZodIPv4",(e,t)=>{eQ.init(e,t),rh.init(e,t)}),rO=o("ZodIPv6",(e,t)=>{e0.init(e,t),rh.init(e,t)}),r$=o("ZodCIDRv4",(e,t)=>{e1.init(e,t),rh.init(e,t)}),rS=o("ZodCIDRv6",(e,t)=>{e2.init(e,t),rh.init(e,t)}),rM=o("ZodBase64",(e,t)=>{e7.init(e,t),rh.init(e,t)}),rE=o("ZodBase64URL",(e,t)=>{e3.init(e,t),rh.init(e,t)}),rN=o("ZodE164",(e,t)=>{e5.init(e,t),rh.init(e,t)}),rZ=o("ZodJWT",(e,t)=>{e8.init(e,t),rh.init(e,t)}),rj=o("ZodNumber",(e,t)=>{e9.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let{minimum:i,maximum:o,format:a,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof a&&a.includes("int")?r.type="integer":r.type="number";let c="number"==typeof u&&u>=(i??-1/0),d="number"==typeof l&&l<=(o??1/0),f="draft-04"===t.target||"openapi-3.0"===t.target;c?f?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:"number"==typeof i&&(r.minimum=i),d?f?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:"number"==typeof o&&(r.maximum=o),"number"==typeof s&&(r.multipleOf=s)})(e,t,r,0),rl(e,"ZodNumber",{gt(e,t){return this.check(tL(e,t))},gte(e,t){return this.check(tF(e,t))},min(e,t){return this.check(tF(e,t))},lt(e,t){return this.check(tC(e,t))},lte(e,t){return this.check(tU(e,t))},max(e,t){return this.check(tU(e,t))},int(e){return this.check(rI(e))},safe(e){return this.check(rI(e))},positive(e){return this.check(tL(0,e))},nonnegative(e){return this.check(tF(0,e))},negative(e){return this.check(tC(0,e))},nonpositive(e){return this.check(tU(0,e))},multipleOf(e,t){return this.check(tD(e,t))},step(e,t){return this.check(tD(e,t))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function rT(e){return new rj({type:"number",checks:[],...Q(e)})}let rP=o("ZodNumberFormat",(e,t)=>{e6.init(e,t),rj.init(e,t)});function rI(e){return new rP({type:"number",check:"number_format",abort:!1,format:"safeint",...Q(e)})}let rR=o("ZodBoolean",(e,t)=>{te.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.type="boolean"}});function rC(e){return new rR({type:"boolean",...Q(e)})}let rU=o("ZodAny",(e,t)=>{tt.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function rL(){return new rU({type:"any"})}let rF=o("ZodUnknown",(e,t)=>{tr.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function rD(){return new rF({type:"unknown"})}let rV=o("ZodNever",(e,t)=>{tn.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.not={}}}),rJ=o("ZodArray",(e,t)=>{to.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def,{minimum:o,maximum:a}=e._zod.bag;"number"==typeof o&&(r.minItems=o),"number"==typeof a&&(r.maxItems=a),r.type="array",r.items=tW(i.element,t,{...n,path:[...n.path,"items"]})})(e,t,r,n),e.element=t.element,rl(e,"ZodArray",{min(e,t){return this.check(tJ(e,t))},nonempty(e){return this.check(tJ(1,e))},max(e,t){return this.check(tV(e,t))},length(e,t){return this.check(tq(e,t))},unwrap(){return this.element}})});function rq(e,t){return new rJ({type:"array",element:e,...Q(t)})}let rB=o("ZodObject",(e,t)=>{tc.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def;r.type="object",r.properties={};let o=i.shape;for(let e in o)r.properties[e]=tW(o[e],t,{...n,path:[...n.path,"properties",e]});let a=new Set([...new Set(Object.keys(o))].filter(e=>{let r=i.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));a.size>0&&(r.required=Array.from(a)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=tW(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(r.additionalProperties=!1)})(e,t,r,n),F(e,"shape",()=>t.shape),rl(e,"ZodObject",{keyof(){return rQ(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:rD()})},loose(){return this.clone({...this._zod.def,catchall:rD()})},strict(){return this.clone({...this._zod.def,catchall:new rV({type:"never",...Q(void 0)})})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return function(e,t){if(!W(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=V(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return D(this,"shape",r),r}});return Y(e,n)}(this,e)},safeExtend(e){var t=this;if(!W(e))throw Error("Invalid input to safeExtend: expected a plain object");let r=V(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return D(this,"shape",r),r}});return Y(t,r)},merge(e){var t=this;if(t._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=V(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e._zod.def.shape};return D(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Y(t,r)},pick(e){return function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=V(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=r.shape[n])}return D(this,"shape",e),e},checks:[]});return Y(e,i)}(this,e)},omit(e){return function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=V(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return D(this,"shape",n),n},checks:[]});return Y(e,i)}(this,e)},partial(...e){return function(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=V(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return D(this,"shape",i),i},checks:[]});return Y(t,i)}(r4,this,e[0])},required(...e){var t,r;let n;return t=this,r=e[0],n=V(t._zod.def,{get shape(){let e=t._zod.def.shape,n={...e};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=new ne({type:"nonoptional",innerType:e[t]}))}else for(let t in e)n[t]=new ne({type:"nonoptional",innerType:e[t]});return D(this,"shape",n),n}}),Y(t,n)}})});function rH(e,t){return new rB({type:"object",shape:e??{},...Q(t)})}let rW=o("ZodUnion",(e,t)=>{tf.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a;return o=!1===(i=e._zod.def).inclusive,a=i.options.map((e,r)=>tW(e,t,{...n,path:[...n.path,o?"oneOf":"anyOf",r]})),void(o?r.oneOf=a:r.anyOf=a)},e.options=t.options}),rG=o("ZodDiscriminatedUnion",(e,t)=>{rW.init(e,t),th.init(e,t)});function rX(e,t,r){return new rG({type:"union",options:t,discriminator:e,...Q(r)})}let rK=o("ZodIntersection",(e,t)=>{tp.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a,s;return o=tW((i=e._zod.def).left,t,{...n,path:[...n.path,"allOf",0]}),a=tW(i.right,t,{...n,path:[...n.path,"allOf",1]}),void(r.allOf=[...(s=e=>"allOf"in e&&1===Object.keys(e).length)(o)?o.allOf:[o],...s(a)?a.allOf:[a]])}}),rY=o("ZodEnum",(e,t)=>{tm.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;(i=I(e._zod.def.entries)).every(e=>"number"==typeof e)&&(r.type="number"),i.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=i},e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new rY({...t,checks:[],...Q(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new rY({...t,checks:[],...Q(n),entries:i})}});function rQ(e,t){return new rY({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Q(t)})}let r0=o("ZodLiteral",(e,t)=>{tg.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def,o=[];for(let e of i.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else o.push(Number(e));else o.push(e);if(0===o.length);else if(1===o.length){let e=o[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else o.every(e=>"number"==typeof e)&&(r.type="number"),o.every(e=>"string"==typeof e)&&(r.type="string"),o.every(e=>"boolean"==typeof e)&&(r.type="boolean"),o.every(e=>null===e)&&(r.type="null"),r.enum=o})(e,t,r,0),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function r1(e,t){return new r0({type:"literal",values:Array.isArray(e)?e:[e],...Q(t)})}let r2=o("ZodTransform",(e,t)=>{tv.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")})(0,e,0,0),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new s(e.constructor.name);r.addIssue=n=>{"string"==typeof n?r.issues.push(ea(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),r.issues.push(ea(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r.fallback=!0,r)):(r.value=i,r.fallback=!0,r)}}),r4=o("ZodOptional",(e,t)=>{tk.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>tQ(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function r7(e){return new r4({type:"optional",innerType:e})}let r3=o("ZodExactOptional",(e,t)=>{tw.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>tQ(e,t,r,n),e.unwrap=()=>e._zod.def.innerType}),r5=o("ZodNullable",(e,t)=>{tb.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a;return o=tW((i=e._zod.def).innerType,t,n),a=t.seen.get(e),void("openapi-3.0"===t.target?(a.ref=i.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}])},e.unwrap=()=>e._zod.def.innerType});function r8(e){return new r5({type:"nullable",innerType:e})}let r9=o("ZodDefault",(e,t)=>{tz.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tW((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),r6=o("ZodPrefault",(e,t)=>{tA.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tW((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},e.unwrap=()=>e._zod.def.innerType}),ne=o("ZodNonOptional",(e,t)=>{tO.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tW((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType},e.unwrap=()=>e._zod.def.innerType}),nt=o("ZodCatch",(e,t)=>{tS.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i,o=e._zod.def;tW(o.innerType,t,n),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=i})(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),nr=o("ZodPipe",(e,t)=>{tM.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a;return o=(i=e._zod.def).in._zod.traits.has("$ZodTransform"),void(tW(a="input"===t.io?o?i.out:i.in:i.out,t,n),t.seen.get(e).ref=a)},e.in=t.in,e.out=t.out});function nn(e,t){return new nr({type:"pipe",in:e,out:t})}let ni=o("ZodReadonly",(e,t)=>{tN.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tW((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,r.readOnly=!0},e.unwrap=()=>e._zod.def.innerType}),no=o("ZodCustom",(e,t)=>{tj.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")})(0,e,0,0)})},8962:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},9107:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]])},9339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(77304),a=r(4060),s=r(77197)},9751:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},12651:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},14225:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},15330:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]])},15480:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]])},17082:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]])},17112:(e,t,r)=>{"use strict";r.d(t,{D:()=>a});var n=r(12115),i=r(63699),o=r(94257);function a(e){let t=n.useContext(i.Ts)?"drawer":"dialog";return(0,o.G)(e,t)}},17356:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},17494:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},19707:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},22200:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},24413:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]])},25583:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]])},25640:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("map-pinned",[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]])},27700:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("component",[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]])},29450:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]])},34306:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},36483:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},40638:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},44825:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},45486:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},48869:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("gamepad-2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]])},49960:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},51128:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},52750:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},53255:()=>{},54154:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("package-check",[["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m16 17 2 2 4-4",key:"uh5qu3"}],["path",{d:"M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753",key:"kpkbpo"}],["path",{d:"M3.29 7 12 12l8.71-5",key:"19ckod"}],["path",{d:"m7.5 4.27 8.997 5.148",key:"9yrvtv"}]])},55737:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]])},55776:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("notebook-pen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]])},60976:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("redo-2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]])},61285:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]])},61388:(e,t,r)=>{"use strict";r.d(t,{b:()=>p});var n=r(12115),i=r.t(n,2);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}r(47650);var a=r(95155),s=Symbol.for("react.lazy"),l=i[" use ".trim().toString()];function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=Symbol("radix.slottable");function d(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,i;let s,c,f,h=(i=r=`Primitive.${t}`,(s=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(u(r)&&"function"==typeof l&&(r=l(r._payload)),n.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${i}.SlotClone`,c=s,(f=n.forwardRef((e,t)=>{let{children:r,...i}=e;u(r)&&"function"==typeof l&&(r=l(r._payload));let o=n.Children.toArray(r),s=o.find(d);if(s){let e=s.props.children,r=o.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(c,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,a.jsx)(c,{...i,ref:t,children:r})})).displayName=`${r}.Slot`,f),p=n.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(n?h:t,{...i,ref:r})});return p.displayName=`Primitive.${t}`,{...e,[t]:p}},{}),h=n.forwardRef((e,t)=>(0,a.jsx)(f.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));h.displayName="Label";var p=h},65377:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},68319:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]])},68426:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]])},70299:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},71019:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},72974:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]])},76181:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]])},76721:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},78780:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},80846:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]])},81499:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},83599:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},84824:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]])},85222:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]])},85618:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},86659:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("arrow-down-left",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]])},91906:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]])},92571:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},94192:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]])},95660:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},98112:(e,t,r)=>{"use strict";let n;r.d(t,{sX:()=>X});let i=BigInt(0x100000000-1),o=BigInt(32);function a(e,t=""){if("number"!=typeof e){let r=t&&`"${t}" `;throw TypeError(`${r}expected number, got ${typeof e}`)}if(!Number.isSafeInteger(e)||e<0){let r=t&&`"${t}" `;throw RangeError(`${r}expected integer >= 0, got ${e}`)}}function s(e,t,r=""){let n=e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT,i=e?.length,o=void 0!==t;if(!n||o&&i!==t){let a=(r&&`"${r}" `)+"expected Uint8Array"+(o?` of length ${t}`:"")+", got "+(n?`length=${i}`:`type=${typeof e}`);if(!n)throw TypeError(a);throw RangeError(a)}return e}function l(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function u(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}let c=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let r=0;r<e.length;r++){var t;e[r]=(t=e[r])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e},d=BigInt(0),f=BigInt(1),h=BigInt(2),p=BigInt(7),y=BigInt(256),m=BigInt(113),g=[],v=[],_=[];for(let e=0,t=f,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],g.push(2*(5*n+r)),v.push((e+1)*(e+2)/2%64);let i=d;for(let e=0;e<7;e++)(t=(t<<f^(t>>p)*m)%y)&h&&(i^=f<<(f<<BigInt(e))-f);_.push(i)}let k=function(e,t=!1){let r=e.length,n=new Uint32Array(r),a=new Uint32Array(r);for(let s=0;s<r;s++){let{h:r,l}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>o&i)}:{h:0|Number(e>>o&i),l:0|Number(e&i)}}(e[s],t);[n[s],a[s]]=[r,l]}return[n,a]}(_,!0),w=k[0],b=k[1],z=(e,t,r)=>r>32?t<<r-32|e>>>64-r:e<<r|t>>>32-r,x=(e,t,r)=>r>32?e<<r-32|t>>>64-r:t<<r|e>>>32-r;class A{state;pos=0;posOut=0;finished=!1;state32;destroyed=!1;blockLen;suffix;outputLen;canXOF;enableXOF=!1;rounds;constructor(e,t,r,n=!1,i=24){if(this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.canXOF=n,this.rounds=i,a(r,"outputLen"),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}(this.state)}clone(){return this._cloneInto()}keccak(){c(this.state32),function(e,t=24){if(a(t,"rounds"),t<1||t>24)throw Error('"rounds" expected integer 1..24');let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=z(o,a,1)^r[n],l=x(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=v[r],o=z(t,i,n),a=x(t,i,n),s=g[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){let r=e[t],n=e[t+1],i=e[t+2],o=e[t+3];e[t]^=~e[t+2]&e[t+4],e[t+1]^=~e[t+3]&e[t+5],e[t+2]^=~e[t+4]&e[t+6],e[t+3]^=~e[t+5]&e[t+7],e[t+4]^=~e[t+6]&e[t+8],e[t+5]^=~e[t+7]&e[t+9],e[t+6]^=~e[t+8]&r,e[t+7]^=~e[t+9]&n,e[t+8]^=~r&i,e[t+9]^=~n&o}e[0]^=w[n],e[1]^=b[n]}u(r)}(this.state32,this.rounds),c(this.state32),this.posOut=0,this.pos=0}update(e){l(this),s(e);let{blockLen:t,state:r}=this,n=e.length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){l(this,!1),s(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return a(e),this.xofInto(new Uint8Array(e))}digestInto(e){s(e,void 0,"digestInto() output");let t=this.outputLen;if(e.length<t)throw RangeError('"digestInto() output" expected to be of length >='+t);if(this.finished)throw Error("digest() was already called");this.writeInto(e.subarray(0,this.outputLen)),this.destroy()}digest(){let e=new Uint8Array(this.outputLen);return this.digestInto(e),e}destroy(){this.destroyed=!0,u(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return(e||=new A(t,r,n,o,i)).blockLen=t,e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.canXOF=this.canXOF,e.destroyed=this.destroyed,e}}let O=((e,t,r,n={})=>(function(e,t={}){let r=(t,r)=>e(r).update(t).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=t=>e(t),Object.assign(r,t),Object.freeze(r)})(()=>new A(t,e,r),n))(6,72,64,{oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,10])});var $,S=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,M=Math.ceil,E=Math.floor,N="[BigNumber Error] ",Z=N+"Number primitive has more than 15 significant digits: ",j=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function T(e){var t=0|e;return e>0||e===t?t:t-1}function P(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function I(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=l==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function R(e,t,r,n){if(e<t||e>r||e!==E(e))throw Error(N+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function C(e){var t=e.c.length-1;return T(e.e/14)==t&&e.c[t]%2!=0}function U(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function L(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var F=function e(t){var r,n,i,o,a,s,l,u,c,d=A.prototype={constructor:A,toString:null,valueOf:null},f=new A(1),h=20,p=4,y=-7,m=21,g=-1e7,v=1e7,_=!1,k=1,w=0,b={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},z="0123456789abcdefghijklmnopqrstuvwxyz",x=!0;function A(e,t){var r,n,i,o,a,s,l,d,f=this;if(!(f instanceof A))return new A(e,t);if(null==t){if(e&&!0===e._isBigNumber){f.s=e.s,!e.c||e.e>v?f.c=f.e=null:e.e<g?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice());return}if((s="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,a=e;a>=10;a/=10,o++);o>v?f.c=f.e=null:(f.e=o,f.c=[e]);return}d=String(e)}else{if(!S.test(d=String(e)))return c(f,d,s);f.s=45==d.charCodeAt(0)?(d=d.slice(1),-1):1}(o=d.indexOf("."))>-1&&(d=d.replace(".","")),(a=d.search(/e/i))>0?(o<0&&(o=a),o+=+d.slice(a+1),d=d.substring(0,a)):o<0&&(o=d.length)}else{if(R(t,2,z.length,"Base"),10==t&&x)return D(f=new A(e),h+f.e+1,p);if(d=String(e),s="number"==typeof e){if(0*e!=0)return c(f,d,s,t);if(f.s=1/e<0?(d=d.slice(1),-1):1,A.DEBUG&&d.replace(/^0\.0*|\./,"").length>15)throw Error(Z+e)}else f.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1;for(r=z.slice(0,t),o=a=0,l=d.length;a<l;a++)if(0>r.indexOf(n=d.charAt(a))){if("."==n){if(a>o){o=l;continue}}else if(!i&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){i=!0,a=-1,o=0;continue}return c(f,String(e),s,t)}s=!1,(o=(d=u(d,t,10,f.s)).indexOf("."))>-1?d=d.replace(".",""):o=d.length}for(a=0;48===d.charCodeAt(a);a++);for(l=d.length;48===d.charCodeAt(--l););if(d=d.slice(a,++l)){if(l-=a,s&&A.DEBUG&&l>15&&(e>0x1fffffffffffff||e!==E(e)))throw Error(Z+f.s*e);if((o=o-a-1)>v)f.c=f.e=null;else if(o<g)f.c=[f.e=0];else{if(f.e=o,f.c=[],a=(o+1)%14,o<0&&(a+=14),a<l){for(a&&f.c.push(+d.slice(0,a)),l-=14;a<l;)f.c.push(+d.slice(a,a+=14));a=14-(d=d.slice(a)).length}else a-=l;for(;a--;d+="0");f.c.push(+d)}}else f.c=[f.e=0]}function O(e,t,r,n){var i,o,a,s,l;if(null==r?r=p:R(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)l=P(e.c),l=1==n||2==n&&(a<=y||a>=m)?U(l,a):L(l,a,"0");else if(o=(e=D(new A(e),t,r)).e,s=(l=P(e.c)).length,1==n||2==n&&(t<=o||o<=y)){for(;s<t;l+="0",s++);l=U(l,o)}else if(t-=a+(2===n&&o>a),l=L(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function $(e,t){for(var r,n,i=1,o=new A(e[0]);i<e.length;i++)(n=new A(e[i])).s&&(r=I(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function F(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>v?e.c=e.e=null:r<g?e.c=[e.e=0]:(e.e=r,e.c=t),e}function D(e,t,r,n){var i,o,a,s,l,u,c,d=e.c;if(d){e:{for(i=1,s=d[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=14,a=t,c=E((l=d[u=0])/j[i-a-1]%10);else if((u=M((o+1)/14))>=d.length)if(n){for(;d.length<=u;d.push(0));l=c=0,i=1,o%=14,a=o-14+1}else break e;else{for(i=1,l=s=d[u];s>=10;s/=10,i++);o%=14,c=(a=o-14+i)<0?0:E(l/j[i-a-1]%10)}if(n=n||t<0||null!=d[u+1]||(a<0?l:l%j[i-a-1]),n=r<4?(c||n)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||n||6==r&&(o>0?a>0?l/j[i-a]:0:d[u-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,n?(t-=e.e+1,d[0]=j[(14-t%14)%14],e.e=-t||0):d[0]=e.e=0,e;if(0==o?(d.length=u,s=1,u--):(d.length=u+1,s=j[14-o],d[u]=a>0?E(l/j[i-a]%j[a])*s:0),n)for(;;)if(0==u){for(o=1,a=d[0];a>=10;a/=10,o++);for(a=d[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,1e14==d[0]&&(d[0]=1));break}else{if(d[u]+=s,1e14!=d[u])break;d[u--]=0,s=1}for(o=d.length;0===d[--o];d.pop());}e.e>v?e.c=e.e=null:e.e<g&&(e.c=[e.e=0])}return e}function V(e){var t,r=e.e;return null===r?e.toString():(t=P(e.c),t=r<=y||r>=m?U(t,r):L(t,r,"0"),e.s<0?"-"+t:t)}return A.clone=e,A.ROUND_UP=0,A.ROUND_DOWN=1,A.ROUND_CEIL=2,A.ROUND_FLOOR=3,A.ROUND_HALF_UP=4,A.ROUND_HALF_DOWN=5,A.ROUND_HALF_EVEN=6,A.ROUND_HALF_CEIL=7,A.ROUND_HALF_FLOOR=8,A.EUCLID=9,A.config=A.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(R(r=e[t],0,1e9,t),h=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(R(r=e[t],0,8,t),p=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(R(r[0],-1e9,0,t),R(r[1],0,1e9,t),y=r[0],m=r[1]):(R(r,-1e9,1e9,t),y=-(m=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)R(r[0],-1e9,-1,t),R(r[1],1,1e9,t),g=r[0],v=r[1];else if(R(r,-1e9,1e9,t),r)g=-(v=r<0?-r:r);else throw Error(N+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))_=r;else throw _=!r,Error(N+"crypto unavailable");else _=r;else throw Error(N+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(R(r=e[t],0,9,t),k=r),e.hasOwnProperty(t="POW_PRECISION")&&(R(r=e[t],0,1e9,t),w=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))b=r;else throw Error(N+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(N+t+" invalid: "+r);x="0123456789"==r.slice(0,10),z=r}}else throw Error(N+"Object expected: "+e);return{DECIMAL_PLACES:h,ROUNDING_MODE:p,EXPONENTIAL_AT:[y,m],RANGE:[g,v],CRYPTO:_,MODULO_MODE:k,POW_PRECISION:w,FORMAT:b,ALPHABET:z}},A.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!A.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===E(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==E(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(N+"Invalid BigNumber: "+e)},A.maximum=A.max=function(){return $(arguments,-1)},A.minimum=A.min=function(){return $(arguments,1)},r=0x20000000000000*Math.random()&2097151?function(){return E(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},A.random=function(e){var t,n,i,o,a,s=0,l=[],u=new A(f);if(null==e?e=h:R(e,0,1e9),o=M(e/14),_)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s<o;)(a=131072*t[s]+(t[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(l.push(a%1e14),s+=2);s=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);s<o;)(a=(31&t[s])*0x1000000000000+0x10000000000*t[s+1]+0x100000000*t[s+2]+0x1000000*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(l.push(a%1e14),s+=7);s=o/7}else throw _=!1,Error(N+"crypto unavailable");if(!_)for(;s<o;)(a=r())<9e15&&(l[s++]=a%1e14);for(o=l[--s],e%=14,o&&e&&(a=j[14-e],l[s]=E(o/a)*a);0===l[s];l.pop(),s--);if(s<0)l=[i=0];else{for(i=-1;0===l[0];l.splice(0,1),i-=14);for(s=1,a=l[0];a>=10;a/=10,s++);s<14&&(i-=14-s)}return u.e=i,u.c=l,u},A.sum=function(){for(var e=1,t=arguments,r=new A(t[0]);e<t.length;)r=r.plus(t[e++]);return r},u=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,u,c,d,f,y,m,g,v=r.indexOf("."),_=h,k=p;for(v>=0&&(d=w,w=0,r=r.replace(".",""),y=(g=new A(n)).pow(r.length-v),w=d,g.c=t(L(P(y.c),y.e,"0"),10,i,e),g.e=g.c.length),c=d=(m=t(r,n,i,a?(s=z,e):(s=e,z))).length;0==m[--d];m.pop());if(!m[0])return s.charAt(0);if(v<0?--c:(y.c=m,y.e=c,y.s=o,m=(y=l(y,g,_,k,i)).c,f=y.r,c=y.e),v=m[u=c+_+1],d=i/2,f=f||u<0||null!=m[u+1],f=k<4?(null!=v||f)&&(0==k||k==(y.s<0?3:2)):v>d||v==d&&(4==k||f||6==k&&1&m[u-1]||k==(y.s<0?8:7)),u<1||!m[0])r=f?L(s.charAt(1),-_,s.charAt(0)):s.charAt(0);else{if(m.length=u,f)for(--i;++m[--u]>i;)m[u]=0,u||(++c,m=[1].concat(m));for(d=m.length;!m[--d];);for(v=0,r="";v<=d;r+=s.charAt(m[v++]));r=L(r,c,s.charAt(0))}return r}}(),l=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var l,u,c,d,f,h,p,y,m,g,v,_,k,w,b,z,x,O=n.s==i.s?1:-1,$=n.c,S=i.c;if(!$||!$[0]||!S||!S[0])return new A(!n.s||!i.s||($?S&&$[0]==S[0]:!S)?NaN:$&&0==$[0]||!S?0*O:O/0);for(m=(y=new A(O)).c=[],O=o+(u=n.e-i.e)+1,s||(s=1e14,u=T(n.e/14)-T(i.e/14),O=O/14|0),c=0;S[c]==($[c]||0);c++);if(S[c]>($[c]||0)&&u--,O<0)m.push(1),d=!0;else{for(w=$.length,z=S.length,c=0,O+=2,(f=E(s/(S[0]+1)))>1&&(S=e(S,f,s),$=e($,f,s),z=S.length,w=$.length),k=z,v=(g=$.slice(0,z)).length;v<z;g[v++]=0);x=[0].concat(x=S.slice()),b=S[0],S[1]>=s/2&&b++;do{if(f=0,(l=t(S,g,z,v))<0){if(_=g[0],z!=v&&(_=_*s+(g[1]||0)),(f=E(_/b))>1)for(f>=s&&(f=s-1),p=(h=e(S,f,s)).length,v=g.length;1==t(h,g,p,v);)f--,r(h,z<p?x:S,p,s),p=h.length,l=1;else 0==f&&(l=f=1),p=(h=S.slice()).length;if(p<v&&(h=[0].concat(h)),r(g,h,v,s),v=g.length,-1==l)for(;1>t(S,g,z,v);)f++,r(g,z<v?x:S,v,s),v=g.length}else 0===l&&(f++,g=[0]);m[c++]=f,g[0]?g[v++]=$[k]||0:(g=[$[k]],v=1)}while((k++<w||null!=g[0])&&O--);d=null!=g[0],m[0]||m.splice(0,1)}if(1e14==s){for(c=1,O=m[0];O>=10;O/=10,c++);D(y,o+(y.e=c+14*u-1)+1,a,d)}else y.e=u,y.r=+d;return y}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,a=/^-?(Infinity|NaN)$/,s=/^\s*\+(?=[\w.])|^\s+|\s+$/g,c=function(e,t,r,l){var u,c=r?t:t.replace(s,"");if(a.test(c))e.s=isNaN(c)?null:c<0?-1:1;else{if(!r&&(c=c.replace(n,function(e,t,r){return u="x"==(r=r.toLowerCase())?16:"b"==r?2:8,l&&l!=u?e:t}),l&&(u=l,c=c.replace(i,"$1").replace(o,"0.$1")),t!=c))return new A(c,u);if(A.DEBUG)throw Error(N+"Not a"+(l?" base "+l:"")+" number: "+t);e.s=null}e.c=e.e=null},d.absoluteValue=d.abs=function(){var e=new A(this);return e.s<0&&(e.s=1),e},d.comparedTo=function(e,t){return I(this,new A(e,t))},d.decimalPlaces=d.dp=function(e,t){var r,n,i;if(null!=e)return R(e,0,1e9),null==t?t=p:R(t,0,8),D(new A(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-T(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},d.dividedBy=d.div=function(e,t){return l(this,new A(e,t),h,p)},d.dividedToIntegerBy=d.idiv=function(e,t){return l(this,new A(e,t),0,1)},d.exponentiatedBy=d.pow=function(e,t){var r,n,i,o,a,s,l,u,c,d=this;if((e=new A(e)).c&&!e.isInteger())throw Error(N+"Exponent not an integer: "+V(e));if(null!=t&&(t=new A(t)),s=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return c=new A(Math.pow(+V(d),s?e.s*(2-C(e)):+V(e))),t?c.mod(t):c;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new A(NaN);(n=!l&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||s&&d.c[1]>=24e7:d.c[0]<8e13||s&&d.c[0]<=9999975e7)))return o=d.s<0&&C(e)?-0:0,d.e>-1&&(o=1/o),new A(l?1/o:o);w&&(o=M(w/14+2))}for(s?(r=new A(.5),l&&(e.s=1),u=C(e)):u=(i=Math.abs(+V(e)))%2,c=new A(f);;){if(u){if(!(c=c.times(d)).c)break;o?c.c.length>o&&(c.c.length=o):n&&(c=c.mod(t))}if(i){if(0===(i=E(i/2)))break;u=i%2}else if(D(e=e.times(r),e.e+1,1),e.e>14)u=C(e);else{if(0==(i=+V(e)))break;u=i%2}d=d.times(d),o?d.c&&d.c.length>o&&(d.c.length=o):n&&(d=d.mod(t))}return n?c:(l&&(c=f.div(c)),t?c.mod(t):o?D(c,w,p,a):c)},d.integerValue=function(e){var t=new A(this);return null==e?e=p:R(e,0,8),D(t,t.e+1,e)},d.isEqualTo=d.eq=function(e,t){return 0===I(this,new A(e,t))},d.isFinite=function(){return!!this.c},d.isGreaterThan=d.gt=function(e,t){return I(this,new A(e,t))>0},d.isGreaterThanOrEqualTo=d.gte=function(e,t){return 1===(t=I(this,new A(e,t)))||0===t},d.isInteger=function(){return!!this.c&&T(this.e/14)>this.c.length-2},d.isLessThan=d.lt=function(e,t){return 0>I(this,new A(e,t))},d.isLessThanOrEqualTo=d.lte=function(e,t){return -1===(t=I(this,new A(e,t)))||0===t},d.isNaN=function(){return!this.s},d.isNegative=function(){return this.s<0},d.isPositive=function(){return this.s>0},d.isZero=function(){return!!this.c&&0==this.c[0]},d.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new A(e,t)).s,!a||!t)return new A(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new A(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new A(u[0]?this:3==p?-0:0)}if(s=T(s),l=T(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t<n;t++)if(u[t]!=c[t]){o=u[t]<c[t];break}if(o&&(i=u,u=c,c=i,e.s=-e.s),(t=(n=c.length)-(r=u.length))>0)for(;t--;u[r++]=0);for(t=1e14-1;n>a;){if(u[--n]<c[n]){for(r=n;r&&!u[--r];u[r]=t);--u[r],u[n]+=1e14}u[n]-=c[n]}for(;0==u[0];u.splice(0,1),--l);return u[0]?F(e,u,l):(e.s=3==p?-1:1,e.c=[e.e=0],e)},d.modulo=d.mod=function(e,t){var r,n;return(e=new A(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==k?(n=e.s,e.s=1,r=l(this,e,0,3),e.s=n,r.s*=n):r=l(this,e,0,k),(e=this.minus(r.times(e))).c[0]||1!=k||(e.s=this.s),e):new A(this):new A(NaN)},d.multipliedBy=d.times=function(e,t){var r,n,i,o,a,s,l,u,c,d,f,h,p,y=this.c,m=(e=new A(e,t)).c;if(!y||!m||!y[0]||!m[0])return this.s&&e.s&&(!y||y[0]||m)&&(!m||m[0]||y)?(e.s*=this.s,y&&m?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=T(this.e/14)+T(e.e/14),e.s*=this.s,(l=y.length)<(d=m.length)&&(p=y,y=m,m=p,i=l,l=d,d=i),i=l+d,p=[];i--;p.push(0));for(i=d;--i>=0;){for(r=0,f=m[i]%1e7,h=m[i]/1e7|0,o=i+(a=l);o>i;)s=h*(u=y[--a]%1e7)+(c=y[a]/1e7|0)*f,r=((u=f*u+s%1e7*1e7+p[o]+r)/1e14|0)+(s/1e7|0)+h*c,p[o--]=u%1e14;p[o]=r}return r?++n:p.splice(0,1),F(e,p,n)},d.negated=function(){var e=new A(this);return e.s=-e.s||null,e},d.plus=function(e,t){var r,n=this.s;if(t=(e=new A(e,t)).s,!n||!t)return new A(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new A(n/0);if(!a[0]||!s[0])return s[0]?e:new A(a[0]?this:0*n)}if(i=T(i),o=T(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),F(e,a,o)},d.precision=d.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return R(e,1,1e9),null==t?t=p:R(t,0,8),D(new A(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},d.shiftedBy=function(e){return R(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},d.squareRoot=d.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,u=h+4,c=new A("0.5");if(1!==a||!o||!o[0])return new A(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+V(this)))||a==1/0?(((t=P(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=T((s+1)/2)-(s<0||s%2),r=new A(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new A(a+""),r.c[0]){for((a=(s=r.e)+u)<3&&(a=0);;)if(i=r,r=c.times(i.plus(l(this,i,u,1))),P(i.c).slice(0,a)===(t=P(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(D(r,r.e+h+2,1),e=!r.times(r).eq(this));break}if(!n&&(D(i,i.e+h+2,0),i.times(i).eq(this))){r=i;break}u+=4,a+=4,n=1}}return D(r,r.e+h+1,p,e)},d.toExponential=function(e,t){return null!=e&&(R(e,0,1e9),e++),O(this,e,t,1)},d.toFixed=function(e,t){return null!=e&&(R(e,0,1e9),e=e+this.e+1),O(this,e,t)},d.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=b;else if("object"!=typeof r)throw Error(N+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),a=+r.groupSize,s=+r.secondaryGroupSize,l=r.groupSeparator||"",u=o[0],c=o[1],d=this.s<0,f=d?u.slice(1):u,h=f.length;if(s&&(i=a,a=s,s=i,h-=i),a>0&&h>0){for(i=h%a||a,u=f.substr(0,i);i<h;i+=a)u+=l+f.substr(i,a);s>0&&(u+=l+f.slice(i)),d&&(u="-"+u)}n=c?u+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?c.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):c):u}return(r.prefix||"")+n+(r.suffix||"")},d.toFraction=function(e){var t,r,n,i,o,a,s,u,c,d,h,y,m=this.c;if(null!=e&&(!(s=new A(e)).isInteger()&&(s.c||1!==s.s)||s.lt(f)))throw Error(N+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+V(s));if(!m)return new A(this);for(t=new A(f),c=r=new A(f),n=u=new A(f),y=P(m),o=t.e=y.length-this.e-1,t.c[0]=j[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=v,v=1/0,s=new A(y),u.c[0]=0;d=l(s,t,0,1),1!=(i=r.plus(d.times(n))).comparedTo(e);)r=n,n=i,c=u.plus(d.times(i=c)),u=i,t=s.minus(d.times(i=t)),s=i;return i=l(e.minus(r),n,0,1),u=u.plus(i.times(c)),r=r.plus(i.times(n)),u.s=c.s=this.s,o*=2,h=1>l(c,n,o,p).minus(this).abs().comparedTo(l(u,r,o,p).minus(this).abs())?[c,n]:[u,r],v=a,h},d.toNumber=function(){return+V(this)},d.toPrecision=function(e,t){return null!=e&&R(e,1,1e9),O(this,e,t,2)},d.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=y||i>=m?U(P(r.c),i):L(P(r.c),i,"0"):10===e&&x?t=L(P((r=D(new A(r),h+i+1,p)).c),r.e,"0"):(R(e,2,z.length,"Base"),t=u(L(P(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},d.valueOf=d.toJSON=function(){return V(this)},d._isBigNumber=!0,d[Symbol.toStringTag]="BigNumber",d[Symbol.for("nodejs.util.inspect.custom")]=d.valueOf,null!=t&&A.set(t),A}();let D=24,V="u">typeof globalThis&&globalThis.crypto&&"function"==typeof globalThis.crypto.getRandomValues?()=>{let e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]/0x100000000}:Math.random,J=(e=4,t=V)=>{let r="";for(;r.length<e;)r+=Math.floor(36*t()).toString(36);return r},q=(e="")=>(function(e){let t=new F(0);for(let r of e.values())t=t.multipliedBy(256).plus(r);return t})(O(new TextEncoder().encode(e))).toString(36).slice(1),B=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),H=({globalObj:e="u">typeof global?global:"u">typeof window?window:{},random:t=V}={})=>{let r=Object.keys(e).toString();return q(r.length?r+J(32,t):J(32,t)).substring(0,32)},W=e=>()=>e++,G=0x1c6b1f1f,X=($=({random:e=V,counter:t=W(Math.floor(e()*G)),length:r=D,fingerprint:n=H({random:e})}={})=>{if(r>32)throw Error(`Length must be between 2 and 32. Received: ${r}`);return function(){let i=B[Math.floor(e()*B.length)],o=Date.now().toString(36),a=t().toString(36),s=J(r,e),l=`${o+s+a+n}`;return`${i+q(l).substring(1,r)}`}},()=>(n||(n=$()),n()))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6638],{6539:(e,t,n)=>{n.d(t,{Button:()=>i});var o=n(12115),r=n(67148),l=n(55004);let i=o.forwardRef(function(e,t){let{render:n,className:o,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:s=!0,style:d,...u}=e,{getButtonProps:p,buttonRef:c}=(0,r.s)({disabled:i,focusableWhenDisabled:a,native:s});return(0,l.o)("button",e,{state:{disabled:i},ref:[t,c],props:[u,p]})})},7121:(e,t,n)=>{n.d(t,{t:()=>f});var o=n(46106),r=n(12115),l=n(63699),i=n(67148),a=n(55004),s=n(47843),d=n(58014),u=n(62172),p=n(49642),c=n(42164),g=n(49093);let f=r.forwardRef(function(e,t){let{render:n,className:f,style:v,disabled:m=!1,nativeButton:C=!0,id:S,payload:h,handle:P,...x}=e,E=(0,l.PQ)(!0),b=P?.store??E?.store;if(!b)throw Error((0,o.A)(79));let O=(0,p.e)(S),y=b.useState("floatingRootContext"),M=b.useState("isOpenedByTrigger",O),R=b.useState("triggerPopupId",O),D=r.useRef(null),{registerTrigger:I,isMountedByThisTrigger:w}=(0,u.L_)(O,D,b,{payload:h}),{getButtonProps:k,buttonRef:T}=(0,i.s)({disabled:m,native:C}),N=(0,c.k)(y,{enabled:null!=y}),j=(0,g.L)(()=>b.select("open"),e=>{b.set("openMethod",e)}),A=b.useState("triggerProps",w);return(0,a.o)("button",e,{state:{disabled:m,open:M},ref:[T,t,I,D],props:[N.reference,A,j,{[d.Kd]:"",id:O,"aria-haspopup":"dialog","aria-expanded":M,"aria-controls":R},x,k],stateAttributesMapping:s.qV})})},11248:(e,t,n)=>{n.d(t,{h:()=>h});var o,r,l=n(12115),i=n(95491),a=n(63699),s=n(55004),d=n(47843),u=n(42075);let p=((o={}).nestedDialogs="--nested-dialogs",o),c=((r={})[r.open=d.lP.open]="open",r[r.closed=d.lP.closed]="closed",r[r.startingStyle=d.lP.startingStyle]="startingStyle",r[r.endingStyle=d.lP.endingStyle]="endingStyle",r.nested="data-nested",r.nestedDialogOpen="data-nested-dialog-open",r);var g=n(95363),f=n(20363),v=n(35188),m=n(62172),C=n(95155);let S={...d.GW,...u.G,nestedDialogOpen:e=>e?{[c.nestedDialogOpen]:""}:null},h=l.forwardRef(function(e,t){let{render:n,className:o,style:r,finalFocus:l,initialFocus:d,...u}=e,{store:c}=(0,a.PQ)(),h=c.useState("descriptionElementId"),P=c.useState("disablePointerDismissal"),x=c.useState("floatingRootContext"),E=c.useState("popupProps"),b=c.useState("modal"),O=c.useState("mounted"),y=c.useState("nested"),M=c.useState("nestedOpenDialogCount"),R=c.useState("open"),D=c.useState("openMethod"),I=c.useState("titleElementId"),w=c.useState("transitionStatus"),k=c.useState("role"),T=x.useState("floatingId"),N=u.id??T;(0,g.p)(),(0,f.v)({open:R,ref:c.context.popupRef,onComplete(){R&&c.context.onOpenChangeComplete?.(!0)}});let j=void 0===d?function(e){return"touch"!==e||c.context.popupRef.current}:d,A=c.useStateSetter("popupElement"),B=(0,s.o)("div",e,{state:{open:R,nested:y,transitionStatus:w,nestedDialogOpen:M>0},props:[E,{id:N,"aria-labelledby":I??void 0,"aria-describedby":h??void 0,role:k,...m.Ls,hidden:!O,onKeyDown(e){v.jF.has(e.key)&&e.stopPropagation()},style:{[p.nestedDialogs]:M}},u],ref:[t,c.context.popupRef,A],stateAttributesMapping:S});return(0,C.jsx)(i.s,{context:x,openInteractionType:D,disabled:!O,closeOnFocusOut:!P,initialFocus:j,returnFocus:l,modal:!1!==b,restoreFocus:"popup",children:B})})},18460:(e,t,n)=>{n.d(t,{F:()=>i});var o=n(29722);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=o.$,i=(e,t)=>n=>{var o;if((null==t?void 0:t.variants)==null)return l(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],o=null==a?void 0:a[e];if(null===t)return null;let l=r(t)||r(o);return i[e][l]}),d=n&&Object.entries(n).reduce((e,t)=>{let[n,o]=t;return void 0===o||(e[n]=o),e},{});return l(e,s,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:n,className:o,...r}=t;return Object.entries(r).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...d}[t]):({...a,...d})[t]===n})?[...e,n,o]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},25381:(e,t,n)=>{n.d(t,{V:()=>r});var o=n(94257);function r(e){return(0,o.G)(e,"alert-dialog")}},35176:(e,t,n)=>{n.d(t,{X:()=>d});var o=n(12115),r=n(63699),l=n(55004),i=n(47843),a=n(42075);let s={...i.GW,...a.G},d=o.forwardRef(function(e,t){let{render:n,className:o,style:i,forceRender:a=!1,...d}=e,{store:u}=(0,r.PQ)(),p=u.useState("open"),c=u.useState("nested"),g=u.useState("mounted"),f=u.useState("transitionStatus");return(0,l.o)("div",e,{state:{open:p,transitionStatus:f},ref:[u.context.backdropRef,t],stateAttributesMapping:s,props:[{role:"presentation",hidden:!g,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:a||!c})})},45362:(e,t,n)=>{n.d(t,{H:()=>d});var o=n(12115),r=n(63699),l=n(55004),i=n(67148),a=n(50812),s=n(90278);let d=o.forwardRef(function(e,t){let{render:n,className:o,style:d,disabled:u=!1,nativeButton:p=!0,...c}=e,{store:g}=(0,r.PQ)(),f=g.useState("open"),{getButtonProps:v,buttonRef:m}=(0,i.s)({disabled:u,native:p});return(0,l.o)("button",e,{state:{disabled:u},ref:[t,m],props:[{onClick:function(e){f&&g.setOpen(!1,(0,a.d)(s.SR,e.nativeEvent))}},c,v]})})},50981:(e,t,n)=>{n.d(t,{A:()=>o});let o=(0,n(30772).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},51880:(e,t,n)=>{n.d(t,{Z:()=>u});var o=n(12115),r=n(62749),l=n(74649),i=n(63699),a=n(95363),s=n(12935),d=n(95155);let u=o.forwardRef(function(e,t){let{keepMounted:n=!1,...o}=e,{store:u}=(0,i.PQ)(),p=u.useState("mounted"),c=u.useState("modal"),g=u.useState("open");return p||n?(0,d.jsx)(a.m.Provider,{value:n,children:(0,d.jsxs)(l.XF,{ref:t,...o,children:[p&&!0===c&&(0,d.jsx)(s.W,{ref:u.context.internalBackdropRef,inert:(0,r.Y)(!g)}),e.children]})}):null})},63699:(e,t,n)=>{n.d(t,{PQ:()=>a,Ts:()=>l,am:()=>i});var o=n(46106),r=n(12115);let l=r.createContext(!1),i=r.createContext(void 0);function a(e){let t=r.useContext(i);if(!1===e&&void 0===t)throw Error((0,o.A)(27));return t}},82022:(e,t,n)=>{n.d(t,{L:()=>a});var o=n(12115),r=n(63699),l=n(55004),i=n(49642);let a=o.forwardRef(function(e,t){let{render:n,className:o,style:a,id:s,...d}=e,{store:u}=(0,r.PQ)(),p=(0,i.e)(s);return u.useSyncedValueWithCleanup("titleElementId",p),(0,l.o)("h2",e,{ref:t,props:[{id:p},d]})})},94257:(e,t,n)=>{n.d(t,{G:()=>M});var o=n(12115),r=n(6084),l=n(61001),i=n(57445),a=n(47936),s=n(80384),d=n(28823),u=n(50812),p=n(90278),c=n(62172);function g({store:e,dialogRoot:t}){let{parentContext:n,isDrawer:r}=t,u=e.useState("open"),p=e.useState("disablePointerDismissal"),f=e.useState("modal"),v=e.useState("popupElement"),m=e.useState("floatingRootContext"),[C,S]=o.useState(0),[h,P]=o.useState(0),x=0===C,E=(0,s.s)(m,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===f?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button||"touches"in t&&1!==t.touches.length)return!1;let n=(0,d.EW)(t);return!!x&&!p&&(!f||!e.context.internalBackdropRef.current&&!e.context.backdropRef.current||e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||(0,d.gR)(n,v)&&!n?.hasAttribute("data-base-ui-portal"))},escapeKey:x});(0,l.K)(u&&!0===f,v),e.useContextCallback("onNestedDialogOpen",(e,t)=>{S(e),P(t)}),e.useContextCallback("onNestedDialogClose",()=>{S(0),P(0)}),o.useEffect(()=>(n?.onNestedDialogOpen&&u&&n.onNestedDialogOpen(C+1,h+ +!!r),n?.onNestedDialogClose&&!u&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&u&&n.onNestedDialogClose()}),[r,u,C,h,n]);let b=E.reference??i.t0,O=E.trigger??i.t0,y=o.useMemo(()=>(0,a.v6)(c.Ls,E.floating),[E.floating]);return(0,c.i6)(e,{activeTriggerProps:b,inactiveTriggerProps:O,popupProps:y,nestedOpenDialogCount:C,nestedOpenDrawerCount:h}),null}var f=n(63699),v=n(54983),m=n(67994),C=n(70531),S=n(72668);let h=(0,v.M)(e=>e.triggerIdProp??e.activeTriggerId),P=(0,v.M)(e=>e.openProp??e.open),x=(0,v.M)(e=>(e.popupElement?.id??e.floatingId)||void 0);function E(e,t){return void 0!==t&&P(e)&&h(e)===t}let b={...{open:P,mounted:(0,v.M)(e=>e.mounted),transitionStatus:(0,v.M)(e=>e.transitionStatus),floatingRootContext:(0,v.M)(e=>e.floatingRootContext),triggerCount:(0,v.M)(e=>e.triggerCount),preventUnmountingOnClose:(0,v.M)(e=>e.preventUnmountingOnClose),payload:(0,v.M)(e=>e.payload),activeTriggerId:h,activeTriggerElement:(0,v.M)(e=>e.mounted?e.activeTriggerElement:null),popupId:x,isTriggerActive:(0,v.M)((e,t)=>void 0!==t&&h(e)===t),isOpenedByTrigger:(0,v.M)((e,t)=>E(e,t)),isMountedByTrigger:(0,v.M)((e,t)=>void 0!==t&&h(e)===t&&e.mounted),triggerProps:(0,v.M)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:(0,v.M)((e,t)=>E(e,t)||void 0!==t&&P(e)&&null==h(e)&&1===e.triggerCount?x(e):void 0),popupProps:(0,v.M)(e=>e.popupProps),popupElement:(0,v.M)(e=>e.popupElement),positionerElement:(0,v.M)(e=>e.positionerElement)},modal:(0,v.M)(e=>e.modal),nested:(0,v.M)(e=>e.nested),nestedOpenDialogCount:(0,v.M)(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:(0,v.M)(e=>e.nestedOpenDrawerCount),disablePointerDismissal:(0,v.M)(e=>e.disablePointerDismissal),openMethod:(0,v.M)(e=>e.openMethod),descriptionElementId:(0,v.M)(e=>e.descriptionElementId),titleElementId:(0,v.M)(e=>e.titleElementId),viewportElement:(0,v.M)(e=>e.viewportElement),role:(0,v.M)(e=>e.role)};class O extends m.H{constructor(e,t,n=!1){const r=new S.Z,l=function(e={}){return{...{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new C.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new S.Z,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0}),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:i.t0,inactiveTriggerProps:i.t0,popupProps:i.t0},modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e);l.floatingRootContext=function(e,t,n=!1){return new C.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}(r,t,n),super(l,{popupRef:o.createRef(),backdropRef:o.createRef(),internalBackdropRef:o.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},b)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};(0,c.CN)(n,e,t.trigger),this.update(n)};static useStore(e,t){return(0,c.Nj)(e,(e,n)=>new O(t,e,n),!0).store}}var y=n(95155);function M(e,t="dialog"){let{children:n,open:l,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:s,disablePointerDismissal:d=!1,modal:v=!0,actionsRef:m,handle:C,triggerId:S,defaultTriggerId:h=null}=e,P="alert-dialog"===t,x=(0,f.PQ)(!0),E={modal:!!P||v,disablePointerDismissal:P||d,nested:!!x,role:P?"alertdialog":"dialog"},b=O.useStore(C?.store,{open:i,openProp:l,activeTriggerId:h,triggerIdProp:S,...E});(0,r.j)(()=>{let e=void 0===l&&!1===b.state.open&&!0===i?{open:!0,activeTriggerId:h}:null;P?b.update(e?{...E,...e}:E):e&&b.update(e)}),b.useControlledProp("openProp",l),b.useControlledProp("triggerIdProp",S),b.useSyncedValues(E),b.useContextCallback("onOpenChange",a),b.useContextCallback("onOpenChangeComplete",s);let R=b.useState("open"),D=b.useState("mounted"),I=b.useState("payload"),w=function(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:l}=e,i=t.useState("open");(0,c.xs)(t,i),(0,c.tr)(t);let{forceUnmount:a}=(0,c.l$)(i,t),s=o.useCallback(()=>{t.setOpen(!1,(0,u.d)(p.zJ))},[t]);return o.useImperativeHandle(r,()=>({unmount:a,close:s}),[a,s]),{parentContext:n,isDrawer:l}}({store:b,actionsRef:m,parentContext:x?.store.context,isDrawer:"drawer"===t}),k=o.useMemo(()=>({store:b}),[b]);return(0,y.jsx)(f.Ts.Provider,{value:!1,children:(0,y.jsxs)(f.am.Provider,{value:k,children:[(R||D)&&(0,y.jsx)(g,{store:b,dialogRoot:w}),"function"==typeof n?n({payload:I}):n]})})}},95363:(e,t,n)=>{n.d(t,{m:()=>l,p:()=>i});var o=n(46106),r=n(12115);let l=r.createContext(void 0);function i(){let e=r.useContext(l);if(void 0===e)throw Error((0,o.A)(26));return e}},98758:(e,t,n)=>{n.d(t,{r:()=>a});var o=n(12115),r=n(63699),l=n(55004),i=n(49642);let a=o.forwardRef(function(e,t){let{render:n,className:o,style:a,id:s,...d}=e,{store:u}=(0,r.PQ)(),p=(0,i.e)(s);return u.useSyncedValueWithCleanup("descriptionElementId",p),(0,l.o)("p",e,{ref:t,props:[{id:p},d]})})}}]);