@openephemeris/mcp-server 3.13.8 → 3.13.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +2 -2
  2. package/config/dev-allowlist.json +28 -4
  3. package/dist/index.js +45 -0
  4. package/dist/oauth/dcr.d.ts +11 -0
  5. package/dist/oauth/dcr.js +49 -0
  6. package/dist/oauth/discovery.d.ts +11 -0
  7. package/dist/oauth/discovery.js +40 -0
  8. package/dist/oauth/pkce.d.ts +18 -0
  9. package/dist/oauth/pkce.js +34 -0
  10. package/dist/oauth/rate-limit.d.ts +20 -0
  11. package/dist/oauth/rate-limit.js +65 -0
  12. package/dist/oauth/store.d.ts +68 -0
  13. package/dist/oauth/store.js +247 -0
  14. package/dist/oauth/supabase-jwt.d.ts +39 -0
  15. package/dist/oauth/supabase-jwt.js +194 -0
  16. package/dist/oauth/token.d.ts +21 -0
  17. package/dist/oauth/token.js +213 -0
  18. package/dist/prompts.js +171 -159
  19. package/dist/server-sse.js +134 -36
  20. package/dist/tools/apps/bazi-app.d.ts +23 -0
  21. package/dist/tools/apps/bazi-app.js +224 -0
  22. package/dist/tools/apps/bi-wheel-app.d.ts +14 -7
  23. package/dist/tools/apps/bi-wheel-app.js +293 -108
  24. package/dist/tools/apps/bodygraph-app.js +116 -14
  25. package/dist/tools/apps/moon-phase-app.d.ts +19 -0
  26. package/dist/tools/apps/moon-phase-app.js +190 -0
  27. package/dist/tools/apps/transit-timeline-app.d.ts +20 -0
  28. package/dist/tools/apps/transit-timeline-app.js +243 -0
  29. package/dist/tools/apps/vedic-chart-app.d.ts +17 -0
  30. package/dist/tools/apps/vedic-chart-app.js +226 -0
  31. package/dist/tools/index.js +4 -0
  32. package/dist/tools/specialized/acg.js +2 -2
  33. package/dist/tools/specialized/bazi.js +367 -44
  34. package/dist/tools/specialized/bi_wheel.js +1 -1
  35. package/dist/tools/specialized/chart_wheel.js +1 -1
  36. package/dist/tools/specialized/comparative.js +4 -4
  37. package/dist/tools/specialized/eclipse.js +1 -1
  38. package/dist/tools/specialized/electional.js +4 -4
  39. package/dist/tools/specialized/ephemeris_core.js +2 -2
  40. package/dist/tools/specialized/ephemeris_extended.js +8 -8
  41. package/dist/tools/specialized/hd_bodygraph.js +1 -1
  42. package/dist/tools/specialized/hd_cycles.js +2 -2
  43. package/dist/tools/specialized/hd_group.js +2 -2
  44. package/dist/tools/specialized/human_design.js +1 -1
  45. package/dist/tools/specialized/moon.js +2 -2
  46. package/dist/tools/specialized/natal.js +1 -1
  47. package/dist/tools/specialized/progressed.js +1 -1
  48. package/dist/tools/specialized/relocation.js +1 -1
  49. package/dist/tools/specialized/returns.js +3 -3
  50. package/dist/tools/specialized/synastry.js +1 -1
  51. package/dist/tools/specialized/transits.js +1 -1
  52. package/dist/tools/specialized/vedic.js +1 -1
  53. package/dist/tools/specialized/venus_star_points.js +6 -6
  54. package/dist/ui/bazi.html +213 -0
  55. package/dist/ui/bi-wheel.html +2073 -1733
  56. package/dist/ui/bodygraph.html +1201 -1037
  57. package/dist/ui/chart-wheel.html +1872 -1704
  58. package/dist/ui/moon-phase.html +6758 -0
  59. package/dist/ui/transit-timeline.html +6835 -0
  60. package/dist/ui/vedic-chart.html +210 -0
  61. package/package.json +2 -2
@@ -3,25 +3,35 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta name="color-scheme" content="dark" />
6
+ <meta name="color-scheme" content="dark light" />
7
7
  <title>Human Design Bodygraph Explorer</title>
8
8
 
9
9
 
10
- <style>:root{--bg:#010102;--surface:#030408;--surface-2:#080b11;--border:#13161d;--border-strong:#242933;--text:#e2e4e9;--text-secondary:#777a80;--muted:#5b5e62;--gold:#cc9c42;--gold-dim:#7b6540;--gold-glow:rgba(204,156,66,.2);--gold-subtle:rgba(204,156,66,.1);--hd-head:#855dd7;--hd-ajna:#3a61c4;--hd-throat:#94582a;--hd-g:#c99f00;--hd-heart:#cc272e;--hd-spleen:#3d9028;--hd-sp:#cb5a1a;--hd-sacral:#cc243d;--hd-root:#6f3600;--ch-personality:#79a1fc;--ch-design:#ac7d1b;--ch-both:#cc9c42;--ch-inactive:#1f2228;--success:#1da871;--error:#c53443;--radius:10px;--radius-sm:6px;--radius-pill:99px;--shadow-md:0 8px 40px rgba(0,0,0,.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px rgba(204,156,66,.15), 0 0 0 1px rgba(204,156,66,.2)}@supports (color:color(display-p3 0 0 0)){:root{--bg:color(display-p3 .00306656 .00431968 .00888397);--surface:color(display-p3 .013072 .016989 .0298495);--surface-2:color(display-p3 .0345774 .0431759 .0653236);--border:color(display-p3 .0763929 .0859556 .109705);--border-strong:color(display-p3 .144788 .159634 .196542);--text:color(display-p3 .889546 .895785 .910689);--text-secondary:color(display-p3 .470023 .47923 .50135);--muted:color(display-p3 .359661 .366689 .383567);--gold:color(display-p3 .76996 .617341 .321369);--gold-dim:color(display-p3 .469305 .400291 .270966);--gold-glow:color(display-p3 .76996 .617341 .321369/.2);--gold-subtle:color(display-p3 .76996 .617341 .321369/.1);--hd-head:color(display-p3 .496597 .372031 .817324);--hd-ajna:color(display-p3 .26389 .378111 .742207);--hd-throat:color(display-p3 .548969 .355242 .201432);--hd-g:color(display-p3 .777513 .62422 -.00225984);--hd-heart:color(display-p3 .737101 .219083 .211834);--hd-spleen:color(display-p3 .328385 .55681 .222852);--hd-sp:color(display-p3 .739686 .377576 .178173);--hd-sacral:color(display-p3 .735577 .213396 .258614);--hd-root:color(display-p3 .406873 .223096 .0609673);--ch-personality:color(display-p3 .508025 .628538 .962447);--ch-design:color(display-p3 .645333 .49681 .196492);--ch-both:color(display-p3 .76996 .617341 .321369);--ch-inactive:color(display-p3 .122731 .131518 .153019);--success:color(display-p3 .313719 .651039 .459895);--error:color(display-p3 .710345 .252818 .279408);--shadow-md:0 8px 40px color(display-p3 0 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px color(display-p3 .76996 .617341 .321369/.15), 0 0 0 1px color(display-p3 .76996 .617341 .321369/.2)}}@supports (color:lab(0% 0 0)){:root{--bg:lab(.302122% .0219196 -.522962);--surface:lab(1.18159% .0276566 -1.4848);--surface-2:lab(3.00584% .0228807 -3.15676);--border:lab(7.15581% -.0557452 -5.11242);--border-strong:lab(16.3713% -.0768304 -7.37782);--text:lab(90.6942% -.142396 -2.26941);--text-secondary:lab(51.2352% -.205308 -3.76425);--muted:lab(39.6443% -.165641 -3.01217);--gold:lab(67.5798% 11.9379 52.333);--gold-dim:lab(44.394% 5.21129 24.4453);--gold-glow:lab(67.5798% 11.9379 52.333/.2);--gold-subtle:lab(67.5798% 11.9379 52.333/.1);--hd-head:lab(48.5159% 37.0934 -58.1781);--hd-ajna:lab(42.6654% 12.3083 -56.648);--hd-throat:lab(43.8304% 22.8022 36.6206);--hd-g:lab(67.813% 9.5214 93.33);--hd-heart:lab(45.7636% 63.3818 40.1799);--hd-spleen:lab(53.0764% -40.8778 44.314);--hd-sp:lab(52.4466% 43.5944 55.3775);--hd-sacral:lab(45.6635% 64.206 31.2074);--hd-root:lab(29.855% 23.6799 41.1297);--ch-personality:lab(66.4233% 5.15944 -50.1959);--ch-design:lab(55.9353% 12.6865 55.2442);--ch-both:lab(67.5798% 11.9379 52.333);--ch-inactive:lab(12.9398% -.133917 -4.46223);--success:lab(61.2436% -46.7762 18.3644);--error:lab(45.8893% 57.7361 27.393);--shadow-md:0 8px 40px lab(0% 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px lab(67.5798% 11.9379 52.333/.15), 0 0 0 1px lab(67.5798% 11.9379 52.333/.2)}}*,:before,:after{box-sizing:border-box;margin:0;padding:0}[hidden]{display:none!important}html,body{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:var(--bg);height:100%;color:var(--text);background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.030'/%3E%3C/svg%3E");font-family:Geist,Space Grotesk,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.5;overflow-x:hidden}#app{flex-direction:column;gap:10px;min-height:100vh;padding:12px;display:flex}#loading-state{min-height:300px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex}#loading-state p{letter-spacing:.06em;text-transform:uppercase;font-size:11px}.spinner{border:2px solid var(--border-strong);border-top-color:var(--gold);border-radius:50%;width:32px;height:32px;animation:1.1s cubic-bezier(.4,0,.6,1) infinite spin}@keyframes spin{to{transform:rotate(360deg)}}#bodygraph-container{border-radius:var(--radius);border:1px solid var(--border-strong);width:100%;max-width:440px;box-shadow:var(--shadow-gold);background:#010102;background:color(display-p3 .00306656 .00431968 .00888397);background:lab(.302122% .0219196 -.522962);margin:0 auto;transition:box-shadow .3s;overflow:hidden}#bodygraph-container:hover{box-shadow:0 0 40px rgba(204,156,66,.22),0 0 0 1px rgba(204,156,66,.3);box-shadow:0 0 40px color(display-p3 .76996 .617341 .321369/.22),0 0 0 1px color(display-p3 .76996 .617341 .321369/.3);box-shadow:0 0 40px lab(67.5798% 11.9379 52.333/.22),0 0 0 1px lab(67.5798% 11.9379 52.333/.3)}#bodygraph-container svg{width:100%;height:auto;display:block}.center-group{cursor:pointer;transition:filter .16s}.center-group:hover{filter:brightness(1.2)drop-shadow(0 0 6px rgba(204,156,66,.35));filter:brightness(1.2)drop-shadow(0 0 6px color(display-p3 .76996 .617341 .321369/.35));filter:brightness(1.2)drop-shadow(0 0 6px lab(67.5798% 11.9379 52.333/.35))}.channel-line{cursor:pointer}.channel-line:hover .channel-vis{filter:drop-shadow(0 0 4px var(--gold-glow));stroke:var(--gold)!important;stroke-width:5px!important}.gate-badge{cursor:pointer}.gate-badge:hover circle{stroke:var(--gold)!important;stroke-opacity:1!important}.gate-badge:hover text{fill:var(--gold)!important}#info-panel{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);grid-template-columns:1fr 1fr;gap:6px 12px;width:100%;max-width:440px;margin:0 auto;padding:10px 14px;display:grid}.info-row{flex-direction:column;gap:1px;display:flex}.info-label{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:9px;font-weight:700}.info-value{color:var(--text);font-size:12px;font-weight:500}.channel-legend{flex-wrap:wrap;justify-content:center;gap:12px;width:100%;max-width:440px;margin:0 auto;padding:4px 0;display:flex}.legend-item{color:var(--text-secondary);letter-spacing:.04em;align-items:center;gap:5px;font-size:9px;font-weight:500;display:flex}.legend-swatch{border-radius:2px;flex-shrink:0;width:18px;height:3px}#controls-panel{background:0 0;width:100%;max-width:440px;margin:0 auto;padding:4px 0}.controls-row{align-items:center;gap:6px;display:flex}.controls-label{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);flex-shrink:0;font-size:9px;font-weight:700}.controls-value{color:var(--text-secondary);font-size:11px}.chart-hint{text-align:center;letter-spacing:.04em;width:100%;max-width:440px;color:var(--muted);margin:0 auto;padding:4px 0 2px;font-size:10px}.error-state{min-height:200px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.error-icon{opacity:.5;font-size:24px}@media (max-width:420px){#app{gap:8px;padding:8px}#info-panel{grid-template-columns:1fr}}#bodygraph-container.is-loading{opacity:.55;pointer-events:none;cursor:wait;transition:opacity .15s}.chart-status{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:var(--radius-pill);color:var(--gold);letter-spacing:.04em;z-index:900;opacity:0;pointer-events:none;background:rgba(5,7,13,.92);background:color(display-p3 .0216592 .0280553 .0483601/.92);background:lab(1.95095% .0425801 -2.41514/.92);border:1px solid rgba(204,156,66,.35);border:1px solid color(display-p3 .76996 .617341 .321369/.35);border:1px solid lab(67.5798% 11.9379 52.333/.35);max-height:0;padding:5px 18px;font-size:11px;font-weight:600;transition:max-height .24s cubic-bezier(.16,1,.3,1),opacity .24s,transform .24s cubic-bezier(.16,1,.3,1);position:fixed;top:10px;left:50%;overflow:hidden;transform:translate(-50%)translateY(-10px);box-shadow:0 4px 20px rgba(0,0,0,.5),0 0 0 1px rgba(204,156,66,.08);box-shadow:0 4px 20px color(display-p3 0 0 0/.5),0 0 0 1px color(display-p3 .76996 .617341 .321369/.08);box-shadow:0 4px 20px lab(0% 0 0/.5),0 0 0 1px lab(67.5798% 11.9379 52.333/.08)}.chart-status.visible{opacity:1;max-height:44px;transform:translate(-50%)translateY(0)}@keyframes gold-pulse{0%,to{border-color:rgba(204,156,66,.35);border-color:color(display-p3 .76996 .617341 .321369/.35);border-color:lab(67.5798% 11.9379 52.333/.35)}50%{border-color:rgba(204,156,66,.65);border-color:color(display-p3 .76996 .617341 .321369/.65);border-color:lab(67.5798% 11.9379 52.333/.65)}}.chart-status.visible{transform:translate(-50%)translateY(0)}.hd-popup{background:var(--surface-2);border:1px solid var(--border-strong);z-index:1000;opacity:0;pointer-events:none;border-radius:12px;width:min(340px,92vw);padding:14px 16px 12px;transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1);position:fixed;box-shadow:0 12px 48px rgba(0,0,0,.7),0 0 0 1px rgba(204,156,66,.15);box-shadow:0 12px 48px color(display-p3 0 0 0/.7),0 0 0 1px color(display-p3 .76996 .617341 .321369/.15);box-shadow:0 12px 48px lab(0% 0 0/.7),0 0 0 1px lab(67.5798% 11.9379 52.333/.15)}.hd-popup.visible{opacity:1;pointer-events:all}.hd-popup-header{align-items:flex-start;gap:10px;display:flex}.hd-popup-icon{color:var(--gold);text-align:center;flex-shrink:0;min-width:28px;font-size:18px;font-weight:700;line-height:1}.hd-popup-title{color:var(--text);flex:1;font-size:13px;font-weight:700}.hd-popup-sub{color:var(--text-secondary);letter-spacing:.01em;margin-top:2px;font-size:11px;font-weight:400}.hd-popup-close{cursor:pointer;color:var(--muted);background:0 0;border:none;border-radius:4px;flex-shrink:0;padding:2px 4px;font-size:15px;line-height:1;transition:color .12s}.hd-popup-close:hover{color:var(--text)}.ask-claude-btn{border-radius:var(--radius-sm);width:100%;color:var(--gold);letter-spacing:.04em;cursor:pointer;background:rgba(204,156,66,.12);background:color(display-p3 .76996 .617341 .321369/.12);background:lab(67.5798% 11.9379 52.333/.12);border:1px solid rgba(204,156,66,.4);border:1px solid color(display-p3 .76996 .617341 .321369/.4);border:1px solid lab(67.5798% 11.9379 52.333/.4);justify-content:center;align-items:center;gap:6px;margin-top:12px;padding:9px 16px;font-family:Geist,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;font-weight:600;transition:background .16s,border-color .16s,box-shadow .16s;display:flex}.ask-claude-btn:hover:not(:disabled){background:rgba(204,156,66,.2);background:color(display-p3 .76996 .617341 .321369/.2);background:lab(67.5798% 11.9379 52.333/.2);border-color:rgba(204,156,66,.65);border-color:color(display-p3 .76996 .617341 .321369/.65);border-color:lab(67.5798% 11.9379 52.333/.65);box-shadow:0 0 0 3px rgba(204,156,66,.12);box-shadow:0 0 0 3px color(display-p3 .76996 .617341 .321369/.12);box-shadow:0 0 0 3px lab(67.5798% 11.9379 52.333/.12)}.ask-claude-btn:disabled{opacity:.45;cursor:not-allowed}.ask-claude-btn.sending{color:var(--gold-dim);opacity:.8;cursor:wait;pointer-events:none;background:rgba(204,156,66,.08);background:color(display-p3 .76996 .617341 .321369/.08);background:lab(67.5798% 11.9379 52.333/.08);border-color:rgba(204,156,66,.25);border-color:color(display-p3 .76996 .617341 .321369/.25);border-color:lab(67.5798% 11.9379 52.333/.25)}.ask-claude-btn.sent{color:var(--success);pointer-events:none;background:rgba(29,168,113,.15);background:color(display-p3 .313719 .651039 .459895/.15);background:lab(61.2436% -46.7762 18.3644/.15);border-color:rgba(29,168,113,.5);border-color:color(display-p3 .313719 .651039 .459895/.5);border-color:lab(61.2436% -46.7762 18.3644/.5)}.ask-claude-btn.error{color:var(--error);cursor:pointer;background:rgba(197,52,67,.15);background:color(display-p3 .710345 .252818 .279408/.15);background:lab(45.8893% 57.7361 27.393/.15);border-color:rgba(197,52,67,.5);border-color:color(display-p3 .710345 .252818 .279408/.5);border-color:lab(45.8893% 57.7361 27.393/.5)}.hd-action-bar{flex-wrap:wrap;gap:8px;padding:10px 16px 6px;display:flex}.action-btn{color:#d4af37;letter-spacing:.02em;cursor:pointer;white-space:nowrap;background:rgba(212,175,55,.08);border:1px solid rgba(212,175,55,.3);border-radius:8px;align-items:center;gap:6px;padding:7px 16px;font-size:12px;font-weight:600;transition:background .2s,border-color .2s,transform .1s;display:inline-flex}.action-btn:hover{background:rgba(212,175,55,.15);border-color:rgba(212,175,55,.5);transform:translateY(-1px)}.action-btn:active{background:rgba(212,175,55,.2);transform:translateY(0)}.action-btn--primary{color:#f0d060;background:linear-gradient(135deg,rgba(212,175,55,.2),rgba(180,140,30,.25));border-color:rgba(212,175,55,.5)}.action-btn--primary:hover{background:linear-gradient(135deg,rgba(212,175,55,.3),rgba(180,140,30,.35));border-color:rgba(212,175,55,.7)}.interactive-text{cursor:pointer;transition:color .15s,text-shadow .15s;position:relative}.interactive-text:hover{color:var(--gold);text-shadow:0 0 8px rgba(204,156,66,.4);text-shadow:0 0 8px color(display-p3 .76996 .617341 .321369/.4);text-shadow:0 0 8px lab(67.5798% 11.9379 52.333/.4)}.interactive-text:focus{color:var(--gold);text-shadow:0 0 8px rgba(204,156,66,.6);text-shadow:0 0 8px color(display-p3 .76996 .617341 .321369/.6);text-shadow:0 0 8px lab(67.5798% 11.9379 52.333/.6);outline:none}.planet-activation,.variable-arrow{outline:none;transition:opacity .15s}.planet-activation:hover,.variable-arrow:hover{opacity:.7}.planet-activation:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.variable-arrow:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.center-group:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.gate-badge:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.channel:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.param-controls{background:var(--surface);border-top:1px solid var(--border);flex-shrink:0;padding:8px 12px}.param-controls-grid{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.param-group{flex-direction:column;gap:4px;display:flex}.param-group label{text-transform:uppercase;color:var(--text-secondary);letter-spacing:.05em;font-size:10px;font-weight:700}.param-group input[type=date],.param-group input[type=time],.param-group input[type=text]{border:1px solid var(--border-strong);color:var(--text);border-radius:var(--radius-sm);background:#07090e;background:color(display-p3 .0286832 .0352525 .0537785);background:lab(2.44746% .00379235 -2.33402);width:130px;padding:4px 8px;font-family:inherit;font-size:12px;transition:border-color .15s}.param-group input:focus{border-color:var(--gold-dim);outline:none}.param-group-loc{flex:1;position:relative}.param-group-loc input{width:100%}.loc-suggestions{background:var(--surface-2);border:1px solid var(--border-strong);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);z-index:100;max-height:200px;margin-top:4px;position:absolute;top:100%;left:0;right:0;overflow-y:auto}.loc-item{color:var(--text);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid var(--border);padding:8px 10px;font-size:12px;overflow:hidden}.loc-item:last-child{border-bottom:none}.loc-item:hover{background:var(--gold-subtle);color:var(--gold)}.param-actions{align-items:flex-end;gap:6px;padding-top:14px;display:flex}.param-btn-icon{border:1px solid var(--border-strong);color:var(--text-secondary);border-radius:var(--radius-sm);cursor:pointer;background:0 0;justify-content:center;align-items:center;width:26px;height:26px;transition:all .15s;display:flex}.param-btn-icon:hover{background:var(--surface-2);color:var(--text);border-color:var(--gold-dim)}.param-btn-primary{color:var(--gold);border-radius:var(--radius-sm);cursor:pointer;text-transform:uppercase;letter-spacing:.05em;background:rgba(204,156,66,.12);background:color(display-p3 .76996 .617341 .321369/.12);background:lab(67.5798% 11.9379 52.333/.12);border:1px solid rgba(204,156,66,.4);border:1px solid color(display-p3 .76996 .617341 .321369/.4);border:1px solid lab(67.5798% 11.9379 52.333/.4);height:26px;padding:4px 12px;font-family:inherit;font-size:11px;font-weight:600;transition:all .15s}.param-btn-primary:hover:not(:disabled){background:rgba(204,156,66,.2);background:color(display-p3 .76996 .617341 .321369/.2);background:lab(67.5798% 11.9379 52.333/.2);border-color:rgba(204,156,66,.65);border-color:color(display-p3 .76996 .617341 .321369/.65);border-color:lab(67.5798% 11.9379 52.333/.65)}.param-btn-primary:disabled{opacity:.5;cursor:not-allowed}
10
+ <style>:root{--bg:#010102;--surface:#030408;--surface-2:#080b11;--border:#13161d;--border-strong:#242933;--text:#e2e4e9;--text-secondary:#777a80;--muted:#5b5e62;--gold:#cc9c42;--gold-dim:#7b6540;--gold-glow:rgba(204,156,66,.2);--gold-subtle:rgba(204,156,66,.1);--hd-head:#855dd7;--hd-ajna:#3a61c4;--hd-throat:#94582a;--hd-g:#c99f00;--hd-heart:#cc272e;--hd-spleen:#3d9028;--hd-sp:#cb5a1a;--hd-sacral:#cc243d;--hd-root:#6f3600;--ch-personality:#79a1fc;--ch-design:#ac7d1b;--ch-both:#cc9c42;--ch-inactive:#1f2228;--success:#1da871;--error:#c53443;--radius:10px;--radius-sm:6px;--radius-pill:99px;--shadow-md:0 8px 40px rgba(0,0,0,.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px rgba(204,156,66,.15), 0 0 0 1px rgba(204,156,66,.2)}@supports (color:color(display-p3 0 0 0)){:root{--bg:color(display-p3 .00306656 .00431968 .00888397);--surface:color(display-p3 .013072 .016989 .0298495);--surface-2:color(display-p3 .0345774 .0431759 .0653236);--border:color(display-p3 .0763929 .0859556 .109705);--border-strong:color(display-p3 .144788 .159634 .196542);--text:color(display-p3 .889546 .895785 .910689);--text-secondary:color(display-p3 .470023 .47923 .50135);--muted:color(display-p3 .359661 .366689 .383567);--gold:color(display-p3 .76996 .617341 .321369);--gold-dim:color(display-p3 .469305 .400291 .270966);--gold-glow:color(display-p3 .76996 .617341 .321369/.2);--gold-subtle:color(display-p3 .76996 .617341 .321369/.1);--hd-head:color(display-p3 .496597 .372031 .817324);--hd-ajna:color(display-p3 .26389 .378111 .742207);--hd-throat:color(display-p3 .548969 .355242 .201432);--hd-g:color(display-p3 .777513 .62422 -.00225984);--hd-heart:color(display-p3 .737101 .219083 .211834);--hd-spleen:color(display-p3 .328385 .55681 .222852);--hd-sp:color(display-p3 .739686 .377576 .178173);--hd-sacral:color(display-p3 .735577 .213396 .258614);--hd-root:color(display-p3 .406873 .223096 .0609673);--ch-personality:color(display-p3 .508025 .628538 .962447);--ch-design:color(display-p3 .645333 .49681 .196492);--ch-both:color(display-p3 .76996 .617341 .321369);--ch-inactive:color(display-p3 .122731 .131518 .153019);--success:color(display-p3 .313719 .651039 .459895);--error:color(display-p3 .710345 .252818 .279408);--shadow-md:0 8px 40px color(display-p3 0 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px color(display-p3 .76996 .617341 .321369/.15), 0 0 0 1px color(display-p3 .76996 .617341 .321369/.2)}}@supports (color:lab(0% 0 0)){:root{--bg:lab(.302122% .0219196 -.522962);--surface:lab(1.18159% .0276566 -1.4848);--surface-2:lab(3.00584% .0228807 -3.15676);--border:lab(7.15581% -.0557452 -5.11242);--border-strong:lab(16.3713% -.0768304 -7.37782);--text:lab(90.6942% -.142396 -2.26941);--text-secondary:lab(51.2352% -.205308 -3.76425);--muted:lab(39.6443% -.165641 -3.01217);--gold:lab(67.5798% 11.9379 52.333);--gold-dim:lab(44.394% 5.21129 24.4453);--gold-glow:lab(67.5798% 11.9379 52.333/.2);--gold-subtle:lab(67.5798% 11.9379 52.333/.1);--hd-head:lab(48.5159% 37.0934 -58.1781);--hd-ajna:lab(42.6654% 12.3083 -56.648);--hd-throat:lab(43.8304% 22.8022 36.6206);--hd-g:lab(67.813% 9.5214 93.33);--hd-heart:lab(45.7636% 63.3818 40.1799);--hd-spleen:lab(53.0764% -40.8778 44.314);--hd-sp:lab(52.4466% 43.5944 55.3775);--hd-sacral:lab(45.6635% 64.206 31.2074);--hd-root:lab(29.855% 23.6799 41.1297);--ch-personality:lab(66.4233% 5.15944 -50.1959);--ch-design:lab(55.9353% 12.6865 55.2442);--ch-both:lab(67.5798% 11.9379 52.333);--ch-inactive:lab(12.9398% -.133917 -4.46223);--success:lab(61.2436% -46.7762 18.3644);--error:lab(45.8893% 57.7361 27.393);--shadow-md:0 8px 40px lab(0% 0 0/.65), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 28px lab(67.5798% 11.9379 52.333/.15), 0 0 0 1px lab(67.5798% 11.9379 52.333/.2)}}*,:before,:after{box-sizing:border-box;margin:0;padding:0}[hidden]{display:none!important}html,body{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:var(--bg);height:100%;color:var(--text);background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.030'/%3E%3C/svg%3E");font-family:Geist,Space Grotesk,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.5;overflow-x:hidden}#app{flex-direction:column;gap:8px;min-height:0;padding:8px 12px;display:flex}#loading-state{min-height:300px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex}#loading-state p{letter-spacing:.06em;text-transform:uppercase;font-size:11px}.spinner{border:2px solid var(--border-strong);border-top-color:var(--gold);border-radius:50%;width:32px;height:32px;animation:1.1s cubic-bezier(.4,0,.6,1) infinite spin}@keyframes spin{to{transform:rotate(360deg)}}#bodygraph-container{border-radius:var(--radius);border:1px solid var(--border-strong);width:100%;max-width:680px;box-shadow:var(--shadow-gold);background:#010102;background:color(display-p3 .00306656 .00431968 .00888397);background:lab(.302122% .0219196 -.522962);margin:0 auto;transition:box-shadow .3s;overflow:visible}#bodygraph-container:hover{box-shadow:0 0 40px rgba(204,156,66,.22),0 0 0 1px rgba(204,156,66,.3);box-shadow:0 0 40px color(display-p3 .76996 .617341 .321369/.22),0 0 0 1px color(display-p3 .76996 .617341 .321369/.3);box-shadow:0 0 40px lab(67.5798% 11.9379 52.333/.22),0 0 0 1px lab(67.5798% 11.9379 52.333/.3)}#bodygraph-container svg{width:100%;height:auto;max-height:min(62vh,560px);display:block}.center-group{cursor:pointer;transition:filter .16s}.center-group:hover{filter:brightness(1.2)drop-shadow(0 0 6px rgba(204,156,66,.35));filter:brightness(1.2)drop-shadow(0 0 6px color(display-p3 .76996 .617341 .321369/.35));filter:brightness(1.2)drop-shadow(0 0 6px lab(67.5798% 11.9379 52.333/.35))}.channel-line{cursor:pointer}.channel-line:hover .channel-vis{filter:drop-shadow(0 0 4px var(--gold-glow));stroke:var(--gold)!important;stroke-width:5px!important}.gate-badge{cursor:pointer}.gate-badge:hover circle{stroke:var(--gold)!important;stroke-opacity:1!important}.gate-badge:hover text{fill:var(--gold)!important}#info-panel{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);grid-template-columns:1fr 1fr;gap:6px 12px;width:100%;max-width:680px;margin:0 auto;padding:10px 14px;display:grid}.info-row{flex-direction:column;gap:1px;display:flex}.info-label{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:9px;font-weight:700}.info-value{color:var(--text);font-size:12px;font-weight:500}.channel-legend{flex-wrap:wrap;justify-content:center;gap:12px;width:100%;max-width:680px;margin:0 auto;padding:4px 0;display:flex}.legend-item{color:var(--text-secondary);letter-spacing:.04em;align-items:center;gap:5px;font-size:9px;font-weight:500;display:flex}.legend-swatch{border-radius:2px;flex-shrink:0;width:18px;height:3px}#controls-panel{background:0 0;width:100%;max-width:680px;margin:0 auto;padding:4px 0}.controls-row{align-items:center;gap:6px;display:flex}.controls-label{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);flex-shrink:0;font-size:9px;font-weight:700}.controls-value{color:var(--text-secondary);font-size:11px}.chart-hint{text-align:center;letter-spacing:.04em;width:100%;max-width:680px;color:var(--muted);margin:0 auto;padding:4px 0 2px;font-size:10px}.error-state{min-height:200px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.error-icon{opacity:.5;font-size:24px}@media (max-width:420px){#app{gap:8px;padding:8px}#info-panel{grid-template-columns:1fr}}#bodygraph-container.is-loading{opacity:.55;pointer-events:none;cursor:wait;transition:opacity .15s}.chart-status{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:var(--radius-pill);color:var(--gold);letter-spacing:.04em;z-index:900;opacity:0;pointer-events:none;background:rgba(5,7,13,.92);background:color(display-p3 .0216592 .0280553 .0483601/.92);background:lab(1.95095% .0425801 -2.41514/.92);border:1px solid rgba(204,156,66,.35);border:1px solid color(display-p3 .76996 .617341 .321369/.35);border:1px solid lab(67.5798% 11.9379 52.333/.35);max-height:0;padding:5px 18px;font-size:11px;font-weight:600;transition:max-height .24s cubic-bezier(.16,1,.3,1),opacity .24s,transform .24s cubic-bezier(.16,1,.3,1);position:fixed;top:10px;left:50%;overflow:hidden;transform:translate(-50%)translateY(-10px);box-shadow:0 4px 20px rgba(0,0,0,.5),0 0 0 1px rgba(204,156,66,.08);box-shadow:0 4px 20px color(display-p3 0 0 0/.5),0 0 0 1px color(display-p3 .76996 .617341 .321369/.08);box-shadow:0 4px 20px lab(0% 0 0/.5),0 0 0 1px lab(67.5798% 11.9379 52.333/.08)}.chart-status.visible{opacity:1;max-height:44px;transform:translate(-50%)translateY(0)}@keyframes gold-pulse{0%,to{border-color:rgba(204,156,66,.35);border-color:color(display-p3 .76996 .617341 .321369/.35);border-color:lab(67.5798% 11.9379 52.333/.35)}50%{border-color:rgba(204,156,66,.65);border-color:color(display-p3 .76996 .617341 .321369/.65);border-color:lab(67.5798% 11.9379 52.333/.65)}}.hd-popup{background:var(--surface-2);border:1px solid var(--border-strong);z-index:1000;opacity:0;pointer-events:none;border-radius:12px;width:min(340px,92vw);padding:14px 16px 12px;transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1);position:fixed;box-shadow:0 12px 48px rgba(0,0,0,.7),0 0 0 1px rgba(204,156,66,.15);box-shadow:0 12px 48px color(display-p3 0 0 0/.7),0 0 0 1px color(display-p3 .76996 .617341 .321369/.15);box-shadow:0 12px 48px lab(0% 0 0/.7),0 0 0 1px lab(67.5798% 11.9379 52.333/.15)}.hd-popup.visible{opacity:1;pointer-events:all}.hd-popup-header{align-items:flex-start;gap:10px;display:flex}.hd-popup-icon{color:var(--gold);text-align:center;flex-shrink:0;min-width:28px;font-size:18px;font-weight:700;line-height:1}.hd-popup-title{color:var(--text);flex:1;font-size:13px;font-weight:700}.hd-popup-sub{color:var(--text-secondary);letter-spacing:.01em;margin-top:2px;font-size:11px;font-weight:400}.hd-popup-close{cursor:pointer;color:var(--muted);background:0 0;border:none;border-radius:4px;flex-shrink:0;padding:2px 4px;font-size:15px;line-height:1;transition:color .12s}.hd-popup-close:hover{color:var(--text)}.ask-claude-btn{border-radius:var(--radius-sm);width:100%;color:var(--gold);letter-spacing:.04em;cursor:pointer;background:rgba(204,156,66,.12);background:color(display-p3 .76996 .617341 .321369/.12);background:lab(67.5798% 11.9379 52.333/.12);border:1px solid rgba(204,156,66,.4);border:1px solid color(display-p3 .76996 .617341 .321369/.4);border:1px solid lab(67.5798% 11.9379 52.333/.4);justify-content:center;align-items:center;gap:6px;margin-top:12px;padding:9px 16px;font-family:Geist,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;font-weight:600;transition:background .16s,border-color .16s,box-shadow .16s;display:flex}.ask-claude-btn:hover:not(:disabled){background:rgba(204,156,66,.2);background:color(display-p3 .76996 .617341 .321369/.2);background:lab(67.5798% 11.9379 52.333/.2);border-color:rgba(204,156,66,.65);border-color:color(display-p3 .76996 .617341 .321369/.65);border-color:lab(67.5798% 11.9379 52.333/.65);box-shadow:0 0 0 3px rgba(204,156,66,.12);box-shadow:0 0 0 3px color(display-p3 .76996 .617341 .321369/.12);box-shadow:0 0 0 3px lab(67.5798% 11.9379 52.333/.12)}.ask-claude-btn:disabled{opacity:.45;cursor:not-allowed}.ask-claude-btn.sending{color:var(--gold-dim);opacity:.8;cursor:wait;pointer-events:none;background:rgba(204,156,66,.08);background:color(display-p3 .76996 .617341 .321369/.08);background:lab(67.5798% 11.9379 52.333/.08);border-color:rgba(204,156,66,.25);border-color:color(display-p3 .76996 .617341 .321369/.25);border-color:lab(67.5798% 11.9379 52.333/.25)}.ask-claude-btn.sent{color:var(--success);pointer-events:none;background:rgba(29,168,113,.15);background:color(display-p3 .313719 .651039 .459895/.15);background:lab(61.2436% -46.7762 18.3644/.15);border-color:rgba(29,168,113,.5);border-color:color(display-p3 .313719 .651039 .459895/.5);border-color:lab(61.2436% -46.7762 18.3644/.5)}.ask-claude-btn.error{color:var(--error);cursor:pointer;background:rgba(197,52,67,.15);background:color(display-p3 .710345 .252818 .279408/.15);background:lab(45.8893% 57.7361 27.393/.15);border-color:rgba(197,52,67,.5);border-color:color(display-p3 .710345 .252818 .279408/.5);border-color:lab(45.8893% 57.7361 27.393/.5)}.interactive-text{cursor:pointer;transition:color .15s,text-shadow .15s;position:relative}.interactive-text:hover{color:var(--gold);text-shadow:0 0 8px rgba(204,156,66,.4);text-shadow:0 0 8px color(display-p3 .76996 .617341 .321369/.4);text-shadow:0 0 8px lab(67.5798% 11.9379 52.333/.4)}.interactive-text:focus{color:var(--gold);text-shadow:0 0 8px rgba(204,156,66,.6);text-shadow:0 0 8px color(display-p3 .76996 .617341 .321369/.6);text-shadow:0 0 8px lab(67.5798% 11.9379 52.333/.6);outline:none}.planet-activation,.variable-arrow{outline:none;transition:opacity .15s}.planet-activation:hover,.variable-arrow:hover{opacity:.7}.planet-activation:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.variable-arrow:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.center-group:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.gate-badge:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.channel:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.tooltip{-webkit-backdrop-filter:blur(14px)saturate(1.6);backdrop-filter:blur(14px)saturate(1.6);border:1px solid var(--border-strong);border-radius:var(--radius);pointer-events:none;z-index:1000;opacity:0;background:rgba(7,9,14,.92);background:color(display-p3 .0286832 .0352525 .0537785/.92);background:lab(2.44746% .00379235 -2.33402/.92);max-width:240px;padding:8px 12px;font-size:12px;transition:opacity .12s;position:fixed;box-shadow:0 8px 32px rgba(0,0,0,.55),inset 0 .5px rgba(255,255,255,.04);box-shadow:0 8px 32px color(display-p3 0 0 0/.55),inset 0 .5px color(display-p3 1 1 1/.04);box-shadow:0 8px 32px lab(0% 0 0/.55),inset 0 .5px lab(100% 0 0/.04)}.tooltip.visible{opacity:1}.tooltip-title{color:var(--text);margin-bottom:2px;font-weight:700}.tooltip-detail{color:var(--text-secondary);line-height:1.4}.tooltip-hint{color:var(--gold-dim);letter-spacing:.03em;margin-top:4px;font-size:10px}.pan-zoom-controls{z-index:800;flex-direction:column;gap:6px;display:flex;position:fixed;bottom:20px;right:20px}.pan-zoom-controls[hidden]{display:none!important}.pan-btn{background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);border-radius:var(--radius-sm);cursor:pointer;width:36px;height:36px;box-shadow:var(--shadow-md);justify-content:center;align-items:center;font-family:inherit;font-size:18px;transition:all .15s;display:flex}.pan-btn.reset{width:auto;padding:0 10px;font-size:11px;font-weight:500}.pan-btn:hover{background:var(--surface);border-color:var(--gold-dim);color:var(--gold)}.pan-btn:active{transform:scale(.95)}.pan-btn--fullscreen{width:36px;height:36px}body.is-fullscreen #app{max-width:100%;padding:12px 20px}@media (min-width:680px){body.is-fullscreen #app{flex-direction:row;align-items:flex-start;height:100vh;overflow:hidden}body.is-fullscreen #bodygraph-container{flex:0 0 58%;max-width:58%;position:-webkit-sticky;position:sticky;top:0}body.is-fullscreen #bodygraph-container svg{max-height:calc(100vh - 24px)}body.is-fullscreen #fullscreen-right-col{flex-direction:column;flex:1;gap:8px;height:100vh;padding-bottom:20px;display:flex;overflow-y:auto}#fullscreen-right-col{display:contents}}.cancel-toast{background:var(--surface-2,#1e1e2e);border:1px solid var(--border-strong,#444);color:var(--text-muted,#aaa);border-radius:var(--radius-sm,6px);opacity:0;z-index:9999;pointer-events:none;box-shadow:var(--shadow-md,0 4px 12px rgba(0,0,0,.3));padding:8px 16px;font-family:inherit;font-size:12px;transition:opacity .3s,transform .3s;position:fixed;bottom:20px;left:50%;transform:translate(-50%)translateY(20px)}.cancel-toast.visible{opacity:1;transform:translate(-50%)translateY(0)}.oe-loader{width:64px;height:64px;stroke:var(--gold);stroke-width:2px;fill:none;stroke-dasharray:200;stroke-dashoffset:200px;filter:drop-shadow(0 0 4px var(--gold-glow));animation:2.5s cubic-bezier(.16,1,.3,1) infinite oe-draw}@keyframes oe-draw{0%{stroke-dashoffset:200px;stroke-opacity:.1}50%{stroke-dashoffset:0;stroke-opacity:1;filter:drop-shadow(0 0 8px var(--gold))}to{stroke-dashoffset:-200px;stroke-opacity:.1}}.info-drawer{background:var(--surface-2);border:1px solid var(--border-strong);border-radius:var(--radius);width:100%;box-shadow:var(--shadow-md);opacity:0;pointer-events:none;max-height:0;padding:14px 16px 12px;transition:max-height .26s cubic-bezier(.16,1,.3,1),opacity .2s,padding .2s;position:relative;overflow:hidden}.info-drawer:before{content:"";background:var(--border-strong);border-radius:2px;flex-shrink:0;width:36px;height:4px;margin:0 auto 10px;display:block}.info-drawer.open{opacity:1;pointer-events:all;max-height:500px;padding:14px 16px 12px}.hd-action-bar{flex-wrap:wrap;gap:8px;padding:10px 16px 6px;display:flex}.action-btn{color:#d4af37;letter-spacing:.02em;cursor:pointer;white-space:nowrap;background:rgba(212,175,55,.08);border:1px solid rgba(212,175,55,.3);border-radius:8px;align-items:center;gap:6px;padding:7px 16px;font-size:12px;font-weight:600;transition:background .2s,border-color .2s,transform .1s;display:inline-flex}.action-btn:hover{background:rgba(212,175,55,.15);border-color:rgba(212,175,55,.5);transform:translateY(-1px)}.action-btn:active{background:rgba(212,175,55,.2);transform:translateY(0)}.action-btn--primary{color:#f0d060;background:linear-gradient(135deg,rgba(212,175,55,.2),rgba(180,140,30,.25));border-color:rgba(212,175,55,.5)}.action-btn--primary:hover{background:linear-gradient(135deg,rgba(212,175,55,.3),rgba(180,140,30,.35));border-color:rgba(212,175,55,.7)}@media (prefers-color-scheme:light){:root{--bg:#f7f5f1;--surface:#fff;--surface-2:#f1eee9;--border:#dbd7d0;--border-strong:#bdb6ac;--text:#101215;--text-secondary:#4f5359;--muted:#6c6f73;--gold:#8d5f00;--gold-dim:#6d4b00;--gold-glow:rgba(141,95,0,.25);--gold-subtle:rgba(141,95,0,.1);--success:#007145;--error:#b1002b;--shadow-md:0 4px 24px rgba(0,0,0,.12), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 16px rgba(141,95,0,.18), 0 0 0 1px rgba(141,95,0,.22)}@supports (color:color(display-p3 0 0 0)){:root{--bg:color(display-p3 .967616 .959866 .945308);--surface:color(display-p3 1 1 1);--surface-2:color(display-p3 .943798 .93351 .914195);--border:color(display-p3 .855616 .842987 .819292);--border-strong:color(display-p3 .73602 .716348 .67952);--text:color(display-p3 .0633107 .0687189 .081922);--text-secondary:color(display-p3 .313002 .323251 .348016);--muted:color(display-p3 .426318 .433563 .450948);--gold:color(display-p3 .542549 .371783 -.107551);--gold-dim:color(display-p3 .414099 .299019 .034461);--gold-glow:color(display-p3 .542549 .371783 -.107551/.25);--gold-subtle:color(display-p3 .542549 .371783 -.107551/.1);--success:color(display-p3 -.0793084 .456092 .255685);--error:color(display-p3 .642198 .101724 .18242);--shadow-md:0 4px 24px color(display-p3 0 0 0/.12), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 16px color(display-p3 .542549 .371783 -.107551/.18), 0 0 0 1px color(display-p3 .542549 .371783 -.107551/.22)}}@supports (color:lab(0% 0 0)){:root{--bg:lab(96.5376% .34076 2.2589);--surface:lab(100% 0 0);--surface-2:lab(94.2232% .459731 3.01526);--border:lab(86.1085% .583261 3.77473);--border-strong:lab(74.5232% .975847 6.06879);--text:lab(5.23809% -.0738502 -2.43738);--text-secondary:lab(34.9842% -.210047 -4.49809);--muted:lab(46.6045% -.170082 -3.01461);--gold:lab(44.1995% 17.0662 84.3373);--gold-dim:lab(35.0077% 11.3181 50.9422);--gold-glow:lab(44.1995% 17.0662 84.3373/.25);--gold-subtle:lab(44.1995% 17.0662 84.3373/.1);--success:lab(41.7514% -55.3249 21.5039);--error:lab(37.5238% 64.2774 32.6097);--shadow-md:0 4px 24px lab(0% 0 0/.12), 0 0 0 1px var(--border-strong);--shadow-gold:0 0 16px lab(44.1995% 17.0662 84.3373/.18), 0 0 0 1px lab(44.1995% 17.0662 84.3373/.22)}}html,body{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background-image:none}#bodygraph-container{border-color:var(--border-strong);background:#fff;background:color(display-p3 1 1 1);background:lab(100% 0 0)}.chart-status{background:rgba(247,245,241,.92);background:color(display-p3 .967616 .959866 .945308/.92);background:lab(96.5376% .34076 2.2589/.92);border-color:rgba(141,95,0,.35);border-color:color(display-p3 .542549 .371783 -.107551/.35);border-color:lab(44.1995% 17.0662 84.3373/.35)}.tooltip{border-color:var(--border-strong);background:rgba(255,255,255,.96);background:color(display-p3 1 1 1/.96);background:lab(100% 0 0/.96)}#info-panel{background:var(--surface);border-color:var(--border)}.hd-popup{background:var(--surface);border-color:var(--border-strong);box-shadow:0 12px 48px rgba(0,0,0,.18), 0 0 0 1px var(--border-strong)}@supports (color:color(display-p3 0 0 0)){.hd-popup{box-shadow:0 12px 48px color(display-p3 0 0 0/.18), 0 0 0 1px var(--border-strong)}}@supports (color:lab(0% 0 0)){.hd-popup{box-shadow:0 12px 48px lab(0% 0 0/.18), 0 0 0 1px var(--border-strong)}}}.param-controls{background:var(--surface);border-top:1px solid var(--border);flex-shrink:0;padding:8px 12px}.param-controls-grid{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.param-group{flex-direction:column;gap:4px;display:flex}.param-group label{text-transform:uppercase;color:var(--text-secondary);letter-spacing:.05em;font-size:10px;font-weight:700}.param-group input[type=date],.param-group input[type=time],.param-group input[type=text]{background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);color-scheme:inherit;border-radius:var(--radius-sm);width:130px;padding:4px 8px;font-family:inherit;font-size:12px;transition:border-color .15s}.param-group input:focus{border-color:var(--gold-dim);outline:none}.param-group-loc{flex:1;position:relative}.param-group-loc input{width:100%}.loc-suggestions{background:var(--surface-2);border:1px solid var(--border-strong);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);z-index:100;max-height:200px;margin-top:4px;position:absolute;top:100%;left:0;right:0;overflow-y:auto}.loc-item{color:var(--text);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid var(--border);padding:8px 10px;font-size:12px;overflow:hidden}.loc-item:last-child{border-bottom:none}.loc-item:hover{background:var(--gold-subtle);color:var(--gold)}.param-actions{align-items:flex-end;gap:6px;padding-top:14px;display:flex}.param-btn-icon{border:1px solid var(--border-strong);color:var(--text-secondary);border-radius:var(--radius-sm);cursor:pointer;background:0 0;justify-content:center;align-items:center;width:26px;height:26px;transition:all .15s;display:flex}.param-btn-icon:hover{background:var(--surface-2);color:var(--text);border-color:var(--gold-dim)}.param-btn-primary{color:var(--gold);border-radius:var(--radius-sm);cursor:pointer;text-transform:uppercase;letter-spacing:.05em;background:rgba(204,156,66,.12);background:color(display-p3 .76996 .617341 .321369/.12);background:lab(67.5798% 11.9379 52.333/.12);border:1px solid rgba(204,156,66,.4);border:1px solid color(display-p3 .76996 .617341 .321369/.4);border:1px solid lab(67.5798% 11.9379 52.333/.4);height:26px;padding:4px 12px;font-family:inherit;font-size:11px;font-weight:600;transition:all .15s}.param-btn-primary:hover:not(:disabled){background:rgba(204,156,66,.2);background:color(display-p3 .76996 .617341 .321369/.2);background:lab(67.5798% 11.9379 52.333/.2);border-color:rgba(204,156,66,.65);border-color:color(display-p3 .76996 .617341 .321369/.65);border-color:lab(67.5798% 11.9379 52.333/.65)}.param-btn-primary:disabled{opacity:.5;cursor:not-allowed}@media (prefers-color-scheme:light){.param-group input[type=date],.param-group input[type=time],.param-group input[type=text]{border-color:var(--border-strong);color:var(--text);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#fff;background:color(display-p3 1 1 1);background:lab(100% 0 0)}.loc-suggestions{border-color:var(--border-strong);background:#fff;background:color(display-p3 1 1 1);background:lab(100% 0 0)}.param-btn-primary{background:rgba(160,112,0,.12);background:color(display-p3 .615135 .441554 -.0204711/.12);background:lab(51.2092% 16.2654 78.3504/.12);border-color:rgba(160,112,0,.4);border-color:color(display-p3 .615135 .441554 -.0204711/.4);border-color:lab(51.2092% 16.2654 78.3504/.4)}.param-btn-primary:hover:not(:disabled){background:rgba(160,112,0,.22);background:color(display-p3 .615135 .441554 -.0204711/.22);background:lab(51.2092% 16.2654 78.3504/.22);border-color:rgba(160,112,0,.65);border-color:color(display-p3 .615135 .441554 -.0204711/.65);border-color:lab(51.2092% 16.2654 78.3504/.65)}}
11
11
  /*$vite$:1*/</style>
12
12
  </head>
13
13
  <body>
14
14
  <div id="app">
15
15
  <div id="loading-state">
16
- <div class="spinner"></div>
16
+ <svg class="oe-loader" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45"/></svg>
17
17
  <p>Rendering bodygraph…</p>
18
18
  </div>
19
19
  <div id="chart-status" class="chart-status" aria-live="polite"></div>
20
+ <div id="pan-zoom-controls" class="pan-zoom-controls" hidden>
21
+ <button id="btn-zoom-in" class="pan-btn" aria-label="Zoom in">+</button>
22
+ <button id="btn-zoom-out" class="pan-btn" aria-label="Zoom out">-</button>
23
+ <button id="btn-reset-view" class="pan-btn reset" aria-label="Reset view">⟲ Reset</button>
24
+ </div>
20
25
  <div id="bodygraph-container" hidden></div>
21
- <div id="param-controls-container" hidden></div>
22
- <div id="info-panel" hidden></div>
23
- <div id="controls-panel" hidden></div>
24
- </div>
26
+ <div id="tooltip" class="tooltip" aria-live="polite"></div>
27
+ <div id="fullscreen-right-col">
28
+ <div id="param-controls-container" hidden></div>
29
+ <div id="info-panel" hidden></div>
30
+ <div id="controls-panel" hidden></div>
31
+ </div>
32
+ </div>
33
+ <div id="hd-popup" class="hd-popup" role="dialog" aria-modal="false"></div>
34
+
25
35
  <script type="module">var e = Object.defineProperty, t = (t2, n2) => {
26
36
  let r2 = {};
27
37
  for (var i2 in t2) e(r2, i2, { get: t2[i2], enumerable: true });
@@ -113,7 +123,7 @@ var l = /* @__PURE__ */ Symbol("zod_brand"), u = class extends Error {
113
123
  function p(e4) {
114
124
  return e4 && Object.assign(f, e4), f;
115
125
  }
116
- var m = t({ BIGINT_FORMAT_RANGES: () => Ae, Class: () => Qe, NUMBER_FORMAT_RANGES: () => ke, aborted: () => Re, allowsEval: () => ve, assert: () => te, assertEqual: () => h, assertIs: () => _, assertNever: () => ee, assertNotEqual: () => g, assignProp: () => b, base64ToUint8Array: () => Ke, base64urlToUint8Array: () => Je, cached: () => ie, captureStackTrace: () => ge, cleanEnum: () => Ge, cleanRegex: () => oe, clone: () => Ee, cloneDef: () => ue, createTransparentProxy: () => De, defineLazy: () => y, esc: () => me, escapeRegex: () => Te, extend: () => Ne, finalizeIssue: () => Ve, floatSafeRemainder: () => se, getElementAtPath: () => de, getEnumValues: () => ne, getLengthableOrigin: () => Ue, getParsedType: () => Se, getSizableOrigin: () => He, hexToUint8Array: () => Xe, isObject: () => _e, isPlainObject: () => ye, issue: () => We, joinValues: () => v, jsonStringifyReplacer: () => re, merge: () => Fe, mergeDefs: () => x, normalizeParams: () => S, nullish: () => ae, numKeys: () => xe, objectClone: () => le, omit: () => Me, optionalKeys: () => Oe, parsedType: () => w, partial: () => Ie, pick: () => je, prefixIssues: () => ze, primitiveTypes: () => we, promiseAllObject: () => fe, propertyKeyTypes: () => Ce, randomString: () => pe, required: () => Le, safeExtend: () => Pe, shallowClone: () => be, slugify: () => he, stringifyPrimitive: () => C, uint8ArrayToBase64: () => qe, uint8ArrayToBase64url: () => Ye, uint8ArrayToHex: () => Ze, unwrapMessage: () => Be });
126
+ var m = t({ BIGINT_FORMAT_RANGES: () => Ae, Class: () => Qe, NUMBER_FORMAT_RANGES: () => ke, aborted: () => Re, allowsEval: () => ve, assert: () => te, assertEqual: () => h, assertIs: () => _, assertNever: () => ee, assertNotEqual: () => g, assignProp: () => ce, base64ToUint8Array: () => Ke, base64urlToUint8Array: () => Je, cached: () => b, captureStackTrace: () => ge, cleanEnum: () => Ge, cleanRegex: () => ie, clone: () => Ee, cloneDef: () => ue, createTransparentProxy: () => De, defineLazy: () => x, esc: () => me, escapeRegex: () => Te, extend: () => Ne, finalizeIssue: () => Ve, floatSafeRemainder: () => ae, getElementAtPath: () => de, getEnumValues: () => ne, getLengthableOrigin: () => Ue, getParsedType: () => Se, getSizableOrigin: () => He, hexToUint8Array: () => Xe, isObject: () => _e, isPlainObject: () => ye, issue: () => We, joinValues: () => v, jsonStringifyReplacer: () => y, merge: () => Fe, mergeDefs: () => le, normalizeParams: () => S, nullish: () => re, numKeys: () => xe, objectClone: () => se, omit: () => Me, optionalKeys: () => Oe, parsedType: () => w, partial: () => Ie, pick: () => je, prefixIssues: () => ze, primitiveTypes: () => we, promiseAllObject: () => fe, propertyKeyTypes: () => Ce, randomString: () => pe, required: () => Le, safeExtend: () => Pe, shallowClone: () => be, slugify: () => he, stringifyPrimitive: () => C, uint8ArrayToBase64: () => qe, uint8ArrayToBase64url: () => Ye, uint8ArrayToHex: () => Ze, unwrapMessage: () => Be });
117
127
  function h(e4) {
118
128
  return e4;
119
129
  }
@@ -134,10 +144,10 @@ function ne(e4) {
134
144
  function v(e4, t2 = "|") {
135
145
  return e4.map((e5) => C(e5)).join(t2);
136
146
  }
137
- function re(e4, t2) {
147
+ function y(e4, t2) {
138
148
  return typeof t2 == "bigint" ? t2.toString() : t2;
139
149
  }
140
- function ie(e4) {
150
+ function b(e4) {
141
151
  return { get value() {
142
152
  {
143
153
  let t2 = e4();
@@ -146,14 +156,14 @@ function ie(e4) {
146
156
  throw Error("cached value already set");
147
157
  } };
148
158
  }
149
- function ae(e4) {
159
+ function re(e4) {
150
160
  return e4 == null;
151
161
  }
152
- function oe(e4) {
162
+ function ie(e4) {
153
163
  let t2 = +!!e4.startsWith("^"), n2 = e4.endsWith("$") ? e4.length - 1 : e4.length;
154
164
  return e4.slice(t2, n2);
155
165
  }
156
- function se(e4, t2) {
166
+ function ae(e4, t2) {
157
167
  let n2 = (e4.toString().split(".")[1] || "").length, r2 = t2.toString(), i2 = (r2.split(".")[1] || "").length;
158
168
  if (i2 === 0 && /\d?e-\d?/.test(r2)) {
159
169
  let e5 = r2.match(/\d?e-(\d?)/);
@@ -162,28 +172,28 @@ function se(e4, t2) {
162
172
  let a2 = n2 > i2 ? n2 : i2;
163
173
  return Number.parseInt(e4.toFixed(a2).replace(".", "")) % Number.parseInt(t2.toFixed(a2).replace(".", "")) / 10 ** a2;
164
174
  }
165
- var ce = /* @__PURE__ */ Symbol("evaluating");
166
- function y(e4, t2, n2) {
175
+ var oe = /* @__PURE__ */ Symbol("evaluating");
176
+ function x(e4, t2, n2) {
167
177
  let r2;
168
178
  Object.defineProperty(e4, t2, { get() {
169
- if (r2 !== ce) return r2 === void 0 && (r2 = ce, r2 = n2()), r2;
179
+ if (r2 !== oe) return r2 === void 0 && (r2 = oe, r2 = n2()), r2;
170
180
  }, set(n3) {
171
181
  Object.defineProperty(e4, t2, { value: n3 });
172
182
  }, configurable: true });
173
183
  }
174
- function le(e4) {
184
+ function se(e4) {
175
185
  return Object.create(Object.getPrototypeOf(e4), Object.getOwnPropertyDescriptors(e4));
176
186
  }
177
- function b(e4, t2, n2) {
187
+ function ce(e4, t2, n2) {
178
188
  Object.defineProperty(e4, t2, { value: n2, writable: true, enumerable: true, configurable: true });
179
189
  }
180
- function x(...e4) {
190
+ function le(...e4) {
181
191
  let t2 = {};
182
192
  for (let n2 of e4) Object.assign(t2, Object.getOwnPropertyDescriptors(n2));
183
193
  return Object.defineProperties({}, t2);
184
194
  }
185
195
  function ue(e4) {
186
- return x(e4._zod.def);
196
+ return le(e4._zod.def);
187
197
  }
188
198
  function de(e4, t2) {
189
199
  return t2 ? t2.reduce((e5, t3) => e5 == null ? void 0 : e5[t3], e4) : e4;
@@ -212,7 +222,7 @@ var ge = "captureStackTrace" in Error ? Error.captureStackTrace : (...e4) => {
212
222
  function _e(e4) {
213
223
  return typeof e4 == "object" && !!e4 && !Array.isArray(e4);
214
224
  }
215
- var ve = ie(() => {
225
+ var ve = b(() => {
216
226
  var e4;
217
227
  if (typeof navigator < "u" && !((e4 = navigator) == null || (e4 = e4.userAgent) == null) && e4.includes("Cloudflare")) return false;
218
228
  try {
@@ -304,25 +314,25 @@ var ke = { safeint: [-(2 ** 53 - 1), 2 ** 53 - 1], int32: [-2147483648, 21474836
304
314
  function je(e4, t2) {
305
315
  let n2 = e4._zod.def, r2 = n2.checks;
306
316
  if (r2 && r2.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
307
- return Ee(e4, x(e4._zod.def, { get shape() {
317
+ return Ee(e4, le(e4._zod.def, { get shape() {
308
318
  let e5 = {};
309
319
  for (let r3 in t2) {
310
320
  if (!(r3 in n2.shape)) throw Error('Unrecognized key: "'.concat(r3, '"'));
311
321
  t2[r3] && (e5[r3] = n2.shape[r3]);
312
322
  }
313
- return b(this, "shape", e5), e5;
323
+ return ce(this, "shape", e5), e5;
314
324
  }, checks: [] }));
315
325
  }
316
326
  function Me(e4, t2) {
317
327
  let n2 = e4._zod.def, r2 = n2.checks;
318
328
  if (r2 && r2.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
319
- return Ee(e4, x(e4._zod.def, { get shape() {
329
+ return Ee(e4, le(e4._zod.def, { get shape() {
320
330
  let r3 = { ...e4._zod.def.shape };
321
331
  for (let e5 in t2) {
322
332
  if (!(e5 in n2.shape)) throw Error('Unrecognized key: "'.concat(e5, '"'));
323
333
  t2[e5] && delete r3[e5];
324
334
  }
325
- return b(this, "shape", r3), r3;
335
+ return ce(this, "shape", r3), r3;
326
336
  }, checks: [] }));
327
337
  }
328
338
  function Ne(e4, t2) {
@@ -332,22 +342,22 @@ function Ne(e4, t2) {
332
342
  let n3 = e4._zod.def.shape;
333
343
  for (let e5 in t2) if (Object.getOwnPropertyDescriptor(n3, e5) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
334
344
  }
335
- return Ee(e4, x(e4._zod.def, { get shape() {
345
+ return Ee(e4, le(e4._zod.def, { get shape() {
336
346
  let n3 = { ...e4._zod.def.shape, ...t2 };
337
- return b(this, "shape", n3), n3;
347
+ return ce(this, "shape", n3), n3;
338
348
  } }));
339
349
  }
340
350
  function Pe(e4, t2) {
341
351
  if (!ye(t2)) throw Error("Invalid input to safeExtend: expected a plain object");
342
- return Ee(e4, x(e4._zod.def, { get shape() {
352
+ return Ee(e4, le(e4._zod.def, { get shape() {
343
353
  let n2 = { ...e4._zod.def.shape, ...t2 };
344
- return b(this, "shape", n2), n2;
354
+ return ce(this, "shape", n2), n2;
345
355
  } }));
346
356
  }
347
357
  function Fe(e4, t2) {
348
- return Ee(e4, x(e4._zod.def, { get shape() {
358
+ return Ee(e4, le(e4._zod.def, { get shape() {
349
359
  let n2 = { ...e4._zod.def.shape, ...t2._zod.def.shape };
350
- return b(this, "shape", n2), n2;
360
+ return ce(this, "shape", n2), n2;
351
361
  }, get catchall() {
352
362
  return t2._zod.def.catchall;
353
363
  }, checks: [] }));
@@ -355,25 +365,25 @@ function Fe(e4, t2) {
355
365
  function Ie(e4, t2, n2) {
356
366
  let r2 = t2._zod.def.checks;
357
367
  if (r2 && r2.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
358
- return Ee(t2, x(t2._zod.def, { get shape() {
368
+ return Ee(t2, le(t2._zod.def, { get shape() {
359
369
  let r3 = t2._zod.def.shape, i2 = { ...r3 };
360
370
  if (n2) for (let t3 in n2) {
361
371
  if (!(t3 in r3)) throw Error('Unrecognized key: "'.concat(t3, '"'));
362
372
  n2[t3] && (i2[t3] = e4 ? new e4({ type: "optional", innerType: r3[t3] }) : r3[t3]);
363
373
  }
364
374
  else for (let t3 in r3) i2[t3] = e4 ? new e4({ type: "optional", innerType: r3[t3] }) : r3[t3];
365
- return b(this, "shape", i2), i2;
375
+ return ce(this, "shape", i2), i2;
366
376
  }, checks: [] }));
367
377
  }
368
378
  function Le(e4, t2, n2) {
369
- return Ee(t2, x(t2._zod.def, { get shape() {
379
+ return Ee(t2, le(t2._zod.def, { get shape() {
370
380
  let r2 = t2._zod.def.shape, i2 = { ...r2 };
371
381
  if (n2) for (let t3 in n2) {
372
382
  if (!(t3 in i2)) throw Error('Unrecognized key: "'.concat(t3, '"'));
373
383
  n2[t3] && (i2[t3] = new e4({ type: "nonoptional", innerType: r2[t3] }));
374
384
  }
375
385
  else for (let t3 in r2) i2[t3] = new e4({ type: "nonoptional", innerType: r2[t3] });
376
- return b(this, "shape", i2), i2;
386
+ return ce(this, "shape", i2), i2;
377
387
  } }));
378
388
  }
379
389
  function Re(e4, t2 = 0) {
@@ -460,7 +470,7 @@ var Qe = class {
460
470
  constructor(...e4) {
461
471
  }
462
472
  }, $e = (e4, t2) => {
463
- e4.name = "$ZodError", Object.defineProperty(e4, "_zod", { value: e4._zod, enumerable: false }), Object.defineProperty(e4, "issues", { value: t2, enumerable: false }), e4.message = JSON.stringify(t2, re, 2), Object.defineProperty(e4, "toString", { value: () => e4.message, enumerable: false });
473
+ e4.name = "$ZodError", Object.defineProperty(e4, "_zod", { value: e4._zod, enumerable: false }), Object.defineProperty(e4, "issues", { value: t2, enumerable: false }), e4.message = JSON.stringify(t2, y, 2), Object.defineProperty(e4, "toString", { value: () => e4.message, enumerable: false });
464
474
  }, et = c("$ZodError", $e), tt = c("$ZodError", $e, { Parent: Error });
465
475
  function nt(e4, t2 = (e5) => e5.message) {
466
476
  let n2 = {}, r2 = [];
@@ -617,7 +627,7 @@ var Dn = /^[0-9a-fA-F]{32}$/, On = Tn(22, "=="), kn = En(22), An = /^[0-9a-fA-F]
617
627
  (n2 = e5._zod.bag).multipleOf != null || (n2.multipleOf = t2.value);
618
628
  }), e4._zod.check = (n2) => {
619
629
  if (typeof n2.value != typeof t2.value) throw Error("Cannot mix number and bigint in multiple_of check.");
620
- (typeof n2.value == "bigint" ? n2.value % t2.value === BigInt(0) : se(n2.value, t2.value) === 0) || n2.issues.push({ origin: typeof n2.value, code: "not_multiple_of", divisor: t2.value, input: n2.value, inst: e4, continue: !t2.abort });
630
+ (typeof n2.value == "bigint" ? n2.value % t2.value === BigInt(0) : ae(n2.value, t2.value) === 0) || n2.issues.push({ origin: typeof n2.value, code: "not_multiple_of", divisor: t2.value, input: n2.value, inst: e4, continue: !t2.abort });
621
631
  };
622
632
  }), Kn = c("$ZodCheckNumberFormat", (e4, t2) => {
623
633
  var n2;
@@ -654,7 +664,7 @@ var Dn = /^[0-9a-fA-F]{32}$/, On = Tn(22, "=="), kn = En(22), An = /^[0-9a-fA-F]
654
664
  var n2;
655
665
  T.init(e4, t2), (n2 = e4._zod.def).when != null || (n2.when = (e5) => {
656
666
  let t3 = e5.value;
657
- return !ae(t3) && t3.size !== void 0;
667
+ return !re(t3) && t3.size !== void 0;
658
668
  }), e4._zod.onattach.push((e5) => {
659
669
  var n3;
660
670
  let r2 = (n3 = e5._zod.bag.maximum) == null ? 1 / 0 : n3;
@@ -667,7 +677,7 @@ var Dn = /^[0-9a-fA-F]{32}$/, On = Tn(22, "=="), kn = En(22), An = /^[0-9a-fA-F]
667
677
  var n2;
668
678
  T.init(e4, t2), (n2 = e4._zod.def).when != null || (n2.when = (e5) => {
669
679
  let t3 = e5.value;
670
- return !ae(t3) && t3.size !== void 0;
680
+ return !re(t3) && t3.size !== void 0;
671
681
  }), e4._zod.onattach.push((e5) => {
672
682
  var n3;
673
683
  let r2 = (n3 = e5._zod.bag.minimum) == null ? -1 / 0 : n3;
@@ -680,7 +690,7 @@ var Dn = /^[0-9a-fA-F]{32}$/, On = Tn(22, "=="), kn = En(22), An = /^[0-9a-fA-F]
680
690
  var n2;
681
691
  T.init(e4, t2), (n2 = e4._zod.def).when != null || (n2.when = (e5) => {
682
692
  let t3 = e5.value;
683
- return !ae(t3) && t3.size !== void 0;
693
+ return !re(t3) && t3.size !== void 0;
684
694
  }), e4._zod.onattach.push((e5) => {
685
695
  let n3 = e5._zod.bag;
686
696
  n3.minimum = t2.size, n3.maximum = t2.size, n3.size = t2.size;
@@ -694,7 +704,7 @@ var Dn = /^[0-9a-fA-F]{32}$/, On = Tn(22, "=="), kn = En(22), An = /^[0-9a-fA-F]
694
704
  var n2;
695
705
  T.init(e4, t2), (n2 = e4._zod.def).when != null || (n2.when = (e5) => {
696
706
  let t3 = e5.value;
697
- return !ae(t3) && t3.length !== void 0;
707
+ return !re(t3) && t3.length !== void 0;
698
708
  }), e4._zod.onattach.push((e5) => {
699
709
  var n3;
700
710
  let r2 = (n3 = e5._zod.bag.maximum) == null ? 1 / 0 : n3;
@@ -709,7 +719,7 @@ var Dn = /^[0-9a-fA-F]{32}$/, On = Tn(22, "=="), kn = En(22), An = /^[0-9a-fA-F]
709
719
  var n2;
710
720
  T.init(e4, t2), (n2 = e4._zod.def).when != null || (n2.when = (e5) => {
711
721
  let t3 = e5.value;
712
- return !ae(t3) && t3.length !== void 0;
722
+ return !re(t3) && t3.length !== void 0;
713
723
  }), e4._zod.onattach.push((e5) => {
714
724
  var n3;
715
725
  let r2 = (n3 = e5._zod.bag.minimum) == null ? -1 / 0 : n3;
@@ -724,7 +734,7 @@ var Dn = /^[0-9a-fA-F]{32}$/, On = Tn(22, "=="), kn = En(22), An = /^[0-9a-fA-F]
724
734
  var n2;
725
735
  T.init(e4, t2), (n2 = e4._zod.def).when != null || (n2.when = (e5) => {
726
736
  let t3 = e5.value;
727
- return !ae(t3) && t3.length !== void 0;
737
+ return !re(t3) && t3.length !== void 0;
728
738
  }), e4._zod.onattach.push((e5) => {
729
739
  let n3 = e5._zod.bag;
730
740
  n3.minimum = t2.length, n3.maximum = t2.length, n3.length = t2.length;
@@ -874,7 +884,7 @@ var cr = c("$ZodCheckProperty", (e4, t2) => {
874
884
  return t3(o2, i2, a3);
875
885
  };
876
886
  }
877
- y(e4, "~standard", () => ({ validate: (t3) => {
887
+ x(e4, "~standard", () => ({ validate: (t3) => {
878
888
  try {
879
889
  var n3;
880
890
  let r3 = ft(e4, t3);
@@ -1139,8 +1149,8 @@ var oi = c("$ZodObject", (e4, t2) => {
1139
1149
  return Object.defineProperty(t2, "shape", { value: n3 }), n3;
1140
1150
  } });
1141
1151
  }
1142
- let r2 = ie(() => ii(t2));
1143
- y(e4._zod, "propValues", () => {
1152
+ let r2 = b(() => ii(t2));
1153
+ x(e4._zod, "propValues", () => {
1144
1154
  let e5 = t2.shape, n3 = {};
1145
1155
  for (let t3 in e5) {
1146
1156
  let r3 = e5[t3]._zod;
@@ -1166,7 +1176,7 @@ var oi = c("$ZodObject", (e4, t2) => {
1166
1176
  };
1167
1177
  }), si = c("$ZodObjectJIT", (e4, t2) => {
1168
1178
  oi.init(e4, t2);
1169
- let n2 = e4._zod.parse, r2 = ie(() => ii(t2)), i2 = (e5) => {
1179
+ let n2 = e4._zod.parse, r2 = b(() => ii(t2)), i2 = (e5) => {
1170
1180
  let t3 = new dr(["shape", "payload", "ctx"]), n3 = r2.value, i3 = (e6) => {
1171
1181
  let t4 = me(e6);
1172
1182
  return "shape[".concat(t4, "]._zod.run({ value: input[").concat(t4, "], issues: [] }, ctx)");
@@ -1196,12 +1206,12 @@ function ci(e4, t2, n2, r2) {
1196
1206
  return i2.length === 1 ? (t2.value = i2[0].value, i2[0]) : (t2.issues.push({ code: "invalid_union", input: t2.value, inst: n2, errors: e4.map((e5) => e5.issues.map((e6) => Ve(e6, r2, p()))) }), t2);
1197
1207
  }
1198
1208
  var li = c("$ZodUnion", (e4, t2) => {
1199
- E.init(e4, t2), y(e4._zod, "optin", () => t2.options.some((e5) => e5._zod.optin === "optional") ? "optional" : void 0), y(e4._zod, "optout", () => t2.options.some((e5) => e5._zod.optout === "optional") ? "optional" : void 0), y(e4._zod, "values", () => {
1209
+ E.init(e4, t2), x(e4._zod, "optin", () => t2.options.some((e5) => e5._zod.optin === "optional") ? "optional" : void 0), x(e4._zod, "optout", () => t2.options.some((e5) => e5._zod.optout === "optional") ? "optional" : void 0), x(e4._zod, "values", () => {
1200
1210
  if (t2.options.every((e5) => e5._zod.values)) return new Set(t2.options.flatMap((e5) => Array.from(e5._zod.values)));
1201
- }), y(e4._zod, "pattern", () => {
1211
+ }), x(e4._zod, "pattern", () => {
1202
1212
  if (t2.options.every((e5) => e5._zod.pattern)) {
1203
1213
  let e5 = t2.options.map((e6) => e6._zod.pattern);
1204
- return RegExp("^(".concat(e5.map((e6) => oe(e6.source)).join("|"), ")$"));
1214
+ return RegExp("^(".concat(e5.map((e6) => ie(e6.source)).join("|"), ")$"));
1205
1215
  }
1206
1216
  });
1207
1217
  let n2 = t2.options.length === 1, r2 = t2.options[0]._zod.run;
@@ -1238,7 +1248,7 @@ var di = c("$ZodXor", (e4, t2) => {
1238
1248
  }), fi = c("$ZodDiscriminatedUnion", (e4, t2) => {
1239
1249
  t2.inclusive = false, li.init(e4, t2);
1240
1250
  let n2 = e4._zod.parse;
1241
- y(e4._zod, "propValues", () => {
1251
+ x(e4._zod, "propValues", () => {
1242
1252
  let e5 = {};
1243
1253
  for (let n3 of t2.options) {
1244
1254
  let r3 = n3._zod.propValues;
@@ -1250,7 +1260,7 @@ var di = c("$ZodXor", (e4, t2) => {
1250
1260
  }
1251
1261
  return e5;
1252
1262
  });
1253
- let r2 = ie(() => {
1263
+ let r2 = b(() => {
1254
1264
  let e5 = t2.options, n3 = /* @__PURE__ */ new Map();
1255
1265
  for (let i2 of e5) {
1256
1266
  var r3;
@@ -1454,9 +1464,9 @@ function Di(e4, t2) {
1454
1464
  return e4.issues.length && t2 === void 0 ? { issues: [], value: void 0 } : e4;
1455
1465
  }
1456
1466
  var Oi = c("$ZodOptional", (e4, t2) => {
1457
- E.init(e4, t2), e4._zod.optin = "optional", e4._zod.optout = "optional", y(e4._zod, "values", () => t2.innerType._zod.values ? /* @__PURE__ */ new Set([...t2.innerType._zod.values, void 0]) : void 0), y(e4._zod, "pattern", () => {
1467
+ E.init(e4, t2), e4._zod.optin = "optional", e4._zod.optout = "optional", x(e4._zod, "values", () => t2.innerType._zod.values ? /* @__PURE__ */ new Set([...t2.innerType._zod.values, void 0]) : void 0), x(e4._zod, "pattern", () => {
1458
1468
  let e5 = t2.innerType._zod.pattern;
1459
- return e5 ? RegExp("^(".concat(oe(e5.source), ")?$")) : void 0;
1469
+ return e5 ? RegExp("^(".concat(ie(e5.source), ")?$")) : void 0;
1460
1470
  }), e4._zod.parse = (e5, n2) => {
1461
1471
  if (t2.innerType._zod.optin === "optional") {
1462
1472
  let r2 = t2.innerType._zod.run(e5, n2);
@@ -1465,14 +1475,14 @@ var Oi = c("$ZodOptional", (e4, t2) => {
1465
1475
  return e5.value === void 0 ? e5 : t2.innerType._zod.run(e5, n2);
1466
1476
  };
1467
1477
  }), ki = c("$ZodExactOptional", (e4, t2) => {
1468
- Oi.init(e4, t2), y(e4._zod, "values", () => t2.innerType._zod.values), y(e4._zod, "pattern", () => t2.innerType._zod.pattern), e4._zod.parse = (e5, n2) => t2.innerType._zod.run(e5, n2);
1478
+ Oi.init(e4, t2), x(e4._zod, "values", () => t2.innerType._zod.values), x(e4._zod, "pattern", () => t2.innerType._zod.pattern), e4._zod.parse = (e5, n2) => t2.innerType._zod.run(e5, n2);
1469
1479
  }), Ai = c("$ZodNullable", (e4, t2) => {
1470
- E.init(e4, t2), y(e4._zod, "optin", () => t2.innerType._zod.optin), y(e4._zod, "optout", () => t2.innerType._zod.optout), y(e4._zod, "pattern", () => {
1480
+ E.init(e4, t2), x(e4._zod, "optin", () => t2.innerType._zod.optin), x(e4._zod, "optout", () => t2.innerType._zod.optout), x(e4._zod, "pattern", () => {
1471
1481
  let e5 = t2.innerType._zod.pattern;
1472
- return e5 ? RegExp("^(".concat(oe(e5.source), "|null)$")) : void 0;
1473
- }), y(e4._zod, "values", () => t2.innerType._zod.values ? /* @__PURE__ */ new Set([...t2.innerType._zod.values, null]) : void 0), e4._zod.parse = (e5, n2) => e5.value === null ? e5 : t2.innerType._zod.run(e5, n2);
1482
+ return e5 ? RegExp("^(".concat(ie(e5.source), "|null)$")) : void 0;
1483
+ }), x(e4._zod, "values", () => t2.innerType._zod.values ? /* @__PURE__ */ new Set([...t2.innerType._zod.values, null]) : void 0), e4._zod.parse = (e5, n2) => e5.value === null ? e5 : t2.innerType._zod.run(e5, n2);
1474
1484
  }), ji = c("$ZodDefault", (e4, t2) => {
1475
- E.init(e4, t2), e4._zod.optin = "optional", y(e4._zod, "values", () => t2.innerType._zod.values), e4._zod.parse = (e5, n2) => {
1485
+ E.init(e4, t2), e4._zod.optin = "optional", x(e4._zod, "values", () => t2.innerType._zod.values), e4._zod.parse = (e5, n2) => {
1476
1486
  if (n2.direction === "backward") return t2.innerType._zod.run(e5, n2);
1477
1487
  if (e5.value === void 0) return e5.value = t2.defaultValue, e5;
1478
1488
  let r2 = t2.innerType._zod.run(e5, n2);
@@ -1483,9 +1493,9 @@ function Mi(e4, t2) {
1483
1493
  return e4.value === void 0 && (e4.value = t2.defaultValue), e4;
1484
1494
  }
1485
1495
  var Ni = c("$ZodPrefault", (e4, t2) => {
1486
- E.init(e4, t2), e4._zod.optin = "optional", y(e4._zod, "values", () => t2.innerType._zod.values), e4._zod.parse = (e5, n2) => (n2.direction === "backward" || e5.value === void 0 && (e5.value = t2.defaultValue), t2.innerType._zod.run(e5, n2));
1496
+ E.init(e4, t2), e4._zod.optin = "optional", x(e4._zod, "values", () => t2.innerType._zod.values), e4._zod.parse = (e5, n2) => (n2.direction === "backward" || e5.value === void 0 && (e5.value = t2.defaultValue), t2.innerType._zod.run(e5, n2));
1487
1497
  }), Pi = c("$ZodNonOptional", (e4, t2) => {
1488
- E.init(e4, t2), y(e4._zod, "values", () => {
1498
+ E.init(e4, t2), x(e4._zod, "values", () => {
1489
1499
  let e5 = t2.innerType._zod.values;
1490
1500
  return e5 ? new Set([...e5].filter((e6) => e6 !== void 0)) : void 0;
1491
1501
  }), e4._zod.parse = (n2, r2) => {
@@ -1503,7 +1513,7 @@ var Ii = c("$ZodSuccess", (e4, t2) => {
1503
1513
  return r2 instanceof Promise ? r2.then((t3) => (e5.value = t3.issues.length === 0, e5)) : (e5.value = r2.issues.length === 0, e5);
1504
1514
  };
1505
1515
  }), Li = c("$ZodCatch", (e4, t2) => {
1506
- E.init(e4, t2), y(e4._zod, "optin", () => t2.innerType._zod.optin), y(e4._zod, "optout", () => t2.innerType._zod.optout), y(e4._zod, "values", () => t2.innerType._zod.values), e4._zod.parse = (e5, n2) => {
1516
+ E.init(e4, t2), x(e4._zod, "optin", () => t2.innerType._zod.optin), x(e4._zod, "optout", () => t2.innerType._zod.optout), x(e4._zod, "values", () => t2.innerType._zod.values), e4._zod.parse = (e5, n2) => {
1507
1517
  if (n2.direction === "backward") return t2.innerType._zod.run(e5, n2);
1508
1518
  let r2 = t2.innerType._zod.run(e5, n2);
1509
1519
  return r2 instanceof Promise ? r2.then((r3) => (e5.value = r3.value, r3.issues.length && (e5.value = t2.catchValue({ ...e5, error: { issues: r3.issues.map((e6) => Ve(e6, n2, p())) }, input: e5.value }), e5.issues = []), e5)) : (e5.value = r2.value, r2.issues.length && (e5.value = t2.catchValue({ ...e5, error: { issues: r2.issues.map((e6) => Ve(e6, n2, p())) }, input: e5.value }), e5.issues = []), e5);
@@ -1511,7 +1521,7 @@ var Ii = c("$ZodSuccess", (e4, t2) => {
1511
1521
  }), Ri = c("$ZodNaN", (e4, t2) => {
1512
1522
  E.init(e4, t2), e4._zod.parse = (t3, n2) => ((typeof t3.value != "number" || !Number.isNaN(t3.value)) && t3.issues.push({ input: t3.value, inst: e4, expected: "nan", code: "invalid_type" }), t3);
1513
1523
  }), zi = c("$ZodPipe", (e4, t2) => {
1514
- E.init(e4, t2), y(e4._zod, "values", () => t2.in._zod.values), y(e4._zod, "optin", () => t2.in._zod.optin), y(e4._zod, "optout", () => t2.out._zod.optout), y(e4._zod, "propValues", () => t2.in._zod.propValues), e4._zod.parse = (e5, n2) => {
1524
+ E.init(e4, t2), x(e4._zod, "values", () => t2.in._zod.values), x(e4._zod, "optin", () => t2.in._zod.optin), x(e4._zod, "optout", () => t2.out._zod.optout), x(e4._zod, "propValues", () => t2.in._zod.propValues), e4._zod.parse = (e5, n2) => {
1515
1525
  if (n2.direction === "backward") {
1516
1526
  let r3 = t2.out._zod.run(e5, n2);
1517
1527
  return r3 instanceof Promise ? r3.then((e6) => Bi(e6, t2.in, n2)) : Bi(r3, t2.in, n2);
@@ -1524,7 +1534,7 @@ function Bi(e4, t2, n2) {
1524
1534
  return e4.issues.length ? (e4.aborted = true, e4) : t2._zod.run({ value: e4.value, issues: e4.issues }, n2);
1525
1535
  }
1526
1536
  var Vi = c("$ZodCodec", (e4, t2) => {
1527
- E.init(e4, t2), y(e4._zod, "values", () => t2.in._zod.values), y(e4._zod, "optin", () => t2.in._zod.optin), y(e4._zod, "optout", () => t2.out._zod.optout), y(e4._zod, "propValues", () => t2.in._zod.propValues), e4._zod.parse = (e5, n2) => {
1537
+ E.init(e4, t2), x(e4._zod, "values", () => t2.in._zod.values), x(e4._zod, "optin", () => t2.in._zod.optin), x(e4._zod, "optout", () => t2.out._zod.optout), x(e4._zod, "propValues", () => t2.in._zod.propValues), e4._zod.parse = (e5, n2) => {
1528
1538
  if ((n2.direction || "forward") === "forward") {
1529
1539
  let r2 = t2.in._zod.run(e5, n2);
1530
1540
  return r2 instanceof Promise ? r2.then((e6) => Hi(e6, t2, n2)) : Hi(r2, t2, n2);
@@ -1548,10 +1558,10 @@ function Ui(e4, t2, n2, r2) {
1548
1558
  return e4.issues.length ? (e4.aborted = true, e4) : n2._zod.run({ value: t2, issues: e4.issues }, r2);
1549
1559
  }
1550
1560
  var Wi = c("$ZodReadonly", (e4, t2) => {
1551
- E.init(e4, t2), y(e4._zod, "propValues", () => t2.innerType._zod.propValues), y(e4._zod, "values", () => t2.innerType._zod.values), y(e4._zod, "optin", () => {
1561
+ E.init(e4, t2), x(e4._zod, "propValues", () => t2.innerType._zod.propValues), x(e4._zod, "values", () => t2.innerType._zod.values), x(e4._zod, "optin", () => {
1552
1562
  var e5;
1553
1563
  return (e5 = t2.innerType) == null || (e5 = e5._zod) == null ? void 0 : e5.optin;
1554
- }), y(e4._zod, "optout", () => {
1564
+ }), x(e4._zod, "optout", () => {
1555
1565
  var e5;
1556
1566
  return (e5 = t2.innerType) == null || (e5 = e5._zod) == null ? void 0 : e5.optout;
1557
1567
  }), e4._zod.parse = (e5, n2) => {
@@ -1603,16 +1613,16 @@ var Ki = c("$ZodTemplateLiteral", (e4, t2) => {
1603
1613
  }, e4)), Ji = c("$ZodPromise", (e4, t2) => {
1604
1614
  E.init(e4, t2), e4._zod.parse = (e5, n2) => Promise.resolve(e5.value).then((e6) => t2.innerType._zod.run({ value: e6, issues: [] }, n2));
1605
1615
  }), Yi = c("$ZodLazy", (e4, t2) => {
1606
- E.init(e4, t2), y(e4._zod, "innerType", () => t2.getter()), y(e4._zod, "pattern", () => {
1616
+ E.init(e4, t2), x(e4._zod, "innerType", () => t2.getter()), x(e4._zod, "pattern", () => {
1607
1617
  var t3;
1608
1618
  return (t3 = e4._zod.innerType) == null || (t3 = t3._zod) == null ? void 0 : t3.pattern;
1609
- }), y(e4._zod, "propValues", () => {
1619
+ }), x(e4._zod, "propValues", () => {
1610
1620
  var t3;
1611
1621
  return (t3 = e4._zod.innerType) == null || (t3 = t3._zod) == null ? void 0 : t3.propValues;
1612
- }), y(e4._zod, "optin", () => {
1622
+ }), x(e4._zod, "optin", () => {
1613
1623
  var t3, n2;
1614
1624
  return (t3 = (n2 = e4._zod.innerType) == null || (n2 = n2._zod) == null ? void 0 : n2.optin) == null ? void 0 : t3;
1615
- }), y(e4._zod, "optout", () => {
1625
+ }), x(e4._zod, "optout", () => {
1616
1626
  var t3, n2;
1617
1627
  return (t3 = (n2 = e4._zod.innerType) == null || (n2 = n2._zod) == null ? void 0 : n2.optout) == null ? void 0 : t3;
1618
1628
  }), e4._zod.parse = (t3, n2) => e4._zod.innerType._zod.run(t3, n2);
@@ -2426,30 +2436,30 @@ var ka = () => {
2426
2436
  return e5 != null && e5.unit ? "".concat(e5.longLabel, " \u05DE\u05D3\u05D9: ").concat(n4, " ").concat(s3, " ").concat(r3).concat(t3.maximum.toString(), " ").concat(e5.unit) : "".concat((m2 = e5 == null ? void 0 : e5.longLabel) == null ? "\u05D2\u05D3\u05D5\u05DC" : m2, " \u05DE\u05D3\u05D9: ").concat(n4, " ").concat(s3, " ").concat(r3).concat(t3.maximum.toString());
2427
2437
  }
2428
2438
  case "too_small": {
2429
- var te2, ne2, re2;
2439
+ var te2, ne2, y2;
2430
2440
  let e5 = o2(t3.origin), n4 = i2((te2 = t3.origin) == null ? "value" : te2);
2431
2441
  if (t3.origin === "string") {
2432
- var ie2, ae2;
2433
- return "".concat((ie2 = e5 == null ? void 0 : e5.shortLabel) == null ? "\u05E7\u05E6\u05E8" : ie2, " \u05DE\u05D3\u05D9: ").concat(n4, " \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ").concat(t3.minimum.toString(), " ").concat((ae2 = e5 == null ? void 0 : e5.unit) == null ? "" : ae2, " ").concat(t3.inclusive ? "\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8" : "\u05DC\u05E4\u05D7\u05D5\u05EA").trim();
2442
+ var b2, re2;
2443
+ return "".concat((b2 = e5 == null ? void 0 : e5.shortLabel) == null ? "\u05E7\u05E6\u05E8" : b2, " \u05DE\u05D3\u05D9: ").concat(n4, " \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ").concat(t3.minimum.toString(), " ").concat((re2 = e5 == null ? void 0 : e5.unit) == null ? "" : re2, " ").concat(t3.inclusive ? "\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8" : "\u05DC\u05E4\u05D7\u05D5\u05EA").trim();
2434
2444
  }
2435
2445
  if (t3.origin === "number") return "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(t3.inclusive ? "\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-".concat(t3.minimum) : "\u05D2\u05D3\u05D5\u05DC \u05DE-".concat(t3.minimum));
2436
2446
  if (t3.origin === "array" || t3.origin === "set") {
2437
- var oe2, se2;
2447
+ var ie2, ae2;
2438
2448
  let r4 = t3.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
2439
- return t3.minimum === 1 && t3.inclusive ? "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " ").concat(r4, " \u05DC\u05D4\u05DB\u05D9\u05DC ").concat((t3.origin, "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3")) : "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " ").concat(r4, " \u05DC\u05D4\u05DB\u05D9\u05DC ").concat(t3.inclusive ? "".concat(t3.minimum, " ").concat((oe2 = e5 == null ? void 0 : e5.unit) == null ? "" : oe2, " \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8") : "\u05D9\u05D5\u05EA\u05E8 \u05DE-".concat(t3.minimum, " ").concat((se2 = e5 == null ? void 0 : e5.unit) == null ? "" : se2)).trim();
2449
+ return t3.minimum === 1 && t3.inclusive ? "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " ").concat(r4, " \u05DC\u05D4\u05DB\u05D9\u05DC ").concat((t3.origin, "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3")) : "\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(n4, " ").concat(r4, " \u05DC\u05D4\u05DB\u05D9\u05DC ").concat(t3.inclusive ? "".concat(t3.minimum, " ").concat((ie2 = e5 == null ? void 0 : e5.unit) == null ? "" : ie2, " \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8") : "\u05D9\u05D5\u05EA\u05E8 \u05DE-".concat(t3.minimum, " ").concat((ae2 = e5 == null ? void 0 : e5.unit) == null ? "" : ae2)).trim();
2440
2450
  }
2441
2451
  let r3 = t3.inclusive ? ">=" : ">", s3 = a2((ne2 = t3.origin) == null ? "value" : ne2);
2442
- return e5 != null && e5.unit ? "".concat(e5.shortLabel, " \u05DE\u05D3\u05D9: ").concat(n4, " ").concat(s3, " ").concat(r3).concat(t3.minimum.toString(), " ").concat(e5.unit) : "".concat((re2 = e5 == null ? void 0 : e5.shortLabel) == null ? "\u05E7\u05D8\u05DF" : re2, " \u05DE\u05D3\u05D9: ").concat(n4, " ").concat(s3, " ").concat(r3).concat(t3.minimum.toString());
2452
+ return e5 != null && e5.unit ? "".concat(e5.shortLabel, " \u05DE\u05D3\u05D9: ").concat(n4, " ").concat(s3, " ").concat(r3).concat(t3.minimum.toString(), " ").concat(e5.unit) : "".concat((y2 = e5 == null ? void 0 : e5.shortLabel) == null ? "\u05E7\u05D8\u05DF" : y2, " \u05DE\u05D3\u05D9: ").concat(n4, " ").concat(s3, " ").concat(r3).concat(t3.minimum.toString());
2443
2453
  }
2444
2454
  case "invalid_format": {
2445
- var ce2, y2;
2455
+ var oe2, x2;
2446
2456
  let e5 = t3;
2447
2457
  if (e5.format === "starts_with") return '\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "'.concat(e5.prefix, '"');
2448
2458
  if (e5.format === "ends_with") return '\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "'.concat(e5.suffix, '"');
2449
2459
  if (e5.format === "includes") return '\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "'.concat(e5.includes, '"');
2450
2460
  if (e5.format === "regex") return "\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ".concat(e5.pattern);
2451
2461
  let n4 = s2[e5.format];
2452
- return "".concat((ce2 = n4 == null ? void 0 : n4.label) == null ? e5.format : ce2, " \u05DC\u05D0 ").concat(((y2 = n4 == null ? void 0 : n4.gender) == null ? "m" : y2) === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF");
2462
+ return "".concat((oe2 = n4 == null ? void 0 : n4.label) == null ? e5.format : oe2, " \u05DC\u05D0 ").concat(((x2 = n4 == null ? void 0 : n4.gender) == null ? "m" : x2) === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF");
2453
2463
  }
2454
2464
  case "not_multiple_of":
2455
2465
  return "\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ".concat(t3.divisor);
@@ -2460,8 +2470,8 @@ var ka = () => {
2460
2470
  case "invalid_union":
2461
2471
  return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";
2462
2472
  case "invalid_element":
2463
- var le2;
2464
- return "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1".concat(i2((le2 = t3.origin) == null ? "array" : le2));
2473
+ var se2;
2474
+ return "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1".concat(i2((se2 = t3.origin) == null ? "array" : se2));
2465
2475
  default:
2466
2476
  return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";
2467
2477
  }
@@ -4242,171 +4252,171 @@ function ec(e4, t2) {
4242
4252
  function tc(e4, t2) {
4243
4253
  return new Wn({ check: "greater_than", ...S(t2), value: e4, inclusive: false });
4244
4254
  }
4245
- function O(e4, t2) {
4255
+ function nc(e4, t2) {
4246
4256
  return new Wn({ check: "greater_than", ...S(t2), value: e4, inclusive: true });
4247
4257
  }
4248
- function nc(e4) {
4258
+ function rc(e4) {
4249
4259
  return tc(0, e4);
4250
4260
  }
4251
- function rc(e4) {
4261
+ function ic(e4) {
4252
4262
  return $s(0, e4);
4253
4263
  }
4254
- function ic(e4) {
4264
+ function ac(e4) {
4255
4265
  return ec(0, e4);
4256
4266
  }
4257
- function ac(e4) {
4258
- return O(0, e4);
4267
+ function oc(e4) {
4268
+ return nc(0, e4);
4259
4269
  }
4260
- function oc(e4, t2) {
4270
+ function sc(e4, t2) {
4261
4271
  return new Gn({ check: "multiple_of", ...S(t2), value: e4 });
4262
4272
  }
4263
- function sc(e4, t2) {
4273
+ function cc(e4, t2) {
4264
4274
  return new Jn({ check: "max_size", ...S(t2), maximum: e4 });
4265
4275
  }
4266
- function cc(e4, t2) {
4276
+ function lc(e4, t2) {
4267
4277
  return new Yn({ check: "min_size", ...S(t2), minimum: e4 });
4268
4278
  }
4269
- function lc(e4, t2) {
4279
+ function uc(e4, t2) {
4270
4280
  return new Xn({ check: "size_equals", ...S(t2), size: e4 });
4271
4281
  }
4272
- function uc(e4, t2) {
4282
+ function dc(e4, t2) {
4273
4283
  return new Zn({ check: "max_length", ...S(t2), maximum: e4 });
4274
4284
  }
4275
- function dc(e4, t2) {
4285
+ function fc(e4, t2) {
4276
4286
  return new Qn({ check: "min_length", ...S(t2), minimum: e4 });
4277
4287
  }
4278
- function fc(e4, t2) {
4288
+ function pc(e4, t2) {
4279
4289
  return new $n({ check: "length_equals", ...S(t2), length: e4 });
4280
4290
  }
4281
- function pc(e4, t2) {
4291
+ function mc(e4, t2) {
4282
4292
  return new tr({ check: "string_format", format: "regex", ...S(t2), pattern: e4 });
4283
4293
  }
4284
- function mc(e4) {
4294
+ function hc(e4) {
4285
4295
  return new nr({ check: "string_format", format: "lowercase", ...S(e4) });
4286
4296
  }
4287
- function hc(e4) {
4297
+ function gc(e4) {
4288
4298
  return new rr({ check: "string_format", format: "uppercase", ...S(e4) });
4289
4299
  }
4290
- function gc(e4, t2) {
4300
+ function _c(e4, t2) {
4291
4301
  return new ir({ check: "string_format", format: "includes", ...S(t2), includes: e4 });
4292
4302
  }
4293
- function _c(e4, t2) {
4303
+ function vc(e4, t2) {
4294
4304
  return new ar({ check: "string_format", format: "starts_with", ...S(t2), prefix: e4 });
4295
4305
  }
4296
- function vc(e4, t2) {
4306
+ function yc(e4, t2) {
4297
4307
  return new or({ check: "string_format", format: "ends_with", ...S(t2), suffix: e4 });
4298
4308
  }
4299
- function yc(e4, t2, n2) {
4309
+ function bc(e4, t2, n2) {
4300
4310
  return new cr({ check: "property", property: e4, schema: t2, ...S(n2) });
4301
4311
  }
4302
- function bc(e4, t2) {
4312
+ function xc(e4, t2) {
4303
4313
  return new lr({ check: "mime_type", mime: e4, ...S(t2) });
4304
4314
  }
4305
- function xc(e4) {
4306
- return new ur({ check: "overwrite", tx: e4 });
4307
- }
4308
4315
  function Sc(e4) {
4309
- return xc((t2) => t2.normalize(e4));
4316
+ return new ur({ check: "overwrite", tx: e4 });
4310
4317
  }
4311
- function Cc() {
4312
- return xc((e4) => e4.trim());
4318
+ function Cc(e4) {
4319
+ return Sc((t2) => t2.normalize(e4));
4313
4320
  }
4314
4321
  function wc() {
4315
- return xc((e4) => e4.toLowerCase());
4322
+ return Sc((e4) => e4.trim());
4316
4323
  }
4317
4324
  function Tc() {
4318
- return xc((e4) => e4.toUpperCase());
4325
+ return Sc((e4) => e4.toLowerCase());
4319
4326
  }
4320
4327
  function Ec() {
4321
- return xc((e4) => he(e4));
4328
+ return Sc((e4) => e4.toUpperCase());
4322
4329
  }
4323
- function Dc(e4, t2, n2) {
4324
- return new e4({ type: "array", element: t2, ...S(n2) });
4330
+ function Dc() {
4331
+ return Sc((e4) => he(e4));
4325
4332
  }
4326
4333
  function Oc(e4, t2, n2) {
4327
- return new e4({ type: "union", options: t2, ...S(n2) });
4334
+ return new e4({ type: "array", element: t2, ...S(n2) });
4328
4335
  }
4329
4336
  function kc(e4, t2, n2) {
4337
+ return new e4({ type: "union", options: t2, ...S(n2) });
4338
+ }
4339
+ function Ac(e4, t2, n2) {
4330
4340
  return new e4({ type: "union", options: t2, inclusive: false, ...S(n2) });
4331
4341
  }
4332
- function Ac(e4, t2, n2, r2) {
4342
+ function jc(e4, t2, n2, r2) {
4333
4343
  return new e4({ type: "union", options: n2, discriminator: t2, ...S(r2) });
4334
4344
  }
4335
- function jc(e4, t2, n2) {
4345
+ function Mc(e4, t2, n2) {
4336
4346
  return new e4({ type: "intersection", left: t2, right: n2 });
4337
4347
  }
4338
- function Mc(e4, t2, n2, r2) {
4348
+ function Nc(e4, t2, n2, r2) {
4339
4349
  let i2 = n2 instanceof E;
4340
4350
  return new e4({ type: "tuple", items: t2, rest: i2 ? n2 : null, ...S(i2 ? r2 : n2) });
4341
4351
  }
4342
- function Nc(e4, t2, n2, r2) {
4352
+ function Pc(e4, t2, n2, r2) {
4343
4353
  return new e4({ type: "record", keyType: t2, valueType: n2, ...S(r2) });
4344
4354
  }
4345
- function Pc(e4, t2, n2, r2) {
4355
+ function Fc(e4, t2, n2, r2) {
4346
4356
  return new e4({ type: "map", keyType: t2, valueType: n2, ...S(r2) });
4347
4357
  }
4348
- function Fc(e4, t2, n2) {
4358
+ function Ic(e4, t2, n2) {
4349
4359
  return new e4({ type: "set", valueType: t2, ...S(n2) });
4350
4360
  }
4351
- function Ic(e4, t2, n2) {
4361
+ function Lc(e4, t2, n2) {
4352
4362
  return new e4({ type: "enum", entries: Array.isArray(t2) ? Object.fromEntries(t2.map((e5) => [e5, e5])) : t2, ...S(n2) });
4353
4363
  }
4354
- function Lc(e4, t2, n2) {
4364
+ function Rc(e4, t2, n2) {
4355
4365
  return new e4({ type: "enum", entries: t2, ...S(n2) });
4356
4366
  }
4357
- function Rc(e4, t2, n2) {
4367
+ function zc(e4, t2, n2) {
4358
4368
  return new e4({ type: "literal", values: Array.isArray(t2) ? t2 : [t2], ...S(n2) });
4359
4369
  }
4360
- function zc(e4, t2) {
4370
+ function Bc(e4, t2) {
4361
4371
  return new e4({ type: "file", ...S(t2) });
4362
4372
  }
4363
- function Bc(e4, t2) {
4373
+ function Vc(e4, t2) {
4364
4374
  return new e4({ type: "transform", transform: t2 });
4365
4375
  }
4366
- function Vc(e4, t2) {
4376
+ function Hc(e4, t2) {
4367
4377
  return new e4({ type: "optional", innerType: t2 });
4368
4378
  }
4369
- function Hc(e4, t2) {
4379
+ function Uc(e4, t2) {
4370
4380
  return new e4({ type: "nullable", innerType: t2 });
4371
4381
  }
4372
- function Uc(e4, t2, n2) {
4382
+ function Wc(e4, t2, n2) {
4373
4383
  return new e4({ type: "default", innerType: t2, get defaultValue() {
4374
4384
  return typeof n2 == "function" ? n2() : be(n2);
4375
4385
  } });
4376
4386
  }
4377
- function Wc(e4, t2, n2) {
4387
+ function Gc(e4, t2, n2) {
4378
4388
  return new e4({ type: "nonoptional", innerType: t2, ...S(n2) });
4379
4389
  }
4380
- function Gc(e4, t2) {
4390
+ function Kc(e4, t2) {
4381
4391
  return new e4({ type: "success", innerType: t2 });
4382
4392
  }
4383
- function Kc(e4, t2, n2) {
4393
+ function qc(e4, t2, n2) {
4384
4394
  return new e4({ type: "catch", innerType: t2, catchValue: typeof n2 == "function" ? n2 : () => n2 });
4385
4395
  }
4386
- function qc(e4, t2, n2) {
4396
+ function Jc(e4, t2, n2) {
4387
4397
  return new e4({ type: "pipe", in: t2, out: n2 });
4388
4398
  }
4389
- function Jc(e4, t2) {
4399
+ function Yc(e4, t2) {
4390
4400
  return new e4({ type: "readonly", innerType: t2 });
4391
4401
  }
4392
- function Yc(e4, t2, n2) {
4402
+ function Xc(e4, t2, n2) {
4393
4403
  return new e4({ type: "template_literal", parts: t2, ...S(n2) });
4394
4404
  }
4395
- function Xc(e4, t2) {
4405
+ function Zc(e4, t2) {
4396
4406
  return new e4({ type: "lazy", getter: t2 });
4397
4407
  }
4398
- function Zc(e4, t2) {
4408
+ function Qc(e4, t2) {
4399
4409
  return new e4({ type: "promise", innerType: t2 });
4400
4410
  }
4401
- function Qc(e4, t2, n2) {
4411
+ function $c(e4, t2, n2) {
4402
4412
  let r2 = S(n2);
4403
4413
  return r2.abort != null || (r2.abort = true), new e4({ type: "custom", check: "custom", fn: t2, ...r2 });
4404
4414
  }
4405
- function $c(e4, t2, n2) {
4415
+ function el(e4, t2, n2) {
4406
4416
  return new e4({ type: "custom", check: "custom", fn: t2, ...S(n2) });
4407
4417
  }
4408
- function el(e4) {
4409
- let t2 = tl((n2) => (n2.addIssue = (e5) => {
4418
+ function tl(e4) {
4419
+ let t2 = nl((n2) => (n2.addIssue = (e5) => {
4410
4420
  if (typeof e5 == "string") n2.issues.push(We(e5, n2.value, t2._zod.def));
4411
4421
  else {
4412
4422
  let r2 = e5;
@@ -4415,11 +4425,11 @@ function el(e4) {
4415
4425
  }, e4(n2.value, n2)));
4416
4426
  return t2;
4417
4427
  }
4418
- function tl(e4, t2) {
4428
+ function nl(e4, t2) {
4419
4429
  let n2 = new T({ check: "custom", ...S(t2) });
4420
4430
  return n2._zod.check = e4, n2;
4421
4431
  }
4422
- function nl(e4) {
4432
+ function rl(e4) {
4423
4433
  let t2 = new T({ check: "describe" });
4424
4434
  return t2._zod.onattach = [(t3) => {
4425
4435
  var n2;
@@ -4428,7 +4438,7 @@ function nl(e4) {
4428
4438
  }], t2._zod.check = () => {
4429
4439
  }, t2;
4430
4440
  }
4431
- function rl(e4) {
4441
+ function il(e4) {
4432
4442
  let t2 = new T({ check: "meta" });
4433
4443
  return t2._zod.onattach = [(t3) => {
4434
4444
  var n2;
@@ -4437,7 +4447,7 @@ function rl(e4) {
4437
4447
  }], t2._zod.check = () => {
4438
4448
  }, t2;
4439
4449
  }
4440
- function il(e4, t2) {
4450
+ function al(e4, t2) {
4441
4451
  var n2, r2, i2, a2, o2;
4442
4452
  let s2 = S(t2), c2 = (n2 = s2.truthy) == null ? ["true", "1", "yes", "on", "y", "enabled"] : n2, l2 = (r2 = s2.falsy) == null ? ["false", "0", "no", "off", "n", "disabled"] : r2;
4443
4453
  s2.case !== "sensitive" && (c2 = c2.map((e5) => typeof e5 == "string" ? e5.toLowerCase() : e5), l2 = l2.map((e5) => typeof e5 == "string" ? e5.toLowerCase() : e5));
@@ -4447,17 +4457,17 @@ function il(e4, t2) {
4447
4457
  }), reverseTransform: ((e5, t3) => e5 === true ? c2[0] || "true" : l2[0] || "false"), error: s2.error });
4448
4458
  return m2;
4449
4459
  }
4450
- function al(e4, t2, n2, r2 = {}) {
4460
+ function ol(e4, t2, n2, r2 = {}) {
4451
4461
  let i2 = S(r2), a2 = { ...S(r2), check: "string_format", type: "string", format: t2, fn: typeof n2 == "function" ? n2 : (e5) => n2.test(e5), ...i2 };
4452
4462
  return n2 instanceof RegExp && (a2.pattern = n2), new e4(a2);
4453
4463
  }
4454
- function ol(e4) {
4464
+ function sl(e4) {
4455
4465
  var t2, n2, r2, i2, a2, o2, s2, c2, l2;
4456
4466
  let u2 = (t2 = e4 == null ? void 0 : e4.target) == null ? "draft-2020-12" : t2;
4457
4467
  return u2 === "draft-4" && (u2 = "draft-04"), u2 === "draft-7" && (u2 = "draft-07"), { processors: (n2 = e4.processors) == null ? {} : n2, metadataRegistry: (r2 = e4 == null ? void 0 : e4.metadata) == null ? $o : r2, target: u2, unrepresentable: (i2 = e4 == null ? void 0 : e4.unrepresentable) == null ? "throw" : i2, override: (a2 = e4 == null ? void 0 : e4.override) == null ? (() => {
4458
4468
  }) : a2, io: (o2 = e4 == null ? void 0 : e4.io) == null ? "output" : o2, counter: 0, seen: /* @__PURE__ */ new Map(), cycles: (s2 = e4 == null ? void 0 : e4.cycles) == null ? "ref" : s2, reused: (c2 = e4 == null ? void 0 : e4.reused) == null ? "inline" : c2, external: (l2 = e4 == null ? void 0 : e4.external) == null ? void 0 : l2 };
4459
4469
  }
4460
- function k(e4, t2, n2 = { path: [], schemaPath: [] }) {
4470
+ function O(e4, t2, n2 = { path: [], schemaPath: [] }) {
4461
4471
  var r2, i2, a2;
4462
4472
  let o2 = e4._zod.def, s2 = t2.seen.get(e4);
4463
4473
  if (s2) return s2.count++, n2.schemaPath.includes(e4) && (s2.cycle = n2.path), s2.schema;
@@ -4474,12 +4484,12 @@ function k(e4, t2, n2 = { path: [], schemaPath: [] }) {
4474
4484
  i4(e4, t2, n3, r3);
4475
4485
  }
4476
4486
  let i3 = e4._zod.parent;
4477
- i3 && (c2.ref || (c2.ref = i3), k(i3, t2, r3), t2.seen.get(i3).isParent = true);
4487
+ i3 && (c2.ref || (c2.ref = i3), O(i3, t2, r3), t2.seen.get(i3).isParent = true);
4478
4488
  }
4479
4489
  let u2 = t2.metadataRegistry.get(e4);
4480
- return u2 && Object.assign(c2.schema, u2), t2.io === "input" && ll(e4) && (delete c2.schema.examples, delete c2.schema.default), t2.io === "input" && c2.schema._prefault && ((a2 = c2.schema).default != null || (a2.default = c2.schema._prefault)), delete c2.schema._prefault, t2.seen.get(e4).schema;
4490
+ return u2 && Object.assign(c2.schema, u2), t2.io === "input" && ul(e4) && (delete c2.schema.examples, delete c2.schema.default), t2.io === "input" && c2.schema._prefault && ((a2 = c2.schema).default != null || (a2.default = c2.schema._prefault)), delete c2.schema._prefault, t2.seen.get(e4).schema;
4481
4491
  }
4482
- function sl(e4, t2) {
4492
+ function cl(e4, t2) {
4483
4493
  let n2 = e4.seen.get(t2);
4484
4494
  if (!n2) throw Error("Unprocessed schema. This is a bug in Zod.");
4485
4495
  let r2 = /* @__PURE__ */ new Map();
@@ -4549,7 +4559,7 @@ function sl(e4, t2) {
4549
4559
  }
4550
4560
  }
4551
4561
  }
4552
- function cl(e4, t2) {
4562
+ function ll(e4, t2) {
4553
4563
  var n2, r2, i2, a2;
4554
4564
  let o2 = e4.seen.get(t2);
4555
4565
  if (!o2) throw Error("Unprocessed schema. This is a bug in Zod.");
@@ -4593,81 +4603,81 @@ function cl(e4, t2) {
4593
4603
  e4.external || Object.keys(u2).length > 0 && (e4.target === "draft-2020-12" ? c2.$defs = u2 : c2.definitions = u2);
4594
4604
  try {
4595
4605
  let n3 = JSON.parse(JSON.stringify(c2));
4596
- return Object.defineProperty(n3, "~standard", { value: { ...t2["~standard"], jsonSchema: { input: dl(t2, "input", e4.processors), output: dl(t2, "output", e4.processors) } }, enumerable: false, writable: false }), n3;
4606
+ return Object.defineProperty(n3, "~standard", { value: { ...t2["~standard"], jsonSchema: { input: fl(t2, "input", e4.processors), output: fl(t2, "output", e4.processors) } }, enumerable: false, writable: false }), n3;
4597
4607
  } catch (e5) {
4598
4608
  throw Error("Error converting schema to JSON.");
4599
4609
  }
4600
4610
  }
4601
- function ll(e4, t2) {
4611
+ function ul(e4, t2) {
4602
4612
  let n2 = t2 == null ? { seen: /* @__PURE__ */ new Set() } : t2;
4603
4613
  if (n2.seen.has(e4)) return false;
4604
4614
  n2.seen.add(e4);
4605
4615
  let r2 = e4._zod.def;
4606
4616
  if (r2.type === "transform") return true;
4607
- if (r2.type === "array") return ll(r2.element, n2);
4608
- if (r2.type === "set") return ll(r2.valueType, n2);
4609
- if (r2.type === "lazy") return ll(r2.getter(), n2);
4610
- if (r2.type === "promise" || r2.type === "optional" || r2.type === "nonoptional" || r2.type === "nullable" || r2.type === "readonly" || r2.type === "default" || r2.type === "prefault") return ll(r2.innerType, n2);
4611
- if (r2.type === "intersection") return ll(r2.left, n2) || ll(r2.right, n2);
4612
- if (r2.type === "record" || r2.type === "map") return ll(r2.keyType, n2) || ll(r2.valueType, n2);
4613
- if (r2.type === "pipe") return ll(r2.in, n2) || ll(r2.out, n2);
4617
+ if (r2.type === "array") return ul(r2.element, n2);
4618
+ if (r2.type === "set") return ul(r2.valueType, n2);
4619
+ if (r2.type === "lazy") return ul(r2.getter(), n2);
4620
+ if (r2.type === "promise" || r2.type === "optional" || r2.type === "nonoptional" || r2.type === "nullable" || r2.type === "readonly" || r2.type === "default" || r2.type === "prefault") return ul(r2.innerType, n2);
4621
+ if (r2.type === "intersection") return ul(r2.left, n2) || ul(r2.right, n2);
4622
+ if (r2.type === "record" || r2.type === "map") return ul(r2.keyType, n2) || ul(r2.valueType, n2);
4623
+ if (r2.type === "pipe") return ul(r2.in, n2) || ul(r2.out, n2);
4614
4624
  if (r2.type === "object") {
4615
- for (let e5 in r2.shape) if (ll(r2.shape[e5], n2)) return true;
4625
+ for (let e5 in r2.shape) if (ul(r2.shape[e5], n2)) return true;
4616
4626
  return false;
4617
4627
  }
4618
4628
  if (r2.type === "union") {
4619
- for (let e5 of r2.options) if (ll(e5, n2)) return true;
4629
+ for (let e5 of r2.options) if (ul(e5, n2)) return true;
4620
4630
  return false;
4621
4631
  }
4622
4632
  if (r2.type === "tuple") {
4623
- for (let e5 of r2.items) if (ll(e5, n2)) return true;
4624
- return !!(r2.rest && ll(r2.rest, n2));
4633
+ for (let e5 of r2.items) if (ul(e5, n2)) return true;
4634
+ return !!(r2.rest && ul(r2.rest, n2));
4625
4635
  }
4626
4636
  return false;
4627
4637
  }
4628
- var ul = (e4, t2 = {}) => (n2) => {
4629
- let r2 = ol({ ...n2, processors: t2 });
4630
- return k(e4, r2), sl(r2, e4), cl(r2, e4);
4631
- }, dl = (e4, t2, n2 = {}) => (r2) => {
4632
- let { libraryOptions: i2, target: a2 } = r2 == null ? {} : r2, o2 = ol({ ...i2 == null ? {} : i2, target: a2, io: t2, processors: n2 });
4633
- return k(e4, o2), sl(o2, e4), cl(o2, e4);
4634
- }, fl = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" }, pl = (e4, t2, n2, r2) => {
4638
+ var dl = (e4, t2 = {}) => (n2) => {
4639
+ let r2 = sl({ ...n2, processors: t2 });
4640
+ return O(e4, r2), cl(r2, e4), ll(r2, e4);
4641
+ }, fl = (e4, t2, n2 = {}) => (r2) => {
4642
+ let { libraryOptions: i2, target: a2 } = r2 == null ? {} : r2, o2 = sl({ ...i2 == null ? {} : i2, target: a2, io: t2, processors: n2 });
4643
+ return O(e4, o2), cl(o2, e4), ll(o2, e4);
4644
+ }, pl = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" }, ml = (e4, t2, n2, r2) => {
4635
4645
  let i2 = n2;
4636
4646
  i2.type = "string";
4637
4647
  let { minimum: a2, maximum: o2, format: s2, patterns: c2, contentEncoding: l2 } = e4._zod.bag;
4638
4648
  if (typeof a2 == "number" && (i2.minLength = a2), typeof o2 == "number" && (i2.maxLength = o2), s2) {
4639
4649
  var u2;
4640
- i2.format = (u2 = fl[s2]) == null ? s2 : u2, i2.format === "" && delete i2.format, s2 === "time" && delete i2.format;
4650
+ i2.format = (u2 = pl[s2]) == null ? s2 : u2, i2.format === "" && delete i2.format, s2 === "time" && delete i2.format;
4641
4651
  }
4642
4652
  if (l2 && (i2.contentEncoding = l2), c2 && c2.size > 0) {
4643
4653
  let e5 = [...c2];
4644
4654
  e5.length === 1 ? i2.pattern = e5[0].source : e5.length > 1 && (i2.allOf = [...e5.map((e6) => ({ ...t2.target === "draft-07" || t2.target === "draft-04" || t2.target === "openapi-3.0" ? { type: "string" } : {}, pattern: e6.source }))]);
4645
4655
  }
4646
- }, ml = (e4, t2, n2, r2) => {
4656
+ }, hl = (e4, t2, n2, r2) => {
4647
4657
  let i2 = n2, { minimum: a2, maximum: o2, format: s2, multipleOf: c2, exclusiveMaximum: l2, exclusiveMinimum: u2 } = e4._zod.bag;
4648
4658
  typeof s2 == "string" && s2.includes("int") ? i2.type = "integer" : i2.type = "number", typeof u2 == "number" && (t2.target === "draft-04" || t2.target === "openapi-3.0" ? (i2.minimum = u2, i2.exclusiveMinimum = true) : i2.exclusiveMinimum = u2), typeof a2 == "number" && (i2.minimum = a2, typeof u2 == "number" && t2.target !== "draft-04" && (u2 >= a2 ? delete i2.minimum : delete i2.exclusiveMinimum)), typeof l2 == "number" && (t2.target === "draft-04" || t2.target === "openapi-3.0" ? (i2.maximum = l2, i2.exclusiveMaximum = true) : i2.exclusiveMaximum = l2), typeof o2 == "number" && (i2.maximum = o2, typeof l2 == "number" && t2.target !== "draft-04" && (l2 <= o2 ? delete i2.maximum : delete i2.exclusiveMaximum)), typeof c2 == "number" && (i2.multipleOf = c2);
4649
- }, hl = (e4, t2, n2, r2) => {
4650
- n2.type = "boolean";
4651
4659
  }, gl = (e4, t2, n2, r2) => {
4652
- if (t2.unrepresentable === "throw") throw Error("BigInt cannot be represented in JSON Schema");
4660
+ n2.type = "boolean";
4653
4661
  }, _l = (e4, t2, n2, r2) => {
4654
- if (t2.unrepresentable === "throw") throw Error("Symbols cannot be represented in JSON Schema");
4662
+ if (t2.unrepresentable === "throw") throw Error("BigInt cannot be represented in JSON Schema");
4655
4663
  }, vl = (e4, t2, n2, r2) => {
4656
- t2.target === "openapi-3.0" ? (n2.type = "string", n2.nullable = true, n2.enum = [null]) : n2.type = "null";
4664
+ if (t2.unrepresentable === "throw") throw Error("Symbols cannot be represented in JSON Schema");
4657
4665
  }, yl = (e4, t2, n2, r2) => {
4658
- if (t2.unrepresentable === "throw") throw Error("Undefined cannot be represented in JSON Schema");
4666
+ t2.target === "openapi-3.0" ? (n2.type = "string", n2.nullable = true, n2.enum = [null]) : n2.type = "null";
4659
4667
  }, bl = (e4, t2, n2, r2) => {
4660
- if (t2.unrepresentable === "throw") throw Error("Void cannot be represented in JSON Schema");
4668
+ if (t2.unrepresentable === "throw") throw Error("Undefined cannot be represented in JSON Schema");
4661
4669
  }, xl = (e4, t2, n2, r2) => {
4662
- n2.not = {};
4670
+ if (t2.unrepresentable === "throw") throw Error("Void cannot be represented in JSON Schema");
4663
4671
  }, Sl = (e4, t2, n2, r2) => {
4672
+ n2.not = {};
4664
4673
  }, Cl = (e4, t2, n2, r2) => {
4665
4674
  }, wl = (e4, t2, n2, r2) => {
4666
- if (t2.unrepresentable === "throw") throw Error("Date cannot be represented in JSON Schema");
4667
4675
  }, Tl = (e4, t2, n2, r2) => {
4676
+ if (t2.unrepresentable === "throw") throw Error("Date cannot be represented in JSON Schema");
4677
+ }, El = (e4, t2, n2, r2) => {
4668
4678
  let i2 = e4._zod.def, a2 = ne(i2.entries);
4669
4679
  a2.every((e5) => typeof e5 == "number") && (n2.type = "number"), a2.every((e5) => typeof e5 == "string") && (n2.type = "string"), n2.enum = a2;
4670
- }, El = (e4, t2, n2, r2) => {
4680
+ }, Dl = (e4, t2, n2, r2) => {
4671
4681
  let i2 = e4._zod.def, a2 = [];
4672
4682
  for (let e5 of i2.values) if (e5 === void 0) {
4673
4683
  if (t2.unrepresentable === "throw") throw Error("Literal `undefined` cannot be represented in JSON Schema");
@@ -4679,89 +4689,89 @@ var ul = (e4, t2 = {}) => (n2) => {
4679
4689
  let e5 = a2[0];
4680
4690
  n2.type = e5 === null ? "null" : typeof e5, t2.target === "draft-04" || t2.target === "openapi-3.0" ? n2.enum = [e5] : n2.const = e5;
4681
4691
  } else a2.every((e5) => typeof e5 == "number") && (n2.type = "number"), a2.every((e5) => typeof e5 == "string") && (n2.type = "string"), a2.every((e5) => typeof e5 == "boolean") && (n2.type = "boolean"), a2.every((e5) => e5 === null) && (n2.type = "null"), n2.enum = a2;
4682
- }, Dl = (e4, t2, n2, r2) => {
4683
- if (t2.unrepresentable === "throw") throw Error("NaN cannot be represented in JSON Schema");
4684
4692
  }, Ol = (e4, t2, n2, r2) => {
4693
+ if (t2.unrepresentable === "throw") throw Error("NaN cannot be represented in JSON Schema");
4694
+ }, kl = (e4, t2, n2, r2) => {
4685
4695
  let i2 = n2, a2 = e4._zod.pattern;
4686
4696
  if (!a2) throw Error("Pattern not found in template literal");
4687
4697
  i2.type = "string", i2.pattern = a2.source;
4688
- }, kl = (e4, t2, n2, r2) => {
4698
+ }, Al = (e4, t2, n2, r2) => {
4689
4699
  let i2 = n2, a2 = { type: "string", format: "binary", contentEncoding: "binary" }, { minimum: o2, maximum: s2, mime: c2 } = e4._zod.bag;
4690
4700
  o2 !== void 0 && (a2.minLength = o2), s2 !== void 0 && (a2.maxLength = s2), c2 ? c2.length === 1 ? (a2.contentMediaType = c2[0], Object.assign(i2, a2)) : (Object.assign(i2, a2), i2.anyOf = c2.map((e5) => ({ contentMediaType: e5 }))) : Object.assign(i2, a2);
4691
- }, Al = (e4, t2, n2, r2) => {
4692
- n2.type = "boolean";
4693
4701
  }, jl = (e4, t2, n2, r2) => {
4694
- if (t2.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
4702
+ n2.type = "boolean";
4695
4703
  }, Ml = (e4, t2, n2, r2) => {
4696
- if (t2.unrepresentable === "throw") throw Error("Function types cannot be represented in JSON Schema");
4704
+ if (t2.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
4697
4705
  }, Nl = (e4, t2, n2, r2) => {
4698
- if (t2.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
4706
+ if (t2.unrepresentable === "throw") throw Error("Function types cannot be represented in JSON Schema");
4699
4707
  }, Pl = (e4, t2, n2, r2) => {
4700
- if (t2.unrepresentable === "throw") throw Error("Map cannot be represented in JSON Schema");
4708
+ if (t2.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
4701
4709
  }, Fl = (e4, t2, n2, r2) => {
4702
- if (t2.unrepresentable === "throw") throw Error("Set cannot be represented in JSON Schema");
4710
+ if (t2.unrepresentable === "throw") throw Error("Map cannot be represented in JSON Schema");
4703
4711
  }, Il = (e4, t2, n2, r2) => {
4704
- let i2 = n2, a2 = e4._zod.def, { minimum: o2, maximum: s2 } = e4._zod.bag;
4705
- typeof o2 == "number" && (i2.minItems = o2), typeof s2 == "number" && (i2.maxItems = s2), i2.type = "array", i2.items = k(a2.element, t2, { ...r2, path: [...r2.path, "items"] });
4712
+ if (t2.unrepresentable === "throw") throw Error("Set cannot be represented in JSON Schema");
4706
4713
  }, Ll = (e4, t2, n2, r2) => {
4714
+ let i2 = n2, a2 = e4._zod.def, { minimum: o2, maximum: s2 } = e4._zod.bag;
4715
+ typeof o2 == "number" && (i2.minItems = o2), typeof s2 == "number" && (i2.maxItems = s2), i2.type = "array", i2.items = O(a2.element, t2, { ...r2, path: [...r2.path, "items"] });
4716
+ }, Rl = (e4, t2, n2, r2) => {
4707
4717
  var i2;
4708
4718
  let a2 = n2, o2 = e4._zod.def;
4709
4719
  a2.type = "object", a2.properties = {};
4710
4720
  let s2 = o2.shape;
4711
- for (let e5 in s2) a2.properties[e5] = k(s2[e5], t2, { ...r2, path: [...r2.path, "properties", e5] });
4721
+ for (let e5 in s2) a2.properties[e5] = O(s2[e5], t2, { ...r2, path: [...r2.path, "properties", e5] });
4712
4722
  let c2 = new Set(Object.keys(s2)), l2 = new Set([...c2].filter((e5) => {
4713
4723
  let n3 = o2.shape[e5]._zod;
4714
4724
  return t2.io === "input" ? n3.optin === void 0 : n3.optout === void 0;
4715
4725
  }));
4716
- l2.size > 0 && (a2.required = Array.from(l2)), ((i2 = o2.catchall) == null ? void 0 : i2._zod.def.type) === "never" ? a2.additionalProperties = false : o2.catchall ? o2.catchall && (a2.additionalProperties = k(o2.catchall, t2, { ...r2, path: [...r2.path, "additionalProperties"] })) : t2.io === "output" && (a2.additionalProperties = false);
4717
- }, Rl = (e4, t2, n2, r2) => {
4718
- let i2 = e4._zod.def, a2 = i2.inclusive === false, o2 = i2.options.map((e5, n3) => k(e5, t2, { ...r2, path: [...r2.path, a2 ? "oneOf" : "anyOf", n3] }));
4719
- a2 ? n2.oneOf = o2 : n2.anyOf = o2;
4726
+ l2.size > 0 && (a2.required = Array.from(l2)), ((i2 = o2.catchall) == null ? void 0 : i2._zod.def.type) === "never" ? a2.additionalProperties = false : o2.catchall ? o2.catchall && (a2.additionalProperties = O(o2.catchall, t2, { ...r2, path: [...r2.path, "additionalProperties"] })) : t2.io === "output" && (a2.additionalProperties = false);
4720
4727
  }, zl = (e4, t2, n2, r2) => {
4721
- let i2 = e4._zod.def, a2 = k(i2.left, t2, { ...r2, path: [...r2.path, "allOf", 0] }), o2 = k(i2.right, t2, { ...r2, path: [...r2.path, "allOf", 1] }), s2 = (e5) => "allOf" in e5 && Object.keys(e5).length === 1;
4722
- n2.allOf = [...s2(a2) ? a2.allOf : [a2], ...s2(o2) ? o2.allOf : [o2]];
4728
+ let i2 = e4._zod.def, a2 = i2.inclusive === false, o2 = i2.options.map((e5, n3) => O(e5, t2, { ...r2, path: [...r2.path, a2 ? "oneOf" : "anyOf", n3] }));
4729
+ a2 ? n2.oneOf = o2 : n2.anyOf = o2;
4723
4730
  }, Bl = (e4, t2, n2, r2) => {
4731
+ let i2 = e4._zod.def, a2 = O(i2.left, t2, { ...r2, path: [...r2.path, "allOf", 0] }), o2 = O(i2.right, t2, { ...r2, path: [...r2.path, "allOf", 1] }), s2 = (e5) => "allOf" in e5 && Object.keys(e5).length === 1;
4732
+ n2.allOf = [...s2(a2) ? a2.allOf : [a2], ...s2(o2) ? o2.allOf : [o2]];
4733
+ }, Vl = (e4, t2, n2, r2) => {
4724
4734
  let i2 = n2, a2 = e4._zod.def;
4725
4735
  i2.type = "array";
4726
- let o2 = t2.target === "draft-2020-12" ? "prefixItems" : "items", s2 = t2.target === "draft-2020-12" || t2.target === "openapi-3.0" ? "items" : "additionalItems", c2 = a2.items.map((e5, n3) => k(e5, t2, { ...r2, path: [...r2.path, o2, n3] })), l2 = a2.rest ? k(a2.rest, t2, { ...r2, path: [...r2.path, s2, ...t2.target === "openapi-3.0" ? [a2.items.length] : []] }) : null;
4736
+ let o2 = t2.target === "draft-2020-12" ? "prefixItems" : "items", s2 = t2.target === "draft-2020-12" || t2.target === "openapi-3.0" ? "items" : "additionalItems", c2 = a2.items.map((e5, n3) => O(e5, t2, { ...r2, path: [...r2.path, o2, n3] })), l2 = a2.rest ? O(a2.rest, t2, { ...r2, path: [...r2.path, s2, ...t2.target === "openapi-3.0" ? [a2.items.length] : []] }) : null;
4727
4737
  t2.target === "draft-2020-12" ? (i2.prefixItems = c2, l2 && (i2.items = l2)) : t2.target === "openapi-3.0" ? (i2.items = { anyOf: c2 }, l2 && i2.items.anyOf.push(l2), i2.minItems = c2.length, l2 || (i2.maxItems = c2.length)) : (i2.items = c2, l2 && (i2.additionalItems = l2));
4728
4738
  let { minimum: u2, maximum: d2 } = e4._zod.bag;
4729
4739
  typeof u2 == "number" && (i2.minItems = u2), typeof d2 == "number" && (i2.maxItems = d2);
4730
- }, Vl = (e4, t2, n2, r2) => {
4740
+ }, Hl = (e4, t2, n2, r2) => {
4731
4741
  let i2 = n2, a2 = e4._zod.def;
4732
4742
  i2.type = "object";
4733
4743
  let o2 = a2.keyType, s2 = o2._zod.bag, c2 = s2 == null ? void 0 : s2.patterns;
4734
4744
  if (a2.mode === "loose" && c2 && c2.size > 0) {
4735
- let e5 = k(a2.valueType, t2, { ...r2, path: [...r2.path, "patternProperties", "*"] });
4745
+ let e5 = O(a2.valueType, t2, { ...r2, path: [...r2.path, "patternProperties", "*"] });
4736
4746
  i2.patternProperties = {};
4737
4747
  for (let t3 of c2) i2.patternProperties[t3.source] = e5;
4738
- } else (t2.target === "draft-07" || t2.target === "draft-2020-12") && (i2.propertyNames = k(a2.keyType, t2, { ...r2, path: [...r2.path, "propertyNames"] })), i2.additionalProperties = k(a2.valueType, t2, { ...r2, path: [...r2.path, "additionalProperties"] });
4748
+ } else (t2.target === "draft-07" || t2.target === "draft-2020-12") && (i2.propertyNames = O(a2.keyType, t2, { ...r2, path: [...r2.path, "propertyNames"] })), i2.additionalProperties = O(a2.valueType, t2, { ...r2, path: [...r2.path, "additionalProperties"] });
4739
4749
  let l2 = o2._zod.values;
4740
4750
  if (l2) {
4741
4751
  let e5 = [...l2].filter((e6) => typeof e6 == "string" || typeof e6 == "number");
4742
4752
  e5.length > 0 && (i2.required = e5);
4743
4753
  }
4744
- }, Hl = (e4, t2, n2, r2) => {
4745
- let i2 = e4._zod.def, a2 = k(i2.innerType, t2, r2), o2 = t2.seen.get(e4);
4746
- t2.target === "openapi-3.0" ? (o2.ref = i2.innerType, n2.nullable = true) : n2.anyOf = [a2, { type: "null" }];
4747
4754
  }, Ul = (e4, t2, n2, r2) => {
4755
+ let i2 = e4._zod.def, a2 = O(i2.innerType, t2, r2), o2 = t2.seen.get(e4);
4756
+ t2.target === "openapi-3.0" ? (o2.ref = i2.innerType, n2.nullable = true) : n2.anyOf = [a2, { type: "null" }];
4757
+ }, Wl = (e4, t2, n2, r2) => {
4748
4758
  let i2 = e4._zod.def;
4749
- k(i2.innerType, t2, r2);
4759
+ O(i2.innerType, t2, r2);
4750
4760
  let a2 = t2.seen.get(e4);
4751
4761
  a2.ref = i2.innerType;
4752
- }, Wl = (e4, t2, n2, r2) => {
4762
+ }, Gl = (e4, t2, n2, r2) => {
4753
4763
  let i2 = e4._zod.def;
4754
- k(i2.innerType, t2, r2);
4764
+ O(i2.innerType, t2, r2);
4755
4765
  let a2 = t2.seen.get(e4);
4756
4766
  a2.ref = i2.innerType, n2.default = JSON.parse(JSON.stringify(i2.defaultValue));
4757
- }, Gl = (e4, t2, n2, r2) => {
4767
+ }, Kl = (e4, t2, n2, r2) => {
4758
4768
  let i2 = e4._zod.def;
4759
- k(i2.innerType, t2, r2);
4769
+ O(i2.innerType, t2, r2);
4760
4770
  let a2 = t2.seen.get(e4);
4761
4771
  a2.ref = i2.innerType, t2.io === "input" && (n2._prefault = JSON.parse(JSON.stringify(i2.defaultValue)));
4762
- }, Kl = (e4, t2, n2, r2) => {
4772
+ }, ql = (e4, t2, n2, r2) => {
4763
4773
  let i2 = e4._zod.def;
4764
- k(i2.innerType, t2, r2);
4774
+ O(i2.innerType, t2, r2);
4765
4775
  let a2 = t2.seen.get(e4);
4766
4776
  a2.ref = i2.innerType;
4767
4777
  let o2;
@@ -4771,51 +4781,51 @@ var ul = (e4, t2 = {}) => (n2) => {
4771
4781
  throw Error("Dynamic catch values are not supported in JSON Schema");
4772
4782
  }
4773
4783
  n2.default = o2;
4774
- }, ql = (e4, t2, n2, r2) => {
4784
+ }, Jl = (e4, t2, n2, r2) => {
4775
4785
  let i2 = e4._zod.def, a2 = t2.io === "input" ? i2.in._zod.def.type === "transform" ? i2.out : i2.in : i2.out;
4776
- k(a2, t2, r2);
4786
+ O(a2, t2, r2);
4777
4787
  let o2 = t2.seen.get(e4);
4778
4788
  o2.ref = a2;
4779
- }, Jl = (e4, t2, n2, r2) => {
4789
+ }, Yl = (e4, t2, n2, r2) => {
4780
4790
  let i2 = e4._zod.def;
4781
- k(i2.innerType, t2, r2);
4791
+ O(i2.innerType, t2, r2);
4782
4792
  let a2 = t2.seen.get(e4);
4783
4793
  a2.ref = i2.innerType, n2.readOnly = true;
4784
- }, Yl = (e4, t2, n2, r2) => {
4794
+ }, Xl = (e4, t2, n2, r2) => {
4785
4795
  let i2 = e4._zod.def;
4786
- k(i2.innerType, t2, r2);
4796
+ O(i2.innerType, t2, r2);
4787
4797
  let a2 = t2.seen.get(e4);
4788
4798
  a2.ref = i2.innerType;
4789
- }, Xl = (e4, t2, n2, r2) => {
4799
+ }, Zl = (e4, t2, n2, r2) => {
4790
4800
  let i2 = e4._zod.def;
4791
- k(i2.innerType, t2, r2);
4801
+ O(i2.innerType, t2, r2);
4792
4802
  let a2 = t2.seen.get(e4);
4793
4803
  a2.ref = i2.innerType;
4794
- }, Zl = (e4, t2, n2, r2) => {
4804
+ }, Ql = (e4, t2, n2, r2) => {
4795
4805
  let i2 = e4._zod.innerType;
4796
- k(i2, t2, r2);
4806
+ O(i2, t2, r2);
4797
4807
  let a2 = t2.seen.get(e4);
4798
4808
  a2.ref = i2;
4799
- }, Ql = { string: pl, number: ml, boolean: hl, bigint: gl, symbol: _l, null: vl, undefined: yl, void: bl, never: xl, any: Sl, unknown: Cl, date: wl, enum: Tl, literal: El, nan: Dl, template_literal: Ol, file: kl, success: Al, custom: jl, function: Ml, transform: Nl, map: Pl, set: Fl, array: Il, object: Ll, union: Rl, intersection: zl, tuple: Bl, record: Vl, nullable: Hl, nonoptional: Ul, default: Wl, prefault: Gl, catch: Kl, pipe: ql, readonly: Jl, promise: Yl, optional: Xl, lazy: Zl };
4800
- function $l(e4, t2) {
4809
+ }, $l = { string: ml, number: hl, boolean: gl, bigint: _l, symbol: vl, null: yl, undefined: bl, void: xl, never: Sl, any: Cl, unknown: wl, date: Tl, enum: El, literal: Dl, nan: Ol, template_literal: kl, file: Al, success: jl, custom: Ml, function: Nl, transform: Pl, map: Fl, set: Il, array: Ll, object: Rl, union: zl, intersection: Bl, tuple: Vl, record: Hl, nullable: Ul, nonoptional: Wl, default: Gl, prefault: Kl, catch: ql, pipe: Jl, readonly: Yl, promise: Xl, optional: Zl, lazy: Ql };
4810
+ function eu(e4, t2) {
4801
4811
  if ("_idmap" in e4) {
4802
- let n3 = e4, r2 = ol({ ...t2, processors: Ql }), i2 = {};
4812
+ let n3 = e4, r2 = sl({ ...t2, processors: $l }), i2 = {};
4803
4813
  for (let e5 of n3._idmap.entries()) {
4804
4814
  let [t3, n4] = e5;
4805
- k(n4, r2);
4815
+ O(n4, r2);
4806
4816
  }
4807
4817
  let a2 = {};
4808
4818
  r2.external = { registry: n3, uri: t2 == null ? void 0 : t2.uri, defs: i2 };
4809
4819
  for (let e5 of n3._idmap.entries()) {
4810
4820
  let [t3, n4] = e5;
4811
- sl(r2, n4), a2[t3] = cl(r2, n4);
4821
+ cl(r2, n4), a2[t3] = ll(r2, n4);
4812
4822
  }
4813
4823
  return Object.keys(i2).length > 0 && (a2.__shared = { [r2.target === "draft-2020-12" ? "$defs" : "definitions"]: i2 }), { schemas: a2 };
4814
4824
  }
4815
- let n2 = ol({ ...t2, processors: Ql });
4816
- return k(e4, n2), sl(n2, e4), cl(n2, e4);
4825
+ let n2 = sl({ ...t2, processors: $l });
4826
+ return O(e4, n2), cl(n2, e4), ll(n2, e4);
4817
4827
  }
4818
- var eu = class {
4828
+ var tu = class {
4819
4829
  get metadataRegistry() {
4820
4830
  return this.ctx.metadataRegistry;
4821
4831
  }
@@ -4843,27 +4853,27 @@ var eu = class {
4843
4853
  constructor(e4) {
4844
4854
  var t2;
4845
4855
  let n2 = (t2 = e4 == null ? void 0 : e4.target) == null ? "draft-2020-12" : t2;
4846
- n2 === "draft-4" && (n2 = "draft-04"), n2 === "draft-7" && (n2 = "draft-07"), this.ctx = ol({ processors: Ql, target: n2, ...(e4 == null ? void 0 : e4.metadata) && { metadata: e4.metadata }, ...(e4 == null ? void 0 : e4.unrepresentable) && { unrepresentable: e4.unrepresentable }, ...(e4 == null ? void 0 : e4.override) && { override: e4.override }, ...(e4 == null ? void 0 : e4.io) && { io: e4.io } });
4856
+ n2 === "draft-4" && (n2 = "draft-04"), n2 === "draft-7" && (n2 = "draft-07"), this.ctx = sl({ processors: $l, target: n2, ...(e4 == null ? void 0 : e4.metadata) && { metadata: e4.metadata }, ...(e4 == null ? void 0 : e4.unrepresentable) && { unrepresentable: e4.unrepresentable }, ...(e4 == null ? void 0 : e4.override) && { override: e4.override }, ...(e4 == null ? void 0 : e4.io) && { io: e4.io } });
4847
4857
  }
4848
4858
  process(e4, t2 = { path: [], schemaPath: [] }) {
4849
- return k(e4, this.ctx, t2);
4859
+ return O(e4, this.ctx, t2);
4850
4860
  }
4851
4861
  emit(e4, t2) {
4852
- t2 && (t2.cycles && (this.ctx.cycles = t2.cycles), t2.reused && (this.ctx.reused = t2.reused), t2.external && (this.ctx.external = t2.external)), sl(this.ctx, e4);
4853
- let { "~standard": n2, ...r2 } = cl(this.ctx, e4);
4862
+ t2 && (t2.cycles && (this.ctx.cycles = t2.cycles), t2.reused && (this.ctx.reused = t2.reused), t2.external && (this.ctx.external = t2.external)), cl(this.ctx, e4);
4863
+ let { "~standard": n2, ...r2 } = ll(this.ctx, e4);
4854
4864
  return r2;
4855
4865
  }
4856
- }, tu = t({}), nu = t({ $ZodAny: () => Xr, $ZodArray: () => ni, $ZodAsyncError: () => u, $ZodBase64: () => Fr, $ZodBase64URL: () => Lr, $ZodBigInt: () => Gr, $ZodBigIntFormat: () => Kr, $ZodBoolean: () => Wr, $ZodCIDRv4: () => Mr, $ZodCIDRv6: () => Nr, $ZodCUID: () => br, $ZodCUID2: () => xr, $ZodCatch: () => Li, $ZodCheck: () => T, $ZodCheckBigIntFormat: () => qn, $ZodCheckEndsWith: () => or, $ZodCheckGreaterThan: () => Wn, $ZodCheckIncludes: () => ir, $ZodCheckLengthEquals: () => $n, $ZodCheckLessThan: () => Un, $ZodCheckLowerCase: () => nr, $ZodCheckMaxLength: () => Zn, $ZodCheckMaxSize: () => Jn, $ZodCheckMimeType: () => lr, $ZodCheckMinLength: () => Qn, $ZodCheckMinSize: () => Yn, $ZodCheckMultipleOf: () => Gn, $ZodCheckNumberFormat: () => Kn, $ZodCheckOverwrite: () => ur, $ZodCheckProperty: () => cr, $ZodCheckRegex: () => tr, $ZodCheckSizeEquals: () => Xn, $ZodCheckStartsWith: () => ar, $ZodCheckStringFormat: () => er, $ZodCheckUpperCase: () => rr, $ZodCodec: () => Vi, $ZodCustom: () => Xi, $ZodCustomStringFormat: () => Vr, $ZodDate: () => ei, $ZodDefault: () => ji, $ZodDiscriminatedUnion: () => fi, $ZodE164: () => Rr, $ZodEmail: () => gr, $ZodEmoji: () => vr, $ZodEncodeError: () => d, $ZodEnum: () => Ci, $ZodError: () => et, $ZodExactOptional: () => ki, $ZodFile: () => Ti, $ZodFunction: () => qi, $ZodGUID: () => mr, $ZodIPv4: () => kr, $ZodIPv6: () => Ar, $ZodISODate: () => Er, $ZodISODateTime: () => Tr, $ZodISODuration: () => Or, $ZodISOTime: () => Dr, $ZodIntersection: () => pi, $ZodJWT: () => Br, $ZodKSUID: () => wr, $ZodLazy: () => Yi, $ZodLiteral: () => wi, $ZodMAC: () => jr, $ZodMap: () => yi, $ZodNaN: () => Ri, $ZodNanoID: () => yr, $ZodNever: () => Qr, $ZodNonOptional: () => Pi, $ZodNull: () => Yr, $ZodNullable: () => Ai, $ZodNumber: () => Hr, $ZodNumberFormat: () => Ur, $ZodObject: () => oi, $ZodObjectJIT: () => si, $ZodOptional: () => Oi, $ZodPipe: () => zi, $ZodPrefault: () => Ni, $ZodPromise: () => Ji, $ZodReadonly: () => Wi, $ZodRealError: () => tt, $ZodRecord: () => vi, $ZodRegistry: () => Zo, $ZodSet: () => xi, $ZodString: () => pr, $ZodStringFormat: () => D, $ZodSuccess: () => Ii, $ZodSymbol: () => qr, $ZodTemplateLiteral: () => Ki, $ZodTransform: () => Ei, $ZodTuple: () => gi, $ZodType: () => E, $ZodULID: () => Sr, $ZodURL: () => _r, $ZodUUID: () => hr, $ZodUndefined: () => Jr, $ZodUnion: () => li, $ZodUnknown: () => Zr, $ZodVoid: () => $r, $ZodXID: () => Cr, $ZodXor: () => di, $brand: () => l, $constructor: () => c, $input: () => Xo, $output: () => Yo, Doc: () => dr, JSONSchema: () => tu, JSONSchemaGenerator: () => eu, NEVER: () => s, TimePrecision: () => Ts, _any: () => Ks, _array: () => Dc, _base64: () => xs, _base64url: () => Ss, _bigint: () => zs, _boolean: () => Ls, _catch: () => Kc, _check: () => tl, _cidrv4: () => ys, _cidrv6: () => bs, _coercedBigint: () => Bs, _coercedBoolean: () => Rs, _coercedDate: () => Zs, _coercedNumber: () => js, _coercedString: () => ts, _cuid: () => ds, _cuid2: () => fs, _custom: () => Qc, _date: () => Xs, _decode: () => _t, _decodeAsync: () => xt, _default: () => Uc, _discriminatedUnion: () => Ac, _e164: () => Cs, _email: () => ns, _emoji: () => ls, _encode: () => ht, _encodeAsync: () => yt, _endsWith: () => vc, _enum: () => Ic, _file: () => zc, _float32: () => Ns, _float64: () => Ps, _gt: () => tc, _gte: () => O, _guid: () => rs, _includes: () => gc, _int: () => Ms, _int32: () => Fs, _int64: () => Vs, _intersection: () => jc, _ipv4: () => gs, _ipv6: () => _s, _isoDate: () => Ds, _isoDateTime: () => Es, _isoDuration: () => ks, _isoTime: () => Os, _jwt: () => ws, _ksuid: () => hs, _lazy: () => Xc, _length: () => fc, _literal: () => Rc, _lowercase: () => mc, _lt: () => $s, _lte: () => ec, _mac: () => vs, _map: () => Pc, _max: () => ec, _maxLength: () => uc, _maxSize: () => sc, _mime: () => bc, _min: () => O, _minLength: () => dc, _minSize: () => cc, _multipleOf: () => oc, _nan: () => Qs, _nanoid: () => us, _nativeEnum: () => Lc, _negative: () => rc, _never: () => Js, _nonnegative: () => ac, _nonoptional: () => Wc, _nonpositive: () => ic, _normalize: () => Sc, _null: () => Gs, _nullable: () => Hc, _number: () => As, _optional: () => Vc, _overwrite: () => xc, _parse: () => st, _parseAsync: () => lt, _pipe: () => qc, _positive: () => nc, _promise: () => Zc, _property: () => yc, _readonly: () => Jc, _record: () => Nc, _refine: () => $c, _regex: () => pc, _safeDecode: () => Tt, _safeDecodeAsync: () => kt, _safeEncode: () => Ct, _safeEncodeAsync: () => Dt, _safeParse: () => dt, _safeParseAsync: () => pt, _set: () => Fc, _size: () => lc, _slugify: () => Ec, _startsWith: () => _c, _string: () => es, _stringFormat: () => al, _stringbool: () => il, _success: () => Gc, _superRefine: () => el, _symbol: () => Us, _templateLiteral: () => Yc, _toLowerCase: () => wc, _toUpperCase: () => Tc, _transform: () => Bc, _trim: () => Cc, _tuple: () => Mc, _uint32: () => Is, _uint64: () => Hs, _ulid: () => ps, _undefined: () => Ws, _union: () => Oc, _unknown: () => qs, _uppercase: () => hc, _url: () => cs, _uuid: () => is, _uuidv4: () => as, _uuidv6: () => os, _uuidv7: () => ss, _void: () => Ys, _xid: () => ms, _xor: () => kc, clone: () => Ee, config: () => p, createStandardJSONSchemaMethod: () => dl, createToJSONSchemaMethod: () => ul, decode: () => vt, decodeAsync: () => St, describe: () => nl, encode: () => gt, encodeAsync: () => bt, extractDefs: () => sl, finalize: () => cl, flattenError: () => nt, formatError: () => rt, globalConfig: () => f, globalRegistry: () => $o, initializeContext: () => ol, isValidBase64: () => Pr, isValidBase64URL: () => Ir, isValidJWT: () => zr, locales: () => qo, meta: () => rl, parse: () => ct, parseAsync: () => ut, prettifyError: () => ot, process: () => k, regexes: () => jt, registry: () => Qo, safeDecode: () => Et, safeDecodeAsync: () => At, safeEncode: () => wt, safeEncodeAsync: () => Ot, safeParse: () => ft, safeParseAsync: () => mt, toDotPath: () => at, toJSONSchema: () => $l, treeifyError: () => it, util: () => m, version: () => fr });
4857
- function ru(e4) {
4866
+ }, nu = t({}), ru = t({ $ZodAny: () => Xr, $ZodArray: () => ni, $ZodAsyncError: () => u, $ZodBase64: () => Fr, $ZodBase64URL: () => Lr, $ZodBigInt: () => Gr, $ZodBigIntFormat: () => Kr, $ZodBoolean: () => Wr, $ZodCIDRv4: () => Mr, $ZodCIDRv6: () => Nr, $ZodCUID: () => br, $ZodCUID2: () => xr, $ZodCatch: () => Li, $ZodCheck: () => T, $ZodCheckBigIntFormat: () => qn, $ZodCheckEndsWith: () => or, $ZodCheckGreaterThan: () => Wn, $ZodCheckIncludes: () => ir, $ZodCheckLengthEquals: () => $n, $ZodCheckLessThan: () => Un, $ZodCheckLowerCase: () => nr, $ZodCheckMaxLength: () => Zn, $ZodCheckMaxSize: () => Jn, $ZodCheckMimeType: () => lr, $ZodCheckMinLength: () => Qn, $ZodCheckMinSize: () => Yn, $ZodCheckMultipleOf: () => Gn, $ZodCheckNumberFormat: () => Kn, $ZodCheckOverwrite: () => ur, $ZodCheckProperty: () => cr, $ZodCheckRegex: () => tr, $ZodCheckSizeEquals: () => Xn, $ZodCheckStartsWith: () => ar, $ZodCheckStringFormat: () => er, $ZodCheckUpperCase: () => rr, $ZodCodec: () => Vi, $ZodCustom: () => Xi, $ZodCustomStringFormat: () => Vr, $ZodDate: () => ei, $ZodDefault: () => ji, $ZodDiscriminatedUnion: () => fi, $ZodE164: () => Rr, $ZodEmail: () => gr, $ZodEmoji: () => vr, $ZodEncodeError: () => d, $ZodEnum: () => Ci, $ZodError: () => et, $ZodExactOptional: () => ki, $ZodFile: () => Ti, $ZodFunction: () => qi, $ZodGUID: () => mr, $ZodIPv4: () => kr, $ZodIPv6: () => Ar, $ZodISODate: () => Er, $ZodISODateTime: () => Tr, $ZodISODuration: () => Or, $ZodISOTime: () => Dr, $ZodIntersection: () => pi, $ZodJWT: () => Br, $ZodKSUID: () => wr, $ZodLazy: () => Yi, $ZodLiteral: () => wi, $ZodMAC: () => jr, $ZodMap: () => yi, $ZodNaN: () => Ri, $ZodNanoID: () => yr, $ZodNever: () => Qr, $ZodNonOptional: () => Pi, $ZodNull: () => Yr, $ZodNullable: () => Ai, $ZodNumber: () => Hr, $ZodNumberFormat: () => Ur, $ZodObject: () => oi, $ZodObjectJIT: () => si, $ZodOptional: () => Oi, $ZodPipe: () => zi, $ZodPrefault: () => Ni, $ZodPromise: () => Ji, $ZodReadonly: () => Wi, $ZodRealError: () => tt, $ZodRecord: () => vi, $ZodRegistry: () => Zo, $ZodSet: () => xi, $ZodString: () => pr, $ZodStringFormat: () => D, $ZodSuccess: () => Ii, $ZodSymbol: () => qr, $ZodTemplateLiteral: () => Ki, $ZodTransform: () => Ei, $ZodTuple: () => gi, $ZodType: () => E, $ZodULID: () => Sr, $ZodURL: () => _r, $ZodUUID: () => hr, $ZodUndefined: () => Jr, $ZodUnion: () => li, $ZodUnknown: () => Zr, $ZodVoid: () => $r, $ZodXID: () => Cr, $ZodXor: () => di, $brand: () => l, $constructor: () => c, $input: () => Xo, $output: () => Yo, Doc: () => dr, JSONSchema: () => nu, JSONSchemaGenerator: () => tu, NEVER: () => s, TimePrecision: () => Ts, _any: () => Ks, _array: () => Oc, _base64: () => xs, _base64url: () => Ss, _bigint: () => zs, _boolean: () => Ls, _catch: () => qc, _check: () => nl, _cidrv4: () => ys, _cidrv6: () => bs, _coercedBigint: () => Bs, _coercedBoolean: () => Rs, _coercedDate: () => Zs, _coercedNumber: () => js, _coercedString: () => ts, _cuid: () => ds, _cuid2: () => fs, _custom: () => $c, _date: () => Xs, _decode: () => _t, _decodeAsync: () => xt, _default: () => Wc, _discriminatedUnion: () => jc, _e164: () => Cs, _email: () => ns, _emoji: () => ls, _encode: () => ht, _encodeAsync: () => yt, _endsWith: () => yc, _enum: () => Lc, _file: () => Bc, _float32: () => Ns, _float64: () => Ps, _gt: () => tc, _gte: () => nc, _guid: () => rs, _includes: () => _c, _int: () => Ms, _int32: () => Fs, _int64: () => Vs, _intersection: () => Mc, _ipv4: () => gs, _ipv6: () => _s, _isoDate: () => Ds, _isoDateTime: () => Es, _isoDuration: () => ks, _isoTime: () => Os, _jwt: () => ws, _ksuid: () => hs, _lazy: () => Zc, _length: () => pc, _literal: () => zc, _lowercase: () => hc, _lt: () => $s, _lte: () => ec, _mac: () => vs, _map: () => Fc, _max: () => ec, _maxLength: () => dc, _maxSize: () => cc, _mime: () => xc, _min: () => nc, _minLength: () => fc, _minSize: () => lc, _multipleOf: () => sc, _nan: () => Qs, _nanoid: () => us, _nativeEnum: () => Rc, _negative: () => ic, _never: () => Js, _nonnegative: () => oc, _nonoptional: () => Gc, _nonpositive: () => ac, _normalize: () => Cc, _null: () => Gs, _nullable: () => Uc, _number: () => As, _optional: () => Hc, _overwrite: () => Sc, _parse: () => st, _parseAsync: () => lt, _pipe: () => Jc, _positive: () => rc, _promise: () => Qc, _property: () => bc, _readonly: () => Yc, _record: () => Pc, _refine: () => el, _regex: () => mc, _safeDecode: () => Tt, _safeDecodeAsync: () => kt, _safeEncode: () => Ct, _safeEncodeAsync: () => Dt, _safeParse: () => dt, _safeParseAsync: () => pt, _set: () => Ic, _size: () => uc, _slugify: () => Dc, _startsWith: () => vc, _string: () => es, _stringFormat: () => ol, _stringbool: () => al, _success: () => Kc, _superRefine: () => tl, _symbol: () => Us, _templateLiteral: () => Xc, _toLowerCase: () => Tc, _toUpperCase: () => Ec, _transform: () => Vc, _trim: () => wc, _tuple: () => Nc, _uint32: () => Is, _uint64: () => Hs, _ulid: () => ps, _undefined: () => Ws, _union: () => kc, _unknown: () => qs, _uppercase: () => gc, _url: () => cs, _uuid: () => is, _uuidv4: () => as, _uuidv6: () => os, _uuidv7: () => ss, _void: () => Ys, _xid: () => ms, _xor: () => Ac, clone: () => Ee, config: () => p, createStandardJSONSchemaMethod: () => fl, createToJSONSchemaMethod: () => dl, decode: () => vt, decodeAsync: () => St, describe: () => rl, encode: () => gt, encodeAsync: () => bt, extractDefs: () => cl, finalize: () => ll, flattenError: () => nt, formatError: () => rt, globalConfig: () => f, globalRegistry: () => $o, initializeContext: () => sl, isValidBase64: () => Pr, isValidBase64URL: () => Ir, isValidJWT: () => zr, locales: () => qo, meta: () => il, parse: () => ct, parseAsync: () => ut, prettifyError: () => ot, process: () => O, regexes: () => jt, registry: () => Qo, safeDecode: () => Et, safeDecodeAsync: () => At, safeEncode: () => wt, safeEncodeAsync: () => Ot, safeParse: () => ft, safeParseAsync: () => mt, toDotPath: () => at, toJSONSchema: () => eu, treeifyError: () => it, util: () => m, version: () => fr });
4867
+ function iu(e4) {
4858
4868
  return !!e4._zod;
4859
4869
  }
4860
- function iu(e4, t2) {
4861
- return ru(e4) ? ft(e4, t2) : e4.safeParse(t2);
4870
+ function au(e4, t2) {
4871
+ return iu(e4) ? ft(e4, t2) : e4.safeParse(t2);
4862
4872
  }
4863
- function au(e4) {
4873
+ function ou(e4) {
4864
4874
  if (!e4) return;
4865
4875
  let t2;
4866
- if (ru(e4)) {
4876
+ if (iu(e4)) {
4867
4877
  var n2;
4868
4878
  t2 = (n2 = e4._zod) == null || (n2 = n2.def) == null ? void 0 : n2.shape;
4869
4879
  } else t2 = e4.shape;
@@ -4876,8 +4886,8 @@ function au(e4) {
4876
4886
  return t2;
4877
4887
  }
4878
4888
  }
4879
- function ou(e4) {
4880
- if (ru(e4)) {
4889
+ function su(e4) {
4890
+ if (iu(e4)) {
4881
4891
  var t2;
4882
4892
  let n3 = (t2 = e4._zod) == null ? void 0 : t2.def;
4883
4893
  if (n3) {
@@ -4893,42 +4903,42 @@ function ou(e4) {
4893
4903
  let r2 = e4.value;
4894
4904
  if (r2 !== void 0) return r2;
4895
4905
  }
4896
- var su = t({ endsWith: () => vc, gt: () => tc, gte: () => O, includes: () => gc, length: () => fc, lowercase: () => mc, lt: () => $s, lte: () => ec, maxLength: () => uc, maxSize: () => sc, mime: () => bc, minLength: () => dc, minSize: () => cc, multipleOf: () => oc, negative: () => rc, nonnegative: () => ac, nonpositive: () => ic, normalize: () => Sc, overwrite: () => xc, positive: () => nc, property: () => yc, regex: () => pc, size: () => lc, slugify: () => Ec, startsWith: () => _c, toLowerCase: () => wc, toUpperCase: () => Tc, trim: () => Cc, uppercase: () => hc }), cu = t({ ZodISODate: () => du, ZodISODateTime: () => lu, ZodISODuration: () => hu, ZodISOTime: () => pu, date: () => fu, datetime: () => uu, duration: () => gu, time: () => mu }), lu = c("ZodISODateTime", (e4, t2) => {
4897
- Tr.init(e4, t2), M.init(e4, t2);
4906
+ var cu = t({ endsWith: () => yc, gt: () => tc, gte: () => nc, includes: () => _c, length: () => pc, lowercase: () => hc, lt: () => $s, lte: () => ec, maxLength: () => dc, maxSize: () => cc, mime: () => xc, minLength: () => fc, minSize: () => lc, multipleOf: () => sc, negative: () => ic, nonnegative: () => oc, nonpositive: () => ac, normalize: () => Cc, overwrite: () => Sc, positive: () => rc, property: () => bc, regex: () => mc, size: () => uc, slugify: () => Dc, startsWith: () => vc, toLowerCase: () => Tc, toUpperCase: () => Ec, trim: () => wc, uppercase: () => gc }), lu = t({ ZodISODate: () => fu, ZodISODateTime: () => uu, ZodISODuration: () => gu, ZodISOTime: () => mu, date: () => pu, datetime: () => du, duration: () => _u, time: () => hu }), uu = c("ZodISODateTime", (e4, t2) => {
4907
+ Tr.init(e4, t2), j.init(e4, t2);
4898
4908
  });
4899
- function uu(e4) {
4900
- return Es(lu, e4);
4909
+ function du(e4) {
4910
+ return Es(uu, e4);
4901
4911
  }
4902
- var du = c("ZodISODate", (e4, t2) => {
4903
- Er.init(e4, t2), M.init(e4, t2);
4912
+ var fu = c("ZodISODate", (e4, t2) => {
4913
+ Er.init(e4, t2), j.init(e4, t2);
4904
4914
  });
4905
- function fu(e4) {
4906
- return Ds(du, e4);
4915
+ function pu(e4) {
4916
+ return Ds(fu, e4);
4907
4917
  }
4908
- var pu = c("ZodISOTime", (e4, t2) => {
4909
- Dr.init(e4, t2), M.init(e4, t2);
4918
+ var mu = c("ZodISOTime", (e4, t2) => {
4919
+ Dr.init(e4, t2), j.init(e4, t2);
4910
4920
  });
4911
- function mu(e4) {
4912
- return Os(pu, e4);
4921
+ function hu(e4) {
4922
+ return Os(mu, e4);
4913
4923
  }
4914
- var hu = c("ZodISODuration", (e4, t2) => {
4915
- Or.init(e4, t2), M.init(e4, t2);
4924
+ var gu = c("ZodISODuration", (e4, t2) => {
4925
+ Or.init(e4, t2), j.init(e4, t2);
4916
4926
  });
4917
- function gu(e4) {
4918
- return ks(hu, e4);
4927
+ function _u(e4) {
4928
+ return ks(gu, e4);
4919
4929
  }
4920
- var _u = (e4, t2) => {
4930
+ var vu = (e4, t2) => {
4921
4931
  et.init(e4, t2), e4.name = "ZodError", Object.defineProperties(e4, { format: { value: (t3) => rt(e4, t3) }, flatten: { value: (t3) => nt(e4, t3) }, addIssue: { value: (t3) => {
4922
- e4.issues.push(t3), e4.message = JSON.stringify(e4.issues, re, 2);
4932
+ e4.issues.push(t3), e4.message = JSON.stringify(e4.issues, y, 2);
4923
4933
  } }, addIssues: { value: (t3) => {
4924
- e4.issues.push(...t3), e4.message = JSON.stringify(e4.issues, re, 2);
4934
+ e4.issues.push(...t3), e4.message = JSON.stringify(e4.issues, y, 2);
4925
4935
  } }, isEmpty: { get() {
4926
4936
  return e4.issues.length === 0;
4927
4937
  } } });
4928
- }, vu = c("ZodError", _u), yu = c("ZodError", _u, { Parent: Error }), bu = st(yu), xu = lt(yu), Su = dt(yu), Cu = pt(yu), wu = ht(yu), Tu = _t(yu), Eu = yt(yu), Du = xt(yu), Ou = Ct(yu), ku = Tt(yu), Au = Dt(yu), ju = kt(yu), Mu = t({ ZodAny: () => Yd, ZodArray: () => af, ZodBase64: () => _d, ZodBase64URL: () => yd, ZodBigInt: () => Rd, ZodBigIntFormat: () => Bd, ZodBoolean: () => Ld, ZodCIDRv4: () => pd, ZodCIDRv6: () => hd, ZodCUID: () => Zu, ZodCUID2: () => $u, ZodCatch: () => Kf, ZodCodec: () => Qf, ZodCustom: () => up, ZodCustomStringFormat: () => Td, ZodDate: () => nf, ZodDefault: () => Rf, ZodDiscriminatedUnion: () => ff, ZodE164: () => xd, ZodEmail: () => Fu, ZodEmoji: () => qu, ZodEnum: () => Tf, ZodExactOptional: () => Nf, ZodFile: () => Of, ZodFunction: () => cp, ZodGUID: () => Lu, ZodIPv4: () => sd, ZodIPv6: () => dd, ZodIntersection: () => mf, ZodJWT: () => Cd, ZodKSUID: () => ad, ZodLazy: () => ip, ZodLiteral: () => Df, ZodMAC: () => ld, ZodMap: () => xf, ZodNaN: () => Jf, ZodNanoID: () => Yu, ZodNever: () => Qd, ZodNonOptional: () => Hf, ZodNull: () => qd, ZodNullable: () => Ff, ZodNumber: () => Ad, ZodNumberFormat: () => jd, ZodObject: () => sf, ZodOptional: () => Mf, ZodPipe: () => Xf, ZodPrefault: () => Bf, ZodPromise: () => op, ZodReadonly: () => ep, ZodRecord: () => vf, ZodSet: () => Cf, ZodString: () => Pu, ZodStringFormat: () => M, ZodSuccess: () => Wf, ZodSymbol: () => Ud, ZodTemplateLiteral: () => np, ZodTransform: () => Af, ZodTuple: () => gf, ZodType: () => A, ZodULID: () => td, ZodURL: () => Wu, ZodUUID: () => zu, ZodUndefined: () => Gd, ZodUnion: () => lf, ZodUnknown: () => Zd, ZodVoid: () => ef, ZodXID: () => rd, ZodXor: () => uf, _ZodString: () => Nu, _default: () => zf, _function: () => lp, any: () => Xd, array: () => I, base64: () => vd, base64url: () => bd, bigint: () => zd, boolean: () => P, catch: () => qf, check: () => dp, cidrv4: () => md, cidrv6: () => gd, codec: () => $f, cuid: () => Qu, cuid2: () => ed, custom: () => fp, date: () => rf, describe: () => hp, discriminatedUnion: () => pf, e164: () => Sd, email: () => Iu, emoji: () => Ju, enum: () => V, exactOptional: () => Pf, file: () => kf, float32: () => Nd, float64: () => Pd, function: () => lp, guid: () => Ru, hash: () => kd, hex: () => Od, hostname: () => Dd, httpUrl: () => Ku, instanceof: () => _p, int: () => Md, int32: () => Fd, int64: () => Vd, intersection: () => hf, ipv4: () => cd, ipv6: () => fd, json: () => yp, jwt: () => wd, keyof: () => of, ksuid: () => od, lazy: () => ap, literal: () => H, looseObject: () => R, looseRecord: () => bf, mac: () => ud, map: () => Sf, meta: () => gp, nan: () => Yf, nanoid: () => Xu, nativeEnum: () => Ef, never: () => $d, nonoptional: () => Uf, null: () => Jd, nullable: () => If, nullish: () => Lf, number: () => N, object: () => L, optional: () => U, partialRecord: () => yf, pipe: () => Zf, prefault: () => Vf, preprocess: () => bp, promise: () => sp, readonly: () => tp, record: () => B, refine: () => pp, set: () => wf, strictObject: () => cf, string: () => j, stringFormat: () => Ed, stringbool: () => vp, success: () => Gf, superRefine: () => mp, symbol: () => Wd, templateLiteral: () => rp, transform: () => jf, tuple: () => _f, uint32: () => Id, uint64: () => Hd, ulid: () => nd, undefined: () => Kd, union: () => z, unknown: () => F, url: () => Gu, uuid: () => Bu, uuidv4: () => Vu, uuidv6: () => Hu, uuidv7: () => Uu, void: () => tf, xid: () => id, xor: () => df }), A = c("ZodType", (e4, t2) => (E.init(e4, t2), Object.assign(e4["~standard"], { jsonSchema: { input: dl(e4, "input"), output: dl(e4, "output") } }), e4.toJSONSchema = ul(e4, {}), e4.def = t2, e4.type = t2.type, Object.defineProperty(e4, "_def", { value: t2 }), e4.check = (...n2) => {
4938
+ }, yu = c("ZodError", vu), bu = c("ZodError", vu, { Parent: Error }), xu = st(bu), Su = lt(bu), Cu = dt(bu), wu = pt(bu), Tu = ht(bu), Eu = _t(bu), Du = yt(bu), Ou = xt(bu), ku = Ct(bu), Au = Tt(bu), ju = Dt(bu), Mu = kt(bu), Nu = t({ ZodAny: () => Xd, ZodArray: () => of, ZodBase64: () => vd, ZodBase64URL: () => bd, ZodBigInt: () => zd, ZodBigIntFormat: () => Vd, ZodBoolean: () => Rd, ZodCIDRv4: () => md, ZodCIDRv6: () => gd, ZodCUID: () => Qu, ZodCUID2: () => ed, ZodCatch: () => qf, ZodCodec: () => $f, ZodCustom: () => dp, ZodCustomStringFormat: () => Ed, ZodDate: () => rf, ZodDefault: () => zf, ZodDiscriminatedUnion: () => pf, ZodE164: () => Sd, ZodEmail: () => Iu, ZodEmoji: () => Ju, ZodEnum: () => Ef, ZodExactOptional: () => Pf, ZodFile: () => kf, ZodFunction: () => lp, ZodGUID: () => Ru, ZodIPv4: () => cd, ZodIPv6: () => fd, ZodIntersection: () => hf, ZodJWT: () => wd, ZodKSUID: () => od, ZodLazy: () => ap, ZodLiteral: () => Of, ZodMAC: () => ud, ZodMap: () => Sf, ZodNaN: () => Yf, ZodNanoID: () => Xu, ZodNever: () => $d, ZodNonOptional: () => Uf, ZodNull: () => Jd, ZodNullable: () => If, ZodNumber: () => jd, ZodNumberFormat: () => Md, ZodObject: () => cf, ZodOptional: () => Nf, ZodPipe: () => Zf, ZodPrefault: () => Vf, ZodPromise: () => sp, ZodReadonly: () => tp, ZodRecord: () => yf, ZodSet: () => wf, ZodString: () => Fu, ZodStringFormat: () => j, ZodSuccess: () => Gf, ZodSymbol: () => Wd, ZodTemplateLiteral: () => rp, ZodTransform: () => jf, ZodTuple: () => _f, ZodType: () => k, ZodULID: () => nd, ZodURL: () => Gu, ZodUUID: () => Bu, ZodUndefined: () => Kd, ZodUnion: () => uf, ZodUnknown: () => Qd, ZodVoid: () => tf, ZodXID: () => id, ZodXor: () => df, _ZodString: () => Pu, _default: () => Bf, _function: () => up, any: () => Zd, array: () => F, base64: () => yd, base64url: () => xd, bigint: () => Bd, boolean: () => N, catch: () => Jf, check: () => fp, cidrv4: () => hd, cidrv6: () => _d, codec: () => ep, cuid: () => $u, cuid2: () => td, custom: () => pp, date: () => af, describe: () => gp, discriminatedUnion: () => mf, e164: () => Cd, email: () => Lu, emoji: () => Yu, enum: () => B, exactOptional: () => Ff, file: () => Af, float32: () => Pd, float64: () => Fd, function: () => up, guid: () => zu, hash: () => Ad, hex: () => kd, hostname: () => Od, httpUrl: () => qu, instanceof: () => vp, int: () => Nd, int32: () => Id, int64: () => Hd, intersection: () => gf, ipv4: () => ld, ipv6: () => pd, json: () => bp, jwt: () => Td, keyof: () => sf, ksuid: () => sd, lazy: () => op, literal: () => V, looseObject: () => L, looseRecord: () => xf, mac: () => dd, map: () => Cf, meta: () => _p, nan: () => Xf, nanoid: () => Zu, nativeEnum: () => Df, never: () => ef, nonoptional: () => Wf, null: () => Yd, nullable: () => Lf, nullish: () => Rf, number: () => M, object: () => I, optional: () => H, partialRecord: () => bf, pipe: () => Qf, prefault: () => Hf, preprocess: () => xp, promise: () => cp, readonly: () => np, record: () => z, refine: () => mp, set: () => Tf, strictObject: () => lf, string: () => A, stringFormat: () => Dd, stringbool: () => yp, success: () => Kf, superRefine: () => hp, symbol: () => Gd, templateLiteral: () => ip, transform: () => Mf, tuple: () => vf, uint32: () => Ld, uint64: () => Ud, ulid: () => rd, undefined: () => qd, union: () => R, unknown: () => P, url: () => Ku, uuid: () => Vu, uuidv4: () => Hu, uuidv6: () => Uu, uuidv7: () => Wu, void: () => nf, xid: () => ad, xor: () => ff }), k = c("ZodType", (e4, t2) => (E.init(e4, t2), Object.assign(e4["~standard"], { jsonSchema: { input: fl(e4, "input"), output: fl(e4, "output") } }), e4.toJSONSchema = dl(e4, {}), e4.def = t2, e4.type = t2.type, Object.defineProperty(e4, "_def", { value: t2 }), e4.check = (...n2) => {
4929
4939
  var r2;
4930
- return e4.clone(x(t2, { checks: [...(r2 = t2.checks) == null ? [] : r2, ...n2.map((e5) => typeof e5 == "function" ? { _zod: { check: e5, def: { check: "custom" }, onattach: [] } } : e5)] }), { parent: true });
4931
- }, e4.with = e4.check, e4.clone = (t3, n2) => Ee(e4, t3, n2), e4.brand = () => e4, e4.register = ((t3, n2) => (t3.add(e4, n2), e4)), e4.parse = (t3, n2) => bu(e4, t3, n2, { callee: e4.parse }), e4.safeParse = (t3, n2) => Su(e4, t3, n2), e4.parseAsync = async (t3, n2) => xu(e4, t3, n2, { callee: e4.parseAsync }), e4.safeParseAsync = async (t3, n2) => Cu(e4, t3, n2), e4.spa = e4.safeParseAsync, e4.encode = (t3, n2) => wu(e4, t3, n2), e4.decode = (t3, n2) => Tu(e4, t3, n2), e4.encodeAsync = async (t3, n2) => Eu(e4, t3, n2), e4.decodeAsync = async (t3, n2) => Du(e4, t3, n2), e4.safeEncode = (t3, n2) => Ou(e4, t3, n2), e4.safeDecode = (t3, n2) => ku(e4, t3, n2), e4.safeEncodeAsync = async (t3, n2) => Au(e4, t3, n2), e4.safeDecodeAsync = async (t3, n2) => ju(e4, t3, n2), e4.refine = (t3, n2) => e4.check(pp(t3, n2)), e4.superRefine = (t3) => e4.check(mp(t3)), e4.overwrite = (t3) => e4.check(xc(t3)), e4.optional = () => U(e4), e4.exactOptional = () => Pf(e4), e4.nullable = () => If(e4), e4.nullish = () => U(If(e4)), e4.nonoptional = (t3) => Uf(e4, t3), e4.array = () => I(e4), e4.or = (t3) => z([e4, t3]), e4.and = (t3) => hf(e4, t3), e4.transform = (t3) => Zf(e4, jf(t3)), e4.default = (t3) => zf(e4, t3), e4.prefault = (t3) => Vf(e4, t3), e4.catch = (t3) => qf(e4, t3), e4.pipe = (t3) => Zf(e4, t3), e4.readonly = () => tp(e4), e4.describe = (t3) => {
4940
+ return e4.clone(le(t2, { checks: [...(r2 = t2.checks) == null ? [] : r2, ...n2.map((e5) => typeof e5 == "function" ? { _zod: { check: e5, def: { check: "custom" }, onattach: [] } } : e5)] }), { parent: true });
4941
+ }, e4.with = e4.check, e4.clone = (t3, n2) => Ee(e4, t3, n2), e4.brand = () => e4, e4.register = ((t3, n2) => (t3.add(e4, n2), e4)), e4.parse = (t3, n2) => xu(e4, t3, n2, { callee: e4.parse }), e4.safeParse = (t3, n2) => Cu(e4, t3, n2), e4.parseAsync = async (t3, n2) => Su(e4, t3, n2, { callee: e4.parseAsync }), e4.safeParseAsync = async (t3, n2) => wu(e4, t3, n2), e4.spa = e4.safeParseAsync, e4.encode = (t3, n2) => Tu(e4, t3, n2), e4.decode = (t3, n2) => Eu(e4, t3, n2), e4.encodeAsync = async (t3, n2) => Du(e4, t3, n2), e4.decodeAsync = async (t3, n2) => Ou(e4, t3, n2), e4.safeEncode = (t3, n2) => ku(e4, t3, n2), e4.safeDecode = (t3, n2) => Au(e4, t3, n2), e4.safeEncodeAsync = async (t3, n2) => ju(e4, t3, n2), e4.safeDecodeAsync = async (t3, n2) => Mu(e4, t3, n2), e4.refine = (t3, n2) => e4.check(mp(t3, n2)), e4.superRefine = (t3) => e4.check(hp(t3)), e4.overwrite = (t3) => e4.check(Sc(t3)), e4.optional = () => H(e4), e4.exactOptional = () => Ff(e4), e4.nullable = () => Lf(e4), e4.nullish = () => H(Lf(e4)), e4.nonoptional = (t3) => Wf(e4, t3), e4.array = () => F(e4), e4.or = (t3) => R([e4, t3]), e4.and = (t3) => gf(e4, t3), e4.transform = (t3) => Qf(e4, Mf(t3)), e4.default = (t3) => Bf(e4, t3), e4.prefault = (t3) => Hf(e4, t3), e4.catch = (t3) => Jf(e4, t3), e4.pipe = (t3) => Qf(e4, t3), e4.readonly = () => np(e4), e4.describe = (t3) => {
4932
4942
  let n2 = e4.clone();
4933
4943
  return $o.add(n2, { description: t3 }), n2;
4934
4944
  }, Object.defineProperty(e4, "description", { get() {
@@ -4938,386 +4948,386 @@ var _u = (e4, t2) => {
4938
4948
  if (t3.length === 0) return $o.get(e4);
4939
4949
  let n2 = e4.clone();
4940
4950
  return $o.add(n2, t3[0]), n2;
4941
- }, e4.isOptional = () => e4.safeParse(void 0).success, e4.isNullable = () => e4.safeParse(null).success, e4.apply = (t3) => t3(e4), e4)), Nu = c("_ZodString", (e4, t2) => {
4951
+ }, e4.isOptional = () => e4.safeParse(void 0).success, e4.isNullable = () => e4.safeParse(null).success, e4.apply = (t3) => t3(e4), e4)), Pu = c("_ZodString", (e4, t2) => {
4942
4952
  var n2, r2, i2;
4943
- pr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => pl(e4, t3, n3, r3);
4953
+ pr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => ml(e4, t3, n3, r3);
4944
4954
  let a2 = e4._zod.bag;
4945
- e4.format = (n2 = a2.format) == null ? null : n2, e4.minLength = (r2 = a2.minimum) == null ? null : r2, e4.maxLength = (i2 = a2.maximum) == null ? null : i2, e4.regex = (...t3) => e4.check(pc(...t3)), e4.includes = (...t3) => e4.check(gc(...t3)), e4.startsWith = (...t3) => e4.check(_c(...t3)), e4.endsWith = (...t3) => e4.check(vc(...t3)), e4.min = (...t3) => e4.check(dc(...t3)), e4.max = (...t3) => e4.check(uc(...t3)), e4.length = (...t3) => e4.check(fc(...t3)), e4.nonempty = (...t3) => e4.check(dc(1, ...t3)), e4.lowercase = (t3) => e4.check(mc(t3)), e4.uppercase = (t3) => e4.check(hc(t3)), e4.trim = () => e4.check(Cc()), e4.normalize = (...t3) => e4.check(Sc(...t3)), e4.toLowerCase = () => e4.check(wc()), e4.toUpperCase = () => e4.check(Tc()), e4.slugify = () => e4.check(Ec());
4946
- }), Pu = c("ZodString", (e4, t2) => {
4947
- pr.init(e4, t2), Nu.init(e4, t2), e4.email = (t3) => e4.check(ns(Fu, t3)), e4.url = (t3) => e4.check(cs(Wu, t3)), e4.jwt = (t3) => e4.check(ws(Cd, t3)), e4.emoji = (t3) => e4.check(ls(qu, t3)), e4.guid = (t3) => e4.check(rs(Lu, t3)), e4.uuid = (t3) => e4.check(is(zu, t3)), e4.uuidv4 = (t3) => e4.check(as(zu, t3)), e4.uuidv6 = (t3) => e4.check(os(zu, t3)), e4.uuidv7 = (t3) => e4.check(ss(zu, t3)), e4.nanoid = (t3) => e4.check(us(Yu, t3)), e4.guid = (t3) => e4.check(rs(Lu, t3)), e4.cuid = (t3) => e4.check(ds(Zu, t3)), e4.cuid2 = (t3) => e4.check(fs($u, t3)), e4.ulid = (t3) => e4.check(ps(td, t3)), e4.base64 = (t3) => e4.check(xs(_d, t3)), e4.base64url = (t3) => e4.check(Ss(yd, t3)), e4.xid = (t3) => e4.check(ms(rd, t3)), e4.ksuid = (t3) => e4.check(hs(ad, t3)), e4.ipv4 = (t3) => e4.check(gs(sd, t3)), e4.ipv6 = (t3) => e4.check(_s(dd, t3)), e4.cidrv4 = (t3) => e4.check(ys(pd, t3)), e4.cidrv6 = (t3) => e4.check(bs(hd, t3)), e4.e164 = (t3) => e4.check(Cs(xd, t3)), e4.datetime = (t3) => e4.check(uu(t3)), e4.date = (t3) => e4.check(fu(t3)), e4.time = (t3) => e4.check(mu(t3)), e4.duration = (t3) => e4.check(gu(t3));
4955
+ e4.format = (n2 = a2.format) == null ? null : n2, e4.minLength = (r2 = a2.minimum) == null ? null : r2, e4.maxLength = (i2 = a2.maximum) == null ? null : i2, e4.regex = (...t3) => e4.check(mc(...t3)), e4.includes = (...t3) => e4.check(_c(...t3)), e4.startsWith = (...t3) => e4.check(vc(...t3)), e4.endsWith = (...t3) => e4.check(yc(...t3)), e4.min = (...t3) => e4.check(fc(...t3)), e4.max = (...t3) => e4.check(dc(...t3)), e4.length = (...t3) => e4.check(pc(...t3)), e4.nonempty = (...t3) => e4.check(fc(1, ...t3)), e4.lowercase = (t3) => e4.check(hc(t3)), e4.uppercase = (t3) => e4.check(gc(t3)), e4.trim = () => e4.check(wc()), e4.normalize = (...t3) => e4.check(Cc(...t3)), e4.toLowerCase = () => e4.check(Tc()), e4.toUpperCase = () => e4.check(Ec()), e4.slugify = () => e4.check(Dc());
4956
+ }), Fu = c("ZodString", (e4, t2) => {
4957
+ pr.init(e4, t2), Pu.init(e4, t2), e4.email = (t3) => e4.check(ns(Iu, t3)), e4.url = (t3) => e4.check(cs(Gu, t3)), e4.jwt = (t3) => e4.check(ws(wd, t3)), e4.emoji = (t3) => e4.check(ls(Ju, t3)), e4.guid = (t3) => e4.check(rs(Ru, t3)), e4.uuid = (t3) => e4.check(is(Bu, t3)), e4.uuidv4 = (t3) => e4.check(as(Bu, t3)), e4.uuidv6 = (t3) => e4.check(os(Bu, t3)), e4.uuidv7 = (t3) => e4.check(ss(Bu, t3)), e4.nanoid = (t3) => e4.check(us(Xu, t3)), e4.guid = (t3) => e4.check(rs(Ru, t3)), e4.cuid = (t3) => e4.check(ds(Qu, t3)), e4.cuid2 = (t3) => e4.check(fs(ed, t3)), e4.ulid = (t3) => e4.check(ps(nd, t3)), e4.base64 = (t3) => e4.check(xs(vd, t3)), e4.base64url = (t3) => e4.check(Ss(bd, t3)), e4.xid = (t3) => e4.check(ms(id, t3)), e4.ksuid = (t3) => e4.check(hs(od, t3)), e4.ipv4 = (t3) => e4.check(gs(cd, t3)), e4.ipv6 = (t3) => e4.check(_s(fd, t3)), e4.cidrv4 = (t3) => e4.check(ys(md, t3)), e4.cidrv6 = (t3) => e4.check(bs(gd, t3)), e4.e164 = (t3) => e4.check(Cs(Sd, t3)), e4.datetime = (t3) => e4.check(du(t3)), e4.date = (t3) => e4.check(pu(t3)), e4.time = (t3) => e4.check(hu(t3)), e4.duration = (t3) => e4.check(_u(t3));
4948
4958
  });
4949
- function j(e4) {
4950
- return es(Pu, e4);
4959
+ function A(e4) {
4960
+ return es(Fu, e4);
4951
4961
  }
4952
- var M = c("ZodStringFormat", (e4, t2) => {
4953
- D.init(e4, t2), Nu.init(e4, t2);
4954
- }), Fu = c("ZodEmail", (e4, t2) => {
4955
- gr.init(e4, t2), M.init(e4, t2);
4962
+ var j = c("ZodStringFormat", (e4, t2) => {
4963
+ D.init(e4, t2), Pu.init(e4, t2);
4964
+ }), Iu = c("ZodEmail", (e4, t2) => {
4965
+ gr.init(e4, t2), j.init(e4, t2);
4956
4966
  });
4957
- function Iu(e4) {
4958
- return ns(Fu, e4);
4967
+ function Lu(e4) {
4968
+ return ns(Iu, e4);
4959
4969
  }
4960
- var Lu = c("ZodGUID", (e4, t2) => {
4961
- mr.init(e4, t2), M.init(e4, t2);
4970
+ var Ru = c("ZodGUID", (e4, t2) => {
4971
+ mr.init(e4, t2), j.init(e4, t2);
4962
4972
  });
4963
- function Ru(e4) {
4964
- return rs(Lu, e4);
4973
+ function zu(e4) {
4974
+ return rs(Ru, e4);
4965
4975
  }
4966
- var zu = c("ZodUUID", (e4, t2) => {
4967
- hr.init(e4, t2), M.init(e4, t2);
4976
+ var Bu = c("ZodUUID", (e4, t2) => {
4977
+ hr.init(e4, t2), j.init(e4, t2);
4968
4978
  });
4969
- function Bu(e4) {
4970
- return is(zu, e4);
4971
- }
4972
4979
  function Vu(e4) {
4973
- return as(zu, e4);
4980
+ return is(Bu, e4);
4974
4981
  }
4975
4982
  function Hu(e4) {
4976
- return os(zu, e4);
4983
+ return as(Bu, e4);
4977
4984
  }
4978
4985
  function Uu(e4) {
4979
- return ss(zu, e4);
4986
+ return os(Bu, e4);
4980
4987
  }
4981
- var Wu = c("ZodURL", (e4, t2) => {
4982
- _r.init(e4, t2), M.init(e4, t2);
4983
- });
4984
- function Gu(e4) {
4985
- return cs(Wu, e4);
4988
+ function Wu(e4) {
4989
+ return ss(Bu, e4);
4986
4990
  }
4991
+ var Gu = c("ZodURL", (e4, t2) => {
4992
+ _r.init(e4, t2), j.init(e4, t2);
4993
+ });
4987
4994
  function Ku(e4) {
4988
- return cs(Wu, { protocol: /^https?$/, hostname: cn, ...S(e4) });
4995
+ return cs(Gu, e4);
4989
4996
  }
4990
- var qu = c("ZodEmoji", (e4, t2) => {
4991
- vr.init(e4, t2), M.init(e4, t2);
4992
- });
4993
- function Ju(e4) {
4994
- return ls(qu, e4);
4997
+ function qu(e4) {
4998
+ return cs(Gu, { protocol: /^https?$/, hostname: cn, ...S(e4) });
4995
4999
  }
4996
- var Yu = c("ZodNanoID", (e4, t2) => {
4997
- yr.init(e4, t2), M.init(e4, t2);
5000
+ var Ju = c("ZodEmoji", (e4, t2) => {
5001
+ vr.init(e4, t2), j.init(e4, t2);
4998
5002
  });
4999
- function Xu(e4) {
5000
- return us(Yu, e4);
5003
+ function Yu(e4) {
5004
+ return ls(Ju, e4);
5001
5005
  }
5002
- var Zu = c("ZodCUID", (e4, t2) => {
5003
- br.init(e4, t2), M.init(e4, t2);
5006
+ var Xu = c("ZodNanoID", (e4, t2) => {
5007
+ yr.init(e4, t2), j.init(e4, t2);
5004
5008
  });
5005
- function Qu(e4) {
5006
- return ds(Zu, e4);
5009
+ function Zu(e4) {
5010
+ return us(Xu, e4);
5007
5011
  }
5008
- var $u = c("ZodCUID2", (e4, t2) => {
5009
- xr.init(e4, t2), M.init(e4, t2);
5012
+ var Qu = c("ZodCUID", (e4, t2) => {
5013
+ br.init(e4, t2), j.init(e4, t2);
5010
5014
  });
5011
- function ed(e4) {
5012
- return fs($u, e4);
5015
+ function $u(e4) {
5016
+ return ds(Qu, e4);
5013
5017
  }
5014
- var td = c("ZodULID", (e4, t2) => {
5015
- Sr.init(e4, t2), M.init(e4, t2);
5018
+ var ed = c("ZodCUID2", (e4, t2) => {
5019
+ xr.init(e4, t2), j.init(e4, t2);
5016
5020
  });
5017
- function nd(e4) {
5018
- return ps(td, e4);
5021
+ function td(e4) {
5022
+ return fs(ed, e4);
5019
5023
  }
5020
- var rd = c("ZodXID", (e4, t2) => {
5021
- Cr.init(e4, t2), M.init(e4, t2);
5024
+ var nd = c("ZodULID", (e4, t2) => {
5025
+ Sr.init(e4, t2), j.init(e4, t2);
5022
5026
  });
5023
- function id(e4) {
5024
- return ms(rd, e4);
5027
+ function rd(e4) {
5028
+ return ps(nd, e4);
5025
5029
  }
5026
- var ad = c("ZodKSUID", (e4, t2) => {
5027
- wr.init(e4, t2), M.init(e4, t2);
5030
+ var id = c("ZodXID", (e4, t2) => {
5031
+ Cr.init(e4, t2), j.init(e4, t2);
5028
5032
  });
5029
- function od(e4) {
5030
- return hs(ad, e4);
5033
+ function ad(e4) {
5034
+ return ms(id, e4);
5031
5035
  }
5032
- var sd = c("ZodIPv4", (e4, t2) => {
5033
- kr.init(e4, t2), M.init(e4, t2);
5036
+ var od = c("ZodKSUID", (e4, t2) => {
5037
+ wr.init(e4, t2), j.init(e4, t2);
5034
5038
  });
5035
- function cd(e4) {
5036
- return gs(sd, e4);
5039
+ function sd(e4) {
5040
+ return hs(od, e4);
5037
5041
  }
5038
- var ld = c("ZodMAC", (e4, t2) => {
5039
- jr.init(e4, t2), M.init(e4, t2);
5042
+ var cd = c("ZodIPv4", (e4, t2) => {
5043
+ kr.init(e4, t2), j.init(e4, t2);
5040
5044
  });
5041
- function ud(e4) {
5042
- return vs(ld, e4);
5045
+ function ld(e4) {
5046
+ return gs(cd, e4);
5043
5047
  }
5044
- var dd = c("ZodIPv6", (e4, t2) => {
5045
- Ar.init(e4, t2), M.init(e4, t2);
5048
+ var ud = c("ZodMAC", (e4, t2) => {
5049
+ jr.init(e4, t2), j.init(e4, t2);
5046
5050
  });
5047
- function fd(e4) {
5048
- return _s(dd, e4);
5051
+ function dd(e4) {
5052
+ return vs(ud, e4);
5049
5053
  }
5050
- var pd = c("ZodCIDRv4", (e4, t2) => {
5051
- Mr.init(e4, t2), M.init(e4, t2);
5054
+ var fd = c("ZodIPv6", (e4, t2) => {
5055
+ Ar.init(e4, t2), j.init(e4, t2);
5052
5056
  });
5053
- function md(e4) {
5054
- return ys(pd, e4);
5057
+ function pd(e4) {
5058
+ return _s(fd, e4);
5055
5059
  }
5056
- var hd = c("ZodCIDRv6", (e4, t2) => {
5057
- Nr.init(e4, t2), M.init(e4, t2);
5060
+ var md = c("ZodCIDRv4", (e4, t2) => {
5061
+ Mr.init(e4, t2), j.init(e4, t2);
5058
5062
  });
5059
- function gd(e4) {
5060
- return bs(hd, e4);
5063
+ function hd(e4) {
5064
+ return ys(md, e4);
5061
5065
  }
5062
- var _d = c("ZodBase64", (e4, t2) => {
5063
- Fr.init(e4, t2), M.init(e4, t2);
5066
+ var gd = c("ZodCIDRv6", (e4, t2) => {
5067
+ Nr.init(e4, t2), j.init(e4, t2);
5064
5068
  });
5065
- function vd(e4) {
5066
- return xs(_d, e4);
5069
+ function _d(e4) {
5070
+ return bs(gd, e4);
5067
5071
  }
5068
- var yd = c("ZodBase64URL", (e4, t2) => {
5069
- Lr.init(e4, t2), M.init(e4, t2);
5072
+ var vd = c("ZodBase64", (e4, t2) => {
5073
+ Fr.init(e4, t2), j.init(e4, t2);
5070
5074
  });
5071
- function bd(e4) {
5072
- return Ss(yd, e4);
5075
+ function yd(e4) {
5076
+ return xs(vd, e4);
5073
5077
  }
5074
- var xd = c("ZodE164", (e4, t2) => {
5075
- Rr.init(e4, t2), M.init(e4, t2);
5078
+ var bd = c("ZodBase64URL", (e4, t2) => {
5079
+ Lr.init(e4, t2), j.init(e4, t2);
5076
5080
  });
5077
- function Sd(e4) {
5078
- return Cs(xd, e4);
5081
+ function xd(e4) {
5082
+ return Ss(bd, e4);
5079
5083
  }
5080
- var Cd = c("ZodJWT", (e4, t2) => {
5081
- Br.init(e4, t2), M.init(e4, t2);
5084
+ var Sd = c("ZodE164", (e4, t2) => {
5085
+ Rr.init(e4, t2), j.init(e4, t2);
5082
5086
  });
5083
- function wd(e4) {
5084
- return ws(Cd, e4);
5087
+ function Cd(e4) {
5088
+ return Cs(Sd, e4);
5085
5089
  }
5086
- var Td = c("ZodCustomStringFormat", (e4, t2) => {
5087
- Vr.init(e4, t2), M.init(e4, t2);
5090
+ var wd = c("ZodJWT", (e4, t2) => {
5091
+ Br.init(e4, t2), j.init(e4, t2);
5088
5092
  });
5089
- function Ed(e4, t2, n2 = {}) {
5090
- return al(Td, e4, t2, n2);
5093
+ function Td(e4) {
5094
+ return ws(wd, e4);
5091
5095
  }
5092
- function Dd(e4) {
5093
- return al(Td, "hostname", sn, e4);
5096
+ var Ed = c("ZodCustomStringFormat", (e4, t2) => {
5097
+ Vr.init(e4, t2), j.init(e4, t2);
5098
+ });
5099
+ function Dd(e4, t2, n2 = {}) {
5100
+ return ol(Ed, e4, t2, n2);
5094
5101
  }
5095
5102
  function Od(e4) {
5096
- return al(Td, "hex", wn, e4);
5103
+ return ol(Ed, "hostname", sn, e4);
5104
+ }
5105
+ function kd(e4) {
5106
+ return ol(Ed, "hex", wn, e4);
5097
5107
  }
5098
- function kd(e4, t2) {
5108
+ function Ad(e4, t2) {
5099
5109
  var n2;
5100
5110
  let r2 = "".concat(e4, "_").concat((n2 = t2 == null ? void 0 : t2.enc) == null ? "hex" : n2), i2 = jt[r2];
5101
5111
  if (!i2) throw Error("Unrecognized hash format: ".concat(r2));
5102
- return al(Td, r2, i2, t2);
5112
+ return ol(Ed, r2, i2, t2);
5103
5113
  }
5104
- var Ad = c("ZodNumber", (e4, t2) => {
5114
+ var jd = c("ZodNumber", (e4, t2) => {
5105
5115
  var n2, r2, i2, a2, o2, s2, c2, l2, u2;
5106
- Hr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => ml(e4, t3, n3, r3), e4.gt = (t3, n3) => e4.check(tc(t3, n3)), e4.gte = (t3, n3) => e4.check(O(t3, n3)), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.lt = (t3, n3) => e4.check($s(t3, n3)), e4.lte = (t3, n3) => e4.check(ec(t3, n3)), e4.max = (t3, n3) => e4.check(ec(t3, n3)), e4.int = (t3) => e4.check(Md(t3)), e4.safe = (t3) => e4.check(Md(t3)), e4.positive = (t3) => e4.check(tc(0, t3)), e4.nonnegative = (t3) => e4.check(O(0, t3)), e4.negative = (t3) => e4.check($s(0, t3)), e4.nonpositive = (t3) => e4.check(ec(0, t3)), e4.multipleOf = (t3, n3) => e4.check(oc(t3, n3)), e4.step = (t3, n3) => e4.check(oc(t3, n3)), e4.finite = () => e4;
5116
+ Hr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => hl(e4, t3, n3, r3), e4.gt = (t3, n3) => e4.check(tc(t3, n3)), e4.gte = (t3, n3) => e4.check(nc(t3, n3)), e4.min = (t3, n3) => e4.check(nc(t3, n3)), e4.lt = (t3, n3) => e4.check($s(t3, n3)), e4.lte = (t3, n3) => e4.check(ec(t3, n3)), e4.max = (t3, n3) => e4.check(ec(t3, n3)), e4.int = (t3) => e4.check(Nd(t3)), e4.safe = (t3) => e4.check(Nd(t3)), e4.positive = (t3) => e4.check(tc(0, t3)), e4.nonnegative = (t3) => e4.check(nc(0, t3)), e4.negative = (t3) => e4.check($s(0, t3)), e4.nonpositive = (t3) => e4.check(ec(0, t3)), e4.multipleOf = (t3, n3) => e4.check(sc(t3, n3)), e4.step = (t3, n3) => e4.check(sc(t3, n3)), e4.finite = () => e4;
5107
5117
  let d2 = e4._zod.bag;
5108
5118
  e4.minValue = (n2 = Math.max((r2 = d2.minimum) == null ? -1 / 0 : r2, (i2 = d2.exclusiveMinimum) == null ? -1 / 0 : i2)) == null ? null : n2, e4.maxValue = (a2 = Math.min((o2 = d2.maximum) == null ? 1 / 0 : o2, (s2 = d2.exclusiveMaximum) == null ? 1 / 0 : s2)) == null ? null : a2, e4.isInt = ((c2 = d2.format) == null ? "" : c2).includes("int") || Number.isSafeInteger((l2 = d2.multipleOf) == null ? 0.5 : l2), e4.isFinite = true, e4.format = (u2 = d2.format) == null ? null : u2;
5109
5119
  });
5110
- function N(e4) {
5111
- return As(Ad, e4);
5120
+ function M(e4) {
5121
+ return As(jd, e4);
5112
5122
  }
5113
- var jd = c("ZodNumberFormat", (e4, t2) => {
5114
- Ur.init(e4, t2), Ad.init(e4, t2);
5123
+ var Md = c("ZodNumberFormat", (e4, t2) => {
5124
+ Ur.init(e4, t2), jd.init(e4, t2);
5115
5125
  });
5116
- function Md(e4) {
5117
- return Ms(jd, e4);
5118
- }
5119
5126
  function Nd(e4) {
5120
- return Ns(jd, e4);
5127
+ return Ms(Md, e4);
5121
5128
  }
5122
5129
  function Pd(e4) {
5123
- return Ps(jd, e4);
5130
+ return Ns(Md, e4);
5124
5131
  }
5125
5132
  function Fd(e4) {
5126
- return Fs(jd, e4);
5133
+ return Ps(Md, e4);
5127
5134
  }
5128
5135
  function Id(e4) {
5129
- return Is(jd, e4);
5136
+ return Fs(Md, e4);
5130
5137
  }
5131
- var Ld = c("ZodBoolean", (e4, t2) => {
5132
- Wr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => hl(e4, t3, n2, r2);
5138
+ function Ld(e4) {
5139
+ return Is(Md, e4);
5140
+ }
5141
+ var Rd = c("ZodBoolean", (e4, t2) => {
5142
+ Wr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => gl(e4, t3, n2, r2);
5133
5143
  });
5134
- function P(e4) {
5135
- return Ls(Ld, e4);
5144
+ function N(e4) {
5145
+ return Ls(Rd, e4);
5136
5146
  }
5137
- var Rd = c("ZodBigInt", (e4, t2) => {
5147
+ var zd = c("ZodBigInt", (e4, t2) => {
5138
5148
  var n2, r2, i2;
5139
- Gr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => gl(e4, t3, n3, r3), e4.gte = (t3, n3) => e4.check(O(t3, n3)), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.gt = (t3, n3) => e4.check(tc(t3, n3)), e4.gte = (t3, n3) => e4.check(O(t3, n3)), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.lt = (t3, n3) => e4.check($s(t3, n3)), e4.lte = (t3, n3) => e4.check(ec(t3, n3)), e4.max = (t3, n3) => e4.check(ec(t3, n3)), e4.positive = (t3) => e4.check(tc(BigInt(0), t3)), e4.negative = (t3) => e4.check($s(BigInt(0), t3)), e4.nonpositive = (t3) => e4.check(ec(BigInt(0), t3)), e4.nonnegative = (t3) => e4.check(O(BigInt(0), t3)), e4.multipleOf = (t3, n3) => e4.check(oc(t3, n3));
5149
+ Gr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r3) => _l(e4, t3, n3, r3), e4.gte = (t3, n3) => e4.check(nc(t3, n3)), e4.min = (t3, n3) => e4.check(nc(t3, n3)), e4.gt = (t3, n3) => e4.check(tc(t3, n3)), e4.gte = (t3, n3) => e4.check(nc(t3, n3)), e4.min = (t3, n3) => e4.check(nc(t3, n3)), e4.lt = (t3, n3) => e4.check($s(t3, n3)), e4.lte = (t3, n3) => e4.check(ec(t3, n3)), e4.max = (t3, n3) => e4.check(ec(t3, n3)), e4.positive = (t3) => e4.check(tc(BigInt(0), t3)), e4.negative = (t3) => e4.check($s(BigInt(0), t3)), e4.nonpositive = (t3) => e4.check(ec(BigInt(0), t3)), e4.nonnegative = (t3) => e4.check(nc(BigInt(0), t3)), e4.multipleOf = (t3, n3) => e4.check(sc(t3, n3));
5140
5150
  let a2 = e4._zod.bag;
5141
5151
  e4.minValue = (n2 = a2.minimum) == null ? null : n2, e4.maxValue = (r2 = a2.maximum) == null ? null : r2, e4.format = (i2 = a2.format) == null ? null : i2;
5142
5152
  });
5143
- function zd(e4) {
5144
- return zs(Rd, e4);
5153
+ function Bd(e4) {
5154
+ return zs(zd, e4);
5145
5155
  }
5146
- var Bd = c("ZodBigIntFormat", (e4, t2) => {
5147
- Kr.init(e4, t2), Rd.init(e4, t2);
5156
+ var Vd = c("ZodBigIntFormat", (e4, t2) => {
5157
+ Kr.init(e4, t2), zd.init(e4, t2);
5148
5158
  });
5149
- function Vd(e4) {
5150
- return Vs(Bd, e4);
5151
- }
5152
5159
  function Hd(e4) {
5153
- return Hs(Bd, e4);
5160
+ return Vs(Vd, e4);
5161
+ }
5162
+ function Ud(e4) {
5163
+ return Hs(Vd, e4);
5154
5164
  }
5155
- var Ud = c("ZodSymbol", (e4, t2) => {
5156
- qr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => _l(e4, t3, n2, r2);
5165
+ var Wd = c("ZodSymbol", (e4, t2) => {
5166
+ qr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => vl(e4, t3, n2, r2);
5157
5167
  });
5158
- function Wd(e4) {
5159
- return Us(Ud, e4);
5168
+ function Gd(e4) {
5169
+ return Us(Wd, e4);
5160
5170
  }
5161
- var Gd = c("ZodUndefined", (e4, t2) => {
5162
- Jr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => yl(e4, t3, n2, r2);
5171
+ var Kd = c("ZodUndefined", (e4, t2) => {
5172
+ Jr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => bl(e4, t3, n2, r2);
5163
5173
  });
5164
- function Kd(e4) {
5165
- return Ws(Gd, e4);
5174
+ function qd(e4) {
5175
+ return Ws(Kd, e4);
5166
5176
  }
5167
- var qd = c("ZodNull", (e4, t2) => {
5168
- Yr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => vl(e4, t3, n2, r2);
5177
+ var Jd = c("ZodNull", (e4, t2) => {
5178
+ Yr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => yl(e4, t3, n2, r2);
5169
5179
  });
5170
- function Jd(e4) {
5171
- return Gs(qd, e4);
5180
+ function Yd(e4) {
5181
+ return Gs(Jd, e4);
5172
5182
  }
5173
- var Yd = c("ZodAny", (e4, t2) => {
5174
- Xr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
5183
+ var Xd = c("ZodAny", (e4, t2) => {
5184
+ Xr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
5175
5185
  });
5176
- function Xd() {
5177
- return Ks(Yd);
5186
+ function Zd() {
5187
+ return Ks(Xd);
5178
5188
  }
5179
- var Zd = c("ZodUnknown", (e4, t2) => {
5180
- Zr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
5189
+ var Qd = c("ZodUnknown", (e4, t2) => {
5190
+ Zr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (e5, t3, n2) => void 0;
5181
5191
  });
5182
- function F() {
5183
- return qs(Zd);
5192
+ function P() {
5193
+ return qs(Qd);
5184
5194
  }
5185
- var Qd = c("ZodNever", (e4, t2) => {
5186
- Qr.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => xl(e4, t3, n2, r2);
5195
+ var $d = c("ZodNever", (e4, t2) => {
5196
+ Qr.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Sl(e4, t3, n2, r2);
5187
5197
  });
5188
- function $d(e4) {
5189
- return Js(Qd, e4);
5198
+ function ef(e4) {
5199
+ return Js($d, e4);
5190
5200
  }
5191
- var ef = c("ZodVoid", (e4, t2) => {
5192
- $r.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => bl(e4, t3, n2, r2);
5201
+ var tf = c("ZodVoid", (e4, t2) => {
5202
+ $r.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => xl(e4, t3, n2, r2);
5193
5203
  });
5194
- function tf(e4) {
5195
- return Ys(ef, e4);
5204
+ function nf(e4) {
5205
+ return Ys(tf, e4);
5196
5206
  }
5197
- var nf = c("ZodDate", (e4, t2) => {
5198
- ei.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => wl(e4, t3, n3, r2), e4.min = (t3, n3) => e4.check(O(t3, n3)), e4.max = (t3, n3) => e4.check(ec(t3, n3));
5207
+ var rf = c("ZodDate", (e4, t2) => {
5208
+ ei.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => Tl(e4, t3, n3, r2), e4.min = (t3, n3) => e4.check(nc(t3, n3)), e4.max = (t3, n3) => e4.check(ec(t3, n3));
5199
5209
  let n2 = e4._zod.bag;
5200
5210
  e4.minDate = n2.minimum ? new Date(n2.minimum) : null, e4.maxDate = n2.maximum ? new Date(n2.maximum) : null;
5201
5211
  });
5202
- function rf(e4) {
5203
- return Xs(nf, e4);
5212
+ function af(e4) {
5213
+ return Xs(rf, e4);
5204
5214
  }
5205
- var af = c("ZodArray", (e4, t2) => {
5206
- ni.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Il(e4, t3, n2, r2), e4.element = t2.element, e4.min = (t3, n2) => e4.check(dc(t3, n2)), e4.nonempty = (t3) => e4.check(dc(1, t3)), e4.max = (t3, n2) => e4.check(uc(t3, n2)), e4.length = (t3, n2) => e4.check(fc(t3, n2)), e4.unwrap = () => e4.element;
5215
+ var of = c("ZodArray", (e4, t2) => {
5216
+ ni.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ll(e4, t3, n2, r2), e4.element = t2.element, e4.min = (t3, n2) => e4.check(fc(t3, n2)), e4.nonempty = (t3) => e4.check(fc(1, t3)), e4.max = (t3, n2) => e4.check(dc(t3, n2)), e4.length = (t3, n2) => e4.check(pc(t3, n2)), e4.unwrap = () => e4.element;
5207
5217
  });
5208
- function I(e4, t2) {
5209
- return Dc(af, e4, t2);
5218
+ function F(e4, t2) {
5219
+ return Oc(of, e4, t2);
5210
5220
  }
5211
- function of(e4) {
5221
+ function sf(e4) {
5212
5222
  let t2 = e4._zod.def.shape;
5213
- return V(Object.keys(t2));
5223
+ return B(Object.keys(t2));
5214
5224
  }
5215
- var sf = c("ZodObject", (e4, t2) => {
5216
- si.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ll(e4, t3, n2, r2), y(e4, "shape", () => t2.shape), e4.keyof = () => V(Object.keys(e4._zod.def.shape)), e4.catchall = (t3) => e4.clone({ ...e4._zod.def, catchall: t3 }), e4.passthrough = () => e4.clone({ ...e4._zod.def, catchall: F() }), e4.loose = () => e4.clone({ ...e4._zod.def, catchall: F() }), e4.strict = () => e4.clone({ ...e4._zod.def, catchall: $d() }), e4.strip = () => e4.clone({ ...e4._zod.def, catchall: void 0 }), e4.extend = (t3) => Ne(e4, t3), e4.safeExtend = (t3) => Pe(e4, t3), e4.merge = (t3) => Fe(e4, t3), e4.pick = (t3) => je(e4, t3), e4.omit = (t3) => Me(e4, t3), e4.partial = (...t3) => Ie(Mf, e4, t3[0]), e4.required = (...t3) => Le(Hf, e4, t3[0]);
5225
+ var cf = c("ZodObject", (e4, t2) => {
5226
+ si.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Rl(e4, t3, n2, r2), x(e4, "shape", () => t2.shape), e4.keyof = () => B(Object.keys(e4._zod.def.shape)), e4.catchall = (t3) => e4.clone({ ...e4._zod.def, catchall: t3 }), e4.passthrough = () => e4.clone({ ...e4._zod.def, catchall: P() }), e4.loose = () => e4.clone({ ...e4._zod.def, catchall: P() }), e4.strict = () => e4.clone({ ...e4._zod.def, catchall: ef() }), e4.strip = () => e4.clone({ ...e4._zod.def, catchall: void 0 }), e4.extend = (t3) => Ne(e4, t3), e4.safeExtend = (t3) => Pe(e4, t3), e4.merge = (t3) => Fe(e4, t3), e4.pick = (t3) => je(e4, t3), e4.omit = (t3) => Me(e4, t3), e4.partial = (...t3) => Ie(Nf, e4, t3[0]), e4.required = (...t3) => Le(Uf, e4, t3[0]);
5217
5227
  });
5218
- function L(e4, t2) {
5219
- return new sf({ type: "object", shape: e4 == null ? {} : e4, ...S(t2) });
5228
+ function I(e4, t2) {
5229
+ return new cf({ type: "object", shape: e4 == null ? {} : e4, ...S(t2) });
5220
5230
  }
5221
- function cf(e4, t2) {
5222
- return new sf({ type: "object", shape: e4, catchall: $d(), ...S(t2) });
5231
+ function lf(e4, t2) {
5232
+ return new cf({ type: "object", shape: e4, catchall: ef(), ...S(t2) });
5223
5233
  }
5224
- function R(e4, t2) {
5225
- return new sf({ type: "object", shape: e4, catchall: F(), ...S(t2) });
5234
+ function L(e4, t2) {
5235
+ return new cf({ type: "object", shape: e4, catchall: P(), ...S(t2) });
5226
5236
  }
5227
- var lf = c("ZodUnion", (e4, t2) => {
5228
- li.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Rl(e4, t3, n2, r2), e4.options = t2.options;
5237
+ var uf = c("ZodUnion", (e4, t2) => {
5238
+ li.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => zl(e4, t3, n2, r2), e4.options = t2.options;
5229
5239
  });
5230
- function z(e4, t2) {
5231
- return new lf({ type: "union", options: e4, ...S(t2) });
5240
+ function R(e4, t2) {
5241
+ return new uf({ type: "union", options: e4, ...S(t2) });
5232
5242
  }
5233
- var uf = c("ZodXor", (e4, t2) => {
5234
- lf.init(e4, t2), di.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Rl(e4, t3, n2, r2), e4.options = t2.options;
5243
+ var df = c("ZodXor", (e4, t2) => {
5244
+ uf.init(e4, t2), di.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => zl(e4, t3, n2, r2), e4.options = t2.options;
5235
5245
  });
5236
- function df(e4, t2) {
5237
- return new uf({ type: "union", options: e4, inclusive: false, ...S(t2) });
5246
+ function ff(e4, t2) {
5247
+ return new df({ type: "union", options: e4, inclusive: false, ...S(t2) });
5238
5248
  }
5239
- var ff = c("ZodDiscriminatedUnion", (e4, t2) => {
5240
- lf.init(e4, t2), fi.init(e4, t2);
5249
+ var pf = c("ZodDiscriminatedUnion", (e4, t2) => {
5250
+ uf.init(e4, t2), fi.init(e4, t2);
5241
5251
  });
5242
- function pf(e4, t2, n2) {
5243
- return new ff({ type: "union", options: t2, discriminator: e4, ...S(n2) });
5252
+ function mf(e4, t2, n2) {
5253
+ return new pf({ type: "union", options: t2, discriminator: e4, ...S(n2) });
5244
5254
  }
5245
- var mf = c("ZodIntersection", (e4, t2) => {
5246
- pi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => zl(e4, t3, n2, r2);
5255
+ var hf = c("ZodIntersection", (e4, t2) => {
5256
+ pi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Bl(e4, t3, n2, r2);
5247
5257
  });
5248
- function hf(e4, t2) {
5249
- return new mf({ type: "intersection", left: e4, right: t2 });
5258
+ function gf(e4, t2) {
5259
+ return new hf({ type: "intersection", left: e4, right: t2 });
5250
5260
  }
5251
- var gf = c("ZodTuple", (e4, t2) => {
5252
- gi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Bl(e4, t3, n2, r2), e4.rest = (t3) => e4.clone({ ...e4._zod.def, rest: t3 });
5261
+ var _f = c("ZodTuple", (e4, t2) => {
5262
+ gi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Vl(e4, t3, n2, r2), e4.rest = (t3) => e4.clone({ ...e4._zod.def, rest: t3 });
5253
5263
  });
5254
- function _f(e4, t2, n2) {
5264
+ function vf(e4, t2, n2) {
5255
5265
  let r2 = t2 instanceof E;
5256
- return new gf({ type: "tuple", items: e4, rest: r2 ? t2 : null, ...S(r2 ? n2 : t2) });
5266
+ return new _f({ type: "tuple", items: e4, rest: r2 ? t2 : null, ...S(r2 ? n2 : t2) });
5257
5267
  }
5258
- var vf = c("ZodRecord", (e4, t2) => {
5259
- vi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Vl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType;
5268
+ var yf = c("ZodRecord", (e4, t2) => {
5269
+ vi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Hl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType;
5260
5270
  });
5261
- function B(e4, t2, n2) {
5262
- return new vf({ type: "record", keyType: e4, valueType: t2, ...S(n2) });
5271
+ function z(e4, t2, n2) {
5272
+ return new yf({ type: "record", keyType: e4, valueType: t2, ...S(n2) });
5263
5273
  }
5264
- function yf(e4, t2, n2) {
5274
+ function bf(e4, t2, n2) {
5265
5275
  let r2 = Ee(e4);
5266
- return r2._zod.values = void 0, new vf({ type: "record", keyType: r2, valueType: t2, ...S(n2) });
5276
+ return r2._zod.values = void 0, new yf({ type: "record", keyType: r2, valueType: t2, ...S(n2) });
5267
5277
  }
5268
- function bf(e4, t2, n2) {
5269
- return new vf({ type: "record", keyType: e4, valueType: t2, mode: "loose", ...S(n2) });
5278
+ function xf(e4, t2, n2) {
5279
+ return new yf({ type: "record", keyType: e4, valueType: t2, mode: "loose", ...S(n2) });
5270
5280
  }
5271
- var xf = c("ZodMap", (e4, t2) => {
5272
- yi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Pl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType, e4.min = (...t3) => e4.check(cc(...t3)), e4.nonempty = (t3) => e4.check(cc(1, t3)), e4.max = (...t3) => e4.check(sc(...t3)), e4.size = (...t3) => e4.check(lc(...t3));
5281
+ var Sf = c("ZodMap", (e4, t2) => {
5282
+ yi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Fl(e4, t3, n2, r2), e4.keyType = t2.keyType, e4.valueType = t2.valueType, e4.min = (...t3) => e4.check(lc(...t3)), e4.nonempty = (t3) => e4.check(lc(1, t3)), e4.max = (...t3) => e4.check(cc(...t3)), e4.size = (...t3) => e4.check(uc(...t3));
5273
5283
  });
5274
- function Sf(e4, t2, n2) {
5275
- return new xf({ type: "map", keyType: e4, valueType: t2, ...S(n2) });
5284
+ function Cf(e4, t2, n2) {
5285
+ return new Sf({ type: "map", keyType: e4, valueType: t2, ...S(n2) });
5276
5286
  }
5277
- var Cf = c("ZodSet", (e4, t2) => {
5278
- xi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Fl(e4, t3, n2, r2), e4.min = (...t3) => e4.check(cc(...t3)), e4.nonempty = (t3) => e4.check(cc(1, t3)), e4.max = (...t3) => e4.check(sc(...t3)), e4.size = (...t3) => e4.check(lc(...t3));
5287
+ var wf = c("ZodSet", (e4, t2) => {
5288
+ xi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Il(e4, t3, n2, r2), e4.min = (...t3) => e4.check(lc(...t3)), e4.nonempty = (t3) => e4.check(lc(1, t3)), e4.max = (...t3) => e4.check(cc(...t3)), e4.size = (...t3) => e4.check(uc(...t3));
5279
5289
  });
5280
- function wf(e4, t2) {
5281
- return new Cf({ type: "set", valueType: e4, ...S(t2) });
5290
+ function Tf(e4, t2) {
5291
+ return new wf({ type: "set", valueType: e4, ...S(t2) });
5282
5292
  }
5283
- var Tf = c("ZodEnum", (e4, t2) => {
5284
- Ci.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => Tl(e4, t3, n3, r2), e4.enum = t2.entries, e4.options = Object.values(t2.entries);
5293
+ var Ef = c("ZodEnum", (e4, t2) => {
5294
+ Ci.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n3, r2) => El(e4, t3, n3, r2), e4.enum = t2.entries, e4.options = Object.values(t2.entries);
5285
5295
  let n2 = new Set(Object.keys(t2.entries));
5286
5296
  e4.extract = (e5, r2) => {
5287
5297
  let i2 = {};
5288
5298
  for (let r3 of e5) if (n2.has(r3)) i2[r3] = t2.entries[r3];
5289
5299
  else throw Error("Key ".concat(r3, " not found in enum"));
5290
- return new Tf({ ...t2, checks: [], ...S(r2), entries: i2 });
5300
+ return new Ef({ ...t2, checks: [], ...S(r2), entries: i2 });
5291
5301
  }, e4.exclude = (e5, r2) => {
5292
5302
  let i2 = { ...t2.entries };
5293
5303
  for (let t3 of e5) if (n2.has(t3)) delete i2[t3];
5294
5304
  else throw Error("Key ".concat(t3, " not found in enum"));
5295
- return new Tf({ ...t2, checks: [], ...S(r2), entries: i2 });
5305
+ return new Ef({ ...t2, checks: [], ...S(r2), entries: i2 });
5296
5306
  };
5297
5307
  });
5298
- function V(e4, t2) {
5299
- return new Tf({ type: "enum", entries: Array.isArray(e4) ? Object.fromEntries(e4.map((e5) => [e5, e5])) : e4, ...S(t2) });
5308
+ function B(e4, t2) {
5309
+ return new Ef({ type: "enum", entries: Array.isArray(e4) ? Object.fromEntries(e4.map((e5) => [e5, e5])) : e4, ...S(t2) });
5300
5310
  }
5301
- function Ef(e4, t2) {
5302
- return new Tf({ type: "enum", entries: e4, ...S(t2) });
5311
+ function Df(e4, t2) {
5312
+ return new Ef({ type: "enum", entries: e4, ...S(t2) });
5303
5313
  }
5304
- var Df = c("ZodLiteral", (e4, t2) => {
5305
- wi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => El(e4, t3, n2, r2), e4.values = new Set(t2.values), Object.defineProperty(e4, "value", { get() {
5314
+ var Of = c("ZodLiteral", (e4, t2) => {
5315
+ wi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Dl(e4, t3, n2, r2), e4.values = new Set(t2.values), Object.defineProperty(e4, "value", { get() {
5306
5316
  if (t2.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
5307
5317
  return t2.values[0];
5308
5318
  } });
5309
5319
  });
5310
- function H(e4, t2) {
5311
- return new Df({ type: "literal", values: Array.isArray(e4) ? e4 : [e4], ...S(t2) });
5320
+ function V(e4, t2) {
5321
+ return new Of({ type: "literal", values: Array.isArray(e4) ? e4 : [e4], ...S(t2) });
5312
5322
  }
5313
- var Of = c("ZodFile", (e4, t2) => {
5314
- Ti.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => kl(e4, t3, n2, r2), e4.min = (t3, n2) => e4.check(cc(t3, n2)), e4.max = (t3, n2) => e4.check(sc(t3, n2)), e4.mime = (t3, n2) => e4.check(bc(Array.isArray(t3) ? t3 : [t3], n2));
5323
+ var kf = c("ZodFile", (e4, t2) => {
5324
+ Ti.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Al(e4, t3, n2, r2), e4.min = (t3, n2) => e4.check(lc(t3, n2)), e4.max = (t3, n2) => e4.check(cc(t3, n2)), e4.mime = (t3, n2) => e4.check(xc(Array.isArray(t3) ? t3 : [t3], n2));
5315
5325
  });
5316
- function kf(e4) {
5317
- return zc(Of, e4);
5326
+ function Af(e4) {
5327
+ return Bc(kf, e4);
5318
5328
  }
5319
- var Af = c("ZodTransform", (e4, t2) => {
5320
- Ei.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Nl(e4, t3, n2, r2), e4._zod.parse = (n2, r2) => {
5329
+ var jf = c("ZodTransform", (e4, t2) => {
5330
+ Ei.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Pl(e4, t3, n2, r2), e4._zod.parse = (n2, r2) => {
5321
5331
  if (r2.direction === "backward") throw new d(e4.constructor.name);
5322
5332
  n2.addIssue = (r3) => {
5323
5333
  if (typeof r3 == "string") n2.issues.push(We(r3, n2.value, t2));
@@ -5330,132 +5340,132 @@ var Af = c("ZodTransform", (e4, t2) => {
5330
5340
  return i2 instanceof Promise ? i2.then((e5) => (n2.value = e5, n2)) : (n2.value = i2, n2);
5331
5341
  };
5332
5342
  });
5333
- function jf(e4) {
5334
- return new Af({ type: "transform", transform: e4 });
5335
- }
5336
- var Mf = c("ZodOptional", (e4, t2) => {
5337
- Oi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Xl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5338
- });
5339
- function U(e4) {
5340
- return new Mf({ type: "optional", innerType: e4 });
5343
+ function Mf(e4) {
5344
+ return new jf({ type: "transform", transform: e4 });
5341
5345
  }
5342
- var Nf = c("ZodExactOptional", (e4, t2) => {
5343
- ki.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Xl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5346
+ var Nf = c("ZodOptional", (e4, t2) => {
5347
+ Oi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Zl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5344
5348
  });
5345
- function Pf(e4) {
5349
+ function H(e4) {
5346
5350
  return new Nf({ type: "optional", innerType: e4 });
5347
5351
  }
5348
- var Ff = c("ZodNullable", (e4, t2) => {
5349
- Ai.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Hl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5352
+ var Pf = c("ZodExactOptional", (e4, t2) => {
5353
+ ki.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Zl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5350
5354
  });
5351
- function If(e4) {
5352
- return new Ff({ type: "nullable", innerType: e4 });
5355
+ function Ff(e4) {
5356
+ return new Pf({ type: "optional", innerType: e4 });
5353
5357
  }
5358
+ var If = c("ZodNullable", (e4, t2) => {
5359
+ Ai.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ul(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5360
+ });
5354
5361
  function Lf(e4) {
5355
- return U(If(e4));
5362
+ return new If({ type: "nullable", innerType: e4 });
5356
5363
  }
5357
- var Rf = c("ZodDefault", (e4, t2) => {
5358
- ji.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Wl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeDefault = e4.unwrap;
5364
+ function Rf(e4) {
5365
+ return H(Lf(e4));
5366
+ }
5367
+ var zf = c("ZodDefault", (e4, t2) => {
5368
+ ji.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Gl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeDefault = e4.unwrap;
5359
5369
  });
5360
- function zf(e4, t2) {
5361
- return new Rf({ type: "default", innerType: e4, get defaultValue() {
5370
+ function Bf(e4, t2) {
5371
+ return new zf({ type: "default", innerType: e4, get defaultValue() {
5362
5372
  return typeof t2 == "function" ? t2() : be(t2);
5363
5373
  } });
5364
5374
  }
5365
- var Bf = c("ZodPrefault", (e4, t2) => {
5366
- Ni.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Gl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5375
+ var Vf = c("ZodPrefault", (e4, t2) => {
5376
+ Ni.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Kl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5367
5377
  });
5368
- function Vf(e4, t2) {
5369
- return new Bf({ type: "prefault", innerType: e4, get defaultValue() {
5378
+ function Hf(e4, t2) {
5379
+ return new Vf({ type: "prefault", innerType: e4, get defaultValue() {
5370
5380
  return typeof t2 == "function" ? t2() : be(t2);
5371
5381
  } });
5372
5382
  }
5373
- var Hf = c("ZodNonOptional", (e4, t2) => {
5374
- Pi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ul(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5383
+ var Uf = c("ZodNonOptional", (e4, t2) => {
5384
+ Pi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Wl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5375
5385
  });
5376
- function Uf(e4, t2) {
5377
- return new Hf({ type: "nonoptional", innerType: e4, ...S(t2) });
5386
+ function Wf(e4, t2) {
5387
+ return new Uf({ type: "nonoptional", innerType: e4, ...S(t2) });
5378
5388
  }
5379
- var Wf = c("ZodSuccess", (e4, t2) => {
5380
- Ii.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Al(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5389
+ var Gf = c("ZodSuccess", (e4, t2) => {
5390
+ Ii.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => jl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5381
5391
  });
5382
- function Gf(e4) {
5383
- return new Wf({ type: "success", innerType: e4 });
5392
+ function Kf(e4) {
5393
+ return new Gf({ type: "success", innerType: e4 });
5384
5394
  }
5385
- var Kf = c("ZodCatch", (e4, t2) => {
5386
- Li.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Kl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeCatch = e4.unwrap;
5395
+ var qf = c("ZodCatch", (e4, t2) => {
5396
+ Li.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => ql(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType, e4.removeCatch = e4.unwrap;
5387
5397
  });
5388
- function qf(e4, t2) {
5389
- return new Kf({ type: "catch", innerType: e4, catchValue: typeof t2 == "function" ? t2 : () => t2 });
5398
+ function Jf(e4, t2) {
5399
+ return new qf({ type: "catch", innerType: e4, catchValue: typeof t2 == "function" ? t2 : () => t2 });
5390
5400
  }
5391
- var Jf = c("ZodNaN", (e4, t2) => {
5392
- Ri.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Dl(e4, t3, n2, r2);
5401
+ var Yf = c("ZodNaN", (e4, t2) => {
5402
+ Ri.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ol(e4, t3, n2, r2);
5393
5403
  });
5394
- function Yf(e4) {
5395
- return Qs(Jf, e4);
5404
+ function Xf(e4) {
5405
+ return Qs(Yf, e4);
5396
5406
  }
5397
- var Xf = c("ZodPipe", (e4, t2) => {
5398
- zi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => ql(e4, t3, n2, r2), e4.in = t2.in, e4.out = t2.out;
5407
+ var Zf = c("ZodPipe", (e4, t2) => {
5408
+ zi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Jl(e4, t3, n2, r2), e4.in = t2.in, e4.out = t2.out;
5399
5409
  });
5400
- function Zf(e4, t2) {
5401
- return new Xf({ type: "pipe", in: e4, out: t2 });
5410
+ function Qf(e4, t2) {
5411
+ return new Zf({ type: "pipe", in: e4, out: t2 });
5402
5412
  }
5403
- var Qf = c("ZodCodec", (e4, t2) => {
5404
- Xf.init(e4, t2), Vi.init(e4, t2);
5413
+ var $f = c("ZodCodec", (e4, t2) => {
5414
+ Zf.init(e4, t2), Vi.init(e4, t2);
5405
5415
  });
5406
- function $f(e4, t2, n2) {
5407
- return new Qf({ type: "pipe", in: e4, out: t2, transform: n2.decode, reverseTransform: n2.encode });
5416
+ function ep(e4, t2, n2) {
5417
+ return new $f({ type: "pipe", in: e4, out: t2, transform: n2.decode, reverseTransform: n2.encode });
5408
5418
  }
5409
- var ep = c("ZodReadonly", (e4, t2) => {
5410
- Wi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Jl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5419
+ var tp = c("ZodReadonly", (e4, t2) => {
5420
+ Wi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Yl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5411
5421
  });
5412
- function tp(e4) {
5413
- return new ep({ type: "readonly", innerType: e4 });
5422
+ function np(e4) {
5423
+ return new tp({ type: "readonly", innerType: e4 });
5414
5424
  }
5415
- var np = c("ZodTemplateLiteral", (e4, t2) => {
5416
- Ki.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ol(e4, t3, n2, r2);
5425
+ var rp = c("ZodTemplateLiteral", (e4, t2) => {
5426
+ Ki.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => kl(e4, t3, n2, r2);
5417
5427
  });
5418
- function rp(e4, t2) {
5419
- return new np({ type: "template_literal", parts: e4, ...S(t2) });
5428
+ function ip(e4, t2) {
5429
+ return new rp({ type: "template_literal", parts: e4, ...S(t2) });
5420
5430
  }
5421
- var ip = c("ZodLazy", (e4, t2) => {
5422
- Yi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Zl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.getter();
5431
+ var ap = c("ZodLazy", (e4, t2) => {
5432
+ Yi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ql(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.getter();
5423
5433
  });
5424
- function ap(e4) {
5425
- return new ip({ type: "lazy", getter: e4 });
5434
+ function op(e4) {
5435
+ return new ap({ type: "lazy", getter: e4 });
5426
5436
  }
5427
- var op = c("ZodPromise", (e4, t2) => {
5428
- Ji.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Yl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5437
+ var sp = c("ZodPromise", (e4, t2) => {
5438
+ Ji.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Xl(e4, t3, n2, r2), e4.unwrap = () => e4._zod.def.innerType;
5429
5439
  });
5430
- function sp(e4) {
5431
- return new op({ type: "promise", innerType: e4 });
5440
+ function cp(e4) {
5441
+ return new sp({ type: "promise", innerType: e4 });
5432
5442
  }
5433
- var cp = c("ZodFunction", (e4, t2) => {
5434
- qi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ml(e4, t3, n2, r2);
5443
+ var lp = c("ZodFunction", (e4, t2) => {
5444
+ qi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Nl(e4, t3, n2, r2);
5435
5445
  });
5436
- function lp(e4) {
5446
+ function up(e4) {
5437
5447
  var t2, n2;
5438
- return new cp({ type: "function", input: Array.isArray(e4 == null ? void 0 : e4.input) ? _f(e4 == null ? void 0 : e4.input) : (t2 = e4 == null ? void 0 : e4.input) == null ? I(F()) : t2, output: (n2 = e4 == null ? void 0 : e4.output) == null ? F() : n2 });
5448
+ return new lp({ type: "function", input: Array.isArray(e4 == null ? void 0 : e4.input) ? vf(e4 == null ? void 0 : e4.input) : (t2 = e4 == null ? void 0 : e4.input) == null ? F(P()) : t2, output: (n2 = e4 == null ? void 0 : e4.output) == null ? P() : n2 });
5439
5449
  }
5440
- var up = c("ZodCustom", (e4, t2) => {
5441
- Xi.init(e4, t2), A.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => jl(e4, t3, n2, r2);
5450
+ var dp = c("ZodCustom", (e4, t2) => {
5451
+ Xi.init(e4, t2), k.init(e4, t2), e4._zod.processJSONSchema = (t3, n2, r2) => Ml(e4, t3, n2, r2);
5442
5452
  });
5443
- function dp(e4) {
5453
+ function fp(e4) {
5444
5454
  let t2 = new T({ check: "custom" });
5445
5455
  return t2._zod.check = e4, t2;
5446
5456
  }
5447
- function fp(e4, t2) {
5448
- return Qc(up, e4 == null ? (() => true) : e4, t2);
5457
+ function pp(e4, t2) {
5458
+ return $c(dp, e4 == null ? (() => true) : e4, t2);
5449
5459
  }
5450
- function pp(e4, t2 = {}) {
5451
- return $c(up, e4, t2);
5460
+ function mp(e4, t2 = {}) {
5461
+ return el(dp, e4, t2);
5452
5462
  }
5453
- function mp(e4) {
5454
- return el(e4);
5463
+ function hp(e4) {
5464
+ return tl(e4);
5455
5465
  }
5456
- var hp = nl, gp = rl;
5457
- function _p(e4, t2 = {}) {
5458
- let n2 = new up({ type: "custom", check: "custom", fn: (t3) => t3 instanceof e4, abort: true, ...S(t2) });
5466
+ var gp = rl, _p = il;
5467
+ function vp(e4, t2 = {}) {
5468
+ let n2 = new dp({ type: "custom", check: "custom", fn: (t3) => t3 instanceof e4, abort: true, ...S(t2) });
5459
5469
  return n2._zod.bag.Class = e4, n2._zod.check = (t3) => {
5460
5470
  if (!(t3.value instanceof e4)) {
5461
5471
  var r2;
@@ -5463,30 +5473,30 @@ function _p(e4, t2 = {}) {
5463
5473
  }
5464
5474
  }, n2;
5465
5475
  }
5466
- var vp = (...e4) => il({ Codec: Qf, Boolean: Ld, String: Pu }, ...e4);
5467
- function yp(e4) {
5468
- let t2 = ap(() => z([j(e4), N(), P(), Jd(), I(t2), B(j(), t2)]));
5476
+ var yp = (...e4) => al({ Codec: $f, Boolean: Rd, String: Fu }, ...e4);
5477
+ function bp(e4) {
5478
+ let t2 = op(() => R([A(e4), M(), N(), Yd(), F(t2), z(A(), t2)]));
5469
5479
  return t2;
5470
5480
  }
5471
- function bp(e4, t2) {
5472
- return Zf(jf(e4), t2);
5481
+ function xp(e4, t2) {
5482
+ return Qf(Mf(e4), t2);
5473
5483
  }
5474
- var xp = { invalid_type: "invalid_type", too_big: "too_big", too_small: "too_small", invalid_format: "invalid_format", not_multiple_of: "not_multiple_of", unrecognized_keys: "unrecognized_keys", invalid_union: "invalid_union", invalid_key: "invalid_key", invalid_element: "invalid_element", invalid_value: "invalid_value", custom: "custom" };
5475
- function Sp(e4) {
5484
+ var Sp = { invalid_type: "invalid_type", too_big: "too_big", too_small: "too_small", invalid_format: "invalid_format", not_multiple_of: "not_multiple_of", unrecognized_keys: "unrecognized_keys", invalid_union: "invalid_union", invalid_key: "invalid_key", invalid_element: "invalid_element", invalid_value: "invalid_value", custom: "custom" };
5485
+ function Cp(e4) {
5476
5486
  p({ customError: e4 });
5477
5487
  }
5478
- function Cp() {
5488
+ function wp() {
5479
5489
  return p().customError;
5480
5490
  }
5481
- var wp;
5491
+ var Tp;
5482
5492
  /* @__PURE__ */ (function(e4) {
5483
- })(wp || (wp = {}));
5484
- var W = { ...Mu, ...su, iso: cu }, Tp = new Set("$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly".split("."));
5485
- function Ep(e4, t2) {
5493
+ })(Tp || (Tp = {}));
5494
+ var U = { ...Nu, ...cu, iso: lu }, Ep = new Set("$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly".split("."));
5495
+ function Dp(e4, t2) {
5486
5496
  let n2 = e4.$schema;
5487
5497
  return n2 === "https://json-schema.org/draft/2020-12/schema" ? "draft-2020-12" : n2 === "http://json-schema.org/draft-07/schema#" ? "draft-7" : n2 === "http://json-schema.org/draft-04/schema#" ? "draft-4" : t2 == null ? "draft-2020-12" : t2;
5488
5498
  }
5489
- function Dp(e4, t2) {
5499
+ function Op(e4, t2) {
5490
5500
  if (!e4.startsWith("#")) throw Error("External $ref is not supported, only local refs (#/...) are allowed");
5491
5501
  let n2 = e4.slice(1).split("/").filter(Boolean);
5492
5502
  if (n2.length === 0) return t2.rootSchema;
@@ -5498,9 +5508,9 @@ function Dp(e4, t2) {
5498
5508
  }
5499
5509
  throw Error("Reference not found: ".concat(e4));
5500
5510
  }
5501
- function Op(e4, t2) {
5511
+ function kp(e4, t2) {
5502
5512
  if (e4.not !== void 0) {
5503
- if (typeof e4.not == "object" && Object.keys(e4.not).length === 0) return W.never();
5513
+ if (typeof e4.not == "object" && Object.keys(e4.not).length === 0) return U.never();
5504
5514
  throw Error("not is not supported in Zod (except { not: {} } for never)");
5505
5515
  }
5506
5516
  if (e4.unevaluatedItems !== void 0) throw Error("unevaluatedItems is not supported");
@@ -5510,101 +5520,101 @@ function Op(e4, t2) {
5510
5520
  if (e4.$ref) {
5511
5521
  let n3 = e4.$ref;
5512
5522
  if (t2.refs.has(n3)) return t2.refs.get(n3);
5513
- if (t2.processing.has(n3)) return W.lazy(() => {
5523
+ if (t2.processing.has(n3)) return U.lazy(() => {
5514
5524
  if (!t2.refs.has(n3)) throw Error("Circular reference not resolved: ".concat(n3));
5515
5525
  return t2.refs.get(n3);
5516
5526
  });
5517
5527
  t2.processing.add(n3);
5518
- let r3 = G(Dp(n3, t2), t2);
5528
+ let r3 = W(Op(n3, t2), t2);
5519
5529
  return t2.refs.set(n3, r3), t2.processing.delete(n3), r3;
5520
5530
  }
5521
5531
  if (e4.enum !== void 0) {
5522
5532
  let n3 = e4.enum;
5523
- if (t2.version === "openapi-3.0" && e4.nullable === true && n3.length === 1 && n3[0] === null) return W.null();
5524
- if (n3.length === 0) return W.never();
5525
- if (n3.length === 1) return W.literal(n3[0]);
5526
- if (n3.every((e5) => typeof e5 == "string")) return W.enum(n3);
5527
- let r3 = n3.map((e5) => W.literal(e5));
5528
- return r3.length < 2 ? r3[0] : W.union([r3[0], r3[1], ...r3.slice(2)]);
5529
- }
5530
- if (e4.const !== void 0) return W.literal(e4.const);
5533
+ if (t2.version === "openapi-3.0" && e4.nullable === true && n3.length === 1 && n3[0] === null) return U.null();
5534
+ if (n3.length === 0) return U.never();
5535
+ if (n3.length === 1) return U.literal(n3[0]);
5536
+ if (n3.every((e5) => typeof e5 == "string")) return U.enum(n3);
5537
+ let r3 = n3.map((e5) => U.literal(e5));
5538
+ return r3.length < 2 ? r3[0] : U.union([r3[0], r3[1], ...r3.slice(2)]);
5539
+ }
5540
+ if (e4.const !== void 0) return U.literal(e4.const);
5531
5541
  let n2 = e4.type;
5532
5542
  if (Array.isArray(n2)) {
5533
- let r3 = n2.map((n3) => Op({ ...e4, type: n3 }, t2));
5534
- return r3.length === 0 ? W.never() : r3.length === 1 ? r3[0] : W.union(r3);
5543
+ let r3 = n2.map((n3) => kp({ ...e4, type: n3 }, t2));
5544
+ return r3.length === 0 ? U.never() : r3.length === 1 ? r3[0] : U.union(r3);
5535
5545
  }
5536
- if (!n2) return W.any();
5546
+ if (!n2) return U.any();
5537
5547
  let r2;
5538
5548
  switch (n2) {
5539
5549
  case "string": {
5540
- let t3 = W.string();
5550
+ let t3 = U.string();
5541
5551
  if (e4.format) {
5542
5552
  let n3 = e4.format;
5543
- n3 === "email" ? t3 = t3.check(W.email()) : n3 === "uri" || n3 === "uri-reference" ? t3 = t3.check(W.url()) : n3 === "uuid" || n3 === "guid" ? t3 = t3.check(W.uuid()) : n3 === "date-time" ? t3 = t3.check(W.iso.datetime()) : n3 === "date" ? t3 = t3.check(W.iso.date()) : n3 === "time" ? t3 = t3.check(W.iso.time()) : n3 === "duration" ? t3 = t3.check(W.iso.duration()) : n3 === "ipv4" ? t3 = t3.check(W.ipv4()) : n3 === "ipv6" ? t3 = t3.check(W.ipv6()) : n3 === "mac" ? t3 = t3.check(W.mac()) : n3 === "cidr" ? t3 = t3.check(W.cidrv4()) : n3 === "cidr-v6" ? t3 = t3.check(W.cidrv6()) : n3 === "base64" ? t3 = t3.check(W.base64()) : n3 === "base64url" ? t3 = t3.check(W.base64url()) : n3 === "e164" ? t3 = t3.check(W.e164()) : n3 === "jwt" ? t3 = t3.check(W.jwt()) : n3 === "emoji" ? t3 = t3.check(W.emoji()) : n3 === "nanoid" ? t3 = t3.check(W.nanoid()) : n3 === "cuid" ? t3 = t3.check(W.cuid()) : n3 === "cuid2" ? t3 = t3.check(W.cuid2()) : n3 === "ulid" ? t3 = t3.check(W.ulid()) : n3 === "xid" ? t3 = t3.check(W.xid()) : n3 === "ksuid" && (t3 = t3.check(W.ksuid()));
5553
+ n3 === "email" ? t3 = t3.check(U.email()) : n3 === "uri" || n3 === "uri-reference" ? t3 = t3.check(U.url()) : n3 === "uuid" || n3 === "guid" ? t3 = t3.check(U.uuid()) : n3 === "date-time" ? t3 = t3.check(U.iso.datetime()) : n3 === "date" ? t3 = t3.check(U.iso.date()) : n3 === "time" ? t3 = t3.check(U.iso.time()) : n3 === "duration" ? t3 = t3.check(U.iso.duration()) : n3 === "ipv4" ? t3 = t3.check(U.ipv4()) : n3 === "ipv6" ? t3 = t3.check(U.ipv6()) : n3 === "mac" ? t3 = t3.check(U.mac()) : n3 === "cidr" ? t3 = t3.check(U.cidrv4()) : n3 === "cidr-v6" ? t3 = t3.check(U.cidrv6()) : n3 === "base64" ? t3 = t3.check(U.base64()) : n3 === "base64url" ? t3 = t3.check(U.base64url()) : n3 === "e164" ? t3 = t3.check(U.e164()) : n3 === "jwt" ? t3 = t3.check(U.jwt()) : n3 === "emoji" ? t3 = t3.check(U.emoji()) : n3 === "nanoid" ? t3 = t3.check(U.nanoid()) : n3 === "cuid" ? t3 = t3.check(U.cuid()) : n3 === "cuid2" ? t3 = t3.check(U.cuid2()) : n3 === "ulid" ? t3 = t3.check(U.ulid()) : n3 === "xid" ? t3 = t3.check(U.xid()) : n3 === "ksuid" && (t3 = t3.check(U.ksuid()));
5544
5554
  }
5545
5555
  typeof e4.minLength == "number" && (t3 = t3.min(e4.minLength)), typeof e4.maxLength == "number" && (t3 = t3.max(e4.maxLength)), e4.pattern && (t3 = t3.regex(new RegExp(e4.pattern))), r2 = t3;
5546
5556
  break;
5547
5557
  }
5548
5558
  case "number":
5549
5559
  case "integer": {
5550
- let t3 = n2 === "integer" ? W.number().int() : W.number();
5560
+ let t3 = n2 === "integer" ? U.number().int() : U.number();
5551
5561
  typeof e4.minimum == "number" && (t3 = t3.min(e4.minimum)), typeof e4.maximum == "number" && (t3 = t3.max(e4.maximum)), typeof e4.exclusiveMinimum == "number" ? t3 = t3.gt(e4.exclusiveMinimum) : e4.exclusiveMinimum === true && typeof e4.minimum == "number" && (t3 = t3.gt(e4.minimum)), typeof e4.exclusiveMaximum == "number" ? t3 = t3.lt(e4.exclusiveMaximum) : e4.exclusiveMaximum === true && typeof e4.maximum == "number" && (t3 = t3.lt(e4.maximum)), typeof e4.multipleOf == "number" && (t3 = t3.multipleOf(e4.multipleOf)), r2 = t3;
5552
5562
  break;
5553
5563
  }
5554
5564
  case "boolean":
5555
- r2 = W.boolean();
5565
+ r2 = U.boolean();
5556
5566
  break;
5557
5567
  case "null":
5558
- r2 = W.null();
5568
+ r2 = U.null();
5559
5569
  break;
5560
5570
  case "object": {
5561
5571
  let n3 = {}, i2 = e4.properties || {}, a2 = new Set(e4.required || []);
5562
5572
  for (let [e5, r3] of Object.entries(i2)) {
5563
- let i3 = G(r3, t2);
5573
+ let i3 = W(r3, t2);
5564
5574
  n3[e5] = a2.has(e5) ? i3 : i3.optional();
5565
5575
  }
5566
5576
  if (e4.propertyNames) {
5567
- let i3 = G(e4.propertyNames, t2), a3 = e4.additionalProperties && typeof e4.additionalProperties == "object" ? G(e4.additionalProperties, t2) : W.any();
5577
+ let i3 = W(e4.propertyNames, t2), a3 = e4.additionalProperties && typeof e4.additionalProperties == "object" ? W(e4.additionalProperties, t2) : U.any();
5568
5578
  if (Object.keys(n3).length === 0) {
5569
- r2 = W.record(i3, a3);
5579
+ r2 = U.record(i3, a3);
5570
5580
  break;
5571
5581
  }
5572
- let o3 = W.object(n3).passthrough(), s2 = W.looseRecord(i3, a3);
5573
- r2 = W.intersection(o3, s2);
5582
+ let o3 = U.object(n3).passthrough(), s2 = U.looseRecord(i3, a3);
5583
+ r2 = U.intersection(o3, s2);
5574
5584
  break;
5575
5585
  }
5576
5586
  if (e4.patternProperties) {
5577
5587
  let i3 = e4.patternProperties, a3 = Object.keys(i3), o3 = [];
5578
5588
  for (let e5 of a3) {
5579
- let n4 = G(i3[e5], t2), r3 = W.string().regex(new RegExp(e5));
5580
- o3.push(W.looseRecord(r3, n4));
5589
+ let n4 = W(i3[e5], t2), r3 = U.string().regex(new RegExp(e5));
5590
+ o3.push(U.looseRecord(r3, n4));
5581
5591
  }
5582
5592
  let s2 = [];
5583
- if (Object.keys(n3).length > 0 && s2.push(W.object(n3).passthrough()), s2.push(...o3), s2.length === 0) r2 = W.object({}).passthrough();
5593
+ if (Object.keys(n3).length > 0 && s2.push(U.object(n3).passthrough()), s2.push(...o3), s2.length === 0) r2 = U.object({}).passthrough();
5584
5594
  else if (s2.length === 1) r2 = s2[0];
5585
5595
  else {
5586
- let e5 = W.intersection(s2[0], s2[1]);
5587
- for (let t3 = 2; t3 < s2.length; t3++) e5 = W.intersection(e5, s2[t3]);
5596
+ let e5 = U.intersection(s2[0], s2[1]);
5597
+ for (let t3 = 2; t3 < s2.length; t3++) e5 = U.intersection(e5, s2[t3]);
5588
5598
  r2 = e5;
5589
5599
  }
5590
5600
  break;
5591
5601
  }
5592
- let o2 = W.object(n3);
5593
- r2 = e4.additionalProperties === false ? o2.strict() : typeof e4.additionalProperties == "object" ? o2.catchall(G(e4.additionalProperties, t2)) : o2.passthrough();
5602
+ let o2 = U.object(n3);
5603
+ r2 = e4.additionalProperties === false ? o2.strict() : typeof e4.additionalProperties == "object" ? o2.catchall(W(e4.additionalProperties, t2)) : o2.passthrough();
5594
5604
  break;
5595
5605
  }
5596
5606
  case "array": {
5597
5607
  let n3 = e4.prefixItems, i2 = e4.items;
5598
5608
  if (n3 && Array.isArray(n3)) {
5599
- let a2 = n3.map((e5) => G(e5, t2)), o2 = i2 && typeof i2 == "object" && !Array.isArray(i2) ? G(i2, t2) : void 0;
5600
- r2 = o2 ? W.tuple(a2).rest(o2) : W.tuple(a2), typeof e4.minItems == "number" && (r2 = r2.check(W.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(W.maxLength(e4.maxItems)));
5609
+ let a2 = n3.map((e5) => W(e5, t2)), o2 = i2 && typeof i2 == "object" && !Array.isArray(i2) ? W(i2, t2) : void 0;
5610
+ r2 = o2 ? U.tuple(a2).rest(o2) : U.tuple(a2), typeof e4.minItems == "number" && (r2 = r2.check(U.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(U.maxLength(e4.maxItems)));
5601
5611
  } else if (Array.isArray(i2)) {
5602
- let n4 = i2.map((e5) => G(e5, t2)), a2 = e4.additionalItems && typeof e4.additionalItems == "object" ? G(e4.additionalItems, t2) : void 0;
5603
- r2 = a2 ? W.tuple(n4).rest(a2) : W.tuple(n4), typeof e4.minItems == "number" && (r2 = r2.check(W.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(W.maxLength(e4.maxItems)));
5612
+ let n4 = i2.map((e5) => W(e5, t2)), a2 = e4.additionalItems && typeof e4.additionalItems == "object" ? W(e4.additionalItems, t2) : void 0;
5613
+ r2 = a2 ? U.tuple(n4).rest(a2) : U.tuple(n4), typeof e4.minItems == "number" && (r2 = r2.check(U.minLength(e4.minItems))), typeof e4.maxItems == "number" && (r2 = r2.check(U.maxLength(e4.maxItems)));
5604
5614
  } else if (i2 !== void 0) {
5605
- let n4 = G(i2, t2), a2 = W.array(n4);
5615
+ let n4 = W(i2, t2), a2 = U.array(n4);
5606
5616
  typeof e4.minItems == "number" && (a2 = a2.min(e4.minItems)), typeof e4.maxItems == "number" && (a2 = a2.max(e4.maxItems)), r2 = a2;
5607
- } else r2 = W.array(W.any());
5617
+ } else r2 = U.array(U.any());
5608
5618
  break;
5609
5619
  }
5610
5620
  default:
@@ -5612,120 +5622,120 @@ function Op(e4, t2) {
5612
5622
  }
5613
5623
  return e4.description && (r2 = r2.describe(e4.description)), e4.default !== void 0 && (r2 = r2.default(e4.default)), r2;
5614
5624
  }
5615
- function G(e4, t2) {
5616
- if (typeof e4 == "boolean") return e4 ? W.any() : W.never();
5617
- let n2 = Op(e4, t2), r2 = e4.type || e4.enum !== void 0 || e4.const !== void 0;
5625
+ function W(e4, t2) {
5626
+ if (typeof e4 == "boolean") return e4 ? U.any() : U.never();
5627
+ let n2 = kp(e4, t2), r2 = e4.type || e4.enum !== void 0 || e4.const !== void 0;
5618
5628
  if (e4.anyOf && Array.isArray(e4.anyOf)) {
5619
- let i3 = e4.anyOf.map((e5) => G(e5, t2)), a2 = W.union(i3);
5620
- n2 = r2 ? W.intersection(n2, a2) : a2;
5629
+ let i3 = e4.anyOf.map((e5) => W(e5, t2)), a2 = U.union(i3);
5630
+ n2 = r2 ? U.intersection(n2, a2) : a2;
5621
5631
  }
5622
5632
  if (e4.oneOf && Array.isArray(e4.oneOf)) {
5623
- let i3 = e4.oneOf.map((e5) => G(e5, t2)), a2 = W.xor(i3);
5624
- n2 = r2 ? W.intersection(n2, a2) : a2;
5633
+ let i3 = e4.oneOf.map((e5) => W(e5, t2)), a2 = U.xor(i3);
5634
+ n2 = r2 ? U.intersection(n2, a2) : a2;
5625
5635
  }
5626
- if (e4.allOf && Array.isArray(e4.allOf)) if (e4.allOf.length === 0) n2 = r2 ? n2 : W.any();
5636
+ if (e4.allOf && Array.isArray(e4.allOf)) if (e4.allOf.length === 0) n2 = r2 ? n2 : U.any();
5627
5637
  else {
5628
- let i3 = r2 ? n2 : G(e4.allOf[0], t2), a2 = +!r2;
5629
- for (let n3 = a2; n3 < e4.allOf.length; n3++) i3 = W.intersection(i3, G(e4.allOf[n3], t2));
5638
+ let i3 = r2 ? n2 : W(e4.allOf[0], t2), a2 = +!r2;
5639
+ for (let n3 = a2; n3 < e4.allOf.length; n3++) i3 = U.intersection(i3, W(e4.allOf[n3], t2));
5630
5640
  n2 = i3;
5631
5641
  }
5632
- e4.nullable === true && t2.version === "openapi-3.0" && (n2 = W.nullable(n2)), e4.readOnly === true && (n2 = W.readonly(n2));
5642
+ e4.nullable === true && t2.version === "openapi-3.0" && (n2 = U.nullable(n2)), e4.readOnly === true && (n2 = U.readonly(n2));
5633
5643
  let i2 = {};
5634
5644
  for (let t3 of ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"]) t3 in e4 && (i2[t3] = e4[t3]);
5635
5645
  for (let t3 of ["contentEncoding", "contentMediaType", "contentSchema"]) t3 in e4 && (i2[t3] = e4[t3]);
5636
- for (let t3 of Object.keys(e4)) Tp.has(t3) || (i2[t3] = e4[t3]);
5646
+ for (let t3 of Object.keys(e4)) Ep.has(t3) || (i2[t3] = e4[t3]);
5637
5647
  return Object.keys(i2).length > 0 && t2.registry.add(n2, i2), n2;
5638
5648
  }
5639
- function kp(e4, t2) {
5649
+ function Ap(e4, t2) {
5640
5650
  var n2;
5641
- return typeof e4 == "boolean" ? e4 ? W.any() : W.never() : G(e4, { version: Ep(e4, t2 == null ? void 0 : t2.defaultTarget), defs: e4.$defs || e4.definitions || {}, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: e4, registry: (n2 = t2 == null ? void 0 : t2.registry) == null ? $o : n2 });
5642
- }
5643
- var Ap = t({ bigint: () => Pp, boolean: () => Np, date: () => Fp, number: () => Mp, string: () => jp });
5644
- function jp(e4) {
5645
- return ts(Pu, e4);
5651
+ return typeof e4 == "boolean" ? e4 ? U.any() : U.never() : W(e4, { version: Dp(e4, t2 == null ? void 0 : t2.defaultTarget), defs: e4.$defs || e4.definitions || {}, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: e4, registry: (n2 = t2 == null ? void 0 : t2.registry) == null ? $o : n2 });
5646
5652
  }
5653
+ var jp = t({ bigint: () => Fp, boolean: () => Pp, date: () => Ip, number: () => Np, string: () => Mp });
5647
5654
  function Mp(e4) {
5648
- return js(Ad, e4);
5655
+ return ts(Fu, e4);
5649
5656
  }
5650
5657
  function Np(e4) {
5651
- return Rs(Ld, e4);
5658
+ return js(jd, e4);
5652
5659
  }
5653
5660
  function Pp(e4) {
5654
- return Bs(Rd, e4);
5661
+ return Rs(Rd, e4);
5655
5662
  }
5656
5663
  function Fp(e4) {
5657
- return Zs(nf, e4);
5664
+ return Bs(zd, e4);
5665
+ }
5666
+ function Ip(e4) {
5667
+ return Zs(rf, e4);
5658
5668
  }
5659
- var Ip = t({ $brand: () => l, $input: () => Xo, $output: () => Yo, NEVER: () => s, TimePrecision: () => Ts, ZodAny: () => Yd, ZodArray: () => af, ZodBase64: () => _d, ZodBase64URL: () => yd, ZodBigInt: () => Rd, ZodBigIntFormat: () => Bd, ZodBoolean: () => Ld, ZodCIDRv4: () => pd, ZodCIDRv6: () => hd, ZodCUID: () => Zu, ZodCUID2: () => $u, ZodCatch: () => Kf, ZodCodec: () => Qf, ZodCustom: () => up, ZodCustomStringFormat: () => Td, ZodDate: () => nf, ZodDefault: () => Rf, ZodDiscriminatedUnion: () => ff, ZodE164: () => xd, ZodEmail: () => Fu, ZodEmoji: () => qu, ZodEnum: () => Tf, ZodError: () => vu, ZodExactOptional: () => Nf, ZodFile: () => Of, ZodFirstPartyTypeKind: () => wp, ZodFunction: () => cp, ZodGUID: () => Lu, ZodIPv4: () => sd, ZodIPv6: () => dd, ZodISODate: () => du, ZodISODateTime: () => lu, ZodISODuration: () => hu, ZodISOTime: () => pu, ZodIntersection: () => mf, ZodIssueCode: () => xp, ZodJWT: () => Cd, ZodKSUID: () => ad, ZodLazy: () => ip, ZodLiteral: () => Df, ZodMAC: () => ld, ZodMap: () => xf, ZodNaN: () => Jf, ZodNanoID: () => Yu, ZodNever: () => Qd, ZodNonOptional: () => Hf, ZodNull: () => qd, ZodNullable: () => Ff, ZodNumber: () => Ad, ZodNumberFormat: () => jd, ZodObject: () => sf, ZodOptional: () => Mf, ZodPipe: () => Xf, ZodPrefault: () => Bf, ZodPromise: () => op, ZodReadonly: () => ep, ZodRealError: () => yu, ZodRecord: () => vf, ZodSet: () => Cf, ZodString: () => Pu, ZodStringFormat: () => M, ZodSuccess: () => Wf, ZodSymbol: () => Ud, ZodTemplateLiteral: () => np, ZodTransform: () => Af, ZodTuple: () => gf, ZodType: () => A, ZodULID: () => td, ZodURL: () => Wu, ZodUUID: () => zu, ZodUndefined: () => Gd, ZodUnion: () => lf, ZodUnknown: () => Zd, ZodVoid: () => ef, ZodXID: () => rd, ZodXor: () => uf, _ZodString: () => Nu, _default: () => zf, _function: () => lp, any: () => Xd, array: () => I, base64: () => vd, base64url: () => bd, bigint: () => zd, boolean: () => P, catch: () => qf, check: () => dp, cidrv4: () => md, cidrv6: () => gd, clone: () => Ee, codec: () => $f, coerce: () => Ap, config: () => p, core: () => nu, cuid: () => Qu, cuid2: () => ed, custom: () => fp, date: () => rf, decode: () => Tu, decodeAsync: () => Du, describe: () => hp, discriminatedUnion: () => pf, e164: () => Sd, email: () => Iu, emoji: () => Ju, encode: () => wu, encodeAsync: () => Eu, endsWith: () => vc, enum: () => V, exactOptional: () => Pf, file: () => kf, flattenError: () => nt, float32: () => Nd, float64: () => Pd, formatError: () => rt, fromJSONSchema: () => kp, function: () => lp, getErrorMap: () => Cp, globalRegistry: () => $o, gt: () => tc, gte: () => O, guid: () => Ru, hash: () => kd, hex: () => Od, hostname: () => Dd, httpUrl: () => Ku, includes: () => gc, instanceof: () => _p, int: () => Md, int32: () => Fd, int64: () => Vd, intersection: () => hf, ipv4: () => cd, ipv6: () => fd, iso: () => cu, json: () => yp, jwt: () => wd, keyof: () => of, ksuid: () => od, lazy: () => ap, length: () => fc, literal: () => H, locales: () => qo, looseObject: () => R, looseRecord: () => bf, lowercase: () => mc, lt: () => $s, lte: () => ec, mac: () => ud, map: () => Sf, maxLength: () => uc, maxSize: () => sc, meta: () => gp, mime: () => bc, minLength: () => dc, minSize: () => cc, multipleOf: () => oc, nan: () => Yf, nanoid: () => Xu, nativeEnum: () => Ef, negative: () => rc, never: () => $d, nonnegative: () => ac, nonoptional: () => Uf, nonpositive: () => ic, normalize: () => Sc, null: () => Jd, nullable: () => If, nullish: () => Lf, number: () => N, object: () => L, optional: () => U, overwrite: () => xc, parse: () => bu, parseAsync: () => xu, partialRecord: () => yf, pipe: () => Zf, positive: () => nc, prefault: () => Vf, preprocess: () => bp, prettifyError: () => ot, promise: () => sp, property: () => yc, readonly: () => tp, record: () => B, refine: () => pp, regex: () => pc, regexes: () => jt, registry: () => Qo, safeDecode: () => ku, safeDecodeAsync: () => ju, safeEncode: () => Ou, safeEncodeAsync: () => Au, safeParse: () => Su, safeParseAsync: () => Cu, set: () => wf, setErrorMap: () => Sp, size: () => lc, slugify: () => Ec, startsWith: () => _c, strictObject: () => cf, string: () => j, stringFormat: () => Ed, stringbool: () => vp, success: () => Gf, superRefine: () => mp, symbol: () => Wd, templateLiteral: () => rp, toJSONSchema: () => $l, toLowerCase: () => wc, toUpperCase: () => Tc, transform: () => jf, treeifyError: () => it, trim: () => Cc, tuple: () => _f, uint32: () => Id, uint64: () => Hd, ulid: () => nd, undefined: () => Kd, union: () => z, unknown: () => F, uppercase: () => hc, url: () => Gu, util: () => m, uuid: () => Bu, uuidv4: () => Vu, uuidv6: () => Hu, uuidv7: () => Uu, void: () => tf, xid: () => id, xor: () => df });
5669
+ var Lp = t({ $brand: () => l, $input: () => Xo, $output: () => Yo, NEVER: () => s, TimePrecision: () => Ts, ZodAny: () => Xd, ZodArray: () => of, ZodBase64: () => vd, ZodBase64URL: () => bd, ZodBigInt: () => zd, ZodBigIntFormat: () => Vd, ZodBoolean: () => Rd, ZodCIDRv4: () => md, ZodCIDRv6: () => gd, ZodCUID: () => Qu, ZodCUID2: () => ed, ZodCatch: () => qf, ZodCodec: () => $f, ZodCustom: () => dp, ZodCustomStringFormat: () => Ed, ZodDate: () => rf, ZodDefault: () => zf, ZodDiscriminatedUnion: () => pf, ZodE164: () => Sd, ZodEmail: () => Iu, ZodEmoji: () => Ju, ZodEnum: () => Ef, ZodError: () => yu, ZodExactOptional: () => Pf, ZodFile: () => kf, ZodFirstPartyTypeKind: () => Tp, ZodFunction: () => lp, ZodGUID: () => Ru, ZodIPv4: () => cd, ZodIPv6: () => fd, ZodISODate: () => fu, ZodISODateTime: () => uu, ZodISODuration: () => gu, ZodISOTime: () => mu, ZodIntersection: () => hf, ZodIssueCode: () => Sp, ZodJWT: () => wd, ZodKSUID: () => od, ZodLazy: () => ap, ZodLiteral: () => Of, ZodMAC: () => ud, ZodMap: () => Sf, ZodNaN: () => Yf, ZodNanoID: () => Xu, ZodNever: () => $d, ZodNonOptional: () => Uf, ZodNull: () => Jd, ZodNullable: () => If, ZodNumber: () => jd, ZodNumberFormat: () => Md, ZodObject: () => cf, ZodOptional: () => Nf, ZodPipe: () => Zf, ZodPrefault: () => Vf, ZodPromise: () => sp, ZodReadonly: () => tp, ZodRealError: () => bu, ZodRecord: () => yf, ZodSet: () => wf, ZodString: () => Fu, ZodStringFormat: () => j, ZodSuccess: () => Gf, ZodSymbol: () => Wd, ZodTemplateLiteral: () => rp, ZodTransform: () => jf, ZodTuple: () => _f, ZodType: () => k, ZodULID: () => nd, ZodURL: () => Gu, ZodUUID: () => Bu, ZodUndefined: () => Kd, ZodUnion: () => uf, ZodUnknown: () => Qd, ZodVoid: () => tf, ZodXID: () => id, ZodXor: () => df, _ZodString: () => Pu, _default: () => Bf, _function: () => up, any: () => Zd, array: () => F, base64: () => yd, base64url: () => xd, bigint: () => Bd, boolean: () => N, catch: () => Jf, check: () => fp, cidrv4: () => hd, cidrv6: () => _d, clone: () => Ee, codec: () => ep, coerce: () => jp, config: () => p, core: () => ru, cuid: () => $u, cuid2: () => td, custom: () => pp, date: () => af, decode: () => Eu, decodeAsync: () => Ou, describe: () => gp, discriminatedUnion: () => mf, e164: () => Cd, email: () => Lu, emoji: () => Yu, encode: () => Tu, encodeAsync: () => Du, endsWith: () => yc, enum: () => B, exactOptional: () => Ff, file: () => Af, flattenError: () => nt, float32: () => Pd, float64: () => Fd, formatError: () => rt, fromJSONSchema: () => Ap, function: () => up, getErrorMap: () => wp, globalRegistry: () => $o, gt: () => tc, gte: () => nc, guid: () => zu, hash: () => Ad, hex: () => kd, hostname: () => Od, httpUrl: () => qu, includes: () => _c, instanceof: () => vp, int: () => Nd, int32: () => Id, int64: () => Hd, intersection: () => gf, ipv4: () => ld, ipv6: () => pd, iso: () => lu, json: () => bp, jwt: () => Td, keyof: () => sf, ksuid: () => sd, lazy: () => op, length: () => pc, literal: () => V, locales: () => qo, looseObject: () => L, looseRecord: () => xf, lowercase: () => hc, lt: () => $s, lte: () => ec, mac: () => dd, map: () => Cf, maxLength: () => dc, maxSize: () => cc, meta: () => _p, mime: () => xc, minLength: () => fc, minSize: () => lc, multipleOf: () => sc, nan: () => Xf, nanoid: () => Zu, nativeEnum: () => Df, negative: () => ic, never: () => ef, nonnegative: () => oc, nonoptional: () => Wf, nonpositive: () => ac, normalize: () => Cc, null: () => Yd, nullable: () => Lf, nullish: () => Rf, number: () => M, object: () => I, optional: () => H, overwrite: () => Sc, parse: () => xu, parseAsync: () => Su, partialRecord: () => bf, pipe: () => Qf, positive: () => rc, prefault: () => Hf, preprocess: () => xp, prettifyError: () => ot, promise: () => cp, property: () => bc, readonly: () => np, record: () => z, refine: () => mp, regex: () => mc, regexes: () => jt, registry: () => Qo, safeDecode: () => Au, safeDecodeAsync: () => Mu, safeEncode: () => ku, safeEncodeAsync: () => ju, safeParse: () => Cu, safeParseAsync: () => wu, set: () => Tf, setErrorMap: () => Cp, size: () => uc, slugify: () => Dc, startsWith: () => vc, strictObject: () => lf, string: () => A, stringFormat: () => Dd, stringbool: () => yp, success: () => Kf, superRefine: () => hp, symbol: () => Gd, templateLiteral: () => ip, toJSONSchema: () => eu, toLowerCase: () => Tc, toUpperCase: () => Ec, transform: () => Mf, treeifyError: () => it, trim: () => wc, tuple: () => vf, uint32: () => Ld, uint64: () => Ud, ulid: () => rd, undefined: () => qd, union: () => R, unknown: () => P, uppercase: () => gc, url: () => Ku, util: () => m, uuid: () => Vu, uuidv4: () => Hu, uuidv6: () => Uu, uuidv7: () => Wu, void: () => nf, xid: () => ad, xor: () => ff });
5660
5670
  p(ga());
5661
- var Lp = t({ $brand: () => l, $input: () => Xo, $output: () => Yo, NEVER: () => s, TimePrecision: () => Ts, ZodAny: () => Yd, ZodArray: () => af, ZodBase64: () => _d, ZodBase64URL: () => yd, ZodBigInt: () => Rd, ZodBigIntFormat: () => Bd, ZodBoolean: () => Ld, ZodCIDRv4: () => pd, ZodCIDRv6: () => hd, ZodCUID: () => Zu, ZodCUID2: () => $u, ZodCatch: () => Kf, ZodCodec: () => Qf, ZodCustom: () => up, ZodCustomStringFormat: () => Td, ZodDate: () => nf, ZodDefault: () => Rf, ZodDiscriminatedUnion: () => ff, ZodE164: () => xd, ZodEmail: () => Fu, ZodEmoji: () => qu, ZodEnum: () => Tf, ZodError: () => vu, ZodExactOptional: () => Nf, ZodFile: () => Of, ZodFirstPartyTypeKind: () => wp, ZodFunction: () => cp, ZodGUID: () => Lu, ZodIPv4: () => sd, ZodIPv6: () => dd, ZodISODate: () => du, ZodISODateTime: () => lu, ZodISODuration: () => hu, ZodISOTime: () => pu, ZodIntersection: () => mf, ZodIssueCode: () => xp, ZodJWT: () => Cd, ZodKSUID: () => ad, ZodLazy: () => ip, ZodLiteral: () => Df, ZodMAC: () => ld, ZodMap: () => xf, ZodNaN: () => Jf, ZodNanoID: () => Yu, ZodNever: () => Qd, ZodNonOptional: () => Hf, ZodNull: () => qd, ZodNullable: () => Ff, ZodNumber: () => Ad, ZodNumberFormat: () => jd, ZodObject: () => sf, ZodOptional: () => Mf, ZodPipe: () => Xf, ZodPrefault: () => Bf, ZodPromise: () => op, ZodReadonly: () => ep, ZodRealError: () => yu, ZodRecord: () => vf, ZodSet: () => Cf, ZodString: () => Pu, ZodStringFormat: () => M, ZodSuccess: () => Wf, ZodSymbol: () => Ud, ZodTemplateLiteral: () => np, ZodTransform: () => Af, ZodTuple: () => gf, ZodType: () => A, ZodULID: () => td, ZodURL: () => Wu, ZodUUID: () => zu, ZodUndefined: () => Gd, ZodUnion: () => lf, ZodUnknown: () => Zd, ZodVoid: () => ef, ZodXID: () => rd, ZodXor: () => uf, _ZodString: () => Nu, _default: () => zf, _function: () => lp, any: () => Xd, array: () => I, base64: () => vd, base64url: () => bd, bigint: () => zd, boolean: () => P, catch: () => qf, check: () => dp, cidrv4: () => md, cidrv6: () => gd, clone: () => Ee, codec: () => $f, coerce: () => Ap, config: () => p, core: () => nu, cuid: () => Qu, cuid2: () => ed, custom: () => fp, date: () => rf, decode: () => Tu, decodeAsync: () => Du, describe: () => hp, discriminatedUnion: () => pf, e164: () => Sd, email: () => Iu, emoji: () => Ju, encode: () => wu, encodeAsync: () => Eu, endsWith: () => vc, enum: () => V, exactOptional: () => Pf, file: () => kf, flattenError: () => nt, float32: () => Nd, float64: () => Pd, formatError: () => rt, fromJSONSchema: () => kp, function: () => lp, getErrorMap: () => Cp, globalRegistry: () => $o, gt: () => tc, gte: () => O, guid: () => Ru, hash: () => kd, hex: () => Od, hostname: () => Dd, httpUrl: () => Ku, includes: () => gc, instanceof: () => _p, int: () => Md, int32: () => Fd, int64: () => Vd, intersection: () => hf, ipv4: () => cd, ipv6: () => fd, iso: () => cu, json: () => yp, jwt: () => wd, keyof: () => of, ksuid: () => od, lazy: () => ap, length: () => fc, literal: () => H, locales: () => qo, looseObject: () => R, looseRecord: () => bf, lowercase: () => mc, lt: () => $s, lte: () => ec, mac: () => ud, map: () => Sf, maxLength: () => uc, maxSize: () => sc, meta: () => gp, mime: () => bc, minLength: () => dc, minSize: () => cc, multipleOf: () => oc, nan: () => Yf, nanoid: () => Xu, nativeEnum: () => Ef, negative: () => rc, never: () => $d, nonnegative: () => ac, nonoptional: () => Uf, nonpositive: () => ic, normalize: () => Sc, null: () => Jd, nullable: () => If, nullish: () => Lf, number: () => N, object: () => L, optional: () => U, overwrite: () => xc, parse: () => bu, parseAsync: () => xu, partialRecord: () => yf, pipe: () => Zf, positive: () => nc, prefault: () => Vf, preprocess: () => bp, prettifyError: () => ot, promise: () => sp, property: () => yc, readonly: () => tp, record: () => B, refine: () => pp, regex: () => pc, regexes: () => jt, registry: () => Qo, safeDecode: () => ku, safeDecodeAsync: () => ju, safeEncode: () => Ou, safeEncodeAsync: () => Au, safeParse: () => Su, safeParseAsync: () => Cu, set: () => wf, setErrorMap: () => Sp, size: () => lc, slugify: () => Ec, startsWith: () => _c, strictObject: () => cf, string: () => j, stringFormat: () => Ed, stringbool: () => vp, success: () => Gf, superRefine: () => mp, symbol: () => Wd, templateLiteral: () => rp, toJSONSchema: () => $l, toLowerCase: () => wc, toUpperCase: () => Tc, transform: () => jf, treeifyError: () => it, trim: () => Cc, tuple: () => _f, uint32: () => Id, uint64: () => Hd, ulid: () => nd, undefined: () => Kd, union: () => z, unknown: () => F, uppercase: () => hc, url: () => Gu, util: () => m, uuid: () => Bu, uuidv4: () => Vu, uuidv6: () => Hu, uuidv7: () => Uu, void: () => tf, xid: () => id, xor: () => df, z: () => Ip }), Rp = "io.modelcontextprotocol/related-task", K = fp((e4) => e4 !== null && (typeof e4 == "object" || typeof e4 == "function")), zp = z([j(), N().int()]), Bp = j();
5662
- R({ ttl: N().optional(), pollInterval: N().optional() });
5663
- var Vp = L({ ttl: N().optional() }), Hp = L({ taskId: j() }), Up = R({ progressToken: zp.optional(), [Rp]: Hp.optional() }), Wp = L({ _meta: Up.optional() }), Gp = Wp.extend({ task: Vp.optional() }), Kp = (e4) => Gp.safeParse(e4).success, q = L({ method: j(), params: Wp.loose().optional() }), qp = L({ _meta: Up.optional() }), Jp = L({ method: j(), params: qp.loose().optional() }), J = R({ _meta: Up.optional() }), Yp = z([j(), N().int()]), Xp = L({ jsonrpc: H("2.0"), id: Yp, ...q.shape }).strict(), Zp = (e4) => Xp.safeParse(e4).success, Qp = L({ jsonrpc: H("2.0"), ...Jp.shape }).strict(), $p = (e4) => Qp.safeParse(e4).success, em = L({ jsonrpc: H("2.0"), id: Yp, result: J }).strict(), tm = (e4) => em.safeParse(e4).success, Y;
5671
+ var Rp = t({ $brand: () => l, $input: () => Xo, $output: () => Yo, NEVER: () => s, TimePrecision: () => Ts, ZodAny: () => Xd, ZodArray: () => of, ZodBase64: () => vd, ZodBase64URL: () => bd, ZodBigInt: () => zd, ZodBigIntFormat: () => Vd, ZodBoolean: () => Rd, ZodCIDRv4: () => md, ZodCIDRv6: () => gd, ZodCUID: () => Qu, ZodCUID2: () => ed, ZodCatch: () => qf, ZodCodec: () => $f, ZodCustom: () => dp, ZodCustomStringFormat: () => Ed, ZodDate: () => rf, ZodDefault: () => zf, ZodDiscriminatedUnion: () => pf, ZodE164: () => Sd, ZodEmail: () => Iu, ZodEmoji: () => Ju, ZodEnum: () => Ef, ZodError: () => yu, ZodExactOptional: () => Pf, ZodFile: () => kf, ZodFirstPartyTypeKind: () => Tp, ZodFunction: () => lp, ZodGUID: () => Ru, ZodIPv4: () => cd, ZodIPv6: () => fd, ZodISODate: () => fu, ZodISODateTime: () => uu, ZodISODuration: () => gu, ZodISOTime: () => mu, ZodIntersection: () => hf, ZodIssueCode: () => Sp, ZodJWT: () => wd, ZodKSUID: () => od, ZodLazy: () => ap, ZodLiteral: () => Of, ZodMAC: () => ud, ZodMap: () => Sf, ZodNaN: () => Yf, ZodNanoID: () => Xu, ZodNever: () => $d, ZodNonOptional: () => Uf, ZodNull: () => Jd, ZodNullable: () => If, ZodNumber: () => jd, ZodNumberFormat: () => Md, ZodObject: () => cf, ZodOptional: () => Nf, ZodPipe: () => Zf, ZodPrefault: () => Vf, ZodPromise: () => sp, ZodReadonly: () => tp, ZodRealError: () => bu, ZodRecord: () => yf, ZodSet: () => wf, ZodString: () => Fu, ZodStringFormat: () => j, ZodSuccess: () => Gf, ZodSymbol: () => Wd, ZodTemplateLiteral: () => rp, ZodTransform: () => jf, ZodTuple: () => _f, ZodType: () => k, ZodULID: () => nd, ZodURL: () => Gu, ZodUUID: () => Bu, ZodUndefined: () => Kd, ZodUnion: () => uf, ZodUnknown: () => Qd, ZodVoid: () => tf, ZodXID: () => id, ZodXor: () => df, _ZodString: () => Pu, _default: () => Bf, _function: () => up, any: () => Zd, array: () => F, base64: () => yd, base64url: () => xd, bigint: () => Bd, boolean: () => N, catch: () => Jf, check: () => fp, cidrv4: () => hd, cidrv6: () => _d, clone: () => Ee, codec: () => ep, coerce: () => jp, config: () => p, core: () => ru, cuid: () => $u, cuid2: () => td, custom: () => pp, date: () => af, decode: () => Eu, decodeAsync: () => Ou, describe: () => gp, discriminatedUnion: () => mf, e164: () => Cd, email: () => Lu, emoji: () => Yu, encode: () => Tu, encodeAsync: () => Du, endsWith: () => yc, enum: () => B, exactOptional: () => Ff, file: () => Af, flattenError: () => nt, float32: () => Pd, float64: () => Fd, formatError: () => rt, fromJSONSchema: () => Ap, function: () => up, getErrorMap: () => wp, globalRegistry: () => $o, gt: () => tc, gte: () => nc, guid: () => zu, hash: () => Ad, hex: () => kd, hostname: () => Od, httpUrl: () => qu, includes: () => _c, instanceof: () => vp, int: () => Nd, int32: () => Id, int64: () => Hd, intersection: () => gf, ipv4: () => ld, ipv6: () => pd, iso: () => lu, json: () => bp, jwt: () => Td, keyof: () => sf, ksuid: () => sd, lazy: () => op, length: () => pc, literal: () => V, locales: () => qo, looseObject: () => L, looseRecord: () => xf, lowercase: () => hc, lt: () => $s, lte: () => ec, mac: () => dd, map: () => Cf, maxLength: () => dc, maxSize: () => cc, meta: () => _p, mime: () => xc, minLength: () => fc, minSize: () => lc, multipleOf: () => sc, nan: () => Xf, nanoid: () => Zu, nativeEnum: () => Df, negative: () => ic, never: () => ef, nonnegative: () => oc, nonoptional: () => Wf, nonpositive: () => ac, normalize: () => Cc, null: () => Yd, nullable: () => Lf, nullish: () => Rf, number: () => M, object: () => I, optional: () => H, overwrite: () => Sc, parse: () => xu, parseAsync: () => Su, partialRecord: () => bf, pipe: () => Qf, positive: () => rc, prefault: () => Hf, preprocess: () => xp, prettifyError: () => ot, promise: () => cp, property: () => bc, readonly: () => np, record: () => z, refine: () => mp, regex: () => mc, regexes: () => jt, registry: () => Qo, safeDecode: () => Au, safeDecodeAsync: () => Mu, safeEncode: () => ku, safeEncodeAsync: () => ju, safeParse: () => Cu, safeParseAsync: () => wu, set: () => Tf, setErrorMap: () => Cp, size: () => uc, slugify: () => Dc, startsWith: () => vc, strictObject: () => lf, string: () => A, stringFormat: () => Dd, stringbool: () => yp, success: () => Kf, superRefine: () => hp, symbol: () => Gd, templateLiteral: () => ip, toJSONSchema: () => eu, toLowerCase: () => Tc, toUpperCase: () => Ec, transform: () => Mf, treeifyError: () => it, trim: () => wc, tuple: () => vf, uint32: () => Ld, uint64: () => Ud, ulid: () => rd, undefined: () => qd, union: () => R, unknown: () => P, uppercase: () => gc, url: () => Ku, util: () => m, uuid: () => Vu, uuidv4: () => Hu, uuidv6: () => Uu, uuidv7: () => Wu, void: () => nf, xid: () => ad, xor: () => ff, z: () => Lp }), zp = "io.modelcontextprotocol/related-task", G = pp((e4) => e4 !== null && (typeof e4 == "object" || typeof e4 == "function")), Bp = R([A(), M().int()]), Vp = A();
5672
+ L({ ttl: M().optional(), pollInterval: M().optional() });
5673
+ var Hp = I({ ttl: M().optional() }), Up = I({ taskId: A() }), Wp = L({ progressToken: Bp.optional(), [zp]: Up.optional() }), Gp = I({ _meta: Wp.optional() }), Kp = Gp.extend({ task: Hp.optional() }), qp = (e4) => Kp.safeParse(e4).success, K = I({ method: A(), params: Gp.loose().optional() }), Jp = I({ _meta: Wp.optional() }), Yp = I({ method: A(), params: Jp.loose().optional() }), q = L({ _meta: Wp.optional() }), Xp = R([A(), M().int()]), Zp = I({ jsonrpc: V("2.0"), id: Xp, ...K.shape }).strict(), Qp = (e4) => Zp.safeParse(e4).success, $p = I({ jsonrpc: V("2.0"), ...Yp.shape }).strict(), em = (e4) => $p.safeParse(e4).success, tm = I({ jsonrpc: V("2.0"), id: Xp, result: q }).strict(), nm = (e4) => tm.safeParse(e4).success, J;
5664
5674
  (function(e4) {
5665
5675
  e4[e4.ConnectionClosed = -32e3] = "ConnectionClosed", e4[e4.RequestTimeout = -32001] = "RequestTimeout", e4[e4.ParseError = -32700] = "ParseError", e4[e4.InvalidRequest = -32600] = "InvalidRequest", e4[e4.MethodNotFound = -32601] = "MethodNotFound", e4[e4.InvalidParams = -32602] = "InvalidParams", e4[e4.InternalError = -32603] = "InternalError", e4[e4.UrlElicitationRequired = -32042] = "UrlElicitationRequired";
5666
- })(Y || (Y = {}));
5667
- var nm = L({ jsonrpc: H("2.0"), id: Yp.optional(), error: L({ code: N().int(), message: j(), data: F().optional() }) }).strict(), rm = (e4) => nm.safeParse(e4).success, im = z([Xp, Qp, em, nm]);
5668
- z([em, nm]);
5669
- var am = J.strict(), om = qp.extend({ requestId: Yp.optional(), reason: j().optional() }), sm = Jp.extend({ method: H("notifications/cancelled"), params: om }), cm = L({ icons: I(L({ src: j(), mimeType: j().optional(), sizes: I(j()).optional(), theme: V(["light", "dark"]).optional() })).optional() }), lm = L({ name: j(), title: j().optional() }), um = lm.extend({ ...lm.shape, ...cm.shape, version: j(), websiteUrl: j().optional(), description: j().optional() }), dm = bp((e4) => e4 && typeof e4 == "object" && !Array.isArray(e4) && Object.keys(e4).length === 0 ? { form: {} } : e4, hf(L({ form: hf(L({ applyDefaults: P().optional() }), B(j(), F())).optional(), url: K.optional() }), B(j(), F()).optional())), fm = R({ list: K.optional(), cancel: K.optional(), requests: R({ sampling: R({ createMessage: K.optional() }).optional(), elicitation: R({ create: K.optional() }).optional() }).optional() }), pm = R({ list: K.optional(), cancel: K.optional(), requests: R({ tools: R({ call: K.optional() }).optional() }).optional() }), mm = L({ experimental: B(j(), K).optional(), sampling: L({ context: K.optional(), tools: K.optional() }).optional(), elicitation: dm.optional(), roots: L({ listChanged: P().optional() }).optional(), tasks: fm.optional(), extensions: B(j(), K).optional() }), hm = Wp.extend({ protocolVersion: j(), capabilities: mm, clientInfo: um }), gm = q.extend({ method: H("initialize"), params: hm }), _m = L({ experimental: B(j(), K).optional(), logging: K.optional(), completions: K.optional(), prompts: L({ listChanged: P().optional() }).optional(), resources: L({ subscribe: P().optional(), listChanged: P().optional() }).optional(), tools: L({ listChanged: P().optional() }).optional(), tasks: pm.optional(), extensions: B(j(), K).optional() }), vm = J.extend({ protocolVersion: j(), capabilities: _m, serverInfo: um, instructions: j().optional() }), ym = Jp.extend({ method: H("notifications/initialized"), params: qp.optional() }), bm = q.extend({ method: H("ping"), params: Wp.optional() }), xm = L({ progress: N(), total: U(N()), message: U(j()) }), Sm = L({ ...qp.shape, ...xm.shape, progressToken: zp }), Cm = Jp.extend({ method: H("notifications/progress"), params: Sm }), wm = Wp.extend({ cursor: Bp.optional() }), Tm = q.extend({ params: wm.optional() }), Em = J.extend({ nextCursor: Bp.optional() }), Dm = V(["working", "input_required", "completed", "failed", "cancelled"]), Om = L({ taskId: j(), status: Dm, ttl: z([N(), Jd()]), createdAt: j(), lastUpdatedAt: j(), pollInterval: U(N()), statusMessage: U(j()) }), km = J.extend({ task: Om }), Am = qp.merge(Om), jm = Jp.extend({ method: H("notifications/tasks/status"), params: Am }), Mm = q.extend({ method: H("tasks/get"), params: Wp.extend({ taskId: j() }) }), Nm = J.merge(Om), Pm = q.extend({ method: H("tasks/result"), params: Wp.extend({ taskId: j() }) });
5670
- J.loose();
5671
- var Fm = Tm.extend({ method: H("tasks/list") }), Im = Em.extend({ tasks: I(Om) }), Lm = q.extend({ method: H("tasks/cancel"), params: Wp.extend({ taskId: j() }) }), Rm = J.merge(Om), zm = L({ uri: j(), mimeType: U(j()), _meta: B(j(), F()).optional() }), Bm = zm.extend({ text: j() }), Vm = j().refine((e4) => {
5676
+ })(J || (J = {}));
5677
+ var rm = I({ jsonrpc: V("2.0"), id: Xp.optional(), error: I({ code: M().int(), message: A(), data: P().optional() }) }).strict(), im = (e4) => rm.safeParse(e4).success, am = R([Zp, $p, tm, rm]);
5678
+ R([tm, rm]);
5679
+ var om = q.strict(), sm = Jp.extend({ requestId: Xp.optional(), reason: A().optional() }), cm = Yp.extend({ method: V("notifications/cancelled"), params: sm }), lm = I({ icons: F(I({ src: A(), mimeType: A().optional(), sizes: F(A()).optional(), theme: B(["light", "dark"]).optional() })).optional() }), um = I({ name: A(), title: A().optional() }), dm = um.extend({ ...um.shape, ...lm.shape, version: A(), websiteUrl: A().optional(), description: A().optional() }), fm = xp((e4) => e4 && typeof e4 == "object" && !Array.isArray(e4) && Object.keys(e4).length === 0 ? { form: {} } : e4, gf(I({ form: gf(I({ applyDefaults: N().optional() }), z(A(), P())).optional(), url: G.optional() }), z(A(), P()).optional())), pm = L({ list: G.optional(), cancel: G.optional(), requests: L({ sampling: L({ createMessage: G.optional() }).optional(), elicitation: L({ create: G.optional() }).optional() }).optional() }), mm = L({ list: G.optional(), cancel: G.optional(), requests: L({ tools: L({ call: G.optional() }).optional() }).optional() }), hm = I({ experimental: z(A(), G).optional(), sampling: I({ context: G.optional(), tools: G.optional() }).optional(), elicitation: fm.optional(), roots: I({ listChanged: N().optional() }).optional(), tasks: pm.optional(), extensions: z(A(), G).optional() }), gm = Gp.extend({ protocolVersion: A(), capabilities: hm, clientInfo: dm }), _m = K.extend({ method: V("initialize"), params: gm }), vm = I({ experimental: z(A(), G).optional(), logging: G.optional(), completions: G.optional(), prompts: I({ listChanged: N().optional() }).optional(), resources: I({ subscribe: N().optional(), listChanged: N().optional() }).optional(), tools: I({ listChanged: N().optional() }).optional(), tasks: mm.optional(), extensions: z(A(), G).optional() }), ym = q.extend({ protocolVersion: A(), capabilities: vm, serverInfo: dm, instructions: A().optional() }), bm = Yp.extend({ method: V("notifications/initialized"), params: Jp.optional() }), xm = K.extend({ method: V("ping"), params: Gp.optional() }), Sm = I({ progress: M(), total: H(M()), message: H(A()) }), Cm = I({ ...Jp.shape, ...Sm.shape, progressToken: Bp }), wm = Yp.extend({ method: V("notifications/progress"), params: Cm }), Tm = Gp.extend({ cursor: Vp.optional() }), Em = K.extend({ params: Tm.optional() }), Dm = q.extend({ nextCursor: Vp.optional() }), Om = B(["working", "input_required", "completed", "failed", "cancelled"]), km = I({ taskId: A(), status: Om, ttl: R([M(), Yd()]), createdAt: A(), lastUpdatedAt: A(), pollInterval: H(M()), statusMessage: H(A()) }), Am = q.extend({ task: km }), jm = Jp.merge(km), Mm = Yp.extend({ method: V("notifications/tasks/status"), params: jm }), Nm = K.extend({ method: V("tasks/get"), params: Gp.extend({ taskId: A() }) }), Pm = q.merge(km), Fm = K.extend({ method: V("tasks/result"), params: Gp.extend({ taskId: A() }) });
5680
+ q.loose();
5681
+ var Im = Em.extend({ method: V("tasks/list") }), Lm = Dm.extend({ tasks: F(km) }), Rm = K.extend({ method: V("tasks/cancel"), params: Gp.extend({ taskId: A() }) }), zm = q.merge(km), Bm = I({ uri: A(), mimeType: H(A()), _meta: z(A(), P()).optional() }), Vm = Bm.extend({ text: A() }), Hm = A().refine((e4) => {
5672
5682
  try {
5673
5683
  return atob(e4), true;
5674
5684
  } catch (e5) {
5675
5685
  return false;
5676
5686
  }
5677
- }, { message: "Invalid Base64 string" }), Hm = zm.extend({ blob: Vm }), Um = V(["user", "assistant"]), Wm = L({ audience: I(Um).optional(), priority: N().min(0).max(1).optional(), lastModified: uu({ offset: true }).optional() }), Gm = L({ ...lm.shape, ...cm.shape, uri: j(), description: U(j()), mimeType: U(j()), size: U(N()), annotations: Wm.optional(), _meta: U(R({})) }), Km = L({ ...lm.shape, ...cm.shape, uriTemplate: j(), description: U(j()), mimeType: U(j()), annotations: Wm.optional(), _meta: U(R({})) }), qm = Tm.extend({ method: H("resources/list") }), Jm = Em.extend({ resources: I(Gm) }), Ym = Tm.extend({ method: H("resources/templates/list") }), Xm = Em.extend({ resourceTemplates: I(Km) }), Zm = Wp.extend({ uri: j() }), Qm = Zm, $m = q.extend({ method: H("resources/read"), params: Qm }), eh = J.extend({ contents: I(z([Bm, Hm])) }), th = Jp.extend({ method: H("notifications/resources/list_changed"), params: qp.optional() }), nh = Zm, rh = q.extend({ method: H("resources/subscribe"), params: nh }), ih = Zm, ah = q.extend({ method: H("resources/unsubscribe"), params: ih }), oh = qp.extend({ uri: j() }), sh = Jp.extend({ method: H("notifications/resources/updated"), params: oh }), ch = L({ name: j(), description: U(j()), required: U(P()) }), lh = L({ ...lm.shape, ...cm.shape, description: U(j()), arguments: U(I(ch)), _meta: U(R({})) }), uh = Tm.extend({ method: H("prompts/list") }), dh = Em.extend({ prompts: I(lh) }), fh = Wp.extend({ name: j(), arguments: B(j(), j()).optional() }), ph = q.extend({ method: H("prompts/get"), params: fh }), mh = L({ type: H("text"), text: j(), annotations: Wm.optional(), _meta: B(j(), F()).optional() }), hh = L({ type: H("image"), data: Vm, mimeType: j(), annotations: Wm.optional(), _meta: B(j(), F()).optional() }), gh = L({ type: H("audio"), data: Vm, mimeType: j(), annotations: Wm.optional(), _meta: B(j(), F()).optional() }), _h = L({ type: H("tool_use"), name: j(), id: j(), input: B(j(), F()), _meta: B(j(), F()).optional() }), vh = L({ type: H("resource"), resource: z([Bm, Hm]), annotations: Wm.optional(), _meta: B(j(), F()).optional() }), yh = Gm.extend({ type: H("resource_link") }), bh = z([mh, hh, gh, yh, vh]), xh = L({ role: Um, content: bh }), Sh = J.extend({ description: j().optional(), messages: I(xh) }), Ch = Jp.extend({ method: H("notifications/prompts/list_changed"), params: qp.optional() }), wh = L({ title: j().optional(), readOnlyHint: P().optional(), destructiveHint: P().optional(), idempotentHint: P().optional(), openWorldHint: P().optional() }), Th = L({ taskSupport: V(["required", "optional", "forbidden"]).optional() }), Eh = L({ ...lm.shape, ...cm.shape, description: j().optional(), inputSchema: L({ type: H("object"), properties: B(j(), K).optional(), required: I(j()).optional() }).catchall(F()), outputSchema: L({ type: H("object"), properties: B(j(), K).optional(), required: I(j()).optional() }).catchall(F()).optional(), annotations: wh.optional(), execution: Th.optional(), _meta: B(j(), F()).optional() }), Dh = Tm.extend({ method: H("tools/list") }), Oh = Em.extend({ tools: I(Eh) }), kh = J.extend({ content: I(bh).default([]), structuredContent: B(j(), F()).optional(), isError: P().optional() });
5678
- kh.or(J.extend({ toolResult: F() }));
5679
- var Ah = Gp.extend({ name: j(), arguments: B(j(), F()).optional() }), jh = q.extend({ method: H("tools/call"), params: Ah }), Mh = Jp.extend({ method: H("notifications/tools/list_changed"), params: qp.optional() });
5680
- L({ autoRefresh: P().default(true), debounceMs: N().int().nonnegative().default(300) });
5681
- var Nh = V(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]), Ph = Wp.extend({ level: Nh }), Fh = q.extend({ method: H("logging/setLevel"), params: Ph }), Ih = qp.extend({ level: Nh, logger: j().optional(), data: F() }), Lh = Jp.extend({ method: H("notifications/message"), params: Ih }), Rh = L({ hints: I(L({ name: j().optional() })).optional(), costPriority: N().min(0).max(1).optional(), speedPriority: N().min(0).max(1).optional(), intelligencePriority: N().min(0).max(1).optional() }), zh = L({ mode: V(["auto", "required", "none"]).optional() }), Bh = L({ type: H("tool_result"), toolUseId: j().describe("The unique identifier for the corresponding tool call."), content: I(bh).default([]), structuredContent: L({}).loose().optional(), isError: P().optional(), _meta: B(j(), F()).optional() }), Vh = pf("type", [mh, hh, gh]), Hh = pf("type", [mh, hh, gh, _h, Bh]), Uh = L({ role: Um, content: z([Hh, I(Hh)]), _meta: B(j(), F()).optional() }), Wh = Gp.extend({ messages: I(Uh), modelPreferences: Rh.optional(), systemPrompt: j().optional(), includeContext: V(["none", "thisServer", "allServers"]).optional(), temperature: N().optional(), maxTokens: N().int(), stopSequences: I(j()).optional(), metadata: K.optional(), tools: I(Eh).optional(), toolChoice: zh.optional() }), Gh = q.extend({ method: H("sampling/createMessage"), params: Wh }), Kh = J.extend({ model: j(), stopReason: U(V(["endTurn", "stopSequence", "maxTokens"]).or(j())), role: Um, content: Vh }), qh = J.extend({ model: j(), stopReason: U(V(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(j())), role: Um, content: z([Hh, I(Hh)]) }), Jh = L({ type: H("boolean"), title: j().optional(), description: j().optional(), default: P().optional() }), Yh = L({ type: H("string"), title: j().optional(), description: j().optional(), minLength: N().optional(), maxLength: N().optional(), format: V(["email", "uri", "date", "date-time"]).optional(), default: j().optional() }), Xh = L({ type: V(["number", "integer"]), title: j().optional(), description: j().optional(), minimum: N().optional(), maximum: N().optional(), default: N().optional() }), Zh = L({ type: H("string"), title: j().optional(), description: j().optional(), enum: I(j()), default: j().optional() }), Qh = L({ type: H("string"), title: j().optional(), description: j().optional(), oneOf: I(L({ const: j(), title: j() })), default: j().optional() }), $h = z([z([L({ type: H("string"), title: j().optional(), description: j().optional(), enum: I(j()), enumNames: I(j()).optional(), default: j().optional() }), z([Zh, Qh]), z([L({ type: H("array"), title: j().optional(), description: j().optional(), minItems: N().optional(), maxItems: N().optional(), items: L({ type: H("string"), enum: I(j()) }), default: I(j()).optional() }), L({ type: H("array"), title: j().optional(), description: j().optional(), minItems: N().optional(), maxItems: N().optional(), items: L({ anyOf: I(L({ const: j(), title: j() })) }), default: I(j()).optional() })])]), Jh, Yh, Xh]), eg = z([Gp.extend({ mode: H("form").optional(), message: j(), requestedSchema: L({ type: H("object"), properties: B(j(), $h), required: I(j()).optional() }) }), Gp.extend({ mode: H("url"), message: j(), elicitationId: j(), url: j().url() })]), tg = q.extend({ method: H("elicitation/create"), params: eg }), ng = qp.extend({ elicitationId: j() }), rg = Jp.extend({ method: H("notifications/elicitation/complete"), params: ng }), ig = J.extend({ action: V(["accept", "decline", "cancel"]), content: bp((e4) => e4 === null ? void 0 : e4, B(j(), z([j(), N(), P(), I(j())])).optional()) }), ag = L({ type: H("ref/resource"), uri: j() }), og = L({ type: H("ref/prompt"), name: j() }), sg = Wp.extend({ ref: z([og, ag]), argument: L({ name: j(), value: j() }), context: L({ arguments: B(j(), j()).optional() }).optional() }), cg = q.extend({ method: H("completion/complete"), params: sg }), lg = J.extend({ completion: R({ values: I(j()).max(100), total: U(N().int()), hasMore: U(P()) }) }), ug = L({ uri: j().startsWith("file://"), name: j().optional(), _meta: B(j(), F()).optional() }), dg = q.extend({ method: H("roots/list"), params: Wp.optional() }), fg = J.extend({ roots: I(ug) }), pg = Jp.extend({ method: H("notifications/roots/list_changed"), params: qp.optional() });
5682
- z([bm, gm, cg, Fh, ph, uh, qm, Ym, $m, rh, ah, jh, Dh, Mm, Pm, Fm, Lm]), z([sm, Cm, ym, pg, jm]), z([am, Kh, qh, ig, fg, Nm, Im, km]), z([bm, Gh, tg, dg, Mm, Pm, Fm, Lm]), z([sm, Cm, Lh, sh, th, Mh, Ch, jm, rg]), z([am, vm, lg, Sh, dh, Jm, Xm, eh, kh, Oh, Nm, Im, km]);
5683
- var X = class e2 extends Error {
5687
+ }, { message: "Invalid Base64 string" }), Um = Bm.extend({ blob: Hm }), Wm = B(["user", "assistant"]), Gm = I({ audience: F(Wm).optional(), priority: M().min(0).max(1).optional(), lastModified: du({ offset: true }).optional() }), Km = I({ ...um.shape, ...lm.shape, uri: A(), description: H(A()), mimeType: H(A()), size: H(M()), annotations: Gm.optional(), _meta: H(L({})) }), qm = I({ ...um.shape, ...lm.shape, uriTemplate: A(), description: H(A()), mimeType: H(A()), annotations: Gm.optional(), _meta: H(L({})) }), Jm = Em.extend({ method: V("resources/list") }), Ym = Dm.extend({ resources: F(Km) }), Xm = Em.extend({ method: V("resources/templates/list") }), Zm = Dm.extend({ resourceTemplates: F(qm) }), Qm = Gp.extend({ uri: A() }), $m = Qm, eh = K.extend({ method: V("resources/read"), params: $m }), th = q.extend({ contents: F(R([Vm, Um])) }), nh = Yp.extend({ method: V("notifications/resources/list_changed"), params: Jp.optional() }), rh = Qm, ih = K.extend({ method: V("resources/subscribe"), params: rh }), ah = Qm, oh = K.extend({ method: V("resources/unsubscribe"), params: ah }), sh = Jp.extend({ uri: A() }), ch = Yp.extend({ method: V("notifications/resources/updated"), params: sh }), lh = I({ name: A(), description: H(A()), required: H(N()) }), uh = I({ ...um.shape, ...lm.shape, description: H(A()), arguments: H(F(lh)), _meta: H(L({})) }), dh = Em.extend({ method: V("prompts/list") }), fh = Dm.extend({ prompts: F(uh) }), ph = Gp.extend({ name: A(), arguments: z(A(), A()).optional() }), mh = K.extend({ method: V("prompts/get"), params: ph }), hh = I({ type: V("text"), text: A(), annotations: Gm.optional(), _meta: z(A(), P()).optional() }), gh = I({ type: V("image"), data: Hm, mimeType: A(), annotations: Gm.optional(), _meta: z(A(), P()).optional() }), _h = I({ type: V("audio"), data: Hm, mimeType: A(), annotations: Gm.optional(), _meta: z(A(), P()).optional() }), vh = I({ type: V("tool_use"), name: A(), id: A(), input: z(A(), P()), _meta: z(A(), P()).optional() }), yh = I({ type: V("resource"), resource: R([Vm, Um]), annotations: Gm.optional(), _meta: z(A(), P()).optional() }), bh = Km.extend({ type: V("resource_link") }), xh = R([hh, gh, _h, bh, yh]), Sh = I({ role: Wm, content: xh }), Ch = q.extend({ description: A().optional(), messages: F(Sh) }), wh = Yp.extend({ method: V("notifications/prompts/list_changed"), params: Jp.optional() }), Th = I({ title: A().optional(), readOnlyHint: N().optional(), destructiveHint: N().optional(), idempotentHint: N().optional(), openWorldHint: N().optional() }), Eh = I({ taskSupport: B(["required", "optional", "forbidden"]).optional() }), Dh = I({ ...um.shape, ...lm.shape, description: A().optional(), inputSchema: I({ type: V("object"), properties: z(A(), G).optional(), required: F(A()).optional() }).catchall(P()), outputSchema: I({ type: V("object"), properties: z(A(), G).optional(), required: F(A()).optional() }).catchall(P()).optional(), annotations: Th.optional(), execution: Eh.optional(), _meta: z(A(), P()).optional() }), Oh = Em.extend({ method: V("tools/list") }), kh = Dm.extend({ tools: F(Dh) }), Ah = q.extend({ content: F(xh).default([]), structuredContent: z(A(), P()).optional(), isError: N().optional() });
5688
+ Ah.or(q.extend({ toolResult: P() }));
5689
+ var jh = Kp.extend({ name: A(), arguments: z(A(), P()).optional() }), Mh = K.extend({ method: V("tools/call"), params: jh }), Nh = Yp.extend({ method: V("notifications/tools/list_changed"), params: Jp.optional() });
5690
+ I({ autoRefresh: N().default(true), debounceMs: M().int().nonnegative().default(300) });
5691
+ var Ph = B(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]), Fh = Gp.extend({ level: Ph }), Ih = K.extend({ method: V("logging/setLevel"), params: Fh }), Lh = Jp.extend({ level: Ph, logger: A().optional(), data: P() }), Rh = Yp.extend({ method: V("notifications/message"), params: Lh }), zh = I({ hints: F(I({ name: A().optional() })).optional(), costPriority: M().min(0).max(1).optional(), speedPriority: M().min(0).max(1).optional(), intelligencePriority: M().min(0).max(1).optional() }), Bh = I({ mode: B(["auto", "required", "none"]).optional() }), Vh = I({ type: V("tool_result"), toolUseId: A().describe("The unique identifier for the corresponding tool call."), content: F(xh).default([]), structuredContent: I({}).loose().optional(), isError: N().optional(), _meta: z(A(), P()).optional() }), Hh = mf("type", [hh, gh, _h]), Uh = mf("type", [hh, gh, _h, vh, Vh]), Wh = I({ role: Wm, content: R([Uh, F(Uh)]), _meta: z(A(), P()).optional() }), Gh = Kp.extend({ messages: F(Wh), modelPreferences: zh.optional(), systemPrompt: A().optional(), includeContext: B(["none", "thisServer", "allServers"]).optional(), temperature: M().optional(), maxTokens: M().int(), stopSequences: F(A()).optional(), metadata: G.optional(), tools: F(Dh).optional(), toolChoice: Bh.optional() }), Kh = K.extend({ method: V("sampling/createMessage"), params: Gh }), qh = q.extend({ model: A(), stopReason: H(B(["endTurn", "stopSequence", "maxTokens"]).or(A())), role: Wm, content: Hh }), Jh = q.extend({ model: A(), stopReason: H(B(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(A())), role: Wm, content: R([Uh, F(Uh)]) }), Yh = I({ type: V("boolean"), title: A().optional(), description: A().optional(), default: N().optional() }), Xh = I({ type: V("string"), title: A().optional(), description: A().optional(), minLength: M().optional(), maxLength: M().optional(), format: B(["email", "uri", "date", "date-time"]).optional(), default: A().optional() }), Zh = I({ type: B(["number", "integer"]), title: A().optional(), description: A().optional(), minimum: M().optional(), maximum: M().optional(), default: M().optional() }), Qh = I({ type: V("string"), title: A().optional(), description: A().optional(), enum: F(A()), default: A().optional() }), $h = I({ type: V("string"), title: A().optional(), description: A().optional(), oneOf: F(I({ const: A(), title: A() })), default: A().optional() }), eg = R([R([I({ type: V("string"), title: A().optional(), description: A().optional(), enum: F(A()), enumNames: F(A()).optional(), default: A().optional() }), R([Qh, $h]), R([I({ type: V("array"), title: A().optional(), description: A().optional(), minItems: M().optional(), maxItems: M().optional(), items: I({ type: V("string"), enum: F(A()) }), default: F(A()).optional() }), I({ type: V("array"), title: A().optional(), description: A().optional(), minItems: M().optional(), maxItems: M().optional(), items: I({ anyOf: F(I({ const: A(), title: A() })) }), default: F(A()).optional() })])]), Yh, Xh, Zh]), tg = R([Kp.extend({ mode: V("form").optional(), message: A(), requestedSchema: I({ type: V("object"), properties: z(A(), eg), required: F(A()).optional() }) }), Kp.extend({ mode: V("url"), message: A(), elicitationId: A(), url: A().url() })]), ng = K.extend({ method: V("elicitation/create"), params: tg }), rg = Jp.extend({ elicitationId: A() }), ig = Yp.extend({ method: V("notifications/elicitation/complete"), params: rg }), ag = q.extend({ action: B(["accept", "decline", "cancel"]), content: xp((e4) => e4 === null ? void 0 : e4, z(A(), R([A(), M(), N(), F(A())])).optional()) }), og = I({ type: V("ref/resource"), uri: A() }), sg = I({ type: V("ref/prompt"), name: A() }), cg = Gp.extend({ ref: R([sg, og]), argument: I({ name: A(), value: A() }), context: I({ arguments: z(A(), A()).optional() }).optional() }), lg = K.extend({ method: V("completion/complete"), params: cg }), ug = q.extend({ completion: L({ values: F(A()).max(100), total: H(M().int()), hasMore: H(N()) }) }), dg = I({ uri: A().startsWith("file://"), name: A().optional(), _meta: z(A(), P()).optional() }), fg = K.extend({ method: V("roots/list"), params: Gp.optional() }), pg = q.extend({ roots: F(dg) }), mg = Yp.extend({ method: V("notifications/roots/list_changed"), params: Jp.optional() });
5692
+ R([xm, _m, lg, Ih, mh, dh, Jm, Xm, eh, ih, oh, Mh, Oh, Nm, Fm, Im, Rm]), R([cm, wm, bm, mg, Mm]), R([om, qh, Jh, ag, pg, Pm, Lm, Am]), R([xm, Kh, ng, fg, Nm, Fm, Im, Rm]), R([cm, wm, Rh, ch, nh, Nh, wh, Mm, ig]), R([om, ym, ug, Ch, fh, Ym, Zm, th, Ah, kh, Pm, Lm, Am]);
5693
+ var Y = class e2 extends Error {
5684
5694
  constructor(e4, t2, n2) {
5685
5695
  super("MCP error ".concat(e4, ": ").concat(t2)), this.code = e4, this.data = n2, this.name = "McpError";
5686
5696
  }
5687
5697
  static fromError(t2, n2, r2) {
5688
- if (t2 === Y.UrlElicitationRequired && r2) {
5698
+ if (t2 === J.UrlElicitationRequired && r2) {
5689
5699
  let e4 = r2;
5690
- if (e4.elicitations) return new mg(e4.elicitations, n2);
5700
+ if (e4.elicitations) return new hg(e4.elicitations, n2);
5691
5701
  }
5692
5702
  return new e2(t2, n2, r2);
5693
5703
  }
5694
- }, mg = class extends X {
5704
+ }, hg = class extends Y {
5695
5705
  constructor(e4, t2 = "URL elicitation".concat(e4.length > 1 ? "s" : "", " required")) {
5696
- super(Y.UrlElicitationRequired, t2, { elicitations: e4 });
5706
+ super(J.UrlElicitationRequired, t2, { elicitations: e4 });
5697
5707
  }
5698
5708
  get elicitations() {
5699
5709
  var e4, t2;
5700
5710
  return (e4 = (t2 = this.data) == null ? void 0 : t2.elicitations) == null ? [] : e4;
5701
5711
  }
5702
5712
  };
5703
- function hg(e4) {
5713
+ function gg(e4) {
5704
5714
  return e4 === "completed" || e4 === "failed" || e4 === "cancelled";
5705
5715
  }
5706
- function gg(e4) {
5707
- let t2 = au(e4), n2 = t2 == null ? void 0 : t2.method;
5716
+ function _g(e4) {
5717
+ let t2 = ou(e4), n2 = t2 == null ? void 0 : t2.method;
5708
5718
  if (!n2) throw Error("Schema is missing a method literal");
5709
- let r2 = ou(n2);
5719
+ let r2 = su(n2);
5710
5720
  if (typeof r2 != "string") throw Error("Schema method literal must be a string");
5711
5721
  return r2;
5712
5722
  }
5713
- function _g(e4, t2) {
5714
- let n2 = iu(e4, t2);
5723
+ function vg(e4, t2) {
5724
+ let n2 = au(e4, t2);
5715
5725
  if (!n2.success) throw n2.error;
5716
5726
  return n2.data;
5717
5727
  }
5718
- var vg = 6e4, yg = class {
5728
+ var yg = 6e4, bg = class {
5719
5729
  constructor(e4) {
5720
- this._options = e4, this._requestMessageId = 0, this._requestHandlers = /* @__PURE__ */ new Map(), this._requestHandlerAbortControllers = /* @__PURE__ */ new Map(), this._notificationHandlers = /* @__PURE__ */ new Map(), this._responseHandlers = /* @__PURE__ */ new Map(), this._progressHandlers = /* @__PURE__ */ new Map(), this._timeoutInfo = /* @__PURE__ */ new Map(), this._pendingDebouncedNotifications = /* @__PURE__ */ new Set(), this._taskProgressTokens = /* @__PURE__ */ new Map(), this._requestResolvers = /* @__PURE__ */ new Map(), this.setNotificationHandler(sm, (e5) => {
5730
+ this._options = e4, this._requestMessageId = 0, this._requestHandlers = /* @__PURE__ */ new Map(), this._requestHandlerAbortControllers = /* @__PURE__ */ new Map(), this._notificationHandlers = /* @__PURE__ */ new Map(), this._responseHandlers = /* @__PURE__ */ new Map(), this._progressHandlers = /* @__PURE__ */ new Map(), this._timeoutInfo = /* @__PURE__ */ new Map(), this._pendingDebouncedNotifications = /* @__PURE__ */ new Set(), this._taskProgressTokens = /* @__PURE__ */ new Map(), this._requestResolvers = /* @__PURE__ */ new Map(), this.setNotificationHandler(cm, (e5) => {
5721
5731
  this._oncancel(e5);
5722
- }), this.setNotificationHandler(Cm, (e5) => {
5732
+ }), this.setNotificationHandler(wm, (e5) => {
5723
5733
  this._onprogress(e5);
5724
- }), this.setRequestHandler(bm, (e5) => ({})), this._taskStore = e4 == null ? void 0 : e4.taskStore, this._taskMessageQueue = e4 == null ? void 0 : e4.taskMessageQueue, this._taskStore && (this.setRequestHandler(Mm, async (e5, t2) => {
5734
+ }), this.setRequestHandler(xm, (e5) => ({})), this._taskStore = e4 == null ? void 0 : e4.taskStore, this._taskMessageQueue = e4 == null ? void 0 : e4.taskMessageQueue, this._taskStore && (this.setRequestHandler(Nm, async (e5, t2) => {
5725
5735
  let n2 = await this._taskStore.getTask(e5.params.taskId, t2.sessionId);
5726
- if (!n2) throw new X(Y.InvalidParams, "Failed to retrieve task: Task not found");
5736
+ if (!n2) throw new Y(J.InvalidParams, "Failed to retrieve task: Task not found");
5727
5737
  return { ...n2 };
5728
- }), this.setRequestHandler(Pm, async (e5, t2) => {
5738
+ }), this.setRequestHandler(Fm, async (e5, t2) => {
5729
5739
  let n2 = async () => {
5730
5740
  let r2 = e5.params.taskId;
5731
5741
  if (this._taskMessageQueue) {
@@ -5737,7 +5747,7 @@ var vg = 6e4, yg = class {
5737
5747
  if (r3) if (this._requestResolvers.delete(n3), e6.type === "response") r3(t3);
5738
5748
  else {
5739
5749
  let e7 = t3;
5740
- r3(new X(e7.error.code, e7.error.message, e7.error.data));
5750
+ r3(new Y(e7.error.code, e7.error.message, e7.error.data));
5741
5751
  }
5742
5752
  else {
5743
5753
  let t4 = e6.type === "response" ? "Response" : "Error";
@@ -5749,34 +5759,34 @@ var vg = 6e4, yg = class {
5749
5759
  }
5750
5760
  }
5751
5761
  let a2 = await this._taskStore.getTask(r2, t2.sessionId);
5752
- if (!a2) throw new X(Y.InvalidParams, "Task not found: ".concat(r2));
5753
- if (!hg(a2.status)) return await this._waitForTaskUpdate(r2, t2.signal), await n2();
5754
- if (hg(a2.status)) {
5762
+ if (!a2) throw new Y(J.InvalidParams, "Task not found: ".concat(r2));
5763
+ if (!gg(a2.status)) return await this._waitForTaskUpdate(r2, t2.signal), await n2();
5764
+ if (gg(a2.status)) {
5755
5765
  let e6 = await this._taskStore.getTaskResult(r2, t2.sessionId);
5756
- return this._clearTaskQueue(r2), { ...e6, _meta: { ...e6._meta, [Rp]: { taskId: r2 } } };
5766
+ return this._clearTaskQueue(r2), { ...e6, _meta: { ...e6._meta, [zp]: { taskId: r2 } } };
5757
5767
  }
5758
5768
  return await n2();
5759
5769
  };
5760
5770
  return await n2();
5761
- }), this.setRequestHandler(Fm, async (e5, t2) => {
5771
+ }), this.setRequestHandler(Im, async (e5, t2) => {
5762
5772
  try {
5763
5773
  var n2;
5764
5774
  let { tasks: r2, nextCursor: i2 } = await this._taskStore.listTasks((n2 = e5.params) == null ? void 0 : n2.cursor, t2.sessionId);
5765
5775
  return { tasks: r2, nextCursor: i2, _meta: {} };
5766
5776
  } catch (e6) {
5767
- throw new X(Y.InvalidParams, "Failed to list tasks: ".concat(e6 instanceof Error ? e6.message : String(e6)));
5777
+ throw new Y(J.InvalidParams, "Failed to list tasks: ".concat(e6 instanceof Error ? e6.message : String(e6)));
5768
5778
  }
5769
- }), this.setRequestHandler(Lm, async (e5, t2) => {
5779
+ }), this.setRequestHandler(Rm, async (e5, t2) => {
5770
5780
  try {
5771
5781
  let n2 = await this._taskStore.getTask(e5.params.taskId, t2.sessionId);
5772
- if (!n2) throw new X(Y.InvalidParams, "Task not found: ".concat(e5.params.taskId));
5773
- if (hg(n2.status)) throw new X(Y.InvalidParams, "Cannot cancel task in terminal status: ".concat(n2.status));
5782
+ if (!n2) throw new Y(J.InvalidParams, "Task not found: ".concat(e5.params.taskId));
5783
+ if (gg(n2.status)) throw new Y(J.InvalidParams, "Cannot cancel task in terminal status: ".concat(n2.status));
5774
5784
  await this._taskStore.updateTaskStatus(e5.params.taskId, "cancelled", "Client cancelled task execution.", t2.sessionId), this._clearTaskQueue(e5.params.taskId);
5775
5785
  let r2 = await this._taskStore.getTask(e5.params.taskId, t2.sessionId);
5776
- if (!r2) throw new X(Y.InvalidParams, "Task not found after cancellation: ".concat(e5.params.taskId));
5786
+ if (!r2) throw new Y(J.InvalidParams, "Task not found after cancellation: ".concat(e5.params.taskId));
5777
5787
  return { _meta: {}, ...r2 };
5778
5788
  } catch (e6) {
5779
- throw e6 instanceof X ? e6 : new X(Y.InvalidRequest, "Failed to cancel task: ".concat(e6 instanceof Error ? e6.message : String(e6)));
5789
+ throw e6 instanceof Y ? e6 : new Y(J.InvalidRequest, "Failed to cancel task: ".concat(e6 instanceof Error ? e6.message : String(e6)));
5780
5790
  }
5781
5791
  }));
5782
5792
  }
@@ -5792,7 +5802,7 @@ var vg = 6e4, yg = class {
5792
5802
  let t2 = this._timeoutInfo.get(e4);
5793
5803
  if (!t2) return false;
5794
5804
  let n2 = Date.now() - t2.startTime;
5795
- if (t2.maxTotalTimeout && n2 >= t2.maxTotalTimeout) throw this._timeoutInfo.delete(e4), X.fromError(Y.RequestTimeout, "Maximum total timeout exceeded", { maxTotalTimeout: t2.maxTotalTimeout, totalElapsed: n2 });
5805
+ if (t2.maxTotalTimeout && n2 >= t2.maxTotalTimeout) throw this._timeoutInfo.delete(e4), Y.fromError(J.RequestTimeout, "Maximum total timeout exceeded", { maxTotalTimeout: t2.maxTotalTimeout, totalElapsed: n2 });
5796
5806
  return clearTimeout(t2.timeoutId), t2.timeoutId = setTimeout(t2.onTimeout, t2.timeout), true;
5797
5807
  }
5798
5808
  _cleanupTimeout(e4) {
@@ -5813,7 +5823,7 @@ var vg = 6e4, yg = class {
5813
5823
  };
5814
5824
  let o2 = (r2 = this._transport) == null ? void 0 : r2.onmessage;
5815
5825
  this._transport.onmessage = (e5, t3) => {
5816
- o2 == null || o2(e5, t3), tm(e5) || rm(e5) ? this._onresponse(e5) : Zp(e5) ? this._onrequest(e5, t3) : $p(e5) ? this._onnotification(e5) : this._onerror(Error("Unknown message type: ".concat(JSON.stringify(e5))));
5826
+ o2 == null || o2(e5, t3), nm(e5) || im(e5) ? this._onresponse(e5) : Qp(e5) ? this._onrequest(e5, t3) : em(e5) ? this._onnotification(e5) : this._onerror(Error("Unknown message type: ".concat(JSON.stringify(e5))));
5817
5827
  }, await this._transport.start();
5818
5828
  }
5819
5829
  _onclose() {
@@ -5824,7 +5834,7 @@ var vg = 6e4, yg = class {
5824
5834
  this._timeoutInfo.clear();
5825
5835
  for (let e5 of this._requestHandlerAbortControllers.values()) e5.abort();
5826
5836
  this._requestHandlerAbortControllers.clear();
5827
- let n2 = X.fromError(Y.ConnectionClosed, "Connection closed");
5837
+ let n2 = Y.fromError(J.ConnectionClosed, "Connection closed");
5828
5838
  this._transport = void 0, (e4 = this.onclose) == null || e4.call(this);
5829
5839
  for (let e5 of t2.values()) e5(n2);
5830
5840
  }
@@ -5841,19 +5851,19 @@ var vg = 6e4, yg = class {
5841
5851
  var n2, r2, i2;
5842
5852
  let a2 = (n2 = this._requestHandlers.get(e4.method)) == null ? this.fallbackRequestHandler : n2, o2 = this._transport, s2 = (r2 = e4.params) == null || (r2 = r2._meta) == null || (r2 = r2["io.modelcontextprotocol/related-task"]) == null ? void 0 : r2.taskId;
5843
5853
  if (a2 === void 0) {
5844
- let t3 = { jsonrpc: "2.0", id: e4.id, error: { code: Y.MethodNotFound, message: "Method not found" } };
5854
+ let t3 = { jsonrpc: "2.0", id: e4.id, error: { code: J.MethodNotFound, message: "Method not found" } };
5845
5855
  s2 && this._taskMessageQueue ? this._enqueueTaskMessage(s2, { type: "error", message: t3, timestamp: Date.now() }, o2 == null ? void 0 : o2.sessionId).catch((e5) => this._onerror(Error("Failed to enqueue error response: ".concat(e5)))) : o2 == null || o2.send(t3).catch((e5) => this._onerror(Error("Failed to send an error response: ".concat(e5))));
5846
5856
  return;
5847
5857
  }
5848
5858
  let c2 = new AbortController();
5849
5859
  this._requestHandlerAbortControllers.set(e4.id, c2);
5850
- let l2 = Kp(e4.params) ? e4.params.task : void 0, u2 = this._taskStore ? this.requestTaskStore(e4, o2 == null ? void 0 : o2.sessionId) : void 0, d2 = { signal: c2.signal, sessionId: o2 == null ? void 0 : o2.sessionId, _meta: (i2 = e4.params) == null ? void 0 : i2._meta, sendNotification: async (t3) => {
5860
+ let l2 = qp(e4.params) ? e4.params.task : void 0, u2 = this._taskStore ? this.requestTaskStore(e4, o2 == null ? void 0 : o2.sessionId) : void 0, d2 = { signal: c2.signal, sessionId: o2 == null ? void 0 : o2.sessionId, _meta: (i2 = e4.params) == null ? void 0 : i2._meta, sendNotification: async (t3) => {
5851
5861
  if (c2.signal.aborted) return;
5852
5862
  let n3 = { relatedRequestId: e4.id };
5853
5863
  s2 && (n3.relatedTask = { taskId: s2 }), await this.notification(t3, n3);
5854
5864
  }, sendRequest: async (t3, n3, r3) => {
5855
5865
  var i3, a3;
5856
- if (c2.signal.aborted) throw new X(Y.ConnectionClosed, "Request was cancelled");
5866
+ if (c2.signal.aborted) throw new Y(J.ConnectionClosed, "Request was cancelled");
5857
5867
  let o3 = { ...r3, relatedRequestId: e4.id };
5858
5868
  s2 && !o3.relatedTask && (o3.relatedTask = { taskId: s2 });
5859
5869
  let l3 = (i3 = (a3 = o3.relatedTask) == null ? void 0 : a3.taskId) == null ? s2 : i3;
@@ -5868,7 +5878,7 @@ var vg = 6e4, yg = class {
5868
5878
  }, async (t3) => {
5869
5879
  var n3;
5870
5880
  if (c2.signal.aborted) return;
5871
- let r3 = { jsonrpc: "2.0", id: e4.id, error: { code: Number.isSafeInteger(t3.code) ? t3.code : Y.InternalError, message: (n3 = t3.message) == null ? "Internal error" : n3, ...t3.data !== void 0 && { data: t3.data } } };
5881
+ let r3 = { jsonrpc: "2.0", id: e4.id, error: { code: Number.isSafeInteger(t3.code) ? t3.code : J.InternalError, message: (n3 = t3.message) == null ? "Internal error" : n3, ...t3.data !== void 0 && { data: t3.data } } };
5872
5882
  s2 && this._taskMessageQueue ? await this._enqueueTaskMessage(s2, { type: "error", message: r3, timestamp: Date.now() }, o2 == null ? void 0 : o2.sessionId) : await (o2 == null ? void 0 : o2.send(r3));
5873
5883
  }).catch((e5) => this._onerror(Error("Failed to send response: ".concat(e5)))).finally(() => {
5874
5884
  this._requestHandlerAbortControllers.get(e4.id) === c2 && this._requestHandlerAbortControllers.delete(e4.id);
@@ -5892,7 +5902,7 @@ var vg = 6e4, yg = class {
5892
5902
  _onresponse(e4) {
5893
5903
  let t2 = Number(e4.id), n2 = this._requestResolvers.get(t2);
5894
5904
  if (n2) {
5895
- this._requestResolvers.delete(t2), tm(e4) ? n2(e4) : n2(new X(e4.error.code, e4.error.message, e4.error.data));
5905
+ this._requestResolvers.delete(t2), nm(e4) ? n2(e4) : n2(new Y(e4.error.code, e4.error.message, e4.error.data));
5896
5906
  return;
5897
5907
  }
5898
5908
  let r2 = this._responseHandlers.get(t2);
@@ -5902,14 +5912,14 @@ var vg = 6e4, yg = class {
5902
5912
  }
5903
5913
  this._responseHandlers.delete(t2), this._cleanupTimeout(t2);
5904
5914
  let i2 = false;
5905
- if (tm(e4) && e4.result && typeof e4.result == "object") {
5915
+ if (nm(e4) && e4.result && typeof e4.result == "object") {
5906
5916
  let n3 = e4.result;
5907
5917
  if (n3.task && typeof n3.task == "object") {
5908
5918
  let e5 = n3.task;
5909
5919
  typeof e5.taskId == "string" && (i2 = true, this._taskProgressTokens.set(e5.taskId, t2));
5910
5920
  }
5911
5921
  }
5912
- i2 || this._progressHandlers.delete(t2), tm(e4) ? r2(e4) : r2(X.fromError(e4.error.code, e4.error.message, e4.error.data));
5922
+ i2 || this._progressHandlers.delete(t2), nm(e4) ? r2(e4) : r2(Y.fromError(e4.error.code, e4.error.message, e4.error.data));
5913
5923
  }
5914
5924
  get transport() {
5915
5925
  return this._transport;
@@ -5924,20 +5934,20 @@ var vg = 6e4, yg = class {
5924
5934
  try {
5925
5935
  yield { type: "result", result: await this.request(e4, t2, n2) };
5926
5936
  } catch (e5) {
5927
- yield { type: "error", error: e5 instanceof X ? e5 : new X(Y.InternalError, String(e5)) };
5937
+ yield { type: "error", error: e5 instanceof Y ? e5 : new Y(J.InternalError, String(e5)) };
5928
5938
  }
5929
5939
  return;
5930
5940
  }
5931
5941
  let i2;
5932
5942
  try {
5933
- let r3 = await this.request(e4, km, n2);
5943
+ let r3 = await this.request(e4, Am, n2);
5934
5944
  if (r3.task) i2 = r3.task.taskId, yield { type: "taskCreated", task: r3.task };
5935
- else throw new X(Y.InternalError, "Task creation did not return a task");
5945
+ else throw new Y(J.InternalError, "Task creation did not return a task");
5936
5946
  for (; ; ) {
5937
5947
  var a2, o2, s2, c2;
5938
5948
  let e5 = await this.getTask({ taskId: i2 }, n2);
5939
- if (yield { type: "taskStatus", task: e5 }, hg(e5.status)) {
5940
- e5.status === "completed" ? yield { type: "result", result: await this.getTaskResult({ taskId: i2 }, t2, n2) } : e5.status === "failed" ? yield { type: "error", error: new X(Y.InternalError, "Task ".concat(i2, " failed")) } : e5.status === "cancelled" && (yield { type: "error", error: new X(Y.InternalError, "Task ".concat(i2, " was cancelled")) });
5949
+ if (yield { type: "taskStatus", task: e5 }, gg(e5.status)) {
5950
+ e5.status === "completed" ? yield { type: "result", result: await this.getTaskResult({ taskId: i2 }, t2, n2) } : e5.status === "failed" ? yield { type: "error", error: new Y(J.InternalError, "Task ".concat(i2, " failed")) } : e5.status === "cancelled" && (yield { type: "error", error: new Y(J.InternalError, "Task ".concat(i2, " was cancelled")) });
5941
5951
  return;
5942
5952
  }
5943
5953
  if (e5.status === "input_required") {
@@ -5948,7 +5958,7 @@ var vg = 6e4, yg = class {
5948
5958
  await new Promise((e6) => setTimeout(e6, r4)), n2 == null || (c2 = n2.signal) == null || c2.throwIfAborted();
5949
5959
  }
5950
5960
  } catch (e5) {
5951
- yield { type: "error", error: e5 instanceof X ? e5 : new X(Y.InternalError, String(e5)) };
5961
+ yield { type: "error", error: e5 instanceof Y ? e5 : new Y(J.InternalError, String(e5)) };
5952
5962
  }
5953
5963
  }
5954
5964
  request(e4, t2, n2) {
@@ -5976,18 +5986,18 @@ var vg = 6e4, yg = class {
5976
5986
  }
5977
5987
  if (o2 && (_2.params = { ..._2.params, task: o2 }), s2) {
5978
5988
  var te2;
5979
- _2.params = { ..._2.params, _meta: { ...((te2 = _2.params) == null ? void 0 : te2._meta) || {}, [Rp]: s2 } };
5989
+ _2.params = { ..._2.params, _meta: { ...((te2 = _2.params) == null ? void 0 : te2._meta) || {}, [zp]: s2 } };
5980
5990
  }
5981
5991
  let ne2 = (e5) => {
5982
5992
  var t3;
5983
- this._responseHandlers.delete(g2), this._progressHandlers.delete(g2), this._cleanupTimeout(g2), (t3 = this._transport) == null || t3.send({ jsonrpc: "2.0", method: "notifications/cancelled", params: { requestId: g2, reason: String(e5) } }, { relatedRequestId: r2, resumptionToken: i2, onresumptiontoken: a2 }).catch((e6) => this._onerror(Error("Failed to send cancellation: ".concat(e6)))), l2(e5 instanceof X ? e5 : new X(Y.RequestTimeout, String(e5)));
5993
+ this._responseHandlers.delete(g2), this._progressHandlers.delete(g2), this._cleanupTimeout(g2), (t3 = this._transport) == null || t3.send({ jsonrpc: "2.0", method: "notifications/cancelled", params: { requestId: g2, reason: String(e5) } }, { relatedRequestId: r2, resumptionToken: i2, onresumptiontoken: a2 }).catch((e6) => this._onerror(Error("Failed to send cancellation: ".concat(e6)))), l2(e5 instanceof Y ? e5 : new Y(J.RequestTimeout, String(e5)));
5984
5994
  };
5985
5995
  this._responseHandlers.set(g2, (e5) => {
5986
5996
  var r3;
5987
5997
  if (!(!(n2 == null || (r3 = n2.signal) == null) && r3.aborted)) {
5988
5998
  if (e5 instanceof Error) return l2(e5);
5989
5999
  try {
5990
- let n3 = iu(t2, e5.result);
6000
+ let n3 = au(t2, e5.result);
5991
6001
  n3.success ? c2(n3.data) : l2(n3.error);
5992
6002
  } catch (e6) {
5993
6003
  l2(e6);
@@ -5997,13 +6007,13 @@ var vg = 6e4, yg = class {
5997
6007
  var e5;
5998
6008
  ne2(n2 == null || (e5 = n2.signal) == null ? void 0 : e5.reason);
5999
6009
  });
6000
- let v2 = (p2 = n2 == null ? void 0 : n2.timeout) == null ? vg : p2;
6001
- this._setupTimeout(g2, v2, n2 == null ? void 0 : n2.maxTotalTimeout, () => ne2(X.fromError(Y.RequestTimeout, "Request timed out", { timeout: v2 })), (m2 = n2 == null ? void 0 : n2.resetTimeoutOnProgress) == null ? false : m2);
6002
- let re2 = s2 == null ? void 0 : s2.taskId;
6003
- re2 ? (this._requestResolvers.set(g2, (e5) => {
6010
+ let v2 = (p2 = n2 == null ? void 0 : n2.timeout) == null ? yg : p2;
6011
+ this._setupTimeout(g2, v2, n2 == null ? void 0 : n2.maxTotalTimeout, () => ne2(Y.fromError(J.RequestTimeout, "Request timed out", { timeout: v2 })), (m2 = n2 == null ? void 0 : n2.resetTimeoutOnProgress) == null ? false : m2);
6012
+ let y2 = s2 == null ? void 0 : s2.taskId;
6013
+ y2 ? (this._requestResolvers.set(g2, (e5) => {
6004
6014
  let t3 = this._responseHandlers.get(g2);
6005
6015
  t3 ? t3(e5) : this._onerror(Error("Response handler missing for side-channeled request ".concat(g2)));
6006
- }), this._enqueueTaskMessage(re2, { type: "request", message: _2, timestamp: Date.now() }).catch((e5) => {
6016
+ }), this._enqueueTaskMessage(y2, { type: "request", message: _2, timestamp: Date.now() }).catch((e5) => {
6007
6017
  this._cleanupTimeout(g2), l2(e5);
6008
6018
  })) : this._transport.send(_2, { relatedRequestId: r2, resumptionToken: i2, onresumptiontoken: a2 }).catch((e5) => {
6009
6019
  this._cleanupTimeout(g2), l2(e5);
@@ -6011,16 +6021,16 @@ var vg = 6e4, yg = class {
6011
6021
  });
6012
6022
  }
6013
6023
  async getTask(e4, t2) {
6014
- return this.request({ method: "tasks/get", params: e4 }, Nm, t2);
6024
+ return this.request({ method: "tasks/get", params: e4 }, Pm, t2);
6015
6025
  }
6016
6026
  async getTaskResult(e4, t2, n2) {
6017
6027
  return this.request({ method: "tasks/result", params: e4 }, t2, n2);
6018
6028
  }
6019
6029
  async listTasks(e4, t2) {
6020
- return this.request({ method: "tasks/list", params: e4 }, Im, t2);
6030
+ return this.request({ method: "tasks/list", params: e4 }, Lm, t2);
6021
6031
  }
6022
6032
  async cancelTask(e4, t2) {
6023
- return this.request({ method: "tasks/cancel", params: e4 }, Rm, t2);
6033
+ return this.request({ method: "tasks/cancel", params: e4 }, zm, t2);
6024
6034
  }
6025
6035
  async notification(e4, t2) {
6026
6036
  var n2, r2, i2;
@@ -6029,7 +6039,7 @@ var vg = 6e4, yg = class {
6029
6039
  let a2 = t2 == null || (n2 = t2.relatedTask) == null ? void 0 : n2.taskId;
6030
6040
  if (a2) {
6031
6041
  var o2;
6032
- let n3 = { ...e4, jsonrpc: "2.0", params: { ...e4.params, _meta: { ...((o2 = e4.params) == null ? void 0 : o2._meta) || {}, [Rp]: t2.relatedTask } } };
6042
+ let n3 = { ...e4, jsonrpc: "2.0", params: { ...e4.params, _meta: { ...((o2 = e4.params) == null ? void 0 : o2._meta) || {}, [zp]: t2.relatedTask } } };
6033
6043
  await this._enqueueTaskMessage(a2, { type: "notification", message: n3, timestamp: Date.now() });
6034
6044
  return;
6035
6045
  }
@@ -6041,7 +6051,7 @@ var vg = 6e4, yg = class {
6041
6051
  let r3 = { ...e4, jsonrpc: "2.0" };
6042
6052
  if (t2 != null && t2.relatedTask) {
6043
6053
  var i3;
6044
- r3 = { ...r3, params: { ...r3.params, _meta: { ...((i3 = r3.params) == null ? void 0 : i3._meta) || {}, [Rp]: t2.relatedTask } } };
6054
+ r3 = { ...r3, params: { ...r3.params, _meta: { ...((i3 = r3.params) == null ? void 0 : i3._meta) || {}, [zp]: t2.relatedTask } } };
6045
6055
  }
6046
6056
  (n3 = this._transport) == null || n3.send(r3, t2).catch((e5) => this._onerror(e5));
6047
6057
  });
@@ -6050,14 +6060,14 @@ var vg = 6e4, yg = class {
6050
6060
  let s2 = { ...e4, jsonrpc: "2.0" };
6051
6061
  if (t2 != null && t2.relatedTask) {
6052
6062
  var c2;
6053
- s2 = { ...s2, params: { ...s2.params, _meta: { ...((c2 = s2.params) == null ? void 0 : c2._meta) || {}, [Rp]: t2.relatedTask } } };
6063
+ s2 = { ...s2, params: { ...s2.params, _meta: { ...((c2 = s2.params) == null ? void 0 : c2._meta) || {}, [zp]: t2.relatedTask } } };
6054
6064
  }
6055
6065
  await this._transport.send(s2, t2);
6056
6066
  }
6057
6067
  setRequestHandler(e4, t2) {
6058
- let n2 = gg(e4);
6068
+ let n2 = _g(e4);
6059
6069
  this.assertRequestHandlerCapability(n2), this._requestHandlers.set(n2, (n3, r2) => {
6060
- let i2 = _g(e4, n3);
6070
+ let i2 = vg(e4, n3);
6061
6071
  return Promise.resolve(t2(i2, r2));
6062
6072
  });
6063
6073
  }
@@ -6068,9 +6078,9 @@ var vg = 6e4, yg = class {
6068
6078
  if (this._requestHandlers.has(e4)) throw Error("A request handler for ".concat(e4, " already exists, which would be overridden"));
6069
6079
  }
6070
6080
  setNotificationHandler(e4, t2) {
6071
- let n2 = gg(e4);
6081
+ let n2 = _g(e4);
6072
6082
  this._notificationHandlers.set(n2, (n3) => {
6073
- let r2 = _g(e4, n3);
6083
+ let r2 = vg(e4, n3);
6074
6084
  return Promise.resolve(t2(r2));
6075
6085
  });
6076
6086
  }
@@ -6090,9 +6100,9 @@ var vg = 6e4, yg = class {
6090
6100
  async _clearTaskQueue(e4, t2) {
6091
6101
  if (this._taskMessageQueue) {
6092
6102
  let n2 = await this._taskMessageQueue.dequeueAll(e4, t2);
6093
- for (let t3 of n2) if (t3.type === "request" && Zp(t3.message)) {
6103
+ for (let t3 of n2) if (t3.type === "request" && Qp(t3.message)) {
6094
6104
  let n3 = t3.message.id, r2 = this._requestResolvers.get(n3);
6095
- r2 ? (r2(new X(Y.InternalError, "Task cancelled or completed")), this._requestResolvers.delete(n3)) : this._onerror(Error("Resolver missing for request ".concat(n3, " during task ").concat(e4, " cleanup")));
6105
+ r2 ? (r2(new Y(J.InternalError, "Task cancelled or completed")), this._requestResolvers.delete(n3)) : this._onerror(Error("Resolver missing for request ".concat(n3, " during task ").concat(e4, " cleanup")));
6096
6106
  }
6097
6107
  }
6098
6108
  }
@@ -6107,12 +6117,12 @@ var vg = 6e4, yg = class {
6107
6117
  }
6108
6118
  return new Promise((e5, n3) => {
6109
6119
  if (t2.aborted) {
6110
- n3(new X(Y.InvalidRequest, "Request cancelled"));
6120
+ n3(new Y(J.InvalidRequest, "Request cancelled"));
6111
6121
  return;
6112
6122
  }
6113
6123
  let r3 = setTimeout(e5, i2);
6114
6124
  t2.addEventListener("abort", () => {
6115
- clearTimeout(r3), n3(new X(Y.InvalidRequest, "Request cancelled"));
6125
+ clearTimeout(r3), n3(new Y(J.InvalidRequest, "Request cancelled"));
6116
6126
  }, { once: true });
6117
6127
  });
6118
6128
  }
@@ -6124,44 +6134,44 @@ var vg = 6e4, yg = class {
6124
6134
  return await n2.createTask(r2, e4.id, { method: e4.method, params: e4.params }, t2);
6125
6135
  }, getTask: async (e5) => {
6126
6136
  let r2 = await n2.getTask(e5, t2);
6127
- if (!r2) throw new X(Y.InvalidParams, "Failed to retrieve task: Task not found");
6137
+ if (!r2) throw new Y(J.InvalidParams, "Failed to retrieve task: Task not found");
6128
6138
  return r2;
6129
6139
  }, storeTaskResult: async (e5, r2, i2) => {
6130
6140
  await n2.storeTaskResult(e5, r2, i2, t2);
6131
6141
  let a2 = await n2.getTask(e5, t2);
6132
6142
  if (a2) {
6133
- let t3 = jm.parse({ method: "notifications/tasks/status", params: a2 });
6134
- await this.notification(t3), hg(a2.status) && this._cleanupTaskProgressHandler(e5);
6143
+ let t3 = Mm.parse({ method: "notifications/tasks/status", params: a2 });
6144
+ await this.notification(t3), gg(a2.status) && this._cleanupTaskProgressHandler(e5);
6135
6145
  }
6136
6146
  }, getTaskResult: (e5) => n2.getTaskResult(e5, t2), updateTaskStatus: async (e5, r2, i2) => {
6137
6147
  let a2 = await n2.getTask(e5, t2);
6138
- if (!a2) throw new X(Y.InvalidParams, 'Task "'.concat(e5, '" not found - it may have been cleaned up'));
6139
- if (hg(a2.status)) throw new X(Y.InvalidParams, 'Cannot update task "'.concat(e5, '" from terminal status "').concat(a2.status, '" to "').concat(r2, '". Terminal states (completed, failed, cancelled) cannot transition to other states.'));
6148
+ if (!a2) throw new Y(J.InvalidParams, 'Task "'.concat(e5, '" not found - it may have been cleaned up'));
6149
+ if (gg(a2.status)) throw new Y(J.InvalidParams, 'Cannot update task "'.concat(e5, '" from terminal status "').concat(a2.status, '" to "').concat(r2, '". Terminal states (completed, failed, cancelled) cannot transition to other states.'));
6140
6150
  await n2.updateTaskStatus(e5, r2, i2, t2);
6141
6151
  let o2 = await n2.getTask(e5, t2);
6142
6152
  if (o2) {
6143
- let t3 = jm.parse({ method: "notifications/tasks/status", params: o2 });
6144
- await this.notification(t3), hg(o2.status) && this._cleanupTaskProgressHandler(e5);
6153
+ let t3 = Mm.parse({ method: "notifications/tasks/status", params: o2 });
6154
+ await this.notification(t3), gg(o2.status) && this._cleanupTaskProgressHandler(e5);
6145
6155
  }
6146
6156
  }, listTasks: (e5) => n2.listTasks(e5, t2) };
6147
6157
  }
6148
6158
  };
6149
- function bg(e4) {
6159
+ function xg(e4) {
6150
6160
  return typeof e4 == "object" && !!e4 && !Array.isArray(e4);
6151
6161
  }
6152
- function xg(e4, t2) {
6162
+ function Sg(e4, t2) {
6153
6163
  let n2 = { ...e4 };
6154
6164
  for (let e5 in t2) {
6155
6165
  let r2 = e5, i2 = t2[r2];
6156
6166
  if (i2 === void 0) continue;
6157
6167
  let a2 = n2[r2];
6158
- bg(a2) && bg(i2) ? n2[r2] = { ...a2, ...i2 } : n2[r2] = i2;
6168
+ xg(a2) && xg(i2) ? n2[r2] = { ...a2, ...i2 } : n2[r2] = i2;
6159
6169
  }
6160
6170
  return n2;
6161
6171
  }
6162
- var Sg = "modulepreload", Cg = function(e4) {
6172
+ var Cg = "modulepreload", wg = function(e4) {
6163
6173
  return "/" + e4;
6164
- }, wg = {}, Tg = function(e4, t2, n2) {
6174
+ }, Tg = {}, Eg = function(e4, t2, n2) {
6165
6175
  let r2 = Promise.resolve();
6166
6176
  if (t2 && t2.length > 0) {
6167
6177
  let o3 = function(e6) {
@@ -6170,8 +6180,8 @@ var Sg = "modulepreload", Cg = function(e4) {
6170
6180
  var o2 = o3;
6171
6181
  let e5 = document.getElementsByTagName("link"), i3 = document.querySelector("meta[property=csp-nonce]"), a2 = (i3 == null ? void 0 : i3.nonce) || (i3 == null ? void 0 : i3.getAttribute("nonce"));
6172
6182
  r2 = o3(t2.map((t3) => {
6173
- if (t3 = Cg(t3, n2), t3 in wg) return;
6174
- wg[t3] = true;
6183
+ if (t3 = wg(t3, n2), t3 in Tg) return;
6184
+ Tg[t3] = true;
6175
6185
  let r3 = t3.endsWith(".css"), i4 = r3 ? '[rel="stylesheet"]' : "";
6176
6186
  if (n2) for (let n3 = e5.length - 1; n3 >= 0; n3--) {
6177
6187
  let i5 = e5[n3];
@@ -6179,7 +6189,7 @@ var Sg = "modulepreload", Cg = function(e4) {
6179
6189
  }
6180
6190
  else if (document.querySelector('link[href="'.concat(t3, '"]').concat(i4))) return;
6181
6191
  let o4 = document.createElement("link");
6182
- if (o4.rel = r3 ? "stylesheet" : Sg, r3 || (o4.as = "script"), o4.crossOrigin = "", o4.href = t3, a2 && o4.setAttribute("nonce", a2), document.head.appendChild(o4), r3) return new Promise((e6, n3) => {
6192
+ if (o4.rel = r3 ? "stylesheet" : Cg, r3 || (o4.as = "script"), o4.crossOrigin = "", o4.href = t3, a2 && o4.setAttribute("nonce", a2), document.head.appendChild(o4), r3) return new Promise((e6, n3) => {
6183
6193
  o4.addEventListener("load", e6), o4.addEventListener("error", () => n3(Error("Unable to preload CSS for ".concat(t3))));
6184
6194
  });
6185
6195
  }));
@@ -6197,7 +6207,7 @@ var Sg = "modulepreload", Cg = function(e4) {
6197
6207
  if (typeof n < "u") return n.apply(this, arguments);
6198
6208
  throw Error('Dynamic require of "' + e4 + '" is not supported');
6199
6209
  });
6200
- var Eg = class extends yg {
6210
+ var Dg = class extends bg {
6201
6211
  constructor(...e4) {
6202
6212
  super(...e4), o(this, "_registeredMethods", /* @__PURE__ */ new Set()), o(this, "_eventSlots", /* @__PURE__ */ new Map()), o(this, "setRequestHandler", (e5, t2) => {
6203
6213
  this._assertMethodNotRegistered(e5, "setRequestHandler"), super.setRequestHandler(e5, t2);
@@ -6253,7 +6263,7 @@ var Eg = class extends yg {
6253
6263
  if (this._registeredMethods.has(n2)) throw Error('Handler for "'.concat(n2, '" already registered (via ').concat(t2, "). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics."));
6254
6264
  this._registeredMethods.add(n2);
6255
6265
  }
6256
- }, Dg = "2026-01-26", Og = class {
6266
+ }, Og = "2026-01-26", kg = class {
6257
6267
  constructor(e4 = window.parent, t2) {
6258
6268
  o(this, "eventTarget", void 0), o(this, "eventSource", void 0), o(this, "messageListener", void 0), o(this, "onclose", void 0), o(this, "onerror", void 0), o(this, "onmessage", void 0), o(this, "sessionId", void 0), o(this, "setProtocolVersion", void 0), this.eventTarget = e4, this.eventSource = t2, this.messageListener = (e5) => {
6259
6269
  var n2, r2, i2;
@@ -6261,7 +6271,7 @@ var Eg = class extends yg {
6261
6271
  console.debug("Ignoring message from unknown source", e5);
6262
6272
  return;
6263
6273
  }
6264
- let a2 = im.safeParse(e5.data);
6274
+ let a2 = am.safeParse(e5.data);
6265
6275
  a2.success ? (console.debug("Parsed message", a2.data), (n2 = this.onmessage) == null || n2.call(this, a2.data)) : ((r2 = e5.data) == null ? void 0 : r2.jsonrpc) === "2.0" ? (console.error("Failed to parse message", a2.error.message, e5), (i2 = this.onerror) == null || i2.call(this, Error("Invalid JSON-RPC message received: " + a2.error.message))) : console.debug("Ignoring non-JSON-RPC message", a2.error.message, e5);
6266
6276
  };
6267
6277
  }
@@ -6275,36 +6285,36 @@ var Eg = class extends yg {
6275
6285
  var e4;
6276
6286
  window.removeEventListener("message", this.messageListener), (e4 = this.onclose) == null || e4.call(this);
6277
6287
  }
6278
- }, kg = z([H("light"), H("dark")]).describe("Color theme preference for the host environment."), Ag = z([H("inline"), H("fullscreen"), H("pip")]).describe("Display mode for UI presentation."), jg = B(z([H("--color-background-primary"), H("--color-background-secondary"), H("--color-background-tertiary"), H("--color-background-inverse"), H("--color-background-ghost"), H("--color-background-info"), H("--color-background-danger"), H("--color-background-success"), H("--color-background-warning"), H("--color-background-disabled"), H("--color-text-primary"), H("--color-text-secondary"), H("--color-text-tertiary"), H("--color-text-inverse"), H("--color-text-ghost"), H("--color-text-info"), H("--color-text-danger"), H("--color-text-success"), H("--color-text-warning"), H("--color-text-disabled"), H("--color-border-primary"), H("--color-border-secondary"), H("--color-border-tertiary"), H("--color-border-inverse"), H("--color-border-ghost"), H("--color-border-info"), H("--color-border-danger"), H("--color-border-success"), H("--color-border-warning"), H("--color-border-disabled"), H("--color-ring-primary"), H("--color-ring-secondary"), H("--color-ring-inverse"), H("--color-ring-info"), H("--color-ring-danger"), H("--color-ring-success"), H("--color-ring-warning"), H("--font-sans"), H("--font-mono"), H("--font-weight-normal"), H("--font-weight-medium"), H("--font-weight-semibold"), H("--font-weight-bold"), H("--font-text-xs-size"), H("--font-text-sm-size"), H("--font-text-md-size"), H("--font-text-lg-size"), H("--font-heading-xs-size"), H("--font-heading-sm-size"), H("--font-heading-md-size"), H("--font-heading-lg-size"), H("--font-heading-xl-size"), H("--font-heading-2xl-size"), H("--font-heading-3xl-size"), H("--font-text-xs-line-height"), H("--font-text-sm-line-height"), H("--font-text-md-line-height"), H("--font-text-lg-line-height"), H("--font-heading-xs-line-height"), H("--font-heading-sm-line-height"), H("--font-heading-md-line-height"), H("--font-heading-lg-line-height"), H("--font-heading-xl-line-height"), H("--font-heading-2xl-line-height"), H("--font-heading-3xl-line-height"), H("--border-radius-xs"), H("--border-radius-sm"), H("--border-radius-md"), H("--border-radius-lg"), H("--border-radius-xl"), H("--border-radius-full"), H("--border-width-regular"), H("--shadow-hairline"), H("--shadow-sm"), H("--shadow-md"), H("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming.").describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation."), z([j(), Kd()]).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.")).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.");
6279
- L({ method: H("ui/open-link"), params: L({ url: j().describe("URL to open in the host's browser") }) });
6280
- var Mg = L({ isError: P().optional().describe("True if the host failed to open the URL (e.g., due to security policy).") }).passthrough(), Ng = L({ isError: P().optional().describe("True if the download failed (e.g., user cancelled or host denied).") }).passthrough(), Pg = L({ isError: P().optional().describe("True if the host rejected or failed to deliver the message.") }).passthrough();
6281
- L({ method: H("ui/notifications/sandbox-proxy-ready"), params: L({}) });
6282
- var Fg = L({ connectDomains: I(j()).optional().describe("Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP `connect-src` directive\n- Empty or omitted \u2192 no network connections (secure default)"), resourceDomains: I(j()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"), frameDomains: I(j()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"), baseUriDomains: I(j()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)") }), Ig = L({ camera: L({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."), microphone: L({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."), geolocation: L({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."), clipboardWrite: L({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.") });
6283
- L({ method: H("ui/notifications/size-changed"), params: L({ width: N().optional().describe("New width in pixels."), height: N().optional().describe("New height in pixels.") }) });
6284
- var Lg = L({ method: H("ui/notifications/tool-input"), params: L({ arguments: B(j(), F().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.") }) }), Rg = L({ method: H("ui/notifications/tool-input-partial"), params: L({ arguments: B(j(), F().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).") }) }), zg = L({ method: H("ui/notifications/tool-cancelled"), params: L({ reason: j().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").') }) }), Bg = L({ fonts: j().optional() }), Vg = L({ variables: jg.optional().describe("CSS variables for theming the app."), css: Bg.optional().describe("CSS blocks that apps can inject.") }), Hg = L({ method: H("ui/resource-teardown"), params: L({}) });
6285
- B(j(), F());
6286
- var Ug = L({ text: L({}).optional().describe("Host supports text content blocks."), image: L({}).optional().describe("Host supports image content blocks."), audio: L({}).optional().describe("Host supports audio content blocks."), resource: L({}).optional().describe("Host supports resource content blocks."), resourceLink: L({}).optional().describe("Host supports resource link content blocks."), structuredContent: L({}).optional().describe("Host supports structured content.") });
6287
- L({ method: H("ui/notifications/request-teardown"), params: L({}).optional() });
6288
- var Wg = L({ experimental: L({}).optional().describe("Experimental features (structure TBD)."), openLinks: L({}).optional().describe("Host supports opening external URLs."), downloadFile: L({}).optional().describe("Host supports file downloads via ui/download-file."), serverTools: L({ listChanged: P().optional().describe("Host supports tools/list_changed notifications.") }).optional().describe("Host can proxy tool calls to the MCP server."), serverResources: L({ listChanged: P().optional().describe("Host supports resources/list_changed notifications.") }).optional().describe("Host can proxy resource reads to the MCP server."), logging: L({}).optional().describe("Host accepts log messages."), sandbox: L({ permissions: Ig.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."), csp: Fg.optional().describe("CSP domains approved by the host.") }).optional().describe("Sandbox configuration applied by the host."), updateModelContext: Ug.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."), message: Ug.optional().describe("Host supports receiving content messages (ui/message) from the view."), sampling: L({ tools: L({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.") }).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.") }), Gg = L({ experimental: L({}).optional().describe("Experimental features (structure TBD)."), tools: L({ listChanged: P().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."), availableDisplayModes: I(Ag).optional().describe("Display modes the app supports.") });
6289
- L({ method: H("ui/notifications/initialized"), params: L({}).optional() }), L({ csp: Fg.optional().describe("Content Security Policy configuration for UI resources."), permissions: Ig.optional().describe("Sandbox permissions requested by the UI resource."), domain: j().optional().describe("Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., `{hash}.claudemcpcontent.com`)\n- URL-derived subdomains (e.g., `www-example-com.oaiusercontent.com`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation)."), prefersBorder: P().optional().describe("Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- `true`: request visible border + background\n- `false`: request no visible border + background\n- omitted: host decides border") }), L({ method: H("ui/request-display-mode"), params: L({ mode: Ag.describe("The display mode being requested.") }) });
6290
- var Kg = L({ mode: Ag.describe("The display mode that was actually set. May differ from requested if not supported.") }).passthrough(), qg = z([H("model"), H("app")]).describe("Tool visibility scope - who can access the tool.");
6291
- L({ resourceUri: j().optional(), visibility: I(qg).optional().describe('Who can access this tool. Default: ["model", "app"]\n- "model": Tool visible to and callable by the agent\n- "app": Tool callable by the app from this server only'), csp: $d().optional(), permissions: $d().optional() }), L({ mimeTypes: I(j()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.') }), L({ method: H("ui/download-file"), params: L({ contents: I(z([vh, yh])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.") }) }), L({ method: H("ui/message"), params: L({ role: H("user").describe('Message role, currently only "user" is supported.'), content: I(bh).describe("Message content blocks (text, image, etc.).") }) }), L({ method: H("ui/notifications/sandbox-resource-ready"), params: L({ html: j().describe("HTML content to load into the inner iframe."), sandbox: j().optional().describe("Optional override for the inner iframe's sandbox attribute."), csp: Fg.optional().describe("CSP configuration from resource metadata."), permissions: Ig.optional().describe("Sandbox permissions from resource metadata.") }) });
6292
- var Jg = L({ method: H("ui/notifications/tool-result"), params: kh.describe("Standard MCP tool execution result.") }), Yg = L({ toolInfo: L({ id: Yp.optional().describe("JSON-RPC id of the tools/call request."), tool: Eh.describe("Tool definition including name, inputSchema, etc.") }).optional().describe("Metadata of the tool call that instantiated this App."), theme: kg.optional().describe("Current color theme preference."), styles: Vg.optional().describe("Style configuration for theming the app."), displayMode: Ag.optional().describe("How the UI is currently displayed."), availableDisplayModes: I(Ag).optional().describe("Display modes the host supports."), containerDimensions: z([L({ height: N().describe("Fixed container height in pixels.") }), L({ maxHeight: z([N(), Kd()]).optional().describe("Maximum container height in pixels.") })]).and(z([L({ width: N().describe("Fixed container width in pixels.") }), L({ maxWidth: z([N(), Kd()]).optional().describe("Maximum container width in pixels.") })])).optional().describe("Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight."), locale: j().optional().describe("User's language and region preference in BCP 47 format."), timeZone: j().optional().describe("User's timezone in IANA format."), userAgent: j().optional().describe("Host application identifier."), platform: z([H("web"), H("desktop"), H("mobile")]).optional().describe("Platform type for responsive design decisions."), deviceCapabilities: L({ touch: P().optional().describe("Whether the device supports touch input."), hover: P().optional().describe("Whether the device supports hover interactions.") }).optional().describe("Device input capabilities."), safeAreaInsets: L({ top: N().describe("Top safe area inset in pixels."), right: N().describe("Right safe area inset in pixels."), bottom: N().describe("Bottom safe area inset in pixels."), left: N().describe("Left safe area inset in pixels.") }).optional().describe("Mobile safe area boundaries in pixels.") }).passthrough(), Xg = L({ method: H("ui/notifications/host-context-changed"), params: Yg.describe("Partial context update containing only changed fields.") });
6293
- L({ method: H("ui/update-model-context"), params: L({ content: I(bh).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: B(j(), F().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.") }) }), L({ method: H("ui/initialize"), params: L({ appInfo: um.describe("App identification (name and version)."), appCapabilities: Gg.describe("Features and capabilities this app provides."), protocolVersion: j().describe("Protocol version this app supports.") }) });
6294
- var Zg = L({ protocolVersion: j().describe('Negotiated protocol version string (e.g., "2025-11-21").'), hostInfo: um.describe("Host application identification and version."), hostCapabilities: Wg.describe("Features and capabilities provided by the host."), hostContext: Yg.describe("Rich context about the host environment.") }).passthrough(), Qg = { target: "draft-2020-12" };
6295
- async function $g(e4, t2) {
6288
+ }, Ag = R([V("light"), V("dark")]).describe("Color theme preference for the host environment."), jg = R([V("inline"), V("fullscreen"), V("pip")]).describe("Display mode for UI presentation."), Mg = z(R([V("--color-background-primary"), V("--color-background-secondary"), V("--color-background-tertiary"), V("--color-background-inverse"), V("--color-background-ghost"), V("--color-background-info"), V("--color-background-danger"), V("--color-background-success"), V("--color-background-warning"), V("--color-background-disabled"), V("--color-text-primary"), V("--color-text-secondary"), V("--color-text-tertiary"), V("--color-text-inverse"), V("--color-text-ghost"), V("--color-text-info"), V("--color-text-danger"), V("--color-text-success"), V("--color-text-warning"), V("--color-text-disabled"), V("--color-border-primary"), V("--color-border-secondary"), V("--color-border-tertiary"), V("--color-border-inverse"), V("--color-border-ghost"), V("--color-border-info"), V("--color-border-danger"), V("--color-border-success"), V("--color-border-warning"), V("--color-border-disabled"), V("--color-ring-primary"), V("--color-ring-secondary"), V("--color-ring-inverse"), V("--color-ring-info"), V("--color-ring-danger"), V("--color-ring-success"), V("--color-ring-warning"), V("--font-sans"), V("--font-mono"), V("--font-weight-normal"), V("--font-weight-medium"), V("--font-weight-semibold"), V("--font-weight-bold"), V("--font-text-xs-size"), V("--font-text-sm-size"), V("--font-text-md-size"), V("--font-text-lg-size"), V("--font-heading-xs-size"), V("--font-heading-sm-size"), V("--font-heading-md-size"), V("--font-heading-lg-size"), V("--font-heading-xl-size"), V("--font-heading-2xl-size"), V("--font-heading-3xl-size"), V("--font-text-xs-line-height"), V("--font-text-sm-line-height"), V("--font-text-md-line-height"), V("--font-text-lg-line-height"), V("--font-heading-xs-line-height"), V("--font-heading-sm-line-height"), V("--font-heading-md-line-height"), V("--font-heading-lg-line-height"), V("--font-heading-xl-line-height"), V("--font-heading-2xl-line-height"), V("--font-heading-3xl-line-height"), V("--border-radius-xs"), V("--border-radius-sm"), V("--border-radius-md"), V("--border-radius-lg"), V("--border-radius-xl"), V("--border-radius-full"), V("--border-width-regular"), V("--shadow-hairline"), V("--shadow-sm"), V("--shadow-md"), V("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming.").describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation."), R([A(), qd()]).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.")).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.");
6289
+ I({ method: V("ui/open-link"), params: I({ url: A().describe("URL to open in the host's browser") }) });
6290
+ var Ng = I({ isError: N().optional().describe("True if the host failed to open the URL (e.g., due to security policy).") }).passthrough(), Pg = I({ isError: N().optional().describe("True if the download failed (e.g., user cancelled or host denied).") }).passthrough(), Fg = I({ isError: N().optional().describe("True if the host rejected or failed to deliver the message.") }).passthrough();
6291
+ I({ method: V("ui/notifications/sandbox-proxy-ready"), params: I({}) });
6292
+ var Ig = I({ connectDomains: F(A()).optional().describe("Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP `connect-src` directive\n- Empty or omitted \u2192 no network connections (secure default)"), resourceDomains: F(A()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"), frameDomains: F(A()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"), baseUriDomains: F(A()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)") }), Lg = I({ camera: I({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."), microphone: I({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."), geolocation: I({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."), clipboardWrite: I({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.") });
6293
+ I({ method: V("ui/notifications/size-changed"), params: I({ width: M().optional().describe("New width in pixels."), height: M().optional().describe("New height in pixels.") }) });
6294
+ var Rg = I({ method: V("ui/notifications/tool-input"), params: I({ arguments: z(A(), P().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.") }) }), zg = I({ method: V("ui/notifications/tool-input-partial"), params: I({ arguments: z(A(), P().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).") }) }), Bg = I({ method: V("ui/notifications/tool-cancelled"), params: I({ reason: A().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").') }) }), Vg = I({ fonts: A().optional() }), Hg = I({ variables: Mg.optional().describe("CSS variables for theming the app."), css: Vg.optional().describe("CSS blocks that apps can inject.") }), Ug = I({ method: V("ui/resource-teardown"), params: I({}) });
6295
+ z(A(), P());
6296
+ var Wg = I({ text: I({}).optional().describe("Host supports text content blocks."), image: I({}).optional().describe("Host supports image content blocks."), audio: I({}).optional().describe("Host supports audio content blocks."), resource: I({}).optional().describe("Host supports resource content blocks."), resourceLink: I({}).optional().describe("Host supports resource link content blocks."), structuredContent: I({}).optional().describe("Host supports structured content.") });
6297
+ I({ method: V("ui/notifications/request-teardown"), params: I({}).optional() });
6298
+ var Gg = I({ experimental: I({}).optional().describe("Experimental features (structure TBD)."), openLinks: I({}).optional().describe("Host supports opening external URLs."), downloadFile: I({}).optional().describe("Host supports file downloads via ui/download-file."), serverTools: I({ listChanged: N().optional().describe("Host supports tools/list_changed notifications.") }).optional().describe("Host can proxy tool calls to the MCP server."), serverResources: I({ listChanged: N().optional().describe("Host supports resources/list_changed notifications.") }).optional().describe("Host can proxy resource reads to the MCP server."), logging: I({}).optional().describe("Host accepts log messages."), sandbox: I({ permissions: Lg.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."), csp: Ig.optional().describe("CSP domains approved by the host.") }).optional().describe("Sandbox configuration applied by the host."), updateModelContext: Wg.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."), message: Wg.optional().describe("Host supports receiving content messages (ui/message) from the view."), sampling: I({ tools: I({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.") }).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.") }), Kg = I({ experimental: I({}).optional().describe("Experimental features (structure TBD)."), tools: I({ listChanged: N().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."), availableDisplayModes: F(jg).optional().describe("Display modes the app supports.") });
6299
+ I({ method: V("ui/notifications/initialized"), params: I({}).optional() }), I({ csp: Ig.optional().describe("Content Security Policy configuration for UI resources."), permissions: Lg.optional().describe("Sandbox permissions requested by the UI resource."), domain: A().optional().describe("Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., `{hash}.claudemcpcontent.com`)\n- URL-derived subdomains (e.g., `www-example-com.oaiusercontent.com`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation)."), prefersBorder: N().optional().describe("Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- `true`: request visible border + background\n- `false`: request no visible border + background\n- omitted: host decides border") }), I({ method: V("ui/request-display-mode"), params: I({ mode: jg.describe("The display mode being requested.") }) });
6300
+ var qg = I({ mode: jg.describe("The display mode that was actually set. May differ from requested if not supported.") }).passthrough(), Jg = R([V("model"), V("app")]).describe("Tool visibility scope - who can access the tool.");
6301
+ I({ resourceUri: A().optional(), visibility: F(Jg).optional().describe('Who can access this tool. Default: ["model", "app"]\n- "model": Tool visible to and callable by the agent\n- "app": Tool callable by the app from this server only'), csp: ef().optional(), permissions: ef().optional() }), I({ mimeTypes: F(A()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.') }), I({ method: V("ui/download-file"), params: I({ contents: F(R([yh, bh])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.") }) }), I({ method: V("ui/message"), params: I({ role: V("user").describe('Message role, currently only "user" is supported.'), content: F(xh).describe("Message content blocks (text, image, etc.).") }) }), I({ method: V("ui/notifications/sandbox-resource-ready"), params: I({ html: A().describe("HTML content to load into the inner iframe."), sandbox: A().optional().describe("Optional override for the inner iframe's sandbox attribute."), csp: Ig.optional().describe("CSP configuration from resource metadata."), permissions: Lg.optional().describe("Sandbox permissions from resource metadata.") }) });
6302
+ var Yg = I({ method: V("ui/notifications/tool-result"), params: Ah.describe("Standard MCP tool execution result.") }), Xg = I({ toolInfo: I({ id: Xp.optional().describe("JSON-RPC id of the tools/call request."), tool: Dh.describe("Tool definition including name, inputSchema, etc.") }).optional().describe("Metadata of the tool call that instantiated this App."), theme: Ag.optional().describe("Current color theme preference."), styles: Hg.optional().describe("Style configuration for theming the app."), displayMode: jg.optional().describe("How the UI is currently displayed."), availableDisplayModes: F(jg).optional().describe("Display modes the host supports."), containerDimensions: R([I({ height: M().describe("Fixed container height in pixels.") }), I({ maxHeight: R([M(), qd()]).optional().describe("Maximum container height in pixels.") })]).and(R([I({ width: M().describe("Fixed container width in pixels.") }), I({ maxWidth: R([M(), qd()]).optional().describe("Maximum container width in pixels.") })])).optional().describe("Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight."), locale: A().optional().describe("User's language and region preference in BCP 47 format."), timeZone: A().optional().describe("User's timezone in IANA format."), userAgent: A().optional().describe("Host application identifier."), platform: R([V("web"), V("desktop"), V("mobile")]).optional().describe("Platform type for responsive design decisions."), deviceCapabilities: I({ touch: N().optional().describe("Whether the device supports touch input."), hover: N().optional().describe("Whether the device supports hover interactions.") }).optional().describe("Device input capabilities."), safeAreaInsets: I({ top: M().describe("Top safe area inset in pixels."), right: M().describe("Right safe area inset in pixels."), bottom: M().describe("Bottom safe area inset in pixels."), left: M().describe("Left safe area inset in pixels.") }).optional().describe("Mobile safe area boundaries in pixels.") }).passthrough(), Zg = I({ method: V("ui/notifications/host-context-changed"), params: Xg.describe("Partial context update containing only changed fields.") });
6303
+ I({ method: V("ui/update-model-context"), params: I({ content: F(xh).optional().describe("Context content blocks (text, image, etc.)."), structuredContent: z(A(), P().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.") }) }), I({ method: V("ui/initialize"), params: I({ appInfo: dm.describe("App identification (name and version)."), appCapabilities: Kg.describe("Features and capabilities this app provides."), protocolVersion: A().describe("Protocol version this app supports.") }) });
6304
+ var Qg = I({ protocolVersion: A().describe('Negotiated protocol version string (e.g., "2025-11-21").'), hostInfo: dm.describe("Host application identification and version."), hostCapabilities: Gg.describe("Features and capabilities provided by the host."), hostContext: Xg.describe("Rich context about the host environment.") }).passthrough(), $g = { target: "draft-2020-12" };
6305
+ async function e_(e4, t2) {
6296
6306
  let n2 = e4["~standard"];
6297
- if (n2.jsonSchema) return n2.jsonSchema[t2](Qg);
6307
+ if (n2.jsonSchema) return n2.jsonSchema[t2]($g);
6298
6308
  if (n2.vendor === "zod") {
6299
- let { z: n3 } = await Tg(async () => {
6300
- let { z: e5 } = await Promise.resolve().then(() => Lp);
6309
+ let { z: n3 } = await Eg(async () => {
6310
+ let { z: e5 } = await Promise.resolve().then(() => Rp);
6301
6311
  return { z: e5 };
6302
6312
  }, __VITE_PRELOAD__);
6303
6313
  return n3.toJSONSchema(e4, { io: t2 });
6304
6314
  }
6305
6315
  throw Error("Schema (vendor: ".concat(n2.vendor, ") does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly."));
6306
6316
  }
6307
- async function e_(e4, t2, n2 = "") {
6317
+ async function t_(e4, t2, n2 = "") {
6308
6318
  let r2 = await e4["~standard"].validate(t2);
6309
6319
  if (r2.issues) {
6310
6320
  let e5 = r2.issues.map((e6) => {
@@ -6316,7 +6326,7 @@ async function e_(e4, t2, n2 = "") {
6316
6326
  }
6317
6327
  return r2.value;
6318
6328
  }
6319
- var t_ = class e3 extends Eg {
6329
+ var n_ = class e3 extends Dg {
6320
6330
  _assertInitialized(e4) {
6321
6331
  var t2;
6322
6332
  if (this._initializedSent) return;
@@ -6341,11 +6351,11 @@ var t_ = class e3 extends Eg {
6341
6351
  e4 === "hostcontextchanged" && (this._hostContext = { ...this._hostContext, ...t2 });
6342
6352
  }
6343
6353
  constructor(e4, t2 = {}, n2 = { autoResize: true }) {
6344
- super(n2), o(this, "_appInfo", void 0), o(this, "_capabilities", void 0), o(this, "options", void 0), o(this, "_hostCapabilities", void 0), o(this, "_hostInfo", void 0), o(this, "_hostContext", void 0), o(this, "_registeredTools", {}), o(this, "_initializedSent", false), o(this, "eventSchemas", { toolinput: Lg, toolinputpartial: Rg, toolresult: Jg, toolcancelled: zg, hostcontextchanged: Xg }), o(this, "_everHadListener", /* @__PURE__ */ new Set()), o(this, "_toolHandlersInitialized", false), o(this, "_onteardown", void 0), o(this, "_oncalltool", void 0), o(this, "_onlisttools", void 0), o(this, "sendOpenLink", this.openLink), this._appInfo = e4, this._capabilities = t2, this.options = n2, n2.allowUnsafeEval || p({ jitless: true }), this.setRequestHandler(bm, (e5) => (console.log("Received ping:", e5.params), {})), this.setEventHandler("hostcontextchanged", void 0);
6354
+ super(n2), o(this, "_appInfo", void 0), o(this, "_capabilities", void 0), o(this, "options", void 0), o(this, "_hostCapabilities", void 0), o(this, "_hostInfo", void 0), o(this, "_hostContext", void 0), o(this, "_registeredTools", {}), o(this, "_initializedSent", false), o(this, "eventSchemas", { toolinput: Rg, toolinputpartial: zg, toolresult: Yg, toolcancelled: Bg, hostcontextchanged: Zg }), o(this, "_everHadListener", /* @__PURE__ */ new Set()), o(this, "_toolHandlersInitialized", false), o(this, "_onteardown", void 0), o(this, "_oncalltool", void 0), o(this, "_onlisttools", void 0), o(this, "sendOpenLink", this.openLink), this._appInfo = e4, this._capabilities = t2, this.options = n2, n2.allowUnsafeEval || p({ jitless: true }), this.setRequestHandler(xm, (e5) => (console.log("Received ping:", e5.params), {})), this.setEventHandler("hostcontextchanged", void 0);
6345
6355
  }
6346
6356
  registerCapabilities(e4) {
6347
6357
  if (this.transport) throw Error("Cannot register capabilities after transport is established");
6348
- this._capabilities = xg(this._capabilities, e4);
6358
+ this._capabilities = Sg(this._capabilities, e4);
6349
6359
  }
6350
6360
  registerTool(e4, t2, n2) {
6351
6361
  if (this._registeredTools[e4]) throw Error("Tool ".concat(e4, " is already registered"));
@@ -6365,9 +6375,9 @@ var t_ = class e3 extends Eg {
6365
6375
  let i3;
6366
6376
  if (a2) {
6367
6377
  let a3 = o2.inputSchema;
6368
- i3 = await n2(a3 ? await e_(a3, t3 == null ? {} : t3, "Invalid input for tool ".concat(e4, ": ")) : t3 == null ? {} : t3, r3);
6378
+ i3 = await n2(a3 ? await t_(a3, t3 == null ? {} : t3, "Invalid input for tool ".concat(e4, ": ")) : t3 == null ? {} : t3, r3);
6369
6379
  } else i3 = await n2(r3);
6370
- return o2.outputSchema && !i3.isError && (i3.structuredContent = await e_(o2.outputSchema, i3.structuredContent, "Invalid output for tool ".concat(e4, ": "))), i3;
6380
+ return o2.outputSchema && !i3.isError && (i3.structuredContent = await t_(o2.outputSchema, i3.structuredContent, "Invalid output for tool ".concat(e4, ": "))), i3;
6371
6381
  } };
6372
6382
  return this._registeredTools[e4] = o2, !this._capabilities.tools && !this.transport && this.registerCapabilities({ tools: { listChanged: true } }), this.ensureToolHandlersInitialized(), i2(), o2;
6373
6383
  }
@@ -6377,8 +6387,8 @@ var t_ = class e3 extends Eg {
6377
6387
  if (!n2) throw Error("Tool ".concat(e4.name, " not found"));
6378
6388
  return n2.handler(e4.arguments, t2);
6379
6389
  }, this.onlisttools = async (e4, t2) => ({ tools: await Promise.all(Object.entries(this._registeredTools).filter(([e5, t3]) => t3.enabled).map(async ([e5, t3]) => {
6380
- let n2 = { name: e5, title: t3.title, description: t3.description, inputSchema: t3.inputSchema ? await $g(t3.inputSchema, "input") : { type: "object", properties: {} } };
6381
- return t3.outputSchema && (n2.outputSchema = await $g(t3.outputSchema, "output")), t3.annotations && (n2.annotations = t3.annotations), t3._meta && (n2._meta = t3._meta), n2;
6390
+ let n2 = { name: e5, title: t3.title, description: t3.description, inputSchema: t3.inputSchema ? await e_(t3.inputSchema, "input") : { type: "object", properties: {} } };
6391
+ return t3.outputSchema && (n2.outputSchema = await e_(t3.outputSchema, "output")), t3.annotations && (n2.annotations = t3.annotations), t3._meta && (n2._meta = t3._meta), n2;
6382
6392
  })) }));
6383
6393
  }
6384
6394
  async sendToolListChanged(e4 = {}) {
@@ -6427,7 +6437,7 @@ var t_ = class e3 extends Eg {
6427
6437
  return this._onteardown;
6428
6438
  }
6429
6439
  set onteardown(e4) {
6430
- this.warnIfRequestHandlerReplaced("onteardown", this._onteardown, e4), this._onteardown = e4, this.replaceRequestHandler(Hg, (e5, t2) => {
6440
+ this.warnIfRequestHandlerReplaced("onteardown", this._onteardown, e4), this._onteardown = e4, this.replaceRequestHandler(Ug, (e5, t2) => {
6431
6441
  if (!this._onteardown) throw Error("No onteardown handler set");
6432
6442
  return this._onteardown(e5.params, t2);
6433
6443
  });
@@ -6436,7 +6446,7 @@ var t_ = class e3 extends Eg {
6436
6446
  return this._oncalltool;
6437
6447
  }
6438
6448
  set oncalltool(e4) {
6439
- this.warnIfRequestHandlerReplaced("oncalltool", this._oncalltool, e4), this._oncalltool = e4, this.replaceRequestHandler(jh, (e5, t2) => {
6449
+ this.warnIfRequestHandlerReplaced("oncalltool", this._oncalltool, e4), this._oncalltool = e4, this.replaceRequestHandler(Mh, (e5, t2) => {
6440
6450
  if (!this._oncalltool) throw Error("No oncalltool handler set");
6441
6451
  return this._oncalltool(e5.params, t2);
6442
6452
  });
@@ -6445,7 +6455,7 @@ var t_ = class e3 extends Eg {
6445
6455
  return this._onlisttools;
6446
6456
  }
6447
6457
  set onlisttools(e4) {
6448
- this.warnIfRequestHandlerReplaced("onlisttools", this._onlisttools, e4), this._onlisttools = e4, this.replaceRequestHandler(Dh, (e5, t2) => {
6458
+ this.warnIfRequestHandlerReplaced("onlisttools", this._onlisttools, e4), this._onlisttools = e4, this.replaceRequestHandler(Oh, (e5, t2) => {
6449
6459
  if (!this._onlisttools) throw Error("No onlisttools handler set");
6450
6460
  return this._onlisttools(e5.params, t2);
6451
6461
  });
@@ -6481,40 +6491,40 @@ var t_ = class e3 extends Eg {
6481
6491
  }
6482
6492
  async callServerTool(e4, t2) {
6483
6493
  if (this._assertInitialized("callServerTool"), typeof e4 == "string") throw Error('callServerTool() expects an object as its first argument, but received a string ("'.concat(e4, '"). Did you mean: callServerTool({ name: "').concat(e4, '", arguments: { ... } })?'));
6484
- return await this.request({ method: "tools/call", params: e4 }, kh, { onprogress: () => {
6494
+ return await this.request({ method: "tools/call", params: e4 }, Ah, { onprogress: () => {
6485
6495
  }, resetTimeoutOnProgress: true, ...t2 });
6486
6496
  }
6487
6497
  async readServerResource(e4, t2) {
6488
- return this._assertInitialized("readServerResource"), await this.request({ method: "resources/read", params: e4 }, eh, t2);
6498
+ return this._assertInitialized("readServerResource"), await this.request({ method: "resources/read", params: e4 }, th, t2);
6489
6499
  }
6490
6500
  async listServerResources(e4, t2) {
6491
- return this._assertInitialized("listServerResources"), await this.request({ method: "resources/list", params: e4 }, Jm, t2);
6501
+ return this._assertInitialized("listServerResources"), await this.request({ method: "resources/list", params: e4 }, Ym, t2);
6492
6502
  }
6493
6503
  async createSamplingMessage(e4, t2) {
6494
6504
  this._assertInitialized("createSamplingMessage");
6495
- let n2 = e4.tools ? qh : Kh;
6505
+ let n2 = e4.tools ? Jh : qh;
6496
6506
  return await this.request({ method: "sampling/createMessage", params: e4 }, n2, t2);
6497
6507
  }
6498
6508
  sendMessage(e4, t2) {
6499
- return this._assertInitialized("sendMessage"), this.request({ method: "ui/message", params: e4 }, Pg, t2);
6509
+ return this._assertInitialized("sendMessage"), this.request({ method: "ui/message", params: e4 }, Fg, t2);
6500
6510
  }
6501
6511
  sendLog(e4) {
6502
6512
  return this.notification({ method: "notifications/message", params: e4 });
6503
6513
  }
6504
6514
  updateModelContext(e4, t2) {
6505
- return this._assertInitialized("updateModelContext"), this.request({ method: "ui/update-model-context", params: e4 }, am, t2);
6515
+ return this._assertInitialized("updateModelContext"), this.request({ method: "ui/update-model-context", params: e4 }, om, t2);
6506
6516
  }
6507
6517
  openLink(e4, t2) {
6508
- return this._assertInitialized("openLink"), this.request({ method: "ui/open-link", params: e4 }, Mg, t2);
6518
+ return this._assertInitialized("openLink"), this.request({ method: "ui/open-link", params: e4 }, Ng, t2);
6509
6519
  }
6510
6520
  downloadFile(e4, t2) {
6511
- return this._assertInitialized("downloadFile"), this.request({ method: "ui/download-file", params: e4 }, Ng, t2);
6521
+ return this._assertInitialized("downloadFile"), this.request({ method: "ui/download-file", params: e4 }, Pg, t2);
6512
6522
  }
6513
6523
  requestTeardown(e4 = {}) {
6514
6524
  return this.notification({ method: "ui/notifications/request-teardown", params: e4 });
6515
6525
  }
6516
6526
  requestDisplayMode(e4, t2) {
6517
- return this._assertInitialized("requestDisplayMode"), this.request({ method: "ui/request-display-mode", params: e4 }, Kg, t2);
6527
+ return this._assertInitialized("requestDisplayMode"), this.request({ method: "ui/request-display-mode", params: e4 }, qg, t2);
6518
6528
  }
6519
6529
  sendSizeChanged(e4) {
6520
6530
  return this.notification({ method: "ui/notifications/size-changed", params: e4 });
@@ -6535,12 +6545,12 @@ var t_ = class e3 extends Eg {
6535
6545
  let i2 = new ResizeObserver(r2);
6536
6546
  return i2.observe(document.documentElement), i2.observe(document.body), () => i2.disconnect();
6537
6547
  }
6538
- async connect(e4 = new Og(window.parent, window.parent), t2) {
6548
+ async connect(e4 = new kg(window.parent, window.parent), t2) {
6539
6549
  if (this.transport) throw Error("App is already connected. Call close() before connecting again.");
6540
6550
  this._initializedSent = false, await super.connect(e4);
6541
6551
  try {
6542
6552
  var n2;
6543
- let e5 = await this.request({ method: "ui/initialize", params: { appCapabilities: this._capabilities, appInfo: this._appInfo, protocolVersion: Dg } }, Zg, t2);
6553
+ let e5 = await this.request({ method: "ui/initialize", params: { appCapabilities: this._capabilities, appInfo: this._appInfo, protocolVersion: Og } }, Qg, t2);
6544
6554
  if (e5 === void 0) throw Error("Server sent invalid initialize result: ".concat(e5));
6545
6555
  this._hostCapabilities = e5.hostCapabilities, this._hostInfo = e5.hostInfo, this._hostContext = e5.hostContext, await this.notification({ method: "ui/notifications/initialized" }), this._initializedSent = true, (n2 = this.options) != null && n2.autoResize && this.setupSizeChangedNotifications();
6546
6556
  } catch (e5) {
@@ -6548,22 +6558,65 @@ var t_ = class e3 extends Eg {
6548
6558
  }
6549
6559
  }
6550
6560
  };
6551
- o(t_, "ONE_SHOT_EVENTS", /* @__PURE__ */ new Set(["toolinput", "toolinputpartial", "toolresult", "toolcancelled"]));
6552
- var n_ = '\n<path fill="#000000" opacity="1.000000" stroke="none" \n d="\nM271.999298,407.339661 \n C261.670715,407.326904 251.841461,407.374420 242.013855,407.268677 \n C239.199890,407.238434 237.013885,408.007477 234.803452,409.888947 \n C222.775757,420.126678 201.022644,420.047913 188.928619,409.737152 \n C186.855759,407.969940 184.810928,407.245697 182.174789,407.269196 \n C134.539093,407.694275 86.902893,408.061951 39.267109,408.476196 \n C36.113178,408.503601 32.982437,409.057587 29.801861,408.546783 \n C24.052990,407.623566 22.462507,405.228638 24.904346,399.976562 \n C33.467159,381.559143 42.168800,363.205994 50.871407,344.853912 \n C57.362427,331.165588 63.995720,317.544403 70.433105,303.831116 \n C72.125092,300.226776 74.234154,297.554382 78.570259,297.663635 \n C81.637459,297.740845 82.395821,295.358917 83.236298,293.224274 \n C85.348404,287.859894 88.693527,285.572235 94.940262,285.430664 \n C108.255882,285.128937 121.243744,281.783356 134.296371,279.239105 \n C151.488525,275.888000 168.621918,274.895905 185.557510,280.779816 \n C194.351532,283.835114 202.228607,288.350342 208.680908,295.120056 \n C210.650192,297.186188 212.143936,298.378754 214.760712,295.745392 \n C231.992233,278.404907 253.544067,275.127319 276.608704,277.191681 \n C292.369904,278.602386 307.542542,283.544922 323.274445,285.176636 \n C325.421204,285.399292 327.617462,285.833435 329.726532,285.596802 \n C335.328247,284.968414 338.578156,287.557617 340.245819,292.620392 \n C341.320618,295.883484 342.872192,298.092560 346.956696,297.805817 \n C350.943390,297.525940 352.611908,300.784729 354.070496,303.851593 \n C360.503387,317.377808 366.913574,330.914795 373.309479,344.458557 \n C381.342072,361.468109 389.357025,378.485992 397.366364,395.506470 \n C398.216461,397.313019 399.134613,399.110352 399.748505,401.000519 \n C401.082306,405.107178 399.280640,407.982422 394.914062,408.286163 \n C390.602509,408.586029 386.256287,408.451141 381.926178,408.410339 \n C345.450409,408.066742 308.974884,407.700836 271.999298,407.339661 \nM246.510620,362.741821 \n C261.143433,358.567017 275.980713,357.699554 290.947235,360.390320 \n C308.431824,363.533722 325.842804,367.096069 343.351166,370.094177 \n C351.113129,371.423309 359.011719,372.510468 366.913788,371.383026 \n C367.555756,368.853058 366.321381,367.124573 365.516937,365.375641 \n C355.228790,343.007812 344.770599,320.717224 334.647278,298.275421 \n C332.666138,293.883514 329.688812,292.397003 325.358582,292.404694 \n C317.838257,292.418060 310.478546,291.168701 303.174530,289.541595 \n C288.226257,286.211700 273.263733,283.097656 257.787506,284.288391 \n C244.054260,285.345062 231.984146,290.405853 221.587402,299.368317 \n C217.406067,302.972778 215.134369,307.333282 215.219788,313.294678 \n C215.517899,334.100494 215.322845,354.913208 215.366714,375.723175 \n C215.370056,377.304901 214.839600,379.010376 216.188980,380.928711 \n C224.780914,372.746490 234.457672,366.494019 246.510620,362.741821 \nM107.798798,365.158783 \n C116.445465,363.504639 125.050331,361.575897 133.747269,360.252014 \n C153.439804,357.254333 172.546036,359.144165 190.655975,368.026215 \n C196.938766,371.107635 202.166565,375.715149 207.749283,380.309753 \n C207.907074,379.363617 208.051819,378.889069 208.056122,378.413239 \n C208.245865,357.454651 208.044266,336.482513 208.788086,315.543915 \n C209.086502,307.143250 205.660461,301.622650 199.587784,296.884033 \n C195.497009,293.691925 191.073730,291.105316 186.284439,289.071442 \n C174.444901,284.043610 162.093842,283.437897 149.527267,284.619812 \n C131.153625,286.347870 113.453796,292.458984 94.909492,293.063416 \n C91.791550,293.165039 90.680435,295.361694 89.630341,297.647858 \n C79.353081,320.022797 69.082008,342.400696 58.881508,364.810638 \n C57.969891,366.813385 56.292812,368.734375 57.123024,371.210663 \n C58.817348,372.148438 60.500305,371.719879 62.138763,371.687927 \n C77.340698,371.391479 92.167809,368.408081 107.798798,365.158783 \nM267.631622,379.706451 \n C281.565796,378.898682 295.126923,381.587219 308.666748,384.244812 \n C330.459930,388.522339 352.407196,390.778625 374.630615,389.860138 \n C375.615845,389.819427 377.026794,390.459686 377.459106,388.778046 \n C374.715973,387.414490 374.714233,387.338989 371.892944,387.403931 \n C351.964417,387.862823 332.438751,384.925476 313.097626,380.454071 \n C297.329926,376.808838 281.498383,374.053162 265.178864,375.246155 \n C252.936935,376.141052 241.723877,379.824280 231.522369,386.576569 \n C229.392761,387.986115 227.315918,389.594147 226.292816,392.465881 \n C238.825912,384.980621 252.233368,380.670258 267.631622,379.706451 \nM181.598969,384.695709 \n C187.277756,386.595062 192.220184,390.149200 197.850098,392.255615 \n C195.250809,387.500824 190.796036,385.208405 186.457031,382.892700 \n C168.113480,373.103027 148.504181,373.360687 128.947296,377.024994 \n C102.788307,381.926331 76.905838,388.470734 49.979698,387.417664 \n C48.610546,387.364166 46.949966,387.157684 46.342453,389.402283 \n C47.763523,389.551544 49.051910,389.739075 50.346706,389.810791 \n C52.342136,389.921204 54.341599,389.993164 56.339970,390.010712 \n C78.572784,390.205872 100.510574,387.543030 122.245285,383.057617 \n C141.902023,379.001038 161.472031,377.534088 181.598969,384.695709 \nM155.393616,384.212769 \n C147.897339,384.033417 140.411728,384.272278 133.037476,385.681732 \n C104.120644,391.208557 75.157341,396.175079 45.513752,394.397888 \n C43.578995,394.281921 41.529377,394.257904 41.071648,396.816040 \n C42.294315,397.929047 43.508812,397.603851 44.631943,397.641968 \n C75.339966,398.684875 105.654854,394.959808 135.887619,390.160522 \n C153.833527,387.311768 171.335068,388.481659 188.050644,396.303558 \n C189.386368,396.928619 190.948212,398.430725 192.660004,395.655212 \n C181.764969,387.804565 169.434265,384.893097 155.393616,384.212769 \nM233.726013,397.370300 \n C235.703140,396.496033 237.664612,395.584167 239.659851,394.753387 \n C258.218140,387.026215 277.340363,387.862823 296.581818,391.151123 \n C323.351746,395.726074 350.260895,398.465240 377.457153,397.633514 \n C379.289429,397.577515 381.427002,398.252472 382.918640,396.210144 \n C381.776886,393.915619 379.789856,394.358124 378.067169,394.399445 \n C373.081085,394.519165 368.089691,395.033295 363.114685,394.891235 \n C340.797729,394.253876 318.803284,390.956299 296.923096,386.680054 \n C282.292786,383.820709 267.595825,382.748352 252.888840,386.339874 \n C246.223984,387.967438 239.812164,390.223724 234.073837,394.077820 \n C232.929749,394.846191 230.539932,395.509460 233.726013,397.370300 \nM189.206970,379.165649 \n C194.515472,381.783813 199.110992,385.489075 203.899292,388.904663 \n C196.539932,379.998169 187.367661,373.840454 176.363800,370.334229 \n C159.547256,364.975861 142.571869,365.682892 125.594826,369.094971 \n C102.147758,373.807343 78.900970,379.719788 54.777248,380.066376 \n C53.457943,380.085358 51.670246,379.653046 51.162437,381.663879 \n C51.603252,382.739441 52.529285,382.622406 53.312950,382.651337 \n C62.810940,383.002167 72.251251,382.296265 81.681808,381.201263 \n C99.712662,379.107666 117.108025,373.591370 135.066055,371.231018 \n C153.520660,368.805389 171.600723,370.085876 189.206970,379.165649 \nM269.919861,370.309601 \n C282.175415,369.572327 294.103882,371.674469 305.992584,374.323090 \n C326.293060,378.845673 346.630280,383.197723 367.612640,382.686798 \n C369.423279,382.642700 371.537109,383.383179 373.096710,381.552795 \n C371.697815,379.395538 369.681030,380.159882 367.976135,380.086060 \n C357.334717,379.625153 346.788269,378.462433 336.264984,376.748138 \n C317.082153,373.623230 298.429138,367.514618 278.842224,366.674957 \n C263.972748,366.037537 249.554520,367.695374 236.320984,375.066284 \n C230.289230,378.425934 224.834625,382.598999 220.955933,388.540466 \n C234.854187,376.737671 250.913162,370.893951 269.919861,370.309601 \nM211.480453,397.217804 \n C205.731110,397.229370 200.891403,399.029266 197.500351,403.926025 \n C203.962402,410.523987 220.128296,410.484589 226.420288,403.921783 \n C223.064072,398.874878 217.930557,397.593262 211.480453,397.217804 \nz"/>\n<path fill="#000000" opacity="1.000000" stroke="none" \n d="\nM225.711945,199.983551 \n C225.292816,213.680542 221.995255,226.061340 214.416275,237.110443 \n C193.610641,267.442230 154.827423,271.316071 127.459396,255.072189 \n C123.775551,252.885712 120.882744,252.441498 116.873688,254.137070 \n C109.048920,257.446503 100.934502,259.899628 92.190125,259.379364 \n C83.542915,258.864868 78.616745,253.946121 78.684906,245.377151 \n C78.745262,237.789108 81.850891,231.152817 85.454010,224.735641 \n C88.304489,219.658905 91.245934,214.612274 95.084061,210.184647 \n C97.704369,207.161865 98.745560,203.844788 98.740883,199.721481 \n C98.699577,163.227264 125.082115,136.164413 161.509293,135.193466 \n C165.322968,135.091827 169.315643,134.951172 172.935333,135.916183 \n C178.310226,137.349136 182.595856,135.650055 187.146591,133.280472 \n C195.742508,128.804581 204.726822,125.462891 214.488632,124.281441 \n C227.834183,122.666267 234.932129,130.259964 231.851456,143.429901 \n C230.052628,151.119858 226.752274,158.212524 222.361359,164.760590 \n C220.327988,167.792908 220.017624,170.616058 221.473969,174.100281 \n C224.861847,182.205597 225.468460,190.867706 225.711945,199.983551 \nM212.976044,168.510834 \n C218.716415,160.882339 223.731537,152.880203 226.146439,143.492218 \n C228.308197,135.088409 225.333649,129.095078 217.846207,128.560104 \n C206.177933,127.726410 196.082672,132.729645 185.171341,138.349640 \n C187.816025,139.540573 189.463272,140.263855 191.095154,141.020279 \n C200.031250,145.162369 207.546783,151.055435 213.272079,159.124069 \n C214.113724,160.310181 215.663269,161.586777 214.829697,163.091461 \n C211.652573,168.826584 208.025726,174.252899 202.566681,179.006516 \n C201.549835,176.444733 200.923126,174.750778 200.212067,173.093002 \n C195.433319,161.951874 188.776291,152.487198 177.473648,146.963547 \n C174.609192,145.563675 172.292969,145.608887 169.595505,147.317566 \n C152.514618,158.137161 136.926010,170.829269 122.270142,184.706512 \n C120.686935,186.205612 119.364059,187.876480 119.190598,190.236053 \n C118.688568,197.065308 118.869385,203.864960 119.793037,210.651215 \n C121.255951,221.399521 126.239235,230.774902 131.349335,240.326111 \n C132.993088,240.252151 134.400635,239.345810 135.765091,238.453430 \n C144.400665,232.805634 153.133560,227.309341 161.286926,220.942139 \n C164.075363,218.764557 165.766891,216.649643 165.788437,212.774612 \n C165.823334,206.491791 170.826294,202.743942 176.973877,204.085724 \n C179.390350,204.613144 181.027267,204.346497 182.788132,202.634048 \n C193.536697,192.180939 204.343719,181.790634 212.976044,168.510834 \nM196.311264,238.774429 \n C205.223999,223.519989 207.059082,207.185013 204.308746,188.929276 \n C197.720764,194.995590 193.078613,201.379272 186.899475,206.146912 \n C184.795013,207.770645 183.863800,209.506882 184.135178,212.471619 \n C184.705627,218.704117 179.426636,223.881546 173.582184,222.584213 \n C169.742706,221.731949 167.311813,222.850525 164.693726,225.165817 \n C162.585052,227.030579 160.129227,228.496109 157.916992,230.251648 \n C151.305984,235.497787 144.002090,239.748337 136.880554,244.346085 \n C150.810440,260.746155 181.289062,262.140137 196.311264,238.774429 \nM101.954178,222.323334 \n C101.003220,218.898468 100.052269,215.473602 98.901512,211.329163 \n C91.673454,221.459351 85.061653,230.979462 83.800476,243.065674 \n C83.190475,248.911530 86.140854,252.991577 91.843674,253.598953 \n C100.879066,254.561295 109.050667,251.508087 117.776840,247.739761 \n C110.183830,240.480621 105.126755,232.419739 101.954178,222.323334 \nM129.303619,173.800827 \n C141.200867,163.092194 153.936737,153.435806 167.699600,144.113556 \n C142.265121,138.861908 122.832809,158.201233 120.741943,181.434265 \n C123.701614,178.779602 126.227280,176.514221 129.303619,173.800827 \nz"/>\n<path fill="#000000" opacity="1.000000" stroke="none" \n d="\nM303.890289,146.925385 \n C294.866760,145.693848 286.205383,146.091278 277.553253,146.129028 \n C274.682220,146.141556 273.181793,147.671539 273.166107,150.442932 \n C273.091675,163.601196 273.077667,176.759872 273.081329,189.918411 \n C273.082001,192.406921 274.494934,193.552460 276.937256,193.372025 \n C283.410400,192.893829 289.891785,193.849091 296.384918,192.990082 \n C302.764832,192.146042 305.158112,190.344193 306.692535,184.089020 \n C307.235382,181.876251 307.187286,179.265961 310.679718,179.543655 \n C314.576965,179.853531 313.304535,182.788513 313.331177,184.822464 \n C313.446777,193.650375 313.414459,202.480835 313.357178,211.309860 \n C313.345062,213.176498 314.025330,215.547760 311.125916,216.108017 \n C308.181152,216.677017 307.483246,214.609131 306.810913,212.420654 \n C304.033295,203.379379 302.826111,202.383514 293.612366,202.136795 \n C287.951996,201.985245 282.284821,202.095779 276.620728,202.073822 \n C274.458862,202.065445 272.726898,202.213684 272.784180,205.228424 \n C273.021454,217.718079 272.936798,230.215103 273.276398,242.701096 \n C273.457733,249.369125 276.214417,252.551270 282.926849,253.281769 \n C291.027008,254.163300 299.226135,254.145599 307.352356,253.251953 \n C312.999756,252.630905 317.204712,249.540955 320.247101,244.758759 \n C322.583008,241.087021 324.532837,237.237045 325.998291,233.147171 \n C326.947784,230.497269 328.945129,230.338547 331.263367,230.737045 \n C334.041382,231.214569 333.553925,233.378311 333.209534,235.041443 \n C331.592285,242.851761 329.818146,250.630188 328.038513,258.405914 \n C327.503571,260.743042 325.814056,261.386139 323.529480,261.382263 \n C296.540894,261.336487 269.552185,261.349609 242.563522,261.342163 \n C240.627609,261.341644 238.875626,261.167267 238.750366,258.547577 \n C238.621719,255.857010 240.290970,255.132553 242.450241,254.814926 \n C244.416840,254.525604 246.423996,254.408676 248.345718,253.939240 \n C252.140762,253.012177 254.378326,250.577759 254.748062,246.598297 \n C255.040283,243.453079 255.546494,240.306641 255.555603,237.159592 \n C255.625992,212.836670 255.601456,188.513474 255.596008,164.190353 \n C255.595520,162.025604 255.659683,159.847961 255.458328,157.698364 \n C254.517105,147.650314 254.258377,147.345215 244.369675,144.738083 \n C242.335770,144.201843 240.500778,143.847748 240.671783,141.047424 \n C240.847351,138.172440 242.794098,137.983368 244.862549,137.980408 \n C269.351929,137.945312 293.841339,137.945053 318.330719,137.916443 \n C320.960175,137.913376 322.192291,138.989319 322.370209,141.765167 \n C322.795044,148.393188 323.488800,155.003876 324.068054,161.622101 \n C324.253540,163.741455 324.186035,165.668442 321.414673,166.105850 \n C318.986237,166.489105 317.653625,165.457245 316.990479,163.191238 \n C316.290039,160.797745 315.610168,158.386200 314.704071,156.067429 \n C312.829437,151.269943 309.623779,147.903503 303.890289,146.925385 \nz"/>\n', r_ = null;
6553
- function i_(e4) {
6554
- r_ = e4;
6561
+ o(n_, "ONE_SHOT_EVENTS", /* @__PURE__ */ new Set(["toolinput", "toolinputpartial", "toolresult", "toolcancelled"]));
6562
+ var r_ = '\n<path fill="#000000" opacity="1.000000" stroke="none" \n d="\nM271.999298,407.339661 \n C261.670715,407.326904 251.841461,407.374420 242.013855,407.268677 \n C239.199890,407.238434 237.013885,408.007477 234.803452,409.888947 \n C222.775757,420.126678 201.022644,420.047913 188.928619,409.737152 \n C186.855759,407.969940 184.810928,407.245697 182.174789,407.269196 \n C134.539093,407.694275 86.902893,408.061951 39.267109,408.476196 \n C36.113178,408.503601 32.982437,409.057587 29.801861,408.546783 \n C24.052990,407.623566 22.462507,405.228638 24.904346,399.976562 \n C33.467159,381.559143 42.168800,363.205994 50.871407,344.853912 \n C57.362427,331.165588 63.995720,317.544403 70.433105,303.831116 \n C72.125092,300.226776 74.234154,297.554382 78.570259,297.663635 \n C81.637459,297.740845 82.395821,295.358917 83.236298,293.224274 \n C85.348404,287.859894 88.693527,285.572235 94.940262,285.430664 \n C108.255882,285.128937 121.243744,281.783356 134.296371,279.239105 \n C151.488525,275.888000 168.621918,274.895905 185.557510,280.779816 \n C194.351532,283.835114 202.228607,288.350342 208.680908,295.120056 \n C210.650192,297.186188 212.143936,298.378754 214.760712,295.745392 \n C231.992233,278.404907 253.544067,275.127319 276.608704,277.191681 \n C292.369904,278.602386 307.542542,283.544922 323.274445,285.176636 \n C325.421204,285.399292 327.617462,285.833435 329.726532,285.596802 \n C335.328247,284.968414 338.578156,287.557617 340.245819,292.620392 \n C341.320618,295.883484 342.872192,298.092560 346.956696,297.805817 \n C350.943390,297.525940 352.611908,300.784729 354.070496,303.851593 \n C360.503387,317.377808 366.913574,330.914795 373.309479,344.458557 \n C381.342072,361.468109 389.357025,378.485992 397.366364,395.506470 \n C398.216461,397.313019 399.134613,399.110352 399.748505,401.000519 \n C401.082306,405.107178 399.280640,407.982422 394.914062,408.286163 \n C390.602509,408.586029 386.256287,408.451141 381.926178,408.410339 \n C345.450409,408.066742 308.974884,407.700836 271.999298,407.339661 \nM246.510620,362.741821 \n C261.143433,358.567017 275.980713,357.699554 290.947235,360.390320 \n C308.431824,363.533722 325.842804,367.096069 343.351166,370.094177 \n C351.113129,371.423309 359.011719,372.510468 366.913788,371.383026 \n C367.555756,368.853058 366.321381,367.124573 365.516937,365.375641 \n C355.228790,343.007812 344.770599,320.717224 334.647278,298.275421 \n C332.666138,293.883514 329.688812,292.397003 325.358582,292.404694 \n C317.838257,292.418060 310.478546,291.168701 303.174530,289.541595 \n C288.226257,286.211700 273.263733,283.097656 257.787506,284.288391 \n C244.054260,285.345062 231.984146,290.405853 221.587402,299.368317 \n C217.406067,302.972778 215.134369,307.333282 215.219788,313.294678 \n C215.517899,334.100494 215.322845,354.913208 215.366714,375.723175 \n C215.370056,377.304901 214.839600,379.010376 216.188980,380.928711 \n C224.780914,372.746490 234.457672,366.494019 246.510620,362.741821 \nM107.798798,365.158783 \n C116.445465,363.504639 125.050331,361.575897 133.747269,360.252014 \n C153.439804,357.254333 172.546036,359.144165 190.655975,368.026215 \n C196.938766,371.107635 202.166565,375.715149 207.749283,380.309753 \n C207.907074,379.363617 208.051819,378.889069 208.056122,378.413239 \n C208.245865,357.454651 208.044266,336.482513 208.788086,315.543915 \n C209.086502,307.143250 205.660461,301.622650 199.587784,296.884033 \n C195.497009,293.691925 191.073730,291.105316 186.284439,289.071442 \n C174.444901,284.043610 162.093842,283.437897 149.527267,284.619812 \n C131.153625,286.347870 113.453796,292.458984 94.909492,293.063416 \n C91.791550,293.165039 90.680435,295.361694 89.630341,297.647858 \n C79.353081,320.022797 69.082008,342.400696 58.881508,364.810638 \n C57.969891,366.813385 56.292812,368.734375 57.123024,371.210663 \n C58.817348,372.148438 60.500305,371.719879 62.138763,371.687927 \n C77.340698,371.391479 92.167809,368.408081 107.798798,365.158783 \nM267.631622,379.706451 \n C281.565796,378.898682 295.126923,381.587219 308.666748,384.244812 \n C330.459930,388.522339 352.407196,390.778625 374.630615,389.860138 \n C375.615845,389.819427 377.026794,390.459686 377.459106,388.778046 \n C374.715973,387.414490 374.714233,387.338989 371.892944,387.403931 \n C351.964417,387.862823 332.438751,384.925476 313.097626,380.454071 \n C297.329926,376.808838 281.498383,374.053162 265.178864,375.246155 \n C252.936935,376.141052 241.723877,379.824280 231.522369,386.576569 \n C229.392761,387.986115 227.315918,389.594147 226.292816,392.465881 \n C238.825912,384.980621 252.233368,380.670258 267.631622,379.706451 \nM181.598969,384.695709 \n C187.277756,386.595062 192.220184,390.149200 197.850098,392.255615 \n C195.250809,387.500824 190.796036,385.208405 186.457031,382.892700 \n C168.113480,373.103027 148.504181,373.360687 128.947296,377.024994 \n C102.788307,381.926331 76.905838,388.470734 49.979698,387.417664 \n C48.610546,387.364166 46.949966,387.157684 46.342453,389.402283 \n C47.763523,389.551544 49.051910,389.739075 50.346706,389.810791 \n C52.342136,389.921204 54.341599,389.993164 56.339970,390.010712 \n C78.572784,390.205872 100.510574,387.543030 122.245285,383.057617 \n C141.902023,379.001038 161.472031,377.534088 181.598969,384.695709 \nM155.393616,384.212769 \n C147.897339,384.033417 140.411728,384.272278 133.037476,385.681732 \n C104.120644,391.208557 75.157341,396.175079 45.513752,394.397888 \n C43.578995,394.281921 41.529377,394.257904 41.071648,396.816040 \n C42.294315,397.929047 43.508812,397.603851 44.631943,397.641968 \n C75.339966,398.684875 105.654854,394.959808 135.887619,390.160522 \n C153.833527,387.311768 171.335068,388.481659 188.050644,396.303558 \n C189.386368,396.928619 190.948212,398.430725 192.660004,395.655212 \n C181.764969,387.804565 169.434265,384.893097 155.393616,384.212769 \nM233.726013,397.370300 \n C235.703140,396.496033 237.664612,395.584167 239.659851,394.753387 \n C258.218140,387.026215 277.340363,387.862823 296.581818,391.151123 \n C323.351746,395.726074 350.260895,398.465240 377.457153,397.633514 \n C379.289429,397.577515 381.427002,398.252472 382.918640,396.210144 \n C381.776886,393.915619 379.789856,394.358124 378.067169,394.399445 \n C373.081085,394.519165 368.089691,395.033295 363.114685,394.891235 \n C340.797729,394.253876 318.803284,390.956299 296.923096,386.680054 \n C282.292786,383.820709 267.595825,382.748352 252.888840,386.339874 \n C246.223984,387.967438 239.812164,390.223724 234.073837,394.077820 \n C232.929749,394.846191 230.539932,395.509460 233.726013,397.370300 \nM189.206970,379.165649 \n C194.515472,381.783813 199.110992,385.489075 203.899292,388.904663 \n C196.539932,379.998169 187.367661,373.840454 176.363800,370.334229 \n C159.547256,364.975861 142.571869,365.682892 125.594826,369.094971 \n C102.147758,373.807343 78.900970,379.719788 54.777248,380.066376 \n C53.457943,380.085358 51.670246,379.653046 51.162437,381.663879 \n C51.603252,382.739441 52.529285,382.622406 53.312950,382.651337 \n C62.810940,383.002167 72.251251,382.296265 81.681808,381.201263 \n C99.712662,379.107666 117.108025,373.591370 135.066055,371.231018 \n C153.520660,368.805389 171.600723,370.085876 189.206970,379.165649 \nM269.919861,370.309601 \n C282.175415,369.572327 294.103882,371.674469 305.992584,374.323090 \n C326.293060,378.845673 346.630280,383.197723 367.612640,382.686798 \n C369.423279,382.642700 371.537109,383.383179 373.096710,381.552795 \n C371.697815,379.395538 369.681030,380.159882 367.976135,380.086060 \n C357.334717,379.625153 346.788269,378.462433 336.264984,376.748138 \n C317.082153,373.623230 298.429138,367.514618 278.842224,366.674957 \n C263.972748,366.037537 249.554520,367.695374 236.320984,375.066284 \n C230.289230,378.425934 224.834625,382.598999 220.955933,388.540466 \n C234.854187,376.737671 250.913162,370.893951 269.919861,370.309601 \nM211.480453,397.217804 \n C205.731110,397.229370 200.891403,399.029266 197.500351,403.926025 \n C203.962402,410.523987 220.128296,410.484589 226.420288,403.921783 \n C223.064072,398.874878 217.930557,397.593262 211.480453,397.217804 \nz"/>\n<path fill="#000000" opacity="1.000000" stroke="none" \n d="\nM225.711945,199.983551 \n C225.292816,213.680542 221.995255,226.061340 214.416275,237.110443 \n C193.610641,267.442230 154.827423,271.316071 127.459396,255.072189 \n C123.775551,252.885712 120.882744,252.441498 116.873688,254.137070 \n C109.048920,257.446503 100.934502,259.899628 92.190125,259.379364 \n C83.542915,258.864868 78.616745,253.946121 78.684906,245.377151 \n C78.745262,237.789108 81.850891,231.152817 85.454010,224.735641 \n C88.304489,219.658905 91.245934,214.612274 95.084061,210.184647 \n C97.704369,207.161865 98.745560,203.844788 98.740883,199.721481 \n C98.699577,163.227264 125.082115,136.164413 161.509293,135.193466 \n C165.322968,135.091827 169.315643,134.951172 172.935333,135.916183 \n C178.310226,137.349136 182.595856,135.650055 187.146591,133.280472 \n C195.742508,128.804581 204.726822,125.462891 214.488632,124.281441 \n C227.834183,122.666267 234.932129,130.259964 231.851456,143.429901 \n C230.052628,151.119858 226.752274,158.212524 222.361359,164.760590 \n C220.327988,167.792908 220.017624,170.616058 221.473969,174.100281 \n C224.861847,182.205597 225.468460,190.867706 225.711945,199.983551 \nM212.976044,168.510834 \n C218.716415,160.882339 223.731537,152.880203 226.146439,143.492218 \n C228.308197,135.088409 225.333649,129.095078 217.846207,128.560104 \n C206.177933,127.726410 196.082672,132.729645 185.171341,138.349640 \n C187.816025,139.540573 189.463272,140.263855 191.095154,141.020279 \n C200.031250,145.162369 207.546783,151.055435 213.272079,159.124069 \n C214.113724,160.310181 215.663269,161.586777 214.829697,163.091461 \n C211.652573,168.826584 208.025726,174.252899 202.566681,179.006516 \n C201.549835,176.444733 200.923126,174.750778 200.212067,173.093002 \n C195.433319,161.951874 188.776291,152.487198 177.473648,146.963547 \n C174.609192,145.563675 172.292969,145.608887 169.595505,147.317566 \n C152.514618,158.137161 136.926010,170.829269 122.270142,184.706512 \n C120.686935,186.205612 119.364059,187.876480 119.190598,190.236053 \n C118.688568,197.065308 118.869385,203.864960 119.793037,210.651215 \n C121.255951,221.399521 126.239235,230.774902 131.349335,240.326111 \n C132.993088,240.252151 134.400635,239.345810 135.765091,238.453430 \n C144.400665,232.805634 153.133560,227.309341 161.286926,220.942139 \n C164.075363,218.764557 165.766891,216.649643 165.788437,212.774612 \n C165.823334,206.491791 170.826294,202.743942 176.973877,204.085724 \n C179.390350,204.613144 181.027267,204.346497 182.788132,202.634048 \n C193.536697,192.180939 204.343719,181.790634 212.976044,168.510834 \nM196.311264,238.774429 \n C205.223999,223.519989 207.059082,207.185013 204.308746,188.929276 \n C197.720764,194.995590 193.078613,201.379272 186.899475,206.146912 \n C184.795013,207.770645 183.863800,209.506882 184.135178,212.471619 \n C184.705627,218.704117 179.426636,223.881546 173.582184,222.584213 \n C169.742706,221.731949 167.311813,222.850525 164.693726,225.165817 \n C162.585052,227.030579 160.129227,228.496109 157.916992,230.251648 \n C151.305984,235.497787 144.002090,239.748337 136.880554,244.346085 \n C150.810440,260.746155 181.289062,262.140137 196.311264,238.774429 \nM101.954178,222.323334 \n C101.003220,218.898468 100.052269,215.473602 98.901512,211.329163 \n C91.673454,221.459351 85.061653,230.979462 83.800476,243.065674 \n C83.190475,248.911530 86.140854,252.991577 91.843674,253.598953 \n C100.879066,254.561295 109.050667,251.508087 117.776840,247.739761 \n C110.183830,240.480621 105.126755,232.419739 101.954178,222.323334 \nM129.303619,173.800827 \n C141.200867,163.092194 153.936737,153.435806 167.699600,144.113556 \n C142.265121,138.861908 122.832809,158.201233 120.741943,181.434265 \n C123.701614,178.779602 126.227280,176.514221 129.303619,173.800827 \nz"/>\n<path fill="#000000" opacity="1.000000" stroke="none" \n d="\nM303.890289,146.925385 \n C294.866760,145.693848 286.205383,146.091278 277.553253,146.129028 \n C274.682220,146.141556 273.181793,147.671539 273.166107,150.442932 \n C273.091675,163.601196 273.077667,176.759872 273.081329,189.918411 \n C273.082001,192.406921 274.494934,193.552460 276.937256,193.372025 \n C283.410400,192.893829 289.891785,193.849091 296.384918,192.990082 \n C302.764832,192.146042 305.158112,190.344193 306.692535,184.089020 \n C307.235382,181.876251 307.187286,179.265961 310.679718,179.543655 \n C314.576965,179.853531 313.304535,182.788513 313.331177,184.822464 \n C313.446777,193.650375 313.414459,202.480835 313.357178,211.309860 \n C313.345062,213.176498 314.025330,215.547760 311.125916,216.108017 \n C308.181152,216.677017 307.483246,214.609131 306.810913,212.420654 \n C304.033295,203.379379 302.826111,202.383514 293.612366,202.136795 \n C287.951996,201.985245 282.284821,202.095779 276.620728,202.073822 \n C274.458862,202.065445 272.726898,202.213684 272.784180,205.228424 \n C273.021454,217.718079 272.936798,230.215103 273.276398,242.701096 \n C273.457733,249.369125 276.214417,252.551270 282.926849,253.281769 \n C291.027008,254.163300 299.226135,254.145599 307.352356,253.251953 \n C312.999756,252.630905 317.204712,249.540955 320.247101,244.758759 \n C322.583008,241.087021 324.532837,237.237045 325.998291,233.147171 \n C326.947784,230.497269 328.945129,230.338547 331.263367,230.737045 \n C334.041382,231.214569 333.553925,233.378311 333.209534,235.041443 \n C331.592285,242.851761 329.818146,250.630188 328.038513,258.405914 \n C327.503571,260.743042 325.814056,261.386139 323.529480,261.382263 \n C296.540894,261.336487 269.552185,261.349609 242.563522,261.342163 \n C240.627609,261.341644 238.875626,261.167267 238.750366,258.547577 \n C238.621719,255.857010 240.290970,255.132553 242.450241,254.814926 \n C244.416840,254.525604 246.423996,254.408676 248.345718,253.939240 \n C252.140762,253.012177 254.378326,250.577759 254.748062,246.598297 \n C255.040283,243.453079 255.546494,240.306641 255.555603,237.159592 \n C255.625992,212.836670 255.601456,188.513474 255.596008,164.190353 \n C255.595520,162.025604 255.659683,159.847961 255.458328,157.698364 \n C254.517105,147.650314 254.258377,147.345215 244.369675,144.738083 \n C242.335770,144.201843 240.500778,143.847748 240.671783,141.047424 \n C240.847351,138.172440 242.794098,137.983368 244.862549,137.980408 \n C269.351929,137.945312 293.841339,137.945053 318.330719,137.916443 \n C320.960175,137.913376 322.192291,138.989319 322.370209,141.765167 \n C322.795044,148.393188 323.488800,155.003876 324.068054,161.622101 \n C324.253540,163.741455 324.186035,165.668442 321.414673,166.105850 \n C318.986237,166.489105 317.653625,165.457245 316.990479,163.191238 \n C316.290039,160.797745 315.610168,158.386200 314.704071,156.067429 \n C312.829437,151.269943 309.623779,147.903503 303.890289,146.925385 \nz"/>\n';
6563
+ function i_(e4, t2) {
6564
+ var n2, r2, i2, a2, o2, s2;
6565
+ let c2 = document.getElementById(t2), l2 = c2 == null ? void 0 : c2.querySelector("#btn-zoom-in"), u2 = c2 == null ? void 0 : c2.querySelector("#btn-zoom-out"), d2 = c2 == null ? void 0 : c2.querySelector("#btn-reset-view");
6566
+ c2 && (c2.hidden = false);
6567
+ let f2 = (n2 = (r2 = e4.getAttribute("viewBox")) == null ? void 0 : r2.split(/[\s,]+/).map(Number)) == null ? [0, 0, 500, 500] : n2, p2 = (i2 = f2[0]) == null ? 0 : i2, m2 = (a2 = f2[1]) == null ? 0 : a2, h2 = (o2 = f2[2]) == null ? 500 : o2, g2 = (s2 = f2[3]) == null ? 500 : s2, _2 = false, ee2 = 0, te2 = 0, ne2 = p2, v2 = m2, y2 = h2, b2 = g2, re2 = () => e4.setAttribute("viewBox", "".concat(ne2, " ").concat(v2, " ").concat(y2, " ").concat(b2)), ie2 = (e5, t3 = 250, n3 = 250) => {
6568
+ let r3 = 1e3, i3 = Math.round(y2 * e5 * 10) / 10, a3 = Math.round(b2 * e5 * 10) / 10;
6569
+ i3 < 100 && (i3 = 100, a3 = 100, e5 = i3 / y2), i3 > r3 && (i3 = r3, a3 = r3, e5 = i3 / y2), i3 !== y2 && (ne2 = Math.round((t3 - (t3 - ne2) * e5) * 10) / 10, v2 = Math.round((n3 - (n3 - v2) * e5) * 10) / 10, y2 = i3, b2 = a3, re2());
6570
+ };
6571
+ l2 == null || l2.addEventListener("click", () => ie2(0.8)), u2 == null || u2.addEventListener("click", () => ie2(1.25)), d2 == null || d2.addEventListener("click", () => {
6572
+ ne2 = p2, v2 = m2, y2 = h2, b2 = g2, re2();
6573
+ }), e4.addEventListener("wheel", (t3) => {
6574
+ t3.preventDefault();
6575
+ let n3 = Math.exp((t3.deltaY < 0 ? -1 : 1) * 0.1), r3 = e4.getBoundingClientRect(), i3 = t3.clientX - r3.left, a3 = t3.clientY - r3.top;
6576
+ ie2(n3, ne2 + i3 / r3.width * y2, v2 + a3 / r3.height * b2);
6577
+ }, { passive: false }), e4.addEventListener("pointerdown", (t3) => {
6578
+ let n3 = t3.target;
6579
+ n3.closest && (n3.closest('[class*="-hit"]') || n3.closest('[class*="-activation"]') || n3.closest(".variable-arrow") || n3.closest("button")) || (_2 = true, ee2 = t3.clientX, te2 = t3.clientY, e4.setPointerCapture(t3.pointerId), e4.style.cursor = "grabbing");
6580
+ }), e4.addEventListener("pointermove", (t3) => {
6581
+ if (!_2) return;
6582
+ let n3 = t3.clientX - ee2, r3 = t3.clientY - te2;
6583
+ ee2 = t3.clientX, te2 = t3.clientY;
6584
+ let i3 = e4.getBoundingClientRect(), a3 = n3 / i3.width * y2, o3 = r3 / i3.height * b2;
6585
+ ne2 -= a3, v2 -= o3, re2();
6586
+ }), e4.addEventListener("pointerup", (t3) => {
6587
+ _2 && (_2 = false, e4.releasePointerCapture(t3.pointerId), e4.style.cursor = "default");
6588
+ });
6555
6589
  }
6556
- var a_ = null, o_ = null;
6557
- function s_() {
6558
- return o_ || (o_ = document.createElement("div"), o_.id = "hd-popup-panel", o_.className = "hd-popup", document.body.appendChild(o_)), o_;
6590
+ var X = null;
6591
+ function a_(e4) {
6592
+ X = e4;
6559
6593
  }
6594
+ var o_ = null, s_ = null;
6560
6595
  function c_() {
6561
- o_ == null || o_.classList.remove("visible"), r_ == null || r_(null);
6596
+ return s_ || (s_ = document.getElementById("tooltip")), s_;
6562
6597
  }
6563
6598
  function l_(e4, t2, n2, r2, i2) {
6599
+ let a2 = c_();
6600
+ if (!a2) return;
6601
+ a2.innerHTML = '\n <div class="tooltip-title">'.concat(M_(n2), '</div>\n <div class="tooltip-detail">').concat(M_(r2), "</div>\n ").concat(i2 ? '<div class="tooltip-hint">'.concat(M_(i2), "</div>") : "", "\n ");
6602
+ let o2 = a2.getBoundingClientRect(), s2 = o2.width || 250, c2 = o2.height || 80, l2 = e4 + 14, u2 = t2 + 10;
6603
+ l2 + s2 > window.innerWidth && (l2 = e4 - s2 - 8), u2 + c2 > window.innerHeight && (u2 = t2 - c2 - 8), a2.style.left = "".concat(l2, "px"), a2.style.top = "".concat(u2, "px"), a2.classList.add("visible");
6604
+ }
6605
+ function u_() {
6606
+ var e4;
6607
+ (e4 = c_()) == null || e4.classList.remove("visible");
6608
+ }
6609
+ var d_ = null;
6610
+ function f_() {
6611
+ return d_ || (d_ = document.createElement("div"), d_.id = "hd-popup-panel", d_.className = "hd-popup", document.body.appendChild(d_)), d_;
6612
+ }
6613
+ function p_() {
6614
+ d_ == null || d_.classList.remove("visible"), X == null || X(null);
6615
+ }
6616
+ function m_(e4, t2, n2, r2, i2) {
6564
6617
  var a2, o2;
6565
- let s2 = s_(), c2 = a_ ? '<button class="ask-claude-btn" id="hd-ask-claude-btn">Ask Claude \u2014 Interpret</button>' : "";
6566
- s2.innerHTML = '\n <div class="hd-popup-header">\n <span class="hd-popup-icon">'.concat(w_(t2), '</span>\n <div class="hd-popup-title">\n <strong>').concat(w_(n2), '</strong>\n <div class="hd-popup-sub">').concat(w_(r2), '</div>\n </div>\n <button class="hd-popup-close" id="hd-popup-close">\u2715</button>\n </div>\n ').concat(c2, "\n "), s2.classList.add("visible"), requestAnimationFrame(() => {
6618
+ let s2 = f_(), c2 = o_ ? '<button class="ask-claude-btn" id="hd-ask-claude-btn">Ask Claude \u2014 Interpret</button>' : "";
6619
+ s2.innerHTML = '\n <div class="hd-popup-header">\n <span class="hd-popup-icon">'.concat(M_(t2), '</span>\n <div class="hd-popup-title">\n <strong>').concat(M_(n2), '</strong>\n <div class="hd-popup-sub">').concat(M_(r2), '</div>\n </div>\n <button class="hd-popup-close" id="hd-popup-close">\u2715</button>\n </div>\n ').concat(c2, "\n "), s2.classList.add("visible"), requestAnimationFrame(() => {
6567
6620
  let t3 = s2.getBoundingClientRect(), n3 = s2.offsetParent, r3, i3, a3, o3;
6568
6621
  if (n3) {
6569
6622
  let e5 = n3.getBoundingClientRect();
@@ -6571,13 +6624,13 @@ function l_(e4, t2, n2, r2, i2) {
6571
6624
  } else r3 = window.innerWidth, i3 = window.innerHeight, a3 = 0, o3 = 0;
6572
6625
  let c3 = e4.clientX - a3 + 14, l2 = e4.clientY - o3 + 14;
6573
6626
  c3 + t3.width > r3 - 14 && (c3 = e4.clientX - a3 - t3.width - 14), l2 + t3.height > i3 - 14 && (l2 = e4.clientY - o3 - t3.height - 14), c3 = Math.max(14, c3), l2 = Math.max(14, l2), s2.style.left = "".concat(c3, "px"), s2.style.top = "".concat(l2, "px");
6574
- }), (a2 = document.getElementById("hd-popup-close")) == null || a2.addEventListener("click", c_), (o2 = document.getElementById("hd-ask-claude-btn")) == null || o2.addEventListener("click", () => {
6575
- if (!a_) return;
6627
+ }), (a2 = document.getElementById("hd-popup-close")) == null || a2.addEventListener("click", p_), (o2 = document.getElementById("hd-ask-claude-btn")) == null || o2.addEventListener("click", () => {
6628
+ if (!o_) return;
6576
6629
  let e5 = document.getElementById("hd-ask-claude-btn");
6577
6630
  if (!e5 || e5.disabled) return;
6578
6631
  e5.disabled = true, e5.textContent = "Sending\u2026", e5.classList.add("sending");
6579
6632
  let t3 = Object.fromEntries(Object.entries(i2.data).filter(([e6, t4]) => t4 != null && t4 !== "" && t4 !== 0)), n3 = { type: i2.type, data: t3 };
6580
- a_(n3).then(() => {
6633
+ o_(n3).then(() => {
6581
6634
  e5.textContent = "Sent", e5.classList.remove("sending"), e5.classList.add("sent"), setTimeout(() => {
6582
6635
  e5.textContent = "Ask Claude \u2014 Interpret", e5.classList.remove("sent"), e5.disabled = false;
6583
6636
  }, 2500);
@@ -6586,94 +6639,123 @@ function l_(e4, t2, n2, r2, i2) {
6586
6639
  });
6587
6640
  });
6588
6641
  }
6589
- var Z = { background: "#0e0c08", foreground: "#e8e2d5", dim: "#8a7d5e", personalityColor: "#d42b2b", designColor: "#d4d0c8", centerFillDefined: "#1e1900", centerFillOpen: "#ffffff", centerStroke: "#d4a017", centerStrokeOpen: "#2e2918", channelPipeOuter: "#3d3628" }, u_ = ["Sun", "Earth", "North Node", "South Node", "Moon", "Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto", "Chiron", "Black Moon Lilith"], d_ = { Sun: "\u2609", Earth: "\u2295", "North Node": "\u260A", "South Node": "\u260B", Moon: "\u263D", Mercury: "\u263F", Venus: "\u2640", Mars: "\u2642", Jupiter: "\u2643", Saturn: "\u2644", Uranus: "\u2645", Neptune: "\u2646", Pluto: "\u2647", Chiron: "\u26B7", "Black Moon Lilith": "\u26B8" }, f_ = 660, p_ = 1e3, m_ = [{ id: "head", label: "Head", note: "Inspiration / pressure to think", path: "M 330 40 L 400 155 L 260 155 Z", centroid: [330, 117] }, { id: "ajna", label: "Ajna", note: "Conceptualization / mental awareness", path: "M 260 185 L 400 185 L 330 300 Z", centroid: [330, 223] }, { id: "throat", label: "Throat", note: "Communication / manifestation", path: "M 268 325 L 392 325 L 392 470 L 268 470 Z", centroid: [330, 397] }, { id: "g", label: "Identity", note: "Identity / direction / love", path: "M 330 494 L 392 554 L 330 614 L 268 554 Z", centroid: [330, 554] }, { id: "heart", label: "Heart", note: "Willpower / ego / material world", path: "M 415 554 L 490 554 L 452 626 Z", centroid: [452, 578] }, { id: "sacral", label: "Sacral", note: "Life force / sexuality / work capacity", path: "M 268 642 L 392 642 L 392 762 L 268 762 Z", centroid: [330, 702] }, { id: "root", label: "Root", note: "Adrenalized pressure / drive / stress", path: "M 255 790 L 405 790 L 405 890 L 255 890 Z", centroid: [330, 840] }, { id: "spleen", label: "Spleen", note: "Survival / immune system / intuition", path: "M 80 652 L 80 832 L 192 742 Z", centroid: [117, 742] }, { id: "solar_plexus", label: "Solar Plexus", note: "Emotions / feelings / spirit", path: "M 580 652 L 580 832 L 468 742 Z", centroid: [543, 742] }], h_ = { "47-64": { g1: 64, g2: 47, name: "Abstraction" }, "24-61": { g1: 61, g2: 24, name: "Awareness" }, "4-63": { g1: 63, g2: 4, name: "Logic" }, "17-62": { g1: 17, g2: 62, name: "Acceptance" }, "23-43": { g1: 43, g2: 23, name: "Structuring" }, "11-56": { g1: 11, g2: 56, name: "Curiosity" }, "7-31": { g1: 31, g2: 7, name: "The Alpha" }, "1-8": { g1: 8, g2: 1, name: "Inspiration" }, "13-33": { g1: 33, g2: 13, name: "The Prodigal" }, "21-45": { g1: 45, g2: 21, name: "Money Line" }, "35-36": { g1: 35, g2: 36, name: "Transitoriness" }, "12-22": { g1: 12, g2: 22, name: "Openness" }, "16-48": { g1: 16, g2: 48, name: "The Wavelength" }, "25-51": { g1: 25, g2: 51, name: "Initiation" }, "5-15": { g1: 15, g2: 5, name: "Rhythm" }, "2-14": { g1: 2, g2: 14, name: "The Beat" }, "29-46": { g1: 46, g2: 29, name: "Discovery" }, "26-44": { g1: 26, g2: 44, name: "Surrender" }, "37-40": { g1: 40, g2: 37, name: "Community" }, "27-50": { g1: 27, g2: 50, name: "Preservation" }, "6-59": { g1: 59, g2: 6, name: "Intimacy" }, "42-53": { g1: 42, g2: 53, name: "Maturation" }, "3-60": { g1: 3, g2: 60, name: "Mutation" }, "9-52": { g1: 9, g2: 52, name: "Concentration" }, "32-54": { g1: 32, g2: 54, name: "Transformation" }, "28-38": { g1: 28, g2: 38, name: "Struggle" }, "18-58": { g1: 18, g2: 58, name: "Judgment" }, "19-49": { g1: 49, g2: 19, name: "Synthesis" }, "39-55": { g1: 55, g2: 39, name: "Emoting" }, "30-41": { g1: 30, g2: 41, name: "Recognition" }, "10-20": { g1: 20, g2: 10, name: "Awakening" }, "10-34": { g1: 10, g2: 34, name: "Exploration" }, "20-34": { g1: 20, g2: 34, name: "Charisma" }, "20-57": { g1: 20, g2: 57, name: "The Brainwave" }, "34-57": { g1: 34, g2: 57, name: "Power" }, "10-57": { g1: 10, g2: 57, name: "Perfected Form" } }, g_ = { "47-64": "M 285 155 L 285 185", "24-61": "M 330 155 L 330 185", "4-63": "M 375 155 L 375 185", "17-62": "M 316 273 L 286 325", "23-43": "M 330 283 L 330 325", "11-56": "M 344 273 L 374 325", "7-31": "M 286 470 L 308 515", "1-8": "M 330 470 L 330 494", "13-33": "M 374 470 L 352 515", "21-45": "M 392 446 L 452 554", "35-36": "M 392 358 L 567 663", "12-22": "M 392 398 L 537 686", "16-48": "M 268 368 L 93 663", "25-51": "M 392 554 L 415 554", "5-15": "M 308 593 L 286 642", "2-14": "M 330 614 L 330 642", "29-46": "M 352 593 L 374 642", "26-44": "M 452 626 L 153 711", "37-40": "M 490 554 L 507 711", "27-50": "M 268 729 L 179 753", "6-59": "M 392 702 L 481 753", "42-53": "M 286 762 L 272 790", "3-60": "M 330 762 L 330 790", "9-52": "M 374 762 L 388 790", "32-54": "M 149 776 L 255 814", "28-38": "M 119 801 L 255 848", "18-58": "M 95 820 L 255 882", "19-49": "M 511 776 L 405 814", "39-55": "M 541 801 L 405 848", "30-41": "M 565 820 L 405 882", "10-20": "M 268 426 C 242 458 242 522 268 554", "10-34": "M 268 554 C 242 586 242 643 268 675", "20-34": "M 268 426 C 218 490 218 612 268 675", "20-57": "M 268 426 C 199 466 151 612 154 712", "34-57": "M 268 675 C 228 696 175 712 154 712", "10-57": "M 272 553 C 200 580 160 660 154 712" }, __ = { 61: "head", 63: "head", 64: "head", 4: "ajna", 11: "ajna", 17: "ajna", 23: "ajna", 24: "ajna", 43: "ajna", 47: "ajna", 8: "throat", 12: "throat", 16: "throat", 20: "throat", 22: "throat", 31: "throat", 33: "throat", 35: "throat", 45: "throat", 56: "throat", 62: "throat", 1: "g", 2: "g", 7: "g", 10: "g", 13: "g", 15: "g", 25: "g", 46: "g", 21: "heart", 26: "heart", 40: "heart", 51: "heart", 18: "spleen", 28: "spleen", 32: "spleen", 44: "spleen", 48: "spleen", 50: "spleen", 57: "spleen", 6: "solar_plexus", 30: "solar_plexus", 36: "solar_plexus", 37: "solar_plexus", 49: "solar_plexus", 55: "solar_plexus", 3: "sacral", 5: "sacral", 9: "sacral", 14: "sacral", 27: "sacral", 29: "sacral", 34: "sacral", 42: "sacral", 59: "sacral", 19: "root", 38: "root", 39: "root", 41: "root", 52: "root", 53: "root", 54: "root", 58: "root", 60: "root" }, v_ = { 64: [295, 139], 61: [330, 139], 63: [365, 139], 47: [295, 206], 24: [330, 206], 4: [365, 206], 17: [312, 242], 43: [330, 275], 11: [348, 242], 62: [286, 341], 23: [330, 341], 56: [374, 341], 16: [283, 372], 20: [285, 409], 35: [376, 372], 12: [376, 400], 45: [376, 429], 31: [286, 453], 8: [330, 453], 33: [374, 453], 1: [330, 511], 7: [310, 530], 13: [351, 530], 10: [288, 553], 25: [372, 553], 15: [314, 572], 46: [348, 572], 2: [330, 592], 51: [428, 596], 21: [443, 575], 40: [469, 631], 26: [452, 612], 5: [294, 659], 14: [330, 658], 29: [369, 658], 34: [284, 685], 27: [285, 717], 59: [376, 702], 42: [295, 747], 3: [330, 746], 9: [363, 747], 53: [295, 805], 60: [330, 806], 52: [363, 805], 54: [275, 824], 38: [275, 849], 58: [275, 873], 19: [386, 824], 39: [385, 849], 41: [385, 875], 48: [95, 678], 57: [138, 720], 44: [137, 719], 50: [167, 742], 32: [136, 765], 28: [109, 785], 18: [93, 804], 36: [570, 679], 22: [547, 702], 37: [516, 722], 6: [487, 742], 49: [528, 767], 55: [554, 787], 30: [570, 810] }, y_ = "http://www.w3.org/2000/svg";
6642
+ var h_ = { background: "#0e0c08", foreground: "#e8e2d5", dim: "#8a7d5e", personalityColor: "#d42b2b", designColor: "#d4d0c8", centerFillDefined: "#1e1900", centerFillOpen: "#ffffff", centerStroke: "#d4a017", centerStrokeOpen: "#2e2918", channelPipeOuter: "#3d3628" }, g_ = { background: "#faf7f2", foreground: "#211e18", dim: "#7a6e58", personalityColor: "#d42b2b", designColor: "#6e6560", centerFillDefined: "#f5f0e6", centerFillOpen: "#ffffff", centerStroke: "#b88a10", centerStrokeOpen: "#c8bfa8", channelPipeOuter: "#c2b89a" };
6643
+ function __() {
6644
+ let e4 = window.matchMedia("(prefers-color-scheme: dark)").matches;
6645
+ if (!e4) try {
6646
+ let t2 = getComputedStyle(document.body).backgroundColor.match(/\d+/g);
6647
+ t2 && t2.length >= 3 && (e4 = (0.299 * t2[0] + 0.587 * t2[1] + 0.114 * t2[2]) / 255 < 0.35);
6648
+ } catch (e5) {
6649
+ }
6650
+ return e4 ? h_ : g_;
6651
+ }
6652
+ var Z = h_, v_ = ["Sun", "Earth", "North Node", "South Node", "Moon", "Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto", "Chiron", "Black Moon Lilith"], y_ = { Sun: "\u2609", Earth: "\u2295", "North Node": "\u260A", "South Node": "\u260B", Moon: "\u263D", Mercury: "\u263F", Venus: "\u2640", Mars: "\u2642", Jupiter: "\u2643", Saturn: "\u2644", Uranus: "\u2645", Neptune: "\u2646", Pluto: "\u2647", Chiron: "\u26B7", "Black Moon Lilith": "\u26B8" }, b_ = 660, x_ = 1e3, S_ = [{ id: "head", label: "Head", note: "Inspiration / pressure to think", path: "M 330 40 L 400 155 L 260 155 Z", centroid: [330, 117] }, { id: "ajna", label: "Ajna", note: "Conceptualization / mental awareness", path: "M 260 185 L 400 185 L 330 300 Z", centroid: [330, 223] }, { id: "throat", label: "Throat", note: "Communication / manifestation", path: "M 268 325 L 392 325 L 392 470 L 268 470 Z", centroid: [330, 397] }, { id: "g", label: "Identity", note: "Identity / direction / love", path: "M 330 494 L 392 554 L 330 614 L 268 554 Z", centroid: [330, 554] }, { id: "heart", label: "Heart", note: "Willpower / ego / material world", path: "M 389 625 L 442 570 L 460 636 Z", centroid: [430, 610] }, { id: "sacral", label: "Sacral", note: "Life force / sexuality / work capacity", path: "M 268 642 L 392 642 L 392 762 L 268 762 Z", centroid: [330, 702] }, { id: "root", label: "Root", note: "Adrenalized pressure / drive / stress", path: "M 255 790 L 405 790 L 405 890 L 255 890 Z", centroid: [330, 840] }, { id: "spleen", label: "Spleen", note: "Survival / immune system / intuition", path: "M 80 652 L 80 832 L 192 742 Z", centroid: [117, 742] }, { id: "solar_plexus", label: "Solar Plexus", note: "Emotions / feelings / spirit", path: "M 580 652 L 580 832 L 468 742 Z", centroid: [543, 742] }], C_ = { "47-64": { g1: 64, g2: 47, name: "Abstraction" }, "24-61": { g1: 61, g2: 24, name: "Awareness" }, "4-63": { g1: 63, g2: 4, name: "Logic" }, "17-62": { g1: 17, g2: 62, name: "Acceptance" }, "23-43": { g1: 43, g2: 23, name: "Structuring" }, "11-56": { g1: 11, g2: 56, name: "Curiosity" }, "7-31": { g1: 31, g2: 7, name: "The Alpha" }, "1-8": { g1: 8, g2: 1, name: "Inspiration" }, "13-33": { g1: 33, g2: 13, name: "The Prodigal" }, "21-45": { g1: 45, g2: 21, name: "Money Line" }, "35-36": { g1: 35, g2: 36, name: "Transitoriness" }, "12-22": { g1: 12, g2: 22, name: "Openness" }, "16-48": { g1: 16, g2: 48, name: "The Wavelength" }, "25-51": { g1: 25, g2: 51, name: "Initiation" }, "5-15": { g1: 15, g2: 5, name: "Rhythm" }, "2-14": { g1: 2, g2: 14, name: "The Beat" }, "29-46": { g1: 46, g2: 29, name: "Discovery" }, "26-44": { g1: 26, g2: 44, name: "Surrender" }, "37-40": { g1: 40, g2: 37, name: "Community" }, "27-50": { g1: 27, g2: 50, name: "Preservation" }, "6-59": { g1: 59, g2: 6, name: "Intimacy" }, "42-53": { g1: 42, g2: 53, name: "Maturation" }, "3-60": { g1: 3, g2: 60, name: "Mutation" }, "9-52": { g1: 9, g2: 52, name: "Concentration" }, "32-54": { g1: 32, g2: 54, name: "Transformation" }, "28-38": { g1: 28, g2: 38, name: "Struggle" }, "18-58": { g1: 18, g2: 58, name: "Judgment" }, "19-49": { g1: 49, g2: 19, name: "Synthesis" }, "39-55": { g1: 55, g2: 39, name: "Emoting" }, "30-41": { g1: 30, g2: 41, name: "Recognition" }, "10-20": { g1: 20, g2: 10, name: "Awakening" }, "10-34": { g1: 10, g2: 34, name: "Exploration" }, "20-34": { g1: 20, g2: 34, name: "Charisma" }, "20-57": { g1: 20, g2: 57, name: "The Brainwave" }, "34-57": { g1: 34, g2: 57, name: "Power" }, "10-57": { g1: 10, g2: 57, name: "Perfected Form" } }, w_ = { "47-64": "M 285 155 L 285 185", "24-61": "M 330 155 L 330 185", "4-63": "M 375 155 L 375 185", "17-62": "M 316 273 L 286 325", "23-43": "M 330 283 L 330 325", "11-56": "M 344 273 L 374 325", "7-31": "M 286 470 L 308 515", "1-8": "M 330 470 L 330 494", "13-33": "M 374 470 L 352 515", "21-45": "M 392 446 L 452 554", "35-36": "M 392 358 L 567 663", "12-22": "M 392 398 L 537 686", "16-48": "M 268 368 L 93 663", "25-51": "M 392 554 L 417 594", "5-15": "M 308 593 L 286 642", "2-14": "M 330 614 L 330 642", "29-46": "M 352 593 L 374 642", "26-44": "M 399 623 C 279 613 229 614 153 711", "37-40": "M 456 635 L 506 709", "27-50": "M 268 729 L 179 753", "6-59": "M 392 702 L 481 753", "42-53": "M 286 762 L 272 790", "3-60": "M 330 762 L 330 790", "9-52": "M 374 762 L 388 790", "32-54": "M 149 776 L 255 814", "28-38": "M 119 801 L 255 848", "18-58": "M 95 820 L 255 882", "19-49": "M 511 776 L 405 814", "39-55": "M 541 801 L 405 848", "30-41": "M 565 820 L 405 882", "10-20": "M 268 426 C 242 458 242 522 268 554", "10-34": "M 268 554 C 242 586 242 643 268 675", "20-34": "M 268 426 C 218 490 218 612 268 675", "20-57": "M 268 426 C 199 466 151 612 154 712", "34-57": "M 268 675 C 228 696 175 712 154 712", "10-57": "M 272 553 C 200 580 160 660 154 712" }, T_ = { 61: "head", 63: "head", 64: "head", 4: "ajna", 11: "ajna", 17: "ajna", 23: "ajna", 24: "ajna", 43: "ajna", 47: "ajna", 8: "throat", 12: "throat", 16: "throat", 20: "throat", 22: "throat", 31: "throat", 33: "throat", 35: "throat", 45: "throat", 56: "throat", 62: "throat", 1: "g", 2: "g", 7: "g", 10: "g", 13: "g", 15: "g", 25: "g", 46: "g", 21: "heart", 26: "heart", 40: "heart", 51: "heart", 18: "spleen", 28: "spleen", 32: "spleen", 44: "spleen", 48: "spleen", 50: "spleen", 57: "spleen", 6: "solar_plexus", 30: "solar_plexus", 36: "solar_plexus", 37: "solar_plexus", 49: "solar_plexus", 55: "solar_plexus", 3: "sacral", 5: "sacral", 9: "sacral", 14: "sacral", 27: "sacral", 29: "sacral", 34: "sacral", 42: "sacral", 59: "sacral", 19: "root", 38: "root", 39: "root", 41: "root", 52: "root", 53: "root", 54: "root", 58: "root", 60: "root" }, E_ = { 64: [295, 139], 61: [330, 139], 63: [365, 139], 47: [295, 206], 24: [330, 206], 4: [365, 206], 17: [312, 242], 43: [330, 275], 11: [348, 242], 62: [286, 341], 23: [330, 341], 56: [374, 341], 16: [283, 372], 20: [285, 409], 35: [376, 372], 12: [376, 400], 45: [376, 429], 31: [286, 453], 8: [330, 453], 33: [374, 453], 1: [330, 511], 7: [310, 530], 13: [351, 530], 10: [288, 553], 25: [372, 553], 15: [314, 572], 46: [348, 572], 2: [330, 592], 51: [427, 601], 21: [440, 590], 40: [449, 628], 26: [399, 609], 5: [294, 659], 14: [330, 658], 29: [369, 658], 34: [284, 685], 27: [285, 717], 59: [376, 702], 42: [295, 747], 3: [330, 746], 9: [363, 747], 53: [295, 805], 60: [330, 806], 52: [363, 805], 54: [275, 824], 38: [275, 849], 58: [275, 873], 19: [386, 824], 39: [385, 849], 41: [385, 875], 48: [95, 678], 57: [138, 720], 44: [137, 719], 50: [167, 742], 32: [136, 765], 28: [109, 785], 18: [93, 804], 36: [570, 679], 22: [547, 702], 37: [516, 722], 6: [487, 742], 49: [528, 767], 55: [554, 787], 30: [570, 810] }, D_ = "http://www.w3.org/2000/svg";
6590
6653
  function Q(e4, t2 = {}) {
6591
- let n2 = document.createElementNS(y_, e4);
6654
+ let n2 = document.createElementNS(D_, e4);
6592
6655
  for (let [e5, r2] of Object.entries(t2)) n2.setAttribute(e5, String(r2));
6593
6656
  return n2;
6594
6657
  }
6595
- function b_(e4) {
6658
+ function O_(e4) {
6596
6659
  let t2 = e4.split("-").map(Number);
6597
6660
  return t2.some(isNaN) ? e4 : t2.sort((e5, t3) => e5 - t3).join("-");
6598
6661
  }
6599
- function x_(e4, t2, n2, r2) {
6662
+ function k_(e4, t2, n2, r2) {
6600
6663
  let i2 = n2.has(e4), a2 = n2.has(t2), o2 = r2.has(e4), s2 = r2.has(t2), c2 = i2 || a2, l2 = o2 || s2;
6601
6664
  return c2 && l2 ? { stroke: Z.personalityColor, opacity: "0.80" } : l2 ? { stroke: Z.designColor } : { stroke: Z.personalityColor };
6602
6665
  }
6603
- function S_(e4, t2, n2, r2, i2, a2, o2) {
6666
+ function A_(e4, t2, n2, r2, i2, a2, o2) {
6604
6667
  var s2, c2, l2, u2, d2;
6605
- a_ = a2 == null ? null : a2, e4.innerHTML = "";
6606
- let f2 = Q("svg", { viewBox: "0 0 ".concat(f_, " ").concat(p_), width: "100%", height: "100%", role: "img", "aria-label": "Human Design Bodygraph" });
6607
- f2.appendChild(Q("rect", { x: 0, y: 0, width: f_, height: p_, fill: Z.background }));
6668
+ o_ = a2 == null ? null : a2, Z = __(), e4.innerHTML = "";
6669
+ let f2 = Q("svg", { viewBox: "0 0 ".concat(b_, " ").concat(x_), width: "100%", height: "100%", role: "img", "aria-label": "Human Design Bodygraph" });
6670
+ i_(f2, "pan-zoom-controls"), f2.appendChild(Q("rect", { x: 0, y: 0, width: b_, height: x_, fill: Z.background }));
6608
6671
  let p2 = (s2 = t2.centers) == null ? [] : s2, m2 = (c2 = t2.active_channels) == null ? [] : c2, h2 = (l2 = t2.active_gates) == null ? [] : l2, g2 = new Set((u2 = t2.personality_gates) == null ? [] : u2), _2 = new Set((d2 = t2.design_gates) == null ? [] : d2), ee2 = /* @__PURE__ */ new Map();
6609
6672
  for (let e5 of p2) {
6610
6673
  var te2;
6611
6674
  ee2.set(((te2 = e5.name) == null ? "" : te2).toLowerCase().replace(/\s+/g, "_"), e5.defined);
6612
6675
  }
6613
- let ne2 = new Set(m2.map(b_)), v2 = Q("g", { id: "layer-channels-inactive" });
6614
- for (let [e5, t3] of Object.entries(g_)) {
6615
- let n3 = b_(e5);
6676
+ let ne2 = new Set(m2.map(O_)), v2 = Q("g", { id: "layer-channels-inactive" });
6677
+ for (let [e5, t3] of Object.entries(w_)) {
6678
+ let n3 = O_(e5);
6616
6679
  if (ne2.has(n3)) continue;
6617
- let r3 = Q("g", { class: "channel channel--inactive", "data-channel": e5, cursor: "pointer" });
6618
- r3.appendChild(Q("path", { d: t3, stroke: Z.channelPipeOuter, "stroke-width": "8", "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none" })), r3.appendChild(Q("path", { d: t3, stroke: Z.background, "stroke-width": "3.6", "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none", "pointer-events": "none" }));
6619
- let a3 = h_[e5];
6620
- a3 && (r3.appendChild(Q("path", { d: t3, stroke: "transparent", "stroke-width": "18", fill: "none", "pointer-events": "stroke" })), r3.addEventListener("click", (t4) => {
6680
+ let [r3, a3] = e5.split("-"), o3 = Q("g", { id: "channel-inactive-".concat(e5), class: "channel channel--inactive", "data-channel": e5, "data-gate1": r3, "data-gate2": a3, cursor: "pointer" });
6681
+ o3.appendChild(Q("path", { d: t3, stroke: Z.channelPipeOuter, "stroke-width": "8", "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none" })), o3.appendChild(Q("path", { d: t3, stroke: Z.background, "stroke-width": "3.6", "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none", "pointer-events": "none" }));
6682
+ let s3 = C_[e5];
6683
+ s3 && (o3.appendChild(Q("path", { d: t3, stroke: "transparent", "stroke-width": "18", fill: "none", "pointer-events": "stroke" })), o3.addEventListener("click", (t4) => {
6621
6684
  var n4, r4;
6622
- let [o3, s3] = e5.split("-"), c3 = Number(o3), l3 = Number(s3), u3 = (n4 = __[c3]) == null ? "" : n4, d3 = (r4 = __[l3]) == null ? "" : r4;
6623
- i2(e5, c3, l3, u3, d3, "inactive"), l_(t4, "\u27F7", "Channel ".concat(e5, " \u2014 ").concat(a3.name), "".concat(u3, " \u2014 ").concat(d3, " \xB7 Inactive"), { type: "channel", data: { channel: e5, gate1: c3, gate2: l3, center1: u3, center2: d3, color_type: "inactive", name: a3.name } }), r_ == null || r_("Channel ".concat(e5, " (").concat(a3.name, ") \u2014 inactive"));
6624
- })), v2.appendChild(r3);
6685
+ let [a4, o4] = e5.split("-"), c3 = Number(a4), l3 = Number(o4), u3 = (n4 = T_[c3]) == null ? "" : n4, d3 = (r4 = T_[l3]) == null ? "" : r4;
6686
+ i2(e5, c3, l3, u3, d3, "inactive"), m_(t4, "\u27F7", "Channel ".concat(e5, " \u2014 ").concat(s3.name), "".concat(u3, " \u2014 ").concat(d3, " \xB7 Inactive"), { type: "channel", data: { channel: e5, gate1: c3, gate2: l3, center1: u3, center2: d3, color_type: "inactive", name: s3.name } }), X == null || X("Channel ".concat(e5, " (").concat(s3.name, ") \u2014 inactive"));
6687
+ })), v2.appendChild(o3);
6625
6688
  }
6626
6689
  f2.appendChild(v2);
6627
- let re2 = Q("g", { id: "layer-channels-active" }), ie2 = /* @__PURE__ */ new Set();
6690
+ let y2 = Q("g", { id: "layer-channels-active" }), b2 = /* @__PURE__ */ new Set();
6628
6691
  for (let e5 of m2) {
6629
- var ae2;
6630
- let t3 = b_(e5);
6631
- if (ie2.has(t3)) continue;
6632
- ie2.add(t3);
6633
- let n3 = (ae2 = Object.keys(g_).find((e6) => b_(e6) === t3)) == null ? e5 : ae2, r3 = g_[n3], a3 = h_[n3];
6692
+ var re2;
6693
+ let t3 = O_(e5);
6694
+ if (b2.has(t3)) continue;
6695
+ b2.add(t3);
6696
+ let n3 = (re2 = Object.keys(w_).find((e6) => O_(e6) === t3)) == null ? e5 : re2, r3 = w_[n3], a3 = C_[n3];
6634
6697
  if (!r3) continue;
6635
- let [o3, s3] = n3.split("-"), c3 = Number(o3), l3 = Number(s3), { stroke: u3, opacity: d3 } = x_(c3, l3, g2, _2), f3 = { d: r3, stroke: u3, "stroke-width": "8", "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none", "data-base-stroke": u3 };
6698
+ let [o3, s3] = n3.split("-"), c3 = Number(o3), l3 = Number(s3), { stroke: u3, opacity: d3 } = k_(c3, l3, g2, _2), f3 = { d: r3, stroke: u3, "stroke-width": "8", "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none", "data-base-stroke": u3 };
6636
6699
  d3 && (f3.opacity = d3);
6637
- let p3 = Q("g", { id: "channel-active-".concat(n3), class: "channel channel--active", "data-channel": n3, cursor: "pointer" });
6700
+ let p3 = Q("g", { id: "channel-active-".concat(n3), class: "channel channel--active", "data-channel": n3, "data-gate1": String(c3), "data-gate2": String(l3), cursor: "pointer" });
6638
6701
  if (p3.appendChild(Q("path", f3)), p3.appendChild(Q("path", { d: r3, stroke: "transparent", "stroke-width": "18", fill: "none", "pointer-events": "stroke" })), a3) {
6639
- var oe2, se2;
6640
- let e6 = (oe2 = __[c3]) == null ? "" : oe2, t4 = (se2 = __[l3]) == null ? "" : se2, r4 = g2.has(c3) && _2.has(c3) ? "both" : _2.has(c3) || _2.has(l3) ? "unconscious" : "conscious";
6641
- E_(p3, "Channel ".concat(c3, "-").concat(l3)), p3.addEventListener("click", (o4) => {
6642
- i2(n3, c3, l3, e6, t4, r4), l_(o4, "\u27F7", "Channel ".concat(n3, " \u2014 ").concat(a3.name), "".concat(e6, " \u2014 ").concat(t4, " \xB7 ").concat(r4.charAt(0).toUpperCase() + r4.slice(1)), { type: "channel", data: { channel: n3, gate1: c3, gate2: l3, center1: e6, center2: t4, color_type: r4, name: a3.name } }), r_ == null || r_("Channel ".concat(n3, " (").concat(a3.name, ")"));
6702
+ var ie2, ae2;
6703
+ let e6 = (ie2 = T_[c3]) == null ? "" : ie2, t4 = (ae2 = T_[l3]) == null ? "" : ae2, r4 = (g2.has(c3) || g2.has(l3)) && (_2.has(c3) || _2.has(l3)) ? "both" : _2.has(c3) || _2.has(l3) ? "design" : "personality";
6704
+ p3.setAttribute("data-source", r4), P_(p3, "Channel ".concat(c3, "-").concat(l3));
6705
+ let o4 = "Channel ".concat(n3, " \u2014 ").concat(a3.name), s4 = "".concat(e6, " \u2014 ").concat(t4, " \xB7 ").concat(r4.charAt(0).toUpperCase() + r4.slice(1));
6706
+ p3.addEventListener("mouseenter", (e7) => l_(e7.clientX, e7.clientY, o4, s4, "Click for details")), p3.addEventListener("mousemove", (e7) => l_(e7.clientX, e7.clientY, o4, s4, "Click for details")), p3.addEventListener("mouseleave", u_), p3.addEventListener("click", (o5) => {
6707
+ u_(), i2(n3, c3, l3, e6, t4, r4), m_(o5, "\u27F7", "Channel ".concat(n3, " \u2014 ").concat(a3.name), "".concat(e6, " \u2014 ").concat(t4, " \xB7 ").concat(r4.charAt(0).toUpperCase() + r4.slice(1)), { type: "channel", data: { channel: n3, gate1: c3, gate2: l3, center1: e6, center2: t4, color_type: r4, name: a3.name } }), X == null || X("Channel ".concat(n3, " (").concat(a3.name, ")"));
6643
6708
  });
6644
6709
  }
6645
- re2.appendChild(p3);
6710
+ y2.appendChild(p3);
6646
6711
  }
6647
- f2.appendChild(re2);
6648
- let ce2 = Q("g", { id: "layer-centers" });
6649
- for (let e5 of m_) {
6650
- var y2;
6651
- let t3 = (y2 = ee2.get(e5.id)) == null ? false : y2, r3 = t3 ? Z.centerFillDefined : Z.centerFillOpen, i3 = t3 ? Z.centerStroke : Z.centerStrokeOpen, a3 = t3 ? "1.5" : "1.0", o3 = Q("g", { class: "center-group ".concat(t3 ? "center--defined" : "center--open"), "data-center": e5.id, cursor: "pointer" });
6712
+ f2.appendChild(y2);
6713
+ let oe2 = Q("g", { id: "layer-centers" });
6714
+ for (let e5 of S_) {
6715
+ var x2;
6716
+ let t3 = (x2 = ee2.get(e5.id)) == null ? false : x2, r3 = t3 ? Z.centerFillDefined : Z.centerFillOpen, i3 = t3 ? Z.centerStroke : Z.centerStrokeOpen, a3 = t3 ? "1.5" : "1.0", o3 = Q("g", { id: "center-".concat(e5.id), class: "center ".concat(t3 ? "center--defined" : "center--open"), "data-center": e5.id, "data-defined": t3 ? "true" : "false", cursor: "pointer" });
6652
6717
  o3.appendChild(Q("path", { d: e5.path, fill: Z.background, stroke: Z.background, "stroke-width": "12", "stroke-linejoin": "round", "pointer-events": "none" })), o3.appendChild(Q("path", { d: e5.path, fill: r3, stroke: i3, "stroke-width": a3, "stroke-linejoin": "miter" }));
6653
6718
  let s3 = t3 ? Z.foreground : "#6a6050", [c3, l3] = e5.centroid, u3 = Q("text", { x: c3, y: l3 + 5, fill: s3, "font-size": "11", "text-anchor": "middle", "dominant-baseline": "middle", "font-family": "system-ui, sans-serif", "font-weight": t3 ? "600" : "400", "pointer-events": "none" });
6654
- u3.textContent = C_(e5.id), o3.appendChild(u3);
6719
+ u3.textContent = j_(e5.id), o3.appendChild(u3);
6655
6720
  let d3 = Q("path", { d: e5.path, fill: "none", stroke: Z.centerStroke, "stroke-width": "3", opacity: "0", "pointer-events": "none", class: "center-glow" });
6656
- o3.appendChild(d3), o3.addEventListener("mouseenter", () => {
6657
- ce2.querySelectorAll(".center-group").forEach((e6) => {
6721
+ o3.appendChild(d3);
6722
+ let f3 = t3 ? "Defined \xB7 Identity: ".concat(e5.note) : "Undefined \xB7 ".concat(e5.note);
6723
+ o3.addEventListener("mouseenter", (t4) => {
6724
+ oe2.querySelectorAll(".center").forEach((e6) => {
6658
6725
  e6 !== o3 && (e6.style.opacity = "0.45");
6659
- });
6726
+ }), l_(t4.clientX, t4.clientY, "".concat(e5.label, " Center"), f3, "Click for details");
6727
+ }), o3.addEventListener("mousemove", (t4) => {
6728
+ l_(t4.clientX, t4.clientY, "".concat(e5.label, " Center"), f3, "Click for details");
6660
6729
  }), o3.addEventListener("mouseleave", () => {
6661
- ce2.querySelectorAll(".center-group").forEach((e6) => {
6730
+ oe2.querySelectorAll(".center").forEach((e6) => {
6662
6731
  e6.style.opacity = "";
6663
- });
6664
- }), E_(o3, "Center ".concat(e5.label)), o3.addEventListener("click", (r4) => {
6665
- let i4 = h2.filter((t4) => __[t4] === e5.id);
6732
+ }), u_();
6733
+ }), P_(o3, "Center ".concat(e5.label)), o3.addEventListener("click", (r4) => {
6734
+ u_();
6735
+ let i4 = h2.filter((t4) => T_[t4] === e5.id);
6666
6736
  n2(e5.label, t3, i4), d3.style.opacity = "0.6", d3.style.transition = "opacity 0.4s ease", setTimeout(() => {
6667
6737
  d3.style.opacity = "0";
6668
- }, 1e3);
6669
- let a4 = t3 ? "Defined \xB7 Identity: ".concat(e5.note) : "Undefined \xB7 ".concat(e5.note);
6670
- l_(r4, t3 ? "\u25C9" : "\u25CB", "".concat(e5.label, " Center"), a4, { type: "center", data: { center_name: e5.label, defined: t3, active_gates: i4 } }), r_ == null || r_("".concat(t3 ? "\u25C9" : "\u25CB", " ").concat(e5.label, " Center (").concat(t3 ? "defined" : "undefined", ")"));
6671
- }), ce2.appendChild(o3);
6738
+ }, 1e3), m_(r4, t3 ? "\u25C9" : "\u25CB", "".concat(e5.label, " Center"), f3, { type: "center", data: { center_name: e5.label, defined: t3, active_gates: i4 } }), X == null || X("".concat(t3 ? "\u25C9" : "\u25CB", " ").concat(e5.label, " Center (").concat(t3 ? "defined" : "undefined", ")"));
6739
+ }), oe2.appendChild(o3);
6740
+ }
6741
+ f2.appendChild(oe2);
6742
+ let se2 = Q("g", { id: "layer-gates" }), ce2 = new Set(h2);
6743
+ for (let [e5, t3] of Object.entries(E_)) {
6744
+ var le2, ue2, de2;
6745
+ let n3 = Number(e5);
6746
+ if (ce2.has(n3)) continue;
6747
+ let i3 = Q("g", { class: "gate-badge gate-badge--inactive", cursor: "pointer", "data-gate": n3, transform: "translate(".concat(t3[0], ", ").concat(t3[1], ")") });
6748
+ i3.appendChild(Q("circle", { cx: 0, cy: 0, r: 7, fill: "none", stroke: Z.channelPipeOuter, "stroke-width": "1.2", opacity: "0.55" }));
6749
+ let a3 = Q("text", { x: 0, y: "3", fill: Z.channelPipeOuter, "font-family": "'Courier New', Courier, monospace", "font-size": "8", "font-weight": "400", "text-anchor": "middle", "pointer-events": "none", opacity: "0.55" });
6750
+ a3.textContent = String(n3), i3.appendChild(a3);
6751
+ let o3 = (le2 = T_[n3]) == null ? "unknown" : le2, s3 = (ue2 = (de2 = S_.find((e6) => e6.id === o3)) == null ? void 0 : de2.label) == null ? o3 : ue2;
6752
+ i3.addEventListener("mouseenter", (e6) => l_(e6.clientX, e6.clientY, "Gate ".concat(n3), "".concat(s3, " Center \xB7 Unactivated"), "Click for details")), i3.addEventListener("mousemove", (e6) => l_(e6.clientX, e6.clientY, "Gate ".concat(n3), "".concat(s3, " Center \xB7 Unactivated"), "Click for details")), i3.addEventListener("mouseleave", u_), i3.addEventListener("click", (e6) => {
6753
+ e6.stopPropagation(), u_(), r2(n3, null, s3), m_(e6, String(n3), "Gate ".concat(n3), "".concat(s3, " Center \xB7 Unactivated"), { type: "gate", data: { gate: n3, conscious: null, center: s3 } }), X == null || X("Gate ".concat(n3, " \xB7 ").concat(s3, " \xB7 Unactivated"));
6754
+ }), se2.appendChild(i3);
6672
6755
  }
6673
- f2.appendChild(ce2);
6674
- let le2 = Q("g", { id: "layer-gates" });
6675
6756
  for (let e5 of h2) {
6676
- let t3 = v_[e5];
6757
+ var fe2, pe2, me2;
6758
+ let t3 = E_[e5];
6677
6759
  if (!t3) continue;
6678
6760
  let n3 = g2.has(e5), i3 = _2.has(e5), a3 = n3 && i3 ? null : n3 ? true : i3 ? false : null, o3 = Q("g", { class: "gate-badge", cursor: "pointer", "data-gate": e5, transform: "translate(".concat(t3[0], ", ").concat(t3[1], ")") });
6679
6761
  if (n3 && i3) o3.appendChild(Q("circle", { cx: 0, cy: 0, r: 11, fill: Z.personalityColor })), o3.appendChild(Q("circle", { cx: 0, cy: 0, r: 8, fill: Z.designColor }));
@@ -6682,77 +6764,109 @@ function S_(e4, t2, n2, r2, i2, a2, o2) {
6682
6764
  o3.appendChild(Q("circle", { cx: 0, cy: 0, r: 8, fill: e6 }));
6683
6765
  }
6684
6766
  let s3 = Q("text", { x: 0, y: "3.5", fill: Z.background, "font-family": "'Courier New', Courier, monospace", "font-size": "10", "font-weight": "700", "text-anchor": "middle", "pointer-events": "none" });
6685
- s3.textContent = String(e5), o3.appendChild(s3), E_(o3, "Gate ".concat(e5)), o3.addEventListener("click", (t4) => {
6686
- var n4, i4, o4;
6687
- t4.stopPropagation();
6688
- let s4 = (n4 = __[e5]) == null ? "unknown" : n4, c3 = (i4 = (o4 = m_.find((e6) => e6.id === s4)) == null ? void 0 : o4.label) == null ? s4 : i4, l3 = a3 === null ? "Both" : a3 ? "Conscious" : "Unconscious";
6689
- r2(e5, a3, c3), l_(t4, String(e5), "Gate ".concat(e5), "".concat(c3, " Center \xB7 ").concat(l3), { type: "gate", data: { gate: e5, conscious: a3, center: c3 } }), r_ == null || r_("Gate ".concat(e5, " \xB7 ").concat(c3, " \xB7 ").concat(l3));
6690
- }), le2.appendChild(o3);
6691
- }
6692
- f2.appendChild(le2);
6693
- let b2 = t2.personality_activations, x2 = t2.design_activations;
6694
- if (b2 || x2) {
6767
+ s3.textContent = String(e5), o3.appendChild(s3), P_(o3, "Gate ".concat(e5));
6768
+ let c3 = (fe2 = T_[e5]) == null ? "unknown" : fe2, l3 = (pe2 = (me2 = S_.find((e6) => e6.id === c3)) == null ? void 0 : me2.label) == null ? c3 : pe2, u3 = a3 === null ? "Both" : a3 ? "Conscious" : "Unconscious";
6769
+ o3.addEventListener("mouseenter", (t4) => l_(t4.clientX, t4.clientY, "Gate ".concat(e5), "".concat(l3, " Center \xB7 ").concat(u3), "Click for details")), o3.addEventListener("mousemove", (t4) => l_(t4.clientX, t4.clientY, "Gate ".concat(e5), "".concat(l3, " Center \xB7 ").concat(u3), "Click for details")), o3.addEventListener("mouseleave", u_), o3.addEventListener("click", (t4) => {
6770
+ t4.stopPropagation(), u_(), r2(e5, a3, l3), m_(t4, String(e5), "Gate ".concat(e5), "".concat(l3, " Center \xB7 ").concat(u3), { type: "gate", data: { gate: e5, conscious: a3, center: l3 } }), X == null || X("Gate ".concat(e5, " \xB7 ").concat(l3, " \xB7 ").concat(u3));
6771
+ }), se2.appendChild(o3);
6772
+ }
6773
+ f2.appendChild(se2);
6774
+ let he2 = t2.personality_activations, ge2 = t2.design_activations, _e2 = null, ve2 = [], ye2 = [], be2 = [], xe2 = [], Se2 = null, Ce2 = null;
6775
+ function we2(e5) {
6776
+ _e2 = e5;
6777
+ let t3 = e5 === "personality" ? "0.18" : "1", n3 = e5 === "design" ? "0.18" : "1";
6778
+ ve2.forEach((e6) => {
6779
+ e6.style.opacity = t3;
6780
+ }), ye2.forEach((e6) => {
6781
+ e6.style.opacity = n3;
6782
+ }), be2.forEach((e6) => {
6783
+ e6.style.opacity = t3;
6784
+ }), xe2.forEach((e6) => {
6785
+ e6.style.opacity = n3;
6786
+ }), Te2(Se2, e5 === "design", e5 === "personality", Z.designColor), Te2(Ce2, e5 === "personality", e5 === "design", Z.personalityColor);
6787
+ }
6788
+ function Te2(e5, t3, n3, r3) {
6789
+ if (!e5) return;
6790
+ let i3 = e5.querySelector(".col-header-bg"), a3 = e5.querySelector(".col-header-label"), o3 = e5.querySelector(".col-header-ring");
6791
+ i3 && (i3.style.fillOpacity = t3 ? "0.22" : n3 ? "0.04" : "0.08"), a3 && (a3.style.opacity = n3 ? "0.30" : "1"), o3 && (o3.style.opacity = t3 ? "1" : "0");
6792
+ }
6793
+ function Ee2(e5, t3, n3, r3, i3, a3) {
6794
+ let o3 = t3 - 76 / 2, s3 = Q("g", { class: "col-header col-header--".concat(e5), cursor: "pointer", "data-side": e5 });
6795
+ s3.appendChild(Q("rect", { class: "col-header-bg", x: o3, y: n3, width: 76, height: 22, rx: 11, fill: i3, "fill-opacity": "0.08", stroke: "none" })), s3.appendChild(Q("rect", { class: "col-header-ring", x: o3, y: n3, width: 76, height: 22, rx: 11, fill: "none", stroke: Z.centerStroke, "stroke-width": "1.2", opacity: "0" }));
6796
+ let c3 = Q("text", { class: "col-header-label", x: t3, y: n3 + 14, fill: i3, "font-family": "system-ui, -apple-system, sans-serif", "font-size": "10", "font-weight": "600", "letter-spacing": "0.04em", "text-anchor": "middle", "pointer-events": "none", "text-transform": "uppercase" });
6797
+ c3.textContent = r3, s3.appendChild(c3);
6798
+ let l3 = "Click to highlight ".concat(r3, " column only \u2014 click again to reset");
6799
+ return s3.addEventListener("mouseenter", (e6) => l_(e6.clientX, e6.clientY, r3, l3, "")), s3.addEventListener("mousemove", (e6) => l_(e6.clientX, e6.clientY, r3, l3, "")), s3.addEventListener("mouseleave", u_), s3.addEventListener("click", () => {
6800
+ u_(), we2(_e2 === e5 ? null : e5);
6801
+ }), s3;
6802
+ }
6803
+ if (he2 || ge2) {
6695
6804
  let e5 = Q("g", { id: "layer-planet-columns" }), t3 = (t4, n3, r3, i3, a3, s3) => {
6696
- if (!n3) return;
6697
- let c3 = 0;
6698
- for (let l3 of u_) {
6699
- let u3 = n3[l3];
6700
- if (!u3) continue;
6701
- let d3 = Q("g", { transform: "translate(".concat(i3, ", ").concat(a3 + c3 * 50, ")"), class: "planet-activation", cursor: "pointer" }), f3 = s3 === "end" ? -50 : s3 === "start" ? 0 : -25;
6702
- d3.appendChild(Q("rect", { x: f3, y: -22, width: 50, height: 32, rx: 4, fill: "transparent", "pointer-events": "all" }));
6703
- let p3 = d_[l3] || l3, m3 = Q("text", { x: 0, y: 0, fill: r3, "font-family": "'Courier New', Courier, monospace", "font-size": "15", "font-weight": "700", "text-anchor": s3 });
6704
- m3.textContent = "".concat(p3, " ").concat(u3.gate, ".").concat(u3.line), d3.appendChild(m3);
6705
- let h3 = "".concat(t4 === "design" ? "Design" : "Personality", " ").concat(l3);
6706
- E_(d3, h3), d3.addEventListener("click", (e6) => {
6707
- o2 && o2(l3), l_(e6, p3, h3, "Gate ".concat(u3.gate, " Line ").concat(u3.line, " \xB7 Tone ").concat(u3.tone || "?", " \xB7 Color ").concat(u3.color || "?"), { type: "planet", data: { side: t4, planet: l3, ...u3 } }), r_ == null || r_("".concat(h3, " \u2014 Gate ").concat(u3.gate, ".").concat(u3.line));
6708
- }), e5.appendChild(d3), c3++;
6709
- }
6805
+ if (!n3) return [];
6806
+ let c3 = [], l3 = 0;
6807
+ for (let u3 of v_) {
6808
+ let d3 = n3[u3];
6809
+ if (!d3) continue;
6810
+ let f3 = Q("g", { transform: "translate(".concat(i3, ", ").concat(a3 + l3 * 44, ")"), class: "planet-row planet-row--".concat(t4), "data-planet": u3, "data-gate": String(d3.gate), "data-line": String(d3.line), "data-source": t4, cursor: "pointer" }), p3 = s3 === "end" ? -50 : s3 === "start" ? 0 : -25;
6811
+ f3.appendChild(Q("rect", { x: p3, y: -22, width: 50, height: 32, rx: 4, fill: "transparent", "pointer-events": "all" }));
6812
+ let m3 = y_[u3] || u3, h3 = Q("text", { x: 0, y: 0, fill: r3, "font-family": "'Courier New', Courier, monospace", "font-size": "15", "font-weight": "700", "text-anchor": s3 });
6813
+ h3.textContent = "".concat(m3, " ").concat(d3.gate, ".").concat(d3.line), f3.appendChild(h3);
6814
+ let g3 = "".concat(t4 === "design" ? "Design" : "Personality", " ").concat(u3);
6815
+ P_(f3, g3);
6816
+ let _3 = "Gate ".concat(d3.gate, " Line ").concat(d3.line, " \xB7 Tone ").concat(d3.tone || "?", " \xB7 Color ").concat(d3.color || "?");
6817
+ f3.addEventListener("mouseenter", (e6) => l_(e6.clientX, e6.clientY, g3, _3, "Click for details")), f3.addEventListener("mousemove", (e6) => l_(e6.clientX, e6.clientY, g3, _3, "Click for details")), f3.addEventListener("mouseleave", u_), f3.addEventListener("click", (e6) => {
6818
+ u_(), o2 && o2("".concat(g3, " \u2014 Gate ").concat(d3.gate, ".").concat(d3.line, " (").concat(t4 === "design" ? "Unconscious/Design" : "Conscious/Personality", ")")), m_(e6, m3, g3, _3, { type: "planet", data: { side: t4, planet: u3, ...d3 } }), X == null || X("".concat(g3, " \u2014 Gate ").concat(d3.gate, ".").concat(d3.line));
6819
+ }), e5.appendChild(f3), c3.push(f3), l3++;
6820
+ }
6821
+ return c3;
6710
6822
  };
6711
- t3("design", x2, Z.designColor, 30, 100, "start"), t3("personality", b2, Z.personalityColor, 630, 100, "end"), f2.appendChild(e5);
6823
+ Se2 = Ee2("design", 37, 62, "Design", Z.designColor, "start"), Ce2 = Ee2("personality", 623, 62, "Personality", Z.personalityColor, "end"), e5.appendChild(Se2), e5.appendChild(Ce2), ve2 = t3("design", ge2, Z.designColor, 12, 100, "start"), ye2 = t3("personality", he2, Z.personalityColor, 648, 100, "end"), f2.appendChild(e5);
6712
6824
  }
6713
- if (b2 || x2) {
6825
+ if (he2 || ge2) {
6714
6826
  let e5 = Q("g", { id: "layer-variables" }), t3 = (t4, n4, r4, i4, a4, o4, s3, c3, l3) => {
6715
- let u3 = i4 ? "0,0 8,8 0,16" : "8,0 0,8 8,16", d3 = Q("g", { transform: "translate(".concat(n4, ", ").concat(r4, ")"), class: "variable-arrow", cursor: "pointer" });
6716
- d3.appendChild(Q("polyline", { points: u3, fill: "none", stroke: a4, "stroke-width": 3, "stroke-linecap": "round", "stroke-linejoin": "round" })), d3.appendChild(Q("rect", { x: -12, y: -8, width: 32, height: 32, fill: "transparent", "pointer-events": "all" })), E_(d3, o4), d3.addEventListener("click", (e6) => {
6717
- l_(e6, i4 ? "\u2192" : "\u2190", o4, "".concat(c3, " ").concat(s3, " \xB7 Tone ").concat(l3.tone, " (").concat(i4 ? "Right" : "Left", ")"), { type: "variable", data: { name: o4.toLowerCase(), direction: i4 ? "right" : "left", tone: l3.tone, color: l3.color, planet: s3, side: c3 } }), r_ == null || r_("Variable: ".concat(o4, " (").concat(i4 ? "Right" : "Left", ")"));
6718
- }), e5.appendChild(d3);
6719
- }, n3 = (e6) => e6 >= 4 && e6 <= 6, r3 = x2 == null ? void 0 : x2.Sun;
6720
- r3 && r3.tone > 0 && t3("digestion", 130, 100, n3(r3.tone), Z.designColor, "Digestion", "Sun", "Design", r3);
6721
- let i3 = x2 == null ? void 0 : x2["North Node"];
6722
- i3 && i3.tone > 0 && t3("environment", 130, 160, n3(i3.tone), Z.designColor, "Environment", "North Node", "Design", i3);
6723
- let a3 = b2 == null ? void 0 : b2.Sun;
6724
- a3 && a3.tone > 0 && t3("perspective", 530, 100, n3(a3.tone), Z.personalityColor, "Perspective", "Sun", "Personality", a3);
6725
- let o3 = b2 == null ? void 0 : b2["North Node"];
6726
- o3 && o3.tone > 0 && t3("motivation", 530, 160, n3(o3.tone), Z.personalityColor, "Motivation", "North Node", "Personality", o3), f2.appendChild(e5);
6827
+ let u3 = i4 ? "0,0 18,12 0,24" : "18,0 0,12 18,24", d3 = i4 ? "right" : "left", f3 = c3.toLowerCase(), p3 = Q("g", { id: "variable-".concat(t4), class: "variable variable--".concat(t4), "data-variable": t4, "data-direction": d3, "data-source": f3, transform: "translate(".concat(n4, ", ").concat(r4, ")"), cursor: "pointer" });
6828
+ p3.appendChild(Q("polygon", { points: u3, fill: a4 })), p3.appendChild(Q("rect", { x: -8, y: -8, width: 34, height: 40, fill: "transparent", "pointer-events": "all" })), P_(p3, o4);
6829
+ let m3 = "".concat(c3, " ").concat(s3, " \xB7 Tone ").concat(l3.tone, " (").concat(i4 ? "Right" : "Left", ")");
6830
+ return p3.addEventListener("mouseenter", (e6) => l_(e6.clientX, e6.clientY, o4, m3, "Click for details")), p3.addEventListener("mousemove", (e6) => l_(e6.clientX, e6.clientY, o4, m3, "Click for details")), p3.addEventListener("mouseleave", u_), p3.addEventListener("click", (e6) => {
6831
+ u_(), m_(e6, i4 ? "\u2192" : "\u2190", o4, m3, { type: "variable", data: { name: t4, direction: d3, tone: l3.tone, color: l3.color, planet: s3, side: f3 } }), X == null || X("Variable: ".concat(o4, " (").concat(i4 ? "Right" : "Left", ")"));
6832
+ }), e5.appendChild(p3), p3;
6833
+ }, n3 = (e6) => e6 >= 4 && e6 <= 6, r3 = ge2 == null ? void 0 : ge2.Sun;
6834
+ r3 && r3.tone > 0 && be2.push(t3("digestion", 190, 100, n3(r3.tone), Z.designColor, "Digestion", "Sun", "Design", r3));
6835
+ let i3 = ge2 == null ? void 0 : ge2["North Node"];
6836
+ i3 && i3.tone > 0 && be2.push(t3("environment", 190, 148, n3(i3.tone), Z.designColor, "Environment", "North Node", "Design", i3));
6837
+ let a3 = he2 == null ? void 0 : he2.Sun;
6838
+ a3 && a3.tone > 0 && xe2.push(t3("awareness", 470, 100, n3(a3.tone), Z.personalityColor, "Awareness", "Sun", "Personality", a3));
6839
+ let o3 = he2 == null ? void 0 : he2["North Node"];
6840
+ o3 && o3.tone > 0 && xe2.push(t3("perspective", 470, 148, n3(o3.tone), Z.personalityColor, "Perspective", "North Node", "Personality", o3)), f2.appendChild(e5);
6727
6841
  }
6728
6842
  if (t2.type || t2.profile) {
6729
- let e5 = [t2.type, t2.profile ? "Profile ".concat(t2.profile) : ""].filter(Boolean), n3 = Q("text", { x: f_ * 0.97, y: p_ - 20, fill: Z.foreground, "font-size": "13", "text-anchor": "end", "font-family": "system-ui, sans-serif", "font-weight": "500", opacity: "0.55" });
6843
+ let e5 = [t2.type, t2.profile ? "Profile ".concat(t2.profile) : ""].filter(Boolean), n3 = Q("text", { x: b_ * 0.97, y: x_ - 20, fill: Z.foreground, "font-size": "13", "text-anchor": "end", "font-family": "system-ui, sans-serif", "font-weight": "500", opacity: "0.55" });
6730
6844
  n3.textContent = e5.join(" \xB7 "), f2.appendChild(n3);
6731
6845
  }
6732
- let ue2 = Q("svg", { x: 24, y: p_ - 74, width: "50", height: "50", viewBox: "0 0 432 432", opacity: "0.25" });
6733
- ue2.innerHTML = n_.replace(/fill="[^"]*"/g, 'fill="'.concat(Z.foreground, '"')), f2.appendChild(ue2), e4.appendChild(f2);
6846
+ let S2 = Q("svg", { x: 24, y: x_ - 74, width: "50", height: "50", viewBox: "0 0 432 432", opacity: "0.25" });
6847
+ S2.innerHTML = r_.replace(/fill="[^"]*"/g, 'fill="'.concat(Z.foreground, '"')), f2.appendChild(S2), e4.appendChild(f2);
6734
6848
  }
6735
- function C_(e4) {
6849
+ function j_(e4) {
6736
6850
  var t2;
6737
6851
  return (t2 = { head: "Head", ajna: "Ajna", throat: "Thr", g: "G", heart: "Ego", sacral: "Sac", root: "Root", spleen: "Spl", solar_plexus: "SP" }[e4]) == null ? e4 : t2;
6738
6852
  }
6739
- function w_(e4) {
6853
+ function M_(e4) {
6740
6854
  return e4.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
6741
6855
  }
6742
- function T_(e4, t2, n2, r2, i2, a2) {
6743
- let o2 = (e5, t3) => t3 ? '<span class="info-value interactive-text" data-ask="true" data-topic="'.concat(w_(e5), '" data-val="').concat(w_(t3), '" tabindex="0" role="button" title="Ask Claude about this">').concat(w_(t3), "</span>") : '<span class="info-value">None</span>';
6744
- return '\n <div class="info-row"><span class="info-label">Type</span>'.concat(o2("Type", e4), '</div>\n <div class="info-row"><span class="info-label">Profile</span>').concat(o2("Profile", t2), '</div>\n <div class="info-row"><span class="info-label">Authority</span>').concat(o2("Authority", n2), '</div>\n <div class="info-row"><span class="info-label">Definition</span>').concat(o2("Definition", r2), '</div>\n <div class="info-row"><span class="info-label">Cross</span>').concat(o2("Incarnation Cross", i2), '</div>\n <div class="info-row"><span class="info-label">Defined</span><span class="info-value">').concat(a2.length > 0 ? a2.map(w_).join(", ") : "None", "</span></div>\n ");
6856
+ function N_(e4, t2, n2, r2, i2, a2) {
6857
+ let o2 = (e5, t3) => t3 ? '<span class="info-value interactive-text" data-ask="true" data-topic="'.concat(M_(e5), '" data-val="').concat(M_(t3), '" tabindex="0" role="button" title="Ask Claude about this">').concat(M_(t3), "</span>") : '<span class="info-value">None</span>';
6858
+ return '\n <div class="info-row"><span class="info-label">Type</span>'.concat(o2("Type", e4), '</div>\n <div class="info-row"><span class="info-label">Profile</span>').concat(o2("Profile", t2), '</div>\n <div class="info-row"><span class="info-label">Authority</span>').concat(o2("Authority", n2), '</div>\n <div class="info-row"><span class="info-label">Definition</span>').concat(o2("Definition", r2), '</div>\n <div class="info-row"><span class="info-label">Cross</span>').concat(o2("Incarnation Cross", i2), '</div>\n <div class="info-row"><span class="info-label">Defined</span><span class="info-value">').concat(a2.length > 0 ? a2.map(M_).join(", ") : "None", "</span></div>\n ");
6745
6859
  }
6746
- function E_(e4, t2) {
6860
+ function P_(e4, t2) {
6747
6861
  e4 && (e4.setAttribute("tabindex", "0"), e4.setAttribute("role", "button"), e4.setAttribute("aria-label", t2), e4.addEventListener("keydown", (t3) => {
6748
6862
  let n2 = t3;
6749
6863
  (n2.key === "Enter" || n2.key === " ") && (n2.preventDefault(), e4.dispatchEvent(new MouseEvent("click", { bubbles: true, cancelable: true })));
6750
6864
  }));
6751
6865
  }
6752
- var D_ = class {
6866
+ var F_ = class {
6753
6867
  constructor(e4) {
6754
6868
  var t2, n2, r2, i2, a2, s2;
6755
- o(this, "config", void 0), o(this, "params", void 0), o(this, "dateInput", void 0), o(this, "timeInput", void 0), o(this, "locationInput", void 0), o(this, "suggestionsMenu", void 0), o(this, "refreshBtn", void 0), o(this, "searchTimeout", null), this.config = e4, this.params = { date: ((t2 = e4.initialParams) == null ? void 0 : t2.date) || this.getTodayDate(), time: ((n2 = e4.initialParams) == null ? void 0 : n2.time) || "12:00", latitude: ((r2 = e4.initialParams) == null ? void 0 : r2.latitude) || null, longitude: ((i2 = e4.initialParams) == null ? void 0 : i2.longitude) || null, timezone: ((a2 = e4.initialParams) == null ? void 0 : a2.timezone) || null, locationName: ((s2 = e4.initialParams) == null ? void 0 : s2.locationName) || null }, this.render();
6869
+ o(this, "config", void 0), o(this, "params", void 0), o(this, "dateInput", void 0), o(this, "timeInput", void 0), o(this, "refreshBtn", void 0), this.config = e4, this.params = { date: ((t2 = e4.initialParams) == null ? void 0 : t2.date) || this.getTodayDate(), time: ((n2 = e4.initialParams) == null ? void 0 : n2.time) || "12:00", latitude: ((r2 = e4.initialParams) == null ? void 0 : r2.latitude) || null, longitude: ((i2 = e4.initialParams) == null ? void 0 : i2.longitude) || null, timezone: ((a2 = e4.initialParams) == null ? void 0 : a2.timezone) || null, locationName: ((s2 = e4.initialParams) == null ? void 0 : s2.locationName) || null }, this.render();
6756
6870
  }
6757
6871
  getTodayDate() {
6758
6872
  return (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
@@ -6780,121 +6894,165 @@ var D_ = class {
6780
6894
  this.params.time = e5.target.value;
6781
6895
  }), r2.append(i2, this.timeInput);
6782
6896
  let a2 = document.createElement("div");
6783
- a2.className = "param-group param-group-loc";
6784
- let o2 = document.createElement("label");
6785
- o2.textContent = "Location", this.locationInput = document.createElement("input"), this.locationInput.type = "text", this.locationInput.placeholder = "Search city...", this.locationInput.value = this.params.locationName || "", this.suggestionsMenu = document.createElement("div"), this.suggestionsMenu.className = "loc-suggestions", this.suggestionsMenu.hidden = true, this.locationInput.addEventListener("input", (e5) => {
6786
- let t3 = e5.target.value;
6787
- if (this.searchTimeout && window.clearTimeout(this.searchTimeout), this.params.locationName = t3, this.params.latitude = null, t3.length < 2) {
6788
- this.suggestionsMenu.hidden = true;
6789
- return;
6790
- }
6791
- this.searchTimeout = window.setTimeout(() => this.searchLocation(t3), 300);
6792
- }), document.addEventListener("click", (e5) => {
6793
- a2.contains(e5.target) || (this.suggestionsMenu.hidden = true);
6794
- }), a2.append(o2, this.locationInput, this.suggestionsMenu);
6795
- let s2 = document.createElement("div");
6796
- if (s2.className = "param-actions", this.config.showStepControls) {
6897
+ if (a2.className = "param-actions", this.config.showStepControls) {
6797
6898
  let e5 = document.createElement("button");
6798
6899
  e5.className = "param-btn-icon", e5.innerHTML = "\u25C0", e5.title = "Previous Day", e5.addEventListener("click", () => this.stepDay(-1));
6799
6900
  let t3 = document.createElement("button");
6800
- t3.className = "param-btn-icon", t3.innerHTML = "\u25B6", t3.title = "Next Day", t3.addEventListener("click", () => this.stepDay(1)), s2.append(e5, t3);
6901
+ t3.className = "param-btn-icon", t3.innerHTML = "\u25B6", t3.title = "Next Day", t3.addEventListener("click", () => this.stepDay(1)), a2.append(e5, t3);
6801
6902
  }
6802
6903
  this.refreshBtn = document.createElement("button"), this.refreshBtn.className = "param-btn-primary", this.refreshBtn.textContent = "Refresh", this.refreshBtn.addEventListener("click", () => {
6803
- if (this.params.latitude === null || this.params.longitude === null) {
6804
- alert("Please select a location from the suggestions to ensure accurate timezone calculation.");
6805
- return;
6806
- }
6807
6904
  this.config.onRefresh(this.params);
6808
- }), s2.append(this.refreshBtn), e4.append(t2, r2, a2, s2), this.config.container.append(e4);
6905
+ }), a2.append(this.refreshBtn), e4.append(t2, r2, a2), this.config.container.append(e4);
6809
6906
  }
6810
6907
  stepDay(e4) {
6811
6908
  if (!this.params.date) return;
6812
6909
  let t2 = new Date(this.params.date);
6813
- t2.setUTCDate(t2.getUTCDate() + e4), this.params.date = t2.toISOString().split("T")[0], this.dateInput.value = this.params.date, this.params.latitude !== null && this.params.longitude !== null && this.config.onRefresh(this.params);
6814
- }
6815
- async searchLocation(e4) {
6816
- try {
6817
- var t2;
6818
- let n2 = (t2 = (await this.config.app.callServerTool({ name: "location_search", arguments: { query: e4 } })).content) == null || (t2 = t2.find((e5) => e5.type === "text")) == null ? void 0 : t2.text;
6819
- if (!n2) return;
6820
- let r2 = JSON.parse(n2).suggestions || [];
6821
- this.renderSuggestions(r2);
6822
- } catch (e5) {
6823
- console.error("[ParamControls] Location search failed:", e5);
6824
- }
6825
- }
6826
- renderSuggestions(e4) {
6827
- if (this.suggestionsMenu.innerHTML = "", e4.length === 0) {
6828
- this.suggestionsMenu.hidden = true;
6829
- return;
6830
- }
6831
- this.suggestionsMenu.hidden = false, e4.forEach((e5) => {
6832
- let t2 = document.createElement("div");
6833
- t2.className = "loc-item", t2.textContent = e5.displayName, t2.addEventListener("click", () => {
6834
- this.selectLocation(e5);
6835
- }), this.suggestionsMenu.appendChild(t2);
6836
- });
6910
+ t2.setUTCDate(t2.getUTCDate() + e4), this.params.date = t2.toISOString().split("T")[0], this.dateInput.value = this.params.date, this.config.onRefresh(this.params);
6837
6911
  }
6838
- selectLocation(e4) {
6839
- this.params.locationName = e4.displayName, this.params.latitude = e4.latitude, this.params.longitude = e4.longitude, this.params.timezone = e4.timezone || "UTC", this.locationInput.value = e4.displayName, this.suggestionsMenu.hidden = true;
6840
- }
6841
- }, O_ = "oe_mcp_first_run_";
6842
- function k_(e4) {
6843
- return "".concat(O_).concat(e4);
6912
+ }, I_ = "oe_mcp_first_run_";
6913
+ function L_(e4) {
6914
+ return "".concat(I_).concat(e4);
6844
6915
  }
6845
- function A_(e4) {
6916
+ function R_(e4) {
6846
6917
  try {
6847
- return localStorage.getItem(k_(e4)) === "1";
6918
+ return localStorage.getItem(L_(e4)) === "1";
6848
6919
  } catch (e5) {
6849
6920
  return true;
6850
6921
  }
6851
6922
  }
6852
- function j_(e4) {
6923
+ function z_(e4) {
6853
6924
  try {
6854
- localStorage.setItem(k_(e4), "1");
6925
+ localStorage.setItem(L_(e4), "1");
6855
6926
  } catch (e5) {
6856
6927
  }
6857
6928
  }
6858
- var M_ = { "chart-wheel": { stripIcon: "\u2726", stripTitle: "Welcome to your Natal Chart", stripHints: ["Click any <strong>planet</strong> for a deep placement reading", "Click any <strong>aspect line</strong> for its dynamic interpretation", "Click any <strong>house cusp</strong> for house themes", "Use the <strong>date controls</strong> to move through time"], chatWelcome: "\u2726 Welcome to your Open Ephemeris Natal Chart!\n\nYour birth chart is now rendered \u2014 an exact celestial snapshot of the sky at your moment of birth.\n\nHere's what you can do:\n\u2022 **Click any planet** on the wheel for a deep astrological interpretation of its sign, house, and aspects\n\u2022 **Click any aspect line** (the lines crossing the centre) to explore how two planets interact in your chart\n\u2022 **Click any house cusp** to understand the life themes of each house\n\u2022 **Use the date/time controls** to shift the chart forward or back \u2014 watch how the sky moves\n\nWould you like me to start with a full chart overview, or is there a particular planet, sign, or life area you'd like to explore first?" }, "bi-wheel": { stripIcon: "\u2295", stripTitle: "Welcome to the Bi-Wheel", stripHints: ["Click any <strong>inner planet</strong> for natal placement depth", "Click any <strong>outer planet</strong> for transit or synastry meaning", "Click a <strong>cross-aspect line</strong> for inter-chart dynamics", "Use the <strong>date controls</strong> to advance transits"], chatWelcome: "\u2295 Welcome to your Open Ephemeris Bi-Wheel!\n\nTwo charts are now layered \u2014 the inner wheel is your natal chart; the outer ring shows the second chart (transits or another person's planets).\n\nHere's what you can explore:\n\u2022 **Click an inner planet** to understand its natal placement\n\u2022 **Click an outer planet** to explore the transit or synastry energy it brings\n\u2022 **Click a cross-aspect line** (connecting inner and outer planets) for the precise dynamic between them\n\u2022 **Use the date controls** to step transiting planets forward or back through time\n\nWould you like a full synastry overview, a transit forecast, or shall we dive into a specific planetary connection?" }, bodygraph: { stripIcon: "\u25C8", stripTitle: "Welcome to your Bodygraph", stripHints: ["Click any <strong>center</strong> (defined or undefined) for its meaning", "Click any <strong>channel</strong> to explore its life theme", "Click any <strong>gate number</strong> for its I Ching hexagram reading", "Click a <strong>planet row</strong> in the sidebar for its HD role"], chatWelcome: "\u25C8 Welcome to your Open Ephemeris Human Design Bodygraph!\n\nYour bodygraph is now rendered \u2014 a living map of the energy centres, channels, and gates that define your design.\n\nHere's what you can explore:\n\u2022 **Click any centre** (the geometric shapes) \u2014 coloured centres are *defined* (consistent energy), white centres are *undefined* (open and conditioned by others)\n\u2022 **Click any channel** (the lines connecting centres) to understand its core life theme and circuit\n\u2022 **Click any gate number** for its full Rave I Ching hexagram meaning, gifts, and shadow\n\u2022 **Click a planet row** in the sidebar (left = Design/unconscious, right = Personality/conscious) for its HD archetype\n\u2022 **Click a Variable arrow** (the small chevrons near the Sun and North Node) for your Primary Health System\n\nWould you like a complete reading of your Type, Strategy, and Authority \u2014 or is there a specific centre, channel, or gate calling your attention?" } }, N_ = '\n .oe-welcome-strip {\n position: relative;\n display: flex;\n align-items: flex-start;\n gap: 12px;\n padding: 14px 40px 14px 16px;\n margin: 0 0 10px 0;\n background: linear-gradient(135deg, rgba(99,102,241,0.13) 0%, rgba(139,92,246,0.09) 100%);\n border: 1px solid rgba(139,92,246,0.28);\n border-radius: 10px;\n animation: oe-strip-in 0.35s cubic-bezier(0.22,1,0.36,1) both;\n font-family: system-ui, sans-serif;\n }\n @keyframes oe-strip-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n }\n .oe-welcome-strip__icon {\n font-size: 22px;\n line-height: 1;\n opacity: 0.85;\n flex-shrink: 0;\n margin-top: 1px;\n }\n .oe-welcome-strip__body {\n flex: 1;\n min-width: 0;\n }\n .oe-welcome-strip__title {\n font-size: 13px;\n font-weight: 700;\n color: rgba(255,255,255,0.92);\n margin: 0 0 6px 0;\n letter-spacing: 0.01em;\n }\n .oe-welcome-strip__hints {\n display: flex;\n flex-wrap: wrap;\n gap: 6px 14px;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .oe-welcome-strip__hints li {\n font-size: 11.5px;\n color: rgba(255,255,255,0.62);\n display: flex;\n align-items: center;\n gap: 5px;\n white-space: nowrap;\n }\n .oe-welcome-strip__hints li::before {\n content: "\u203A";\n color: rgba(139,92,246,0.8);\n font-weight: 700;\n font-size: 13px;\n line-height: 1;\n }\n .oe-welcome-strip__close {\n position: absolute;\n top: 8px;\n right: 10px;\n background: none;\n border: none;\n color: rgba(255,255,255,0.35);\n font-size: 17px;\n cursor: pointer;\n padding: 2px 5px;\n line-height: 1;\n border-radius: 4px;\n transition: color 0.15s, background 0.15s;\n }\n .oe-welcome-strip__close:hover {\n color: rgba(255,255,255,0.75);\n background: rgba(255,255,255,0.07);\n }\n .oe-welcome-strip.is-dismissing {\n animation: oe-strip-out 0.25s ease forwards;\n }\n @keyframes oe-strip-out {\n to { opacity: 0; transform: translateY(-4px); max-height: 0; padding: 0; margin: 0; overflow: hidden; }\n }\n';
6859
- function P_() {
6929
+ var B_ = { "chart-wheel": { stripIcon: "\u2726", stripTitle: "Welcome to your Natal Chart", stripHints: ["Click any <strong>planet</strong> for a deep placement reading", "Click any <strong>aspect line</strong> for its dynamic interpretation", "Click any <strong>house cusp</strong> for house themes", "Use the <strong>date controls</strong> to move through time"], modalText: "Your birth chart is now rendered \u2014 an exact celestial snapshot of the sky at your moment of birth." }, "bi-wheel": { stripIcon: "\u2295", stripTitle: "Welcome to the Bi-Wheel", stripHints: ["Click any <strong>inner planet</strong> for natal placement depth", "Click any <strong>outer planet</strong> for transit or synastry meaning", "Click a <strong>cross-aspect line</strong> for inter-chart dynamics", "Use the <strong>date controls</strong> to advance transits"], modalText: "Two charts are now layered \u2014 the inner wheel is your natal chart; the outer ring shows the second chart (transits or another person's planets)." }, bodygraph: { stripIcon: "\u25C8", stripTitle: "Welcome to your Bodygraph", stripHints: ["Click any <strong>center</strong> (defined or undefined) for its meaning", "Click any <strong>channel</strong> to explore its life theme", "Click any <strong>gate number</strong> for its I Ching hexagram reading", "Click a <strong>planet row</strong> in the sidebar for its HD role"], modalText: "Your bodygraph is now rendered \u2014 a living map of the energy centres, channels, and gates that define your design." } }, V_ = '\n .oe-welcome-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n z-index: 9999;\n display: flex;\n align-items: center;\n justify-content: center;\n animation: oe-fade-in 0.4s ease both;\n font-family: system-ui, sans-serif;\n }\n \n .oe-welcome-modal {\n background: linear-gradient(135deg, rgba(30,30,35,0.9) 0%, rgba(20,20,25,0.95) 100%);\n border: 1px solid rgba(255,215,0,0.15); /* Gold tint border */\n border-radius: 16px;\n padding: 32px;\n width: 90%;\n max-width: 440px;\n box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);\n animation: oe-modal-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n\n @keyframes oe-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n\n @keyframes oe-modal-in {\n from { opacity: 0; transform: scale(0.95) translateY(10px); }\n to { opacity: 1; transform: scale(1) translateY(0); }\n }\n\n .oe-welcome-header {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-bottom: 4px;\n }\n\n .oe-welcome-icon {\n font-size: 28px;\n color: #D4AF37; /* Gold */\n line-height: 1;\n text-shadow: 0 0 10px rgba(212,175,55,0.3);\n }\n\n .oe-welcome-title {\n font-size: 20px;\n font-weight: 600;\n color: rgba(255,255,255,0.95);\n margin: 0;\n letter-spacing: 0.02em;\n }\n\n .oe-welcome-text {\n font-size: 14.5px;\n line-height: 1.5;\n color: rgba(255,255,255,0.8);\n margin: 0;\n }\n\n .oe-welcome-hints {\n display: flex;\n flex-direction: column;\n gap: 12px;\n margin: 8px 0 12px 0;\n padding: 0;\n list-style: none;\n }\n\n .oe-welcome-hints li {\n font-size: 13.5px;\n line-height: 1.4;\n color: rgba(255,255,255,0.7);\n display: flex;\n align-items: flex-start;\n gap: 10px;\n opacity: 0;\n animation: oe-fade-in 0.4s ease forwards;\n }\n\n /* Stagger the hints */\n .oe-welcome-hints li:nth-child(1) { animation-delay: 0.15s; }\n .oe-welcome-hints li:nth-child(2) { animation-delay: 0.25s; }\n .oe-welcome-hints li:nth-child(3) { animation-delay: 0.35s; }\n .oe-welcome-hints li:nth-child(4) { animation-delay: 0.45s; }\n\n .oe-welcome-hints li::before {\n content: "\u2726";\n color: rgba(212,175,55,0.7); /* Muted gold */\n font-size: 12px;\n padding-top: 2px;\n }\n \n .oe-welcome-hints strong {\n color: rgba(255,255,255,0.9);\n font-weight: 600;\n }\n\n .oe-welcome-button {\n align-self: flex-end;\n background: rgba(212,175,55,0.15);\n color: #D4AF37;\n border: 1px solid rgba(212,175,55,0.3);\n padding: 10px 24px;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.2s ease;\n margin-top: 4px;\n }\n\n .oe-welcome-button:hover {\n background: rgba(212,175,55,0.25);\n border-color: rgba(212,175,55,0.5);\n transform: translateY(-1px);\n }\n\n .oe-welcome-backdrop.is-dismissing {\n animation: oe-fade-out 0.3s ease forwards;\n }\n\n .oe-welcome-backdrop.is-dismissing .oe-welcome-modal {\n animation: oe-modal-out 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;\n }\n\n @keyframes oe-fade-out {\n to { opacity: 0; }\n }\n\n @keyframes oe-modal-out {\n to { opacity: 0; transform: scale(0.95) translateY(10px); }\n }\n';
6930
+ function H_() {
6860
6931
  if (document.getElementById("oe-first-run-styles")) return;
6861
6932
  let e4 = document.createElement("style");
6862
- e4.id = "oe-first-run-styles", e4.textContent = N_, document.head.appendChild(e4);
6933
+ e4.id = "oe-first-run-styles", e4.textContent = V_, document.head.appendChild(e4);
6863
6934
  }
6864
- function F_(e4, t2) {
6935
+ function U_(e4, t2) {
6865
6936
  let n2 = document.createElement("div");
6866
- n2.className = "oe-welcome-strip", n2.setAttribute("role", "status"), n2.setAttribute("aria-label", e4.stripTitle);
6867
- let r2 = e4.stripHints.map((e5) => "<li>".concat(e5, "</li>")).join("");
6868
- return n2.innerHTML = '\n <div class="oe-welcome-strip__icon" aria-hidden="true">'.concat(e4.stripIcon, '</div>\n <div class="oe-welcome-strip__body">\n <p class="oe-welcome-strip__title">').concat(e4.stripTitle, '</p>\n <ul class="oe-welcome-strip__hints">').concat(r2, '</ul>\n </div>\n <button class="oe-welcome-strip__close" aria-label="Dismiss welcome tips" title="Dismiss">\u2715</button>\n '), n2.querySelector(".oe-welcome-strip__close").addEventListener("click", () => {
6869
- n2.classList.add("is-dismissing"), n2.addEventListener("animationend", () => n2.remove(), { once: true }), j_(t2);
6937
+ n2.className = "oe-welcome-backdrop";
6938
+ let r2 = document.createElement("div");
6939
+ r2.className = "oe-welcome-modal", r2.setAttribute("role", "dialog"), r2.setAttribute("aria-label", e4.stripTitle);
6940
+ let i2 = e4.stripHints.map((e5) => "<li>".concat(e5, "</li>")).join("");
6941
+ r2.innerHTML = '\n <div class="oe-welcome-header">\n <div class="oe-welcome-icon" aria-hidden="true">'.concat(e4.stripIcon, '</div>\n <h2 class="oe-welcome-title">').concat(e4.stripTitle, '</h2>\n </div>\n <p class="oe-welcome-text">').concat(e4.modalText, '</p>\n <ul class="oe-welcome-hints">').concat(i2, '</ul>\n <button class="oe-welcome-button" aria-label="Explore the chart">Explore</button>\n '), n2.appendChild(r2);
6942
+ let a2 = r2.querySelector(".oe-welcome-button"), o2 = () => {
6943
+ n2.classList.add("is-dismissing"), n2.addEventListener("animationend", () => n2.remove(), { once: true }), z_(t2);
6944
+ };
6945
+ return a2.addEventListener("click", o2), n2.addEventListener("click", (e5) => {
6946
+ e5.target === n2 && o2();
6870
6947
  }), n2;
6871
6948
  }
6872
- function I_(e4, t2) {
6873
- if (A_(e4)) return null;
6874
- let n2 = M_[e4];
6875
- P_();
6876
- let r2 = F_(n2, e4);
6877
- return t2.insertBefore(r2, t2.firstChild), j_(e4), n2.chatWelcome;
6949
+ function W_(e4, t2) {
6950
+ if (R_(e4)) return;
6951
+ let n2 = B_[e4];
6952
+ H_();
6953
+ let r2 = U_(n2, e4);
6954
+ document.body.appendChild(r2);
6955
+ }
6956
+ function G_(e4, t2, n2 = []) {
6957
+ var r2, i2;
6958
+ if (!t2 || t2.querySelector("#btn-fullscreen")) return;
6959
+ let a2 = document.createElement("button");
6960
+ a2.id = "btn-fullscreen", a2.className = "pan-btn pan-btn--fullscreen", a2.setAttribute("aria-label", "Toggle fullscreen"), a2.innerHTML = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="5,1 1,1 1,5"/>\n <polyline points="11,1 15,1 15,5"/>\n <polyline points="5,15 1,15 1,11"/>\n <polyline points="11,15 15,15 15,11"/>\n </svg>';
6961
+ let o2 = a2.innerHTML;
6962
+ function s2() {
6963
+ if (document.getElementById("fs-sidebar") || !n2.length) return;
6964
+ let e5 = document.getElementById("app"), t3 = document.getElementById("chart-container");
6965
+ if (!e5 || !t3) return;
6966
+ let r3 = document.createElement("div");
6967
+ r3.id = "fs-sidebar";
6968
+ for (let e6 of n2) {
6969
+ let t4 = document.getElementById(e6);
6970
+ t4 && r3.appendChild(t4);
6971
+ }
6972
+ t3.insertAdjacentElement("afterend", r3);
6973
+ }
6974
+ function c2() {
6975
+ let e5 = document.getElementById("fs-sidebar");
6976
+ if (!e5) return;
6977
+ let t3 = document.getElementById("app");
6978
+ if (!t3) {
6979
+ e5.remove();
6980
+ return;
6981
+ }
6982
+ for (; e5.firstChild; ) t3.appendChild(e5.firstChild);
6983
+ e5.remove();
6984
+ }
6985
+ function l2(e5) {
6986
+ let t3 = e5 === "fullscreen", n3 = document.body.classList.contains("is-fullscreen");
6987
+ document.body.classList.toggle("is-fullscreen", t3), a2.innerHTML = t3 ? '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="1,5 5,5 5,1"/>\n <polyline points="15,5 11,5 11,1"/>\n <polyline points="1,11 5,11 5,15"/>\n <polyline points="15,11 11,11 11,15"/>\n </svg>' : o2, a2.setAttribute("aria-label", t3 ? "Exit fullscreen" : "Toggle fullscreen"), t3 && !n3 && s2(), !t3 && n3 && c2();
6988
+ }
6989
+ a2.addEventListener("click", async () => {
6990
+ try {
6991
+ var t3, n3, r3, i3;
6992
+ let a3 = (t3 = e4.getHostContext) == null ? void 0 : t3.call(e4), o3 = (n3 = a3 == null ? void 0 : a3.displayMode) == null ? "inline" : n3, s3 = (r3 = a3 == null ? void 0 : a3.availableDisplayModes) == null ? [] : r3, c3 = o3 === "inline" ? "fullscreen" : "inline";
6993
+ if (s3.length > 0 && !s3.includes(c3)) {
6994
+ console.warn('[AppChrome] Display mode "'.concat(c3, '" not available. Available: ').concat(s3.join(", ")));
6995
+ return;
6996
+ }
6997
+ let u3 = await e4.requestDisplayMode({ mode: c3 });
6998
+ l2((i3 = u3 == null ? void 0 : u3.mode) == null ? "inline" : i3);
6999
+ } catch (e5) {
7000
+ console.warn("[AppChrome] requestDisplayMode failed:", e5);
7001
+ }
7002
+ }), (r2 = e4.addEventListener) == null || r2.call(e4, "hostcontextchanged", (e5) => {
7003
+ var t3;
7004
+ l2((t3 = e5 == null ? void 0 : e5.displayMode) == null ? "inline" : t3);
7005
+ });
7006
+ let u2 = (i2 = e4.getHostContext) == null ? void 0 : i2.call(e4);
7007
+ u2 != null && u2.displayMode && l2(u2.displayMode), t2.insertBefore(a2, t2.firstChild);
6878
7008
  }
6879
- var L_ = document.getElementById("loading-state"), R_ = document.getElementById("bodygraph-container"), z_ = document.getElementById("info-panel"), B_ = document.getElementById("controls-panel"), V_ = document.getElementById("chart-status"), H_ = document.getElementById("param-controls-container"), U_ = new t_({ name: "Human Design Bodygraph Explorer", version: "1.0.0" }), $ = null, W_ = null, G_ = false, K_ = false;
6880
- async function q_(e4) {
7009
+ function K_(e4, t2) {
7010
+ e4.ontoolcancelled = (e5) => {
7011
+ var n2, r2, i2;
7012
+ let a2 = (n2 = e5.reason) == null ? "Tool call was cancelled" : n2;
7013
+ console.warn("[AppChrome] Tool cancelled:", a2), (r2 = t2.statusFn) == null || r2.call(t2, null), !t2.loadingEl.hidden && t2.loadingEl.getAttribute("hidden") === null && (t2.loadingEl.setAttribute("hidden", ""), t2.contentEl.removeAttribute("hidden")), (i2 = t2.paramControls) == null || i2.setBusy(false), q_(a2);
7014
+ };
7015
+ }
7016
+ function q_(e4) {
7017
+ var t2;
7018
+ (t2 = document.getElementById("cancel-toast")) == null || t2.remove();
7019
+ let n2 = document.createElement("div");
7020
+ n2.id = "cancel-toast", n2.className = "cancel-toast", n2.textContent = "\u23F9 ".concat(e4), document.body.appendChild(n2), n2.offsetHeight, n2.classList.add("visible"), setTimeout(() => {
7021
+ n2.classList.remove("visible"), setTimeout(() => n2.remove(), 300);
7022
+ }, 3e3);
7023
+ }
7024
+ function J_(e4) {
7025
+ var t2;
7026
+ function n2(e5) {
7027
+ if (!e5) return;
7028
+ let t3 = e5.containerDimensions;
7029
+ if (!t3) return;
7030
+ let n3 = document.documentElement;
7031
+ t3.width && n3.style.setProperty("--host-width", "".concat(t3.width, "px")), t3.maxWidth && n3.style.setProperty("--host-max-width", "".concat(t3.maxWidth, "px")), t3.height && n3.style.setProperty("--host-height", "".concat(t3.height, "px")), t3.maxHeight && n3.style.setProperty("--host-max-height", "".concat(t3.maxHeight, "px"));
7032
+ }
7033
+ n2((t2 = e4.getHostContext) == null ? void 0 : t2.call(e4)), e4.addEventListener("hostcontextchanged", (e5) => {
7034
+ n2(e5);
7035
+ });
7036
+ }
7037
+ var Y_ = document.getElementById("loading-state"), X_ = document.getElementById("bodygraph-container"), Z_ = document.getElementById("info-panel"), Q_ = document.getElementById("controls-panel"), $_ = document.getElementById("chart-status"), ev = document.getElementById("param-controls-container"), tv = new n_({ name: "Human Design Bodygraph Explorer", version: "1.0.0" }), $ = null, nv = null, rv = false, iv = false;
7038
+ async function av(e4) {
6881
7039
  try {
6882
- (await U_.sendMessage({ role: "user", content: [{ type: "text", text: e4 }] })).isError && console.error("[Bodygraph] Host rejected sendMessage");
7040
+ (await tv.sendMessage({ role: "user", content: [{ type: "text", text: e4 }] })).isError && console.error("[Bodygraph] Host rejected sendMessage");
6883
7041
  } catch (e5) {
6884
7042
  console.error("[Bodygraph] sendMessage failed:", e5);
6885
7043
  }
6886
7044
  }
6887
- function J_(e4) {
6888
- if (V_) {
7045
+ function ov(e4) {
7046
+ if ($_) {
6889
7047
  if (!e4) {
6890
- V_.classList.remove("visible");
7048
+ $_.classList.remove("visible");
6891
7049
  return;
6892
7050
  }
6893
- V_.textContent = "\xB7 ".concat(e4), V_.classList.add("visible");
7051
+ $_.textContent = "\xB7 ".concat(e4), $_.classList.add("visible");
6894
7052
  }
6895
7053
  }
6896
- i_(J_);
6897
- async function Y_(e4) {
7054
+ a_(ov);
7055
+ async function sv(e4) {
6898
7056
  var t2, n2, r2, i2;
6899
7057
  if (!$) return;
6900
7058
  let a2 = (t2 = $.type) == null ? "Unknown" : t2, o2 = (n2 = $.profile) == null ? "" : n2, s2 = (r2 = $.authority) == null ? "" : r2, c2 = (i2 = $.incarnation_cross) == null ? "" : i2, l2 = "";
@@ -6916,7 +7074,7 @@ async function Y_(e4) {
6916
7074
  let t3 = e4.data;
6917
7075
  try {
6918
7076
  var m2, h2;
6919
- await U_.callServerTool({ name: "hd_on_planet_click", arguments: { planet: String((m2 = t3.planet) == null ? "" : m2), gate: t3.gate == null ? void 0 : Number(t3.gate), line: t3.line == null ? void 0 : Number(t3.line), column: String((h2 = t3.side) == null ? "personality" : h2) } });
7077
+ await tv.callServerTool({ name: "hd_on_planet_click", arguments: { planet: String((m2 = t3.planet) == null ? "" : m2), gate: t3.gate == null ? void 0 : Number(t3.gate), line: t3.line == null ? void 0 : Number(t3.line), column: String((h2 = t3.side) == null ? "personality" : h2) } });
6920
7078
  } catch (e5) {
6921
7079
  console.error("[Bodygraph] hd_on_planet_click failed:", e5);
6922
7080
  }
@@ -6925,49 +7083,52 @@ async function Y_(e4) {
6925
7083
  let t3 = e4.data;
6926
7084
  try {
6927
7085
  var g2, _2;
6928
- await U_.callServerTool({ name: "hd_on_variable_click", arguments: { variable: String((g2 = t3.name) == null ? "" : g2).toLowerCase(), direction: String((_2 = t3.direction) == null ? "right" : _2), tone: t3.tone == null ? void 0 : Number(t3.tone), color: t3.color == null ? void 0 : Number(t3.color) } });
7086
+ await tv.callServerTool({ name: "hd_on_variable_click", arguments: { variable: String((g2 = t3.name) == null ? "" : g2).toLowerCase(), direction: String((_2 = t3.direction) == null ? "right" : _2), tone: t3.tone == null ? void 0 : Number(t3.tone), color: t3.color == null ? void 0 : Number(t3.color) } });
6929
7087
  } catch (e5) {
6930
7088
  console.error("[Bodygraph] hd_on_variable_click failed:", e5);
6931
7089
  }
6932
7090
  return;
6933
7091
  }
6934
- l2 && await q_(l2);
7092
+ l2 && await av(l2);
6935
7093
  }
6936
- async function X_() {
7094
+ async function cv() {
6937
7095
  var e4, t2, n2, r2, i2, a2, o2;
6938
7096
  if (!$) return;
6939
7097
  let s2 = $, c2 = (e4 = s2.type) == null ? "Unknown" : e4, l2 = (t2 = s2.profile) == null ? "" : t2, u2 = (n2 = s2.authority) == null ? "" : n2, d2 = (r2 = s2.incarnation_cross) == null ? "" : r2, f2 = (i2 = s2.definition) == null ? "" : i2, p2 = ((a2 = s2.centers) == null ? [] : a2).filter((e5) => e5.defined).map((e5) => e5.name).join(", ") || "none", m2 = ((o2 = s2.channels) == null ? [] : o2).filter((e5) => e5.defined).map((e5) => {
6940
7098
  var t3;
6941
7099
  return (t3 = e5.id) == null ? "".concat(e5.gate1, "-").concat(e5.gate2) : t3;
6942
7100
  }).join(", ") || "none";
6943
- await q_("Please give me a complete Human Design reading for this chart.\n\nType: ".concat(c2, "\n") + (l2 ? "Profile: ".concat(l2, "\n") : "") + (u2 ? "Authority: ".concat(u2, "\n") : "") + (f2 ? "Definition: ".concat(f2, "\n") : "") + (d2 ? "Incarnation Cross: ".concat(d2, "\n") : "") + "Defined Centers: ".concat(p2, "\nDefined Channels: ").concat(m2, "\n\nCover: (1) Life theme and purpose of this Type, (2) Strategy and how it works practically, (3) Authority and how to make aligned decisions, (4) The defined channels as core personality traits, (5) Key shadows and conditioning to watch for, (6) A practical summary of how to live this design."));
7101
+ await av("Please give me a complete Human Design reading for this chart.\n\nType: ".concat(c2, "\n") + (l2 ? "Profile: ".concat(l2, "\n") : "") + (u2 ? "Authority: ".concat(u2, "\n") : "") + (f2 ? "Definition: ".concat(f2, "\n") : "") + (d2 ? "Incarnation Cross: ".concat(d2, "\n") : "") + "Defined Centers: ".concat(p2, "\nDefined Channels: ").concat(m2, "\n\nCover: (1) Life theme and purpose of this Type, (2) Strategy and how it works practically, (3) Authority and how to make aligned decisions, (4) The defined channels as core personality traits, (5) Key shadows and conditioning to watch for, (6) A practical summary of how to live this design."));
6944
7102
  }
6945
- async function Z_() {
6946
- var e4, t2, n2;
7103
+ async function lv() {
7104
+ var e4, t2, n2, r2, i2;
6947
7105
  if (!$) return;
6948
- let r2 = $, i2 = (e4 = r2.type) == null ? "Unknown" : e4, a2 = (t2 = r2.profile) == null ? "" : t2, o2 = (n2 = r2.authority) == null ? "" : n2;
6949
- await q_("I'm looking at a Human Design Bodygraph for a ".concat(i2) + (a2 ? " with Profile ".concat(a2) : "") + (o2 ? " and ".concat(o2, " authority") : "") + ".\n\nPlease ask me questions to help me understand this design more deeply \u2014 what aspects of Human Design are you curious to explore? You can ask about centers, channels, gates, strategy, authority, or how any of this plays out in everyday life.");
7106
+ let a2 = $, o2 = (e4 = a2.type) == null ? "Unknown" : e4, s2 = (t2 = a2.profile) == null ? "" : t2, c2 = (n2 = a2.authority) == null ? "" : n2, l2 = [...(r2 = a2.personality_gates) == null ? [] : r2, ...(i2 = a2.design_gates) == null ? [] : i2].slice(0, 6).map((e5) => {
7107
+ var t3;
7108
+ return typeof e5 == "number" ? "Gate ".concat(e5) : "Gate ".concat((t3 = e5.gate) == null ? e5 : t3);
7109
+ }).join(", ") || "none";
7110
+ await av("I'm exploring a Human Design Bodygraph for a ".concat(o2) + (s2 ? " with Profile ".concat(s2) : "") + (c2 ? " and ".concat(c2, " authority") : "") + ". Active gates include: ".concat(l2, ".\n\nBased on this design, please suggest 3-4 specific, insightful questions I could ask to understand this chart more deeply \u2014 such as how the type and authority work in daily life, what specific gates or channels mean, or how to live in alignment with this design. Present each as a tappable question I can ask you."));
6950
7111
  }
6951
- async function Q_(e4) {
6952
- if (G_) try {
7112
+ async function uv(e4) {
7113
+ if (rv) try {
6953
7114
  var t2, n2, r2;
6954
7115
  let i2 = "User selected ".concat(e4.type, ": ").concat(JSON.stringify(e4.data, null, 2), "\nHD Type: ").concat((t2 = $ == null ? void 0 : $.type) == null ? null : t2, "\nProfile: ").concat((n2 = $ == null ? void 0 : $.profile) == null ? null : n2, "\nAuthority: ").concat((r2 = $ == null ? void 0 : $.authority) == null ? null : r2);
6955
- await U_.updateModelContext({ content: [{ type: "text", text: i2 }] });
7116
+ await tv.updateModelContext({ content: [{ type: "text", text: i2 }] });
6956
7117
  } catch (e5) {
6957
7118
  }
6958
7119
  }
6959
- async function $_(e4, t2, n2) {
6960
- J_("".concat(t2 ? "\u25C9" : "\u25CB", " ").concat(e4, " Center (").concat(t2 ? "defined" : "undefined", ")")), Q_({ type: "center", data: { center_name: e4, defined: t2, active_gates: n2 } });
7120
+ async function dv(e4, t2, n2) {
7121
+ ov("".concat(t2 ? "\u25C9" : "\u25CB", " ").concat(e4, " Center (").concat(t2 ? "defined" : "undefined", ")")), uv({ type: "center", data: { center_name: e4, defined: t2, active_gates: n2 } });
6961
7122
  }
6962
- async function ev(e4, t2, n2) {
6963
- J_("Gate ".concat(e4, " \xB7 ").concat(n2, " \xB7 ").concat(t2 === true ? "Conscious" : t2 === false ? "Unconscious" : "Both")), Q_({ type: "gate", data: { gate: e4, conscious: t2, center: n2 } });
7123
+ async function fv(e4, t2, n2) {
7124
+ ov("Gate ".concat(e4, " \xB7 ").concat(n2, " \xB7 ").concat(t2 === true ? "Conscious" : t2 === false ? "Unconscious" : "Both")), uv({ type: "gate", data: { gate: e4, conscious: t2, center: n2 } });
6964
7125
  }
6965
- async function tv(e4, t2, n2, r2, i2, a2) {
6966
- J_("Channel ".concat(e4, " \xB7 ").concat(r2, "\u2013").concat(i2)), Q_({ type: "channel", data: { channel: e4, gate1: t2, gate2: n2, center1: r2, center2: i2, color_type: a2 } });
7126
+ async function pv(e4, t2, n2, r2, i2, a2) {
7127
+ ov("Channel ".concat(e4, " \xB7 ").concat(r2, "\u2013").concat(i2)), uv({ type: "channel", data: { channel: e4, gate1: t2, gate2: n2, center1: r2, center2: i2, color_type: a2 } });
6967
7128
  }
6968
- function nv() {
6969
- if (K_) return async (e4) => {
6970
- let t2 = await U_.createSamplingMessage({ maxTokens: 150, systemPrompt: "You are an expert in Human Design. Keep answers insightful, practical, and highly concise.", messages: [{ role: "user", content: { type: "text", text: e4 } }] });
7129
+ function mv() {
7130
+ if (iv) return async (e4) => {
7131
+ let t2 = await tv.createSamplingMessage({ maxTokens: 150, systemPrompt: "You are an expert in Human Design. Keep answers insightful, practical, and highly concise.", messages: [{ role: "user", content: { type: "text", text: e4 } }] });
6971
7132
  if (t2.isError) {
6972
7133
  var n2, r2;
6973
7134
  throw Error((n2 = (r2 = t2.error) == null ? void 0 : r2.message) == null ? "Sampling failed" : n2);
@@ -6977,40 +7138,40 @@ function nv() {
6977
7138
  throw Error("Unexpected sampling response format");
6978
7139
  };
6979
7140
  }
6980
- function rv(e4) {
7141
+ function hv(e4) {
6981
7142
  var t2, n2, r2, i2, a2, o2, s2, c2, l2, u2, d2, f2;
6982
- $ = e4, L_.setAttribute("hidden", ""), R_.removeAttribute("hidden"), S_(R_, e4, $_, ev, tv, Y_, nv());
7143
+ $ = e4, Y_.setAttribute("hidden", ""), X_.removeAttribute("hidden"), A_(X_, e4, dv, fv, pv, sv, mv());
6983
7144
  let p2 = document.getElementById("hd-action-bar");
6984
7145
  if (!p2) {
6985
7146
  var m2;
6986
- p2 = document.createElement("div"), p2.id = "hd-action-bar", p2.className = "hd-action-bar", (m2 = R_.parentElement) == null || m2.insertBefore(p2, R_);
7147
+ p2 = document.createElement("div"), p2.id = "hd-action-bar", p2.className = "hd-action-bar", (m2 = X_.parentElement) == null || m2.insertBefore(p2, X_);
6987
7148
  }
6988
- p2.innerHTML = '\n <button class="action-btn action-btn--primary" id="hd-interpret-btn">\u2728 Interpret this chart</button>\n <button class="action-btn" id="hd-questions-btn">\u{1F4AC} Ask me questions</button>\n ', (t2 = p2.querySelector("#hd-interpret-btn")) == null || t2.addEventListener("click", () => void X_()), (n2 = p2.querySelector("#hd-questions-btn")) == null || n2.addEventListener("click", () => void Z_());
7149
+ p2.innerHTML = '\n <button class="action-btn action-btn--primary" id="hd-interpret-btn">\u2728 Interpret this chart</button>\n <button class="action-btn" id="hd-questions-btn">\u{1F52E} What should I ask?</button>\n ', (t2 = p2.querySelector("#hd-interpret-btn")) == null || t2.addEventListener("click", () => void cv()), (n2 = p2.querySelector("#hd-questions-btn")) == null || n2.addEventListener("click", () => void lv());
6989
7150
  let h2 = ((r2 = (i2 = e4.personality_gates) == null ? void 0 : i2.length) == null ? 0 : r2) > 0 || ((a2 = (o2 = e4.design_gates) == null ? void 0 : o2.length) == null ? 0 : a2) > 0, g2 = document.querySelector(".channel-legend");
6990
7151
  if (h2 && !g2) {
6991
7152
  let e5 = document.createElement("div");
6992
- e5.className = "channel-legend", e5.innerHTML = '\n <span class="legend-item">\n <span class="legend-swatch" style="background:#a5b4fc"></span>Conscious\n </span>\n <span class="legend-item">\n <span class="legend-swatch" style="background:#f87171"></span>Unconscious\n </span>\n <span class="legend-item">\n <span class="legend-swatch" style="background:#f59e0b"></span>Both\n </span>\n ', R_.after(e5);
7153
+ e5.className = "channel-legend", e5.innerHTML = '\n <span class="legend-item">\n <span class="legend-swatch" style="background:#a5b4fc"></span>Conscious\n </span>\n <span class="legend-item">\n <span class="legend-swatch" style="background:#f87171"></span>Unconscious\n </span>\n <span class="legend-item">\n <span class="legend-swatch" style="background:#f59e0b"></span>Both\n </span>\n ';
7154
+ let t3 = document.getElementById("fullscreen-right-col");
7155
+ t3 ? t3.prepend(e5) : X_.after(e5);
6993
7156
  }
6994
7157
  let _2 = ((s2 = e4.centers) == null ? [] : s2).filter((e5) => e5.defined).map((e5) => e5.name);
6995
- z_.innerHTML = T_((c2 = e4.type) == null ? "Unknown" : c2, (l2 = e4.profile) == null ? "" : l2, (u2 = e4.authority) == null ? "" : u2, (d2 = e4.definition) == null ? "" : d2, (f2 = e4.incarnation_cross) == null ? "" : f2, _2), z_.removeAttribute("hidden"), z_.querySelectorAll(".interactive-text").forEach((e5) => {
7158
+ Z_.innerHTML = N_((c2 = e4.type) == null ? "Unknown" : c2, (l2 = e4.profile) == null ? "" : l2, (u2 = e4.authority) == null ? "" : u2, (d2 = e4.definition) == null ? "" : d2, (f2 = e4.incarnation_cross) == null ? "" : f2, _2), Z_.removeAttribute("hidden"), Z_.querySelectorAll(".interactive-text").forEach((e5) => {
6996
7159
  e5.addEventListener("click", () => {
6997
7160
  let t3 = e5.getAttribute("data-topic"), n3 = e5.getAttribute("data-val");
6998
- t3 && n3 && Y_({ type: "attribute", data: { topic: t3, val: n3 } });
7161
+ t3 && n3 && sv({ type: "attribute", data: { topic: t3, val: n3 } });
6999
7162
  }), e5.addEventListener("keydown", (t3) => {
7000
7163
  let n3 = t3;
7001
7164
  (n3.key === "Enter" || n3.key === " ") && (n3.preventDefault(), e5.dispatchEvent(new MouseEvent("click", { bubbles: true, cancelable: true })));
7002
7165
  });
7003
- }), B_.setAttribute("hidden", ""), H_.removeAttribute("hidden");
7004
- let ee2 = I_("bodygraph", R_);
7005
- ee2 && U_.sendMessage({ role: "user", content: [{ type: "text", text: ee2 }] });
7166
+ }), Q_.setAttribute("hidden", ""), ev.removeAttribute("hidden"), W_("bodygraph", X_);
7006
7167
  }
7007
- function iv(e4) {
7008
- L_.setAttribute("hidden", ""), R_.innerHTML = '\n <div class="error-state">\n <div class="error-icon">\u26A0\uFE0F</div>\n <p>'.concat(av(e4), "</p>\n </div>\n "), R_.removeAttribute("hidden");
7168
+ function gv(e4) {
7169
+ Y_.setAttribute("hidden", ""), X_.innerHTML = '\n <div class="error-state">\n <div class="error-icon">\u26A0\uFE0F</div>\n <p>'.concat(_v(e4), "</p>\n </div>\n "), X_.removeAttribute("hidden");
7009
7170
  }
7010
- function av(e4) {
7171
+ function _v(e4) {
7011
7172
  return e4.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
7012
7173
  }
7013
- U_.ontoolresult = (e4) => {
7174
+ tv.ontoolresult = (e4) => {
7014
7175
  try {
7015
7176
  var t2;
7016
7177
  let o2 = null;
@@ -7023,37 +7184,40 @@ U_.ontoolresult = (e4) => {
7023
7184
  } catch (e5) {
7024
7185
  }
7025
7186
  if (!o2) {
7026
- iv("Bodygraph data could not be parsed from the server response.");
7187
+ gv("Bodygraph data could not be parsed from the server response.");
7027
7188
  return;
7028
7189
  }
7029
- if (!W_) {
7190
+ if (!nv) {
7030
7191
  var n2, r2, i2, a2;
7031
7192
  let e5 = (n2 = o2._birth_params) == null ? {} : n2, t3 = (r2 = e5.datetime) == null ? "" : r2, s2 = (i2 = e5.location) == null ? "" : i2, c2 = (a2 = e5.timezone) == null ? "" : a2, l2 = e5.latitude, u2 = e5.longitude, d2 = "", f2 = "12:00";
7032
- if (t3 && t3.includes("T")) {
7033
- let e6 = t3.split("T");
7034
- d2 = e6[0], f2 = e6[1].substring(0, 5);
7193
+ if (t3) try {
7194
+ let e6 = new Date(t3), n3 = c2 || "UTC", r3 = e6.toLocaleDateString("en-CA", { timeZone: n3 }), i3 = e6.toLocaleTimeString("en-GB", { timeZone: n3, hour: "2-digit", minute: "2-digit", hour12: false });
7195
+ d2 = r3, f2 = i3;
7196
+ } catch (e6) {
7197
+ t3.includes("T") && (d2 = t3.split("T")[0], f2 = t3.split("T")[1].substring(0, 5));
7035
7198
  }
7036
- W_ = new D_({ app: U_, container: H_, initialParams: { date: d2, time: f2, locationName: s2, timezone: c2, latitude: typeof l2 == "number" ? l2 : null, longitude: typeof u2 == "number" ? u2 : null }, showStepControls: false, onRefresh: async (e6) => {
7037
- W_ == null || W_.setBusy(true), L_.removeAttribute("hidden"), R_.setAttribute("hidden", "");
7199
+ nv = new F_({ app: tv, container: ev, initialParams: { date: d2, time: f2, locationName: s2, timezone: c2, latitude: typeof l2 == "number" ? l2 : null, longitude: typeof u2 == "number" ? u2 : null }, showStepControls: false, onRefresh: async (e6) => {
7200
+ nv == null || nv.setBusy(true), Y_.removeAttribute("hidden"), X_.setAttribute("hidden", "");
7038
7201
  try {
7039
- let t4 = "".concat(e6.date, "T").concat(e6.time, ":00");
7040
- await U_.callServerTool({ name: "bodygraph_recalculate", arguments: { datetime: "".concat(t4).concat(e6.timezone ? "" : "Z"), latitude: e6.latitude, longitude: e6.longitude, timezone: e6.timezone, location: e6.locationName } });
7202
+ var t4, n3, r3, i3;
7203
+ let a3 = "".concat(e6.date, "T").concat(e6.time, ":00"), o3 = e6.timezone ? a3 : "".concat(a3, "Z");
7204
+ await tv.callServerTool({ name: "bodygraph_recalculate", arguments: { datetime: o3, latitude: (t4 = e6.latitude) == null ? void 0 : t4, longitude: (n3 = e6.longitude) == null ? void 0 : n3, timezone: (r3 = e6.timezone) == null ? void 0 : r3, location: (i3 = e6.locationName) == null ? void 0 : i3 } });
7041
7205
  } catch (e7) {
7042
7206
  console.error("Recalculate failed:", e7);
7043
7207
  } finally {
7044
- W_ == null || W_.setBusy(false);
7208
+ nv == null || nv.setBusy(false);
7045
7209
  }
7046
7210
  } });
7047
7211
  }
7048
- rv(o2);
7212
+ hv(o2);
7049
7213
  } catch (e5) {
7050
- iv("An error occurred while rendering the bodygraph."), console.error("[Bodygraph] Render error:", e5);
7214
+ gv("An error occurred while rendering the bodygraph."), console.error("[Bodygraph] Render error:", e5);
7051
7215
  }
7052
- }, (async () => {
7216
+ }, K_(tv, { loadingEl: Y_, contentEl: X_, statusFn: ov, paramControls: nv }), (async () => {
7053
7217
  try {
7054
- await U_.connect();
7055
- let e4 = U_.getHostCapabilities();
7056
- G_ = !!(e4 != null && e4.modelContext), K_ = !!(e4 != null && e4.sampling);
7218
+ await tv.connect();
7219
+ let e4 = tv.getHostCapabilities();
7220
+ rv = !!(e4 != null && e4.modelContext), iv = !!(e4 != null && e4.sampling), G_(tv, document.getElementById("pan-zoom-controls")), J_(tv);
7057
7221
  } catch (e4) {
7058
7222
  console.error("[Bodygraph] connect() failed:", e4);
7059
7223
  }